@share-crm/sharedev-cli 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ /*! For license information please see sharedev.js.LICENSE.txt */
3
+ import*as e from"node:process";import*as t from"node:tty";import*as n from"node:util";import{createRequire as i}from"node:module";const a=i(import.meta.url);import{clearLine as o,createInterface as s,default as r,emitKeypressEvents as c,moveCursor as l}from"node:readline";import{existsSync as p,lstatSync as u,readdirSync as d}from"node:fs";import{dirname as m,join as f}from"node:path";import{default as h}from"node:os";var g={8146(e,t,n){e.exports={parallel:n(4691),serial:n(5332),serialOrdered:n(1407)}},7440(e){function t(e){"function"==typeof this.jobs[e]&&this.jobs[e]()}e.exports=function(e){Object.keys(e.jobs).forEach(t.bind(e)),e.jobs={}}},7578(e,t,n){var i=n(7962);e.exports=function(e){var t=!1;return i(function(){t=!0}),function(n,a){t?e(n,a):i(function(){e(n,a)})}}},7962(e){e.exports=function(e){var t="function"==typeof setImmediate?setImmediate:"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:null;t?t(e):setTimeout(e,0)}},5276(e,t,n){var i=n(7578),a=n(7440);e.exports=function(e,t,n,o){var s=n.keyedList?n.keyedList[n.index]:n.index;n.jobs[s]=function(e,t,n,a){return 2==e.length?e(n,i(a)):e(n,t,i(a))}(t,s,e[s],function(e,t){s in n.jobs&&(delete n.jobs[s],e?a(n):n.results[s]=t,o(e,n.results))})}},4287(e){e.exports=function(e,t){var n=!Array.isArray(e),i={index:0,keyedList:n||t?Object.keys(e):null,jobs:{},results:n?{}:[],size:n?Object.keys(e).length:e.length};return t&&i.keyedList.sort(n?t:function(n,i){return t(e[n],e[i])}),i}},5965(e,t,n){var i=n(7440),a=n(7578);e.exports=function(e){Object.keys(this.jobs).length&&(this.index=this.size,i(this),a(e)(null,this.results))}},4691(e,t,n){var i=n(5276),a=n(4287),o=n(5965);e.exports=function(e,t,n){for(var s=a(e);s.index<(s.keyedList||e).length;)i(e,t,s,function(e,t){e?n(e,t):0!==Object.keys(s.jobs).length||n(null,s.results)}),s.index++;return o.bind(s,n)}},5332(e,t,n){var i=n(1407);e.exports=function(e,t,n){return i(e,t,null,n)}},1407(e,t,n){var i=n(5276),a=n(4287),o=n(5965);function s(e,t){return e<t?-1:e>t?1:0}e.exports=function(e,t,n,s){var r=a(e,n);return i(e,t,r,function n(a,o){a?s(a,o):(r.index++,r.index<(r.keyedList||e).length?i(e,t,r,n):s(null,r.results))}),o.bind(r,s)},e.exports.ascending=s,e.exports.descending=function(e,t){return-1*s(e,t)}},6788(e,t,n){var i=n(181).Buffer,a=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];function o(e){if(i.isBuffer(e))return e;var t="function"==typeof i.alloc&&"function"==typeof i.from;if("number"==typeof e)return t?i.alloc(e):new i(e);if("string"==typeof e)return t?i.from(e):new i(e);throw new Error("input must be buffer, number, or string, received "+typeof e)}function s(e,t){e=o(e),i.isBuffer(t)&&(t=t.readUInt32BE(0));for(var n=-1^t,s=0;s<e.length;s++)n=a[255&(n^e[s])]^n>>>8;return-1^n}function r(){return e=s.apply(null,arguments),(t=o(4)).writeInt32BE(e,0),t;var e,t}"undefined"!=typeof Int32Array&&(a=new Int32Array(a)),r.signed=function(){return s.apply(null,arguments)},r.unsigned=function(){return s.apply(null,arguments)>>>0},e.exports=r},7785(e,t,n){var i=n(9524),a=n(4811),o=n(6255),s=n(2728);e.exports=s||i.call(o,a)},4811(e){e.exports=Function.prototype.apply},6255(e){e.exports=Function.prototype.call},2427(e,t,n){var i=n(9524),a=n(1102),o=n(6255),s=n(7785);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new a("a function is required");return s(i,o,e)}},2728(e){e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},135(e,t,n){var i=n(9023),a=n(2203).Stream,o=n(9366);function s(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2097152,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}e.exports=s,i.inherits(s,a),s.create=function(e){var t=new this;for(var n in e=e||{})t[n]=e[n];return t},s.isStreamLike=function(e){return"function"!=typeof e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e&&!Buffer.isBuffer(e)},s.prototype.append=function(e){if(s.isStreamLike(e)){if(!(e instanceof o)){var t=o.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=t}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this},s.prototype.pipe=function(e,t){return a.prototype.pipe.call(this,e,t),this.resume(),e},s.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop)this._pendingNext=!0;else{this._insideLoop=!0;try{do{this._pendingNext=!1,this._realGetNext()}while(this._pendingNext)}finally{this._insideLoop=!1}}},s.prototype._realGetNext=function(){var e=this._streams.shift();void 0!==e?"function"==typeof e?e(function(e){s.isStreamLike(e)&&(e.on("data",this._checkDataSize.bind(this)),this._handleErrors(e)),this._pipeNext(e)}.bind(this)):this._pipeNext(e):this.end()},s.prototype._pipeNext=function(e){if(this._currentStream=e,s.isStreamLike(e))return e.on("end",this._getNext.bind(this)),void e.pipe(this,{end:!1});var t=e;this.write(t),this._getNext()},s.prototype._handleErrors=function(e){var t=this;e.on("error",function(e){t._emitError(e)})},s.prototype.write=function(e){this.emit("data",e)},s.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.pause&&this._currentStream.pause(),this.emit("pause"))},s.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.resume&&this._currentStream.resume(),this.emit("resume")},s.prototype.end=function(){this._reset(),this.emit("end")},s.prototype.destroy=function(){this._reset(),this.emit("close")},s.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null},s.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}},s.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach(function(t){t.dataSize&&(e.dataSize+=t.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)},s.prototype._emitError=function(e){this._reset(),this.emit("error",e)}},5046(e,t,n){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let i=0,a=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(i++,"%c"===e&&(a=i))}),t.splice(a,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(2601)(t);const{formatters:i}=e.exports;i.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},2601(e,t,n){e.exports=function(e){function t(e){let n,a,o,s=null;function r(...e){if(!r.enabled)return;const i=r,a=Number(new Date),o=a-(n||a);i.diff=o,i.prev=n,i.curr=a,n=a,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,a)=>{if("%%"===n)return"%";s++;const o=t.formatters[a];if("function"==typeof o){const t=e[s];n=o.call(i,t),e.splice(s,1),s--}return n}),t.formatArgs.call(i,e),(i.log||t.log).apply(i,e)}return r.namespace=e,r.useColors=t.useColors(),r.color=t.selectColor(e),r.extend=i,r.destroy=t.destroy,Object.defineProperty(r,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(a!==t.namespaces&&(a=t.namespaces,o=t.enabled(e)),o),set:e=>{s=e}}),"function"==typeof t.init&&t.init(r),r}function i(e,n){const i=t(this.namespace+(void 0===n?":":n)+e);return i.log=this.log,i}function a(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names.map(a),...t.skips.map(a).map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const i=("string"==typeof e?e:"").split(/[\s,]+/),a=i.length;for(n=0;n<a;n++)i[n]&&("-"===(e=i[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,i;for(n=0,i=t.skips.length;n<i;n++)if(t.skips[n].test(e))return!1;for(n=0,i=t.names.length;n<i;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(7821),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},7190(e,t,n){"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?e.exports=n(5046):e.exports=n(540)},540(e,t,n){const i=n(2018),a=n(9023);t.init=function(e){e.inspectOpts={};const n=Object.keys(t.inspectOpts);for(let i=0;i<n.length;i++)e.inspectOpts[n[i]]=t.inspectOpts[n[i]]},t.log=function(...e){return process.stderr.write(a.format(...e)+"\n")},t.formatArgs=function(n){const{namespace:i,useColors:a}=this;if(a){const t=this.color,a="[3"+(t<8?t:"8;5;"+t),o=` ${a};1m${i} `;n[0]=o+n[0].split("\n").join("\n"+o),n.push(a+"m+"+e.exports.humanize(this.diff)+"")}else n[0]=(t.inspectOpts.hideDate?"":(new Date).toISOString()+" ")+i+" "+n[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):i.isatty(process.stderr.fd)},t.destroy=a.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const e=n(1754);e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{const n=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase());let i=process.env[t];return i=!!/^(yes|on|true|enabled)$/i.test(i)||!/^(no|off|false|disabled)$/i.test(i)&&("null"===i?null:Number(i)),e[n]=i,e},{}),e.exports=n(2601)(t);const{formatters:o}=e.exports;o.o=function(e){return this.inspectOpts.colors=this.useColors,a.inspect(e,this.inspectOpts).split("\n").map(e=>e.trim()).join(" ")},o.O=function(e){return this.inspectOpts.colors=this.useColors,a.inspect(e,this.inspectOpts)}},4306(e,t,n){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let i=0,a=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(i++,"%c"===e&&(a=i))}),t.splice(a,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(6157)(t);const{formatters:i}=e.exports;i.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},6157(e,t,n){e.exports=function(e){function t(e){let n,a,o,s=null;function r(...e){if(!r.enabled)return;const i=r,a=Number(new Date),o=a-(n||a);i.diff=o,i.prev=n,i.curr=a,n=a,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,a)=>{if("%%"===n)return"%";s++;const o=t.formatters[a];if("function"==typeof o){const t=e[s];n=o.call(i,t),e.splice(s,1),s--}return n}),t.formatArgs.call(i,e),(i.log||t.log).apply(i,e)}return r.namespace=e,r.useColors=t.useColors(),r.color=t.selectColor(e),r.extend=i,r.destroy=t.destroy,Object.defineProperty(r,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(a!==t.namespaces&&(a=t.namespaces,o=t.enabled(e)),o),set:e=>{s=e}}),"function"==typeof t.init&&t.init(r),r}function i(e,n){const i=t(this.namespace+(void 0===n?":":n)+e);return i.log=this.log,i}function a(e,t){let n=0,i=0,a=-1,o=0;for(;n<e.length;)if(i<t.length&&(t[i]===e[n]||"*"===t[i]))"*"===t[i]?(a=i,o=n,i++):(n++,i++);else{if(-1===a)return!1;i=a+1,o++,n=o}for(;i<t.length&&"*"===t[i];)i++;return i===t.length}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of n)"-"===e[0]?t.skips.push(e.slice(1)):t.names.push(e)},t.enabled=function(e){for(const n of t.skips)if(a(e,n))return!1;for(const n of t.names)if(a(e,n))return!0;return!1},t.humanize=n(3866),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},3154(e,t,n){"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?e.exports=n(4306):e.exports=n(8232)},8232(e,t,n){const i=n(2018),a=n(9023);t.init=function(e){e.inspectOpts={};const n=Object.keys(t.inspectOpts);for(let i=0;i<n.length;i++)e.inspectOpts[n[i]]=t.inspectOpts[n[i]]},t.log=function(...e){return process.stderr.write(a.formatWithOptions(t.inspectOpts,...e)+"\n")},t.formatArgs=function(n){const{namespace:i,useColors:a}=this;if(a){const t=this.color,a="[3"+(t<8?t:"8;5;"+t),o=` ${a};1m${i} `;n[0]=o+n[0].split("\n").join("\n"+o),n.push(a+"m+"+e.exports.humanize(this.diff)+"")}else n[0]=(t.inspectOpts.hideDate?"":(new Date).toISOString()+" ")+i+" "+n[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):i.isatty(process.stderr.fd)},t.destroy=a.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const e=n(1754);e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{const n=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase());let i=process.env[t];return i=!!/^(yes|on|true|enabled)$/i.test(i)||!/^(no|off|false|disabled)$/i.test(i)&&("null"===i?null:Number(i)),e[n]=i,e},{}),e.exports=n(6157)(t);const{formatters:o}=e.exports;o.o=function(e){return this.inspectOpts.colors=this.useColors,a.inspect(e,this.inspectOpts).split("\n").map(e=>e.trim()).join(" ")},o.O=function(e){return this.inspectOpts.colors=this.useColors,a.inspect(e,this.inspectOpts)}},9366(e,t,n){var i=n(2203).Stream,a=n(9023);function o(){this.source=null,this.dataSize=0,this.maxDataSize=1048576,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}e.exports=o,a.inherits(o,i),o.create=function(e,t){var n=new this;for(var i in t=t||{})n[i]=t[i];n.source=e;var a=e.emit;return e.emit=function(){return n._handleEmit(arguments),a.apply(e,arguments)},e.on("error",function(){}),n.pauseStream&&e.pause(),n},Object.defineProperty(o.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}}),o.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)},o.prototype.resume=function(){this._released||this.release(),this.source.resume()},o.prototype.pause=function(){this.source.pause()},o.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]},o.prototype.pipe=function(){var e=i.prototype.pipe.apply(this,arguments);return this.resume(),e},o.prototype._handleEmit=function(e){this._released?this.emit.apply(this,e):("data"===e[0]&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e))},o.prototype._checkIfMaxDataSizeExceeded=function(){if(!(this._maxDataSizeExceeded||this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(e))}}},7678(e,t,n){var i,a=n(2427),o=n(5667);try{i=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var s=!!i&&o&&o(Object.prototype,"__proto__"),r=Object,c=r.getPrototypeOf;e.exports=s&&"function"==typeof s.get?a([s.get]):"function"==typeof c&&function(e){return c(null==e?e:r(e))}},3270(e,t,n){var i=n(7992),a=function(){},o=global.Bare?queueMicrotask:process.nextTick.bind(process),s=function(e,t,n){if("function"==typeof t)return s(e,null,t);t||(t={}),n=i(n||a);var r=e._writableState,c=e._readableState,l=t.readable||!1!==t.readable&&e.readable,p=t.writable||!1!==t.writable&&e.writable,u=!1,d=function(){e.writable||m()},m=function(){p=!1,l||n.call(e)},f=function(){l=!1,p||n.call(e)},h=function(t){n.call(e,t?new Error("exited with error code: "+t):null)},g=function(t){n.call(e,t)},x=function(){o(v)},v=function(){if(!u)return(!l||c&&c.ended&&!c.destroyed)&&(!p||r&&r.ended&&!r.destroyed)?void 0:n.call(e,new Error("premature close"))},y=function(){e.req.on("finish",m)};return function(e){return e.setHeader&&"function"==typeof e.abort}(e)?(e.on("complete",m),e.on("abort",x),e.req?y():e.on("request",y)):p&&!r&&(e.on("end",d),e.on("close",d)),function(e){return e.stdio&&Array.isArray(e.stdio)&&3===e.stdio.length}(e)&&e.on("exit",h),e.on("end",f),e.on("finish",m),!1!==t.error&&e.on("error",g),e.on("close",x),function(){u=!0,e.removeListener("complete",m),e.removeListener("abort",x),e.removeListener("request",y),e.req&&e.req.removeListener("finish",m),e.removeListener("end",d),e.removeListener("close",d),e.removeListener("finish",m),e.removeListener("exit",h),e.removeListener("end",f),e.removeListener("error",g),e.removeListener("close",x)}};e.exports=s},9886(e){var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},8004(e){e.exports=EvalError},1488(e){e.exports=Error},6469(e){e.exports=RangeError},2557(e){e.exports=ReferenceError},3429(e){e.exports=SyntaxError},1102(e){e.exports=TypeError},5966(e){e.exports=URIError},5153(e){e.exports=Object},5299(e,t,n){var i=n(9336)("%Object.defineProperty%",!0),a=n(7185)(),o=n(5630),s=n(1102),r=a?Symbol.toStringTag:null;e.exports=function(e,t){var n=arguments.length>2&&!!arguments[2]&&arguments[2].force,a=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(void 0!==n&&"boolean"!=typeof n||void 0!==a&&"boolean"!=typeof a)throw new s("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");!r||!n&&o(e,r)||(i?i(e,r,{configurable:!a,enumerable:!1,value:t,writable:!1}):e[r]=t)}},4839(e,t,n){const i=n(3154)("extract-zip"),{createWriteStream:a,promises:o}=n(9896),s=n(5279),r=n(6928),{promisify:c}=n(9023),l=n(2203),p=n(7855),u=c(p.open),d=c(l.pipeline);class m{constructor(e,t){this.zipPath=e,this.opts=t}async extract(){return i("opening",this.zipPath,"with opts",this.opts),this.zipfile=await u(this.zipPath,{lazyEntries:!0}),this.canceled=!1,new Promise((e,t)=>{this.zipfile.on("error",e=>{this.canceled=!0,t(e)}),this.zipfile.readEntry(),this.zipfile.on("close",()=>{this.canceled||(i("zip extraction complete"),e())}),this.zipfile.on("entry",async e=>{if(this.canceled)return void i("skipping entry",e.fileName,{cancelled:this.canceled});if(i("zipfile entry",e.fileName),e.fileName.startsWith("__MACOSX/"))return void this.zipfile.readEntry();const n=r.dirname(r.join(this.opts.dir,e.fileName));try{await o.mkdir(n,{recursive:!0});const t=await o.realpath(n);if(r.relative(this.opts.dir,t).split(r.sep).includes(".."))throw new Error(`Out of bound path "${t}" found while processing file ${e.fileName}`);await this.extractEntry(e),i("finished processing",e.fileName),this.zipfile.readEntry()}catch(e){this.canceled=!0,this.zipfile.close(),t(e)}})})}async extractEntry(e){if(this.canceled)return void i("skipping entry extraction",e.fileName,{cancelled:this.canceled});this.opts.onEntry&&this.opts.onEntry(e,this.zipfile);const t=r.join(this.opts.dir,e.fileName),n=e.externalFileAttributes>>16&65535,l=40960==(61440&n);let p=16384==(61440&n);!p&&e.fileName.endsWith("/")&&(p=!0);const u=e.versionMadeBy>>8;p||(p=0===u&&16===e.externalFileAttributes),i("extracting entry",{filename:e.fileName,isDir:p,isSymlink:l});const m=511&this.getExtractedMode(n,p),f=p?t:r.dirname(t),h={recursive:!0};if(p&&(h.mode=m),i("mkdir",{dir:f,...h}),await o.mkdir(f,h),p)return;i("opening read stream",t);const g=await c(this.zipfile.openReadStream.bind(this.zipfile))(e);if(l){const e=await s(g);i("creating symlink",e,t),await o.symlink(e,t)}else await d(g,a(t,{mode:m}))}getExtractedMode(e,t){let n=e;return 0===n&&(t?(this.opts.defaultDirMode&&(n=parseInt(this.opts.defaultDirMode,10)),n||(n=493)):(this.opts.defaultFileMode&&(n=parseInt(this.opts.defaultFileMode,10)),n||(n=420))),n}}e.exports=async function(e,t){if(i("creating target directory",t.dir),!r.isAbsolute(t.dir))throw new Error("Target directory is expected to be absolute");return await o.mkdir(t.dir,{recursive:!0}),t.dir=await o.realpath(t.dir),new m(e,t).extract()}},9776(e,t,n){var i=n(9896),a=n(9023),o=n(2203),s=o.Readable,r=o.Writable,c=o.PassThrough,l=n(7939),p=n(4434).EventEmitter;function u(e,t){t=t||{},p.call(this),this.fd=e,this.pend=new l,this.pend.max=1,this.refCount=0,this.autoClose=!!t.autoClose}function d(e,t){t=t||{},s.call(this,t),this.context=e,this.context.ref(),this.start=t.start||0,this.endOffset=t.end,this.pos=this.start,this.destroyed=!1}function m(e,t){t=t||{},r.call(this,t),this.context=e,this.context.ref(),this.start=t.start||0,this.endOffset=null==t.end?1/0:+t.end,this.bytesWritten=0,this.pos=this.start,this.destroyed=!1,this.on("finish",this.destroy.bind(this))}function f(e,t){p.call(this),t=t||{},this.refCount=0,this.buffer=e,this.maxChunkSize=t.maxChunkSize||Number.MAX_SAFE_INTEGER}t.createFromBuffer=function(e,t){return new f(e,t)},t.createFromFd=function(e,t){return new u(e,t)},t.BufferSlicer=f,t.FdSlicer=u,a.inherits(u,p),u.prototype.read=function(e,t,n,a,o){var s=this;s.pend.go(function(r){i.read(s.fd,e,t,n,a,function(e,t,n){r(),o(e,t,n)})})},u.prototype.write=function(e,t,n,a,o){var s=this;s.pend.go(function(r){i.write(s.fd,e,t,n,a,function(e,t,n){r(),o(e,t,n)})})},u.prototype.createReadStream=function(e){return new d(this,e)},u.prototype.createWriteStream=function(e){return new m(this,e)},u.prototype.ref=function(){this.refCount+=1},u.prototype.unref=function(){var e=this;if(e.refCount-=1,!(e.refCount>0)){if(e.refCount<0)throw new Error("invalid unref");e.autoClose&&i.close(e.fd,function(t){t?e.emit("error",t):e.emit("close")})}},a.inherits(d,s),d.prototype._read=function(e){var t=this;if(!t.destroyed){var n=Math.min(t._readableState.highWaterMark,e);if(null!=t.endOffset&&(n=Math.min(n,t.endOffset-t.pos)),n<=0)return t.destroyed=!0,t.push(null),void t.context.unref();t.context.pend.go(function(e){if(t.destroyed)return e();var a=new Buffer(n);i.read(t.context.fd,a,0,n,t.pos,function(n,i){n?t.destroy(n):0===i?(t.destroyed=!0,t.push(null),t.context.unref()):(t.pos+=i,t.push(a.slice(0,i))),e()})})}},d.prototype.destroy=function(e){this.destroyed||(e=e||new Error("stream destroyed"),this.destroyed=!0,this.emit("error",e),this.context.unref())},a.inherits(m,r),m.prototype._write=function(e,t,n){var a=this;if(!a.destroyed){if(a.pos+e.length>a.endOffset){var o=new Error("maximum file length exceeded");return o.code="ETOOBIG",a.destroy(),void n(o)}a.context.pend.go(function(t){if(a.destroyed)return t();i.write(a.context.fd,e,0,e.length,a.pos,function(e,i){e?(a.destroy(),t(),n(e)):(a.bytesWritten+=i,a.pos+=i,a.emit("progress"),t(),n())})})}},m.prototype.destroy=function(){this.destroyed||(this.destroyed=!0,this.context.unref())},a.inherits(f,p),f.prototype.read=function(e,t,n,i,a){var o=i+n,s=o-this.buffer.length,r=s>0?s:n;this.buffer.copy(e,t,i,o),setImmediate(function(){a(null,r)})},f.prototype.write=function(e,t,n,i,a){e.copy(this.buffer,i,t,t+n),setImmediate(function(){a(null,n,e)})},f.prototype.createReadStream=function(e){var t=new c(e=e||{});t.destroyed=!1,t.start=e.start||0,t.endOffset=e.end,t.pos=t.endOffset||this.buffer.length;for(var n=this.buffer.slice(t.start,t.pos),i=0;;){var a=i+this.maxChunkSize;if(a>=n.length){i<n.length&&t.write(n.slice(i,n.length));break}t.write(n.slice(i,a)),i=a}return t.end(),t.destroy=function(){t.destroyed=!0},t},f.prototype.createWriteStream=function(e){var t=this,n=new r(e=e||{});return n.start=e.start||0,n.endOffset=null==e.end?this.buffer.length:+e.end,n.bytesWritten=0,n.pos=n.start,n.destroyed=!1,n._write=function(e,i,a){if(!n.destroyed){var o=n.pos+e.length;if(o>n.endOffset){var s=new Error("maximum file length exceeded");return s.code="ETOOBIG",n.destroyed=!0,void a(s)}e.copy(t.buffer,n.pos,0,e.length),n.bytesWritten+=e.length,n.pos=o,n.emit("progress"),a()}},n.destroy=function(){n.destroyed=!0},n},f.prototype.ref=function(){this.refCount+=1},f.prototype.unref=function(){if(this.refCount-=1,this.refCount<0)throw new Error("invalid unref")}},6638(e,t,n){var i;e.exports=function(){if(!i){try{i=n(7190)("follow-redirects")}catch(e){}"function"!=typeof i&&(i=function(){})}i.apply(null,arguments)}},1233(e,t,n){var i,a,o,s=n(7016),r=s.URL,c=n(8611),l=n(5692),p=n(2203).Writable,u=n(2613),d=n(6638);i="undefined"!=typeof process,a="undefined"!=typeof window&&"undefined"!=typeof document,o=j(Error.captureStackTrace),i||!a&&o||console.warn("The follow-redirects package should be excluded from browser builds.");var m=!1;try{u(new r(""))}catch(e){m="ERR_INVALID_URL"===e.code}var f=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],h=["abort","aborted","connect","error","socket","timeout"],g=Object.create(null);h.forEach(function(e){g[e]=function(t,n,i){this._redirectable.emit(e,t,n,i)}});var x=N("ERR_INVALID_URL","Invalid URL",TypeError),v=N("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),y=N("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",v),b=N("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),w=N("ERR_STREAM_WRITE_AFTER_END","write after end"),_=p.prototype.destroy||C;function S(e,t){p.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var n=this;this._onNativeResponse=function(e){try{n._processResponse(e)}catch(e){n.emit("error",e instanceof v?e:new v({cause:e}))}},this._performRequest()}function E(e){var t={maxRedirects:21,maxBodyLength:10485760},n={};return Object.keys(e).forEach(function(i){var a=i+":",o=n[a]=e[i],s=t[i]=Object.create(o);Object.defineProperties(s,{request:{value:function(e,i,o){return r&&e instanceof r?e=k(e):P(e)?e=k(T(e)):(o=i,i=$(e),e={protocol:a}),j(i)&&(o=i,i=null),(i=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,i)).nativeProtocols=n,P(i.host)||P(i.hostname)||(i.hostname="::1"),u.equal(i.protocol,a,"protocol mismatch"),d("options",i),new S(i,o)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,t,n){var i=s.request(e,t,n);return i.end(),i},configurable:!0,enumerable:!0,writable:!0}})}),t}function C(){}function T(e){var t;if(m)t=new r(e);else if(!P((t=$(s.parse(e))).protocol))throw new x({input:e});return t}function $(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new x({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new x({input:e.href||e});return e}function k(e,t){var n=t||{};for(var i of f)n[i]=e[i];return n.hostname.startsWith("[")&&(n.hostname=n.hostname.slice(1,-1)),""!==n.port&&(n.port=Number(n.port)),n.path=n.search?n.pathname+n.search:n.pathname,n}function O(e,t){var n;for(var i in t)e.test(i)&&(n=t[i],delete t[i]);return null==n?void 0:String(n).trim()}function N(e,t,n){function i(n){j(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,n||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return i.prototype=new(n||Error),Object.defineProperties(i.prototype,{constructor:{value:i,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),i}function A(e,t){for(var n of h)e.removeListener(n,g[n]);e.on("error",C),e.destroy(t)}function P(e){return"string"==typeof e||e instanceof String}function j(e){return"function"==typeof e}S.prototype=Object.create(p.prototype),S.prototype.abort=function(){A(this._currentRequest),this._currentRequest.abort(),this.emit("abort")},S.prototype.destroy=function(e){return A(this._currentRequest,e),_.call(this,e),this},S.prototype.write=function(e,t,n){if(this._ending)throw new w;if(!(P(e)||"object"==typeof(i=e)&&"length"in i))throw new TypeError("data should be a string, Buffer or Uint8Array");var i;j(t)&&(n=t,t=null),0!==e.length?this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,n)):(this.emit("error",new b),this.abort()):n&&n()},S.prototype.end=function(e,t,n){if(j(e)?(n=e,e=t=null):j(t)&&(n=t,t=null),e){var i=this,a=this._currentRequest;this.write(e,t,function(){i._ended=!0,a.end(null,null,n)}),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,n)},S.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},S.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},S.prototype.setTimeout=function(e,t){var n=this;function i(t){t.setTimeout(e),t.removeListener("timeout",t.destroy),t.addListener("timeout",t.destroy)}function a(t){n._timeout&&clearTimeout(n._timeout),n._timeout=setTimeout(function(){n.emit("timeout"),o()},e),i(t)}function o(){n._timeout&&(clearTimeout(n._timeout),n._timeout=null),n.removeListener("abort",o),n.removeListener("error",o),n.removeListener("response",o),n.removeListener("close",o),t&&n.removeListener("timeout",t),n.socket||n._currentRequest.removeListener("socket",a)}return t&&this.on("timeout",t),this.socket?a(this.socket):this._currentRequest.once("socket",a),this.on("socket",i),this.on("abort",o),this.on("error",o),this.on("response",o),this.on("close",o),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){S.prototype[e]=function(t,n){return this._currentRequest[e](t,n)}}),["aborted","connection","socket"].forEach(function(e){Object.defineProperty(S.prototype,e,{get:function(){return this._currentRequest[e]}})}),S.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}},S.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t)throw new TypeError("Unsupported protocol "+e);if(this._options.agents){var n=e.slice(0,-1);this._options.agent=this._options.agents[n]}var i=this._currentRequest=t.request(this._options,this._onNativeResponse);for(var a of(i._redirectable=this,h))i.on(a,g[a]);if(this._currentUrl=/^\//.test(this._options.path)?s.format(this._options):this._options.path,this._isRedirect){var o=0,r=this,c=this._requestBodyBuffers;!function e(t){if(i===r._currentRequest)if(t)r.emit("error",t);else if(o<c.length){var n=c[o++];i.finished||i.write(n.data,n.encoding,e)}else r._ended&&i.end()}()}},S.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var n,i=e.headers.location;if(!i||!1===this._options.followRedirects||t<300||t>=400)return e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),void(this._requestBodyBuffers=[]);if(A(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new y;var a=this._options.beforeRedirect;a&&(n=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var o=this._options.method;((301===t||302===t)&&"POST"===this._options.method||303===t&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],O(/^content-/i,this._options.headers));var c,l,p=O(/^host$/i,this._options.headers),f=T(this._currentUrl),h=p||f.host,g=/^\w+:/.test(i)?this._currentUrl:s.format(Object.assign(f,{host:h})),x=(c=i,l=g,m?new r(c,l):T(s.resolve(l,c)));if(d("redirecting to",x.href),this._isRedirect=!0,k(x,this._options),(x.protocol!==f.protocol&&"https:"!==x.protocol||x.host!==h&&!function(e,t){u(P(e)&&P(t));var n=e.length-t.length-1;return n>0&&"."===e[n]&&e.endsWith(t)}(x.host,h))&&O(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),j(a)){var v={headers:e.headers,statusCode:t},b={url:g,method:o,headers:n};a(this._options,v,b),this._sanitizeOptions(this._options)}this._performRequest()},e.exports=E({http:c,https:l}),e.exports.wrap=E},8654(e,t,n){var i=n(135),a=n(9023),o=n(6928),s=n(8611),r=n(5692),c=n(7016).parse,l=n(9896),p=n(2203).Stream,u=n(6982),d=n(2829),m=n(8146),f=n(5299),h=n(5630),g=n(2899);function x(e){if(!(this instanceof x))return new x(e);for(var t in this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],i.call(this),e=e||{})this[t]=e[t]}a.inherits(x,i),x.LINE_BREAK="\r\n",x.DEFAULT_CONTENT_TYPE="application/octet-stream",x.prototype.append=function(e,t,n){"string"==typeof(n=n||{})&&(n={filename:n});var a=i.prototype.append.bind(this);if("number"!=typeof t&&null!=t||(t=String(t)),Array.isArray(t))this._error(new Error("Arrays are not supported."));else{var o=this._multiPartHeader(e,t,n),s=this._multiPartFooter();a(o),a(t),a(s),this._trackLength(o,t,n)}},x.prototype._trackLength=function(e,t,n){var i=0;null!=n.knownLength?i+=Number(n.knownLength):Buffer.isBuffer(t)?i=t.length:"string"==typeof t&&(i=Buffer.byteLength(t)),this._valueLength+=i,this._overheadLength+=Buffer.byteLength(e)+x.LINE_BREAK.length,t&&(t.path||t.readable&&h(t,"httpVersion")||t instanceof p)&&(n.knownLength||this._valuesToMeasure.push(t))},x.prototype._lengthRetriever=function(e,t){h(e,"fd")?null!=e.end&&e.end!=1/0&&null!=e.start?t(null,e.end+1-(e.start?e.start:0)):l.stat(e.path,function(n,i){if(n)t(n);else{var a=i.size-(e.start?e.start:0);t(null,a)}}):h(e,"httpVersion")?t(null,Number(e.headers["content-length"])):h(e,"httpModule")?(e.on("response",function(n){e.pause(),t(null,Number(n.headers["content-length"]))}),e.resume()):t("Unknown stream")},x.prototype._multiPartHeader=function(e,t,n){if("string"==typeof n.header)return n.header;var i,a=this._getContentDisposition(t,n),o=this._getContentType(t,n),s="",r={"Content-Disposition":["form-data",'name="'+e+'"'].concat(a||[]),"Content-Type":[].concat(o||[])};for(var c in"object"==typeof n.header&&g(r,n.header),r)if(h(r,c)){if(null==(i=r[c]))continue;Array.isArray(i)||(i=[i]),i.length&&(s+=c+": "+i.join("; ")+x.LINE_BREAK)}return"--"+this.getBoundary()+x.LINE_BREAK+s+x.LINE_BREAK},x.prototype._getContentDisposition=function(e,t){var n;if("string"==typeof t.filepath?n=o.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e&&(e.name||e.path)?n=o.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&h(e,"httpVersion")&&(n=o.basename(e.client._httpMessage.path||"")),n)return'filename="'+n+'"'},x.prototype._getContentType=function(e,t){var n=t.contentType;return!n&&e&&e.name&&(n=d.lookup(e.name)),!n&&e&&e.path&&(n=d.lookup(e.path)),!n&&e&&e.readable&&h(e,"httpVersion")&&(n=e.headers["content-type"]),n||!t.filepath&&!t.filename||(n=d.lookup(t.filepath||t.filename)),!n&&e&&"object"==typeof e&&(n=x.DEFAULT_CONTENT_TYPE),n},x.prototype._multiPartFooter=function(){return function(e){var t=x.LINE_BREAK;0===this._streams.length&&(t+=this._lastBoundary()),e(t)}.bind(this)},x.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+x.LINE_BREAK},x.prototype.getHeaders=function(e){var t,n={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)h(e,t)&&(n[t.toLowerCase()]=e[t]);return n},x.prototype.setBoundary=function(e){if("string"!=typeof e)throw new TypeError("FormData boundary must be a string");this._boundary=e},x.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary},x.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),n=0,i=this._streams.length;n<i;n++)"function"!=typeof this._streams[n]&&(e=Buffer.isBuffer(this._streams[n])?Buffer.concat([e,this._streams[n]]):Buffer.concat([e,Buffer.from(this._streams[n])]),"string"==typeof this._streams[n]&&this._streams[n].substring(2,t.length+2)===t||(e=Buffer.concat([e,Buffer.from(x.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])},x.prototype._generateBoundary=function(){this._boundary="--------------------------"+u.randomBytes(12).toString("hex")},x.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),e},x.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e},x.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;this._streams.length&&(t+=this._lastBoundary().length),this._valuesToMeasure.length?m.parallel(this._valuesToMeasure,this._lengthRetriever,function(n,i){n?e(n):(i.forEach(function(e){t+=e}),e(null,t))}):process.nextTick(e.bind(this,null,t))},x.prototype.submit=function(e,t){var n,i,a={method:"post"};return"string"==typeof e?(e=c(e),i=g({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},a)):(i=g(e,a)).port||(i.port="https:"===i.protocol?443:80),i.headers=this.getHeaders(e.headers),n="https:"===i.protocol?r.request(i):s.request(i),this.getLength(function(e,i){if(e&&"Unknown stream"!==e)this._error(e);else if(i&&n.setHeader("Content-Length",i),this.pipe(n),t){var a,o=function(e,i){return n.removeListener("error",o),n.removeListener("response",a),t.call(this,e,i)};a=o.bind(this,null),n.on("error",o),n.on("response",a)}}.bind(this)),n},x.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))},x.prototype.toString=function(){return"[object FormData]"},f(x.prototype,"FormData"),e.exports=x},2899(e){e.exports=function(e,t){return Object.keys(t).forEach(function(n){e[n]=e[n]||t[n]}),e}},2584(e,t,n){const i=n(627),a=n(6928),o=n(5522).mkdirsSync,s=n(8127).utimesMillisSync,r=n(3810);function c(e,t,n,o){const s=(o.dereference?i.statSync:i.lstatSync)(t);if(s.isDirectory())return function(e,t,n,a,o){return t?u(n,a,o):function(e,t,n,a){return i.mkdirSync(n),u(t,n,a),p(n,e)}(e.mode,n,a,o)}(s,e,t,n,o);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return function(e,t,n,a,o){return t?function(e,t,n,a){if(a.overwrite)return i.unlinkSync(n),l(e,t,n,a);if(a.errorOnExist)throw new Error(`'${n}' already exists`)}(e,n,a,o):l(e,n,a,o)}(s,e,t,n,o);if(s.isSymbolicLink())return function(e,t,n,o){let s=i.readlinkSync(t);if(o.dereference&&(s=a.resolve(process.cwd(),s)),e){let e;try{e=i.readlinkSync(n)}catch(e){if("EINVAL"===e.code||"UNKNOWN"===e.code)return i.symlinkSync(s,n);throw e}if(o.dereference&&(e=a.resolve(process.cwd(),e)),s!==e){if(r.isSrcSubdir(s,e))throw new Error(`Cannot copy '${s}' to a subdirectory of itself, '${e}'.`);if(r.isSrcSubdir(e,s))throw new Error(`Cannot overwrite '${e}' with '${s}'.`)}return function(e,t){return i.unlinkSync(t),i.symlinkSync(e,t)}(s,n)}return i.symlinkSync(s,n)}(e,t,n,o);if(s.isSocket())throw new Error(`Cannot copy a socket file: ${t}`);if(s.isFIFO())throw new Error(`Cannot copy a FIFO pipe: ${t}`);throw new Error(`Unknown file: ${t}`)}function l(e,t,n,a){return i.copyFileSync(t,n),a.preserveTimestamps&&function(e,t,n){(function(e){return!(128&e)})(e)&&function(e,t){p(e,128|t)}(n,e),function(e,t){const n=i.statSync(e);s(t,n.atime,n.mtime)}(t,n)}(e.mode,t,n),p(n,e.mode)}function p(e,t){return i.chmodSync(e,t)}function u(e,t,n){const a=i.opendirSync(e);try{let i;for(;null!==(i=a.readSync());)d(i.name,e,t,n)}finally{a.closeSync()}}function d(e,t,n,i){const o=a.join(t,e),s=a.join(n,e);if(i.filter&&!i.filter(o,s))return;const{destStat:l}=r.checkPathsSync(o,s,"copy",i);return c(l,o,s,i)}e.exports=function(e,t,n){"function"==typeof n&&(n={filter:n}),(n=n||{}).clobber=!("clobber"in n)||!!n.clobber,n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&"ia32"===process.arch&&process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended;\n\n\tsee https://github.com/jprichardson/node-fs-extra/issues/269","Warning","fs-extra-WARN0002");const{srcStat:s,destStat:l}=r.checkPathsSync(e,t,"copy",n);if(r.checkParentPathsSync(e,s,t,"copy"),n.filter&&!n.filter(e,t))return;const p=a.dirname(t);return i.existsSync(p)||o(p),c(l,e,t,n)}},2126(e,t,n){const i=n(6005),a=n(6928),{mkdirs:o}=n(5522),{pathExists:s}=n(7084),{utimesMillis:r}=n(8127),c=n(3810),{asyncIteratorConcurrentProcess:l}=n(3110);async function p(e,t,n){return!n.filter||n.filter(e,t)}async function u(e,t,n,o){const s=o.dereference?i.stat:i.lstat,r=await s(t);if(r.isDirectory())return async function(e,t,n,o,s){t||await i.mkdir(o),await l(await i.opendir(n),async e=>{const t=a.join(n,e.name),i=a.join(o,e.name);if(await p(t,i,s)){const{destStat:e}=await c.checkPaths(t,i,"copy",s);await u(e,t,i,s)}}),t||await i.chmod(o,e.mode)}(r,e,t,n,o);if(r.isFile()||r.isCharacterDevice()||r.isBlockDevice())return async function(e,t,n,a,o){if(!t)return d(e,n,a,o);if(o.overwrite)return await i.unlink(a),d(e,n,a,o);if(o.errorOnExist)throw new Error(`'${a}' already exists`)}(r,e,t,n,o);if(r.isSymbolicLink())return async function(e,t,n,o){let s=await i.readlink(t);if(o.dereference&&(s=a.resolve(process.cwd(),s)),!e)return i.symlink(s,n);let r=null;try{r=await i.readlink(n)}catch(e){if("EINVAL"===e.code||"UNKNOWN"===e.code)return i.symlink(s,n);throw e}if(o.dereference&&(r=a.resolve(process.cwd(),r)),s!==r){if(c.isSrcSubdir(s,r))throw new Error(`Cannot copy '${s}' to a subdirectory of itself, '${r}'.`);if(c.isSrcSubdir(r,s))throw new Error(`Cannot overwrite '${r}' with '${s}'.`)}return await i.unlink(n),i.symlink(s,n)}(e,t,n,o);if(r.isSocket())throw new Error(`Cannot copy a socket file: ${t}`);if(r.isFIFO())throw new Error(`Cannot copy a FIFO pipe: ${t}`);throw new Error(`Unknown file: ${t}`)}async function d(e,t,n,a){if(await i.copyFile(t,n),a.preserveTimestamps){128&e.mode||await function(e,t){return i.chmod(e,128|t)}(n,e.mode);const a=await i.stat(t);await r(n,a.atime,a.mtime)}return i.chmod(n,e.mode)}e.exports=async function(e,t,n={}){"function"==typeof n&&(n={filter:n}),n.clobber=!("clobber"in n)||!!n.clobber,n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&"ia32"===process.arch&&process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended;\n\n\tsee https://github.com/jprichardson/node-fs-extra/issues/269","Warning","fs-extra-WARN0001");const{srcStat:i,destStat:r}=await c.checkPaths(e,t,"copy",n);if(await c.checkParentPaths(e,i,t,"copy"),!await p(e,t,n))return;const l=a.dirname(t);await s(l)||await o(l),await u(r,e,t,n)}},5147(e,t,n){const i=n(4635).fromPromise;e.exports={copy:i(n(2126)),copySync:n(2584)}},2699(e,t,n){const i=n(4635).fromPromise,a=n(6005),o=n(6928),s=n(5522),r=n(786),c=i(async function(e){let t;try{t=await a.readdir(e)}catch{return s.mkdirs(e)}return Promise.all(t.map(t=>r.remove(o.join(e,t))))});function l(e){let t;try{t=a.readdirSync(e)}catch{return s.mkdirsSync(e)}t.forEach(t=>{t=o.join(e,t),r.removeSync(t)})}e.exports={emptyDirSync:l,emptydirSync:l,emptyDir:c,emptydir:c}},6740(e,t,n){const i=n(4635).fromPromise,a=n(6928),o=n(6005),s=n(5522);e.exports={createFile:i(async function(e){let t;try{t=await o.stat(e)}catch{}if(t&&t.isFile())return;const n=a.dirname(e);let i=null;try{i=await o.stat(n)}catch(t){if("ENOENT"===t.code)return await s.mkdirs(n),void await o.writeFile(e,"");throw t}i.isDirectory()?await o.writeFile(e,""):await o.readdir(n)}),createFileSync:function(e){let t;try{t=o.statSync(e)}catch{}if(t&&t.isFile())return;const n=a.dirname(e);try{o.statSync(n).isDirectory()||o.readdirSync(n)}catch(e){if(!e||"ENOENT"!==e.code)throw e;s.mkdirsSync(n)}o.writeFileSync(e,"")}}},3596(e,t,n){const{createFile:i,createFileSync:a}=n(6740),{createLink:o,createLinkSync:s}=n(9150),{createSymlink:r,createSymlinkSync:c}=n(1143);e.exports={createFile:i,createFileSync:a,ensureFile:i,ensureFileSync:a,createLink:o,createLinkSync:s,ensureLink:o,ensureLinkSync:s,createSymlink:r,createSymlinkSync:c,ensureSymlink:r,ensureSymlinkSync:c}},9150(e,t,n){const i=n(4635).fromPromise,a=n(6928),o=n(6005),s=n(5522),{pathExists:r}=n(7084),{areIdentical:c}=n(3810);e.exports={createLink:i(async function(e,t){let n,i;try{n=await o.lstat(t)}catch{}try{i=await o.lstat(e)}catch(e){throw e.message=e.message.replace("lstat","ensureLink"),e}if(n&&c(i,n))return;const l=a.dirname(t);await r(l)||await s.mkdirs(l),await o.link(e,t)}),createLinkSync:function(e,t){let n;try{n=o.lstatSync(t)}catch{}try{const t=o.lstatSync(e);if(n&&c(t,n))return}catch(e){throw e.message=e.message.replace("lstat","ensureLink"),e}const i=a.dirname(t);return o.existsSync(i)||s.mkdirsSync(i),o.linkSync(e,t)}}},1130(e,t,n){const i=n(6928),a=n(6005),{pathExists:o}=n(7084),s=n(4635).fromPromise;e.exports={symlinkPaths:s(async function(e,t){if(i.isAbsolute(e)){try{await a.lstat(e)}catch(e){throw e.message=e.message.replace("lstat","ensureSymlink"),e}return{toCwd:e,toDst:e}}const n=i.dirname(t),s=i.join(n,e);if(await o(s))return{toCwd:s,toDst:e};try{await a.lstat(e)}catch(e){throw e.message=e.message.replace("lstat","ensureSymlink"),e}return{toCwd:e,toDst:i.relative(n,e)}}),symlinkPathsSync:function(e,t){if(i.isAbsolute(e)){if(!a.existsSync(e))throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}const n=i.dirname(t),o=i.join(n,e);if(a.existsSync(o))return{toCwd:o,toDst:e};if(!a.existsSync(e))throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:i.relative(n,e)}}}},6036(e,t,n){const i=n(6005),a=n(4635).fromPromise;e.exports={symlinkType:a(async function(e,t){if(t)return t;let n;try{n=await i.lstat(e)}catch{return"file"}return n&&n.isDirectory()?"dir":"file"}),symlinkTypeSync:function(e,t){if(t)return t;let n;try{n=i.lstatSync(e)}catch{return"file"}return n&&n.isDirectory()?"dir":"file"}}},1143(e,t,n){const i=n(4635).fromPromise,a=n(6928),o=n(6005),{mkdirs:s,mkdirsSync:r}=n(5522),{symlinkPaths:c,symlinkPathsSync:l}=n(1130),{symlinkType:p,symlinkTypeSync:u}=n(6036),{pathExists:d}=n(7084),{areIdentical:m}=n(3810);e.exports={createSymlink:i(async function(e,t,n){let i;try{i=await o.lstat(t)}catch{}if(i&&i.isSymbolicLink()){let n;if(a.isAbsolute(e))n=await o.stat(e);else{const i=a.dirname(t),s=a.join(i,e);try{n=await o.stat(s)}catch{n=await o.stat(e)}}const i=await o.stat(t);if(m(n,i))return}const r=await c(e,t);e=r.toDst;const l=await p(r.toCwd,n),u=a.dirname(t);return await d(u)||await s(u),o.symlink(e,t,l)}),createSymlinkSync:function(e,t,n){let i;try{i=o.lstatSync(t)}catch{}if(i&&i.isSymbolicLink()){let n;if(a.isAbsolute(e))n=o.statSync(e);else{const i=a.dirname(t),s=a.join(i,e);try{n=o.statSync(s)}catch{n=o.statSync(e)}}const i=o.statSync(t);if(m(n,i))return}const s=l(e,t);e=s.toDst,n=u(s.toCwd,n);const c=a.dirname(t);return o.existsSync(c)||r(c),o.symlinkSync(e,t,n)}}},6005(e,t,n){const i=n(4635).fromCallback,a=n(627),o=["access","appendFile","chmod","chown","close","copyFile","cp","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","glob","lchmod","lchown","lutimes","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","statfs","symlink","truncate","unlink","utimes","writeFile"].filter(e=>"function"==typeof a[e]);Object.assign(t,a),o.forEach(e=>{t[e]=i(a[e])}),t.exists=function(e,t){return"function"==typeof t?a.exists(e,t):new Promise(t=>a.exists(e,t))},t.read=function(e,t,n,i,o,s){return"function"==typeof s?a.read(e,t,n,i,o,s):new Promise((s,r)=>{a.read(e,t,n,i,o,(e,t,n)=>{if(e)return r(e);s({bytesRead:t,buffer:n})})})},t.write=function(e,t,...n){return"function"==typeof n[n.length-1]?a.write(e,t,...n):new Promise((i,o)=>{a.write(e,t,...n,(e,t,n)=>{if(e)return o(e);i({bytesWritten:t,buffer:n})})})},t.readv=function(e,t,...n){return"function"==typeof n[n.length-1]?a.readv(e,t,...n):new Promise((i,o)=>{a.readv(e,t,...n,(e,t,n)=>{if(e)return o(e);i({bytesRead:t,buffers:n})})})},t.writev=function(e,t,...n){return"function"==typeof n[n.length-1]?a.writev(e,t,...n):new Promise((i,o)=>{a.writev(e,t,...n,(e,t,n)=>{if(e)return o(e);i({bytesWritten:t,buffers:n})})})},"function"==typeof a.realpath.native?t.realpath.native=i(a.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")},3985(e,t,n){e.exports={...n(6005),...n(5147),...n(2699),...n(3596),...n(636),...n(5522),...n(4563),...n(7196),...n(7084),...n(786)}},636(e,t,n){const i=n(4635).fromPromise,a=n(4474);a.outputJson=i(n(7422)),a.outputJsonSync=n(1576),a.outputJSON=a.outputJson,a.outputJSONSync=a.outputJsonSync,a.writeJSON=a.writeJson,a.writeJSONSync=a.writeJsonSync,a.readJSON=a.readJson,a.readJSONSync=a.readJsonSync,e.exports=a},4474(e,t,n){const i=n(4226);e.exports={readJson:i.readFile,readJsonSync:i.readFileSync,writeJson:i.writeFile,writeJsonSync:i.writeFileSync}},1576(e,t,n){const{stringify:i}=n(9955),{outputFileSync:a}=n(7196);e.exports=function(e,t,n){const o=i(t,n);a(e,o,n)}},7422(e,t,n){const{stringify:i}=n(9955),{outputFile:a}=n(7196);e.exports=async function(e,t,n={}){const o=i(t,n);await a(e,o,n)}},5522(e,t,n){const i=n(4635).fromPromise,{makeDir:a,makeDirSync:o}=n(8880),s=i(a);e.exports={mkdirs:s,mkdirsSync:o,mkdirp:s,mkdirpSync:o,ensureDir:s,ensureDirSync:o}},8880(e,t,n){const i=n(6005),{checkPath:a}=n(8147),o=e=>"number"==typeof e?e:{mode:511,...e}.mode;e.exports.makeDir=async(e,t)=>(a(e),i.mkdir(e,{mode:o(t),recursive:!0})),e.exports.makeDirSync=(e,t)=>(a(e),i.mkdirSync(e,{mode:o(t),recursive:!0}))},8147(e,t,n){const i=n(6928);e.exports.checkPath=function(e){if("win32"===process.platform&&/[<>:"|?*]/.test(e.replace(i.parse(e).root,""))){const t=new Error(`Path contains invalid characters: ${e}`);throw t.code="EINVAL",t}}},4563(e,t,n){const i=n(4635).fromPromise;e.exports={move:i(n(2366)),moveSync:n(9576)}},9576(e,t,n){const i=n(627),a=n(6928),o=n(5147).copySync,s=n(786).removeSync,r=n(5522).mkdirpSync,c=n(3810);function l(e,t,n){try{i.renameSync(e,t)}catch(i){if("EXDEV"!==i.code)throw i;return function(e,t,n){return o(e,t,{overwrite:n,errorOnExist:!0,preserveTimestamps:!0}),s(e)}(e,t,n)}}e.exports=function(e,t,n){const o=(n=n||{}).overwrite||n.clobber||!1,{srcStat:p,isChangingCase:u=!1}=c.checkPathsSync(e,t,"move",n);return c.checkParentPathsSync(e,p,t,"move"),function(e){const t=a.dirname(e);return a.parse(t).root===t}(t)||r(a.dirname(t)),function(e,t,n,a){if(a)return l(e,t,n);if(n)return s(t),l(e,t,n);if(i.existsSync(t))throw new Error("dest already exists.");return l(e,t,n)}(e,t,o,u)}},2366(e,t,n){const i=n(6005),a=n(6928),{copy:o}=n(5147),{remove:s}=n(786),{mkdirp:r}=n(5522),{pathExists:c}=n(7084),l=n(3810);e.exports=async function(e,t,n={}){const p=n.overwrite||n.clobber||!1,{srcStat:u,isChangingCase:d=!1}=await l.checkPaths(e,t,"move",n);await l.checkParentPaths(e,u,t,"move");const m=a.dirname(t);return a.parse(m).root!==m&&await r(m),async function(e,t,n,a){if(!a)if(n)await s(t);else if(await c(t))throw new Error("dest already exists.");try{await i.rename(e,t)}catch(i){if("EXDEV"!==i.code)throw i;await async function(e,t,n){const i={overwrite:n,errorOnExist:!0,preserveTimestamps:!0};return await o(e,t,i),s(e)}(e,t,n)}}(e,t,p,d)}},7196(e,t,n){const i=n(4635).fromPromise,a=n(6005),o=n(6928),s=n(5522),r=n(7084).pathExists;e.exports={outputFile:i(async function(e,t,n="utf-8"){const i=o.dirname(e);return await r(i)||await s.mkdirs(i),a.writeFile(e,t,n)}),outputFileSync:function(e,...t){const n=o.dirname(e);a.existsSync(n)||s.mkdirsSync(n),a.writeFileSync(e,...t)}}},7084(e,t,n){const i=n(4635).fromPromise,a=n(6005);e.exports={pathExists:i(function(e){return a.access(e).then(()=>!0).catch(()=>!1)}),pathExistsSync:a.existsSync}},786(e,t,n){const i=n(627),a=n(4635).fromCallback;e.exports={remove:a(function(e,t){i.rm(e,{recursive:!0,force:!0},t)}),removeSync:function(e){i.rmSync(e,{recursive:!0,force:!0})}}},3110(e){e.exports={asyncIteratorConcurrentProcess:async function(e,t){const n=[];for await(const i of e)n.push(t(i).then(()=>null,e=>e??new Error("unknown error")));await Promise.all(n.map(e=>e.then(e=>{if(null!==e)throw e})))}}},3810(e,t,n){const i=n(6005),a=n(6928),o=n(4635).fromPromise;function s(e,t){return void 0!==t.ino&&void 0!==t.dev&&t.ino===e.ino&&t.dev===e.dev}function r(e,t){const n=a.resolve(e).split(a.sep).filter(e=>e),i=a.resolve(t).split(a.sep).filter(e=>e);return n.every((e,t)=>i[t]===e)}function c(e,t,n){return`Cannot ${n} '${e}' to a subdirectory of itself, '${t}'.`}e.exports={checkPaths:o(async function(e,t,n,o){const{srcStat:l,destStat:p}=await function(e,t,n){const a=n.dereference?e=>i.stat(e,{bigint:!0}):e=>i.lstat(e,{bigint:!0});return Promise.all([a(e),a(t).catch(e=>{if("ENOENT"===e.code)return null;throw e})]).then(([e,t])=>({srcStat:e,destStat:t}))}(e,t,o);if(p){if(s(l,p)){const i=a.basename(e),o=a.basename(t);if("move"===n&&i!==o&&i.toLowerCase()===o.toLowerCase())return{srcStat:l,destStat:p,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(l.isDirectory()&&!p.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!l.isDirectory()&&p.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(l.isDirectory()&&r(e,t))throw new Error(c(e,t,n));return{srcStat:l,destStat:p}}),checkPathsSync:function(e,t,n,o){const{srcStat:l,destStat:p}=function(e,t,n){let a;const o=n.dereference?e=>i.statSync(e,{bigint:!0}):e=>i.lstatSync(e,{bigint:!0}),s=o(e);try{a=o(t)}catch(e){if("ENOENT"===e.code)return{srcStat:s,destStat:null};throw e}return{srcStat:s,destStat:a}}(e,t,o);if(p){if(s(l,p)){const i=a.basename(e),o=a.basename(t);if("move"===n&&i!==o&&i.toLowerCase()===o.toLowerCase())return{srcStat:l,destStat:p,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(l.isDirectory()&&!p.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!l.isDirectory()&&p.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(l.isDirectory()&&r(e,t))throw new Error(c(e,t,n));return{srcStat:l,destStat:p}},checkParentPaths:o(async function e(t,n,o,r){const l=a.resolve(a.dirname(t)),p=a.resolve(a.dirname(o));if(p===l||p===a.parse(p).root)return;let u;try{u=await i.stat(p,{bigint:!0})}catch(e){if("ENOENT"===e.code)return;throw e}if(s(n,u))throw new Error(c(t,o,r));return e(t,n,p,r)}),checkParentPathsSync:function e(t,n,o,r){const l=a.resolve(a.dirname(t)),p=a.resolve(a.dirname(o));if(p===l||p===a.parse(p).root)return;let u;try{u=i.statSync(p,{bigint:!0})}catch(e){if("ENOENT"===e.code)return;throw e}if(s(n,u))throw new Error(c(t,o,r));return e(t,n,p,r)},isSrcSubdir:r,areIdentical:s}},8127(e,t,n){const i=n(6005),a=n(4635).fromPromise;e.exports={utimesMillis:a(async function(e,t,n){const a=await i.open(e,"r+");let o=null;try{await i.futimes(a,t,n)}finally{try{await i.close(a)}catch(e){o=e}}if(o)throw o}),utimesMillisSync:function(e,t,n){const a=i.openSync(e,"r+");return i.futimesSync(a,t,n),i.closeSync(a)}}},9992(e){var t=Object.prototype.toString,n=Math.max,i=function(e,t){for(var n=[],i=0;i<e.length;i+=1)n[i]=e[i];for(var a=0;a<t.length;a+=1)n[a+e.length]=t[a];return n};e.exports=function(e){var a=this;if("function"!=typeof a||"[object Function]"!==t.apply(a))throw new TypeError("Function.prototype.bind called on incompatible "+a);for(var o,s=function(e){for(var t=[],n=1,i=0;n<e.length;n+=1,i+=1)t[i]=e[n];return t}(arguments),r=n(0,a.length-s.length),c=[],l=0;l<r;l++)c[l]="$"+l;if(o=Function("binder","return function ("+function(e){for(var t="",n=0;n<e.length;n+=1)t+=e[n],n+1<e.length&&(t+=",");return t}(c)+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof o){var t=a.apply(this,i(s,arguments));return Object(t)===t?t:this}return a.apply(e,i(s,arguments))}),a.prototype){var p=function(){};p.prototype=a.prototype,o.prototype=new p,p.prototype=null}return o}},9524(e,t,n){var i=n(9992);e.exports=Function.prototype.bind||i},9336(e,t,n){var i,a=n(5153),o=n(1488),s=n(8004),r=n(6469),c=n(2557),l=n(3429),p=n(1102),u=n(5966),d=n(7412),m=n(2418),f=n(7958),h=n(7384),g=n(250),x=n(1844),v=n(7279),y=Function,b=function(e){try{return y('"use strict"; return ('+e+").constructor;")()}catch(e){}},w=n(5667),_=n(9886),S=function(){throw new p},E=w?function(){try{return S}catch(e){try{return w(arguments,"callee").get}catch(e){return S}}}():S,C=n(1514)(),T=n(4252),$=n(3752),k=n(248),O=n(4811),N=n(6255),A={},P="undefined"!=typeof Uint8Array&&T?T(Uint8Array):i,j={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?i:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?i:ArrayBuffer,"%ArrayIteratorPrototype%":C&&T?T([][Symbol.iterator]()):i,"%AsyncFromSyncIteratorPrototype%":i,"%AsyncFunction%":A,"%AsyncGenerator%":A,"%AsyncGeneratorFunction%":A,"%AsyncIteratorPrototype%":A,"%Atomics%":"undefined"==typeof Atomics?i:Atomics,"%BigInt%":"undefined"==typeof BigInt?i:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?i:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?i:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?i:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":s,"%Float16Array%":"undefined"==typeof Float16Array?i:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?i:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?i:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?i:FinalizationRegistry,"%Function%":y,"%GeneratorFunction%":A,"%Int8Array%":"undefined"==typeof Int8Array?i:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?i:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?i:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":C&&T?T(T([][Symbol.iterator]())):i,"%JSON%":"object"==typeof JSON?JSON:i,"%Map%":"undefined"==typeof Map?i:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&C&&T?T((new Map)[Symbol.iterator]()):i,"%Math%":Math,"%Number%":Number,"%Object%":a,"%Object.getOwnPropertyDescriptor%":w,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?i:Promise,"%Proxy%":"undefined"==typeof Proxy?i:Proxy,"%RangeError%":r,"%ReferenceError%":c,"%Reflect%":"undefined"==typeof Reflect?i:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?i:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&C&&T?T((new Set)[Symbol.iterator]()):i,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?i:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":C&&T?T(""[Symbol.iterator]()):i,"%Symbol%":C?Symbol:i,"%SyntaxError%":l,"%ThrowTypeError%":E,"%TypedArray%":P,"%TypeError%":p,"%Uint8Array%":"undefined"==typeof Uint8Array?i:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?i:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?i:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?i:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"==typeof WeakMap?i:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?i:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?i:WeakSet,"%Function.prototype.call%":N,"%Function.prototype.apply%":O,"%Object.defineProperty%":_,"%Object.getPrototypeOf%":$,"%Math.abs%":d,"%Math.floor%":m,"%Math.max%":f,"%Math.min%":h,"%Math.pow%":g,"%Math.round%":x,"%Math.sign%":v,"%Reflect.getPrototypeOf%":k};if(T)try{null.error}catch(e){var F=T(T(e));j["%Error.prototype%"]=F}var R=function e(t){var n;if("%AsyncFunction%"===t)n=b("async function () {}");else if("%GeneratorFunction%"===t)n=b("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=b("async function* () {}");else if("%AsyncGenerator%"===t){var i=e("%AsyncGeneratorFunction%");i&&(n=i.prototype)}else if("%AsyncIteratorPrototype%"===t){var a=e("%AsyncGenerator%");a&&T&&(n=T(a.prototype))}return j[t]=n,n},L={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},I=n(9524),D=n(5630),M=I.call(N,Array.prototype.concat),B=I.call(O,Array.prototype.splice),z=I.call(N,String.prototype.replace),U=I.call(N,String.prototype.slice),V=I.call(N,RegExp.prototype.exec),q=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,H=/\\(\\)?/g,W=function(e,t){var n,i=e;if(D(L,i)&&(i="%"+(n=L[i])[0]+"%"),D(j,i)){var a=j[i];if(a===A&&(a=R(i)),void 0===a&&!t)throw new p("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:a}}throw new l("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new p("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new p('"allowMissing" argument must be a boolean');if(null===V(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=U(e,0,1),n=U(e,-1);if("%"===t&&"%"!==n)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var i=[];return z(e,q,function(e,t,n,a){i[i.length]=n?z(a,H,"$1"):t||e}),i}(e),i=n.length>0?n[0]:"",a=W("%"+i+"%",t),o=a.name,s=a.value,r=!1,c=a.alias;c&&(i=c[0],B(n,M([0,1],c)));for(var u=1,d=!0;u<n.length;u+=1){var m=n[u],f=U(m,0,1),h=U(m,-1);if(('"'===f||"'"===f||"`"===f||'"'===h||"'"===h||"`"===h)&&f!==h)throw new l("property names with quotes must have matching quotes");if("constructor"!==m&&d||(r=!0),D(j,o="%"+(i+="."+m)+"%"))s=j[o];else if(null!=s){if(!(m in s)){if(!t)throw new p("base intrinsic for "+e+" exists, but the property is not available.");return}if(w&&u+1>=n.length){var g=w(s,m);s=(d=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:s[m]}else d=D(s,m),s=s[m];d&&!r&&(j[o]=s)}}return s}},3752(e,t,n){var i=n(5153);e.exports=i.getPrototypeOf||null},248(e){e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},4252(e,t,n){var i=n(248),a=n(3752),o=n(7678);e.exports=i?function(e){return i(e)}:a?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return a(e)}:o?function(e){return o(e)}:null},5554(e,t,n){const{PassThrough:i}=n(2203);e.exports=e=>{e={...e};const{array:t}=e;let{encoding:n}=e;const a="buffer"===n;let o=!1;t?o=!(n||a):n=n||"utf8",a&&(n=null);const s=new i({objectMode:o});n&&s.setEncoding(n);let r=0;const c=[];return s.on("data",e=>{c.push(e),o?r=c.length:r+=e.length}),s.getBufferedValue=()=>t?c:a?Buffer.concat(c,r):c.join(""),s.getBufferedLength=()=>r,s}},5279(e,t,n){const{constants:i}=n(181),a=n(5462),o=n(5554);class s extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}async function r(e,t){if(!e)return Promise.reject(new Error("Expected a stream"));t={maxBuffer:1/0,...t};const{maxBuffer:n}=t;let r;return await new Promise((c,l)=>{const p=e=>{e&&r.getBufferedLength()<=i.MAX_LENGTH&&(e.bufferedData=r.getBufferedValue()),l(e)};r=a(e,o(t),e=>{e?p(e):c()}),r.on("data",()=>{r.getBufferedLength()>n&&p(new s)})}),r.getBufferedValue()}e.exports=r,e.exports.default=r,e.exports.buffer=(e,t)=>r(e,{...t,encoding:"buffer"}),e.exports.array=(e,t)=>r(e,{...t,array:!0}),e.exports.MaxBufferError=s},1333(e){e.exports=Object.getOwnPropertyDescriptor},5667(e,t,n){var i=n(1333);if(i)try{i([],"length")}catch(e){i=null}e.exports=i},8359(e){e.exports=function(e){if(null===e||"object"!=typeof e)return e;if(e instanceof Object)var n={__proto__:t(e)};else n=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}),n};var t=Object.getPrototypeOf||function(e){return e.__proto__}},627(e,t,n){var i,a,o=n(9896),s=n(8254),r=n(111),c=n(8359),l=n(9023);function p(e,t){Object.defineProperty(e,i,{get:function(){return t}})}"function"==typeof Symbol&&"function"==typeof Symbol.for?(i=Symbol.for("graceful-fs.queue"),a=Symbol.for("graceful-fs.previous")):(i="___graceful-fs.queue",a="___graceful-fs.previous");var u,d=function(){};if(l.debuglog?d=l.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(d=function(){var e=l.format.apply(l,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: "),console.error(e)}),!o[i]){var m=global[i]||[];p(o,m),o.close=function(e){function t(t,n){return e.call(o,t,function(e){e||g(),"function"==typeof n&&n.apply(this,arguments)})}return Object.defineProperty(t,a,{value:e}),t}(o.close),o.closeSync=function(e){function t(t){e.apply(o,arguments),g()}return Object.defineProperty(t,a,{value:e}),t}(o.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){d(o[i]),n(2613).equal(o[i].length,0)})}function f(e){s(e),e.gracefulify=f,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,i){return"function"==typeof n&&(i=n,n=null),function e(n,i,a,o){return t(n,i,function(t){!t||"EMFILE"!==t.code&&"ENFILE"!==t.code?"function"==typeof a&&a.apply(this,arguments):h([e,[n,i,a],t,o||Date.now(),Date.now()])})}(e,n,i)};var n=e.writeFile;e.writeFile=function(e,t,i,a){return"function"==typeof i&&(a=i,i=null),function e(t,i,a,o,s){return n(t,i,a,function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?"function"==typeof o&&o.apply(this,arguments):h([e,[t,i,a,o],n,s||Date.now(),Date.now()])})}(e,t,i,a)};var i=e.appendFile;i&&(e.appendFile=function(e,t,n,a){return"function"==typeof n&&(a=n,n=null),function e(t,n,a,o,s){return i(t,n,a,function(i){!i||"EMFILE"!==i.code&&"ENFILE"!==i.code?"function"==typeof o&&o.apply(this,arguments):h([e,[t,n,a,o],i,s||Date.now(),Date.now()])})}(e,t,n,a)});var a=e.copyFile;a&&(e.copyFile=function(e,t,n,i){return"function"==typeof n&&(i=n,n=0),function e(t,n,i,o,s){return a(t,n,i,function(a){!a||"EMFILE"!==a.code&&"ENFILE"!==a.code?"function"==typeof o&&o.apply(this,arguments):h([e,[t,n,i,o],a,s||Date.now(),Date.now()])})}(e,t,n,i)});var o=e.readdir;e.readdir=function(e,t,n){"function"==typeof t&&(n=t,t=null);var i=c.test(process.version)?function(e,t,n,i){return o(e,a(e,t,n,i))}:function(e,t,n,i){return o(e,t,a(e,t,n,i))};return i(e,t,n);function a(e,t,n,a){return function(o,s){!o||"EMFILE"!==o.code&&"ENFILE"!==o.code?(s&&s.sort&&s.sort(),"function"==typeof n&&n.call(this,o,s)):h([i,[e,t,n],o,a||Date.now(),Date.now()])}}};var c=/^v[0-5]\./;if("v0.8"===process.version.substr(0,4)){var l=r(e);g=l.ReadStream,x=l.WriteStream}var p=e.ReadStream;p&&(g.prototype=Object.create(p.prototype),g.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 u=e.WriteStream;u&&(x.prototype=Object.create(u.prototype),x.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 g},set:function(e){g=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return x},set:function(e){x=e},enumerable:!0,configurable:!0});var d=g;Object.defineProperty(e,"FileReadStream",{get:function(){return d},set:function(e){d=e},enumerable:!0,configurable:!0});var m=x;function g(e,t){return this instanceof g?(p.apply(this,arguments),this):g.apply(Object.create(g.prototype),arguments)}function x(e,t){return this instanceof x?(u.apply(this,arguments),this):x.apply(Object.create(x.prototype),arguments)}Object.defineProperty(e,"FileWriteStream",{get:function(){return m},set:function(e){m=e},enumerable:!0,configurable:!0});var v=e.open;function y(e,t,n,i){return"function"==typeof n&&(i=n,n=null),function e(t,n,i,a,o){return v(t,n,i,function(s,r){!s||"EMFILE"!==s.code&&"ENFILE"!==s.code?"function"==typeof a&&a.apply(this,arguments):h([e,[t,n,i,a],s,o||Date.now(),Date.now()])})}(e,t,n,i)}return e.open=y,e}function h(e){d("ENQUEUE",e[0].name,e[1]),o[i].push(e),x()}function g(){for(var e=Date.now(),t=0;t<o[i].length;++t)o[i][t].length>2&&(o[i][t][3]=e,o[i][t][4]=e);x()}function x(){if(clearTimeout(u),u=void 0,0!==o[i].length){var e=o[i].shift(),t=e[0],n=e[1],a=e[2],s=e[3],r=e[4];if(void 0===s)d("RETRY",t.name,n),t.apply(null,n);else if(Date.now()-s>=6e4){d("TIMEOUT",t.name,n);var c=n.pop();"function"==typeof c&&c.call(null,a)}else{var l=Date.now()-r,p=Math.max(r-s,1);l>=Math.min(1.2*p,100)?(d("RETRY",t.name,n),t.apply(null,n.concat([s]))):o[i].push(e)}void 0===u&&(u=setTimeout(x,0))}}global[i]||p(global,o[i]),e.exports=f(c(o)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!o.__patched&&(e.exports=f(o),o.__patched=!0)},111(e,t,n){var i=n(2203).Stream;e.exports=function(e){return{ReadStream:function t(n,a){if(!(this instanceof t))return new t(n,a);i.call(this);var o=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,a=a||{};for(var s=Object.keys(a),r=0,c=s.length;r<c;r++){var l=s[r];this[l]=a[l]}if(this.encoding&&this.setEncoding(this.encoding),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}null===this.fd?e.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()}):process.nextTick(function(){o._read()})},WriteStream:function t(n,a){if(!(this instanceof t))return new t(n,a);i.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,a=a||{};for(var o=Object.keys(a),s=0,r=o.length;s<r;s++){var c=o[s];this[c]=a[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=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}},8254(e,t,n){var i=n(9140),a=process.cwd,o=null,s=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return o||(o=a.call(process)),o};try{process.cwd()}catch(e){}if("function"==typeof process.chdir){var r=process.chdir;process.chdir=function(e){o=null,r.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,r)}e.exports=function(e){function t(t){return t?function(n,i,a){return t.call(e,n,i,function(e){l(e)&&(e=null),a&&a.apply(this,arguments)})}:t}function n(t){return t?function(n,i){try{return t.call(e,n,i)}catch(e){if(!l(e))throw e}}:t}function a(t){return t?function(n,i,a,o){return t.call(e,n,i,a,function(e){l(e)&&(e=null),o&&o.apply(this,arguments)})}:t}function o(t){return t?function(n,i,a){try{return t.call(e,n,i,a)}catch(e){if(!l(e))throw e}}:t}function r(t){return t?function(n,i,a){function o(e,t){t&&(t.uid<0&&(t.uid+=4294967296),t.gid<0&&(t.gid+=4294967296)),a&&a.apply(this,arguments)}return"function"==typeof i&&(a=i,i=null),i?t.call(e,n,i,o):t.call(e,n,o)}:t}function c(t){return t?function(n,i){var a=i?t.call(e,n,i):t.call(e,n);return a&&(a.uid<0&&(a.uid+=4294967296),a.gid<0&&(a.gid+=4294967296)),a}:t}function l(e){return!e||"ENOSYS"===e.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code)}var p;i.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(e){e.lchmod=function(t,n,a){e.open(t,i.O_WRONLY|i.O_SYMLINK,n,function(t,i){t?a&&a(t):e.fchmod(i,n,function(t){e.close(i,function(e){a&&a(t||e)})})})},e.lchmodSync=function(t,n){var a,o=e.openSync(t,i.O_WRONLY|i.O_SYMLINK,n),s=!0;try{a=e.fchmodSync(o,n),s=!1}finally{if(s)try{e.closeSync(o)}catch(e){}else e.closeSync(o)}return a}}(e),e.lutimes||function(e){i.hasOwnProperty("O_SYMLINK")&&e.futimes?(e.lutimes=function(t,n,a,o){e.open(t,i.O_SYMLINK,function(t,i){t?o&&o(t):e.futimes(i,n,a,function(t){e.close(i,function(e){o&&o(t||e)})})})},e.lutimesSync=function(t,n,a){var o,s=e.openSync(t,i.O_SYMLINK),r=!0;try{o=e.futimesSync(s,n,a),r=!1}finally{if(r)try{e.closeSync(s)}catch(e){}else e.closeSync(s)}return o}):e.futimes&&(e.lutimes=function(e,t,n,i){i&&process.nextTick(i)},e.lutimesSync=function(){})}(e),e.chown=a(e.chown),e.fchown=a(e.fchown),e.lchown=a(e.lchown),e.chmod=t(e.chmod),e.fchmod=t(e.fchmod),e.lchmod=t(e.lchmod),e.chownSync=o(e.chownSync),e.fchownSync=o(e.fchownSync),e.lchownSync=o(e.lchownSync),e.chmodSync=n(e.chmodSync),e.fchmodSync=n(e.fchmodSync),e.lchmodSync=n(e.lchmodSync),e.stat=r(e.stat),e.fstat=r(e.fstat),e.lstat=r(e.lstat),e.statSync=c(e.statSync),e.fstatSync=c(e.fstatSync),e.lstatSync=c(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(e,t,n){n&&process.nextTick(n)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(e,t,n,i){i&&process.nextTick(i)},e.lchownSync=function(){}),"win32"===s&&(e.rename="function"!=typeof e.rename?e.rename:function(t){function n(n,i,a){var o=Date.now(),s=0;t(n,i,function r(c){if(c&&("EACCES"===c.code||"EPERM"===c.code||"EBUSY"===c.code)&&Date.now()-o<6e4)return setTimeout(function(){e.stat(i,function(e,o){e&&"ENOENT"===e.code?t(n,i,r):a(c)})},s),void(s<100&&(s+=10));a&&a(c)})}return Object.setPrototypeOf&&Object.setPrototypeOf(n,t),n}(e.rename)),e.read="function"!=typeof e.read?e.read:function(t){function n(n,i,a,o,s,r){var c;if(r&&"function"==typeof r){var l=0;c=function(p,u,d){if(p&&"EAGAIN"===p.code&&l<10)return l++,t.call(e,n,i,a,o,s,c);r.apply(this,arguments)}}return t.call(e,n,i,a,o,s,c)}return Object.setPrototypeOf&&Object.setPrototypeOf(n,t),n}(e.read),e.readSync="function"!=typeof e.readSync?e.readSync:(p=e.readSync,function(t,n,i,a,o){for(var s=0;;)try{return p.call(e,t,n,i,a,o)}catch(e){if("EAGAIN"===e.code&&s<10){s++;continue}throw e}})}},4891(e){e.exports=(e,t)=>{t=t||process.argv;const n=e.startsWith("-")?"":1===e.length?"-":"--",i=t.indexOf(n+e),a=t.indexOf("--");return-1!==i&&(-1===a||i<a)}},1514(e,t,n){var i="undefined"!=typeof Symbol&&Symbol,a=n(9712);e.exports=function(){return"function"==typeof i&&"function"==typeof Symbol&&"symbol"==typeof i("foo")&&"symbol"==typeof Symbol("bar")&&a()}},9712(e){e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var i in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var a=Object.getOwnPropertySymbols(e);if(1!==a.length||a[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},7185(e,t,n){var i=n(9712);e.exports=function(){return i()&&!!Symbol.toStringTag}},5630(e,t,n){var i=Function.prototype.call,a=Object.prototype.hasOwnProperty,o=n(9524);e.exports=o.call(i,a)},4226(e,t,n){let i;try{i=n(627)}catch(e){i=n(9896)}const a=n(4635),{stringify:o,stripBom:s}=n(9955),r=a.fromPromise(async function(e,t={}){"string"==typeof t&&(t={encoding:t});const n=t.fs||i,o=!("throws"in t)||t.throws;let r,c=await a.fromCallback(n.readFile)(e,t);c=s(c);try{r=JSON.parse(c,t?t.reviver:null)}catch(t){if(o)throw t.message=`${e}: ${t.message}`,t;return null}return r}),c=a.fromPromise(async function(e,t,n={}){const s=n.fs||i,r=o(t,n);await a.fromCallback(s.writeFile)(e,r,n)});e.exports={readFile:r,readFileSync:function(e,t={}){"string"==typeof t&&(t={encoding:t});const n=t.fs||i,a=!("throws"in t)||t.throws;try{let i=n.readFileSync(e,t);return i=s(i),JSON.parse(i,t.reviver)}catch(t){if(a)throw t.message=`${e}: ${t.message}`,t;return null}},writeFile:c,writeFileSync:function(e,t,n={}){const a=n.fs||i,s=o(t,n);return a.writeFileSync(e,s,n)}}},9955(e){e.exports={stringify:function(e,{EOL:t="\n",finalEOL:n=!0,replacer:i=null,spaces:a}={}){const o=n?t:"";return JSON.stringify(e,i,a).replace(/\n/g,t)+o},stripBom:function(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}}},7412(e){e.exports=Math.abs},2418(e){e.exports=Math.floor},9313(e){e.exports=Number.isNaN||function(e){return e!=e}},7958(e){e.exports=Math.max},7384(e){e.exports=Math.min},250(e){e.exports=Math.pow},1844(e){e.exports=Math.round},7279(e,t,n){var i=n(9313);e.exports=function(e){return i(e)||0===e?e:e<0?-1:1}},7004(e,t,n){e.exports=n(2087)},2829(e,t,n){var i,a,o,s=n(7004),r=n(6928).extname,c=/^\s*([^;\s]*)(?:;|\s|$)/,l=/^text\//i;function p(e){if(!e||"string"!=typeof e)return!1;var t=c.exec(e),n=t&&s[t[1].toLowerCase()];return n&&n.charset?n.charset:!(!t||!l.test(t[1]))&&"UTF-8"}t.charset=p,t.charsets={lookup:p},t.contentType=function(e){if(!e||"string"!=typeof e)return!1;var n=-1===e.indexOf("/")?t.lookup(e):e;if(!n)return!1;if(-1===n.indexOf("charset")){var i=t.charset(n);i&&(n+="; charset="+i.toLowerCase())}return n},t.extension=function(e){if(!e||"string"!=typeof e)return!1;var n=c.exec(e),i=n&&t.extensions[n[1].toLowerCase()];return!(!i||!i.length)&&i[0]},t.extensions=Object.create(null),t.lookup=function(e){if(!e||"string"!=typeof e)return!1;var n=r("x."+e).toLowerCase().substr(1);return n&&t.types[n]||!1},t.types=Object.create(null),i=t.extensions,a=t.types,o=["nginx","apache",void 0,"iana"],Object.keys(s).forEach(function(e){var t=s[e],n=t.extensions;if(n&&n.length){i[e]=n;for(var r=0;r<n.length;r++){var c=n[r];if(a[c]){var l=o.indexOf(s[a[c]].source),p=o.indexOf(t.source);if("application/octet-stream"!==a[c]&&(l>p||l===p&&"application/"===a[c].substr(0,12)))continue}a[c]=e}}})},7821(e){var t=1e3,n=60*t,i=60*n,a=24*i,o=7*a;function s(e,t,n,i){var a=t>=1.5*n;return Math.round(e/n)+" "+i+(a?"s":"")}e.exports=function(e,r){r=r||{};var c,l,p=typeof e;if("string"===p&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(s){var r=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*r;case"weeks":case"week":case"w":return r*o;case"days":case"day":case"d":return r*a;case"hours":case"hour":case"hrs":case"hr":case"h":return r*i;case"minutes":case"minute":case"mins":case"min":case"m":return r*n;case"seconds":case"second":case"secs":case"sec":case"s":return r*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}(e);if("number"===p&&isFinite(e))return r.long?(c=e,(l=Math.abs(c))>=a?s(c,l,a,"day"):l>=i?s(c,l,i,"hour"):l>=n?s(c,l,n,"minute"):l>=t?s(c,l,t,"second"):c+" ms"):function(e){var o=Math.abs(e);return o>=a?Math.round(e/a)+"d":o>=i?Math.round(e/i)+"h":o>=n?Math.round(e/n)+"m":o>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},3866(e){var t=1e3,n=60*t,i=60*n,a=24*i,o=7*a;function s(e,t,n,i){var a=t>=1.5*n;return Math.round(e/n)+" "+i+(a?"s":"")}e.exports=function(e,r){r=r||{};var c,l,p=typeof e;if("string"===p&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(s){var r=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*r;case"weeks":case"week":case"w":return r*o;case"days":case"day":case"d":return r*a;case"hours":case"hour":case"hrs":case"hr":case"h":return r*i;case"minutes":case"minute":case"mins":case"min":case"m":return r*n;case"seconds":case"second":case"secs":case"sec":case"s":return r*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}(e);if("number"===p&&isFinite(e))return r.long?(c=e,(l=Math.abs(c))>=a?s(c,l,a,"day"):l>=i?s(c,l,i,"hour"):l>=n?s(c,l,n,"minute"):l>=t?s(c,l,t,"second"):c+" ms"):function(e){var o=Math.abs(e);return o>=a?Math.round(e/a)+"d":o>=i?Math.round(e/i)+"h":o>=n?Math.round(e/n)+"m":o>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},7992(e,t,n){var i=n(4008);function a(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function o(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},n=e.name||"Function wrapped with `once`";return t.onceError=n+" shouldn't be called more than once",t.called=!1,t}e.exports=i(a),e.exports.strict=i(o),a.proto=a(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return a(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return o(this)},configurable:!0})})},7939(e){function t(){this.pending=0,this.max=1/0,this.listeners=[],this.waiting=[],this.error=null}function n(e){e.pending+=1;var t=!1;return function(a){if(t)throw new Error("callback called twice");if(t=!0,e.error=e.error||a,e.pending-=1,e.waiting.length>0&&e.pending<e.max)i(e,e.waiting.shift());else if(0===e.pending){var o=e.listeners;e.listeners=[],o.forEach(n)}};function n(t){t(e.error)}}function i(e,t){t(n(e))}e.exports=t,t.prototype.go=function(e){this.pending<this.max?i(this,e):this.waiting.push(e)},t.prototype.wait=function(e){0===this.pending?e(this.error):this.listeners.push(e)},t.prototype.hold=function(){return n(this)}},6350(e,t,n){var i=n(7016).parse,a={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},o=String.prototype.endsWith||function(e){return e.length<=this.length&&-1!==this.indexOf(e,this.length-e.length)};function s(e){return process.env[e.toLowerCase()]||process.env[e.toUpperCase()]||""}t.getProxyForUrl=function(e){var t="string"==typeof e?i(e):e||{},n=t.protocol,r=t.host,c=t.port;if("string"!=typeof r||!r||"string"!=typeof n)return"";if(n=n.split(":",1)[0],!function(e,t){var n=(s("npm_config_no_proxy")||s("no_proxy")).toLowerCase();return!n||"*"!==n&&n.split(/[,\s]/).every(function(n){if(!n)return!0;var i=n.match(/^(.+):(\d+)$/),a=i?i[1]:n,s=i?parseInt(i[2]):0;return!(!s||s===t)||(/^[.*]/.test(a)?("*"===a.charAt(0)&&(a=a.slice(1)),!o.call(e,a)):e!==a)})}(r=r.replace(/:\d*$/,""),c=parseInt(c)||a[n]||0))return"";var l=s("npm_config_"+n+"_proxy")||s(n+"_proxy")||s("npm_config_proxy")||s("all_proxy");return l&&-1===l.indexOf("://")&&(l=n+"://"+l),l}},5462(e,t,n){var i,a=n(7992),o=n(3270);try{i=n(9896)}catch(e){}var s=function(){},r="undefined"!=typeof process&&/^v?\.0/.test(process.version),c=function(e){return"function"==typeof e},l=function(e){e()},p=function(e,t){return e.pipe(t)};e.exports=function(){var e,t=Array.prototype.slice.call(arguments),n=c(t[t.length-1]||s)&&t.pop()||s;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Error("pump requires two streams per minimum");var u=t.map(function(p,d){var m=d<t.length-1;return function(e,t,n,l){l=a(l);var p=!1;e.on("close",function(){p=!0}),o(e,{readable:t,writable:n},function(e){if(e)return l(e);p=!0,l()});var u=!1;return function(t){if(!p&&!u)return u=!0,function(e){return!!r&&!!i&&(e instanceof(i.ReadStream||s)||e instanceof(i.WriteStream||s))&&c(e.close)}(e)?e.close(s):function(e){return e.setHeader&&c(e.abort)}(e)?e.abort():c(e.destroy)?e.destroy():void l(t||new Error("stream was destroyed"))}}(p,m,d>0,function(t){e||(e=t),t&&u.forEach(l),m||(u.forEach(l),n(e))})});return t.reduce(p)}},4347(e){const t="[",n={to:(e,n)=>n?`${t}${n+1};${e+1}H`:`${t}${e+1}G`,move(e,n){let i="";return e<0?i+=`${t}${-e}D`:e>0&&(i+=`${t}${e}C`),n<0?i+=`${t}${-n}A`:n>0&&(i+=`${t}${n}B`),i},up:(e=1)=>`${t}${e}A`,down:(e=1)=>`${t}${e}B`,forward:(e=1)=>`${t}${e}C`,backward:(e=1)=>`${t}${e}D`,nextLine:(e=1)=>`${t}E`.repeat(e),prevLine:(e=1)=>`${t}F`.repeat(e),left:`${t}G`,hide:`${t}?25l`,show:`${t}?25h`,save:"7",restore:"8"},i={up:(e=1)=>`${t}S`.repeat(e),down:(e=1)=>`${t}T`.repeat(e)},a={screen:`${t}2J`,up:(e=1)=>`${t}1J`.repeat(e),down:(e=1)=>`${t}J`.repeat(e),line:`${t}2K`,lineEnd:`${t}K`,lineStart:`${t}1K`,lines(e){let t="";for(let i=0;i<e;i++)t+=this.line+(i<e-1?n.up():"");return e&&(t+=n.left),t}};e.exports={cursor:n,scroll:i,erase:a,beep:""}},1754(e,t,n){const i=n(857),a=n(4891),o=process.env;let s;function r(e){const t=function(e){if(!1===s)return 0;if(a("color=16m")||a("color=full")||a("color=truecolor"))return 3;if(a("color=256"))return 2;if(e&&!e.isTTY&&!0!==s)return 0;const t=s?1:0;if("win32"===process.platform){const e=i.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in o)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in o)||"codeship"===o.CI_NAME?1:t;if("TEAMCITY_VERSION"in o)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0;if("truecolor"===o.COLORTERM)return 3;if("TERM_PROGRAM"in o){const e=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(o.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)||"COLORTERM"in o?1:(o.TERM,t)}(e);return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(t)}a("no-color")||a("no-colors")||a("color=false")?s=!1:(a("color")||a("colors")||a("color=true")||a("color=always"))&&(s=!0),"FORCE_COLOR"in o&&(s=0===o.FORCE_COLOR.length||0!==parseInt(o.FORCE_COLOR,10)),e.exports={supportsColor:r,stdout:r(process.stdout),stderr:r(process.stderr)}},8257(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(8330)),o=n(3219),s=n(6518),r=n(5396),c=n(7959),l=n(8998);(async function(){const e=new o.Command;if(e.name("sharedev").description("sharedev command line tool").version(a.default.version,"-v, --version","output the current version").showHelpAfterError(!0),function(e){if(function(e){return e.slice(2).some(e=>"--help"===e||"-h"===e)}(e))return!0;if(function(e){return e.slice(2).some(e=>"--version"===e||"-v"===e)}(e))return!0;return"init"===function(e){const t=e.slice(2),n=[],i=new Set(["--ea","--domain","--certificate","--platform"]);for(let e=0;e<t.length;e+=1){const a=t[e];if(a.startsWith("-")){if(a.startsWith("--")){const[t]=a.split("=");i.has(t)&&!a.includes("=")&&(e+=1);continue}}else if(n.push(a),2===n.length)break}return n}(e)[0]}(process.argv))return(0,s.registerNamespaces)(e,function(){const e=process.cwd();return{cwd:e,verbose:!1,settings:{certificate:"",domain:"https://help.invalid",settingsPath:"",settingsDir:e},workspaceRoot:e}}()),void await e.parseAsync(process.argv,{from:"node"});const t=await(0,r.createCliRuntimeContext)({});l.requestService.configure(t.settings),(0,s.registerNamespaces)(e,t),await e.parseAsync(process.argv,{from:"node"})})().catch(e=>{const t=e instanceof Error?e.message:String(e);c.loggerService.error(t),process.exitCode=1})},8125(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.registerAplNamespace=function(e,t){const n=e.command("apl").description("APL workspace commands");n.addHelpText("after",'\nExamples:\n $ sharedev apl list\n $ sharedev apl info AccountQuery --bind AccountObj\n $ sharedev apl pull AccountQuery\n $ sharedev apl pull --all\n $ sharedev apl diff AccountQuery --remote latest\n $ sharedev apl push AccountQuery -m "update query logic"\n'),n.command("list").description("List APL functions").action((0,i.createCommandAction)("apl","list",t,async({context:e})=>{await(0,a.aplListCommand)(e)})),n.command("info <apiName>").description("Show APL function details").option("--bind <bindingObjectApiName>","Provide binding object api name for bound functions").action((0,i.createCommandAction)("apl","info",t,async({args:e,options:t,context:n})=>{await(0,a.aplInfoCommand)(e[0],n,t)})),n.command("pull [apiName]").description("Pull APL source from remote").option("--all","Pull all APL functions").action((0,i.createCommandAction)("apl","pull",t,async({args:e,options:t,context:n})=>{await(0,a.aplPullCommand)(e[0],n,t)})),n.command("diff [apiName]").description("Compare local APL source with snapshot or remote version").option("-r, --remote <versionOrLatest>","Compare with remote version or latest").action((0,i.createCommandAction)("apl","diff",t,async({args:e,options:t,context:n})=>{await(0,a.aplDiffCommand)(e[0],n,t)})),n.command("push [apiName]").description("Push local APL source to remote with a required commit comment").requiredOption("-m, --remark <comment>","Required push comment submitted as remote commit_log; [apiName] targets one function, omit it to push all tracked local changes").option("--force","Force push only when remote version changed").action((0,i.createCommandAction)("apl","push",t,async({args:e,options:t,context:n})=>{await(0,a.aplPushCommand)(e[0],n,t)})),n.command("reset [apiName]").description("Reset local APL source to remote latest or a specific version").option("-r, --remote <versionOrLatest>","Reset to remote latest or a specific version").action((0,i.createCommandAction)("apl","reset",t,async({args:e,options:t,context:n})=>{await(0,a.aplResetCommand)(e[0],n,t)})),n.command("analyze [apiName]").description("Analyze local APL source against remote metadata").action((0,i.createCommandAction)("apl","analyze",t,async({args:e,context:t})=>{await(0,a.aplAnalyzeCommand)(e[0],t)})),n.command("compile [apiName]").description("Compile-check local APL source against remote metadata").action((0,i.createCommandAction)("apl","compile",t,async({args:e,context:t})=>{await(0,a.aplCompileCommand)(e[0],t)})),n.command("debug [apiName]").description("Debug local tracked APL source against remote metadata").option("--data-id <id>","Pass object data ID for bound-object debug runs").option("--param <name=value>","Pass a debug parameter value; repeat to provide multiple params").action((0,i.createCommandAction)("apl","debug",t,async({args:e,options:t,context:n})=>{await(0,a.aplDebugCommand)(e[0],n,t)})),n.command("create").description("Create a new APL function/class and write local groovy source").option("--api-name <apiName>","APL API name").option("--function-name <functionName>","APL display/function name").option("--type <type>","APL type: function | class","function").option("--namespace <namespace>","Namespace value").option("--package <packageName>","Package suffix without fx.custom.apl. prefix").option("--return-type <returnType>","Return type (required when --type function)").option("--bind <bindingObjectApiName>","Binding object API name, or NONE for unbound").option("--remark <remark>","Description (max 200 chars)").option("--template-id <templateId>","Code template id from remote template list").action((0,i.createCommandAction)("apl","create",t,async({options:e,context:t})=>{await(0,a.aplCreateCommand)(t,e)}))};const i=n(5882),a=n(4965)},9571(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.registerDevMetadataNamespace=function(e,t){const n=e.command("dev-metadata").description("Download development metadata");n.addHelpText("after","\nExamples:\n $ sharedev dev-metadata search Account\n $ sharedev dev-metadata info AccountObj\n $ sharedev dev-metadata download AccountObj\n $ sharedev dev-metadata download --all\n $ sharedev dev-metadata namespace\n $ sharedev dev-metadata namespace --output ./tmp/dev-metadata\n"),n.command("search [query]").description("Search object metadata by api name or display name").action((0,i.createCommandAction)("dev-metadata","search",t,async({args:e,context:t})=>{await(0,a.objectSearchCommand)(e[0],t)})),n.command("info [apiName]").description("Show object metadata details").action((0,i.createCommandAction)("dev-metadata","info",t,async({args:e,context:t})=>{await(0,a.objectInfoCommand)(e[0],t)})),n.command("download [apiName]").description("Download object describe markdown files").option("--all","Download all object describe markdown files").option("--output <dir>","Output directory for object metadata files").action((0,i.createCommandAction)("dev-metadata","download",t,async({args:e,options:t,context:n})=>{await(0,a.objectDownloadCommand)(e[0],n,t)})),n.command("namespace").description("Download all namespaces from runtime metadata endpoint").option("--output <dir>","Output directory for namespace metadata file").action((0,i.createCommandAction)("dev-metadata","namespace",t,async({options:e,context:t})=>{await(0,a.namespaceDownloadCommand)(t,e)}))};const i=n(5882),a=n(5637)},7071(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.registerDocsNamespace=function(e,t){e.command("docs").description("Documentation workspace commands").command("download").description("Download APL and PWC documentation to local").action((0,i.createCommandAction)("docs","download",t,async({context:e})=>{await(0,a.docsDownloadCommand)(e)}))};const i=n(5882),a=n(5253)},6518(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.registerNamespaces=function(e,t){(0,i.registerInitCommand)(e,t),(0,a.registerAplNamespace)(e,t),(0,o.registerDocsNamespace)(e,t),(0,s.registerDevMetadataNamespace)(e,t),(0,r.registerPwcNamespace)(e,t),(0,c.registerSkillNamespace)(e,t),(0,l.registerSpecNamespace)(e,t)};const i=n(1950),a=n(8125),o=n(7071),s=n(9571),r=n(3100),c=n(7275),l=n(2643)},1950(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.registerInitCommand=function(e,t){const n=e.command("init").description("Initialize sharedev workspace and settings");n.addHelpText("after","\nExamples:\n $ sharedev init -e my-ea -d https://example.fxiaoke.com -c my-certificate\n $ sharedev init --force --yes -d https://example.fxiaoke.com -c my-certificate\n"),n.option("-e, --ea <enterpriseEA>","企业 EA").option("-d, --domain <url>","企业域名").option("-c, --certificate <token>","企业证书").option("-f, --force","覆盖已存在的 .sharedev/settings.json").option("-y, --yes","跳过覆盖确认并使用传入参数").action(async(...e)=>{const n=e[e.length-1].opts();await(0,i.initProjectCommand)(t,n)})};const i=n(7847)},3100(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.registerPwcNamespace=function(e,t){const n=e.command("pwc").description("PWC workspace commands");n.addHelpText("after","\nExamples:\n $ sharedev pwc pull MyComponent --type component\n $ sharedev pwc pull MyPlugin --type plugin\n $ sharedev pwc pull --all --type component\n $ sharedev pwc push MyComponent --type component\n $ sharedev pwc push MyPlugin --type plugin\n $ sharedev pwc deploy MyComponent --type component\n"),n.command("pull [apiName]").description("Pull PWC source from remote").option("--all","Pull all PWC resources of the specified type").requiredOption("--type <type>","PWC type: component or plugin").action((0,i.createCommandAction)("pwc","pull",t,async({args:e,options:t,context:n})=>{await(0,a.pwcPullCommand)(e[0],t,n)})),n.command("deploy [apiNameOrPath]").description("Deploy local PWC source to remote (push + build + publish)").requiredOption("--type <type>","PWC type: component or plugin").action((0,i.createCommandAction)("pwc","deploy",t,async({args:e,options:t,context:n})=>{await(0,a.pwcDeployCommand)(e[0],t,n)})),["init","publish","create","dev"].forEach(e=>{n.command(`${e} [apiName]`).description(`Placeholder for pwc ${e}`).action((0,i.createCommandAction)("pwc",e,t,async()=>{await(0,a.pwcPlaceholderCommand)(e)}))}),n.command("push [apiNameOrPath]").description("Push local PWC source to remote (upload files and update metadata, no build)").requiredOption("--type <type>","PWC type: component or plugin").action((0,i.createCommandAction)("pwc","push",t,async({args:e,options:t,context:n})=>{await(0,a.pwcPushCommand)(e[0],t,n)}))};const i=n(5882),a=n(3029)},7275(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.registerSkillNamespace=function(e,t){const n=e.command("skill").description("Skill workspace commands");n.addHelpText("after","\nExamples:\n $ sharedev skill pull ExampleSkill\n $ sharedev skill push ExampleSkill\n"),["pull","push"].forEach(e=>{n.command(`${e} [apiName]`).description(`Placeholder for skill ${e}`).action((0,i.createCommandAction)("skill",e,t,async()=>{a.loggerService.warn(`sharedev skill ${e} is not implemented yet.`)}))})};const i=n(5882),a=n(7959)},2643(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.registerSpecNamespace=function(e,t){e.command("spec").description("Specification workspace commands").command("init").description("Initialize agent spec template").action((0,i.createCommandAction)("spec","init",t,async({context:e})=>{await(0,a.specInitCommand)(e)}))};const i=n(5882),a=n(3349)},5882(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.createResolvedCommandContext=a,t.createCommandAction=function(e,t,n,o){return async(...s)=>{const r=s[s.length-1],c=s.slice(0,-1).filter(e=>"string"==typeof e),l=function(e){const t=e[e.length-1];return t&&"object"==typeof t&&"opts"in t?t.opts()??{}:{}}(s),p=await a(e,t,c,l,n),u="apl"===e&&function(e){return"pull"===e||"push"===e||"reset"===e||"compile"===e}(t);u&&i.loggerService.startLoading(function(e){return{pull:"Running APL pull",push:"Running APL push",reset:"Running APL reset",compile:"Running APL compile",list:"Running APL list",analyze:"Running APL analyze",diff:"Running APL diff",debug:"Running APL debug"}[e]??`Running APL ${e}`}(t));try{await o({args:c,options:r.opts(),context:p})}catch(t){throw"apl"===e&&i.loggerService.stopLoading(),t}}};const i=n(7959);async function a(e,t,n,i,a){const o="string"==typeof i.cwd?i.cwd:a.cwd;return{...a,cwd:o,namespace:e,commandName:t,args:n,workingDir:a.workspaceRoot}}},3933(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.resolveEntryPath=c,t.resolveSettingsSearchDir=async function(e,t){const n=await c(e,t);return n?await(0,o.pathExists)(n)&&(await(0,o.statPath)(n)).isDirectory()?n:a.default.dirname(n):t},t.findSettings=l,t.validateSettings=p,t.loadSettings=async function(e){const t=await l(e);if(!t)throw new Error(".sharedev/settings.json was not found. Create it in the current directory or a parent directory.");const n=await(0,o.readJsonFile)(t),i={certificate:"string"==typeof n.certificate?n.certificate:"",domain:"string"==typeof n.domain?n.domain:"",settingsPath:t,settingsDir:a.default.dirname(t)};return p(i),i};const a=i(n(6760)),o=n(6427),s=n(9034),r=a.default.join(".sharedev","settings.json");async function c(e,t){if(e)return(0,s.toAbsolutePath)(e,t)}async function l(e){let t=a.default.resolve(e);for(;;){const e=a.default.join(t,r);if(await(0,o.pathExists)(e))return e;const n=a.default.dirname(t);if(n===t)return;t=n}}function p(e){if(!e.certificate?.trim())throw new Error("Missing certificate in .sharedev/settings.json.");if(!e.domain?.trim())throw new Error("Missing domain in .sharedev/settings.json.");if(!function(e){try{return new URL(e),!0}catch{return!1}}(e.domain))throw new Error("The domain in .sharedev/settings.json is not a valid URL.");if(!e.settingsDir||!e.settingsPath)throw new Error("Incomplete settings path information.")}},5396(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.createCliRuntimeContext=async function(e){const t=process.cwd(),n=await(0,i.resolveSettingsSearchDir)(void 0,t),s=await(0,i.loadSettings)(n);return a.loggerService.debug(`settingsPath=${s.settingsPath}`),a.loggerService.debug(`domain=${s.domain}`),a.loggerService.debug(`certificate=${(0,o.maskCertificate)(s.certificate)}`),{cwd:t,verbose:!1,settings:s,workspaceRoot:s.settingsDir}};const i=n(3933),a=n(7959),o=n(9034)},7959(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.loggerService=void 0,t.withPrefix=r,t.prefix=function(e){return r(e,s)};const a=i(n(5249)),o=i(n(5857)),s="[sharedev]";function r(e,t){return e.startsWith(t)?e:`${t} ${e}`}t.loggerService=new class{constructor(){this.verboseEnabled=!1,this.spinnerState={mode:"ora",textActive:!1}}stopSpinnerSilent(){const e=this.spinnerState;e.spinner&&(e.spinner.stop(),e.spinner=void 0),e.textActive=!1,e.text=void 0}ensureSpinnerStoppedBeforeOutput(){(this.spinnerState.spinner||this.spinnerState.textActive)&&this.stopSpinnerSilent()}startLoading(e){const t=this.spinnerState.mode;if("off"!==t)return"text"===t?(this.ensureSpinnerStoppedBeforeOutput(),this.spinnerState.textActive=!0,this.spinnerState.text=e,void console.error(a.default.blue(r(e,s)))):void(this.spinnerState.spinner?(this.spinnerState.spinner.text=r(e,s),this.spinnerState.spinner.start()):this.spinnerState.spinner=(0,o.default)({text:r(e,s),stream:process.stderr}).start());this.ensureSpinnerStoppedBeforeOutput()}updateLoading(e){const t=this.spinnerState.mode;if("off"!==t){if("text"===t){if(!this.spinnerState.textActive||this.spinnerState.text===e)return;return this.spinnerState.text=e,void console.error(a.default.blue(r(e,s)))}this.spinnerState.spinner?this.spinnerState.spinner.text=r(e,s):this.startLoading(e)}}succeedLoading(e){const t=this.spinnerState.mode;"off"!==t&&("text"!==t?this.spinnerState.spinner&&(e?this.spinnerState.spinner.succeed(a.default.green(r(e,s))):this.spinnerState.spinner.succeed(),this.spinnerState.spinner=void 0):this.stopSpinnerSilent())}failLoading(e){const t=this.spinnerState.mode;"off"!==t&&("text"!==t?this.spinnerState.spinner&&(e?this.spinnerState.spinner.fail(a.default.red(r(e,s))):this.spinnerState.spinner.fail(),this.spinnerState.spinner=void 0):this.stopSpinnerSilent())}stopLoading(){this.stopSpinnerSilent()}info(e){this.ensureSpinnerStoppedBeforeOutput(),console.log(a.default.blue(r(e,s)))}success(e){this.ensureSpinnerStoppedBeforeOutput(),console.log(a.default.green(r(e,s)))}warn(e){this.ensureSpinnerStoppedBeforeOutput(),console.warn(a.default.yellow(r(e,s)))}error(e){this.ensureSpinnerStoppedBeforeOutput(),console.error(a.default.red(r(e,s)))}debug(e){this.verboseEnabled&&(this.ensureSpinnerStoppedBeforeOutput(),console.log(a.default.gray(`[sharedev:debug] ${e}`)))}printJson(e){this.ensureSpinnerStoppedBeforeOutput(),console.log(JSON.stringify(e,null,2))}printRaw(e){this.ensureSpinnerStoppedBeforeOutput(),process.stdout.write(e)}}},8998(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.requestService=void 0;const a=i(n(9435)),o=n(7959);t.requestService=new class{configure(e){this.settings=e,this.axiosInstance=a.default.create({baseURL:e.domain,timeout:3e4,headers:{Authorization:e.certificate}}),this.axiosInstance.interceptors.request.use(e=>(o.loggerService.debug(`request ${e.method?.toUpperCase()??"GET"} ${e.baseURL??""}${e.url??""}`),e.params={...e.params??{},traceId:`E-E.cli-sharedev-${Date.now()}`},e)),this.axiosInstance.interceptors.response.use(e=>e,e=>{const t=e.response?.status?`Request failed: ${e.response.status} ${e.response.statusText}`:e.message;return o.loggerService.debug(t),Promise.reject(e)})}get instance(){if(!this.axiosInstance||!this.settings)throw new Error("requestService is not initialized.");return this.axiosInstance}async request(e){return e.url=e.url.replace(/EM\dH/,"EMDH"),(await this.instance.request(e)).data}async get(e,t){return this.request({...t,method:"GET",url:e})}async post(e,t,n){return this.request({...n,method:"POST",url:e,data:t})}async FHH(e){const t=e.url?.startsWith("/FHH")?e.url:`/FHH${e.url??""}`,n=await this.request({...e,method:"POST",url:t});if(0!==n.Result.StatusCode)throw new Error(n.Error?.Message||"The server returned an error.");return n.Value??n}}},4965(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.aplListCommand=async function(e){a.loggerService.startLoading("Fetching APL function list");const t=(await(0,s.getFuncList)()).filter(e=>0===e.lang&&!e.is_control);a.loggerService.stopLoading(),a.loggerService.info(`Fetched ${t.length} APL functions.`),a.loggerService.printJson(t.map(e=>({apiName:e.api_name,functionName:e.function_name,packageName:e.package_name,version:e.version})))},t.aplInfoCommand=async function(e,t,n={}){if(!e?.trim())throw new Error("Invalid arguments: use sharedev apl info <apiName>.");const i=e.trim(),o=n.bind?.trim()??"";a.loggerService.startLoading(`Fetching APL function details for ${i}`);try{const e=await(0,s.findFuncByApiName)(i,o);if(!e)throw new Error(`APL function not found: ${i}.`);a.loggerService.stopLoading(),a.loggerService.printRaw(function(e){return`${[l(e),p(e.parameters)].join("\n\n")}\n`}(e))}catch(e){throw a.loggerService.stopLoading(),e}},t.aplCreateCommand=async function(e,t={}){a.loggerService.startLoading("Preparing APL create");try{a.loggerService.updateLoading("Loading namespace and object metadata");const[n,o]=await Promise.all([(0,s.getAplNamespaceOptions)(),(0,s.getAplBindingObjectApiNames)()]),c=await async function(e,t,n,o){const s=process.stdin.isTTY&&process.stdout.isTTY,r=e.type?.trim().toLowerCase();let c="class"===r?"class":"function"!==r&&r?"":"function";if(!c&&s&&(c=await async function(){const e=await(0,i.select)({message:"Select APL type",options:[{value:"function",label:"APL Function"},{value:"class",label:"APL Class"}]});if((0,i.isCancel)(e))throw new Error("APL create cancelled.");return e}()),!c)throw new Error("Invalid --type value. Allowed values: function, class.");const l=t.filter(e=>!e.type||e.type===c);if(!l.length)throw new Error(`No namespace available for type ${c}.`);const p=await h(e.functionName,"--function-name","Enter APL function name",s,e=>e.length>40?"--function-name cannot exceed 40 characters.":void 0),u=await async function(e,t,n){const a=e?.trim()??"";if(a)return a;if(!n)throw new Error("Missing required option --namespace.");const o=await(0,i.select)({message:"Select namespace",options:t.map(e=>({value:e.value,label:`${e.label} (${e.value})`}))});if((0,i.isCancel)(o))throw new Error("APL create cancelled.");return o}(e.namespace,l,s),d=await h(e.package,"--package","Enter package name suffix (without fx.custom.apl.)",s,v),m=await h(e.apiName,"--api-name","Enter APL API name",s,e=>function(e,t){try{return void y(e,t)}catch(e){return e instanceof Error?e.message:String(e)}}(e,c)),f=await h(e.remark,"--remark","Enter APL description",s,e=>e.length>200?"--remark cannot exceed 200 characters.":void 0),x=b(l,u,c);if(!x)throw new Error(`Invalid namespace ${JSON.stringify(u)} for type ${c}.`);const _="class"===c?void 0:await async function(e,t,n,a){const o=e?.trim()??"";if(o)return o;if(!a)throw new Error("Missing --return-type for function type.");const s=w([...(t.returnTypes??[]).map(e=>e.value),...n.map(e=>e.value)]);if(!s.length)throw new Error("No return type options available for selected namespace. Please pass --return-type explicitly.");const r=await(0,i.select)({message:"Select return type",options:s.map(e=>({value:e,label:e}))});if((0,i.isCancel)(r))throw new Error("APL create cancelled.");return r}(e.returnType,x,n,s),S=await async function(e,t,n,o){const s=e?.trim()??"";if(s)return s;if(0===t.bindObject)return"NONE";if(!o)throw new Error("Missing required option --bind.");if(2===t.bindObject){const e=await(0,i.select)({message:"Select binding mode",options:[{value:"NONE",label:"Unbound (NONE)"},{value:"BOUND",label:"Bind object API name"}]});if((0,i.isCancel)(e))throw new Error("APL create cancelled.");if("NONE"===e)return"NONE"}for(;;){const e=await g("Enter binding object API name");if(e){if(!n.length||n.includes(e))return e;a.loggerService.warn(`Invalid --bind value ${JSON.stringify(e)}: object api name does not exist.`)}else a.loggerService.warn("Missing required option --bind.")}}(e.bind,x,o,s);return{apiName:m,functionName:p,type:c,namespace:u,packageName:d,returnType:_,bind:S,remark:f,templateId:e.templateId?.trim()||void 0}}(t,n.namespaces,n.returnTypes,o);x(c.packageName),y(c.apiName,c.type);const l=b(n.namespaces,c.namespace,c.type);if(!l)throw new Error(`Invalid --namespace value ${JSON.stringify(c.namespace)} for type ${c.type}. Use sharedev dev-metadata namespace to inspect available namespaces.`);!function(e,t,n){const i="NONE"===e;if(0===t.bindObject&&!i)throw new Error(`Namespace ${t.value} does not allow bound objects. Use --bind NONE.`);if(1===t.bindObject&&i)throw new Error(`Namespace ${t.value} requires a bound object. --bind NONE is not allowed.`);if(!i&&!n.includes(e))throw new Error(`Invalid --bind value ${JSON.stringify(e)}: object api name does not exist.`)}(c.bind,l,o);const p=function(e,t,n,i){if("class"===i)return;const a=w([...(t.returnTypes??[]).map(e=>e.value),...n.map(e=>e.value)]),o=e?.trim();if(!o)throw new Error("Missing --return-type for function type.");if(a.length&&!a.includes(o))throw new Error(`Invalid --return-type value ${JSON.stringify(o)}. Allowed values: ${a.join(", ")}`);return o}(c.returnType,l,n.returnTypes,c.type);a.loggerService.updateLoading("Generating template source");const u=await(0,s.createAplTemplate)({namespace:c.namespace,type:c.type,apiName:c.apiName,functionName:c.functionName,returnType:p,remark:c.remark,templateId:c.templateId}),d={api_name:c.apiName,binding_object_api_name:c.bind,function_name:c.functionName,package_name:`fx.custom.apl.${c.packageName}`,body:u,type:c.type,lang:0,remark:c.remark,return_type:p,status:"not_used",is_active:!0,name_space:c.namespace};a.loggerService.updateLoading("Creating APL function on remote");const m=await(0,s.createFuncSource)(d);a.loggerService.updateLoading("Writing local source file");const f=await(0,r.writeAplFunction)(e,m);await(0,r.writeAplSnapshot)(e,m),a.loggerService.stopLoading(),a.loggerService.success(`Created APL function ${m.api_name} successfully.`),a.loggerService.info(`Local groovy file: ${f}`)}catch(e){throw a.loggerService.stopLoading(),e}},t.aplPullCommand=async function(e,t,n={}){a.loggerService.startLoading("Preparing APL pull");const i=Boolean(n.all);if(i&&e)throw new Error("Invalid arguments: do not pass apiName when using --all.");if(!i&&!e)throw new Error("Invalid arguments: use sharedev apl pull <apiName> or sharedev apl pull --all.");if(i){a.loggerService.updateLoading("Fetching pullable APL functions");const e=(await(0,s.getFuncList)()).filter(e=>0===e.lang&&!e.is_control).map(e=>e.api_name).filter(Boolean);a.loggerService.updateLoading("Fetching APL function details");const n=await(0,s.findFuncByApiNames)(e),i=new Map(n.map(e=>[e.api_name,e])),o=e.filter(e=>!i.has(e));o.length&&(a.loggerService.warn(`${o.length} functions did not return details and will be skipped.`),a.loggerService.debug(`Missing detail apiNames: ${o.join(", ")}`));const c=e.map(e=>i.get(e)).filter(e=>Boolean(e));if(!c.length)throw new Error("No APL function details were returned. Nothing can be written.");return a.loggerService.updateLoading("Writing APL function files and snapshots"),await(0,r.writeAplFunctions)(t,c),await(0,r.writeAplSnapshot)(t,c),void a.loggerService.success(`Pulled APL functions: target=${e.length}, written=${c.length}, missing=${o.length}.`)}const o=await(0,s.findFuncByApiName)(e);a.loggerService.updateLoading(`Writing APL function ${e}`);const c=await(0,r.writeAplFunction)(t,o);await(0,r.writeAplSnapshot)(t,o),a.loggerService.success(`Pulled APL function ${e} to ${c}`)},t.aplDiffCommand=async function(e,t,n={}){const i=await(0,r.resolveAplTarget)(t,e);a.loggerService.startLoading(`Preparing APL diff for ${i.apiName}`);const c=i.snapshot;if(!c)throw new Error(`Missing snapshot record for APL function ${i.apiName}. Run sharedev apl pull ${i.apiName} first.`);let l=c.body,p=`snapshot@${c.version}`,u=c.version;if(n.remote)if("latest"===n.remote){const e=await(0,s.findFuncLatestByApiName)(i.apiName,c.bindingObjectApiName);l=e.body??"",p=`remote@latest(v${e.version})`,u=e.version}else{const e=Number(n.remote);if(!Number.isInteger(e)||e<=0)throw new Error("--remote only supports latest or a positive integer version.");const t=await(0,s.findFuncVersionByApiName)(i.apiName,e,c.bindingObjectApiName);l=t.func.body??"",u=t.actualVersion,p=t.fallbackToLatest?`remote@latest(v${t.actualVersion}) [requested v${e} not found]`:`remote@v${t.actualVersion}`}const d=(0,o.createLineDiff)(l,i.localBody,{oldFileName:`${i.apiName}.groovy`,newFileName:`${i.apiName}.groovy`,oldHeader:p,newHeader:"local",oldGitPath:`${i.apiName}.groovy`,newGitPath:`${i.apiName}.groovy`}),m=(0,o.summarizeDiff)(d);if(!m.changed)return a.loggerService.stopLoading(),void a.loggerService.success(`No changes for APL function ${i.apiName} (baseline: ${p}).`);a.loggerService.stopLoading(),a.loggerService.info(`APL diff ${i.apiName}: baseline=${p}, localVersion=${c.version}, compareVersion=${u}, +${m.additions} -${m.deletions}`),a.loggerService.printRaw((0,o.renderUnifiedDiff)(d))},t.aplPushCommand=async function(e,t,n={}){const i=n.remark?.trim();if(!i)throw new Error("Invalid arguments: apl push requires a non-empty --remark <comment>. This value will be submitted as the remote commit_log.");const o=e?[await(0,r.resolveAplTarget)(t,e)]:await(0,r.collectChangedAplTargets)(t);if(!o.length)return a.loggerService.stopLoading(),void a.loggerService.info("No local APL changes found to submit.");const c={success:0,skipped:0,conflict:0,failed:0};for(const e of o){const o=e.snapshot,l=e.metadata;if(o&&l)if(e.localBody!==o.body)try{a.loggerService.updateLoading(`Conflict check (1/4) ${e.apiName}`);const l=await(0,s.checkRemoteVersionConflict)(e.apiName,o.version,o.bindingObjectApiName);if(l.conflict&&!n.force){c.conflict+=1,a.loggerService.warn(`Skipped ${e.apiName}: remote version changed from v${o.version} to v${l.remote?.version??"unknown"}. Use --force to override.`);continue}const p=l.remote??await(0,s.findFuncLatestByApiName)(e.apiName,o.bindingObjectApiName),u=_(e,p,"push",i);a.loggerService.updateLoading(`analyze (2/4) ${e.apiName}`),await(0,s.analyzeFuncSource)(u),a.loggerService.updateLoading(`compile (3/4) ${e.apiName}`),await E(e,"push",{remoteBase:p,payload:u}),a.loggerService.updateLoading(`submit (4/4) ${e.apiName}`);const d=await(0,s.pushFuncSource)(u);await(0,r.writeAplSnapshot)(t,d),await(0,r.writeAplFunction)(t,d),c.success+=1,a.loggerService.success(`Submitted APL function ${e.apiName}. Latest version: v${d.version}.`)}catch(t){c.failed+=1;const n=t instanceof Error?t.message:String(t);a.loggerService.error(`Failed to submit ${e.apiName}: \n${n}`)}else c.skipped+=1,a.loggerService.info(`Skipped ${e.apiName}: no local changes.`);else c.failed+=1,a.loggerService.error(`Missing tracked metadata for APL function ${e.apiName}. Run pull again first.`)}a.loggerService.info(`APL push completed: success=${c.success}, skipped=${c.skipped}, conflict=${c.conflict}, failed=${c.failed}`)},t.aplResetCommand=async function(e,t,n={}){const i=await(0,r.resolveAplTarget)(t,e);a.loggerService.updateLoading(`Preparing to reset APL function ${i.apiName}`);const o=i.snapshot;if(!o)throw new Error(`Missing snapshot record for APL function ${i.apiName}. Run sharedev apl pull ${i.apiName} first.`);let c,l;if(n.remote&&"latest"!==n.remote){const e=Number(n.remote);if(!Number.isInteger(e)||e<=0)throw new Error("--remote only supports latest or a positive integer version.");c=await(0,s.findStrictFuncVersionByApiName)(i.apiName,e,o.bindingObjectApiName),l=`v${c.version}`}else c=await(0,s.findFuncLatestByApiName)(i.apiName,o.bindingObjectApiName),l=`latest(v${c.version})`;const p=await(0,r.writeAplFunction)(t,c);await(0,r.writeAplSnapshot)(t,c),a.loggerService.success(`Reset APL function ${i.apiName} to remote ${l}. Updated file: ${p}`)},t.aplAnalyzeCommand=async function(e,t){const n=await(0,r.resolveAplTarget)(t,e);a.loggerService.startLoading(`Analyzing APL function ${n.apiName}`);const i=_(n,await S(n),"analyze"),o=await(0,s.analyzeFuncSource)(i);a.loggerService.stopLoading(),a.loggerService.success(`APL function ${n.apiName} passed analysis.`),a.loggerService.printJson(o)},t.aplCompileCommand=async function(e,t){const n=await(0,r.resolveAplTarget)(t,e);a.loggerService.updateLoading(`Running compile check for APL function ${n.apiName}`),await E(n,"compile"),a.loggerService.success(`APL function ${n.apiName} passed compile check.`)},t.aplDebugCommand=async function(e,t,n={}){const i=await(0,r.resolveAplTarget)(t,e);a.loggerService.stopLoading();const o=_(i,await S(i),"debug"),c=function(e={}){const t=(i=e.param,(Array.isArray(i)?i:i?[i]:[]).map(C)),n={};var i;for(const e of t)n[e.name]=e.value;return{dataId:e.dataId?.trim()||void 0,paramsByName:n}}(n),l=await async function(e,t){if(!e||"NONE"===e)return;const n=t?.trim();if(n)return n;return(await $(`Enter object data ID for ${e}: `)).trim()||void 0}(o.binding_object_api_name,c.dataId),p=await async function(e,t){if(!e.length)return[];const n=[];for(const i of e){const e=i.name?.trim(),a=i.type;if(!e||!a)throw new Error("APL debug parameters are missing name or type and cannot be collected in the terminal.");if("List"===a||"Map"===a)continue;const o=Object.prototype.hasOwnProperty.call(t,e)?T(i,a,t[e]):await k(i,a);n.push({name:e,type:a,value:o})}return n}(o.parameters??[],c.paramsByName);!function(e,t){const n=new Set(e.map(e=>e.name?.trim()).filter(e=>Boolean(e))),i=Object.keys(t).filter(e=>!n.has(e));i.length&&a.loggerService.warn(`Ignoring unknown APL debug CLI params: ${i.map(e=>JSON.stringify(e)).join(", ")}.`)}(o.parameters??[],c.paramsByName);const u={api_name:i.apiName,binding_object_api_name:o.binding_object_api_name,function:o,input_data:p,...l?{data_source:l}:{}};a.loggerService.startLoading(`Running APL debug for ${i.apiName}`);const d=await(0,s.debugFuncSource)(u);a.loggerService.stopLoading();const m=function(e,t){const n=t.logInfo;return t.success?`APL function ${e} debug run succeeded: ${n}`:`APL function ${e} debug run failed: ${n}`}(i.apiName,d);!1===d.success?a.loggerService.error(m):a.loggerService.success(m),a.loggerService.printRaw(function(e){const t=[];if(e.runResult){t.push("Run Result");try{t.push(JSON.stringify(e.runResult,null,2))}catch{t.push(e.runResult)}}return e.errorInfo&&t.push(e.errorInfo),t.push(""),t.join("\n")}(d))},t.aplPlaceholderCommand=async function(e){"debug"!==e?a.loggerService.warn(`sharedev apl ${e} is not implemented yet.`):a.loggerService.warn("sharedev apl debug is not implemented yet: the backend execution API and input contract are not confirmed.")};const i=n(158),a=n(7959),o=n(9754),s=n(1971),r=n(8381),c=new Set(["abstract","assert","boolean","break","byte","case","catch","char","class","const","continue","default","do","double","else","enum","extends","final","finally","float","for","if","implements","import","instanceof","int","interface","long","native","new","package","private","protected","public","return","short","static","strictfp","super","switch","synchronized","this","throw","throws","transient","try","void","volatile","while"]);function l(e){return["APL Summary",`- API Name: ${m(e.api_name)}`,`- Function Name: ${m(e.function_name)}`,`- Package: ${m(e.package_name)}`,`- Version: ${m(e.version)}`,`- Type: ${m(e.type)}`,`- Lang: ${u(e.lang)}`,`- Binding Object: ${m(e.binding_object_api_name,"(none)")}`,`- Control: ${d(e.is_control)}`,`- Active: ${d(e.is_active,"(unknown)")}`,`- Status: ${m(e.status)}`,`- Return Type: ${m(e.return_type)}`,`- Name Space: ${m(e.name_space)}`,`- Application: ${m(e.application)}`,`- Last Modified By: ${m(e.last_modified_by)}`,`- Update Time: ${f(e.update_time)}`,`- Create Time: ${f(e.create_time)}`,`- Current: ${d(e.is_current,"(unknown)")}`,`- Commit Log: ${m(e.commit_log)}`,`- Remark: ${m(e.remark)}`].join("\n")}function p(e){if(!e?.length)return"Parameters\n- (none)";const t=["Parameters"];return e.forEach((e,n)=>{var i;t.push(`${n+1}. ${m(e.name)}`),t.push(` - Type: ${m(e.type)}`),t.push(` - Default: ${i=e.default_value,null==i||""===i?"-":"string"==typeof i?i:JSON.stringify(i)}`),t.push(` - Remark: ${m(e.remark)}`)}),t.join("\n")}function u(e){switch(e){case 0:return"Groovy";case 1:return"Java";case 2:return"Jar";case 3:return"UnitTest";default:return m(e)}}function d(e,t="-"){return null==e?t:String(e)}function m(e,t="-"){return"string"==typeof e?e.trim()||t:null==e?t:String(e)}function f(e){if(null==e)return"-";const t=new Date(e);return Number.isNaN(t.getTime())?String(e):`${e} (${t.toISOString()})`}async function h(e,t,n,i,o){const s=e?.trim()??"";if(s){const e=o?.(s);if(e)throw new Error(e);return s}if(!i)throw new Error(`Missing required option ${t}.`);for(;;){const e=await g(n);if(!e){a.loggerService.warn(`Missing required option ${t}.`);continue}const i=o?.(e);if(!i)return e;a.loggerService.warn(i)}}async function g(e,t){const n=await(0,i.text)({message:e,placeholder:t,initialValue:t});if((0,i.isCancel)(n))throw new Error("APL create cancelled.");return n.trim()}function x(e){if(e.length>64)throw new Error("--package cannot exceed 64 characters.");const t=e.split(".").filter(Boolean);if(!t.length)throw new Error("Invalid --package value.");if(!t.every(e=>/^[a-z][a-z0-9]*$/u.test(e)&&!c.has(e.toLowerCase())))throw new Error("Invalid --package value: each segment must match ^[a-z][a-z0-9]*$ and cannot be a Java keyword.")}function v(e){try{return void x(e)}catch(e){return e instanceof Error?e.message:String(e)}}function y(e,t){if(e.length>50)throw new Error("--api-name cannot exceed 50 characters.");if(!{class:/^[A-Z]{1}[a-zA-Z0-9]*__c$/u,function:/^[a-zA-Z](?!.*__.*__c$)\w*__c$/u}[t].test(e))throw new Error(`Invalid --api-name for type ${t}.`)}function b(e,t,n){return e.find(e=>e.value===t&&(!e.type||e.type===n))}function w(e){return Array.from(new Set(e.map(e=>e?.trim()).filter(e=>Boolean(e))))}function _(e,t,n,i){const a=e.snapshot,o=e.metadata;return{...t,api_name:e.apiName,binding_object_api_name:a.bindingObjectApiName,function_name:o.functionName,package_name:o.packageName,remark:o.remark,parameters:o.parameters,type:o.type??t.type,body:e.localBody,commit_log:"push"===n?i??"":`sharedev cli ${n} ${(new Date).toISOString()}`}}async function S(e){const t=e.snapshot,n=e.metadata;if(!t||!n)throw new Error(`Missing tracked metadata for APL function ${e.apiName}. Run sharedev apl pull ${e.apiName} first.`);return(0,s.findFuncLatestByApiName)(e.apiName,t.bindingObjectApiName)}async function E(e,t,n={}){const i=n.remoteBase??await S(e),a=n.payload??_(e,i,t);return await(0,s.compileCheckFuncSource)(a),a}function C(e){const t=e.indexOf("=");if(t<=0)throw new Error(`Invalid --param value ${JSON.stringify(e)}. Use --param <name=value>.`);const n=e.slice(0,t).trim(),i=e.slice(t+1);if(!n)throw new Error(`Invalid --param value ${JSON.stringify(e)}. Parameter name cannot be empty.`);return{name:n,value:i}}function T(e,t,n){return"Boolean"===t?P(e,n):A(e,t,n)}async function $(e,t){const n=await(0,i.text)({message:e,defaultValue:t,initialValue:t});if((0,i.isCancel)(n))throw new Error("APL debug input cancelled.");return n}async function k(e,t){return"Boolean"===t?async function(e){const t=await(0,i.select)({message:O(e,"Boolean"),options:[{value:"__default__",label:`Use default value (current: ${N(e,"Boolean")})`},{value:"true",label:"True"},{value:"false",label:"False"}]});if((0,i.isCancel)(t))throw new Error("APL debug input cancelled.");return P(e,t)}(e):A(e,t,await $(O(e,t),e.default_value))}function O(e,t){return`Enter parameter ${e.name?.trim()||"unknown"} (${t}), default ${N(e,t)}: `}function N(e,t){const n=e.default_value;if(null==n||""===n)return"null";if("String"===t)return JSON.stringify(String(n));if(null!=t&&j(t)){const e=Number(n);if(!Number.isNaN(e))return`${e} (${new Date(e).toISOString()})`}return String(n)}function A(e,t,n){const i=n.trim(),a=""===i?e.default_value:i;if(null==a||""===a)return null;if("String"===t)return a;if("BigDecimal"===t||j(t)){const n=Number(a);if(Number.isNaN(n)){const n="BigDecimal"===t?"a number":"a numeric timestamp";throw new Error(`Parameter ${e.name} for type ${t} must be ${n}.`)}return n}throw new Error(`Terminal input for parameter ${e.name} of type ${t} is not supported yet.`)}function P(e,t){const n="__default__"===t?e.default_value:t,i=null==n?n:String(n).trim().toLowerCase();if(null==i||""===i)return null;if("true"===i)return!0;if("false"===i)return!1;throw new Error(`Boolean default value for parameter ${e.name} must be true or false.`)}function j(e){return"Date"===e||"DateTime"===e||"Time"===e}},1971(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.getFuncList=async function(){return(await a.requestService.FHH({url:"/EM1HFUNC/biz/query",data:{pageSize:3e3,pageNumber:1}})).function??[]},t.findFuncByApiNames=o,t.findFuncByApiName=s,t.findFuncLatestByApiName=r,t.findFuncHistoryVersions=c,t.findFuncVersionByApiName=async function(e,t,n=""){try{return{func:await l(e,t,n),actualVersion:t,fallbackToLatest:!1}}catch{const t=await r(e,n);return{func:t,actualVersion:t.version,fallbackToLatest:!0}}},t.findStrictFuncVersionByApiName=l,t.checkRemoteVersionConflict=async function(e,t,n=""){const i=await r(e,n);return i?{conflict:i.version!==t,remote:i}:{conflict:!1}},t.pushFuncSource=async function(e){return(await h(t=>a.requestService.FHH({url:"/FHH/EM1HFUNC/biz/update",data:{function:e,token:t}}))).function},t.analyzeFuncSource=async function(e){const t=await h(t=>a.requestService.FHH({url:"/EM1HFUNC/runtime/analyze",data:{token:t,function:e}}));if(!1===t.success){const e=t.violations?.map(e=>`line ${e.line}: ${e.message}`).join("\n")||t.logInfo||"APL analyze failed";throw new Error(`Pre-submit analysis failed: \n${e}`)}return t},t.compileCheckFuncSource=p,t.debugFuncSource=async function(e){return h(t=>a.requestService.FHH({url:"/EM1HFUNC/runtime/debug",data:{...e,token:t}}))},t.getAplNamespaceOptions=async function(){return function(e){const t=m(e)?e:{},n=m(t.data)?t.data:t,i=Array.isArray(n.namespaces)?n.namespaces:[],a=Array.isArray(n.return_type)?n.return_type:[];return{namespaces:i.map(e=>function(e){const t=m(e)?e:{},n=f(t.value)||f(t.namespace)||f(t.name_space)||f(t.name),i=f(t.name)||n,a=function(e){if("string"==typeof e){const t=e.trim().toLowerCase();if("function"===t||"class"===t)return t}return""}(t.type),o=function(e){const t=Number(e);return 0===t||1===t||2===t?t:1}(t.bind_object);return{label:i,value:n,type:a,bindObject:o,apiNamePrefix:f(t.apiNamePrefix)||f(t.api_name_prefix),returnTypes:(Array.isArray(t.return_type)?t.return_type:[]).map(e=>d(e)).filter(e=>Boolean(e))}}(e)).filter(e=>e.value),returnTypes:a.map(e=>d(e)).filter(e=>Boolean(e))}}(await a.requestService.FHH({url:"/EM1HFUNC/runtime/namespace",data:{}}))},t.getAplBindingObjectApiNames=async function(){const e=await a.requestService.FHH({url:"/EM1HNCRM/API/v1/object/describe/service/findDescribeManageList",data:u});return Array.from(new Set((e.objectDescribeList??[]).map(e=>e.api_name?.trim()).filter(e=>Boolean(e)))).sort((e,t)=>e.localeCompare(t))},t.createAplTemplate=async function(e){const t=e.templateId?{optionType:"use",templateId:e.templateId,funcApiName:e.apiName,functionName:e.functionName,description:e.remark}:{lang:0,nameSpace:e.namespace,namespace:e.namespace,type:e.type,funcApiName:e.apiName,returnObject:e.returnType,description:e.remark,functionName:e.functionName};return(await a.requestService.FHH({url:"/EM1HFUNC/biz/funcTemplate",data:t})).body??""},t.createFuncSource=async function(e){await p(e);const t=await h(t=>a.requestService.FHH({url:"/EM1HFUNC/biz/create",data:{function:e,token:t}}));if(!t.function)throw new Error("APL create failed: server did not return function payload.");return t.function};const i=n(7598),a=n(8998);async function o(e){return(await a.requestService.FHH({url:"/EM1HFUNC/biz/batchQuery",data:{apiNames:e}})).function}async function s(e,t=""){return t?(await a.requestService.FHH({url:"/EM1HFUNC/biz/find",data:{api_name:e,binding_object_api_name:t}})).function:(await o([e]))[0]}async function r(e,t=""){return s(e,t)}async function c(e,t){return(await a.requestService.FHH({url:"/EM1HFUNC/biz/queryVersions",single:!0,data:{api_name:e,binding_object_api_name:t}})).functions??[]}async function l(e,t,n=""){const i=(await c(e,n)).find(e=>e.version===t);if(!i)throw new Error(`Remote version v${t} does not exist for APL function ${e}.`);return(await a.requestService.FHH({url:"/EM1HFUNC/biz/findFunctionVersion",data:{id:i.id,api_name:e,binding_object_api_name:n}})).function}async function p(e){const t=await h(t=>a.requestService.FHH({url:"/EM1HFUNC/runtime/compileCheck",data:{token:t,function:e}}));if(!1===t.success)throw new Error(`Pre-submit compile check failed: ${t.compileError||"unknown compile error"}`)}const u={isIncludeFieldDescribe:!1,isIncludeSystemObj:!0,isIncludeUnActived:!0,packageName:"CRM",sourceInfo:"function",serviceContext:{}};function d(e){if("string"==typeof e){const t=e.trim();if(!t)return;return{label:t,value:t}}const t=m(e)?e:{},n=f(t.value)||f(t.type)||f(t.name);if(n)return{label:f(t.name)||n,value:n}}function m(e){return Boolean(e)&&"object"==typeof e}function f(e){return"string"==typeof e?e.trim():""}async function h(e,t={}){const n=t.token??`${Date.now()}-${(0,i.randomUUID)()}`,a=t.num??0,o=t.maxNum??10,s=await e(n);if(s.token&&a<o)return h(e,{token:n,num:a+1,maxNum:o});if(s.token&&a>=o)throw new Error("Server polling exceeded the maximum retry count.");return s}},8381(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.readAplSnapshotMap=g,t.readAplVersionsMap=x,t.readAplMetadataMap=v,t.readAplTrackedRecord=y,t.resolveAplFileByApiName=b,t.resolveAplTarget=w,t.readAplLocalSource=_,t.collectChangedAplTargets=async function(e){const[t,n]=await Promise.all([g(e),v(e)]),i=Object.keys(t).filter(e=>Boolean(n[e])),a=[];for(const t of i){const n=await w(e,t);n.localBody!==(n.snapshot?.body??"")&&a.push(n)}return a},t.ensureAplWorkspace=S,t.writeAplFunction=E,t.writeAplFunctions=async function(e,t){const n=[];for(const i of t)n.push(await E(e,i));return n},t.writeAplSnapshot=async function(e,t){const n=r(e),i=Array.isArray(t)?t:[t];await(0,o.ensureDir)(n);const a=c(e),s=l(e),u=p(e),[h,g,x]=await Promise.all([d(a),d(s),d(u)]),v={...h},y={...g},b={...x};for(const e of i)v[e.api_name]=m(e),y[e.api_name]=e.version,b[e.api_name]=f(e);await Promise.all([(0,o.writeJsonFile)(a,v),(0,o.writeJsonFile)(s,y),(0,o.writeJsonFile)(u,b)])};const a=i(n(6760)),o=n(6427),s=a.default.join("fx","custom","apl","script");function r(e){return a.default.join(e.workspaceRoot,"snapshot")}function c(e){return a.default.join(r(e),"snapshot.json")}function l(e){return a.default.join(r(e),"versions.json")}function p(e){return a.default.join(r(e),"metadata.json")}function u(e,t){return a.default.join(function(e){return a.default.join(a.default.dirname(e.workspaceRoot),"package")}(e),function(e){return e.package_name?e.package_name.replace(/\./g,a.default.sep):s}(t),function(e){return`${e.api_name}.${e.type}.groovy`}(t))}async function d(e){return await(0,o.pathExists)(e)?(0,o.readJsonFile)(e):{}}function m(e){return{apiName:e.api_name,body:e.body??"",version:e.version,packageName:e.package_name,bindingObjectApiName:e.binding_object_api_name}}function f(e){return{apiName:e.api_name,functionName:e.function_name,remark:e.remark,parameters:e.parameters,packageName:e.package_name,bindingObjectApiName:e.binding_object_api_name,type:e.type}}function h(e,t){if(!t?.snapshot||!t.metadata||"number"!=typeof t.version)throw new Error(`APL function ${e} is not tracked by sharedev.`)}async function g(e){return d(c(e))}async function x(e){return d(l(e))}async function v(e){return d(p(e))}async function y(e,t){const[n,i,a]=await Promise.all([g(e),x(e),v(e)]),o=n[t],s=a[t],r=i[t];var c;if(o||s||"number"==typeof r)return{apiName:t,snapshot:o,metadata:s,version:r,filePath:u(e,{api_name:t,package_name:o?.packageName??s?.packageName??"",type:(c=s,c?.type??"function")})}}async function b(e,t){const n=await y(e,t);if(h(t,n),!await(0,o.pathExists)(n.filePath))throw new Error(`Local APL file not found: ${n.filePath}`);return n.filePath}async function w(e,t){const n=await b(e,t??""),i=function(e){const t=a.default.basename(e),n=/^(.*)\.(function|class)\.groovy$/u.exec(t);return n?{apiName:n[1],type:n[2]}:null}(n);if(!i)throw new Error(`Failed to parse APL function info from file name: ${n}`);const o=await y(e,i.apiName);return h(i.apiName,o),{...o,localBody:await _(n)}}async function _(e){return(0,o.readTextFile)(e)}async function S(e,t){await(0,o.ensureDir)(function(e,t){return a.default.dirname(u(e,t))}(e,t)),await(0,o.ensureDir)(r(e))}async function E(e,t){await S(e,t);const n=u(e,t);return await(0,o.writeTextFile)(n,t.body??""),n}},5637(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.objectSearchCommand=async function(e,t){a.loggerService.startLoading("Fetching object list");const n=await(0,o.getObjectDescribeList)(),i=(0,o.filterObjectDescribeList)(n,e);a.loggerService.stopLoading(),a.loggerService.info(`Object list fetched: fetched=${n.length}, matched=${i.length}`),a.loggerService.printJson(i.map(o.toObjectSearchSummary))},t.objectInfoCommand=async function(e,t){if(!e?.trim())throw new Error("Invalid arguments: use sharedev dev-metadata info <apiName>.");const n=e.trim();let s;a.loggerService.startLoading(`Fetching object details for ${n}`);try{s=await(0,o.getObjectDescribeByApiName)(n)}catch{a.loggerService.updateLoading(`Direct lookup failed for ${n}, searching candidates`);const e=(0,o.filterObjectDescribeList)(await(0,o.getObjectDescribeList)(),n);if(!e.length)throw a.loggerService.stopLoading(),new Error(`Object not found: ${n}.`);const t=await async function(e,t){if(1===t.length||(0,o.isExactObjectApiNameMatch)(t[0],e))return t[0].api_name;a.loggerService.stopLoading();const n=await(0,i.select)({message:`Direct lookup failed for ${e}. Select a candidate object:`,options:t.slice(0,20).map(e=>({value:e.api_name,label:e.api_name,hint:r(e)}))});if((0,i.isCancel)(n))throw a.loggerService.info("Object selection cancelled."),new Error("Object selection cancelled.");return a.loggerService.startLoading(`Fetching object details for ${n}`),n}(n,e);a.loggerService.updateLoading(`Fetching object details for ${t}`),s=await(0,o.getObjectDescribeByApiName)(t)}const d=(0,o.extractObjectDescribe)(s);a.loggerService.stopLoading(),a.loggerService.printRaw(function(e,t){const n=[c(e),l(e.fields??[])],i=function(e){return e?["Layout Summary",`- API Name: ${u(e.api_name)}`,`- Display Name: ${u(e.display_name)}`,`- Layout Type: ${u(e.layout_type)}`,`- Is Default: ${p(e.is_default)}`,`- Ref Object API Name: ${u(e.ref_object_api_name)}`].join("\n"):""}(t);return i&&n.push(i),`${n.filter(Boolean).join("\n\n")}\n`}(d,s.layout))},t.objectDownloadCommand=async function(e,t,n={}){const i=e?.trim(),r=Boolean(n.all);if(r&&i)throw new Error("Invalid arguments: use either sharedev dev-metadata download <apiName> or sharedev dev-metadata download --all.");if(!r&&!i)throw new Error("Invalid arguments: use sharedev dev-metadata download <apiName> or sharedev dev-metadata download --all.");const c=(0,s.resolveObjectDescribeOutputDir)(t,n.output);r?await async function(e,t){a.loggerService.startLoading("Fetching object list");const n=await(0,o.getObjectDescribeList)(),i=(0,o.filterObjectDescribeList)(n);a.loggerService.updateLoading(`Downloading object describe markdown files: total=${i.length}`);let r=0,c=0;for(const e of i)try{const n=await(0,o.getObjectDescribeByApiName)(e.api_name);await(0,s.writeObjectDescribeFile)(t,n),r+=1}catch(t){c+=1;const n=t instanceof Error?t.message:String(t);a.loggerService.warn(`Failed to download object describe for ${e.api_name}: ${n}`)}await(0,s.writeObjectDescribeIndex)(t,i),a.loggerService.stopLoading(),a.loggerService.success(`Object describe download completed: total=${i.length}, succeeded=${r}, failed=${c}, output=${t}`)}(0,c):await async function(e,t){let n;a.loggerService.startLoading(`Fetching object details for ${e}`);try{n=await(0,o.getObjectDescribeByApiName)(e)}catch{throw a.loggerService.stopLoading(),new Error(`Object not found: ${e}.`)}const i=await(0,s.writeObjectDescribeFile)(t,n);a.loggerService.stopLoading(),a.loggerService.success(`Object describe markdown written: ${i}`)}(i,c)},t.namespaceDownloadCommand=async function(e,t={}){const n=(0,s.resolveNamespaceOutputDir)(e,t.output);a.loggerService.startLoading("Fetching runtime namespaces");const i=await(0,o.getRuntimeNamespaceList)(),r=await(0,s.writeNamespaceMetadataFile)(n,i.raw);a.loggerService.stopLoading(),a.loggerService.success(`Namespace metadata downloaded: count=${i.namespaces.length}, file=${r}`)};const i=n(158),a=n(7959),o=n(9795),s=n(1293);function r(e){const t=[e.display_name,e.display_name_r].filter(Boolean).join(" / "),n=e.package_name??e.package,i=e.description?.trim();return[t,n,i].filter(Boolean).join(" | ")}function c(e){return["Object Summary",`- API Name: ${e.api_name}`,`- Display Name: ${u(e.display_name)}`,`- Display Name R: ${u(e.display_name_r)}`,`- Package: ${u(e.package_name??e.package)}`,`- Version: ${u(e.version)}`,`- Release Version: ${u(e.release_version)}`,`- Define Type: ${u(e.define_type)}`,`- Udef: ${p(e.is_udef)}`,`- Active: ${p(e.is_active)}`,`- Store Table: ${u(e.store_table)}`,`- Description: ${u(e.description)}`].join("\n")}function l(e){if(!e.length)return"Fields\n- (none)";const t=["Fields"];return e.forEach((e,n)=>{t.push(function(e,t){const n=[`${t}. ${e.api_name}`,` - Label: ${u(e.label??e.display_name)}`,` - Type: ${u(e.type)}`,` - Define Type: ${u(e.define_type)}`,` - Required: ${p(e.is_required)}`,` - Active: ${p(e.is_active)}`,` - Index: ${p(e.is_index)}`,` - Default: ${i=e.default_value,null==i||""===i?"-":"string"==typeof i?i:JSON.stringify(i)}`,` - Description: ${u(e.description)}`];var i;if("select_one"===e.type||"record_type"===e.type){const t=function(e){return e.length?e.map(e=>`${e.label??e.display_name??e.api_name??u(e.value)}${null==e.value?"":` (${String(e.value)})`}`).join(", "):""}(e.options??[]);t&&n.push(` - Options: ${t}`)}return"object_reference"!==e.type&&"quote"!==e.type||(n.push(` - Target API Name: ${u(e.target_api_name)}`),n.push(` - Quote Field: ${u(e.quote_field)}`)),n.join("\n")}(e,n+1))}),t.join("\n")}function p(e){return null==e?"-":String(e)}function u(e){return"string"==typeof e?e.trim()||"-":null==e?"-":String(e)}},9795(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.getObjectDescribeList=async function(){return(await i.requestService.FHH({url:"/EM1HNCRM/API/v1/object/describe/service/findDescribeManageList",data:a})).objectDescribeList??[]},t.filterObjectDescribeList=function(e,t){const n=l(t);return n?e.filter(e=>function(e){return[e.api_name,e.display_name,e.display_name_r].map(p).filter(Boolean)}(e).some(e=>e.includes(n))).sort((e,t)=>r(e,t,n)):[...e].sort(r)},t.getObjectDescribeByApiName=async function(e){return i.requestService.FHH({url:"/EM1HNCRM/API/v1/object/describe/service/findDescribeByApiName",data:{describe_apiname:e,include_layout:!0,layout_type:"detail",get_label_direct:!0,include_describe_extra:!1,include_fields_extra:!1,check_cross_filter:!1}})},t.getRuntimeNamespaceList=async function(){const e=await i.requestService.FHH({url:"/EM1HFUNC/runtime/namespace",data:{}});return{namespaces:o(e),raw:e}},t.toObjectSearchSummary=function(e){return{apiName:e.api_name,displayName:e.display_name??"",displayNameR:e.display_name_r??"",packageName:e.package_name??e.package??"",isUdef:e.is_udef??!1,isActive:e.is_active??!1,version:e.version??"",description:e.description??""}},t.isExactObjectApiNameMatch=function(e,t){const n=l(t);return!!n&&p(e.api_name)===n},t.extractObjectDescribe=function(e){if(!e.objectDescribe)throw new Error("The server did not return objectDescribe.");return e.objectDescribe};const i=n(8998),a={isIncludeFieldDescribe:!1,isIncludeSystemObj:!0,isIncludeUnActived:!0,packageName:"CRM",sourceInfo:"function"};function o(e){if(Array.isArray(e))return s(e);if(e&&"object"==typeof e){const t=e,n=t.namespaceList??t.namespaces??t.list??t.data??t.value;if(Array.isArray(n))return s(n)}return[]}function s(e){const t=e.map(e=>{if("string"==typeof e)return e.trim();if(e&&"object"==typeof e){const t=e,n=t.namespace??t.name??t.apiName??t.value;return"string"==typeof n?n.trim():""}return""}).filter(Boolean);return Array.from(new Set(t)).sort((e,t)=>e.localeCompare(t))}function r(e,t,n){const i=c(e,n),a=c(t,n);return i!==a?i-a:e.api_name.localeCompare(t.api_name)}function c(e,t){if(!t)return 3;const n=p(e.api_name),i=p(e.display_name),a=p(e.display_name_r);return n===t?0:[n,i,a].some(e=>e.startsWith(t))?1:[n,i,a].some(e=>e.includes(t))?2:3}function l(e){return p(e)}function p(e){return"string"==typeof e?e.trim().toLowerCase():""}},1293(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.resolveObjectDescribeOutputDir=function(e,t){return a.default.join(m(e,t),"objects")},t.resolveNamespaceOutputDir=function(e,t){return a.default.join(m(e,t),"namespaces")},t.writeObjectDescribeIndex=async function(e,t){await(0,o.ensureDir)(e);const n=a.default.join(e,"objects.md");return await(0,o.writeTextFile)(n,function(e){const t=["# Object Describe Index","",`Total objects: ${e.length}`,"","| API Name | Display Name | Package | Active | Version | Description |","| --- | --- | --- | --- | --- | --- |"];for(const n of e)t.push(`| ${p(n.api_name)} | ${l(n.display_name)} | ${l(n.package_name??n.package)} | ${l(r(n.is_active))} | ${l(n.version)} | ${l(n.description)} |`);return`${t.join("\n")}\n`}(t)),n},t.writeObjectDescribeFile=async function(e,t){await(0,o.ensureDir)(e);const n=a.default.join(e,`${t.objectDescribe.api_name}.md`);return await(0,o.writeTextFile)(n,function(e){const t=e.objectDescribe,n=[`# ${t.api_name}`,"",(o=t,["## Summary","","| Field | Value |","| --- | --- |",...[["API Name",o.api_name],["Display Name",o.display_name],["Display Name R",o.display_name_r],["Package",o.package_name??o.package],["Version",o.version],["Release Version",o.release_version],["Define Type",o.define_type],["Udef",r(o.is_udef)],["Active",r(o.is_active)],["Store Table",o.store_table],["Description",o.description]].map(([e,t])=>`| ${e} | ${l(t)} |`)].join("\n")),"",d(t.fields??[])],i=(a=e.layout)?["## Layout Summary","","| Field | Value |","| --- | --- |",`| API Name | ${l(a.api_name)} |`,`| Display Name | ${l(a.display_name)} |`,`| Layout Type | ${l(a.layout_type)} |`,`| Is Default | ${l(r(a.is_default))} |`,`| Ref Object API Name | ${l(a.ref_object_api_name)} |`].join("\n"):"";var a,o;return i&&n.push("",i),`${n.join("\n")}\n`}(t)),n},t.writeNamespaceMetadataFile=async function(e,t){await(0,o.ensureDir)(e);const n=a.default.join(e,"namespaces.json");return await(0,o.writeJsonFile)(n,t),n};const a=i(n(6760)),o=n(6427);function s(e){return"string"==typeof e?e.trim()||"-":null==e?"-":String(e)}function r(e){return null==e?"-":String(e)}function c(e){return null==e||""===e?"-":"string"==typeof e?e:JSON.stringify(e)}function l(e){return s(e).replace(/\r\n/g,"\n").replace(/\r/g,"\n").replace(/\|/g,"\\|").replace(/\n/g,"<br>")}function p(e){return`[${e}](./${e}.md)`}function u(e){const t=e.options??[];return t.length?l(t.map(e=>`${e.label??e.display_name??e.api_name??s(e.value)}${null==e.value?"":` (${String(e.value)})`}`).join(", ")):"-"}function d(e){if(!e.length)return["## Fields","","- (none)"].join("\n");const t=["## Fields","","| API Name | Label | Type | Define Type | Required | Active | Index | Default | Description | Target API Name | Quote Field | Options |","| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |"];for(const n of e)t.push(`| ${l(n.api_name)} | ${l(n.label??n.display_name)} | ${l(n.type)} | ${l(n.define_type)} | ${l(r(n.is_required))} | ${l(r(n.is_active))} | ${l(r(n.is_index))} | ${l(c(n.default_value))} | ${l(n.description)} | ${l(n.target_api_name)} | ${l(n.quote_field)} | ${u(n)} |`);return t.join("\n")}function m(e,t){return t?.trim()?a.default.resolve(e.workingDir??e.cwd,t.trim()):a.default.join(e.settings.settingsDir,"docs","dev-metadata")}},5253(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.docsDownloadCommand=async function(e){const t=o.default.join(e.settings.settingsDir,"docs"),n=await(0,a.text)({message:"[sharedev] Enter document output directory:",defaultValue:t,placeholder:"Please enter a directory.",initialValue:t,validate(e){if(!e?.trim())return"Directory cannot be empty."}});if((0,a.isCancel)(n)||!n)return void s.loggerService.info("Document download cancelled.");const i=o.default.resolve(e.cwd,n.trim());s.loggerService.startLoading("Preparing document download");try{const e=await(0,r.downloadAndExtractDoc)(i,e=>{s.loggerService.updateLoading(e)});s.loggerService.stopLoading(),s.loggerService.success("Document download complete."),s.loggerService.info(`APL docs: ${e.aplPath}`),s.loggerService.info(`PWC docs: ${e.pwcPath}`)}catch(e){s.loggerService.stopLoading();const t=e instanceof Error?e.message:String(e);throw s.loggerService.error(`Document download failed: ${t}`),e}};const a=n(158),o=i(n(6760)),s=n(7959),r=n(51)},51(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.downloadAndExtractDoc=async function(e,t){const n=s.default.join(e,"apl"),i=s.default.join(e,"pwc");for(const n of c){t(`Downloading ${n.name} Document ...`);const i=await l(n.url,n.subDir,e);t(`Extracting ${n.name} Document ...`),await p(i,s.default.join(e,n.subDir))}return{aplPath:n,pwcPath:i}};const a=i(n(4839)),o=i(n(3985)),s=i(n(6760)),r=n(6427),c=[{name:"APL",url:"https://www.fxiaoke.com/mob/guide/apl/dist/apl.zip",subDir:"apl"},{name:"PWC",url:"https://www.fxiaoke.com/mob/guide/uipaas/dist/pwc.zip",subDir:"pwc"}];async function l(e,t,n){const i=await fetch(e);if(!i.ok)throw new Error(`Failed to download ${e}: ${i.status} ${i.statusText}`);const a=e.split("/").pop()??"download.zip",c=s.default.join(n,a);await(0,r.ensureDir)(n);const l=o.default.createWriteStream(c),p=i.body.getReader();try{for(;;){const{done:e,value:t}=await p.read();if(e){l.close();break}l.write(t)}}catch{throw l.close(),new Error(`Stream error while downloading ${e}`)}return c}async function p(e,t){await(0,r.ensureDir)(t),await(0,a.default)(e,{dir:t})}},7847(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.initProjectCommand=async function(e,t){const n=t.cwd?o.default.resolve(t.cwd):e.cwd,i=await async function(e){const t=h(e);let n=e.ea?.trim()??void 0,i=e.domain?.trim()??void 0,a=e.certificate?.trim()??void 0;if(t&&(n=n??await m("Enter enterprise EA",n),i=i??await m("Enter enterprise domain (for example: https://www.fxiaoke.com)",i||"https://www.fxiaoke.com"),a=a??await m("Enter enterprise certificate",a)),!n)throw new Error("Missing enterprise EA. Use --ea or provide it in interactive mode.");if(!i)throw new Error("Missing enterprise domain. Use --domain or provide it in interactive mode.");if(!function(e){try{return new URL(e),!0}catch{return!1}}(i))throw new Error("Invalid enterprise domain URL. Use a full URL, e.g. https://www.fxiaoke.com.");if(!a)throw new Error("Missing enterprise certificate. Use --certificate or provide it in interactive mode.");return{enterpriseEA:n,domain:i,certificate:a}}(t),g=await async function(e){if(!h(e))return{pullAllApl:!1,pullAllPwc:!1};return{pullAllApl:await f("Pull all APL functions now?"),pullAllPwc:await f("Pull all PWC resources now?")}}(t),x=o.default.join(n,i.enterpriseEA),v=o.default.join(x,".sharedev"),y=o.default.join(v,"settings.json");if(await(0,d.pathExists)(y)&&!t.force){if(!h(t))throw new Error(`${y} already exists. Use --force to overwrite.`);if(!await f(`${y} already exists. Overwrite it?`))return void r.loggerService.info("Initialization canceled.")}await(0,d.ensureDir)(x),await async function(e,t){if(await async function(){return new Promise(e=>{(0,a.exec)("git --version",t=>{e(null===t)})})}()){if(await async function(e){return new Promise(t=>{(0,a.exec)("git init",{cwd:e},(n,i,a)=>{n?r.loggerService.warn(`Failed to initialize git repository: ${a.trim()||n.message}`):r.loggerService.info(`Git repository initialized: ${e}`),t()})})}(e),await async function(e){const t=o.default.join(e,".gitignore");await(0,d.writeTextFile)(t,".sharedev\n"),r.loggerService.info(`.gitignore created: ${t}`)}(e),h(t)&&await f("Do you want to bind a remote git repository?")){const t=await async function(){const e=await(0,s.text)({message:"Enter git remote repository URL:",placeholder:"https://github.com/example/repo.git"});if((0,s.isCancel)(e))throw new Error("Git remote binding canceled.");return e.trim()}();await async function(e,t){return new Promise(n=>{(0,a.exec)(`git remote add origin ${t}`,{cwd:e},(e,i,a)=>{e?r.loggerService.warn(`Failed to add git remote: ${a.trim()||e.message}`):r.loggerService.info(`Git remote added: origin -> ${t}`),n()})})}(e,t)}}else r.loggerService.info("Git is not available, skipping git initialization.")}(x,t),await(0,d.writeJsonFile)(y,i),r.loggerService.success(`Initialization completed: ${y}`),r.loggerService.info(`Workspace folder created: ${x}`);const b=function(e,t,n,i,a){const o={certificate:a.certificate,domain:a.domain,settingsPath:i,settingsDir:n};return{cwd:t,verbose:e.verbose,settings:o,workspaceRoot:n}}(e,x,v,y,i);await async function(e,t){(t.pullAllApl||t.pullAllPwc)&&(c.requestService.configure(e.settings),t.pullAllApl&&(r.loggerService.info("Pulling all APL functions..."),await(0,l.aplPullCommand)(void 0,function(e){return{...e,namespace:"apl",commandName:"pull",args:["--all"],workingDir:e.cwd}}(e),{all:!0})),t.pullAllPwc&&(r.loggerService.info("Pulling all PWC components..."),await(0,p.pwcPullCommand)(void 0,{all:!0,type:u.PWCType.Component},e),r.loggerService.info("Pulling all PWC plugins..."),await(0,p.pwcPullCommand)(void 0,{all:!0,type:u.PWCType.Plugin},e)))}(b,g)};const a=n(1421),o=i(n(6760)),s=n(158),r=n(7959),c=n(8998),l=n(4965),p=n(3029),u=n(3701),d=n(6427);async function m(e,t=""){return function(e){if((0,s.isCancel)(e))throw new Error("Initialization canceled.");return e.trim()}(await(0,s.text)({message:e,placeholder:t||void 0,initialValue:t||void 0}))||t}async function f(e,t=!1){const n=await(0,s.confirm)({message:e,initialValue:t});if((0,s.isCancel)(n))throw new Error("Initialization canceled.");return n}function h(e){return process.stdin.isTTY&&process.stdout.isTTY&&!e.yes}},3029(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.pwcPullCommand=async function(e,t,n){const i=Boolean(t.all);if(i&&e)throw new Error("Invalid arguments: do not pass apiName when using --all.");if(!i&&!e)throw new Error("Invalid arguments: use sharedev pwc pull <apiName> --type <component|plugin> or sharedev pwc pull --all --type <component|plugin>.");if(!t.type)throw new Error("pwc pull currently requires an explicit --type <component|plugin>.");if(i){o.loggerService.startLoading(`Fetching PWC resources for type=${t.type}`);const e=await(0,s.fetchCodeByType)(t.type);if(!e.length)throw o.loggerService.stopLoading(),new Error(`No PWC resources found for type=${t.type}.`);const i={target:e.length,success:0,failed:0};o.loggerService.updateLoading(`Found ${e.length} PWC resources, pulling...`);for(const a of e)try{p(a,t.type);const e=await u(n,a);i.success+=1,o.loggerService.success(`Pulled PWC resource ${a.apiName} to ${e}`)}catch(e){i.failed+=1;const t=e instanceof Error?e.message:String(e);o.loggerService.error(`Failed to pull PWC resource ${a.apiName||"<unknown>"}: ${t}`)}return o.loggerService.stopLoading(),void o.loggerService.info(`PWC pull completed: target=${i.target}, success=${i.success}, failed=${i.failed}`)}o.loggerService.startLoading(`Fetching PWC resource ${e}`);const a=await(0,s.fetchCode)(t.type,e);if(!a.length)throw o.loggerService.stopLoading(),new Error(`PWC resource not found: ${e}`);const r=a[0];p(r,t.type);const c=await u(n,r);o.loggerService.stopLoading(),o.loggerService.success(`Pulled PWC resource ${e} to ${c}`)},t.pwcDeployCommand=async function(e,t,n){if(!e)throw new Error("Invalid arguments: use sharedev pwc deploy <apiName|path> --type <component|plugin>.");if(!t.type)throw new Error("pwc deploy currently requires an explicit --type <component|plugin>.");o.loggerService.startLoading(`Preparing for ${e}`);try{const i=l(e,t.type,n);o.loggerService.updateLoading(`Preparing local files for ${i.apiName}`);const a=await(0,c.readLocalPwcUploadBundle)(n,i.type,i.apiName);o.loggerService.updateLoading(`Uploading ${a.uploadFiles.length} files`);const p=await(0,s.uploadFileList)(a.uploadFiles.map(e=>({fileName:e.fileName,base64String:e.base64String}))),u=[],m=[],f=[];for(let e=0;e<a.uploadFiles.length;e+=1){const t=a.uploadFiles[e],n=p[e],i={fileName:n.fileName,filePath:n.nPath,nPath:n.nPath,fileSize:t.fileSize};a.sourceIndex.has(t.filePath)?u.push(i):a.staticIndex.has(t.filePath)?m.push(i):a.fileTreeIndex.has(t.filePath)&&f.push({...i,path:(0,c.resolveFileTreeRelativePath)(a.fileTreeBaseDir,t.filePath)})}o.loggerService.updateLoading("Updating remote source metadata"),await(0,s.updateCodeSource)(i.type,i.apiName,{entryFileName:a.entryFileName,sourceFiles:u,images:m,fileTree:f}),o.loggerService.updateLoading("Starting remote build");const h=await(0,s.buildCode)(i.type,i.apiName,a.client);if(!h.buildId)throw new Error("Deploy failed: server did not return buildId.");await async function(e,t){const n=t===r.PWCType.Plugin?"Plugin":"Component";for(let t=1;t<=180;t+=1){const i=await(0,s.getBuildResult)(e,n);if(2===i.status)return;if(3===i.status)throw new Error(`Deploy build failed: buildId=${e}`);o.loggerService.updateLoading(`Waiting for build result... ${t}/180 (buildId=${e})`),await d(1e3)}throw new Error(`Deploy timed out after 180s: buildId=${e}`)}(h.buildId,i.type),o.loggerService.stopLoading(),o.loggerService.success(`Deployed PWC resource ${i.apiName}: files=${a.uploadFiles.length}, source=${u.length}, static=${m.length}, fileTree=${f.length}`)}catch(e){throw o.loggerService.stopLoading(),e}},t.pwcPushCommand=async function(e,t,n){if(!e)throw new Error("Invalid arguments: use sharedev pwc push <apiName|path> --type <component|plugin>.");if(!t.type)throw new Error("pwc push requires an explicit --type <component|plugin>.");o.loggerService.startLoading(`Preparing for ${e}`);try{const i=l(e,t.type,n);o.loggerService.updateLoading(`Preparing local files for ${i.apiName}`);const a=await(0,c.readLocalPwcUploadBundle)(n,i.type,i.apiName);o.loggerService.updateLoading(`Uploading ${a.uploadFiles.length} files`);const r=await(0,s.uploadFileList)(a.uploadFiles.map(e=>({fileName:e.fileName,base64String:e.base64String}))),p=[],u=[],d=[];for(let e=0;e<a.uploadFiles.length;e+=1){const t=a.uploadFiles[e],n=r[e],i={fileName:n.fileName,filePath:n.nPath,nPath:n.nPath,fileSize:t.fileSize};a.sourceIndex.has(t.filePath)?p.push(i):a.staticIndex.has(t.filePath)?u.push(i):a.fileTreeIndex.has(t.filePath)&&d.push({...i,path:(0,c.resolveFileTreeRelativePath)(a.fileTreeBaseDir,t.filePath)})}o.loggerService.updateLoading("Updating remote source metadata"),await(0,s.updateCodeSource)(i.type,i.apiName,{entryFileName:a.entryFileName,sourceFiles:p,images:u,fileTree:d}),o.loggerService.stopLoading(),o.loggerService.success(`Pushed PWC resource ${i.apiName}: files=${a.uploadFiles.length}, source=${p.length}, static=${u.length}, fileTree=${d.length}`)}catch(e){throw o.loggerService.stopLoading(),e}},t.pwcPlaceholderCommand=async function(e){o.loggerService.warn(`sharedev pwc ${e} is not implemented yet.`)};const a=i(n(6760)),o=n(7959),s=n(1827),r=n(3701),c=n(5373);function l(e,t,n){const i=e.trim(),o=(0,c.parsePwcApiNameAndTypeFromPath)(i);if(o){if(o.type!==t)throw new Error(`The path type (${o.type}) does not match --type ${t}.`);return{apiName:o.apiName,type:t}}if(i.includes("/")||i.includes("\\")){const e=a.default.resolve(n.cwd,i),o=(0,c.parsePwcApiNameAndTypeFromPath)(e);if(o){if(o.type!==t)throw new Error(`The path type (${o.type}) does not match --type ${t}.`);return{apiName:o.apiName,type:t}}}return{apiName:i,type:t}}function p(e,t){if(e.type!==r.PWCType.Component&&e.type!==r.PWCType.Plugin)throw new Error(`The server returned an unsupported PWC resource type: ${String(e.type)}`);if(e.type!==t)throw new Error(`Requested PWC resource type ${t}, but the server returned ${e.type}. Write operation aborted.`)}async function u(e,t){const n=await(0,s.hydratePwcComponent)(t);return(0,c.writePwcComponent)(e,n)}async function d(e){await new Promise(t=>{setTimeout(t,e)})}},1827(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.fetchCode=async function(e,t){return(await i.requestService.FHH({url:"/EM2HCompBuild/VscodeExtension/downloadCode",data:{type:e,apiName:t}})).components??[]},t.fetchCodeByType=async function(e){return(await i.requestService.FHH({url:"/EM2HCompBuild/VscodeExtension/downloadCode",data:{type:e}})).components??[]},t.downloadFile=a,t.uploadFile=o,t.uploadFileList=async function(e){return Promise.all(e.map(e=>o(e.fileName,e.base64String)))},t.updateCodeSource=async function(e,t,n){return"plugin"===e?async function(e,t){const n=await async function(e){return i.requestService.FHH({url:"/EM1HCompBuild/Plugin/findByApiName",data:{apiName:e}})}(e);return async function(e){return i.requestService.FHH({url:"/EM1HCompBuild/Plugin/updatePlugin",data:e})}({...n,fileTree:t.fileTree||[],sourceFiles:t.sourceFiles||[],images:t.images||[]})}(t,n):async function(e,t){const n=await async function(e){return i.requestService.FHH({url:"/EM1HCompBuild/Component/getComponentByApiName",data:{apiName:e}})}(e);return async function(e){return i.requestService.FHH({url:"/EM1HCompBuild/Component/updateComponent",data:e})}({...n,entryFileName:t.entryFileName||"",fileTree:t.fileTree||[],sourceFiles:t.sourceFiles||[],images:t.images||[]})}(t,n)},t.buildCode=async function(e,t,n="web"){return"component"===e?i.requestService.FHH({url:"/EM9HCompBuild/Component/AsynBuildComponent",data:{apiName:t}}):i.requestService.FHH({url:"/EM9HCompBuild/Plugin/buildPlugin",data:{apiName:t,client:n}})},t.getBuildResult=async function(e,t){return i.requestService.FHH({url:`/EM1HCompBuild/${t}/getBuildResult`,data:{buildId:e}})},t.hydratePwcComponent=async function(e){return{...e,sourceFiles:await s(e.sourceFiles,"sourceFiles",e.apiName),images:await s(e.images,"images",e.apiName),fileTree:await s(e.fileTree,"fileTree",e.apiName)}};const i=n(8998);async function a(e){const t=await i.requestService.FHH({url:"/EM2HCompBuild/VscodeExtension/downloadFile",data:{nPath:e}});return Buffer.from(t.base64String??"","base64")}async function o(e,t){return{fileName:e,nPath:(await i.requestService.FHH({url:"/EM2HCompBuild/VscodeExtension/uploadFile",data:{fileName:e,base64String:t}})).nPath}}async function s(e,t,n){return e?.length?Promise.all(e.map(e=>async function(e,t,n){const i=e.nPath||e.filePath;if(!i)throw new Error(`Cannot download ${t} file ${e.fileName||"<unknown>"} for PWC resource ${n}: missing nPath/filePath.`);try{const t=await a(i);return{fileName:e.fileName,path:e.path,content:t}}catch(a){const o=a instanceof Error?a.message:String(a);throw new Error(`Failed to download ${t} file ${e.fileName||"<unknown>"} for PWC resource ${n} (${i}): ${o}`)}}(e,t,n))):[]}},3701(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.PWCType=void 0,function(e){e.Component="component",e.Plugin="plugin"}(n||(t.PWCType=n={}))},5373(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.resolvePwcComponentRoot=l,t.parsePwcApiNameAndTypeFromPath=function(e){const t=e.replace(/\\/g,"/").match(/(?:^|\/)pwc-(components|plugins)\/([^/]+)/);if(t)return{type:"components"===t[1]?r.PWCType.Component:r.PWCType.Plugin,apiName:t[2]}},t.readLocalPwcUploadBundle=async function(e,t,i){const c=l(e,t,i);if(!await(0,s.pathExists)(c))throw new Error(`Local PWC resource directory not found: ${c}`);const u=a.default.join(c,"source"),d=a.default.join(c,"static"),m=a.default.join(c,"fileTree"),f=a.default.join(c,"mateXml.xml"),h=await p(u),g=await p(d),x=await p(m),v=[...h,...g,...x];if(!v.length)throw new Error(`No local files found to upload for ${i}.`);const{readFile:y}=await Promise.resolve().then(n.bind(n,9031)),b=[];for(const e of v){const t=await y(e),n=await(0,s.statPath)(e);b.push({filePath:e,fileName:a.default.basename(e),base64String:t.toString("base64"),fileSize:n.size})}let w="",_="web";if(await(0,s.pathExists)(f)){const e=function(e,t){const n=(new o.XMLParser).parse(t),i=e===r.PWCType.Component?n.ComponentBundle:n.PluginBundle,a=i?.entryFileName,s=i?.client;return{entryFileName:"string"==typeof a?a:"",client:(c=s,"app"===("string"==typeof c?c.trim().toLowerCase():"")?"app":"web")};var c}(t,await(0,s.readTextFile)(f));w=e.entryFileName,_=e.client}return{entryFileName:w,client:_,uploadFiles:b,sourceIndex:new Set(h),staticIndex:new Set(g),fileTreeIndex:new Set(x),fileTreeBaseDir:m}},t.resolveFileTreeRelativePath=function(e,t){return function(e,t){const n=a.default.relative(e,a.default.dirname(t));return n&&"."!==n?n.split(a.default.sep).join("/"):""}(e,t)},t.writePwcComponent=async function(e,t){const n=l(e,t.type,t.apiName),i=a.default.join(n,"source"),o=a.default.join(n,"static"),r=a.default.join(n,"fileTree");return await(0,s.ensureDir)(n),await(0,s.ensureDir)(i),await(0,s.ensureDir)(o),await(0,s.ensureDir)(r),t.mateXml&&await(0,s.writeTextFile)(a.default.join(n,"mateXml.xml"),t.mateXml),await c(i,t.sourceFiles),await c(o,t.images),await async function(e,t){if(t?.length)for(const n of t){const t=a.default.join(e,n.path??"",n.fileName);await(0,s.writeBinaryFile)(t,n.content)}}(r,t.fileTree),await(0,s.writeJsonFile)(a.default.join(n,".sharedev-meta.json"),{name:t.name,apiName:t.apiName,type:t.type,updateTime:t.updateTime}),n};const a=i(n(6760)),o=n(7344),s=n(6427),r=n(3701);async function c(e,t){if(t?.length)for(const n of t){const t=a.default.join(e,n.fileName);await(0,s.writeBinaryFile)(t,n.content)}}function l(e,t,n){return a.default.join(function(e){return a.default.dirname(e.workspaceRoot)}(e),function(e){switch(e){case r.PWCType.Component:return"pwc-components";case r.PWCType.Plugin:return"pwc-plugins";default:throw new Error(`Cannot resolve the workspace directory for PWC resource type ${String(e)}.`)}}(t),n)}async function p(e){if(!await(0,s.pathExists)(e))return[];const t=await Promise.resolve().then(n.bind(n,9031)),i=await t.readdir(e,{withFileTypes:!0}),o=[];for(const t of i){const n=a.default.join(e,t.name);t.isDirectory()?o.push(...await p(n)):t.isFile()&&o.push(n)}return o.sort((e,t)=>e.localeCompare(t))}},3349(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.specInitCommand=async function(e){const t=await async function(){const e=await(0,c.select)({message:"Select an agent platform",options:u.SUPPORTED_AGENTS.map(e=>({value:e.name,label:`${e.displayName} (${e.skillsDir})`}))});if((0,c.isCancel)(e))throw new Error("Spec initialization canceled.");const t=u.SUPPORTED_AGENTS.find(t=>t.name===e);if(!t)throw new Error("Failed to resolve selected platform.");return t}(),i=o.default.join(e.cwd,t.skillsDir);if(await(0,p.ensureDir)(i),!await async function(e){const t=await Promise.resolve().then(n.bind(n,9031));if(!(await t.readdir(e).catch(()=>[])).length)return!0;const i=await(0,c.confirm)({message:`Directory ${e} already contains files. Continue and overwrite duplicate names?`,initialValue:!1});if((0,c.isCancel)(i))throw new Error("Spec initialization canceled.");return i}(i))return void l.loggerService.info("Spec initialization canceled.");const s=o.default.join(a.default.tmpdir(),`sharedev-spec-${Date.now()}.zip`);try{l.loggerService.startLoading(`Downloading template archive: ${u.SPEC_TEMPLATE_ZIP_URL}`);const e=await async function(e){const t=await r.default.get(e,{responseType:"arraybuffer",timeout:6e4});return Buffer.from(t.data)}(u.SPEC_TEMPLATE_ZIP_URL);await(0,p.writeBinaryFile)(s,e),l.loggerService.updateLoading(`Extracting archive to: ${i}`),await async function(e,t){"win32"!==process.platform?await m("unzip",["-o",e,"-d",t]):await m("powershell",["-NoProfile","-Command",`Expand-Archive -LiteralPath '${d(e)}' -DestinationPath '${d(t)}' -Force`])}(s,i),l.loggerService.stopLoading(),l.loggerService.success("Spec initialization completed."),l.loggerService.info(`Platform: ${t.displayName} (${t.name})`),l.loggerService.info(`Directory: ${t.skillsDir}`),l.loggerService.info(`Absolute path: ${i}`)}finally{await(0,p.pathExists)(s)&&await(0,p.removePath)(s)}};const a=i(n(8161)),o=i(n(6760)),s=n(1421),r=i(n(9435)),c=n(158),l=n(7959),p=n(6427),u=n(5532);function d(e){return e.replace(/'/g,"''")}async function m(e,t){await new Promise((n,i)=>{const a=(0,s.spawn)(e,t,{stdio:"ignore"});a.on("error",i),a.on("close",a=>{0!==a?i(new Error(`Command failed: ${e} ${t.join(" ")} (exit=${a??-1})`)):n()})})}},5532(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.SUPPORTED_AGENTS=t.SPEC_TEMPLATE_ZIP_URL=void 0,t.SPEC_TEMPLATE_ZIP_URL="https://www.fxiaoke.com/mob/guide/uipaas/dist/pwc.zip",t.SUPPORTED_AGENTS=[{name:"amp",displayName:"Amp",skillsDir:".agents/skills"},{name:"antigravity",displayName:"Antigravity",skillsDir:".agents/skills"},{name:"augment",displayName:"Augment",skillsDir:".augment/skills"},{name:"claude-code",displayName:"Claude Code",skillsDir:".claude/skills"},{name:"openclaw",displayName:"OpenClaw",skillsDir:"skills"},{name:"cline",displayName:"Cline",skillsDir:".agents/skills"},{name:"codebuddy",displayName:"CodeBuddy",skillsDir:".codebuddy/skills"},{name:"codex",displayName:"Codex",skillsDir:".agents/skills"},{name:"command-code",displayName:"Command Code",skillsDir:".commandcode/skills"},{name:"continue",displayName:"Continue",skillsDir:".continue/skills"},{name:"cortex",displayName:"Cortex Code",skillsDir:".cortex/skills"},{name:"crush",displayName:"Crush",skillsDir:".crush/skills"},{name:"cursor",displayName:"Cursor",skillsDir:".agents/skills"},{name:"deepagents",displayName:"Deep Agents",skillsDir:".agents/skills"},{name:"droid",displayName:"Droid",skillsDir:".factory/skills"},{name:"firebender",displayName:"Firebender",skillsDir:".agents/skills"},{name:"gemini-cli",displayName:"Gemini CLI",skillsDir:".agents/skills"},{name:"github-copilot",displayName:"GitHub Copilot",skillsDir:".agents/skills"},{name:"goose",displayName:"Goose",skillsDir:".goose/skills"},{name:"junie",displayName:"Junie",skillsDir:".junie/skills"},{name:"iflow-cli",displayName:"iFlow CLI",skillsDir:".iflow/skills"},{name:"kilo",displayName:"Kilo Code",skillsDir:".kilocode/skills"},{name:"kimi-cli",displayName:"Kimi Code CLI",skillsDir:".agents/skills"},{name:"kiro-cli",displayName:"Kiro CLI",skillsDir:".kiro/skills"},{name:"kode",displayName:"Kode",skillsDir:".kode/skills"},{name:"mcpjam",displayName:"MCPJam",skillsDir:".mcpjam/skills"},{name:"mistral-vibe",displayName:"Mistral Vibe",skillsDir:".vibe/skills"},{name:"mux",displayName:"Mux",skillsDir:".mux/skills"},{name:"opencode",displayName:"OpenCode",skillsDir:".agents/skills"},{name:"openhands",displayName:"OpenHands",skillsDir:".openhands/skills"},{name:"pi",displayName:"Pi",skillsDir:".pi/skills"},{name:"qoder",displayName:"Qoder",skillsDir:".qoder/skills"},{name:"qwen-code",displayName:"Qwen Code",skillsDir:".qwen/skills"},{name:"replit",displayName:"Replit",skillsDir:".agents/skills"},{name:"roo",displayName:"Roo Code",skillsDir:".roo/skills"},{name:"trae",displayName:"Trae",skillsDir:".trae/skills"},{name:"trae-cn",displayName:"Trae CN",skillsDir:".trae/skills"},{name:"warp",displayName:"Warp",skillsDir:".agents/skills"},{name:"windsurf",displayName:"Windsurf",skillsDir:".windsurf/skills"},{name:"zencoder",displayName:"Zencoder",skillsDir:".zencoder/skills"},{name:"neovate",displayName:"Neovate",skillsDir:".neovate/skills"},{name:"pochi",displayName:"Pochi",skillsDir:".pochi/skills"},{name:"adal",displayName:"AdaL",skillsDir:".adal/skills"},{name:"universal",displayName:"Universal",skillsDir:".agents/skills"}]},9754(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.createLineDiff=function(e,t,n){const i=function(e,t){if(e.join("\n")===t.join("\n"))return[];const n=function(e,t){const n=Array.from({length:e.length+1},()=>Array(t.length+1).fill(0));for(let i=e.length-1;i>=0;i-=1)for(let a=t.length-1;a>=0;a-=1)e[i]===t[a]?n[i][a]=n[i+1][a+1]+1:n[i][a]=Math.max(n[i+1][a],n[i][a+1]);return n}(e,t),i=function(e,t,n){const i=[];let a=0,o=0;for(;a<e.length&&o<t.length;)e[a]===t[o]?(i.push({type:"context",content:e[a]}),a+=1,o+=1):n[a+1][o]>=n[a][o+1]?(i.push({type:"delete",content:e[a]}),a+=1):(i.push({type:"add",content:t[o]}),o+=1);for(;a<e.length;)i.push({type:"delete",content:e[a]}),a+=1;for(;o<t.length;)i.push({type:"add",content:t[o]}),o+=1;return i}(e,t,n);return function(e){const t=[];let n=1,i=1;for(const a of e)"context"===a.type?(t.push({...a,oldLineNumber:n,newLineNumber:i}),n+=1,i+=1):"delete"===a.type?(t.push({...a,oldLineNumber:n}),n+=1):(t.push({...a,newLineNumber:i}),i+=1);return t}(i)}(o(e),o(t));return{oldFileName:n.oldFileName,newFileName:n.newFileName,oldHeader:n.oldHeader,newHeader:n.newHeader,oldGitPath:f(n.oldGitPath??n.oldFileName),newGitPath:f(n.newGitPath??n.newFileName),hunks:s(i,3)}},t.summarizeDiff=function(e){let t=0,n=0;for(const i of e.hunks)for(const e of i.rows)"add"===e.type?t+=1:"delete"===e.type&&(n+=1);return{additions:t,deletions:n,changed:t>0||n>0}},t.renderUnifiedDiff=function(e){const t=e.hunks.flatMap(e=>e.rows),n=p(t,"oldLineNumber"),i=p(t,"newLineNumber"),o=[a.default.bold(`Update(${e.newFileName})`),a.default.dim(` --- a/${e.oldGitPath}${m(e.oldHeader)}`),a.default.dim(` +++ b/${e.newGitPath}${m(e.newHeader)}`)];for(const t of e.hunks)o.push(c(t)),o.push(l(t.rows,n,i));return o.join("\n")};const a=i(n(5249));function o(e){return e.replace(/\r\n/g,"\n").split("\n")}function s(e,t){if(!e.length)return[];const n=[];for(let t=0;t<e.length;t+=1)"context"!==e[t].type&&n.push(t);return n.length?function(e){if(!e.length)return[];const t=[e[0]];for(let n=1;n<e.length;n+=1){const i=e[n],a=t[t.length-1];i.start<=a.end+1?a.end=Math.max(a.end,i.end):t.push({...i})}return t}(n.map(n=>({start:Math.max(0,n-t),end:Math.min(e.length-1,n+t)}))).map(t=>function(e){const t=e.filter(e=>"add"!==e.type),n=e.filter(e=>"delete"!==e.type),i=t[0]?.oldLineNumber??r(e,"old"),a=n[0]?.newLineNumber??r(e,"new");return{oldStart:i,oldLines:t.length,newStart:a,newLines:n.length,rows:e}}(e.slice(t.start,t.end+1))):[]}function r(e,t){const n="old"===t?"oldLineNumber":"newLineNumber",i=e.find(e=>void 0!==e[n])?.[n];return i??0}function c(e){return a.default.cyan(`@@ -${d(e.oldStart,e.oldLines)} +${d(e.newStart,e.newLines)} @@`)}function l(e,t,n){return e.map(e=>function(e,t,n){const i=u(e.oldLineNumber,t),o=u(e.newLineNumber,n),s=" ".repeat(Math.max(t,n));return"context"===e.type?a.default.dim(` ${i} ${o} │ ${e.content}`):"delete"===e.type?`${a.default.bgRed.white(`- ${i}`)} ${a.default.dim(s)} │ ${a.default.red(e.content)}`:`${a.default.bgGreen.black(`+ ${o}`)} ${a.default.dim(s)} │ ${a.default.green(e.content)}`}(e,t,n)).join("\n")}function p(e,t){const n=e.reduce((e,n)=>Math.max(e,n[t]??0),0);return String(Math.max(1,n)).length}function u(e,t){return void 0===e?"".padStart(t," "):String(e).padStart(t," ")}function d(e,t){return 0===t?`${e},0`:1===t?String(e):`${e},${t}`}function m(e){return e?`\t${e}`:""}function f(e){return e.replace(/\\/g,"/")}},6427(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ensureDir=async function(e){await a.default.ensureDir(e)},t.readJsonFile=async function(e){return a.default.readJson(e)},t.writeJsonFile=async function(e,t){await a.default.ensureDir(o.default.dirname(e)),await a.default.writeJson(e,t,{spaces:2})},t.writeTextFile=async function(e,t){await a.default.ensureDir(o.default.dirname(e)),await a.default.writeFile(e,t,"utf8")},t.writeBinaryFile=async function(e,t){await a.default.ensureDir(o.default.dirname(e)),await a.default.writeFile(e,t)},t.readTextFile=async function(e){return a.default.readFile(e,"utf8")},t.pathExists=async function(e){return a.default.pathExists(e)},t.statPath=async function(e){return a.default.stat(e)},t.removePath=async function(e){await a.default.remove(e)};const a=i(n(3985)),o=i(n(6760))},9034(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.normalizePath=o,t.toAbsolutePath=function(e,t){return a.default.isAbsolute(e)?o(e):o(a.default.resolve(t,e))},t.getFileNameWithoutExt=function(e){return a.default.basename(e,a.default.extname(e))},t.maskCertificate=function(e){return e?e.length<=8?`${e.slice(0,2)}***`:`${e.slice(0,4)}***${e.slice(-4)}`:""};const a=i(n(6760));function o(e){return a.default.normalize(e)}},4635(e,t){t.fromCallback=function(e){return Object.defineProperty(function(...t){if("function"!=typeof t[t.length-1])return new Promise((n,i)=>{t.push((e,t)=>null!=e?i(e):n(t)),e.apply(this,t)});e.apply(this,t)},"name",{value:e.name})},t.fromPromise=function(e){return Object.defineProperty(function(...t){const n=t[t.length-1];if("function"!=typeof n)return e.apply(this,t);t.pop(),e.apply(this,t).then(e=>n(null,e),n)},"name",{value:e.name})}},4008(e){e.exports=function e(t,n){if(t&&n)return e(t)(n);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(e){i[e]=t[e]}),i;function i(){for(var e=new Array(arguments.length),n=0;n<e.length;n++)e[n]=arguments[n];var i=t.apply(this,e),a=e[e.length-1];return"function"==typeof i&&i!==a&&Object.keys(a).forEach(function(e){i[e]=a[e]}),i}}},7855(e,t,n){var i,a=n(9896),o=n(3106),s=n(9776),r=n(6788),c=n(9023),l=n(4434).EventEmitter,p=n(2203).Transform,u=n(2203).PassThrough,d=n(2203).Writable;function m(e,t,n){"function"==typeof t&&(n=t,t=null),null==t&&(t={}),null==t.autoClose&&(t.autoClose=!1),null==t.lazyEntries&&(t.lazyEntries=!1),null==t.decodeStrings&&(t.decodeStrings=!0),null==t.validateEntrySizes&&(t.validateEntrySizes=!0),null==t.strictFileNames&&(t.strictFileNames=!1),null==n&&(n=$),a.fstat(e,function(i,a){if(i)return n(i);f(s.createFromFd(e,{autoClose:!0}),a.size,t,n)})}function f(e,t,n,a){"function"==typeof n&&(a=n,n=null),null==n&&(n={}),null==n.autoClose&&(n.autoClose=!0),null==n.lazyEntries&&(n.lazyEntries=!1),null==n.decodeStrings&&(n.decodeStrings=!0);var o=!!n.decodeStrings;if(null==n.validateEntrySizes&&(n.validateEntrySizes=!0),null==n.strictFileNames&&(n.strictFileNames=!1),null==a&&(a=$),"number"!=typeof t)throw new Error("expected totalSize parameter to be a number");if(t>Number.MAX_SAFE_INTEGER)throw new Error("zip file too large. only file sizes up to 2^52 are supported due to JavaScript's Number type being an IEEE 754 double.");e.ref();var s=Math.min(65557,t),r=i(s),c=t-r.length;w(e,r,0,s,c,function(l){if(l)return a(l);for(var p=s-22;p>=0;p-=1)if(101010256===r.readUInt32LE(p)){var u=r.slice(p),d=u.readUInt16LE(4);if(0!==d)return a(new Error("multi-disk zip files are not supported: found disk number: "+d));var m=u.readUInt16LE(10),f=u.readUInt32LE(16),g=u.readUInt16LE(20),x=u.length-22;if(g!==x)return a(new Error("invalid comment length. expected: "+x+". found: "+g));var v=o?C(u,22,u.length,!1):u.slice(22);if(65535!==m&&4294967295!==f)return a(null,new h(e,f,t,m,v,n.autoClose,n.lazyEntries,o,n.validateEntrySizes,n.strictFileNames));var y=i(20),b=c+p-y.length;return void w(e,y,0,y.length,b,function(s){if(s)return a(s);if(117853008!==y.readUInt32LE(0))return a(new Error("invalid zip64 end of central directory locator signature"));var r=T(y,8),c=i(56);w(e,c,0,c.length,r,function(i){return i?a(i):101075792!==c.readUInt32LE(0)?a(new Error("invalid zip64 end of central directory record signature")):(m=T(c,32),f=T(c,48),a(null,new h(e,f,t,m,v,n.autoClose,n.lazyEntries,o,n.validateEntrySizes,n.strictFileNames)))})})}a(new Error("end of central directory record signature not found"))})}function h(e,t,n,i,a,o,s,r,c,p){var u=this;l.call(u),u.reader=e,u.reader.on("error",function(e){x(u,e)}),u.reader.once("close",function(){u.emit("close")}),u.readEntryCursor=t,u.fileSize=n,u.entryCount=i,u.comment=a,u.entriesRead=0,u.autoClose=!!o,u.lazyEntries=!!s,u.decodeStrings=!!r,u.validateEntrySizes=!!c,u.strictFileNames=!!p,u.isOpen=!0,u.emittedError=!1,u.lazyEntries||u._readEntry()}function g(e,t){e.autoClose&&e.close(),x(e,t)}function x(e,t){e.emittedError||(e.emittedError=!0,e.emit("error",t))}function v(){}function y(e,t){return new Date(1980+(e>>9&127),(e>>5&15)-1,31&e,t>>11&31,t>>5&63,2*(31&t),0)}function b(e){return-1!==e.indexOf("\\")?"invalid characters in fileName: "+e:/^[a-zA-Z]:/.test(e)||/^\//.test(e)?"absolute path: "+e:-1!==e.split("/").indexOf("..")?"invalid relative path: "+e:null}function w(e,t,n,a,o,s){if(0===a)return setImmediate(function(){s(null,i(0))});e.read(t,n,a,o,function(e,t){return e?s(e):t<a?s(new Error("unexpected EOF")):void s()})}function _(e){p.call(this),this.actualByteCount=0,this.expectedByteCount=e}function S(){l.call(this),this.refCount=0}function E(e){u.call(this),this.context=e,this.context.ref(),this.unreffedYet=!1}function C(e,t,n,i){if(i)return e.toString("utf8",t,n);for(var a="",o=t;o<n;o++)a+="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ "[e[o]];return a}function T(e,t){var n=e.readUInt32LE(t);return 4294967296*e.readUInt32LE(t+4)+n}function $(e){if(e)throw e}t.open=function(e,t,n){"function"==typeof t&&(n=t,t=null),null==t&&(t={}),null==t.autoClose&&(t.autoClose=!0),null==t.lazyEntries&&(t.lazyEntries=!1),null==t.decodeStrings&&(t.decodeStrings=!0),null==t.validateEntrySizes&&(t.validateEntrySizes=!0),null==t.strictFileNames&&(t.strictFileNames=!1),null==n&&(n=$),a.open(e,"r",function(e,i){if(e)return n(e);m(i,t,function(e,t){e&&a.close(i,$),n(e,t)})})},t.fromFd=m,t.fromBuffer=function(e,t,n){"function"==typeof t&&(n=t,t=null),null==t&&(t={}),t.autoClose=!1,null==t.lazyEntries&&(t.lazyEntries=!1),null==t.decodeStrings&&(t.decodeStrings=!0),null==t.validateEntrySizes&&(t.validateEntrySizes=!0),null==t.strictFileNames&&(t.strictFileNames=!1),f(s.createFromBuffer(e,{maxChunkSize:65536}),e.length,t,n)},t.fromRandomAccessReader=f,t.dosDateTimeToDate=y,t.validateFileName=b,t.ZipFile=h,t.Entry=v,t.RandomAccessReader=S,c.inherits(h,l),h.prototype.close=function(){this.isOpen&&(this.isOpen=!1,this.reader.unref())},h.prototype.readEntry=function(){if(!this.lazyEntries)throw new Error("readEntry() called without lazyEntries:true");this._readEntry()},h.prototype._readEntry=function(){var e=this;if(e.entryCount!==e.entriesRead){if(!e.emittedError){var t=i(46);w(e.reader,t,0,t.length,e.readEntryCursor,function(n){if(n)return g(e,n);if(!e.emittedError){var a=new v,o=t.readUInt32LE(0);if(33639248!==o)return g(e,new Error("invalid central directory file header signature: 0x"+o.toString(16)));if(a.versionMadeBy=t.readUInt16LE(4),a.versionNeededToExtract=t.readUInt16LE(6),a.generalPurposeBitFlag=t.readUInt16LE(8),a.compressionMethod=t.readUInt16LE(10),a.lastModFileTime=t.readUInt16LE(12),a.lastModFileDate=t.readUInt16LE(14),a.crc32=t.readUInt32LE(16),a.compressedSize=t.readUInt32LE(20),a.uncompressedSize=t.readUInt32LE(24),a.fileNameLength=t.readUInt16LE(28),a.extraFieldLength=t.readUInt16LE(30),a.fileCommentLength=t.readUInt16LE(32),a.internalFileAttributes=t.readUInt16LE(36),a.externalFileAttributes=t.readUInt32LE(38),a.relativeOffsetOfLocalHeader=t.readUInt32LE(42),64&a.generalPurposeBitFlag)return g(e,new Error("strong encryption is not supported"));e.readEntryCursor+=46,t=i(a.fileNameLength+a.extraFieldLength+a.fileCommentLength),w(e.reader,t,0,t.length,e.readEntryCursor,function(n){if(n)return g(e,n);if(!e.emittedError){var o=!!(2048&a.generalPurposeBitFlag);a.fileName=e.decodeStrings?C(t,0,a.fileNameLength,o):t.slice(0,a.fileNameLength);var s=a.fileNameLength+a.extraFieldLength,c=t.slice(a.fileNameLength,s);a.extraFields=[];for(var l=0;l<c.length-3;){var p=c.readUInt16LE(l+0),u=c.readUInt16LE(l+2),d=l+4,m=d+u;if(m>c.length)return g(e,new Error("extra field length exceeds extra field buffer size"));var f=i(u);c.copy(f,0,d,m),a.extraFields.push({id:p,data:f}),l=m}if(a.fileComment=e.decodeStrings?C(t,s,s+a.fileCommentLength,o):t.slice(s,s+a.fileCommentLength),a.comment=a.fileComment,e.readEntryCursor+=t.length,e.entriesRead+=1,4294967295===a.uncompressedSize||4294967295===a.compressedSize||4294967295===a.relativeOffsetOfLocalHeader){var h=null;for(l=0;l<a.extraFields.length;l++)if(1===(v=a.extraFields[l]).id){h=v.data;break}if(null==h)return g(e,new Error("expected zip64 extended information extra field"));var x=0;if(4294967295===a.uncompressedSize){if(x+8>h.length)return g(e,new Error("zip64 extended information extra field does not include uncompressed size"));a.uncompressedSize=T(h,x),x+=8}if(4294967295===a.compressedSize){if(x+8>h.length)return g(e,new Error("zip64 extended information extra field does not include compressed size"));a.compressedSize=T(h,x),x+=8}if(4294967295===a.relativeOffsetOfLocalHeader){if(x+8>h.length)return g(e,new Error("zip64 extended information extra field does not include relative header offset"));a.relativeOffsetOfLocalHeader=T(h,x),x+=8}}if(e.decodeStrings)for(l=0;l<a.extraFields.length;l++){var v;if(28789===(v=a.extraFields[l]).id){if(v.data.length<6)continue;if(1!==v.data.readUInt8(0))continue;var y=v.data.readUInt32LE(1);if(r.unsigned(t.slice(0,a.fileNameLength))!==y)continue;a.fileName=C(v.data,5,v.data.length,!0);break}}if(e.validateEntrySizes&&0===a.compressionMethod){var w=a.uncompressedSize;if(a.isEncrypted()&&(w+=12),a.compressedSize!==w){var _="compressed/uncompressed size mismatch for stored file: "+a.compressedSize+" != "+a.uncompressedSize;return g(e,new Error(_))}}if(e.decodeStrings){e.strictFileNames||(a.fileName=a.fileName.replace(/\\/g,"/"));var S=b(a.fileName,e.validateFileNameOptions);if(null!=S)return g(e,new Error(S))}e.emit("entry",a),e.lazyEntries||e._readEntry()}})}})}}else setImmediate(function(){e.autoClose&&e.close(),e.emittedError||e.emit("end")})},h.prototype.openReadStream=function(e,t,n){var a=this,s=0,r=e.compressedSize;if(null==n)n=t,t={};else{if(null!=t.decrypt){if(!e.isEncrypted())throw new Error("options.decrypt can only be specified for encrypted entries");if(!1!==t.decrypt)throw new Error("invalid options.decrypt value: "+t.decrypt);if(e.isCompressed()&&!1!==t.decompress)throw new Error("entry is encrypted and compressed, and options.decompress !== false")}if(null!=t.decompress){if(!e.isCompressed())throw new Error("options.decompress can only be specified for compressed entries");if(!1!==t.decompress&&!0!==t.decompress)throw new Error("invalid options.decompress value: "+t.decompress)}if(null!=t.start||null!=t.end){if(e.isCompressed()&&!1!==t.decompress)throw new Error("start/end range not allowed for compressed entry without options.decompress === false");if(e.isEncrypted()&&!1!==t.decrypt)throw new Error("start/end range not allowed for encrypted entry without options.decrypt === false")}if(null!=t.start){if((s=t.start)<0)throw new Error("options.start < 0");if(s>e.compressedSize)throw new Error("options.start > entry.compressedSize")}if(null!=t.end){if((r=t.end)<0)throw new Error("options.end < 0");if(r>e.compressedSize)throw new Error("options.end > entry.compressedSize");if(r<s)throw new Error("options.end < options.start")}}if(!a.isOpen)return n(new Error("closed"));if(e.isEncrypted()&&!1!==t.decrypt)return n(new Error("entry is encrypted, and options.decrypt !== false"));a.reader.ref();var c=i(30);w(a.reader,c,0,c.length,e.relativeOffsetOfLocalHeader,function(i){try{if(i)return n(i);var l=c.readUInt32LE(0);if(67324752!==l)return n(new Error("invalid local file header signature: 0x"+l.toString(16)));var p,u=c.readUInt16LE(26),d=c.readUInt16LE(28),m=e.relativeOffsetOfLocalHeader+c.length+u+d;if(0===e.compressionMethod)p=!1;else{if(8!==e.compressionMethod)return n(new Error("unsupported compression method: "+e.compressionMethod));p=null==t.decompress||t.decompress}var f=m,h=f+e.compressedSize;if(0!==e.compressedSize&&h>a.fileSize)return n(new Error("file data overflows file bounds: "+f+" + "+e.compressedSize+" > "+a.fileSize));var g=a.reader.createReadStream({start:f+s,end:f+r}),x=g;if(p){var v=!1,y=o.createInflateRaw();g.on("error",function(e){setImmediate(function(){v||y.emit("error",e)})}),g.pipe(y),a.validateEntrySizes?(x=new _(e.uncompressedSize),y.on("error",function(e){setImmediate(function(){v||x.emit("error",e)})}),y.pipe(x)):x=y,x.destroy=function(){v=!0,y!==x&&y.unpipe(x),g.unpipe(y),g.destroy()}}n(null,x)}finally{a.reader.unref()}})},v.prototype.getLastModDate=function(){return y(this.lastModFileDate,this.lastModFileTime)},v.prototype.isEncrypted=function(){return!!(1&this.generalPurposeBitFlag)},v.prototype.isCompressed=function(){return 8===this.compressionMethod},c.inherits(_,p),_.prototype._transform=function(e,t,n){if(this.actualByteCount+=e.length,this.actualByteCount>this.expectedByteCount){var i="too many bytes in the stream. expected "+this.expectedByteCount+". got at least "+this.actualByteCount;return n(new Error(i))}n(null,e)},_.prototype._flush=function(e){if(this.actualByteCount<this.expectedByteCount){var t="not enough bytes in the stream. expected "+this.expectedByteCount+". got only "+this.actualByteCount;return e(new Error(t))}e()},c.inherits(S,l),S.prototype.ref=function(){this.refCount+=1},S.prototype.unref=function(){var e=this;if(e.refCount-=1,!(e.refCount>0)){if(e.refCount<0)throw new Error("invalid unref");e.close(function(t){if(t)return e.emit("error",t);e.emit("close")})}},S.prototype.createReadStream=function(e){var t=e.start,n=e.end;if(t===n){var i=new u;return setImmediate(function(){i.end()}),i}var a=this._readStreamForRange(t,n),o=!1,s=new E(this);a.on("error",function(e){setImmediate(function(){o||s.emit("error",e)})}),s.destroy=function(){a.unpipe(s),s.unref(),a.destroy()};var r=new _(n-t);return s.on("error",function(e){setImmediate(function(){o||r.emit("error",e)})}),r.destroy=function(){o=!0,s.unpipe(r),s.destroy()},a.pipe(s).pipe(r)},S.prototype._readStreamForRange=function(e,t){throw new Error("not implemented")},S.prototype.read=function(e,t,n,i,a){var o=this.createReadStream({start:i,end:i+n}),s=new d,r=0;s._write=function(n,i,a){n.copy(e,t+r,0,n.length),r+=n.length,a()},s.on("finish",a),o.on("error",function(e){a(e)}),o.pipe(s)},S.prototype.close=function(e){setImmediate(e)},c.inherits(E,u),E.prototype._flush=function(e){this.unref(),e()},E.prototype.unref=function(e){this.unreffedYet||(this.unreffedYet=!0,this.context.unref())},i="function"==typeof Buffer.allocUnsafe?function(e){return Buffer.allocUnsafe(e)}:function(e){return new Buffer(e)}},9031(e){e.exports=import("node:fs/promises")},7721(t,n,i){var a,o;t.exports=(a={default:()=>e.default,stdin:()=>e.stdin,stdout:()=>e.stdout},o={},i.d(o,a),o)},2607(e,n,i){var a,o;e.exports=(a={ReadStream:()=>t.ReadStream,default:()=>t.default},o={},i.d(o,a),o)},4472(e,t,i){var a,o;e.exports=(a={stripVTControlCharacters:()=>n.stripVTControlCharacters,styleText:()=>n.styleText},o={},i.d(o,a),o)},2613(e){e.exports=a("assert")},181(e){e.exports=a("buffer")},9140(e){e.exports=a("constants")},6982(e){e.exports=a("crypto")},4434(e){e.exports=a("events")},9896(e){e.exports=a("fs")},8611(e){e.exports=a("http")},5675(e){e.exports=a("http2")},5692(e){e.exports=a("https")},1421(e){e.exports=a("node:child_process")},7598(e){e.exports=a("node:crypto")},8474(e){e.exports=a("node:events")},3024(e){e.exports=a("node:fs")},8161(e){e.exports=a("node:os")},6760(e){e.exports=a("node:path")},1708(e){e.exports=a("node:process")},857(e){e.exports=a("os")},6928(e){e.exports=a("path")},2203(e){e.exports=a("stream")},2018(e){e.exports=a("tty")},7016(e){e.exports=a("url")},9023(e){e.exports=a("util")},3106(e){e.exports=a("zlib")},9435(e,t,n){const i=n(8654),a=n(6982),o=n(7016),s=n(6350),r=n(8611),c=n(5692),l=n(5675),p=n(9023),u=n(1233),d=n(3106),m=n(2203),f=n(4434);function h(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}const g=h(i),x=h(a),v=h(o),y=h(s),b=h(r),w=h(c),_=h(l),S=h(p),E=h(u),C=h(d),T=h(m);function $(e,t){return function(){return e.apply(t,arguments)}}const{toString:k}=Object.prototype,{getPrototypeOf:O}=Object,{iterator:N,toStringTag:A}=Symbol,P=(j=Object.create(null),e=>{const t=k.call(e);return j[t]||(j[t]=t.slice(8,-1).toLowerCase())});var j;const F=e=>(e=e.toLowerCase(),t=>P(t)===e),R=e=>t=>typeof t===e,{isArray:L}=Array,I=R("undefined");function D(e){return null!==e&&!I(e)&&null!==e.constructor&&!I(e.constructor)&&z(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const M=F("ArrayBuffer"),B=R("string"),z=R("function"),U=R("number"),V=e=>null!==e&&"object"==typeof e,q=e=>{if("object"!==P(e))return!1;const t=O(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||A in e||N in e)},H=F("Date"),W=F("File"),G=F("Blob"),J=F("FileList"),Y="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},K=void 0!==Y.FormData?Y.FormData:void 0,X=F("URLSearchParams"),[Z,Q,ee,te]=["ReadableStream","Request","Response","Headers"].map(F);function ne(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let i,a;if("object"!=typeof e&&(e=[e]),L(e))for(i=0,a=e.length;i<a;i++)t.call(null,e[i],i,e);else{if(D(e))return;const a=n?Object.getOwnPropertyNames(e):Object.keys(e),o=a.length;let s;for(i=0;i<o;i++)s=a[i],t.call(null,e[s],s,e)}}function ie(e,t){if(D(e))return null;t=t.toLowerCase();const n=Object.keys(e);let i,a=n.length;for(;a-- >0;)if(i=n[a],t===i.toLowerCase())return i;return null}const ae="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,oe=e=>!I(e)&&e!==ae,se=(re="undefined"!=typeof Uint8Array&&O(Uint8Array),e=>re&&e instanceof re);var re;const ce=F("HTMLFormElement"),le=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),pe=F("RegExp"),ue=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};ne(n,(n,a)=>{let o;!1!==(o=t(n,a,e))&&(i[a]=o||n)}),Object.defineProperties(e,i)},de=F("AsyncFunction"),me=(fe="function"==typeof setImmediate,he=z(ae.postMessage),fe?setImmediate:he?(ge=`axios@${Math.random()}`,xe=[],ae.addEventListener("message",({source:e,data:t})=>{e===ae&&t===ge&&xe.length&&xe.shift()()},!1),e=>{xe.push(e),ae.postMessage(ge,"*")}):e=>setTimeout(e));var fe,he,ge,xe;const ve="undefined"!=typeof queueMicrotask?queueMicrotask.bind(ae):"undefined"!=typeof process&&process.nextTick||me,ye={isArray:L,isArrayBuffer:M,isBuffer:D,isFormData:e=>{let t;return e&&(K&&e instanceof K||z(e.append)&&("formdata"===(t=P(e))||"object"===t&&z(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&M(e.buffer),t},isString:B,isNumber:U,isBoolean:e=>!0===e||!1===e,isObject:V,isPlainObject:q,isEmptyObject:e=>{if(!V(e)||D(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:Z,isRequest:Q,isResponse:ee,isHeaders:te,isUndefined:I,isDate:H,isFile:W,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:G,isRegExp:pe,isFunction:z,isStream:e=>V(e)&&z(e.pipe),isURLSearchParams:X,isTypedArray:se,isFileList:J,forEach:ne,merge:function e(){const{caseless:t,skipUndefined:n}=oe(this)&&this||{},i={},a=(a,o)=>{if("__proto__"===o||"constructor"===o||"prototype"===o)return;const s=t&&ie(i,o)||o;q(i[s])&&q(a)?i[s]=e(i[s],a):q(a)?i[s]=e({},a):L(a)?i[s]=a.slice():n&&I(a)||(i[s]=a)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&ne(arguments[e],a);return i},extend:(e,t,n,{allOwnKeys:i}={})=>(ne(t,(t,i)=>{n&&z(t)?Object.defineProperty(e,i,{value:$(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,i,{value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:i}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,i)=>{let a,o,s;const r={};if(t=t||{},null==e)return t;do{for(a=Object.getOwnPropertyNames(e),o=a.length;o-- >0;)s=a[o],i&&!i(s,e,t)||r[s]||(t[s]=e[s],r[s]=!0);e=!1!==n&&O(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:P,kindOfTest:F,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const i=e.indexOf(t,n);return-1!==i&&i===n},toArray:e=>{if(!e)return null;if(L(e))return e;let t=e.length;if(!U(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[N]).call(e);let i;for(;(i=n.next())&&!i.done;){const n=i.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const i=[];for(;null!==(n=e.exec(t));)i.push(n);return i},isHTMLForm:ce,hasOwnProperty:le,hasOwnProp:le,reduceDescriptors:ue,freezeMethods:e=>{ue(e,(t,n)=>{if(z(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const i=e[n];z(i)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},i=e=>{e.forEach(e=>{n[e]=!0})};return L(e)?i(e):i(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:ie,global:ae,isContextDefined:oe,isSpecCompliantForm:function(e){return!!(e&&z(e.append)&&"FormData"===e[A]&&e[N])},toJSONObject:e=>{const t=new Array(10),n=(e,i)=>{if(V(e)){if(t.indexOf(e)>=0)return;if(D(e))return e;if(!("toJSON"in e)){t[i]=e;const a=L(e)?[]:{};return ne(e,(e,t)=>{const o=n(e,i+1);!I(o)&&(a[t]=o)}),t[i]=void 0,a}}return e};return n(e,0)},isAsyncFn:de,isThenable:e=>e&&(V(e)||z(e))&&z(e.then)&&z(e.catch),setImmediate:me,asap:ve,isIterable:e=>null!=e&&z(e[N])};class be extends Error{static from(e,t,n,i,a,o){const s=new be(e.message,t||e.code,n,i,a);return s.cause=e,s.name=e.name,null!=e.status&&null==s.status&&(s.status=e.status),o&&Object.assign(s,o),s}constructor(e,t,n,i,a){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),a&&(this.response=a,this.status=a.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ye.toJSONObject(this.config),code:this.code,status:this.status}}}be.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",be.ERR_BAD_OPTION="ERR_BAD_OPTION",be.ECONNABORTED="ECONNABORTED",be.ETIMEDOUT="ETIMEDOUT",be.ERR_NETWORK="ERR_NETWORK",be.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",be.ERR_DEPRECATED="ERR_DEPRECATED",be.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",be.ERR_BAD_REQUEST="ERR_BAD_REQUEST",be.ERR_CANCELED="ERR_CANCELED",be.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",be.ERR_INVALID_URL="ERR_INVALID_URL";const we=be;function _e(e){return ye.isPlainObject(e)||ye.isArray(e)}function Se(e){return ye.endsWith(e,"[]")?e.slice(0,-2):e}function Ee(e,t,n){return e?e.concat(t).map(function(e,t){return e=Se(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const Ce=ye.toFlatObject(ye,{},null,function(e){return/^is[A-Z]/.test(e)});function Te(e,t,n){if(!ye.isObject(e))throw new TypeError("target must be an object");t=t||new(g.default||FormData);const i=(n=ye.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!ye.isUndefined(t[e])})).metaTokens,a=n.visitor||l,o=n.dots,s=n.indexes,r=(n.Blob||"undefined"!=typeof Blob&&Blob)&&ye.isSpecCompliantForm(t);if(!ye.isFunction(a))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(ye.isDate(e))return e.toISOString();if(ye.isBoolean(e))return e.toString();if(!r&&ye.isBlob(e))throw new we("Blob is not supported. Use a Buffer instead.");return ye.isArrayBuffer(e)||ye.isTypedArray(e)?r&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function l(e,n,a){let r=e;if(ye.isReactNative(t)&&ye.isReactNativeBlob(e))return t.append(Ee(a,n,o),c(e)),!1;if(e&&!a&&"object"==typeof e)if(ye.endsWith(n,"{}"))n=i?n:n.slice(0,-2),e=JSON.stringify(e);else if(ye.isArray(e)&&function(e){return ye.isArray(e)&&!e.some(_e)}(e)||(ye.isFileList(e)||ye.endsWith(n,"[]"))&&(r=ye.toArray(e)))return n=Se(n),r.forEach(function(e,i){!ye.isUndefined(e)&&null!==e&&t.append(!0===s?Ee([n],i,o):null===s?n:n+"[]",c(e))}),!1;return!!_e(e)||(t.append(Ee(a,n,o),c(e)),!1)}const p=[],u=Object.assign(Ce,{defaultVisitor:l,convertValue:c,isVisitable:_e});if(!ye.isObject(e))throw new TypeError("data must be an object");return function e(n,i){if(!ye.isUndefined(n)){if(-1!==p.indexOf(n))throw Error("Circular reference detected in "+i.join("."));p.push(n),ye.forEach(n,function(n,o){!0===(!(ye.isUndefined(n)||null===n)&&a.call(t,n,ye.isString(o)?o.trim():o,i,u))&&e(n,i?i.concat(o):[o])}),p.pop()}}(e),t}function $e(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function ke(e,t){this._pairs=[],e&&Te(e,this,t)}const Oe=ke.prototype;function Ne(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Ae(e,t,n){if(!t)return e;const i=n&&n.encode||Ne,a=ye.isFunction(n)?{serialize:n}:n,o=a&&a.serialize;let s;if(s=o?o(t,a):ye.isURLSearchParams(t)?t.toString():new ke(t,a).toString(i),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}Oe.append=function(e,t){this._pairs.push([e,t])},Oe.toString=function(e){const t=e?function(t){return e.call(this,t,$e)}:$e;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const Pe=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ye.forEach(this.handlers,function(t){null!==t&&e(t)})}},je={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Fe=v.default.URLSearchParams,Re="abcdefghijklmnopqrstuvwxyz",Le="0123456789",Ie={DIGIT:Le,ALPHA:Re,ALPHA_DIGIT:Re+Re.toUpperCase()+Le},De={isNode:!0,classes:{URLSearchParams:Fe,FormData:g.default,Blob:"undefined"!=typeof Blob&&Blob||null},ALPHABET:Ie,generateString:(e=16,t=Ie.ALPHA_DIGIT)=>{let n="";const{length:i}=t,a=new Uint32Array(e);x.default.randomFillSync(a);for(let o=0;o<e;o++)n+=t[a[o]%i];return n},protocols:["http","https","file","data"]},Me="undefined"!=typeof window&&"undefined"!=typeof document,Be="object"==typeof navigator&&navigator||void 0,ze=Me&&(!Be||["ReactNative","NativeScript","NS"].indexOf(Be.product)<0),Ue="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Ve=Me&&window.location.href||"http://localhost",qe={...Object.freeze({__proto__:null,hasBrowserEnv:Me,hasStandardBrowserWebWorkerEnv:Ue,hasStandardBrowserEnv:ze,navigator:Be,origin:Ve}),...De};function He(e){function t(e,n,i,a){let o=e[a++];if("__proto__"===o)return!0;const s=Number.isFinite(+o),r=a>=e.length;return o=!o&&ye.isArray(i)?i.length:o,r?(ye.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!s):(i[o]&&ye.isObject(i[o])||(i[o]=[]),t(e,n,i[o],a)&&ye.isArray(i[o])&&(i[o]=function(e){const t={},n=Object.keys(e);let i;const a=n.length;let o;for(i=0;i<a;i++)o=n[i],t[o]=e[o];return t}(i[o])),!s)}if(ye.isFormData(e)&&ye.isFunction(e.entries)){const n={};return ye.forEachEntry(e,(e,i)=>{t(function(e){return ye.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),i,n,0)}),n}return null}const We={transitional:je,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",i=n.indexOf("application/json")>-1,a=ye.isObject(e);if(a&&ye.isHTMLForm(e)&&(e=new FormData(e)),ye.isFormData(e))return i?JSON.stringify(He(e)):e;if(ye.isArrayBuffer(e)||ye.isBuffer(e)||ye.isStream(e)||ye.isFile(e)||ye.isBlob(e)||ye.isReadableStream(e))return e;if(ye.isArrayBufferView(e))return e.buffer;if(ye.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Te(e,new qe.classes.URLSearchParams,{visitor:function(e,t,n,i){return qe.isNode&&ye.isBuffer(e)?(this.append(t,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((o=ye.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Te(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return a||i?(t.setContentType("application/json",!1),function(e){if(ye.isString(e))try{return(0,JSON.parse)(e),ye.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||We.transitional,n=t&&t.forcedJSONParsing,i="json"===this.responseType;if(ye.isResponse(e)||ye.isReadableStream(e))return e;if(e&&ye.isString(e)&&(n&&!this.responseType||i)){const n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n){if("SyntaxError"===e.name)throw we.from(e,we.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:qe.classes.FormData,Blob:qe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ye.forEach(["delete","get","head","post","put","patch"],e=>{We.headers[e]={}});const Ge=We,Je=ye.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ye=Symbol("internals");function Ke(e){return e&&String(e).trim().toLowerCase()}function Xe(e){return!1===e||null==e?e:ye.isArray(e)?e.map(Xe):String(e)}function Ze(e,t,n,i,a){return ye.isFunction(i)?i.call(this,t,n):(a&&(t=n),ye.isString(t)?ye.isString(i)?-1!==t.indexOf(i):ye.isRegExp(i)?i.test(t):void 0:void 0)}class Qe{constructor(e){e&&this.set(e)}set(e,t,n){const i=this;function a(e,t,n){const a=Ke(t);if(!a)throw new Error("header name must be a non-empty string");const o=ye.findKey(i,a);(!o||void 0===i[o]||!0===n||void 0===n&&!1!==i[o])&&(i[o||t]=Xe(e))}const o=(e,t)=>ye.forEach(e,(e,n)=>a(e,n,t));if(ye.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(ye.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))o((e=>{const t={};let n,i,a;return e&&e.split("\n").forEach(function(e){a=e.indexOf(":"),n=e.substring(0,a).trim().toLowerCase(),i=e.substring(a+1).trim(),!n||t[n]&&Je[n]||("set-cookie"===n?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)}),t})(e),t);else if(ye.isObject(e)&&ye.isIterable(e)){let n,i,a={};for(const t of e){if(!ye.isArray(t))throw TypeError("Object iterator must return a key-value pair");a[i=t[0]]=(n=a[i])?ye.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}o(a,t)}else null!=e&&a(t,e,n);return this}get(e,t){if(e=Ke(e)){const n=ye.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(e);)t[i[1]]=i[2];return t}(e);if(ye.isFunction(t))return t.call(this,e,n);if(ye.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Ke(e)){const n=ye.findKey(this,e);return!(!n||void 0===this[n]||t&&!Ze(0,this[n],n,t))}return!1}delete(e,t){const n=this;let i=!1;function a(e){if(e=Ke(e)){const a=ye.findKey(n,e);!a||t&&!Ze(0,n[a],a,t)||(delete n[a],i=!0)}}return ye.isArray(e)?e.forEach(a):a(e),i}clear(e){const t=Object.keys(this);let n=t.length,i=!1;for(;n--;){const a=t[n];e&&!Ze(0,this[a],a,e,!0)||(delete this[a],i=!0)}return i}normalize(e){const t=this,n={};return ye.forEach(this,(i,a)=>{const o=ye.findKey(n,a);if(o)return t[o]=Xe(i),void delete t[a];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(a):String(a).trim();s!==a&&delete t[a],t[s]=Xe(i),n[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return ye.forEach(this,(n,i)=>{null!=n&&!1!==n&&(t[i]=e&&ye.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[Ye]=this[Ye]={accessors:{}}).accessors,n=this.prototype;function i(e){const i=Ke(e);t[i]||(function(e,t){const n=ye.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+n,{value:function(e,n,a){return this[i].call(this,t,e,n,a)},configurable:!0})})}(n,e),t[i]=!0)}return ye.isArray(e)?e.forEach(i):i(e),this}}Qe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ye.reduceDescriptors(Qe.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),ye.freezeMethods(Qe);const et=Qe;function tt(e,t){const n=this||Ge,i=t||n,a=et.from(i.headers);let o=i.data;return ye.forEach(e,function(e){o=e.call(n,o,a.normalize(),t?t.status:void 0)}),a.normalize(),o}function nt(e){return!(!e||!e.__CANCEL__)}const it=class extends we{constructor(e,t,n){super(null==e?"canceled":e,we.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function at(e,t,n){const i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(new we("Request failed with status code "+n.status,[we.ERR_BAD_REQUEST,we.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}function ot(e,t,n){let i=!function(e){return"string"==typeof e&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(t);return e&&(i||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const st="1.13.6";function rt(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}const ct=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/,lt=Symbol("internals");class pt extends T.default.Transform{constructor(e){super({readableHighWaterMark:(e=ye.toFlatObject(e,{maxRate:0,chunkSize:65536,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(e,t)=>!ye.isUndefined(t[e]))).chunkSize});const t=this[lt]={timeWindow:e.timeWindow,chunkSize:e.chunkSize,maxRate:e.maxRate,minChunkSize:e.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",e=>{"progress"===e&&(t.isCaptured||(t.isCaptured=!0))})}_read(e){const t=this[lt];return t.onReadCallback&&t.onReadCallback(),super._read(e)}_transform(e,t,n){const i=this[lt],a=i.maxRate,o=this.readableHighWaterMark,s=i.timeWindow,r=a/(1e3/s),c=!1!==i.minChunkSize?Math.max(i.minChunkSize,.01*r):0,l=(e,t)=>{const n=Buffer.byteLength(e);i.bytesSeen+=n,i.bytes+=n,i.isCaptured&&this.emit("progress",i.bytesSeen),this.push(e)?process.nextTick(t):i.onReadCallback=()=>{i.onReadCallback=null,process.nextTick(t)}},p=(e,t)=>{const n=Buffer.byteLength(e);let p,u=null,d=o,m=0;if(a){const e=Date.now();(!i.ts||(m=e-i.ts)>=s)&&(i.ts=e,p=r-i.bytes,i.bytes=p<0?-p:0,m=0),p=r-i.bytes}if(a){if(p<=0)return setTimeout(()=>{t(null,e)},s-m);p<d&&(d=p)}d&&n>d&&n-d>c&&(u=e.subarray(d),e=e.subarray(0,d)),l(e,u?()=>{process.nextTick(t,null,u)}:t)};p(e,function e(t,i){if(t)return n(t);i?p(i,e):n(null)})}}const ut=pt,{asyncIterator:dt}=Symbol,mt=async function*(e){e.stream?yield*e.stream():e.arrayBuffer?yield await e.arrayBuffer():e[dt]?yield*e[dt]():yield e},ft=qe.ALPHABET.ALPHA_DIGIT+"-_",ht="function"==typeof TextEncoder?new TextEncoder:new S.default.TextEncoder,gt="\r\n",xt=ht.encode(gt);class vt{constructor(e,t){const{escapeName:n}=this.constructor,i=ye.isString(t);let a=`Content-Disposition: form-data; name="${n(e)}"${!i&&t.name?`; filename="${n(t.name)}"`:""}${gt}`;i?t=ht.encode(String(t).replace(/\r?\n|\r\n?/g,gt)):a+=`Content-Type: ${t.type||"application/octet-stream"}${gt}`,this.headers=ht.encode(a+gt),this.contentLength=i?t.byteLength:t.size,this.size=this.headers.byteLength+this.contentLength+2,this.name=e,this.value=t}async*encode(){yield this.headers;const{value:e}=this;ye.isTypedArray(e)?yield e:yield*mt(e),yield xt}static escapeName(e){return String(e).replace(/[\r\n"]/g,e=>({"\r":"%0D","\n":"%0A",'"':"%22"}[e]))}}class yt extends T.default.Transform{__transform(e,t,n){this.push(e),n()}_transform(e,t,n){if(0!==e.length&&(this._transform=this.__transform,120!==e[0])){const e=Buffer.alloc(2);e[0]=120,e[1]=156,this.push(e,t)}this.__transform(e,t,n)}}const bt=yt,wt=(e,t)=>ye.isAsyncFn(e)?function(...n){const i=n.pop();e.apply(this,n).then(e=>{try{t?i(null,...t(e)):i(null,e)}catch(e){i(e)}},i)}:e,_t=(e,t,n=3)=>{let i=0;const a=function(e,t){e=e||10;const n=new Array(e),i=new Array(e);let a,o=0,s=0;return t=void 0!==t?t:1e3,function(r){const c=Date.now(),l=i[s];a||(a=c),n[o]=r,i[o]=c;let p=s,u=0;for(;p!==o;)u+=n[p++],p%=e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),c-a<t)return;const d=l&&c-l;return d?Math.round(1e3*u/d):void 0}}(50,250);return function(n,o){let s,r,c=0,l=1e3/o;const p=(n,o=Date.now())=>{c=o,s=null,r&&(clearTimeout(r),r=null),(n=>{const o=n.loaded,s=n.lengthComputable?n.total:void 0,r=o-i,c=a(r);i=o,e({loaded:o,total:s,progress:s?o/s:void 0,bytes:r,rate:c||void 0,estimated:c&&s&&o<=s?(s-o)/c:void 0,event:n,lengthComputable:null!=s,[t?"download":"upload"]:!0})})(...n)};return[(...e)=>{const t=Date.now(),n=t-c;n>=l?p(e,t):(s=e,r||(r=setTimeout(()=>{r=null,p(s)},l-n)))},()=>s&&p(s)]}(0,n)},St=(e,t)=>{const n=null!=e;return[i=>t[0]({lengthComputable:n,total:e,loaded:i}),t[1]]},Et=e=>(...t)=>ye.asap(()=>e(...t)),Ct={flush:C.default.constants.Z_SYNC_FLUSH,finishFlush:C.default.constants.Z_SYNC_FLUSH},Tt={flush:C.default.constants.BROTLI_OPERATION_FLUSH,finishFlush:C.default.constants.BROTLI_OPERATION_FLUSH},$t=ye.isFunction(C.default.createBrotliDecompress),{http:kt,https:Ot}=E.default,Nt=/https:?/,At=qe.protocols.map(e=>e+":"),Pt=(e,[t,n])=>(e.on("end",n).on("error",n),t),jt=new class{constructor(){this.sessions=Object.create(null)}getSession(e,t){t=Object.assign({sessionTimeout:1e3},t);let n=this.sessions[e];if(n){let e=n.length;for(let i=0;i<e;i++){const[e,a]=n[i];if(!e.destroyed&&!e.closed&&S.default.isDeepStrictEqual(a,t))return e}}const i=_.default.connect(e,t);let a;const o=()=>{if(a)return;a=!0;let t=n,o=t.length,s=o;for(;s--;)if(t[s][0]===i)return void(1===o?delete this.sessions[e]:t.splice(s,1))},s=i.request,{sessionTimeout:r}=t;if(null!=r){let e,t=0;i.request=function(){const n=s.apply(this,arguments);return t++,e&&(clearTimeout(e),e=null),n.once("close",()=>{--t||(e=setTimeout(()=>{e=null,o()},r))}),n}}i.once("close",o);let c=[i,t];return n?n.push(c):n=this.sessions[e]=[c],i}};function Ft(e,t){e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.config&&e.beforeRedirects.config(e,t)}function Rt(e,t,n){let i=t;if(!i&&!1!==i){const e=y.default.getProxyForUrl(n);e&&(i=new URL(e))}if(i){if(i.username&&(i.auth=(i.username||"")+":"+(i.password||"")),i.auth){if(Boolean(i.auth.username||i.auth.password))i.auth=(i.auth.username||"")+":"+(i.auth.password||"");else if("object"==typeof i.auth)throw new we("Invalid proxy authorization",we.ERR_BAD_OPTION,{proxy:i});const t=Buffer.from(i.auth,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+t}e.headers.host=e.hostname+(e.port?":"+e.port:"");const t=i.hostname||i.host;e.hostname=t,e.host=t,e.port=i.port,e.path=n,i.protocol&&(e.protocol=i.protocol.includes(":")?i.protocol:`${i.protocol}:`)}e.beforeRedirects.proxy=function(e){Rt(e,t,e.href)}}const Lt="undefined"!=typeof process&&"process"===ye.kindOf(process),It=(e,t)=>(({address:e,family:t})=>{if(!ye.isString(e))throw TypeError("address must be a string");return{address:e,family:t||(e.indexOf(".")<0?6:4)}})(ye.isObject(e)?e:{address:e,family:t}),Dt={request(e,t){const n=e.protocol+"//"+e.hostname+":"+(e.port||("https:"===e.protocol?443:80)),{http2Options:i,headers:a}=e,o=jt.getSession(n,i),{HTTP2_HEADER_SCHEME:s,HTTP2_HEADER_METHOD:r,HTTP2_HEADER_PATH:c,HTTP2_HEADER_STATUS:l}=_.default.constants,p={[s]:e.protocol.replace(":",""),[r]:e.method,[c]:e.path};ye.forEach(a,(e,t)=>{":"!==t.charAt(0)&&(p[t]=e)});const u=o.request(p);return u.once("response",e=>{const n=u,i=(e=Object.assign({},e))[l];delete e[l],n.headers=e,n.statusCode=+i,t(n)}),u}},Mt=Lt&&function(e){return t=async function(t,n,i){let{data:a,lookup:o,family:s,httpVersion:r=1,http2Options:c}=e;const{responseType:l,responseEncoding:p}=e,u=e.method.toUpperCase();let d,h,g=!1;if(r=+r,Number.isNaN(r))throw TypeError(`Invalid protocol version: '${e.httpVersion}' is not a number`);if(1!==r&&2!==r)throw TypeError(`Unsupported protocol version '${r}'`);const x=2===r;if(o){const e=wt(o,e=>ye.isArray(e)?e:[e]);o=(t,n,i)=>{e(t,n,(e,t,a)=>{if(e)return i(e);const o=ye.isArray(t)?t.map(e=>It(e)):[It(t,a)];n.all?i(e,o):i(e,o[0].address,o[0].family)})}}const v=new f.EventEmitter;function y(t){try{v.emit("abort",!t||t.type?new it(null,e,h):t)}catch(e){console.warn("emit error",e)}}v.once("abort",n);const _=()=>{e.cancelToken&&e.cancelToken.unsubscribe(y),e.signal&&e.signal.removeEventListener("abort",y),v.removeAllListeners()};(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(y),e.signal&&(e.signal.aborted?y():e.signal.addEventListener("abort",y))),i((e,t)=>{if(d=!0,t)return g=!0,void _();const{data:n}=e;if(n instanceof T.default.Readable||n instanceof T.default.Duplex){const e=T.default.finished(n,()=>{e(),_()})}else _()});const E=ot(e.baseURL,e.url,e.allowAbsoluteUrls),$=new URL(E,qe.hasBrowserEnv?qe.origin:void 0),k=$.protocol||At[0];if("data:"===k){if(e.maxContentLength>-1){const t=function(e){if(!e||"string"!=typeof e)return 0;if(!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),i=e.slice(t+1);if(/;base64/i.test(n)){let e=i.length;const t=i.length;for(let n=0;n<t;n++)if(37===i.charCodeAt(n)&&n+2<t){const t=i.charCodeAt(n+1),a=i.charCodeAt(n+2);(t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102)&&(a>=48&&a<=57||a>=65&&a<=70||a>=97&&a<=102)&&(e-=2,n+=2)}let n=0,a=t-1;const o=e=>e>=2&&37===i.charCodeAt(e-2)&&51===i.charCodeAt(e-1)&&(68===i.charCodeAt(e)||100===i.charCodeAt(e));a>=0&&(61===i.charCodeAt(a)?(n++,a--):o(a)&&(n++,a-=3)),1===n&&a>=0&&(61===i.charCodeAt(a)||o(a))&&n++;const s=3*Math.floor(e/4)-(n||0);return s>0?s:0}return Buffer.byteLength(i,"utf8")}(String(e.url||E||""));if(t>e.maxContentLength)return n(new we("maxContentLength size of "+e.maxContentLength+" exceeded",we.ERR_BAD_RESPONSE,e))}let i;if("GET"!==u)return at(t,n,{status:405,statusText:"method not allowed",headers:{},config:e});try{i=function(e,t,n){const i=n&&n.Blob||qe.classes.Blob,a=rt(e);if(void 0===t&&i&&(t=!0),"data"===a){e=a.length?e.slice(a.length+1):e;const n=ct.exec(e);if(!n)throw new we("Invalid URL",we.ERR_INVALID_URL);const o=n[1],s=n[2],r=n[3],c=Buffer.from(decodeURIComponent(r),s?"base64":"utf8");if(t){if(!i)throw new we("Blob is not supported",we.ERR_NOT_SUPPORT);return new i([c],{type:o})}return c}throw new we("Unsupported protocol "+a,we.ERR_NOT_SUPPORT)}(e.url,"blob"===l,{Blob:e.env&&e.env.Blob})}catch(t){throw we.from(t,we.ERR_BAD_REQUEST,e)}return"text"===l?(i=i.toString(p),p&&"utf8"!==p||(i=ye.stripBOM(i))):"stream"===l&&(i=T.default.Readable.from(i)),at(t,n,{data:i,status:200,statusText:"OK",headers:new et,config:e})}if(-1===At.indexOf(k))return n(new we("Unsupported protocol "+k,we.ERR_BAD_REQUEST,e));const O=et.from(e.headers).normalize();O.set("User-Agent","axios/"+st,!1);const{onUploadProgress:N,onDownloadProgress:A}=e,P=e.maxRate;let j,F;if(ye.isSpecCompliantForm(a)){const e=O.getContentType(/boundary=([-_\w\d]{10,70})/i);a=((e,t,n)=>{const{tag:i="form-data-boundary",size:a=25,boundary:o=i+"-"+qe.generateString(a,ft)}=n||{};if(!ye.isFormData(e))throw TypeError("FormData instance required");if(o.length<1||o.length>70)throw Error("boundary must be 10-70 characters long");const s=ht.encode("--"+o+gt),r=ht.encode("--"+o+"--"+gt);let c=r.byteLength;const l=Array.from(e.entries()).map(([e,t])=>{const n=new vt(e,t);return c+=n.size,n});c+=s.byteLength*l.length,c=ye.toFiniteNumber(c);const p={"Content-Type":`multipart/form-data; boundary=${o}`};return Number.isFinite(c)&&(p["Content-Length"]=c),t&&t(p),m.Readable.from(async function*(){for(const e of l)yield s,yield*e.encode();yield r}())})(a,e=>{O.set(e)},{tag:`axios-${st}-boundary`,boundary:e&&e[1]||void 0})}else if(ye.isFormData(a)&&ye.isFunction(a.getHeaders)){if(O.set(a.getHeaders()),!O.hasContentLength())try{const e=await S.default.promisify(a.getLength).call(a);Number.isFinite(e)&&e>=0&&O.setContentLength(e)}catch(e){}}else if(ye.isBlob(a)||ye.isFile(a))a.size&&O.setContentType(a.type||"application/octet-stream"),O.setContentLength(a.size||0),a=T.default.Readable.from(mt(a));else if(a&&!ye.isStream(a)){if(Buffer.isBuffer(a));else if(ye.isArrayBuffer(a))a=Buffer.from(new Uint8Array(a));else{if(!ye.isString(a))return n(new we("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",we.ERR_BAD_REQUEST,e));a=Buffer.from(a,"utf-8")}if(O.setContentLength(a.length,!1),e.maxBodyLength>-1&&a.length>e.maxBodyLength)return n(new we("Request body larger than maxBodyLength limit",we.ERR_BAD_REQUEST,e))}const R=ye.toFiniteNumber(O.getContentLength());let L,I;ye.isArray(P)?(j=P[0],F=P[1]):j=F=P,a&&(N||j)&&(ye.isStream(a)||(a=T.default.Readable.from(a,{objectMode:!1})),a=T.default.pipeline([a,new ut({maxRate:ye.toFiniteNumber(j)})],ye.noop),N&&a.on("progress",Pt(a,St(R,_t(Et(N),!1,3))))),e.auth&&(L=(e.auth.username||"")+":"+(e.auth.password||"")),!L&&$.username&&(L=$.username+":"+$.password),L&&O.delete("authorization");try{I=Ae($.pathname+$.search,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(t){const i=new Error(t.message);return i.config=e,i.url=e.url,i.exists=!0,n(i)}O.set("Accept-Encoding","gzip, compress, deflate"+($t?", br":""),!1);const D={path:I,method:u,headers:O.toJSON(),agents:{http:e.httpAgent,https:e.httpsAgent},auth:L,protocol:k,family:s,beforeRedirect:Ft,beforeRedirects:{},http2Options:c};let M;!ye.isUndefined(o)&&(D.lookup=o),e.socketPath?D.socketPath=e.socketPath:(D.hostname=$.hostname.startsWith("[")?$.hostname.slice(1,-1):$.hostname,D.port=$.port,Rt(D,e.proxy,k+"//"+$.hostname+($.port?":"+$.port:"")+D.path));const B=Nt.test(D.protocol);if(D.agent=B?e.httpsAgent:e.httpAgent,x?M=Dt:e.transport?M=e.transport:0===e.maxRedirects?M=B?w.default:b.default:(e.maxRedirects&&(D.maxRedirects=e.maxRedirects),e.beforeRedirect&&(D.beforeRedirects.config=e.beforeRedirect),M=B?Ot:kt),e.maxBodyLength>-1?D.maxBodyLength=e.maxBodyLength:D.maxBodyLength=1/0,e.insecureHTTPParser&&(D.insecureHTTPParser=e.insecureHTTPParser),h=M.request(D,function(i){if(h.destroyed)return;const a=[i],o=ye.toFiniteNumber(i.headers["content-length"]);if(A||F){const e=new ut({maxRate:ye.toFiniteNumber(F)});A&&e.on("progress",Pt(e,St(o,_t(Et(A),!0,3)))),a.push(e)}let s=i;const r=i.req||h;if(!1!==e.decompress&&i.headers["content-encoding"])switch("HEAD"!==u&&204!==i.statusCode||delete i.headers["content-encoding"],(i.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":a.push(C.default.createUnzip(Ct)),delete i.headers["content-encoding"];break;case"deflate":a.push(new bt),a.push(C.default.createUnzip(Ct)),delete i.headers["content-encoding"];break;case"br":$t&&(a.push(C.default.createBrotliDecompress(Tt)),delete i.headers["content-encoding"])}s=a.length>1?T.default.pipeline(a,ye.noop):a[0];const c={status:i.statusCode,statusText:i.statusMessage,headers:new et(i.headers),config:e,request:r};if("stream"===l)c.data=s,at(t,n,c);else{const i=[];let a=0;s.on("data",function(t){i.push(t),a+=t.length,e.maxContentLength>-1&&a>e.maxContentLength&&(g=!0,s.destroy(),y(new we("maxContentLength size of "+e.maxContentLength+" exceeded",we.ERR_BAD_RESPONSE,e,r)))}),s.on("aborted",function(){if(g)return;const t=new we("stream has been aborted",we.ERR_BAD_RESPONSE,e,r);s.destroy(t),n(t)}),s.on("error",function(t){h.destroyed||n(we.from(t,null,e,r))}),s.on("end",function(){try{let e=1===i.length?i[0]:Buffer.concat(i);"arraybuffer"!==l&&(e=e.toString(p),p&&"utf8"!==p||(e=ye.stripBOM(e))),c.data=e}catch(t){return n(we.from(t,null,e,c.request,c))}at(t,n,c)})}v.once("abort",e=>{s.destroyed||(s.emit("error",e),s.destroy())})}),v.once("abort",e=>{h.close?h.close():h.destroy(e)}),h.on("error",function(t){n(we.from(t,null,e,h))}),h.on("socket",function(e){e.setKeepAlive(!0,6e4)}),e.timeout){const t=parseInt(e.timeout,10);if(Number.isNaN(t))return void y(new we("error trying to parse `config.timeout` to int",we.ERR_BAD_OPTION_VALUE,e,h));h.setTimeout(t,function(){if(d)return;let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const n=e.transitional||je;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),y(new we(t,n.clarifyTimeoutError?we.ETIMEDOUT:we.ECONNABORTED,e,h))})}else h.setTimeout(0);if(ye.isStream(a)){let t=!1,n=!1;a.on("end",()=>{t=!0}),a.once("error",e=>{n=!0,h.destroy(e)}),a.on("close",()=>{t||n||y(new it("Request stream has been aborted",e,h))}),a.pipe(h)}else a&&h.write(a),h.end()},new Promise((e,n)=>{let i,a;const o=(e,t)=>{a||(a=!0,i&&i(e,t))},s=e=>{o(e,!0),n(e)};t(t=>{o(t),e(t)},s,e=>i=e).catch(s)});var t},Bt=qe.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,qe.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(qe.origin),qe.navigator&&/(msie|trident)/i.test(qe.navigator.userAgent)):()=>!0,zt=qe.hasStandardBrowserEnv?{write(e,t,n,i,a,o,s){if("undefined"==typeof document)return;const r=[`${e}=${encodeURIComponent(t)}`];ye.isNumber(n)&&r.push(`expires=${new Date(n).toUTCString()}`),ye.isString(i)&&r.push(`path=${i}`),ye.isString(a)&&r.push(`domain=${a}`),!0===o&&r.push("secure"),ye.isString(s)&&r.push(`SameSite=${s}`),document.cookie=r.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}},Ut=e=>e instanceof et?{...e}:e;function Vt(e,t){t=t||{};const n={};function i(e,t,n,i){return ye.isPlainObject(e)&&ye.isPlainObject(t)?ye.merge.call({caseless:i},e,t):ye.isPlainObject(t)?ye.merge({},t):ye.isArray(t)?t.slice():t}function a(e,t,n,a){return ye.isUndefined(t)?ye.isUndefined(e)?void 0:i(void 0,e,0,a):i(e,t,0,a)}function o(e,t){if(!ye.isUndefined(t))return i(void 0,t)}function s(e,t){return ye.isUndefined(t)?ye.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function r(n,a,o){return o in t?i(n,a):o in e?i(void 0,n):void 0}const c={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:r,headers:(e,t,n)=>a(Ut(e),Ut(t),0,!0)};return ye.forEach(Object.keys({...e,...t}),function(i){if("__proto__"===i||"constructor"===i||"prototype"===i)return;const o=ye.hasOwnProp(c,i)?c[i]:a,s=o(e[i],t[i],i);ye.isUndefined(s)&&o!==r||(n[i]=s)}),n}const qt=e=>{const t=Vt({},e);let{data:n,withXSRFToken:i,xsrfHeaderName:a,xsrfCookieName:o,headers:s,auth:r}=t;if(t.headers=s=et.from(s),t.url=Ae(ot(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),r&&s.set("Authorization","Basic "+btoa((r.username||"")+":"+(r.password?unescape(encodeURIComponent(r.password)):""))),ye.isFormData(n))if(qe.hasStandardBrowserEnv||qe.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(ye.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&s.set(e,n)})}if(qe.hasStandardBrowserEnv&&(i&&ye.isFunction(i)&&(i=i(t)),i||!1!==i&&Bt(t.url))){const e=a&&o&&zt.read(o);e&&s.set(a,e)}return t},Ht="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const i=qt(e);let a=i.data;const o=et.from(i.headers).normalize();let s,r,c,l,p,{responseType:u,onUploadProgress:d,onDownloadProgress:m}=i;function f(){l&&l(),p&&p(),i.cancelToken&&i.cancelToken.unsubscribe(s),i.signal&&i.signal.removeEventListener("abort",s)}let h=new XMLHttpRequest;function g(){if(!h)return;const i=et.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());at(function(e){t(e),f()},function(e){n(e),f()},{data:u&&"text"!==u&&"json"!==u?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:i,config:e,request:h}),h=null}h.open(i.method.toUpperCase(),i.url,!0),h.timeout=i.timeout,"onloadend"in h?h.onloadend=g:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(g)},h.onabort=function(){h&&(n(new we("Request aborted",we.ECONNABORTED,e,h)),h=null)},h.onerror=function(t){const i=t&&t.message?t.message:"Network Error",a=new we(i,we.ERR_NETWORK,e,h);a.event=t||null,n(a),h=null},h.ontimeout=function(){let t=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const a=i.transitional||je;i.timeoutErrorMessage&&(t=i.timeoutErrorMessage),n(new we(t,a.clarifyTimeoutError?we.ETIMEDOUT:we.ECONNABORTED,e,h)),h=null},void 0===a&&o.setContentType(null),"setRequestHeader"in h&&ye.forEach(o.toJSON(),function(e,t){h.setRequestHeader(t,e)}),ye.isUndefined(i.withCredentials)||(h.withCredentials=!!i.withCredentials),u&&"json"!==u&&(h.responseType=i.responseType),m&&([c,p]=_t(m,!0),h.addEventListener("progress",c)),d&&h.upload&&([r,l]=_t(d),h.upload.addEventListener("progress",r),h.upload.addEventListener("loadend",l)),(i.cancelToken||i.signal)&&(s=t=>{h&&(n(!t||t.type?new it(null,e,h):t),h.abort(),h=null)},i.cancelToken&&i.cancelToken.subscribe(s),i.signal&&(i.signal.aborted?s():i.signal.addEventListener("abort",s)));const x=rt(i.url);x&&-1===qe.protocols.indexOf(x)?n(new we("Unsupported protocol "+x+":",we.ERR_BAD_REQUEST,e)):h.send(a||null)})},Wt=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,i=new AbortController;const a=function(e){if(!n){n=!0,s();const t=e instanceof Error?e:this.reason;i.abort(t instanceof we?t:new it(t instanceof Error?t.message:t))}};let o=t&&setTimeout(()=>{o=null,a(new we(`timeout of ${t}ms exceeded`,we.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(a):e.removeEventListener("abort",a)}),e=null)};e.forEach(e=>e.addEventListener("abort",a));const{signal:r}=i;return r.unsubscribe=()=>ye.asap(s),r}},Gt=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let i,a=0;for(;a<n;)i=a+t,yield e.slice(a,i),a=i},Jt=(e,t,n,i)=>{const a=async function*(e,t){for await(const n of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}}(e))yield*Gt(n,t)}(e,t);let o,s=0,r=e=>{o||(o=!0,i&&i(e))};return new ReadableStream({async pull(e){try{const{done:t,value:i}=await a.next();if(t)return r(),void e.close();let o=i.byteLength;if(n){let e=s+=o;n(e)}e.enqueue(new Uint8Array(i))}catch(e){throw r(e),e}},cancel:e=>(r(e),a.return())},{highWaterMark:2})},{isFunction:Yt}=ye,Kt=(({Request:e,Response:t})=>({Request:e,Response:t}))(ye.global),{ReadableStream:Xt,TextEncoder:Zt}=ye.global,Qt=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},en=e=>{e=ye.merge.call({skipUndefined:!0},Kt,e);const{fetch:t,Request:n,Response:i}=e,a=t?Yt(t):"function"==typeof fetch,o=Yt(n),s=Yt(i);if(!a)return!1;const r=a&&Yt(Xt),c=a&&("function"==typeof Zt?(l=new Zt,e=>l.encode(e)):async e=>new Uint8Array(await new n(e).arrayBuffer()));var l;const p=o&&r&&Qt(()=>{let e=!1;const t=new n(qe.origin,{body:new Xt,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),u=s&&r&&Qt(()=>ye.isReadableStream(new i("").body)),d={stream:u&&(e=>e.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!d[e]&&(d[e]=(t,n)=>{let i=t&&t[e];if(i)return i.call(t);throw new we(`Response type '${e}' is not supported`,we.ERR_NOT_SUPPORT,n)})});return async e=>{let{url:a,method:s,data:r,signal:l,cancelToken:m,timeout:f,onDownloadProgress:h,onUploadProgress:g,responseType:x,headers:v,withCredentials:y="same-origin",fetchOptions:b}=qt(e),w=t||fetch;x=x?(x+"").toLowerCase():"text";let _=Wt([l,m&&m.toAbortSignal()],f),S=null;const E=_&&_.unsubscribe&&(()=>{_.unsubscribe()});let C;try{if(g&&p&&"get"!==s&&"head"!==s&&0!==(C=await(async(e,t)=>{const i=ye.toFiniteNumber(e.getContentLength());return null==i?(async e=>{if(null==e)return 0;if(ye.isBlob(e))return e.size;if(ye.isSpecCompliantForm(e)){const t=new n(qe.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return ye.isArrayBufferView(e)||ye.isArrayBuffer(e)?e.byteLength:(ye.isURLSearchParams(e)&&(e+=""),ye.isString(e)?(await c(e)).byteLength:void 0)})(t):i})(v,r))){let e,t=new n(a,{method:"POST",body:r,duplex:"half"});if(ye.isFormData(r)&&(e=t.headers.get("content-type"))&&v.setContentType(e),t.body){const[e,n]=St(C,_t(Et(g)));r=Jt(t.body,65536,e,n)}}ye.isString(y)||(y=y?"include":"omit");const t=o&&"credentials"in n.prototype,l={...b,signal:_,method:s.toUpperCase(),headers:v.normalize().toJSON(),body:r,duplex:"half",credentials:t?y:void 0};S=o&&new n(a,l);let m=await(o?w(S,b):w(a,l));const f=u&&("stream"===x||"response"===x);if(u&&(h||f&&E)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=m[t]});const t=ye.toFiniteNumber(m.headers.get("content-length")),[n,a]=h&&St(t,_t(Et(h),!0))||[];m=new i(Jt(m.body,65536,n,()=>{a&&a(),E&&E()}),e)}x=x||"text";let T=await d[ye.findKey(d,x)||"text"](m,e);return!f&&E&&E(),await new Promise((t,n)=>{at(t,n,{data:T,headers:et.from(m.headers),status:m.status,statusText:m.statusText,config:e,request:S})})}catch(t){if(E&&E(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new we("Network Error",we.ERR_NETWORK,e,S,t&&t.response),{cause:t.cause||t});throw we.from(t,t&&t.code,e,S,t&&t.response)}}},tn=new Map,nn=e=>{let t=e&&e.env||{};const{fetch:n,Request:i,Response:a}=t,o=[i,a,n];let s,r,c=o.length,l=tn;for(;c--;)s=o[c],r=l.get(s),void 0===r&&l.set(s,r=c?new Map:en(t)),l=r;return r};nn();const an={http:Mt,xhr:Ht,fetch:{get:nn}};ye.forEach(an,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const on=e=>`- ${e}`,sn=e=>ye.isFunction(e)||null===e||!1===e,rn=function(e,t){e=ye.isArray(e)?e:[e];const{length:n}=e;let i,a;const o={};for(let s=0;s<n;s++){let n;if(i=e[s],a=i,!sn(i)&&(a=an[(n=String(i)).toLowerCase()],void 0===a))throw new we(`Unknown adapter '${n}'`);if(a&&(ye.isFunction(a)||(a=a.get(t))))break;o[n||"#"+s]=a}if(!a){const e=Object.entries(o).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=n?e.length>1?"since :\n"+e.map(on).join("\n"):" "+on(e[0]):"as no adapter specified";throw new we("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return a};function cn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new it(null,e)}function ln(e){return cn(e),e.headers=et.from(e.headers),e.data=tt.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),rn(e.adapter||Ge.adapter,e)(e).then(function(t){return cn(e),t.data=tt.call(e,e.transformResponse,t),t.headers=et.from(t.headers),t},function(t){return nt(t)||(cn(e),t&&t.response&&(t.response.data=tt.call(e,e.transformResponse,t.response),t.response.headers=et.from(t.response.headers))),Promise.reject(t)})}const pn={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{pn[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const un={};pn.transitional=function(e,t,n){function i(e,t){return"[Axios v"+st+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,a,o)=>{if(!1===e)throw new we(i(a," has been removed"+(t?" in "+t:"")),we.ERR_DEPRECATED);return t&&!un[a]&&(un[a]=!0,console.warn(i(a," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,a,o)}},pn.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const dn={assertOptions:function(e,t,n){if("object"!=typeof e)throw new we("options must be an object",we.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let a=i.length;for(;a-- >0;){const o=i[a],s=t[o];if(s){const t=e[o],n=void 0===t||s(t,o,e);if(!0!==n)throw new we("option "+o+" must be "+n,we.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new we("Unknown option "+o,we.ERR_BAD_OPTION)}},validators:pn},mn=dn.validators;class fn{constructor(e){this.defaults=e||{},this.interceptors={request:new Pe,response:new Pe}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Vt(this.defaults,t);const{transitional:n,paramsSerializer:i,headers:a}=t;void 0!==n&&dn.assertOptions(n,{silentJSONParsing:mn.transitional(mn.boolean),forcedJSONParsing:mn.transitional(mn.boolean),clarifyTimeoutError:mn.transitional(mn.boolean),legacyInterceptorReqResOrdering:mn.transitional(mn.boolean)},!1),null!=i&&(ye.isFunction(i)?t.paramsSerializer={serialize:i}:dn.assertOptions(i,{encode:mn.function,serialize:mn.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),dn.assertOptions(t,{baseUrl:mn.spelling("baseURL"),withXsrfToken:mn.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=a&&ye.merge(a.common,a[t.method]);a&&ye.forEach(["delete","get","head","post","put","patch","common"],e=>{delete a[e]}),t.headers=et.concat(o,a);const s=[];let r=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;r=r&&e.synchronous;const n=t.transitional||je;n&&n.legacyInterceptorReqResOrdering?s.unshift(e.fulfilled,e.rejected):s.push(e.fulfilled,e.rejected)});const c=[];let l;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let p,u=0;if(!r){const e=[ln.bind(this),void 0];for(e.unshift(...s),e.push(...c),p=e.length,l=Promise.resolve(t);u<p;)l=l.then(e[u++],e[u++]);return l}p=s.length;let d=t;for(;u<p;){const e=s[u++],t=s[u++];try{d=e(d)}catch(e){t.call(this,e);break}}try{l=ln.call(this,d)}catch(e){return Promise.reject(e)}for(u=0,p=c.length;u<p;)l=l.then(c[u++],c[u++]);return l}getUri(e){return Ae(ot((e=Vt(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}ye.forEach(["delete","get","head","options"],function(e){fn.prototype[e]=function(t,n){return this.request(Vt(n||{},{method:e,url:t,data:(n||{}).data}))}}),ye.forEach(["post","put","patch"],function(e){function t(t){return function(n,i,a){return this.request(Vt(a||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}fn.prototype[e]=t(),fn.prototype[e+"Form"]=t(!0)});const hn=fn;class gn{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const i=new Promise(e=>{n.subscribe(e),t=e}).then(e);return i.cancel=function(){n.unsubscribe(t)},i},e(function(e,i,a){n.reason||(n.reason=new it(e,i,a),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new gn(function(t){e=t}),cancel:e}}}const xn=gn,vn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(vn).forEach(([e,t])=>{vn[t]=e});const yn=vn,bn=function e(t){const n=new hn(t),i=$(hn.prototype.request,n);return ye.extend(i,hn.prototype,n,{allOwnKeys:!0}),ye.extend(i,n,null,{allOwnKeys:!0}),i.create=function(n){return e(Vt(t,n))},i}(Ge);bn.Axios=hn,bn.CanceledError=it,bn.CancelToken=xn,bn.isCancel=nt,bn.VERSION=st,bn.toFormData=Te,bn.AxiosError=we,bn.Cancel=bn.CanceledError,bn.all=function(e){return Promise.all(e)},bn.spread=function(e){return function(t){return e.apply(null,t)}},bn.isAxiosError=function(e){return ye.isObject(e)&&!0===e.isAxiosError},bn.mergeConfig=Vt,bn.AxiosHeaders=et,bn.formToJSON=e=>He(ye.isHTMLForm(e)?new FormData(e):e),bn.getAdapter=rn,bn.HttpStatusCode=yn,bn.default=bn,e.exports=bn},3219(e,t,n){const{Argument:i}=n(1420),{Command:a}=n(3090),{CommanderError:o,InvalidArgumentError:s}=n(2057),{Help:r}=n(6264),{Option:c}=n(8402);t.program=new a,t.createCommand=e=>new a(e),t.createOption=(e,t)=>new c(e,t),t.createArgument=(e,t)=>new i(e,t),t.Command=a,t.Option=c,t.Argument=i,t.Help=r,t.CommanderError=o,t.InvalidArgumentError=s,t.InvalidOptionArgumentError=s},1420(e,t,n){const{InvalidArgumentError:i}=n(2057);t.Argument=class{constructor(e,t){switch(this.description=t||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,e[0]){case"<":this.required=!0,this._name=e.slice(1,-1);break;case"[":this.required=!1,this._name=e.slice(1,-1);break;default:this.required=!0,this._name=e}this._name.endsWith("...")&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_collectValue(e,t){return t!==this.defaultValue&&Array.isArray(t)?(t.push(e),t):[e]}default(e,t){return this.defaultValue=e,this.defaultValueDescription=t,this}argParser(e){return this.parseArg=e,this}choices(e){return this.argChoices=e.slice(),this.parseArg=(e,t)=>{if(!this.argChoices.includes(e))throw new i(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._collectValue(e,t):e},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}},t.humanReadableArgName=function(e){const t=e.name()+(!0===e.variadic?"...":"");return e.required?"<"+t+">":"["+t+"]"}},3090(e,t,n){const i=n(8474).EventEmitter,a=n(1421),o=n(6760),s=n(3024),r=n(1708),{Argument:c,humanReadableArgName:l}=n(1420),{CommanderError:p}=n(2057),{Help:u,stripColor:d}=n(6264),{Option:m,DualOptions:f}=n(8402),{suggestSimilar:h}=n(6340);class g extends i{constructor(e){super(),this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!1,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=e||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._savedState=null,this._outputConfiguration={writeOut:e=>r.stdout.write(e),writeErr:e=>r.stderr.write(e),outputError:(e,t)=>t(e),getOutHelpWidth:()=>r.stdout.isTTY?r.stdout.columns:void 0,getErrHelpWidth:()=>r.stderr.isTTY?r.stderr.columns:void 0,getOutHasColors:()=>v()??(r.stdout.isTTY&&r.stdout.hasColors?.()),getErrHasColors:()=>v()??(r.stderr.isTTY&&r.stderr.hasColors?.()),stripColor:e=>d(e)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={},this._helpGroupHeading=void 0,this._defaultCommandGroup=void 0,this._defaultOptionGroup=void 0}copyInheritedSettings(e){return this._outputConfiguration=e._outputConfiguration,this._helpOption=e._helpOption,this._helpCommand=e._helpCommand,this._helpConfiguration=e._helpConfiguration,this._exitCallback=e._exitCallback,this._storeOptionsAsProperties=e._storeOptionsAsProperties,this._combineFlagAndOptionalValue=e._combineFlagAndOptionalValue,this._allowExcessArguments=e._allowExcessArguments,this._enablePositionalOptions=e._enablePositionalOptions,this._showHelpAfterError=e._showHelpAfterError,this._showSuggestionAfterError=e._showSuggestionAfterError,this}_getCommandAndAncestors(){const e=[];for(let t=this;t;t=t.parent)e.push(t);return e}command(e,t,n){let i=t,a=n;"object"==typeof i&&null!==i&&(a=i,i=null),a=a||{};const[,o,s]=e.match(/([^ ]+) *(.*)/),r=this.createCommand(o);return i&&(r.description(i),r._executableHandler=!0),a.isDefault&&(this._defaultCommandName=r._name),r._hidden=!(!a.noHelp&&!a.hidden),r._executableFile=a.executableFile||null,s&&r.arguments(s),this._registerCommand(r),r.parent=this,r.copyInheritedSettings(this),i?this:r}createCommand(e){return new g(e)}createHelp(){return Object.assign(new u,this.configureHelp())}configureHelp(e){return void 0===e?this._helpConfiguration:(this._helpConfiguration=e,this)}configureOutput(e){return void 0===e?this._outputConfiguration:(this._outputConfiguration={...this._outputConfiguration,...e},this)}showHelpAfterError(e=!0){return"string"!=typeof e&&(e=!!e),this._showHelpAfterError=e,this}showSuggestionAfterError(e=!0){return this._showSuggestionAfterError=!!e,this}addCommand(e,t){if(!e._name)throw new Error("Command passed to .addCommand() must have a name\n- specify the name in Command constructor or using .name()");return(t=t||{}).isDefault&&(this._defaultCommandName=e._name),(t.noHelp||t.hidden)&&(e._hidden=!0),this._registerCommand(e),e.parent=this,e._checkForBrokenPassThrough(),this}createArgument(e,t){return new c(e,t)}argument(e,t,n,i){const a=this.createArgument(e,t);return"function"==typeof n?a.default(i).argParser(n):a.default(n),this.addArgument(a),this}arguments(e){return e.trim().split(/ +/).forEach(e=>{this.argument(e)}),this}addArgument(e){const t=this.registeredArguments.slice(-1)[0];if(t?.variadic)throw new Error(`only the last argument can be variadic '${t.name()}'`);if(e.required&&void 0!==e.defaultValue&&void 0===e.parseArg)throw new Error(`a default value for a required argument is never used: '${e.name()}'`);return this.registeredArguments.push(e),this}helpCommand(e,t){if("boolean"==typeof e)return this._addImplicitHelpCommand=e,e&&this._defaultCommandGroup&&this._initCommandGroup(this._getHelpCommand()),this;const n=e??"help [command]",[,i,a]=n.match(/([^ ]+) *(.*)/),o=t??"display help for command",s=this.createCommand(i);return s.helpOption(!1),a&&s.arguments(a),o&&s.description(o),this._addImplicitHelpCommand=!0,this._helpCommand=s,(e||t)&&this._initCommandGroup(s),this}addHelpCommand(e,t){return"object"!=typeof e?(this.helpCommand(e,t),this):(this._addImplicitHelpCommand=!0,this._helpCommand=e,this._initCommandGroup(e),this)}_getHelpCommand(){return this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand("help"))?(void 0===this._helpCommand&&this.helpCommand(void 0,void 0),this._helpCommand):null}hook(e,t){const n=["preSubcommand","preAction","postAction"];if(!n.includes(e))throw new Error(`Unexpected value for event passed to hook : '${e}'.\nExpecting one of '${n.join("', '")}'`);return this._lifeCycleHooks[e]?this._lifeCycleHooks[e].push(t):this._lifeCycleHooks[e]=[t],this}exitOverride(e){return this._exitCallback=e||(e=>{if("commander.executeSubCommandAsync"!==e.code)throw e}),this}_exit(e,t,n){this._exitCallback&&this._exitCallback(new p(e,t,n)),r.exit(e)}action(e){return this._actionHandler=t=>{const n=this.registeredArguments.length,i=t.slice(0,n);return this._storeOptionsAsProperties?i[n]=this:i[n]=this.opts(),i.push(this),e.apply(this,i)},this}createOption(e,t){return new m(e,t)}_callParseArg(e,t,n,i){try{return e.parseArg(t,n)}catch(e){if("commander.invalidArgument"===e.code){const t=`${i} ${e.message}`;this.error(t,{exitCode:e.exitCode,code:e.code})}throw e}}_registerOption(e){const t=e.short&&this._findOption(e.short)||e.long&&this._findOption(e.long);if(t){const n=e.long&&this._findOption(e.long)?e.long:e.short;throw new Error(`Cannot add option '${e.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${n}'\n- already used by option '${t.flags}'`)}this._initOptionGroup(e),this.options.push(e)}_registerCommand(e){const t=e=>[e.name()].concat(e.aliases()),n=t(e).find(e=>this._findCommand(e));if(n){const i=t(this._findCommand(n)).join("|"),a=t(e).join("|");throw new Error(`cannot add command '${a}' as already have command '${i}'`)}this._initCommandGroup(e),this.commands.push(e)}addOption(e){this._registerOption(e);const t=e.name(),n=e.attributeName();if(e.negate){const t=e.long.replace(/^--no-/,"--");this._findOption(t)||this.setOptionValueWithSource(n,void 0===e.defaultValue||e.defaultValue,"default")}else void 0!==e.defaultValue&&this.setOptionValueWithSource(n,e.defaultValue,"default");const i=(t,i,a)=>{null==t&&void 0!==e.presetArg&&(t=e.presetArg);const o=this.getOptionValue(n);null!==t&&e.parseArg?t=this._callParseArg(e,t,o,i):null!==t&&e.variadic&&(t=e._collectValue(t,o)),null==t&&(t=!e.negate&&(!(!e.isBoolean()&&!e.optional)||"")),this.setOptionValueWithSource(n,t,a)};return this.on("option:"+t,t=>{const n=`error: option '${e.flags}' argument '${t}' is invalid.`;i(t,n,"cli")}),e.envVar&&this.on("optionEnv:"+t,t=>{const n=`error: option '${e.flags}' value '${t}' from env '${e.envVar}' is invalid.`;i(t,n,"env")}),this}_optionEx(e,t,n,i,a){if("object"==typeof t&&t instanceof m)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");const o=this.createOption(t,n);if(o.makeOptionMandatory(!!e.mandatory),"function"==typeof i)o.default(a).argParser(i);else if(i instanceof RegExp){const e=i;i=(t,n)=>{const i=e.exec(t);return i?i[0]:n},o.default(a).argParser(i)}else o.default(i);return this.addOption(o)}option(e,t,n,i){return this._optionEx({},e,t,n,i)}requiredOption(e,t,n,i){return this._optionEx({mandatory:!0},e,t,n,i)}combineFlagAndOptionalValue(e=!0){return this._combineFlagAndOptionalValue=!!e,this}allowUnknownOption(e=!0){return this._allowUnknownOption=!!e,this}allowExcessArguments(e=!0){return this._allowExcessArguments=!!e,this}enablePositionalOptions(e=!0){return this._enablePositionalOptions=!!e,this}passThroughOptions(e=!0){return this._passThroughOptions=!!e,this._checkForBrokenPassThrough(),this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions)throw new Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}storeOptionsAsProperties(e=!0){if(this.options.length)throw new Error("call .storeOptionsAsProperties() before adding options");if(Object.keys(this._optionValues).length)throw new Error("call .storeOptionsAsProperties() before setting option values");return this._storeOptionsAsProperties=!!e,this}getOptionValue(e){return this._storeOptionsAsProperties?this[e]:this._optionValues[e]}setOptionValue(e,t){return this.setOptionValueWithSource(e,t,void 0)}setOptionValueWithSource(e,t,n){return this._storeOptionsAsProperties?this[e]=t:this._optionValues[e]=t,this._optionValueSources[e]=n,this}getOptionValueSource(e){return this._optionValueSources[e]}getOptionValueSourceWithGlobals(e){let t;return this._getCommandAndAncestors().forEach(n=>{void 0!==n.getOptionValueSource(e)&&(t=n.getOptionValueSource(e))}),t}_prepareUserArgs(e,t){if(void 0!==e&&!Array.isArray(e))throw new Error("first parameter to parse must be array or undefined");if(t=t||{},void 0===e&&void 0===t.from){r.versions?.electron&&(t.from="electron");const e=r.execArgv??[];(e.includes("-e")||e.includes("--eval")||e.includes("-p")||e.includes("--print"))&&(t.from="eval")}let n;switch(void 0===e&&(e=r.argv),this.rawArgs=e.slice(),t.from){case void 0:case"node":this._scriptPath=e[1],n=e.slice(2);break;case"electron":r.defaultApp?(this._scriptPath=e[1],n=e.slice(2)):n=e.slice(1);break;case"user":n=e.slice(0);break;case"eval":n=e.slice(1);break;default:throw new Error(`unexpected parse option { from: '${t.from}' }`)}return!this._name&&this._scriptPath&&this.nameFromFilename(this._scriptPath),this._name=this._name||"program",n}parse(e,t){this._prepareForParse();const n=this._prepareUserArgs(e,t);return this._parseCommand([],n),this}async parseAsync(e,t){this._prepareForParse();const n=this._prepareUserArgs(e,t);return await this._parseCommand([],n),this}_prepareForParse(){null===this._savedState?this.saveStateBeforeParse():this.restoreStateBeforeParse()}saveStateBeforeParse(){this._savedState={_name:this._name,_optionValues:{...this._optionValues},_optionValueSources:{...this._optionValueSources}}}restoreStateBeforeParse(){if(this._storeOptionsAsProperties)throw new Error("Can not call parse again when storeOptionsAsProperties is true.\n- either make a new Command for each call to parse, or stop storing options as properties");this._name=this._savedState._name,this._scriptPath=null,this.rawArgs=[],this._optionValues={...this._savedState._optionValues},this._optionValueSources={...this._savedState._optionValueSources},this.args=[],this.processedArgs=[]}_checkForMissingExecutable(e,t,n){if(!s.existsSync(e))throw new Error(`'${e}' does not exist\n - if '${n}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead\n - if the default executable name is not suitable, use the executableFile option to supply a custom name or path\n - ${t?`searched for local subcommand relative to directory '${t}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory"}`)}_executeSubCommand(e,t){t=t.slice();let n=!1;const i=[".js",".ts",".tsx",".mjs",".cjs"];function c(e,t){const n=o.resolve(e,t);if(s.existsSync(n))return n;if(i.includes(o.extname(t)))return;const a=i.find(e=>s.existsSync(`${n}${e}`));return a?`${n}${a}`:void 0}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let l,u=e._executableFile||`${this._name}-${e._name}`,d=this._executableDir||"";if(this._scriptPath){let e;try{e=s.realpathSync(this._scriptPath)}catch{e=this._scriptPath}d=o.resolve(o.dirname(e),d)}if(d){let t=c(d,u);if(!t&&!e._executableFile&&this._scriptPath){const n=o.basename(this._scriptPath,o.extname(this._scriptPath));n!==this._name&&(t=c(d,`${n}-${e._name}`))}u=t||u}n=i.includes(o.extname(u)),"win32"!==r.platform?n?(t.unshift(u),t=x(r.execArgv).concat(t),l=a.spawn(r.argv[0],t,{stdio:"inherit"})):l=a.spawn(u,t,{stdio:"inherit"}):(this._checkForMissingExecutable(u,d,e._name),t.unshift(u),t=x(r.execArgv).concat(t),l=a.spawn(r.execPath,t,{stdio:"inherit"})),l.killed||["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(e=>{r.on(e,()=>{!1===l.killed&&null===l.exitCode&&l.kill(e)})});const m=this._exitCallback;l.on("close",e=>{e=e??1,m?m(new p(e,"commander.executeSubCommandAsync","(close)")):r.exit(e)}),l.on("error",t=>{if("ENOENT"===t.code)this._checkForMissingExecutable(u,d,e._name);else if("EACCES"===t.code)throw new Error(`'${u}' not executable`);if(m){const e=new p(1,"commander.executeSubCommandAsync","(error)");e.nestedError=t,m(e)}else r.exit(1)}),this.runningCommand=l}_dispatchSubcommand(e,t,n){const i=this._findCommand(e);let a;return i||this.help({error:!0}),i._prepareForParse(),a=this._chainOrCallSubCommandHook(a,i,"preSubcommand"),a=this._chainOrCall(a,()=>{if(!i._executableHandler)return i._parseCommand(t,n);this._executeSubCommand(i,t.concat(n))}),a}_dispatchHelpCommand(e){e||this.help();const t=this._findCommand(e);return t&&!t._executableHandler&&t.help(),this._dispatchSubcommand(e,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??"--help"])}_checkNumberOfArguments(){this.registeredArguments.forEach((e,t)=>{e.required&&null==this.args[t]&&this.missingArgument(e.name())}),this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic||this.args.length>this.registeredArguments.length&&this._excessArguments(this.args)}_processArguments(){const e=(e,t,n)=>{let i=t;if(null!==t&&e.parseArg){const a=`error: command-argument value '${t}' is invalid for argument '${e.name()}'.`;i=this._callParseArg(e,t,n,a)}return i};this._checkNumberOfArguments();const t=[];this.registeredArguments.forEach((n,i)=>{let a=n.defaultValue;n.variadic?i<this.args.length?(a=this.args.slice(i),n.parseArg&&(a=a.reduce((t,i)=>e(n,i,t),n.defaultValue))):void 0===a&&(a=[]):i<this.args.length&&(a=this.args[i],n.parseArg&&(a=e(n,a,n.defaultValue))),t[i]=a}),this.processedArgs=t}_chainOrCall(e,t){return e?.then&&"function"==typeof e.then?e.then(()=>t()):t()}_chainOrCallHooks(e,t){let n=e;const i=[];return this._getCommandAndAncestors().reverse().filter(e=>void 0!==e._lifeCycleHooks[t]).forEach(e=>{e._lifeCycleHooks[t].forEach(t=>{i.push({hookedCommand:e,callback:t})})}),"postAction"===t&&i.reverse(),i.forEach(e=>{n=this._chainOrCall(n,()=>e.callback(e.hookedCommand,this))}),n}_chainOrCallSubCommandHook(e,t,n){let i=e;return void 0!==this._lifeCycleHooks[n]&&this._lifeCycleHooks[n].forEach(e=>{i=this._chainOrCall(i,()=>e(this,t))}),i}_parseCommand(e,t){const n=this.parseOptions(t);if(this._parseOptionsEnv(),this._parseOptionsImplied(),e=e.concat(n.operands),t=n.unknown,this.args=e.concat(t),e&&this._findCommand(e[0]))return this._dispatchSubcommand(e[0],e.slice(1),t);if(this._getHelpCommand()&&e[0]===this._getHelpCommand().name())return this._dispatchHelpCommand(e[1]);if(this._defaultCommandName)return this._outputHelpIfRequested(t),this._dispatchSubcommand(this._defaultCommandName,e,t);!this.commands.length||0!==this.args.length||this._actionHandler||this._defaultCommandName||this.help({error:!0}),this._outputHelpIfRequested(n.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();const i=()=>{n.unknown.length>0&&this.unknownOption(n.unknown[0])},a=`command:${this.name()}`;if(this._actionHandler){let n;return i(),this._processArguments(),n=this._chainOrCallHooks(n,"preAction"),n=this._chainOrCall(n,()=>this._actionHandler(this.processedArgs)),this.parent&&(n=this._chainOrCall(n,()=>{this.parent.emit(a,e,t)})),n=this._chainOrCallHooks(n,"postAction"),n}if(this.parent?.listenerCount(a))i(),this._processArguments(),this.parent.emit(a,e,t);else if(e.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",e,t);this.listenerCount("command:*")?this.emit("command:*",e,t):this.commands.length?this.unknownCommand():(i(),this._processArguments())}else this.commands.length?(i(),this.help({error:!0})):(i(),this._processArguments())}_findCommand(e){if(e)return this.commands.find(t=>t._name===e||t._aliases.includes(e))}_findOption(e){return this.options.find(t=>t.is(e))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach(e=>{e.options.forEach(t=>{t.mandatory&&void 0===e.getOptionValue(t.attributeName())&&e.missingMandatoryOptionValue(t)})})}_checkForConflictingLocalOptions(){const e=this.options.filter(e=>{const t=e.attributeName();return void 0!==this.getOptionValue(t)&&"default"!==this.getOptionValueSource(t)});e.filter(e=>e.conflictsWith.length>0).forEach(t=>{const n=e.find(e=>t.conflictsWith.includes(e.attributeName()));n&&this._conflictingOption(t,n)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach(e=>{e._checkForConflictingLocalOptions()})}parseOptions(e){const t=[],n=[];let i=t;function a(e){return e.length>1&&"-"===e[0]}const o=e=>!!/^-(\d+|\d*\.\d+)(e[+-]?\d+)?$/.test(e)&&!this._getCommandAndAncestors().some(e=>e.options.map(e=>e.short).some(e=>/^-\d$/.test(e)));let s=null,r=null,c=0;for(;c<e.length||r;){const l=r??e[c++];if(r=null,"--"===l){i===n&&i.push(l),i.push(...e.slice(c));break}if(!s||a(l)&&!o(l)){if(s=null,a(l)){const t=this._findOption(l);if(t){if(t.required){const n=e[c++];void 0===n&&this.optionMissingArgument(t),this.emit(`option:${t.name()}`,n)}else if(t.optional){let n=null;c<e.length&&(!a(e[c])||o(e[c]))&&(n=e[c++]),this.emit(`option:${t.name()}`,n)}else this.emit(`option:${t.name()}`);s=t.variadic?t:null;continue}}if(l.length>2&&"-"===l[0]&&"-"!==l[1]){const e=this._findOption(`-${l[1]}`);if(e){e.required||e.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${e.name()}`,l.slice(2)):(this.emit(`option:${e.name()}`),r=`-${l.slice(2)}`);continue}}if(/^--[^=]+=/.test(l)){const e=l.indexOf("="),t=this._findOption(l.slice(0,e));if(t&&(t.required||t.optional)){this.emit(`option:${t.name()}`,l.slice(e+1));continue}}if(i!==t||!a(l)||0===this.commands.length&&o(l)||(i=n),(this._enablePositionalOptions||this._passThroughOptions)&&0===t.length&&0===n.length){if(this._findCommand(l)){t.push(l),n.push(...e.slice(c));break}if(this._getHelpCommand()&&l===this._getHelpCommand().name()){t.push(l,...e.slice(c));break}if(this._defaultCommandName){n.push(l,...e.slice(c));break}}if(this._passThroughOptions){i.push(l,...e.slice(c));break}i.push(l)}else this.emit(`option:${s.name()}`,l)}return{operands:t,unknown:n}}opts(){if(this._storeOptionsAsProperties){const e={},t=this.options.length;for(let n=0;n<t;n++){const t=this.options[n].attributeName();e[t]=t===this._versionOptionName?this._version:this[t]}return e}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((e,t)=>Object.assign(e,t.opts()),{})}error(e,t){this._outputConfiguration.outputError(`${e}\n`,this._outputConfiguration.writeErr),"string"==typeof this._showHelpAfterError?this._outputConfiguration.writeErr(`${this._showHelpAfterError}\n`):this._showHelpAfterError&&(this._outputConfiguration.writeErr("\n"),this.outputHelp({error:!0}));const n=t||{},i=n.exitCode||1,a=n.code||"commander.error";this._exit(i,a,e)}_parseOptionsEnv(){this.options.forEach(e=>{if(e.envVar&&e.envVar in r.env){const t=e.attributeName();(void 0===this.getOptionValue(t)||["default","config","env"].includes(this.getOptionValueSource(t)))&&(e.required||e.optional?this.emit(`optionEnv:${e.name()}`,r.env[e.envVar]):this.emit(`optionEnv:${e.name()}`))}})}_parseOptionsImplied(){const e=new f(this.options),t=e=>void 0!==this.getOptionValue(e)&&!["default","implied"].includes(this.getOptionValueSource(e));this.options.filter(n=>void 0!==n.implied&&t(n.attributeName())&&e.valueFromOption(this.getOptionValue(n.attributeName()),n)).forEach(e=>{Object.keys(e.implied).filter(e=>!t(e)).forEach(t=>{this.setOptionValueWithSource(t,e.implied[t],"implied")})})}missingArgument(e){const t=`error: missing required argument '${e}'`;this.error(t,{code:"commander.missingArgument"})}optionMissingArgument(e){const t=`error: option '${e.flags}' argument missing`;this.error(t,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(e){const t=`error: required option '${e.flags}' not specified`;this.error(t,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(e,t){const n=e=>{const t=e.attributeName(),n=this.getOptionValue(t),i=this.options.find(e=>e.negate&&t===e.attributeName()),a=this.options.find(e=>!e.negate&&t===e.attributeName());return i&&(void 0===i.presetArg&&!1===n||void 0!==i.presetArg&&n===i.presetArg)?i:a||e},i=e=>{const t=n(e),i=t.attributeName();return"env"===this.getOptionValueSource(i)?`environment variable '${t.envVar}'`:`option '${t.flags}'`},a=`error: ${i(e)} cannot be used with ${i(t)}`;this.error(a,{code:"commander.conflictingOption"})}unknownOption(e){if(this._allowUnknownOption)return;let t="";if(e.startsWith("--")&&this._showSuggestionAfterError){let n=[],i=this;do{const e=i.createHelp().visibleOptions(i).filter(e=>e.long).map(e=>e.long);n=n.concat(e),i=i.parent}while(i&&!i._enablePositionalOptions);t=h(e,n)}const n=`error: unknown option '${e}'${t}`;this.error(n,{code:"commander.unknownOption"})}_excessArguments(e){if(this._allowExcessArguments)return;const t=this.registeredArguments.length,n=1===t?"":"s",i=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${t} argument${n} but got ${e.length}.`;this.error(i,{code:"commander.excessArguments"})}unknownCommand(){const e=this.args[0];let t="";if(this._showSuggestionAfterError){const n=[];this.createHelp().visibleCommands(this).forEach(e=>{n.push(e.name()),e.alias()&&n.push(e.alias())}),t=h(e,n)}const n=`error: unknown command '${e}'${t}`;this.error(n,{code:"commander.unknownCommand"})}version(e,t,n){if(void 0===e)return this._version;this._version=e,t=t||"-V, --version",n=n||"output the version number";const i=this.createOption(t,n);return this._versionOptionName=i.attributeName(),this._registerOption(i),this.on("option:"+i.name(),()=>{this._outputConfiguration.writeOut(`${e}\n`),this._exit(0,"commander.version",e)}),this}description(e,t){return void 0===e&&void 0===t?this._description:(this._description=e,t&&(this._argsDescription=t),this)}summary(e){return void 0===e?this._summary:(this._summary=e,this)}alias(e){if(void 0===e)return this._aliases[0];let t=this;if(0!==this.commands.length&&this.commands[this.commands.length-1]._executableHandler&&(t=this.commands[this.commands.length-1]),e===t._name)throw new Error("Command alias can't be the same as its name");const n=this.parent?._findCommand(e);if(n){const t=[n.name()].concat(n.aliases()).join("|");throw new Error(`cannot add alias '${e}' to command '${this.name()}' as already have command '${t}'`)}return t._aliases.push(e),this}aliases(e){return void 0===e?this._aliases:(e.forEach(e=>this.alias(e)),this)}usage(e){if(void 0===e){if(this._usage)return this._usage;const e=this.registeredArguments.map(e=>l(e));return[].concat(this.options.length||null!==this._helpOption?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?e:[]).join(" ")}return this._usage=e,this}name(e){return void 0===e?this._name:(this._name=e,this)}helpGroup(e){return void 0===e?this._helpGroupHeading??"":(this._helpGroupHeading=e,this)}commandsGroup(e){return void 0===e?this._defaultCommandGroup??"":(this._defaultCommandGroup=e,this)}optionsGroup(e){return void 0===e?this._defaultOptionGroup??"":(this._defaultOptionGroup=e,this)}_initOptionGroup(e){this._defaultOptionGroup&&!e.helpGroupHeading&&e.helpGroup(this._defaultOptionGroup)}_initCommandGroup(e){this._defaultCommandGroup&&!e.helpGroup()&&e.helpGroup(this._defaultCommandGroup)}nameFromFilename(e){return this._name=o.basename(e,o.extname(e)),this}executableDir(e){return void 0===e?this._executableDir:(this._executableDir=e,this)}helpInformation(e){const t=this.createHelp(),n=this._getOutputContext(e);t.prepareContext({error:n.error,helpWidth:n.helpWidth,outputHasColors:n.hasColors});const i=t.formatHelp(this,t);return n.hasColors?i:this._outputConfiguration.stripColor(i)}_getOutputContext(e){const t=!!(e=e||{}).error;let n,i,a;return t?(n=e=>this._outputConfiguration.writeErr(e),i=this._outputConfiguration.getErrHasColors(),a=this._outputConfiguration.getErrHelpWidth()):(n=e=>this._outputConfiguration.writeOut(e),i=this._outputConfiguration.getOutHasColors(),a=this._outputConfiguration.getOutHelpWidth()),{error:t,write:e=>(i||(e=this._outputConfiguration.stripColor(e)),n(e)),hasColors:i,helpWidth:a}}outputHelp(e){let t;"function"==typeof e&&(t=e,e=void 0);const n=this._getOutputContext(e),i={error:n.error,write:n.write,command:this};this._getCommandAndAncestors().reverse().forEach(e=>e.emit("beforeAllHelp",i)),this.emit("beforeHelp",i);let a=this.helpInformation({error:n.error});if(t&&(a=t(a),"string"!=typeof a&&!Buffer.isBuffer(a)))throw new Error("outputHelp callback must return a string or a Buffer");n.write(a),this._getHelpOption()?.long&&this.emit(this._getHelpOption().long),this.emit("afterHelp",i),this._getCommandAndAncestors().forEach(e=>e.emit("afterAllHelp",i))}helpOption(e,t){return"boolean"==typeof e?(e?(null===this._helpOption&&(this._helpOption=void 0),this._defaultOptionGroup&&this._initOptionGroup(this._getHelpOption())):this._helpOption=null,this):(this._helpOption=this.createOption(e??"-h, --help",t??"display help for command"),(e||t)&&this._initOptionGroup(this._helpOption),this)}_getHelpOption(){return void 0===this._helpOption&&this.helpOption(void 0,void 0),this._helpOption}addHelpOption(e){return this._helpOption=e,this._initOptionGroup(e),this}help(e){this.outputHelp(e);let t=Number(r.exitCode??0);0===t&&e&&"function"!=typeof e&&e.error&&(t=1),this._exit(t,"commander.help","(outputHelp)")}addHelpText(e,t){const n=["beforeAll","before","after","afterAll"];if(!n.includes(e))throw new Error(`Unexpected value for position to addHelpText.\nExpecting one of '${n.join("', '")}'`);const i=`${e}Help`;return this.on(i,e=>{let n;n="function"==typeof t?t({error:e.error,command:e.command}):t,n&&e.write(`${n}\n`)}),this}_outputHelpIfRequested(e){const t=this._getHelpOption();t&&e.find(e=>t.is(e))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}}function x(e){return e.map(e=>{if(!e.startsWith("--inspect"))return e;let t,n,i="127.0.0.1",a="9229";return null!==(n=e.match(/^(--inspect(-brk)?)$/))?t=n[1]:null!==(n=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))?(t=n[1],/^\d+$/.test(n[3])?a=n[3]:i=n[3]):null!==(n=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))&&(t=n[1],i=n[3],a=n[4]),t&&"0"!==a?`${t}=${i}:${parseInt(a)+1}`:e})}function v(){return!r.env.NO_COLOR&&"0"!==r.env.FORCE_COLOR&&"false"!==r.env.FORCE_COLOR&&(!(!r.env.FORCE_COLOR&&void 0===r.env.CLICOLOR_FORCE)||void 0)}t.Command=g,t.useColor=v},2057(e,t){class n extends Error{constructor(e,t,n){super(n),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=t,this.exitCode=e,this.nestedError=void 0}}t.CommanderError=n,t.InvalidArgumentError=class extends n{constructor(e){super(1,"commander.invalidArgument",e),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}}},6264(e,t,n){const{humanReadableArgName:i}=n(1420);function a(e){return e.replace(/\x1b\[\d*(;\d*)*m/g,"")}t.Help=class{constructor(){this.helpWidth=void 0,this.minWidthToWrap=40,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}prepareContext(e){this.helpWidth=this.helpWidth??e.helpWidth??80}visibleCommands(e){const t=e.commands.filter(e=>!e._hidden),n=e._getHelpCommand();return n&&!n._hidden&&t.push(n),this.sortSubcommands&&t.sort((e,t)=>e.name().localeCompare(t.name())),t}compareOptions(e,t){const n=e=>e.short?e.short.replace(/^-/,""):e.long.replace(/^--/,"");return n(e).localeCompare(n(t))}visibleOptions(e){const t=e.options.filter(e=>!e.hidden),n=e._getHelpOption();if(n&&!n.hidden){const i=n.short&&e._findOption(n.short),a=n.long&&e._findOption(n.long);i||a?n.long&&!a?t.push(e.createOption(n.long,n.description)):n.short&&!i&&t.push(e.createOption(n.short,n.description)):t.push(n)}return this.sortOptions&&t.sort(this.compareOptions),t}visibleGlobalOptions(e){if(!this.showGlobalOptions)return[];const t=[];for(let n=e.parent;n;n=n.parent){const e=n.options.filter(e=>!e.hidden);t.push(...e)}return this.sortOptions&&t.sort(this.compareOptions),t}visibleArguments(e){return e._argsDescription&&e.registeredArguments.forEach(t=>{t.description=t.description||e._argsDescription[t.name()]||""}),e.registeredArguments.find(e=>e.description)?e.registeredArguments:[]}subcommandTerm(e){const t=e.registeredArguments.map(e=>i(e)).join(" ");return e._name+(e._aliases[0]?"|"+e._aliases[0]:"")+(e.options.length?" [options]":"")+(t?" "+t:"")}optionTerm(e){return e.flags}argumentTerm(e){return e.name()}longestSubcommandTermLength(e,t){return t.visibleCommands(e).reduce((e,n)=>Math.max(e,this.displayWidth(t.styleSubcommandTerm(t.subcommandTerm(n)))),0)}longestOptionTermLength(e,t){return t.visibleOptions(e).reduce((e,n)=>Math.max(e,this.displayWidth(t.styleOptionTerm(t.optionTerm(n)))),0)}longestGlobalOptionTermLength(e,t){return t.visibleGlobalOptions(e).reduce((e,n)=>Math.max(e,this.displayWidth(t.styleOptionTerm(t.optionTerm(n)))),0)}longestArgumentTermLength(e,t){return t.visibleArguments(e).reduce((e,n)=>Math.max(e,this.displayWidth(t.styleArgumentTerm(t.argumentTerm(n)))),0)}commandUsage(e){let t=e._name;e._aliases[0]&&(t=t+"|"+e._aliases[0]);let n="";for(let t=e.parent;t;t=t.parent)n=t.name()+" "+n;return n+t+" "+e.usage()}commandDescription(e){return e.description()}subcommandDescription(e){return e.summary()||e.description()}optionDescription(e){const t=[];if(e.argChoices&&t.push(`choices: ${e.argChoices.map(e=>JSON.stringify(e)).join(", ")}`),void 0!==e.defaultValue&&(e.required||e.optional||e.isBoolean()&&"boolean"==typeof e.defaultValue)&&t.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),void 0!==e.presetArg&&e.optional&&t.push(`preset: ${JSON.stringify(e.presetArg)}`),void 0!==e.envVar&&t.push(`env: ${e.envVar}`),t.length>0){const n=`(${t.join(", ")})`;return e.description?`${e.description} ${n}`:n}return e.description}argumentDescription(e){const t=[];if(e.argChoices&&t.push(`choices: ${e.argChoices.map(e=>JSON.stringify(e)).join(", ")}`),void 0!==e.defaultValue&&t.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),t.length>0){const n=`(${t.join(", ")})`;return e.description?`${e.description} ${n}`:n}return e.description}formatItemList(e,t,n){return 0===t.length?[]:[n.styleTitle(e),...t,""]}groupItems(e,t,n){const i=new Map;return e.forEach(e=>{const t=n(e);i.has(t)||i.set(t,[])}),t.forEach(e=>{const t=n(e);i.has(t)||i.set(t,[]),i.get(t).push(e)}),i}formatHelp(e,t){const n=t.padWidth(e,t),i=t.helpWidth??80;function a(e,i){return t.formatItem(e,n,i,t)}let o=[`${t.styleTitle("Usage:")} ${t.styleUsage(t.commandUsage(e))}`,""];const s=t.commandDescription(e);s.length>0&&(o=o.concat([t.boxWrap(t.styleCommandDescription(s),i),""]));const r=t.visibleArguments(e).map(e=>a(t.styleArgumentTerm(t.argumentTerm(e)),t.styleArgumentDescription(t.argumentDescription(e))));if(o=o.concat(this.formatItemList("Arguments:",r,t)),this.groupItems(e.options,t.visibleOptions(e),e=>e.helpGroupHeading??"Options:").forEach((e,n)=>{const i=e.map(e=>a(t.styleOptionTerm(t.optionTerm(e)),t.styleOptionDescription(t.optionDescription(e))));o=o.concat(this.formatItemList(n,i,t))}),t.showGlobalOptions){const n=t.visibleGlobalOptions(e).map(e=>a(t.styleOptionTerm(t.optionTerm(e)),t.styleOptionDescription(t.optionDescription(e))));o=o.concat(this.formatItemList("Global Options:",n,t))}return this.groupItems(e.commands,t.visibleCommands(e),e=>e.helpGroup()||"Commands:").forEach((e,n)=>{const i=e.map(e=>a(t.styleSubcommandTerm(t.subcommandTerm(e)),t.styleSubcommandDescription(t.subcommandDescription(e))));o=o.concat(this.formatItemList(n,i,t))}),o.join("\n")}displayWidth(e){return a(e).length}styleTitle(e){return e}styleUsage(e){return e.split(" ").map(e=>"[options]"===e?this.styleOptionText(e):"[command]"===e?this.styleSubcommandText(e):"["===e[0]||"<"===e[0]?this.styleArgumentText(e):this.styleCommandText(e)).join(" ")}styleCommandDescription(e){return this.styleDescriptionText(e)}styleOptionDescription(e){return this.styleDescriptionText(e)}styleSubcommandDescription(e){return this.styleDescriptionText(e)}styleArgumentDescription(e){return this.styleDescriptionText(e)}styleDescriptionText(e){return e}styleOptionTerm(e){return this.styleOptionText(e)}styleSubcommandTerm(e){return e.split(" ").map(e=>"[options]"===e?this.styleOptionText(e):"["===e[0]||"<"===e[0]?this.styleArgumentText(e):this.styleSubcommandText(e)).join(" ")}styleArgumentTerm(e){return this.styleArgumentText(e)}styleOptionText(e){return e}styleArgumentText(e){return e}styleSubcommandText(e){return e}styleCommandText(e){return e}padWidth(e,t){return Math.max(t.longestOptionTermLength(e,t),t.longestGlobalOptionTermLength(e,t),t.longestSubcommandTermLength(e,t),t.longestArgumentTermLength(e,t))}preformatted(e){return/\n[^\S\r\n]/.test(e)}formatItem(e,t,n,i){const a=" ".repeat(2);if(!n)return a+e;const o=e.padEnd(t+e.length-i.displayWidth(e)),s=(this.helpWidth??80)-t-2-2;let r;return r=s<this.minWidthToWrap||i.preformatted(n)?n:i.boxWrap(n,s).replace(/\n/g,"\n"+" ".repeat(t+2)),a+o+" ".repeat(2)+r.replace(/\n/g,`\n${a}`)}boxWrap(e,t){if(t<this.minWidthToWrap)return e;const n=e.split(/\r\n|\n/),i=/[\s]*[^\s]+/g,a=[];return n.forEach(e=>{const n=e.match(i);if(null===n)return void a.push("");let o=[n.shift()],s=this.displayWidth(o[0]);n.forEach(e=>{const n=this.displayWidth(e);if(s+n<=t)return o.push(e),void(s+=n);a.push(o.join(""));const i=e.trimStart();o=[i],s=this.displayWidth(i)}),a.push(o.join(""))}),a.join("\n")}},t.stripColor=a},8402(e,t,n){const{InvalidArgumentError:i}=n(2057);function a(e){return e.split("-").reduce((e,t)=>e+t[0].toUpperCase()+t.slice(1))}t.Option=class{constructor(e,t){this.flags=e,this.description=t||"",this.required=e.includes("<"),this.optional=e.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(e),this.mandatory=!1;const n=function(e){let t,n;const i=/^-[^-]$/,a=/^--[^-]/,o=e.split(/[ |,]+/).concat("guard");if(i.test(o[0])&&(t=o.shift()),a.test(o[0])&&(n=o.shift()),!t&&i.test(o[0])&&(t=o.shift()),!t&&a.test(o[0])&&(t=n,n=o.shift()),o[0].startsWith("-")){const t=o[0],n=`option creation failed due to '${t}' in option flags '${e}'`;if(/^-[^-][^-]/.test(t))throw new Error(`${n}\n- a short flag is a single dash and a single character\n - either use a single dash and a single character (for a short flag)\n - or use a double dash for a long option (and can have two, like '--ws, --workspace')`);if(i.test(t))throw new Error(`${n}\n- too many short flags`);if(a.test(t))throw new Error(`${n}\n- too many long flags`);throw new Error(`${n}\n- unrecognised flag format`)}if(void 0===t&&void 0===n)throw new Error(`option creation failed due to no flags found in '${e}'.`);return{shortFlag:t,longFlag:n}}(e);this.short=n.shortFlag,this.long=n.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith("--no-")),this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0,this.helpGroupHeading=void 0}default(e,t){return this.defaultValue=e,this.defaultValueDescription=t,this}preset(e){return this.presetArg=e,this}conflicts(e){return this.conflictsWith=this.conflictsWith.concat(e),this}implies(e){let t=e;return"string"==typeof e&&(t={[e]:!0}),this.implied=Object.assign(this.implied||{},t),this}env(e){return this.envVar=e,this}argParser(e){return this.parseArg=e,this}makeOptionMandatory(e=!0){return this.mandatory=!!e,this}hideHelp(e=!0){return this.hidden=!!e,this}_collectValue(e,t){return t!==this.defaultValue&&Array.isArray(t)?(t.push(e),t):[e]}choices(e){return this.argChoices=e.slice(),this.parseArg=(e,t)=>{if(!this.argChoices.includes(e))throw new i(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._collectValue(e,t):e},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return this.negate?a(this.name().replace(/^no-/,"")):a(this.name())}helpGroup(e){return this.helpGroupHeading=e,this}is(e){return this.short===e||this.long===e}isBoolean(){return!this.required&&!this.optional&&!this.negate}},t.DualOptions=class{constructor(e){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,e.forEach(e=>{e.negate?this.negativeOptions.set(e.attributeName(),e):this.positiveOptions.set(e.attributeName(),e)}),this.negativeOptions.forEach((e,t)=>{this.positiveOptions.has(t)&&this.dualOptions.add(t)})}valueFromOption(e,t){const n=t.attributeName();if(!this.dualOptions.has(n))return!0;const i=this.negativeOptions.get(n).presetArg,a=void 0!==i&&i;return t.negate===(a===e)}}},6340(e,t){t.suggestSimilar=function(e,t){if(!t||0===t.length)return"";t=Array.from(new Set(t));const n=e.startsWith("--");n&&(e=e.slice(2),t=t.map(e=>e.slice(2)));let i=[],a=3;return t.forEach(t=>{if(t.length<=1)return;const n=function(e,t){if(Math.abs(e.length-t.length)>3)return Math.max(e.length,t.length);const n=[];for(let t=0;t<=e.length;t++)n[t]=[t];for(let e=0;e<=t.length;e++)n[0][e]=e;for(let i=1;i<=t.length;i++)for(let a=1;a<=e.length;a++){let o=1;o=e[a-1]===t[i-1]?0:1,n[a][i]=Math.min(n[a-1][i]+1,n[a][i-1]+1,n[a-1][i-1]+o),a>1&&i>1&&e[a-1]===t[i-2]&&e[a-2]===t[i-1]&&(n[a][i]=Math.min(n[a][i],n[a-2][i-2]+1))}return n[e.length][t.length]}(e,t),o=Math.max(e.length,t.length);(o-n)/o>.4&&(n<a?(a=n,i=[t]):n===a&&i.push(t))}),i.sort((e,t)=>e.localeCompare(t)),n&&(i=i.map(e=>`--${e}`)),i.length>1?`\n(Did you mean one of ${i.join(", ")}?)`:1===i.length?`\n(Did you mean ${i[0]}?)`:""}},7344(e){(()=>{var t={d:(e,n)=>{for(var i in n)t.o(n,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:n[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{XMLBuilder:()=>Ae,XMLParser:()=>ge,XMLValidator:()=>Pe});const i=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",a=new RegExp("^["+i+"]["+i+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");function o(e,t){const n=[];let i=t.exec(e);for(;i;){const a=[];a.startIndex=t.lastIndex-i[0].length;const o=i.length;for(let e=0;e<o;e++)a.push(i[e]);n.push(a),i=t.exec(e)}return n}const s=function(e){return!(null==a.exec(e))},r=["hasOwnProperty","toString","valueOf","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"],c=["__proto__","constructor","prototype"],l={allowBooleanAttributes:!1,unpairedTags:[]};function p(e,t){t=Object.assign({},l,t);const n=[];let i=!1,a=!1;"\ufeff"===e[0]&&(e=e.substr(1));for(let o=0;o<e.length;o++)if("<"===e[o]&&"?"===e[o+1]){if(o+=2,o=d(e,o),o.err)return o}else{if("<"!==e[o]){if(u(e[o]))continue;return b("InvalidChar","char '"+e[o]+"' is not expected.",S(e,o))}{let s=o;if(o++,"!"===e[o]){o=m(e,o);continue}{let r=!1;"/"===e[o]&&(r=!0,o++);let c="";for(;o<e.length&&">"!==e[o]&&" "!==e[o]&&"\t"!==e[o]&&"\n"!==e[o]&&"\r"!==e[o];o++)c+=e[o];if(c=c.trim(),"/"===c[c.length-1]&&(c=c.substring(0,c.length-1),o--),!_(c)){let t;return t=0===c.trim().length?"Invalid space after '<'.":"Tag '"+c+"' is an invalid name.",b("InvalidTag",t,S(e,o))}const l=g(e,o);if(!1===l)return b("InvalidAttr","Attributes for '"+c+"' have open quote.",S(e,o));let p=l.value;if(o=l.index,"/"===p[p.length-1]){const n=o-p.length;p=p.substring(0,p.length-1);const a=v(p,t);if(!0!==a)return b(a.err.code,a.err.msg,S(e,n+a.err.line));i=!0}else if(r){if(!l.tagClosed)return b("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",S(e,o));if(p.trim().length>0)return b("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",S(e,s));if(0===n.length)return b("InvalidTag","Closing tag '"+c+"' has not been opened.",S(e,s));{const t=n.pop();if(c!==t.tagName){let n=S(e,t.tagStartPos);return b("InvalidTag","Expected closing tag '"+t.tagName+"' (opened in line "+n.line+", col "+n.col+") instead of closing tag '"+c+"'.",S(e,s))}0==n.length&&(a=!0)}}else{const r=v(p,t);if(!0!==r)return b(r.err.code,r.err.msg,S(e,o-p.length+r.err.line));if(!0===a)return b("InvalidXml","Multiple possible root nodes found.",S(e,o));-1!==t.unpairedTags.indexOf(c)||n.push({tagName:c,tagStartPos:s}),i=!0}for(o++;o<e.length;o++)if("<"===e[o]){if("!"===e[o+1]){o++,o=m(e,o);continue}if("?"!==e[o+1])break;if(o=d(e,++o),o.err)return o}else if("&"===e[o]){const t=y(e,o);if(-1==t)return b("InvalidChar","char '&' is not expected.",S(e,o));o=t}else if(!0===a&&!u(e[o]))return b("InvalidXml","Extra text at the end",S(e,o));"<"===e[o]&&o--}}}return i?1==n.length?b("InvalidTag","Unclosed tag '"+n[0].tagName+"'.",S(e,n[0].tagStartPos)):!(n.length>0)||b("InvalidXml","Invalid '"+JSON.stringify(n.map(e=>e.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):b("InvalidXml","Start tag expected.",1)}function u(e){return" "===e||"\t"===e||"\n"===e||"\r"===e}function d(e,t){const n=t;for(;t<e.length;t++)if("?"==e[t]||" "==e[t]){const i=e.substr(n,t-n);if(t>5&&"xml"===i)return b("InvalidXml","XML declaration allowed only at the start of the document.",S(e,t));if("?"==e[t]&&">"==e[t+1]){t++;break}continue}return t}function m(e,t){if(e.length>t+5&&"-"===e[t+1]&&"-"===e[t+2]){for(t+=3;t<e.length;t++)if("-"===e[t]&&"-"===e[t+1]&&">"===e[t+2]){t+=2;break}}else if(e.length>t+8&&"D"===e[t+1]&&"O"===e[t+2]&&"C"===e[t+3]&&"T"===e[t+4]&&"Y"===e[t+5]&&"P"===e[t+6]&&"E"===e[t+7]){let n=1;for(t+=8;t<e.length;t++)if("<"===e[t])n++;else if(">"===e[t]&&(n--,0===n))break}else if(e.length>t+9&&"["===e[t+1]&&"C"===e[t+2]&&"D"===e[t+3]&&"A"===e[t+4]&&"T"===e[t+5]&&"A"===e[t+6]&&"["===e[t+7])for(t+=8;t<e.length;t++)if("]"===e[t]&&"]"===e[t+1]&&">"===e[t+2]){t+=2;break}return t}const f='"',h="'";function g(e,t){let n="",i="",a=!1;for(;t<e.length;t++){if(e[t]===f||e[t]===h)""===i?i=e[t]:i!==e[t]||(i="");else if(">"===e[t]&&""===i){a=!0;break}n+=e[t]}return""===i&&{value:n,index:t,tagClosed:a}}const x=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function v(e,t){const n=o(e,x),i={};for(let e=0;e<n.length;e++){if(0===n[e][1].length)return b("InvalidAttr","Attribute '"+n[e][2]+"' has no space in starting.",E(n[e]));if(void 0!==n[e][3]&&void 0===n[e][4])return b("InvalidAttr","Attribute '"+n[e][2]+"' is without value.",E(n[e]));if(void 0===n[e][3]&&!t.allowBooleanAttributes)return b("InvalidAttr","boolean attribute '"+n[e][2]+"' is not allowed.",E(n[e]));const a=n[e][2];if(!w(a))return b("InvalidAttr","Attribute '"+a+"' is an invalid name.",E(n[e]));if(Object.prototype.hasOwnProperty.call(i,a))return b("InvalidAttr","Attribute '"+a+"' is repeated.",E(n[e]));i[a]=1}return!0}function y(e,t){if(";"===e[++t])return-1;if("#"===e[t])return function(e,t){let n=/\d/;for("x"===e[t]&&(t++,n=/[\da-fA-F]/);t<e.length;t++){if(";"===e[t])return t;if(!e[t].match(n))break}return-1}(e,++t);let n=0;for(;t<e.length;t++,n++)if(!(e[t].match(/\w/)&&n<20)){if(";"===e[t])break;return-1}return t}function b(e,t,n){return{err:{code:e,msg:t,line:n.line||n,col:n.col}}}function w(e){return s(e)}function _(e){return s(e)}function S(e,t){const n=e.substring(0,t).split(/\r?\n/);return{line:n.length,col:n[n.length-1].length+1}}function E(e){return e.startIndex+e[1].length}const C=e=>r.includes(e)?"__"+e:e,T={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,n){return e},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:C};function $(e,t){if("string"!=typeof e)return;const n=e.toLowerCase();if(r.some(e=>n===e.toLowerCase()))throw new Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);if(c.some(e=>n===e.toLowerCase()))throw new Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`)}function k(e){return"boolean"==typeof e?{enabled:e,maxEntitySize:1e4,maxExpansionDepth:10,maxTotalExpansions:1e3,maxExpandedLength:1e5,maxEntityCount:100,allowedTags:null,tagFilter:null}:"object"==typeof e&&null!==e?{enabled:!1!==e.enabled,maxEntitySize:Math.max(1,e.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,e.maxExpansionDepth??10),maxTotalExpansions:Math.max(1,e.maxTotalExpansions??1e3),maxExpandedLength:Math.max(1,e.maxExpandedLength??1e5),maxEntityCount:Math.max(1,e.maxEntityCount??100),allowedTags:e.allowedTags??null,tagFilter:e.tagFilter??null}:k(!0)}const O=function(e){const t=Object.assign({},T,e),n=[{value:t.attributeNamePrefix,name:"attributeNamePrefix"},{value:t.attributesGroupName,name:"attributesGroupName"},{value:t.textNodeName,name:"textNodeName"},{value:t.cdataPropName,name:"cdataPropName"},{value:t.commentPropName,name:"commentPropName"}];for(const{value:e,name:t}of n)e&&$(e,t);return null===t.onDangerousProperty&&(t.onDangerousProperty=C),t.processEntities=k(t.processEntities),t.stopNodes&&Array.isArray(t.stopNodes)&&(t.stopNodes=t.stopNodes.map(e=>"string"==typeof e&&e.startsWith("*.")?".."+e.substring(2):e)),t};let N;N="function"!=typeof Symbol?"@@xmlMetadata":Symbol("XML Node Metadata");class A{constructor(e){this.tagname=e,this.child=[],this[":@"]=Object.create(null)}add(e,t){"__proto__"===e&&(e="#__proto__"),this.child.push({[e]:t})}addChild(e,t){"__proto__"===e.tagname&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child}),void 0!==t&&(this.child[this.child.length-1][N]={startIndex:t})}static getMetaDataSymbol(){return N}}class P{constructor(e){this.suppressValidationErr=!e,this.options=e}readDocType(e,t){const n=Object.create(null);let i=0;if("O"!==e[t+3]||"C"!==e[t+4]||"T"!==e[t+5]||"Y"!==e[t+6]||"P"!==e[t+7]||"E"!==e[t+8])throw new Error("Invalid Tag instead of DOCTYPE");{t+=9;let a=1,o=!1,s=!1,r="";for(;t<e.length;t++)if("<"!==e[t]||s)if(">"===e[t]){if(s?"-"===e[t-1]&&"-"===e[t-2]&&(s=!1,a--):a--,0===a)break}else"["===e[t]?o=!0:r+=e[t];else{if(o&&F(e,"!ENTITY",t)){let a,o;if(t+=7,[a,o,t]=this.readEntityExp(e,t+1,this.suppressValidationErr),-1===o.indexOf("&")){if(!1!==this.options.enabled&&null!=this.options.maxEntityCount&&i>=this.options.maxEntityCount)throw new Error(`Entity count (${i+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);const e=a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");n[a]={regx:RegExp(`&${e};`,"g"),val:o},i++}}else if(o&&F(e,"!ELEMENT",t)){t+=8;const{index:n}=this.readElementExp(e,t+1);t=n}else if(o&&F(e,"!ATTLIST",t))t+=8;else if(o&&F(e,"!NOTATION",t)){t+=9;const{index:n}=this.readNotationExp(e,t+1,this.suppressValidationErr);t=n}else{if(!F(e,"!--",t))throw new Error("Invalid DOCTYPE");s=!0}a++,r=""}if(0!==a)throw new Error("Unclosed DOCTYPE")}return{entities:n,i:t}}readEntityExp(e,t){const n=t=j(e,t);for(;t<e.length&&!/\s/.test(e[t])&&'"'!==e[t]&&"'"!==e[t];)t++;let i=e.substring(n,t);if(R(i),t=j(e,t),!this.suppressValidationErr){if("SYSTEM"===e.substring(t,t+6).toUpperCase())throw new Error("External entities are not supported");if("%"===e[t])throw new Error("Parameter entities are not supported")}let a="";if([t,a]=this.readIdentifierVal(e,t,"entity"),!1!==this.options.enabled&&null!=this.options.maxEntitySize&&a.length>this.options.maxEntitySize)throw new Error(`Entity "${i}" size (${a.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return[i,a,--t]}readNotationExp(e,t){const n=t=j(e,t);for(;t<e.length&&!/\s/.test(e[t]);)t++;let i=e.substring(n,t);!this.suppressValidationErr&&R(i),t=j(e,t);const a=e.substring(t,t+6).toUpperCase();if(!this.suppressValidationErr&&"SYSTEM"!==a&&"PUBLIC"!==a)throw new Error(`Expected SYSTEM or PUBLIC, found "${a}"`);t+=a.length,t=j(e,t);let o=null,s=null;if("PUBLIC"===a)[t,o]=this.readIdentifierVal(e,t,"publicIdentifier"),'"'!==e[t=j(e,t)]&&"'"!==e[t]||([t,s]=this.readIdentifierVal(e,t,"systemIdentifier"));else if("SYSTEM"===a&&([t,s]=this.readIdentifierVal(e,t,"systemIdentifier"),!this.suppressValidationErr&&!s))throw new Error("Missing mandatory system identifier for SYSTEM notation");return{notationName:i,publicIdentifier:o,systemIdentifier:s,index:--t}}readIdentifierVal(e,t,n){let i="";const a=e[t];if('"'!==a&&"'"!==a)throw new Error(`Expected quoted string, found "${a}"`);const o=++t;for(;t<e.length&&e[t]!==a;)t++;if(i=e.substring(o,t),e[t]!==a)throw new Error(`Unterminated ${n} value`);return[++t,i]}readElementExp(e,t){const n=t=j(e,t);for(;t<e.length&&!/\s/.test(e[t]);)t++;let i=e.substring(n,t);if(!this.suppressValidationErr&&!s(i))throw new Error(`Invalid element name: "${i}"`);let a="";if("E"===e[t=j(e,t)]&&F(e,"MPTY",t))t+=4;else if("A"===e[t]&&F(e,"NY",t))t+=2;else if("("===e[t]){const n=++t;for(;t<e.length&&")"!==e[t];)t++;if(a=e.substring(n,t),")"!==e[t])throw new Error("Unterminated content model")}else if(!this.suppressValidationErr)throw new Error(`Invalid Element Expression, found "${e[t]}"`);return{elementName:i,contentModel:a.trim(),index:t}}readAttlistExp(e,t){let n=t=j(e,t);for(;t<e.length&&!/\s/.test(e[t]);)t++;let i=e.substring(n,t);for(R(i),n=t=j(e,t);t<e.length&&!/\s/.test(e[t]);)t++;let a=e.substring(n,t);if(!R(a))throw new Error(`Invalid attribute name: "${a}"`);t=j(e,t);let o="";if("NOTATION"===e.substring(t,t+8).toUpperCase()){if(o="NOTATION","("!==e[t=j(e,t+=8)])throw new Error(`Expected '(', found "${e[t]}"`);t++;let n=[];for(;t<e.length&&")"!==e[t];){const i=t;for(;t<e.length&&"|"!==e[t]&&")"!==e[t];)t++;let a=e.substring(i,t);if(a=a.trim(),!R(a))throw new Error(`Invalid notation name: "${a}"`);n.push(a),"|"===e[t]&&(t++,t=j(e,t))}if(")"!==e[t])throw new Error("Unterminated list of notations");t++,o+=" ("+n.join("|")+")"}else{const n=t;for(;t<e.length&&!/\s/.test(e[t]);)t++;o+=e.substring(n,t);const i=["CDATA","ID","IDREF","IDREFS","ENTITY","ENTITIES","NMTOKEN","NMTOKENS"];if(!this.suppressValidationErr&&!i.includes(o.toUpperCase()))throw new Error(`Invalid attribute type: "${o}"`)}t=j(e,t);let s="";return"#REQUIRED"===e.substring(t,t+8).toUpperCase()?(s="#REQUIRED",t+=8):"#IMPLIED"===e.substring(t,t+7).toUpperCase()?(s="#IMPLIED",t+=7):[t,s]=this.readIdentifierVal(e,t,"ATTLIST"),{elementName:i,attributeName:a,attributeType:o,defaultValue:s,index:t}}}const j=(e,t)=>{for(;t<e.length&&/\s/.test(e[t]);)t++;return t};function F(e,t,n){for(let i=0;i<t.length;i++)if(t[i]!==e[n+i+1])return!1;return!0}function R(e){if(s(e))return e;throw new Error(`Invalid entity name ${e}`)}const L=/^[-+]?0x[a-fA-F0-9]+$/,I=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,D={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0,infinity:"original"},M=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/,B=new Set(["push","pop","reset","updateCurrent","restore"]);class z{constructor(e={}){this.separator=e.separator||".",this.path=[],this.siblingStacks=[]}push(e,t=null,n=null){this.path.length>0&&(this.path[this.path.length-1].values=void 0);const i=this.path.length;this.siblingStacks[i]||(this.siblingStacks[i]=new Map);const a=this.siblingStacks[i],o=n?`${n}:${e}`:e,s=a.get(o)||0;let r=0;for(const e of a.values())r+=e;a.set(o,s+1);const c={tag:e,position:r,counter:s};null!=n&&(c.namespace=n),null!=t&&(c.values=t),this.path.push(c)}pop(){if(0===this.path.length)return;const e=this.path.pop();return this.siblingStacks.length>this.path.length+1&&(this.siblingStacks.length=this.path.length+1),e}updateCurrent(e){if(this.path.length>0){const t=this.path[this.path.length-1];null!=e&&(t.values=e)}}getCurrentTag(){return this.path.length>0?this.path[this.path.length-1].tag:void 0}getCurrentNamespace(){return this.path.length>0?this.path[this.path.length-1].namespace:void 0}getAttrValue(e){if(0===this.path.length)return;const t=this.path[this.path.length-1];return t.values?.[e]}hasAttr(e){if(0===this.path.length)return!1;const t=this.path[this.path.length-1];return void 0!==t.values&&e in t.values}getPosition(){return 0===this.path.length?-1:this.path[this.path.length-1].position??0}getCounter(){return 0===this.path.length?-1:this.path[this.path.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this.path.length}toString(e,t=!0){const n=e||this.separator;return this.path.map(e=>t&&e.namespace?`${e.namespace}:${e.tag}`:e.tag).join(n)}toArray(){return this.path.map(e=>e.tag)}reset(){this.path=[],this.siblingStacks=[]}matches(e){const t=e.segments;return 0!==t.length&&(e.hasDeepWildcard()?this._matchWithDeepWildcard(t):this._matchSimple(t))}_matchSimple(e){if(this.path.length!==e.length)return!1;for(let t=0;t<e.length;t++){const n=e[t],i=this.path[t],a=t===this.path.length-1;if(!this._matchSegment(n,i,a))return!1}return!0}_matchWithDeepWildcard(e){let t=this.path.length-1,n=e.length-1;for(;n>=0&&t>=0;){const i=e[n];if("deep-wildcard"===i.type){if(n--,n<0)return!0;const i=e[n];let a=!1;for(let e=t;e>=0;e--){const o=e===this.path.length-1;if(this._matchSegment(i,this.path[e],o)){t=e-1,n--,a=!0;break}}if(!a)return!1}else{const e=t===this.path.length-1;if(!this._matchSegment(i,this.path[t],e))return!1;t--,n--}}return n<0}_matchSegment(e,t,n){if("*"!==e.tag&&e.tag!==t.tag)return!1;if(void 0!==e.namespace&&"*"!==e.namespace&&e.namespace!==t.namespace)return!1;if(void 0!==e.attrName){if(!n)return!1;if(!t.values||!(e.attrName in t.values))return!1;if(void 0!==e.attrValue){const n=t.values[e.attrName];if(String(n)!==String(e.attrValue))return!1}}if(void 0!==e.position){if(!n)return!1;const i=t.counter??0;if("first"===e.position&&0!==i)return!1;if("odd"===e.position&&i%2!=1)return!1;if("even"===e.position&&i%2!=0)return!1;if("nth"===e.position&&i!==e.positionValue)return!1}return!0}snapshot(){return{path:this.path.map(e=>({...e})),siblingStacks:this.siblingStacks.map(e=>new Map(e))}}restore(e){this.path=e.path.map(e=>({...e})),this.siblingStacks=e.siblingStacks.map(e=>new Map(e))}readOnly(){return new Proxy(this,{get(e,t,n){if(B.has(t))return()=>{throw new TypeError(`Cannot call '${t}' on a read-only Matcher. Obtain a writable instance to mutate state.`)};const i=Reflect.get(e,t,n);return"path"===t||"siblingStacks"===t?Object.freeze(Array.isArray(i)?i.map(e=>e instanceof Map?Object.freeze(new Map(e)):Object.freeze({...e})):i):"function"==typeof i?i.bind(e):i},set(e,t){throw new TypeError(`Cannot set property '${String(t)}' on a read-only Matcher.`)},deleteProperty(e,t){throw new TypeError(`Cannot delete property '${String(t)}' from a read-only Matcher.`)}})}}class U{constructor(e,t={}){this.pattern=e,this.separator=t.separator||".",this.segments=this._parse(e),this._hasDeepWildcard=this.segments.some(e=>"deep-wildcard"===e.type),this._hasAttributeCondition=this.segments.some(e=>void 0!==e.attrName),this._hasPositionSelector=this.segments.some(e=>void 0!==e.position)}_parse(e){const t=[];let n=0,i="";for(;n<e.length;)e[n]===this.separator?n+1<e.length&&e[n+1]===this.separator?(i.trim()&&(t.push(this._parseSegment(i.trim())),i=""),t.push({type:"deep-wildcard"}),n+=2):(i.trim()&&t.push(this._parseSegment(i.trim())),i="",n++):(i+=e[n],n++);return i.trim()&&t.push(this._parseSegment(i.trim())),t}_parseSegment(e){const t={type:"tag"};let n=null,i=e;const a=e.match(/^([^\[]+)(\[[^\]]*\])(.*)$/);if(a&&(i=a[1]+a[3],a[2])){const e=a[2].slice(1,-1);e&&(n=e)}let o,s,r=i;if(i.includes("::")){const t=i.indexOf("::");if(o=i.substring(0,t).trim(),r=i.substring(t+2).trim(),!o)throw new Error(`Invalid namespace in pattern: ${e}`)}let c=null;if(r.includes(":")){const e=r.lastIndexOf(":"),t=r.substring(0,e).trim(),n=r.substring(e+1).trim();["first","last","odd","even"].includes(n)||/^nth\(\d+\)$/.test(n)?(s=t,c=n):s=r}else s=r;if(!s)throw new Error(`Invalid segment pattern: ${e}`);if(t.tag=s,o&&(t.namespace=o),n)if(n.includes("=")){const e=n.indexOf("=");t.attrName=n.substring(0,e).trim(),t.attrValue=n.substring(e+1).trim()}else t.attrName=n.trim();if(c){const e=c.match(/^nth\((\d+)\)$/);e?(t.position="nth",t.positionValue=parseInt(e[1],10)):t.position=c}return t}get length(){return this.segments.length}hasDeepWildcard(){return this._hasDeepWildcard}hasAttributeCondition(){return this._hasAttributeCondition}hasPositionSelector(){return this._hasPositionSelector}toString(){return this.pattern}}function V(e,t){if(!e)return{};const n=t.attributesGroupName?e[t.attributesGroupName]:e;if(!n)return{};const i={};for(const e in n)e.startsWith(t.attributeNamePrefix)?i[e.substring(t.attributeNamePrefix.length)]=n[e]:i[e]=n[e];return i}function q(e){if(!e||"string"!=typeof e)return;const t=e.indexOf(":");if(-1!==t&&t>0){const n=e.substring(0,t);if("xmlns"!==n)return n}}class H{constructor(e){var t;if(this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(e,t)=>se(t,10,"&#")},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(e,t)=>se(t,16,"&#x")}},this.addExternalEntities=W,this.parseXml=X,this.parseTextData=G,this.resolveNameSpace=J,this.buildAttributesMap=K,this.isItStopNode=te,this.replaceEntitiesValue=Q,this.readStopNodeData=ae,this.saveTextToParentTag=ee,this.addChild=Z,this.ignoreAttributesFn="function"==typeof(t=this.options.ignoreAttributes)?t:Array.isArray(t)?e=>{for(const n of t){if("string"==typeof n&&e===n)return!0;if(n instanceof RegExp&&n.test(e))return!0}}:()=>!1,this.entityExpansionCount=0,this.currentExpandedLength=0,this.matcher=new z,this.readonlyMatcher=this.matcher.readOnly(),this.isCurrentNodeStopNode=!1,this.options.stopNodes&&this.options.stopNodes.length>0){this.stopNodeExpressions=[];for(let e=0;e<this.options.stopNodes.length;e++){const t=this.options.stopNodes[e];"string"==typeof t?this.stopNodeExpressions.push(new U(t)):t instanceof U&&this.stopNodeExpressions.push(t)}}}}function W(e){const t=Object.keys(e);for(let n=0;n<t.length;n++){const i=t[n],a=i.replace(/[.\-+*:]/g,"\\.");this.lastEntities[i]={regex:new RegExp("&"+a+";","g"),val:e[i]}}}function G(e,t,n,i,a,o,s){if(void 0!==e&&(this.options.trimValues&&!i&&(e=e.trim()),e.length>0)){s||(e=this.replaceEntitiesValue(e,t,n));const i=this.options.jPath?n.toString():n,r=this.options.tagValueProcessor(t,e,i,a,o);return null==r?e:typeof r!=typeof e||r!==e?r:this.options.trimValues||e.trim()===e?oe(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function J(e){if(this.options.removeNSPrefix){const t=e.split(":"),n="/"===e.charAt(0)?"/":"";if("xmlns"===t[0])return"";2===t.length&&(e=n+t[1])}return e}const Y=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function K(e,t,n){if(!0!==this.options.ignoreAttributes&&"string"==typeof e){const i=o(e,Y),a=i.length,s={},r={};for(let e=0;e<a;e++){const t=this.resolveNameSpace(i[e][1]),a=i[e][4];if(t.length&&void 0!==a){let e=a;this.options.trimValues&&(e=e.trim()),e=this.replaceEntitiesValue(e,n,this.readonlyMatcher),r[t]=e}}Object.keys(r).length>0&&"object"==typeof t&&t.updateCurrent&&t.updateCurrent(r);for(let e=0;e<a;e++){const a=this.resolveNameSpace(i[e][1]),o=this.options.jPath?t.toString():this.readonlyMatcher;if(this.ignoreAttributesFn(a,o))continue;let r=i[e][4],c=this.options.attributeNamePrefix+a;if(a.length)if(this.options.transformAttributeName&&(c=this.options.transformAttributeName(c)),c=ce(c,this.options),void 0!==r){this.options.trimValues&&(r=r.trim()),r=this.replaceEntitiesValue(r,n,this.readonlyMatcher);const e=this.options.jPath?t.toString():this.readonlyMatcher,i=this.options.attributeValueProcessor(a,r,e);s[c]=null==i?r:typeof i!=typeof r||i!==r?i:oe(r,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(s[c]=!0)}if(!Object.keys(s).length)return;if(this.options.attributesGroupName){const e={};return e[this.options.attributesGroupName]=s,e}return s}}const X=function(e){e=e.replace(/\r\n?/g,"\n");const t=new A("!xml");let n=t,i="";this.matcher.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;const a=new P(this.options.processEntities);for(let o=0;o<e.length;o++)if("<"===e[o])if("/"===e[o+1]){const t=ne(e,">",o,"Closing Tag is not closed.");let a=e.substring(o+2,t).trim();if(this.options.removeNSPrefix){const e=a.indexOf(":");-1!==e&&(a=a.substr(e+1))}a=re(this.options.transformTagName,a,"",this.options).tagName,n&&(i=this.saveTextToParentTag(i,n,this.readonlyMatcher));const s=this.matcher.getCurrentTag();if(a&&-1!==this.options.unpairedTags.indexOf(a))throw new Error(`Unpaired tag can not be used as closing tag: </${a}>`);s&&-1!==this.options.unpairedTags.indexOf(s)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,n=this.tagsNodeStack.pop(),i="",o=t}else if("?"===e[o+1]){let t=ie(e,o,!1,"?>");if(!t)throw new Error("Pi Tag is not closed.");if(i=this.saveTextToParentTag(i,n,this.readonlyMatcher),this.options.ignoreDeclaration&&"?xml"===t.tagName||this.options.ignorePiTags);else{const e=new A(t.tagName);e.add(this.options.textNodeName,""),t.tagName!==t.tagExp&&t.attrExpPresent&&(e[":@"]=this.buildAttributesMap(t.tagExp,this.matcher,t.tagName)),this.addChild(n,e,this.readonlyMatcher,o)}o=t.closeIndex+1}else if("!--"===e.substr(o+1,3)){const t=ne(e,"--\x3e",o+4,"Comment is not closed.");if(this.options.commentPropName){const a=e.substring(o+4,t-2);i=this.saveTextToParentTag(i,n,this.readonlyMatcher),n.add(this.options.commentPropName,[{[this.options.textNodeName]:a}])}o=t}else if("!D"===e.substr(o+1,2)){const t=a.readDocType(e,o);this.docTypeEntities=t.entities,o=t.i}else if("!["===e.substr(o+1,2)){const t=ne(e,"]]>",o,"CDATA is not closed.")-2,a=e.substring(o+9,t);i=this.saveTextToParentTag(i,n,this.readonlyMatcher);let s=this.parseTextData(a,n.tagname,this.readonlyMatcher,!0,!1,!0,!0);null==s&&(s=""),this.options.cdataPropName?n.add(this.options.cdataPropName,[{[this.options.textNodeName]:a}]):n.add(this.options.textNodeName,s),o=t+2}else{let a=ie(e,o,this.options.removeNSPrefix);if(!a){const t=e.substring(Math.max(0,o-50),Math.min(e.length,o+50));throw new Error(`readTagExp returned undefined at position ${o}. Context: "${t}"`)}let s=a.tagName;const r=a.rawTagName;let c=a.tagExp,l=a.attrExpPresent,p=a.closeIndex;if(({tagName:s,tagExp:c}=re(this.options.transformTagName,s,c,this.options)),this.options.strictReservedNames&&(s===this.options.commentPropName||s===this.options.cdataPropName||s===this.options.textNodeName||s===this.options.attributesGroupName))throw new Error(`Invalid tag name: ${s}`);n&&i&&"!xml"!==n.tagname&&(i=this.saveTextToParentTag(i,n,this.readonlyMatcher,!1));const u=n;u&&-1!==this.options.unpairedTags.indexOf(u.tagname)&&(n=this.tagsNodeStack.pop(),this.matcher.pop());let d=!1;c.length>0&&c.lastIndexOf("/")===c.length-1&&(d=!0,"/"===s[s.length-1]?(s=s.substr(0,s.length-1),c=s):c=c.substr(0,c.length-1),l=s!==c);let m,f=null,h={};m=q(r),s!==t.tagname&&this.matcher.push(s,{},m),s!==c&&l&&(f=this.buildAttributesMap(c,this.matcher,s),f&&(h=V(f,this.options))),s!==t.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode(this.stopNodeExpressions,this.matcher));const g=o;if(this.isCurrentNodeStopNode){let t="";if(d)o=a.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(s))o=a.closeIndex;else{const n=this.readStopNodeData(e,r,p+1);if(!n)throw new Error(`Unexpected end of ${r}`);o=n.i,t=n.tagContent}const i=new A(s);f&&(i[":@"]=f),i.add(this.options.textNodeName,t),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(n,i,this.readonlyMatcher,g)}else{if(d){({tagName:s,tagExp:c}=re(this.options.transformTagName,s,c,this.options));const e=new A(s);f&&(e[":@"]=f),this.addChild(n,e,this.readonlyMatcher,g),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else{if(-1!==this.options.unpairedTags.indexOf(s)){const e=new A(s);f&&(e[":@"]=f),this.addChild(n,e,this.readonlyMatcher,g),this.matcher.pop(),this.isCurrentNodeStopNode=!1,o=a.closeIndex;continue}{const e=new A(s);if(this.tagsNodeStack.length>this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(n),f&&(e[":@"]=f),this.addChild(n,e,this.readonlyMatcher,g),n=e}}i="",o=p}}else i+=e[o];return t.child};function Z(e,t,n,i){this.options.captureMetaData||(i=void 0);const a=this.options.jPath?n.toString():n,o=this.options.updateTag(t.tagname,a,t[":@"]);!1===o||("string"==typeof o?(t.tagname=o,e.addChild(t,i)):e.addChild(t,i))}function Q(e,t,n){const i=this.options.processEntities;if(!i||!i.enabled)return e;if(i.allowedTags){const a=this.options.jPath?n.toString():n;if(!(Array.isArray(i.allowedTags)?i.allowedTags.includes(t):i.allowedTags(t,a)))return e}if(i.tagFilter){const a=this.options.jPath?n.toString():n;if(!i.tagFilter(t,a))return e}for(const t of Object.keys(this.docTypeEntities)){const n=this.docTypeEntities[t],a=e.match(n.regx);if(a){if(this.entityExpansionCount+=a.length,i.maxTotalExpansions&&this.entityExpansionCount>i.maxTotalExpansions)throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${i.maxTotalExpansions}`);const t=e.length;if(e=e.replace(n.regx,n.val),i.maxExpandedLength&&(this.currentExpandedLength+=e.length-t,this.currentExpandedLength>i.maxExpandedLength))throw new Error(`Total expanded content size exceeded: ${this.currentExpandedLength} > ${i.maxExpandedLength}`)}}for(const t of Object.keys(this.lastEntities)){const n=this.lastEntities[t],a=e.match(n.regex);if(a&&(this.entityExpansionCount+=a.length,i.maxTotalExpansions&&this.entityExpansionCount>i.maxTotalExpansions))throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${i.maxTotalExpansions}`);e=e.replace(n.regex,n.val)}if(-1===e.indexOf("&"))return e;if(this.options.htmlEntities)for(const t of Object.keys(this.htmlEntities)){const n=this.htmlEntities[t],a=e.match(n.regex);if(a&&(this.entityExpansionCount+=a.length,i.maxTotalExpansions&&this.entityExpansionCount>i.maxTotalExpansions))throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${i.maxTotalExpansions}`);e=e.replace(n.regex,n.val)}return e.replace(this.ampEntity.regex,this.ampEntity.val)}function ee(e,t,n,i){return e&&(void 0===i&&(i=0===t.child.length),void 0!==(e=this.parseTextData(e,t.tagname,n,!1,!!t[":@"]&&0!==Object.keys(t[":@"]).length,i))&&""!==e&&t.add(this.options.textNodeName,e),e=""),e}function te(e,t){if(!e||0===e.length)return!1;for(let n=0;n<e.length;n++)if(t.matches(e[n]))return!0;return!1}function ne(e,t,n,i){const a=e.indexOf(t,n);if(-1===a)throw new Error(i);return a+t.length-1}function ie(e,t,n,i=">"){const a=function(e,t,n=">"){let i,a="";for(let o=t;o<e.length;o++){let t=e[o];if(i)t===i&&(i="");else if('"'===t||"'"===t)i=t;else if(t===n[0]){if(!n[1])return{data:a,index:o};if(e[o+1]===n[1])return{data:a,index:o}}else"\t"===t&&(t=" ");a+=t}}(e,t+1,i);if(!a)return;let o=a.data;const s=a.index,r=o.search(/\s/);let c=o,l=!0;-1!==r&&(c=o.substring(0,r),o=o.substring(r+1).trimStart());const p=c;if(n){const e=c.indexOf(":");-1!==e&&(c=c.substr(e+1),l=c!==a.data.substr(e+1))}return{tagName:c,tagExp:o,closeIndex:s,attrExpPresent:l,rawTagName:p}}function ae(e,t,n){const i=n;let a=1;for(;n<e.length;n++)if("<"===e[n])if("/"===e[n+1]){const o=ne(e,">",n,`${t} is not closed`);if(e.substring(n+2,o).trim()===t&&(a--,0===a))return{tagContent:e.substring(i,n),i:o};n=o}else if("?"===e[n+1])n=ne(e,"?>",n+1,"StopNode is not closed.");else if("!--"===e.substr(n+1,3))n=ne(e,"--\x3e",n+3,"StopNode is not closed.");else if("!["===e.substr(n+1,2))n=ne(e,"]]>",n,"StopNode is not closed.")-2;else{const i=ie(e,n,">");i&&((i&&i.tagName)===t&&"/"!==i.tagExp[i.tagExp.length-1]&&a++,n=i.closeIndex)}}function oe(e,t,n){if(t&&"string"==typeof e){const t=e.trim();return"true"===t||"false"!==t&&function(e,t={}){if(t=Object.assign({},D,t),!e||"string"!=typeof e)return e;let n=e.trim();if(void 0!==t.skipLike&&t.skipLike.test(n))return e;if("0"===e)return 0;if(t.hex&&L.test(n))return function(e){if(parseInt)return parseInt(e,16);if(Number.parseInt)return Number.parseInt(e,16);if(window&&window.parseInt)return window.parseInt(e,16);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}(n);if(isFinite(n)){if(n.includes("e")||n.includes("E"))return function(e,t,n){if(!n.eNotation)return e;const i=t.match(M);if(i){let a=i[1]||"";const o=-1===i[3].indexOf("e")?"E":"e",s=i[2],r=a?e[s.length+1]===o:e[s.length]===o;return s.length>1&&r?e:(1!==s.length||!i[3].startsWith(`.${o}`)&&i[3][0]!==o)&&s.length>0?n.leadingZeros&&!r?(t=(i[1]||"")+i[3],Number(t)):e:Number(t)}return e}(e,n,t);{const a=I.exec(n);if(a){const o=a[1]||"",s=a[2];let r=(i=a[3])&&-1!==i.indexOf(".")?("."===(i=i.replace(/0+$/,""))?i="0":"."===i[0]?i="0"+i:"."===i[i.length-1]&&(i=i.substring(0,i.length-1)),i):i;const c=o?"."===e[s.length+1]:"."===e[s.length];if(!t.leadingZeros&&(s.length>1||1===s.length&&!c))return e;{const i=Number(n),a=String(i);if(0===i)return i;if(-1!==a.search(/[eE]/))return t.eNotation?i:e;if(-1!==n.indexOf("."))return"0"===a||a===r||a===`${o}${r}`?i:e;let c=s?r:n;return s?c===a||o+c===a?i:e:c===a||c===o+a?i:e}}return e}}var i;return function(e,t,n){const i=t===1/0;switch(n.infinity.toLowerCase()){case"null":return null;case"infinity":return t;case"string":return i?"Infinity":"-Infinity";default:return e}}(e,Number(n),t)}(e,n)}return void 0!==e?e:""}function se(e,t,n){const i=Number.parseInt(e,t);return i>=0&&i<=1114111?String.fromCodePoint(i):n+e+";"}function re(e,t,n,i){if(e){const i=e(t);n===t&&(n=i),t=i}return{tagName:t=ce(t,i),tagExp:n}}function ce(e,t){if(c.includes(e))throw new Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);return r.includes(e)?t.onDangerousProperty(e):e}const le=A.getMetaDataSymbol();function pe(e,t){if(!e||"object"!=typeof e)return{};if(!t)return e;const n={};for(const i in e)i.startsWith(t)?n[i.substring(t.length)]=e[i]:n[i]=e[i];return n}function ue(e,t,n,i){return de(e,t,n,i)}function de(e,t,n,i){let a;const o={};for(let s=0;s<e.length;s++){const r=e[s],c=me(r);if(void 0!==c&&c!==t.textNodeName){const e=pe(r[":@"]||{},t.attributeNamePrefix);n.push(c,e)}if(c===t.textNodeName)void 0===a?a=r[c]:a+=""+r[c];else{if(void 0===c)continue;if(r[c]){let e=de(r[c],t,n,i);const a=he(e,t);if(r[":@"]?fe(e,r[":@"],i,t):1!==Object.keys(e).length||void 0===e[t.textNodeName]||t.alwaysCreateTextNode?0===Object.keys(e).length&&(t.alwaysCreateTextNode?e[t.textNodeName]="":e=""):e=e[t.textNodeName],void 0!==r[le]&&"object"==typeof e&&null!==e&&(e[le]=r[le]),void 0!==o[c]&&Object.prototype.hasOwnProperty.call(o,c))Array.isArray(o[c])||(o[c]=[o[c]]),o[c].push(e);else{const n=t.jPath?i.toString():i;t.isArray(c,n,a)?o[c]=[e]:o[c]=e}void 0!==c&&c!==t.textNodeName&&n.pop()}}}return"string"==typeof a?a.length>0&&(o[t.textNodeName]=a):void 0!==a&&(o[t.textNodeName]=a),o}function me(e){const t=Object.keys(e);for(let e=0;e<t.length;e++){const n=t[e];if(":@"!==n)return n}}function fe(e,t,n,i){if(t){const a=Object.keys(t),o=a.length;for(let s=0;s<o;s++){const o=a[s],r=o.startsWith(i.attributeNamePrefix)?o.substring(i.attributeNamePrefix.length):o,c=i.jPath?n.toString()+"."+r:n;i.isArray(o,c,!0,!0)?e[o]=[t[o]]:e[o]=t[o]}}}function he(e,t){const{textNodeName:n}=t,i=Object.keys(e).length;return 0===i||!(1!==i||!e[n]&&"boolean"!=typeof e[n]&&0!==e[n])}class ge{constructor(e){this.externalEntities={},this.options=O(e)}parse(e,t){if("string"!=typeof e&&e.toString)e=e.toString();else if("string"!=typeof e)throw new Error("XML data is accepted in String or Bytes[] form.");if(t){!0===t&&(t={});const n=p(e,t);if(!0!==n)throw Error(`${n.err.msg}:${n.err.line}:${n.err.col}`)}const n=new H(this.options);n.addExternalEntities(this.externalEntities);const i=n.parseXml(e);return this.options.preserveOrder||void 0===i?i:ue(i,this.options,n.matcher,n.readonlyMatcher)}addEntity(e,t){if(-1!==t.indexOf("&"))throw new Error("Entity value can't have '&'");if(-1!==e.indexOf("&")||-1!==e.indexOf(";"))throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if("&"===t)throw new Error("An entity with value '&' is not permitted");this.externalEntities[e]=t}static getMetaDataSymbol(){return A.getMetaDataSymbol()}}function xe(e,t){let n="";t.format&&t.indentBy.length>0&&(n="\n");const i=[];if(t.stopNodes&&Array.isArray(t.stopNodes))for(let e=0;e<t.stopNodes.length;e++){const n=t.stopNodes[e];"string"==typeof n?i.push(new U(n)):n instanceof U&&i.push(n)}return ve(e,t,n,new z,i)}function ve(e,t,n,i,a){let o="",s=!1;if(t.maxNestedTags&&i.getDepth()>t.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(e)){if(null!=e){let n=e.toString();return n=Ce(n,t),n}return""}for(let r=0;r<e.length;r++){const c=e[r],l=_e(c);if(void 0===l)continue;const p=ye(c[":@"],t);i.push(l,p);const u=Ee(i,a);if(l===t.textNodeName){let e=c[l];u||(e=t.tagValueProcessor(l,e),e=Ce(e,t)),s&&(o+=n),o+=e,s=!1,i.pop();continue}if(l===t.cdataPropName){s&&(o+=n),o+=`<![CDATA[${c[l][0][t.textNodeName]}]]>`,s=!1,i.pop();continue}if(l===t.commentPropName){o+=n+`\x3c!--${c[l][0][t.textNodeName]}--\x3e`,s=!0,i.pop();continue}if("?"===l[0]){const e=Se(c[":@"],t,u),a="?xml"===l?"":n;let r=c[l][0][t.textNodeName];r=0!==r.length?" "+r:"",o+=a+`<${l}${r}${e}?>`,s=!0,i.pop();continue}let d=n;""!==d&&(d+=t.indentBy);const m=n+`<${l}${Se(c[":@"],t,u)}`;let f;f=u?be(c[l],t):ve(c[l],t,d,i,a),-1!==t.unpairedTags.indexOf(l)?t.suppressUnpairedNode?o+=m+">":o+=m+"/>":f&&0!==f.length||!t.suppressEmptyNode?f&&f.endsWith(">")?o+=m+`>${f}${n}</${l}>`:(o+=m+">",f&&""!==n&&(f.includes("/>")||f.includes("</"))?o+=n+t.indentBy+f+n:o+=f,o+=`</${l}>`):o+=m+"/>",s=!0,i.pop()}return o}function ye(e,t){if(!e||t.ignoreAttributes)return null;const n={};let i=!1;for(let a in e)Object.prototype.hasOwnProperty.call(e,a)&&(n[a.startsWith(t.attributeNamePrefix)?a.substr(t.attributeNamePrefix.length):a]=e[a],i=!0);return i?n:null}function be(e,t){if(!Array.isArray(e))return null!=e?e.toString():"";let n="";for(let i=0;i<e.length;i++){const a=e[i],o=_e(a);if(o===t.textNodeName)n+=a[o];else if(o===t.cdataPropName)n+=a[o][0][t.textNodeName];else if(o===t.commentPropName)n+=a[o][0][t.textNodeName];else{if(o&&"?"===o[0])continue;if(o){const e=we(a[":@"],t),i=be(a[o],t);i&&0!==i.length?n+=`<${o}${e}>${i}</${o}>`:n+=`<${o}${e}/>`}}}return n}function we(e,t){let n="";if(e&&!t.ignoreAttributes)for(let i in e){if(!Object.prototype.hasOwnProperty.call(e,i))continue;let a=e[i];!0===a&&t.suppressBooleanAttributes?n+=` ${i.substr(t.attributeNamePrefix.length)}`:n+=` ${i.substr(t.attributeNamePrefix.length)}="${a}"`}return n}function _e(e){const t=Object.keys(e);for(let n=0;n<t.length;n++){const i=t[n];if(Object.prototype.hasOwnProperty.call(e,i)&&":@"!==i)return i}}function Se(e,t,n){let i="";if(e&&!t.ignoreAttributes)for(let a in e){if(!Object.prototype.hasOwnProperty.call(e,a))continue;let o;n?o=e[a]:(o=t.attributeValueProcessor(a,e[a]),o=Ce(o,t)),!0===o&&t.suppressBooleanAttributes?i+=` ${a.substr(t.attributeNamePrefix.length)}`:i+=` ${a.substr(t.attributeNamePrefix.length)}="${o}"`}return i}function Ee(e,t){if(!t||0===t.length)return!1;for(let n=0;n<t.length;n++)if(e.matches(t[n]))return!0;return!1}function Ce(e,t){if(e&&e.length>0&&t.processEntities)for(let n=0;n<t.entities.length;n++){const i=t.entities[n];e=e.replace(i.regex,i.val)}return e}const Te={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0};function $e(e){if(this.options=Object.assign({},Te,e),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>"string"==typeof e&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e<this.options.stopNodes.length;e++){const t=this.options.stopNodes[e];"string"==typeof t?this.stopNodeExpressions.push(new U(t)):t instanceof U&&this.stopNodeExpressions.push(t)}var t;!0===this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn="function"==typeof(t=this.options.ignoreAttributes)?t:Array.isArray(t)?e=>{for(const n of t){if("string"==typeof n&&e===n)return!0;if(n instanceof RegExp&&n.test(e))return!0}}:()=>!1,this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=Ne),this.processTextOrObjNode=ke,this.options.format?(this.indentate=Oe,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function ke(e,t,n,i){const a=this.extractAttributes(e);if(i.push(t,a),this.checkStopNode(i)){const a=this.buildRawContent(e),o=this.buildAttributesForStopNode(e);return i.pop(),this.buildObjectNode(a,t,o,n)}const o=this.j2x(e,n+1,i);return i.pop(),void 0!==e[this.options.textNodeName]&&1===Object.keys(e).length?this.buildTextValNode(e[this.options.textNodeName],t,o.attrStr,n,i):this.buildObjectNode(o.val,t,o.attrStr,n)}function Oe(e){return this.options.indentBy.repeat(e)}function Ne(e){return!(!e.startsWith(this.options.attributeNamePrefix)||e===this.options.textNodeName)&&e.substr(this.attrPrefixLen)}$e.prototype.build=function(e){if(this.options.preserveOrder)return xe(e,this.options);{Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e});const t=new z;return this.j2x(e,0,t).val}},$e.prototype.j2x=function(e,t,n){let i="",a="";if(this.options.maxNestedTags&&n.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");const o=this.options.jPath?n.toString():n,s=this.checkStopNode(n);for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r))if(void 0===e[r])this.isAttribute(r)&&(a+="");else if(null===e[r])this.isAttribute(r)||r===this.options.cdataPropName?a+="":"?"===r[0]?a+=this.indentate(t)+"<"+r+"?"+this.tagEndChar:a+=this.indentate(t)+"<"+r+"/"+this.tagEndChar;else if(e[r]instanceof Date)a+=this.buildTextValNode(e[r],r,"",t,n);else if("object"!=typeof e[r]){const c=this.isAttribute(r);if(c&&!this.ignoreAttributesFn(c,o))i+=this.buildAttrPairStr(c,""+e[r],s);else if(!c)if(r===this.options.textNodeName){let t=this.options.tagValueProcessor(r,""+e[r]);a+=this.replaceEntitiesValue(t)}else{n.push(r);const i=this.checkStopNode(n);if(n.pop(),i){const n=""+e[r];a+=""===n?this.indentate(t)+"<"+r+this.closeTag(r)+this.tagEndChar:this.indentate(t)+"<"+r+">"+n+"</"+r+this.tagEndChar}else a+=this.buildTextValNode(e[r],r,"",t,n)}}else if(Array.isArray(e[r])){const i=e[r].length;let o="",s="";for(let c=0;c<i;c++){const i=e[r][c];if(void 0===i);else if(null===i)"?"===r[0]?a+=this.indentate(t)+"<"+r+"?"+this.tagEndChar:a+=this.indentate(t)+"<"+r+"/"+this.tagEndChar;else if("object"==typeof i)if(this.options.oneListGroup){n.push(r);const e=this.j2x(i,t+1,n);n.pop(),o+=e.val,this.options.attributesGroupName&&i.hasOwnProperty(this.options.attributesGroupName)&&(s+=e.attrStr)}else o+=this.processTextOrObjNode(i,r,t,n);else if(this.options.oneListGroup){let e=this.options.tagValueProcessor(r,i);e=this.replaceEntitiesValue(e),o+=e}else{n.push(r);const e=this.checkStopNode(n);if(n.pop(),e){const e=""+i;o+=""===e?this.indentate(t)+"<"+r+this.closeTag(r)+this.tagEndChar:this.indentate(t)+"<"+r+">"+e+"</"+r+this.tagEndChar}else o+=this.buildTextValNode(i,r,"",t,n)}}this.options.oneListGroup&&(o=this.buildObjectNode(o,r,s,t)),a+=o}else if(this.options.attributesGroupName&&r===this.options.attributesGroupName){const t=Object.keys(e[r]),n=t.length;for(let a=0;a<n;a++)i+=this.buildAttrPairStr(t[a],""+e[r][t[a]],s)}else a+=this.processTextOrObjNode(e[r],r,t,n);return{attrStr:i,val:a}},$e.prototype.buildAttrPairStr=function(e,t,n){return n||(t=this.options.attributeValueProcessor(e,""+t),t=this.replaceEntitiesValue(t)),this.options.suppressBooleanAttributes&&"true"===t?" "+e:" "+e+'="'+t+'"'},$e.prototype.extractAttributes=function(e){if(!e||"object"!=typeof e)return null;const t={};let n=!1;if(this.options.attributesGroupName&&e[this.options.attributesGroupName]){const i=e[this.options.attributesGroupName];for(let e in i)Object.prototype.hasOwnProperty.call(i,e)&&(t[e.startsWith(this.options.attributeNamePrefix)?e.substring(this.options.attributeNamePrefix.length):e]=i[e],n=!0)}else for(let i in e){if(!Object.prototype.hasOwnProperty.call(e,i))continue;const a=this.isAttribute(i);a&&(t[a]=e[i],n=!0)}return n?t:null},$e.prototype.buildRawContent=function(e){if("string"==typeof e)return e;if("object"!=typeof e||null===e)return String(e);if(void 0!==e[this.options.textNodeName])return e[this.options.textNodeName];let t="";for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;if(this.isAttribute(n))continue;if(this.options.attributesGroupName&&n===this.options.attributesGroupName)continue;const i=e[n];if(n===this.options.textNodeName)t+=i;else if(Array.isArray(i)){for(let e of i)if("string"==typeof e||"number"==typeof e)t+=`<${n}>${e}</${n}>`;else if("object"==typeof e&&null!==e){const i=this.buildRawContent(e),a=this.buildAttributesForStopNode(e);t+=""===i?`<${n}${a}/>`:`<${n}${a}>${i}</${n}>`}}else if("object"==typeof i&&null!==i){const e=this.buildRawContent(i),a=this.buildAttributesForStopNode(i);t+=""===e?`<${n}${a}/>`:`<${n}${a}>${e}</${n}>`}else t+=`<${n}>${i}</${n}>`}return t},$e.prototype.buildAttributesForStopNode=function(e){if(!e||"object"!=typeof e)return"";let t="";if(this.options.attributesGroupName&&e[this.options.attributesGroupName]){const n=e[this.options.attributesGroupName];for(let e in n){if(!Object.prototype.hasOwnProperty.call(n,e))continue;const i=e.startsWith(this.options.attributeNamePrefix)?e.substring(this.options.attributeNamePrefix.length):e,a=n[e];!0===a&&this.options.suppressBooleanAttributes?t+=" "+i:t+=" "+i+'="'+a+'"'}}else for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;const i=this.isAttribute(n);if(i){const a=e[n];!0===a&&this.options.suppressBooleanAttributes?t+=" "+i:t+=" "+i+'="'+a+'"'}}return t},$e.prototype.buildObjectNode=function(e,t,n,i){if(""===e)return"?"===t[0]?this.indentate(i)+"<"+t+n+"?"+this.tagEndChar:this.indentate(i)+"<"+t+n+this.closeTag(t)+this.tagEndChar;{let a="</"+t+this.tagEndChar,o="";return"?"===t[0]&&(o="?",a=""),!n&&""!==n||-1!==e.indexOf("<")?!1!==this.options.commentPropName&&t===this.options.commentPropName&&0===o.length?this.indentate(i)+`\x3c!--${e}--\x3e`+this.newLine:this.indentate(i)+"<"+t+n+o+this.tagEndChar+e+this.indentate(i)+a:this.indentate(i)+"<"+t+n+o+">"+e+a}},$e.prototype.closeTag=function(e){let t="";return-1!==this.options.unpairedTags.indexOf(e)?this.options.suppressUnpairedNode||(t="/"):t=this.options.suppressEmptyNode?"/":`></${e}`,t},$e.prototype.checkStopNode=function(e){if(!this.stopNodeExpressions||0===this.stopNodeExpressions.length)return!1;for(let t=0;t<this.stopNodeExpressions.length;t++)if(e.matches(this.stopNodeExpressions[t]))return!0;return!1},$e.prototype.buildTextValNode=function(e,t,n,i,a){if(!1!==this.options.cdataPropName&&t===this.options.cdataPropName)return this.indentate(i)+`<![CDATA[${e}]]>`+this.newLine;if(!1!==this.options.commentPropName&&t===this.options.commentPropName)return this.indentate(i)+`\x3c!--${e}--\x3e`+this.newLine;if("?"===t[0])return this.indentate(i)+"<"+t+n+"?"+this.tagEndChar;{let a=this.options.tagValueProcessor(t,e);return a=this.replaceEntitiesValue(a),""===a?this.indentate(i)+"<"+t+n+this.closeTag(t)+this.tagEndChar:this.indentate(i)+"<"+t+n+">"+a+"</"+t+this.tagEndChar}},$e.prototype.replaceEntitiesValue=function(e){if(e&&e.length>0&&this.options.processEntities)for(let t=0;t<this.options.entities.length;t++){const n=this.options.entities[t];e=e.replace(n.regex,n.val)}return e};const Ae=$e,Pe={validate:p};e.exports=n})()},158(e,t,n){n.d(t,{S_BAR:()=>fe,S_BAR_END:()=>he,S_BAR_END_RIGHT:()=>xe,S_BAR_H:()=>Ee,S_BAR_START:()=>me,S_BAR_START_RIGHT:()=>ge,S_CHECKBOX_ACTIVE:()=>be,S_CHECKBOX_INACTIVE:()=>_e,S_CHECKBOX_SELECTED:()=>we,S_CONNECT_LEFT:()=>Te,S_CORNER_BOTTOM_LEFT:()=>ke,S_CORNER_BOTTOM_RIGHT:()=>$e,S_CORNER_TOP_LEFT:()=>Oe,S_CORNER_TOP_RIGHT:()=>Ce,S_ERROR:()=>je,S_INFO:()=>Ne,S_PASSWORD_MASK:()=>Se,S_RADIO_ACTIVE:()=>ve,S_RADIO_INACTIVE:()=>ye,S_STEP_ACTIVE:()=>le,S_STEP_CANCEL:()=>pe,S_STEP_ERROR:()=>ue,S_STEP_SUBMIT:()=>de,S_SUCCESS:()=>Ae,S_WARN:()=>Pe,autocomplete:()=>st,autocompleteMultiselect:()=>rt,box:()=>dt,cancel:()=>xt,confirm:()=>mt,group:()=>ft,groupMultiselect:()=>ht,intro:()=>vt,isCI:()=>se,isCancel:()=>q,isTTY:()=>re,limitOptions:()=>it,log:()=>gt,multiselect:()=>wt,note:()=>Et,outro:()=>yt,password:()=>Ct,path:()=>Tt,progress:()=>Nt,select:()=>Pt,selectKey:()=>jt,settings:()=>M,spinner:()=>kt,stream:()=>Rt,symbol:()=>Fe,symbolBar:()=>Re,taskLog:()=>It,tasks:()=>Lt,text:()=>Dt,unicode:()=>oe,unicodeOr:()=>ce,updateSettings:()=>B}),n.r(t);var i=n(4472),a=n(7721),h=n(4347),g=n(2607);function x(e,t,n){if(!n.some(e=>!e.disabled))return e;const i=e+t,a=Math.max(n.length-1,0),o=i<0?a:i>a?0:i;return n[o].disabled?x(o,t<0?-1:1,n):o}const v=e=>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,y=e=>12288===e||e>=65281&&e<=65376||e>=65504&&e<=65510,b=e=>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>=9800&&e<=9811||9855===e||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<=12771||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=19903||e>=19968&&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>=101632&&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||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<=129672||e>=129680&&e<=129725||e>=129727&&e<=129733||e>=129742&&e<=129755||e>=129760&&e<=129768||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141,w=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/y,_=/[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y,S=/\t{1,1000}/y,E=/[\u{1F1E6}-\u{1F1FF}]{2}|\u{1F3F4}[\u{E0061}-\u{E007A}]{2}[\u{E0030}-\u{E0039}\u{E0061}-\u{E007A}]{1,3}\u{E007F}|(?:\p{Emoji}\uFE0F\u20E3?|\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation})(?:\u200D(?:\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation}|\p{Emoji}\uFE0F\u20E3?))*/uy,C=/(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y,T=/\p{M}+/gu,$={limit:1/0,ellipsis:""},k=(e,t={},n={})=>{const i=t.limit??1/0,a=t.ellipsis??"",o=t?.ellipsisWidth??(a?k(a,$,n).width:0),s=n.ansiWidth??0,r=n.controlWidth??0,c=n.tabWidth??8,l=n.ambiguousWidth??1,p=n.emojiWidth??2,u=n.fullWidthWidth??2,d=n.regularWidth??1,m=n.wideWidth??2;let f=0,h=0,g=e.length,x=0,O=!1,N=g,A=Math.max(0,i-o),P=0,j=0,F=0,R=0;e:for(;;){if(j>P||h>=g&&h>f){const t=e.slice(P,j)||e.slice(f,h);x=0;for(const e of t.replaceAll(T,"")){const t=e.codePointAt(0)||0;if(R=y(t)?u:b(t)?m:l!==d&&v(t)?l:d,F+R>A&&(N=Math.min(N,Math.max(P,f)+x)),F+R>i){O=!0;break e}x+=e.length,F+=R}P=j=0}if(h>=g)break;if(C.lastIndex=h,C.test(e)){if(x=C.lastIndex-h,R=x*d,F+R>A&&(N=Math.min(N,h+Math.floor((A-F)/d))),F+R>i){O=!0;break}F+=R,P=f,j=h,h=f=C.lastIndex}else if(w.lastIndex=h,w.test(e)){if(F+s>A&&(N=Math.min(N,h)),F+s>i){O=!0;break}F+=s,P=f,j=h,h=f=w.lastIndex}else if(_.lastIndex=h,_.test(e)){if(x=_.lastIndex-h,R=x*r,F+R>A&&(N=Math.min(N,h+Math.floor((A-F)/r))),F+R>i){O=!0;break}F+=R,P=f,j=h,h=f=_.lastIndex}else if(S.lastIndex=h,S.test(e)){if(x=S.lastIndex-h,R=x*c,F+R>A&&(N=Math.min(N,h+Math.floor((A-F)/c))),F+R>i){O=!0;break}F+=R,P=f,j=h,h=f=S.lastIndex}else if(E.lastIndex=h,E.test(e)){if(F+p>A&&(N=Math.min(N,h)),F+p>i){O=!0;break}F+=p,P=f,j=h,h=f=E.lastIndex}else h+=1}return{width:O?A:F,index:O?N:g,truncated:O,ellipsed:O&&i>=o}},O={limit:1/0,ellipsis:"",ellipsisWidth:0},N=(e,t={})=>k(e,O,t).width,A="",P="]8;;",j=new RegExp(`(?:\\[(?<code>\\d+)m|\\${P}(?<uri>.*))`,"y"),F=e=>e>=30&&e<=37||e>=90&&e<=97?39:e>=40&&e<=47||e>=100&&e<=107?49:1===e||2===e?22:3===e?23:4===e?24:7===e?27:8===e?28:9===e?29:0===e?0:void 0,R=e=>`${A}[${e}m`,L=e=>`${A}${P}${e}`,I=(e,t,n)=>{const i=t[Symbol.iterator]();let a=!1,o=!1,s=e.at(-1),r=void 0===s?0:N(s),c=i.next(),l=i.next(),p=0;for(;!c.done;){const s=c.value,u=N(s);r+u<=n?e[e.length-1]+=s:(e.push(s),r=0),(s===A||"›"===s)&&(a=!0,o=t.startsWith(P,p+1)),a?o?""===s&&(a=!1,o=!1):"m"===s&&(a=!1):(r+=u,r===n&&!l.done&&(e.push(""),r=0)),c=l,l=i.next(),p+=s.length}s=e.at(-1),!r&&void 0!==s&&s.length>0&&e.length>1&&(e[e.length-2]+=e.pop())};function D(e,t,n){return String(e).normalize().replaceAll("\r\n","\n").split("\n").map(e=>((e,t,n={})=>{if(!1!==n.trim&&""===e.trim())return"";let i,a,o="";const s=e.split(" "),r=(e=>e.map(e=>N(e)))(s);let c=[""];for(const[e,i]of s.entries()){!1!==n.trim&&(c[c.length-1]=(c.at(-1)??"").trimStart());let a=N(c.at(-1)??"");if(0!==e&&(a>=t&&(!1===n.wordWrap||!1===n.trim)&&(c.push(""),a=0),(a>0||!1===n.trim)&&(c[c.length-1]+=" ",a++)),n.hard&&r[e]>t){const n=t-a,o=1+Math.floor((r[e]-n-1)/t);Math.floor((r[e]-1)/t)<o&&c.push(""),I(c,i,t);continue}if(a+r[e]>t&&a>0&&r[e]>0){if(!1===n.wordWrap&&a<t){I(c,i,t);continue}c.push("")}a+r[e]>t&&!1===n.wordWrap?I(c,i,t):c[c.length-1]+=i}!1!==n.trim&&(c=c.map(e=>(e=>{const t=e.split(" ");let n=t.length;for(;n>0&&!(N(t[n-1])>0);)n--;return n===t.length?e:t.slice(0,n).join(" ")+t.slice(n).join("")})(e)));const l=c.join("\n"),p=l[Symbol.iterator]();let u=p.next(),d=p.next(),m=0;for(;!u.done;){const e=u.value,t=d.value;if(o+=e,e===A||"›"===e){j.lastIndex=m+1;const e=j.exec(l)?.groups;if(void 0!==e?.code){const t=Number.parseFloat(e.code);i=39===t?void 0:t}else void 0!==e?.uri&&(a=0===e.uri.length?void 0:e.uri)}const n=i?F(i):void 0;"\n"===t?(a&&(o+=L("")),i&&n&&(o+=R(n))):"\n"===e&&(i&&n&&(o+=R(i)),a&&(o+=L(a))),m+=e.length,u=d,d=p.next()}return o})(e,t,n)).join("\n")}const M={actions:new Set(["up","down","left","right","space","enter","cancel"]),aliases:new Map([["k","up"],["j","down"],["h","left"],["l","right"],["","cancel"],["escape","cancel"]]),messages:{cancel:"Canceled",error:"Something went wrong"},withGuide:!0};function B(e){if(void 0!==e.aliases){const t=e.aliases;for(const e in t){if(!Object.hasOwn(t,e))continue;const n=t[e];M.actions.has(n)&&(M.aliases.has(e)||M.aliases.set(e,n))}}if(void 0!==e.messages){const t=e.messages;void 0!==t.cancel&&(M.messages.cancel=t.cancel),void 0!==t.error&&(M.messages.error=t.error)}void 0!==e.withGuide&&(M.withGuide=!1!==e.withGuide)}function z(e,t){if("string"==typeof e)return M.aliases.get(e)===t;for(const n of e)if(void 0!==n&&z(n,t))return!0;return!1}const U=globalThis.process.platform.startsWith("win"),V=Symbol("clack:cancel");function q(e){return e===V}function H(e,t){const n=e;n.isTTY&&n.setRawMode(t)}const W=e=>"columns"in e&&"number"==typeof e.columns?e.columns:80,G=e=>"rows"in e&&"number"==typeof e.rows?e.rows:20;function J(e,t,n,i=n){return D(t,W(e??a.stdout)-n.length,{hard:!0,trim:!1}).split("\n").map((e,t)=>`${0===t?i:n}${e}`).join("\n")}class Y{input;output;_abortSignal;rl;opts;_render;_track=!1;_prevFrame="";_subscribers=new Map;_cursor=0;state="initial";error="";value;userInput="";constructor(e,t=!0){const{input:n=a.stdin,output:i=a.stdout,render:o,signal:s,...r}=e;this.opts=r,this.onKeypress=this.onKeypress.bind(this),this.close=this.close.bind(this),this.render=this.render.bind(this),this._render=o.bind(this),this._track=t,this._abortSignal=s,this.input=n,this.output=i}unsubscribe(){this._subscribers.clear()}setSubscriber(e,t){const n=this._subscribers.get(e)??[];n.push(t),this._subscribers.set(e,n)}on(e,t){this.setSubscriber(e,{cb:t})}once(e,t){this.setSubscriber(e,{cb:t,once:!0})}emit(e,...t){const n=this._subscribers.get(e)??[],i=[];for(const e of n)e.cb(...t),e.once&&i.push(()=>n.splice(n.indexOf(e),1));for(const e of i)e()}prompt(){return new Promise(e=>{if(this._abortSignal){if(this._abortSignal.aborted)return this.state="cancel",this.close(),e(V);this._abortSignal.addEventListener("abort",()=>{this.state="cancel",this.close()},{once:!0})}this.rl=r.createInterface({input:this.input,tabSize:2,prompt:"",escapeCodeTimeout:50,terminal:!0}),this.rl.prompt(),void 0!==this.opts.initialUserInput&&this._setUserInput(this.opts.initialUserInput,!0),this.input.on("keypress",this.onKeypress),H(this.input,!0),this.output.on("resize",this.render),this.render(),this.once("submit",()=>{this.output.write(h.cursor.show),this.output.off("resize",this.render),H(this.input,!1),e(this.value)}),this.once("cancel",()=>{this.output.write(h.cursor.show),this.output.off("resize",this.render),H(this.input,!1),e(V)})})}_isActionKey(e,t){return"\t"===e}_setValue(e){this.value=e,this.emit("value",this.value)}_setUserInput(e,t){this.userInput=e??"",this.emit("userInput",this.userInput),t&&this._track&&this.rl&&(this.rl.write(this.userInput),this._cursor=this.rl.cursor)}_clearUserInput(){this.rl?.write(null,{ctrl:!0,name:"u"}),this._setUserInput("")}onKeypress(e,t){if(this._track&&"return"!==t.name&&(t.name&&this._isActionKey(e,t)&&this.rl?.write(null,{ctrl:!0,name:"h"}),this._cursor=this.rl?.cursor??0,this._setUserInput(this.rl?.line)),"error"===this.state&&(this.state="active"),t?.name&&(!this._track&&M.aliases.has(t.name)&&this.emit("cursor",M.aliases.get(t.name)),M.actions.has(t.name)&&this.emit("cursor",t.name)),e&&("y"===e.toLowerCase()||"n"===e.toLowerCase())&&this.emit("confirm","y"===e.toLowerCase()),this.emit("key",e?.toLowerCase(),t),"return"===t?.name){if(this.opts.validate){const e=this.opts.validate(this.value);e&&(this.error=e instanceof Error?e.message:e,this.state="error",this.rl?.write(this.userInput))}"error"!==this.state&&(this.state="submit")}z([e,t?.name,t?.sequence],"cancel")&&(this.state="cancel"),("submit"===this.state||"cancel"===this.state)&&this.emit("finalize"),this.render(),("submit"===this.state||"cancel"===this.state)&&this.close()}close(){this.input.unpipe(),this.input.removeListener("keypress",this.onKeypress),this.output.write("\n"),H(this.input,!1),this.rl?.close(),this.rl=void 0,this.emit(`${this.state}`,this.value),this.unsubscribe()}restoreCursor(){const e=D(this._prevFrame,process.stdout.columns,{hard:!0,trim:!1}).split("\n").length-1;this.output.write(h.cursor.move(-999,-1*e))}render(){const e=D(this._render(this)??"",process.stdout.columns,{hard:!0,trim:!1});if(e!==this._prevFrame){if("initial"===this.state)this.output.write(h.cursor.hide);else{const t=function(e,t){if(e===t)return;const n=e.split("\n"),i=t.split("\n"),a=Math.max(n.length,i.length),o=[];for(let e=0;e<a;e++)n[e]!==i[e]&&o.push(e);return{lines:o,numLinesBefore:n.length,numLinesAfter:i.length,numLines:a}}(this._prevFrame,e),n=G(this.output);if(this.restoreCursor(),t){const i=Math.max(0,t.numLinesAfter-n),a=Math.max(0,t.numLinesBefore-n);let o=t.lines.find(e=>e>=i);if(void 0===o)return void(this._prevFrame=e);if(1===t.lines.length){this.output.write(h.cursor.move(0,o-a)),this.output.write(h.erase.lines(1));const t=e.split("\n");return this.output.write(t[o]),this._prevFrame=e,void this.output.write(h.cursor.move(0,t.length-o-1))}if(t.lines.length>1){if(i<a)o=i;else{const e=o-a;e>0&&this.output.write(h.cursor.move(0,e))}this.output.write(h.erase.down());const t=e.split("\n").slice(o);return this.output.write(t.join("\n")),void(this._prevFrame=e)}}this.output.write(h.erase.down())}this.output.write(e),"initial"===this.state&&(this.state="active"),this._prevFrame=e}}}function K(e,t){return(t.label??String(t.value)).toLowerCase().includes(e.toLowerCase())}class X extends Y{filteredOptions;multiple;isNavigating=!1;selectedValues=[];focusedValue;#e=0;#t="";#n;#i;get cursor(){return this.#e}get userInputWithCursor(){if(!this.userInput)return(0,i.styleText)(["inverse","hidden"],"_");if(this._cursor>=this.userInput.length)return`${this.userInput}█`;const e=this.userInput.slice(0,this._cursor),[t,...n]=this.userInput.slice(this._cursor);return`${e}${(0,i.styleText)("inverse",t)}${n.join("")}`}get options(){return"function"==typeof this.#i?this.#i():this.#i}constructor(e){super(e),this.#i=e.options;const t=this.options;let n;if(this.filteredOptions=[...t],this.multiple=!0===e.multiple,this.#n=e.filter??K,e.initialValue&&Array.isArray(e.initialValue)?n=this.multiple?e.initialValue:e.initialValue.slice(0,1):!this.multiple&&this.options.length>0&&(n=[this.options[0].value]),n)for(const e of n){const n=t.findIndex(t=>t.value===e);-1!==n&&(this.toggleSelected(e),this.#e=n)}this.focusedValue=this.options[this.#e]?.value,this.on("key",(e,t)=>this.#a(e,t)),this.on("userInput",e=>this.#o(e))}_isActionKey(e,t){return"\t"===e||this.multiple&&this.isNavigating&&"space"===t.name&&void 0!==e&&""!==e}#a(e,t){const n="up"===t.name,i="down"===t.name,a="return"===t.name;n||i?(this.#e=x(this.#e,n?-1:1,this.filteredOptions),this.focusedValue=this.filteredOptions[this.#e]?.value,this.multiple||(this.selectedValues=[this.focusedValue]),this.isNavigating=!0):a?this.value=function(e,t){if(t)return e?t:t[0]}(this.multiple,this.selectedValues):this.multiple?void 0!==this.focusedValue&&("tab"===t.name||this.isNavigating&&"space"===t.name)?this.toggleSelected(this.focusedValue):this.isNavigating=!1:(this.focusedValue&&(this.selectedValues=[this.focusedValue]),this.isNavigating=!1)}deselectAll(){this.selectedValues=[]}toggleSelected(e){0!==this.filteredOptions.length&&(this.multiple?this.selectedValues.includes(e)?this.selectedValues=this.selectedValues.filter(t=>t!==e):this.selectedValues=[...this.selectedValues,e]:this.selectedValues=[e])}#o(e){if(e!==this.#t){this.#t=e;const t=this.options;this.filteredOptions=e?t.filter(t=>this.#n(e,t)):[...t];const n=function(e,t){if(void 0===e||0===t.length)return 0;const n=t.findIndex(t=>t.value===e);return-1!==n?n:0}(this.focusedValue,this.filteredOptions);this.#e=x(n,0,this.filteredOptions);const i=this.filteredOptions[this.#e];i&&!i.disabled?this.focusedValue=i.value:this.focusedValue=void 0,this.multiple||(void 0!==this.focusedValue?this.toggleSelected(this.focusedValue):this.deselectAll())}}}class Z extends Y{get cursor(){return this.value?0:1}get _value(){return 0===this.cursor}constructor(e){super(e,!1),this.value=!!e.initialValue,this.on("userInput",()=>{this.value=this._value}),this.on("confirm",e=>{this.output.write(h.cursor.move(0,-1)),this.value=e,this.state="submit",this.close()}),this.on("cursor",()=>{this.value=!this.value})}}class Q extends Y{options;cursor=0;#e;getGroupItems(e){return this.options.filter(t=>t.group===e)}isGroupSelected(e){const t=this.getGroupItems(e),n=this.value;return void 0!==n&&t.every(e=>n.includes(e.value))}toggleValue(){const e=this.options[this.cursor];if(void 0===this.value&&(this.value=[]),!0===e.group){const t=e.value,n=this.getGroupItems(t);this.isGroupSelected(t)?this.value=this.value.filter(e=>-1===n.findIndex(t=>t.value===e)):this.value=[...this.value,...n.map(e=>e.value)],this.value=Array.from(new Set(this.value))}else{const t=this.value.includes(e.value);this.value=t?this.value.filter(t=>t!==e.value):[...this.value,e.value]}}constructor(e){super(e,!1);const{options:t}=e;this.#e=!1!==e.selectableGroups,this.options=Object.entries(t).flatMap(([e,t])=>[{value:e,group:!0,label:e},...t.map(t=>({...t,group:e}))]),this.value=[...e.initialValues??[]],this.cursor=Math.max(this.options.findIndex(({value:t})=>t===e.cursorAt),this.#e?0:1),this.on("cursor",e=>{switch(e){case"left":case"up":{this.cursor=0===this.cursor?this.options.length-1:this.cursor-1;const e=!0===this.options[this.cursor]?.group;!this.#e&&e&&(this.cursor=0===this.cursor?this.options.length-1:this.cursor-1);break}case"down":case"right":{this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;const e=!0===this.options[this.cursor]?.group;!this.#e&&e&&(this.cursor=this.cursor===this.options.length-1?0:this.cursor+1);break}case"space":this.toggleValue()}})}}let ee=class extends Y{options;cursor=0;get _value(){return this.options[this.cursor].value}get _enabledOptions(){return this.options.filter(e=>!0!==e.disabled)}toggleAll(){const e=this._enabledOptions,t=void 0!==this.value&&this.value.length===e.length;this.value=t?[]:e.map(e=>e.value)}toggleInvert(){const e=this.value;if(!e)return;const t=this._enabledOptions.filter(t=>!e.includes(t.value));this.value=t.map(e=>e.value)}toggleValue(){void 0===this.value&&(this.value=[]);const e=this.value.includes(this._value);this.value=e?this.value.filter(e=>e!==this._value):[...this.value,this._value]}constructor(e){super(e,!1),this.options=e.options,this.value=[...e.initialValues??[]];const t=Math.max(this.options.findIndex(({value:t})=>t===e.cursorAt),0);this.cursor=this.options[t].disabled?x(t,1,this.options):t,this.on("key",e=>{"a"===e&&this.toggleAll(),"i"===e&&this.toggleInvert()}),this.on("cursor",e=>{switch(e){case"left":case"up":this.cursor=x(this.cursor,-1,this.options);break;case"down":case"right":this.cursor=x(this.cursor,1,this.options);break;case"space":this.toggleValue()}})}};class te extends Y{_mask="•";get cursor(){return this._cursor}get masked(){return this.userInput.replaceAll(/./g,this._mask)}get userInputWithCursor(){if("submit"===this.state||"cancel"===this.state)return this.masked;const e=this.userInput;if(this.cursor>=e.length)return`${this.masked}${(0,i.styleText)(["inverse","hidden"],"_")}`;const t=this.masked,n=t.slice(0,this.cursor),a=t.slice(this.cursor);return`${n}${(0,i.styleText)("inverse",a[0])}${a.slice(1)}`}clear(){this._clearUserInput()}constructor({mask:e,...t}){super(t),this._mask=e??"•",this.on("userInput",e=>{this._setValue(e)})}}class ne extends Y{options;cursor=0;get _selectedValue(){return this.options[this.cursor]}changeValue(){this.value=this._selectedValue.value}constructor(e){super(e,!1),this.options=e.options;const t=this.options.findIndex(({value:t})=>t===e.initialValue),n=-1===t?0:t;this.cursor=this.options[n].disabled?x(n,1,this.options):n,this.changeValue(),this.on("cursor",e=>{switch(e){case"left":case"up":this.cursor=x(this.cursor,-1,this.options);break;case"down":case"right":this.cursor=x(this.cursor,1,this.options)}this.changeValue()})}}class ie extends Y{options;cursor=0;constructor(e){super(e,!1),this.options=e.options;const t=!0===e.caseSensitive,n=this.options.map(({value:[e]})=>t?e:e?.toLowerCase());this.cursor=Math.max(n.indexOf(e.initialValue),0),this.on("key",(e,i)=>{if(!e)return;const a=t&&i.shift?e.toUpperCase():e;if(!n.includes(a))return;const o=this.options.find(({value:[n]})=>t?n===a:n?.toLowerCase()===e);o&&(this.value=o.value,this.state="submit",this.emit("submit"))})}}class ae extends Y{get userInputWithCursor(){if("submit"===this.state)return this.userInput;const e=this.userInput;if(this.cursor>=e.length)return`${this.userInput}█`;const t=e.slice(0,this.cursor),[n,...a]=e.slice(this.cursor);return`${t}${(0,i.styleText)("inverse",n)}${a.join("")}`}get cursor(){return this._cursor}constructor(e){super({...e,initialUserInput:e.initialUserInput??e.initialValue}),this.on("userInput",e=>{this._setValue(e)}),this.on("finalize",()=>{this.value||(this.value=e.defaultValue),void 0===this.value&&(this.value="")})}}const oe="win32"!==a.default.platform?"linux"!==a.default.env.TERM:!!a.default.env.CI||!!a.default.env.WT_SESSION||!!a.default.env.TERMINUS_SUBLIME||"{cmd::Cmder}"===a.default.env.ConEmuTask||"Terminus-Sublime"===a.default.env.TERM_PROGRAM||"vscode"===a.default.env.TERM_PROGRAM||"xterm-256color"===a.default.env.TERM||"alacritty"===a.default.env.TERM||"JetBrains-JediTerm"===a.default.env.TERMINAL_EMULATOR,se=()=>"true"===process.env.CI,re=e=>!0===e.isTTY,ce=(e,t)=>oe?e:t,le=ce("◆","*"),pe=ce("■","x"),ue=ce("▲","x"),de=ce("◇","o"),me=ce("┌","T"),fe=ce("│","|"),he=ce("└","—"),ge=ce("┐","T"),xe=ce("┘","—"),ve=ce("●",">"),ye=ce("○"," "),be=ce("◻","[•]"),we=ce("◼","[+]"),_e=ce("◻","[ ]"),Se=ce("▪","•"),Ee=ce("─","-"),Ce=ce("╮","+"),Te=ce("├","+"),$e=ce("╯","+"),ke=ce("╰","+"),Oe=ce("╭","+"),Ne=ce("●","•"),Ae=ce("◆","*"),Pe=ce("▲","!"),je=ce("■","x"),Fe=e=>{switch(e){case"initial":case"active":return(0,i.styleText)("cyan",le);case"cancel":return(0,i.styleText)("red",pe);case"error":return(0,i.styleText)("yellow",ue);case"submit":return(0,i.styleText)("green",de)}},Re=e=>{switch(e){case"initial":case"active":return(0,i.styleText)("cyan",fe);case"cancel":return(0,i.styleText)("red",fe);case"error":return(0,i.styleText)("yellow",fe);case"submit":return(0,i.styleText)("green",fe)}},Le=e=>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,Ie=e=>12288===e||e>=65281&&e<=65376||e>=65504&&e<=65510,De=e=>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>=9800&&e<=9811||9855===e||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<=12771||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=19903||e>=19968&&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>=101632&&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||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<=129672||e>=129680&&e<=129725||e>=129727&&e<=129733||e>=129742&&e<=129755||e>=129760&&e<=129768||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141,Me=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/y,Be=/[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y,ze=/\t{1,1000}/y,Ue=/[\u{1F1E6}-\u{1F1FF}]{2}|\u{1F3F4}[\u{E0061}-\u{E007A}]{2}[\u{E0030}-\u{E0039}\u{E0061}-\u{E007A}]{1,3}\u{E007F}|(?:\p{Emoji}\uFE0F\u20E3?|\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation})(?:\u200D(?:\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation}|\p{Emoji}\uFE0F\u20E3?))*/uy,Ve=/(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y,qe=/\p{M}+/gu,He={limit:1/0,ellipsis:""},We=(e,t={},n={})=>{const i=t.limit??1/0,a=t.ellipsis??"",o=t?.ellipsisWidth??(a?We(a,He,n).width:0),s=n.ansiWidth??0,r=n.controlWidth??0,c=n.tabWidth??8,l=n.ambiguousWidth??1,p=n.emojiWidth??2,u=n.fullWidthWidth??2,d=n.regularWidth??1,m=n.wideWidth??2;let f=0,h=0,g=e.length,x=0,v=!1,y=g,b=Math.max(0,i-o),w=0,_=0,S=0,E=0;e:for(;;){if(_>w||h>=g&&h>f){const t=e.slice(w,_)||e.slice(f,h);x=0;for(const e of t.replaceAll(qe,"")){const t=e.codePointAt(0)||0;if(E=Ie(t)?u:De(t)?m:l!==d&&Le(t)?l:d,S+E>b&&(y=Math.min(y,Math.max(w,f)+x)),S+E>i){v=!0;break e}x+=e.length,S+=E}w=_=0}if(h>=g)break;if(Ve.lastIndex=h,Ve.test(e)){if(x=Ve.lastIndex-h,E=x*d,S+E>b&&(y=Math.min(y,h+Math.floor((b-S)/d))),S+E>i){v=!0;break}S+=E,w=f,_=h,h=f=Ve.lastIndex}else if(Me.lastIndex=h,Me.test(e)){if(S+s>b&&(y=Math.min(y,h)),S+s>i){v=!0;break}S+=s,w=f,_=h,h=f=Me.lastIndex}else if(Be.lastIndex=h,Be.test(e)){if(x=Be.lastIndex-h,E=x*r,S+E>b&&(y=Math.min(y,h+Math.floor((b-S)/r))),S+E>i){v=!0;break}S+=E,w=f,_=h,h=f=Be.lastIndex}else if(ze.lastIndex=h,ze.test(e)){if(x=ze.lastIndex-h,E=x*c,S+E>b&&(y=Math.min(y,h+Math.floor((b-S)/c))),S+E>i){v=!0;break}S+=E,w=f,_=h,h=f=ze.lastIndex}else if(Ue.lastIndex=h,Ue.test(e)){if(S+p>b&&(y=Math.min(y,h)),S+p>i){v=!0;break}S+=p,w=f,_=h,h=f=Ue.lastIndex}else h+=1}return{width:v?b:S,index:v?y:g,truncated:v,ellipsed:v&&i>=o}},Ge={limit:1/0,ellipsis:"",ellipsisWidth:0},Je=(e,t={})=>We(e,Ge,t).width,Ye="",Ke="]8;;",Xe=new RegExp(`(?:\\[(?<code>\\d+)m|\\${Ke}(?<uri>.*))`,"y"),Ze=e=>e>=30&&e<=37||e>=90&&e<=97?39:e>=40&&e<=47||e>=100&&e<=107?49:1===e||2===e?22:3===e?23:4===e?24:7===e?27:8===e?28:9===e?29:0===e?0:void 0,Qe=e=>`${Ye}[${e}m`,et=e=>`${Ye}${Ke}${e}`,tt=(e,t,n)=>{const i=t[Symbol.iterator]();let a=!1,o=!1,s=e.at(-1),r=void 0===s?0:Je(s),c=i.next(),l=i.next(),p=0;for(;!c.done;){const s=c.value,u=Je(s);r+u<=n?e[e.length-1]+=s:(e.push(s),r=0),(s===Ye||"›"===s)&&(a=!0,o=t.startsWith(Ke,p+1)),a?o?""===s&&(a=!1,o=!1):"m"===s&&(a=!1):(r+=u,r===n&&!l.done&&(e.push(""),r=0)),c=l,l=i.next(),p+=s.length}s=e.at(-1),!r&&void 0!==s&&s.length>0&&e.length>1&&(e[e.length-2]+=e.pop())};function nt(e,t,n){return String(e).normalize().replaceAll("\r\n","\n").split("\n").map(e=>((e,t,n={})=>{if(!1!==n.trim&&""===e.trim())return"";let i,a,o="";const s=e.split(" "),r=(e=>e.map(e=>Je(e)))(s);let c=[""];for(const[e,i]of s.entries()){!1!==n.trim&&(c[c.length-1]=(c.at(-1)??"").trimStart());let a=Je(c.at(-1)??"");if(0!==e&&(a>=t&&(!1===n.wordWrap||!1===n.trim)&&(c.push(""),a=0),(a>0||!1===n.trim)&&(c[c.length-1]+=" ",a++)),n.hard&&r[e]>t){const n=t-a,o=1+Math.floor((r[e]-n-1)/t);Math.floor((r[e]-1)/t)<o&&c.push(""),tt(c,i,t);continue}if(a+r[e]>t&&a>0&&r[e]>0){if(!1===n.wordWrap&&a<t){tt(c,i,t);continue}c.push("")}a+r[e]>t&&!1===n.wordWrap?tt(c,i,t):c[c.length-1]+=i}!1!==n.trim&&(c=c.map(e=>(e=>{const t=e.split(" ");let n=t.length;for(;n>0&&!(Je(t[n-1])>0);)n--;return n===t.length?e:t.slice(0,n).join(" ")+t.slice(n).join("")})(e)));const l=c.join("\n"),p=l[Symbol.iterator]();let u=p.next(),d=p.next(),m=0;for(;!u.done;){const e=u.value,t=d.value;if(o+=e,e===Ye||"›"===e){Xe.lastIndex=m+1;const e=Xe.exec(l)?.groups;if(void 0!==e?.code){const t=Number.parseFloat(e.code);i=39===t?void 0:t}else void 0!==e?.uri&&(a=0===e.uri.length?void 0:e.uri)}const n=i?Ze(i):void 0;"\n"===t?(a&&(o+=et("")),i&&n&&(o+=Qe(n))):"\n"===e&&(i&&n&&(o+=Qe(i)),a&&(o+=et(a))),m+=e.length,u=d,d=p.next()}return o})(e,t,n)).join("\n")}const it=({cursor:e,options:t,style:n,output:a=process.stdout,maxItems:o=Number.POSITIVE_INFINITY,columnPadding:s=0,rowPadding:r=4})=>{const c=W(a)-s,l=G(a),p=(0,i.styleText)("dim","..."),u=Math.max(l-r,0),d=Math.max(Math.min(o,u),5);let m=0;e>=d-3&&(m=Math.max(Math.min(e-d+3,t.length-d),0));let f=d<t.length&&m>0,h=d<t.length&&m+d<t.length;const g=Math.min(m+d,t.length),x=[];let v=0;f&&v++,h&&v++;const y=m+(f?1:0),b=g-(h?1:0);for(let i=y;i<b;i++){const a=nt(n(t[i],i===e),c,{hard:!0,trim:!1}).split("\n");x.push(a),v+=a.length}if(v>u){let t=0,n=0,i=v;const a=e-y,o=(e,t)=>((e,t,n,i,a)=>{let o=t,s=0;for(let t=n;t<i&&(o-=e[t].length,s++,!(o<=a));t++);return{lineCount:o,removals:s}})(x,i,e,t,u);f?(({lineCount:i,removals:t}=o(0,a)),i>u&&({lineCount:i,removals:n}=o(a+1,x.length))):(({lineCount:i,removals:n}=o(a+1,x.length)),i>u&&({lineCount:i,removals:t}=o(0,a))),t>0&&(f=!0,x.splice(0,t)),n>0&&(h=!0,x.splice(x.length-n,n))}const w=[];f&&w.push(p);for(const e of x)for(const t of e)w.push(t);return h&&w.push(p),w};function at(e){return e.label??String(e.value??"")}function ot(e,t){if(!e)return!0;const n=(t.label??String(t.value??"")).toLowerCase(),i=(t.hint??"").toLowerCase(),a=String(t.value).toLowerCase(),o=e.toLowerCase();return n.includes(o)||i.includes(o)||a.includes(o)}const st=e=>new X({options:e.options,initialValue:e.initialValue?[e.initialValue]:void 0,initialUserInput:e.initialUserInput,filter:e.filter??((e,t)=>ot(e,t)),signal:e.signal,input:e.input,output:e.output,validate:e.validate,render(){const t=e.withGuide??M.withGuide,n=t?[`${(0,i.styleText)("gray",fe)}`,`${Fe(this.state)} ${e.message}`]:[`${Fe(this.state)} ${e.message}`],a=this.userInput,o=this.options,s=e.placeholder,r=""===a&&void 0!==s,c=(e,t)=>{const n=at(e),a=e.hint&&e.value===this.focusedValue?(0,i.styleText)("dim",` (${e.hint})`):"";switch(t){case"active":return`${(0,i.styleText)("green",ve)} ${n}${a}`;case"inactive":return`${(0,i.styleText)("dim",ye)} ${(0,i.styleText)("dim",n)}`;case"disabled":return`${(0,i.styleText)("gray",ye)} ${(0,i.styleText)(["strikethrough","gray"],n)}`}};switch(this.state){case"submit":{const e=function(e,t){const n=[];for(const i of t)e.includes(i.value)&&n.push(i);return n}(this.selectedValues,o),a=e.length>0?` ${(0,i.styleText)("dim",e.map(at).join(", "))}`:"",s=t?(0,i.styleText)("gray",fe):"";return`${n.join("\n")}\n${s}${a}`}case"cancel":{const e=a?` ${(0,i.styleText)(["strikethrough","dim"],a)}`:"",o=t?(0,i.styleText)("gray",fe):"";return`${n.join("\n")}\n${o}${e}`}default:{const l="error"===this.state?"yellow":"cyan",p=t?`${(0,i.styleText)(l,fe)} `:"",u=t?(0,i.styleText)(l,he):"";let d="";if(this.isNavigating||r){const e=r?s:a;d=""!==e?` ${(0,i.styleText)("dim",e)}`:""}else d=` ${this.userInputWithCursor}`;const m=this.filteredOptions.length!==o.length?(0,i.styleText)("dim",` (${this.filteredOptions.length} match${1===this.filteredOptions.length?"":"es"})`):"",f=0===this.filteredOptions.length&&a?[`${p}${(0,i.styleText)("yellow","No matches found")}`]:[],h="error"===this.state?[`${p}${(0,i.styleText)("yellow",this.error)}`]:[];t&&n.push(`${p.trimEnd()}`),n.push(`${p}${(0,i.styleText)("dim","Search:")}${d}${m}`,...f,...h);const g=[`${(0,i.styleText)("dim","↑/↓")} to select`,`${(0,i.styleText)("dim","Enter:")} confirm`,`${(0,i.styleText)("dim","Type:")} to search`],x=[`${p}${g.join(" • ")}`,u],v=0===this.filteredOptions.length?[]:it({cursor:this.cursor,options:this.filteredOptions,columnPadding:t?3:0,rowPadding:n.length+x.length,style:(e,t)=>c(e,e.disabled?"disabled":t?"active":"inactive"),maxItems:e.maxItems,output:e.output});return[...n,...v.map(e=>`${p}${e}`),...x].join("\n")}}}}).prompt(),rt=e=>{const t=new X({options:e.options,multiple:!0,filter:e.filter??((e,t)=>ot(e,t)),validate:()=>{if(e.required&&0===t.selectedValues.length)return"Please select at least one item"},initialValue:e.initialValues,signal:e.signal,input:e.input,output:e.output,render(){const t=`${(0,i.styleText)("gray",fe)}\n${Fe(this.state)} ${e.message}\n`,n=this.userInput,a=e.placeholder,o=""===n&&void 0!==a,s=this.isNavigating||o?(0,i.styleText)("dim",o?a:n):this.userInputWithCursor,r=this.options,c=this.filteredOptions.length!==r.length?(0,i.styleText)("dim",` (${this.filteredOptions.length} match${1===this.filteredOptions.length?"":"es"})`):"";switch(this.state){case"submit":return`${t}${(0,i.styleText)("gray",fe)} ${(0,i.styleText)("dim",`${this.selectedValues.length} items selected`)}`;case"cancel":return`${t}${(0,i.styleText)("gray",fe)} ${(0,i.styleText)(["strikethrough","dim"],n)}`;default:{const a="error"===this.state?"yellow":"cyan",o=[`${(0,i.styleText)("dim","↑/↓")} to navigate`,`${(0,i.styleText)("dim",this.isNavigating?"Space/Tab:":"Tab:")} select`,`${(0,i.styleText)("dim","Enter:")} confirm`,`${(0,i.styleText)("dim","Type:")} to search`],r=0===this.filteredOptions.length&&n?[`${(0,i.styleText)(a,fe)} ${(0,i.styleText)("yellow","No matches found")}`]:[],l="error"===this.state?[`${(0,i.styleText)(a,fe)} ${(0,i.styleText)("yellow",this.error)}`]:[],p=[...`${t}${(0,i.styleText)(a,fe)}`.split("\n"),`${(0,i.styleText)(a,fe)} ${(0,i.styleText)("dim","Search:")} ${s}${c}`,...r,...l],u=[`${(0,i.styleText)(a,fe)} ${o.join(" • ")}`,(0,i.styleText)(a,he)],d=it({cursor:this.cursor,options:this.filteredOptions,style:(e,t)=>((e,t,n,a)=>{const o=n.includes(e.value),s=e.label??String(e.value??""),r=e.hint&&void 0!==a&&e.value===a?(0,i.styleText)("dim",` (${e.hint})`):"",c=o?(0,i.styleText)("green",we):(0,i.styleText)("dim",_e);return e.disabled?`${(0,i.styleText)("gray",_e)} ${(0,i.styleText)(["strikethrough","gray"],s)}`:t?`${c} ${s}${r}`:`${c} ${(0,i.styleText)("dim",s)}`})(e,t,this.selectedValues,this.focusedValue),maxItems:e.maxItems,output:e.output,rowPadding:p.length+u.length});return[...p,...d.map(e=>`${(0,i.styleText)(a,fe)} ${e}`),...u].join("\n")}}}});return t.prompt()},ct=[Oe,Ce,ke,$e],lt=[me,ge,he,xe];function pt(e,t,n,i){let a=n,o=n;return"center"===i?a=Math.floor((t-e)/2):"right"===i&&(a=t-e-n),o=t-a-e,[a,o]}const ut=e=>e,dt=(e="",t="",n)=>{const i=n?.output??process.stdout,a=W(i),o=n?.titlePadding??1,s=n?.contentPadding??2,r=void 0===n?.width||"auto"===n.width?1:Math.min(1,n.width),c=n?.withGuide??M.withGuide?`${fe} `:"",l=n?.formatBorder??ut,p=(n?.rounded?ct:lt).map(l),u=l(Ee),d=l(fe),m=Je(c),f=Je(t),h=a-m;let g=Math.floor(a*r)-m;if("auto"===n?.width){const t=e.split("\n");let n=f+2*o;for(const e of t){const t=Je(e)+2*s;t>n&&(n=t)}const i=n+2;i<g&&(g=i)}g%2!=0&&(g<h?g++:g--);const x=g-2,v=x-2*o,y=f>v?`${t.slice(0,v-3)}...`:t,[b,w]=pt(Je(y),x,o,n?.titleAlign),_=nt(e,x-2*s,{hard:!0,trim:!1});i.write(`${c}${p[0]}${u.repeat(b)}${y}${u.repeat(w)}${p[1]}\n`);const S=_.split("\n");for(const e of S){const[t,a]=pt(Je(e),x,s,n?.contentAlign);i.write(`${c}${d}${" ".repeat(t)}${e}${" ".repeat(a)}${d}\n`)}i.write(`${c}${p[2]}${u.repeat(x)}${p[3]}\n`)},mt=e=>{const t=e.active??"Yes",n=e.inactive??"No";return new Z({active:t,inactive:n,signal:e.signal,input:e.input,output:e.output,initialValue:e.initialValue??!0,render(){const a=e.withGuide??M.withGuide,o=`${a?`${(0,i.styleText)("gray",fe)}\n`:""}${Fe(this.state)} ${e.message}\n`,s=this.value?t:n;switch(this.state){case"submit":return`${o}${a?`${(0,i.styleText)("gray",fe)} `:""}${(0,i.styleText)("dim",s)}`;case"cancel":return`${o}${a?`${(0,i.styleText)("gray",fe)} `:""}${(0,i.styleText)(["strikethrough","dim"],s)}${a?`\n${(0,i.styleText)("gray",fe)}`:""}`;default:{const s=a?`${(0,i.styleText)("cyan",fe)} `:"",r=a?(0,i.styleText)("cyan",he):"";return`${o}${s}${this.value?`${(0,i.styleText)("green",ve)} ${t}`:`${(0,i.styleText)("dim",ye)} ${(0,i.styleText)("dim",t)}`}${e.vertical?a?`\n${(0,i.styleText)("cyan",fe)} `:"\n":` ${(0,i.styleText)("dim","/")} `}${this.value?`${(0,i.styleText)("dim",ye)} ${(0,i.styleText)("dim",n)}`:`${(0,i.styleText)("green",ve)} ${n}`}\n${r}\n`}}}}).prompt()},ft=async(e,t)=>{const n={},i=Object.keys(e);for(const a of i){const i=e[a],o=await(i({results:n})?.catch(e=>{throw e}));"function"==typeof t?.onCancel&&q(o)?(n[a]="canceled",t.onCancel({results:n})):n[a]=o}return n},ht=e=>{const{selectableGroups:t=!0,groupSpacing:n=0}=e,a=(e,a,o=[])=>{const s=e.label??String(e.value),r="string"==typeof e.group,c=r&&(o[o.indexOf(e)+1]??{group:!0}),l=r&&c&&!0===c.group,p=r?t?`${l?he:fe} `:" ":"";let u="";if(n>0&&!r){const e=`\n${(0,i.styleText)("cyan",fe)}`;u=`${e.repeat(n-1)}${e} `}if("active"===a)return`${u}${(0,i.styleText)("dim",p)}${(0,i.styleText)("cyan",be)} ${s}${e.hint?` ${(0,i.styleText)("dim",`(${e.hint})`)}`:""}`;if("group-active"===a)return`${u}${p}${(0,i.styleText)("cyan",be)} ${(0,i.styleText)("dim",s)}`;if("group-active-selected"===a)return`${u}${p}${(0,i.styleText)("green",we)} ${(0,i.styleText)("dim",s)}`;if("selected"===a){const n=r||t?(0,i.styleText)("green",we):"";return`${u}${(0,i.styleText)("dim",p)}${n} ${(0,i.styleText)("dim",s)}${e.hint?` ${(0,i.styleText)("dim",`(${e.hint})`)}`:""}`}if("cancelled"===a)return`${(0,i.styleText)(["strikethrough","dim"],s)}`;if("active-selected"===a)return`${u}${(0,i.styleText)("dim",p)}${(0,i.styleText)("green",we)} ${s}${e.hint?` ${(0,i.styleText)("dim",`(${e.hint})`)}`:""}`;if("submitted"===a)return`${(0,i.styleText)("dim",s)}`;const d=r||t?(0,i.styleText)("dim",_e):"";return`${u}${(0,i.styleText)("dim",p)}${d} ${(0,i.styleText)("dim",s)}`},o=e.required??!0;return new Q({options:e.options,signal:e.signal,input:e.input,output:e.output,initialValues:e.initialValues,required:o,cursorAt:e.cursorAt,selectableGroups:t,validate(e){if(o&&(void 0===e||0===e.length))return`Please select at least one option.\n${(0,i.styleText)("reset",(0,i.styleText)("dim",`Press ${(0,i.styleText)(["gray","bgWhite","inverse"]," space ")} to select, ${(0,i.styleText)("gray",(0,i.styleText)(["bgWhite","inverse"]," enter "))} to submit`))}`},render(){const t=`${(0,i.styleText)("gray",fe)}\n${Fe(this.state)} ${e.message}\n`,n=this.value??[];switch(this.state){case"submit":{const e=this.options.filter(({value:e})=>n.includes(e)).map(e=>a(e,"submitted")),o=0===e.length?"":` ${e.join((0,i.styleText)("dim",", "))}`;return`${t}${(0,i.styleText)("gray",fe)}${o}`}case"cancel":{const e=this.options.filter(({value:e})=>n.includes(e)).map(e=>a(e,"cancelled")).join((0,i.styleText)("dim",", "));return`${t}${(0,i.styleText)("gray",fe)} ${e.trim()?`${e}\n${(0,i.styleText)("gray",fe)}`:""}`}case"error":{const e=this.error.split("\n").map((e,t)=>0===t?`${(0,i.styleText)("yellow",he)} ${(0,i.styleText)("yellow",e)}`:` ${e}`).join("\n");return`${t}${(0,i.styleText)("yellow",fe)} ${this.options.map((e,t,i)=>{const o=n.includes(e.value)||!0===e.group&&this.isGroupSelected(`${e.value}`),s=t===this.cursor;return s||"string"!=typeof e.group||this.options[this.cursor].value!==e.group?a(e,s&&o?"active-selected":o?"selected":s?"active":"inactive",i):a(e,o?"group-active-selected":"group-active",i)}).join(`\n${(0,i.styleText)("yellow",fe)} `)}\n${e}\n`}default:{const e=this.options.map((e,t,i)=>{const o=n.includes(e.value)||!0===e.group&&this.isGroupSelected(`${e.value}`),s=t===this.cursor,r=!s&&"string"==typeof e.group&&this.options[this.cursor].value===e.group;let c="";return c=a(e,r?o?"group-active-selected":"group-active":s&&o?"active-selected":o?"selected":s?"active":"inactive",i),`${0===t||c.startsWith("\n")?"":" "}${c}`}).join(`\n${(0,i.styleText)("cyan",fe)}`),o=e.startsWith("\n")?"":" ";return`${t}${(0,i.styleText)("cyan",fe)}${o}${e}\n${(0,i.styleText)("cyan",he)}\n`}}}}).prompt()},gt={message:(e=[],{symbol:t=(0,i.styleText)("gray",fe),secondarySymbol:n=(0,i.styleText)("gray",fe),output:a=process.stdout,spacing:o=1,withGuide:s}={})=>{const r=[],c=s??M.withGuide,l=c?n:"",p=c?`${t} `:"",u=c?`${n} `:"";for(let e=0;e<o;e++)r.push(l);const d=Array.isArray(e)?e:e.split("\n");if(d.length>0){const[e,...i]=d;e.length>0?r.push(`${p}${e}`):r.push(c?t:"");for(const e of i)e.length>0?r.push(`${u}${e}`):r.push(c?n:"")}a.write(`${r.join("\n")}\n`)},info:(e,t)=>{gt.message(e,{...t,symbol:(0,i.styleText)("blue",Ne)})},success:(e,t)=>{gt.message(e,{...t,symbol:(0,i.styleText)("green",Ae)})},step:(e,t)=>{gt.message(e,{...t,symbol:(0,i.styleText)("green",de)})},warn:(e,t)=>{gt.message(e,{...t,symbol:(0,i.styleText)("yellow",Pe)})},warning:(e,t)=>{gt.warn(e,t)},error:(e,t)=>{gt.message(e,{...t,symbol:(0,i.styleText)("red",je)})}},xt=(e="",t)=>{const n=t?.output??process.stdout,a=t?.withGuide??M.withGuide?`${(0,i.styleText)("gray",he)} `:"";n.write(`${a}${(0,i.styleText)("red",e)}\n\n`)},vt=(e="",t)=>{const n=t?.output??process.stdout,a=t?.withGuide??M.withGuide?`${(0,i.styleText)("gray",me)} `:"";n.write(`${a}${e}\n`)},yt=(e="",t)=>{const n=t?.output??process.stdout,a=t?.withGuide??M.withGuide?`${(0,i.styleText)("gray",fe)}\n${(0,i.styleText)("gray",he)} `:"";n.write(`${a}${e}\n\n`)},bt=(e,t)=>e.split("\n").map(e=>t(e)).join("\n"),wt=e=>{const t=(e,t)=>{const n=e.label??String(e.value);return"disabled"===t?`${(0,i.styleText)("gray",_e)} ${bt(n,e=>(0,i.styleText)(["strikethrough","gray"],e))}${e.hint?` ${(0,i.styleText)("dim",`(${e.hint??"disabled"})`)}`:""}`:"active"===t?`${(0,i.styleText)("cyan",be)} ${n}${e.hint?` ${(0,i.styleText)("dim",`(${e.hint})`)}`:""}`:"selected"===t?`${(0,i.styleText)("green",we)} ${bt(n,e=>(0,i.styleText)("dim",e))}${e.hint?` ${(0,i.styleText)("dim",`(${e.hint})`)}`:""}`:"cancelled"===t?`${bt(n,e=>(0,i.styleText)(["strikethrough","dim"],e))}`:"active-selected"===t?`${(0,i.styleText)("green",we)} ${n}${e.hint?` ${(0,i.styleText)("dim",`(${e.hint})`)}`:""}`:"submitted"===t?`${bt(n,e=>(0,i.styleText)("dim",e))}`:`${(0,i.styleText)("dim",_e)} ${bt(n,e=>(0,i.styleText)("dim",e))}`},n=e.required??!0;return new ee({options:e.options,signal:e.signal,input:e.input,output:e.output,initialValues:e.initialValues,required:n,cursorAt:e.cursorAt,validate(e){if(n&&(void 0===e||0===e.length))return`Please select at least one option.\n${(0,i.styleText)("reset",(0,i.styleText)("dim",`Press ${(0,i.styleText)(["gray","bgWhite","inverse"]," space ")} to select, ${(0,i.styleText)("gray",(0,i.styleText)("bgWhite",(0,i.styleText)("inverse"," enter ")))} to submit`))}`},render(){const n=J(e.output,e.message,`${Re(this.state)} `,`${Fe(this.state)} `),a=`${(0,i.styleText)("gray",fe)}\n${n}\n`,o=this.value??[],s=(e,n)=>{if(e.disabled)return t(e,"disabled");const i=o.includes(e.value);return t(e,n&&i?"active-selected":i?"selected":n?"active":"inactive")};switch(this.state){case"submit":{const n=this.options.filter(({value:e})=>o.includes(e)).map(e=>t(e,"submitted")).join((0,i.styleText)("dim",", "))||(0,i.styleText)("dim","none");return`${a}${J(e.output,n,`${(0,i.styleText)("gray",fe)} `)}`}case"cancel":{const n=this.options.filter(({value:e})=>o.includes(e)).map(e=>t(e,"cancelled")).join((0,i.styleText)("dim",", "));return""===n.trim()?`${a}${(0,i.styleText)("gray",fe)}`:`${a}${J(e.output,n,`${(0,i.styleText)("gray",fe)} `)}\n${(0,i.styleText)("gray",fe)}`}case"error":{const t=`${(0,i.styleText)("yellow",fe)} `,n=this.error.split("\n").map((e,t)=>0===t?`${(0,i.styleText)("yellow",he)} ${(0,i.styleText)("yellow",e)}`:` ${e}`).join("\n"),o=a.split("\n").length,r=n.split("\n").length+1;return`${a}${t}${it({output:e.output,options:this.options,cursor:this.cursor,maxItems:e.maxItems,columnPadding:t.length,rowPadding:o+r,style:s}).join(`\n${t}`)}\n${n}\n`}default:{const t=`${(0,i.styleText)("cyan",fe)} `,n=a.split("\n").length;return`${a}${t}${it({output:e.output,options:this.options,cursor:this.cursor,maxItems:e.maxItems,columnPadding:t.length,rowPadding:n+2,style:s}).join(`\n${t}`)}\n${(0,i.styleText)("cyan",he)}\n`}}}}).prompt()},_t=e=>(0,i.styleText)("dim",e),St=(e,t,n)=>{const i={hard:!0,trim:!1},a=nt(e,t,i).split("\n"),o=a.reduce((e,t)=>Math.max(Je(t),e),0);return nt(e,t-(a.map(n).reduce((e,t)=>Math.max(Je(t),e),0)-o),i)},Et=(e="",t="",n)=>{const o=n?.output??a.default.stdout,s=n?.withGuide??M.withGuide,r=n?.format??_t,c=["",...St(e,W(o)-6,r).split("\n").map(r),""],l=Je(t),p=Math.max(c.reduce((e,t)=>{const n=Je(t);return n>e?n:e},0),l)+2,u=c.map(e=>`${(0,i.styleText)("gray",fe)} ${e}${" ".repeat(p-Je(e))}${(0,i.styleText)("gray",fe)}`).join("\n"),d=s?`${(0,i.styleText)("gray",fe)}\n`:"",m=s?Te:ke;o.write(`${d}${(0,i.styleText)("green",de)} ${(0,i.styleText)("reset",t)} ${(0,i.styleText)("gray",Ee.repeat(Math.max(p-l-1,1))+Ce)}\n${u}\n${(0,i.styleText)("gray",m+Ee.repeat(p+2)+$e)}\n`)},Ct=e=>new te({validate:e.validate,mask:e.mask??Se,signal:e.signal,input:e.input,output:e.output,render(){const t=e.withGuide??M.withGuide,n=`${t?`${(0,i.styleText)("gray",fe)}\n`:""}${Fe(this.state)} ${e.message}\n`,a=this.userInputWithCursor,o=this.masked;switch(this.state){case"error":{const a=t?`${(0,i.styleText)("yellow",fe)} `:"",s=t?`${(0,i.styleText)("yellow",he)} `:"",r=o??"";return e.clearOnError&&this.clear(),`${n.trim()}\n${a}${r}\n${s}${(0,i.styleText)("yellow",this.error)}\n`}case"submit":return`${n}${t?`${(0,i.styleText)("gray",fe)} `:""}${o?(0,i.styleText)("dim",o):""}`;case"cancel":return`${n}${t?`${(0,i.styleText)("gray",fe)} `:""}${o?(0,i.styleText)(["strikethrough","dim"],o):""}${o&&t?`\n${(0,i.styleText)("gray",fe)}`:""}`;default:return`${n}${t?`${(0,i.styleText)("cyan",fe)} `:""}${a}\n${t?(0,i.styleText)("cyan",he):""}\n`}}}).prompt(),Tt=e=>{const t=e.validate;return st({...e,initialUserInput:e.initialValue??e.root??process.cwd(),maxItems:5,validate(e){if(!Array.isArray(e)){if(!e)return"Please select a path";if(t)return t(e)}},options(){const t=this.userInput;if(""===t)return[];try{let n;return n=p(t)&&u(t).isDirectory()?t:m(t),d(n).map(e=>{const t=f(n,e);return{name:e,path:t,isDirectory:u(t).isDirectory()}}).filter(({path:n,isDirectory:i})=>n.startsWith(t)&&(e.directory||!i)).map(e=>({value:e.path}))}catch{return[]}}})},$t=e=>(0,i.styleText)("magenta",e),kt=({indicator:e="dots",onCancel:t,output:n=process.stdout,cancelMessage:r,errorMessage:p,frames:u=(oe?["◒","◐","◓","◑"]:["•","o","O","0"]),delay:d=(oe?80:120),signal:m,...f}={})=>{const x=se();let v,y,b,w=!1,_=!1,S="",E=performance.now();const C=W(n),T=f?.styleFrame??$t,$=e=>{const n=e>1?p??M.messages.error:r??M.messages.cancel;_=1===e,w&&(F(n,e),_&&"function"==typeof t&&t())},k=()=>$(2),O=()=>$(1),N=()=>{if(void 0===b)return;x&&n.write("\n");const e=nt(b,C,{hard:!0,trim:!1}).split("\n");e.length>1&&n.write(h.cursor.up(e.length-1)),n.write(h.cursor.to(0)),n.write(h.erase.down())},A=e=>e.replace(/\.+$/,""),P=e=>{const t=(performance.now()-e)/1e3,n=Math.floor(t/60),i=Math.floor(t%60);return n>0?`[${n}m ${i}s]`:`[${i}s]`},j=f.withGuide??M.withGuide,F=(t="",a=0,o=!1)=>{if(!w)return;w=!1,clearInterval(y),N();const s=0===a?(0,i.styleText)("green",de):1===a?(0,i.styleText)("red",pe):(0,i.styleText)("red",ue);S=t??S,o||("timer"===e?n.write(`${s} ${S} ${P(E)}\n`):n.write(`${s} ${S}\n`)),process.removeListener("uncaughtExceptionMonitor",k),process.removeListener("unhandledRejection",k),process.removeListener("SIGINT",O),process.removeListener("SIGTERM",O),process.removeListener("exit",$),m&&m.removeEventListener("abort",O),v()};return{start:(t="")=>{w=!0,v=function({input:e=a.stdin,output:t=a.stdout,overwrite:n=!0,hideCursor:i=!0}={}){const r=s({input:e,output:t,prompt:"",tabSize:1});c(e,r),e instanceof g.ReadStream&&e.isTTY&&e.setRawMode(!0);const p=(a,{name:s,sequence:r})=>{if(z([String(a),s,r],"cancel"))return i&&t.write(h.cursor.show),void process.exit(0);n&&l(t,"return"===s?0:-1,"return"===s?-1:0,()=>{o(t,1,()=>{e.once("keypress",p)})})};return i&&t.write(h.cursor.hide),e.once("keypress",p),()=>{e.off("keypress",p),i&&t.write(h.cursor.show),e instanceof g.ReadStream&&e.isTTY&&!U&&e.setRawMode(!1),r.terminal=!1,r.close()}}({output:n}),S=A(t),E=performance.now(),j&&n.write(`${(0,i.styleText)("gray",fe)}\n`);let r=0,p=0;process.on("uncaughtExceptionMonitor",k),process.on("unhandledRejection",k),process.on("SIGINT",O),process.on("SIGTERM",O),process.on("exit",$),m&&m.addEventListener("abort",O),y=setInterval(()=>{if(x&&S===b)return;N(),b=S;const t=T(u[r]);let i;if(x)i=`${t} ${S}...`;else if("timer"===e)i=`${t} ${S} ${P(E)}`;else{const e=".".repeat(Math.floor(p)).slice(0,3);i=`${t} ${S}${e}`}const a=nt(i,C,{hard:!0,trim:!1});n.write(a),r=r+1<u.length?r+1:0,p=p<4?p+.125:0},d)},stop:(e="")=>F(e,0),message:(e="")=>{S=A(e??S)},cancel:(e="")=>F(e,1),error:(e="")=>F(e,2),clear:()=>F("",0,!0),get isCancelled(){return _}}},Ot={light:ce("─","-"),heavy:ce("━","="),block:ce("█","#")};function Nt({style:e="heavy",max:t=100,size:n=40,...a}={}){const o=kt(a);let s=0,r="";const c=Math.max(1,t),l=Math.max(1,n),p=(t,n)=>{const a=Math.floor(s/c*l);return`${(e=>{switch(e){case"initial":case"active":default:return e=>(0,i.styleText)("magenta",e);case"error":case"cancel":return e=>(0,i.styleText)("red",e);case"submit":return e=>(0,i.styleText)("green",e)}})(t)(Ot[e].repeat(a))}${(0,i.styleText)("dim",Ot[e].repeat(l-a))} ${n}`},u=(e=1,t)=>{s=Math.min(c,e+s),o.message(p("active",t??r)),r=t??r};return{start:(e="")=>{r=e,o.start(p("initial",e))},stop:o.stop,cancel:o.cancel,error:o.error,clear:o.clear,advance:u,isCancelled:o.isCancelled,message:e=>u(0,e)}}const At=(e,t)=>e.includes("\n")?e.split("\n").map(e=>t(e)).join("\n"):t(e),Pt=e=>{const t=(e,t)=>{const n=e.label??String(e.value);switch(t){case"disabled":return`${(0,i.styleText)("gray",ye)} ${At(n,e=>(0,i.styleText)("gray",e))}${e.hint?` ${(0,i.styleText)("dim",`(${e.hint??"disabled"})`)}`:""}`;case"selected":return`${At(n,e=>(0,i.styleText)("dim",e))}`;case"active":return`${(0,i.styleText)("green",ve)} ${n}${e.hint?` ${(0,i.styleText)("dim",`(${e.hint})`)}`:""}`;case"cancelled":return`${At(n,e=>(0,i.styleText)(["strikethrough","dim"],e))}`;default:return`${(0,i.styleText)("dim",ye)} ${At(n,e=>(0,i.styleText)("dim",e))}`}};return new ne({options:e.options,signal:e.signal,input:e.input,output:e.output,initialValue:e.initialValue,render(){const n=e.withGuide??M.withGuide,a=`${Fe(this.state)} `,o=`${Re(this.state)} `,s=J(e.output,e.message,o,a),r=`${n?`${(0,i.styleText)("gray",fe)}\n`:""}${s}\n`;switch(this.state){case"submit":{const a=n?`${(0,i.styleText)("gray",fe)} `:"";return`${r}${J(e.output,t(this.options[this.cursor],"selected"),a)}`}case"cancel":{const a=n?`${(0,i.styleText)("gray",fe)} `:"";return`${r}${J(e.output,t(this.options[this.cursor],"cancelled"),a)}${n?`\n${(0,i.styleText)("gray",fe)}`:""}`}default:{const a=n?`${(0,i.styleText)("cyan",fe)} `:"",o=n?(0,i.styleText)("cyan",he):"",s=r.split("\n").length,c=n?2:1;return`${r}${a}${it({output:e.output,cursor:this.cursor,options:this.options,maxItems:e.maxItems,columnPadding:a.length,rowPadding:s+c,style:(e,n)=>t(e,e.disabled?"disabled":n?"active":"inactive")}).join(`\n${a}`)}\n${o}\n`}}}}).prompt()},jt=e=>{const t=(e,t="inactive")=>{const n=e.label??String(e.value);return"selected"===t?`${(0,i.styleText)("dim",n)}`:"cancelled"===t?`${(0,i.styleText)(["strikethrough","dim"],n)}`:"active"===t?`${(0,i.styleText)(["bgCyan","gray"],` ${e.value} `)} ${n}${e.hint?` ${(0,i.styleText)("dim",`(${e.hint})`)}`:""}`:`${(0,i.styleText)(["gray","bgWhite","inverse"],` ${e.value} `)} ${n}${e.hint?` ${(0,i.styleText)("dim",`(${e.hint})`)}`:""}`};return new ie({options:e.options,signal:e.signal,input:e.input,output:e.output,initialValue:e.initialValue,caseSensitive:e.caseSensitive,render(){const n=e.withGuide??M.withGuide,a=`${n?`${(0,i.styleText)("gray",fe)}\n`:""}${Fe(this.state)} ${e.message}\n`;switch(this.state){case"submit":{const o=n?`${(0,i.styleText)("gray",fe)} `:"",s=this.options.find(e=>e.value===this.value)??e.options[0];return`${a}${J(e.output,t(s,"selected"),o)}`}case"cancel":{const o=n?`${(0,i.styleText)("gray",fe)} `:"";return`${a}${J(e.output,t(this.options[0],"cancelled"),o)}${n?`\n${(0,i.styleText)("gray",fe)}`:""}`}default:{const o=n?`${(0,i.styleText)("cyan",fe)} `:"",s=n?(0,i.styleText)("cyan",he):"";return`${a}${this.options.map((n,i)=>J(e.output,t(n,i===this.cursor?"active":"inactive"),o)).join("\n")}\n${s}\n`}}}}).prompt()},Ft=`${(0,i.styleText)("gray",fe)} `,Rt={message:async(e,{symbol:t=(0,i.styleText)("gray",fe)}={})=>{process.stdout.write(`${(0,i.styleText)("gray",fe)}\n${t} `);let n=3;for await(let t of e){t=t.replace(/\n/g,`\n${Ft}`),t.includes("\n")&&(n=3+(0,i.stripVTControlCharacters)(t.slice(t.lastIndexOf("\n"))).length);const e=(0,i.stripVTControlCharacters)(t).length;n+e<process.stdout.columns?(n+=e,process.stdout.write(t)):(process.stdout.write(`\n${Ft}${t.trimStart()}`),n=3+(0,i.stripVTControlCharacters)(t.trimStart()).length)}process.stdout.write("\n")},info:e=>Rt.message(e,{symbol:(0,i.styleText)("blue",Ne)}),success:e=>Rt.message(e,{symbol:(0,i.styleText)("green",Ae)}),step:e=>Rt.message(e,{symbol:(0,i.styleText)("green",de)}),warn:e=>Rt.message(e,{symbol:(0,i.styleText)("yellow",Pe)}),warning:e=>Rt.warn(e),error:e=>Rt.message(e,{symbol:(0,i.styleText)("red",je)})},Lt=async(e,t)=>{for(const n of e){if(!1===n.enabled)continue;const e=kt(t);e.start(n.title);const i=await n.task(e.message);e.stop(i||n.title)}},It=e=>{const t=e.output??process.stdout,n=W(t),a=(0,i.styleText)("gray",fe),o=e.spacing??1,s=!0===e.retainLog,r=!se()&&re(t);t.write(`${a}\n`),t.write(`${(0,i.styleText)("green",de)} ${e.title}\n`);for(let e=0;e<o;e++)t.write(`${a}\n`);const c=[{value:"",full:""}];let l=!1;const p=e=>{if(0===c.length)return;let i=0;e&&(i+=o+2);for(const e of c){const{value:t,result:a}=e;let o=a?.message??t;if(0===o.length)continue;void 0===a&&void 0!==e.header&&""!==e.header&&(o+=`\n${e.header}`);const s=o.split("\n").reduce((e,t)=>""===t?e+1:e+Math.ceil((t.length+3)/n),0);i+=s}i>0&&(i+=1,t.write(h.erase.lines(i)))},u=(e,n,s)=>{const r=s?`${e.full}\n${e.value}`:e.value;void 0!==e.header&&""!==e.header&&gt.message(e.header.split("\n").map(e=>(0,i.styleText)("bold",e)),{output:t,secondarySymbol:a,symbol:a,spacing:0}),gt.message(r.split("\n").map(e=>(0,i.styleText)("dim",e)),{output:t,secondarySymbol:a,symbol:a,spacing:n??o})},d=()=>{for(const e of c){const{header:t,value:n,full:i}=e;(void 0===t||0===t.length)&&0===n.length||u(e,void 0,!0===s&&i.length>0)}},m=(t,n,i)=>{if(p(!1),(!0!==i?.raw||!l)&&""!==t.value&&(t.value+="\n"),t.value+=(e=>e.replace(/\x1b\[(?:\d+;)*\d*[ABCDEFGHfJKSTsu]|\x1b\[(s|u)/g,""))(n),l=!0===i?.raw,void 0!==e.limit){const n=t.value.split("\n"),i=n.length-e.limit;if(i>0){const e=n.splice(0,i);s&&(t.full+=(""===t.full?"":"\n")+e.join("\n"))}t.value=n.join("\n")}r&&f()},f=()=>{for(const e of c)e.result?"error"===e.result.status?gt.error(e.result.message,{output:t,secondarySymbol:a,spacing:0}):gt.success(e.result.message,{output:t,secondarySymbol:a,spacing:0}):""!==e.value&&u(e,0)},g=(e,t)=>{p(!1),e.result=t,r&&f()};return{message(e,t){m(c[0],e,t)},group(e){const t={header:e,value:"",full:""};return c.push(t),{message(e,n){m(t,e,n)},error(e){g(t,{status:"error",message:e})},success(e){g(t,{status:"success",message:e})}}},error(e,n){p(!0),gt.error(e,{output:t,secondarySymbol:a,spacing:1}),!1!==n?.showLog&&d(),c.splice(1,c.length-1),c[0].value="",c[0].full=""},success(e,n){p(!0),gt.success(e,{output:t,secondarySymbol:a,spacing:1}),!0===n?.showLog&&d(),c.splice(1,c.length-1),c[0].value="",c[0].full=""}}},Dt=e=>new ae({validate:e.validate,placeholder:e.placeholder,defaultValue:e.defaultValue,initialValue:e.initialValue,output:e.output,signal:e.signal,input:e.input,render(){const t=e?.withGuide??M.withGuide,n=`${t?`${(0,i.styleText)("gray",fe)}\n`:""}${Fe(this.state)} ${e.message}\n`,a=e.placeholder?(0,i.styleText)("inverse",e.placeholder[0])+(0,i.styleText)("dim",e.placeholder.slice(1)):(0,i.styleText)(["inverse","hidden"],"_"),o=this.userInput?this.userInputWithCursor:a,s=this.value??"";switch(this.state){case"error":{const e=this.error?` ${(0,i.styleText)("yellow",this.error)}`:"",a=t?`${(0,i.styleText)("yellow",fe)} `:"",s=t?(0,i.styleText)("yellow",he):"";return`${n.trim()}\n${a}${o}\n${s}${e}\n`}case"submit":{const e=s?` ${(0,i.styleText)("dim",s)}`:"";return`${n}${t?(0,i.styleText)("gray",fe):""}${e}`}case"cancel":{const e=s?` ${(0,i.styleText)(["strikethrough","dim"],s)}`:"",a=t?(0,i.styleText)("gray",fe):"";return`${n}${a}${e}${s.trim()?`\n${a}`:""}`}default:return`${n}${t?`${(0,i.styleText)("cyan",fe)} `:""}${o}\n${t?(0,i.styleText)("cyan",he):""}\n`}}}).prompt()},5249(e,t,n){n.d(t,{Chalk:()=>k,backgroundColorNames:()=>l,backgroundColors:()=>l,chalkStderr:()=>D,colorNames:()=>p,colors:()=>p,default:()=>M,foregroundColorNames:()=>c,foregroundColors:()=>c,modifierNames:()=>r,modifiers:()=>r,supportsColor:()=>w,supportsColorStderr:()=>_}),n.r(t);const i=(e=0)=>t=>`[${t+e}m`,a=(e=0)=>t=>`[${38+e};5;${t}m`,o=(e=0)=>(t,n,i)=>`[${38+e};2;${t};${n};${i}m`,s={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]}},r=Object.keys(s.modifier),c=Object.keys(s.color),l=Object.keys(s.bgColor),p=[...c,...l],u=function(){const e=new Map;for(const[t,n]of Object.entries(s)){for(const[t,i]of Object.entries(n))s[t]={open:`[${i[0]}m`,close:`[${i[1]}m`},n[t]=s[t],e.set(i[0],i[1]);Object.defineProperty(s,t,{value:n,enumerable:!1})}return Object.defineProperty(s,"codes",{value:e,enumerable:!1}),s.color.close="",s.bgColor.close="",s.color.ansi=i(),s.color.ansi256=a(),s.color.ansi16m=o(),s.bgColor.ansi=i(10),s.bgColor.ansi256=a(10),s.bgColor.ansi16m=o(10),Object.defineProperties(s,{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 i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,255&i]},enumerable:!1},hexToAnsi256:{value:e=>s.rgbToAnsi256(...s.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return e-8+90;let t,n,i;if(e>=232)t=(10*(e-232)+8)/255,n=t,i=t;else{const a=(e-=16)%36;t=Math.floor(e/36)/5,n=Math.floor(a/6)/5,i=a%6/5}const a=2*Math.max(t,n,i);if(0===a)return 30;let o=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(t));return 2===a&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(e,t,n)=>s.ansi256ToAnsi(s.rgbToAnsi256(e,t,n)),enumerable:!1},hexToAnsi:{value:e=>s.ansi256ToAnsi(s.hexToAnsi256(e)),enumerable:!1}}),s}();var d=n(7721),m=n(2607);function f(e,t=(globalThis.Deno?globalThis.Deno.args:d.default.argv)){const n=e.startsWith("-")?"":1===e.length?"-":"--",i=t.indexOf(n+e),a=t.indexOf("--");return-1!==i&&(-1===a||i<a)}const{env:g}=d.default;let x;function v(e,t={}){return 0!==(n=function(e,{streamIsTTY:t,sniffFlags:n=!0}={}){const i=function(){if("FORCE_COLOR"in g)return"true"===g.FORCE_COLOR?1:"false"===g.FORCE_COLOR?0:0===g.FORCE_COLOR.length?1:Math.min(Number.parseInt(g.FORCE_COLOR,10),3)}();void 0!==i&&(x=i);const a=n?x:i;if(0===a)return 0;if(n){if(f("color=16m")||f("color=full")||f("color=truecolor"))return 3;if(f("color=256"))return 2}if("TF_BUILD"in g&&"AGENT_NAME"in g)return 1;if(e&&!t&&void 0===a)return 0;const o=a||0;if("dumb"===g.TERM)return o;if("win32"===d.default.platform){const e=h.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in g)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(e=>e in g)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(e=>e in g)||"codeship"===g.CI_NAME?1:o;if("TEAMCITY_VERSION"in g)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(g.TEAMCITY_VERSION)?1:0;if("truecolor"===g.COLORTERM)return 3;if("xterm-kitty"===g.TERM)return 3;if("xterm-ghostty"===g.TERM)return 3;if("wezterm"===g.TERM)return 3;if("TERM_PROGRAM"in g){const e=Number.parseInt((g.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(g.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(g.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(g.TERM)||"COLORTERM"in g?1:o}(e,{streamIsTTY:e&&e.isTTY,...t}))&&{level:n,hasBasic:!0,has256:n>=2,has16m:n>=3};var n}f("no-color")||f("no-colors")||f("color=false")||f("color=never")?x=0:(f("color")||f("colors")||f("color=true")||f("color=always"))&&(x=1);const y={stdout:v({isTTY:m.default.isatty(1)}),stderr:v({isTTY:m.default.isatty(2)})};function b(e,t,n){let i=e.indexOf(t);if(-1===i)return e;const a=t.length;let o=0,s="";do{s+=e.slice(o,i)+t+n,o=i+a,i=e.indexOf(t,o)}while(-1!==i);return s+=e.slice(o),s}const{stdout:w,stderr:_}=y,S=Symbol("GENERATOR"),E=Symbol("STYLER"),C=Symbol("IS_EMPTY"),T=["ansi","ansi","ansi256","ansi16m"],$=Object.create(null);class k{constructor(e){return O(e)}}const O=e=>{const t=(...e)=>e.join(" ");return((e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const n=w?w.level:0;e.level=void 0===t.level?n:t.level})(t,e),Object.setPrototypeOf(t,N.prototype),t};function N(e){return O(e)}Object.setPrototypeOf(N.prototype,Function.prototype);for(const[e,t]of Object.entries(u))$[e]={get(){const n=R(this,F(t.open,t.close,this[E]),this[C]);return Object.defineProperty(this,e,{value:n}),n}};$.visible={get(){const e=R(this,this[E],!0);return Object.defineProperty(this,"visible",{value:e}),e}};const A=(e,t,n,...i)=>"rgb"===e?"ansi16m"===t?u[n].ansi16m(...i):"ansi256"===t?u[n].ansi256(u.rgbToAnsi256(...i)):u[n].ansi(u.rgbToAnsi(...i)):"hex"===e?A("rgb",t,n,...u.hexToRgb(...i)):u[n][e](...i),P=["rgb","hex","ansi256"];for(const e of P)$[e]={get(){const{level:t}=this;return function(...n){const i=F(A(e,T[t],"color",...n),u.color.close,this[E]);return R(this,i,this[C])}}},$["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const{level:t}=this;return function(...n){const i=F(A(e,T[t],"bgColor",...n),u.bgColor.close,this[E]);return R(this,i,this[C])}}};const j=Object.defineProperties(()=>{},{...$,level:{enumerable:!0,get(){return this[S].level},set(e){this[S].level=e}}}),F=(e,t,n)=>{let i,a;return void 0===n?(i=e,a=t):(i=n.openAll+e,a=t+n.closeAll),{open:e,close:t,openAll:i,closeAll:a,parent:n}},R=(e,t,n)=>{const i=(...e)=>L(i,1===e.length?""+e[0]:e.join(" "));return Object.setPrototypeOf(i,j),i[S]=e,i[E]=t,i[C]=n,i},L=(e,t)=>{if(e.level<=0||!t)return e[C]?"":t;let n=e[E];if(void 0===n)return t;const{openAll:i,closeAll:a}=n;if(t.includes(""))for(;void 0!==n;)t=b(t,n.close,n.open),n=n.parent;const o=t.indexOf("\n");return-1!==o&&(t=function(e,t,n,i){let a=0,o="";do{const s="\r"===e[i-1];o+=e.slice(a,s?i-1:i)+t+(s?"\r\n":"\n")+n,a=i+1,i=e.indexOf("\n",a)}while(-1!==i);return o+=e.slice(a),o}(t,a,i,o)),i+t+a};Object.defineProperties(N.prototype,$);const I=N(),D=N({level:_?_.level:0}),M=I},5857(e,t,n){n.d(t,{default:()=>Se,oraPromise:()=>Ee,spinners:()=>P}),n.r(t);var i=n(7721),a=n(4472),o=n(5249);const s=(e,t,n,i)=>{if("length"===n||"prototype"===n)return;if("arguments"===n||"caller"===n)return;const a=Object.getOwnPropertyDescriptor(e,n),o=Object.getOwnPropertyDescriptor(t,n);!r(a,o)&&i||Object.defineProperty(e,n,o)},r=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)},c=(e,t)=>`/* Wrapped ${e}*/\n${t}`,l=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),p=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name");const u=new WeakMap,d=(e,t={})=>{if("function"!=typeof e)throw new TypeError("Expected a function");let n,i=0;const a=e.displayName||e.name||"<anonymous>",o=function(...s){if(u.set(o,++i),1===i)n=e.apply(this,s),e=void 0;else if(!0===t.throw)throw new Error(`Function \`${a}\` can only be called once`);return n};return function(e,t,{ignoreNonConfigurable:n=!1}={}){const{name:i}=e;for(const i of Reflect.ownKeys(t))s(e,t,i,n);((e,t)=>{const n=Object.getPrototypeOf(t);n!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,n)})(e,t),((e,t,n)=>{const i=""===n?"":`with ${n.trim()}() `,a=c.bind(null,i,t.toString());Object.defineProperty(a,"name",p);const{writable:o,enumerable:s,configurable:r}=l;Object.defineProperty(e,"toString",{value:a,writable:o,enumerable:s,configurable:r})})(e,t,i)}(o,e),u.set(o,i),o};d.callCount=e=>{if(!u.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return u.get(e)};const m=d,f=[];f.push("SIGHUP","SIGINT","SIGTERM"),"win32"!==process.platform&&f.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&f.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");const h=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,g=Symbol.for("signal-exit emitter"),x=globalThis,v=Object.defineProperty.bind(Object);class y{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(x[g])return x[g];v(x,g,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(e,t){this.listeners[e].push(t)}removeListener(e,t){const n=this.listeners[e],i=n.indexOf(t);-1!==i&&(0===i&&1===n.length?n.length=0:n.splice(i,1))}emit(e,t,n){if(this.emitted[e])return!1;this.emitted[e]=!0;let i=!1;for(const a of this.listeners[e])i=!0===a(t,n)||i;return"exit"===e&&(i=this.emit("afterExit",t,n)||i),i}}class b{}const w=globalThis.process,{onExit:_,load:S,unload:E}=(C=h(w)?new class extends b{#s="win32"===w.platform?"SIGINT":"SIGHUP";#r=new y;#c;#l;#p;#u={};#d=!1;constructor(e){super(),this.#c=e,this.#u={};for(const t of f)this.#u[t]=()=>{const n=this.#c.listeners(t);let{count:i}=this.#r;const a=e;if("object"==typeof a.__signal_exit_emitter__&&"number"==typeof a.__signal_exit_emitter__.count&&(i+=a.__signal_exit_emitter__.count),n.length===i){this.unload();const n=this.#r.emit("exit",null,t),i="SIGHUP"===t?this.#s:t;n||e.kill(e.pid,i)}};this.#p=e.reallyExit,this.#l=e.emit}onExit(e,t){if(!h(this.#c))return()=>{};!1===this.#d&&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.#d){this.#d=!0,this.#r.count+=1;for(const e of f)try{const t=this.#u[e];t&&this.#c.on(e,t)}catch(e){}this.#c.emit=(e,...t)=>this.#m(e,...t),this.#c.reallyExit=e=>this.#f(e)}}unload(){this.#d&&(this.#d=!1,f.forEach(e=>{const t=this.#u[e];if(!t)throw new Error("Listener not defined for signal: "+e);try{this.#c.removeListener(e,t)}catch(e){}}),this.#c.emit=this.#l,this.#c.reallyExit=this.#p,this.#r.count-=1)}#f(e){return h(this.#c)?(this.#c.exitCode=e||0,this.#r.emit("exit",this.#c.exitCode,null),this.#p.call(this.#c,this.#c.exitCode)):0}#m(e,...t){const n=this.#l;if("exit"===e&&h(this.#c)){"number"==typeof t[0]&&(this.#c.exitCode=t[0]);const i=n.call(this.#c,e,...t);return this.#r.emit("exit",this.#c.exitCode,null),i}return n.call(this.#c,e,...t)}}(w):new class extends b{onExit(){return()=>{}}load(){}unload(){}},{onExit:(e,t)=>C.onExit(e,t),load:()=>C.load(),unload:()=>C.unload()});var C;const T=i.default.stderr.isTTY?i.default.stderr:i.default.stdout.isTTY?i.default.stdout:void 0,$=T?m(()=>{_(()=>{T.write("[?25h")},{alwaysLast:!0})}):()=>{};let k=!1;const O={show:(e=i.default.stderr)=>{e.isTTY&&(k=!1,e.write("[?25h"))},hide:(e=i.default.stderr)=>{e.isTTY&&($(),k=!0,e.write("[?25l"))},toggle:(e,t)=>{void 0!==e&&(k=e),k?O.show(t):O.hide(t)}},N=O,A=JSON.parse('{"dots":{"interval":80,"frames":["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"]},"dots2":{"interval":80,"frames":["⣾","⣽","⣻","⢿","⡿","⣟","⣯","⣷"]},"dots3":{"interval":80,"frames":["⠋","⠙","⠚","⠞","⠖","⠦","⠴","⠲","⠳","⠓"]},"dots4":{"interval":80,"frames":["⠄","⠆","⠇","⠋","⠙","⠸","⠰","⠠","⠰","⠸","⠙","⠋","⠇","⠆"]},"dots5":{"interval":80,"frames":["⠋","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋"]},"dots6":{"interval":80,"frames":["⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠴","⠲","⠒","⠂","⠂","⠒","⠚","⠙","⠉","⠁"]},"dots7":{"interval":80,"frames":["⠈","⠉","⠋","⠓","⠒","⠐","⠐","⠒","⠖","⠦","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈"]},"dots8":{"interval":80,"frames":["⠁","⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈","⠈"]},"dots9":{"interval":80,"frames":["⢹","⢺","⢼","⣸","⣇","⡧","⡗","⡏"]},"dots10":{"interval":80,"frames":["⢄","⢂","⢁","⡁","⡈","⡐","⡠"]},"dots11":{"interval":100,"frames":["⠁","⠂","⠄","⡀","⢀","⠠","⠐","⠈"]},"dots12":{"interval":80,"frames":["⢀⠀","⡀⠀","⠄⠀","⢂⠀","⡂⠀","⠅⠀","⢃⠀","⡃⠀","⠍⠀","⢋⠀","⡋⠀","⠍⠁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⢈⠩","⡀⢙","⠄⡙","⢂⠩","⡂⢘","⠅⡘","⢃⠨","⡃⢐","⠍⡐","⢋⠠","⡋⢀","⠍⡁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⠈⠩","⠀⢙","⠀⡙","⠀⠩","⠀⢘","⠀⡘","⠀⠨","⠀⢐","⠀⡐","⠀⠠","⠀⢀","⠀⡀"]},"dots13":{"interval":80,"frames":["⣼","⣹","⢻","⠿","⡟","⣏","⣧","⣶"]},"dots14":{"interval":80,"frames":["⠉⠉","⠈⠙","⠀⠹","⠀⢸","⠀⣰","⢀⣠","⣀⣀","⣄⡀","⣆⠀","⡇⠀","⠏⠀","⠋⠁"]},"dots8Bit":{"interval":80,"frames":["⠀","⠁","⠂","⠃","⠄","⠅","⠆","⠇","⡀","⡁","⡂","⡃","⡄","⡅","⡆","⡇","⠈","⠉","⠊","⠋","⠌","⠍","⠎","⠏","⡈","⡉","⡊","⡋","⡌","⡍","⡎","⡏","⠐","⠑","⠒","⠓","⠔","⠕","⠖","⠗","⡐","⡑","⡒","⡓","⡔","⡕","⡖","⡗","⠘","⠙","⠚","⠛","⠜","⠝","⠞","⠟","⡘","⡙","⡚","⡛","⡜","⡝","⡞","⡟","⠠","⠡","⠢","⠣","⠤","⠥","⠦","⠧","⡠","⡡","⡢","⡣","⡤","⡥","⡦","⡧","⠨","⠩","⠪","⠫","⠬","⠭","⠮","⠯","⡨","⡩","⡪","⡫","⡬","⡭","⡮","⡯","⠰","⠱","⠲","⠳","⠴","⠵","⠶","⠷","⡰","⡱","⡲","⡳","⡴","⡵","⡶","⡷","⠸","⠹","⠺","⠻","⠼","⠽","⠾","⠿","⡸","⡹","⡺","⡻","⡼","⡽","⡾","⡿","⢀","⢁","⢂","⢃","⢄","⢅","⢆","⢇","⣀","⣁","⣂","⣃","⣄","⣅","⣆","⣇","⢈","⢉","⢊","⢋","⢌","⢍","⢎","⢏","⣈","⣉","⣊","⣋","⣌","⣍","⣎","⣏","⢐","⢑","⢒","⢓","⢔","⢕","⢖","⢗","⣐","⣑","⣒","⣓","⣔","⣕","⣖","⣗","⢘","⢙","⢚","⢛","⢜","⢝","⢞","⢟","⣘","⣙","⣚","⣛","⣜","⣝","⣞","⣟","⢠","⢡","⢢","⢣","⢤","⢥","⢦","⢧","⣠","⣡","⣢","⣣","⣤","⣥","⣦","⣧","⢨","⢩","⢪","⢫","⢬","⢭","⢮","⢯","⣨","⣩","⣪","⣫","⣬","⣭","⣮","⣯","⢰","⢱","⢲","⢳","⢴","⢵","⢶","⢷","⣰","⣱","⣲","⣳","⣴","⣵","⣶","⣷","⢸","⢹","⢺","⢻","⢼","⢽","⢾","⢿","⣸","⣹","⣺","⣻","⣼","⣽","⣾","⣿"]},"dotsCircle":{"interval":80,"frames":["⢎ ","⠎⠁","⠊⠑","⠈⠱"," ⡱","⢀⡰","⢄⡠","⢆⡀"]},"sand":{"interval":80,"frames":["⠁","⠂","⠄","⡀","⡈","⡐","⡠","⣀","⣁","⣂","⣄","⣌","⣔","⣤","⣥","⣦","⣮","⣶","⣷","⣿","⡿","⠿","⢟","⠟","⡛","⠛","⠫","⢋","⠋","⠍","⡉","⠉","⠑","⠡","⢁"]},"line":{"interval":130,"frames":["-","\\\\","|","/"]},"line2":{"interval":100,"frames":["⠂","-","–","—","–","-"]},"rollingLine":{"interval":80,"frames":["/ "," - "," \\\\ "," |"," |"," \\\\ "," - ","/ "]},"pipe":{"interval":100,"frames":["┤","┘","┴","└","├","┌","┬","┐"]},"simpleDots":{"interval":400,"frames":[". ",".. ","..."," "]},"simpleDotsScrolling":{"interval":200,"frames":[". ",".. ","..."," .."," ."," "]},"star":{"interval":70,"frames":["✶","✸","✹","✺","✹","✷"]},"star2":{"interval":80,"frames":["+","x","*"]},"flip":{"interval":70,"frames":["_","_","_","-","`","`","\'","´","-","_","_","_"]},"hamburger":{"interval":100,"frames":["☱","☲","☴"]},"growVertical":{"interval":120,"frames":["▁","▃","▄","▅","▆","▇","▆","▅","▄","▃"]},"growHorizontal":{"interval":120,"frames":["▏","▎","▍","▌","▋","▊","▉","▊","▋","▌","▍","▎"]},"balloon":{"interval":140,"frames":[" ",".","o","O","@","*"," "]},"balloon2":{"interval":120,"frames":[".","o","O","°","O","o","."]},"noise":{"interval":100,"frames":["▓","▒","░"]},"bounce":{"interval":120,"frames":["⠁","⠂","⠄","⠂"]},"boxBounce":{"interval":120,"frames":["▖","▘","▝","▗"]},"boxBounce2":{"interval":100,"frames":["▌","▀","▐","▄"]},"triangle":{"interval":50,"frames":["◢","◣","◤","◥"]},"binary":{"interval":80,"frames":["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},"arc":{"interval":100,"frames":["◜","◠","◝","◞","◡","◟"]},"circle":{"interval":120,"frames":["◡","⊙","◠"]},"squareCorners":{"interval":180,"frames":["◰","◳","◲","◱"]},"circleQuarters":{"interval":120,"frames":["◴","◷","◶","◵"]},"circleHalves":{"interval":50,"frames":["◐","◓","◑","◒"]},"squish":{"interval":100,"frames":["╫","╪"]},"toggle":{"interval":250,"frames":["⊶","⊷"]},"toggle2":{"interval":80,"frames":["▫","▪"]},"toggle3":{"interval":120,"frames":["□","■"]},"toggle4":{"interval":100,"frames":["■","□","▪","▫"]},"toggle5":{"interval":100,"frames":["▮","▯"]},"toggle6":{"interval":300,"frames":["ဝ","၀"]},"toggle7":{"interval":80,"frames":["⦾","⦿"]},"toggle8":{"interval":100,"frames":["◍","◌"]},"toggle9":{"interval":100,"frames":["◉","◎"]},"toggle10":{"interval":100,"frames":["㊂","㊀","㊁"]},"toggle11":{"interval":50,"frames":["⧇","⧆"]},"toggle12":{"interval":120,"frames":["☗","☖"]},"toggle13":{"interval":80,"frames":["=","*","-"]},"arrow":{"interval":100,"frames":["←","↖","↑","↗","→","↘","↓","↙"]},"arrow2":{"interval":80,"frames":["⬆️ ","↗️ ","➡️ ","↘️ ","⬇️ ","↙️ ","⬅️ ","↖️ "]},"arrow3":{"interval":120,"frames":["▹▹▹▹▹","▸▹▹▹▹","▹▸▹▹▹","▹▹▸▹▹","▹▹▹▸▹","▹▹▹▹▸"]},"bouncingBar":{"interval":80,"frames":["[ ]","[= ]","[== ]","[=== ]","[====]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},"bouncingBall":{"interval":80,"frames":["( ● )","( ● )","( ● )","( ● )","( ●)","( ● )","( ● )","( ● )","( ● )","(● )"]},"smiley":{"interval":200,"frames":["😄 ","😝 "]},"monkey":{"interval":300,"frames":["🙈 ","🙈 ","🙉 ","🙊 "]},"hearts":{"interval":100,"frames":["💛 ","💙 ","💜 ","💚 ","💗 "]},"clock":{"interval":100,"frames":["🕛 ","🕐 ","🕑 ","🕒 ","🕓 ","🕔 ","🕕 ","🕖 ","🕗 ","🕘 ","🕙 ","🕚 "]},"earth":{"interval":180,"frames":["🌍 ","🌎 ","🌏 "]},"material":{"interval":17,"frames":["█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███████▁▁▁▁▁▁▁▁▁▁▁▁▁","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","██████████▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","█████████████▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁██████████████▁▁▁▁","▁▁▁██████████████▁▁▁","▁▁▁▁█████████████▁▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁▁▁████████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁██████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","██████▁▁▁▁▁▁▁▁▁▁▁▁▁█","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁▁█████████████▁▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁▁███████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁▁█████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁"]},"moon":{"interval":80,"frames":["🌑 ","🌒 ","🌓 ","🌔 ","🌕 ","🌖 ","🌗 ","🌘 "]},"runner":{"interval":140,"frames":["🚶 ","🏃 "]},"pong":{"interval":80,"frames":["▐⠂ ▌","▐⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂▌","▐ ⠠▌","▐ ⡀▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐⠠ ▌"]},"shark":{"interval":120,"frames":["▐|\\\\____________▌","▐_|\\\\___________▌","▐__|\\\\__________▌","▐___|\\\\_________▌","▐____|\\\\________▌","▐_____|\\\\_______▌","▐______|\\\\______▌","▐_______|\\\\_____▌","▐________|\\\\____▌","▐_________|\\\\___▌","▐__________|\\\\__▌","▐___________|\\\\_▌","▐____________|\\\\▌","▐____________/|▌","▐___________/|_▌","▐__________/|__▌","▐_________/|___▌","▐________/|____▌","▐_______/|_____▌","▐______/|______▌","▐_____/|_______▌","▐____/|________▌","▐___/|_________▌","▐__/|__________▌","▐_/|___________▌","▐/|____________▌"]},"dqpb":{"interval":100,"frames":["d","q","p","b"]},"weather":{"interval":100,"frames":["☀️ ","☀️ ","☀️ ","🌤 ","⛅️ ","🌥 ","☁️ ","🌧 ","🌨 ","🌧 ","🌨 ","🌧 ","🌨 ","⛈ ","🌨 ","🌧 ","🌨 ","☁️ ","🌥 ","⛅️ ","🌤 ","☀️ ","☀️ "]},"christmas":{"interval":400,"frames":["🌲","🎄"]},"grenade":{"interval":80,"frames":["، ","′ "," ´ "," ‾ "," ⸌"," ⸊"," |"," ⁎"," ⁕"," ෴ "," ⁓"," "," "," "]},"point":{"interval":125,"frames":["∙∙∙","●∙∙","∙●∙","∙∙●","∙∙∙"]},"layer":{"interval":150,"frames":["-","=","≡"]},"betaWave":{"interval":80,"frames":["ρββββββ","βρβββββ","ββρββββ","βββρβββ","ββββρββ","βββββρβ","ββββββρ"]},"fingerDance":{"interval":160,"frames":["🤘 ","🤟 ","🖖 ","✋ ","🤚 ","👆 "]},"fistBump":{"interval":80,"frames":["🤜    🤛 ","🤜    🤛 ","🤜    🤛 "," 🤜  🤛  ","  🤜🤛   "," 🤜✨🤛   ","🤜 ✨ 🤛  "]},"soccerHeader":{"interval":80,"frames":[" 🧑⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 "]},"mindblown":{"interval":160,"frames":["😐 ","😐 ","😮 ","😮 ","😦 ","😦 ","😧 ","😧 ","🤯 ","💥 ","✨ ","  ","  ","  "]},"speaker":{"interval":160,"frames":["🔈 ","🔉 ","🔊 ","🔉 "]},"orangePulse":{"interval":100,"frames":["🔸 ","🔶 ","🟠 ","🟠 ","🔶 "]},"bluePulse":{"interval":100,"frames":["🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},"orangeBluePulse":{"interval":100,"frames":["🔸 ","🔶 ","🟠 ","🟠 ","🔶 ","🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},"timeTravel":{"interval":100,"frames":["🕛 ","🕚 ","🕙 ","🕘 ","🕗 ","🕖 ","🕕 ","🕔 ","🕓 ","🕒 ","🕑 ","🕐 "]},"aesthetic":{"interval":80,"frames":["▰▱▱▱▱▱▱","▰▰▱▱▱▱▱","▰▰▰▱▱▱▱","▰▰▰▰▱▱▱","▰▰▰▰▰▱▱","▰▰▰▰▰▰▱","▰▰▰▰▰▰▰","▰▱▱▱▱▱▱"]},"dwarfFortress":{"interval":80,"frames":[" ██████£££ ","☺██████£££ ","☺██████£££ ","☺▓█████£££ ","☺▓█████£££ ","☺▒█████£££ ","☺▒█████£££ ","☺░█████£££ ","☺░█████£££ ","☺ █████£££ "," ☺█████£££ "," ☺█████£££ "," ☺▓████£££ "," ☺▓████£££ "," ☺▒████£££ "," ☺▒████£££ "," ☺░████£££ "," ☺░████£££ "," ☺ ████£££ "," ☺████£££ "," ☺████£££ "," ☺▓███£££ "," ☺▓███£££ "," ☺▒███£££ "," ☺▒███£££ "," ☺░███£££ "," ☺░███£££ "," ☺ ███£££ "," ☺███£££ "," ☺███£££ "," ☺▓██£££ "," ☺▓██£££ "," ☺▒██£££ "," ☺▒██£££ "," ☺░██£££ "," ☺░██£££ "," ☺ ██£££ "," ☺██£££ "," ☺██£££ "," ☺▓█£££ "," ☺▓█£££ "," ☺▒█£££ "," ☺▒█£££ "," ☺░█£££ "," ☺░█£££ "," ☺ █£££ "," ☺█£££ "," ☺█£££ "," ☺▓£££ "," ☺▓£££ "," ☺▒£££ "," ☺▒£££ "," ☺░£££ "," ☺░£££ "," ☺ £££ "," ☺£££ "," ☺£££ "," ☺▓££ "," ☺▓££ "," ☺▒££ "," ☺▒££ "," ☺░££ "," ☺░££ "," ☺ ££ "," ☺££ "," ☺££ "," ☺▓£ "," ☺▓£ "," ☺▒£ "," ☺▒£ "," ☺░£ "," ☺░£ "," ☺ £ "," ☺£ "," ☺£ "," ☺▓ "," ☺▓ "," ☺▒ "," ☺▒ "," ☺░ "," ☺░ "," ☺ "," ☺ &"," ☺ ☼&"," ☺ ☼ &"," ☺☼ &"," ☺☼ & "," ‼ & "," ☺ & "," ‼ & "," ☺ & "," ‼ & "," ☺ & ","‼ & "," & "," & "," & ░ "," & ▒ "," & ▓ "," & £ "," & ░£ "," & ▒£ "," & ▓£ "," & ££ "," & ░££ "," & ▒££ ","& ▓££ ","& £££ "," ░£££ "," ▒£££ "," ▓£££ "," █£££ "," ░█£££ "," ▒█£££ "," ▓█£££ "," ██£££ "," ░██£££ "," ▒██£££ "," ▓██£££ "," ███£££ "," ░███£££ "," ▒███£££ "," ▓███£££ "," ████£££ "," ░████£££ "," ▒████£££ "," ▓████£££ "," █████£££ "," ░█████£££ "," ▒█████£££ "," ▓█████£££ "," ██████£££ "," ██████£££ "]},"fish":{"interval":80,"frames":["~~~~~~~~~~~~~~~~~~~~","> ~~~~~~~~~~~~~~~~~~","º> ~~~~~~~~~~~~~~~~~","(º> ~~~~~~~~~~~~~~~~","((º> ~~~~~~~~~~~~~~~","<((º> ~~~~~~~~~~~~~~","><((º> ~~~~~~~~~~~~~"," ><((º> ~~~~~~~~~~~~","~ ><((º> ~~~~~~~~~~~","~~ <>((º> ~~~~~~~~~~","~~~ ><((º> ~~~~~~~~~","~~~~ <>((º> ~~~~~~~~","~~~~~ ><((º> ~~~~~~~","~~~~~~ <>((º> ~~~~~~","~~~~~~~ ><((º> ~~~~~","~~~~~~~~ <>((º> ~~~~","~~~~~~~~~ ><((º> ~~~","~~~~~~~~~~ <>((º> ~~","~~~~~~~~~~~ ><((º> ~","~~~~~~~~~~~~ <>((º> ","~~~~~~~~~~~~~ ><((º>","~~~~~~~~~~~~~~ <>((º","~~~~~~~~~~~~~~~ ><((","~~~~~~~~~~~~~~~~ <>(","~~~~~~~~~~~~~~~~~ ><","~~~~~~~~~~~~~~~~~~ <","~~~~~~~~~~~~~~~~~~~~"]}}'),P=A;Object.keys(A);var j=n(2607);const F=j.default?.WriteStream?.prototype?.hasColors?.()??!1,R=(e,t)=>{if(!F)return e=>e;const n=`[${e}m`,i=`[${t}m`;return e=>{const a=e+"";let o=a.indexOf(i);if(-1===o)return n+a+i;let s=n,r=0;const c=(22===t?i:"")+n;for(;-1!==o;)s+=a.slice(r,o)+c,r=o+i.length,o=a.indexOf(i,r);return s+=a.slice(r)+i,s}},L=(R(0,0),R(1,22),R(2,22),R(3,23),R(4,24),R(53,55),R(7,27),R(8,28),R(9,29),R(30,39),R(31,39)),I=R(32,39),D=R(33,39),M=R(34,39);function B(){const{env:e}=i.default,{TERM:t,TERM_PROGRAM:n}=e;return"win32"!==i.default.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}R(35,39),R(36,39),R(37,39),R(90,39),R(40,49),R(41,49),R(42,49),R(43,49),R(44,49),R(45,49),R(46,49),R(47,49),R(100,49),R(91,39),R(92,39),R(93,39),R(94,39),R(95,39),R(96,39),R(97,39),R(101,49),R(102,49),R(103,49),R(104,49),R(105,49),R(106,49),R(107,49);const z=B(),U=M(z?"ℹ":"i"),V=I(z?"✔":"√"),q=D(z?"⚠":"‼"),H=L(z?"✖":"×"),W=function({onlyFirst:e=!1}={}){return new RegExp("(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]",e?void 0:"g")}(),G=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],J=[12288,12288,65281,65376,65504,65510],Y=[8361,8361,65377,65470,65474,65479,65482,65487,65490,65495,65498,65500,65512,65518],K=[32,126,162,163,165,166,172,172,175,175,10214,10221,10629,10630],X=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141],Z=(e,t)=>{let n=0,i=Math.floor(e.length/2)-1;for(;n<=i;){const a=Math.floor((n+i)/2),o=2*a;if(t<e[o])i=a-1;else{if(!(t>e[o+1]))return!0;n=a+1}}return!1},Q=G[0],ee=G.at(-1),te=J[0],ne=J.at(-1),ie=(Y[0],Y.at(-1),K[0],K.at(-1),X[0]),ae=X.at(-1),[oe,se]=function(e){let t=e[0],n=e[1];for(let i=0;i<e.length;i+=2){const a=e[i],o=e[i+1];if(19968>=a&&19968<=o)return[a,o];o-a>n-t&&(t=a,n=o)}return[t,n]}(X);function re(e,{ambiguousAsWide:t=!1}={}){return function(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}(e),(e=>!(e<te||e>ne)&&Z(J,e))(e)||(e=>e>=oe&&e<=se||!(e<ie||e>ae)&&Z(X,e))(e)||t&&(e=>!(e<Q||e>ee)&&Z(G,e))(e)?2:1}const ce=new Intl.Segmenter,le=/^(?:\p{Default_Ignorable_Code_Point}|\p{Control}|\p{Format}|\p{Mark}|\p{Surrogate})+$/v,pe=/^[\p{Default_Ignorable_Code_Point}\p{Control}\p{Format}\p{Mark}\p{Surrogate}]+/v,ue=/^\p{RGI_Emoji}$/v,de=/^[\d#*]\u20E3$/,me=/\p{Extended_Pictographic}/gu;function fe(e){if(e.length>50)return!1;if(de.test(e))return!0;if(e.includes("‍")){const t=e.match(me);return null!==t&&t.length>=2}return!1}function he(e){return e.replace(pe,"")}function ge(e){return le.test(e)}function xe(e,t){let n=0;if(e.length>1)for(const i of e.slice(1))i>="＀"&&i<="￯"&&(n+=re(i.codePointAt(0),t));return n}function ve(e,t={}){if("string"!=typeof e||0===e.length)return 0;const{ambiguousIsNarrow:n=!0,countAnsiEscapeCodes:i=!1}=t;let a=e;if(i||!a.includes("")&&!a.includes("›")||(a=function(e){if("string"!=typeof e)throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.includes("")||e.includes("›")?e.replace(W,""):e}(a)),0===a.length)return 0;if(/^[\u0020-\u007E]*$/.test(a))return a.length;let o=0;const s={ambiguousAsWide:!n};for(const{segment:e}of ce.segment(a))ge(e)||(ue.test(e)||fe(e)?o+=2:(o+=re(he(e).codePointAt(0),s),o+=xe(e,s)));return o}const ye=new class{#h=0;#g;#x=!1;#v=!1;#y=e=>{e?.length&&3===("string"==typeof e?e.codePointAt(0):e[0])&&(i.default.listenerCount("SIGINT")>0?i.default.emit("SIGINT"):i.default.kill(i.default.pid,"SIGINT"))};start(){this.#h++,1===this.#h&&this.#b()}stop(){0!==this.#h&&0===--this.#h&&this.#w()}#b(){const{stdin:e}=i.default;"win32"!==i.default.platform&&e?.isTTY&&"function"==typeof e.setRawMode?(this.#g=e,this.#x=e.isPaused(),this.#v=Boolean(e.isRaw),e.setRawMode(!0),e.prependListener("data",this.#y),this.#x&&e.resume()):this.#g=void 0}#w(){if(!this.#g)return;const e=this.#g;e.off("data",this.#y),e.isTTY&&e.setRawMode?.(this.#v),this.#x&&e.pause(),this.#g=void 0,this.#x=!1,this.#v=!1}},be=Object.freeze(ye),we=new Map;class _e{#_=0;#S=-1;#E=0;#C;#T;#$;#k;#O=new Map;#N=!1;#A;#P;#j=!1;color;#F(e){this.#N=!0;try{return e()}finally{this.#N=!1}}#R(){this.isSpinning&&this.render()}#L(e,t){if(null==e)return"";if("string"==typeof e)return e;if(Buffer.isBuffer(e)||ArrayBuffer.isView(e)){const n="string"==typeof t&&t&&"buffer"!==t?t:"utf8";return Buffer.from(e).toString(n)}return String(e)}#I(e){if(!e)return!1;const t=e.at(-1);return"\n"===t||"\r"===t}#D(){this.#P||(this.#P=setTimeout(()=>{this.#P=void 0,this.isSpinning&&this.#R()},200),"function"==typeof this.#P?.unref&&this.#P.unref())}#M(){this.#P&&(clearTimeout(this.#P),this.#P=void 0)}#B(e,t,n,i){return this.#z(n," ")+e+("string"==typeof t?(e?" ":"")+t:"")+this.#U(i," ")}constructor(e){"string"==typeof e&&(e={text:e}),this.#C={color:"cyan",stream:i.default.stderr,discardStdin:!0,hideCursor:!0,...e},this.color=this.#C.color,this.#$=this.#C.stream,"boolean"!=typeof this.#C.isEnabled&&(this.#C.isEnabled=function({stream:e=process.stdout}={}){return Boolean(e&&e.isTTY&&"dumb"!==process.env.TERM&&!("CI"in process.env))}({stream:this.#$})),"boolean"!=typeof this.#C.isSilent&&(this.#C.isSilent=!1);const t=this.#C.interval;this.spinner=this.#C.spinner,this.#C.interval=t,this.text=this.#C.text,this.prefixText=this.#C.prefixText,this.suffixText=this.#C.suffixText,this.indent=this.#C.indent}get indent(){return this.#C.indent}set indent(e=0){if(!(e>=0&&Number.isInteger(e)))throw new Error("The `indent` option must be an integer from 0 and up");this.#C.indent=e}get interval(){return this.#C.interval??this.#T.interval??100}get spinner(){return this.#T}set spinner(e){if(this.#S=-1,this.#C.interval=void 0,"object"==typeof e){if(!Array.isArray(e.frames)||0===e.frames.length||e.frames.some(e=>"string"!=typeof e))throw new Error("The given spinner must have a non-empty `frames` array of strings");if(void 0!==e.interval&&!(Number.isInteger(e.interval)&&e.interval>0))throw new Error("`spinner.interval` must be a positive integer if provided");this.#T=e}else if(B())if(void 0===e)this.#T=P.dots;else{if("default"===e||!P[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.#T=P[e]}else this.#T=P.line}get text(){return this.#C.text}set text(e=""){this.#C.text=e}get prefixText(){return this.#C.prefixText}set prefixText(e=""){this.#C.prefixText=e}get suffixText(){return this.#C.suffixText}set suffixText(e=""){this.#C.suffixText=e}get isSpinning(){return void 0!==this.#k}#V(e,t,n=!1){const i="function"==typeof e?e():e;return"string"==typeof i&&""!==i?n?t+i:i+t:""}#z(e=this.#C.prefixText,t=" "){return this.#V(e,t,!1)}#U(e=this.#C.suffixText,t=" "){return this.#V(e,t,!0)}#q(e,t){let n=0;for(const i of(0,a.stripVTControlCharacters)(e).split("\n"))n+=Math.max(1,Math.ceil(ve(i)/t));return n}get isEnabled(){return this.#C.isEnabled&&!this.#C.isSilent}set isEnabled(e){if("boolean"!=typeof e)throw new TypeError("The `isEnabled` option must be a boolean");this.#C.isEnabled=e}get isSilent(){return this.#C.isSilent}set isSilent(e){if("boolean"!=typeof e)throw new TypeError("The `isSilent` option must be a boolean");this.#C.isSilent=e}frame(){const e=Date.now();(-1===this.#S||e-this.#E>=this.interval)&&(this.#S=(this.#S+1)%this.#T.frames.length,this.#E=e);const{frames:t}=this.#T;let n=t[this.#S];return this.color&&(n=o.default[this.color](n)),this.#z(this.#C.prefixText," ")+n+("string"==typeof this.text?" "+this.text:"")+this.#U(this.#C.suffixText," ")}clear(){return this.isEnabled&&this.#$.isTTY?(this.#F(()=>{this.#$.cursorTo(0);for(let e=0;e<this.#_;e++)e>0&&this.#$.moveCursor(0,-1),this.#$.clearLine(1);this.#C.indent&&this.#$.cursorTo(this.#C.indent)}),this.#_=0,this):this}#H(e){if(!e||this.#O.has(e)||!e.isTTY||"function"!=typeof e.write)return;we.has(e)&&console.warn("[ora] Multiple concurrent spinners detected. This may cause visual corruption. Use one spinner at a time.");const t=e.write;this.#O.set(e,t),we.set(e,this),e.write=(n,i,a)=>this.#W(e,t,n,i,a)}#G(){if(!this.isEnabled||this.#O.size>0)return;const e=new Set([this.#$,i.default.stdout,i.default.stderr]);for(const t of e)this.#H(t)}#J(){for(const[e,t]of this.#O)e.write=t,we.get(e)===this&&we.delete(e);this.#O.clear()}#W(e,t,n,i,a){if("function"==typeof i&&(a=i,i=void 0),this.#N)return t.call(e,n,i,a);this.clear();const o=this.#L(n,i),s=this.#I(o),r=t.call(e,n,i,a);return s?this.#M():o.length>0&&this.#D(),this.isSpinning&&!this.#P&&this.render(),r}render(){if(!this.isEnabled||this.#A||this.#P)return this;const e=this.#$.isTTY;let t=!1;try{e&&(this.#F(()=>this.#$.write("[?2026h")),t=!0),this.clear();let n=this.frame();const i=this.#$.columns??80,a=this.#q(n,i),o=this.#$.rows;if(o&&o>1&&a>o){const e=n.split("\n"),t=o-1;n=[...e.slice(0,t),"... (content truncated to fit terminal)"].join("\n")}!1===this.#F(()=>this.#$.write(n))&&this.#$.isTTY&&(this.#A=()=>{this.#A=void 0,this.#R()},this.#$.once("drain",this.#A)),this.#_=this.#q(n,i)}finally{t&&this.#F(()=>this.#$.write("[?2026l"))}return this}start(e){if(e&&(this.text=e),this.isSilent)return this;if(!this.isEnabled){const e=this.text?"-":"",t=" ".repeat(this.#C.indent)+this.#B(e,this.text,this.#C.prefixText,this.#C.suffixText);return""!==t.trim()&&this.#F(()=>this.#$.write(t+"\n")),this}return this.isSpinning||(this.#C.hideCursor&&N.hide(this.#$),this.#C.discardStdin&&i.default.stdin.isTTY&&(be.start(),this.#j=!0),this.#G(),this.render(),this.#k=setInterval(this.render.bind(this),this.interval)),this}stop(){return clearInterval(this.#k),this.#k=void 0,this.#S=-1,this.#E=0,this.#M(),this.#J(),this.#A&&(this.#$.removeListener("drain",this.#A),this.#A=void 0),this.isEnabled&&(this.clear(),this.#C.hideCursor&&N.show(this.#$)),this.#j&&(this.#j=!1,be.stop()),this}succeed(e){return this.stopAndPersist({symbol:V,text:e})}fail(e){return this.stopAndPersist({symbol:H,text:e})}warn(e){return this.stopAndPersist({symbol:q,text:e})}info(e){return this.stopAndPersist({symbol:U,text:e})}stopAndPersist(e={}){if(this.isSilent)return this;const t=e.symbol??" ",n=e.text??this.text,i=e.prefixText??this.#C.prefixText,a=e.suffixText??this.#C.suffixText,o=this.#B(t,n,i,a)+"\n";return this.stop(),this.#F(()=>this.#$.write(o)),this}}function Se(e){return new _e(e)}async function Ee(e,t){const n="function"==typeof e,i="function"==typeof e.then;if(!n&&!i)throw new TypeError("Parameter `action` must be a Function or a Promise");const{successText:a,failText:o}="object"==typeof t?t:{successText:void 0,failText:void 0},s=Se(t).start();try{const t=n?e(s):e,i=await t;return s.succeed(void 0===a?void 0:"string"==typeof a?a:a(i)),i}catch(e){throw s.fail(void 0===o?void 0:"string"==typeof o?o:o(e)),e}}},2087(e){e.exports=JSON.parse('{"application/1d-interleaved-parityfec":{"source":"iana"},"application/3gpdash-qoe-report+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/3gpp-ims+xml":{"source":"iana","compressible":true},"application/3gpphal+json":{"source":"iana","compressible":true},"application/3gpphalforms+json":{"source":"iana","compressible":true},"application/a2l":{"source":"iana"},"application/ace+cbor":{"source":"iana"},"application/activemessage":{"source":"iana"},"application/activity+json":{"source":"iana","compressible":true},"application/alto-costmap+json":{"source":"iana","compressible":true},"application/alto-costmapfilter+json":{"source":"iana","compressible":true},"application/alto-directory+json":{"source":"iana","compressible":true},"application/alto-endpointcost+json":{"source":"iana","compressible":true},"application/alto-endpointcostparams+json":{"source":"iana","compressible":true},"application/alto-endpointprop+json":{"source":"iana","compressible":true},"application/alto-endpointpropparams+json":{"source":"iana","compressible":true},"application/alto-error+json":{"source":"iana","compressible":true},"application/alto-networkmap+json":{"source":"iana","compressible":true},"application/alto-networkmapfilter+json":{"source":"iana","compressible":true},"application/alto-updatestreamcontrol+json":{"source":"iana","compressible":true},"application/alto-updatestreamparams+json":{"source":"iana","compressible":true},"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":true,"extensions":["atom"]},"application/atomcat+xml":{"source":"iana","compressible":true,"extensions":["atomcat"]},"application/atomdeleted+xml":{"source":"iana","compressible":true,"extensions":["atomdeleted"]},"application/atomicmail":{"source":"iana"},"application/atomsvc+xml":{"source":"iana","compressible":true,"extensions":["atomsvc"]},"application/atsc-dwd+xml":{"source":"iana","compressible":true,"extensions":["dwd"]},"application/atsc-dynamic-event-message":{"source":"iana"},"application/atsc-held+xml":{"source":"iana","compressible":true,"extensions":["held"]},"application/atsc-rdt+json":{"source":"iana","compressible":true},"application/atsc-rsat+xml":{"source":"iana","compressible":true,"extensions":["rsat"]},"application/atxml":{"source":"iana"},"application/auth-policy+xml":{"source":"iana","compressible":true},"application/bacnet-xdd+zip":{"source":"iana","compressible":false},"application/batch-smtp":{"source":"iana"},"application/bdoc":{"compressible":false,"extensions":["bdoc"]},"application/beep+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/calendar+json":{"source":"iana","compressible":true},"application/calendar+xml":{"source":"iana","compressible":true,"extensions":["xcs"]},"application/call-completion":{"source":"iana"},"application/cals-1840":{"source":"iana"},"application/captive+json":{"source":"iana","compressible":true},"application/cbor":{"source":"iana"},"application/cbor-seq":{"source":"iana"},"application/cccex":{"source":"iana"},"application/ccmp+xml":{"source":"iana","compressible":true},"application/ccxml+xml":{"source":"iana","compressible":true,"extensions":["ccxml"]},"application/cdfx+xml":{"source":"iana","compressible":true,"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":true},"application/cellml+xml":{"source":"iana","compressible":true},"application/cfw":{"source":"iana"},"application/city+json":{"source":"iana","compressible":true},"application/clr":{"source":"iana"},"application/clue+xml":{"source":"iana","compressible":true},"application/clue_info+xml":{"source":"iana","compressible":true},"application/cms":{"source":"iana"},"application/cnrp+xml":{"source":"iana","compressible":true},"application/coap-group+json":{"source":"iana","compressible":true},"application/coap-payload":{"source":"iana"},"application/commonground":{"source":"iana"},"application/conference-info+xml":{"source":"iana","compressible":true},"application/cose":{"source":"iana"},"application/cose-key":{"source":"iana"},"application/cose-key-set":{"source":"iana"},"application/cpl+xml":{"source":"iana","compressible":true,"extensions":["cpl"]},"application/csrattrs":{"source":"iana"},"application/csta+xml":{"source":"iana","compressible":true},"application/cstadata+xml":{"source":"iana","compressible":true},"application/csvm+json":{"source":"iana","compressible":true},"application/cu-seeme":{"source":"apache","extensions":["cu"]},"application/cwt":{"source":"iana"},"application/cybercash":{"source":"iana"},"application/dart":{"compressible":true},"application/dash+xml":{"source":"iana","compressible":true,"extensions":["mpd"]},"application/dash-patch+xml":{"source":"iana","compressible":true,"extensions":["mpp"]},"application/dashdelta":{"source":"iana"},"application/davmount+xml":{"source":"iana","compressible":true,"extensions":["davmount"]},"application/dca-rft":{"source":"iana"},"application/dcd":{"source":"iana"},"application/dec-dx":{"source":"iana"},"application/dialog-info+xml":{"source":"iana","compressible":true},"application/dicom":{"source":"iana"},"application/dicom+json":{"source":"iana","compressible":true},"application/dicom+xml":{"source":"iana","compressible":true},"application/dii":{"source":"iana"},"application/dit":{"source":"iana"},"application/dns":{"source":"iana"},"application/dns+json":{"source":"iana","compressible":true},"application/dns-message":{"source":"iana"},"application/docbook+xml":{"source":"apache","compressible":true,"extensions":["dbk"]},"application/dots+cbor":{"source":"iana"},"application/dskpp+xml":{"source":"iana","compressible":true},"application/dssc+der":{"source":"iana","extensions":["dssc"]},"application/dssc+xml":{"source":"iana","compressible":true,"extensions":["xdssc"]},"application/dvcs":{"source":"iana"},"application/ecmascript":{"source":"iana","compressible":true,"extensions":["es","ecma"]},"application/edi-consent":{"source":"iana"},"application/edi-x12":{"source":"iana","compressible":false},"application/edifact":{"source":"iana","compressible":false},"application/efi":{"source":"iana"},"application/elm+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/elm+xml":{"source":"iana","compressible":true},"application/emergencycalldata.cap+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/emergencycalldata.comment+xml":{"source":"iana","compressible":true},"application/emergencycalldata.control+xml":{"source":"iana","compressible":true},"application/emergencycalldata.deviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.ecall.msd":{"source":"iana"},"application/emergencycalldata.providerinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.serviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.subscriberinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.veds+xml":{"source":"iana","compressible":true},"application/emma+xml":{"source":"iana","compressible":true,"extensions":["emma"]},"application/emotionml+xml":{"source":"iana","compressible":true,"extensions":["emotionml"]},"application/encaprtp":{"source":"iana"},"application/epp+xml":{"source":"iana","compressible":true},"application/epub+zip":{"source":"iana","compressible":false,"extensions":["epub"]},"application/eshop":{"source":"iana"},"application/exi":{"source":"iana","extensions":["exi"]},"application/expect-ct-report+json":{"source":"iana","compressible":true},"application/express":{"source":"iana","extensions":["exp"]},"application/fastinfoset":{"source":"iana"},"application/fastsoap":{"source":"iana"},"application/fdt+xml":{"source":"iana","compressible":true,"extensions":["fdt"]},"application/fhir+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/fhir+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/fido.trusted-apps+json":{"compressible":true},"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":false},"application/framework-attributes+xml":{"source":"iana","compressible":true},"application/geo+json":{"source":"iana","compressible":true,"extensions":["geojson"]},"application/geo+json-seq":{"source":"iana"},"application/geopackage+sqlite3":{"source":"iana"},"application/geoxacml+xml":{"source":"iana","compressible":true},"application/gltf-buffer":{"source":"iana"},"application/gml+xml":{"source":"iana","compressible":true,"extensions":["gml"]},"application/gpx+xml":{"source":"apache","compressible":true,"extensions":["gpx"]},"application/gxf":{"source":"apache","extensions":["gxf"]},"application/gzip":{"source":"iana","compressible":false,"extensions":["gz"]},"application/h224":{"source":"iana"},"application/held+xml":{"source":"iana","compressible":true},"application/hjson":{"extensions":["hjson"]},"application/http":{"source":"iana"},"application/hyperstudio":{"source":"iana","extensions":["stk"]},"application/ibe-key-request+xml":{"source":"iana","compressible":true},"application/ibe-pkg-reply+xml":{"source":"iana","compressible":true},"application/ibe-pp-data":{"source":"iana"},"application/iges":{"source":"iana"},"application/im-iscomposing+xml":{"source":"iana","charset":"UTF-8","compressible":true},"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":true,"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":true,"extensions":["its"]},"application/java-archive":{"source":"apache","compressible":false,"extensions":["jar","war","ear"]},"application/java-serialized-object":{"source":"apache","compressible":false,"extensions":["ser"]},"application/java-vm":{"source":"apache","compressible":false,"extensions":["class"]},"application/javascript":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["js","mjs"]},"application/jf2feed+json":{"source":"iana","compressible":true},"application/jose":{"source":"iana"},"application/jose+json":{"source":"iana","compressible":true},"application/jrd+json":{"source":"iana","compressible":true},"application/jscalendar+json":{"source":"iana","compressible":true},"application/json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["json","map"]},"application/json-patch+json":{"source":"iana","compressible":true},"application/json-seq":{"source":"iana"},"application/json5":{"extensions":["json5"]},"application/jsonml+json":{"source":"apache","compressible":true,"extensions":["jsonml"]},"application/jwk+json":{"source":"iana","compressible":true},"application/jwk-set+json":{"source":"iana","compressible":true},"application/jwt":{"source":"iana"},"application/kpml-request+xml":{"source":"iana","compressible":true},"application/kpml-response+xml":{"source":"iana","compressible":true},"application/ld+json":{"source":"iana","compressible":true,"extensions":["jsonld"]},"application/lgr+xml":{"source":"iana","compressible":true,"extensions":["lgr"]},"application/link-format":{"source":"iana"},"application/load-control+xml":{"source":"iana","compressible":true},"application/lost+xml":{"source":"iana","compressible":true,"extensions":["lostxml"]},"application/lostsync+xml":{"source":"iana","compressible":true},"application/lpf+zip":{"source":"iana","compressible":false},"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":true,"extensions":["mads"]},"application/manifest+json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["webmanifest"]},"application/marc":{"source":"iana","extensions":["mrc"]},"application/marcxml+xml":{"source":"iana","compressible":true,"extensions":["mrcx"]},"application/mathematica":{"source":"iana","extensions":["ma","nb","mb"]},"application/mathml+xml":{"source":"iana","compressible":true,"extensions":["mathml"]},"application/mathml-content+xml":{"source":"iana","compressible":true},"application/mathml-presentation+xml":{"source":"iana","compressible":true},"application/mbms-associated-procedure-description+xml":{"source":"iana","compressible":true},"application/mbms-deregister+xml":{"source":"iana","compressible":true},"application/mbms-envelope+xml":{"source":"iana","compressible":true},"application/mbms-msk+xml":{"source":"iana","compressible":true},"application/mbms-msk-response+xml":{"source":"iana","compressible":true},"application/mbms-protection-description+xml":{"source":"iana","compressible":true},"application/mbms-reception-report+xml":{"source":"iana","compressible":true},"application/mbms-register+xml":{"source":"iana","compressible":true},"application/mbms-register-response+xml":{"source":"iana","compressible":true},"application/mbms-schedule+xml":{"source":"iana","compressible":true},"application/mbms-user-service-description+xml":{"source":"iana","compressible":true},"application/mbox":{"source":"iana","extensions":["mbox"]},"application/media-policy-dataset+xml":{"source":"iana","compressible":true,"extensions":["mpf"]},"application/media_control+xml":{"source":"iana","compressible":true},"application/mediaservercontrol+xml":{"source":"iana","compressible":true,"extensions":["mscml"]},"application/merge-patch+json":{"source":"iana","compressible":true},"application/metalink+xml":{"source":"apache","compressible":true,"extensions":["metalink"]},"application/metalink4+xml":{"source":"iana","compressible":true,"extensions":["meta4"]},"application/mets+xml":{"source":"iana","compressible":true,"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":true,"extensions":["maei"]},"application/mmt-usd+xml":{"source":"iana","compressible":true,"extensions":["musd"]},"application/mods+xml":{"source":"iana","compressible":true,"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":true},"application/mrb-publish+xml":{"source":"iana","compressible":true},"application/msc-ivr+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msc-mixer+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msword":{"source":"iana","compressible":false,"extensions":["doc","dot"]},"application/mud+json":{"source":"iana","compressible":true},"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":true},"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":false,"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":true},"application/odx":{"source":"iana"},"application/oebps-package+xml":{"source":"iana","compressible":true,"extensions":["opf"]},"application/ogg":{"source":"iana","compressible":false,"extensions":["ogx"]},"application/omdoc+xml":{"source":"apache","compressible":true,"extensions":["omdoc"]},"application/onenote":{"source":"apache","extensions":["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{"source":"iana","compressible":true},"application/oscore":{"source":"iana"},"application/oxps":{"source":"iana","extensions":["oxps"]},"application/p21":{"source":"iana"},"application/p21+zip":{"source":"iana","compressible":false},"application/p2p-overlay+xml":{"source":"iana","compressible":true,"extensions":["relo"]},"application/parityfec":{"source":"iana"},"application/passport":{"source":"iana"},"application/patch-ops-error+xml":{"source":"iana","compressible":true,"extensions":["xer"]},"application/pdf":{"source":"iana","compressible":false,"extensions":["pdf"]},"application/pdx":{"source":"iana"},"application/pem-certificate-chain":{"source":"iana"},"application/pgp-encrypted":{"source":"iana","compressible":false,"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":true},"application/pidf-diff+xml":{"source":"iana","charset":"UTF-8","compressible":true},"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":true,"extensions":["pls"]},"application/poc-settings+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/postscript":{"source":"iana","compressible":true,"extensions":["ai","eps","ps"]},"application/ppsp-tracker+json":{"source":"iana","compressible":true},"application/problem+json":{"source":"iana","compressible":true},"application/problem+xml":{"source":"iana","compressible":true},"application/provenance+xml":{"source":"iana","compressible":true,"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":false},"application/prs.nprend":{"source":"iana"},"application/prs.plucker":{"source":"iana"},"application/prs.rdf-xml-crypt":{"source":"iana"},"application/prs.xsf+xml":{"source":"iana","compressible":true},"application/pskc+xml":{"source":"iana","compressible":true,"extensions":["pskcxml"]},"application/pvd+json":{"source":"iana","compressible":true},"application/qsig":{"source":"iana"},"application/raml+yaml":{"compressible":true,"extensions":["raml"]},"application/raptorfec":{"source":"iana"},"application/rdap+json":{"source":"iana","compressible":true},"application/rdf+xml":{"source":"iana","compressible":true,"extensions":["rdf","owl"]},"application/reginfo+xml":{"source":"iana","compressible":true,"extensions":["rif"]},"application/relax-ng-compact-syntax":{"source":"iana","extensions":["rnc"]},"application/remote-printing":{"source":"iana"},"application/reputon+json":{"source":"iana","compressible":true},"application/resource-lists+xml":{"source":"iana","compressible":true,"extensions":["rl"]},"application/resource-lists-diff+xml":{"source":"iana","compressible":true,"extensions":["rld"]},"application/rfc+xml":{"source":"iana","compressible":true},"application/riscos":{"source":"iana"},"application/rlmi+xml":{"source":"iana","compressible":true},"application/rls-services+xml":{"source":"iana","compressible":true,"extensions":["rs"]},"application/route-apd+xml":{"source":"iana","compressible":true,"extensions":["rapd"]},"application/route-s-tsid+xml":{"source":"iana","compressible":true,"extensions":["sls"]},"application/route-usd+xml":{"source":"iana","compressible":true,"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":true,"extensions":["rsd"]},"application/rss+xml":{"source":"apache","compressible":true,"extensions":["rss"]},"application/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"application/rtploopback":{"source":"iana"},"application/rtx":{"source":"iana"},"application/samlassertion+xml":{"source":"iana","compressible":true},"application/samlmetadata+xml":{"source":"iana","compressible":true},"application/sarif+json":{"source":"iana","compressible":true},"application/sarif-external-properties+json":{"source":"iana","compressible":true},"application/sbe":{"source":"iana"},"application/sbml+xml":{"source":"iana","compressible":true,"extensions":["sbml"]},"application/scaip+xml":{"source":"iana","compressible":true},"application/scim+json":{"source":"iana","compressible":true},"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":true},"application/senml+xml":{"source":"iana","compressible":true,"extensions":["senmlx"]},"application/senml-etch+cbor":{"source":"iana"},"application/senml-etch+json":{"source":"iana","compressible":true},"application/senml-exi":{"source":"iana"},"application/sensml+cbor":{"source":"iana"},"application/sensml+json":{"source":"iana","compressible":true},"application/sensml+xml":{"source":"iana","compressible":true,"extensions":["sensmlx"]},"application/sensml-exi":{"source":"iana"},"application/sep+xml":{"source":"iana","compressible":true},"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":true,"extensions":["shf"]},"application/sieve":{"source":"iana","extensions":["siv","sieve"]},"application/simple-filter+xml":{"source":"iana","compressible":true},"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":true,"extensions":["smi","smil"]},"application/smpte336m":{"source":"iana"},"application/soap+fastinfoset":{"source":"iana"},"application/soap+xml":{"source":"iana","compressible":true},"application/sparql-query":{"source":"iana","extensions":["rq"]},"application/sparql-results+xml":{"source":"iana","compressible":true,"extensions":["srx"]},"application/spdx+json":{"source":"iana","compressible":true},"application/spirits-event+xml":{"source":"iana","compressible":true},"application/sql":{"source":"iana"},"application/srgs":{"source":"iana","extensions":["gram"]},"application/srgs+xml":{"source":"iana","compressible":true,"extensions":["grxml"]},"application/sru+xml":{"source":"iana","compressible":true,"extensions":["sru"]},"application/ssdl+xml":{"source":"apache","compressible":true,"extensions":["ssdl"]},"application/ssml+xml":{"source":"iana","compressible":true,"extensions":["ssml"]},"application/stix+json":{"source":"iana","compressible":true},"application/swid+xml":{"source":"iana","compressible":true,"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":true},"application/taxii+json":{"source":"iana","compressible":true},"application/td+json":{"source":"iana","compressible":true},"application/tei+xml":{"source":"iana","compressible":true,"extensions":["tei","teicorpus"]},"application/tetra_isi":{"source":"iana"},"application/thraud+xml":{"source":"iana","compressible":true,"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":true},"application/tnauthlist":{"source":"iana"},"application/token-introspection+jwt":{"source":"iana"},"application/toml":{"compressible":true,"extensions":["toml"]},"application/trickle-ice-sdpfrag":{"source":"iana"},"application/trig":{"source":"iana","extensions":["trig"]},"application/ttml+xml":{"source":"iana","compressible":true,"extensions":["ttml"]},"application/tve-trigger":{"source":"iana"},"application/tzif":{"source":"iana"},"application/tzif-leap":{"source":"iana"},"application/ubjson":{"compressible":false,"extensions":["ubj"]},"application/ulpfec":{"source":"iana"},"application/urc-grpsheet+xml":{"source":"iana","compressible":true},"application/urc-ressheet+xml":{"source":"iana","compressible":true,"extensions":["rsheet"]},"application/urc-targetdesc+xml":{"source":"iana","compressible":true,"extensions":["td"]},"application/urc-uisocketdesc+xml":{"source":"iana","compressible":true},"application/vcard+json":{"source":"iana","compressible":true},"application/vcard+xml":{"source":"iana","compressible":true},"application/vemmi":{"source":"iana"},"application/vividence.scriptfile":{"source":"apache"},"application/vnd.1000minds.decision-model+xml":{"source":"iana","compressible":true,"extensions":["1km"]},"application/vnd.3gpp-prose+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc3ch+xml":{"source":"iana","compressible":true},"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":true},"application/vnd.3gpp.bsf+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gmop+xml":{"source":"iana","compressible":true},"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":true},"application/vnd.3gpp.mcdata-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-payload":{"source":"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-signalling":{"source":"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-floor-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-signed+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-init-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-transmission-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mid-call+xml":{"source":"iana","compressible":true},"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":true},"application/vnd.3gpp.srvcc-ext+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.state-and-event-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ussd+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.bcmcsinfo+xml":{"source":"iana","compressible":true},"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":false,"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":true,"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":true},"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":true},"application/vnd.android.ota":{"source":"iana"},"application/vnd.android.package-archive":{"source":"apache","compressible":false,"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":true},"application/vnd.aplextor.warrp+json":{"source":"iana","compressible":true},"application/vnd.apothekende.reservation+json":{"source":"iana","compressible":true},"application/vnd.apple.installer+xml":{"source":"iana","compressible":true,"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":false,"extensions":["pkpass"]},"application/vnd.arastra.swi":{"source":"iana"},"application/vnd.aristanetworks.swi":{"source":"iana","extensions":["swi"]},"application/vnd.artisan+json":{"source":"iana","compressible":true},"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":true},"application/vnd.avistar+xml":{"source":"iana","compressible":true},"application/vnd.balsamiq.bmml+xml":{"source":"iana","compressible":true,"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":true},"application/vnd.bekitzur-stech+json":{"source":"iana","compressible":true},"application/vnd.bint.med-content":{"source":"iana"},"application/vnd.biopax.rdf+xml":{"source":"iana","compressible":true},"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":true},"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":true},"application/vnd.cendio.thinlinc.clientconf":{"source":"iana"},"application/vnd.century-systems.tcp_stream":{"source":"iana"},"application/vnd.chemdraw+xml":{"source":"iana","compressible":true,"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":true,"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":true},"application/vnd.collection.doc+json":{"source":"iana","compressible":true},"application/vnd.collection.next+json":{"source":"iana","compressible":true},"application/vnd.comicbook+zip":{"source":"iana","compressible":false},"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":true},"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":true,"extensions":["wbs"]},"application/vnd.cryptii.pipe+json":{"source":"iana","compressible":true},"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":true},"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":true},"application/vnd.cybank":{"source":"iana"},"application/vnd.cyclonedx+json":{"source":"iana","compressible":true},"application/vnd.cyclonedx+xml":{"source":"iana","compressible":true},"application/vnd.d2l.coursepackage1p0+zip":{"source":"iana","compressible":false},"application/vnd.d3m-dataset":{"source":"iana"},"application/vnd.d3m-problem":{"source":"iana"},"application/vnd.dart":{"source":"iana","compressible":true,"extensions":["dart"]},"application/vnd.data-vision.rdz":{"source":"iana","extensions":["rdz"]},"application/vnd.datapackage+json":{"source":"iana","compressible":true},"application/vnd.dataresource+json":{"source":"iana","compressible":true},"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":true,"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":true},"application/vnd.dna":{"source":"iana","extensions":["dna"]},"application/vnd.document+json":{"source":"iana","compressible":true},"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":true},"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":true},"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":true},"application/vnd.dvb.notif-container+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-generic+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-msglist+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-request+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-response+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-init+xml":{"source":"iana","compressible":true},"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":true},"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":true},"application/vnd.enliven":{"source":"iana","extensions":["nml"]},"application/vnd.enphase.envoy":{"source":"iana"},"application/vnd.eprints.data+xml":{"source":"iana","compressible":true},"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":false},"application/vnd.eszigno3+xml":{"source":"iana","compressible":true,"extensions":["es3","et3"]},"application/vnd.etsi.aoc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.asic-e+zip":{"source":"iana","compressible":false},"application/vnd.etsi.asic-s+zip":{"source":"iana","compressible":false},"application/vnd.etsi.cug+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvcommand+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-bc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-cod+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-npvr+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvservice+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsync+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvueprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mcid+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mheg5":{"source":"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{"source":"iana","compressible":true},"application/vnd.etsi.pstn+xml":{"source":"iana","compressible":true},"application/vnd.etsi.sci+xml":{"source":"iana","compressible":true},"application/vnd.etsi.simservs+xml":{"source":"iana","compressible":true},"application/vnd.etsi.timestamp-token":{"source":"iana"},"application/vnd.etsi.tsl+xml":{"source":"iana","compressible":true},"application/vnd.etsi.tsl.der":{"source":"iana"},"application/vnd.eu.kasparian.car+json":{"source":"iana","compressible":true},"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":false},"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":false},"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":false},"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":true},"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":true},"application/vnd.fuzzysheet":{"source":"iana","extensions":["fzs"]},"application/vnd.genomatix.tuxedo":{"source":"iana","extensions":["txd"]},"application/vnd.gentics.grd+json":{"source":"iana","compressible":true},"application/vnd.geo+json":{"source":"iana","compressible":true},"application/vnd.geocube+xml":{"source":"iana","compressible":true},"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":false,"extensions":["gdoc"]},"application/vnd.google-apps.presentation":{"compressible":false,"extensions":["gslides"]},"application/vnd.google-apps.spreadsheet":{"compressible":false,"extensions":["gsheet"]},"application/vnd.google-earth.kml+xml":{"source":"iana","compressible":true,"extensions":["kml"]},"application/vnd.google-earth.kmz":{"source":"iana","compressible":false,"extensions":["kmz"]},"application/vnd.gov.sk.e-form+xml":{"source":"iana","compressible":true},"application/vnd.gov.sk.e-form+zip":{"source":"iana","compressible":false},"application/vnd.gov.sk.xmldatacontainer+xml":{"source":"iana","compressible":true},"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":true},"application/vnd.hal+xml":{"source":"iana","compressible":true,"extensions":["hal"]},"application/vnd.handheld-entertainment+xml":{"source":"iana","compressible":true,"extensions":["zmm"]},"application/vnd.hbci":{"source":"iana","extensions":["hbci"]},"application/vnd.hc+json":{"source":"iana","compressible":true},"application/vnd.hcl-bireports":{"source":"iana"},"application/vnd.hdt":{"source":"iana"},"application/vnd.heroku+json":{"source":"iana","compressible":true},"application/vnd.hhe.lesson-player":{"source":"iana","extensions":["les"]},"application/vnd.hl7cda+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.hl7v2+xml":{"source":"iana","charset":"UTF-8","compressible":true},"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":true},"application/vnd.hyper-item+json":{"source":"iana","compressible":true},"application/vnd.hyperdrive+json":{"source":"iana","compressible":true},"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":false},"application/vnd.imagemeter.image+zip":{"source":"iana","compressible":false},"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":true},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy.id+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings.simple+json":{"source":"iana","compressible":true},"application/vnd.informedcontrol.rms+xml":{"source":"iana","compressible":true},"application/vnd.informix-visionary":{"source":"iana"},"application/vnd.infotech.project":{"source":"iana"},"application/vnd.infotech.project+xml":{"source":"iana","compressible":true},"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":true},"application/vnd.iptc.g2.conceptitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.knowledgeitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsmessage+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.packageitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.planningitem+xml":{"source":"iana","compressible":true},"application/vnd.ipunplugged.rcprofile":{"source":"iana","extensions":["rcprofile"]},"application/vnd.irepository.package+xml":{"source":"iana","compressible":true,"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":false},"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":true},"application/vnd.las.las+xml":{"source":"iana","compressible":true,"extensions":["lasxml"]},"application/vnd.laszip":{"source":"iana"},"application/vnd.leap+json":{"source":"iana","compressible":true},"application/vnd.liberty-request+xml":{"source":"iana","compressible":true},"application/vnd.llamagraphics.life-balance.desktop":{"source":"iana","extensions":["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{"source":"iana","compressible":true,"extensions":["lbe"]},"application/vnd.logipipe.circuit+zip":{"source":"iana","compressible":false},"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":true},"application/vnd.marlin.drm.conftoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.license+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.mdcf":{"source":"iana"},"application/vnd.mason+json":{"source":"iana","compressible":true},"application/vnd.maxar.archive.3tz+zip":{"source":"iana","compressible":false},"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":true},"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":true},"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":true,"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":false,"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":true,"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":true},"application/vnd.ms-officetheme":{"source":"iana","extensions":["thmx"]},"application/vnd.ms-opentype":{"source":"apache","compressible":true},"application/vnd.ms-outlook":{"compressible":false,"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":true},"application/vnd.ms-powerpoint":{"source":"iana","compressible":false,"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":true},"application/vnd.ms-printing.printticket+xml":{"source":"apache","compressible":true},"application/vnd.ms-printschematicket+xml":{"source":"iana","compressible":true},"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":false,"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":true},"application/vnd.ncd.control":{"source":"iana"},"application/vnd.ncd.reference":{"source":"iana"},"application/vnd.nearst.inv+json":{"source":"iana","compressible":true},"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":true},"application/vnd.nokia.iptv.config+xml":{"source":"iana","compressible":true},"application/vnd.nokia.isds-radio-presets":{"source":"iana"},"application/vnd.nokia.landmark+wbxml":{"source":"iana"},"application/vnd.nokia.landmark+xml":{"source":"iana","compressible":true},"application/vnd.nokia.landmarkcollection+xml":{"source":"iana","compressible":true},"application/vnd.nokia.n-gage.ac+xml":{"source":"iana","compressible":true,"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":true},"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":false,"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":false,"extensions":["odp"]},"application/vnd.oasis.opendocument.presentation-template":{"source":"iana","extensions":["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{"source":"iana","compressible":false,"extensions":["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{"source":"iana","extensions":["ots"]},"application/vnd.oasis.opendocument.text":{"source":"iana","compressible":false,"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":true},"application/vnd.oftn.l10n+json":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessdownload+xml":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessstreaming+xml":{"source":"iana","compressible":true},"application/vnd.oipf.cspg-hexbinary":{"source":"iana"},"application/vnd.oipf.dae.svg+xml":{"source":"iana","compressible":true},"application/vnd.oipf.dae.xhtml+xml":{"source":"iana","compressible":true},"application/vnd.oipf.mippvcontrolmessage+xml":{"source":"iana","compressible":true},"application/vnd.oipf.pae.gem":{"source":"iana"},"application/vnd.oipf.spdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.oipf.spdlist+xml":{"source":"iana","compressible":true},"application/vnd.oipf.ueprofile+xml":{"source":"iana","compressible":true},"application/vnd.oipf.userprofile+xml":{"source":"iana","compressible":true},"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":true},"application/vnd.oma.bcast.drm-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.imd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.ltkm":{"source":"iana"},"application/vnd.oma.bcast.notification+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.provisioningtrigger":{"source":"iana"},"application/vnd.oma.bcast.sgboot":{"source":"iana"},"application/vnd.oma.bcast.sgdd+xml":{"source":"iana","compressible":true},"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":true},"application/vnd.oma.bcast.sprov+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.stkm":{"source":"iana"},"application/vnd.oma.cab-address-book+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-feature-handler+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-pcc+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-subs-invite+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-user-prefs+xml":{"source":"iana","compressible":true},"application/vnd.oma.dcd":{"source":"iana"},"application/vnd.oma.dcdc":{"source":"iana"},"application/vnd.oma.dd2+xml":{"source":"iana","compressible":true,"extensions":["dd2"]},"application/vnd.oma.drm.risd+xml":{"source":"iana","compressible":true},"application/vnd.oma.group-usage-list+xml":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+cbor":{"source":"iana"},"application/vnd.oma.lwm2m+json":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+tlv":{"source":"iana"},"application/vnd.oma.pal+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.detailed-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.final-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.groups+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.invocation-descriptor+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.optimized-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.push":{"source":"iana"},"application/vnd.oma.scidm.messages+xml":{"source":"iana","compressible":true},"application/vnd.oma.xcap-directory+xml":{"source":"iana","compressible":true},"application/vnd.omads-email+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-file+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-folder+xml":{"source":"iana","charset":"UTF-8","compressible":true},"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":true,"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":true,"extensions":["osm"]},"application/vnd.opentimestamps.ots":{"source":"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawing+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{"source":"iana","compressible":false,"extensions":["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slide":{"source":"iana","extensions":["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{"source":"iana","extensions":["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.template":{"source":"iana","extensions":["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"source":"iana","compressible":false,"extensions":["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{"source":"iana","extensions":["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.theme+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.vmldrawing":{"source":"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"source":"iana","compressible":false,"extensions":["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{"source":"iana","extensions":["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.core-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.relationships+xml":{"source":"iana","compressible":true},"application/vnd.oracle.resource+json":{"source":"iana","compressible":true},"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":true},"application/vnd.oxli.countgraph":{"source":"iana"},"application/vnd.pagerduty+json":{"source":"iana","compressible":true},"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":true},"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":true},"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":true},"application/vnd.radisys.msml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conn+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-stream+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-base+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-detect+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-group+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-speech+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-transform+xml":{"source":"iana","compressible":true},"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":true,"extensions":["musicxml"]},"application/vnd.renlearn.rlprint":{"source":"iana"},"application/vnd.resilient.logic":{"source":"iana"},"application/vnd.restful+json":{"source":"iana","compressible":true},"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":true,"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":true},"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":true},"application/vnd.shopkick+json":{"source":"iana","compressible":true},"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":true},"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":true,"extensions":["fo"]},"application/vnd.software602.filler.form-xml-zip":{"source":"iana"},"application/vnd.solent.sdkm+xml":{"source":"iana","compressible":true,"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":true,"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":true},"application/vnd.syft+json":{"source":"iana","compressible":true},"application/vnd.symbian.install":{"source":"apache","extensions":["sis","sisx"]},"application/vnd.syncml+xml":{"source":"iana","charset":"UTF-8","compressible":true,"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":true,"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":true,"extensions":["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{"source":"iana"},"application/vnd.syncml.dmtnds+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.syncml.ds.notification":{"source":"iana"},"application/vnd.tableschema+json":{"source":"iana","compressible":true},"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":true},"application/vnd.tmd.mediaflex.api+xml":{"source":"iana","compressible":true},"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":true,"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":true},"application/vnd.verimatrix.vcas":{"source":"iana"},"application/vnd.veritone.aion+json":{"source":"iana","compressible":true},"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":true},"application/vnd.wv.ssp+xml":{"source":"iana","compressible":true},"application/vnd.xacml+json":{"source":"iana","compressible":true},"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":true},"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":true,"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":true,"extensions":["zaz"]},"application/voicexml+xml":{"source":"iana","compressible":true,"extensions":["vxml"]},"application/voucher-cms+json":{"source":"iana","compressible":true},"application/vq-rtcpxr":{"source":"iana"},"application/wasm":{"source":"iana","compressible":true,"extensions":["wasm"]},"application/watcherinfo+xml":{"source":"iana","compressible":true,"extensions":["wif"]},"application/webpush-options+json":{"source":"iana","compressible":true},"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":true,"extensions":["wsdl"]},"application/wspolicy+xml":{"source":"iana","compressible":true,"extensions":["wspolicy"]},"application/x-7z-compressed":{"source":"apache","compressible":false,"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":false,"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":false,"extensions":["bdoc"]},"application/x-bittorrent":{"source":"apache","extensions":["torrent"]},"application/x-blorb":{"source":"apache","extensions":["blb","blorb"]},"application/x-bzip":{"source":"apache","compressible":false,"extensions":["bz"]},"application/x-bzip2":{"source":"apache","compressible":false,"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":false},"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":true,"extensions":["ncx"]},"application/x-dtbook+xml":{"source":"apache","compressible":true,"extensions":["dtb"]},"application/x-dtbresource+xml":{"source":"apache","compressible":true,"extensions":["res"]},"application/x-dvi":{"source":"apache","compressible":false,"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":true,"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":false,"extensions":["jnlp"]},"application/x-javascript":{"compressible":true},"application/x-keepass2":{"extensions":["kdbx"]},"application/x-latex":{"source":"apache","compressible":false,"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":false},"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":true,"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":false,"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":false,"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":true,"extensions":["sh"]},"application/x-shar":{"source":"apache","extensions":["shar"]},"application/x-shockwave-flash":{"source":"apache","compressible":false,"extensions":["swf"]},"application/x-silverlight-app":{"source":"apache","extensions":["xap"]},"application/x-sql":{"source":"apache","extensions":["sql"]},"application/x-stuffit":{"source":"apache","compressible":false,"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":true,"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":true,"extensions":["hdd"]},"application/x-virtualbox-ova":{"compressible":true,"extensions":["ova"]},"application/x-virtualbox-ovf":{"compressible":true,"extensions":["ovf"]},"application/x-virtualbox-vbox":{"compressible":true,"extensions":["vbox"]},"application/x-virtualbox-vbox-extpack":{"compressible":false,"extensions":["vbox-extpack"]},"application/x-virtualbox-vdi":{"compressible":true,"extensions":["vdi"]},"application/x-virtualbox-vhd":{"compressible":true,"extensions":["vhd"]},"application/x-virtualbox-vmdk":{"compressible":true,"extensions":["vmdk"]},"application/x-wais-source":{"source":"apache","extensions":["src"]},"application/x-web-app-manifest+json":{"compressible":true,"extensions":["webapp"]},"application/x-www-form-urlencoded":{"source":"iana","compressible":true},"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":true,"extensions":["xlf"]},"application/x-xpinstall":{"source":"apache","compressible":false,"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":true},"application/xaml+xml":{"source":"apache","compressible":true,"extensions":["xaml"]},"application/xcap-att+xml":{"source":"iana","compressible":true,"extensions":["xav"]},"application/xcap-caps+xml":{"source":"iana","compressible":true,"extensions":["xca"]},"application/xcap-diff+xml":{"source":"iana","compressible":true,"extensions":["xdf"]},"application/xcap-el+xml":{"source":"iana","compressible":true,"extensions":["xel"]},"application/xcap-error+xml":{"source":"iana","compressible":true},"application/xcap-ns+xml":{"source":"iana","compressible":true,"extensions":["xns"]},"application/xcon-conference-info+xml":{"source":"iana","compressible":true},"application/xcon-conference-info-diff+xml":{"source":"iana","compressible":true},"application/xenc+xml":{"source":"iana","compressible":true,"extensions":["xenc"]},"application/xhtml+xml":{"source":"iana","compressible":true,"extensions":["xhtml","xht"]},"application/xhtml-voice+xml":{"source":"apache","compressible":true},"application/xliff+xml":{"source":"iana","compressible":true,"extensions":["xlf"]},"application/xml":{"source":"iana","compressible":true,"extensions":["xml","xsl","xsd","rng"]},"application/xml-dtd":{"source":"iana","compressible":true,"extensions":["dtd"]},"application/xml-external-parsed-entity":{"source":"iana"},"application/xml-patch+xml":{"source":"iana","compressible":true},"application/xmpp+xml":{"source":"iana","compressible":true},"application/xop+xml":{"source":"iana","compressible":true,"extensions":["xop"]},"application/xproc+xml":{"source":"apache","compressible":true,"extensions":["xpl"]},"application/xslt+xml":{"source":"iana","compressible":true,"extensions":["xsl","xslt"]},"application/xspf+xml":{"source":"apache","compressible":true,"extensions":["xspf"]},"application/xv+xml":{"source":"iana","compressible":true,"extensions":["mxml","xhvml","xvml","xvm"]},"application/yang":{"source":"iana","extensions":["yang"]},"application/yang-data+json":{"source":"iana","compressible":true},"application/yang-data+xml":{"source":"iana","compressible":true},"application/yang-patch+json":{"source":"iana","compressible":true},"application/yang-patch+xml":{"source":"iana","compressible":true},"application/yin+xml":{"source":"iana","compressible":true,"extensions":["yin"]},"application/zip":{"source":"iana","compressible":false,"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":false,"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":false,"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":false},"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":false,"extensions":["mp3"]},"audio/mp4":{"source":"iana","compressible":false,"extensions":["m4a","mp4a"]},"audio/mp4a-latm":{"source":"iana"},"audio/mpa":{"source":"iana"},"audio/mpa-robust":{"source":"iana"},"audio/mpeg":{"source":"iana","compressible":false,"extensions":["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{"source":"iana"},"audio/musepack":{"source":"apache"},"audio/ogg":{"source":"iana","compressible":false,"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":false},"audio/vnd.sealedmedia.softseal.mpeg":{"source":"iana"},"audio/vnd.vmx.cvsd":{"source":"iana"},"audio/vnd.wave":{"compressible":false},"audio/vorbis":{"source":"iana","compressible":false},"audio/vorbis-config":{"source":"iana"},"audio/wav":{"compressible":false,"extensions":["wav"]},"audio/wave":{"compressible":false,"extensions":["wav"]},"audio/webm":{"source":"apache","compressible":false,"extensions":["weba"]},"audio/x-aac":{"source":"apache","compressible":false,"extensions":["aac"]},"audio/x-aiff":{"source":"apache","extensions":["aif","aiff","aifc"]},"audio/x-caf":{"source":"apache","compressible":false,"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":true,"extensions":["otf"]},"font/sfnt":{"source":"iana"},"font/ttf":{"source":"iana","compressible":true,"extensions":["ttf"]},"font/woff":{"source":"iana","extensions":["woff"]},"font/woff2":{"source":"iana","extensions":["woff2"]},"image/aces":{"source":"iana","extensions":["exr"]},"image/apng":{"compressible":false,"extensions":["apng"]},"image/avci":{"source":"iana","extensions":["avci"]},"image/avcs":{"source":"iana","extensions":["avcs"]},"image/avif":{"source":"iana","compressible":false,"extensions":["avif"]},"image/bmp":{"source":"iana","compressible":true,"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":false,"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":false,"extensions":["jp2","jpg2"]},"image/jpeg":{"source":"iana","compressible":false,"extensions":["jpeg","jpg","jpe"]},"image/jph":{"source":"iana","extensions":["jph"]},"image/jphc":{"source":"iana","extensions":["jhc"]},"image/jpm":{"source":"iana","compressible":false,"extensions":["jpm"]},"image/jpx":{"source":"iana","compressible":false,"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":false},"image/png":{"source":"iana","compressible":false,"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":true,"extensions":["svg","svgz"]},"image/t38":{"source":"iana","extensions":["t38"]},"image/tiff":{"source":"iana","compressible":false,"extensions":["tif","tiff"]},"image/tiff-fx":{"source":"iana","extensions":["tfx"]},"image/vnd.adobe.photoshop":{"source":"iana","compressible":true,"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":true,"extensions":["ico"]},"image/vnd.mix":{"source":"iana"},"image/vnd.mozilla.apng":{"source":"iana"},"image/vnd.ms-dds":{"compressible":true,"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":true,"extensions":["ico"]},"image/x-jng":{"source":"nginx","extensions":["jng"]},"image/x-mrsid-image":{"source":"apache","extensions":["sid"]},"image/x-ms-bmp":{"source":"nginx","compressible":true,"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":false},"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":false},"message/imdn+xml":{"source":"iana","compressible":true},"message/news":{"source":"iana"},"message/partial":{"source":"iana","compressible":false},"message/rfc822":{"source":"iana","compressible":true,"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":true,"extensions":["gltf"]},"model/gltf-binary":{"source":"iana","compressible":true,"extensions":["glb"]},"model/iges":{"source":"iana","compressible":false,"extensions":["igs","iges"]},"model/mesh":{"source":"iana","compressible":false,"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":true,"extensions":["stpx"]},"model/step+zip":{"source":"iana","compressible":false,"extensions":["stpz"]},"model/step-xml+zip":{"source":"iana","compressible":false,"extensions":["stpxz"]},"model/stl":{"source":"iana","extensions":["stl"]},"model/vnd.collada+xml":{"source":"iana","compressible":true,"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":true},"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":false,"extensions":["usdz"]},"model/vnd.valve.source.compiled-map":{"source":"iana","extensions":["bsp"]},"model/vnd.vtu":{"source":"iana","extensions":["vtu"]},"model/vrml":{"source":"iana","compressible":false,"extensions":["wrl","vrml"]},"model/x3d+binary":{"source":"apache","compressible":false,"extensions":["x3db","x3dbz"]},"model/x3d+fastinfoset":{"source":"iana","extensions":["x3db"]},"model/x3d+vrml":{"source":"apache","compressible":false,"extensions":["x3dv","x3dvz"]},"model/x3d+xml":{"source":"iana","compressible":true,"extensions":["x3d","x3dz"]},"model/x3d-vrml":{"source":"iana","extensions":["x3dv"]},"multipart/alternative":{"source":"iana","compressible":false},"multipart/appledouble":{"source":"iana"},"multipart/byteranges":{"source":"iana"},"multipart/digest":{"source":"iana"},"multipart/encrypted":{"source":"iana","compressible":false},"multipart/form-data":{"source":"iana","compressible":false},"multipart/header-set":{"source":"iana"},"multipart/mixed":{"source":"iana"},"multipart/multilingual":{"source":"iana"},"multipart/parallel":{"source":"iana"},"multipart/related":{"source":"iana","compressible":false},"multipart/report":{"source":"iana"},"multipart/signed":{"source":"iana","compressible":false},"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":true,"extensions":["appcache","manifest"]},"text/calendar":{"source":"iana","extensions":["ics","ifb"]},"text/calender":{"compressible":true},"text/cmd":{"compressible":true},"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":true,"extensions":["css"]},"text/csv":{"source":"iana","compressible":true,"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":true,"extensions":["html","htm","shtml"]},"text/jade":{"extensions":["jade"]},"text/javascript":{"source":"iana","compressible":true},"text/jcr-cnd":{"source":"iana"},"text/jsx":{"compressible":true,"extensions":["jsx"]},"text/less":{"compressible":true,"extensions":["less"]},"text/markdown":{"source":"iana","compressible":true,"extensions":["markdown","md"]},"text/mathml":{"source":"nginx","extensions":["mml"]},"text/mdx":{"compressible":true,"extensions":["mdx"]},"text/mizar":{"source":"iana"},"text/n3":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["n3"]},"text/parameters":{"source":"iana","charset":"UTF-8"},"text/parityfec":{"source":"iana"},"text/plain":{"source":"iana","compressible":true,"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":true,"extensions":["rtx"]},"text/rtf":{"source":"iana","compressible":true,"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":true,"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":true,"extensions":["uri","uris","urls"]},"text/vcard":{"source":"iana","compressible":true,"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":true,"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":true},"text/x-handlebars-template":{"extensions":["hbs"]},"text/x-java-source":{"source":"apache","extensions":["java"]},"text/x-jquery-tmpl":{"compressible":true},"text/x-lua":{"extensions":["lua"]},"text/x-markdown":{"compressible":true,"extensions":["mkd"]},"text/x-nfo":{"source":"apache","extensions":["nfo"]},"text/x-opml":{"source":"apache","extensions":["opml"]},"text/x-org":{"compressible":true,"extensions":["org"]},"text/x-pascal":{"source":"apache","extensions":["p","pas"]},"text/x-processing":{"compressible":true,"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":true,"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":true,"extensions":["xml"]},"text/xml-external-parsed-entity":{"source":"iana"},"text/yaml":{"compressible":true,"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":false,"extensions":["mp4","mp4v","mpg4"]},"video/mp4v-es":{"source":"iana"},"video/mpeg":{"source":"iana","compressible":false,"extensions":["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{"source":"iana"},"video/mpv":{"source":"iana"},"video/nv":{"source":"iana"},"video/ogg":{"source":"iana","compressible":false,"extensions":["ogv"]},"video/parityfec":{"source":"iana"},"video/pointer":{"source":"iana"},"video/quicktime":{"source":"iana","compressible":false,"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":false,"extensions":["webm"]},"video/x-f4v":{"source":"apache","extensions":["f4v"]},"video/x-fli":{"source":"apache","extensions":["fli"]},"video/x-flv":{"source":"apache","compressible":false,"extensions":["flv"]},"video/x-m4v":{"source":"apache","extensions":["m4v"]},"video/x-matroska":{"source":"apache","compressible":false,"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":false,"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":true},"x-shader/x-vertex":{"compressible":true}}')},8330(e){e.exports=JSON.parse('{"name":"@sharecrm/sharedev","version":"0.0.1","private":false,"description":"sharedev command line tool","type":"module","main":"dist/sharedev.js","bin":{"sharedev":"./bin/cli.mjs"},"author":{"name":"sharecrm-npm"},"files":["dist","bin","README.md"],"scripts":{"build":"tsc --noEmit && webpack --config build/webpack/webpack.prod.cjs","dev":"tsc --noEmit --watch & webpack --config build/webpack/webpack.dev.cjs --watch","dev2":"node src/cli.ts","typecheck":"tsc --noEmit","prettier":"prettier --write ./src/**/*.ts","publish":"npm publish --registry=http://registry-npm.firstshare.cn/"},"dependencies":{"@clack/prompts":"^1.1.0","@mariozechner/pi-coding-agent":"^0.62.0","axios":"^1.11.0","chalk":"^5.6.2","commander":"^14.0.1","fast-xml-parser":"^5.2.5","extract-zip":"^2.0.1","fs-extra":"^11.3.2","ora":"^9.3.0"},"devDependencies":{"@types/extract-zip":"^2.0.3","@types/fs-extra":"^11.0.4","@types/node":"^24.3.0","ts-loader":"^9.5.4","typescript":"^5.9.2","webpack":"^5.101.3","webpack-cli":"^6.0.1","webpack-merge":"^6.0.1"},"packageManager":"pnpm@10.17.0"}')}},x={};function v(e){var t=x[e];if(void 0!==t)return t.exports;var n=x[e]={exports:{}};return g[e].call(n.exports,n,n.exports,v),n.exports}v.d=(e,t)=>{for(var n in t)v.o(t,n)&&!v.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},v.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),v.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var y=v(8257);export{y as default};