UNPKG

714 kBJavaScriptView Raw
1#!/usr/bin/env node
2(()=>{var e={5211:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.codeFrameColumns=codeFrameColumns;t["default"]=_default;var s=_interopRequireWildcard(r(6860));function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var e=new WeakMap;_getRequireWildcardCache=function(){return e};return e}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}if(e===null||typeof e!=="object"&&typeof e!=="function"){return{default:e}}var t=_getRequireWildcardCache();if(t&&t.has(e)){return t.get(e)}var r={};var s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n)){var i=s?Object.getOwnPropertyDescriptor(e,n):null;if(i&&(i.get||i.set)){Object.defineProperty(r,n,i)}else{r[n]=e[n]}}}r.default=e;if(t){t.set(e,r)}return r}let n=false;function getDefs(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}const i=/\r\n|[\n\r\u2028\u2029]/;function getMarkerLines(e,t,r){const s=Object.assign({column:0,line:-1},e.start);const n=Object.assign({},s,{},e.end);const{linesAbove:i=2,linesBelow:o=3}=r||{};const a=s.line;const u=s.column;const l=n.line;const h=n.column;let p=Math.max(a-(i+1),0);let d=Math.min(t.length,l+o);if(a===-1){p=0}if(l===-1){d=t.length}const m=l-a;const y={};if(m){for(let e=0;e<=m;e++){const r=e+a;if(!u){y[r]=true}else if(e===0){const e=t[r-1].length;y[r]=[u,e-u+1]}else if(e===m){y[r]=[0,h]}else{const s=t[r-e].length;y[r]=[0,s]}}}else{if(u===h){if(u){y[a]=[u,0]}else{y[a]=true}}else{y[a]=[u,h-u]}}return{start:p,end:d,markerLines:y}}function codeFrameColumns(e,t,r={}){const n=(r.highlightCode||r.forceColor)&&(0,s.shouldHighlight)(r);const o=(0,s.getChalk)(r);const a=getDefs(o);const maybeHighlight=(e,t)=>n?e(t):t;const u=e.split(i);const{start:l,end:h,markerLines:p}=getMarkerLines(t,u,r);const d=t.start&&typeof t.start.column==="number";const m=String(h).length;const y=n?(0,s.default)(e,r):e;let g=y.split(i).slice(l,h).map(((e,t)=>{const s=l+1+t;const n=` ${s}`.slice(-m);const i=` ${n} | `;const o=p[s];const u=!p[s+1];if(o){let t="";if(Array.isArray(o)){const s=e.slice(0,Math.max(o[0]-1,0)).replace(/[^\t]/g," ");const n=o[1]||1;t=["\n ",maybeHighlight(a.gutter,i.replace(/\d/g," ")),s,maybeHighlight(a.marker,"^").repeat(n)].join("");if(u&&r.message){t+=" "+maybeHighlight(a.message,r.message)}}return[maybeHighlight(a.marker,">"),maybeHighlight(a.gutter,i),e,t].join("")}else{return` ${maybeHighlight(a.gutter,i)}${e}`}})).join("\n");if(r.message&&!d){g=`${" ".repeat(m+1)}${r.message}\n${g}`}if(n){return o.reset(g)}else{return g}}function _default(e,t,r,s={}){if(!n){n=true;const e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning){process.emitWarning(e,"DeprecationWarning")}else{const t=new Error(e);t.name="DeprecationWarning";console.warn(new Error(e))}}r=Math.max(r,0);const i={start:{column:r,line:t}};return codeFrameColumns(e,i,s)}},6396:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isIdentifierStart=isIdentifierStart;t.isIdentifierChar=isIdentifierChar;t.isIdentifierName=isIdentifierName;let r="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";let s="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_";const n=new RegExp("["+r+"]");const i=new RegExp("["+r+s+"]");r=s=null;const o=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,107,20,28,22,13,52,76,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8952,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42717,35,4148,12,221,3,5761,15,7472,3104,541,1507,4938];const a=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,4759,9,787719,239];function isInAstralSet(e,t){let r=65536;for(let s=0,n=t.length;s<n;s+=2){r+=t[s];if(r>e)return false;r+=t[s+1];if(r>=e)return true}return false}function isIdentifierStart(e){if(e<65)return e===36;if(e<=90)return true;if(e<97)return e===95;if(e<=122)return true;if(e<=65535){return e>=170&&n.test(String.fromCharCode(e))}return isInAstralSet(e,o)}function isIdentifierChar(e){if(e<48)return e===36;if(e<58)return true;if(e<65)return false;if(e<=90)return true;if(e<97)return e===95;if(e<=122)return true;if(e<=65535){return e>=170&&i.test(String.fromCharCode(e))}return isInAstralSet(e,o)||isInAstralSet(e,a)}function isIdentifierName(e){let t=true;for(let r=0,s=Array.from(e);r<s.length;r++){const e=s[r];const n=e.codePointAt(0);if(t){if(!isIdentifierStart(n)){return false}t=false}else if(!isIdentifierChar(n)){return false}}return!t}},6607:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"isIdentifierName",{enumerable:true,get:function(){return s.isIdentifierName}});Object.defineProperty(t,"isIdentifierChar",{enumerable:true,get:function(){return s.isIdentifierChar}});Object.defineProperty(t,"isIdentifierStart",{enumerable:true,get:function(){return s.isIdentifierStart}});Object.defineProperty(t,"isReservedWord",{enumerable:true,get:function(){return n.isReservedWord}});Object.defineProperty(t,"isStrictBindOnlyReservedWord",{enumerable:true,get:function(){return n.isStrictBindOnlyReservedWord}});Object.defineProperty(t,"isStrictBindReservedWord",{enumerable:true,get:function(){return n.isStrictBindReservedWord}});Object.defineProperty(t,"isStrictReservedWord",{enumerable:true,get:function(){return n.isStrictReservedWord}});Object.defineProperty(t,"isKeyword",{enumerable:true,get:function(){return n.isKeyword}});var s=r(6396);var n=r(7249)},7249:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isReservedWord=isReservedWord;t.isStrictReservedWord=isStrictReservedWord;t.isStrictBindOnlyReservedWord=isStrictBindOnlyReservedWord;t.isStrictBindReservedWord=isStrictBindReservedWord;t.isKeyword=isKeyword;const r={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]};const s=new Set(r.keyword);const n=new Set(r.strict);const i=new Set(r.strictBind);function isReservedWord(e,t){return t&&e==="await"||e==="enum"}function isStrictReservedWord(e,t){return isReservedWord(e,t)||n.has(e)}function isStrictBindOnlyReservedWord(e){return i.has(e)}function isStrictBindReservedWord(e,t){return isStrictReservedWord(e,t)||isStrictBindOnlyReservedWord(e)}function isKeyword(e){return s.has(e)}},6860:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.shouldHighlight=shouldHighlight;t.getChalk=getChalk;t["default"]=highlight;var s=_interopRequireWildcard(r(1531));var n=r(6607);var i=_interopRequireDefault(r(8707));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var e=new WeakMap;_getRequireWildcardCache=function(){return e};return e}function _interopRequireWildcard(e){if(e&&e.__esModule){return e}if(e===null||typeof e!=="object"&&typeof e!=="function"){return{default:e}}var t=_getRequireWildcardCache();if(t&&t.has(e)){return t.get(e)}var r={};var s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n)){var i=s?Object.getOwnPropertyDescriptor(e,n):null;if(i&&(i.get||i.set)){Object.defineProperty(r,n,i)}else{r[n]=e[n]}}}r.default=e;if(t){t.set(e,r)}return r}function getDefs(e){return{keyword:e.cyan,capitalized:e.yellow,jsx_tag:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.grey,invalid:e.white.bgRed.bold}}const o=/\r\n|[\n\r\u2028\u2029]/;const a=/^[a-z][\w-]*$/i;const u=/^[()[\]{}]$/;function getTokenType(e){const[t,r]=e.slice(-2);const i=(0,s.matchToToken)(e);if(i.type==="name"){if((0,n.isKeyword)(i.value)||(0,n.isReservedWord)(i.value)){return"keyword"}if(a.test(i.value)&&(r[t-1]==="<"||r.substr(t-2,2)=="</")){return"jsx_tag"}if(i.value[0]!==i.value[0].toLowerCase()){return"capitalized"}}if(i.type==="punctuator"&&u.test(i.value)){return"bracket"}if(i.type==="invalid"&&(i.value==="@"||i.value==="#")){return"punctuator"}return i.type}function highlightTokens(e,t){return t.replace(s.default,(function(...t){const r=getTokenType(t);const s=e[r];if(s){return t[0].split(o).map((e=>s(e))).join("\n")}else{return t[0]}}))}function shouldHighlight(e){return i.default.supportsColor||e.forceColor}function getChalk(e){let t=i.default;if(e.forceColor){t=new i.default.constructor({enabled:true,level:1})}return t}function highlight(e,t={}){if(shouldHighlight(t)){const r=getChalk(t);const s=getDefs(r);return highlightTokens(s,e)}else{return e}}},9090:function(e,t,r){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const n=r(7147);const i=r(3837);const o=s(r(6908));const a=s(r(2900));const u=s(r(6904));const l=s(r(2221));const h=r(5211);const p=s(r(2212));const d=i.promisify(n.readFile);const m=i.promisify(l.default);const y={badJsonDefault:undefined,jsonParseErrorDefault:undefined,cantReadFileDefault:undefined,default:undefined,json5:false,space:2,addNewLineAtEOF:true};class JsonFile{constructor(e,t={}){this.file=e;this.options=t}read(e){return read(this.file,this._getOptions(e))}async readAsync(e){return readAsync(this.file,this._getOptions(e))}async writeAsync(e,t){return writeAsync(this.file,e,this._getOptions(t))}parseJsonString(e,t){return parseJsonString(e,t)}async getAsync(e,t,r){return getAsync(this.file,e,t,this._getOptions(r))}async setAsync(e,t,r){return setAsync(this.file,e,t,this._getOptions(r))}async mergeAsync(e,t){return mergeAsync(this.file,e,this._getOptions(t))}async deleteKeyAsync(e,t){return deleteKeyAsync(this.file,e,this._getOptions(t))}async deleteKeysAsync(e,t){return deleteKeysAsync(this.file,e,this._getOptions(t))}async rewriteAsync(e){return rewriteAsync(this.file,this._getOptions(e))}_getOptions(e){return Object.assign(Object.assign({},this.options),e)}}t["default"]=JsonFile;JsonFile.read=read;JsonFile.readAsync=readAsync;JsonFile.parseJsonString=parseJsonString;JsonFile.writeAsync=writeAsync;JsonFile.getAsync=getAsync;JsonFile.setAsync=setAsync;JsonFile.mergeAsync=mergeAsync;JsonFile.deleteKeyAsync=deleteKeyAsync;JsonFile.deleteKeysAsync=deleteKeysAsync;JsonFile.rewriteAsync=rewriteAsync;function read(e,t){let r;try{r=n.readFileSync(e,"utf8")}catch(r){let s=cantReadFileDefault(t);if(s===undefined){throw new p.default(`Can't read JSON file: ${e}`,r,r.code)}else{return s}}return parseJsonString(r,t)}async function readAsync(e,t){let r;try{r=await d(e,"utf8")}catch(r){let s=cantReadFileDefault(t);if(s===undefined){throw new p.default(`Can't read JSON file: ${e}`,r,r.code)}else{return s}}return parseJsonString(r,t)}function parseJsonString(e,t){try{if(_getOption(t,"json5")){return u.default.parse(e)}else{return JSON.parse(e)}}catch(r){let s=jsonParseErrorDefault(t);if(s===undefined){let t=locationFromSyntaxError(r,e);if(t){let s=h.codeFrameColumns(e,{start:t});r.codeFrame=s;r.message+=`\n${s}`}throw new p.default(`Error parsing JSON: ${e}`,r,"EJSONPARSE")}else{return s}}}async function getAsync(e,t,r,s){const n=await readAsync(e,s);if(r===undefined&&!(t in n)){throw new p.default(`No value at key path "${t}" in JSON object from: ${e}`)}return o.default(n,t,r)}async function writeAsync(e,t,r){const s=_getOption(r,"space");const n=_getOption(r,"json5");const i=_getOption(r,"addNewLineAtEOF");let o;try{if(n){o=u.default.stringify(t,null,s)}else{o=JSON.stringify(t,null,s)}}catch(t){throw new p.default(`Couldn't JSON.stringify object for file: ${e}`,t)}const a=i?`${o}\n`:o;await m(e,a,{});return t}async function setAsync(e,t,r,s){let n=await readAsync(e,s);n=a.default(n,t,r);return writeAsync(e,n,s)}async function mergeAsync(e,t,r){const s=await readAsync(e,r);if(Array.isArray(t)){Object.assign(s,...t)}else{Object.assign(s,t)}return writeAsync(e,s,r)}async function deleteKeyAsync(e,t,r){return deleteKeysAsync(e,[t],r)}async function deleteKeysAsync(e,t,r){const s=await readAsync(e,r);let n=false;for(let e=0;e<t.length;e++){let r=t[e];if(s.hasOwnProperty(r)){delete s[r];n=true}}if(n){return writeAsync(e,s,r)}return s}async function rewriteAsync(e,t){const r=await readAsync(e,t);return writeAsync(e,r,t)}function jsonParseErrorDefault(e={}){if(e.jsonParseErrorDefault===undefined){return e.default}else{return e.jsonParseErrorDefault}}function cantReadFileDefault(e={}){if(e.cantReadFileDefault===undefined){return e.default}else{return e.cantReadFileDefault}}function _getOption(e,t){if(e){if(e[t]!==undefined){return e[t]}}return y[t]}function locationFromSyntaxError(e,t){if("lineNumber"in e&&"columnNumber"in e){return{line:e.lineNumber,column:e.columnNumber}}let r=/at position (\d+)/.exec(e.message);if(r){let e=parseInt(r[1],10);let s=t.slice(0,e+1).split("\n");return{line:s.length,column:s[s.length-1].length}}return null}},2212:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class JsonFileError extends Error{constructor(e,t,r){let s=t?`${e}\n└─ Cause: ${t.name}: ${t.message}`:e;super(s);this.name=this.constructor.name;this.cause=t;this.code=r;this.isJsonFileError=true}}t["default"]=JsonFileError},2783:function(e,t,r){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const n=s(r(5562));const i=s(r(8006));const o=r(7147);const a=s(r(1017));const u=r(6353);class CocoaPodsPackageManager{constructor({cwd:e,log:t,silent:r}){this.log=t||console.log;this.silent=!!r;this.options=Object.assign({cwd:e},r?{ignoreStdio:true}:{stdio:["inherit","inherit","pipe"]})}static getPodProjectRoot(e){if(CocoaPodsPackageManager.isUsingPods(e))return e;const t=a.default.join(e,"ios");if(CocoaPodsPackageManager.isUsingPods(t))return t;return null}static isUsingPods(e){return o.existsSync(a.default.join(e,"Podfile"))}static async gemInstallCLIAsync(e=false,t={stdio:"inherit"}){const r=["install","cocoapods","--no-document"];try{await n.default("gem",r,t)}catch(t){if(e){throw t}await u.spawnSudoAsync(`gem ${r.join(" ")}`)}}static async brewLinkCLIAsync(e={stdio:"inherit"}){await n.default("brew",["link","cocoapods"],e)}static async brewInstallCLIAsync(e={stdio:"inherit"}){await n.default("brew",["install","cocoapods"],e)}static async installCLIAsync({nonInteractive:e=false,spawnOptions:t={stdio:"inherit"}}){if(!t){t={stdio:"inherit"}}let r=!!t.ignoreStdio;try{!r&&console.log(i.default.magenta(`› Attempting to install CocoaPods with Gem`));await CocoaPodsPackageManager.gemInstallCLIAsync(e,t);!r&&console.log(i.default.magenta(`› Successfully installed CocoaPods with Gem`));return true}catch(e){!r&&console.log(i.default.yellow(`› Failed to install CocoaPods with Gem`));!r&&console.log(i.default.black.bgRed(e.stderr));try{!r&&console.log(i.default.magenta(`› Attempting to install CocoaPods with Homebrew`));await CocoaPodsPackageManager.brewInstallCLIAsync(t);if(!await CocoaPodsPackageManager.isCLIInstalledAsync(t)){try{await CocoaPodsPackageManager.brewLinkCLIAsync(t);if(!await CocoaPodsPackageManager.isCLIInstalledAsync(t)){throw new Error}}catch(e){throw Error("Homebrew installation appeared to succeed but CocoaPods not found in PATH and unable to link.")}}!r&&console.log(i.default.magenta(`› Successfully installed CocoaPods with Homebrew`));return true}catch(e){!r&&console.log(i.default.yellow(`› Failed to install CocoaPods with Homebrew. Please install CocoaPods manually and try again.`));throw new Error(e.stderr)}}}static isAvailable(e,t){if(process.platform!=="darwin"){!t&&console.log(i.default.red("CocoaPods is only supported on macOS machines"));return false}if(!CocoaPodsPackageManager.isUsingPods(e)){!t&&console.log(i.default.yellow("CocoaPods is not supported in this project"));return false}return true}static async isCLIInstalledAsync(e={stdio:"inherit"}){try{await n.default("pod",["--version"],e);return true}catch(e){return false}}get name(){return"CocoaPods"}async installAsync(){await this._installAsync()}isCLIInstalledAsync(){return CocoaPodsPackageManager.isCLIInstalledAsync(this.options)}installCLIAsync(){return CocoaPodsPackageManager.installCLIAsync({nonInteractive:true,spawnOptions:this.options})}async _installAsync(e=true){var t;try{await this._runAsync(["install"])}catch(r){const s=(t=r.stderr)!==null&&t!==void 0?t:r.stdout;if(s.includes("pod repo update")&&e){!this.silent&&console.log(i.default.yellow(`› Couldn't install Pods. ${i.default.dim(`Updating the repo and trying again.`)}`));await this.podRepoUpdateAsync();await this._installAsync(false)}else{throw new Error(s)}}}async addAsync(...e){throw new Error("Unimplemented")}async addDevAsync(...e){throw new Error("Unimplemented")}async versionAsync(){const{stdout:e}=await n.default("pod",["--version"],this.options);return e.trim()}async getConfigAsync(e){throw new Error("Unimplemented")}async removeLockfileAsync(){throw new Error("Unimplemented")}async cleanAsync(){throw new Error("Unimplemented")}async podRepoUpdateAsync(){var e;try{await this._runAsync(["repo","update"])}catch(t){throw new Error((e=t.stderr)!==null&&e!==void 0?e:t.stdout)}}async _runAsync(e){if(!this.silent){this.log(`> pod ${e.join(" ")}`)}return n.default("pod",[...e],this.options)}}t.CocoaPodsPackageManager=CocoaPodsPackageManager},7158:function(e,t,r){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const n=s(r(9090));const i=s(r(5562));const o=s(r(5063));const a=s(r(6748));const u=r(7147);const l=s(r(2695));const h=s(r(1017));const p=s(r(4959));const d=s(r(6354));const m=r(2781);const y=s(r(2564));const g={DISABLE_OPENCOLLECTIVE:"1",ADBLOCK:"1"};const v=`(?:${o.default().source})*`;const b=new RegExp(`${v}npm${v} ${v}WARN${v}.+You must install peer dependencies yourself\\.\n`,"g");const w=new RegExp(`${v}warning${v} "[^"]+" has (?:unmet|incorrect) peer dependency "[^"]+"\\.\n`,"g");function isUsingYarn(e){const t=a.default(e);if(t){return u.existsSync(h.default.join(t,"yarn.lock"))}return u.existsSync(h.default.join(e,"yarn.lock"))}t.isUsingYarn=isUsingYarn;class NpmStderrTransform extends m.Transform{_transform(e,t,r){this.push(e.toString().replace(b,""));r()}}class YarnStderrTransform extends m.Transform{_transform(e,t,r){this.push(e.toString().replace(w,""));r()}}class NpmPackageManager{constructor({cwd:e,log:t,silent:r}){this.log=t||console.log;this.options=Object.assign({env:Object.assign(Object.assign({},process.env),g),cwd:e},r?{ignoreStdio:true}:{stdio:["inherit","inherit","pipe"]})}get name(){return"npm"}async installAsync(){await this._runAsync(["install"])}async addAsync(...e){if(!e.length)return this.installAsync();const{versioned:t,unversioned:r}=this._parseSpecs(e);if(t.length){await this._patchAsync(t,"dependencies");await this._runAsync(["install"])}if(r.length){await this._runAsync(["install","--save",...r.map((e=>e.raw))])}}async addDevAsync(...e){if(!e.length)return this.installAsync();const{versioned:t,unversioned:r}=this._parseSpecs(e);if(t.length){await this._patchAsync(t,"devDependencies");await this._runAsync(["install"])}if(r.length){await this._runAsync(["install","--save-dev",...r.map((e=>e.raw))])}}async versionAsync(){const{stdout:e}=await i.default("npm",["--version"],{stdio:"pipe"});return e.trim()}async getConfigAsync(e){const{stdout:t}=await i.default("npm",["config","get",e],{stdio:"pipe"});return t.trim()}async removeLockfileAsync(){if(!this.options.cwd){throw new Error("cwd required for NpmPackageManager.removeLockfileAsync")}let e=h.default.join(this.options.cwd,"package-lock.json");if(u.existsSync(e)){p.default.sync(e)}}async cleanAsync(){if(!this.options.cwd){throw new Error("cwd required for NpmPackageManager.cleanAsync")}let e=h.default.join(this.options.cwd,"node_modules");if(u.existsSync(e)){p.default.sync(e)}}async _runAsync(e){if(!this.options.ignoreStdio){this.log(`> npm ${e.join(" ")}`)}const t=i.default("npm",[...e],Object.assign(Object.assign({},this.options),{ignoreStdio:false}));if(t.child.stderr&&!this.options.ignoreStdio){t.child.stderr.pipe(d.default(/\r?\n/,(e=>e+"\n"))).pipe(new NpmStderrTransform).pipe(process.stderr)}return t}_parseSpecs(e){const t={versioned:[],unversioned:[]};e.map((e=>l.default(e))).forEach((e=>{if(e.rawSpec){t.versioned.push(e)}else{t.unversioned.push(e)}}));return t}async _patchAsync(e,t){const r=h.default.join(this.options.cwd||".","package.json");const s=await n.default.readAsync(r);e.forEach((e=>{s[t]=s[t]||{};s[t][e.name]=e.rawSpec}));await n.default.writeAsync(r,s,{json5:false})}}t.NpmPackageManager=NpmPackageManager;class YarnPackageManager{constructor({cwd:e,log:t,silent:r}){this.log=t||console.log;this.options=Object.assign({env:Object.assign(Object.assign({},process.env),g),cwd:e},r?{ignoreStdio:true}:{stdio:["inherit","inherit","pipe"]})}get name(){return"Yarn"}async withOfflineSupportAsync(...e){if(await y.default()){e.push("--offline")}return e}async installAsync(){const e=await this.withOfflineSupportAsync("install");await this._runAsync(e)}async addAsync(...e){if(!e.length)return this.installAsync();const t=await this.withOfflineSupportAsync("add");t.push(...e);await this._runAsync(t)}async addDevAsync(...e){if(!e.length)return this.installAsync();const t=await this.withOfflineSupportAsync("add","--dev");t.push(...e);await this._runAsync(t)}async versionAsync(){const{stdout:e}=await i.default("yarnpkg",["--version"],{stdio:"pipe"});return e.trim()}async getConfigAsync(e){const{stdout:t}=await i.default("yarnpkg",["config","get",e],{stdio:"pipe"});return t.trim()}async removeLockfileAsync(){if(!this.options.cwd){throw new Error("cwd required for YarnPackageManager.removeLockfileAsync")}let e=h.default.join(this.options.cwd,"yarn-lock.json");if(u.existsSync(e)){p.default.sync(e)}}async cleanAsync(){if(!this.options.cwd){throw new Error("cwd required for YarnPackageManager.cleanAsync")}let e=h.default.join(this.options.cwd,"node_modules");if(u.existsSync(e)){p.default.sync(e)}}async _runAsync(e){if(!this.options.ignoreStdio){this.log(`> yarn ${e.join(" ")}`)}const t=i.default("yarnpkg",e,Object.assign(Object.assign({},this.options),{ignoreStdio:false}));if(t.child.stderr&&!this.options.ignoreStdio){t.child.stderr.pipe(new YarnStderrTransform).pipe(process.stderr)}return t}}t.YarnPackageManager=YarnPackageManager;function createForProject(e,t={}){let r;if(t.npm){r=NpmPackageManager}else if(t.yarn){r=YarnPackageManager}else if(isUsingYarn(e)){r=YarnPackageManager}else{r=NpmPackageManager}return new r({cwd:e,log:t.log,silent:t.silent})}t.createForProject=createForProject;function getModulesPath(e){const t=a.default(h.default.resolve(e));if(t){return h.default.resolve(t,"node_modules")}return h.default.resolve(e,"node_modules")}t.getModulesPath=getModulesPath},6353:function(e,t,r){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const n=r(7147);const i=s(r(8566));function getPossibleProjectRoot(){return n.realpathSync(process.cwd())}t.getPossibleProjectRoot=getPossibleProjectRoot;function spawnSudoAsync(e){const t=r(9680);return new Promise(((r,s)=>{i.default.exec(e,{name:t.name},(e=>{if(e){s(e)}r()}))}))}t.spawnSudoAsync=spawnSudoAsync},6395:(e,t,r)=>{"use strict";function __export(e){for(var r in e)if(!t.hasOwnProperty(r))t[r]=e[r]}Object.defineProperty(t,"__esModule",{value:true});__export(r(6353));__export(r(7158));__export(r(2783));var s=r(4889);t.shouldUseYarn=s.default;var n=r(2564);t.isYarnOfflineAsync=n.default},2564:function(e,t,r){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const n=r(2081);const i=s(r(9523));const o=s(r(7310));function getNpmProxy(){var e;if(process.env.https_proxy){return(e=process.env.https_proxy)!==null&&e!==void 0?e:null}try{const e=n.execSync("npm config get https-proxy").toString().trim();return e!=="null"?e:null}catch(e){return null}}t.getNpmProxy=getNpmProxy;function isUrlAvailableAsync(e){return new Promise((t=>{i.default.lookup(e,(e=>{t(!e)}))}))}async function isYarnOfflineAsync(){if(await isUrlAvailableAsync("registry.yarnpkg.com")){return false}const e=getNpmProxy();if(!e){return true}const{hostname:t}=o.default.parse(e);if(!t){return true}return!await isUrlAvailableAsync(t)}t["default"]=isYarnOfflineAsync},4889:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(2081);function shouldUseYarn(){var e;try{if((e=process.env.npm_config_user_agent)===null||e===void 0?void 0:e.startsWith("yarn")){return true}s.execSync("yarnpkg --version",{stdio:"ignore"});return true}catch(e){return false}}t["default"]=shouldUseYarn},8006:(e,t,r)=>{"use strict";const s=r(2068);const{stdout:n,stderr:i}=r(9318);const{stringReplaceAll:o,stringEncaseCRLFWithFirstIndex:a}=r(4879);const u=["ansi","ansi","ansi256","ansi16m"];const l=Object.create(null);const applyOptions=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3)){throw new Error("The `level` option should be an integer from 0 to 3")}const r=n?n.level:0;e.level=t.level===undefined?r:t.level};class ChalkClass{constructor(e){return chalkFactory(e)}}const chalkFactory=e=>{const t={};applyOptions(t,e);t.template=(...e)=>chalkTag(t.template,...e);Object.setPrototypeOf(t,Chalk.prototype);Object.setPrototypeOf(t.template,t);t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")};t.template.Instance=ChalkClass;return t.template};function Chalk(e){return chalkFactory(e)}for(const[e,t]of Object.entries(s)){l[e]={get(){const r=createBuilder(this,createStyler(t.open,t.close,this._styler),this._isEmpty);Object.defineProperty(this,e,{value:r});return r}}}l.visible={get(){const e=createBuilder(this,this._styler,true);Object.defineProperty(this,"visible",{value:e});return e}};const h=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const e of h){l[e]={get(){const{level:t}=this;return function(...r){const n=createStyler(s.color[u[t]][e](...r),s.color.close,this._styler);return createBuilder(this,n,this._isEmpty)}}}}for(const e of h){const t="bg"+e[0].toUpperCase()+e.slice(1);l[t]={get(){const{level:t}=this;return function(...r){const n=createStyler(s.bgColor[u[t]][e](...r),s.bgColor.close,this._styler);return createBuilder(this,n,this._isEmpty)}}}}const p=Object.defineProperties((()=>{}),{...l,level:{enumerable:true,get(){return this._generator.level},set(e){this._generator.level=e}}});const createStyler=(e,t,r)=>{let s;let n;if(r===undefined){s=e;n=t}else{s=r.openAll+e;n=t+r.closeAll}return{open:e,close:t,openAll:s,closeAll:n,parent:r}};const createBuilder=(e,t,r)=>{const builder=(...e)=>applyStyle(builder,e.length===1?""+e[0]:e.join(" "));Object.setPrototypeOf(builder,p);builder._generator=e;builder._styler=t;builder._isEmpty=r;return builder};const applyStyle=(e,t)=>{if(e.level<=0||!t){return e._isEmpty?"":t}let r=e._styler;if(r===undefined){return t}const{openAll:s,closeAll:n}=r;if(t.indexOf("")!==-1){while(r!==undefined){t=o(t,r.close,r.open);r=r.parent}}const i=t.indexOf("\n");if(i!==-1){t=a(t,n,s,i)}return s+t+n};let d;const chalkTag=(e,...t)=>{const[s]=t;if(!Array.isArray(s)){return t.join(" ")}const n=t.slice(1);const i=[s.raw[0]];for(let e=1;e<s.length;e++){i.push(String(n[e-1]).replace(/[{}\\]/g,"\\$&"),String(s.raw[e]))}if(d===undefined){d=r(3787)}return d(e,i.join(""))};Object.defineProperties(Chalk.prototype,l);const m=Chalk();m.supportsColor=n;m.stderr=Chalk({level:i?i.level:0});m.stderr.supportsColor=i;e.exports=m},3787:e=>{"use strict";const t=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;const r=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;const s=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;const n=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi;const i=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function unescape(e){const t=e[0]==="u";const r=e[1]==="{";if(t&&!r&&e.length===5||e[0]==="x"&&e.length===3){return String.fromCharCode(parseInt(e.slice(1),16))}if(t&&r){return String.fromCodePoint(parseInt(e.slice(2,-1),16))}return i.get(e)||e}function parseArguments(e,t){const r=[];const i=t.trim().split(/\s*,\s*/g);let o;for(const t of i){const i=Number(t);if(!Number.isNaN(i)){r.push(i)}else if(o=t.match(s)){r.push(o[2].replace(n,((e,t,r)=>t?unescape(t):r)))}else{throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`)}}return r}function parseStyle(e){r.lastIndex=0;const t=[];let s;while((s=r.exec(e))!==null){const e=s[1];if(s[2]){const r=parseArguments(e,s[2]);t.push([e].concat(r))}else{t.push([e])}}return t}function buildStyle(e,t){const r={};for(const e of t){for(const t of e.styles){r[t[0]]=e.inverse?null:t.slice(1)}}let s=e;for(const[e,t]of Object.entries(r)){if(!Array.isArray(t)){continue}if(!(e in s)){throw new Error(`Unknown Chalk style: ${e}`)}s=t.length>0?s[e](...t):s[e]}return s}e.exports=(e,r)=>{const s=[];const n=[];let i=[];r.replace(t,((t,r,o,a,u,l)=>{if(r){i.push(unescape(r))}else if(a){const t=i.join("");i=[];n.push(s.length===0?t:buildStyle(e,s)(t));s.push({inverse:o,styles:parseStyle(a)})}else if(u){if(s.length===0){throw new Error("Found extraneous } in Chalk template literal")}n.push(buildStyle(e,s)(i.join("")));i=[];s.pop()}else{i.push(l)}}));n.push(i.join(""));if(s.length>0){const e=`Chalk template literal is missing ${s.length} closing bracket${s.length===1?"":"s"} (\`}\`)`;throw new Error(e)}return n.join("")}},4879:e=>{"use strict";const stringReplaceAll=(e,t,r)=>{let s=e.indexOf(t);if(s===-1){return e}const n=t.length;let i=0;let o="";do{o+=e.substr(i,s-i)+t+r;i=s+n;s=e.indexOf(t,i)}while(s!==-1);o+=e.substr(i);return o};const stringEncaseCRLFWithFirstIndex=(e,t,r,s)=>{let n=0;let i="";do{const o=e[s-1]==="\r";i+=e.substr(n,(o?s-1:s)-n)+t+(o?"\r\n":"\n")+r;n=s+1;s=e.indexOf("\n",n)}while(s!==-1);i+=e.substr(n);return i};e.exports={stringReplaceAll:stringReplaceAll,stringEncaseCRLFWithFirstIndex:stringEncaseCRLFWithFirstIndex}},4927:function(e,t,r){"use strict";var s=this&&this.__rest||function(e,t){var r={};for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0)r[s]=e[s];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var n=0,s=Object.getOwnPropertySymbols(e);n<s.length;n++)if(t.indexOf(s[n])<0)r[s[n]]=e[s[n]];return r};var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const i=n(r(2746));function spawnAsync(e,t,r={}){const n=new Error("fake error just to preserve stacktrace");const o=n.stack&&n.stack.split("\n").splice(1);const a=o&&[" ...",...o].join("\n");let u;let l=new Promise(((n,o)=>{let{ignoreStdio:l}=r,h=s(r,["ignoreStdio"]);u=i.default(e,t,h);let p="";let d="";if(!l){if(u.stdout){u.stdout.on("data",(e=>{p+=e}))}if(u.stderr){u.stderr.on("data",(e=>{d+=e}))}}let completionListener=(t,r)=>{u.removeListener("error",errorListener);let s={pid:u.pid,output:[p,d],stdout:p,stderr:d,status:t,signal:r};if(t!==0){let n=r?new Error(`${e} exited with signal: ${r}`):new Error(`${e} exited with non-zero code: ${t}`);if(n.stack&&a){n.stack+=`\n${a}`}Object.assign(n,s);o(n)}else{n(s)}};let errorListener=e=>{if(l){u.removeListener("exit",completionListener)}else{u.removeListener("close",completionListener)}Object.assign(e,{pid:u.pid,output:[p,d],stdout:p,stderr:d,status:null,signal:null});o(e)};if(l){u.once("exit",completionListener)}else{u.once("close",completionListener)}u.once("error",errorListener)}));l.child=u;return l}t["default"]=spawnAsync},5562:(e,t,r)=>{e.exports=r(4927)["default"]},7678:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const{toString:r}=Object.prototype;const isOfType=e=>t=>typeof t===e;const getObjectType=e=>{const t=r.call(e).slice(8,-1);if(t){return t}return undefined};const isObjectOfType=e=>t=>getObjectType(t)===e;function is(e){switch(e){case null:return"null";case true:case false:return"boolean";default:}switch(typeof e){case"undefined":return"undefined";case"string":return"string";case"number":return"number";case"bigint":return"bigint";case"symbol":return"symbol";default:}if(is.function_(e)){return"Function"}if(is.observable(e)){return"Observable"}if(is.array(e)){return"Array"}if(is.buffer(e)){return"Buffer"}const t=getObjectType(e);if(t){return t}if(e instanceof String||e instanceof Boolean||e instanceof Number){throw new TypeError("Please don't use object wrappers for primitive types")}return"Object"}is.undefined=isOfType("undefined");is.string=isOfType("string");const s=isOfType("number");is.number=e=>s(e)&&!is.nan(e);is.bigint=isOfType("bigint");is.function_=isOfType("function");is.null_=e=>e===null;is.class_=e=>is.function_(e)&&e.toString().startsWith("class ");is.boolean=e=>e===true||e===false;is.symbol=isOfType("symbol");is.numericString=e=>is.string(e)&&!is.emptyStringOrWhitespace(e)&&!Number.isNaN(Number(e));is.array=Array.isArray;is.buffer=e=>{var t,r,s,n;return(n=(s=(r=(t=e)===null||t===void 0?void 0:t.constructor)===null||r===void 0?void 0:r.isBuffer)===null||s===void 0?void 0:s.call(r,e))!==null&&n!==void 0?n:false};is.nullOrUndefined=e=>is.null_(e)||is.undefined(e);is.object=e=>!is.null_(e)&&(typeof e==="object"||is.function_(e));is.iterable=e=>{var t;return is.function_((t=e)===null||t===void 0?void 0:t[Symbol.iterator])};is.asyncIterable=e=>{var t;return is.function_((t=e)===null||t===void 0?void 0:t[Symbol.asyncIterator])};is.generator=e=>is.iterable(e)&&is.function_(e.next)&&is.function_(e.throw);is.asyncGenerator=e=>is.asyncIterable(e)&&is.function_(e.next)&&is.function_(e.throw);is.nativePromise=e=>isObjectOfType("Promise")(e);const hasPromiseAPI=e=>{var t,r;return is.function_((t=e)===null||t===void 0?void 0:t.then)&&is.function_((r=e)===null||r===void 0?void 0:r.catch)};is.promise=e=>is.nativePromise(e)||hasPromiseAPI(e);is.generatorFunction=isObjectOfType("GeneratorFunction");is.asyncGeneratorFunction=e=>getObjectType(e)==="AsyncGeneratorFunction";is.asyncFunction=e=>getObjectType(e)==="AsyncFunction";is.boundFunction=e=>is.function_(e)&&!e.hasOwnProperty("prototype");is.regExp=isObjectOfType("RegExp");is.date=isObjectOfType("Date");is.error=isObjectOfType("Error");is.map=e=>isObjectOfType("Map")(e);is.set=e=>isObjectOfType("Set")(e);is.weakMap=e=>isObjectOfType("WeakMap")(e);is.weakSet=e=>isObjectOfType("WeakSet")(e);is.int8Array=isObjectOfType("Int8Array");is.uint8Array=isObjectOfType("Uint8Array");is.uint8ClampedArray=isObjectOfType("Uint8ClampedArray");is.int16Array=isObjectOfType("Int16Array");is.uint16Array=isObjectOfType("Uint16Array");is.int32Array=isObjectOfType("Int32Array");is.uint32Array=isObjectOfType("Uint32Array");is.float32Array=isObjectOfType("Float32Array");is.float64Array=isObjectOfType("Float64Array");is.bigInt64Array=isObjectOfType("BigInt64Array");is.bigUint64Array=isObjectOfType("BigUint64Array");is.arrayBuffer=isObjectOfType("ArrayBuffer");is.sharedArrayBuffer=isObjectOfType("SharedArrayBuffer");is.dataView=isObjectOfType("DataView");is.directInstanceOf=(e,t)=>Object.getPrototypeOf(e)===t.prototype;is.urlInstance=e=>isObjectOfType("URL")(e);is.urlString=e=>{if(!is.string(e)){return false}try{new URL(e);return true}catch(e){return false}};is.truthy=e=>Boolean(e);is.falsy=e=>!e;is.nan=e=>Number.isNaN(e);const n=new Set(["undefined","string","number","bigint","boolean","symbol"]);is.primitive=e=>is.null_(e)||n.has(typeof e);is.integer=e=>Number.isInteger(e);is.safeInteger=e=>Number.isSafeInteger(e);is.plainObject=e=>{if(getObjectType(e)!=="Object"){return false}const t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};const i=new Set(["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"]);is.typedArray=e=>{const t=getObjectType(e);if(t===undefined){return false}return i.has(t)};const isValidLength=e=>is.safeInteger(e)&&e>=0;is.arrayLike=e=>!is.nullOrUndefined(e)&&!is.function_(e)&&isValidLength(e.length);is.inRange=(e,t)=>{if(is.number(t)){return e>=Math.min(0,t)&&e<=Math.max(t,0)}if(is.array(t)&&t.length===2){return e>=Math.min(...t)&&e<=Math.max(...t)}throw new TypeError(`Invalid range: ${JSON.stringify(t)}`)};const o=1;const a=["innerHTML","ownerDocument","style","attributes","nodeValue"];is.domElement=e=>is.object(e)&&e.nodeType===o&&is.string(e.nodeName)&&!is.plainObject(e)&&a.every((t=>t in e));is.observable=e=>{var t,r,s,n;if(!e){return false}if(e===((r=(t=e)[Symbol.observable])===null||r===void 0?void 0:r.call(t))){return true}if(e===((n=(s=e)["@@observable"])===null||n===void 0?void 0:n.call(s))){return true}return false};is.nodeStream=e=>is.object(e)&&is.function_(e.pipe)&&!is.observable(e);is.infinite=e=>e===Infinity||e===-Infinity;const isAbsoluteMod2=e=>t=>is.integer(t)&&Math.abs(t%2)===e;is.evenInteger=isAbsoluteMod2(0);is.oddInteger=isAbsoluteMod2(1);is.emptyArray=e=>is.array(e)&&e.length===0;is.nonEmptyArray=e=>is.array(e)&&e.length>0;is.emptyString=e=>is.string(e)&&e.length===0;is.nonEmptyString=e=>is.string(e)&&e.length>0;const isWhiteSpaceString=e=>is.string(e)&&!/\S/.test(e);is.emptyStringOrWhitespace=e=>is.emptyString(e)||isWhiteSpaceString(e);is.emptyObject=e=>is.object(e)&&!is.map(e)&&!is.set(e)&&Object.keys(e).length===0;is.nonEmptyObject=e=>is.object(e)&&!is.map(e)&&!is.set(e)&&Object.keys(e).length>0;is.emptySet=e=>is.set(e)&&e.size===0;is.nonEmptySet=e=>is.set(e)&&e.size>0;is.emptyMap=e=>is.map(e)&&e.size===0;is.nonEmptyMap=e=>is.map(e)&&e.size>0;const predicateOnArray=(e,t,r)=>{if(!is.function_(t)){throw new TypeError(`Invalid predicate: ${JSON.stringify(t)}`)}if(r.length===0){throw new TypeError("Invalid number of values")}return e.call(r,t)};is.any=(e,...t)=>{const r=is.array(e)?e:[e];return r.some((e=>predicateOnArray(Array.prototype.some,e,t)))};is.all=(e,...t)=>predicateOnArray(Array.prototype.every,e,t);const assertType=(e,t,r)=>{if(!e){throw new TypeError(`Expected value which is \`${t}\`, received value of type \`${is(r)}\`.`)}};t.assert={undefined:e=>assertType(is.undefined(e),"undefined",e),string:e=>assertType(is.string(e),"string",e),number:e=>assertType(is.number(e),"number",e),bigint:e=>assertType(is.bigint(e),"bigint",e),function_:e=>assertType(is.function_(e),"Function",e),null_:e=>assertType(is.null_(e),"null",e),class_:e=>assertType(is.class_(e),"Class",e),boolean:e=>assertType(is.boolean(e),"boolean",e),symbol:e=>assertType(is.symbol(e),"symbol",e),numericString:e=>assertType(is.numericString(e),"string with a number",e),array:e=>assertType(is.array(e),"Array",e),buffer:e=>assertType(is.buffer(e),"Buffer",e),nullOrUndefined:e=>assertType(is.nullOrUndefined(e),"null or undefined",e),object:e=>assertType(is.object(e),"Object",e),iterable:e=>assertType(is.iterable(e),"Iterable",e),asyncIterable:e=>assertType(is.asyncIterable(e),"AsyncIterable",e),generator:e=>assertType(is.generator(e),"Generator",e),asyncGenerator:e=>assertType(is.asyncGenerator(e),"AsyncGenerator",e),nativePromise:e=>assertType(is.nativePromise(e),"native Promise",e),promise:e=>assertType(is.promise(e),"Promise",e),generatorFunction:e=>assertType(is.generatorFunction(e),"GeneratorFunction",e),asyncGeneratorFunction:e=>assertType(is.asyncGeneratorFunction(e),"AsyncGeneratorFunction",e),asyncFunction:e=>assertType(is.asyncFunction(e),"AsyncFunction",e),boundFunction:e=>assertType(is.boundFunction(e),"Function",e),regExp:e=>assertType(is.regExp(e),"RegExp",e),date:e=>assertType(is.date(e),"Date",e),error:e=>assertType(is.error(e),"Error",e),map:e=>assertType(is.map(e),"Map",e),set:e=>assertType(is.set(e),"Set",e),weakMap:e=>assertType(is.weakMap(e),"WeakMap",e),weakSet:e=>assertType(is.weakSet(e),"WeakSet",e),int8Array:e=>assertType(is.int8Array(e),"Int8Array",e),uint8Array:e=>assertType(is.uint8Array(e),"Uint8Array",e),uint8ClampedArray:e=>assertType(is.uint8ClampedArray(e),"Uint8ClampedArray",e),int16Array:e=>assertType(is.int16Array(e),"Int16Array",e),uint16Array:e=>assertType(is.uint16Array(e),"Uint16Array",e),int32Array:e=>assertType(is.int32Array(e),"Int32Array",e),uint32Array:e=>assertType(is.uint32Array(e),"Uint32Array",e),float32Array:e=>assertType(is.float32Array(e),"Float32Array",e),float64Array:e=>assertType(is.float64Array(e),"Float64Array",e),bigInt64Array:e=>assertType(is.bigInt64Array(e),"BigInt64Array",e),bigUint64Array:e=>assertType(is.bigUint64Array(e),"BigUint64Array",e),arrayBuffer:e=>assertType(is.arrayBuffer(e),"ArrayBuffer",e),sharedArrayBuffer:e=>assertType(is.sharedArrayBuffer(e),"SharedArrayBuffer",e),dataView:e=>assertType(is.dataView(e),"DataView",e),urlInstance:e=>assertType(is.urlInstance(e),"URL",e),urlString:e=>assertType(is.urlString(e),"string with a URL",e),truthy:e=>assertType(is.truthy(e),"truthy",e),falsy:e=>assertType(is.falsy(e),"falsy",e),nan:e=>assertType(is.nan(e),"NaN",e),primitive:e=>assertType(is.primitive(e),"primitive",e),integer:e=>assertType(is.integer(e),"integer",e),safeInteger:e=>assertType(is.safeInteger(e),"integer",e),plainObject:e=>assertType(is.plainObject(e),"plain object",e),typedArray:e=>assertType(is.typedArray(e),"TypedArray",e),arrayLike:e=>assertType(is.arrayLike(e),"array-like",e),domElement:e=>assertType(is.domElement(e),"Element",e),observable:e=>assertType(is.observable(e),"Observable",e),nodeStream:e=>assertType(is.nodeStream(e),"Node.js Stream",e),infinite:e=>assertType(is.infinite(e),"infinite number",e),emptyArray:e=>assertType(is.emptyArray(e),"empty array",e),nonEmptyArray:e=>assertType(is.nonEmptyArray(e),"non-empty array",e),emptyString:e=>assertType(is.emptyString(e),"empty string",e),nonEmptyString:e=>assertType(is.nonEmptyString(e),"non-empty string",e),emptyStringOrWhitespace:e=>assertType(is.emptyStringOrWhitespace(e),"empty string or whitespace",e),emptyObject:e=>assertType(is.emptyObject(e),"empty object",e),nonEmptyObject:e=>assertType(is.nonEmptyObject(e),"non-empty object",e),emptySet:e=>assertType(is.emptySet(e),"empty set",e),nonEmptySet:e=>assertType(is.nonEmptySet(e),"non-empty set",e),emptyMap:e=>assertType(is.emptyMap(e),"empty map",e),nonEmptyMap:e=>assertType(is.nonEmptyMap(e),"non-empty map",e),evenInteger:e=>assertType(is.evenInteger(e),"even integer",e),oddInteger:e=>assertType(is.oddInteger(e),"odd integer",e),directInstanceOf:(e,t)=>assertType(is.directInstanceOf(e,t),"T",e),inRange:(e,t)=>assertType(is.inRange(e,t),"in range",e),any:(e,...t)=>assertType(is.any(e,...t),"predicate returns truthy for any value",t),all:(e,...t)=>assertType(is.all(e,...t),"predicate returns truthy for all values",t)};Object.defineProperties(is,{class:{value:is.class_},function:{value:is.function_},null:{value:is.null_}});Object.defineProperties(t.assert,{class:{value:t.assert.class_},function:{value:t.assert.function_},null:{value:t.assert.null_}});t["default"]=is;e.exports=is;e.exports["default"]=is;e.exports.assert=t.assert},8097:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(6214);const n=Number(process.versions.node.split(".")[0]);const timer=e=>{const t={start:Date.now(),socket:undefined,lookup:undefined,connect:undefined,secureConnect:undefined,upload:undefined,response:undefined,end:undefined,error:undefined,abort:undefined,phases:{wait:undefined,dns:undefined,tcp:undefined,tls:undefined,request:undefined,firstByte:undefined,download:undefined,total:undefined}};e.timings=t;const handleError=e=>{const r=e.emit.bind(e);e.emit=(s,...n)=>{if(s==="error"){t.error=Date.now();t.phases.total=t.error-t.start;e.emit=r}return r(s,...n)}};handleError(e);e.prependOnceListener("abort",(()=>{t.abort=Date.now();if(!t.response||n>=13){t.phases.total=Date.now()-t.start}}));const onSocket=e=>{t.socket=Date.now();t.phases.wait=t.socket-t.start;const lookupListener=()=>{t.lookup=Date.now();t.phases.dns=t.lookup-t.socket};e.prependOnceListener("lookup",lookupListener);s.default(e,{connect:()=>{t.connect=Date.now();if(t.lookup===undefined){e.removeListener("lookup",lookupListener);t.lookup=t.connect;t.phases.dns=t.lookup-t.socket}t.phases.tcp=t.connect-t.lookup},secureConnect:()=>{t.secureConnect=Date.now();t.phases.tls=t.secureConnect-t.connect}})};if(e.socket){onSocket(e.socket)}else{e.prependOnceListener("socket",onSocket)}const onUpload=()=>{var e;t.upload=Date.now();t.phases.request=t.upload-(e=t.secureConnect,e!==null&&e!==void 0?e:t.connect)};const writableFinished=()=>{if(typeof e.writableFinished==="boolean"){return e.writableFinished}return e.finished&&e.outputSize===0&&(!e.socket||e.socket.writableLength===0)};if(writableFinished()){onUpload()}else{e.prependOnceListener("finish",onUpload)}e.prependOnceListener("response",(e=>{t.response=Date.now();t.phases.firstByte=t.response-t.upload;e.timings=t;handleError(e);e.prependOnceListener("end",(()=>{t.end=Date.now();t.phases.download=t.end-t.response;t.phases.total=t.end-t.start}))}));return t};t["default"]=timer;e.exports=timer;e.exports["default"]=timer},8512:e=>{"use strict";const t=e.exports;e.exports["default"]=t;const r="[";const s="]";const n="";const i=";";const o=process.env.TERM_PROGRAM==="Apple_Terminal";t.cursorTo=(e,t)=>{if(typeof e!=="number"){throw new TypeError("The `x` argument is required")}if(typeof t!=="number"){return r+(e+1)+"G"}return r+(t+1)+";"+(e+1)+"H"};t.cursorMove=(e,t)=>{if(typeof e!=="number"){throw new TypeError("The `x` argument is required")}let s="";if(e<0){s+=r+-e+"D"}else if(e>0){s+=r+e+"C"}if(t<0){s+=r+-t+"A"}else if(t>0){s+=r+t+"B"}return s};t.cursorUp=(e=1)=>r+e+"A";t.cursorDown=(e=1)=>r+e+"B";t.cursorForward=(e=1)=>r+e+"C";t.cursorBackward=(e=1)=>r+e+"D";t.cursorLeft=r+"G";t.cursorSavePosition=o?"7":r+"s";t.cursorRestorePosition=o?"8":r+"u";t.cursorGetPosition=r+"6n";t.cursorNextLine=r+"E";t.cursorPrevLine=r+"F";t.cursorHide=r+"?25l";t.cursorShow=r+"?25h";t.eraseLines=e=>{let r="";for(let s=0;s<e;s++){r+=t.eraseLine+(s<e-1?t.cursorUp():"")}if(e){r+=t.cursorLeft}return r};t.eraseEndLine=r+"K";t.eraseStartLine=r+"1K";t.eraseLine=r+"2K";t.eraseDown=r+"J";t.eraseUp=r+"1J";t.eraseScreen=r+"2J";t.scrollUp=r+"S";t.scrollDown=r+"T";t.clearScreen="c";t.clearTerminal=process.platform==="win32"?`${t.eraseScreen}${r}0f`:`${t.eraseScreen}${r}3J${r}H`;t.beep=n;t.link=(e,t)=>[s,"8",i,i,t,n,e,s,"8",i,i,n].join("");t.image=(e,t={})=>{let r=`${s}1337;File=inline=1`;if(t.width){r+=`;width=${t.width}`}if(t.height){r+=`;height=${t.height}`}if(t.preserveAspectRatio===false){r+=";preserveAspectRatio=0"}return r+":"+e.toString("base64")+n};t.iTerm={setCwd:(e=process.cwd())=>`${s}50;CurrentDir=${e}${n}`,annotation:(e,t={})=>{let r=`${s}1337;`;const i=typeof t.x!=="undefined";const o=typeof t.y!=="undefined";if((i||o)&&!(i&&o&&typeof t.length!=="undefined")){throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined")}e=e.replace(/\|/g,"");r+=t.isHidden?"AddHiddenAnnotation=":"AddAnnotation=";if(t.length>0){r+=(i?[e,t.length,t.x,t.y]:[t.length,e]).join("|")}else{r+=e}return r+n}}},5063:e=>{"use strict";e.exports=({onlyFirst:e=false}={})=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?undefined:"g")}},2068:(e,t,r)=>{"use strict";e=r.nmd(e);const wrapAnsi16=(e,t)=>(...r)=>{const s=e(...r);return`[${s+t}m`};const wrapAnsi256=(e,t)=>(...r)=>{const s=e(...r);return`[${38+t};5;${s}m`};const wrapAnsi16m=(e,t)=>(...r)=>{const s=e(...r);return`[${38+t};2;${s[0]};${s[1]};${s[2]}m`};const ansi2ansi=e=>e;const rgb2rgb=(e,t,r)=>[e,t,r];const setLazyProperty=(e,t,r)=>{Object.defineProperty(e,t,{get:()=>{const s=r();Object.defineProperty(e,t,{value:s,enumerable:true,configurable:true});return s},enumerable:true,configurable:true})};let s;const makeDynamicStyles=(e,t,n,i)=>{if(s===undefined){s=r(6931)}const o=i?10:0;const a={};for(const[r,i]of Object.entries(s)){const s=r==="ansi16"?"ansi":r;if(r===t){a[s]=e(n,o)}else if(typeof i==="object"){a[s]=e(i[t],o)}}return a};function assembleStyles(){const e=new Map;const t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright;t.bgColor.bgGray=t.bgColor.bgBlackBright;t.color.grey=t.color.blackBright;t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(const[r,s]of Object.entries(t)){for(const[r,n]of Object.entries(s)){t[r]={open:`[${n[0]}m`,close:`[${n[1]}m`};s[r]=t[r];e.set(n[0],n[1])}Object.defineProperty(t,r,{value:s,enumerable:false})}Object.defineProperty(t,"codes",{value:e,enumerable:false});t.color.close="";t.bgColor.close="";setLazyProperty(t.color,"ansi",(()=>makeDynamicStyles(wrapAnsi16,"ansi16",ansi2ansi,false)));setLazyProperty(t.color,"ansi256",(()=>makeDynamicStyles(wrapAnsi256,"ansi256",ansi2ansi,false)));setLazyProperty(t.color,"ansi16m",(()=>makeDynamicStyles(wrapAnsi16m,"rgb",rgb2rgb,false)));setLazyProperty(t.bgColor,"ansi",(()=>makeDynamicStyles(wrapAnsi16,"ansi16",ansi2ansi,true)));setLazyProperty(t.bgColor,"ansi256",(()=>makeDynamicStyles(wrapAnsi256,"ansi256",ansi2ansi,true)));setLazyProperty(t.bgColor,"ansi16m",(()=>makeDynamicStyles(wrapAnsi16m,"rgb",rgb2rgb,true)));return t}Object.defineProperty(e,"exports",{enumerable:true,get:assembleStyles})},5995:e=>{e.exports=e=>{const t=process.versions.node.split(".").map((e=>parseInt(e,10)));e=e.split(".").map((e=>parseInt(e,10)));return t[0]>e[0]||t[0]===e[0]&&(t[1]>e[1]||t[1]===e[1]&&t[2]>=e[2])}},9417:e=>{"use strict";e.exports=balanced;function balanced(e,t,r){if(e instanceof RegExp)e=maybeMatch(e,r);if(t instanceof RegExp)t=maybeMatch(t,r);var s=range(e,t,r);return s&&{start:s[0],end:s[1],pre:r.slice(0,s[0]),body:r.slice(s[0]+e.length,s[1]),post:r.slice(s[1]+t.length)}}function maybeMatch(e,t){var r=t.match(e);return r?r[0]:null}balanced.range=range;function range(e,t,r){var s,n,i,o,a;var u=r.indexOf(e);var l=r.indexOf(t,u+1);var h=u;if(u>=0&&l>0){s=[];i=r.length;while(h>=0&&!a){if(h==u){s.push(h);u=r.indexOf(e,h+1)}else if(s.length==1){a=[s.pop(),l]}else{n=s.pop();if(n<i){i=n;o=l}l=r.indexOf(t,h+1)}h=u<l&&u>=0?u:l}if(s.length){a=[i,o]}}return a}},3717:(e,t,r)=>{var s=r(6891);var n=r(9417);e.exports=expandTop;var i="\0SLASH"+Math.random()+"\0";var o="\0OPEN"+Math.random()+"\0";var a="\0CLOSE"+Math.random()+"\0";var u="\0COMMA"+Math.random()+"\0";var l="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function escapeBraces(e){return e.split("\\\\").join(i).split("\\{").join(o).split("\\}").join(a).split("\\,").join(u).split("\\.").join(l)}function unescapeBraces(e){return e.split(i).join("\\").split(o).join("{").split(a).join("}").split(u).join(",").split(l).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[];var r=n("{","}",e);if(!r)return e.split(",");var s=r.pre;var i=r.body;var o=r.post;var a=s.split(",");a[a.length-1]+="{"+i+"}";var u=parseCommaParts(o);if(o.length){a[a.length-1]+=u.shift();a.push.apply(a,u)}t.push.apply(t,a);return t}function expandTop(e){if(!e)return[];if(e.substr(0,2)==="{}"){e="\\{\\}"+e.substr(2)}return expand(escapeBraces(e),true).map(unescapeBraces)}function identity(e){return e}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,t){return e<=t}function gte(e,t){return e>=t}function expand(e,t){var r=[];var i=n("{","}",e);if(!i||/\$$/.test(i.pre))return[e];var o=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body);var u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body);var l=o||u;var h=i.body.indexOf(",")>=0;if(!l&&!h){if(i.post.match(/,.*\}/)){e=i.pre+"{"+i.body+a+i.post;return expand(e)}return[e]}var p;if(l){p=i.body.split(/\.\./)}else{p=parseCommaParts(i.body);if(p.length===1){p=expand(p[0],false).map(embrace);if(p.length===1){var d=i.post.length?expand(i.post,false):[""];return d.map((function(e){return i.pre+p[0]+e}))}}}var m=i.pre;var d=i.post.length?expand(i.post,false):[""];var y;if(l){var g=numeric(p[0]);var v=numeric(p[1]);var b=Math.max(p[0].length,p[1].length);var w=p.length==3?Math.abs(numeric(p[2])):1;var A=lte;var _=v<g;if(_){w*=-1;A=gte}var S=p.some(isPadded);y=[];for(var C=g;A(C,v);C+=w){var D;if(u){D=String.fromCharCode(C);if(D==="\\")D=""}else{D=String(C);if(S){var x=b-D.length;if(x>0){var R=new Array(x+1).join("0");if(C<0)D="-"+R+D.slice(1);else D=R+D}}}y.push(D)}}else{y=s(p,(function(e){return expand(e,false)}))}for(var k=0;k<y.length;k++){for(var O=0;O<d.length;O++){var T=m+y[k]+d[O];if(!t||l||T)r.push(T)}}return r}},610:(e,t,r)=>{"use strict";const s=r(8750);const n=r(9434);const i=r(5873);const o=r(6477);const braces=(e,t={})=>{let r=[];if(Array.isArray(e)){for(let s of e){let e=braces.create(s,t);if(Array.isArray(e)){r.push(...e)}else{r.push(e)}}}else{r=[].concat(braces.create(e,t))}if(t&&t.expand===true&&t.nodupes===true){r=[...new Set(r)]}return r};braces.parse=(e,t={})=>o(e,t);braces.stringify=(e,t={})=>{if(typeof e==="string"){return s(braces.parse(e,t),t)}return s(e,t)};braces.compile=(e,t={})=>{if(typeof e==="string"){e=braces.parse(e,t)}return n(e,t)};braces.expand=(e,t={})=>{if(typeof e==="string"){e=braces.parse(e,t)}let r=i(e,t);if(t.noempty===true){r=r.filter(Boolean)}if(t.nodupes===true){r=[...new Set(r)]}return r};braces.create=(e,t={})=>{if(e===""||e.length<3){return[e]}return t.expand!==true?braces.compile(e,t):braces.expand(e,t)};e.exports=braces},9434:(e,t,r)=>{"use strict";const s=r(6330);const n=r(5207);const compile=(e,t={})=>{let walk=(e,r={})=>{let i=n.isInvalidBrace(r);let o=e.invalid===true&&t.escapeInvalid===true;let a=i===true||o===true;let u=t.escapeInvalid===true?"\\":"";let l="";if(e.isOpen===true){return u+e.value}if(e.isClose===true){return u+e.value}if(e.type==="open"){return a?u+e.value:"("}if(e.type==="close"){return a?u+e.value:")"}if(e.type==="comma"){return e.prev.type==="comma"?"":a?e.value:"|"}if(e.value){return e.value}if(e.nodes&&e.ranges>0){let r=n.reduce(e.nodes);let i=s(...r,{...t,wrap:false,toRegex:true});if(i.length!==0){return r.length>1&&i.length>1?`(${i})`:i}}if(e.nodes){for(let t of e.nodes){l+=walk(t,e)}}return l};return walk(e)};e.exports=compile},8774:e=>{"use strict";e.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:"\n",CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"\t",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\ufeff"}},5873:(e,t,r)=>{"use strict";const s=r(6330);const n=r(8750);const i=r(5207);const append=(e="",t="",r=false)=>{let s=[];e=[].concat(e);t=[].concat(t);if(!t.length)return e;if(!e.length){return r?i.flatten(t).map((e=>`{${e}}`)):t}for(let n of e){if(Array.isArray(n)){for(let e of n){s.push(append(e,t,r))}}else{for(let e of t){if(r===true&&typeof e==="string")e=`{${e}}`;s.push(Array.isArray(e)?append(n,e,r):n+e)}}}return i.flatten(s)};const expand=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit;let walk=(e,o={})=>{e.queue=[];let a=o;let u=o.queue;while(a.type!=="brace"&&a.type!=="root"&&a.parent){a=a.parent;u=a.queue}if(e.invalid||e.dollar){u.push(append(u.pop(),n(e,t)));return}if(e.type==="brace"&&e.invalid!==true&&e.nodes.length===2){u.push(append(u.pop(),["{}"]));return}if(e.nodes&&e.ranges>0){let o=i.reduce(e.nodes);if(i.exceedsLimit(...o,t.step,r)){throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.")}let a=s(...o,t);if(a.length===0){a=n(e,t)}u.push(append(u.pop(),a));e.nodes=[];return}let l=i.encloseBrace(e);let h=e.queue;let p=e;while(p.type!=="brace"&&p.type!=="root"&&p.parent){p=p.parent;h=p.queue}for(let t=0;t<e.nodes.length;t++){let r=e.nodes[t];if(r.type==="comma"&&e.type==="brace"){if(t===1)h.push("");h.push("");continue}if(r.type==="close"){u.push(append(u.pop(),h,l));continue}if(r.value&&r.type!=="open"){h.push(append(h.pop(),r.value));continue}if(r.nodes){walk(r,e)}}return h};return i.flatten(walk(e))};e.exports=expand},6477:(e,t,r)=>{"use strict";const s=r(8750);const{MAX_LENGTH:n,CHAR_BACKSLASH:i,CHAR_BACKTICK:o,CHAR_COMMA:a,CHAR_DOT:u,CHAR_LEFT_PARENTHESES:l,CHAR_RIGHT_PARENTHESES:h,CHAR_LEFT_CURLY_BRACE:p,CHAR_RIGHT_CURLY_BRACE:d,CHAR_LEFT_SQUARE_BRACKET:m,CHAR_RIGHT_SQUARE_BRACKET:y,CHAR_DOUBLE_QUOTE:g,CHAR_SINGLE_QUOTE:v,CHAR_NO_BREAK_SPACE:b,CHAR_ZERO_WIDTH_NOBREAK_SPACE:w}=r(8774);const parse=(e,t={})=>{if(typeof e!=="string"){throw new TypeError("Expected a string")}let r=t||{};let A=typeof r.maxLength==="number"?Math.min(n,r.maxLength):n;if(e.length>A){throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${A})`)}let _={type:"root",input:e,nodes:[]};let S=[_];let C=_;let D=_;let x=0;let R=e.length;let k=0;let O=0;let T;let P={};const advance=()=>e[k++];const push=e=>{if(e.type==="text"&&D.type==="dot"){D.type="text"}if(D&&D.type==="text"&&e.type==="text"){D.value+=e.value;return}C.nodes.push(e);e.parent=C;e.prev=D;D=e;return e};push({type:"bos"});while(k<R){C=S[S.length-1];T=advance();if(T===w||T===b){continue}if(T===i){push({type:"text",value:(t.keepEscaping?T:"")+advance()});continue}if(T===y){push({type:"text",value:"\\"+T});continue}if(T===m){x++;let e=true;let t;while(k<R&&(t=advance())){T+=t;if(t===m){x++;continue}if(t===i){T+=advance();continue}if(t===y){x--;if(x===0){break}}}push({type:"text",value:T});continue}if(T===l){C=push({type:"paren",nodes:[]});S.push(C);push({type:"text",value:T});continue}if(T===h){if(C.type!=="paren"){push({type:"text",value:T});continue}C=S.pop();push({type:"text",value:T});C=S[S.length-1];continue}if(T===g||T===v||T===o){let e=T;let r;if(t.keepQuotes!==true){T=""}while(k<R&&(r=advance())){if(r===i){T+=r+advance();continue}if(r===e){if(t.keepQuotes===true)T+=r;break}T+=r}push({type:"text",value:T});continue}if(T===p){O++;let e=D.value&&D.value.slice(-1)==="$"||C.dollar===true;let t={type:"brace",open:true,close:false,dollar:e,depth:O,commas:0,ranges:0,nodes:[]};C=push(t);S.push(C);push({type:"open",value:T});continue}if(T===d){if(C.type!=="brace"){push({type:"text",value:T});continue}let e="close";C=S.pop();C.close=true;push({type:e,value:T});O--;C=S[S.length-1];continue}if(T===a&&O>0){if(C.ranges>0){C.ranges=0;let e=C.nodes.shift();C.nodes=[e,{type:"text",value:s(C)}]}push({type:"comma",value:T});C.commas++;continue}if(T===u&&O>0&&C.commas===0){let e=C.nodes;if(O===0||e.length===0){push({type:"text",value:T});continue}if(D.type==="dot"){C.range=[];D.value+=T;D.type="range";if(C.nodes.length!==3&&C.nodes.length!==5){C.invalid=true;C.ranges=0;D.type="text";continue}C.ranges++;C.args=[];continue}if(D.type==="range"){e.pop();let t=e[e.length-1];t.value+=D.value+T;D=t;C.ranges--;continue}push({type:"dot",value:T});continue}push({type:"text",value:T})}do{C=S.pop();if(C.type!=="root"){C.nodes.forEach((e=>{if(!e.nodes){if(e.type==="open")e.isOpen=true;if(e.type==="close")e.isClose=true;if(!e.nodes)e.type="text";e.invalid=true}}));let e=S[S.length-1];let t=e.nodes.indexOf(C);e.nodes.splice(t,1,...C.nodes)}}while(S.length>0);push({type:"eos"});return _};e.exports=parse},8750:(e,t,r)=>{"use strict";const s=r(5207);e.exports=(e,t={})=>{let stringify=(e,r={})=>{let n=t.escapeInvalid&&s.isInvalidBrace(r);let i=e.invalid===true&&t.escapeInvalid===true;let o="";if(e.value){if((n||i)&&s.isOpenOrClose(e)){return"\\"+e.value}return e.value}if(e.value){return e.value}if(e.nodes){for(let t of e.nodes){o+=stringify(t)}}return o};return stringify(e)}},5207:(e,t)=>{"use strict";t.isInteger=e=>{if(typeof e==="number"){return Number.isInteger(e)}if(typeof e==="string"&&e.trim()!==""){return Number.isInteger(Number(e))}return false};t.find=(e,t)=>e.nodes.find((e=>e.type===t));t.exceedsLimit=(e,r,s=1,n)=>{if(n===false)return false;if(!t.isInteger(e)||!t.isInteger(r))return false;return(Number(r)-Number(e))/Number(s)>=n};t.escapeNode=(e,t=0,r)=>{let s=e.nodes[t];if(!s)return;if(r&&s.type===r||s.type==="open"||s.type==="close"){if(s.escaped!==true){s.value="\\"+s.value;s.escaped=true}}};t.encloseBrace=e=>{if(e.type!=="brace")return false;if(e.commas>>0+e.ranges>>0===0){e.invalid=true;return true}return false};t.isInvalidBrace=e=>{if(e.type!=="brace")return false;if(e.invalid===true||e.dollar)return true;if(e.commas>>0+e.ranges>>0===0){e.invalid=true;return true}if(e.open!==true||e.close!==true){e.invalid=true;return true}return false};t.isOpenOrClose=e=>{if(e.type==="open"||e.type==="close"){return true}return e.open===true||e.close===true};t.reduce=e=>e.reduce(((e,t)=>{if(t.type==="text")e.push(t.value);if(t.type==="range")t.type="text";return e}),[]);t.flatten=(...e)=>{const t=[];const flat=e=>{for(let r=0;r<e.length;r++){let s=e[r];Array.isArray(s)?flat(s,t):s!==void 0&&t.push(s)}return t};flat(e);return t}},6066:(e,t,r)=>{"use strict";const s=r(1017);const{watch:n}=r(7147);const{readFile:i}=r(7147).promises;const{isIP:o}=r(1808);const a=process.platform==="win32";const u=a?s.join(process.env.SystemDrive,"Windows\\System32\\drivers\\etc\\hosts"):"/etc/hosts";const l=/^(?:(?:[a-zA-Z\d]|[a-zA-Z\d][a-zA-Z\d-]*[a-zA-Z\d])\.)*(?:[A-Za-z\d]|[A-Za-z\d][A-Za-z\d-]*[A-Za-z\d])$/;const isHostname=e=>l.test(e);const h={encoding:"utf8"};const p=/\s+/g;class HostsResolver{constructor({watching:e,customHostsPath:t=u}){this._hostsPath=t;this._error=null;this._watcher=null;this._watching=e;this._hosts={};this._init()}_init(){if(typeof this._hostsPath!=="string"){return}this._promise=(async()=>{await this._update();this._promise=null;if(this._error){return}if(this._watching){this._watcher=n(this._hostsPath,{persistent:false},(e=>{if(e==="change"){this._update()}else{this._watcher.close()}}));this._watcher.once("error",(e=>{this._error=e;this._hosts={}}));this._watcher.once("close",(()=>{this._init()}))}})()}async _update(){try{let e=await i(this._hostsPath,h);e=e.split("\n");this._hosts={};for(let t of e){t=t.replace(p," ").trim();const e=t.split(" ");const r=o(e[0]);if(!r){continue}const s=e.shift();for(const t of e){if(!isHostname(t)){break}if(this._hosts[t]){let e=false;for(const s of this._hosts[t]){if(s.family===r){e=true;break}}if(e){continue}}else{this._hosts[t]=[];this._hosts[t].expires=Infinity}this._hosts[t].push({address:s,family:r,expires:Infinity,ttl:Infinity})}}}catch(e){this._hosts={};this._error=e}}async get(e){if(this._promise){await this._promise}if(this._error){throw this._error}return this._hosts[e]}}const d={};const getResolver=({customHostsPath:e,watching:t})=>{if(e!==undefined&&typeof e!=="string"){e=false}t=Boolean(t);const r=`${e}:${t}`;let s=d[r];if(s){return s}s=new HostsResolver({customHostsPath:e,watching:t});d[r]=s;return s};HostsResolver.getResolver=getResolver;e.exports=HostsResolver},2286:(e,t,r)=>{"use strict";const{V4MAPPED:s,ADDRCONFIG:n,promises:{Resolver:i},lookup:o}=r(9523);const{promisify:a}=r(3837);const u=r(2037);const{getResolver:l}=r(6066);const h=Symbol("cacheableLookupCreateConnection");const p=Symbol("cacheableLookupInstance");const verifyAgent=e=>{if(!(e&&typeof e.createConnection==="function")){throw new Error("Expected an Agent instance as the first argument")}};const map4to6=e=>{for(const t of e){t.address=`::ffff:${t.address}`;t.family=6}};const getIfaceInfo=()=>{let e=false;let t=false;for(const r of Object.values(u.networkInterfaces())){for(const s of r){if(s.internal){continue}if(s.family==="IPv6"){t=true}else{e=true}if(e&&t){return{has4:e,has6:t}}}}return{has4:e,has6:t}};const d={ttl:true};class CacheableLookup{constructor({customHostsPath:e,watchingHostsFile:t=false,cache:r=new Map,maxTtl:s=Infinity,resolver:n=new i,fallbackTtl:u=1,errorTtl:h=.15}={}){this.maxTtl=s;this.fallbackTtl=u;this.errorTtl=h;this._cache=r;this._resolver=n;this._lookup=a(o);if(this._resolver instanceof i){this._resolve4=this._resolver.resolve4.bind(this._resolver);this._resolve6=this._resolver.resolve6.bind(this._resolver)}else{this._resolve4=a(this._resolver.resolve4.bind(this._resolver));this._resolve6=a(this._resolver.resolve6.bind(this._resolver))}this._iface=getIfaceInfo();this._hostsResolver=l({customHostsPath:e,watching:t});this._pending={};this._nextRemovalTime=false;this.lookup=this.lookup.bind(this);this.lookupAsync=this.lookupAsync.bind(this)}set servers(e){this.updateInterfaceInfo();this._resolver.setServers(e)}get servers(){return this._resolver.getServers()}lookup(e,t,r){if(typeof t==="function"){r=t;t={}}else if(typeof t==="number"){t={family:t}}if(!r){throw new Error("Callback must be a function.")}this.lookupAsync(e,t).then((e=>{if(t.all){r(null,e)}else{r(null,e.address,e.family,e.expires,e.ttl)}}),r)}async lookupAsync(e,t={}){if(typeof t==="number"){t={family:t}}let r=await this.query(e);if(t.family===6){const e=r.filter((e=>e.family===6));if(e.length===0&&t.hints&s){map4to6(r)}else{r=e}}else if(t.family===4){r=r.filter((e=>e.family===4))}if(t.hints&n){const{_iface:e}=this;r=r.filter((t=>t.family===6?e.has6:e.has4))}if(r.length===0){const t=new Error(`ENOTFOUND ${e}`);t.code="ENOTFOUND";t.hostname=e;throw t}if(t.all){return r}if(r.length===1){return r[0]}return this._getEntry(r,e)}async query(e){let t=await this._hostsResolver.get(e)||await this._cache.get(e);if(!t){const r=this._pending[e];if(r){t=await r}else{const r=this.queryAndCache(e);this._pending[e]=r;t=await r}}t=t.map((e=>({...e})));return t}async queryAndCache(e){const[t,r]=await Promise.all([this._resolve4(e,d).catch((()=>[])),this._resolve6(e,d).catch((()=>[]))]);let s=0;if(t){for(const e of t){e.family=4;e.expires=Date.now()+e.ttl*1e3;s=Math.max(s,e.ttl)}}if(r){for(const e of r){e.family=6;e.expires=Date.now()+e.ttl*1e3;s=Math.max(s,e.ttl)}}let n=[...t||[],...r||[]];if(n.length===0){try{n=await this._lookup(e,{all:true});for(const e of n){e.ttl=this.fallbackTtl;e.expires=Date.now()+e.ttl*1e3}s=this.fallbackTtl*1e3}catch(t){delete this._pending[e];if(t.code==="ENOTFOUND"){s=this.errorTtl*1e3;n.expires=Date.now()+s;await this._cache.set(e,n,s);this._tick(s)}throw t}}else{s=Math.min(this.maxTtl,s)*1e3}if(this.maxTtl>0&&s>0){n.expires=Date.now()+s;await this._cache.set(e,n,s);this._tick(s)}delete this._pending[e];return n}_getEntry(e,t){return e[0]}tick(){}_tick(e){if(!(this._cache instanceof Map)||e===undefined){return}const t=this._nextRemovalTime;if(!t||e<t){clearTimeout(this._removalTimeout);this._nextRemovalTime=e;this._removalTimeout=setTimeout((()=>{this._nextRemovalTime=false;let e=Infinity;const t=Date.now();for(const[r,{expires:s}]of this._cache){if(t>=s){this._cache.delete(r)}else if(s<e){e=s}}if(e!==Infinity){this._tick(e-t)}}),e);if(this._removalTimeout.unref){this._removalTimeout.unref()}}}install(e){verifyAgent(e);if(h in e){throw new Error("CacheableLookup has been already installed")}e[h]=e.createConnection;e[p]=this;e.createConnection=(t,r)=>{if(!("lookup"in t)){t.lookup=this.lookup}return e[h](t,r)}}uninstall(e){verifyAgent(e);if(e[h]){if(e[p]!==this){throw new Error("The agent is not owned by this CacheableLookup instance")}e.createConnection=e[h];delete e[h];delete e[p]}}updateInterfaceInfo(){this._iface=getIfaceInfo();this._cache.clear()}clear(e){if(e){this._cache.delete(e);return}this._cache.clear()}}e.exports=CacheableLookup;e.exports["default"]=CacheableLookup},8116:(e,t,r)=>{"use strict";const s=r(2361);const n=r(7310);const i=r(7952);const o=r(1766);const a=r(1002);const u=r(9004);const l=r(9662);const h=r(1312);const p=r(9971);class CacheableRequest{constructor(e,t){if(typeof e!=="function"){throw new TypeError("Parameter `request` must be a function")}this.cache=new p({uri:typeof t==="string"&&t,store:typeof t!=="string"&&t,namespace:"cacheable-request"});return this.createCacheableRequest(e)}createCacheableRequest(e){return(t,r)=>{let p;if(typeof t==="string"){p=normalizeUrlObject(n.parse(t));t={}}else if(t instanceof n.URL){p=normalizeUrlObject(n.parse(t.toString()));t={}}else{const[e,...r]=(t.path||"").split("?");const s=r.length>0?`?${r.join("?")}`:"";p=normalizeUrlObject({...t,pathname:e,search:s})}t={headers:{},method:"GET",cache:true,strictTtl:false,automaticFailover:false,...t,...urlObjectToRequestOptions(p)};t.headers=l(t.headers);const d=new s;const m=i(n.format(p),{stripWWW:false,removeTrailingSlash:false,stripAuthentication:false});const y=`${t.method}:${m}`;let g=false;let v=false;const makeRequest=t=>{v=true;let s=false;let n;const i=new Promise((e=>{n=()=>{if(!s){s=true;e()}}}));const handler=e=>{if(g&&!t.forceRefresh){e.status=e.statusCode;const r=a.fromObject(g.cachePolicy).revalidatedPolicy(t,e);if(!r.modified){const t=r.policy.responseHeaders();e=new u(g.statusCode,t,g.body,g.url);e.cachePolicy=r.policy;e.fromCache=true}}if(!e.fromCache){e.cachePolicy=new a(t,e,t);e.fromCache=false}let n;if(t.cache&&e.cachePolicy.storable()){n=h(e);(async()=>{try{const r=o.buffer(e);await Promise.race([i,new Promise((t=>e.once("end",t)))]);if(s){return}const n=await r;const a={cachePolicy:e.cachePolicy.toObject(),url:e.url,statusCode:e.fromCache?g.statusCode:e.statusCode,body:n};let u=t.strictTtl?e.cachePolicy.timeToLive():undefined;if(t.maxTtl){u=u?Math.min(u,t.maxTtl):t.maxTtl}await this.cache.set(y,a,u)}catch(e){d.emit("error",new CacheableRequest.CacheError(e))}})()}else if(t.cache&&g){(async()=>{try{await this.cache.delete(y)}catch(e){d.emit("error",new CacheableRequest.CacheError(e))}})()}d.emit("response",n||e);if(typeof r==="function"){r(n||e)}};try{const r=e(t,handler);r.once("error",n);r.once("abort",n);d.emit("request",r)}catch(e){d.emit("error",new CacheableRequest.RequestError(e))}};(async()=>{const get=async e=>{await Promise.resolve();const t=e.cache?await this.cache.get(y):undefined;if(typeof t==="undefined"){return makeRequest(e)}const s=a.fromObject(t.cachePolicy);if(s.satisfiesWithoutRevalidation(e)&&!e.forceRefresh){const e=s.responseHeaders();const n=new u(t.statusCode,e,t.body,t.url);n.cachePolicy=s;n.fromCache=true;d.emit("response",n);if(typeof r==="function"){r(n)}}else{g=t;e.headers=s.revalidationHeaders(e);makeRequest(e)}};const errorHandler=e=>d.emit("error",new CacheableRequest.CacheError(e));this.cache.once("error",errorHandler);d.on("response",(()=>this.cache.removeListener("error",errorHandler)));try{await get(t)}catch(e){if(t.automaticFailover&&!v){makeRequest(t)}d.emit("error",new CacheableRequest.CacheError(e))}})();return d}}}function urlObjectToRequestOptions(e){const t={...e};t.path=`${e.pathname||"/"}${e.search||""}`;delete t.pathname;delete t.search;return t}function normalizeUrlObject(e){return{protocol:e.protocol,auth:e.auth,hostname:e.hostname||e.host||"localhost",port:e.port,pathname:e.pathname,search:e.search}}CacheableRequest.RequestError=class extends Error{constructor(e){super(e.message);this.name="RequestError";Object.assign(this,e)}};CacheableRequest.CacheError=class extends Error{constructor(e){super(e.message);this.name="CacheError";Object.assign(this,e)}};e.exports=CacheableRequest},8707:(e,t,r)=>{"use strict";const s=r(8691);const n=r(6734);const i=r(4955).stdout;const o=r(2138);const a=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm");const u=["ansi","ansi","ansi256","ansi16m"];const l=new Set(["gray"]);const h=Object.create(null);function applyOptions(e,t){t=t||{};const r=i?i.level:0;e.level=t.level===undefined?r:t.level;e.enabled="enabled"in t?t.enabled:e.level>0}function Chalk(e){if(!this||!(this instanceof Chalk)||this.template){const t={};applyOptions(t,e);t.template=function(){const e=[].slice.call(arguments);return chalkTag.apply(null,[t.template].concat(e))};Object.setPrototypeOf(t,Chalk.prototype);Object.setPrototypeOf(t.template,t);t.template.constructor=Chalk;return t.template}applyOptions(this,e)}if(a){n.blue.open=""}for(const e of Object.keys(n)){n[e].closeRe=new RegExp(s(n[e].close),"g");h[e]={get(){const t=n[e];return build.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}}}h.visible={get(){return build.call(this,this._styles||[],true,"visible")}};n.color.closeRe=new RegExp(s(n.color.close),"g");for(const e of Object.keys(n.color.ansi)){if(l.has(e)){continue}h[e]={get(){const t=this.level;return function(){const r=n.color[u[t]][e].apply(null,arguments);const s={open:r,close:n.color.close,closeRe:n.color.closeRe};return build.call(this,this._styles?this._styles.concat(s):[s],this._empty,e)}}}}n.bgColor.closeRe=new RegExp(s(n.bgColor.close),"g");for(const e of Object.keys(n.bgColor.ansi)){if(l.has(e)){continue}const t="bg"+e[0].toUpperCase()+e.slice(1);h[t]={get(){const t=this.level;return function(){const r=n.bgColor[u[t]][e].apply(null,arguments);const s={open:r,close:n.bgColor.close,closeRe:n.bgColor.closeRe};return build.call(this,this._styles?this._styles.concat(s):[s],this._empty,e)}}}}const p=Object.defineProperties((()=>{}),h);function build(e,t,r){const builder=function(){return applyStyle.apply(builder,arguments)};builder._styles=e;builder._empty=t;const s=this;Object.defineProperty(builder,"level",{enumerable:true,get(){return s.level},set(e){s.level=e}});Object.defineProperty(builder,"enabled",{enumerable:true,get(){return s.enabled},set(e){s.enabled=e}});builder.hasGrey=this.hasGrey||r==="gray"||r==="grey";builder.__proto__=p;return builder}function applyStyle(){const e=arguments;const t=e.length;let r=String(arguments[0]);if(t===0){return""}if(t>1){for(let s=1;s<t;s++){r+=" "+e[s]}}if(!this.enabled||this.level<=0||!r){return this._empty?"":r}const s=n.dim.open;if(a&&this.hasGrey){n.dim.open=""}for(const e of this._styles.slice().reverse()){r=e.open+r.replace(e.closeRe,e.open)+e.close;r=r.replace(/\r?\n/g,`${e.close}$&${e.open}`)}n.dim.open=s;return r}function chalkTag(e,t){if(!Array.isArray(t)){return[].slice.call(arguments,1).join(" ")}const r=[].slice.call(arguments,2);const s=[t.raw[0]];for(let e=1;e<t.length;e++){s.push(String(r[e-1]).replace(/[{}\\]/g,"\\$&"));s.push(String(t.raw[e]))}return o(e,s.join(""))}Object.defineProperties(Chalk.prototype,h);e.exports=Chalk();e.exports.supportsColor=i;e.exports["default"]=e.exports},6734:(e,t,r)=>{"use strict";e=r.nmd(e);const s=r(5121);const wrapAnsi16=(e,t)=>function(){const r=e.apply(s,arguments);return`[${r+t}m`};const wrapAnsi256=(e,t)=>function(){const r=e.apply(s,arguments);return`[${38+t};5;${r}m`};const wrapAnsi16m=(e,t)=>function(){const r=e.apply(s,arguments);return`[${38+t};2;${r[0]};${r[1]};${r[2]}m`};function assembleStyles(){const e=new Map;const t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.grey=t.color.gray;for(const r of Object.keys(t)){const s=t[r];for(const r of Object.keys(s)){const n=s[r];t[r]={open:`[${n[0]}m`,close:`[${n[1]}m`};s[r]=t[r];e.set(n[0],n[1])}Object.defineProperty(t,r,{value:s,enumerable:false});Object.defineProperty(t,"codes",{value:e,enumerable:false})}const ansi2ansi=e=>e;const rgb2rgb=(e,t,r)=>[e,t,r];t.color.close="";t.bgColor.close="";t.color.ansi={ansi:wrapAnsi16(ansi2ansi,0)};t.color.ansi256={ansi256:wrapAnsi256(ansi2ansi,0)};t.color.ansi16m={rgb:wrapAnsi16m(rgb2rgb,0)};t.bgColor.ansi={ansi:wrapAnsi16(ansi2ansi,10)};t.bgColor.ansi256={ansi256:wrapAnsi256(ansi2ansi,10)};t.bgColor.ansi16m={rgb:wrapAnsi16m(rgb2rgb,10)};for(let e of Object.keys(s)){if(typeof s[e]!=="object"){continue}const r=s[e];if(e==="ansi16"){e="ansi"}if("ansi16"in r){t.color.ansi[e]=wrapAnsi16(r.ansi16,0);t.bgColor.ansi[e]=wrapAnsi16(r.ansi16,10)}if("ansi256"in r){t.color.ansi256[e]=wrapAnsi256(r.ansi256,0);t.bgColor.ansi256[e]=wrapAnsi256(r.ansi256,10)}if("rgb"in r){t.color.ansi16m[e]=wrapAnsi16m(r.rgb,0);t.bgColor.ansi16m[e]=wrapAnsi16m(r.rgb,10)}}return t}Object.defineProperty(e,"exports",{enumerable:true,get:assembleStyles})},8159:(e,t,r)=>{var s=r(8510);var n={};for(var i in s){if(s.hasOwnProperty(i)){n[s[i]]=i}}var o=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var a in o){if(o.hasOwnProperty(a)){if(!("channels"in o[a])){throw new Error("missing channels property: "+a)}if(!("labels"in o[a])){throw new Error("missing channel labels property: "+a)}if(o[a].labels.length!==o[a].channels){throw new Error("channel and label counts mismatch: "+a)}var u=o[a].channels;var l=o[a].labels;delete o[a].channels;delete o[a].labels;Object.defineProperty(o[a],"channels",{value:u});Object.defineProperty(o[a],"labels",{value:l})}}o.rgb.hsl=function(e){var t=e[0]/255;var r=e[1]/255;var s=e[2]/255;var n=Math.min(t,r,s);var i=Math.max(t,r,s);var o=i-n;var a;var u;var l;if(i===n){a=0}else if(t===i){a=(r-s)/o}else if(r===i){a=2+(s-t)/o}else if(s===i){a=4+(t-r)/o}a=Math.min(a*60,360);if(a<0){a+=360}l=(n+i)/2;if(i===n){u=0}else if(l<=.5){u=o/(i+n)}else{u=o/(2-i-n)}return[a,u*100,l*100]};o.rgb.hsv=function(e){var t=e[0];var r=e[1];var s=e[2];var n=Math.min(t,r,s);var i=Math.max(t,r,s);var o=i-n;var a;var u;var l;if(i===0){u=0}else{u=o/i*1e3/10}if(i===n){a=0}else if(t===i){a=(r-s)/o}else if(r===i){a=2+(s-t)/o}else if(s===i){a=4+(t-r)/o}a=Math.min(a*60,360);if(a<0){a+=360}l=i/255*1e3/10;return[a,u,l]};o.rgb.hwb=function(e){var t=e[0];var r=e[1];var s=e[2];var n=o.rgb.hsl(e)[0];var i=1/255*Math.min(t,Math.min(r,s));s=1-1/255*Math.max(t,Math.max(r,s));return[n,i*100,s*100]};o.rgb.cmyk=function(e){var t=e[0]/255;var r=e[1]/255;var s=e[2]/255;var n;var i;var o;var a;a=Math.min(1-t,1-r,1-s);n=(1-t-a)/(1-a)||0;i=(1-r-a)/(1-a)||0;o=(1-s-a)/(1-a)||0;return[n*100,i*100,o*100,a*100]};function comparativeDistance(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}o.rgb.keyword=function(e){var t=n[e];if(t){return t}var r=Infinity;var i;for(var o in s){if(s.hasOwnProperty(o)){var a=s[o];var u=comparativeDistance(e,a);if(u<r){r=u;i=o}}}return i};o.keyword.rgb=function(e){return s[e]};o.rgb.xyz=function(e){var t=e[0]/255;var r=e[1]/255;var s=e[2]/255;t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92;r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92;s=s>.04045?Math.pow((s+.055)/1.055,2.4):s/12.92;var n=t*.4124+r*.3576+s*.1805;var i=t*.2126+r*.7152+s*.0722;var o=t*.0193+r*.1192+s*.9505;return[n*100,i*100,o*100]};o.rgb.lab=function(e){var t=o.rgb.xyz(e);var r=t[0];var s=t[1];var n=t[2];var i;var a;var u;r/=95.047;s/=100;n/=108.883;r=r>.008856?Math.pow(r,1/3):7.787*r+16/116;s=s>.008856?Math.pow(s,1/3):7.787*s+16/116;n=n>.008856?Math.pow(n,1/3):7.787*n+16/116;i=116*s-16;a=500*(r-s);u=200*(s-n);return[i,a,u]};o.hsl.rgb=function(e){var t=e[0]/360;var r=e[1]/100;var s=e[2]/100;var n;var i;var o;var a;var u;if(r===0){u=s*255;return[u,u,u]}if(s<.5){i=s*(1+r)}else{i=s+r-s*r}n=2*s-i;a=[0,0,0];for(var l=0;l<3;l++){o=t+1/3*-(l-1);if(o<0){o++}if(o>1){o--}if(6*o<1){u=n+(i-n)*6*o}else if(2*o<1){u=i}else if(3*o<2){u=n+(i-n)*(2/3-o)*6}else{u=n}a[l]=u*255}return a};o.hsl.hsv=function(e){var t=e[0];var r=e[1]/100;var s=e[2]/100;var n=r;var i=Math.max(s,.01);var o;var a;s*=2;r*=s<=1?s:2-s;n*=i<=1?i:2-i;a=(s+r)/2;o=s===0?2*n/(i+n):2*r/(s+r);return[t,o*100,a*100]};o.hsv.rgb=function(e){var t=e[0]/60;var r=e[1]/100;var s=e[2]/100;var n=Math.floor(t)%6;var i=t-Math.floor(t);var o=255*s*(1-r);var a=255*s*(1-r*i);var u=255*s*(1-r*(1-i));s*=255;switch(n){case 0:return[s,u,o];case 1:return[a,s,o];case 2:return[o,s,u];case 3:return[o,a,s];case 4:return[u,o,s];case 5:return[s,o,a]}};o.hsv.hsl=function(e){var t=e[0];var r=e[1]/100;var s=e[2]/100;var n=Math.max(s,.01);var i;var o;var a;a=(2-r)*s;i=(2-r)*n;o=r*n;o/=i<=1?i:2-i;o=o||0;a/=2;return[t,o*100,a*100]};o.hwb.rgb=function(e){var t=e[0]/360;var r=e[1]/100;var s=e[2]/100;var n=r+s;var i;var o;var a;var u;if(n>1){r/=n;s/=n}i=Math.floor(6*t);o=1-s;a=6*t-i;if((i&1)!==0){a=1-a}u=r+a*(o-r);var l;var h;var p;switch(i){default:case 6:case 0:l=o;h=u;p=r;break;case 1:l=u;h=o;p=r;break;case 2:l=r;h=o;p=u;break;case 3:l=r;h=u;p=o;break;case 4:l=u;h=r;p=o;break;case 5:l=o;h=r;p=u;break}return[l*255,h*255,p*255]};o.cmyk.rgb=function(e){var t=e[0]/100;var r=e[1]/100;var s=e[2]/100;var n=e[3]/100;var i;var o;var a;i=1-Math.min(1,t*(1-n)+n);o=1-Math.min(1,r*(1-n)+n);a=1-Math.min(1,s*(1-n)+n);return[i*255,o*255,a*255]};o.xyz.rgb=function(e){var t=e[0]/100;var r=e[1]/100;var s=e[2]/100;var n;var i;var o;n=t*3.2406+r*-1.5372+s*-.4986;i=t*-.9689+r*1.8758+s*.0415;o=t*.0557+r*-.204+s*1.057;n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*12.92;i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92;o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92;n=Math.min(Math.max(0,n),1);i=Math.min(Math.max(0,i),1);o=Math.min(Math.max(0,o),1);return[n*255,i*255,o*255]};o.xyz.lab=function(e){var t=e[0];var r=e[1];var s=e[2];var n;var i;var o;t/=95.047;r/=100;s/=108.883;t=t>.008856?Math.pow(t,1/3):7.787*t+16/116;r=r>.008856?Math.pow(r,1/3):7.787*r+16/116;s=s>.008856?Math.pow(s,1/3):7.787*s+16/116;n=116*r-16;i=500*(t-r);o=200*(r-s);return[n,i,o]};o.lab.xyz=function(e){var t=e[0];var r=e[1];var s=e[2];var n;var i;var o;i=(t+16)/116;n=r/500+i;o=i-s/200;var a=Math.pow(i,3);var u=Math.pow(n,3);var l=Math.pow(o,3);i=a>.008856?a:(i-16/116)/7.787;n=u>.008856?u:(n-16/116)/7.787;o=l>.008856?l:(o-16/116)/7.787;n*=95.047;i*=100;o*=108.883;return[n,i,o]};o.lab.lch=function(e){var t=e[0];var r=e[1];var s=e[2];var n;var i;var o;n=Math.atan2(s,r);i=n*360/2/Math.PI;if(i<0){i+=360}o=Math.sqrt(r*r+s*s);return[t,o,i]};o.lch.lab=function(e){var t=e[0];var r=e[1];var s=e[2];var n;var i;var o;o=s/360*2*Math.PI;n=r*Math.cos(o);i=r*Math.sin(o);return[t,n,i]};o.rgb.ansi16=function(e){var t=e[0];var r=e[1];var s=e[2];var n=1 in arguments?arguments[1]:o.rgb.hsv(e)[2];n=Math.round(n/50);if(n===0){return 30}var i=30+(Math.round(s/255)<<2|Math.round(r/255)<<1|Math.round(t/255));if(n===2){i+=60}return i};o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])};o.rgb.ansi256=function(e){var t=e[0];var r=e[1];var s=e[2];if(t===r&&r===s){if(t<8){return 16}if(t>248){return 231}return Math.round((t-8)/247*24)+232}var n=16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(s/255*5);return n};o.ansi16.rgb=function(e){var t=e%10;if(t===0||t===7){if(e>50){t+=3.5}t=t/10.5*255;return[t,t,t]}var r=(~~(e>50)+1)*.5;var s=(t&1)*r*255;var n=(t>>1&1)*r*255;var i=(t>>2&1)*r*255;return[s,n,i]};o.ansi256.rgb=function(e){if(e>=232){var t=(e-232)*10+8;return[t,t,t]}e-=16;var r;var s=Math.floor(e/36)/5*255;var n=Math.floor((r=e%36)/6)/5*255;var i=r%6/5*255;return[s,n,i]};o.rgb.hex=function(e){var t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255);var r=t.toString(16).toUpperCase();return"000000".substring(r.length)+r};o.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t){return[0,0,0]}var r=t[0];if(t[0].length===3){r=r.split("").map((function(e){return e+e})).join("")}var s=parseInt(r,16);var n=s>>16&255;var i=s>>8&255;var o=s&255;return[n,i,o]};o.rgb.hcg=function(e){var t=e[0]/255;var r=e[1]/255;var s=e[2]/255;var n=Math.max(Math.max(t,r),s);var i=Math.min(Math.min(t,r),s);var o=n-i;var a;var u;if(o<1){a=i/(1-o)}else{a=0}if(o<=0){u=0}else if(n===t){u=(r-s)/o%6}else if(n===r){u=2+(s-t)/o}else{u=4+(t-r)/o+4}u/=6;u%=1;return[u*360,o*100,a*100]};o.hsl.hcg=function(e){var t=e[1]/100;var r=e[2]/100;var s=1;var n=0;if(r<.5){s=2*t*r}else{s=2*t*(1-r)}if(s<1){n=(r-.5*s)/(1-s)}return[e[0],s*100,n*100]};o.hsv.hcg=function(e){var t=e[1]/100;var r=e[2]/100;var s=t*r;var n=0;if(s<1){n=(r-s)/(1-s)}return[e[0],s*100,n*100]};o.hcg.rgb=function(e){var t=e[0]/360;var r=e[1]/100;var s=e[2]/100;if(r===0){return[s*255,s*255,s*255]}var n=[0,0,0];var i=t%1*6;var o=i%1;var a=1-o;var u=0;switch(Math.floor(i)){case 0:n[0]=1;n[1]=o;n[2]=0;break;case 1:n[0]=a;n[1]=1;n[2]=0;break;case 2:n[0]=0;n[1]=1;n[2]=o;break;case 3:n[0]=0;n[1]=a;n[2]=1;break;case 4:n[0]=o;n[1]=0;n[2]=1;break;default:n[0]=1;n[1]=0;n[2]=a}u=(1-r)*s;return[(r*n[0]+u)*255,(r*n[1]+u)*255,(r*n[2]+u)*255]};o.hcg.hsv=function(e){var t=e[1]/100;var r=e[2]/100;var s=t+r*(1-t);var n=0;if(s>0){n=t/s}return[e[0],n*100,s*100]};o.hcg.hsl=function(e){var t=e[1]/100;var r=e[2]/100;var s=r*(1-t)+.5*t;var n=0;if(s>0&&s<.5){n=t/(2*s)}else if(s>=.5&&s<1){n=t/(2*(1-s))}return[e[0],n*100,s*100]};o.hcg.hwb=function(e){var t=e[1]/100;var r=e[2]/100;var s=t+r*(1-t);return[e[0],(s-t)*100,(1-s)*100]};o.hwb.hcg=function(e){var t=e[1]/100;var r=e[2]/100;var s=1-r;var n=s-t;var i=0;if(n<1){i=(s-n)/(1-n)}return[e[0],n*100,i*100]};o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};o.gray.hsl=o.gray.hsv=function(e){return[0,0,e[0]]};o.gray.hwb=function(e){return[0,100,e[0]]};o.gray.cmyk=function(e){return[0,0,0,e[0]]};o.gray.lab=function(e){return[e[0],0,0]};o.gray.hex=function(e){var t=Math.round(e[0]/100*255)&255;var r=(t<<16)+(t<<8)+t;var s=r.toString(16).toUpperCase();return"000000".substring(s.length)+s};o.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[t/255*100]}},5121:(e,t,r)=>{var s=r(8159);var n=r(4663);var i={};var o=Object.keys(s);function wrapRaw(e){var wrappedFn=function(t){if(t===undefined||t===null){return t}if(arguments.length>1){t=Array.prototype.slice.call(arguments)}return e(t)};if("conversion"in e){wrappedFn.conversion=e.conversion}return wrappedFn}function wrapRounded(e){var wrappedFn=function(t){if(t===undefined||t===null){return t}if(arguments.length>1){t=Array.prototype.slice.call(arguments)}var r=e(t);if(typeof r==="object"){for(var s=r.length,n=0;n<s;n++){r[n]=Math.round(r[n])}}return r};if("conversion"in e){wrappedFn.conversion=e.conversion}return wrappedFn}o.forEach((function(e){i[e]={};Object.defineProperty(i[e],"channels",{value:s[e].channels});Object.defineProperty(i[e],"labels",{value:s[e].labels});var t=n(e);var r=Object.keys(t);r.forEach((function(r){var s=t[r];i[e][r]=wrapRounded(s);i[e][r].raw=wrapRaw(s)}))}));e.exports=i},4663:(e,t,r)=>{var s=r(8159);var n=Object.keys(s);function buildGraph(){var e={};for(var t=n.length,r=0;r<t;r++){e[n[r]]={distance:-1,parent:null}}return e}function deriveBFS(e){var t=buildGraph();var r=[e];t[e].distance=0;while(r.length){var n=r.pop();var i=Object.keys(s[n]);for(var o=i.length,a=0;a<o;a++){var u=i[a];var l=t[u];if(l.distance===-1){l.distance=t[n].distance+1;l.parent=n;r.unshift(u)}}}return t}function link(e,t){return function(r){return t(e(r))}}function wrapConversion(e,t){var r=[t[e].parent,e];var n=s[t[e].parent][e];var i=t[e].parent;while(t[i].parent){r.unshift(t[i].parent);n=link(s[t[i].parent][i],n);i=t[i].parent}n.conversion=r;return n}e.exports=function(e){var t=deriveBFS(e);var r={};var s=Object.keys(t);for(var n=s.length,i=0;i<n;i++){var o=s[i];var a=t[o];if(a.parent===null){continue}r[o]=wrapConversion(o,t)}return r}},1538:e=>{"use strict";e.exports=(e,t)=>{t=t||process.argv;const r=e.startsWith("-")?"":e.length===1?"-":"--";const s=t.indexOf(r+e);const n=t.indexOf("--");return s!==-1&&(n===-1?true:s<n)}},4955:(e,t,r)=>{"use strict";const s=r(2037);const n=r(1538);const i=process.env;let o;if(n("no-color")||n("no-colors")||n("color=false")){o=false}else if(n("color")||n("colors")||n("color=true")||n("color=always")){o=true}if("FORCE_COLOR"in i){o=i.FORCE_COLOR.length===0||parseInt(i.FORCE_COLOR,10)!==0}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e){if(o===false){return 0}if(n("color=16m")||n("color=full")||n("color=truecolor")){return 3}if(n("color=256")){return 2}if(e&&!e.isTTY&&o!==true){return 0}const t=o?1:0;if(process.platform==="win32"){const e=s.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in i){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in i))||i.CI_NAME==="codeship"){return 1}return t}if("TEAMCITY_VERSION"in i){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0}if(i.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in i){const e=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(i.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)){return 1}if("COLORTERM"in i){return 1}if(i.TERM==="dumb"){return t}return t}function getSupportLevel(e){const t=supportsColor(e);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:getSupportLevel(process.stdout),stderr:getSupportLevel(process.stderr)}},2138:e=>{"use strict";const t=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;const r=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;const s=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;const n=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi;const i=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function unescape(e){if(e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3){return String.fromCharCode(parseInt(e.slice(1),16))}return i.get(e)||e}function parseArguments(e,t){const r=[];const i=t.trim().split(/\s*,\s*/g);let o;for(const t of i){if(!isNaN(t)){r.push(Number(t))}else if(o=t.match(s)){r.push(o[2].replace(n,((e,t,r)=>t?unescape(t):r)))}else{throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`)}}return r}function parseStyle(e){r.lastIndex=0;const t=[];let s;while((s=r.exec(e))!==null){const e=s[1];if(s[2]){const r=parseArguments(e,s[2]);t.push([e].concat(r))}else{t.push([e])}}return t}function buildStyle(e,t){const r={};for(const e of t){for(const t of e.styles){r[t[0]]=e.inverse?null:t.slice(1)}}let s=e;for(const e of Object.keys(r)){if(Array.isArray(r[e])){if(!(e in s)){throw new Error(`Unknown Chalk style: ${e}`)}if(r[e].length>0){s=s[e].apply(s,r[e])}else{s=s[e]}}}return s}e.exports=(e,r)=>{const s=[];const n=[];let i=[];r.replace(t,((t,r,o,a,u,l)=>{if(r){i.push(unescape(r))}else if(a){const t=i.join("");i=[];n.push(s.length===0?t:buildStyle(e,s)(t));s.push({inverse:o,styles:parseStyle(a)})}else if(u){if(s.length===0){throw new Error("Found extraneous } in Chalk template literal")}n.push(buildStyle(e,s)(i.join("")));i=[];s.pop()}else{i.push(l)}}));n.push(i.join(""));if(s.length>0){const e=`Chalk template literal is missing ${s.length} closing bracket${s.length===1?"":"s"} (\`}\`)`;throw new Error(e)}return n.join("")}},9051:(e,t,r)=>{"use strict";const s=r(7147);const n=r(1017);const i=s.lchown?"lchown":"chown";const o=s.lchownSync?"lchownSync":"chownSync";const a=s.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/);const lchownSync=(e,t,r)=>{try{return s[o](e,t,r)}catch(e){if(e.code!=="ENOENT")throw e}};const chownSync=(e,t,r)=>{try{return s.chownSync(e,t,r)}catch(e){if(e.code!=="ENOENT")throw e}};const u=a?(e,t,r,n)=>i=>{if(!i||i.code!=="EISDIR")n(i);else s.chown(e,t,r,n)}:(e,t,r,s)=>s;const l=a?(e,t,r)=>{try{return lchownSync(e,t,r)}catch(s){if(s.code!=="EISDIR")throw s;chownSync(e,t,r)}}:(e,t,r)=>lchownSync(e,t,r);const h=process.version;let readdir=(e,t,r)=>s.readdir(e,t,r);let readdirSync=(e,t)=>s.readdirSync(e,t);if(/^v4\./.test(h))readdir=(e,t,r)=>s.readdir(e,r);const chown=(e,t,r,n)=>{s[i](e,t,r,u(e,t,r,(e=>{n(e&&e.code!=="ENOENT"?e:null)})))};const chownrKid=(e,t,r,i,o)=>{if(typeof t==="string")return s.lstat(n.resolve(e,t),((s,n)=>{if(s)return o(s.code!=="ENOENT"?s:null);n.name=t;chownrKid(e,n,r,i,o)}));if(t.isDirectory()){chownr(n.resolve(e,t.name),r,i,(s=>{if(s)return o(s);const a=n.resolve(e,t.name);chown(a,r,i,o)}))}else{const s=n.resolve(e,t.name);chown(s,r,i,o)}};const chownr=(e,t,r,s)=>{readdir(e,{withFileTypes:true},((n,i)=>{if(n){if(n.code==="ENOENT")return s();else if(n.code!=="ENOTDIR"&&n.code!=="ENOTSUP")return s(n)}if(n||!i.length)return chown(e,t,r,s);let o=i.length;let a=null;const then=n=>{if(a)return;if(n)return s(a=n);if(--o===0)return chown(e,t,r,s)};i.forEach((s=>chownrKid(e,s,t,r,then)))}))};const chownrKidSync=(e,t,r,i)=>{if(typeof t==="string"){try{const r=s.lstatSync(n.resolve(e,t));r.name=t;t=r}catch(e){if(e.code==="ENOENT")return;else throw e}}if(t.isDirectory())chownrSync(n.resolve(e,t.name),r,i);l(n.resolve(e,t.name),r,i)};const chownrSync=(e,t,r)=>{let s;try{s=readdirSync(e,{withFileTypes:true})}catch(s){if(s.code==="ENOENT")return;else if(s.code==="ENOTDIR"||s.code==="ENOTSUP")return l(e,t,r);else throw s}if(s&&s.length)s.forEach((s=>chownrKidSync(e,s,t,r)));return l(e,t,r)};e.exports=chownr;chownr.sync=chownrSync},2031:(e,t,r)=>{"use strict";const s=Object.assign({},r(6374));e.exports=s;e.exports["default"]=s},9372:e=>{"use strict";const t=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];e.exports=(e,r)=>{const s=new Set(Object.keys(e).concat(t));for(const t of s){if(t in r){continue}r[t]=typeof e[t]==="function"?e[t].bind(e):e[t]}}},1312:(e,t,r)=>{"use strict";const s=r(2781).PassThrough;const n=r(9372);const cloneResponse=e=>{if(!(e&&e.pipe)){throw new TypeError("Parameter `response` must be a response stream.")}const t=new s;n(e,t);return e.pipe(t)};e.exports=cloneResponse},8606:e=>{var t=function(){"use strict";function clone(e,t,r,s){var n;if(typeof t==="object"){r=t.depth;s=t.prototype;n=t.filter;t=t.circular}var i=[];var o=[];var a=typeof Buffer!="undefined";if(typeof t=="undefined")t=true;if(typeof r=="undefined")r=Infinity;function _clone(e,r){if(e===null)return null;if(r==0)return e;var n;var u;if(typeof e!="object"){return e}if(clone.__isArray(e)){n=[]}else if(clone.__isRegExp(e)){n=new RegExp(e.source,__getRegExpFlags(e));if(e.lastIndex)n.lastIndex=e.lastIndex}else if(clone.__isDate(e)){n=new Date(e.getTime())}else if(a&&Buffer.isBuffer(e)){if(Buffer.allocUnsafe){n=Buffer.allocUnsafe(e.length)}else{n=new Buffer(e.length)}e.copy(n);return n}else{if(typeof s=="undefined"){u=Object.getPrototypeOf(e);n=Object.create(u)}else{n=Object.create(s);u=s}}if(t){var l=i.indexOf(e);if(l!=-1){return o[l]}i.push(e);o.push(n)}for(var h in e){var p;if(u){p=Object.getOwnPropertyDescriptor(u,h)}if(p&&p.set==null){continue}n[h]=_clone(e[h],r-1)}return n}return _clone(e,r)}clone.clonePrototype=function clonePrototype(e){if(e===null)return null;var c=function(){};c.prototype=e;return new c};function __objToStr(e){return Object.prototype.toString.call(e)}clone.__objToStr=__objToStr;function __isDate(e){return typeof e==="object"&&__objToStr(e)==="[object Date]"}clone.__isDate=__isDate;function __isArray(e){return typeof e==="object"&&__objToStr(e)==="[object Array]"}clone.__isArray=__isArray;function __isRegExp(e){return typeof e==="object"&&__objToStr(e)==="[object RegExp]"}clone.__isRegExp=__isRegExp;function __getRegExpFlags(e){var t="";if(e.global)t+="g";if(e.ignoreCase)t+="i";if(e.multiline)t+="m";return t}clone.__getRegExpFlags=__getRegExpFlags;return clone}();if(true&&e.exports){e.exports=t}},7391:(e,t,r)=>{const s=r(8510);const n={};for(const e of Object.keys(s)){n[s[e]]=e}const i={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};e.exports=i;for(const e of Object.keys(i)){if(!("channels"in i[e])){throw new Error("missing channels property: "+e)}if(!("labels"in i[e])){throw new Error("missing channel labels property: "+e)}if(i[e].labels.length!==i[e].channels){throw new Error("channel and label counts mismatch: "+e)}const{channels:t,labels:r}=i[e];delete i[e].channels;delete i[e].labels;Object.defineProperty(i[e],"channels",{value:t});Object.defineProperty(i[e],"labels",{value:r})}i.rgb.hsl=function(e){const t=e[0]/255;const r=e[1]/255;const s=e[2]/255;const n=Math.min(t,r,s);const i=Math.max(t,r,s);const o=i-n;let a;let u;if(i===n){a=0}else if(t===i){a=(r-s)/o}else if(r===i){a=2+(s-t)/o}else if(s===i){a=4+(t-r)/o}a=Math.min(a*60,360);if(a<0){a+=360}const l=(n+i)/2;if(i===n){u=0}else if(l<=.5){u=o/(i+n)}else{u=o/(2-i-n)}return[a,u*100,l*100]};i.rgb.hsv=function(e){let t;let r;let s;let n;let i;const o=e[0]/255;const a=e[1]/255;const u=e[2]/255;const l=Math.max(o,a,u);const h=l-Math.min(o,a,u);const diffc=function(e){return(l-e)/6/h+1/2};if(h===0){n=0;i=0}else{i=h/l;t=diffc(o);r=diffc(a);s=diffc(u);if(o===l){n=s-r}else if(a===l){n=1/3+t-s}else if(u===l){n=2/3+r-t}if(n<0){n+=1}else if(n>1){n-=1}}return[n*360,i*100,l*100]};i.rgb.hwb=function(e){const t=e[0];const r=e[1];let s=e[2];const n=i.rgb.hsl(e)[0];const o=1/255*Math.min(t,Math.min(r,s));s=1-1/255*Math.max(t,Math.max(r,s));return[n,o*100,s*100]};i.rgb.cmyk=function(e){const t=e[0]/255;const r=e[1]/255;const s=e[2]/255;const n=Math.min(1-t,1-r,1-s);const i=(1-t-n)/(1-n)||0;const o=(1-r-n)/(1-n)||0;const a=(1-s-n)/(1-n)||0;return[i*100,o*100,a*100,n*100]};function comparativeDistance(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}i.rgb.keyword=function(e){const t=n[e];if(t){return t}let r=Infinity;let i;for(const t of Object.keys(s)){const n=s[t];const o=comparativeDistance(e,n);if(o<r){r=o;i=t}}return i};i.keyword.rgb=function(e){return s[e]};i.rgb.xyz=function(e){let t=e[0]/255;let r=e[1]/255;let s=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92;r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;s=s>.04045?((s+.055)/1.055)**2.4:s/12.92;const n=t*.4124+r*.3576+s*.1805;const i=t*.2126+r*.7152+s*.0722;const o=t*.0193+r*.1192+s*.9505;return[n*100,i*100,o*100]};i.rgb.lab=function(e){const t=i.rgb.xyz(e);let r=t[0];let s=t[1];let n=t[2];r/=95.047;s/=100;n/=108.883;r=r>.008856?r**(1/3):7.787*r+16/116;s=s>.008856?s**(1/3):7.787*s+16/116;n=n>.008856?n**(1/3):7.787*n+16/116;const o=116*s-16;const a=500*(r-s);const u=200*(s-n);return[o,a,u]};i.hsl.rgb=function(e){const t=e[0]/360;const r=e[1]/100;const s=e[2]/100;let n;let i;let o;if(r===0){o=s*255;return[o,o,o]}if(s<.5){n=s*(1+r)}else{n=s+r-s*r}const a=2*s-n;const u=[0,0,0];for(let e=0;e<3;e++){i=t+1/3*-(e-1);if(i<0){i++}if(i>1){i--}if(6*i<1){o=a+(n-a)*6*i}else if(2*i<1){o=n}else if(3*i<2){o=a+(n-a)*(2/3-i)*6}else{o=a}u[e]=o*255}return u};i.hsl.hsv=function(e){const t=e[0];let r=e[1]/100;let s=e[2]/100;let n=r;const i=Math.max(s,.01);s*=2;r*=s<=1?s:2-s;n*=i<=1?i:2-i;const o=(s+r)/2;const a=s===0?2*n/(i+n):2*r/(s+r);return[t,a*100,o*100]};i.hsv.rgb=function(e){const t=e[0]/60;const r=e[1]/100;let s=e[2]/100;const n=Math.floor(t)%6;const i=t-Math.floor(t);const o=255*s*(1-r);const a=255*s*(1-r*i);const u=255*s*(1-r*(1-i));s*=255;switch(n){case 0:return[s,u,o];case 1:return[a,s,o];case 2:return[o,s,u];case 3:return[o,a,s];case 4:return[u,o,s];case 5:return[s,o,a]}};i.hsv.hsl=function(e){const t=e[0];const r=e[1]/100;const s=e[2]/100;const n=Math.max(s,.01);let i;let o;o=(2-r)*s;const a=(2-r)*n;i=r*n;i/=a<=1?a:2-a;i=i||0;o/=2;return[t,i*100,o*100]};i.hwb.rgb=function(e){const t=e[0]/360;let r=e[1]/100;let s=e[2]/100;const n=r+s;let i;if(n>1){r/=n;s/=n}const o=Math.floor(6*t);const a=1-s;i=6*t-o;if((o&1)!==0){i=1-i}const u=r+i*(a-r);let l;let h;let p;switch(o){default:case 6:case 0:l=a;h=u;p=r;break;case 1:l=u;h=a;p=r;break;case 2:l=r;h=a;p=u;break;case 3:l=r;h=u;p=a;break;case 4:l=u;h=r;p=a;break;case 5:l=a;h=r;p=u;break}return[l*255,h*255,p*255]};i.cmyk.rgb=function(e){const t=e[0]/100;const r=e[1]/100;const s=e[2]/100;const n=e[3]/100;const i=1-Math.min(1,t*(1-n)+n);const o=1-Math.min(1,r*(1-n)+n);const a=1-Math.min(1,s*(1-n)+n);return[i*255,o*255,a*255]};i.xyz.rgb=function(e){const t=e[0]/100;const r=e[1]/100;const s=e[2]/100;let n;let i;let o;n=t*3.2406+r*-1.5372+s*-.4986;i=t*-.9689+r*1.8758+s*.0415;o=t*.0557+r*-.204+s*1.057;n=n>.0031308?1.055*n**(1/2.4)-.055:n*12.92;i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92;o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92;n=Math.min(Math.max(0,n),1);i=Math.min(Math.max(0,i),1);o=Math.min(Math.max(0,o),1);return[n*255,i*255,o*255]};i.xyz.lab=function(e){let t=e[0];let r=e[1];let s=e[2];t/=95.047;r/=100;s/=108.883;t=t>.008856?t**(1/3):7.787*t+16/116;r=r>.008856?r**(1/3):7.787*r+16/116;s=s>.008856?s**(1/3):7.787*s+16/116;const n=116*r-16;const i=500*(t-r);const o=200*(r-s);return[n,i,o]};i.lab.xyz=function(e){const t=e[0];const r=e[1];const s=e[2];let n;let i;let o;i=(t+16)/116;n=r/500+i;o=i-s/200;const a=i**3;const u=n**3;const l=o**3;i=a>.008856?a:(i-16/116)/7.787;n=u>.008856?u:(n-16/116)/7.787;o=l>.008856?l:(o-16/116)/7.787;n*=95.047;i*=100;o*=108.883;return[n,i,o]};i.lab.lch=function(e){const t=e[0];const r=e[1];const s=e[2];let n;const i=Math.atan2(s,r);n=i*360/2/Math.PI;if(n<0){n+=360}const o=Math.sqrt(r*r+s*s);return[t,o,n]};i.lch.lab=function(e){const t=e[0];const r=e[1];const s=e[2];const n=s/360*2*Math.PI;const i=r*Math.cos(n);const o=r*Math.sin(n);return[t,i,o]};i.rgb.ansi16=function(e,t=null){const[r,s,n]=e;let o=t===null?i.rgb.hsv(e)[2]:t;o=Math.round(o/50);if(o===0){return 30}let a=30+(Math.round(n/255)<<2|Math.round(s/255)<<1|Math.round(r/255));if(o===2){a+=60}return a};i.hsv.ansi16=function(e){return i.rgb.ansi16(i.hsv.rgb(e),e[2])};i.rgb.ansi256=function(e){const t=e[0];const r=e[1];const s=e[2];if(t===r&&r===s){if(t<8){return 16}if(t>248){return 231}return Math.round((t-8)/247*24)+232}const n=16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(s/255*5);return n};i.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7){if(e>50){t+=3.5}t=t/10.5*255;return[t,t,t]}const r=(~~(e>50)+1)*.5;const s=(t&1)*r*255;const n=(t>>1&1)*r*255;const i=(t>>2&1)*r*255;return[s,n,i]};i.ansi256.rgb=function(e){if(e>=232){const t=(e-232)*10+8;return[t,t,t]}e-=16;let t;const r=Math.floor(e/36)/5*255;const s=Math.floor((t=e%36)/6)/5*255;const n=t%6/5*255;return[r,s,n]};i.rgb.hex=function(e){const t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255);const r=t.toString(16).toUpperCase();return"000000".substring(r.length)+r};i.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t){return[0,0,0]}let r=t[0];if(t[0].length===3){r=r.split("").map((e=>e+e)).join("")}const s=parseInt(r,16);const n=s>>16&255;const i=s>>8&255;const o=s&255;return[n,i,o]};i.rgb.hcg=function(e){const t=e[0]/255;const r=e[1]/255;const s=e[2]/255;const n=Math.max(Math.max(t,r),s);const i=Math.min(Math.min(t,r),s);const o=n-i;let a;let u;if(o<1){a=i/(1-o)}else{a=0}if(o<=0){u=0}else if(n===t){u=(r-s)/o%6}else if(n===r){u=2+(s-t)/o}else{u=4+(t-r)/o}u/=6;u%=1;return[u*360,o*100,a*100]};i.hsl.hcg=function(e){const t=e[1]/100;const r=e[2]/100;const s=r<.5?2*t*r:2*t*(1-r);let n=0;if(s<1){n=(r-.5*s)/(1-s)}return[e[0],s*100,n*100]};i.hsv.hcg=function(e){const t=e[1]/100;const r=e[2]/100;const s=t*r;let n=0;if(s<1){n=(r-s)/(1-s)}return[e[0],s*100,n*100]};i.hcg.rgb=function(e){const t=e[0]/360;const r=e[1]/100;const s=e[2]/100;if(r===0){return[s*255,s*255,s*255]}const n=[0,0,0];const i=t%1*6;const o=i%1;const a=1-o;let u=0;switch(Math.floor(i)){case 0:n[0]=1;n[1]=o;n[2]=0;break;case 1:n[0]=a;n[1]=1;n[2]=0;break;case 2:n[0]=0;n[1]=1;n[2]=o;break;case 3:n[0]=0;n[1]=a;n[2]=1;break;case 4:n[0]=o;n[1]=0;n[2]=1;break;default:n[0]=1;n[1]=0;n[2]=a}u=(1-r)*s;return[(r*n[0]+u)*255,(r*n[1]+u)*255,(r*n[2]+u)*255]};i.hcg.hsv=function(e){const t=e[1]/100;const r=e[2]/100;const s=t+r*(1-t);let n=0;if(s>0){n=t/s}return[e[0],n*100,s*100]};i.hcg.hsl=function(e){const t=e[1]/100;const r=e[2]/100;const s=r*(1-t)+.5*t;let n=0;if(s>0&&s<.5){n=t/(2*s)}else if(s>=.5&&s<1){n=t/(2*(1-s))}return[e[0],n*100,s*100]};i.hcg.hwb=function(e){const t=e[1]/100;const r=e[2]/100;const s=t+r*(1-t);return[e[0],(s-t)*100,(1-s)*100]};i.hwb.hcg=function(e){const t=e[1]/100;const r=e[2]/100;const s=1-r;const n=s-t;let i=0;if(n<1){i=(s-n)/(1-n)}return[e[0],n*100,i*100]};i.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};i.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};i.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};i.gray.hsl=function(e){return[0,0,e[0]]};i.gray.hsv=i.gray.hsl;i.gray.hwb=function(e){return[0,100,e[0]]};i.gray.cmyk=function(e){return[0,0,0,e[0]]};i.gray.lab=function(e){return[e[0],0,0]};i.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255;const r=(t<<16)+(t<<8)+t;const s=r.toString(16).toUpperCase();return"000000".substring(s.length)+s};i.rgb.gray=function(e){const t=(e[0]+e[1]+e[2])/3;return[t/255*100]}},6931:(e,t,r)=>{const s=r(7391);const n=r(880);const i={};const o=Object.keys(s);function wrapRaw(e){const wrappedFn=function(...t){const r=t[0];if(r===undefined||r===null){return r}if(r.length>1){t=r}return e(t)};if("conversion"in e){wrappedFn.conversion=e.conversion}return wrappedFn}function wrapRounded(e){const wrappedFn=function(...t){const r=t[0];if(r===undefined||r===null){return r}if(r.length>1){t=r}const s=e(t);if(typeof s==="object"){for(let e=s.length,t=0;t<e;t++){s[t]=Math.round(s[t])}}return s};if("conversion"in e){wrappedFn.conversion=e.conversion}return wrappedFn}o.forEach((e=>{i[e]={};Object.defineProperty(i[e],"channels",{value:s[e].channels});Object.defineProperty(i[e],"labels",{value:s[e].labels});const t=n(e);const r=Object.keys(t);r.forEach((r=>{const s=t[r];i[e][r]=wrapRounded(s);i[e][r].raw=wrapRaw(s)}))}));e.exports=i},880:(e,t,r)=>{const s=r(7391);function buildGraph(){const e={};const t=Object.keys(s);for(let r=t.length,s=0;s<r;s++){e[t[s]]={distance:-1,parent:null}}return e}function deriveBFS(e){const t=buildGraph();const r=[e];t[e].distance=0;while(r.length){const e=r.pop();const n=Object.keys(s[e]);for(let s=n.length,i=0;i<s;i++){const s=n[i];const o=t[s];if(o.distance===-1){o.distance=t[e].distance+1;o.parent=e;r.unshift(s)}}}return t}function link(e,t){return function(r){return t(e(r))}}function wrapConversion(e,t){const r=[t[e].parent,e];let n=s[t[e].parent][e];let i=t[e].parent;while(t[i].parent){r.unshift(t[i].parent);n=link(s[t[i].parent][i],n);i=t[i].parent}n.conversion=r;return n}e.exports=function(e){const t=deriveBFS(e);const r={};const s=Object.keys(t);for(let e=s.length,n=0;n<e;n++){const e=s[n];const i=t[e];if(i.parent===null){continue}r[e]=wrapConversion(e,t)}return r}},8510:e=>{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},1904:(e,t,r)=>{var s=r(2361).EventEmitter;var n=r(2081).spawn;var i=r(1017);var o=i.dirname;var a=i.basename;var u=r(7147);r(3837).inherits(Command,s);t=e.exports=new Command;t.Command=Command;t.Option=Option;function Option(e,t){this.flags=e;this.required=e.indexOf("<")>=0;this.optional=e.indexOf("[")>=0;this.bool=e.indexOf("-no-")===-1;e=e.split(/[ ,|]+/);if(e.length>1&&!/^[[<]/.test(e[1]))this.short=e.shift();this.long=e.shift();this.description=t||""}Option.prototype.name=function(){return this.long.replace("--","").replace("no-","")};Option.prototype.attributeName=function(){return camelcase(this.name())};Option.prototype.is=function(e){return this.short===e||this.long===e};function Command(e){this.commands=[];this.options=[];this._execs={};this._allowUnknownOption=false;this._args=[];this._name=e||""}Command.prototype.command=function(e,t,r){if(typeof t==="object"&&t!==null){r=t;t=null}r=r||{};var s=e.split(/ +/);var n=new Command(s.shift());if(t){n.description(t);this.executables=true;this._execs[n._name]=true;if(r.isDefault)this.defaultExecutable=n._name}n._noHelp=!!r.noHelp;this.commands.push(n);n.parseExpectedArgs(s);n.parent=this;if(t)return this;return n};Command.prototype.arguments=function(e){return this.parseExpectedArgs(e.split(/ +/))};Command.prototype.addImplicitHelpCommand=function(){this.command("help [cmd]","display help for [cmd]")};Command.prototype.parseExpectedArgs=function(e){if(!e.length)return;var t=this;e.forEach((function(e){var r={required:false,name:"",variadic:false};switch(e[0]){case"<":r.required=true;r.name=e.slice(1,-1);break;case"[":r.name=e.slice(1,-1);break}if(r.name.length>3&&r.name.slice(-3)==="..."){r.variadic=true;r.name=r.name.slice(0,-3)}if(r.name){t._args.push(r)}}));return this};Command.prototype.action=function(e){var t=this;var listener=function(r,s){r=r||[];s=s||[];var n=t.parseOptions(s);outputHelpIfNecessary(t,n.unknown);if(n.unknown.length>0){t.unknownOption(n.unknown[0])}if(n.args.length)r=n.args.concat(r);t._args.forEach((function(e,s){if(e.required&&r[s]==null){t.missingArgument(e.name)}else if(e.variadic){if(s!==t._args.length-1){t.variadicArgNotLast(e.name)}r[s]=r.splice(s)}}));if(t._args.length){r[t._args.length]=t}else{r.push(t)}e.apply(t,r)};var r=this.parent||this;var s=r===this?"*":this._name;r.on("command:"+s,listener);if(this._alias)r.on("command:"+this._alias,listener);return this};Command.prototype.option=function(e,t,r,s){var n=this,i=new Option(e,t),o=i.name(),a=i.attributeName();if(typeof r!=="function"){if(r instanceof RegExp){var u=r;r=function(e,t){var r=u.exec(e);return r?r[0]:t}}else{s=r;r=null}}if(!i.bool||i.optional||i.required){if(!i.bool)s=true;if(s!==undefined){n[a]=s;i.defaultValue=s}}this.options.push(i);this.on("option:"+o,(function(e){if(e!==null&&r){e=r(e,n[a]===undefined?s:n[a])}if(typeof n[a]==="boolean"||typeof n[a]==="undefined"){if(e==null){n[a]=i.bool?s||true:false}else{n[a]=e}}else if(e!==null){n[a]=e}}));return this};Command.prototype.allowUnknownOption=function(e){this._allowUnknownOption=arguments.length===0||e;return this};Command.prototype.parse=function(e){if(this.executables)this.addImplicitHelpCommand();this.rawArgs=e;this._name=this._name||a(e[1],".js");if(this.executables&&e.length<3&&!this.defaultExecutable){e.push("--help")}var t=this.parseOptions(this.normalize(e.slice(2)));var r=this.args=t.args;var s=this.parseArgs(this.args,t.unknown);var n=s.args[0];var i=null;if(n){i=this.commands.filter((function(e){return e.alias()===n}))[0]}if(this._execs[n]&&typeof this._execs[n]!=="function"){return this.executeSubCommand(e,r,t.unknown)}else if(i){r[0]=i._name;return this.executeSubCommand(e,r,t.unknown)}else if(this.defaultExecutable){r.unshift(this.defaultExecutable);return this.executeSubCommand(e,r,t.unknown)}return s};Command.prototype.executeSubCommand=function(e,t,r){t=t.concat(r);if(!t.length)this.help();if(t[0]==="help"&&t.length===1)this.help();if(t[0]==="help"){t[0]=t[1];t[1]="--help"}var s=e[1];var l=a(s,i.extname(s))+"-"+t[0];var h;var p=u.realpathSync(s);h=o(p);var d=i.join(h,l);var m=false;if(exists(d+".js")){l=d+".js";m=true}else if(exists(d+".ts")){l=d+".ts";m=true}else if(exists(d)){l=d}t=t.slice(1);var y;if(process.platform!=="win32"){if(m){t.unshift(l);t=(process.execArgv||[]).concat(t);y=n(process.argv[0],t,{stdio:"inherit",customFds:[0,1,2]})}else{y=n(l,t,{stdio:"inherit",customFds:[0,1,2]})}}else{t.unshift(l);y=n(process.execPath,t,{stdio:"inherit"})}var g=["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"];g.forEach((function(e){process.on(e,(function(){if(y.killed===false&&y.exitCode===null){y.kill(e)}}))}));y.on("close",process.exit.bind(process));y.on("error",(function(e){if(e.code==="ENOENT"){console.error("error: %s(1) does not exist, try --help",l)}else if(e.code==="EACCES"){console.error("error: %s(1) not executable. try chmod or run with root",l)}process.exit(1)}));this.runningCommand=y};Command.prototype.normalize=function(e){var t=[],r,s,n;for(var i=0,o=e.length;i<o;++i){r=e[i];if(i>0){s=this.optionFor(e[i-1])}if(r==="--"){t=t.concat(e.slice(i));break}else if(s&&s.required){t.push(r)}else if(r.length>1&&r[0]==="-"&&r[1]!=="-"){r.slice(1).split("").forEach((function(e){t.push("-"+e)}))}else if(/^--/.test(r)&&~(n=r.indexOf("="))){t.push(r.slice(0,n),r.slice(n+1))}else{t.push(r)}}return t};Command.prototype.parseArgs=function(e,t){var r;if(e.length){r=e[0];if(this.listeners("command:"+r).length){this.emit("command:"+e.shift(),e,t)}else{this.emit("command:*",e)}}else{outputHelpIfNecessary(this,t);if(t.length>0){this.unknownOption(t[0])}if(this.commands.length===0&&this._args.filter((function(e){return e.required})).length===0){this.emit("command:*")}}return this};Command.prototype.optionFor=function(e){for(var t=0,r=this.options.length;t<r;++t){if(this.options[t].is(e)){return this.options[t]}}};Command.prototype.parseOptions=function(e){var t=[],r=e.length,s,n,i;var o=[];for(var a=0;a<r;++a){i=e[a];if(s){t.push(i);continue}if(i==="--"){s=true;continue}n=this.optionFor(i);if(n){if(n.required){i=e[++a];if(i==null)return this.optionMissingArgument(n);this.emit("option:"+n.name(),i)}else if(n.optional){i=e[a+1];if(i==null||i[0]==="-"&&i!=="-"){i=null}else{++a}this.emit("option:"+n.name(),i)}else{this.emit("option:"+n.name())}continue}if(i.length>1&&i[0]==="-"){o.push(i);if(a+1<e.length&&e[a+1][0]!=="-"){o.push(e[++a])}continue}t.push(i)}return{args:t,unknown:o}};Command.prototype.opts=function(){var e={},t=this.options.length;for(var r=0;r<t;r++){var s=this.options[r].attributeName();e[s]=s===this._versionOptionName?this._version:this[s]}return e};Command.prototype.missingArgument=function(e){console.error("error: missing required argument `%s'",e);process.exit(1)};Command.prototype.optionMissingArgument=function(e,t){if(t){console.error("error: option `%s' argument missing, got `%s'",e.flags,t)}else{console.error("error: option `%s' argument missing",e.flags)}process.exit(1)};Command.prototype.unknownOption=function(e){if(this._allowUnknownOption)return;console.error("error: unknown option `%s'",e);process.exit(1)};Command.prototype.variadicArgNotLast=function(e){console.error("error: variadic arguments must be last `%s'",e);process.exit(1)};Command.prototype.version=function(e,t){if(arguments.length===0)return this._version;this._version=e;t=t||"-V, --version";var r=new Option(t,"output the version number");this._versionOptionName=r.long.substr(2)||"version";this.options.push(r);this.on("option:"+this._versionOptionName,(function(){process.stdout.write(e+"\n");process.exit(0)}));return this};Command.prototype.description=function(e,t){if(arguments.length===0)return this._description;this._description=e;this._argsDescription=t;return this};Command.prototype.alias=function(e){var t=this;if(this.commands.length!==0){t=this.commands[this.commands.length-1]}if(arguments.length===0)return t._alias;if(e===t._name)throw new Error("Command alias can't be the same as its name");t._alias=e;return this};Command.prototype.usage=function(e){var t=this._args.map((function(e){return humanReadableArgName(e)}));var r="[options]"+(this.commands.length?" [command]":"")+(this._args.length?" "+t.join(" "):"");if(arguments.length===0)return this._usage||r;this._usage=e;return this};Command.prototype.name=function(e){if(arguments.length===0)return this._name;this._name=e;return this};Command.prototype.prepareCommands=function(){return this.commands.filter((function(e){return!e._noHelp})).map((function(e){var t=e._args.map((function(e){return humanReadableArgName(e)})).join(" ");return[e._name+(e._alias?"|"+e._alias:"")+(e.options.length?" [options]":"")+(t?" "+t:""),e._description]}))};Command.prototype.largestCommandLength=function(){var e=this.prepareCommands();return e.reduce((function(e,t){return Math.max(e,t[0].length)}),0)};Command.prototype.largestOptionLength=function(){var e=[].slice.call(this.options);e.push({flags:"-h, --help"});return e.reduce((function(e,t){return Math.max(e,t.flags.length)}),0)};Command.prototype.largestArgLength=function(){return this._args.reduce((function(e,t){return Math.max(e,t.name.length)}),0)};Command.prototype.padWidth=function(){var e=this.largestOptionLength();if(this._argsDescription&&this._args.length){if(this.largestArgLength()>e){e=this.largestArgLength()}}if(this.commands&&this.commands.length){if(this.largestCommandLength()>e){e=this.largestCommandLength()}}return e};Command.prototype.optionHelp=function(){var e=this.padWidth();return this.options.map((function(t){return pad(t.flags,e)+" "+t.description+(t.bool&&t.defaultValue!==undefined?" (default: "+JSON.stringify(t.defaultValue)+")":"")})).concat([pad("-h, --help",e)+" "+"output usage information"]).join("\n")};Command.prototype.commandHelp=function(){if(!this.commands.length)return"";var e=this.prepareCommands();var t=this.padWidth();return["Commands:",e.map((function(e){var r=e[1]?" "+e[1]:"";return(r?pad(e[0],t):e[0])+r})).join("\n").replace(/^/gm," "),""].join("\n")};Command.prototype.helpInformation=function(){var e=[];if(this._description){e=[this._description,""];var t=this._argsDescription;if(t&&this._args.length){var r=this.padWidth();e.push("Arguments:");e.push("");this._args.forEach((function(s){e.push(" "+pad(s.name,r)+" "+t[s.name])}));e.push("")}}var s=this._name;if(this._alias){s=s+"|"+this._alias}var n=["Usage: "+s+" "+this.usage(),""];var i=[];var o=this.commandHelp();if(o)i=[o];var a=["Options:",""+this.optionHelp().replace(/^/gm," "),""];return n.concat(e).concat(a).concat(i).join("\n")};Command.prototype.outputHelp=function(e){if(!e){e=function(e){return e}}process.stdout.write(e(this.helpInformation()));this.emit("--help")};Command.prototype.help=function(e){this.outputHelp(e);process.exit()};function camelcase(e){return e.split("-").reduce((function(e,t){return e+t[0].toUpperCase()+t.slice(1)}))}function pad(e,t){var r=Math.max(0,t-e.length);return e+Array(r+1).join(" ")}function outputHelpIfNecessary(e,t){t=t||[];for(var r=0;r<t.length;r++){if(t[r]==="--help"||t[r]==="-h"){e.outputHelp();process.exit(0)}}}function humanReadableArgName(e){var t=e.name+(e.variadic===true?"...":"");return e.required?"<"+t+">":"["+t+"]"}function exists(e){try{if(u.statSync(e).isFile()){return true}}catch(e){return false}}},6891:e=>{e.exports=function(e,r){var s=[];for(var n=0;n<e.length;n++){var i=r(e[n],n);if(t(i))s.push.apply(s,i);else s.push(i)}return s};var t=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"}},2746:(e,t,r)=>{"use strict";const s=r(2081);const n=r(6855);const i=r(4101);function spawn(e,t,r){const o=n(e,t,r);const a=s.spawn(o.command,o.args,o.options);i.hookChildProcess(a,o);return a}function spawnSync(e,t,r){const o=n(e,t,r);const a=s.spawnSync(o.command,o.args,o.options);a.error=a.error||i.verifyENOENTSync(a.status,o);return a}e.exports=spawn;e.exports.spawn=spawn;e.exports.sync=spawnSync;e.exports._parse=n;e.exports._enoent=i},4101:e=>{"use strict";const t=process.platform==="win32";function notFoundError(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function hookChildProcess(e,r){if(!t){return}const s=e.emit;e.emit=function(t,n){if(t==="exit"){const t=verifyENOENT(n,r,"spawn");if(t){return s.call(e,"error",t)}}return s.apply(e,arguments)}}function verifyENOENT(e,r){if(t&&e===1&&!r.file){return notFoundError(r.original,"spawn")}return null}function verifyENOENTSync(e,r){if(t&&e===1&&!r.file){return notFoundError(r.original,"spawnSync")}return null}e.exports={hookChildProcess:hookChildProcess,verifyENOENT:verifyENOENT,verifyENOENTSync:verifyENOENTSync,notFoundError:notFoundError}},6855:(e,t,r)=>{"use strict";const s=r(1017);const n=r(8560);const i=r(7274);const o=r(4274);const a=r(1252);const u=r(5911);const l=process.platform==="win32";const h=/\.(?:com|exe)$/i;const p=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;const d=n((()=>u.satisfies(process.version,"^4.8.0 || ^5.7.0 || >= 6.0.0",true)))||false;function detectShebang(e){e.file=i(e);const t=e.file&&a(e.file);if(t){e.args.unshift(e.file);e.command=t;return i(e)}return e.file}function parseNonShell(e){if(!l){return e}const t=detectShebang(e);const r=!h.test(t);if(e.options.forceShell||r){const r=p.test(t);e.command=s.normalize(e.command);e.command=o.command(e.command);e.args=e.args.map((e=>o.argument(e,r)));const n=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${n}"`];e.command=process.env.comspec||"cmd.exe";e.options.windowsVerbatimArguments=true}return e}function parseShell(e){if(d){return e}const t=[e.command].concat(e.args).join(" ");if(l){e.command=typeof e.options.shell==="string"?e.options.shell:process.env.comspec||"cmd.exe";e.args=["/d","/s","/c",`"${t}"`];e.options.windowsVerbatimArguments=true}else{if(typeof e.options.shell==="string"){e.command=e.options.shell}else if(process.platform==="android"){e.command="/system/bin/sh"}else{e.command="/bin/sh"}e.args=["-c",t]}return e}function parse(e,t,r){if(t&&!Array.isArray(t)){r=t;t=null}t=t?t.slice(0):[];r=Object.assign({},r);const s={command:e,args:t,options:r,file:undefined,original:{command:e,args:t}};return r.shell?parseShell(s):parseNonShell(s)}e.exports=parse},4274:e=>{"use strict";const t=/([()\][%!^"`<>&|;, *?])/g;function escapeCommand(e){e=e.replace(t,"^$1");return e}function escapeArgument(e,r){e=`${e}`;e=e.replace(/(\\*)"/g,'$1$1\\"');e=e.replace(/(\\*)$/,"$1$1");e=`"${e}"`;e=e.replace(t,"^$1");if(r){e=e.replace(t,"^$1")}return e}e.exports.command=escapeCommand;e.exports.argument=escapeArgument},1252:(e,t,r)=>{"use strict";const s=r(7147);const n=r(7032);function readShebang(e){const t=150;let r;if(Buffer.alloc){r=Buffer.alloc(t)}else{r=new Buffer(t);r.fill(0)}let i;try{i=s.openSync(e,"r");s.readSync(i,r,0,t,0);s.closeSync(i)}catch(e){}return n(r.toString())}e.exports=readShebang},7274:(e,t,r)=>{"use strict";const s=r(1017);const n=r(4207);const i=r(539)();function resolveCommandAttempt(e,t){const r=process.cwd();const o=e.options.cwd!=null;if(o){try{process.chdir(e.options.cwd)}catch(e){}}let a;try{a=n.sync(e.command,{path:(e.options.env||process.env)[i],pathExt:t?s.delimiter:undefined})}catch(e){}finally{process.chdir(r)}if(a){a=s.resolve(o?e.options.cwd:"",a)}return a}function resolveCommand(e){return resolveCommandAttempt(e)||resolveCommandAttempt(e,true)}e.exports=resolveCommand},2391:(e,t,r)=>{"use strict";const{pipeline:s,PassThrough:n}=r(2781);const i=r(9796);const o=r(2610);const decompressResponse=e=>{const t=(e.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(t)){return e}const r=t==="br";if(r&&typeof i.createBrotliDecompress!=="function"){return e}const a=r?i.createBrotliDecompress():i.createUnzip();const u=new n;a.on("error",(e=>{if(e.code==="Z_BUF_ERROR"){u.end();return}u.emit("error",e)}));const l=s(e,a,u,(()=>{}));o(e,l);return l};e.exports=decompressResponse},1705:e=>{"use strict";
3/*!
4 * @description Recursive object extending
5 * @author Viacheslav Lotsmanov <lotsmanov89@gmail.com>
6 * @license MIT
7 *
8 * The MIT License (MIT)
9 *
10 * Copyright (c) 2013-2018 Viacheslav Lotsmanov
11 *
12 * Permission is hereby granted, free of charge, to any person obtaining a copy of
13 * this software and associated documentation files (the "Software"), to deal in
14 * the Software without restriction, including without limitation the rights to
15 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
16 * the Software, and to permit persons to whom the Software is furnished to do so,
17 * subject to the following conditions:
18 *
19 * The above copyright notice and this permission notice shall be included in all
20 * copies or substantial portions of the Software.
21 *
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
24 * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
25 * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
26 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
27 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28 */function isSpecificValue(e){return e instanceof Buffer||e instanceof Date||e instanceof RegExp?true:false}function cloneSpecificValue(e){if(e instanceof Buffer){var t=Buffer.alloc?Buffer.alloc(e.length):new Buffer(e.length);e.copy(t);return t}else if(e instanceof Date){return new Date(e.getTime())}else if(e instanceof RegExp){return new RegExp(e)}else{throw new Error("Unexpected situation")}}function deepCloneArray(e){var r=[];e.forEach((function(e,s){if(typeof e==="object"&&e!==null){if(Array.isArray(e)){r[s]=deepCloneArray(e)}else if(isSpecificValue(e)){r[s]=cloneSpecificValue(e)}else{r[s]=t({},e)}}else{r[s]=e}}));return r}function safeGetProperty(e,t){return t==="__proto__"?undefined:e[t]}var t=e.exports=function(){if(arguments.length<1||typeof arguments[0]!=="object"){return false}if(arguments.length<2){return arguments[0]}var e=arguments[0];var r=Array.prototype.slice.call(arguments,1);var s,n,i;r.forEach((function(r){if(typeof r!=="object"||r===null||Array.isArray(r)){return}Object.keys(r).forEach((function(i){n=safeGetProperty(e,i);s=safeGetProperty(r,i);if(s===e){return}else if(typeof s!=="object"||s===null){e[i]=s;return}else if(Array.isArray(s)){e[i]=deepCloneArray(s);return}else if(isSpecificValue(s)){e[i]=cloneSpecificValue(s);return}else if(typeof n!=="object"||n===null||Array.isArray(n)){e[i]=t({},s);return}else{e[i]=t(n,s);return}}))}));return e}},732:(e,t,r)=>{var s=r(8606);e.exports=function(e,t){e=e||{};Object.keys(t).forEach((function(r){if(typeof e[r]==="undefined"){e[r]=s(t[r])}}));return e}},6214:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(4404);const deferToConnect=(e,t)=>{let r;if(typeof t==="function"){const e=t;r={connect:e}}else{r=t}const n=typeof r.connect==="function";const i=typeof r.secureConnect==="function";const o=typeof r.close==="function";const onConnect=()=>{if(n){r.connect()}if(e instanceof s.TLSSocket&&i){if(e.authorized){r.secureConnect()}else if(!e.authorizationError){e.once("secureConnect",r.secureConnect)}}if(o){e.once("close",r.close)}};if(e.writable&&!e.connecting){onConnect()}else if(e.connecting){e.once("connect",onConnect)}else if(e.destroyed&&o){r.close(e._hadError)}};t["default"]=deferToConnect;e.exports=deferToConnect;e.exports["default"]=deferToConnect},1205:(e,t,r)=>{var s=r(1223);var noop=function(){};var isRequest=function(e){return e.setHeader&&typeof e.abort==="function"};var isChildProcess=function(e){return e.stdio&&Array.isArray(e.stdio)&&e.stdio.length===3};var eos=function(e,t,r){if(typeof t==="function")return eos(e,null,t);if(!t)t={};r=s(r||noop);var n=e._writableState;var i=e._readableState;var o=t.readable||t.readable!==false&&e.readable;var a=t.writable||t.writable!==false&&e.writable;var u=false;var onlegacyfinish=function(){if(!e.writable)onfinish()};var onfinish=function(){a=false;if(!o)r.call(e)};var onend=function(){o=false;if(!a)r.call(e)};var onexit=function(t){r.call(e,t?new Error("exited with error code: "+t):null)};var onerror=function(t){r.call(e,t)};var onclose=function(){process.nextTick(onclosenexttick)};var onclosenexttick=function(){if(u)return;if(o&&!(i&&(i.ended&&!i.destroyed)))return r.call(e,new Error("premature close"));if(a&&!(n&&(n.ended&&!n.destroyed)))return r.call(e,new Error("premature close"))};var onrequest=function(){e.req.on("finish",onfinish)};if(isRequest(e)){e.on("complete",onfinish);e.on("abort",onclose);if(e.req)onrequest();else e.on("request",onrequest)}else if(a&&!n){e.on("end",onlegacyfinish);e.on("close",onlegacyfinish)}if(isChildProcess(e))e.on("exit",onexit);e.on("end",onend);e.on("finish",onfinish);if(t.error!==false)e.on("error",onerror);e.on("close",onclose);return function(){u=true;e.removeListener("complete",onfinish);e.removeListener("abort",onclose);e.removeListener("request",onrequest);if(e.req)e.req.removeListener("finish",onfinish);e.removeListener("end",onlegacyfinish);e.removeListener("close",onlegacyfinish);e.removeListener("finish",onfinish);e.removeListener("exit",onexit);e.removeListener("end",onend);e.removeListener("error",onerror);e.removeListener("close",onclose)}};e.exports=eos},8691:e=>{"use strict";var t=/[|\\{}()[\]^$+*?.]/g;e.exports=function(e){if(typeof e!=="string"){throw new TypeError("Expected a string")}return e.replace(t,"\\$&")}},6330:(e,t,r)=>{"use strict";
29/*!
30 * fill-range <https://github.com/jonschlinkert/fill-range>
31 *
32 * Copyright (c) 2014-present, Jon Schlinkert.
33 * Licensed under the MIT License.
34 */const s=r(3837);const n=r(1861);const isObject=e=>e!==null&&typeof e==="object"&&!Array.isArray(e);const transform=e=>t=>e===true?Number(t):String(t);const isValidValue=e=>typeof e==="number"||typeof e==="string"&&e!=="";const isNumber=e=>Number.isInteger(+e);const zeros=e=>{let t=`${e}`;let r=-1;if(t[0]==="-")t=t.slice(1);if(t==="0")return false;while(t[++r]==="0");return r>0};const stringify=(e,t,r)=>{if(typeof e==="string"||typeof t==="string"){return true}return r.stringify===true};const pad=(e,t,r)=>{if(t>0){let r=e[0]==="-"?"-":"";if(r)e=e.slice(1);e=r+e.padStart(r?t-1:t,"0")}if(r===false){return String(e)}return e};const toMaxLen=(e,t)=>{let r=e[0]==="-"?"-":"";if(r){e=e.slice(1);t--}while(e.length<t)e="0"+e;return r?"-"+e:e};const toSequence=(e,t)=>{e.negatives.sort(((e,t)=>e<t?-1:e>t?1:0));e.positives.sort(((e,t)=>e<t?-1:e>t?1:0));let r=t.capture?"":"?:";let s="";let n="";let i;if(e.positives.length){s=e.positives.join("|")}if(e.negatives.length){n=`-(${r}${e.negatives.join("|")})`}if(s&&n){i=`${s}|${n}`}else{i=s||n}if(t.wrap){return`(${r}${i})`}return i};const toRange=(e,t,r,s)=>{if(r){return n(e,t,{wrap:false,...s})}let i=String.fromCharCode(e);if(e===t)return i;let o=String.fromCharCode(t);return`[${i}-${o}]`};const toRegex=(e,t,r)=>{if(Array.isArray(e)){let t=r.wrap===true;let s=r.capture?"":"?:";return t?`(${s}${e.join("|")})`:e.join("|")}return n(e,t,r)};const rangeError=(...e)=>new RangeError("Invalid range arguments: "+s.inspect(...e));const invalidRange=(e,t,r)=>{if(r.strictRanges===true)throw rangeError([e,t]);return[]};const invalidStep=(e,t)=>{if(t.strictRanges===true){throw new TypeError(`Expected step "${e}" to be a number`)}return[]};const fillNumbers=(e,t,r=1,s={})=>{let n=Number(e);let i=Number(t);if(!Number.isInteger(n)||!Number.isInteger(i)){if(s.strictRanges===true)throw rangeError([e,t]);return[]}if(n===0)n=0;if(i===0)i=0;let o=n>i;let a=String(e);let u=String(t);let l=String(r);r=Math.max(Math.abs(r),1);let h=zeros(a)||zeros(u)||zeros(l);let p=h?Math.max(a.length,u.length,l.length):0;let d=h===false&&stringify(e,t,s)===false;let m=s.transform||transform(d);if(s.toRegex&&r===1){return toRange(toMaxLen(e,p),toMaxLen(t,p),true,s)}let y={negatives:[],positives:[]};let push=e=>y[e<0?"negatives":"positives"].push(Math.abs(e));let g=[];let v=0;while(o?n>=i:n<=i){if(s.toRegex===true&&r>1){push(n)}else{g.push(pad(m(n,v),p,d))}n=o?n-r:n+r;v++}if(s.toRegex===true){return r>1?toSequence(y,s):toRegex(g,null,{wrap:false,...s})}return g};const fillLetters=(e,t,r=1,s={})=>{if(!isNumber(e)&&e.length>1||!isNumber(t)&&t.length>1){return invalidRange(e,t,s)}let n=s.transform||(e=>String.fromCharCode(e));let i=`${e}`.charCodeAt(0);let o=`${t}`.charCodeAt(0);let a=i>o;let u=Math.min(i,o);let l=Math.max(i,o);if(s.toRegex&&r===1){return toRange(u,l,false,s)}let h=[];let p=0;while(a?i>=o:i<=o){h.push(n(i,p));i=a?i-r:i+r;p++}if(s.toRegex===true){return toRegex(h,null,{wrap:false,options:s})}return h};const fill=(e,t,r,s={})=>{if(t==null&&isValidValue(e)){return[e]}if(!isValidValue(e)||!isValidValue(t)){return invalidRange(e,t,s)}if(typeof r==="function"){return fill(e,t,1,{transform:r})}if(isObject(r)){return fill(e,t,0,r)}let n={...s};if(n.capture===true)n.wrap=true;r=r||n.step||1;if(!isNumber(r)){if(r!=null&&!isObject(r))return invalidStep(r,n);return fill(e,t,1,r)}if(isNumber(e)&&isNumber(t)){return fillNumbers(e,t,r,n)}return fillLetters(e,t,Math.max(Math.abs(r),1),n)};e.exports=fill},6748:(e,t,r)=>{"use strict";const s=r(7147);const n=r(6228);const i=r(1017);e.exports=findWorkspaceRoot;function findWorkspaceRoot(e){if(!e){e=process.cwd()}let t=null;let r=i.normalize(e);do{const s=readPackageJSON(r);const o=extractWorkspaces(s);if(o){const t=i.relative(r,e);if(t===""||n([t],o).length>0){return r}else{return null}}t=r;r=i.dirname(r)}while(r!==t);return null}function extractWorkspaces(e){const t=(e||{}).workspaces;return t&&t.packages||(Array.isArray(t)?t:null)}function readPackageJSON(e){const t=i.join(e,"package.json");if(s.existsSync(t)){return JSON.parse(s.readFileSync(t,"utf8"))}return null}},3338:(e,t,r)=>{"use strict";const s=r(7758);const n=r(1017);const i=r(8605).mkdirsSync;const o=r(2548).utimesMillisSync;const a=r(3901);function copySync(e,t,r){if(typeof r==="function"){r={filter:r}}r=r||{};r.clobber="clobber"in r?!!r.clobber:true;r.overwrite="overwrite"in r?!!r.overwrite:r.clobber;if(r.preserveTimestamps&&process.arch==="ia32"){console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269`)}const{srcStat:s,destStat:n}=a.checkPathsSync(e,t,"copy");a.checkParentPathsSync(e,s,t,"copy");return handleFilterAndCopy(n,e,t,r)}function handleFilterAndCopy(e,t,r,o){if(o.filter&&!o.filter(t,r))return;const a=n.dirname(r);if(!s.existsSync(a))i(a);return startCopy(e,t,r,o)}function startCopy(e,t,r,s){if(s.filter&&!s.filter(t,r))return;return getStats(e,t,r,s)}function getStats(e,t,r,n){const i=n.dereference?s.statSync:s.lstatSync;const o=i(t);if(o.isDirectory())return onDir(o,e,t,r,n);else if(o.isFile()||o.isCharacterDevice()||o.isBlockDevice())return onFile(o,e,t,r,n);else if(o.isSymbolicLink())return onLink(e,t,r,n)}function onFile(e,t,r,s,n){if(!t)return copyFile(e,r,s,n);return mayCopyFile(e,r,s,n)}function mayCopyFile(e,t,r,n){if(n.overwrite){s.unlinkSync(r);return copyFile(e,t,r,n)}else if(n.errorOnExist){throw new Error(`'${r}' already exists`)}}function copyFile(e,t,r,n){s.copyFileSync(t,r);if(n.preserveTimestamps)handleTimestamps(e.mode,t,r);return setDestMode(r,e.mode)}function handleTimestamps(e,t,r){if(fileIsNotWritable(e))makeFileWritable(r,e);return setDestTimestamps(t,r)}function fileIsNotWritable(e){return(e&128)===0}function makeFileWritable(e,t){return setDestMode(e,t|128)}function setDestMode(e,t){return s.chmodSync(e,t)}function setDestTimestamps(e,t){const r=s.statSync(e);return o(t,r.atime,r.mtime)}function onDir(e,t,r,s,n){if(!t)return mkDirAndCopy(e.mode,r,s,n);if(t&&!t.isDirectory()){throw new Error(`Cannot overwrite non-directory '${s}' with directory '${r}'.`)}return copyDir(r,s,n)}function mkDirAndCopy(e,t,r,n){s.mkdirSync(r);copyDir(t,r,n);return setDestMode(r,e)}function copyDir(e,t,r){s.readdirSync(e).forEach((s=>copyDirItem(s,e,t,r)))}function copyDirItem(e,t,r,s){const i=n.join(t,e);const o=n.join(r,e);const{destStat:u}=a.checkPathsSync(i,o,"copy");return startCopy(u,i,o,s)}function onLink(e,t,r,i){let o=s.readlinkSync(t);if(i.dereference){o=n.resolve(process.cwd(),o)}if(!e){return s.symlinkSync(o,r)}else{let e;try{e=s.readlinkSync(r)}catch(e){if(e.code==="EINVAL"||e.code==="UNKNOWN")return s.symlinkSync(o,r);throw e}if(i.dereference){e=n.resolve(process.cwd(),e)}if(a.isSrcSubdir(o,e)){throw new Error(`Cannot copy '${o}' to a subdirectory of itself, '${e}'.`)}if(s.statSync(r).isDirectory()&&a.isSrcSubdir(e,o)){throw new Error(`Cannot overwrite '${e}' with '${o}'.`)}return copyLink(o,r)}}function copyLink(e,t){s.unlinkSync(t);return s.symlinkSync(e,t)}e.exports=copySync},1135:(e,t,r)=>{"use strict";e.exports={copySync:r(3338)}},8834:(e,t,r)=>{"use strict";const s=r(7758);const n=r(1017);const i=r(8605).mkdirs;const o=r(3835).pathExists;const a=r(2548).utimesMillis;const u=r(3901);function copy(e,t,r,s){if(typeof r==="function"&&!s){s=r;r={}}else if(typeof r==="function"){r={filter:r}}s=s||function(){};r=r||{};r.clobber="clobber"in r?!!r.clobber:true;r.overwrite="overwrite"in r?!!r.overwrite:r.clobber;if(r.preserveTimestamps&&process.arch==="ia32"){console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n\n see https://github.com/jprichardson/node-fs-extra/issues/269`)}u.checkPaths(e,t,"copy",((n,i)=>{if(n)return s(n);const{srcStat:o,destStat:a}=i;u.checkParentPaths(e,o,t,"copy",(n=>{if(n)return s(n);if(r.filter)return handleFilter(checkParentDir,a,e,t,r,s);return checkParentDir(a,e,t,r,s)}))}))}function checkParentDir(e,t,r,s,a){const u=n.dirname(r);o(u,((n,o)=>{if(n)return a(n);if(o)return startCopy(e,t,r,s,a);i(u,(n=>{if(n)return a(n);return startCopy(e,t,r,s,a)}))}))}function handleFilter(e,t,r,s,n,i){Promise.resolve(n.filter(r,s)).then((o=>{if(o)return e(t,r,s,n,i);return i()}),(e=>i(e)))}function startCopy(e,t,r,s,n){if(s.filter)return handleFilter(getStats,e,t,r,s,n);return getStats(e,t,r,s,n)}function getStats(e,t,r,n,i){const o=n.dereference?s.stat:s.lstat;o(t,((s,o)=>{if(s)return i(s);if(o.isDirectory())return onDir(o,e,t,r,n,i);else if(o.isFile()||o.isCharacterDevice()||o.isBlockDevice())return onFile(o,e,t,r,n,i);else if(o.isSymbolicLink())return onLink(e,t,r,n,i)}))}function onFile(e,t,r,s,n,i){if(!t)return copyFile(e,r,s,n,i);return mayCopyFile(e,r,s,n,i)}function mayCopyFile(e,t,r,n,i){if(n.overwrite){s.unlink(r,(s=>{if(s)return i(s);return copyFile(e,t,r,n,i)}))}else if(n.errorOnExist){return i(new Error(`'${r}' already exists`))}else return i()}function copyFile(e,t,r,n,i){s.copyFile(t,r,(s=>{if(s)return i(s);if(n.preserveTimestamps)return handleTimestampsAndMode(e.mode,t,r,i);return setDestMode(r,e.mode,i)}))}function handleTimestampsAndMode(e,t,r,s){if(fileIsNotWritable(e)){return makeFileWritable(r,e,(n=>{if(n)return s(n);return setDestTimestampsAndMode(e,t,r,s)}))}return setDestTimestampsAndMode(e,t,r,s)}function fileIsNotWritable(e){return(e&128)===0}function makeFileWritable(e,t,r){return setDestMode(e,t|128,r)}function setDestTimestampsAndMode(e,t,r,s){setDestTimestamps(t,r,(t=>{if(t)return s(t);return setDestMode(r,e,s)}))}function setDestMode(e,t,r){return s.chmod(e,t,r)}function setDestTimestamps(e,t,r){s.stat(e,((e,s)=>{if(e)return r(e);return a(t,s.atime,s.mtime,r)}))}function onDir(e,t,r,s,n,i){if(!t)return mkDirAndCopy(e.mode,r,s,n,i);if(t&&!t.isDirectory()){return i(new Error(`Cannot overwrite non-directory '${s}' with directory '${r}'.`))}return copyDir(r,s,n,i)}function mkDirAndCopy(e,t,r,n,i){s.mkdir(r,(s=>{if(s)return i(s);copyDir(t,r,n,(t=>{if(t)return i(t);return setDestMode(r,e,i)}))}))}function copyDir(e,t,r,n){s.readdir(e,((s,i)=>{if(s)return n(s);return copyDirItems(i,e,t,r,n)}))}function copyDirItems(e,t,r,s,n){const i=e.pop();if(!i)return n();return copyDirItem(e,i,t,r,s,n)}function copyDirItem(e,t,r,s,i,o){const a=n.join(r,t);const l=n.join(s,t);u.checkPaths(a,l,"copy",((t,n)=>{if(t)return o(t);const{destStat:u}=n;startCopy(u,a,l,i,(t=>{if(t)return o(t);return copyDirItems(e,r,s,i,o)}))}))}function onLink(e,t,r,i,o){s.readlink(t,((t,a)=>{if(t)return o(t);if(i.dereference){a=n.resolve(process.cwd(),a)}if(!e){return s.symlink(a,r,o)}else{s.readlink(r,((t,l)=>{if(t){if(t.code==="EINVAL"||t.code==="UNKNOWN")return s.symlink(a,r,o);return o(t)}if(i.dereference){l=n.resolve(process.cwd(),l)}if(u.isSrcSubdir(a,l)){return o(new Error(`Cannot copy '${a}' to a subdirectory of itself, '${l}'.`))}if(e.isDirectory()&&u.isSrcSubdir(l,a)){return o(new Error(`Cannot overwrite '${l}' with '${a}'.`))}return copyLink(a,r,o)}))}}))}function copyLink(e,t,r){s.unlink(t,(n=>{if(n)return r(n);return s.symlink(e,t,r)}))}e.exports=copy},1335:(e,t,r)=>{"use strict";const s=r(9046).fromCallback;e.exports={copy:s(r(8834))}},6970:(e,t,r)=>{"use strict";const s=r(9046).fromCallback;const n=r(7758);const i=r(1017);const o=r(8605);const a=r(7357);const u=s((function emptyDir(e,t){t=t||function(){};n.readdir(e,((r,s)=>{if(r)return o.mkdirs(e,t);s=s.map((t=>i.join(e,t)));deleteItem();function deleteItem(){const e=s.pop();if(!e)return t();a.remove(e,(e=>{if(e)return t(e);deleteItem()}))}}))}));function emptyDirSync(e){let t;try{t=n.readdirSync(e)}catch{return o.mkdirsSync(e)}t.forEach((t=>{t=i.join(e,t);a.removeSync(t)}))}e.exports={emptyDirSync:emptyDirSync,emptydirSync:emptyDirSync,emptyDir:u,emptydir:u}},2164:(e,t,r)=>{"use strict";const s=r(9046).fromCallback;const n=r(1017);const i=r(7758);const o=r(8605);function createFile(e,t){function makeFile(){i.writeFile(e,"",(e=>{if(e)return t(e);t()}))}i.stat(e,((r,s)=>{if(!r&&s.isFile())return t();const a=n.dirname(e);i.stat(a,((e,r)=>{if(e){if(e.code==="ENOENT"){return o.mkdirs(a,(e=>{if(e)return t(e);makeFile()}))}return t(e)}if(r.isDirectory())makeFile();else{i.readdir(a,(e=>{if(e)return t(e)}))}}))}))}function createFileSync(e){let t;try{t=i.statSync(e)}catch{}if(t&&t.isFile())return;const r=n.dirname(e);try{if(!i.statSync(r).isDirectory()){i.readdirSync(r)}}catch(e){if(e&&e.code==="ENOENT")o.mkdirsSync(r);else throw e}i.writeFileSync(e,"")}e.exports={createFile:s(createFile),createFileSync:createFileSync}},55:(e,t,r)=>{"use strict";const s=r(2164);const n=r(3797);const i=r(2549);e.exports={createFile:s.createFile,createFileSync:s.createFileSync,ensureFile:s.createFile,ensureFileSync:s.createFileSync,createLink:n.createLink,createLinkSync:n.createLinkSync,ensureLink:n.createLink,ensureLinkSync:n.createLinkSync,createSymlink:i.createSymlink,createSymlinkSync:i.createSymlinkSync,ensureSymlink:i.createSymlink,ensureSymlinkSync:i.createSymlinkSync}},3797:(e,t,r)=>{"use strict";const s=r(9046).fromCallback;const n=r(1017);const i=r(7758);const o=r(8605);const a=r(3835).pathExists;function createLink(e,t,r){function makeLink(e,t){i.link(e,t,(e=>{if(e)return r(e);r(null)}))}a(t,((s,u)=>{if(s)return r(s);if(u)return r(null);i.lstat(e,(s=>{if(s){s.message=s.message.replace("lstat","ensureLink");return r(s)}const i=n.dirname(t);a(i,((s,n)=>{if(s)return r(s);if(n)return makeLink(e,t);o.mkdirs(i,(s=>{if(s)return r(s);makeLink(e,t)}))}))}))}))}function createLinkSync(e,t){const r=i.existsSync(t);if(r)return undefined;try{i.lstatSync(e)}catch(e){e.message=e.message.replace("lstat","ensureLink");throw e}const s=n.dirname(t);const a=i.existsSync(s);if(a)return i.linkSync(e,t);o.mkdirsSync(s);return i.linkSync(e,t)}e.exports={createLink:s(createLink),createLinkSync:createLinkSync}},3727:(e,t,r)=>{"use strict";const s=r(1017);const n=r(7758);const i=r(3835).pathExists;function symlinkPaths(e,t,r){if(s.isAbsolute(e)){return n.lstat(e,(t=>{if(t){t.message=t.message.replace("lstat","ensureSymlink");return r(t)}return r(null,{toCwd:e,toDst:e})}))}else{const o=s.dirname(t);const a=s.join(o,e);return i(a,((t,i)=>{if(t)return r(t);if(i){return r(null,{toCwd:a,toDst:e})}else{return n.lstat(e,(t=>{if(t){t.message=t.message.replace("lstat","ensureSymlink");return r(t)}return r(null,{toCwd:e,toDst:s.relative(o,e)})}))}}))}}function symlinkPathsSync(e,t){let r;if(s.isAbsolute(e)){r=n.existsSync(e);if(!r)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{const i=s.dirname(t);const o=s.join(i,e);r=n.existsSync(o);if(r){return{toCwd:o,toDst:e}}else{r=n.existsSync(e);if(!r)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:s.relative(i,e)}}}}e.exports={symlinkPaths:symlinkPaths,symlinkPathsSync:symlinkPathsSync}},8254:(e,t,r)=>{"use strict";const s=r(7758);function symlinkType(e,t,r){r=typeof t==="function"?t:r;t=typeof t==="function"?false:t;if(t)return r(null,t);s.lstat(e,((e,s)=>{if(e)return r(null,"file");t=s&&s.isDirectory()?"dir":"file";r(null,t)}))}function symlinkTypeSync(e,t){let r;if(t)return t;try{r=s.lstatSync(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}e.exports={symlinkType:symlinkType,symlinkTypeSync:symlinkTypeSync}},2549:(e,t,r)=>{"use strict";const s=r(9046).fromCallback;const n=r(1017);const i=r(7758);const o=r(8605);const a=o.mkdirs;const u=o.mkdirsSync;const l=r(3727);const h=l.symlinkPaths;const p=l.symlinkPathsSync;const d=r(8254);const m=d.symlinkType;const y=d.symlinkTypeSync;const g=r(3835).pathExists;function createSymlink(e,t,r,s){s=typeof r==="function"?r:s;r=typeof r==="function"?false:r;g(t,((o,u)=>{if(o)return s(o);if(u)return s(null);h(e,t,((o,u)=>{if(o)return s(o);e=u.toDst;m(u.toCwd,r,((r,o)=>{if(r)return s(r);const u=n.dirname(t);g(u,((r,n)=>{if(r)return s(r);if(n)return i.symlink(e,t,o,s);a(u,(r=>{if(r)return s(r);i.symlink(e,t,o,s)}))}))}))}))}))}function createSymlinkSync(e,t,r){const s=i.existsSync(t);if(s)return undefined;const o=p(e,t);e=o.toDst;r=y(o.toCwd,r);const a=n.dirname(t);const l=i.existsSync(a);if(l)return i.symlinkSync(e,t,r);u(a);return i.symlinkSync(e,t,r)}e.exports={createSymlink:s(createSymlink),createSymlinkSync:createSymlinkSync}},1176:(e,t,r)=>{"use strict";const s=r(9046).fromCallback;const n=r(7758);const i=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter((e=>typeof n[e]==="function"));Object.keys(n).forEach((e=>{if(e==="promises"){return}t[e]=n[e]}));i.forEach((e=>{t[e]=s(n[e])}));t.exists=function(e,t){if(typeof t==="function"){return n.exists(e,t)}return new Promise((t=>n.exists(e,t)))};t.read=function(e,t,r,s,i,o){if(typeof o==="function"){return n.read(e,t,r,s,i,o)}return new Promise(((o,a)=>{n.read(e,t,r,s,i,((e,t,r)=>{if(e)return a(e);o({bytesRead:t,buffer:r})}))}))};t.write=function(e,t,...r){if(typeof r[r.length-1]==="function"){return n.write(e,t,...r)}return new Promise(((s,i)=>{n.write(e,t,...r,((e,t,r)=>{if(e)return i(e);s({bytesWritten:t,buffer:r})}))}))};if(typeof n.writev==="function"){t.writev=function(e,t,...r){if(typeof r[r.length-1]==="function"){return n.writev(e,t,...r)}return new Promise(((s,i)=>{n.writev(e,t,...r,((e,t,r)=>{if(e)return i(e);s({bytesWritten:t,buffers:r})}))}))}}if(typeof n.realpath.native==="function"){t.realpath.native=s(n.realpath.native)}},5630:(e,t,r)=>{"use strict";e.exports={...r(1176),...r(1135),...r(1335),...r(6970),...r(55),...r(213),...r(8605),...r(9665),...r(1497),...r(6570),...r(3835),...r(7357)};const s=r(7147);if(Object.getOwnPropertyDescriptor(s,"promises")){Object.defineProperty(e.exports,"promises",{get(){return s.promises}})}},213:(e,t,r)=>{"use strict";const s=r(9046).fromPromise;const n=r(8970);n.outputJson=s(r(531));n.outputJsonSync=r(9421);n.outputJSON=n.outputJson;n.outputJSONSync=n.outputJsonSync;n.writeJSON=n.writeJson;n.writeJSONSync=n.writeJsonSync;n.readJSON=n.readJson;n.readJSONSync=n.readJsonSync;e.exports=n},8970:(e,t,r)=>{"use strict";const s=r(6160);e.exports={readJson:s.readFile,readJsonSync:s.readFileSync,writeJson:s.writeFile,writeJsonSync:s.writeFileSync}},9421:(e,t,r)=>{"use strict";const{stringify:s}=r(5902);const{outputFileSync:n}=r(6570);function outputJsonSync(e,t,r){const i=s(t,r);n(e,i,r)}e.exports=outputJsonSync},531:(e,t,r)=>{"use strict";const{stringify:s}=r(5902);const{outputFile:n}=r(6570);async function outputJson(e,t,r={}){const i=s(t,r);await n(e,i,r)}e.exports=outputJson},8605:(e,t,r)=>{"use strict";const s=r(9046).fromPromise;const{makeDir:n,makeDirSync:i}=r(2751);const o=s(n);e.exports={mkdirs:o,mkdirsSync:i,mkdirp:o,mkdirpSync:i,ensureDir:o,ensureDirSync:i}},2751:(e,t,r)=>{"use strict";const s=r(1176);const n=r(1017);const i=r(5995);const o=i("10.12.0");const checkPath=e=>{if(process.platform==="win32"){const t=/[<>:"|?*]/.test(e.replace(n.parse(e).root,""));if(t){const t=new Error(`Path contains invalid characters: ${e}`);t.code="EINVAL";throw t}}};const processOptions=e=>{const t={mode:511&~process.umask()};if(typeof e==="number")e={mode:e};return{...t,...e}};const permissionError=e=>{const t=new Error(`operation not permitted, mkdir '${e}'`);t.code="EPERM";t.errno=-4048;t.path=e;t.syscall="mkdir";return t};e.exports.makeDir=async(e,t)=>{checkPath(e);t=processOptions(t);if(o){const r=n.resolve(e);return s.mkdir(r,{mode:t.mode,recursive:true})}const make=async e=>{try{await s.mkdir(e,t.mode)}catch(t){if(t.code==="EPERM"){throw t}if(t.code==="ENOENT"){if(n.dirname(e)===e){throw permissionError(e)}if(t.message.includes("null bytes")){throw t}await make(n.dirname(e));return make(e)}try{const t=await s.stat(e);if(!t.isDirectory()){throw new Error("The path is not a directory")}}catch{throw t}}};return make(n.resolve(e))};e.exports.makeDirSync=(e,t)=>{checkPath(e);t=processOptions(t);if(o){const r=n.resolve(e);return s.mkdirSync(r,{mode:t.mode,recursive:true})}const make=e=>{try{s.mkdirSync(e,t.mode)}catch(t){if(t.code==="EPERM"){throw t}if(t.code==="ENOENT"){if(n.dirname(e)===e){throw permissionError(e)}if(t.message.includes("null bytes")){throw t}make(n.dirname(e));return make(e)}try{if(!s.statSync(e).isDirectory()){throw new Error("The path is not a directory")}}catch{throw t}}};return make(n.resolve(e))}},9665:(e,t,r)=>{"use strict";e.exports={moveSync:r(6445)}},6445:(e,t,r)=>{"use strict";const s=r(7758);const n=r(1017);const i=r(1135).copySync;const o=r(7357).removeSync;const a=r(8605).mkdirpSync;const u=r(3901);function moveSync(e,t,r){r=r||{};const s=r.overwrite||r.clobber||false;const{srcStat:i}=u.checkPathsSync(e,t,"move");u.checkParentPathsSync(e,i,t,"move");a(n.dirname(t));return doRename(e,t,s)}function doRename(e,t,r){if(r){o(t);return rename(e,t,r)}if(s.existsSync(t))throw new Error("dest already exists.");return rename(e,t,r)}function rename(e,t,r){try{s.renameSync(e,t)}catch(s){if(s.code!=="EXDEV")throw s;return moveAcrossDevice(e,t,r)}}function moveAcrossDevice(e,t,r){const s={overwrite:r,errorOnExist:true};i(e,t,s);return o(e)}e.exports=moveSync},1497:(e,t,r)=>{"use strict";const s=r(9046).fromCallback;e.exports={move:s(r(2231))}},2231:(e,t,r)=>{"use strict";const s=r(7758);const n=r(1017);const i=r(1335).copy;const o=r(7357).remove;const a=r(8605).mkdirp;const u=r(3835).pathExists;const l=r(3901);function move(e,t,r,s){if(typeof r==="function"){s=r;r={}}const i=r.overwrite||r.clobber||false;l.checkPaths(e,t,"move",((r,o)=>{if(r)return s(r);const{srcStat:u}=o;l.checkParentPaths(e,u,t,"move",(r=>{if(r)return s(r);a(n.dirname(t),(r=>{if(r)return s(r);return doRename(e,t,i,s)}))}))}))}function doRename(e,t,r,s){if(r){return o(t,(n=>{if(n)return s(n);return rename(e,t,r,s)}))}u(t,((n,i)=>{if(n)return s(n);if(i)return s(new Error("dest already exists."));return rename(e,t,r,s)}))}function rename(e,t,r,n){s.rename(e,t,(s=>{if(!s)return n();if(s.code!=="EXDEV")return n(s);return moveAcrossDevice(e,t,r,n)}))}function moveAcrossDevice(e,t,r,s){const n={overwrite:r,errorOnExist:true};i(e,t,n,(t=>{if(t)return s(t);return o(e,s)}))}e.exports=move},6570:(e,t,r)=>{"use strict";const s=r(9046).fromCallback;const n=r(7758);const i=r(1017);const o=r(8605);const a=r(3835).pathExists;function outputFile(e,t,r,s){if(typeof r==="function"){s=r;r="utf8"}const u=i.dirname(e);a(u,((i,a)=>{if(i)return s(i);if(a)return n.writeFile(e,t,r,s);o.mkdirs(u,(i=>{if(i)return s(i);n.writeFile(e,t,r,s)}))}))}function outputFileSync(e,...t){const r=i.dirname(e);if(n.existsSync(r)){return n.writeFileSync(e,...t)}o.mkdirsSync(r);n.writeFileSync(e,...t)}e.exports={outputFile:s(outputFile),outputFileSync:outputFileSync}},3835:(e,t,r)=>{"use strict";const s=r(9046).fromPromise;const n=r(1176);function pathExists(e){return n.access(e).then((()=>true)).catch((()=>false))}e.exports={pathExists:s(pathExists),pathExistsSync:n.existsSync}},7357:(e,t,r)=>{"use strict";const s=r(9046).fromCallback;const n=r(8761);e.exports={remove:s(n),removeSync:n.sync}},8761:(e,t,r)=>{"use strict";const s=r(7758);const n=r(1017);const i=r(9491);const o=process.platform==="win32";function defaults(e){const t=["unlink","chmod","stat","lstat","rmdir","readdir"];t.forEach((t=>{e[t]=e[t]||s[t];t=t+"Sync";e[t]=e[t]||s[t]}));e.maxBusyTries=e.maxBusyTries||3}function rimraf(e,t,r){let s=0;if(typeof t==="function"){r=t;t={}}i(e,"rimraf: missing path");i.strictEqual(typeof e,"string","rimraf: path should be a string");i.strictEqual(typeof r,"function","rimraf: callback function required");i(t,"rimraf: invalid options argument provided");i.strictEqual(typeof t,"object","rimraf: options should be object");defaults(t);rimraf_(e,t,(function CB(n){if(n){if((n.code==="EBUSY"||n.code==="ENOTEMPTY"||n.code==="EPERM")&&s<t.maxBusyTries){s++;const r=s*100;return setTimeout((()=>rimraf_(e,t,CB)),r)}if(n.code==="ENOENT")n=null}r(n)}))}function rimraf_(e,t,r){i(e);i(t);i(typeof r==="function");t.lstat(e,((s,n)=>{if(s&&s.code==="ENOENT"){return r(null)}if(s&&s.code==="EPERM"&&o){return fixWinEPERM(e,t,s,r)}if(n&&n.isDirectory()){return rmdir(e,t,s,r)}t.unlink(e,(s=>{if(s){if(s.code==="ENOENT"){return r(null)}if(s.code==="EPERM"){return o?fixWinEPERM(e,t,s,r):rmdir(e,t,s,r)}if(s.code==="EISDIR"){return rmdir(e,t,s,r)}}return r(s)}))}))}function fixWinEPERM(e,t,r,s){i(e);i(t);i(typeof s==="function");if(r){i(r instanceof Error)}t.chmod(e,438,(n=>{if(n){s(n.code==="ENOENT"?null:r)}else{t.stat(e,((n,i)=>{if(n){s(n.code==="ENOENT"?null:r)}else if(i.isDirectory()){rmdir(e,t,r,s)}else{t.unlink(e,s)}}))}}))}function fixWinEPERMSync(e,t,r){let s;i(e);i(t);if(r){i(r instanceof Error)}try{t.chmodSync(e,438)}catch(e){if(e.code==="ENOENT"){return}else{throw r}}try{s=t.statSync(e)}catch(e){if(e.code==="ENOENT"){return}else{throw r}}if(s.isDirectory()){rmdirSync(e,t,r)}else{t.unlinkSync(e)}}function rmdir(e,t,r,s){i(e);i(t);if(r){i(r instanceof Error)}i(typeof s==="function");t.rmdir(e,(n=>{if(n&&(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")){rmkids(e,t,s)}else if(n&&n.code==="ENOTDIR"){s(r)}else{s(n)}}))}function rmkids(e,t,r){i(e);i(t);i(typeof r==="function");t.readdir(e,((s,i)=>{if(s)return r(s);let o=i.length;let a;if(o===0)return t.rmdir(e,r);i.forEach((s=>{rimraf(n.join(e,s),t,(s=>{if(a){return}if(s)return r(a=s);if(--o===0){t.rmdir(e,r)}}))}))}))}function rimrafSync(e,t){let r;t=t||{};defaults(t);i(e,"rimraf: missing path");i.strictEqual(typeof e,"string","rimraf: path should be a string");i(t,"rimraf: missing options");i.strictEqual(typeof t,"object","rimraf: options should be object");try{r=t.lstatSync(e)}catch(r){if(r.code==="ENOENT"){return}if(r.code==="EPERM"&&o){fixWinEPERMSync(e,t,r)}}try{if(r&&r.isDirectory()){rmdirSync(e,t,null)}else{t.unlinkSync(e)}}catch(r){if(r.code==="ENOENT"){return}else if(r.code==="EPERM"){return o?fixWinEPERMSync(e,t,r):rmdirSync(e,t,r)}else if(r.code!=="EISDIR"){throw r}rmdirSync(e,t,r)}}function rmdirSync(e,t,r){i(e);i(t);if(r){i(r instanceof Error)}try{t.rmdirSync(e)}catch(s){if(s.code==="ENOTDIR"){throw r}else if(s.code==="ENOTEMPTY"||s.code==="EEXIST"||s.code==="EPERM"){rmkidsSync(e,t)}else if(s.code!=="ENOENT"){throw s}}}function rmkidsSync(e,t){i(e);i(t);t.readdirSync(e).forEach((r=>rimrafSync(n.join(e,r),t)));if(o){const r=Date.now();do{try{const r=t.rmdirSync(e,t);return r}catch{}}while(Date.now()-r<500)}else{const r=t.rmdirSync(e,t);return r}}e.exports=rimraf;rimraf.sync=rimrafSync},3901:(e,t,r)=>{"use strict";const s=r(1176);const n=r(1017);const i=r(3837);const o=r(5995);const a=o("10.5.0");const stat=e=>a?s.stat(e,{bigint:true}):s.stat(e);const statSync=e=>a?s.statSync(e,{bigint:true}):s.statSync(e);function getStats(e,t){return Promise.all([stat(e),stat(t).catch((e=>{if(e.code==="ENOENT")return null;throw e}))]).then((([e,t])=>({srcStat:e,destStat:t})))}function getStatsSync(e,t){let r;const s=statSync(e);try{r=statSync(t)}catch(e){if(e.code==="ENOENT")return{srcStat:s,destStat:null};throw e}return{srcStat:s,destStat:r}}function checkPaths(e,t,r,s){i.callbackify(getStats)(e,t,((n,i)=>{if(n)return s(n);const{srcStat:o,destStat:a}=i;if(a&&areIdentical(o,a)){return s(new Error("Source and destination must not be the same."))}if(o.isDirectory()&&isSrcSubdir(e,t)){return s(new Error(errMsg(e,t,r)))}return s(null,{srcStat:o,destStat:a})}))}function checkPathsSync(e,t,r){const{srcStat:s,destStat:n}=getStatsSync(e,t);if(n&&areIdentical(s,n)){throw new Error("Source and destination must not be the same.")}if(s.isDirectory()&&isSrcSubdir(e,t)){throw new Error(errMsg(e,t,r))}return{srcStat:s,destStat:n}}function checkParentPaths(e,t,r,i,o){const u=n.resolve(n.dirname(e));const l=n.resolve(n.dirname(r));if(l===u||l===n.parse(l).root)return o();const callback=(s,n)=>{if(s){if(s.code==="ENOENT")return o();return o(s)}if(areIdentical(t,n)){return o(new Error(errMsg(e,r,i)))}return checkParentPaths(e,t,l,i,o)};if(a)s.stat(l,{bigint:true},callback);else s.stat(l,callback)}function checkParentPathsSync(e,t,r,s){const i=n.resolve(n.dirname(e));const o=n.resolve(n.dirname(r));if(o===i||o===n.parse(o).root)return;let a;try{a=statSync(o)}catch(e){if(e.code==="ENOENT")return;throw e}if(areIdentical(t,a)){throw new Error(errMsg(e,r,s))}return checkParentPathsSync(e,t,o,s)}function areIdentical(e,t){if(t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev){if(a||t.ino<Number.MAX_SAFE_INTEGER){return true}if(t.size===e.size&&t.mode===e.mode&&t.nlink===e.nlink&&t.atimeMs===e.atimeMs&&t.mtimeMs===e.mtimeMs&&t.ctimeMs===e.ctimeMs&&t.birthtimeMs===e.birthtimeMs){return true}}return false}function isSrcSubdir(e,t){const r=n.resolve(e).split(n.sep).filter((e=>e));const s=n.resolve(t).split(n.sep).filter((e=>e));return r.reduce(((e,t,r)=>e&&s[r]===t),true)}function errMsg(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}e.exports={checkPaths:checkPaths,checkPathsSync:checkPathsSync,checkParentPaths:checkParentPaths,checkParentPathsSync:checkParentPathsSync,isSrcSubdir:isSrcSubdir}},2548:(e,t,r)=>{"use strict";const s=r(7758);function utimesMillis(e,t,r,n){s.open(e,"r+",((e,i)=>{if(e)return n(e);s.futimes(i,t,r,(e=>{s.close(i,(t=>{if(n)n(e||t)}))}))}))}function utimesMillisSync(e,t,r){const n=s.openSync(e,"r+");s.futimesSync(n,t,r);return s.closeSync(n)}e.exports={utimesMillis:utimesMillis,utimesMillisSync:utimesMillisSync}},7714:(e,t,r)=>{"use strict";const s=r(1077);const n=r(2361).EventEmitter;const i=r(7147);let o=i.writev;if(!o){const e=process.binding("fs");const t=e.FSReqWrap||e.FSReqCallback;o=(r,s,n,i)=>{const done=(e,t)=>i(e,t,s);const o=new t;o.oncomplete=done;e.writeBuffers(r,s,n,o)}}const a=Symbol("_autoClose");const u=Symbol("_close");const l=Symbol("_ended");const h=Symbol("_fd");const p=Symbol("_finished");const d=Symbol("_flags");const m=Symbol("_flush");const y=Symbol("_handleChunk");const g=Symbol("_makeBuf");const v=Symbol("_mode");const b=Symbol("_needDrain");const w=Symbol("_onerror");const A=Symbol("_onopen");const _=Symbol("_onread");const S=Symbol("_onwrite");const C=Symbol("_open");const D=Symbol("_path");const x=Symbol("_pos");const R=Symbol("_queue");const k=Symbol("_read");const O=Symbol("_readSize");const T=Symbol("_reading");const P=Symbol("_remain");const M=Symbol("_size");const B=Symbol("_write");const j=Symbol("_writing");const I=Symbol("_defaultFlag");const N=Symbol("_errored");class ReadStream extends s{constructor(e,t){t=t||{};super(t);this.readable=true;this.writable=false;if(typeof e!=="string")throw new TypeError("path must be a string");this[N]=false;this[h]=typeof t.fd==="number"?t.fd:null;this[D]=e;this[O]=t.readSize||16*1024*1024;this[T]=false;this[M]=typeof t.size==="number"?t.size:Infinity;this[P]=this[M];this[a]=typeof t.autoClose==="boolean"?t.autoClose:true;if(typeof this[h]==="number")this[k]();else this[C]()}get fd(){return this[h]}get path(){return this[D]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[C](){i.open(this[D],"r",((e,t)=>this[A](e,t)))}[A](e,t){if(e)this[w](e);else{this[h]=t;this.emit("open",t);this[k]()}}[g](){return Buffer.allocUnsafe(Math.min(this[O],this[P]))}[k](){if(!this[T]){this[T]=true;const e=this[g]();if(e.length===0)return process.nextTick((()=>this[_](null,0,e)));i.read(this[h],e,0,e.length,null,((e,t,r)=>this[_](e,t,r)))}}[_](e,t,r){this[T]=false;if(e)this[w](e);else if(this[y](t,r))this[k]()}[u](){if(this[a]&&typeof this[h]==="number"){const e=this[h];this[h]=null;i.close(e,(e=>e?this.emit("error",e):this.emit("close")))}}[w](e){this[T]=true;this[u]();this.emit("error",e)}[y](e,t){let r=false;this[P]-=e;if(e>0)r=super.write(e<t.length?t.slice(0,e):t);if(e===0||this[P]<=0){r=false;this[u]();super.end()}return r}emit(e,t){switch(e){case"prefinish":case"finish":break;case"drain":if(typeof this[h]==="number")this[k]();break;case"error":if(this[N])return;this[N]=true;return super.emit(e,t);default:return super.emit(e,t)}}}class ReadStreamSync extends ReadStream{[C](){let e=true;try{this[A](null,i.openSync(this[D],"r"));e=false}finally{if(e)this[u]()}}[k](){let e=true;try{if(!this[T]){this[T]=true;do{const e=this[g]();const t=e.length===0?0:i.readSync(this[h],e,0,e.length,null);if(!this[y](t,e))break}while(true);this[T]=false}e=false}finally{if(e)this[u]()}}[u](){if(this[a]&&typeof this[h]==="number"){const e=this[h];this[h]=null;i.closeSync(e);this.emit("close")}}}class WriteStream extends n{constructor(e,t){t=t||{};super(t);this.readable=false;this.writable=true;this[N]=false;this[j]=false;this[l]=false;this[b]=false;this[R]=[];this[D]=e;this[h]=typeof t.fd==="number"?t.fd:null;this[v]=t.mode===undefined?438:t.mode;this[x]=typeof t.start==="number"?t.start:null;this[a]=typeof t.autoClose==="boolean"?t.autoClose:true;const r=this[x]!==null?"r+":"w";this[I]=t.flags===undefined;this[d]=this[I]?r:t.flags;if(this[h]===null)this[C]()}emit(e,t){if(e==="error"){if(this[N])return;this[N]=true}return super.emit(e,t)}get fd(){return this[h]}get path(){return this[D]}[w](e){this[u]();this[j]=true;this.emit("error",e)}[C](){i.open(this[D],this[d],this[v],((e,t)=>this[A](e,t)))}[A](e,t){if(this[I]&&this[d]==="r+"&&e&&e.code==="ENOENT"){this[d]="w";this[C]()}else if(e)this[w](e);else{this[h]=t;this.emit("open",t);this[m]()}}end(e,t){if(e)this.write(e,t);this[l]=true;if(!this[j]&&!this[R].length&&typeof this[h]==="number")this[S](null,0);return this}write(e,t){if(typeof e==="string")e=Buffer.from(e,t);if(this[l]){this.emit("error",new Error("write() after end()"));return false}if(this[h]===null||this[j]||this[R].length){this[R].push(e);this[b]=true;return false}this[j]=true;this[B](e);return true}[B](e){i.write(this[h],e,0,e.length,this[x],((e,t)=>this[S](e,t)))}[S](e,t){if(e)this[w](e);else{if(this[x]!==null)this[x]+=t;if(this[R].length)this[m]();else{this[j]=false;if(this[l]&&!this[p]){this[p]=true;this[u]();this.emit("finish")}else if(this[b]){this[b]=false;this.emit("drain")}}}}[m](){if(this[R].length===0){if(this[l])this[S](null,0)}else if(this[R].length===1)this[B](this[R].pop());else{const e=this[R];this[R]=[];o(this[h],e,this[x],((e,t)=>this[S](e,t)))}}[u](){if(this[a]&&typeof this[h]==="number"){const e=this[h];this[h]=null;i.close(e,(e=>e?this.emit("error",e):this.emit("close")))}}}class WriteStreamSync extends WriteStream{[C](){let e;if(this[I]&&this[d]==="r+"){try{e=i.openSync(this[D],this[d],this[v])}catch(e){if(e.code==="ENOENT"){this[d]="w";return this[C]()}else throw e}}else e=i.openSync(this[D],this[d],this[v]);this[A](null,e)}[u](){if(this[a]&&typeof this[h]==="number"){const e=this[h];this[h]=null;i.closeSync(e);this.emit("close")}}[B](e){let t=true;try{this[S](null,i.writeSync(this[h],e,0,e.length,this[x]));t=false}finally{if(t)try{this[u]()}catch(e){}}}}t.ReadStream=ReadStream;t.ReadStreamSync=ReadStreamSync;t.WriteStream=WriteStream;t.WriteStreamSync=WriteStreamSync},6863:(e,t,r)=>{e.exports=realpath;realpath.realpath=realpath;realpath.sync=realpathSync;realpath.realpathSync=realpathSync;realpath.monkeypatch=monkeypatch;realpath.unmonkeypatch=unmonkeypatch;var s=r(7147);var n=s.realpath;var i=s.realpathSync;var o=process.version;var a=/^v[0-5]\./.test(o);var u=r(1734);function newError(e){return e&&e.syscall==="realpath"&&(e.code==="ELOOP"||e.code==="ENOMEM"||e.code==="ENAMETOOLONG")}function realpath(e,t,r){if(a){return n(e,t,r)}if(typeof t==="function"){r=t;t=null}n(e,t,(function(s,n){if(newError(s)){u.realpath(e,t,r)}else{r(s,n)}}))}function realpathSync(e,t){if(a){return i(e,t)}try{return i(e,t)}catch(r){if(newError(r)){return u.realpathSync(e,t)}else{throw r}}}function monkeypatch(){s.realpath=realpath;s.realpathSync=realpathSync}function unmonkeypatch(){s.realpath=n;s.realpathSync=i}},1734:(e,t,r)=>{var s=r(1017);var n=process.platform==="win32";var i=r(7147);var o=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function rethrow(){var e;if(o){var t=new Error;e=debugCallback}else e=missingCallback;return e;function debugCallback(e){if(e){t.message=e.message;e=t;missingCallback(e)}}function missingCallback(e){if(e){if(process.throwDeprecation)throw e;else if(!process.noDeprecation){var t="fs: missing callback "+(e.stack||e.message);if(process.traceDeprecation)console.trace(t);else console.error(t)}}}}function maybeCallback(e){return typeof e==="function"?e:rethrow()}var a=s.normalize;if(n){var u=/(.*?)(?:[\/\\]+|$)/g}else{var u=/(.*?)(?:[\/]+|$)/g}if(n){var l=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/}else{var l=/^[\/]*/}t.realpathSync=function realpathSync(e,t){e=s.resolve(e);if(t&&Object.prototype.hasOwnProperty.call(t,e)){return t[e]}var r=e,o={},a={};var h;var p;var d;var m;start();function start(){var t=l.exec(e);h=t[0].length;p=t[0];d=t[0];m="";if(n&&!a[d]){i.lstatSync(d);a[d]=true}}while(h<e.length){u.lastIndex=h;var y=u.exec(e);m=p;p+=y[0];d=m+y[1];h=u.lastIndex;if(a[d]||t&&t[d]===d){continue}var g;if(t&&Object.prototype.hasOwnProperty.call(t,d)){g=t[d]}else{var v=i.lstatSync(d);if(!v.isSymbolicLink()){a[d]=true;if(t)t[d]=d;continue}var b=null;if(!n){var w=v.dev.toString(32)+":"+v.ino.toString(32);if(o.hasOwnProperty(w)){b=o[w]}}if(b===null){i.statSync(d);b=i.readlinkSync(d)}g=s.resolve(m,b);if(t)t[d]=g;if(!n)o[w]=b}e=s.resolve(g,e.slice(h));start()}if(t)t[r]=e;return e};t.realpath=function realpath(e,t,r){if(typeof r!=="function"){r=maybeCallback(t);t=null}e=s.resolve(e);if(t&&Object.prototype.hasOwnProperty.call(t,e)){return process.nextTick(r.bind(null,null,t[e]))}var o=e,a={},h={};var p;var d;var m;var y;start();function start(){var t=l.exec(e);p=t[0].length;d=t[0];m=t[0];y="";if(n&&!h[m]){i.lstat(m,(function(e){if(e)return r(e);h[m]=true;LOOP()}))}else{process.nextTick(LOOP)}}function LOOP(){if(p>=e.length){if(t)t[o]=e;return r(null,e)}u.lastIndex=p;var s=u.exec(e);y=d;d+=s[0];m=y+s[1];p=u.lastIndex;if(h[m]||t&&t[m]===m){return process.nextTick(LOOP)}if(t&&Object.prototype.hasOwnProperty.call(t,m)){return gotResolvedLink(t[m])}return i.lstat(m,gotStat)}function gotStat(e,s){if(e)return r(e);if(!s.isSymbolicLink()){h[m]=true;if(t)t[m]=m;return process.nextTick(LOOP)}if(!n){var o=s.dev.toString(32)+":"+s.ino.toString(32);if(a.hasOwnProperty(o)){return gotTarget(null,a[o],m)}}i.stat(m,(function(e){if(e)return r(e);i.readlink(m,(function(e,t){if(!n)a[o]=t;gotTarget(e,t)}))}))}function gotTarget(e,n,i){if(e)return r(e);var o=s.resolve(y,n);if(t)t[i]=o;gotResolvedLink(o)}function gotResolvedLink(t){e=s.resolve(t,e.slice(p));start()}}},1585:(e,t,r)=>{"use strict";const{PassThrough:s}=r(2781);e.exports=e=>{e={...e};const{array:t}=e;let{encoding:r}=e;const n=r==="buffer";let i=false;if(t){i=!(r||n)}else{r=r||"utf8"}if(n){r=null}const o=new s({objectMode:i});if(r){o.setEncoding(r)}let a=0;const u=[];o.on("data",(e=>{u.push(e);if(i){a=u.length}else{a+=e.length}}));o.getBufferedValue=()=>{if(t){return u}return n?Buffer.concat(u,a):u.join("")};o.getBufferedLength=()=>a;return o}},1766:(e,t,r)=>{"use strict";const s=r(8341);const n=r(1585);class MaxBufferError extends Error{constructor(){super("maxBuffer exceeded");this.name="MaxBufferError"}}async function getStream(e,t){if(!e){return Promise.reject(new Error("Expected a stream"))}t={maxBuffer:Infinity,...t};const{maxBuffer:r}=t;let i;await new Promise(((o,a)=>{const rejectPromise=e=>{if(e){e.bufferedData=i.getBufferedValue()}a(e)};i=s(e,n(t),(e=>{if(e){rejectPromise(e);return}o()}));i.on("data",(()=>{if(i.getBufferedLength()>r){rejectPromise(new MaxBufferError)}}))}));return i.getBufferedValue()}e.exports=getStream;e.exports["default"]=getStream;e.exports.buffer=(e,t)=>getStream(e,{...t,encoding:"buffer"});e.exports.array=(e,t)=>getStream(e,{...t,array:true});e.exports.MaxBufferError=MaxBufferError},6037:(e,t,r)=>{const s=r(3837);const n=r(7310);let i=false;let o=true;function _value(e,t){const r=process.env[e];if(r===undefined){if(t===undefined&&!o){return r}if(t===undefined){throw new Error("GetEnv.Nonexistent: "+e+" does not exist "+"and no fallback value provided.")}if(i){throw new Error("GetEnv.DisabledFallbacks: "+e+" relying on fallback "+"when fallbacks have been disabled")}return""+t}return r}const a={string:function(e){return""+e},int:function(e){const t=e.match(/^-?\d+$/);if(!t){throw new Error("GetEnv.NoInteger: "+e+" is not an integer.")}return+e},float:function(e){const t=+e===Infinity||+e===-Infinity;if(t){throw new Error("GetEnv.Infinity: "+e+" is set to +/-Infinity.")}const r=!(isNaN(e)||e==="");if(!r){throw new Error("GetEnv.NoFloat: "+e+" is not a number.")}return+e},bool:function(e){const t=e==="true"||e==="false";if(!t){throw new Error("GetEnv.NoBoolean: "+e+" is not a boolean.")}return e==="true"},boolish:function(e){try{return a.bool(e)}catch(t){const r=e==="1"||e==="0";if(!r){throw new Error("GetEnv.NoBoolean: "+e+" is not a boolean.")}return e==="1"}},url:n.parse};function converter(e){return function(t,r){if(typeof t=="string"){const s=_value(t,r);return a[e](s)}else{return u.multi(t)}}}const u=converter("string");Object.keys(a).forEach((function(e){u[e]=converter(e)}));u.array=function array(e,t,r){t=t||"string";if(Object.keys(a).indexOf(t)===-1){throw new Error("GetEnv.ArrayUndefinedType: Unknown array type "+t)}const s=_value(e,r);return s.split(/\s*,\s*/).map(a[t])};u.multi=function multi(e){const t={};for(let r in e){const n=e[r];if(s.isArray(n)){switch(n.length){case 1:case 2:t[r]=u(n[0],n[1]);break;case 3:t[r]=u[n[2]](n[0],n[1]);break;default:throw"getenv.multi(): invalid spec";break}}else{t[r]=u(n)}}return t};u.disableFallbacks=function(){i=true};u.enableFallbacks=function(){i=false};u.disableErrors=function(){o=false};u.enableErrors=function(){o=true};e.exports=u},7625:(e,t,r)=>{t.alphasort=alphasort;t.alphasorti=alphasorti;t.setopts=setopts;t.ownProp=ownProp;t.makeAbs=makeAbs;t.finish=finish;t.mark=mark;t.isIgnored=isIgnored;t.childrenIgnored=childrenIgnored;function ownProp(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var s=r(1017);var n=r(3973);var i=r(8714);var o=n.Minimatch;function alphasorti(e,t){return e.toLowerCase().localeCompare(t.toLowerCase())}function alphasort(e,t){return e.localeCompare(t)}function setupIgnores(e,t){e.ignore=t.ignore||[];if(!Array.isArray(e.ignore))e.ignore=[e.ignore];if(e.ignore.length){e.ignore=e.ignore.map(ignoreMap)}}function ignoreMap(e){var t=null;if(e.slice(-3)==="/**"){var r=e.replace(/(\/\*\*)+$/,"");t=new o(r,{dot:true})}return{matcher:new o(e,{dot:true}),gmatcher:t}}function setopts(e,t,r){if(!r)r={};if(r.matchBase&&-1===t.indexOf("/")){if(r.noglobstar){throw new Error("base matching requires globstar")}t="**/"+t}e.silent=!!r.silent;e.pattern=t;e.strict=r.strict!==false;e.realpath=!!r.realpath;e.realpathCache=r.realpathCache||Object.create(null);e.follow=!!r.follow;e.dot=!!r.dot;e.mark=!!r.mark;e.nodir=!!r.nodir;if(e.nodir)e.mark=true;e.sync=!!r.sync;e.nounique=!!r.nounique;e.nonull=!!r.nonull;e.nosort=!!r.nosort;e.nocase=!!r.nocase;e.stat=!!r.stat;e.noprocess=!!r.noprocess;e.absolute=!!r.absolute;e.maxLength=r.maxLength||Infinity;e.cache=r.cache||Object.create(null);e.statCache=r.statCache||Object.create(null);e.symlinks=r.symlinks||Object.create(null);setupIgnores(e,r);e.changedCwd=false;var n=process.cwd();if(!ownProp(r,"cwd"))e.cwd=n;else{e.cwd=s.resolve(r.cwd);e.changedCwd=e.cwd!==n}e.root=r.root||s.resolve(e.cwd,"/");e.root=s.resolve(e.root);if(process.platform==="win32")e.root=e.root.replace(/\\/g,"/");e.cwdAbs=i(e.cwd)?e.cwd:makeAbs(e,e.cwd);if(process.platform==="win32")e.cwdAbs=e.cwdAbs.replace(/\\/g,"/");e.nomount=!!r.nomount;r.nonegate=true;r.nocomment=true;e.minimatch=new o(t,r);e.options=e.minimatch.options}function finish(e){var t=e.nounique;var r=t?[]:Object.create(null);for(var s=0,n=e.matches.length;s<n;s++){var i=e.matches[s];if(!i||Object.keys(i).length===0){if(e.nonull){var o=e.minimatch.globSet[s];if(t)r.push(o);else r[o]=true}}else{var a=Object.keys(i);if(t)r.push.apply(r,a);else a.forEach((function(e){r[e]=true}))}}if(!t)r=Object.keys(r);if(!e.nosort)r=r.sort(e.nocase?alphasorti:alphasort);if(e.mark){for(var s=0;s<r.length;s++){r[s]=e._mark(r[s])}if(e.nodir){r=r.filter((function(t){var r=!/\/$/.test(t);var s=e.cache[t]||e.cache[makeAbs(e,t)];if(r&&s)r=s!=="DIR"&&!Array.isArray(s);return r}))}}if(e.ignore.length)r=r.filter((function(t){return!isIgnored(e,t)}));e.found=r}function mark(e,t){var r=makeAbs(e,t);var s=e.cache[r];var n=t;if(s){var i=s==="DIR"||Array.isArray(s);var o=t.slice(-1)==="/";if(i&&!o)n+="/";else if(!i&&o)n=n.slice(0,-1);if(n!==t){var a=makeAbs(e,n);e.statCache[a]=e.statCache[r];e.cache[a]=e.cache[r]}}return n}function makeAbs(e,t){var r=t;if(t.charAt(0)==="/"){r=s.join(e.root,t)}else if(i(t)||t===""){r=t}else if(e.changedCwd){r=s.resolve(e.cwd,t)}else{r=s.resolve(t)}if(process.platform==="win32")r=r.replace(/\\/g,"/");return r}function isIgnored(e,t){if(!e.ignore.length)return false;return e.ignore.some((function(e){return e.matcher.match(t)||!!(e.gmatcher&&e.gmatcher.match(t))}))}function childrenIgnored(e,t){if(!e.ignore.length)return false;return e.ignore.some((function(e){return!!(e.gmatcher&&e.gmatcher.match(t))}))}},1957:(e,t,r)=>{e.exports=glob;var s=r(7147);var n=r(6863);var i=r(3973);var o=i.Minimatch;var a=r(4124);var u=r(2361).EventEmitter;var l=r(1017);var h=r(9491);var p=r(8714);var d=r(9010);var m=r(7625);var y=m.alphasort;var g=m.alphasorti;var v=m.setopts;var b=m.ownProp;var w=r(2492);var A=r(3837);var _=m.childrenIgnored;var S=m.isIgnored;var C=r(1223);function glob(e,t,r){if(typeof t==="function")r=t,t={};if(!t)t={};if(t.sync){if(r)throw new TypeError("callback provided to sync glob");return d(e,t)}return new Glob(e,t,r)}glob.sync=d;var D=glob.GlobSync=d.GlobSync;glob.glob=glob;function extend(e,t){if(t===null||typeof t!=="object"){return e}var r=Object.keys(t);var s=r.length;while(s--){e[r[s]]=t[r[s]]}return e}glob.hasMagic=function(e,t){var r=extend({},t);r.noprocess=true;var s=new Glob(e,r);var n=s.minimatch.set;if(!e)return false;if(n.length>1)return true;for(var i=0;i<n[0].length;i++){if(typeof n[0][i]!=="string")return true}return false};glob.Glob=Glob;a(Glob,u);function Glob(e,t,r){if(typeof t==="function"){r=t;t=null}if(t&&t.sync){if(r)throw new TypeError("callback provided to sync glob");return new D(e,t)}if(!(this instanceof Glob))return new Glob(e,t,r);v(this,e,t);this._didRealPath=false;var s=this.minimatch.set.length;this.matches=new Array(s);if(typeof r==="function"){r=C(r);this.on("error",r);this.on("end",(function(e){r(null,e)}))}var n=this;this._processing=0;this._emitQueue=[];this._processQueue=[];this.paused=false;if(this.noprocess)return this;if(s===0)return done();var i=true;for(var o=0;o<s;o++){this._process(this.minimatch.set[o],o,false,done)}i=false;function done(){--n._processing;if(n._processing<=0){if(i){process.nextTick((function(){n._finish()}))}else{n._finish()}}}}Glob.prototype._finish=function(){h(this instanceof Glob);if(this.aborted)return;if(this.realpath&&!this._didRealpath)return this._realpath();m.finish(this);this.emit("end",this.found)};Glob.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=true;var e=this.matches.length;if(e===0)return this._finish();var t=this;for(var r=0;r<this.matches.length;r++)this._realpathSet(r,next);function next(){if(--e===0)t._finish()}};Glob.prototype._realpathSet=function(e,t){var r=this.matches[e];if(!r)return t();var s=Object.keys(r);var i=this;var o=s.length;if(o===0)return t();var a=this.matches[e]=Object.create(null);s.forEach((function(r,s){r=i._makeAbs(r);n.realpath(r,i.realpathCache,(function(s,n){if(!s)a[n]=true;else if(s.syscall==="stat")a[r]=true;else i.emit("error",s);if(--o===0){i.matches[e]=a;t()}}))}))};Glob.prototype._mark=function(e){return m.mark(this,e)};Glob.prototype._makeAbs=function(e){return m.makeAbs(this,e)};Glob.prototype.abort=function(){this.aborted=true;this.emit("abort")};Glob.prototype.pause=function(){if(!this.paused){this.paused=true;this.emit("pause")}};Glob.prototype.resume=function(){if(this.paused){this.emit("resume");this.paused=false;if(this._emitQueue.length){var e=this._emitQueue.slice(0);this._emitQueue.length=0;for(var t=0;t<e.length;t++){var r=e[t];this._emitMatch(r[0],r[1])}}if(this._processQueue.length){var s=this._processQueue.slice(0);this._processQueue.length=0;for(var t=0;t<s.length;t++){var n=s[t];this._processing--;this._process(n[0],n[1],n[2],n[3])}}}};Glob.prototype._process=function(e,t,r,s){h(this instanceof Glob);h(typeof s==="function");if(this.aborted)return;this._processing++;if(this.paused){this._processQueue.push([e,t,r,s]);return}var n=0;while(typeof e[n]==="string"){n++}var o;switch(n){case e.length:this._processSimple(e.join("/"),t,s);return;case 0:o=null;break;default:o=e.slice(0,n).join("/");break}var a=e.slice(n);var u;if(o===null)u=".";else if(p(o)||p(e.join("/"))){if(!o||!p(o))o="/"+o;u=o}else u=o;var l=this._makeAbs(u);if(_(this,u))return s();var d=a[0]===i.GLOBSTAR;if(d)this._processGlobStar(o,u,l,a,t,r,s);else this._processReaddir(o,u,l,a,t,r,s)};Glob.prototype._processReaddir=function(e,t,r,s,n,i,o){var a=this;this._readdir(r,i,(function(u,l){return a._processReaddir2(e,t,r,s,n,i,l,o)}))};Glob.prototype._processReaddir2=function(e,t,r,s,n,i,o,a){if(!o)return a();var u=s[0];var h=!!this.minimatch.negate;var p=u._glob;var d=this.dot||p.charAt(0)===".";var m=[];for(var y=0;y<o.length;y++){var g=o[y];if(g.charAt(0)!=="."||d){var v;if(h&&!e){v=!g.match(u)}else{v=g.match(u)}if(v)m.push(g)}}var b=m.length;if(b===0)return a();if(s.length===1&&!this.mark&&!this.stat){if(!this.matches[n])this.matches[n]=Object.create(null);for(var y=0;y<b;y++){var g=m[y];if(e){if(e!=="/")g=e+"/"+g;else g=e+g}if(g.charAt(0)==="/"&&!this.nomount){g=l.join(this.root,g)}this._emitMatch(n,g)}return a()}s.shift();for(var y=0;y<b;y++){var g=m[y];var w;if(e){if(e!=="/")g=e+"/"+g;else g=e+g}this._process([g].concat(s),n,i,a)}a()};Glob.prototype._emitMatch=function(e,t){if(this.aborted)return;if(S(this,t))return;if(this.paused){this._emitQueue.push([e,t]);return}var r=p(t)?t:this._makeAbs(t);if(this.mark)t=this._mark(t);if(this.absolute)t=r;if(this.matches[e][t])return;if(this.nodir){var s=this.cache[r];if(s==="DIR"||Array.isArray(s))return}this.matches[e][t]=true;var n=this.statCache[r];if(n)this.emit("stat",t,n);this.emit("match",t)};Glob.prototype._readdirInGlobStar=function(e,t){if(this.aborted)return;if(this.follow)return this._readdir(e,false,t);var r="lstat\0"+e;var n=this;var i=w(r,lstatcb_);if(i)s.lstat(e,i);function lstatcb_(r,s){if(r&&r.code==="ENOENT")return t();var i=s&&s.isSymbolicLink();n.symlinks[e]=i;if(!i&&s&&!s.isDirectory()){n.cache[e]="FILE";t()}else n._readdir(e,false,t)}};Glob.prototype._readdir=function(e,t,r){if(this.aborted)return;r=w("readdir\0"+e+"\0"+t,r);if(!r)return;if(t&&!b(this.symlinks,e))return this._readdirInGlobStar(e,r);if(b(this.cache,e)){var n=this.cache[e];if(!n||n==="FILE")return r();if(Array.isArray(n))return r(null,n)}var i=this;s.readdir(e,readdirCb(this,e,r))};function readdirCb(e,t,r){return function(s,n){if(s)e._readdirError(t,s,r);else e._readdirEntries(t,n,r)}}Glob.prototype._readdirEntries=function(e,t,r){if(this.aborted)return;if(!this.mark&&!this.stat){for(var s=0;s<t.length;s++){var n=t[s];if(e==="/")n=e+n;else n=e+"/"+n;this.cache[n]=true}}this.cache[e]=t;return r(null,t)};Glob.prototype._readdirError=function(e,t,r){if(this.aborted)return;switch(t.code){case"ENOTSUP":case"ENOTDIR":var s=this._makeAbs(e);this.cache[s]="FILE";if(s===this.cwdAbs){var n=new Error(t.code+" invalid cwd "+this.cwd);n.path=this.cwd;n.code=t.code;this.emit("error",n);this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=false;break;default:this.cache[this._makeAbs(e)]=false;if(this.strict){this.emit("error",t);this.abort()}if(!this.silent)console.error("glob error",t);break}return r()};Glob.prototype._processGlobStar=function(e,t,r,s,n,i,o){var a=this;this._readdir(r,i,(function(u,l){a._processGlobStar2(e,t,r,s,n,i,l,o)}))};Glob.prototype._processGlobStar2=function(e,t,r,s,n,i,o,a){if(!o)return a();var u=s.slice(1);var l=e?[e]:[];var h=l.concat(u);this._process(h,n,false,a);var p=this.symlinks[r];var d=o.length;if(p&&i)return a();for(var m=0;m<d;m++){var y=o[m];if(y.charAt(0)==="."&&!this.dot)continue;var g=l.concat(o[m],u);this._process(g,n,true,a);var v=l.concat(o[m],s);this._process(v,n,true,a)}a()};Glob.prototype._processSimple=function(e,t,r){var s=this;this._stat(e,(function(n,i){s._processSimple2(e,t,n,i,r)}))};Glob.prototype._processSimple2=function(e,t,r,s,n){if(!this.matches[t])this.matches[t]=Object.create(null);if(!s)return n();if(e&&p(e)&&!this.nomount){var i=/[\/\\]$/.test(e);if(e.charAt(0)==="/"){e=l.join(this.root,e)}else{e=l.resolve(this.root,e);if(i)e+="/"}}if(process.platform==="win32")e=e.replace(/\\/g,"/");this._emitMatch(t,e);n()};Glob.prototype._stat=function(e,t){var r=this._makeAbs(e);var n=e.slice(-1)==="/";if(e.length>this.maxLength)return t();if(!this.stat&&b(this.cache,r)){var i=this.cache[r];if(Array.isArray(i))i="DIR";if(!n||i==="DIR")return t(null,i);if(n&&i==="FILE")return t()}var o;var a=this.statCache[r];if(a!==undefined){if(a===false)return t(null,a);else{var u=a.isDirectory()?"DIR":"FILE";if(n&&u==="FILE")return t();else return t(null,u,a)}}var l=this;var h=w("stat\0"+r,lstatcb_);if(h)s.lstat(r,h);function lstatcb_(n,i){if(i&&i.isSymbolicLink()){return s.stat(r,(function(s,n){if(s)l._stat2(e,r,null,i,t);else l._stat2(e,r,s,n,t)}))}else{l._stat2(e,r,n,i,t)}}};Glob.prototype._stat2=function(e,t,r,s,n){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR")){this.statCache[t]=false;return n()}var i=e.slice(-1)==="/";this.statCache[t]=s;if(t.slice(-1)==="/"&&s&&!s.isDirectory())return n(null,false,s);var o=true;if(s)o=s.isDirectory()?"DIR":"FILE";this.cache[t]=this.cache[t]||o;if(i&&o==="FILE")return n();return n(null,o,s)}},9010:(e,t,r)=>{e.exports=globSync;globSync.GlobSync=GlobSync;var s=r(7147);var n=r(6863);var i=r(3973);var o=i.Minimatch;var a=r(1957).Glob;var u=r(3837);var l=r(1017);var h=r(9491);var p=r(8714);var d=r(7625);var m=d.alphasort;var y=d.alphasorti;var g=d.setopts;var v=d.ownProp;var b=d.childrenIgnored;var w=d.isIgnored;function globSync(e,t){if(typeof t==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");return new GlobSync(e,t).found}function GlobSync(e,t){if(!e)throw new Error("must provide pattern");if(typeof t==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof GlobSync))return new GlobSync(e,t);g(this,e,t);if(this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var s=0;s<r;s++){this._process(this.minimatch.set[s],s,false)}this._finish()}GlobSync.prototype._finish=function(){h(this instanceof GlobSync);if(this.realpath){var e=this;this.matches.forEach((function(t,r){var s=e.matches[r]=Object.create(null);for(var i in t){try{i=e._makeAbs(i);var o=n.realpathSync(i,e.realpathCache);s[o]=true}catch(t){if(t.syscall==="stat")s[e._makeAbs(i)]=true;else throw t}}}))}d.finish(this)};GlobSync.prototype._process=function(e,t,r){h(this instanceof GlobSync);var s=0;while(typeof e[s]==="string"){s++}var n;switch(s){case e.length:this._processSimple(e.join("/"),t);return;case 0:n=null;break;default:n=e.slice(0,s).join("/");break}var o=e.slice(s);var a;if(n===null)a=".";else if(p(n)||p(e.join("/"))){if(!n||!p(n))n="/"+n;a=n}else a=n;var u=this._makeAbs(a);if(b(this,a))return;var l=o[0]===i.GLOBSTAR;if(l)this._processGlobStar(n,a,u,o,t,r);else this._processReaddir(n,a,u,o,t,r)};GlobSync.prototype._processReaddir=function(e,t,r,s,n,i){var o=this._readdir(r,i);if(!o)return;var a=s[0];var u=!!this.minimatch.negate;var h=a._glob;var p=this.dot||h.charAt(0)===".";var d=[];for(var m=0;m<o.length;m++){var y=o[m];if(y.charAt(0)!=="."||p){var g;if(u&&!e){g=!y.match(a)}else{g=y.match(a)}if(g)d.push(y)}}var v=d.length;if(v===0)return;if(s.length===1&&!this.mark&&!this.stat){if(!this.matches[n])this.matches[n]=Object.create(null);for(var m=0;m<v;m++){var y=d[m];if(e){if(e.slice(-1)!=="/")y=e+"/"+y;else y=e+y}if(y.charAt(0)==="/"&&!this.nomount){y=l.join(this.root,y)}this._emitMatch(n,y)}return}s.shift();for(var m=0;m<v;m++){var y=d[m];var b;if(e)b=[e,y];else b=[y];this._process(b.concat(s),n,i)}};GlobSync.prototype._emitMatch=function(e,t){if(w(this,t))return;var r=this._makeAbs(t);if(this.mark)t=this._mark(t);if(this.absolute){t=r}if(this.matches[e][t])return;if(this.nodir){var s=this.cache[r];if(s==="DIR"||Array.isArray(s))return}this.matches[e][t]=true;if(this.stat)this._stat(t)};GlobSync.prototype._readdirInGlobStar=function(e){if(this.follow)return this._readdir(e,false);var t;var r;var n;try{r=s.lstatSync(e)}catch(e){if(e.code==="ENOENT"){return null}}var i=r&&r.isSymbolicLink();this.symlinks[e]=i;if(!i&&r&&!r.isDirectory())this.cache[e]="FILE";else t=this._readdir(e,false);return t};GlobSync.prototype._readdir=function(e,t){var r;if(t&&!v(this.symlinks,e))return this._readdirInGlobStar(e);if(v(this.cache,e)){var n=this.cache[e];if(!n||n==="FILE")return null;if(Array.isArray(n))return n}try{return this._readdirEntries(e,s.readdirSync(e))}catch(t){this._readdirError(e,t);return null}};GlobSync.prototype._readdirEntries=function(e,t){if(!this.mark&&!this.stat){for(var r=0;r<t.length;r++){var s=t[r];if(e==="/")s=e+s;else s=e+"/"+s;this.cache[s]=true}}this.cache[e]=t;return t};GlobSync.prototype._readdirError=function(e,t){switch(t.code){case"ENOTSUP":case"ENOTDIR":var r=this._makeAbs(e);this.cache[r]="FILE";if(r===this.cwdAbs){var s=new Error(t.code+" invalid cwd "+this.cwd);s.path=this.cwd;s.code=t.code;throw s}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=false;break;default:this.cache[this._makeAbs(e)]=false;if(this.strict)throw t;if(!this.silent)console.error("glob error",t);break}};GlobSync.prototype._processGlobStar=function(e,t,r,s,n,i){var o=this._readdir(r,i);if(!o)return;var a=s.slice(1);var u=e?[e]:[];var l=u.concat(a);this._process(l,n,false);var h=o.length;var p=this.symlinks[r];if(p&&i)return;for(var d=0;d<h;d++){var m=o[d];if(m.charAt(0)==="."&&!this.dot)continue;var y=u.concat(o[d],a);this._process(y,n,true);var g=u.concat(o[d],s);this._process(g,n,true)}};GlobSync.prototype._processSimple=function(e,t){var r=this._stat(e);if(!this.matches[t])this.matches[t]=Object.create(null);if(!r)return;if(e&&p(e)&&!this.nomount){var s=/[\/\\]$/.test(e);if(e.charAt(0)==="/"){e=l.join(this.root,e)}else{e=l.resolve(this.root,e);if(s)e+="/"}}if(process.platform==="win32")e=e.replace(/\\/g,"/");this._emitMatch(t,e)};GlobSync.prototype._stat=function(e){var t=this._makeAbs(e);var r=e.slice(-1)==="/";if(e.length>this.maxLength)return false;if(!this.stat&&v(this.cache,t)){var n=this.cache[t];if(Array.isArray(n))n="DIR";if(!r||n==="DIR")return n;if(r&&n==="FILE")return false}var i;var o=this.statCache[t];if(!o){var a;try{a=s.lstatSync(t)}catch(e){if(e&&(e.code==="ENOENT"||e.code==="ENOTDIR")){this.statCache[t]=false;return false}}if(a&&a.isSymbolicLink()){try{o=s.statSync(t)}catch(e){o=a}}else{o=a}}this.statCache[t]=o;var n=true;if(o)n=o.isDirectory()?"DIR":"FILE";this.cache[t]=this.cache[t]||n;if(r&&n==="FILE")return false;return n};GlobSync.prototype._mark=function(e){return d.mark(this,e)};GlobSync.prototype._makeAbs=function(e){return d.makeAbs(this,e)}},3088:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(4597);const n=new Set([413,429,503]);const isErrorWithResponse=e=>e instanceof s.HTTPError||e instanceof s.ParseError||e instanceof s.MaxRedirectsError;const calculateRetryDelay=({attemptCount:e,retryOptions:t,error:r})=>{if(e>t.limit){return 0}const s=t.methods.includes(r.options.method);const i=t.errorCodes.includes(r.code);const o=isErrorWithResponse(r)&&t.statusCodes.includes(r.response.statusCode);if(!s||!i&&!o){return 0}if(isErrorWithResponse(r)){const{response:e}=r;if(e&&"retry-after"in e.headers&&n.has(e.statusCode)){let r=Number(e.headers["retry-after"]);if(Number.isNaN(r)){r=Date.parse(e.headers["retry-after"])-Date.now()}else{r*=1e3}if(t.maxRetryAfter===undefined||r>t.maxRetryAfter){return 0}return r}if(e.statusCode===413){return 0}}const a=Math.random()*100;return 2**(e-1)*1e3+a};t["default"]=calculateRetryDelay},9266:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(7678);const n=r(4597);const i=r(94);if(!i.knownHookEvents.includes("beforeRetry")){i.knownHookEvents.push("beforeRetry","afterResponse")}t.knownBodyTypes=["json","buffer","text"];t.parseBody=(e,t,r)=>{const{rawBody:s}=e;try{if(t==="text"){return s.toString(r)}if(t==="json"){return s.length===0?"":JSON.parse(s.toString())}if(t==="buffer"){return Buffer.from(s)}throw new n.ParseError({message:`Unknown body type '${t}'`,name:"Error"},e)}catch(t){throw new n.ParseError(t,e)}};class PromisableRequest extends i.default{static normalizeArguments(e,t,r){const n=super.normalizeArguments(e,t,r);if(s.default.null_(n.encoding)){throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead")}s.assert.any([s.default.string,s.default.undefined],n.encoding);s.assert.any([s.default.boolean,s.default.undefined],n.resolveBodyOnly);s.assert.any([s.default.boolean,s.default.undefined],n.methodRewriting);s.assert.any([s.default.boolean,s.default.undefined],n.isStream);const{retry:i}=n;if(r){n.retry={...r.retry}}else{n.retry={calculateDelay:e=>e.computedValue,limit:0,methods:[],statusCodes:[],errorCodes:[],maxRetryAfter:undefined}}if(s.default.object(i)){n.retry={...n.retry,...i};n.retry.methods=[...new Set(n.retry.methods.map((e=>e.toUpperCase())))];n.retry.statusCodes=[...new Set(n.retry.statusCodes)];n.retry.errorCodes=[...new Set(n.retry.errorCodes)]}else if(s.default.number(i)){n.retry.limit=i}if(s.default.undefined(n.retry.maxRetryAfter)){n.retry.maxRetryAfter=Math.min(...[n.timeout.request,n.timeout.connect].filter(s.default.number))}if(s.default.object(n.pagination)){if(r){n.pagination={...r.pagination,...n.pagination}}const{pagination:e}=n;if(!s.default.function_(e.transform)){throw new Error("`options.pagination.transform` must be implemented")}if(!s.default.function_(e.shouldContinue)){throw new Error("`options.pagination.shouldContinue` must be implemented")}if(!s.default.function_(e.filter)){throw new TypeError("`options.pagination.filter` must be implemented")}if(!s.default.function_(e.paginate)){throw new Error("`options.pagination.paginate` must be implemented")}}if(n.responseType==="json"&&n.headers.accept===undefined){n.headers.accept="application/json"}return n}static mergeOptions(...e){let t;for(const r of e){t=PromisableRequest.normalizeArguments(undefined,r,t)}return t}async _beforeError(e){if(!(e instanceof i.RequestError)){e=new i.RequestError(e.message,e,this)}this.emit("error",e)}}t["default"]=PromisableRequest},6457:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(4597);function createRejection(e,...t){const r=(async()=>{if(e instanceof s.RequestError){try{for(const r of t){if(r){for(const t of r){e=await t(e)}}}}catch(t){e=t}}throw e})();const returnPromise=()=>r;r.json=returnPromise;r.text=returnPromise;r.buffer=returnPromise;r.on=returnPromise;return r}t["default"]=createRejection},6056:(e,t,r)=>{"use strict";function __export(e){for(var r in e)if(!t.hasOwnProperty(r))t[r]=e[r]}Object.defineProperty(t,"__esModule",{value:true});const s=r(2361);const n=r(1766);const i=r(9072);const o=r(3088);const a=r(4597);const u=r(9266);t.PromisableRequest=u.default;const l=r(3021);const h=["request","response","redirect","uploadProgress","downloadProgress"];function asPromise(e){let t=0;let r;let p;const d=new s.EventEmitter;const m=new i(((s,i,y)=>{const makeRequest=()=>{const{throwHttpErrors:g}=e;if(!g){e.throwHttpErrors=true}const v=new u.default(e.url,e);v._noPipe=true;y((()=>v.destroy()));const reject=async t=>{try{for(const r of e.hooks.beforeError){t=await r(t)}}catch(e){i(new a.RequestError(e.message,e,v));return}i(t)};r=v;v.once("response",(async r=>{r.retryCount=t;if(r.request.aborted){return}const isOk=()=>{const{statusCode:t}=r;const s=e.followRedirect?299:399;return t>=200&&t<=s||t===304};let i;try{i=await n.buffer(v);r.rawBody=i}catch(e){return}try{r.body=u.parseBody(r,e.responseType,e.encoding)}catch(e){r.body=i.toString();if(isOk()){reject(e);return}}try{for(const[t,s]of e.hooks.afterResponse.entries()){r=await s(r,(async r=>{const s=u.default.normalizeArguments(undefined,{...r,retry:{calculateDelay:()=>0},throwHttpErrors:false,resolveBodyOnly:false},e);s.hooks.afterResponse=s.hooks.afterResponse.slice(0,t);for(const e of s.hooks.beforeRetry){await e(s)}const n=asPromise(s);y((()=>{n.catch((()=>{}));n.cancel()}));return n}))}}catch(e){reject(new a.RequestError(e.message,e,v));return}if(g&&!isOk()){reject(new a.HTTPError(r));return}p=r;s(e.resolveBodyOnly?r.body:r)}));v.once("error",(r=>{if(m.isCanceled){return}if(!v.options){reject(r);return}let s;t++;try{s=e.retry.calculateDelay({attemptCount:t,retryOptions:e.retry,error:r,computedValue:o.default({attemptCount:t,retryOptions:e.retry,error:r,computedValue:0})})}catch(e){v.destroy();reject(new a.RequestError(e.message,r,v));return}if(s){v.destroy();const retry=async()=>{e.throwHttpErrors=g;try{for(const s of e.hooks.beforeRetry){await s(e,r,t)}}catch(e){v.destroy();reject(new a.RequestError(e.message,r,v));return}makeRequest()};setTimeout(retry,s);return}t--;if(r instanceof a.HTTPError){return}v.destroy();reject(r)}));l.default(v,d,h)};makeRequest()}));m.on=(e,t)=>{d.on(e,t);return m};const shortcut=t=>{const r=(async()=>{await m;return u.parseBody(p,t,e.encoding)})();Object.defineProperties(r,Object.getOwnPropertyDescriptors(m));return r};m.json=()=>{if(!r.writableFinished&&e.headers.accept===undefined){e.headers.accept="application/json"}return shortcut("json")};m.buffer=()=>shortcut("buffer");m.text=()=>shortcut("text");return m}t["default"]=asPromise;__export(r(4597))},4597:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(9072);t.CancelError=s.CancelError;const n=r(94);t.RequestError=n.RequestError;t.MaxRedirectsError=n.MaxRedirectsError;t.CacheError=n.CacheError;t.UploadError=n.UploadError;t.TimeoutError=n.TimeoutError;t.HTTPError=n.HTTPError;t.ReadError=n.ReadError;t.UnsupportedProtocolError=n.UnsupportedProtocolError;class ParseError extends n.RequestError{constructor(e,t){const{options:r}=t.request;super(`${e.message} in "${r.url.toString()}"`,e,t.request);this.name="ParseError";Object.defineProperty(this,"response",{enumerable:false,value:t})}}t.ParseError=ParseError},94:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(3837);const n=r(2781);const i=r(7147);const o=r(7310);const a=r(3685);const u=r(3685);const l=r(5687);const h=r(8097);const p=r(2391);const d=r(2286);const m=r(8116);const y=r(4645);const g=r(9662);const v=r(1766);const b=r(7678);const w=r(4564);const A=r(40);const _=r(3021);const S=r(2454);const C=r(8026);const D=r(9219);const x=r(7288);const R=Symbol("request");const k=Symbol("response");const O=Symbol("responseSize");const T=Symbol("downloadedSize");const P=Symbol("bodySize");const M=Symbol("uploadedSize");const B=Symbol("serverResponsesPiped");const j=Symbol("unproxyEvents");const I=Symbol("isFromCache");const N=Symbol("cancelTimeouts");const L=Symbol("startedReading");const $=Symbol("stopReading");const H=Symbol("triggerRead");const U=Symbol("body");const G=Symbol("jobs");const z=Symbol("originalResponse");t.kIsNormalizedAlready=Symbol("isNormalizedAlready");const q=b.default.string(process.versions.brotli);t.withoutBody=new Set(["GET","HEAD"]);t.knownHookEvents=["init","beforeRequest","beforeRedirect","beforeError"];function validateSearchParameters(e){for(const t in e){const r=e[t];if(!b.default.string(r)&&!b.default.number(r)&&!b.default.boolean(r)&&!b.default.null_(r)){throw new TypeError(`The \`searchParams\` value '${String(r)}' must be a string, number, boolean or null`)}}}function isClientRequest(e){return b.default.object(e)&&!("statusCode"in e)}const V=new x.default;const waitForOpenFile=async e=>new Promise(((t,r)=>{const onError=e=>{r(e)};e.once("error",onError);e.once("open",(()=>{e.off("error",onError);t()}))}));const W=new Set([300,301,302,303,304,307,308]);const Y=["context","body","json","form"];const setNonEnumerableProperties=(e,t)=>{const r={};for(const t of e){if(!t){continue}for(const e of Y){if(!(e in t)){continue}r[e]={writable:true,configurable:true,enumerable:false,value:t[e]}}}Object.defineProperties(t,r)};class RequestError extends Error{constructor(e,t,r){var s;super(e);Error.captureStackTrace(this,this.constructor);this.name="RequestError";this.code=t.code;if(r instanceof Request){Object.defineProperty(this,"request",{enumerable:false,value:r});Object.defineProperty(this,"response",{enumerable:false,value:r[k]});Object.defineProperty(this,"options",{enumerable:false,value:r.options})}else{Object.defineProperty(this,"options",{enumerable:false,value:r})}this.timings=(s=this.request)===null||s===void 0?void 0:s.timings;if(!b.default.undefined(t.stack)){const e=this.stack.indexOf(this.message)+this.message.length;const r=this.stack.slice(e).split("\n").reverse();const s=t.stack.slice(t.stack.indexOf(t.message)+t.message.length).split("\n").reverse();while(s.length!==0&&s[0]===r[0]){r.shift()}this.stack=`${this.stack.slice(0,e)}${r.reverse().join("\n")}${s.reverse().join("\n")}`}}}t.RequestError=RequestError;class MaxRedirectsError extends RequestError{constructor(e){super(`Redirected ${e.options.maxRedirects} times. Aborting.`,{},e);this.name="MaxRedirectsError"}}t.MaxRedirectsError=MaxRedirectsError;class HTTPError extends RequestError{constructor(e){super(`Response code ${e.statusCode} (${e.statusMessage})`,{},e.request);this.name="HTTPError"}}t.HTTPError=HTTPError;class CacheError extends RequestError{constructor(e,t){super(e.message,e,t);this.name="CacheError"}}t.CacheError=CacheError;class UploadError extends RequestError{constructor(e,t){super(e.message,e,t);this.name="UploadError"}}t.UploadError=UploadError;class TimeoutError extends RequestError{constructor(e,t,r){super(e.message,e,r);this.name="TimeoutError";this.event=e.event;this.timings=t}}t.TimeoutError=TimeoutError;class ReadError extends RequestError{constructor(e,t){super(e.message,e,t);this.name="ReadError"}}t.ReadError=ReadError;class UnsupportedProtocolError extends RequestError{constructor(e){super(`Unsupported protocol "${e.url.protocol}"`,{},e);this.name="UnsupportedProtocolError"}}t.UnsupportedProtocolError=UnsupportedProtocolError;const Q=["socket","connect","continue","information","upgrade","timeout"];class Request extends n.Duplex{constructor(e,r={},s){super({highWaterMark:0});this[T]=0;this[M]=0;this.requestInitialized=false;this[B]=new Set;this.redirects=[];this[$]=false;this[H]=false;this[G]=[];this._progressCallbacks=[];const unlockWrite=()=>this._unlockWrite();const lockWrite=()=>this._lockWrite();this.on("pipe",(e=>{e.prependListener("data",unlockWrite);e.on("data",lockWrite);e.prependListener("end",unlockWrite);e.on("end",lockWrite)}));this.on("unpipe",(e=>{e.off("data",unlockWrite);e.off("data",lockWrite);e.off("end",unlockWrite);e.off("end",lockWrite)}));this.on("pipe",(e=>{if(e instanceof u.IncomingMessage){this.options.headers={...e.headers,...this.options.headers}}}));const{json:n,body:o,form:a}=r;if(n||o||a){this._lockWrite()}(async r=>{var n;try{if(r.body instanceof i.ReadStream){await waitForOpenFile(r.body)}if(t.kIsNormalizedAlready in r){this.options=r}else{this.options=this.constructor.normalizeArguments(e,r,s)}const{url:o}=this.options;if(!o){throw new TypeError("Missing `url` property")}this.requestUrl=o.toString();decodeURI(this.requestUrl);await this._finalizeBody();await this._makeRequest();if(this.destroyed){(n=this[R])===null||n===void 0?void 0:n.destroy();return}for(const e of this[G]){e()}this.requestInitialized=true}catch(e){if(e instanceof RequestError){this._beforeError(e);return}if(!this.destroyed){this.destroy(e)}}})(r)}static normalizeArguments(e,r,n){var i,a,u,l;const h=r;if(b.default.object(e)&&!b.default.urlInstance(e)){r={...n,...e,...r}}else{if(e&&r&&r.url){throw new TypeError("The `url` option is mutually exclusive with the `input` argument")}r={...n,...r};if(e){r.url=e}if(b.default.urlInstance(r.url)){r.url=new o.URL(r.url.toString())}}if(r.cache===false){r.cache=undefined}if(r.dnsCache===false){r.dnsCache=undefined}b.assert.any([b.default.string,b.default.undefined],r.method);b.assert.any([b.default.object,b.default.undefined],r.headers);b.assert.any([b.default.string,b.default.urlInstance,b.default.undefined],r.prefixUrl);b.assert.any([b.default.object,b.default.undefined],r.cookieJar);b.assert.any([b.default.object,b.default.string,b.default.undefined],r.searchParams);b.assert.any([b.default.object,b.default.string,b.default.undefined],r.cache);b.assert.any([b.default.object,b.default.number,b.default.undefined],r.timeout);b.assert.any([b.default.object,b.default.undefined],r.context);b.assert.any([b.default.object,b.default.undefined],r.hooks);b.assert.any([b.default.boolean,b.default.undefined],r.decompress);b.assert.any([b.default.boolean,b.default.undefined],r.ignoreInvalidCookies);b.assert.any([b.default.boolean,b.default.undefined],r.followRedirect);b.assert.any([b.default.number,b.default.undefined],r.maxRedirects);b.assert.any([b.default.boolean,b.default.undefined],r.throwHttpErrors);b.assert.any([b.default.boolean,b.default.undefined],r.http2);b.assert.any([b.default.boolean,b.default.undefined],r.allowGetBody);b.assert.any([b.default.boolean,b.default.undefined],r.rejectUnauthorized);if(b.default.string(r.method)){r.method=r.method.toUpperCase()}else{r.method="GET"}if(r.headers===(n===null||n===void 0?void 0:n.headers)){r.headers={...r.headers}}else{r.headers=g({...n===null||n===void 0?void 0:n.headers,...r.headers})}if("slashes"in r){throw new TypeError("The legacy `url.Url` has been deprecated. Use `URL` instead.")}if("auth"in r){throw new TypeError("Parameter `auth` is deprecated. Use `username` / `password` instead.")}if("searchParams"in r){if(r.searchParams&&r.searchParams!==(n===null||n===void 0?void 0:n.searchParams)){if(!b.default.string(r.searchParams)&&!(r.searchParams instanceof o.URLSearchParams)){validateSearchParameters(r.searchParams)}const e=new o.URLSearchParams(r.searchParams);(i=n===null||n===void 0?void 0:n.searchParams)===null||i===void 0?void 0:i.forEach(((t,r)=>{if(!e.has(r)){e.append(r,t)}}));r.searchParams=e}}r.username=(a=r.username)!==null&&a!==void 0?a:"";r.password=(u=r.password)!==null&&u!==void 0?u:"";if(r.prefixUrl){r.prefixUrl=r.prefixUrl.toString();if(r.prefixUrl!==""&&!r.prefixUrl.endsWith("/")){r.prefixUrl+="/"}}else{r.prefixUrl=""}if(b.default.string(r.url)){if(r.url.startsWith("/")){throw new Error("`input` must not start with a slash when using `prefixUrl`")}r.url=D.default(r.prefixUrl+r.url,r)}else if(b.default.undefined(r.url)&&r.prefixUrl!==""||r.protocol){r.url=D.default(r.prefixUrl,r)}if(r.url){let{prefixUrl:e}=r;Object.defineProperty(r,"prefixUrl",{set:t=>{const s=r.url;if(!s.href.startsWith(t)){throw new Error(`Cannot change \`prefixUrl\` from ${e} to ${t}: ${s.href}`)}r.url=new o.URL(t+s.href.slice(e.length));e=t},get:()=>e});let{protocol:t}=r.url;if(t==="unix:"){t="http:";r.url=new o.URL(`http://unix${r.url.pathname}${r.url.search}`)}if(r.searchParams){r.url.search=r.searchParams.toString()}if(r.url.search){const e="_GOT_INTERNAL_TRIGGER_NORMALIZATION";r.url.searchParams.append(e,"");r.url.searchParams.delete(e)}if(t!=="http:"&&t!=="https:"){throw new UnsupportedProtocolError(r)}if(r.username===""){r.username=r.url.username}else{r.url.username=r.username}if(r.password===""){r.password=r.url.password}else{r.url.password=r.password}}const{cookieJar:p}=r;if(p){let{setCookie:e,getCookieString:t}=p;b.assert.function_(e);b.assert.function_(t);if(e.length===4&&t.length===0){e=s.promisify(e.bind(r.cookieJar));t=s.promisify(t.bind(r.cookieJar));r.cookieJar={setCookie:e,getCookieString:t}}}const{cache:y}=r;if(y){if(!V.has(y)){V.set(y,new m(((e,t)=>e[R](e,t)),y))}}if(r.dnsCache===true){r.dnsCache=new d.default}else if(!b.default.undefined(r.dnsCache)&&!(r.dnsCache instanceof d.default)){throw new TypeError(`Parameter \`dnsCache\` must be a CacheableLookup instance or a boolean, got ${b.default(r.dnsCache)}`)}if(b.default.number(r.timeout)){r.timeout={request:r.timeout}}else if(n&&r.timeout!==n.timeout){r.timeout={...n.timeout,...r.timeout}}else{r.timeout={...r.timeout}}if(!r.context){r.context={}}const v=r.hooks===(n===null||n===void 0?void 0:n.hooks);r.hooks={...r.hooks};for(const e of t.knownHookEvents){if(e in r.hooks){if(b.default.array(r.hooks[e])){r.hooks[e]=[...r.hooks[e]]}else{throw new TypeError(`Parameter \`${e}\` must be an Array, got ${b.default(r.hooks[e])}`)}}else{r.hooks[e]=[]}}if(n&&!v){for(const e of t.knownHookEvents){const t=n.hooks[e];if(t.length!==0){r.hooks[e]=[...n.hooks[e],...r.hooks[e]]}}}if("followRedirects"in r){throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead.")}if(r.agent){for(const e in r.agent){if(e!=="http"&&e!=="https"&&e!=="http2"){throw new TypeError(`Expected the \`options.agent\` properties to be \`http\`, \`https\` or \`http2\`, got \`${e}\``)}}}r.maxRedirects=(l=r.maxRedirects)!==null&&l!==void 0?l:0;setNonEnumerableProperties([n,h],r);return r}_lockWrite(){const onLockedWrite=()=>{throw new TypeError("The payload has been already provided")};this.write=onLockedWrite;this.end=onLockedWrite}_unlockWrite(){this.write=super.write;this.end=super.end}async _finalizeBody(){const{options:e}=this;const{headers:r}=e;const s=!b.default.undefined(e.form);const i=!b.default.undefined(e.json);const a=!b.default.undefined(e.body);const u=s||i||a;const l=t.withoutBody.has(e.method)&&!(e.method==="GET"&&e.allowGetBody);this._cannotHaveBody=l;if(u){if(l){throw new TypeError(`The \`${e.method}\` method cannot be used with a body`)}if([a,s,i].filter((e=>e)).length>1){throw new TypeError("The `body`, `json` and `form` options are mutually exclusive")}if(a&&!(e.body instanceof n.Readable)&&!b.default.string(e.body)&&!b.default.buffer(e.body)&&!A.default(e.body)){throw new TypeError("The `body` option must be a stream.Readable, string or Buffer")}if(s&&!b.default.object(e.form)){throw new TypeError("The `form` option must be an Object")}{const t=!b.default.string(r["content-type"]);if(a){if(A.default(e.body)&&t){r["content-type"]=`multipart/form-data; boundary=${e.body.getBoundary()}`}this[U]=e.body}else if(s){if(t){r["content-type"]="application/x-www-form-urlencoded"}this[U]=new o.URLSearchParams(e.form).toString()}else{if(t){r["content-type"]="application/json"}this[U]=JSON.stringify(e.json)}const n=await w.default(this[U],e.headers);if(b.default.undefined(r["content-length"])&&b.default.undefined(r["transfer-encoding"])){if(!l&&!b.default.undefined(n)){r["content-length"]=String(n)}}}}else if(l){this._lockWrite()}else{this._unlockWrite()}this[P]=Number(r["content-length"])||undefined}async _onResponse(e){const{options:t}=this;const{url:r}=t;this[z]=e;if(t.decompress){e=p(e)}const s=e.statusCode;const n=e;n.statusMessage=n.statusMessage?n.statusMessage:a.STATUS_CODES[s];n.url=t.url.toString();n.requestUrl=this.requestUrl;n.redirectUrls=this.redirects;n.request=this;n.isFromCache=e.fromCache||false;n.ip=this.ip;this[I]=n.isFromCache;this[O]=Number(e.headers["content-length"])||undefined;this[k]=e;e.once("end",(()=>{this[O]=this[T];this.emit("downloadProgress",this.downloadProgress)}));e.once("error",(t=>{e.destroy();this._beforeError(new ReadError(t,this))}));e.once("aborted",(()=>{if(this.aborted){return}this._beforeError(new ReadError({name:"Error",message:"The server aborted the pending request"},this))}));this.emit("downloadProgress",this.downloadProgress);const i=e.headers["set-cookie"];if(b.default.object(t.cookieJar)&&i){let e=i.map((async e=>t.cookieJar.setCookie(e,r.toString())));if(t.ignoreInvalidCookies){e=e.map((async e=>e.catch((()=>{}))))}try{await Promise.all(e)}catch(e){this._beforeError(e);return}}if(t.followRedirect&&e.headers.location&&W.has(s)){e.resume();if(this[R]){this[N]();delete this[R];this[j]()}const i=s===303&&t.method!=="GET"&&t.method!=="HEAD";if(i||!t.methodRewriting){t.method="GET";if("body"in t){delete t.body}if("json"in t){delete t.json}if("form"in t){delete t.form}}if(this.redirects.length>=t.maxRedirects){this._beforeError(new MaxRedirectsError(this));return}try{const s=Buffer.from(e.headers.location,"binary").toString();const i=new o.URL(s,r);const a=i.toString();decodeURI(a);if(i.hostname!==r.hostname){if("host"in t.headers){delete t.headers.host}if("cookie"in t.headers){delete t.headers.cookie}if("authorization"in t.headers){delete t.headers.authorization}if(t.username||t.password){delete t.username;delete t.password}}this.redirects.push(a);t.url=i;for(const e of t.hooks.beforeRedirect){await e(t,n)}this.emit("redirect",n,t);await this._makeRequest()}catch(e){this._beforeError(e);return}return}const u=t.followRedirect?299:399;const l=s>=200&&s<=u||s===304;if(t.throwHttpErrors&&!l){await this._beforeError(new HTTPError(n));if(this.destroyed){return}}e.on("readable",(()=>{if(this[H]){this._read()}}));this.on("resume",(()=>{e.resume()}));this.on("pause",(()=>{e.pause()}));e.once("end",(()=>{this.push(null)}));this.emit("response",e);for(const r of this[B]){if(r.headersSent){continue}for(const s in e.headers){const n=t.decompress?s!=="content-encoding":true;const i=e.headers[s];if(n){r.setHeader(s,i)}}r.statusCode=s}}_onRequest(e){const{options:t}=this;const{timeout:r,url:s}=t;h.default(e);this[N]=S.default(e,r,s);const n=t.cache?"cacheableResponse":"response";e.once(n,(e=>{this._onResponse(e)}));e.once("error",(t=>{e.destroy();if(t instanceof S.TimeoutError){t=new TimeoutError(t,this.timings,this)}else{t=new RequestError(t.message,t,this)}this._beforeError(t)}));this[j]=_.default(e,this,Q);this[R]=e;this.emit("uploadProgress",this.uploadProgress);const i=this[U];const o=this.redirects.length===0?this:e;if(b.default.nodeStream(i)){i.pipe(o);i.once("error",(e=>{this._beforeError(new UploadError(e,this))}));i.once("end",(()=>{delete t.body}))}else{this._unlockWrite();if(!b.default.undefined(i)){this._writeRequest(i,null,(()=>{}));o.end();this._lockWrite()}else if(this._cannotHaveBody||this._noPipe){o.end();this._lockWrite()}}this.emit("request",e)}async _createCacheableRequest(e,t){return new Promise(((r,s)=>{Object.assign(t,C.default(e));delete t.url;const n=V.get(t.cache)(t,(e=>{const t=e;const{req:s}=t;if(s){s.emit("cacheableResponse",t)}r(t)}));t.url=e;n.once("error",s);n.once("request",r)}))}async _makeRequest(){var e;const{options:t}=this;const{url:r,headers:s,request:n,agent:i,timeout:o}=t;for(const e in s){if(b.default.undefined(s[e])){delete s[e]}else if(b.default.null_(s[e])){throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${e}\` header`)}}if(t.decompress&&b.default.undefined(s["accept-encoding"])){s["accept-encoding"]=q?"gzip, deflate, br":"gzip, deflate"}if(t.cookieJar){const e=await t.cookieJar.getCookieString(t.url.toString());if(b.default.nonEmptyString(e)){t.headers.cookie=e}}for(const e of t.hooks.beforeRequest){const r=await e(t);if(!b.default.undefined(r)){t.request=()=>r;break}}if(t.dnsCache&&!("lookup"in t)){t.lookup=t.dnsCache.lookup}if(r.hostname==="unix"){const e=/(?<socketPath>.+?):(?<path>.+)/.exec(`${r.pathname}${r.search}`);if(e===null||e===void 0?void 0:e.groups){const{socketPath:r,path:s}=e.groups;Object.assign(t,{socketPath:r,path:s,host:""})}}const u=r.protocol==="https:";let h;if(t.http2){h=y.auto}else{h=u?l.request:a.request}const p=(e=t.request)!==null&&e!==void 0?e:h;const d=t.cache?this._createCacheableRequest:p;if(i&&!t.http2){t.agent=i[u?"https":"http"]}t[R]=p;delete t.request;delete t.timeout;try{let e=await d(r,t);if(b.default.undefined(e)){e=h(r,t)}t.request=n;t.timeout=o;t.agent=i;if(isClientRequest(e)){this._onRequest(e)}else if(this.writable){this.once("finish",(()=>{this._onResponse(e)}));this._unlockWrite();this.end();this._lockWrite()}else{this._onResponse(e)}}catch(e){if(e instanceof m.CacheError){throw new CacheError(e,this)}throw new RequestError(e.message,e,this)}}async _beforeError(e){this[$]=true;if(!(e instanceof RequestError)){e=new RequestError(e.message,e,this)}try{const{response:t}=e;if(t){t.setEncoding(this._readableState.encoding);t.rawBody=await v.buffer(t);t.body=t.rawBody.toString()}}catch(e){}try{for(const t of this.options.hooks.beforeError){e=await t(e)}}catch(t){e=new RequestError(t.message,t,this)}if(!this.destroyed){this.destroy(e)}}_read(){this[H]=true;const e=this[k];if(e&&!this[$]){if(e.readableLength){this[H]=false}let t;while((t=e.read())!==null){this[T]+=t.length;this[L]=true;const e=this.downloadProgress;if(e.percent<1){this.emit("downloadProgress",e)}this.push(t)}}}_write(e,t,r){const write=()=>{this._writeRequest(e,t,r)};if(this.requestInitialized){write()}else{this[G].push(write)}}_writeRequest(e,t,r){this._progressCallbacks.push((()=>{this[M]+=Buffer.byteLength(e,t);const r=this.uploadProgress;if(r.percent<1){this.emit("uploadProgress",r)}}));this[R].write(e,t,(e=>{if(!e&&this._progressCallbacks.length!==0){this._progressCallbacks.shift()()}r(e)}))}_final(e){const endRequest=()=>{while(this._progressCallbacks.length!==0){this._progressCallbacks.shift()()}if(!(R in this)){e();return}this[R].end((t=>{if(!t){this[P]=this[M];this.emit("uploadProgress",this.uploadProgress);this[R].emit("upload-complete")}e(t)}))};if(this.requestInitialized){endRequest()}else{this[G].push(endRequest)}}_destroy(e,t){var r;if(R in this){this[N]();if(!((r=this[k])===null||r===void 0?void 0:r.complete)){this[R].destroy()}}if(e!==null&&!b.default.undefined(e)&&!(e instanceof RequestError)){e=new RequestError(e.message,e,this)}t(e)}get ip(){var e;return(e=this[R])===null||e===void 0?void 0:e.socket.remoteAddress}get aborted(){var e,t,r;return((t=(e=this[R])===null||e===void 0?void 0:e.destroyed)!==null&&t!==void 0?t:this.destroyed)&&!((r=this[z])===null||r===void 0?void 0:r.complete)}get socket(){var e;return(e=this[R])===null||e===void 0?void 0:e.socket}get downloadProgress(){let e;if(this[O]){e=this[T]/this[O]}else if(this[O]===this[T]){e=1}else{e=0}return{percent:e,transferred:this[T],total:this[O]}}get uploadProgress(){let e;if(this[P]){e=this[M]/this[P]}else if(this[P]===this[M]){e=1}else{e=0}return{percent:e,transferred:this[M],total:this[P]}}get timings(){var e;return(e=this[R])===null||e===void 0?void 0:e.timings}get isFromCache(){return this[I]}pipe(e,t){if(this[L]){throw new Error("Failed to pipe. The response has been emitted already.")}if(e instanceof u.ServerResponse){this[B].add(e)}return super.pipe(e,t)}unpipe(e){if(e instanceof u.ServerResponse){this[B].delete(e)}super.unpipe(e);return this}}t["default"]=Request},4564:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(7147);const n=r(3837);const i=r(7678);const o=r(40);const a=n.promisify(s.stat);t["default"]=async(e,t)=>{if(t&&"content-length"in t){return Number(t["content-length"])}if(!e){return 0}if(i.default.string(e)){return Buffer.byteLength(e)}if(i.default.buffer(e)){return e.length}if(o.default(e)){return n.promisify(e.getLength.bind(e))()}if(e instanceof s.ReadStream){const{size:t}=await a(e.path);return t}return undefined}},40:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(7678);t["default"]=e=>s.default.nodeStream(e)&&s.default.function_(e.getBoundary)},9219:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(7310);const n=["protocol","host","hostname","port","pathname","search"];t["default"]=(e,t)=>{var r,i;if(t.path){if(t.pathname){throw new TypeError("Parameters `path` and `pathname` are mutually exclusive.")}if(t.search){throw new TypeError("Parameters `path` and `search` are mutually exclusive.")}if(t.searchParams){throw new TypeError("Parameters `path` and `searchParams` are mutually exclusive.")}}if(t.search&&t.searchParams){throw new TypeError("Parameters `search` and `searchParams` are mutually exclusive.")}if(!e){if(!t.protocol){throw new TypeError("No URL protocol specified")}e=`${t.protocol}//${(i=(r=t.hostname)!==null&&r!==void 0?r:t.host)!==null&&i!==void 0?i:""}`}const o=new s.URL(e);if(t.path){const e=t.path.indexOf("?");if(e===-1){t.pathname=t.path}else{t.pathname=t.path.slice(0,e);t.search=t.path.slice(e+1)}delete t.path}for(const e of n){if(t[e]){o[e]=t[e].toString()}}return o}},3021:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function default_1(e,t,r){const s={};for(const n of r){s[n]=(...e)=>{t.emit(n,...e)};e.on(n,s[n])}return()=>{for(const t of r){e.off(t,s[t])}}}t["default"]=default_1},2454:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(1808);const n=r(1593);const i=Symbol("reentry");const noop=()=>{};class TimeoutError extends Error{constructor(e,t){super(`Timeout awaiting '${t}' for ${e}ms`);this.event=t;this.name="TimeoutError";this.code="ETIMEDOUT"}}t.TimeoutError=TimeoutError;t["default"]=(e,t,r)=>{if(i in e){return noop}e[i]=true;const o=[];const{once:a,unhandleAll:u}=n.default();const addTimeout=(e,t,r)=>{var s;const n=setTimeout(t,e,e,r);(s=n.unref)===null||s===void 0?void 0:s.call(n);const cancel=()=>{clearTimeout(n)};o.push(cancel);return cancel};const{host:l,hostname:h}=r;const timeoutHandler=(t,r)=>{e.destroy(new TimeoutError(t,r))};const cancelTimeouts=()=>{for(const e of o){e()}u()};e.once("error",(t=>{cancelTimeouts();if(e.listenerCount("error")===0){throw t}}));e.once("close",cancelTimeouts);a(e,"response",(e=>{a(e,"end",cancelTimeouts)}));if(typeof t.request!=="undefined"){addTimeout(t.request,timeoutHandler,"request")}if(typeof t.socket!=="undefined"){const socketTimeoutHandler=()=>{timeoutHandler(t.socket,"socket")};e.setTimeout(t.socket,socketTimeoutHandler);o.push((()=>{e.removeListener("timeout",socketTimeoutHandler)}))}a(e,"socket",(n=>{var i;const{socketPath:o}=e;if(n.connecting){const e=Boolean(o!==null&&o!==void 0?o:s.isIP((i=h!==null&&h!==void 0?h:l)!==null&&i!==void 0?i:"")!==0);if(typeof t.lookup!=="undefined"&&!e&&typeof n.address().address==="undefined"){const e=addTimeout(t.lookup,timeoutHandler,"lookup");a(n,"lookup",e)}if(typeof t.connect!=="undefined"){const timeConnect=()=>addTimeout(t.connect,timeoutHandler,"connect");if(e){a(n,"connect",timeConnect())}else{a(n,"lookup",(e=>{if(e===null){a(n,"connect",timeConnect())}}))}}if(typeof t.secureConnect!=="undefined"&&r.protocol==="https:"){a(n,"connect",(()=>{const e=addTimeout(t.secureConnect,timeoutHandler,"secureConnect");a(n,"secureConnect",e)}))}}if(typeof t.send!=="undefined"){const timeRequest=()=>addTimeout(t.send,timeoutHandler,"send");if(n.connecting){a(n,"connect",(()=>{a(e,"upload-complete",timeRequest())}))}else{a(e,"upload-complete",timeRequest())}}}));if(typeof t.response!=="undefined"){a(e,"upload-complete",(()=>{const r=addTimeout(t.response,timeoutHandler,"response");a(e,"response",r)}))}return cancelTimeouts}},1593:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=()=>{const e=[];return{once(t,r,s){t.once(r,s);e.push({origin:t,event:r,fn:s})},unhandleAll(){for(const t of e){const{origin:e,event:r,fn:s}=t;e.removeListener(r,s)}e.length=0}}}},8026:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(7678);t["default"]=e=>{e=e;const t={protocol:e.protocol,hostname:s.default.string(e.hostname)&&e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,host:e.host,hash:e.hash,search:e.search,pathname:e.pathname,href:e.href,path:`${e.pathname||""}${e.search||""}`};if(s.default.string(e.port)&&e.port.length!==0){t.port=Number(e.port)}if(e.username||e.password){t.auth=`${e.username||""}:${e.password||""}`}return t}},7288:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class WeakableMap{constructor(){this.weakMap=new WeakMap;this.map=new Map}set(e,t){if(typeof e==="object"){this.weakMap.set(e,t)}else{this.map.set(e,t)}}get(e){if(typeof e==="object"){return this.weakMap.get(e)}return this.map.get(e)}has(e){if(typeof e==="object"){return this.weakMap.has(e)}return this.map.has(e)}}t["default"]=WeakableMap},4337:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(9072);const n=r(7678);const i=r(6056);const o=r(6457);const a=r(94);const u=r(285);const l={RequestError:i.RequestError,CacheError:i.CacheError,ReadError:i.ReadError,HTTPError:i.HTTPError,MaxRedirectsError:i.MaxRedirectsError,TimeoutError:i.TimeoutError,ParseError:i.ParseError,CancelError:s.CancelError,UnsupportedProtocolError:i.UnsupportedProtocolError,UploadError:i.UploadError};const{normalizeArguments:h,mergeOptions:p}=i.PromisableRequest;const getPromiseOrStream=e=>e.isStream?new a.default(e.url,e):i.default(e);const isGotInstance=e=>"defaults"in e&&"options"in e.defaults;const d=["get","post","put","patch","head","delete"];t.defaultHandler=(e,t)=>t(e);const callInitHooks=(e,t)=>{if(e){for(const r of e){r(t)}}};const create=e=>{e._rawHandlers=e.handlers;e.handlers=e.handlers.map((e=>(t,r)=>{let s;const n=e(t,(e=>{s=r(e);return s}));if(n!==s&&!t.isStream&&s){const e=n;const{then:t,catch:r,finally:i}=e;Object.setPrototypeOf(e,Object.getPrototypeOf(s));Object.defineProperties(e,Object.getOwnPropertyDescriptors(s));e.then=t;e.catch=r;e.finally=i}return n}));const got=(t,r)=>{var s,u;let l=0;const iterateHandlers=t=>e.handlers[l++](t,l===e.handlers.length?getPromiseOrStream:iterateHandlers);if(n.default.plainObject(t)){r={...t,...r};t=undefined}try{let n;try{callInitHooks(e.options.hooks.init,r);callInitHooks((s=r===null||r===void 0?void 0:r.hooks)===null||s===void 0?void 0:s.init,r)}catch(e){n=e}const o=h(t,r,e.options);o[a.kIsNormalizedAlready]=true;if(n){throw new i.RequestError(n.message,n,o)}return iterateHandlers(o)}catch(t){if(r===null||r===void 0?void 0:r.isStream){throw t}else{return o.default(t,e.options.hooks.beforeError,(u=r===null||r===void 0?void 0:r.hooks)===null||u===void 0?void 0:u.beforeError)}}};got.extend=(...r)=>{const s=[e.options];let n=[...e._rawHandlers];let i;for(const e of r){if(isGotInstance(e)){s.push(e.defaults.options);n.push(...e.defaults._rawHandlers);i=e.defaults.mutableDefaults}else{s.push(e);if("handlers"in e){n.push(...e.handlers)}i=e.mutableDefaults}}n=n.filter((e=>e!==t.defaultHandler));if(n.length===0){n.push(t.defaultHandler)}return create({options:p(...s),handlers:n,mutableDefaults:Boolean(i)})};got.paginate=async function*(t,r){let s=h(t,r,e.options);s.resolveBodyOnly=false;const i=s.pagination;if(!n.default.object(i)){throw new TypeError("`options.pagination` must be implemented")}const o=[];let{countLimit:a}=i;let u=0;while(u<i.requestLimit){const e=await got("",s);const t=await i.transform(e);const r=[];for(const e of t){if(i.filter(e,o,r)){if(!i.shouldContinue(e,o,r)){return}yield e;if(i.stackAllItems){o.push(e)}r.push(e);if(--a<=0){return}}}const n=i.paginate(e,o,r);if(n===false){return}if(n===e.request.options){s=e.request.options}else if(n!==undefined){s=h(undefined,n,s)}u++}};got.paginate.all=async(e,t)=>{const r=[];for await(const s of got.paginate(e,t)){r.push(s)}return r};got.stream=(e,t)=>got(e,{...t,isStream:true});for(const e of d){got[e]=(t,r)=>got(t,{...r,method:e});got.stream[e]=(t,r)=>got(t,{...r,method:e,isStream:true})}Object.assign(got,{...l,mergeOptions:p});Object.defineProperty(got,"defaults",{value:e.mutableDefaults?e:u.default(e),writable:e.mutableDefaults,configurable:e.mutableDefaults,enumerable:true});return got};t["default"]=create},3061:(e,t,r)=>{"use strict";function __export(e){for(var r in e)if(!t.hasOwnProperty(r))t[r]=e[r]}Object.defineProperty(t,"__esModule",{value:true});const s=r(7310);const n=r(4337);const i={options:{method:"GET",retry:{limit:2,methods:["GET","PUT","HEAD","DELETE","OPTIONS","TRACE"],statusCodes:[408,413,429,500,502,503,504,521,522,524],errorCodes:["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"],maxRetryAfter:undefined,calculateDelay:({computedValue:e})=>e},timeout:{},headers:{"user-agent":"got (https://github.com/sindresorhus/got)"},hooks:{init:[],beforeRequest:[],beforeRedirect:[],beforeRetry:[],beforeError:[],afterResponse:[]},cache:undefined,dnsCache:undefined,decompress:true,throwHttpErrors:true,followRedirect:true,isStream:false,responseType:"text",resolveBodyOnly:false,maxRedirects:10,prefixUrl:"",methodRewriting:true,ignoreInvalidCookies:false,context:{},http2:false,allowGetBody:false,rejectUnauthorized:true,pagination:{transform:e=>{if(e.request.options.responseType==="json"){return e.body}return JSON.parse(e.body)},paginate:e=>{if(!Reflect.has(e.headers,"link")){return false}const t=e.headers.link.split(",");let r;for(const e of t){const t=e.split(";");if(t[1].includes("next")){r=t[0].trimStart().trim();r=r.slice(1,-1);break}}if(r){const e={url:new s.URL(r)};return e}return false},filter:()=>true,shouldContinue:()=>true,countLimit:Infinity,requestLimit:1e4,stackAllItems:true}},handlers:[n.defaultHandler],mutableDefaults:false};const o=n.default(i);t["default"]=o;e.exports=o;e.exports["default"]=o;__export(r(4337));__export(r(6056))},285:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(7678);function deepFreeze(e){for(const t of Object.values(e)){if(s.default.plainObject(t)||s.default.array(t)){deepFreeze(t)}}return Object.freeze(e)}t["default"]=deepFreeze},7356:e=>{"use strict";e.exports=clone;function clone(e){if(e===null||typeof e!=="object")return e;if(e instanceof Object)var t={__proto__:e.__proto__};else var t=Object.create(null);Object.getOwnPropertyNames(e).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}));return t}},7758:(e,t,r)=>{var s=r(7147);var n=r(263);var i=r(3086);var o=r(7356);var a=r(3837);var u;var l;if(typeof Symbol==="function"&&typeof Symbol.for==="function"){u=Symbol.for("graceful-fs.queue");l=Symbol.for("graceful-fs.previous")}else{u="___graceful-fs.queue";l="___graceful-fs.previous"}function noop(){}function publishQueue(e,t){Object.defineProperty(e,u,{get:function(){return t}})}var h=noop;if(a.debuglog)h=a.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))h=function(){var e=a.format.apply(a,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: ");console.error(e)};if(!s[u]){var p=global[u]||[];publishQueue(s,p);s.close=function(e){function close(t,r){return e.call(s,t,(function(e){if(!e){retry()}if(typeof r==="function")r.apply(this,arguments)}))}Object.defineProperty(close,l,{value:e});return close}(s.close);s.closeSync=function(e){function closeSync(t){e.apply(s,arguments);retry()}Object.defineProperty(closeSync,l,{value:e});return closeSync}(s.closeSync);if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",(function(){h(s[u]);r(9491).equal(s[u].length,0)}))}}if(!global[u]){publishQueue(global,s[u])}e.exports=patch(o(s));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!s.__patched){e.exports=patch(s);s.__patched=true}function patch(e){n(e);e.gracefulify=patch;e.createReadStream=createReadStream;e.createWriteStream=createWriteStream;var t=e.readFile;e.readFile=readFile;function readFile(e,r,s){if(typeof r==="function")s=r,r=null;return go$readFile(e,r,s);function go$readFile(e,r,s){return t(e,r,(function(t){if(t&&(t.code==="EMFILE"||t.code==="ENFILE"))enqueue([go$readFile,[e,r,s]]);else{if(typeof s==="function")s.apply(this,arguments);retry()}}))}}var r=e.writeFile;e.writeFile=writeFile;function writeFile(e,t,s,n){if(typeof s==="function")n=s,s=null;return go$writeFile(e,t,s,n);function go$writeFile(e,t,s,n){return r(e,t,s,(function(r){if(r&&(r.code==="EMFILE"||r.code==="ENFILE"))enqueue([go$writeFile,[e,t,s,n]]);else{if(typeof n==="function")n.apply(this,arguments);retry()}}))}}var s=e.appendFile;if(s)e.appendFile=appendFile;function appendFile(e,t,r,n){if(typeof r==="function")n=r,r=null;return go$appendFile(e,t,r,n);function go$appendFile(e,t,r,n){return s(e,t,r,(function(s){if(s&&(s.code==="EMFILE"||s.code==="ENFILE"))enqueue([go$appendFile,[e,t,r,n]]);else{if(typeof n==="function")n.apply(this,arguments);retry()}}))}}var o=e.readdir;e.readdir=readdir;function readdir(e,t,r){var s=[e];if(typeof t!=="function"){s.push(t)}else{r=t}s.push(go$readdir$cb);return go$readdir(s);function go$readdir$cb(e,t){if(t&&t.sort)t.sort();if(e&&(e.code==="EMFILE"||e.code==="ENFILE"))enqueue([go$readdir,[s]]);else{if(typeof r==="function")r.apply(this,arguments);retry()}}}function go$readdir(t){return o.apply(e,t)}if(process.version.substr(0,4)==="v0.8"){var a=i(e);ReadStream=a.ReadStream;WriteStream=a.WriteStream}var u=e.ReadStream;if(u){ReadStream.prototype=Object.create(u.prototype);ReadStream.prototype.open=ReadStream$open}var l=e.WriteStream;if(l){WriteStream.prototype=Object.create(l.prototype);WriteStream.prototype.open=WriteStream$open}Object.defineProperty(e,"ReadStream",{get:function(){return ReadStream},set:function(e){ReadStream=e},enumerable:true,configurable:true});Object.defineProperty(e,"WriteStream",{get:function(){return WriteStream},set:function(e){WriteStream=e},enumerable:true,configurable:true});var h=ReadStream;Object.defineProperty(e,"FileReadStream",{get:function(){return h},set:function(e){h=e},enumerable:true,configurable:true});var p=WriteStream;Object.defineProperty(e,"FileWriteStream",{get:function(){return p},set:function(e){p=e},enumerable:true,configurable:true});function ReadStream(e,t){if(this instanceof ReadStream)return u.apply(this,arguments),this;else return ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var e=this;open(e.path,e.flags,e.mode,(function(t,r){if(t){if(e.autoClose)e.destroy();e.emit("error",t)}else{e.fd=r;e.emit("open",r);e.read()}}))}function WriteStream(e,t){if(this instanceof WriteStream)return l.apply(this,arguments),this;else return WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var e=this;open(e.path,e.flags,e.mode,(function(t,r){if(t){e.destroy();e.emit("error",t)}else{e.fd=r;e.emit("open",r)}}))}function createReadStream(t,r){return new e.ReadStream(t,r)}function createWriteStream(t,r){return new e.WriteStream(t,r)}var d=e.open;e.open=open;function open(e,t,r,s){if(typeof r==="function")s=r,r=null;return go$open(e,t,r,s);function go$open(e,t,r,s){return d(e,t,r,(function(n,i){if(n&&(n.code==="EMFILE"||n.code==="ENFILE"))enqueue([go$open,[e,t,r,s]]);else{if(typeof s==="function")s.apply(this,arguments);retry()}}))}}return e}function enqueue(e){h("ENQUEUE",e[0].name,e[1]);s[u].push(e)}function retry(){var e=s[u].shift();if(e){h("RETRY",e[0].name,e[1]);e[0].apply(null,e[1])}}},3086:(e,t,r)=>{var s=r(2781).Stream;e.exports=legacy;function legacy(e){return{ReadStream:ReadStream,WriteStream:WriteStream};function ReadStream(t,r){if(!(this instanceof ReadStream))return new ReadStream(t,r);s.call(this);var n=this;this.path=t;this.fd=null;this.readable=true;this.paused=false;this.flags="r";this.mode=438;this.bufferSize=64*1024;r=r||{};var i=Object.keys(r);for(var o=0,a=i.length;o<a;o++){var u=i[o];this[u]=r[u]}if(this.encoding)this.setEncoding(this.encoding);if(this.start!==undefined){if("number"!==typeof this.start){throw TypeError("start must be a Number")}if(this.end===undefined){this.end=Infinity}else if("number"!==typeof this.end){throw TypeError("end must be a Number")}if(this.start>this.end){throw new Error("start must be <= end")}this.pos=this.start}if(this.fd!==null){process.nextTick((function(){n._read()}));return}e.open(this.path,this.flags,this.mode,(function(e,t){if(e){n.emit("error",e);n.readable=false;return}n.fd=t;n.emit("open",t);n._read()}))}function WriteStream(t,r){if(!(this instanceof WriteStream))return new WriteStream(t,r);s.call(this);this.path=t;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;r=r||{};var n=Object.keys(r);for(var i=0,o=n.length;i<o;i++){var a=n[i];this[a]=r[a]}if(this.start!==undefined){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=false;this._queue=[];if(this.fd===null){this._open=e.open;this._queue.push([this._open,this.path,this.flags,this.mode,undefined]);this.flush()}}}},263:(e,t,r)=>{var s=r(2057);var n=process.cwd;var i=null;var o=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!i)i=n.call(process);return i};try{process.cwd()}catch(e){}var a=process.chdir;process.chdir=function(e){i=null;a.call(process,e)};e.exports=patch;function patch(e){if(s.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)){patchLchmod(e)}if(!e.lutimes){patchLutimes(e)}e.chown=chownFix(e.chown);e.fchown=chownFix(e.fchown);e.lchown=chownFix(e.lchown);e.chmod=chmodFix(e.chmod);e.fchmod=chmodFix(e.fchmod);e.lchmod=chmodFix(e.lchmod);e.chownSync=chownFixSync(e.chownSync);e.fchownSync=chownFixSync(e.fchownSync);e.lchownSync=chownFixSync(e.lchownSync);e.chmodSync=chmodFixSync(e.chmodSync);e.fchmodSync=chmodFixSync(e.fchmodSync);e.lchmodSync=chmodFixSync(e.lchmodSync);e.stat=statFix(e.stat);e.fstat=statFix(e.fstat);e.lstat=statFix(e.lstat);e.statSync=statFixSync(e.statSync);e.fstatSync=statFixSync(e.fstatSync);e.lstatSync=statFixSync(e.lstatSync);if(!e.lchmod){e.lchmod=function(e,t,r){if(r)process.nextTick(r)};e.lchmodSync=function(){}}if(!e.lchown){e.lchown=function(e,t,r,s){if(s)process.nextTick(s)};e.lchownSync=function(){}}if(o==="win32"){e.rename=function(t){return function(r,s,n){var i=Date.now();var o=0;t(r,s,(function CB(a){if(a&&(a.code==="EACCES"||a.code==="EPERM")&&Date.now()-i<6e4){setTimeout((function(){e.stat(s,(function(e,i){if(e&&e.code==="ENOENT")t(r,s,CB);else n(a)}))}),o);if(o<100)o+=10;return}if(n)n(a)}))}}(e.rename)}e.read=function(t){function read(r,s,n,i,o,a){var u;if(a&&typeof a==="function"){var l=0;u=function(h,p,d){if(h&&h.code==="EAGAIN"&&l<10){l++;return t.call(e,r,s,n,i,o,u)}a.apply(this,arguments)}}return t.call(e,r,s,n,i,o,u)}read.__proto__=t;return read}(e.read);e.readSync=function(t){return function(r,s,n,i,o){var a=0;while(true){try{return t.call(e,r,s,n,i,o)}catch(e){if(e.code==="EAGAIN"&&a<10){a++;continue}throw e}}}}(e.readSync);function patchLchmod(e){e.lchmod=function(t,r,n){e.open(t,s.O_WRONLY|s.O_SYMLINK,r,(function(t,s){if(t){if(n)n(t);return}e.fchmod(s,r,(function(t){e.close(s,(function(e){if(n)n(t||e)}))}))}))};e.lchmodSync=function(t,r){var n=e.openSync(t,s.O_WRONLY|s.O_SYMLINK,r);var i=true;var o;try{o=e.fchmodSync(n,r);i=false}finally{if(i){try{e.closeSync(n)}catch(e){}}else{e.closeSync(n)}}return o}}function patchLutimes(e){if(s.hasOwnProperty("O_SYMLINK")){e.lutimes=function(t,r,n,i){e.open(t,s.O_SYMLINK,(function(t,s){if(t){if(i)i(t);return}e.futimes(s,r,n,(function(t){e.close(s,(function(e){if(i)i(t||e)}))}))}))};e.lutimesSync=function(t,r,n){var i=e.openSync(t,s.O_SYMLINK);var o;var a=true;try{o=e.futimesSync(i,r,n);a=false}finally{if(a){try{e.closeSync(i)}catch(e){}}else{e.closeSync(i)}}return o}}else{e.lutimes=function(e,t,r,s){if(s)process.nextTick(s)};e.lutimesSync=function(){}}}function chmodFix(t){if(!t)return t;return function(r,s,n){return t.call(e,r,s,(function(e){if(chownErOk(e))e=null;if(n)n.apply(this,arguments)}))}}function chmodFixSync(t){if(!t)return t;return function(r,s){try{return t.call(e,r,s)}catch(e){if(!chownErOk(e))throw e}}}function chownFix(t){if(!t)return t;return function(r,s,n,i){return t.call(e,r,s,n,(function(e){if(chownErOk(e))e=null;if(i)i.apply(this,arguments)}))}}function chownFixSync(t){if(!t)return t;return function(r,s,n){try{return t.call(e,r,s,n)}catch(e){if(!chownErOk(e))throw e}}}function statFix(t){if(!t)return t;return function(r,s,n){if(typeof s==="function"){n=s;s=null}function callback(e,t){if(t){if(t.uid<0)t.uid+=4294967296;if(t.gid<0)t.gid+=4294967296}if(n)n.apply(this,arguments)}return s?t.call(e,r,s,callback):t.call(e,r,callback)}}function statFixSync(t){if(!t)return t;return function(r,s){var n=s?t.call(e,r,s):t.call(e,r);if(n.uid<0)n.uid+=4294967296;if(n.gid<0)n.gid+=4294967296;return n}}function chownErOk(e){if(!e)return true;if(e.code==="ENOSYS")return true;var t=!process.getuid||process.getuid()!==0;if(t){if(e.code==="EINVAL"||e.code==="EPERM")return true}return false}}},1621:e=>{"use strict";e.exports=(e,t=process.argv)=>{const r=e.startsWith("-")?"":e.length===1?"-":"--";const s=t.indexOf(r+e);const n=t.indexOf("--");return s!==-1&&(n===-1||s<n)}},135:e=>{"use strict";var t=e.exports={github:{protocols:["git","http","git+ssh","git+https","ssh","https"],domain:"github.com",treepath:"tree",filetemplate:"https://{auth@}raw.githubusercontent.com/{user}/{project}/{committish}/{path}",bugstemplate:"https://{domain}/{user}/{project}/issues",gittemplate:"git://{auth@}{domain}/{user}/{project}.git{#committish}",tarballtemplate:"https://codeload.{domain}/{user}/{project}/tar.gz/{committish}"},bitbucket:{protocols:["git+ssh","git+https","ssh","https"],domain:"bitbucket.org",treepath:"src",tarballtemplate:"https://{domain}/{user}/{project}/get/{committish}.tar.gz"},gitlab:{protocols:["git+ssh","git+https","ssh","https"],domain:"gitlab.com",treepath:"tree",bugstemplate:"https://{domain}/{user}/{project}/issues",httpstemplate:"git+https://{auth@}{domain}/{user}/{projectPath}.git{#committish}",tarballtemplate:"https://{domain}/{user}/{project}/repository/archive.tar.gz?ref={committish}",pathmatch:/^[/]([^/]+)[/]((?!.*(\/-\/|\/repository\/archive\.tar\.gz\?=.*|\/repository\/[^/]+\/archive.tar.gz$)).*?)(?:[.]git|[/])?$/},gist:{protocols:["git","git+ssh","git+https","ssh","https"],domain:"gist.github.com",pathmatch:/^[/](?:([^/]+)[/])?([a-z0-9]{32,})(?:[.]git)?$/,filetemplate:"https://gist.githubusercontent.com/{user}/{project}/raw{/committish}/{path}",bugstemplate:"https://{domain}/{project}",gittemplate:"git://{domain}/{project}.git{#committish}",sshtemplate:"git@{domain}:/{project}.git{#committish}",sshurltemplate:"git+ssh://git@{domain}/{project}.git{#committish}",browsetemplate:"https://{domain}/{project}{/committish}",browsefiletemplate:"https://{domain}/{project}{/committish}{#path}",docstemplate:"https://{domain}/{project}{/committish}",httpstemplate:"git+https://{domain}/{project}.git{#committish}",shortcuttemplate:"{type}:{project}{#committish}",pathtemplate:"{project}{#committish}",tarballtemplate:"https://codeload.github.com/gist/{project}/tar.gz/{committish}",hashformat:function(e){return"file-"+formatHashFragment(e)}}};var r={sshtemplate:"git@{domain}:{user}/{project}.git{#committish}",sshurltemplate:"git+ssh://git@{domain}/{user}/{project}.git{#committish}",browsetemplate:"https://{domain}/{user}/{project}{/tree/committish}",browsefiletemplate:"https://{domain}/{user}/{project}/{treepath}/{committish}/{path}{#fragment}",docstemplate:"https://{domain}/{user}/{project}{/tree/committish}#readme",httpstemplate:"git+https://{auth@}{domain}/{user}/{project}.git{#committish}",filetemplate:"https://{domain}/{user}/{project}/raw/{committish}/{path}",shortcuttemplate:"{type}:{user}/{project}{#committish}",pathtemplate:"{user}/{project}{#committish}",pathmatch:/^[/]([^/]+)[/]([^/]+?)(?:[.]git|[/])?$/,hashformat:formatHashFragment};Object.keys(t).forEach((function(e){Object.keys(r).forEach((function(s){if(t[e][s])return;t[e][s]=r[s]}));t[e].protocols_re=RegExp("^("+t[e].protocols.map((function(e){return e.replace(/([\\+*{}()[\]$^|])/g,"\\$1")})).join("|")+"):$")}));function formatHashFragment(e){return e.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-")}},8145:(e,t,r)=>{"use strict";var s=r(135);var n=Object.assign||function _extend(e,t){if(t===null||typeof t!=="object")return e;const r=Object.keys(t);let s=r.length;while(s--){e[r[s]]=t[r[s]]}return e};e.exports=GitHost;function GitHost(e,t,r,n,i,o,a){var u=this;u.type=e;Object.keys(s[e]).forEach((function(t){u[t]=s[e][t]}));u.user=t;u.auth=r;u.project=n;u.committish=i;u.default=o;u.opts=a||{}}GitHost.prototype.hash=function(){return this.committish?"#"+this.committish:""};GitHost.prototype._fill=function(e,t){if(!e)return;var r=n({},t);r.path=r.path?r.path.replace(/^[/]+/g,""):"";t=n(n({},this.opts),t);var s=this;Object.keys(this).forEach((function(e){if(s[e]!=null&&r[e]==null)r[e]=s[e]}));var i=r.auth;var o=r.committish;var a=r.fragment;var u=r.path;var l=r.project;Object.keys(r).forEach((function(e){var t=r[e];if((e==="path"||e==="project")&&typeof t==="string"){r[e]=t.split("/").map((function(e){return encodeURIComponent(e)})).join("/")}else if(e!=="domain"){r[e]=encodeURIComponent(t)}}));r["auth@"]=i?i+"@":"";r["#fragment"]=a?"#"+this.hashformat(a):"";r.fragment=r.fragment?r.fragment:"";r["#path"]=u?"#"+this.hashformat(u):"";r["/path"]=r.path?"/"+r.path:"";r.projectPath=l.split("/").map(encodeURIComponent).join("/");if(t.noCommittish){r["#committish"]="";r["/tree/committish"]="";r["/committish"]="";r.committish=""}else{r["#committish"]=o?"#"+o:"";r["/tree/committish"]=r.committish?"/"+r.treepath+"/"+r.committish:"";r["/committish"]=r.committish?"/"+r.committish:"";r.committish=r.committish||"master"}var h=e;Object.keys(r).forEach((function(e){h=h.replace(new RegExp("[{]"+e+"[}]","g"),r[e])}));if(t.noGitPlus){return h.replace(/^git[+]/,"")}else{return h}};GitHost.prototype.ssh=function(e){return this._fill(this.sshtemplate,e)};GitHost.prototype.sshurl=function(e){return this._fill(this.sshurltemplate,e)};GitHost.prototype.browse=function(e,t,r){if(typeof e==="string"){if(typeof t!=="string"){r=t;t=null}return this._fill(this.browsefiletemplate,n({fragment:t,path:e},r))}else{return this._fill(this.browsetemplate,e)}};GitHost.prototype.docs=function(e){return this._fill(this.docstemplate,e)};GitHost.prototype.bugs=function(e){return this._fill(this.bugstemplate,e)};GitHost.prototype.https=function(e){return this._fill(this.httpstemplate,e)};GitHost.prototype.git=function(e){return this._fill(this.gittemplate,e)};GitHost.prototype.shortcut=function(e){return this._fill(this.shortcuttemplate,e)};GitHost.prototype.path=function(e){return this._fill(this.pathtemplate,e)};GitHost.prototype.tarball=function(e){var t=n({},e,{noCommittish:false});return this._fill(this.tarballtemplate,t)};GitHost.prototype.file=function(e,t){return this._fill(this.filetemplate,n({path:e},t))};GitHost.prototype.getDefaultRepresentation=function(){return this.default};GitHost.prototype.toString=function(e){if(this.default&&typeof this[this.default]==="function")return this[this.default](e);return this.sshurl(e)}},8869:(e,t,r)=>{"use strict";var s=r(7310);var n=r(135);var i=e.exports=r(8145);var o=r(7129);var a=new o({max:1e3});var u={"git+ssh:":"sshurl","git+https:":"https","ssh:":"sshurl","git:":"git"};function protocolToRepresentation(e){return u[e]||e.slice(0,-1)}var l={"git:":true,"https:":true,"git+https:":true,"http:":true,"git+http:":true};e.exports.fromUrl=function(e,t){if(typeof e!=="string")return;var r=e+JSON.stringify(t||{});if(!a.has(r)){a.set(r,fromUrl(e,t))}return a.get(r)};function fromUrl(e,t){if(e==null||e==="")return;var r=fixupUnqualifiedGist(isGitHubShorthand(e)?"github:"+e:e);var s=parseGitUrl(r);var o=r.match(new RegExp("^([^:]+):(?:(?:[^@:]+(?:[^@]+)?@)?([^/]*))[/](.+?)(?:[.]git)?($|#)"));var a=Object.keys(n).map((function(e){try{var r=n[e];var a=null;if(s.auth&&l[s.protocol]){a=s.auth}var u=s.hash?decodeURIComponent(s.hash.substr(1)):null;var h=null;var p=null;var d=null;if(o&&o[1]===e){h=o[2]&&decodeURIComponent(o[2]);p=decodeURIComponent(o[3]);d="shortcut"}else{if(s.host&&s.host!==r.domain&&s.host.replace(/^www[.]/,"")!==r.domain)return;if(!r.protocols_re.test(s.protocol))return;if(!s.path)return;var m=r.pathmatch;var y=s.path.match(m);if(!y)return;if(y[1]!==null&&y[1]!==undefined){h=decodeURIComponent(y[1].replace(/^:/,""))}p=decodeURIComponent(y[2]);d=protocolToRepresentation(s.protocol)}return new i(e,h,a,p,u,d,t)}catch(e){if(e instanceof URIError){}else throw e}})).filter((function(e){return e}));if(a.length!==1)return;return a[0]}function isGitHubShorthand(e){return/^[^:@%/\s.-][^:@%/\s]*[/][^:@\s/%]+(?:#.*)?$/.test(e)}function fixupUnqualifiedGist(e){var t=s.parse(e);if(t.protocol==="gist:"&&t.host&&!t.path){return t.protocol+"/"+t.host}else{return e}}function parseGitUrl(e){var t=e.match(/^([^@]+)@([^:/]+):[/]?((?:[^/]+[/])?[^/]+?)(?:[.]git)?(#.*)?$/);if(!t){var r=s.parse(e);if(r.auth){const t=e.match(/[^@]+@[^:/]+/);if(t){var n=new s.URL(t[0]);r.auth=n.username||"";if(n.password)r.auth+=":"+n.password}}return r}return{protocol:"git+ssh:",slashes:true,auth:t[1],host:t[2],port:null,hostname:t[2],hash:t[4],search:null,query:null,pathname:"/"+t[3],path:"/"+t[3],href:"git+ssh://"+t[1]+"@"+t[2]+"/"+t[3]+(t[4]||"")}}},1002:e=>{"use strict";const t=new Set([200,203,204,206,300,301,404,405,410,414,501]);const r=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]);const s=new Set([500,502,503,504]);const n={date:true,connection:true,"keep-alive":true,"proxy-authenticate":true,"proxy-authorization":true,te:true,trailer:true,"transfer-encoding":true,upgrade:true};const i={"content-length":true,"content-encoding":true,"transfer-encoding":true,"content-range":true};function toNumberOrZero(e){const t=parseInt(e,10);return isFinite(t)?t:0}function isErrorResponse(e){if(!e){return true}return s.has(e.status)}function parseCacheControl(e){const t={};if(!e)return t;const r=e.trim().split(/\s*,\s*/);for(const e of r){const[r,s]=e.split(/\s*=\s*/,2);t[r]=s===undefined?true:s.replace(/^"|"$/g,"")}return t}function formatCacheControl(e){let t=[];for(const r in e){const s=e[r];t.push(s===true?r:r+"="+s)}if(!t.length){return undefined}return t.join(", ")}e.exports=class CachePolicy{constructor(e,t,{shared:r,cacheHeuristic:s,immutableMinTimeToLive:n,ignoreCargoCult:i,_fromObject:o}={}){if(o){this._fromObject(o);return}if(!t||!t.headers){throw Error("Response headers missing")}this._assertRequestHasHeaders(e);this._responseTime=this.now();this._isShared=r!==false;this._cacheHeuristic=undefined!==s?s:.1;this._immutableMinTtl=undefined!==n?n:24*3600*1e3;this._status="status"in t?t.status:200;this._resHeaders=t.headers;this._rescc=parseCacheControl(t.headers["cache-control"]);this._method="method"in e?e.method:"GET";this._url=e.url;this._host=e.headers.host;this._noAuthorization=!e.headers.authorization;this._reqHeaders=t.headers.vary?e.headers:null;this._reqcc=parseCacheControl(e.headers["cache-control"]);if(i&&"pre-check"in this._rescc&&"post-check"in this._rescc){delete this._rescc["pre-check"];delete this._rescc["post-check"];delete this._rescc["no-cache"];delete this._rescc["no-store"];delete this._rescc["must-revalidate"];this._resHeaders=Object.assign({},this._resHeaders,{"cache-control":formatCacheControl(this._rescc)});delete this._resHeaders.expires;delete this._resHeaders.pragma}if(t.headers["cache-control"]==null&&/no-cache/.test(t.headers.pragma)){this._rescc["no-cache"]=true}}now(){return Date.now()}storable(){return!!(!this._reqcc["no-store"]&&("GET"===this._method||"HEAD"===this._method||"POST"===this._method&&this._hasExplicitExpiration())&&r.has(this._status)&&!this._rescc["no-store"]&&(!this._isShared||!this._rescc.private)&&(!this._isShared||this._noAuthorization||this._allowsStoringAuthenticated())&&(this._resHeaders.expires||this._rescc["max-age"]||this._isShared&&this._rescc["s-maxage"]||this._rescc.public||t.has(this._status)))}_hasExplicitExpiration(){return this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires}_assertRequestHasHeaders(e){if(!e||!e.headers){throw Error("Request headers missing")}}satisfiesWithoutRevalidation(e){this._assertRequestHasHeaders(e);const t=parseCacheControl(e.headers["cache-control"]);if(t["no-cache"]||/no-cache/.test(e.headers.pragma)){return false}if(t["max-age"]&&this.age()>t["max-age"]){return false}if(t["min-fresh"]&&this.timeToLive()<1e3*t["min-fresh"]){return false}if(this.stale()){const e=t["max-stale"]&&!this._rescc["must-revalidate"]&&(true===t["max-stale"]||t["max-stale"]>this.age()-this.maxAge());if(!e){return false}}return this._requestMatches(e,false)}_requestMatches(e,t){return(!this._url||this._url===e.url)&&this._host===e.headers.host&&(!e.method||this._method===e.method||t&&"HEAD"===e.method)&&this._varyMatches(e)}_allowsStoringAuthenticated(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]}_varyMatches(e){if(!this._resHeaders.vary){return true}if(this._resHeaders.vary==="*"){return false}const t=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/);for(const r of t){if(e.headers[r]!==this._reqHeaders[r])return false}return true}_copyWithoutHopByHopHeaders(e){const t={};for(const r in e){if(n[r])continue;t[r]=e[r]}if(e.connection){const r=e.connection.trim().split(/\s*,\s*/);for(const e of r){delete t[e]}}if(t.warning){const e=t.warning.split(/,/).filter((e=>!/^\s*1[0-9][0-9]/.test(e)));if(!e.length){delete t.warning}else{t.warning=e.join(",").trim()}}return t}responseHeaders(){const e=this._copyWithoutHopByHopHeaders(this._resHeaders);const t=this.age();if(t>3600*24&&!this._hasExplicitExpiration()&&this.maxAge()>3600*24){e.warning=(e.warning?`${e.warning}, `:"")+'113 - "rfc7234 5.5.4"'}e.age=`${Math.round(t)}`;e.date=new Date(this.now()).toUTCString();return e}date(){const e=Date.parse(this._resHeaders.date);if(isFinite(e)){return e}return this._responseTime}age(){let e=this._ageValue();const t=(this.now()-this._responseTime)/1e3;return e+t}_ageValue(){return toNumberOrZero(this._resHeaders.age)}maxAge(){if(!this.storable()||this._rescc["no-cache"]){return 0}if(this._isShared&&(this._resHeaders["set-cookie"]&&!this._rescc.public&&!this._rescc.immutable)){return 0}if(this._resHeaders.vary==="*"){return 0}if(this._isShared){if(this._rescc["proxy-revalidate"]){return 0}if(this._rescc["s-maxage"]){return toNumberOrZero(this._rescc["s-maxage"])}}if(this._rescc["max-age"]){return toNumberOrZero(this._rescc["max-age"])}const e=this._rescc.immutable?this._immutableMinTtl:0;const t=this.date();if(this._resHeaders.expires){const r=Date.parse(this._resHeaders.expires);if(Number.isNaN(r)||r<t){return 0}return Math.max(e,(r-t)/1e3)}if(this._resHeaders["last-modified"]){const r=Date.parse(this._resHeaders["last-modified"]);if(isFinite(r)&&t>r){return Math.max(e,(t-r)/1e3*this._cacheHeuristic)}}return e}timeToLive(){const e=this.maxAge()-this.age();const t=e+toNumberOrZero(this._rescc["stale-if-error"]);const r=e+toNumberOrZero(this._rescc["stale-while-revalidate"]);return Math.max(0,e,t,r)*1e3}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+toNumberOrZero(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){return this.maxAge()+toNumberOrZero(this._rescc["stale-while-revalidate"])>this.age()}static fromObject(e){return new this(undefined,undefined,{_fromObject:e})}_fromObject(e){if(this._responseTime)throw Error("Reinitialized");if(!e||e.v!==1)throw Error("Invalid serialization");this._responseTime=e.t;this._isShared=e.sh;this._cacheHeuristic=e.ch;this._immutableMinTtl=e.imm!==undefined?e.imm:24*3600*1e3;this._status=e.st;this._resHeaders=e.resh;this._rescc=e.rescc;this._method=e.m;this._url=e.u;this._host=e.h;this._noAuthorization=e.a;this._reqHeaders=e.reqh;this._reqcc=e.reqcc}toObject(){return{v:1,t:this._responseTime,sh:this._isShared,ch:this._cacheHeuristic,imm:this._immutableMinTtl,st:this._status,resh:this._resHeaders,rescc:this._rescc,m:this._method,u:this._url,h:this._host,a:this._noAuthorization,reqh:this._reqHeaders,reqcc:this._reqcc}}revalidationHeaders(e){this._assertRequestHasHeaders(e);const t=this._copyWithoutHopByHopHeaders(e.headers);delete t["if-range"];if(!this._requestMatches(e,true)||!this.storable()){delete t["if-none-match"];delete t["if-modified-since"];return t}if(this._resHeaders.etag){t["if-none-match"]=t["if-none-match"]?`${t["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag}const r=t["accept-ranges"]||t["if-match"]||t["if-unmodified-since"]||this._method&&this._method!="GET";if(r){delete t["if-modified-since"];if(t["if-none-match"]){const e=t["if-none-match"].split(/,/).filter((e=>!/^\s*W\//.test(e)));if(!e.length){delete t["if-none-match"]}else{t["if-none-match"]=e.join(",").trim()}}}else if(this._resHeaders["last-modified"]&&!t["if-modified-since"]){t["if-modified-since"]=this._resHeaders["last-modified"]}return t}revalidatedPolicy(e,t){this._assertRequestHasHeaders(e);if(this._useStaleIfError()&&isErrorResponse(t)){return{modified:false,matches:false,policy:this}}if(!t||!t.headers){throw Error("Response headers missing")}let r=false;if(t.status!==undefined&&t.status!=304){r=false}else if(t.headers.etag&&!/^\s*W\//.test(t.headers.etag)){r=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===t.headers.etag}else if(this._resHeaders.etag&&t.headers.etag){r=this._resHeaders.etag.replace(/^\s*W\//,"")===t.headers.etag.replace(/^\s*W\//,"")}else if(this._resHeaders["last-modified"]){r=this._resHeaders["last-modified"]===t.headers["last-modified"]}else{if(!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!t.headers.etag&&!t.headers["last-modified"]){r=true}}if(!r){return{policy:new this.constructor(e,t),modified:t.status!=304,matches:false}}const s={};for(const e in this._resHeaders){s[e]=e in t.headers&&!i[e]?t.headers[e]:this._resHeaders[e]}const n=Object.assign({},t,{status:this._status,method:this._method,headers:s});return{policy:new this.constructor(e,n,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:false,matches:true}}}},9898:(e,t,r)=>{"use strict";const s=r(2361);const n=r(4404);const i=r(5158);const o=r(9273);const a=Symbol("currentStreamsCount");const u=Symbol("request");const l=Symbol("cachedOriginSet");const h=["maxDeflateDynamicTableSize","maxSessionMemory","maxHeaderListPairs","maxOutstandingPings","maxReservedRemoteStreams","maxSendHeaderBlockLength","paddingStrategy","localAddress","path","rejectUnauthorized","minDHSize","ca","cert","clientCertEngine","ciphers","key","pfx","servername","minVersion","maxVersion","secureProtocol","crl","honorCipherOrder","ecdhCurve","dhparam","secureOptions","sessionIdContext"];const removeSession=(e,t,r)=>{if(t in e){const s=e[t].indexOf(r);if(s!==-1){e[t].splice(s,1);if(e[t].length===0){delete e[t]}return true}}return false};const addSession=(e,t,r)=>{if(t in e){e[t].push(r)}else{e[t]=[r]}};const getSessions=(e,t,r)=>{if(!(t in e)){return[]}return e[t].filter((e=>!e.closed&&!e.destroyed&&e[l].includes(r)))};const closeCoveredSessions=(e,t,r)=>{if(!(t in e)){return}for(const s of e[t]){if(s[l].length<r[l].length&&s[l].every((e=>r[l].includes(e)))&&s[a]+r[a]<=r.remoteSettings.maxConcurrentStreams){s.close()}}};const closeSessionIfCovered=(e,t,r)=>{if(!(t in e)){return}for(const s of e[t]){if(r[l].length<s[l].length&&r[l].every((e=>s[l].includes(e)))&&r[a]+s[a]<=s.remoteSettings.maxConcurrentStreams){r.close()}}};class Agent extends s{constructor({timeout:e=6e4,maxSessions:t=Infinity,maxFreeSessions:r=1,maxCachedTlsSessions:s=100}={}){super();this.busySessions={};this.freeSessions={};this.queue={};this.timeout=e;this.maxSessions=t;this.maxFreeSessions=r;this.settings={enablePush:false};this.tlsSessionCache=new o({maxSize:s})}static normalizeOrigin(e,t){if(typeof e==="string"){e=new URL(e)}if(t&&e.hostname!==t){e.hostname=t}return e.origin}normalizeOptions(e){let t="";if(e){for(const r of h){if(e[r]){t+=`:${e[r]}`}}}return t}_tryToCreateNewSession(e,t){if(!(e in this.queue)||!(t in this.queue[e])){return}const r=getSessions(this.busySessions,e,t).length;const s=this.queue[e][t];if(r<this.maxSessions&&!s.completed){s.completed=true;s()}}_closeCoveredSessions(e,t){closeCoveredSessions(this.freeSessions,e,t);closeCoveredSessions(this.busySessions,e,t)}getSession(e,t,r){return new Promise(((s,n)=>{if(Array.isArray(r)){r=[...r];s()}else{r=[{resolve:s,reject:n}]}const o=this.normalizeOptions(t);const h=Agent.normalizeOrigin(e,t&&t.servername);if(h===undefined){for(const{reject:e}of r){e(new TypeError("The `origin` argument needs to be a string or an URL object"))}return}if(o in this.freeSessions){const e=getSessions(this.freeSessions,o,h);if(e.length!==0){const t=e.reduce(((e,t)=>{if(t.remoteSettings.maxConcurrentStreams>=e.remoteSettings.maxConcurrentStreams&&t[a]>e[a]){return t}return e}));for(const{resolve:e}of r){e(t)}return}}if(o in this.queue){if(h in this.queue[o]){this.queue[o][h].listeners.push(...r);return}}else{this.queue[o]={}}const removeFromQueue=()=>{if(o in this.queue&&this.queue[o][h]===entry){delete this.queue[o][h];if(Object.keys(this.queue[o]).length===0){delete this.queue[o]}}};const entry=()=>{const s=`${h}:${o}`;let n=false;let p;try{const d=this.tlsSessionCache.get(s);const m=i.connect(e,{createConnection:this.createConnection,settings:this.settings,session:d?d.session:undefined,...t});m[a]=0;const freeSession=()=>{const e=m[l].reduce(((e,t)=>Math.min(e,getSessions(this.freeSessions,o,t).length)),Infinity);if(e<this.maxFreeSessions){addSession(this.freeSessions,o,m);return true}return false};const isFree=()=>m[a]<m.remoteSettings.maxConcurrentStreams;m.socket.once("session",(e=>{setImmediate((()=>{this.tlsSessionCache.set(s,{session:e,servername:p})}))}));m.socket.once("secureConnect",(()=>{p=m.socket.servername;if(p===false&&typeof d!=="undefined"&&typeof d.servername!=="undefined"){m.socket.servername=d.servername}}));m.once("error",(e=>{if(!n){for(const{reject:t}of r){t(e)}}this.tlsSessionCache.delete(s)}));m.setTimeout(this.timeout,(()=>{m.destroy()}));m.once("close",(()=>{if(!n){const e=new Error("Session closed without receiving a SETTINGS frame");for(const{reject:t}of r){t(e)}}removeFromQueue();removeSession(this.freeSessions,o,m);this._tryToCreateNewSession(o,h)}));const processListeners=()=>{if(!(o in this.queue)){return}for(const e of m[l]){if(e in this.queue[o]){const{listeners:t}=this.queue[o][e];while(t.length!==0&&isFree()){t.shift().resolve(m)}if(this.queue[o][e].listeners.length===0){delete this.queue[o][e];if(Object.keys(this.queue[o]).length===0){delete this.queue[o];break}}if(!isFree()){break}}}};m.once("origin",(()=>{m[l]=m.originSet;if(!isFree()){return}this._closeCoveredSessions(o,m);processListeners();m.on("remoteSettings",(()=>{this._closeCoveredSessions(o,m)}))}));m.once("remoteSettings",(()=>{if(entry.destroyed){const e=new Error("Agent has been destroyed");for(const t of r){t.reject(e)}m.destroy();return}m[l]=m.originSet;this.emit("session",m);if(freeSession()){processListeners()}else if(this.maxFreeSessions===0){processListeners();setImmediate((()=>{m.close()}))}else{m.close()}removeFromQueue();if(r.length!==0){this.getSession(h,t,r);r.length=0}n=true;m.on("remoteSettings",(()=>{if(isFree()&&removeSession(this.busySessions,o,m)){if(freeSession()){processListeners()}else{addSession(this.busySessions,o,m)}}}))}));m[u]=m.request;m.request=e=>{const t=m[u](e,{endStream:false});m.ref();++m[a];if(!isFree()&&removeSession(this.freeSessions,o,m)){addSession(this.busySessions,o,m)}t.once("close",(()=>{--m[a];if(isFree()){if(m[a]===0){m.unref()}if(removeSession(this.busySessions,o,m)&&!m.destroyed&&!m.closed){if(freeSession()){this._closeCoveredSessions(o,m);processListeners()}else{m.close()}}}if(!m.destroyed&&!m.closed){closeSessionIfCovered(this.freeSessions,o,m)}}));return t}}catch(e){for(const t of r){t.reject(e)}removeFromQueue()}};entry.listeners=r;entry.completed=false;entry.destroyed=false;this.queue[o][h]=entry;this._tryToCreateNewSession(o,h)}))}request(e,t,r){return new Promise(((s,n)=>{this.getSession(e,t,[{reject:n,resolve:e=>{s(e.request(r))}}])}))}createConnection(e,t){return Agent.connect(e,t)}static connect(e,t){t.ALPNProtocols=["h2"];const r=e.port||443;const s=e.hostname||e.host;if(typeof t.servername==="undefined"){t.servername=s}return n.connect(r,s,t)}closeFreeSessions(){for(const e of Object.values(this.freeSessions)){for(const t of e){if(t[a]===0){t.close()}}}}destroy(e){for(const t of Object.values(this.busySessions)){for(const r of t){r.destroy(e)}}for(const t of Object.values(this.freeSessions)){for(const r of t){r.destroy(e)}}for(const e of Object.values(this.queue)){for(const t of Object.values(e)){t.destroyed=true}}this.queue={}}}e.exports={Agent:Agent,globalAgent:new Agent}},7167:(e,t,r)=>{"use strict";const s=r(3685);const n=r(5687);const i=r(6624);const o=r(9273);const a=r(9632);const u=r(1982);const l=r(2686);const h=new o({maxSize:100});const p=new Map;const installSocket=(e,t,r)=>{t._httpMessage={shouldKeepAlive:true};const onFree=()=>{e.emit("free",t,r)};t.on("free",onFree);const onClose=()=>{e.removeSocket(t,r)};t.on("close",onClose);const onRemove=()=>{e.removeSocket(t,r);t.off("close",onClose);t.off("free",onFree);t.off("agentRemove",onRemove)};t.on("agentRemove",onRemove);e.emit("free",t,r)};const resolveProtocol=async e=>{const t=`${e.host}:${e.port}:${e.ALPNProtocols.sort()}`;if(!h.has(t)){if(p.has(t)){const e=await p.get(t);return e.alpnProtocol}const{path:r,agent:s}=e;e.path=e.socketPath;const o=i(e);p.set(t,o);try{const{socket:i,alpnProtocol:a}=await o;h.set(t,a);e.path=r;if(a==="h2"){i.destroy()}else{const{globalAgent:t}=n;const r=n.Agent.prototype.createConnection;if(s){if(s.createConnection===r){installSocket(s,i,e)}else{i.destroy()}}else if(t.createConnection===r){installSocket(t,i,e)}else{i.destroy()}}p.delete(t);return a}catch(e){p.delete(t);throw e}}return h.get(t)};e.exports=async(e,t,r)=>{if(typeof e==="string"||e instanceof URL){e=l(new URL(e))}if(typeof t==="function"){r=t;t=undefined}t={ALPNProtocols:["h2","http/1.1"],protocol:"https:",...e,...t,resolveSocket:true};const i=t.protocol==="https:";const o=t.agent;t.host=t.hostname||t.host||"localhost";t.session=t.tlsSession;t.servername=t.servername||u(t);t.port=t.port||(i?443:80);t._defaultAgent=i?n.globalAgent:s.globalAgent;if(o){if(o.addRequest){throw new Error("The `options.agent` object can contain only `http`, `https` or `http2` properties")}t.agent=o[i?"https":"http"]}if(i){const e=await resolveProtocol(t);if(e==="h2"){if(o){t.agent=o.http2}return new a(t,r)}}return s.request(t,r)};e.exports.protocolCache=h},9632:(e,t,r)=>{"use strict";const s=r(5158);const{Writable:n}=r(2781);const{Agent:i,globalAgent:o}=r(9898);const a=r(2575);const u=r(2686);const l=r(1818);const h=r(1199);const{ERR_INVALID_ARG_TYPE:p,ERR_INVALID_PROTOCOL:d,ERR_HTTP_HEADERS_SENT:m,ERR_INVALID_HTTP_TOKEN:y,ERR_HTTP_INVALID_HEADER_VALUE:g,ERR_INVALID_CHAR:v}=r(7087);const{HTTP2_HEADER_STATUS:b,HTTP2_HEADER_METHOD:w,HTTP2_HEADER_PATH:A,HTTP2_METHOD_CONNECT:_}=s.constants;const S=Symbol("headers");const C=Symbol("origin");const D=Symbol("session");const x=Symbol("options");const R=Symbol("flushedHeaders");const k=Symbol("jobs");const O=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/;const T=/[^\t\u0020-\u007E\u0080-\u00FF]/;class ClientRequest extends n{constructor(e,t,r){super({autoDestroy:false});const s=typeof e==="string"||e instanceof URL;if(s){e=u(e instanceof URL?e:new URL(e))}if(typeof t==="function"||t===undefined){r=t;t=s?e:{...e}}else{t={...e,...t}}if(t.h2session){this[D]=t.h2session}else if(t.agent===false){this.agent=new i({maxFreeSessions:0})}else if(typeof t.agent==="undefined"||t.agent===null){if(typeof t.createConnection==="function"){this.agent=new i({maxFreeSessions:0});this.agent.createConnection=t.createConnection}else{this.agent=o}}else if(typeof t.agent.request==="function"){this.agent=t.agent}else{throw new p("options.agent",["Agent-like Object","undefined","false"],t.agent)}if(!t.port){t.port=t.defaultPort||this.agent&&this.agent.defaultPort||443}t.host=t.hostname||t.host||"localhost";if(t.protocol&&t.protocol!=="https:"){throw new d(t.protocol,"https:")}const{timeout:n}=t;t.timeout=undefined;this[S]=Object.create(null);this[k]=[];this.socket=null;this.connection=null;this.method=t.method;this.path=t.path;this.res=null;this.aborted=false;this.reusedSocket=false;if(t.headers){for(const[e,r]of Object.entries(t.headers)){this.setHeader(e,r)}}if(t.auth&&!("authorization"in this[S])){this[S].authorization="Basic "+Buffer.from(t.auth).toString("base64")}t.session=t.tlsSession;t.path=t.socketPath;this[x]=t;if(t.port===443){t.origin=`https://${t.host}`;if(!(":authority"in this[S])){this[S][":authority"]=t.host}}else{t.origin=`https://${t.host}:${t.port}`;if(!(":authority"in this[S])){this[S][":authority"]=`${t.host}:${t.port}`}}this[C]=t;if(n){this.setTimeout(n)}if(r){this.once("response",r)}this[R]=false}get method(){return this[S][w]}set method(e){if(e){this[S][w]=e.toUpperCase()}}get path(){return this[S][A]}set path(e){if(e){this[S][A]=e}}_write(e,t,r){this.flushHeaders();const callWrite=()=>this._request.write(e,t,r);if(this._request){callWrite()}else{this[k].push(callWrite)}}_final(e){if(this.destroyed){return}this.flushHeaders();const callEnd=()=>this._request.end(e);if(this._request){callEnd()}else{this[k].push(callEnd)}}abort(){if(this.res&&this.res.complete){return}if(!this.aborted){process.nextTick((()=>this.emit("abort")))}this.aborted=true;this.destroy()}_destroy(e,t){if(this.res){this.res._dump()}if(this._request){this._request.destroy()}t(e)}async flushHeaders(){if(this[R]||this.destroyed){return}this[R]=true;const e=this.method===_;const onStream=t=>{this._request=t;if(this.destroyed){t.destroy();return}if(!e){l(t,this,["timeout","continue","close","error"])}t.once("response",((r,s,n)=>{const i=new a(this.socket,t.readableHighWaterMark);this.res=i;i.req=this;i.statusCode=r[b];i.headers=r;i.rawHeaders=n;i.once("end",(()=>{if(this.aborted){i.aborted=true;i.emit("aborted")}else{i.complete=true;i.socket=null;i.connection=null}}));if(e){i.upgrade=true;if(this.emit("connect",i,t,Buffer.alloc(0))){this.emit("close")}else{t.destroy()}}else{t.on("data",(e=>{if(!i._dumped&&!i.push(e)){t.pause()}}));t.once("end",(()=>{i.push(null)}));if(!this.emit("response",i)){i._dump()}}}));t.once("headers",(e=>this.emit("information",{statusCode:e[b]})));t.once("trailers",((e,t,r)=>{const{res:s}=this;s.trailers=e;s.rawTrailers=r}));const{socket:r}=t.session;this.socket=r;this.connection=r;for(const e of this[k]){e()}this.emit("socket",this.socket)};if(this[D]){try{onStream(this[D].request(this[S],{endStream:false}))}catch(e){this.emit("error",e)}}else{this.reusedSocket=true;try{onStream(await this.agent.request(this[C],this[x],this[S]))}catch(e){this.emit("error",e)}}}getHeader(e){if(typeof e!=="string"){throw new p("name","string",e)}return this[S][e.toLowerCase()]}get headersSent(){return this[R]}removeHeader(e){if(typeof e!=="string"){throw new p("name","string",e)}if(this.headersSent){throw new m("remove")}delete this[S][e.toLowerCase()]}setHeader(e,t){if(this.headersSent){throw new m("set")}if(typeof e!=="string"||!O.test(e)&&!h(e)){throw new y("Header name",e)}if(typeof t==="undefined"){throw new g(t,e)}if(T.test(t)){throw new v("header content",e)}this[S][e.toLowerCase()]=t}setNoDelay(){}setSocketKeepAlive(){}setTimeout(e,t){const applyTimeout=()=>this._request.setTimeout(e,t);if(this._request){applyTimeout()}else{this[k].push(applyTimeout)}return this}get maxHeadersCount(){if(!this.destroyed&&this._request){return this._request.session.localSettings.maxHeaderListSize}return undefined}set maxHeadersCount(e){}}e.exports=ClientRequest},2575:(e,t,r)=>{"use strict";const{Readable:s}=r(2781);class IncomingMessage extends s{constructor(e,t){super({highWaterMark:t,autoDestroy:false});this.statusCode=null;this.statusMessage="";this.httpVersion="2.0";this.httpVersionMajor=2;this.httpVersionMinor=0;this.headers={};this.trailers={};this.req=null;this.aborted=false;this.complete=false;this.upgrade=null;this.rawHeaders=[];this.rawTrailers=[];this.socket=e;this.connection=e;this._dumped=false}_destroy(e){this.req._request.destroy(e)}setTimeout(e,t){this.req.setTimeout(e,t);return this}_dump(){if(!this._dumped){this._dumped=true;this.removeAllListeners("data");this.resume()}}_read(){if(this.req){this.req._request.resume()}}}e.exports=IncomingMessage},4645:(e,t,r)=>{"use strict";const s=r(5158);const n=r(9898);const i=r(9632);const o=r(2575);const a=r(7167);const request=(e,t,r)=>new i(e,t,r);const get=(e,t,r)=>{const s=new i(e,t,r);s.end();return s};e.exports={...s,ClientRequest:i,IncomingMessage:o,...n,request:request,get:get,auto:a}},1982:(e,t,r)=>{"use strict";const s=r(1808);e.exports=e=>{let t=e.host;const r=e.headers&&e.headers.host;if(r){if(r.startsWith("[")){const e=r.indexOf("]");if(e===-1){t=r}else{t=r.slice(1,-1)}}else{t=r.split(":",1)[0]}}if(s.isIP(t)){return""}return t}},7087:e=>{"use strict";const makeError=(t,r,s)=>{e.exports[r]=class NodeError extends t{constructor(...e){super(typeof s==="string"?s:s(e));this.name=`${super.name} [${r}]`;this.code=r}}};makeError(TypeError,"ERR_INVALID_ARG_TYPE",(e=>{const t=e[0].includes(".")?"property":"argument";let r=e[1];const s=Array.isArray(r);if(s){r=`${r.slice(0,-1).join(", ")} or ${r.slice(-1)}`}return`The "${e[0]}" ${t} must be ${s?"one of":"of"} type ${r}. Received ${typeof e[2]}`}));makeError(TypeError,"ERR_INVALID_PROTOCOL",(e=>`Protocol "${e[0]}" not supported. Expected "${e[1]}"`));makeError(Error,"ERR_HTTP_HEADERS_SENT",(e=>`Cannot ${e[0]} headers after they are sent to the client`));makeError(TypeError,"ERR_INVALID_HTTP_TOKEN",(e=>`${e[0]} must be a valid HTTP token [${e[1]}]`));makeError(TypeError,"ERR_HTTP_INVALID_HEADER_VALUE",(e=>`Invalid value "${e[0]} for header "${e[1]}"`));makeError(TypeError,"ERR_INVALID_CHAR",(e=>`Invalid character in ${e[0]} [${e[1]}]`))},1199:e=>{"use strict";e.exports=e=>{switch(e){case":method":case":scheme":case":authority":case":path":return true;default:return false}}},1818:e=>{"use strict";e.exports=(e,t,r)=>{for(const s of r){e.on(s,((...e)=>t.emit(s,...e)))}}},2686:e=>{"use strict";e.exports=e=>{const t={protocol:e.protocol,hostname:typeof e.hostname==="string"&&e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,host:e.host,hash:e.hash,search:e.search,pathname:e.pathname,href:e.href,path:`${e.pathname||""}${e.search||""}`};if(typeof e.port==="string"&&e.port.length!==0){t.port=Number(e.port)}if(e.username||e.password){t.auth=`${e.username||""}:${e.password||""}`}return t}},2527:e=>{
35/**
36 * @preserve
37 * JS Implementation of incremental MurmurHash3 (r150) (as of May 10, 2013)
38 *
39 * @author <a href="mailto:jensyt@gmail.com">Jens Taylor</a>
40 * @see http://github.com/homebrewing/brauhaus-diff
41 * @author <a href="mailto:gary.court@gmail.com">Gary Court</a>
42 * @see http://github.com/garycourt/murmurhash-js
43 * @author <a href="mailto:aappleby@gmail.com">Austin Appleby</a>
44 * @see http://sites.google.com/site/murmurhash/
45 */
46(function(){var t;function MurmurHash3(e,r){var s=this instanceof MurmurHash3?this:t;s.reset(r);if(typeof e==="string"&&e.length>0){s.hash(e)}if(s!==this){return s}}MurmurHash3.prototype.hash=function(e){var t,r,s,n,i;i=e.length;this.len+=i;r=this.k1;s=0;switch(this.rem){case 0:r^=i>s?e.charCodeAt(s++)&65535:0;case 1:r^=i>s?(e.charCodeAt(s++)&65535)<<8:0;case 2:r^=i>s?(e.charCodeAt(s++)&65535)<<16:0;case 3:r^=i>s?(e.charCodeAt(s)&255)<<24:0;r^=i>s?(e.charCodeAt(s++)&65280)>>8:0}this.rem=i+this.rem&3;i-=this.rem;if(i>0){t=this.h1;while(1){r=r*11601+(r&65535)*3432906752&4294967295;r=r<<15|r>>>17;r=r*13715+(r&65535)*461832192&4294967295;t^=r;t=t<<13|t>>>19;t=t*5+3864292196&4294967295;if(s>=i){break}r=e.charCodeAt(s++)&65535^(e.charCodeAt(s++)&65535)<<8^(e.charCodeAt(s++)&65535)<<16;n=e.charCodeAt(s++);r^=(n&255)<<24^(n&65280)>>8}r=0;switch(this.rem){case 3:r^=(e.charCodeAt(s+2)&65535)<<16;case 2:r^=(e.charCodeAt(s+1)&65535)<<8;case 1:r^=e.charCodeAt(s)&65535}this.h1=t}this.k1=r;return this};MurmurHash3.prototype.result=function(){var e,t;e=this.k1;t=this.h1;if(e>0){e=e*11601+(e&65535)*3432906752&4294967295;e=e<<15|e>>>17;e=e*13715+(e&65535)*461832192&4294967295;t^=e}t^=this.len;t^=t>>>16;t=t*51819+(t&65535)*2246770688&4294967295;t^=t>>>13;t=t*44597+(t&65535)*3266445312&4294967295;t^=t>>>16;return t>>>0};MurmurHash3.prototype.reset=function(e){this.h1=typeof e==="number"?e:0;this.rem=this.k1=this.len=0;return this};t=new MurmurHash3;if(true){e.exports=MurmurHash3}else{}})()},2492:(e,t,r)=>{var s=r(2940);var n=Object.create(null);var i=r(1223);e.exports=s(inflight);function inflight(e,t){if(n[e]){n[e].push(t);return null}else{n[e]=[t];return makeres(e)}}function makeres(e){return i((function RES(){var t=n[e];var r=t.length;var s=slice(arguments);try{for(var i=0;i<r;i++){t[i].apply(null,s)}}finally{if(t.length>r){t.splice(0,r);process.nextTick((function(){RES.apply(null,s)}))}else{delete n[e]}}}))}function slice(e){var t=e.length;var r=[];for(var s=0;s<t;s++)r[s]=e[s];return r}},4124:(e,t,r)=>{try{var s=r(3837);if(typeof s.inherits!=="function")throw"";e.exports=s.inherits}catch(t){e.exports=r(8544)}},8544:e=>{if(typeof Object.create==="function"){e.exports=function inherits(e,t){e.super_=t;e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}}else{e.exports=function inherits(e,t){e.super_=t;var TempCtor=function(){};TempCtor.prototype=t.prototype;e.prototype=new TempCtor;e.prototype.constructor=e}}},8885:(e,t)=>{t.parse=t.decode=decode;t.stringify=t.encode=encode;t.safe=safe;t.unsafe=unsafe;var r=typeof process!=="undefined"&&process.platform==="win32"?"\r\n":"\n";function encode(e,t){var s=[];var n="";if(typeof t==="string"){t={section:t,whitespace:false}}else{t=t||{};t.whitespace=t.whitespace===true}var i=t.whitespace?" = ":"=";Object.keys(e).forEach((function(t,o,a){var u=e[t];if(u&&Array.isArray(u)){u.forEach((function(e){n+=safe(t+"[]")+i+safe(e)+"\n"}))}else if(u&&typeof u==="object")s.push(t);else n+=safe(t)+i+safe(u)+r}));if(t.section&&n.length)n="["+safe(t.section)+"]"+r+n;s.forEach((function(s,i,o){var a=dotSplit(s).join("\\.");var u=(t.section?t.section+".":"")+a;var l=encode(e[s],{section:u,whitespace:t.whitespace});if(n.length&&l.length)n+=r;n+=l}));return n}function dotSplit(e){return e.replace(/\1/g,"LITERAL\\1LITERAL").replace(/\\\./g,"").split(/\./).map((function(e){return e.replace(/\1/g,"\\.").replace(/\2LITERAL\\1LITERAL\2/g,"")}))}function decode(e){var t={};var r=t;var s=null;var n=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i;var i=e.split(/[\r\n]+/g);i.forEach((function(e,i,o){if(!e||e.match(/^\s*[;#]/))return;var a=e.match(n);if(!a)return;if(a[1]!==undefined){s=unsafe(a[1]);if(s==="__proto__"){r={};return}r=t[s]=t[s]||{};return}var u=unsafe(a[2]);if(u==="__proto__")return;var l=a[3]?unsafe(a[4]):true;switch(l){case"true":case"false":case"null":l=JSON.parse(l)}if(u.length>2&&u.slice(-2)==="[]"){u=u.substring(0,u.length-2);if(u==="__proto__")return;if(!r[u])r[u]=[];else if(!Array.isArray(r[u]))r[u]=[r[u]]}if(Array.isArray(r[u]))r[u].push(l);else r[u]=l}));Object.keys(t).filter((function(e,r,s){if(!t[e]||typeof t[e]!=="object"||Array.isArray(t[e]))return false;var n=dotSplit(e);var i=t;var o=n.pop();var a=o.replace(/\\\./g,".");n.forEach((function(e,t,r){if(e==="__proto__")return;if(!i[e]||typeof i[e]!=="object")i[e]={};i=i[e]}));if(i===t&&a===o)return false;i[a]=t[e];return true})).forEach((function(e,r,s){delete t[e]}));return t}function isQuoted(e){return e.charAt(0)==='"'&&e.slice(-1)==='"'||e.charAt(0)==="'"&&e.slice(-1)==="'"}function safe(e){return typeof e!=="string"||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&isQuoted(e)||e!==e.trim()?JSON.stringify(e):e.replace(/;/g,"\\;").replace(/#/g,"\\#")}function unsafe(e,t){e=(e||"").trim();if(isQuoted(e)){if(e.charAt(0)==="'")e=e.substr(1,e.length-2);try{e=JSON.parse(e)}catch(e){}}else{var r=false;var s="";for(var n=0,i=e.length;n<i;n++){var o=e.charAt(n);if(r){if("\\;#".indexOf(o)!==-1)s+=o;else s+="\\"+o;r=false}else if(";#".indexOf(o)!==-1)break;else if(o==="\\")r=true;else s+=o}if(r)s+="\\";return s.trim()}return e}},284:e=>{"use strict";e.exports=({stream:e=process.stdout}={})=>Boolean(e&&e.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))},7126:(e,t,r)=>{var s=r(7147);var n;if(process.platform==="win32"||global.TESTING_WINDOWS){n=r(2001)}else{n=r(9728)}e.exports=isexe;isexe.sync=sync;function isexe(e,t,r){if(typeof t==="function"){r=t;t={}}if(!r){if(typeof Promise!=="function"){throw new TypeError("callback not provided")}return new Promise((function(r,s){isexe(e,t||{},(function(e,t){if(e){s(e)}else{r(t)}}))}))}n(e,t||{},(function(e,s){if(e){if(e.code==="EACCES"||t&&t.ignoreErrors){e=null;s=false}}r(e,s)}))}function sync(e,t){try{return n.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||e.code==="EACCES"){return false}else{throw e}}}},9728:(e,t,r)=>{e.exports=isexe;isexe.sync=sync;var s=r(7147);function isexe(e,t,r){s.stat(e,(function(e,s){r(e,e?false:checkStat(s,t))}))}function sync(e,t){return checkStat(s.statSync(e),t)}function checkStat(e,t){return e.isFile()&&checkMode(e,t)}function checkMode(e,t){var r=e.mode;var s=e.uid;var n=e.gid;var i=t.uid!==undefined?t.uid:process.getuid&&process.getuid();var o=t.gid!==undefined?t.gid:process.getgid&&process.getgid();var a=parseInt("100",8);var u=parseInt("010",8);var l=parseInt("001",8);var h=a|u;var p=r&l||r&u&&n===o||r&a&&s===i||r&h&&i===0;return p}},2001:(e,t,r)=>{e.exports=isexe;isexe.sync=sync;var s=r(7147);function checkPathExt(e,t){var r=t.pathExt!==undefined?t.pathExt:process.env.PATHEXT;if(!r){return true}r=r.split(";");if(r.indexOf("")!==-1){return true}for(var s=0;s<r.length;s++){var n=r[s].toLowerCase();if(n&&e.substr(-n.length).toLowerCase()===n){return true}}return false}function checkStat(e,t,r){if(!e.isSymbolicLink()&&!e.isFile()){return false}return checkPathExt(t,r)}function isexe(e,t,r){s.stat(e,(function(s,n){r(s,s?false:checkStat(n,e,t))}))}function sync(e,t){return checkStat(s.statSync(e),e,t)}},1531:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t["default"]=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;t.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:undefined};if(e[1])t.type="string",t.closed=!!(e[3]||e[4]);else if(e[5])t.type="comment";else if(e[6])t.type="comment",t.closed=!!e[7];else if(e[8])t.type="regex";else if(e[9])t.type="number";else if(e[10])t.type="name";else if(e[11])t.type="punctuator";else if(e[12])t.type="whitespace";return t}},2820:(e,t)=>{t.stringify=function stringify(e){if("undefined"==typeof e)return e;if(e&&Buffer.isBuffer(e))return JSON.stringify(":base64:"+e.toString("base64"));if(e&&e.toJSON)e=e.toJSON();if(e&&"object"===typeof e){var t="";var r=Array.isArray(e);t=r?"[":"{";var s=true;for(var n in e){var i="function"==typeof e[n]||!r&&"undefined"===typeof e[n];if(Object.hasOwnProperty.call(e,n)&&!i){if(!s)t+=",";s=false;if(r){if(e[n]==undefined)t+="null";else t+=stringify(e[n])}else if(e[n]!==void 0){t+=stringify(n)+":"+stringify(e[n])}}}t+=r?"]":"}";return t}else if("string"===typeof e){return JSON.stringify(/^:/.test(e)?":"+e:e)}else if("undefined"===typeof e){return"null"}else return JSON.stringify(e)};t.parse=function(e){return JSON.parse(e,(function(e,t){if("string"===typeof t){if(/^:base64:/.test(t))return Buffer.from(t.substring(8),"base64");else return/^:/.test(t)?t.substring(1):t}return t}))}},6904:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var s=r(7583);var n=_interopRequireDefault(s);var i=r(749);var o=_interopRequireDefault(i);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}t["default"]={parse:n.default,stringify:o.default};e.exports=t["default"]},7583:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var s=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t["default"]=parse;var n=r(7393);var i=_interopRequireWildcard(n);function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t.default=e;return t}}var o=void 0;var a=void 0;var u=void 0;var l=void 0;var h=void 0;var p=void 0;var d=void 0;var m=void 0;var y=void 0;function parse(e,t){o=String(e);a="start";u=[];l=0;h=1;p=0;d=undefined;m=undefined;y=undefined;do{d=lex();S[a]()}while(d.type!=="eof");if(typeof t==="function"){return internalize({"":y},"",t)}return y}function internalize(e,t,r){var n=e[t];if(n!=null&&(typeof n==="undefined"?"undefined":s(n))==="object"){for(var i in n){var o=internalize(n,i,r);if(o===undefined){delete n[i]}else{n[i]=o}}}return r.call(e,t,n)}var g=void 0;var v=void 0;var b=void 0;var w=void 0;var A=void 0;function lex(){g="default";v="";b=false;w=1;for(;;){A=peek();var e=_[g]();if(e){return e}}}function peek(){if(o[l]){return String.fromCodePoint(o.codePointAt(l))}}function read(){var e=peek();if(e==="\n"){h++;p=0}else if(e){p+=e.length}else{p++}if(e){l+=e.length}return e}var _={default:function _default(){switch(A){case"\t":case"\v":case"\f":case" ":case" ":case"\ufeff":case"\n":case"\r":case"\u2028":case"\u2029":read();return;case"/":read();g="comment";return;case undefined:read();return newToken("eof")}if(i.isSpaceSeparator(A)){read();return}return _[a]()},comment:function comment(){switch(A){case"*":read();g="multiLineComment";return;case"/":read();g="singleLineComment";return}throw invalidChar(read())},multiLineComment:function multiLineComment(){switch(A){case"*":read();g="multiLineCommentAsterisk";return;case undefined:throw invalidChar(read())}read()},multiLineCommentAsterisk:function multiLineCommentAsterisk(){switch(A){case"*":read();return;case"/":read();g="default";return;case undefined:throw invalidChar(read())}read();g="multiLineComment"},singleLineComment:function singleLineComment(){switch(A){case"\n":case"\r":case"\u2028":case"\u2029":read();g="default";return;case undefined:read();return newToken("eof")}read()},value:function value(){switch(A){case"{":case"[":return newToken("punctuator",read());case"n":read();literal("ull");return newToken("null",null);case"t":read();literal("rue");return newToken("boolean",true);case"f":read();literal("alse");return newToken("boolean",false);case"-":case"+":if(read()==="-"){w=-1}g="sign";return;case".":v=read();g="decimalPointLeading";return;case"0":v=read();g="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":v=read();g="decimalInteger";return;case"I":read();literal("nfinity");return newToken("numeric",Infinity);case"N":read();literal("aN");return newToken("numeric",NaN);case'"':case"'":b=read()==='"';v="";g="string";return}throw invalidChar(read())},identifierNameStartEscape:function identifierNameStartEscape(){if(A!=="u"){throw invalidChar(read())}read();var e=unicodeEscape();switch(e){case"$":case"_":break;default:if(!i.isIdStartChar(e)){throw invalidIdentifier()}break}v+=e;g="identifierName"},identifierName:function identifierName(){switch(A){case"$":case"_":case"‌":case"‍":v+=read();return;case"\\":read();g="identifierNameEscape";return}if(i.isIdContinueChar(A)){v+=read();return}return newToken("identifier",v)},identifierNameEscape:function identifierNameEscape(){if(A!=="u"){throw invalidChar(read())}read();var e=unicodeEscape();switch(e){case"$":case"_":case"‌":case"‍":break;default:if(!i.isIdContinueChar(e)){throw invalidIdentifier()}break}v+=e;g="identifierName"},sign:function sign(){switch(A){case".":v=read();g="decimalPointLeading";return;case"0":v=read();g="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":v=read();g="decimalInteger";return;case"I":read();literal("nfinity");return newToken("numeric",w*Infinity);case"N":read();literal("aN");return newToken("numeric",NaN)}throw invalidChar(read())},zero:function zero(){switch(A){case".":v+=read();g="decimalPoint";return;case"e":case"E":v+=read();g="decimalExponent";return;case"x":case"X":v+=read();g="hexadecimal";return}return newToken("numeric",w*0)},decimalInteger:function decimalInteger(){switch(A){case".":v+=read();g="decimalPoint";return;case"e":case"E":v+=read();g="decimalExponent";return}if(i.isDigit(A)){v+=read();return}return newToken("numeric",w*Number(v))},decimalPointLeading:function decimalPointLeading(){if(i.isDigit(A)){v+=read();g="decimalFraction";return}throw invalidChar(read())},decimalPoint:function decimalPoint(){switch(A){case"e":case"E":v+=read();g="decimalExponent";return}if(i.isDigit(A)){v+=read();g="decimalFraction";return}return newToken("numeric",w*Number(v))},decimalFraction:function decimalFraction(){switch(A){case"e":case"E":v+=read();g="decimalExponent";return}if(i.isDigit(A)){v+=read();return}return newToken("numeric",w*Number(v))},decimalExponent:function decimalExponent(){switch(A){case"+":case"-":v+=read();g="decimalExponentSign";return}if(i.isDigit(A)){v+=read();g="decimalExponentInteger";return}throw invalidChar(read())},decimalExponentSign:function decimalExponentSign(){if(i.isDigit(A)){v+=read();g="decimalExponentInteger";return}throw invalidChar(read())},decimalExponentInteger:function decimalExponentInteger(){if(i.isDigit(A)){v+=read();return}return newToken("numeric",w*Number(v))},hexadecimal:function hexadecimal(){if(i.isHexDigit(A)){v+=read();g="hexadecimalInteger";return}throw invalidChar(read())},hexadecimalInteger:function hexadecimalInteger(){if(i.isHexDigit(A)){v+=read();return}return newToken("numeric",w*Number(v))},string:function string(){switch(A){case"\\":read();v+=escape();return;case'"':if(b){read();return newToken("string",v)}v+=read();return;case"'":if(!b){read();return newToken("string",v)}v+=read();return;case"\n":case"\r":throw invalidChar(read());case"\u2028":case"\u2029":separatorChar(A);break;case undefined:throw invalidChar(read())}v+=read()},start:function start(){switch(A){case"{":case"[":return newToken("punctuator",read())}g="value"},beforePropertyName:function beforePropertyName(){switch(A){case"$":case"_":v=read();g="identifierName";return;case"\\":read();g="identifierNameStartEscape";return;case"}":return newToken("punctuator",read());case'"':case"'":b=read()==='"';g="string";return}if(i.isIdStartChar(A)){v+=read();g="identifierName";return}throw invalidChar(read())},afterPropertyName:function afterPropertyName(){if(A===":"){return newToken("punctuator",read())}throw invalidChar(read())},beforePropertyValue:function beforePropertyValue(){g="value"},afterPropertyValue:function afterPropertyValue(){switch(A){case",":case"}":return newToken("punctuator",read())}throw invalidChar(read())},beforeArrayValue:function beforeArrayValue(){if(A==="]"){return newToken("punctuator",read())}g="value"},afterArrayValue:function afterArrayValue(){switch(A){case",":case"]":return newToken("punctuator",read())}throw invalidChar(read())},end:function end(){throw invalidChar(read())}};function newToken(e,t){return{type:e,value:t,line:h,column:p}}function literal(e){var t=true;var r=false;var s=undefined;try{for(var n=e[Symbol.iterator](),i;!(t=(i=n.next()).done);t=true){var o=i.value;var a=peek();if(a!==o){throw invalidChar(read())}read()}}catch(e){r=true;s=e}finally{try{if(!t&&n.return){n.return()}}finally{if(r){throw s}}}}function escape(){var e=peek();switch(e){case"b":read();return"\b";case"f":read();return"\f";case"n":read();return"\n";case"r":read();return"\r";case"t":read();return"\t";case"v":read();return"\v";case"0":read();if(i.isDigit(peek())){throw invalidChar(read())}return"\0";case"x":read();return hexEscape();case"u":read();return unicodeEscape();case"\n":case"\u2028":case"\u2029":read();return"";case"\r":read();if(peek()==="\n"){read()}return"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw invalidChar(read());case undefined:throw invalidChar(read())}return read()}function hexEscape(){var e="";var t=peek();if(!i.isHexDigit(t)){throw invalidChar(read())}e+=read();t=peek();if(!i.isHexDigit(t)){throw invalidChar(read())}e+=read();return String.fromCodePoint(parseInt(e,16))}function unicodeEscape(){var e="";var t=4;while(t-- >0){var r=peek();if(!i.isHexDigit(r)){throw invalidChar(read())}e+=read()}return String.fromCodePoint(parseInt(e,16))}var S={start:function start(){if(d.type==="eof"){throw invalidEOF()}push()},beforePropertyName:function beforePropertyName(){switch(d.type){case"identifier":case"string":m=d.value;a="afterPropertyName";return;case"punctuator":pop();return;case"eof":throw invalidEOF()}},afterPropertyName:function afterPropertyName(){if(d.type==="eof"){throw invalidEOF()}a="beforePropertyValue"},beforePropertyValue:function beforePropertyValue(){if(d.type==="eof"){throw invalidEOF()}push()},beforeArrayValue:function beforeArrayValue(){if(d.type==="eof"){throw invalidEOF()}if(d.type==="punctuator"&&d.value==="]"){pop();return}push()},afterPropertyValue:function afterPropertyValue(){if(d.type==="eof"){throw invalidEOF()}switch(d.value){case",":a="beforePropertyName";return;case"}":pop()}},afterArrayValue:function afterArrayValue(){if(d.type==="eof"){throw invalidEOF()}switch(d.value){case",":a="beforeArrayValue";return;case"]":pop()}},end:function end(){}};function push(){var e=void 0;switch(d.type){case"punctuator":switch(d.value){case"{":e={};break;case"[":e=[];break}break;case"null":case"boolean":case"numeric":case"string":e=d.value;break}if(y===undefined){y=e}else{var t=u[u.length-1];if(Array.isArray(t)){t.push(e)}else{t[m]=e}}if(e!==null&&(typeof e==="undefined"?"undefined":s(e))==="object"){u.push(e);if(Array.isArray(e)){a="beforeArrayValue"}else{a="beforePropertyName"}}else{var r=u[u.length-1];if(r==null){a="end"}else if(Array.isArray(r)){a="afterArrayValue"}else{a="afterPropertyValue"}}}function pop(){u.pop();var e=u[u.length-1];if(e==null){a="end"}else if(Array.isArray(e)){a="afterArrayValue"}else{a="afterPropertyValue"}}function invalidChar(e){if(e===undefined){return syntaxError("JSON5: invalid end of input at "+h+":"+p)}return syntaxError("JSON5: invalid character '"+formatChar(e)+"' at "+h+":"+p)}function invalidEOF(){return syntaxError("JSON5: invalid end of input at "+h+":"+p)}function invalidIdentifier(){p-=5;return syntaxError("JSON5: invalid identifier character at "+h+":"+p)}function separatorChar(e){console.warn("JSON5: '"+e+"' is not valid ECMAScript; consider escaping")}function formatChar(e){var t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e]){return t[e]}if(e<" "){var r=e.charCodeAt(0).toString(16);return"\\x"+("00"+r).substring(r.length)}return e}function syntaxError(e){var t=new SyntaxError(e);t.lineNumber=h;t.columnNumber=p;return t}e.exports=t["default"]},749:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var s=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t["default"]=stringify;var n=r(7393);var i=_interopRequireWildcard(n);function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t.default=e;return t}}function stringify(e,t,r){var n=[];var o="";var a=void 0;var u=void 0;var l="";var h=void 0;if(t!=null&&(typeof t==="undefined"?"undefined":s(t))==="object"&&!Array.isArray(t)){r=t.space;h=t.quote;t=t.replacer}if(typeof t==="function"){u=t}else if(Array.isArray(t)){a=[];var p=true;var d=false;var m=undefined;try{for(var y=t[Symbol.iterator](),g;!(p=(g=y.next()).done);p=true){var v=g.value;var b=void 0;if(typeof v==="string"){b=v}else if(typeof v==="number"||v instanceof String||v instanceof Number){b=String(v)}if(b!==undefined&&a.indexOf(b)<0){a.push(b)}}}catch(e){d=true;m=e}finally{try{if(!p&&y.return){y.return()}}finally{if(d){throw m}}}}if(r instanceof Number){r=Number(r)}else if(r instanceof String){r=String(r)}if(typeof r==="number"){if(r>0){r=Math.min(10,Math.floor(r));l=" ".substr(0,r)}}else if(typeof r==="string"){l=r.substr(0,10)}return serializeProperty("",{"":e});function serializeProperty(e,t){var r=t[e];if(r!=null){if(typeof r.toJSON5==="function"){r=r.toJSON5(e)}else if(typeof r.toJSON==="function"){r=r.toJSON(e)}}if(u){r=u.call(t,e,r)}if(r instanceof Number){r=Number(r)}else if(r instanceof String){r=String(r)}else if(r instanceof Boolean){r=r.valueOf()}switch(r){case null:return"null";case true:return"true";case false:return"false"}if(typeof r==="string"){return quoteString(r,false)}if(typeof r==="number"){return String(r)}if((typeof r==="undefined"?"undefined":s(r))==="object"){return Array.isArray(r)?serializeArray(r):serializeObject(r)}return undefined}function quoteString(e){var t={"'":.1,'"':.2};var r={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};var s="";var n=true;var i=false;var o=undefined;try{for(var a=e[Symbol.iterator](),u;!(n=(u=a.next()).done);n=true){var l=u.value;switch(l){case"'":case'"':t[l]++;s+=l;continue}if(r[l]){s+=r[l];continue}if(l<" "){var p=l.charCodeAt(0).toString(16);s+="\\x"+("00"+p).substring(p.length);continue}s+=l}}catch(e){i=true;o=e}finally{try{if(!n&&a.return){a.return()}}finally{if(i){throw o}}}var d=h||Object.keys(t).reduce((function(e,r){return t[e]<t[r]?e:r}));s=s.replace(new RegExp(d,"g"),r[d]);return d+s+d}function serializeObject(e){if(n.indexOf(e)>=0){throw TypeError("Converting circular structure to JSON5")}n.push(e);var t=o;o=o+l;var r=a||Object.keys(e);var s=[];var i=true;var u=false;var h=undefined;try{for(var p=r[Symbol.iterator](),d;!(i=(d=p.next()).done);i=true){var m=d.value;var y=serializeProperty(m,e);if(y!==undefined){var g=serializeKey(m)+":";if(l!==""){g+=" "}g+=y;s.push(g)}}}catch(e){u=true;h=e}finally{try{if(!i&&p.return){p.return()}}finally{if(u){throw h}}}var v=void 0;if(s.length===0){v="{}"}else{var b=void 0;if(l===""){b=s.join(",");v="{"+b+"}"}else{var w=",\n"+o;b=s.join(w);v="{\n"+o+b+",\n"+t+"}"}}n.pop();o=t;return v}function serializeKey(e){if(e.length===0){return quoteString(e,true)}var t=String.fromCodePoint(e.codePointAt(0));if(!i.isIdStartChar(t)){return quoteString(e,true)}for(var r=t.length;r<e.length;r++){if(!i.isIdContinueChar(String.fromCodePoint(e.codePointAt(r)))){return quoteString(e,true)}}return e}function serializeArray(e){if(n.indexOf(e)>=0){throw TypeError("Converting circular structure to JSON5")}n.push(e);var t=o;o=o+l;var r=[];for(var s=0;s<e.length;s++){var i=serializeProperty(String(s),e);r.push(i!==undefined?i:"null")}var a=void 0;if(r.length===0){a="[]"}else{if(l===""){var u=r.join(",");a="["+u+"]"}else{var h=",\n"+o;var p=r.join(h);a="[\n"+o+p+",\n"+t+"]"}}n.pop();o=t;return a}}e.exports=t["default"]},1927:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=t.Space_Separator=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/;var s=t.ID_Start=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/;var n=t.ID_Continue=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},7393:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isSpaceSeparator=isSpaceSeparator;t.isIdStartChar=isIdStartChar;t.isIdContinueChar=isIdContinueChar;t.isDigit=isDigit;t.isHexDigit=isHexDigit;var s=r(1927);var n=_interopRequireWildcard(s);function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t.default=e;return t}}function isSpaceSeparator(e){return n.Space_Separator.test(e)}function isIdStartChar(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="$"||e==="_"||n.ID_Start.test(e)}function isIdContinueChar(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="$"||e==="_"||e==="‌"||e==="‍"||n.ID_Continue.test(e)}function isDigit(e){return/[0-9]/.test(e)}function isHexDigit(e){return/[0-9A-Fa-f]/.test(e)}},6160:(e,t,r)=>{let s;try{s=r(7758)}catch(e){s=r(7147)}const n=r(9046);const{stringify:i,stripBom:o}=r(5902);async function _readFile(e,t={}){if(typeof t==="string"){t={encoding:t}}const r=t.fs||s;const i="throws"in t?t.throws:true;let a=await n.fromCallback(r.readFile)(e,t);a=o(a);let u;try{u=JSON.parse(a,t?t.reviver:null)}catch(t){if(i){t.message=`${e}: ${t.message}`;throw t}else{return null}}return u}const a=n.fromPromise(_readFile);function readFileSync(e,t={}){if(typeof t==="string"){t={encoding:t}}const r=t.fs||s;const n="throws"in t?t.throws:true;try{let s=r.readFileSync(e,t);s=o(s);return JSON.parse(s,t.reviver)}catch(t){if(n){t.message=`${e}: ${t.message}`;throw t}else{return null}}}async function _writeFile(e,t,r={}){const o=r.fs||s;const a=i(t,r);await n.fromCallback(o.writeFile)(e,a,r)}const u=n.fromPromise(_writeFile);function writeFileSync(e,t,r={}){const n=r.fs||s;const o=i(t,r);return n.writeFileSync(e,o,r)}const l={readFile:a,readFileSync:readFileSync,writeFile:u,writeFileSync:writeFileSync};e.exports=l},5902:e=>{function stringify(e,t={}){const r=t.EOL||"\n";const s=JSON.stringify(e,t?t.replacer:null,t.spaces);return s.replace(/\n/g,r)+r}function stripBom(e){if(Buffer.isBuffer(e))e=e.toString("utf8");return e.replace(/^\uFEFF/,"")}e.exports={stringify:stringify,stripBom:stripBom}},9971:(e,t,r)=>{"use strict";const s=r(2361);const n=r(2820);const loadStore=e=>{const t={redis:"@keyv/redis",mongodb:"@keyv/mongo",mongo:"@keyv/mongo",sqlite:"@keyv/sqlite",postgresql:"@keyv/postgres",postgres:"@keyv/postgres",mysql:"@keyv/mysql"};if(e.adapter||e.uri){const r=e.adapter||/^[^:]*/.exec(e.uri)[0];return new(require(t[r]))(e)}return new Map};class Keyv extends s{constructor(e,t){super();this.opts=Object.assign({namespace:"keyv",serialize:n.stringify,deserialize:n.parse},typeof e==="string"?{uri:e}:e,t);if(!this.opts.store){const e=Object.assign({},this.opts);this.opts.store=loadStore(e)}if(typeof this.opts.store.on==="function"){this.opts.store.on("error",(e=>this.emit("error",e)))}this.opts.store.namespace=this.opts.namespace}_getKeyPrefix(e){return`${this.opts.namespace}:${e}`}get(e,t){const r=this._getKeyPrefix(e);const{store:s}=this.opts;return Promise.resolve().then((()=>s.get(r))).then((e=>typeof e==="string"?this.opts.deserialize(e):e)).then((r=>{if(r===undefined){return undefined}if(typeof r.expires==="number"&&Date.now()>r.expires){this.delete(e);return undefined}return t&&t.raw?r:r.value}))}set(e,t,r){const s=this._getKeyPrefix(e);if(typeof r==="undefined"){r=this.opts.ttl}if(r===0){r=undefined}const{store:n}=this.opts;return Promise.resolve().then((()=>{const e=typeof r==="number"?Date.now()+r:null;t={value:t,expires:e};return this.opts.serialize(t)})).then((e=>n.set(s,e,r))).then((()=>true))}delete(e){const t=this._getKeyPrefix(e);const{store:r}=this.opts;return Promise.resolve().then((()=>r.delete(t)))}clear(){const{store:e}=this.opts;return Promise.resolve().then((()=>e.clear()))}}e.exports=Keyv},5215:e=>{"use strict";const{FORCE_COLOR:t,NODE_DISABLE_COLORS:r,TERM:s}=process.env;const n={enabled:!r&&s!=="dumb"&&t!=="0",reset:init(0,0),bold:init(1,22),dim:init(2,22),italic:init(3,23),underline:init(4,24),inverse:init(7,27),hidden:init(8,28),strikethrough:init(9,29),black:init(30,39),red:init(31,39),green:init(32,39),yellow:init(33,39),blue:init(34,39),magenta:init(35,39),cyan:init(36,39),white:init(37,39),gray:init(90,39),grey:init(90,39),bgBlack:init(40,49),bgRed:init(41,49),bgGreen:init(42,49),bgYellow:init(43,49),bgBlue:init(44,49),bgMagenta:init(45,49),bgCyan:init(46,49),bgWhite:init(47,49)};function run(e,t){let r=0,s,n="",i="";for(;r<e.length;r++){s=e[r];n+=s.open;i+=s.close;if(t.includes(s.close)){t=t.replace(s.rgx,s.close+s.open)}}return n+t+i}function chain(e,t){let r={has:e,keys:t};r.reset=n.reset.bind(r);r.bold=n.bold.bind(r);r.dim=n.dim.bind(r);r.italic=n.italic.bind(r);r.underline=n.underline.bind(r);r.inverse=n.inverse.bind(r);r.hidden=n.hidden.bind(r);r.strikethrough=n.strikethrough.bind(r);r.black=n.black.bind(r);r.red=n.red.bind(r);r.green=n.green.bind(r);r.yellow=n.yellow.bind(r);r.blue=n.blue.bind(r);r.magenta=n.magenta.bind(r);r.cyan=n.cyan.bind(r);r.white=n.white.bind(r);r.gray=n.gray.bind(r);r.grey=n.grey.bind(r);r.bgBlack=n.bgBlack.bind(r);r.bgRed=n.bgRed.bind(r);r.bgGreen=n.bgGreen.bind(r);r.bgYellow=n.bgYellow.bind(r);r.bgBlue=n.bgBlue.bind(r);r.bgMagenta=n.bgMagenta.bind(r);r.bgCyan=n.bgCyan.bind(r);r.bgWhite=n.bgWhite.bind(r);return r}function init(e,t){let r={open:`[${e}m`,close:`[${t}m`,rgx:new RegExp(`\\x1b\\[${t}m`,"g")};return function(t){if(this!==void 0&&this.has!==void 0){this.has.includes(e)||(this.has.push(e),this.keys.push(r));return t===void 0?this:n.enabled?run(this.keys,t+""):t+""}return t===void 0?chain([e],[r]):n.enabled?run([r],t+""):t+""}}e.exports=n},5209:(e,t,r)=>{var s=r(1789),n=r(712),i=r(5395),o=r(5232),a=r(7320);function Hash(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var s=e[t];this.set(s[0],s[1])}}Hash.prototype.clear=s;Hash.prototype["delete"]=n;Hash.prototype.get=i;Hash.prototype.has=o;Hash.prototype.set=a;e.exports=Hash},6608:(e,t,r)=>{var s=r(9792),n=r(7716),i=r(5789),o=r(9386),a=r(7399);function ListCache(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var s=e[t];this.set(s[0],s[1])}}ListCache.prototype.clear=s;ListCache.prototype["delete"]=n;ListCache.prototype.get=i;ListCache.prototype.has=o;ListCache.prototype.set=a;e.exports=ListCache},881:(e,t,r)=>{var s=r(4479),n=r(9882);var i=s(n,"Map");e.exports=i},938:(e,t,r)=>{var s=r(1610),n=r(6657),i=r(1372),o=r(609),a=r(5582);function MapCache(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t<r){var s=e[t];this.set(s[0],s[1])}}MapCache.prototype.clear=s;MapCache.prototype["delete"]=n;MapCache.prototype.get=i;MapCache.prototype.has=o;MapCache.prototype.set=a;e.exports=MapCache},5323:(e,t,r)=>{var s=r(6608),n=r(2843),i=r(4717),o=r(21),a=r(3910),u=r(9955);function Stack(e){var t=this.__data__=new s(e);this.size=t.size}Stack.prototype.clear=n;Stack.prototype["delete"]=i;Stack.prototype.get=o;Stack.prototype.has=a;Stack.prototype.set=u;e.exports=Stack},9213:(e,t,r)=>{var s=r(9882);var n=s.Symbol;e.exports=n},3261:(e,t,r)=>{var s=r(9882);var n=s.Uint8Array;e.exports=n},9647:e=>{function apply(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}e.exports=apply},2237:(e,t,r)=>{var s=r(7765),n=r(8495),i=r(4869),o=r(4190),a=r(2936),u=r(2496);var l=Object.prototype;var h=l.hasOwnProperty;function arrayLikeKeys(e,t){var r=i(e),l=!r&&n(e),p=!r&&!l&&o(e),d=!r&&!l&&!p&&u(e),m=r||l||p||d,y=m?s(e.length,String):[],g=y.length;for(var v in e){if((t||h.call(e,v))&&!(m&&(v=="length"||p&&(v=="offset"||v=="parent")||d&&(v=="buffer"||v=="byteLength"||v=="byteOffset")||a(v,g)))){y.push(v)}}return y}e.exports=arrayLikeKeys},4356:e=>{function arrayMap(e,t){var r=-1,s=e==null?0:e.length,n=Array(s);while(++r<s){n[r]=t(e[r],r,e)}return n}e.exports=arrayMap},1950:(e,t,r)=>{var s=r(3868),n=r(1901);function assignMergeValue(e,t,r){if(r!==undefined&&!n(e[t],r)||r===undefined&&!(t in e)){s(e,t,r)}}e.exports=assignMergeValue},9725:(e,t,r)=>{var s=r(3868),n=r(1901);var i=Object.prototype;var o=i.hasOwnProperty;function assignValue(e,t,r){var i=e[t];if(!(o.call(e,t)&&n(i,r))||r===undefined&&!(t in e)){s(e,t,r)}}e.exports=assignValue},6752:(e,t,r)=>{var s=r(1901);function assocIndexOf(e,t){var r=e.length;while(r--){if(s(e[r][0],t)){return r}}return-1}e.exports=assocIndexOf},3868:(e,t,r)=>{var s=r(416);function baseAssignValue(e,t,r){if(t=="__proto__"&&s){s(e,t,{configurable:true,enumerable:true,value:r,writable:true})}else{e[t]=r}}e.exports=baseAssignValue},6706:(e,t,r)=>{var s=r(3334);var n=Object.create;var i=function(){function object(){}return function(e){if(!s(e)){return{}}if(n){return n(e)}object.prototype=e;var t=new object;object.prototype=undefined;return t}}();e.exports=i},6588:(e,t,r)=>{var s=r(5709);var n=s();e.exports=n},5758:(e,t,r)=>{var s=r(2688),n=r(9071);function baseGet(e,t){t=s(t,e);var r=0,i=t.length;while(e!=null&&r<i){e=e[n(t[r++])]}return r&&r==i?e:undefined}e.exports=baseGet},7497:(e,t,r)=>{var s=r(9213),n=r(923),i=r(4200);var o="[object Null]",a="[object Undefined]";var u=s?s.toStringTag:undefined;function baseGetTag(e){if(e==null){return e===undefined?a:o}return u&&u in Object(e)?n(e):i(e)}e.exports=baseGetTag},2177:(e,t,r)=>{var s=r(7497),n=r(5926);var i="[object Arguments]";function baseIsArguments(e){return n(e)&&s(e)==i}e.exports=baseIsArguments},411:(e,t,r)=>{var s=r(7799),n=r(9058),i=r(3334),o=r(6928);var a=/[\\^$.*+?()[\]{}|]/g;var u=/^\[object .+?Constructor\]$/;var l=Function.prototype,h=Object.prototype;var p=l.toString;var d=h.hasOwnProperty;var m=RegExp("^"+p.call(d).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative(e){if(!i(e)||n(e)){return false}var t=s(e)?m:u;return t.test(o(e))}e.exports=baseIsNative},1528:(e,t,r)=>{var s=r(7497),n=r(4530),i=r(5926);var o="[object Arguments]",a="[object Array]",u="[object Boolean]",l="[object Date]",h="[object Error]",p="[object Function]",d="[object Map]",m="[object Number]",y="[object Object]",g="[object RegExp]",v="[object Set]",b="[object String]",w="[object WeakMap]";var A="[object ArrayBuffer]",_="[object DataView]",S="[object Float32Array]",C="[object Float64Array]",D="[object Int8Array]",x="[object Int16Array]",R="[object Int32Array]",k="[object Uint8Array]",O="[object Uint8ClampedArray]",T="[object Uint16Array]",P="[object Uint32Array]";var M={};M[S]=M[C]=M[D]=M[x]=M[R]=M[k]=M[O]=M[T]=M[P]=true;M[o]=M[a]=M[A]=M[u]=M[_]=M[l]=M[h]=M[p]=M[d]=M[m]=M[y]=M[g]=M[v]=M[b]=M[w]=false;function baseIsTypedArray(e){return i(e)&&n(e.length)&&!!M[s(e)]}e.exports=baseIsTypedArray},297:(e,t,r)=>{var s=r(3334),n=r(10),i=r(5383);var o=Object.prototype;var a=o.hasOwnProperty;function baseKeysIn(e){if(!s(e)){return i(e)}var t=n(e),r=[];for(var o in e){if(!(o=="constructor"&&(t||!a.call(e,o)))){r.push(o)}}return r}e.exports=baseKeysIn},5451:(e,t,r)=>{var s=r(5323),n=r(1950),i=r(6588),o=r(5254),a=r(3334),u=r(9109),l=r(9020);function baseMerge(e,t,r,h,p){if(e===t){return}i(t,(function(i,u){p||(p=new s);if(a(i)){o(e,t,u,r,baseMerge,h,p)}else{var d=h?h(l(e,u),i,u+"",e,t,p):undefined;if(d===undefined){d=i}n(e,u,d)}}),u)}e.exports=baseMerge},5254:(e,t,r)=>{var s=r(1950),n=r(2974),i=r(7764),o=r(5157),a=r(1532),u=r(8495),l=r(4869),h=r(2015),p=r(4190),d=r(7799),m=r(3334),y=r(6169),g=r(2496),v=r(9020),b=r(9321);function baseMergeDeep(e,t,r,w,A,_,S){var C=v(e,r),D=v(t,r),x=S.get(D);if(x){s(e,r,x);return}var R=_?_(C,D,r+"",e,t,S):undefined;var k=R===undefined;if(k){var O=l(D),T=!O&&p(D),P=!O&&!T&&g(D);R=D;if(O||T||P){if(l(C)){R=C}else if(h(C)){R=o(C)}else if(T){k=false;R=n(D,true)}else if(P){k=false;R=i(D,true)}else{R=[]}}else if(y(D)||u(D)){R=C;if(u(C)){R=b(C)}else if(!m(C)||d(C)){R=a(D)}}else{k=false}}if(k){S.set(D,R);A(R,D,w,_,S);S["delete"](D)}s(e,r,R)}e.exports=baseMergeDeep},5979:(e,t,r)=>{var s=r(7822),n=r(2417),i=r(8416);function baseRest(e,t){return i(n(e,t,s),e+"")}e.exports=baseRest},8580:(e,t,r)=>{var s=r(9725),n=r(2688),i=r(2936),o=r(3334),a=r(9071);function baseSet(e,t,r,u){if(!o(e)){return e}t=n(t,e);var l=-1,h=t.length,p=h-1,d=e;while(d!=null&&++l<h){var m=a(t[l]),y=r;if(m==="__proto__"||m==="constructor"||m==="prototype"){return e}if(l!=p){var g=d[m];y=u?u(g,m,d):undefined;if(y===undefined){y=o(g)?g:i(t[l+1])?[]:{}}}s(d,m,y);d=d[m]}return e}e.exports=baseSet},979:(e,t,r)=>{var s=r(5946),n=r(416),i=r(7822);var o=!n?i:function(e,t){return n(e,"toString",{configurable:true,enumerable:false,value:s(t),writable:true})};e.exports=o},7765:e=>{function baseTimes(e,t){var r=-1,s=Array(e);while(++r<e){s[r]=t(r)}return s}e.exports=baseTimes},6792:(e,t,r)=>{var s=r(9213),n=r(4356),i=r(4869),o=r(6403);var a=1/0;var u=s?s.prototype:undefined,l=u?u.toString:undefined;function baseToString(e){if(typeof e=="string"){return e}if(i(e)){return n(e,baseToString)+""}if(o(e)){return l?l.call(e):""}var t=e+"";return t=="0"&&1/e==-a?"-0":t}e.exports=baseToString},9258:e=>{function baseUnary(e){return function(t){return e(t)}}e.exports=baseUnary},2688:(e,t,r)=>{var s=r(4869),n=r(9084),i=r(1853),o=r(2931);function castPath(e,t){if(s(e)){return e}return n(e,t)?[e]:i(o(e))}e.exports=castPath},1094:(e,t,r)=>{var s=r(3261);function cloneArrayBuffer(e){var t=new e.constructor(e.byteLength);new s(t).set(new s(e));return t}e.exports=cloneArrayBuffer},2974:(e,t,r)=>{e=r.nmd(e);var s=r(9882);var n=true&&t&&!t.nodeType&&t;var i=n&&"object"=="object"&&e&&!e.nodeType&&e;var o=i&&i.exports===n;var a=o?s.Buffer:undefined,u=a?a.allocUnsafe:undefined;function cloneBuffer(e,t){if(t){return e.slice()}var r=e.length,s=u?u(r):new e.constructor(r);e.copy(s);return s}e.exports=cloneBuffer},7764:(e,t,r)=>{var s=r(1094);function cloneTypedArray(e,t){var r=t?s(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}e.exports=cloneTypedArray},5157:e=>{function copyArray(e,t){var r=-1,s=e.length;t||(t=Array(s));while(++r<s){t[r]=e[r]}return t}e.exports=copyArray},6388:(e,t,r)=>{var s=r(9725),n=r(3868);function copyObject(e,t,r,i){var o=!r;r||(r={});var a=-1,u=t.length;while(++a<u){var l=t[a];var h=i?i(r[l],e[l],l,r,e):undefined;if(h===undefined){h=e[l]}if(o){n(r,l,h)}else{s(r,l,h)}}return r}e.exports=copyObject},8380:(e,t,r)=>{var s=r(9882);var n=s["__core-js_shared__"];e.exports=n},1911:(e,t,r)=>{var s=r(5979),n=r(8494);function createAssigner(e){return s((function(t,r){var s=-1,i=r.length,o=i>1?r[i-1]:undefined,a=i>2?r[2]:undefined;o=e.length>3&&typeof o=="function"?(i--,o):undefined;if(a&&n(r[0],r[1],a)){o=i<3?undefined:o;i=1}t=Object(t);while(++s<i){var u=r[s];if(u){e(t,u,s,o)}}return t}))}e.exports=createAssigner},5709:e=>{function createBaseFor(e){return function(t,r,s){var n=-1,i=Object(t),o=s(t),a=o.length;while(a--){var u=o[e?a:++n];if(r(i[u],u,i)===false){break}}return t}}e.exports=createBaseFor},416:(e,t,r)=>{var s=r(4479);var n=function(){try{var e=s(Object,"defineProperty");e({},"",{});return e}catch(e){}}();e.exports=n},2085:e=>{var t=typeof global=="object"&&global&&global.Object===Object&&global;e.exports=t},9980:(e,t,r)=>{var s=r(3308);function getMapData(e,t){var r=e.__data__;return s(t)?r[typeof t=="string"?"string":"hash"]:r.map}e.exports=getMapData},4479:(e,t,r)=>{var s=r(411),n=r(3542);function getNative(e,t){var r=n(e,t);return s(r)?r:undefined}e.exports=getNative},6271:(e,t,r)=>{var s=r(6320);var n=s(Object.getPrototypeOf,Object);e.exports=n},923:(e,t,r)=>{var s=r(9213);var n=Object.prototype;var i=n.hasOwnProperty;var o=n.toString;var a=s?s.toStringTag:undefined;function getRawTag(e){var t=i.call(e,a),r=e[a];try{e[a]=undefined;var s=true}catch(e){}var n=o.call(e);if(s){if(t){e[a]=r}else{delete e[a]}}return n}e.exports=getRawTag},3542:e=>{function getValue(e,t){return e==null?undefined:e[t]}e.exports=getValue},1789:(e,t,r)=>{var s=r(3041);function hashClear(){this.__data__=s?s(null):{};this.size=0}e.exports=hashClear},712:e=>{function hashDelete(e){var t=this.has(e)&&delete this.__data__[e];this.size-=t?1:0;return t}e.exports=hashDelete},5395:(e,t,r)=>{var s=r(3041);var n="__lodash_hash_undefined__";var i=Object.prototype;var o=i.hasOwnProperty;function hashGet(e){var t=this.__data__;if(s){var r=t[e];return r===n?undefined:r}return o.call(t,e)?t[e]:undefined}e.exports=hashGet},5232:(e,t,r)=>{var s=r(3041);var n=Object.prototype;var i=n.hasOwnProperty;function hashHas(e){var t=this.__data__;return s?t[e]!==undefined:i.call(t,e)}e.exports=hashHas},7320:(e,t,r)=>{var s=r(3041);var n="__lodash_hash_undefined__";function hashSet(e,t){var r=this.__data__;this.size+=this.has(e)?0:1;r[e]=s&&t===undefined?n:t;return this}e.exports=hashSet},1532:(e,t,r)=>{var s=r(6706),n=r(6271),i=r(10);function initCloneObject(e){return typeof e.constructor=="function"&&!i(e)?s(n(e)):{}}e.exports=initCloneObject},2936:e=>{var t=9007199254740991;var r=/^(?:0|[1-9]\d*)$/;function isIndex(e,s){var n=typeof e;s=s==null?t:s;return!!s&&(n=="number"||n!="symbol"&&r.test(e))&&(e>-1&&e%1==0&&e<s)}e.exports=isIndex},8494:(e,t,r)=>{var s=r(1901),n=r(8017),i=r(2936),o=r(3334);function isIterateeCall(e,t,r){if(!o(r)){return false}var a=typeof t;if(a=="number"?n(r)&&i(t,r.length):a=="string"&&t in r){return s(r[t],e)}return false}e.exports=isIterateeCall},9084:(e,t,r)=>{var s=r(4869),n=r(6403);var i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;function isKey(e,t){if(s(e)){return false}var r=typeof e;if(r=="number"||r=="symbol"||r=="boolean"||e==null||n(e)){return true}return o.test(e)||!i.test(e)||t!=null&&e in Object(t)}e.exports=isKey},3308:e=>{function isKeyable(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}e.exports=isKeyable},9058:(e,t,r)=>{var s=r(8380);var n=function(){var e=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function isMasked(e){return!!n&&n in e}e.exports=isMasked},10:e=>{var t=Object.prototype;function isPrototype(e){var r=e&&e.constructor,s=typeof r=="function"&&r.prototype||t;return e===s}e.exports=isPrototype},9792:e=>{function listCacheClear(){this.__data__=[];this.size=0}e.exports=listCacheClear},7716:(e,t,r)=>{var s=r(6752);var n=Array.prototype;var i=n.splice;function listCacheDelete(e){var t=this.__data__,r=s(t,e);if(r<0){return false}var n=t.length-1;if(r==n){t.pop()}else{i.call(t,r,1)}--this.size;return true}e.exports=listCacheDelete},5789:(e,t,r)=>{var s=r(6752);function listCacheGet(e){var t=this.__data__,r=s(t,e);return r<0?undefined:t[r][1]}e.exports=listCacheGet},9386:(e,t,r)=>{var s=r(6752);function listCacheHas(e){return s(this.__data__,e)>-1}e.exports=listCacheHas},7399:(e,t,r)=>{var s=r(6752);function listCacheSet(e,t){var r=this.__data__,n=s(r,e);if(n<0){++this.size;r.push([e,t])}else{r[n][1]=t}return this}e.exports=listCacheSet},1610:(e,t,r)=>{var s=r(5209),n=r(6608),i=r(881);function mapCacheClear(){this.size=0;this.__data__={hash:new s,map:new(i||n),string:new s}}e.exports=mapCacheClear},6657:(e,t,r)=>{var s=r(9980);function mapCacheDelete(e){var t=s(this,e)["delete"](e);this.size-=t?1:0;return t}e.exports=mapCacheDelete},1372:(e,t,r)=>{var s=r(9980);function mapCacheGet(e){return s(this,e).get(e)}e.exports=mapCacheGet},609:(e,t,r)=>{var s=r(9980);function mapCacheHas(e){return s(this,e).has(e)}e.exports=mapCacheHas},5582:(e,t,r)=>{var s=r(9980);function mapCacheSet(e,t){var r=s(this,e),n=r.size;r.set(e,t);this.size+=r.size==n?0:1;return this}e.exports=mapCacheSet},9422:(e,t,r)=>{var s=r(9885);var n=500;function memoizeCapped(e){var t=s(e,(function(e){if(r.size===n){r.clear()}return e}));var r=t.cache;return t}e.exports=memoizeCapped},3041:(e,t,r)=>{var s=r(4479);var n=s(Object,"create");e.exports=n},5383:e=>{function nativeKeysIn(e){var t=[];if(e!=null){for(var r in Object(e)){t.push(r)}}return t}e.exports=nativeKeysIn},4643:(e,t,r)=>{e=r.nmd(e);var s=r(2085);var n=true&&t&&!t.nodeType&&t;var i=n&&"object"=="object"&&e&&!e.nodeType&&e;var o=i&&i.exports===n;var a=o&&s.process;var u=function(){try{var e=i&&i.require&&i.require("util").types;if(e){return e}return a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=u},4200:e=>{var t=Object.prototype;var r=t.toString;function objectToString(e){return r.call(e)}e.exports=objectToString},6320:e=>{function overArg(e,t){return function(r){return e(t(r))}}e.exports=overArg},2417:(e,t,r)=>{var s=r(9647);var n=Math.max;function overRest(e,t,r){t=n(t===undefined?e.length-1:t,0);return function(){var i=arguments,o=-1,a=n(i.length-t,0),u=Array(a);while(++o<a){u[o]=i[t+o]}o=-1;var l=Array(t+1);while(++o<t){l[o]=i[o]}l[t]=r(u);return s(e,this,l)}}e.exports=overRest},9882:(e,t,r)=>{var s=r(2085);var n=typeof self=="object"&&self&&self.Object===Object&&self;var i=s||n||Function("return this")();e.exports=i},9020:e=>{function safeGet(e,t){if(t==="constructor"&&typeof e[t]==="function"){return}if(t=="__proto__"){return}return e[t]}e.exports=safeGet},8416:(e,t,r)=>{var s=r(979),n=r(7882);var i=n(s);e.exports=i},7882:e=>{var t=800,r=16;var s=Date.now;function shortOut(e){var n=0,i=0;return function(){var o=s(),a=r-(o-i);i=o;if(a>0){if(++n>=t){return arguments[0]}}else{n=0}return e.apply(undefined,arguments)}}e.exports=shortOut},2843:(e,t,r)=>{var s=r(6608);function stackClear(){this.__data__=new s;this.size=0}e.exports=stackClear},4717:e=>{function stackDelete(e){var t=this.__data__,r=t["delete"](e);this.size=t.size;return r}e.exports=stackDelete},21:e=>{function stackGet(e){return this.__data__.get(e)}e.exports=stackGet},3910:e=>{function stackHas(e){return this.__data__.has(e)}e.exports=stackHas},9955:(e,t,r)=>{var s=r(6608),n=r(881),i=r(938);var o=200;function stackSet(e,t){var r=this.__data__;if(r instanceof s){var a=r.__data__;if(!n||a.length<o-1){a.push([e,t]);this.size=++r.size;return this}r=this.__data__=new i(a)}r.set(e,t);this.size=r.size;return this}e.exports=stackSet},1853:(e,t,r)=>{var s=r(9422);var n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var i=/\\(\\)?/g;var o=s((function(e){var t=[];if(e.charCodeAt(0)===46){t.push("")}e.replace(n,(function(e,r,s,n){t.push(s?n.replace(i,"$1"):r||e)}));return t}));e.exports=o},9071:(e,t,r)=>{var s=r(6403);var n=1/0;function toKey(e){if(typeof e=="string"||s(e)){return e}var t=e+"";return t=="0"&&1/e==-n?"-0":t}e.exports=toKey},6928:e=>{var t=Function.prototype;var r=t.toString;function toSource(e){if(e!=null){try{return r.call(e)}catch(e){}try{return e+""}catch(e){}}return""}e.exports=toSource},5946:e=>{function constant(e){return function(){return e}}e.exports=constant},1901:e=>{function eq(e,t){return e===t||e!==e&&t!==t}e.exports=eq},6908:(e,t,r)=>{var s=r(5758);function get(e,t,r){var n=e==null?undefined:s(e,t);return n===undefined?r:n}e.exports=get},7822:e=>{function identity(e){return e}e.exports=identity},8495:(e,t,r)=>{var s=r(2177),n=r(5926);var i=Object.prototype;var o=i.hasOwnProperty;var a=i.propertyIsEnumerable;var u=s(function(){return arguments}())?s:function(e){return n(e)&&o.call(e,"callee")&&!a.call(e,"callee")};e.exports=u},4869:e=>{var t=Array.isArray;e.exports=t},8017:(e,t,r)=>{var s=r(7799),n=r(4530);function isArrayLike(e){return e!=null&&n(e.length)&&!s(e)}e.exports=isArrayLike},2015:(e,t,r)=>{var s=r(8017),n=r(5926);function isArrayLikeObject(e){return n(e)&&s(e)}e.exports=isArrayLikeObject},4190:(e,t,r)=>{e=r.nmd(e);var s=r(9882),n=r(7744);var i=true&&t&&!t.nodeType&&t;var o=i&&"object"=="object"&&e&&!e.nodeType&&e;var a=o&&o.exports===i;var u=a?s.Buffer:undefined;var l=u?u.isBuffer:undefined;var h=l||n;e.exports=h},7799:(e,t,r)=>{var s=r(7497),n=r(3334);var i="[object AsyncFunction]",o="[object Function]",a="[object GeneratorFunction]",u="[object Proxy]";function isFunction(e){if(!n(e)){return false}var t=s(e);return t==o||t==a||t==i||t==u}e.exports=isFunction},4530:e=>{var t=9007199254740991;function isLength(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=t}e.exports=isLength},3334:e=>{function isObject(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}e.exports=isObject},5926:e=>{function isObjectLike(e){return e!=null&&typeof e=="object"}e.exports=isObjectLike},6169:(e,t,r)=>{var s=r(7497),n=r(6271),i=r(5926);var o="[object Object]";var a=Function.prototype,u=Object.prototype;var l=a.toString;var h=u.hasOwnProperty;var p=l.call(Object);function isPlainObject(e){if(!i(e)||s(e)!=o){return false}var t=n(e);if(t===null){return true}var r=h.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&l.call(r)==p}e.exports=isPlainObject},6403:(e,t,r)=>{var s=r(7497),n=r(5926);var i="[object Symbol]";function isSymbol(e){return typeof e=="symbol"||n(e)&&s(e)==i}e.exports=isSymbol},2496:(e,t,r)=>{var s=r(1528),n=r(9258),i=r(4643);var o=i&&i.isTypedArray;var a=o?n(o):s;e.exports=a},9109:(e,t,r)=>{var s=r(2237),n=r(297),i=r(8017);function keysIn(e){return i(e)?s(e,true):n(e)}e.exports=keysIn},9885:(e,t,r)=>{var s=r(938);var n="Expected a function";function memoize(e,t){if(typeof e!="function"||t!=null&&typeof t!="function"){throw new TypeError(n)}var memoized=function(){var r=arguments,s=t?t.apply(this,r):r[0],n=memoized.cache;if(n.has(s)){return n.get(s)}var i=e.apply(this,r);memoized.cache=n.set(s,i)||n;return i};memoized.cache=new(memoize.Cache||s);return memoized}memoize.Cache=s;e.exports=memoize},481:(e,t,r)=>{var s=r(5451),n=r(1911);var i=n((function(e,t,r){s(e,t,r)}));e.exports=i},2900:(e,t,r)=>{var s=r(8580);function set(e,t,r){return e==null?e:s(e,t,r)}e.exports=set},7744:e=>{function stubFalse(){return false}e.exports=stubFalse},9321:(e,t,r)=>{var s=r(6388),n=r(9109);function toPlainObject(e){return s(e,n(e))}e.exports=toPlainObject},2931:(e,t,r)=>{var s=r(6792);function toString(e){return e==null?"":s(e)}e.exports=toString},9662:e=>{"use strict";e.exports=e=>{const t={};for(const[r,s]of Object.entries(e)){t[r.toLowerCase()]=s}return t}},7129:(e,t,r)=>{"use strict";const s=r(1128);const n=Symbol("max");const i=Symbol("length");const o=Symbol("lengthCalculator");const a=Symbol("allowStale");const u=Symbol("maxAge");const l=Symbol("dispose");const h=Symbol("noDisposeOnSet");const p=Symbol("lruList");const d=Symbol("cache");const m=Symbol("updateAgeOnGet");const naiveLength=()=>1;class LRUCache{constructor(e){if(typeof e==="number")e={max:e};if(!e)e={};if(e.max&&(typeof e.max!=="number"||e.max<0))throw new TypeError("max must be a non-negative number");const t=this[n]=e.max||Infinity;const r=e.length||naiveLength;this[o]=typeof r!=="function"?naiveLength:r;this[a]=e.stale||false;if(e.maxAge&&typeof e.maxAge!=="number")throw new TypeError("maxAge must be a number");this[u]=e.maxAge||0;this[l]=e.dispose;this[h]=e.noDisposeOnSet||false;this[m]=e.updateAgeOnGet||false;this.reset()}set max(e){if(typeof e!=="number"||e<0)throw new TypeError("max must be a non-negative number");this[n]=e||Infinity;trim(this)}get max(){return this[n]}set allowStale(e){this[a]=!!e}get allowStale(){return this[a]}set maxAge(e){if(typeof e!=="number")throw new TypeError("maxAge must be a non-negative number");this[u]=e;trim(this)}get maxAge(){return this[u]}set lengthCalculator(e){if(typeof e!=="function")e=naiveLength;if(e!==this[o]){this[o]=e;this[i]=0;this[p].forEach((e=>{e.length=this[o](e.value,e.key);this[i]+=e.length}))}trim(this)}get lengthCalculator(){return this[o]}get length(){return this[i]}get itemCount(){return this[p].length}rforEach(e,t){t=t||this;for(let r=this[p].tail;r!==null;){const s=r.prev;forEachStep(this,e,r,t);r=s}}forEach(e,t){t=t||this;for(let r=this[p].head;r!==null;){const s=r.next;forEachStep(this,e,r,t);r=s}}keys(){return this[p].toArray().map((e=>e.key))}values(){return this[p].toArray().map((e=>e.value))}reset(){if(this[l]&&this[p]&&this[p].length){this[p].forEach((e=>this[l](e.key,e.value)))}this[d]=new Map;this[p]=new s;this[i]=0}dump(){return this[p].map((e=>isStale(this,e)?false:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[p]}set(e,t,r){r=r||this[u];if(r&&typeof r!=="number")throw new TypeError("maxAge must be a number");const s=r?Date.now():0;const a=this[o](t,e);if(this[d].has(e)){if(a>this[n]){del(this,this[d].get(e));return false}const o=this[d].get(e);const u=o.value;if(this[l]){if(!this[h])this[l](e,u.value)}u.now=s;u.maxAge=r;u.value=t;this[i]+=a-u.length;u.length=a;this.get(e);trim(this);return true}const m=new Entry(e,t,a,s,r);if(m.length>this[n]){if(this[l])this[l](e,t);return false}this[i]+=m.length;this[p].unshift(m);this[d].set(e,this[p].head);trim(this);return true}has(e){if(!this[d].has(e))return false;const t=this[d].get(e).value;return!isStale(this,t)}get(e){return get(this,e,true)}peek(e){return get(this,e,false)}pop(){const e=this[p].tail;if(!e)return null;del(this,e);return e.value}del(e){del(this,this[d].get(e))}load(e){this.reset();const t=Date.now();for(let r=e.length-1;r>=0;r--){const s=e[r];const n=s.e||0;if(n===0)this.set(s.k,s.v);else{const e=n-t;if(e>0){this.set(s.k,s.v,e)}}}}prune(){this[d].forEach(((e,t)=>get(this,t,false)))}}const get=(e,t,r)=>{const s=e[d].get(t);if(s){const t=s.value;if(isStale(e,t)){del(e,s);if(!e[a])return undefined}else{if(r){if(e[m])s.value.now=Date.now();e[p].unshiftNode(s)}}return t.value}};const isStale=(e,t)=>{if(!t||!t.maxAge&&!e[u])return false;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[u]&&r>e[u]};const trim=e=>{if(e[i]>e[n]){for(let t=e[p].tail;e[i]>e[n]&&t!==null;){const r=t.prev;del(e,t);t=r}}};const del=(e,t)=>{if(t){const r=t.value;if(e[l])e[l](r.key,r.value);e[i]-=r.length;e[d].delete(r.key);e[p].removeNode(t)}};class Entry{constructor(e,t,r,s,n){this.key=e;this.value=t;this.length=r;this.now=s;this.maxAge=n||0}}const forEachStep=(e,t,r,s)=>{let n=r.value;if(isStale(e,n)){del(e,r);if(!e[a])n=undefined}if(n)t.call(s,n.value,n.key,e)};e.exports=LRUCache},5114:e=>{"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next){yield e.value}}}},1128:(e,t,r)=>{"use strict";e.exports=Yallist;Yallist.Node=Node;Yallist.create=Yallist;function Yallist(e){var t=this;if(!(t instanceof Yallist)){t=new Yallist}t.tail=null;t.head=null;t.length=0;if(e&&typeof e.forEach==="function"){e.forEach((function(e){t.push(e)}))}else if(arguments.length>0){for(var r=0,s=arguments.length;r<s;r++){t.push(arguments[r])}}return t}Yallist.prototype.removeNode=function(e){if(e.list!==this){throw new Error("removing node which does not belong to this list")}var t=e.next;var r=e.prev;if(t){t.prev=r}if(r){r.next=t}if(e===this.head){this.head=t}if(e===this.tail){this.tail=r}e.list.length--;e.next=null;e.prev=null;e.list=null;return t};Yallist.prototype.unshiftNode=function(e){if(e===this.head){return}if(e.list){e.list.removeNode(e)}var t=this.head;e.list=this;e.next=t;if(t){t.prev=e}this.head=e;if(!this.tail){this.tail=e}this.length++};Yallist.prototype.pushNode=function(e){if(e===this.tail){return}if(e.list){e.list.removeNode(e)}var t=this.tail;e.list=this;e.prev=t;if(t){t.next=e}this.tail=e;if(!this.head){this.head=e}this.length++};Yallist.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++){push(this,arguments[e])}return this.length};Yallist.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++){unshift(this,arguments[e])}return this.length};Yallist.prototype.pop=function(){if(!this.tail){return undefined}var e=this.tail.value;this.tail=this.tail.prev;if(this.tail){this.tail.next=null}else{this.head=null}this.length--;return e};Yallist.prototype.shift=function(){if(!this.head){return undefined}var e=this.head.value;this.head=this.head.next;if(this.head){this.head.prev=null}else{this.tail=null}this.length--;return e};Yallist.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,s=0;r!==null;s++){e.call(t,r.value,s,this);r=r.next}};Yallist.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,s=this.length-1;r!==null;s--){e.call(t,r.value,s,this);r=r.prev}};Yallist.prototype.get=function(e){for(var t=0,r=this.head;r!==null&&t<e;t++){r=r.next}if(t===e&&r!==null){return r.value}};Yallist.prototype.getReverse=function(e){for(var t=0,r=this.tail;r!==null&&t<e;t++){r=r.prev}if(t===e&&r!==null){return r.value}};Yallist.prototype.map=function(e,t){t=t||this;var r=new Yallist;for(var s=this.head;s!==null;){r.push(e.call(t,s.value,this));s=s.next}return r};Yallist.prototype.mapReverse=function(e,t){t=t||this;var r=new Yallist;for(var s=this.tail;s!==null;){r.push(e.call(t,s.value,this));s=s.prev}return r};Yallist.prototype.reduce=function(e,t){var r;var s=this.head;if(arguments.length>1){r=t}else if(this.head){s=this.head.next;r=this.head.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var n=0;s!==null;n++){r=e(r,s.value,n);s=s.next}return r};Yallist.prototype.reduceReverse=function(e,t){var r;var s=this.tail;if(arguments.length>1){r=t}else if(this.tail){s=this.tail.prev;r=this.tail.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var n=this.length-1;s!==null;n--){r=e(r,s.value,n);s=s.prev}return r};Yallist.prototype.toArray=function(){var e=new Array(this.length);for(var t=0,r=this.head;r!==null;t++){e[t]=r.value;r=r.next}return e};Yallist.prototype.toArrayReverse=function(){var e=new Array(this.length);for(var t=0,r=this.tail;r!==null;t++){e[t]=r.value;r=r.prev}return e};Yallist.prototype.slice=function(e,t){t=t||this.length;if(t<0){t+=this.length}e=e||0;if(e<0){e+=this.length}var r=new Yallist;if(t<e||t<0){return r}if(e<0){e=0}if(t>this.length){t=this.length}for(var s=0,n=this.head;n!==null&&s<e;s++){n=n.next}for(;n!==null&&s<t;s++,n=n.next){r.push(n.value)}return r};Yallist.prototype.sliceReverse=function(e,t){t=t||this.length;if(t<0){t+=this.length}e=e||0;if(e<0){e+=this.length}var r=new Yallist;if(t<e||t<0){return r}if(e<0){e=0}if(t>this.length){t=this.length}for(var s=this.length,n=this.tail;n!==null&&s>t;s--){n=n.prev}for(;n!==null&&s>e;s--,n=n.prev){r.push(n.value)}return r};Yallist.prototype.splice=function(e,t){if(e>this.length){e=this.length-1}if(e<0){e=this.length+e}for(var r=0,s=this.head;s!==null&&r<e;r++){s=s.next}var n=[];for(var r=0;s&&r<t;r++){n.push(s.value);s=this.removeNode(s)}if(s===null){s=this.tail}if(s!==this.head&&s!==this.tail){s=s.prev}for(var r=2;r<arguments.length;r++){s=insert(this,s,arguments[r])}return n};Yallist.prototype.reverse=function(){var e=this.head;var t=this.tail;for(var r=e;r!==null;r=r.prev){var s=r.prev;r.prev=r.next;r.next=s}this.head=t;this.tail=e;return this};function insert(e,t,r){var s=t===e.head?new Node(r,null,t,e):new Node(r,t,t.next,e);if(s.next===null){e.tail=s}if(s.prev===null){e.head=s}e.length++;return s}function push(e,t){e.tail=new Node(t,e.tail,null,e);if(!e.head){e.head=e.tail}e.length++}function unshift(e,t){e.head=new Node(t,null,e.head,e);if(!e.tail){e.tail=e.head}e.length++}function Node(e,t,r,s){if(!(this instanceof Node)){return new Node(e,t,r,s)}this.list=s;this.value=e;if(t){t.next=this;this.prev=t}else{this.prev=null}if(r){r.prev=this;this.next=r}else{this.next=null}}try{r(5114)(Yallist)}catch(e){}},6228:(e,t,r)=>{"use strict";const s=r(3837);const n=r(610);const i=r(8569);const o=r(479);const isEmptyString=e=>typeof e==="string"&&(e===""||e==="./");const micromatch=(e,t,r)=>{t=[].concat(t);e=[].concat(e);let s=new Set;let n=new Set;let o=new Set;let a=0;let onResult=e=>{o.add(e.output);if(r&&r.onResult){r.onResult(e)}};for(let o=0;o<t.length;o++){let u=i(String(t[o]),{...r,onResult:onResult},true);let l=u.state.negated||u.state.negatedExtglob;if(l)a++;for(let t of e){let e=u(t,true);let r=l?!e.isMatch:e.isMatch;if(!r)continue;if(l){s.add(e.output)}else{s.delete(e.output);n.add(e.output)}}}let u=a===t.length?[...o]:[...n];let l=u.filter((e=>!s.has(e)));if(r&&l.length===0){if(r.failglob===true){throw new Error(`No matches found for "${t.join(", ")}"`)}if(r.nonull===true||r.nullglob===true){return r.unescape?t.map((e=>e.replace(/\\/g,""))):t}}return l};micromatch.match=micromatch;micromatch.matcher=(e,t)=>i(e,t);micromatch.isMatch=(e,t,r)=>i(t,r)(e);micromatch.any=micromatch.isMatch;micromatch.not=(e,t,r={})=>{t=[].concat(t).map(String);let s=new Set;let n=[];let onResult=e=>{if(r.onResult)r.onResult(e);n.push(e.output)};let i=micromatch(e,t,{...r,onResult:onResult});for(let e of n){if(!i.includes(e)){s.add(e)}}return[...s]};micromatch.contains=(e,t,r)=>{if(typeof e!=="string"){throw new TypeError(`Expected a string: "${s.inspect(e)}"`)}if(Array.isArray(t)){return t.some((t=>micromatch.contains(e,t,r)))}if(typeof t==="string"){if(isEmptyString(e)||isEmptyString(t)){return false}if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t)){return true}}return micromatch.isMatch(e,t,{...r,contains:true})};micromatch.matchKeys=(e,t,r)=>{if(!o.isObject(e)){throw new TypeError("Expected the first argument to be an object")}let s=micromatch(Object.keys(e),t,r);let n={};for(let t of s)n[t]=e[t];return n};micromatch.some=(e,t,r)=>{let s=[].concat(e);for(let e of[].concat(t)){let t=i(String(e),r);if(s.some((e=>t(e)))){return true}}return false};micromatch.every=(e,t,r)=>{let s=[].concat(e);for(let e of[].concat(t)){let t=i(String(e),r);if(!s.every((e=>t(e)))){return false}}return true};micromatch.all=(e,t,r)=>{if(typeof e!=="string"){throw new TypeError(`Expected a string: "${s.inspect(e)}"`)}return[].concat(t).every((t=>i(t,r)(e)))};micromatch.capture=(e,t,r)=>{let s=o.isWindows(r);let n=i.makeRe(String(e),{...r,capture:true});let a=n.exec(s?o.toPosixSlashes(t):t);if(a){return a.slice(1).map((e=>e===void 0?"":e))}};micromatch.makeRe=(...e)=>i.makeRe(...e);micromatch.scan=(...e)=>i.scan(...e);micromatch.parse=(e,t)=>{let r=[];for(let s of[].concat(e||[])){for(let e of n(String(s),t)){r.push(i.parse(e,t))}}return r};micromatch.braces=(e,t)=>{if(typeof e!=="string")throw new TypeError("Expected a string");if(t&&t.nobrace===true||!/\{.*\}/.test(e)){return[e]}return n(e,t)};micromatch.braceExpand=(e,t)=>{if(typeof e!=="string")throw new TypeError("Expected a string");return micromatch.braces(e,{...t,expand:true})};e.exports=micromatch},6047:e=>{"use strict";const mimicFn=(e,t)=>{for(const r of Reflect.ownKeys(t)){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}return e};e.exports=mimicFn;e.exports["default"]=mimicFn},2610:e=>{"use strict";const t=["aborted","complete","destroy","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];e.exports=(e,r)=>{const s=new Set(Object.keys(e).concat(t));for(const t of s){if(t in r){continue}r[t]=typeof e[t]==="function"?e[t].bind(e):e[t]}return r}},3973:(e,t,r)=>{e.exports=minimatch;minimatch.Minimatch=Minimatch;var s={sep:"/"};try{s=r(1017)}catch(e){}var n=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};var i=r(3717);var o={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};var a="[^/]";var u=a+"*?";var l="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";var h="(?:(?!(?:\\/|^)\\.).)*?";var p=charSet("().*{}+?[]^$\\!");function charSet(e){return e.split("").reduce((function(e,t){e[t]=true;return e}),{})}var d=/\/+/;minimatch.filter=filter;function filter(e,t){t=t||{};return function(r,s,n){return minimatch(r,e,t)}}function ext(e,t){e=e||{};t=t||{};var r={};Object.keys(t).forEach((function(e){r[e]=t[e]}));Object.keys(e).forEach((function(t){r[t]=e[t]}));return r}minimatch.defaults=function(e){if(!e||!Object.keys(e).length)return minimatch;var t=minimatch;var r=function minimatch(r,s,n){return t.minimatch(r,s,ext(e,n))};r.Minimatch=function Minimatch(r,s){return new t.Minimatch(r,ext(e,s))};return r};Minimatch.defaults=function(e){if(!e||!Object.keys(e).length)return Minimatch;return minimatch.defaults(e).Minimatch};function minimatch(e,t,r){if(typeof t!=="string"){throw new TypeError("glob pattern string required")}if(!r)r={};if(!r.nocomment&&t.charAt(0)==="#"){return false}if(t.trim()==="")return e==="";return new Minimatch(t,r).match(e)}function Minimatch(e,t){if(!(this instanceof Minimatch)){return new Minimatch(e,t)}if(typeof e!=="string"){throw new TypeError("glob pattern string required")}if(!t)t={};e=e.trim();if(s.sep!=="/"){e=e.split(s.sep).join("/")}this.options=t;this.set=[];this.pattern=e;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){if(this._made)return;var e=this.pattern;var t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=true;return}if(!e){this.empty=true;return}this.parseNegate();var r=this.globSet=this.braceExpand();if(t.debug)this.debug=console.error;this.debug(this.pattern,r);r=this.globParts=r.map((function(e){return e.split(d)}));this.debug(this.pattern,r);r=r.map((function(e,t,r){return e.map(this.parse,this)}),this);this.debug(this.pattern,r);r=r.filter((function(e){return e.indexOf(false)===-1}));this.debug(this.pattern,r);this.set=r}Minimatch.prototype.parseNegate=parseNegate;function parseNegate(){var e=this.pattern;var t=false;var r=this.options;var s=0;if(r.nonegate)return;for(var n=0,i=e.length;n<i&&e.charAt(n)==="!";n++){t=!t;s++}if(s)this.pattern=e.substr(s);this.negate=t}minimatch.braceExpand=function(e,t){return braceExpand(e,t)};Minimatch.prototype.braceExpand=braceExpand;function braceExpand(e,t){if(!t){if(this instanceof Minimatch){t=this.options}else{t={}}}e=typeof e==="undefined"?this.pattern:e;if(typeof e==="undefined"){throw new TypeError("undefined pattern")}if(t.nobrace||!e.match(/\{.*\}/)){return[e]}return i(e)}Minimatch.prototype.parse=parse;var m={};function parse(e,t){if(e.length>1024*64){throw new TypeError("pattern is too long")}var r=this.options;if(!r.noglobstar&&e==="**")return n;if(e==="")return"";var s="";var i=!!r.nocase;var l=false;var h=[];var d=[];var y;var g=false;var v=-1;var b=-1;var w=e.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";var A=this;function clearStateChar(){if(y){switch(y){case"*":s+=u;i=true;break;case"?":s+=a;i=true;break;default:s+="\\"+y;break}A.debug("clearStateChar %j %j",y,s);y=false}}for(var _=0,S=e.length,C;_<S&&(C=e.charAt(_));_++){this.debug("%s\t%s %s %j",e,_,s,C);if(l&&p[C]){s+="\\"+C;l=false;continue}switch(C){case"/":return false;case"\\":clearStateChar();l=true;continue;case"?":case"*":case"+":case"@":case"!":this.debug("%s\t%s %s %j <-- stateChar",e,_,s,C);if(g){this.debug(" in class");if(C==="!"&&_===b+1)C="^";s+=C;continue}A.debug("call clearStateChar %j",y);clearStateChar();y=C;if(r.noext)clearStateChar();continue;case"(":if(g){s+="(";continue}if(!y){s+="\\(";continue}h.push({type:y,start:_-1,reStart:s.length,open:o[y].open,close:o[y].close});s+=y==="!"?"(?:(?!(?:":"(?:";this.debug("plType %j %j",y,s);y=false;continue;case")":if(g||!h.length){s+="\\)";continue}clearStateChar();i=true;var D=h.pop();s+=D.close;if(D.type==="!"){d.push(D)}D.reEnd=s.length;continue;case"|":if(g||!h.length||l){s+="\\|";l=false;continue}clearStateChar();s+="|";continue;case"[":clearStateChar();if(g){s+="\\"+C;continue}g=true;b=_;v=s.length;s+=C;continue;case"]":if(_===b+1||!g){s+="\\"+C;l=false;continue}if(g){var x=e.substring(b+1,_);try{RegExp("["+x+"]")}catch(e){var R=this.parse(x,m);s=s.substr(0,v)+"\\["+R[0]+"\\]";i=i||R[1];g=false;continue}}i=true;g=false;s+=C;continue;default:clearStateChar();if(l){l=false}else if(p[C]&&!(C==="^"&&g)){s+="\\"}s+=C}}if(g){x=e.substr(b+1);R=this.parse(x,m);s=s.substr(0,v)+"\\["+R[0];i=i||R[1]}for(D=h.pop();D;D=h.pop()){var k=s.slice(D.reStart+D.open.length);this.debug("setting tail",s,D);k=k.replace(/((?:\\{2}){0,64})(\\?)\|/g,(function(e,t,r){if(!r){r="\\"}return t+t+r+"|"}));this.debug("tail=%j\n %s",k,k,D,s);var O=D.type==="*"?u:D.type==="?"?a:"\\"+D.type;i=true;s=s.slice(0,D.reStart)+O+"\\("+k}clearStateChar();if(l){s+="\\\\"}var T=false;switch(s.charAt(0)){case".":case"[":case"(":T=true}for(var P=d.length-1;P>-1;P--){var M=d[P];var B=s.slice(0,M.reStart);var j=s.slice(M.reStart,M.reEnd-8);var I=s.slice(M.reEnd-8,M.reEnd);var N=s.slice(M.reEnd);I+=N;var L=B.split("(").length-1;var $=N;for(_=0;_<L;_++){$=$.replace(/\)[+*?]?/,"")}N=$;var H="";if(N===""&&t!==m){H="$"}var U=B+j+N+H+I;s=U}if(s!==""&&i){s="(?=.)"+s}if(T){s=w+s}if(t===m){return[s,i]}if(!i){return globUnescape(e)}var G=r.nocase?"i":"";try{var z=new RegExp("^"+s+"$",G)}catch(e){return new RegExp("$.")}z._glob=e;z._src=s;return z}minimatch.makeRe=function(e,t){return new Minimatch(e,t||{}).makeRe()};Minimatch.prototype.makeRe=makeRe;function makeRe(){if(this.regexp||this.regexp===false)return this.regexp;var e=this.set;if(!e.length){this.regexp=false;return this.regexp}var t=this.options;var r=t.noglobstar?u:t.dot?l:h;var s=t.nocase?"i":"";var i=e.map((function(e){return e.map((function(e){return e===n?r:typeof e==="string"?regExpEscape(e):e._src})).join("\\/")})).join("|");i="^(?:"+i+")$";if(this.negate)i="^(?!"+i+").*$";try{this.regexp=new RegExp(i,s)}catch(e){this.regexp=false}return this.regexp}minimatch.match=function(e,t,r){r=r||{};var s=new Minimatch(t,r);e=e.filter((function(e){return s.match(e)}));if(s.options.nonull&&!e.length){e.push(t)}return e};Minimatch.prototype.match=match;function match(e,t){this.debug("match",e,this.pattern);if(this.comment)return false;if(this.empty)return e==="";if(e==="/"&&t)return true;var r=this.options;if(s.sep!=="/"){e=e.split(s.sep).join("/")}e=e.split(d);this.debug(this.pattern,"split",e);var n=this.set;this.debug(this.pattern,"set",n);var i;var o;for(o=e.length-1;o>=0;o--){i=e[o];if(i)break}for(o=0;o<n.length;o++){var a=n[o];var u=e;if(r.matchBase&&a.length===1){u=[i]}var l=this.matchOne(u,a,t);if(l){if(r.flipNegate)return true;return!this.negate}}if(r.flipNegate)return false;return this.negate}Minimatch.prototype.matchOne=function(e,t,r){var s=this.options;this.debug("matchOne",{this:this,file:e,pattern:t});this.debug("matchOne",e.length,t.length);for(var i=0,o=0,a=e.length,u=t.length;i<a&&o<u;i++,o++){this.debug("matchOne loop");var l=t[o];var h=e[i];this.debug(t,l,h);if(l===false)return false;if(l===n){this.debug("GLOBSTAR",[t,l,h]);var p=i;var d=o+1;if(d===u){this.debug("** at the end");for(;i<a;i++){if(e[i]==="."||e[i]===".."||!s.dot&&e[i].charAt(0)===".")return false}return true}while(p<a){var m=e[p];this.debug("\nglobstar while",e,p,t,d,m);if(this.matchOne(e.slice(p),t.slice(d),r)){this.debug("globstar found match!",p,a,m);return true}else{if(m==="."||m===".."||!s.dot&&m.charAt(0)==="."){this.debug("dot detected!",e,p,t,d);break}this.debug("globstar swallow a segment, and continue");p++}}if(r){this.debug("\n>>> no match, partial?",e,p,t,d);if(p===a)return true}return false}var y;if(typeof l==="string"){if(s.nocase){y=h.toLowerCase()===l.toLowerCase()}else{y=h===l}this.debug("string match",l,h,y)}else{y=h.match(l);this.debug("pattern match",l,h,y)}if(!y)return false}if(i===a&&o===u){return true}else if(i===a){return r}else if(o===u){var g=i===a-1&&e[i]==="";return g}throw new Error("wtf?")};function globUnescape(e){return e.replace(/\\(.)/g,"$1")}function regExpEscape(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},5871:e=>{e.exports=function(e,t){if(!t)t={};var r={bools:{},strings:{},unknownFn:null};if(typeof t["unknown"]==="function"){r.unknownFn=t["unknown"]}if(typeof t["boolean"]==="boolean"&&t["boolean"]){r.allBools=true}else{[].concat(t["boolean"]).filter(Boolean).forEach((function(e){r.bools[e]=true}))}var s={};Object.keys(t.alias||{}).forEach((function(e){s[e]=[].concat(t.alias[e]);s[e].forEach((function(t){s[t]=[e].concat(s[e].filter((function(e){return t!==e})))}))}));[].concat(t.string).filter(Boolean).forEach((function(e){r.strings[e]=true;if(s[e]){r.strings[s[e]]=true}}));var n=t["default"]||{};var i={_:[]};Object.keys(r.bools).forEach((function(e){setArg(e,n[e]===undefined?false:n[e])}));var o=[];if(e.indexOf("--")!==-1){o=e.slice(e.indexOf("--")+1);e=e.slice(0,e.indexOf("--"))}function argDefined(e,t){return r.allBools&&/^--[^=]+$/.test(t)||r.strings[e]||r.bools[e]||s[e]}function setArg(e,t,n){if(n&&r.unknownFn&&!argDefined(e,n)){if(r.unknownFn(n)===false)return}var o=!r.strings[e]&&isNumber(t)?Number(t):t;setKey(i,e.split("."),o);(s[e]||[]).forEach((function(e){setKey(i,e.split("."),o)}))}function setKey(e,t,s){var n=e;for(var i=0;i<t.length-1;i++){var o=t[i];if(o==="__proto__")return;if(n[o]===undefined)n[o]={};if(n[o]===Object.prototype||n[o]===Number.prototype||n[o]===String.prototype)n[o]={};if(n[o]===Array.prototype)n[o]=[];n=n[o]}var o=t[t.length-1];if(o==="__proto__")return;if(n===Object.prototype||n===Number.prototype||n===String.prototype)n={};if(n===Array.prototype)n=[];if(n[o]===undefined||r.bools[o]||typeof n[o]==="boolean"){n[o]=s}else if(Array.isArray(n[o])){n[o].push(s)}else{n[o]=[n[o],s]}}function aliasIsBoolean(e){return s[e].some((function(e){return r.bools[e]}))}for(var a=0;a<e.length;a++){var u=e[a];if(/^--.+=/.test(u)){var l=u.match(/^--([^=]+)=([\s\S]*)$/);var h=l[1];var p=l[2];if(r.bools[h]){p=p!=="false"}setArg(h,p,u)}else if(/^--no-.+/.test(u)){var h=u.match(/^--no-(.+)/)[1];setArg(h,false,u)}else if(/^--.+/.test(u)){var h=u.match(/^--(.+)/)[1];var d=e[a+1];if(d!==undefined&&!/^-/.test(d)&&!r.bools[h]&&!r.allBools&&(s[h]?!aliasIsBoolean(h):true)){setArg(h,d,u);a++}else if(/^(true|false)$/.test(d)){setArg(h,d==="true",u);a++}else{setArg(h,r.strings[h]?"":true,u)}}else if(/^-[^-]+/.test(u)){var m=u.slice(1,-1).split("");var y=false;for(var g=0;g<m.length;g++){var d=u.slice(g+2);if(d==="-"){setArg(m[g],d,u);continue}if(/[A-Za-z]/.test(m[g])&&/=/.test(d)){setArg(m[g],d.split("=")[1],u);y=true;break}if(/[A-Za-z]/.test(m[g])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(d)){setArg(m[g],d,u);y=true;break}if(m[g+1]&&m[g+1].match(/\W/)){setArg(m[g],u.slice(g+2),u);y=true;break}else{setArg(m[g],r.strings[m[g]]?"":true,u)}}var h=u.slice(-1)[0];if(!y&&h!=="-"){if(e[a+1]&&!/^(-|--)[^-]/.test(e[a+1])&&!r.bools[h]&&(s[h]?!aliasIsBoolean(h):true)){setArg(h,e[a+1],u);a++}else if(e[a+1]&&/^(true|false)$/.test(e[a+1])){setArg(h,e[a+1]==="true",u);a++}else{setArg(h,r.strings[h]?"":true,u)}}}else{if(!r.unknownFn||r.unknownFn(u)!==false){i._.push(r.strings["_"]||!isNumber(u)?u:Number(u))}if(t.stopEarly){i._.push.apply(i._,e.slice(a+1));break}}}Object.keys(n).forEach((function(e){if(!hasKey(i,e.split("."))){setKey(i,e.split("."),n[e]);(s[e]||[]).forEach((function(t){setKey(i,t.split("."),n[e])}))}}));if(t["--"]){i["--"]=new Array;o.forEach((function(e){i["--"].push(e)}))}else{o.forEach((function(e){i._.push(e)}))}return i};function hasKey(e,t){var r=e;t.slice(0,-1).forEach((function(e){r=r[e]||{}}));var s=t[t.length-1];return s in r}function isNumber(e){if(typeof e==="number")return true;if(/^0x[0-9a-f]+$/i.test(e))return true;return/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}},1077:(e,t,r)=>{"use strict";const s=r(2361);const n=r(2781);const i=r(665);const o=r(1576).StringDecoder;const a=Symbol("EOF");const u=Symbol("maybeEmitEnd");const l=Symbol("emittedEnd");const h=Symbol("emittingEnd");const p=Symbol("closed");const d=Symbol("read");const m=Symbol("flush");const y=Symbol("flushChunk");const g=Symbol("encoding");const v=Symbol("decoder");const b=Symbol("flowing");const w=Symbol("paused");const A=Symbol("resume");const _=Symbol("bufferLength");const S=Symbol("bufferPush");const C=Symbol("bufferShift");const D=Symbol("objectMode");const x=Symbol("destroyed");const R=global._MP_NO_ITERATOR_SYMBOLS_!=="1";const k=R&&Symbol.asyncIterator||Symbol("asyncIterator not implemented");const O=R&&Symbol.iterator||Symbol("iterator not implemented");const isEndish=e=>e==="end"||e==="finish"||e==="prefinish";const isArrayBuffer=e=>e instanceof ArrayBuffer||typeof e==="object"&&e.constructor&&e.constructor.name==="ArrayBuffer"&&e.byteLength>=0;const isArrayBufferView=e=>!Buffer.isBuffer(e)&&ArrayBuffer.isView(e);e.exports=class Minipass extends n{constructor(e){super();this[b]=false;this[w]=false;this.pipes=new i;this.buffer=new i;this[D]=e&&e.objectMode||false;if(this[D])this[g]=null;else this[g]=e&&e.encoding||null;if(this[g]==="buffer")this[g]=null;this[v]=this[g]?new o(this[g]):null;this[a]=false;this[l]=false;this[h]=false;this[p]=false;this.writable=true;this.readable=true;this[_]=0;this[x]=false}get bufferLength(){return this[_]}get encoding(){return this[g]}set encoding(e){if(this[D])throw new Error("cannot set encoding in objectMode");if(this[g]&&e!==this[g]&&(this[v]&&this[v].lastNeed||this[_]))throw new Error("cannot change encoding");if(this[g]!==e){this[v]=e?new o(e):null;if(this.buffer.length)this.buffer=this.buffer.map((e=>this[v].write(e)))}this[g]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[D]}set objectMode(e){this[D]=this[D]||!!e}write(e,t,r){if(this[a])throw new Error("write after end");if(this[x]){this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"}));return true}if(typeof t==="function")r=t,t="utf8";if(!t)t="utf8";if(!this[D]&&!Buffer.isBuffer(e)){if(isArrayBufferView(e))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if(isArrayBuffer(e))e=Buffer.from(e);else if(typeof e!=="string")this.objectMode=true}if(!this.objectMode&&!e.length){const e=this.flowing;if(this[_]!==0)this.emit("readable");if(r)r();return e}if(typeof e==="string"&&!this[D]&&!(t===this[g]&&!this[v].lastNeed)){e=Buffer.from(e,t)}if(Buffer.isBuffer(e)&&this[g])e=this[v].write(e);try{return this.flowing?(this.emit("data",e),this.flowing):(this[S](e),false)}finally{if(this[_]!==0)this.emit("readable");if(r)r()}}read(e){if(this[x])return null;try{if(this[_]===0||e===0||e>this[_])return null;if(this[D])e=null;if(this.buffer.length>1&&!this[D]){if(this.encoding)this.buffer=new i([Array.from(this.buffer).join("")]);else this.buffer=new i([Buffer.concat(Array.from(this.buffer),this[_])])}return this[d](e||null,this.buffer.head.value)}finally{this[u]()}}[d](e,t){if(e===t.length||e===null)this[C]();else{this.buffer.head.value=t.slice(e);t=t.slice(0,e);this[_]-=e}this.emit("data",t);if(!this.buffer.length&&!this[a])this.emit("drain");return t}end(e,t,r){if(typeof e==="function")r=e,e=null;if(typeof t==="function")r=t,t="utf8";if(e)this.write(e,t);if(r)this.once("end",r);this[a]=true;this.writable=false;if(this.flowing||!this[w])this[u]();return this}[A](){if(this[x])return;this[w]=false;this[b]=true;this.emit("resume");if(this.buffer.length)this[m]();else if(this[a])this[u]();else this.emit("drain")}resume(){return this[A]()}pause(){this[b]=false;this[w]=true}get destroyed(){return this[x]}get flowing(){return this[b]}get paused(){return this[w]}[S](e){if(this[D])this[_]+=1;else this[_]+=e.length;return this.buffer.push(e)}[C](){if(this.buffer.length){if(this[D])this[_]-=1;else this[_]-=this.buffer.head.value.length}return this.buffer.shift()}[m](){do{}while(this[y](this[C]()));if(!this.buffer.length&&!this[a])this.emit("drain")}[y](e){return e?(this.emit("data",e),this.flowing):false}pipe(e,t){if(this[x])return;const r=this[l];t=t||{};if(e===process.stdout||e===process.stderr)t.end=false;else t.end=t.end!==false;const s={dest:e,opts:t,ondrain:e=>this[A]()};this.pipes.push(s);e.on("drain",s.ondrain);this[A]();if(r&&s.opts.end)s.dest.end();return e}addListener(e,t){return this.on(e,t)}on(e,t){try{return super.on(e,t)}finally{if(e==="data"&&!this.pipes.length&&!this.flowing)this[A]();else if(isEndish(e)&&this[l]){super.emit(e);this.removeAllListeners(e)}}}get emittedEnd(){return this[l]}[u](){if(!this[h]&&!this[l]&&!this[x]&&this.buffer.length===0&&this[a]){this[h]=true;this.emit("end");this.emit("prefinish");this.emit("finish");if(this[p])this.emit("close");this[h]=false}}emit(e,t){if(e!=="error"&&e!=="close"&&e!==x&&this[x])return;else if(e==="data"){if(!t)return;if(this.pipes.length)this.pipes.forEach((e=>e.dest.write(t)===false&&this.pause()))}else if(e==="end"){if(this[l]===true)return;this[l]=true;this.readable=false;if(this[v]){t=this[v].end();if(t){this.pipes.forEach((e=>e.dest.write(t)));super.emit("data",t)}}this.pipes.forEach((e=>{e.dest.removeListener("drain",e.ondrain);if(e.opts.end)e.dest.end()}))}else if(e==="close"){this[p]=true;if(!this[l]&&!this[x])return}const r=new Array(arguments.length);r[0]=e;r[1]=t;if(arguments.length>2){for(let e=2;e<arguments.length;e++){r[e]=arguments[e]}}try{return super.emit.apply(this,r)}finally{if(!isEndish(e))this[u]();else this.removeAllListeners(e)}}collect(){const e=[];if(!this[D])e.dataLength=0;const t=this.promise();this.on("data",(t=>{e.push(t);if(!this[D])e.dataLength+=t.length}));return t.then((()=>e))}concat(){return this[D]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then((e=>this[D]?Promise.reject(new Error("cannot concat in objectMode")):this[g]?e.join(""):Buffer.concat(e,e.dataLength)))}promise(){return new Promise(((e,t)=>{this.on(x,(()=>t(new Error("stream destroyed"))));this.on("end",(()=>e()));this.on("error",(e=>t(e)))}))}[k](){const next=()=>{const e=this.read();if(e!==null)return Promise.resolve({done:false,value:e});if(this[a])return Promise.resolve({done:true});let t=null;let r=null;const onerr=e=>{this.removeListener("data",ondata);this.removeListener("end",onend);r(e)};const ondata=e=>{this.removeListener("error",onerr);this.removeListener("end",onend);this.pause();t({value:e,done:!!this[a]})};const onend=()=>{this.removeListener("error",onerr);this.removeListener("data",ondata);t({done:true})};const ondestroy=()=>onerr(new Error("stream destroyed"));return new Promise(((e,s)=>{r=s;t=e;this.once(x,ondestroy);this.once("error",onerr);this.once("end",onend);this.once("data",ondata)}))};return{next:next}}[O](){const next=()=>{const e=this.read();const t=e===null;return{value:e,done:t}};return{next:next}}destroy(e){if(this[x]){if(e)this.emit("error",e);else this.emit(x);return this}this[x]=true;this.buffer=new i;this[_]=0;if(typeof this.close==="function"&&!this[p])this.close();if(e)this.emit("error",e);else this.emit(x);return this}static isStream(e){return!!e&&(e instanceof Minipass||e instanceof n||e instanceof s&&(typeof e.pipe==="function"||typeof e.write==="function"&&typeof e.end==="function"))}}},6769:(e,t,r)=>{const s=r(9796).constants||{ZLIB_VERNUM:4736};e.exports=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:Infinity,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},s))},3486:(e,t,r)=>{"use strict";const s=r(9491);const n=r(4300).Buffer;const i=r(9796);const o=t.constants=r(6769);const a=r(1077);const u=n.concat;const l=Symbol("_superWrite");class ZlibError extends Error{constructor(e){super("zlib: "+e.message);this.code=e.code;this.errno=e.errno;if(!this.code)this.code="ZLIB_ERROR";this.message="zlib: "+e.message;Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}}const h=Symbol("opts");const p=Symbol("flushFlag");const d=Symbol("finishFlushFlag");const m=Symbol("fullFlushFlag");const y=Symbol("handle");const g=Symbol("onError");const v=Symbol("sawError");const b=Symbol("level");const w=Symbol("strategy");const A=Symbol("ended");const _=Symbol("_defaultFullFlush");class ZlibBase extends a{constructor(e,t){if(!e||typeof e!=="object")throw new TypeError("invalid options for ZlibBase constructor");super(e);this[A]=false;this[h]=e;this[p]=e.flush;this[d]=e.finishFlush;try{this[y]=new i[t](e)}catch(e){throw new ZlibError(e)}this[g]=e=>{this[v]=true;this.close();this.emit("error",e)};this[y].on("error",(e=>this[g](new ZlibError(e))));this.once("end",(()=>this.close))}close(){if(this[y]){this[y].close();this[y]=null;this.emit("close")}}reset(){if(!this[v]){s(this[y],"zlib binding closed");return this[y].reset()}}flush(e){if(this.ended)return;if(typeof e!=="number")e=this[m];this.write(Object.assign(n.alloc(0),{[p]:e}))}end(e,t,r){if(e)this.write(e,t);this.flush(this[d]);this[A]=true;return super.end(null,null,r)}get ended(){return this[A]}write(e,t,r){if(typeof t==="function")r=t,t="utf8";if(typeof e==="string")e=n.from(e,t);if(this[v])return;s(this[y],"zlib binding closed");const i=this[y]._handle;const o=i.close;i.close=()=>{};const a=this[y].close;this[y].close=()=>{};n.concat=e=>e;let h;try{const t=typeof e[p]==="number"?e[p]:this[p];h=this[y]._processChunk(e,t);n.concat=u}catch(e){n.concat=u;this[g](new ZlibError(e))}finally{if(this[y]){this[y]._handle=i;i.close=o;this[y].close=a;this[y].removeAllListeners("error")}}let d;if(h){if(Array.isArray(h)&&h.length>0){d=this[l](n.from(h[0]));for(let e=1;e<h.length;e++){d=this[l](h[e])}}else{d=this[l](n.from(h))}}if(r)r();return d}[l](e){return super.write(e)}}class Zlib extends ZlibBase{constructor(e,t){e=e||{};e.flush=e.flush||o.Z_NO_FLUSH;e.finishFlush=e.finishFlush||o.Z_FINISH;super(e,t);this[m]=o.Z_FULL_FLUSH;this[b]=e.level;this[w]=e.strategy}params(e,t){if(this[v])return;if(!this[y])throw new Error("cannot switch params when binding is closed");if(!this[y].params)throw new Error("not supported in this implementation");if(this[b]!==e||this[w]!==t){this.flush(o.Z_SYNC_FLUSH);s(this[y],"zlib binding closed");const r=this[y].flush;this[y].flush=(e,t)=>{this.flush(e);t()};try{this[y].params(e,t)}finally{this[y].flush=r}if(this[y]){this[b]=e;this[w]=t}}}}class Deflate extends Zlib{constructor(e){super(e,"Deflate")}}class Inflate extends Zlib{constructor(e){super(e,"Inflate")}}const S=Symbol("_portable");class Gzip extends Zlib{constructor(e){super(e,"Gzip");this[S]=e&&!!e.portable}[l](e){if(!this[S])return super[l](e);this[S]=false;e[9]=255;return super[l](e)}}class Gunzip extends Zlib{constructor(e){super(e,"Gunzip")}}class DeflateRaw extends Zlib{constructor(e){super(e,"DeflateRaw")}}class InflateRaw extends Zlib{constructor(e){super(e,"InflateRaw")}}class Unzip extends Zlib{constructor(e){super(e,"Unzip")}}class Brotli extends ZlibBase{constructor(e,t){e=e||{};e.flush=e.flush||o.BROTLI_OPERATION_PROCESS;e.finishFlush=e.finishFlush||o.BROTLI_OPERATION_FINISH;super(e,t);this[m]=o.BROTLI_OPERATION_FLUSH}}class BrotliCompress extends Brotli{constructor(e){super(e,"BrotliCompress")}}class BrotliDecompress extends Brotli{constructor(e){super(e,"BrotliDecompress")}}t.Deflate=Deflate;t.Inflate=Inflate;t.Gzip=Gzip;t.Gunzip=Gunzip;t.DeflateRaw=DeflateRaw;t.InflateRaw=InflateRaw;t.Unzip=Unzip;if(typeof i.BrotliCompress==="function"){t.BrotliCompress=BrotliCompress;t.BrotliDecompress=BrotliDecompress}else{t.BrotliCompress=t.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}}},3533:(e,t,r)=>{var s=r(2781);e.exports=MuteStream;function MuteStream(e){s.apply(this);e=e||{};this.writable=this.readable=true;this.muted=false;this.on("pipe",this._onpipe);this.replace=e.replace;this._prompt=e.prompt||null;this._hadControl=false}MuteStream.prototype=Object.create(s.prototype);Object.defineProperty(MuteStream.prototype,"constructor",{value:MuteStream,enumerable:false});MuteStream.prototype.mute=function(){this.muted=true};MuteStream.prototype.unmute=function(){this.muted=false};Object.defineProperty(MuteStream.prototype,"_onpipe",{value:onPipe,enumerable:false,writable:true,configurable:true});function onPipe(e){this._src=e}Object.defineProperty(MuteStream.prototype,"isTTY",{get:getIsTTY,set:setIsTTY,enumerable:true,configurable:true});function getIsTTY(){return this._dest?this._dest.isTTY:this._src?this._src.isTTY:false}function setIsTTY(e){Object.defineProperty(this,"isTTY",{value:e,enumerable:true,writable:true,configurable:true})}Object.defineProperty(MuteStream.prototype,"rows",{get:function(){return this._dest?this._dest.rows:this._src?this._src.rows:undefined},enumerable:true,configurable:true});Object.defineProperty(MuteStream.prototype,"columns",{get:function(){return this._dest?this._dest.columns:this._src?this._src.columns:undefined},enumerable:true,configurable:true});MuteStream.prototype.pipe=function(e,t){this._dest=e;return s.prototype.pipe.call(this,e,t)};MuteStream.prototype.pause=function(){if(this._src)return this._src.pause()};MuteStream.prototype.resume=function(){if(this._src)return this._src.resume()};MuteStream.prototype.write=function(e){if(this.muted){if(!this.replace)return true;if(e.match(/^\u001b/)){if(e.indexOf(this._prompt)===0){e=e.substr(this._prompt.length);e=e.replace(/./g,this.replace);e=this._prompt+e}this._hadControl=true;return this.emit("data",e)}else{if(this._prompt&&this._hadControl&&e.indexOf(this._prompt)===0){this._hadControl=false;this.emit("data",this._prompt);e=e.substr(this._prompt.length)}e=e.toString().replace(/./g,this.replace)}}this.emit("data",e)};MuteStream.prototype.end=function(e){if(this.muted){if(e&&this.replace){e=e.toString().replace(/./g,this.replace)}else{e=null}}if(e)this.emit("data",e);this.emit("end")};function proxy(e){return function(){var t=this._dest;var r=this._src;if(t&&t[e])t[e].apply(t,arguments);if(r&&r[e])r[e].apply(r,arguments)}}MuteStream.prototype.destroy=proxy("destroy");MuteStream.prototype.destroySoon=proxy("destroySoon");MuteStream.prototype.close=proxy("close")},8560:e=>{"use strict";e.exports=function(e){try{return e()}catch(e){}}},7952:(e,t,r)=>{"use strict";const s=typeof URL==="undefined"?r(7310).URL:URL;const n="text/plain";const i="us-ascii";const testParameter=(e,t)=>t.some((t=>t instanceof RegExp?t.test(e):t===e));const normalizeDataURL=(e,{stripHash:t})=>{const r=e.match(/^data:([^,]*?),([^#]*?)(?:#(.*))?$/);if(!r){throw new Error(`Invalid URL: ${e}`)}const s=r[1].split(";");const o=r[2];const a=t?"":r[3];let u=false;if(s[s.length-1]==="base64"){s.pop();u=true}const l=(s.shift()||"").toLowerCase();const h=s.map((e=>{let[t,r=""]=e.split("=").map((e=>e.trim()));if(t==="charset"){r=r.toLowerCase();if(r===i){return""}}return`${t}${r?`=${r}`:""}`})).filter(Boolean);const p=[...h];if(u){p.push("base64")}if(p.length!==0||l&&l!==n){p.unshift(l)}return`data:${p.join(";")},${u?o.trim():o}${a?`#${a}`:""}`};const normalizeUrl=(e,t)=>{t={defaultProtocol:"http:",normalizeProtocol:true,forceHttp:false,forceHttps:false,stripAuthentication:true,stripHash:false,stripWWW:true,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:true,removeDirectoryIndex:false,sortQueryParameters:true,...t};if(Reflect.has(t,"normalizeHttps")){throw new Error("options.normalizeHttps is renamed to options.forceHttp")}if(Reflect.has(t,"normalizeHttp")){throw new Error("options.normalizeHttp is renamed to options.forceHttps")}if(Reflect.has(t,"stripFragment")){throw new Error("options.stripFragment is renamed to options.stripHash")}e=e.trim();if(/^data:/i.test(e)){return normalizeDataURL(e,t)}const r=e.startsWith("//");const n=!r&&/^\.*\//.test(e);if(!n){e=e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,t.defaultProtocol)}const i=new s(e);if(t.forceHttp&&t.forceHttps){throw new Error("The `forceHttp` and `forceHttps` options cannot be used together")}if(t.forceHttp&&i.protocol==="https:"){i.protocol="http:"}if(t.forceHttps&&i.protocol==="http:"){i.protocol="https:"}if(t.stripAuthentication){i.username="";i.password=""}if(t.stripHash){i.hash=""}if(i.pathname){i.pathname=i.pathname.replace(/((?!:).|^)\/{2,}/g,((e,t)=>{if(/^(?!\/)/g.test(t)){return`${t}/`}return"/"}))}if(i.pathname){i.pathname=decodeURI(i.pathname)}if(t.removeDirectoryIndex===true){t.removeDirectoryIndex=[/^index\.[a-z]+$/]}if(Array.isArray(t.removeDirectoryIndex)&&t.removeDirectoryIndex.length>0){let e=i.pathname.split("/");const r=e[e.length-1];if(testParameter(r,t.removeDirectoryIndex)){e=e.slice(0,e.length-1);i.pathname=e.slice(1).join("/")+"/"}}if(i.hostname){i.hostname=i.hostname.replace(/\.$/,"");if(t.stripWWW&&/^www\.([a-z\-\d]{2,63})\.([a-z.]{2,5})$/.test(i.hostname)){i.hostname=i.hostname.replace(/^www\./,"")}}if(Array.isArray(t.removeQueryParameters)){for(const e of[...i.searchParams.keys()]){if(testParameter(e,t.removeQueryParameters)){i.searchParams.delete(e)}}}if(t.sortQueryParameters){i.searchParams.sort()}if(t.removeTrailingSlash){i.pathname=i.pathname.replace(/\/$/,"")}e=i.toString();if((t.removeTrailingSlash||i.pathname==="/")&&i.hash===""){e=e.replace(/\/$/,"")}if(r&&!t.normalizeProtocol){e=e.replace(/^http:\/\//,"//")}if(t.stripProtocol){e=e.replace(/^(?:https?:)?\/\//,"")}return e};e.exports=normalizeUrl;e.exports["default"]=normalizeUrl},2695:(e,t,r)=>{"use strict";e.exports=npa;e.exports.resolve=resolve;e.exports.Result=Result;let s;let n;let i;let o;function path(){if(!o)o=r(1017);return o}let a;let u;const l=process.platform==="win32"||global.FAKE_WINDOWS;const h=l?/\\|[/]/:/[/]/;const p=/^(?:git[+])?[a-z]+:/i;const d=/[.](?:tgz|tar.gz|tar)$/i;function npa(e,t){let s;let n;if(typeof e==="object"){if(e instanceof Result&&(!t||t===e.where)){return e}else if(e.name&&e.rawSpec){return npa.resolve(e.name,e.rawSpec,t||e.where)}else{return npa(e.raw,t||e.where)}}const i=e[0]==="@"?e.slice(1).indexOf("@")+1:e.indexOf("@");const o=i>0?e.slice(0,i):e;if(p.test(e)){n=e}else if(o[0]!=="@"&&(h.test(o)||d.test(o))){n=e}else if(i>0){s=o;n=e.slice(i+1)}else{if(!a)a=r(4150);const t=a(e);if(t.validForOldPackages){s=e}else{n=e}}return resolve(s,n,t,e)}const m=l?/^(?:[.]|~[/]|[/\\]|[a-zA-Z]:)/:/^(?:[.]|~[/]|[/]|[a-zA-Z]:)/;function resolve(e,t,s,i){const o=new Result({raw:i,name:e,rawSpec:t,fromArgument:i!=null});if(e)o.setName(e);if(t&&(m.test(t)||/^file:/i.test(t))){return fromFile(o,s)}else if(t&&/^npm:/i.test(t)){return fromAlias(o,s)}if(!n)n=r(8869);const a=n.fromUrl(t,{noGitPlus:true,noCommittish:true});if(a){return fromHostedGit(o,a)}else if(t&&p.test(t)){return fromURL(o)}else if(t&&(h.test(t)||d.test(t))){return fromFile(o,s)}else{return fromRegistry(o)}}function invalidPackageName(e,t){const r=new Error(`Invalid package name "${e}": ${t.errors.join("; ")}`);r.code="EINVALIDPACKAGENAME";return r}function invalidTagName(e){const t=new Error(`Invalid tag name "${e}": Tags may not have any characters that encodeURIComponent encodes.`);t.code="EINVALIDTAGNAME";return t}function Result(e){this.type=e.type;this.registry=e.registry;this.where=e.where;if(e.raw==null){this.raw=e.name?e.name+"@"+e.rawSpec:e.rawSpec}else{this.raw=e.raw}this.name=undefined;this.escapedName=undefined;this.scope=undefined;this.rawSpec=e.rawSpec==null?"":e.rawSpec;this.saveSpec=e.saveSpec;this.fetchSpec=e.fetchSpec;if(e.name)this.setName(e.name);this.gitRange=e.gitRange;this.gitCommittish=e.gitCommittish;this.hosted=e.hosted}Result.prototype.setName=function(e){if(!a)a=r(4150);const t=a(e);if(!t.validForOldPackages){throw invalidPackageName(e,t)}this.name=e;this.scope=e[0]==="@"?e.slice(0,e.indexOf("/")):undefined;this.escapedName=e.replace("/","%2f");return this};Result.prototype.toString=function(){const e=[];if(this.name!=null&&this.name!=="")e.push(this.name);const t=this.saveSpec||this.fetchSpec||this.rawSpec;if(t!=null&&t!=="")e.push(t);return e.length?e.join("@"):this.raw};Result.prototype.toJSON=function(){const e=Object.assign({},this);delete e.hosted;return e};function setGitCommittish(e,t){if(t!=null&&t.length>=7&&t.slice(0,7)==="semver:"){e.gitRange=decodeURIComponent(t.slice(7));e.gitCommittish=null}else{e.gitCommittish=t===""?null:t}return e}const y=/^[/]|^[A-Za-z]:/;function resolvePath(e,t){if(y.test(t))return t;return path().resolve(e,t)}function isAbsolute(e){if(e[0]==="/")return true;if(/^[A-Za-z]:/.test(e))return true;return false}function fromFile(e,t){if(!t)t=process.cwd();e.type=d.test(e.rawSpec)?"file":"directory";e.where=t;const s=e.rawSpec.replace(/\\/g,"/").replace(/^file:[/]*([A-Za-z]:)/,"$1").replace(/^file:(?:[/]*([~./]))?/,"$1");if(/^~[/]/.test(s)){if(!u)u=r(4669);e.fetchSpec=resolvePath(u.home(),s.slice(2));e.saveSpec="file:"+s}else{e.fetchSpec=resolvePath(t,s);if(isAbsolute(s)){e.saveSpec="file:"+s}else{e.saveSpec="file:"+path().relative(t,e.fetchSpec)}}return e}function fromHostedGit(e,t){e.type="git";e.hosted=t;e.saveSpec=t.toString({noGitPlus:false,noCommittish:false});e.fetchSpec=t.getDefaultRepresentation()==="shortcut"?null:t.toString();return setGitCommittish(e,t.committish)}function unsupportedURLType(e,t){const r=new Error(`Unsupported URL Type "${e}": ${t}`);r.code="EUNSUPPORTEDPROTOCOL";return r}function matchGitScp(e){const t=e.match(/^git\+ssh:\/\/([^:#]+:[^#]+(?:\.git)?)(?:#(.*))?$/i);return t&&!t[1].match(/:[0-9]+\/?.*$/i)&&{fetchSpec:t[1],gitCommittish:t[2]==null?null:t[2]}}function fromURL(e){if(!s)s=r(7310);const t=s.parse(e.rawSpec);e.saveSpec=e.rawSpec;switch(t.protocol){case"git:":case"git+http:":case"git+https:":case"git+rsync:":case"git+ftp:":case"git+file:":case"git+ssh:":e.type="git";const r=t.protocol==="git+ssh:"&&matchGitScp(e.rawSpec);if(r){setGitCommittish(e,r.gitCommittish);e.fetchSpec=r.fetchSpec}else{setGitCommittish(e,t.hash!=null?t.hash.slice(1):"");t.protocol=t.protocol.replace(/^git[+]/,"");if(t.protocol==="file:"&&/^git\+file:\/\/[a-z]:/i.test(e.rawSpec)){t.host+=":";t.hostname+=":"}delete t.hash;e.fetchSpec=s.format(t)}break;case"http:":case"https:":e.type="remote";e.fetchSpec=e.saveSpec;break;default:throw unsupportedURLType(t.protocol,e.rawSpec)}return e}function fromAlias(e,t){const r=npa(e.rawSpec.substr(4),t);if(r.type==="alias"){throw new Error("nested aliases not supported")}if(!r.registry){throw new Error("aliases only work for registry deps")}e.subSpec=r;e.registry=true;e.type="alias";e.saveSpec=null;e.fetchSpec=null;return e}function fromRegistry(e){e.registry=true;const t=e.rawSpec===""?"latest":e.rawSpec;e.saveSpec=null;e.fetchSpec=t;if(!i)i=r(5911);const s=i.valid(t,true);const n=i.validRange(t,true);if(s){e.type="version"}else if(n){e.type="range"}else{if(encodeURIComponent(t)!==t){throw invalidTagName(t)}e.type="tag"}return e}},1223:(e,t,r)=>{var s=r(2940);e.exports=s(once);e.exports.strict=s(onceStrict);once.proto=once((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})}));function once(e){var f=function(){if(f.called)return f.value;f.called=true;return f.value=e.apply(this,arguments)};f.called=false;return f}function onceStrict(e){var f=function(){if(f.called)throw new Error(f.onceError);f.called=true;return f.value=e.apply(this,arguments)};var t=e.name||"Function wrapped with `once`";f.onceError=t+" shouldn't be called more than once";f.called=false;return f}},9082:(e,t,r)=>{"use strict";const s=r(6047);const n=new WeakMap;const oneTime=(e,t={})=>{if(typeof e!=="function"){throw new TypeError("Expected a function")}let r;let i=false;let o=0;const a=e.displayName||e.name||"<anonymous>";const onetime=function(...s){n.set(onetime,++o);if(i){if(t.throw===true){throw new Error(`Function \`${a}\` can only be called once`)}return r}i=true;r=e.apply(this,s);e=null;return r};s(onetime,e);n.set(onetime,o);return onetime};e.exports=oneTime;e.exports["default"]=oneTime;e.exports.callCount=e=>{if(!n.has(e)){throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`)}return n.get(e)}},970:(e,t,r)=>{"use strict";const s=r(4521);const n=r(7715);const i=r(301);const o=r(2031);const a=r(4911);const u=r(5591);const l=r(5917);const h=r(284);const p=r(3533);const d=Symbol("text");const m=Symbol("prefixText");const y=3;class StdinDiscarder{constructor(){this.requests=0;this.mutedStream=new p;this.mutedStream.pipe(process.stdout);this.mutedStream.mute();const e=this;this.ourEmit=function(t,r,...s){const{stdin:n}=process;if(e.requests>0||n.emit===e.ourEmit){if(t==="keypress"){return}if(t==="data"&&r.includes(y)){process.emit("SIGINT")}Reflect.apply(e.oldEmit,this,[t,r,...s])}else{Reflect.apply(process.stdin.emit,this,[t,r,...s])}}}start(){this.requests++;if(this.requests===1){this.realStart()}}stop(){if(this.requests<=0){throw new Error("`stop` called more times than `start`")}this.requests--;if(this.requests===0){this.realStop()}}realStart(){if(process.platform==="win32"){return}this.rl=s.createInterface({input:process.stdin,output:this.mutedStream});this.rl.on("SIGINT",(()=>{if(process.listenerCount("SIGINT")===0){process.emit("SIGINT")}else{this.rl.close();process.kill(process.pid,"SIGINT")}}))}realStop(){if(process.platform==="win32"){return}this.rl.close();this.rl=undefined}}const g=new StdinDiscarder;class Ora{constructor(e){if(typeof e==="string"){e={text:e}}this.options={text:"",color:"cyan",stream:process.stderr,discardStdin:true,...e};this.spinner=this.options.spinner;this.color=this.options.color;this.hideCursor=this.options.hideCursor!==false;this.interval=this.options.interval||this.spinner.interval||100;this.stream=this.options.stream;this.id=undefined;this.isEnabled=typeof this.options.isEnabled==="boolean"?this.options.isEnabled:h({stream:this.stream});this.text=this.options.text;this.prefixText=this.options.prefixText;this.linesToClear=0;this.indent=this.options.indent;this.discardStdin=this.options.discardStdin;this.isDiscardingStdin=false}get indent(){return this._indent}set indent(e=0){if(!(e>=0&&Number.isInteger(e))){throw new Error("The `indent` option must be an integer from 0 and up")}this._indent=e}_updateInterval(e){if(e!==undefined){this.interval=e}}get spinner(){return this._spinner}set spinner(e){this.frameIndex=0;if(typeof e==="object"){if(e.frames===undefined){throw new Error("The given spinner must have a `frames` property")}this._spinner=e}else if(process.platform==="win32"){this._spinner=o.line}else if(e===undefined){this._spinner=o.dots}else if(o[e]){this._spinner=o[e]}else{throw new Error(`There is no built-in spinner named '${e}'. See https://github.com/sindresorhus/cli-spinners/blob/master/spinners.json for a full list.`)}this._updateInterval(this._spinner.interval)}get text(){return this[d]}get prefixText(){return this[m]}get isSpinning(){return this.id!==undefined}updateLineCount(){const e=this.stream.columns||80;const t=typeof this[m]==="string"?this[m]+"-":"";this.lineCount=u(t+"--"+this[d]).split("\n").reduce(((t,r)=>t+Math.max(1,Math.ceil(l(r)/e))),0)}set text(e){this[d]=e;this.updateLineCount()}set prefixText(e){this[m]=e;this.updateLineCount()}frame(){const{frames:e}=this.spinner;let t=e[this.frameIndex];if(this.color){t=n[this.color](t)}this.frameIndex=++this.frameIndex%e.length;const r=typeof this.prefixText==="string"&&this.prefixText!==""?this.prefixText+" ":"";const s=typeof this.text==="string"?" "+this.text:"";return r+t+s}clear(){if(!this.isEnabled||!this.stream.isTTY){return this}for(let e=0;e<this.linesToClear;e++){if(e>0){this.stream.moveCursor(0,-1)}this.stream.clearLine();this.stream.cursorTo(this.indent)}this.linesToClear=0;return this}render(){this.clear();this.stream.write(this.frame());this.linesToClear=this.lineCount;return this}start(e){if(e){this.text=e}if(!this.isEnabled){this.stream.write(`- ${this.text}\n`);return this}if(this.isSpinning){return this}if(this.hideCursor){i.hide(this.stream)}if(this.discardStdin&&process.stdin.isTTY){this.isDiscardingStdin=true;g.start()}this.render();this.id=setInterval(this.render.bind(this),this.interval);return this}stop(){if(!this.isEnabled){return this}clearInterval(this.id);this.id=undefined;this.frameIndex=0;this.clear();if(this.hideCursor){i.show(this.stream)}if(this.discardStdin&&process.stdin.isTTY&&this.isDiscardingStdin){g.stop();this.isDiscardingStdin=false}return this}succeed(e){return this.stopAndPersist({symbol:a.success,text:e})}fail(e){return this.stopAndPersist({symbol:a.error,text:e})}warn(e){return this.stopAndPersist({symbol:a.warning,text:e})}info(e){return this.stopAndPersist({symbol:a.info,text:e})}stopAndPersist(e={}){const t=e.prefixText||this.prefixText;const r=typeof t==="string"&&t!==""?t+" ":"";const s=e.text||this.text;const n=typeof s==="string"?" "+s:"";this.stop();this.stream.write(`${r}${e.symbol||" "}${n}\n`);return this}}const oraFactory=function(e){return new Ora(e)};e.exports=oraFactory;e.exports.promise=(e,t)=>{if(typeof e.then!=="function"){throw new TypeError("Parameter `action` must be a Promise")}const r=new Ora(t);r.start();(async()=>{try{await e;r.succeed()}catch(e){r.fail()}})();return r}},7715:(e,t,r)=>{"use strict";const s=r(2068);const{stdout:n,stderr:i}=r(9318);const{stringReplaceAll:o,stringEncaseCRLFWithFirstIndex:a}=r(7436);const u=["ansi","ansi","ansi256","ansi16m"];const l=Object.create(null);const applyOptions=(e,t={})=>{if(t.level>3||t.level<0){throw new Error("The `level` option should be an integer from 0 to 3")}const r=n?n.level:0;e.level=t.level===undefined?r:t.level};class ChalkClass{constructor(e){return chalkFactory(e)}}const chalkFactory=e=>{const t={};applyOptions(t,e);t.template=(...e)=>chalkTag(t.template,...e);Object.setPrototypeOf(t,Chalk.prototype);Object.setPrototypeOf(t.template,t);t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")};t.template.Instance=ChalkClass;return t.template};function Chalk(e){return chalkFactory(e)}for(const[e,t]of Object.entries(s)){l[e]={get(){const r=createBuilder(this,createStyler(t.open,t.close,this._styler),this._isEmpty);Object.defineProperty(this,e,{value:r});return r}}}l.visible={get(){const e=createBuilder(this,this._styler,true);Object.defineProperty(this,"visible",{value:e});return e}};const h=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const e of h){l[e]={get(){const{level:t}=this;return function(...r){const n=createStyler(s.color[u[t]][e](...r),s.color.close,this._styler);return createBuilder(this,n,this._isEmpty)}}}}for(const e of h){const t="bg"+e[0].toUpperCase()+e.slice(1);l[t]={get(){const{level:t}=this;return function(...r){const n=createStyler(s.bgColor[u[t]][e](...r),s.bgColor.close,this._styler);return createBuilder(this,n,this._isEmpty)}}}}const p=Object.defineProperties((()=>{}),{...l,level:{enumerable:true,get(){return this._generator.level},set(e){this._generator.level=e}}});const createStyler=(e,t,r)=>{let s;let n;if(r===undefined){s=e;n=t}else{s=r.openAll+e;n=t+r.closeAll}return{open:e,close:t,openAll:s,closeAll:n,parent:r}};const createBuilder=(e,t,r)=>{const builder=(...e)=>applyStyle(builder,e.length===1?""+e[0]:e.join(" "));builder.__proto__=p;builder._generator=e;builder._styler=t;builder._isEmpty=r;return builder};const applyStyle=(e,t)=>{if(e.level<=0||!t){return e._isEmpty?"":t}let r=e._styler;if(r===undefined){return t}const{openAll:s,closeAll:n}=r;if(t.indexOf("")!==-1){while(r!==undefined){t=o(t,r.close,r.open);r=r.parent}}const i=t.indexOf("\n");if(i!==-1){t=a(t,n,s,i)}return s+t+n};let d;const chalkTag=(e,...t)=>{const[s]=t;if(!Array.isArray(s)){return t.join(" ")}const n=t.slice(1);const i=[s.raw[0]];for(let e=1;e<s.length;e++){i.push(String(n[e-1]).replace(/[{}\\]/g,"\\$&"),String(s.raw[e]))}if(d===undefined){d=r(939)}return d(e,i.join(""))};Object.defineProperties(Chalk.prototype,l);const m=Chalk();m.supportsColor=n;m.stderr=Chalk({level:i?i.level:0});m.stderr.supportsColor=i;m.Level={None:0,Basic:1,Ansi256:2,TrueColor:3,0:"None",1:"Basic",2:"Ansi256",3:"TrueColor"};e.exports=m},939:e=>{"use strict";const t=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;const r=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;const s=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;const n=/\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.)|([^\\])/gi;const i=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function unescape(e){const t=e[0]==="u";const r=e[1]==="{";if(t&&!r&&e.length===5||e[0]==="x"&&e.length===3){return String.fromCharCode(parseInt(e.slice(1),16))}if(t&&r){return String.fromCodePoint(parseInt(e.slice(2,-1),16))}return i.get(e)||e}function parseArguments(e,t){const r=[];const i=t.trim().split(/\s*,\s*/g);let o;for(const t of i){const i=Number(t);if(!Number.isNaN(i)){r.push(i)}else if(o=t.match(s)){r.push(o[2].replace(n,((e,t,r)=>t?unescape(t):r)))}else{throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`)}}return r}function parseStyle(e){r.lastIndex=0;const t=[];let s;while((s=r.exec(e))!==null){const e=s[1];if(s[2]){const r=parseArguments(e,s[2]);t.push([e].concat(r))}else{t.push([e])}}return t}function buildStyle(e,t){const r={};for(const e of t){for(const t of e.styles){r[t[0]]=e.inverse?null:t.slice(1)}}let s=e;for(const[e,t]of Object.entries(r)){if(!Array.isArray(t)){continue}if(!(e in s)){throw new Error(`Unknown Chalk style: ${e}`)}s=t.length>0?s[e](...t):s[e]}return s}e.exports=(e,r)=>{const s=[];const n=[];let i=[];r.replace(t,((t,r,o,a,u,l)=>{if(r){i.push(unescape(r))}else if(a){const t=i.join("");i=[];n.push(s.length===0?t:buildStyle(e,s)(t));s.push({inverse:o,styles:parseStyle(a)})}else if(u){if(s.length===0){throw new Error("Found extraneous } in Chalk template literal")}n.push(buildStyle(e,s)(i.join("")));i=[];s.pop()}else{i.push(l)}}));n.push(i.join(""));if(s.length>0){const e=`Chalk template literal is missing ${s.length} closing bracket${s.length===1?"":"s"} (\`}\`)`;throw new Error(e)}return n.join("")}},7436:e=>{"use strict";const stringReplaceAll=(e,t,r)=>{let s=e.indexOf(t);if(s===-1){return e}const n=t.length;let i=0;let o="";do{o+=e.substr(i,s-i)+t+r;i=s+n;s=e.indexOf(t,i)}while(s!==-1);o+=e.substr(i);return o};const stringEncaseCRLFWithFirstIndex=(e,t,r,s)=>{let n=0;let i="";do{const o=e[s-1]==="\r";i+=e.substr(n,(o?s-1:s)-n)+t+(o?"\r\n":"\n")+r;n=s+1;s=e.indexOf("\n",n)}while(s!==-1);i+=e.substr(n);return i};e.exports={stringReplaceAll:stringReplaceAll,stringEncaseCRLFWithFirstIndex:stringEncaseCRLFWithFirstIndex}},301:(e,t,r)=>{"use strict";const s=r(6547);let n=false;t.show=(e=process.stderr)=>{if(!e.isTTY){return}n=false;e.write("[?25h")};t.hide=(e=process.stderr)=>{if(!e.isTTY){return}s();n=true;e.write("[?25l")};t.toggle=(e,r)=>{if(e!==undefined){n=e}if(n){t.show(r)}else{t.hide(r)}}},9289:(e,t,r)=>{var s=r(8510);var n={};for(var i in s){if(s.hasOwnProperty(i)){n[s[i]]=i}}var o=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var a in o){if(o.hasOwnProperty(a)){if(!("channels"in o[a])){throw new Error("missing channels property: "+a)}if(!("labels"in o[a])){throw new Error("missing channel labels property: "+a)}if(o[a].labels.length!==o[a].channels){throw new Error("channel and label counts mismatch: "+a)}var u=o[a].channels;var l=o[a].labels;delete o[a].channels;delete o[a].labels;Object.defineProperty(o[a],"channels",{value:u});Object.defineProperty(o[a],"labels",{value:l})}}o.rgb.hsl=function(e){var t=e[0]/255;var r=e[1]/255;var s=e[2]/255;var n=Math.min(t,r,s);var i=Math.max(t,r,s);var o=i-n;var a;var u;var l;if(i===n){a=0}else if(t===i){a=(r-s)/o}else if(r===i){a=2+(s-t)/o}else if(s===i){a=4+(t-r)/o}a=Math.min(a*60,360);if(a<0){a+=360}l=(n+i)/2;if(i===n){u=0}else if(l<=.5){u=o/(i+n)}else{u=o/(2-i-n)}return[a,u*100,l*100]};o.rgb.hsv=function(e){var t=e[0];var r=e[1];var s=e[2];var n=Math.min(t,r,s);var i=Math.max(t,r,s);var o=i-n;var a;var u;var l;if(i===0){u=0}else{u=o/i*1e3/10}if(i===n){a=0}else if(t===i){a=(r-s)/o}else if(r===i){a=2+(s-t)/o}else if(s===i){a=4+(t-r)/o}a=Math.min(a*60,360);if(a<0){a+=360}l=i/255*1e3/10;return[a,u,l]};o.rgb.hwb=function(e){var t=e[0];var r=e[1];var s=e[2];var n=o.rgb.hsl(e)[0];var i=1/255*Math.min(t,Math.min(r,s));s=1-1/255*Math.max(t,Math.max(r,s));return[n,i*100,s*100]};o.rgb.cmyk=function(e){var t=e[0]/255;var r=e[1]/255;var s=e[2]/255;var n;var i;var o;var a;a=Math.min(1-t,1-r,1-s);n=(1-t-a)/(1-a)||0;i=(1-r-a)/(1-a)||0;o=(1-s-a)/(1-a)||0;return[n*100,i*100,o*100,a*100]};function comparativeDistance(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}o.rgb.keyword=function(e){var t=n[e];if(t){return t}var r=Infinity;var i;for(var o in s){if(s.hasOwnProperty(o)){var a=s[o];var u=comparativeDistance(e,a);if(u<r){r=u;i=o}}}return i};o.keyword.rgb=function(e){return s[e]};o.rgb.xyz=function(e){var t=e[0]/255;var r=e[1]/255;var s=e[2]/255;t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92;r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92;s=s>.04045?Math.pow((s+.055)/1.055,2.4):s/12.92;var n=t*.4124+r*.3576+s*.1805;var i=t*.2126+r*.7152+s*.0722;var o=t*.0193+r*.1192+s*.9505;return[n*100,i*100,o*100]};o.rgb.lab=function(e){var t=o.rgb.xyz(e);var r=t[0];var s=t[1];var n=t[2];var i;var a;var u;r/=95.047;s/=100;n/=108.883;r=r>.008856?Math.pow(r,1/3):7.787*r+16/116;s=s>.008856?Math.pow(s,1/3):7.787*s+16/116;n=n>.008856?Math.pow(n,1/3):7.787*n+16/116;i=116*s-16;a=500*(r-s);u=200*(s-n);return[i,a,u]};o.hsl.rgb=function(e){var t=e[0]/360;var r=e[1]/100;var s=e[2]/100;var n;var i;var o;var a;var u;if(r===0){u=s*255;return[u,u,u]}if(s<.5){i=s*(1+r)}else{i=s+r-s*r}n=2*s-i;a=[0,0,0];for(var l=0;l<3;l++){o=t+1/3*-(l-1);if(o<0){o++}if(o>1){o--}if(6*o<1){u=n+(i-n)*6*o}else if(2*o<1){u=i}else if(3*o<2){u=n+(i-n)*(2/3-o)*6}else{u=n}a[l]=u*255}return a};o.hsl.hsv=function(e){var t=e[0];var r=e[1]/100;var s=e[2]/100;var n=r;var i=Math.max(s,.01);var o;var a;s*=2;r*=s<=1?s:2-s;n*=i<=1?i:2-i;a=(s+r)/2;o=s===0?2*n/(i+n):2*r/(s+r);return[t,o*100,a*100]};o.hsv.rgb=function(e){var t=e[0]/60;var r=e[1]/100;var s=e[2]/100;var n=Math.floor(t)%6;var i=t-Math.floor(t);var o=255*s*(1-r);var a=255*s*(1-r*i);var u=255*s*(1-r*(1-i));s*=255;switch(n){case 0:return[s,u,o];case 1:return[a,s,o];case 2:return[o,s,u];case 3:return[o,a,s];case 4:return[u,o,s];case 5:return[s,o,a]}};o.hsv.hsl=function(e){var t=e[0];var r=e[1]/100;var s=e[2]/100;var n=Math.max(s,.01);var i;var o;var a;a=(2-r)*s;i=(2-r)*n;o=r*n;o/=i<=1?i:2-i;o=o||0;a/=2;return[t,o*100,a*100]};o.hwb.rgb=function(e){var t=e[0]/360;var r=e[1]/100;var s=e[2]/100;var n=r+s;var i;var o;var a;var u;if(n>1){r/=n;s/=n}i=Math.floor(6*t);o=1-s;a=6*t-i;if((i&1)!==0){a=1-a}u=r+a*(o-r);var l;var h;var p;switch(i){default:case 6:case 0:l=o;h=u;p=r;break;case 1:l=u;h=o;p=r;break;case 2:l=r;h=o;p=u;break;case 3:l=r;h=u;p=o;break;case 4:l=u;h=r;p=o;break;case 5:l=o;h=r;p=u;break}return[l*255,h*255,p*255]};o.cmyk.rgb=function(e){var t=e[0]/100;var r=e[1]/100;var s=e[2]/100;var n=e[3]/100;var i;var o;var a;i=1-Math.min(1,t*(1-n)+n);o=1-Math.min(1,r*(1-n)+n);a=1-Math.min(1,s*(1-n)+n);return[i*255,o*255,a*255]};o.xyz.rgb=function(e){var t=e[0]/100;var r=e[1]/100;var s=e[2]/100;var n;var i;var o;n=t*3.2406+r*-1.5372+s*-.4986;i=t*-.9689+r*1.8758+s*.0415;o=t*.0557+r*-.204+s*1.057;n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*12.92;i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92;o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92;n=Math.min(Math.max(0,n),1);i=Math.min(Math.max(0,i),1);o=Math.min(Math.max(0,o),1);return[n*255,i*255,o*255]};o.xyz.lab=function(e){var t=e[0];var r=e[1];var s=e[2];var n;var i;var o;t/=95.047;r/=100;s/=108.883;t=t>.008856?Math.pow(t,1/3):7.787*t+16/116;r=r>.008856?Math.pow(r,1/3):7.787*r+16/116;s=s>.008856?Math.pow(s,1/3):7.787*s+16/116;n=116*r-16;i=500*(t-r);o=200*(r-s);return[n,i,o]};o.lab.xyz=function(e){var t=e[0];var r=e[1];var s=e[2];var n;var i;var o;i=(t+16)/116;n=r/500+i;o=i-s/200;var a=Math.pow(i,3);var u=Math.pow(n,3);var l=Math.pow(o,3);i=a>.008856?a:(i-16/116)/7.787;n=u>.008856?u:(n-16/116)/7.787;o=l>.008856?l:(o-16/116)/7.787;n*=95.047;i*=100;o*=108.883;return[n,i,o]};o.lab.lch=function(e){var t=e[0];var r=e[1];var s=e[2];var n;var i;var o;n=Math.atan2(s,r);i=n*360/2/Math.PI;if(i<0){i+=360}o=Math.sqrt(r*r+s*s);return[t,o,i]};o.lch.lab=function(e){var t=e[0];var r=e[1];var s=e[2];var n;var i;var o;o=s/360*2*Math.PI;n=r*Math.cos(o);i=r*Math.sin(o);return[t,n,i]};o.rgb.ansi16=function(e){var t=e[0];var r=e[1];var s=e[2];var n=1 in arguments?arguments[1]:o.rgb.hsv(e)[2];n=Math.round(n/50);if(n===0){return 30}var i=30+(Math.round(s/255)<<2|Math.round(r/255)<<1|Math.round(t/255));if(n===2){i+=60}return i};o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])};o.rgb.ansi256=function(e){var t=e[0];var r=e[1];var s=e[2];if(t===r&&r===s){if(t<8){return 16}if(t>248){return 231}return Math.round((t-8)/247*24)+232}var n=16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(s/255*5);return n};o.ansi16.rgb=function(e){var t=e%10;if(t===0||t===7){if(e>50){t+=3.5}t=t/10.5*255;return[t,t,t]}var r=(~~(e>50)+1)*.5;var s=(t&1)*r*255;var n=(t>>1&1)*r*255;var i=(t>>2&1)*r*255;return[s,n,i]};o.ansi256.rgb=function(e){if(e>=232){var t=(e-232)*10+8;return[t,t,t]}e-=16;var r;var s=Math.floor(e/36)/5*255;var n=Math.floor((r=e%36)/6)/5*255;var i=r%6/5*255;return[s,n,i]};o.rgb.hex=function(e){var t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255);var r=t.toString(16).toUpperCase();return"000000".substring(r.length)+r};o.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t){return[0,0,0]}var r=t[0];if(t[0].length===3){r=r.split("").map((function(e){return e+e})).join("")}var s=parseInt(r,16);var n=s>>16&255;var i=s>>8&255;var o=s&255;return[n,i,o]};o.rgb.hcg=function(e){var t=e[0]/255;var r=e[1]/255;var s=e[2]/255;var n=Math.max(Math.max(t,r),s);var i=Math.min(Math.min(t,r),s);var o=n-i;var a;var u;if(o<1){a=i/(1-o)}else{a=0}if(o<=0){u=0}else if(n===t){u=(r-s)/o%6}else if(n===r){u=2+(s-t)/o}else{u=4+(t-r)/o+4}u/=6;u%=1;return[u*360,o*100,a*100]};o.hsl.hcg=function(e){var t=e[1]/100;var r=e[2]/100;var s=1;var n=0;if(r<.5){s=2*t*r}else{s=2*t*(1-r)}if(s<1){n=(r-.5*s)/(1-s)}return[e[0],s*100,n*100]};o.hsv.hcg=function(e){var t=e[1]/100;var r=e[2]/100;var s=t*r;var n=0;if(s<1){n=(r-s)/(1-s)}return[e[0],s*100,n*100]};o.hcg.rgb=function(e){var t=e[0]/360;var r=e[1]/100;var s=e[2]/100;if(r===0){return[s*255,s*255,s*255]}var n=[0,0,0];var i=t%1*6;var o=i%1;var a=1-o;var u=0;switch(Math.floor(i)){case 0:n[0]=1;n[1]=o;n[2]=0;break;case 1:n[0]=a;n[1]=1;n[2]=0;break;case 2:n[0]=0;n[1]=1;n[2]=o;break;case 3:n[0]=0;n[1]=a;n[2]=1;break;case 4:n[0]=o;n[1]=0;n[2]=1;break;default:n[0]=1;n[1]=0;n[2]=a}u=(1-r)*s;return[(r*n[0]+u)*255,(r*n[1]+u)*255,(r*n[2]+u)*255]};o.hcg.hsv=function(e){var t=e[1]/100;var r=e[2]/100;var s=t+r*(1-t);var n=0;if(s>0){n=t/s}return[e[0],n*100,s*100]};o.hcg.hsl=function(e){var t=e[1]/100;var r=e[2]/100;var s=r*(1-t)+.5*t;var n=0;if(s>0&&s<.5){n=t/(2*s)}else if(s>=.5&&s<1){n=t/(2*(1-s))}return[e[0],n*100,s*100]};o.hcg.hwb=function(e){var t=e[1]/100;var r=e[2]/100;var s=t+r*(1-t);return[e[0],(s-t)*100,(1-s)*100]};o.hwb.hcg=function(e){var t=e[1]/100;var r=e[2]/100;var s=1-r;var n=s-t;var i=0;if(n<1){i=(s-n)/(1-n)}return[e[0],n*100,i*100]};o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};o.gray.hsl=o.gray.hsv=function(e){return[0,0,e[0]]};o.gray.hwb=function(e){return[0,100,e[0]]};o.gray.cmyk=function(e){return[0,0,0,e[0]]};o.gray.lab=function(e){return[e[0],0,0]};o.gray.hex=function(e){var t=Math.round(e[0]/100*255)&255;var r=(t<<16)+(t<<8)+t;var s=r.toString(16).toUpperCase();return"000000".substring(s.length)+s};o.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[t/255*100]}},2414:(e,t,r)=>{var s=r(9289);var n=r(1500);var i={};var o=Object.keys(s);function wrapRaw(e){var wrappedFn=function(t){if(t===undefined||t===null){return t}if(arguments.length>1){t=Array.prototype.slice.call(arguments)}return e(t)};if("conversion"in e){wrappedFn.conversion=e.conversion}return wrappedFn}function wrapRounded(e){var wrappedFn=function(t){if(t===undefined||t===null){return t}if(arguments.length>1){t=Array.prototype.slice.call(arguments)}var r=e(t);if(typeof r==="object"){for(var s=r.length,n=0;n<s;n++){r[n]=Math.round(r[n])}}return r};if("conversion"in e){wrappedFn.conversion=e.conversion}return wrappedFn}o.forEach((function(e){i[e]={};Object.defineProperty(i[e],"channels",{value:s[e].channels});Object.defineProperty(i[e],"labels",{value:s[e].labels});var t=n(e);var r=Object.keys(t);r.forEach((function(r){var s=t[r];i[e][r]=wrapRounded(s);i[e][r].raw=wrapRaw(s)}))}));e.exports=i},1500:(e,t,r)=>{var s=r(9289);var n=Object.keys(s);function buildGraph(){var e={};for(var t=n.length,r=0;r<t;r++){e[n[r]]={distance:-1,parent:null}}return e}function deriveBFS(e){var t=buildGraph();var r=[e];t[e].distance=0;while(r.length){var n=r.pop();var i=Object.keys(s[n]);for(var o=i.length,a=0;a<o;a++){var u=i[a];var l=t[u];if(l.distance===-1){l.distance=t[n].distance+1;l.parent=n;r.unshift(u)}}}return t}function link(e,t){return function(r){return t(e(r))}}function wrapConversion(e,t){var r=[t[e].parent,e];var n=s[t[e].parent][e];var i=t[e].parent;while(t[i].parent){r.unshift(t[i].parent);n=link(s[t[i].parent][i],n);i=t[i].parent}n.conversion=r;return n}e.exports=function(e){var t=deriveBFS(e);var r={};var s=Object.keys(t);for(var n=s.length,i=0;i<n;i++){var o=s[i];var a=t[o];if(a.parent===null){continue}r[o]=wrapConversion(o,t)}return r}},5150:e=>{"use strict";e.exports=(e,t)=>{t=t||process.argv;const r=e.startsWith("-")?"":e.length===1?"-":"--";const s=t.indexOf(r+e);const n=t.indexOf("--");return s!==-1&&(n===-1?true:s<n)}},4911:(e,t,r)=>{"use strict";const s=r(4034);const n=process.platform!=="win32"||process.env.CI||process.env.TERM==="xterm-256color";const i={info:s.blue("ℹ"),success:s.green("✔"),warning:s.yellow("⚠"),error:s.red("✖")};const o={info:s.blue("i"),success:s.green("√"),warning:s.yellow("‼"),error:s.red("×")};e.exports=n?i:o},2593:(e,t,r)=>{"use strict";e=r.nmd(e);const s=r(2414);const wrapAnsi16=(e,t)=>function(){const r=e.apply(s,arguments);return`[${r+t}m`};const wrapAnsi256=(e,t)=>function(){const r=e.apply(s,arguments);return`[${38+t};5;${r}m`};const wrapAnsi16m=(e,t)=>function(){const r=e.apply(s,arguments);return`[${38+t};2;${r[0]};${r[1]};${r[2]}m`};function assembleStyles(){const e=new Map;const t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.grey=t.color.gray;for(const r of Object.keys(t)){const s=t[r];for(const r of Object.keys(s)){const n=s[r];t[r]={open:`[${n[0]}m`,close:`[${n[1]}m`};s[r]=t[r];e.set(n[0],n[1])}Object.defineProperty(t,r,{value:s,enumerable:false});Object.defineProperty(t,"codes",{value:e,enumerable:false})}const ansi2ansi=e=>e;const rgb2rgb=(e,t,r)=>[e,t,r];t.color.close="";t.bgColor.close="";t.color.ansi={ansi:wrapAnsi16(ansi2ansi,0)};t.color.ansi256={ansi256:wrapAnsi256(ansi2ansi,0)};t.color.ansi16m={rgb:wrapAnsi16m(rgb2rgb,0)};t.bgColor.ansi={ansi:wrapAnsi16(ansi2ansi,10)};t.bgColor.ansi256={ansi256:wrapAnsi256(ansi2ansi,10)};t.bgColor.ansi16m={rgb:wrapAnsi16m(rgb2rgb,10)};for(let e of Object.keys(s)){if(typeof s[e]!=="object"){continue}const r=s[e];if(e==="ansi16"){e="ansi"}if("ansi16"in r){t.color.ansi[e]=wrapAnsi16(r.ansi16,0);t.bgColor.ansi[e]=wrapAnsi16(r.ansi16,10)}if("ansi256"in r){t.color.ansi256[e]=wrapAnsi256(r.ansi256,0);t.bgColor.ansi256[e]=wrapAnsi256(r.ansi256,10)}if("rgb"in r){t.color.ansi16m[e]=wrapAnsi16m(r.rgb,0);t.bgColor.ansi16m[e]=wrapAnsi16m(r.rgb,10)}}return t}Object.defineProperty(e,"exports",{enumerable:true,get:assembleStyles})},4034:(e,t,r)=>{"use strict";const s=r(8691);const n=r(2593);const i=r(6520).stdout;const o=r(6142);const a=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm");const u=["ansi","ansi","ansi256","ansi16m"];const l=new Set(["gray"]);const h=Object.create(null);function applyOptions(e,t){t=t||{};const r=i?i.level:0;e.level=t.level===undefined?r:t.level;e.enabled="enabled"in t?t.enabled:e.level>0}function Chalk(e){if(!this||!(this instanceof Chalk)||this.template){const t={};applyOptions(t,e);t.template=function(){const e=[].slice.call(arguments);return chalkTag.apply(null,[t.template].concat(e))};Object.setPrototypeOf(t,Chalk.prototype);Object.setPrototypeOf(t.template,t);t.template.constructor=Chalk;return t.template}applyOptions(this,e)}if(a){n.blue.open=""}for(const e of Object.keys(n)){n[e].closeRe=new RegExp(s(n[e].close),"g");h[e]={get(){const t=n[e];return build.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}}}h.visible={get(){return build.call(this,this._styles||[],true,"visible")}};n.color.closeRe=new RegExp(s(n.color.close),"g");for(const e of Object.keys(n.color.ansi)){if(l.has(e)){continue}h[e]={get(){const t=this.level;return function(){const r=n.color[u[t]][e].apply(null,arguments);const s={open:r,close:n.color.close,closeRe:n.color.closeRe};return build.call(this,this._styles?this._styles.concat(s):[s],this._empty,e)}}}}n.bgColor.closeRe=new RegExp(s(n.bgColor.close),"g");for(const e of Object.keys(n.bgColor.ansi)){if(l.has(e)){continue}const t="bg"+e[0].toUpperCase()+e.slice(1);h[t]={get(){const t=this.level;return function(){const r=n.bgColor[u[t]][e].apply(null,arguments);const s={open:r,close:n.bgColor.close,closeRe:n.bgColor.closeRe};return build.call(this,this._styles?this._styles.concat(s):[s],this._empty,e)}}}}const p=Object.defineProperties((()=>{}),h);function build(e,t,r){const builder=function(){return applyStyle.apply(builder,arguments)};builder._styles=e;builder._empty=t;const s=this;Object.defineProperty(builder,"level",{enumerable:true,get(){return s.level},set(e){s.level=e}});Object.defineProperty(builder,"enabled",{enumerable:true,get(){return s.enabled},set(e){s.enabled=e}});builder.hasGrey=this.hasGrey||r==="gray"||r==="grey";builder.__proto__=p;return builder}function applyStyle(){const e=arguments;const t=e.length;let r=String(arguments[0]);if(t===0){return""}if(t>1){for(let s=1;s<t;s++){r+=" "+e[s]}}if(!this.enabled||this.level<=0||!r){return this._empty?"":r}const s=n.dim.open;if(a&&this.hasGrey){n.dim.open=""}for(const e of this._styles.slice().reverse()){r=e.open+r.replace(e.closeRe,e.open)+e.close;r=r.replace(/\r?\n/g,`${e.close}$&${e.open}`)}n.dim.open=s;return r}function chalkTag(e,t){if(!Array.isArray(t)){return[].slice.call(arguments,1).join(" ")}const r=[].slice.call(arguments,2);const s=[t.raw[0]];for(let e=1;e<t.length;e++){s.push(String(r[e-1]).replace(/[{}\\]/g,"\\$&"));s.push(String(t.raw[e]))}return o(e,s.join(""))}Object.defineProperties(Chalk.prototype,h);e.exports=Chalk();e.exports.supportsColor=i;e.exports["default"]=e.exports},6142:e=>{"use strict";const t=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;const r=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;const s=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;const n=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi;const i=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function unescape(e){if(e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3){return String.fromCharCode(parseInt(e.slice(1),16))}return i.get(e)||e}function parseArguments(e,t){const r=[];const i=t.trim().split(/\s*,\s*/g);let o;for(const t of i){if(!isNaN(t)){r.push(Number(t))}else if(o=t.match(s)){r.push(o[2].replace(n,((e,t,r)=>t?unescape(t):r)))}else{throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`)}}return r}function parseStyle(e){r.lastIndex=0;const t=[];let s;while((s=r.exec(e))!==null){const e=s[1];if(s[2]){const r=parseArguments(e,s[2]);t.push([e].concat(r))}else{t.push([e])}}return t}function buildStyle(e,t){const r={};for(const e of t){for(const t of e.styles){r[t[0]]=e.inverse?null:t.slice(1)}}let s=e;for(const e of Object.keys(r)){if(Array.isArray(r[e])){if(!(e in s)){throw new Error(`Unknown Chalk style: ${e}`)}if(r[e].length>0){s=s[e].apply(s,r[e])}else{s=s[e]}}}return s}e.exports=(e,r)=>{const s=[];const n=[];let i=[];r.replace(t,((t,r,o,a,u,l)=>{if(r){i.push(unescape(r))}else if(a){const t=i.join("");i=[];n.push(s.length===0?t:buildStyle(e,s)(t));s.push({inverse:o,styles:parseStyle(a)})}else if(u){if(s.length===0){throw new Error("Found extraneous } in Chalk template literal")}n.push(buildStyle(e,s)(i.join("")));i=[];s.pop()}else{i.push(l)}}));n.push(i.join(""));if(s.length>0){const e=`Chalk template literal is missing ${s.length} closing bracket${s.length===1?"":"s"} (\`}\`)`;throw new Error(e)}return n.join("")}},6520:(e,t,r)=>{"use strict";const s=r(2037);const n=r(5150);const i=process.env;let o;if(n("no-color")||n("no-colors")||n("color=false")){o=false}else if(n("color")||n("colors")||n("color=true")||n("color=always")){o=true}if("FORCE_COLOR"in i){o=i.FORCE_COLOR.length===0||parseInt(i.FORCE_COLOR,10)!==0}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e){if(o===false){return 0}if(n("color=16m")||n("color=full")||n("color=truecolor")){return 3}if(n("color=256")){return 2}if(e&&!e.isTTY&&o!==true){return 0}const t=o?1:0;if(process.platform==="win32"){const e=s.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in i){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in i))||i.CI_NAME==="codeship"){return 1}return t}if("TEAMCITY_VERSION"in i){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0}if(i.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in i){const e=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(i.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)){return 1}if("COLORTERM"in i){return 1}if(i.TERM==="dumb"){return t}return t}function getSupportLevel(e){const t=supportsColor(e);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:getSupportLevel(process.stdout),stderr:getSupportLevel(process.stderr)}},6547:(e,t,r)=>{"use strict";const s=r(9082);const n=r(4931);e.exports=s((()=>{n((()=>{process.stderr.write("[?25h")}),{alwaysLast:true})}))},3406:(e,t,r)=>{"use strict";var s=r(2037);function homedir(){var e=process.env;var t=e.HOME;var r=e.LOGNAME||e.USER||e.LNAME||e.USERNAME;if(process.platform==="win32"){return e.USERPROFILE||e.HOMEDRIVE+e.HOMEPATH||t||null}if(process.platform==="darwin"){return t||(r?"/Users/"+r:null)}if(process.platform==="linux"){return t||(process.getuid()===0?"/root":r?"/home/"+r:null)}return t||null}e.exports=typeof s.homedir==="function"?s.homedir:homedir},1284:e=>{"use strict";var t=process.platform==="win32";var r=t?/[^:]\\$/:/.\/$/;e.exports=function(){var e;if(t){e=process.env.TEMP||process.env.TMP||(process.env.SystemRoot||process.env.windir)+"\\temp"}else{e=process.env.TMPDIR||process.env.TMP||process.env.TEMP||"/tmp"}if(r.test(e)){e=e.slice(0,-1)}return e}},4669:(e,t,r)=>{var s=process.platform==="win32";var n=r(1017);var i=r(2081).exec;var o=r(1284);var a=r(3406);function memo(e,r,s){var n=false;var o=false;t[e]=function(a){var u=r();if(!u&&!n&&!o&&s){n=true;o=true;i(s,(function(e,t,r){o=false;if(e)return;u=t.trim()}))}t[e]=function(e){if(e)process.nextTick(e.bind(null,null,u));return u};if(a&&!o)process.nextTick(a.bind(null,null,u));return u}}memo("user",(function(){return s?process.env.USERDOMAIN+"\\"+process.env.USERNAME:process.env.USER}),"whoami");memo("prompt",(function(){return s?process.env.PROMPT:process.env.PS1}));memo("hostname",(function(){return s?process.env.COMPUTERNAME:process.env.HOSTNAME}),"hostname");memo("tmpdir",(function(){return o()}));memo("home",(function(){return a()}));memo("path",(function(){return(process.env.PATH||process.env.Path||process.env.path).split(s?";":":")}));memo("editor",(function(){return process.env.EDITOR||process.env.VISUAL||(s?"notepad.exe":"vi")}));memo("shell",(function(){return s?process.env.ComSpec||"cmd":process.env.SHELL||"bash"}))},9072:e=>{"use strict";class CancelError extends Error{constructor(e){super(e||"Promise was canceled");this.name="CancelError"}get isCanceled(){return true}}class PCancelable{static fn(e){return(...t)=>new PCancelable(((r,s,n)=>{t.push(n);e(...t).then(r,s)}))}constructor(e){this._cancelHandlers=[];this._isPending=true;this._isCanceled=false;this._rejectOnCancel=true;this._promise=new Promise(((t,r)=>{this._reject=r;const onResolve=e=>{this._isPending=false;t(e)};const onReject=e=>{this._isPending=false;r(e)};const onCancel=e=>{if(!this._isPending){throw new Error("The `onCancel` handler was attached after the promise settled.")}this._cancelHandlers.push(e)};Object.defineProperties(onCancel,{shouldReject:{get:()=>this._rejectOnCancel,set:e=>{this._rejectOnCancel=e}}});return e(onResolve,onReject,onCancel)}))}then(e,t){return this._promise.then(e,t)}catch(e){return this._promise.catch(e)}finally(e){return this._promise.finally(e)}cancel(e){if(!this._isPending||this._isCanceled){return}if(this._cancelHandlers.length>0){try{for(const e of this._cancelHandlers){e()}}catch(e){this._reject(e)}}this._isCanceled=true;if(this._rejectOnCancel){this._reject(new CancelError(e))}}get isCanceled(){return this._isCanceled}}Object.setPrototypeOf(PCancelable.prototype,Promise.prototype);e.exports=PCancelable;e.exports.CancelError=CancelError},8714:e=>{"use strict";function posix(e){return e.charAt(0)==="/"}function win32(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;var r=t.exec(e);var s=r[1]||"";var n=Boolean(s&&s.charAt(1)!==":");return Boolean(r[2]||n)}e.exports=process.platform==="win32"?win32:posix;e.exports.posix=posix;e.exports.win32=win32},539:e=>{"use strict";e.exports=e=>{e=e||{};const t=e.env||process.env;const r=e.platform||process.platform;if(r!=="win32"){return"PATH"}return Object.keys(t).find((e=>e.toUpperCase()==="PATH"))||"Path"}},8569:(e,t,r)=>{"use strict";e.exports=r(3322)},6099:(e,t,r)=>{"use strict";const s=r(1017);const n="\\\\/";const i=`[^${n}]`;const o="\\.";const a="\\+";const u="\\?";const l="\\/";const h="(?=.)";const p="[^/]";const d=`(?:${l}|$)`;const m=`(?:^|${l})`;const y=`${o}{1,2}${d}`;const g=`(?!${o})`;const v=`(?!${m}${y})`;const b=`(?!${o}{0,1}${d})`;const w=`(?!${y})`;const A=`[^.${l}]`;const _=`${p}*?`;const S={DOT_LITERAL:o,PLUS_LITERAL:a,QMARK_LITERAL:u,SLASH_LITERAL:l,ONE_CHAR:h,QMARK:p,END_ANCHOR:d,DOTS_SLASH:y,NO_DOT:g,NO_DOTS:v,NO_DOT_SLASH:b,NO_DOTS_SLASH:w,QMARK_NO_DOT:A,STAR:_,START_ANCHOR:m};const C={...S,SLASH_LITERAL:`[${n}]`,QMARK:i,STAR:`${i}*?`,DOTS_SLASH:`${o}{1,2}(?:[${n}]|$)`,NO_DOT:`(?!${o})`,NO_DOTS:`(?!(?:^|[${n}])${o}{1,2}(?:[${n}]|$))`,NO_DOT_SLASH:`(?!${o}{0,1}(?:[${n}]|$))`,NO_DOTS_SLASH:`(?!${o}{1,2}(?:[${n}]|$))`,QMARK_NO_DOT:`[^.${n}]`,START_ANCHOR:`(?:^|[${n}])`,END_ANCHOR:`(?:[${n}]|$)`};const D={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};e.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:D,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:s.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===true?C:S}}},2139:(e,t,r)=>{"use strict";const s=r(6099);const n=r(479);const{MAX_LENGTH:i,POSIX_REGEX_SOURCE:o,REGEX_NON_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_BACKREF:u,REPLACEMENTS:l}=s;const expandRange=(e,t)=>{if(typeof t.expandRange==="function"){return t.expandRange(...e,t)}e.sort();const r=`[${e.join("-")}]`;try{new RegExp(r)}catch(t){return e.map((e=>n.escapeRegex(e))).join("..")}return r};const syntaxError=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`;const parse=(e,t)=>{if(typeof e!=="string"){throw new TypeError("Expected a string")}e=l[e]||e;const r={...t};const h=typeof r.maxLength==="number"?Math.min(i,r.maxLength):i;let p=e.length;if(p>h){throw new SyntaxError(`Input length: ${p}, exceeds maximum allowed length: ${h}`)}const d={type:"bos",value:"",output:r.prepend||""};const m=[d];const y=r.capture?"":"?:";const g=n.isWindows(t);const v=s.globChars(g);const b=s.extglobChars(v);const{DOT_LITERAL:w,PLUS_LITERAL:A,SLASH_LITERAL:_,ONE_CHAR:S,DOTS_SLASH:C,NO_DOT:D,NO_DOT_SLASH:x,NO_DOTS_SLASH:R,QMARK:k,QMARK_NO_DOT:O,STAR:T,START_ANCHOR:P}=v;const globstar=e=>`(${y}(?:(?!${P}${e.dot?C:w}).)*?)`;const M=r.dot?"":D;const B=r.dot?k:O;let j=r.bash===true?globstar(r):T;if(r.capture){j=`(${j})`}if(typeof r.noext==="boolean"){r.noextglob=r.noext}const I={input:e,index:-1,start:0,dot:r.dot===true,consumed:"",output:"",prefix:"",backtrack:false,negated:false,brackets:0,braces:0,parens:0,quotes:0,globstar:false,tokens:m};e=n.removePrefix(e,I);p=e.length;const N=[];const L=[];const $=[];let H=d;let U;const eos=()=>I.index===p-1;const G=I.peek=(t=1)=>e[I.index+t];const z=I.advance=()=>e[++I.index];const remaining=()=>e.slice(I.index+1);const consume=(e="",t=0)=>{I.consumed+=e;I.index+=t};const append=e=>{I.output+=e.output!=null?e.output:e.value;consume(e.value)};const negate=()=>{let e=1;while(G()==="!"&&(G(2)!=="("||G(3)==="?")){z();I.start++;e++}if(e%2===0){return false}I.negated=true;I.start++;return true};const increment=e=>{I[e]++;$.push(e)};const decrement=e=>{I[e]--;$.pop()};const push=e=>{if(H.type==="globstar"){const t=I.braces>0&&(e.type==="comma"||e.type==="brace");const r=e.extglob===true||N.length&&(e.type==="pipe"||e.type==="paren");if(e.type!=="slash"&&e.type!=="paren"&&!t&&!r){I.output=I.output.slice(0,-H.output.length);H.type="star";H.value="*";H.output=j;I.output+=H.output}}if(N.length&&e.type!=="paren"&&!b[e.value]){N[N.length-1].inner+=e.value}if(e.value||e.output)append(e);if(H&&H.type==="text"&&e.type==="text"){H.value+=e.value;H.output=(H.output||"")+e.value;return}e.prev=H;m.push(e);H=e};const extglobOpen=(e,t)=>{const s={...b[t],conditions:1,inner:""};s.prev=H;s.parens=I.parens;s.output=I.output;const n=(r.capture?"(":"")+s.open;increment("parens");push({type:e,value:t,output:I.output?"":S});push({type:"paren",extglob:true,value:z(),output:n});N.push(s)};const extglobClose=e=>{let t=e.close+(r.capture?")":"");if(e.type==="negate"){let s=j;if(e.inner&&e.inner.length>1&&e.inner.includes("/")){s=globstar(r)}if(s!==j||eos()||/^\)+$/.test(remaining())){t=e.close=`)$))${s}`}if(e.prev.type==="bos"&&eos()){I.negatedExtglob=true}}push({type:"paren",extglob:true,value:U,output:t});decrement("parens")};if(r.fastpaths!==false&&!/(^[*!]|[/()[\]{}"])/.test(e)){let s=false;let i=e.replace(u,((e,t,r,n,i,o)=>{if(n==="\\"){s=true;return e}if(n==="?"){if(t){return t+n+(i?k.repeat(i.length):"")}if(o===0){return B+(i?k.repeat(i.length):"")}return k.repeat(r.length)}if(n==="."){return w.repeat(r.length)}if(n==="*"){if(t){return t+n+(i?j:"")}return j}return t?e:`\\${e}`}));if(s===true){if(r.unescape===true){i=i.replace(/\\/g,"")}else{i=i.replace(/\\+/g,(e=>e.length%2===0?"\\\\":e?"\\":""))}}if(i===e&&r.contains===true){I.output=e;return I}I.output=n.wrapOutput(i,I,t);return I}while(!eos()){U=z();if(U==="\0"){continue}if(U==="\\"){const e=G();if(e==="/"&&r.bash!==true){continue}if(e==="."||e===";"){continue}if(!e){U+="\\";push({type:"text",value:U});continue}const t=/^\\+/.exec(remaining());let s=0;if(t&&t[0].length>2){s=t[0].length;I.index+=s;if(s%2!==0){U+="\\"}}if(r.unescape===true){U=z()||""}else{U+=z()||""}if(I.brackets===0){push({type:"text",value:U});continue}}if(I.brackets>0&&(U!=="]"||H.value==="["||H.value==="[^")){if(r.posix!==false&&U===":"){const e=H.value.slice(1);if(e.includes("[")){H.posix=true;if(e.includes(":")){const e=H.value.lastIndexOf("[");const t=H.value.slice(0,e);const r=H.value.slice(e+2);const s=o[r];if(s){H.value=t+s;I.backtrack=true;z();if(!d.output&&m.indexOf(H)===1){d.output=S}continue}}}}if(U==="["&&G()!==":"||U==="-"&&G()==="]"){U=`\\${U}`}if(U==="]"&&(H.value==="["||H.value==="[^")){U=`\\${U}`}if(r.posix===true&&U==="!"&&H.value==="["){U="^"}H.value+=U;append({value:U});continue}if(I.quotes===1&&U!=='"'){U=n.escapeRegex(U);H.value+=U;append({value:U});continue}if(U==='"'){I.quotes=I.quotes===1?0:1;if(r.keepQuotes===true){push({type:"text",value:U})}continue}if(U==="("){increment("parens");push({type:"paren",value:U});continue}if(U===")"){if(I.parens===0&&r.strictBrackets===true){throw new SyntaxError(syntaxError("opening","("))}const e=N[N.length-1];if(e&&I.parens===e.parens+1){extglobClose(N.pop());continue}push({type:"paren",value:U,output:I.parens?")":"\\)"});decrement("parens");continue}if(U==="["){if(r.nobracket===true||!remaining().includes("]")){if(r.nobracket!==true&&r.strictBrackets===true){throw new SyntaxError(syntaxError("closing","]"))}U=`\\${U}`}else{increment("brackets")}push({type:"bracket",value:U});continue}if(U==="]"){if(r.nobracket===true||H&&H.type==="bracket"&&H.value.length===1){push({type:"text",value:U,output:`\\${U}`});continue}if(I.brackets===0){if(r.strictBrackets===true){throw new SyntaxError(syntaxError("opening","["))}push({type:"text",value:U,output:`\\${U}`});continue}decrement("brackets");const e=H.value.slice(1);if(H.posix!==true&&e[0]==="^"&&!e.includes("/")){U=`/${U}`}H.value+=U;append({value:U});if(r.literalBrackets===false||n.hasRegexChars(e)){continue}const t=n.escapeRegex(H.value);I.output=I.output.slice(0,-H.value.length);if(r.literalBrackets===true){I.output+=t;H.value=t;continue}H.value=`(${y}${t}|${H.value})`;I.output+=H.value;continue}if(U==="{"&&r.nobrace!==true){increment("braces");const e={type:"brace",value:U,output:"(",outputIndex:I.output.length,tokensIndex:I.tokens.length};L.push(e);push(e);continue}if(U==="}"){const e=L[L.length-1];if(r.nobrace===true||!e){push({type:"text",value:U,output:U});continue}let t=")";if(e.dots===true){const e=m.slice();const s=[];for(let t=e.length-1;t>=0;t--){m.pop();if(e[t].type==="brace"){break}if(e[t].type!=="dots"){s.unshift(e[t].value)}}t=expandRange(s,r);I.backtrack=true}if(e.comma!==true&&e.dots!==true){const r=I.output.slice(0,e.outputIndex);const s=I.tokens.slice(e.tokensIndex);e.value=e.output="\\{";U=t="\\}";I.output=r;for(const e of s){I.output+=e.output||e.value}}push({type:"brace",value:U,output:t});decrement("braces");L.pop();continue}if(U==="|"){if(N.length>0){N[N.length-1].conditions++}push({type:"text",value:U});continue}if(U===","){let e=U;const t=L[L.length-1];if(t&&$[$.length-1]==="braces"){t.comma=true;e="|"}push({type:"comma",value:U,output:e});continue}if(U==="/"){if(H.type==="dot"&&I.index===I.start+1){I.start=I.index+1;I.consumed="";I.output="";m.pop();H=d;continue}push({type:"slash",value:U,output:_});continue}if(U==="."){if(I.braces>0&&H.type==="dot"){if(H.value===".")H.output=w;const e=L[L.length-1];H.type="dots";H.output+=U;H.value+=U;e.dots=true;continue}if(I.braces+I.parens===0&&H.type!=="bos"&&H.type!=="slash"){push({type:"text",value:U,output:w});continue}push({type:"dot",value:U,output:w});continue}if(U==="?"){const e=H&&H.value==="(";if(!e&&r.noextglob!==true&&G()==="("&&G(2)!=="?"){extglobOpen("qmark",U);continue}if(H&&H.type==="paren"){const e=G();let t=U;if(e==="<"&&!n.supportsLookbehinds()){throw new Error("Node.js v10 or higher is required for regex lookbehinds")}if(H.value==="("&&!/[!=<:]/.test(e)||e==="<"&&!/<([!=]|\w+>)/.test(remaining())){t=`\\${U}`}push({type:"text",value:U,output:t});continue}if(r.dot!==true&&(H.type==="slash"||H.type==="bos")){push({type:"qmark",value:U,output:O});continue}push({type:"qmark",value:U,output:k});continue}if(U==="!"){if(r.noextglob!==true&&G()==="("){if(G(2)!=="?"||!/[!=<:]/.test(G(3))){extglobOpen("negate",U);continue}}if(r.nonegate!==true&&I.index===0){negate();continue}}if(U==="+"){if(r.noextglob!==true&&G()==="("&&G(2)!=="?"){extglobOpen("plus",U);continue}if(H&&H.value==="("||r.regex===false){push({type:"plus",value:U,output:A});continue}if(H&&(H.type==="bracket"||H.type==="paren"||H.type==="brace")||I.parens>0){push({type:"plus",value:U});continue}push({type:"plus",value:A});continue}if(U==="@"){if(r.noextglob!==true&&G()==="("&&G(2)!=="?"){push({type:"at",extglob:true,value:U,output:""});continue}push({type:"text",value:U});continue}if(U!=="*"){if(U==="$"||U==="^"){U=`\\${U}`}const e=a.exec(remaining());if(e){U+=e[0];I.index+=e[0].length}push({type:"text",value:U});continue}if(H&&(H.type==="globstar"||H.star===true)){H.type="star";H.star=true;H.value+=U;H.output=j;I.backtrack=true;I.globstar=true;consume(U);continue}let t=remaining();if(r.noextglob!==true&&/^\([^?]/.test(t)){extglobOpen("star",U);continue}if(H.type==="star"){if(r.noglobstar===true){consume(U);continue}const s=H.prev;const n=s.prev;const i=s.type==="slash"||s.type==="bos";const o=n&&(n.type==="star"||n.type==="globstar");if(r.bash===true&&(!i||t[0]&&t[0]!=="/")){push({type:"star",value:U,output:""});continue}const a=I.braces>0&&(s.type==="comma"||s.type==="brace");const u=N.length&&(s.type==="pipe"||s.type==="paren");if(!i&&s.type!=="paren"&&!a&&!u){push({type:"star",value:U,output:""});continue}while(t.slice(0,3)==="/**"){const r=e[I.index+4];if(r&&r!=="/"){break}t=t.slice(3);consume("/**",3)}if(s.type==="bos"&&eos()){H.type="globstar";H.value+=U;H.output=globstar(r);I.output=H.output;I.globstar=true;consume(U);continue}if(s.type==="slash"&&s.prev.type!=="bos"&&!o&&eos()){I.output=I.output.slice(0,-(s.output+H.output).length);s.output=`(?:${s.output}`;H.type="globstar";H.output=globstar(r)+(r.strictSlashes?")":"|$)");H.value+=U;I.globstar=true;I.output+=s.output+H.output;consume(U);continue}if(s.type==="slash"&&s.prev.type!=="bos"&&t[0]==="/"){const e=t[1]!==void 0?"|$":"";I.output=I.output.slice(0,-(s.output+H.output).length);s.output=`(?:${s.output}`;H.type="globstar";H.output=`${globstar(r)}${_}|${_}${e})`;H.value+=U;I.output+=s.output+H.output;I.globstar=true;consume(U+z());push({type:"slash",value:"/",output:""});continue}if(s.type==="bos"&&t[0]==="/"){H.type="globstar";H.value+=U;H.output=`(?:^|${_}|${globstar(r)}${_})`;I.output=H.output;I.globstar=true;consume(U+z());push({type:"slash",value:"/",output:""});continue}I.output=I.output.slice(0,-H.output.length);H.type="globstar";H.output=globstar(r);H.value+=U;I.output+=H.output;I.globstar=true;consume(U);continue}const s={type:"star",value:U,output:j};if(r.bash===true){s.output=".*?";if(H.type==="bos"||H.type==="slash"){s.output=M+s.output}push(s);continue}if(H&&(H.type==="bracket"||H.type==="paren")&&r.regex===true){s.output=U;push(s);continue}if(I.index===I.start||H.type==="slash"||H.type==="dot"){if(H.type==="dot"){I.output+=x;H.output+=x}else if(r.dot===true){I.output+=R;H.output+=R}else{I.output+=M;H.output+=M}if(G()!=="*"){I.output+=S;H.output+=S}}push(s)}while(I.brackets>0){if(r.strictBrackets===true)throw new SyntaxError(syntaxError("closing","]"));I.output=n.escapeLast(I.output,"[");decrement("brackets")}while(I.parens>0){if(r.strictBrackets===true)throw new SyntaxError(syntaxError("closing",")"));I.output=n.escapeLast(I.output,"(");decrement("parens")}while(I.braces>0){if(r.strictBrackets===true)throw new SyntaxError(syntaxError("closing","}"));I.output=n.escapeLast(I.output,"{");decrement("braces")}if(r.strictSlashes!==true&&(H.type==="star"||H.type==="bracket")){push({type:"maybe_slash",value:"",output:`${_}?`})}if(I.backtrack===true){I.output="";for(const e of I.tokens){I.output+=e.output!=null?e.output:e.value;if(e.suffix){I.output+=e.suffix}}}return I};parse.fastpaths=(e,t)=>{const r={...t};const o=typeof r.maxLength==="number"?Math.min(i,r.maxLength):i;const a=e.length;if(a>o){throw new SyntaxError(`Input length: ${a}, exceeds maximum allowed length: ${o}`)}e=l[e]||e;const u=n.isWindows(t);const{DOT_LITERAL:h,SLASH_LITERAL:p,ONE_CHAR:d,DOTS_SLASH:m,NO_DOT:y,NO_DOTS:g,NO_DOTS_SLASH:v,STAR:b,START_ANCHOR:w}=s.globChars(u);const A=r.dot?g:y;const _=r.dot?v:y;const S=r.capture?"":"?:";const C={negated:false,prefix:""};let D=r.bash===true?".*?":b;if(r.capture){D=`(${D})`}const globstar=e=>{if(e.noglobstar===true)return D;return`(${S}(?:(?!${w}${e.dot?m:h}).)*?)`};const create=e=>{switch(e){case"*":return`${A}${d}${D}`;case".*":return`${h}${d}${D}`;case"*.*":return`${A}${D}${h}${d}${D}`;case"*/*":return`${A}${D}${p}${d}${_}${D}`;case"**":return A+globstar(r);case"**/*":return`(?:${A}${globstar(r)}${p})?${_}${d}${D}`;case"**/*.*":return`(?:${A}${globstar(r)}${p})?${_}${D}${h}${d}${D}`;case"**/.*":return`(?:${A}${globstar(r)}${p})?${h}${d}${D}`;default:{const t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;const r=create(t[1]);if(!r)return;return r+h+t[2]}}};const x=n.removePrefix(e,C);let R=create(x);if(R&&r.strictSlashes!==true){R+=`${p}?`}return R};e.exports=parse},3322:(e,t,r)=>{"use strict";const s=r(1017);const n=r(2429);const i=r(2139);const o=r(479);const a=r(6099);const isObject=e=>e&&typeof e==="object"&&!Array.isArray(e);const picomatch=(e,t,r=false)=>{if(Array.isArray(e)){const s=e.map((e=>picomatch(e,t,r)));const arrayMatcher=e=>{for(const t of s){const r=t(e);if(r)return r}return false};return arrayMatcher}const s=isObject(e)&&e.tokens&&e.input;if(e===""||typeof e!=="string"&&!s){throw new TypeError("Expected pattern to be a non-empty string")}const n=t||{};const i=o.isWindows(t);const a=s?picomatch.compileRe(e,t):picomatch.makeRe(e,t,false,true);const u=a.state;delete a.state;let isIgnored=()=>false;if(n.ignore){const e={...t,ignore:null,onMatch:null,onResult:null};isIgnored=picomatch(n.ignore,e,r)}const matcher=(r,s=false)=>{const{isMatch:o,match:l,output:h}=picomatch.test(r,a,t,{glob:e,posix:i});const p={glob:e,state:u,regex:a,posix:i,input:r,output:h,match:l,isMatch:o};if(typeof n.onResult==="function"){n.onResult(p)}if(o===false){p.isMatch=false;return s?p:false}if(isIgnored(r)){if(typeof n.onIgnore==="function"){n.onIgnore(p)}p.isMatch=false;return s?p:false}if(typeof n.onMatch==="function"){n.onMatch(p)}return s?p:true};if(r){matcher.state=u}return matcher};picomatch.test=(e,t,r,{glob:s,posix:n}={})=>{if(typeof e!=="string"){throw new TypeError("Expected input to be a string")}if(e===""){return{isMatch:false,output:""}}const i=r||{};const a=i.format||(n?o.toPosixSlashes:null);let u=e===s;let l=u&&a?a(e):e;if(u===false){l=a?a(e):e;u=l===s}if(u===false||i.capture===true){if(i.matchBase===true||i.basename===true){u=picomatch.matchBase(e,t,r,n)}else{u=t.exec(l)}}return{isMatch:Boolean(u),match:u,output:l}};picomatch.matchBase=(e,t,r,n=o.isWindows(r))=>{const i=t instanceof RegExp?t:picomatch.makeRe(t,r);return i.test(s.basename(e))};picomatch.isMatch=(e,t,r)=>picomatch(t,r)(e);picomatch.parse=(e,t)=>{if(Array.isArray(e))return e.map((e=>picomatch.parse(e,t)));return i(e,{...t,fastpaths:false})};picomatch.scan=(e,t)=>n(e,t);picomatch.compileRe=(e,t,r=false,s=false)=>{if(r===true){return e.output}const n=t||{};const i=n.contains?"":"^";const o=n.contains?"":"$";let a=`${i}(?:${e.output})${o}`;if(e&&e.negated===true){a=`^(?!${a}).*$`}const u=picomatch.toRegex(a,t);if(s===true){u.state=e}return u};picomatch.makeRe=(e,t,r=false,s=false)=>{if(!e||typeof e!=="string"){throw new TypeError("Expected a non-empty string")}const n=t||{};let o={negated:false,fastpaths:true};let a="";let u;if(e.startsWith("./")){e=e.slice(2);a=o.prefix="./"}if(n.fastpaths!==false&&(e[0]==="."||e[0]==="*")){u=i.fastpaths(e,t)}if(u===undefined){o=i(e,t);o.prefix=a+(o.prefix||"")}else{o.output=u}return picomatch.compileRe(o,t,r,s)};picomatch.toRegex=(e,t)=>{try{const r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(e){if(t&&t.debug===true)throw e;return/$^/}};picomatch.constants=a;e.exports=picomatch},2429:(e,t,r)=>{"use strict";const s=r(479);const{CHAR_ASTERISK:n,CHAR_AT:i,CHAR_BACKWARD_SLASH:o,CHAR_COMMA:a,CHAR_DOT:u,CHAR_EXCLAMATION_MARK:l,CHAR_FORWARD_SLASH:h,CHAR_LEFT_CURLY_BRACE:p,CHAR_LEFT_PARENTHESES:d,CHAR_LEFT_SQUARE_BRACKET:m,CHAR_PLUS:y,CHAR_QUESTION_MARK:g,CHAR_RIGHT_CURLY_BRACE:v,CHAR_RIGHT_PARENTHESES:b,CHAR_RIGHT_SQUARE_BRACKET:w}=r(6099);const isPathSeparator=e=>e===h||e===o;const depth=e=>{if(e.isPrefix!==true){e.depth=e.isGlobstar?Infinity:1}};const scan=(e,t)=>{const r=t||{};const A=e.length-1;const _=r.parts===true||r.scanToEnd===true;const S=[];const C=[];const D=[];let x=e;let R=-1;let k=0;let O=0;let T=false;let P=false;let M=false;let B=false;let j=false;let I=false;let N=false;let L=false;let $=false;let H=0;let U;let G;let z={value:"",depth:0,isGlob:false};const eos=()=>R>=A;const peek=()=>x.charCodeAt(R+1);const advance=()=>{U=G;return x.charCodeAt(++R)};while(R<A){G=advance();let e;if(G===o){N=z.backslashes=true;G=advance();if(G===p){I=true}continue}if(I===true||G===p){H++;while(eos()!==true&&(G=advance())){if(G===o){N=z.backslashes=true;advance();continue}if(G===p){H++;continue}if(I!==true&&G===u&&(G=advance())===u){T=z.isBrace=true;M=z.isGlob=true;$=true;if(_===true){continue}break}if(I!==true&&G===a){T=z.isBrace=true;M=z.isGlob=true;$=true;if(_===true){continue}break}if(G===v){H--;if(H===0){I=false;T=z.isBrace=true;$=true;break}}}if(_===true){continue}break}if(G===h){S.push(R);C.push(z);z={value:"",depth:0,isGlob:false};if($===true)continue;if(U===u&&R===k+1){k+=2;continue}O=R+1;continue}if(r.noext!==true){const e=G===y||G===i||G===n||G===g||G===l;if(e===true&&peek()===d){M=z.isGlob=true;B=z.isExtglob=true;$=true;if(_===true){while(eos()!==true&&(G=advance())){if(G===o){N=z.backslashes=true;G=advance();continue}if(G===b){M=z.isGlob=true;$=true;break}}continue}break}}if(G===n){if(U===n)j=z.isGlobstar=true;M=z.isGlob=true;$=true;if(_===true){continue}break}if(G===g){M=z.isGlob=true;$=true;if(_===true){continue}break}if(G===m){while(eos()!==true&&(e=advance())){if(e===o){N=z.backslashes=true;advance();continue}if(e===w){P=z.isBracket=true;M=z.isGlob=true;$=true;if(_===true){continue}break}}}if(r.nonegate!==true&&G===l&&R===k){L=z.negated=true;k++;continue}if(r.noparen!==true&&G===d){M=z.isGlob=true;if(_===true){while(eos()!==true&&(G=advance())){if(G===d){N=z.backslashes=true;G=advance();continue}if(G===b){$=true;break}}continue}break}if(M===true){$=true;if(_===true){continue}break}}if(r.noext===true){B=false;M=false}let q=x;let V="";let W="";if(k>0){V=x.slice(0,k);x=x.slice(k);O-=k}if(q&&M===true&&O>0){q=x.slice(0,O);W=x.slice(O)}else if(M===true){q="";W=x}else{q=x}if(q&&q!==""&&q!=="/"&&q!==x){if(isPathSeparator(q.charCodeAt(q.length-1))){q=q.slice(0,-1)}}if(r.unescape===true){if(W)W=s.removeBackslashes(W);if(q&&N===true){q=s.removeBackslashes(q)}}const Y={prefix:V,input:e,start:k,base:q,glob:W,isBrace:T,isBracket:P,isGlob:M,isExtglob:B,isGlobstar:j,negated:L};if(r.tokens===true){Y.maxDepth=0;if(!isPathSeparator(G)){C.push(z)}Y.tokens=C}if(r.parts===true||r.tokens===true){let t;for(let s=0;s<S.length;s++){const n=t?t+1:k;const i=S[s];const o=e.slice(n,i);if(r.tokens){if(s===0&&k!==0){C[s].isPrefix=true;C[s].value=V}else{C[s].value=o}depth(C[s]);Y.maxDepth+=C[s].depth}if(s!==0||o!==""){D.push(o)}t=i}if(t&&t+1<e.length){const s=e.slice(t+1);D.push(s);if(r.tokens){C[C.length-1].value=s;depth(C[C.length-1]);Y.maxDepth+=C[C.length-1].depth}}Y.slashes=S;Y.parts=D}return Y};e.exports=scan},479:(e,t,r)=>{"use strict";const s=r(1017);const n=process.platform==="win32";const{REGEX_BACKSLASH:i,REGEX_REMOVE_BACKSLASH:o,REGEX_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_GLOBAL:u}=r(6099);t.isObject=e=>e!==null&&typeof e==="object"&&!Array.isArray(e);t.hasRegexChars=e=>a.test(e);t.isRegexChar=e=>e.length===1&&t.hasRegexChars(e);t.escapeRegex=e=>e.replace(u,"\\$1");t.toPosixSlashes=e=>e.replace(i,"/");t.removeBackslashes=e=>e.replace(o,(e=>e==="\\"?"":e));t.supportsLookbehinds=()=>{const e=process.version.slice(1).split(".").map(Number);if(e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10){return true}return false};t.isWindows=e=>{if(e&&typeof e.windows==="boolean"){return e.windows}return n===true||s.sep==="\\"};t.escapeLast=(e,r,s)=>{const n=e.lastIndexOf(r,s);if(n===-1)return e;if(e[n-1]==="\\")return t.escapeLast(e,r,n-1);return`${e.slice(0,n)}\\${e.slice(n)}`};t.removePrefix=(e,t={})=>{let r=e;if(r.startsWith("./")){r=r.slice(2);t.prefix="./"}return r};t.wrapOutput=(e,t={},r={})=>{const s=r.contains?"":"^";const n=r.contains?"":"$";let i=`${s}(?:${e})${n}`;if(t.negated===true){i=`(?:^(?!${i}).*$)`}return i}},7280:e=>{"use strict";class DatePart{constructor({token:e,date:t,parts:r,locales:s}){this.token=e;this.date=t||new Date;this.parts=r||[this];this.locales=s||{}}up(){}down(){}next(){const e=this.parts.indexOf(this);return this.parts.find(((t,r)=>r>e&&t instanceof DatePart))}setTo(e){}prev(){let e=[].concat(this.parts).reverse();const t=e.indexOf(this);return e.find(((e,r)=>r>t&&e instanceof DatePart))}toString(){return String(this.date)}}e.exports=DatePart},4203:(e,t,r)=>{"use strict";const s=r(7280);const pos=e=>{e=e%10;return e===1?"st":e===2?"nd":e===3?"rd":"th"};class Day extends s{constructor(e={}){super(e)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(e){this.date.setDate(parseInt(e.substr(-2)))}toString(){let e=this.date.getDate();let t=this.date.getDay();return this.token==="DD"?String(e).padStart(2,"0"):this.token==="Do"?e+pos(e):this.token==="d"?t+1:this.token==="ddd"?this.locales.weekdaysShort[t]:this.token==="dddd"?this.locales.weekdays[t]:e}}e.exports=Day},2574:(e,t,r)=>{"use strict";const s=r(7280);class Hours extends s{constructor(e={}){super(e)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(e){this.date.setHours(parseInt(e.substr(-2)))}toString(){let e=this.date.getHours();if(/h/.test(this.token))e=e%12||12;return this.token.length>1?String(e).padStart(2,"0"):e}}e.exports=Hours},2408:(e,t,r)=>{"use strict";e.exports={DatePart:r(7280),Meridiem:r(4853),Day:r(4203),Hours:r(2574),Milliseconds:r(4909),Minutes:r(5876),Month:r(9461),Seconds:r(5884),Year:r(359)}},4853:(e,t,r)=>{"use strict";const s=r(7280);class Meridiem extends s{constructor(e={}){super(e)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let e=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?e.toUpperCase():e}}e.exports=Meridiem},4909:(e,t,r)=>{"use strict";const s=r(7280);class Milliseconds extends s{constructor(e={}){super(e)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(e){this.date.setMilliseconds(parseInt(e.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}e.exports=Milliseconds},5876:(e,t,r)=>{"use strict";const s=r(7280);class Minutes extends s{constructor(e={}){super(e)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(e){this.date.setMinutes(parseInt(e.substr(-2)))}toString(){let e=this.date.getMinutes();return this.token.length>1?String(e).padStart(2,"0"):e}}e.exports=Minutes},9461:(e,t,r)=>{"use strict";const s=r(7280);class Month extends s{constructor(e={}){super(e)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(e){e=parseInt(e.substr(-2))-1;this.date.setMonth(e<0?0:e)}toString(){let e=this.date.getMonth();let t=this.token.length;return t===2?String(e+1).padStart(2,"0"):t===3?this.locales.monthsShort[e]:t===4?this.locales.months[e]:String(e+1)}}e.exports=Month},5884:(e,t,r)=>{"use strict";const s=r(7280);class Seconds extends s{constructor(e={}){super(e)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(e){this.date.setSeconds(parseInt(e.substr(-2)))}toString(){let e=this.date.getSeconds();return this.token.length>1?String(e).padStart(2,"0"):e}}e.exports=Seconds},359:(e,t,r)=>{"use strict";const s=r(7280);class Year extends s{constructor(e={}){super(e)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(e){this.date.setFullYear(e.substr(-4))}toString(){let e=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?e.substr(-2):e}}e.exports=Year},2257:(e,t,r)=>{"use strict";function asyncGeneratorStep(e,t,r,s,n,i,o){try{var a=e[i](o);var u=a.value}catch(e){r(e);return}if(a.done){t(u)}else{Promise.resolve(u).then(s,n)}}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(s,n){var i=e.apply(t,r);function _next(e){asyncGeneratorStep(i,s,n,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(i,s,n,_next,_throw,"throw",e)}_next(undefined)}))}}const s=r(5215);const n=r(461);const i=r(9571),o=i.erase,a=i.cursor;const u=r(8091),l=u.style,h=u.clear,p=u.figures,d=u.wrap,m=u.entriesToDisplay;const getVal=(e,t)=>e[t]&&(e[t].value||e[t].title||e[t]);const getTitle=(e,t)=>e[t]&&(e[t].title||e[t].value||e[t]);const getIndex=(e,t)=>{const r=e.findIndex((e=>e.value===t||e.title===t));return r>-1?r:undefined};class AutocompletePrompt extends n{constructor(e={}){super(e);this.msg=e.message;this.suggest=e.suggest;this.choices=e.choices;this.initial=typeof e.initial==="number"?e.initial:getIndex(e.choices,e.initial);this.select=this.initial||e.cursor||0;this.i18n={noMatches:e.noMatches||"no matches found"};this.fallback=e.fallback||this.initial;this.suggestions=[];this.input="";this.limit=e.limit||10;this.cursor=0;this.transform=l.render(e.style);this.scale=this.transform.scale;this.render=this.render.bind(this);this.complete=this.complete.bind(this);this.clear=h("");this.complete(this.render);this.render()}set fallback(e){this._fb=Number.isSafeInteger(parseInt(e))?parseInt(e):e}get fallback(){let e;if(typeof this._fb==="number")e=this.choices[this._fb];else if(typeof this._fb==="string")e={title:this._fb};return e||this._fb||{title:this.i18n.noMatches}}moveSelect(e){this.select=e;if(this.suggestions.length>0)this.value=getVal(this.suggestions,e);else this.value=this.fallback.value;this.fire()}complete(e){var t=this;return _asyncToGenerator((function*(){const r=t.completing=t.suggest(t.input,t.choices);const s=yield r;if(t.completing!==r)return;t.suggestions=s.map(((e,t,r)=>({title:getTitle(r,t),value:getVal(r,t),description:e.description})));t.completing=false;const n=Math.max(s.length-1,0);t.moveSelect(Math.min(n,t.select));e&&e()}))()}reset(){this.input="";this.complete((()=>{this.moveSelect(this.initial!==void 0?this.initial:0);this.render()}));this.render()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}_(e,t){let r=this.input.slice(0,this.cursor);let s=this.input.slice(this.cursor);this.input=`${r}${e}${s}`;this.cursor=r.length+1;this.complete(this.render);this.render()}delete(){if(this.cursor===0)return this.bell();let e=this.input.slice(0,this.cursor-1);let t=this.input.slice(this.cursor);this.input=`${e}${t}`;this.complete(this.render);this.cursor=this.cursor-1;this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let e=this.input.slice(0,this.cursor);let t=this.input.slice(this.cursor+1);this.input=`${e}${t}`;this.complete(this.render);this.render()}first(){this.moveSelect(0);this.render()}last(){this.moveSelect(this.suggestions.length-1);this.render()}up(){if(this.select<=0)return this.bell();this.moveSelect(this.select-1);this.render()}down(){if(this.select>=this.suggestions.length-1)return this.bell();this.moveSelect(this.select+1);this.render()}next(){if(this.select===this.suggestions.length-1){this.moveSelect(0)}else this.moveSelect(this.select+1);this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1));this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0));this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1;this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1;this.render()}renderOption(e,t,r,n){let i;let o=r?p.arrowUp:n?p.arrowDown:" ";let a=t?s.cyan().underline(e.title):e.title;o=(t?s.cyan(p.pointer)+" ":" ")+o;if(e.description){i=` - ${e.description}`;if(o.length+a.length+i.length>=this.out.columns||e.description.split(/\r?\n/).length>1){i="\n"+d(e.description,{margin:3,width:this.out.columns})}}return o+" "+a+s.gray(i||"")}render(){if(this.closed)return;if(this.firstRender)this.out.write(a.hide);else this.out.write(h(this.outputText));super.render();let e=m(this.select,this.choices.length,this.limit),t=e.startIndex,r=e.endIndex;this.outputText=[l.symbol(this.done,this.aborted),s.bold(this.msg),l.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" ");if(!this.done){const e=this.suggestions.slice(t,r).map(((e,s)=>this.renderOption(e,this.select===s+t,s===0&&t>0,s+t===r-1&&r<this.choices.length))).join("\n");this.outputText+=`\n`+(e||s.gray(this.fallback.title))}this.out.write(o.line+a.to(0)+this.outputText)}}e.exports=AutocompletePrompt},5441:(e,t,r)=>{"use strict";const s=r(5215);const n=r(9571),i=n.cursor;const o=r(4140);const a=r(8091),u=a.clear,l=a.style,h=a.figures;class AutocompleteMultiselectPrompt extends o{constructor(e={}){e.overrideRender=true;super(e);this.inputValue="";this.clear=u("");this.filteredOptions=this.value;this.render()}last(){this.cursor=this.filteredOptions.length-1;this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length;this.render()}up(){if(this.cursor===0){this.cursor=this.filteredOptions.length-1}else{this.cursor--}this.render()}down(){if(this.cursor===this.filteredOptions.length-1){this.cursor=0}else{this.cursor++}this.render()}left(){this.filteredOptions[this.cursor].selected=false;this.render()}right(){if(this.value.filter((e=>e.selected)).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=true;this.render()}delete(){if(this.inputValue.length){this.inputValue=this.inputValue.substr(0,this.inputValue.length-1);this.updateFilteredOptions()}}updateFilteredOptions(){const e=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter((e=>{if(this.inputValue){if(typeof e.title==="string"){if(e.title.toLowerCase().includes(this.inputValue.toLowerCase())){return true}}if(typeof e.value==="string"){if(e.value.toLowerCase().includes(this.inputValue.toLowerCase())){return true}}return false}return true}));const t=this.filteredOptions.findIndex((t=>t===e));this.cursor=t<0?0:t;this.render()}handleSpaceToggle(){const e=this.filteredOptions[this.cursor];if(e.selected){e.selected=false;this.render()}else if(e.disabled||this.value.filter((e=>e.selected)).length>=this.maxChoices){return this.bell()}else{e.selected=true;this.render()}}handleInputChange(e){this.inputValue=this.inputValue+e;this.updateFilteredOptions()}_(e,t){if(e===" "){this.handleSpaceToggle()}else{this.handleInputChange(e)}}renderInstructions(){if(this.instructions===undefined||this.instructions){if(typeof this.instructions==="string"){return this.instructions}return`\nInstructions:\n ${h.arrowUp}/${h.arrowDown}: Highlight option\n ${h.arrowLeft}/${h.arrowRight}/[space]: Toggle selection\n [a,b,c]/delete: Filter choices\n enter/return: Complete answer\n`}return""}renderCurrentInput(){return`\nFiltered results for: ${this.inputValue?this.inputValue:s.gray("Enter something to filter")}\n`}renderOption(e,t,r){let n;if(t.disabled)n=e===r?s.gray().underline(t.title):s.strikethrough().gray(t.title);else n=e===r?s.cyan().underline(t.title):t.title;return(t.selected?s.green(h.radioOn):h.radioOff)+" "+n}renderDoneOrInstructions(){if(this.done){return this.value.filter((e=>e.selected)).map((e=>e.title)).join(", ")}const e=[s.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];if(this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled){e.push(s.yellow(this.warn))}return e.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(i.hide);super.render();let e=[l.symbol(this.done,this.aborted),s.bold(this.msg),l.delimiter(false),this.renderDoneOrInstructions()].join(" ");if(this.showMinError){e+=s.red(`You must select a minimum of ${this.minSelected} choices.`);this.showMinError=false}e+=this.renderOptions(this.filteredOptions);this.out.write(this.clear+e);this.clear=u(e)}}e.exports=AutocompleteMultiselectPrompt},9486:(e,t,r)=>{"use strict";const s=r(5215);const n=r(461);const i=r(8091),o=i.style,a=i.clear;const u=r(9571),l=u.erase,h=u.cursor;class ConfirmPrompt extends n{constructor(e={}){super(e);this.msg=e.message;this.value=e.initial;this.initialValue=!!e.initial;this.yesMsg=e.yes||"yes";this.yesOption=e.yesOption||"(Y/n)";this.noMsg=e.no||"no";this.noOption=e.noOption||"(y/N)";this.render()}reset(){this.value=this.initialValue;this.fire();this.render()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.value=this.value||false;this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}_(e,t){if(e.toLowerCase()==="y"){this.value=true;return this.submit()}if(e.toLowerCase()==="n"){this.value=false;return this.submit()}return this.bell()}render(){if(this.closed)return;if(this.firstRender)this.out.write(h.hide);else this.out.write(a(this.outputText));super.render();this.outputText=[o.symbol(this.done,this.aborted),s.bold(this.msg),o.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:s.gray(this.initialValue?this.yesOption:this.noOption)].join(" ");this.out.write(l.line+h.to(0)+this.outputText)}}e.exports=ConfirmPrompt},4177:(e,t,r)=>{"use strict";function asyncGeneratorStep(e,t,r,s,n,i,o){try{var a=e[i](o);var u=a.value}catch(e){r(e);return}if(a.done){t(u)}else{Promise.resolve(u).then(s,n)}}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(s,n){var i=e.apply(t,r);function _next(e){asyncGeneratorStep(i,s,n,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(i,s,n,_next,_throw,"throw",e)}_next(undefined)}))}}const s=r(5215);const n=r(461);const i=r(8091),o=i.style,a=i.clear,u=i.figures;const l=r(9571),h=l.erase,p=l.cursor;const d=r(2408),m=d.DatePart,y=d.Meridiem,g=d.Day,v=d.Hours,b=d.Milliseconds,w=d.Minutes,A=d.Month,_=d.Seconds,S=d.Year;const C=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g;const D={1:({token:e})=>e.replace(/\\(.)/g,"$1"),2:e=>new g(e),3:e=>new A(e),4:e=>new S(e),5:e=>new y(e),6:e=>new v(e),7:e=>new w(e),8:e=>new _(e),9:e=>new b(e)};const x={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")};class DatePrompt extends n{constructor(e={}){super(e);this.msg=e.message;this.cursor=0;this.typed="";this.locales=Object.assign(x,e.locales);this._date=e.initial||new Date;this.errorMsg=e.error||"Please Enter A Valid Value";this.validator=e.validate||(()=>true);this.mask=e.mask||"YYYY-MM-DD HH:mm:ss";this.clear=a("");this.render()}get value(){return this.date}get date(){return this._date}set date(e){if(e)this._date.setTime(e.getTime())}set mask(e){let t;this.parts=[];while(t=C.exec(e)){let e=t.shift();let r=t.findIndex((e=>e!=null));this.parts.push(r in D?D[r]({token:t[r]||e,date:this.date,parts:this.parts,locales:this.locales}):t[r]||e)}let r=this.parts.reduce(((e,t)=>{if(typeof t==="string"&&typeof e[e.length-1]==="string")e[e.length-1]+=t;else e.push(t);return e}),[]);this.parts.splice(0);this.parts.push(...r);this.reset()}moveCursor(e){this.typed="";this.cursor=e;this.fire()}reset(){this.moveCursor(this.parts.findIndex((e=>e instanceof m)));this.fire();this.render()}abort(){this.done=this.aborted=true;this.error=false;this.fire();this.render();this.out.write("\n");this.close()}validate(){var e=this;return _asyncToGenerator((function*(){let t=yield e.validator(e.value);if(typeof t==="string"){e.errorMsg=t;t=false}e.error=!t}))()}submit(){var e=this;return _asyncToGenerator((function*(){yield e.validate();if(e.error){e.color="red";e.fire();e.render();return}e.done=true;e.aborted=false;e.fire();e.render();e.out.write("\n");e.close()}))()}up(){this.typed="";this.parts[this.cursor].up();this.render()}down(){this.typed="";this.parts[this.cursor].down();this.render()}left(){let e=this.parts[this.cursor].prev();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e));this.render()}right(){let e=this.parts[this.cursor].next();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e));this.render()}next(){let e=this.parts[this.cursor].next();this.moveCursor(e?this.parts.indexOf(e):this.parts.findIndex((e=>e instanceof m)));this.render()}_(e){if(/\d/.test(e)){this.typed+=e;this.parts[this.cursor].setTo(this.typed);this.render()}}render(){if(this.closed)return;if(this.firstRender)this.out.write(p.hide);else this.out.write(a(this.outputText));super.render();this.outputText=[o.symbol(this.done,this.aborted),s.bold(this.msg),o.delimiter(false),this.parts.reduce(((e,t,r)=>e.concat(r===this.cursor&&!this.done?s.cyan().underline(t.toString()):t)),[]).join("")].join(" ");if(this.error){this.outputText+=this.errorMsg.split("\n").reduce(((e,t,r)=>e+`\n${r?` `:u.pointerSmall} ${s.red().italic(t)}`),``)}this.out.write(h.line+p.to(0)+this.outputText)}}e.exports=DatePrompt},2838:(e,t,r)=>{"use strict";e.exports={TextPrompt:r(16),SelectPrompt:r(8614),TogglePrompt:r(8001),DatePrompt:r(4177),NumberPrompt:r(7072),MultiselectPrompt:r(4140),AutocompletePrompt:r(2257),AutocompleteMultiselectPrompt:r(5441),ConfirmPrompt:r(9486)}},4140:(e,t,r)=>{"use strict";const s=r(5215);const n=r(9571),i=n.cursor;const o=r(461);const a=r(8091),u=a.clear,l=a.figures,h=a.style,p=a.wrap,d=a.entriesToDisplay;class MultiselectPrompt extends o{constructor(e={}){super(e);this.msg=e.message;this.cursor=e.cursor||0;this.scrollIndex=e.cursor||0;this.hint=e.hint||"";this.warn=e.warn||"- This option is disabled -";this.minSelected=e.min;this.showMinError=false;this.maxChoices=e.max;this.instructions=e.instructions;this.optionsPerPage=e.optionsPerPage||10;this.value=e.choices.map(((e,t)=>{if(typeof e==="string")e={title:e,value:t};return{title:e&&(e.title||e.value||e),description:e&&e.description,value:e&&(e.value===undefined?t:e.value),selected:e&&e.selected,disabled:e&&e.disabled}}));this.clear=u("");if(!e.overrideRender){this.render()}}reset(){this.value.map((e=>!e.selected));this.cursor=0;this.fire();this.render()}selected(){return this.value.filter((e=>e.selected))}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){const e=this.value.filter((e=>e.selected));if(this.minSelected&&e.length<this.minSelected){this.showMinError=true;this.render()}else{this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}}first(){this.cursor=0;this.render()}last(){this.cursor=this.value.length-1;this.render()}next(){this.cursor=(this.cursor+1)%this.value.length;this.render()}up(){if(this.cursor===0){this.cursor=this.value.length-1}else{this.cursor--}this.render()}down(){if(this.cursor===this.value.length-1){this.cursor=0}else{this.cursor++}this.render()}left(){this.value[this.cursor].selected=false;this.render()}right(){if(this.value.filter((e=>e.selected)).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=true;this.render()}handleSpaceToggle(){const e=this.value[this.cursor];if(e.selected){e.selected=false;this.render()}else if(e.disabled||this.value.filter((e=>e.selected)).length>=this.maxChoices){return this.bell()}else{e.selected=true;this.render()}}toggleAll(){if(this.maxChoices!==undefined||this.value[this.cursor].disabled){return this.bell()}const e=!this.value[this.cursor].selected;this.value.filter((e=>!e.disabled)).forEach((t=>t.selected=e));this.render()}_(e,t){if(e===" "){this.handleSpaceToggle()}else if(e==="a"){this.toggleAll()}else{return this.bell()}}renderInstructions(){if(this.instructions===undefined||this.instructions){if(typeof this.instructions==="string"){return this.instructions}return"\nInstructions:\n"+` ${l.arrowUp}/${l.arrowDown}: Highlight option\n`+` ${l.arrowLeft}/${l.arrowRight}/[space]: Toggle selection\n`+(this.maxChoices===undefined?` a: Toggle all\n`:"")+` enter/return: Complete answer`}return""}renderOption(e,t,r,n){const i=(t.selected?s.green(l.radioOn):l.radioOff)+" "+n+" ";let o,a;if(t.disabled){o=e===r?s.gray().underline(t.title):s.strikethrough().gray(t.title)}else{o=e===r?s.cyan().underline(t.title):t.title;if(e===r&&t.description){a=` - ${t.description}`;if(i.length+o.length+a.length>=this.out.columns||t.description.split(/\r?\n/).length>1){a="\n"+p(t.description,{margin:i.length,width:this.out.columns})}}}return i+o+s.gray(a||"")}paginateOptions(e){if(e.length===0){return s.red("No matches for this query.")}let t=d(this.cursor,e.length,this.optionsPerPage),r=t.startIndex,n=t.endIndex;let i,o=[];for(let t=r;t<n;t++){if(t===r&&r>0){i=l.arrowUp}else if(t===n-1&&n<e.length){i=l.arrowDown}else{i=" "}o.push(this.renderOption(this.cursor,e[t],t,i))}return"\n"+o.join("\n")}renderOptions(e){if(!this.done){return this.paginateOptions(e)}return""}renderDoneOrInstructions(){if(this.done){return this.value.filter((e=>e.selected)).map((e=>e.title)).join(", ")}const e=[s.gray(this.hint),this.renderInstructions()];if(this.value[this.cursor].disabled){e.push(s.yellow(this.warn))}return e.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(i.hide);super.render();let e=[h.symbol(this.done,this.aborted),s.bold(this.msg),h.delimiter(false),this.renderDoneOrInstructions()].join(" ");if(this.showMinError){e+=s.red(`You must select a minimum of ${this.minSelected} choices.`);this.showMinError=false}e+=this.renderOptions(this.value);this.out.write(this.clear+e);this.clear=u(e)}}e.exports=MultiselectPrompt},7072:(e,t,r)=>{"use strict";function asyncGeneratorStep(e,t,r,s,n,i,o){try{var a=e[i](o);var u=a.value}catch(e){r(e);return}if(a.done){t(u)}else{Promise.resolve(u).then(s,n)}}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(s,n){var i=e.apply(t,r);function _next(e){asyncGeneratorStep(i,s,n,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(i,s,n,_next,_throw,"throw",e)}_next(undefined)}))}}const s=r(5215);const n=r(461);const i=r(9571),o=i.cursor,a=i.erase;const u=r(8091),l=u.style,h=u.figures,p=u.clear,d=u.lines;const m=/[0-9]/;const isDef=e=>e!==undefined;const round=(e,t)=>{let r=Math.pow(10,t);return Math.round(e*r)/r};class NumberPrompt extends n{constructor(e={}){super(e);this.transform=l.render(e.style);this.msg=e.message;this.initial=isDef(e.initial)?e.initial:"";this.float=!!e.float;this.round=e.round||2;this.inc=e.increment||1;this.min=isDef(e.min)?e.min:-Infinity;this.max=isDef(e.max)?e.max:Infinity;this.errorMsg=e.error||`Please Enter A Valid Value`;this.validator=e.validate||(()=>true);this.color=`cyan`;this.value=``;this.typed=``;this.lastHit=0;this.render()}set value(e){if(!e&&e!==0){this.placeholder=true;this.rendered=s.gray(this.transform.render(`${this.initial}`));this._value=``}else{this.placeholder=false;this.rendered=this.transform.render(`${round(e,this.round)}`);this._value=round(e,this.round)}this.fire()}get value(){return this._value}parse(e){return this.float?parseFloat(e):parseInt(e)}valid(e){return e===`-`||e===`.`&&this.float||m.test(e)}reset(){this.typed=``;this.value=``;this.fire();this.render()}abort(){let e=this.value;this.value=e!==``?e:this.initial;this.done=this.aborted=true;this.error=false;this.fire();this.render();this.out.write(`\n`);this.close()}validate(){var e=this;return _asyncToGenerator((function*(){let t=yield e.validator(e.value);if(typeof t===`string`){e.errorMsg=t;t=false}e.error=!t}))()}submit(){var e=this;return _asyncToGenerator((function*(){yield e.validate();if(e.error){e.color=`red`;e.fire();e.render();return}let t=e.value;e.value=t!==``?t:e.initial;e.done=true;e.aborted=false;e.error=false;e.fire();e.render();e.out.write(`\n`);e.close()}))()}up(){this.typed=``;if(this.value===""){this.value=this.min-this.inc}if(this.value>=this.max)return this.bell();this.value+=this.inc;this.color=`cyan`;this.fire();this.render()}down(){this.typed=``;if(this.value===""){this.value=this.min+this.inc}if(this.value<=this.min)return this.bell();this.value-=this.inc;this.color=`cyan`;this.fire();this.render()}delete(){let e=this.value.toString();if(e.length===0)return this.bell();this.value=this.parse(e=e.slice(0,-1))||``;if(this.value!==""&&this.value<this.min){this.value=this.min}this.color=`cyan`;this.fire();this.render()}next(){this.value=this.initial;this.fire();this.render()}_(e,t){if(!this.valid(e))return this.bell();const r=Date.now();if(r-this.lastHit>1e3)this.typed=``;this.typed+=e;this.lastHit=r;this.color=`cyan`;if(e===`.`)return this.fire();this.value=Math.min(this.parse(this.typed),this.max);if(this.value>this.max)this.value=this.max;if(this.value<this.min)this.value=this.min;this.fire();this.render()}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(o.down(d(this.outputError)-1)+p(this.outputError));this.out.write(p(this.outputText))}super.render();this.outputError="";this.outputText=[l.symbol(this.done,this.aborted),s.bold(this.msg),l.delimiter(this.done),!this.done||!this.done&&!this.placeholder?s[this.color]().underline(this.rendered):this.rendered].join(` `);if(this.error){this.outputError+=this.errorMsg.split(`\n`).reduce(((e,t,r)=>e+`\n${r?` `:h.pointerSmall} ${s.red().italic(t)}`),``)}this.out.write(a.line+o.to(0)+this.outputText+o.save+this.outputError+o.restore)}}e.exports=NumberPrompt},461:(e,t,r)=>{"use strict";const s=r(4521);const n=r(8091),i=n.action;const o=r(2361);const a=r(9571),u=a.beep,l=a.cursor;const h=r(5215);class Prompt extends o{constructor(e={}){super();this.firstRender=true;this.in=e.stdin||process.stdin;this.out=e.stdout||process.stdout;this.onRender=(e.onRender||(()=>void 0)).bind(this);const t=s.createInterface(this.in);s.emitKeypressEvents(this.in,t);if(this.in.isTTY)this.in.setRawMode(true);const r=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1;const keypress=(e,t)=>{let s=i(t,r);if(s===false){this._&&this._(e,t)}else if(typeof this[s]==="function"){this[s](t)}else{this.bell()}};this.close=()=>{this.out.write(l.show);this.in.removeListener("keypress",keypress);if(this.in.isTTY)this.in.setRawMode(false);t.close();this.emit(this.aborted?"abort":"submit",this.value);this.closed=true};this.in.on("keypress",keypress)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted})}bell(){this.out.write(u)}render(){this.onRender(h);if(this.firstRender)this.firstRender=false}}e.exports=Prompt},8614:(e,t,r)=>{"use strict";const s=r(5215);const n=r(461);const i=r(8091),o=i.style,a=i.clear,u=i.figures,l=i.wrap,h=i.entriesToDisplay;const p=r(9571),d=p.cursor;class SelectPrompt extends n{constructor(e={}){super(e);this.msg=e.message;this.hint=e.hint||"- Use arrow-keys. Return to submit.";this.warn=e.warn||"- This option is disabled";this.cursor=e.initial||0;this.choices=e.choices.map(((e,t)=>{if(typeof e==="string")e={title:e,value:t};return{title:e&&(e.title||e.value||e),value:e&&(e.value===undefined?t:e.value),description:e&&e.description,selected:e&&e.selected,disabled:e&&e.disabled}}));this.optionsPerPage=e.optionsPerPage||10;this.value=(this.choices[this.cursor]||{}).value;this.clear=a("");this.render()}moveCursor(e){this.cursor=e;this.value=this.choices[e].value;this.fire()}reset(){this.moveCursor(0);this.fire();this.render()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){if(!this.selection.disabled){this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}else this.bell()}first(){this.moveCursor(0);this.render()}last(){this.moveCursor(this.choices.length-1);this.render()}up(){if(this.cursor===0)return this.bell();this.moveCursor(this.cursor-1);this.render()}down(){if(this.cursor===this.choices.length-1)return this.bell();this.moveCursor(this.cursor+1);this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length);this.render()}_(e,t){if(e===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;if(this.firstRender)this.out.write(d.hide);else this.out.write(a(this.outputText));super.render();let e=h(this.cursor,this.choices.length,this.optionsPerPage),t=e.startIndex,r=e.endIndex;this.outputText=[o.symbol(this.done,this.aborted),s.bold(this.msg),o.delimiter(false),this.done?this.selection.title:this.selection.disabled?s.yellow(this.warn):s.gray(this.hint)].join(" ");if(!this.done){this.outputText+="\n";for(let e=t;e<r;e++){let n,i,o="",a=this.choices[e];if(e===t&&t>0){i=u.arrowUp}else if(e===r-1&&r<this.choices.length){i=u.arrowDown}else{i=" "}if(a.disabled){n=this.cursor===e?s.gray().underline(a.title):s.strikethrough().gray(a.title);i=(this.cursor===e?s.bold().gray(u.pointer)+" ":" ")+i}else{n=this.cursor===e?s.cyan().underline(a.title):a.title;i=(this.cursor===e?s.cyan(u.pointer)+" ":" ")+i;if(a.description&&this.cursor===e){o=` - ${a.description}`;if(i.length+n.length+o.length>=this.out.columns||a.description.split(/\r?\n/).length>1){o="\n"+l(a.description,{margin:3,width:this.out.columns})}}}this.outputText+=`${i} ${n}${s.gray(o)}\n`}}this.out.write(this.outputText)}}e.exports=SelectPrompt},16:(e,t,r)=>{"use strict";function asyncGeneratorStep(e,t,r,s,n,i,o){try{var a=e[i](o);var u=a.value}catch(e){r(e);return}if(a.done){t(u)}else{Promise.resolve(u).then(s,n)}}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(s,n){var i=e.apply(t,r);function _next(e){asyncGeneratorStep(i,s,n,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(i,s,n,_next,_throw,"throw",e)}_next(undefined)}))}}const s=r(5215);const n=r(461);const i=r(9571),o=i.erase,a=i.cursor;const u=r(8091),l=u.style,h=u.clear,p=u.lines,d=u.figures;class TextPrompt extends n{constructor(e={}){super(e);this.transform=l.render(e.style);this.scale=this.transform.scale;this.msg=e.message;this.initial=e.initial||``;this.validator=e.validate||(()=>true);this.value=``;this.errorMsg=e.error||`Please Enter A Valid Value`;this.cursor=Number(!!this.initial);this.clear=h(``);this.render()}set value(e){if(!e&&this.initial){this.placeholder=true;this.rendered=s.gray(this.transform.render(this.initial))}else{this.placeholder=false;this.rendered=this.transform.render(e)}this._value=e;this.fire()}get value(){return this._value}reset(){this.value=``;this.cursor=Number(!!this.initial);this.fire();this.render()}abort(){this.value=this.value||this.initial;this.done=this.aborted=true;this.error=false;this.red=false;this.fire();this.render();this.out.write("\n");this.close()}validate(){var e=this;return _asyncToGenerator((function*(){let t=yield e.validator(e.value);if(typeof t===`string`){e.errorMsg=t;t=false}e.error=!t}))()}submit(){var e=this;return _asyncToGenerator((function*(){e.value=e.value||e.initial;yield e.validate();if(e.error){e.red=true;e.fire();e.render();return}e.done=true;e.aborted=false;e.fire();e.render();e.out.write("\n");e.close()}))()}next(){if(!this.placeholder)return this.bell();this.value=this.initial;this.cursor=this.rendered.length;this.fire();this.render()}moveCursor(e){if(this.placeholder)return;this.cursor=this.cursor+e}_(e,t){let r=this.value.slice(0,this.cursor);let s=this.value.slice(this.cursor);this.value=`${r}${e}${s}`;this.red=false;this.cursor=this.placeholder?0:r.length+1;this.render()}delete(){if(this.cursor===0)return this.bell();let e=this.value.slice(0,this.cursor-1);let t=this.value.slice(this.cursor);this.value=`${e}${t}`;this.red=false;this.moveCursor(-1);this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let e=this.value.slice(0,this.cursor);let t=this.value.slice(this.cursor+1);this.value=`${e}${t}`;this.red=false;this.render()}first(){this.cursor=0;this.render()}last(){this.cursor=this.value.length;this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1);this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1);this.render()}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(a.down(p(this.outputError)-1)+h(this.outputError));this.out.write(h(this.outputText))}super.render();this.outputError="";this.outputText=[l.symbol(this.done,this.aborted),s.bold(this.msg),l.delimiter(this.done),this.red?s.red(this.rendered):this.rendered].join(` `);if(this.error){this.outputError+=this.errorMsg.split(`\n`).reduce(((e,t,r)=>e+`\n${r?" ":d.pointerSmall} ${s.red().italic(t)}`),``)}this.out.write(o.line+a.to(0)+this.outputText+a.save+this.outputError+a.restore)}}e.exports=TextPrompt},8001:(e,t,r)=>{"use strict";const s=r(5215);const n=r(461);const i=r(8091),o=i.style,a=i.clear;const u=r(9571),l=u.cursor,h=u.erase;class TogglePrompt extends n{constructor(e={}){super(e);this.msg=e.message;this.value=!!e.initial;this.active=e.active||"on";this.inactive=e.inactive||"off";this.initialValue=this.value;this.render()}reset(){this.value=this.initialValue;this.fire();this.render()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}deactivate(){if(this.value===false)return this.bell();this.value=false;this.render()}activate(){if(this.value===true)return this.bell();this.value=true;this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value;this.fire();this.render()}_(e,t){if(e===" "){this.value=!this.value}else if(e==="1"){this.value=true}else if(e==="0"){this.value=false}else return this.bell();this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(l.hide);else this.out.write(a(this.outputText));super.render();this.outputText=[o.symbol(this.done,this.aborted),s.bold(this.msg),o.delimiter(this.done),this.value?this.inactive:s.cyan().underline(this.inactive),s.gray("/"),this.value?s.cyan().underline(this.active):this.active].join(" ");this.out.write(h.line+l.to(0)+this.outputText)}}e.exports=TogglePrompt},5357:(e,t,r)=>{"use strict";function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);if(t)s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}));r.push.apply(r,s)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};if(t%2){ownKeys(Object(r),true).forEach((function(t){_defineProperty(e,t,r[t])}))}else if(Object.getOwnPropertyDescriptors){Object.defineProperties(e,Object.getOwnPropertyDescriptors(r))}else{ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}}return e}function _defineProperty(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}function asyncGeneratorStep(e,t,r,s,n,i,o){try{var a=e[i](o);var u=a.value}catch(e){r(e);return}if(a.done){t(u)}else{Promise.resolve(u).then(s,n)}}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(s,n){var i=e.apply(t,r);function _next(e){asyncGeneratorStep(i,s,n,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(i,s,n,_next,_throw,"throw",e)}_next(undefined)}))}}const s=r(7627);const n=["suggest","format","onState","validate","onRender","type"];const noop=()=>{};function prompt(){return _prompt.apply(this,arguments)}function _prompt(){_prompt=_asyncToGenerator((function*(e=[],{onSubmit:t=noop,onCancel:r=noop}={}){const i={};const o=prompt._override||{};e=[].concat(e);let a,u,l,h,p,d;const m=function(){var e=_asyncToGenerator((function*(e,t,r=false){if(!r&&e.validate&&e.validate(t)!==true){return}return e.format?yield e.format(t,i):t}));return function getFormattedAnswer(t,r){return e.apply(this,arguments)}}();var y=true;var g=false;var v=undefined;try{for(var b=e[Symbol.iterator](),w;!(y=(w=b.next()).done);y=true){u=w.value;var A=u;h=A.name;p=A.type;if(typeof p==="function"){p=yield p(a,_objectSpread({},i),u);u["type"]=p}if(!p)continue;for(let e in u){if(n.includes(e))continue;let t=u[e];u[e]=typeof t==="function"?yield t(a,_objectSpread({},i),d):t}d=u;if(typeof u.message!=="string"){throw new Error("prompt message is required")}var _=u;h=_.name;p=_.type;if(s[p]===void 0){throw new Error(`prompt type (${p}) is not defined`)}if(o[u.name]!==undefined){a=yield m(u,o[u.name]);if(a!==undefined){i[h]=a;continue}}try{a=prompt._injected?getInjectedAnswer(prompt._injected):yield s[p](u);i[h]=a=yield m(u,a,true);l=yield t(u,a,i)}catch(e){l=!(yield r(u,i))}if(l)return i}}catch(e){g=true;v=e}finally{try{if(!y&&b.return!=null){b.return()}}finally{if(g){throw v}}}return i}));return _prompt.apply(this,arguments)}function getInjectedAnswer(e){const t=e.shift();if(t instanceof Error){throw t}return t}function inject(e){prompt._injected=(prompt._injected||[]).concat(e)}function override(e){prompt._override=Object.assign({},e)}e.exports=Object.assign(prompt,{prompt:prompt,prompts:s,inject:inject,override:override})},7627:(e,t,r)=>{"use strict";const s=t;const n=r(2838);const noop=e=>e;function toPrompt(e,t,r={}){return new Promise(((s,i)=>{const o=new n[e](t);const a=r.onAbort||noop;const u=r.onSubmit||noop;o.on("state",t.onState||noop);o.on("submit",(e=>s(u(e))));o.on("abort",(e=>i(a(e))))}))}s.text=e=>toPrompt("TextPrompt",e);s.password=e=>{e.style="password";return s.text(e)};s.invisible=e=>{e.style="invisible";return s.text(e)};s.number=e=>toPrompt("NumberPrompt",e);s.date=e=>toPrompt("DatePrompt",e);s.confirm=e=>toPrompt("ConfirmPrompt",e);s.list=e=>{const t=e.separator||",";return toPrompt("TextPrompt",e,{onSubmit:e=>e.split(t).map((e=>e.trim()))})};s.toggle=e=>toPrompt("TogglePrompt",e);s.select=e=>toPrompt("SelectPrompt",e);s.multiselect=e=>{e.choices=[].concat(e.choices||[]);const toSelected=e=>e.filter((e=>e.selected)).map((e=>e.value));return toPrompt("MultiselectPrompt",e,{onAbort:toSelected,onSubmit:toSelected})};s.autocompleteMultiselect=e=>{e.choices=[].concat(e.choices||[]);const toSelected=e=>e.filter((e=>e.selected)).map((e=>e.value));return toPrompt("AutocompleteMultiselectPrompt",e,{onAbort:toSelected,onSubmit:toSelected})};const byTitle=(e,t)=>Promise.resolve(t.filter((t=>t.title.slice(0,e.length).toLowerCase()===e.toLowerCase())));s.autocomplete=e=>{e.suggest=e.suggest||byTitle;e.choices=[].concat(e.choices||[]);return toPrompt("AutocompletePrompt",e)}},9001:e=>{"use strict";e.exports=(e,t)=>{if(e.meta)return;if(e.ctrl){if(e.name==="a")return"first";if(e.name==="c")return"abort";if(e.name==="d")return"abort";if(e.name==="e")return"last";if(e.name==="g")return"reset"}if(t){if(e.name==="j")return"down";if(e.name==="k")return"up"}if(e.name==="return")return"submit";if(e.name==="enter")return"submit";if(e.name==="backspace")return"delete";if(e.name==="delete")return"deleteForward";if(e.name==="abort")return"abort";if(e.name==="escape")return"abort";if(e.name==="tab")return"next";if(e.name==="pagedown")return"nextPage";if(e.name==="pageup")return"prevPage";if(e.name==="home")return"home";if(e.name==="end")return"end";if(e.name==="up")return"up";if(e.name==="down")return"down";if(e.name==="right")return"right";if(e.name==="left")return"left";return false}},3952:(e,t,r)=>{"use strict";const s=r(8007);const n=r(9571),i=n.erase,o=n.cursor;const width=e=>[...s(e)].length;e.exports=function(e,t=process.stdout.columns){if(!t)return i.line+o.to(0);let r=0;const s=e.split(/\r?\n/);var n=true;var a=false;var u=undefined;try{for(var l=s[Symbol.iterator](),h;!(n=(h=l.next()).done);n=true){let e=h.value;r+=1+Math.floor(Math.max(width(e)-1,0)/t)}}catch(e){a=true;u=e}finally{try{if(!n&&l.return!=null){l.return()}}finally{if(a){throw u}}}return i.lines(r)}},4464:e=>{"use strict";e.exports=(e,t,r)=>{r=r||t;let s=Math.min(t-r,e-Math.floor(r/2));if(s<0)s=0;let n=Math.min(s+r,t);return{startIndex:s,endIndex:n}}},8845:e=>{"use strict";const t={arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",radioOn:"◉",radioOff:"◯",tick:"✔",cross:"✖",ellipsis:"…",pointerSmall:"›",line:"─",pointer:"❯"};const r={arrowUp:t.arrowUp,arrowDown:t.arrowDown,arrowLeft:t.arrowLeft,arrowRight:t.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"√",cross:"×",ellipsis:"...",pointerSmall:"»",line:"─",pointer:">"};const s=process.platform==="win32"?r:t;e.exports=s},8091:(e,t,r)=>{"use strict";e.exports={action:r(9001),clear:r(3952),style:r(8295),strip:r(8007),figures:r(8845),lines:r(3802),wrap:r(1288),entriesToDisplay:r(4464)}},3802:(e,t,r)=>{"use strict";const s=r(8007);e.exports=function(e,t=process.stdout.columns){let r=String(s(e)||"").split(/\r?\n/);if(!t)return r.length;return r.map((e=>Math.ceil(e.length/t))).reduce(((e,t)=>e+t))}},8007:e=>{"use strict";e.exports=e=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[a-zA-Z\\d]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|");const r=new RegExp(t,"g");return typeof e==="string"?e.replace(r,""):e}},8295:(e,t,r)=>{"use strict";const s=r(5215);const n=r(8845);const i=Object.freeze({password:{scale:1,render:e=>"*".repeat(e.length)},emoji:{scale:2,render:e=>"😃".repeat(e.length)},invisible:{scale:0,render:e=>""},default:{scale:1,render:e=>`${e}`}});const render=e=>i[e]||i.default;const o=Object.freeze({aborted:s.red(n.cross),done:s.green(n.tick),default:s.cyan("?")});const symbol=(e,t)=>t?o.aborted:e?o.done:o.default;const delimiter=e=>s.gray(e?n.ellipsis:n.pointerSmall);const item=(e,t)=>s.gray(e?t?n.pointerSmall:"+":n.line);e.exports={styles:i,render:render,symbols:o,symbol:symbol,delimiter:delimiter,item:item}},1288:e=>{"use strict";e.exports=(e,t={})=>{const r=Number.isSafeInteger(parseInt(t.margin))?new Array(parseInt(t.margin)).fill(" ").join(""):t.margin||"";const s=t.width||process.stdout.columns;return(e||"").split(/\r?\n/g).map((e=>e.split(/\s+/g).reduce(((e,t)=>{if(t.length+r.length>=s||e[e.length-1].length+t.length+1<s)e[e.length-1]+=` ${t}`;else e.push(`${r}${t}`);return e}),[r]).join("\n"))).join("\n")}},9646:(e,t,r)=>{function isNodeLT(e){e=(Array.isArray(e)?e:e.split(".")).map(Number);let t=0,r=process.versions.node.split(".").map(Number);for(;t<e.length;t++){if(r[t]>e[t])return false;if(e[t]>r[t])return true}return false}e.exports=isNodeLT("8.6.0")?r(5357):r(5379)},8377:e=>{"use strict";class DatePart{constructor({token:e,date:t,parts:r,locales:s}){this.token=e;this.date=t||new Date;this.parts=r||[this];this.locales=s||{}}up(){}down(){}next(){const e=this.parts.indexOf(this);return this.parts.find(((t,r)=>r>e&&t instanceof DatePart))}setTo(e){}prev(){let e=[].concat(this.parts).reverse();const t=e.indexOf(this);return e.find(((e,r)=>r>t&&e instanceof DatePart))}toString(){return String(this.date)}}e.exports=DatePart},6784:(e,t,r)=>{"use strict";const s=r(8377);const pos=e=>{e=e%10;return e===1?"st":e===2?"nd":e===3?"rd":"th"};class Day extends s{constructor(e={}){super(e)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(e){this.date.setDate(parseInt(e.substr(-2)))}toString(){let e=this.date.getDate();let t=this.date.getDay();return this.token==="DD"?String(e).padStart(2,"0"):this.token==="Do"?e+pos(e):this.token==="d"?t+1:this.token==="ddd"?this.locales.weekdaysShort[t]:this.token==="dddd"?this.locales.weekdays[t]:e}}e.exports=Day},754:(e,t,r)=>{"use strict";const s=r(8377);class Hours extends s{constructor(e={}){super(e)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(e){this.date.setHours(parseInt(e.substr(-2)))}toString(){let e=this.date.getHours();if(/h/.test(this.token))e=e%12||12;return this.token.length>1?String(e).padStart(2,"0"):e}}e.exports=Hours},8108:(e,t,r)=>{"use strict";e.exports={DatePart:r(8377),Meridiem:r(2616),Day:r(6784),Hours:r(754),Milliseconds:r(4316),Minutes:r(1770),Month:r(8086),Seconds:r(1823),Year:r(9208)}},2616:(e,t,r)=>{"use strict";const s=r(8377);class Meridiem extends s{constructor(e={}){super(e)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let e=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?e.toUpperCase():e}}e.exports=Meridiem},4316:(e,t,r)=>{"use strict";const s=r(8377);class Milliseconds extends s{constructor(e={}){super(e)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(e){this.date.setMilliseconds(parseInt(e.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}e.exports=Milliseconds},1770:(e,t,r)=>{"use strict";const s=r(8377);class Minutes extends s{constructor(e={}){super(e)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(e){this.date.setMinutes(parseInt(e.substr(-2)))}toString(){let e=this.date.getMinutes();return this.token.length>1?String(e).padStart(2,"0"):e}}e.exports=Minutes},8086:(e,t,r)=>{"use strict";const s=r(8377);class Month extends s{constructor(e={}){super(e)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(e){e=parseInt(e.substr(-2))-1;this.date.setMonth(e<0?0:e)}toString(){let e=this.date.getMonth();let t=this.token.length;return t===2?String(e+1).padStart(2,"0"):t===3?this.locales.monthsShort[e]:t===4?this.locales.months[e]:String(e+1)}}e.exports=Month},1823:(e,t,r)=>{"use strict";const s=r(8377);class Seconds extends s{constructor(e={}){super(e)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(e){this.date.setSeconds(parseInt(e.substr(-2)))}toString(){let e=this.date.getSeconds();return this.token.length>1?String(e).padStart(2,"0"):e}}e.exports=Seconds},9208:(e,t,r)=>{"use strict";const s=r(8377);class Year extends s{constructor(e={}){super(e)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(e){this.date.setFullYear(e.substr(-4))}toString(){let e=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?e.substr(-2):e}}e.exports=Year},1098:(e,t,r)=>{"use strict";const s=r(5215);const n=r(4185);const{erase:i,cursor:o}=r(9571);const{style:a,clear:u,figures:l,wrap:h,entriesToDisplay:p}=r(9501);const getVal=(e,t)=>e[t]&&(e[t].value||e[t].title||e[t]);const getTitle=(e,t)=>e[t]&&(e[t].title||e[t].value||e[t]);const getIndex=(e,t)=>{const r=e.findIndex((e=>e.value===t||e.title===t));return r>-1?r:undefined};class AutocompletePrompt extends n{constructor(e={}){super(e);this.msg=e.message;this.suggest=e.suggest;this.choices=e.choices;this.initial=typeof e.initial==="number"?e.initial:getIndex(e.choices,e.initial);this.select=this.initial||e.cursor||0;this.i18n={noMatches:e.noMatches||"no matches found"};this.fallback=e.fallback||this.initial;this.suggestions=[];this.input="";this.limit=e.limit||10;this.cursor=0;this.transform=a.render(e.style);this.scale=this.transform.scale;this.render=this.render.bind(this);this.complete=this.complete.bind(this);this.clear=u("");this.complete(this.render);this.render()}set fallback(e){this._fb=Number.isSafeInteger(parseInt(e))?parseInt(e):e}get fallback(){let e;if(typeof this._fb==="number")e=this.choices[this._fb];else if(typeof this._fb==="string")e={title:this._fb};return e||this._fb||{title:this.i18n.noMatches}}moveSelect(e){this.select=e;if(this.suggestions.length>0)this.value=getVal(this.suggestions,e);else this.value=this.fallback.value;this.fire()}async complete(e){const t=this.completing=this.suggest(this.input,this.choices);const r=await t;if(this.completing!==t)return;this.suggestions=r.map(((e,t,r)=>({title:getTitle(r,t),value:getVal(r,t),description:e.description})));this.completing=false;const s=Math.max(r.length-1,0);this.moveSelect(Math.min(s,this.select));e&&e()}reset(){this.input="";this.complete((()=>{this.moveSelect(this.initial!==void 0?this.initial:0);this.render()}));this.render()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}_(e,t){let r=this.input.slice(0,this.cursor);let s=this.input.slice(this.cursor);this.input=`${r}${e}${s}`;this.cursor=r.length+1;this.complete(this.render);this.render()}delete(){if(this.cursor===0)return this.bell();let e=this.input.slice(0,this.cursor-1);let t=this.input.slice(this.cursor);this.input=`${e}${t}`;this.complete(this.render);this.cursor=this.cursor-1;this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let e=this.input.slice(0,this.cursor);let t=this.input.slice(this.cursor+1);this.input=`${e}${t}`;this.complete(this.render);this.render()}first(){this.moveSelect(0);this.render()}last(){this.moveSelect(this.suggestions.length-1);this.render()}up(){if(this.select<=0)return this.bell();this.moveSelect(this.select-1);this.render()}down(){if(this.select>=this.suggestions.length-1)return this.bell();this.moveSelect(this.select+1);this.render()}next(){if(this.select===this.suggestions.length-1){this.moveSelect(0)}else this.moveSelect(this.select+1);this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1));this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0));this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1;this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1;this.render()}renderOption(e,t,r,n){let i;let o=r?l.arrowUp:n?l.arrowDown:" ";let a=t?s.cyan().underline(e.title):e.title;o=(t?s.cyan(l.pointer)+" ":" ")+o;if(e.description){i=` - ${e.description}`;if(o.length+a.length+i.length>=this.out.columns||e.description.split(/\r?\n/).length>1){i="\n"+h(e.description,{margin:3,width:this.out.columns})}}return o+" "+a+s.gray(i||"")}render(){if(this.closed)return;if(this.firstRender)this.out.write(o.hide);else this.out.write(u(this.outputText));super.render();let{startIndex:e,endIndex:t}=p(this.select,this.choices.length,this.limit);this.outputText=[a.symbol(this.done,this.aborted),s.bold(this.msg),a.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" ");if(!this.done){const r=this.suggestions.slice(e,t).map(((r,s)=>this.renderOption(r,this.select===s+e,s===0&&e>0,s+e===t-1&&t<this.choices.length))).join("\n");this.outputText+=`\n`+(r||s.gray(this.fallback.title))}this.out.write(i.line+o.to(0)+this.outputText)}}e.exports=AutocompletePrompt},8178:(e,t,r)=>{"use strict";const s=r(5215);const{cursor:n}=r(9571);const i=r(1944);const{clear:o,style:a,figures:u}=r(9501);class AutocompleteMultiselectPrompt extends i{constructor(e={}){e.overrideRender=true;super(e);this.inputValue="";this.clear=o("");this.filteredOptions=this.value;this.render()}last(){this.cursor=this.filteredOptions.length-1;this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length;this.render()}up(){if(this.cursor===0){this.cursor=this.filteredOptions.length-1}else{this.cursor--}this.render()}down(){if(this.cursor===this.filteredOptions.length-1){this.cursor=0}else{this.cursor++}this.render()}left(){this.filteredOptions[this.cursor].selected=false;this.render()}right(){if(this.value.filter((e=>e.selected)).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=true;this.render()}delete(){if(this.inputValue.length){this.inputValue=this.inputValue.substr(0,this.inputValue.length-1);this.updateFilteredOptions()}}updateFilteredOptions(){const e=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter((e=>{if(this.inputValue){if(typeof e.title==="string"){if(e.title.toLowerCase().includes(this.inputValue.toLowerCase())){return true}}if(typeof e.value==="string"){if(e.value.toLowerCase().includes(this.inputValue.toLowerCase())){return true}}return false}return true}));const t=this.filteredOptions.findIndex((t=>t===e));this.cursor=t<0?0:t;this.render()}handleSpaceToggle(){const e=this.filteredOptions[this.cursor];if(e.selected){e.selected=false;this.render()}else if(e.disabled||this.value.filter((e=>e.selected)).length>=this.maxChoices){return this.bell()}else{e.selected=true;this.render()}}handleInputChange(e){this.inputValue=this.inputValue+e;this.updateFilteredOptions()}_(e,t){if(e===" "){this.handleSpaceToggle()}else{this.handleInputChange(e)}}renderInstructions(){if(this.instructions===undefined||this.instructions){if(typeof this.instructions==="string"){return this.instructions}return`\nInstructions:\n ${u.arrowUp}/${u.arrowDown}: Highlight option\n ${u.arrowLeft}/${u.arrowRight}/[space]: Toggle selection\n [a,b,c]/delete: Filter choices\n enter/return: Complete answer\n`}return""}renderCurrentInput(){return`\nFiltered results for: ${this.inputValue?this.inputValue:s.gray("Enter something to filter")}\n`}renderOption(e,t,r){let n;if(t.disabled)n=e===r?s.gray().underline(t.title):s.strikethrough().gray(t.title);else n=e===r?s.cyan().underline(t.title):t.title;return(t.selected?s.green(u.radioOn):u.radioOff)+" "+n}renderDoneOrInstructions(){if(this.done){return this.value.filter((e=>e.selected)).map((e=>e.title)).join(", ")}const e=[s.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];if(this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled){e.push(s.yellow(this.warn))}return e.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(n.hide);super.render();let e=[a.symbol(this.done,this.aborted),s.bold(this.msg),a.delimiter(false),this.renderDoneOrInstructions()].join(" ");if(this.showMinError){e+=s.red(`You must select a minimum of ${this.minSelected} choices.`);this.showMinError=false}e+=this.renderOptions(this.filteredOptions);this.out.write(this.clear+e);this.clear=o(e)}}e.exports=AutocompleteMultiselectPrompt},1491:(e,t,r)=>{const s=r(5215);const n=r(4185);const{style:i,clear:o}=r(9501);const{erase:a,cursor:u}=r(9571);class ConfirmPrompt extends n{constructor(e={}){super(e);this.msg=e.message;this.value=e.initial;this.initialValue=!!e.initial;this.yesMsg=e.yes||"yes";this.yesOption=e.yesOption||"(Y/n)";this.noMsg=e.no||"no";this.noOption=e.noOption||"(y/N)";this.render()}reset(){this.value=this.initialValue;this.fire();this.render()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.value=this.value||false;this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}_(e,t){if(e.toLowerCase()==="y"){this.value=true;return this.submit()}if(e.toLowerCase()==="n"){this.value=false;return this.submit()}return this.bell()}render(){if(this.closed)return;if(this.firstRender)this.out.write(u.hide);else this.out.write(o(this.outputText));super.render();this.outputText=[i.symbol(this.done,this.aborted),s.bold(this.msg),i.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:s.gray(this.initialValue?this.yesOption:this.noOption)].join(" ");this.out.write(a.line+u.to(0)+this.outputText)}}e.exports=ConfirmPrompt},5667:(e,t,r)=>{"use strict";const s=r(5215);const n=r(4185);const{style:i,clear:o,figures:a}=r(9501);const{erase:u,cursor:l}=r(9571);const{DatePart:h,Meridiem:p,Day:d,Hours:m,Milliseconds:y,Minutes:g,Month:v,Seconds:b,Year:w}=r(8108);const A=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g;const _={1:({token:e})=>e.replace(/\\(.)/g,"$1"),2:e=>new d(e),3:e=>new v(e),4:e=>new w(e),5:e=>new p(e),6:e=>new m(e),7:e=>new g(e),8:e=>new b(e),9:e=>new y(e)};const S={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")};class DatePrompt extends n{constructor(e={}){super(e);this.msg=e.message;this.cursor=0;this.typed="";this.locales=Object.assign(S,e.locales);this._date=e.initial||new Date;this.errorMsg=e.error||"Please Enter A Valid Value";this.validator=e.validate||(()=>true);this.mask=e.mask||"YYYY-MM-DD HH:mm:ss";this.clear=o("");this.render()}get value(){return this.date}get date(){return this._date}set date(e){if(e)this._date.setTime(e.getTime())}set mask(e){let t;this.parts=[];while(t=A.exec(e)){let e=t.shift();let r=t.findIndex((e=>e!=null));this.parts.push(r in _?_[r]({token:t[r]||e,date:this.date,parts:this.parts,locales:this.locales}):t[r]||e)}let r=this.parts.reduce(((e,t)=>{if(typeof t==="string"&&typeof e[e.length-1]==="string")e[e.length-1]+=t;else e.push(t);return e}),[]);this.parts.splice(0);this.parts.push(...r);this.reset()}moveCursor(e){this.typed="";this.cursor=e;this.fire()}reset(){this.moveCursor(this.parts.findIndex((e=>e instanceof h)));this.fire();this.render()}abort(){this.done=this.aborted=true;this.error=false;this.fire();this.render();this.out.write("\n");this.close()}async validate(){let e=await this.validator(this.value);if(typeof e==="string"){this.errorMsg=e;e=false}this.error=!e}async submit(){await this.validate();if(this.error){this.color="red";this.fire();this.render();return}this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}up(){this.typed="";this.parts[this.cursor].up();this.render()}down(){this.typed="";this.parts[this.cursor].down();this.render()}left(){let e=this.parts[this.cursor].prev();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e));this.render()}right(){let e=this.parts[this.cursor].next();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e));this.render()}next(){let e=this.parts[this.cursor].next();this.moveCursor(e?this.parts.indexOf(e):this.parts.findIndex((e=>e instanceof h)));this.render()}_(e){if(/\d/.test(e)){this.typed+=e;this.parts[this.cursor].setTo(this.typed);this.render()}}render(){if(this.closed)return;if(this.firstRender)this.out.write(l.hide);else this.out.write(o(this.outputText));super.render();this.outputText=[i.symbol(this.done,this.aborted),s.bold(this.msg),i.delimiter(false),this.parts.reduce(((e,t,r)=>e.concat(r===this.cursor&&!this.done?s.cyan().underline(t.toString()):t)),[]).join("")].join(" ");if(this.error){this.outputText+=this.errorMsg.split("\n").reduce(((e,t,r)=>e+`\n${r?` `:a.pointerSmall} ${s.red().italic(t)}`),``)}this.out.write(u.line+l.to(0)+this.outputText)}}e.exports=DatePrompt},9098:(e,t,r)=>{"use strict";e.exports={TextPrompt:r(5387),SelectPrompt:r(6514),TogglePrompt:r(2093),DatePrompt:r(5667),NumberPrompt:r(2952),MultiselectPrompt:r(1944),AutocompletePrompt:r(1098),AutocompleteMultiselectPrompt:r(8178),ConfirmPrompt:r(1491)}},1944:(e,t,r)=>{"use strict";const s=r(5215);const{cursor:n}=r(9571);const i=r(4185);const{clear:o,figures:a,style:u,wrap:l,entriesToDisplay:h}=r(9501);class MultiselectPrompt extends i{constructor(e={}){super(e);this.msg=e.message;this.cursor=e.cursor||0;this.scrollIndex=e.cursor||0;this.hint=e.hint||"";this.warn=e.warn||"- This option is disabled -";this.minSelected=e.min;this.showMinError=false;this.maxChoices=e.max;this.instructions=e.instructions;this.optionsPerPage=e.optionsPerPage||10;this.value=e.choices.map(((e,t)=>{if(typeof e==="string")e={title:e,value:t};return{title:e&&(e.title||e.value||e),description:e&&e.description,value:e&&(e.value===undefined?t:e.value),selected:e&&e.selected,disabled:e&&e.disabled}}));this.clear=o("");if(!e.overrideRender){this.render()}}reset(){this.value.map((e=>!e.selected));this.cursor=0;this.fire();this.render()}selected(){return this.value.filter((e=>e.selected))}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){const e=this.value.filter((e=>e.selected));if(this.minSelected&&e.length<this.minSelected){this.showMinError=true;this.render()}else{this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}}first(){this.cursor=0;this.render()}last(){this.cursor=this.value.length-1;this.render()}next(){this.cursor=(this.cursor+1)%this.value.length;this.render()}up(){if(this.cursor===0){this.cursor=this.value.length-1}else{this.cursor--}this.render()}down(){if(this.cursor===this.value.length-1){this.cursor=0}else{this.cursor++}this.render()}left(){this.value[this.cursor].selected=false;this.render()}right(){if(this.value.filter((e=>e.selected)).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=true;this.render()}handleSpaceToggle(){const e=this.value[this.cursor];if(e.selected){e.selected=false;this.render()}else if(e.disabled||this.value.filter((e=>e.selected)).length>=this.maxChoices){return this.bell()}else{e.selected=true;this.render()}}toggleAll(){if(this.maxChoices!==undefined||this.value[this.cursor].disabled){return this.bell()}const e=!this.value[this.cursor].selected;this.value.filter((e=>!e.disabled)).forEach((t=>t.selected=e));this.render()}_(e,t){if(e===" "){this.handleSpaceToggle()}else if(e==="a"){this.toggleAll()}else{return this.bell()}}renderInstructions(){if(this.instructions===undefined||this.instructions){if(typeof this.instructions==="string"){return this.instructions}return"\nInstructions:\n"+` ${a.arrowUp}/${a.arrowDown}: Highlight option\n`+` ${a.arrowLeft}/${a.arrowRight}/[space]: Toggle selection\n`+(this.maxChoices===undefined?` a: Toggle all\n`:"")+` enter/return: Complete answer`}return""}renderOption(e,t,r,n){const i=(t.selected?s.green(a.radioOn):a.radioOff)+" "+n+" ";let o,u;if(t.disabled){o=e===r?s.gray().underline(t.title):s.strikethrough().gray(t.title)}else{o=e===r?s.cyan().underline(t.title):t.title;if(e===r&&t.description){u=` - ${t.description}`;if(i.length+o.length+u.length>=this.out.columns||t.description.split(/\r?\n/).length>1){u="\n"+l(t.description,{margin:i.length,width:this.out.columns})}}}return i+o+s.gray(u||"")}paginateOptions(e){if(e.length===0){return s.red("No matches for this query.")}let{startIndex:t,endIndex:r}=h(this.cursor,e.length,this.optionsPerPage);let n,i=[];for(let s=t;s<r;s++){if(s===t&&t>0){n=a.arrowUp}else if(s===r-1&&r<e.length){n=a.arrowDown}else{n=" "}i.push(this.renderOption(this.cursor,e[s],s,n))}return"\n"+i.join("\n")}renderOptions(e){if(!this.done){return this.paginateOptions(e)}return""}renderDoneOrInstructions(){if(this.done){return this.value.filter((e=>e.selected)).map((e=>e.title)).join(", ")}const e=[s.gray(this.hint),this.renderInstructions()];if(this.value[this.cursor].disabled){e.push(s.yellow(this.warn))}return e.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(n.hide);super.render();let e=[u.symbol(this.done,this.aborted),s.bold(this.msg),u.delimiter(false),this.renderDoneOrInstructions()].join(" ");if(this.showMinError){e+=s.red(`You must select a minimum of ${this.minSelected} choices.`);this.showMinError=false}e+=this.renderOptions(this.value);this.out.write(this.clear+e);this.clear=o(e)}}e.exports=MultiselectPrompt},2952:(e,t,r)=>{const s=r(5215);const n=r(4185);const{cursor:i,erase:o}=r(9571);const{style:a,figures:u,clear:l,lines:h}=r(9501);const p=/[0-9]/;const isDef=e=>e!==undefined;const round=(e,t)=>{let r=Math.pow(10,t);return Math.round(e*r)/r};class NumberPrompt extends n{constructor(e={}){super(e);this.transform=a.render(e.style);this.msg=e.message;this.initial=isDef(e.initial)?e.initial:"";this.float=!!e.float;this.round=e.round||2;this.inc=e.increment||1;this.min=isDef(e.min)?e.min:-Infinity;this.max=isDef(e.max)?e.max:Infinity;this.errorMsg=e.error||`Please Enter A Valid Value`;this.validator=e.validate||(()=>true);this.color=`cyan`;this.value=``;this.typed=``;this.lastHit=0;this.render()}set value(e){if(!e&&e!==0){this.placeholder=true;this.rendered=s.gray(this.transform.render(`${this.initial}`));this._value=``}else{this.placeholder=false;this.rendered=this.transform.render(`${round(e,this.round)}`);this._value=round(e,this.round)}this.fire()}get value(){return this._value}parse(e){return this.float?parseFloat(e):parseInt(e)}valid(e){return e===`-`||e===`.`&&this.float||p.test(e)}reset(){this.typed=``;this.value=``;this.fire();this.render()}abort(){let e=this.value;this.value=e!==``?e:this.initial;this.done=this.aborted=true;this.error=false;this.fire();this.render();this.out.write(`\n`);this.close()}async validate(){let e=await this.validator(this.value);if(typeof e===`string`){this.errorMsg=e;e=false}this.error=!e}async submit(){await this.validate();if(this.error){this.color=`red`;this.fire();this.render();return}let e=this.value;this.value=e!==``?e:this.initial;this.done=true;this.aborted=false;this.error=false;this.fire();this.render();this.out.write(`\n`);this.close()}up(){this.typed=``;if(this.value===""){this.value=this.min-this.inc}if(this.value>=this.max)return this.bell();this.value+=this.inc;this.color=`cyan`;this.fire();this.render()}down(){this.typed=``;if(this.value===""){this.value=this.min+this.inc}if(this.value<=this.min)return this.bell();this.value-=this.inc;this.color=`cyan`;this.fire();this.render()}delete(){let e=this.value.toString();if(e.length===0)return this.bell();this.value=this.parse(e=e.slice(0,-1))||``;if(this.value!==""&&this.value<this.min){this.value=this.min}this.color=`cyan`;this.fire();this.render()}next(){this.value=this.initial;this.fire();this.render()}_(e,t){if(!this.valid(e))return this.bell();const r=Date.now();if(r-this.lastHit>1e3)this.typed=``;this.typed+=e;this.lastHit=r;this.color=`cyan`;if(e===`.`)return this.fire();this.value=Math.min(this.parse(this.typed),this.max);if(this.value>this.max)this.value=this.max;if(this.value<this.min)this.value=this.min;this.fire();this.render()}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(i.down(h(this.outputError)-1)+l(this.outputError));this.out.write(l(this.outputText))}super.render();this.outputError="";this.outputText=[a.symbol(this.done,this.aborted),s.bold(this.msg),a.delimiter(this.done),!this.done||!this.done&&!this.placeholder?s[this.color]().underline(this.rendered):this.rendered].join(` `);if(this.error){this.outputError+=this.errorMsg.split(`\n`).reduce(((e,t,r)=>e+`\n${r?` `:u.pointerSmall} ${s.red().italic(t)}`),``)}this.out.write(o.line+i.to(0)+this.outputText+i.save+this.outputError+i.restore)}}e.exports=NumberPrompt},4185:(e,t,r)=>{"use strict";const s=r(4521);const{action:n}=r(9501);const i=r(2361);const{beep:o,cursor:a}=r(9571);const u=r(5215);class Prompt extends i{constructor(e={}){super();this.firstRender=true;this.in=e.stdin||process.stdin;this.out=e.stdout||process.stdout;this.onRender=(e.onRender||(()=>void 0)).bind(this);const t=s.createInterface(this.in);s.emitKeypressEvents(this.in,t);if(this.in.isTTY)this.in.setRawMode(true);const r=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1;const keypress=(e,t)=>{let s=n(t,r);if(s===false){this._&&this._(e,t)}else if(typeof this[s]==="function"){this[s](t)}else{this.bell()}};this.close=()=>{this.out.write(a.show);this.in.removeListener("keypress",keypress);if(this.in.isTTY)this.in.setRawMode(false);t.close();this.emit(this.aborted?"abort":"submit",this.value);this.closed=true};this.in.on("keypress",keypress)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted})}bell(){this.out.write(o)}render(){this.onRender(u);if(this.firstRender)this.firstRender=false}}e.exports=Prompt},6514:(e,t,r)=>{"use strict";const s=r(5215);const n=r(4185);const{style:i,clear:o,figures:a,wrap:u,entriesToDisplay:l}=r(9501);const{cursor:h}=r(9571);class SelectPrompt extends n{constructor(e={}){super(e);this.msg=e.message;this.hint=e.hint||"- Use arrow-keys. Return to submit.";this.warn=e.warn||"- This option is disabled";this.cursor=e.initial||0;this.choices=e.choices.map(((e,t)=>{if(typeof e==="string")e={title:e,value:t};return{title:e&&(e.title||e.value||e),value:e&&(e.value===undefined?t:e.value),description:e&&e.description,selected:e&&e.selected,disabled:e&&e.disabled}}));this.optionsPerPage=e.optionsPerPage||10;this.value=(this.choices[this.cursor]||{}).value;this.clear=o("");this.render()}moveCursor(e){this.cursor=e;this.value=this.choices[e].value;this.fire()}reset(){this.moveCursor(0);this.fire();this.render()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){if(!this.selection.disabled){this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}else this.bell()}first(){this.moveCursor(0);this.render()}last(){this.moveCursor(this.choices.length-1);this.render()}up(){if(this.cursor===0)return this.bell();this.moveCursor(this.cursor-1);this.render()}down(){if(this.cursor===this.choices.length-1)return this.bell();this.moveCursor(this.cursor+1);this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length);this.render()}_(e,t){if(e===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;if(this.firstRender)this.out.write(h.hide);else this.out.write(o(this.outputText));super.render();let{startIndex:e,endIndex:t}=l(this.cursor,this.choices.length,this.optionsPerPage);this.outputText=[i.symbol(this.done,this.aborted),s.bold(this.msg),i.delimiter(false),this.done?this.selection.title:this.selection.disabled?s.yellow(this.warn):s.gray(this.hint)].join(" ");if(!this.done){this.outputText+="\n";for(let r=e;r<t;r++){let n,i,o="",l=this.choices[r];if(r===e&&e>0){i=a.arrowUp}else if(r===t-1&&t<this.choices.length){i=a.arrowDown}else{i=" "}if(l.disabled){n=this.cursor===r?s.gray().underline(l.title):s.strikethrough().gray(l.title);i=(this.cursor===r?s.bold().gray(a.pointer)+" ":" ")+i}else{n=this.cursor===r?s.cyan().underline(l.title):l.title;i=(this.cursor===r?s.cyan(a.pointer)+" ":" ")+i;if(l.description&&this.cursor===r){o=` - ${l.description}`;if(i.length+n.length+o.length>=this.out.columns||l.description.split(/\r?\n/).length>1){o="\n"+u(l.description,{margin:3,width:this.out.columns})}}}this.outputText+=`${i} ${n}${s.gray(o)}\n`}}this.out.write(this.outputText)}}e.exports=SelectPrompt},5387:(e,t,r)=>{const s=r(5215);const n=r(4185);const{erase:i,cursor:o}=r(9571);const{style:a,clear:u,lines:l,figures:h}=r(9501);class TextPrompt extends n{constructor(e={}){super(e);this.transform=a.render(e.style);this.scale=this.transform.scale;this.msg=e.message;this.initial=e.initial||``;this.validator=e.validate||(()=>true);this.value=``;this.errorMsg=e.error||`Please Enter A Valid Value`;this.cursor=Number(!!this.initial);this.clear=u(``);this.render()}set value(e){if(!e&&this.initial){this.placeholder=true;this.rendered=s.gray(this.transform.render(this.initial))}else{this.placeholder=false;this.rendered=this.transform.render(e)}this._value=e;this.fire()}get value(){return this._value}reset(){this.value=``;this.cursor=Number(!!this.initial);this.fire();this.render()}abort(){this.value=this.value||this.initial;this.done=this.aborted=true;this.error=false;this.red=false;this.fire();this.render();this.out.write("\n");this.close()}async validate(){let e=await this.validator(this.value);if(typeof e===`string`){this.errorMsg=e;e=false}this.error=!e}async submit(){this.value=this.value||this.initial;await this.validate();if(this.error){this.red=true;this.fire();this.render();return}this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}next(){if(!this.placeholder)return this.bell();this.value=this.initial;this.cursor=this.rendered.length;this.fire();this.render()}moveCursor(e){if(this.placeholder)return;this.cursor=this.cursor+e}_(e,t){let r=this.value.slice(0,this.cursor);let s=this.value.slice(this.cursor);this.value=`${r}${e}${s}`;this.red=false;this.cursor=this.placeholder?0:r.length+1;this.render()}delete(){if(this.cursor===0)return this.bell();let e=this.value.slice(0,this.cursor-1);let t=this.value.slice(this.cursor);this.value=`${e}${t}`;this.red=false;this.moveCursor(-1);this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let e=this.value.slice(0,this.cursor);let t=this.value.slice(this.cursor+1);this.value=`${e}${t}`;this.red=false;this.render()}first(){this.cursor=0;this.render()}last(){this.cursor=this.value.length;this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1);this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1);this.render()}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(o.down(l(this.outputError)-1)+u(this.outputError));this.out.write(u(this.outputText))}super.render();this.outputError="";this.outputText=[a.symbol(this.done,this.aborted),s.bold(this.msg),a.delimiter(this.done),this.red?s.red(this.rendered):this.rendered].join(` `);if(this.error){this.outputError+=this.errorMsg.split(`\n`).reduce(((e,t,r)=>e+`\n${r?" ":h.pointerSmall} ${s.red().italic(t)}`),``)}this.out.write(i.line+o.to(0)+this.outputText+o.save+this.outputError+o.restore)}}e.exports=TextPrompt},2093:(e,t,r)=>{const s=r(5215);const n=r(4185);const{style:i,clear:o}=r(9501);const{cursor:a,erase:u}=r(9571);class TogglePrompt extends n{constructor(e={}){super(e);this.msg=e.message;this.value=!!e.initial;this.active=e.active||"on";this.inactive=e.inactive||"off";this.initialValue=this.value;this.render()}reset(){this.value=this.initialValue;this.fire();this.render()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}deactivate(){if(this.value===false)return this.bell();this.value=false;this.render()}activate(){if(this.value===true)return this.bell();this.value=true;this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value;this.fire();this.render()}_(e,t){if(e===" "){this.value=!this.value}else if(e==="1"){this.value=true}else if(e==="0"){this.value=false}else return this.bell();this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(a.hide);else this.out.write(o(this.outputText));super.render();this.outputText=[i.symbol(this.done,this.aborted),s.bold(this.msg),i.delimiter(this.done),this.value?this.inactive:s.cyan().underline(this.inactive),s.gray("/"),this.value?s.cyan().underline(this.active):this.active].join(" ");this.out.write(u.line+a.to(0)+this.outputText)}}e.exports=TogglePrompt},5379:(e,t,r)=>{"use strict";const s=r(1558);const n=["suggest","format","onState","validate","onRender","type"];const noop=()=>{};async function prompt(e=[],{onSubmit:t=noop,onCancel:r=noop}={}){const i={};const o=prompt._override||{};e=[].concat(e);let a,u,l,h,p,d;const getFormattedAnswer=async(e,t,r=false)=>{if(!r&&e.validate&&e.validate(t)!==true){return}return e.format?await e.format(t,i):t};for(u of e){({name:h,type:p}=u);if(typeof p==="function"){p=await p(a,{...i},u);u["type"]=p}if(!p)continue;for(let e in u){if(n.includes(e))continue;let t=u[e];u[e]=typeof t==="function"?await t(a,{...i},d):t}d=u;if(typeof u.message!=="string"){throw new Error("prompt message is required")}({name:h,type:p}=u);if(s[p]===void 0){throw new Error(`prompt type (${p}) is not defined`)}if(o[u.name]!==undefined){a=await getFormattedAnswer(u,o[u.name]);if(a!==undefined){i[h]=a;continue}}try{a=prompt._injected?getInjectedAnswer(prompt._injected):await s[p](u);i[h]=a=await getFormattedAnswer(u,a,true);l=await t(u,a,i)}catch(e){l=!await r(u,i)}if(l)return i}return i}function getInjectedAnswer(e){const t=e.shift();if(t instanceof Error){throw t}return t}function inject(e){prompt._injected=(prompt._injected||[]).concat(e)}function override(e){prompt._override=Object.assign({},e)}e.exports=Object.assign(prompt,{prompt:prompt,prompts:s,inject:inject,override:override})},1558:(e,t,r)=>{"use strict";const s=t;const n=r(9098);const noop=e=>e;function toPrompt(e,t,r={}){return new Promise(((s,i)=>{const o=new n[e](t);const a=r.onAbort||noop;const u=r.onSubmit||noop;o.on("state",t.onState||noop);o.on("submit",(e=>s(u(e))));o.on("abort",(e=>i(a(e))))}))}s.text=e=>toPrompt("TextPrompt",e);s.password=e=>{e.style="password";return s.text(e)};s.invisible=e=>{e.style="invisible";return s.text(e)};s.number=e=>toPrompt("NumberPrompt",e);s.date=e=>toPrompt("DatePrompt",e);s.confirm=e=>toPrompt("ConfirmPrompt",e);s.list=e=>{const t=e.separator||",";return toPrompt("TextPrompt",e,{onSubmit:e=>e.split(t).map((e=>e.trim()))})};s.toggle=e=>toPrompt("TogglePrompt",e);s.select=e=>toPrompt("SelectPrompt",e);s.multiselect=e=>{e.choices=[].concat(e.choices||[]);const toSelected=e=>e.filter((e=>e.selected)).map((e=>e.value));return toPrompt("MultiselectPrompt",e,{onAbort:toSelected,onSubmit:toSelected})};s.autocompleteMultiselect=e=>{e.choices=[].concat(e.choices||[]);const toSelected=e=>e.filter((e=>e.selected)).map((e=>e.value));return toPrompt("AutocompleteMultiselectPrompt",e,{onAbort:toSelected,onSubmit:toSelected})};const byTitle=(e,t)=>Promise.resolve(t.filter((t=>t.title.slice(0,e.length).toLowerCase()===e.toLowerCase())));s.autocomplete=e=>{e.suggest=e.suggest||byTitle;e.choices=[].concat(e.choices||[]);return toPrompt("AutocompletePrompt",e)}},2337:e=>{"use strict";e.exports=(e,t)=>{if(e.meta)return;if(e.ctrl){if(e.name==="a")return"first";if(e.name==="c")return"abort";if(e.name==="d")return"abort";if(e.name==="e")return"last";if(e.name==="g")return"reset"}if(t){if(e.name==="j")return"down";if(e.name==="k")return"up"}if(e.name==="return")return"submit";if(e.name==="enter")return"submit";if(e.name==="backspace")return"delete";if(e.name==="delete")return"deleteForward";if(e.name==="abort")return"abort";if(e.name==="escape")return"abort";if(e.name==="tab")return"next";if(e.name==="pagedown")return"nextPage";if(e.name==="pageup")return"prevPage";if(e.name==="home")return"home";if(e.name==="end")return"end";if(e.name==="up")return"up";if(e.name==="down")return"down";if(e.name==="right")return"right";if(e.name==="left")return"left";return false}},4679:(e,t,r)=>{"use strict";const s=r(6439);const{erase:n,cursor:i}=r(9571);const width=e=>[...s(e)].length;e.exports=function(e,t=process.stdout.columns){if(!t)return n.line+i.to(0);let r=0;const s=e.split(/\r?\n/);for(let e of s){r+=1+Math.floor(Math.max(width(e)-1,0)/t)}return n.lines(r)}},6740:e=>{"use strict";e.exports=(e,t,r)=>{r=r||t;let s=Math.min(t-r,e-Math.floor(r/2));if(s<0)s=0;let n=Math.min(s+r,t);return{startIndex:s,endIndex:n}}},1918:e=>{"use strict";const t={arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",radioOn:"◉",radioOff:"◯",tick:"✔",cross:"✖",ellipsis:"…",pointerSmall:"›",line:"─",pointer:"❯"};const r={arrowUp:t.arrowUp,arrowDown:t.arrowDown,arrowLeft:t.arrowLeft,arrowRight:t.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"√",cross:"×",ellipsis:"...",pointerSmall:"»",line:"─",pointer:">"};const s=process.platform==="win32"?r:t;e.exports=s},9501:(e,t,r)=>{"use strict";e.exports={action:r(2337),clear:r(4679),style:r(5290),strip:r(6439),figures:r(1918),lines:r(409),wrap:r(8861),entriesToDisplay:r(6740)}},409:(e,t,r)=>{"use strict";const s=r(6439);e.exports=function(e,t=process.stdout.columns){let r=String(s(e)||"").split(/\r?\n/);if(!t)return r.length;return r.map((e=>Math.ceil(e.length/t))).reduce(((e,t)=>e+t))}},6439:e=>{"use strict";e.exports=e=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[a-zA-Z\\d]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|");const r=new RegExp(t,"g");return typeof e==="string"?e.replace(r,""):e}},5290:(e,t,r)=>{"use strict";const s=r(5215);const n=r(1918);const i=Object.freeze({password:{scale:1,render:e=>"*".repeat(e.length)},emoji:{scale:2,render:e=>"😃".repeat(e.length)},invisible:{scale:0,render:e=>""},default:{scale:1,render:e=>`${e}`}});const render=e=>i[e]||i.default;const o=Object.freeze({aborted:s.red(n.cross),done:s.green(n.tick),default:s.cyan("?")});const symbol=(e,t)=>t?o.aborted:e?o.done:o.default;const delimiter=e=>s.gray(e?n.ellipsis:n.pointerSmall);const item=(e,t)=>s.gray(e?t?n.pointerSmall:"+":n.line);e.exports={styles:i,render:render,symbols:o,symbol:symbol,delimiter:delimiter,item:item}},8861:e=>{"use strict";e.exports=(e,t={})=>{const r=Number.isSafeInteger(parseInt(t.margin))?new Array(parseInt(t.margin)).fill(" ").join(""):t.margin||"";const s=t.width||process.stdout.columns;return(e||"").split(/\r?\n/g).map((e=>e.split(/\s+/g).reduce(((e,t)=>{if(t.length+r.length>=s||e[e.length-1].length+t.length+1<s)e[e.length-1]+=` ${t}`;else e.push(`${r}${t}`);return e}),[r]).join("\n"))).join("\n")}},8341:(e,t,r)=>{var s=r(1223);var n=r(1205);var i=r(7147);var noop=function(){};var o=/^v?\.0/.test(process.version);var isFn=function(e){return typeof e==="function"};var isFS=function(e){if(!o)return false;if(!i)return false;return(e instanceof(i.ReadStream||noop)||e instanceof(i.WriteStream||noop))&&isFn(e.close)};var isRequest=function(e){return e.setHeader&&isFn(e.abort)};var destroyer=function(e,t,r,i){i=s(i);var o=false;e.on("close",(function(){o=true}));n(e,{readable:t,writable:r},(function(e){if(e)return i(e);o=true;i()}));var a=false;return function(t){if(o)return;if(a)return;a=true;if(isFS(e))return e.close(noop);if(isRequest(e))return e.abort();if(isFn(e.destroy))return e.destroy();i(t||new Error("stream was destroyed"))}};var call=function(e){e()};var pipe=function(e,t){return e.pipe(t)};var pump=function(){var e=Array.prototype.slice.call(arguments);var t=isFn(e[e.length-1]||noop)&&e.pop()||noop;if(Array.isArray(e[0]))e=e[0];if(e.length<2)throw new Error("pump requires two streams per minimum");var r;var s=e.map((function(n,i){var o=i<e.length-1;var a=i>0;return destroyer(n,o,a,(function(e){if(!r)r=e;if(e)s.forEach(call);if(o)return;s.forEach(call);t(r)}))}));return e.reduce(pipe)};e.exports=pump},9273:e=>{"use strict";class QuickLRU{constructor(e={}){if(!(e.maxSize&&e.maxSize>0)){throw new TypeError("`maxSize` must be a number greater than 0")}this.maxSize=e.maxSize;this.onEviction=e.onEviction;this.cache=new Map;this.oldCache=new Map;this._size=0}_set(e,t){this.cache.set(e,t);this._size++;if(this._size>=this.maxSize){this._size=0;if(typeof this.onEviction==="function"){for(const[e,t]of this.oldCache.entries()){this.onEviction(e,t)}}this.oldCache=this.cache;this.cache=new Map}}get(e){if(this.cache.has(e)){return this.cache.get(e)}if(this.oldCache.has(e)){const t=this.oldCache.get(e);this.oldCache.delete(e);this._set(e,t);return t}}set(e,t){if(this.cache.has(e)){this.cache.set(e,t)}else{this._set(e,t)}return this}has(e){return this.cache.has(e)||this.oldCache.has(e)}peek(e){if(this.cache.has(e)){return this.cache.get(e)}if(this.oldCache.has(e)){return this.oldCache.get(e)}}delete(e){const t=this.cache.delete(e);if(t){this._size--}return this.oldCache.delete(e)||t}clear(){this.cache.clear();this.oldCache.clear();this._size=0}*keys(){for(const[e]of this){yield e}}*values(){for(const[,e]of this){yield e}}*[Symbol.iterator](){for(const e of this.cache){yield e}for(const e of this.oldCache){const[t]=e;if(!this.cache.has(t)){yield e}}}get size(){let e=0;for(const t of this.oldCache.keys()){if(!this.cache.has(t)){e++}}return Math.min(this._size+e,this.maxSize)}}e.exports=QuickLRU},7353:(e,t,r)=>{var s=r(5588);var n=r(1017).join;var i=r(1705);var o="/etc";var a=process.platform==="win32";var u=a?process.env.USERPROFILE:process.env.HOME;e.exports=function(e,t,l,h){if("string"!==typeof e)throw new Error("rc(name): name *must* be string");if(!l)l=r(5871)(process.argv.slice(2));t=("string"===typeof t?s.json(t):t)||{};h=h||s.parse;var p=s.env(e+"_");var d=[t];var m=[];function addConfigFile(e){if(m.indexOf(e)>=0)return;var t=s.file(e);if(t){d.push(h(t));m.push(e)}}if(!a)[n(o,e,"config"),n(o,e+"rc")].forEach(addConfigFile);if(u)[n(u,".config",e,"config"),n(u,".config",e),n(u,"."+e,"config"),n(u,"."+e+"rc")].forEach(addConfigFile);addConfigFile(s.find("."+e+"rc"));if(p.config)addConfigFile(p.config);if(l.config)addConfigFile(l.config);return i.apply(null,d.concat([p,l,m.length?{configs:m,config:m[m.length-1]}:undefined]))}},5588:(e,t,r)=>{"use strict";var s=r(7147);var n=r(8885);var i=r(1017);var o=r(7035);var a=t.parse=function(e){if(/^\s*{/.test(e))return JSON.parse(o(e));return n.parse(e)};var u=t.file=function(){var e=[].slice.call(arguments).filter((function(e){return e!=null}));for(var t in e)if("string"!==typeof e[t])return;var r=i.join.apply(null,e);var n;try{return s.readFileSync(r,"utf-8")}catch(e){return}};var l=t.json=function(){var e=u.apply(null,arguments);return e?a(e):null};var h=t.env=function(e,t){t=t||process.env;var r={};var s=e.length;for(var n in t){if(n.toLowerCase().indexOf(e.toLowerCase())===0){var i=n.substring(s).split("__");var o;while((o=i.indexOf(""))>-1){i.splice(o,1)}var a=r;i.forEach((function _buildSubObj(e,r){if(!e||typeof a!=="object")return;if(r===i.length-1)a[e]=t[n];if(a[e]===undefined)a[e]={};a=a[e]}))}}return r};var p=t.find=function(){var e=i.join.apply(null,[].slice.call(arguments));function find(e,t){var r=i.join(e,t);try{s.statSync(r);return r}catch(r){if(i.dirname(e)!==e)return find(i.dirname(e),t)}}return find(process.cwd(),e)}},7035:e=>{"use strict";var t=1;var r=2;function stripWithoutWhitespace(){return""}function stripWithWhitespace(e,t,r){return e.slice(t,r).replace(/\S/g," ")}e.exports=function(e,s){s=s||{};var n;var i;var o=false;var a=false;var u=0;var l="";var h=s.whitespace===false?stripWithoutWhitespace:stripWithWhitespace;for(var p=0;p<e.length;p++){n=e[p];i=e[p+1];if(!a&&n==='"'){var d=e[p-1]==="\\"&&e[p-2]!=="\\";if(!d){o=!o}}if(o){continue}if(!a&&n+i==="//"){l+=e.slice(u,p);u=p;a=t;p++}else if(a===t&&n+i==="\r\n"){p++;a=false;l+=h(e,u,p);u=p;continue}else if(a===t&&n==="\n"){a=false;l+=h(e,u,p);u=p}else if(!a&&n+i==="/*"){l+=e.slice(u,p);u=p;a=r;p++;continue}else if(a===r&&n+i==="*/"){p++;a=false;l+=h(e,u,p+1);u=p+1;continue}}return l+(a?h(e.substr(u)):e.substr(u))}},8506:(e,t,r)=>{const s=r(1867).Buffer;function decodeBase64(e){return s.from(e,"base64").toString("utf8")}function encodeBase64(e){return s.from(e,"utf8").toString("base64")}e.exports={decodeBase64:decodeBase64,encodeBase64:encodeBase64}},2968:(e,t,r)=>{var s=r(7310);var n=r(8506);var i=n.decodeBase64;var o=n.encodeBase64;var a=":_authToken";var u=":username";var l=":_password";e.exports=function(){var e;var t;if(arguments.length>=2){e=arguments[0];t=arguments[1]}else if(typeof arguments[0]==="string"){e=arguments[0]}else{t=arguments[0]}t=t||{};t.npmrc=t.npmrc||r(7353)("npm",{registry:"https://registry.npmjs.org/"});e=e||t.npmrc.registry;return getRegistryAuthInfo(e,t)||getLegacyAuthInfo(t.npmrc)};function getRegistryAuthInfo(e,t){var r=s.parse(e,false,true);var n;while(n!=="/"&&r.pathname!==n){n=r.pathname||"/";var i="//"+r.host+n.replace(/\/$/,"");var o=getAuthInfoForUrl(i,t.npmrc);if(o){return o}if(!t.recursive){return/\/$/.test(e)?undefined:getRegistryAuthInfo(s.resolve(e,"."),t)}r.pathname=s.resolve(normalizePath(n),"..")||"/"}return undefined}function getLegacyAuthInfo(e){if(e._auth){return{token:e._auth,type:"Basic"}}return undefined}function normalizePath(e){return e[e.length-1]==="/"?e:e+"/"}function getAuthInfoForUrl(e,t){var r=getBearerToken(t[e+a]||t[e+"/"+a]);if(r){return r}var s=t[e+u]||t[e+"/"+u];var n=t[e+l]||t[e+"/"+l];var i=getTokenForUsernameAndPassword(s,n);if(i){return i}return undefined}function getBearerToken(e){if(!e){return undefined}var t=e.replace(/^\$\{?([^}]*)\}?$/,(function(e,t){return process.env[t]}));return{token:t,type:"Bearer"}}function getTokenForUsernameAndPassword(e,t){if(!e||!t){return undefined}var r=i(t.replace(/^\$\{?([^}]*)\}?$/,(function(e,t){return process.env[t]})));var s=o(e+":"+r);return{token:s,type:"Basic",password:r,username:e}}},4182:(e,t,r)=>{"use strict";e.exports=function(e){var t=r(7353)("npm",{registry:"https://registry.npmjs.org/"});var s=t[e+":registry"]||t.registry;return s.slice(-1)==="/"?s:s+"/"}},6624:(e,t,r)=>{"use strict";const s=r(4404);e.exports=(e={})=>new Promise(((t,r)=>{const n=s.connect(e,(()=>{if(e.resolveSocket){n.off("error",r);t({alpnProtocol:n.alpnProtocol,socket:n})}else{n.destroy();t({alpnProtocol:n.alpnProtocol})}}));n.on("error",r)}))},9004:(e,t,r)=>{"use strict";const s=r(2781).Readable;const n=r(9662);class Response extends s{constructor(e,t,r,s){if(typeof e!=="number"){throw new TypeError("Argument `statusCode` should be a number")}if(typeof t!=="object"){throw new TypeError("Argument `headers` should be an object")}if(!(r instanceof Buffer)){throw new TypeError("Argument `body` should be a buffer")}if(typeof s!=="string"){throw new TypeError("Argument `url` should be a string")}super();this.statusCode=e;this.headers=n(t);this.body=r;this.url=s}_read(){this.push(this.body);this.push(null)}}e.exports=Response},4959:(e,t,r)=>{const s=r(9491);const n=r(1017);const i=r(7147);let o=undefined;try{o=r(1957)}catch(e){}const a={nosort:true,silent:true};let u=0;const l=process.platform==="win32";const defaults=e=>{const t=["unlink","chmod","stat","lstat","rmdir","readdir"];t.forEach((t=>{e[t]=e[t]||i[t];t=t+"Sync";e[t]=e[t]||i[t]}));e.maxBusyTries=e.maxBusyTries||3;e.emfileWait=e.emfileWait||1e3;if(e.glob===false){e.disableGlob=true}if(e.disableGlob!==true&&o===undefined){throw Error("glob dependency not found, set `options.disableGlob = true` if intentional")}e.disableGlob=e.disableGlob||false;e.glob=e.glob||a};const rimraf=(e,t,r)=>{if(typeof t==="function"){r=t;t={}}s(e,"rimraf: missing path");s.equal(typeof e,"string","rimraf: path should be a string");s.equal(typeof r,"function","rimraf: callback function required");s(t,"rimraf: invalid options argument provided");s.equal(typeof t,"object","rimraf: options should be object");defaults(t);let n=0;let i=null;let a=0;const next=e=>{i=i||e;if(--a===0)r(i)};const afterGlob=(e,s)=>{if(e)return r(e);a=s.length;if(a===0)return r();s.forEach((e=>{const CB=r=>{if(r){if((r.code==="EBUSY"||r.code==="ENOTEMPTY"||r.code==="EPERM")&&n<t.maxBusyTries){n++;return setTimeout((()=>rimraf_(e,t,CB)),n*100)}if(r.code==="EMFILE"&&u<t.emfileWait){return setTimeout((()=>rimraf_(e,t,CB)),u++)}if(r.code==="ENOENT")r=null}u=0;next(r)};rimraf_(e,t,CB)}))};if(t.disableGlob||!o.hasMagic(e))return afterGlob(null,[e]);t.lstat(e,((r,s)=>{if(!r)return afterGlob(null,[e]);o(e,t.glob,afterGlob)}))};const rimraf_=(e,t,r)=>{s(e);s(t);s(typeof r==="function");t.lstat(e,((s,n)=>{if(s&&s.code==="ENOENT")return r(null);if(s&&s.code==="EPERM"&&l)fixWinEPERM(e,t,s,r);if(n&&n.isDirectory())return rmdir(e,t,s,r);t.unlink(e,(s=>{if(s){if(s.code==="ENOENT")return r(null);if(s.code==="EPERM")return l?fixWinEPERM(e,t,s,r):rmdir(e,t,s,r);if(s.code==="EISDIR")return rmdir(e,t,s,r)}return r(s)}))}))};const fixWinEPERM=(e,t,r,n)=>{s(e);s(t);s(typeof n==="function");t.chmod(e,438,(s=>{if(s)n(s.code==="ENOENT"?null:r);else t.stat(e,((s,i)=>{if(s)n(s.code==="ENOENT"?null:r);else if(i.isDirectory())rmdir(e,t,r,n);else t.unlink(e,n)}))}))};const fixWinEPERMSync=(e,t,r)=>{s(e);s(t);try{t.chmodSync(e,438)}catch(e){if(e.code==="ENOENT")return;else throw r}let n;try{n=t.statSync(e)}catch(e){if(e.code==="ENOENT")return;else throw r}if(n.isDirectory())rmdirSync(e,t,r);else t.unlinkSync(e)};const rmdir=(e,t,r,n)=>{s(e);s(t);s(typeof n==="function");t.rmdir(e,(s=>{if(s&&(s.code==="ENOTEMPTY"||s.code==="EEXIST"||s.code==="EPERM"))rmkids(e,t,n);else if(s&&s.code==="ENOTDIR")n(r);else n(s)}))};const rmkids=(e,t,r)=>{s(e);s(t);s(typeof r==="function");t.readdir(e,((s,i)=>{if(s)return r(s);let o=i.length;if(o===0)return t.rmdir(e,r);let a;i.forEach((s=>{rimraf(n.join(e,s),t,(s=>{if(a)return;if(s)return r(a=s);if(--o===0)t.rmdir(e,r)}))}))}))};const rimrafSync=(e,t)=>{t=t||{};defaults(t);s(e,"rimraf: missing path");s.equal(typeof e,"string","rimraf: path should be a string");s(t,"rimraf: missing options");s.equal(typeof t,"object","rimraf: options should be object");let r;if(t.disableGlob||!o.hasMagic(e)){r=[e]}else{try{t.lstatSync(e);r=[e]}catch(s){r=o.sync(e,t.glob)}}if(!r.length)return;for(let e=0;e<r.length;e++){const s=r[e];let n;try{n=t.lstatSync(s)}catch(e){if(e.code==="ENOENT")return;if(e.code==="EPERM"&&l)fixWinEPERMSync(s,t,e)}try{if(n&&n.isDirectory())rmdirSync(s,t,null);else t.unlinkSync(s)}catch(e){if(e.code==="ENOENT")return;if(e.code==="EPERM")return l?fixWinEPERMSync(s,t,e):rmdirSync(s,t,e);if(e.code!=="EISDIR")throw e;rmdirSync(s,t,e)}}};const rmdirSync=(e,t,r)=>{s(e);s(t);try{t.rmdirSync(e)}catch(s){if(s.code==="ENOENT")return;if(s.code==="ENOTDIR")throw r;if(s.code==="ENOTEMPTY"||s.code==="EEXIST"||s.code==="EPERM")rmkidsSync(e,t)}};const rmkidsSync=(e,t)=>{s(e);s(t);t.readdirSync(e).forEach((r=>rimrafSync(n.join(e,r),t)));const r=l?100:1;let i=0;do{let s=true;try{const n=t.rmdirSync(e,t);s=false;return n}finally{if(++i<r&&s)continue}}while(true)};e.exports=rimraf;rimraf.sync=rimrafSync},1867:(e,t,r)=>{
47/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
48var s=r(4300);var n=s.Buffer;function copyProps(e,t){for(var r in e){t[r]=e[r]}}if(n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow){e.exports=s}else{copyProps(s,t);t.Buffer=SafeBuffer}function SafeBuffer(e,t,r){return n(e,t,r)}SafeBuffer.prototype=Object.create(n.prototype);copyProps(n,SafeBuffer);SafeBuffer.from=function(e,t,r){if(typeof e==="number"){throw new TypeError("Argument must not be a number")}return n(e,t,r)};SafeBuffer.alloc=function(e,t,r){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}var s=n(e);if(t!==undefined){if(typeof r==="string"){s.fill(t,r)}else{s.fill(t)}}else{s.fill(0)}return s};SafeBuffer.allocUnsafe=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return n(e)};SafeBuffer.allocUnsafeSlow=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return s.SlowBuffer(e)}},5911:(e,t)=>{t=e.exports=SemVer;var r;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){r=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{r=function(){}}t.SEMVER_SPEC_VERSION="2.0.0";var s=256;var n=Number.MAX_SAFE_INTEGER||9007199254740991;var i=16;var o=t.re=[];var a=t.src=[];var u=0;var l=u++;a[l]="0|[1-9]\\d*";var h=u++;a[h]="[0-9]+";var p=u++;a[p]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var d=u++;a[d]="("+a[l]+")\\."+"("+a[l]+")\\."+"("+a[l]+")";var m=u++;a[m]="("+a[h]+")\\."+"("+a[h]+")\\."+"("+a[h]+")";var y=u++;a[y]="(?:"+a[l]+"|"+a[p]+")";var g=u++;a[g]="(?:"+a[h]+"|"+a[p]+")";var v=u++;a[v]="(?:-("+a[y]+"(?:\\."+a[y]+")*))";var b=u++;a[b]="(?:-?("+a[g]+"(?:\\."+a[g]+")*))";var w=u++;a[w]="[0-9A-Za-z-]+";var A=u++;a[A]="(?:\\+("+a[w]+"(?:\\."+a[w]+")*))";var _=u++;var S="v?"+a[d]+a[v]+"?"+a[A]+"?";a[_]="^"+S+"$";var C="[v=\\s]*"+a[m]+a[b]+"?"+a[A]+"?";var D=u++;a[D]="^"+C+"$";var x=u++;a[x]="((?:<|>)?=?)";var R=u++;a[R]=a[h]+"|x|X|\\*";var k=u++;a[k]=a[l]+"|x|X|\\*";var O=u++;a[O]="[v=\\s]*("+a[k]+")"+"(?:\\.("+a[k]+")"+"(?:\\.("+a[k]+")"+"(?:"+a[v]+")?"+a[A]+"?"+")?)?";var T=u++;a[T]="[v=\\s]*("+a[R]+")"+"(?:\\.("+a[R]+")"+"(?:\\.("+a[R]+")"+"(?:"+a[b]+")?"+a[A]+"?"+")?)?";var P=u++;a[P]="^"+a[x]+"\\s*"+a[O]+"$";var M=u++;a[M]="^"+a[x]+"\\s*"+a[T]+"$";var B=u++;a[B]="(?:^|[^\\d])"+"(\\d{1,"+i+"})"+"(?:\\.(\\d{1,"+i+"}))?"+"(?:\\.(\\d{1,"+i+"}))?"+"(?:$|[^\\d])";var j=u++;a[j]="(?:~>?)";var I=u++;a[I]="(\\s*)"+a[j]+"\\s+";o[I]=new RegExp(a[I],"g");var N="$1~";var L=u++;a[L]="^"+a[j]+a[O]+"$";var $=u++;a[$]="^"+a[j]+a[T]+"$";var H=u++;a[H]="(?:\\^)";var U=u++;a[U]="(\\s*)"+a[H]+"\\s+";o[U]=new RegExp(a[U],"g");var G="$1^";var z=u++;a[z]="^"+a[H]+a[O]+"$";var q=u++;a[q]="^"+a[H]+a[T]+"$";var V=u++;a[V]="^"+a[x]+"\\s*("+C+")$|^$";var W=u++;a[W]="^"+a[x]+"\\s*("+S+")$|^$";var Y=u++;a[Y]="(\\s*)"+a[x]+"\\s*("+C+"|"+a[O]+")";o[Y]=new RegExp(a[Y],"g");var Q="$1$2$3";var Z=u++;a[Z]="^\\s*("+a[O]+")"+"\\s+-\\s+"+"("+a[O]+")"+"\\s*$";var J=u++;a[J]="^\\s*("+a[T]+")"+"\\s+-\\s+"+"("+a[T]+")"+"\\s*$";var X=u++;a[X]="(<|>)?=?\\s*\\*";for(var K=0;K<u;K++){r(K,a[K]);if(!o[K]){o[K]=new RegExp(a[K])}}t.parse=parse;function parse(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){return e}if(typeof e!=="string"){return null}if(e.length>s){return null}var r=t.loose?o[D]:o[_];if(!r.test(e)){return null}try{return new SemVer(e,t)}catch(e){return null}}t.valid=valid;function valid(e,t){var r=parse(e,t);return r?r.version:null}t.clean=clean;function clean(e,t){var r=parse(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}t.SemVer=SemVer;function SemVer(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){if(e.loose===t.loose){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(e.length>s){throw new TypeError("version is longer than "+s+" characters")}if(!(this instanceof SemVer)){return new SemVer(e,t)}r("SemVer",e,t);this.options=t;this.loose=!!t.loose;var i=e.trim().match(t.loose?o[D]:o[_]);if(!i){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+i[1];this.minor=+i[2];this.patch=+i[3];if(this.major>n||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>n||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>n||this.patch<0){throw new TypeError("Invalid patch version")}if(!i[4]){this.prerelease=[]}else{this.prerelease=i[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<n){return t}}return e}))}this.build=i[5]?i[5].split("."):[];this.format()}SemVer.prototype.format=function(){this.version=this.major+"."+this.minor+"."+this.patch;if(this.prerelease.length){this.version+="-"+this.prerelease.join(".")}return this.version};SemVer.prototype.toString=function(){return this.version};SemVer.prototype.compare=function(e){r("SemVer.compare",this.version,this.options,e);if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}return this.compareMain(e)||this.comparePre(e)};SemVer.prototype.compareMain=function(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}return compareIdentifiers(this.major,e.major)||compareIdentifiers(this.minor,e.minor)||compareIdentifiers(this.patch,e.patch)};SemVer.prototype.comparePre=function(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}if(this.prerelease.length&&!e.prerelease.length){return-1}else if(!this.prerelease.length&&e.prerelease.length){return 1}else if(!this.prerelease.length&&!e.prerelease.length){return 0}var t=0;do{var s=this.prerelease[t];var n=e.prerelease[t];r("prerelease compare",t,s,n);if(s===undefined&&n===undefined){return 0}else if(n===undefined){return 1}else if(s===undefined){return-1}else if(s===n){continue}else{return compareIdentifiers(s,n)}}while(++t)};SemVer.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0;this.patch=0;this.minor=0;this.major++;this.inc("pre",t);break;case"preminor":this.prerelease.length=0;this.patch=0;this.minor++;this.inc("pre",t);break;case"prepatch":this.prerelease.length=0;this.inc("patch",t);this.inc("pre",t);break;case"prerelease":if(this.prerelease.length===0){this.inc("patch",t)}this.inc("pre",t);break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0){this.major++}this.minor=0;this.patch=0;this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0){this.minor++}this.patch=0;this.prerelease=[];break;case"patch":if(this.prerelease.length===0){this.patch++}this.prerelease=[];break;case"pre":if(this.prerelease.length===0){this.prerelease=[0]}else{var r=this.prerelease.length;while(--r>=0){if(typeof this.prerelease[r]==="number"){this.prerelease[r]++;r=-2}}if(r===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error("invalid increment argument: "+e)}this.format();this.raw=this.version;return this};t.inc=inc;function inc(e,t,r,s){if(typeof r==="string"){s=r;r=undefined}try{return new SemVer(e,r).inc(t,s).version}catch(e){return null}}t.diff=diff;function diff(e,t){if(eq(e,t)){return null}else{var r=parse(e);var s=parse(t);var n="";if(r.prerelease.length||s.prerelease.length){n="pre";var i="prerelease"}for(var o in r){if(o==="major"||o==="minor"||o==="patch"){if(r[o]!==s[o]){return n+o}}}return i}}t.compareIdentifiers=compareIdentifiers;var ee=/^[0-9]+$/;function compareIdentifiers(e,t){var r=ee.test(e);var s=ee.test(t);if(r&&s){e=+e;t=+t}return e===t?0:r&&!s?-1:s&&!r?1:e<t?-1:1}t.rcompareIdentifiers=rcompareIdentifiers;function rcompareIdentifiers(e,t){return compareIdentifiers(t,e)}t.major=major;function major(e,t){return new SemVer(e,t).major}t.minor=minor;function minor(e,t){return new SemVer(e,t).minor}t.patch=patch;function patch(e,t){return new SemVer(e,t).patch}t.compare=compare;function compare(e,t,r){return new SemVer(e,r).compare(new SemVer(t,r))}t.compareLoose=compareLoose;function compareLoose(e,t){return compare(e,t,true)}t.rcompare=rcompare;function rcompare(e,t,r){return compare(t,e,r)}t.sort=sort;function sort(e,r){return e.sort((function(e,s){return t.compare(e,s,r)}))}t.rsort=rsort;function rsort(e,r){return e.sort((function(e,s){return t.rcompare(e,s,r)}))}t.gt=gt;function gt(e,t,r){return compare(e,t,r)>0}t.lt=lt;function lt(e,t,r){return compare(e,t,r)<0}t.eq=eq;function eq(e,t,r){return compare(e,t,r)===0}t.neq=neq;function neq(e,t,r){return compare(e,t,r)!==0}t.gte=gte;function gte(e,t,r){return compare(e,t,r)>=0}t.lte=lte;function lte(e,t,r){return compare(e,t,r)<=0}t.cmp=cmp;function cmp(e,t,r,s){switch(t){case"===":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e===r;case"!==":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e!==r;case"":case"=":case"==":return eq(e,r,s);case"!=":return neq(e,r,s);case">":return gt(e,r,s);case">=":return gte(e,r,s);case"<":return lt(e,r,s);case"<=":return lte(e,r,s);default:throw new TypeError("Invalid operator: "+t)}}t.Comparator=Comparator;function Comparator(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}if(!(this instanceof Comparator)){return new Comparator(e,t)}r("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===te){this.value=""}else{this.value=this.operator+this.semver.version}r("comp",this)}var te={};Comparator.prototype.parse=function(e){var t=this.options.loose?o[V]:o[W];var r=e.match(t);if(!r){throw new TypeError("Invalid comparator: "+e)}this.operator=r[1];if(this.operator==="="){this.operator=""}if(!r[2]){this.semver=te}else{this.semver=new SemVer(r[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(e){r("Comparator.test",e,this.options.loose);if(this.semver===te){return true}if(typeof e==="string"){e=new SemVer(e,this.options)}return cmp(e,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}var r;if(this.operator===""){r=new Range(e.value,t);return satisfies(this.value,r,t)}else if(e.operator===""){r=new Range(this.value,t);return satisfies(e.semver,r,t)}var s=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var n=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var i=this.semver.version===e.semver.version;var o=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var a=cmp(this.semver,"<",e.semver,t)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var u=cmp(this.semver,">",e.semver,t)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return s||n||i&&o||a||u};t.Range=Range;function Range(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof Comparator){return new Range(e.value,t)}if(!(this instanceof Range)){return new Range(e,t)}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e;this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length}));if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+e)}this.format()}Range.prototype.format=function(){this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var s=t?o[J]:o[Z];e=e.replace(s,hyphenReplace);r("hyphen replace",e);e=e.replace(o[Y],Q);r("comparator trim",e,o[Y]);e=e.replace(o[I],N);e=e.replace(o[U],G);e=e.split(/\s+/).join(" ");var n=t?o[V]:o[W];var i=e.split(" ").map((function(e){return parseComparator(e,this.options)}),this).join(" ").split(/\s+/);if(this.options.loose){i=i.filter((function(e){return!!e.match(n)}))}i=i.map((function(e){return new Comparator(e,this.options)}),this);return i};Range.prototype.intersects=function(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((function(r){return r.every((function(r){return e.set.some((function(e){return e.every((function(e){return r.intersects(e,t)}))}))}))}))};t.toComparators=toComparators;function toComparators(e,t){return new Range(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))}function parseComparator(e,t){r("comp",e,t);e=replaceCarets(e,t);r("caret",e);e=replaceTildes(e,t);r("tildes",e);e=replaceXRanges(e,t);r("xrange",e);e=replaceStars(e,t);r("stars",e);return e}function isX(e){return!e||e.toLowerCase()==="x"||e==="*"}function replaceTildes(e,t){return e.trim().split(/\s+/).map((function(e){return replaceTilde(e,t)})).join(" ")}function replaceTilde(e,t){var s=t.loose?o[$]:o[L];return e.replace(s,(function(t,s,n,i,o){r("tilde",e,t,s,n,i,o);var a;if(isX(s)){a=""}else if(isX(n)){a=">="+s+".0.0 <"+(+s+1)+".0.0"}else if(isX(i)){a=">="+s+"."+n+".0 <"+s+"."+(+n+1)+".0"}else if(o){r("replaceTilde pr",o);a=">="+s+"."+n+"."+i+"-"+o+" <"+s+"."+(+n+1)+".0"}else{a=">="+s+"."+n+"."+i+" <"+s+"."+(+n+1)+".0"}r("tilde return",a);return a}))}function replaceCarets(e,t){return e.trim().split(/\s+/).map((function(e){return replaceCaret(e,t)})).join(" ")}function replaceCaret(e,t){r("caret",e,t);var s=t.loose?o[q]:o[z];return e.replace(s,(function(t,s,n,i,o){r("caret",e,t,s,n,i,o);var a;if(isX(s)){a=""}else if(isX(n)){a=">="+s+".0.0 <"+(+s+1)+".0.0"}else if(isX(i)){if(s==="0"){a=">="+s+"."+n+".0 <"+s+"."+(+n+1)+".0"}else{a=">="+s+"."+n+".0 <"+(+s+1)+".0.0"}}else if(o){r("replaceCaret pr",o);if(s==="0"){if(n==="0"){a=">="+s+"."+n+"."+i+"-"+o+" <"+s+"."+n+"."+(+i+1)}else{a=">="+s+"."+n+"."+i+"-"+o+" <"+s+"."+(+n+1)+".0"}}else{a=">="+s+"."+n+"."+i+"-"+o+" <"+(+s+1)+".0.0"}}else{r("no pr");if(s==="0"){if(n==="0"){a=">="+s+"."+n+"."+i+" <"+s+"."+n+"."+(+i+1)}else{a=">="+s+"."+n+"."+i+" <"+s+"."+(+n+1)+".0"}}else{a=">="+s+"."+n+"."+i+" <"+(+s+1)+".0.0"}}r("caret return",a);return a}))}function replaceXRanges(e,t){r("replaceXRanges",e,t);return e.split(/\s+/).map((function(e){return replaceXRange(e,t)})).join(" ")}function replaceXRange(e,t){e=e.trim();var s=t.loose?o[M]:o[P];return e.replace(s,(function(t,s,n,i,o,a){r("xRange",e,t,s,n,i,o,a);var u=isX(n);var l=u||isX(i);var h=l||isX(o);var p=h;if(s==="="&&p){s=""}if(u){if(s===">"||s==="<"){t="<0.0.0"}else{t="*"}}else if(s&&p){if(l){i=0}o=0;if(s===">"){s=">=";if(l){n=+n+1;i=0;o=0}else{i=+i+1;o=0}}else if(s==="<="){s="<";if(l){n=+n+1}else{i=+i+1}}t=s+n+"."+i+"."+o}else if(l){t=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(h){t=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0"}r("xRange return",t);return t}))}function replaceStars(e,t){r("replaceStars",e,t);return e.trim().replace(o[X],"")}function hyphenReplace(e,t,r,s,n,i,o,a,u,l,h,p,d){if(isX(r)){t=""}else if(isX(s)){t=">="+r+".0.0"}else if(isX(n)){t=">="+r+"."+s+".0"}else{t=">="+t}if(isX(u)){a=""}else if(isX(l)){a="<"+(+u+1)+".0.0"}else if(isX(h)){a="<"+u+"."+(+l+1)+".0"}else if(p){a="<="+u+"."+l+"."+h+"-"+p}else{a="<="+a}return(t+" "+a).trim()}Range.prototype.test=function(e){if(!e){return false}if(typeof e==="string"){e=new SemVer(e,this.options)}for(var t=0;t<this.set.length;t++){if(testSet(this.set[t],e,this.options)){return true}}return false};function testSet(e,t,s){for(var n=0;n<e.length;n++){if(!e[n].test(t)){return false}}if(t.prerelease.length&&!s.includePrerelease){for(n=0;n<e.length;n++){r(e[n].semver);if(e[n].semver===te){continue}if(e[n].semver.prerelease.length>0){var i=e[n].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch){return true}}}return false}return true}t.satisfies=satisfies;function satisfies(e,t,r){try{t=new Range(t,r)}catch(e){return false}return t.test(e)}t.maxSatisfying=maxSatisfying;function maxSatisfying(e,t,r){var s=null;var n=null;try{var i=new Range(t,r)}catch(e){return null}e.forEach((function(e){if(i.test(e)){if(!s||n.compare(e)===-1){s=e;n=new SemVer(s,r)}}}));return s}t.minSatisfying=minSatisfying;function minSatisfying(e,t,r){var s=null;var n=null;try{var i=new Range(t,r)}catch(e){return null}e.forEach((function(e){if(i.test(e)){if(!s||n.compare(e)===1){s=e;n=new SemVer(s,r)}}}));return s}t.minVersion=minVersion;function minVersion(e,t){e=new Range(e,t);var r=new SemVer("0.0.0");if(e.test(r)){return r}r=new SemVer("0.0.0-0");if(e.test(r)){return r}r=null;for(var s=0;s<e.set.length;++s){var n=e.set[s];n.forEach((function(e){var t=new SemVer(e.semver.version);switch(e.operator){case">":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!r||gt(r,t)){r=t}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(r&&e.test(r)){return r}return null}t.validRange=validRange;function validRange(e,t){try{return new Range(e,t).range||"*"}catch(e){return null}}t.ltr=ltr;function ltr(e,t,r){return outside(e,t,"<",r)}t.gtr=gtr;function gtr(e,t,r){return outside(e,t,">",r)}t.outside=outside;function outside(e,t,r,s){e=new SemVer(e,s);t=new Range(t,s);var n,i,o,a,u;switch(r){case">":n=gt;i=lte;o=lt;a=">";u=">=";break;case"<":n=lt;i=gte;o=gt;a="<";u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,t,s)){return false}for(var l=0;l<t.set.length;++l){var h=t.set[l];var p=null;var d=null;h.forEach((function(e){if(e.semver===te){e=new Comparator(">=0.0.0")}p=p||e;d=d||e;if(n(e.semver,p.semver,s)){p=e}else if(o(e.semver,d.semver,s)){d=e}}));if(p.operator===a||p.operator===u){return false}if((!d.operator||d.operator===a)&&i(e,d.semver)){return false}else if(d.operator===u&&o(e,d.semver)){return false}}return true}t.prerelease=prerelease;function prerelease(e,t){var r=parse(e,t);return r&&r.prerelease.length?r.prerelease:null}t.intersects=intersects;function intersects(e,t,r){e=new Range(e,r);t=new Range(t,r);return e.intersects(t)}t.coerce=coerce;function coerce(e){if(e instanceof SemVer){return e}if(typeof e!=="string"){return null}var t=e.match(o[B]);if(t==null){return null}return parse(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},7032:(e,t,r)=>{"use strict";var s=r(2638);e.exports=function(e){var t=e.match(s);if(!t){return null}var r=t[0].replace(/#! ?/,"").split(" ");var n=r[0].split("/").pop();var i=r[1];return n==="env"?i:n+(i?" "+i:"")}},2638:e=>{"use strict";e.exports=/^#!.*/},4931:(e,t,r)=>{var s=r(9491);var n=r(3710);var i=r(2361);if(typeof i!=="function"){i=i.EventEmitter}var o;if(process.__signal_exit_emitter__){o=process.__signal_exit_emitter__}else{o=process.__signal_exit_emitter__=new i;o.count=0;o.emitted={}}if(!o.infinite){o.setMaxListeners(Infinity);o.infinite=true}e.exports=function(e,t){s.equal(typeof e,"function","a callback must be provided for exit handler");if(u===false){load()}var r="exit";if(t&&t.alwaysLast){r="afterexit"}var remove=function(){o.removeListener(r,e);if(o.listeners("exit").length===0&&o.listeners("afterexit").length===0){unload()}};o.on(r,e);return remove};e.exports.unload=unload;function unload(){if(!u){return}u=false;n.forEach((function(e){try{process.removeListener(e,a[e])}catch(e){}}));process.emit=h;process.reallyExit=l;o.count-=1}function emit(e,t,r){if(o.emitted[e]){return}o.emitted[e]=true;o.emit(e,t,r)}var a={};n.forEach((function(e){a[e]=function listener(){var t=process.listeners(e);if(t.length===o.count){unload();emit("exit",null,e);emit("afterexit",null,e);process.kill(process.pid,e)}}}));e.exports.signals=function(){return n};e.exports.load=load;var u=false;function load(){if(u){return}u=true;o.count+=1;n=n.filter((function(e){try{process.on(e,a[e]);return true}catch(e){return false}}));process.emit=processEmit;process.reallyExit=processReallyExit}var l=process.reallyExit;function processReallyExit(e){process.exitCode=e||0;emit("exit",process.exitCode,null);emit("afterexit",process.exitCode,null);l.call(process,process.exitCode)}var h=process.emit;function processEmit(e,t){if(e==="exit"){if(t!==undefined){process.exitCode=t}var r=h.apply(this,arguments);emit("exit",process.exitCode,null);emit("afterexit",process.exitCode,null);return r}else{return h.apply(this,arguments)}}},3710:e=>{e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];if(process.platform!=="win32"){e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT")}if(process.platform==="linux"){e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}},9571:e=>{"use strict";const t="";const r=`${t}[`;const s="";const n={to(e,t){if(!t)return`${r}${e+1}G`;return`${r}${t+1};${e+1}H`},move(e,t){let s="";if(e<0)s+=`${r}${-e}D`;else if(e>0)s+=`${r}${e}C`;if(t<0)s+=`${r}${-t}A`;else if(t>0)s+=`${r}${t}B`;return s},up:(e=1)=>`${r}${e}A`,down:(e=1)=>`${r}${e}B`,forward:(e=1)=>`${r}${e}C`,backward:(e=1)=>`${r}${e}D`,nextLine:(e=1)=>`${r}E`.repeat(e),prevLine:(e=1)=>`${r}F`.repeat(e),left:`${r}G`,hide:`${r}?25l`,show:`${r}?25h`,save:`${t}7`,restore:`${t}8`};const i={up:(e=1)=>`${r}S`.repeat(e),down:(e=1)=>`${r}T`.repeat(e)};const o={screen:`${r}2J`,up:(e=1)=>`${r}1J`.repeat(e),down:(e=1)=>`${r}J`.repeat(e),line:`${r}2K`,lineEnd:`${r}K`,lineStart:`${r}1K`,lines(e){let t="";for(let r=0;r<e;r++)t+=this.line+(r<e-1?n.up():"");if(e)t+=n.left;return t}};e.exports={cursor:n,scroll:i,erase:o,beep:s}},6354:(e,t,r)=>{var s=r(421);var n=r(1576).StringDecoder;e.exports=split;function split(e,t,r){var i=new n;var o="";var a=r&&r.maxLength;var u=r&&r.trailing===false?false:true;if("function"===typeof e)t=e,e=null;if(!e)e=/\r?\n/;function emit(e,r){if(t){try{r=t(r)}catch(t){return e.emit("error",t)}if("undefined"!==typeof r)e.queue(r)}else e.queue(r)}function next(t,r){var s=((o!=null?o:"")+r).split(e);o=s.pop();if(a&&o.length>a)return t.emit("error",new Error("maximum buffer reached"));for(var n=0;n<s.length;n++){var i=s[n];emit(t,i)}}return s((function(e){next(this,i.write(e))}),(function(){if(i.end)next(this,i.end());if(u&&o!=null)emit(this,o);this.queue(null)}))}},5591:(e,t,r)=>{"use strict";const s=r(5063);e.exports=e=>typeof e==="string"?e.replace(s(),""):e},8566:(e,t,r)=>{var s={child:r(2081),crypto:r(6113),fs:r(7147),os:r(2037),path:r(1017),process:process,util:r(3837)};function Attempt(e,t){var r=s.process.platform;if(r==="darwin")return Mac(e,t);if(r==="linux")return Linux(e,t);if(r==="win32")return Windows(e,t);t(new Error("Platform not yet supported."))}function EscapeDoubleQuotes(e){if(typeof e!=="string")throw new Error("Expected a string.");return e.replace(/"/g,'\\"')}function Exec(){if(arguments.length<1||arguments.length>3){throw new Error("Wrong number of arguments.")}var e=arguments[0];var t={};var end=function(){};if(typeof e!=="string"){throw new Error("Command should be a string.")}if(arguments.length===2){if(s.util.isObject(arguments[1])){t=arguments[1]}else if(s.util.isFunction(arguments[1])){end=arguments[1]}else{throw new Error("Expected options or callback.")}}else if(arguments.length===3){if(s.util.isObject(arguments[1])){t=arguments[1]}else{throw new Error("Expected options to be an object.")}if(s.util.isFunction(arguments[2])){end=arguments[2]}else{throw new Error("Expected callback to be a function.")}}if(/^sudo/i.test(e)){return end(new Error('Command should not be prefixed with "sudo".'))}if(typeof t.name==="undefined"){var r=s.process.title;if(ValidName(r)){t.name=r}else{return end(new Error("process.title cannot be used as a valid name."))}}else if(!ValidName(t.name)){var n="";n+="options.name must be alphanumeric only ";n+="(spaces are allowed) and <= 70 characters.";return end(new Error(n))}if(typeof t.icns!=="undefined"){if(typeof t.icns!=="string"){return end(new Error("options.icns must be a string if provided."))}else if(t.icns.trim().length===0){return end(new Error("options.icns must not be empty if provided."))}}if(typeof t.env!=="undefined"){if(typeof t.env!=="object"){return end(new Error("options.env must be an object if provided."))}else if(Object.keys(t.env).length===0){return end(new Error("options.env must not be empty if provided."))}else{for(var i in t.env){var o=t.env[i];if(typeof i!=="string"||typeof o!=="string"){return end(new Error("options.env environment variables must be strings."))}if(!/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(i)){return end(new Error("options.env has an invalid environment variable name: "+JSON.stringify(i)))}if(/[\r\n]/.test(o)){return end(new Error("options.env has an invalid environment variable value: "+JSON.stringify(o)))}}}}var a=s.process.platform;if(a!=="darwin"&&a!=="linux"&&a!=="win32"){return end(new Error("Platform not yet supported."))}var u={command:e,options:t,uuid:undefined,path:undefined};Attempt(u,end)}function Linux(e,t){LinuxBinary(e,(function(r,n){if(r)return t(r);var u=[];u.push('cd "'+EscapeDoubleQuotes(s.process.cwd())+'";');for(var l in e.options.env){var h=e.options.env[l];u.push("export "+l+'="'+EscapeDoubleQuotes(h)+'";')}u.push('"'+EscapeDoubleQuotes(n)+'"');if(/kdesudo/i.test(n)){u.push("--comment",'"'+e.options.name+" wants to make changes. "+'Enter your password to allow this."');u.push("-d");u.push("--")}else if(/pkexec/i.test(n)){u.push("--disable-internal-agent")}var p="SUDOPROMPT\n";u.push('/bin/bash -c "echo '+EscapeDoubleQuotes(p.trim())+"; "+EscapeDoubleQuotes(e.command)+'"');u=u.join(" ");s.child.exec(u,{encoding:"utf-8",maxBuffer:a},(function(e,r,s){var n=r&&r.slice(0,p.length)===p;if(n)r=r.slice(p.length);if(e&&!n){if(/No authentication agent found/.test(s)){e.message=o}else{e.message=i}}t(e,r,s)}))}))}function LinuxBinary(e,t){var r=0;var n=["/usr/bin/kdesudo","/usr/bin/pkexec"];function test(){if(r===n.length){return t(new Error("Unable to find pkexec or kdesudo."))}var e=n[r++];s.fs.stat(e,(function(r){if(r){if(r.code==="ENOTDIR")return test();if(r.code==="ENOENT")return test();t(r)}else{t(undefined,e)}}))}test()}function Mac(e,t){var r=s.os.tmpdir();if(!r)return t(new Error("os.tmpdir() not defined."));var n=s.process.env.USER;if(!n)return t(new Error("env['USER'] not defined."));UUID(e,(function(n,i){if(n)return t(n);e.uuid=i;e.path=s.path.join(r,e.uuid,e.options.name+".app");function end(r,n,i){Remove(s.path.dirname(e.path),(function(e){if(r)return t(r);if(e)return t(e);t(undefined,n,i)}))}MacApplet(e,(function(t,r,s){if(t)return end(t,r,s);MacIcon(e,(function(t){if(t)return end(t);MacPropertyList(e,(function(t,r,s){if(t)return end(t,r,s);MacCommand(e,(function(t){if(t)return end(t);MacOpen(e,(function(t,r,s){if(t)return end(t,r,s);MacResult(e,end)}))}))}))}))}))}))}function MacApplet(e,t){var r=s.path.dirname(e.path);s.fs.mkdir(r,(function(i){if(i)return t(i);var o=s.path.join(r,"sudo-prompt-applet.zip");s.fs.writeFile(o,n,"base64",(function(r){if(r)return t(r);var n=[];n.push("/usr/bin/unzip");n.push("-o");n.push('"'+EscapeDoubleQuotes(o)+'"');n.push('-d "'+EscapeDoubleQuotes(e.path)+'"');n=n.join(" ");s.child.exec(n,{encoding:"utf-8"},t)}))}))}function MacCommand(e,t){var r=s.path.join(e.path,"Contents","MacOS","sudo-prompt-command");var n=[];n.push('cd "'+EscapeDoubleQuotes(s.process.cwd())+'"');for(var i in e.options.env){var o=e.options.env[i];n.push("export "+i+'="'+EscapeDoubleQuotes(o)+'"')}n.push(e.command);n=n.join("\n");s.fs.writeFile(r,n,"utf-8",t)}function MacIcon(e,t){if(!e.options.icns)return t();s.fs.readFile(e.options.icns,(function(r,n){if(r)return t(r);var i=s.path.join(e.path,"Contents","Resources","applet.icns");s.fs.writeFile(i,n,t)}))}function MacOpen(e,t){var r=s.path.join(e.path,"Contents","MacOS","applet");var n={cwd:s.path.dirname(r),encoding:"utf-8"};s.child.exec("./"+s.path.basename(r),n,t)}function MacPropertyList(e,t){var r=s.path.join(e.path,"Contents","Info.plist");var n=EscapeDoubleQuotes(r);var i=EscapeDoubleQuotes("CFBundleName");var o=e.options.name+" Password Prompt";if(/'/.test(o)){return t(new Error("Value should not contain single quotes."))}var a=[];a.push("/usr/bin/defaults");a.push("write");a.push('"'+n+'"');a.push('"'+i+'"');a.push("'"+o+"'");a=a.join(" ");s.child.exec(a,{encoding:"utf-8"},t)}function MacResult(e,t){var r=s.path.join(e.path,"Contents","MacOS");s.fs.readFile(s.path.join(r,"code"),"utf-8",(function(n,o){if(n){if(n.code==="ENOENT")return t(new Error(i));t(n)}else{s.fs.readFile(s.path.join(r,"stdout"),"utf-8",(function(n,i){if(n)return t(n);s.fs.readFile(s.path.join(r,"stderr"),"utf-8",(function(r,s){if(r)return t(r);o=parseInt(o.trim(),10);if(o===0){t(undefined,i,s)}else{r=new Error("Command failed: "+e.command+"\n"+s);r.code=o;t(r,i,s)}}))}))}}))}function Remove(e,t){if(typeof e!=="string"||!e.trim()){return t(new Error("Argument path not defined."))}var r=[];if(s.process.platform==="win32"){if(/"/.test(e)){return t(new Error("Argument path cannot contain double-quotes."))}r.push('rmdir /s /q "'+e+'"')}else{r.push("/bin/rm");r.push("-rf");r.push('"'+EscapeDoubleQuotes(s.path.normalize(e))+'"')}r=r.join(" ");s.child.exec(r,{encoding:"utf-8"},t)}function UUID(e,t){s.crypto.randomBytes(256,(function(r,n){if(r)n=Date.now()+""+Math.random();var i=s.crypto.createHash("SHA256");i.update("sudo-prompt-3");i.update(e.options.name);i.update(e.command);i.update(n);var o=i.digest("hex").slice(-32);if(!o||typeof o!=="string"||o.length!==32){return t(new Error("Expected a valid UUID."))}t(undefined,o)}))}function ValidName(e){if(!/^[a-z0-9 ]+$/i.test(e))return false;if(e.trim().length===0)return false;if(e.length>70)return false;return true}function Windows(e,t){var r=s.os.tmpdir();if(!r)return t(new Error("os.tmpdir() not defined."));UUID(e,(function(n,i){if(n)return t(n);e.uuid=i;e.path=s.path.join(r,e.uuid);if(/"/.test(e.path)){return t(new Error("instance.path cannot contain double-quotes."))}e.pathElevate=s.path.join(e.path,"elevate.vbs");e.pathExecute=s.path.join(e.path,"execute.bat");e.pathCommand=s.path.join(e.path,"command.bat");e.pathStdout=s.path.join(e.path,"stdout");e.pathStderr=s.path.join(e.path,"stderr");e.pathStatus=s.path.join(e.path,"status");s.fs.mkdir(e.path,(function(r){if(r)return t(r);function end(r,s,n){Remove(e.path,(function(e){if(r)return t(r);if(e)return t(e);t(undefined,s,n)}))}WindowsWriteExecuteScript(e,(function(t){if(t)return end(t);WindowsWriteCommandScript(e,(function(t){if(t)return end(t);WindowsElevate(e,(function(t,r,s){if(t)return end(t,r,s);WindowsWaitForStatus(e,(function(t){if(t)return end(t);WindowsResult(e,end)}))}))}))}))}))}))}function WindowsElevate(e,t){var r=[];r.push("powershell.exe");r.push("Start-Process");r.push("-FilePath");r.push("\"'"+e.pathExecute.replace(/'/g,"`'")+"'\"");r.push("-WindowStyle hidden");r.push("-Verb runAs");r=r.join(" ");var n=s.child.exec(r,{encoding:"utf-8"},(function(e,r,s){if(e)return t(new Error(i),r,s);t()}));n.stdin.end()}function WindowsResult(e,t){s.fs.readFile(e.pathStatus,"utf-8",(function(r,n){if(r)return t(r);s.fs.readFile(e.pathStdout,"utf-8",(function(r,i){if(r)return t(r);s.fs.readFile(e.pathStderr,"utf-8",(function(r,s){if(r)return t(r);n=parseInt(n.trim(),10);if(n===0){t(undefined,i,s)}else{r=new Error("Command failed: "+e.command+"\r\n"+s);r.code=n;t(r,i,s)}}))}))}))}function WindowsWaitForStatus(e,t){s.fs.stat(e.pathStatus,(function(r,n){if(r&&r.code==="ENOENT"||n.size<2){setTimeout((function(){s.fs.stat(e.pathStdout,(function(r){if(r)return t(new Error(i));WindowsWaitForStatus(e,t)}))}),1e3)}else if(r){t(r)}else{t()}}))}function WindowsWriteCommandScript(e,t){var r=s.process.cwd();if(/"/.test(r)){return t(new Error("process.cwd() cannot contain double-quotes."))}var n=[];n.push("@echo off");n.push("chcp 65001>nul");n.push('cd /d "'+r+'"');for(var i in e.options.env){var o=e.options.env[i];n.push("set "+i+"="+o.replace(/([<>\\|&^])/g,"^$1"))}n.push(e.command);n=n.join("\r\n");s.fs.writeFile(e.pathCommand,n,"utf-8",t)}function WindowsWriteElevateScript(e,t){}function WindowsWriteExecuteScript(e,t){var r=[];r.push("@echo off");r.push('call "'+e.pathCommand+'"'+' > "'+e.pathStdout+'" 2> "'+e.pathStderr+'"');r.push('(echo %ERRORLEVEL%) > "'+e.pathStatus+'"');r=r.join("\r\n");s.fs.writeFile(e.pathExecute,r,"utf-8",t)}e.exports.exec=Exec;var n="UEsDBAoAAAAAAO1YcEcAAAAAAAAAAAAAAAAJABwAQ29udGVudHMvVVQJAAPNnElWLZEQV3V4CwABBPUBAAAEFAAAAFBLAwQUAAAACACgeXBHlHaGqKEBAAC+AwAAEwAcAENvbnRlbnRzL0luZm8ucGxpc3RVVAkAA1zWSVYtkRBXdXgLAAEE9QEAAAQUAAAAfZNRb5swFIWfl1/BeA9OpSmqJkqVBCJFop1VyKQ9Ta59S6wa27NNCfv1M0naJWTsEXO+c8+9vo7v97UI3sBYruRdeBPNwgAkVYzL6i7cluvpbXifTOLP6bdV+QNngRbcugBvl/lmFYRThBZaC0AoLdMA55uiDLwHQtljGIQ75/RXhNq2jUiviqiqe6FF2CgNxnW5N5t6IGKOhb7M0f0ijj9lnLpk8il+hS5ZrZeNZAIWQqj2ge+B5YoSwX8T5xEbo17ktc40gIZQCm8glK5BuieovP5Dbp3xHSeZrHyCXYxO3wM+2wNtHHkWMAQP/bkxbkOVXPMxKuK0Dz6CMh+Wv3AwQ9gPM7INU1NtVK3Ha8sXlfoB+m6J6b4fRzv0mkezMf6R1Fe5MbG2VYYF+L+lMaGvpIKy01cOC4zzMazYKeNOQYuDYkjfjMcteCWJa8w/Zi2ugubFA5e8buqisw7qU81ltzB0xx3QC5/TFh7J/e385/zL+7+/wWbR/LwIOl/dvHiCXw03YFfEPJ9dwsWu5sV2kwnod3QoeLeL0eGdJJM/UEsDBAoAAAAAAHSBjkgAAAAAAAAAAAAAAAAPABwAQ29udGVudHMvTWFjT1MvVVQJAAMbpQ9XLZEQV3V4CwABBPUBAAAEFAAAAFBLAwQUAAAACABVHBdH7Dk4KTIIAADIYQAAFQAcAENvbnRlbnRzL01hY09TL2FwcGxldFVUCQADMiPZVVOlD1d1eAsAAQT1AQAABBQAAADtnG9sHEcVwGfti7M1/rONLNVtXHqpzsipis+pHOSWFOzEm25at3XrJI2ozbK+W/suuds79vaSuCKSpaOIxRy1+NSPRPAhlWj7AVRaQCWpTRz+CEo+RSKCCho4K67kVhUyAeV4b3fWt17fXZqKFgHvp8zO3/dmdmfPmtl5L7+8/uPXGWMNELZCaGRMgmjHIlxaBCibdcoGsewCljGCIAiCIAiCIAiCIP7r+M21d67zjb/zEaAdwr1bGHuWMQH2/2wAgqqODj0kf0F+8nGfoFRbJ8p9U0C5g/KRgwEZqZLGfrfwwJx+LP2kVWkelD9zJ2NfBr1nWt2xrhNisxWZ3Ex6MpNSc1Z+soqOO+5i7JMYt7vj9BC5jiZXBwirCT2V1c0qOgZAxwMYt9cbRyxnmUljusa9mKBjGON2tgG/PlXNGyeSRlxNGlOZKjpeBR0KxsFx+MB7VJy5GB46OOSrCLPKfEjrH3/gFry+4zOpuH8sm+VF5srW6ltVjZQ3HVnL3KRDDLsflMSADpyDyjuR0urp6AAdHRgHdOD9iOs6Ypl0OmPUupeecOW19OsQAmn3tzBy4LFH5OED3jz0MbYouM8D460BOdTXCaEF6tsgLkF8GeJPQBj16Rb4PTf5xl2NH4J8a5Vy1N3F3OcZzefMaCo5GeVTuJ2P4cUf/aH5qbbP73/utpfeevdbLzwfYfy+Q80woGan/1E+ljo/703g77IaOJY479t5rqFLDag9OjaTs/R0dCQ5aWrmTHS/qaX1ExnzWC66L2PqY7p5PBnTc71TXnn0sG7mkhkjFx3a0IL30e/rQxB+EXL68J4BBLe73r298DySk5tlGPtJY1BmOhZTc727PBH2Ke+ZhF35nTyP80oQBEEQBPFRcJTZVwpvrxZWpLmJkN0VKT4q2iORUGFBOPfnBuFX9nhELOG67f1D9pWxpw4XVrrmTklz+ZY5Wfwurm/t3ffi9cE+uM41vYbbj2fP5kNXt9sXiopwVRj6xhPlr160mttfuVi4Fs2vXv2rfc5u7UeZfxQ+y4pPh/JrpyUUBjmrofzmadGXKf0eui7KK/ZwJLQUiuRAe+mLUFQ+tFKUV3npd7AU9ytz8iqIiXYoUnoBsqdxDbXk3CXcRov9lYhoW5EQjBxb4NoSY9iQsvn5+QSuusrduAybL3eHIIIbLqyIS9CHlY3loB8rldVKuLfyOsE1+a6zhUVxYsFp3Amqz8tr7Lz8dza1JF8TmC3/syivYVtcfxcWOycWQDvuLcrdnc61y7mGnWsErgmsXDbK5TKkscnypJvGhsuH3TQ2X37YTaPQ8ucw7W6t1LR2TFfjekqb0SGTiedTOmz0klZSSyWf0U01pqVSufXGmThsjs20OpU3Yrjuxbnu4u+GP8b1LO6PcX2L4Q6+v8Q07u9aQFLy71Ckt54TIfjfNdzfDkMYhTAOIXHXh39vCYIgCIIgCIIgCIL4z3Nm+84/Ci1Nn8b0ryHsgbBX1rbgOXD7LZJzNtrC0/gFqYOn8csQ/GONguQchPXzcvy+9CBzvk84HxkO+tJH3bRz5Fb0pb/nS3/fl/6BL/2aL43faLzz3Wbmju8W5p6pttaoR9THjgyZ0zEeH2eqqmbNzLShpXVIpxOqflKP5S1dTehaXDeZqhvHk2bGYOo+LZXal0lnM4ZuWMPJXFazYgmmPp7VjWF9SsunrPVa1HpMn0lPm2r8hGZO3aea+nQyZ+mmmtNjFp5i4oG0lTChE+eDj2pm8lbSgDFoln4yCRp00zQyEDmZtBZLbGxnanHzgWh092d29e/uv+/f+DIQBEEQBEEQBEEQ/7P81rX/FxoZm/Xs/5UmtP8PO/W3M9fGvKoPAEfYXLQJ1HOpmk+AJx80OOb5m/URGG9z9c378rVs9F15tPXP1dS3wvVtC+Q9/H4DFX21fQcY9zvo9eXrj6++D0Af1zfqy9eyx3f16QnVMayufr+zXN+sL99YRx/O69er+RdIgXkNxJv9DfBTDIxLPa6Zudr6enz5euO6ke9Bj7TRzr0noK+JbczfyA9hgOvr9OX98t57XNFX3ydhlOsL+2T8+oK/ucrvNOCfEHbbXhAqeebLB/0V7oYp7+Pt8PsZWnl1+urRpAn7SUCcYBX/hkth95kd2cFYllX3bxB4+xCrzcCO6v4PbXzo1fwbEM/H4ds/f/nCgZH+8k+j0vNPv7Jlz7qPQ1PFx+FVPoZ76ozj42K87YP9/cT7xuf9UfpSeP0MsJvzp0A8/4g3w+78ef4R+F4QBEEQBPH/w1Gm2FeUwturytwpUSnmJfta4Q3h3J8aFeE9xf7d1ZBSOCcqhftZ/m+YKuG6wV4qaQzdGED0Z2jJ/zpa9ZcegjIF7fkVaIBrt11nJxYOOepXpPPyKjsvvytOLcnvCWxJfh87V+xTa0rx1Kpj0a8UFqWJhXL3fgHt9xXn+rCz7Bop3rkTEkNj5e7bIZ7HNRZb/ku5XE6g58HyZUzdj6mLjh1/Pbt7XMt5dvfvtLl1Fbv7BtbhrtyEPW6V038H1yE88yQTTkqC1LJVnIeaCNe7dr3sEPEe6lCb9LWGfa3efvNG8pe5fF8NeW8g3n7jCI+/xOOEVH19KvF9oudHH2n/YOtYgiAIgiAIgiAIgiA+fm69mx3aO8bYtkHn/xlwDq8nkwaavz9h9swzc+DWwRrm71A5CJVVjeChTtk26Fqwu0fxQjUL+9vqHVV/KC53OUd+bJxVfBkw7/gzCO5pr3dOK/g+WUQDeZlV/A2QRwJ5THjn1/xcd9BfhlT1KbgpVwLn+W2amGr2//8CUEsDBBQAAAAIAAVHj0ga7FYjfQEAAKoCAAAhABwAQ29udGVudHMvTWFjT1Mvc3Vkby1wcm9tcHQtc2NyaXB0VVQJAAOJkBBXipAQV3V4CwABBPUBAAAEFAAAAI1SO08cMRDu91cMHIKGxUB5xSGEUqTlFKWMvPYca+EXnjGXy6/PeNcg0qVay+PvObs5U5OLatI0DxvYIwNVm4BdQGIdMhxSkauJ8K1i7FOjvSdwB2A+/WJnXpEJdEGwjvTk0W6HhTW8WldgzKDedVF2Ug2tLn7svz3DDpTFdxWr93C/u7wbVKWyoDhVM/8XZAOPOXvcm+IyXxGcizeaUca0XJ1D0CfQnlEysE2VwbuII0br4gvdCMF37m9IoC39+oxTO2EpS8oZJdtRS0aIKY5/sCQoyLVEMMki6Ghl0BGN9SeuICkPIctXDHDDSB9oGEQi1yZWUAda8EZnIcR/eIOOVao+9TrbkpYFjLmkkHk0KYSGvdt12/e71cP6Hs2c4OJBemtsYusplVX+GLHQ7DKkQ098/ZF38dLEpRCeNUMlMW90BIseeQkWtuu2qKmIyDHCuqFuo1N11Ud/1Cf6CHb7Sfxld2ATklQoUGEDActfZ5326WU74G/HcDv8BVBLAwQKAAAAAADtWHBHqiAGewgAAAAIAAAAEAAcAENvbnRlbnRzL1BrZ0luZm9VVAkAA82cSVYqkRBXdXgLAAEE9QEAAAQUAAAAQVBQTGFwbHRQSwMECgAAAAAAm3lwRwAAAAAAAAAAAAAAABMAHABDb250ZW50cy9SZXNvdXJjZXMvVVQJAANW1klWLZEQV3V4CwABBPUBAAAEFAAAAFBLAwQUAAAACACAeXBHfrnysfYGAAAf3AAAHgAcAENvbnRlbnRzL1Jlc291cmNlcy9hcHBsZXQuaWNuc1VUCQADH9ZJVnGlD1d1eAsAAQT1AQAABBQAAADt3Xk81Hkcx/Hvb5yVo5bGsVlKbcpRRqFlGZGS5JikRBIdI0OZttMZloqiYwrVjD1UqJaUokTRubG72bZVjqR1VZNjp2XEGo9H+9gt+9h/9tHx8H7N4/fw5MHjYeaPz+P7+P7x/bL9griEPNBm+001J0S+ZbvL/NmKwzWHE0IUHebYuRFCEckjL9v/xSvk2EpCpBXZtrYuDra2Oi4hwSvZgSsIMU9MdPdePcZd1aqQu0p3fDkrcFrs+mPWihMU9y6clp5XEFFdbRrEczCtGtfkL3pWfvBGublJ4ct051kuocYtaaqll/IjdfR+V75vlTdl//AJVZU6elZ5f0S7NO3MaE2xMElhF+TUrHgW2nFYeGTrs/OrhDJN5zMX8ZJVKXrqSUM1Rj03bnf85/pJMXECNdl0D1ctfe/j82imziM2nllSa3t5q8+vP1f38k/k22uN1lmnvfz0b8dGxO+mnh91v7WB2tKdrG3d4vmJaHlTvjGzdMqWcw/9frnCtQpPZK9sMKi/Ey/jzgqIPzBy9/dlf9griI2/u+sjcApozWx6/NXytC+qBTlrhb69fE7J6tgOzpWjFSl8qxihr5dYf/qExoeupY6Ze/j2PfL1azhhZ8fU3eelJY+ylk16UJN6KmOU0M4r+75cZhH/mxNndowNb4wx7TCoN4yvMGu8ySq5l5W5t+xQyYbS/Ome7e0W0sXbC5aktl0LEXNYR9obH7dMT721dbNdT/eFzXNEYSH8GU+bQ5s6YniGcj3fHtgXPbo0Oj4i3d5G1Fjfm/Ng7kgpjQDNxw4RRnu+Vloy5ZE3J6OpwlFBzaxS25He2h3lJuizO70zJPLUYtks14RE5yrD8y2tXa5l5Wqh/NBY06yoiCLF08Nk9A5Ojbs43GmR1Ch/PaZsLf3e6uPRSrIM1ROqGjt80leqfdxYbNn+WV7K7ZKiy/t6r1/3ie46V5432T/Oahs9V7NnVzb9zoq2rFgvPxXrcAMzmvWnGjof/RpdsZThIEpex6DGbd5h6STaOyZXxV/YfW9u4KyllmZ3X15IMHHLSJtVPSOvULCsz2TyPC/WL9kGSme/1L01SSzjfbHnqk+OV7OBmevZeo3DBR7lXT5drT0MkX5PwDd1EQ0ebfkh1zy/L8ydd+VJ4CLuRndNjuwj+vMfU8q2l2l1rGtr8FC2D+fdSGk81eltuTjYSMk++4BMd0DXQo35iXbZndGdcXkGFyeG6b28evF22M2w22HlYSXetGSLW4cfFT00WqvN9bkqCujQ9KzdSt+snr+qmbcme+5Y3cDRn9BDLps+dPVltE9UkPeb6XovineiVUznTznyuZaSn/ZvR8VeRUYLqe3iHFqnU6+7+4LmtfsmaS0MdjIvslFJGG/rn7DPdMGLcx4d6eP2Oz92Y49kWbBUjudU2ijHnc7YIODQxD1aPx8PynVr+cmvJoy2+M5nQa2Kt0dvdPxp73LNU6aTeaktTfHH1L+8Pm/XalZcFcfzYxlhTefuzjRGobLKEqPZh8QKxUXWbU/ERvW78ghvTGTUNd0g9YqbcjUy5h0xVbn3S7SS54SOqKt88UR0qZuxKfxlZfODUm52o2HkGTOLw5dqhevvWjH7ssiqxAhKwA91d1nWG9w/GJIc7GwWbKKe/mAsGRqXBb87P10jH8/0LY6kpGQV1KcuAwAAeCt4LiVFWRJKs4DJ6p9GxGHWfLuTM5dt61/pzCCE7vLmSodGJM/ASqdzU2U3VjpY6WClg5XOICudUaI3VjocuWCsdAAAAAAAAAAAAAAAAD5o1Gmr054TSoqWxPvnfrLxVEIc29/cT5YmkmdgPzlCSz8a+8nYT8Z+MvaTB9lPZpJX+8lRktFyRdDF0m6IdcF2MgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC8ddD8G5oJkUuQnAXwnvxLAAAAADDkEFURRckVE6rIv+Tb1078MiZEetubJ34RHckzcOIXd8uWTpz4hRO/cOIXTvwa5MQvoidZ5S8a9h8nfl1QVhipQ6jyyWeuvTaBGP3D5fwgE4gpeQYmUCZ7XQ0mECYQJhAm0GATyOfVmYOU4sAdNi+cOUpm/9cdNv2Di8kkFN3mYOtrg8sE14xicGFwYXDhmlEAAD5w/Os1o8bTcM0oVjpY6WClg2tGAQAAAAAAAAAAAAAAgL/wb9eMBpow+r817yN/fwnJf33P5g78nWofEZNXD3u95GdSkh3o135/aL2i3vl/gHf/7t59oDlnDSHS8gQhNGQL8uWs6P+iwPYLDuIOzARqyM+E9QOfA3PIfw4IIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhND70J9QSwMEFAAAAAgA7VhwR/dYplZAAAAAagEAAB4AHABDb250ZW50cy9SZXNvdXJjZXMvYXBwbGV0LnJzcmNVVAkAA82cSVZTpQ9XdXgLAAEE9QEAAAQUAAAAY2BgZGBgYFQBEiDsxjDygJQDPlkmEIEaRpJAQg8kLAMML8bi5OIqIFuouKA4A0jLMTD8/w+S5AdrB7PlBIAEAFBLAwQKAAAAAADtWHBHAAAAAAAAAAAAAAAAJAAcAENvbnRlbnRzL1Jlc291cmNlcy9kZXNjcmlwdGlvbi5ydGZkL1VUCQADzZxJVi2REFd1eAsAAQT1AQAABBQAAABQSwMEFAAAAAgA7VhwRzPLNU9TAAAAZgAAACsAHABDb250ZW50cy9SZXNvdXJjZXMvZGVzY3JpcHRpb24ucnRmZC9UWFQucnRmVVQJAAPNnElWU6UPV3V4CwABBPUBAAAEFAAAACWJOw6AIBAFe08DCBVX2QbWhZgQ1vCpCHcXtHkzkzegtCDB5Xp/g0+UyihARnb70kL/UbvffYpjQODcmk9zKXListxCoUsZA7EQ5S0+dVq085gvUEsDBAoAAAAAAIeBjkgAAAAAAAAAAAAAAAAbABwAQ29udGVudHMvUmVzb3VyY2VzL1NjcmlwdHMvVVQJAAM9pQ9XLZEQV3V4CwABBPUBAAAEFAAAAFBLAwQUAAAACAAJgI5ICl5liTUBAADMAQAAJAAcAENvbnRlbnRzL1Jlc291cmNlcy9TY3JpcHRzL21haW4uc2NwdFVUCQADcaIPV1OlD1d1eAsAAQT1AQAABBQAAAB9UMtOAkEQrNldd9dhH3Dz6NGYiPIJHjTxLCZeF9iDcXEJC0RvfoI/4sEfIvoHPEQEhbIHvOok01U16emu7vOkaF2dXu7XqrUTcyMATkxCwYKthCAUbmciAQ8O11yFcGBfbF/4jR24WmCvWjwUeXqfNutn13XyEeYYHkqKam+kghdJGfUCvwIfB6jiGAX6aCHHETroCrYFe6IKNEXfGOXChc0v7HKpBRzdSFrtELvbumKVC80F/FIjzwe9bj91uZRuXJuwAiLjNi7DlsxPaJSUAMrCFOeac3GfpINennQ6d/0sA4z7JxzKiVCCV+YHAs74LuuIONUi//4RIoC63czrIbYQS3PFicWJcTMTv1JHmocmROLJ45gjzfHvXJqjf7ZZ4RT+61uaBbDipGh2ZanBcjh8/gFQSwECHgMKAAAAAADtWHBHAAAAAAAAAAAAAAAACQAYAAAAAAAAABAA7UEAAAAAQ29udGVudHMvVVQFAAPNnElWdXgLAAEE9QEAAAQUAAAAUEsBAh4DFAAAAAgAoHlwR5R2hqihAQAAvgMAABMAGAAAAAAAAQAAAKSBQwAAAENvbnRlbnRzL0luZm8ucGxpc3RVVAUAA1zWSVZ1eAsAAQT1AQAABBQAAABQSwECHgMKAAAAAAB0gY5IAAAAAAAAAAAAAAAADwAYAAAAAAAAABAA7UExAgAAQ29udGVudHMvTWFjT1MvVVQFAAMbpQ9XdXgLAAEE9QEAAAQUAAAAUEsBAh4DFAAAAAgAVRwXR+w5OCkyCAAAyGEAABUAGAAAAAAAAAAAAO2BegIAAENvbnRlbnRzL01hY09TL2FwcGxldFVUBQADMiPZVXV4CwABBPUBAAAEFAAAAFBLAQIeAxQAAAAIAAVHj0ga7FYjfQEAAKoCAAAhABgAAAAAAAEAAADtgfsKAABDb250ZW50cy9NYWNPUy9zdWRvLXByb21wdC1zY3JpcHRVVAUAA4mQEFd1eAsAAQT1AQAABBQAAABQSwECHgMKAAAAAADtWHBHqiAGewgAAAAIAAAAEAAYAAAAAAABAAAApIHTDAAAQ29udGVudHMvUGtnSW5mb1VUBQADzZxJVnV4CwABBPUBAAAEFAAAAFBLAQIeAwoAAAAAAJt5cEcAAAAAAAAAAAAAAAATABgAAAAAAAAAEADtQSUNAABDb250ZW50cy9SZXNvdXJjZXMvVVQFAANW1klWdXgLAAEE9QEAAAQUAAAAUEsBAh4DFAAAAAgAgHlwR3658rH2BgAAH9wAAB4AGAAAAAAAAAAAAKSBcg0AAENvbnRlbnRzL1Jlc291cmNlcy9hcHBsZXQuaWNuc1VUBQADH9ZJVnV4CwABBPUBAAAEFAAAAFBLAQIeAxQAAAAIAO1YcEf3WKZWQAAAAGoBAAAeABgAAAAAAAAAAACkgcAUAABDb250ZW50cy9SZXNvdXJjZXMvYXBwbGV0LnJzcmNVVAUAA82cSVZ1eAsAAQT1AQAABBQAAABQSwECHgMKAAAAAADtWHBHAAAAAAAAAAAAAAAAJAAYAAAAAAAAABAA7UFYFQAAQ29udGVudHMvUmVzb3VyY2VzL2Rlc2NyaXB0aW9uLnJ0ZmQvVVQFAAPNnElWdXgLAAEE9QEAAAQUAAAAUEsBAh4DFAAAAAgA7VhwRzPLNU9TAAAAZgAAACsAGAAAAAAAAQAAAKSBthUAAENvbnRlbnRzL1Jlc291cmNlcy9kZXNjcmlwdGlvbi5ydGZkL1RYVC5ydGZVVAUAA82cSVZ1eAsAAQT1AQAABBQAAABQSwECHgMKAAAAAACHgY5IAAAAAAAAAAAAAAAAGwAYAAAAAAAAABAA7UFuFgAAQ29udGVudHMvUmVzb3VyY2VzL1NjcmlwdHMvVVQFAAM9pQ9XdXgLAAEE9QEAAAQUAAAAUEsBAh4DFAAAAAgACYCOSApeZYk1AQAAzAEAACQAGAAAAAAAAAAAAKSBwxYAAENvbnRlbnRzL1Jlc291cmNlcy9TY3JpcHRzL21haW4uc2NwdFVUBQADcaIPV3V4CwABBPUBAAAEFAAAAFBLBQYAAAAADQANANwEAABWGAAAAAA=";var i="User did not grant permission.";var o="No polkit authentication agent found.";var a=134217728},9318:(e,t,r)=>{"use strict";const s=r(2037);const n=r(6224);const i=r(1621);const{env:o}=process;let a;if(i("no-color")||i("no-colors")||i("color=false")||i("color=never")){a=0}else if(i("color")||i("colors")||i("color=true")||i("color=always")){a=1}if("FORCE_COLOR"in o){if(o.FORCE_COLOR==="true"){a=1}else if(o.FORCE_COLOR==="false"){a=0}else{a=o.FORCE_COLOR.length===0?1:Math.min(parseInt(o.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e,t){if(a===0){return 0}if(i("color=16m")||i("color=full")||i("color=truecolor")){return 3}if(i("color=256")){return 2}if(e&&!t&&a===undefined){return 0}const r=a||0;if(o.TERM==="dumb"){return r}if(process.platform==="win32"){const e=s.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in o){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in o))||o.CI_NAME==="codeship"){return 1}return r}if("TEAMCITY_VERSION"in o){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(o.TEAMCITY_VERSION)?1:0}if("GITHUB_ACTIONS"in o){return 1}if(o.COLORTERM==="truecolor"){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}}if(/-256(color)?$/i.test(o.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(o.TERM)){return 1}if("COLORTERM"in o){return 1}return r}function getSupportLevel(e){const t=supportsColor(e,e&&e.isTTY);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,n.isatty(1))),stderr:translateLevel(supportsColor(true,n.isatty(2)))}},8824:(e,t,r)=>{"use strict";const s=r(9318);const n=r(1621);function parseVersion(e){if(/^\d{3,4}$/.test(e)){const t=/(\d{1,2})(\d{2})/.exec(e);return{major:0,minor:parseInt(t[1],10),patch:parseInt(t[2],10)}}const t=(e||"").split(".").map((e=>parseInt(e,10)));return{major:t[0],minor:t[1],patch:t[2]}}function supportsHyperlink(e){const{env:t}=process;if("FORCE_HYPERLINK"in t){return!(t.FORCE_HYPERLINK.length>0&&parseInt(t.FORCE_HYPERLINK,10)===0)}if(n("no-hyperlink")||n("no-hyperlinks")||n("hyperlink=false")||n("hyperlink=never")){return false}if(n("hyperlink=true")||n("hyperlink=always")){return true}if(!s.supportsColor(e)){return false}if(e&&!e.isTTY){return false}if(process.platform==="win32"){return false}if("CI"in t){return false}if("TEAMCITY_VERSION"in t){return false}if("TERM_PROGRAM"in t){const e=parseVersion(t.TERM_PROGRAM_VERSION);switch(t.TERM_PROGRAM){case"iTerm.app":if(e.major===3){return e.minor>=1}return e.major>3}}if("VTE_VERSION"in t){if(t.VTE_VERSION==="0.50.0"){return false}const e=parseVersion(t.VTE_VERSION);return e.major>0||e.minor>=50}return false}e.exports={supportsHyperlink:supportsHyperlink,stdout:supportsHyperlink(process.stdout),stderr:supportsHyperlink(process.stderr)}},4674:(e,t,r)=>{"use strict";t.c=t.create=r(4016);t.r=t.replace=r(5923);t.t=t.list=r(1525);t.u=t.update=r(407);t.x=t.extract=r(5317);t.Pack=r(7900);t.Unpack=r(7628);t.Parse=r(8917);t.ReadEntry=r(7456);t.WriteEntry=r(5450);t.Header=r(6043);t.Pax=r(7996);t.types=r(4173)},4016:(e,t,r)=>{"use strict";const s=r(5274);const n=r(7900);const i=r(7147);const o=r(7714);const a=r(1525);const u=r(1017);const l=e.exports=(e,t,r)=>{if(typeof t==="function")r=t;if(Array.isArray(e))t=e,e={};if(!t||!Array.isArray(t)||!t.length)throw new TypeError("no files or directories specified");t=Array.from(t);const n=s(e);if(n.sync&&typeof r==="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r==="function")throw new TypeError("callback only supported with file option");return n.file&&n.sync?createFileSync(n,t):n.file?createFile(n,t,r):n.sync?createSync(n,t):create(n,t)};const createFileSync=(e,t)=>{const r=new n.Sync(e);const s=new o.WriteStreamSync(e.file,{mode:e.mode||438});r.pipe(s);addFilesSync(r,t)};const createFile=(e,t,r)=>{const s=new n(e);const i=new o.WriteStream(e.file,{mode:e.mode||438});s.pipe(i);const a=new Promise(((e,t)=>{i.on("error",t);i.on("close",e);s.on("error",t)}));addFilesAsync(s,t);return r?a.then(r,r):a};const addFilesSync=(e,t)=>{t.forEach((t=>{if(t.charAt(0)==="@")a({file:u.resolve(e.cwd,t.substr(1)),sync:true,noResume:true,onentry:t=>e.add(t)});else e.add(t)}));e.end()};const addFilesAsync=(e,t)=>{while(t.length){const r=t.shift();if(r.charAt(0)==="@")return a({file:u.resolve(e.cwd,r.substr(1)),noResume:true,onentry:t=>e.add(t)}).then((r=>addFilesAsync(e,t)));else e.add(r)}e.end()};const createSync=(e,t)=>{const r=new n.Sync(e);addFilesSync(r,t);return r};const create=(e,t)=>{const r=new n(e);addFilesAsync(r,t);return r}},5317:(e,t,r)=>{"use strict";const s=r(5274);const n=r(7628);const i=r(7147);const o=r(7714);const a=r(1017);const u=e.exports=(e,t,r)=>{if(typeof e==="function")r=e,t=null,e={};else if(Array.isArray(e))t=e,e={};if(typeof t==="function")r=t,t=null;if(!t)t=[];else t=Array.from(t);const n=s(e);if(n.sync&&typeof r==="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r==="function")throw new TypeError("callback only supported with file option");if(t.length)filesFilter(n,t);return n.file&&n.sync?extractFileSync(n):n.file?extractFile(n,r):n.sync?extractSync(n):extract(n)};const filesFilter=(e,t)=>{const r=new Map(t.map((e=>[e.replace(/\/+$/,""),true])));const s=e.filter;const mapHas=(e,t)=>{const s=t||a.parse(e).root||".";const n=e===s?false:r.has(e)?r.get(e):mapHas(a.dirname(e),s);r.set(e,n);return n};e.filter=s?(e,t)=>s(e,t)&&mapHas(e.replace(/\/+$/,"")):e=>mapHas(e.replace(/\/+$/,""))};const extractFileSync=e=>{const t=new n.Sync(e);const r=e.file;let s=true;let a;const u=i.statSync(r);const l=e.maxReadSize||16*1024*1024;const h=new o.ReadStreamSync(r,{readSize:l,size:u.size});h.pipe(t)};const extractFile=(e,t)=>{const r=new n(e);const s=e.maxReadSize||16*1024*1024;const a=e.file;const u=new Promise(((e,t)=>{r.on("error",t);r.on("close",e);i.stat(a,((e,n)=>{if(e)t(e);else{const e=new o.ReadStream(a,{readSize:s,size:n.size});e.on("error",t);e.pipe(r)}}))}));return t?u.then(t,t):u};const extractSync=e=>new n.Sync(e);const extract=e=>new n(e)},1172:(e,t,r)=>{const s=process.env.__FAKE_PLATFORM__||process.platform;const n=s==="win32";const i=global.__FAKE_TESTING_FS__||r(7147);const{O_CREAT:o,O_TRUNC:a,O_WRONLY:u,UV_FS_O_FILEMAP:l=0}=i.constants;const h=n&&!!l;const p=512*1024;const d=l|a|o|u;e.exports=!h?()=>"w":e=>e<p?d:"w"},6043:(e,t,r)=>{"use strict";const s=r(4173);const n=r(1017).posix;const i=r(2370);const o=Symbol("slurp");const a=Symbol("type");class Header{constructor(e,t,r,s){this.cksumValid=false;this.needPax=false;this.nullBlock=false;this.block=null;this.path=null;this.mode=null;this.uid=null;this.gid=null;this.size=null;this.mtime=null;this.cksum=null;this[a]="0";this.linkpath=null;this.uname=null;this.gname=null;this.devmaj=0;this.devmin=0;this.atime=null;this.ctime=null;if(Buffer.isBuffer(e))this.decode(e,t||0,r,s);else if(e)this.set(e)}decode(e,t,r,s){if(!t)t=0;if(!e||!(e.length>=t+512))throw new Error("need 512 bytes for header");this.path=decString(e,t,100);this.mode=decNumber(e,t+100,8);this.uid=decNumber(e,t+108,8);this.gid=decNumber(e,t+116,8);this.size=decNumber(e,t+124,12);this.mtime=decDate(e,t+136,12);this.cksum=decNumber(e,t+148,12);this[o](r);this[o](s,true);this[a]=decString(e,t+156,1);if(this[a]==="")this[a]="0";if(this[a]==="0"&&this.path.substr(-1)==="/")this[a]="5";if(this[a]==="5")this.size=0;this.linkpath=decString(e,t+157,100);if(e.slice(t+257,t+265).toString()==="ustar\x0000"){this.uname=decString(e,t+265,32);this.gname=decString(e,t+297,32);this.devmaj=decNumber(e,t+329,8);this.devmin=decNumber(e,t+337,8);if(e[t+475]!==0){const r=decString(e,t+345,155);this.path=r+"/"+this.path}else{const r=decString(e,t+345,130);if(r)this.path=r+"/"+this.path;this.atime=decDate(e,t+476,12);this.ctime=decDate(e,t+488,12)}}let n=8*32;for(let r=t;r<t+148;r++){n+=e[r]}for(let r=t+156;r<t+512;r++){n+=e[r]}this.cksumValid=n===this.cksum;if(this.cksum===null&&n===8*32)this.nullBlock=true}[o](e,t){for(let r in e){if(e[r]!==null&&e[r]!==undefined&&!(t&&r==="path"))this[r]=e[r]}}encode(e,t){if(!e){e=this.block=Buffer.alloc(512);t=0}if(!t)t=0;if(!(e.length>=t+512))throw new Error("need 512 bytes for header");const r=this.ctime||this.atime?130:155;const s=splitPrefix(this.path||"",r);const n=s[0];const i=s[1];this.needPax=s[2];this.needPax=encString(e,t,100,n)||this.needPax;this.needPax=encNumber(e,t+100,8,this.mode)||this.needPax;this.needPax=encNumber(e,t+108,8,this.uid)||this.needPax;this.needPax=encNumber(e,t+116,8,this.gid)||this.needPax;this.needPax=encNumber(e,t+124,12,this.size)||this.needPax;this.needPax=encDate(e,t+136,12,this.mtime)||this.needPax;e[t+156]=this[a].charCodeAt(0);this.needPax=encString(e,t+157,100,this.linkpath)||this.needPax;e.write("ustar\x0000",t+257,8);this.needPax=encString(e,t+265,32,this.uname)||this.needPax;this.needPax=encString(e,t+297,32,this.gname)||this.needPax;this.needPax=encNumber(e,t+329,8,this.devmaj)||this.needPax;this.needPax=encNumber(e,t+337,8,this.devmin)||this.needPax;this.needPax=encString(e,t+345,r,i)||this.needPax;if(e[t+475]!==0)this.needPax=encString(e,t+345,155,i)||this.needPax;else{this.needPax=encString(e,t+345,130,i)||this.needPax;this.needPax=encDate(e,t+476,12,this.atime)||this.needPax;this.needPax=encDate(e,t+488,12,this.ctime)||this.needPax}let o=8*32;for(let r=t;r<t+148;r++){o+=e[r]}for(let r=t+156;r<t+512;r++){o+=e[r]}this.cksum=o;encNumber(e,t+148,8,this.cksum);this.cksumValid=true;return this.needPax}set(e){for(let t in e){if(e[t]!==null&&e[t]!==undefined)this[t]=e[t]}}get type(){return s.name.get(this[a])||this[a]}get typeKey(){return this[a]}set type(e){if(s.code.has(e))this[a]=s.code.get(e);else this[a]=e}}const splitPrefix=(e,t)=>{const r=100;let s=e;let i="";let o;const a=n.parse(e).root||".";if(Buffer.byteLength(s)<r)o=[s,i,false];else{i=n.dirname(s);s=n.basename(s);do{if(Buffer.byteLength(s)<=r&&Buffer.byteLength(i)<=t)o=[s,i,false];else if(Buffer.byteLength(s)>r&&Buffer.byteLength(i)<=t)o=[s.substr(0,r-1),i,true];else{s=n.join(n.basename(i),s);i=n.dirname(i)}}while(i!==a&&!o);if(!o)o=[e.substr(0,r-1),"",true]}return o};const decString=(e,t,r)=>e.slice(t,t+r).toString("utf8").replace(/\0.*/,"");const decDate=(e,t,r)=>numToDate(decNumber(e,t,r));const numToDate=e=>e===null?null:new Date(e*1e3);const decNumber=(e,t,r)=>e[t]&128?i.parse(e.slice(t,t+r)):decSmallNumber(e,t,r);const nanNull=e=>isNaN(e)?null:e;const decSmallNumber=(e,t,r)=>nanNull(parseInt(e.slice(t,t+r).toString("utf8").replace(/\0.*$/,"").trim(),8));const u={12:8589934591,8:2097151};const encNumber=(e,t,r,s)=>s===null?false:s>u[r]||s<0?(i.encode(s,e.slice(t,t+r)),true):(encSmallNumber(e,t,r,s),false);const encSmallNumber=(e,t,r,s)=>e.write(octalString(s,r),t,r,"ascii");const octalString=(e,t)=>padOctal(Math.floor(e).toString(8),t);const padOctal=(e,t)=>(e.length===t-1?e:new Array(t-e.length-1).join("0")+e+" ")+"\0";const encDate=(e,t,r,s)=>s===null?false:encNumber(e,t,r,s.getTime()/1e3);const l=new Array(156).join("\0");const encString=(e,t,r,s)=>s===null?false:(e.write(s+l,t,r,"utf8"),s.length!==Buffer.byteLength(s)||s.length>r);e.exports=Header},5274:e=>{"use strict";const t=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"]]);const r=e.exports=e=>e?Object.keys(e).map((r=>[t.has(r)?t.get(r):r,e[r]])).reduce(((e,t)=>(e[t[0]]=t[1],e)),Object.create(null)):{}},2370:(e,t)=>{"use strict";const r=t.encode=(e,t)=>{if(!Number.isSafeInteger(e))throw Error("cannot encode number outside of javascript safe integer range");else if(e<0)encodeNegative(e,t);else encodePositive(e,t);return t};const encodePositive=(e,t)=>{t[0]=128;for(var r=t.length;r>1;r--){t[r-1]=e&255;e=Math.floor(e/256)}};const encodeNegative=(e,t)=>{t[0]=255;var r=false;e=e*-1;for(var s=t.length;s>1;s--){var n=e&255;e=Math.floor(e/256);if(r)t[s-1]=onesComp(n);else if(n===0)t[s-1]=0;else{r=true;t[s-1]=twosComp(n)}}};const s=t.parse=e=>{var t=e[e.length-1];var r=e[0];var s;if(r===128)s=pos(e.slice(1,e.length));else if(r===255)s=twos(e);else throw Error("invalid base256 encoding");if(!Number.isSafeInteger(s))throw Error("parsed number outside of javascript safe integer range");return s};const twos=e=>{var t=e.length;var r=0;var s=false;for(var n=t-1;n>-1;n--){var i=e[n];var o;if(s)o=onesComp(i);else if(i===0)o=i;else{s=true;o=twosComp(i)}if(o!==0)r-=o*Math.pow(256,t-n-1)}return r};const pos=e=>{var t=e.length;var r=0;for(var s=t-1;s>-1;s--){var n=e[s];if(n!==0)r+=n*Math.pow(256,t-s-1)}return r};const onesComp=e=>(255^e)&255;const twosComp=e=>(255^e)+1&255},1525:(e,t,r)=>{"use strict";const s=r(5274);const n=r(8917);const i=r(7147);const o=r(7714);const a=r(1017);const u=e.exports=(e,t,r)=>{if(typeof e==="function")r=e,t=null,e={};else if(Array.isArray(e))t=e,e={};if(typeof t==="function")r=t,t=null;if(!t)t=[];else t=Array.from(t);const n=s(e);if(n.sync&&typeof r==="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r==="function")throw new TypeError("callback only supported with file option");if(t.length)filesFilter(n,t);if(!n.noResume)onentryFunction(n);return n.file&&n.sync?listFileSync(n):n.file?listFile(n,r):list(n)};const onentryFunction=e=>{const t=e.onentry;e.onentry=t?e=>{t(e);e.resume()}:e=>e.resume()};const filesFilter=(e,t)=>{const r=new Map(t.map((e=>[e.replace(/\/+$/,""),true])));const s=e.filter;const mapHas=(e,t)=>{const s=t||a.parse(e).root||".";const n=e===s?false:r.has(e)?r.get(e):mapHas(a.dirname(e),s);r.set(e,n);return n};e.filter=s?(e,t)=>s(e,t)&&mapHas(e.replace(/\/+$/,"")):e=>mapHas(e.replace(/\/+$/,""))};const listFileSync=e=>{const t=list(e);const r=e.file;let s=true;let n;try{const o=i.statSync(r);const a=e.maxReadSize||16*1024*1024;if(o.size<a){t.end(i.readFileSync(r))}else{let e=0;const s=Buffer.allocUnsafe(a);n=i.openSync(r,"r");while(e<o.size){let r=i.readSync(n,s,0,a,e);e+=r;t.write(s.slice(0,r))}t.end()}s=false}finally{if(s&&n)try{i.closeSync(n)}catch(e){}}};const listFile=(e,t)=>{const r=new n(e);const s=e.maxReadSize||16*1024*1024;const a=e.file;const u=new Promise(((e,t)=>{r.on("error",t);r.on("end",e);i.stat(a,((e,n)=>{if(e)t(e);else{const e=new o.ReadStream(a,{readSize:s,size:n.size});e.on("error",t);e.pipe(r)}}))}));return t?u.then(t,t):u};const list=e=>new n(e)},9624:(e,t,r)=>{"use strict";const s=r(7251);const n=r(7147);const i=r(1017);const o=r(9051);class SymlinkError extends Error{constructor(e,t){super("Cannot extract through symbolic link");this.path=t;this.symlink=e}get name(){return"SylinkError"}}class CwdError extends Error{constructor(e,t){super(t+": Cannot cd into '"+e+"'");this.path=e;this.code=t}get name(){return"CwdError"}}const a=e.exports=(e,t,r)=>{const a=t.umask;const u=t.mode|448;const l=(u&a)!==0;const h=t.uid;const p=t.gid;const d=typeof h==="number"&&typeof p==="number"&&(h!==t.processUid||p!==t.processGid);const m=t.preserve;const y=t.unlink;const g=t.cache;const v=t.cwd;const done=(t,s)=>{if(t)r(t);else{g.set(e,true);if(s&&d)o(s,h,p,(e=>done(e)));else if(l)n.chmod(e,u,r);else r()}};if(g&&g.get(e)===true)return done();if(e===v)return n.stat(e,((t,r)=>{if(t||!r.isDirectory())t=new CwdError(e,t&&t.code||"ENOTDIR");done(t)}));if(m)return s(e,{mode:u}).then((e=>done(null,e)),done);const b=i.relative(v,e);const w=b.split(/\/|\\/);mkdir_(v,w,u,g,y,v,null,done)};const mkdir_=(e,t,r,s,i,o,a,u)=>{if(!t.length)return u(null,a);const l=t.shift();const h=e+"/"+l;if(s.get(h))return mkdir_(h,t,r,s,i,o,a,u);n.mkdir(h,r,onmkdir(h,t,r,s,i,o,a,u))};const onmkdir=(e,t,r,s,o,a,u,l)=>h=>{if(h){if(h.path&&i.dirname(h.path)===a&&(h.code==="ENOTDIR"||h.code==="ENOENT"))return l(new CwdError(a,h.code));n.lstat(e,((i,p)=>{if(i)l(i);else if(p.isDirectory())mkdir_(e,t,r,s,o,a,u,l);else if(o)n.unlink(e,(i=>{if(i)return l(i);n.mkdir(e,r,onmkdir(e,t,r,s,o,a,u,l))}));else if(p.isSymbolicLink())return l(new SymlinkError(e,e+"/"+t.join("/")));else l(h)}))}else{u=u||e;mkdir_(e,t,r,s,o,a,u,l)}};const u=e.exports.sync=(e,t)=>{const r=t.umask;const a=t.mode|448;const u=(a&r)!==0;const l=t.uid;const h=t.gid;const p=typeof l==="number"&&typeof h==="number"&&(l!==t.processUid||h!==t.processGid);const d=t.preserve;const m=t.unlink;const y=t.cache;const g=t.cwd;const done=t=>{y.set(e,true);if(t&&p)o.sync(t,l,h);if(u)n.chmodSync(e,a)};if(y&&y.get(e)===true)return done();if(e===g){let t=false;let r="ENOTDIR";try{t=n.statSync(e).isDirectory()}catch(e){r=e.code}finally{if(!t)throw new CwdError(e,r)}done();return}if(d)return done(s.sync(e,a));const v=i.relative(g,e);const b=v.split(/\/|\\/);let w=null;for(let e=b.shift(),t=g;e&&(t+="/"+e);e=b.shift()){if(y.get(t))continue;try{n.mkdirSync(t,a);w=w||t;y.set(t,true)}catch(e){if(e.path&&i.dirname(e.path)===g&&(e.code==="ENOTDIR"||e.code==="ENOENT"))return new CwdError(g,e.code);const r=n.lstatSync(t);if(r.isDirectory()){y.set(t,true);continue}else if(m){n.unlinkSync(t);n.mkdirSync(t,a);w=w||t;y.set(t,true);continue}else if(r.isSymbolicLink())return new SymlinkError(t,t+"/"+b.join("/"))}}return done(w)}},8371:e=>{"use strict";e.exports=(e,t,r)=>{e&=4095;if(r){e=(e|384)&~18}if(t){if(e&256)e|=64;if(e&32)e|=8;if(e&4)e|=1}return e}},7900:(e,t,r)=>{"use strict";class PackJob{constructor(e,t){this.path=e||"./";this.absolute=t;this.entry=null;this.stat=null;this.readdir=null;this.pending=false;this.ignore=false;this.piped=false}}const s=r(1077);const n=r(3486);const i=r(7456);const o=r(5450);const a=o.Sync;const u=o.Tar;const l=r(665);const h=Buffer.alloc(1024);const p=Symbol("onStat");const d=Symbol("ended");const m=Symbol("queue");const y=Symbol("current");const g=Symbol("process");const v=Symbol("processing");const b=Symbol("processJob");const w=Symbol("jobs");const A=Symbol("jobDone");const _=Symbol("addFSEntry");const S=Symbol("addTarEntry");const C=Symbol("stat");const D=Symbol("readdir");const x=Symbol("onreaddir");const R=Symbol("pipe");const k=Symbol("entry");const O=Symbol("entryOpt");const T=Symbol("writeEntryClass");const P=Symbol("write");const M=Symbol("ondrain");const B=r(7147);const j=r(1017);const I=r(5899);const N=I(class Pack extends s{constructor(e){super(e);e=e||Object.create(null);this.opt=e;this.file=e.file||"";this.cwd=e.cwd||process.cwd();this.maxReadSize=e.maxReadSize;this.preservePaths=!!e.preservePaths;this.strict=!!e.strict;this.noPax=!!e.noPax;this.prefix=(e.prefix||"").replace(/(\\|\/)+$/,"");this.linkCache=e.linkCache||new Map;this.statCache=e.statCache||new Map;this.readdirCache=e.readdirCache||new Map;this[T]=o;if(typeof e.onwarn==="function")this.on("warn",e.onwarn);this.portable=!!e.portable;this.zip=null;if(e.gzip){if(typeof e.gzip!=="object")e.gzip={};if(this.portable)e.gzip.portable=true;this.zip=new n.Gzip(e.gzip);this.zip.on("data",(e=>super.write(e)));this.zip.on("end",(e=>super.end()));this.zip.on("drain",(e=>this[M]()));this.on("resume",(e=>this.zip.resume()))}else this.on("drain",this[M]);this.noDirRecurse=!!e.noDirRecurse;this.follow=!!e.follow;this.noMtime=!!e.noMtime;this.mtime=e.mtime||null;this.filter=typeof e.filter==="function"?e.filter:e=>true;this[m]=new l;this[w]=0;this.jobs=+e.jobs||4;this[v]=false;this[d]=false}[P](e){return super.write(e)}add(e){this.write(e);return this}end(e){if(e)this.write(e);this[d]=true;this[g]();return this}write(e){if(this[d])throw new Error("write after end");if(e instanceof i)this[S](e);else this[_](e);return this.flowing}[S](e){const t=j.resolve(this.cwd,e.path);if(this.prefix)e.path=this.prefix+"/"+e.path.replace(/^\.(\/+|$)/,"");if(!this.filter(e.path,e))e.resume();else{const r=new PackJob(e.path,t,false);r.entry=new u(e,this[O](r));r.entry.on("end",(e=>this[A](r)));this[w]+=1;this[m].push(r)}this[g]()}[_](e){const t=j.resolve(this.cwd,e);if(this.prefix)e=this.prefix+"/"+e.replace(/^\.(\/+|$)/,"");this[m].push(new PackJob(e,t));this[g]()}[C](e){e.pending=true;this[w]+=1;const t=this.follow?"stat":"lstat";B[t](e.absolute,((t,r)=>{e.pending=false;this[w]-=1;if(t)this.emit("error",t);else this[p](e,r)}))}[p](e,t){this.statCache.set(e.absolute,t);e.stat=t;if(!this.filter(e.path,t))e.ignore=true;this[g]()}[D](e){e.pending=true;this[w]+=1;B.readdir(e.absolute,((t,r)=>{e.pending=false;this[w]-=1;if(t)return this.emit("error",t);this[x](e,r)}))}[x](e,t){this.readdirCache.set(e.absolute,t);e.readdir=t;this[g]()}[g](){if(this[v])return;this[v]=true;for(let e=this[m].head;e!==null&&this[w]<this.jobs;e=e.next){this[b](e.value);if(e.value.ignore){const t=e.next;this[m].removeNode(e);e.next=t}}this[v]=false;if(this[d]&&!this[m].length&&this[w]===0){if(this.zip)this.zip.end(h);else{super.write(h);super.end()}}}get[y](){return this[m]&&this[m].head&&this[m].head.value}[A](e){this[m].shift();this[w]-=1;this[g]()}[b](e){if(e.pending)return;if(e.entry){if(e===this[y]&&!e.piped)this[R](e);return}if(!e.stat){if(this.statCache.has(e.absolute))this[p](e,this.statCache.get(e.absolute));else this[C](e)}if(!e.stat)return;if(e.ignore)return;if(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir){if(this.readdirCache.has(e.absolute))this[x](e,this.readdirCache.get(e.absolute));else this[D](e);if(!e.readdir)return}e.entry=this[k](e);if(!e.entry){e.ignore=true;return}if(e===this[y]&&!e.piped)this[R](e)}[O](e){return{onwarn:(e,t,r)=>this.warn(e,t,r),noPax:this.noPax,cwd:this.cwd,absolute:e.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime}}[k](e){this[w]+=1;try{return new this[T](e.path,this[O](e)).on("end",(()=>this[A](e))).on("error",(e=>this.emit("error",e)))}catch(e){this.emit("error",e)}}[M](){if(this[y]&&this[y].entry)this[y].entry.resume()}[R](e){e.piped=true;if(e.readdir)e.readdir.forEach((t=>{const r=this.prefix?e.path.slice(this.prefix.length+1)||"./":e.path;const s=r==="./"?"":r.replace(/\/*$/,"/");this[_](s+t)}));const t=e.entry;const r=this.zip;if(r)t.on("data",(e=>{if(!r.write(e))t.pause()}));else t.on("data",(e=>{if(!super.write(e))t.pause()}))}pause(){if(this.zip)this.zip.pause();return super.pause()}});class PackSync extends N{constructor(e){super(e);this[T]=a}pause(){}resume(){}[C](e){const t=this.follow?"statSync":"lstatSync";this[p](e,B[t](e.absolute))}[D](e,t){this[x](e,B.readdirSync(e.absolute))}[R](e){const t=e.entry;const r=this.zip;if(e.readdir)e.readdir.forEach((t=>{const r=this.prefix?e.path.slice(this.prefix.length+1)||"./":e.path;const s=r==="./"?"":r.replace(/\/*$/,"/");this[_](s+t)}));if(r)t.on("data",(e=>{r.write(e)}));else t.on("data",(e=>{super[P](e)}))}}N.Sync=PackSync;e.exports=N},8917:(e,t,r)=>{"use strict";const s=r(5899);const n=r(1017);const i=r(6043);const o=r(2361);const a=r(665);const u=1024*1024;const l=r(7456);const h=r(7996);const p=r(3486);const d=Buffer.from([31,139]);const m=Symbol("state");const y=Symbol("writeEntry");const g=Symbol("readEntry");const v=Symbol("nextEntry");const b=Symbol("processEntry");const w=Symbol("extendedHeader");const A=Symbol("globalExtendedHeader");const _=Symbol("meta");const S=Symbol("emitMeta");const C=Symbol("buffer");const D=Symbol("queue");const x=Symbol("ended");const R=Symbol("emittedEnd");const k=Symbol("emit");const O=Symbol("unzip");const T=Symbol("consumeChunk");const P=Symbol("consumeChunkSub");const M=Symbol("consumeBody");const B=Symbol("consumeMeta");const j=Symbol("consumeHeader");const I=Symbol("consuming");const N=Symbol("bufferConcat");const L=Symbol("maybeEnd");const $=Symbol("writing");const H=Symbol("aborted");const U=Symbol("onDone");const G=Symbol("sawValidEntry");const z=Symbol("sawNullBlock");const q=Symbol("sawEOF");const noop=e=>true;e.exports=s(class Parser extends o{constructor(e){e=e||{};super(e);this.file=e.file||"";this[G]=null;this.on(U,(e=>{if(this[m]==="begin"||this[G]===false){this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}}));if(e.ondone)this.on(U,e.ondone);else this.on(U,(e=>{this.emit("prefinish");this.emit("finish");this.emit("end");this.emit("close")}));this.strict=!!e.strict;this.maxMetaEntrySize=e.maxMetaEntrySize||u;this.filter=typeof e.filter==="function"?e.filter:noop;this.writable=true;this.readable=false;this[D]=new a;this[C]=null;this[g]=null;this[y]=null;this[m]="begin";this[_]="";this[w]=null;this[A]=null;this[x]=false;this[O]=null;this[H]=false;this[z]=false;this[q]=false;if(typeof e.onwarn==="function")this.on("warn",e.onwarn);if(typeof e.onentry==="function")this.on("entry",e.onentry)}[j](e,t){if(this[G]===null)this[G]=false;let r;try{r=new i(e,t,this[w],this[A])}catch(e){return this.warn("TAR_ENTRY_INVALID",e)}if(r.nullBlock){if(this[z]){this[q]=true;if(this[m]==="begin")this[m]="header";this[k]("eof")}else{this[z]=true;this[k]("nullBlock")}}else{this[z]=false;if(!r.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:r});else if(!r.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:r});else{const e=r.type;if(/^(Symbolic)?Link$/.test(e)&&!r.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:r});else if(!/^(Symbolic)?Link$/.test(e)&&r.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:r});else{const e=this[y]=new l(r,this[w],this[A]);if(!this[G]){if(e.remain){const onend=()=>{if(!e.invalid)this[G]=true};e.on("end",onend)}else{this[G]=true}}if(e.meta){if(e.size>this.maxMetaEntrySize){e.ignore=true;this[k]("ignoredEntry",e);this[m]="ignore";e.resume()}else if(e.size>0){this[_]="";e.on("data",(e=>this[_]+=e));this[m]="meta"}}else{this[w]=null;e.ignore=e.ignore||!this.filter(e.path,e);if(e.ignore){this[k]("ignoredEntry",e);this[m]=e.remain?"ignore":"header";e.resume()}else{if(e.remain)this[m]="body";else{this[m]="header";e.end()}if(!this[g]){this[D].push(e);this[v]()}else this[D].push(e)}}}}}}[b](e){let t=true;if(!e){this[g]=null;t=false}else if(Array.isArray(e))this.emit.apply(this,e);else{this[g]=e;this.emit("entry",e);if(!e.emittedEnd){e.on("end",(e=>this[v]()));t=false}}return t}[v](){do{}while(this[b](this[D].shift()));if(!this[D].length){const e=this[g];const t=!e||e.flowing||e.size===e.remain;if(t){if(!this[$])this.emit("drain")}else e.once("drain",(e=>this.emit("drain")))}}[M](e,t){const r=this[y];const s=r.blockRemain;const n=s>=e.length&&t===0?e:e.slice(t,t+s);r.write(n);if(!r.blockRemain){this[m]="header";this[y]=null;r.end()}return n.length}[B](e,t){const r=this[y];const s=this[M](e,t);if(!this[y])this[S](r);return s}[k](e,t,r){if(!this[D].length&&!this[g])this.emit(e,t,r);else this[D].push([e,t,r])}[S](e){this[k]("meta",this[_]);switch(e.type){case"ExtendedHeader":case"OldExtendedHeader":this[w]=h.parse(this[_],this[w],false);break;case"GlobalExtendedHeader":this[A]=h.parse(this[_],this[A],true);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[w]=this[w]||Object.create(null);this[w].path=this[_].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[w]=this[w]||Object.create(null);this[w].linkpath=this[_].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e){this[H]=true;this.emit("abort",e);this.warn("TAR_ABORT",e,{recoverable:false})}write(e){if(this[H])return;if(this[O]===null&&e){if(this[C]){e=Buffer.concat([this[C],e]);this[C]=null}if(e.length<d.length){this[C]=e;return true}for(let t=0;this[O]===null&&t<d.length;t++){if(e[t]!==d[t])this[O]=false}if(this[O]===null){const t=this[x];this[x]=false;this[O]=new p.Unzip;this[O].on("data",(e=>this[T](e)));this[O].on("error",(e=>this.abort(e)));this[O].on("end",(e=>{this[x]=true;this[T]()}));this[$]=true;const r=this[O][t?"end":"write"](e);this[$]=false;return r}}this[$]=true;if(this[O])this[O].write(e);else this[T](e);this[$]=false;const t=this[D].length?false:this[g]?this[g].flowing:true;if(!t&&!this[D].length)this[g].once("drain",(e=>this.emit("drain")));return t}[N](e){if(e&&!this[H])this[C]=this[C]?Buffer.concat([this[C],e]):e}[L](){if(this[x]&&!this[R]&&!this[H]&&!this[I]){this[R]=true;const e=this[y];if(e&&e.blockRemain){const t=this[C]?this[C].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${t} available)`,{entry:e});if(this[C])e.write(this[C]);e.end()}this[k](U)}}[T](e){if(this[I])this[N](e);else if(!e&&!this[C])this[L]();else{this[I]=true;if(this[C]){this[N](e);const t=this[C];this[C]=null;this[P](t)}else{this[P](e)}while(this[C]&&this[C].length>=512&&!this[H]&&!this[q]){const e=this[C];this[C]=null;this[P](e)}this[I]=false}if(!this[C]||this[x])this[L]()}[P](e){let t=0;let r=e.length;while(t+512<=r&&!this[H]&&!this[q]){switch(this[m]){case"begin":case"header":this[j](e,t);t+=512;break;case"ignore":case"body":t+=this[M](e,t);break;case"meta":t+=this[B](e,t);break;default:throw new Error("invalid state: "+this[m])}}if(t<r){if(this[C])this[C]=Buffer.concat([e.slice(t),this[C]]);else this[C]=e.slice(t)}}end(e){if(!this[H]){if(this[O])this[O].end(e);else{this[x]=true;this.write(e)}}}})},9587:(e,t,r)=>{const s=r(9491);e.exports=()=>{const e=new Map;const t=new Map;const{join:n}=r(1017);const getDirs=e=>n(e).split(/[\\\/]/).slice(0,-1).reduce(((e,t)=>e.length?e.concat(n(e[e.length-1],t)):[t]),[]);const i=new Set;const getQueues=r=>{const s=t.get(r);if(!s)throw new Error("function does not have any path reservations");return{paths:s.paths.map((t=>e.get(t))),dirs:[...s.dirs].map((t=>e.get(t)))}};const check=e=>{const{paths:t,dirs:r}=getQueues(e);return t.every((t=>t[0]===e))&&r.every((t=>t[0]instanceof Set&&t[0].has(e)))};const run=e=>{if(i.has(e)||!check(e))return false;i.add(e);e((()=>clear(e)));return true};const clear=r=>{if(!i.has(r))return false;const{paths:n,dirs:o}=t.get(r);const a=new Set;n.forEach((t=>{const n=e.get(t);s.equal(n[0],r);if(n.length===1)e.delete(t);else{n.shift();if(typeof n[0]==="function")a.add(n[0]);else n[0].forEach((e=>a.add(e)))}}));o.forEach((t=>{const n=e.get(t);s(n[0]instanceof Set);if(n[0].size===1&&n.length===1){e.delete(t)}else if(n[0].size===1){n.shift();a.add(n[0])}else n[0].delete(r)}));i.delete(r);a.forEach((e=>run(e)));return true};const reserve=(r,s)=>{const n=new Set(r.map((e=>getDirs(e))).reduce(((e,t)=>e.concat(t))));t.set(s,{dirs:n,paths:r});r.forEach((t=>{const r=e.get(t);if(!r)e.set(t,[s]);else r.push(s)}));n.forEach((t=>{const r=e.get(t);if(!r)e.set(t,[new Set([s])]);else if(r[r.length-1]instanceof Set)r[r.length-1].add(s);else r.push(new Set([s]))}));return run(s)};return{check:check,reserve:reserve}}},7996:(e,t,r)=>{"use strict";const s=r(6043);const n=r(1017);class Pax{constructor(e,t){this.atime=e.atime||null;this.charset=e.charset||null;this.comment=e.comment||null;this.ctime=e.ctime||null;this.gid=e.gid||null;this.gname=e.gname||null;this.linkpath=e.linkpath||null;this.mtime=e.mtime||null;this.path=e.path||null;this.size=e.size||null;this.uid=e.uid||null;this.uname=e.uname||null;this.dev=e.dev||null;this.ino=e.ino||null;this.nlink=e.nlink||null;this.global=t||false}encode(){const e=this.encodeBody();if(e==="")return null;const t=Buffer.byteLength(e);const r=512*Math.ceil(1+t/512);const i=Buffer.allocUnsafe(r);for(let e=0;e<512;e++){i[e]=0}new s({path:("PaxHeader/"+n.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:t,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(i);i.write(e,512,t,"utf8");for(let e=t+512;e<i.length;e++){i[e]=0}return i}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(e){if(this[e]===null||this[e]===undefined)return"";const t=this[e]instanceof Date?this[e].getTime()/1e3:this[e];const r=" "+(e==="dev"||e==="ino"||e==="nlink"?"SCHILY.":"")+e+"="+t+"\n";const s=Buffer.byteLength(r);let n=Math.floor(Math.log(s)/Math.log(10))+1;if(s+n>=Math.pow(10,n))n+=1;const i=n+s;return i+r}}Pax.parse=(e,t,r)=>new Pax(merge(parseKV(e),t),r);const merge=(e,t)=>t?Object.keys(e).reduce(((t,r)=>(t[r]=e[r],t)),t):e;const parseKV=e=>e.replace(/\n$/,"").split("\n").reduce(parseKVLine,Object.create(null));const parseKVLine=(e,t)=>{const r=parseInt(t,10);if(r!==Buffer.byteLength(t)+1)return e;t=t.substr((r+" ").length);const s=t.split("=");const n=s.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!n)return e;const i=s.join("=");e[n]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(n)?new Date(i*1e3):/^[0-9]+$/.test(i)?+i:i;return e};e.exports=Pax},7456:(e,t,r)=>{"use strict";const s=r(4173);const n=r(1077);const i=Symbol("slurp");e.exports=class ReadEntry extends n{constructor(e,t,r){super();this.pause();this.extended=t;this.globalExtended=r;this.header=e;this.startBlockSize=512*Math.ceil(e.size/512);this.blockRemain=this.startBlockSize;this.remain=e.size;this.type=e.type;this.meta=false;this.ignore=false;switch(this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=true;break;default:this.ignore=true}this.path=e.path;this.mode=e.mode;if(this.mode)this.mode=this.mode&4095;this.uid=e.uid;this.gid=e.gid;this.uname=e.uname;this.gname=e.gname;this.size=e.size;this.mtime=e.mtime;this.atime=e.atime;this.ctime=e.ctime;this.linkpath=e.linkpath;this.uname=e.uname;this.gname=e.gname;if(t)this[i](t);if(r)this[i](r,true)}write(e){const t=e.length;if(t>this.blockRemain)throw new Error("writing more to entry than is appropriate");const r=this.remain;const s=this.blockRemain;this.remain=Math.max(0,r-t);this.blockRemain=Math.max(0,s-t);if(this.ignore)return true;if(r>=t)return super.write(e);return super.write(e.slice(0,r))}[i](e,t){for(let r in e){if(e[r]!==null&&e[r]!==undefined&&!(t&&r==="path"))this[r]=e[r]}}}},5923:(e,t,r)=>{"use strict";const s=r(5274);const n=r(7900);const i=r(8917);const o=r(7147);const a=r(7714);const u=r(1525);const l=r(1017);const h=r(6043);const p=e.exports=(e,t,r)=>{const n=s(e);if(!n.file)throw new TypeError("file is required");if(n.gzip)throw new TypeError("cannot append to compressed archives");if(!t||!Array.isArray(t)||!t.length)throw new TypeError("no files or directories specified");t=Array.from(t);return n.sync?replaceSync(n,t):replace(n,t,r)};const replaceSync=(e,t)=>{const r=new n.Sync(e);let s=true;let i;let a;try{try{i=o.openSync(e.file,"r+")}catch(t){if(t.code==="ENOENT")i=o.openSync(e.file,"w+");else throw t}const n=o.fstatSync(i);const u=Buffer.alloc(512);e:for(a=0;a<n.size;a+=512){for(let e=0,t=0;e<512;e+=t){t=o.readSync(i,u,e,u.length-e,a+e);if(a===0&&u[0]===31&&u[1]===139)throw new Error("cannot append to compressed archives");if(!t)break e}let t=new h(u);if(!t.cksumValid)break;let r=512*Math.ceil(t.size/512);if(a+r+512>n.size)break;a+=r;if(e.mtimeCache)e.mtimeCache.set(t.path,t.mtime)}s=false;streamSync(e,r,a,i,t)}finally{if(s)try{o.closeSync(i)}catch(e){}}};const streamSync=(e,t,r,s,n)=>{const i=new a.WriteStreamSync(e.file,{fd:s,start:r});t.pipe(i);addFilesSync(t,n)};const replace=(e,t,r)=>{t=Array.from(t);const s=new n(e);const getPos=(t,r,s)=>{const cb=(e,r)=>{if(e)o.close(t,(t=>s(e)));else s(null,r)};let n=0;if(r===0)return cb(null,0);let i=0;const a=Buffer.alloc(512);const onread=(s,u)=>{if(s)return cb(s);i+=u;if(i<512&&u)return o.read(t,a,i,a.length-i,n+i,onread);if(n===0&&a[0]===31&&a[1]===139)return cb(new Error("cannot append to compressed archives"));if(i<512)return cb(null,n);const l=new h(a);if(!l.cksumValid)return cb(null,n);const p=512*Math.ceil(l.size/512);if(n+p+512>r)return cb(null,n);n+=p+512;if(n>=r)return cb(null,n);if(e.mtimeCache)e.mtimeCache.set(l.path,l.mtime);i=0;o.read(t,a,0,512,n,onread)};o.read(t,a,0,512,n,onread)};const i=new Promise(((r,n)=>{s.on("error",n);let i="r+";const onopen=(u,l)=>{if(u&&u.code==="ENOENT"&&i==="r+"){i="w+";return o.open(e.file,i,onopen)}if(u)return n(u);o.fstat(l,((i,o)=>{if(i)return n(i);getPos(l,o.size,((i,o)=>{if(i)return n(i);const u=new a.WriteStream(e.file,{fd:l,start:o});s.pipe(u);u.on("error",n);u.on("close",r);addFilesAsync(s,t)}))}))};o.open(e.file,i,onopen)}));return r?i.then(r,r):i};const addFilesSync=(e,t)=>{t.forEach((t=>{if(t.charAt(0)==="@")u({file:l.resolve(e.cwd,t.substr(1)),sync:true,noResume:true,onentry:t=>e.add(t)});else e.add(t)}));e.end()};const addFilesAsync=(e,t)=>{while(t.length){const r=t.shift();if(r.charAt(0)==="@")return u({file:l.resolve(e.cwd,r.substr(1)),noResume:true,onentry:t=>e.add(t)}).then((r=>addFilesAsync(e,t)));else e.add(r)}e.end()}},4173:(e,t)=>{"use strict";t.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]);t.code=new Map(Array.from(t.name).map((e=>[e[1],e[0]])))},7628:(e,t,r)=>{"use strict";const s=r(9491);const n=r(2361).EventEmitter;const i=r(8917);const o=r(7147);const a=r(7714);const u=r(1017);const l=r(9624);const h=l.sync;const p=r(4808);const d=r(9587);const m=Symbol("onEntry");const y=Symbol("checkFs");const g=Symbol("checkFs2");const v=Symbol("isReusable");const b=Symbol("makeFs");const w=Symbol("file");const A=Symbol("directory");const _=Symbol("link");const S=Symbol("symlink");const C=Symbol("hardlink");const D=Symbol("unsupported");const x=Symbol("unknown");const R=Symbol("checkPath");const k=Symbol("mkdir");const O=Symbol("onError");const T=Symbol("pending");const P=Symbol("pend");const M=Symbol("unpend");const B=Symbol("ended");const j=Symbol("maybeClose");const I=Symbol("skip");const N=Symbol("doChown");const L=Symbol("uid");const $=Symbol("gid");const H=r(6113);const U=r(1172);const neverCalled=()=>{throw new Error("sync function called cb somehow?!?")};const unlinkFile=(e,t)=>{if(process.platform!=="win32")return o.unlink(e,t);const r=e+".DELETE."+H.randomBytes(16).toString("hex");o.rename(e,r,(e=>{if(e)return t(e);o.unlink(r,t)}))};const unlinkFileSync=e=>{if(process.platform!=="win32")return o.unlinkSync(e);const t=e+".DELETE."+H.randomBytes(16).toString("hex");o.renameSync(e,t);o.unlinkSync(t)};const uint32=(e,t,r)=>e===e>>>0?e:t===t>>>0?t:r;class Unpack extends i{constructor(e){if(!e)e={};e.ondone=e=>{this[B]=true;this[j]()};super(e);this.reservations=d();this.transform=typeof e.transform==="function"?e.transform:null;this.writable=true;this.readable=false;this[T]=0;this[B]=false;this.dirCache=e.dirCache||new Map;if(typeof e.uid==="number"||typeof e.gid==="number"){if(typeof e.uid!=="number"||typeof e.gid!=="number")throw new TypeError("cannot set owner without number uid and gid");if(e.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=e.uid;this.gid=e.gid;this.setOwner=true}else{this.uid=null;this.gid=null;this.setOwner=false}if(e.preserveOwner===undefined&&typeof e.uid!=="number")this.preserveOwner=process.getuid&&process.getuid()===0;else this.preserveOwner=!!e.preserveOwner;this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null;this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null;this.forceChown=e.forceChown===true;this.win32=!!e.win32||process.platform==="win32";this.newer=!!e.newer;this.keep=!!e.keep;this.noMtime=!!e.noMtime;this.preservePaths=!!e.preservePaths;this.unlink=!!e.unlink;this.cwd=u.resolve(e.cwd||process.cwd());this.strip=+e.strip||0;this.processUmask=process.umask();this.umask=typeof e.umask==="number"?e.umask:this.processUmask;this.dmode=e.dmode||511&~this.umask;this.fmode=e.fmode||438&~this.umask;this.on("entry",(e=>this[m](e)))}warn(e,t,r={}){if(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")r.recoverable=false;return super.warn(e,t,r)}[j](){if(this[B]&&this[T]===0){this.emit("prefinish");this.emit("finish");this.emit("end");this.emit("close")}}[R](e){if(this.strip){const t=e.path.split(/\/|\\/);if(t.length<this.strip)return false;e.path=t.slice(this.strip).join("/");if(e.type==="Link"){const t=e.linkpath.split(/\/|\\/);if(t.length>=this.strip)e.linkpath=t.slice(this.strip).join("/")}}if(!this.preservePaths){const t=e.path;if(t.match(/(^|\/|\\)\.\.(\\|\/|$)/)){this.warn("TAR_ENTRY_ERROR",`path contains '..'`,{entry:e,path:t});return false}if(u.win32.isAbsolute(t)){const r=u.win32.parse(t);e.path=t.substr(r.root.length);const s=r.root;this.warn("TAR_ENTRY_INFO",`stripping ${s} from absolute path`,{entry:e,path:t})}}if(this.win32){const t=u.win32.parse(e.path);e.path=t.root===""?p.encode(e.path):t.root+p.encode(e.path.substr(t.root.length))}if(u.isAbsolute(e.path))e.absolute=e.path;else e.absolute=u.resolve(this.cwd,e.path);return true}[m](e){if(!this[R](e))return e.resume();s.equal(typeof e.absolute,"string");switch(e.type){case"Directory":case"GNUDumpDir":if(e.mode)e.mode=e.mode|448;case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[y](e);case"CharacterDevice":case"BlockDevice":case"FIFO":return this[D](e)}}[O](e,t){if(e.name==="CwdError")this.emit("error",e);else{this.warn("TAR_ENTRY_ERROR",e,{entry:t});this[M]();t.resume()}}[k](e,t,r){l(e,{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:t},r)}[N](e){return this.forceChown||this.preserveOwner&&(typeof e.uid==="number"&&e.uid!==this.processUid||typeof e.gid==="number"&&e.gid!==this.processGid)||(typeof this.uid==="number"&&this.uid!==this.processUid||typeof this.gid==="number"&&this.gid!==this.processGid)}[L](e){return uint32(this.uid,e.uid,this.processUid)}[$](e){return uint32(this.gid,e.gid,this.processGid)}[w](e,t){const r=e.mode&4095||this.fmode;const s=new a.WriteStream(e.absolute,{flags:U(e.size),mode:r,autoClose:false});s.on("error",(t=>this[O](t,e)));let n=1;const done=r=>{if(r)return this[O](r,e);if(--n===0){o.close(s.fd,(r=>{t();r?this[O](r,e):this[M]()}))}};s.on("finish",(t=>{const r=e.absolute;const i=s.fd;if(e.mtime&&!this.noMtime){n++;const t=e.atime||new Date;const s=e.mtime;o.futimes(i,t,s,(e=>e?o.utimes(r,t,s,(t=>done(t&&e))):done()))}if(this[N](e)){n++;const t=this[L](e);const s=this[$](e);o.fchown(i,t,s,(e=>e?o.chown(r,t,s,(t=>done(t&&e))):done()))}done()}));const i=this.transform?this.transform(e)||e:e;if(i!==e){i.on("error",(t=>this[O](t,e)));e.pipe(i)}i.pipe(s)}[A](e,t){const r=e.mode&4095||this.dmode;this[k](e.absolute,r,(r=>{if(r){t();return this[O](r,e)}let s=1;const done=r=>{if(--s===0){t();this[M]();e.resume()}};if(e.mtime&&!this.noMtime){s++;o.utimes(e.absolute,e.atime||new Date,e.mtime,done)}if(this[N](e)){s++;o.chown(e.absolute,this[L](e),this[$](e),done)}done()}))}[D](e){e.unsupported=true;this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e});e.resume()}[S](e,t){this[_](e,e.linkpath,"symlink",t)}[C](e,t){this[_](e,u.resolve(this.cwd,e.linkpath),"link",t)}[P](){this[T]++}[M](){this[T]--;this[j]()}[I](e){this[M]();e.resume()}[v](e,t){return e.type==="File"&&!this.unlink&&t.isFile()&&t.nlink<=1&&process.platform!=="win32"}[y](e){this[P]();const t=[e.path];if(e.linkpath)t.push(e.linkpath);this.reservations.reserve(t,(t=>this[g](e,t)))}[g](e,t){this[k](u.dirname(e.absolute),this.dmode,(r=>{if(r){t();return this[O](r,e)}o.lstat(e.absolute,((r,s)=>{if(s&&(this.keep||this.newer&&s.mtime>e.mtime)){this[I](e);t()}else if(r||this[v](e,s)){this[b](null,e,t)}else if(s.isDirectory()){if(e.type==="Directory"){if(!e.mode||(s.mode&4095)===e.mode)this[b](null,e,t);else o.chmod(e.absolute,e.mode,(r=>this[b](r,e,t)))}else o.rmdir(e.absolute,(r=>this[b](r,e,t)))}else unlinkFile(e.absolute,(r=>this[b](r,e,t)))}))}))}[b](e,t,r){if(e)return this[O](e,t);switch(t.type){case"File":case"OldFile":case"ContiguousFile":return this[w](t,r);case"Link":return this[C](t,r);case"SymbolicLink":return this[S](t,r);case"Directory":case"GNUDumpDir":return this[A](t,r)}}[_](e,t,r,s){o[r](t,e.absolute,(t=>{if(t)return this[O](t,e);s();this[M]();e.resume()}))}}class UnpackSync extends Unpack{constructor(e){super(e)}[y](e){const t=this[k](u.dirname(e.absolute),this.dmode,neverCalled);if(t)return this[O](t,e);try{const r=o.lstatSync(e.absolute);if(this.keep||this.newer&&r.mtime>e.mtime)return this[I](e);else if(this[v](e,r))return this[b](null,e,neverCalled);else{try{if(r.isDirectory()){if(e.type==="Directory"){if(e.mode&&(r.mode&4095)!==e.mode)o.chmodSync(e.absolute,e.mode)}else o.rmdirSync(e.absolute)}else unlinkFileSync(e.absolute);return this[b](null,e,neverCalled)}catch(t){return this[O](t,e)}}}catch(t){return this[b](null,e,neverCalled)}}[w](e,t){const r=e.mode&4095||this.fmode;const oner=t=>{let r;try{o.closeSync(n)}catch(e){r=e}if(t||r)this[O](t||r,e)};let s;let n;try{n=o.openSync(e.absolute,U(e.size),r)}catch(e){return oner(e)}const i=this.transform?this.transform(e)||e:e;if(i!==e){i.on("error",(t=>this[O](t,e)));e.pipe(i)}i.on("data",(e=>{try{o.writeSync(n,e,0,e.length)}catch(e){oner(e)}}));i.on("end",(t=>{let r=null;if(e.mtime&&!this.noMtime){const t=e.atime||new Date;const s=e.mtime;try{o.futimesSync(n,t,s)}catch(n){try{o.utimesSync(e.absolute,t,s)}catch(e){r=n}}}if(this[N](e)){const t=this[L](e);const s=this[$](e);try{o.fchownSync(n,t,s)}catch(n){try{o.chownSync(e.absolute,t,s)}catch(e){r=r||n}}}oner(r)}))}[A](e,t){const r=e.mode&4095||this.dmode;const s=this[k](e.absolute,r);if(s)return this[O](s,e);if(e.mtime&&!this.noMtime){try{o.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch(s){}}if(this[N](e)){try{o.chownSync(e.absolute,this[L](e),this[$](e))}catch(s){}}e.resume()}[k](e,t){try{return l.sync(e,{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:t})}catch(e){return e}}[_](e,t,r,s){try{o[r+"Sync"](t,e.absolute);e.resume()}catch(t){return this[O](t,e)}}}Unpack.Sync=UnpackSync;e.exports=Unpack},407:(e,t,r)=>{"use strict";const s=r(5274);const n=r(5923);const i=e.exports=(e,t,r)=>{const i=s(e);if(!i.file)throw new TypeError("file is required");if(i.gzip)throw new TypeError("cannot append to compressed archives");if(!t||!Array.isArray(t)||!t.length)throw new TypeError("no files or directories specified");t=Array.from(t);mtimeFilter(i);return n(i,t,r)};const mtimeFilter=e=>{const t=e.filter;if(!e.mtimeCache)e.mtimeCache=new Map;e.filter=t?(r,s)=>t(r,s)&&!(e.mtimeCache.get(r)>s.mtime):(t,r)=>!(e.mtimeCache.get(t)>r.mtime)}},5899:e=>{"use strict";e.exports=e=>class extends e{warn(e,t,r={}){if(this.file)r.file=this.file;if(this.cwd)r.cwd=this.cwd;r.code=t instanceof Error&&t.code||e;r.tarCode=e;if(!this.strict&&r.recoverable!==false){if(t instanceof Error){r=Object.assign(t,r);t=t.message}this.emit("warn",r.tarCode,t,r)}else if(t instanceof Error){this.emit("error",Object.assign(t,r))}else this.emit("error",Object.assign(new Error(`${e}: ${t}`),r))}}},4808:e=>{"use strict";const t=["|","<",">","?",":"];const r=t.map((e=>String.fromCharCode(61440+e.charCodeAt(0))));const s=new Map(t.map(((e,t)=>[e,r[t]])));const n=new Map(r.map(((e,r)=>[e,t[r]])));e.exports={encode:e=>t.reduce(((e,t)=>e.split(t).join(s.get(t))),e),decode:e=>r.reduce(((e,t)=>e.split(t).join(n.get(t))),e)}},5450:(e,t,r)=>{"use strict";const s=r(1077);const n=r(7996);const i=r(6043);const o=r(7456);const a=r(7147);const u=r(1017);const l=r(4173);const h=16*1024*1024;const p=Symbol("process");const d=Symbol("file");const m=Symbol("directory");const y=Symbol("symlink");const g=Symbol("hardlink");const v=Symbol("header");const b=Symbol("read");const w=Symbol("lstat");const A=Symbol("onlstat");const _=Symbol("onread");const S=Symbol("onreadlink");const C=Symbol("openfile");const D=Symbol("onopenfile");const x=Symbol("close");const R=Symbol("mode");const k=r(5899);const O=r(4808);const T=r(8371);const P=k(class WriteEntry extends s{constructor(e,t){t=t||{};super(t);if(typeof e!=="string")throw new TypeError("path is required");this.path=e;this.portable=!!t.portable;this.myuid=process.getuid&&process.getuid();this.myuser=process.env.USER||"";this.maxReadSize=t.maxReadSize||h;this.linkCache=t.linkCache||new Map;this.statCache=t.statCache||new Map;this.preservePaths=!!t.preservePaths;this.cwd=t.cwd||process.cwd();this.strict=!!t.strict;this.noPax=!!t.noPax;this.noMtime=!!t.noMtime;this.mtime=t.mtime||null;if(typeof t.onwarn==="function")this.on("warn",t.onwarn);let r=false;if(!this.preservePaths&&u.win32.isAbsolute(e)){const t=u.win32.parse(e);this.path=e.substr(t.root.length);r=t.root}this.win32=!!t.win32||process.platform==="win32";if(this.win32){this.path=O.decode(this.path.replace(/\\/g,"/"));e=e.replace(/\\/g,"/")}this.absolute=t.absolute||u.resolve(this.cwd,e);if(this.path==="")this.path="./";if(r){this.warn("TAR_ENTRY_INFO",`stripping ${r} from absolute path`,{entry:this,path:r+this.path})}if(this.statCache.has(this.absolute))this[A](this.statCache.get(this.absolute));else this[w]()}[w](){a.lstat(this.absolute,((e,t)=>{if(e)return this.emit("error",e);this[A](t)}))}[A](e){this.statCache.set(this.absolute,e);this.stat=e;if(!e.isFile())e.size=0;this.type=getType(e);this.emit("stat",e);this[p]()}[p](){switch(this.type){case"File":return this[d]();case"Directory":return this[m]();case"SymbolicLink":return this[y]();default:return this.end()}}[R](e){return T(e,this.type==="Directory",this.portable)}[v](){if(this.type==="Directory"&&this.portable)this.noMtime=true;this.header=new i({path:this.path,linkpath:this.linkpath,mode:this[R](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime});if(this.header.encode()&&!this.noPax)this.write(new n({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this.path,linkpath:this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode());this.write(this.header.block)}[m](){if(this.path.substr(-1)!=="/")this.path+="/";this.stat.size=0;this[v]();this.end()}[y](){a.readlink(this.absolute,((e,t)=>{if(e)return this.emit("error",e);this[S](t)}))}[S](e){this.linkpath=e.replace(/\\/g,"/");this[v]();this.end()}[g](e){this.type="Link";this.linkpath=u.relative(this.cwd,e).replace(/\\/g,"/");this.stat.size=0;this[v]();this.end()}[d](){if(this.stat.nlink>1){const e=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(e)){const t=this.linkCache.get(e);if(t.indexOf(this.cwd)===0)return this[g](t)}this.linkCache.set(e,this.absolute)}this[v]();if(this.stat.size===0)return this.end();this[C]()}[C](){a.open(this.absolute,"r",((e,t)=>{if(e)return this.emit("error",e);this[D](t)}))}[D](e){const t=512*Math.ceil(this.stat.size/512);const r=Math.min(t,this.maxReadSize);const s=Buffer.allocUnsafe(r);this[b](e,s,0,s.length,0,this.stat.size,t)}[b](e,t,r,s,n,i,o){a.read(e,t,r,s,n,((a,u)=>{if(a){return this[x](e,(()=>this.emit("error",a)))}this[_](e,t,r,s,n,i,o,u)}))}[x](e,t){a.close(e,t)}[_](e,t,r,s,n,i,o,a){if(a<=0&&i>0){const t=new Error("encountered unexpected EOF");t.path=this.absolute;t.syscall="read";t.code="EOF";return this[x](e,(()=>this.emit("error",t)))}if(a>i){const t=new Error("did not encounter expected EOF");t.path=this.absolute;t.syscall="read";t.code="EOF";return this[x](e,(()=>this.emit("error",t)))}if(a===i){for(let e=a;e<s&&a<o;e++){t[e+r]=0;a++;i++}}const u=r===0&&a===t.length?t:t.slice(r,r+a);i-=a;o-=a;n+=a;r+=a;this.write(u);if(!i){if(o)this.write(Buffer.alloc(o));return this[x](e,(e=>e?this.emit("error",e):this.end()))}if(r>=s){t=Buffer.allocUnsafe(s);r=0}s=t.length-r;this[b](e,t,r,s,n,i,o)}});class WriteEntrySync extends P{constructor(e,t){super(e,t)}[w](){this[A](a.lstatSync(this.absolute))}[y](){this[S](a.readlinkSync(this.absolute))}[C](){this[D](a.openSync(this.absolute,"r"))}[b](e,t,r,s,n,i,o){let u=true;try{const l=a.readSync(e,t,r,s,n);this[_](e,t,r,s,n,i,o,l);u=false}finally{if(u)try{this[x](e,(()=>{}))}catch(e){}}}[x](e,t){a.closeSync(e);t()}}const M=k(class WriteEntryTar extends s{constructor(e,t){t=t||{};super(t);this.preservePaths=!!t.preservePaths;this.portable=!!t.portable;this.strict=!!t.strict;this.noPax=!!t.noPax;this.noMtime=!!t.noMtime;this.readEntry=e;this.type=e.type;if(this.type==="Directory"&&this.portable)this.noMtime=true;this.path=e.path;this.mode=this[R](e.mode);this.uid=this.portable?null:e.uid;this.gid=this.portable?null:e.gid;this.uname=this.portable?null:e.uname;this.gname=this.portable?null:e.gname;this.size=e.size;this.mtime=this.noMtime?null:t.mtime||e.mtime;this.atime=this.portable?null:e.atime;this.ctime=this.portable?null:e.ctime;this.linkpath=e.linkpath;if(typeof t.onwarn==="function")this.on("warn",t.onwarn);let r=false;if(u.isAbsolute(this.path)&&!this.preservePaths){const e=u.parse(this.path);r=e.root;this.path=this.path.substr(e.root.length)}this.remain=e.size;this.blockRemain=e.startBlockSize;this.header=new i({path:this.path,linkpath:this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime});if(r){this.warn("TAR_ENTRY_INFO",`stripping ${r} from absolute path`,{entry:this,path:r+this.path})}if(this.header.encode()&&!this.noPax)super.write(new n({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this.path,linkpath:this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode());super.write(this.header.block);e.pipe(this)}[R](e){return T(e,this.type==="Directory",this.portable)}write(e){const t=e.length;if(t>this.blockRemain)throw new Error("writing more to entry than is appropriate");this.blockRemain-=t;return super.write(e)}end(){if(this.blockRemain)this.write(Buffer.alloc(this.blockRemain));return super.end()}});P.Sync=WriteEntrySync;P.Tar=M;const getType=e=>e.isFile()?"File":e.isDirectory()?"Directory":e.isSymbolicLink()?"SymbolicLink":"Unsupported";e.exports=P},7251:(e,t,r)=>{const s=r(27);const n=r(8463);const{mkdirpNative:i,mkdirpNativeSync:o}=r(8450);const{mkdirpManual:a,mkdirpManualSync:u}=r(2289);const{useNative:l,useNativeSync:h}=r(6082);const mkdirp=(e,t)=>{e=n(e);t=s(t);return l(t)?i(e,t):a(e,t)};const mkdirpSync=(e,t)=>{e=n(e);t=s(t);return h(t)?o(e,t):u(e,t)};mkdirp.sync=mkdirpSync;mkdirp.native=(e,t)=>i(n(e),s(t));mkdirp.manual=(e,t)=>a(n(e),s(t));mkdirp.nativeSync=(e,t)=>o(n(e),s(t));mkdirp.manualSync=(e,t)=>u(n(e),s(t));e.exports=mkdirp},2392:(e,t,r)=>{const{dirname:s}=r(1017);const findMade=(e,t,r=undefined)=>{if(r===t)return Promise.resolve();return e.statAsync(t).then((e=>e.isDirectory()?r:undefined),(r=>r.code==="ENOENT"?findMade(e,s(t),t):undefined))};const findMadeSync=(e,t,r=undefined)=>{if(r===t)return undefined;try{return e.statSync(t).isDirectory()?r:undefined}catch(r){return r.code==="ENOENT"?findMadeSync(e,s(t),t):undefined}};e.exports={findMade:findMade,findMadeSync:findMadeSync}},2289:(e,t,r)=>{const{dirname:s}=r(1017);const mkdirpManual=(e,t,r)=>{t.recursive=false;const n=s(e);if(n===e){return t.mkdirAsync(e,t).catch((e=>{if(e.code!=="EISDIR")throw e}))}return t.mkdirAsync(e,t).then((()=>r||e),(s=>{if(s.code==="ENOENT")return mkdirpManual(n,t).then((r=>mkdirpManual(e,t,r)));if(s.code!=="EEXIST"&&s.code!=="EROFS")throw s;return t.statAsync(e).then((e=>{if(e.isDirectory())return r;else throw s}),(()=>{throw s}))}))};const mkdirpManualSync=(e,t,r)=>{const n=s(e);t.recursive=false;if(n===e){try{return t.mkdirSync(e,t)}catch(e){if(e.code!=="EISDIR")throw e;else return}}try{t.mkdirSync(e,t);return r||e}catch(s){if(s.code==="ENOENT")return mkdirpManualSync(e,t,mkdirpManualSync(n,t,r));if(s.code!=="EEXIST"&&s.code!=="EROFS")throw s;try{if(!t.statSync(e).isDirectory())throw s}catch(e){throw s}}};e.exports={mkdirpManual:mkdirpManual,mkdirpManualSync:mkdirpManualSync}},8450:(e,t,r)=>{const{dirname:s}=r(1017);const{findMade:n,findMadeSync:i}=r(2392);const{mkdirpManual:o,mkdirpManualSync:a}=r(2289);const mkdirpNative=(e,t)=>{t.recursive=true;const r=s(e);if(r===e)return t.mkdirAsync(e,t);return n(t,e).then((r=>t.mkdirAsync(e,t).then((()=>r)).catch((r=>{if(r.code==="ENOENT")return o(e,t);else throw r}))))};const mkdirpNativeSync=(e,t)=>{t.recursive=true;const r=s(e);if(r===e)return t.mkdirSync(e,t);const n=i(t,e);try{t.mkdirSync(e,t);return n}catch(r){if(r.code==="ENOENT")return a(e,t);else throw r}};e.exports={mkdirpNative:mkdirpNative,mkdirpNativeSync:mkdirpNativeSync}},27:(e,t,r)=>{const{promisify:s}=r(3837);const n=r(7147);const optsArg=e=>{if(!e)e={mode:511,fs:n};else if(typeof e==="object")e={mode:511,fs:n,...e};else if(typeof e==="number")e={mode:e,fs:n};else if(typeof e==="string")e={mode:parseInt(e,8),fs:n};else throw new TypeError("invalid options argument");e.mkdir=e.mkdir||e.fs.mkdir||n.mkdir;e.mkdirAsync=s(e.mkdir);e.stat=e.stat||e.fs.stat||n.stat;e.statAsync=s(e.stat);e.statSync=e.statSync||e.fs.statSync||n.statSync;e.mkdirSync=e.mkdirSync||e.fs.mkdirSync||n.mkdirSync;return e};e.exports=optsArg},8463:(e,t,r)=>{const s=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform;const{resolve:n,parse:i}=r(1017);const pathArg=e=>{if(/\0/.test(e)){throw Object.assign(new TypeError("path must be a string without null bytes"),{path:e,code:"ERR_INVALID_ARG_VALUE"})}e=n(e);if(s==="win32"){const t=/[*|"<>?:]/;const{root:r}=i(e);if(t.test(e.substr(r.length))){throw Object.assign(new Error("Illegal characters in path."),{path:e,code:"EINVAL"})}}return e};e.exports=pathArg},6082:(e,t,r)=>{const s=r(7147);const n=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version;const i=n.replace(/^v/,"").split(".");const o=+i[0]>10||+i[0]===10&&+i[1]>=12;const a=!o?()=>false:e=>e.mkdir===s.mkdir;const u=!o?()=>false:e=>e.mkdirSync===s.mkdirSync;e.exports={useNative:a,useNativeSync:u}},1898:(e,t,r)=>{"use strict";const s=r(8512);const n=r(8824);const terminalLink=(e,t,{target:r="stdout",...i}={})=>{if(!n[r]){if(i.fallback===false){return e}return typeof i.fallback==="function"?i.fallback(e,t):`${e} (​${t}​)`}return s.link(e,t)};e.exports=(e,t,r={})=>terminalLink(e,t,r);e.exports.stderr=(e,t,r={})=>terminalLink(e,t,{target:"stderr",...r});e.exports.isSupported=n.stdout;e.exports.stderr.isSupported=n.stderr},421:(e,t,r)=>{var s=r(2781);t=e.exports=through;through.through=through;function through(e,t,r){e=e||function(e){this.queue(e)};t=t||function(){this.queue(null)};var n=false,i=false,o=[],a=false;var u=new s;u.readable=u.writable=true;u.paused=false;u.autoDestroy=!(r&&r.autoDestroy===false);u.write=function(t){e.call(this,t);return!u.paused};function drain(){while(o.length&&!u.paused){var e=o.shift();if(null===e)return u.emit("end");else u.emit("data",e)}}u.queue=u.push=function(e){if(a)return u;if(e===null)a=true;o.push(e);drain();return u};u.on("end",(function(){u.readable=false;if(!u.writable&&u.autoDestroy)process.nextTick((function(){u.destroy()}))}));function _end(){u.writable=false;t.call(u);if(!u.readable&&u.autoDestroy)u.destroy()}u.end=function(e){if(n)return;n=true;if(arguments.length)u.write(e);_end();return u};u.destroy=function(){if(i)return;i=true;n=true;o.length=0;u.writable=u.readable=false;u.emit("close");return u};u.pause=function(){if(u.paused)return;u.paused=true;return u};u.resume=function(){if(u.paused){u.paused=false;u.emit("resume")}drain();if(!u.paused)u.emit("drain");return u};return u}},1861:(e,t,r)=>{"use strict";
49/*!
50 * to-regex-range <https://github.com/micromatch/to-regex-range>
51 *
52 * Copyright (c) 2015-present, Jon Schlinkert.
53 * Released under the MIT License.
54 */const s=r(1523);const toRegexRange=(e,t,r)=>{if(s(e)===false){throw new TypeError("toRegexRange: expected the first argument to be a number")}if(t===void 0||e===t){return String(e)}if(s(t)===false){throw new TypeError("toRegexRange: expected the second argument to be a number.")}let n={relaxZeros:true,...r};if(typeof n.strictZeros==="boolean"){n.relaxZeros=n.strictZeros===false}let i=String(n.relaxZeros);let o=String(n.shorthand);let a=String(n.capture);let u=String(n.wrap);let l=e+":"+t+"="+i+o+a+u;if(toRegexRange.cache.hasOwnProperty(l)){return toRegexRange.cache[l].result}let h=Math.min(e,t);let p=Math.max(e,t);if(Math.abs(h-p)===1){let r=e+"|"+t;if(n.capture){return`(${r})`}if(n.wrap===false){return r}return`(?:${r})`}let d=hasPadding(e)||hasPadding(t);let m={min:e,max:t,a:h,b:p};let y=[];let g=[];if(d){m.isPadded=d;m.maxLen=String(m.max).length}if(h<0){let e=p<0?Math.abs(p):1;g=splitToPatterns(e,Math.abs(h),m,n);h=m.a=0}if(p>=0){y=splitToPatterns(h,p,m,n)}m.negatives=g;m.positives=y;m.result=collatePatterns(g,y,n);if(n.capture===true){m.result=`(${m.result})`}else if(n.wrap!==false&&y.length+g.length>1){m.result=`(?:${m.result})`}toRegexRange.cache[l]=m;return m.result};function collatePatterns(e,t,r){let s=filterPatterns(e,t,"-",false,r)||[];let n=filterPatterns(t,e,"",false,r)||[];let i=filterPatterns(e,t,"-?",true,r)||[];let o=s.concat(i).concat(n);return o.join("|")}function splitToRanges(e,t){let r=1;let s=1;let n=countNines(e,r);let i=new Set([t]);while(e<=n&&n<=t){i.add(n);r+=1;n=countNines(e,r)}n=countZeros(t+1,s)-1;while(e<n&&n<=t){i.add(n);s+=1;n=countZeros(t+1,s)-1}i=[...i];i.sort(compare);return i}function rangeToPattern(e,t,r){if(e===t){return{pattern:e,count:[],digits:0}}let s=zip(e,t);let n=s.length;let i="";let o=0;for(let e=0;e<n;e++){let[t,n]=s[e];if(t===n){i+=t}else if(t!=="0"||n!=="9"){i+=toCharacterClass(t,n,r)}else{o++}}if(o){i+=r.shorthand===true?"\\d":"[0-9]"}return{pattern:i,count:[o],digits:n}}function splitToPatterns(e,t,r,s){let n=splitToRanges(e,t);let i=[];let o=e;let a;for(let e=0;e<n.length;e++){let t=n[e];let u=rangeToPattern(String(o),String(t),s);let l="";if(!r.isPadded&&a&&a.pattern===u.pattern){if(a.count.length>1){a.count.pop()}a.count.push(u.count[0]);a.string=a.pattern+toQuantifier(a.count);o=t+1;continue}if(r.isPadded){l=padZeros(t,r,s)}u.string=l+u.pattern+toQuantifier(u.count);i.push(u);o=t+1;a=u}return i}function filterPatterns(e,t,r,s,n){let i=[];for(let n of e){let{string:e}=n;if(!s&&!contains(t,"string",e)){i.push(r+e)}if(s&&contains(t,"string",e)){i.push(r+e)}}return i}function zip(e,t){let r=[];for(let s=0;s<e.length;s++)r.push([e[s],t[s]]);return r}function compare(e,t){return e>t?1:t>e?-1:0}function contains(e,t,r){return e.some((e=>e[t]===r))}function countNines(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function countZeros(e,t){return e-e%Math.pow(10,t)}function toQuantifier(e){let[t=0,r=""]=e;if(r||t>1){return`{${t+(r?","+r:"")}}`}return""}function toCharacterClass(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function hasPadding(e){return/^-?(0+)\d/.test(e)}function padZeros(e,t,r){if(!t.isPadded){return e}let s=Math.abs(t.maxLen-String(e).length);let n=r.relaxZeros!==false;switch(s){case 0:return"";case 1:return n?"0?":"0";case 2:return n?"0{0,2}":"00";default:{return n?`0{0,${s}}`:`0{${s}}`}}}toRegexRange.cache={};toRegexRange.clearCache=()=>toRegexRange.cache={};e.exports=toRegexRange},1523:e=>{"use strict";
55/*!
56 * is-number <https://github.com/jonschlinkert/is-number>
57 *
58 * Copyright (c) 2014-present, Jon Schlinkert.
59 * Released under the MIT License.
60 */e.exports=function(e){if(typeof e==="number"){return e-e===0}if(typeof e==="string"&&e.trim()!==""){return Number.isFinite?Number.isFinite(+e):isFinite(+e)}return false}},9046:(e,t)=>{"use strict";t.fromCallback=function(e){return Object.defineProperty((function(...t){if(typeof t[t.length-1]==="function")e.apply(this,t);else{return new Promise(((r,s)=>{e.apply(this,t.concat([(e,t)=>e?s(e):r(t)]))}))}}),"name",{value:e.name})};t.fromPromise=function(e){return Object.defineProperty((function(...t){const r=t[t.length-1];if(typeof r!=="function")return e.apply(this,t);else e.apply(this,t.slice(0,-1)).then((e=>r(null,e)),r)}),"name",{value:e.name})}},91:(e,t,r)=>{const{URL:s}=r(7310);const{join:n}=r(1017);const i=r(7147);const{promisify:o}=r(3837);const{tmpdir:a}=r(2037);const u=r(4182);const l=o(i.writeFile);const h=o(i.mkdir);const p=o(i.readFile);const compareVersions=(e,t)=>e.localeCompare(t,"en-US",{numeric:true});const encode=e=>encodeURIComponent(e).replace(/^%40/,"@");const getFile=async(e,t)=>{const r=a();const s=n(r,"update-check");if(!i.existsSync(s)){await h(s)}let o=`${e.name}-${t}.json`;if(e.scope){o=`${e.scope}-${o}`}return n(s,o)};const evaluateCache=async(e,t,r)=>{if(i.existsSync(e)){const s=await p(e,"utf8");const{lastUpdate:n,latest:i}=JSON.parse(s);const o=n+r;if(o>t){return{shouldCheck:false,latest:i}}}return{shouldCheck:true,latest:null}};const updateCache=async(e,t,r)=>{const s=JSON.stringify({latest:t,lastUpdate:r});await l(e,s,"utf8")};const loadPackage=(e,t)=>new Promise(((s,n)=>{const i={host:e.hostname,path:e.pathname,port:e.port,headers:{accept:"application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*"},timeout:2e3};if(t){i.headers.authorization=`${t.type} ${t.token}`}const{get:o}=r(e.protocol==="https:"?5687:3685);o(i,(e=>{const{statusCode:t}=e;if(t!==200){const r=new Error(`Request failed with code ${t}`);r.code=t;n(r);e.resume();return}let r="";e.setEncoding("utf8");e.on("data",(e=>{r+=e}));e.on("end",(()=>{try{const e=JSON.parse(r);s(e)}catch(e){n(e)}}))})).on("error",n).on("timeout",n)}));const getMostRecent=async({full:e,scope:t},n)=>{const i=u(t);const o=new s(e,i);let a=null;try{a=await loadPackage(o)}catch(e){if(e.code&&String(e.code).startsWith(4)){const e=r(2968);const t=e(i,{recursive:true});a=await loadPackage(o,t)}else{throw e}}const l=a["dist-tags"][n];if(!l){throw new Error(`Distribution tag ${n} is not available`)}return l};const d={interval:36e5,distTag:"latest"};const getDetails=e=>{const t={full:encode(e)};if(e.includes("/")){const r=e.split("/");t.scope=r[0];t.name=r[1]}else{t.scope=null;t.name=e}return t};e.exports=async(e,t)=>{if(typeof e!=="object"){throw new Error("The first parameter should be your package.json file content")}const r=getDetails(e.name);const s=Date.now();const{distTag:n,interval:i}=Object.assign({},d,t);const o=await getFile(r,n);let a=null;let u=true;({shouldCheck:u,latest:a}=await evaluateCache(o,s,i));if(u){a=await getMostRecent(r,n);await updateCache(o,a,s)}const l=compareVersions(e.version,a);if(l===-1){return{latest:a,fromCache:!u}}return null}},4150:(e,t,r)=>{"use strict";var s=new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$");var n=r(2587);var i=["node_modules","favicon.ico"];var o=e.exports=function(e){var t=[];var r=[];if(e===null){r.push("name cannot be null");return done(t,r)}if(e===undefined){r.push("name cannot be undefined");return done(t,r)}if(typeof e!=="string"){r.push("name must be a string");return done(t,r)}if(!e.length){r.push("name length must be greater than zero")}if(e.match(/^\./)){r.push("name cannot start with a period")}if(e.match(/^_/)){r.push("name cannot start with an underscore")}if(e.trim()!==e){r.push("name cannot contain leading or trailing spaces")}i.forEach((function(t){if(e.toLowerCase()===t){r.push(t+" is a blacklisted name")}}));n.forEach((function(r){if(e.toLowerCase()===r){t.push(r+" is a core module name")}}));if(e.length>214){t.push("name can no longer contain more than 214 characters")}if(e.toLowerCase()!==e){t.push("name can no longer contain capital letters")}if(/[~'!()*]/.test(e.split("/").slice(-1)[0])){t.push('name can no longer contain special characters ("~\'!()*")')}if(encodeURIComponent(e)!==e){var o=e.match(s);if(o){var a=o[1];var u=o[2];if(encodeURIComponent(a)===a&&encodeURIComponent(u)===u){return done(t,r)}}r.push("name can only contain URL-friendly characters")}return done(t,r)};o.scopedPackagePattern=s;var done=function(e,t){var r={validForNewPackages:t.length===0&&e.length===0,validForOldPackages:t.length===0,warnings:e,errors:t};if(!r.warnings.length)delete r.warnings;if(!r.errors.length)delete r.errors;return r}},4383:e=>{e.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]},5917:(e,t,r)=>{"use strict";var s=r(732);var n=r(4383);var i={nul:0,control:0};e.exports=function wcwidth(e){return wcswidth(e,i)};e.exports.config=function(e){e=s(e||{},i);return function wcwidth(t){return wcswidth(t,e)}};function wcswidth(e,t){if(typeof e!=="string")return wcwidth(e,t);var r=0;for(var s=0;s<e.length;s++){var n=wcwidth(e.charCodeAt(s),t);if(n<0)return-1;r+=n}return r}function wcwidth(e,t){if(e===0)return t.nul;if(e<32||e>=127&&e<160)return t.control;if(bisearch(e))return 0;return 1+(e>=4352&&(e<=4447||e==9001||e==9002||e>=11904&&e<=42191&&e!=12351||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65135||e>=65280&&e<=65376||e>=65504&&e<=65510||e>=131072&&e<=196605||e>=196608&&e<=262141))}function bisearch(e){var t=0;var r=n.length-1;var s;if(e<n[0][0]||e>n[r][1])return false;while(r>=t){s=Math.floor((t+r)/2);if(e>n[s][1])t=s+1;else if(e<n[s][0])r=s-1;else return true}return false}},4207:(e,t,r)=>{e.exports=which;which.sync=whichSync;var s=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys";var n=r(1017);var i=s?";":":";var o=r(7126);function getNotFoundError(e){var t=new Error("not found: "+e);t.code="ENOENT";return t}function getPathInfo(e,t){var r=t.colon||i;var n=t.path||process.env.PATH||"";var o=[""];n=n.split(r);var a="";if(s){n.unshift(process.cwd());a=t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM";o=a.split(r);if(e.indexOf(".")!==-1&&o[0]!=="")o.unshift("")}if(e.match(/\//)||s&&e.match(/\\/))n=[""];return{env:n,ext:o,extExe:a}}function which(e,t,r){if(typeof t==="function"){r=t;t={}}var s=getPathInfo(e,t);var i=s.env;var a=s.ext;var u=s.extExe;var l=[];(function F(s,h){if(s===h){if(t.all&&l.length)return r(null,l);else return r(getNotFoundError(e))}var p=i[s];if(p.charAt(0)==='"'&&p.slice(-1)==='"')p=p.slice(1,-1);var d=n.join(p,e);if(!p&&/^\.[\\\/]/.test(e)){d=e.slice(0,2)+d}(function E(e,n){if(e===n)return F(s+1,h);var i=a[e];o(d+i,{pathExt:u},(function(s,o){if(!s&&o){if(t.all)l.push(d+i);else return r(null,d+i)}return E(e+1,n)}))})(0,a.length)})(0,i.length)}function whichSync(e,t){t=t||{};var r=getPathInfo(e,t);var s=r.env;var i=r.ext;var a=r.extExe;var u=[];for(var l=0,h=s.length;l<h;l++){var p=s[l];if(p.charAt(0)==='"'&&p.slice(-1)==='"')p=p.slice(1,-1);var d=n.join(p,e);if(!p&&/^\.[\\\/]/.test(e)){d=e.slice(0,2)+d}for(var m=0,y=i.length;m<y;m++){var g=d+i[m];var v;try{v=o.sync(g,{pathExt:a});if(v){if(t.all)u.push(g);else return g}}catch(e){}}}if(t.all&&u.length)return u;if(t.nothrow)return null;throw getNotFoundError(e)}},2940:e=>{e.exports=wrappy;function wrappy(e,t){if(e&&t)return wrappy(e)(t);if(typeof e!=="function")throw new TypeError("need wrapper function");Object.keys(e).forEach((function(t){wrapper[t]=e[t]}));return wrapper;function wrapper(){var t=new Array(arguments.length);for(var r=0;r<t.length;r++){t[r]=arguments[r]}var s=e.apply(this,t);var n=t[t.length-1];if(typeof s==="function"&&s!==n){Object.keys(n).forEach((function(e){s[e]=n[e]}))}return s}}},2221:(e,t,r)=>{"use strict";e.exports=writeFile;e.exports.sync=writeFileSync;e.exports._getTmpname=getTmpname;e.exports._cleanupOnExit=cleanupOnExit;var s=r(7758);var n=r(2527);var i=r(4931);var o=r(1017);var a={};var u=function getId(){try{var e=r(1267);return e.threadId}catch(e){return 0}}();var l=0;function getTmpname(e){return e+"."+n(__filename).hash(String(process.pid)).hash(String(u)).hash(String(++l)).result()}function cleanupOnExit(e){return function(){try{s.unlinkSync(typeof e==="function"?e():e)}catch(e){}}}function writeFile(e,t,r,n){if(r){if(r instanceof Function){n=r;r={}}else if(typeof r==="string"){r={encoding:r}}}else{r={}}var u=r.Promise||global.Promise;var l;var h;var p;var d=i(cleanupOnExit((()=>p)));var m=o.resolve(e);new u((function serializeSameFile(e){if(!a[m])a[m]=[];a[m].push(e);if(a[m].length===1)e()})).then((function getRealPath(){return new u((function(t){s.realpath(e,(function(r,s){l=s||e;p=getTmpname(l);t()}))}))})).then((function stat(){return new u((function stat(e){if(r.mode&&r.chown)e();else{s.stat(l,(function(t,s){if(t||!s)e();else{r=Object.assign({},r);if(r.mode==null){r.mode=s.mode}if(r.chown==null&&process.getuid){r.chown={uid:s.uid,gid:s.gid}}e()}}))}}))})).then((function thenWriteFile(){return new u((function(e,t){s.open(p,"w",r.mode,(function(r,s){h=s;if(r)t(r);else e()}))}))})).then((function write(){return new u((function(e,n){if(Buffer.isBuffer(t)){s.write(h,t,0,t.length,0,(function(t){if(t)n(t);else e()}))}else if(t!=null){s.write(h,String(t),0,String(r.encoding||"utf8"),(function(t){if(t)n(t);else e()}))}else e()}))})).then((function syncAndClose(){return new u((function(e,t){if(r.fsync!==false){s.fsync(h,(function(r){if(r)s.close(h,(()=>t(r)));else s.close(h,e)}))}else{s.close(h,e)}}))})).then((function chown(){h=null;if(r.chown){return new u((function(e,t){s.chown(p,r.chown.uid,r.chown.gid,(function(r){if(r)t(r);else e()}))}))}})).then((function chmod(){if(r.mode){return new u((function(e,t){s.chmod(p,r.mode,(function(r){if(r)t(r);else e()}))}))}})).then((function rename(){return new u((function(e,t){s.rename(p,l,(function(r){if(r)t(r);else e()}))}))})).then((function success(){d();n()}),(function fail(e){return new u((e=>h?s.close(h,e):e())).then((()=>{d();s.unlink(p,(function(){n(e)}))}))})).then((function checkQueue(){a[m].shift();if(a[m].length>0){a[m][0]()}else delete a[m]}))}function writeFileSync(e,t,r){if(typeof r==="string")r={encoding:r};else if(!r)r={};try{e=s.realpathSync(e)}catch(e){}var n=getTmpname(e);if(!r.mode||!r.chown){try{var o=s.statSync(e);r=Object.assign({},r);if(!r.mode){r.mode=o.mode}if(!r.chown&&process.getuid){r.chown={uid:o.uid,gid:o.gid}}}catch(e){}}var a;var u=cleanupOnExit(n);var l=i(u);try{a=s.openSync(n,"w",r.mode);if(Buffer.isBuffer(t)){s.writeSync(a,t,0,t.length,0)}else if(t!=null){s.writeSync(a,String(t),0,String(r.encoding||"utf8"))}if(r.fsync!==false){s.fsyncSync(a)}s.closeSync(a);if(r.chown)s.chownSync(n,r.chown.uid,r.chown.gid);if(r.mode)s.chmodSync(n,r.mode);s.renameSync(n,e);l()}catch(e){if(a){try{s.closeSync(a)}catch(e){}}l();u();throw e}}},4091:e=>{"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next){yield e.value}}}},665:(e,t,r)=>{"use strict";e.exports=Yallist;Yallist.Node=Node;Yallist.create=Yallist;function Yallist(e){var t=this;if(!(t instanceof Yallist)){t=new Yallist}t.tail=null;t.head=null;t.length=0;if(e&&typeof e.forEach==="function"){e.forEach((function(e){t.push(e)}))}else if(arguments.length>0){for(var r=0,s=arguments.length;r<s;r++){t.push(arguments[r])}}return t}Yallist.prototype.removeNode=function(e){if(e.list!==this){throw new Error("removing node which does not belong to this list")}var t=e.next;var r=e.prev;if(t){t.prev=r}if(r){r.next=t}if(e===this.head){this.head=t}if(e===this.tail){this.tail=r}e.list.length--;e.next=null;e.prev=null;e.list=null;return t};Yallist.prototype.unshiftNode=function(e){if(e===this.head){return}if(e.list){e.list.removeNode(e)}var t=this.head;e.list=this;e.next=t;if(t){t.prev=e}this.head=e;if(!this.tail){this.tail=e}this.length++};Yallist.prototype.pushNode=function(e){if(e===this.tail){return}if(e.list){e.list.removeNode(e)}var t=this.tail;e.list=this;e.prev=t;if(t){t.next=e}this.tail=e;if(!this.head){this.head=e}this.length++};Yallist.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++){push(this,arguments[e])}return this.length};Yallist.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++){unshift(this,arguments[e])}return this.length};Yallist.prototype.pop=function(){if(!this.tail){return undefined}var e=this.tail.value;this.tail=this.tail.prev;if(this.tail){this.tail.next=null}else{this.head=null}this.length--;return e};Yallist.prototype.shift=function(){if(!this.head){return undefined}var e=this.head.value;this.head=this.head.next;if(this.head){this.head.prev=null}else{this.tail=null}this.length--;return e};Yallist.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,s=0;r!==null;s++){e.call(t,r.value,s,this);r=r.next}};Yallist.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,s=this.length-1;r!==null;s--){e.call(t,r.value,s,this);r=r.prev}};Yallist.prototype.get=function(e){for(var t=0,r=this.head;r!==null&&t<e;t++){r=r.next}if(t===e&&r!==null){return r.value}};Yallist.prototype.getReverse=function(e){for(var t=0,r=this.tail;r!==null&&t<e;t++){r=r.prev}if(t===e&&r!==null){return r.value}};Yallist.prototype.map=function(e,t){t=t||this;var r=new Yallist;for(var s=this.head;s!==null;){r.push(e.call(t,s.value,this));s=s.next}return r};Yallist.prototype.mapReverse=function(e,t){t=t||this;var r=new Yallist;for(var s=this.tail;s!==null;){r.push(e.call(t,s.value,this));s=s.prev}return r};Yallist.prototype.reduce=function(e,t){var r;var s=this.head;if(arguments.length>1){r=t}else if(this.head){s=this.head.next;r=this.head.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var n=0;s!==null;n++){r=e(r,s.value,n);s=s.next}return r};Yallist.prototype.reduceReverse=function(e,t){var r;var s=this.tail;if(arguments.length>1){r=t}else if(this.tail){s=this.tail.prev;r=this.tail.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var n=this.length-1;s!==null;n--){r=e(r,s.value,n);s=s.prev}return r};Yallist.prototype.toArray=function(){var e=new Array(this.length);for(var t=0,r=this.head;r!==null;t++){e[t]=r.value;r=r.next}return e};Yallist.prototype.toArrayReverse=function(){var e=new Array(this.length);for(var t=0,r=this.tail;r!==null;t++){e[t]=r.value;r=r.prev}return e};Yallist.prototype.slice=function(e,t){t=t||this.length;if(t<0){t+=this.length}e=e||0;if(e<0){e+=this.length}var r=new Yallist;if(t<e||t<0){return r}if(e<0){e=0}if(t>this.length){t=this.length}for(var s=0,n=this.head;n!==null&&s<e;s++){n=n.next}for(;n!==null&&s<t;s++,n=n.next){r.push(n.value)}return r};Yallist.prototype.sliceReverse=function(e,t){t=t||this.length;if(t<0){t+=this.length}e=e||0;if(e<0){e+=this.length}var r=new Yallist;if(t<e||t<0){return r}if(e<0){e=0}if(t>this.length){t=this.length}for(var s=this.length,n=this.tail;n!==null&&s>t;s--){n=n.prev}for(;n!==null&&s>e;s--,n=n.prev){r.push(n.value)}return r};Yallist.prototype.splice=function(e,t,...r){if(e>this.length){e=this.length-1}if(e<0){e=this.length+e}for(var s=0,n=this.head;n!==null&&s<e;s++){n=n.next}var i=[];for(var s=0;n&&s<t;s++){i.push(n.value);n=this.removeNode(n)}if(n===null){n=this.tail}if(n!==this.head&&n!==this.tail){n=n.prev}for(var s=0;s<r.length;s++){n=insert(this,n,r[s])}return i};Yallist.prototype.reverse=function(){var e=this.head;var t=this.tail;for(var r=e;r!==null;r=r.prev){var s=r.prev;r.prev=r.next;r.next=s}this.head=t;this.tail=e;return this};function insert(e,t,r){var s=t===e.head?new Node(r,null,t,e):new Node(r,t,t.next,e);if(s.next===null){e.tail=s}if(s.prev===null){e.head=s}e.length++;return s}function push(e,t){e.tail=new Node(t,e.tail,null,e);if(!e.head){e.head=e.tail}e.length++}function unshift(e,t){e.head=new Node(t,null,e.head,e);if(!e.tail){e.tail=e.head}e.length++}function Node(e,t,r,s){if(!(this instanceof Node)){return new Node(e,t,r,s)}this.list=s;this.value=e;if(t){t.next=this;this.prev=t}else{this.prev=null}if(r){r.prev=this;this.next=r}else{this.next=null}}try{r(4091)(Yallist)}catch(e){}},7591:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(s.next(e))}catch(e){n(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const i=n(r(9090));const o=n(r(8707));const a=n(r(7147));const u=n(r(3061));const l=n(r(1017));const h=n(r(9646));const p=r(2781);const d=n(r(4674));const m=n(r(1898));const y=r(3837);const g=r(7473);const v=r(8437);const b=y.promisify(p.Stream.pipeline);function promptAsync(){return s(this,void 0,void 0,(function*(){const{value:e}=yield h.default({type:"select",name:"value",limit:11,message:"How would you like to start",choices:[{title:"Default new app",value:"default"},{title:`Template from ${m.default("expo/examples","https://github.com/expo/examples",{fallback:(e,t)=>`${e}: ${t}`})}`,value:"example"}]});if(!e){console.log();console.log("Please specify the template");process.exit(1)}if(e==="example"){let e;try{e=yield listAsync()}catch(e){console.log();console.log("Failed to fetch the list of examples with the following error:");console.error(e);console.log();console.log("Switching to the default starter app");console.log()}if(e){const t=e.map((({name:e})=>({title:e,value:e})));const r=yield h.default({type:"autocomplete",name:"exampleName",message:"Pick an example",choices:t,suggest:(e,t)=>{const r=new RegExp(e,"i");return t.filter((e=>r.test(e.title)))}});if(!r.exampleName){console.log();console.log("Please specify an example or use the default starter app.");process.exit(1)}return r.exampleName.trim()}}return null}))}t.promptAsync=promptAsync;function isUrlOk(e){return s(this,void 0,void 0,(function*(){const t=yield u.default(e).catch((e=>e));return t.statusCode===200}))}function getRepoInfo(e,t){return s(this,void 0,void 0,(function*(){const[,r,s,n,i,...o]=e.pathname.split("/");const a=t?t.replace(/^\//,""):o.join("/");if(n===undefined){const e=yield u.default(`https://api.github.com/repos/${r}/${s}`).catch((e=>e));if(e.statusCode!==200){return}const t=JSON.parse(e.body);return{username:r,name:s,branch:t["default_branch"],filePath:a}}const l=t?`${i}/${o.join("/")}`.replace(new RegExp(`/${a}|/$`),""):i;if(r&&s&&l&&n==="tree"){return{username:r,name:s,branch:l,filePath:a}}return undefined}))}function hasRepo({username:e,name:t,branch:r,filePath:s}){const n=`https://api.github.com/repos/${e}/${t}/contents`;const i=`${s?`/${s}`:""}/package.json`;return isUrlOk(n+i+`?ref=${r}`)}function resolveTemplateArgAsync(e,t,r,n){return s(this,void 0,void 0,(function*(){let s;if(r){let e;try{e=new URL(r)}catch(e){if(e.code!=="ERR_INVALID_URL"){t.fail(e);process.exit(1)}}if(e){if(e.origin!=="https://github.com"){t.fail(`Invalid URL: ${o.default.red(`"${r}"`)}. Only GitHub repositories are supported. Please use a GitHub URL and try again.`);process.exit(1)}s=yield getRepoInfo(e,n);if(!s){t.fail(`Found invalid GitHub URL: ${o.default.red(`"${r}"`)}. Please fix the URL and try again.`);process.exit(1)}const i=yield hasRepo(s);if(!i){t.fail(`Could not locate the repository for ${o.default.red(`"${r}"`)}. Please check that the repository exists and try again.`);process.exit(1)}}else{const e=yield hasExample(r);if(!e){t.fail(`Could not locate the template named ${o.default.red(`"${r}"`)}.`);process.exit(1)}}}if(s){t.text=o.default.bold(`Downloading files from repo ${o.default.cyan(r)}. This might take a moment.`);yield downloadAndExtractRepoAsync(e,s)}else{t.text=o.default.bold(`Downloading files for example ${o.default.cyan(r)}. This might take a moment.`);yield downloadAndExtractExampleAsync(e,r)}yield ensureProjectHasGitIgnore(e);return true}))}t.resolveTemplateArgAsync=resolveTemplateArgAsync;function projectHasNativeCode(e){const t=l.default.join(e,"ios");const r=l.default.join(e,"android");return a.default.existsSync(t)||a.default.existsSync(r)}function getScriptsForProject(e){if(projectHasNativeCode(e)){return{android:"expo run:android",ios:"expo run:ios",web:"expo start --web",start:"expo start --dev-client"}}return{start:"expo start",android:"expo start --android",ios:"expo start --ios",web:"expo start --web"}}function appendScriptsAsync(e){return s(this,void 0,void 0,(function*(){const t=l.default.join(e,"package.json");if(a.default.existsSync(t)){let r=new i.default(t);let s=yield r.readAsync();s=Object.assign(Object.assign({},s),{scripts:Object.assign(Object.assign({},getScriptsForProject(e)),s.scripts||{}),version:"1.0.0",private:true});s.name=g.sanitizeNpmPackageName(l.default.basename(e));yield r.writeAsync(s)}}))}t.appendScriptsAsync=appendScriptsAsync;function ensureProjectHasGitIgnore(e){const t=l.default.join(e,".gitignore");if(!a.default.existsSync(t)){a.default.copyFileSync(r.ab+"gitignore",t)}}function hasExample(e){return isUrlOk(`https://api.github.com/repos/expo/examples/contents/${encodeURIComponent(e)}/package.json`)}function downloadAndExtractRepoAsync(e,{username:t,name:r,branch:s,filePath:n}){const i=l.default.basename(e);const o=n?n.split("/").length+1:1;return b(u.default.stream(`https://codeload.github.com/${t}/${r}/tar.gz/${s}`),d.default.extract({cwd:e,transform:v.createFileTransform(i),onentry:v.createEntryResolver(i),strip:o},[`${r}-${s}${n?`/${n}`:""}`]))}function downloadAndExtractExampleAsync(e,t){const r=l.default.basename(e);return b(u.default.stream("https://codeload.github.com/expo/examples/tar.gz/master"),d.default.extract({cwd:e,transform:v.createFileTransform(r),onentry:v.createEntryResolver(r),strip:2},[`examples-master/${t}`]))}function listAsync(){return s(this,void 0,void 0,(function*(){const e=yield u.default("https://api.github.com/repos/expo/examples/contents");const t=JSON.parse(e.body);return t.filter((({name:e,type:t})=>{var r;return t==="dir"&&!((r=e)===null||r===void 0?void 0:r.startsWith("."))}))}))}},1873:function(e,t,r){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const n=s(r(8707));const i=s(r(1904));let o;let a;let u=false;function _maybePrintNewLine(){if(u){u=false;console.log()}}function consoleLog(...e){_maybePrintNewLine();console.log(...e)}function consoleWarn(...e){_maybePrintNewLine();console.warn(...e)}function consoleError(...e){_maybePrintNewLine();console.error(...e)}function respectProgressBars(e){if(o){o.terminate();o.lastDraw=""}if(a){a.stop()}e();if(o){o.render()}if(a){a.start()}}function getPrefix(e){return e(`[${(new Date).toTimeString().slice(0,8)}]`)}function withPrefixAndTextColor(e,t=n.default.gray){if(i.default.nonInteractive){return[getPrefix(t),...e.map((e=>t(e)))]}else{return e.map((e=>t(e)))}}function withPrefix(e,t=n.default.gray){if(i.default.nonInteractive){return[getPrefix(t),...e]}else{return e}}function log(...e){if(log.config.raw){return}respectProgressBars((()=>{consoleLog(...withPrefix(e))}))}log.nested=function(e){respectProgressBars((()=>{consoleLog(e)}))};log.newLine=function newLine(){respectProgressBars((()=>{consoleLog()}))};log.printNewLineBeforeNextLog=function printNewLineBeforeNextLog(){u=true};log.error=function error(...e){if(log.config.raw){return}respectProgressBars((()=>{consoleError(...withPrefixAndTextColor(e,n.default.red))}))};log.warn=function warn(...e){if(log.config.raw){return}respectProgressBars((()=>{consoleWarn(...withPrefixAndTextColor(e,n.default.yellow))}))};log.gray=function(...e){if(log.config.raw){return}respectProgressBars((()=>{consoleLog(...withPrefixAndTextColor(e))}))};log.raw=function(...e){if(!log.config.raw){return}respectProgressBars((()=>{consoleLog(...e)}))};log.chalk=n.default;log.config={raw:false};t["default"]=log},7473:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(s.next(e))}catch(e){n(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const o=n(r(9090));const a=i(r(6395));const u=n(r(5562));const l=n(r(8707));const h=r(5630);const p=n(r(6037));const d=n(r(3061));const m=n(r(481));const y=n(r(970));const g=i(r(1017));const v=r(2781);const b=n(r(4674));const w=r(3837);const A=n(r(1873));const _=r(8437);const S=w.promisify(v.Stream.pipeline);const C=process.platform==="darwin";const D=r(4147);function extractAndPrepareTemplateAppAsync(e){return s(this,void 0,void 0,(function*(){const t=g.basename(e);yield downloadAndExtractNpmModule(e,"expo-template-bare-minimum",t);const r={name:t,expo:{name:t,slug:t}};let s=new o.default(g.join(e,"app.json"));let n=m.default(yield s.readAsync(),r);yield s.writeAsync(n);let i=new o.default(g.join(e,"package.json"));let a=yield i.readAsync();const u="name"in r?r.name:r.expo.name;a.name=sanitizeNpmPackageName(u);a.version="1.0.0";a.private=true;delete a.description;delete a.tags;delete a.repository;yield i.writeAsync(a);return e}))}t.extractAndPrepareTemplateAppAsync=extractAndPrepareTemplateAppAsync;function sanitizeNpmPackageName(e){return applyKnownNpmPackageNameRules(e)||"app"}t.sanitizeNpmPackageName=sanitizeNpmPackageName;function applyKnownNpmPackageNameRules(e){while(/^(\.|_)/.test(e)){e=e.substring(1)}e=e.toLowerCase().replace(/[^a-zA-Z._\-/@]/g,"");return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")||null}function validateName(e){if(typeof e!=="string"||e===""){return"The project name can not be empty."}if(!/^[a-z0-9@.\-_]+$/i.test(e)){return"The project name can only contain URL-friendly characters."}return true}t.validateName=validateName;function initGitRepoAsync(e,t={silent:false}){return s(this,void 0,void 0,(function*(){try{yield u.default("git",["rev-parse","--is-inside-work-tree"],{stdio:"ignore",cwd:e});!t.silent&&A.default.gray("New project is already inside of a Git repo, skipping git init.");return false}catch(e){if(e.errno==="ENOENT"){!t.silent&&A.default.gray("Unable to initialize Git repo. `git` not in PATH.");return false}}try{yield u.default("git",["init"],{stdio:"ignore",cwd:e});yield u.default("git",["add","-A"],{stdio:"ignore",cwd:e});const r=`Initial commit\n\nGenerated by ${D.name} ${D.version}.`;yield u.default("git",["commit","-m",r],{stdio:"ignore",cwd:e});!t.silent&&A.default.gray("Initialized a Git repository.");return true}catch(e){return false}}))}t.initGitRepoAsync=initGitRepoAsync;function installDependenciesAsync(e,t,r={silent:false}){return s(this,void 0,void 0,(function*(){const s={cwd:e,silent:r.silent};if(t==="yarn"){const e=new a.YarnPackageManager(s);yield e.installAsync()}else{yield new a.NpmPackageManager(s).installAsync()}}))}t.installDependenciesAsync=installDependenciesAsync;const x=[".DS_Store","Thumbs.db",".git",".gitattributes",".gitignore",".npmignore",".travis.yml","LICENSE","docs",".idea","npm-debug.log","yarn-debug.log","yarn-error.log"];function getConflictsForDirectory(e){return h.readdirSync(e).filter((e=>!(/\.iml$/.test(e)||x.includes(e))))}t.getConflictsForDirectory=getConflictsForDirectory;function logProjectReady({cdPath:e,packageManager:t}){A.default.nested(l.default.bold(`✅ Your project is ready!`));A.default.newLine();if(e){A.default.nested(`To run your project, navigate to the directory and run one of the following ${t} commands.`);A.default.newLine();A.default.nested(`- ${l.default.bold("cd "+e)}`)}else{A.default.nested(`To run your project, run one of the following ${t} commands.`);A.default.newLine()}A.default.nested(`- ${l.default.bold(t==="npm"?"npm run android":"yarn android")}`);let r="";if(!C){r=" # you need to use macOS to build the iOS project - use the Expo app if you need to do iOS development without a Mac"}A.default.nested(`- ${l.default.bold(t==="npm"?"npm run ios":"yarn ios")}${r}`);A.default.nested(`- ${l.default.bold(t==="npm"?"npm run web":"yarn web")}`)}t.logProjectReady=logProjectReady;function installPodsAsync(e){return s(this,void 0,void 0,(function*(){let t=logNewSection("Installing CocoaPods.");if(process.platform!=="darwin"){t.succeed("Skipped installing CocoaPods because operating system is not on macOS.");return false}const r=new a.CocoaPodsPackageManager({cwd:g.join(e,"ios"),log:A.default.nested,silent:!p.default.boolish("EXPO_DEBUG",false)});if(!(yield r.isCLIInstalledAsync())){try{t.text="CocoaPods CLI not found in your PATH, installing it now.";t.render();yield r.installCLIAsync();t.succeed("Installed CocoaPods CLI");t=logNewSection("Running `pod install` in the `ios` directory.")}catch(e){t.stopAndPersist({symbol:"⚠️ ",text:l.default.red("Unable to install the CocoaPods CLI. Continuing with initializing the project, you can install CocoaPods afterwards.")});if(e.message){A.default.nested(`- ${e.message}`)}return false}}try{yield r.installAsync();t.succeed("Installed pods and initialized Xcode workspace.");return true}catch(e){t.stopAndPersist({symbol:"⚠️ ",text:l.default.red("Something went wrong running `pod install` in the `ios` directory. Continuing with initializing the project, you can debug this afterwards.")});if(e.message){A.default.nested(`- ${e.message}`)}return false}}))}t.installPodsAsync=installPodsAsync;function logNewSection(e){let t=y.default(l.default.bold(e));t.start();return t}t.logNewSection=logNewSection;function getNpmUrlAsync(e){return s(this,void 0,void 0,(function*(){const t=(yield u.default("npm",["v",e,"dist.tarball"])).stdout;if(!t){throw new Error(`Could not get npm url for package "${e}"`)}return t}))}function downloadAndExtractNpmModule(e,t,r){return s(this,void 0,void 0,(function*(){const s=yield getNpmUrlAsync(t);return S(d.default.stream(s),b.default.extract({cwd:e,transform:_.createFileTransform(r),onentry:_.createEntryResolver(r),strip:1},[]))}))}},5554:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(s.next(e))}catch(e){n(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const i=n(r(8707));const o=r(2081);const a=n(r(91));function shouldUseYarn(){try{o.execSync("yarnpkg --version",{stdio:"ignore"});return true}catch(e){}return false}t.shouldUseYarn=shouldUseYarn;const u=r(4147);function shouldUpdate(){return s(this,void 0,void 0,(function*(){const e=a.default(u).catch((()=>null));try{const t=yield e;if(t&&t.latest){const e=shouldUseYarn();console.log();console.log(i.default.yellow.bold(`A new version of \`${u.name}\` is available`));console.log("You can update by running: "+i.default.magenta(e?`yarn global add ${u.name}`:`npm install -g ${u.name}`));console.log()}}catch(e){}}))}t["default"]=shouldUpdate},8437:function(e,t,r){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const i=s(r(1077));const o=n(r(1017));function sanitizedName(e){return e.replace(/[\W_]+/g,"").normalize("NFD").replace(/[\u0300-\u036f]/g,"")}t.sanitizedName=sanitizedName;class Transformer extends i.default{constructor(e){super();this.name=e;this.data=""}write(e){this.data+=e;return true}end(){let e=this.data.replace(/Hello App Display Name/g,this.name).replace(/HelloWorld/g,sanitizedName(this.name)).replace(/helloworld/g,sanitizedName(this.name.toLowerCase()));super.write(e);return super.end()}}const a=["buckconfig","eslintrc.js","flowconfig","gitattributes","gitignore","prettierrc.js","watchmanconfig","editorconfig","bundle","ruby-version","node-version","xcode.env"];function createEntryResolver(e){return t=>{if(e){t.path=t.path.replace(/HelloWorld/g,t.path.includes("android")?sanitizedName(e.toLowerCase()):sanitizedName(e)).replace(/helloworld/g,sanitizedName(e).toLowerCase())}if(t.type&&/^file$/i.test(t.type)&&o.basename(t.path)==="gitignore"){t.path=t.path.replace(/gitignore$/,".gitignore")}for(const e of a){t.path=t.path.replace(`_${e}`,`.${e}`)}}}t.createEntryResolver=createEntryResolver;function createFileTransform(e){return t=>{if(![".png",".jpg",".jpeg",".gif",".webp",".psd",".tiff",".svg",".jar",".keystore",".otf",".ttf"].includes(o.extname(t.path))&&e){return new Transformer(e)}return undefined}}t.createFileTransform=createFileTransform},6144:function(e,t,r){"use strict";var s=this&&this.__awaiter||function(e,t,r,s){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(s.next(e))}catch(e){n(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(Object.hasOwnProperty.call(e,r))t[r]=e[r];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const o=n(r(8707));const a=r(1904);const u=r(5630);const l=i(r(1017));const h=n(r(9646));const p=i(r(7591));const d=n(r(1873));const m=i(r(7473));const y=i(r(5554));const g=r(4147);let v;const b=new a.Command(g.name).version(g.version).arguments("<project-root>").usage(`${o.default.magenta("<project-root>")} [options]`).description("Creates a new React Native project").option("--use-npm","Use npm to install dependencies. (default when Yarn is not installed)").option("-y, --yes","Use the default options for creating a project").option("--no-install","Skip installing npm packages or CocoaPods.").option("-t, --template [template|url]","The name of a template from expo/examples or URL to a GitHub repo that contains an example.").option("--template-path [name]","The path inside of a GitHub repo where the example lives.").allowUnknownOption().action((e=>v=e)).parse(process.argv);function runAsync(){return s(this,void 0,void 0,(function*(){try{let e;if(!v&&b.yes){e=l.resolve(process.cwd());const t=l.basename(e);assertValidName(t);assertFolderEmpty(e,t)}else{e=yield resolveProjectRootAsync(v)}let t=b.template;if(t===true){console.log();console.log("Please specify the template");console.log();process.exit(1)}if(!t&&!b.yes){t=yield p.promptAsync()}let r=b.templatePath;yield u.ensureDir(e);let s=m.logNewSection(`Locating project files.`);try{if(t){yield p.resolveTemplateArgAsync(e,s,t,r);yield p.appendScriptsAsync(e)}else{yield m.extractAndPrepareTemplateAppAsync(e)}s.succeed("Downloaded and extracted project files.")}catch(e){s.fail("Something went wrong in downloading and extracting the project files.");process.exit(1)}const n=b.install;const i=resolvePackageManager();let o=false;const a=yield u.existsSync(l.join(e,"ios"));if(n){yield installNodeDependenciesAsync(e,i);if(a){o=yield installCocoaPodsAsync(e)}}const h=getChangeDirectoryPath(e);d.default.newLine();m.logProjectReady({cdPath:h,packageManager:i});if(!n){logNodeInstallWarning(h,i)}if(a&&!o){logCocoaPodsWarning(h)}try{yield m.initGitRepoAsync(e,{silent:true})}catch(e){}}catch(e){yield commandDidThrowAsync(e)}yield y.default();process.exit(0)}))}function getChangeDirectoryPath(e){const t=l.relative(process.cwd(),e);if(t.length<=e.length){return t}return e}function installNodeDependenciesAsync(e,t){return s(this,void 0,void 0,(function*(){const r=m.logNewSection("Installing JavaScript dependencies.");try{yield m.installDependenciesAsync(e,t,{silent:true});r.succeed("Installed JavaScript dependencies.")}catch(e){r.fail(`Something went wrong installing JavaScript dependencies. Check your ${t} logs. Continuing to initialize the app.`)}}))}function installCocoaPodsAsync(e){return s(this,void 0,void 0,(function*(){let t=false;try{t=yield m.installPodsAsync(e)}catch(e){}return t}))}function logNodeInstallWarning(e,t){d.default.newLine();d.default.nested(`⚠️ Before running your app, make sure you have node modules installed:`);d.default.nested("");d.default.nested(` cd ${e!==null&&e!==void 0?e:"."}/`);d.default.nested(` ${t==="npm"?"npm install":"yarn"}`);d.default.nested("")}function logCocoaPodsWarning(e){if(process.platform!=="darwin"){return}d.default.newLine();d.default.nested(`⚠️ Before running your app on iOS, make sure you have CocoaPods installed and initialize the project:`);d.default.nested("");d.default.nested(` cd ${e!==null&&e!==void 0?e:"."}/ios`);d.default.nested(` npx pod-install`);d.default.nested("")}runAsync();function resolvePackageManager(){let e="npm";if(!b.useNpm&&y.shouldUseYarn()){e="yarn";d.default.newLine();d.default("Using Yarn to install packages. You can pass --use-npm to use npm instead.");d.default.newLine()}else{d.default.newLine();d.default("Using npm to install packages.");d.default.newLine()}return e}function assertFolderEmpty(e,t){const r=m.getConflictsForDirectory(e);if(r.length){d.default.nested(`The directory ${o.default.green(t)} has files that might be overwritten:`);d.default.newLine();for(const e of r){d.default.nested(` ${e}`)}d.default.newLine();d.default.nested("Try using a new directory name, or moving these files.");d.default.newLine();process.exit(1)}}function assertValidName(e){const t=m.validateName(e);if(typeof t==="string"){d.default.error(`Cannot create an app named ${o.default.red(`"${e}"`)}. ${t}`);process.exit(1)}}function resolveProjectRootAsync(e){var t;return s(this,void 0,void 0,(function*(){let r=(t=e)===null||t===void 0?void 0:t.trim();if(!r){const{answer:e}=yield h.default({type:"text",name:"answer",message:"What is your app named?",initial:"my-react-app",validate:e=>{const t=m.validateName(l.basename(l.resolve(e)));if(typeof t==="string"){return"Invalid project name: "+t}return true}});if(typeof e==="string"){r=e.trim()}}if(!r){d.default.newLine();d.default.nested("Please choose your app name:");d.default.nested(` ${o.default.green(b.name())} ${o.default.magenta("<app-name>")}`);d.default.newLine();d.default.nested(`Run ${o.default.green(`${b.name()} --help`)} for more info.`);process.exit(1)}const s=l.resolve(r);const n=l.basename(s);assertValidName(n);yield u.ensureDir(s);assertFolderEmpty(s,n);return s}))}function commandDidThrowAsync(e){return s(this,void 0,void 0,(function*(){d.default.newLine();d.default.nested(o.default.red(`An unexpected error occurred:`));d.default.nested(e);d.default.newLine();yield y.default();process.exit(1)}))}},9491:e=>{"use strict";e.exports=require("assert")},4300:e=>{"use strict";e.exports=require("buffer")},2081:e=>{"use strict";e.exports=require("child_process")},2057:e=>{"use strict";e.exports=require("constants")},6113:e=>{"use strict";e.exports=require("crypto")},9523:e=>{"use strict";e.exports=require("dns")},2361:e=>{"use strict";e.exports=require("events")},7147:e=>{"use strict";e.exports=require("fs")},3685:e=>{"use strict";e.exports=require("http")},5158:e=>{"use strict";e.exports=require("http2")},5687:e=>{"use strict";e.exports=require("https")},1808:e=>{"use strict";e.exports=require("net")},2037:e=>{"use strict";e.exports=require("os")},1017:e=>{"use strict";e.exports=require("path")},4521:e=>{"use strict";e.exports=require("readline")},2781:e=>{"use strict";e.exports=require("stream")},1576:e=>{"use strict";e.exports=require("string_decoder")},4404:e=>{"use strict";e.exports=require("tls")},6224:e=>{"use strict";e.exports=require("tty")},7310:e=>{"use strict";e.exports=require("url")},3837:e=>{"use strict";e.exports=require("util")},1267:e=>{"use strict";e.exports=require("worker_threads")},9796:e=>{"use strict";e.exports=require("zlib")},9680:e=>{"use strict";e.exports=JSON.parse('{"name":"@expo/package-manager","version":"0.0.28","description":"A library for installing and finding packages in a node project","main":"build","scripts":{"watch":"tsc --watch","build":"tsc","prepare":"yarn run clean && yarn build","clean":"rimraf build ./tsconfig.tsbuildinfo","lint":"eslint .","test":"jest"},"repository":{"type":"git","url":"https://github.com/expo/expo-cli.git","directory":"packages/package-manager"},"keywords":["react-native","package-manager","package-json","node","yarn","yarnpkg"],"license":"MIT","bugs":{"url":"https://github.com/expo/expo-cli/issues"},"homepage":"https://github.com/expo/expo-cli/tree/master/packages/package-manager#readme","files":["build"],"dependencies":{"@expo/json-file":"8.2.21","@expo/spawn-async":"^1.5.0","ansi-regex":"^5.0.0","chalk":"^4.0.0","find-yarn-workspace-root":"~2.0.0","npm-package-arg":"^7.0.0","rimraf":"^3.0.2","split":"^1.0.1","sudo-prompt":"9.1.1"},"devDependencies":{"@expo/babel-preset-cli":"0.2.16","@types/npm-package-arg":"^6.1.0","@types/split":"^1.0.0"},"publishConfig":{"access":"public"}}')},2587:e=>{"use strict";e.exports=JSON.parse('["assert","buffer","child_process","cluster","console","constants","crypto","dgram","dns","domain","events","fs","http","https","module","net","os","path","process","punycode","querystring","readline","repl","stream","string_decoder","timers","tls","tty","url","util","v8","vm","zlib"]')},6374:e=>{"use strict";e.exports=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":["⢀⠀","⡀⠀","⠄⠀","⢂⠀","⡂⠀","⠅⠀","⢃⠀","⡃⠀","⠍⠀","⢋⠀","⡋⠀","⠍⠁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⢈⠩","⡀⢙","⠄⡙","⢂⠩","⡂⢘","⠅⡘","⢃⠨","⡃⢐","⠍⡐","⢋⠠","⡋⢀","⠍⡁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⠈⠩","⠀⢙","⠀⡙","⠀⠩","⠀⢘","⠀⡘","⠀⠨","⠀⢐","⠀⡐","⠀⠠","⠀⢀","⠀⡀"]},"dots8Bit":{"interval":80,"frames":["⠀","⠁","⠂","⠃","⠄","⠅","⠆","⠇","⡀","⡁","⡂","⡃","⡄","⡅","⡆","⡇","⠈","⠉","⠊","⠋","⠌","⠍","⠎","⠏","⡈","⡉","⡊","⡋","⡌","⡍","⡎","⡏","⠐","⠑","⠒","⠓","⠔","⠕","⠖","⠗","⡐","⡑","⡒","⡓","⡔","⡕","⡖","⡗","⠘","⠙","⠚","⠛","⠜","⠝","⠞","⠟","⡘","⡙","⡚","⡛","⡜","⡝","⡞","⡟","⠠","⠡","⠢","⠣","⠤","⠥","⠦","⠧","⡠","⡡","⡢","⡣","⡤","⡥","⡦","⡧","⠨","⠩","⠪","⠫","⠬","⠭","⠮","⠯","⡨","⡩","⡪","⡫","⡬","⡭","⡮","⡯","⠰","⠱","⠲","⠳","⠴","⠵","⠶","⠷","⡰","⡱","⡲","⡳","⡴","⡵","⡶","⡷","⠸","⠹","⠺","⠻","⠼","⠽","⠾","⠿","⡸","⡹","⡺","⡻","⡼","⡽","⡾","⡿","⢀","⢁","⢂","⢃","⢄","⢅","⢆","⢇","⣀","⣁","⣂","⣃","⣄","⣅","⣆","⣇","⢈","⢉","⢊","⢋","⢌","⢍","⢎","⢏","⣈","⣉","⣊","⣋","⣌","⣍","⣎","⣏","⢐","⢑","⢒","⢓","⢔","⢕","⢖","⢗","⣐","⣑","⣒","⣓","⣔","⣕","⣖","⣗","⢘","⢙","⢚","⢛","⢜","⢝","⢞","⢟","⣘","⣙","⣚","⣛","⣜","⣝","⣞","⣟","⢠","⢡","⢢","⢣","⢤","⢥","⢦","⢧","⣠","⣡","⣢","⣣","⣤","⣥","⣦","⣧","⢨","⢩","⢪","⢫","⢬","⢭","⢮","⢯","⣨","⣩","⣪","⣫","⣬","⣭","⣮","⣯","⢰","⢱","⢲","⢳","⢴","⢵","⢶","⢷","⣰","⣱","⣲","⣳","⣴","⣵","⣶","⣷","⢸","⢹","⢺","⢻","⢼","⢽","⢾","⢿","⣸","⣹","⣺","⣻","⣼","⣽","⣾","⣿"]},"line":{"interval":130,"frames":["-","\\\\","|","/"]},"line2":{"interval":100,"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":["◢","◣","◤","◥"]},"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":["🌍 ","🌎 ","🌏 "]},"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":["ρββββββ","βρβββββ","ββρββββ","βββρβββ","ββββρββ","βββββρβ","ββββββρ"]}}')},4147:e=>{"use strict";e.exports=JSON.parse('{"name":"create-react-native-app","//":"crna","version":"3.9.0","main":"build","description":"Create React Native apps with no build configuration.","license":"BSD-3-Clause","keywords":["react-native","react"],"homepage":"https://github.com/expo/create-react-native-app","repository":{"type":"git","url":"https://github.com/expo/create-react-native-app.git"},"author":"Expo <support@expo.io>","contributors":["Evan Bacon <bacon@expo.io> (https://github.com/evanbacon)"],"files":["build"],"bin":{"create-react-native-app":"./build/index.js"},"scripts":{"prepublishOnly":"yarn run clean && yarn run build","lint":"eslint .","test":"jest","watch":"yarn run build:dev -w","build:dev":"ncc build ./src/index.ts -o build/","build":"ncc build ./src/index.ts -o build/ --minify --no-cache --no-source-map-register","clean":"rimraf ./build/"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.{js,ts}":["eslint --fix","prettier --write","git add"]},"devDependencies":{"@babel/core":"^7.9.6","@babel/preset-env":"^7.9.6","@expo/babel-preset-cli":"0.2.8","@expo/json-file":"^8.2.21","@expo/package-manager":"^0.0.28","@expo/spawn-async":"^1.5.0","@types/fs-extra":"^8.1.0","@types/getenv":"^1.0.0","@types/node":"^12.6.8","@types/prompts":"2.0.8","@types/tar":"4.0.3","@vercel/ncc":"^0.36.1","babel-jest":"^26.0.1","chalk":"2.4.2","commander":"2.20.0","eslint":"^6.6.0","eslint-config-universe":"^2.1.0","execa":"^4.0.1","fs-extra":"^9.0.0","getenv":"^1.0.0","got":"^11.1.3","husky":"^1.1.3","jest":"^26.0.1","lint-staged":"^8.0.4","minipass":"^3.1.1","ora":"^4.0.3","prettier":"^1.19.0","prompts":"2.3.2","tar":"^6.0.1","terminal-link":"^2.1.1","typescript":"3.7.3","update-check":"1.5.4"}}')}};var t={};function __nccwpck_require__(r){var s=t[r];if(s!==undefined){return s.exports}var n=t[r]={id:r,loaded:false,exports:{}};var i=true;try{e[r].call(n.exports,n,n.exports,__nccwpck_require__);i=false}finally{if(i)delete t[r]}n.loaded=true;return n.exports}(()=>{__nccwpck_require__.nmd=e=>{e.paths=[];if(!e.children)e.children=[];return e}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(6144);module.exports=r})();
\No newline at end of file