create-expo 3.3.1 → 3.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/162.index.js +250 -0
- package/build/571.index.js +24202 -0
- package/build/733.index.js +1574 -0
- package/build/897.index.js +1380 -0
- package/build/gitignore +38 -0
- package/build/index.js +21 -49
- package/package.json +7 -7
package/build/index.js
CHANGED
|
@@ -1,77 +1,49 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
(()=>{var __webpack_modules__={4971:(t,r,i)=>{"use strict";t=i.nmd(t);const o=i(2830);const wrapAnsi16=(t,r)=>function(){const i=t.apply(o,arguments);return`[${i+r}m`};const wrapAnsi256=(t,r)=>function(){const i=t.apply(o,arguments);return`[${38+r};5;${i}m`};const wrapAnsi16m=(t,r)=>function(){const i=t.apply(o,arguments);return`[${38+r};2;${i[0]};${i[1]};${i[2]}m`};function assembleStyles(){const t=new Map;const r={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]}};r.color.grey=r.color.gray;for(const i of Object.keys(r)){const o=r[i];for(const i of Object.keys(o)){const a=o[i];r[i]={open:`[${a[0]}m`,close:`[${a[1]}m`};o[i]=r[i];t.set(a[0],a[1])}Object.defineProperty(r,i,{value:o,enumerable:false});Object.defineProperty(r,"codes",{value:t,enumerable:false})}const ansi2ansi=t=>t;const rgb2rgb=(t,r,i)=>[t,r,i];r.color.close="[39m";r.bgColor.close="[49m";r.color.ansi={ansi:wrapAnsi16(ansi2ansi,0)};r.color.ansi256={ansi256:wrapAnsi256(ansi2ansi,0)};r.color.ansi16m={rgb:wrapAnsi16m(rgb2rgb,0)};r.bgColor.ansi={ansi:wrapAnsi16(ansi2ansi,10)};r.bgColor.ansi256={ansi256:wrapAnsi256(ansi2ansi,10)};r.bgColor.ansi16m={rgb:wrapAnsi16m(rgb2rgb,10)};for(let t of Object.keys(o)){if(typeof o[t]!=="object"){continue}const i=o[t];if(t==="ansi16"){t="ansi"}if("ansi16"in i){r.color.ansi[t]=wrapAnsi16(i.ansi16,0);r.bgColor.ansi[t]=wrapAnsi16(i.ansi16,10)}if("ansi256"in i){r.color.ansi256[t]=wrapAnsi256(i.ansi256,0);r.bgColor.ansi256[t]=wrapAnsi256(i.ansi256,10)}if("rgb"in i){r.color.ansi16m[t]=wrapAnsi16m(i.rgb,0);r.bgColor.ansi16m[t]=wrapAnsi16m(i.rgb,10)}}return r}Object.defineProperty(t,"exports",{enumerable:true,get:assembleStyles})},6870:(t,r,i)=>{"use strict";const o=i(5978);const a=i(4971);const u=i(1851).stdout;const l=i(6094);const h=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm");const d=["ansi","ansi","ansi256","ansi16m"];const p=new Set(["gray"]);const g=Object.create(null);function applyOptions(t,r){r=r||{};const i=u?u.level:0;t.level=r.level===undefined?i:r.level;t.enabled="enabled"in r?r.enabled:t.level>0}function Chalk(t){if(!this||!(this instanceof Chalk)||this.template){const r={};applyOptions(r,t);r.template=function(){const t=[].slice.call(arguments);return chalkTag.apply(null,[r.template].concat(t))};Object.setPrototypeOf(r,Chalk.prototype);Object.setPrototypeOf(r.template,r);r.template.constructor=Chalk;return r.template}applyOptions(this,t)}if(h){a.blue.open="[94m"}for(const t of Object.keys(a)){a[t].closeRe=new RegExp(o(a[t].close),"g");g[t]={get(){const r=a[t];return build.call(this,this._styles?this._styles.concat(r):[r],this._empty,t)}}}g.visible={get(){return build.call(this,this._styles||[],true,"visible")}};a.color.closeRe=new RegExp(o(a.color.close),"g");for(const t of Object.keys(a.color.ansi)){if(p.has(t)){continue}g[t]={get(){const r=this.level;return function(){const i=a.color[d[r]][t].apply(null,arguments);const o={open:i,close:a.color.close,closeRe:a.color.closeRe};return build.call(this,this._styles?this._styles.concat(o):[o],this._empty,t)}}}}a.bgColor.closeRe=new RegExp(o(a.bgColor.close),"g");for(const t of Object.keys(a.bgColor.ansi)){if(p.has(t)){continue}const r="bg"+t[0].toUpperCase()+t.slice(1);g[r]={get(){const r=this.level;return function(){const i=a.bgColor[d[r]][t].apply(null,arguments);const o={open:i,close:a.bgColor.close,closeRe:a.bgColor.closeRe};return build.call(this,this._styles?this._styles.concat(o):[o],this._empty,t)}}}}const y=Object.defineProperties((()=>{}),g);function build(t,r,i){const builder=function(){return applyStyle.apply(builder,arguments)};builder._styles=t;builder._empty=r;const o=this;Object.defineProperty(builder,"level",{enumerable:true,get(){return o.level},set(t){o.level=t}});Object.defineProperty(builder,"enabled",{enumerable:true,get(){return o.enabled},set(t){o.enabled=t}});builder.hasGrey=this.hasGrey||i==="gray"||i==="grey";builder.__proto__=y;return builder}function applyStyle(){const t=arguments;const r=t.length;let i=String(arguments[0]);if(r===0){return""}if(r>1){for(let o=1;o<r;o++){i+=" "+t[o]}}if(!this.enabled||this.level<=0||!i){return this._empty?"":i}const o=a.dim.open;if(h&&this.hasGrey){a.dim.open=""}for(const t of this._styles.slice().reverse()){i=t.open+i.replace(t.closeRe,t.open)+t.close;i=i.replace(/\r?\n/g,`${t.close}$&${t.open}`)}a.dim.open=o;return i}function chalkTag(t,r){if(!Array.isArray(r)){return[].slice.call(arguments,1).join(" ")}const i=[].slice.call(arguments,2);const o=[r.raw[0]];for(let t=1;t<r.length;t++){o.push(String(i[t-1]).replace(/[{}\\]/g,"\\$&"));o.push(String(r.raw[t]))}return l(t,o.join(""))}Object.defineProperties(Chalk.prototype,g);t.exports=Chalk();t.exports.supportsColor=u;t.exports["default"]=t.exports},6094:t=>{"use strict";const r=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;const i=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;const o=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;const a=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi;const u=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function unescape(t){if(t[0]==="u"&&t.length===5||t[0]==="x"&&t.length===3){return String.fromCharCode(parseInt(t.slice(1),16))}return u.get(t)||t}function parseArguments(t,r){const i=[];const u=r.trim().split(/\s*,\s*/g);let l;for(const r of u){if(!isNaN(r)){i.push(Number(r))}else if(l=r.match(o)){i.push(l[2].replace(a,((t,r,i)=>r?unescape(r):i)))}else{throw new Error(`Invalid Chalk template style argument: ${r} (in style '${t}')`)}}return i}function parseStyle(t){i.lastIndex=0;const r=[];let o;while((o=i.exec(t))!==null){const t=o[1];if(o[2]){const i=parseArguments(t,o[2]);r.push([t].concat(i))}else{r.push([t])}}return r}function buildStyle(t,r){const i={};for(const t of r){for(const r of t.styles){i[r[0]]=t.inverse?null:r.slice(1)}}let o=t;for(const t of Object.keys(i)){if(Array.isArray(i[t])){if(!(t in o)){throw new Error(`Unknown Chalk style: ${t}`)}if(i[t].length>0){o=o[t].apply(o,i[t])}else{o=o[t]}}}return o}t.exports=(t,i)=>{const o=[];const a=[];let u=[];i.replace(r,((r,i,l,h,d,p)=>{if(i){u.push(unescape(i))}else if(h){const r=u.join("");u=[];a.push(o.length===0?r:buildStyle(t,o)(r));o.push({inverse:l,styles:parseStyle(h)})}else if(d){if(o.length===0){throw new Error("Found extraneous } in Chalk template literal")}a.push(buildStyle(t,o)(u.join("")));u=[];o.pop()}else{u.push(p)}}));a.push(u.join(""));if(o.length>0){const t=`Chalk template literal is missing ${o.length} closing bracket${o.length===1?"":"s"} (\`}\`)`;throw new Error(t)}return a.join("")}},5978:t=>{"use strict";var r=/[|\\{}()[\]^$+*?.]/g;t.exports=function(t){if(typeof t!=="string"){throw new TypeError("Expected a string")}return t.replace(r,"\\$&")}},6966:t=>{"use strict";t.exports=(t,r)=>{r=r||process.argv;const i=t.startsWith("-")?"":t.length===1?"-":"--";const o=r.indexOf(i+t);const a=r.indexOf("--");return o!==-1&&(a===-1?true:o<a)}},1851:(t,r,i)=>{"use strict";const o=i(2037);const a=i(6966);const u=process.env;let l;if(a("no-color")||a("no-colors")||a("color=false")){l=false}else if(a("color")||a("colors")||a("color=true")||a("color=always")){l=true}if("FORCE_COLOR"in u){l=u.FORCE_COLOR.length===0||parseInt(u.FORCE_COLOR,10)!==0}function translateLevel(t){if(t===0){return false}return{level:t,hasBasic:true,has256:t>=2,has16m:t>=3}}function supportsColor(t){if(l===false){return 0}if(a("color=16m")||a("color=full")||a("color=truecolor")){return 3}if(a("color=256")){return 2}if(t&&!t.isTTY&&l!==true){return 0}const r=l?1:0;if(process.platform==="win32"){const t=o.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number(t[0])>=10&&Number(t[2])>=10586){return Number(t[2])>=14931?3:2}return 1}if("CI"in u){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((t=>t in u))||u.CI_NAME==="codeship"){return 1}return r}if("TEAMCITY_VERSION"in u){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(u.TEAMCITY_VERSION)?1:0}if(u.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in u){const t=parseInt((u.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(u.TERM_PROGRAM){case"iTerm.app":return t>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(u.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(u.TERM)){return 1}if("COLORTERM"in u){return 1}if(u.TERM==="dumb"){return r}return r}function getSupportLevel(t){const r=supportsColor(t);return translateLevel(r)}t.exports={supportsColor:getSupportLevel,stdout:getSupportLevel(process.stdout),stderr:getSupportLevel(process.stderr)}},5642:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};const a=o(i(7987));function spawnAsync(t,r,i={}){const o=new Error;const u=o.stack?o.stack.replace(/^.*/," ..."):null;let l;let h=new Promise(((o,h)=>{let{ignoreStdio:d,...p}=i;l=(0,a.default)(t,r,p);let g="";let y="";if(!d){if(l.stdout){l.stdout.on("data",(t=>{g+=t}))}if(l.stderr){l.stderr.on("data",(t=>{y+=t}))}}let completionListener=(i,a)=>{l.removeListener("error",errorListener);let d={pid:l.pid,output:[g,y],stdout:g,stderr:y,status:i,signal:a};if(i!==0){let o=r&&r.length>0?` ${r.join(" ")}`:"";let l=a?new Error(`${t}${o} exited with signal: ${a}`):new Error(`${t}${o} exited with non-zero code: ${i}`);if(l.stack&&u){l.stack+=`\n${u}`}Object.assign(l,d);h(l)}else{o(d)}};let errorListener=t=>{if(d){l.removeListener("exit",completionListener)}else{l.removeListener("close",completionListener)}Object.assign(t,{pid:l.pid,output:[g,y],stdout:g,stderr:y,status:null,signal:null});h(t)};if(d){l.once("exit",completionListener)}else{l.once("close",completionListener)}l.once("error",errorListener)}));h.child=l;return h}t.exports=spawnAsync},3741:(t,r,i)=>{"use strict";t=i.nmd(t);const wrapAnsi16=(t,r)=>(...i)=>{const o=t(...i);return`[${o+r}m`};const wrapAnsi256=(t,r)=>(...i)=>{const o=t(...i);return`[${38+r};5;${o}m`};const wrapAnsi16m=(t,r)=>(...i)=>{const o=t(...i);return`[${38+r};2;${o[0]};${o[1]};${o[2]}m`};const ansi2ansi=t=>t;const rgb2rgb=(t,r,i)=>[t,r,i];const setLazyProperty=(t,r,i)=>{Object.defineProperty(t,r,{get:()=>{const o=i();Object.defineProperty(t,r,{value:o,enumerable:true,configurable:true});return o},enumerable:true,configurable:true})};let o;const makeDynamicStyles=(t,r,a,u)=>{if(o===undefined){o=i(1593)}const l=u?10:0;const h={};for(const[i,u]of Object.entries(o)){const o=i==="ansi16"?"ansi":i;if(i===r){h[o]=t(a,l)}else if(typeof u==="object"){h[o]=t(u[r],l)}}return h};function assembleStyles(){const t=new Map;const r={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]}};r.color.gray=r.color.blackBright;r.bgColor.bgGray=r.bgColor.bgBlackBright;r.color.grey=r.color.blackBright;r.bgColor.bgGrey=r.bgColor.bgBlackBright;for(const[i,o]of Object.entries(r)){for(const[i,a]of Object.entries(o)){r[i]={open:`[${a[0]}m`,close:`[${a[1]}m`};o[i]=r[i];t.set(a[0],a[1])}Object.defineProperty(r,i,{value:o,enumerable:false})}Object.defineProperty(r,"codes",{value:t,enumerable:false});r.color.close="[39m";r.bgColor.close="[49m";setLazyProperty(r.color,"ansi",(()=>makeDynamicStyles(wrapAnsi16,"ansi16",ansi2ansi,false)));setLazyProperty(r.color,"ansi256",(()=>makeDynamicStyles(wrapAnsi256,"ansi256",ansi2ansi,false)));setLazyProperty(r.color,"ansi16m",(()=>makeDynamicStyles(wrapAnsi16m,"rgb",rgb2rgb,false)));setLazyProperty(r.bgColor,"ansi",(()=>makeDynamicStyles(wrapAnsi16,"ansi16",ansi2ansi,true)));setLazyProperty(r.bgColor,"ansi256",(()=>makeDynamicStyles(wrapAnsi256,"ansi256",ansi2ansi,true)));setLazyProperty(r.bgColor,"ansi16m",(()=>makeDynamicStyles(wrapAnsi16m,"rgb",rgb2rgb,true)));return r}Object.defineProperty(t,"exports",{enumerable:true,get:assembleStyles})},7606:(t,r,i)=>{const o=i(9407);const a={};for(const t of Object.keys(o)){a[o[t]]=t}const u={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"]}};t.exports=u;for(const t of Object.keys(u)){if(!("channels"in u[t])){throw new Error("missing channels property: "+t)}if(!("labels"in u[t])){throw new Error("missing channel labels property: "+t)}if(u[t].labels.length!==u[t].channels){throw new Error("channel and label counts mismatch: "+t)}const{channels:r,labels:i}=u[t];delete u[t].channels;delete u[t].labels;Object.defineProperty(u[t],"channels",{value:r});Object.defineProperty(u[t],"labels",{value:i})}u.rgb.hsl=function(t){const r=t[0]/255;const i=t[1]/255;const o=t[2]/255;const a=Math.min(r,i,o);const u=Math.max(r,i,o);const l=u-a;let h;let d;if(u===a){h=0}else if(r===u){h=(i-o)/l}else if(i===u){h=2+(o-r)/l}else if(o===u){h=4+(r-i)/l}h=Math.min(h*60,360);if(h<0){h+=360}const p=(a+u)/2;if(u===a){d=0}else if(p<=.5){d=l/(u+a)}else{d=l/(2-u-a)}return[h,d*100,p*100]};u.rgb.hsv=function(t){let r;let i;let o;let a;let u;const l=t[0]/255;const h=t[1]/255;const d=t[2]/255;const p=Math.max(l,h,d);const g=p-Math.min(l,h,d);const diffc=function(t){return(p-t)/6/g+1/2};if(g===0){a=0;u=0}else{u=g/p;r=diffc(l);i=diffc(h);o=diffc(d);if(l===p){a=o-i}else if(h===p){a=1/3+r-o}else if(d===p){a=2/3+i-r}if(a<0){a+=1}else if(a>1){a-=1}}return[a*360,u*100,p*100]};u.rgb.hwb=function(t){const r=t[0];const i=t[1];let o=t[2];const a=u.rgb.hsl(t)[0];const l=1/255*Math.min(r,Math.min(i,o));o=1-1/255*Math.max(r,Math.max(i,o));return[a,l*100,o*100]};u.rgb.cmyk=function(t){const r=t[0]/255;const i=t[1]/255;const o=t[2]/255;const a=Math.min(1-r,1-i,1-o);const u=(1-r-a)/(1-a)||0;const l=(1-i-a)/(1-a)||0;const h=(1-o-a)/(1-a)||0;return[u*100,l*100,h*100,a*100]};function comparativeDistance(t,r){return(t[0]-r[0])**2+(t[1]-r[1])**2+(t[2]-r[2])**2}u.rgb.keyword=function(t){const r=a[t];if(r){return r}let i=Infinity;let u;for(const r of Object.keys(o)){const a=o[r];const l=comparativeDistance(t,a);if(l<i){i=l;u=r}}return u};u.keyword.rgb=function(t){return o[t]};u.rgb.xyz=function(t){let r=t[0]/255;let i=t[1]/255;let o=t[2]/255;r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;i=i>.04045?((i+.055)/1.055)**2.4:i/12.92;o=o>.04045?((o+.055)/1.055)**2.4:o/12.92;const a=r*.4124+i*.3576+o*.1805;const u=r*.2126+i*.7152+o*.0722;const l=r*.0193+i*.1192+o*.9505;return[a*100,u*100,l*100]};u.rgb.lab=function(t){const r=u.rgb.xyz(t);let i=r[0];let o=r[1];let a=r[2];i/=95.047;o/=100;a/=108.883;i=i>.008856?i**(1/3):7.787*i+16/116;o=o>.008856?o**(1/3):7.787*o+16/116;a=a>.008856?a**(1/3):7.787*a+16/116;const l=116*o-16;const h=500*(i-o);const d=200*(o-a);return[l,h,d]};u.hsl.rgb=function(t){const r=t[0]/360;const i=t[1]/100;const o=t[2]/100;let a;let u;let l;if(i===0){l=o*255;return[l,l,l]}if(o<.5){a=o*(1+i)}else{a=o+i-o*i}const h=2*o-a;const d=[0,0,0];for(let t=0;t<3;t++){u=r+1/3*-(t-1);if(u<0){u++}if(u>1){u--}if(6*u<1){l=h+(a-h)*6*u}else if(2*u<1){l=a}else if(3*u<2){l=h+(a-h)*(2/3-u)*6}else{l=h}d[t]=l*255}return d};u.hsl.hsv=function(t){const r=t[0];let i=t[1]/100;let o=t[2]/100;let a=i;const u=Math.max(o,.01);o*=2;i*=o<=1?o:2-o;a*=u<=1?u:2-u;const l=(o+i)/2;const h=o===0?2*a/(u+a):2*i/(o+i);return[r,h*100,l*100]};u.hsv.rgb=function(t){const r=t[0]/60;const i=t[1]/100;let o=t[2]/100;const a=Math.floor(r)%6;const u=r-Math.floor(r);const l=255*o*(1-i);const h=255*o*(1-i*u);const d=255*o*(1-i*(1-u));o*=255;switch(a){case 0:return[o,d,l];case 1:return[h,o,l];case 2:return[l,o,d];case 3:return[l,h,o];case 4:return[d,l,o];case 5:return[o,l,h]}};u.hsv.hsl=function(t){const r=t[0];const i=t[1]/100;const o=t[2]/100;const a=Math.max(o,.01);let u;let l;l=(2-i)*o;const h=(2-i)*a;u=i*a;u/=h<=1?h:2-h;u=u||0;l/=2;return[r,u*100,l*100]};u.hwb.rgb=function(t){const r=t[0]/360;let i=t[1]/100;let o=t[2]/100;const a=i+o;let u;if(a>1){i/=a;o/=a}const l=Math.floor(6*r);const h=1-o;u=6*r-l;if((l&1)!==0){u=1-u}const d=i+u*(h-i);let p;let g;let y;switch(l){default:case 6:case 0:p=h;g=d;y=i;break;case 1:p=d;g=h;y=i;break;case 2:p=i;g=h;y=d;break;case 3:p=i;g=d;y=h;break;case 4:p=d;g=i;y=h;break;case 5:p=h;g=i;y=d;break}return[p*255,g*255,y*255]};u.cmyk.rgb=function(t){const r=t[0]/100;const i=t[1]/100;const o=t[2]/100;const a=t[3]/100;const u=1-Math.min(1,r*(1-a)+a);const l=1-Math.min(1,i*(1-a)+a);const h=1-Math.min(1,o*(1-a)+a);return[u*255,l*255,h*255]};u.xyz.rgb=function(t){const r=t[0]/100;const i=t[1]/100;const o=t[2]/100;let a;let u;let l;a=r*3.2406+i*-1.5372+o*-.4986;u=r*-.9689+i*1.8758+o*.0415;l=r*.0557+i*-.204+o*1.057;a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92;u=u>.0031308?1.055*u**(1/2.4)-.055:u*12.92;l=l>.0031308?1.055*l**(1/2.4)-.055:l*12.92;a=Math.min(Math.max(0,a),1);u=Math.min(Math.max(0,u),1);l=Math.min(Math.max(0,l),1);return[a*255,u*255,l*255]};u.xyz.lab=function(t){let r=t[0];let i=t[1];let o=t[2];r/=95.047;i/=100;o/=108.883;r=r>.008856?r**(1/3):7.787*r+16/116;i=i>.008856?i**(1/3):7.787*i+16/116;o=o>.008856?o**(1/3):7.787*o+16/116;const a=116*i-16;const u=500*(r-i);const l=200*(i-o);return[a,u,l]};u.lab.xyz=function(t){const r=t[0];const i=t[1];const o=t[2];let a;let u;let l;u=(r+16)/116;a=i/500+u;l=u-o/200;const h=u**3;const d=a**3;const p=l**3;u=h>.008856?h:(u-16/116)/7.787;a=d>.008856?d:(a-16/116)/7.787;l=p>.008856?p:(l-16/116)/7.787;a*=95.047;u*=100;l*=108.883;return[a,u,l]};u.lab.lch=function(t){const r=t[0];const i=t[1];const o=t[2];let a;const u=Math.atan2(o,i);a=u*360/2/Math.PI;if(a<0){a+=360}const l=Math.sqrt(i*i+o*o);return[r,l,a]};u.lch.lab=function(t){const r=t[0];const i=t[1];const o=t[2];const a=o/360*2*Math.PI;const u=i*Math.cos(a);const l=i*Math.sin(a);return[r,u,l]};u.rgb.ansi16=function(t,r=null){const[i,o,a]=t;let l=r===null?u.rgb.hsv(t)[2]:r;l=Math.round(l/50);if(l===0){return 30}let h=30+(Math.round(a/255)<<2|Math.round(o/255)<<1|Math.round(i/255));if(l===2){h+=60}return h};u.hsv.ansi16=function(t){return u.rgb.ansi16(u.hsv.rgb(t),t[2])};u.rgb.ansi256=function(t){const r=t[0];const i=t[1];const o=t[2];if(r===i&&i===o){if(r<8){return 16}if(r>248){return 231}return Math.round((r-8)/247*24)+232}const a=16+36*Math.round(r/255*5)+6*Math.round(i/255*5)+Math.round(o/255*5);return a};u.ansi16.rgb=function(t){let r=t%10;if(r===0||r===7){if(t>50){r+=3.5}r=r/10.5*255;return[r,r,r]}const i=(~~(t>50)+1)*.5;const o=(r&1)*i*255;const a=(r>>1&1)*i*255;const u=(r>>2&1)*i*255;return[o,a,u]};u.ansi256.rgb=function(t){if(t>=232){const r=(t-232)*10+8;return[r,r,r]}t-=16;let r;const i=Math.floor(t/36)/5*255;const o=Math.floor((r=t%36)/6)/5*255;const a=r%6/5*255;return[i,o,a]};u.rgb.hex=function(t){const r=((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255);const i=r.toString(16).toUpperCase();return"000000".substring(i.length)+i};u.hex.rgb=function(t){const r=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!r){return[0,0,0]}let i=r[0];if(r[0].length===3){i=i.split("").map((t=>t+t)).join("")}const o=parseInt(i,16);const a=o>>16&255;const u=o>>8&255;const l=o&255;return[a,u,l]};u.rgb.hcg=function(t){const r=t[0]/255;const i=t[1]/255;const o=t[2]/255;const a=Math.max(Math.max(r,i),o);const u=Math.min(Math.min(r,i),o);const l=a-u;let h;let d;if(l<1){h=u/(1-l)}else{h=0}if(l<=0){d=0}else if(a===r){d=(i-o)/l%6}else if(a===i){d=2+(o-r)/l}else{d=4+(r-i)/l}d/=6;d%=1;return[d*360,l*100,h*100]};u.hsl.hcg=function(t){const r=t[1]/100;const i=t[2]/100;const o=i<.5?2*r*i:2*r*(1-i);let a=0;if(o<1){a=(i-.5*o)/(1-o)}return[t[0],o*100,a*100]};u.hsv.hcg=function(t){const r=t[1]/100;const i=t[2]/100;const o=r*i;let a=0;if(o<1){a=(i-o)/(1-o)}return[t[0],o*100,a*100]};u.hcg.rgb=function(t){const r=t[0]/360;const i=t[1]/100;const o=t[2]/100;if(i===0){return[o*255,o*255,o*255]}const a=[0,0,0];const u=r%1*6;const l=u%1;const h=1-l;let d=0;switch(Math.floor(u)){case 0:a[0]=1;a[1]=l;a[2]=0;break;case 1:a[0]=h;a[1]=1;a[2]=0;break;case 2:a[0]=0;a[1]=1;a[2]=l;break;case 3:a[0]=0;a[1]=h;a[2]=1;break;case 4:a[0]=l;a[1]=0;a[2]=1;break;default:a[0]=1;a[1]=0;a[2]=h}d=(1-i)*o;return[(i*a[0]+d)*255,(i*a[1]+d)*255,(i*a[2]+d)*255]};u.hcg.hsv=function(t){const r=t[1]/100;const i=t[2]/100;const o=r+i*(1-r);let a=0;if(o>0){a=r/o}return[t[0],a*100,o*100]};u.hcg.hsl=function(t){const r=t[1]/100;const i=t[2]/100;const o=i*(1-r)+.5*r;let a=0;if(o>0&&o<.5){a=r/(2*o)}else if(o>=.5&&o<1){a=r/(2*(1-o))}return[t[0],a*100,o*100]};u.hcg.hwb=function(t){const r=t[1]/100;const i=t[2]/100;const o=r+i*(1-r);return[t[0],(o-r)*100,(1-o)*100]};u.hwb.hcg=function(t){const r=t[1]/100;const i=t[2]/100;const o=1-i;const a=o-r;let u=0;if(a<1){u=(o-a)/(1-a)}return[t[0],a*100,u*100]};u.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};u.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};u.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};u.gray.hsl=function(t){return[0,0,t[0]]};u.gray.hsv=u.gray.hsl;u.gray.hwb=function(t){return[0,100,t[0]]};u.gray.cmyk=function(t){return[0,0,0,t[0]]};u.gray.lab=function(t){return[t[0],0,0]};u.gray.hex=function(t){const r=Math.round(t[0]/100*255)&255;const i=(r<<16)+(r<<8)+r;const o=i.toString(16).toUpperCase();return"000000".substring(o.length)+o};u.rgb.gray=function(t){const r=(t[0]+t[1]+t[2])/3;return[r/255*100]}},1593:(t,r,i)=>{const o=i(7606);const a=i(1529);const u={};const l=Object.keys(o);function wrapRaw(t){const wrappedFn=function(...r){const i=r[0];if(i===undefined||i===null){return i}if(i.length>1){r=i}return t(r)};if("conversion"in t){wrappedFn.conversion=t.conversion}return wrappedFn}function wrapRounded(t){const wrappedFn=function(...r){const i=r[0];if(i===undefined||i===null){return i}if(i.length>1){r=i}const o=t(r);if(typeof o==="object"){for(let t=o.length,r=0;r<t;r++){o[r]=Math.round(o[r])}}return o};if("conversion"in t){wrappedFn.conversion=t.conversion}return wrappedFn}l.forEach((t=>{u[t]={};Object.defineProperty(u[t],"channels",{value:o[t].channels});Object.defineProperty(u[t],"labels",{value:o[t].labels});const r=a(t);const i=Object.keys(r);i.forEach((i=>{const o=r[i];u[t][i]=wrapRounded(o);u[t][i].raw=wrapRaw(o)}))}));t.exports=u},1529:(t,r,i)=>{const o=i(7606);function buildGraph(){const t={};const r=Object.keys(o);for(let i=r.length,o=0;o<i;o++){t[r[o]]={distance:-1,parent:null}}return t}function deriveBFS(t){const r=buildGraph();const i=[t];r[t].distance=0;while(i.length){const t=i.pop();const a=Object.keys(o[t]);for(let o=a.length,u=0;u<o;u++){const o=a[u];const l=r[o];if(l.distance===-1){l.distance=r[t].distance+1;l.parent=t;i.unshift(o)}}}return r}function link(t,r){return function(i){return r(t(i))}}function wrapConversion(t,r){const i=[r[t].parent,t];let a=o[r[t].parent][t];let u=r[t].parent;while(r[u].parent){i.unshift(r[u].parent);a=link(o[r[u].parent][u],a);u=r[u].parent}a.conversion=i;return a}t.exports=function(t){const r=deriveBFS(t);const i={};const o=Object.keys(r);for(let t=o.length,a=0;a<t;a++){const t=o[a];const u=r[t];if(u.parent===null){continue}i[t]=wrapConversion(t,r)}return i}},4816:t=>{const r=Symbol("arg flag");class ArgError extends Error{constructor(t,r){super(t);this.name="ArgError";this.code=r;Object.setPrototypeOf(this,ArgError.prototype)}}function arg(t,{argv:i=process.argv.slice(2),permissive:o=false,stopAtPositional:a=false}={}){if(!t){throw new ArgError("argument specification object is required","ARG_CONFIG_NO_SPEC")}const u={_:[]};const l={};const h={};for(const i of Object.keys(t)){if(!i){throw new ArgError("argument key cannot be an empty string","ARG_CONFIG_EMPTY_KEY")}if(i[0]!=="-"){throw new ArgError(`argument key must start with '-' but found: '${i}'`,"ARG_CONFIG_NONOPT_KEY")}if(i.length===1){throw new ArgError(`argument key must have a name; singular '-' keys are not allowed: ${i}`,"ARG_CONFIG_NONAME_KEY")}if(typeof t[i]==="string"){l[i]=t[i];continue}let o=t[i];let a=false;if(Array.isArray(o)&&o.length===1&&typeof o[0]==="function"){const[t]=o;o=(r,i,o=[])=>{o.push(t(r,i,o[o.length-1]));return o};a=t===Boolean||t[r]===true}else if(typeof o==="function"){a=o===Boolean||o[r]===true}else{throw new ArgError(`type missing or not a function or valid array type: ${i}`,"ARG_CONFIG_VAD_TYPE")}if(i[1]!=="-"&&i.length>2){throw new ArgError(`short argument keys (with a single hyphen) must have only one character: ${i}`,"ARG_CONFIG_SHORTOPT_TOOLONG")}h[i]=[o,a]}for(let t=0,r=i.length;t<r;t++){const r=i[t];if(a&&u._.length>0){u._=u._.concat(i.slice(t));break}if(r==="--"){u._=u._.concat(i.slice(t+1));break}if(r.length>1&&r[0]==="-"){const a=r[1]==="-"||r.length===2?[r]:r.slice(1).split("").map((t=>`-${t}`));for(let r=0;r<a.length;r++){const d=a[r];const[p,g]=d[1]==="-"?d.split(/=(.*)/,2):[d,undefined];let y=p;while(y in l){y=l[y]}if(!(y in h)){if(o){u._.push(d);continue}else{throw new ArgError(`unknown or unexpected option: ${p}`,"ARG_UNKNOWN_OPTION")}}const[b,w]=h[y];if(!w&&r+1<a.length){throw new ArgError(`option requires argument (but was followed by another short argument): ${p}`,"ARG_MISSING_REQUIRED_SHORTARG")}if(w){u[y]=b(true,y,u[y])}else if(g===undefined){if(i.length<t+2||i[t+1].length>1&&i[t+1][0]==="-"&&!(i[t+1].match(/^-?\d*(\.(?=\d))?\d*$/)&&(b===Number||typeof BigInt!=="undefined"&&b===BigInt))){const t=p===y?"":` (alias for ${y})`;throw new ArgError(`option requires argument: ${p}${t}`,"ARG_MISSING_REQUIRED_LONGARG")}u[y]=b(i[t+1],y,u[y]);++t}else{u[y]=b(g,y,u[y])}}}else{u._.push(r)}}return u}arg.flag=t=>{t[r]=true;return t};arg.COUNT=arg.flag(((t,r,i)=>(i||0)+1));arg.ArgError=ArgError;t.exports=arg},3353:t=>{"use strict";t.exports=balanced;function balanced(t,r,i){if(t instanceof RegExp)t=maybeMatch(t,i);if(r instanceof RegExp)r=maybeMatch(r,i);var o=range(t,r,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+t.length,o[1]),post:i.slice(o[1]+r.length)}}function maybeMatch(t,r){var i=r.match(t);return i?i[0]:null}balanced.range=range;function range(t,r,i){var o,a,u,l,h;var d=i.indexOf(t);var p=i.indexOf(r,d+1);var g=d;if(d>=0&&p>0){if(t===r){return[d,p]}o=[];u=i.length;while(g>=0&&!h){if(g==d){o.push(g);d=i.indexOf(t,g+1)}else if(o.length==1){h=[o.pop(),p]}else{a=o.pop();if(a<u){u=a;l=p}p=i.indexOf(r,g+1)}g=d<p&&d>=0?d:p}if(o.length){h=[u,l]}}return h}},8746:(t,r,i)=>{"use strict";const o=i(3741);const{stdout:a,stderr:u}=i(395);const{stringReplaceAll:l,stringEncaseCRLFWithFirstIndex:h}=i(5611);const{isArray:d}=Array;const p=["ansi","ansi","ansi256","ansi16m"];const g=Object.create(null);const applyOptions=(t,r={})=>{if(r.level&&!(Number.isInteger(r.level)&&r.level>=0&&r.level<=3)){throw new Error("The `level` option should be an integer from 0 to 3")}const i=a?a.level:0;t.level=r.level===undefined?i:r.level};class ChalkClass{constructor(t){return chalkFactory(t)}}const chalkFactory=t=>{const r={};applyOptions(r,t);r.template=(...t)=>chalkTag(r.template,...t);Object.setPrototypeOf(r,Chalk.prototype);Object.setPrototypeOf(r.template,r);r.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")};r.template.Instance=ChalkClass;return r.template};function Chalk(t){return chalkFactory(t)}for(const[t,r]of Object.entries(o)){g[t]={get(){const i=createBuilder(this,createStyler(r.open,r.close,this._styler),this._isEmpty);Object.defineProperty(this,t,{value:i});return i}}}g.visible={get(){const t=createBuilder(this,this._styler,true);Object.defineProperty(this,"visible",{value:t});return t}};const y=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const t of y){g[t]={get(){const{level:r}=this;return function(...i){const a=createStyler(o.color[p[r]][t](...i),o.color.close,this._styler);return createBuilder(this,a,this._isEmpty)}}}}for(const t of y){const r="bg"+t[0].toUpperCase()+t.slice(1);g[r]={get(){const{level:r}=this;return function(...i){const a=createStyler(o.bgColor[p[r]][t](...i),o.bgColor.close,this._styler);return createBuilder(this,a,this._isEmpty)}}}}const b=Object.defineProperties((()=>{}),{...g,level:{enumerable:true,get(){return this._generator.level},set(t){this._generator.level=t}}});const createStyler=(t,r,i)=>{let o;let a;if(i===undefined){o=t;a=r}else{o=i.openAll+t;a=r+i.closeAll}return{open:t,close:r,openAll:o,closeAll:a,parent:i}};const createBuilder=(t,r,i)=>{const builder=(...t)=>{if(d(t[0])&&d(t[0].raw)){return applyStyle(builder,chalkTag(builder,...t))}return applyStyle(builder,t.length===1?""+t[0]:t.join(" "))};Object.setPrototypeOf(builder,b);builder._generator=t;builder._styler=r;builder._isEmpty=i;return builder};const applyStyle=(t,r)=>{if(t.level<=0||!r){return t._isEmpty?"":r}let i=t._styler;if(i===undefined){return r}const{openAll:o,closeAll:a}=i;if(r.indexOf("")!==-1){while(i!==undefined){r=l(r,i.close,i.open);i=i.parent}}const u=r.indexOf("\n");if(u!==-1){r=h(r,a,o,u)}return o+r+a};let w;const chalkTag=(t,...r)=>{const[o]=r;if(!d(o)||!d(o.raw)){return r.join(" ")}const a=r.slice(1);const u=[o.raw[0]];for(let t=1;t<o.length;t++){u.push(String(a[t-1]).replace(/[{}\\]/g,"\\$&"),String(o.raw[t]))}if(w===undefined){w=i(2746)}return w(t,u.join(""))};Object.defineProperties(Chalk.prototype,g);const v=Chalk();v.supportsColor=a;v.stderr=Chalk({level:u?u.level:0});v.stderr.supportsColor=u;t.exports=v},2746:t=>{"use strict";const r=/(?:\\(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 i=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;const o=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;const a=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi;const u=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function unescape(t){const r=t[0]==="u";const i=t[1]==="{";if(r&&!i&&t.length===5||t[0]==="x"&&t.length===3){return String.fromCharCode(parseInt(t.slice(1),16))}if(r&&i){return String.fromCodePoint(parseInt(t.slice(2,-1),16))}return u.get(t)||t}function parseArguments(t,r){const i=[];const u=r.trim().split(/\s*,\s*/g);let l;for(const r of u){const u=Number(r);if(!Number.isNaN(u)){i.push(u)}else if(l=r.match(o)){i.push(l[2].replace(a,((t,r,i)=>r?unescape(r):i)))}else{throw new Error(`Invalid Chalk template style argument: ${r} (in style '${t}')`)}}return i}function parseStyle(t){i.lastIndex=0;const r=[];let o;while((o=i.exec(t))!==null){const t=o[1];if(o[2]){const i=parseArguments(t,o[2]);r.push([t].concat(i))}else{r.push([t])}}return r}function buildStyle(t,r){const i={};for(const t of r){for(const r of t.styles){i[r[0]]=t.inverse?null:r.slice(1)}}let o=t;for(const[t,r]of Object.entries(i)){if(!Array.isArray(r)){continue}if(!(t in o)){throw new Error(`Unknown Chalk style: ${t}`)}o=r.length>0?o[t](...r):o[t]}return o}t.exports=(t,i)=>{const o=[];const a=[];let u=[];i.replace(r,((r,i,l,h,d,p)=>{if(i){u.push(unescape(i))}else if(h){const r=u.join("");u=[];a.push(o.length===0?r:buildStyle(t,o)(r));o.push({inverse:l,styles:parseStyle(h)})}else if(d){if(o.length===0){throw new Error("Found extraneous } in Chalk template literal")}a.push(buildStyle(t,o)(u.join("")));u=[];o.pop()}else{u.push(p)}}));a.push(u.join(""));if(o.length>0){const t=`Chalk template literal is missing ${o.length} closing bracket${o.length===1?"":"s"} (\`}\`)`;throw new Error(t)}return a.join("")}},5611:t=>{"use strict";const stringReplaceAll=(t,r,i)=>{let o=t.indexOf(r);if(o===-1){return t}const a=r.length;let u=0;let l="";do{l+=t.substr(u,o-u)+r+i;u=o+a;o=t.indexOf(r,u)}while(o!==-1);l+=t.substr(u);return l};const stringEncaseCRLFWithFirstIndex=(t,r,i,o)=>{let a=0;let u="";do{const l=t[o-1]==="\r";u+=t.substr(a,(l?o-1:o)-a)+r+(l?"\r\n":"\n")+i;a=o+1;o=t.indexOf("\n",a)}while(o!==-1);u+=t.substr(a);return u};t.exports={stringReplaceAll:stringReplaceAll,stringEncaseCRLFWithFirstIndex:stringEncaseCRLFWithFirstIndex}},6067:(t,r,i)=>{"use strict";const o=Object.assign({},i(2548));const a=Object.keys(o);Object.defineProperty(o,"random",{get(){const t=Math.floor(Math.random()*a.length);const r=a[t];return o[r]}});t.exports=o},6845:t=>{var r=function(){"use strict";function clone(t,r,i,o){var a;if(typeof r==="object"){i=r.depth;o=r.prototype;a=r.filter;r=r.circular}var u=[];var l=[];var h=typeof Buffer!="undefined";if(typeof r=="undefined")r=true;if(typeof i=="undefined")i=Infinity;function _clone(t,i){if(t===null)return null;if(i==0)return t;var a;var d;if(typeof t!="object"){return t}if(clone.__isArray(t)){a=[]}else if(clone.__isRegExp(t)){a=new RegExp(t.source,__getRegExpFlags(t));if(t.lastIndex)a.lastIndex=t.lastIndex}else if(clone.__isDate(t)){a=new Date(t.getTime())}else if(h&&Buffer.isBuffer(t)){if(Buffer.allocUnsafe){a=Buffer.allocUnsafe(t.length)}else{a=new Buffer(t.length)}t.copy(a);return a}else{if(typeof o=="undefined"){d=Object.getPrototypeOf(t);a=Object.create(d)}else{a=Object.create(o);d=o}}if(r){var p=u.indexOf(t);if(p!=-1){return l[p]}u.push(t);l.push(a)}for(var g in t){var y;if(d){y=Object.getOwnPropertyDescriptor(d,g)}if(y&&y.set==null){continue}a[g]=_clone(t[g],i-1)}return a}return _clone(t,i)}clone.clonePrototype=function clonePrototype(t){if(t===null)return null;var c=function(){};c.prototype=t;return new c};function __objToStr(t){return Object.prototype.toString.call(t)}clone.__objToStr=__objToStr;function __isDate(t){return typeof t==="object"&&__objToStr(t)==="[object Date]"}clone.__isDate=__isDate;function __isArray(t){return typeof t==="object"&&__objToStr(t)==="[object Array]"}clone.__isArray=__isArray;function __isRegExp(t){return typeof t==="object"&&__objToStr(t)==="[object RegExp]"}clone.__isRegExp=__isRegExp;function __getRegExpFlags(t){var r="";if(t.global)r+="g";if(t.ignoreCase)r+="i";if(t.multiline)r+="m";return r}clone.__getRegExpFlags=__getRegExpFlags;return clone}();if(true&&t.exports){t.exports=r}},9598:(t,r,i)=>{var o=i(9120);var a={};for(var u in o){if(o.hasOwnProperty(u)){a[o[u]]=u}}var l=t.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 h in l){if(l.hasOwnProperty(h)){if(!("channels"in l[h])){throw new Error("missing channels property: "+h)}if(!("labels"in l[h])){throw new Error("missing channel labels property: "+h)}if(l[h].labels.length!==l[h].channels){throw new Error("channel and label counts mismatch: "+h)}var d=l[h].channels;var p=l[h].labels;delete l[h].channels;delete l[h].labels;Object.defineProperty(l[h],"channels",{value:d});Object.defineProperty(l[h],"labels",{value:p})}}l.rgb.hsl=function(t){var r=t[0]/255;var i=t[1]/255;var o=t[2]/255;var a=Math.min(r,i,o);var u=Math.max(r,i,o);var l=u-a;var h;var d;var p;if(u===a){h=0}else if(r===u){h=(i-o)/l}else if(i===u){h=2+(o-r)/l}else if(o===u){h=4+(r-i)/l}h=Math.min(h*60,360);if(h<0){h+=360}p=(a+u)/2;if(u===a){d=0}else if(p<=.5){d=l/(u+a)}else{d=l/(2-u-a)}return[h,d*100,p*100]};l.rgb.hsv=function(t){var r;var i;var o;var a;var u;var l=t[0]/255;var h=t[1]/255;var d=t[2]/255;var p=Math.max(l,h,d);var g=p-Math.min(l,h,d);var diffc=function(t){return(p-t)/6/g+1/2};if(g===0){a=u=0}else{u=g/p;r=diffc(l);i=diffc(h);o=diffc(d);if(l===p){a=o-i}else if(h===p){a=1/3+r-o}else if(d===p){a=2/3+i-r}if(a<0){a+=1}else if(a>1){a-=1}}return[a*360,u*100,p*100]};l.rgb.hwb=function(t){var r=t[0];var i=t[1];var o=t[2];var a=l.rgb.hsl(t)[0];var u=1/255*Math.min(r,Math.min(i,o));o=1-1/255*Math.max(r,Math.max(i,o));return[a,u*100,o*100]};l.rgb.cmyk=function(t){var r=t[0]/255;var i=t[1]/255;var o=t[2]/255;var a;var u;var l;var h;h=Math.min(1-r,1-i,1-o);a=(1-r-h)/(1-h)||0;u=(1-i-h)/(1-h)||0;l=(1-o-h)/(1-h)||0;return[a*100,u*100,l*100,h*100]};function comparativeDistance(t,r){return Math.pow(t[0]-r[0],2)+Math.pow(t[1]-r[1],2)+Math.pow(t[2]-r[2],2)}l.rgb.keyword=function(t){var r=a[t];if(r){return r}var i=Infinity;var u;for(var l in o){if(o.hasOwnProperty(l)){var h=o[l];var d=comparativeDistance(t,h);if(d<i){i=d;u=l}}}return u};l.keyword.rgb=function(t){return o[t]};l.rgb.xyz=function(t){var r=t[0]/255;var i=t[1]/255;var o=t[2]/255;r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92;i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92;o=o>.04045?Math.pow((o+.055)/1.055,2.4):o/12.92;var a=r*.4124+i*.3576+o*.1805;var u=r*.2126+i*.7152+o*.0722;var l=r*.0193+i*.1192+o*.9505;return[a*100,u*100,l*100]};l.rgb.lab=function(t){var r=l.rgb.xyz(t);var i=r[0];var o=r[1];var a=r[2];var u;var h;var d;i/=95.047;o/=100;a/=108.883;i=i>.008856?Math.pow(i,1/3):7.787*i+16/116;o=o>.008856?Math.pow(o,1/3):7.787*o+16/116;a=a>.008856?Math.pow(a,1/3):7.787*a+16/116;u=116*o-16;h=500*(i-o);d=200*(o-a);return[u,h,d]};l.hsl.rgb=function(t){var r=t[0]/360;var i=t[1]/100;var o=t[2]/100;var a;var u;var l;var h;var d;if(i===0){d=o*255;return[d,d,d]}if(o<.5){u=o*(1+i)}else{u=o+i-o*i}a=2*o-u;h=[0,0,0];for(var p=0;p<3;p++){l=r+1/3*-(p-1);if(l<0){l++}if(l>1){l--}if(6*l<1){d=a+(u-a)*6*l}else if(2*l<1){d=u}else if(3*l<2){d=a+(u-a)*(2/3-l)*6}else{d=a}h[p]=d*255}return h};l.hsl.hsv=function(t){var r=t[0];var i=t[1]/100;var o=t[2]/100;var a=i;var u=Math.max(o,.01);var l;var h;o*=2;i*=o<=1?o:2-o;a*=u<=1?u:2-u;h=(o+i)/2;l=o===0?2*a/(u+a):2*i/(o+i);return[r,l*100,h*100]};l.hsv.rgb=function(t){var r=t[0]/60;var i=t[1]/100;var o=t[2]/100;var a=Math.floor(r)%6;var u=r-Math.floor(r);var l=255*o*(1-i);var h=255*o*(1-i*u);var d=255*o*(1-i*(1-u));o*=255;switch(a){case 0:return[o,d,l];case 1:return[h,o,l];case 2:return[l,o,d];case 3:return[l,h,o];case 4:return[d,l,o];case 5:return[o,l,h]}};l.hsv.hsl=function(t){var r=t[0];var i=t[1]/100;var o=t[2]/100;var a=Math.max(o,.01);var u;var l;var h;h=(2-i)*o;u=(2-i)*a;l=i*a;l/=u<=1?u:2-u;l=l||0;h/=2;return[r,l*100,h*100]};l.hwb.rgb=function(t){var r=t[0]/360;var i=t[1]/100;var o=t[2]/100;var a=i+o;var u;var l;var h;var d;if(a>1){i/=a;o/=a}u=Math.floor(6*r);l=1-o;h=6*r-u;if((u&1)!==0){h=1-h}d=i+h*(l-i);var p;var g;var y;switch(u){default:case 6:case 0:p=l;g=d;y=i;break;case 1:p=d;g=l;y=i;break;case 2:p=i;g=l;y=d;break;case 3:p=i;g=d;y=l;break;case 4:p=d;g=i;y=l;break;case 5:p=l;g=i;y=d;break}return[p*255,g*255,y*255]};l.cmyk.rgb=function(t){var r=t[0]/100;var i=t[1]/100;var o=t[2]/100;var a=t[3]/100;var u;var l;var h;u=1-Math.min(1,r*(1-a)+a);l=1-Math.min(1,i*(1-a)+a);h=1-Math.min(1,o*(1-a)+a);return[u*255,l*255,h*255]};l.xyz.rgb=function(t){var r=t[0]/100;var i=t[1]/100;var o=t[2]/100;var a;var u;var l;a=r*3.2406+i*-1.5372+o*-.4986;u=r*-.9689+i*1.8758+o*.0415;l=r*.0557+i*-.204+o*1.057;a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a*12.92;u=u>.0031308?1.055*Math.pow(u,1/2.4)-.055:u*12.92;l=l>.0031308?1.055*Math.pow(l,1/2.4)-.055:l*12.92;a=Math.min(Math.max(0,a),1);u=Math.min(Math.max(0,u),1);l=Math.min(Math.max(0,l),1);return[a*255,u*255,l*255]};l.xyz.lab=function(t){var r=t[0];var i=t[1];var o=t[2];var a;var u;var l;r/=95.047;i/=100;o/=108.883;r=r>.008856?Math.pow(r,1/3):7.787*r+16/116;i=i>.008856?Math.pow(i,1/3):7.787*i+16/116;o=o>.008856?Math.pow(o,1/3):7.787*o+16/116;a=116*i-16;u=500*(r-i);l=200*(i-o);return[a,u,l]};l.lab.xyz=function(t){var r=t[0];var i=t[1];var o=t[2];var a;var u;var l;u=(r+16)/116;a=i/500+u;l=u-o/200;var h=Math.pow(u,3);var d=Math.pow(a,3);var p=Math.pow(l,3);u=h>.008856?h:(u-16/116)/7.787;a=d>.008856?d:(a-16/116)/7.787;l=p>.008856?p:(l-16/116)/7.787;a*=95.047;u*=100;l*=108.883;return[a,u,l]};l.lab.lch=function(t){var r=t[0];var i=t[1];var o=t[2];var a;var u;var l;a=Math.atan2(o,i);u=a*360/2/Math.PI;if(u<0){u+=360}l=Math.sqrt(i*i+o*o);return[r,l,u]};l.lch.lab=function(t){var r=t[0];var i=t[1];var o=t[2];var a;var u;var l;l=o/360*2*Math.PI;a=i*Math.cos(l);u=i*Math.sin(l);return[r,a,u]};l.rgb.ansi16=function(t){var r=t[0];var i=t[1];var o=t[2];var a=1 in arguments?arguments[1]:l.rgb.hsv(t)[2];a=Math.round(a/50);if(a===0){return 30}var u=30+(Math.round(o/255)<<2|Math.round(i/255)<<1|Math.round(r/255));if(a===2){u+=60}return u};l.hsv.ansi16=function(t){return l.rgb.ansi16(l.hsv.rgb(t),t[2])};l.rgb.ansi256=function(t){var r=t[0];var i=t[1];var o=t[2];if(r===i&&i===o){if(r<8){return 16}if(r>248){return 231}return Math.round((r-8)/247*24)+232}var a=16+36*Math.round(r/255*5)+6*Math.round(i/255*5)+Math.round(o/255*5);return a};l.ansi16.rgb=function(t){var r=t%10;if(r===0||r===7){if(t>50){r+=3.5}r=r/10.5*255;return[r,r,r]}var i=(~~(t>50)+1)*.5;var o=(r&1)*i*255;var a=(r>>1&1)*i*255;var u=(r>>2&1)*i*255;return[o,a,u]};l.ansi256.rgb=function(t){if(t>=232){var r=(t-232)*10+8;return[r,r,r]}t-=16;var i;var o=Math.floor(t/36)/5*255;var a=Math.floor((i=t%36)/6)/5*255;var u=i%6/5*255;return[o,a,u]};l.rgb.hex=function(t){var r=((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255);var i=r.toString(16).toUpperCase();return"000000".substring(i.length)+i};l.hex.rgb=function(t){var r=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!r){return[0,0,0]}var i=r[0];if(r[0].length===3){i=i.split("").map((function(t){return t+t})).join("")}var o=parseInt(i,16);var a=o>>16&255;var u=o>>8&255;var l=o&255;return[a,u,l]};l.rgb.hcg=function(t){var r=t[0]/255;var i=t[1]/255;var o=t[2]/255;var a=Math.max(Math.max(r,i),o);var u=Math.min(Math.min(r,i),o);var l=a-u;var h;var d;if(l<1){h=u/(1-l)}else{h=0}if(l<=0){d=0}else if(a===r){d=(i-o)/l%6}else if(a===i){d=2+(o-r)/l}else{d=4+(r-i)/l+4}d/=6;d%=1;return[d*360,l*100,h*100]};l.hsl.hcg=function(t){var r=t[1]/100;var i=t[2]/100;var o=1;var a=0;if(i<.5){o=2*r*i}else{o=2*r*(1-i)}if(o<1){a=(i-.5*o)/(1-o)}return[t[0],o*100,a*100]};l.hsv.hcg=function(t){var r=t[1]/100;var i=t[2]/100;var o=r*i;var a=0;if(o<1){a=(i-o)/(1-o)}return[t[0],o*100,a*100]};l.hcg.rgb=function(t){var r=t[0]/360;var i=t[1]/100;var o=t[2]/100;if(i===0){return[o*255,o*255,o*255]}var a=[0,0,0];var u=r%1*6;var l=u%1;var h=1-l;var d=0;switch(Math.floor(u)){case 0:a[0]=1;a[1]=l;a[2]=0;break;case 1:a[0]=h;a[1]=1;a[2]=0;break;case 2:a[0]=0;a[1]=1;a[2]=l;break;case 3:a[0]=0;a[1]=h;a[2]=1;break;case 4:a[0]=l;a[1]=0;a[2]=1;break;default:a[0]=1;a[1]=0;a[2]=h}d=(1-i)*o;return[(i*a[0]+d)*255,(i*a[1]+d)*255,(i*a[2]+d)*255]};l.hcg.hsv=function(t){var r=t[1]/100;var i=t[2]/100;var o=r+i*(1-r);var a=0;if(o>0){a=r/o}return[t[0],a*100,o*100]};l.hcg.hsl=function(t){var r=t[1]/100;var i=t[2]/100;var o=i*(1-r)+.5*r;var a=0;if(o>0&&o<.5){a=r/(2*o)}else if(o>=.5&&o<1){a=r/(2*(1-o))}return[t[0],a*100,o*100]};l.hcg.hwb=function(t){var r=t[1]/100;var i=t[2]/100;var o=r+i*(1-r);return[t[0],(o-r)*100,(1-o)*100]};l.hwb.hcg=function(t){var r=t[1]/100;var i=t[2]/100;var o=1-i;var a=o-r;var u=0;if(a<1){u=(o-a)/(1-a)}return[t[0],a*100,u*100]};l.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};l.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};l.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};l.gray.hsl=l.gray.hsv=function(t){return[0,0,t[0]]};l.gray.hwb=function(t){return[0,100,t[0]]};l.gray.cmyk=function(t){return[0,0,0,t[0]]};l.gray.lab=function(t){return[t[0],0,0]};l.gray.hex=function(t){var r=Math.round(t[0]/100*255)&255;var i=(r<<16)+(r<<8)+r;var o=i.toString(16).toUpperCase();return"000000".substring(o.length)+o};l.rgb.gray=function(t){var r=(t[0]+t[1]+t[2])/3;return[r/255*100]}},2830:(t,r,i)=>{var o=i(9598);var a=i(5180);var u={};var l=Object.keys(o);function wrapRaw(t){var wrappedFn=function(r){if(r===undefined||r===null){return r}if(arguments.length>1){r=Array.prototype.slice.call(arguments)}return t(r)};if("conversion"in t){wrappedFn.conversion=t.conversion}return wrappedFn}function wrapRounded(t){var wrappedFn=function(r){if(r===undefined||r===null){return r}if(arguments.length>1){r=Array.prototype.slice.call(arguments)}var i=t(r);if(typeof i==="object"){for(var o=i.length,a=0;a<o;a++){i[a]=Math.round(i[a])}}return i};if("conversion"in t){wrappedFn.conversion=t.conversion}return wrappedFn}l.forEach((function(t){u[t]={};Object.defineProperty(u[t],"channels",{value:o[t].channels});Object.defineProperty(u[t],"labels",{value:o[t].labels});var r=a(t);var i=Object.keys(r);i.forEach((function(i){var o=r[i];u[t][i]=wrapRounded(o);u[t][i].raw=wrapRaw(o)}))}));t.exports=u},9120:t=>{"use strict";t.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]}},5180:(t,r,i)=>{var o=i(9598);function buildGraph(){var t={};var r=Object.keys(o);for(var i=r.length,a=0;a<i;a++){t[r[a]]={distance:-1,parent:null}}return t}function deriveBFS(t){var r=buildGraph();var i=[t];r[t].distance=0;while(i.length){var a=i.pop();var u=Object.keys(o[a]);for(var l=u.length,h=0;h<l;h++){var d=u[h];var p=r[d];if(p.distance===-1){p.distance=r[a].distance+1;p.parent=a;i.unshift(d)}}}return r}function link(t,r){return function(i){return r(t(i))}}function wrapConversion(t,r){var i=[r[t].parent,t];var a=o[r[t].parent][t];var u=r[t].parent;while(r[u].parent){i.unshift(r[u].parent);a=link(o[r[u].parent][u],a);u=r[u].parent}a.conversion=i;return a}t.exports=function(t){var r=deriveBFS(t);var i={};var o=Object.keys(r);for(var a=o.length,u=0;u<a;u++){var l=o[u];var h=r[l];if(h.parent===null){continue}i[l]=wrapConversion(l,r)}return i}},9407:t=>{"use strict";t.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]}},7987:(t,r,i)=>{"use strict";const o=i(2081);const a=i(1655);const u=i(9738);function spawn(t,r,i){const l=a(t,r,i);const h=o.spawn(l.command,l.args,l.options);u.hookChildProcess(h,l);return h}function spawnSync(t,r,i){const l=a(t,r,i);const h=o.spawnSync(l.command,l.args,l.options);h.error=h.error||u.verifyENOENTSync(h.status,l);return h}t.exports=spawn;t.exports.spawn=spawn;t.exports.sync=spawnSync;t.exports._parse=a;t.exports._enoent=u},9738:t=>{"use strict";const r=process.platform==="win32";function notFoundError(t,r){return Object.assign(new Error(`${r} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${r} ${t.command}`,path:t.command,spawnargs:t.args})}function hookChildProcess(t,i){if(!r){return}const o=t.emit;t.emit=function(r,a){if(r==="exit"){const r=verifyENOENT(a,i);if(r){return o.call(t,"error",r)}}return o.apply(t,arguments)}}function verifyENOENT(t,i){if(r&&t===1&&!i.file){return notFoundError(i.original,"spawn")}return null}function verifyENOENTSync(t,i){if(r&&t===1&&!i.file){return notFoundError(i.original,"spawnSync")}return null}t.exports={hookChildProcess:hookChildProcess,verifyENOENT:verifyENOENT,verifyENOENTSync:verifyENOENTSync,notFoundError:notFoundError}},1655:(t,r,i)=>{"use strict";const o=i(1017);const a=i(7534);const u=i(8902);const l=i(2964);const h=process.platform==="win32";const d=/\.(?:com|exe)$/i;const p=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function detectShebang(t){t.file=a(t);const r=t.file&&l(t.file);if(r){t.args.unshift(t.file);t.command=r;return a(t)}return t.file}function parseNonShell(t){if(!h){return t}const r=detectShebang(t);const i=!d.test(r);if(t.options.forceShell||i){const i=p.test(r);t.command=o.normalize(t.command);t.command=u.command(t.command);t.args=t.args.map((t=>u.argument(t,i)));const a=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${a}"`];t.command=process.env.comspec||"cmd.exe";t.options.windowsVerbatimArguments=true}return t}function parse(t,r,i){if(r&&!Array.isArray(r)){i=r;r=null}r=r?r.slice(0):[];i=Object.assign({},i);const o={command:t,args:r,options:i,file:undefined,original:{command:t,args:r}};return i.shell?o:parseNonShell(o)}t.exports=parse},8902:t=>{"use strict";const r=/([()\][%!^"`<>&|;, *?])/g;function escapeCommand(t){t=t.replace(r,"^$1");return t}function escapeArgument(t,i){t=`${t}`;t=t.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"');t=t.replace(/(?=(\\+?)?)\1$/,"$1$1");t=`"${t}"`;t=t.replace(r,"^$1");if(i){t=t.replace(r,"^$1")}return t}t.exports.command=escapeCommand;t.exports.argument=escapeArgument},2964:(t,r,i)=>{"use strict";const o=i(7147);const a=i(4970);function readShebang(t){const r=150;const i=Buffer.alloc(r);let u;try{u=o.openSync(t,"r");o.readSync(u,i,0,r,0);o.closeSync(u)}catch(t){}return a(i.toString())}t.exports=readShebang},7534:(t,r,i)=>{"use strict";const o=i(1017);const a=i(6362);const u=i(2170);function resolveCommandAttempt(t,r){const i=t.options.env||process.env;const l=process.cwd();const h=t.options.cwd!=null;const d=h&&process.chdir!==undefined&&!process.chdir.disabled;if(d){try{process.chdir(t.options.cwd)}catch(t){}}let p;try{p=a.sync(t.command,{path:i[u({env:i})],pathExt:r?o.delimiter:undefined})}catch(t){}finally{if(d){process.chdir(l)}}if(p){p=o.resolve(h?t.options.cwd:"",p)}return p}function resolveCommand(t){return resolveCommandAttempt(t)||resolveCommandAttempt(t,true)}t.exports=resolveCommand},6718:(t,r,i)=>{var o=i(7147);var a;if(process.platform==="win32"||global.TESTING_WINDOWS){a=i(6183)}else{a=i(9855)}t.exports=isexe;isexe.sync=sync;function isexe(t,r,i){if(typeof r==="function"){i=r;r={}}if(!i){if(typeof Promise!=="function"){throw new TypeError("callback not provided")}return new Promise((function(i,o){isexe(t,r||{},(function(t,r){if(t){o(t)}else{i(r)}}))}))}a(t,r||{},(function(t,o){if(t){if(t.code==="EACCES"||r&&r.ignoreErrors){t=null;o=false}}i(t,o)}))}function sync(t,r){try{return a.sync(t,r||{})}catch(t){if(r&&r.ignoreErrors||t.code==="EACCES"){return false}else{throw t}}}},9855:(t,r,i)=>{t.exports=isexe;isexe.sync=sync;var o=i(7147);function isexe(t,r,i){o.stat(t,(function(t,o){i(t,t?false:checkStat(o,r))}))}function sync(t,r){return checkStat(o.statSync(t),r)}function checkStat(t,r){return t.isFile()&&checkMode(t,r)}function checkMode(t,r){var i=t.mode;var o=t.uid;var a=t.gid;var u=r.uid!==undefined?r.uid:process.getuid&&process.getuid();var l=r.gid!==undefined?r.gid:process.getgid&&process.getgid();var h=parseInt("100",8);var d=parseInt("010",8);var p=parseInt("001",8);var g=h|d;var y=i&p||i&d&&a===l||i&h&&o===u||i&g&&u===0;return y}},6183:(t,r,i)=>{t.exports=isexe;isexe.sync=sync;var o=i(7147);function checkPathExt(t,r){var i=r.pathExt!==undefined?r.pathExt:process.env.PATHEXT;if(!i){return true}i=i.split(";");if(i.indexOf("")!==-1){return true}for(var o=0;o<i.length;o++){var a=i[o].toLowerCase();if(a&&t.substr(-a.length).toLowerCase()===a){return true}}return false}function checkStat(t,r,i){if(!t.isSymbolicLink()&&!t.isFile()){return false}return checkPathExt(r,i)}function isexe(t,r,i){o.stat(t,(function(o,a){i(o,o?false:checkStat(a,t,r))}))}function sync(t,r){return checkStat(o.statSync(t),t,r)}},6362:(t,r,i)=>{const o=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys";const a=i(1017);const u=o?";":":";const l=i(6718);const getNotFoundError=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"});const getPathInfo=(t,r)=>{const i=r.colon||u;const a=t.match(/\//)||o&&t.match(/\\/)?[""]:[...o?[process.cwd()]:[],...(r.path||process.env.PATH||"").split(i)];const l=o?r.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"";const h=o?l.split(i):[""];if(o){if(t.indexOf(".")!==-1&&h[0]!=="")h.unshift("")}return{pathEnv:a,pathExt:h,pathExtExe:l}};const which=(t,r,i)=>{if(typeof r==="function"){i=r;r={}}if(!r)r={};const{pathEnv:o,pathExt:u,pathExtExe:h}=getPathInfo(t,r);const d=[];const step=i=>new Promise(((u,l)=>{if(i===o.length)return r.all&&d.length?u(d):l(getNotFoundError(t));const h=o[i];const p=/^".*"$/.test(h)?h.slice(1,-1):h;const g=a.join(p,t);const y=!p&&/^\.[\\\/]/.test(t)?t.slice(0,2)+g:g;u(subStep(y,i,0))}));const subStep=(t,i,o)=>new Promise(((a,p)=>{if(o===u.length)return a(step(i+1));const g=u[o];l(t+g,{pathExt:h},((u,l)=>{if(!u&&l){if(r.all)d.push(t+g);else return a(t+g)}return a(subStep(t,i,o+1))}))}));return i?step(0).then((t=>i(null,t)),i):step(0)};const whichSync=(t,r)=>{r=r||{};const{pathEnv:i,pathExt:o,pathExtExe:u}=getPathInfo(t,r);const h=[];for(let d=0;d<i.length;d++){const p=i[d];const g=/^".*"$/.test(p)?p.slice(1,-1):p;const y=a.join(g,t);const b=!g&&/^\.[\\\/]/.test(t)?t.slice(0,2)+y:y;for(let t=0;t<o.length;t++){const i=b+o[t];try{const t=l.sync(i,{pathExt:u});if(t){if(r.all)h.push(i);else return i}}catch(t){}}}if(r.all&&h.length)return h;if(r.nothrow)return null;throw getNotFoundError(t)};t.exports=which;which.sync=whichSync},9851:(t,r,i)=>{r.formatArgs=formatArgs;r.save=save;r.load=load;r.useColors=useColors;r.storage=localstorage();r.destroy=(()=>{let t=false;return()=>{if(!t){t=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();r.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}let t;return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(r){r[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+r[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff);if(!this.useColors){return}const i="color: "+this.color;r.splice(1,0,i,"color: inherit");let o=0;let a=0;r[0].replace(/%[a-zA-Z%]/g,(t=>{if(t==="%%"){return}o++;if(t==="%c"){a=o}}));r.splice(a,0,i)}r.log=console.debug||console.log||(()=>{});function save(t){try{if(t){r.storage.setItem("debug",t)}else{r.storage.removeItem("debug")}}catch(t){}}function load(){let t;try{t=r.storage.getItem("debug")}catch(t){}if(!t&&typeof process!=="undefined"&&"env"in process){t=process.env.DEBUG}return t}function localstorage(){try{return localStorage}catch(t){}}t.exports=i(6033)(r);const{formatters:o}=t.exports;o.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},6033:(t,r,i)=>{function setup(t){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=i(40);createDebug.destroy=destroy;Object.keys(t).forEach((r=>{createDebug[r]=t[r]}));createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(t){let r=0;for(let i=0;i<t.length;i++){r=(r<<5)-r+t.charCodeAt(i);r|=0}return createDebug.colors[Math.abs(r)%createDebug.colors.length]}createDebug.selectColor=selectColor;function createDebug(t){let r;let i=null;let o;let a;function debug(...t){if(!debug.enabled){return}const i=debug;const o=Number(new Date);const a=o-(r||o);i.diff=a;i.prev=r;i.curr=o;r=o;t[0]=createDebug.coerce(t[0]);if(typeof t[0]!=="string"){t.unshift("%O")}let u=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,((r,o)=>{if(r==="%%"){return"%"}u++;const a=createDebug.formatters[o];if(typeof a==="function"){const o=t[u];r=a.call(i,o);t.splice(u,1);u--}return r}));createDebug.formatArgs.call(i,t);const l=i.log||createDebug.log;l.apply(i,t)}debug.namespace=t;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(t);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>{if(i!==null){return i}if(o!==createDebug.namespaces){o=createDebug.namespaces;a=createDebug.enabled(t)}return a},set:t=>{i=t}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(t,r){const i=createDebug(this.namespace+(typeof r==="undefined"?":":r)+t);i.log=this.log;return i}function enable(t){createDebug.save(t);createDebug.namespaces=t;createDebug.names=[];createDebug.skips=[];const r=(typeof t==="string"?t:"").trim().replace(" ",",").split(",").filter(Boolean);for(const t of r){if(t[0]==="-"){createDebug.skips.push(t.slice(1))}else{createDebug.names.push(t)}}}function matchesTemplate(t,r){let i=0;let o=0;let a=-1;let u=0;while(i<t.length){if(o<r.length&&(r[o]===t[i]||r[o]==="*")){if(r[o]==="*"){a=o;u=i;o++}else{i++;o++}}else if(a!==-1){o=a+1;u++;i=u}else{return false}}while(o<r.length&&r[o]==="*"){o++}return o===r.length}function disable(){const t=[...createDebug.names,...createDebug.skips.map((t=>"-"+t))].join(",");createDebug.enable("");return t}function enabled(t){for(const r of createDebug.skips){if(matchesTemplate(t,r)){return false}}for(const r of createDebug.names){if(matchesTemplate(t,r)){return true}}return false}function coerce(t){if(t instanceof Error){return t.stack||t.message}return t}function destroy(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}createDebug.enable(createDebug.load());return createDebug}t.exports=setup},7984:(t,r,i)=>{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){t.exports=i(9851)}else{t.exports=i(3860)}},3860:(t,r,i)=>{const o=i(6224);const a=i(3837);r.init=init;r.log=log;r.formatArgs=formatArgs;r.save=save;r.load=load;r.useColors=useColors;r.destroy=a.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");r.colors=[6,2,3,4,5,1];try{const t=i(395);if(t&&(t.stderr||t).level>=2){r.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(t){}r.inspectOpts=Object.keys(process.env).filter((t=>/^debug_/i.test(t))).reduce(((t,r)=>{const i=r.substring(6).toLowerCase().replace(/_([a-z])/g,((t,r)=>r.toUpperCase()));let o=process.env[r];if(/^(yes|on|true|enabled)$/i.test(o)){o=true}else if(/^(no|off|false|disabled)$/i.test(o)){o=false}else if(o==="null"){o=null}else{o=Number(o)}t[i]=o;return t}),{});function useColors(){return"colors"in r.inspectOpts?Boolean(r.inspectOpts.colors):o.isatty(process.stderr.fd)}function formatArgs(r){const{namespace:i,useColors:o}=this;if(o){const o=this.color;const a="[3"+(o<8?o:"8;5;"+o);const u=` ${a};1m${i} [0m`;r[0]=u+r[0].split("\n").join("\n"+u);r.push(a+"m+"+t.exports.humanize(this.diff)+"[0m")}else{r[0]=getDate()+i+" "+r[0]}}function getDate(){if(r.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...t){return process.stderr.write(a.formatWithOptions(r.inspectOpts,...t)+"\n")}function save(t){if(t){process.env.DEBUG=t}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(t){t.inspectOpts={};const i=Object.keys(r.inspectOpts);for(let o=0;o<i.length;o++){t.inspectOpts[i[o]]=r.inspectOpts[i[o]]}}t.exports=i(6033)(r);const{formatters:u}=t.exports;u.o=function(t){this.inspectOpts.colors=this.useColors;return a.inspect(t,this.inspectOpts).split("\n").map((t=>t.trim())).join(" ")};u.O=function(t){this.inspectOpts.colors=this.useColors;return a.inspect(t,this.inspectOpts)}},5134:t=>{"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(t){return t instanceof Buffer||t instanceof Date||t instanceof RegExp?true:false}function cloneSpecificValue(t){if(t instanceof Buffer){var r=Buffer.alloc?Buffer.alloc(t.length):new Buffer(t.length);t.copy(r);return r}else if(t instanceof Date){return new Date(t.getTime())}else if(t instanceof RegExp){return new RegExp(t)}else{throw new Error("Unexpected situation")}}function deepCloneArray(t){var i=[];t.forEach((function(t,o){if(typeof t==="object"&&t!==null){if(Array.isArray(t)){i[o]=deepCloneArray(t)}else if(isSpecificValue(t)){i[o]=cloneSpecificValue(t)}else{i[o]=r({},t)}}else{i[o]=t}}));return i}function safeGetProperty(t,r){return r==="__proto__"?undefined:t[r]}var r=t.exports=function(){if(arguments.length<1||typeof arguments[0]!=="object"){return false}if(arguments.length<2){return arguments[0]}var t=arguments[0];var i=Array.prototype.slice.call(arguments,1);var o,a,u;i.forEach((function(i){if(typeof i!=="object"||i===null||Array.isArray(i)){return}Object.keys(i).forEach((function(u){a=safeGetProperty(t,u);o=safeGetProperty(i,u);if(o===t){return}else if(typeof o!=="object"||o===null){t[u]=o;return}else if(Array.isArray(o)){t[u]=deepCloneArray(o);return}else if(isSpecificValue(o)){t[u]=cloneSpecificValue(o);return}else if(typeof a!=="object"||a===null||Array.isArray(a)){t[u]=r({},o);return}else{t[u]=r(a,o);return}}))}));return t}},6420:(t,r,i)=>{var o=i(6845);t.exports=function(t,r){t=t||{};Object.keys(r).forEach((function(i){if(typeof t[i]==="undefined"){t[i]=o(r[i])}}));return t}},7945:(t,r,i)=>{const o=i(3837);const a=i(7310);let u=false;let l=true;function _value(t,r){const i=process.env[t];if(i===undefined){if(r===undefined&&!l){return i}if(r===undefined){throw new Error("GetEnv.Nonexistent: "+t+" does not exist "+"and no fallback value provided.")}if(u){throw new Error("GetEnv.DisabledFallbacks: "+t+" relying on fallback "+"when fallbacks have been disabled")}return""+r}return i}const h={string:function(t){return""+t},int:function(t){const r=t.match(/^-?\d+$/);if(!r){throw new Error("GetEnv.NoInteger: "+t+" is not an integer.")}return+t},float:function(t){const r=+t===Infinity||+t===-Infinity;if(r){throw new Error("GetEnv.Infinity: "+t+" is set to +/-Infinity.")}const i=!(isNaN(t)||t==="");if(!i){throw new Error("GetEnv.NoFloat: "+t+" is not a number.")}return+t},bool:function(t){const r=t==="true"||t==="false";if(!r){throw new Error("GetEnv.NoBoolean: "+t+" is not a boolean.")}return t==="true"},boolish:function(t){try{return h.bool(t)}catch(r){const i=t==="1"||t==="0";if(!i){throw new Error("GetEnv.NoBoolean: "+t+" is not a boolean.")}return t==="1"}},url:a.parse};function converter(t){return function(r,i){if(typeof r=="string"){const o=_value(r,i);return h[t](o)}else{return d.multi(r)}}}const d=converter("string");Object.keys(h).forEach((function(t){d[t]=converter(t)}));d.array=function array(t,r,i){r=r||"string";if(Object.keys(h).indexOf(r)===-1){throw new Error("GetEnv.ArrayUndefinedType: Unknown array type "+r)}const o=_value(t,i);return o.split(/\s*,\s*/).map(h[r])};d.multi=function multi(t){const r={};for(let i in t){const a=t[i];if(o.isArray(a)){switch(a.length){case 1:case 2:r[i]=d(a[0],a[1]);break;case 3:r[i]=d[a[2]](a[0],a[1]);break;default:throw"getenv.multi(): invalid spec";break}}else{r[i]=d(a)}}return r};d.disableFallbacks=function(){u=true};d.enableFallbacks=function(){u=false};d.disableErrors=function(){l=false};d.enableErrors=function(){l=true};t.exports=d},2297:(t,r,i)=>{var o=i(3353);t.exports=expandTop;var a="\0SLASH"+Math.random()+"\0";var u="\0OPEN"+Math.random()+"\0";var l="\0CLOSE"+Math.random()+"\0";var h="\0COMMA"+Math.random()+"\0";var d="\0PERIOD"+Math.random()+"\0";function numeric(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function escapeBraces(t){return t.split("\\\\").join(a).split("\\{").join(u).split("\\}").join(l).split("\\,").join(h).split("\\.").join(d)}function unescapeBraces(t){return t.split(a).join("\\").split(u).join("{").split(l).join("}").split(h).join(",").split(d).join(".")}function parseCommaParts(t){if(!t)return[""];var r=[];var i=o("{","}",t);if(!i)return t.split(",");var a=i.pre;var u=i.body;var l=i.post;var h=a.split(",");h[h.length-1]+="{"+u+"}";var d=parseCommaParts(l);if(l.length){h[h.length-1]+=d.shift();h.push.apply(h,d)}r.push.apply(r,h);return r}function expandTop(t){if(!t)return[];if(t.substr(0,2)==="{}"){t="\\{\\}"+t.substr(2)}return expand(escapeBraces(t),true).map(unescapeBraces)}function embrace(t){return"{"+t+"}"}function isPadded(t){return/^-?0\d/.test(t)}function lte(t,r){return t<=r}function gte(t,r){return t>=r}function expand(t,r){var i=[];var a=o("{","}",t);if(!a)return[t];var u=a.pre;var h=a.post.length?expand(a.post,false):[""];if(/\$$/.test(a.pre)){for(var d=0;d<h.length;d++){var p=u+"{"+a.body+"}"+h[d];i.push(p)}}else{var g=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(a.body);var y=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(a.body);var b=g||y;var w=a.body.indexOf(",")>=0;if(!b&&!w){if(a.post.match(/,.*\}/)){t=a.pre+"{"+a.body+l+a.post;return expand(t)}return[t]}var v;if(b){v=a.body.split(/\.\./)}else{v=parseCommaParts(a.body);if(v.length===1){v=expand(v[0],false).map(embrace);if(v.length===1){return h.map((function(t){return a.pre+v[0]+t}))}}}var E;if(b){var A=numeric(v[0]);var _=numeric(v[1]);var C=Math.max(v[0].length,v[1].length);var S=v.length==3?Math.abs(numeric(v[2])):1;var D=lte;var x=_<A;if(x){S*=-1;D=gte}var O=v.some(isPadded);E=[];for(var R=A;D(R,_);R+=S){var k;if(y){k=String.fromCharCode(R);if(k==="\\")k=""}else{k=String(R);if(O){var P=C-k.length;if(P>0){var T=new Array(P+1).join("0");if(R<0)k="-"+T+k.slice(1);else k=T+k}}}E.push(k)}}else{E=[];for(var M=0;M<v.length;M++){E.push.apply(E,expand(v[M],false))}}for(var M=0;M<E.length;M++){for(var d=0;d<h.length;d++){var p=u+E[M]+h[d];if(!r||b||p)i.push(p)}}}return i}},6738:t=>{"use strict";t.exports=(t,r=process.argv)=>{const i=t.startsWith("-")?"":t.length===1?"-":"--";const o=r.indexOf(i+t);const a=r.indexOf("--");return o!==-1&&(a===-1||o<a)}},3697:(t,r,i)=>{"use strict";const o=i(6642);const isGitHubShorthand=t=>{const r=t.indexOf("#");const i=t.indexOf("/");const o=t.indexOf("/",i+1);const a=t.indexOf(":");const u=/\s/.exec(t);const l=t.indexOf("@");const h=!u||r>-1&&u.index>r;const d=l===-1||r>-1&&l>r;const p=a===-1||r>-1&&a>r;const g=o===-1||r>-1&&o>r;const y=i>0;const b=r>-1?t[r-1]!=="/":!t.endsWith("/");const w=!t.startsWith(".");return h&&y&&b&&w&&d&&p&&g};t.exports=(t,r,{gitHosts:i,protocols:a})=>{if(!t){return}const u=isGitHubShorthand(t)?`github:${t}`:t;const l=o(u,a);if(!l){return}const h=i.byShortcut[l.protocol];const d=i.byDomain[l.hostname.startsWith("www.")?l.hostname.slice(4):l.hostname];const p=h||d;if(!p){return}const g=i[h||d];let y=null;if(a[l.protocol]?.auth&&(l.username||l.password)){y=`${l.username}${l.password?":"+l.password:""}`}let b=null;let w=null;let v=null;let E=null;try{if(h){let t=l.pathname.startsWith("/")?l.pathname.slice(1):l.pathname;const r=t.indexOf("@");if(r>-1){t=t.slice(r+1)}const i=t.lastIndexOf("/");if(i>-1){w=decodeURIComponent(t.slice(0,i));if(!w){w=null}v=decodeURIComponent(t.slice(i+1))}else{v=decodeURIComponent(t)}if(v.endsWith(".git")){v=v.slice(0,-4)}if(l.hash){b=decodeURIComponent(l.hash.slice(1))}E="shortcut"}else{if(!g.protocols.includes(l.protocol)){return}const t=g.extract(l);if(!t){return}w=t.user&&decodeURIComponent(t.user);v=decodeURIComponent(t.project);b=decodeURIComponent(t.committish);E=a[l.protocol]?.name||l.protocol.slice(0,-1)}}catch(t){if(t instanceof URIError){return}else{throw t}}return[p,w,y,v,b,E,r]}},8393:t=>{"use strict";const maybeJoin=(...t)=>t.every((t=>t))?t.join(""):"";const maybeEncode=t=>t?encodeURIComponent(t):"";const formatHashFragment=t=>t.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-");const r={sshtemplate:({domain:t,user:r,project:i,committish:o})=>`git@${t}:${r}/${i}.git${maybeJoin("#",o)}`,sshurltemplate:({domain:t,user:r,project:i,committish:o})=>`git+ssh://git@${t}/${r}/${i}.git${maybeJoin("#",o)}`,edittemplate:({domain:t,user:r,project:i,committish:o,editpath:a,path:u})=>`https://${t}/${r}/${i}${maybeJoin("/",a,"/",maybeEncode(o||"HEAD"),"/",u)}`,browsetemplate:({domain:t,user:r,project:i,committish:o,treepath:a})=>`https://${t}/${r}/${i}${maybeJoin("/",a,"/",maybeEncode(o))}`,browsetreetemplate:({domain:t,user:r,project:i,committish:o,treepath:a,path:u,fragment:l,hashformat:h})=>`https://${t}/${r}/${i}/${a}/${maybeEncode(o||"HEAD")}/${u}${maybeJoin("#",h(l||""))}`,browseblobtemplate:({domain:t,user:r,project:i,committish:o,blobpath:a,path:u,fragment:l,hashformat:h})=>`https://${t}/${r}/${i}/${a}/${maybeEncode(o||"HEAD")}/${u}${maybeJoin("#",h(l||""))}`,docstemplate:({domain:t,user:r,project:i,treepath:o,committish:a})=>`https://${t}/${r}/${i}${maybeJoin("/",o,"/",maybeEncode(a))}#readme`,httpstemplate:({auth:t,domain:r,user:i,project:o,committish:a})=>`git+https://${maybeJoin(t,"@")}${r}/${i}/${o}.git${maybeJoin("#",a)}`,filetemplate:({domain:t,user:r,project:i,committish:o,path:a})=>`https://${t}/${r}/${i}/raw/${maybeEncode(o||"HEAD")}/${a}`,shortcuttemplate:({type:t,user:r,project:i,committish:o})=>`${t}:${r}/${i}${maybeJoin("#",o)}`,pathtemplate:({user:t,project:r,committish:i})=>`${t}/${r}${maybeJoin("#",i)}`,bugstemplate:({domain:t,user:r,project:i})=>`https://${t}/${r}/${i}/issues`,hashformat:formatHashFragment};const i={};i.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:({auth:t,user:r,project:i,committish:o,path:a})=>`https://${maybeJoin(t,"@")}raw.githubusercontent.com/${r}/${i}/${maybeEncode(o||"HEAD")}/${a}`,gittemplate:({auth:t,domain:r,user:i,project:o,committish:a})=>`git://${maybeJoin(t,"@")}${r}/${i}/${o}.git${maybeJoin("#",a)}`,tarballtemplate:({domain:t,user:r,project:i,committish:o})=>`https://codeload.${t}/${r}/${i}/tar.gz/${maybeEncode(o||"HEAD")}`,extract:t=>{let[,r,i,o,a]=t.pathname.split("/",5);if(o&&o!=="tree"){return}if(!o){a=t.hash.slice(1)}if(i&&i.endsWith(".git")){i=i.slice(0,-4)}if(!r||!i){return}return{user:r,project:i,committish:a}}};i.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:({domain:t,user:r,project:i,committish:o,treepath:a,path:u,editpath:l})=>`https://${t}/${r}/${i}${maybeJoin("/",a,"/",maybeEncode(o||"HEAD"),"/",u,l)}`,tarballtemplate:({domain:t,user:r,project:i,committish:o})=>`https://${t}/${r}/${i}/get/${maybeEncode(o||"HEAD")}.tar.gz`,extract:t=>{let[,r,i,o]=t.pathname.split("/",4);if(["get"].includes(o)){return}if(i&&i.endsWith(".git")){i=i.slice(0,-4)}if(!r||!i){return}return{user:r,project:i,committish:t.hash.slice(1)}}};i.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",httpstemplate:({auth:t,domain:r,user:i,project:o,committish:a})=>`git+https://${maybeJoin(t,"@")}${r}/${i}/${o}.git${maybeJoin("#",a)}`,tarballtemplate:({domain:t,user:r,project:i,committish:o})=>`https://${t}/${r}/${i}/repository/archive.tar.gz?ref=${maybeEncode(o||"HEAD")}`,extract:t=>{const r=t.pathname.slice(1);if(r.includes("/-/")||r.includes("/archive.tar.gz")){return}const i=r.split("/");let o=i.pop();if(o.endsWith(".git")){o=o.slice(0,-4)}const a=i.join("/");if(!a||!o){return}return{user:a,project:o,committish:t.hash.slice(1)}}};i.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:({domain:t,project:r,committish:i})=>`git@${t}:${r}.git${maybeJoin("#",i)}`,sshurltemplate:({domain:t,project:r,committish:i})=>`git+ssh://git@${t}/${r}.git${maybeJoin("#",i)}`,edittemplate:({domain:t,user:r,project:i,committish:o,editpath:a})=>`https://${t}/${r}/${i}${maybeJoin("/",maybeEncode(o))}/${a}`,browsetemplate:({domain:t,project:r,committish:i})=>`https://${t}/${r}${maybeJoin("/",maybeEncode(i))}`,browsetreetemplate:({domain:t,project:r,committish:i,path:o,hashformat:a})=>`https://${t}/${r}${maybeJoin("/",maybeEncode(i))}${maybeJoin("#",a(o))}`,browseblobtemplate:({domain:t,project:r,committish:i,path:o,hashformat:a})=>`https://${t}/${r}${maybeJoin("/",maybeEncode(i))}${maybeJoin("#",a(o))}`,docstemplate:({domain:t,project:r,committish:i})=>`https://${t}/${r}${maybeJoin("/",maybeEncode(i))}`,httpstemplate:({domain:t,project:r,committish:i})=>`git+https://${t}/${r}.git${maybeJoin("#",i)}`,filetemplate:({user:t,project:r,committish:i,path:o})=>`https://gist.githubusercontent.com/${t}/${r}/raw${maybeJoin("/",maybeEncode(i))}/${o}`,shortcuttemplate:({type:t,project:r,committish:i})=>`${t}:${r}${maybeJoin("#",i)}`,pathtemplate:({project:t,committish:r})=>`${t}${maybeJoin("#",r)}`,bugstemplate:({domain:t,project:r})=>`https://${t}/${r}`,gittemplate:({domain:t,project:r,committish:i})=>`git://${t}/${r}.git${maybeJoin("#",i)}`,tarballtemplate:({project:t,committish:r})=>`https://codeload.github.com/gist/${t}/tar.gz/${maybeEncode(r||"HEAD")}`,extract:t=>{let[,r,i,o]=t.pathname.split("/",4);if(o==="raw"){return}if(!i){if(!r){return}i=r;r=null}if(i.endsWith(".git")){i=i.slice(0,-4)}return{user:r,project:i,committish:t.hash.slice(1)}},hashformat:function(t){return t&&"file-"+formatHashFragment(t)}};i.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:({domain:t,user:r,project:i,committish:o,path:a})=>`https://${t}/${r}/${i}/blob/${maybeEncode(o)||"HEAD"}/${a}`,httpstemplate:({domain:t,user:r,project:i,committish:o})=>`https://${t}/${r}/${i}.git${maybeJoin("#",o)}`,tarballtemplate:({domain:t,user:r,project:i,committish:o})=>`https://${t}/${r}/${i}/archive/${maybeEncode(o)||"HEAD"}.tar.gz`,bugstemplate:()=>null,extract:t=>{let[,r,i,o]=t.pathname.split("/",4);if(["archive"].includes(o)){return}if(i&&i.endsWith(".git")){i=i.slice(0,-4)}if(!r||!i){return}return{user:r,project:i,committish:t.hash.slice(1)}}};for(const[t,o]of Object.entries(i)){i[t]=Object.assign({},r,o)}t.exports=i},6069:(t,r,i)=>{"use strict";const{LRUCache:o}=i(3576);const a=i(8393);const u=i(3697);const l=i(6642);const h=new o({max:1e3});class GitHost{constructor(t,r,i,o,a,u,l={}){Object.assign(this,GitHost.#e[t],{type:t,user:r,auth:i,project:o,committish:a,default:u,opts:l})}static#e={byShortcut:{},byDomain:{}};static#t={"git+ssh:":{name:"sshurl"},"ssh:":{name:"sshurl"},"git+https:":{name:"https",auth:true},"git:":{auth:true},"http:":{auth:true},"https:":{auth:true},"git+http:":{auth:true}};static addHost(t,r){GitHost.#e[t]=r;GitHost.#e.byDomain[r.domain]=t;GitHost.#e.byShortcut[`${t}:`]=t;GitHost.#t[`${t}:`]={name:t}}static fromUrl(t,r){if(typeof t!=="string"){return}const i=t+JSON.stringify(r||{});if(!h.has(i)){const o=u(t,r,{gitHosts:GitHost.#e,protocols:GitHost.#t});h.set(i,o?new GitHost(...o):undefined)}return h.get(i)}static parseUrl(t){return l(t)}#r(t,r){if(typeof t!=="function"){return null}const i={...this,...this.opts,...r};if(!i.path){i.path=""}if(i.path.startsWith("/")){i.path=i.path.slice(1)}if(i.noCommittish){i.committish=null}const o=t(i);return i.noGitPlus&&o.startsWith("git+")?o.slice(4):o}hash(){return this.committish?`#${this.committish}`:""}ssh(t){return this.#r(this.sshtemplate,t)}sshurl(t){return this.#r(this.sshurltemplate,t)}browse(t,...r){if(typeof t!=="string"){return this.#r(this.browsetemplate,t)}if(typeof r[0]!=="string"){return this.#r(this.browsetreetemplate,{...r[0],path:t})}return this.#r(this.browsetreetemplate,{...r[1],fragment:r[0],path:t})}browseFile(t,...r){if(typeof r[0]!=="string"){return this.#r(this.browseblobtemplate,{...r[0],path:t})}return this.#r(this.browseblobtemplate,{...r[1],fragment:r[0],path:t})}docs(t){return this.#r(this.docstemplate,t)}bugs(t){return this.#r(this.bugstemplate,t)}https(t){return this.#r(this.httpstemplate,t)}git(t){return this.#r(this.gittemplate,t)}shortcut(t){return this.#r(this.shortcuttemplate,t)}path(t){return this.#r(this.pathtemplate,t)}tarball(t){return this.#r(this.tarballtemplate,{...t,noCommittish:false})}file(t,r){return this.#r(this.filetemplate,{...r,path:t})}edit(t,r){return this.#r(this.edittemplate,{...r,path:t})}getDefaultRepresentation(){return this.default}toString(t){if(this.default&&typeof this[this.default]==="function"){return this[this.default](t)}return this.sshurl(t)}}for(const[t,r]of Object.entries(a)){GitHost.addHost(t,r)}t.exports=GitHost},6642:(t,r,i)=>{const o=i(7310);const lastIndexOfBefore=(t,r,i)=>{const o=t.indexOf(i);return t.lastIndexOf(r,o>-1?o:Infinity)};const safeUrl=t=>{try{return new o.URL(t)}catch{}};const correctProtocol=(t,r)=>{const i=t.indexOf(":");const o=t.slice(0,i+1);if(Object.prototype.hasOwnProperty.call(r,o)){return t}const a=t.indexOf("@");if(a>-1){if(a>i){return`git+ssh://${t}`}else{return t}}const u=t.indexOf("//");if(u===i+1){return t}return`${t.slice(0,i+1)}//${t.slice(i+1)}`};const correctUrl=t=>{const r=lastIndexOfBefore(t,"@","#");const i=lastIndexOfBefore(t,":","#");if(i>r){t=t.slice(0,i)+"/"+t.slice(i+1)}if(lastIndexOfBefore(t,":","#")===-1&&t.indexOf("//")===-1){t=`git+ssh://${t}`}return t};t.exports=(t,r)=>{const i=r?correctProtocol(t,r):t;return safeUrl(i)||safeUrl(correctUrl(i))}},1923:(t,r)=>{r.parse=r.decode=decode;r.stringify=r.encode=encode;r.safe=safe;r.unsafe=unsafe;var i=typeof process!=="undefined"&&process.platform==="win32"?"\r\n":"\n";function encode(t,r){var o=[];var a="";if(typeof r==="string"){r={section:r,whitespace:false}}else{r=r||{};r.whitespace=r.whitespace===true}var u=r.whitespace?" = ":"=";Object.keys(t).forEach((function(r,l,h){var d=t[r];if(d&&Array.isArray(d)){d.forEach((function(t){a+=safe(r+"[]")+u+safe(t)+"\n"}))}else if(d&&typeof d==="object")o.push(r);else a+=safe(r)+u+safe(d)+i}));if(r.section&&a.length)a="["+safe(r.section)+"]"+i+a;o.forEach((function(o,u,l){var h=dotSplit(o).join("\\.");var d=(r.section?r.section+".":"")+h;var p=encode(t[o],{section:d,whitespace:r.whitespace});if(a.length&&p.length)a+=i;a+=p}));return a}function dotSplit(t){return t.replace(/\1/g,"LITERAL\\1LITERAL").replace(/\\\./g,"").split(/\./).map((function(t){return t.replace(/\1/g,"\\.").replace(/\2LITERAL\\1LITERAL\2/g,"")}))}function decode(t){var r={};var i=r;var o=null;var a=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i;var u=t.split(/[\r\n]+/g);u.forEach((function(t,u,l){if(!t||t.match(/^\s*[;#]/))return;var h=t.match(a);if(!h)return;if(h[1]!==undefined){o=unsafe(h[1]);if(o==="__proto__"){i={};return}i=r[o]=r[o]||{};return}var d=unsafe(h[2]);if(d==="__proto__")return;var p=h[3]?unsafe(h[4]):true;switch(p){case"true":case"false":case"null":p=JSON.parse(p)}if(d.length>2&&d.slice(-2)==="[]"){d=d.substring(0,d.length-2);if(d==="__proto__")return;if(!i[d])i[d]=[];else if(!Array.isArray(i[d]))i[d]=[i[d]]}if(Array.isArray(i[d]))i[d].push(p);else i[d]=p}));Object.keys(r).filter((function(t,i,o){if(!r[t]||typeof r[t]!=="object"||Array.isArray(r[t]))return false;var a=dotSplit(t);var u=r;var l=a.pop();var h=l.replace(/\\\./g,".");a.forEach((function(t,r,i){if(t==="__proto__")return;if(!u[t]||typeof u[t]!=="object")u[t]={};u=u[t]}));if(u===r&&h===l)return false;u[h]=r[t];return true})).forEach((function(t,i,o){delete r[t]}));return r}function isQuoted(t){return t.charAt(0)==='"'&&t.slice(-1)==='"'||t.charAt(0)==="'"&&t.slice(-1)==="'"}function safe(t){return typeof t!=="string"||t.match(/[=\r\n]/)||t.match(/^\[/)||t.length>1&&isQuoted(t)||t!==t.trim()?JSON.stringify(t):t.replace(/;/g,"\\;").replace(/#/g,"\\#")}function unsafe(t,r){t=(t||"").trim();if(isQuoted(t)){if(t.charAt(0)==="'")t=t.substr(1,t.length-2);try{t=JSON.parse(t)}catch(t){}}else{var i=false;var o="";for(var a=0,u=t.length;a<u;a++){var l=t.charAt(a);if(i){if("\\;#".indexOf(l)!==-1)o+=l;else o+="\\"+l;i=false}else if(";#".indexOf(l)!==-1)break;else if(l==="\\")i=true;else o+=l}if(i)o+="\\";return o.trim()}return t}},8035:(t,r)=>{Object.defineProperty(r,"__esModule",{value:true});r["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;r.matchToToken=function(t){var r={type:"invalid",value:t[0],closed:undefined};if(t[1])r.type="string",r.closed=!!(t[3]||t[4]);else if(t[5])r.type="comment";else if(t[6])r.type="comment",r.closed=!!t[7];else if(t[8])r.type="regex";else if(t[9])r.type="number";else if(t[10])r.type="name";else if(t[11])r.type="punctuator";else if(t[12])r.type="whitespace";return r}},5130:(t,r,i)=>{const o=i(3210);const a=i(5627);const u={parse:o,stringify:a};t.exports=u},3210:(t,r,i)=>{const o=i(3009);let a;let u;let l;let h;let d;let p;let g;let y;let b;t.exports=function parse(t,r){a=String(t);u="start";l=[];h=0;d=1;p=0;g=undefined;y=undefined;b=undefined;do{g=lex();S[u]()}while(g.type!=="eof");if(typeof r==="function"){return internalize({"":b},"",r)}return b};function internalize(t,r,i){const o=t[r];if(o!=null&&typeof o==="object"){if(Array.isArray(o)){for(let t=0;t<o.length;t++){const r=String(t);const a=internalize(o,r,i);if(a===undefined){delete o[r]}else{Object.defineProperty(o,r,{value:a,writable:true,enumerable:true,configurable:true})}}}else{for(const t in o){const r=internalize(o,t,i);if(r===undefined){delete o[t]}else{Object.defineProperty(o,t,{value:r,writable:true,enumerable:true,configurable:true})}}}}return i.call(t,r,o)}let w;let v;let E;let A;let _;function lex(){w="default";v="";E=false;A=1;for(;;){_=peek();const t=C[w]();if(t){return t}}}function peek(){if(a[h]){return String.fromCodePoint(a.codePointAt(h))}}function read(){const t=peek();if(t==="\n"){d++;p=0}else if(t){p+=t.length}else{p++}if(t){h+=t.length}return t}const C={default(){switch(_){case"\t":case"\v":case"\f":case" ":case" ":case"\ufeff":case"\n":case"\r":case"\u2028":case"\u2029":read();return;case"/":read();w="comment";return;case undefined:read();return newToken("eof")}if(o.isSpaceSeparator(_)){read();return}return C[u]()},comment(){switch(_){case"*":read();w="multiLineComment";return;case"/":read();w="singleLineComment";return}throw invalidChar(read())},multiLineComment(){switch(_){case"*":read();w="multiLineCommentAsterisk";return;case undefined:throw invalidChar(read())}read()},multiLineCommentAsterisk(){switch(_){case"*":read();return;case"/":read();w="default";return;case undefined:throw invalidChar(read())}read();w="multiLineComment"},singleLineComment(){switch(_){case"\n":case"\r":case"\u2028":case"\u2029":read();w="default";return;case undefined:read();return newToken("eof")}read()},value(){switch(_){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()==="-"){A=-1}w="sign";return;case".":v=read();w="decimalPointLeading";return;case"0":v=read();w="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":v=read();w="decimalInteger";return;case"I":read();literal("nfinity");return newToken("numeric",Infinity);case"N":read();literal("aN");return newToken("numeric",NaN);case'"':case"'":E=read()==='"';v="";w="string";return}throw invalidChar(read())},identifierNameStartEscape(){if(_!=="u"){throw invalidChar(read())}read();const t=unicodeEscape();switch(t){case"$":case"_":break;default:if(!o.isIdStartChar(t)){throw invalidIdentifier()}break}v+=t;w="identifierName"},identifierName(){switch(_){case"$":case"_":case"":case"":v+=read();return;case"\\":read();w="identifierNameEscape";return}if(o.isIdContinueChar(_)){v+=read();return}return newToken("identifier",v)},identifierNameEscape(){if(_!=="u"){throw invalidChar(read())}read();const t=unicodeEscape();switch(t){case"$":case"_":case"":case"":break;default:if(!o.isIdContinueChar(t)){throw invalidIdentifier()}break}v+=t;w="identifierName"},sign(){switch(_){case".":v=read();w="decimalPointLeading";return;case"0":v=read();w="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":v=read();w="decimalInteger";return;case"I":read();literal("nfinity");return newToken("numeric",A*Infinity);case"N":read();literal("aN");return newToken("numeric",NaN)}throw invalidChar(read())},zero(){switch(_){case".":v+=read();w="decimalPoint";return;case"e":case"E":v+=read();w="decimalExponent";return;case"x":case"X":v+=read();w="hexadecimal";return}return newToken("numeric",A*0)},decimalInteger(){switch(_){case".":v+=read();w="decimalPoint";return;case"e":case"E":v+=read();w="decimalExponent";return}if(o.isDigit(_)){v+=read();return}return newToken("numeric",A*Number(v))},decimalPointLeading(){if(o.isDigit(_)){v+=read();w="decimalFraction";return}throw invalidChar(read())},decimalPoint(){switch(_){case"e":case"E":v+=read();w="decimalExponent";return}if(o.isDigit(_)){v+=read();w="decimalFraction";return}return newToken("numeric",A*Number(v))},decimalFraction(){switch(_){case"e":case"E":v+=read();w="decimalExponent";return}if(o.isDigit(_)){v+=read();return}return newToken("numeric",A*Number(v))},decimalExponent(){switch(_){case"+":case"-":v+=read();w="decimalExponentSign";return}if(o.isDigit(_)){v+=read();w="decimalExponentInteger";return}throw invalidChar(read())},decimalExponentSign(){if(o.isDigit(_)){v+=read();w="decimalExponentInteger";return}throw invalidChar(read())},decimalExponentInteger(){if(o.isDigit(_)){v+=read();return}return newToken("numeric",A*Number(v))},hexadecimal(){if(o.isHexDigit(_)){v+=read();w="hexadecimalInteger";return}throw invalidChar(read())},hexadecimalInteger(){if(o.isHexDigit(_)){v+=read();return}return newToken("numeric",A*Number(v))},string(){switch(_){case"\\":read();v+=escape();return;case'"':if(E){read();return newToken("string",v)}v+=read();return;case"'":if(!E){read();return newToken("string",v)}v+=read();return;case"\n":case"\r":throw invalidChar(read());case"\u2028":case"\u2029":separatorChar(_);break;case undefined:throw invalidChar(read())}v+=read()},start(){switch(_){case"{":case"[":return newToken("punctuator",read())}w="value"},beforePropertyName(){switch(_){case"$":case"_":v=read();w="identifierName";return;case"\\":read();w="identifierNameStartEscape";return;case"}":return newToken("punctuator",read());case'"':case"'":E=read()==='"';w="string";return}if(o.isIdStartChar(_)){v+=read();w="identifierName";return}throw invalidChar(read())},afterPropertyName(){if(_===":"){return newToken("punctuator",read())}throw invalidChar(read())},beforePropertyValue(){w="value"},afterPropertyValue(){switch(_){case",":case"}":return newToken("punctuator",read())}throw invalidChar(read())},beforeArrayValue(){if(_==="]"){return newToken("punctuator",read())}w="value"},afterArrayValue(){switch(_){case",":case"]":return newToken("punctuator",read())}throw invalidChar(read())},end(){throw invalidChar(read())}};function newToken(t,r){return{type:t,value:r,line:d,column:p}}function literal(t){for(const r of t){const t=peek();if(t!==r){throw invalidChar(read())}read()}}function escape(){const t=peek();switch(t){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(o.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(){let t="";let r=peek();if(!o.isHexDigit(r)){throw invalidChar(read())}t+=read();r=peek();if(!o.isHexDigit(r)){throw invalidChar(read())}t+=read();return String.fromCodePoint(parseInt(t,16))}function unicodeEscape(){let t="";let r=4;while(r-- >0){const r=peek();if(!o.isHexDigit(r)){throw invalidChar(read())}t+=read()}return String.fromCodePoint(parseInt(t,16))}const S={start(){if(g.type==="eof"){throw invalidEOF()}push()},beforePropertyName(){switch(g.type){case"identifier":case"string":y=g.value;u="afterPropertyName";return;case"punctuator":pop();return;case"eof":throw invalidEOF()}},afterPropertyName(){if(g.type==="eof"){throw invalidEOF()}u="beforePropertyValue"},beforePropertyValue(){if(g.type==="eof"){throw invalidEOF()}push()},beforeArrayValue(){if(g.type==="eof"){throw invalidEOF()}if(g.type==="punctuator"&&g.value==="]"){pop();return}push()},afterPropertyValue(){if(g.type==="eof"){throw invalidEOF()}switch(g.value){case",":u="beforePropertyName";return;case"}":pop()}},afterArrayValue(){if(g.type==="eof"){throw invalidEOF()}switch(g.value){case",":u="beforeArrayValue";return;case"]":pop()}},end(){}};function push(){let t;switch(g.type){case"punctuator":switch(g.value){case"{":t={};break;case"[":t=[];break}break;case"null":case"boolean":case"numeric":case"string":t=g.value;break}if(b===undefined){b=t}else{const r=l[l.length-1];if(Array.isArray(r)){r.push(t)}else{Object.defineProperty(r,y,{value:t,writable:true,enumerable:true,configurable:true})}}if(t!==null&&typeof t==="object"){l.push(t);if(Array.isArray(t)){u="beforeArrayValue"}else{u="beforePropertyName"}}else{const t=l[l.length-1];if(t==null){u="end"}else if(Array.isArray(t)){u="afterArrayValue"}else{u="afterPropertyValue"}}}function pop(){l.pop();const t=l[l.length-1];if(t==null){u="end"}else if(Array.isArray(t)){u="afterArrayValue"}else{u="afterPropertyValue"}}function invalidChar(t){if(t===undefined){return syntaxError(`JSON5: invalid end of input at ${d}:${p}`)}return syntaxError(`JSON5: invalid character '${formatChar(t)}' at ${d}:${p}`)}function invalidEOF(){return syntaxError(`JSON5: invalid end of input at ${d}:${p}`)}function invalidIdentifier(){p-=5;return syntaxError(`JSON5: invalid identifier character at ${d}:${p}`)}function separatorChar(t){console.warn(`JSON5: '${formatChar(t)}' in strings is not valid ECMAScript; consider escaping`)}function formatChar(t){const r={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(r[t]){return r[t]}if(t<" "){const r=t.charCodeAt(0).toString(16);return"\\x"+("00"+r).substring(r.length)}return t}function syntaxError(t){const r=new SyntaxError(t);r.lineNumber=d;r.columnNumber=p;return r}},5627:(t,r,i)=>{const o=i(3009);t.exports=function stringify(t,r,i){const a=[];let u="";let l;let h;let d="";let p;if(r!=null&&typeof r==="object"&&!Array.isArray(r)){i=r.space;p=r.quote;r=r.replacer}if(typeof r==="function"){h=r}else if(Array.isArray(r)){l=[];for(const t of r){let r;if(typeof t==="string"){r=t}else if(typeof t==="number"||t instanceof String||t instanceof Number){r=String(t)}if(r!==undefined&&l.indexOf(r)<0){l.push(r)}}}if(i instanceof Number){i=Number(i)}else if(i instanceof String){i=String(i)}if(typeof i==="number"){if(i>0){i=Math.min(10,Math.floor(i));d=" ".substr(0,i)}}else if(typeof i==="string"){d=i.substr(0,10)}return serializeProperty("",{"":t});function serializeProperty(t,r){let i=r[t];if(i!=null){if(typeof i.toJSON5==="function"){i=i.toJSON5(t)}else if(typeof i.toJSON==="function"){i=i.toJSON(t)}}if(h){i=h.call(r,t,i)}if(i instanceof Number){i=Number(i)}else if(i instanceof String){i=String(i)}else if(i instanceof Boolean){i=i.valueOf()}switch(i){case null:return"null";case true:return"true";case false:return"false"}if(typeof i==="string"){return quoteString(i,false)}if(typeof i==="number"){return String(i)}if(typeof i==="object"){return Array.isArray(i)?serializeArray(i):serializeObject(i)}return undefined}function quoteString(t){const r={"'":.1,'"':.2};const i={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};let a="";for(let u=0;u<t.length;u++){const l=t[u];switch(l){case"'":case'"':r[l]++;a+=l;continue;case"\0":if(o.isDigit(t[u+1])){a+="\\x00";continue}}if(i[l]){a+=i[l];continue}if(l<" "){let t=l.charCodeAt(0).toString(16);a+="\\x"+("00"+t).substring(t.length);continue}a+=l}const u=p||Object.keys(r).reduce(((t,i)=>r[t]<r[i]?t:i));a=a.replace(new RegExp(u,"g"),i[u]);return u+a+u}function serializeObject(t){if(a.indexOf(t)>=0){throw TypeError("Converting circular structure to JSON5")}a.push(t);let r=u;u=u+d;let i=l||Object.keys(t);let o=[];for(const r of i){const i=serializeProperty(r,t);if(i!==undefined){let t=serializeKey(r)+":";if(d!==""){t+=" "}t+=i;o.push(t)}}let h;if(o.length===0){h="{}"}else{let t;if(d===""){t=o.join(",");h="{"+t+"}"}else{let i=",\n"+u;t=o.join(i);h="{\n"+u+t+",\n"+r+"}"}}a.pop();u=r;return h}function serializeKey(t){if(t.length===0){return quoteString(t,true)}const r=String.fromCodePoint(t.codePointAt(0));if(!o.isIdStartChar(r)){return quoteString(t,true)}for(let i=r.length;i<t.length;i++){if(!o.isIdContinueChar(String.fromCodePoint(t.codePointAt(i)))){return quoteString(t,true)}}return t}function serializeArray(t){if(a.indexOf(t)>=0){throw TypeError("Converting circular structure to JSON5")}a.push(t);let r=u;u=u+d;let i=[];for(let r=0;r<t.length;r++){const o=serializeProperty(String(r),t);i.push(o!==undefined?o:"null")}let o;if(i.length===0){o="[]"}else{if(d===""){let t=i.join(",");o="["+t+"]"}else{let t=",\n"+u;let a=i.join(t);o="[\n"+u+a+",\n"+r+"]"}}a.pop();u=r;return o}}},6195:t=>{t.exports.Space_Separator=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/;t.exports.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\u0860-\u086A\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\u09FC\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-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\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\uDF2D-\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\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\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\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\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\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/;t.exports.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\u0860-\u086A\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\u09FC\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-\u0AFF\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\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\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-\u1CF9\u1D00-\u1DF9\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-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\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\uDF2D-\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\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\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\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\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\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},3009:(t,r,i)=>{const o=i(6195);t.exports={isSpaceSeparator(t){return typeof t==="string"&&o.Space_Separator.test(t)},isIdStartChar(t){return typeof t==="string"&&(t>="a"&&t<="z"||t>="A"&&t<="Z"||t==="$"||t==="_"||o.ID_Start.test(t))},isIdContinueChar(t){return typeof t==="string"&&(t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"||t==="$"||t==="_"||t===""||t===""||o.ID_Continue.test(t))},isDigit(t){return typeof t==="string"&&/[0-9]/.test(t)},isHexDigit(t){return typeof t==="string"&&/[0-9A-Fa-f]/.test(t)}}},9439:t=>{"use strict";const{FORCE_COLOR:r,NODE_DISABLE_COLORS:i,TERM:o}=process.env;const a={enabled:!i&&o!=="dumb"&&r!=="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(t,r){let i=0,o,a="",u="";for(;i<t.length;i++){o=t[i];a+=o.open;u+=o.close;if(r.includes(o.close)){r=r.replace(o.rgx,o.close+o.open)}}return a+r+u}function chain(t,r){let i={has:t,keys:r};i.reset=a.reset.bind(i);i.bold=a.bold.bind(i);i.dim=a.dim.bind(i);i.italic=a.italic.bind(i);i.underline=a.underline.bind(i);i.inverse=a.inverse.bind(i);i.hidden=a.hidden.bind(i);i.strikethrough=a.strikethrough.bind(i);i.black=a.black.bind(i);i.red=a.red.bind(i);i.green=a.green.bind(i);i.yellow=a.yellow.bind(i);i.blue=a.blue.bind(i);i.magenta=a.magenta.bind(i);i.cyan=a.cyan.bind(i);i.white=a.white.bind(i);i.gray=a.gray.bind(i);i.grey=a.grey.bind(i);i.bgBlack=a.bgBlack.bind(i);i.bgRed=a.bgRed.bind(i);i.bgGreen=a.bgGreen.bind(i);i.bgYellow=a.bgYellow.bind(i);i.bgBlue=a.bgBlue.bind(i);i.bgMagenta=a.bgMagenta.bind(i);i.bgCyan=a.bgCyan.bind(i);i.bgWhite=a.bgWhite.bind(i);return i}function init(t,r){let i={open:`[${t}m`,close:`[${r}m`,rgx:new RegExp(`\\x1b\\[${r}m`,"g")};return function(r){if(this!==void 0&&this.has!==void 0){this.has.includes(t)||(this.has.push(t),this.keys.push(i));return r===void 0?this:a.enabled?run(this.keys,r+""):r+""}return r===void 0?chain([t],[i]):a.enabled?run([i],r+""):r+""}}t.exports=a},5912:t=>{"use strict";function hasKey(t,r){var i=t;r.slice(0,-1).forEach((function(t){i=i[t]||{}}));var o=r[r.length-1];return o in i}function isNumber(t){if(typeof t==="number"){return true}if(/^0x[0-9a-f]+$/i.test(t)){return true}return/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(t)}function isConstructorOrProto(t,r){return r==="constructor"&&typeof t[r]==="function"||r==="__proto__"}t.exports=function(t,r){if(!r){r={}}var i={bools:{},strings:{},unknownFn:null};if(typeof r.unknown==="function"){i.unknownFn=r.unknown}if(typeof r.boolean==="boolean"&&r.boolean){i.allBools=true}else{[].concat(r.boolean).filter(Boolean).forEach((function(t){i.bools[t]=true}))}var o={};function aliasIsBoolean(t){return o[t].some((function(t){return i.bools[t]}))}Object.keys(r.alias||{}).forEach((function(t){o[t]=[].concat(r.alias[t]);o[t].forEach((function(r){o[r]=[t].concat(o[t].filter((function(t){return r!==t})))}))}));[].concat(r.string).filter(Boolean).forEach((function(t){i.strings[t]=true;if(o[t]){[].concat(o[t]).forEach((function(t){i.strings[t]=true}))}}));var a=r.default||{};var u={_:[]};function argDefined(t,r){return i.allBools&&/^--[^=]+$/.test(r)||i.strings[t]||i.bools[t]||o[t]}function setKey(t,r,o){var a=t;for(var u=0;u<r.length-1;u++){var l=r[u];if(isConstructorOrProto(a,l)){return}if(a[l]===undefined){a[l]={}}if(a[l]===Object.prototype||a[l]===Number.prototype||a[l]===String.prototype){a[l]={}}if(a[l]===Array.prototype){a[l]=[]}a=a[l]}var h=r[r.length-1];if(isConstructorOrProto(a,h)){return}if(a===Object.prototype||a===Number.prototype||a===String.prototype){a={}}if(a===Array.prototype){a=[]}if(a[h]===undefined||i.bools[h]||typeof a[h]==="boolean"){a[h]=o}else if(Array.isArray(a[h])){a[h].push(o)}else{a[h]=[a[h],o]}}function setArg(t,r,a){if(a&&i.unknownFn&&!argDefined(t,a)){if(i.unknownFn(a)===false){return}}var l=!i.strings[t]&&isNumber(r)?Number(r):r;setKey(u,t.split("."),l);(o[t]||[]).forEach((function(t){setKey(u,t.split("."),l)}))}Object.keys(i.bools).forEach((function(t){setArg(t,a[t]===undefined?false:a[t])}));var l=[];if(t.indexOf("--")!==-1){l=t.slice(t.indexOf("--")+1);t=t.slice(0,t.indexOf("--"))}for(var h=0;h<t.length;h++){var d=t[h];var p;var g;if(/^--.+=/.test(d)){var y=d.match(/^--([^=]+)=([\s\S]*)$/);p=y[1];var b=y[2];if(i.bools[p]){b=b!=="false"}setArg(p,b,d)}else if(/^--no-.+/.test(d)){p=d.match(/^--no-(.+)/)[1];setArg(p,false,d)}else if(/^--.+/.test(d)){p=d.match(/^--(.+)/)[1];g=t[h+1];if(g!==undefined&&!/^(-|--)[^-]/.test(g)&&!i.bools[p]&&!i.allBools&&(o[p]?!aliasIsBoolean(p):true)){setArg(p,g,d);h+=1}else if(/^(true|false)$/.test(g)){setArg(p,g==="true",d);h+=1}else{setArg(p,i.strings[p]?"":true,d)}}else if(/^-[^-]+/.test(d)){var w=d.slice(1,-1).split("");var v=false;for(var E=0;E<w.length;E++){g=d.slice(E+2);if(g==="-"){setArg(w[E],g,d);continue}if(/[A-Za-z]/.test(w[E])&&g[0]==="="){setArg(w[E],g.slice(1),d);v=true;break}if(/[A-Za-z]/.test(w[E])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(g)){setArg(w[E],g,d);v=true;break}if(w[E+1]&&w[E+1].match(/\W/)){setArg(w[E],d.slice(E+2),d);v=true;break}else{setArg(w[E],i.strings[w[E]]?"":true,d)}}p=d.slice(-1)[0];if(!v&&p!=="-"){if(t[h+1]&&!/^(-|--)[^-]/.test(t[h+1])&&!i.bools[p]&&(o[p]?!aliasIsBoolean(p):true)){setArg(p,t[h+1],d);h+=1}else if(t[h+1]&&/^(true|false)$/.test(t[h+1])){setArg(p,t[h+1]==="true",d);h+=1}else{setArg(p,i.strings[p]?"":true,d)}}}else{if(!i.unknownFn||i.unknownFn(d)!==false){u._.push(i.strings._||!isNumber(d)?d:Number(d))}if(r.stopEarly){u._.push.apply(u._,t.slice(h+1));break}}}Object.keys(a).forEach((function(t){if(!hasKey(u,t.split("."))){setKey(u,t.split("."),a[t]);(o[t]||[]).forEach((function(r){setKey(u,r.split("."),a[t])}))}}));if(r["--"]){u["--"]=l.slice()}else{l.forEach((function(t){u._.push(t)}))}return u}},40:t=>{var r=1e3;var i=r*60;var o=i*60;var a=o*24;var u=a*7;var l=a*365.25;t.exports=function(t,r){r=r||{};var i=typeof t;if(i==="string"&&t.length>0){return parse(t)}else if(i==="number"&&isFinite(t)){return r.long?fmtLong(t):fmtShort(t)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function parse(t){t=String(t);if(t.length>100){return}var h=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(!h){return}var d=parseFloat(h[1]);var p=(h[2]||"ms").toLowerCase();switch(p){case"years":case"year":case"yrs":case"yr":case"y":return d*l;case"weeks":case"week":case"w":return d*u;case"days":case"day":case"d":return d*a;case"hours":case"hour":case"hrs":case"hr":case"h":return d*o;case"minutes":case"minute":case"mins":case"min":case"m":return d*i;case"seconds":case"second":case"secs":case"sec":case"s":return d*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return d;default:return undefined}}function fmtShort(t){var u=Math.abs(t);if(u>=a){return Math.round(t/a)+"d"}if(u>=o){return Math.round(t/o)+"h"}if(u>=i){return Math.round(t/i)+"m"}if(u>=r){return Math.round(t/r)+"s"}return t+"ms"}function fmtLong(t){var u=Math.abs(t);if(u>=a){return plural(t,u,a,"day")}if(u>=o){return plural(t,u,o,"hour")}if(u>=i){return plural(t,u,i,"minute")}if(u>=r){return plural(t,u,r,"second")}return t+" ms"}function plural(t,r,i,o){var a=r>=i*1.5;return Math.round(t/i)+" "+o+(a?"s":"")}},5440:(t,r,i)=>{"use strict";t.exports=npa;t.exports.resolve=resolve;t.exports.toPurl=toPurl;t.exports.Result=Result;const{URL:o}=i(7310);const a=i(6069);const u=i(7546);const l=global.FAKE_WINDOWS?i(1017).win32:i(1017);const h=i(8593);const{homedir:d}=i(2037);const{log:p}=i(1316);const g=process.platform==="win32"||global.FAKE_WINDOWS;const y=g?/\\|[/]/:/[/]/;const b=/^(?:git[+])?[a-z]+:/i;const w=/^[^@]+@[^:.]+\.[^:]+:.+$/i;const v=/[.](?:tgz|tar.gz|tar)$/i;function npa(t,r){let i;let o;if(typeof t==="object"){if(t instanceof Result&&(!r||r===t.where)){return t}else if(t.name&&t.rawSpec){return npa.resolve(t.name,t.rawSpec,r||t.where)}else{return npa(t.raw,r||t.where)}}const a=t[0]==="@"?t.slice(1).indexOf("@")+1:t.indexOf("@");const u=a>0?t.slice(0,a):t;if(b.test(t)){o=t}else if(w.test(t)){o=`git+ssh://${t}`}else if(u[0]!=="@"&&(y.test(u)||v.test(u))){o=t}else if(a>0){i=u;o=t.slice(a+1)||"*"}else{const r=h(t);if(r.validForOldPackages){i=t;o="*"}else{o=t}}return resolve(i,o,r,t)}const E=g?/^(?:[.]|~[/]|[/\\]|[a-zA-Z]:)/:/^(?:[.]|~[/]|[/]|[a-zA-Z]:)/;function resolve(t,r,i,o){const u=new Result({raw:o,name:t,rawSpec:r,fromArgument:o!=null});if(t){u.setName(t)}if(r&&(E.test(r)||/^file:/i.test(r))){return fromFile(u,i)}else if(r&&/^npm:/i.test(r)){return fromAlias(u,i)}const l=a.fromUrl(r,{noGitPlus:true,noCommittish:true});if(l){return fromHostedGit(u,l)}else if(r&&b.test(r)){return fromURL(u)}else if(r&&(y.test(r)||v.test(r))){return fromFile(u,i)}else{return fromRegistry(u)}}const A="https://registry.npmjs.org";function toPurl(t,r=A){const i=npa(t);if(i.type!=="version"){throw invalidPurlType(i.type,i.raw)}let o="pkg:npm/"+i.name.replace(/^@/,"%40")+"@"+i.rawSpec;if(r!==A){o+="?repository_url="+r}return o}function invalidPackageName(t,r,i){const o=new Error(`Invalid package name "${t}" of package "${i}": ${r.errors.join("; ")}.`);o.code="EINVALIDPACKAGENAME";return o}function invalidTagName(t,r){const i=new Error(`Invalid tag name "${t}" of package "${r}": Tags may not have any characters that encodeURIComponent encodes.`);i.code="EINVALIDTAGNAME";return i}function invalidPurlType(t,r){const i=new Error(`Invalid type "${t}" of package "${r}": Purl can only be generated for "version" types.`);i.code="EINVALIDPURLTYPE";return i}function Result(t){this.type=t.type;this.registry=t.registry;this.where=t.where;if(t.raw==null){this.raw=t.name?t.name+"@"+t.rawSpec:t.rawSpec}else{this.raw=t.raw}this.name=undefined;this.escapedName=undefined;this.scope=undefined;this.rawSpec=t.rawSpec||"";this.saveSpec=t.saveSpec;this.fetchSpec=t.fetchSpec;if(t.name){this.setName(t.name)}this.gitRange=t.gitRange;this.gitCommittish=t.gitCommittish;this.gitSubdir=t.gitSubdir;this.hosted=t.hosted}Result.prototype.setName=function(t){const r=h(t);if(!r.validForOldPackages){throw invalidPackageName(t,r,this.raw)}this.name=t;this.scope=t[0]==="@"?t.slice(0,t.indexOf("/")):undefined;this.escapedName=t.replace("/","%2f");return this};Result.prototype.toString=function(){const t=[];if(this.name!=null&&this.name!==""){t.push(this.name)}const r=this.saveSpec||this.fetchSpec||this.rawSpec;if(r!=null&&r!==""){t.push(r)}return t.length?t.join("@"):this.raw};Result.prototype.toJSON=function(){const t=Object.assign({},this);delete t.hosted;return t};function setGitAttrs(t,r){if(!r){t.gitCommittish=null;return}for(const i of r.split("::")){if(!i.includes(":")){if(t.gitRange){throw new Error("cannot override existing semver range with a committish")}if(t.gitCommittish){throw new Error("cannot override existing committish with a second committish")}t.gitCommittish=i;continue}const[r,o]=i.split(":");if(r==="semver"){if(t.gitCommittish){throw new Error("cannot override existing committish with a semver range")}if(t.gitRange){throw new Error("cannot override existing semver range with a second semver range")}t.gitRange=decodeURIComponent(o);continue}if(r==="path"){if(t.gitSubdir){throw new Error("cannot override existing path with a second path")}t.gitSubdir=`/${o}`;continue}p.warn("npm-package-arg",`ignoring unknown key "${r}"`)}}function fromFile(t,r){if(!r){r=process.cwd()}t.type=v.test(t.rawSpec)?"file":"directory";t.where=r;let i;let a;const u=!/^file:/.test(t.rawSpec)?"file:":"";const h=u+t.rawSpec;let p=h.replace(/^file:/,"");try{a=new o(h,`file://${l.resolve(r)}/`);i=new o(h)}catch(i){const o=new Error("Invalid file: URL, must comply with RFC 8089");throw Object.assign(o,{raw:t.rawSpec,spec:t,where:r,originalError:i})}if(a.host&&a.host!=="localhost"){const u=t.rawSpec.replace(/^file:\/\//,"file:///");a=new o(u,`file://${l.resolve(r)}/`);i=new o(u);p=u.replace(/^file:/,"")}if(/^\/{1,3}\.\.?(\/|$)/.test(p)){const u=t.rawSpec.replace(/^file:\/{1,3}/,"file:");a=new o(u,`file://${l.resolve(r)}/`);i=new o(u);p=u.replace(/^file:/,"")}let y=decodeURIComponent(i.pathname);let b=decodeURIComponent(a.pathname);if(g){y=y.replace(/^\/+([a-z]:\/)/i,"$1");b=b.replace(/^\/+([a-z]:\/)/i,"$1")}if(/^\/~(\/|$)/.test(y)){t.saveSpec=`file:${y.substr(1)}`;b=l.resolve(d(),y.substr(3))}else if(!l.isAbsolute(p)){t.saveSpec=`file:${l.relative(r,b)}`}else{t.saveSpec=`file:${l.resolve(b)}`}t.fetchSpec=l.resolve(r,b);return t}function fromHostedGit(t,r){t.type="git";t.hosted=r;t.saveSpec=r.toString({noGitPlus:false,noCommittish:false});t.fetchSpec=r.getDefaultRepresentation()==="shortcut"?null:r.toString();setGitAttrs(t,r.committish);return t}function unsupportedURLType(t,r){const i=new Error(`Unsupported URL Type "${t}": ${r}`);i.code="EUNSUPPORTEDPROTOCOL";return i}function fromURL(t){let r=t.rawSpec;t.saveSpec=r;if(r.startsWith("git+ssh:")){const i=r.match(/^git\+ssh:\/\/([^:#]+:[^#]+(?:\.git)?)(?:#(.*))?$/i);if(i&&!i[1].match(/:[0-9]+\/?.*$/i)){t.type="git";setGitAttrs(t,i[2]);t.fetchSpec=i[1];return t}}else if(r.startsWith("git+file://")){r=r.replace(/\\/g,"/")}const i=new o(r);switch(i.protocol){case"git:":case"git+http:":case"git+https:":case"git+rsync:":case"git+ftp:":case"git+file:":case"git+ssh:":t.type="git";setGitAttrs(t,i.hash.slice(1));if(i.protocol==="git+file:"&&/^git\+file:\/\/[a-z]:/i.test(r)){t.fetchSpec=`git+file://${i.host.toLowerCase()}:${i.pathname}`}else{i.hash="";t.fetchSpec=i.toString()}if(t.fetchSpec.startsWith("git+")){t.fetchSpec=t.fetchSpec.slice(4)}break;case"http:":case"https:":t.type="remote";t.fetchSpec=t.saveSpec;break;default:throw unsupportedURLType(i.protocol,r)}return t}function fromAlias(t,r){const i=npa(t.rawSpec.substr(4),r);if(i.type==="alias"){throw new Error("nested aliases not supported")}if(!i.registry){throw new Error("aliases only work for registry deps")}if(!i.name){throw new Error("aliases must have a name")}t.subSpec=i;t.registry=true;t.type="alias";t.saveSpec=null;t.fetchSpec=null;return t}function fromRegistry(t){t.registry=true;const r=t.rawSpec.trim();t.saveSpec=null;t.fetchSpec=r;const i=u.valid(r,true);const o=u.validRange(r,true);if(i){t.type="version"}else if(o){t.type="range"}else{if(encodeURIComponent(r)!==r){throw invalidTagName(r,t.raw)}t.type="tag"}return t}},1316:t=>{const r=Symbol("proc-log.meta");t.exports={META:r,output:{LEVELS:["standard","error","buffer","flush"],KEYS:{standard:"standard",error:"error",buffer:"buffer",flush:"flush"},standard:function(...t){return process.emit("output","standard",...t)},error:function(...t){return process.emit("output","error",...t)},buffer:function(...t){return process.emit("output","buffer",...t)},flush:function(...t){return process.emit("output","flush",...t)}},log:{LEVELS:["notice","error","warn","info","verbose","http","silly","timing","pause","resume"],KEYS:{notice:"notice",error:"error",warn:"warn",info:"info",verbose:"verbose",http:"http",silly:"silly",timing:"timing",pause:"pause",resume:"resume"},error:function(...t){return process.emit("log","error",...t)},notice:function(...t){return process.emit("log","notice",...t)},warn:function(...t){return process.emit("log","warn",...t)},info:function(...t){return process.emit("log","info",...t)},verbose:function(...t){return process.emit("log","verbose",...t)},http:function(...t){return process.emit("log","http",...t)},silly:function(...t){return process.emit("log","silly",...t)},timing:function(...t){return process.emit("log","timing",...t)},pause:function(){return process.emit("log","pause")},resume:function(){return process.emit("log","resume")}},time:{LEVELS:["start","end"],KEYS:{start:"start",end:"end"},start:function(t,r){process.emit("time","start",t);function end(){return process.emit("time","end",t)}if(typeof r==="function"){const t=r();if(t&&t.finally){return t.finally(end)}end();return t}return end},end:function(t){return process.emit("time","end",t)}},input:{LEVELS:["start","end","read"],KEYS:{start:"start",end:"end",read:"read"},start:function(t){process.emit("input","start");function end(){return process.emit("input","end")}if(typeof t==="function"){const r=t();if(r&&r.finally){return r.finally(end)}end();return r}return end},end:function(){return process.emit("input","end")},read:function(...t){let r,i;const o=new Promise(((t,o)=>{r=t;i=o}));process.emit("input","read",r,i,...t);return o}}}},2651:(t,r,i)=>{"use strict";const o=i(3585);const a=i(9335);const u=i(6067);const l=i(2554);const h=i(6022);const d=i(1205);const p=Symbol("text");const g=Symbol("prefixText");class Ora{constructor(t){if(typeof t==="string"){t={text:t}}this.options=Object.assign({text:"",color:"cyan",stream:process.stderr},t);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=null;this.isEnabled=typeof this.options.isEnabled==="boolean"?this.options.isEnabled:this.stream&&this.stream.isTTY&&!process.env.CI;this.text=this.options.text;this.prefixText=this.options.prefixText;this.linesToClear=0;this.indent=this.options.indent}get indent(){return this._indent}set indent(t=0){if(!(t>=0&&Number.isInteger(t))){throw new Error("The `indent` option must be an integer from 0 and up")}this._indent=t}get spinner(){return this._spinner}set spinner(t){this.frameIndex=0;if(typeof t==="object"){if(t.frames===undefined){throw new Error("The given spinner must have a `frames` property")}this._spinner=t}else if(process.platform==="win32"){this._spinner=u.line}else if(t===undefined){this._spinner=u.dots}else if(u[t]){this._spinner=u[t]}else{throw new Error(`There is no built-in spinner named '${t}'. See https://github.com/sindresorhus/cli-spinners/blob/master/spinners.json for a full list.`)}}get text(){return this[p]}get prefixText(){return this[g]}get isSpinning(){return this.id!==null}updateLineCount(){const t=this.stream.columns||80;const r=typeof this[g]==="string"?this[g]+"-":"";this.lineCount=h(r+"--"+this[p]).split("\n").reduce(((r,i)=>r+Math.max(1,Math.ceil(d(i)/t))),0)}set text(t){this[p]=t;this.updateLineCount()}set prefixText(t){this[g]=t;this.updateLineCount()}frame(){const{frames:t}=this.spinner;let r=t[this.frameIndex];if(this.color){r=o[this.color](r)}this.frameIndex=++this.frameIndex%t.length;const i=typeof this.prefixText==="string"?this.prefixText+" ":"";const a=typeof this.text==="string"?" "+this.text:"";return i+r+a}clear(){if(!this.isEnabled||!this.stream.isTTY){return this}for(let t=0;t<this.linesToClear;t++){if(t>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(t){if(t){this.text=t}if(!this.isEnabled){this.stream.write(`- ${this.text}\n`);return this}if(this.isSpinning){return this}if(this.hideCursor){a.hide(this.stream)}this.render();this.id=setInterval(this.render.bind(this),this.interval);return this}stop(){if(!this.isEnabled){return this}clearInterval(this.id);this.id=null;this.frameIndex=0;this.clear();if(this.hideCursor){a.show(this.stream)}return this}succeed(t){return this.stopAndPersist({symbol:l.success,text:t})}fail(t){return this.stopAndPersist({symbol:l.error,text:t})}warn(t){return this.stopAndPersist({symbol:l.warning,text:t})}info(t){return this.stopAndPersist({symbol:l.info,text:t})}stopAndPersist(t={}){const r=t.prefixText||this.prefixText;const i=typeof r==="string"?r+" ":"";const o=t.text||this.text;const a=typeof o==="string"?" "+o:"";this.stop();this.stream.write(`${i}${t.symbol||" "}${a}\n`);return this}}const oraFactory=function(t){return new Ora(t)};t.exports=oraFactory;t.exports["default"]=oraFactory;t.exports.promise=(t,r)=>{if(typeof t.then!=="function"){throw new TypeError("Parameter `action` must be a Promise")}const i=new Ora(r);i.start();t.then((()=>{i.succeed()}),(()=>{i.fail()}));return i}},6334:t=>{"use strict";t.exports=t=>{t=Object.assign({onlyFirst:false},t);const r=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(r,t.onlyFirst?undefined:"g")}},4445:(t,r,i)=>{"use strict";t=i.nmd(t);const o=i(2830);const wrapAnsi16=(t,r)=>function(){const i=t.apply(o,arguments);return`[${i+r}m`};const wrapAnsi256=(t,r)=>function(){const i=t.apply(o,arguments);return`[${38+r};5;${i}m`};const wrapAnsi16m=(t,r)=>function(){const i=t.apply(o,arguments);return`[${38+r};2;${i[0]};${i[1]};${i[2]}m`};function assembleStyles(){const t=new Map;const r={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]}};r.color.grey=r.color.gray;for(const i of Object.keys(r)){const o=r[i];for(const i of Object.keys(o)){const a=o[i];r[i]={open:`[${a[0]}m`,close:`[${a[1]}m`};o[i]=r[i];t.set(a[0],a[1])}Object.defineProperty(r,i,{value:o,enumerable:false});Object.defineProperty(r,"codes",{value:t,enumerable:false})}const ansi2ansi=t=>t;const rgb2rgb=(t,r,i)=>[t,r,i];r.color.close="[39m";r.bgColor.close="[49m";r.color.ansi={ansi:wrapAnsi16(ansi2ansi,0)};r.color.ansi256={ansi256:wrapAnsi256(ansi2ansi,0)};r.color.ansi16m={rgb:wrapAnsi16m(rgb2rgb,0)};r.bgColor.ansi={ansi:wrapAnsi16(ansi2ansi,10)};r.bgColor.ansi256={ansi256:wrapAnsi256(ansi2ansi,10)};r.bgColor.ansi16m={rgb:wrapAnsi16m(rgb2rgb,10)};for(let t of Object.keys(o)){if(typeof o[t]!=="object"){continue}const i=o[t];if(t==="ansi16"){t="ansi"}if("ansi16"in i){r.color.ansi[t]=wrapAnsi16(i.ansi16,0);r.bgColor.ansi[t]=wrapAnsi16(i.ansi16,10)}if("ansi256"in i){r.color.ansi256[t]=wrapAnsi256(i.ansi256,0);r.bgColor.ansi256[t]=wrapAnsi256(i.ansi256,10)}if("rgb"in i){r.color.ansi16m[t]=wrapAnsi16m(i.rgb,0);r.bgColor.ansi16m[t]=wrapAnsi16m(i.rgb,10)}}return r}Object.defineProperty(t,"exports",{enumerable:true,get:assembleStyles})},3585:(t,r,i)=>{"use strict";const o=i(789);const a=i(4445);const u=i(5387).stdout;const l=i(9149);const h=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm");const d=["ansi","ansi","ansi256","ansi16m"];const p=new Set(["gray"]);const g=Object.create(null);function applyOptions(t,r){r=r||{};const i=u?u.level:0;t.level=r.level===undefined?i:r.level;t.enabled="enabled"in r?r.enabled:t.level>0}function Chalk(t){if(!this||!(this instanceof Chalk)||this.template){const r={};applyOptions(r,t);r.template=function(){const t=[].slice.call(arguments);return chalkTag.apply(null,[r.template].concat(t))};Object.setPrototypeOf(r,Chalk.prototype);Object.setPrototypeOf(r.template,r);r.template.constructor=Chalk;return r.template}applyOptions(this,t)}if(h){a.blue.open="[94m"}for(const t of Object.keys(a)){a[t].closeRe=new RegExp(o(a[t].close),"g");g[t]={get(){const r=a[t];return build.call(this,this._styles?this._styles.concat(r):[r],this._empty,t)}}}g.visible={get(){return build.call(this,this._styles||[],true,"visible")}};a.color.closeRe=new RegExp(o(a.color.close),"g");for(const t of Object.keys(a.color.ansi)){if(p.has(t)){continue}g[t]={get(){const r=this.level;return function(){const i=a.color[d[r]][t].apply(null,arguments);const o={open:i,close:a.color.close,closeRe:a.color.closeRe};return build.call(this,this._styles?this._styles.concat(o):[o],this._empty,t)}}}}a.bgColor.closeRe=new RegExp(o(a.bgColor.close),"g");for(const t of Object.keys(a.bgColor.ansi)){if(p.has(t)){continue}const r="bg"+t[0].toUpperCase()+t.slice(1);g[r]={get(){const r=this.level;return function(){const i=a.bgColor[d[r]][t].apply(null,arguments);const o={open:i,close:a.bgColor.close,closeRe:a.bgColor.closeRe};return build.call(this,this._styles?this._styles.concat(o):[o],this._empty,t)}}}}const y=Object.defineProperties((()=>{}),g);function build(t,r,i){const builder=function(){return applyStyle.apply(builder,arguments)};builder._styles=t;builder._empty=r;const o=this;Object.defineProperty(builder,"level",{enumerable:true,get(){return o.level},set(t){o.level=t}});Object.defineProperty(builder,"enabled",{enumerable:true,get(){return o.enabled},set(t){o.enabled=t}});builder.hasGrey=this.hasGrey||i==="gray"||i==="grey";builder.__proto__=y;return builder}function applyStyle(){const t=arguments;const r=t.length;let i=String(arguments[0]);if(r===0){return""}if(r>1){for(let o=1;o<r;o++){i+=" "+t[o]}}if(!this.enabled||this.level<=0||!i){return this._empty?"":i}const o=a.dim.open;if(h&&this.hasGrey){a.dim.open=""}for(const t of this._styles.slice().reverse()){i=t.open+i.replace(t.closeRe,t.open)+t.close;i=i.replace(/\r?\n/g,`${t.close}$&${t.open}`)}a.dim.open=o;return i}function chalkTag(t,r){if(!Array.isArray(r)){return[].slice.call(arguments,1).join(" ")}const i=[].slice.call(arguments,2);const o=[r.raw[0]];for(let t=1;t<r.length;t++){o.push(String(i[t-1]).replace(/[{}\\]/g,"\\$&"));o.push(String(r.raw[t]))}return l(t,o.join(""))}Object.defineProperties(Chalk.prototype,g);t.exports=Chalk();t.exports.supportsColor=u;t.exports["default"]=t.exports},9149:t=>{"use strict";const r=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;const i=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;const o=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;const a=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi;const u=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function unescape(t){if(t[0]==="u"&&t.length===5||t[0]==="x"&&t.length===3){return String.fromCharCode(parseInt(t.slice(1),16))}return u.get(t)||t}function parseArguments(t,r){const i=[];const u=r.trim().split(/\s*,\s*/g);let l;for(const r of u){if(!isNaN(r)){i.push(Number(r))}else if(l=r.match(o)){i.push(l[2].replace(a,((t,r,i)=>r?unescape(r):i)))}else{throw new Error(`Invalid Chalk template style argument: ${r} (in style '${t}')`)}}return i}function parseStyle(t){i.lastIndex=0;const r=[];let o;while((o=i.exec(t))!==null){const t=o[1];if(o[2]){const i=parseArguments(t,o[2]);r.push([t].concat(i))}else{r.push([t])}}return r}function buildStyle(t,r){const i={};for(const t of r){for(const r of t.styles){i[r[0]]=t.inverse?null:r.slice(1)}}let o=t;for(const t of Object.keys(i)){if(Array.isArray(i[t])){if(!(t in o)){throw new Error(`Unknown Chalk style: ${t}`)}if(i[t].length>0){o=o[t].apply(o,i[t])}else{o=o[t]}}}return o}t.exports=(t,i)=>{const o=[];const a=[];let u=[];i.replace(r,((r,i,l,h,d,p)=>{if(i){u.push(unescape(i))}else if(h){const r=u.join("");u=[];a.push(o.length===0?r:buildStyle(t,o)(r));o.push({inverse:l,styles:parseStyle(h)})}else if(d){if(o.length===0){throw new Error("Found extraneous } in Chalk template literal")}a.push(buildStyle(t,o)(u.join("")));u=[];o.pop()}else{u.push(p)}}));a.push(u.join(""));if(o.length>0){const t=`Chalk template literal is missing ${o.length} closing bracket${o.length===1?"":"s"} (\`}\`)`;throw new Error(t)}return a.join("")}},9335:(t,r,i)=>{"use strict";const o=i(8664);let a=false;r.show=t=>{const r=t||process.stderr;if(!r.isTTY){return}a=false;r.write("[?25h")};r.hide=t=>{const r=t||process.stderr;if(!r.isTTY){return}o();a=true;r.write("[?25l")};r.toggle=(t,i)=>{if(t!==undefined){a=t}if(a){r.show(i)}else{r.hide(i)}}},789:t=>{"use strict";var r=/[|\\{}()[\]^$+*?.]/g;t.exports=function(t){if(typeof t!=="string"){throw new TypeError("Expected a string")}return t.replace(r,"\\$&")}},125:t=>{"use strict";t.exports=(t,r)=>{r=r||process.argv;const i=t.startsWith("-")?"":t.length===1?"-":"--";const o=r.indexOf(i+t);const a=r.indexOf("--");return o!==-1&&(a===-1?true:o<a)}},2554:(t,r,i)=>{"use strict";const o=i(3585);const a=process.platform!=="win32"||process.env.CI||process.env.TERM==="xterm-256color";const u={info:o.blue("ℹ"),success:o.green("✔"),warning:o.yellow("⚠"),error:o.red("✖")};const l={info:o.blue("i"),success:o.green("√"),warning:o.yellow("‼"),error:o.red("×")};t.exports=a?u:l},4048:t=>{"use strict";t.exports=(t,r)=>{for(const i of Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))}return t}},3527:(t,r,i)=>{"use strict";const o=i(4048);t.exports=(t,r)=>{if(r===true){throw new TypeError("The second argument is now an options object")}if(typeof t!=="function"){throw new TypeError("Expected a function")}r=r||{};let i;let a=false;const u=t.displayName||t.name||"<anonymous>";const onetime=function(){if(a){if(r.throw===true){throw new Error(`Function \`${u}\` can only be called once`)}return i}a=true;i=t.apply(this,arguments);t=null;return i};o(onetime,t);return onetime}},8664:(t,r,i)=>{"use strict";const o=i(3527);const a=i(2028);t.exports=o((()=>{a((()=>{process.stderr.write("[?25h")}),{alwaysLast:true})}))},6022:(t,r,i)=>{"use strict";const o=i(6334);const stripAnsi=t=>typeof t==="string"?t.replace(o(),""):t;t.exports=stripAnsi;t.exports["default"]=stripAnsi},5387:(t,r,i)=>{"use strict";const o=i(2037);const a=i(125);const u=process.env;let l;if(a("no-color")||a("no-colors")||a("color=false")){l=false}else if(a("color")||a("colors")||a("color=true")||a("color=always")){l=true}if("FORCE_COLOR"in u){l=u.FORCE_COLOR.length===0||parseInt(u.FORCE_COLOR,10)!==0}function translateLevel(t){if(t===0){return false}return{level:t,hasBasic:true,has256:t>=2,has16m:t>=3}}function supportsColor(t){if(l===false){return 0}if(a("color=16m")||a("color=full")||a("color=truecolor")){return 3}if(a("color=256")){return 2}if(t&&!t.isTTY&&l!==true){return 0}const r=l?1:0;if(process.platform==="win32"){const t=o.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number(t[0])>=10&&Number(t[2])>=10586){return Number(t[2])>=14931?3:2}return 1}if("CI"in u){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((t=>t in u))||u.CI_NAME==="codeship"){return 1}return r}if("TEAMCITY_VERSION"in u){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(u.TEAMCITY_VERSION)?1:0}if(u.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in u){const t=parseInt((u.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(u.TERM_PROGRAM){case"iTerm.app":return t>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(u.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(u.TERM)){return 1}if("COLORTERM"in u){return 1}if(u.TERM==="dumb"){return r}return r}function getSupportLevel(t){const r=supportsColor(t);return translateLevel(r)}t.exports={supportsColor:getSupportLevel,stdout:getSupportLevel(process.stdout),stderr:getSupportLevel(process.stderr)}},2170:t=>{"use strict";const pathKey=(t={})=>{const r=t.env||process.env;const i=t.platform||process.platform;if(i!=="win32"){return"PATH"}return Object.keys(r).reverse().find((t=>t.toUpperCase()==="PATH"))||"Path"};t.exports=pathKey;t.exports["default"]=pathKey},9397:t=>{let r=process||{},i=r.argv||[],o=r.env||{};let a=!(!!o.NO_COLOR||i.includes("--no-color"))&&(!!o.FORCE_COLOR||i.includes("--color")||r.platform==="win32"||(r.stdout||{}).isTTY&&o.TERM!=="dumb"||!!o.CI);let formatter=(t,r,i=t)=>o=>{let a=""+o,u=a.indexOf(r,t.length);return~u?t+replaceClose(a,r,i,u)+r:t+a+r};let replaceClose=(t,r,i,o)=>{let a="",u=0;do{a+=t.substring(u,o)+i;u=o+r.length;o=t.indexOf(r,u)}while(~o);return a+t.substring(u)};let createColors=(t=a)=>{let r=t?formatter:()=>String;return{isColorSupported:t,reset:r("[0m","[0m"),bold:r("[1m","[22m","[22m[1m"),dim:r("[2m","[22m","[22m[2m"),italic:r("[3m","[23m"),underline:r("[4m","[24m"),inverse:r("[7m","[27m"),hidden:r("[8m","[28m"),strikethrough:r("[9m","[29m"),black:r("[30m","[39m"),red:r("[31m","[39m"),green:r("[32m","[39m"),yellow:r("[33m","[39m"),blue:r("[34m","[39m"),magenta:r("[35m","[39m"),cyan:r("[36m","[39m"),white:r("[37m","[39m"),gray:r("[90m","[39m"),bgBlack:r("[40m","[49m"),bgRed:r("[41m","[49m"),bgGreen:r("[42m","[49m"),bgYellow:r("[43m","[49m"),bgBlue:r("[44m","[49m"),bgMagenta:r("[45m","[49m"),bgCyan:r("[46m","[49m"),bgWhite:r("[47m","[49m"),blackBright:r("[90m","[39m"),redBright:r("[91m","[39m"),greenBright:r("[92m","[39m"),yellowBright:r("[93m","[39m"),blueBright:r("[94m","[39m"),magentaBright:r("[95m","[39m"),cyanBright:r("[96m","[39m"),whiteBright:r("[97m","[39m"),bgBlackBright:r("[100m","[49m"),bgRedBright:r("[101m","[49m"),bgGreenBright:r("[102m","[49m"),bgYellowBright:r("[103m","[49m"),bgBlueBright:r("[104m","[49m"),bgMagentaBright:r("[105m","[49m"),bgCyanBright:r("[106m","[49m"),bgWhiteBright:r("[107m","[49m")}};t.exports=createColors();t.exports.createColors=createColors},9138:(t,r,i)=>{"use strict";t.exports=i(4755)},8223:(t,r,i)=>{"use strict";const o=i(1017);const a="\\\\/";const u=`[^${a}]`;const l="\\.";const h="\\+";const d="\\?";const p="\\/";const g="(?=.)";const y="[^/]";const b=`(?:${p}|$)`;const w=`(?:^|${p})`;const v=`${l}{1,2}${b}`;const E=`(?!${l})`;const A=`(?!${w}${v})`;const _=`(?!${l}{0,1}${b})`;const C=`(?!${v})`;const S=`[^.${p}]`;const D=`${y}*?`;const x={DOT_LITERAL:l,PLUS_LITERAL:h,QMARK_LITERAL:d,SLASH_LITERAL:p,ONE_CHAR:g,QMARK:y,END_ANCHOR:b,DOTS_SLASH:v,NO_DOT:E,NO_DOTS:A,NO_DOT_SLASH:_,NO_DOTS_SLASH:C,QMARK_NO_DOT:S,STAR:D,START_ANCHOR:w};const O={...x,SLASH_LITERAL:`[${a}]`,QMARK:u,STAR:`${u}*?`,DOTS_SLASH:`${l}{1,2}(?:[${a}]|$)`,NO_DOT:`(?!${l})`,NO_DOTS:`(?!(?:^|[${a}])${l}{1,2}(?:[${a}]|$))`,NO_DOT_SLASH:`(?!${l}{0,1}(?:[${a}]|$))`,NO_DOTS_SLASH:`(?!${l}{1,2}(?:[${a}]|$))`,QMARK_NO_DOT:`[^.${a}]`,START_ANCHOR:`(?:^|[${a}])`,END_ANCHOR:`(?:[${a}]|$)`};const R={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"};t.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:R,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:o.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===true?O:x}}},1833:(t,r,i)=>{"use strict";const o=i(8223);const a=i(2924);const{MAX_LENGTH:u,POSIX_REGEX_SOURCE:l,REGEX_NON_SPECIAL_CHARS:h,REGEX_SPECIAL_CHARS_BACKREF:d,REPLACEMENTS:p}=o;const expandRange=(t,r)=>{if(typeof r.expandRange==="function"){return r.expandRange(...t,r)}t.sort();const i=`[${t.join("-")}]`;try{new RegExp(i)}catch(r){return t.map((t=>a.escapeRegex(t))).join("..")}return i};const syntaxError=(t,r)=>`Missing ${t}: "${r}" - use "\\\\${r}" to match literal characters`;const parse=(t,r)=>{if(typeof t!=="string"){throw new TypeError("Expected a string")}t=p[t]||t;const i={...r};const g=typeof i.maxLength==="number"?Math.min(u,i.maxLength):u;let y=t.length;if(y>g){throw new SyntaxError(`Input length: ${y}, exceeds maximum allowed length: ${g}`)}const b={type:"bos",value:"",output:i.prepend||""};const w=[b];const v=i.capture?"":"?:";const E=a.isWindows(r);const A=o.globChars(E);const _=o.extglobChars(A);const{DOT_LITERAL:C,PLUS_LITERAL:S,SLASH_LITERAL:D,ONE_CHAR:x,DOTS_SLASH:O,NO_DOT:R,NO_DOT_SLASH:k,NO_DOTS_SLASH:P,QMARK:T,QMARK_NO_DOT:M,STAR:L,START_ANCHOR:I}=A;const globstar=t=>`(${v}(?:(?!${I}${t.dot?O:C}).)*?)`;const $=i.dot?"":R;const N=i.dot?T:M;let B=i.bash===true?globstar(i):L;if(i.capture){B=`(${B})`}if(typeof i.noext==="boolean"){i.noextglob=i.noext}const j={input:t,index:-1,start:0,dot:i.dot===true,consumed:"",output:"",prefix:"",backtrack:false,negated:false,brackets:0,braces:0,parens:0,quotes:0,globstar:false,tokens:w};t=a.removePrefix(t,j);y=t.length;const H=[];const G=[];const U=[];let W=b;let z;const eos=()=>j.index===y-1;const Y=j.peek=(r=1)=>t[j.index+r];const K=j.advance=()=>t[++j.index]||"";const remaining=()=>t.slice(j.index+1);const consume=(t="",r=0)=>{j.consumed+=t;j.index+=r};const append=t=>{j.output+=t.output!=null?t.output:t.value;consume(t.value)};const negate=()=>{let t=1;while(Y()==="!"&&(Y(2)!=="("||Y(3)==="?")){K();j.start++;t++}if(t%2===0){return false}j.negated=true;j.start++;return true};const increment=t=>{j[t]++;U.push(t)};const decrement=t=>{j[t]--;U.pop()};const push=t=>{if(W.type==="globstar"){const r=j.braces>0&&(t.type==="comma"||t.type==="brace");const i=t.extglob===true||H.length&&(t.type==="pipe"||t.type==="paren");if(t.type!=="slash"&&t.type!=="paren"&&!r&&!i){j.output=j.output.slice(0,-W.output.length);W.type="star";W.value="*";W.output=B;j.output+=W.output}}if(H.length&&t.type!=="paren"){H[H.length-1].inner+=t.value}if(t.value||t.output)append(t);if(W&&W.type==="text"&&t.type==="text"){W.value+=t.value;W.output=(W.output||"")+t.value;return}t.prev=W;w.push(t);W=t};const extglobOpen=(t,r)=>{const o={..._[r],conditions:1,inner:""};o.prev=W;o.parens=j.parens;o.output=j.output;const a=(i.capture?"(":"")+o.open;increment("parens");push({type:t,value:r,output:j.output?"":x});push({type:"paren",extglob:true,value:K(),output:a});H.push(o)};const extglobClose=t=>{let o=t.close+(i.capture?")":"");let a;if(t.type==="negate"){let u=B;if(t.inner&&t.inner.length>1&&t.inner.includes("/")){u=globstar(i)}if(u!==B||eos()||/^\)+$/.test(remaining())){o=t.close=`)$))${u}`}if(t.inner.includes("*")&&(a=remaining())&&/^\.[^\\/.]+$/.test(a)){const i=parse(a,{...r,fastpaths:false}).output;o=t.close=`)${i})${u})`}if(t.prev.type==="bos"){j.negatedExtglob=true}}push({type:"paren",extglob:true,value:z,output:o});decrement("parens")};if(i.fastpaths!==false&&!/(^[*!]|[/()[\]{}"])/.test(t)){let o=false;let u=t.replace(d,((t,r,i,a,u,l)=>{if(a==="\\"){o=true;return t}if(a==="?"){if(r){return r+a+(u?T.repeat(u.length):"")}if(l===0){return N+(u?T.repeat(u.length):"")}return T.repeat(i.length)}if(a==="."){return C.repeat(i.length)}if(a==="*"){if(r){return r+a+(u?B:"")}return B}return r?t:`\\${t}`}));if(o===true){if(i.unescape===true){u=u.replace(/\\/g,"")}else{u=u.replace(/\\+/g,(t=>t.length%2===0?"\\\\":t?"\\":""))}}if(u===t&&i.contains===true){j.output=t;return j}j.output=a.wrapOutput(u,j,r);return j}while(!eos()){z=K();if(z==="\0"){continue}if(z==="\\"){const t=Y();if(t==="/"&&i.bash!==true){continue}if(t==="."||t===";"){continue}if(!t){z+="\\";push({type:"text",value:z});continue}const r=/^\\+/.exec(remaining());let o=0;if(r&&r[0].length>2){o=r[0].length;j.index+=o;if(o%2!==0){z+="\\"}}if(i.unescape===true){z=K()}else{z+=K()}if(j.brackets===0){push({type:"text",value:z});continue}}if(j.brackets>0&&(z!=="]"||W.value==="["||W.value==="[^")){if(i.posix!==false&&z===":"){const t=W.value.slice(1);if(t.includes("[")){W.posix=true;if(t.includes(":")){const t=W.value.lastIndexOf("[");const r=W.value.slice(0,t);const i=W.value.slice(t+2);const o=l[i];if(o){W.value=r+o;j.backtrack=true;K();if(!b.output&&w.indexOf(W)===1){b.output=x}continue}}}}if(z==="["&&Y()!==":"||z==="-"&&Y()==="]"){z=`\\${z}`}if(z==="]"&&(W.value==="["||W.value==="[^")){z=`\\${z}`}if(i.posix===true&&z==="!"&&W.value==="["){z="^"}W.value+=z;append({value:z});continue}if(j.quotes===1&&z!=='"'){z=a.escapeRegex(z);W.value+=z;append({value:z});continue}if(z==='"'){j.quotes=j.quotes===1?0:1;if(i.keepQuotes===true){push({type:"text",value:z})}continue}if(z==="("){increment("parens");push({type:"paren",value:z});continue}if(z===")"){if(j.parens===0&&i.strictBrackets===true){throw new SyntaxError(syntaxError("opening","("))}const t=H[H.length-1];if(t&&j.parens===t.parens+1){extglobClose(H.pop());continue}push({type:"paren",value:z,output:j.parens?")":"\\)"});decrement("parens");continue}if(z==="["){if(i.nobracket===true||!remaining().includes("]")){if(i.nobracket!==true&&i.strictBrackets===true){throw new SyntaxError(syntaxError("closing","]"))}z=`\\${z}`}else{increment("brackets")}push({type:"bracket",value:z});continue}if(z==="]"){if(i.nobracket===true||W&&W.type==="bracket"&&W.value.length===1){push({type:"text",value:z,output:`\\${z}`});continue}if(j.brackets===0){if(i.strictBrackets===true){throw new SyntaxError(syntaxError("opening","["))}push({type:"text",value:z,output:`\\${z}`});continue}decrement("brackets");const t=W.value.slice(1);if(W.posix!==true&&t[0]==="^"&&!t.includes("/")){z=`/${z}`}W.value+=z;append({value:z});if(i.literalBrackets===false||a.hasRegexChars(t)){continue}const r=a.escapeRegex(W.value);j.output=j.output.slice(0,-W.value.length);if(i.literalBrackets===true){j.output+=r;W.value=r;continue}W.value=`(${v}${r}|${W.value})`;j.output+=W.value;continue}if(z==="{"&&i.nobrace!==true){increment("braces");const t={type:"brace",value:z,output:"(",outputIndex:j.output.length,tokensIndex:j.tokens.length};G.push(t);push(t);continue}if(z==="}"){const t=G[G.length-1];if(i.nobrace===true||!t){push({type:"text",value:z,output:z});continue}let r=")";if(t.dots===true){const t=w.slice();const o=[];for(let r=t.length-1;r>=0;r--){w.pop();if(t[r].type==="brace"){break}if(t[r].type!=="dots"){o.unshift(t[r].value)}}r=expandRange(o,i);j.backtrack=true}if(t.comma!==true&&t.dots!==true){const i=j.output.slice(0,t.outputIndex);const o=j.tokens.slice(t.tokensIndex);t.value=t.output="\\{";z=r="\\}";j.output=i;for(const t of o){j.output+=t.output||t.value}}push({type:"brace",value:z,output:r});decrement("braces");G.pop();continue}if(z==="|"){if(H.length>0){H[H.length-1].conditions++}push({type:"text",value:z});continue}if(z===","){let t=z;const r=G[G.length-1];if(r&&U[U.length-1]==="braces"){r.comma=true;t="|"}push({type:"comma",value:z,output:t});continue}if(z==="/"){if(W.type==="dot"&&j.index===j.start+1){j.start=j.index+1;j.consumed="";j.output="";w.pop();W=b;continue}push({type:"slash",value:z,output:D});continue}if(z==="."){if(j.braces>0&&W.type==="dot"){if(W.value===".")W.output=C;const t=G[G.length-1];W.type="dots";W.output+=z;W.value+=z;t.dots=true;continue}if(j.braces+j.parens===0&&W.type!=="bos"&&W.type!=="slash"){push({type:"text",value:z,output:C});continue}push({type:"dot",value:z,output:C});continue}if(z==="?"){const t=W&&W.value==="(";if(!t&&i.noextglob!==true&&Y()==="("&&Y(2)!=="?"){extglobOpen("qmark",z);continue}if(W&&W.type==="paren"){const t=Y();let r=z;if(t==="<"&&!a.supportsLookbehinds()){throw new Error("Node.js v10 or higher is required for regex lookbehinds")}if(W.value==="("&&!/[!=<:]/.test(t)||t==="<"&&!/<([!=]|\w+>)/.test(remaining())){r=`\\${z}`}push({type:"text",value:z,output:r});continue}if(i.dot!==true&&(W.type==="slash"||W.type==="bos")){push({type:"qmark",value:z,output:M});continue}push({type:"qmark",value:z,output:T});continue}if(z==="!"){if(i.noextglob!==true&&Y()==="("){if(Y(2)!=="?"||!/[!=<:]/.test(Y(3))){extglobOpen("negate",z);continue}}if(i.nonegate!==true&&j.index===0){negate();continue}}if(z==="+"){if(i.noextglob!==true&&Y()==="("&&Y(2)!=="?"){extglobOpen("plus",z);continue}if(W&&W.value==="("||i.regex===false){push({type:"plus",value:z,output:S});continue}if(W&&(W.type==="bracket"||W.type==="paren"||W.type==="brace")||j.parens>0){push({type:"plus",value:z});continue}push({type:"plus",value:S});continue}if(z==="@"){if(i.noextglob!==true&&Y()==="("&&Y(2)!=="?"){push({type:"at",extglob:true,value:z,output:""});continue}push({type:"text",value:z});continue}if(z!=="*"){if(z==="$"||z==="^"){z=`\\${z}`}const t=h.exec(remaining());if(t){z+=t[0];j.index+=t[0].length}push({type:"text",value:z});continue}if(W&&(W.type==="globstar"||W.star===true)){W.type="star";W.star=true;W.value+=z;W.output=B;j.backtrack=true;j.globstar=true;consume(z);continue}let r=remaining();if(i.noextglob!==true&&/^\([^?]/.test(r)){extglobOpen("star",z);continue}if(W.type==="star"){if(i.noglobstar===true){consume(z);continue}const o=W.prev;const a=o.prev;const u=o.type==="slash"||o.type==="bos";const l=a&&(a.type==="star"||a.type==="globstar");if(i.bash===true&&(!u||r[0]&&r[0]!=="/")){push({type:"star",value:z,output:""});continue}const h=j.braces>0&&(o.type==="comma"||o.type==="brace");const d=H.length&&(o.type==="pipe"||o.type==="paren");if(!u&&o.type!=="paren"&&!h&&!d){push({type:"star",value:z,output:""});continue}while(r.slice(0,3)==="/**"){const i=t[j.index+4];if(i&&i!=="/"){break}r=r.slice(3);consume("/**",3)}if(o.type==="bos"&&eos()){W.type="globstar";W.value+=z;W.output=globstar(i);j.output=W.output;j.globstar=true;consume(z);continue}if(o.type==="slash"&&o.prev.type!=="bos"&&!l&&eos()){j.output=j.output.slice(0,-(o.output+W.output).length);o.output=`(?:${o.output}`;W.type="globstar";W.output=globstar(i)+(i.strictSlashes?")":"|$)");W.value+=z;j.globstar=true;j.output+=o.output+W.output;consume(z);continue}if(o.type==="slash"&&o.prev.type!=="bos"&&r[0]==="/"){const t=r[1]!==void 0?"|$":"";j.output=j.output.slice(0,-(o.output+W.output).length);o.output=`(?:${o.output}`;W.type="globstar";W.output=`${globstar(i)}${D}|${D}${t})`;W.value+=z;j.output+=o.output+W.output;j.globstar=true;consume(z+K());push({type:"slash",value:"/",output:""});continue}if(o.type==="bos"&&r[0]==="/"){W.type="globstar";W.value+=z;W.output=`(?:^|${D}|${globstar(i)}${D})`;j.output=W.output;j.globstar=true;consume(z+K());push({type:"slash",value:"/",output:""});continue}j.output=j.output.slice(0,-W.output.length);W.type="globstar";W.output=globstar(i);W.value+=z;j.output+=W.output;j.globstar=true;consume(z);continue}const o={type:"star",value:z,output:B};if(i.bash===true){o.output=".*?";if(W.type==="bos"||W.type==="slash"){o.output=$+o.output}push(o);continue}if(W&&(W.type==="bracket"||W.type==="paren")&&i.regex===true){o.output=z;push(o);continue}if(j.index===j.start||W.type==="slash"||W.type==="dot"){if(W.type==="dot"){j.output+=k;W.output+=k}else if(i.dot===true){j.output+=P;W.output+=P}else{j.output+=$;W.output+=$}if(Y()!=="*"){j.output+=x;W.output+=x}}push(o)}while(j.brackets>0){if(i.strictBrackets===true)throw new SyntaxError(syntaxError("closing","]"));j.output=a.escapeLast(j.output,"[");decrement("brackets")}while(j.parens>0){if(i.strictBrackets===true)throw new SyntaxError(syntaxError("closing",")"));j.output=a.escapeLast(j.output,"(");decrement("parens")}while(j.braces>0){if(i.strictBrackets===true)throw new SyntaxError(syntaxError("closing","}"));j.output=a.escapeLast(j.output,"{");decrement("braces")}if(i.strictSlashes!==true&&(W.type==="star"||W.type==="bracket")){push({type:"maybe_slash",value:"",output:`${D}?`})}if(j.backtrack===true){j.output="";for(const t of j.tokens){j.output+=t.output!=null?t.output:t.value;if(t.suffix){j.output+=t.suffix}}}return j};parse.fastpaths=(t,r)=>{const i={...r};const l=typeof i.maxLength==="number"?Math.min(u,i.maxLength):u;const h=t.length;if(h>l){throw new SyntaxError(`Input length: ${h}, exceeds maximum allowed length: ${l}`)}t=p[t]||t;const d=a.isWindows(r);const{DOT_LITERAL:g,SLASH_LITERAL:y,ONE_CHAR:b,DOTS_SLASH:w,NO_DOT:v,NO_DOTS:E,NO_DOTS_SLASH:A,STAR:_,START_ANCHOR:C}=o.globChars(d);const S=i.dot?E:v;const D=i.dot?A:v;const x=i.capture?"":"?:";const O={negated:false,prefix:""};let R=i.bash===true?".*?":_;if(i.capture){R=`(${R})`}const globstar=t=>{if(t.noglobstar===true)return R;return`(${x}(?:(?!${C}${t.dot?w:g}).)*?)`};const create=t=>{switch(t){case"*":return`${S}${b}${R}`;case".*":return`${g}${b}${R}`;case"*.*":return`${S}${R}${g}${b}${R}`;case"*/*":return`${S}${R}${y}${b}${D}${R}`;case"**":return S+globstar(i);case"**/*":return`(?:${S}${globstar(i)}${y})?${D}${b}${R}`;case"**/*.*":return`(?:${S}${globstar(i)}${y})?${D}${R}${g}${b}${R}`;case"**/.*":return`(?:${S}${globstar(i)}${y})?${g}${b}${R}`;default:{const r=/^(.*?)\.(\w+)$/.exec(t);if(!r)return;const i=create(r[1]);if(!i)return;return i+g+r[2]}}};const k=a.removePrefix(t,O);let P=create(k);if(P&&i.strictSlashes!==true){P+=`${y}?`}return P};t.exports=parse},4755:(t,r,i)=>{"use strict";const o=i(1017);const a=i(2017);const u=i(1833);const l=i(2924);const h=i(8223);const isObject=t=>t&&typeof t==="object"&&!Array.isArray(t);const picomatch=(t,r,i=false)=>{if(Array.isArray(t)){const o=t.map((t=>picomatch(t,r,i)));const arrayMatcher=t=>{for(const r of o){const i=r(t);if(i)return i}return false};return arrayMatcher}const o=isObject(t)&&t.tokens&&t.input;if(t===""||typeof t!=="string"&&!o){throw new TypeError("Expected pattern to be a non-empty string")}const a=r||{};const u=l.isWindows(r);const h=o?picomatch.compileRe(t,r):picomatch.makeRe(t,r,false,true);const d=h.state;delete h.state;let isIgnored=()=>false;if(a.ignore){const t={...r,ignore:null,onMatch:null,onResult:null};isIgnored=picomatch(a.ignore,t,i)}const matcher=(i,o=false)=>{const{isMatch:l,match:p,output:g}=picomatch.test(i,h,r,{glob:t,posix:u});const y={glob:t,state:d,regex:h,posix:u,input:i,output:g,match:p,isMatch:l};if(typeof a.onResult==="function"){a.onResult(y)}if(l===false){y.isMatch=false;return o?y:false}if(isIgnored(i)){if(typeof a.onIgnore==="function"){a.onIgnore(y)}y.isMatch=false;return o?y:false}if(typeof a.onMatch==="function"){a.onMatch(y)}return o?y:true};if(i){matcher.state=d}return matcher};picomatch.test=(t,r,i,{glob:o,posix:a}={})=>{if(typeof t!=="string"){throw new TypeError("Expected input to be a string")}if(t===""){return{isMatch:false,output:""}}const u=i||{};const h=u.format||(a?l.toPosixSlashes:null);let d=t===o;let p=d&&h?h(t):t;if(d===false){p=h?h(t):t;d=p===o}if(d===false||u.capture===true){if(u.matchBase===true||u.basename===true){d=picomatch.matchBase(t,r,i,a)}else{d=r.exec(p)}}return{isMatch:Boolean(d),match:d,output:p}};picomatch.matchBase=(t,r,i,a=l.isWindows(i))=>{const u=r instanceof RegExp?r:picomatch.makeRe(r,i);return u.test(o.basename(t))};picomatch.isMatch=(t,r,i)=>picomatch(r,i)(t);picomatch.parse=(t,r)=>{if(Array.isArray(t))return t.map((t=>picomatch.parse(t,r)));return u(t,{...r,fastpaths:false})};picomatch.scan=(t,r)=>a(t,r);picomatch.compileRe=(t,r,i=false,o=false)=>{if(i===true){return t.output}const a=r||{};const u=a.contains?"":"^";const l=a.contains?"":"$";let h=`${u}(?:${t.output})${l}`;if(t&&t.negated===true){h=`^(?!${h}).*$`}const d=picomatch.toRegex(h,r);if(o===true){d.state=t}return d};picomatch.makeRe=(t,r={},i=false,o=false)=>{if(!t||typeof t!=="string"){throw new TypeError("Expected a non-empty string")}let a={negated:false,fastpaths:true};if(r.fastpaths!==false&&(t[0]==="."||t[0]==="*")){a.output=u.fastpaths(t,r)}if(!a.output){a=u(t,r)}return picomatch.compileRe(a,r,i,o)};picomatch.toRegex=(t,r)=>{try{const i=r||{};return new RegExp(t,i.flags||(i.nocase?"i":""))}catch(t){if(r&&r.debug===true)throw t;return/$^/}};picomatch.constants=h;t.exports=picomatch},2017:(t,r,i)=>{"use strict";const o=i(2924);const{CHAR_ASTERISK:a,CHAR_AT:u,CHAR_BACKWARD_SLASH:l,CHAR_COMMA:h,CHAR_DOT:d,CHAR_EXCLAMATION_MARK:p,CHAR_FORWARD_SLASH:g,CHAR_LEFT_CURLY_BRACE:y,CHAR_LEFT_PARENTHESES:b,CHAR_LEFT_SQUARE_BRACKET:w,CHAR_PLUS:v,CHAR_QUESTION_MARK:E,CHAR_RIGHT_CURLY_BRACE:A,CHAR_RIGHT_PARENTHESES:_,CHAR_RIGHT_SQUARE_BRACKET:C}=i(8223);const isPathSeparator=t=>t===g||t===l;const depth=t=>{if(t.isPrefix!==true){t.depth=t.isGlobstar?Infinity:1}};const scan=(t,r)=>{const i=r||{};const S=t.length-1;const D=i.parts===true||i.scanToEnd===true;const x=[];const O=[];const R=[];let k=t;let P=-1;let T=0;let M=0;let L=false;let I=false;let $=false;let N=false;let B=false;let j=false;let H=false;let G=false;let U=false;let W=false;let z=0;let Y;let K;let V={value:"",depth:0,isGlob:false};const eos=()=>P>=S;const peek=()=>k.charCodeAt(P+1);const advance=()=>{Y=K;return k.charCodeAt(++P)};while(P<S){K=advance();let t;if(K===l){H=V.backslashes=true;K=advance();if(K===y){j=true}continue}if(j===true||K===y){z++;while(eos()!==true&&(K=advance())){if(K===l){H=V.backslashes=true;advance();continue}if(K===y){z++;continue}if(j!==true&&K===d&&(K=advance())===d){L=V.isBrace=true;$=V.isGlob=true;W=true;if(D===true){continue}break}if(j!==true&&K===h){L=V.isBrace=true;$=V.isGlob=true;W=true;if(D===true){continue}break}if(K===A){z--;if(z===0){j=false;L=V.isBrace=true;W=true;break}}}if(D===true){continue}break}if(K===g){x.push(P);O.push(V);V={value:"",depth:0,isGlob:false};if(W===true)continue;if(Y===d&&P===T+1){T+=2;continue}M=P+1;continue}if(i.noext!==true){const t=K===v||K===u||K===a||K===E||K===p;if(t===true&&peek()===b){$=V.isGlob=true;N=V.isExtglob=true;W=true;if(K===p&&P===T){U=true}if(D===true){while(eos()!==true&&(K=advance())){if(K===l){H=V.backslashes=true;K=advance();continue}if(K===_){$=V.isGlob=true;W=true;break}}continue}break}}if(K===a){if(Y===a)B=V.isGlobstar=true;$=V.isGlob=true;W=true;if(D===true){continue}break}if(K===E){$=V.isGlob=true;W=true;if(D===true){continue}break}if(K===w){while(eos()!==true&&(t=advance())){if(t===l){H=V.backslashes=true;advance();continue}if(t===C){I=V.isBracket=true;$=V.isGlob=true;W=true;break}}if(D===true){continue}break}if(i.nonegate!==true&&K===p&&P===T){G=V.negated=true;T++;continue}if(i.noparen!==true&&K===b){$=V.isGlob=true;if(D===true){while(eos()!==true&&(K=advance())){if(K===b){H=V.backslashes=true;K=advance();continue}if(K===_){W=true;break}}continue}break}if($===true){W=true;if(D===true){continue}break}}if(i.noext===true){N=false;$=false}let q=k;let X="";let Z="";if(T>0){X=k.slice(0,T);k=k.slice(T);M-=T}if(q&&$===true&&M>0){q=k.slice(0,M);Z=k.slice(M)}else if($===true){q="";Z=k}else{q=k}if(q&&q!==""&&q!=="/"&&q!==k){if(isPathSeparator(q.charCodeAt(q.length-1))){q=q.slice(0,-1)}}if(i.unescape===true){if(Z)Z=o.removeBackslashes(Z);if(q&&H===true){q=o.removeBackslashes(q)}}const J={prefix:X,input:t,start:T,base:q,glob:Z,isBrace:L,isBracket:I,isGlob:$,isExtglob:N,isGlobstar:B,negated:G,negatedExtglob:U};if(i.tokens===true){J.maxDepth=0;if(!isPathSeparator(K)){O.push(V)}J.tokens=O}if(i.parts===true||i.tokens===true){let r;for(let o=0;o<x.length;o++){const a=r?r+1:T;const u=x[o];const l=t.slice(a,u);if(i.tokens){if(o===0&&T!==0){O[o].isPrefix=true;O[o].value=X}else{O[o].value=l}depth(O[o]);J.maxDepth+=O[o].depth}if(o!==0||l!==""){R.push(l)}r=u}if(r&&r+1<t.length){const o=t.slice(r+1);R.push(o);if(i.tokens){O[O.length-1].value=o;depth(O[O.length-1]);J.maxDepth+=O[O.length-1].depth}}J.slashes=x;J.parts=R}return J};t.exports=scan},2924:(t,r,i)=>{"use strict";const o=i(1017);const a=process.platform==="win32";const{REGEX_BACKSLASH:u,REGEX_REMOVE_BACKSLASH:l,REGEX_SPECIAL_CHARS:h,REGEX_SPECIAL_CHARS_GLOBAL:d}=i(8223);r.isObject=t=>t!==null&&typeof t==="object"&&!Array.isArray(t);r.hasRegexChars=t=>h.test(t);r.isRegexChar=t=>t.length===1&&r.hasRegexChars(t);r.escapeRegex=t=>t.replace(d,"\\$1");r.toPosixSlashes=t=>t.replace(u,"/");r.removeBackslashes=t=>t.replace(l,(t=>t==="\\"?"":t));r.supportsLookbehinds=()=>{const t=process.version.slice(1).split(".").map(Number);if(t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10){return true}return false};r.isWindows=t=>{if(t&&typeof t.windows==="boolean"){return t.windows}return a===true||o.sep==="\\"};r.escapeLast=(t,i,o)=>{const a=t.lastIndexOf(i,o);if(a===-1)return t;if(t[a-1]==="\\")return r.escapeLast(t,i,a-1);return`${t.slice(0,a)}\\${t.slice(a)}`};r.removePrefix=(t,r={})=>{let i=t;if(i.startsWith("./")){i=i.slice(2);r.prefix="./"}return i};r.wrapOutput=(t,r={},i={})=>{const o=i.contains?"":"^";const a=i.contains?"":"$";let u=`${o}(?:${t})${a}`;if(r.negated===true){u=`(?:^(?!${u}).*$)`}return u}},399:t=>{"use strict";class DatePart{constructor({token:t,date:r,parts:i,locales:o}){this.token=t;this.date=r||new Date;this.parts=i||[this];this.locales=o||{}}up(){}down(){}next(){const t=this.parts.indexOf(this);return this.parts.find(((r,i)=>i>t&&r instanceof DatePart))}setTo(t){}prev(){let t=[].concat(this.parts).reverse();const r=t.indexOf(this);return t.find(((t,i)=>i>r&&t instanceof DatePart))}toString(){return String(this.date)}}t.exports=DatePart},7967:(t,r,i)=>{"use strict";const o=i(399);const pos=t=>{t=t%10;return t===1?"st":t===2?"nd":t===3?"rd":"th"};class Day extends o{constructor(t={}){super(t)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(t){this.date.setDate(parseInt(t.substr(-2)))}toString(){let t=this.date.getDate();let r=this.date.getDay();return this.token==="DD"?String(t).padStart(2,"0"):this.token==="Do"?t+pos(t):this.token==="d"?r+1:this.token==="ddd"?this.locales.weekdaysShort[r]:this.token==="dddd"?this.locales.weekdays[r]:t}}t.exports=Day},4102:(t,r,i)=>{"use strict";const o=i(399);class Hours extends o{constructor(t={}){super(t)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(t){this.date.setHours(parseInt(t.substr(-2)))}toString(){let t=this.date.getHours();if(/h/.test(this.token))t=t%12||12;return this.token.length>1?String(t).padStart(2,"0"):t}}t.exports=Hours},7517:(t,r,i)=>{"use strict";t.exports={DatePart:i(399),Meridiem:i(4128),Day:i(7967),Hours:i(4102),Milliseconds:i(6945),Minutes:i(7829),Month:i(8608),Seconds:i(812),Year:i(5227)}},4128:(t,r,i)=>{"use strict";const o=i(399);class Meridiem extends o{constructor(t={}){super(t)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let t=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?t.toUpperCase():t}}t.exports=Meridiem},6945:(t,r,i)=>{"use strict";const o=i(399);class Milliseconds extends o{constructor(t={}){super(t)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(t){this.date.setMilliseconds(parseInt(t.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}t.exports=Milliseconds},7829:(t,r,i)=>{"use strict";const o=i(399);class Minutes extends o{constructor(t={}){super(t)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(t){this.date.setMinutes(parseInt(t.substr(-2)))}toString(){let t=this.date.getMinutes();return this.token.length>1?String(t).padStart(2,"0"):t}}t.exports=Minutes},8608:(t,r,i)=>{"use strict";const o=i(399);class Month extends o{constructor(t={}){super(t)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(t){t=parseInt(t.substr(-2))-1;this.date.setMonth(t<0?0:t)}toString(){let t=this.date.getMonth();let r=this.token.length;return r===2?String(t+1).padStart(2,"0"):r===3?this.locales.monthsShort[t]:r===4?this.locales.months[t]:String(t+1)}}t.exports=Month},812:(t,r,i)=>{"use strict";const o=i(399);class Seconds extends o{constructor(t={}){super(t)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(t){this.date.setSeconds(parseInt(t.substr(-2)))}toString(){let t=this.date.getSeconds();return this.token.length>1?String(t).padStart(2,"0"):t}}t.exports=Seconds},5227:(t,r,i)=>{"use strict";const o=i(399);class Year extends o{constructor(t={}){super(t)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(t){this.date.setFullYear(t.substr(-4))}toString(){let t=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?t.substr(-2):t}}t.exports=Year},935:(t,r,i)=>{"use strict";function asyncGeneratorStep(t,r,i,o,a,u,l){try{var h=t[u](l);var d=h.value}catch(t){i(t);return}if(h.done){r(d)}else{Promise.resolve(d).then(o,a)}}function _asyncToGenerator(t){return function(){var r=this,i=arguments;return new Promise((function(o,a){var u=t.apply(r,i);function _next(t){asyncGeneratorStep(u,o,a,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(u,o,a,_next,_throw,"throw",t)}_next(undefined)}))}}const o=i(9439);const a=i(5876);const u=i(332),l=u.erase,h=u.cursor;const d=i(2800),p=d.style,g=d.clear,y=d.figures,b=d.wrap,w=d.entriesToDisplay;const getVal=(t,r)=>t[r]&&(t[r].value||t[r].title||t[r]);const getTitle=(t,r)=>t[r]&&(t[r].title||t[r].value||t[r]);const getIndex=(t,r)=>{const i=t.findIndex((t=>t.value===r||t.title===r));return i>-1?i:undefined};class AutocompletePrompt extends a{constructor(t={}){super(t);this.msg=t.message;this.suggest=t.suggest;this.choices=t.choices;this.initial=typeof t.initial==="number"?t.initial:getIndex(t.choices,t.initial);this.select=this.initial||t.cursor||0;this.i18n={noMatches:t.noMatches||"no matches found"};this.fallback=t.fallback||this.initial;this.clearFirst=t.clearFirst||false;this.suggestions=[];this.input="";this.limit=t.limit||10;this.cursor=0;this.transform=p.render(t.style);this.scale=this.transform.scale;this.render=this.render.bind(this);this.complete=this.complete.bind(this);this.clear=g("",this.out.columns);this.complete(this.render);this.render()}set fallback(t){this._fb=Number.isSafeInteger(parseInt(t))?parseInt(t):t}get fallback(){let t;if(typeof this._fb==="number")t=this.choices[this._fb];else if(typeof this._fb==="string")t={title:this._fb};return t||this._fb||{title:this.i18n.noMatches}}moveSelect(t){this.select=t;if(this.suggestions.length>0)this.value=getVal(this.suggestions,t);else this.value=this.fallback.value;this.fire()}complete(t){var r=this;return _asyncToGenerator((function*(){const i=r.completing=r.suggest(r.input,r.choices);const o=yield i;if(r.completing!==i)return;r.suggestions=o.map(((t,r,i)=>({title:getTitle(i,r),value:getVal(i,r),description:t.description})));r.completing=false;const a=Math.max(o.length-1,0);r.moveSelect(Math.min(a,r.select));t&&t()}))()}reset(){this.input="";this.complete((()=>{this.moveSelect(this.initial!==void 0?this.initial:0);this.render()}));this.render()}exit(){if(this.clearFirst&&this.input.length>0){this.reset()}else{this.done=this.exited=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}}abort(){this.done=this.aborted=true;this.exited=false;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.done=true;this.aborted=this.exited=false;this.fire();this.render();this.out.write("\n");this.close()}_(t,r){let i=this.input.slice(0,this.cursor);let o=this.input.slice(this.cursor);this.input=`${i}${t}${o}`;this.cursor=i.length+1;this.complete(this.render);this.render()}delete(){if(this.cursor===0)return this.bell();let t=this.input.slice(0,this.cursor-1);let r=this.input.slice(this.cursor);this.input=`${t}${r}`;this.complete(this.render);this.cursor=this.cursor-1;this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let t=this.input.slice(0,this.cursor);let r=this.input.slice(this.cursor+1);this.input=`${t}${r}`;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){this.moveSelect(this.suggestions.length-1)}else{this.moveSelect(this.select-1)}this.render()}down(){if(this.select===this.suggestions.length-1){this.moveSelect(0)}else{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(t,r,i,a){let u;let l=i?y.arrowUp:a?y.arrowDown:" ";let h=r?o.cyan().underline(t.title):t.title;l=(r?o.cyan(y.pointer)+" ":" ")+l;if(t.description){u=` - ${t.description}`;if(l.length+h.length+u.length>=this.out.columns||t.description.split(/\r?\n/).length>1){u="\n"+b(t.description,{margin:3,width:this.out.columns})}}return l+" "+h+o.gray(u||"")}render(){if(this.closed)return;if(this.firstRender)this.out.write(h.hide);else this.out.write(g(this.outputText,this.out.columns));super.render();let t=w(this.select,this.choices.length,this.limit),r=t.startIndex,i=t.endIndex;this.outputText=[p.symbol(this.done,this.aborted,this.exited),o.bold(this.msg),p.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 t=this.suggestions.slice(r,i).map(((t,o)=>this.renderOption(t,this.select===o+r,o===0&&r>0,o+r===i-1&&i<this.choices.length))).join("\n");this.outputText+=`\n`+(t||o.gray(this.fallback.title))}this.out.write(l.line+h.to(0)+this.outputText)}}t.exports=AutocompletePrompt},2040:(t,r,i)=>{"use strict";const o=i(9439);const a=i(332),u=a.cursor;const l=i(4047);const h=i(2800),d=h.clear,p=h.style,g=h.figures;class AutocompleteMultiselectPrompt extends l{constructor(t={}){t.overrideRender=true;super(t);this.inputValue="";this.clear=d("",this.out.columns);this.filteredOptions=this.value;this.render()}last(){this.cursor=this.filteredOptions.length-1;this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length;this.render()}up(){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((t=>t.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 t=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter((t=>{if(this.inputValue){if(typeof t.title==="string"){if(t.title.toLowerCase().includes(this.inputValue.toLowerCase())){return true}}if(typeof t.value==="string"){if(t.value.toLowerCase().includes(this.inputValue.toLowerCase())){return true}}return false}return true}));const r=this.filteredOptions.findIndex((r=>r===t));this.cursor=r<0?0:r;this.render()}handleSpaceToggle(){const t=this.filteredOptions[this.cursor];if(t.selected){t.selected=false;this.render()}else if(t.disabled||this.value.filter((t=>t.selected)).length>=this.maxChoices){return this.bell()}else{t.selected=true;this.render()}}handleInputChange(t){this.inputValue=this.inputValue+t;this.updateFilteredOptions()}_(t,r){if(t===" "){this.handleSpaceToggle()}else{this.handleInputChange(t)}}renderInstructions(){if(this.instructions===undefined||this.instructions){if(typeof this.instructions==="string"){return this.instructions}return`\nInstructions:\n ${g.arrowUp}/${g.arrowDown}: Highlight option\n ${g.arrowLeft}/${g.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:o.gray("Enter something to filter")}\n`}renderOption(t,r,i){let a;if(r.disabled)a=t===i?o.gray().underline(r.title):o.strikethrough().gray(r.title);else a=t===i?o.cyan().underline(r.title):r.title;return(r.selected?o.green(g.radioOn):g.radioOff)+" "+a}renderDoneOrInstructions(){if(this.done){return this.value.filter((t=>t.selected)).map((t=>t.title)).join(", ")}const t=[o.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];if(this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled){t.push(o.yellow(this.warn))}return t.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(u.hide);super.render();let t=[p.symbol(this.done,this.aborted),o.bold(this.msg),p.delimiter(false),this.renderDoneOrInstructions()].join(" ");if(this.showMinError){t+=o.red(`You must select a minimum of ${this.minSelected} choices.`);this.showMinError=false}t+=this.renderOptions(this.filteredOptions);this.out.write(this.clear+t);this.clear=d(t,this.out.columns)}}t.exports=AutocompleteMultiselectPrompt},5680:(t,r,i)=>{"use strict";const o=i(9439);const a=i(5876);const u=i(2800),l=u.style,h=u.clear;const d=i(332),p=d.erase,g=d.cursor;class ConfirmPrompt extends a{constructor(t={}){super(t);this.msg=t.message;this.value=t.initial;this.initialValue=!!t.initial;this.yesMsg=t.yes||"yes";this.yesOption=t.yesOption||"(Y/n)";this.noMsg=t.no||"no";this.noOption=t.noOption||"(y/N)";this.render()}reset(){this.value=this.initialValue;this.fire();this.render()}exit(){this.abort()}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()}_(t,r){if(t.toLowerCase()==="y"){this.value=true;return this.submit()}if(t.toLowerCase()==="n"){this.value=false;return this.submit()}return this.bell()}render(){if(this.closed)return;if(this.firstRender)this.out.write(g.hide);else this.out.write(h(this.outputText,this.out.columns));super.render();this.outputText=[l.symbol(this.done,this.aborted),o.bold(this.msg),l.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:o.gray(this.initialValue?this.yesOption:this.noOption)].join(" ");this.out.write(p.line+g.to(0)+this.outputText)}}t.exports=ConfirmPrompt},3031:(t,r,i)=>{"use strict";function asyncGeneratorStep(t,r,i,o,a,u,l){try{var h=t[u](l);var d=h.value}catch(t){i(t);return}if(h.done){r(d)}else{Promise.resolve(d).then(o,a)}}function _asyncToGenerator(t){return function(){var r=this,i=arguments;return new Promise((function(o,a){var u=t.apply(r,i);function _next(t){asyncGeneratorStep(u,o,a,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(u,o,a,_next,_throw,"throw",t)}_next(undefined)}))}}const o=i(9439);const a=i(5876);const u=i(2800),l=u.style,h=u.clear,d=u.figures;const p=i(332),g=p.erase,y=p.cursor;const b=i(7517),w=b.DatePart,v=b.Meridiem,E=b.Day,A=b.Hours,_=b.Milliseconds,C=b.Minutes,S=b.Month,D=b.Seconds,x=b.Year;const O=/\\(.)|"((?:\\["\\]|[^"])+)"|(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 R={1:({token:t})=>t.replace(/\\(.)/g,"$1"),2:t=>new E(t),3:t=>new S(t),4:t=>new x(t),5:t=>new v(t),6:t=>new A(t),7:t=>new C(t),8:t=>new D(t),9:t=>new _(t)};const k={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 a{constructor(t={}){super(t);this.msg=t.message;this.cursor=0;this.typed="";this.locales=Object.assign(k,t.locales);this._date=t.initial||new Date;this.errorMsg=t.error||"Please Enter A Valid Value";this.validator=t.validate||(()=>true);this.mask=t.mask||"YYYY-MM-DD HH:mm:ss";this.clear=h("",this.out.columns);this.render()}get value(){return this.date}get date(){return this._date}set date(t){if(t)this._date.setTime(t.getTime())}set mask(t){let r;this.parts=[];while(r=O.exec(t)){let t=r.shift();let i=r.findIndex((t=>t!=null));this.parts.push(i in R?R[i]({token:r[i]||t,date:this.date,parts:this.parts,locales:this.locales}):r[i]||t)}let i=this.parts.reduce(((t,r)=>{if(typeof r==="string"&&typeof t[t.length-1]==="string")t[t.length-1]+=r;else t.push(r);return t}),[]);this.parts.splice(0);this.parts.push(...i);this.reset()}moveCursor(t){this.typed="";this.cursor=t;this.fire()}reset(){this.moveCursor(this.parts.findIndex((t=>t instanceof w)));this.fire();this.render()}exit(){this.abort()}abort(){this.done=this.aborted=true;this.error=false;this.fire();this.render();this.out.write("\n");this.close()}validate(){var t=this;return _asyncToGenerator((function*(){let r=yield t.validator(t.value);if(typeof r==="string"){t.errorMsg=r;r=false}t.error=!r}))()}submit(){var t=this;return _asyncToGenerator((function*(){yield t.validate();if(t.error){t.color="red";t.fire();t.render();return}t.done=true;t.aborted=false;t.fire();t.render();t.out.write("\n");t.close()}))()}up(){this.typed="";this.parts[this.cursor].up();this.render()}down(){this.typed="";this.parts[this.cursor].down();this.render()}left(){let t=this.parts[this.cursor].prev();if(t==null)return this.bell();this.moveCursor(this.parts.indexOf(t));this.render()}right(){let t=this.parts[this.cursor].next();if(t==null)return this.bell();this.moveCursor(this.parts.indexOf(t));this.render()}next(){let t=this.parts[this.cursor].next();this.moveCursor(t?this.parts.indexOf(t):this.parts.findIndex((t=>t instanceof w)));this.render()}_(t){if(/\d/.test(t)){this.typed+=t;this.parts[this.cursor].setTo(this.typed);this.render()}}render(){if(this.closed)return;if(this.firstRender)this.out.write(y.hide);else this.out.write(h(this.outputText,this.out.columns));super.render();this.outputText=[l.symbol(this.done,this.aborted),o.bold(this.msg),l.delimiter(false),this.parts.reduce(((t,r,i)=>t.concat(i===this.cursor&&!this.done?o.cyan().underline(r.toString()):r)),[]).join("")].join(" ");if(this.error){this.outputText+=this.errorMsg.split("\n").reduce(((t,r,i)=>t+`\n${i?` `:d.pointerSmall} ${o.red().italic(r)}`),``)}this.out.write(g.line+y.to(0)+this.outputText)}}t.exports=DatePrompt},9956:(t,r,i)=>{"use strict";t.exports={TextPrompt:i(5430),SelectPrompt:i(8856),TogglePrompt:i(9692),DatePrompt:i(3031),NumberPrompt:i(8831),MultiselectPrompt:i(4047),AutocompletePrompt:i(935),AutocompleteMultiselectPrompt:i(2040),ConfirmPrompt:i(5680)}},4047:(t,r,i)=>{"use strict";const o=i(9439);const a=i(332),u=a.cursor;const l=i(5876);const h=i(2800),d=h.clear,p=h.figures,g=h.style,y=h.wrap,b=h.entriesToDisplay;class MultiselectPrompt extends l{constructor(t={}){super(t);this.msg=t.message;this.cursor=t.cursor||0;this.scrollIndex=t.cursor||0;this.hint=t.hint||"";this.warn=t.warn||"- This option is disabled -";this.minSelected=t.min;this.showMinError=false;this.maxChoices=t.max;this.instructions=t.instructions;this.optionsPerPage=t.optionsPerPage||10;this.value=t.choices.map(((t,r)=>{if(typeof t==="string")t={title:t,value:r};return{title:t&&(t.title||t.value||t),description:t&&t.description,value:t&&(t.value===undefined?r:t.value),selected:t&&t.selected,disabled:t&&t.disabled}}));this.clear=d("",this.out.columns);if(!t.overrideRender){this.render()}}reset(){this.value.map((t=>!t.selected));this.cursor=0;this.fire();this.render()}selected(){return this.value.filter((t=>t.selected))}exit(){this.abort()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){const t=this.value.filter((t=>t.selected));if(this.minSelected&&t.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((t=>t.selected)).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=true;this.render()}handleSpaceToggle(){const t=this.value[this.cursor];if(t.selected){t.selected=false;this.render()}else if(t.disabled||this.value.filter((t=>t.selected)).length>=this.maxChoices){return this.bell()}else{t.selected=true;this.render()}}toggleAll(){if(this.maxChoices!==undefined||this.value[this.cursor].disabled){return this.bell()}const t=!this.value[this.cursor].selected;this.value.filter((t=>!t.disabled)).forEach((r=>r.selected=t));this.render()}_(t,r){if(t===" "){this.handleSpaceToggle()}else if(t==="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"+` ${p.arrowUp}/${p.arrowDown}: Highlight option\n`+` ${p.arrowLeft}/${p.arrowRight}/[space]: Toggle selection\n`+(this.maxChoices===undefined?` a: Toggle all\n`:"")+` enter/return: Complete answer`}return""}renderOption(t,r,i,a){const u=(r.selected?o.green(p.radioOn):p.radioOff)+" "+a+" ";let l,h;if(r.disabled){l=t===i?o.gray().underline(r.title):o.strikethrough().gray(r.title)}else{l=t===i?o.cyan().underline(r.title):r.title;if(t===i&&r.description){h=` - ${r.description}`;if(u.length+l.length+h.length>=this.out.columns||r.description.split(/\r?\n/).length>1){h="\n"+y(r.description,{margin:u.length,width:this.out.columns})}}}return u+l+o.gray(h||"")}paginateOptions(t){if(t.length===0){return o.red("No matches for this query.")}let r=b(this.cursor,t.length,this.optionsPerPage),i=r.startIndex,a=r.endIndex;let u,l=[];for(let r=i;r<a;r++){if(r===i&&i>0){u=p.arrowUp}else if(r===a-1&&a<t.length){u=p.arrowDown}else{u=" "}l.push(this.renderOption(this.cursor,t[r],r,u))}return"\n"+l.join("\n")}renderOptions(t){if(!this.done){return this.paginateOptions(t)}return""}renderDoneOrInstructions(){if(this.done){return this.value.filter((t=>t.selected)).map((t=>t.title)).join(", ")}const t=[o.gray(this.hint),this.renderInstructions()];if(this.value[this.cursor].disabled){t.push(o.yellow(this.warn))}return t.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(u.hide);super.render();let t=[g.symbol(this.done,this.aborted),o.bold(this.msg),g.delimiter(false),this.renderDoneOrInstructions()].join(" ");if(this.showMinError){t+=o.red(`You must select a minimum of ${this.minSelected} choices.`);this.showMinError=false}t+=this.renderOptions(this.value);this.out.write(this.clear+t);this.clear=d(t,this.out.columns)}}t.exports=MultiselectPrompt},8831:(t,r,i)=>{"use strict";function asyncGeneratorStep(t,r,i,o,a,u,l){try{var h=t[u](l);var d=h.value}catch(t){i(t);return}if(h.done){r(d)}else{Promise.resolve(d).then(o,a)}}function _asyncToGenerator(t){return function(){var r=this,i=arguments;return new Promise((function(o,a){var u=t.apply(r,i);function _next(t){asyncGeneratorStep(u,o,a,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(u,o,a,_next,_throw,"throw",t)}_next(undefined)}))}}const o=i(9439);const a=i(5876);const u=i(332),l=u.cursor,h=u.erase;const d=i(2800),p=d.style,g=d.figures,y=d.clear,b=d.lines;const w=/[0-9]/;const isDef=t=>t!==undefined;const round=(t,r)=>{let i=Math.pow(10,r);return Math.round(t*i)/i};class NumberPrompt extends a{constructor(t={}){super(t);this.transform=p.render(t.style);this.msg=t.message;this.initial=isDef(t.initial)?t.initial:"";this.float=!!t.float;this.round=t.round||2;this.inc=t.increment||1;this.min=isDef(t.min)?t.min:-Infinity;this.max=isDef(t.max)?t.max:Infinity;this.errorMsg=t.error||`Please Enter A Valid Value`;this.validator=t.validate||(()=>true);this.color=`cyan`;this.value=``;this.typed=``;this.lastHit=0;this.render()}set value(t){if(!t&&t!==0){this.placeholder=true;this.rendered=o.gray(this.transform.render(`${this.initial}`));this._value=``}else{this.placeholder=false;this.rendered=this.transform.render(`${round(t,this.round)}`);this._value=round(t,this.round)}this.fire()}get value(){return this._value}parse(t){return this.float?parseFloat(t):parseInt(t)}valid(t){return t===`-`||t===`.`&&this.float||w.test(t)}reset(){this.typed=``;this.value=``;this.fire();this.render()}exit(){this.abort()}abort(){let t=this.value;this.value=t!==``?t:this.initial;this.done=this.aborted=true;this.error=false;this.fire();this.render();this.out.write(`\n`);this.close()}validate(){var t=this;return _asyncToGenerator((function*(){let r=yield t.validator(t.value);if(typeof r===`string`){t.errorMsg=r;r=false}t.error=!r}))()}submit(){var t=this;return _asyncToGenerator((function*(){yield t.validate();if(t.error){t.color=`red`;t.fire();t.render();return}let r=t.value;t.value=r!==``?r:t.initial;t.done=true;t.aborted=false;t.error=false;t.fire();t.render();t.out.write(`\n`);t.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 t=this.value.toString();if(t.length===0)return this.bell();this.value=this.parse(t=t.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()}_(t,r){if(!this.valid(t))return this.bell();const i=Date.now();if(i-this.lastHit>1e3)this.typed=``;this.typed+=t;this.lastHit=i;this.color=`cyan`;if(t===`.`)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(l.down(b(this.outputError,this.out.columns)-1)+y(this.outputError,this.out.columns));this.out.write(y(this.outputText,this.out.columns))}super.render();this.outputError="";this.outputText=[p.symbol(this.done,this.aborted),o.bold(this.msg),p.delimiter(this.done),!this.done||!this.done&&!this.placeholder?o[this.color]().underline(this.rendered):this.rendered].join(` `);if(this.error){this.outputError+=this.errorMsg.split(`\n`).reduce(((t,r,i)=>t+`\n${i?` `:g.pointerSmall} ${o.red().italic(r)}`),``)}this.out.write(h.line+l.to(0)+this.outputText+l.save+this.outputError+l.restore)}}t.exports=NumberPrompt},5876:(t,r,i)=>{"use strict";const o=i(4521);const a=i(2800),u=a.action;const l=i(2361);const h=i(332),d=h.beep,p=h.cursor;const g=i(9439);class Prompt extends l{constructor(t={}){super();this.firstRender=true;this.in=t.stdin||process.stdin;this.out=t.stdout||process.stdout;this.onRender=(t.onRender||(()=>void 0)).bind(this);const r=o.createInterface({input:this.in,escapeCodeTimeout:50});o.emitKeypressEvents(this.in,r);if(this.in.isTTY)this.in.setRawMode(true);const i=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1;const keypress=(t,r)=>{let o=u(r,i);if(o===false){this._&&this._(t,r)}else if(typeof this[o]==="function"){this[o](r)}else{this.bell()}};this.close=()=>{this.out.write(p.show);this.in.removeListener("keypress",keypress);if(this.in.isTTY)this.in.setRawMode(false);r.close();this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value);this.closed=true};this.in.on("keypress",keypress)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(d)}render(){this.onRender(g);if(this.firstRender)this.firstRender=false}}t.exports=Prompt},8856:(t,r,i)=>{"use strict";const o=i(9439);const a=i(5876);const u=i(2800),l=u.style,h=u.clear,d=u.figures,p=u.wrap,g=u.entriesToDisplay;const y=i(332),b=y.cursor;class SelectPrompt extends a{constructor(t={}){super(t);this.msg=t.message;this.hint=t.hint||"- Use arrow-keys. Return to submit.";this.warn=t.warn||"- This option is disabled";this.cursor=t.initial||0;this.choices=t.choices.map(((t,r)=>{if(typeof t==="string")t={title:t,value:r};return{title:t&&(t.title||t.value||t),value:t&&(t.value===undefined?r:t.value),description:t&&t.description,selected:t&&t.selected,disabled:t&&t.disabled}}));this.optionsPerPage=t.optionsPerPage||10;this.value=(this.choices[this.cursor]||{}).value;this.clear=h("",this.out.columns);this.render()}moveCursor(t){this.cursor=t;this.value=this.choices[t].value;this.fire()}reset(){this.moveCursor(0);this.fire();this.render()}exit(){this.abort()}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){this.moveCursor(this.choices.length-1)}else{this.moveCursor(this.cursor-1)}this.render()}down(){if(this.cursor===this.choices.length-1){this.moveCursor(0)}else{this.moveCursor(this.cursor+1)}this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length);this.render()}_(t,r){if(t===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;if(this.firstRender)this.out.write(b.hide);else this.out.write(h(this.outputText,this.out.columns));super.render();let t=g(this.cursor,this.choices.length,this.optionsPerPage),r=t.startIndex,i=t.endIndex;this.outputText=[l.symbol(this.done,this.aborted),o.bold(this.msg),l.delimiter(false),this.done?this.selection.title:this.selection.disabled?o.yellow(this.warn):o.gray(this.hint)].join(" ");if(!this.done){this.outputText+="\n";for(let t=r;t<i;t++){let a,u,l="",h=this.choices[t];if(t===r&&r>0){u=d.arrowUp}else if(t===i-1&&i<this.choices.length){u=d.arrowDown}else{u=" "}if(h.disabled){a=this.cursor===t?o.gray().underline(h.title):o.strikethrough().gray(h.title);u=(this.cursor===t?o.bold().gray(d.pointer)+" ":" ")+u}else{a=this.cursor===t?o.cyan().underline(h.title):h.title;u=(this.cursor===t?o.cyan(d.pointer)+" ":" ")+u;if(h.description&&this.cursor===t){l=` - ${h.description}`;if(u.length+a.length+l.length>=this.out.columns||h.description.split(/\r?\n/).length>1){l="\n"+p(h.description,{margin:3,width:this.out.columns})}}}this.outputText+=`${u} ${a}${o.gray(l)}\n`}}this.out.write(this.outputText)}}t.exports=SelectPrompt},5430:(t,r,i)=>{"use strict";function asyncGeneratorStep(t,r,i,o,a,u,l){try{var h=t[u](l);var d=h.value}catch(t){i(t);return}if(h.done){r(d)}else{Promise.resolve(d).then(o,a)}}function _asyncToGenerator(t){return function(){var r=this,i=arguments;return new Promise((function(o,a){var u=t.apply(r,i);function _next(t){asyncGeneratorStep(u,o,a,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(u,o,a,_next,_throw,"throw",t)}_next(undefined)}))}}const o=i(9439);const a=i(5876);const u=i(332),l=u.erase,h=u.cursor;const d=i(2800),p=d.style,g=d.clear,y=d.lines,b=d.figures;class TextPrompt extends a{constructor(t={}){super(t);this.transform=p.render(t.style);this.scale=this.transform.scale;this.msg=t.message;this.initial=t.initial||``;this.validator=t.validate||(()=>true);this.value=``;this.errorMsg=t.error||`Please Enter A Valid Value`;this.cursor=Number(!!this.initial);this.cursorOffset=0;this.clear=g(``,this.out.columns);this.render()}set value(t){if(!t&&this.initial){this.placeholder=true;this.rendered=o.gray(this.transform.render(this.initial))}else{this.placeholder=false;this.rendered=this.transform.render(t)}this._value=t;this.fire()}get value(){return this._value}reset(){this.value=``;this.cursor=Number(!!this.initial);this.cursorOffset=0;this.fire();this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial;this.done=this.aborted=true;this.error=false;this.red=false;this.fire();this.render();this.out.write("\n");this.close()}validate(){var t=this;return _asyncToGenerator((function*(){let r=yield t.validator(t.value);if(typeof r===`string`){t.errorMsg=r;r=false}t.error=!r}))()}submit(){var t=this;return _asyncToGenerator((function*(){t.value=t.value||t.initial;t.cursorOffset=0;t.cursor=t.rendered.length;yield t.validate();if(t.error){t.red=true;t.fire();t.render();return}t.done=true;t.aborted=false;t.fire();t.render();t.out.write("\n");t.close()}))()}next(){if(!this.placeholder)return this.bell();this.value=this.initial;this.cursor=this.rendered.length;this.fire();this.render()}moveCursor(t){if(this.placeholder)return;this.cursor=this.cursor+t;this.cursorOffset+=t}_(t,r){let i=this.value.slice(0,this.cursor);let o=this.value.slice(this.cursor);this.value=`${i}${t}${o}`;this.red=false;this.cursor=this.placeholder?0:i.length+1;this.render()}delete(){if(this.isCursorAtStart())return this.bell();let t=this.value.slice(0,this.cursor-1);let r=this.value.slice(this.cursor);this.value=`${t}${r}`;this.red=false;if(this.isCursorAtStart()){this.cursorOffset=0}else{this.cursorOffset++;this.moveCursor(-1)}this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let t=this.value.slice(0,this.cursor);let r=this.value.slice(this.cursor+1);this.value=`${t}${r}`;this.red=false;if(this.isCursorAtEnd()){this.cursorOffset=0}else{this.cursorOffset++}this.render()}first(){this.cursor=0;this.render()}last(){this.cursor=this.value.length;this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1);this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1);this.render()}isCursorAtStart(){return this.cursor===0||this.placeholder&&this.cursor===1}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(h.down(y(this.outputError,this.out.columns)-1)+g(this.outputError,this.out.columns));this.out.write(g(this.outputText,this.out.columns))}super.render();this.outputError="";this.outputText=[p.symbol(this.done,this.aborted),o.bold(this.msg),p.delimiter(this.done),this.red?o.red(this.rendered):this.rendered].join(` `);if(this.error){this.outputError+=this.errorMsg.split(`\n`).reduce(((t,r,i)=>t+`\n${i?" ":b.pointerSmall} ${o.red().italic(r)}`),``)}this.out.write(l.line+h.to(0)+this.outputText+h.save+this.outputError+h.restore+h.move(this.cursorOffset,0))}}t.exports=TextPrompt},9692:(t,r,i)=>{"use strict";const o=i(9439);const a=i(5876);const u=i(2800),l=u.style,h=u.clear;const d=i(332),p=d.cursor,g=d.erase;class TogglePrompt extends a{constructor(t={}){super(t);this.msg=t.message;this.value=!!t.initial;this.active=t.active||"on";this.inactive=t.inactive||"off";this.initialValue=this.value;this.render()}reset(){this.value=this.initialValue;this.fire();this.render()}exit(){this.abort()}abort(){this.done=this.aborted=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()}_(t,r){if(t===" "){this.value=!this.value}else if(t==="1"){this.value=true}else if(t==="0"){this.value=false}else return this.bell();this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(p.hide);else this.out.write(h(this.outputText,this.out.columns));super.render();this.outputText=[l.symbol(this.done,this.aborted),o.bold(this.msg),l.delimiter(this.done),this.value?this.inactive:o.cyan().underline(this.inactive),o.gray("/"),this.value?o.cyan().underline(this.active):this.active].join(" ");this.out.write(g.line+p.to(0)+this.outputText)}}t.exports=TogglePrompt},6598:(t,r,i)=>{"use strict";function ownKeys(t,r){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);if(r){o=o.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))}i.push.apply(i,o)}return i}function _objectSpread(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};if(r%2){ownKeys(Object(i),true).forEach((function(r){_defineProperty(t,r,i[r])}))}else if(Object.getOwnPropertyDescriptors){Object.defineProperties(t,Object.getOwnPropertyDescriptors(i))}else{ownKeys(Object(i)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(i,r))}))}}return t}function _defineProperty(t,r,i){if(r in t){Object.defineProperty(t,r,{value:i,enumerable:true,configurable:true,writable:true})}else{t[r]=i}return t}function _createForOfIteratorHelper(t,r){var i=typeof Symbol!=="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=_unsupportedIterableToArray(t))||r&&t&&typeof t.length==="number"){if(i)t=i;var o=0;var a=function F(){};return{s:a,n:function n(){if(o>=t.length)return{done:true};return{done:false,value:t[o++]}},e:function e(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u=true,l=false,h;return{s:function s(){i=i.call(t)},n:function n(){var t=i.next();u=t.done;return t},e:function e(t){l=true;h=t},f:function f(){try{if(!u&&i.return!=null)i.return()}finally{if(l)throw h}}}}function _unsupportedIterableToArray(t,r){if(!t)return;if(typeof t==="string")return _arrayLikeToArray(t,r);var i=Object.prototype.toString.call(t).slice(8,-1);if(i==="Object"&&t.constructor)i=t.constructor.name;if(i==="Map"||i==="Set")return Array.from(t);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return _arrayLikeToArray(t,r)}function _arrayLikeToArray(t,r){if(r==null||r>t.length)r=t.length;for(var i=0,o=new Array(r);i<r;i++)o[i]=t[i];return o}function asyncGeneratorStep(t,r,i,o,a,u,l){try{var h=t[u](l);var d=h.value}catch(t){i(t);return}if(h.done){r(d)}else{Promise.resolve(d).then(o,a)}}function _asyncToGenerator(t){return function(){var r=this,i=arguments;return new Promise((function(o,a){var u=t.apply(r,i);function _next(t){asyncGeneratorStep(u,o,a,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(u,o,a,_next,_throw,"throw",t)}_next(undefined)}))}}const o=i(4591);const a=["suggest","format","onState","validate","onRender","type"];const noop=()=>{};function prompt(){return _prompt.apply(this,arguments)}function _prompt(){_prompt=_asyncToGenerator((function*(t=[],{onSubmit:r=noop,onCancel:i=noop}={}){const u={};const l=prompt._override||{};t=[].concat(t);let h,d,p,g,y,b;const w=function(){var t=_asyncToGenerator((function*(t,r,i=false){if(!i&&t.validate&&t.validate(r)!==true){return}return t.format?yield t.format(r,u):r}));return function getFormattedAnswer(r,i){return t.apply(this,arguments)}}();var v=_createForOfIteratorHelper(t),E;try{for(v.s();!(E=v.n()).done;){d=E.value;var A=d;g=A.name;y=A.type;if(typeof y==="function"){y=yield y(h,_objectSpread({},u),d);d["type"]=y}if(!y)continue;for(let t in d){if(a.includes(t))continue;let r=d[t];d[t]=typeof r==="function"?yield r(h,_objectSpread({},u),b):r}b=d;if(typeof d.message!=="string"){throw new Error("prompt message is required")}var _=d;g=_.name;y=_.type;if(o[y]===void 0){throw new Error(`prompt type (${y}) is not defined`)}if(l[d.name]!==undefined){h=yield w(d,l[d.name]);if(h!==undefined){u[g]=h;continue}}try{h=prompt._injected?getInjectedAnswer(prompt._injected,d.initial):yield o[y](d);u[g]=h=yield w(d,h,true);p=yield r(d,h,u)}catch(t){p=!(yield i(d,u))}if(p)return u}}catch(t){v.e(t)}finally{v.f()}return u}));return _prompt.apply(this,arguments)}function getInjectedAnswer(t,r){const i=t.shift();if(i instanceof Error){throw i}return i===undefined?r:i}function inject(t){prompt._injected=(prompt._injected||[]).concat(t)}function override(t){prompt._override=Object.assign({},t)}t.exports=Object.assign(prompt,{prompt:prompt,prompts:o,inject:inject,override:override})},4591:(t,r,i)=>{"use strict";const o=r;const a=i(9956);const noop=t=>t;function toPrompt(t,r,i={}){return new Promise(((o,u)=>{const l=new a[t](r);const h=i.onAbort||noop;const d=i.onSubmit||noop;const p=i.onExit||noop;l.on("state",r.onState||noop);l.on("submit",(t=>o(d(t))));l.on("exit",(t=>o(p(t))));l.on("abort",(t=>u(h(t))))}))}o.text=t=>toPrompt("TextPrompt",t);o.password=t=>{t.style="password";return o.text(t)};o.invisible=t=>{t.style="invisible";return o.text(t)};o.number=t=>toPrompt("NumberPrompt",t);o.date=t=>toPrompt("DatePrompt",t);o.confirm=t=>toPrompt("ConfirmPrompt",t);o.list=t=>{const r=t.separator||",";return toPrompt("TextPrompt",t,{onSubmit:t=>t.split(r).map((t=>t.trim()))})};o.toggle=t=>toPrompt("TogglePrompt",t);o.select=t=>toPrompt("SelectPrompt",t);o.multiselect=t=>{t.choices=[].concat(t.choices||[]);const toSelected=t=>t.filter((t=>t.selected)).map((t=>t.value));return toPrompt("MultiselectPrompt",t,{onAbort:toSelected,onSubmit:toSelected})};o.autocompleteMultiselect=t=>{t.choices=[].concat(t.choices||[]);const toSelected=t=>t.filter((t=>t.selected)).map((t=>t.value));return toPrompt("AutocompleteMultiselectPrompt",t,{onAbort:toSelected,onSubmit:toSelected})};const byTitle=(t,r)=>Promise.resolve(r.filter((r=>r.title.slice(0,t.length).toLowerCase()===t.toLowerCase())));o.autocomplete=t=>{t.suggest=t.suggest||byTitle;t.choices=[].concat(t.choices||[]);return toPrompt("AutocompletePrompt",t)}},8692:t=>{"use strict";t.exports=(t,r)=>{if(t.meta&&t.name!=="escape")return;if(t.ctrl){if(t.name==="a")return"first";if(t.name==="c")return"abort";if(t.name==="d")return"abort";if(t.name==="e")return"last";if(t.name==="g")return"reset"}if(r){if(t.name==="j")return"down";if(t.name==="k")return"up"}if(t.name==="return")return"submit";if(t.name==="enter")return"submit";if(t.name==="backspace")return"delete";if(t.name==="delete")return"deleteForward";if(t.name==="abort")return"abort";if(t.name==="escape")return"exit";if(t.name==="tab")return"next";if(t.name==="pagedown")return"nextPage";if(t.name==="pageup")return"prevPage";if(t.name==="home")return"home";if(t.name==="end")return"end";if(t.name==="up")return"up";if(t.name==="down")return"down";if(t.name==="right")return"right";if(t.name==="left")return"left";return false}},3513:(t,r,i)=>{"use strict";function _createForOfIteratorHelper(t,r){var i=typeof Symbol!=="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=_unsupportedIterableToArray(t))||r&&t&&typeof t.length==="number"){if(i)t=i;var o=0;var a=function F(){};return{s:a,n:function n(){if(o>=t.length)return{done:true};return{done:false,value:t[o++]}},e:function e(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u=true,l=false,h;return{s:function s(){i=i.call(t)},n:function n(){var t=i.next();u=t.done;return t},e:function e(t){l=true;h=t},f:function f(){try{if(!u&&i.return!=null)i.return()}finally{if(l)throw h}}}}function _unsupportedIterableToArray(t,r){if(!t)return;if(typeof t==="string")return _arrayLikeToArray(t,r);var i=Object.prototype.toString.call(t).slice(8,-1);if(i==="Object"&&t.constructor)i=t.constructor.name;if(i==="Map"||i==="Set")return Array.from(t);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return _arrayLikeToArray(t,r)}function _arrayLikeToArray(t,r){if(r==null||r>t.length)r=t.length;for(var i=0,o=new Array(r);i<r;i++)o[i]=t[i];return o}const o=i(8760);const a=i(332),u=a.erase,l=a.cursor;const width=t=>[...o(t)].length;t.exports=function(t,r){if(!r)return u.line+l.to(0);let i=0;const o=t.split(/\r?\n/);var a=_createForOfIteratorHelper(o),h;try{for(a.s();!(h=a.n()).done;){let t=h.value;i+=1+Math.floor(Math.max(width(t)-1,0)/r)}}catch(t){a.e(t)}finally{a.f()}return u.lines(i)}},393:t=>{"use strict";t.exports=(t,r,i)=>{i=i||r;let o=Math.min(r-i,t-Math.floor(i/2));if(o<0)o=0;let a=Math.min(o+i,r);return{startIndex:o,endIndex:a}}},6217:t=>{"use strict";const r={arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",radioOn:"◉",radioOff:"◯",tick:"✔",cross:"✖",ellipsis:"…",pointerSmall:"›",line:"─",pointer:"❯"};const i={arrowUp:r.arrowUp,arrowDown:r.arrowDown,arrowLeft:r.arrowLeft,arrowRight:r.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"√",cross:"×",ellipsis:"...",pointerSmall:"»",line:"─",pointer:">"};const o=process.platform==="win32"?i:r;t.exports=o},2800:(t,r,i)=>{"use strict";t.exports={action:i(8692),clear:i(3513),style:i(5012),strip:i(8760),figures:i(6217),lines:i(1688),wrap:i(1705),entriesToDisplay:i(393)}},1688:(t,r,i)=>{"use strict";const o=i(8760);t.exports=function(t,r){let i=String(o(t)||"").split(/\r?\n/);if(!r)return i.length;return i.map((t=>Math.ceil(t.length/r))).reduce(((t,r)=>t+r))}},8760:t=>{"use strict";t.exports=t=>{const r=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|");const i=new RegExp(r,"g");return typeof t==="string"?t.replace(i,""):t}},5012:(t,r,i)=>{"use strict";const o=i(9439);const a=i(6217);const u=Object.freeze({password:{scale:1,render:t=>"*".repeat(t.length)},emoji:{scale:2,render:t=>"😃".repeat(t.length)},invisible:{scale:0,render:t=>""},default:{scale:1,render:t=>`${t}`}});const render=t=>u[t]||u.default;const l=Object.freeze({aborted:o.red(a.cross),done:o.green(a.tick),exited:o.yellow(a.cross),default:o.cyan("?")});const symbol=(t,r,i)=>r?l.aborted:i?l.exited:t?l.done:l.default;const delimiter=t=>o.gray(t?a.ellipsis:a.pointerSmall);const item=(t,r)=>o.gray(t?r?a.pointerSmall:"+":a.line);t.exports={styles:u,render:render,symbols:l,symbol:symbol,delimiter:delimiter,item:item}},1705:t=>{"use strict";t.exports=(t,r={})=>{const i=Number.isSafeInteger(parseInt(r.margin))?new Array(parseInt(r.margin)).fill(" ").join(""):r.margin||"";const o=r.width;return(t||"").split(/\r?\n/g).map((t=>t.split(/\s+/g).reduce(((t,r)=>{if(r.length+i.length>=o||t[t.length-1].length+r.length+1<o)t[t.length-1]+=` ${r}`;else t.push(`${i}${r}`);return t}),[i]).join("\n"))).join("\n")}},1112:(t,r,i)=>{function isNodeLT(t){t=(Array.isArray(t)?t:t.split(".")).map(Number);let r=0,i=process.versions.node.split(".").map(Number);for(;r<t.length;r++){if(i[r]>t[r])return false;if(t[r]>i[r])return true}return false}t.exports=isNodeLT("8.6.0")?i(6598):i(9590)},8994:t=>{"use strict";class DatePart{constructor({token:t,date:r,parts:i,locales:o}){this.token=t;this.date=r||new Date;this.parts=i||[this];this.locales=o||{}}up(){}down(){}next(){const t=this.parts.indexOf(this);return this.parts.find(((r,i)=>i>t&&r instanceof DatePart))}setTo(t){}prev(){let t=[].concat(this.parts).reverse();const r=t.indexOf(this);return t.find(((t,i)=>i>r&&t instanceof DatePart))}toString(){return String(this.date)}}t.exports=DatePart},5513:(t,r,i)=>{"use strict";const o=i(8994);const pos=t=>{t=t%10;return t===1?"st":t===2?"nd":t===3?"rd":"th"};class Day extends o{constructor(t={}){super(t)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(t){this.date.setDate(parseInt(t.substr(-2)))}toString(){let t=this.date.getDate();let r=this.date.getDay();return this.token==="DD"?String(t).padStart(2,"0"):this.token==="Do"?t+pos(t):this.token==="d"?r+1:this.token==="ddd"?this.locales.weekdaysShort[r]:this.token==="dddd"?this.locales.weekdays[r]:t}}t.exports=Day},9270:(t,r,i)=>{"use strict";const o=i(8994);class Hours extends o{constructor(t={}){super(t)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(t){this.date.setHours(parseInt(t.substr(-2)))}toString(){let t=this.date.getHours();if(/h/.test(this.token))t=t%12||12;return this.token.length>1?String(t).padStart(2,"0"):t}}t.exports=Hours},1190:(t,r,i)=>{"use strict";t.exports={DatePart:i(8994),Meridiem:i(8135),Day:i(5513),Hours:i(9270),Milliseconds:i(2397),Minutes:i(9246),Month:i(5763),Seconds:i(5579),Year:i(4191)}},8135:(t,r,i)=>{"use strict";const o=i(8994);class Meridiem extends o{constructor(t={}){super(t)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let t=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?t.toUpperCase():t}}t.exports=Meridiem},2397:(t,r,i)=>{"use strict";const o=i(8994);class Milliseconds extends o{constructor(t={}){super(t)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(t){this.date.setMilliseconds(parseInt(t.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}t.exports=Milliseconds},9246:(t,r,i)=>{"use strict";const o=i(8994);class Minutes extends o{constructor(t={}){super(t)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(t){this.date.setMinutes(parseInt(t.substr(-2)))}toString(){let t=this.date.getMinutes();return this.token.length>1?String(t).padStart(2,"0"):t}}t.exports=Minutes},5763:(t,r,i)=>{"use strict";const o=i(8994);class Month extends o{constructor(t={}){super(t)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(t){t=parseInt(t.substr(-2))-1;this.date.setMonth(t<0?0:t)}toString(){let t=this.date.getMonth();let r=this.token.length;return r===2?String(t+1).padStart(2,"0"):r===3?this.locales.monthsShort[t]:r===4?this.locales.months[t]:String(t+1)}}t.exports=Month},5579:(t,r,i)=>{"use strict";const o=i(8994);class Seconds extends o{constructor(t={}){super(t)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(t){this.date.setSeconds(parseInt(t.substr(-2)))}toString(){let t=this.date.getSeconds();return this.token.length>1?String(t).padStart(2,"0"):t}}t.exports=Seconds},4191:(t,r,i)=>{"use strict";const o=i(8994);class Year extends o{constructor(t={}){super(t)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(t){this.date.setFullYear(t.substr(-4))}toString(){let t=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?t.substr(-2):t}}t.exports=Year},514:(t,r,i)=>{"use strict";const o=i(9439);const a=i(9126);const{erase:u,cursor:l}=i(332);const{style:h,clear:d,figures:p,wrap:g,entriesToDisplay:y}=i(9807);const getVal=(t,r)=>t[r]&&(t[r].value||t[r].title||t[r]);const getTitle=(t,r)=>t[r]&&(t[r].title||t[r].value||t[r]);const getIndex=(t,r)=>{const i=t.findIndex((t=>t.value===r||t.title===r));return i>-1?i:undefined};class AutocompletePrompt extends a{constructor(t={}){super(t);this.msg=t.message;this.suggest=t.suggest;this.choices=t.choices;this.initial=typeof t.initial==="number"?t.initial:getIndex(t.choices,t.initial);this.select=this.initial||t.cursor||0;this.i18n={noMatches:t.noMatches||"no matches found"};this.fallback=t.fallback||this.initial;this.clearFirst=t.clearFirst||false;this.suggestions=[];this.input="";this.limit=t.limit||10;this.cursor=0;this.transform=h.render(t.style);this.scale=this.transform.scale;this.render=this.render.bind(this);this.complete=this.complete.bind(this);this.clear=d("",this.out.columns);this.complete(this.render);this.render()}set fallback(t){this._fb=Number.isSafeInteger(parseInt(t))?parseInt(t):t}get fallback(){let t;if(typeof this._fb==="number")t=this.choices[this._fb];else if(typeof this._fb==="string")t={title:this._fb};return t||this._fb||{title:this.i18n.noMatches}}moveSelect(t){this.select=t;if(this.suggestions.length>0)this.value=getVal(this.suggestions,t);else this.value=this.fallback.value;this.fire()}async complete(t){const r=this.completing=this.suggest(this.input,this.choices);const i=await r;if(this.completing!==r)return;this.suggestions=i.map(((t,r,i)=>({title:getTitle(i,r),value:getVal(i,r),description:t.description})));this.completing=false;const o=Math.max(i.length-1,0);this.moveSelect(Math.min(o,this.select));t&&t()}reset(){this.input="";this.complete((()=>{this.moveSelect(this.initial!==void 0?this.initial:0);this.render()}));this.render()}exit(){if(this.clearFirst&&this.input.length>0){this.reset()}else{this.done=this.exited=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}}abort(){this.done=this.aborted=true;this.exited=false;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.done=true;this.aborted=this.exited=false;this.fire();this.render();this.out.write("\n");this.close()}_(t,r){let i=this.input.slice(0,this.cursor);let o=this.input.slice(this.cursor);this.input=`${i}${t}${o}`;this.cursor=i.length+1;this.complete(this.render);this.render()}delete(){if(this.cursor===0)return this.bell();let t=this.input.slice(0,this.cursor-1);let r=this.input.slice(this.cursor);this.input=`${t}${r}`;this.complete(this.render);this.cursor=this.cursor-1;this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let t=this.input.slice(0,this.cursor);let r=this.input.slice(this.cursor+1);this.input=`${t}${r}`;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){this.moveSelect(this.suggestions.length-1)}else{this.moveSelect(this.select-1)}this.render()}down(){if(this.select===this.suggestions.length-1){this.moveSelect(0)}else{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(t,r,i,a){let u;let l=i?p.arrowUp:a?p.arrowDown:" ";let h=r?o.cyan().underline(t.title):t.title;l=(r?o.cyan(p.pointer)+" ":" ")+l;if(t.description){u=` - ${t.description}`;if(l.length+h.length+u.length>=this.out.columns||t.description.split(/\r?\n/).length>1){u="\n"+g(t.description,{margin:3,width:this.out.columns})}}return l+" "+h+o.gray(u||"")}render(){if(this.closed)return;if(this.firstRender)this.out.write(l.hide);else this.out.write(d(this.outputText,this.out.columns));super.render();let{startIndex:t,endIndex:r}=y(this.select,this.choices.length,this.limit);this.outputText=[h.symbol(this.done,this.aborted,this.exited),o.bold(this.msg),h.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 i=this.suggestions.slice(t,r).map(((i,o)=>this.renderOption(i,this.select===o+t,o===0&&t>0,o+t===r-1&&r<this.choices.length))).join("\n");this.outputText+=`\n`+(i||o.gray(this.fallback.title))}this.out.write(u.line+l.to(0)+this.outputText)}}t.exports=AutocompletePrompt},7685:(t,r,i)=>{"use strict";const o=i(9439);const{cursor:a}=i(332);const u=i(92);const{clear:l,style:h,figures:d}=i(9807);class AutocompleteMultiselectPrompt extends u{constructor(t={}){t.overrideRender=true;super(t);this.inputValue="";this.clear=l("",this.out.columns);this.filteredOptions=this.value;this.render()}last(){this.cursor=this.filteredOptions.length-1;this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length;this.render()}up(){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((t=>t.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 t=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter((t=>{if(this.inputValue){if(typeof t.title==="string"){if(t.title.toLowerCase().includes(this.inputValue.toLowerCase())){return true}}if(typeof t.value==="string"){if(t.value.toLowerCase().includes(this.inputValue.toLowerCase())){return true}}return false}return true}));const r=this.filteredOptions.findIndex((r=>r===t));this.cursor=r<0?0:r;this.render()}handleSpaceToggle(){const t=this.filteredOptions[this.cursor];if(t.selected){t.selected=false;this.render()}else if(t.disabled||this.value.filter((t=>t.selected)).length>=this.maxChoices){return this.bell()}else{t.selected=true;this.render()}}handleInputChange(t){this.inputValue=this.inputValue+t;this.updateFilteredOptions()}_(t,r){if(t===" "){this.handleSpaceToggle()}else{this.handleInputChange(t)}}renderInstructions(){if(this.instructions===undefined||this.instructions){if(typeof this.instructions==="string"){return this.instructions}return`\nInstructions:\n ${d.arrowUp}/${d.arrowDown}: Highlight option\n ${d.arrowLeft}/${d.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:o.gray("Enter something to filter")}\n`}renderOption(t,r,i){let a;if(r.disabled)a=t===i?o.gray().underline(r.title):o.strikethrough().gray(r.title);else a=t===i?o.cyan().underline(r.title):r.title;return(r.selected?o.green(d.radioOn):d.radioOff)+" "+a}renderDoneOrInstructions(){if(this.done){return this.value.filter((t=>t.selected)).map((t=>t.title)).join(", ")}const t=[o.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];if(this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled){t.push(o.yellow(this.warn))}return t.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(a.hide);super.render();let t=[h.symbol(this.done,this.aborted),o.bold(this.msg),h.delimiter(false),this.renderDoneOrInstructions()].join(" ");if(this.showMinError){t+=o.red(`You must select a minimum of ${this.minSelected} choices.`);this.showMinError=false}t+=this.renderOptions(this.filteredOptions);this.out.write(this.clear+t);this.clear=l(t,this.out.columns)}}t.exports=AutocompleteMultiselectPrompt},3037:(t,r,i)=>{const o=i(9439);const a=i(9126);const{style:u,clear:l}=i(9807);const{erase:h,cursor:d}=i(332);class ConfirmPrompt extends a{constructor(t={}){super(t);this.msg=t.message;this.value=t.initial;this.initialValue=!!t.initial;this.yesMsg=t.yes||"yes";this.yesOption=t.yesOption||"(Y/n)";this.noMsg=t.no||"no";this.noOption=t.noOption||"(y/N)";this.render()}reset(){this.value=this.initialValue;this.fire();this.render()}exit(){this.abort()}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()}_(t,r){if(t.toLowerCase()==="y"){this.value=true;return this.submit()}if(t.toLowerCase()==="n"){this.value=false;return this.submit()}return this.bell()}render(){if(this.closed)return;if(this.firstRender)this.out.write(d.hide);else this.out.write(l(this.outputText,this.out.columns));super.render();this.outputText=[u.symbol(this.done,this.aborted),o.bold(this.msg),u.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:o.gray(this.initialValue?this.yesOption:this.noOption)].join(" ");this.out.write(h.line+d.to(0)+this.outputText)}}t.exports=ConfirmPrompt},5048:(t,r,i)=>{"use strict";const o=i(9439);const a=i(9126);const{style:u,clear:l,figures:h}=i(9807);const{erase:d,cursor:p}=i(332);const{DatePart:g,Meridiem:y,Day:b,Hours:w,Milliseconds:v,Minutes:E,Month:A,Seconds:_,Year:C}=i(1190);const S=/\\(.)|"((?:\\["\\]|[^"])+)"|(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:t})=>t.replace(/\\(.)/g,"$1"),2:t=>new b(t),3:t=>new A(t),4:t=>new C(t),5:t=>new y(t),6:t=>new w(t),7:t=>new E(t),8:t=>new _(t),9:t=>new v(t)};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 a{constructor(t={}){super(t);this.msg=t.message;this.cursor=0;this.typed="";this.locales=Object.assign(x,t.locales);this._date=t.initial||new Date;this.errorMsg=t.error||"Please Enter A Valid Value";this.validator=t.validate||(()=>true);this.mask=t.mask||"YYYY-MM-DD HH:mm:ss";this.clear=l("",this.out.columns);this.render()}get value(){return this.date}get date(){return this._date}set date(t){if(t)this._date.setTime(t.getTime())}set mask(t){let r;this.parts=[];while(r=S.exec(t)){let t=r.shift();let i=r.findIndex((t=>t!=null));this.parts.push(i in D?D[i]({token:r[i]||t,date:this.date,parts:this.parts,locales:this.locales}):r[i]||t)}let i=this.parts.reduce(((t,r)=>{if(typeof r==="string"&&typeof t[t.length-1]==="string")t[t.length-1]+=r;else t.push(r);return t}),[]);this.parts.splice(0);this.parts.push(...i);this.reset()}moveCursor(t){this.typed="";this.cursor=t;this.fire()}reset(){this.moveCursor(this.parts.findIndex((t=>t instanceof g)));this.fire();this.render()}exit(){this.abort()}abort(){this.done=this.aborted=true;this.error=false;this.fire();this.render();this.out.write("\n");this.close()}async validate(){let t=await this.validator(this.value);if(typeof t==="string"){this.errorMsg=t;t=false}this.error=!t}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 t=this.parts[this.cursor].prev();if(t==null)return this.bell();this.moveCursor(this.parts.indexOf(t));this.render()}right(){let t=this.parts[this.cursor].next();if(t==null)return this.bell();this.moveCursor(this.parts.indexOf(t));this.render()}next(){let t=this.parts[this.cursor].next();this.moveCursor(t?this.parts.indexOf(t):this.parts.findIndex((t=>t instanceof g)));this.render()}_(t){if(/\d/.test(t)){this.typed+=t;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(l(this.outputText,this.out.columns));super.render();this.outputText=[u.symbol(this.done,this.aborted),o.bold(this.msg),u.delimiter(false),this.parts.reduce(((t,r,i)=>t.concat(i===this.cursor&&!this.done?o.cyan().underline(r.toString()):r)),[]).join("")].join(" ");if(this.error){this.outputText+=this.errorMsg.split("\n").reduce(((t,r,i)=>t+`\n${i?` `:h.pointerSmall} ${o.red().italic(r)}`),``)}this.out.write(d.line+p.to(0)+this.outputText)}}t.exports=DatePrompt},6529:(t,r,i)=>{"use strict";t.exports={TextPrompt:i(1551),SelectPrompt:i(6515),TogglePrompt:i(181),DatePrompt:i(5048),NumberPrompt:i(3686),MultiselectPrompt:i(92),AutocompletePrompt:i(514),AutocompleteMultiselectPrompt:i(7685),ConfirmPrompt:i(3037)}},92:(t,r,i)=>{"use strict";const o=i(9439);const{cursor:a}=i(332);const u=i(9126);const{clear:l,figures:h,style:d,wrap:p,entriesToDisplay:g}=i(9807);class MultiselectPrompt extends u{constructor(t={}){super(t);this.msg=t.message;this.cursor=t.cursor||0;this.scrollIndex=t.cursor||0;this.hint=t.hint||"";this.warn=t.warn||"- This option is disabled -";this.minSelected=t.min;this.showMinError=false;this.maxChoices=t.max;this.instructions=t.instructions;this.optionsPerPage=t.optionsPerPage||10;this.value=t.choices.map(((t,r)=>{if(typeof t==="string")t={title:t,value:r};return{title:t&&(t.title||t.value||t),description:t&&t.description,value:t&&(t.value===undefined?r:t.value),selected:t&&t.selected,disabled:t&&t.disabled}}));this.clear=l("",this.out.columns);if(!t.overrideRender){this.render()}}reset(){this.value.map((t=>!t.selected));this.cursor=0;this.fire();this.render()}selected(){return this.value.filter((t=>t.selected))}exit(){this.abort()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){const t=this.value.filter((t=>t.selected));if(this.minSelected&&t.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((t=>t.selected)).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=true;this.render()}handleSpaceToggle(){const t=this.value[this.cursor];if(t.selected){t.selected=false;this.render()}else if(t.disabled||this.value.filter((t=>t.selected)).length>=this.maxChoices){return this.bell()}else{t.selected=true;this.render()}}toggleAll(){if(this.maxChoices!==undefined||this.value[this.cursor].disabled){return this.bell()}const t=!this.value[this.cursor].selected;this.value.filter((t=>!t.disabled)).forEach((r=>r.selected=t));this.render()}_(t,r){if(t===" "){this.handleSpaceToggle()}else if(t==="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"+` ${h.arrowUp}/${h.arrowDown}: Highlight option\n`+` ${h.arrowLeft}/${h.arrowRight}/[space]: Toggle selection\n`+(this.maxChoices===undefined?` a: Toggle all\n`:"")+` enter/return: Complete answer`}return""}renderOption(t,r,i,a){const u=(r.selected?o.green(h.radioOn):h.radioOff)+" "+a+" ";let l,d;if(r.disabled){l=t===i?o.gray().underline(r.title):o.strikethrough().gray(r.title)}else{l=t===i?o.cyan().underline(r.title):r.title;if(t===i&&r.description){d=` - ${r.description}`;if(u.length+l.length+d.length>=this.out.columns||r.description.split(/\r?\n/).length>1){d="\n"+p(r.description,{margin:u.length,width:this.out.columns})}}}return u+l+o.gray(d||"")}paginateOptions(t){if(t.length===0){return o.red("No matches for this query.")}let{startIndex:r,endIndex:i}=g(this.cursor,t.length,this.optionsPerPage);let a,u=[];for(let o=r;o<i;o++){if(o===r&&r>0){a=h.arrowUp}else if(o===i-1&&i<t.length){a=h.arrowDown}else{a=" "}u.push(this.renderOption(this.cursor,t[o],o,a))}return"\n"+u.join("\n")}renderOptions(t){if(!this.done){return this.paginateOptions(t)}return""}renderDoneOrInstructions(){if(this.done){return this.value.filter((t=>t.selected)).map((t=>t.title)).join(", ")}const t=[o.gray(this.hint),this.renderInstructions()];if(this.value[this.cursor].disabled){t.push(o.yellow(this.warn))}return t.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(a.hide);super.render();let t=[d.symbol(this.done,this.aborted),o.bold(this.msg),d.delimiter(false),this.renderDoneOrInstructions()].join(" ");if(this.showMinError){t+=o.red(`You must select a minimum of ${this.minSelected} choices.`);this.showMinError=false}t+=this.renderOptions(this.value);this.out.write(this.clear+t);this.clear=l(t,this.out.columns)}}t.exports=MultiselectPrompt},3686:(t,r,i)=>{const o=i(9439);const a=i(9126);const{cursor:u,erase:l}=i(332);const{style:h,figures:d,clear:p,lines:g}=i(9807);const y=/[0-9]/;const isDef=t=>t!==undefined;const round=(t,r)=>{let i=Math.pow(10,r);return Math.round(t*i)/i};class NumberPrompt extends a{constructor(t={}){super(t);this.transform=h.render(t.style);this.msg=t.message;this.initial=isDef(t.initial)?t.initial:"";this.float=!!t.float;this.round=t.round||2;this.inc=t.increment||1;this.min=isDef(t.min)?t.min:-Infinity;this.max=isDef(t.max)?t.max:Infinity;this.errorMsg=t.error||`Please Enter A Valid Value`;this.validator=t.validate||(()=>true);this.color=`cyan`;this.value=``;this.typed=``;this.lastHit=0;this.render()}set value(t){if(!t&&t!==0){this.placeholder=true;this.rendered=o.gray(this.transform.render(`${this.initial}`));this._value=``}else{this.placeholder=false;this.rendered=this.transform.render(`${round(t,this.round)}`);this._value=round(t,this.round)}this.fire()}get value(){return this._value}parse(t){return this.float?parseFloat(t):parseInt(t)}valid(t){return t===`-`||t===`.`&&this.float||y.test(t)}reset(){this.typed=``;this.value=``;this.fire();this.render()}exit(){this.abort()}abort(){let t=this.value;this.value=t!==``?t:this.initial;this.done=this.aborted=true;this.error=false;this.fire();this.render();this.out.write(`\n`);this.close()}async validate(){let t=await this.validator(this.value);if(typeof t===`string`){this.errorMsg=t;t=false}this.error=!t}async submit(){await this.validate();if(this.error){this.color=`red`;this.fire();this.render();return}let t=this.value;this.value=t!==``?t: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 t=this.value.toString();if(t.length===0)return this.bell();this.value=this.parse(t=t.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()}_(t,r){if(!this.valid(t))return this.bell();const i=Date.now();if(i-this.lastHit>1e3)this.typed=``;this.typed+=t;this.lastHit=i;this.color=`cyan`;if(t===`.`)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(u.down(g(this.outputError,this.out.columns)-1)+p(this.outputError,this.out.columns));this.out.write(p(this.outputText,this.out.columns))}super.render();this.outputError="";this.outputText=[h.symbol(this.done,this.aborted),o.bold(this.msg),h.delimiter(this.done),!this.done||!this.done&&!this.placeholder?o[this.color]().underline(this.rendered):this.rendered].join(` `);if(this.error){this.outputError+=this.errorMsg.split(`\n`).reduce(((t,r,i)=>t+`\n${i?` `:d.pointerSmall} ${o.red().italic(r)}`),``)}this.out.write(l.line+u.to(0)+this.outputText+u.save+this.outputError+u.restore)}}t.exports=NumberPrompt},9126:(t,r,i)=>{"use strict";const o=i(4521);const{action:a}=i(9807);const u=i(2361);const{beep:l,cursor:h}=i(332);const d=i(9439);class Prompt extends u{constructor(t={}){super();this.firstRender=true;this.in=t.stdin||process.stdin;this.out=t.stdout||process.stdout;this.onRender=(t.onRender||(()=>void 0)).bind(this);const r=o.createInterface({input:this.in,escapeCodeTimeout:50});o.emitKeypressEvents(this.in,r);if(this.in.isTTY)this.in.setRawMode(true);const i=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1;const keypress=(t,r)=>{let o=a(r,i);if(o===false){this._&&this._(t,r)}else if(typeof this[o]==="function"){this[o](r)}else{this.bell()}};this.close=()=>{this.out.write(h.show);this.in.removeListener("keypress",keypress);if(this.in.isTTY)this.in.setRawMode(false);r.close();this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value);this.closed=true};this.in.on("keypress",keypress)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(l)}render(){this.onRender(d);if(this.firstRender)this.firstRender=false}}t.exports=Prompt},6515:(t,r,i)=>{"use strict";const o=i(9439);const a=i(9126);const{style:u,clear:l,figures:h,wrap:d,entriesToDisplay:p}=i(9807);const{cursor:g}=i(332);class SelectPrompt extends a{constructor(t={}){super(t);this.msg=t.message;this.hint=t.hint||"- Use arrow-keys. Return to submit.";this.warn=t.warn||"- This option is disabled";this.cursor=t.initial||0;this.choices=t.choices.map(((t,r)=>{if(typeof t==="string")t={title:t,value:r};return{title:t&&(t.title||t.value||t),value:t&&(t.value===undefined?r:t.value),description:t&&t.description,selected:t&&t.selected,disabled:t&&t.disabled}}));this.optionsPerPage=t.optionsPerPage||10;this.value=(this.choices[this.cursor]||{}).value;this.clear=l("",this.out.columns);this.render()}moveCursor(t){this.cursor=t;this.value=this.choices[t].value;this.fire()}reset(){this.moveCursor(0);this.fire();this.render()}exit(){this.abort()}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){this.moveCursor(this.choices.length-1)}else{this.moveCursor(this.cursor-1)}this.render()}down(){if(this.cursor===this.choices.length-1){this.moveCursor(0)}else{this.moveCursor(this.cursor+1)}this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length);this.render()}_(t,r){if(t===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;if(this.firstRender)this.out.write(g.hide);else this.out.write(l(this.outputText,this.out.columns));super.render();let{startIndex:t,endIndex:r}=p(this.cursor,this.choices.length,this.optionsPerPage);this.outputText=[u.symbol(this.done,this.aborted),o.bold(this.msg),u.delimiter(false),this.done?this.selection.title:this.selection.disabled?o.yellow(this.warn):o.gray(this.hint)].join(" ");if(!this.done){this.outputText+="\n";for(let i=t;i<r;i++){let a,u,l="",p=this.choices[i];if(i===t&&t>0){u=h.arrowUp}else if(i===r-1&&r<this.choices.length){u=h.arrowDown}else{u=" "}if(p.disabled){a=this.cursor===i?o.gray().underline(p.title):o.strikethrough().gray(p.title);u=(this.cursor===i?o.bold().gray(h.pointer)+" ":" ")+u}else{a=this.cursor===i?o.cyan().underline(p.title):p.title;u=(this.cursor===i?o.cyan(h.pointer)+" ":" ")+u;if(p.description&&this.cursor===i){l=` - ${p.description}`;if(u.length+a.length+l.length>=this.out.columns||p.description.split(/\r?\n/).length>1){l="\n"+d(p.description,{margin:3,width:this.out.columns})}}}this.outputText+=`${u} ${a}${o.gray(l)}\n`}}this.out.write(this.outputText)}}t.exports=SelectPrompt},1551:(t,r,i)=>{const o=i(9439);const a=i(9126);const{erase:u,cursor:l}=i(332);const{style:h,clear:d,lines:p,figures:g}=i(9807);class TextPrompt extends a{constructor(t={}){super(t);this.transform=h.render(t.style);this.scale=this.transform.scale;this.msg=t.message;this.initial=t.initial||``;this.validator=t.validate||(()=>true);this.value=``;this.errorMsg=t.error||`Please Enter A Valid Value`;this.cursor=Number(!!this.initial);this.cursorOffset=0;this.clear=d(``,this.out.columns);this.render()}set value(t){if(!t&&this.initial){this.placeholder=true;this.rendered=o.gray(this.transform.render(this.initial))}else{this.placeholder=false;this.rendered=this.transform.render(t)}this._value=t;this.fire()}get value(){return this._value}reset(){this.value=``;this.cursor=Number(!!this.initial);this.cursorOffset=0;this.fire();this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial;this.done=this.aborted=true;this.error=false;this.red=false;this.fire();this.render();this.out.write("\n");this.close()}async validate(){let t=await this.validator(this.value);if(typeof t===`string`){this.errorMsg=t;t=false}this.error=!t}async submit(){this.value=this.value||this.initial;this.cursorOffset=0;this.cursor=this.rendered.length;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(t){if(this.placeholder)return;this.cursor=this.cursor+t;this.cursorOffset+=t}_(t,r){let i=this.value.slice(0,this.cursor);let o=this.value.slice(this.cursor);this.value=`${i}${t}${o}`;this.red=false;this.cursor=this.placeholder?0:i.length+1;this.render()}delete(){if(this.isCursorAtStart())return this.bell();let t=this.value.slice(0,this.cursor-1);let r=this.value.slice(this.cursor);this.value=`${t}${r}`;this.red=false;if(this.isCursorAtStart()){this.cursorOffset=0}else{this.cursorOffset++;this.moveCursor(-1)}this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let t=this.value.slice(0,this.cursor);let r=this.value.slice(this.cursor+1);this.value=`${t}${r}`;this.red=false;if(this.isCursorAtEnd()){this.cursorOffset=0}else{this.cursorOffset++}this.render()}first(){this.cursor=0;this.render()}last(){this.cursor=this.value.length;this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1);this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1);this.render()}isCursorAtStart(){return this.cursor===0||this.placeholder&&this.cursor===1}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(l.down(p(this.outputError,this.out.columns)-1)+d(this.outputError,this.out.columns));this.out.write(d(this.outputText,this.out.columns))}super.render();this.outputError="";this.outputText=[h.symbol(this.done,this.aborted),o.bold(this.msg),h.delimiter(this.done),this.red?o.red(this.rendered):this.rendered].join(` `);if(this.error){this.outputError+=this.errorMsg.split(`\n`).reduce(((t,r,i)=>t+`\n${i?" ":g.pointerSmall} ${o.red().italic(r)}`),``)}this.out.write(u.line+l.to(0)+this.outputText+l.save+this.outputError+l.restore+l.move(this.cursorOffset,0))}}t.exports=TextPrompt},181:(t,r,i)=>{const o=i(9439);const a=i(9126);const{style:u,clear:l}=i(9807);const{cursor:h,erase:d}=i(332);class TogglePrompt extends a{constructor(t={}){super(t);this.msg=t.message;this.value=!!t.initial;this.active=t.active||"on";this.inactive=t.inactive||"off";this.initialValue=this.value;this.render()}reset(){this.value=this.initialValue;this.fire();this.render()}exit(){this.abort()}abort(){this.done=this.aborted=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()}_(t,r){if(t===" "){this.value=!this.value}else if(t==="1"){this.value=true}else if(t==="0"){this.value=false}else return this.bell();this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(h.hide);else this.out.write(l(this.outputText,this.out.columns));super.render();this.outputText=[u.symbol(this.done,this.aborted),o.bold(this.msg),u.delimiter(this.done),this.value?this.inactive:o.cyan().underline(this.inactive),o.gray("/"),this.value?o.cyan().underline(this.active):this.active].join(" ");this.out.write(d.line+h.to(0)+this.outputText)}}t.exports=TogglePrompt},9590:(t,r,i)=>{"use strict";const o=i(4450);const a=["suggest","format","onState","validate","onRender","type"];const noop=()=>{};async function prompt(t=[],{onSubmit:r=noop,onCancel:i=noop}={}){const u={};const l=prompt._override||{};t=[].concat(t);let h,d,p,g,y,b;const getFormattedAnswer=async(t,r,i=false)=>{if(!i&&t.validate&&t.validate(r)!==true){return}return t.format?await t.format(r,u):r};for(d of t){({name:g,type:y}=d);if(typeof y==="function"){y=await y(h,{...u},d);d["type"]=y}if(!y)continue;for(let t in d){if(a.includes(t))continue;let r=d[t];d[t]=typeof r==="function"?await r(h,{...u},b):r}b=d;if(typeof d.message!=="string"){throw new Error("prompt message is required")}({name:g,type:y}=d);if(o[y]===void 0){throw new Error(`prompt type (${y}) is not defined`)}if(l[d.name]!==undefined){h=await getFormattedAnswer(d,l[d.name]);if(h!==undefined){u[g]=h;continue}}try{h=prompt._injected?getInjectedAnswer(prompt._injected,d.initial):await o[y](d);u[g]=h=await getFormattedAnswer(d,h,true);p=await r(d,h,u)}catch(t){p=!await i(d,u)}if(p)return u}return u}function getInjectedAnswer(t,r){const i=t.shift();if(i instanceof Error){throw i}return i===undefined?r:i}function inject(t){prompt._injected=(prompt._injected||[]).concat(t)}function override(t){prompt._override=Object.assign({},t)}t.exports=Object.assign(prompt,{prompt:prompt,prompts:o,inject:inject,override:override})},4450:(t,r,i)=>{"use strict";const o=r;const a=i(6529);const noop=t=>t;function toPrompt(t,r,i={}){return new Promise(((o,u)=>{const l=new a[t](r);const h=i.onAbort||noop;const d=i.onSubmit||noop;const p=i.onExit||noop;l.on("state",r.onState||noop);l.on("submit",(t=>o(d(t))));l.on("exit",(t=>o(p(t))));l.on("abort",(t=>u(h(t))))}))}o.text=t=>toPrompt("TextPrompt",t);o.password=t=>{t.style="password";return o.text(t)};o.invisible=t=>{t.style="invisible";return o.text(t)};o.number=t=>toPrompt("NumberPrompt",t);o.date=t=>toPrompt("DatePrompt",t);o.confirm=t=>toPrompt("ConfirmPrompt",t);o.list=t=>{const r=t.separator||",";return toPrompt("TextPrompt",t,{onSubmit:t=>t.split(r).map((t=>t.trim()))})};o.toggle=t=>toPrompt("TogglePrompt",t);o.select=t=>toPrompt("SelectPrompt",t);o.multiselect=t=>{t.choices=[].concat(t.choices||[]);const toSelected=t=>t.filter((t=>t.selected)).map((t=>t.value));return toPrompt("MultiselectPrompt",t,{onAbort:toSelected,onSubmit:toSelected})};o.autocompleteMultiselect=t=>{t.choices=[].concat(t.choices||[]);const toSelected=t=>t.filter((t=>t.selected)).map((t=>t.value));return toPrompt("AutocompleteMultiselectPrompt",t,{onAbort:toSelected,onSubmit:toSelected})};const byTitle=(t,r)=>Promise.resolve(r.filter((r=>r.title.slice(0,t.length).toLowerCase()===t.toLowerCase())));o.autocomplete=t=>{t.suggest=t.suggest||byTitle;t.choices=[].concat(t.choices||[]);return toPrompt("AutocompletePrompt",t)}},8573:t=>{"use strict";t.exports=(t,r)=>{if(t.meta&&t.name!=="escape")return;if(t.ctrl){if(t.name==="a")return"first";if(t.name==="c")return"abort";if(t.name==="d")return"abort";if(t.name==="e")return"last";if(t.name==="g")return"reset"}if(r){if(t.name==="j")return"down";if(t.name==="k")return"up"}if(t.name==="return")return"submit";if(t.name==="enter")return"submit";if(t.name==="backspace")return"delete";if(t.name==="delete")return"deleteForward";if(t.name==="abort")return"abort";if(t.name==="escape")return"exit";if(t.name==="tab")return"next";if(t.name==="pagedown")return"nextPage";if(t.name==="pageup")return"prevPage";if(t.name==="home")return"home";if(t.name==="end")return"end";if(t.name==="up")return"up";if(t.name==="down")return"down";if(t.name==="right")return"right";if(t.name==="left")return"left";return false}},6747:(t,r,i)=>{"use strict";const o=i(2714);const{erase:a,cursor:u}=i(332);const width=t=>[...o(t)].length;t.exports=function(t,r){if(!r)return a.line+u.to(0);let i=0;const o=t.split(/\r?\n/);for(let t of o){i+=1+Math.floor(Math.max(width(t)-1,0)/r)}return a.lines(i)}},3297:t=>{"use strict";t.exports=(t,r,i)=>{i=i||r;let o=Math.min(r-i,t-Math.floor(i/2));if(o<0)o=0;let a=Math.min(o+i,r);return{startIndex:o,endIndex:a}}},3034:t=>{"use strict";const r={arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",radioOn:"◉",radioOff:"◯",tick:"✔",cross:"✖",ellipsis:"…",pointerSmall:"›",line:"─",pointer:"❯"};const i={arrowUp:r.arrowUp,arrowDown:r.arrowDown,arrowLeft:r.arrowLeft,arrowRight:r.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"√",cross:"×",ellipsis:"...",pointerSmall:"»",line:"─",pointer:">"};const o=process.platform==="win32"?i:r;t.exports=o},9807:(t,r,i)=>{"use strict";t.exports={action:i(8573),clear:i(6747),style:i(7357),strip:i(2714),figures:i(3034),lines:i(4413),wrap:i(2492),entriesToDisplay:i(3297)}},4413:(t,r,i)=>{"use strict";const o=i(2714);t.exports=function(t,r){let i=String(o(t)||"").split(/\r?\n/);if(!r)return i.length;return i.map((t=>Math.ceil(t.length/r))).reduce(((t,r)=>t+r))}},2714:t=>{"use strict";t.exports=t=>{const r=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|");const i=new RegExp(r,"g");return typeof t==="string"?t.replace(i,""):t}},7357:(t,r,i)=>{"use strict";const o=i(9439);const a=i(3034);const u=Object.freeze({password:{scale:1,render:t=>"*".repeat(t.length)},emoji:{scale:2,render:t=>"😃".repeat(t.length)},invisible:{scale:0,render:t=>""},default:{scale:1,render:t=>`${t}`}});const render=t=>u[t]||u.default;const l=Object.freeze({aborted:o.red(a.cross),done:o.green(a.tick),exited:o.yellow(a.cross),default:o.cyan("?")});const symbol=(t,r,i)=>r?l.aborted:i?l.exited:t?l.done:l.default;const delimiter=t=>o.gray(t?a.ellipsis:a.pointerSmall);const item=(t,r)=>o.gray(t?r?a.pointerSmall:"+":a.line);t.exports={styles:u,render:render,symbols:l,symbol:symbol,delimiter:delimiter,item:item}},2492:t=>{"use strict";t.exports=(t,r={})=>{const i=Number.isSafeInteger(parseInt(r.margin))?new Array(parseInt(r.margin)).fill(" ").join(""):r.margin||"";const o=r.width;return(t||"").split(/\r?\n/g).map((t=>t.split(/\s+/g).reduce(((t,r)=>{if(r.length+i.length>=o||t[t.length-1].length+r.length+1<o)t[t.length-1]+=` ${r}`;else t.push(`${i}${r}`);return t}),[i]).join("\n"))).join("\n")}},8271:(t,r,i)=>{var o=i(7563);var a=i(1017).join;var u=i(5134);var l="/etc";var h=process.platform==="win32";var d=h?process.env.USERPROFILE:process.env.HOME;t.exports=function(t,r,p,g){if("string"!==typeof t)throw new Error("rc(name): name *must* be string");if(!p)p=i(5912)(process.argv.slice(2));r=("string"===typeof r?o.json(r):r)||{};g=g||o.parse;var y=o.env(t+"_");var b=[r];var w=[];function addConfigFile(t){if(w.indexOf(t)>=0)return;var r=o.file(t);if(r){b.push(g(r));w.push(t)}}if(!h)[a(l,t,"config"),a(l,t+"rc")].forEach(addConfigFile);if(d)[a(d,".config",t,"config"),a(d,".config",t),a(d,"."+t,"config"),a(d,"."+t+"rc")].forEach(addConfigFile);addConfigFile(o.find("."+t+"rc"));if(y.config)addConfigFile(y.config);if(p.config)addConfigFile(p.config);return u.apply(null,b.concat([y,p,w.length?{configs:w,config:w[w.length-1]}:undefined]))}},7563:(t,r,i)=>{"use strict";var o=i(7147);var a=i(1923);var u=i(1017);var l=i(6397);var h=r.parse=function(t){if(/^\s*{/.test(t))return JSON.parse(l(t));return a.parse(t)};var d=r.file=function(){var t=[].slice.call(arguments).filter((function(t){return t!=null}));for(var r in t)if("string"!==typeof t[r])return;var i=u.join.apply(null,t);var a;try{return o.readFileSync(i,"utf-8")}catch(t){return}};var p=r.json=function(){var t=d.apply(null,arguments);return t?h(t):null};var g=r.env=function(t,r){r=r||process.env;var i={};var o=t.length;for(var a in r){if(a.toLowerCase().indexOf(t.toLowerCase())===0){var u=a.substring(o).split("__");var l;while((l=u.indexOf(""))>-1){u.splice(l,1)}var h=i;u.forEach((function _buildSubObj(t,i){if(!t||typeof h!=="object")return;if(i===u.length-1)h[t]=r[a];if(h[t]===undefined)h[t]={};h=h[t]}))}}return i};var y=r.find=function(){var t=u.join.apply(null,[].slice.call(arguments));function find(t,r){var i=u.join(t,r);try{o.statSync(i);return i}catch(i){if(u.dirname(t)!==t)return find(u.dirname(t),r)}}return find(process.cwd(),t)}},6397:t=>{"use strict";var r=1;var i=2;function stripWithoutWhitespace(){return""}function stripWithWhitespace(t,r,i){return t.slice(r,i).replace(/\S/g," ")}t.exports=function(t,o){o=o||{};var a;var u;var l=false;var h=false;var d=0;var p="";var g=o.whitespace===false?stripWithoutWhitespace:stripWithWhitespace;for(var y=0;y<t.length;y++){a=t[y];u=t[y+1];if(!h&&a==='"'){var b=t[y-1]==="\\"&&t[y-2]!=="\\";if(!b){l=!l}}if(l){continue}if(!h&&a+u==="//"){p+=t.slice(d,y);d=y;h=r;y++}else if(h===r&&a+u==="\r\n"){y++;h=false;p+=g(t,d,y);d=y;continue}else if(h===r&&a==="\n"){h=false;p+=g(t,d,y);d=y}else if(!h&&a+u==="/*"){p+=t.slice(d,y);d=y;h=i;y++;continue}else if(h===i&&a+u==="*/"){y++;h=false;p+=g(t,d,y+1);d=y+1;continue}}return p+(h?g(t.substr(d)):t.substr(d))}},4955:(t,r,i)=>{const o=i(3118).Buffer;function decodeBase64(t){return o.from(t,"base64").toString("utf8")}function encodeBase64(t){return o.from(t,"utf8").toString("base64")}t.exports={decodeBase64:decodeBase64,encodeBase64:encodeBase64}},1384:(t,r,i)=>{var o=i(7310);var a=i(4955);var u=a.decodeBase64;var l=a.encodeBase64;var h=":_authToken";var d=":username";var p=":_password";t.exports=function(){var t;var r;if(arguments.length>=2){t=arguments[0];r=arguments[1]}else if(typeof arguments[0]==="string"){t=arguments[0]}else{r=arguments[0]}r=r||{};r.npmrc=r.npmrc||i(8271)("npm",{registry:"https://registry.npmjs.org/"});t=t||r.npmrc.registry;return getRegistryAuthInfo(t,r)||getLegacyAuthInfo(r.npmrc)};function getRegistryAuthInfo(t,r){var i=o.parse(t,false,true);var a;while(a!=="/"&&i.pathname!==a){a=i.pathname||"/";var u="//"+i.host+a.replace(/\/$/,"");var l=getAuthInfoForUrl(u,r.npmrc);if(l){return l}if(!r.recursive){return/\/$/.test(t)?undefined:getRegistryAuthInfo(o.resolve(t,"."),r)}i.pathname=o.resolve(normalizePath(a),"..")||"/"}return undefined}function getLegacyAuthInfo(t){if(t._auth){return{token:t._auth,type:"Basic"}}return undefined}function normalizePath(t){return t[t.length-1]==="/"?t:t+"/"}function getAuthInfoForUrl(t,r){var i=getBearerToken(r[t+h]||r[t+"/"+h]);if(i){return i}var o=r[t+d]||r[t+"/"+d];var a=r[t+p]||r[t+"/"+p];var u=getTokenForUsernameAndPassword(o,a);if(u){return u}return undefined}function getBearerToken(t){if(!t){return undefined}var r=t.replace(/^\$\{?([^}]*)\}?$/,(function(t,r){return process.env[r]}));return{token:r,type:"Bearer"}}function getTokenForUsernameAndPassword(t,r){if(!t||!r){return undefined}var i=u(r.replace(/^\$\{?([^}]*)\}?$/,(function(t,r){return process.env[r]})));var o=l(t+":"+i);return{token:o,type:"Basic",password:i,username:t}}},2447:(t,r,i)=>{"use strict";t.exports=function(t){var r=i(8271)("npm",{registry:"https://registry.npmjs.org/"});var o=r[t+":registry"]||r.registry;return o.slice(-1)==="/"?o:o+"/"}},7301:(t,r,i)=>{(()=>{"use strict";var r={610:(t,r,i)=>{const o=i(8750);const a=i(9434);const u=i(5873);const l=i(6477);const braces=(t,r={})=>{let i=[];if(Array.isArray(t)){for(const o of t){const t=braces.create(o,r);if(Array.isArray(t)){i.push(...t)}else{i.push(t)}}}else{i=[].concat(braces.create(t,r))}if(r&&r.expand===true&&r.nodupes===true){i=[...new Set(i)]}return i};braces.parse=(t,r={})=>l(t,r);braces.stringify=(t,r={})=>{if(typeof t==="string"){return o(braces.parse(t,r),r)}return o(t,r)};braces.compile=(t,r={})=>{if(typeof t==="string"){t=braces.parse(t,r)}return a(t,r)};braces.expand=(t,r={})=>{if(typeof t==="string"){t=braces.parse(t,r)}let i=u(t,r);if(r.noempty===true){i=i.filter(Boolean)}if(r.nodupes===true){i=[...new Set(i)]}return i};braces.create=(t,r={})=>{if(t===""||t.length<3){return[t]}return r.expand!==true?braces.compile(t,r):braces.expand(t,r)};t.exports=braces},9434:(t,r,i)=>{const o=i(6330);const a=i(5207);const compile=(t,r={})=>{const walk=(t,i={})=>{const u=a.isInvalidBrace(i);const l=t.invalid===true&&r.escapeInvalid===true;const h=u===true||l===true;const d=r.escapeInvalid===true?"\\":"";let p="";if(t.isOpen===true){return d+t.value}if(t.isClose===true){console.log("node.isClose",d,t.value);return d+t.value}if(t.type==="open"){return h?d+t.value:"("}if(t.type==="close"){return h?d+t.value:")"}if(t.type==="comma"){return t.prev.type==="comma"?"":h?t.value:"|"}if(t.value){return t.value}if(t.nodes&&t.ranges>0){const i=a.reduce(t.nodes);const u=o(...i,{...r,wrap:false,toRegex:true,strictZeros:true});if(u.length!==0){return i.length>1&&u.length>1?`(${u})`:u}}if(t.nodes){for(const r of t.nodes){p+=walk(r,t)}}return p};return walk(t)};t.exports=compile},8774:t=>{t.exports={MAX_LENGTH:1e4,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:(t,r,i)=>{const o=i(6330);const a=i(8750);const u=i(5207);const append=(t="",r="",i=false)=>{const o=[];t=[].concat(t);r=[].concat(r);if(!r.length)return t;if(!t.length){return i?u.flatten(r).map((t=>`{${t}}`)):r}for(const a of t){if(Array.isArray(a)){for(const t of a){o.push(append(t,r,i))}}else{for(let t of r){if(i===true&&typeof t==="string")t=`{${t}}`;o.push(Array.isArray(t)?append(a,t,i):a+t)}}}return u.flatten(o)};const expand=(t,r={})=>{const i=r.rangeLimit===undefined?1e3:r.rangeLimit;const walk=(t,l={})=>{t.queue=[];let h=l;let d=l.queue;while(h.type!=="brace"&&h.type!=="root"&&h.parent){h=h.parent;d=h.queue}if(t.invalid||t.dollar){d.push(append(d.pop(),a(t,r)));return}if(t.type==="brace"&&t.invalid!==true&&t.nodes.length===2){d.push(append(d.pop(),["{}"]));return}if(t.nodes&&t.ranges>0){const l=u.reduce(t.nodes);if(u.exceedsLimit(...l,r.step,i)){throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.")}let h=o(...l,r);if(h.length===0){h=a(t,r)}d.push(append(d.pop(),h));t.nodes=[];return}const p=u.encloseBrace(t);let g=t.queue;let y=t;while(y.type!=="brace"&&y.type!=="root"&&y.parent){y=y.parent;g=y.queue}for(let r=0;r<t.nodes.length;r++){const i=t.nodes[r];if(i.type==="comma"&&t.type==="brace"){if(r===1)g.push("");g.push("");continue}if(i.type==="close"){d.push(append(d.pop(),g,p));continue}if(i.value&&i.type!=="open"){g.push(append(g.pop(),i.value));continue}if(i.nodes){walk(i,t)}}return g};return u.flatten(walk(t))};t.exports=expand},6477:(t,r,i)=>{const o=i(8750);const{MAX_LENGTH:a,CHAR_BACKSLASH:u,CHAR_BACKTICK:l,CHAR_COMMA:h,CHAR_DOT:d,CHAR_LEFT_PARENTHESES:p,CHAR_RIGHT_PARENTHESES:g,CHAR_LEFT_CURLY_BRACE:y,CHAR_RIGHT_CURLY_BRACE:b,CHAR_LEFT_SQUARE_BRACKET:w,CHAR_RIGHT_SQUARE_BRACKET:v,CHAR_DOUBLE_QUOTE:E,CHAR_SINGLE_QUOTE:A,CHAR_NO_BREAK_SPACE:_,CHAR_ZERO_WIDTH_NOBREAK_SPACE:C}=i(8774);const parse=(t,r={})=>{if(typeof t!=="string"){throw new TypeError("Expected a string")}const i=r||{};const S=typeof i.maxLength==="number"?Math.min(a,i.maxLength):a;if(t.length>S){throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${S})`)}const D={type:"root",input:t,nodes:[]};const x=[D];let O=D;let R=D;let k=0;const P=t.length;let T=0;let M=0;let L;const advance=()=>t[T++];const push=t=>{if(t.type==="text"&&R.type==="dot"){R.type="text"}if(R&&R.type==="text"&&t.type==="text"){R.value+=t.value;return}O.nodes.push(t);t.parent=O;t.prev=R;R=t;return t};push({type:"bos"});while(T<P){O=x[x.length-1];L=advance();if(L===C||L===_){continue}if(L===u){push({type:"text",value:(r.keepEscaping?L:"")+advance()});continue}if(L===v){push({type:"text",value:"\\"+L});continue}if(L===w){k++;let t;while(T<P&&(t=advance())){L+=t;if(t===w){k++;continue}if(t===u){L+=advance();continue}if(t===v){k--;if(k===0){break}}}push({type:"text",value:L});continue}if(L===p){O=push({type:"paren",nodes:[]});x.push(O);push({type:"text",value:L});continue}if(L===g){if(O.type!=="paren"){push({type:"text",value:L});continue}O=x.pop();push({type:"text",value:L});O=x[x.length-1];continue}if(L===E||L===A||L===l){const t=L;let i;if(r.keepQuotes!==true){L=""}while(T<P&&(i=advance())){if(i===u){L+=i+advance();continue}if(i===t){if(r.keepQuotes===true)L+=i;break}L+=i}push({type:"text",value:L});continue}if(L===y){M++;const t=R.value&&R.value.slice(-1)==="$"||O.dollar===true;const r={type:"brace",open:true,close:false,dollar:t,depth:M,commas:0,ranges:0,nodes:[]};O=push(r);x.push(O);push({type:"open",value:L});continue}if(L===b){if(O.type!=="brace"){push({type:"text",value:L});continue}const t="close";O=x.pop();O.close=true;push({type:t,value:L});M--;O=x[x.length-1];continue}if(L===h&&M>0){if(O.ranges>0){O.ranges=0;const t=O.nodes.shift();O.nodes=[t,{type:"text",value:o(O)}]}push({type:"comma",value:L});O.commas++;continue}if(L===d&&M>0&&O.commas===0){const t=O.nodes;if(M===0||t.length===0){push({type:"text",value:L});continue}if(R.type==="dot"){O.range=[];R.value+=L;R.type="range";if(O.nodes.length!==3&&O.nodes.length!==5){O.invalid=true;O.ranges=0;R.type="text";continue}O.ranges++;O.args=[];continue}if(R.type==="range"){t.pop();const r=t[t.length-1];r.value+=R.value+L;R=r;O.ranges--;continue}push({type:"dot",value:L});continue}push({type:"text",value:L})}do{O=x.pop();if(O.type!=="root"){O.nodes.forEach((t=>{if(!t.nodes){if(t.type==="open")t.isOpen=true;if(t.type==="close")t.isClose=true;if(!t.nodes)t.type="text";t.invalid=true}}));const t=x[x.length-1];const r=t.nodes.indexOf(O);t.nodes.splice(r,1,...O.nodes)}}while(x.length>0);push({type:"eos"});return D};t.exports=parse},8750:(t,r,i)=>{const o=i(5207);t.exports=(t,r={})=>{const stringify=(t,i={})=>{const a=r.escapeInvalid&&o.isInvalidBrace(i);const u=t.invalid===true&&r.escapeInvalid===true;let l="";if(t.value){if((a||u)&&o.isOpenOrClose(t)){return"\\"+t.value}return t.value}if(t.value){return t.value}if(t.nodes){for(const r of t.nodes){l+=stringify(r)}}return l};return stringify(t)}},5207:(t,r)=>{r.isInteger=t=>{if(typeof t==="number"){return Number.isInteger(t)}if(typeof t==="string"&&t.trim()!==""){return Number.isInteger(Number(t))}return false};r.find=(t,r)=>t.nodes.find((t=>t.type===r));r.exceedsLimit=(t,i,o=1,a)=>{if(a===false)return false;if(!r.isInteger(t)||!r.isInteger(i))return false;return(Number(i)-Number(t))/Number(o)>=a};r.escapeNode=(t,r=0,i)=>{const o=t.nodes[r];if(!o)return;if(i&&o.type===i||o.type==="open"||o.type==="close"){if(o.escaped!==true){o.value="\\"+o.value;o.escaped=true}}};r.encloseBrace=t=>{if(t.type!=="brace")return false;if(t.commas>>0+t.ranges>>0===0){t.invalid=true;return true}return false};r.isInvalidBrace=t=>{if(t.type!=="brace")return false;if(t.invalid===true||t.dollar)return true;if(t.commas>>0+t.ranges>>0===0){t.invalid=true;return true}if(t.open!==true||t.close!==true){t.invalid=true;return true}return false};r.isOpenOrClose=t=>{if(t.type==="open"||t.type==="close"){return true}return t.open===true||t.close===true};r.reduce=t=>t.reduce(((t,r)=>{if(r.type==="text")t.push(r.value);if(r.type==="range")r.type="text";return t}),[]);r.flatten=(...t)=>{const r=[];const flat=t=>{for(let i=0;i<t.length;i++){const o=t[i];if(Array.isArray(o)){flat(o);continue}if(o!==undefined){r.push(o)}}return r};flat(t);return r}},6330:(t,r,i)=>{
|
|
2
|
+
(()=>{var e={4971:(e,t,r)=>{"use strict";e=r.nmd(e);const n=r(2830);const wrapAnsi16=(e,t)=>function(){const r=e.apply(n,arguments);return`[${r+t}m`};const wrapAnsi256=(e,t)=>function(){const r=e.apply(n,arguments);return`[${38+t};5;${r}m`};const wrapAnsi16m=(e,t)=>function(){const r=e.apply(n,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 n=t[r];for(const r of Object.keys(n)){const s=n[r];t[r]={open:`[${s[0]}m`,close:`[${s[1]}m`};n[r]=t[r];e.set(s[0],s[1])}Object.defineProperty(t,r,{value:n,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="[39m";t.bgColor.close="[49m";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(n)){if(typeof n[e]!=="object"){continue}const r=n[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})},6870:(e,t,r)=>{"use strict";const n=r(5978);const s=r(4971);const i=r(1851).stdout;const o=r(6094);const a=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm");const u=["ansi","ansi","ansi256","ansi16m"];const l=new Set(["gray"]);const c=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){s.blue.open="[94m"}for(const e of Object.keys(s)){s[e].closeRe=new RegExp(n(s[e].close),"g");c[e]={get(){const t=s[e];return build.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}}}c.visible={get(){return build.call(this,this._styles||[],true,"visible")}};s.color.closeRe=new RegExp(n(s.color.close),"g");for(const e of Object.keys(s.color.ansi)){if(l.has(e)){continue}c[e]={get(){const t=this.level;return function(){const r=s.color[u[t]][e].apply(null,arguments);const n={open:r,close:s.color.close,closeRe:s.color.closeRe};return build.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}}}s.bgColor.closeRe=new RegExp(n(s.bgColor.close),"g");for(const e of Object.keys(s.bgColor.ansi)){if(l.has(e)){continue}const t="bg"+e[0].toUpperCase()+e.slice(1);c[t]={get(){const t=this.level;return function(){const r=s.bgColor[u[t]][e].apply(null,arguments);const n={open:r,close:s.bgColor.close,closeRe:s.bgColor.closeRe};return build.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}}}const f=Object.defineProperties((()=>{}),c);function build(e,t,r){const builder=function(){return applyStyle.apply(builder,arguments)};builder._styles=e;builder._empty=t;const n=this;Object.defineProperty(builder,"level",{enumerable:true,get(){return n.level},set(e){n.level=e}});Object.defineProperty(builder,"enabled",{enumerable:true,get(){return n.enabled},set(e){n.enabled=e}});builder.hasGrey=this.hasGrey||r==="gray"||r==="grey";builder.__proto__=f;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 n=1;n<t;n++){r+=" "+e[n]}}if(!this.enabled||this.level<=0||!r){return this._empty?"":r}const n=s.dim.open;if(a&&this.hasGrey){s.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}`)}s.dim.open=n;return r}function chalkTag(e,t){if(!Array.isArray(t)){return[].slice.call(arguments,1).join(" ")}const r=[].slice.call(arguments,2);const n=[t.raw[0]];for(let e=1;e<t.length;e++){n.push(String(r[e-1]).replace(/[{}\\]/g,"\\$&"));n.push(String(t.raw[e]))}return o(e,n.join(""))}Object.defineProperties(Chalk.prototype,c);e.exports=Chalk();e.exports.supportsColor=i;e.exports["default"]=e.exports},6094: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 n=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;const s=/\\(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(n)){r.push(o[2].replace(s,((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 n;while((n=r.exec(e))!==null){const e=n[1];if(n[2]){const r=parseArguments(e,n[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 n=e;for(const e of Object.keys(r)){if(Array.isArray(r[e])){if(!(e in n)){throw new Error(`Unknown Chalk style: ${e}`)}if(r[e].length>0){n=n[e].apply(n,r[e])}else{n=n[e]}}}return n}e.exports=(e,r)=>{const n=[];const s=[];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=[];s.push(n.length===0?t:buildStyle(e,n)(t));n.push({inverse:o,styles:parseStyle(a)})}else if(u){if(n.length===0){throw new Error("Found extraneous } in Chalk template literal")}s.push(buildStyle(e,n)(i.join("")));i=[];n.pop()}else{i.push(l)}}));s.push(i.join(""));if(n.length>0){const e=`Chalk template literal is missing ${n.length} closing bracket${n.length===1?"":"s"} (\`}\`)`;throw new Error(e)}return s.join("")}},5978:e=>{"use strict";var t=/[|\\{}()[\]^$+*?.]/g;e.exports=function(e){if(typeof e!=="string"){throw new TypeError("Expected a string")}return e.replace(t,"\\$&")}},6966:e=>{"use strict";e.exports=(e,t)=>{t=t||process.argv;const r=e.startsWith("-")?"":e.length===1?"-":"--";const n=t.indexOf(r+e);const s=t.indexOf("--");return n!==-1&&(s===-1?true:n<s)}},1851:(e,t,r)=>{"use strict";const n=r(2037);const s=r(6966);const i=process.env;let o;if(s("no-color")||s("no-colors")||s("color=false")){o=false}else if(s("color")||s("colors")||s("color=true")||s("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(s("color=16m")||s("color=full")||s("color=truecolor")){return 3}if(s("color=256")){return 2}if(e&&!e.isTTY&&o!==true){return 0}const t=o?1:0;if(process.platform==="win32"){const e=n.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)}},5642:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const s=n(r(7987));function spawnAsync(e,t,r={}){const n=new Error;const i=n.stack?n.stack.replace(/^.*/," ..."):null;let o;let a=new Promise(((n,a)=>{let{ignoreStdio:u,...l}=r;o=(0,s.default)(e,t,l);let c="";let f="";if(!u){if(o.stdout){o.stdout.on("data",(e=>{c+=e}))}if(o.stderr){o.stderr.on("data",(e=>{f+=e}))}}let completionListener=(r,s)=>{o.removeListener("error",errorListener);let u={pid:o.pid,output:[c,f],stdout:c,stderr:f,status:r,signal:s};if(r!==0){let n=t&&t.length>0?` ${t.join(" ")}`:"";let o=s?new Error(`${e}${n} exited with signal: ${s}`):new Error(`${e}${n} exited with non-zero code: ${r}`);if(o.stack&&i){o.stack+=`\n${i}`}Object.assign(o,u);a(o)}else{n(u)}};let errorListener=e=>{if(u){o.removeListener("exit",completionListener)}else{o.removeListener("close",completionListener)}Object.assign(e,{pid:o.pid,output:[c,f],stdout:c,stderr:f,status:null,signal:null});a(e)};if(u){o.once("exit",completionListener)}else{o.once("close",completionListener)}o.once("error",errorListener)}));a.child=o;return a}e.exports=spawnAsync},3741:(e,t,r)=>{"use strict";e=r.nmd(e);const wrapAnsi16=(e,t)=>(...r)=>{const n=e(...r);return`[${n+t}m`};const wrapAnsi256=(e,t)=>(...r)=>{const n=e(...r);return`[${38+t};5;${n}m`};const wrapAnsi16m=(e,t)=>(...r)=>{const n=e(...r);return`[${38+t};2;${n[0]};${n[1]};${n[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 n=r();Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true});return n},enumerable:true,configurable:true})};let n;const makeDynamicStyles=(e,t,s,i)=>{if(n===undefined){n=r(1593)}const o=i?10:0;const a={};for(const[r,i]of Object.entries(n)){const n=r==="ansi16"?"ansi":r;if(r===t){a[n]=e(s,o)}else if(typeof i==="object"){a[n]=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,n]of Object.entries(t)){for(const[r,s]of Object.entries(n)){t[r]={open:`[${s[0]}m`,close:`[${s[1]}m`};n[r]=t[r];e.set(s[0],s[1])}Object.defineProperty(t,r,{value:n,enumerable:false})}Object.defineProperty(t,"codes",{value:e,enumerable:false});t.color.close="[39m";t.bgColor.close="[49m";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})},7606:(e,t,r)=>{const n=r(9407);const s={};for(const e of Object.keys(n)){s[n[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 n=e[2]/255;const s=Math.min(t,r,n);const i=Math.max(t,r,n);const o=i-s;let a;let u;if(i===s){a=0}else if(t===i){a=(r-n)/o}else if(r===i){a=2+(n-t)/o}else if(n===i){a=4+(t-r)/o}a=Math.min(a*60,360);if(a<0){a+=360}const l=(s+i)/2;if(i===s){u=0}else if(l<=.5){u=o/(i+s)}else{u=o/(2-i-s)}return[a,u*100,l*100]};i.rgb.hsv=function(e){let t;let r;let n;let s;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 c=l-Math.min(o,a,u);const diffc=function(e){return(l-e)/6/c+1/2};if(c===0){s=0;i=0}else{i=c/l;t=diffc(o);r=diffc(a);n=diffc(u);if(o===l){s=n-r}else if(a===l){s=1/3+t-n}else if(u===l){s=2/3+r-t}if(s<0){s+=1}else if(s>1){s-=1}}return[s*360,i*100,l*100]};i.rgb.hwb=function(e){const t=e[0];const r=e[1];let n=e[2];const s=i.rgb.hsl(e)[0];const o=1/255*Math.min(t,Math.min(r,n));n=1-1/255*Math.max(t,Math.max(r,n));return[s,o*100,n*100]};i.rgb.cmyk=function(e){const t=e[0]/255;const r=e[1]/255;const n=e[2]/255;const s=Math.min(1-t,1-r,1-n);const i=(1-t-s)/(1-s)||0;const o=(1-r-s)/(1-s)||0;const a=(1-n-s)/(1-s)||0;return[i*100,o*100,a*100,s*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=s[e];if(t){return t}let r=Infinity;let i;for(const t of Object.keys(n)){const s=n[t];const o=comparativeDistance(e,s);if(o<r){r=o;i=t}}return i};i.keyword.rgb=function(e){return n[e]};i.rgb.xyz=function(e){let t=e[0]/255;let r=e[1]/255;let n=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;n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;const s=t*.4124+r*.3576+n*.1805;const i=t*.2126+r*.7152+n*.0722;const o=t*.0193+r*.1192+n*.9505;return[s*100,i*100,o*100]};i.rgb.lab=function(e){const t=i.rgb.xyz(e);let r=t[0];let n=t[1];let s=t[2];r/=95.047;n/=100;s/=108.883;r=r>.008856?r**(1/3):7.787*r+16/116;n=n>.008856?n**(1/3):7.787*n+16/116;s=s>.008856?s**(1/3):7.787*s+16/116;const o=116*n-16;const a=500*(r-n);const u=200*(n-s);return[o,a,u]};i.hsl.rgb=function(e){const t=e[0]/360;const r=e[1]/100;const n=e[2]/100;let s;let i;let o;if(r===0){o=n*255;return[o,o,o]}if(n<.5){s=n*(1+r)}else{s=n+r-n*r}const a=2*n-s;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+(s-a)*6*i}else if(2*i<1){o=s}else if(3*i<2){o=a+(s-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 n=e[2]/100;let s=r;const i=Math.max(n,.01);n*=2;r*=n<=1?n:2-n;s*=i<=1?i:2-i;const o=(n+r)/2;const a=n===0?2*s/(i+s):2*r/(n+r);return[t,a*100,o*100]};i.hsv.rgb=function(e){const t=e[0]/60;const r=e[1]/100;let n=e[2]/100;const s=Math.floor(t)%6;const i=t-Math.floor(t);const o=255*n*(1-r);const a=255*n*(1-r*i);const u=255*n*(1-r*(1-i));n*=255;switch(s){case 0:return[n,u,o];case 1:return[a,n,o];case 2:return[o,n,u];case 3:return[o,a,n];case 4:return[u,o,n];case 5:return[n,o,a]}};i.hsv.hsl=function(e){const t=e[0];const r=e[1]/100;const n=e[2]/100;const s=Math.max(n,.01);let i;let o;o=(2-r)*n;const a=(2-r)*s;i=r*s;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 n=e[2]/100;const s=r+n;let i;if(s>1){r/=s;n/=s}const o=Math.floor(6*t);const a=1-n;i=6*t-o;if((o&1)!==0){i=1-i}const u=r+i*(a-r);let l;let c;let f;switch(o){default:case 6:case 0:l=a;c=u;f=r;break;case 1:l=u;c=a;f=r;break;case 2:l=r;c=a;f=u;break;case 3:l=r;c=u;f=a;break;case 4:l=u;c=r;f=a;break;case 5:l=a;c=r;f=u;break}return[l*255,c*255,f*255]};i.cmyk.rgb=function(e){const t=e[0]/100;const r=e[1]/100;const n=e[2]/100;const s=e[3]/100;const i=1-Math.min(1,t*(1-s)+s);const o=1-Math.min(1,r*(1-s)+s);const a=1-Math.min(1,n*(1-s)+s);return[i*255,o*255,a*255]};i.xyz.rgb=function(e){const t=e[0]/100;const r=e[1]/100;const n=e[2]/100;let s;let i;let o;s=t*3.2406+r*-1.5372+n*-.4986;i=t*-.9689+r*1.8758+n*.0415;o=t*.0557+r*-.204+n*1.057;s=s>.0031308?1.055*s**(1/2.4)-.055:s*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;s=Math.min(Math.max(0,s),1);i=Math.min(Math.max(0,i),1);o=Math.min(Math.max(0,o),1);return[s*255,i*255,o*255]};i.xyz.lab=function(e){let t=e[0];let r=e[1];let n=e[2];t/=95.047;r/=100;n/=108.883;t=t>.008856?t**(1/3):7.787*t+16/116;r=r>.008856?r**(1/3):7.787*r+16/116;n=n>.008856?n**(1/3):7.787*n+16/116;const s=116*r-16;const i=500*(t-r);const o=200*(r-n);return[s,i,o]};i.lab.xyz=function(e){const t=e[0];const r=e[1];const n=e[2];let s;let i;let o;i=(t+16)/116;s=r/500+i;o=i-n/200;const a=i**3;const u=s**3;const l=o**3;i=a>.008856?a:(i-16/116)/7.787;s=u>.008856?u:(s-16/116)/7.787;o=l>.008856?l:(o-16/116)/7.787;s*=95.047;i*=100;o*=108.883;return[s,i,o]};i.lab.lch=function(e){const t=e[0];const r=e[1];const n=e[2];let s;const i=Math.atan2(n,r);s=i*360/2/Math.PI;if(s<0){s+=360}const o=Math.sqrt(r*r+n*n);return[t,o,s]};i.lch.lab=function(e){const t=e[0];const r=e[1];const n=e[2];const s=n/360*2*Math.PI;const i=r*Math.cos(s);const o=r*Math.sin(s);return[t,i,o]};i.rgb.ansi16=function(e,t=null){const[r,n,s]=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(s/255)<<2|Math.round(n/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 n=e[2];if(t===r&&r===n){if(t<8){return 16}if(t>248){return 231}return Math.round((t-8)/247*24)+232}const s=16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return s};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 n=(t&1)*r*255;const s=(t>>1&1)*r*255;const i=(t>>2&1)*r*255;return[n,s,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 n=Math.floor((t=e%36)/6)/5*255;const s=t%6/5*255;return[r,n,s]};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 n=parseInt(r,16);const s=n>>16&255;const i=n>>8&255;const o=n&255;return[s,i,o]};i.rgb.hcg=function(e){const t=e[0]/255;const r=e[1]/255;const n=e[2]/255;const s=Math.max(Math.max(t,r),n);const i=Math.min(Math.min(t,r),n);const o=s-i;let a;let u;if(o<1){a=i/(1-o)}else{a=0}if(o<=0){u=0}else if(s===t){u=(r-n)/o%6}else if(s===r){u=2+(n-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 n=r<.5?2*t*r:2*t*(1-r);let s=0;if(n<1){s=(r-.5*n)/(1-n)}return[e[0],n*100,s*100]};i.hsv.hcg=function(e){const t=e[1]/100;const r=e[2]/100;const n=t*r;let s=0;if(n<1){s=(r-n)/(1-n)}return[e[0],n*100,s*100]};i.hcg.rgb=function(e){const t=e[0]/360;const r=e[1]/100;const n=e[2]/100;if(r===0){return[n*255,n*255,n*255]}const s=[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:s[0]=1;s[1]=o;s[2]=0;break;case 1:s[0]=a;s[1]=1;s[2]=0;break;case 2:s[0]=0;s[1]=1;s[2]=o;break;case 3:s[0]=0;s[1]=a;s[2]=1;break;case 4:s[0]=o;s[1]=0;s[2]=1;break;default:s[0]=1;s[1]=0;s[2]=a}u=(1-r)*n;return[(r*s[0]+u)*255,(r*s[1]+u)*255,(r*s[2]+u)*255]};i.hcg.hsv=function(e){const t=e[1]/100;const r=e[2]/100;const n=t+r*(1-t);let s=0;if(n>0){s=t/n}return[e[0],s*100,n*100]};i.hcg.hsl=function(e){const t=e[1]/100;const r=e[2]/100;const n=r*(1-t)+.5*t;let s=0;if(n>0&&n<.5){s=t/(2*n)}else if(n>=.5&&n<1){s=t/(2*(1-n))}return[e[0],s*100,n*100]};i.hcg.hwb=function(e){const t=e[1]/100;const r=e[2]/100;const n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};i.hwb.hcg=function(e){const t=e[1]/100;const r=e[2]/100;const n=1-r;const s=n-t;let i=0;if(s<1){i=(n-s)/(1-s)}return[e[0],s*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 n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};i.rgb.gray=function(e){const t=(e[0]+e[1]+e[2])/3;return[t/255*100]}},1593:(e,t,r)=>{const n=r(7606);const s=r(1529);const i={};const o=Object.keys(n);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 n=e(t);if(typeof n==="object"){for(let e=n.length,t=0;t<e;t++){n[t]=Math.round(n[t])}}return n};if("conversion"in e){wrappedFn.conversion=e.conversion}return wrappedFn}o.forEach((e=>{i[e]={};Object.defineProperty(i[e],"channels",{value:n[e].channels});Object.defineProperty(i[e],"labels",{value:n[e].labels});const t=s(e);const r=Object.keys(t);r.forEach((r=>{const n=t[r];i[e][r]=wrapRounded(n);i[e][r].raw=wrapRaw(n)}))}));e.exports=i},1529:(e,t,r)=>{const n=r(7606);function buildGraph(){const e={};const t=Object.keys(n);for(let r=t.length,n=0;n<r;n++){e[t[n]]={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 s=Object.keys(n[e]);for(let n=s.length,i=0;i<n;i++){const n=s[i];const o=t[n];if(o.distance===-1){o.distance=t[e].distance+1;o.parent=e;r.unshift(n)}}}return t}function link(e,t){return function(r){return t(e(r))}}function wrapConversion(e,t){const r=[t[e].parent,e];let s=n[t[e].parent][e];let i=t[e].parent;while(t[i].parent){r.unshift(t[i].parent);s=link(n[t[i].parent][i],s);i=t[i].parent}s.conversion=r;return s}e.exports=function(e){const t=deriveBFS(e);const r={};const n=Object.keys(t);for(let e=n.length,s=0;s<e;s++){const e=n[s];const i=t[e];if(i.parent===null){continue}r[e]=wrapConversion(e,t)}return r}},4816:e=>{const t=Symbol("arg flag");class ArgError extends Error{constructor(e,t){super(e);this.name="ArgError";this.code=t;Object.setPrototypeOf(this,ArgError.prototype)}}function arg(e,{argv:r=process.argv.slice(2),permissive:n=false,stopAtPositional:s=false}={}){if(!e){throw new ArgError("argument specification object is required","ARG_CONFIG_NO_SPEC")}const i={_:[]};const o={};const a={};for(const r of Object.keys(e)){if(!r){throw new ArgError("argument key cannot be an empty string","ARG_CONFIG_EMPTY_KEY")}if(r[0]!=="-"){throw new ArgError(`argument key must start with '-' but found: '${r}'`,"ARG_CONFIG_NONOPT_KEY")}if(r.length===1){throw new ArgError(`argument key must have a name; singular '-' keys are not allowed: ${r}`,"ARG_CONFIG_NONAME_KEY")}if(typeof e[r]==="string"){o[r]=e[r];continue}let n=e[r];let s=false;if(Array.isArray(n)&&n.length===1&&typeof n[0]==="function"){const[e]=n;n=(t,r,n=[])=>{n.push(e(t,r,n[n.length-1]));return n};s=e===Boolean||e[t]===true}else if(typeof n==="function"){s=n===Boolean||n[t]===true}else{throw new ArgError(`type missing or not a function or valid array type: ${r}`,"ARG_CONFIG_VAD_TYPE")}if(r[1]!=="-"&&r.length>2){throw new ArgError(`short argument keys (with a single hyphen) must have only one character: ${r}`,"ARG_CONFIG_SHORTOPT_TOOLONG")}a[r]=[n,s]}for(let e=0,t=r.length;e<t;e++){const t=r[e];if(s&&i._.length>0){i._=i._.concat(r.slice(e));break}if(t==="--"){i._=i._.concat(r.slice(e+1));break}if(t.length>1&&t[0]==="-"){const s=t[1]==="-"||t.length===2?[t]:t.slice(1).split("").map((e=>`-${e}`));for(let t=0;t<s.length;t++){const u=s[t];const[l,c]=u[1]==="-"?u.split(/=(.*)/,2):[u,undefined];let f=l;while(f in o){f=o[f]}if(!(f in a)){if(n){i._.push(u);continue}else{throw new ArgError(`unknown or unexpected option: ${l}`,"ARG_UNKNOWN_OPTION")}}const[p,h]=a[f];if(!h&&t+1<s.length){throw new ArgError(`option requires argument (but was followed by another short argument): ${l}`,"ARG_MISSING_REQUIRED_SHORTARG")}if(h){i[f]=p(true,f,i[f])}else if(c===undefined){if(r.length<e+2||r[e+1].length>1&&r[e+1][0]==="-"&&!(r[e+1].match(/^-?\d*(\.(?=\d))?\d*$/)&&(p===Number||typeof BigInt!=="undefined"&&p===BigInt))){const e=l===f?"":` (alias for ${f})`;throw new ArgError(`option requires argument: ${l}${e}`,"ARG_MISSING_REQUIRED_LONGARG")}i[f]=p(r[e+1],f,i[f]);++e}else{i[f]=p(c,f,i[f])}}}else{i._.push(t)}}return i}arg.flag=e=>{e[t]=true;return e};arg.COUNT=arg.flag(((e,t,r)=>(r||0)+1));arg.ArgError=ArgError;e.exports=arg},8746:(e,t,r)=>{"use strict";const n=r(3741);const{stdout:s,stderr:i}=r(395);const{stringReplaceAll:o,stringEncaseCRLFWithFirstIndex:a}=r(5611);const{isArray:u}=Array;const l=["ansi","ansi","ansi256","ansi16m"];const c=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=s?s.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(n)){c[e]={get(){const r=createBuilder(this,createStyler(t.open,t.close,this._styler),this._isEmpty);Object.defineProperty(this,e,{value:r});return r}}}c.visible={get(){const e=createBuilder(this,this._styler,true);Object.defineProperty(this,"visible",{value:e});return e}};const f=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const e of f){c[e]={get(){const{level:t}=this;return function(...r){const s=createStyler(n.color[l[t]][e](...r),n.color.close,this._styler);return createBuilder(this,s,this._isEmpty)}}}}for(const e of f){const t="bg"+e[0].toUpperCase()+e.slice(1);c[t]={get(){const{level:t}=this;return function(...r){const s=createStyler(n.bgColor[l[t]][e](...r),n.bgColor.close,this._styler);return createBuilder(this,s,this._isEmpty)}}}}const p=Object.defineProperties((()=>{}),{...c,level:{enumerable:true,get(){return this._generator.level},set(e){this._generator.level=e}}});const createStyler=(e,t,r)=>{let n;let s;if(r===undefined){n=e;s=t}else{n=r.openAll+e;s=t+r.closeAll}return{open:e,close:t,openAll:n,closeAll:s,parent:r}};const createBuilder=(e,t,r)=>{const builder=(...e)=>{if(u(e[0])&&u(e[0].raw)){return applyStyle(builder,chalkTag(builder,...e))}return 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:n,closeAll:s}=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,s,n,i)}return n+t+s};let h;const chalkTag=(e,...t)=>{const[n]=t;if(!u(n)||!u(n.raw)){return t.join(" ")}const s=t.slice(1);const i=[n.raw[0]];for(let e=1;e<n.length;e++){i.push(String(s[e-1]).replace(/[{}\\]/g,"\\$&"),String(n.raw[e]))}if(h===undefined){h=r(2746)}return h(e,i.join(""))};Object.defineProperties(Chalk.prototype,c);const d=Chalk();d.supportsColor=s;d.stderr=Chalk({level:i?i.level:0});d.stderr.supportsColor=i;e.exports=d},2746: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 n=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;const s=/\\(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(n)){r.push(o[2].replace(s,((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 n;while((n=r.exec(e))!==null){const e=n[1];if(n[2]){const r=parseArguments(e,n[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 n=e;for(const[e,t]of Object.entries(r)){if(!Array.isArray(t)){continue}if(!(e in n)){throw new Error(`Unknown Chalk style: ${e}`)}n=t.length>0?n[e](...t):n[e]}return n}e.exports=(e,r)=>{const n=[];const s=[];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=[];s.push(n.length===0?t:buildStyle(e,n)(t));n.push({inverse:o,styles:parseStyle(a)})}else if(u){if(n.length===0){throw new Error("Found extraneous } in Chalk template literal")}s.push(buildStyle(e,n)(i.join("")));i=[];n.pop()}else{i.push(l)}}));s.push(i.join(""));if(n.length>0){const e=`Chalk template literal is missing ${n.length} closing bracket${n.length===1?"":"s"} (\`}\`)`;throw new Error(e)}return s.join("")}},5611:e=>{"use strict";const stringReplaceAll=(e,t,r)=>{let n=e.indexOf(t);if(n===-1){return e}const s=t.length;let i=0;let o="";do{o+=e.substr(i,n-i)+t+r;i=n+s;n=e.indexOf(t,i)}while(n!==-1);o+=e.substr(i);return o};const stringEncaseCRLFWithFirstIndex=(e,t,r,n)=>{let s=0;let i="";do{const o=e[n-1]==="\r";i+=e.substr(s,(o?n-1:n)-s)+t+(o?"\r\n":"\n")+r;s=n+1;n=e.indexOf("\n",s)}while(n!==-1);i+=e.substr(s);return i};e.exports={stringReplaceAll:stringReplaceAll,stringEncaseCRLFWithFirstIndex:stringEncaseCRLFWithFirstIndex}},9598:(e,t,r)=>{var n=r(9120);var s={};for(var i in n){if(n.hasOwnProperty(i)){s[n[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 n=e[2]/255;var s=Math.min(t,r,n);var i=Math.max(t,r,n);var o=i-s;var a;var u;var l;if(i===s){a=0}else if(t===i){a=(r-n)/o}else if(r===i){a=2+(n-t)/o}else if(n===i){a=4+(t-r)/o}a=Math.min(a*60,360);if(a<0){a+=360}l=(s+i)/2;if(i===s){u=0}else if(l<=.5){u=o/(i+s)}else{u=o/(2-i-s)}return[a,u*100,l*100]};o.rgb.hsv=function(e){var t;var r;var n;var s;var i;var o=e[0]/255;var a=e[1]/255;var u=e[2]/255;var l=Math.max(o,a,u);var c=l-Math.min(o,a,u);var diffc=function(e){return(l-e)/6/c+1/2};if(c===0){s=i=0}else{i=c/l;t=diffc(o);r=diffc(a);n=diffc(u);if(o===l){s=n-r}else if(a===l){s=1/3+t-n}else if(u===l){s=2/3+r-t}if(s<0){s+=1}else if(s>1){s-=1}}return[s*360,i*100,l*100]};o.rgb.hwb=function(e){var t=e[0];var r=e[1];var n=e[2];var s=o.rgb.hsl(e)[0];var i=1/255*Math.min(t,Math.min(r,n));n=1-1/255*Math.max(t,Math.max(r,n));return[s,i*100,n*100]};o.rgb.cmyk=function(e){var t=e[0]/255;var r=e[1]/255;var n=e[2]/255;var s;var i;var o;var a;a=Math.min(1-t,1-r,1-n);s=(1-t-a)/(1-a)||0;i=(1-r-a)/(1-a)||0;o=(1-n-a)/(1-a)||0;return[s*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=s[e];if(t){return t}var r=Infinity;var i;for(var o in n){if(n.hasOwnProperty(o)){var a=n[o];var u=comparativeDistance(e,a);if(u<r){r=u;i=o}}}return i};o.keyword.rgb=function(e){return n[e]};o.rgb.xyz=function(e){var t=e[0]/255;var r=e[1]/255;var n=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;n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var s=t*.4124+r*.3576+n*.1805;var i=t*.2126+r*.7152+n*.0722;var o=t*.0193+r*.1192+n*.9505;return[s*100,i*100,o*100]};o.rgb.lab=function(e){var t=o.rgb.xyz(e);var r=t[0];var n=t[1];var s=t[2];var i;var a;var u;r/=95.047;n/=100;s/=108.883;r=r>.008856?Math.pow(r,1/3):7.787*r+16/116;n=n>.008856?Math.pow(n,1/3):7.787*n+16/116;s=s>.008856?Math.pow(s,1/3):7.787*s+16/116;i=116*n-16;a=500*(r-n);u=200*(n-s);return[i,a,u]};o.hsl.rgb=function(e){var t=e[0]/360;var r=e[1]/100;var n=e[2]/100;var s;var i;var o;var a;var u;if(r===0){u=n*255;return[u,u,u]}if(n<.5){i=n*(1+r)}else{i=n+r-n*r}s=2*n-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=s+(i-s)*6*o}else if(2*o<1){u=i}else if(3*o<2){u=s+(i-s)*(2/3-o)*6}else{u=s}a[l]=u*255}return a};o.hsl.hsv=function(e){var t=e[0];var r=e[1]/100;var n=e[2]/100;var s=r;var i=Math.max(n,.01);var o;var a;n*=2;r*=n<=1?n:2-n;s*=i<=1?i:2-i;a=(n+r)/2;o=n===0?2*s/(i+s):2*r/(n+r);return[t,o*100,a*100]};o.hsv.rgb=function(e){var t=e[0]/60;var r=e[1]/100;var n=e[2]/100;var s=Math.floor(t)%6;var i=t-Math.floor(t);var o=255*n*(1-r);var a=255*n*(1-r*i);var u=255*n*(1-r*(1-i));n*=255;switch(s){case 0:return[n,u,o];case 1:return[a,n,o];case 2:return[o,n,u];case 3:return[o,a,n];case 4:return[u,o,n];case 5:return[n,o,a]}};o.hsv.hsl=function(e){var t=e[0];var r=e[1]/100;var n=e[2]/100;var s=Math.max(n,.01);var i;var o;var a;a=(2-r)*n;i=(2-r)*s;o=r*s;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 n=e[2]/100;var s=r+n;var i;var o;var a;var u;if(s>1){r/=s;n/=s}i=Math.floor(6*t);o=1-n;a=6*t-i;if((i&1)!==0){a=1-a}u=r+a*(o-r);var l;var c;var f;switch(i){default:case 6:case 0:l=o;c=u;f=r;break;case 1:l=u;c=o;f=r;break;case 2:l=r;c=o;f=u;break;case 3:l=r;c=u;f=o;break;case 4:l=u;c=r;f=o;break;case 5:l=o;c=r;f=u;break}return[l*255,c*255,f*255]};o.cmyk.rgb=function(e){var t=e[0]/100;var r=e[1]/100;var n=e[2]/100;var s=e[3]/100;var i;var o;var a;i=1-Math.min(1,t*(1-s)+s);o=1-Math.min(1,r*(1-s)+s);a=1-Math.min(1,n*(1-s)+s);return[i*255,o*255,a*255]};o.xyz.rgb=function(e){var t=e[0]/100;var r=e[1]/100;var n=e[2]/100;var s;var i;var o;s=t*3.2406+r*-1.5372+n*-.4986;i=t*-.9689+r*1.8758+n*.0415;o=t*.0557+r*-.204+n*1.057;s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*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;s=Math.min(Math.max(0,s),1);i=Math.min(Math.max(0,i),1);o=Math.min(Math.max(0,o),1);return[s*255,i*255,o*255]};o.xyz.lab=function(e){var t=e[0];var r=e[1];var n=e[2];var s;var i;var o;t/=95.047;r/=100;n/=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;n=n>.008856?Math.pow(n,1/3):7.787*n+16/116;s=116*r-16;i=500*(t-r);o=200*(r-n);return[s,i,o]};o.lab.xyz=function(e){var t=e[0];var r=e[1];var n=e[2];var s;var i;var o;i=(t+16)/116;s=r/500+i;o=i-n/200;var a=Math.pow(i,3);var u=Math.pow(s,3);var l=Math.pow(o,3);i=a>.008856?a:(i-16/116)/7.787;s=u>.008856?u:(s-16/116)/7.787;o=l>.008856?l:(o-16/116)/7.787;s*=95.047;i*=100;o*=108.883;return[s,i,o]};o.lab.lch=function(e){var t=e[0];var r=e[1];var n=e[2];var s;var i;var o;s=Math.atan2(n,r);i=s*360/2/Math.PI;if(i<0){i+=360}o=Math.sqrt(r*r+n*n);return[t,o,i]};o.lch.lab=function(e){var t=e[0];var r=e[1];var n=e[2];var s;var i;var o;o=n/360*2*Math.PI;s=r*Math.cos(o);i=r*Math.sin(o);return[t,s,i]};o.rgb.ansi16=function(e){var t=e[0];var r=e[1];var n=e[2];var s=1 in arguments?arguments[1]:o.rgb.hsv(e)[2];s=Math.round(s/50);if(s===0){return 30}var i=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));if(s===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 n=e[2];if(t===r&&r===n){if(t<8){return 16}if(t>248){return 231}return Math.round((t-8)/247*24)+232}var s=16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return s};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 n=(t&1)*r*255;var s=(t>>1&1)*r*255;var i=(t>>2&1)*r*255;return[n,s,i]};o.ansi256.rgb=function(e){if(e>=232){var t=(e-232)*10+8;return[t,t,t]}e-=16;var r;var n=Math.floor(e/36)/5*255;var s=Math.floor((r=e%36)/6)/5*255;var i=r%6/5*255;return[n,s,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 n=parseInt(r,16);var s=n>>16&255;var i=n>>8&255;var o=n&255;return[s,i,o]};o.rgb.hcg=function(e){var t=e[0]/255;var r=e[1]/255;var n=e[2]/255;var s=Math.max(Math.max(t,r),n);var i=Math.min(Math.min(t,r),n);var o=s-i;var a;var u;if(o<1){a=i/(1-o)}else{a=0}if(o<=0){u=0}else if(s===t){u=(r-n)/o%6}else if(s===r){u=2+(n-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 n=1;var s=0;if(r<.5){n=2*t*r}else{n=2*t*(1-r)}if(n<1){s=(r-.5*n)/(1-n)}return[e[0],n*100,s*100]};o.hsv.hcg=function(e){var t=e[1]/100;var r=e[2]/100;var n=t*r;var s=0;if(n<1){s=(r-n)/(1-n)}return[e[0],n*100,s*100]};o.hcg.rgb=function(e){var t=e[0]/360;var r=e[1]/100;var n=e[2]/100;if(r===0){return[n*255,n*255,n*255]}var s=[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:s[0]=1;s[1]=o;s[2]=0;break;case 1:s[0]=a;s[1]=1;s[2]=0;break;case 2:s[0]=0;s[1]=1;s[2]=o;break;case 3:s[0]=0;s[1]=a;s[2]=1;break;case 4:s[0]=o;s[1]=0;s[2]=1;break;default:s[0]=1;s[1]=0;s[2]=a}u=(1-r)*n;return[(r*s[0]+u)*255,(r*s[1]+u)*255,(r*s[2]+u)*255]};o.hcg.hsv=function(e){var t=e[1]/100;var r=e[2]/100;var n=t+r*(1-t);var s=0;if(n>0){s=t/n}return[e[0],s*100,n*100]};o.hcg.hsl=function(e){var t=e[1]/100;var r=e[2]/100;var n=r*(1-t)+.5*t;var s=0;if(n>0&&n<.5){s=t/(2*n)}else if(n>=.5&&n<1){s=t/(2*(1-n))}return[e[0],s*100,n*100]};o.hcg.hwb=function(e){var t=e[1]/100;var r=e[2]/100;var n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};o.hwb.hcg=function(e){var t=e[1]/100;var r=e[2]/100;var n=1-r;var s=n-t;var i=0;if(s<1){i=(n-s)/(1-s)}return[e[0],s*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 n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};o.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[t/255*100]}},2830:(e,t,r)=>{var n=r(9598);var s=r(5180);var i={};var o=Object.keys(n);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 n=r.length,s=0;s<n;s++){r[s]=Math.round(r[s])}}return r};if("conversion"in e){wrappedFn.conversion=e.conversion}return wrappedFn}o.forEach((function(e){i[e]={};Object.defineProperty(i[e],"channels",{value:n[e].channels});Object.defineProperty(i[e],"labels",{value:n[e].labels});var t=s(e);var r=Object.keys(t);r.forEach((function(r){var n=t[r];i[e][r]=wrapRounded(n);i[e][r].raw=wrapRaw(n)}))}));e.exports=i},9120: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]}},5180:(e,t,r)=>{var n=r(9598);function buildGraph(){var e={};var t=Object.keys(n);for(var r=t.length,s=0;s<r;s++){e[t[s]]={distance:-1,parent:null}}return e}function deriveBFS(e){var t=buildGraph();var r=[e];t[e].distance=0;while(r.length){var s=r.pop();var i=Object.keys(n[s]);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[s].distance+1;l.parent=s;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 s=n[t[e].parent][e];var i=t[e].parent;while(t[i].parent){r.unshift(t[i].parent);s=link(n[t[i].parent][i],s);i=t[i].parent}s.conversion=r;return s}e.exports=function(e){var t=deriveBFS(e);var r={};var n=Object.keys(t);for(var s=n.length,i=0;i<s;i++){var o=n[i];var a=t[o];if(a.parent===null){continue}r[o]=wrapConversion(o,t)}return r}},9407: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]}},7987:(e,t,r)=>{"use strict";const n=r(2081);const s=r(1655);const i=r(9738);function spawn(e,t,r){const o=s(e,t,r);const a=n.spawn(o.command,o.args,o.options);i.hookChildProcess(a,o);return a}function spawnSync(e,t,r){const o=s(e,t,r);const a=n.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=s;e.exports._enoent=i},9738: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 n=e.emit;e.emit=function(t,s){if(t==="exit"){const t=verifyENOENT(s,r);if(t){return n.call(e,"error",t)}}return n.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}},1655:(e,t,r)=>{"use strict";const n=r(1017);const s=r(7534);const i=r(8902);const o=r(2964);const a=process.platform==="win32";const u=/\.(?:com|exe)$/i;const l=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function detectShebang(e){e.file=s(e);const t=e.file&&o(e.file);if(t){e.args.unshift(e.file);e.command=t;return s(e)}return e.file}function parseNonShell(e){if(!a){return e}const t=detectShebang(e);const r=!u.test(t);if(e.options.forceShell||r){const r=l.test(t);e.command=n.normalize(e.command);e.command=i.command(e.command);e.args=e.args.map((e=>i.argument(e,r)));const s=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${s}"`];e.command=process.env.comspec||"cmd.exe";e.options.windowsVerbatimArguments=true}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 n={command:e,args:t,options:r,file:undefined,original:{command:e,args:t}};return r.shell?n:parseNonShell(n)}e.exports=parse},8902: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(/(?=(\\+?)?)\1"/g,'$1$1\\"');e=e.replace(/(?=(\\+?)?)\1$/,"$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},2964:(e,t,r)=>{"use strict";const n=r(7147);const s=r(4970);function readShebang(e){const t=150;const r=Buffer.alloc(t);let i;try{i=n.openSync(e,"r");n.readSync(i,r,0,t,0);n.closeSync(i)}catch(e){}return s(r.toString())}e.exports=readShebang},7534:(e,t,r)=>{"use strict";const n=r(1017);const s=r(6362);const i=r(2170);function resolveCommandAttempt(e,t){const r=e.options.env||process.env;const o=process.cwd();const a=e.options.cwd!=null;const u=a&&process.chdir!==undefined&&!process.chdir.disabled;if(u){try{process.chdir(e.options.cwd)}catch(e){}}let l;try{l=s.sync(e.command,{path:r[i({env:r})],pathExt:t?n.delimiter:undefined})}catch(e){}finally{if(u){process.chdir(o)}}if(l){l=n.resolve(a?e.options.cwd:"",l)}return l}function resolveCommand(e){return resolveCommandAttempt(e)||resolveCommandAttempt(e,true)}e.exports=resolveCommand},6718:(e,t,r)=>{var n=r(7147);var s;if(process.platform==="win32"||global.TESTING_WINDOWS){s=r(6183)}else{s=r(9855)}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,n){isexe(e,t||{},(function(e,t){if(e){n(e)}else{r(t)}}))}))}s(e,t||{},(function(e,n){if(e){if(e.code==="EACCES"||t&&t.ignoreErrors){e=null;n=false}}r(e,n)}))}function sync(e,t){try{return s.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||e.code==="EACCES"){return false}else{throw e}}}},9855:(e,t,r)=>{e.exports=isexe;isexe.sync=sync;var n=r(7147);function isexe(e,t,r){n.stat(e,(function(e,n){r(e,e?false:checkStat(n,t))}))}function sync(e,t){return checkStat(n.statSync(e),t)}function checkStat(e,t){return e.isFile()&&checkMode(e,t)}function checkMode(e,t){var r=e.mode;var n=e.uid;var s=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 c=a|u;var f=r&l||r&u&&s===o||r&a&&n===i||r&c&&i===0;return f}},6183:(e,t,r)=>{e.exports=isexe;isexe.sync=sync;var n=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 n=0;n<r.length;n++){var s=r[n].toLowerCase();if(s&&e.substr(-s.length).toLowerCase()===s){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){n.stat(e,(function(n,s){r(n,n?false:checkStat(s,e,t))}))}function sync(e,t){return checkStat(n.statSync(e),e,t)}},6362:(e,t,r)=>{const n=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys";const s=r(1017);const i=n?";":":";const o=r(6718);const getNotFoundError=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"});const getPathInfo=(e,t)=>{const r=t.colon||i;const s=e.match(/\//)||n&&e.match(/\\/)?[""]:[...n?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)];const o=n?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"";const a=n?o.split(r):[""];if(n){if(e.indexOf(".")!==-1&&a[0]!=="")a.unshift("")}return{pathEnv:s,pathExt:a,pathExtExe:o}};const which=(e,t,r)=>{if(typeof t==="function"){r=t;t={}}if(!t)t={};const{pathEnv:n,pathExt:i,pathExtExe:a}=getPathInfo(e,t);const u=[];const step=r=>new Promise(((i,o)=>{if(r===n.length)return t.all&&u.length?i(u):o(getNotFoundError(e));const a=n[r];const l=/^".*"$/.test(a)?a.slice(1,-1):a;const c=s.join(l,e);const f=!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+c:c;i(subStep(f,r,0))}));const subStep=(e,r,n)=>new Promise(((s,l)=>{if(n===i.length)return s(step(r+1));const c=i[n];o(e+c,{pathExt:a},((i,o)=>{if(!i&&o){if(t.all)u.push(e+c);else return s(e+c)}return s(subStep(e,r,n+1))}))}));return r?step(0).then((e=>r(null,e)),r):step(0)};const whichSync=(e,t)=>{t=t||{};const{pathEnv:r,pathExt:n,pathExtExe:i}=getPathInfo(e,t);const a=[];for(let u=0;u<r.length;u++){const l=r[u];const c=/^".*"$/.test(l)?l.slice(1,-1):l;const f=s.join(c,e);const p=!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+f:f;for(let e=0;e<n.length;e++){const r=p+n[e];try{const e=o.sync(r,{pathExt:i});if(e){if(t.all)a.push(r);else return r}}catch(e){}}}if(t.all&&a.length)return a;if(t.nothrow)return null;throw getNotFoundError(e)};e.exports=which;which.sync=whichSync},9851:(e,t,r)=>{t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage=localstorage();t.destroy=(()=>{let e=false;return()=>{if(!e){e=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}let e;return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(t){t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0;let s=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{if(e==="%%"){return}n++;if(e==="%c"){s=n}}));t.splice(s,0,r)}t.log=console.debug||console.log||(()=>{});function save(e){try{if(e){t.storage.setItem("debug",e)}else{t.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=t.storage.getItem("debug")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=r(6033)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},6033:(e,t,r)=>{function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=r(40);createDebug.destroy=destroy;Object.keys(e).forEach((t=>{createDebug[t]=e[t]}));createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let t=0;for(let r=0;r<e.length;r++){t=(t<<5)-t+e.charCodeAt(r);t|=0}return createDebug.colors[Math.abs(t)%createDebug.colors.length]}createDebug.selectColor=selectColor;function createDebug(e){let t;let r=null;let n;let s;function debug(...e){if(!debug.enabled){return}const r=debug;const n=Number(new Date);const s=n-(t||n);r.diff=s;r.prev=t;r.curr=n;t=n;e[0]=createDebug.coerce(e[0]);if(typeof e[0]!=="string"){e.unshift("%O")}let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((t,n)=>{if(t==="%%"){return"%"}i++;const s=createDebug.formatters[n];if(typeof s==="function"){const n=e[i];t=s.call(r,n);e.splice(i,1);i--}return t}));createDebug.formatArgs.call(r,e);const o=r.log||createDebug.log;o.apply(r,e)}debug.namespace=e;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(e);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>{if(r!==null){return r}if(n!==createDebug.namespaces){n=createDebug.namespaces;s=createDebug.enabled(e)}return s},set:e=>{r=e}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(e,t){const r=createDebug(this.namespace+(typeof t==="undefined"?":":t)+e);r.log=this.log;return r}function enable(e){createDebug.save(e);createDebug.namespaces=e;createDebug.names=[];createDebug.skips=[];const t=(typeof e==="string"?e:"").trim().replace(" ",",").split(",").filter(Boolean);for(const e of t){if(e[0]==="-"){createDebug.skips.push(e.slice(1))}else{createDebug.names.push(e)}}}function matchesTemplate(e,t){let r=0;let n=0;let s=-1;let i=0;while(r<e.length){if(n<t.length&&(t[n]===e[r]||t[n]==="*")){if(t[n]==="*"){s=n;i=r;n++}else{r++;n++}}else if(s!==-1){n=s+1;i++;r=i}else{return false}}while(n<t.length&&t[n]==="*"){n++}return n===t.length}function disable(){const e=[...createDebug.names,...createDebug.skips.map((e=>"-"+e))].join(",");createDebug.enable("");return e}function enabled(e){for(const t of createDebug.skips){if(matchesTemplate(e,t)){return false}}for(const t of createDebug.names){if(matchesTemplate(e,t)){return true}}return false}function coerce(e){if(e instanceof Error){return e.stack||e.message}return e}function destroy(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}createDebug.enable(createDebug.load());return createDebug}e.exports=setup},7984:(e,t,r)=>{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=r(9851)}else{e.exports=r(3860)}},3860:(e,t,r)=>{const n=r(6224);const s=r(3837);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.destroy=s.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");t.colors=[6,2,3,4,5,1];try{const e=r(395);if(e&&(e.stderr||e).level>=2){t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const r=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let n=process.env[t];if(/^(yes|on|true|enabled)$/i.test(n)){n=true}else if(/^(no|off|false|disabled)$/i.test(n)){n=false}else if(n==="null"){n=null}else{n=Number(n)}e[r]=n;return e}),{});function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(process.stderr.fd)}function formatArgs(t){const{namespace:r,useColors:n}=this;if(n){const n=this.color;const s="[3"+(n<8?n:"8;5;"+n);const i=` ${s};1m${r} [0m`;t[0]=i+t[0].split("\n").join("\n"+i);t.push(s+"m+"+e.exports.humanize(this.diff)+"[0m")}else{t[0]=getDate()+r+" "+t[0]}}function getDate(){if(t.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(s.formatWithOptions(t.inspectOpts,...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const r=Object.keys(t.inspectOpts);for(let n=0;n<r.length;n++){e.inspectOpts[r[n]]=t.inspectOpts[r[n]]}}e.exports=r(6033)(t);const{formatters:i}=e.exports;i.o=function(e){this.inspectOpts.colors=this.useColors;return s.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")};i.O=function(e){this.inspectOpts.colors=this.useColors;return s.inspect(e,this.inspectOpts)}},7945:(e,t,r)=>{const n=r(3837);const s=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:s.parse};function converter(e){return function(t,r){if(typeof t=="string"){const n=_value(t,r);return a[e](n)}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 n=_value(e,r);return n.split(/\s*,\s*/).map(a[t])};u.multi=function multi(e){const t={};for(let r in e){const s=e[r];if(n.isArray(s)){switch(s.length){case 1:case 2:t[r]=u(s[0],s[1]);break;case 3:t[r]=u[s[2]](s[0],s[1]);break;default:throw"getenv.multi(): invalid spec";break}}else{t[r]=u(s)}}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},6738:e=>{"use strict";e.exports=(e,t=process.argv)=>{const r=e.startsWith("-")?"":e.length===1?"-":"--";const n=t.indexOf(r+e);const s=t.indexOf("--");return n!==-1&&(s===-1||n<s)}},3697:(e,t,r)=>{"use strict";const n=r(6642);const isGitHubShorthand=e=>{const t=e.indexOf("#");const r=e.indexOf("/");const n=e.indexOf("/",r+1);const s=e.indexOf(":");const i=/\s/.exec(e);const o=e.indexOf("@");const a=!i||t>-1&&i.index>t;const u=o===-1||t>-1&&o>t;const l=s===-1||t>-1&&s>t;const c=n===-1||t>-1&&n>t;const f=r>0;const p=t>-1?e[t-1]!=="/":!e.endsWith("/");const h=!e.startsWith(".");return a&&f&&p&&h&&u&&l&&c};e.exports=(e,t,{gitHosts:r,protocols:s})=>{if(!e){return}const i=isGitHubShorthand(e)?`github:${e}`:e;const o=n(i,s);if(!o){return}const a=r.byShortcut[o.protocol];const u=r.byDomain[o.hostname.startsWith("www.")?o.hostname.slice(4):o.hostname];const l=a||u;if(!l){return}const c=r[a||u];let f=null;if(s[o.protocol]?.auth&&(o.username||o.password)){f=`${o.username}${o.password?":"+o.password:""}`}let p=null;let h=null;let d=null;let g=null;try{if(a){let e=o.pathname.startsWith("/")?o.pathname.slice(1):o.pathname;const t=e.indexOf("@");if(t>-1){e=e.slice(t+1)}const r=e.lastIndexOf("/");if(r>-1){h=decodeURIComponent(e.slice(0,r));if(!h){h=null}d=decodeURIComponent(e.slice(r+1))}else{d=decodeURIComponent(e)}if(d.endsWith(".git")){d=d.slice(0,-4)}if(o.hash){p=decodeURIComponent(o.hash.slice(1))}g="shortcut"}else{if(!c.protocols.includes(o.protocol)){return}const e=c.extract(o);if(!e){return}h=e.user&&decodeURIComponent(e.user);d=decodeURIComponent(e.project);p=decodeURIComponent(e.committish);g=s[o.protocol]?.name||o.protocol.slice(0,-1)}}catch(e){if(e instanceof URIError){return}else{throw e}}return[l,h,f,d,p,g,t]}},8393:e=>{"use strict";const maybeJoin=(...e)=>e.every((e=>e))?e.join(""):"";const maybeEncode=e=>e?encodeURIComponent(e):"";const formatHashFragment=e=>e.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-");const t={sshtemplate:({domain:e,user:t,project:r,committish:n})=>`git@${e}:${t}/${r}.git${maybeJoin("#",n)}`,sshurltemplate:({domain:e,user:t,project:r,committish:n})=>`git+ssh://git@${e}/${t}/${r}.git${maybeJoin("#",n)}`,edittemplate:({domain:e,user:t,project:r,committish:n,editpath:s,path:i})=>`https://${e}/${t}/${r}${maybeJoin("/",s,"/",maybeEncode(n||"HEAD"),"/",i)}`,browsetemplate:({domain:e,user:t,project:r,committish:n,treepath:s})=>`https://${e}/${t}/${r}${maybeJoin("/",s,"/",maybeEncode(n))}`,browsetreetemplate:({domain:e,user:t,project:r,committish:n,treepath:s,path:i,fragment:o,hashformat:a})=>`https://${e}/${t}/${r}/${s}/${maybeEncode(n||"HEAD")}/${i}${maybeJoin("#",a(o||""))}`,browseblobtemplate:({domain:e,user:t,project:r,committish:n,blobpath:s,path:i,fragment:o,hashformat:a})=>`https://${e}/${t}/${r}/${s}/${maybeEncode(n||"HEAD")}/${i}${maybeJoin("#",a(o||""))}`,docstemplate:({domain:e,user:t,project:r,treepath:n,committish:s})=>`https://${e}/${t}/${r}${maybeJoin("/",n,"/",maybeEncode(s))}#readme`,httpstemplate:({auth:e,domain:t,user:r,project:n,committish:s})=>`git+https://${maybeJoin(e,"@")}${t}/${r}/${n}.git${maybeJoin("#",s)}`,filetemplate:({domain:e,user:t,project:r,committish:n,path:s})=>`https://${e}/${t}/${r}/raw/${maybeEncode(n||"HEAD")}/${s}`,shortcuttemplate:({type:e,user:t,project:r,committish:n})=>`${e}:${t}/${r}${maybeJoin("#",n)}`,pathtemplate:({user:e,project:t,committish:r})=>`${e}/${t}${maybeJoin("#",r)}`,bugstemplate:({domain:e,user:t,project:r})=>`https://${e}/${t}/${r}/issues`,hashformat:formatHashFragment};const r={};r.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:({auth:e,user:t,project:r,committish:n,path:s})=>`https://${maybeJoin(e,"@")}raw.githubusercontent.com/${t}/${r}/${maybeEncode(n||"HEAD")}/${s}`,gittemplate:({auth:e,domain:t,user:r,project:n,committish:s})=>`git://${maybeJoin(e,"@")}${t}/${r}/${n}.git${maybeJoin("#",s)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://codeload.${e}/${t}/${r}/tar.gz/${maybeEncode(n||"HEAD")}`,extract:e=>{let[,t,r,n,s]=e.pathname.split("/",5);if(n&&n!=="tree"){return}if(!n){s=e.hash.slice(1)}if(r&&r.endsWith(".git")){r=r.slice(0,-4)}if(!t||!r){return}return{user:t,project:r,committish:s}}};r.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:({domain:e,user:t,project:r,committish:n,treepath:s,path:i,editpath:o})=>`https://${e}/${t}/${r}${maybeJoin("/",s,"/",maybeEncode(n||"HEAD"),"/",i,o)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/get/${maybeEncode(n||"HEAD")}.tar.gz`,extract:e=>{let[,t,r,n]=e.pathname.split("/",4);if(["get"].includes(n)){return}if(r&&r.endsWith(".git")){r=r.slice(0,-4)}if(!t||!r){return}return{user:t,project:r,committish:e.hash.slice(1)}}};r.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",httpstemplate:({auth:e,domain:t,user:r,project:n,committish:s})=>`git+https://${maybeJoin(e,"@")}${t}/${r}/${n}.git${maybeJoin("#",s)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/repository/archive.tar.gz?ref=${maybeEncode(n||"HEAD")}`,extract:e=>{const t=e.pathname.slice(1);if(t.includes("/-/")||t.includes("/archive.tar.gz")){return}const r=t.split("/");let n=r.pop();if(n.endsWith(".git")){n=n.slice(0,-4)}const s=r.join("/");if(!s||!n){return}return{user:s,project:n,committish:e.hash.slice(1)}}};r.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:({domain:e,project:t,committish:r})=>`git@${e}:${t}.git${maybeJoin("#",r)}`,sshurltemplate:({domain:e,project:t,committish:r})=>`git+ssh://git@${e}/${t}.git${maybeJoin("#",r)}`,edittemplate:({domain:e,user:t,project:r,committish:n,editpath:s})=>`https://${e}/${t}/${r}${maybeJoin("/",maybeEncode(n))}/${s}`,browsetemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${maybeJoin("/",maybeEncode(r))}`,browsetreetemplate:({domain:e,project:t,committish:r,path:n,hashformat:s})=>`https://${e}/${t}${maybeJoin("/",maybeEncode(r))}${maybeJoin("#",s(n))}`,browseblobtemplate:({domain:e,project:t,committish:r,path:n,hashformat:s})=>`https://${e}/${t}${maybeJoin("/",maybeEncode(r))}${maybeJoin("#",s(n))}`,docstemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${maybeJoin("/",maybeEncode(r))}`,httpstemplate:({domain:e,project:t,committish:r})=>`git+https://${e}/${t}.git${maybeJoin("#",r)}`,filetemplate:({user:e,project:t,committish:r,path:n})=>`https://gist.githubusercontent.com/${e}/${t}/raw${maybeJoin("/",maybeEncode(r))}/${n}`,shortcuttemplate:({type:e,project:t,committish:r})=>`${e}:${t}${maybeJoin("#",r)}`,pathtemplate:({project:e,committish:t})=>`${e}${maybeJoin("#",t)}`,bugstemplate:({domain:e,project:t})=>`https://${e}/${t}`,gittemplate:({domain:e,project:t,committish:r})=>`git://${e}/${t}.git${maybeJoin("#",r)}`,tarballtemplate:({project:e,committish:t})=>`https://codeload.github.com/gist/${e}/tar.gz/${maybeEncode(t||"HEAD")}`,extract:e=>{let[,t,r,n]=e.pathname.split("/",4);if(n==="raw"){return}if(!r){if(!t){return}r=t;t=null}if(r.endsWith(".git")){r=r.slice(0,-4)}return{user:t,project:r,committish:e.hash.slice(1)}},hashformat:function(e){return e&&"file-"+formatHashFragment(e)}};r.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:({domain:e,user:t,project:r,committish:n,path:s})=>`https://${e}/${t}/${r}/blob/${maybeEncode(n)||"HEAD"}/${s}`,httpstemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}.git${maybeJoin("#",n)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/archive/${maybeEncode(n)||"HEAD"}.tar.gz`,bugstemplate:()=>null,extract:e=>{let[,t,r,n]=e.pathname.split("/",4);if(["archive"].includes(n)){return}if(r&&r.endsWith(".git")){r=r.slice(0,-4)}if(!t||!r){return}return{user:t,project:r,committish:e.hash.slice(1)}}};for(const[e,n]of Object.entries(r)){r[e]=Object.assign({},t,n)}e.exports=r},6069:(e,t,r)=>{"use strict";const{LRUCache:n}=r(3576);const s=r(8393);const i=r(3697);const o=r(6642);const a=new n({max:1e3});class GitHost{constructor(e,t,r,n,s,i,o={}){Object.assign(this,GitHost.#e[e],{type:e,user:t,auth:r,project:n,committish:s,default:i,opts:o})}static#e={byShortcut:{},byDomain:{}};static#t={"git+ssh:":{name:"sshurl"},"ssh:":{name:"sshurl"},"git+https:":{name:"https",auth:true},"git:":{auth:true},"http:":{auth:true},"https:":{auth:true},"git+http:":{auth:true}};static addHost(e,t){GitHost.#e[e]=t;GitHost.#e.byDomain[t.domain]=e;GitHost.#e.byShortcut[`${e}:`]=e;GitHost.#t[`${e}:`]={name:e}}static fromUrl(e,t){if(typeof e!=="string"){return}const r=e+JSON.stringify(t||{});if(!a.has(r)){const n=i(e,t,{gitHosts:GitHost.#e,protocols:GitHost.#t});a.set(r,n?new GitHost(...n):undefined)}return a.get(r)}static parseUrl(e){return o(e)}#r(e,t){if(typeof e!=="function"){return null}const r={...this,...this.opts,...t};if(!r.path){r.path=""}if(r.path.startsWith("/")){r.path=r.path.slice(1)}if(r.noCommittish){r.committish=null}const n=e(r);return r.noGitPlus&&n.startsWith("git+")?n.slice(4):n}hash(){return this.committish?`#${this.committish}`:""}ssh(e){return this.#r(this.sshtemplate,e)}sshurl(e){return this.#r(this.sshurltemplate,e)}browse(e,...t){if(typeof e!=="string"){return this.#r(this.browsetemplate,e)}if(typeof t[0]!=="string"){return this.#r(this.browsetreetemplate,{...t[0],path:e})}return this.#r(this.browsetreetemplate,{...t[1],fragment:t[0],path:e})}browseFile(e,...t){if(typeof t[0]!=="string"){return this.#r(this.browseblobtemplate,{...t[0],path:e})}return this.#r(this.browseblobtemplate,{...t[1],fragment:t[0],path:e})}docs(e){return this.#r(this.docstemplate,e)}bugs(e){return this.#r(this.bugstemplate,e)}https(e){return this.#r(this.httpstemplate,e)}git(e){return this.#r(this.gittemplate,e)}shortcut(e){return this.#r(this.shortcuttemplate,e)}path(e){return this.#r(this.pathtemplate,e)}tarball(e){return this.#r(this.tarballtemplate,{...e,noCommittish:false})}file(e,t){return this.#r(this.filetemplate,{...t,path:e})}edit(e,t){return this.#r(this.edittemplate,{...t,path:e})}getDefaultRepresentation(){return this.default}toString(e){if(this.default&&typeof this[this.default]==="function"){return this[this.default](e)}return this.sshurl(e)}}for(const[e,t]of Object.entries(s)){GitHost.addHost(e,t)}e.exports=GitHost},6642:(e,t,r)=>{const n=r(7310);const lastIndexOfBefore=(e,t,r)=>{const n=e.indexOf(r);return e.lastIndexOf(t,n>-1?n:Infinity)};const safeUrl=e=>{try{return new n.URL(e)}catch{}};const correctProtocol=(e,t)=>{const r=e.indexOf(":");const n=e.slice(0,r+1);if(Object.prototype.hasOwnProperty.call(t,n)){return e}const s=e.indexOf("@");if(s>-1){if(s>r){return`git+ssh://${e}`}else{return e}}const i=e.indexOf("//");if(i===r+1){return e}return`${e.slice(0,r+1)}//${e.slice(r+1)}`};const correctUrl=e=>{const t=lastIndexOfBefore(e,"@","#");const r=lastIndexOfBefore(e,":","#");if(r>t){e=e.slice(0,r)+"/"+e.slice(r+1)}if(lastIndexOfBefore(e,":","#")===-1&&e.indexOf("//")===-1){e=`git+ssh://${e}`}return e};e.exports=(e,t)=>{const r=t?correctProtocol(e,t):e;return safeUrl(r)||safeUrl(correctUrl(r))}},8035:(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}},5130:(e,t,r)=>{const n=r(3210);const s=r(5627);const i={parse:n,stringify:s};e.exports=i},3210:(e,t,r)=>{const n=r(3009);let s;let i;let o;let a;let u;let l;let c;let f;let p;e.exports=function parse(e,t){s=String(e);i="start";o=[];a=0;u=1;l=0;c=undefined;f=undefined;p=undefined;do{c=lex();A[i]()}while(c.type!=="eof");if(typeof t==="function"){return internalize({"":p},"",t)}return p};function internalize(e,t,r){const n=e[t];if(n!=null&&typeof n==="object"){if(Array.isArray(n)){for(let e=0;e<n.length;e++){const t=String(e);const s=internalize(n,t,r);if(s===undefined){delete n[t]}else{Object.defineProperty(n,t,{value:s,writable:true,enumerable:true,configurable:true})}}}else{for(const e in n){const t=internalize(n,e,r);if(t===undefined){delete n[e]}else{Object.defineProperty(n,e,{value:t,writable:true,enumerable:true,configurable:true})}}}}return r.call(e,t,n)}let h;let d;let g;let m;let D;function lex(){h="default";d="";g=false;m=1;for(;;){D=peek();const e=y[h]();if(e){return e}}}function peek(){if(s[a]){return String.fromCodePoint(s.codePointAt(a))}}function read(){const e=peek();if(e==="\n"){u++;l=0}else if(e){l+=e.length}else{l++}if(e){a+=e.length}return e}const y={default(){switch(D){case"\t":case"\v":case"\f":case" ":case" ":case"\ufeff":case"\n":case"\r":case"\u2028":case"\u2029":read();return;case"/":read();h="comment";return;case undefined:read();return newToken("eof")}if(n.isSpaceSeparator(D)){read();return}return y[i]()},comment(){switch(D){case"*":read();h="multiLineComment";return;case"/":read();h="singleLineComment";return}throw invalidChar(read())},multiLineComment(){switch(D){case"*":read();h="multiLineCommentAsterisk";return;case undefined:throw invalidChar(read())}read()},multiLineCommentAsterisk(){switch(D){case"*":read();return;case"/":read();h="default";return;case undefined:throw invalidChar(read())}read();h="multiLineComment"},singleLineComment(){switch(D){case"\n":case"\r":case"\u2028":case"\u2029":read();h="default";return;case undefined:read();return newToken("eof")}read()},value(){switch(D){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()==="-"){m=-1}h="sign";return;case".":d=read();h="decimalPointLeading";return;case"0":d=read();h="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":d=read();h="decimalInteger";return;case"I":read();literal("nfinity");return newToken("numeric",Infinity);case"N":read();literal("aN");return newToken("numeric",NaN);case'"':case"'":g=read()==='"';d="";h="string";return}throw invalidChar(read())},identifierNameStartEscape(){if(D!=="u"){throw invalidChar(read())}read();const e=unicodeEscape();switch(e){case"$":case"_":break;default:if(!n.isIdStartChar(e)){throw invalidIdentifier()}break}d+=e;h="identifierName"},identifierName(){switch(D){case"$":case"_":case"":case"":d+=read();return;case"\\":read();h="identifierNameEscape";return}if(n.isIdContinueChar(D)){d+=read();return}return newToken("identifier",d)},identifierNameEscape(){if(D!=="u"){throw invalidChar(read())}read();const e=unicodeEscape();switch(e){case"$":case"_":case"":case"":break;default:if(!n.isIdContinueChar(e)){throw invalidIdentifier()}break}d+=e;h="identifierName"},sign(){switch(D){case".":d=read();h="decimalPointLeading";return;case"0":d=read();h="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":d=read();h="decimalInteger";return;case"I":read();literal("nfinity");return newToken("numeric",m*Infinity);case"N":read();literal("aN");return newToken("numeric",NaN)}throw invalidChar(read())},zero(){switch(D){case".":d+=read();h="decimalPoint";return;case"e":case"E":d+=read();h="decimalExponent";return;case"x":case"X":d+=read();h="hexadecimal";return}return newToken("numeric",m*0)},decimalInteger(){switch(D){case".":d+=read();h="decimalPoint";return;case"e":case"E":d+=read();h="decimalExponent";return}if(n.isDigit(D)){d+=read();return}return newToken("numeric",m*Number(d))},decimalPointLeading(){if(n.isDigit(D)){d+=read();h="decimalFraction";return}throw invalidChar(read())},decimalPoint(){switch(D){case"e":case"E":d+=read();h="decimalExponent";return}if(n.isDigit(D)){d+=read();h="decimalFraction";return}return newToken("numeric",m*Number(d))},decimalFraction(){switch(D){case"e":case"E":d+=read();h="decimalExponent";return}if(n.isDigit(D)){d+=read();return}return newToken("numeric",m*Number(d))},decimalExponent(){switch(D){case"+":case"-":d+=read();h="decimalExponentSign";return}if(n.isDigit(D)){d+=read();h="decimalExponentInteger";return}throw invalidChar(read())},decimalExponentSign(){if(n.isDigit(D)){d+=read();h="decimalExponentInteger";return}throw invalidChar(read())},decimalExponentInteger(){if(n.isDigit(D)){d+=read();return}return newToken("numeric",m*Number(d))},hexadecimal(){if(n.isHexDigit(D)){d+=read();h="hexadecimalInteger";return}throw invalidChar(read())},hexadecimalInteger(){if(n.isHexDigit(D)){d+=read();return}return newToken("numeric",m*Number(d))},string(){switch(D){case"\\":read();d+=escape();return;case'"':if(g){read();return newToken("string",d)}d+=read();return;case"'":if(!g){read();return newToken("string",d)}d+=read();return;case"\n":case"\r":throw invalidChar(read());case"\u2028":case"\u2029":separatorChar(D);break;case undefined:throw invalidChar(read())}d+=read()},start(){switch(D){case"{":case"[":return newToken("punctuator",read())}h="value"},beforePropertyName(){switch(D){case"$":case"_":d=read();h="identifierName";return;case"\\":read();h="identifierNameStartEscape";return;case"}":return newToken("punctuator",read());case'"':case"'":g=read()==='"';h="string";return}if(n.isIdStartChar(D)){d+=read();h="identifierName";return}throw invalidChar(read())},afterPropertyName(){if(D===":"){return newToken("punctuator",read())}throw invalidChar(read())},beforePropertyValue(){h="value"},afterPropertyValue(){switch(D){case",":case"}":return newToken("punctuator",read())}throw invalidChar(read())},beforeArrayValue(){if(D==="]"){return newToken("punctuator",read())}h="value"},afterArrayValue(){switch(D){case",":case"]":return newToken("punctuator",read())}throw invalidChar(read())},end(){throw invalidChar(read())}};function newToken(e,t){return{type:e,value:t,line:u,column:l}}function literal(e){for(const t of e){const e=peek();if(e!==t){throw invalidChar(read())}read()}}function escape(){const 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(n.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(){let e="";let t=peek();if(!n.isHexDigit(t)){throw invalidChar(read())}e+=read();t=peek();if(!n.isHexDigit(t)){throw invalidChar(read())}e+=read();return String.fromCodePoint(parseInt(e,16))}function unicodeEscape(){let e="";let t=4;while(t-- >0){const t=peek();if(!n.isHexDigit(t)){throw invalidChar(read())}e+=read()}return String.fromCodePoint(parseInt(e,16))}const A={start(){if(c.type==="eof"){throw invalidEOF()}push()},beforePropertyName(){switch(c.type){case"identifier":case"string":f=c.value;i="afterPropertyName";return;case"punctuator":pop();return;case"eof":throw invalidEOF()}},afterPropertyName(){if(c.type==="eof"){throw invalidEOF()}i="beforePropertyValue"},beforePropertyValue(){if(c.type==="eof"){throw invalidEOF()}push()},beforeArrayValue(){if(c.type==="eof"){throw invalidEOF()}if(c.type==="punctuator"&&c.value==="]"){pop();return}push()},afterPropertyValue(){if(c.type==="eof"){throw invalidEOF()}switch(c.value){case",":i="beforePropertyName";return;case"}":pop()}},afterArrayValue(){if(c.type==="eof"){throw invalidEOF()}switch(c.value){case",":i="beforeArrayValue";return;case"]":pop()}},end(){}};function push(){let e;switch(c.type){case"punctuator":switch(c.value){case"{":e={};break;case"[":e=[];break}break;case"null":case"boolean":case"numeric":case"string":e=c.value;break}if(p===undefined){p=e}else{const t=o[o.length-1];if(Array.isArray(t)){t.push(e)}else{Object.defineProperty(t,f,{value:e,writable:true,enumerable:true,configurable:true})}}if(e!==null&&typeof e==="object"){o.push(e);if(Array.isArray(e)){i="beforeArrayValue"}else{i="beforePropertyName"}}else{const e=o[o.length-1];if(e==null){i="end"}else if(Array.isArray(e)){i="afterArrayValue"}else{i="afterPropertyValue"}}}function pop(){o.pop();const e=o[o.length-1];if(e==null){i="end"}else if(Array.isArray(e)){i="afterArrayValue"}else{i="afterPropertyValue"}}function invalidChar(e){if(e===undefined){return syntaxError(`JSON5: invalid end of input at ${u}:${l}`)}return syntaxError(`JSON5: invalid character '${formatChar(e)}' at ${u}:${l}`)}function invalidEOF(){return syntaxError(`JSON5: invalid end of input at ${u}:${l}`)}function invalidIdentifier(){l-=5;return syntaxError(`JSON5: invalid identifier character at ${u}:${l}`)}function separatorChar(e){console.warn(`JSON5: '${formatChar(e)}' in strings is not valid ECMAScript; consider escaping`)}function formatChar(e){const 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<" "){const t=e.charCodeAt(0).toString(16);return"\\x"+("00"+t).substring(t.length)}return e}function syntaxError(e){const t=new SyntaxError(e);t.lineNumber=u;t.columnNumber=l;return t}},5627:(e,t,r)=>{const n=r(3009);e.exports=function stringify(e,t,r){const s=[];let i="";let o;let a;let u="";let l;if(t!=null&&typeof t==="object"&&!Array.isArray(t)){r=t.space;l=t.quote;t=t.replacer}if(typeof t==="function"){a=t}else if(Array.isArray(t)){o=[];for(const e of t){let t;if(typeof e==="string"){t=e}else if(typeof e==="number"||e instanceof String||e instanceof Number){t=String(e)}if(t!==undefined&&o.indexOf(t)<0){o.push(t)}}}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));u=" ".substr(0,r)}}else if(typeof r==="string"){u=r.substr(0,10)}return serializeProperty("",{"":e});function serializeProperty(e,t){let 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(a){r=a.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==="object"){return Array.isArray(r)?serializeArray(r):serializeObject(r)}return undefined}function quoteString(e){const t={"'":.1,'"':.2};const r={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};let s="";for(let i=0;i<e.length;i++){const o=e[i];switch(o){case"'":case'"':t[o]++;s+=o;continue;case"\0":if(n.isDigit(e[i+1])){s+="\\x00";continue}}if(r[o]){s+=r[o];continue}if(o<" "){let e=o.charCodeAt(0).toString(16);s+="\\x"+("00"+e).substring(e.length);continue}s+=o}const i=l||Object.keys(t).reduce(((e,r)=>t[e]<t[r]?e:r));s=s.replace(new RegExp(i,"g"),r[i]);return i+s+i}function serializeObject(e){if(s.indexOf(e)>=0){throw TypeError("Converting circular structure to JSON5")}s.push(e);let t=i;i=i+u;let r=o||Object.keys(e);let n=[];for(const t of r){const r=serializeProperty(t,e);if(r!==undefined){let e=serializeKey(t)+":";if(u!==""){e+=" "}e+=r;n.push(e)}}let a;if(n.length===0){a="{}"}else{let e;if(u===""){e=n.join(",");a="{"+e+"}"}else{let r=",\n"+i;e=n.join(r);a="{\n"+i+e+",\n"+t+"}"}}s.pop();i=t;return a}function serializeKey(e){if(e.length===0){return quoteString(e,true)}const t=String.fromCodePoint(e.codePointAt(0));if(!n.isIdStartChar(t)){return quoteString(e,true)}for(let r=t.length;r<e.length;r++){if(!n.isIdContinueChar(String.fromCodePoint(e.codePointAt(r)))){return quoteString(e,true)}}return e}function serializeArray(e){if(s.indexOf(e)>=0){throw TypeError("Converting circular structure to JSON5")}s.push(e);let t=i;i=i+u;let r=[];for(let t=0;t<e.length;t++){const n=serializeProperty(String(t),e);r.push(n!==undefined?n:"null")}let n;if(r.length===0){n="[]"}else{if(u===""){let e=r.join(",");n="["+e+"]"}else{let e=",\n"+i;let s=r.join(e);n="[\n"+i+s+",\n"+t+"]"}}s.pop();i=t;return n}}},6195:e=>{e.exports.Space_Separator=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/;e.exports.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\u0860-\u086A\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\u09FC\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-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\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\uDF2D-\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\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\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\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\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\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/;e.exports.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\u0860-\u086A\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\u09FC\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-\u0AFF\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\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\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-\u1CF9\u1D00-\u1DF9\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-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\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\uDF2D-\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\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\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\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\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\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},3009:(e,t,r)=>{const n=r(6195);e.exports={isSpaceSeparator(e){return typeof e==="string"&&n.Space_Separator.test(e)},isIdStartChar(e){return typeof e==="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="$"||e==="_"||n.ID_Start.test(e))},isIdContinueChar(e){return typeof e==="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="$"||e==="_"||e===""||e===""||n.ID_Continue.test(e))},isDigit(e){return typeof e==="string"&&/[0-9]/.test(e)},isHexDigit(e){return typeof e==="string"&&/[0-9A-Fa-f]/.test(e)}}},40:e=>{var t=1e3;var r=t*60;var n=r*60;var s=n*24;var i=s*7;var o=s*365.25;e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0){return parse(e)}else if(r==="number"&&isFinite(e)){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!a){return}var u=parseFloat(a[1]);var l=(a[2]||"ms").toLowerCase();switch(l){case"years":case"year":case"yrs":case"yr":case"y":return u*o;case"weeks":case"week":case"w":return u*i;case"days":case"day":case"d":return u*s;case"hours":case"hour":case"hrs":case"hr":case"h":return u*n;case"minutes":case"minute":case"mins":case"min":case"m":return u*r;case"seconds":case"second":case"secs":case"sec":case"s":return u*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return undefined}}function fmtShort(e){var i=Math.abs(e);if(i>=s){return Math.round(e/s)+"d"}if(i>=n){return Math.round(e/n)+"h"}if(i>=r){return Math.round(e/r)+"m"}if(i>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var i=Math.abs(e);if(i>=s){return plural(e,i,s,"day")}if(i>=n){return plural(e,i,n,"hour")}if(i>=r){return plural(e,i,r,"minute")}if(i>=t){return plural(e,i,t,"second")}return e+" ms"}function plural(e,t,r,n){var s=t>=r*1.5;return Math.round(e/r)+" "+n+(s?"s":"")}},5440:(e,t,r)=>{"use strict";e.exports=npa;e.exports.resolve=resolve;e.exports.toPurl=toPurl;e.exports.Result=Result;const{URL:n}=r(7310);const s=r(6069);const i=r(7546);const o=global.FAKE_WINDOWS?r(1017).win32:r(1017);const a=r(8593);const{homedir:u}=r(2037);const{log:l}=r(1316);const c=process.platform==="win32"||global.FAKE_WINDOWS;const f=c?/\\|[/]/:/[/]/;const p=/^(?:git[+])?[a-z]+:/i;const h=/^[^@]+@[^:.]+\.[^:]+:.+$/i;const d=/[.](?:tgz|tar.gz|tar)$/i;function npa(e,t){let r;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 s=e[0]==="@"?e.slice(1).indexOf("@")+1:e.indexOf("@");const i=s>0?e.slice(0,s):e;if(p.test(e)){n=e}else if(h.test(e)){n=`git+ssh://${e}`}else if(i[0]!=="@"&&(f.test(i)||d.test(i))){n=e}else if(s>0){r=i;n=e.slice(s+1)||"*"}else{const t=a(e);if(t.validForOldPackages){r=e;n="*"}else{n=e}}return resolve(r,n,t,e)}const g=c?/^(?:[.]|~[/]|[/\\]|[a-zA-Z]:)/:/^(?:[.]|~[/]|[/]|[a-zA-Z]:)/;function resolve(e,t,r,n){const i=new Result({raw:n,name:e,rawSpec:t,fromArgument:n!=null});if(e){i.setName(e)}if(t&&(g.test(t)||/^file:/i.test(t))){return fromFile(i,r)}else if(t&&/^npm:/i.test(t)){return fromAlias(i,r)}const o=s.fromUrl(t,{noGitPlus:true,noCommittish:true});if(o){return fromHostedGit(i,o)}else if(t&&p.test(t)){return fromURL(i)}else if(t&&(f.test(t)||d.test(t))){return fromFile(i,r)}else{return fromRegistry(i)}}const m="https://registry.npmjs.org";function toPurl(e,t=m){const r=npa(e);if(r.type!=="version"){throw invalidPurlType(r.type,r.raw)}let n="pkg:npm/"+r.name.replace(/^@/,"%40")+"@"+r.rawSpec;if(t!==m){n+="?repository_url="+t}return n}function invalidPackageName(e,t,r){const n=new Error(`Invalid package name "${e}" of package "${r}": ${t.errors.join("; ")}.`);n.code="EINVALIDPACKAGENAME";return n}function invalidTagName(e,t){const r=new Error(`Invalid tag name "${e}" of package "${t}": Tags may not have any characters that encodeURIComponent encodes.`);r.code="EINVALIDTAGNAME";return r}function invalidPurlType(e,t){const r=new Error(`Invalid type "${e}" of package "${t}": Purl can only be generated for "version" types.`);r.code="EINVALIDPURLTYPE";return r}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||"";this.saveSpec=e.saveSpec;this.fetchSpec=e.fetchSpec;if(e.name){this.setName(e.name)}this.gitRange=e.gitRange;this.gitCommittish=e.gitCommittish;this.gitSubdir=e.gitSubdir;this.hosted=e.hosted}Result.prototype.setName=function(e){const t=a(e);if(!t.validForOldPackages){throw invalidPackageName(e,t,this.raw)}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 setGitAttrs(e,t){if(!t){e.gitCommittish=null;return}for(const r of t.split("::")){if(!r.includes(":")){if(e.gitRange){throw new Error("cannot override existing semver range with a committish")}if(e.gitCommittish){throw new Error("cannot override existing committish with a second committish")}e.gitCommittish=r;continue}const[t,n]=r.split(":");if(t==="semver"){if(e.gitCommittish){throw new Error("cannot override existing committish with a semver range")}if(e.gitRange){throw new Error("cannot override existing semver range with a second semver range")}e.gitRange=decodeURIComponent(n);continue}if(t==="path"){if(e.gitSubdir){throw new Error("cannot override existing path with a second path")}e.gitSubdir=`/${n}`;continue}l.warn("npm-package-arg",`ignoring unknown key "${t}"`)}}function fromFile(e,t){if(!t){t=process.cwd()}e.type=d.test(e.rawSpec)?"file":"directory";e.where=t;let r;let s;const i=!/^file:/.test(e.rawSpec)?"file:":"";const a=i+e.rawSpec;let l=a.replace(/^file:/,"");try{s=new n(a,`file://${o.resolve(t)}/`);r=new n(a)}catch(r){const n=new Error("Invalid file: URL, must comply with RFC 8089");throw Object.assign(n,{raw:e.rawSpec,spec:e,where:t,originalError:r})}if(s.host&&s.host!=="localhost"){const i=e.rawSpec.replace(/^file:\/\//,"file:///");s=new n(i,`file://${o.resolve(t)}/`);r=new n(i);l=i.replace(/^file:/,"")}if(/^\/{1,3}\.\.?(\/|$)/.test(l)){const i=e.rawSpec.replace(/^file:\/{1,3}/,"file:");s=new n(i,`file://${o.resolve(t)}/`);r=new n(i);l=i.replace(/^file:/,"")}let f=decodeURIComponent(r.pathname);let p=decodeURIComponent(s.pathname);if(c){f=f.replace(/^\/+([a-z]:\/)/i,"$1");p=p.replace(/^\/+([a-z]:\/)/i,"$1")}if(/^\/~(\/|$)/.test(f)){e.saveSpec=`file:${f.substr(1)}`;p=o.resolve(u(),f.substr(3))}else if(!o.isAbsolute(l)){e.saveSpec=`file:${o.relative(t,p)}`}else{e.saveSpec=`file:${o.resolve(p)}`}e.fetchSpec=o.resolve(t,p);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();setGitAttrs(e,t.committish);return e}function unsupportedURLType(e,t){const r=new Error(`Unsupported URL Type "${e}": ${t}`);r.code="EUNSUPPORTEDPROTOCOL";return r}function fromURL(e){let t=e.rawSpec;e.saveSpec=t;if(t.startsWith("git+ssh:")){const r=t.match(/^git\+ssh:\/\/([^:#]+:[^#]+(?:\.git)?)(?:#(.*))?$/i);if(r&&!r[1].match(/:[0-9]+\/?.*$/i)){e.type="git";setGitAttrs(e,r[2]);e.fetchSpec=r[1];return e}}else if(t.startsWith("git+file://")){t=t.replace(/\\/g,"/")}const r=new n(t);switch(r.protocol){case"git:":case"git+http:":case"git+https:":case"git+rsync:":case"git+ftp:":case"git+file:":case"git+ssh:":e.type="git";setGitAttrs(e,r.hash.slice(1));if(r.protocol==="git+file:"&&/^git\+file:\/\/[a-z]:/i.test(t)){e.fetchSpec=`git+file://${r.host.toLowerCase()}:${r.pathname}`}else{r.hash="";e.fetchSpec=r.toString()}if(e.fetchSpec.startsWith("git+")){e.fetchSpec=e.fetchSpec.slice(4)}break;case"http:":case"https:":e.type="remote";e.fetchSpec=e.saveSpec;break;default:throw unsupportedURLType(r.protocol,t)}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")}if(!r.name){throw new Error("aliases must have a name")}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.trim();e.saveSpec=null;e.fetchSpec=t;const r=i.valid(t,true);const n=i.validRange(t,true);if(r){e.type="version"}else if(n){e.type="range"}else{if(encodeURIComponent(t)!==t){throw invalidTagName(t,e.raw)}e.type="tag"}return e}},1316:e=>{const t=Symbol("proc-log.meta");e.exports={META:t,output:{LEVELS:["standard","error","buffer","flush"],KEYS:{standard:"standard",error:"error",buffer:"buffer",flush:"flush"},standard:function(...e){return process.emit("output","standard",...e)},error:function(...e){return process.emit("output","error",...e)},buffer:function(...e){return process.emit("output","buffer",...e)},flush:function(...e){return process.emit("output","flush",...e)}},log:{LEVELS:["notice","error","warn","info","verbose","http","silly","timing","pause","resume"],KEYS:{notice:"notice",error:"error",warn:"warn",info:"info",verbose:"verbose",http:"http",silly:"silly",timing:"timing",pause:"pause",resume:"resume"},error:function(...e){return process.emit("log","error",...e)},notice:function(...e){return process.emit("log","notice",...e)},warn:function(...e){return process.emit("log","warn",...e)},info:function(...e){return process.emit("log","info",...e)},verbose:function(...e){return process.emit("log","verbose",...e)},http:function(...e){return process.emit("log","http",...e)},silly:function(...e){return process.emit("log","silly",...e)},timing:function(...e){return process.emit("log","timing",...e)},pause:function(){return process.emit("log","pause")},resume:function(){return process.emit("log","resume")}},time:{LEVELS:["start","end"],KEYS:{start:"start",end:"end"},start:function(e,t){process.emit("time","start",e);function end(){return process.emit("time","end",e)}if(typeof t==="function"){const e=t();if(e&&e.finally){return e.finally(end)}end();return e}return end},end:function(e){return process.emit("time","end",e)}},input:{LEVELS:["start","end","read"],KEYS:{start:"start",end:"end",read:"read"},start:function(e){process.emit("input","start");function end(){return process.emit("input","end")}if(typeof e==="function"){const t=e();if(t&&t.finally){return t.finally(end)}end();return t}return end},end:function(){return process.emit("input","end")},read:function(...e){let t,r;const n=new Promise(((e,n)=>{t=e;r=n}));process.emit("input","read",t,r,...e);return n}}}},2170:e=>{"use strict";const pathKey=(e={})=>{const t=e.env||process.env;const r=e.platform||process.platform;if(r!=="win32"){return"PATH"}return Object.keys(t).reverse().find((e=>e.toUpperCase()==="PATH"))||"Path"};e.exports=pathKey;e.exports["default"]=pathKey},9397:e=>{let t=process||{},r=t.argv||[],n=t.env||{};let s=!(!!n.NO_COLOR||r.includes("--no-color"))&&(!!n.FORCE_COLOR||r.includes("--color")||t.platform==="win32"||(t.stdout||{}).isTTY&&n.TERM!=="dumb"||!!n.CI);let formatter=(e,t,r=e)=>n=>{let s=""+n,i=s.indexOf(t,e.length);return~i?e+replaceClose(s,t,r,i)+t:e+s+t};let replaceClose=(e,t,r,n)=>{let s="",i=0;do{s+=e.substring(i,n)+r;i=n+t.length;n=e.indexOf(t,i)}while(~n);return s+e.substring(i)};let createColors=(e=s)=>{let t=e?formatter:()=>String;return{isColorSupported:e,reset:t("[0m","[0m"),bold:t("[1m","[22m","[22m[1m"),dim:t("[2m","[22m","[22m[2m"),italic:t("[3m","[23m"),underline:t("[4m","[24m"),inverse:t("[7m","[27m"),hidden:t("[8m","[28m"),strikethrough:t("[9m","[29m"),black:t("[30m","[39m"),red:t("[31m","[39m"),green:t("[32m","[39m"),yellow:t("[33m","[39m"),blue:t("[34m","[39m"),magenta:t("[35m","[39m"),cyan:t("[36m","[39m"),white:t("[37m","[39m"),gray:t("[90m","[39m"),bgBlack:t("[40m","[49m"),bgRed:t("[41m","[49m"),bgGreen:t("[42m","[49m"),bgYellow:t("[43m","[49m"),bgBlue:t("[44m","[49m"),bgMagenta:t("[45m","[49m"),bgCyan:t("[46m","[49m"),bgWhite:t("[47m","[49m"),blackBright:t("[90m","[39m"),redBright:t("[91m","[39m"),greenBright:t("[92m","[39m"),yellowBright:t("[93m","[39m"),blueBright:t("[94m","[39m"),magentaBright:t("[95m","[39m"),cyanBright:t("[96m","[39m"),whiteBright:t("[97m","[39m"),bgBlackBright:t("[100m","[49m"),bgRedBright:t("[101m","[49m"),bgGreenBright:t("[102m","[49m"),bgYellowBright:t("[103m","[49m"),bgBlueBright:t("[104m","[49m"),bgMagentaBright:t("[105m","[49m"),bgCyanBright:t("[106m","[49m"),bgWhiteBright:t("[107m","[49m")}};e.exports=createColors();e.exports.createColors=createColors},7301:(e,t,r)=>{(()=>{"use strict";var t={610:(e,t,r)=>{const n=r(8750);const s=r(9434);const i=r(5873);const o=r(6477);const braces=(e,t={})=>{let r=[];if(Array.isArray(e)){for(const n of e){const e=braces.create(n,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 n(braces.parse(e,t),t)}return n(e,t)};braces.compile=(e,t={})=>{if(typeof e==="string"){e=braces.parse(e,t)}return s(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)=>{const n=r(6330);const s=r(5207);const compile=(e,t={})=>{const walk=(e,r={})=>{const i=s.isInvalidBrace(r);const o=e.invalid===true&&t.escapeInvalid===true;const a=i===true||o===true;const u=t.escapeInvalid===true?"\\":"";let l="";if(e.isOpen===true){return u+e.value}if(e.isClose===true){console.log("node.isClose",u,e.value);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){const r=s.reduce(e.nodes);const i=n(...r,{...t,wrap:false,toRegex:true,strictZeros:true});if(i.length!==0){return r.length>1&&i.length>1?`(${i})`:i}}if(e.nodes){for(const t of e.nodes){l+=walk(t,e)}}return l};return walk(e)};e.exports=compile},8774:e=>{e.exports={MAX_LENGTH:1e4,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)=>{const n=r(6330);const s=r(8750);const i=r(5207);const append=(e="",t="",r=false)=>{const n=[];e=[].concat(e);t=[].concat(t);if(!t.length)return e;if(!e.length){return r?i.flatten(t).map((e=>`{${e}}`)):t}for(const s of e){if(Array.isArray(s)){for(const e of s){n.push(append(e,t,r))}}else{for(let e of t){if(r===true&&typeof e==="string")e=`{${e}}`;n.push(Array.isArray(e)?append(s,e,r):s+e)}}}return i.flatten(n)};const expand=(e,t={})=>{const r=t.rangeLimit===undefined?1e3:t.rangeLimit;const 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(),s(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){const 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=n(...o,t);if(a.length===0){a=s(e,t)}u.push(append(u.pop(),a));e.nodes=[];return}const l=i.encloseBrace(e);let c=e.queue;let f=e;while(f.type!=="brace"&&f.type!=="root"&&f.parent){f=f.parent;c=f.queue}for(let t=0;t<e.nodes.length;t++){const r=e.nodes[t];if(r.type==="comma"&&e.type==="brace"){if(t===1)c.push("");c.push("");continue}if(r.type==="close"){u.push(append(u.pop(),c,l));continue}if(r.value&&r.type!=="open"){c.push(append(c.pop(),r.value));continue}if(r.nodes){walk(r,e)}}return c};return i.flatten(walk(e))};e.exports=expand},6477:(e,t,r)=>{const n=r(8750);const{MAX_LENGTH:s,CHAR_BACKSLASH:i,CHAR_BACKTICK:o,CHAR_COMMA:a,CHAR_DOT:u,CHAR_LEFT_PARENTHESES:l,CHAR_RIGHT_PARENTHESES:c,CHAR_LEFT_CURLY_BRACE:f,CHAR_RIGHT_CURLY_BRACE:p,CHAR_LEFT_SQUARE_BRACKET:h,CHAR_RIGHT_SQUARE_BRACKET:d,CHAR_DOUBLE_QUOTE:g,CHAR_SINGLE_QUOTE:m,CHAR_NO_BREAK_SPACE:D,CHAR_ZERO_WIDTH_NOBREAK_SPACE:y}=r(8774);const parse=(e,t={})=>{if(typeof e!=="string"){throw new TypeError("Expected a string")}const r=t||{};const A=typeof r.maxLength==="number"?Math.min(s,r.maxLength):s;if(e.length>A){throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${A})`)}const E={type:"root",input:e,nodes:[]};const C=[E];let v=E;let b=E;let w=0;const F=e.length;let _=0;let S=0;let x;const advance=()=>e[_++];const push=e=>{if(e.type==="text"&&b.type==="dot"){b.type="text"}if(b&&b.type==="text"&&e.type==="text"){b.value+=e.value;return}v.nodes.push(e);e.parent=v;e.prev=b;b=e;return e};push({type:"bos"});while(_<F){v=C[C.length-1];x=advance();if(x===y||x===D){continue}if(x===i){push({type:"text",value:(t.keepEscaping?x:"")+advance()});continue}if(x===d){push({type:"text",value:"\\"+x});continue}if(x===h){w++;let e;while(_<F&&(e=advance())){x+=e;if(e===h){w++;continue}if(e===i){x+=advance();continue}if(e===d){w--;if(w===0){break}}}push({type:"text",value:x});continue}if(x===l){v=push({type:"paren",nodes:[]});C.push(v);push({type:"text",value:x});continue}if(x===c){if(v.type!=="paren"){push({type:"text",value:x});continue}v=C.pop();push({type:"text",value:x});v=C[C.length-1];continue}if(x===g||x===m||x===o){const e=x;let r;if(t.keepQuotes!==true){x=""}while(_<F&&(r=advance())){if(r===i){x+=r+advance();continue}if(r===e){if(t.keepQuotes===true)x+=r;break}x+=r}push({type:"text",value:x});continue}if(x===f){S++;const e=b.value&&b.value.slice(-1)==="$"||v.dollar===true;const t={type:"brace",open:true,close:false,dollar:e,depth:S,commas:0,ranges:0,nodes:[]};v=push(t);C.push(v);push({type:"open",value:x});continue}if(x===p){if(v.type!=="brace"){push({type:"text",value:x});continue}const e="close";v=C.pop();v.close=true;push({type:e,value:x});S--;v=C[C.length-1];continue}if(x===a&&S>0){if(v.ranges>0){v.ranges=0;const e=v.nodes.shift();v.nodes=[e,{type:"text",value:n(v)}]}push({type:"comma",value:x});v.commas++;continue}if(x===u&&S>0&&v.commas===0){const e=v.nodes;if(S===0||e.length===0){push({type:"text",value:x});continue}if(b.type==="dot"){v.range=[];b.value+=x;b.type="range";if(v.nodes.length!==3&&v.nodes.length!==5){v.invalid=true;v.ranges=0;b.type="text";continue}v.ranges++;v.args=[];continue}if(b.type==="range"){e.pop();const t=e[e.length-1];t.value+=b.value+x;b=t;v.ranges--;continue}push({type:"dot",value:x});continue}push({type:"text",value:x})}do{v=C.pop();if(v.type!=="root"){v.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}}));const e=C[C.length-1];const t=e.nodes.indexOf(v);e.nodes.splice(t,1,...v.nodes)}}while(C.length>0);push({type:"eos"});return E};e.exports=parse},8750:(e,t,r)=>{const n=r(5207);e.exports=(e,t={})=>{const stringify=(e,r={})=>{const s=t.escapeInvalid&&n.isInvalidBrace(r);const i=e.invalid===true&&t.escapeInvalid===true;let o="";if(e.value){if((s||i)&&n.isOpenOrClose(e)){return"\\"+e.value}return e.value}if(e.value){return e.value}if(e.nodes){for(const t of e.nodes){o+=stringify(t)}}return o};return stringify(e)}},5207:(e,t)=>{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,n=1,s)=>{if(s===false)return false;if(!t.isInteger(e)||!t.isInteger(r))return false;return(Number(r)-Number(e))/Number(n)>=s};t.escapeNode=(e,t=0,r)=>{const n=e.nodes[t];if(!n)return;if(r&&n.type===r||n.type==="open"||n.type==="close"){if(n.escaped!==true){n.value="\\"+n.value;n.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++){const n=e[r];if(Array.isArray(n)){flat(n);continue}if(n!==undefined){t.push(n)}}return t};flat(e);return t}},6330:(e,t,r)=>{
|
|
29
3
|
/*!
|
|
30
4
|
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
31
5
|
*
|
|
32
6
|
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
33
7
|
* Licensed under the MIT License.
|
|
34
8
|
*/
|
|
35
|
-
const
|
|
9
|
+
const n=r(3837);const s=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,r)=>{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 n=t.capture?"":"?:";let s="";let i="";let o;if(e.positives.length){s=e.positives.map((e=>toMaxLen(String(e),r))).join("|")}if(e.negatives.length){i=`-(${n}${e.negatives.map((e=>toMaxLen(String(e),r))).join("|")})`}if(s&&i){o=`${s}|${i}`}else{o=s||i}if(t.wrap){return`(${n}${o})`}return o};const toRange=(e,t,r,n)=>{if(r){return s(e,t,{wrap:false,...n})}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 n=r.capture?"":"?:";return t?`(${n}${e.join("|")})`:e.join("|")}return s(e,t,r)};const rangeError=(...e)=>new RangeError("Invalid range arguments: "+n.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,n={})=>{let s=Number(e);let i=Number(t);if(!Number.isInteger(s)||!Number.isInteger(i)){if(n.strictRanges===true)throw rangeError([e,t]);return[]}if(s===0)s=0;if(i===0)i=0;let o=s>i;let a=String(e);let u=String(t);let l=String(r);r=Math.max(Math.abs(r),1);let c=zeros(a)||zeros(u)||zeros(l);let f=c?Math.max(a.length,u.length,l.length):0;let p=c===false&&stringify(e,t,n)===false;let h=n.transform||transform(p);if(n.toRegex&&r===1){return toRange(toMaxLen(e,f),toMaxLen(t,f),true,n)}let d={negatives:[],positives:[]};let push=e=>d[e<0?"negatives":"positives"].push(Math.abs(e));let g=[];let m=0;while(o?s>=i:s<=i){if(n.toRegex===true&&r>1){push(s)}else{g.push(pad(h(s,m),f,p))}s=o?s-r:s+r;m++}if(n.toRegex===true){return r>1?toSequence(d,n,f):toRegex(g,null,{wrap:false,...n})}return g};const fillLetters=(e,t,r=1,n={})=>{if(!isNumber(e)&&e.length>1||!isNumber(t)&&t.length>1){return invalidRange(e,t,n)}let s=n.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(n.toRegex&&r===1){return toRange(u,l,false,n)}let c=[];let f=0;while(a?i>=o:i<=o){c.push(s(i,f));i=a?i-r:i+r;f++}if(n.toRegex===true){return toRegex(c,null,{wrap:false,options:n})}return c};const fill=(e,t,r,n={})=>{if(t==null&&isValidValue(e)){return[e]}if(!isValidValue(e)||!isValidValue(t)){return invalidRange(e,t,n)}if(typeof r==="function"){return fill(e,t,1,{transform:r})}if(isObject(r)){return fill(e,t,0,r)}let s={...n};if(s.capture===true)s.wrap=true;r=r||s.step||1;if(!isNumber(r)){if(r!=null&&!isObject(r))return invalidStep(r,s);return fill(e,t,1,r)}if(isNumber(e)&&isNumber(t)){return fillNumbers(e,t,r,s)}return fillLetters(e,t,Math.max(Math.abs(r),1),s)};e.exports=fill},5680:e=>{
|
|
36
10
|
/*!
|
|
37
11
|
* is-number <https://github.com/jonschlinkert/is-number>
|
|
38
12
|
*
|
|
39
13
|
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
40
14
|
* Released under the MIT License.
|
|
41
15
|
*/
|
|
42
|
-
t.exports=function(t){if(typeof t==="number"){return t-t===0}if(typeof t==="string"&&t.trim()!==""){return Number.isFinite?Number.isFinite(+t):isFinite(+t)}return false}},1917:(t,r,i)=>{var o=i(1161);var a=i(8866);function renamed(t,r){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. "+"Use yaml."+r+" instead, which is now safe by default.")}}t.exports.Type=i(6073);t.exports.Schema=i(1082);t.exports.FAILSAFE_SCHEMA=i(8562);t.exports.JSON_SCHEMA=i(1035);t.exports.CORE_SCHEMA=i(2011);t.exports.DEFAULT_SCHEMA=i(8759);t.exports.load=o.load;t.exports.loadAll=o.loadAll;t.exports.dump=a.dump;t.exports.YAMLException=i(8179);t.exports.types={binary:i(7900),float:i(2705),map:i(6150),null:i(721),pairs:i(6860),set:i(9548),timestamp:i(9212),bool:i(4993),int:i(1615),merge:i(6104),omap:i(9046),seq:i(7283),str:i(3619)};t.exports.safeLoad=renamed("safeLoad","load");t.exports.safeLoadAll=renamed("safeLoadAll","loadAll");t.exports.safeDump=renamed("safeDump","dump")},6829:t=>{function isNothing(t){return typeof t==="undefined"||t===null}function isObject(t){return typeof t==="object"&&t!==null}function toArray(t){if(Array.isArray(t))return t;else if(isNothing(t))return[];return[t]}function extend(t,r){var i,o,a,u;if(r){u=Object.keys(r);for(i=0,o=u.length;i<o;i+=1){a=u[i];t[a]=r[a]}}return t}function repeat(t,r){var i="",o;for(o=0;o<r;o+=1){i+=t}return i}function isNegativeZero(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}t.exports.isNothing=isNothing;t.exports.isObject=isObject;t.exports.toArray=toArray;t.exports.repeat=repeat;t.exports.isNegativeZero=isNegativeZero;t.exports.extend=extend},8866:(t,r,i)=>{var o=i(6829);var a=i(8179);var u=i(8759);var l=Object.prototype.toString;var h=Object.prototype.hasOwnProperty;var d=65279;var p=9;var g=10;var y=13;var b=32;var w=33;var v=34;var E=35;var A=37;var _=38;var C=39;var S=42;var D=44;var x=45;var O=58;var R=61;var k=62;var P=63;var T=64;var M=91;var L=93;var I=96;var $=123;var N=124;var B=125;var j={};j[0]="\\0";j[7]="\\a";j[8]="\\b";j[9]="\\t";j[10]="\\n";j[11]="\\v";j[12]="\\f";j[13]="\\r";j[27]="\\e";j[34]='\\"';j[92]="\\\\";j[133]="\\N";j[160]="\\_";j[8232]="\\L";j[8233]="\\P";var H=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];var G=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function compileStyleMap(t,r){var i,o,a,u,l,d,p;if(r===null)return{};i={};o=Object.keys(r);for(a=0,u=o.length;a<u;a+=1){l=o[a];d=String(r[l]);if(l.slice(0,2)==="!!"){l="tag:yaml.org,2002:"+l.slice(2)}p=t.compiledTypeMap["fallback"][l];if(p&&h.call(p.styleAliases,d)){d=p.styleAliases[d]}i[l]=d}return i}function encodeHex(t){var r,i,u;r=t.toString(16).toUpperCase();if(t<=255){i="x";u=2}else if(t<=65535){i="u";u=4}else if(t<=4294967295){i="U";u=8}else{throw new a("code point within a string may not be greater than 0xFFFFFFFF")}return"\\"+i+o.repeat("0",u-r.length)+r}var U=1,W=2;function State(t){this.schema=t["schema"]||u;this.indent=Math.max(1,t["indent"]||2);this.noArrayIndent=t["noArrayIndent"]||false;this.skipInvalid=t["skipInvalid"]||false;this.flowLevel=o.isNothing(t["flowLevel"])?-1:t["flowLevel"];this.styleMap=compileStyleMap(this.schema,t["styles"]||null);this.sortKeys=t["sortKeys"]||false;this.lineWidth=t["lineWidth"]||80;this.noRefs=t["noRefs"]||false;this.noCompatMode=t["noCompatMode"]||false;this.condenseFlow=t["condenseFlow"]||false;this.quotingType=t["quotingType"]==='"'?W:U;this.forceQuotes=t["forceQuotes"]||false;this.replacer=typeof t["replacer"]==="function"?t["replacer"]:null;this.implicitTypes=this.schema.compiledImplicit;this.explicitTypes=this.schema.compiledExplicit;this.tag=null;this.result="";this.duplicates=[];this.usedDuplicates=null}function indentString(t,r){var i=o.repeat(" ",r),a=0,u=-1,l="",h,d=t.length;while(a<d){u=t.indexOf("\n",a);if(u===-1){h=t.slice(a);a=d}else{h=t.slice(a,u+1);a=u+1}if(h.length&&h!=="\n")l+=i;l+=h}return l}function generateNextLine(t,r){return"\n"+o.repeat(" ",t.indent*r)}function testImplicitResolving(t,r){var i,o,a;for(i=0,o=t.implicitTypes.length;i<o;i+=1){a=t.implicitTypes[i];if(a.resolve(r)){return true}}return false}function isWhitespace(t){return t===b||t===p}function isPrintable(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==d||65536<=t&&t<=1114111}function isNsCharOrWhitespace(t){return isPrintable(t)&&t!==d&&t!==y&&t!==g}function isPlainSafe(t,r,i){var o=isNsCharOrWhitespace(t);var a=o&&!isWhitespace(t);return(i?o:o&&t!==D&&t!==M&&t!==L&&t!==$&&t!==B)&&t!==E&&!(r===O&&!a)||isNsCharOrWhitespace(r)&&!isWhitespace(r)&&t===E||r===O&&a}function isPlainSafeFirst(t){return isPrintable(t)&&t!==d&&!isWhitespace(t)&&t!==x&&t!==P&&t!==O&&t!==D&&t!==M&&t!==L&&t!==$&&t!==B&&t!==E&&t!==_&&t!==S&&t!==w&&t!==N&&t!==R&&t!==k&&t!==C&&t!==v&&t!==A&&t!==T&&t!==I}function isPlainSafeLast(t){return!isWhitespace(t)&&t!==O}function codePointAt(t,r){var i=t.charCodeAt(r),o;if(i>=55296&&i<=56319&&r+1<t.length){o=t.charCodeAt(r+1);if(o>=56320&&o<=57343){return(i-55296)*1024+o-56320+65536}}return i}function needIndentIndicator(t){var r=/^\n* /;return r.test(t)}var z=1,Y=2,K=3,V=4,q=5;function chooseScalarStyle(t,r,i,o,a,u,l,h){var d;var p=0;var y=null;var b=false;var w=false;var v=o!==-1;var E=-1;var A=isPlainSafeFirst(codePointAt(t,0))&&isPlainSafeLast(codePointAt(t,t.length-1));if(r||l){for(d=0;d<t.length;p>=65536?d+=2:d++){p=codePointAt(t,d);if(!isPrintable(p)){return q}A=A&&isPlainSafe(p,y,h);y=p}}else{for(d=0;d<t.length;p>=65536?d+=2:d++){p=codePointAt(t,d);if(p===g){b=true;if(v){w=w||d-E-1>o&&t[E+1]!==" ";E=d}}else if(!isPrintable(p)){return q}A=A&&isPlainSafe(p,y,h);y=p}w=w||v&&(d-E-1>o&&t[E+1]!==" ")}if(!b&&!w){if(A&&!l&&!a(t)){return z}return u===W?q:Y}if(i>9&&needIndentIndicator(t)){return q}if(!l){return w?V:K}return u===W?q:Y}function writeScalar(t,r,i,o,u){t.dump=function(){if(r.length===0){return t.quotingType===W?'""':"''"}if(!t.noCompatMode){if(H.indexOf(r)!==-1||G.test(r)){return t.quotingType===W?'"'+r+'"':"'"+r+"'"}}var l=t.indent*Math.max(1,i);var h=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-l);var d=o||t.flowLevel>-1&&i>=t.flowLevel;function testAmbiguity(r){return testImplicitResolving(t,r)}switch(chooseScalarStyle(r,d,t.indent,h,testAmbiguity,t.quotingType,t.forceQuotes&&!o,u)){case z:return r;case Y:return"'"+r.replace(/'/g,"''")+"'";case K:return"|"+blockHeader(r,t.indent)+dropEndingNewline(indentString(r,l));case V:return">"+blockHeader(r,t.indent)+dropEndingNewline(indentString(foldString(r,h),l));case q:return'"'+escapeString(r,h)+'"';default:throw new a("impossible error: invalid scalar style")}}()}function blockHeader(t,r){var i=needIndentIndicator(t)?String(r):"";var o=t[t.length-1]==="\n";var a=o&&(t[t.length-2]==="\n"||t==="\n");var u=a?"+":o?"":"-";return i+u+"\n"}function dropEndingNewline(t){return t[t.length-1]==="\n"?t.slice(0,-1):t}function foldString(t,r){var i=/(\n+)([^\n]*)/g;var o=function(){var o=t.indexOf("\n");o=o!==-1?o:t.length;i.lastIndex=o;return foldLine(t.slice(0,o),r)}();var a=t[0]==="\n"||t[0]===" ";var u;var l;while(l=i.exec(t)){var h=l[1],d=l[2];u=d[0]===" ";o+=h+(!a&&!u&&d!==""?"\n":"")+foldLine(d,r);a=u}return o}function foldLine(t,r){if(t===""||t[0]===" ")return t;var i=/ [^ ]/g;var o;var a=0,u,l=0,h=0;var d="";while(o=i.exec(t)){h=o.index;if(h-a>r){u=l>a?l:h;d+="\n"+t.slice(a,u);a=u+1}l=h}d+="\n";if(t.length-a>r&&l>a){d+=t.slice(a,l)+"\n"+t.slice(l+1)}else{d+=t.slice(a)}return d.slice(1)}function escapeString(t){var r="";var i=0;var o;for(var a=0;a<t.length;i>=65536?a+=2:a++){i=codePointAt(t,a);o=j[i];if(!o&&isPrintable(i)){r+=t[a];if(i>=65536)r+=t[a+1]}else{r+=o||encodeHex(i)}}return r}function writeFlowSequence(t,r,i){var o="",a=t.tag,u,l,h;for(u=0,l=i.length;u<l;u+=1){h=i[u];if(t.replacer){h=t.replacer.call(i,String(u),h)}if(writeNode(t,r,h,false,false)||typeof h==="undefined"&&writeNode(t,r,null,false,false)){if(o!=="")o+=","+(!t.condenseFlow?" ":"");o+=t.dump}}t.tag=a;t.dump="["+o+"]"}function writeBlockSequence(t,r,i,o){var a="",u=t.tag,l,h,d;for(l=0,h=i.length;l<h;l+=1){d=i[l];if(t.replacer){d=t.replacer.call(i,String(l),d)}if(writeNode(t,r+1,d,true,true,false,true)||typeof d==="undefined"&&writeNode(t,r+1,null,true,true,false,true)){if(!o||a!==""){a+=generateNextLine(t,r)}if(t.dump&&g===t.dump.charCodeAt(0)){a+="-"}else{a+="- "}a+=t.dump}}t.tag=u;t.dump=a||"[]"}function writeFlowMapping(t,r,i){var o="",a=t.tag,u=Object.keys(i),l,h,d,p,g;for(l=0,h=u.length;l<h;l+=1){g="";if(o!=="")g+=", ";if(t.condenseFlow)g+='"';d=u[l];p=i[d];if(t.replacer){p=t.replacer.call(i,d,p)}if(!writeNode(t,r,d,false,false)){continue}if(t.dump.length>1024)g+="? ";g+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" ");if(!writeNode(t,r,p,false,false)){continue}g+=t.dump;o+=g}t.tag=a;t.dump="{"+o+"}"}function writeBlockMapping(t,r,i,o){var u="",l=t.tag,h=Object.keys(i),d,p,y,b,w,v;if(t.sortKeys===true){h.sort()}else if(typeof t.sortKeys==="function"){h.sort(t.sortKeys)}else if(t.sortKeys){throw new a("sortKeys must be a boolean or a function")}for(d=0,p=h.length;d<p;d+=1){v="";if(!o||u!==""){v+=generateNextLine(t,r)}y=h[d];b=i[y];if(t.replacer){b=t.replacer.call(i,y,b)}if(!writeNode(t,r+1,y,true,true,true)){continue}w=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024;if(w){if(t.dump&&g===t.dump.charCodeAt(0)){v+="?"}else{v+="? "}}v+=t.dump;if(w){v+=generateNextLine(t,r)}if(!writeNode(t,r+1,b,true,w)){continue}if(t.dump&&g===t.dump.charCodeAt(0)){v+=":"}else{v+=": "}v+=t.dump;u+=v}t.tag=l;t.dump=u||"{}"}function detectType(t,r,i){var o,u,d,p,g,y;u=i?t.explicitTypes:t.implicitTypes;for(d=0,p=u.length;d<p;d+=1){g=u[d];if((g.instanceOf||g.predicate)&&(!g.instanceOf||typeof r==="object"&&r instanceof g.instanceOf)&&(!g.predicate||g.predicate(r))){if(i){if(g.multi&&g.representName){t.tag=g.representName(r)}else{t.tag=g.tag}}else{t.tag="?"}if(g.represent){y=t.styleMap[g.tag]||g.defaultStyle;if(l.call(g.represent)==="[object Function]"){o=g.represent(r,y)}else if(h.call(g.represent,y)){o=g.represent[y](r,y)}else{throw new a("!<"+g.tag+'> tag resolver accepts not "'+y+'" style')}t.dump=o}return true}}return false}function writeNode(t,r,i,o,u,h,d){t.tag=null;t.dump=i;if(!detectType(t,i,false)){detectType(t,i,true)}var p=l.call(t.dump);var g=o;var y;if(o){o=t.flowLevel<0||t.flowLevel>r}var b=p==="[object Object]"||p==="[object Array]",w,v;if(b){w=t.duplicates.indexOf(i);v=w!==-1}if(t.tag!==null&&t.tag!=="?"||v||t.indent!==2&&r>0){u=false}if(v&&t.usedDuplicates[w]){t.dump="*ref_"+w}else{if(b&&v&&!t.usedDuplicates[w]){t.usedDuplicates[w]=true}if(p==="[object Object]"){if(o&&Object.keys(t.dump).length!==0){writeBlockMapping(t,r,t.dump,u);if(v){t.dump="&ref_"+w+t.dump}}else{writeFlowMapping(t,r,t.dump);if(v){t.dump="&ref_"+w+" "+t.dump}}}else if(p==="[object Array]"){if(o&&t.dump.length!==0){if(t.noArrayIndent&&!d&&r>0){writeBlockSequence(t,r-1,t.dump,u)}else{writeBlockSequence(t,r,t.dump,u)}if(v){t.dump="&ref_"+w+t.dump}}else{writeFlowSequence(t,r,t.dump);if(v){t.dump="&ref_"+w+" "+t.dump}}}else if(p==="[object String]"){if(t.tag!=="?"){writeScalar(t,t.dump,r,h,g)}}else if(p==="[object Undefined]"){return false}else{if(t.skipInvalid)return false;throw new a("unacceptable kind of an object to dump "+p)}if(t.tag!==null&&t.tag!=="?"){y=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21");if(t.tag[0]==="!"){y="!"+y}else if(y.slice(0,18)==="tag:yaml.org,2002:"){y="!!"+y.slice(18)}else{y="!<"+y+">"}t.dump=y+" "+t.dump}}return true}function getDuplicateReferences(t,r){var i=[],o=[],a,u;inspectNode(t,i,o);for(a=0,u=o.length;a<u;a+=1){r.duplicates.push(i[o[a]])}r.usedDuplicates=new Array(u)}function inspectNode(t,r,i){var o,a,u;if(t!==null&&typeof t==="object"){a=r.indexOf(t);if(a!==-1){if(i.indexOf(a)===-1){i.push(a)}}else{r.push(t);if(Array.isArray(t)){for(a=0,u=t.length;a<u;a+=1){inspectNode(t[a],r,i)}}else{o=Object.keys(t);for(a=0,u=o.length;a<u;a+=1){inspectNode(t[o[a]],r,i)}}}}}function dump(t,r){r=r||{};var i=new State(r);if(!i.noRefs)getDuplicateReferences(t,i);var o=t;if(i.replacer){o=i.replacer.call({"":o},"",o)}if(writeNode(i,0,o,true,true))return i.dump+"\n";return""}t.exports.dump=dump},8179:t=>{function formatError(t,r){var i="",o=t.reason||"(unknown reason)";if(!t.mark)return o;if(t.mark.name){i+='in "'+t.mark.name+'" '}i+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")";if(!r&&t.mark.snippet){i+="\n\n"+t.mark.snippet}return o+" "+i}function YAMLException(t,r){Error.call(this);this.name="YAMLException";this.reason=t;this.mark=r;this.message=formatError(this,false);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack||""}}YAMLException.prototype=Object.create(Error.prototype);YAMLException.prototype.constructor=YAMLException;YAMLException.prototype.toString=function toString(t){return this.name+": "+formatError(this,t)};t.exports=YAMLException},1161:(t,r,i)=>{var o=i(6829);var a=i(8179);var u=i(6975);var l=i(8759);var h=Object.prototype.hasOwnProperty;var d=1;var p=2;var g=3;var y=4;var b=1;var w=2;var v=3;var E=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;var A=/[\x85\u2028\u2029]/;var _=/[,\[\]\{\}]/;var C=/^(?:!|!!|![a-z\-]+!)$/i;var S=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function _class(t){return Object.prototype.toString.call(t)}function is_EOL(t){return t===10||t===13}function is_WHITE_SPACE(t){return t===9||t===32}function is_WS_OR_EOL(t){return t===9||t===32||t===10||t===13}function is_FLOW_INDICATOR(t){return t===44||t===91||t===93||t===123||t===125}function fromHexCode(t){var r;if(48<=t&&t<=57){return t-48}r=t|32;if(97<=r&&r<=102){return r-97+10}return-1}function escapedHexLen(t){if(t===120){return 2}if(t===117){return 4}if(t===85){return 8}return 0}function fromDecimalCode(t){if(48<=t&&t<=57){return t-48}return-1}function simpleEscapeSequence(t){return t===48?"\0":t===97?"":t===98?"\b":t===116?"\t":t===9?"\t":t===110?"\n":t===118?"\v":t===102?"\f":t===114?"\r":t===101?"":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"
":t===95?" ":t===76?"\u2028":t===80?"\u2029":""}function charFromCodepoint(t){if(t<=65535){return String.fromCharCode(t)}return String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var D=new Array(256);var x=new Array(256);for(var O=0;O<256;O++){D[O]=simpleEscapeSequence(O)?1:0;x[O]=simpleEscapeSequence(O)}function State(t,r){this.input=t;this.filename=r["filename"]||null;this.schema=r["schema"]||l;this.onWarning=r["onWarning"]||null;this.legacy=r["legacy"]||false;this.json=r["json"]||false;this.listener=r["listener"]||null;this.implicitTypes=this.schema.compiledImplicit;this.typeMap=this.schema.compiledTypeMap;this.length=t.length;this.position=0;this.line=0;this.lineStart=0;this.lineIndent=0;this.firstTabInLine=-1;this.documents=[]}function generateError(t,r){var i={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};i.snippet=u(i);return new a(r,i)}function throwError(t,r){throw generateError(t,r)}function throwWarning(t,r){if(t.onWarning){t.onWarning.call(null,generateError(t,r))}}var R={YAML:function handleYamlDirective(t,r,i){var o,a,u;if(t.version!==null){throwError(t,"duplication of %YAML directive")}if(i.length!==1){throwError(t,"YAML directive accepts exactly one argument")}o=/^([0-9]+)\.([0-9]+)$/.exec(i[0]);if(o===null){throwError(t,"ill-formed argument of the YAML directive")}a=parseInt(o[1],10);u=parseInt(o[2],10);if(a!==1){throwError(t,"unacceptable YAML version of the document")}t.version=i[0];t.checkLineBreaks=u<2;if(u!==1&&u!==2){throwWarning(t,"unsupported YAML version of the document")}},TAG:function handleTagDirective(t,r,i){var o,a;if(i.length!==2){throwError(t,"TAG directive accepts exactly two arguments")}o=i[0];a=i[1];if(!C.test(o)){throwError(t,"ill-formed tag handle (first argument) of the TAG directive")}if(h.call(t.tagMap,o)){throwError(t,'there is a previously declared suffix for "'+o+'" tag handle')}if(!S.test(a)){throwError(t,"ill-formed tag prefix (second argument) of the TAG directive")}try{a=decodeURIComponent(a)}catch(r){throwError(t,"tag prefix is malformed: "+a)}t.tagMap[o]=a}};function captureSegment(t,r,i,o){var a,u,l,h;if(r<i){h=t.input.slice(r,i);if(o){for(a=0,u=h.length;a<u;a+=1){l=h.charCodeAt(a);if(!(l===9||32<=l&&l<=1114111)){throwError(t,"expected valid JSON character")}}}else if(E.test(h)){throwError(t,"the stream contains non-printable characters")}t.result+=h}}function mergeMappings(t,r,i,a){var u,l,d,p;if(!o.isObject(i)){throwError(t,"cannot merge mappings; the provided source object is unacceptable")}u=Object.keys(i);for(d=0,p=u.length;d<p;d+=1){l=u[d];if(!h.call(r,l)){r[l]=i[l];a[l]=true}}}function storeMappingPair(t,r,i,o,a,u,l,d,p){var g,y;if(Array.isArray(a)){a=Array.prototype.slice.call(a);for(g=0,y=a.length;g<y;g+=1){if(Array.isArray(a[g])){throwError(t,"nested arrays are not supported inside keys")}if(typeof a==="object"&&_class(a[g])==="[object Object]"){a[g]="[object Object]"}}}if(typeof a==="object"&&_class(a)==="[object Object]"){a="[object Object]"}a=String(a);if(r===null){r={}}if(o==="tag:yaml.org,2002:merge"){if(Array.isArray(u)){for(g=0,y=u.length;g<y;g+=1){mergeMappings(t,r,u[g],i)}}else{mergeMappings(t,r,u,i)}}else{if(!t.json&&!h.call(i,a)&&h.call(r,a)){t.line=l||t.line;t.lineStart=d||t.lineStart;t.position=p||t.position;throwError(t,"duplicated mapping key")}if(a==="__proto__"){Object.defineProperty(r,a,{configurable:true,enumerable:true,writable:true,value:u})}else{r[a]=u}delete i[a]}return r}function readLineBreak(t){var r;r=t.input.charCodeAt(t.position);if(r===10){t.position++}else if(r===13){t.position++;if(t.input.charCodeAt(t.position)===10){t.position++}}else{throwError(t,"a line break is expected")}t.line+=1;t.lineStart=t.position;t.firstTabInLine=-1}function skipSeparationSpace(t,r,i){var o=0,a=t.input.charCodeAt(t.position);while(a!==0){while(is_WHITE_SPACE(a)){if(a===9&&t.firstTabInLine===-1){t.firstTabInLine=t.position}a=t.input.charCodeAt(++t.position)}if(r&&a===35){do{a=t.input.charCodeAt(++t.position)}while(a!==10&&a!==13&&a!==0)}if(is_EOL(a)){readLineBreak(t);a=t.input.charCodeAt(t.position);o++;t.lineIndent=0;while(a===32){t.lineIndent++;a=t.input.charCodeAt(++t.position)}}else{break}}if(i!==-1&&o!==0&&t.lineIndent<i){throwWarning(t,"deficient indentation")}return o}function testDocumentSeparator(t){var r=t.position,i;i=t.input.charCodeAt(r);if((i===45||i===46)&&i===t.input.charCodeAt(r+1)&&i===t.input.charCodeAt(r+2)){r+=3;i=t.input.charCodeAt(r);if(i===0||is_WS_OR_EOL(i)){return true}}return false}function writeFoldedLines(t,r){if(r===1){t.result+=" "}else if(r>1){t.result+=o.repeat("\n",r-1)}}function readPlainScalar(t,r,i){var o,a,u,l,h,d,p,g,y=t.kind,b=t.result,w;w=t.input.charCodeAt(t.position);if(is_WS_OR_EOL(w)||is_FLOW_INDICATOR(w)||w===35||w===38||w===42||w===33||w===124||w===62||w===39||w===34||w===37||w===64||w===96){return false}if(w===63||w===45){a=t.input.charCodeAt(t.position+1);if(is_WS_OR_EOL(a)||i&&is_FLOW_INDICATOR(a)){return false}}t.kind="scalar";t.result="";u=l=t.position;h=false;while(w!==0){if(w===58){a=t.input.charCodeAt(t.position+1);if(is_WS_OR_EOL(a)||i&&is_FLOW_INDICATOR(a)){break}}else if(w===35){o=t.input.charCodeAt(t.position-1);if(is_WS_OR_EOL(o)){break}}else if(t.position===t.lineStart&&testDocumentSeparator(t)||i&&is_FLOW_INDICATOR(w)){break}else if(is_EOL(w)){d=t.line;p=t.lineStart;g=t.lineIndent;skipSeparationSpace(t,false,-1);if(t.lineIndent>=r){h=true;w=t.input.charCodeAt(t.position);continue}else{t.position=l;t.line=d;t.lineStart=p;t.lineIndent=g;break}}if(h){captureSegment(t,u,l,false);writeFoldedLines(t,t.line-d);u=l=t.position;h=false}if(!is_WHITE_SPACE(w)){l=t.position+1}w=t.input.charCodeAt(++t.position)}captureSegment(t,u,l,false);if(t.result){return true}t.kind=y;t.result=b;return false}function readSingleQuotedScalar(t,r){var i,o,a;i=t.input.charCodeAt(t.position);if(i!==39){return false}t.kind="scalar";t.result="";t.position++;o=a=t.position;while((i=t.input.charCodeAt(t.position))!==0){if(i===39){captureSegment(t,o,t.position,true);i=t.input.charCodeAt(++t.position);if(i===39){o=t.position;t.position++;a=t.position}else{return true}}else if(is_EOL(i)){captureSegment(t,o,a,true);writeFoldedLines(t,skipSeparationSpace(t,false,r));o=a=t.position}else if(t.position===t.lineStart&&testDocumentSeparator(t)){throwError(t,"unexpected end of the document within a single quoted scalar")}else{t.position++;a=t.position}}throwError(t,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(t,r){var i,o,a,u,l,h;h=t.input.charCodeAt(t.position);if(h!==34){return false}t.kind="scalar";t.result="";t.position++;i=o=t.position;while((h=t.input.charCodeAt(t.position))!==0){if(h===34){captureSegment(t,i,t.position,true);t.position++;return true}else if(h===92){captureSegment(t,i,t.position,true);h=t.input.charCodeAt(++t.position);if(is_EOL(h)){skipSeparationSpace(t,false,r)}else if(h<256&&D[h]){t.result+=x[h];t.position++}else if((l=escapedHexLen(h))>0){a=l;u=0;for(;a>0;a--){h=t.input.charCodeAt(++t.position);if((l=fromHexCode(h))>=0){u=(u<<4)+l}else{throwError(t,"expected hexadecimal character")}}t.result+=charFromCodepoint(u);t.position++}else{throwError(t,"unknown escape sequence")}i=o=t.position}else if(is_EOL(h)){captureSegment(t,i,o,true);writeFoldedLines(t,skipSeparationSpace(t,false,r));i=o=t.position}else if(t.position===t.lineStart&&testDocumentSeparator(t)){throwError(t,"unexpected end of the document within a double quoted scalar")}else{t.position++;o=t.position}}throwError(t,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(t,r){var i=true,o,a,u,l=t.tag,h,p=t.anchor,g,y,b,w,v,E=Object.create(null),A,_,C,S;S=t.input.charCodeAt(t.position);if(S===91){y=93;v=false;h=[]}else if(S===123){y=125;v=true;h={}}else{return false}if(t.anchor!==null){t.anchorMap[t.anchor]=h}S=t.input.charCodeAt(++t.position);while(S!==0){skipSeparationSpace(t,true,r);S=t.input.charCodeAt(t.position);if(S===y){t.position++;t.tag=l;t.anchor=p;t.kind=v?"mapping":"sequence";t.result=h;return true}else if(!i){throwError(t,"missed comma between flow collection entries")}else if(S===44){throwError(t,"expected the node content, but found ','")}_=A=C=null;b=w=false;if(S===63){g=t.input.charCodeAt(t.position+1);if(is_WS_OR_EOL(g)){b=w=true;t.position++;skipSeparationSpace(t,true,r)}}o=t.line;a=t.lineStart;u=t.position;composeNode(t,r,d,false,true);_=t.tag;A=t.result;skipSeparationSpace(t,true,r);S=t.input.charCodeAt(t.position);if((w||t.line===o)&&S===58){b=true;S=t.input.charCodeAt(++t.position);skipSeparationSpace(t,true,r);composeNode(t,r,d,false,true);C=t.result}if(v){storeMappingPair(t,h,E,_,A,C,o,a,u)}else if(b){h.push(storeMappingPair(t,null,E,_,A,C,o,a,u))}else{h.push(A)}skipSeparationSpace(t,true,r);S=t.input.charCodeAt(t.position);if(S===44){i=true;S=t.input.charCodeAt(++t.position)}else{i=false}}throwError(t,"unexpected end of the stream within a flow collection")}function readBlockScalar(t,r){var i,a,u=b,l=false,h=false,d=r,p=0,g=false,y,E;E=t.input.charCodeAt(t.position);if(E===124){a=false}else if(E===62){a=true}else{return false}t.kind="scalar";t.result="";while(E!==0){E=t.input.charCodeAt(++t.position);if(E===43||E===45){if(b===u){u=E===43?v:w}else{throwError(t,"repeat of a chomping mode identifier")}}else if((y=fromDecimalCode(E))>=0){if(y===0){throwError(t,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!h){d=r+y-1;h=true}else{throwError(t,"repeat of an indentation width identifier")}}else{break}}if(is_WHITE_SPACE(E)){do{E=t.input.charCodeAt(++t.position)}while(is_WHITE_SPACE(E));if(E===35){do{E=t.input.charCodeAt(++t.position)}while(!is_EOL(E)&&E!==0)}}while(E!==0){readLineBreak(t);t.lineIndent=0;E=t.input.charCodeAt(t.position);while((!h||t.lineIndent<d)&&E===32){t.lineIndent++;E=t.input.charCodeAt(++t.position)}if(!h&&t.lineIndent>d){d=t.lineIndent}if(is_EOL(E)){p++;continue}if(t.lineIndent<d){if(u===v){t.result+=o.repeat("\n",l?1+p:p)}else if(u===b){if(l){t.result+="\n"}}break}if(a){if(is_WHITE_SPACE(E)){g=true;t.result+=o.repeat("\n",l?1+p:p)}else if(g){g=false;t.result+=o.repeat("\n",p+1)}else if(p===0){if(l){t.result+=" "}}else{t.result+=o.repeat("\n",p)}}else{t.result+=o.repeat("\n",l?1+p:p)}l=true;h=true;p=0;i=t.position;while(!is_EOL(E)&&E!==0){E=t.input.charCodeAt(++t.position)}captureSegment(t,i,t.position,false)}return true}function readBlockSequence(t,r){var i,o=t.tag,a=t.anchor,u=[],l,h=false,d;if(t.firstTabInLine!==-1)return false;if(t.anchor!==null){t.anchorMap[t.anchor]=u}d=t.input.charCodeAt(t.position);while(d!==0){if(t.firstTabInLine!==-1){t.position=t.firstTabInLine;throwError(t,"tab characters must not be used in indentation")}if(d!==45){break}l=t.input.charCodeAt(t.position+1);if(!is_WS_OR_EOL(l)){break}h=true;t.position++;if(skipSeparationSpace(t,true,-1)){if(t.lineIndent<=r){u.push(null);d=t.input.charCodeAt(t.position);continue}}i=t.line;composeNode(t,r,g,false,true);u.push(t.result);skipSeparationSpace(t,true,-1);d=t.input.charCodeAt(t.position);if((t.line===i||t.lineIndent>r)&&d!==0){throwError(t,"bad indentation of a sequence entry")}else if(t.lineIndent<r){break}}if(h){t.tag=o;t.anchor=a;t.kind="sequence";t.result=u;return true}return false}function readBlockMapping(t,r,i){var o,a,u,l,h,d,g=t.tag,b=t.anchor,w={},v=Object.create(null),E=null,A=null,_=null,C=false,S=false,D;if(t.firstTabInLine!==-1)return false;if(t.anchor!==null){t.anchorMap[t.anchor]=w}D=t.input.charCodeAt(t.position);while(D!==0){if(!C&&t.firstTabInLine!==-1){t.position=t.firstTabInLine;throwError(t,"tab characters must not be used in indentation")}o=t.input.charCodeAt(t.position+1);u=t.line;if((D===63||D===58)&&is_WS_OR_EOL(o)){if(D===63){if(C){storeMappingPair(t,w,v,E,A,null,l,h,d);E=A=_=null}S=true;C=true;a=true}else if(C){C=false;a=true}else{throwError(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line")}t.position+=1;D=o}else{l=t.line;h=t.lineStart;d=t.position;if(!composeNode(t,i,p,false,true)){break}if(t.line===u){D=t.input.charCodeAt(t.position);while(is_WHITE_SPACE(D)){D=t.input.charCodeAt(++t.position)}if(D===58){D=t.input.charCodeAt(++t.position);if(!is_WS_OR_EOL(D)){throwError(t,"a whitespace character is expected after the key-value separator within a block mapping")}if(C){storeMappingPair(t,w,v,E,A,null,l,h,d);E=A=_=null}S=true;C=false;a=false;E=t.tag;A=t.result}else if(S){throwError(t,"can not read an implicit mapping pair; a colon is missed")}else{t.tag=g;t.anchor=b;return true}}else if(S){throwError(t,"can not read a block mapping entry; a multiline key may not be an implicit key")}else{t.tag=g;t.anchor=b;return true}}if(t.line===u||t.lineIndent>r){if(C){l=t.line;h=t.lineStart;d=t.position}if(composeNode(t,r,y,true,a)){if(C){A=t.result}else{_=t.result}}if(!C){storeMappingPair(t,w,v,E,A,_,l,h,d);E=A=_=null}skipSeparationSpace(t,true,-1);D=t.input.charCodeAt(t.position)}if((t.line===u||t.lineIndent>r)&&D!==0){throwError(t,"bad indentation of a mapping entry")}else if(t.lineIndent<r){break}}if(C){storeMappingPair(t,w,v,E,A,null,l,h,d)}if(S){t.tag=g;t.anchor=b;t.kind="mapping";t.result=w}return S}function readTagProperty(t){var r,i=false,o=false,a,u,l;l=t.input.charCodeAt(t.position);if(l!==33)return false;if(t.tag!==null){throwError(t,"duplication of a tag property")}l=t.input.charCodeAt(++t.position);if(l===60){i=true;l=t.input.charCodeAt(++t.position)}else if(l===33){o=true;a="!!";l=t.input.charCodeAt(++t.position)}else{a="!"}r=t.position;if(i){do{l=t.input.charCodeAt(++t.position)}while(l!==0&&l!==62);if(t.position<t.length){u=t.input.slice(r,t.position);l=t.input.charCodeAt(++t.position)}else{throwError(t,"unexpected end of the stream within a verbatim tag")}}else{while(l!==0&&!is_WS_OR_EOL(l)){if(l===33){if(!o){a=t.input.slice(r-1,t.position+1);if(!C.test(a)){throwError(t,"named tag handle cannot contain such characters")}o=true;r=t.position+1}else{throwError(t,"tag suffix cannot contain exclamation marks")}}l=t.input.charCodeAt(++t.position)}u=t.input.slice(r,t.position);if(_.test(u)){throwError(t,"tag suffix cannot contain flow indicator characters")}}if(u&&!S.test(u)){throwError(t,"tag name cannot contain such characters: "+u)}try{u=decodeURIComponent(u)}catch(r){throwError(t,"tag name is malformed: "+u)}if(i){t.tag=u}else if(h.call(t.tagMap,a)){t.tag=t.tagMap[a]+u}else if(a==="!"){t.tag="!"+u}else if(a==="!!"){t.tag="tag:yaml.org,2002:"+u}else{throwError(t,'undeclared tag handle "'+a+'"')}return true}function readAnchorProperty(t){var r,i;i=t.input.charCodeAt(t.position);if(i!==38)return false;if(t.anchor!==null){throwError(t,"duplication of an anchor property")}i=t.input.charCodeAt(++t.position);r=t.position;while(i!==0&&!is_WS_OR_EOL(i)&&!is_FLOW_INDICATOR(i)){i=t.input.charCodeAt(++t.position)}if(t.position===r){throwError(t,"name of an anchor node must contain at least one character")}t.anchor=t.input.slice(r,t.position);return true}function readAlias(t){var r,i,o;o=t.input.charCodeAt(t.position);if(o!==42)return false;o=t.input.charCodeAt(++t.position);r=t.position;while(o!==0&&!is_WS_OR_EOL(o)&&!is_FLOW_INDICATOR(o)){o=t.input.charCodeAt(++t.position)}if(t.position===r){throwError(t,"name of an alias node must contain at least one character")}i=t.input.slice(r,t.position);if(!h.call(t.anchorMap,i)){throwError(t,'unidentified alias "'+i+'"')}t.result=t.anchorMap[i];skipSeparationSpace(t,true,-1);return true}function composeNode(t,r,i,o,a){var u,l,b,w=1,v=false,E=false,A,_,C,S,D,x;if(t.listener!==null){t.listener("open",t)}t.tag=null;t.anchor=null;t.kind=null;t.result=null;u=l=b=y===i||g===i;if(o){if(skipSeparationSpace(t,true,-1)){v=true;if(t.lineIndent>r){w=1}else if(t.lineIndent===r){w=0}else if(t.lineIndent<r){w=-1}}}if(w===1){while(readTagProperty(t)||readAnchorProperty(t)){if(skipSeparationSpace(t,true,-1)){v=true;b=u;if(t.lineIndent>r){w=1}else if(t.lineIndent===r){w=0}else if(t.lineIndent<r){w=-1}}else{b=false}}}if(b){b=v||a}if(w===1||y===i){if(d===i||p===i){D=r}else{D=r+1}x=t.position-t.lineStart;if(w===1){if(b&&(readBlockSequence(t,x)||readBlockMapping(t,x,D))||readFlowCollection(t,D)){E=true}else{if(l&&readBlockScalar(t,D)||readSingleQuotedScalar(t,D)||readDoubleQuotedScalar(t,D)){E=true}else if(readAlias(t)){E=true;if(t.tag!==null||t.anchor!==null){throwError(t,"alias node should not have any properties")}}else if(readPlainScalar(t,D,d===i)){E=true;if(t.tag===null){t.tag="?"}}if(t.anchor!==null){t.anchorMap[t.anchor]=t.result}}}else if(w===0){E=b&&readBlockSequence(t,x)}}if(t.tag===null){if(t.anchor!==null){t.anchorMap[t.anchor]=t.result}}else if(t.tag==="?"){if(t.result!==null&&t.kind!=="scalar"){throwError(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"')}for(A=0,_=t.implicitTypes.length;A<_;A+=1){S=t.implicitTypes[A];if(S.resolve(t.result)){t.result=S.construct(t.result);t.tag=S.tag;if(t.anchor!==null){t.anchorMap[t.anchor]=t.result}break}}}else if(t.tag!=="!"){if(h.call(t.typeMap[t.kind||"fallback"],t.tag)){S=t.typeMap[t.kind||"fallback"][t.tag]}else{S=null;C=t.typeMap.multi[t.kind||"fallback"];for(A=0,_=C.length;A<_;A+=1){if(t.tag.slice(0,C[A].tag.length)===C[A].tag){S=C[A];break}}}if(!S){throwError(t,"unknown tag !<"+t.tag+">")}if(t.result!==null&&S.kind!==t.kind){throwError(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+S.kind+'", not "'+t.kind+'"')}if(!S.resolve(t.result,t.tag)){throwError(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}else{t.result=S.construct(t.result,t.tag);if(t.anchor!==null){t.anchorMap[t.anchor]=t.result}}}if(t.listener!==null){t.listener("close",t)}return t.tag!==null||t.anchor!==null||E}function readDocument(t){var r=t.position,i,o,a,u=false,l;t.version=null;t.checkLineBreaks=t.legacy;t.tagMap=Object.create(null);t.anchorMap=Object.create(null);while((l=t.input.charCodeAt(t.position))!==0){skipSeparationSpace(t,true,-1);l=t.input.charCodeAt(t.position);if(t.lineIndent>0||l!==37){break}u=true;l=t.input.charCodeAt(++t.position);i=t.position;while(l!==0&&!is_WS_OR_EOL(l)){l=t.input.charCodeAt(++t.position)}o=t.input.slice(i,t.position);a=[];if(o.length<1){throwError(t,"directive name must not be less than one character in length")}while(l!==0){while(is_WHITE_SPACE(l)){l=t.input.charCodeAt(++t.position)}if(l===35){do{l=t.input.charCodeAt(++t.position)}while(l!==0&&!is_EOL(l));break}if(is_EOL(l))break;i=t.position;while(l!==0&&!is_WS_OR_EOL(l)){l=t.input.charCodeAt(++t.position)}a.push(t.input.slice(i,t.position))}if(l!==0)readLineBreak(t);if(h.call(R,o)){R[o](t,o,a)}else{throwWarning(t,'unknown document directive "'+o+'"')}}skipSeparationSpace(t,true,-1);if(t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45){t.position+=3;skipSeparationSpace(t,true,-1)}else if(u){throwError(t,"directives end mark is expected")}composeNode(t,t.lineIndent-1,y,false,true);skipSeparationSpace(t,true,-1);if(t.checkLineBreaks&&A.test(t.input.slice(r,t.position))){throwWarning(t,"non-ASCII line breaks are interpreted as content")}t.documents.push(t.result);if(t.position===t.lineStart&&testDocumentSeparator(t)){if(t.input.charCodeAt(t.position)===46){t.position+=3;skipSeparationSpace(t,true,-1)}return}if(t.position<t.length-1){throwError(t,"end of the stream or a document separator is expected")}else{return}}function loadDocuments(t,r){t=String(t);r=r||{};if(t.length!==0){if(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13){t+="\n"}if(t.charCodeAt(0)===65279){t=t.slice(1)}}var i=new State(t,r);var o=t.indexOf("\0");if(o!==-1){i.position=o;throwError(i,"null byte is not allowed in input")}i.input+="\0";while(i.input.charCodeAt(i.position)===32){i.lineIndent+=1;i.position+=1}while(i.position<i.length-1){readDocument(i)}return i.documents}function loadAll(t,r,i){if(r!==null&&typeof r==="object"&&typeof i==="undefined"){i=r;r=null}var o=loadDocuments(t,i);if(typeof r!=="function"){return o}for(var a=0,u=o.length;a<u;a+=1){r(o[a])}}function load(t,r){var i=loadDocuments(t,r);if(i.length===0){return undefined}else if(i.length===1){return i[0]}throw new a("expected a single document in the stream, but found more")}t.exports.loadAll=loadAll;t.exports.load=load},1082:(t,r,i)=>{var o=i(8179);var a=i(6073);function compileList(t,r){var i=[];t[r].forEach((function(t){var r=i.length;i.forEach((function(i,o){if(i.tag===t.tag&&i.kind===t.kind&&i.multi===t.multi){r=o}}));i[r]=t}));return i}function compileMap(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},r,i;function collectType(r){if(r.multi){t.multi[r.kind].push(r);t.multi["fallback"].push(r)}else{t[r.kind][r.tag]=t["fallback"][r.tag]=r}}for(r=0,i=arguments.length;r<i;r+=1){arguments[r].forEach(collectType)}return t}function Schema(t){return this.extend(t)}Schema.prototype.extend=function extend(t){var r=[];var i=[];if(t instanceof a){i.push(t)}else if(Array.isArray(t)){i=i.concat(t)}else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit))){if(t.implicit)r=r.concat(t.implicit);if(t.explicit)i=i.concat(t.explicit)}else{throw new o("Schema.extend argument should be a Type, [ Type ], "+"or a schema definition ({ implicit: [...], explicit: [...] })")}r.forEach((function(t){if(!(t instanceof a)){throw new o("Specified list of YAML types (or a single Type object) contains a non-Type object.")}if(t.loadKind&&t.loadKind!=="scalar"){throw new o("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}if(t.multi){throw new o("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}}));i.forEach((function(t){if(!(t instanceof a)){throw new o("Specified list of YAML types (or a single Type object) contains a non-Type object.")}}));var u=Object.create(Schema.prototype);u.implicit=(this.implicit||[]).concat(r);u.explicit=(this.explicit||[]).concat(i);u.compiledImplicit=compileList(u,"implicit");u.compiledExplicit=compileList(u,"explicit");u.compiledTypeMap=compileMap(u.compiledImplicit,u.compiledExplicit);return u};t.exports=Schema},2011:(t,r,i)=>{t.exports=i(1035)},8759:(t,r,i)=>{t.exports=i(2011).extend({implicit:[i(9212),i(6104)],explicit:[i(7900),i(9046),i(6860),i(9548)]})},8562:(t,r,i)=>{var o=i(1082);t.exports=new o({explicit:[i(3619),i(7283),i(6150)]})},1035:(t,r,i)=>{t.exports=i(8562).extend({implicit:[i(721),i(4993),i(1615),i(2705)]})},6975:(t,r,i)=>{var o=i(6829);function getLine(t,r,i,o,a){var u="";var l="";var h=Math.floor(a/2)-1;if(o-r>h){u=" ... ";r=o-h+u.length}if(i-o>h){l=" ...";i=o+h-l.length}return{str:u+t.slice(r,i).replace(/\t/g,"→")+l,pos:o-r+u.length}}function padStart(t,r){return o.repeat(" ",r-t.length)+t}function makeSnippet(t,r){r=Object.create(r||null);if(!t.buffer)return null;if(!r.maxLength)r.maxLength=79;if(typeof r.indent!=="number")r.indent=1;if(typeof r.linesBefore!=="number")r.linesBefore=3;if(typeof r.linesAfter!=="number")r.linesAfter=2;var i=/\r?\n|\r|\0/g;var a=[0];var u=[];var l;var h=-1;while(l=i.exec(t.buffer)){u.push(l.index);a.push(l.index+l[0].length);if(t.position<=l.index&&h<0){h=a.length-2}}if(h<0)h=a.length-1;var d="",p,g;var y=Math.min(t.line+r.linesAfter,u.length).toString().length;var b=r.maxLength-(r.indent+y+3);for(p=1;p<=r.linesBefore;p++){if(h-p<0)break;g=getLine(t.buffer,a[h-p],u[h-p],t.position-(a[h]-a[h-p]),b);d=o.repeat(" ",r.indent)+padStart((t.line-p+1).toString(),y)+" | "+g.str+"\n"+d}g=getLine(t.buffer,a[h],u[h],t.position,b);d+=o.repeat(" ",r.indent)+padStart((t.line+1).toString(),y)+" | "+g.str+"\n";d+=o.repeat("-",r.indent+y+3+g.pos)+"^"+"\n";for(p=1;p<=r.linesAfter;p++){if(h+p>=u.length)break;g=getLine(t.buffer,a[h+p],u[h+p],t.position-(a[h]-a[h+p]),b);d+=o.repeat(" ",r.indent)+padStart((t.line+p+1).toString(),y)+" | "+g.str+"\n"}return d.replace(/\n$/,"")}t.exports=makeSnippet},6073:(t,r,i)=>{var o=i(8179);var a=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"];var u=["scalar","sequence","mapping"];function compileStyleAliases(t){var r={};if(t!==null){Object.keys(t).forEach((function(i){t[i].forEach((function(t){r[String(t)]=i}))}))}return r}function Type(t,r){r=r||{};Object.keys(r).forEach((function(r){if(a.indexOf(r)===-1){throw new o('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}}));this.options=r;this.tag=t;this.kind=r["kind"]||null;this.resolve=r["resolve"]||function(){return true};this.construct=r["construct"]||function(t){return t};this.instanceOf=r["instanceOf"]||null;this.predicate=r["predicate"]||null;this.represent=r["represent"]||null;this.representName=r["representName"]||null;this.defaultStyle=r["defaultStyle"]||null;this.multi=r["multi"]||false;this.styleAliases=compileStyleAliases(r["styleAliases"]||null);if(u.indexOf(this.kind)===-1){throw new o('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}}t.exports=Type},7900:(t,r,i)=>{var o=i(6073);var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function resolveYamlBinary(t){if(t===null)return false;var r,i,o=0,u=t.length,l=a;for(i=0;i<u;i++){r=l.indexOf(t.charAt(i));if(r>64)continue;if(r<0)return false;o+=6}return o%8===0}function constructYamlBinary(t){var r,i,o=t.replace(/[\r\n=]/g,""),u=o.length,l=a,h=0,d=[];for(r=0;r<u;r++){if(r%4===0&&r){d.push(h>>16&255);d.push(h>>8&255);d.push(h&255)}h=h<<6|l.indexOf(o.charAt(r))}i=u%4*6;if(i===0){d.push(h>>16&255);d.push(h>>8&255);d.push(h&255)}else if(i===18){d.push(h>>10&255);d.push(h>>2&255)}else if(i===12){d.push(h>>4&255)}return new Uint8Array(d)}function representYamlBinary(t){var r="",i=0,o,u,l=t.length,h=a;for(o=0;o<l;o++){if(o%3===0&&o){r+=h[i>>18&63];r+=h[i>>12&63];r+=h[i>>6&63];r+=h[i&63]}i=(i<<8)+t[o]}u=l%3;if(u===0){r+=h[i>>18&63];r+=h[i>>12&63];r+=h[i>>6&63];r+=h[i&63]}else if(u===2){r+=h[i>>10&63];r+=h[i>>4&63];r+=h[i<<2&63];r+=h[64]}else if(u===1){r+=h[i>>2&63];r+=h[i<<4&63];r+=h[64];r+=h[64]}return r}function isBinary(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}t.exports=new o("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary})},4993:(t,r,i)=>{var o=i(6073);function resolveYamlBoolean(t){if(t===null)return false;var r=t.length;return r===4&&(t==="true"||t==="True"||t==="TRUE")||r===5&&(t==="false"||t==="False"||t==="FALSE")}function constructYamlBoolean(t){return t==="true"||t==="True"||t==="TRUE"}function isBoolean(t){return Object.prototype.toString.call(t)==="[object Boolean]"}t.exports=new o("tag:yaml.org,2002:bool",{kind:"scalar",resolve:resolveYamlBoolean,construct:constructYamlBoolean,predicate:isBoolean,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"})},2705:(t,r,i)=>{var o=i(6829);var a=i(6073);var u=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?"+"|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?"+"|[-+]?\\.(?:inf|Inf|INF)"+"|\\.(?:nan|NaN|NAN))$");function resolveYamlFloat(t){if(t===null)return false;if(!u.test(t)||t[t.length-1]==="_"){return false}return true}function constructYamlFloat(t){var r,i;r=t.replace(/_/g,"").toLowerCase();i=r[0]==="-"?-1:1;if("+-".indexOf(r[0])>=0){r=r.slice(1)}if(r===".inf"){return i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY}else if(r===".nan"){return NaN}return i*parseFloat(r,10)}var l=/^[-+]?[0-9]+e/;function representYamlFloat(t,r){var i;if(isNaN(t)){switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}}else if(Number.POSITIVE_INFINITY===t){switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}}else if(Number.NEGATIVE_INFINITY===t){switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}}else if(o.isNegativeZero(t)){return"-0.0"}i=t.toString(10);return l.test(i)?i.replace("e",".e"):i}function isFloat(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||o.isNegativeZero(t))}t.exports=new a("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"})},1615:(t,r,i)=>{var o=i(6829);var a=i(6073);function isHexCode(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function isOctCode(t){return 48<=t&&t<=55}function isDecCode(t){return 48<=t&&t<=57}function resolveYamlInteger(t){if(t===null)return false;var r=t.length,i=0,o=false,a;if(!r)return false;a=t[i];if(a==="-"||a==="+"){a=t[++i]}if(a==="0"){if(i+1===r)return true;a=t[++i];if(a==="b"){i++;for(;i<r;i++){a=t[i];if(a==="_")continue;if(a!=="0"&&a!=="1")return false;o=true}return o&&a!=="_"}if(a==="x"){i++;for(;i<r;i++){a=t[i];if(a==="_")continue;if(!isHexCode(t.charCodeAt(i)))return false;o=true}return o&&a!=="_"}if(a==="o"){i++;for(;i<r;i++){a=t[i];if(a==="_")continue;if(!isOctCode(t.charCodeAt(i)))return false;o=true}return o&&a!=="_"}}if(a==="_")return false;for(;i<r;i++){a=t[i];if(a==="_")continue;if(!isDecCode(t.charCodeAt(i))){return false}o=true}if(!o||a==="_")return false;return true}function constructYamlInteger(t){var r=t,i=1,o;if(r.indexOf("_")!==-1){r=r.replace(/_/g,"")}o=r[0];if(o==="-"||o==="+"){if(o==="-")i=-1;r=r.slice(1);o=r[0]}if(r==="0")return 0;if(o==="0"){if(r[1]==="b")return i*parseInt(r.slice(2),2);if(r[1]==="x")return i*parseInt(r.slice(2),16);if(r[1]==="o")return i*parseInt(r.slice(2),8)}return i*parseInt(r,10)}function isInteger(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1===0&&!o.isNegativeZero(t))}t.exports=new a("tag:yaml.org,2002:int",{kind:"scalar",resolve:resolveYamlInteger,construct:constructYamlInteger,predicate:isInteger,represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},6150:(t,r,i)=>{var o=i(6073);t.exports=new o("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}})},6104:(t,r,i)=>{var o=i(6073);function resolveYamlMerge(t){return t==="<<"||t===null}t.exports=new o("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge})},721:(t,r,i)=>{var o=i(6073);function resolveYamlNull(t){if(t===null)return true;var r=t.length;return r===1&&t==="~"||r===4&&(t==="null"||t==="Null"||t==="NULL")}function constructYamlNull(){return null}function isNull(t){return t===null}t.exports=new o("tag:yaml.org,2002:null",{kind:"scalar",resolve:resolveYamlNull,construct:constructYamlNull,predicate:isNull,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})},9046:(t,r,i)=>{var o=i(6073);var a=Object.prototype.hasOwnProperty;var u=Object.prototype.toString;function resolveYamlOmap(t){if(t===null)return true;var r=[],i,o,l,h,d,p=t;for(i=0,o=p.length;i<o;i+=1){l=p[i];d=false;if(u.call(l)!=="[object Object]")return false;for(h in l){if(a.call(l,h)){if(!d)d=true;else return false}}if(!d)return false;if(r.indexOf(h)===-1)r.push(h);else return false}return true}function constructYamlOmap(t){return t!==null?t:[]}t.exports=new o("tag:yaml.org,2002:omap",{kind:"sequence",resolve:resolveYamlOmap,construct:constructYamlOmap})},6860:(t,r,i)=>{var o=i(6073);var a=Object.prototype.toString;function resolveYamlPairs(t){if(t===null)return true;var r,i,o,u,l,h=t;l=new Array(h.length);for(r=0,i=h.length;r<i;r+=1){o=h[r];if(a.call(o)!=="[object Object]")return false;u=Object.keys(o);if(u.length!==1)return false;l[r]=[u[0],o[u[0]]]}return true}function constructYamlPairs(t){if(t===null)return[];var r,i,o,a,u,l=t;u=new Array(l.length);for(r=0,i=l.length;r<i;r+=1){o=l[r];a=Object.keys(o);u[r]=[a[0],o[a[0]]]}return u}t.exports=new o("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:resolveYamlPairs,construct:constructYamlPairs})},7283:(t,r,i)=>{var o=i(6073);t.exports=new o("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}})},9548:(t,r,i)=>{var o=i(6073);var a=Object.prototype.hasOwnProperty;function resolveYamlSet(t){if(t===null)return true;var r,i=t;for(r in i){if(a.call(i,r)){if(i[r]!==null)return false}}return true}function constructYamlSet(t){return t!==null?t:{}}t.exports=new o("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet})},3619:(t,r,i)=>{var o=i(6073);t.exports=new o("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}})},9212:(t,r,i)=>{var o=i(6073);var a=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9])"+"-([0-9][0-9])$");var u=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9]?)"+"-([0-9][0-9]?)"+"(?:[Tt]|[ \\t]+)"+"([0-9][0-9]?)"+":([0-9][0-9])"+":([0-9][0-9])"+"(?:\\.([0-9]*))?"+"(?:[ \\t]*(Z|([-+])([0-9][0-9]?)"+"(?::([0-9][0-9]))?))?$");function resolveYamlTimestamp(t){if(t===null)return false;if(a.exec(t)!==null)return true;if(u.exec(t)!==null)return true;return false}function constructYamlTimestamp(t){var r,i,o,l,h,d,p,g=0,y=null,b,w,v;r=a.exec(t);if(r===null)r=u.exec(t);if(r===null)throw new Error("Date resolve error");i=+r[1];o=+r[2]-1;l=+r[3];if(!r[4]){return new Date(Date.UTC(i,o,l))}h=+r[4];d=+r[5];p=+r[6];if(r[7]){g=r[7].slice(0,3);while(g.length<3){g+="0"}g=+g}if(r[9]){b=+r[10];w=+(r[11]||0);y=(b*60+w)*6e4;if(r[9]==="-")y=-y}v=new Date(Date.UTC(i,o,l,h,d,p,g));if(y)v.setTime(v.getTime()-y);return v}function representYamlTimestamp(t){return t.toISOString()}t.exports=new o("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp})},6228:(t,r,i)=>{const o=i(3837);const a=i(610);const u=i(8569);const l=i(479);const isEmptyString=t=>t===""||t==="./";const micromatch=(t,r,i)=>{r=[].concat(r);t=[].concat(t);let o=new Set;let a=new Set;let l=new Set;let h=0;let onResult=t=>{l.add(t.output);if(i&&i.onResult){i.onResult(t)}};for(let l=0;l<r.length;l++){let d=u(String(r[l]),{...i,onResult:onResult},true);let p=d.state.negated||d.state.negatedExtglob;if(p)h++;for(let r of t){let t=d(r,true);let i=p?!t.isMatch:t.isMatch;if(!i)continue;if(p){o.add(t.output)}else{o.delete(t.output);a.add(t.output)}}}let d=h===r.length?[...l]:[...a];let p=d.filter((t=>!o.has(t)));if(i&&p.length===0){if(i.failglob===true){throw new Error(`No matches found for "${r.join(", ")}"`)}if(i.nonull===true||i.nullglob===true){return i.unescape?r.map((t=>t.replace(/\\/g,""))):r}}return p};micromatch.match=micromatch;micromatch.matcher=(t,r)=>u(t,r);micromatch.isMatch=(t,r,i)=>u(r,i)(t);micromatch.any=micromatch.isMatch;micromatch.not=(t,r,i={})=>{r=[].concat(r).map(String);let o=new Set;let a=[];let onResult=t=>{if(i.onResult)i.onResult(t);a.push(t.output)};let u=new Set(micromatch(t,r,{...i,onResult:onResult}));for(let t of a){if(!u.has(t)){o.add(t)}}return[...o]};micromatch.contains=(t,r,i)=>{if(typeof t!=="string"){throw new TypeError(`Expected a string: "${o.inspect(t)}"`)}if(Array.isArray(r)){return r.some((r=>micromatch.contains(t,r,i)))}if(typeof r==="string"){if(isEmptyString(t)||isEmptyString(r)){return false}if(t.includes(r)||t.startsWith("./")&&t.slice(2).includes(r)){return true}}return micromatch.isMatch(t,r,{...i,contains:true})};micromatch.matchKeys=(t,r,i)=>{if(!l.isObject(t)){throw new TypeError("Expected the first argument to be an object")}let o=micromatch(Object.keys(t),r,i);let a={};for(let r of o)a[r]=t[r];return a};micromatch.some=(t,r,i)=>{let o=[].concat(t);for(let t of[].concat(r)){let r=u(String(t),i);if(o.some((t=>r(t)))){return true}}return false};micromatch.every=(t,r,i)=>{let o=[].concat(t);for(let t of[].concat(r)){let r=u(String(t),i);if(!o.every((t=>r(t)))){return false}}return true};micromatch.all=(t,r,i)=>{if(typeof t!=="string"){throw new TypeError(`Expected a string: "${o.inspect(t)}"`)}return[].concat(r).every((r=>u(r,i)(t)))};micromatch.capture=(t,r,i)=>{let o=l.isWindows(i);let a=u.makeRe(String(t),{...i,capture:true});let h=a.exec(o?l.toPosixSlashes(r):r);if(h){return h.slice(1).map((t=>t===void 0?"":t))}};micromatch.makeRe=(...t)=>u.makeRe(...t);micromatch.scan=(...t)=>u.scan(...t);micromatch.parse=(t,r)=>{let i=[];for(let o of[].concat(t||[])){for(let t of a(String(o),r)){i.push(u.parse(t,r))}}return i};micromatch.braces=(t,r)=>{if(typeof t!=="string")throw new TypeError("Expected a string");if(r&&r.nobrace===true||!/\{.*\}/.test(t)){return[t]}return a(t,r)};micromatch.braceExpand=(t,r)=>{if(typeof t!=="string")throw new TypeError("Expected a string");return micromatch.braces(t,{...r,expand:true})};t.exports=micromatch},8569:(t,r,i)=>{t.exports=i(3322)},6099:(t,r,i)=>{const o=i(1017);const a="\\\\/";const u=`[^${a}]`;const l="\\.";const h="\\+";const d="\\?";const p="\\/";const g="(?=.)";const y="[^/]";const b=`(?:${p}|$)`;const w=`(?:^|${p})`;const v=`${l}{1,2}${b}`;const E=`(?!${l})`;const A=`(?!${w}${v})`;const _=`(?!${l}{0,1}${b})`;const C=`(?!${v})`;const S=`[^.${p}]`;const D=`${y}*?`;const x={DOT_LITERAL:l,PLUS_LITERAL:h,QMARK_LITERAL:d,SLASH_LITERAL:p,ONE_CHAR:g,QMARK:y,END_ANCHOR:b,DOTS_SLASH:v,NO_DOT:E,NO_DOTS:A,NO_DOT_SLASH:_,NO_DOTS_SLASH:C,QMARK_NO_DOT:S,STAR:D,START_ANCHOR:w};const O={...x,SLASH_LITERAL:`[${a}]`,QMARK:u,STAR:`${u}*?`,DOTS_SLASH:`${l}{1,2}(?:[${a}]|$)`,NO_DOT:`(?!${l})`,NO_DOTS:`(?!(?:^|[${a}])${l}{1,2}(?:[${a}]|$))`,NO_DOT_SLASH:`(?!${l}{0,1}(?:[${a}]|$))`,NO_DOTS_SLASH:`(?!${l}{1,2}(?:[${a}]|$))`,QMARK_NO_DOT:`[^.${a}]`,START_ANCHOR:`(?:^|[${a}])`,END_ANCHOR:`(?:[${a}]|$)`};const R={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"};t.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:R,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:o.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===true?O:x}}},2139:(t,r,i)=>{const o=i(6099);const a=i(479);const{MAX_LENGTH:u,POSIX_REGEX_SOURCE:l,REGEX_NON_SPECIAL_CHARS:h,REGEX_SPECIAL_CHARS_BACKREF:d,REPLACEMENTS:p}=o;const expandRange=(t,r)=>{if(typeof r.expandRange==="function"){return r.expandRange(...t,r)}t.sort();const i=`[${t.join("-")}]`;try{new RegExp(i)}catch(r){return t.map((t=>a.escapeRegex(t))).join("..")}return i};const syntaxError=(t,r)=>`Missing ${t}: "${r}" - use "\\\\${r}" to match literal characters`;const parse=(t,r)=>{if(typeof t!=="string"){throw new TypeError("Expected a string")}t=p[t]||t;const i={...r};const g=typeof i.maxLength==="number"?Math.min(u,i.maxLength):u;let y=t.length;if(y>g){throw new SyntaxError(`Input length: ${y}, exceeds maximum allowed length: ${g}`)}const b={type:"bos",value:"",output:i.prepend||""};const w=[b];const v=i.capture?"":"?:";const E=a.isWindows(r);const A=o.globChars(E);const _=o.extglobChars(A);const{DOT_LITERAL:C,PLUS_LITERAL:S,SLASH_LITERAL:D,ONE_CHAR:x,DOTS_SLASH:O,NO_DOT:R,NO_DOT_SLASH:k,NO_DOTS_SLASH:P,QMARK:T,QMARK_NO_DOT:M,STAR:L,START_ANCHOR:I}=A;const globstar=t=>`(${v}(?:(?!${I}${t.dot?O:C}).)*?)`;const $=i.dot?"":R;const N=i.dot?T:M;let B=i.bash===true?globstar(i):L;if(i.capture){B=`(${B})`}if(typeof i.noext==="boolean"){i.noextglob=i.noext}const j={input:t,index:-1,start:0,dot:i.dot===true,consumed:"",output:"",prefix:"",backtrack:false,negated:false,brackets:0,braces:0,parens:0,quotes:0,globstar:false,tokens:w};t=a.removePrefix(t,j);y=t.length;const H=[];const G=[];const U=[];let W=b;let z;const eos=()=>j.index===y-1;const Y=j.peek=(r=1)=>t[j.index+r];const K=j.advance=()=>t[++j.index]||"";const remaining=()=>t.slice(j.index+1);const consume=(t="",r=0)=>{j.consumed+=t;j.index+=r};const append=t=>{j.output+=t.output!=null?t.output:t.value;consume(t.value)};const negate=()=>{let t=1;while(Y()==="!"&&(Y(2)!=="("||Y(3)==="?")){K();j.start++;t++}if(t%2===0){return false}j.negated=true;j.start++;return true};const increment=t=>{j[t]++;U.push(t)};const decrement=t=>{j[t]--;U.pop()};const push=t=>{if(W.type==="globstar"){const r=j.braces>0&&(t.type==="comma"||t.type==="brace");const i=t.extglob===true||H.length&&(t.type==="pipe"||t.type==="paren");if(t.type!=="slash"&&t.type!=="paren"&&!r&&!i){j.output=j.output.slice(0,-W.output.length);W.type="star";W.value="*";W.output=B;j.output+=W.output}}if(H.length&&t.type!=="paren"){H[H.length-1].inner+=t.value}if(t.value||t.output)append(t);if(W&&W.type==="text"&&t.type==="text"){W.value+=t.value;W.output=(W.output||"")+t.value;return}t.prev=W;w.push(t);W=t};const extglobOpen=(t,r)=>{const o={..._[r],conditions:1,inner:""};o.prev=W;o.parens=j.parens;o.output=j.output;const a=(i.capture?"(":"")+o.open;increment("parens");push({type:t,value:r,output:j.output?"":x});push({type:"paren",extglob:true,value:K(),output:a});H.push(o)};const extglobClose=t=>{let o=t.close+(i.capture?")":"");let a;if(t.type==="negate"){let u=B;if(t.inner&&t.inner.length>1&&t.inner.includes("/")){u=globstar(i)}if(u!==B||eos()||/^\)+$/.test(remaining())){o=t.close=`)$))${u}`}if(t.inner.includes("*")&&(a=remaining())&&/^\.[^\\/.]+$/.test(a)){const i=parse(a,{...r,fastpaths:false}).output;o=t.close=`)${i})${u})`}if(t.prev.type==="bos"){j.negatedExtglob=true}}push({type:"paren",extglob:true,value:z,output:o});decrement("parens")};if(i.fastpaths!==false&&!/(^[*!]|[/()[\]{}"])/.test(t)){let o=false;let u=t.replace(d,((t,r,i,a,u,l)=>{if(a==="\\"){o=true;return t}if(a==="?"){if(r){return r+a+(u?T.repeat(u.length):"")}if(l===0){return N+(u?T.repeat(u.length):"")}return T.repeat(i.length)}if(a==="."){return C.repeat(i.length)}if(a==="*"){if(r){return r+a+(u?B:"")}return B}return r?t:`\\${t}`}));if(o===true){if(i.unescape===true){u=u.replace(/\\/g,"")}else{u=u.replace(/\\+/g,(t=>t.length%2===0?"\\\\":t?"\\":""))}}if(u===t&&i.contains===true){j.output=t;return j}j.output=a.wrapOutput(u,j,r);return j}while(!eos()){z=K();if(z==="\0"){continue}if(z==="\\"){const t=Y();if(t==="/"&&i.bash!==true){continue}if(t==="."||t===";"){continue}if(!t){z+="\\";push({type:"text",value:z});continue}const r=/^\\+/.exec(remaining());let o=0;if(r&&r[0].length>2){o=r[0].length;j.index+=o;if(o%2!==0){z+="\\"}}if(i.unescape===true){z=K()}else{z+=K()}if(j.brackets===0){push({type:"text",value:z});continue}}if(j.brackets>0&&(z!=="]"||W.value==="["||W.value==="[^")){if(i.posix!==false&&z===":"){const t=W.value.slice(1);if(t.includes("[")){W.posix=true;if(t.includes(":")){const t=W.value.lastIndexOf("[");const r=W.value.slice(0,t);const i=W.value.slice(t+2);const o=l[i];if(o){W.value=r+o;j.backtrack=true;K();if(!b.output&&w.indexOf(W)===1){b.output=x}continue}}}}if(z==="["&&Y()!==":"||z==="-"&&Y()==="]"){z=`\\${z}`}if(z==="]"&&(W.value==="["||W.value==="[^")){z=`\\${z}`}if(i.posix===true&&z==="!"&&W.value==="["){z="^"}W.value+=z;append({value:z});continue}if(j.quotes===1&&z!=='"'){z=a.escapeRegex(z);W.value+=z;append({value:z});continue}if(z==='"'){j.quotes=j.quotes===1?0:1;if(i.keepQuotes===true){push({type:"text",value:z})}continue}if(z==="("){increment("parens");push({type:"paren",value:z});continue}if(z===")"){if(j.parens===0&&i.strictBrackets===true){throw new SyntaxError(syntaxError("opening","("))}const t=H[H.length-1];if(t&&j.parens===t.parens+1){extglobClose(H.pop());continue}push({type:"paren",value:z,output:j.parens?")":"\\)"});decrement("parens");continue}if(z==="["){if(i.nobracket===true||!remaining().includes("]")){if(i.nobracket!==true&&i.strictBrackets===true){throw new SyntaxError(syntaxError("closing","]"))}z=`\\${z}`}else{increment("brackets")}push({type:"bracket",value:z});continue}if(z==="]"){if(i.nobracket===true||W&&W.type==="bracket"&&W.value.length===1){push({type:"text",value:z,output:`\\${z}`});continue}if(j.brackets===0){if(i.strictBrackets===true){throw new SyntaxError(syntaxError("opening","["))}push({type:"text",value:z,output:`\\${z}`});continue}decrement("brackets");const t=W.value.slice(1);if(W.posix!==true&&t[0]==="^"&&!t.includes("/")){z=`/${z}`}W.value+=z;append({value:z});if(i.literalBrackets===false||a.hasRegexChars(t)){continue}const r=a.escapeRegex(W.value);j.output=j.output.slice(0,-W.value.length);if(i.literalBrackets===true){j.output+=r;W.value=r;continue}W.value=`(${v}${r}|${W.value})`;j.output+=W.value;continue}if(z==="{"&&i.nobrace!==true){increment("braces");const t={type:"brace",value:z,output:"(",outputIndex:j.output.length,tokensIndex:j.tokens.length};G.push(t);push(t);continue}if(z==="}"){const t=G[G.length-1];if(i.nobrace===true||!t){push({type:"text",value:z,output:z});continue}let r=")";if(t.dots===true){const t=w.slice();const o=[];for(let r=t.length-1;r>=0;r--){w.pop();if(t[r].type==="brace"){break}if(t[r].type!=="dots"){o.unshift(t[r].value)}}r=expandRange(o,i);j.backtrack=true}if(t.comma!==true&&t.dots!==true){const i=j.output.slice(0,t.outputIndex);const o=j.tokens.slice(t.tokensIndex);t.value=t.output="\\{";z=r="\\}";j.output=i;for(const t of o){j.output+=t.output||t.value}}push({type:"brace",value:z,output:r});decrement("braces");G.pop();continue}if(z==="|"){if(H.length>0){H[H.length-1].conditions++}push({type:"text",value:z});continue}if(z===","){let t=z;const r=G[G.length-1];if(r&&U[U.length-1]==="braces"){r.comma=true;t="|"}push({type:"comma",value:z,output:t});continue}if(z==="/"){if(W.type==="dot"&&j.index===j.start+1){j.start=j.index+1;j.consumed="";j.output="";w.pop();W=b;continue}push({type:"slash",value:z,output:D});continue}if(z==="."){if(j.braces>0&&W.type==="dot"){if(W.value===".")W.output=C;const t=G[G.length-1];W.type="dots";W.output+=z;W.value+=z;t.dots=true;continue}if(j.braces+j.parens===0&&W.type!=="bos"&&W.type!=="slash"){push({type:"text",value:z,output:C});continue}push({type:"dot",value:z,output:C});continue}if(z==="?"){const t=W&&W.value==="(";if(!t&&i.noextglob!==true&&Y()==="("&&Y(2)!=="?"){extglobOpen("qmark",z);continue}if(W&&W.type==="paren"){const t=Y();let r=z;if(t==="<"&&!a.supportsLookbehinds()){throw new Error("Node.js v10 or higher is required for regex lookbehinds")}if(W.value==="("&&!/[!=<:]/.test(t)||t==="<"&&!/<([!=]|\w+>)/.test(remaining())){r=`\\${z}`}push({type:"text",value:z,output:r});continue}if(i.dot!==true&&(W.type==="slash"||W.type==="bos")){push({type:"qmark",value:z,output:M});continue}push({type:"qmark",value:z,output:T});continue}if(z==="!"){if(i.noextglob!==true&&Y()==="("){if(Y(2)!=="?"||!/[!=<:]/.test(Y(3))){extglobOpen("negate",z);continue}}if(i.nonegate!==true&&j.index===0){negate();continue}}if(z==="+"){if(i.noextglob!==true&&Y()==="("&&Y(2)!=="?"){extglobOpen("plus",z);continue}if(W&&W.value==="("||i.regex===false){push({type:"plus",value:z,output:S});continue}if(W&&(W.type==="bracket"||W.type==="paren"||W.type==="brace")||j.parens>0){push({type:"plus",value:z});continue}push({type:"plus",value:S});continue}if(z==="@"){if(i.noextglob!==true&&Y()==="("&&Y(2)!=="?"){push({type:"at",extglob:true,value:z,output:""});continue}push({type:"text",value:z});continue}if(z!=="*"){if(z==="$"||z==="^"){z=`\\${z}`}const t=h.exec(remaining());if(t){z+=t[0];j.index+=t[0].length}push({type:"text",value:z});continue}if(W&&(W.type==="globstar"||W.star===true)){W.type="star";W.star=true;W.value+=z;W.output=B;j.backtrack=true;j.globstar=true;consume(z);continue}let r=remaining();if(i.noextglob!==true&&/^\([^?]/.test(r)){extglobOpen("star",z);continue}if(W.type==="star"){if(i.noglobstar===true){consume(z);continue}const o=W.prev;const a=o.prev;const u=o.type==="slash"||o.type==="bos";const l=a&&(a.type==="star"||a.type==="globstar");if(i.bash===true&&(!u||r[0]&&r[0]!=="/")){push({type:"star",value:z,output:""});continue}const h=j.braces>0&&(o.type==="comma"||o.type==="brace");const d=H.length&&(o.type==="pipe"||o.type==="paren");if(!u&&o.type!=="paren"&&!h&&!d){push({type:"star",value:z,output:""});continue}while(r.slice(0,3)==="/**"){const i=t[j.index+4];if(i&&i!=="/"){break}r=r.slice(3);consume("/**",3)}if(o.type==="bos"&&eos()){W.type="globstar";W.value+=z;W.output=globstar(i);j.output=W.output;j.globstar=true;consume(z);continue}if(o.type==="slash"&&o.prev.type!=="bos"&&!l&&eos()){j.output=j.output.slice(0,-(o.output+W.output).length);o.output=`(?:${o.output}`;W.type="globstar";W.output=globstar(i)+(i.strictSlashes?")":"|$)");W.value+=z;j.globstar=true;j.output+=o.output+W.output;consume(z);continue}if(o.type==="slash"&&o.prev.type!=="bos"&&r[0]==="/"){const t=r[1]!==void 0?"|$":"";j.output=j.output.slice(0,-(o.output+W.output).length);o.output=`(?:${o.output}`;W.type="globstar";W.output=`${globstar(i)}${D}|${D}${t})`;W.value+=z;j.output+=o.output+W.output;j.globstar=true;consume(z+K());push({type:"slash",value:"/",output:""});continue}if(o.type==="bos"&&r[0]==="/"){W.type="globstar";W.value+=z;W.output=`(?:^|${D}|${globstar(i)}${D})`;j.output=W.output;j.globstar=true;consume(z+K());push({type:"slash",value:"/",output:""});continue}j.output=j.output.slice(0,-W.output.length);W.type="globstar";W.output=globstar(i);W.value+=z;j.output+=W.output;j.globstar=true;consume(z);continue}const o={type:"star",value:z,output:B};if(i.bash===true){o.output=".*?";if(W.type==="bos"||W.type==="slash"){o.output=$+o.output}push(o);continue}if(W&&(W.type==="bracket"||W.type==="paren")&&i.regex===true){o.output=z;push(o);continue}if(j.index===j.start||W.type==="slash"||W.type==="dot"){if(W.type==="dot"){j.output+=k;W.output+=k}else if(i.dot===true){j.output+=P;W.output+=P}else{j.output+=$;W.output+=$}if(Y()!=="*"){j.output+=x;W.output+=x}}push(o)}while(j.brackets>0){if(i.strictBrackets===true)throw new SyntaxError(syntaxError("closing","]"));j.output=a.escapeLast(j.output,"[");decrement("brackets")}while(j.parens>0){if(i.strictBrackets===true)throw new SyntaxError(syntaxError("closing",")"));j.output=a.escapeLast(j.output,"(");decrement("parens")}while(j.braces>0){if(i.strictBrackets===true)throw new SyntaxError(syntaxError("closing","}"));j.output=a.escapeLast(j.output,"{");decrement("braces")}if(i.strictSlashes!==true&&(W.type==="star"||W.type==="bracket")){push({type:"maybe_slash",value:"",output:`${D}?`})}if(j.backtrack===true){j.output="";for(const t of j.tokens){j.output+=t.output!=null?t.output:t.value;if(t.suffix){j.output+=t.suffix}}}return j};parse.fastpaths=(t,r)=>{const i={...r};const l=typeof i.maxLength==="number"?Math.min(u,i.maxLength):u;const h=t.length;if(h>l){throw new SyntaxError(`Input length: ${h}, exceeds maximum allowed length: ${l}`)}t=p[t]||t;const d=a.isWindows(r);const{DOT_LITERAL:g,SLASH_LITERAL:y,ONE_CHAR:b,DOTS_SLASH:w,NO_DOT:v,NO_DOTS:E,NO_DOTS_SLASH:A,STAR:_,START_ANCHOR:C}=o.globChars(d);const S=i.dot?E:v;const D=i.dot?A:v;const x=i.capture?"":"?:";const O={negated:false,prefix:""};let R=i.bash===true?".*?":_;if(i.capture){R=`(${R})`}const globstar=t=>{if(t.noglobstar===true)return R;return`(${x}(?:(?!${C}${t.dot?w:g}).)*?)`};const create=t=>{switch(t){case"*":return`${S}${b}${R}`;case".*":return`${g}${b}${R}`;case"*.*":return`${S}${R}${g}${b}${R}`;case"*/*":return`${S}${R}${y}${b}${D}${R}`;case"**":return S+globstar(i);case"**/*":return`(?:${S}${globstar(i)}${y})?${D}${b}${R}`;case"**/*.*":return`(?:${S}${globstar(i)}${y})?${D}${R}${g}${b}${R}`;case"**/.*":return`(?:${S}${globstar(i)}${y})?${g}${b}${R}`;default:{const r=/^(.*?)\.(\w+)$/.exec(t);if(!r)return;const i=create(r[1]);if(!i)return;return i+g+r[2]}}};const k=a.removePrefix(t,O);let P=create(k);if(P&&i.strictSlashes!==true){P+=`${y}?`}return P};t.exports=parse},3322:(t,r,i)=>{const o=i(1017);const a=i(2429);const u=i(2139);const l=i(479);const h=i(6099);const isObject=t=>t&&typeof t==="object"&&!Array.isArray(t);const picomatch=(t,r,i=false)=>{if(Array.isArray(t)){const o=t.map((t=>picomatch(t,r,i)));const arrayMatcher=t=>{for(const r of o){const i=r(t);if(i)return i}return false};return arrayMatcher}const o=isObject(t)&&t.tokens&&t.input;if(t===""||typeof t!=="string"&&!o){throw new TypeError("Expected pattern to be a non-empty string")}const a=r||{};const u=l.isWindows(r);const h=o?picomatch.compileRe(t,r):picomatch.makeRe(t,r,false,true);const d=h.state;delete h.state;let isIgnored=()=>false;if(a.ignore){const t={...r,ignore:null,onMatch:null,onResult:null};isIgnored=picomatch(a.ignore,t,i)}const matcher=(i,o=false)=>{const{isMatch:l,match:p,output:g}=picomatch.test(i,h,r,{glob:t,posix:u});const y={glob:t,state:d,regex:h,posix:u,input:i,output:g,match:p,isMatch:l};if(typeof a.onResult==="function"){a.onResult(y)}if(l===false){y.isMatch=false;return o?y:false}if(isIgnored(i)){if(typeof a.onIgnore==="function"){a.onIgnore(y)}y.isMatch=false;return o?y:false}if(typeof a.onMatch==="function"){a.onMatch(y)}return o?y:true};if(i){matcher.state=d}return matcher};picomatch.test=(t,r,i,{glob:o,posix:a}={})=>{if(typeof t!=="string"){throw new TypeError("Expected input to be a string")}if(t===""){return{isMatch:false,output:""}}const u=i||{};const h=u.format||(a?l.toPosixSlashes:null);let d=t===o;let p=d&&h?h(t):t;if(d===false){p=h?h(t):t;d=p===o}if(d===false||u.capture===true){if(u.matchBase===true||u.basename===true){d=picomatch.matchBase(t,r,i,a)}else{d=r.exec(p)}}return{isMatch:Boolean(d),match:d,output:p}};picomatch.matchBase=(t,r,i,a=l.isWindows(i))=>{const u=r instanceof RegExp?r:picomatch.makeRe(r,i);return u.test(o.basename(t))};picomatch.isMatch=(t,r,i)=>picomatch(r,i)(t);picomatch.parse=(t,r)=>{if(Array.isArray(t))return t.map((t=>picomatch.parse(t,r)));return u(t,{...r,fastpaths:false})};picomatch.scan=(t,r)=>a(t,r);picomatch.compileRe=(t,r,i=false,o=false)=>{if(i===true){return t.output}const a=r||{};const u=a.contains?"":"^";const l=a.contains?"":"$";let h=`${u}(?:${t.output})${l}`;if(t&&t.negated===true){h=`^(?!${h}).*$`}const d=picomatch.toRegex(h,r);if(o===true){d.state=t}return d};picomatch.makeRe=(t,r={},i=false,o=false)=>{if(!t||typeof t!=="string"){throw new TypeError("Expected a non-empty string")}let a={negated:false,fastpaths:true};if(r.fastpaths!==false&&(t[0]==="."||t[0]==="*")){a.output=u.fastpaths(t,r)}if(!a.output){a=u(t,r)}return picomatch.compileRe(a,r,i,o)};picomatch.toRegex=(t,r)=>{try{const i=r||{};return new RegExp(t,i.flags||(i.nocase?"i":""))}catch(t){if(r&&r.debug===true)throw t;return/$^/}};picomatch.constants=h;t.exports=picomatch},2429:(t,r,i)=>{const o=i(479);const{CHAR_ASTERISK:a,CHAR_AT:u,CHAR_BACKWARD_SLASH:l,CHAR_COMMA:h,CHAR_DOT:d,CHAR_EXCLAMATION_MARK:p,CHAR_FORWARD_SLASH:g,CHAR_LEFT_CURLY_BRACE:y,CHAR_LEFT_PARENTHESES:b,CHAR_LEFT_SQUARE_BRACKET:w,CHAR_PLUS:v,CHAR_QUESTION_MARK:E,CHAR_RIGHT_CURLY_BRACE:A,CHAR_RIGHT_PARENTHESES:_,CHAR_RIGHT_SQUARE_BRACKET:C}=i(6099);const isPathSeparator=t=>t===g||t===l;const depth=t=>{if(t.isPrefix!==true){t.depth=t.isGlobstar?Infinity:1}};const scan=(t,r)=>{const i=r||{};const S=t.length-1;const D=i.parts===true||i.scanToEnd===true;const x=[];const O=[];const R=[];let k=t;let P=-1;let T=0;let M=0;let L=false;let I=false;let $=false;let N=false;let B=false;let j=false;let H=false;let G=false;let U=false;let W=false;let z=0;let Y;let K;let V={value:"",depth:0,isGlob:false};const eos=()=>P>=S;const peek=()=>k.charCodeAt(P+1);const advance=()=>{Y=K;return k.charCodeAt(++P)};while(P<S){K=advance();let t;if(K===l){H=V.backslashes=true;K=advance();if(K===y){j=true}continue}if(j===true||K===y){z++;while(eos()!==true&&(K=advance())){if(K===l){H=V.backslashes=true;advance();continue}if(K===y){z++;continue}if(j!==true&&K===d&&(K=advance())===d){L=V.isBrace=true;$=V.isGlob=true;W=true;if(D===true){continue}break}if(j!==true&&K===h){L=V.isBrace=true;$=V.isGlob=true;W=true;if(D===true){continue}break}if(K===A){z--;if(z===0){j=false;L=V.isBrace=true;W=true;break}}}if(D===true){continue}break}if(K===g){x.push(P);O.push(V);V={value:"",depth:0,isGlob:false};if(W===true)continue;if(Y===d&&P===T+1){T+=2;continue}M=P+1;continue}if(i.noext!==true){const t=K===v||K===u||K===a||K===E||K===p;if(t===true&&peek()===b){$=V.isGlob=true;N=V.isExtglob=true;W=true;if(K===p&&P===T){U=true}if(D===true){while(eos()!==true&&(K=advance())){if(K===l){H=V.backslashes=true;K=advance();continue}if(K===_){$=V.isGlob=true;W=true;break}}continue}break}}if(K===a){if(Y===a)B=V.isGlobstar=true;$=V.isGlob=true;W=true;if(D===true){continue}break}if(K===E){$=V.isGlob=true;W=true;if(D===true){continue}break}if(K===w){while(eos()!==true&&(t=advance())){if(t===l){H=V.backslashes=true;advance();continue}if(t===C){I=V.isBracket=true;$=V.isGlob=true;W=true;break}}if(D===true){continue}break}if(i.nonegate!==true&&K===p&&P===T){G=V.negated=true;T++;continue}if(i.noparen!==true&&K===b){$=V.isGlob=true;if(D===true){while(eos()!==true&&(K=advance())){if(K===b){H=V.backslashes=true;K=advance();continue}if(K===_){W=true;break}}continue}break}if($===true){W=true;if(D===true){continue}break}}if(i.noext===true){N=false;$=false}let q=k;let X="";let Z="";if(T>0){X=k.slice(0,T);k=k.slice(T);M-=T}if(q&&$===true&&M>0){q=k.slice(0,M);Z=k.slice(M)}else if($===true){q="";Z=k}else{q=k}if(q&&q!==""&&q!=="/"&&q!==k){if(isPathSeparator(q.charCodeAt(q.length-1))){q=q.slice(0,-1)}}if(i.unescape===true){if(Z)Z=o.removeBackslashes(Z);if(q&&H===true){q=o.removeBackslashes(q)}}const J={prefix:X,input:t,start:T,base:q,glob:Z,isBrace:L,isBracket:I,isGlob:$,isExtglob:N,isGlobstar:B,negated:G,negatedExtglob:U};if(i.tokens===true){J.maxDepth=0;if(!isPathSeparator(K)){O.push(V)}J.tokens=O}if(i.parts===true||i.tokens===true){let r;for(let o=0;o<x.length;o++){const a=r?r+1:T;const u=x[o];const l=t.slice(a,u);if(i.tokens){if(o===0&&T!==0){O[o].isPrefix=true;O[o].value=X}else{O[o].value=l}depth(O[o]);J.maxDepth+=O[o].depth}if(o!==0||l!==""){R.push(l)}r=u}if(r&&r+1<t.length){const o=t.slice(r+1);R.push(o);if(i.tokens){O[O.length-1].value=o;depth(O[O.length-1]);J.maxDepth+=O[O.length-1].depth}}J.slashes=x;J.parts=R}return J};t.exports=scan},479:(t,r,i)=>{const o=i(1017);const a=process.platform==="win32";const{REGEX_BACKSLASH:u,REGEX_REMOVE_BACKSLASH:l,REGEX_SPECIAL_CHARS:h,REGEX_SPECIAL_CHARS_GLOBAL:d}=i(6099);r.isObject=t=>t!==null&&typeof t==="object"&&!Array.isArray(t);r.hasRegexChars=t=>h.test(t);r.isRegexChar=t=>t.length===1&&r.hasRegexChars(t);r.escapeRegex=t=>t.replace(d,"\\$1");r.toPosixSlashes=t=>t.replace(u,"/");r.removeBackslashes=t=>t.replace(l,(t=>t==="\\"?"":t));r.supportsLookbehinds=()=>{const t=process.version.slice(1).split(".").map(Number);if(t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10){return true}return false};r.isWindows=t=>{if(t&&typeof t.windows==="boolean"){return t.windows}return a===true||o.sep==="\\"};r.escapeLast=(t,i,o)=>{const a=t.lastIndexOf(i,o);if(a===-1)return t;if(t[a-1]==="\\")return r.escapeLast(t,i,a-1);return`${t.slice(0,a)}\\${t.slice(a)}`};r.removePrefix=(t,r={})=>{let i=t;if(i.startsWith("./")){i=i.slice(2);r.prefix="./"}return i};r.wrapOutput=(t,r={},i={})=>{const o=i.contains?"":"^";const a=i.contains?"":"$";let u=`${o}(?:${t})${a}`;if(r.negated===true){u=`(?:^(?!${u}).*$)`}return u}},1861:(t,r,i)=>{
|
|
16
|
+
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}},1917:(e,t,r)=>{var n=r(1161);var s=r(8866);function renamed(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. "+"Use yaml."+t+" instead, which is now safe by default.")}}e.exports.Type=r(6073);e.exports.Schema=r(1082);e.exports.FAILSAFE_SCHEMA=r(8562);e.exports.JSON_SCHEMA=r(1035);e.exports.CORE_SCHEMA=r(2011);e.exports.DEFAULT_SCHEMA=r(8759);e.exports.load=n.load;e.exports.loadAll=n.loadAll;e.exports.dump=s.dump;e.exports.YAMLException=r(8179);e.exports.types={binary:r(7900),float:r(2705),map:r(6150),null:r(721),pairs:r(6860),set:r(9548),timestamp:r(9212),bool:r(4993),int:r(1615),merge:r(6104),omap:r(9046),seq:r(7283),str:r(3619)};e.exports.safeLoad=renamed("safeLoad","load");e.exports.safeLoadAll=renamed("safeLoadAll","loadAll");e.exports.safeDump=renamed("safeDump","dump")},6829:e=>{function isNothing(e){return typeof e==="undefined"||e===null}function isObject(e){return typeof e==="object"&&e!==null}function toArray(e){if(Array.isArray(e))return e;else if(isNothing(e))return[];return[e]}function extend(e,t){var r,n,s,i;if(t){i=Object.keys(t);for(r=0,n=i.length;r<n;r+=1){s=i[r];e[s]=t[s]}}return e}function repeat(e,t){var r="",n;for(n=0;n<t;n+=1){r+=e}return r}function isNegativeZero(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}e.exports.isNothing=isNothing;e.exports.isObject=isObject;e.exports.toArray=toArray;e.exports.repeat=repeat;e.exports.isNegativeZero=isNegativeZero;e.exports.extend=extend},8866:(e,t,r)=>{var n=r(6829);var s=r(8179);var i=r(8759);var o=Object.prototype.toString;var a=Object.prototype.hasOwnProperty;var u=65279;var l=9;var c=10;var f=13;var p=32;var h=33;var d=34;var g=35;var m=37;var D=38;var y=39;var A=42;var E=44;var C=45;var v=58;var b=61;var w=62;var F=63;var _=64;var S=91;var x=93;var O=96;var k=123;var R=124;var $=125;var B={};B[0]="\\0";B[7]="\\a";B[8]="\\b";B[9]="\\t";B[10]="\\n";B[11]="\\v";B[12]="\\f";B[13]="\\r";B[27]="\\e";B[34]='\\"';B[92]="\\\\";B[133]="\\N";B[160]="\\_";B[8232]="\\L";B[8233]="\\P";var I=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];var L=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function compileStyleMap(e,t){var r,n,s,i,o,u,l;if(t===null)return{};r={};n=Object.keys(t);for(s=0,i=n.length;s<i;s+=1){o=n[s];u=String(t[o]);if(o.slice(0,2)==="!!"){o="tag:yaml.org,2002:"+o.slice(2)}l=e.compiledTypeMap["fallback"][o];if(l&&a.call(l.styleAliases,u)){u=l.styleAliases[u]}r[o]=u}return r}function encodeHex(e){var t,r,i;t=e.toString(16).toUpperCase();if(e<=255){r="x";i=2}else if(e<=65535){r="u";i=4}else if(e<=4294967295){r="U";i=8}else{throw new s("code point within a string may not be greater than 0xFFFFFFFF")}return"\\"+r+n.repeat("0",i-t.length)+t}var P=1,T=2;function State(e){this.schema=e["schema"]||i;this.indent=Math.max(1,e["indent"]||2);this.noArrayIndent=e["noArrayIndent"]||false;this.skipInvalid=e["skipInvalid"]||false;this.flowLevel=n.isNothing(e["flowLevel"])?-1:e["flowLevel"];this.styleMap=compileStyleMap(this.schema,e["styles"]||null);this.sortKeys=e["sortKeys"]||false;this.lineWidth=e["lineWidth"]||80;this.noRefs=e["noRefs"]||false;this.noCompatMode=e["noCompatMode"]||false;this.condenseFlow=e["condenseFlow"]||false;this.quotingType=e["quotingType"]==='"'?T:P;this.forceQuotes=e["forceQuotes"]||false;this.replacer=typeof e["replacer"]==="function"?e["replacer"]:null;this.implicitTypes=this.schema.compiledImplicit;this.explicitTypes=this.schema.compiledExplicit;this.tag=null;this.result="";this.duplicates=[];this.usedDuplicates=null}function indentString(e,t){var r=n.repeat(" ",t),s=0,i=-1,o="",a,u=e.length;while(s<u){i=e.indexOf("\n",s);if(i===-1){a=e.slice(s);s=u}else{a=e.slice(s,i+1);s=i+1}if(a.length&&a!=="\n")o+=r;o+=a}return o}function generateNextLine(e,t){return"\n"+n.repeat(" ",e.indent*t)}function testImplicitResolving(e,t){var r,n,s;for(r=0,n=e.implicitTypes.length;r<n;r+=1){s=e.implicitTypes[r];if(s.resolve(t)){return true}}return false}function isWhitespace(e){return e===p||e===l}function isPrintable(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==u||65536<=e&&e<=1114111}function isNsCharOrWhitespace(e){return isPrintable(e)&&e!==u&&e!==f&&e!==c}function isPlainSafe(e,t,r){var n=isNsCharOrWhitespace(e);var s=n&&!isWhitespace(e);return(r?n:n&&e!==E&&e!==S&&e!==x&&e!==k&&e!==$)&&e!==g&&!(t===v&&!s)||isNsCharOrWhitespace(t)&&!isWhitespace(t)&&e===g||t===v&&s}function isPlainSafeFirst(e){return isPrintable(e)&&e!==u&&!isWhitespace(e)&&e!==C&&e!==F&&e!==v&&e!==E&&e!==S&&e!==x&&e!==k&&e!==$&&e!==g&&e!==D&&e!==A&&e!==h&&e!==R&&e!==b&&e!==w&&e!==y&&e!==d&&e!==m&&e!==_&&e!==O}function isPlainSafeLast(e){return!isWhitespace(e)&&e!==v}function codePointAt(e,t){var r=e.charCodeAt(t),n;if(r>=55296&&r<=56319&&t+1<e.length){n=e.charCodeAt(t+1);if(n>=56320&&n<=57343){return(r-55296)*1024+n-56320+65536}}return r}function needIndentIndicator(e){var t=/^\n* /;return t.test(e)}var N=1,M=2,j=3,H=4,G=5;function chooseScalarStyle(e,t,r,n,s,i,o,a){var u;var l=0;var f=null;var p=false;var h=false;var d=n!==-1;var g=-1;var m=isPlainSafeFirst(codePointAt(e,0))&&isPlainSafeLast(codePointAt(e,e.length-1));if(t||o){for(u=0;u<e.length;l>=65536?u+=2:u++){l=codePointAt(e,u);if(!isPrintable(l)){return G}m=m&&isPlainSafe(l,f,a);f=l}}else{for(u=0;u<e.length;l>=65536?u+=2:u++){l=codePointAt(e,u);if(l===c){p=true;if(d){h=h||u-g-1>n&&e[g+1]!==" ";g=u}}else if(!isPrintable(l)){return G}m=m&&isPlainSafe(l,f,a);f=l}h=h||d&&(u-g-1>n&&e[g+1]!==" ")}if(!p&&!h){if(m&&!o&&!s(e)){return N}return i===T?G:M}if(r>9&&needIndentIndicator(e)){return G}if(!o){return h?H:j}return i===T?G:M}function writeScalar(e,t,r,n,i){e.dump=function(){if(t.length===0){return e.quotingType===T?'""':"''"}if(!e.noCompatMode){if(I.indexOf(t)!==-1||L.test(t)){return e.quotingType===T?'"'+t+'"':"'"+t+"'"}}var o=e.indent*Math.max(1,r);var a=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o);var u=n||e.flowLevel>-1&&r>=e.flowLevel;function testAmbiguity(t){return testImplicitResolving(e,t)}switch(chooseScalarStyle(t,u,e.indent,a,testAmbiguity,e.quotingType,e.forceQuotes&&!n,i)){case N:return t;case M:return"'"+t.replace(/'/g,"''")+"'";case j:return"|"+blockHeader(t,e.indent)+dropEndingNewline(indentString(t,o));case H:return">"+blockHeader(t,e.indent)+dropEndingNewline(indentString(foldString(t,a),o));case G:return'"'+escapeString(t,a)+'"';default:throw new s("impossible error: invalid scalar style")}}()}function blockHeader(e,t){var r=needIndentIndicator(e)?String(t):"";var n=e[e.length-1]==="\n";var s=n&&(e[e.length-2]==="\n"||e==="\n");var i=s?"+":n?"":"-";return r+i+"\n"}function dropEndingNewline(e){return e[e.length-1]==="\n"?e.slice(0,-1):e}function foldString(e,t){var r=/(\n+)([^\n]*)/g;var n=function(){var n=e.indexOf("\n");n=n!==-1?n:e.length;r.lastIndex=n;return foldLine(e.slice(0,n),t)}();var s=e[0]==="\n"||e[0]===" ";var i;var o;while(o=r.exec(e)){var a=o[1],u=o[2];i=u[0]===" ";n+=a+(!s&&!i&&u!==""?"\n":"")+foldLine(u,t);s=i}return n}function foldLine(e,t){if(e===""||e[0]===" ")return e;var r=/ [^ ]/g;var n;var s=0,i,o=0,a=0;var u="";while(n=r.exec(e)){a=n.index;if(a-s>t){i=o>s?o:a;u+="\n"+e.slice(s,i);s=i+1}o=a}u+="\n";if(e.length-s>t&&o>s){u+=e.slice(s,o)+"\n"+e.slice(o+1)}else{u+=e.slice(s)}return u.slice(1)}function escapeString(e){var t="";var r=0;var n;for(var s=0;s<e.length;r>=65536?s+=2:s++){r=codePointAt(e,s);n=B[r];if(!n&&isPrintable(r)){t+=e[s];if(r>=65536)t+=e[s+1]}else{t+=n||encodeHex(r)}}return t}function writeFlowSequence(e,t,r){var n="",s=e.tag,i,o,a;for(i=0,o=r.length;i<o;i+=1){a=r[i];if(e.replacer){a=e.replacer.call(r,String(i),a)}if(writeNode(e,t,a,false,false)||typeof a==="undefined"&&writeNode(e,t,null,false,false)){if(n!=="")n+=","+(!e.condenseFlow?" ":"");n+=e.dump}}e.tag=s;e.dump="["+n+"]"}function writeBlockSequence(e,t,r,n){var s="",i=e.tag,o,a,u;for(o=0,a=r.length;o<a;o+=1){u=r[o];if(e.replacer){u=e.replacer.call(r,String(o),u)}if(writeNode(e,t+1,u,true,true,false,true)||typeof u==="undefined"&&writeNode(e,t+1,null,true,true,false,true)){if(!n||s!==""){s+=generateNextLine(e,t)}if(e.dump&&c===e.dump.charCodeAt(0)){s+="-"}else{s+="- "}s+=e.dump}}e.tag=i;e.dump=s||"[]"}function writeFlowMapping(e,t,r){var n="",s=e.tag,i=Object.keys(r),o,a,u,l,c;for(o=0,a=i.length;o<a;o+=1){c="";if(n!=="")c+=", ";if(e.condenseFlow)c+='"';u=i[o];l=r[u];if(e.replacer){l=e.replacer.call(r,u,l)}if(!writeNode(e,t,u,false,false)){continue}if(e.dump.length>1024)c+="? ";c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" ");if(!writeNode(e,t,l,false,false)){continue}c+=e.dump;n+=c}e.tag=s;e.dump="{"+n+"}"}function writeBlockMapping(e,t,r,n){var i="",o=e.tag,a=Object.keys(r),u,l,f,p,h,d;if(e.sortKeys===true){a.sort()}else if(typeof e.sortKeys==="function"){a.sort(e.sortKeys)}else if(e.sortKeys){throw new s("sortKeys must be a boolean or a function")}for(u=0,l=a.length;u<l;u+=1){d="";if(!n||i!==""){d+=generateNextLine(e,t)}f=a[u];p=r[f];if(e.replacer){p=e.replacer.call(r,f,p)}if(!writeNode(e,t+1,f,true,true,true)){continue}h=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024;if(h){if(e.dump&&c===e.dump.charCodeAt(0)){d+="?"}else{d+="? "}}d+=e.dump;if(h){d+=generateNextLine(e,t)}if(!writeNode(e,t+1,p,true,h)){continue}if(e.dump&&c===e.dump.charCodeAt(0)){d+=":"}else{d+=": "}d+=e.dump;i+=d}e.tag=o;e.dump=i||"{}"}function detectType(e,t,r){var n,i,u,l,c,f;i=r?e.explicitTypes:e.implicitTypes;for(u=0,l=i.length;u<l;u+=1){c=i[u];if((c.instanceOf||c.predicate)&&(!c.instanceOf||typeof t==="object"&&t instanceof c.instanceOf)&&(!c.predicate||c.predicate(t))){if(r){if(c.multi&&c.representName){e.tag=c.representName(t)}else{e.tag=c.tag}}else{e.tag="?"}if(c.represent){f=e.styleMap[c.tag]||c.defaultStyle;if(o.call(c.represent)==="[object Function]"){n=c.represent(t,f)}else if(a.call(c.represent,f)){n=c.represent[f](t,f)}else{throw new s("!<"+c.tag+'> tag resolver accepts not "'+f+'" style')}e.dump=n}return true}}return false}function writeNode(e,t,r,n,i,a,u){e.tag=null;e.dump=r;if(!detectType(e,r,false)){detectType(e,r,true)}var l=o.call(e.dump);var c=n;var f;if(n){n=e.flowLevel<0||e.flowLevel>t}var p=l==="[object Object]"||l==="[object Array]",h,d;if(p){h=e.duplicates.indexOf(r);d=h!==-1}if(e.tag!==null&&e.tag!=="?"||d||e.indent!==2&&t>0){i=false}if(d&&e.usedDuplicates[h]){e.dump="*ref_"+h}else{if(p&&d&&!e.usedDuplicates[h]){e.usedDuplicates[h]=true}if(l==="[object Object]"){if(n&&Object.keys(e.dump).length!==0){writeBlockMapping(e,t,e.dump,i);if(d){e.dump="&ref_"+h+e.dump}}else{writeFlowMapping(e,t,e.dump);if(d){e.dump="&ref_"+h+" "+e.dump}}}else if(l==="[object Array]"){if(n&&e.dump.length!==0){if(e.noArrayIndent&&!u&&t>0){writeBlockSequence(e,t-1,e.dump,i)}else{writeBlockSequence(e,t,e.dump,i)}if(d){e.dump="&ref_"+h+e.dump}}else{writeFlowSequence(e,t,e.dump);if(d){e.dump="&ref_"+h+" "+e.dump}}}else if(l==="[object String]"){if(e.tag!=="?"){writeScalar(e,e.dump,t,a,c)}}else if(l==="[object Undefined]"){return false}else{if(e.skipInvalid)return false;throw new s("unacceptable kind of an object to dump "+l)}if(e.tag!==null&&e.tag!=="?"){f=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21");if(e.tag[0]==="!"){f="!"+f}else if(f.slice(0,18)==="tag:yaml.org,2002:"){f="!!"+f.slice(18)}else{f="!<"+f+">"}e.dump=f+" "+e.dump}}return true}function getDuplicateReferences(e,t){var r=[],n=[],s,i;inspectNode(e,r,n);for(s=0,i=n.length;s<i;s+=1){t.duplicates.push(r[n[s]])}t.usedDuplicates=new Array(i)}function inspectNode(e,t,r){var n,s,i;if(e!==null&&typeof e==="object"){s=t.indexOf(e);if(s!==-1){if(r.indexOf(s)===-1){r.push(s)}}else{t.push(e);if(Array.isArray(e)){for(s=0,i=e.length;s<i;s+=1){inspectNode(e[s],t,r)}}else{n=Object.keys(e);for(s=0,i=n.length;s<i;s+=1){inspectNode(e[n[s]],t,r)}}}}}function dump(e,t){t=t||{};var r=new State(t);if(!r.noRefs)getDuplicateReferences(e,r);var n=e;if(r.replacer){n=r.replacer.call({"":n},"",n)}if(writeNode(r,0,n,true,true))return r.dump+"\n";return""}e.exports.dump=dump},8179:e=>{function formatError(e,t){var r="",n=e.reason||"(unknown reason)";if(!e.mark)return n;if(e.mark.name){r+='in "'+e.mark.name+'" '}r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")";if(!t&&e.mark.snippet){r+="\n\n"+e.mark.snippet}return n+" "+r}function YAMLException(e,t){Error.call(this);this.name="YAMLException";this.reason=e;this.mark=t;this.message=formatError(this,false);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack||""}}YAMLException.prototype=Object.create(Error.prototype);YAMLException.prototype.constructor=YAMLException;YAMLException.prototype.toString=function toString(e){return this.name+": "+formatError(this,e)};e.exports=YAMLException},1161:(e,t,r)=>{var n=r(6829);var s=r(8179);var i=r(6975);var o=r(8759);var a=Object.prototype.hasOwnProperty;var u=1;var l=2;var c=3;var f=4;var p=1;var h=2;var d=3;var g=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;var m=/[\x85\u2028\u2029]/;var D=/[,\[\]\{\}]/;var y=/^(?:!|!!|![a-z\-]+!)$/i;var A=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function _class(e){return Object.prototype.toString.call(e)}function is_EOL(e){return e===10||e===13}function is_WHITE_SPACE(e){return e===9||e===32}function is_WS_OR_EOL(e){return e===9||e===32||e===10||e===13}function is_FLOW_INDICATOR(e){return e===44||e===91||e===93||e===123||e===125}function fromHexCode(e){var t;if(48<=e&&e<=57){return e-48}t=e|32;if(97<=t&&t<=102){return t-97+10}return-1}function escapedHexLen(e){if(e===120){return 2}if(e===117){return 4}if(e===85){return 8}return 0}function fromDecimalCode(e){if(48<=e&&e<=57){return e-48}return-1}function simpleEscapeSequence(e){return e===48?"\0":e===97?"":e===98?"\b":e===116?"\t":e===9?"\t":e===110?"\n":e===118?"\v":e===102?"\f":e===114?"\r":e===101?"":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"
":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function charFromCodepoint(e){if(e<=65535){return String.fromCharCode(e)}return String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var E=new Array(256);var C=new Array(256);for(var v=0;v<256;v++){E[v]=simpleEscapeSequence(v)?1:0;C[v]=simpleEscapeSequence(v)}function State(e,t){this.input=e;this.filename=t["filename"]||null;this.schema=t["schema"]||o;this.onWarning=t["onWarning"]||null;this.legacy=t["legacy"]||false;this.json=t["json"]||false;this.listener=t["listener"]||null;this.implicitTypes=this.schema.compiledImplicit;this.typeMap=this.schema.compiledTypeMap;this.length=e.length;this.position=0;this.line=0;this.lineStart=0;this.lineIndent=0;this.firstTabInLine=-1;this.documents=[]}function generateError(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};r.snippet=i(r);return new s(t,r)}function throwError(e,t){throw generateError(e,t)}function throwWarning(e,t){if(e.onWarning){e.onWarning.call(null,generateError(e,t))}}var b={YAML:function handleYamlDirective(e,t,r){var n,s,i;if(e.version!==null){throwError(e,"duplication of %YAML directive")}if(r.length!==1){throwError(e,"YAML directive accepts exactly one argument")}n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]);if(n===null){throwError(e,"ill-formed argument of the YAML directive")}s=parseInt(n[1],10);i=parseInt(n[2],10);if(s!==1){throwError(e,"unacceptable YAML version of the document")}e.version=r[0];e.checkLineBreaks=i<2;if(i!==1&&i!==2){throwWarning(e,"unsupported YAML version of the document")}},TAG:function handleTagDirective(e,t,r){var n,s;if(r.length!==2){throwError(e,"TAG directive accepts exactly two arguments")}n=r[0];s=r[1];if(!y.test(n)){throwError(e,"ill-formed tag handle (first argument) of the TAG directive")}if(a.call(e.tagMap,n)){throwError(e,'there is a previously declared suffix for "'+n+'" tag handle')}if(!A.test(s)){throwError(e,"ill-formed tag prefix (second argument) of the TAG directive")}try{s=decodeURIComponent(s)}catch(t){throwError(e,"tag prefix is malformed: "+s)}e.tagMap[n]=s}};function captureSegment(e,t,r,n){var s,i,o,a;if(t<r){a=e.input.slice(t,r);if(n){for(s=0,i=a.length;s<i;s+=1){o=a.charCodeAt(s);if(!(o===9||32<=o&&o<=1114111)){throwError(e,"expected valid JSON character")}}}else if(g.test(a)){throwError(e,"the stream contains non-printable characters")}e.result+=a}}function mergeMappings(e,t,r,s){var i,o,u,l;if(!n.isObject(r)){throwError(e,"cannot merge mappings; the provided source object is unacceptable")}i=Object.keys(r);for(u=0,l=i.length;u<l;u+=1){o=i[u];if(!a.call(t,o)){t[o]=r[o];s[o]=true}}}function storeMappingPair(e,t,r,n,s,i,o,u,l){var c,f;if(Array.isArray(s)){s=Array.prototype.slice.call(s);for(c=0,f=s.length;c<f;c+=1){if(Array.isArray(s[c])){throwError(e,"nested arrays are not supported inside keys")}if(typeof s==="object"&&_class(s[c])==="[object Object]"){s[c]="[object Object]"}}}if(typeof s==="object"&&_class(s)==="[object Object]"){s="[object Object]"}s=String(s);if(t===null){t={}}if(n==="tag:yaml.org,2002:merge"){if(Array.isArray(i)){for(c=0,f=i.length;c<f;c+=1){mergeMappings(e,t,i[c],r)}}else{mergeMappings(e,t,i,r)}}else{if(!e.json&&!a.call(r,s)&&a.call(t,s)){e.line=o||e.line;e.lineStart=u||e.lineStart;e.position=l||e.position;throwError(e,"duplicated mapping key")}if(s==="__proto__"){Object.defineProperty(t,s,{configurable:true,enumerable:true,writable:true,value:i})}else{t[s]=i}delete r[s]}return t}function readLineBreak(e){var t;t=e.input.charCodeAt(e.position);if(t===10){e.position++}else if(t===13){e.position++;if(e.input.charCodeAt(e.position)===10){e.position++}}else{throwError(e,"a line break is expected")}e.line+=1;e.lineStart=e.position;e.firstTabInLine=-1}function skipSeparationSpace(e,t,r){var n=0,s=e.input.charCodeAt(e.position);while(s!==0){while(is_WHITE_SPACE(s)){if(s===9&&e.firstTabInLine===-1){e.firstTabInLine=e.position}s=e.input.charCodeAt(++e.position)}if(t&&s===35){do{s=e.input.charCodeAt(++e.position)}while(s!==10&&s!==13&&s!==0)}if(is_EOL(s)){readLineBreak(e);s=e.input.charCodeAt(e.position);n++;e.lineIndent=0;while(s===32){e.lineIndent++;s=e.input.charCodeAt(++e.position)}}else{break}}if(r!==-1&&n!==0&&e.lineIndent<r){throwWarning(e,"deficient indentation")}return n}function testDocumentSeparator(e){var t=e.position,r;r=e.input.charCodeAt(t);if((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)){t+=3;r=e.input.charCodeAt(t);if(r===0||is_WS_OR_EOL(r)){return true}}return false}function writeFoldedLines(e,t){if(t===1){e.result+=" "}else if(t>1){e.result+=n.repeat("\n",t-1)}}function readPlainScalar(e,t,r){var n,s,i,o,a,u,l,c,f=e.kind,p=e.result,h;h=e.input.charCodeAt(e.position);if(is_WS_OR_EOL(h)||is_FLOW_INDICATOR(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96){return false}if(h===63||h===45){s=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(s)||r&&is_FLOW_INDICATOR(s)){return false}}e.kind="scalar";e.result="";i=o=e.position;a=false;while(h!==0){if(h===58){s=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(s)||r&&is_FLOW_INDICATOR(s)){break}}else if(h===35){n=e.input.charCodeAt(e.position-1);if(is_WS_OR_EOL(n)){break}}else if(e.position===e.lineStart&&testDocumentSeparator(e)||r&&is_FLOW_INDICATOR(h)){break}else if(is_EOL(h)){u=e.line;l=e.lineStart;c=e.lineIndent;skipSeparationSpace(e,false,-1);if(e.lineIndent>=t){a=true;h=e.input.charCodeAt(e.position);continue}else{e.position=o;e.line=u;e.lineStart=l;e.lineIndent=c;break}}if(a){captureSegment(e,i,o,false);writeFoldedLines(e,e.line-u);i=o=e.position;a=false}if(!is_WHITE_SPACE(h)){o=e.position+1}h=e.input.charCodeAt(++e.position)}captureSegment(e,i,o,false);if(e.result){return true}e.kind=f;e.result=p;return false}function readSingleQuotedScalar(e,t){var r,n,s;r=e.input.charCodeAt(e.position);if(r!==39){return false}e.kind="scalar";e.result="";e.position++;n=s=e.position;while((r=e.input.charCodeAt(e.position))!==0){if(r===39){captureSegment(e,n,e.position,true);r=e.input.charCodeAt(++e.position);if(r===39){n=e.position;e.position++;s=e.position}else{return true}}else if(is_EOL(r)){captureSegment(e,n,s,true);writeFoldedLines(e,skipSeparationSpace(e,false,t));n=s=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a single quoted scalar")}else{e.position++;s=e.position}}throwError(e,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(e,t){var r,n,s,i,o,a;a=e.input.charCodeAt(e.position);if(a!==34){return false}e.kind="scalar";e.result="";e.position++;r=n=e.position;while((a=e.input.charCodeAt(e.position))!==0){if(a===34){captureSegment(e,r,e.position,true);e.position++;return true}else if(a===92){captureSegment(e,r,e.position,true);a=e.input.charCodeAt(++e.position);if(is_EOL(a)){skipSeparationSpace(e,false,t)}else if(a<256&&E[a]){e.result+=C[a];e.position++}else if((o=escapedHexLen(a))>0){s=o;i=0;for(;s>0;s--){a=e.input.charCodeAt(++e.position);if((o=fromHexCode(a))>=0){i=(i<<4)+o}else{throwError(e,"expected hexadecimal character")}}e.result+=charFromCodepoint(i);e.position++}else{throwError(e,"unknown escape sequence")}r=n=e.position}else if(is_EOL(a)){captureSegment(e,r,n,true);writeFoldedLines(e,skipSeparationSpace(e,false,t));r=n=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a double quoted scalar")}else{e.position++;n=e.position}}throwError(e,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(e,t){var r=true,n,s,i,o=e.tag,a,l=e.anchor,c,f,p,h,d,g=Object.create(null),m,D,y,A;A=e.input.charCodeAt(e.position);if(A===91){f=93;d=false;a=[]}else if(A===123){f=125;d=true;a={}}else{return false}if(e.anchor!==null){e.anchorMap[e.anchor]=a}A=e.input.charCodeAt(++e.position);while(A!==0){skipSeparationSpace(e,true,t);A=e.input.charCodeAt(e.position);if(A===f){e.position++;e.tag=o;e.anchor=l;e.kind=d?"mapping":"sequence";e.result=a;return true}else if(!r){throwError(e,"missed comma between flow collection entries")}else if(A===44){throwError(e,"expected the node content, but found ','")}D=m=y=null;p=h=false;if(A===63){c=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(c)){p=h=true;e.position++;skipSeparationSpace(e,true,t)}}n=e.line;s=e.lineStart;i=e.position;composeNode(e,t,u,false,true);D=e.tag;m=e.result;skipSeparationSpace(e,true,t);A=e.input.charCodeAt(e.position);if((h||e.line===n)&&A===58){p=true;A=e.input.charCodeAt(++e.position);skipSeparationSpace(e,true,t);composeNode(e,t,u,false,true);y=e.result}if(d){storeMappingPair(e,a,g,D,m,y,n,s,i)}else if(p){a.push(storeMappingPair(e,null,g,D,m,y,n,s,i))}else{a.push(m)}skipSeparationSpace(e,true,t);A=e.input.charCodeAt(e.position);if(A===44){r=true;A=e.input.charCodeAt(++e.position)}else{r=false}}throwError(e,"unexpected end of the stream within a flow collection")}function readBlockScalar(e,t){var r,s,i=p,o=false,a=false,u=t,l=0,c=false,f,g;g=e.input.charCodeAt(e.position);if(g===124){s=false}else if(g===62){s=true}else{return false}e.kind="scalar";e.result="";while(g!==0){g=e.input.charCodeAt(++e.position);if(g===43||g===45){if(p===i){i=g===43?d:h}else{throwError(e,"repeat of a chomping mode identifier")}}else if((f=fromDecimalCode(g))>=0){if(f===0){throwError(e,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!a){u=t+f-1;a=true}else{throwError(e,"repeat of an indentation width identifier")}}else{break}}if(is_WHITE_SPACE(g)){do{g=e.input.charCodeAt(++e.position)}while(is_WHITE_SPACE(g));if(g===35){do{g=e.input.charCodeAt(++e.position)}while(!is_EOL(g)&&g!==0)}}while(g!==0){readLineBreak(e);e.lineIndent=0;g=e.input.charCodeAt(e.position);while((!a||e.lineIndent<u)&&g===32){e.lineIndent++;g=e.input.charCodeAt(++e.position)}if(!a&&e.lineIndent>u){u=e.lineIndent}if(is_EOL(g)){l++;continue}if(e.lineIndent<u){if(i===d){e.result+=n.repeat("\n",o?1+l:l)}else if(i===p){if(o){e.result+="\n"}}break}if(s){if(is_WHITE_SPACE(g)){c=true;e.result+=n.repeat("\n",o?1+l:l)}else if(c){c=false;e.result+=n.repeat("\n",l+1)}else if(l===0){if(o){e.result+=" "}}else{e.result+=n.repeat("\n",l)}}else{e.result+=n.repeat("\n",o?1+l:l)}o=true;a=true;l=0;r=e.position;while(!is_EOL(g)&&g!==0){g=e.input.charCodeAt(++e.position)}captureSegment(e,r,e.position,false)}return true}function readBlockSequence(e,t){var r,n=e.tag,s=e.anchor,i=[],o,a=false,u;if(e.firstTabInLine!==-1)return false;if(e.anchor!==null){e.anchorMap[e.anchor]=i}u=e.input.charCodeAt(e.position);while(u!==0){if(e.firstTabInLine!==-1){e.position=e.firstTabInLine;throwError(e,"tab characters must not be used in indentation")}if(u!==45){break}o=e.input.charCodeAt(e.position+1);if(!is_WS_OR_EOL(o)){break}a=true;e.position++;if(skipSeparationSpace(e,true,-1)){if(e.lineIndent<=t){i.push(null);u=e.input.charCodeAt(e.position);continue}}r=e.line;composeNode(e,t,c,false,true);i.push(e.result);skipSeparationSpace(e,true,-1);u=e.input.charCodeAt(e.position);if((e.line===r||e.lineIndent>t)&&u!==0){throwError(e,"bad indentation of a sequence entry")}else if(e.lineIndent<t){break}}if(a){e.tag=n;e.anchor=s;e.kind="sequence";e.result=i;return true}return false}function readBlockMapping(e,t,r){var n,s,i,o,a,u,c=e.tag,p=e.anchor,h={},d=Object.create(null),g=null,m=null,D=null,y=false,A=false,E;if(e.firstTabInLine!==-1)return false;if(e.anchor!==null){e.anchorMap[e.anchor]=h}E=e.input.charCodeAt(e.position);while(E!==0){if(!y&&e.firstTabInLine!==-1){e.position=e.firstTabInLine;throwError(e,"tab characters must not be used in indentation")}n=e.input.charCodeAt(e.position+1);i=e.line;if((E===63||E===58)&&is_WS_OR_EOL(n)){if(E===63){if(y){storeMappingPair(e,h,d,g,m,null,o,a,u);g=m=D=null}A=true;y=true;s=true}else if(y){y=false;s=true}else{throwError(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line")}e.position+=1;E=n}else{o=e.line;a=e.lineStart;u=e.position;if(!composeNode(e,r,l,false,true)){break}if(e.line===i){E=e.input.charCodeAt(e.position);while(is_WHITE_SPACE(E)){E=e.input.charCodeAt(++e.position)}if(E===58){E=e.input.charCodeAt(++e.position);if(!is_WS_OR_EOL(E)){throwError(e,"a whitespace character is expected after the key-value separator within a block mapping")}if(y){storeMappingPair(e,h,d,g,m,null,o,a,u);g=m=D=null}A=true;y=false;s=false;g=e.tag;m=e.result}else if(A){throwError(e,"can not read an implicit mapping pair; a colon is missed")}else{e.tag=c;e.anchor=p;return true}}else if(A){throwError(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}else{e.tag=c;e.anchor=p;return true}}if(e.line===i||e.lineIndent>t){if(y){o=e.line;a=e.lineStart;u=e.position}if(composeNode(e,t,f,true,s)){if(y){m=e.result}else{D=e.result}}if(!y){storeMappingPair(e,h,d,g,m,D,o,a,u);g=m=D=null}skipSeparationSpace(e,true,-1);E=e.input.charCodeAt(e.position)}if((e.line===i||e.lineIndent>t)&&E!==0){throwError(e,"bad indentation of a mapping entry")}else if(e.lineIndent<t){break}}if(y){storeMappingPair(e,h,d,g,m,null,o,a,u)}if(A){e.tag=c;e.anchor=p;e.kind="mapping";e.result=h}return A}function readTagProperty(e){var t,r=false,n=false,s,i,o;o=e.input.charCodeAt(e.position);if(o!==33)return false;if(e.tag!==null){throwError(e,"duplication of a tag property")}o=e.input.charCodeAt(++e.position);if(o===60){r=true;o=e.input.charCodeAt(++e.position)}else if(o===33){n=true;s="!!";o=e.input.charCodeAt(++e.position)}else{s="!"}t=e.position;if(r){do{o=e.input.charCodeAt(++e.position)}while(o!==0&&o!==62);if(e.position<e.length){i=e.input.slice(t,e.position);o=e.input.charCodeAt(++e.position)}else{throwError(e,"unexpected end of the stream within a verbatim tag")}}else{while(o!==0&&!is_WS_OR_EOL(o)){if(o===33){if(!n){s=e.input.slice(t-1,e.position+1);if(!y.test(s)){throwError(e,"named tag handle cannot contain such characters")}n=true;t=e.position+1}else{throwError(e,"tag suffix cannot contain exclamation marks")}}o=e.input.charCodeAt(++e.position)}i=e.input.slice(t,e.position);if(D.test(i)){throwError(e,"tag suffix cannot contain flow indicator characters")}}if(i&&!A.test(i)){throwError(e,"tag name cannot contain such characters: "+i)}try{i=decodeURIComponent(i)}catch(t){throwError(e,"tag name is malformed: "+i)}if(r){e.tag=i}else if(a.call(e.tagMap,s)){e.tag=e.tagMap[s]+i}else if(s==="!"){e.tag="!"+i}else if(s==="!!"){e.tag="tag:yaml.org,2002:"+i}else{throwError(e,'undeclared tag handle "'+s+'"')}return true}function readAnchorProperty(e){var t,r;r=e.input.charCodeAt(e.position);if(r!==38)return false;if(e.anchor!==null){throwError(e,"duplication of an anchor property")}r=e.input.charCodeAt(++e.position);t=e.position;while(r!==0&&!is_WS_OR_EOL(r)&&!is_FLOW_INDICATOR(r)){r=e.input.charCodeAt(++e.position)}if(e.position===t){throwError(e,"name of an anchor node must contain at least one character")}e.anchor=e.input.slice(t,e.position);return true}function readAlias(e){var t,r,n;n=e.input.charCodeAt(e.position);if(n!==42)return false;n=e.input.charCodeAt(++e.position);t=e.position;while(n!==0&&!is_WS_OR_EOL(n)&&!is_FLOW_INDICATOR(n)){n=e.input.charCodeAt(++e.position)}if(e.position===t){throwError(e,"name of an alias node must contain at least one character")}r=e.input.slice(t,e.position);if(!a.call(e.anchorMap,r)){throwError(e,'unidentified alias "'+r+'"')}e.result=e.anchorMap[r];skipSeparationSpace(e,true,-1);return true}function composeNode(e,t,r,n,s){var i,o,p,h=1,d=false,g=false,m,D,y,A,E,C;if(e.listener!==null){e.listener("open",e)}e.tag=null;e.anchor=null;e.kind=null;e.result=null;i=o=p=f===r||c===r;if(n){if(skipSeparationSpace(e,true,-1)){d=true;if(e.lineIndent>t){h=1}else if(e.lineIndent===t){h=0}else if(e.lineIndent<t){h=-1}}}if(h===1){while(readTagProperty(e)||readAnchorProperty(e)){if(skipSeparationSpace(e,true,-1)){d=true;p=i;if(e.lineIndent>t){h=1}else if(e.lineIndent===t){h=0}else if(e.lineIndent<t){h=-1}}else{p=false}}}if(p){p=d||s}if(h===1||f===r){if(u===r||l===r){E=t}else{E=t+1}C=e.position-e.lineStart;if(h===1){if(p&&(readBlockSequence(e,C)||readBlockMapping(e,C,E))||readFlowCollection(e,E)){g=true}else{if(o&&readBlockScalar(e,E)||readSingleQuotedScalar(e,E)||readDoubleQuotedScalar(e,E)){g=true}else if(readAlias(e)){g=true;if(e.tag!==null||e.anchor!==null){throwError(e,"alias node should not have any properties")}}else if(readPlainScalar(e,E,u===r)){g=true;if(e.tag===null){e.tag="?"}}if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}}else if(h===0){g=p&&readBlockSequence(e,C)}}if(e.tag===null){if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}else if(e.tag==="?"){if(e.result!==null&&e.kind!=="scalar"){throwError(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"')}for(m=0,D=e.implicitTypes.length;m<D;m+=1){A=e.implicitTypes[m];if(A.resolve(e.result)){e.result=A.construct(e.result);e.tag=A.tag;if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}break}}}else if(e.tag!=="!"){if(a.call(e.typeMap[e.kind||"fallback"],e.tag)){A=e.typeMap[e.kind||"fallback"][e.tag]}else{A=null;y=e.typeMap.multi[e.kind||"fallback"];for(m=0,D=y.length;m<D;m+=1){if(e.tag.slice(0,y[m].tag.length)===y[m].tag){A=y[m];break}}}if(!A){throwError(e,"unknown tag !<"+e.tag+">")}if(e.result!==null&&A.kind!==e.kind){throwError(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+A.kind+'", not "'+e.kind+'"')}if(!A.resolve(e.result,e.tag)){throwError(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}else{e.result=A.construct(e.result,e.tag);if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}}if(e.listener!==null){e.listener("close",e)}return e.tag!==null||e.anchor!==null||g}function readDocument(e){var t=e.position,r,n,s,i=false,o;e.version=null;e.checkLineBreaks=e.legacy;e.tagMap=Object.create(null);e.anchorMap=Object.create(null);while((o=e.input.charCodeAt(e.position))!==0){skipSeparationSpace(e,true,-1);o=e.input.charCodeAt(e.position);if(e.lineIndent>0||o!==37){break}i=true;o=e.input.charCodeAt(++e.position);r=e.position;while(o!==0&&!is_WS_OR_EOL(o)){o=e.input.charCodeAt(++e.position)}n=e.input.slice(r,e.position);s=[];if(n.length<1){throwError(e,"directive name must not be less than one character in length")}while(o!==0){while(is_WHITE_SPACE(o)){o=e.input.charCodeAt(++e.position)}if(o===35){do{o=e.input.charCodeAt(++e.position)}while(o!==0&&!is_EOL(o));break}if(is_EOL(o))break;r=e.position;while(o!==0&&!is_WS_OR_EOL(o)){o=e.input.charCodeAt(++e.position)}s.push(e.input.slice(r,e.position))}if(o!==0)readLineBreak(e);if(a.call(b,n)){b[n](e,n,s)}else{throwWarning(e,'unknown document directive "'+n+'"')}}skipSeparationSpace(e,true,-1);if(e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45){e.position+=3;skipSeparationSpace(e,true,-1)}else if(i){throwError(e,"directives end mark is expected")}composeNode(e,e.lineIndent-1,f,false,true);skipSeparationSpace(e,true,-1);if(e.checkLineBreaks&&m.test(e.input.slice(t,e.position))){throwWarning(e,"non-ASCII line breaks are interpreted as content")}e.documents.push(e.result);if(e.position===e.lineStart&&testDocumentSeparator(e)){if(e.input.charCodeAt(e.position)===46){e.position+=3;skipSeparationSpace(e,true,-1)}return}if(e.position<e.length-1){throwError(e,"end of the stream or a document separator is expected")}else{return}}function loadDocuments(e,t){e=String(e);t=t||{};if(e.length!==0){if(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13){e+="\n"}if(e.charCodeAt(0)===65279){e=e.slice(1)}}var r=new State(e,t);var n=e.indexOf("\0");if(n!==-1){r.position=n;throwError(r,"null byte is not allowed in input")}r.input+="\0";while(r.input.charCodeAt(r.position)===32){r.lineIndent+=1;r.position+=1}while(r.position<r.length-1){readDocument(r)}return r.documents}function loadAll(e,t,r){if(t!==null&&typeof t==="object"&&typeof r==="undefined"){r=t;t=null}var n=loadDocuments(e,r);if(typeof t!=="function"){return n}for(var s=0,i=n.length;s<i;s+=1){t(n[s])}}function load(e,t){var r=loadDocuments(e,t);if(r.length===0){return undefined}else if(r.length===1){return r[0]}throw new s("expected a single document in the stream, but found more")}e.exports.loadAll=loadAll;e.exports.load=load},1082:(e,t,r)=>{var n=r(8179);var s=r(6073);function compileList(e,t){var r=[];e[t].forEach((function(e){var t=r.length;r.forEach((function(r,n){if(r.tag===e.tag&&r.kind===e.kind&&r.multi===e.multi){t=n}}));r[t]=e}));return r}function compileMap(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function collectType(t){if(t.multi){e.multi[t.kind].push(t);e.multi["fallback"].push(t)}else{e[t.kind][t.tag]=e["fallback"][t.tag]=t}}for(t=0,r=arguments.length;t<r;t+=1){arguments[t].forEach(collectType)}return e}function Schema(e){return this.extend(e)}Schema.prototype.extend=function extend(e){var t=[];var r=[];if(e instanceof s){r.push(e)}else if(Array.isArray(e)){r=r.concat(e)}else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit))){if(e.implicit)t=t.concat(e.implicit);if(e.explicit)r=r.concat(e.explicit)}else{throw new n("Schema.extend argument should be a Type, [ Type ], "+"or a schema definition ({ implicit: [...], explicit: [...] })")}t.forEach((function(e){if(!(e instanceof s)){throw new n("Specified list of YAML types (or a single Type object) contains a non-Type object.")}if(e.loadKind&&e.loadKind!=="scalar"){throw new n("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}if(e.multi){throw new n("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}}));r.forEach((function(e){if(!(e instanceof s)){throw new n("Specified list of YAML types (or a single Type object) contains a non-Type object.")}}));var i=Object.create(Schema.prototype);i.implicit=(this.implicit||[]).concat(t);i.explicit=(this.explicit||[]).concat(r);i.compiledImplicit=compileList(i,"implicit");i.compiledExplicit=compileList(i,"explicit");i.compiledTypeMap=compileMap(i.compiledImplicit,i.compiledExplicit);return i};e.exports=Schema},2011:(e,t,r)=>{e.exports=r(1035)},8759:(e,t,r)=>{e.exports=r(2011).extend({implicit:[r(9212),r(6104)],explicit:[r(7900),r(9046),r(6860),r(9548)]})},8562:(e,t,r)=>{var n=r(1082);e.exports=new n({explicit:[r(3619),r(7283),r(6150)]})},1035:(e,t,r)=>{e.exports=r(8562).extend({implicit:[r(721),r(4993),r(1615),r(2705)]})},6975:(e,t,r)=>{var n=r(6829);function getLine(e,t,r,n,s){var i="";var o="";var a=Math.floor(s/2)-1;if(n-t>a){i=" ... ";t=n-a+i.length}if(r-n>a){o=" ...";r=n+a-o.length}return{str:i+e.slice(t,r).replace(/\t/g,"→")+o,pos:n-t+i.length}}function padStart(e,t){return n.repeat(" ",t-e.length)+e}function makeSnippet(e,t){t=Object.create(t||null);if(!e.buffer)return null;if(!t.maxLength)t.maxLength=79;if(typeof t.indent!=="number")t.indent=1;if(typeof t.linesBefore!=="number")t.linesBefore=3;if(typeof t.linesAfter!=="number")t.linesAfter=2;var r=/\r?\n|\r|\0/g;var s=[0];var i=[];var o;var a=-1;while(o=r.exec(e.buffer)){i.push(o.index);s.push(o.index+o[0].length);if(e.position<=o.index&&a<0){a=s.length-2}}if(a<0)a=s.length-1;var u="",l,c;var f=Math.min(e.line+t.linesAfter,i.length).toString().length;var p=t.maxLength-(t.indent+f+3);for(l=1;l<=t.linesBefore;l++){if(a-l<0)break;c=getLine(e.buffer,s[a-l],i[a-l],e.position-(s[a]-s[a-l]),p);u=n.repeat(" ",t.indent)+padStart((e.line-l+1).toString(),f)+" | "+c.str+"\n"+u}c=getLine(e.buffer,s[a],i[a],e.position,p);u+=n.repeat(" ",t.indent)+padStart((e.line+1).toString(),f)+" | "+c.str+"\n";u+=n.repeat("-",t.indent+f+3+c.pos)+"^"+"\n";for(l=1;l<=t.linesAfter;l++){if(a+l>=i.length)break;c=getLine(e.buffer,s[a+l],i[a+l],e.position-(s[a]-s[a+l]),p);u+=n.repeat(" ",t.indent)+padStart((e.line+l+1).toString(),f)+" | "+c.str+"\n"}return u.replace(/\n$/,"")}e.exports=makeSnippet},6073:(e,t,r)=>{var n=r(8179);var s=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"];var i=["scalar","sequence","mapping"];function compileStyleAliases(e){var t={};if(e!==null){Object.keys(e).forEach((function(r){e[r].forEach((function(e){t[String(e)]=r}))}))}return t}function Type(e,t){t=t||{};Object.keys(t).forEach((function(t){if(s.indexOf(t)===-1){throw new n('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}}));this.options=t;this.tag=e;this.kind=t["kind"]||null;this.resolve=t["resolve"]||function(){return true};this.construct=t["construct"]||function(e){return e};this.instanceOf=t["instanceOf"]||null;this.predicate=t["predicate"]||null;this.represent=t["represent"]||null;this.representName=t["representName"]||null;this.defaultStyle=t["defaultStyle"]||null;this.multi=t["multi"]||false;this.styleAliases=compileStyleAliases(t["styleAliases"]||null);if(i.indexOf(this.kind)===-1){throw new n('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}}e.exports=Type},7900:(e,t,r)=>{var n=r(6073);var s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function resolveYamlBinary(e){if(e===null)return false;var t,r,n=0,i=e.length,o=s;for(r=0;r<i;r++){t=o.indexOf(e.charAt(r));if(t>64)continue;if(t<0)return false;n+=6}return n%8===0}function constructYamlBinary(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,o=s,a=0,u=[];for(t=0;t<i;t++){if(t%4===0&&t){u.push(a>>16&255);u.push(a>>8&255);u.push(a&255)}a=a<<6|o.indexOf(n.charAt(t))}r=i%4*6;if(r===0){u.push(a>>16&255);u.push(a>>8&255);u.push(a&255)}else if(r===18){u.push(a>>10&255);u.push(a>>2&255)}else if(r===12){u.push(a>>4&255)}return new Uint8Array(u)}function representYamlBinary(e){var t="",r=0,n,i,o=e.length,a=s;for(n=0;n<o;n++){if(n%3===0&&n){t+=a[r>>18&63];t+=a[r>>12&63];t+=a[r>>6&63];t+=a[r&63]}r=(r<<8)+e[n]}i=o%3;if(i===0){t+=a[r>>18&63];t+=a[r>>12&63];t+=a[r>>6&63];t+=a[r&63]}else if(i===2){t+=a[r>>10&63];t+=a[r>>4&63];t+=a[r<<2&63];t+=a[64]}else if(i===1){t+=a[r>>2&63];t+=a[r<<4&63];t+=a[64];t+=a[64]}return t}function isBinary(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}e.exports=new n("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary})},4993:(e,t,r)=>{var n=r(6073);function resolveYamlBoolean(e){if(e===null)return false;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function constructYamlBoolean(e){return e==="true"||e==="True"||e==="TRUE"}function isBoolean(e){return Object.prototype.toString.call(e)==="[object Boolean]"}e.exports=new n("tag:yaml.org,2002:bool",{kind:"scalar",resolve:resolveYamlBoolean,construct:constructYamlBoolean,predicate:isBoolean,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},2705:(e,t,r)=>{var n=r(6829);var s=r(6073);var i=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?"+"|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?"+"|[-+]?\\.(?:inf|Inf|INF)"+"|\\.(?:nan|NaN|NAN))$");function resolveYamlFloat(e){if(e===null)return false;if(!i.test(e)||e[e.length-1]==="_"){return false}return true}function constructYamlFloat(e){var t,r;t=e.replace(/_/g,"").toLowerCase();r=t[0]==="-"?-1:1;if("+-".indexOf(t[0])>=0){t=t.slice(1)}if(t===".inf"){return r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY}else if(t===".nan"){return NaN}return r*parseFloat(t,10)}var o=/^[-+]?[0-9]+e/;function representYamlFloat(e,t){var r;if(isNaN(e)){switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}}else if(Number.POSITIVE_INFINITY===e){switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}}else if(Number.NEGATIVE_INFINITY===e){switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}}else if(n.isNegativeZero(e)){return"-0.0"}r=e.toString(10);return o.test(r)?r.replace("e",".e"):r}function isFloat(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||n.isNegativeZero(e))}e.exports=new s("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"})},1615:(e,t,r)=>{var n=r(6829);var s=r(6073);function isHexCode(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function isOctCode(e){return 48<=e&&e<=55}function isDecCode(e){return 48<=e&&e<=57}function resolveYamlInteger(e){if(e===null)return false;var t=e.length,r=0,n=false,s;if(!t)return false;s=e[r];if(s==="-"||s==="+"){s=e[++r]}if(s==="0"){if(r+1===t)return true;s=e[++r];if(s==="b"){r++;for(;r<t;r++){s=e[r];if(s==="_")continue;if(s!=="0"&&s!=="1")return false;n=true}return n&&s!=="_"}if(s==="x"){r++;for(;r<t;r++){s=e[r];if(s==="_")continue;if(!isHexCode(e.charCodeAt(r)))return false;n=true}return n&&s!=="_"}if(s==="o"){r++;for(;r<t;r++){s=e[r];if(s==="_")continue;if(!isOctCode(e.charCodeAt(r)))return false;n=true}return n&&s!=="_"}}if(s==="_")return false;for(;r<t;r++){s=e[r];if(s==="_")continue;if(!isDecCode(e.charCodeAt(r))){return false}n=true}if(!n||s==="_")return false;return true}function constructYamlInteger(e){var t=e,r=1,n;if(t.indexOf("_")!==-1){t=t.replace(/_/g,"")}n=t[0];if(n==="-"||n==="+"){if(n==="-")r=-1;t=t.slice(1);n=t[0]}if(t==="0")return 0;if(n==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}function isInteger(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1===0&&!n.isNegativeZero(e))}e.exports=new s("tag:yaml.org,2002:int",{kind:"scalar",resolve:resolveYamlInteger,construct:constructYamlInteger,predicate:isInteger,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},6150:(e,t,r)=>{var n=r(6073);e.exports=new n("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})},6104:(e,t,r)=>{var n=r(6073);function resolveYamlMerge(e){return e==="<<"||e===null}e.exports=new n("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge})},721:(e,t,r)=>{var n=r(6073);function resolveYamlNull(e){if(e===null)return true;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function constructYamlNull(){return null}function isNull(e){return e===null}e.exports=new n("tag:yaml.org,2002:null",{kind:"scalar",resolve:resolveYamlNull,construct:constructYamlNull,predicate:isNull,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})},9046:(e,t,r)=>{var n=r(6073);var s=Object.prototype.hasOwnProperty;var i=Object.prototype.toString;function resolveYamlOmap(e){if(e===null)return true;var t=[],r,n,o,a,u,l=e;for(r=0,n=l.length;r<n;r+=1){o=l[r];u=false;if(i.call(o)!=="[object Object]")return false;for(a in o){if(s.call(o,a)){if(!u)u=true;else return false}}if(!u)return false;if(t.indexOf(a)===-1)t.push(a);else return false}return true}function constructYamlOmap(e){return e!==null?e:[]}e.exports=new n("tag:yaml.org,2002:omap",{kind:"sequence",resolve:resolveYamlOmap,construct:constructYamlOmap})},6860:(e,t,r)=>{var n=r(6073);var s=Object.prototype.toString;function resolveYamlPairs(e){if(e===null)return true;var t,r,n,i,o,a=e;o=new Array(a.length);for(t=0,r=a.length;t<r;t+=1){n=a[t];if(s.call(n)!=="[object Object]")return false;i=Object.keys(n);if(i.length!==1)return false;o[t]=[i[0],n[i[0]]]}return true}function constructYamlPairs(e){if(e===null)return[];var t,r,n,s,i,o=e;i=new Array(o.length);for(t=0,r=o.length;t<r;t+=1){n=o[t];s=Object.keys(n);i[t]=[s[0],n[s[0]]]}return i}e.exports=new n("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:resolveYamlPairs,construct:constructYamlPairs})},7283:(e,t,r)=>{var n=r(6073);e.exports=new n("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})},9548:(e,t,r)=>{var n=r(6073);var s=Object.prototype.hasOwnProperty;function resolveYamlSet(e){if(e===null)return true;var t,r=e;for(t in r){if(s.call(r,t)){if(r[t]!==null)return false}}return true}function constructYamlSet(e){return e!==null?e:{}}e.exports=new n("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet})},3619:(e,t,r)=>{var n=r(6073);e.exports=new n("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})},9212:(e,t,r)=>{var n=r(6073);var s=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9])"+"-([0-9][0-9])$");var i=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9]?)"+"-([0-9][0-9]?)"+"(?:[Tt]|[ \\t]+)"+"([0-9][0-9]?)"+":([0-9][0-9])"+":([0-9][0-9])"+"(?:\\.([0-9]*))?"+"(?:[ \\t]*(Z|([-+])([0-9][0-9]?)"+"(?::([0-9][0-9]))?))?$");function resolveYamlTimestamp(e){if(e===null)return false;if(s.exec(e)!==null)return true;if(i.exec(e)!==null)return true;return false}function constructYamlTimestamp(e){var t,r,n,o,a,u,l,c=0,f=null,p,h,d;t=s.exec(e);if(t===null)t=i.exec(e);if(t===null)throw new Error("Date resolve error");r=+t[1];n=+t[2]-1;o=+t[3];if(!t[4]){return new Date(Date.UTC(r,n,o))}a=+t[4];u=+t[5];l=+t[6];if(t[7]){c=t[7].slice(0,3);while(c.length<3){c+="0"}c=+c}if(t[9]){p=+t[10];h=+(t[11]||0);f=(p*60+h)*6e4;if(t[9]==="-")f=-f}d=new Date(Date.UTC(r,n,o,a,u,l,c));if(f)d.setTime(d.getTime()-f);return d}function representYamlTimestamp(e){return e.toISOString()}e.exports=new n("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp})},6228:(e,t,r)=>{const n=r(3837);const s=r(610);const i=r(8569);const o=r(479);const isEmptyString=e=>e===""||e==="./";const micromatch=(e,t,r)=>{t=[].concat(t);e=[].concat(e);let n=new Set;let s=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){n.add(e.output)}else{n.delete(e.output);s.add(e.output)}}}let u=a===t.length?[...o]:[...s];let l=u.filter((e=>!n.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 n=new Set;let s=[];let onResult=e=>{if(r.onResult)r.onResult(e);s.push(e.output)};let i=new Set(micromatch(e,t,{...r,onResult:onResult}));for(let e of s){if(!i.has(e)){n.add(e)}}return[...n]};micromatch.contains=(e,t,r)=>{if(typeof e!=="string"){throw new TypeError(`Expected a string: "${n.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 n=micromatch(Object.keys(e),t,r);let s={};for(let t of n)s[t]=e[t];return s};micromatch.some=(e,t,r)=>{let n=[].concat(e);for(let e of[].concat(t)){let t=i(String(e),r);if(n.some((e=>t(e)))){return true}}return false};micromatch.every=(e,t,r)=>{let n=[].concat(e);for(let e of[].concat(t)){let t=i(String(e),r);if(!n.every((e=>t(e)))){return false}}return true};micromatch.all=(e,t,r)=>{if(typeof e!=="string"){throw new TypeError(`Expected a string: "${n.inspect(e)}"`)}return[].concat(t).every((t=>i(t,r)(e)))};micromatch.capture=(e,t,r)=>{let n=o.isWindows(r);let s=i.makeRe(String(e),{...r,capture:true});let a=s.exec(n?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 n of[].concat(e||[])){for(let e of s(String(n),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 s(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},8569:(e,t,r)=>{e.exports=r(3322)},6099:(e,t,r)=>{const n=r(1017);const s="\\\\/";const i=`[^${s}]`;const o="\\.";const a="\\+";const u="\\?";const l="\\/";const c="(?=.)";const f="[^/]";const p=`(?:${l}|$)`;const h=`(?:^|${l})`;const d=`${o}{1,2}${p}`;const g=`(?!${o})`;const m=`(?!${h}${d})`;const D=`(?!${o}{0,1}${p})`;const y=`(?!${d})`;const A=`[^.${l}]`;const E=`${f}*?`;const C={DOT_LITERAL:o,PLUS_LITERAL:a,QMARK_LITERAL:u,SLASH_LITERAL:l,ONE_CHAR:c,QMARK:f,END_ANCHOR:p,DOTS_SLASH:d,NO_DOT:g,NO_DOTS:m,NO_DOT_SLASH:D,NO_DOTS_SLASH:y,QMARK_NO_DOT:A,STAR:E,START_ANCHOR:h};const v={...C,SLASH_LITERAL:`[${s}]`,QMARK:i,STAR:`${i}*?`,DOTS_SLASH:`${o}{1,2}(?:[${s}]|$)`,NO_DOT:`(?!${o})`,NO_DOTS:`(?!(?:^|[${s}])${o}{1,2}(?:[${s}]|$))`,NO_DOT_SLASH:`(?!${o}{0,1}(?:[${s}]|$))`,NO_DOTS_SLASH:`(?!${o}{1,2}(?:[${s}]|$))`,QMARK_NO_DOT:`[^.${s}]`,START_ANCHOR:`(?:^|[${s}])`,END_ANCHOR:`(?:[${s}]|$)`};const b={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:b,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:n.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?v:C}}},2139:(e,t,r)=>{const n=r(6099);const s=r(479);const{MAX_LENGTH:i,POSIX_REGEX_SOURCE:o,REGEX_NON_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_BACKREF:u,REPLACEMENTS:l}=n;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=>s.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 c=typeof r.maxLength==="number"?Math.min(i,r.maxLength):i;let f=e.length;if(f>c){throw new SyntaxError(`Input length: ${f}, exceeds maximum allowed length: ${c}`)}const p={type:"bos",value:"",output:r.prepend||""};const h=[p];const d=r.capture?"":"?:";const g=s.isWindows(t);const m=n.globChars(g);const D=n.extglobChars(m);const{DOT_LITERAL:y,PLUS_LITERAL:A,SLASH_LITERAL:E,ONE_CHAR:C,DOTS_SLASH:v,NO_DOT:b,NO_DOT_SLASH:w,NO_DOTS_SLASH:F,QMARK:_,QMARK_NO_DOT:S,STAR:x,START_ANCHOR:O}=m;const globstar=e=>`(${d}(?:(?!${O}${e.dot?v:y}).)*?)`;const k=r.dot?"":b;const R=r.dot?_:S;let $=r.bash===true?globstar(r):x;if(r.capture){$=`(${$})`}if(typeof r.noext==="boolean"){r.noextglob=r.noext}const B={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:h};e=s.removePrefix(e,B);f=e.length;const I=[];const L=[];const P=[];let T=p;let N;const eos=()=>B.index===f-1;const M=B.peek=(t=1)=>e[B.index+t];const j=B.advance=()=>e[++B.index]||"";const remaining=()=>e.slice(B.index+1);const consume=(e="",t=0)=>{B.consumed+=e;B.index+=t};const append=e=>{B.output+=e.output!=null?e.output:e.value;consume(e.value)};const negate=()=>{let e=1;while(M()==="!"&&(M(2)!=="("||M(3)==="?")){j();B.start++;e++}if(e%2===0){return false}B.negated=true;B.start++;return true};const increment=e=>{B[e]++;P.push(e)};const decrement=e=>{B[e]--;P.pop()};const push=e=>{if(T.type==="globstar"){const t=B.braces>0&&(e.type==="comma"||e.type==="brace");const r=e.extglob===true||I.length&&(e.type==="pipe"||e.type==="paren");if(e.type!=="slash"&&e.type!=="paren"&&!t&&!r){B.output=B.output.slice(0,-T.output.length);T.type="star";T.value="*";T.output=$;B.output+=T.output}}if(I.length&&e.type!=="paren"){I[I.length-1].inner+=e.value}if(e.value||e.output)append(e);if(T&&T.type==="text"&&e.type==="text"){T.value+=e.value;T.output=(T.output||"")+e.value;return}e.prev=T;h.push(e);T=e};const extglobOpen=(e,t)=>{const n={...D[t],conditions:1,inner:""};n.prev=T;n.parens=B.parens;n.output=B.output;const s=(r.capture?"(":"")+n.open;increment("parens");push({type:e,value:t,output:B.output?"":C});push({type:"paren",extglob:true,value:j(),output:s});I.push(n)};const extglobClose=e=>{let n=e.close+(r.capture?")":"");let s;if(e.type==="negate"){let i=$;if(e.inner&&e.inner.length>1&&e.inner.includes("/")){i=globstar(r)}if(i!==$||eos()||/^\)+$/.test(remaining())){n=e.close=`)$))${i}`}if(e.inner.includes("*")&&(s=remaining())&&/^\.[^\\/.]+$/.test(s)){const r=parse(s,{...t,fastpaths:false}).output;n=e.close=`)${r})${i})`}if(e.prev.type==="bos"){B.negatedExtglob=true}}push({type:"paren",extglob:true,value:N,output:n});decrement("parens")};if(r.fastpaths!==false&&!/(^[*!]|[/()[\]{}"])/.test(e)){let n=false;let i=e.replace(u,((e,t,r,s,i,o)=>{if(s==="\\"){n=true;return e}if(s==="?"){if(t){return t+s+(i?_.repeat(i.length):"")}if(o===0){return R+(i?_.repeat(i.length):"")}return _.repeat(r.length)}if(s==="."){return y.repeat(r.length)}if(s==="*"){if(t){return t+s+(i?$:"")}return $}return t?e:`\\${e}`}));if(n===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){B.output=e;return B}B.output=s.wrapOutput(i,B,t);return B}while(!eos()){N=j();if(N==="\0"){continue}if(N==="\\"){const e=M();if(e==="/"&&r.bash!==true){continue}if(e==="."||e===";"){continue}if(!e){N+="\\";push({type:"text",value:N});continue}const t=/^\\+/.exec(remaining());let n=0;if(t&&t[0].length>2){n=t[0].length;B.index+=n;if(n%2!==0){N+="\\"}}if(r.unescape===true){N=j()}else{N+=j()}if(B.brackets===0){push({type:"text",value:N});continue}}if(B.brackets>0&&(N!=="]"||T.value==="["||T.value==="[^")){if(r.posix!==false&&N===":"){const e=T.value.slice(1);if(e.includes("[")){T.posix=true;if(e.includes(":")){const e=T.value.lastIndexOf("[");const t=T.value.slice(0,e);const r=T.value.slice(e+2);const n=o[r];if(n){T.value=t+n;B.backtrack=true;j();if(!p.output&&h.indexOf(T)===1){p.output=C}continue}}}}if(N==="["&&M()!==":"||N==="-"&&M()==="]"){N=`\\${N}`}if(N==="]"&&(T.value==="["||T.value==="[^")){N=`\\${N}`}if(r.posix===true&&N==="!"&&T.value==="["){N="^"}T.value+=N;append({value:N});continue}if(B.quotes===1&&N!=='"'){N=s.escapeRegex(N);T.value+=N;append({value:N});continue}if(N==='"'){B.quotes=B.quotes===1?0:1;if(r.keepQuotes===true){push({type:"text",value:N})}continue}if(N==="("){increment("parens");push({type:"paren",value:N});continue}if(N===")"){if(B.parens===0&&r.strictBrackets===true){throw new SyntaxError(syntaxError("opening","("))}const e=I[I.length-1];if(e&&B.parens===e.parens+1){extglobClose(I.pop());continue}push({type:"paren",value:N,output:B.parens?")":"\\)"});decrement("parens");continue}if(N==="["){if(r.nobracket===true||!remaining().includes("]")){if(r.nobracket!==true&&r.strictBrackets===true){throw new SyntaxError(syntaxError("closing","]"))}N=`\\${N}`}else{increment("brackets")}push({type:"bracket",value:N});continue}if(N==="]"){if(r.nobracket===true||T&&T.type==="bracket"&&T.value.length===1){push({type:"text",value:N,output:`\\${N}`});continue}if(B.brackets===0){if(r.strictBrackets===true){throw new SyntaxError(syntaxError("opening","["))}push({type:"text",value:N,output:`\\${N}`});continue}decrement("brackets");const e=T.value.slice(1);if(T.posix!==true&&e[0]==="^"&&!e.includes("/")){N=`/${N}`}T.value+=N;append({value:N});if(r.literalBrackets===false||s.hasRegexChars(e)){continue}const t=s.escapeRegex(T.value);B.output=B.output.slice(0,-T.value.length);if(r.literalBrackets===true){B.output+=t;T.value=t;continue}T.value=`(${d}${t}|${T.value})`;B.output+=T.value;continue}if(N==="{"&&r.nobrace!==true){increment("braces");const e={type:"brace",value:N,output:"(",outputIndex:B.output.length,tokensIndex:B.tokens.length};L.push(e);push(e);continue}if(N==="}"){const e=L[L.length-1];if(r.nobrace===true||!e){push({type:"text",value:N,output:N});continue}let t=")";if(e.dots===true){const e=h.slice();const n=[];for(let t=e.length-1;t>=0;t--){h.pop();if(e[t].type==="brace"){break}if(e[t].type!=="dots"){n.unshift(e[t].value)}}t=expandRange(n,r);B.backtrack=true}if(e.comma!==true&&e.dots!==true){const r=B.output.slice(0,e.outputIndex);const n=B.tokens.slice(e.tokensIndex);e.value=e.output="\\{";N=t="\\}";B.output=r;for(const e of n){B.output+=e.output||e.value}}push({type:"brace",value:N,output:t});decrement("braces");L.pop();continue}if(N==="|"){if(I.length>0){I[I.length-1].conditions++}push({type:"text",value:N});continue}if(N===","){let e=N;const t=L[L.length-1];if(t&&P[P.length-1]==="braces"){t.comma=true;e="|"}push({type:"comma",value:N,output:e});continue}if(N==="/"){if(T.type==="dot"&&B.index===B.start+1){B.start=B.index+1;B.consumed="";B.output="";h.pop();T=p;continue}push({type:"slash",value:N,output:E});continue}if(N==="."){if(B.braces>0&&T.type==="dot"){if(T.value===".")T.output=y;const e=L[L.length-1];T.type="dots";T.output+=N;T.value+=N;e.dots=true;continue}if(B.braces+B.parens===0&&T.type!=="bos"&&T.type!=="slash"){push({type:"text",value:N,output:y});continue}push({type:"dot",value:N,output:y});continue}if(N==="?"){const e=T&&T.value==="(";if(!e&&r.noextglob!==true&&M()==="("&&M(2)!=="?"){extglobOpen("qmark",N);continue}if(T&&T.type==="paren"){const e=M();let t=N;if(e==="<"&&!s.supportsLookbehinds()){throw new Error("Node.js v10 or higher is required for regex lookbehinds")}if(T.value==="("&&!/[!=<:]/.test(e)||e==="<"&&!/<([!=]|\w+>)/.test(remaining())){t=`\\${N}`}push({type:"text",value:N,output:t});continue}if(r.dot!==true&&(T.type==="slash"||T.type==="bos")){push({type:"qmark",value:N,output:S});continue}push({type:"qmark",value:N,output:_});continue}if(N==="!"){if(r.noextglob!==true&&M()==="("){if(M(2)!=="?"||!/[!=<:]/.test(M(3))){extglobOpen("negate",N);continue}}if(r.nonegate!==true&&B.index===0){negate();continue}}if(N==="+"){if(r.noextglob!==true&&M()==="("&&M(2)!=="?"){extglobOpen("plus",N);continue}if(T&&T.value==="("||r.regex===false){push({type:"plus",value:N,output:A});continue}if(T&&(T.type==="bracket"||T.type==="paren"||T.type==="brace")||B.parens>0){push({type:"plus",value:N});continue}push({type:"plus",value:A});continue}if(N==="@"){if(r.noextglob!==true&&M()==="("&&M(2)!=="?"){push({type:"at",extglob:true,value:N,output:""});continue}push({type:"text",value:N});continue}if(N!=="*"){if(N==="$"||N==="^"){N=`\\${N}`}const e=a.exec(remaining());if(e){N+=e[0];B.index+=e[0].length}push({type:"text",value:N});continue}if(T&&(T.type==="globstar"||T.star===true)){T.type="star";T.star=true;T.value+=N;T.output=$;B.backtrack=true;B.globstar=true;consume(N);continue}let t=remaining();if(r.noextglob!==true&&/^\([^?]/.test(t)){extglobOpen("star",N);continue}if(T.type==="star"){if(r.noglobstar===true){consume(N);continue}const n=T.prev;const s=n.prev;const i=n.type==="slash"||n.type==="bos";const o=s&&(s.type==="star"||s.type==="globstar");if(r.bash===true&&(!i||t[0]&&t[0]!=="/")){push({type:"star",value:N,output:""});continue}const a=B.braces>0&&(n.type==="comma"||n.type==="brace");const u=I.length&&(n.type==="pipe"||n.type==="paren");if(!i&&n.type!=="paren"&&!a&&!u){push({type:"star",value:N,output:""});continue}while(t.slice(0,3)==="/**"){const r=e[B.index+4];if(r&&r!=="/"){break}t=t.slice(3);consume("/**",3)}if(n.type==="bos"&&eos()){T.type="globstar";T.value+=N;T.output=globstar(r);B.output=T.output;B.globstar=true;consume(N);continue}if(n.type==="slash"&&n.prev.type!=="bos"&&!o&&eos()){B.output=B.output.slice(0,-(n.output+T.output).length);n.output=`(?:${n.output}`;T.type="globstar";T.output=globstar(r)+(r.strictSlashes?")":"|$)");T.value+=N;B.globstar=true;B.output+=n.output+T.output;consume(N);continue}if(n.type==="slash"&&n.prev.type!=="bos"&&t[0]==="/"){const e=t[1]!==void 0?"|$":"";B.output=B.output.slice(0,-(n.output+T.output).length);n.output=`(?:${n.output}`;T.type="globstar";T.output=`${globstar(r)}${E}|${E}${e})`;T.value+=N;B.output+=n.output+T.output;B.globstar=true;consume(N+j());push({type:"slash",value:"/",output:""});continue}if(n.type==="bos"&&t[0]==="/"){T.type="globstar";T.value+=N;T.output=`(?:^|${E}|${globstar(r)}${E})`;B.output=T.output;B.globstar=true;consume(N+j());push({type:"slash",value:"/",output:""});continue}B.output=B.output.slice(0,-T.output.length);T.type="globstar";T.output=globstar(r);T.value+=N;B.output+=T.output;B.globstar=true;consume(N);continue}const n={type:"star",value:N,output:$};if(r.bash===true){n.output=".*?";if(T.type==="bos"||T.type==="slash"){n.output=k+n.output}push(n);continue}if(T&&(T.type==="bracket"||T.type==="paren")&&r.regex===true){n.output=N;push(n);continue}if(B.index===B.start||T.type==="slash"||T.type==="dot"){if(T.type==="dot"){B.output+=w;T.output+=w}else if(r.dot===true){B.output+=F;T.output+=F}else{B.output+=k;T.output+=k}if(M()!=="*"){B.output+=C;T.output+=C}}push(n)}while(B.brackets>0){if(r.strictBrackets===true)throw new SyntaxError(syntaxError("closing","]"));B.output=s.escapeLast(B.output,"[");decrement("brackets")}while(B.parens>0){if(r.strictBrackets===true)throw new SyntaxError(syntaxError("closing",")"));B.output=s.escapeLast(B.output,"(");decrement("parens")}while(B.braces>0){if(r.strictBrackets===true)throw new SyntaxError(syntaxError("closing","}"));B.output=s.escapeLast(B.output,"{");decrement("braces")}if(r.strictSlashes!==true&&(T.type==="star"||T.type==="bracket")){push({type:"maybe_slash",value:"",output:`${E}?`})}if(B.backtrack===true){B.output="";for(const e of B.tokens){B.output+=e.output!=null?e.output:e.value;if(e.suffix){B.output+=e.suffix}}}return B};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=s.isWindows(t);const{DOT_LITERAL:c,SLASH_LITERAL:f,ONE_CHAR:p,DOTS_SLASH:h,NO_DOT:d,NO_DOTS:g,NO_DOTS_SLASH:m,STAR:D,START_ANCHOR:y}=n.globChars(u);const A=r.dot?g:d;const E=r.dot?m:d;const C=r.capture?"":"?:";const v={negated:false,prefix:""};let b=r.bash===true?".*?":D;if(r.capture){b=`(${b})`}const globstar=e=>{if(e.noglobstar===true)return b;return`(${C}(?:(?!${y}${e.dot?h:c}).)*?)`};const create=e=>{switch(e){case"*":return`${A}${p}${b}`;case".*":return`${c}${p}${b}`;case"*.*":return`${A}${b}${c}${p}${b}`;case"*/*":return`${A}${b}${f}${p}${E}${b}`;case"**":return A+globstar(r);case"**/*":return`(?:${A}${globstar(r)}${f})?${E}${p}${b}`;case"**/*.*":return`(?:${A}${globstar(r)}${f})?${E}${b}${c}${p}${b}`;case"**/.*":return`(?:${A}${globstar(r)}${f})?${c}${p}${b}`;default:{const t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;const r=create(t[1]);if(!r)return;return r+c+t[2]}}};const w=s.removePrefix(e,v);let F=create(w);if(F&&r.strictSlashes!==true){F+=`${f}?`}return F};e.exports=parse},3322:(e,t,r)=>{const n=r(1017);const s=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 n=e.map((e=>picomatch(e,t,r)));const arrayMatcher=e=>{for(const t of n){const r=t(e);if(r)return r}return false};return arrayMatcher}const n=isObject(e)&&e.tokens&&e.input;if(e===""||typeof e!=="string"&&!n){throw new TypeError("Expected pattern to be a non-empty string")}const s=t||{};const i=o.isWindows(t);const a=n?picomatch.compileRe(e,t):picomatch.makeRe(e,t,false,true);const u=a.state;delete a.state;let isIgnored=()=>false;if(s.ignore){const e={...t,ignore:null,onMatch:null,onResult:null};isIgnored=picomatch(s.ignore,e,r)}const matcher=(r,n=false)=>{const{isMatch:o,match:l,output:c}=picomatch.test(r,a,t,{glob:e,posix:i});const f={glob:e,state:u,regex:a,posix:i,input:r,output:c,match:l,isMatch:o};if(typeof s.onResult==="function"){s.onResult(f)}if(o===false){f.isMatch=false;return n?f:false}if(isIgnored(r)){if(typeof s.onIgnore==="function"){s.onIgnore(f)}f.isMatch=false;return n?f:false}if(typeof s.onMatch==="function"){s.onMatch(f)}return n?f:true};if(r){matcher.state=u}return matcher};picomatch.test=(e,t,r,{glob:n,posix:s}={})=>{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||(s?o.toPosixSlashes:null);let u=e===n;let l=u&&a?a(e):e;if(u===false){l=a?a(e):e;u=l===n}if(u===false||i.capture===true){if(i.matchBase===true||i.basename===true){u=picomatch.matchBase(e,t,r,s)}else{u=t.exec(l)}}return{isMatch:Boolean(u),match:u,output:l}};picomatch.matchBase=(e,t,r,s=o.isWindows(r))=>{const i=t instanceof RegExp?t:picomatch.makeRe(t,r);return i.test(n.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)=>s(e,t);picomatch.compileRe=(e,t,r=false,n=false)=>{if(r===true){return e.output}const s=t||{};const i=s.contains?"":"^";const o=s.contains?"":"$";let a=`${i}(?:${e.output})${o}`;if(e&&e.negated===true){a=`^(?!${a}).*$`}const u=picomatch.toRegex(a,t);if(n===true){u.state=e}return u};picomatch.makeRe=(e,t={},r=false,n=false)=>{if(!e||typeof e!=="string"){throw new TypeError("Expected a non-empty string")}let s={negated:false,fastpaths:true};if(t.fastpaths!==false&&(e[0]==="."||e[0]==="*")){s.output=i.fastpaths(e,t)}if(!s.output){s=i(e,t)}return picomatch.compileRe(s,t,r,n)};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)=>{const n=r(479);const{CHAR_ASTERISK:s,CHAR_AT:i,CHAR_BACKWARD_SLASH:o,CHAR_COMMA:a,CHAR_DOT:u,CHAR_EXCLAMATION_MARK:l,CHAR_FORWARD_SLASH:c,CHAR_LEFT_CURLY_BRACE:f,CHAR_LEFT_PARENTHESES:p,CHAR_LEFT_SQUARE_BRACKET:h,CHAR_PLUS:d,CHAR_QUESTION_MARK:g,CHAR_RIGHT_CURLY_BRACE:m,CHAR_RIGHT_PARENTHESES:D,CHAR_RIGHT_SQUARE_BRACKET:y}=r(6099);const isPathSeparator=e=>e===c||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 E=r.parts===true||r.scanToEnd===true;const C=[];const v=[];const b=[];let w=e;let F=-1;let _=0;let S=0;let x=false;let O=false;let k=false;let R=false;let $=false;let B=false;let I=false;let L=false;let P=false;let T=false;let N=0;let M;let j;let H={value:"",depth:0,isGlob:false};const eos=()=>F>=A;const peek=()=>w.charCodeAt(F+1);const advance=()=>{M=j;return w.charCodeAt(++F)};while(F<A){j=advance();let e;if(j===o){I=H.backslashes=true;j=advance();if(j===f){B=true}continue}if(B===true||j===f){N++;while(eos()!==true&&(j=advance())){if(j===o){I=H.backslashes=true;advance();continue}if(j===f){N++;continue}if(B!==true&&j===u&&(j=advance())===u){x=H.isBrace=true;k=H.isGlob=true;T=true;if(E===true){continue}break}if(B!==true&&j===a){x=H.isBrace=true;k=H.isGlob=true;T=true;if(E===true){continue}break}if(j===m){N--;if(N===0){B=false;x=H.isBrace=true;T=true;break}}}if(E===true){continue}break}if(j===c){C.push(F);v.push(H);H={value:"",depth:0,isGlob:false};if(T===true)continue;if(M===u&&F===_+1){_+=2;continue}S=F+1;continue}if(r.noext!==true){const e=j===d||j===i||j===s||j===g||j===l;if(e===true&&peek()===p){k=H.isGlob=true;R=H.isExtglob=true;T=true;if(j===l&&F===_){P=true}if(E===true){while(eos()!==true&&(j=advance())){if(j===o){I=H.backslashes=true;j=advance();continue}if(j===D){k=H.isGlob=true;T=true;break}}continue}break}}if(j===s){if(M===s)$=H.isGlobstar=true;k=H.isGlob=true;T=true;if(E===true){continue}break}if(j===g){k=H.isGlob=true;T=true;if(E===true){continue}break}if(j===h){while(eos()!==true&&(e=advance())){if(e===o){I=H.backslashes=true;advance();continue}if(e===y){O=H.isBracket=true;k=H.isGlob=true;T=true;break}}if(E===true){continue}break}if(r.nonegate!==true&&j===l&&F===_){L=H.negated=true;_++;continue}if(r.noparen!==true&&j===p){k=H.isGlob=true;if(E===true){while(eos()!==true&&(j=advance())){if(j===p){I=H.backslashes=true;j=advance();continue}if(j===D){T=true;break}}continue}break}if(k===true){T=true;if(E===true){continue}break}}if(r.noext===true){R=false;k=false}let G=w;let U="";let W="";if(_>0){U=w.slice(0,_);w=w.slice(_);S-=_}if(G&&k===true&&S>0){G=w.slice(0,S);W=w.slice(S)}else if(k===true){G="";W=w}else{G=w}if(G&&G!==""&&G!=="/"&&G!==w){if(isPathSeparator(G.charCodeAt(G.length-1))){G=G.slice(0,-1)}}if(r.unescape===true){if(W)W=n.removeBackslashes(W);if(G&&I===true){G=n.removeBackslashes(G)}}const z={prefix:U,input:e,start:_,base:G,glob:W,isBrace:x,isBracket:O,isGlob:k,isExtglob:R,isGlobstar:$,negated:L,negatedExtglob:P};if(r.tokens===true){z.maxDepth=0;if(!isPathSeparator(j)){v.push(H)}z.tokens=v}if(r.parts===true||r.tokens===true){let t;for(let n=0;n<C.length;n++){const s=t?t+1:_;const i=C[n];const o=e.slice(s,i);if(r.tokens){if(n===0&&_!==0){v[n].isPrefix=true;v[n].value=U}else{v[n].value=o}depth(v[n]);z.maxDepth+=v[n].depth}if(n!==0||o!==""){b.push(o)}t=i}if(t&&t+1<e.length){const n=e.slice(t+1);b.push(n);if(r.tokens){v[v.length-1].value=n;depth(v[v.length-1]);z.maxDepth+=v[v.length-1].depth}}z.slashes=C;z.parts=b}return z};e.exports=scan},479:(e,t,r)=>{const n=r(1017);const s=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 s===true||n.sep==="\\"};t.escapeLast=(e,r,n)=>{const s=e.lastIndexOf(r,n);if(s===-1)return e;if(e[s-1]==="\\")return t.escapeLast(e,r,s-1);return`${e.slice(0,s)}\\${e.slice(s)}`};t.removePrefix=(e,t={})=>{let r=e;if(r.startsWith("./")){r=r.slice(2);t.prefix="./"}return r};t.wrapOutput=(e,t={},r={})=>{const n=r.contains?"":"^";const s=r.contains?"":"$";let i=`${n}(?:${e})${s}`;if(t.negated===true){i=`(?:^(?!${i}).*$)`}return i}},1861:(e,t,r)=>{
|
|
43
17
|
/*!
|
|
44
18
|
* to-regex-range <https://github.com/micromatch/to-regex-range>
|
|
45
19
|
*
|
|
46
20
|
* Copyright (c) 2015-present, Jon Schlinkert.
|
|
47
21
|
* Released under the MIT License.
|
|
48
22
|
*/
|
|
49
|
-
const o=i(5680);const toRegexRange=(t,r,i)=>{if(o(t)===false){throw new TypeError("toRegexRange: expected the first argument to be a number")}if(r===void 0||t===r){return String(t)}if(o(r)===false){throw new TypeError("toRegexRange: expected the second argument to be a number.")}let a={relaxZeros:true,...i};if(typeof a.strictZeros==="boolean"){a.relaxZeros=a.strictZeros===false}let u=String(a.relaxZeros);let l=String(a.shorthand);let h=String(a.capture);let d=String(a.wrap);let p=t+":"+r+"="+u+l+h+d;if(toRegexRange.cache.hasOwnProperty(p)){return toRegexRange.cache[p].result}let g=Math.min(t,r);let y=Math.max(t,r);if(Math.abs(g-y)===1){let i=t+"|"+r;if(a.capture){return`(${i})`}if(a.wrap===false){return i}return`(?:${i})`}let b=hasPadding(t)||hasPadding(r);let w={min:t,max:r,a:g,b:y};let v=[];let E=[];if(b){w.isPadded=b;w.maxLen=String(w.max).length}if(g<0){let t=y<0?Math.abs(y):1;E=splitToPatterns(t,Math.abs(g),w,a);g=w.a=0}if(y>=0){v=splitToPatterns(g,y,w,a)}w.negatives=E;w.positives=v;w.result=collatePatterns(E,v,a);if(a.capture===true){w.result=`(${w.result})`}else if(a.wrap!==false&&v.length+E.length>1){w.result=`(?:${w.result})`}toRegexRange.cache[p]=w;return w.result};function collatePatterns(t,r,i){let o=filterPatterns(t,r,"-",false,i)||[];let a=filterPatterns(r,t,"",false,i)||[];let u=filterPatterns(t,r,"-?",true,i)||[];let l=o.concat(u).concat(a);return l.join("|")}function splitToRanges(t,r){let i=1;let o=1;let a=countNines(t,i);let u=new Set([r]);while(t<=a&&a<=r){u.add(a);i+=1;a=countNines(t,i)}a=countZeros(r+1,o)-1;while(t<a&&a<=r){u.add(a);o+=1;a=countZeros(r+1,o)-1}u=[...u];u.sort(compare);return u}function rangeToPattern(t,r,i){if(t===r){return{pattern:t,count:[],digits:0}}let o=zip(t,r);let a=o.length;let u="";let l=0;for(let t=0;t<a;t++){let[r,a]=o[t];if(r===a){u+=r}else if(r!=="0"||a!=="9"){u+=toCharacterClass(r,a,i)}else{l++}}if(l){u+=i.shorthand===true?"\\d":"[0-9]"}return{pattern:u,count:[l],digits:a}}function splitToPatterns(t,r,i,o){let a=splitToRanges(t,r);let u=[];let l=t;let h;for(let t=0;t<a.length;t++){let r=a[t];let d=rangeToPattern(String(l),String(r),o);let p="";if(!i.isPadded&&h&&h.pattern===d.pattern){if(h.count.length>1){h.count.pop()}h.count.push(d.count[0]);h.string=h.pattern+toQuantifier(h.count);l=r+1;continue}if(i.isPadded){p=padZeros(r,i,o)}d.string=p+d.pattern+toQuantifier(d.count);u.push(d);l=r+1;h=d}return u}function filterPatterns(t,r,i,o,a){let u=[];for(let a of t){let{string:t}=a;if(!o&&!contains(r,"string",t)){u.push(i+t)}if(o&&contains(r,"string",t)){u.push(i+t)}}return u}function zip(t,r){let i=[];for(let o=0;o<t.length;o++)i.push([t[o],r[o]]);return i}function compare(t,r){return t>r?1:r>t?-1:0}function contains(t,r,i){return t.some((t=>t[r]===i))}function countNines(t,r){return Number(String(t).slice(0,-r)+"9".repeat(r))}function countZeros(t,r){return t-t%Math.pow(10,r)}function toQuantifier(t){let[r=0,i=""]=t;if(i||r>1){return`{${r+(i?","+i:"")}}`}return""}function toCharacterClass(t,r,i){return`[${t}${r-t===1?"":"-"}${r}]`}function hasPadding(t){return/^-?(0+)\d/.test(t)}function padZeros(t,r,i){if(!r.isPadded){return t}let o=Math.abs(r.maxLen-String(t).length);let a=i.relaxZeros!==false;switch(o){case 0:return"";case 1:return a?"0?":"0";case 2:return a?"0{0,2}":"00";default:{return a?`0{0,${o}}`:`0{${o}}`}}}toRegexRange.cache={};toRegexRange.clearCache=()=>toRegexRange.cache={};t.exports=toRegexRange},6144:function(t,r,i){var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.resolveWorkspaceRoot=resolveWorkspaceRoot;r.resolveWorkspaceRootAsync=resolveWorkspaceRootAsync;r.getWorkspaceGlobs=getWorkspaceGlobs;r.getWorkspaceGlobsAsync=getWorkspaceGlobsAsync;const a=o(i(9411));const u=o(i(7742));const l=i(2737);const h=i(6455);const d=i(4679);function resolveWorkspaceRoot(t=u.default.cwd(),r={}){return(0,l.searchParentDirs)(t,((t,i)=>{let o=null;if(r.packageWorkspaces!==false){o=(0,h.tryReadFile)(a.default.join(t,"package.json"));const r=o&&(0,d.workspaceGlobsFromPackage)(o);if(r&&(0,d.pathMatchesWorkspaceGlobs)(r,i)){return t}}if(r.pnpmWorkspaces!==false&&o){const r=(0,h.tryReadFile)(a.default.join(t,"pnpm-workspace.yaml"));const o=r&&(0,d.workspaceGlobsFromPnpm)(r);if(o&&(0,d.pathMatchesWorkspaceGlobs)(o,i)){return t}}}))}function resolveWorkspaceRootAsync(t=u.default.cwd(),r={}){return(0,l.searchParentDirsAsync)(t,(async(t,i)=>{let o=null;if(r.packageWorkspaces!==false){o=await(0,h.tryReadFileAsync)(a.default.join(t,"package.json"));const r=o&&(0,d.workspaceGlobsFromPackage)(o);if(r&&(0,d.pathMatchesWorkspaceGlobs)(r,i)){return t}}if(r.pnpmWorkspaces!==false&&o){const r=await(0,h.tryReadFileAsync)(a.default.join(t,"pnpm-workspace.yaml"));const o=r&&(0,d.workspaceGlobsFromPnpm)(r);if(o&&(0,d.pathMatchesWorkspaceGlobs)(o,i)){return t}}}))}function getWorkspaceGlobs(t=u.default.cwd(),r={}){if(r.packageWorkspaces!==false){const r=(0,h.tryReadFile)(a.default.join(t,"package.json"));const i=r&&(0,d.workspaceGlobsFromPackage)(r);if(i){return i}}if(r.pnpmWorkspaces!==false){const r=(0,h.tryReadFile)(a.default.join(t,"pnpm-workspace.yaml"));const i=r&&(0,d.workspaceGlobsFromPnpm)(r);if(i){return i}}return null}async function getWorkspaceGlobsAsync(t=u.default.cwd(),r={}){if(r.packageWorkspaces!==false){const r=await(0,h.tryReadFileAsync)(a.default.join(t,"package.json"));const i=r&&(0,d.workspaceGlobsFromPackage)(r);if(i){return i}}if(r.pnpmWorkspaces!==false){const r=await(0,h.tryReadFileAsync)(a.default.join(t,"pnpm-workspace.yaml"));const i=r&&(0,d.workspaceGlobsFromPnpm)(r);if(i){return i}}return null}},2737:function(t,r,i){var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.searchParentDirs=searchParentDirs;r.searchParentDirsAsync=searchParentDirsAsync;const a=o(i(9411));const u=o(i(7742));function searchParentDirs(t=u.default.cwd(),r){let i=a.default.normalize(t);let o;do{const u=r(i,a.default.relative(i,t));if(u!==undefined){return u}o=i;i=a.default.dirname(i)}while(i!==o);return null}async function searchParentDirsAsync(t,r){let i=a.default.normalize(t);let o;do{const u=await r(i,a.default.relative(i,t));if(u!==undefined){return u}o=i;i=a.default.dirname(i)}while(i!==o);return null}},6455:function(t,r,i){var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.tryReadFile=tryReadFile;r.tryReadFileAsync=tryReadFileAsync;const a=o(i(7561));function tryReadFile(t){try{return a.default.readFileSync(t,{encoding:"utf-8"})}catch(t){if(shouldIgnoreError(t)){return null}throw t}}function tryReadFileAsync(t){return a.default.promises.readFile(t,{encoding:"utf-8"}).catch((t=>{if(shouldIgnoreError(t)){return null}throw t}))}function shouldIgnoreError(t){return"code"in t&&(t.code==="ENOENT"||t.code==="EISDIR")}},4679:function(t,r,i){var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.pathMatchesWorkspaceGlobs=pathMatchesWorkspaceGlobs;r.workspaceGlobsFromPackage=workspaceGlobsFromPackage;r.workspaceGlobsFromPnpm=workspaceGlobsFromPnpm;const a=i(1917);const u=o(i(6228));function pathMatchesWorkspaceGlobs(t,r){return!r||(0,u.default)([r],t).length>0}function workspaceGlobsFromPackage(t){try{const r=JSON.parse(t);if(Array.isArray(r?.workspaces)){return r.workspaces}if(Array.isArray(r?.workspaces?.packages)){return r.workspaces.packages}}catch(t){if(t.name!=="SyntaxError"){throw t}}return null}function workspaceGlobsFromPnpm(t){try{const r=t?(0,a.load)(t):null;if(Array.isArray(r?.packages)){return r.packages}}catch(t){if(t.name!=="YAMLException"){throw t}}return null}},7561:t=>{t.exports=i(7561)},9411:t=>{t.exports=i(9411)},7742:t=>{t.exports=i(7742)},1017:t=>{t.exports=i(1017)},3837:t=>{t.exports=i(3837)}};var o={};function __nccwpck_require2_(t){var i=o[t];if(i!==undefined){return i.exports}var a=o[t]={exports:{}};var u=true;try{r[t].call(a.exports,a,a.exports,__nccwpck_require2_);u=false}finally{if(u)delete o[t]}return a.exports}if(typeof __nccwpck_require2_!=="undefined")__nccwpck_require2_.ab=__dirname+"/";var a=__nccwpck_require2_(6144);t.exports=a})()},3118:(t,r,i)=>{
|
|
50
|
-
|
|
51
|
-
var o=i(4300);var a=o.Buffer;function copyProps(t,r){for(var i in t){r[i]=t[i]}}if(a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow){t.exports=o}else{copyProps(o,r);r.Buffer=SafeBuffer}function SafeBuffer(t,r,i){return a(t,r,i)}SafeBuffer.prototype=Object.create(a.prototype);copyProps(a,SafeBuffer);SafeBuffer.from=function(t,r,i){if(typeof t==="number"){throw new TypeError("Argument must not be a number")}return a(t,r,i)};SafeBuffer.alloc=function(t,r,i){if(typeof t!=="number"){throw new TypeError("Argument must be a number")}var o=a(t);if(r!==undefined){if(typeof i==="string"){o.fill(r,i)}else{o.fill(r)}}else{o.fill(0)}return o};SafeBuffer.allocUnsafe=function(t){if(typeof t!=="number"){throw new TypeError("Argument must be a number")}return a(t)};SafeBuffer.allocUnsafeSlow=function(t){if(typeof t!=="number"){throw new TypeError("Argument must be a number")}return o.SlowBuffer(t)}},1790:(t,r,i)=>{const o=Symbol("SemVer ANY");class Comparator{static get ANY(){return o}constructor(t,r){r=a(r);if(t instanceof Comparator){if(t.loose===!!r.loose){return t}else{t=t.value}}t=t.trim().split(/\s+/).join(" ");d("comparator",t,r);this.options=r;this.loose=!!r.loose;this.parse(t);if(this.semver===o){this.value=""}else{this.value=this.operator+this.semver.version}d("comp",this)}parse(t){const r=this.options.loose?u[l.COMPARATORLOOSE]:u[l.COMPARATOR];const i=t.match(r);if(!i){throw new TypeError(`Invalid comparator: ${t}`)}this.operator=i[1]!==undefined?i[1]:"";if(this.operator==="="){this.operator=""}if(!i[2]){this.semver=o}else{this.semver=new p(i[2],this.options.loose)}}toString(){return this.value}test(t){d("Comparator.test",t,this.options.loose);if(this.semver===o||t===o){return true}if(typeof t==="string"){try{t=new p(t,this.options)}catch(t){return false}}return h(t,this.operator,this.semver,this.options)}intersects(t,r){if(!(t instanceof Comparator)){throw new TypeError("a Comparator is required")}if(this.operator===""){if(this.value===""){return true}return new g(t.value,r).test(this.value)}else if(t.operator===""){if(t.value===""){return true}return new g(this.value,r).test(t.semver)}r=a(r);if(r.includePrerelease&&(this.value==="<0.0.0-0"||t.value==="<0.0.0-0")){return false}if(!r.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0"))){return false}if(this.operator.startsWith(">")&&t.operator.startsWith(">")){return true}if(this.operator.startsWith("<")&&t.operator.startsWith("<")){return true}if(this.semver.version===t.semver.version&&this.operator.includes("=")&&t.operator.includes("=")){return true}if(h(this.semver,"<",t.semver,r)&&this.operator.startsWith(">")&&t.operator.startsWith("<")){return true}if(h(this.semver,">",t.semver,r)&&this.operator.startsWith("<")&&t.operator.startsWith(">")){return true}return false}}t.exports=Comparator;const a=i(6772);const{safeRe:u,t:l}=i(4063);const h=i(8801);const d=i(3619);const p=i(1490);const g=i(5287)},5287:(t,r,i)=>{const o=/\s+/g;class Range{constructor(t,r){r=l(r);if(t instanceof Range){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease){return t}else{return new Range(t.raw,r)}}if(t instanceof h){this.raw=t.value;this.set=[[t]];this.formatted=undefined;return this}this.options=r;this.loose=!!r.loose;this.includePrerelease=!!r.includePrerelease;this.raw=t.trim().replace(o," ");this.set=this.raw.split("||").map((t=>this.parseRange(t.trim()))).filter((t=>t.length));if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${this.raw}`)}if(this.set.length>1){const t=this.set[0];this.set=this.set.filter((t=>!isNullSet(t[0])));if(this.set.length===0){this.set=[t]}else if(this.set.length>1){for(const t of this.set){if(t.length===1&&isAny(t[0])){this.set=[t];break}}}}this.formatted=undefined}get range(){if(this.formatted===undefined){this.formatted="";for(let t=0;t<this.set.length;t++){if(t>0){this.formatted+="||"}const r=this.set[t];for(let t=0;t<r.length;t++){if(t>0){this.formatted+=" "}this.formatted+=r[t].toString().trim()}}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(t){const r=(this.options.includePrerelease&&E)|(this.options.loose&&A);const i=r+":"+t;const o=u.get(i);if(o){return o}const a=this.options.loose;const l=a?g[y.HYPHENRANGELOOSE]:g[y.HYPHENRANGE];t=t.replace(l,hyphenReplace(this.options.includePrerelease));d("hyphen replace",t);t=t.replace(g[y.COMPARATORTRIM],b);d("comparator trim",t);t=t.replace(g[y.TILDETRIM],w);d("tilde trim",t);t=t.replace(g[y.CARETTRIM],v);d("caret trim",t);let p=t.split(" ").map((t=>parseComparator(t,this.options))).join(" ").split(/\s+/).map((t=>replaceGTE0(t,this.options)));if(a){p=p.filter((t=>{d("loose invalid filter",t,this.options);return!!t.match(g[y.COMPARATORLOOSE])}))}d("range list",p);const _=new Map;const C=p.map((t=>new h(t,this.options)));for(const t of C){if(isNullSet(t)){return[t]}_.set(t.value,t)}if(_.size>1&&_.has("")){_.delete("")}const S=[..._.values()];u.set(i,S);return S}intersects(t,r){if(!(t instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((i=>isSatisfiable(i,r)&&t.set.some((t=>isSatisfiable(t,r)&&i.every((i=>t.every((t=>i.intersects(t,r)))))))))}test(t){if(!t){return false}if(typeof t==="string"){try{t=new p(t,this.options)}catch(t){return false}}for(let r=0;r<this.set.length;r++){if(testSet(this.set[r],t,this.options)){return true}}return false}}t.exports=Range;const a=i(1191);const u=new a;const l=i(6772);const h=i(1790);const d=i(3619);const p=i(1490);const{safeRe:g,t:y,comparatorTrimReplace:b,tildeTrimReplace:w,caretTrimReplace:v}=i(4063);const{FLAG_INCLUDE_PRERELEASE:E,FLAG_LOOSE:A}=i(9073);const isNullSet=t=>t.value==="<0.0.0-0";const isAny=t=>t.value==="";const isSatisfiable=(t,r)=>{let i=true;const o=t.slice();let a=o.pop();while(i&&o.length){i=o.every((t=>a.intersects(t,r)));a=o.pop()}return i};const parseComparator=(t,r)=>{d("comp",t,r);t=replaceCarets(t,r);d("caret",t);t=replaceTildes(t,r);d("tildes",t);t=replaceXRanges(t,r);d("xrange",t);t=replaceStars(t,r);d("stars",t);return t};const isX=t=>!t||t.toLowerCase()==="x"||t==="*";const replaceTildes=(t,r)=>t.trim().split(/\s+/).map((t=>replaceTilde(t,r))).join(" ");const replaceTilde=(t,r)=>{const i=r.loose?g[y.TILDELOOSE]:g[y.TILDE];return t.replace(i,((r,i,o,a,u)=>{d("tilde",t,r,i,o,a,u);let l;if(isX(i)){l=""}else if(isX(o)){l=`>=${i}.0.0 <${+i+1}.0.0-0`}else if(isX(a)){l=`>=${i}.${o}.0 <${i}.${+o+1}.0-0`}else if(u){d("replaceTilde pr",u);l=`>=${i}.${o}.${a}-${u} <${i}.${+o+1}.0-0`}else{l=`>=${i}.${o}.${a} <${i}.${+o+1}.0-0`}d("tilde return",l);return l}))};const replaceCarets=(t,r)=>t.trim().split(/\s+/).map((t=>replaceCaret(t,r))).join(" ");const replaceCaret=(t,r)=>{d("caret",t,r);const i=r.loose?g[y.CARETLOOSE]:g[y.CARET];const o=r.includePrerelease?"-0":"";return t.replace(i,((r,i,a,u,l)=>{d("caret",t,r,i,a,u,l);let h;if(isX(i)){h=""}else if(isX(a)){h=`>=${i}.0.0${o} <${+i+1}.0.0-0`}else if(isX(u)){if(i==="0"){h=`>=${i}.${a}.0${o} <${i}.${+a+1}.0-0`}else{h=`>=${i}.${a}.0${o} <${+i+1}.0.0-0`}}else if(l){d("replaceCaret pr",l);if(i==="0"){if(a==="0"){h=`>=${i}.${a}.${u}-${l} <${i}.${a}.${+u+1}-0`}else{h=`>=${i}.${a}.${u}-${l} <${i}.${+a+1}.0-0`}}else{h=`>=${i}.${a}.${u}-${l} <${+i+1}.0.0-0`}}else{d("no pr");if(i==="0"){if(a==="0"){h=`>=${i}.${a}.${u}${o} <${i}.${a}.${+u+1}-0`}else{h=`>=${i}.${a}.${u}${o} <${i}.${+a+1}.0-0`}}else{h=`>=${i}.${a}.${u} <${+i+1}.0.0-0`}}d("caret return",h);return h}))};const replaceXRanges=(t,r)=>{d("replaceXRanges",t,r);return t.split(/\s+/).map((t=>replaceXRange(t,r))).join(" ")};const replaceXRange=(t,r)=>{t=t.trim();const i=r.loose?g[y.XRANGELOOSE]:g[y.XRANGE];return t.replace(i,((i,o,a,u,l,h)=>{d("xRange",t,i,o,a,u,l,h);const p=isX(a);const g=p||isX(u);const y=g||isX(l);const b=y;if(o==="="&&b){o=""}h=r.includePrerelease?"-0":"";if(p){if(o===">"||o==="<"){i="<0.0.0-0"}else{i="*"}}else if(o&&b){if(g){u=0}l=0;if(o===">"){o=">=";if(g){a=+a+1;u=0;l=0}else{u=+u+1;l=0}}else if(o==="<="){o="<";if(g){a=+a+1}else{u=+u+1}}if(o==="<"){h="-0"}i=`${o+a}.${u}.${l}${h}`}else if(g){i=`>=${a}.0.0${h} <${+a+1}.0.0-0`}else if(y){i=`>=${a}.${u}.0${h} <${a}.${+u+1}.0-0`}d("xRange return",i);return i}))};const replaceStars=(t,r)=>{d("replaceStars",t,r);return t.trim().replace(g[y.STAR],"")};const replaceGTE0=(t,r)=>{d("replaceGTE0",t,r);return t.trim().replace(g[r.includePrerelease?y.GTE0PRE:y.GTE0],"")};const hyphenReplace=t=>(r,i,o,a,u,l,h,d,p,g,y,b)=>{if(isX(o)){i=""}else if(isX(a)){i=`>=${o}.0.0${t?"-0":""}`}else if(isX(u)){i=`>=${o}.${a}.0${t?"-0":""}`}else if(l){i=`>=${i}`}else{i=`>=${i}${t?"-0":""}`}if(isX(p)){d=""}else if(isX(g)){d=`<${+p+1}.0.0-0`}else if(isX(y)){d=`<${p}.${+g+1}.0-0`}else if(b){d=`<=${p}.${g}.${y}-${b}`}else if(t){d=`<${p}.${g}.${+y+1}-0`}else{d=`<=${d}`}return`${i} ${d}`.trim()};const testSet=(t,r,i)=>{for(let i=0;i<t.length;i++){if(!t[i].test(r)){return false}}if(r.prerelease.length&&!i.includePrerelease){for(let i=0;i<t.length;i++){d(t[i].semver);if(t[i].semver===h.ANY){continue}if(t[i].semver.prerelease.length>0){const o=t[i].semver;if(o.major===r.major&&o.minor===r.minor&&o.patch===r.patch){return true}}}return false}return true}},1490:(t,r,i)=>{const o=i(3619);const{MAX_LENGTH:a,MAX_SAFE_INTEGER:u}=i(9073);const{safeRe:l,t:h}=i(4063);const d=i(6772);const{compareIdentifiers:p}=i(8587);class SemVer{constructor(t,r){r=d(r);if(t instanceof SemVer){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease){return t}else{t=t.version}}else if(typeof t!=="string"){throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`)}if(t.length>a){throw new TypeError(`version is longer than ${a} characters`)}o("SemVer",t,r);this.options=r;this.loose=!!r.loose;this.includePrerelease=!!r.includePrerelease;const i=t.trim().match(r.loose?l[h.LOOSE]:l[h.FULL]);if(!i){throw new TypeError(`Invalid Version: ${t}`)}this.raw=t;this.major=+i[1];this.minor=+i[2];this.patch=+i[3];if(this.major>u||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>u||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>u||this.patch<0){throw new TypeError("Invalid patch version")}if(!i[4]){this.prerelease=[]}else{this.prerelease=i[4].split(".").map((t=>{if(/^[0-9]+$/.test(t)){const r=+t;if(r>=0&&r<u){return r}}return t}))}this.build=i[5]?i[5].split("."):[];this.format()}format(){this.version=`${this.major}.${this.minor}.${this.patch}`;if(this.prerelease.length){this.version+=`-${this.prerelease.join(".")}`}return this.version}toString(){return this.version}compare(t){o("SemVer.compare",this.version,this.options,t);if(!(t instanceof SemVer)){if(typeof t==="string"&&t===this.version){return 0}t=new SemVer(t,this.options)}if(t.version===this.version){return 0}return this.compareMain(t)||this.comparePre(t)}compareMain(t){if(!(t instanceof SemVer)){t=new SemVer(t,this.options)}return p(this.major,t.major)||p(this.minor,t.minor)||p(this.patch,t.patch)}comparePre(t){if(!(t instanceof SemVer)){t=new SemVer(t,this.options)}if(this.prerelease.length&&!t.prerelease.length){return-1}else if(!this.prerelease.length&&t.prerelease.length){return 1}else if(!this.prerelease.length&&!t.prerelease.length){return 0}let r=0;do{const i=this.prerelease[r];const a=t.prerelease[r];o("prerelease compare",r,i,a);if(i===undefined&&a===undefined){return 0}else if(a===undefined){return 1}else if(i===undefined){return-1}else if(i===a){continue}else{return p(i,a)}}while(++r)}compareBuild(t){if(!(t instanceof SemVer)){t=new SemVer(t,this.options)}let r=0;do{const i=this.build[r];const a=t.build[r];o("build compare",r,i,a);if(i===undefined&&a===undefined){return 0}else if(a===undefined){return 1}else if(i===undefined){return-1}else if(i===a){continue}else{return p(i,a)}}while(++r)}inc(t,r,i){switch(t){case"premajor":this.prerelease.length=0;this.patch=0;this.minor=0;this.major++;this.inc("pre",r,i);break;case"preminor":this.prerelease.length=0;this.patch=0;this.minor++;this.inc("pre",r,i);break;case"prepatch":this.prerelease.length=0;this.inc("patch",r,i);this.inc("pre",r,i);break;case"prerelease":if(this.prerelease.length===0){this.inc("patch",r,i)}this.inc("pre",r,i);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":{const t=Number(i)?1:0;if(!r&&i===false){throw new Error("invalid increment argument: identifier is empty")}if(this.prerelease.length===0){this.prerelease=[t]}else{let o=this.prerelease.length;while(--o>=0){if(typeof this.prerelease[o]==="number"){this.prerelease[o]++;o=-2}}if(o===-1){if(r===this.prerelease.join(".")&&i===false){throw new Error("invalid increment argument: identifier already exists")}this.prerelease.push(t)}}if(r){let o=[r,t];if(i===false){o=[r]}if(p(this.prerelease[0],r)===0){if(isNaN(this.prerelease[1])){this.prerelease=o}}else{this.prerelease=o}}break}default:throw new Error(`invalid increment argument: ${t}`)}this.raw=this.format();if(this.build.length){this.raw+=`+${this.build.join(".")}`}return this}}t.exports=SemVer},7876:(t,r,i)=>{const o=i(8257);const clean=(t,r)=>{const i=o(t.trim().replace(/^[=v]+/,""),r);return i?i.version:null};t.exports=clean},8801:(t,r,i)=>{const o=i(1561);const a=i(8671);const u=i(3473);const l=i(2967);const h=i(6762);const d=i(973);const cmp=(t,r,i,p)=>{switch(r){case"===":if(typeof t==="object"){t=t.version}if(typeof i==="object"){i=i.version}return t===i;case"!==":if(typeof t==="object"){t=t.version}if(typeof i==="object"){i=i.version}return t!==i;case"":case"=":case"==":return o(t,i,p);case"!=":return a(t,i,p);case">":return u(t,i,p);case">=":return l(t,i,p);case"<":return h(t,i,p);case"<=":return d(t,i,p);default:throw new TypeError(`Invalid operator: ${r}`)}};t.exports=cmp},6899:(t,r,i)=>{const o=i(1490);const a=i(8257);const{safeRe:u,t:l}=i(4063);const coerce=(t,r)=>{if(t instanceof o){return t}if(typeof t==="number"){t=String(t)}if(typeof t!=="string"){return null}r=r||{};let i=null;if(!r.rtl){i=t.match(r.includePrerelease?u[l.COERCEFULL]:u[l.COERCE])}else{const o=r.includePrerelease?u[l.COERCERTLFULL]:u[l.COERCERTL];let a;while((a=o.exec(t))&&(!i||i.index+i[0].length!==t.length)){if(!i||a.index+a[0].length!==i.index+i[0].length){i=a}o.lastIndex=a.index+a[1].length+a[2].length}o.lastIndex=-1}if(i===null){return null}const h=i[2];const d=i[3]||"0";const p=i[4]||"0";const g=r.includePrerelease&&i[5]?`-${i[5]}`:"";const y=r.includePrerelease&&i[6]?`+${i[6]}`:"";return a(`${h}.${d}.${p}${g}${y}`,r)};t.exports=coerce},7375:(t,r,i)=>{const o=i(1490);const compareBuild=(t,r,i)=>{const a=new o(t,i);const u=new o(r,i);return a.compare(u)||a.compareBuild(u)};t.exports=compareBuild},8186:(t,r,i)=>{const o=i(4905);const compareLoose=(t,r)=>o(t,r,true);t.exports=compareLoose},4905:(t,r,i)=>{const o=i(1490);const compare=(t,r,i)=>new o(t,i).compare(new o(r,i));t.exports=compare},3272:(t,r,i)=>{const o=i(8257);const diff=(t,r)=>{const i=o(t,null,true);const a=o(r,null,true);const u=i.compare(a);if(u===0){return null}const l=u>0;const h=l?i:a;const d=l?a:i;const p=!!h.prerelease.length;const g=!!d.prerelease.length;if(g&&!p){if(!d.patch&&!d.minor){return"major"}if(h.patch){return"patch"}if(h.minor){return"minor"}return"major"}const y=p?"pre":"";if(i.major!==a.major){return y+"major"}if(i.minor!==a.minor){return y+"minor"}if(i.patch!==a.patch){return y+"patch"}return"prerelease"};t.exports=diff},1561:(t,r,i)=>{const o=i(4905);const eq=(t,r,i)=>o(t,r,i)===0;t.exports=eq},3473:(t,r,i)=>{const o=i(4905);const gt=(t,r,i)=>o(t,r,i)>0;t.exports=gt},2967:(t,r,i)=>{const o=i(4905);const gte=(t,r,i)=>o(t,r,i)>=0;t.exports=gte},5009:(t,r,i)=>{const o=i(1490);const inc=(t,r,i,a,u)=>{if(typeof i==="string"){u=a;a=i;i=undefined}try{return new o(t instanceof o?t.version:t,i).inc(r,a,u).version}catch(t){return null}};t.exports=inc},6762:(t,r,i)=>{const o=i(4905);const lt=(t,r,i)=>o(t,r,i)<0;t.exports=lt},973:(t,r,i)=>{const o=i(4905);const lte=(t,r,i)=>o(t,r,i)<=0;t.exports=lte},9799:(t,r,i)=>{const o=i(1490);const major=(t,r)=>new o(t,r).major;t.exports=major},7600:(t,r,i)=>{const o=i(1490);const minor=(t,r)=>new o(t,r).minor;t.exports=minor},8671:(t,r,i)=>{const o=i(4905);const neq=(t,r,i)=>o(t,r,i)!==0;t.exports=neq},8257:(t,r,i)=>{const o=i(1490);const parse=(t,r,i=false)=>{if(t instanceof o){return t}try{return new o(t,r)}catch(t){if(!i){return null}throw t}};t.exports=parse},2112:(t,r,i)=>{const o=i(1490);const patch=(t,r)=>new o(t,r).patch;t.exports=patch},5094:(t,r,i)=>{const o=i(8257);const prerelease=(t,r)=>{const i=o(t,r);return i&&i.prerelease.length?i.prerelease:null};t.exports=prerelease},6110:(t,r,i)=>{const o=i(4905);const rcompare=(t,r,i)=>o(r,t,i);t.exports=rcompare},4550:(t,r,i)=>{const o=i(7375);const rsort=(t,r)=>t.sort(((t,i)=>o(i,t,r)));t.exports=rsort},1495:(t,r,i)=>{const o=i(5287);const satisfies=(t,r,i)=>{try{r=new o(r,i)}catch(t){return false}return r.test(t)};t.exports=satisfies},6034:(t,r,i)=>{const o=i(7375);const sort=(t,r)=>t.sort(((t,i)=>o(t,i,r)));t.exports=sort},3863:(t,r,i)=>{const o=i(8257);const valid=(t,r)=>{const i=o(t,r);return i?i.version:null};t.exports=valid},7546:(t,r,i)=>{const o=i(4063);const a=i(9073);const u=i(1490);const l=i(8587);const h=i(8257);const d=i(3863);const p=i(7876);const g=i(5009);const y=i(3272);const b=i(9799);const w=i(7600);const v=i(2112);const E=i(5094);const A=i(4905);const _=i(6110);const C=i(8186);const S=i(7375);const D=i(6034);const x=i(4550);const O=i(3473);const R=i(6762);const k=i(1561);const P=i(8671);const T=i(2967);const M=i(973);const L=i(8801);const I=i(6899);const $=i(1790);const N=i(5287);const B=i(1495);const j=i(382);const H=i(1706);const G=i(7095);const U=i(507);const W=i(8029);const z=i(7714);const Y=i(9104);const K=i(5072);const V=i(9057);const q=i(9550);const X=i(8693);t.exports={parse:h,valid:d,clean:p,inc:g,diff:y,major:b,minor:w,patch:v,prerelease:E,compare:A,rcompare:_,compareLoose:C,compareBuild:S,sort:D,rsort:x,gt:O,lt:R,eq:k,neq:P,gte:T,lte:M,cmp:L,coerce:I,Comparator:$,Range:N,satisfies:B,toComparators:j,maxSatisfying:H,minSatisfying:G,minVersion:U,validRange:W,outside:z,gtr:Y,ltr:K,intersects:V,simplifyRange:q,subset:X,SemVer:u,re:o.re,src:o.src,tokens:o.t,SEMVER_SPEC_VERSION:a.SEMVER_SPEC_VERSION,RELEASE_TYPES:a.RELEASE_TYPES,compareIdentifiers:l.compareIdentifiers,rcompareIdentifiers:l.rcompareIdentifiers}},9073:t=>{const r="2.0.0";const i=256;const o=Number.MAX_SAFE_INTEGER||9007199254740991;const a=16;const u=i-6;const l=["major","premajor","minor","preminor","patch","prepatch","prerelease"];t.exports={MAX_LENGTH:i,MAX_SAFE_COMPONENT_LENGTH:a,MAX_SAFE_BUILD_LENGTH:u,MAX_SAFE_INTEGER:o,RELEASE_TYPES:l,SEMVER_SPEC_VERSION:r,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},3619:t=>{const r=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};t.exports=r},8587:t=>{const r=/^[0-9]+$/;const compareIdentifiers=(t,i)=>{const o=r.test(t);const a=r.test(i);if(o&&a){t=+t;i=+i}return t===i?0:o&&!a?-1:a&&!o?1:t<i?-1:1};const rcompareIdentifiers=(t,r)=>compareIdentifiers(r,t);t.exports={compareIdentifiers:compareIdentifiers,rcompareIdentifiers:rcompareIdentifiers}},1191:t=>{class LRUCache{constructor(){this.max=1e3;this.map=new Map}get(t){const r=this.map.get(t);if(r===undefined){return undefined}else{this.map.delete(t);this.map.set(t,r);return r}}delete(t){return this.map.delete(t)}set(t,r){const i=this.delete(t);if(!i&&r!==undefined){if(this.map.size>=this.max){const t=this.map.keys().next().value;this.delete(t)}this.map.set(t,r)}return this}}t.exports=LRUCache},6772:t=>{const r=Object.freeze({loose:true});const i=Object.freeze({});const parseOptions=t=>{if(!t){return i}if(typeof t!=="object"){return r}return t};t.exports=parseOptions},4063:(t,r,i)=>{const{MAX_SAFE_COMPONENT_LENGTH:o,MAX_SAFE_BUILD_LENGTH:a,MAX_LENGTH:u}=i(9073);const l=i(3619);r=t.exports={};const h=r.re=[];const d=r.safeRe=[];const p=r.src=[];const g=r.t={};let y=0;const b="[a-zA-Z0-9-]";const w=[["\\s",1],["\\d",u],[b,a]];const makeSafeRegex=t=>{for(const[r,i]of w){t=t.split(`${r}*`).join(`${r}{0,${i}}`).split(`${r}+`).join(`${r}{1,${i}}`)}return t};const createToken=(t,r,i)=>{const o=makeSafeRegex(r);const a=y++;l(t,a,r);g[t]=a;p[a]=r;h[a]=new RegExp(r,i?"g":undefined);d[a]=new RegExp(o,i?"g":undefined)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","\\d+");createToken("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${b}*`);createToken("MAINVERSION",`(${p[g.NUMERICIDENTIFIER]})\\.`+`(${p[g.NUMERICIDENTIFIER]})\\.`+`(${p[g.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${p[g.NUMERICIDENTIFIERLOOSE]})\\.`+`(${p[g.NUMERICIDENTIFIERLOOSE]})\\.`+`(${p[g.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${p[g.NUMERICIDENTIFIER]}|${p[g.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${p[g.NUMERICIDENTIFIERLOOSE]}|${p[g.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASE",`(?:-(${p[g.PRERELEASEIDENTIFIER]}(?:\\.${p[g.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${p[g.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${p[g.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER",`${b}+`);createToken("BUILD",`(?:\\+(${p[g.BUILDIDENTIFIER]}(?:\\.${p[g.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${p[g.MAINVERSION]}${p[g.PRERELEASE]}?${p[g.BUILD]}?`);createToken("FULL",`^${p[g.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${p[g.MAINVERSIONLOOSE]}${p[g.PRERELEASELOOSE]}?${p[g.BUILD]}?`);createToken("LOOSE",`^${p[g.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${p[g.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${p[g.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${p[g.XRANGEIDENTIFIER]})`+`(?:\\.(${p[g.XRANGEIDENTIFIER]})`+`(?:\\.(${p[g.XRANGEIDENTIFIER]})`+`(?:${p[g.PRERELEASE]})?${p[g.BUILD]}?`+`)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${p[g.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${p[g.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${p[g.XRANGEIDENTIFIERLOOSE]})`+`(?:${p[g.PRERELEASELOOSE]})?${p[g.BUILD]}?`+`)?)?`);createToken("XRANGE",`^${p[g.GTLT]}\\s*${p[g.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${p[g.GTLT]}\\s*${p[g.XRANGEPLAINLOOSE]}$`);createToken("COERCEPLAIN",`${"(^|[^\\d])"+"(\\d{1,"}${o}})`+`(?:\\.(\\d{1,${o}}))?`+`(?:\\.(\\d{1,${o}}))?`);createToken("COERCE",`${p[g.COERCEPLAIN]}(?:$|[^\\d])`);createToken("COERCEFULL",p[g.COERCEPLAIN]+`(?:${p[g.PRERELEASE]})?`+`(?:${p[g.BUILD]})?`+`(?:$|[^\\d])`);createToken("COERCERTL",p[g.COERCE],true);createToken("COERCERTLFULL",p[g.COERCEFULL],true);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${p[g.LONETILDE]}\\s+`,true);r.tildeTrimReplace="$1~";createToken("TILDE",`^${p[g.LONETILDE]}${p[g.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${p[g.LONETILDE]}${p[g.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${p[g.LONECARET]}\\s+`,true);r.caretTrimReplace="$1^";createToken("CARET",`^${p[g.LONECARET]}${p[g.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${p[g.LONECARET]}${p[g.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${p[g.GTLT]}\\s*(${p[g.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${p[g.GTLT]}\\s*(${p[g.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${p[g.GTLT]}\\s*(${p[g.LOOSEPLAIN]}|${p[g.XRANGEPLAIN]})`,true);r.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${p[g.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${p[g.XRANGEPLAIN]})`+`\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${p[g.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${p[g.XRANGEPLAINLOOSE]})`+`\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},9104:(t,r,i)=>{const o=i(7714);const gtr=(t,r,i)=>o(t,r,">",i);t.exports=gtr},9057:(t,r,i)=>{const o=i(5287);const intersects=(t,r,i)=>{t=new o(t,i);r=new o(r,i);return t.intersects(r,i)};t.exports=intersects},5072:(t,r,i)=>{const o=i(7714);const ltr=(t,r,i)=>o(t,r,"<",i);t.exports=ltr},1706:(t,r,i)=>{const o=i(1490);const a=i(5287);const maxSatisfying=(t,r,i)=>{let u=null;let l=null;let h=null;try{h=new a(r,i)}catch(t){return null}t.forEach((t=>{if(h.test(t)){if(!u||l.compare(t)===-1){u=t;l=new o(u,i)}}}));return u};t.exports=maxSatisfying},7095:(t,r,i)=>{const o=i(1490);const a=i(5287);const minSatisfying=(t,r,i)=>{let u=null;let l=null;let h=null;try{h=new a(r,i)}catch(t){return null}t.forEach((t=>{if(h.test(t)){if(!u||l.compare(t)===1){u=t;l=new o(u,i)}}}));return u};t.exports=minSatisfying},507:(t,r,i)=>{const o=i(1490);const a=i(5287);const u=i(3473);const minVersion=(t,r)=>{t=new a(t,r);let i=new o("0.0.0");if(t.test(i)){return i}i=new o("0.0.0-0");if(t.test(i)){return i}i=null;for(let r=0;r<t.set.length;++r){const a=t.set[r];let l=null;a.forEach((t=>{const r=new o(t.semver.version);switch(t.operator){case">":if(r.prerelease.length===0){r.patch++}else{r.prerelease.push(0)}r.raw=r.format();case"":case">=":if(!l||u(r,l)){l=r}break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${t.operator}`)}}));if(l&&(!i||u(i,l))){i=l}}if(i&&t.test(i)){return i}return null};t.exports=minVersion},7714:(t,r,i)=>{const o=i(1490);const a=i(1790);const{ANY:u}=a;const l=i(5287);const h=i(1495);const d=i(3473);const p=i(6762);const g=i(973);const y=i(2967);const outside=(t,r,i,b)=>{t=new o(t,b);r=new l(r,b);let w,v,E,A,_;switch(i){case">":w=d;v=g;E=p;A=">";_=">=";break;case"<":w=p;v=y;E=d;A="<";_="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(h(t,r,b)){return false}for(let i=0;i<r.set.length;++i){const o=r.set[i];let l=null;let h=null;o.forEach((t=>{if(t.semver===u){t=new a(">=0.0.0")}l=l||t;h=h||t;if(w(t.semver,l.semver,b)){l=t}else if(E(t.semver,h.semver,b)){h=t}}));if(l.operator===A||l.operator===_){return false}if((!h.operator||h.operator===A)&&v(t,h.semver)){return false}else if(h.operator===_&&E(t,h.semver)){return false}}return true};t.exports=outside},9550:(t,r,i)=>{const o=i(1495);const a=i(4905);t.exports=(t,r,i)=>{const u=[];let l=null;let h=null;const d=t.sort(((t,r)=>a(t,r,i)));for(const t of d){const a=o(t,r,i);if(a){h=t;if(!l){l=t}}else{if(h){u.push([l,h])}h=null;l=null}}if(l){u.push([l,null])}const p=[];for(const[t,r]of u){if(t===r){p.push(t)}else if(!r&&t===d[0]){p.push("*")}else if(!r){p.push(`>=${t}`)}else if(t===d[0]){p.push(`<=${r}`)}else{p.push(`${t} - ${r}`)}}const g=p.join(" || ");const y=typeof r.raw==="string"?r.raw:String(r);return g.length<y.length?g:r}},8693:(t,r,i)=>{const o=i(5287);const a=i(1790);const{ANY:u}=a;const l=i(1495);const h=i(4905);const subset=(t,r,i={})=>{if(t===r){return true}t=new o(t,i);r=new o(r,i);let a=false;e:for(const o of t.set){for(const t of r.set){const r=simpleSubset(o,t,i);a=a||r!==null;if(r){continue e}}if(a){return false}}return true};const d=[new a(">=0.0.0-0")];const p=[new a(">=0.0.0")];const simpleSubset=(t,r,i)=>{if(t===r){return true}if(t.length===1&&t[0].semver===u){if(r.length===1&&r[0].semver===u){return true}else if(i.includePrerelease){t=d}else{t=p}}if(r.length===1&&r[0].semver===u){if(i.includePrerelease){return true}else{r=p}}const o=new Set;let a,g;for(const r of t){if(r.operator===">"||r.operator===">="){a=higherGT(a,r,i)}else if(r.operator==="<"||r.operator==="<="){g=lowerLT(g,r,i)}else{o.add(r.semver)}}if(o.size>1){return null}let y;if(a&&g){y=h(a.semver,g.semver,i);if(y>0){return null}else if(y===0&&(a.operator!==">="||g.operator!=="<=")){return null}}for(const t of o){if(a&&!l(t,String(a),i)){return null}if(g&&!l(t,String(g),i)){return null}for(const o of r){if(!l(t,String(o),i)){return false}}return true}let b,w;let v,E;let A=g&&!i.includePrerelease&&g.semver.prerelease.length?g.semver:false;let _=a&&!i.includePrerelease&&a.semver.prerelease.length?a.semver:false;if(A&&A.prerelease.length===1&&g.operator==="<"&&A.prerelease[0]===0){A=false}for(const t of r){E=E||t.operator===">"||t.operator===">=";v=v||t.operator==="<"||t.operator==="<=";if(a){if(_){if(t.semver.prerelease&&t.semver.prerelease.length&&t.semver.major===_.major&&t.semver.minor===_.minor&&t.semver.patch===_.patch){_=false}}if(t.operator===">"||t.operator===">="){b=higherGT(a,t,i);if(b===t&&b!==a){return false}}else if(a.operator===">="&&!l(a.semver,String(t),i)){return false}}if(g){if(A){if(t.semver.prerelease&&t.semver.prerelease.length&&t.semver.major===A.major&&t.semver.minor===A.minor&&t.semver.patch===A.patch){A=false}}if(t.operator==="<"||t.operator==="<="){w=lowerLT(g,t,i);if(w===t&&w!==g){return false}}else if(g.operator==="<="&&!l(g.semver,String(t),i)){return false}}if(!t.operator&&(g||a)&&y!==0){return false}}if(a&&v&&!g&&y!==0){return false}if(g&&E&&!a&&y!==0){return false}if(_||A){return false}return true};const higherGT=(t,r,i)=>{if(!t){return r}const o=h(t.semver,r.semver,i);return o>0?t:o<0?r:r.operator===">"&&t.operator===">="?r:t};const lowerLT=(t,r,i)=>{if(!t){return r}const o=h(t.semver,r.semver,i);return o<0?t:o>0?r:r.operator==="<"&&t.operator==="<="?r:t};t.exports=subset},382:(t,r,i)=>{const o=i(5287);const toComparators=(t,r)=>new o(t,r).set.map((t=>t.map((t=>t.value)).join(" ").trim().split(" ")));t.exports=toComparators},8029:(t,r,i)=>{const o=i(5287);const validRange=(t,r)=>{try{return new o(t,r).range||"*"}catch(t){return null}};t.exports=validRange},4970:(t,r,i)=>{"use strict";const o=i(1504);t.exports=(t="")=>{const r=t.match(o);if(!r){return null}const[i,a]=r[0].replace(/#! ?/,"").split(" ");const u=i.split("/").pop();if(u==="env"){return a}return a?`${u} ${a}`:u}},1504:t=>{"use strict";t.exports=/^#!(.*)/},2028:(t,r,i)=>{var o=global.process;const processOk=function(t){return t&&typeof t==="object"&&typeof t.removeListener==="function"&&typeof t.emit==="function"&&typeof t.reallyExit==="function"&&typeof t.listeners==="function"&&typeof t.kill==="function"&&typeof t.pid==="number"&&typeof t.on==="function"};if(!processOk(o)){t.exports=function(){return function(){}}}else{var a=i(9491);var u=i(19);var l=/^win/i.test(o.platform);var h=i(2361);if(typeof h!=="function"){h=h.EventEmitter}var d;if(o.__signal_exit_emitter__){d=o.__signal_exit_emitter__}else{d=o.__signal_exit_emitter__=new h;d.count=0;d.emitted={}}if(!d.infinite){d.setMaxListeners(Infinity);d.infinite=true}t.exports=function(t,r){if(!processOk(global.process)){return function(){}}a.equal(typeof t,"function","a callback must be provided for exit handler");if(b===false){w()}var i="exit";if(r&&r.alwaysLast){i="afterexit"}var remove=function(){d.removeListener(i,t);if(d.listeners("exit").length===0&&d.listeners("afterexit").length===0){p()}};d.on(i,t);return remove};var p=function unload(){if(!b||!processOk(global.process)){return}b=false;u.forEach((function(t){try{o.removeListener(t,y[t])}catch(t){}}));o.emit=A;o.reallyExit=v;d.count-=1};t.exports.unload=p;var g=function emit(t,r,i){if(d.emitted[t]){return}d.emitted[t]=true;d.emit(t,r,i)};var y={};u.forEach((function(t){y[t]=function listener(){if(!processOk(global.process)){return}var r=o.listeners(t);if(r.length===d.count){p();g("exit",null,t);g("afterexit",null,t);if(l&&t==="SIGHUP"){t="SIGINT"}o.kill(o.pid,t)}}}));t.exports.signals=function(){return u};var b=false;var w=function load(){if(b||!processOk(global.process)){return}b=true;d.count+=1;u=u.filter((function(t){try{o.on(t,y[t]);return true}catch(t){return false}}));o.emit=_;o.reallyExit=E};t.exports.load=w;var v=o.reallyExit;var E=function processReallyExit(t){if(!processOk(global.process)){return}o.exitCode=t||0;g("exit",o.exitCode,null);g("afterexit",o.exitCode,null);v.call(o,o.exitCode)};var A=o.emit;var _=function processEmit(t,r){if(t==="exit"&&processOk(global.process)){if(r!==undefined){o.exitCode=r}var i=A.apply(this,arguments);g("exit",o.exitCode,null);g("afterexit",o.exitCode,null);return i}else{return A.apply(this,arguments)}}}},19:t=>{t.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];if(process.platform!=="win32"){t.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT")}if(process.platform==="linux"){t.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}},332:t=>{"use strict";const r="";const i=`${r}[`;const o="";const a={to(t,r){if(!r)return`${i}${t+1}G`;return`${i}${r+1};${t+1}H`},move(t,r){let o="";if(t<0)o+=`${i}${-t}D`;else if(t>0)o+=`${i}${t}C`;if(r<0)o+=`${i}${-r}A`;else if(r>0)o+=`${i}${r}B`;return o},up:(t=1)=>`${i}${t}A`,down:(t=1)=>`${i}${t}B`,forward:(t=1)=>`${i}${t}C`,backward:(t=1)=>`${i}${t}D`,nextLine:(t=1)=>`${i}E`.repeat(t),prevLine:(t=1)=>`${i}F`.repeat(t),left:`${i}G`,hide:`${i}?25l`,show:`${i}?25h`,save:`${r}7`,restore:`${r}8`};const u={up:(t=1)=>`${i}S`.repeat(t),down:(t=1)=>`${i}T`.repeat(t)};const l={screen:`${i}2J`,up:(t=1)=>`${i}1J`.repeat(t),down:(t=1)=>`${i}J`.repeat(t),line:`${i}2K`,lineEnd:`${i}K`,lineStart:`${i}1K`,lines(t){let r="";for(let i=0;i<t;i++)r+=this.line+(i<t-1?a.up():"");if(t)r+=a.left;return r}};t.exports={cursor:a,scroll:u,erase:l,beep:o}},395:(t,r,i)=>{"use strict";const o=i(2037);const a=i(6224);const u=i(6738);const{env:l}=process;let h;if(u("no-color")||u("no-colors")||u("color=false")||u("color=never")){h=0}else if(u("color")||u("colors")||u("color=true")||u("color=always")){h=1}if("FORCE_COLOR"in l){if(l.FORCE_COLOR==="true"){h=1}else if(l.FORCE_COLOR==="false"){h=0}else{h=l.FORCE_COLOR.length===0?1:Math.min(parseInt(l.FORCE_COLOR,10),3)}}function translateLevel(t){if(t===0){return false}return{level:t,hasBasic:true,has256:t>=2,has16m:t>=3}}function supportsColor(t,r){if(h===0){return 0}if(u("color=16m")||u("color=full")||u("color=truecolor")){return 3}if(u("color=256")){return 2}if(t&&!r&&h===undefined){return 0}const i=h||0;if(l.TERM==="dumb"){return i}if(process.platform==="win32"){const t=o.release().split(".");if(Number(t[0])>=10&&Number(t[2])>=10586){return Number(t[2])>=14931?3:2}return 1}if("CI"in l){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((t=>t in l))||l.CI_NAME==="codeship"){return 1}return i}if("TEAMCITY_VERSION"in l){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(l.TEAMCITY_VERSION)?1:0}if(l.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in l){const t=parseInt((l.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(l.TERM_PROGRAM){case"iTerm.app":return t>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(l.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(l.TERM)){return 1}if("COLORTERM"in l){return 1}return i}function getSupportLevel(t){const r=supportsColor(t,t&&t.isTTY);return translateLevel(r)}t.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,a.isatty(1))),stderr:translateLevel(supportsColor(true,a.isatty(2)))}},5418:(t,r,i)=>{const{URL:o}=i(7310);const{join:a}=i(1017);const u=i(7147);const{promisify:l}=i(3837);const{tmpdir:h}=i(2037);const d=i(2447);const p=l(u.writeFile);const g=l(u.mkdir);const y=l(u.readFile);const compareVersions=(t,r)=>t.localeCompare(r,"en-US",{numeric:true});const encode=t=>encodeURIComponent(t).replace(/^%40/,"@");const getFile=async(t,r)=>{const i=h();const o=a(i,"update-check");if(!u.existsSync(o)){await g(o)}let l=`${t.name}-${r}.json`;if(t.scope){l=`${t.scope}-${l}`}return a(o,l)};const evaluateCache=async(t,r,i)=>{if(u.existsSync(t)){const o=await y(t,"utf8");const{lastUpdate:a,latest:u}=JSON.parse(o);const l=a+i;if(l>r){return{shouldCheck:false,latest:u}}}return{shouldCheck:true,latest:null}};const updateCache=async(t,r,i)=>{const o=JSON.stringify({latest:r,lastUpdate:i});await p(t,o,"utf8")};const loadPackage=(t,r)=>new Promise(((o,a)=>{const u={host:t.hostname,path:t.pathname,port:t.port,headers:{accept:"application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*"},timeout:2e3};if(r){u.headers.authorization=`${r.type} ${r.token}`}const{get:l}=i(t.protocol==="https:"?5687:3685);l(u,(t=>{const{statusCode:r}=t;if(r!==200){const i=new Error(`Request failed with code ${r}`);i.code=r;a(i);t.resume();return}let i="";t.setEncoding("utf8");t.on("data",(t=>{i+=t}));t.on("end",(()=>{try{const t=JSON.parse(i);o(t)}catch(t){a(t)}}))})).on("error",a).on("timeout",a)}));const getMostRecent=async({full:t,scope:r},a)=>{const u=d(r);const l=new o(t,u);let h=null;try{h=await loadPackage(l)}catch(t){if(t.code&&String(t.code).startsWith(4)){const t=i(1384);const r=t(u,{recursive:true});h=await loadPackage(l,r)}else{throw t}}const p=h["dist-tags"][a];if(!p){throw new Error(`Distribution tag ${a} is not available`)}return p};const b={interval:36e5,distTag:"latest"};const getDetails=t=>{const r={full:encode(t)};if(t.includes("/")){const i=t.split("/");r.scope=i[0];r.name=i[1]}else{r.scope=null;r.name=t}return r};t.exports=async(t,r)=>{if(typeof t!=="object"){throw new Error("The first parameter should be your package.json file content")}const i=getDetails(t.name);const o=Date.now();const{distTag:a,interval:u}=Object.assign({},b,r);const l=await getFile(i,a);let h=null;let d=true;({shouldCheck:d,latest:h}=await evaluateCache(l,o,u));if(d){h=await getMostRecent(i,a);await updateCache(l,h,o)}const p=compareVersions(t.version,h);if(p===-1){return{latest:h,fromCache:!d}}return null}},8593:(t,r,i)=>{"use strict";const{builtinModules:o}=i(8188);var a=new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$");var u=["node_modules","favicon.ico"];function validate(t){var r=[];var i=[];if(t===null){i.push("name cannot be null");return done(r,i)}if(t===undefined){i.push("name cannot be undefined");return done(r,i)}if(typeof t!=="string"){i.push("name must be a string");return done(r,i)}if(!t.length){i.push("name length must be greater than zero")}if(t.match(/^\./)){i.push("name cannot start with a period")}if(t.match(/^_/)){i.push("name cannot start with an underscore")}if(t.trim()!==t){i.push("name cannot contain leading or trailing spaces")}u.forEach((function(r){if(t.toLowerCase()===r){i.push(r+" is a blacklisted name")}}));if(o.includes(t.toLowerCase())){r.push(t+" is a core module name")}if(t.length>214){r.push("name can no longer contain more than 214 characters")}if(t.toLowerCase()!==t){r.push("name can no longer contain capital letters")}if(/[~'!()*]/.test(t.split("/").slice(-1)[0])){r.push('name can no longer contain special characters ("~\'!()*")')}if(encodeURIComponent(t)!==t){var l=t.match(a);if(l){var h=l[1];var d=l[2];if(encodeURIComponent(h)===h&&encodeURIComponent(d)===d){return done(r,i)}}i.push("name can only contain URL-friendly characters")}return done(r,i)}var done=function(t,r){var i={validForNewPackages:r.length===0&&t.length===0,validForOldPackages:r.length===0,warnings:t,errors:r};if(!i.warnings.length){delete i.warnings}if(!i.errors.length){delete i.errors}return i};t.exports=validate},5523:t=>{t.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]]},1205:(t,r,i)=>{"use strict";var o=i(6420);var a=i(5523);var u={nul:0,control:0};t.exports=function wcwidth(t){return wcswidth(t,u)};t.exports.config=function(t){t=o(t||{},u);return function wcwidth(r){return wcswidth(r,t)}};function wcswidth(t,r){if(typeof t!=="string")return wcwidth(t,r);var i=0;for(var o=0;o<t.length;o++){var a=wcwidth(t.charCodeAt(o),r);if(a<0)return-1;i+=a}return i}function wcwidth(t,r){if(t===0)return r.nul;if(t<32||t>=127&&t<160)return r.control;if(bisearch(t))return 0;return 1+(t>=4352&&(t<=4447||t==9001||t==9002||t>=11904&&t<=42191&&t!=12351||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65135||t>=65280&&t<=65376||t>=65504&&t<=65510||t>=131072&&t<=196605||t>=196608&&t<=262141))}function bisearch(t){var r=0;var i=a.length-1;var o;if(t<a[0][0]||t>a[i][1])return false;while(i>=r){o=Math.floor((r+i)/2);if(t>a[o][1])r=o+1;else if(t<a[o][0])i=o-1;else return true}return false}},6282:function(t,r,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,r,i,o){if(o===undefined)o=i;var a=Object.getOwnPropertyDescriptor(r,i);if(!a||("get"in a?!r.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return r[i]}}}Object.defineProperty(t,o,a)}:function(t,r,i,o){if(o===undefined)o=i;t[o]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:true,value:r})}:function(t,r){t["default"]=r});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i))o(r,t,i);a(r,t);return r};var l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});const h=i(6779);const d=l(i(5130));const p=l(i(7561));const g=l(i(9411));const y=u(i(1486));const b=i(2034);const w={badJsonDefault:undefined,jsonParseErrorDefault:undefined,cantReadFileDefault:undefined,ensureDir:false,default:undefined,json5:false,space:2,addNewLineAtEOF:true};class JsonFile{file;options;static read=read;static readAsync=readAsync;static parseJsonString=parseJsonString;static write=write;static writeAsync=writeAsync;static get=getSync;static getAsync=getAsync;static set=setSync;static setAsync=setAsync;static merge=merge;static mergeAsync=mergeAsync;static deleteKey=deleteKey;static deleteKeyAsync=deleteKeyAsync;static deleteKeys=deleteKeys;static deleteKeysAsync=deleteKeysAsync;static rewrite=rewrite;static rewriteAsync=rewriteAsync;constructor(t,r={}){this.file=t;this.options=r}read(t){return read(this.file,this._getOptions(t))}async readAsync(t){return readAsync(this.file,this._getOptions(t))}write(t,r){return write(this.file,t,this._getOptions(r))}async writeAsync(t,r){return writeAsync(this.file,t,this._getOptions(r))}parseJsonString(t,r){return parseJsonString(t,r)}get(t,r,i){return getSync(this.file,t,r,this._getOptions(i))}async getAsync(t,r,i){return getAsync(this.file,t,r,this._getOptions(i))}set(t,r,i){return setSync(this.file,t,r,this._getOptions(i))}async setAsync(t,r,i){return setAsync(this.file,t,r,this._getOptions(i))}async merge(t,r){return merge(this.file,t,this._getOptions(r))}async mergeAsync(t,r){return mergeAsync(this.file,t,this._getOptions(r))}deleteKey(t,r){return deleteKey(this.file,t,this._getOptions(r))}async deleteKeyAsync(t,r){return deleteKeyAsync(this.file,t,this._getOptions(r))}deleteKeys(t,r){return deleteKeys(this.file,t,this._getOptions(r))}async deleteKeysAsync(t,r){return deleteKeysAsync(this.file,t,this._getOptions(r))}rewrite(t){return rewrite(this.file,this._getOptions(t))}async rewriteAsync(t){return rewriteAsync(this.file,this._getOptions(t))}_getOptions(t){return{...this.options,...t}}}r["default"]=JsonFile;function read(t,r){let i;try{i=p.default.readFileSync(t,"utf8")}catch(o){assertEmptyJsonString(i,t);const a=cantReadFileDefault(r);if(a===undefined){throw new y.default(`Can't read JSON file: ${t}`,o,o.code,t)}else{return a}}return parseJsonString(i,r,t)}async function readAsync(t,r){let i;try{i=await p.default.promises.readFile(t,"utf8")}catch(o){assertEmptyJsonString(i,t);const a=cantReadFileDefault(r);if(a===undefined){throw new y.default(`Can't read JSON file: ${t}`,o,o.code)}else{return a}}return parseJsonString(i,r)}function parseJsonString(t,r,i){assertEmptyJsonString(t,i);try{if(_getOption(r,"json5")){return d.default.parse(t)}else{return JSON.parse(t)}}catch(o){const a=jsonParseErrorDefault(r);if(a===undefined){const r=locationFromSyntaxError(o,t);if(r){const i=(0,h.codeFrameColumns)(t,{start:r});o.codeFrame=i;o.message+=`\n${i}`}throw new y.default(`Error parsing JSON: ${t}`,o,"EJSONPARSE",i)}else{return a}}}function getSync(t,r,i,o){const a=read(t,o);if(r in a){return a[r]}if(i===undefined){throw new y.default(`No value at key path "${String(r)}" in JSON object from: ${t}`)}return i}async function getAsync(t,r,i,o){const a=await readAsync(t,o);if(r in a){return a[r]}if(i===undefined){throw new y.default(`No value at key path "${String(r)}" in JSON object from: ${t}`)}return i}function write(t,r,i){if(i?.ensureDir){p.default.mkdirSync(g.default.dirname(t),{recursive:true})}const o=_getOption(i,"space");const a=_getOption(i,"json5");const u=_getOption(i,"addNewLineAtEOF");let l;try{if(a){l=d.default.stringify(r,null,o)}else{l=JSON.stringify(r,null,o)}}catch(r){throw new y.default(`Couldn't JSON.stringify object for file: ${t}`,r)}const h=u?`${l}\n`:l;(0,b.writeFileAtomicSync)(t,h);return r}async function writeAsync(t,r,i){if(i?.ensureDir){await p.default.promises.mkdir(g.default.dirname(t),{recursive:true})}const o=_getOption(i,"space");const a=_getOption(i,"json5");const u=_getOption(i,"addNewLineAtEOF");let l;try{if(a){l=d.default.stringify(r,null,o)}else{l=JSON.stringify(r,null,o)}}catch(r){throw new y.default(`Couldn't JSON.stringify object for file: ${t}`,r)}const h=u?`${l}\n`:l;await(0,b.writeFileAtomic)(t,h);return r}function setSync(t,r,i,o){const a=read(t,o);return write(t,{...a,[r]:i},o)}async function setAsync(t,r,i,o){const a=await readAsync(t,o);return writeAsync(t,{...a,[r]:i},o)}async function mergeAsync(t,r,i){const o=await readAsync(t,i);if(Array.isArray(r)){Object.assign(o,...r)}else{Object.assign(o,r)}return writeAsync(t,o,i)}function merge(t,r,i){const o=read(t,i);if(Array.isArray(r)){Object.assign(o,...r)}else{Object.assign(o,r)}return write(t,o,i)}async function deleteKeyAsync(t,r,i){return deleteKeysAsync(t,[r],i)}function deleteKey(t,r,i){return deleteKeys(t,[r],i)}async function deleteKeysAsync(t,r,i){const o=await readAsync(t,i);let a=false;for(let t=0;t<r.length;t++){const i=r[t];if(o.hasOwnProperty(i)){delete o[i];a=true}}if(a){return writeAsync(t,o,i)}return o}function deleteKeys(t,r,i){const o=read(t,i);let a=false;for(let t=0;t<r.length;t++){const i=r[t];if(o.hasOwnProperty(i)){delete o[i];a=true}}if(a){return write(t,o,i)}return o}async function rewriteAsync(t,r){const i=await readAsync(t,r);return writeAsync(t,i,r)}function rewrite(t,r){return write(t,read(t,r),r)}function jsonParseErrorDefault(t={}){if(t.jsonParseErrorDefault===undefined){return t.default}else{return t.jsonParseErrorDefault}}function cantReadFileDefault(t={}){if(t.cantReadFileDefault===undefined){return t.default}else{return t.cantReadFileDefault}}function _getOption(t,r){if(t){if(t[r]!==undefined){return t[r]}}return w[r]}function locationFromSyntaxError(t,r){if("lineNumber"in t&&"columnNumber"in t){return{line:t.lineNumber,column:t.columnNumber}}const i=/at position (\d+)/.exec(t.message);if(i){const t=parseInt(i[1],10);const o=r.slice(0,t+1).split("\n");return{line:o.length,column:o[o.length-1].length}}return null}function assertEmptyJsonString(t,r){if(t?.trim()===""){throw new y.EmptyJsonFileError(r)}}},1486:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.EmptyJsonFileError=void 0;class JsonFileError extends Error{cause;code;fileName;isJsonFileError;constructor(t,r,i,o){let a=t;if(o){a+=`\n${r?"├":"└"}─ File: ${o}`}if(r){a+=`\n└─ Cause: ${r.name}: ${r.message}`}super(a);this.name=this.constructor.name;this.cause=r;this.code=i;this.fileName=o;this.isJsonFileError=true}}r["default"]=JsonFileError;class EmptyJsonFileError extends JsonFileError{constructor(t){super(`Cannot parse an empty JSON string`,undefined,"EJSONEMPTY",t)}}r.EmptyJsonFileError=EmptyJsonFileError},2034:function(t,r,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,r,i,o){if(o===undefined)o=i;var a=Object.getOwnPropertyDescriptor(r,i);if(!a||("get"in a?!r.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return r[i]}}}Object.defineProperty(t,o,a)}:function(t,r,i,o){if(o===undefined)o=i;t[o]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:true,value:r})}:function(t,r){t["default"]=r});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i))o(r,t,i);a(r,t);return r};Object.defineProperty(r,"__esModule",{value:true});r.writeFileAtomic=r.writeFileAtomicSync=void 0;const l=i(6005);const h=u(i(7561));function getTarget(t,r){const i=(0,l.createHash)("sha256").update(r).digest("base64url");return`${t}.${i}`}function writeFileAtomicSync(t,r){const i=getTarget(t,r);h.writeFileSync(i,r);h.renameSync(i,t)}r.writeFileAtomicSync=writeFileAtomicSync;async function writeFileAtomic(t,r){const i=getTarget(t,r);await h.promises.writeFile(i,r);await h.promises.rename(i,t)}r.writeFileAtomic=writeFileAtomic},6779:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.codeFrameColumns=codeFrameColumns;r["default"]=_default;var o=_interopRequireWildcard(i(932));function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var t=new WeakMap;_getRequireWildcardCache=function(){return t};return t}function _interopRequireWildcard(t){if(t&&t.__esModule){return t}if(t===null||typeof t!=="object"&&typeof t!=="function"){return{default:t}}var r=_getRequireWildcardCache();if(r&&r.has(t)){return r.get(t)}var i={};var o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t){if(Object.prototype.hasOwnProperty.call(t,a)){var u=o?Object.getOwnPropertyDescriptor(t,a):null;if(u&&(u.get||u.set)){Object.defineProperty(i,a,u)}else{i[a]=t[a]}}}i.default=t;if(r){r.set(t,i)}return i}let a=false;function getDefs(t){return{gutter:t.grey,marker:t.red.bold,message:t.red.bold}}const u=/\r\n|[\n\r\u2028\u2029]/;function getMarkerLines(t,r,i){const o=Object.assign({column:0,line:-1},t.start);const a=Object.assign({},o,t.end);const{linesAbove:u=2,linesBelow:l=3}=i||{};const h=o.line;const d=o.column;const p=a.line;const g=a.column;let y=Math.max(h-(u+1),0);let b=Math.min(r.length,p+l);if(h===-1){y=0}if(p===-1){b=r.length}const w=p-h;const v={};if(w){for(let t=0;t<=w;t++){const i=t+h;if(!d){v[i]=true}else if(t===0){const t=r[i-1].length;v[i]=[d,t-d+1]}else if(t===w){v[i]=[0,g]}else{const o=r[i-t].length;v[i]=[0,o]}}}else{if(d===g){if(d){v[h]=[d,0]}else{v[h]=true}}else{v[h]=[d,g-d]}}return{start:y,end:b,markerLines:v}}function codeFrameColumns(t,r,i={}){const a=(i.highlightCode||i.forceColor)&&(0,o.shouldHighlight)(i);const l=(0,o.getChalk)(i);const h=getDefs(l);const maybeHighlight=(t,r)=>a?t(r):r;const d=t.split(u);const{start:p,end:g,markerLines:y}=getMarkerLines(r,d,i);const b=r.start&&typeof r.start.column==="number";const w=String(g).length;const v=a?(0,o.default)(t,i):t;let E=v.split(u).slice(p,g).map(((t,r)=>{const o=p+1+r;const a=` ${o}`.slice(-w);const u=` ${a} | `;const l=y[o];const d=!y[o+1];if(l){let r="";if(Array.isArray(l)){const o=t.slice(0,Math.max(l[0]-1,0)).replace(/[^\t]/g," ");const a=l[1]||1;r=["\n ",maybeHighlight(h.gutter,u.replace(/\d/g," ")),o,maybeHighlight(h.marker,"^").repeat(a)].join("");if(d&&i.message){r+=" "+maybeHighlight(h.message,i.message)}}return[maybeHighlight(h.marker,">"),maybeHighlight(h.gutter,u),t,r].join("")}else{return` ${maybeHighlight(h.gutter,u)}${t}`}})).join("\n");if(i.message&&!b){E=`${" ".repeat(w+1)}${i.message}\n${E}`}if(a){return l.reset(E)}else{return E}}function _default(t,r,i,o={}){if(!a){a=true;const t="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning){process.emitWarning(t,"DeprecationWarning")}else{const r=new Error(t);r.name="DeprecationWarning";console.warn(new Error(t))}}i=Math.max(i,0);const u={start:{column:i,line:r}};return codeFrameColumns(t,u,o)}},5997:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true})},7496:function(t,r,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,r,i,o){if(o===undefined)o=i;var a=Object.getOwnPropertyDescriptor(r,i);if(!a||("get"in a?!r.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return r[i]}}}Object.defineProperty(t,o,a)}:function(t,r,i,o){if(o===undefined)o=i;t[o]=r[i]});var a=this&&this.__exportStar||function(t,r){for(var i in t)if(i!=="default"&&!Object.prototype.hasOwnProperty.call(r,i))o(r,t,i)};Object.defineProperty(r,"__esModule",{value:true});r.isYarnOfflineAsync=void 0;a(i(5997),r);a(i(1574),r);a(i(1178),r);a(i(6125),r);a(i(57),r);a(i(6805),r);a(i(3746),r);var u=i(822);Object.defineProperty(r,"isYarnOfflineAsync",{enumerable:true,get:function(){return u.isYarnOfflineAsync}})},1574:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.getImprovedPodInstallError=r.getPodRepoUpdateMessage=r.getPodUpdateMessage=r.CocoaPodsPackageManager=r.extractMissingDependencyError=r.CocoaPodsError=void 0;const a=o(i(5642));const u=o(i(8746));const l=i(7147);const h=o(i(2037));const d=o(i(1017));class CocoaPodsError extends Error{code;cause;name="CocoaPodsError";isPackageManagerError=true;constructor(t,r,i){super(i?`${t}\n└─ Cause: ${i.message}`:t);this.code=r;this.cause=i}}r.CocoaPodsError=CocoaPodsError;function extractMissingDependencyError(t){const r=t.match(/Unable to find a specification for ['"`]([\w-_\d\s]+)['"`] depended upon by ['"`]([\w-_\d\s]+)['"`]/);if(r){return[r[1],r[2]]}return null}r.extractMissingDependencyError=extractMissingDependencyError;class CocoaPodsPackageManager{options;silent;static getPodProjectRoot(t){if(CocoaPodsPackageManager.isUsingPods(t))return t;const r=d.default.join(t,"ios");if(CocoaPodsPackageManager.isUsingPods(r))return r;const i=d.default.join(t,"macos");if(CocoaPodsPackageManager.isUsingPods(i))return i;return null}static isUsingPods(t){return(0,l.existsSync)(d.default.join(t,"Podfile"))}static async gemInstallCLIAsync(t=false,r={stdio:"inherit"}){const i=["install","cocoapods","--no-document"];try{await(0,a.default)("gem",i,r)}catch(o){if(t){throw new CocoaPodsError("Failed to install CocoaPods CLI with gem (recommended)","COMMAND_FAILED",o)}console.log("Your password might be needed to install CocoaPods CLI: https://guides.cocoapods.org/using/getting-started.html#installation");await(0,a.default)("sudo",["gem",...i],r)}}static async brewLinkCLIAsync(t={stdio:"inherit"}){await(0,a.default)("brew",["link","cocoapods"],t)}static async brewInstallCLIAsync(t={stdio:"inherit"}){await(0,a.default)("brew",["install","cocoapods"],t)}static async installCLIAsync({nonInteractive:t=false,spawnOptions:r={stdio:"inherit"}}){if(!r){r={stdio:"inherit"}}const i=!!r.ignoreStdio;try{!i&&console.log(`› Attempting to install CocoaPods CLI with Gem`);await CocoaPodsPackageManager.gemInstallCLIAsync(t,r);!i&&console.log(`› Successfully installed CocoaPods CLI with Gem`);return true}catch(t){if(!i){console.log(u.default.yellow(`› Failed to install CocoaPods CLI with Gem`));console.log(u.default.red(t.stderr??t.message));console.log(`› Attempting to install CocoaPods CLI with Homebrew`)}try{await CocoaPodsPackageManager.brewInstallCLIAsync(r);if(!await CocoaPodsPackageManager.isCLIInstalledAsync(r)){try{await CocoaPodsPackageManager.brewLinkCLIAsync(r);if(!await CocoaPodsPackageManager.isCLIInstalledAsync(r)){throw new CocoaPodsError("CLI could not be installed automatically with gem or Homebrew, please install CocoaPods manually and try again","NO_CLI",t)}}catch(t){throw new CocoaPodsError("Homebrew installation appeared to succeed but CocoaPods CLI not found in PATH and unable to link.","NO_CLI",t)}}!i&&console.log(`› Successfully installed CocoaPods CLI with Homebrew`);return true}catch(t){!i&&console.warn(u.default.yellow(`› Failed to install CocoaPods with Homebrew. Please install CocoaPods CLI manually and try again.`));throw new CocoaPodsError(`Failed to install CocoaPods with Homebrew. Please install CocoaPods CLI manually and try again.`,"NO_CLI",t)}}}static isAvailable(t,r){if(process.platform!=="darwin"){!r&&console.log(u.default.red("CocoaPods is only supported on macOS machines"));return false}if(!CocoaPodsPackageManager.isUsingPods(t)){!r&&console.log(u.default.yellow("CocoaPods is not supported in this project"));return false}return true}static async isCLIInstalledAsync(t={stdio:"inherit"}){try{await(0,a.default)("pod",["--version"],t);return true}catch{return false}}constructor({cwd:t,silent:r}){this.silent=!!r;this.options={cwd:t,stdio:"pipe"}}get name(){return"CocoaPods"}async installAsync({spinner:t}={}){await this._installAsync({spinner:t})}isCLIInstalledAsync(){return CocoaPodsPackageManager.isCLIInstalledAsync(this.options)}installCLIAsync(){return CocoaPodsPackageManager.installCLIAsync({nonInteractive:true,spawnOptions:this.options})}async handleInstallErrorAsync({error:t,shouldUpdate:r=true,updatedPackages:i=[],spinner:o}){if(!t.output){throw t}if(!r){throw getImprovedPodInstallError(t,{cwd:this.options.cwd})}const a=t.output.join(h.default.EOL).trim();const{updatePackage:l,shouldUpdateRepo:d}=getPodUpdateMessage(a);if(!l||i.includes(l)){return await this._installAsync({spinner:o,shouldRepoUpdate:true,shouldUpdate:false,updatedPackages:i})}i.push(l);return await this.runInstallTypeCommandAsync(["update",l,d?"":"--no-repo-update"].filter(Boolean),{formatWarning(){const t=`Failed to update ${u.default.bold(l)}. Attempting to update the repo instead.`;return t},spinner:o,updatedPackages:i})}async _installAsync({shouldRepoUpdate:t,...r}={}){return await this.runInstallTypeCommandAsync(["install",t?"--repo-update":""].filter(Boolean),{formatWarning(t){return getPodRepoUpdateMessage(t.output.join(h.default.EOL).trim()).message},...r})}async runInstallTypeCommandAsync(t,{formatWarning:r,...i}={}){try{return await this._runAsync(t)}catch(t){if(r){const o=r(t);if(i.spinner){i.spinner.text=u.default.bold(o)}if(!this.silent){console.warn(u.default.yellow(o))}}return await this.handleInstallErrorAsync({error:t,...i})}}async addWithParametersAsync(t,r){throw new Error("Unimplemented")}addAsync(t=[]){throw new Error("Unimplemented")}addDevAsync(t=[]){throw new Error("Unimplemented")}addGlobalAsync(t=[]){throw new Error("Unimplemented")}removeAsync(t=[]){throw new Error("Unimplemented")}removeDevAsync(t=[]){throw new Error("Unimplemented")}removeGlobalAsync(t=[]){throw new Error("Unimplemented")}async versionAsync(){const{stdout:t}=await(0,a.default)("pod",["--version"],this.options);return t.trim()}async configAsync(t){throw new Error("Unimplemented")}async removeLockfileAsync(){throw new Error("Unimplemented")}async uninstallAsync(){throw new Error("Unimplemented")}async podRepoUpdateAsync(){try{await this._runAsync(["repo","update"])}catch(t){t.message=t.message||(t.stderr??t.stdout);throw new CocoaPodsError("The command `pod install --repo-update` failed","COMMAND_FAILED",t)}}async _runAsync(t){if(!this.silent){console.log(`> pod ${t.join(" ")}`)}const r=(0,a.default)("pod",[...t,"--ansi"],{...this.options,stdio:"pipe"});if(!this.silent){if(r.child.stdout){r.child.stdout.pipe(process.stdout)}}return await r}}r.CocoaPodsPackageManager=CocoaPodsPackageManager;function shouldPodRepoUpdate(t){const r=t;const i=r.includes("pod repo update")||r.includes("--no-repo-update");return i}function getPodUpdateMessage(t){const r=t.match(/run ['"`]pod update ([\w-_\d/]+)( --no-repo-update)?['"`] to apply changes/);return{updatePackage:r?.[1]??null,shouldUpdateRepo:!r?.[2]}}r.getPodUpdateMessage=getPodUpdateMessage;function getPodRepoUpdateMessage(t){const r=extractMissingDependencyError(t);const i=getPodUpdateMessage(t);let o;if(r){o=`Couldn't install: ${r[1]} » ${u.default.underline(r[0])}.`}else if(i?.updatePackage){o=`Couldn't install: ${i?.updatePackage}.`}else{o=`Couldn't install Pods.`}o+=` Updating the Pods project and trying again...`;return{message:o,...i}}r.getPodRepoUpdateMessage=getPodRepoUpdateMessage;function getImprovedPodInstallError(t,{cwd:r=process.cwd()}){const i=t.output.join(h.default.EOL).trim();if(t.stdout.match(/No [`'"]Podfile[`'"] found in the project directory/)){t.message=`No Podfile found in directory: ${r}. Ensure CocoaPods is setup any try again.`}else if(shouldPodRepoUpdate(i)){const r=extractMissingDependencyError(i);let o;if(r){o=`Couldn't install: ${r[1]} » ${u.default.underline(r[0])}`}else{o=`This is often due to native package versions mismatching`}let a;if(r?.[0]){if(r[0].match(/^(?:@?expo|@?react)(-|\/)/)){a=`Ensure the node module "${r[0]}" is installed in your project, then run 'npx pod-install' to try again.`}else{a=`Ensure the CocoaPod "${r[0]}" is installed in your project, then run 'npx pod-install' to try again.`}}else{a=`Try deleting the 'ios/Pods' folder or the 'ios/Podfile.lock' file and running 'npx pod-install' to resolve.`}t.message=`${o}. ${a}`;if(t.stdout){const r=t.stdout.split(h.default.EOL);const i=r.findIndex((t=>t.startsWith("[!]")));if(i!==-1){const o=r.slice(i).join(h.default.EOL);t.message+=`\n\n${u.default.gray(o)}`}}return new CocoaPodsError("Command `pod install --repo-update` failed.","COMMAND_FAILED",t)}else{let r=t.stderr.trim();const i=t.stdout.match(/\[!\]\s((?:.|\n)*)/)?.[1];if(i){if(t.message?.match(/pod exited with non-zero code: 1/)){t.message=""}r=null}t.message=[i,t.message,r].filter(Boolean).join("\n")}return new CocoaPodsError("Command `pod install` failed.","COMMAND_FAILED",t)}r.getImprovedPodInstallError=getImprovedPodInstallError},1729:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.BasePackageManager=void 0;const a=o(i(5642));const u=o(i(9491));const l=o(i(7147));const h=o(i(1017));class BasePackageManager{silent;log;options;constructor({silent:t,log:r,env:i=process.env,...o}={}){this.silent=!!t;this.log=r??(!t?console.log:undefined);this.options={stdio:t?undefined:"inherit",...o,env:{...this.getDefaultEnvironment(),...i}}}getDefaultEnvironment(){return{ADBLOCK:"1",DISABLE_OPENCOLLECTIVE:"1"}}ensureCwdDefined(t){const r=this.options.cwd?.toString();const i=this.constructor.name;const o=t?`.${t}`:"";(0,u.default)(r,`cwd is required for ${i}${o}`);return r}runAsync(t,r={}){this.log?.(`> ${this.name} ${t.join(" ")}`);return(0,a.default)(this.bin,t,{...this.options,...r})}runBinAsync(t,r={}){this.log?.(`> ${this.name} ${t.join(" ")}`);return(0,a.default)(this.bin,t,{...this.options,...r})}async versionAsync(){const{stdout:t}=await this.runAsync(["--version"],{stdio:undefined});return t.trim()}async getConfigAsync(t){const{stdout:r}=await this.runAsync(["config","get",t]);return r.trim()}async removeLockfileAsync(){const t=this.ensureCwdDefined("removeLockFile");const r=h.default.join(t,this.lockFile);await l.default.promises.rm(r,{force:true})}installAsync(t=[]){return this.runAsync(["install",...t])}async uninstallAsync(){const t=this.ensureCwdDefined("uninstallAsync");const r=h.default.join(t,"node_modules");await l.default.promises.rm(r,{force:true,recursive:true})}}r.BasePackageManager=BasePackageManager},6805:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.BunPackageManager=void 0;const o=i(1729);const a=i(3746);class BunPackageManager extends o.BasePackageManager{name="bun";bin="bun";lockFile=a.BUN_LOCK_FILE;workspaceRoot(){const t=(0,a.resolveWorkspaceRoot)(this.ensureCwdDefined("workspaceRoot"));if(t){return new BunPackageManager({...this.options,silent:this.silent,log:this.log,cwd:t})}return null}installAsync(t=[]){return this.runAsync(["install",...t])}addAsync(t=[]){if(!t.length){return this.installAsync()}return this.runAsync(["add",...t])}addDevAsync(t=[]){if(!t.length){return this.installAsync()}return this.runAsync(["add","--dev",...t])}addGlobalAsync(t=[]){if(!t.length){return this.installAsync()}return this.runAsync(["add","--global",...t])}removeAsync(t){return this.runAsync(["remove",...t])}removeDevAsync(t){return this.runAsync(["remove",...t])}removeGlobalAsync(t){return this.runAsync(["remove","--global",...t])}}r.BunPackageManager=BunPackageManager},1178:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.NpmPackageManager=void 0;const a=o(i(6282));const u=o(i(5642));const l=o(i(5440));const h=o(i(1017));const d=i(1729);const p=i(3746);const g=i(6418);class NpmPackageManager extends d.BasePackageManager{name="npm";bin="npm";lockFile=p.NPM_LOCK_FILE;workspaceRoot(){const t=(0,p.resolveWorkspaceRoot)(this.ensureCwdDefined("workspaceRoot"));if(t){return new NpmPackageManager({...this.options,silent:this.silent,log:this.log,cwd:t})}return null}addAsync(t=[]){if(!t.length){return this.installAsync()}const{flags:r,versioned:i,unversioned:o}=this.parsePackageSpecs(t);return(0,g.createPendingSpawnAsync)((()=>this.updatePackageFileAsync(i,"dependencies")),(()=>!o.length?this.runAsync(["install",...r]):this.runAsync(["install","--save",...r,...o.map((t=>t.raw))])))}addDevAsync(t=[]){if(!t.length){return this.installAsync()}const{flags:r,versioned:i,unversioned:o}=this.parsePackageSpecs(t);return(0,g.createPendingSpawnAsync)((()=>this.updatePackageFileAsync(i,"devDependencies")),(()=>!o.length?this.runAsync(["install",...r]):this.runAsync(["install","--save-dev",...r,...o.map((t=>t.raw))])))}addGlobalAsync(t=[]){if(!t.length){return this.installAsync()}return this.runAsync(["install","--global",...t])}removeAsync(t){return this.runAsync(["uninstall",...t])}removeDevAsync(t){return this.runAsync(["uninstall","--save-dev",...t])}removeGlobalAsync(t){return this.runAsync(["uninstall","--global",...t])}runBinAsync(t,r={}){this.log?.(`> npx ${t.join(" ")}`);return(0,u.default)("npx",t,{...this.options,...r})}parsePackageSpecs(t){const r={flags:[],versioned:[],unversioned:[]};t.map((t=>{if(t.trim().startsWith("-")){r.flags.push(t);return null}return(0,l.default)(t)})).forEach((t=>{const i=!!t&&t.rawSpec!==""&&t.rawSpec!=="*";if(t&&i&&t.type!=="tag"){r.versioned.push(t)}else if(t){r.unversioned.push(t)}}));return r}async updatePackageFileAsync(t,r){if(!t.length){return}const i=h.default.join(this.options.cwd?.toString()||".","package.json");const o=await a.default.readAsync(i);t.forEach((t=>{o[r]=o[r]||{};o[r][t.name]=t.rawSpec}));await a.default.writeAsync(i,o,{json5:false})}}r.NpmPackageManager=NpmPackageManager},6125:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.PnpmPackageManager=void 0;const a=i(1729);const u=o(i(1966));const l=i(3746);class PnpmPackageManager extends a.BasePackageManager{name="pnpm";bin="pnpm";lockFile=l.PNPM_LOCK_FILE;workspaceRoot(){const t=(0,l.resolveWorkspaceRoot)(this.ensureCwdDefined("workspaceRoot"));if(t){return new PnpmPackageManager({...this.options,silent:this.silent,log:this.log,cwd:t})}return null}installAsync(t=[]){if(u.default.CI&&!t.join(" ").includes("frozen-lockfile")){t.unshift("--no-frozen-lockfile")}return this.runAsync(["install",...t])}addAsync(t=[]){if(!t.length){return this.installAsync()}return this.runAsync(["add",...t])}addDevAsync(t=[]){if(!t.length){return this.installAsync()}return this.runAsync(["add","--save-dev",...t])}addGlobalAsync(t=[]){if(!t.length){return this.installAsync()}return this.runAsync(["add","--global",...t])}removeAsync(t){return this.runAsync(["remove",...t])}removeDevAsync(t){return this.runAsync(["remove","--save-dev",...t])}removeGlobalAsync(t){return this.runAsync(["remove","--global",...t])}}r.PnpmPackageManager=PnpmPackageManager},57:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.YarnPackageManager=void 0;const o=i(1729);const a=i(3746);const u=i(6418);const l=i(822);class YarnPackageManager extends o.BasePackageManager{name="yarn";bin="yarnpkg";lockFile=a.YARN_LOCK_FILE;async withOfflineFlagAsync(t){return await(0,l.isYarnOfflineAsync)()?[...t,"--offline"]:t}workspaceRoot(){const t=(0,a.resolveWorkspaceRoot)(this.ensureCwdDefined("workspaceRoot"));if(t){return new YarnPackageManager({...this.options,silent:this.silent,log:this.log,cwd:t})}return null}installAsync(t=[]){return(0,u.createPendingSpawnAsync)((()=>this.withOfflineFlagAsync(["install"])),(r=>this.runAsync([...r,...t])))}addAsync(t=[]){if(!t.length){return this.installAsync()}return(0,u.createPendingSpawnAsync)((()=>this.withOfflineFlagAsync(["add",...t])),(t=>this.runAsync(t)))}addDevAsync(t=[]){if(!t.length){return this.installAsync()}return(0,u.createPendingSpawnAsync)((()=>this.withOfflineFlagAsync(["add","--dev",...t])),(t=>this.runAsync(t)))}addGlobalAsync(t=[]){if(!t.length){return this.installAsync()}return(0,u.createPendingSpawnAsync)((()=>this.withOfflineFlagAsync(["global","add",...t])),(t=>this.runAsync(t)))}removeAsync(t){return this.runAsync(["remove",...t])}removeDevAsync(t){return this.runAsync(["remove",...t])}removeGlobalAsync(t){return this.runAsync(["global","remove",...t])}}r.YarnPackageManager=YarnPackageManager},1966:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});class Env{get CI(){const{CI:t}=process.env;return t?.toLowerCase()==="true"||t==="1"}}r["default"]=new Env},3746:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.createForProject=r.resolvePackageManager=r.RESOLUTION_ORDER=r.BUN_TEXT_LOCK_FILE=r.BUN_LOCK_FILE=r.PNPM_LOCK_FILE=r.YARN_LOCK_FILE=r.NPM_LOCK_FILE=r.resolveWorkspaceRoot=void 0;const a=o(i(7147));const u=o(i(1017));const l=i(7301);const h=i(6805);const d=i(1178);const p=i(6125);const g=i(57);var y=i(7301);Object.defineProperty(r,"resolveWorkspaceRoot",{enumerable:true,get:function(){return y.resolveWorkspaceRoot}});r.NPM_LOCK_FILE="package-lock.json";r.YARN_LOCK_FILE="yarn.lock";r.PNPM_LOCK_FILE="pnpm-lock.yaml";r.BUN_LOCK_FILE="bun.lockb";r.BUN_TEXT_LOCK_FILE="bun.lock";r.RESOLUTION_ORDER=["bun","yarn","npm","pnpm"];function resolvePackageManager(t,i){const o=(0,l.resolveWorkspaceRoot)(t)??t;const h={npm:[r.NPM_LOCK_FILE],pnpm:[r.PNPM_LOCK_FILE],yarn:[r.YARN_LOCK_FILE],bun:[r.BUN_LOCK_FILE,r.BUN_TEXT_LOCK_FILE]};if(i){return h[i].some((t=>a.default.existsSync(u.default.join(o,t))))?i:null}for(const t of r.RESOLUTION_ORDER){if(h[t].some((t=>a.default.existsSync(u.default.join(o,t))))){return t}}return null}r.resolvePackageManager=resolvePackageManager;function createForProject(t,r={}){if(r.npm){return new d.NpmPackageManager({cwd:t,...r})}else if(r.yarn){return new g.YarnPackageManager({cwd:t,...r})}else if(r.pnpm){return new p.PnpmPackageManager({cwd:t,...r})}else if(r.bun){return new h.BunPackageManager({cwd:t,...r})}switch(resolvePackageManager(t)){case"npm":return new d.NpmPackageManager({cwd:t,...r});case"pnpm":return new p.PnpmPackageManager({cwd:t,...r});case"yarn":return new g.YarnPackageManager({cwd:t,...r});case"bun":return new h.BunPackageManager({cwd:t,...r});default:return new d.NpmPackageManager({cwd:t,...r})}}r.createForProject=createForProject},6418:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.createPendingSpawnAsync=void 0;function createPendingSpawnAsync(t,r){let i;const o=new Promise(((t,r)=>{i=t}));const a=new Promise(((o,a)=>{t().then((t=>{const u=r(t);i(u.child);u.then(o).catch(a)})).catch((t=>{i(null);a(t)}))}));a.child=o;return a}r.createPendingSpawnAsync=createPendingSpawnAsync},822:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.getNpmProxy=r.isYarnOfflineAsync=void 0;const a=i(2081);const u=o(i(9523));const l=o(i(7310));async function isYarnOfflineAsync(){if(await isUrlAvailableAsync("registry.yarnpkg.com")){return false}const t=getNpmProxy();if(!t){return true}const{hostname:r}=l.default.parse(t);if(!r){return true}return!await isUrlAvailableAsync(r)}r.isYarnOfflineAsync=isYarnOfflineAsync;function getNpmProxy(){if(process.env.https_proxy){return process.env.https_proxy??null}try{const t=(0,a.execSync)("npm config get https-proxy").toString().trim();return t!=="null"?t:null}catch{return null}}r.getNpmProxy=getNpmProxy;function isUrlAvailableAsync(t){return new Promise((r=>{u.default.lookup(t,(t=>{r(!t)}))}))}},9999:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.findMadeSync=r.findMade=void 0;const o=i(1017);const findMade=async(t,i,a)=>{if(a===i){return}return t.statAsync(i).then((t=>t.isDirectory()?a:undefined),(a=>{const u=a;return u&&u.code==="ENOENT"?(0,r.findMade)(t,(0,o.dirname)(i),i):undefined}))};r.findMade=findMade;const findMadeSync=(t,i,a)=>{if(a===i){return undefined}try{return t.statSync(i).isDirectory()?a:undefined}catch(a){const u=a;return u&&u.code==="ENOENT"?(0,r.findMadeSync)(t,(0,o.dirname)(i),i):undefined}};r.findMadeSync=findMadeSync},4848:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.mkdirp=r.nativeSync=r.native=r.manualSync=r.manual=r.sync=r.mkdirpSync=r.useNativeSync=r.useNative=r.mkdirpNativeSync=r.mkdirpNative=r.mkdirpManualSync=r.mkdirpManual=void 0;const o=i(6506);const a=i(3537);const u=i(7733);const l=i(7463);const h=i(8968);var d=i(6506);Object.defineProperty(r,"mkdirpManual",{enumerable:true,get:function(){return d.mkdirpManual}});Object.defineProperty(r,"mkdirpManualSync",{enumerable:true,get:function(){return d.mkdirpManualSync}});var p=i(3537);Object.defineProperty(r,"mkdirpNative",{enumerable:true,get:function(){return p.mkdirpNative}});Object.defineProperty(r,"mkdirpNativeSync",{enumerable:true,get:function(){return p.mkdirpNativeSync}});var g=i(8968);Object.defineProperty(r,"useNative",{enumerable:true,get:function(){return g.useNative}});Object.defineProperty(r,"useNativeSync",{enumerable:true,get:function(){return g.useNativeSync}});const mkdirpSync=(t,r)=>{t=(0,l.pathArg)(t);const i=(0,u.optsArg)(r);return(0,h.useNativeSync)(i)?(0,a.mkdirpNativeSync)(t,i):(0,o.mkdirpManualSync)(t,i)};r.mkdirpSync=mkdirpSync;r.sync=r.mkdirpSync;r.manual=o.mkdirpManual;r.manualSync=o.mkdirpManualSync;r.native=a.mkdirpNative;r.nativeSync=a.mkdirpNativeSync;r.mkdirp=Object.assign((async(t,r)=>{t=(0,l.pathArg)(t);const i=(0,u.optsArg)(r);return(0,h.useNative)(i)?(0,a.mkdirpNative)(t,i):(0,o.mkdirpManual)(t,i)}),{mkdirpSync:r.mkdirpSync,mkdirpNative:a.mkdirpNative,mkdirpNativeSync:a.mkdirpNativeSync,mkdirpManual:o.mkdirpManual,mkdirpManualSync:o.mkdirpManualSync,sync:r.mkdirpSync,native:a.mkdirpNative,nativeSync:a.mkdirpNativeSync,manual:o.mkdirpManual,manualSync:o.mkdirpManualSync,useNative:h.useNative,useNativeSync:h.useNativeSync})},6506:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.mkdirpManual=r.mkdirpManualSync=void 0;const o=i(1017);const a=i(7733);const mkdirpManualSync=(t,i,u)=>{const l=(0,o.dirname)(t);const h={...(0,a.optsArg)(i),recursive:false};if(l===t){try{return h.mkdirSync(t,h)}catch(t){const r=t;if(r&&r.code!=="EISDIR"){throw t}return}}try{h.mkdirSync(t,h);return u||t}catch(i){const o=i;if(o&&o.code==="ENOENT"){return(0,r.mkdirpManualSync)(t,h,(0,r.mkdirpManualSync)(l,h,u))}if(o&&o.code!=="EEXIST"&&o&&o.code!=="EROFS"){throw i}try{if(!h.statSync(t).isDirectory())throw i}catch(t){throw i}}};r.mkdirpManualSync=mkdirpManualSync;r.mkdirpManual=Object.assign((async(t,i,u)=>{const l=(0,a.optsArg)(i);l.recursive=false;const h=(0,o.dirname)(t);if(h===t){return l.mkdirAsync(t,l).catch((t=>{const r=t;if(r&&r.code!=="EISDIR"){throw t}}))}return l.mkdirAsync(t,l).then((()=>u||t),(async i=>{const o=i;if(o&&o.code==="ENOENT"){return(0,r.mkdirpManual)(h,l).then((i=>(0,r.mkdirpManual)(t,l,i)))}if(o&&o.code!=="EEXIST"&&o.code!=="EROFS"){throw i}return l.statAsync(t).then((t=>{if(t.isDirectory()){return u}else{throw i}}),(()=>{throw i}))}))}),{sync:r.mkdirpManualSync})},3537:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.mkdirpNative=r.mkdirpNativeSync=void 0;const o=i(1017);const a=i(9999);const u=i(6506);const l=i(7733);const mkdirpNativeSync=(t,r)=>{const i=(0,l.optsArg)(r);i.recursive=true;const h=(0,o.dirname)(t);if(h===t){return i.mkdirSync(t,i)}const d=(0,a.findMadeSync)(i,t);try{i.mkdirSync(t,i);return d}catch(r){const o=r;if(o&&o.code==="ENOENT"){return(0,u.mkdirpManualSync)(t,i)}else{throw r}}};r.mkdirpNativeSync=mkdirpNativeSync;r.mkdirpNative=Object.assign((async(t,r)=>{const i={...(0,l.optsArg)(r),recursive:true};const h=(0,o.dirname)(t);if(h===t){return await i.mkdirAsync(t,i)}return(0,a.findMade)(i,t).then((r=>i.mkdirAsync(t,i).then((t=>r||t)).catch((r=>{const o=r;if(o&&o.code==="ENOENT"){return(0,u.mkdirpManual)(t,i)}else{throw r}}))))}),{sync:r.mkdirpNativeSync})},7733:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.optsArg=void 0;const o=i(7147);const optsArg=t=>{if(!t){t={mode:511}}else if(typeof t==="object"){t={mode:511,...t}}else if(typeof t==="number"){t={mode:t}}else if(typeof t==="string"){t={mode:parseInt(t,8)}}else{throw new TypeError("invalid options argument")}const r=t;const i=t.fs||{};t.mkdir=t.mkdir||i.mkdir||o.mkdir;t.mkdirAsync=t.mkdirAsync?t.mkdirAsync:async(t,i)=>new Promise(((o,a)=>r.mkdir(t,i,((t,r)=>t?a(t):o(r)))));t.stat=t.stat||i.stat||o.stat;t.statAsync=t.statAsync?t.statAsync:async t=>new Promise(((i,o)=>r.stat(t,((t,r)=>t?o(t):i(r)))));t.statSync=t.statSync||i.statSync||o.statSync;t.mkdirSync=t.mkdirSync||i.mkdirSync||o.mkdirSync;return r};r.optsArg=optsArg},7463:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.pathArg=void 0;const o=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform;const a=i(1017);const pathArg=t=>{if(/\0/.test(t)){throw Object.assign(new TypeError("path must be a string without null bytes"),{path:t,code:"ERR_INVALID_ARG_VALUE"})}t=(0,a.resolve)(t);if(o==="win32"){const r=/[*|"<>?:]/;const{root:i}=(0,a.parse)(t);if(r.test(t.substring(i.length))){throw Object.assign(new Error("Illegal characters in path."),{path:t,code:"EINVAL"})}}return t};r.pathArg=pathArg},8968:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.useNative=r.useNativeSync=void 0;const o=i(7147);const a=i(7733);const u=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version;const l=u.replace(/^v/,"").split(".");const h=+l[0]>10||+l[0]===10&&+l[1]>=12;r.useNativeSync=!h?()=>false:t=>(0,a.optsArg)(t).mkdirSync===o.mkdirSync;r.useNative=Object.assign(!h?()=>false:t=>(0,a.optsArg)(t).mkdir===o.mkdir,{sync:r.useNativeSync})},6055:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.sanitizeScriptsAsync=r.downloadAndExtractExampleAsync=r.promptExamplesAsync=r.ensureExampleExists=r.fetchMetadataAsync=void 0;const a=o(i(6282));const u=o(i(8746));const l=o(i(7147));const h=o(i(1017));const d=o(i(1112));const p=i(2781);const g=i(7573);const y=i(3837);const b=i(1947);const w=i(6581);const v=i(7943);const E=i(9544);const A=i(7984)("expo:init:template");const _=(0,y.promisify)(p.Stream.pipeline);async function listExamplesAsync(){const t=await(0,E.fetch)("https://api.github.com/repos/expo/examples/contents");if(!t.ok){throw new Error("Unexpected GitHub API response: https://github.com/expo/examples")}const r=await t.json();return r.filter((t=>t.type==="dir"&&!t.name.startsWith(".")))}async function fetchMetadataAsync(){const t=await(0,E.fetch)(`https://raw.githubusercontent.com/expo/examples/master/meta.json`);if(!t.ok){throw new Error(`Unexpected GitHub API response: ${t.status} - ${t.statusText}`)}return await t.json()}r.fetchMetadataAsync=fetchMetadataAsync;async function hasExampleAsync(t){const r=await(0,E.fetch)(`https://api.github.com/repos/expo/examples/contents/${encodeURIComponent(t)}/package.json`);if(r.status===404||r.ok){return r.ok}throw new Error(`Unexpected GitHub API response: ${r.status} - ${r.statusText}`)}async function ensureExampleExists(t){if(!await hasExampleAsync(t)){throw new Error(`Example "${t}" does not exist, see https://github.com/expo/examples`)}}r.ensureExampleExists=ensureExampleExists;async function promptExamplesAsync(){if(v.env.CI){throw new Error("Cannot prompt for examples in CI")}const t=await listExamplesAsync();const{answer:r}=await(0,d.default)({type:"select",name:"answer",message:"Choose an example:",choices:t.map((t=>({title:t.name,value:t.path})))});if(!r){console.log();console.log((0,u.default)`Please specify the example, example: {cyan --example with-router}`);console.log();process.exit(1)}return r}r.promptExamplesAsync=promptExamplesAsync;async function downloadAndExtractExampleAsync(t,r){const i=h.default.basename(t);const o=await(0,E.fetch)("https://codeload.github.com/expo/examples/tar.gz/master");if(!o.ok){A(`Failed to fetch the examples code, received status "${o.status}"`);throw new Error("Failed to fetch the examples code from https://github.com/expo/examples")}if(!o.body){A(`Failed to fetch the examples code, Github responded without content, received status "${o.status}"`);throw new Error("Failed to fetch the examples code from https://github.com/expo/examples")}await _(p.Readable.fromWeb(o.body),(0,g.extract)({cwd:t,onentry:(0,w.createEntryResolver)(i),strip:2},[`examples-master/${r}`]));const a=await(0,b.getTemplateFilesToRenameAsync)({cwd:t});await(0,b.renameTemplateAppNameAsync)({cwd:t,files:a,name:i});await(0,b.sanitizeTemplateAsync)(t);await sanitizeScriptsAsync(t)}r.downloadAndExtractExampleAsync=downloadAndExtractExampleAsync;function exampleHasNativeCode(t){return[h.default.join(t,"android"),h.default.join(t,"ios")].some((t=>l.default.existsSync(t)))}async function sanitizeScriptsAsync(t){const r=exampleHasNativeCode(t)?{start:"expo start --dev-client",android:"expo run:android",ios:"expo run:ios",web:"expo start --web"}:{start:"expo start",android:"expo start --android",ios:"expo start --ios",web:"expo start --web"};const i=new a.default(h.default.join(t,"package.json"));const o=await i.readAsync();const u=o.scripts??{};o.scripts={...r,...u};await i.writeAsync(o)}r.sanitizeScriptsAsync=sanitizeScriptsAsync},1947:function(t,r,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,r,i,o){if(o===undefined)o=i;var a=Object.getOwnPropertyDescriptor(r,i);if(!a||("get"in a?!r.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return r[i]}}}Object.defineProperty(t,o,a)}:function(t,r,i,o){if(o===undefined)o=i;t[o]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:true,value:r})}:function(t,r){t["default"]=r});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i))o(r,t,i);a(r,t);return r};var l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.logNewSection=r.installPodsAsync=r.logProjectReady=r.validateName=r.sanitizeTemplateAsync=r.renameTemplateAppNameAsync=r.getTemplateFilesToRenameAsync=r.defaultRenameConfig=r.extractAndPrepareTemplateAppAsync=r.resolvePackageModuleId=r.isFolderNameForbidden=void 0;const h=l(i(6282));const d=u(i(7496));const p=l(i(8746));const g=l(i(7147));const y=i(8743);const b=l(i(2651));const w=l(i(1017));const v=i(6581);const E=i(3744);const A=i(1805);const _=i(7943);const C=i(292);const S=i(7240);const D=i(7984)("expo:init:template");const x=process.platform==="darwin";const O=["react-native","react","react-dom","react-native-web","expo","expo-router"];function isFolderNameForbidden(t){return O.includes(t)}r.isFolderNameForbidden=isFolderNameForbidden;function deepMerge(t,r){if(typeof t!=="object"){return r}if(Array.isArray(t)&&Array.isArray(r)){return t.concat(r)}Object.keys(r).forEach((i=>{if(typeof r[i]==="object"&&r[i]!==null){t[i]=deepMerge(t[i],r[i])}else{t[i]=r[i]}}));return t}function coerceUrl(t){try{return new URL(t)}catch(r){if(!/^(https?:\/\/)/.test(t)){return new URL(`https://${t}`)}throw r}}function resolvePackageModuleId(t){if(t.includes("/")&&!(t.startsWith("@")||t.startsWith(".")||t.startsWith(w.default.sep)||/^[a-z][-a-z0-9\\.\\+]*:/.test(t))){t=`https://github.com/${t}`}if(/^(https?:\/\/)?github\.com\//.test(t)){try{const r=coerceUrl(t);D("Resolved moduleId to repository path:",t);return{type:"repository",uri:r}}catch{throw new Error(`Invalid URL: "${t}" provided`)}}if(t?.startsWith("file:")||t?.startsWith(".")||t?.startsWith(w.default.sep)){if(t?.startsWith("file:")){t=t.substring(5)}D(`Resolved moduleId to file path:`,t);return{type:"file",uri:w.default.resolve(t)}}D(`Resolved moduleId to NPM package:`,t);return{type:"npm",uri:t}}r.resolvePackageModuleId=resolvePackageModuleId;async function extractAndPrepareTemplateAppAsync(t,{npmPackage:r}){const i=w.default.basename(t);D(`Extracting template app (pkg: ${r}, projectName: ${i})`);const{type:o,uri:a}=resolvePackageModuleId(r||"expo-template-default");if(o==="repository"){await(0,C.downloadAndExtractGitHubRepositoryAsync)(a,{cwd:t,name:i})}else{const r=o==="file"?a:(0,S.getResolvedTemplateName)((0,S.applyBetaTag)(a));await(0,S.downloadAndExtractNpmModuleAsync)(r,{cwd:t,name:i,disableCache:o==="file"})}try{const r=await getTemplateFilesToRenameAsync({cwd:t});await renameTemplateAppNameAsync({cwd:t,files:r,name:i})}catch(t){E.Log.error("Error renaming app name in template");throw t}await sanitizeTemplateAsync(t);return t}r.extractAndPrepareTemplateAppAsync=extractAndPrepareTemplateAppAsync;function escapeXMLCharacters(t){const r=t.replace("&","&");const i=r.replace("<","<");const o=i.replace(">",">");const a=o.replace('"','\\"');return a.replace("'","\\'")}r.defaultRenameConfig=["!**/node_modules","app.json","android/**/*.gradle","android/app/BUCK","android/app/src/**/*.java","android/app/src/**/*.kt","android/app/src/**/*.xml","ios/Podfile","ios/**/*.xcodeproj/project.pbxproj","ios/**/*.xcodeproj/xcshareddata/xcschemes/*.xcscheme","ios/**/*.xcworkspace/contents.xcworkspacedata","macos/Podfile","macos/**/*.xcodeproj/project.pbxproj","macos/**/*.xcodeproj/xcshareddata/xcschemes/*.xcscheme","macos/**/*.xcworkspace/contents.xcworkspacedata"];async function getTemplateFilesToRenameAsync({cwd:t,renameConfig:i}){let o=i??r.defaultRenameConfig;o=o.map((t=>t.split(/(?<!\\)#/,2)[0].trim())).filter((t=>t!==""));return await(0,y.glob)(o,{cwd:t,matchBase:true,dot:true,follow:false})}r.getTemplateFilesToRenameAsync=getTemplateFilesToRenameAsync;async function renameTemplateAppNameAsync({cwd:t,name:r,files:i}){D(`Got files to transform: ${JSON.stringify(i)}`);await Promise.all(i.map((async i=>{const o=w.default.resolve(t,i);let a;try{a=await g.default.promises.readFile(o,{encoding:"utf-8"})}catch(t){throw new Error(`Failed to read template file: "${o}". Was it removed mid-operation?`,{cause:t})}D(`Renaming app name in file: ${o}`);const u=[".xml",".plist"].includes(w.default.extname(i))?escapeXMLCharacters(r):r;try{const t=a.replace(/Hello App Display Name/g,u).replace(/HelloWorld/g,(0,v.sanitizedName)(u)).replace(/helloworld/g,(0,v.sanitizedName)(u.toLowerCase()));if(t===a){return}await g.default.promises.writeFile(o,t)}catch(t){throw new Error(`Failed to overwrite template file: "${o}". Was it removed mid-operation?`,{cause:t})}})))}r.renameTemplateAppNameAsync=renameTemplateAppNameAsync;async function sanitizeTemplateAsync(t){const r=w.default.basename(t);D(`Sanitizing template or example app (projectName: ${r})`);const i=w.default.join(__dirname,"../template/gitignore");const o=w.default.join(t,".gitignore");if(!g.default.existsSync(o)){await g.default.promises.copyFile(i,o)}const a={name:r,slug:r};const u=new h.default(w.default.join(t,"app.json"),{default:{}});const l=await u.readAsync();const d=deepMerge(l,"expo"in l?{expo:a}:a);await u.writeAsync(d);D(`Created app.json:\n%O`,d);const p=new h.default(w.default.join(t,"package.json"));const y=await p.readAsync();const b="name"in d?d.name:d.expo.name;y.name=(0,S.applyKnownNpmPackageNameRules)(b)||"app";y.version="1.0.0";y.private=true;delete y.description;delete y.tags;delete y.repository;if(y.license==="0BSD"){delete y.license}await p.writeAsync(y)}r.sanitizeTemplateAsync=sanitizeTemplateAsync;function validateName(t){if(typeof t!=="string"||t===""){return"The project name can not be empty."}if(!/^[a-z0-9@.\-_]+$/i.test(t)){return"The project name can only contain URL-friendly characters."}return true}r.validateName=validateName;function logProjectReady({cdPath:t,packageManager:r}){console.log(p.default.bold(`✅ Your project is ready!`));console.log();if(t){console.log(`To run your project, navigate to the directory and run one of the following ${r} commands.`);console.log();console.log(`- ${p.default.bold("cd "+t)}`)}else{console.log(`To run your project, run one of the following ${r} commands.`);console.log()}console.log(`- ${p.default.bold((0,A.formatRunCommand)(r,"android"))}`);let i="";if(!x){i=" # you need to use macOS to build the iOS project - use the Expo app if you need to do iOS development without a Mac"}console.log(`- ${p.default.bold((0,A.formatRunCommand)(r,"ios"))}${i}`);console.log(`- ${p.default.bold((0,A.formatRunCommand)(r,"web"))}`)}r.logProjectReady=logProjectReady;async function installPodsAsync(t){let r=logNewSection("Installing CocoaPods.");if(process.platform!=="darwin"){r.succeed("Skipped installing CocoaPods because operating system is not macOS.");return false}const i=new d.CocoaPodsPackageManager({cwd:w.default.join(t,"ios"),silent:!_.env.EXPO_DEBUG});if(!await i.isCLIInstalledAsync()){try{r.text="CocoaPods CLI not found in your $PATH, installing it now.";r.render();await i.installCLIAsync();r.succeed("Installed CocoaPods CLI");r=logNewSection("Running `pod install` in the `ios` directory.")}catch(t){r.stopAndPersist({symbol:"⚠️ ",text:p.default.red("Unable to install the CocoaPods CLI. Continuing with initializing the project, you can install CocoaPods afterwards.")});if(t.message){E.Log.error(`- ${t.message}`)}return false}}try{await i.installAsync();r.succeed("Installed pods and initialized Xcode workspace.");return true}catch(t){r.stopAndPersist({symbol:"⚠️ ",text:p.default.red("Something went wrong running `pod install` in the `ios` directory. Continuing with initializing the project, you can debug this afterwards.")});if(t.message){E.Log.error(`- ${t.message}`)}return false}}r.installPodsAsync=installPodsAsync;function logNewSection(t){const r=_.env.CI||_.env.EXPO_DEBUG;const i=(0,b.default)({text:p.default.bold(t),isEnabled:!r,stream:r?process.stdout:process.stderr});i.start();return i}r.logNewSection=logNewSection},9436:function(t,r,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,r,i,o){if(o===undefined)o=i;var a=Object.getOwnPropertyDescriptor(r,i);if(!a||("get"in a?!r.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return r[i]}}}Object.defineProperty(t,o,a)}:function(t,r,i,o){if(o===undefined)o=i;t[o]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:true,value:r})}:function(t,r){t["default"]=r});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i))o(r,t,i);a(r,t);return r};var l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});const h=l(i(8746));const d=i(9247);const p=i(5733);const g=i(3744);const y=i(1805);const b=i(3490);const w=i(7984)("expo:init:cli");async function run(){const t=process.argv.slice(2)??[];const r={"--yes":Boolean,"--no-install":Boolean,"--help":Boolean,"--version":Boolean,"-y":"--yes","-h":"--help","-v":"--version"};const o=(0,b.assertWithOptionsArgs)(r,{argv:t,permissive:true});if(o["--version"]){g.Log.exit(i(4147).version,0)}if(o["--help"]){const t=d.CLI_NAME.replace("create-","");(0,b.printHelp)(`Creates a new Expo project`,(0,h.default)`npx ${d.CLI_NAME} {cyan <path>} [options]`,[`-y, --yes Use the default options for creating a project`,` --no-install Skip installing npm packages or CocoaPods`,(0,h.default)`-t, --template {gray [pkg]} NPM template to use: default, blank, blank-typescript, tabs, bare-minimum. Default: default`,(0,h.default)`-e, --example {gray [name]} Example name from {underline https://github.com/expo/examples}.`,`-v, --version Version number`,`-h, --help Usage info`].join("\n"),(0,h.default)`
|
|
23
|
+
const n=r(5680);const toRegexRange=(e,t,r)=>{if(n(e)===false){throw new TypeError("toRegexRange: expected the first argument to be a number")}if(t===void 0||e===t){return String(e)}if(n(t)===false){throw new TypeError("toRegexRange: expected the second argument to be a number.")}let s={relaxZeros:true,...r};if(typeof s.strictZeros==="boolean"){s.relaxZeros=s.strictZeros===false}let i=String(s.relaxZeros);let o=String(s.shorthand);let a=String(s.capture);let u=String(s.wrap);let l=e+":"+t+"="+i+o+a+u;if(toRegexRange.cache.hasOwnProperty(l)){return toRegexRange.cache[l].result}let c=Math.min(e,t);let f=Math.max(e,t);if(Math.abs(c-f)===1){let r=e+"|"+t;if(s.capture){return`(${r})`}if(s.wrap===false){return r}return`(?:${r})`}let p=hasPadding(e)||hasPadding(t);let h={min:e,max:t,a:c,b:f};let d=[];let g=[];if(p){h.isPadded=p;h.maxLen=String(h.max).length}if(c<0){let e=f<0?Math.abs(f):1;g=splitToPatterns(e,Math.abs(c),h,s);c=h.a=0}if(f>=0){d=splitToPatterns(c,f,h,s)}h.negatives=g;h.positives=d;h.result=collatePatterns(g,d,s);if(s.capture===true){h.result=`(${h.result})`}else if(s.wrap!==false&&d.length+g.length>1){h.result=`(?:${h.result})`}toRegexRange.cache[l]=h;return h.result};function collatePatterns(e,t,r){let n=filterPatterns(e,t,"-",false,r)||[];let s=filterPatterns(t,e,"",false,r)||[];let i=filterPatterns(e,t,"-?",true,r)||[];let o=n.concat(i).concat(s);return o.join("|")}function splitToRanges(e,t){let r=1;let n=1;let s=countNines(e,r);let i=new Set([t]);while(e<=s&&s<=t){i.add(s);r+=1;s=countNines(e,r)}s=countZeros(t+1,n)-1;while(e<s&&s<=t){i.add(s);n+=1;s=countZeros(t+1,n)-1}i=[...i];i.sort(compare);return i}function rangeToPattern(e,t,r){if(e===t){return{pattern:e,count:[],digits:0}}let n=zip(e,t);let s=n.length;let i="";let o=0;for(let e=0;e<s;e++){let[t,s]=n[e];if(t===s){i+=t}else if(t!=="0"||s!=="9"){i+=toCharacterClass(t,s,r)}else{o++}}if(o){i+=r.shorthand===true?"\\d":"[0-9]"}return{pattern:i,count:[o],digits:s}}function splitToPatterns(e,t,r,n){let s=splitToRanges(e,t);let i=[];let o=e;let a;for(let e=0;e<s.length;e++){let t=s[e];let u=rangeToPattern(String(o),String(t),n);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,n)}u.string=l+u.pattern+toQuantifier(u.count);i.push(u);o=t+1;a=u}return i}function filterPatterns(e,t,r,n,s){let i=[];for(let s of e){let{string:e}=s;if(!n&&!contains(t,"string",e)){i.push(r+e)}if(n&&contains(t,"string",e)){i.push(r+e)}}return i}function zip(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);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 n=Math.abs(t.maxLen-String(e).length);let s=r.relaxZeros!==false;switch(n){case 0:return"";case 1:return s?"0?":"0";case 2:return s?"0{0,2}":"00";default:{return s?`0{0,${n}}`:`0{${n}}`}}}toRegexRange.cache={};toRegexRange.clearCache=()=>toRegexRange.cache={};e.exports=toRegexRange},6144:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.resolveWorkspaceRoot=resolveWorkspaceRoot;t.resolveWorkspaceRootAsync=resolveWorkspaceRootAsync;t.getWorkspaceGlobs=getWorkspaceGlobs;t.getWorkspaceGlobsAsync=getWorkspaceGlobsAsync;const s=n(r(9411));const i=n(r(7742));const o=r(2737);const a=r(6455);const u=r(4679);function resolveWorkspaceRoot(e=i.default.cwd(),t={}){return(0,o.searchParentDirs)(e,((e,r)=>{let n=null;if(t.packageWorkspaces!==false){n=(0,a.tryReadFile)(s.default.join(e,"package.json"));const t=n&&(0,u.workspaceGlobsFromPackage)(n);if(t&&(0,u.pathMatchesWorkspaceGlobs)(t,r)){return e}}if(t.pnpmWorkspaces!==false&&n){const t=(0,a.tryReadFile)(s.default.join(e,"pnpm-workspace.yaml"));const n=t&&(0,u.workspaceGlobsFromPnpm)(t);if(n&&(0,u.pathMatchesWorkspaceGlobs)(n,r)){return e}}}))}function resolveWorkspaceRootAsync(e=i.default.cwd(),t={}){return(0,o.searchParentDirsAsync)(e,(async(e,r)=>{let n=null;if(t.packageWorkspaces!==false){n=await(0,a.tryReadFileAsync)(s.default.join(e,"package.json"));const t=n&&(0,u.workspaceGlobsFromPackage)(n);if(t&&(0,u.pathMatchesWorkspaceGlobs)(t,r)){return e}}if(t.pnpmWorkspaces!==false&&n){const t=await(0,a.tryReadFileAsync)(s.default.join(e,"pnpm-workspace.yaml"));const n=t&&(0,u.workspaceGlobsFromPnpm)(t);if(n&&(0,u.pathMatchesWorkspaceGlobs)(n,r)){return e}}}))}function getWorkspaceGlobs(e=i.default.cwd(),t={}){if(t.packageWorkspaces!==false){const t=(0,a.tryReadFile)(s.default.join(e,"package.json"));const r=t&&(0,u.workspaceGlobsFromPackage)(t);if(r){return r}}if(t.pnpmWorkspaces!==false){const t=(0,a.tryReadFile)(s.default.join(e,"pnpm-workspace.yaml"));const r=t&&(0,u.workspaceGlobsFromPnpm)(t);if(r){return r}}return null}async function getWorkspaceGlobsAsync(e=i.default.cwd(),t={}){if(t.packageWorkspaces!==false){const t=await(0,a.tryReadFileAsync)(s.default.join(e,"package.json"));const r=t&&(0,u.workspaceGlobsFromPackage)(t);if(r){return r}}if(t.pnpmWorkspaces!==false){const t=await(0,a.tryReadFileAsync)(s.default.join(e,"pnpm-workspace.yaml"));const r=t&&(0,u.workspaceGlobsFromPnpm)(t);if(r){return r}}return null}},2737:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.searchParentDirs=searchParentDirs;t.searchParentDirsAsync=searchParentDirsAsync;const s=n(r(9411));const i=n(r(7742));function searchParentDirs(e=i.default.cwd(),t){let r=s.default.normalize(e);let n;do{const i=t(r,s.default.relative(r,e));if(i!==undefined){return i}n=r;r=s.default.dirname(r)}while(r!==n);return null}async function searchParentDirsAsync(e,t){let r=s.default.normalize(e);let n;do{const i=await t(r,s.default.relative(r,e));if(i!==undefined){return i}n=r;r=s.default.dirname(r)}while(r!==n);return null}},6455:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.tryReadFile=tryReadFile;t.tryReadFileAsync=tryReadFileAsync;const s=n(r(7561));function tryReadFile(e){try{return s.default.readFileSync(e,{encoding:"utf-8"})}catch(e){if(shouldIgnoreError(e)){return null}throw e}}function tryReadFileAsync(e){return s.default.promises.readFile(e,{encoding:"utf-8"}).catch((e=>{if(shouldIgnoreError(e)){return null}throw e}))}function shouldIgnoreError(e){return"code"in e&&(e.code==="ENOENT"||e.code==="EISDIR")}},4679:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.pathMatchesWorkspaceGlobs=pathMatchesWorkspaceGlobs;t.workspaceGlobsFromPackage=workspaceGlobsFromPackage;t.workspaceGlobsFromPnpm=workspaceGlobsFromPnpm;const s=r(1917);const i=n(r(6228));function pathMatchesWorkspaceGlobs(e,t){return!t||(0,i.default)([t],e).length>0}function workspaceGlobsFromPackage(e){try{const t=JSON.parse(e);if(Array.isArray(t?.workspaces)){return t.workspaces}if(Array.isArray(t?.workspaces?.packages)){return t.workspaces.packages}}catch(e){if(e.name!=="SyntaxError"){throw e}}return null}function workspaceGlobsFromPnpm(e){try{const t=e?(0,s.load)(e):null;if(Array.isArray(t?.packages)){return t.packages}}catch(e){if(e.name!=="YAMLException"){throw e}}return null}},7561:e=>{e.exports=r(7561)},9411:e=>{e.exports=r(9411)},7742:e=>{e.exports=r(7742)},1017:e=>{e.exports=r(1017)},3837:e=>{e.exports=r(3837)}};var n={};function __nccwpck_require2_(e){var r=n[e];if(r!==undefined){return r.exports}var s=n[e]={exports:{}};var i=true;try{t[e].call(s.exports,s,s.exports,__nccwpck_require2_);i=false}finally{if(i)delete n[e]}return s.exports}if(typeof __nccwpck_require2_!=="undefined")__nccwpck_require2_.ab=__dirname+"/";var s=__nccwpck_require2_(6144);e.exports=s})()},1790:(e,t,r)=>{const n=Symbol("SemVer ANY");class Comparator{static get ANY(){return n}constructor(e,t){t=s(t);if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}e=e.trim().split(/\s+/).join(" ");u("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===n){this.value=""}else{this.value=this.operator+this.semver.version}u("comp",this)}parse(e){const t=this.options.loose?i[o.COMPARATORLOOSE]:i[o.COMPARATOR];const r=e.match(t);if(!r){throw new TypeError(`Invalid comparator: ${e}`)}this.operator=r[1]!==undefined?r[1]:"";if(this.operator==="="){this.operator=""}if(!r[2]){this.semver=n}else{this.semver=new l(r[2],this.options.loose)}}toString(){return this.value}test(e){u("Comparator.test",e,this.options.loose);if(this.semver===n||e===n){return true}if(typeof e==="string"){try{e=new l(e,this.options)}catch(e){return false}}return a(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(this.operator===""){if(this.value===""){return true}return new c(e.value,t).test(this.value)}else if(e.operator===""){if(e.value===""){return true}return new c(this.value,t).test(e.semver)}t=s(t);if(t.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")){return false}if(!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))){return false}if(this.operator.startsWith(">")&&e.operator.startsWith(">")){return true}if(this.operator.startsWith("<")&&e.operator.startsWith("<")){return true}if(this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")){return true}if(a(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")){return true}if(a(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")){return true}return false}}e.exports=Comparator;const s=r(6772);const{safeRe:i,t:o}=r(4063);const a=r(8801);const u=r(3619);const l=r(1490);const c=r(5287)},5287:(e,t,r)=>{const n=/\s+/g;class Range{constructor(e,t){t=o(t);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 a){this.raw=e.value;this.set=[[e]];this.formatted=undefined;return this}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e.trim().replace(n," ");this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length));if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${this.raw}`)}if(this.set.length>1){const e=this.set[0];this.set=this.set.filter((e=>!isNullSet(e[0])));if(this.set.length===0){this.set=[e]}else if(this.set.length>1){for(const e of this.set){if(e.length===1&&isAny(e[0])){this.set=[e];break}}}}this.formatted=undefined}get range(){if(this.formatted===undefined){this.formatted="";for(let e=0;e<this.set.length;e++){if(e>0){this.formatted+="||"}const t=this.set[e];for(let e=0;e<t.length;e++){if(e>0){this.formatted+=" "}this.formatted+=t[e].toString().trim()}}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=(this.options.includePrerelease&&g)|(this.options.loose&&m);const r=t+":"+e;const n=i.get(r);if(n){return n}const s=this.options.loose;const o=s?c[f.HYPHENRANGELOOSE]:c[f.HYPHENRANGE];e=e.replace(o,hyphenReplace(this.options.includePrerelease));u("hyphen replace",e);e=e.replace(c[f.COMPARATORTRIM],p);u("comparator trim",e);e=e.replace(c[f.TILDETRIM],h);u("tilde trim",e);e=e.replace(c[f.CARETTRIM],d);u("caret trim",e);let l=e.split(" ").map((e=>parseComparator(e,this.options))).join(" ").split(/\s+/).map((e=>replaceGTE0(e,this.options)));if(s){l=l.filter((e=>{u("loose invalid filter",e,this.options);return!!e.match(c[f.COMPARATORLOOSE])}))}u("range list",l);const D=new Map;const y=l.map((e=>new a(e,this.options)));for(const e of y){if(isNullSet(e)){return[e]}D.set(e.value,e)}if(D.size>1&&D.has("")){D.delete("")}const A=[...D.values()];i.set(r,A);return A}intersects(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((r=>isSatisfiable(r,t)&&e.set.some((e=>isSatisfiable(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}test(e){if(!e){return false}if(typeof e==="string"){try{e=new l(e,this.options)}catch(e){return false}}for(let t=0;t<this.set.length;t++){if(testSet(this.set[t],e,this.options)){return true}}return false}}e.exports=Range;const s=r(1191);const i=new s;const o=r(6772);const a=r(1790);const u=r(3619);const l=r(1490);const{safeRe:c,t:f,comparatorTrimReplace:p,tildeTrimReplace:h,caretTrimReplace:d}=r(4063);const{FLAG_INCLUDE_PRERELEASE:g,FLAG_LOOSE:m}=r(9073);const isNullSet=e=>e.value==="<0.0.0-0";const isAny=e=>e.value==="";const isSatisfiable=(e,t)=>{let r=true;const n=e.slice();let s=n.pop();while(r&&n.length){r=n.every((e=>s.intersects(e,t)));s=n.pop()}return r};const parseComparator=(e,t)=>{u("comp",e,t);e=replaceCarets(e,t);u("caret",e);e=replaceTildes(e,t);u("tildes",e);e=replaceXRanges(e,t);u("xrange",e);e=replaceStars(e,t);u("stars",e);return e};const isX=e=>!e||e.toLowerCase()==="x"||e==="*";const replaceTildes=(e,t)=>e.trim().split(/\s+/).map((e=>replaceTilde(e,t))).join(" ");const replaceTilde=(e,t)=>{const r=t.loose?c[f.TILDELOOSE]:c[f.TILDE];return e.replace(r,((t,r,n,s,i)=>{u("tilde",e,t,r,n,s,i);let o;if(isX(r)){o=""}else if(isX(n)){o=`>=${r}.0.0 <${+r+1}.0.0-0`}else if(isX(s)){o=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`}else if(i){u("replaceTilde pr",i);o=`>=${r}.${n}.${s}-${i} <${r}.${+n+1}.0-0`}else{o=`>=${r}.${n}.${s} <${r}.${+n+1}.0-0`}u("tilde return",o);return o}))};const replaceCarets=(e,t)=>e.trim().split(/\s+/).map((e=>replaceCaret(e,t))).join(" ");const replaceCaret=(e,t)=>{u("caret",e,t);const r=t.loose?c[f.CARETLOOSE]:c[f.CARET];const n=t.includePrerelease?"-0":"";return e.replace(r,((t,r,s,i,o)=>{u("caret",e,t,r,s,i,o);let a;if(isX(r)){a=""}else if(isX(s)){a=`>=${r}.0.0${n} <${+r+1}.0.0-0`}else if(isX(i)){if(r==="0"){a=`>=${r}.${s}.0${n} <${r}.${+s+1}.0-0`}else{a=`>=${r}.${s}.0${n} <${+r+1}.0.0-0`}}else if(o){u("replaceCaret pr",o);if(r==="0"){if(s==="0"){a=`>=${r}.${s}.${i}-${o} <${r}.${s}.${+i+1}-0`}else{a=`>=${r}.${s}.${i}-${o} <${r}.${+s+1}.0-0`}}else{a=`>=${r}.${s}.${i}-${o} <${+r+1}.0.0-0`}}else{u("no pr");if(r==="0"){if(s==="0"){a=`>=${r}.${s}.${i}${n} <${r}.${s}.${+i+1}-0`}else{a=`>=${r}.${s}.${i}${n} <${r}.${+s+1}.0-0`}}else{a=`>=${r}.${s}.${i} <${+r+1}.0.0-0`}}u("caret return",a);return a}))};const replaceXRanges=(e,t)=>{u("replaceXRanges",e,t);return e.split(/\s+/).map((e=>replaceXRange(e,t))).join(" ")};const replaceXRange=(e,t)=>{e=e.trim();const r=t.loose?c[f.XRANGELOOSE]:c[f.XRANGE];return e.replace(r,((r,n,s,i,o,a)=>{u("xRange",e,r,n,s,i,o,a);const l=isX(s);const c=l||isX(i);const f=c||isX(o);const p=f;if(n==="="&&p){n=""}a=t.includePrerelease?"-0":"";if(l){if(n===">"||n==="<"){r="<0.0.0-0"}else{r="*"}}else if(n&&p){if(c){i=0}o=0;if(n===">"){n=">=";if(c){s=+s+1;i=0;o=0}else{i=+i+1;o=0}}else if(n==="<="){n="<";if(c){s=+s+1}else{i=+i+1}}if(n==="<"){a="-0"}r=`${n+s}.${i}.${o}${a}`}else if(c){r=`>=${s}.0.0${a} <${+s+1}.0.0-0`}else if(f){r=`>=${s}.${i}.0${a} <${s}.${+i+1}.0-0`}u("xRange return",r);return r}))};const replaceStars=(e,t)=>{u("replaceStars",e,t);return e.trim().replace(c[f.STAR],"")};const replaceGTE0=(e,t)=>{u("replaceGTE0",e,t);return e.trim().replace(c[t.includePrerelease?f.GTE0PRE:f.GTE0],"")};const hyphenReplace=e=>(t,r,n,s,i,o,a,u,l,c,f,p)=>{if(isX(n)){r=""}else if(isX(s)){r=`>=${n}.0.0${e?"-0":""}`}else if(isX(i)){r=`>=${n}.${s}.0${e?"-0":""}`}else if(o){r=`>=${r}`}else{r=`>=${r}${e?"-0":""}`}if(isX(l)){u=""}else if(isX(c)){u=`<${+l+1}.0.0-0`}else if(isX(f)){u=`<${l}.${+c+1}.0-0`}else if(p){u=`<=${l}.${c}.${f}-${p}`}else if(e){u=`<${l}.${c}.${+f+1}-0`}else{u=`<=${u}`}return`${r} ${u}`.trim()};const testSet=(e,t,r)=>{for(let r=0;r<e.length;r++){if(!e[r].test(t)){return false}}if(t.prerelease.length&&!r.includePrerelease){for(let r=0;r<e.length;r++){u(e[r].semver);if(e[r].semver===a.ANY){continue}if(e[r].semver.prerelease.length>0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch){return true}}}return false}return true}},1490:(e,t,r)=>{const n=r(3619);const{MAX_LENGTH:s,MAX_SAFE_INTEGER:i}=r(9073);const{safeRe:o,t:a}=r(4063);const u=r(6772);const{compareIdentifiers:l}=r(8587);class SemVer{constructor(e,t){t=u(t);if(e instanceof SemVer){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`)}if(e.length>s){throw new TypeError(`version is longer than ${s} characters`)}n("SemVer",e,t);this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?o[a.LOOSE]:o[a.FULL]);if(!r){throw new TypeError(`Invalid Version: ${e}`)}this.raw=e;this.major=+r[1];this.minor=+r[2];this.patch=+r[3];if(this.major>i||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>i||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>i||this.patch<0){throw new TypeError("Invalid patch version")}if(!r[4]){this.prerelease=[]}else{this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<i){return t}}return e}))}this.build=r[5]?r[5].split("."):[];this.format()}format(){this.version=`${this.major}.${this.minor}.${this.patch}`;if(this.prerelease.length){this.version+=`-${this.prerelease.join(".")}`}return this.version}toString(){return this.version}compare(e){n("SemVer.compare",this.version,this.options,e);if(!(e instanceof SemVer)){if(typeof e==="string"&&e===this.version){return 0}e=new SemVer(e,this.options)}if(e.version===this.version){return 0}return this.compareMain(e)||this.comparePre(e)}compareMain(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}return l(this.major,e.major)||l(this.minor,e.minor)||l(this.patch,e.patch)}comparePre(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}let t=0;do{const r=this.prerelease[t];const s=e.prerelease[t];n("prerelease compare",t,r,s);if(r===undefined&&s===undefined){return 0}else if(s===undefined){return 1}else if(r===undefined){return-1}else if(r===s){continue}else{return l(r,s)}}while(++t)}compareBuild(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}let t=0;do{const r=this.build[t];const s=e.build[t];n("build compare",t,r,s);if(r===undefined&&s===undefined){return 0}else if(s===undefined){return 1}else if(r===undefined){return-1}else if(r===s){continue}else{return l(r,s)}}while(++t)}inc(e,t,r){switch(e){case"premajor":this.prerelease.length=0;this.patch=0;this.minor=0;this.major++;this.inc("pre",t,r);break;case"preminor":this.prerelease.length=0;this.patch=0;this.minor++;this.inc("pre",t,r);break;case"prepatch":this.prerelease.length=0;this.inc("patch",t,r);this.inc("pre",t,r);break;case"prerelease":if(this.prerelease.length===0){this.inc("patch",t,r)}this.inc("pre",t,r);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":{const e=Number(r)?1:0;if(!t&&r===false){throw new Error("invalid increment argument: identifier is empty")}if(this.prerelease.length===0){this.prerelease=[e]}else{let n=this.prerelease.length;while(--n>=0){if(typeof this.prerelease[n]==="number"){this.prerelease[n]++;n=-2}}if(n===-1){if(t===this.prerelease.join(".")&&r===false){throw new Error("invalid increment argument: identifier already exists")}this.prerelease.push(e)}}if(t){let n=[t,e];if(r===false){n=[t]}if(l(this.prerelease[0],t)===0){if(isNaN(this.prerelease[1])){this.prerelease=n}}else{this.prerelease=n}}break}default:throw new Error(`invalid increment argument: ${e}`)}this.raw=this.format();if(this.build.length){this.raw+=`+${this.build.join(".")}`}return this}}e.exports=SemVer},7876:(e,t,r)=>{const n=r(8257);const clean=(e,t)=>{const r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};e.exports=clean},8801:(e,t,r)=>{const n=r(1561);const s=r(8671);const i=r(3473);const o=r(2967);const a=r(6762);const u=r(973);const cmp=(e,t,r,l)=>{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 n(e,r,l);case"!=":return s(e,r,l);case">":return i(e,r,l);case">=":return o(e,r,l);case"<":return a(e,r,l);case"<=":return u(e,r,l);default:throw new TypeError(`Invalid operator: ${t}`)}};e.exports=cmp},6899:(e,t,r)=>{const n=r(1490);const s=r(8257);const{safeRe:i,t:o}=r(4063);const coerce=(e,t)=>{if(e instanceof n){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};let r=null;if(!t.rtl){r=e.match(t.includePrerelease?i[o.COERCEFULL]:i[o.COERCE])}else{const n=t.includePrerelease?i[o.COERCERTLFULL]:i[o.COERCERTL];let s;while((s=n.exec(e))&&(!r||r.index+r[0].length!==e.length)){if(!r||s.index+s[0].length!==r.index+r[0].length){r=s}n.lastIndex=s.index+s[1].length+s[2].length}n.lastIndex=-1}if(r===null){return null}const a=r[2];const u=r[3]||"0";const l=r[4]||"0";const c=t.includePrerelease&&r[5]?`-${r[5]}`:"";const f=t.includePrerelease&&r[6]?`+${r[6]}`:"";return s(`${a}.${u}.${l}${c}${f}`,t)};e.exports=coerce},7375:(e,t,r)=>{const n=r(1490);const compareBuild=(e,t,r)=>{const s=new n(e,r);const i=new n(t,r);return s.compare(i)||s.compareBuild(i)};e.exports=compareBuild},8186:(e,t,r)=>{const n=r(4905);const compareLoose=(e,t)=>n(e,t,true);e.exports=compareLoose},4905:(e,t,r)=>{const n=r(1490);const compare=(e,t,r)=>new n(e,r).compare(new n(t,r));e.exports=compare},3272:(e,t,r)=>{const n=r(8257);const diff=(e,t)=>{const r=n(e,null,true);const s=n(t,null,true);const i=r.compare(s);if(i===0){return null}const o=i>0;const a=o?r:s;const u=o?s:r;const l=!!a.prerelease.length;const c=!!u.prerelease.length;if(c&&!l){if(!u.patch&&!u.minor){return"major"}if(a.patch){return"patch"}if(a.minor){return"minor"}return"major"}const f=l?"pre":"";if(r.major!==s.major){return f+"major"}if(r.minor!==s.minor){return f+"minor"}if(r.patch!==s.patch){return f+"patch"}return"prerelease"};e.exports=diff},1561:(e,t,r)=>{const n=r(4905);const eq=(e,t,r)=>n(e,t,r)===0;e.exports=eq},3473:(e,t,r)=>{const n=r(4905);const gt=(e,t,r)=>n(e,t,r)>0;e.exports=gt},2967:(e,t,r)=>{const n=r(4905);const gte=(e,t,r)=>n(e,t,r)>=0;e.exports=gte},5009:(e,t,r)=>{const n=r(1490);const inc=(e,t,r,s,i)=>{if(typeof r==="string"){i=s;s=r;r=undefined}try{return new n(e instanceof n?e.version:e,r).inc(t,s,i).version}catch(e){return null}};e.exports=inc},6762:(e,t,r)=>{const n=r(4905);const lt=(e,t,r)=>n(e,t,r)<0;e.exports=lt},973:(e,t,r)=>{const n=r(4905);const lte=(e,t,r)=>n(e,t,r)<=0;e.exports=lte},9799:(e,t,r)=>{const n=r(1490);const major=(e,t)=>new n(e,t).major;e.exports=major},7600:(e,t,r)=>{const n=r(1490);const minor=(e,t)=>new n(e,t).minor;e.exports=minor},8671:(e,t,r)=>{const n=r(4905);const neq=(e,t,r)=>n(e,t,r)!==0;e.exports=neq},8257:(e,t,r)=>{const n=r(1490);const parse=(e,t,r=false)=>{if(e instanceof n){return e}try{return new n(e,t)}catch(e){if(!r){return null}throw e}};e.exports=parse},2112:(e,t,r)=>{const n=r(1490);const patch=(e,t)=>new n(e,t).patch;e.exports=patch},5094:(e,t,r)=>{const n=r(8257);const prerelease=(e,t)=>{const r=n(e,t);return r&&r.prerelease.length?r.prerelease:null};e.exports=prerelease},6110:(e,t,r)=>{const n=r(4905);const rcompare=(e,t,r)=>n(t,e,r);e.exports=rcompare},4550:(e,t,r)=>{const n=r(7375);const rsort=(e,t)=>e.sort(((e,r)=>n(r,e,t)));e.exports=rsort},1495:(e,t,r)=>{const n=r(5287);const satisfies=(e,t,r)=>{try{t=new n(t,r)}catch(e){return false}return t.test(e)};e.exports=satisfies},6034:(e,t,r)=>{const n=r(7375);const sort=(e,t)=>e.sort(((e,r)=>n(e,r,t)));e.exports=sort},3863:(e,t,r)=>{const n=r(8257);const valid=(e,t)=>{const r=n(e,t);return r?r.version:null};e.exports=valid},7546:(e,t,r)=>{const n=r(4063);const s=r(9073);const i=r(1490);const o=r(8587);const a=r(8257);const u=r(3863);const l=r(7876);const c=r(5009);const f=r(3272);const p=r(9799);const h=r(7600);const d=r(2112);const g=r(5094);const m=r(4905);const D=r(6110);const y=r(8186);const A=r(7375);const E=r(6034);const C=r(4550);const v=r(3473);const b=r(6762);const w=r(1561);const F=r(8671);const _=r(2967);const S=r(973);const x=r(8801);const O=r(6899);const k=r(1790);const R=r(5287);const $=r(1495);const B=r(382);const I=r(1706);const L=r(7095);const P=r(507);const T=r(8029);const N=r(7714);const M=r(9104);const j=r(5072);const H=r(9057);const G=r(9550);const U=r(8693);e.exports={parse:a,valid:u,clean:l,inc:c,diff:f,major:p,minor:h,patch:d,prerelease:g,compare:m,rcompare:D,compareLoose:y,compareBuild:A,sort:E,rsort:C,gt:v,lt:b,eq:w,neq:F,gte:_,lte:S,cmp:x,coerce:O,Comparator:k,Range:R,satisfies:$,toComparators:B,maxSatisfying:I,minSatisfying:L,minVersion:P,validRange:T,outside:N,gtr:M,ltr:j,intersects:H,simplifyRange:G,subset:U,SemVer:i,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:s.SEMVER_SPEC_VERSION,RELEASE_TYPES:s.RELEASE_TYPES,compareIdentifiers:o.compareIdentifiers,rcompareIdentifiers:o.rcompareIdentifiers}},9073:e=>{const t="2.0.0";const r=256;const n=Number.MAX_SAFE_INTEGER||9007199254740991;const s=16;const i=r-6;const o=["major","premajor","minor","preminor","patch","prepatch","prerelease"];e.exports={MAX_LENGTH:r,MAX_SAFE_COMPONENT_LENGTH:s,MAX_SAFE_BUILD_LENGTH:i,MAX_SAFE_INTEGER:n,RELEASE_TYPES:o,SEMVER_SPEC_VERSION:t,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},3619:e=>{const t=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},8587:e=>{const t=/^[0-9]+$/;const compareIdentifiers=(e,r)=>{const n=t.test(e);const s=t.test(r);if(n&&s){e=+e;r=+r}return e===r?0:n&&!s?-1:s&&!n?1:e<r?-1:1};const rcompareIdentifiers=(e,t)=>compareIdentifiers(t,e);e.exports={compareIdentifiers:compareIdentifiers,rcompareIdentifiers:rcompareIdentifiers}},1191:e=>{class LRUCache{constructor(){this.max=1e3;this.map=new Map}get(e){const t=this.map.get(e);if(t===undefined){return undefined}else{this.map.delete(e);this.map.set(e,t);return t}}delete(e){return this.map.delete(e)}set(e,t){const r=this.delete(e);if(!r&&t!==undefined){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}e.exports=LRUCache},6772:e=>{const t=Object.freeze({loose:true});const r=Object.freeze({});const parseOptions=e=>{if(!e){return r}if(typeof e!=="object"){return t}return e};e.exports=parseOptions},4063:(e,t,r)=>{const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:s,MAX_LENGTH:i}=r(9073);const o=r(3619);t=e.exports={};const a=t.re=[];const u=t.safeRe=[];const l=t.src=[];const c=t.t={};let f=0;const p="[a-zA-Z0-9-]";const h=[["\\s",1],["\\d",i],[p,s]];const makeSafeRegex=e=>{for(const[t,r]of h){e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`)}return e};const createToken=(e,t,r)=>{const n=makeSafeRegex(t);const s=f++;o(e,s,t);c[e]=s;l[s]=t;a[s]=new RegExp(t,r?"g":undefined);u[s]=new RegExp(n,r?"g":undefined)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","\\d+");createToken("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`);createToken("MAINVERSION",`(${l[c.NUMERICIDENTIFIER]})\\.`+`(${l[c.NUMERICIDENTIFIER]})\\.`+`(${l[c.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${l[c.NUMERICIDENTIFIERLOOSE]})\\.`+`(${l[c.NUMERICIDENTIFIERLOOSE]})\\.`+`(${l[c.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${l[c.NUMERICIDENTIFIER]}|${l[c.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${l[c.NUMERICIDENTIFIERLOOSE]}|${l[c.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASE",`(?:-(${l[c.PRERELEASEIDENTIFIER]}(?:\\.${l[c.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${l[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[c.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER",`${p}+`);createToken("BUILD",`(?:\\+(${l[c.BUILDIDENTIFIER]}(?:\\.${l[c.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${l[c.MAINVERSION]}${l[c.PRERELEASE]}?${l[c.BUILD]}?`);createToken("FULL",`^${l[c.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${l[c.MAINVERSIONLOOSE]}${l[c.PRERELEASELOOSE]}?${l[c.BUILD]}?`);createToken("LOOSE",`^${l[c.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${l[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${l[c.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${l[c.XRANGEIDENTIFIER]})`+`(?:\\.(${l[c.XRANGEIDENTIFIER]})`+`(?:\\.(${l[c.XRANGEIDENTIFIER]})`+`(?:${l[c.PRERELEASE]})?${l[c.BUILD]}?`+`)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${l[c.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})`+`(?:${l[c.PRERELEASELOOSE]})?${l[c.BUILD]}?`+`)?)?`);createToken("XRANGE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAINLOOSE]}$`);createToken("COERCEPLAIN",`${"(^|[^\\d])"+"(\\d{1,"}${n}})`+`(?:\\.(\\d{1,${n}}))?`+`(?:\\.(\\d{1,${n}}))?`);createToken("COERCE",`${l[c.COERCEPLAIN]}(?:$|[^\\d])`);createToken("COERCEFULL",l[c.COERCEPLAIN]+`(?:${l[c.PRERELEASE]})?`+`(?:${l[c.BUILD]})?`+`(?:$|[^\\d])`);createToken("COERCERTL",l[c.COERCE],true);createToken("COERCERTLFULL",l[c.COERCEFULL],true);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${l[c.LONETILDE]}\\s+`,true);t.tildeTrimReplace="$1~";createToken("TILDE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${l[c.LONECARET]}\\s+`,true);t.caretTrimReplace="$1^";createToken("CARET",`^${l[c.LONECARET]}${l[c.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${l[c.LONECARET]}${l[c.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${l[c.GTLT]}\\s*(${l[c.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]}|${l[c.XRANGEPLAIN]})`,true);t.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${l[c.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${l[c.XRANGEPLAIN]})`+`\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${l[c.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${l[c.XRANGEPLAINLOOSE]})`+`\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},9104:(e,t,r)=>{const n=r(7714);const gtr=(e,t,r)=>n(e,t,">",r);e.exports=gtr},9057:(e,t,r)=>{const n=r(5287);const intersects=(e,t,r)=>{e=new n(e,r);t=new n(t,r);return e.intersects(t,r)};e.exports=intersects},5072:(e,t,r)=>{const n=r(7714);const ltr=(e,t,r)=>n(e,t,"<",r);e.exports=ltr},1706:(e,t,r)=>{const n=r(1490);const s=r(5287);const maxSatisfying=(e,t,r)=>{let i=null;let o=null;let a=null;try{a=new s(t,r)}catch(e){return null}e.forEach((e=>{if(a.test(e)){if(!i||o.compare(e)===-1){i=e;o=new n(i,r)}}}));return i};e.exports=maxSatisfying},7095:(e,t,r)=>{const n=r(1490);const s=r(5287);const minSatisfying=(e,t,r)=>{let i=null;let o=null;let a=null;try{a=new s(t,r)}catch(e){return null}e.forEach((e=>{if(a.test(e)){if(!i||o.compare(e)===1){i=e;o=new n(i,r)}}}));return i};e.exports=minSatisfying},507:(e,t,r)=>{const n=r(1490);const s=r(5287);const i=r(3473);const minVersion=(e,t)=>{e=new s(e,t);let r=new n("0.0.0");if(e.test(r)){return r}r=new n("0.0.0-0");if(e.test(r)){return r}r=null;for(let t=0;t<e.set.length;++t){const s=e.set[t];let o=null;s.forEach((e=>{const t=new n(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(!o||i(t,o)){o=t}break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}));if(o&&(!r||i(r,o))){r=o}}if(r&&e.test(r)){return r}return null};e.exports=minVersion},7714:(e,t,r)=>{const n=r(1490);const s=r(1790);const{ANY:i}=s;const o=r(5287);const a=r(1495);const u=r(3473);const l=r(6762);const c=r(973);const f=r(2967);const outside=(e,t,r,p)=>{e=new n(e,p);t=new o(t,p);let h,d,g,m,D;switch(r){case">":h=u;d=c;g=l;m=">";D=">=";break;case"<":h=l;d=f;g=u;m="<";D="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(a(e,t,p)){return false}for(let r=0;r<t.set.length;++r){const n=t.set[r];let o=null;let a=null;n.forEach((e=>{if(e.semver===i){e=new s(">=0.0.0")}o=o||e;a=a||e;if(h(e.semver,o.semver,p)){o=e}else if(g(e.semver,a.semver,p)){a=e}}));if(o.operator===m||o.operator===D){return false}if((!a.operator||a.operator===m)&&d(e,a.semver)){return false}else if(a.operator===D&&g(e,a.semver)){return false}}return true};e.exports=outside},9550:(e,t,r)=>{const n=r(1495);const s=r(4905);e.exports=(e,t,r)=>{const i=[];let o=null;let a=null;const u=e.sort(((e,t)=>s(e,t,r)));for(const e of u){const s=n(e,t,r);if(s){a=e;if(!o){o=e}}else{if(a){i.push([o,a])}a=null;o=null}}if(o){i.push([o,null])}const l=[];for(const[e,t]of i){if(e===t){l.push(e)}else if(!t&&e===u[0]){l.push("*")}else if(!t){l.push(`>=${e}`)}else if(e===u[0]){l.push(`<=${t}`)}else{l.push(`${e} - ${t}`)}}const c=l.join(" || ");const f=typeof t.raw==="string"?t.raw:String(t);return c.length<f.length?c:t}},8693:(e,t,r)=>{const n=r(5287);const s=r(1790);const{ANY:i}=s;const o=r(1495);const a=r(4905);const subset=(e,t,r={})=>{if(e===t){return true}e=new n(e,r);t=new n(t,r);let s=false;e:for(const n of e.set){for(const e of t.set){const t=simpleSubset(n,e,r);s=s||t!==null;if(t){continue e}}if(s){return false}}return true};const u=[new s(">=0.0.0-0")];const l=[new s(">=0.0.0")];const simpleSubset=(e,t,r)=>{if(e===t){return true}if(e.length===1&&e[0].semver===i){if(t.length===1&&t[0].semver===i){return true}else if(r.includePrerelease){e=u}else{e=l}}if(t.length===1&&t[0].semver===i){if(r.includePrerelease){return true}else{t=l}}const n=new Set;let s,c;for(const t of e){if(t.operator===">"||t.operator===">="){s=higherGT(s,t,r)}else if(t.operator==="<"||t.operator==="<="){c=lowerLT(c,t,r)}else{n.add(t.semver)}}if(n.size>1){return null}let f;if(s&&c){f=a(s.semver,c.semver,r);if(f>0){return null}else if(f===0&&(s.operator!==">="||c.operator!=="<=")){return null}}for(const e of n){if(s&&!o(e,String(s),r)){return null}if(c&&!o(e,String(c),r)){return null}for(const n of t){if(!o(e,String(n),r)){return false}}return true}let p,h;let d,g;let m=c&&!r.includePrerelease&&c.semver.prerelease.length?c.semver:false;let D=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:false;if(m&&m.prerelease.length===1&&c.operator==="<"&&m.prerelease[0]===0){m=false}for(const e of t){g=g||e.operator===">"||e.operator===">=";d=d||e.operator==="<"||e.operator==="<=";if(s){if(D){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===D.major&&e.semver.minor===D.minor&&e.semver.patch===D.patch){D=false}}if(e.operator===">"||e.operator===">="){p=higherGT(s,e,r);if(p===e&&p!==s){return false}}else if(s.operator===">="&&!o(s.semver,String(e),r)){return false}}if(c){if(m){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===m.major&&e.semver.minor===m.minor&&e.semver.patch===m.patch){m=false}}if(e.operator==="<"||e.operator==="<="){h=lowerLT(c,e,r);if(h===e&&h!==c){return false}}else if(c.operator==="<="&&!o(c.semver,String(e),r)){return false}}if(!e.operator&&(c||s)&&f!==0){return false}}if(s&&d&&!c&&f!==0){return false}if(c&&g&&!s&&f!==0){return false}if(D||m){return false}return true};const higherGT=(e,t,r)=>{if(!e){return t}const n=a(e.semver,t.semver,r);return n>0?e:n<0?t:t.operator===">"&&e.operator===">="?t:e};const lowerLT=(e,t,r)=>{if(!e){return t}const n=a(e.semver,t.semver,r);return n<0?e:n>0?t:t.operator==="<"&&e.operator==="<="?t:e};e.exports=subset},382:(e,t,r)=>{const n=r(5287);const toComparators=(e,t)=>new n(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));e.exports=toComparators},8029:(e,t,r)=>{const n=r(5287);const validRange=(e,t)=>{try{return new n(e,t).range||"*"}catch(e){return null}};e.exports=validRange},4970:(e,t,r)=>{"use strict";const n=r(1504);e.exports=(e="")=>{const t=e.match(n);if(!t){return null}const[r,s]=t[0].replace(/#! ?/,"").split(" ");const i=r.split("/").pop();if(i==="env"){return s}return s?`${i} ${s}`:i}},1504:e=>{"use strict";e.exports=/^#!(.*)/},395:(e,t,r)=>{"use strict";const n=r(2037);const s=r(6224);const i=r(6738);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=n.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","GITHUB_ACTIONS","BUILDKITE"].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(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,s.isatty(1))),stderr:translateLevel(supportsColor(true,s.isatty(2)))}},8593:(e,t,r)=>{"use strict";const{builtinModules:n}=r(8188);var s=new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$");var i=["node_modules","favicon.ico"];function validate(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")}}));if(n.includes(e.toLowerCase())){t.push(e+" 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)}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};e.exports=validate},6282:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(){var ownKeys=function(e){ownKeys=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[t.length]=r;return t};return ownKeys(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=ownKeys(e),i=0;i<r.length;i++)if(r[i]!=="default")n(t,e,r[i]);s(t,e);return t}}();var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const a=r(6779);const u=o(r(5130));const l=o(r(7561));const c=o(r(9411));const f=i(r(1486));const p=r(2034);const h={badJsonDefault:undefined,jsonParseErrorDefault:undefined,cantReadFileDefault:undefined,ensureDir:false,default:undefined,json5:false,space:2,addNewLineAtEOF:true};class JsonFile{file;options;static read=read;static readAsync=readAsync;static parseJsonString=parseJsonString;static write=write;static writeAsync=writeAsync;static get=getSync;static getAsync=getAsync;static set=setSync;static setAsync=setAsync;static merge=merge;static mergeAsync=mergeAsync;static deleteKey=deleteKey;static deleteKeyAsync=deleteKeyAsync;static deleteKeys=deleteKeys;static deleteKeysAsync=deleteKeysAsync;static rewrite=rewrite;static rewriteAsync=rewriteAsync;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))}write(e,t){return write(this.file,e,this._getOptions(t))}async writeAsync(e,t){return writeAsync(this.file,e,this._getOptions(t))}parseJsonString(e,t){return parseJsonString(e,t)}get(e,t,r){return getSync(this.file,e,t,this._getOptions(r))}async getAsync(e,t,r){return getAsync(this.file,e,t,this._getOptions(r))}set(e,t,r){return setSync(this.file,e,t,this._getOptions(r))}async setAsync(e,t,r){return setAsync(this.file,e,t,this._getOptions(r))}async merge(e,t){return merge(this.file,e,this._getOptions(t))}async mergeAsync(e,t){return mergeAsync(this.file,e,this._getOptions(t))}deleteKey(e,t){return deleteKey(this.file,e,this._getOptions(t))}async deleteKeyAsync(e,t){return deleteKeyAsync(this.file,e,this._getOptions(t))}deleteKeys(e,t){return deleteKeys(this.file,e,this._getOptions(t))}async deleteKeysAsync(e,t){return deleteKeysAsync(this.file,e,this._getOptions(t))}rewrite(e){return rewrite(this.file,this._getOptions(e))}async rewriteAsync(e){return rewriteAsync(this.file,this._getOptions(e))}_getOptions(e){return{...this.options,...e}}}t["default"]=JsonFile;function read(e,t){let r;try{r=l.default.readFileSync(e,"utf8")}catch(n){assertEmptyJsonString(r,e);const s=cantReadFileDefault(t);if(s===undefined){throw new f.default(`Can't read JSON file: ${e}`,n,n.code,e)}else{return s}}return parseJsonString(r,t,e)}async function readAsync(e,t){let r;try{r=await l.default.promises.readFile(e,"utf8")}catch(n){assertEmptyJsonString(r,e);const s=cantReadFileDefault(t);if(s===undefined){throw new f.default(`Can't read JSON file: ${e}`,n,n.code)}else{return s}}return parseJsonString(r,t)}function parseJsonString(e,t,r){assertEmptyJsonString(e,r);try{if(_getOption(t,"json5")){return u.default.parse(e)}else{return JSON.parse(e)}}catch(n){const s=jsonParseErrorDefault(t);if(s===undefined){const t=locationFromSyntaxError(n,e);if(t){const r=(0,a.codeFrameColumns)(e,{start:t});n.codeFrame=r;n.message+=`\n${r}`}throw new f.default(`Error parsing JSON: ${e}`,n,"EJSONPARSE",r)}else{return s}}}function getSync(e,t,r,n){const s=read(e,n);if(t in s){return s[t]}if(r===undefined){throw new f.default(`No value at key path "${String(t)}" in JSON object from: ${e}`)}return r}async function getAsync(e,t,r,n){const s=await readAsync(e,n);if(t in s){return s[t]}if(r===undefined){throw new f.default(`No value at key path "${String(t)}" in JSON object from: ${e}`)}return r}function write(e,t,r){if(r?.ensureDir){l.default.mkdirSync(c.default.dirname(e),{recursive:true})}const n=_getOption(r,"space");const s=_getOption(r,"json5");const i=_getOption(r,"addNewLineAtEOF");let o;try{if(s){o=u.default.stringify(t,null,n)}else{o=JSON.stringify(t,null,n)}}catch(t){throw new f.default(`Couldn't JSON.stringify object for file: ${e}`,t)}const a=i?`${o}\n`:o;(0,p.writeFileAtomicSync)(e,a);return t}async function writeAsync(e,t,r){if(r?.ensureDir){await l.default.promises.mkdir(c.default.dirname(e),{recursive:true})}const n=_getOption(r,"space");const s=_getOption(r,"json5");const i=_getOption(r,"addNewLineAtEOF");let o;try{if(s){o=u.default.stringify(t,null,n)}else{o=JSON.stringify(t,null,n)}}catch(t){throw new f.default(`Couldn't JSON.stringify object for file: ${e}`,t)}const a=i?`${o}\n`:o;await(0,p.writeFileAtomic)(e,a);return t}function setSync(e,t,r,n){const s=read(e,n);return write(e,{...s,[t]:r},n)}async function setAsync(e,t,r,n){const s=await readAsync(e,n);return writeAsync(e,{...s,[t]:r},n)}async function mergeAsync(e,t,r){const n=await readAsync(e,r);if(Array.isArray(t)){Object.assign(n,...t)}else{Object.assign(n,t)}return writeAsync(e,n,r)}function merge(e,t,r){const n=read(e,r);if(Array.isArray(t)){Object.assign(n,...t)}else{Object.assign(n,t)}return write(e,n,r)}async function deleteKeyAsync(e,t,r){return deleteKeysAsync(e,[t],r)}function deleteKey(e,t,r){return deleteKeys(e,[t],r)}async function deleteKeysAsync(e,t,r){const n=await readAsync(e,r);let s=false;for(let e=0;e<t.length;e++){const r=t[e];if(n.hasOwnProperty(r)){delete n[r];s=true}}if(s){return writeAsync(e,n,r)}return n}function deleteKeys(e,t,r){const n=read(e,r);let s=false;for(let e=0;e<t.length;e++){const r=t[e];if(n.hasOwnProperty(r)){delete n[r];s=true}}if(s){return write(e,n,r)}return n}async function rewriteAsync(e,t){const r=await readAsync(e,t);return writeAsync(e,r,t)}function rewrite(e,t){return write(e,read(e,t),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 h[t]}function locationFromSyntaxError(e,t){if("lineNumber"in e&&"columnNumber"in e){return{line:e.lineNumber,column:e.columnNumber}}const r=/at position (\d+)/.exec(e.message);if(r){const e=parseInt(r[1],10);const n=t.slice(0,e+1).split("\n");return{line:n.length,column:n[n.length-1].length}}return null}function assertEmptyJsonString(e,t){if(e?.trim()===""){throw new f.EmptyJsonFileError(t)}}},1486:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.EmptyJsonFileError=void 0;class JsonFileError extends Error{cause;code;fileName;isJsonFileError;constructor(e,t,r,n){let s=e;if(n){s+=`\n${t?"├":"└"}─ File: ${n}`}if(t){s+=`\n└─ Cause: ${t.name}: ${t.message}`}super(s);this.name=this.constructor.name;this.cause=t;this.code=r;this.fileName=n;this.isJsonFileError=true}}t["default"]=JsonFileError;class EmptyJsonFileError extends JsonFileError{constructor(e){super(`Cannot parse an empty JSON string`,undefined,"EJSONEMPTY",e)}}t.EmptyJsonFileError=EmptyJsonFileError},2034:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(){var ownKeys=function(e){ownKeys=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[t.length]=r;return t};return ownKeys(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=ownKeys(e),i=0;i<r.length;i++)if(r[i]!=="default")n(t,e,r[i]);s(t,e);return t}}();Object.defineProperty(t,"__esModule",{value:true});t.writeFileAtomicSync=writeFileAtomicSync;t.writeFileAtomic=writeFileAtomic;const o=r(6005);const a=i(r(7561));function getTarget(e,t){const r=(0,o.createHash)("sha256").update(t).digest("base64url");return`${e}.${r}`}function writeFileAtomicSync(e,t){const r=getTarget(e,t);a.writeFileSync(r,t);a.renameSync(r,e)}async function writeFileAtomic(e,t){const r=getTarget(e,t);await a.promises.writeFile(r,t);await a.promises.rename(r,e)}},6779:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.codeFrameColumns=codeFrameColumns;t["default"]=_default;var n=_interopRequireWildcard(r(932));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 n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e){if(Object.prototype.hasOwnProperty.call(e,s)){var i=n?Object.getOwnPropertyDescriptor(e,s):null;if(i&&(i.get||i.set)){Object.defineProperty(r,s,i)}else{r[s]=e[s]}}}r.default=e;if(t){t.set(e,r)}return r}let s=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 n=Object.assign({column:0,line:-1},e.start);const s=Object.assign({},n,e.end);const{linesAbove:i=2,linesBelow:o=3}=r||{};const a=n.line;const u=n.column;const l=s.line;const c=s.column;let f=Math.max(a-(i+1),0);let p=Math.min(t.length,l+o);if(a===-1){f=0}if(l===-1){p=t.length}const h=l-a;const d={};if(h){for(let e=0;e<=h;e++){const r=e+a;if(!u){d[r]=true}else if(e===0){const e=t[r-1].length;d[r]=[u,e-u+1]}else if(e===h){d[r]=[0,c]}else{const n=t[r-e].length;d[r]=[0,n]}}}else{if(u===c){if(u){d[a]=[u,0]}else{d[a]=true}}else{d[a]=[u,c-u]}}return{start:f,end:p,markerLines:d}}function codeFrameColumns(e,t,r={}){const s=(r.highlightCode||r.forceColor)&&(0,n.shouldHighlight)(r);const o=(0,n.getChalk)(r);const a=getDefs(o);const maybeHighlight=(e,t)=>s?e(t):t;const u=e.split(i);const{start:l,end:c,markerLines:f}=getMarkerLines(t,u,r);const p=t.start&&typeof t.start.column==="number";const h=String(c).length;const d=s?(0,n.default)(e,r):e;let g=d.split(i).slice(l,c).map(((e,t)=>{const n=l+1+t;const s=` ${n}`.slice(-h);const i=` ${s} | `;const o=f[n];const u=!f[n+1];if(o){let t="";if(Array.isArray(o)){const n=e.slice(0,Math.max(o[0]-1,0)).replace(/[^\t]/g," ");const s=o[1]||1;t=["\n ",maybeHighlight(a.gutter,i.replace(/\d/g," ")),n,maybeHighlight(a.marker,"^").repeat(s)].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&&!p){g=`${" ".repeat(h+1)}${r.message}\n${g}`}if(s){return o.reset(g)}else{return g}}function _default(e,t,r,n={}){if(!s){s=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,n)}},5997:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},7496:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});t.isYarnOfflineAsync=void 0;s(r(5997),t);s(r(1574),t);s(r(1178),t);s(r(6125),t);s(r(57),t);s(r(6805),t);s(r(3746),t);var i=r(822);Object.defineProperty(t,"isYarnOfflineAsync",{enumerable:true,get:function(){return i.isYarnOfflineAsync}})},1574:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.CocoaPodsPackageManager=t.CocoaPodsError=void 0;t.extractMissingDependencyError=extractMissingDependencyError;t.getPodUpdateMessage=getPodUpdateMessage;t.getPodRepoUpdateMessage=getPodRepoUpdateMessage;t.getImprovedPodInstallError=getImprovedPodInstallError;const s=n(r(5642));const i=n(r(8746));const o=r(7147);const a=n(r(2037));const u=n(r(1017));class CocoaPodsError extends Error{code;cause;name="CocoaPodsError";isPackageManagerError=true;constructor(e,t,r){super(r?`${e}\n└─ Cause: ${r.message}`:e);this.code=t;this.cause=r}}t.CocoaPodsError=CocoaPodsError;function extractMissingDependencyError(e){const t=e.match(/Unable to find a specification for ['"`]([\w-_\d\s]+)['"`] depended upon by ['"`]([\w-_\d\s]+)['"`]/);if(t){return[t[1],t[2]]}return null}class CocoaPodsPackageManager{options;silent;static getPodProjectRoot(e){if(CocoaPodsPackageManager.isUsingPods(e))return e;const t=u.default.join(e,"ios");if(CocoaPodsPackageManager.isUsingPods(t))return t;const r=u.default.join(e,"macos");if(CocoaPodsPackageManager.isUsingPods(r))return r;return null}static isUsingPods(e){return(0,o.existsSync)(u.default.join(e,"Podfile"))}static async gemInstallCLIAsync(e=false,t={stdio:"inherit"}){const r=["install","cocoapods","--no-document"];try{await(0,s.default)("gem",r,t)}catch(n){if(e){throw new CocoaPodsError("Failed to install CocoaPods CLI with gem (recommended)","COMMAND_FAILED",n)}console.log("Your password might be needed to install CocoaPods CLI: https://guides.cocoapods.org/using/getting-started.html#installation");await(0,s.default)("sudo",["gem",...r],t)}}static async brewLinkCLIAsync(e={stdio:"inherit"}){await(0,s.default)("brew",["link","cocoapods"],e)}static async brewInstallCLIAsync(e={stdio:"inherit"}){await(0,s.default)("brew",["install","cocoapods"],e)}static async installCLIAsync({nonInteractive:e=false,spawnOptions:t={stdio:"inherit"}}){if(!t){t={stdio:"inherit"}}const r=!!t.ignoreStdio;try{!r&&console.log(`› Attempting to install CocoaPods CLI with Gem`);await CocoaPodsPackageManager.gemInstallCLIAsync(e,t);!r&&console.log(`› Successfully installed CocoaPods CLI with Gem`);return true}catch(e){if(!r){console.log(i.default.yellow(`› Failed to install CocoaPods CLI with Gem`));console.log(i.default.red(e.stderr??e.message));console.log(`› Attempting to install CocoaPods CLI with Homebrew`)}try{await CocoaPodsPackageManager.brewInstallCLIAsync(t);if(!await CocoaPodsPackageManager.isCLIInstalledAsync(t)){try{await CocoaPodsPackageManager.brewLinkCLIAsync(t);if(!await CocoaPodsPackageManager.isCLIInstalledAsync(t)){throw new CocoaPodsError("CLI could not be installed automatically with gem or Homebrew, please install CocoaPods manually and try again","NO_CLI",e)}}catch(e){throw new CocoaPodsError("Homebrew installation appeared to succeed but CocoaPods CLI not found in PATH and unable to link.","NO_CLI",e)}}!r&&console.log(`› Successfully installed CocoaPods CLI with Homebrew`);return true}catch(e){!r&&console.warn(i.default.yellow(`› Failed to install CocoaPods with Homebrew. Please install CocoaPods CLI manually and try again.`));throw new CocoaPodsError(`Failed to install CocoaPods with Homebrew. Please install CocoaPods CLI manually and try again.`,"NO_CLI",e)}}}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(0,s.default)("pod",["--version"],e);return true}catch{return false}}constructor({cwd:e,silent:t}){this.silent=!!t;this.options={cwd:e,stdio:"pipe"}}get name(){return"CocoaPods"}async installAsync({spinner:e}={}){await this._installAsync({spinner:e})}isCLIInstalledAsync(){return CocoaPodsPackageManager.isCLIInstalledAsync(this.options)}installCLIAsync(){return CocoaPodsPackageManager.installCLIAsync({nonInteractive:true,spawnOptions:this.options})}async handleInstallErrorAsync({error:e,shouldUpdate:t=true,updatedPackages:r=[],spinner:n}){if(!e.output){throw e}if(!t){throw getImprovedPodInstallError(e,{cwd:this.options.cwd})}const s=e.output.join(a.default.EOL).trim();const{updatePackage:o,shouldUpdateRepo:u}=getPodUpdateMessage(s);if(!o||r.includes(o)){return await this._installAsync({spinner:n,shouldRepoUpdate:true,shouldUpdate:false,updatedPackages:r})}r.push(o);return await this.runInstallTypeCommandAsync(["update",o,u?"":"--no-repo-update"].filter(Boolean),{formatWarning(){const e=`Failed to update ${i.default.bold(o)}. Attempting to update the repo instead.`;return e},spinner:n,updatedPackages:r})}async _installAsync({shouldRepoUpdate:e,...t}={}){return await this.runInstallTypeCommandAsync(["install",e?"--repo-update":""].filter(Boolean),{formatWarning(e){return getPodRepoUpdateMessage(e.output.join(a.default.EOL).trim()).message},...t})}async runInstallTypeCommandAsync(e,{formatWarning:t,...r}={}){try{return await this._runAsync(e)}catch(e){if(t){const n=t(e);if(r.spinner){r.spinner.text=i.default.bold(n)}if(!this.silent){console.warn(i.default.yellow(n))}}return await this.handleInstallErrorAsync({error:e,...r})}}async addWithParametersAsync(e,t){throw new Error("Unimplemented")}addAsync(e=[]){throw new Error("Unimplemented")}addDevAsync(e=[]){throw new Error("Unimplemented")}addGlobalAsync(e=[]){throw new Error("Unimplemented")}removeAsync(e=[]){throw new Error("Unimplemented")}removeDevAsync(e=[]){throw new Error("Unimplemented")}removeGlobalAsync(e=[]){throw new Error("Unimplemented")}async versionAsync(){const{stdout:e}=await(0,s.default)("pod",["--version"],this.options);return e.trim()}async configAsync(e){throw new Error("Unimplemented")}async removeLockfileAsync(){throw new Error("Unimplemented")}async uninstallAsync(){throw new Error("Unimplemented")}async podRepoUpdateAsync(){try{await this._runAsync(["repo","update"])}catch(e){e.message=e.message||(e.stderr??e.stdout);throw new CocoaPodsError("The command `pod install --repo-update` failed","COMMAND_FAILED",e)}}async _runAsync(e){if(!this.silent){console.log(`> pod ${e.join(" ")}`)}const t=(0,s.default)("pod",[...e,"--ansi"],{...this.options,stdio:"pipe"});if(!this.silent){if(t.child.stdout){t.child.stdout.pipe(process.stdout)}}return await t}}t.CocoaPodsPackageManager=CocoaPodsPackageManager;function shouldPodRepoUpdate(e){const t=e;const r=t.includes("pod repo update")||t.includes("--no-repo-update");return r}function getPodUpdateMessage(e){const t=e.match(/run ['"`]pod update ([\w-_\d/]+)( --no-repo-update)?['"`] to apply changes/);return{updatePackage:t?.[1]??null,shouldUpdateRepo:!t?.[2]}}function getPodRepoUpdateMessage(e){const t=extractMissingDependencyError(e);const r=getPodUpdateMessage(e);let n;if(t){n=`Couldn't install: ${t[1]} » ${i.default.underline(t[0])}.`}else if(r?.updatePackage){n=`Couldn't install: ${r?.updatePackage}.`}else{n=`Couldn't install Pods.`}n+=` Updating the Pods project and trying again...`;return{message:n,...r}}function getImprovedPodInstallError(e,{cwd:t=process.cwd()}){const r=e.output.join(a.default.EOL).trim();if(e.stdout.match(/No [`'"]Podfile[`'"] found in the project directory/)){e.message=`No Podfile found in directory: ${t}. Ensure CocoaPods is setup any try again.`}else if(shouldPodRepoUpdate(r)){const t=extractMissingDependencyError(r);let n;if(t){n=`Couldn't install: ${t[1]} » ${i.default.underline(t[0])}`}else{n=`This is often due to native package versions mismatching`}let s;if(t?.[0]){if(t[0].match(/^(?:@?expo|@?react)(-|\/)/)){s=`Ensure the node module "${t[0]}" is installed in your project, then run 'npx pod-install' to try again.`}else{s=`Ensure the CocoaPod "${t[0]}" is installed in your project, then run 'npx pod-install' to try again.`}}else{s=`Try deleting the 'ios/Pods' folder or the 'ios/Podfile.lock' file and running 'npx pod-install' to resolve.`}e.message=`${n}. ${s}`;if(e.stdout){const t=e.stdout.split(a.default.EOL);const r=t.findIndex((e=>e.startsWith("[!]")));if(r!==-1){const n=t.slice(r).join(a.default.EOL);e.message+=`\n\n${i.default.gray(n)}`}}return new CocoaPodsError("Command `pod install --repo-update` failed.","COMMAND_FAILED",e)}else{let t=e.stderr.trim();const r=e.stdout.match(/\[!\]\s((?:.|\n)*)/)?.[1];if(r){if(e.message?.match(/pod exited with non-zero code: 1/)){e.message=""}t=null}e.message=[r,e.message,t].filter(Boolean).join("\n")}return new CocoaPodsError("Command `pod install` failed.","COMMAND_FAILED",e)}},1729:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.BasePackageManager=void 0;const s=n(r(5642));const i=n(r(9491));const o=n(r(7147));const a=n(r(1017));class BasePackageManager{silent;log;options;constructor({silent:e,log:t,env:r=process.env,...n}={}){this.silent=!!e;this.log=t??(!e?console.log:undefined);this.options={stdio:e?undefined:"inherit",...n,env:{...this.getDefaultEnvironment(),...r}}}getDefaultEnvironment(){return{ADBLOCK:"1",DISABLE_OPENCOLLECTIVE:"1"}}ensureCwdDefined(e){const t=this.options.cwd?.toString();const r=this.constructor.name;const n=e?`.${e}`:"";(0,i.default)(t,`cwd is required for ${r}${n}`);return t}runAsync(e,t={}){this.log?.(`> ${this.name} ${e.join(" ")}`);return(0,s.default)(this.bin,e,{...this.options,...t})}runBinAsync(e,t={}){this.log?.(`> ${this.name} ${e.join(" ")}`);return(0,s.default)(this.bin,e,{...this.options,...t})}async versionAsync(){const{stdout:e}=await this.runAsync(["--version"],{stdio:undefined});return e.trim()}async getConfigAsync(e){const{stdout:t}=await this.runAsync(["config","get",e]);return t.trim()}async removeLockfileAsync(){const e=this.ensureCwdDefined("removeLockFile");const t=a.default.join(e,this.lockFile);await o.default.promises.rm(t,{force:true})}installAsync(e=[]){return this.runAsync(["install",...e])}async uninstallAsync(){const e=this.ensureCwdDefined("uninstallAsync");const t=a.default.join(e,"node_modules");await o.default.promises.rm(t,{force:true,recursive:true})}}t.BasePackageManager=BasePackageManager},6805:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BunPackageManager=void 0;const n=r(1729);const s=r(3746);class BunPackageManager extends n.BasePackageManager{name="bun";bin="bun";lockFile=s.BUN_LOCK_FILE;workspaceRoot(){const e=(0,s.resolveWorkspaceRoot)(this.ensureCwdDefined("workspaceRoot"));if(e){return new BunPackageManager({...this.options,silent:this.silent,log:this.log,cwd:e})}return null}installAsync(e=[]){return this.runAsync(["install",...e])}addAsync(e=[]){if(!e.length){return this.installAsync()}return this.runAsync(["add",...e])}addDevAsync(e=[]){if(!e.length){return this.installAsync()}return this.runAsync(["add","--dev",...e])}addGlobalAsync(e=[]){if(!e.length){return this.installAsync()}return this.runAsync(["add","--global",...e])}removeAsync(e){return this.runAsync(["remove",...e])}removeDevAsync(e){return this.runAsync(["remove",...e])}removeGlobalAsync(e){return this.runAsync(["remove","--global",...e])}}t.BunPackageManager=BunPackageManager},1178:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.NpmPackageManager=void 0;const s=n(r(6282));const i=n(r(5642));const o=n(r(5440));const a=n(r(1017));const u=r(1729);const l=r(3746);const c=r(6418);class NpmPackageManager extends u.BasePackageManager{name="npm";bin="npm";lockFile=l.NPM_LOCK_FILE;workspaceRoot(){const e=(0,l.resolveWorkspaceRoot)(this.ensureCwdDefined("workspaceRoot"));if(e){return new NpmPackageManager({...this.options,silent:this.silent,log:this.log,cwd:e})}return null}addAsync(e=[]){if(!e.length){return this.installAsync()}const{flags:t,versioned:r,unversioned:n}=this.parsePackageSpecs(e);return(0,c.createPendingSpawnAsync)((()=>this.updatePackageFileAsync(r,"dependencies")),(()=>!n.length?this.runAsync(["install",...t]):this.runAsync(["install","--save",...t,...n.map((e=>e.raw))])))}addDevAsync(e=[]){if(!e.length){return this.installAsync()}const{flags:t,versioned:r,unversioned:n}=this.parsePackageSpecs(e);return(0,c.createPendingSpawnAsync)((()=>this.updatePackageFileAsync(r,"devDependencies")),(()=>!n.length?this.runAsync(["install",...t]):this.runAsync(["install","--save-dev",...t,...n.map((e=>e.raw))])))}addGlobalAsync(e=[]){if(!e.length){return this.installAsync()}return this.runAsync(["install","--global",...e])}removeAsync(e){return this.runAsync(["uninstall",...e])}removeDevAsync(e){return this.runAsync(["uninstall","--save-dev",...e])}removeGlobalAsync(e){return this.runAsync(["uninstall","--global",...e])}runBinAsync(e,t={}){this.log?.(`> npx ${e.join(" ")}`);return(0,i.default)("npx",e,{...this.options,...t})}parsePackageSpecs(e){const t={flags:[],versioned:[],unversioned:[]};e.map((e=>{if(e.trim().startsWith("-")){t.flags.push(e);return null}return(0,o.default)(e)})).forEach((e=>{const r=!!e&&e.rawSpec!==""&&e.rawSpec!=="*";if(e&&r&&e.type!=="tag"){t.versioned.push(e)}else if(e){t.unversioned.push(e)}}));return t}async updatePackageFileAsync(e,t){if(!e.length){return}const r=a.default.join(this.options.cwd?.toString()||".","package.json");const n=await s.default.readAsync(r);e.forEach((e=>{n[t]=n[t]||{};n[t][e.name]=e.rawSpec}));await s.default.writeAsync(r,n,{json5:false})}}t.NpmPackageManager=NpmPackageManager},6125:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.PnpmPackageManager=void 0;const s=r(1729);const i=n(r(1966));const o=r(3746);class PnpmPackageManager extends s.BasePackageManager{name="pnpm";bin="pnpm";lockFile=o.PNPM_LOCK_FILE;workspaceRoot(){const e=(0,o.resolveWorkspaceRoot)(this.ensureCwdDefined("workspaceRoot"));if(e){return new PnpmPackageManager({...this.options,silent:this.silent,log:this.log,cwd:e})}return null}installAsync(e=[]){if(i.default.CI&&!e.join(" ").includes("frozen-lockfile")){e.unshift("--no-frozen-lockfile")}return this.runAsync(["install",...e])}addAsync(e=[]){if(!e.length){return this.installAsync()}return this.runAsync(["add",...e])}addDevAsync(e=[]){if(!e.length){return this.installAsync()}return this.runAsync(["add","--save-dev",...e])}addGlobalAsync(e=[]){if(!e.length){return this.installAsync()}return this.runAsync(["add","--global",...e])}removeAsync(e){return this.runAsync(["remove",...e])}removeDevAsync(e){return this.runAsync(["remove","--save-dev",...e])}removeGlobalAsync(e){return this.runAsync(["remove","--global",...e])}}t.PnpmPackageManager=PnpmPackageManager},57:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.YarnPackageManager=void 0;const n=r(1729);const s=r(3746);const i=r(6418);const o=r(822);class YarnPackageManager extends n.BasePackageManager{name="yarn";bin="yarnpkg";lockFile=s.YARN_LOCK_FILE;async withOfflineFlagAsync(e){return await(0,o.isYarnOfflineAsync)()?[...e,"--offline"]:e}workspaceRoot(){const e=(0,s.resolveWorkspaceRoot)(this.ensureCwdDefined("workspaceRoot"));if(e){return new YarnPackageManager({...this.options,silent:this.silent,log:this.log,cwd:e})}return null}installAsync(e=[]){return(0,i.createPendingSpawnAsync)((()=>this.withOfflineFlagAsync(["install"])),(t=>this.runAsync([...t,...e])))}addAsync(e=[]){if(!e.length){return this.installAsync()}return(0,i.createPendingSpawnAsync)((()=>this.withOfflineFlagAsync(["add",...e])),(e=>this.runAsync(e)))}addDevAsync(e=[]){if(!e.length){return this.installAsync()}return(0,i.createPendingSpawnAsync)((()=>this.withOfflineFlagAsync(["add","--dev",...e])),(e=>this.runAsync(e)))}addGlobalAsync(e=[]){if(!e.length){return this.installAsync()}return(0,i.createPendingSpawnAsync)((()=>this.withOfflineFlagAsync(["global","add",...e])),(e=>this.runAsync(e)))}removeAsync(e){return this.runAsync(["remove",...e])}removeDevAsync(e){return this.runAsync(["remove",...e])}removeGlobalAsync(e){return this.runAsync(["global","remove",...e])}}t.YarnPackageManager=YarnPackageManager},1966:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class Env{get CI(){const{CI:e}=process.env;return e?.toLowerCase()==="true"||e==="1"}}t["default"]=new Env},3746:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.RESOLUTION_ORDER=t.BUN_TEXT_LOCK_FILE=t.BUN_LOCK_FILE=t.PNPM_LOCK_FILE=t.YARN_LOCK_FILE=t.NPM_LOCK_FILE=t.resolveWorkspaceRoot=void 0;t.resolvePackageManager=resolvePackageManager;t.createForProject=createForProject;const s=n(r(7147));const i=n(r(1017));const o=r(7301);const a=r(6805);const u=r(1178);const l=r(6125);const c=r(57);var f=r(7301);Object.defineProperty(t,"resolveWorkspaceRoot",{enumerable:true,get:function(){return f.resolveWorkspaceRoot}});t.NPM_LOCK_FILE="package-lock.json";t.YARN_LOCK_FILE="yarn.lock";t.PNPM_LOCK_FILE="pnpm-lock.yaml";t.BUN_LOCK_FILE="bun.lockb";t.BUN_TEXT_LOCK_FILE="bun.lock";t.RESOLUTION_ORDER=["bun","yarn","npm","pnpm"];function resolvePackageManager(e,r){const n=(0,o.resolveWorkspaceRoot)(e)??e;const a={npm:[t.NPM_LOCK_FILE],pnpm:[t.PNPM_LOCK_FILE],yarn:[t.YARN_LOCK_FILE],bun:[t.BUN_LOCK_FILE,t.BUN_TEXT_LOCK_FILE]};if(r){return a[r].some((e=>s.default.existsSync(i.default.join(n,e))))?r:null}for(const e of t.RESOLUTION_ORDER){if(a[e].some((e=>s.default.existsSync(i.default.join(n,e))))){return e}}return null}function createForProject(e,t={}){if(t.npm){return new u.NpmPackageManager({cwd:e,...t})}else if(t.yarn){return new c.YarnPackageManager({cwd:e,...t})}else if(t.pnpm){return new l.PnpmPackageManager({cwd:e,...t})}else if(t.bun){return new a.BunPackageManager({cwd:e,...t})}switch(resolvePackageManager(e)){case"npm":return new u.NpmPackageManager({cwd:e,...t});case"pnpm":return new l.PnpmPackageManager({cwd:e,...t});case"yarn":return new c.YarnPackageManager({cwd:e,...t});case"bun":return new a.BunPackageManager({cwd:e,...t});default:return new u.NpmPackageManager({cwd:e,...t})}}},6418:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createPendingSpawnAsync=createPendingSpawnAsync;function createPendingSpawnAsync(e,t){let r;const n=new Promise(((e,t)=>{r=e}));const s=new Promise(((n,s)=>{e().then((e=>{const i=t(e);r(i.child);i.then(n).catch(s)})).catch((e=>{r(null);s(e)}))}));s.child=n;return s}},822:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.isYarnOfflineAsync=isYarnOfflineAsync;t.getNpmProxy=getNpmProxy;const s=r(2081);const i=n(r(9523));const o=n(r(7310));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)}function getNpmProxy(){if(process.env.https_proxy){return process.env.https_proxy??null}try{const e=(0,s.execSync)("npm config get https-proxy").toString().trim();return e!=="null"?e:null}catch{return null}}function isUrlAvailableAsync(e){return new Promise((t=>{i.default.lookup(e,(e=>{t(!e)}))}))}},3936:(e,t,r)=>{"use strict";r.r(t);var n=r(8746);var s=r.n(n);var i=r(9247);var o=r(5733);var a=r(3744);var u=r(1805);var l=r(4816);var c=r.n(l);function replaceValue(e,t,r){const n=e.indexOf(t);if(n>-1){e[n]=r}return e}function assertWithOptionsArgs(e,t){try{return c()(e,t)}catch(e){if(e.code==="ARG_UNKNOWN_OPTION"){a.JF(e.message,1)}throw e}}function printHelp(e,t,r,n=""){a.JF(s()`
|
|
24
|
+
{bold Info}
|
|
25
|
+
${e}
|
|
26
|
+
|
|
27
|
+
{bold Usage}
|
|
28
|
+
{dim $} ${t}
|
|
29
|
+
|
|
30
|
+
{bold Options}
|
|
31
|
+
${r.split("\n").join("\n ")}
|
|
32
|
+
`+n,0)}async function resolveStringOrBooleanArgsAsync(e,t,r){const n={...t,...r};assertUnknownArgs(n,e);e=collapseAliases(n,e);return _resolveStringOrBooleanArgs(r,e)}function _resolveStringOrBooleanArgs(e,t){let r="";const n={};const s=Object.entries(e).filter((([,e])=>typeof e!=="string")).map((([e])=>e));for(let e=t.length-1;e>-1;e--){const i=t[e];if(i.startsWith("--")){n[i]=true}else{const o=e>0?t[e-1]:null;if(o&&s.includes(o)){n[o]=i;e--}else if(!r&&(e===t.length-1||e===0)){r=i}else{throw new Error(`Unknown argument: ${i}`)}}}return{args:n,projectRoot:r}}function collapseAliases(e,t){const r=getAliasTuples(e);for(const[e,n]of r){t=replaceValue(t,e,n)}assertDuplicateArgs(t,r);return t}function assertUnknownArgs(e,t){const r=Object.keys(e);const n=t.filter((e=>!r.includes(e)&&e.startsWith("-")));if(n.length>0){throw new Error(`Unknown arguments: ${n.join(", ")}`)}}function getAliasTuples(e){return Object.entries(e).filter((([,e])=>typeof e==="string"))}function assertDuplicateArgs(e,t){for(const[r,n]of t){if(e.filter((e=>[r,n].includes(e))).length>1){throw new Error(`Can only provide one instance of ${r} or ${n}`)}}}const f=r(7984)("expo:init:cli");async function run(){const e=process.argv.slice(2)??[];const t={"--yes":Boolean,"--no-install":Boolean,"--help":Boolean,"--version":Boolean,"-y":"--yes","-h":"--help","-v":"--version"};const n=assertWithOptionsArgs(t,{argv:e,permissive:true});if(n["--version"]){a.Zb.exit(r(4147).version,0)}if(n["--help"]){const e=i.o.replace("create-","");printHelp(`Creates a new Expo project`,s()`npx ${i.o} {cyan <path>} [options]`,[`-y, --yes Use the default options for creating a project`,` --no-install Skip installing npm packages or CocoaPods`,s()`-t, --template {gray [pkg]} NPM template to use: default, blank, blank-typescript, tabs, bare-minimum. Default: default`,s()`-e, --example {gray [name]} Example name from {underline https://github.com/expo/examples}.`,`-v, --version Version number`,`-h, --help Usage info`].join("\n"),s()`
|
|
52
33
|
{gray To choose a template pass in the {bold --template} arg:}
|
|
53
34
|
|
|
54
|
-
{gray $} ${(0,
|
|
35
|
+
{gray $} ${(0,u.p6)()} {cyan --template}
|
|
55
36
|
|
|
56
37
|
{gray To choose an Expo example pass in the {bold --example} arg:}
|
|
57
38
|
|
|
58
|
-
{gray $} ${(0,
|
|
59
|
-
{gray $} ${(0,
|
|
39
|
+
{gray $} ${(0,u.p6)()} {cyan --example}
|
|
40
|
+
{gray $} ${(0,u.p6)()} {cyan --example with-router}
|
|
60
41
|
|
|
61
42
|
{gray The package manager used for installing}
|
|
62
43
|
{gray node modules is based on how you invoke the CLI:}
|
|
63
44
|
|
|
64
|
-
{bold npm:} {cyan npx ${
|
|
65
|
-
{bold yarn:} {cyan yarn create ${
|
|
66
|
-
{bold pnpm:} {cyan pnpm create ${
|
|
67
|
-
{bold bun:} {cyan bun create ${
|
|
68
|
-
`)}const{AnalyticsEventPhases:a,AnalyticsEventTypes:l,flushAsync:v,track:E}=await Promise.resolve().then((()=>u(i(4575))));try{const h=await(0,b.resolveStringOrBooleanArgsAsync)(t,r,{"--template":Boolean,"--example":Boolean,"-t":"--template","-e":"--example"});w(`Default args:\n%O`,o);w(`Parsed:\n%O`,h);const{createAsync:d}=await Promise.resolve().then((()=>u(i(1961))));await d(h.projectRoot,{yes:!!o["--yes"],template:h.args["--template"],example:h.args["--example"],install:!o["--no-install"]});E({event:l.CREATE_EXPO_APP,properties:{phase:a.SUCCESS}});await v()}catch(t){if(!(t instanceof p.ExitError)){g.Log.exception(t)}E({event:l.CREATE_EXPO_APP,properties:{phase:a.FAIL,message:t.cause}});await v().finally((()=>{process.exit(t.code||1)}))}finally{const t=await(await Promise.resolve().then((()=>u(i(5897))))).default;await t()}}run()},9247:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.CLI_NAME=void 0;r.CLI_NAME=i(4147).name},1961:function(t,r,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,r,i,o){if(o===undefined)o=i;var a=Object.getOwnPropertyDescriptor(r,i);if(!a||("get"in a?!r.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return r[i]}}}Object.defineProperty(t,o,a)}:function(t,r,i,o){if(o===undefined)o=i;t[o]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:true,value:r})}:function(t,r){t["default"]=r});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i))o(r,t,i);a(r,t);return r};var l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.logNodeInstallWarning=r.createAsync=void 0;const h=l(i(8746));const d=l(i(7147));const p=l(i(1017));const g=i(6055);const y=u(i(1947));const b=i(755);const w=i(3744);const v=i(1805);const E=i(9561);const A=i(4575);const _=i(424);const C=i(8429);const S=i(7984)("expo:init:create");async function resolveProjectRootArgAsync(t,{yes:r}){if(!t&&r){const t=p.default.resolve(process.cwd());const r=p.default.basename(t);(0,E.assertValidName)(r);(0,E.assertFolderEmpty)(t,r);return t}else{return await(0,E.resolveProjectRootAsync)(t)}}async function setupDependenciesAsync(t,r){const i=r.install;const o=(0,v.resolvePackageManager)();await configureNodeDependenciesAsync(t,o);let a=false;const u=await d.default.existsSync(p.default.join(t,"ios"));if(i){await installNodeDependenciesAsync(t,o);if(u){a=await installCocoaPodsAsync(t)}}const l=getChangeDirectoryPath(t);console.log();y.logProjectReady({cdPath:l,packageManager:o});if(!i){logNodeInstallWarning(l,o,u&&!a)}}async function createAsync(t,r){if(r.example&&r.template){throw new Error("Cannot use both --example and --template")}if(r.example){return await createExampleAsync(t,r)}return await createTemplateAsync(t,r)}r.createAsync=createAsync;async function createTemplateAsync(t,r){let i=null;if(r.template===true){i=await(0,b.promptTemplateAsync)()}else{i=r.template??null;console.log((0,h.default)`Creating an Expo project using the {cyan ${i??"default"}} template.\n`);if(!i){console.log((0,h.default)`{gray To choose from all available templates pass in the --template arg:}`);console.log((0,h.default)` {gray $} ${(0,v.formatSelfCommand)()} {cyan --template}\n`);console.log((0,h.default)`{gray To choose from all available examples pass in the --example arg:}`);console.log((0,h.default)` {gray $} ${(0,v.formatSelfCommand)()} {cyan --example}\n`)}}const o=await resolveProjectRootArgAsync(t,r);await d.default.promises.mkdir(o,{recursive:true});await(0,A.initializeAnalyticsIdentityAsync)();(0,A.identify)();(0,A.track)({event:A.AnalyticsEventTypes.CREATE_EXPO_APP,properties:{phase:A.AnalyticsEventPhases.ATTEMPT,template:i}});await(0,C.withSectionLog)((()=>y.extractAndPrepareTemplateAppAsync(o,{npmPackage:i})),{pending:h.default.bold("Locating project files."),success:"Downloaded and extracted project files.",error:t=>`Something went wrong in downloading and extracting the project files: ${t.message}`});await setupDependenciesAsync(o,r);try{await(0,_.initGitRepoAsync)(o)}catch(t){S(`Error initializing git: %O`,t)}}async function createExampleAsync(t,r){let i="";if(r.example===true){i=await(0,g.promptExamplesAsync)()}else if(r.example){i=r.example}let o=null;try{o=await(0,g.fetchMetadataAsync)();if(!o||!o.aliases||!o.deprecated){throw new Error("No metadata found.")}}catch(t){S(`Error fetching metadata: %O`,t);w.Log.error(`Error fetching metadata, proceeding without alias or deprecation data.`)}if(o&&o.aliases[i]){const t=o.aliases[i];const r=typeof t==="string"?t:t.destination;console.log((0,h.default)`{gray The {cyan ${i}} example has been renamed to {cyan ${r}}.}`);if(typeof t==="object"&&t.message){console.log((0,h.default)`{gray ${t.message}}`)}i=r}else if(o&&o.deprecated[i]){throw new Error(getDeprecatedExampleErrorMessage(i,o))}await(0,g.ensureExampleExists)(i);console.log((0,h.default)`Creating an Expo project using the {cyan ${i}} example.\n`);const a=await resolveProjectRootArgAsync(t,r);await d.default.promises.mkdir(a,{recursive:true});await(0,A.initializeAnalyticsIdentityAsync)();(0,A.identify)();(0,A.track)({event:A.AnalyticsEventTypes.CREATE_EXPO_APP,properties:{phase:A.AnalyticsEventPhases.ATTEMPT,example:i}});await(0,C.withSectionLog)((()=>(0,g.downloadAndExtractExampleAsync)(a,i)),{pending:h.default.bold("Locating example files..."),success:"Downloaded and extracted example files.",error:t=>`Something went wrong in downloading and extracting the example files: ${t.message}`});await setupDependenciesAsync(a,r);try{await(0,_.initGitRepoAsync)(a)}catch(t){S(`Error initializing git: %O`,t)}}function getChangeDirectoryPath(t){const r=p.default.relative(process.cwd(),t);if(r.length<=t.length){return r}return t}async function configureNodeDependenciesAsync(t,r){try{await(0,v.configurePackageManager)(t,r,{silent:false})}catch(t){S(`Error configuring package manager: %O`,t);w.Log.error(`Something went wrong configuring the package manager. Check your ${r} logs. Continuing to create the app.`);w.Log.exception(t)}}async function installNodeDependenciesAsync(t,r){try{await(0,v.installDependenciesAsync)(t,r,{silent:false})}catch(t){S(`Error installing node modules: %O`,t);w.Log.error(`Something went wrong installing JavaScript dependencies. Check your ${r} logs. Continuing to create the app.`);w.Log.exception(t)}}async function installCocoaPodsAsync(t){let r=false;try{r=await y.installPodsAsync(t)}catch(t){S(`Error installing CocoaPods: %O`,t)}return r}function logNodeInstallWarning(t,r,i){console.log(`\n⚠️ Before running your app, make sure you have modules installed:\n`);console.log(` cd ${t||"."}${p.default.sep}`);console.log(` ${r} install`);if(i&&process.platform==="darwin"){console.log(` npx pod-install`)}console.log()}r.logNodeInstallWarning=logNodeInstallWarning;function getDeprecatedExampleErrorMessage(t,r){const{message:i,outdatedExampleHref:o}=r.deprecated[t];let a=`${t} is no longer available.`;if(i){a+=` ${i}`}if(o){a+=`\n\nYou can also refer to the outdated example code in examples git repository history, if it is useful: ${o}`}return a}},6581:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.createGlobFilter=r.createEntryResolver=r.sanitizedName=void 0;const a=o(i(1017));const u=o(i(9138));const l=i(7984)("expo:init:fileTransform");function sanitizedName(t){return t.replace(/[\W_]+/g,"").normalize("NFD").replace(/[\u0300-\u036f]/g,"")}r.sanitizedName=sanitizedName;function createEntryResolver(t){return r=>{if(t){r.path=r.path.replace(/HelloWorld/g,r.path.includes("android")?sanitizedName(t.toLowerCase()):sanitizedName(t)).replace(/helloworld/g,sanitizedName(t).toLowerCase())}if(r.type&&/^file$/i.test(r.type)&&a.default.basename(r.path)==="gitignore"){r.path=r.path.replace(/gitignore$/,".gitignore")}}}r.createEntryResolver=createEntryResolver;function createGlobFilter(t,r){const i=(0,u.default)(t,r);l("filter: created for pattern %s (%s)",t);return t=>{const r=i(t);l("filter: %s - %s",r?"include":"exclude",t);return r}}r.createGlobFilter=createGlobFilter},5733:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.ExitError=void 0;class ExitError extends Error{cause;code;constructor(t,r){super(t instanceof Error?t.message:t);this.cause=t;this.code=r}}r.ExitError=ExitError},2855:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});const a=o(i(7984));const u=i(7945);const l=i(9247);process.title=l.CLI_NAME;if((0,u.boolish)("EXPO_DEBUG",false)){a.default.enable("expo:init:*")}else if(a.default.enabled("expo:init:")){process.env.EXPO_DEBUG="1"}i(9436)},755:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.promptTemplateAsync=r.ALIASES=r.LEGACY_TEMPLATES=void 0;const a=o(i(8746));const u=o(i(1112));const l=i(7943);r.LEGACY_TEMPLATES=[{title:"Default",value:"expo-template-default",description:"includes tools recommended for most app developers"},{title:"Blank",value:"expo-template-blank",description:"a minimal app as clean as an empty canvas"},{title:"Blank (TypeScript)",value:"expo-template-blank-typescript",description:"blank app with TypeScript enabled"},{title:"Navigation (TypeScript)",value:"expo-template-tabs",description:"File-based routing with TypeScript enabled"},{title:"Blank (Bare)",value:"expo-template-bare-minimum",description:"blank app with the native code exposed (expo prebuild)"}];r.ALIASES=r.LEGACY_TEMPLATES.map((({value:t})=>t));async function promptTemplateAsync(){if(l.env.CI){throw new Error("Cannot prompt for template in CI")}const{answer:t}=await(0,u.default)({type:"select",name:"answer",message:"Choose a template:",choices:r.LEGACY_TEMPLATES});if(!t){console.log();console.log((0,a.default)`Please specify the template, example: {cyan --template expo-template-blank}`);console.log();process.exit(1)}return t}r.promptTemplateAsync=promptTemplateAsync},3744:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.Log=r.exit=r.log=r.exception=r.error=void 0;const a=o(i(8746));const u=i(5733);function error(...t){console.error(...t)}r.error=error;function exception(t){const{env:r}=i(7943);error(a.default.red(t.toString())+(r.EXPO_DEBUG?"\n"+a.default.gray(t.stack):""))}r.exception=exception;function log(...t){console.log(...t)}r.log=log;function exit(t,r=1){if(t instanceof Error){exception(t)}else if(t){if(r===0){log(t)}else{error(t)}}if(r!==0){throw new u.ExitError(t,r)}process.exit(r)}r.exit=exit;r.Log={error:error,exception:exception,log:log,exit:exit}},2126:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.getStateJsonPath=r.dotExpoHomeDirectory=void 0;const a=o(i(2037));const u=o(i(1017));function dotExpoHomeDirectory(){const t=a.default.homedir();if(!t){throw new Error("Can't determine your home directory; make sure your $HOME environment variable is set.")}let r;if(process.env.EXPO_STAGING){r=u.default.join(t,".expo-staging")}else if(process.env.EXPO_LOCAL){r=u.default.join(t,".expo-local")}else{r=u.default.join(t,".expo")}return r}r.dotExpoHomeDirectory=dotExpoHomeDirectory;const getStateJsonPath=()=>u.default.join(dotExpoHomeDirectory(),"state.json");r.getStateJsonPath=getStateJsonPath},1805:function(t,r,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,r,i,o){if(o===undefined)o=i;var a=Object.getOwnPropertyDescriptor(r,i);if(!a||("get"in a?!r.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return r[i]}}}Object.defineProperty(t,o,a)}:function(t,r,i,o){if(o===undefined)o=i;t[o]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:true,value:r})}:function(t,r){t["default"]=r});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i))o(r,t,i);a(r,t);return r};Object.defineProperty(r,"__esModule",{value:true});r.configurePackageManager=r.installDependenciesAsync=r.formatSelfCommand=r.formatRunCommand=r.isPackageManagerAvailable=r.resolvePackageManager=void 0;const l=u(i(7496));const h=i(2081);const d=i(9247);const p=i(7984)("expo:init:resolvePackageManager");function resolvePackageManager(){const t=process.env.npm_config_user_agent;p("npm_config_user_agent:",t);if(t?.startsWith("yarn")){return"yarn"}else if(t?.startsWith("pnpm")){return"pnpm"}else if(t?.startsWith("bun")){return"bun"}else if(t?.startsWith("npm")){return"npm"}if(isPackageManagerAvailable("yarn")){return"yarn"}else if(isPackageManagerAvailable("pnpm")){return"pnpm"}else if(isPackageManagerAvailable("bun")){return"bun"}return"npm"}r.resolvePackageManager=resolvePackageManager;function isPackageManagerAvailable(t){try{(0,h.execSync)(`${t} --version`,{stdio:"ignore"});return true}catch{}return false}r.isPackageManagerAvailable=isPackageManagerAvailable;function formatRunCommand(t,r){switch(t){case"pnpm":return`pnpm run ${r}`;case"yarn":return`yarn ${r}`;case"bun":return`bun run ${r}`;case"npm":default:return`npm run ${r}`}}r.formatRunCommand=formatRunCommand;function formatSelfCommand(){const t=resolvePackageManager();switch(t){case"pnpm":return`pnpx ${d.CLI_NAME}`;case"bun":return`bunx ${d.CLI_NAME}`;case"yarn":case"npm":default:return`npx ${d.CLI_NAME}`}}r.formatSelfCommand=formatSelfCommand;function createPackageManager(t,r){switch(t){case"yarn":return new l.YarnPackageManager(r);case"pnpm":return new l.PnpmPackageManager(r);case"bun":return new l.BunPackageManager(r);case"npm":default:return new l.NpmPackageManager(r)}}async function installDependenciesAsync(t,r,i={silent:false}){await createPackageManager(r,{cwd:t,silent:i.silent}).installAsync()}r.installDependenciesAsync=installDependenciesAsync;async function configurePackageManager(t,r,i={silent:false}){const o=createPackageManager(r,{cwd:t,...i});switch(o.name){case"pnpm":await o.runAsync(["config","--location","project","set","node-linker","hoisted"]);break;case"yarn":{const t=await o.versionAsync();const r=parseInt(t.split(".")[0],10);if(r>=2){await o.runAsync(["config","set","nodeLinker","node-modules"])}break}}}r.configurePackageManager=configurePackageManager},9561:function(t,r,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,r,i,o){if(o===undefined)o=i;var a=Object.getOwnPropertyDescriptor(r,i);if(!a||("get"in a?!r.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return r[i]}}}Object.defineProperty(t,o,a)}:function(t,r,i,o){if(o===undefined)o=i;t[o]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:true,value:r})}:function(t,r){t["default"]=r});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i))o(r,t,i);a(r,t);return r};var l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.resolveProjectRootAsync=r.assertFolderEmpty=r.assertValidName=void 0;const h=l(i(8746));const d=l(i(7147));const p=l(i(1017));const g=l(i(1112));const y=u(i(1947));const b=i(3744);const w=i(1805);const v=i(6462);function assertValidName(t){const r=y.validateName(t);if(typeof r==="string"){b.Log.exit((0,h.default)`{red Cannot create an app named {bold "${t}"}. ${r}}`,1)}const i=y.isFolderNameForbidden(t);if(i){b.Log.exit((0,h.default)`{red Cannot create an app named {bold "${t}"} because it would conflict with a dependency of the same name.}`,1)}}r.assertValidName=assertValidName;function assertFolderEmpty(t,r){const i=(0,v.getConflictsForDirectory)(t);if(i.length){b.Log.log((0,h.default)`The directory {cyan ${r}} has files that might be overwritten:`);b.Log.log();for(const t of i){b.Log.log(` ${t}`)}b.Log.log();b.Log.exit("Try using a new directory name, or moving these files.\n")}}r.assertFolderEmpty=assertFolderEmpty;async function resolveProjectRootAsync(t){let r=t?.trim();if(!r){const{answer:t}=await(0,g.default)({type:"text",name:"answer",message:"What is your app named?",initial:"my-app",validate:t=>{const r=y.validateName(p.default.basename(p.default.resolve(t)));if(typeof r==="string"){return"Invalid project name: "+r}return true}});if(typeof t==="string"){r=t.trim()}}if(!r){const t=(0,w.formatSelfCommand)();b.Log.log();b.Log.log("Please choose your app name:");b.Log.log((0,h.default)` {dim $} {cyan ${t} <name>}`);b.Log.log();b.Log.log(`For more info, run:`);b.Log.log((0,h.default)` {dim $} {cyan ${t} --help}`);b.Log.log();b.Log.exit("")}const i=p.default.resolve(r);const o=p.default.basename(i);assertValidName(o);await d.default.promises.mkdir(i,{recursive:true});assertFolderEmpty(i,o);return i}r.resolveProjectRootAsync=resolveProjectRootAsync},6785:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.getSession=void 0;const a=o(i(6282));const u=i(2126);function getSession(){try{return a.default.read((0,u.getStateJsonPath)())?.auth??null}catch(t){if(t.code==="ENOENT"){return null}throw t}}r.getSession=getSession},4575:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.AnalyticsEventPhases=r.AnalyticsEventTypes=r.flushAsync=r.track=r.identify=r.initializeAnalyticsIdentityAsync=r._resetGlobals=void 0;const a=o(i(6282));const u=o(i(6113));const l=o(i(7147));const h=o(i(2037));const d=i(2126);const p=i(6785);const g=i(7943);const y=i(4147);const b="1wabJGd5IiuF9Q8SGlcI90v8WTs";const w="https://cdp.expo.dev/v1/batch";const v="1.0.0";const E=y.name;const A=[];let _=null;function _resetGlobals(){if(g.env.EXPO_NO_TELEMETRY)return;_=null;A.splice(0,A.length)}r._resetGlobals=_resetGlobals;async function initializeAnalyticsIdentityAsync(){if(g.env.EXPO_NO_TELEMETRY)return;if(_){return}_=await getAnalyticsIdentityAsync()}r.initializeAnalyticsIdentityAsync=initializeAnalyticsIdentityAsync;function identify(){if(g.env.EXPO_NO_TELEMETRY)return;enqueue("identify",{})}r.identify=identify;function track(t){if(g.env.EXPO_NO_TELEMETRY)return;enqueue("track",{...t,context:getAnalyticsContext()})}r.track=track;function enqueue(t,r){if(!_){return}r={...r,..._};r.type=t;if(r.type==="identify"){r.traits??={};r.context??={};r.context.traits=r.traits}r.context={library:{name:E,version:v},...r.context};r._metadata={nodeVersion:process.versions.node,...r._metadata};if(!r.originalTimestamp){r.originalTimestamp=new Date}if(!r.messageId){r.messageId=`node-${u.default.createHash("md5").update(JSON.stringify(r)).digest("hex")}-${uuidv4()}`}A.push(r)}async function flushAsync(){if(g.env.EXPO_NO_TELEMETRY)return;if(!A.length){return}const t={method:"POST",headers:{accept:"application/json, text/plain, */*","content-type":"application/json;charset=utf-8","user-agent":`${E}/${v}`,authorization:"Basic "+Buffer.from(`${b}:`).toString("base64")},body:JSON.stringify({batch:A.map((t=>({...t,sentAt:new Date}))),sentAt:new Date})};try{await fetch(w,t)}catch{}A.splice(0,A.length)}r.flushAsync=flushAsync;const C={darwin:"Mac",win32:"Windows",linux:"Linux"};function getAnalyticsContext(){const t=C[h.default.platform()]||h.default.platform();return{os:{name:t,version:h.default.release()},device:{type:t,model:t},app:{name:E,version:y.version}}}function uuidv4(){try{return u.default.randomUUID()}catch{return null}}var S;(function(t){t["CREATE_EXPO_APP"]="create expo app"})(S||(r.AnalyticsEventTypes=S={}));var D;(function(t){t["ATTEMPT"]="attempt";t["SUCCESS"]="success";t["FAIL"]="fail"})(D||(r.AnalyticsEventPhases=D={}));async function getAnalyticsIdentityAsync(){if(!l.default.existsSync((0,d.dotExpoHomeDirectory)())){l.default.mkdirSync((0,d.dotExpoHomeDirectory)(),{recursive:true})}if(!l.default.existsSync((0,d.getStateJsonPath)())){l.default.writeFileSync((0,d.getStateJsonPath)(),JSON.stringify({}))}const t=await a.default.getAsync((0,d.getStateJsonPath)(),"analyticsDeviceId",null);const r=t??uuidv4();if(!r){return null}if(!t){await a.default.setAsync((0,d.getStateJsonPath)(),"analyticsDeviceId",r)}const i=(0,p.getSession)()?.userId??null;return i?{anonymousId:r,userId:i}:{anonymousId:r}}},3490:function(t,r,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,r,i,o){if(o===undefined)o=i;var a=Object.getOwnPropertyDescriptor(r,i);if(!a||("get"in a?!r.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return r[i]}}}Object.defineProperty(t,o,a)}:function(t,r,i,o){if(o===undefined)o=i;t[o]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:true,value:r})}:function(t,r){t["default"]=r});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i))o(r,t,i);a(r,t);return r};var l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.assertDuplicateArgs=r.assertUnknownArgs=r.collapseAliases=r._resolveStringOrBooleanArgs=r.resolveStringOrBooleanArgsAsync=r.printHelp=r.assertWithOptionsArgs=void 0;const h=l(i(4816));const d=l(i(8746));const p=i(6889);const g=u(i(3744));function assertWithOptionsArgs(t,r){try{return(0,h.default)(t,r)}catch(t){if(t.code==="ARG_UNKNOWN_OPTION"){g.exit(t.message,1)}throw t}}r.assertWithOptionsArgs=assertWithOptionsArgs;function printHelp(t,r,i,o=""){g.exit((0,d.default)`
|
|
69
|
-
{bold Info}
|
|
70
|
-
${t}
|
|
71
|
-
|
|
72
|
-
{bold Usage}
|
|
73
|
-
{dim $} ${r}
|
|
74
|
-
|
|
75
|
-
{bold Options}
|
|
76
|
-
${i.split("\n").join("\n ")}
|
|
77
|
-
`+o,0)}r.printHelp=printHelp;async function resolveStringOrBooleanArgsAsync(t,r,i){const o={...r,...i};assertUnknownArgs(o,t);t=collapseAliases(o,t);return _resolveStringOrBooleanArgs(i,t)}r.resolveStringOrBooleanArgsAsync=resolveStringOrBooleanArgsAsync;function _resolveStringOrBooleanArgs(t,r){let i="";const o={};const a=Object.entries(t).filter((([,t])=>typeof t!=="string")).map((([t])=>t));for(let t=r.length-1;t>-1;t--){const u=r[t];if(u.startsWith("--")){o[u]=true}else{const l=t>0?r[t-1]:null;if(l&&a.includes(l)){o[l]=u;t--}else if(!i&&(t===r.length-1||t===0)){i=u}else{throw new Error(`Unknown argument: ${u}`)}}}return{args:o,projectRoot:i}}r._resolveStringOrBooleanArgs=_resolveStringOrBooleanArgs;function collapseAliases(t,r){const i=getAliasTuples(t);for(const[t,o]of i){r=(0,p.replaceValue)(r,t,o)}assertDuplicateArgs(r,i);return r}r.collapseAliases=collapseAliases;function assertUnknownArgs(t,r){const i=Object.keys(t);const o=r.filter((t=>!i.includes(t)&&t.startsWith("-")));if(o.length>0){throw new Error(`Unknown arguments: ${o.join(", ")}`)}}r.assertUnknownArgs=assertUnknownArgs;function getAliasTuples(t){return Object.entries(t).filter((([,t])=>typeof t==="string"))}function assertDuplicateArgs(t,r){for(const[i,o]of r){if(t.filter((t=>[i,o].includes(t))).length>1){throw new Error(`Can only provide one instance of ${i} or ${o}`)}}}r.assertDuplicateArgs=assertDuplicateArgs},6889:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.replaceValue=void 0;function replaceValue(t,r,i){const o=t.indexOf(r);if(o>-1){t[o]=i}return t}r.replaceValue=replaceValue},6462:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.getConflictsForDirectory=void 0;const o=i(7147);const a=[".DS_Store","Thumbs.db",".git",".gitattributes",".gitignore",".npmignore","LICENSE","docs",".idea","npm-debug.log","yarn-debug.log","yarn-error.log"];function getConflictsForDirectory(t){return(0,o.readdirSync)(t).filter((t=>!(/\.iml$/.test(t)||a.includes(t))))}r.getConflictsForDirectory=getConflictsForDirectory},7943:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.env=void 0;const o=i(7945);class Env{get EXPO_DEBUG(){return(0,o.boolish)("EXPO_DEBUG",false)}get EXPO_BETA(){return(0,o.boolish)("EXPO_BETA",false)}get CI(){return(0,o.boolish)("CI",false)}get EXPO_NO_CACHE(){return(0,o.boolish)("EXPO_NO_CACHE",false)}get EXPO_NO_TELEMETRY(){return(0,o.boolish)("EXPO_NO_TELEMETRY",false)}}r.env=new Env},9544:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.fetch=void 0;const o=i(7742);function wrapFetchWithAssert(t){return(...r)=>{if(!t){if(o.env.NODE_OPTIONS?.includes("--no-experimental-fetch")){throw new Error('NODE_OPTIONS="--no-experimental-fetch" is not supported, Node.js built-in fetch is required to continue.')}throw new Error("Node.js built-in Fetch is not available. Ensure that the Fetch API, first available in Node.js 18, is enabled.")}return t(...r)}}r.fetch=wrapFetchWithAssert(globalThis.fetch)},424:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.initGitRepoAsync=void 0;const a=o(i(5642));const u=o(i(8746));const l=i(7984)("expo:init:git");async function initGitRepoAsync(t){try{await(0,a.default)("git",["rev-parse","--is-inside-work-tree"],{stdio:"ignore",cwd:t});l(u.default.dim("New project is already inside of a Git repo, skipping git init."));return false}catch(t){if(t.errno==="ENOENT"){l(u.default.dim("Unable to initialize Git repo. `git` not in $PATH."));return false}}const r=i(9756);try{await(0,a.default)("git",["init"],{stdio:"ignore",cwd:t});await(0,a.default)("git",["add","-A"],{stdio:"ignore",cwd:t});const i=`Initial commit\n\nGenerated by ${r.name} ${r.version}.`;await(0,a.default)("git",["commit","-m",i],{stdio:"ignore",cwd:t});l(u.default.dim("Initialized a Git repository."));return true}catch(t){l("Error initializing Git repo:",t);return false}}r.initGitRepoAsync=initGitRepoAsync},292:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.downloadAndExtractGitHubRepositoryAsync=void 0;const o=i(2781);const a=i(9544);const u=i(7240);const l=i(6581);const h=i(7984)("expo:init:github");async function getGitHubRepoAsync(t){const[,r,i,o,u,...l]=t.pathname.split("/");const h=l.join("/");if(o===undefined){const o=await(0,a.fetch)(`https://api.github.com/repos/${r}/${i}`);if(!o.ok&&o.status===404){throw new Error(`GitHub repository not found for url: ${t}`)}else if(!o.ok){throw new Error(`[${o.status}] Failed to fetch GitHub repository information for url: ${t}`)}const u=await o.json();return{owner:r,name:i,branch:u["default_branch"],filePath:h}}if(r&&i&&u&&o==="tree"){return{owner:r,name:i,branch:u,filePath:h}}throw new Error("Malformed GitHub repository response for URL: "+t.toString())}async function isValidGitHubRepoAsync(t){const r=`https://api.github.com/repos/${t.owner}/${t.name}/contents`;const i=`${t.filePath?`/${t.filePath}`:""}/package.json`;const o=await(0,a.fetch)(r+i+`?ref=${t.branch}`);return o.ok}async function extractRemoteGitHubTarballAsync(t,r,i){const h=await(0,a.fetch)(t);if(!h.ok)throw new Error(`Unexpected response: ${h.statusText} (${t})`);if(!h.body)throw new Error(`Unexpected response: no response body (${t})`);const d=r.filePath.replace(/^\//,"").split("/").filter(Boolean);const p=d.length+1;const g=(0,l.createGlobFilter)(!d.length?["*/**","*/ios/.xcode.env"]:[`*/${d.join("/")}/**`,`*/${d.join("/")}/ios/.xcode.env`],{ignore:["**/ios/*.xcworkspace/**"]});await(0,u.extractNpmTarballAsync)(o.Readable.fromWeb(h.body),{...i,filter:g,strip:p})}async function downloadAndExtractGitHubRepositoryAsync(t,r){h("Looking for GitHub repository");const i=await getGitHubRepoAsync(t);const o=await isValidGitHubRepoAsync(i);if(!o){throw new Error(`Could not to locate repository for "${t}", ensure this repository exists`)}const a=`https://codeload.github.com/${i.owner}/${i.name}/tar.gz/${i.branch}`;h("Resolved GitHub repository",i);h("Downloading GitHub repository from:",a);await extractRemoteGitHubTarballAsync(a,i,r)}r.downloadAndExtractGitHubRepositoryAsync=downloadAndExtractGitHubRepositoryAsync},8429:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.withSectionLog=void 0;const a=o(i(2651));const u=i(7943);function withSectionLog(t,r){const i=u.env.CI||u.env.EXPO_DEBUG;const o=(0,a.default)({text:r.pending,isEnabled:!i,stream:i?process.stdout:process.stderr});o.start();return t(o).then((t=>{o.succeed(r.success);return t}),(t=>{o.fail(r.error(t));throw t}))}r.withSectionLog=withSectionLog},7240:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.downloadAndExtractNpmModuleAsync=r.extractNpmTarballAsync=r.extractLocalNpmTarballAsync=r.applyKnownNpmPackageNameRules=r.getResolvedTemplateName=r.splitNpmNameAndTag=r.applyBetaTag=void 0;const a=o(i(5642));const u=o(i(7147));const l=o(i(2037));const h=o(i(1017));const d=i(2781);const p=i(7573);const g=i(3837);const y=i(7943);const b=i(6581);const w=i(755);const v=i(3744);const E=i(7984)("expo:init:npm");const A=(0,g.promisify)(d.Stream.pipeline);function getTemporaryCacheFilePath(t="template-cache"){return h.default.join(l.default.tmpdir(),".create-expo-app",t)}function applyBetaTag(t){let[r,i]=splitNpmNameAndTag(t);if(!i&&y.env.EXPO_BETA){E("Using beta tag for",r);i="beta"}return joinNpmNameAndTag(r,i)}r.applyBetaTag=applyBetaTag;function joinNpmNameAndTag(t,r){return[t,r].filter(Boolean).join("@")}function splitNpmNameAndTag(t){const r=t.split("@").filter(Boolean);if(t.startsWith("@")){return["@"+r[0],r[1]]}return[r[0],r[1]]}r.splitNpmNameAndTag=splitNpmNameAndTag;function getResolvedTemplateName(t){let[r,i="latest"]=splitNpmNameAndTag(t);if(r.startsWith("@")){return joinNpmNameAndTag(r,i)}const o="expo-template-";if(w.ALIASES.includes(o+r)){r=o+r}if(w.ALIASES.includes(r)){if(i?.match(/^\d+$/)){return r+"@sdk-"+i}}return joinNpmNameAndTag(r,i)}r.getResolvedTemplateName=getResolvedTemplateName;function applyKnownNpmPackageNameRules(t){while(/^(\.|_)/.test(t)){t=t.substring(1)}t=t.toLowerCase().replace(/[^a-zA-Z0-9._\-/@]/g,"");return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"")||null}r.applyKnownNpmPackageNameRules=applyKnownNpmPackageNameRules;async function extractLocalNpmTarballAsync(t,r){const i=u.default.createReadStream(t);await extractNpmTarballAsync(i,r)}r.extractLocalNpmTarballAsync=extractLocalNpmTarballAsync;async function extractNpmTarballAsync(t,r){if(!t){throw new Error("Missing stream")}const{cwd:i,strip:o,name:a,fileList:l=[],filter:h}=r;await u.default.promises.mkdir(i,{recursive:true});await A(t,(0,p.extract)({cwd:i,filter:h,onentry:(0,b.createEntryResolver)(a),strip:o??1},l))}r.extractNpmTarballAsync=extractNpmTarballAsync;async function npmPackAsync(t,r=undefined,...i){const o=getNpmBin();const l=["pack",t,...i];const h=`${o} ${l.join(" ")}`;E("Run:",h,`(cwd: ${r??process.cwd()})`);if(r){await u.default.promises.mkdir(r,{recursive:true})}let d;try{d=(await(0,a.default)(o,[...l,"--json"],{cwd:r})).stdout?.trim()}catch(t){if(t?.stderr.match(/npm ERR! code E404/)){const r=t.stderr.match(/npm ERR! 404\s+'(.*)' is not in this registry\./)?.[1]??t.stderr;throw new Error(`NPM package not found: `+r)}throw t}if(!d){return null}try{const t=JSON.parse(d);if(Array.isArray(t)&&t.every(isNpmPackageInfo)){return t.map(sanitizeNpmPackageFilename)}else{throw new Error(`Invalid response from npm: ${d}`)}}catch(t){throw new Error(`Could not parse JSON returned from "${h}".\n\n${d}\n\nError: ${t.message}`)}}function getNpmBin(){return process.platform==="win32"?"npm.cmd":"npm"}async function getNpmInfoAsync(t,r){const i=await npmPackAsync(t,r,"--dry-run");if(i?.[0]){return i[0]}throw new Error(`Could not find npm package "${t}"`)}function isNpmPackageInfo(t){return t&&typeof t==="object"&&"id"in t&&"filename"in t&&"version"in t&&"files"in t}function sanitizeNpmPackageFilename(t){if(t.filename.startsWith("@")&&t.name.startsWith("@")){t.filename=t.filename.replace(/^@/,"").replace(/\//,"-")}return t}async function fileExistsAsync(t){try{const r=await u.default.promises.stat(t);return r.isFile()}catch{return false}}async function downloadAndExtractNpmModuleAsync(t,r){const i=getTemporaryCacheFilePath();E(`Looking for NPM tarball (id: ${t}, cache: ${i})`);await u.default.promises.mkdir(i,{recursive:true});const o=await getNpmInfoAsync(t,i);const a=h.default.join(i,o.filename);try{const o=await fileExistsAsync(a);const u=y.env.EXPO_NO_CACHE||r.disableCache;if(u||!o){E(`Downloading tarball for ${t} to ${i}...`);await npmPackAsync(t,i)}}catch(r){v.Log.error("Error downloading template package: "+t);throw r}try{await extractLocalNpmTarballAsync(a,{cwd:r.cwd,name:r.name})}catch(r){v.Log.error("Error extracting template package: "+t);throw r}}r.downloadAndExtractNpmModuleAsync=downloadAndExtractNpmModuleAsync},5897:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});const a=o(i(8746));const u=o(i(5418));const l=i(9756);const h=i(7984)("expo:init:update-check");async function shouldUpdate(){try{const t=await(0,u.default)(l);if(t?.latest){console.log();console.log(a.default.yellow.bold(`A new version of \`${l.name}\` is available`));console.log((0,a.default)`You can update by running: {cyan npm install -g ${l.name}}`);console.log()}}catch(t){h("Error checking for update:\n%O",t)}}r["default"]=shouldUpdate},9756:module=>{module.exports=eval("require")("../package.json")},9491:t=>{"use strict";t.exports=require("assert")},4300:t=>{"use strict";t.exports=require("buffer")},2081:t=>{"use strict";t.exports=require("child_process")},6113:t=>{"use strict";t.exports=require("crypto")},9523:t=>{"use strict";t.exports=require("dns")},2361:t=>{"use strict";t.exports=require("events")},7147:t=>{"use strict";t.exports=require("fs")},3685:t=>{"use strict";t.exports=require("http")},5687:t=>{"use strict";t.exports=require("https")},8188:t=>{"use strict";t.exports=require("module")},8061:t=>{"use strict";t.exports=require("node:assert")},6005:t=>{"use strict";t.exports=require("node:crypto")},5673:t=>{"use strict";t.exports=require("node:events")},7561:t=>{"use strict";t.exports=require("node:fs")},3977:t=>{"use strict";t.exports=require("node:fs/promises")},9411:t=>{"use strict";t.exports=require("node:path")},7742:t=>{"use strict";t.exports=require("node:process")},4492:t=>{"use strict";t.exports=require("node:stream")},6915:t=>{"use strict";t.exports=require("node:string_decoder")},1041:t=>{"use strict";t.exports=require("node:url")},2037:t=>{"use strict";t.exports=require("os")},1017:t=>{"use strict";t.exports=require("path")},4521:t=>{"use strict";t.exports=require("readline")},2781:t=>{"use strict";t.exports=require("stream")},6224:t=>{"use strict";t.exports=require("tty")},7310:t=>{"use strict";t.exports=require("url")},3837:t=>{"use strict";t.exports=require("util")},9796:t=>{"use strict";t.exports=require("zlib")},9539:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.isIdentifierChar=isIdentifierChar;r.isIdentifierName=isIdentifierName;r.isIdentifierStart=isIdentifierStart;let i="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";let o="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const a=new RegExp("["+i+"]");const u=new RegExp("["+i+o+"]");i=o=null;const l=[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,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,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,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,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,20,1,64,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,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,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,38,6,186,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,19,72,200,32,32,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,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,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,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,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,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191];const h=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,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,343,9,54,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,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,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,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239];function isInAstralSet(t,r){let i=65536;for(let o=0,a=r.length;o<a;o+=2){i+=r[o];if(i>t)return false;i+=r[o+1];if(i>=t)return true}return false}function isIdentifierStart(t){if(t<65)return t===36;if(t<=90)return true;if(t<97)return t===95;if(t<=122)return true;if(t<=65535){return t>=170&&a.test(String.fromCharCode(t))}return isInAstralSet(t,l)}function isIdentifierChar(t){if(t<48)return t===36;if(t<58)return true;if(t<65)return false;if(t<=90)return true;if(t<97)return t===95;if(t<=122)return true;if(t<=65535){return t>=170&&u.test(String.fromCharCode(t))}return isInAstralSet(t,l)||isInAstralSet(t,h)}function isIdentifierName(t){let r=true;for(let i=0;i<t.length;i++){let o=t.charCodeAt(i);if((o&64512)===55296&&i+1<t.length){const r=t.charCodeAt(++i);if((r&64512)===56320){o=65536+((o&1023)<<10)+(r&1023)}}if(r){r=false;if(!isIdentifierStart(o)){return false}}else if(!isIdentifierChar(o)){return false}}return!r}},4679:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});Object.defineProperty(r,"isIdentifierChar",{enumerable:true,get:function(){return o.isIdentifierChar}});Object.defineProperty(r,"isIdentifierName",{enumerable:true,get:function(){return o.isIdentifierName}});Object.defineProperty(r,"isIdentifierStart",{enumerable:true,get:function(){return o.isIdentifierStart}});Object.defineProperty(r,"isKeyword",{enumerable:true,get:function(){return a.isKeyword}});Object.defineProperty(r,"isReservedWord",{enumerable:true,get:function(){return a.isReservedWord}});Object.defineProperty(r,"isStrictBindOnlyReservedWord",{enumerable:true,get:function(){return a.isStrictBindOnlyReservedWord}});Object.defineProperty(r,"isStrictBindReservedWord",{enumerable:true,get:function(){return a.isStrictBindReservedWord}});Object.defineProperty(r,"isStrictReservedWord",{enumerable:true,get:function(){return a.isStrictReservedWord}});var o=i(9539);var a=i(11)},11:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.isKeyword=isKeyword;r.isReservedWord=isReservedWord;r.isStrictBindOnlyReservedWord=isStrictBindOnlyReservedWord;r.isStrictBindReservedWord=isStrictBindReservedWord;r.isStrictReservedWord=isStrictReservedWord;const i={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 o=new Set(i.keyword);const a=new Set(i.strict);const u=new Set(i.strictBind);function isReservedWord(t,r){return r&&t==="await"||t==="enum"}function isStrictReservedWord(t,r){return isReservedWord(t,r)||a.has(t)}function isStrictBindOnlyReservedWord(t){return u.has(t)}function isStrictBindReservedWord(t,r){return isStrictReservedWord(t,r)||isStrictBindOnlyReservedWord(t)}function isKeyword(t){return o.has(t)}},932:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=highlight;r.shouldHighlight=shouldHighlight;var o=i(8035);var a=i(4679);var u=_interopRequireWildcard(i(9397),true);function _getRequireWildcardCache(t){if("function"!=typeof WeakMap)return null;var r=new WeakMap,i=new WeakMap;return(_getRequireWildcardCache=function(t){return t?i:r})(t)}function _interopRequireWildcard(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var i=_getRequireWildcardCache(r);if(i&&i.has(t))return i.get(t);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if("default"!==u&&{}.hasOwnProperty.call(t,u)){var l=a?Object.getOwnPropertyDescriptor(t,u):null;l&&(l.get||l.set)?Object.defineProperty(o,u,l):o[u]=t[u]}return o.default=t,i&&i.set(t,o),o}const l=typeof process==="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?(0,u.createColors)(false):u.default;const compose=(t,r)=>i=>t(r(i));const h=new Set(["as","async","from","get","of","set"]);function getDefs(t){return{keyword:t.cyan,capitalized:t.yellow,jsxIdentifier:t.yellow,punctuator:t.yellow,number:t.magenta,string:t.green,regex:t.magenta,comment:t.gray,invalid:compose(compose(t.white,t.bgRed),t.bold)}}const d=/\r\n|[\n\r\u2028\u2029]/;const p=/^[()[\]{}]$/;let g;{const t=/^[a-z][\w-]*$/i;const getTokenType=function(r,i,o){if(r.type==="name"){if((0,a.isKeyword)(r.value)||(0,a.isStrictReservedWord)(r.value,true)||h.has(r.value)){return"keyword"}if(t.test(r.value)&&(o[i-1]==="<"||o.slice(i-2,i)==="</")){return"jsxIdentifier"}if(r.value[0]!==r.value[0].toLowerCase()){return"capitalized"}}if(r.type==="punctuator"&&p.test(r.value)){return"bracket"}if(r.type==="invalid"&&(r.value==="@"||r.value==="#")){return"punctuator"}return r.type};g=function*(t){let r;while(r=o.default.exec(t)){const i=o.matchToToken(r);yield{type:getTokenType(i,r.index,t),value:i.value}}}}function highlightTokens(t,r){let i="";for(const{type:o,value:a}of g(r)){const r=t[o];if(r){i+=a.split(d).map((t=>r(t))).join("\n")}else{i+=a}}return i}function shouldHighlight(t){return l.isColorSupported||t.forceColor}let y=undefined;function getColors(t){if(t){var r;(r=y)!=null?r:y=(0,u.createColors)(true);return y}return l}function highlight(t,r={}){if(t!==""&&shouldHighlight(r)){const i=getDefs(getColors(r.forceColor));return highlightTokens(i,t)}else{return t}}{let t,o;r.getChalk=({forceColor:r})=>{var a;(a=t)!=null?a:t=i(6870);if(r){var u;(u=o)!=null?u:o=new t.constructor({enabled:true,level:1});return o}return t}}},9129:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.WriteStreamSync=r.WriteStream=r.ReadStreamSync=r.ReadStream=void 0;const a=o(i(2361));const u=o(i(7147));const l=i(6014);const h=u.default.writev;const d=Symbol("_autoClose");const p=Symbol("_close");const g=Symbol("_ended");const y=Symbol("_fd");const b=Symbol("_finished");const w=Symbol("_flags");const v=Symbol("_flush");const E=Symbol("_handleChunk");const A=Symbol("_makeBuf");const _=Symbol("_mode");const C=Symbol("_needDrain");const S=Symbol("_onerror");const D=Symbol("_onopen");const x=Symbol("_onread");const O=Symbol("_onwrite");const R=Symbol("_open");const k=Symbol("_path");const P=Symbol("_pos");const T=Symbol("_queue");const M=Symbol("_read");const L=Symbol("_readSize");const I=Symbol("_reading");const $=Symbol("_remain");const N=Symbol("_size");const B=Symbol("_write");const j=Symbol("_writing");const H=Symbol("_defaultFlag");const G=Symbol("_errored");class ReadStream extends l.Minipass{[G]=false;[y];[k];[L];[I]=false;[N];[$];[d];constructor(t,r){r=r||{};super(r);this.readable=true;this.writable=false;if(typeof t!=="string"){throw new TypeError("path must be a string")}this[G]=false;this[y]=typeof r.fd==="number"?r.fd:undefined;this[k]=t;this[L]=r.readSize||16*1024*1024;this[I]=false;this[N]=typeof r.size==="number"?r.size:Infinity;this[$]=this[N];this[d]=typeof r.autoClose==="boolean"?r.autoClose:true;if(typeof this[y]==="number"){this[M]()}else{this[R]()}}get fd(){return this[y]}get path(){return this[k]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[R](){u.default.open(this[k],"r",((t,r)=>this[D](t,r)))}[D](t,r){if(t){this[S](t)}else{this[y]=r;this.emit("open",r);this[M]()}}[A](){return Buffer.allocUnsafe(Math.min(this[L],this[$]))}[M](){if(!this[I]){this[I]=true;const t=this[A]();if(t.length===0){return process.nextTick((()=>this[x](null,0,t)))}u.default.read(this[y],t,0,t.length,null,((t,r,i)=>this[x](t,r,i)))}}[x](t,r,i){this[I]=false;if(t){this[S](t)}else if(this[E](r,i)){this[M]()}}[p](){if(this[d]&&typeof this[y]==="number"){const t=this[y];this[y]=undefined;u.default.close(t,(t=>t?this.emit("error",t):this.emit("close")))}}[S](t){this[I]=true;this[p]();this.emit("error",t)}[E](t,r){let i=false;this[$]-=t;if(t>0){i=super.write(t<r.length?r.subarray(0,t):r)}if(t===0||this[$]<=0){i=false;this[p]();super.end()}return i}emit(t,...r){switch(t){case"prefinish":case"finish":return false;case"drain":if(typeof this[y]==="number"){this[M]()}return false;case"error":if(this[G]){return false}this[G]=true;return super.emit(t,...r);default:return super.emit(t,...r)}}}r.ReadStream=ReadStream;class ReadStreamSync extends ReadStream{[R](){let t=true;try{this[D](null,u.default.openSync(this[k],"r"));t=false}finally{if(t){this[p]()}}}[M](){let t=true;try{if(!this[I]){this[I]=true;do{const t=this[A]();const r=t.length===0?0:u.default.readSync(this[y],t,0,t.length,null);if(!this[E](r,t)){break}}while(true);this[I]=false}t=false}finally{if(t){this[p]()}}}[p](){if(this[d]&&typeof this[y]==="number"){const t=this[y];this[y]=undefined;u.default.closeSync(t);this.emit("close")}}}r.ReadStreamSync=ReadStreamSync;class WriteStream extends a.default{readable=false;writable=true;[G]=false;[j]=false;[g]=false;[T]=[];[C]=false;[k];[_];[d];[y];[H];[w];[b]=false;[P];constructor(t,r){r=r||{};super(r);this[k]=t;this[y]=typeof r.fd==="number"?r.fd:undefined;this[_]=r.mode===undefined?438:r.mode;this[P]=typeof r.start==="number"?r.start:undefined;this[d]=typeof r.autoClose==="boolean"?r.autoClose:true;const i=this[P]!==undefined?"r+":"w";this[H]=r.flags===undefined;this[w]=r.flags===undefined?i:r.flags;if(this[y]===undefined){this[R]()}}emit(t,...r){if(t==="error"){if(this[G]){return false}this[G]=true}return super.emit(t,...r)}get fd(){return this[y]}get path(){return this[k]}[S](t){this[p]();this[j]=true;this.emit("error",t)}[R](){u.default.open(this[k],this[w],this[_],((t,r)=>this[D](t,r)))}[D](t,r){if(this[H]&&this[w]==="r+"&&t&&t.code==="ENOENT"){this[w]="w";this[R]()}else if(t){this[S](t)}else{this[y]=r;this.emit("open",r);if(!this[j]){this[v]()}}}end(t,r){if(t){this.write(t,r)}this[g]=true;if(!this[j]&&!this[T].length&&typeof this[y]==="number"){this[O](null,0)}return this}write(t,r){if(typeof t==="string"){t=Buffer.from(t,r)}if(this[g]){this.emit("error",new Error("write() after end()"));return false}if(this[y]===undefined||this[j]||this[T].length){this[T].push(t);this[C]=true;return false}this[j]=true;this[B](t);return true}[B](t){u.default.write(this[y],t,0,t.length,this[P],((t,r)=>this[O](t,r)))}[O](t,r){if(t){this[S](t)}else{if(this[P]!==undefined&&typeof r==="number"){this[P]+=r}if(this[T].length){this[v]()}else{this[j]=false;if(this[g]&&!this[b]){this[b]=true;this[p]();this.emit("finish")}else if(this[C]){this[C]=false;this.emit("drain")}}}}[v](){if(this[T].length===0){if(this[g]){this[O](null,0)}}else if(this[T].length===1){this[B](this[T].pop())}else{const t=this[T];this[T]=[];h(this[y],t,this[P],((t,r)=>this[O](t,r)))}}[p](){if(this[d]&&typeof this[y]==="number"){const t=this[y];this[y]=undefined;u.default.close(t,(t=>t?this.emit("error",t):this.emit("close")))}}}r.WriteStream=WriteStream;class WriteStreamSync extends WriteStream{[R](){let t;if(this[H]&&this[w]==="r+"){try{t=u.default.openSync(this[k],this[w],this[_])}catch(t){if(t?.code==="ENOENT"){this[w]="w";return this[R]()}else{throw t}}}else{t=u.default.openSync(this[k],this[w],this[_])}this[D](null,t)}[p](){if(this[d]&&typeof this[y]==="number"){const t=this[y];this[y]=undefined;u.default.closeSync(t);this.emit("close")}}[B](t){let r=true;try{this[O](null,u.default.writeSync(this[y],t,0,t.length,this[P]));r=false}finally{if(r){try{this[p]()}catch{}}}}}r.WriteStreamSync=WriteStreamSync},5014:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.Glob=void 0;const o=i(542);const a=i(1041);const u=i(5715);const l=i(2499);const h=i(9660);const d=typeof process==="object"&&process&&typeof process.platform==="string"?process.platform:"linux";class Glob{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(t,r){if(!r)throw new TypeError("glob options required");this.withFileTypes=!!r.withFileTypes;this.signal=r.signal;this.follow=!!r.follow;this.dot=!!r.dot;this.dotRelative=!!r.dotRelative;this.nodir=!!r.nodir;this.mark=!!r.mark;if(!r.cwd){this.cwd=""}else if(r.cwd instanceof URL||r.cwd.startsWith("file://")){r.cwd=(0,a.fileURLToPath)(r.cwd)}this.cwd=r.cwd||"";this.root=r.root;this.magicalBraces=!!r.magicalBraces;this.nobrace=!!r.nobrace;this.noext=!!r.noext;this.realpath=!!r.realpath;this.absolute=r.absolute;this.includeChildMatches=r.includeChildMatches!==false;this.noglobstar=!!r.noglobstar;this.matchBase=!!r.matchBase;this.maxDepth=typeof r.maxDepth==="number"?r.maxDepth:Infinity;this.stat=!!r.stat;this.ignore=r.ignore;if(this.withFileTypes&&this.absolute!==undefined){throw new Error("cannot set absolute and withFileTypes:true")}if(typeof t==="string"){t=[t]}this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===false;if(this.windowsPathsNoEscape){t=t.map((t=>t.replace(/\\/g,"/")))}if(this.matchBase){if(r.noglobstar){throw new TypeError("base matching requires globstar")}t=t.map((t=>t.includes("/")?t:`./**/${t}`))}this.pattern=t;this.platform=r.platform||d;this.opts={...r,platform:this.platform};if(r.scurry){this.scurry=r.scurry;if(r.nocase!==undefined&&r.nocase!==r.scurry.nocase){throw new Error("nocase option contradicts provided scurry option")}}else{const t=r.platform==="win32"?u.PathScurryWin32:r.platform==="darwin"?u.PathScurryDarwin:r.platform?u.PathScurryPosix:u.PathScurry;this.scurry=new t(this.cwd,{nocase:r.nocase,fs:r.fs})}this.nocase=this.scurry.nocase;const i=this.platform==="darwin"||this.platform==="win32";const h={...r,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:i,nocomment:true,noext:this.noext,nonegate:true,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug};const p=this.pattern.map((t=>new o.Minimatch(t,h)));const[g,y]=p.reduce(((t,r)=>{t[0].push(...r.set);t[1].push(...r.globParts);return t}),[[],[]]);this.patterns=g.map(((t,r)=>{const i=y[r];if(!i)throw new Error("invalid pattern object");return new l.Pattern(t,i,0,this.platform)}))}async walk(){return[...await new h.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==Infinity?this.maxDepth+this.scurry.cwd.depth():Infinity,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new h.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==Infinity?this.maxDepth+this.scurry.cwd.depth():Infinity,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new h.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==Infinity?this.maxDepth+this.scurry.cwd.depth():Infinity,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new h.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==Infinity?this.maxDepth+this.scurry.cwd.depth():Infinity,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}}r.Glob=Glob},859:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.hasMagic=void 0;const o=i(542);const hasMagic=(t,r={})=>{if(!Array.isArray(t)){t=[t]}for(const i of t){if(new o.Minimatch(i,r).hasMagic())return true}return false};r.hasMagic=hasMagic},1975:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.Ignore=void 0;const o=i(542);const a=i(2499);const u=typeof process==="object"&&process&&typeof process.platform==="string"?process.platform:"linux";class Ignore{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(t,{nobrace:r,nocase:i,noext:o,noglobstar:a,platform:l=u}){this.relative=[];this.absolute=[];this.relativeChildren=[];this.absoluteChildren=[];this.platform=l;this.mmopts={dot:true,nobrace:r,nocase:i,noext:o,noglobstar:a,optimizationLevel:2,platform:l,nocomment:true,nonegate:true};for(const r of t)this.add(r)}add(t){const r=new o.Minimatch(t,this.mmopts);for(let t=0;t<r.set.length;t++){const i=r.set[t];const u=r.globParts[t];if(!i||!u){throw new Error("invalid pattern object")}while(i[0]==="."&&u[0]==="."){i.shift();u.shift()}const l=new a.Pattern(i,u,0,this.platform);const h=new o.Minimatch(l.globString(),this.mmopts);const d=u[u.length-1]==="**";const p=l.isAbsolute();if(p)this.absolute.push(h);else this.relative.push(h);if(d){if(p)this.absoluteChildren.push(h);else this.relativeChildren.push(h)}}}ignored(t){const r=t.fullpath();const i=`${r}/`;const o=t.relative()||".";const a=`${o}/`;for(const t of this.relative){if(t.match(o)||t.match(a))return true}for(const t of this.absolute){if(t.match(r)||t.match(i))return true}return false}childrenIgnored(t){const r=t.fullpath()+"/";const i=(t.relative()||".")+"/";for(const t of this.relativeChildren){if(t.match(i))return true}for(const t of this.absoluteChildren){if(t.match(r))return true}return false}}r.Ignore=Ignore},8743:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.glob=r.sync=r.iterate=r.iterateSync=r.stream=r.streamSync=r.Ignore=r.hasMagic=r.Glob=r.unescape=r.escape=void 0;r.globStreamSync=globStreamSync;r.globStream=globStream;r.globSync=globSync;r.globIterateSync=globIterateSync;r.globIterate=globIterate;const o=i(542);const a=i(5014);const u=i(859);var l=i(542);Object.defineProperty(r,"escape",{enumerable:true,get:function(){return l.escape}});Object.defineProperty(r,"unescape",{enumerable:true,get:function(){return l.unescape}});var h=i(5014);Object.defineProperty(r,"Glob",{enumerable:true,get:function(){return h.Glob}});var d=i(859);Object.defineProperty(r,"hasMagic",{enumerable:true,get:function(){return d.hasMagic}});var p=i(1975);Object.defineProperty(r,"Ignore",{enumerable:true,get:function(){return p.Ignore}});function globStreamSync(t,r={}){return new a.Glob(t,r).streamSync()}function globStream(t,r={}){return new a.Glob(t,r).stream()}function globSync(t,r={}){return new a.Glob(t,r).walkSync()}async function glob_(t,r={}){return new a.Glob(t,r).walk()}function globIterateSync(t,r={}){return new a.Glob(t,r).iterateSync()}function globIterate(t,r={}){return new a.Glob(t,r).iterate()}r.streamSync=globStreamSync;r.stream=Object.assign(globStream,{sync:globStreamSync});r.iterateSync=globIterateSync;r.iterate=Object.assign(globIterate,{sync:globIterateSync});r.sync=Object.assign(globSync,{stream:globStreamSync,iterate:globIterateSync});r.glob=Object.assign(glob_,{glob:glob_,globSync:globSync,sync:r.sync,globStream:globStream,stream:r.stream,globStreamSync:globStreamSync,streamSync:r.streamSync,globIterate:globIterate,iterate:r.iterate,globIterateSync:globIterateSync,iterateSync:r.iterateSync,Glob:a.Glob,hasMagic:u.hasMagic,escape:o.escape,unescape:o.unescape});r.glob.glob=r.glob},2499:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.Pattern=void 0;const o=i(542);const isPatternList=t=>t.length>=1;const isGlobList=t=>t.length>=1;class Pattern{#s;#i;#n;length;#o;#a;#u;#l;#c;#h;#f=true;constructor(t,r,i,o){if(!isPatternList(t)){throw new TypeError("empty pattern list")}if(!isGlobList(r)){throw new TypeError("empty glob list")}if(r.length!==t.length){throw new TypeError("mismatched pattern list and glob list lengths")}this.length=t.length;if(i<0||i>=this.length){throw new TypeError("index out of range")}this.#s=t;this.#i=r;this.#n=i;this.#o=o;if(this.#n===0){if(this.isUNC()){const[t,r,i,o,...a]=this.#s;const[u,l,h,d,...p]=this.#i;if(a[0]===""){a.shift();p.shift()}const g=[t,r,i,o,""].join("/");const y=[u,l,h,d,""].join("/");this.#s=[g,...a];this.#i=[y,...p];this.length=this.#s.length}else if(this.isDrive()||this.isAbsolute()){const[t,...r]=this.#s;const[i,...o]=this.#i;if(r[0]===""){r.shift();o.shift()}const a=t+"/";const u=i+"/";this.#s=[a,...r];this.#i=[u,...o];this.length=this.#s.length}}}pattern(){return this.#s[this.#n]}isString(){return typeof this.#s[this.#n]==="string"}isGlobstar(){return this.#s[this.#n]===o.GLOBSTAR}isRegExp(){return this.#s[this.#n]instanceof RegExp}globString(){return this.#u=this.#u||(this.#n===0?this.isAbsolute()?this.#i[0]+this.#i.slice(1).join("/"):this.#i.join("/"):this.#i.slice(this.#n).join("/"))}hasMore(){return this.length>this.#n+1}rest(){if(this.#a!==undefined)return this.#a;if(!this.hasMore())return this.#a=null;this.#a=new Pattern(this.#s,this.#i,this.#n+1,this.#o);this.#a.#h=this.#h;this.#a.#c=this.#c;this.#a.#l=this.#l;return this.#a}isUNC(){const t=this.#s;return this.#c!==undefined?this.#c:this.#c=this.#o==="win32"&&this.#n===0&&t[0]===""&&t[1]===""&&typeof t[2]==="string"&&!!t[2]&&typeof t[3]==="string"&&!!t[3]}isDrive(){const t=this.#s;return this.#l!==undefined?this.#l:this.#l=this.#o==="win32"&&this.#n===0&&this.length>1&&typeof t[0]==="string"&&/^[a-z]:$/i.test(t[0])}isAbsolute(){const t=this.#s;return this.#h!==undefined?this.#h:this.#h=t[0]===""&&t.length>1||this.isDrive()||this.isUNC()}root(){const t=this.#s[0];return typeof t==="string"&&this.isAbsolute()&&this.#n===0?t:""}checkFollowGlobstar(){return!(this.#n===0||!this.isGlobstar()||!this.#f)}markFollowGlobstar(){if(this.#n===0||!this.isGlobstar()||!this.#f)return false;this.#f=false;return true}}r.Pattern=Pattern},605:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.Processor=r.SubWalks=r.MatchRecord=r.HasWalkedCache=void 0;const o=i(542);class HasWalkedCache{store;constructor(t=new Map){this.store=t}copy(){return new HasWalkedCache(new Map(this.store))}hasWalked(t,r){return this.store.get(t.fullpath())?.has(r.globString())}storeWalked(t,r){const i=t.fullpath();const o=this.store.get(i);if(o)o.add(r.globString());else this.store.set(i,new Set([r.globString()]))}}r.HasWalkedCache=HasWalkedCache;class MatchRecord{store=new Map;add(t,r,i){const o=(r?2:0)|(i?1:0);const a=this.store.get(t);this.store.set(t,a===undefined?o:o&a)}entries(){return[...this.store.entries()].map((([t,r])=>[t,!!(r&2),!!(r&1)]))}}r.MatchRecord=MatchRecord;class SubWalks{store=new Map;add(t,r){if(!t.canReaddir()){return}const i=this.store.get(t);if(i){if(!i.find((t=>t.globString()===r.globString()))){i.push(r)}}else this.store.set(t,[r])}get(t){const r=this.store.get(t);if(!r){throw new Error("attempting to walk unknown path")}return r}entries(){return this.keys().map((t=>[t,this.store.get(t)]))}keys(){return[...this.store.keys()].filter((t=>t.canReaddir()))}}r.SubWalks=SubWalks;class Processor{hasWalkedCache;matches=new MatchRecord;subwalks=new SubWalks;patterns;follow;dot;opts;constructor(t,r){this.opts=t;this.follow=!!t.follow;this.dot=!!t.dot;this.hasWalkedCache=r?r.copy():new HasWalkedCache}processPatterns(t,r){this.patterns=r;const i=r.map((r=>[t,r]));for(let[t,r]of i){this.hasWalkedCache.storeWalked(t,r);const i=r.root();const a=r.isAbsolute()&&this.opts.absolute!==false;if(i){t=t.resolve(i==="/"&&this.opts.root!==undefined?this.opts.root:i);const o=r.rest();if(!o){this.matches.add(t,true,false);continue}else{r=o}}if(t.isENOENT())continue;let u;let l;let h=false;while(typeof(u=r.pattern())==="string"&&(l=r.rest())){const i=t.resolve(u);t=i;r=l;h=true}u=r.pattern();l=r.rest();if(h){if(this.hasWalkedCache.hasWalked(t,r))continue;this.hasWalkedCache.storeWalked(t,r)}if(typeof u==="string"){const r=u===".."||u===""||u===".";this.matches.add(t.resolve(u),a,r);continue}else if(u===o.GLOBSTAR){if(!t.isSymbolicLink()||this.follow||r.checkFollowGlobstar()){this.subwalks.add(t,r)}const i=l?.pattern();const o=l?.rest();if(!l||(i===""||i===".")&&!o){this.matches.add(t,a,i===""||i===".")}else{if(i===".."){const r=t.parent||t;if(!o)this.matches.add(r,a,true);else if(!this.hasWalkedCache.hasWalked(r,o)){this.subwalks.add(r,o)}}}}else if(u instanceof RegExp){this.subwalks.add(t,r)}}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new Processor(this.opts,this.hasWalkedCache)}filterEntries(t,r){const i=this.subwalks.get(t);const a=this.child();for(const t of r){for(const r of i){const i=r.isAbsolute();const u=r.pattern();const l=r.rest();if(u===o.GLOBSTAR){a.testGlobstar(t,r,l,i)}else if(u instanceof RegExp){a.testRegExp(t,u,l,i)}else{a.testString(t,u,l,i)}}}return a}testGlobstar(t,r,i,o){if(this.dot||!t.name.startsWith(".")){if(!r.hasMore()){this.matches.add(t,o,false)}if(t.canReaddir()){if(this.follow||!t.isSymbolicLink()){this.subwalks.add(t,r)}else if(t.isSymbolicLink()){if(i&&r.checkFollowGlobstar()){this.subwalks.add(t,i)}else if(r.markFollowGlobstar()){this.subwalks.add(t,r)}}}}if(i){const r=i.pattern();if(typeof r==="string"&&r!==".."&&r!==""&&r!=="."){this.testString(t,r,i.rest(),o)}else if(r===".."){const r=t.parent||t;this.subwalks.add(r,i)}else if(r instanceof RegExp){this.testRegExp(t,r,i.rest(),o)}}}testRegExp(t,r,i,o){if(!r.test(t.name))return;if(!i){this.matches.add(t,o,false)}else{this.subwalks.add(t,i)}}testString(t,r,i,o){if(!t.isNamed(r))return;if(!i){this.matches.add(t,o,false)}else{this.subwalks.add(t,i)}}}r.Processor=Processor},9660:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.GlobStream=r.GlobWalker=r.GlobUtil=void 0;const o=i(6014);const a=i(1975);const u=i(605);const makeIgnore=(t,r)=>typeof t==="string"?new a.Ignore([t],r):Array.isArray(t)?new a.Ignore(t,r):t;class GlobUtil{path;patterns;opts;seen=new Set;paused=false;aborted=false;#d=[];#p;#m;signal;maxDepth;includeChildMatches;constructor(t,r,i){this.patterns=t;this.path=r;this.opts=i;this.#m=!i.posix&&i.platform==="win32"?"\\":"/";this.includeChildMatches=i.includeChildMatches!==false;if(i.ignore||!this.includeChildMatches){this.#p=makeIgnore(i.ignore??[],i);if(!this.includeChildMatches&&typeof this.#p.add!=="function"){const t="cannot ignore child matches, ignore lacks add() method.";throw new Error(t)}}this.maxDepth=i.maxDepth||Infinity;if(i.signal){this.signal=i.signal;this.signal.addEventListener("abort",(()=>{this.#d.length=0}))}}#g(t){return this.seen.has(t)||!!this.#p?.ignored?.(t)}#y(t){return!!this.#p?.childrenIgnored?.(t)}pause(){this.paused=true}resume(){if(this.signal?.aborted)return;this.paused=false;let t=undefined;while(!this.paused&&(t=this.#d.shift())){t()}}onResume(t){if(this.signal?.aborted)return;if(!this.paused){t()}else{this.#d.push(t)}}async matchCheck(t,r){if(r&&this.opts.nodir)return undefined;let i;if(this.opts.realpath){i=t.realpathCached()||await t.realpath();if(!i)return undefined;t=i}const o=t.isUnknown()||this.opts.stat;const a=o?await t.lstat():t;if(this.opts.follow&&this.opts.nodir&&a?.isSymbolicLink()){const t=await a.realpath();if(t&&(t.isUnknown()||this.opts.stat)){await t.lstat()}}return this.matchCheckTest(a,r)}matchCheckTest(t,r){return t&&(this.maxDepth===Infinity||t.depth()<=this.maxDepth)&&(!r||t.canReaddir())&&(!this.opts.nodir||!t.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!t.isSymbolicLink()||!t.realpathCached()?.isDirectory())&&!this.#g(t)?t:undefined}matchCheckSync(t,r){if(r&&this.opts.nodir)return undefined;let i;if(this.opts.realpath){i=t.realpathCached()||t.realpathSync();if(!i)return undefined;t=i}const o=t.isUnknown()||this.opts.stat;const a=o?t.lstatSync():t;if(this.opts.follow&&this.opts.nodir&&a?.isSymbolicLink()){const t=a.realpathSync();if(t&&(t?.isUnknown()||this.opts.stat)){t.lstatSync()}}return this.matchCheckTest(a,r)}matchFinish(t,r){if(this.#g(t))return;if(!this.includeChildMatches&&this.#p?.add){const r=`${t.relativePosix()}/**`;this.#p.add(r)}const i=this.opts.absolute===undefined?r:this.opts.absolute;this.seen.add(t);const o=this.opts.mark&&t.isDirectory()?this.#m:"";if(this.opts.withFileTypes){this.matchEmit(t)}else if(i){const r=this.opts.posix?t.fullpathPosix():t.fullpath();this.matchEmit(r+o)}else{const r=this.opts.posix?t.relativePosix():t.relative();const i=this.opts.dotRelative&&!r.startsWith(".."+this.#m)?"."+this.#m:"";this.matchEmit(!r?"."+o:i+r+o)}}async match(t,r,i){const o=await this.matchCheck(t,i);if(o)this.matchFinish(o,r)}matchSync(t,r,i){const o=this.matchCheckSync(t,i);if(o)this.matchFinish(o,r)}walkCB(t,r,i){if(this.signal?.aborted)i();this.walkCB2(t,r,new u.Processor(this.opts),i)}walkCB2(t,r,i,o){if(this.#y(t))return o();if(this.signal?.aborted)o();if(this.paused){this.onResume((()=>this.walkCB2(t,r,i,o)));return}i.processPatterns(t,r);let a=1;const next=()=>{if(--a===0)o()};for(const[t,r,o]of i.matches.entries()){if(this.#g(t))continue;a++;this.match(t,r,o).then((()=>next()))}for(const t of i.subwalkTargets()){if(this.maxDepth!==Infinity&&t.depth()>=this.maxDepth){continue}a++;const r=t.readdirCached();if(t.calledReaddir())this.walkCB3(t,r,i,next);else{t.readdirCB(((r,o)=>this.walkCB3(t,o,i,next)),true)}}next()}walkCB3(t,r,i,o){i=i.filterEntries(t,r);let a=1;const next=()=>{if(--a===0)o()};for(const[t,r,o]of i.matches.entries()){if(this.#g(t))continue;a++;this.match(t,r,o).then((()=>next()))}for(const[t,r]of i.subwalks.entries()){a++;this.walkCB2(t,r,i.child(),next)}next()}walkCBSync(t,r,i){if(this.signal?.aborted)i();this.walkCB2Sync(t,r,new u.Processor(this.opts),i)}walkCB2Sync(t,r,i,o){if(this.#y(t))return o();if(this.signal?.aborted)o();if(this.paused){this.onResume((()=>this.walkCB2Sync(t,r,i,o)));return}i.processPatterns(t,r);let a=1;const next=()=>{if(--a===0)o()};for(const[t,r,o]of i.matches.entries()){if(this.#g(t))continue;this.matchSync(t,r,o)}for(const t of i.subwalkTargets()){if(this.maxDepth!==Infinity&&t.depth()>=this.maxDepth){continue}a++;const r=t.readdirSync();this.walkCB3Sync(t,r,i,next)}next()}walkCB3Sync(t,r,i,o){i=i.filterEntries(t,r);let a=1;const next=()=>{if(--a===0)o()};for(const[t,r,o]of i.matches.entries()){if(this.#g(t))continue;this.matchSync(t,r,o)}for(const[t,r]of i.subwalks.entries()){a++;this.walkCB2Sync(t,r,i.child(),next)}next()}}r.GlobUtil=GlobUtil;class GlobWalker extends GlobUtil{matches=new Set;constructor(t,r,i){super(t,r,i)}matchEmit(t){this.matches.add(t)}async walk(){if(this.signal?.aborted)throw this.signal.reason;if(this.path.isUnknown()){await this.path.lstat()}await new Promise(((t,r)=>{this.walkCB(this.path,this.patterns,(()=>{if(this.signal?.aborted){r(this.signal.reason)}else{t(this.matches)}}))}));return this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;if(this.path.isUnknown()){this.path.lstatSync()}this.walkCBSync(this.path,this.patterns,(()=>{if(this.signal?.aborted)throw this.signal.reason}));return this.matches}}r.GlobWalker=GlobWalker;class GlobStream extends GlobUtil{results;constructor(t,r,i){super(t,r,i);this.results=new o.Minipass({signal:this.signal,objectMode:true});this.results.on("drain",(()=>this.resume()));this.results.on("resume",(()=>this.resume()))}matchEmit(t){this.results.write(t);if(!this.results.flowing)this.pause()}stream(){const t=this.path;if(t.isUnknown()){t.lstat().then((()=>{this.walkCB(t,this.patterns,(()=>this.results.end()))}))}else{this.walkCB(t,this.patterns,(()=>this.results.end()))}return this.results}streamSync(){if(this.path.isUnknown()){this.path.lstatSync()}this.walkCBSync(this.path,this.patterns,(()=>this.results.end()));return this.results}}r.GlobStream=GlobStream},3857:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.assertValidPattern=void 0;const i=1024*64;const assertValidPattern=t=>{if(typeof t!=="string"){throw new TypeError("invalid pattern")}if(t.length>i){throw new TypeError("pattern is too long")}};r.assertValidPattern=assertValidPattern},8543:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.AST=void 0;const o=i(9646);const a=i(5640);const u=new Set(["!","?","+","*","@"]);const isExtglobType=t=>u.has(t);const l="(?!(?:^|/)\\.\\.?(?:$|/))";const h="(?!\\.)";const d=new Set(["[","."]);const p=new Set(["..","."]);const g=new Set("().*{}+?[]^$\\!");const regExpEscape=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");const y="[^/]";const b=y+"*?";const w=y+"+?";class AST{type;#b;#w;#v=false;#E=[];#A;#_;#C;#S=false;#D;#x;#O=false;constructor(t,r,i={}){this.type=t;if(t)this.#w=true;this.#A=r;this.#b=this.#A?this.#A.#b:this;this.#D=this.#b===this?i:this.#b.#D;this.#C=this.#b===this?[]:this.#b.#C;if(t==="!"&&!this.#b.#S)this.#C.push(this);this.#_=this.#A?this.#A.#E.length:0}get hasMagic(){if(this.#w!==undefined)return this.#w;for(const t of this.#E){if(typeof t==="string")continue;if(t.type||t.hasMagic)return this.#w=true}return this.#w}toString(){if(this.#x!==undefined)return this.#x;if(!this.type){return this.#x=this.#E.map((t=>String(t))).join("")}else{return this.#x=this.type+"("+this.#E.map((t=>String(t))).join("|")+")"}}#R(){if(this!==this.#b)throw new Error("should only call on root");if(this.#S)return this;this.toString();this.#S=true;let t;while(t=this.#C.pop()){if(t.type!=="!")continue;let r=t;let i=r.#A;while(i){for(let o=r.#_+1;!i.type&&o<i.#E.length;o++){for(const r of t.#E){if(typeof r==="string"){throw new Error("string part in extglob AST??")}r.copyIn(i.#E[o])}}r=i;i=r.#A}}return this}push(...t){for(const r of t){if(r==="")continue;if(typeof r!=="string"&&!(r instanceof AST&&r.#A===this)){throw new Error("invalid part: "+r)}this.#E.push(r)}}toJSON(){const t=this.type===null?this.#E.slice().map((t=>typeof t==="string"?t:t.toJSON())):[this.type,...this.#E.map((t=>t.toJSON()))];if(this.isStart()&&!this.type)t.unshift([]);if(this.isEnd()&&(this===this.#b||this.#b.#S&&this.#A?.type==="!")){t.push({})}return t}isStart(){if(this.#b===this)return true;if(!this.#A?.isStart())return false;if(this.#_===0)return true;const t=this.#A;for(let r=0;r<this.#_;r++){const i=t.#E[r];if(!(i instanceof AST&&i.type==="!")){return false}}return true}isEnd(){if(this.#b===this)return true;if(this.#A?.type==="!")return true;if(!this.#A?.isEnd())return false;if(!this.type)return this.#A?.isEnd();const t=this.#A?this.#A.#E.length:0;return this.#_===t-1}copyIn(t){if(typeof t==="string")this.push(t);else this.push(t.clone(this))}clone(t){const r=new AST(this.type,t);for(const t of this.#E){r.copyIn(t)}return r}static#k(t,r,i,o){let a=false;let u=false;let l=-1;let h=false;if(r.type===null){let d=i;let p="";while(d<t.length){const i=t.charAt(d++);if(a||i==="\\"){a=!a;p+=i;continue}if(u){if(d===l+1){if(i==="^"||i==="!"){h=true}}else if(i==="]"&&!(d===l+2&&h)){u=false}p+=i;continue}else if(i==="["){u=true;l=d;h=false;p+=i;continue}if(!o.noext&&isExtglobType(i)&&t.charAt(d)==="("){r.push(p);p="";const a=new AST(i,r);d=AST.#k(t,a,d,o);r.push(a);continue}p+=i}r.push(p);return d}let d=i+1;let p=new AST(null,r);const g=[];let y="";while(d<t.length){const i=t.charAt(d++);if(a||i==="\\"){a=!a;y+=i;continue}if(u){if(d===l+1){if(i==="^"||i==="!"){h=true}}else if(i==="]"&&!(d===l+2&&h)){u=false}y+=i;continue}else if(i==="["){u=true;l=d;h=false;y+=i;continue}if(isExtglobType(i)&&t.charAt(d)==="("){p.push(y);y="";const r=new AST(i,p);p.push(r);d=AST.#k(t,r,d,o);continue}if(i==="|"){p.push(y);y="";g.push(p);p=new AST(null,r);continue}if(i===")"){if(y===""&&r.#E.length===0){r.#O=true}p.push(y);y="";r.push(...g,p);return d}y+=i}r.type=null;r.#w=undefined;r.#E=[t.substring(i-1)];return d}static fromGlob(t,r={}){const i=new AST(null,undefined,r);AST.#k(t,i,0,r);return i}toMMPattern(){if(this!==this.#b)return this.#b.toMMPattern();const t=this.toString();const[r,i,o,a]=this.toRegExpSource();const u=o||this.#w||this.#D.nocase&&!this.#D.nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase();if(!u){return i}const l=(this.#D.nocase?"i":"")+(a?"u":"");return Object.assign(new RegExp(`^${r}$`,l),{_src:r,_glob:t})}get options(){return this.#D}toRegExpSource(t){const r=t??!!this.#D.dot;if(this.#b===this)this.#R();if(!this.type){const i=this.isStart()&&this.isEnd();const o=this.#E.map((r=>{const[o,a,u,l]=typeof r==="string"?AST.#F(r,this.#w,i):r.toRegExpSource(t);this.#w=this.#w||u;this.#v=this.#v||l;return o})).join("");let u="";if(this.isStart()){if(typeof this.#E[0]==="string"){const i=this.#E.length===1&&p.has(this.#E[0]);if(!i){const i=d;const a=r&&i.has(o.charAt(0))||o.startsWith("\\.")&&i.has(o.charAt(2))||o.startsWith("\\.\\.")&&i.has(o.charAt(4));const p=!r&&!t&&i.has(o.charAt(0));u=a?l:p?h:""}}}let g="";if(this.isEnd()&&this.#b.#S&&this.#A?.type==="!"){g="(?:$|\\/)"}const y=u+o+g;return[y,(0,a.unescape)(o),this.#w=!!this.#w,this.#v]}const i=this.type==="*"||this.type==="+";const o=this.type==="!"?"(?:(?!(?:":"(?:";let u=this.#P(r);if(this.isStart()&&this.isEnd()&&!u&&this.type!=="!"){const t=this.toString();this.#E=[t];this.type=null;this.#w=undefined;return[t,(0,a.unescape)(this.toString()),false,false]}let g=!i||t||r||!h?"":this.#P(true);if(g===u){g=""}if(g){u=`(?:${u})(?:${g})*?`}let y="";if(this.type==="!"&&this.#O){y=(this.isStart()&&!r?h:"")+w}else{const i=this.type==="!"?"))"+(this.isStart()&&!r&&!t?h:"")+b+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&g?")":this.type==="*"&&g?`)?`:`)${this.type}`;y=o+u+i}return[y,(0,a.unescape)(u),this.#w=!!this.#w,this.#v]}#P(t){return this.#E.map((r=>{if(typeof r==="string"){throw new Error("string type in extglob ast??")}const[i,o,a,u]=r.toRegExpSource(t);this.#v=this.#v||u;return i})).filter((t=>!(this.isStart()&&this.isEnd())||!!t)).join("|")}static#F(t,r,i=false){let u=false;let l="";let h=false;for(let a=0;a<t.length;a++){const d=t.charAt(a);if(u){u=false;l+=(g.has(d)?"\\":"")+d;continue}if(d==="\\"){if(a===t.length-1){l+="\\\\"}else{u=true}continue}if(d==="["){const[i,u,d,p]=(0,o.parseClass)(t,a);if(d){l+=i;h=h||u;a+=d-1;r=r||p;continue}}if(d==="*"){if(i&&t==="*")l+=w;else l+=b;r=true;continue}if(d==="?"){l+=y;r=true;continue}l+=regExpEscape(d)}return[l,(0,a.unescape)(t),!!r,h]}}r.AST=AST},9646:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.parseClass=void 0;const i={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",true],"[:alpha:]":["\\p{L}\\p{Nl}",true],"[:ascii:]":["\\x"+"00-\\x"+"7f",false],"[:blank:]":["\\p{Zs}\\t",true],"[:cntrl:]":["\\p{Cc}",true],"[:digit:]":["\\p{Nd}",true],"[:graph:]":["\\p{Z}\\p{C}",true,true],"[:lower:]":["\\p{Ll}",true],"[:print:]":["\\p{C}",true],"[:punct:]":["\\p{P}",true],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",true],"[:upper:]":["\\p{Lu}",true],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",true],"[:xdigit:]":["A-Fa-f0-9",false]};const braceEscape=t=>t.replace(/[[\]\\-]/g,"\\$&");const regexpEscape=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");const rangesToString=t=>t.join("");const parseClass=(t,r)=>{const o=r;if(t.charAt(o)!=="["){throw new Error("not in a brace expression")}const a=[];const u=[];let l=o+1;let h=false;let d=false;let p=false;let g=false;let y=o;let b="";e:while(l<t.length){const r=t.charAt(l);if((r==="!"||r==="^")&&l===o+1){g=true;l++;continue}if(r==="]"&&h&&!p){y=l+1;break}h=true;if(r==="\\"){if(!p){p=true;l++;continue}}if(r==="["&&!p){for(const[r,[h,p,g]]of Object.entries(i)){if(t.startsWith(r,l)){if(b){return["$.",false,t.length-o,true]}l+=r.length;if(g)u.push(h);else a.push(h);d=d||p;continue e}}}p=false;if(b){if(r>b){a.push(braceEscape(b)+"-"+braceEscape(r))}else if(r===b){a.push(braceEscape(r))}b="";l++;continue}if(t.startsWith("-]",l+1)){a.push(braceEscape(r+"-"));l+=2;continue}if(t.startsWith("-",l+1)){b=r;l+=2;continue}a.push(braceEscape(r));l++}if(y<l){return["",false,0,false]}if(!a.length&&!u.length){return["$.",false,t.length-o,true]}if(u.length===0&&a.length===1&&/^\\?.$/.test(a[0])&&!g){const t=a[0].length===2?a[0].slice(-1):a[0];return[regexpEscape(t),false,y-o,false]}const w="["+(g?"^":"")+rangesToString(a)+"]";const v="["+(g?"":"^")+rangesToString(u)+"]";const E=a.length&&u.length?"("+w+"|"+v+")":a.length?w:v;return[E,d,y-o,true]};r.parseClass=parseClass},7504:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.escape=void 0;const escape=(t,{windowsPathsNoEscape:r=false}={})=>r?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&");r.escape=escape},542:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.unescape=r.escape=r.AST=r.Minimatch=r.match=r.makeRe=r.braceExpand=r.defaults=r.filter=r.GLOBSTAR=r.sep=r.minimatch=void 0;const a=o(i(2297));const u=i(3857);const l=i(8543);const h=i(7504);const d=i(5640);const minimatch=(t,r,i={})=>{(0,u.assertValidPattern)(r);if(!i.nocomment&&r.charAt(0)==="#"){return false}return new Minimatch(r,i).match(t)};r.minimatch=minimatch;const p=/^\*+([^+@!?\*\[\(]*)$/;const starDotExtTest=t=>r=>!r.startsWith(".")&&r.endsWith(t);const starDotExtTestDot=t=>r=>r.endsWith(t);const starDotExtTestNocase=t=>{t=t.toLowerCase();return r=>!r.startsWith(".")&&r.toLowerCase().endsWith(t)};const starDotExtTestNocaseDot=t=>{t=t.toLowerCase();return r=>r.toLowerCase().endsWith(t)};const g=/^\*+\.\*+$/;const starDotStarTest=t=>!t.startsWith(".")&&t.includes(".");const starDotStarTestDot=t=>t!=="."&&t!==".."&&t.includes(".");const y=/^\.\*+$/;const dotStarTest=t=>t!=="."&&t!==".."&&t.startsWith(".");const b=/^\*+$/;const starTest=t=>t.length!==0&&!t.startsWith(".");const starTestDot=t=>t.length!==0&&t!=="."&&t!=="..";const w=/^\?+([^+@!?\*\[\(]*)?$/;const qmarksTestNocase=([t,r=""])=>{const i=qmarksTestNoExt([t]);if(!r)return i;r=r.toLowerCase();return t=>i(t)&&t.toLowerCase().endsWith(r)};const qmarksTestNocaseDot=([t,r=""])=>{const i=qmarksTestNoExtDot([t]);if(!r)return i;r=r.toLowerCase();return t=>i(t)&&t.toLowerCase().endsWith(r)};const qmarksTestDot=([t,r=""])=>{const i=qmarksTestNoExtDot([t]);return!r?i:t=>i(t)&&t.endsWith(r)};const qmarksTest=([t,r=""])=>{const i=qmarksTestNoExt([t]);return!r?i:t=>i(t)&&t.endsWith(r)};const qmarksTestNoExt=([t])=>{const r=t.length;return t=>t.length===r&&!t.startsWith(".")};const qmarksTestNoExtDot=([t])=>{const r=t.length;return t=>t.length===r&&t!=="."&&t!==".."};const v=typeof process==="object"&&process?typeof process.env==="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix";const E={win32:{sep:"\\"},posix:{sep:"/"}};r.sep=v==="win32"?E.win32.sep:E.posix.sep;r.minimatch.sep=r.sep;r.GLOBSTAR=Symbol("globstar **");r.minimatch.GLOBSTAR=r.GLOBSTAR;const A="[^/]";const _=A+"*?";const C="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";const S="(?:(?!(?:\\/|^)\\.).)*?";const filter=(t,i={})=>o=>(0,r.minimatch)(o,t,i);r.filter=filter;r.minimatch.filter=r.filter;const ext=(t,r={})=>Object.assign({},t,r);const defaults=t=>{if(!t||typeof t!=="object"||!Object.keys(t).length){return r.minimatch}const i=r.minimatch;const m=(r,o,a={})=>i(r,o,ext(t,a));return Object.assign(m,{Minimatch:class Minimatch extends i.Minimatch{constructor(r,i={}){super(r,ext(t,i))}static defaults(r){return i.defaults(ext(t,r)).Minimatch}},AST:class AST extends i.AST{constructor(r,i,o={}){super(r,i,ext(t,o))}static fromGlob(r,o={}){return i.AST.fromGlob(r,ext(t,o))}},unescape:(r,o={})=>i.unescape(r,ext(t,o)),escape:(r,o={})=>i.escape(r,ext(t,o)),filter:(r,o={})=>i.filter(r,ext(t,o)),defaults:r=>i.defaults(ext(t,r)),makeRe:(r,o={})=>i.makeRe(r,ext(t,o)),braceExpand:(r,o={})=>i.braceExpand(r,ext(t,o)),match:(r,o,a={})=>i.match(r,o,ext(t,a)),sep:i.sep,GLOBSTAR:r.GLOBSTAR})};r.defaults=defaults;r.minimatch.defaults=r.defaults;const braceExpand=(t,r={})=>{(0,u.assertValidPattern)(t);if(r.nobrace||!/\{(?:(?!\{).)*\}/.test(t)){return[t]}return(0,a.default)(t)};r.braceExpand=braceExpand;r.minimatch.braceExpand=r.braceExpand;const makeRe=(t,r={})=>new Minimatch(t,r).makeRe();r.makeRe=makeRe;r.minimatch.makeRe=r.makeRe;const match=(t,r,i={})=>{const o=new Minimatch(r,i);t=t.filter((t=>o.match(t)));if(o.options.nonull&&!t.length){t.push(r)}return t};r.match=match;r.minimatch.match=r.match;const D=/[?*]|[+@!]\(.*?\)|\[|\]/;const regExpEscape=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class Minimatch{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(t,r={}){(0,u.assertValidPattern)(t);r=r||{};this.options=r;this.pattern=t;this.platform=r.platform||v;this.isWindows=this.platform==="win32";this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===false;if(this.windowsPathsNoEscape){this.pattern=this.pattern.replace(/\\/g,"/")}this.preserveMultipleSlashes=!!r.preserveMultipleSlashes;this.regexp=null;this.negate=false;this.nonegate=!!r.nonegate;this.comment=false;this.empty=false;this.partial=!!r.partial;this.nocase=!!this.options.nocase;this.windowsNoMagicRoot=r.windowsNoMagicRoot!==undefined?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase);this.globSet=[];this.globParts=[];this.set=[];this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1){return true}for(const t of this.set){for(const r of t){if(typeof r!=="string")return true}}return false}debug(...t){}make(){const t=this.pattern;const r=this.options;if(!r.nocomment&&t.charAt(0)==="#"){this.comment=true;return}if(!t){this.empty=true;return}this.parseNegate();this.globSet=[...new Set(this.braceExpand())];if(r.debug){this.debug=(...t)=>console.error(...t)}this.debug(this.pattern,this.globSet);const i=this.globSet.map((t=>this.slashSplit(t)));this.globParts=this.preprocess(i);this.debug(this.pattern,this.globParts);let o=this.globParts.map(((t,r,i)=>{if(this.isWindows&&this.windowsNoMagicRoot){const r=t[0]===""&&t[1]===""&&(t[2]==="?"||!D.test(t[2]))&&!D.test(t[3]);const i=/^[a-z]:/i.test(t[0]);if(r){return[...t.slice(0,4),...t.slice(4).map((t=>this.parse(t)))]}else if(i){return[t[0],...t.slice(1).map((t=>this.parse(t)))]}}return t.map((t=>this.parse(t)))}));this.debug(this.pattern,o);this.set=o.filter((t=>t.indexOf(false)===-1));if(this.isWindows){for(let t=0;t<this.set.length;t++){const r=this.set[t];if(r[0]===""&&r[1]===""&&this.globParts[t][2]==="?"&&typeof r[3]==="string"&&/^[a-z]:$/i.test(r[3])){r[2]="?"}}}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar){for(let r=0;r<t.length;r++){for(let i=0;i<t[r].length;i++){if(t[r][i]==="**"){t[r][i]="*"}}}}const{optimizationLevel:r=1}=this.options;if(r>=2){t=this.firstPhasePreProcess(t);t=this.secondPhasePreProcess(t)}else if(r>=1){t=this.levelOneOptimize(t)}else{t=this.adjascentGlobstarOptimize(t)}return t}adjascentGlobstarOptimize(t){return t.map((t=>{let r=-1;while(-1!==(r=t.indexOf("**",r+1))){let i=r;while(t[i+1]==="**"){i++}if(i!==r){t.splice(r,i-r)}}return t}))}levelOneOptimize(t){return t.map((t=>{t=t.reduce(((t,r)=>{const i=t[t.length-1];if(r==="**"&&i==="**"){return t}if(r===".."){if(i&&i!==".."&&i!=="."&&i!=="**"){t.pop();return t}}t.push(r);return t}),[]);return t.length===0?[""]:t}))}levelTwoFileOptimize(t){if(!Array.isArray(t)){t=this.slashSplit(t)}let r=false;do{r=false;if(!this.preserveMultipleSlashes){for(let i=1;i<t.length-1;i++){const o=t[i];if(i===1&&o===""&&t[0]==="")continue;if(o==="."||o===""){r=true;t.splice(i,1);i--}}if(t[0]==="."&&t.length===2&&(t[1]==="."||t[1]==="")){r=true;t.pop()}}let i=0;while(-1!==(i=t.indexOf("..",i+1))){const o=t[i-1];if(o&&o!=="."&&o!==".."&&o!=="**"){r=true;t.splice(i-1,2);i-=2}}}while(r);return t.length===0?[""]:t}firstPhasePreProcess(t){let r=false;do{r=false;for(let i of t){let o=-1;while(-1!==(o=i.indexOf("**",o+1))){let a=o;while(i[a+1]==="**"){a++}if(a>o){i.splice(o+1,a-o)}let u=i[o+1];const l=i[o+2];const h=i[o+3];if(u!=="..")continue;if(!l||l==="."||l===".."||!h||h==="."||h===".."){continue}r=true;i.splice(o,1);const d=i.slice(0);d[o]="**";t.push(d);o--}if(!this.preserveMultipleSlashes){for(let t=1;t<i.length-1;t++){const o=i[t];if(t===1&&o===""&&i[0]==="")continue;if(o==="."||o===""){r=true;i.splice(t,1);t--}}if(i[0]==="."&&i.length===2&&(i[1]==="."||i[1]==="")){r=true;i.pop()}}let a=0;while(-1!==(a=i.indexOf("..",a+1))){const t=i[a-1];if(t&&t!=="."&&t!==".."&&t!=="**"){r=true;const t=a===1&&i[a+1]==="**";const o=t?["."]:[];i.splice(a-1,2,...o);if(i.length===0)i.push("");a-=2}}}}while(r);return t}secondPhasePreProcess(t){for(let r=0;r<t.length-1;r++){for(let i=r+1;i<t.length;i++){const o=this.partsMatch(t[r],t[i],!this.preserveMultipleSlashes);if(o){t[r]=[];t[i]=o;break}}}return t.filter((t=>t.length))}partsMatch(t,r,i=false){let o=0;let a=0;let u=[];let l="";while(o<t.length&&a<r.length){if(t[o]===r[a]){u.push(l==="b"?r[a]:t[o]);o++;a++}else if(i&&t[o]==="**"&&r[a]===t[o+1]){u.push(t[o]);o++}else if(i&&r[a]==="**"&&t[o]===r[a+1]){u.push(r[a]);a++}else if(t[o]==="*"&&r[a]&&(this.options.dot||!r[a].startsWith("."))&&r[a]!=="**"){if(l==="b")return false;l="a";u.push(t[o]);o++;a++}else if(r[a]==="*"&&t[o]&&(this.options.dot||!t[o].startsWith("."))&&t[o]!=="**"){if(l==="a")return false;l="b";u.push(r[a]);o++;a++}else{return false}}return t.length===r.length&&u}parseNegate(){if(this.nonegate)return;const t=this.pattern;let r=false;let i=0;for(let o=0;o<t.length&&t.charAt(o)==="!";o++){r=!r;i++}if(i)this.pattern=t.slice(i);this.negate=r}matchOne(t,i,o=false){const a=this.options;if(this.isWindows){const r=typeof t[0]==="string"&&/^[a-z]:$/i.test(t[0]);const o=!r&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]);const a=typeof i[0]==="string"&&/^[a-z]:$/i.test(i[0]);const u=!a&&i[0]===""&&i[1]===""&&i[2]==="?"&&typeof i[3]==="string"&&/^[a-z]:$/i.test(i[3]);const l=o?3:r?0:undefined;const h=u?3:a?0:undefined;if(typeof l==="number"&&typeof h==="number"){const[r,o]=[t[l],i[h]];if(r.toLowerCase()===o.toLowerCase()){i[h]=r;if(h>l){i=i.slice(h)}else if(l>h){t=t.slice(l)}}}}const{optimizationLevel:u=1}=this.options;if(u>=2){t=this.levelTwoFileOptimize(t)}this.debug("matchOne",this,{file:t,pattern:i});this.debug("matchOne",t.length,i.length);for(var l=0,h=0,d=t.length,p=i.length;l<d&&h<p;l++,h++){this.debug("matchOne loop");var g=i[h];var y=t[l];this.debug(i,g,y);if(g===false){return false}if(g===r.GLOBSTAR){this.debug("GLOBSTAR",[i,g,y]);var b=l;var w=h+1;if(w===p){this.debug("** at the end");for(;l<d;l++){if(t[l]==="."||t[l]===".."||!a.dot&&t[l].charAt(0)===".")return false}return true}while(b<d){var v=t[b];this.debug("\nglobstar while",t,b,i,w,v);if(this.matchOne(t.slice(b),i.slice(w),o)){this.debug("globstar found match!",b,d,v);return true}else{if(v==="."||v===".."||!a.dot&&v.charAt(0)==="."){this.debug("dot detected!",t,b,i,w);break}this.debug("globstar swallow a segment, and continue");b++}}if(o){this.debug("\n>>> no match, partial?",t,b,i,w);if(b===d){return true}}return false}let u;if(typeof g==="string"){u=y===g;this.debug("string match",g,y,u)}else{u=g.test(y);this.debug("pattern match",g,y,u)}if(!u)return false}if(l===d&&h===p){return true}else if(l===d){return o}else if(h===p){return l===d-1&&t[l]===""}else{throw new Error("wtf?")}}braceExpand(){return(0,r.braceExpand)(this.pattern,this.options)}parse(t){(0,u.assertValidPattern)(t);const i=this.options;if(t==="**")return r.GLOBSTAR;if(t==="")return"";let o;let a=null;if(o=t.match(b)){a=i.dot?starTestDot:starTest}else if(o=t.match(p)){a=(i.nocase?i.dot?starDotExtTestNocaseDot:starDotExtTestNocase:i.dot?starDotExtTestDot:starDotExtTest)(o[1])}else if(o=t.match(w)){a=(i.nocase?i.dot?qmarksTestNocaseDot:qmarksTestNocase:i.dot?qmarksTestDot:qmarksTest)(o)}else if(o=t.match(g)){a=i.dot?starDotStarTestDot:starDotStarTest}else if(o=t.match(y)){a=dotStarTest}const h=l.AST.fromGlob(t,this.options).toMMPattern();if(a&&typeof h==="object"){Reflect.defineProperty(h,"test",{value:a})}return h}makeRe(){if(this.regexp||this.regexp===false)return this.regexp;const t=this.set;if(!t.length){this.regexp=false;return this.regexp}const i=this.options;const o=i.noglobstar?_:i.dot?C:S;const a=new Set(i.nocase?["i"]:[]);let u=t.map((t=>{const i=t.map((t=>{if(t instanceof RegExp){for(const r of t.flags.split(""))a.add(r)}return typeof t==="string"?regExpEscape(t):t===r.GLOBSTAR?r.GLOBSTAR:t._src}));i.forEach(((t,a)=>{const u=i[a+1];const l=i[a-1];if(t!==r.GLOBSTAR||l===r.GLOBSTAR){return}if(l===undefined){if(u!==undefined&&u!==r.GLOBSTAR){i[a+1]="(?:\\/|"+o+"\\/)?"+u}else{i[a]=o}}else if(u===undefined){i[a-1]=l+"(?:\\/|"+o+")?"}else if(u!==r.GLOBSTAR){i[a-1]=l+"(?:\\/|\\/"+o+"\\/)"+u;i[a+1]=r.GLOBSTAR}}));return i.filter((t=>t!==r.GLOBSTAR)).join("/")})).join("|");const[l,h]=t.length>1?["(?:",")"]:["",""];u="^"+l+u+h+"$";if(this.negate)u="^(?!"+u+").+$";try{this.regexp=new RegExp(u,[...a].join(""))}catch(t){this.regexp=false}return this.regexp}slashSplit(t){if(this.preserveMultipleSlashes){return t.split("/")}else if(this.isWindows&&/^\/\/[^\/]+/.test(t)){return["",...t.split(/\/+/)]}else{return t.split(/\/+/)}}match(t,r=this.partial){this.debug("match",t,this.pattern);if(this.comment){return false}if(this.empty){return t===""}if(t==="/"&&r){return true}const i=this.options;if(this.isWindows){t=t.split("\\").join("/")}const o=this.slashSplit(t);this.debug(this.pattern,"split",o);const a=this.set;this.debug(this.pattern,"set",a);let u=o[o.length-1];if(!u){for(let t=o.length-2;!u&&t>=0;t--){u=o[t]}}for(let t=0;t<a.length;t++){const l=a[t];let h=o;if(i.matchBase&&l.length===1){h=[u]}const d=this.matchOne(h,l,r);if(d){if(i.flipNegate){return true}return!this.negate}}if(i.flipNegate){return false}return this.negate}static defaults(t){return r.minimatch.defaults(t).Minimatch}}r.Minimatch=Minimatch;var x=i(8543);Object.defineProperty(r,"AST",{enumerable:true,get:function(){return x.AST}});var O=i(7504);Object.defineProperty(r,"escape",{enumerable:true,get:function(){return O.escape}});var R=i(5640);Object.defineProperty(r,"unescape",{enumerable:true,get:function(){return R.unescape}});r.minimatch.AST=l.AST;r.minimatch.Minimatch=Minimatch;r.minimatch.escape=h.escape;r.minimatch.unescape=d.unescape},5640:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.unescape=void 0;const unescape=(t,{windowsPathsNoEscape:r=false}={})=>r?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");r.unescape=unescape},3576:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.LRUCache=void 0;const i=typeof performance==="object"&&performance&&typeof performance.now==="function"?performance:Date;const o=new Set;const a=typeof process==="object"&&!!process?process:{};const emitWarning=(t,r,i,o)=>{typeof a.emitWarning==="function"?a.emitWarning(t,r,i,o):console.error(`[${i}] ${r}: ${t}`)};let u=globalThis.AbortController;let l=globalThis.AbortSignal;if(typeof u==="undefined"){l=class AbortSignal{onabort;_onabort=[];reason;aborted=false;addEventListener(t,r){this._onabort.push(r)}};u=class AbortController{constructor(){warnACPolyfill()}signal=new l;abort(t){if(this.signal.aborted)return;this.signal.reason=t;this.signal.aborted=true;for(const r of this.signal._onabort){r(t)}this.signal.onabort?.(t)}};let t=a.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1";const warnACPolyfill=()=>{if(!t)return;t=false;emitWarning("AbortController is not defined. If using lru-cache in "+"node 14, load an AbortController polyfill from the "+"`node-abort-controller` package. A minimal polyfill is "+"provided for use by LRUCache.fetch(), but it should not be "+"relied upon in other contexts (eg, passing it to other APIs that "+"use AbortController/AbortSignal might have undesirable effects). "+"You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",warnACPolyfill)}}const shouldWarn=t=>!o.has(t);const h=Symbol("type");const isPosInt=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t);const getUintArray=t=>!isPosInt(t)?null:t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?ZeroArray:null;class ZeroArray extends Array{constructor(t){super(t);this.fill(0)}}class Stack{heap;length;static#T=false;static create(t){const r=getUintArray(t);if(!r)return[];Stack.#T=true;const i=new Stack(t,r);Stack.#T=false;return i}constructor(t,r){if(!Stack.#T){throw new TypeError("instantiate Stack using Stack.create(n)")}this.heap=new r(t);this.length=0}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}}class LRUCache{#M;#L;#I;#$;#N;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#B;#j;#H;#G;#U;#W;#z;#Y;#K;#V;#q;#X;#Z;#J;#Q;#ee;#te;static unsafeExposeInternals(t){return{starts:t.#Z,ttls:t.#J,sizes:t.#X,keyMap:t.#H,keyList:t.#G,valList:t.#U,next:t.#W,prev:t.#z,get head(){return t.#Y},get tail(){return t.#K},free:t.#V,isBackgroundFetch:r=>t.#re(r),backgroundFetch:(r,i,o,a)=>t.#se(r,i,o,a),moveToTail:r=>t.#ie(r),indexes:r=>t.#ne(r),rindexes:r=>t.#oe(r),isStale:r=>t.#ae(r)}}get max(){return this.#M}get maxSize(){return this.#L}get calculatedSize(){return this.#j}get size(){return this.#B}get fetchMethod(){return this.#N}get dispose(){return this.#I}get disposeAfter(){return this.#$}constructor(t){const{max:r=0,ttl:i,ttlResolution:a=1,ttlAutopurge:u,updateAgeOnGet:l,updateAgeOnHas:h,allowStale:d,dispose:p,disposeAfter:g,noDisposeOnSet:y,noUpdateTTL:b,maxSize:w=0,maxEntrySize:v=0,sizeCalculation:E,fetchMethod:A,noDeleteOnFetchRejection:_,noDeleteOnStaleGet:C,allowStaleOnFetchRejection:S,allowStaleOnFetchAbort:D,ignoreFetchAbort:x}=t;if(r!==0&&!isPosInt(r)){throw new TypeError("max option must be a nonnegative integer")}const O=r?getUintArray(r):Array;if(!O){throw new Error("invalid max value: "+r)}this.#M=r;this.#L=w;this.maxEntrySize=v||this.#L;this.sizeCalculation=E;if(this.sizeCalculation){if(!this.#L&&!this.maxEntrySize){throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize")}if(typeof this.sizeCalculation!=="function"){throw new TypeError("sizeCalculation set to non-function")}}if(A!==undefined&&typeof A!=="function"){throw new TypeError("fetchMethod must be a function if specified")}this.#N=A;this.#ee=!!A;this.#H=new Map;this.#G=new Array(r).fill(undefined);this.#U=new Array(r).fill(undefined);this.#W=new O(r);this.#z=new O(r);this.#Y=0;this.#K=0;this.#V=Stack.create(r);this.#B=0;this.#j=0;if(typeof p==="function"){this.#I=p}if(typeof g==="function"){this.#$=g;this.#q=[]}else{this.#$=undefined;this.#q=undefined}this.#Q=!!this.#I;this.#te=!!this.#$;this.noDisposeOnSet=!!y;this.noUpdateTTL=!!b;this.noDeleteOnFetchRejection=!!_;this.allowStaleOnFetchRejection=!!S;this.allowStaleOnFetchAbort=!!D;this.ignoreFetchAbort=!!x;if(this.maxEntrySize!==0){if(this.#L!==0){if(!isPosInt(this.#L)){throw new TypeError("maxSize must be a positive integer if specified")}}if(!isPosInt(this.maxEntrySize)){throw new TypeError("maxEntrySize must be a positive integer if specified")}this.#ue()}this.allowStale=!!d;this.noDeleteOnStaleGet=!!C;this.updateAgeOnGet=!!l;this.updateAgeOnHas=!!h;this.ttlResolution=isPosInt(a)||a===0?a:1;this.ttlAutopurge=!!u;this.ttl=i||0;if(this.ttl){if(!isPosInt(this.ttl)){throw new TypeError("ttl must be a positive integer if specified")}this.#le()}if(this.#M===0&&this.ttl===0&&this.#L===0){throw new TypeError("At least one of max, maxSize, or ttl is required")}if(!this.ttlAutopurge&&!this.#M&&!this.#L){const t="LRU_CACHE_UNBOUNDED";if(shouldWarn(t)){o.add(t);const r="TTL caching without ttlAutopurge, max, or maxSize can "+"result in unbounded memory consumption.";emitWarning(r,"UnboundedCacheWarning",t,LRUCache)}}}getRemainingTTL(t){return this.#H.has(t)?Infinity:0}#le(){const t=new ZeroArray(this.#M);const r=new ZeroArray(this.#M);this.#J=t;this.#Z=r;this.#ce=(o,a,u=i.now())=>{r[o]=a!==0?u:0;t[o]=a;if(a!==0&&this.ttlAutopurge){const t=setTimeout((()=>{if(this.#ae(o)){this.delete(this.#G[o])}}),a+1);if(t.unref){t.unref()}}};this.#he=o=>{r[o]=t[o]!==0?i.now():0};this.#fe=(i,a)=>{if(t[a]){const u=t[a];const l=r[a];if(!u||!l)return;i.ttl=u;i.start=l;i.now=o||getNow();const h=i.now-l;i.remainingTTL=u-h}};let o=0;const getNow=()=>{const t=i.now();if(this.ttlResolution>0){o=t;const r=setTimeout((()=>o=0),this.ttlResolution);if(r.unref){r.unref()}}return t};this.getRemainingTTL=i=>{const a=this.#H.get(i);if(a===undefined){return 0}const u=t[a];const l=r[a];if(!u||!l){return Infinity}const h=(o||getNow())-l;return u-h};this.#ae=i=>{const a=r[i];const u=t[i];return!!u&&!!a&&(o||getNow())-a>u}}#he=()=>{};#fe=()=>{};#ce=()=>{};#ae=()=>false;#ue(){const t=new ZeroArray(this.#M);this.#j=0;this.#X=t;this.#de=r=>{this.#j-=t[r];t[r]=0};this.#pe=(t,r,i,o)=>{if(this.#re(r)){return 0}if(!isPosInt(i)){if(o){if(typeof o!=="function"){throw new TypeError("sizeCalculation must be a function")}i=o(r,t);if(!isPosInt(i)){throw new TypeError("sizeCalculation return invalid (expect positive integer)")}}else{throw new TypeError("invalid size value (must be positive integer). "+"When maxSize or maxEntrySize is used, sizeCalculation "+"or size must be set.")}}return i};this.#me=(r,i,o)=>{t[r]=i;if(this.#L){const i=this.#L-t[r];while(this.#j>i){this.#ge(true)}}this.#j+=t[r];if(o){o.entrySize=i;o.totalCalculatedSize=this.#j}}}#de=t=>{};#me=(t,r,i)=>{};#pe=(t,r,i,o)=>{if(i||o){throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache")}return 0};*#ne({allowStale:t=this.allowStale}={}){if(this.#B){for(let r=this.#K;true;){if(!this.#ye(r)){break}if(t||!this.#ae(r)){yield r}if(r===this.#Y){break}else{r=this.#z[r]}}}}*#oe({allowStale:t=this.allowStale}={}){if(this.#B){for(let r=this.#Y;true;){if(!this.#ye(r)){break}if(t||!this.#ae(r)){yield r}if(r===this.#K){break}else{r=this.#W[r]}}}}#ye(t){return t!==undefined&&this.#H.get(this.#G[t])===t}*entries(){for(const t of this.#ne()){if(this.#U[t]!==undefined&&this.#G[t]!==undefined&&!this.#re(this.#U[t])){yield[this.#G[t],this.#U[t]]}}}*rentries(){for(const t of this.#oe()){if(this.#U[t]!==undefined&&this.#G[t]!==undefined&&!this.#re(this.#U[t])){yield[this.#G[t],this.#U[t]]}}}*keys(){for(const t of this.#ne()){const r=this.#G[t];if(r!==undefined&&!this.#re(this.#U[t])){yield r}}}*rkeys(){for(const t of this.#oe()){const r=this.#G[t];if(r!==undefined&&!this.#re(this.#U[t])){yield r}}}*values(){for(const t of this.#ne()){const r=this.#U[t];if(r!==undefined&&!this.#re(this.#U[t])){yield this.#U[t]}}}*rvalues(){for(const t of this.#oe()){const r=this.#U[t];if(r!==undefined&&!this.#re(this.#U[t])){yield this.#U[t]}}}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(t,r={}){for(const i of this.#ne()){const o=this.#U[i];const a=this.#re(o)?o.__staleWhileFetching:o;if(a===undefined)continue;if(t(a,this.#G[i],this)){return this.get(this.#G[i],r)}}}forEach(t,r=this){for(const i of this.#ne()){const o=this.#U[i];const a=this.#re(o)?o.__staleWhileFetching:o;if(a===undefined)continue;t.call(r,a,this.#G[i],this)}}rforEach(t,r=this){for(const i of this.#oe()){const o=this.#U[i];const a=this.#re(o)?o.__staleWhileFetching:o;if(a===undefined)continue;t.call(r,a,this.#G[i],this)}}purgeStale(){let t=false;for(const r of this.#oe({allowStale:true})){if(this.#ae(r)){this.delete(this.#G[r]);t=true}}return t}info(t){const r=this.#H.get(t);if(r===undefined)return undefined;const o=this.#U[r];const a=this.#re(o)?o.__staleWhileFetching:o;if(a===undefined)return undefined;const u={value:a};if(this.#J&&this.#Z){const t=this.#J[r];const o=this.#Z[r];if(t&&o){const r=t-(i.now()-o);u.ttl=r;u.start=Date.now()}}if(this.#X){u.size=this.#X[r]}return u}dump(){const t=[];for(const r of this.#ne({allowStale:true})){const o=this.#G[r];const a=this.#U[r];const u=this.#re(a)?a.__staleWhileFetching:a;if(u===undefined||o===undefined)continue;const l={value:u};if(this.#J&&this.#Z){l.ttl=this.#J[r];const t=i.now()-this.#Z[r];l.start=Math.floor(Date.now()-t)}if(this.#X){l.size=this.#X[r]}t.unshift([o,l])}return t}load(t){this.clear();for(const[r,o]of t){if(o.start){const t=Date.now()-o.start;o.start=i.now()-t}this.set(r,o.value,o)}}set(t,r,i={}){if(r===undefined){this.delete(t);return this}const{ttl:o=this.ttl,start:a,noDisposeOnSet:u=this.noDisposeOnSet,sizeCalculation:l=this.sizeCalculation,status:h}=i;let{noUpdateTTL:d=this.noUpdateTTL}=i;const p=this.#pe(t,r,i.size||0,l);if(this.maxEntrySize&&p>this.maxEntrySize){if(h){h.set="miss";h.maxEntrySizeExceeded=true}this.delete(t);return this}let g=this.#B===0?undefined:this.#H.get(t);if(g===undefined){g=this.#B===0?this.#K:this.#V.length!==0?this.#V.pop():this.#B===this.#M?this.#ge(false):this.#B;this.#G[g]=t;this.#U[g]=r;this.#H.set(t,g);this.#W[this.#K]=g;this.#z[g]=this.#K;this.#K=g;this.#B++;this.#me(g,p,h);if(h)h.set="add";d=false}else{this.#ie(g);const i=this.#U[g];if(r!==i){if(this.#ee&&this.#re(i)){i.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:r}=i;if(r!==undefined&&!u){if(this.#Q){this.#I?.(r,t,"set")}if(this.#te){this.#q?.push([r,t,"set"])}}}else if(!u){if(this.#Q){this.#I?.(i,t,"set")}if(this.#te){this.#q?.push([i,t,"set"])}}this.#de(g);this.#me(g,p,h);this.#U[g]=r;if(h){h.set="replace";const t=i&&this.#re(i)?i.__staleWhileFetching:i;if(t!==undefined)h.oldValue=t}}else if(h){h.set="update"}}if(o!==0&&!this.#J){this.#le()}if(this.#J){if(!d){this.#ce(g,o,a)}if(h)this.#fe(h,g)}if(!u&&this.#te&&this.#q){const t=this.#q;let r;while(r=t?.shift()){this.#$?.(...r)}}return this}pop(){try{while(this.#B){const t=this.#U[this.#Y];this.#ge(true);if(this.#re(t)){if(t.__staleWhileFetching){return t.__staleWhileFetching}}else if(t!==undefined){return t}}}finally{if(this.#te&&this.#q){const t=this.#q;let r;while(r=t?.shift()){this.#$?.(...r)}}}}#ge(t){const r=this.#Y;const i=this.#G[r];const o=this.#U[r];if(this.#ee&&this.#re(o)){o.__abortController.abort(new Error("evicted"))}else if(this.#Q||this.#te){if(this.#Q){this.#I?.(o,i,"evict")}if(this.#te){this.#q?.push([o,i,"evict"])}}this.#de(r);if(t){this.#G[r]=undefined;this.#U[r]=undefined;this.#V.push(r)}if(this.#B===1){this.#Y=this.#K=0;this.#V.length=0}else{this.#Y=this.#W[r]}this.#H.delete(i);this.#B--;return r}has(t,r={}){const{updateAgeOnHas:i=this.updateAgeOnHas,status:o}=r;const a=this.#H.get(t);if(a!==undefined){const t=this.#U[a];if(this.#re(t)&&t.__staleWhileFetching===undefined){return false}if(!this.#ae(a)){if(i){this.#he(a)}if(o){o.has="hit";this.#fe(o,a)}return true}else if(o){o.has="stale";this.#fe(o,a)}}else if(o){o.has="miss"}return false}peek(t,r={}){const{allowStale:i=this.allowStale}=r;const o=this.#H.get(t);if(o===undefined||!i&&this.#ae(o)){return}const a=this.#U[o];return this.#re(a)?a.__staleWhileFetching:a}#se(t,r,i,o){const a=r===undefined?undefined:this.#U[r];if(this.#re(a)){return a}const l=new u;const{signal:h}=i;h?.addEventListener("abort",(()=>l.abort(h.reason)),{signal:l.signal});const d={signal:l.signal,options:i,context:o};const cb=(o,a=false)=>{const{aborted:u}=l.signal;const h=i.ignoreFetchAbort&&o!==undefined;if(i.status){if(u&&!a){i.status.fetchAborted=true;i.status.fetchError=l.signal.reason;if(h)i.status.fetchAbortIgnored=true}else{i.status.fetchResolved=true}}if(u&&!h&&!a){return fetchFail(l.signal.reason)}const g=p;if(this.#U[r]===p){if(o===undefined){if(g.__staleWhileFetching){this.#U[r]=g.__staleWhileFetching}else{this.delete(t)}}else{if(i.status)i.status.fetchUpdated=true;this.set(t,o,d.options)}}return o};const eb=t=>{if(i.status){i.status.fetchRejected=true;i.status.fetchError=t}return fetchFail(t)};const fetchFail=o=>{const{aborted:a}=l.signal;const u=a&&i.allowStaleOnFetchAbort;const h=u||i.allowStaleOnFetchRejection;const d=h||i.noDeleteOnFetchRejection;const g=p;if(this.#U[r]===p){const i=!d||g.__staleWhileFetching===undefined;if(i){this.delete(t)}else if(!u){this.#U[r]=g.__staleWhileFetching}}if(h){if(i.status&&g.__staleWhileFetching!==undefined){i.status.returnedStale=true}return g.__staleWhileFetching}else if(g.__returned===g){throw o}};const pcall=(r,o)=>{const u=this.#N?.(t,a,d);if(u&&u instanceof Promise){u.then((t=>r(t===undefined?undefined:t)),o)}l.signal.addEventListener("abort",(()=>{if(!i.ignoreFetchAbort||i.allowStaleOnFetchAbort){r(undefined);if(i.allowStaleOnFetchAbort){r=t=>cb(t,true)}}}))};if(i.status)i.status.fetchDispatched=true;const p=new Promise(pcall).then(cb,eb);const g=Object.assign(p,{__abortController:l,__staleWhileFetching:a,__returned:undefined});if(r===undefined){this.set(t,g,{...d.options,status:undefined});r=this.#H.get(t)}else{this.#U[r]=g}return g}#re(t){if(!this.#ee)return false;const r=t;return!!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof u}async fetch(t,r={}){const{allowStale:i=this.allowStale,updateAgeOnGet:o=this.updateAgeOnGet,noDeleteOnStaleGet:a=this.noDeleteOnStaleGet,ttl:u=this.ttl,noDisposeOnSet:l=this.noDisposeOnSet,size:h=0,sizeCalculation:d=this.sizeCalculation,noUpdateTTL:p=this.noUpdateTTL,noDeleteOnFetchRejection:g=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:y=this.allowStaleOnFetchRejection,ignoreFetchAbort:b=this.ignoreFetchAbort,allowStaleOnFetchAbort:w=this.allowStaleOnFetchAbort,context:v,forceRefresh:E=false,status:A,signal:_}=r;if(!this.#ee){if(A)A.fetch="get";return this.get(t,{allowStale:i,updateAgeOnGet:o,noDeleteOnStaleGet:a,status:A})}const C={allowStale:i,updateAgeOnGet:o,noDeleteOnStaleGet:a,ttl:u,noDisposeOnSet:l,size:h,sizeCalculation:d,noUpdateTTL:p,noDeleteOnFetchRejection:g,allowStaleOnFetchRejection:y,allowStaleOnFetchAbort:w,ignoreFetchAbort:b,status:A,signal:_};let S=this.#H.get(t);if(S===undefined){if(A)A.fetch="miss";const r=this.#se(t,S,C,v);return r.__returned=r}else{const r=this.#U[S];if(this.#re(r)){const t=i&&r.__staleWhileFetching!==undefined;if(A){A.fetch="inflight";if(t)A.returnedStale=true}return t?r.__staleWhileFetching:r.__returned=r}const a=this.#ae(S);if(!E&&!a){if(A)A.fetch="hit";this.#ie(S);if(o){this.#he(S)}if(A)this.#fe(A,S);return r}const u=this.#se(t,S,C,v);const l=u.__staleWhileFetching!==undefined;const h=l&&i;if(A){A.fetch=a?"stale":"refresh";if(h&&a)A.returnedStale=true}return h?u.__staleWhileFetching:u.__returned=u}}get(t,r={}){const{allowStale:i=this.allowStale,updateAgeOnGet:o=this.updateAgeOnGet,noDeleteOnStaleGet:a=this.noDeleteOnStaleGet,status:u}=r;const l=this.#H.get(t);if(l!==undefined){const r=this.#U[l];const h=this.#re(r);if(u)this.#fe(u,l);if(this.#ae(l)){if(u)u.get="stale";if(!h){if(!a){this.delete(t)}if(u&&i)u.returnedStale=true;return i?r:undefined}else{if(u&&i&&r.__staleWhileFetching!==undefined){u.returnedStale=true}return i?r.__staleWhileFetching:undefined}}else{if(u)u.get="hit";if(h){return r.__staleWhileFetching}this.#ie(l);if(o){this.#he(l)}return r}}else if(u){u.get="miss"}}#be(t,r){this.#z[r]=t;this.#W[t]=r}#ie(t){if(t!==this.#K){if(t===this.#Y){this.#Y=this.#W[t]}else{this.#be(this.#z[t],this.#W[t])}this.#be(this.#K,t);this.#K=t}}delete(t){let r=false;if(this.#B!==0){const i=this.#H.get(t);if(i!==undefined){r=true;if(this.#B===1){this.clear()}else{this.#de(i);const r=this.#U[i];if(this.#re(r)){r.__abortController.abort(new Error("deleted"))}else if(this.#Q||this.#te){if(this.#Q){this.#I?.(r,t,"delete")}if(this.#te){this.#q?.push([r,t,"delete"])}}this.#H.delete(t);this.#G[i]=undefined;this.#U[i]=undefined;if(i===this.#K){this.#K=this.#z[i]}else if(i===this.#Y){this.#Y=this.#W[i]}else{const t=this.#z[i];this.#W[t]=this.#W[i];const r=this.#W[i];this.#z[r]=this.#z[i]}this.#B--;this.#V.push(i)}}}if(this.#te&&this.#q?.length){const t=this.#q;let r;while(r=t?.shift()){this.#$?.(...r)}}return r}clear(){for(const t of this.#oe({allowStale:true})){const r=this.#U[t];if(this.#re(r)){r.__abortController.abort(new Error("deleted"))}else{const i=this.#G[t];if(this.#Q){this.#I?.(r,i,"delete")}if(this.#te){this.#q?.push([r,i,"delete"])}}}this.#H.clear();this.#U.fill(undefined);this.#G.fill(undefined);if(this.#J&&this.#Z){this.#J.fill(0);this.#Z.fill(0)}if(this.#X){this.#X.fill(0)}this.#Y=0;this.#K=0;this.#V.length=0;this.#j=0;this.#B=0;if(this.#te&&this.#q){const t=this.#q;let r;while(r=t?.shift()){this.#$?.(...r)}}}}r.LRUCache=LRUCache},6014:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.Minipass=r.isWritable=r.isReadable=r.isStream=void 0;const a=typeof process==="object"&&process?process:{stdout:null,stderr:null};const u=i(5673);const l=o(i(4492));const h=i(6915);const isStream=t=>!!t&&typeof t==="object"&&(t instanceof Minipass||t instanceof l.default||(0,r.isReadable)(t)||(0,r.isWritable)(t));r.isStream=isStream;const isReadable=t=>!!t&&typeof t==="object"&&t instanceof u.EventEmitter&&typeof t.pipe==="function"&&t.pipe!==l.default.Writable.prototype.pipe;r.isReadable=isReadable;const isWritable=t=>!!t&&typeof t==="object"&&t instanceof u.EventEmitter&&typeof t.write==="function"&&typeof t.end==="function";r.isWritable=isWritable;const d=Symbol("EOF");const p=Symbol("maybeEmitEnd");const g=Symbol("emittedEnd");const y=Symbol("emittingEnd");const b=Symbol("emittedError");const w=Symbol("closed");const v=Symbol("read");const E=Symbol("flush");const A=Symbol("flushChunk");const _=Symbol("encoding");const C=Symbol("decoder");const S=Symbol("flowing");const D=Symbol("paused");const x=Symbol("resume");const O=Symbol("buffer");const R=Symbol("pipes");const k=Symbol("bufferLength");const P=Symbol("bufferPush");const T=Symbol("bufferShift");const M=Symbol("objectMode");const L=Symbol("destroyed");const I=Symbol("error");const $=Symbol("emitData");const N=Symbol("emitEnd");const B=Symbol("emitEnd2");const j=Symbol("async");const H=Symbol("abort");const G=Symbol("aborted");const U=Symbol("signal");const W=Symbol("dataListeners");const z=Symbol("discarded");const defer=t=>Promise.resolve().then(t);const nodefer=t=>t();const isEndish=t=>t==="end"||t==="finish"||t==="prefinish";const isArrayBufferLike=t=>t instanceof ArrayBuffer||!!t&&typeof t==="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0;const isArrayBufferView=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t);class Pipe{src;dest;opts;ondrain;constructor(t,r,i){this.src=t;this.dest=r;this.opts=i;this.ondrain=()=>t[x]();this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(t){}end(){this.unpipe();if(this.opts.end)this.dest.end()}}class PipeProxyErrors extends Pipe{unpipe(){this.src.removeListener("error",this.proxyErrors);super.unpipe()}constructor(t,r,i){super(t,r,i);this.proxyErrors=t=>r.emit("error",t);t.on("error",this.proxyErrors)}}const isObjectModeOptions=t=>!!t.objectMode;const isEncodingOptions=t=>!t.objectMode&&!!t.encoding&&t.encoding!=="buffer";class Minipass extends u.EventEmitter{[S]=false;[D]=false;[R]=[];[O]=[];[M];[_];[j];[C];[d]=false;[g]=false;[y]=false;[w]=false;[b]=null;[k]=0;[L]=false;[U];[G]=false;[W]=0;[z]=false;writable=true;readable=true;constructor(...t){const r=t[0]||{};super();if(r.objectMode&&typeof r.encoding==="string"){throw new TypeError("Encoding and objectMode may not be used together")}if(isObjectModeOptions(r)){this[M]=true;this[_]=null}else if(isEncodingOptions(r)){this[_]=r.encoding;this[M]=false}else{this[M]=false;this[_]=null}this[j]=!!r.async;this[C]=this[_]?new h.StringDecoder(this[_]):null;if(r&&r.debugExposeBuffer===true){Object.defineProperty(this,"buffer",{get:()=>this[O]})}if(r&&r.debugExposePipes===true){Object.defineProperty(this,"pipes",{get:()=>this[R]})}const{signal:i}=r;if(i){this[U]=i;if(i.aborted){this[H]()}else{i.addEventListener("abort",(()=>this[H]()))}}}get bufferLength(){return this[k]}get encoding(){return this[_]}set encoding(t){throw new Error("Encoding must be set at instantiation time")}setEncoding(t){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[M]}set objectMode(t){throw new Error("objectMode must be set at instantiation time")}get["async"](){return this[j]}set["async"](t){this[j]=this[j]||!!t}[H](){this[G]=true;this.emit("abort",this[U]?.reason);this.destroy(this[U]?.reason)}get aborted(){return this[G]}set aborted(t){}write(t,r,i){if(this[G])return false;if(this[d])throw new Error("write after end");if(this[L]){this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"}));return true}if(typeof r==="function"){i=r;r="utf8"}if(!r)r="utf8";const o=this[j]?defer:nodefer;if(!this[M]&&!Buffer.isBuffer(t)){if(isArrayBufferView(t)){t=Buffer.from(t.buffer,t.byteOffset,t.byteLength)}else if(isArrayBufferLike(t)){t=Buffer.from(t)}else if(typeof t!=="string"){throw new Error("Non-contiguous data written to non-objectMode stream")}}if(this[M]){if(this[S]&&this[k]!==0)this[E](true);if(this[S])this.emit("data",t);else this[P](t);if(this[k]!==0)this.emit("readable");if(i)o(i);return this[S]}if(!t.length){if(this[k]!==0)this.emit("readable");if(i)o(i);return this[S]}if(typeof t==="string"&&!(r===this[_]&&!this[C]?.lastNeed)){t=Buffer.from(t,r)}if(Buffer.isBuffer(t)&&this[_]){t=this[C].write(t)}if(this[S]&&this[k]!==0)this[E](true);if(this[S])this.emit("data",t);else this[P](t);if(this[k]!==0)this.emit("readable");if(i)o(i);return this[S]}read(t){if(this[L])return null;this[z]=false;if(this[k]===0||t===0||t&&t>this[k]){this[p]();return null}if(this[M])t=null;if(this[O].length>1&&!this[M]){this[O]=[this[_]?this[O].join(""):Buffer.concat(this[O],this[k])]}const r=this[v](t||null,this[O][0]);this[p]();return r}[v](t,r){if(this[M])this[T]();else{const i=r;if(t===i.length||t===null)this[T]();else if(typeof i==="string"){this[O][0]=i.slice(t);r=i.slice(0,t);this[k]-=t}else{this[O][0]=i.subarray(t);r=i.subarray(0,t);this[k]-=t}}this.emit("data",r);if(!this[O].length&&!this[d])this.emit("drain");return r}end(t,r,i){if(typeof t==="function"){i=t;t=undefined}if(typeof r==="function"){i=r;r="utf8"}if(t!==undefined)this.write(t,r);if(i)this.once("end",i);this[d]=true;this.writable=false;if(this[S]||!this[D])this[p]();return this}[x](){if(this[L])return;if(!this[W]&&!this[R].length){this[z]=true}this[D]=false;this[S]=true;this.emit("resume");if(this[O].length)this[E]();else if(this[d])this[p]();else this.emit("drain")}resume(){return this[x]()}pause(){this[S]=false;this[D]=true;this[z]=false}get destroyed(){return this[L]}get flowing(){return this[S]}get paused(){return this[D]}[P](t){if(this[M])this[k]+=1;else this[k]+=t.length;this[O].push(t)}[T](){if(this[M])this[k]-=1;else this[k]-=this[O][0].length;return this[O].shift()}[E](t=false){do{}while(this[A](this[T]())&&this[O].length);if(!t&&!this[O].length&&!this[d])this.emit("drain")}[A](t){this.emit("data",t);return this[S]}pipe(t,r){if(this[L])return t;this[z]=false;const i=this[g];r=r||{};if(t===a.stdout||t===a.stderr)r.end=false;else r.end=r.end!==false;r.proxyErrors=!!r.proxyErrors;if(i){if(r.end)t.end()}else{this[R].push(!r.proxyErrors?new Pipe(this,t,r):new PipeProxyErrors(this,t,r));if(this[j])defer((()=>this[x]()));else this[x]()}return t}unpipe(t){const r=this[R].find((r=>r.dest===t));if(r){if(this[R].length===1){if(this[S]&&this[W]===0){this[S]=false}this[R]=[]}else this[R].splice(this[R].indexOf(r),1);r.unpipe()}}addListener(t,r){return this.on(t,r)}on(t,r){const i=super.on(t,r);if(t==="data"){this[z]=false;this[W]++;if(!this[R].length&&!this[S]){this[x]()}}else if(t==="readable"&&this[k]!==0){super.emit("readable")}else if(isEndish(t)&&this[g]){super.emit(t);this.removeAllListeners(t)}else if(t==="error"&&this[b]){const t=r;if(this[j])defer((()=>t.call(this,this[b])));else t.call(this,this[b])}return i}removeListener(t,r){return this.off(t,r)}off(t,r){const i=super.off(t,r);if(t==="data"){this[W]=this.listeners("data").length;if(this[W]===0&&!this[z]&&!this[R].length){this[S]=false}}return i}removeAllListeners(t){const r=super.removeAllListeners(t);if(t==="data"||t===undefined){this[W]=0;if(!this[z]&&!this[R].length){this[S]=false}}return r}get emittedEnd(){return this[g]}[p](){if(!this[y]&&!this[g]&&!this[L]&&this[O].length===0&&this[d]){this[y]=true;this.emit("end");this.emit("prefinish");this.emit("finish");if(this[w])this.emit("close");this[y]=false}}emit(t,...r){const i=r[0];if(t!=="error"&&t!=="close"&&t!==L&&this[L]){return false}else if(t==="data"){return!this[M]&&!i?false:this[j]?(defer((()=>this[$](i))),true):this[$](i)}else if(t==="end"){return this[N]()}else if(t==="close"){this[w]=true;if(!this[g]&&!this[L])return false;const t=super.emit("close");this.removeAllListeners("close");return t}else if(t==="error"){this[b]=i;super.emit(I,i);const t=!this[U]||this.listeners("error").length?super.emit("error",i):false;this[p]();return t}else if(t==="resume"){const t=super.emit("resume");this[p]();return t}else if(t==="finish"||t==="prefinish"){const r=super.emit(t);this.removeAllListeners(t);return r}const o=super.emit(t,...r);this[p]();return o}[$](t){for(const r of this[R]){if(r.dest.write(t)===false)this.pause()}const r=this[z]?false:super.emit("data",t);this[p]();return r}[N](){if(this[g])return false;this[g]=true;this.readable=false;return this[j]?(defer((()=>this[B]())),true):this[B]()}[B](){if(this[C]){const t=this[C].end();if(t){for(const r of this[R]){r.dest.write(t)}if(!this[z])super.emit("data",t)}}for(const t of this[R]){t.end()}const t=super.emit("end");this.removeAllListeners("end");return t}async collect(){const t=Object.assign([],{dataLength:0});if(!this[M])t.dataLength=0;const r=this.promise();this.on("data",(r=>{t.push(r);if(!this[M])t.dataLength+=r.length}));await r;return t}async concat(){if(this[M]){throw new Error("cannot concat in objectMode")}const t=await this.collect();return this[_]?t.join(""):Buffer.concat(t,t.dataLength)}async promise(){return new Promise(((t,r)=>{this.on(L,(()=>r(new Error("stream destroyed"))));this.on("error",(t=>r(t)));this.on("end",(()=>t()))}))}[Symbol.asyncIterator](){this[z]=false;let t=false;const stop=async()=>{this.pause();t=true;return{value:undefined,done:true}};const next=()=>{if(t)return stop();const r=this.read();if(r!==null)return Promise.resolve({done:false,value:r});if(this[d])return stop();let i;let o;const onerr=t=>{this.off("data",ondata);this.off("end",onend);this.off(L,ondestroy);stop();o(t)};const ondata=t=>{this.off("error",onerr);this.off("end",onend);this.off(L,ondestroy);this.pause();i({value:t,done:!!this[d]})};const onend=()=>{this.off("error",onerr);this.off("data",ondata);this.off(L,ondestroy);stop();i({done:true,value:undefined})};const ondestroy=()=>onerr(new Error("stream destroyed"));return new Promise(((t,r)=>{o=r;i=t;this.once(L,ondestroy);this.once("error",onerr);this.once("end",onend);this.once("data",ondata)}))};return{next:next,throw:stop,return:stop,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[z]=false;let t=false;const stop=()=>{this.pause();this.off(I,stop);this.off(L,stop);this.off("end",stop);t=true;return{done:true,value:undefined}};const next=()=>{if(t)return stop();const r=this.read();return r===null?stop():{done:false,value:r}};this.once("end",stop);this.once(I,stop);this.once(L,stop);return{next:next,throw:stop,return:stop,[Symbol.iterator](){return this}}}destroy(t){if(this[L]){if(t)this.emit("error",t);else this.emit(L);return this}this[L]=true;this[z]=true;this[O].length=0;this[k]=0;const r=this;if(typeof r.close==="function"&&!this[w])r.close();if(t)this.emit("error",t);else this.emit(L);return this}static get isStream(){return r.isStream}}r.Minipass=Minipass},5715:function(t,r,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,r,i,o){if(o===undefined)o=i;var a=Object.getOwnPropertyDescriptor(r,i);if(!a||("get"in a?!r.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return r[i]}}}Object.defineProperty(t,o,a)}:function(t,r,i,o){if(o===undefined)o=i;t[o]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:true,value:r})}:function(t,r){t["default"]=r});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i))o(r,t,i);a(r,t);return r};Object.defineProperty(r,"__esModule",{value:true});r.PathScurry=r.Path=r.PathScurryDarwin=r.PathScurryPosix=r.PathScurryWin32=r.PathScurryBase=r.PathPosix=r.PathWin32=r.PathBase=r.ChildrenCache=r.ResolveCache=void 0;const l=i(3576);const h=i(9411);const d=i(1041);const p=i(7147);const g=u(i(7561));const y=p.realpathSync.native;const b=i(3977);const w=i(6014);const v={lstatSync:p.lstatSync,readdir:p.readdir,readdirSync:p.readdirSync,readlinkSync:p.readlinkSync,realpathSync:y,promises:{lstat:b.lstat,readdir:b.readdir,readlink:b.readlink,realpath:b.realpath}};const fsFromOption=t=>!t||t===v||t===g?v:{...v,...t,promises:{...v.promises,...t.promises||{}}};const E=/^\\\\\?\\([a-z]:)\\?$/i;const uncToDrive=t=>t.replace(/\//g,"\\").replace(E,"$1\\");const A=/[\\\/]/;const _=0;const C=1;const S=2;const D=4;const x=6;const O=8;const R=10;const k=12;const P=15;const T=~P;const M=16;const L=32;const I=64;const $=128;const N=256;const B=512;const j=I|$|B;const H=1023;const entToType=t=>t.isFile()?O:t.isDirectory()?D:t.isSymbolicLink()?R:t.isCharacterDevice()?S:t.isBlockDevice()?x:t.isSocket()?k:t.isFIFO()?C:_;const G=new Map;const normalize=t=>{const r=G.get(t);if(r)return r;const i=t.normalize("NFKD");G.set(t,i);return i};const U=new Map;const normalizeNocase=t=>{const r=U.get(t);if(r)return r;const i=normalize(t.toLowerCase());U.set(t,i);return i};class ResolveCache extends l.LRUCache{constructor(){super({max:256})}}r.ResolveCache=ResolveCache;class ChildrenCache extends l.LRUCache{constructor(t=16*1024){super({maxSize:t,sizeCalculation:t=>t.length+1})}}r.ChildrenCache=ChildrenCache;const W=Symbol("PathScurry setAsCwd");class PathBase{name;root;roots;parent;nocase;isCWD=false;#we;#ve;get dev(){return this.#ve}#Ee;get mode(){return this.#Ee}#Ae;get nlink(){return this.#Ae}#_e;get uid(){return this.#_e}#Ce;get gid(){return this.#Ce}#Se;get rdev(){return this.#Se}#De;get blksize(){return this.#De}#xe;get ino(){return this.#xe}#B;get size(){return this.#B}#Oe;get blocks(){return this.#Oe}#Re;get atimeMs(){return this.#Re}#ke;get mtimeMs(){return this.#ke}#Fe;get ctimeMs(){return this.#Fe}#Pe;get birthtimeMs(){return this.#Pe}#Te;get atime(){return this.#Te}#Me;get mtime(){return this.#Me}#Le;get ctime(){return this.#Le}#Ie;get birthtime(){return this.#Ie}#$e;#Ne;#Be;#je;#He;#Ge;#Ue;#We;#ze;#Ye;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(t,r=_,i,o,a,u,l){this.name=t;this.#$e=a?normalizeNocase(t):normalize(t);this.#Ue=r&H;this.nocase=a;this.roots=o;this.root=i||this;this.#We=u;this.#Be=l.fullpath;this.#He=l.relative;this.#Ge=l.relativePosix;this.parent=l.parent;if(this.parent){this.#we=this.parent.#we}else{this.#we=fsFromOption(l.fs)}}depth(){if(this.#Ne!==undefined)return this.#Ne;if(!this.parent)return this.#Ne=0;return this.#Ne=this.parent.depth()+1}childrenCache(){return this.#We}resolve(t){if(!t){return this}const r=this.getRootString(t);const i=t.substring(r.length);const o=i.split(this.splitSep);const a=r?this.getRoot(r).#Ke(o):this.#Ke(o);return a}#Ke(t){let r=this;for(const i of t){r=r.child(i)}return r}children(){const t=this.#We.get(this);if(t){return t}const r=Object.assign([],{provisional:0});this.#We.set(this,r);this.#Ue&=~M;return r}child(t,r){if(t===""||t==="."){return this}if(t===".."){return this.parent||this}const i=this.children();const o=this.nocase?normalizeNocase(t):normalize(t);for(const t of i){if(t.#$e===o){return t}}const a=this.parent?this.sep:"";const u=this.#Be?this.#Be+a+t:undefined;const l=this.newChild(t,_,{...r,parent:this,fullpath:u});if(!this.canReaddir()){l.#Ue|=$}i.push(l);return l}relative(){if(this.isCWD)return"";if(this.#He!==undefined){return this.#He}const t=this.name;const r=this.parent;if(!r){return this.#He=this.name}const i=r.relative();return i+(!i||!r.parent?"":this.sep)+t}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#Ge!==undefined)return this.#Ge;const t=this.name;const r=this.parent;if(!r){return this.#Ge=this.fullpathPosix()}const i=r.relativePosix();return i+(!i||!r.parent?"":"/")+t}fullpath(){if(this.#Be!==undefined){return this.#Be}const t=this.name;const r=this.parent;if(!r){return this.#Be=this.name}const i=r.fullpath();const o=i+(!r.parent?"":this.sep)+t;return this.#Be=o}fullpathPosix(){if(this.#je!==undefined)return this.#je;if(this.sep==="/")return this.#je=this.fullpath();if(!this.parent){const t=this.fullpath().replace(/\\/g,"/");if(/^[a-z]:\//i.test(t)){return this.#je=`//?/${t}`}else{return this.#je=t}}const t=this.parent;const r=t.fullpathPosix();const i=r+(!r||!t.parent?"":"/")+this.name;return this.#je=i}isUnknown(){return(this.#Ue&P)===_}isType(t){return this[`is${t}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#Ue&P)===O}isDirectory(){return(this.#Ue&P)===D}isCharacterDevice(){return(this.#Ue&P)===S}isBlockDevice(){return(this.#Ue&P)===x}isFIFO(){return(this.#Ue&P)===C}isSocket(){return(this.#Ue&P)===k}isSymbolicLink(){return(this.#Ue&R)===R}lstatCached(){return this.#Ue&L?this:undefined}readlinkCached(){return this.#ze}realpathCached(){return this.#Ye}readdirCached(){const t=this.children();return t.slice(0,t.provisional)}canReadlink(){if(this.#ze)return true;if(!this.parent)return false;const t=this.#Ue&P;return!(t!==_&&t!==R||this.#Ue&N||this.#Ue&$)}calledReaddir(){return!!(this.#Ue&M)}isENOENT(){return!!(this.#Ue&$)}isNamed(t){return!this.nocase?this.#$e===normalize(t):this.#$e===normalizeNocase(t)}async readlink(){const t=this.#ze;if(t){return t}if(!this.canReadlink()){return undefined}if(!this.parent){return undefined}try{const t=await this.#we.promises.readlink(this.fullpath());const r=(await this.parent.realpath())?.resolve(t);if(r){return this.#ze=r}}catch(t){this.#Ve(t.code);return undefined}}readlinkSync(){const t=this.#ze;if(t){return t}if(!this.canReadlink()){return undefined}if(!this.parent){return undefined}try{const t=this.#we.readlinkSync(this.fullpath());const r=this.parent.realpathSync()?.resolve(t);if(r){return this.#ze=r}}catch(t){this.#Ve(t.code);return undefined}}#qe(t){this.#Ue|=M;for(let r=t.provisional;r<t.length;r++){const i=t[r];if(i)i.#Xe()}}#Xe(){if(this.#Ue&$)return;this.#Ue=(this.#Ue|$)&T;this.#Ze()}#Ze(){const t=this.children();t.provisional=0;for(const r of t){r.#Xe()}}#Je(){this.#Ue|=B;this.#Qe()}#Qe(){if(this.#Ue&I)return;let t=this.#Ue;if((t&P)===D)t&=T;this.#Ue=t|I;this.#Ze()}#et(t=""){if(t==="ENOTDIR"||t==="EPERM"){this.#Qe()}else if(t==="ENOENT"){this.#Xe()}else{this.children().provisional=0}}#tt(t=""){if(t==="ENOTDIR"){const t=this.parent;t.#Qe()}else if(t==="ENOENT"){this.#Xe()}}#Ve(t=""){let r=this.#Ue;r|=N;if(t==="ENOENT")r|=$;if(t==="EINVAL"||t==="UNKNOWN"){r&=T}this.#Ue=r;if(t==="ENOTDIR"&&this.parent){this.parent.#Qe()}}#rt(t,r){return this.#st(t,r)||this.#it(t,r)}#it(t,r){const i=entToType(t);const o=this.newChild(t.name,i,{parent:this});const a=o.#Ue&P;if(a!==D&&a!==R&&a!==_){o.#Ue|=I}r.unshift(o);r.provisional++;return o}#st(t,r){for(let i=r.provisional;i<r.length;i++){const o=r[i];const a=this.nocase?normalizeNocase(t.name):normalize(t.name);if(a!==o.#$e){continue}return this.#nt(t,o,i,r)}}#nt(t,r,i,o){const a=r.name;r.#Ue=r.#Ue&T|entToType(t);if(a!==t.name)r.name=t.name;if(i!==o.provisional){if(i===o.length-1)o.pop();else o.splice(i,1);o.unshift(r)}o.provisional++;return r}async lstat(){if((this.#Ue&$)===0){try{this.#ot(await this.#we.promises.lstat(this.fullpath()));return this}catch(t){this.#tt(t.code)}}}lstatSync(){if((this.#Ue&$)===0){try{this.#ot(this.#we.lstatSync(this.fullpath()));return this}catch(t){this.#tt(t.code)}}}#ot(t){const{atime:r,atimeMs:i,birthtime:o,birthtimeMs:a,blksize:u,blocks:l,ctime:h,ctimeMs:d,dev:p,gid:g,ino:y,mode:b,mtime:w,mtimeMs:v,nlink:E,rdev:A,size:C,uid:S}=t;this.#Te=r;this.#Re=i;this.#Ie=o;this.#Pe=a;this.#De=u;this.#Oe=l;this.#Le=h;this.#Fe=d;this.#ve=p;this.#Ce=g;this.#xe=y;this.#Ee=b;this.#Me=w;this.#ke=v;this.#Ae=E;this.#Se=A;this.#B=C;this.#_e=S;const x=entToType(t);this.#Ue=this.#Ue&T|x|L;if(x!==_&&x!==D&&x!==R){this.#Ue|=I}}#at=[];#ut=false;#lt(t){this.#ut=false;const r=this.#at.slice();this.#at.length=0;r.forEach((r=>r(null,t)))}readdirCB(t,r=false){if(!this.canReaddir()){if(r)t(null,[]);else queueMicrotask((()=>t(null,[])));return}const i=this.children();if(this.calledReaddir()){const o=i.slice(0,i.provisional);if(r)t(null,o);else queueMicrotask((()=>t(null,o)));return}this.#at.push(t);if(this.#ut){return}this.#ut=true;const o=this.fullpath();this.#we.readdir(o,{withFileTypes:true},((t,r)=>{if(t){this.#et(t.code);i.provisional=0}else{for(const t of r){this.#rt(t,i)}this.#qe(i)}this.#lt(i.slice(0,i.provisional));return}))}#ct;async readdir(){if(!this.canReaddir()){return[]}const t=this.children();if(this.calledReaddir()){return t.slice(0,t.provisional)}const r=this.fullpath();if(this.#ct){await this.#ct}else{let resolve=()=>{};this.#ct=new Promise((t=>resolve=t));try{for(const i of await this.#we.promises.readdir(r,{withFileTypes:true})){this.#rt(i,t)}this.#qe(t)}catch(r){this.#et(r.code);t.provisional=0}this.#ct=undefined;resolve()}return t.slice(0,t.provisional)}readdirSync(){if(!this.canReaddir()){return[]}const t=this.children();if(this.calledReaddir()){return t.slice(0,t.provisional)}const r=this.fullpath();try{for(const i of this.#we.readdirSync(r,{withFileTypes:true})){this.#rt(i,t)}this.#qe(t)}catch(r){this.#et(r.code);t.provisional=0}return t.slice(0,t.provisional)}canReaddir(){if(this.#Ue&j)return false;const t=P&this.#Ue;if(!(t===_||t===D||t===R)){return false}return true}shouldWalk(t,r){return(this.#Ue&D)===D&&!(this.#Ue&j)&&!t.has(this)&&(!r||r(this))}async realpath(){if(this.#Ye)return this.#Ye;if((B|N|$)&this.#Ue)return undefined;try{const t=await this.#we.promises.realpath(this.fullpath());return this.#Ye=this.resolve(t)}catch(t){this.#Je()}}realpathSync(){if(this.#Ye)return this.#Ye;if((B|N|$)&this.#Ue)return undefined;try{const t=this.#we.realpathSync(this.fullpath());return this.#Ye=this.resolve(t)}catch(t){this.#Je()}}[W](t){if(t===this)return;t.isCWD=false;this.isCWD=true;const r=new Set([]);let i=[];let o=this;while(o&&o.parent){r.add(o);o.#He=i.join(this.sep);o.#Ge=i.join("/");o=o.parent;i.push("..")}o=t;while(o&&o.parent&&!r.has(o)){o.#He=undefined;o.#Ge=undefined;o=o.parent}}}r.PathBase=PathBase;class PathWin32 extends PathBase{sep="\\";splitSep=A;constructor(t,r=_,i,o,a,u,l){super(t,r,i,o,a,u,l)}newChild(t,r=_,i={}){return new PathWin32(t,r,this.root,this.roots,this.nocase,this.childrenCache(),i)}getRootString(t){return h.win32.parse(t).root}getRoot(t){t=uncToDrive(t.toUpperCase());if(t===this.root.name){return this.root}for(const[r,i]of Object.entries(this.roots)){if(this.sameRoot(t,r)){return this.roots[t]=i}}return this.roots[t]=new PathScurryWin32(t,this).root}sameRoot(t,r=this.root.name){t=t.toUpperCase().replace(/\//g,"\\").replace(E,"$1\\");return t===r}}r.PathWin32=PathWin32;class PathPosix extends PathBase{splitSep="/";sep="/";constructor(t,r=_,i,o,a,u,l){super(t,r,i,o,a,u,l)}getRootString(t){return t.startsWith("/")?"/":""}getRoot(t){return this.root}newChild(t,r=_,i={}){return new PathPosix(t,r,this.root,this.roots,this.nocase,this.childrenCache(),i)}}r.PathPosix=PathPosix;class PathScurryBase{root;rootPath;roots;cwd;#ht;#ft;#We;nocase;#we;constructor(t=process.cwd(),r,i,{nocase:o,childrenCacheSize:a=16*1024,fs:u=v}={}){this.#we=fsFromOption(u);if(t instanceof URL||t.startsWith("file://")){t=(0,d.fileURLToPath)(t)}const l=r.resolve(t);this.roots=Object.create(null);this.rootPath=this.parseRootPath(l);this.#ht=new ResolveCache;this.#ft=new ResolveCache;this.#We=new ChildrenCache(a);const h=l.substring(this.rootPath.length).split(i);if(h.length===1&&!h[0]){h.pop()}if(o===undefined){throw new TypeError("must provide nocase setting to PathScurryBase ctor")}this.nocase=o;this.root=this.newRoot(this.#we);this.roots[this.rootPath]=this.root;let p=this.root;let g=h.length-1;const y=r.sep;let b=this.rootPath;let w=false;for(const t of h){const r=g--;p=p.child(t,{relative:new Array(r).fill("..").join(y),relativePosix:new Array(r).fill("..").join("/"),fullpath:b+=(w?"":y)+t});w=true}this.cwd=p}depth(t=this.cwd){if(typeof t==="string"){t=this.cwd.resolve(t)}return t.depth()}childrenCache(){return this.#We}resolve(...t){let r="";for(let i=t.length-1;i>=0;i--){const o=t[i];if(!o||o===".")continue;r=r?`${o}/${r}`:o;if(this.isAbsolute(o)){break}}const i=this.#ht.get(r);if(i!==undefined){return i}const o=this.cwd.resolve(r).fullpath();this.#ht.set(r,o);return o}resolvePosix(...t){let r="";for(let i=t.length-1;i>=0;i--){const o=t[i];if(!o||o===".")continue;r=r?`${o}/${r}`:o;if(this.isAbsolute(o)){break}}const i=this.#ft.get(r);if(i!==undefined){return i}const o=this.cwd.resolve(r).fullpathPosix();this.#ft.set(r,o);return o}relative(t=this.cwd){if(typeof t==="string"){t=this.cwd.resolve(t)}return t.relative()}relativePosix(t=this.cwd){if(typeof t==="string"){t=this.cwd.resolve(t)}return t.relativePosix()}basename(t=this.cwd){if(typeof t==="string"){t=this.cwd.resolve(t)}return t.name}dirname(t=this.cwd){if(typeof t==="string"){t=this.cwd.resolve(t)}return(t.parent||t).fullpath()}async readdir(t=this.cwd,r={withFileTypes:true}){if(typeof t==="string"){t=this.cwd.resolve(t)}else if(!(t instanceof PathBase)){r=t;t=this.cwd}const{withFileTypes:i}=r;if(!t.canReaddir()){return[]}else{const r=await t.readdir();return i?r:r.map((t=>t.name))}}readdirSync(t=this.cwd,r={withFileTypes:true}){if(typeof t==="string"){t=this.cwd.resolve(t)}else if(!(t instanceof PathBase)){r=t;t=this.cwd}const{withFileTypes:i=true}=r;if(!t.canReaddir()){return[]}else if(i){return t.readdirSync()}else{return t.readdirSync().map((t=>t.name))}}async lstat(t=this.cwd){if(typeof t==="string"){t=this.cwd.resolve(t)}return t.lstat()}lstatSync(t=this.cwd){if(typeof t==="string"){t=this.cwd.resolve(t)}return t.lstatSync()}async readlink(t=this.cwd,{withFileTypes:r}={withFileTypes:false}){if(typeof t==="string"){t=this.cwd.resolve(t)}else if(!(t instanceof PathBase)){r=t.withFileTypes;t=this.cwd}const i=await t.readlink();return r?i:i?.fullpath()}readlinkSync(t=this.cwd,{withFileTypes:r}={withFileTypes:false}){if(typeof t==="string"){t=this.cwd.resolve(t)}else if(!(t instanceof PathBase)){r=t.withFileTypes;t=this.cwd}const i=t.readlinkSync();return r?i:i?.fullpath()}async realpath(t=this.cwd,{withFileTypes:r}={withFileTypes:false}){if(typeof t==="string"){t=this.cwd.resolve(t)}else if(!(t instanceof PathBase)){r=t.withFileTypes;t=this.cwd}const i=await t.realpath();return r?i:i?.fullpath()}realpathSync(t=this.cwd,{withFileTypes:r}={withFileTypes:false}){if(typeof t==="string"){t=this.cwd.resolve(t)}else if(!(t instanceof PathBase)){r=t.withFileTypes;t=this.cwd}const i=t.realpathSync();return r?i:i?.fullpath()}async walk(t=this.cwd,r={}){if(typeof t==="string"){t=this.cwd.resolve(t)}else if(!(t instanceof PathBase)){r=t;t=this.cwd}const{withFileTypes:i=true,follow:o=false,filter:a,walkFilter:u}=r;const l=[];if(!a||a(t)){l.push(i?t:t.fullpath())}const h=new Set;const walk=(t,r)=>{h.add(t);t.readdirCB(((t,d)=>{if(t){return r(t)}let p=d.length;if(!p)return r();const next=()=>{if(--p===0){r()}};for(const t of d){if(!a||a(t)){l.push(i?t:t.fullpath())}if(o&&t.isSymbolicLink()){t.realpath().then((t=>t?.isUnknown()?t.lstat():t)).then((t=>t?.shouldWalk(h,u)?walk(t,next):next()))}else{if(t.shouldWalk(h,u)){walk(t,next)}else{next()}}}}),true)};const d=t;return new Promise(((t,r)=>{walk(d,(i=>{if(i)return r(i);t(l)}))}))}walkSync(t=this.cwd,r={}){if(typeof t==="string"){t=this.cwd.resolve(t)}else if(!(t instanceof PathBase)){r=t;t=this.cwd}const{withFileTypes:i=true,follow:o=false,filter:a,walkFilter:u}=r;const l=[];if(!a||a(t)){l.push(i?t:t.fullpath())}const h=new Set([t]);for(const t of h){const r=t.readdirSync();for(const t of r){if(!a||a(t)){l.push(i?t:t.fullpath())}let r=t;if(t.isSymbolicLink()){if(!(o&&(r=t.realpathSync())))continue;if(r.isUnknown())r.lstatSync()}if(r.shouldWalk(h,u)){h.add(r)}}}return l}[Symbol.asyncIterator](){return this.iterate()}iterate(t=this.cwd,r={}){if(typeof t==="string"){t=this.cwd.resolve(t)}else if(!(t instanceof PathBase)){r=t;t=this.cwd}return this.stream(t,r)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(t=this.cwd,r={}){if(typeof t==="string"){t=this.cwd.resolve(t)}else if(!(t instanceof PathBase)){r=t;t=this.cwd}const{withFileTypes:i=true,follow:o=false,filter:a,walkFilter:u}=r;if(!a||a(t)){yield i?t:t.fullpath()}const l=new Set([t]);for(const t of l){const r=t.readdirSync();for(const t of r){if(!a||a(t)){yield i?t:t.fullpath()}let r=t;if(t.isSymbolicLink()){if(!(o&&(r=t.realpathSync())))continue;if(r.isUnknown())r.lstatSync()}if(r.shouldWalk(l,u)){l.add(r)}}}}stream(t=this.cwd,r={}){if(typeof t==="string"){t=this.cwd.resolve(t)}else if(!(t instanceof PathBase)){r=t;t=this.cwd}const{withFileTypes:i=true,follow:o=false,filter:a,walkFilter:u}=r;const l=new w.Minipass({objectMode:true});if(!a||a(t)){l.write(i?t:t.fullpath())}const h=new Set;const d=[t];let p=0;const process=()=>{let t=false;while(!t){const r=d.shift();if(!r){if(p===0)l.end();return}p++;h.add(r);const onReaddir=(r,y,b=false)=>{if(r)return l.emit("error",r);if(o&&!b){const t=[];for(const r of y){if(r.isSymbolicLink()){t.push(r.realpath().then((t=>t?.isUnknown()?t.lstat():t)))}}if(t.length){Promise.all(t).then((()=>onReaddir(null,y,true)));return}}for(const r of y){if(r&&(!a||a(r))){if(!l.write(i?r:r.fullpath())){t=true}}}p--;for(const t of y){const r=t.realpathCached()||t;if(r.shouldWalk(h,u)){d.push(r)}}if(t&&!l.flowing){l.once("drain",process)}else if(!g){process()}};let g=true;r.readdirCB(onReaddir,true);g=false}};process();return l}streamSync(t=this.cwd,r={}){if(typeof t==="string"){t=this.cwd.resolve(t)}else if(!(t instanceof PathBase)){r=t;t=this.cwd}const{withFileTypes:i=true,follow:o=false,filter:a,walkFilter:u}=r;const l=new w.Minipass({objectMode:true});const h=new Set;if(!a||a(t)){l.write(i?t:t.fullpath())}const d=[t];let p=0;const process=()=>{let t=false;while(!t){const r=d.shift();if(!r){if(p===0)l.end();return}p++;h.add(r);const g=r.readdirSync();for(const r of g){if(!a||a(r)){if(!l.write(i?r:r.fullpath())){t=true}}}p--;for(const t of g){let r=t;if(t.isSymbolicLink()){if(!(o&&(r=t.realpathSync())))continue;if(r.isUnknown())r.lstatSync()}if(r.shouldWalk(h,u)){d.push(r)}}}if(t&&!l.flowing)l.once("drain",process)};process();return l}chdir(t=this.cwd){const r=this.cwd;this.cwd=typeof t==="string"?this.cwd.resolve(t):t;this.cwd[W](r)}}r.PathScurryBase=PathScurryBase;class PathScurryWin32 extends PathScurryBase{sep="\\";constructor(t=process.cwd(),r={}){const{nocase:i=true}=r;super(t,h.win32,"\\",{...r,nocase:i});this.nocase=i;for(let t=this.cwd;t;t=t.parent){t.nocase=this.nocase}}parseRootPath(t){return h.win32.parse(t).root.toUpperCase()}newRoot(t){return new PathWin32(this.rootPath,D,undefined,this.roots,this.nocase,this.childrenCache(),{fs:t})}isAbsolute(t){return t.startsWith("/")||t.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(t)}}r.PathScurryWin32=PathScurryWin32;class PathScurryPosix extends PathScurryBase{sep="/";constructor(t=process.cwd(),r={}){const{nocase:i=false}=r;super(t,h.posix,"/",{...r,nocase:i});this.nocase=i}parseRootPath(t){return"/"}newRoot(t){return new PathPosix(this.rootPath,D,undefined,this.roots,this.nocase,this.childrenCache(),{fs:t})}isAbsolute(t){return t.startsWith("/")}}r.PathScurryPosix=PathScurryPosix;class PathScurryDarwin extends PathScurryPosix{constructor(t=process.cwd(),r={}){const{nocase:i=true}=r;super(t,{...r,nocase:i})}}r.PathScurryDarwin=PathScurryDarwin;r.Path=process.platform==="win32"?PathWin32:PathPosix;r.PathScurry=process.platform==="win32"?PathScurryWin32:process.platform==="darwin"?PathScurryDarwin:PathScurryPosix},6273:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.chownrSync=r.chownr=void 0;const a=o(i(7561));const u=o(i(9411));const lchownSync=(t,r,i)=>{try{return a.default.lchownSync(t,r,i)}catch(t){if(t?.code!=="ENOENT")throw t}};const chown=(t,r,i,o)=>{a.default.lchown(t,r,i,(t=>{o(t&&t?.code!=="ENOENT"?t:null)}))};const chownrKid=(t,i,o,a,l)=>{if(i.isDirectory()){(0,r.chownr)(u.default.resolve(t,i.name),o,a,(r=>{if(r)return l(r);const h=u.default.resolve(t,i.name);chown(h,o,a,l)}))}else{const r=u.default.resolve(t,i.name);chown(r,o,a,l)}};const chownr=(t,r,i,o)=>{a.default.readdir(t,{withFileTypes:true},((a,u)=>{if(a){if(a.code==="ENOENT")return o();else if(a.code!=="ENOTDIR"&&a.code!=="ENOTSUP")return o(a)}if(a||!u.length)return chown(t,r,i,o);let l=u.length;let h=null;const then=a=>{if(h)return;if(a)return o(h=a);if(--l===0)return chown(t,r,i,o)};for(const o of u){chownrKid(t,o,r,i,then)}}))};r.chownr=chownr;const chownrKidSync=(t,i,o,a)=>{if(i.isDirectory())(0,r.chownrSync)(u.default.resolve(t,i.name),o,a);lchownSync(u.default.resolve(t,i.name),o,a)};const chownrSync=(t,r,i)=>{let o;try{o=a.default.readdirSync(t,{withFileTypes:true})}catch(o){const a=o;if(a?.code==="ENOENT")return;else if(a?.code==="ENOTDIR"||a?.code==="ENOTSUP")return lchownSync(t,r,i);else throw a}for(const a of o){chownrKidSync(t,a,r,i)}return lchownSync(t,r,i)};r.chownrSync=chownrSync},4303:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.constants=void 0;const a=o(i(9796));const u=a.default.constants||{ZLIB_VERNUM:4736};r.constants=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},u))},5489:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.BrotliDecompress=r.BrotliCompress=r.Brotli=r.Unzip=r.InflateRaw=r.DeflateRaw=r.Gunzip=r.Gzip=r.Inflate=r.Deflate=r.Zlib=r.ZlibError=r.constants=void 0;const a=o(i(9491));const u=i(4300);const l=i(6014);const h=o(i(9796));const d=i(4303);var p=i(4303);Object.defineProperty(r,"constants",{enumerable:true,get:function(){return p.constants}});const g=u.Buffer.concat;const y=Symbol("_superWrite");class ZlibError extends Error{code;errno;constructor(t){super("zlib: "+t.message);this.code=t.code;this.errno=t.errno;if(!this.code)this.code="ZLIB_ERROR";this.message="zlib: "+t.message;Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}}r.ZlibError=ZlibError;const b=Symbol("flushFlag");class ZlibBase extends l.Minipass{#dt=false;#pt=false;#mt;#gt;#yt;#bt;#wt;get sawError(){return this.#dt}get handle(){return this.#bt}get flushFlag(){return this.#mt}constructor(t,r){if(!t||typeof t!=="object")throw new TypeError("invalid options for ZlibBase constructor");super(t);this.#mt=t.flush??0;this.#gt=t.finishFlush??0;this.#yt=t.fullFlushFlag??0;try{this.#bt=new h.default[r](t)}catch(t){throw new ZlibError(t)}this.#wt=t=>{if(this.#dt)return;this.#dt=true;this.close();this.emit("error",t)};this.#bt?.on("error",(t=>this.#wt(new ZlibError(t))));this.once("end",(()=>this.close))}close(){if(this.#bt){this.#bt.close();this.#bt=undefined;this.emit("close")}}reset(){if(!this.#dt){(0,a.default)(this.#bt,"zlib binding closed");return this.#bt.reset?.()}}flush(t){if(this.ended)return;if(typeof t!=="number")t=this.#yt;this.write(Object.assign(u.Buffer.alloc(0),{[b]:t}))}end(t,r,i){if(typeof t==="function"){i=t;r=undefined;t=undefined}if(typeof r==="function"){i=r;r=undefined}if(t){if(r)this.write(t,r);else this.write(t)}this.flush(this.#gt);this.#pt=true;return super.end(i)}get ended(){return this.#pt}[y](t){return super.write(t)}write(t,r,i){if(typeof r==="function")i=r,r="utf8";if(typeof t==="string")t=u.Buffer.from(t,r);if(this.#dt)return;(0,a.default)(this.#bt,"zlib binding closed");const o=this.#bt._handle;const l=o.close;o.close=()=>{};const h=this.#bt.close;this.#bt.close=()=>{};u.Buffer.concat=t=>t;let d=undefined;try{const r=typeof t[b]==="number"?t[b]:this.#mt;d=this.#bt._processChunk(t,r);u.Buffer.concat=g}catch(t){u.Buffer.concat=g;this.#wt(new ZlibError(t))}finally{if(this.#bt){this.#bt._handle=o;o.close=l;this.#bt.close=h;this.#bt.removeAllListeners("error")}}if(this.#bt)this.#bt.on("error",(t=>this.#wt(new ZlibError(t))));let p;if(d){if(Array.isArray(d)&&d.length>0){const t=d[0];p=this[y](u.Buffer.from(t));for(let t=1;t<d.length;t++){p=this[y](d[t])}}else{p=this[y](u.Buffer.from(d))}}if(i)i();return p}}class Zlib extends ZlibBase{#vt;#Et;constructor(t,r){t=t||{};t.flush=t.flush||d.constants.Z_NO_FLUSH;t.finishFlush=t.finishFlush||d.constants.Z_FINISH;t.fullFlushFlag=d.constants.Z_FULL_FLUSH;super(t,r);this.#vt=t.level;this.#Et=t.strategy}params(t,r){if(this.sawError)return;if(!this.handle)throw new Error("cannot switch params when binding is closed");if(!this.handle.params)throw new Error("not supported in this implementation");if(this.#vt!==t||this.#Et!==r){this.flush(d.constants.Z_SYNC_FLUSH);(0,a.default)(this.handle,"zlib binding closed");const i=this.handle.flush;this.handle.flush=(t,r)=>{if(typeof t==="function"){r=t;t=this.flushFlag}this.flush(t);r?.()};try{this.handle.params(t,r)}finally{this.handle.flush=i}if(this.handle){this.#vt=t;this.#Et=r}}}}r.Zlib=Zlib;class Deflate extends Zlib{constructor(t){super(t,"Deflate")}}r.Deflate=Deflate;class Inflate extends Zlib{constructor(t){super(t,"Inflate")}}r.Inflate=Inflate;class Gzip extends Zlib{#At;constructor(t){super(t,"Gzip");this.#At=t&&!!t.portable}[y](t){if(!this.#At)return super[y](t);this.#At=false;t[9]=255;return super[y](t)}}r.Gzip=Gzip;class Gunzip extends Zlib{constructor(t){super(t,"Gunzip")}}r.Gunzip=Gunzip;class DeflateRaw extends Zlib{constructor(t){super(t,"DeflateRaw")}}r.DeflateRaw=DeflateRaw;class InflateRaw extends Zlib{constructor(t){super(t,"InflateRaw")}}r.InflateRaw=InflateRaw;class Unzip extends Zlib{constructor(t){super(t,"Unzip")}}r.Unzip=Unzip;class Brotli extends ZlibBase{constructor(t,r){t=t||{};t.flush=t.flush||d.constants.BROTLI_OPERATION_PROCESS;t.finishFlush=t.finishFlush||d.constants.BROTLI_OPERATION_FINISH;t.fullFlushFlag=d.constants.BROTLI_OPERATION_FLUSH;super(t,r)}}r.Brotli=Brotli;class BrotliCompress extends Brotli{constructor(t){super(t,"BrotliCompress")}}r.BrotliCompress=BrotliCompress;class BrotliDecompress extends Brotli{constructor(t){super(t,"BrotliDecompress")}}r.BrotliDecompress=BrotliDecompress},625:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.create=void 0;const a=i(9129);const u=o(i(9411));const l=i(1371);const h=i(8283);const d=i(543);const createFileSync=(t,r)=>{const i=new d.PackSync(t);const o=new a.WriteStreamSync(t.file,{mode:t.mode||438});i.pipe(o);addFilesSync(i,r)};const createFile=(t,r)=>{const i=new d.Pack(t);const o=new a.WriteStream(t.file,{mode:t.mode||438});i.pipe(o);const u=new Promise(((t,r)=>{o.on("error",r);o.on("close",t);i.on("error",r)}));addFilesAsync(i,r);return u};const addFilesSync=(t,r)=>{r.forEach((r=>{if(r.charAt(0)==="@"){(0,l.list)({file:u.default.resolve(t.cwd,r.slice(1)),sync:true,noResume:true,onReadEntry:r=>t.add(r)})}else{t.add(r)}}));t.end()};const addFilesAsync=async(t,r)=>{for(let i=0;i<r.length;i++){const o=String(r[i]);if(o.charAt(0)==="@"){await(0,l.list)({file:u.default.resolve(String(t.cwd),o.slice(1)),noResume:true,onReadEntry:r=>{t.add(r)}})}else{t.add(o)}}t.end()};const createSync=(t,r)=>{const i=new d.PackSync(t);addFilesSync(i,r);return i};const createAsync=(t,r)=>{const i=new d.Pack(t);addFilesAsync(i,r);return i};r.create=(0,h.makeCommand)(createFileSync,createFile,createSync,createAsync,((t,r)=>{if(!r?.length){throw new TypeError("no paths specified to add to archive")}}))},5479:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.CwdError=void 0;class CwdError extends Error{path;code;syscall="chdir";constructor(t,r){super(`${r}: Cannot cd into '${t}'`);this.path=t;this.code=r}get name(){return"CwdError"}}r.CwdError=CwdError},1021:function(t,r,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,r,i,o){if(o===undefined)o=i;var a=Object.getOwnPropertyDescriptor(r,i);if(!a||("get"in a?!r.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return r[i]}}}Object.defineProperty(t,o,a)}:function(t,r,i,o){if(o===undefined)o=i;t[o]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:true,value:r})}:function(t,r){t["default"]=r});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i))o(r,t,i);a(r,t);return r};var l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.extract=void 0;const h=u(i(9129));const d=l(i(7561));const p=i(1371);const g=i(8283);const y=i(9192);const extractFileSync=t=>{const r=new y.UnpackSync(t);const i=t.file;const o=d.default.statSync(i);const a=t.maxReadSize||16*1024*1024;const u=new h.ReadStreamSync(i,{readSize:a,size:o.size});u.pipe(r)};const extractFile=(t,r)=>{const i=new y.Unpack(t);const o=t.maxReadSize||16*1024*1024;const a=t.file;const u=new Promise(((t,r)=>{i.on("error",r);i.on("close",t);d.default.stat(a,((t,u)=>{if(t){r(t)}else{const t=new h.ReadStream(a,{readSize:o,size:u.size});t.on("error",r);t.pipe(i)}}))}));return u};r.extract=(0,g.makeCommand)(extractFileSync,extractFile,(t=>new y.UnpackSync(t)),(t=>new y.Unpack(t)),((t,r)=>{if(r?.length)(0,p.filesFilter)(t,r)}))},7701:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.getWriteFlag=void 0;const a=o(i(7147));const u=process.env.__FAKE_PLATFORM__||process.platform;const l=u==="win32";const{O_CREAT:h,O_TRUNC:d,O_WRONLY:p}=a.default.constants;const g=Number(process.env.__FAKE_FS_O_FILENAME__)||a.default.constants.UV_FS_O_FILEMAP||0;const y=l&&!!g;const b=512*1024;const w=g|d|h|p;r.getWriteFlag=!y?()=>"w":t=>t<b?w:"w"},2058:function(t,r,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,r,i,o){if(o===undefined)o=i;var a=Object.getOwnPropertyDescriptor(r,i);if(!a||("get"in a?!r.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return r[i]}}}Object.defineProperty(t,o,a)}:function(t,r,i,o){if(o===undefined)o=i;t[o]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:true,value:r})}:function(t,r){t["default"]=r});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i))o(r,t,i);a(r,t);return r};Object.defineProperty(r,"__esModule",{value:true});r.Header=void 0;const l=i(9411);const h=u(i(1290));const d=u(i(5596));class Header{cksumValid=false;needPax=false;nullBlock=false;block;path;mode;uid;gid;size;cksum;#Ue="Unsupported";linkpath;uname;gname;devmaj=0;devmin=0;atime;ctime;mtime;charset;comment;constructor(t,r=0,i,o){if(Buffer.isBuffer(t)){this.decode(t,r||0,i,o)}else if(t){this.#_t(t)}}decode(t,r,i,o){if(!r){r=0}if(!t||!(t.length>=r+512)){throw new Error("need 512 bytes for header")}this.path=decString(t,r,100);this.mode=decNumber(t,r+100,8);this.uid=decNumber(t,r+108,8);this.gid=decNumber(t,r+116,8);this.size=decNumber(t,r+124,12);this.mtime=decDate(t,r+136,12);this.cksum=decNumber(t,r+148,12);if(o)this.#_t(o,true);if(i)this.#_t(i);const a=decString(t,r+156,1);if(d.isCode(a)){this.#Ue=a||"0"}if(this.#Ue==="0"&&this.path.slice(-1)==="/"){this.#Ue="5"}if(this.#Ue==="5"){this.size=0}this.linkpath=decString(t,r+157,100);if(t.subarray(r+257,r+265).toString()==="ustar\x0000"){this.uname=decString(t,r+265,32);this.gname=decString(t,r+297,32);this.devmaj=decNumber(t,r+329,8)??0;this.devmin=decNumber(t,r+337,8)??0;if(t[r+475]!==0){const i=decString(t,r+345,155);this.path=i+"/"+this.path}else{const i=decString(t,r+345,130);if(i){this.path=i+"/"+this.path}this.atime=decDate(t,r+476,12);this.ctime=decDate(t,r+488,12)}}let u=8*32;for(let i=r;i<r+148;i++){u+=t[i]}for(let i=r+156;i<r+512;i++){u+=t[i]}this.cksumValid=u===this.cksum;if(this.cksum===undefined&&u===8*32){this.nullBlock=true}}#_t(t,r=false){Object.assign(this,Object.fromEntries(Object.entries(t).filter((([t,i])=>!(i===null||i===undefined||t==="path"&&r||t==="linkpath"&&r||t==="global")))))}encode(t,r=0){if(!t){t=this.block=Buffer.alloc(512)}if(this.#Ue==="Unsupported"){this.#Ue="0"}if(!(t.length>=r+512)){throw new Error("need 512 bytes for header")}const i=this.ctime||this.atime?130:155;const o=splitPrefix(this.path||"",i);const a=o[0];const u=o[1];this.needPax=!!o[2];this.needPax=encString(t,r,100,a)||this.needPax;this.needPax=encNumber(t,r+100,8,this.mode)||this.needPax;this.needPax=encNumber(t,r+108,8,this.uid)||this.needPax;this.needPax=encNumber(t,r+116,8,this.gid)||this.needPax;this.needPax=encNumber(t,r+124,12,this.size)||this.needPax;this.needPax=encDate(t,r+136,12,this.mtime)||this.needPax;t[r+156]=this.#Ue.charCodeAt(0);this.needPax=encString(t,r+157,100,this.linkpath)||this.needPax;t.write("ustar\x0000",r+257,8);this.needPax=encString(t,r+265,32,this.uname)||this.needPax;this.needPax=encString(t,r+297,32,this.gname)||this.needPax;this.needPax=encNumber(t,r+329,8,this.devmaj)||this.needPax;this.needPax=encNumber(t,r+337,8,this.devmin)||this.needPax;this.needPax=encString(t,r+345,i,u)||this.needPax;if(t[r+475]!==0){this.needPax=encString(t,r+345,155,u)||this.needPax}else{this.needPax=encString(t,r+345,130,u)||this.needPax;this.needPax=encDate(t,r+476,12,this.atime)||this.needPax;this.needPax=encDate(t,r+488,12,this.ctime)||this.needPax}let l=8*32;for(let i=r;i<r+148;i++){l+=t[i]}for(let i=r+156;i<r+512;i++){l+=t[i]}this.cksum=l;encNumber(t,r+148,8,this.cksum);this.cksumValid=true;return this.needPax}get type(){return this.#Ue==="Unsupported"?this.#Ue:d.name.get(this.#Ue)}get typeKey(){return this.#Ue}set type(t){const r=String(d.code.get(t));if(d.isCode(r)||r==="Unsupported"){this.#Ue=r}else if(d.isCode(t)){this.#Ue=t}else{throw new TypeError("invalid entry type: "+t)}}}r.Header=Header;const splitPrefix=(t,r)=>{const i=100;let o=t;let a="";let u=undefined;const h=l.posix.parse(t).root||".";if(Buffer.byteLength(o)<i){u=[o,a,false]}else{a=l.posix.dirname(o);o=l.posix.basename(o);do{if(Buffer.byteLength(o)<=i&&Buffer.byteLength(a)<=r){u=[o,a,false]}else if(Buffer.byteLength(o)>i&&Buffer.byteLength(a)<=r){u=[o.slice(0,i-1),a,true]}else{o=l.posix.join(l.posix.basename(a),o);a=l.posix.dirname(a)}}while(a!==h&&u===undefined);if(!u){u=[t.slice(0,i-1),"",true]}}return u};const decString=(t,r,i)=>t.subarray(r,r+i).toString("utf8").replace(/\0.*/,"");const decDate=(t,r,i)=>numToDate(decNumber(t,r,i));const numToDate=t=>t===undefined?undefined:new Date(t*1e3);const decNumber=(t,r,i)=>Number(t[r])&128?h.parse(t.subarray(r,r+i)):decSmallNumber(t,r,i);const nanUndef=t=>isNaN(t)?undefined:t;const decSmallNumber=(t,r,i)=>nanUndef(parseInt(t.subarray(r,r+i).toString("utf8").replace(/\0.*$/,"").trim(),8));const p={12:8589934591,8:2097151};const encNumber=(t,r,i,o)=>o===undefined?false:o>p[i]||o<0?(h.encode(o,t.subarray(r,r+i)),true):(encSmallNumber(t,r,i,o),false);const encSmallNumber=(t,r,i,o)=>t.write(octalString(o,i),r,i,"ascii");const octalString=(t,r)=>padOctal(Math.floor(t).toString(8),r);const padOctal=(t,r)=>(t.length===r-1?t:new Array(r-t.length-1).join("0")+t+" ")+"\0";const encDate=(t,r,i,o)=>o===undefined?false:encNumber(t,r,i,o.getTime()/1e3);const g=new Array(156).join("\0");const encString=(t,r,i,o)=>o===undefined?false:(t.write(o+g,r,i,"utf8"),o.length!==Buffer.byteLength(o)||o.length>i)},7573:function(t,r,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,r,i,o){if(o===undefined)o=i;var a=Object.getOwnPropertyDescriptor(r,i);if(!a||("get"in a?!r.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return r[i]}}}Object.defineProperty(t,o,a)}:function(t,r,i,o){if(o===undefined)o=i;t[o]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:true,value:r})}:function(t,r){t["default"]=r});var u=this&&this.__exportStar||function(t,r){for(var i in t)if(i!=="default"&&!Object.prototype.hasOwnProperty.call(r,i))o(r,t,i)};var l=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i))o(r,t,i);a(r,t);return r};Object.defineProperty(r,"__esModule",{value:true});r.u=r.types=r.r=r.t=r.x=r.c=void 0;u(i(625),r);var h=i(625);Object.defineProperty(r,"c",{enumerable:true,get:function(){return h.create}});u(i(1021),r);var d=i(1021);Object.defineProperty(r,"x",{enumerable:true,get:function(){return d.extract}});u(i(2058),r);u(i(1371),r);var p=i(1371);Object.defineProperty(r,"t",{enumerable:true,get:function(){return p.list}});u(i(543),r);u(i(1766),r);u(i(3798),r);u(i(1476),r);u(i(4095),r);var g=i(4095);Object.defineProperty(r,"r",{enumerable:true,get:function(){return g.replace}});r.types=l(i(5596));u(i(9192),r);u(i(8368),r);var y=i(8368);Object.defineProperty(r,"u",{enumerable:true,get:function(){return y.update}});u(i(1595),r)},1290:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.parse=r.encode=void 0;const encode=(t,r)=>{if(!Number.isSafeInteger(t)){throw Error("cannot encode number outside of javascript safe integer range")}else if(t<0){encodeNegative(t,r)}else{encodePositive(t,r)}return r};r.encode=encode;const encodePositive=(t,r)=>{r[0]=128;for(var i=r.length;i>1;i--){r[i-1]=t&255;t=Math.floor(t/256)}};const encodeNegative=(t,r)=>{r[0]=255;var i=false;t=t*-1;for(var o=r.length;o>1;o--){var a=t&255;t=Math.floor(t/256);if(i){r[o-1]=onesComp(a)}else if(a===0){r[o-1]=0}else{i=true;r[o-1]=twosComp(a)}}};const parse=t=>{const r=t[0];const i=r===128?pos(t.subarray(1,t.length)):r===255?twos(t):null;if(i===null){throw Error("invalid base256 encoding")}if(!Number.isSafeInteger(i)){throw Error("parsed number outside of javascript safe integer range")}return i};r.parse=parse;const twos=t=>{var r=t.length;var i=0;var o=false;for(var a=r-1;a>-1;a--){var u=Number(t[a]);var l;if(o){l=onesComp(u)}else if(u===0){l=u}else{o=true;l=twosComp(u)}if(l!==0){i-=l*Math.pow(256,r-a-1)}}return i};const pos=t=>{var r=t.length;var i=0;for(var o=r-1;o>-1;o--){var a=Number(t[o]);if(a!==0){i+=a*Math.pow(256,r-o-1)}}return i};const onesComp=t=>(255^t)&255;const twosComp=t=>(255^t)+1&255},1371:function(t,r,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,r,i,o){if(o===undefined)o=i;var a=Object.getOwnPropertyDescriptor(r,i);if(!a||("get"in a?!r.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return r[i]}}}Object.defineProperty(t,o,a)}:function(t,r,i,o){if(o===undefined)o=i;t[o]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:true,value:r})}:function(t,r){t["default"]=r});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i))o(r,t,i);a(r,t);return r};var l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.list=r.filesFilter=void 0;const h=u(i(9129));const d=l(i(7561));const p=i(1017);const g=i(8283);const y=i(1766);const b=i(3456);const onReadEntryFunction=t=>{const r=t.onReadEntry;t.onReadEntry=r?t=>{r(t);t.resume()}:t=>t.resume()};const filesFilter=(t,r)=>{const i=new Map(r.map((t=>[(0,b.stripTrailingSlashes)(t),true])));const o=t.filter;const mapHas=(t,r="")=>{const o=r||(0,p.parse)(t).root||".";let a;if(t===o)a=false;else{const r=i.get(t);if(r!==undefined){a=r}else{a=mapHas((0,p.dirname)(t),o)}}i.set(t,a);return a};t.filter=o?(t,r)=>o(t,r)&&mapHas((0,b.stripTrailingSlashes)(t)):t=>mapHas((0,b.stripTrailingSlashes)(t))};r.filesFilter=filesFilter;const listFileSync=t=>{const r=new y.Parser(t);const i=t.file;let o;try{const a=d.default.statSync(i);const u=t.maxReadSize||16*1024*1024;if(a.size<u){r.end(d.default.readFileSync(i))}else{let t=0;const l=Buffer.allocUnsafe(u);o=d.default.openSync(i,"r");while(t<a.size){const i=d.default.readSync(o,l,0,u,t);t+=i;r.write(l.subarray(0,i))}r.end()}}finally{if(typeof o==="number"){try{d.default.closeSync(o)}catch(t){}}}};const listFile=(t,r)=>{const i=new y.Parser(t);const o=t.maxReadSize||16*1024*1024;const a=t.file;const u=new Promise(((t,r)=>{i.on("error",r);i.on("end",t);d.default.stat(a,((t,u)=>{if(t){r(t)}else{const t=new h.ReadStream(a,{readSize:o,size:u.size});t.on("error",r);t.pipe(i)}}))}));return u};r.list=(0,g.makeCommand)(listFileSync,listFile,(t=>new y.Parser(t)),(t=>new y.Parser(t)),((t,i)=>{if(i?.length)(0,r.filesFilter)(t,i);if(!t.noResume)onReadEntryFunction(t)}))},8283:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.makeCommand=void 0;const o=i(1082);const makeCommand=(t,r,i,a,u)=>Object.assign(((l=[],h,d)=>{if(Array.isArray(l)){h=l;l={}}if(typeof h==="function"){d=h;h=undefined}if(!h){h=[]}else{h=Array.from(h)}const p=(0,o.dealias)(l);u?.(p,h);if((0,o.isSyncFile)(p)){if(typeof d==="function"){throw new TypeError("callback not supported for sync tar functions")}return t(p,h)}else if((0,o.isAsyncFile)(p)){const t=r(p,h);const i=d?d:undefined;return i?t.then((()=>i()),i):t}else if((0,o.isSyncNoFile)(p)){if(typeof d==="function"){throw new TypeError("callback not supported for sync tar functions")}return i(p,h)}else if((0,o.isAsyncNoFile)(p)){if(typeof d==="function"){throw new TypeError("callback only supported with file option")}return a(p,h)}else{throw new Error("impossible options??")}}),{syncFile:t,asyncFile:r,syncNoFile:i,asyncNoFile:a,validate:u});r.makeCommand=makeCommand},8962:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.mkdirSync=r.mkdir=void 0;const a=i(6273);const u=o(i(7147));const l=i(4848);const h=o(i(9411));const d=i(5479);const p=i(2376);const g=i(7861);const cGet=(t,r)=>t.get((0,p.normalizeWindowsPath)(r));const cSet=(t,r,i)=>t.set((0,p.normalizeWindowsPath)(r),i);const checkCwd=(t,r)=>{u.default.stat(t,((i,o)=>{if(i||!o.isDirectory()){i=new d.CwdError(t,i?.code||"ENOTDIR")}r(i)}))};const mkdir=(t,r,i)=>{t=(0,p.normalizeWindowsPath)(t);const o=r.umask??18;const d=r.mode|448;const g=(d&o)!==0;const y=r.uid;const b=r.gid;const w=typeof y==="number"&&typeof b==="number"&&(y!==r.processUid||b!==r.processGid);const v=r.preserve;const E=r.unlink;const A=r.cache;const _=(0,p.normalizeWindowsPath)(r.cwd);const done=(r,o)=>{if(r){i(r)}else{cSet(A,t,true);if(o&&w){(0,a.chownr)(o,y,b,(t=>done(t)))}else if(g){u.default.chmod(t,d,i)}else{i()}}};if(A&&cGet(A,t)===true){return done()}if(t===_){return checkCwd(t,done)}if(v){return(0,l.mkdirp)(t,{mode:d}).then((t=>done(null,t??undefined)),done)}const C=(0,p.normalizeWindowsPath)(h.default.relative(_,t));const S=C.split("/");mkdir_(_,S,d,A,E,_,undefined,done)};r.mkdir=mkdir;const mkdir_=(t,r,i,o,a,l,d,g)=>{if(!r.length){return g(null,d)}const y=r.shift();const b=(0,p.normalizeWindowsPath)(h.default.resolve(t+"/"+y));if(cGet(o,b)){return mkdir_(b,r,i,o,a,l,d,g)}u.default.mkdir(b,i,onmkdir(b,r,i,o,a,l,d,g))};const onmkdir=(t,r,i,o,a,l,h,d)=>y=>{if(y){u.default.lstat(t,((b,w)=>{if(b){b.path=b.path&&(0,p.normalizeWindowsPath)(b.path);d(b)}else if(w.isDirectory()){mkdir_(t,r,i,o,a,l,h,d)}else if(a){u.default.unlink(t,(p=>{if(p){return d(p)}u.default.mkdir(t,i,onmkdir(t,r,i,o,a,l,h,d))}))}else if(w.isSymbolicLink()){return d(new g.SymlinkError(t,t+"/"+r.join("/")))}else{d(y)}}))}else{h=h||t;mkdir_(t,r,i,o,a,l,h,d)}};const checkCwdSync=t=>{let r=false;let i=undefined;try{r=u.default.statSync(t).isDirectory()}catch(t){i=t?.code}finally{if(!r){throw new d.CwdError(t,i??"ENOTDIR")}}};const mkdirSync=(t,r)=>{t=(0,p.normalizeWindowsPath)(t);const i=r.umask??18;const o=r.mode|448;const d=(o&i)!==0;const y=r.uid;const b=r.gid;const w=typeof y==="number"&&typeof b==="number"&&(y!==r.processUid||b!==r.processGid);const v=r.preserve;const E=r.unlink;const A=r.cache;const _=(0,p.normalizeWindowsPath)(r.cwd);const done=r=>{cSet(A,t,true);if(r&&w){(0,a.chownrSync)(r,y,b)}if(d){u.default.chmodSync(t,o)}};if(A&&cGet(A,t)===true){return done()}if(t===_){checkCwdSync(_);return done()}if(v){return done((0,l.mkdirpSync)(t,o)??undefined)}const C=(0,p.normalizeWindowsPath)(h.default.relative(_,t));const S=C.split("/");let D=undefined;for(let t=S.shift(),r=_;t&&(r+="/"+t);t=S.shift()){r=(0,p.normalizeWindowsPath)(h.default.resolve(r));if(cGet(A,r)){continue}try{u.default.mkdirSync(r,o);D=D||r;cSet(A,r,true)}catch(t){const i=u.default.lstatSync(r);if(i.isDirectory()){cSet(A,r,true);continue}else if(E){u.default.unlinkSync(r);u.default.mkdirSync(r,o);D=D||r;cSet(A,r,true);continue}else if(i.isSymbolicLink()){return new g.SymlinkError(r,r+"/"+S.join("/"))}}}return done(D)};r.mkdirSync=mkdirSync},7998:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.modeFix=void 0;const modeFix=(t,r,i)=>{t&=4095;if(i){t=(t|384)&~18}if(r){if(t&256){t|=64}if(t&32){t|=8}if(t&4){t|=1}}return t};r.modeFix=modeFix},7704:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.normalizeUnicode=void 0;const i=Object.create(null);const{hasOwnProperty:o}=Object.prototype;const normalizeUnicode=t=>{if(!o.call(i,t)){i[t]=t.normalize("NFD")}return i[t]};r.normalizeUnicode=normalizeUnicode},2376:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.normalizeWindowsPath=void 0;const i=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;r.normalizeWindowsPath=i!=="win32"?t=>t:t=>t&&t.replace(/\\/g,"/")},1082:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.dealias=r.isNoFile=r.isFile=r.isAsync=r.isSync=r.isAsyncNoFile=r.isSyncNoFile=r.isAsyncFile=r.isSyncFile=void 0;const i=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"],["onentry","onReadEntry"]]);const isSyncFile=t=>!!t.sync&&!!t.file;r.isSyncFile=isSyncFile;const isAsyncFile=t=>!t.sync&&!!t.file;r.isAsyncFile=isAsyncFile;const isSyncNoFile=t=>!!t.sync&&!t.file;r.isSyncNoFile=isSyncNoFile;const isAsyncNoFile=t=>!t.sync&&!t.file;r.isAsyncNoFile=isAsyncNoFile;const isSync=t=>!!t.sync;r.isSync=isSync;const isAsync=t=>!t.sync;r.isAsync=isAsync;const isFile=t=>!!t.file;r.isFile=isFile;const isNoFile=t=>!t.file;r.isNoFile=isNoFile;const dealiasKey=t=>{const r=i.get(t);if(r)return r;return t};const dealias=(t={})=>{if(!t)return{};const r={};for(const[i,o]of Object.entries(t)){const t=dealiasKey(i);r[t]=o}if(r.chmod===undefined&&r.noChmod===false){r.chmod=true}delete r.noChmod;return r};r.dealias=dealias},543:function(t,r,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,r,i,o){if(o===undefined)o=i;var a=Object.getOwnPropertyDescriptor(r,i);if(!a||("get"in a?!r.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return r[i]}}}Object.defineProperty(t,o,a)}:function(t,r,i,o){if(o===undefined)o=i;t[o]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:true,value:r})}:function(t,r){t["default"]=r});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i))o(r,t,i);a(r,t);return r};var l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.PackSync=r.Pack=r.PackJob=void 0;const h=l(i(7147));const d=i(1595);class PackJob{path;absolute;entry;stat;readdir;pending=false;ignore=false;piped=false;constructor(t,r){this.path=t||"./";this.absolute=r}}r.PackJob=PackJob;const p=i(6014);const g=u(i(5489));const y=i(4982);const b=i(1476);const w=i(553);const v=Buffer.alloc(1024);const E=Symbol("onStat");const A=Symbol("ended");const _=Symbol("queue");const C=Symbol("current");const S=Symbol("process");const D=Symbol("processing");const x=Symbol("processJob");const O=Symbol("jobs");const R=Symbol("jobDone");const k=Symbol("addFSEntry");const P=Symbol("addTarEntry");const T=Symbol("stat");const M=Symbol("readdir");const L=Symbol("onreaddir");const I=Symbol("pipe");const $=Symbol("entry");const N=Symbol("entryOpt");const B=Symbol("writeEntryClass");const j=Symbol("write");const H=Symbol("ondrain");const G=l(i(1017));const U=i(2376);class Pack extends p.Minipass{opt;cwd;maxReadSize;preservePaths;strict;noPax;prefix;linkCache;statCache;file;portable;zip;readdirCache;noDirRecurse;follow;noMtime;mtime;filter;jobs;[B];onWriteEntry;[_];[O]=0;[D]=false;[A]=false;constructor(t={}){super();this.opt=t;this.file=t.file||"";this.cwd=t.cwd||process.cwd();this.maxReadSize=t.maxReadSize;this.preservePaths=!!t.preservePaths;this.strict=!!t.strict;this.noPax=!!t.noPax;this.prefix=(0,U.normalizeWindowsPath)(t.prefix||"");this.linkCache=t.linkCache||new Map;this.statCache=t.statCache||new Map;this.readdirCache=t.readdirCache||new Map;this.onWriteEntry=t.onWriteEntry;this[B]=d.WriteEntry;if(typeof t.onwarn==="function"){this.on("warn",t.onwarn)}this.portable=!!t.portable;if(t.gzip||t.brotli){if(t.gzip&&t.brotli){throw new TypeError("gzip and brotli are mutually exclusive")}if(t.gzip){if(typeof t.gzip!=="object"){t.gzip={}}if(this.portable){t.gzip.portable=true}this.zip=new g.Gzip(t.gzip)}if(t.brotli){if(typeof t.brotli!=="object"){t.brotli={}}this.zip=new g.BrotliCompress(t.brotli)}if(!this.zip)throw new Error("impossible");const r=this.zip;r.on("data",(t=>super.write(t)));r.on("end",(()=>super.end()));r.on("drain",(()=>this[H]()));this.on("resume",(()=>r.resume()))}else{this.on("drain",this[H])}this.noDirRecurse=!!t.noDirRecurse;this.follow=!!t.follow;this.noMtime=!!t.noMtime;if(t.mtime)this.mtime=t.mtime;this.filter=typeof t.filter==="function"?t.filter:()=>true;this[_]=new y.Yallist;this[O]=0;this.jobs=Number(t.jobs)||4;this[D]=false;this[A]=false}[j](t){return super.write(t)}add(t){this.write(t);return this}end(t,r,i){if(typeof t==="function"){i=t;t=undefined}if(typeof r==="function"){i=r;r=undefined}if(t){this.add(t)}this[A]=true;this[S]();if(i)i();return this}write(t){if(this[A]){throw new Error("write after end")}if(t instanceof b.ReadEntry){this[P](t)}else{this[k](t)}return this.flowing}[P](t){const r=(0,U.normalizeWindowsPath)(G.default.resolve(this.cwd,t.path));if(!this.filter(t.path,t)){t.resume()}else{const i=new PackJob(t.path,r);i.entry=new d.WriteEntryTar(t,this[N](i));i.entry.on("end",(()=>this[R](i)));this[O]+=1;this[_].push(i)}this[S]()}[k](t){const r=(0,U.normalizeWindowsPath)(G.default.resolve(this.cwd,t));this[_].push(new PackJob(t,r));this[S]()}[T](t){t.pending=true;this[O]+=1;const r=this.follow?"stat":"lstat";h.default[r](t.absolute,((r,i)=>{t.pending=false;this[O]-=1;if(r){this.emit("error",r)}else{this[E](t,i)}}))}[E](t,r){this.statCache.set(t.absolute,r);t.stat=r;if(!this.filter(t.path,r)){t.ignore=true}this[S]()}[M](t){t.pending=true;this[O]+=1;h.default.readdir(t.absolute,((r,i)=>{t.pending=false;this[O]-=1;if(r){return this.emit("error",r)}this[L](t,i)}))}[L](t,r){this.readdirCache.set(t.absolute,r);t.readdir=r;this[S]()}[S](){if(this[D]){return}this[D]=true;for(let t=this[_].head;!!t&&this[O]<this.jobs;t=t.next){this[x](t.value);if(t.value.ignore){const r=t.next;this[_].removeNode(t);t.next=r}}this[D]=false;if(this[A]&&!this[_].length&&this[O]===0){if(this.zip){this.zip.end(v)}else{super.write(v);super.end()}}}get[C](){return this[_]&&this[_].head&&this[_].head.value}[R](t){this[_].shift();this[O]-=1;this[S]()}[x](t){if(t.pending){return}if(t.entry){if(t===this[C]&&!t.piped){this[I](t)}return}if(!t.stat){const r=this.statCache.get(t.absolute);if(r){this[E](t,r)}else{this[T](t)}}if(!t.stat){return}if(t.ignore){return}if(!this.noDirRecurse&&t.stat.isDirectory()&&!t.readdir){const r=this.readdirCache.get(t.absolute);if(r){this[L](t,r)}else{this[M](t)}if(!t.readdir){return}}t.entry=this[$](t);if(!t.entry){t.ignore=true;return}if(t===this[C]&&!t.piped){this[I](t)}}[N](t){return{onwarn:(t,r,i)=>this.warn(t,r,i),noPax:this.noPax,cwd:this.cwd,absolute:t.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,prefix:this.prefix,onWriteEntry:this.onWriteEntry}}[$](t){this[O]+=1;try{const r=new this[B](t.path,this[N](t));return r.on("end",(()=>this[R](t))).on("error",(t=>this.emit("error",t)))}catch(t){this.emit("error",t)}}[H](){if(this[C]&&this[C].entry){this[C].entry.resume()}}[I](t){t.piped=true;if(t.readdir){t.readdir.forEach((r=>{const i=t.path;const o=i==="./"?"":i.replace(/\/*$/,"/");this[k](o+r)}))}const r=t.entry;const i=this.zip;if(!r)throw new Error("cannot pipe without source");if(i){r.on("data",(t=>{if(!i.write(t)){r.pause()}}))}else{r.on("data",(t=>{if(!super.write(t)){r.pause()}}))}}pause(){if(this.zip){this.zip.pause()}return super.pause()}warn(t,r,i={}){(0,w.warnMethod)(this,t,r,i)}}r.Pack=Pack;class PackSync extends Pack{sync=true;constructor(t){super(t);this[B]=d.WriteEntrySync}pause(){}resume(){}[T](t){const r=this.follow?"statSync":"lstatSync";this[E](t,h.default[r](t.absolute))}[M](t){this[L](t,h.default.readdirSync(t.absolute))}[I](t){const r=t.entry;const i=this.zip;if(t.readdir){t.readdir.forEach((r=>{const i=t.path;const o=i==="./"?"":i.replace(/\/*$/,"/");this[k](o+r)}))}if(!r)throw new Error("Cannot pipe without source");if(i){r.on("data",(t=>{i.write(t)}))}else{r.on("data",(t=>{super[j](t)}))}}}r.PackSync=PackSync},1766:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.Parser=void 0;const o=i(2361);const a=i(5489);const u=i(4982);const l=i(2058);const h=i(3798);const d=i(1476);const p=i(553);const g=1024*1024;const y=Buffer.from([31,139]);const b=Symbol("state");const w=Symbol("writeEntry");const v=Symbol("readEntry");const E=Symbol("nextEntry");const A=Symbol("processEntry");const _=Symbol("extendedHeader");const C=Symbol("globalExtendedHeader");const S=Symbol("meta");const D=Symbol("emitMeta");const x=Symbol("buffer");const O=Symbol("queue");const R=Symbol("ended");const k=Symbol("emittedEnd");const P=Symbol("emit");const T=Symbol("unzip");const M=Symbol("consumeChunk");const L=Symbol("consumeChunkSub");const I=Symbol("consumeBody");const $=Symbol("consumeMeta");const N=Symbol("consumeHeader");const B=Symbol("consuming");const j=Symbol("bufferConcat");const H=Symbol("maybeEnd");const G=Symbol("writing");const U=Symbol("aborted");const W=Symbol("onDone");const z=Symbol("sawValidEntry");const Y=Symbol("sawNullBlock");const K=Symbol("sawEOF");const V=Symbol("closeStream");const noop=()=>true;class Parser extends o.EventEmitter{file;strict;maxMetaEntrySize;filter;brotli;writable=true;readable=false;[O]=new u.Yallist;[x];[v];[w];[b]="begin";[S]="";[_];[C];[R]=false;[T];[U]=false;[z];[Y]=false;[K]=false;[G]=false;[B]=false;[k]=false;constructor(t={}){super();this.file=t.file||"";this.on(W,(()=>{if(this[b]==="begin"||this[z]===false){this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}}));if(t.ondone){this.on(W,t.ondone)}else{this.on(W,(()=>{this.emit("prefinish");this.emit("finish");this.emit("end")}))}this.strict=!!t.strict;this.maxMetaEntrySize=t.maxMetaEntrySize||g;this.filter=typeof t.filter==="function"?t.filter:noop;const r=t.file&&(t.file.endsWith(".tar.br")||t.file.endsWith(".tbr"));this.brotli=!t.gzip&&t.brotli!==undefined?t.brotli:r?undefined:false;this.on("end",(()=>this[V]()));if(typeof t.onwarn==="function"){this.on("warn",t.onwarn)}if(typeof t.onReadEntry==="function"){this.on("entry",t.onReadEntry)}}warn(t,r,i={}){(0,p.warnMethod)(this,t,r,i)}[N](t,r){if(this[z]===undefined){this[z]=false}let i;try{i=new l.Header(t,r,this[_],this[C])}catch(t){return this.warn("TAR_ENTRY_INVALID",t)}if(i.nullBlock){if(this[Y]){this[K]=true;if(this[b]==="begin"){this[b]="header"}this[P]("eof")}else{this[Y]=true;this[P]("nullBlock")}}else{this[Y]=false;if(!i.cksumValid){this.warn("TAR_ENTRY_INVALID","checksum failure",{header:i})}else if(!i.path){this.warn("TAR_ENTRY_INVALID","path is required",{header:i})}else{const t=i.type;if(/^(Symbolic)?Link$/.test(t)&&!i.linkpath){this.warn("TAR_ENTRY_INVALID","linkpath required",{header:i})}else if(!/^(Symbolic)?Link$/.test(t)&&!/^(Global)?ExtendedHeader$/.test(t)&&i.linkpath){this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:i})}else{const t=this[w]=new d.ReadEntry(i,this[_],this[C]);if(!this[z]){if(t.remain){const onend=()=>{if(!t.invalid){this[z]=true}};t.on("end",onend)}else{this[z]=true}}if(t.meta){if(t.size>this.maxMetaEntrySize){t.ignore=true;this[P]("ignoredEntry",t);this[b]="ignore";t.resume()}else if(t.size>0){this[S]="";t.on("data",(t=>this[S]+=t));this[b]="meta"}}else{this[_]=undefined;t.ignore=t.ignore||!this.filter(t.path,t);if(t.ignore){this[P]("ignoredEntry",t);this[b]=t.remain?"ignore":"header";t.resume()}else{if(t.remain){this[b]="body"}else{this[b]="header";t.end()}if(!this[v]){this[O].push(t);this[E]()}else{this[O].push(t)}}}}}}}[V](){queueMicrotask((()=>this.emit("close")))}[A](t){let r=true;if(!t){this[v]=undefined;r=false}else if(Array.isArray(t)){const[r,...i]=t;this.emit(r,...i)}else{this[v]=t;this.emit("entry",t);if(!t.emittedEnd){t.on("end",(()=>this[E]()));r=false}}return r}[E](){do{}while(this[A](this[O].shift()));if(!this[O].length){const t=this[v];const r=!t||t.flowing||t.size===t.remain;if(r){if(!this[G]){this.emit("drain")}}else{t.once("drain",(()=>this.emit("drain")))}}}[I](t,r){const i=this[w];if(!i){throw new Error("attempt to consume body without entry??")}const o=i.blockRemain??0;const a=o>=t.length&&r===0?t:t.subarray(r,r+o);i.write(a);if(!i.blockRemain){this[b]="header";this[w]=undefined;i.end()}return a.length}[$](t,r){const i=this[w];const o=this[I](t,r);if(!this[w]&&i){this[D](i)}return o}[P](t,r,i){if(!this[O].length&&!this[v]){this.emit(t,r,i)}else{this[O].push([t,r,i])}}[D](t){this[P]("meta",this[S]);switch(t.type){case"ExtendedHeader":case"OldExtendedHeader":this[_]=h.Pax.parse(this[S],this[_],false);break;case"GlobalExtendedHeader":this[C]=h.Pax.parse(this[S],this[C],true);break;case"NextFileHasLongPath":case"OldGnuLongPath":{const t=this[_]??Object.create(null);this[_]=t;t.path=this[S].replace(/\0.*/,"");break}case"NextFileHasLongLinkpath":{const t=this[_]||Object.create(null);this[_]=t;t.linkpath=this[S].replace(/\0.*/,"");break}default:throw new Error("unknown meta: "+t.type)}}abort(t){this[U]=true;this.emit("abort",t);this.warn("TAR_ABORT",t,{recoverable:false})}write(t,r,i){if(typeof r==="function"){i=r;r=undefined}if(typeof t==="string"){t=Buffer.from(t,typeof r==="string"?r:"utf8")}if(this[U]){i?.();return false}const o=this[T]===undefined||this.brotli===undefined&&this[T]===false;if(o&&t){if(this[x]){t=Buffer.concat([this[x],t]);this[x]=undefined}if(t.length<y.length){this[x]=t;i?.();return true}for(let r=0;this[T]===undefined&&r<y.length;r++){if(t[r]!==y[r]){this[T]=false}}const r=this.brotli===undefined;if(this[T]===false&&r){if(t.length<512){if(this[R]){this.brotli=true}else{this[x]=t;i?.();return true}}else{try{new l.Header(t.subarray(0,512));this.brotli=false}catch(t){this.brotli=true}}}if(this[T]===undefined||this[T]===false&&this.brotli){const r=this[R];this[R]=false;this[T]=this[T]===undefined?new a.Unzip({}):new a.BrotliDecompress({});this[T].on("data",(t=>this[M](t)));this[T].on("error",(t=>this.abort(t)));this[T].on("end",(()=>{this[R]=true;this[M]()}));this[G]=true;const o=!!this[T][r?"end":"write"](t);this[G]=false;i?.();return o}}this[G]=true;if(this[T]){this[T].write(t)}else{this[M](t)}this[G]=false;const u=this[O].length?false:this[v]?this[v].flowing:true;if(!u&&!this[O].length){this[v]?.once("drain",(()=>this.emit("drain")))}i?.();return u}[j](t){if(t&&!this[U]){this[x]=this[x]?Buffer.concat([this[x],t]):t}}[H](){if(this[R]&&!this[k]&&!this[U]&&!this[B]){this[k]=true;const t=this[w];if(t&&t.blockRemain){const r=this[x]?this[x].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${t.blockRemain} more bytes, only ${r} available)`,{entry:t});if(this[x]){t.write(this[x])}t.end()}this[P](W)}}[M](t){if(this[B]&&t){this[j](t)}else if(!t&&!this[x]){this[H]()}else if(t){this[B]=true;if(this[x]){this[j](t);const r=this[x];this[x]=undefined;this[L](r)}else{this[L](t)}while(this[x]&&this[x]?.length>=512&&!this[U]&&!this[K]){const t=this[x];this[x]=undefined;this[L](t)}this[B]=false}if(!this[x]||this[R]){this[H]()}}[L](t){let r=0;const i=t.length;while(r+512<=i&&!this[U]&&!this[K]){switch(this[b]){case"begin":case"header":this[N](t,r);r+=512;break;case"ignore":case"body":r+=this[I](t,r);break;case"meta":r+=this[$](t,r);break;default:throw new Error("invalid state: "+this[b])}}if(r<i){if(this[x]){this[x]=Buffer.concat([t.subarray(r),this[x]])}else{this[x]=t.subarray(r)}}}end(t,r,i){if(typeof t==="function"){i=t;r=undefined;t=undefined}if(typeof r==="function"){i=r;r=undefined}if(typeof t==="string"){t=Buffer.from(t,r)}if(i)this.once("finish",i);if(!this[U]){if(this[T]){if(t)this[T].write(t);this[T].end()}else{this[R]=true;if(this.brotli===undefined)t=t||Buffer.alloc(0);if(t)this.write(t);this[H]()}}return this}}r.Parser=Parser},8294:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.PathReservations=void 0;const o=i(9411);const a=i(7704);const u=i(3456);const l=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;const h=l==="win32";const getDirs=t=>{const r=t.split("/").slice(0,-1).reduce(((t,r)=>{const i=t[t.length-1];if(i!==undefined){r=(0,o.join)(i,r)}t.push(r||"/");return t}),[]);return r};class PathReservations{#Ct=new Map;#St=new Map;#Dt=new Set;reserve(t,r){t=h?["win32 parallelization disabled"]:t.map((t=>(0,u.stripTrailingSlashes)((0,o.join)((0,a.normalizeUnicode)(t))).toLowerCase()));const i=new Set(t.map((t=>getDirs(t))).reduce(((t,r)=>t.concat(r))));this.#St.set(r,{dirs:i,paths:t});for(const i of t){const t=this.#Ct.get(i);if(!t){this.#Ct.set(i,[r])}else{t.push(r)}}for(const t of i){const i=this.#Ct.get(t);if(!i){this.#Ct.set(t,[new Set([r])])}else{const t=i[i.length-1];if(t instanceof Set){t.add(r)}else{i.push(new Set([r]))}}}return this.#xt(r)}#Ot(t){const r=this.#St.get(t);if(!r){throw new Error("function does not have any path reservations")}return{paths:r.paths.map((t=>this.#Ct.get(t))),dirs:[...r.dirs].map((t=>this.#Ct.get(t)))}}check(t){const{paths:r,dirs:i}=this.#Ot(t);return r.every((r=>r&&r[0]===t))&&i.every((r=>r&&r[0]instanceof Set&&r[0].has(t)))}#xt(t){if(this.#Dt.has(t)||!this.check(t)){return false}this.#Dt.add(t);t((()=>this.#Rt(t)));return true}#Rt(t){if(!this.#Dt.has(t)){return false}const r=this.#St.get(t);if(!r){throw new Error("invalid reservation")}const{paths:i,dirs:o}=r;const a=new Set;for(const r of i){const i=this.#Ct.get(r);if(!i||i?.[0]!==t){continue}const o=i[1];if(!o){this.#Ct.delete(r);continue}i.shift();if(typeof o==="function"){a.add(o)}else{for(const t of o){a.add(t)}}}for(const r of o){const i=this.#Ct.get(r);const o=i?.[0];if(!i||!(o instanceof Set))continue;if(o.size===1&&i.length===1){this.#Ct.delete(r);continue}else if(o.size===1){i.shift();const t=i[0];if(typeof t==="function"){a.add(t)}}else{o.delete(t)}}this.#Dt.delete(t);a.forEach((t=>this.#xt(t)));return true}}r.PathReservations=PathReservations},3798:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.Pax=void 0;const o=i(9411);const a=i(2058);class Pax{atime;mtime;ctime;charset;comment;gid;uid;gname;uname;linkpath;dev;ino;nlink;path;size;mode;global;constructor(t,r=false){this.atime=t.atime;this.charset=t.charset;this.comment=t.comment;this.ctime=t.ctime;this.dev=t.dev;this.gid=t.gid;this.global=r;this.gname=t.gname;this.ino=t.ino;this.linkpath=t.linkpath;this.mtime=t.mtime;this.nlink=t.nlink;this.path=t.path;this.size=t.size;this.uid=t.uid;this.uname=t.uname}encode(){const t=this.encodeBody();if(t===""){return Buffer.allocUnsafe(0)}const r=Buffer.byteLength(t);const i=512*Math.ceil(1+r/512);const u=Buffer.allocUnsafe(i);for(let t=0;t<512;t++){u[t]=0}new a.Header({path:("PaxHeader/"+(0,o.basename)(this.path??"")).slice(0,99),mode:this.mode||420,uid:this.uid,gid:this.gid,size:r,mtime:this.mtime,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime,ctime:this.ctime}).encode(u);u.write(t,512,r,"utf8");for(let t=r+512;t<u.length;t++){u[t]=0}return u}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(t){if(this[t]===undefined){return""}const r=this[t];const i=r instanceof Date?r.getTime()/1e3:r;const o=" "+(t==="dev"||t==="ino"||t==="nlink"?"SCHILY.":"")+t+"="+i+"\n";const a=Buffer.byteLength(o);let u=Math.floor(Math.log(a)/Math.log(10))+1;if(a+u>=Math.pow(10,u)){u+=1}const l=u+a;return l+o}static parse(t,r,i=false){return new Pax(merge(parseKV(t),r),i)}}r.Pax=Pax;const merge=(t,r)=>r?Object.assign({},r,t):t;const parseKV=t=>t.replace(/\n$/,"").split("\n").reduce(parseKVLine,Object.create(null));const parseKVLine=(t,r)=>{const i=parseInt(r,10);if(i!==Buffer.byteLength(r)+1){return t}r=r.slice((i+" ").length);const o=r.split("=");const a=o.shift();if(!a){return t}const u=a.replace(/^SCHILY\.(dev|ino|nlink)/,"$1");const l=o.join("=");t[u]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(u)?new Date(Number(l)*1e3):/^[0-9]+$/.test(l)?+l:l;return t}},1476:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.ReadEntry=void 0;const o=i(6014);const a=i(2376);class ReadEntry extends o.Minipass{extended;globalExtended;header;startBlockSize;blockRemain;remain;type;meta=false;ignore=false;path;mode;uid;gid;uname;gname;size=0;mtime;atime;ctime;linkpath;dev;ino;nlink;invalid=false;absolute;unsupported=false;constructor(t,r,i){super({});this.pause();this.extended=r;this.globalExtended=i;this.header=t;this.remain=t.size??0;this.startBlockSize=512*Math.ceil(this.remain/512);this.blockRemain=this.startBlockSize;this.type=t.type;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}if(!t.path){throw new Error("no path provided for tar.ReadEntry")}this.path=(0,a.normalizeWindowsPath)(t.path);this.mode=t.mode;if(this.mode){this.mode=this.mode&4095}this.uid=t.uid;this.gid=t.gid;this.uname=t.uname;this.gname=t.gname;this.size=this.remain;this.mtime=t.mtime;this.atime=t.atime;this.ctime=t.ctime;this.linkpath=t.linkpath?(0,a.normalizeWindowsPath)(t.linkpath):undefined;this.uname=t.uname;this.gname=t.gname;if(r){this.#_t(r)}if(i){this.#_t(i,true)}}write(t){const r=t.length;if(r>this.blockRemain){throw new Error("writing more to entry than is appropriate")}const i=this.remain;const o=this.blockRemain;this.remain=Math.max(0,i-r);this.blockRemain=Math.max(0,o-r);if(this.ignore){return true}if(i>=r){return super.write(t)}return super.write(t.subarray(0,i))}#_t(t,r=false){if(t.path)t.path=(0,a.normalizeWindowsPath)(t.path);if(t.linkpath)t.linkpath=(0,a.normalizeWindowsPath)(t.linkpath);Object.assign(this,Object.fromEntries(Object.entries(t).filter((([t,i])=>!(i===null||i===undefined||t==="path"&&r)))))}}r.ReadEntry=ReadEntry},4095:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.replace=void 0;const a=i(9129);const u=o(i(7561));const l=o(i(9411));const h=i(2058);const d=i(1371);const p=i(8283);const g=i(1082);const y=i(543);const replaceSync=(t,r)=>{const i=new y.PackSync(t);let o=true;let a;let l;try{try{a=u.default.openSync(t.file,"r+")}catch(r){if(r?.code==="ENOENT"){a=u.default.openSync(t.file,"w+")}else{throw r}}const d=u.default.fstatSync(a);const p=Buffer.alloc(512);e:for(l=0;l<d.size;l+=512){for(let t=0,r=0;t<512;t+=r){r=u.default.readSync(a,p,t,p.length-t,l+t);if(l===0&&p[0]===31&&p[1]===139){throw new Error("cannot append to compressed archives")}if(!r){break e}}const r=new h.Header(p);if(!r.cksumValid){break}const i=512*Math.ceil((r.size||0)/512);if(l+i+512>d.size){break}l+=i;if(t.mtimeCache&&r.mtime){t.mtimeCache.set(String(r.path),r.mtime)}}o=false;streamSync(t,i,l,a,r)}finally{if(o){try{u.default.closeSync(a)}catch(t){}}}};const streamSync=(t,r,i,o,u)=>{const l=new a.WriteStreamSync(t.file,{fd:o,start:i});r.pipe(l);addFilesSync(r,u)};const replaceAsync=(t,r)=>{r=Array.from(r);const i=new y.Pack(t);const getPos=(r,i,o)=>{const cb=(t,i)=>{if(t){u.default.close(r,(r=>o(t)))}else{o(null,i)}};let a=0;if(i===0){return cb(null,0)}let l=0;const d=Buffer.alloc(512);const onread=(o,p)=>{if(o||typeof p==="undefined"){return cb(o)}l+=p;if(l<512&&p){return u.default.read(r,d,l,d.length-l,a+l,onread)}if(a===0&&d[0]===31&&d[1]===139){return cb(new Error("cannot append to compressed archives"))}if(l<512){return cb(null,a)}const g=new h.Header(d);if(!g.cksumValid){return cb(null,a)}const y=512*Math.ceil((g.size??0)/512);if(a+y+512>i){return cb(null,a)}a+=y+512;if(a>=i){return cb(null,a)}if(t.mtimeCache&&g.mtime){t.mtimeCache.set(String(g.path),g.mtime)}l=0;u.default.read(r,d,0,512,a,onread)};u.default.read(r,d,0,512,a,onread)};const o=new Promise(((o,l)=>{i.on("error",l);let h="r+";const onopen=(d,p)=>{if(d&&d.code==="ENOENT"&&h==="r+"){h="w+";return u.default.open(t.file,h,onopen)}if(d||!p){return l(d)}u.default.fstat(p,((h,d)=>{if(h){return u.default.close(p,(()=>l(h)))}getPos(p,d.size,((u,h)=>{if(u){return l(u)}const d=new a.WriteStream(t.file,{fd:p,start:h});i.pipe(d);d.on("error",l);d.on("close",o);addFilesAsync(i,r)}))}))};u.default.open(t.file,h,onopen)}));return o};const addFilesSync=(t,r)=>{r.forEach((r=>{if(r.charAt(0)==="@"){(0,d.list)({file:l.default.resolve(t.cwd,r.slice(1)),sync:true,noResume:true,onReadEntry:r=>t.add(r)})}else{t.add(r)}}));t.end()};const addFilesAsync=async(t,r)=>{for(let i=0;i<r.length;i++){const o=String(r[i]);if(o.charAt(0)==="@"){await(0,d.list)({file:l.default.resolve(String(t.cwd),o.slice(1)),noResume:true,onReadEntry:r=>t.add(r)})}else{t.add(o)}}t.end()};r.replace=(0,p.makeCommand)(replaceSync,replaceAsync,(()=>{throw new TypeError("file is required")}),(()=>{throw new TypeError("file is required")}),((t,r)=>{if(!(0,g.isFile)(t)){throw new TypeError("file is required")}if(t.gzip||t.brotli||t.file.endsWith(".br")||t.file.endsWith(".tbr")){throw new TypeError("cannot append to compressed archives")}if(!r?.length){throw new TypeError("no paths specified to add/replace")}}))},942:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.stripAbsolutePath=void 0;const o=i(9411);const{isAbsolute:a,parse:u}=o.win32;const stripAbsolutePath=t=>{let r="";let i=u(t);while(a(t)||i.root){const o=t.charAt(0)==="/"&&t.slice(0,4)!=="//?/"?"/":i.root;t=t.slice(o.length);r+=o;i=u(t)}return[r,t]};r.stripAbsolutePath=stripAbsolutePath},3456:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.stripTrailingSlashes=void 0;const stripTrailingSlashes=t=>{let r=t.length-1;let i=-1;while(r>-1&&t.charAt(r)==="/"){i=r;r--}return i===-1?t:t.slice(0,i)};r.stripTrailingSlashes=stripTrailingSlashes},7861:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.SymlinkError=void 0;class SymlinkError extends Error{path;symlink;syscall="symlink";code="TAR_SYMLINK_ERROR";constructor(t,r){super("TAR_SYMLINK_ERROR: Cannot extract through symbolic link");this.symlink=t;this.path=r}get name(){return"SymlinkError"}}r.SymlinkError=SymlinkError},5596:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.code=r.name=r.isName=r.isCode=void 0;const isCode=t=>r.name.has(t);r.isCode=isCode;const isName=t=>r.code.has(t);r.isName=isName;r.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"]]);r.code=new Map(Array.from(r.name).map((t=>[t[1],t[0]])))},9192:function(t,r,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,r,i,o){if(o===undefined)o=i;var a=Object.getOwnPropertyDescriptor(r,i);if(!a||("get"in a?!r.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return r[i]}}}Object.defineProperty(t,o,a)}:function(t,r,i,o){if(o===undefined)o=i;t[o]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:true,value:r})}:function(t,r){t["default"]=r});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i))o(r,t,i);a(r,t);return r};var l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.UnpackSync=r.Unpack=void 0;const h=u(i(9129));const d=l(i(8061));const p=i(6005);const g=l(i(7561));const y=l(i(9411));const b=i(7701);const w=i(8962);const v=i(7704);const E=i(2376);const A=i(1766);const _=i(942);const C=i(3456);const S=u(i(7665));const D=i(8294);const x=Symbol("onEntry");const O=Symbol("checkFs");const R=Symbol("checkFs2");const k=Symbol("pruneCache");const P=Symbol("isReusable");const T=Symbol("makeFs");const M=Symbol("file");const L=Symbol("directory");const I=Symbol("link");const $=Symbol("symlink");const N=Symbol("hardlink");const B=Symbol("unsupported");const j=Symbol("checkPath");const H=Symbol("mkdir");const G=Symbol("onError");const U=Symbol("pending");const W=Symbol("pend");const z=Symbol("unpend");const Y=Symbol("ended");const K=Symbol("maybeClose");const V=Symbol("skip");const q=Symbol("doChown");const X=Symbol("uid");const Z=Symbol("gid");const J=Symbol("checkedCwd");const Q=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;const ee=Q==="win32";const te=1024;const unlinkFile=(t,r)=>{if(!ee){return g.default.unlink(t,r)}const i=t+".DELETE."+(0,p.randomBytes)(16).toString("hex");g.default.rename(t,i,(t=>{if(t){return r(t)}g.default.unlink(i,r)}))};const unlinkFileSync=t=>{if(!ee){return g.default.unlinkSync(t)}const r=t+".DELETE."+(0,p.randomBytes)(16).toString("hex");g.default.renameSync(t,r);g.default.unlinkSync(r)};const uint32=(t,r,i)=>t!==undefined&&t===t>>>0?t:r!==undefined&&r===r>>>0?r:i;const cacheKeyNormalize=t=>(0,C.stripTrailingSlashes)((0,E.normalizeWindowsPath)((0,v.normalizeUnicode)(t))).toLowerCase();const pruneCache=(t,r)=>{r=cacheKeyNormalize(r);for(const i of t.keys()){const o=cacheKeyNormalize(i);if(o===r||o.indexOf(r+"/")===0){t.delete(i)}}};const dropCache=t=>{for(const r of t.keys()){t.delete(r)}};class Unpack extends A.Parser{[Y]=false;[J]=false;[U]=0;reservations=new D.PathReservations;transform;writable=true;readable=false;dirCache;uid;gid;setOwner;preserveOwner;processGid;processUid;maxDepth;forceChown;win32;newer;keep;noMtime;preservePaths;unlink;cwd;strip;processUmask;umask;dmode;fmode;chmod;constructor(t={}){t.ondone=()=>{this[Y]=true;this[K]()};super(t);this.transform=t.transform;this.dirCache=t.dirCache||new Map;this.chmod=!!t.chmod;if(typeof t.uid==="number"||typeof t.gid==="number"){if(typeof t.uid!=="number"||typeof t.gid!=="number"){throw new TypeError("cannot set owner without number uid and gid")}if(t.preserveOwner){throw new TypeError("cannot preserve owner in archive and also set owner explicitly")}this.uid=t.uid;this.gid=t.gid;this.setOwner=true}else{this.uid=undefined;this.gid=undefined;this.setOwner=false}if(t.preserveOwner===undefined&&typeof t.uid!=="number"){this.preserveOwner=!!(process.getuid&&process.getuid()===0)}else{this.preserveOwner=!!t.preserveOwner}this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():undefined;this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():undefined;this.maxDepth=typeof t.maxDepth==="number"?t.maxDepth:te;this.forceChown=t.forceChown===true;this.win32=!!t.win32||ee;this.newer=!!t.newer;this.keep=!!t.keep;this.noMtime=!!t.noMtime;this.preservePaths=!!t.preservePaths;this.unlink=!!t.unlink;this.cwd=(0,E.normalizeWindowsPath)(y.default.resolve(t.cwd||process.cwd()));this.strip=Number(t.strip)||0;this.processUmask=!this.chmod?0:typeof t.processUmask==="number"?t.processUmask:process.umask();this.umask=typeof t.umask==="number"?t.umask:this.processUmask;this.dmode=t.dmode||511&~this.umask;this.fmode=t.fmode||438&~this.umask;this.on("entry",(t=>this[x](t)))}warn(t,r,i={}){if(t==="TAR_BAD_ARCHIVE"||t==="TAR_ABORT"){i.recoverable=false}return super.warn(t,r,i)}[K](){if(this[Y]&&this[U]===0){this.emit("prefinish");this.emit("finish");this.emit("end")}}[j](t){const r=(0,E.normalizeWindowsPath)(t.path);const i=r.split("/");if(this.strip){if(i.length<this.strip){return false}if(t.type==="Link"){const r=(0,E.normalizeWindowsPath)(String(t.linkpath)).split("/");if(r.length>=this.strip){t.linkpath=r.slice(this.strip).join("/")}else{return false}}i.splice(0,this.strip);t.path=i.join("/")}if(isFinite(this.maxDepth)&&i.length>this.maxDepth){this.warn("TAR_ENTRY_ERROR","path excessively deep",{entry:t,path:r,depth:i.length,maxDepth:this.maxDepth});return false}if(!this.preservePaths){if(i.includes("..")||ee&&/^[a-z]:\.\.$/i.test(i[0]??"")){this.warn("TAR_ENTRY_ERROR",`path contains '..'`,{entry:t,path:r});return false}const[o,a]=(0,_.stripAbsolutePath)(r);if(o){t.path=String(a);this.warn("TAR_ENTRY_INFO",`stripping ${o} from absolute path`,{entry:t,path:r})}}if(y.default.isAbsolute(t.path)){t.absolute=(0,E.normalizeWindowsPath)(y.default.resolve(t.path))}else{t.absolute=(0,E.normalizeWindowsPath)(y.default.resolve(this.cwd,t.path))}if(!this.preservePaths&&typeof t.absolute==="string"&&t.absolute.indexOf(this.cwd+"/")!==0&&t.absolute!==this.cwd){this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:t,path:(0,E.normalizeWindowsPath)(t.path),resolvedPath:t.absolute,cwd:this.cwd});return false}if(t.absolute===this.cwd&&t.type!=="Directory"&&t.type!=="GNUDumpDir"){return false}if(this.win32){const{root:r}=y.default.win32.parse(String(t.absolute));t.absolute=r+S.encode(String(t.absolute).slice(r.length));const{root:i}=y.default.win32.parse(t.path);t.path=i+S.encode(t.path.slice(i.length))}return true}[x](t){if(!this[j](t)){return t.resume()}d.default.equal(typeof t.absolute,"string");switch(t.type){case"Directory":case"GNUDumpDir":if(t.mode){t.mode=t.mode|448}case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[O](t);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[B](t)}}[G](t,r){if(t.name==="CwdError"){this.emit("error",t)}else{this.warn("TAR_ENTRY_ERROR",t,{entry:r});this[z]();r.resume()}}[H](t,r,i){(0,w.mkdir)((0,E.normalizeWindowsPath)(t),{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:r},i)}[q](t){return this.forceChown||this.preserveOwner&&(typeof t.uid==="number"&&t.uid!==this.processUid||typeof t.gid==="number"&&t.gid!==this.processGid)||typeof this.uid==="number"&&this.uid!==this.processUid||typeof this.gid==="number"&&this.gid!==this.processGid}[X](t){return uint32(this.uid,t.uid,this.processUid)}[Z](t){return uint32(this.gid,t.gid,this.processGid)}[M](t,r){const i=typeof t.mode==="number"?t.mode&4095:this.fmode;const o=new h.WriteStream(String(t.absolute),{flags:(0,b.getWriteFlag)(t.size),mode:i,autoClose:false});o.on("error",(i=>{if(o.fd){g.default.close(o.fd,(()=>{}))}o.write=()=>true;this[G](i,t);r()}));let a=1;const done=i=>{if(i){if(o.fd){g.default.close(o.fd,(()=>{}))}this[G](i,t);r();return}if(--a===0){if(o.fd!==undefined){g.default.close(o.fd,(i=>{if(i){this[G](i,t)}else{this[z]()}r()}))}}};o.on("finish",(()=>{const r=String(t.absolute);const i=o.fd;if(typeof i==="number"&&t.mtime&&!this.noMtime){a++;const o=t.atime||new Date;const u=t.mtime;g.default.futimes(i,o,u,(t=>t?g.default.utimes(r,o,u,(r=>done(r&&t))):done()))}if(typeof i==="number"&&this[q](t)){a++;const o=this[X](t);const u=this[Z](t);if(typeof o==="number"&&typeof u==="number"){g.default.fchown(i,o,u,(t=>t?g.default.chown(r,o,u,(r=>done(r&&t))):done()))}}done()}));const u=this.transform?this.transform(t)||t:t;if(u!==t){u.on("error",(i=>{this[G](i,t);r()}));t.pipe(u)}u.pipe(o)}[L](t,r){const i=typeof t.mode==="number"?t.mode&4095:this.dmode;this[H](String(t.absolute),i,(i=>{if(i){this[G](i,t);r();return}let o=1;const done=()=>{if(--o===0){r();this[z]();t.resume()}};if(t.mtime&&!this.noMtime){o++;g.default.utimes(String(t.absolute),t.atime||new Date,t.mtime,done)}if(this[q](t)){o++;g.default.chown(String(t.absolute),Number(this[X](t)),Number(this[Z](t)),done)}done()}))}[B](t){t.unsupported=true;this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${t.type}`,{entry:t});t.resume()}[$](t,r){this[I](t,String(t.linkpath),"symlink",r)}[N](t,r){const i=(0,E.normalizeWindowsPath)(y.default.resolve(this.cwd,String(t.linkpath)));this[I](t,i,"link",r)}[W](){this[U]++}[z](){this[U]--;this[K]()}[V](t){this[z]();t.resume()}[P](t,r){return t.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!ee}[O](t){this[W]();const r=[t.path];if(t.linkpath){r.push(t.linkpath)}this.reservations.reserve(r,(r=>this[R](t,r)))}[k](t){if(t.type==="SymbolicLink"){dropCache(this.dirCache)}else if(t.type!=="Directory"){pruneCache(this.dirCache,String(t.absolute))}}[R](t,r){this[k](t);const done=i=>{this[k](t);r(i)};const checkCwd=()=>{this[H](this.cwd,this.dmode,(r=>{if(r){this[G](r,t);done();return}this[J]=true;start()}))};const start=()=>{if(t.absolute!==this.cwd){const r=(0,E.normalizeWindowsPath)(y.default.dirname(String(t.absolute)));if(r!==this.cwd){return this[H](r,this.dmode,(r=>{if(r){this[G](r,t);done();return}afterMakeParent()}))}}afterMakeParent()};const afterMakeParent=()=>{g.default.lstat(String(t.absolute),((r,i)=>{if(i&&(this.keep||this.newer&&i.mtime>(t.mtime??i.mtime))){this[V](t);done();return}if(r||this[P](t,i)){return this[T](null,t,done)}if(i.isDirectory()){if(t.type==="Directory"){const r=this.chmod&&t.mode&&(i.mode&4095)!==t.mode;const afterChmod=r=>this[T](r??null,t,done);if(!r){return afterChmod()}return g.default.chmod(String(t.absolute),Number(t.mode),afterChmod)}if(t.absolute!==this.cwd){return g.default.rmdir(String(t.absolute),(r=>this[T](r??null,t,done)))}}if(t.absolute===this.cwd){return this[T](null,t,done)}unlinkFile(String(t.absolute),(r=>this[T](r??null,t,done)))}))};if(this[J]){start()}else{checkCwd()}}[T](t,r,i){if(t){this[G](t,r);i();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[M](r,i);case"Link":return this[N](r,i);case"SymbolicLink":return this[$](r,i);case"Directory":case"GNUDumpDir":return this[L](r,i)}}[I](t,r,i,o){g.default[i](r,String(t.absolute),(r=>{if(r){this[G](r,t)}else{this[z]();t.resume()}o()}))}}r.Unpack=Unpack;const callSync=t=>{try{return[null,t()]}catch(t){return[t,null]}};class UnpackSync extends Unpack{sync=true;[T](t,r){return super[T](t,r,(()=>{}))}[O](t){this[k](t);if(!this[J]){const r=this[H](this.cwd,this.dmode);if(r){return this[G](r,t)}this[J]=true}if(t.absolute!==this.cwd){const r=(0,E.normalizeWindowsPath)(y.default.dirname(String(t.absolute)));if(r!==this.cwd){const i=this[H](r,this.dmode);if(i){return this[G](i,t)}}}const[r,i]=callSync((()=>g.default.lstatSync(String(t.absolute))));if(i&&(this.keep||this.newer&&i.mtime>(t.mtime??i.mtime))){return this[V](t)}if(r||this[P](t,i)){return this[T](null,t)}if(i.isDirectory()){if(t.type==="Directory"){const r=this.chmod&&t.mode&&(i.mode&4095)!==t.mode;const[o]=r?callSync((()=>{g.default.chmodSync(String(t.absolute),Number(t.mode))})):[];return this[T](o,t)}const[r]=callSync((()=>g.default.rmdirSync(String(t.absolute))));this[T](r,t)}const[o]=t.absolute===this.cwd?[]:callSync((()=>unlinkFileSync(String(t.absolute))));this[T](o,t)}[M](t,r){const i=typeof t.mode==="number"?t.mode&4095:this.fmode;const oner=i=>{let a;try{g.default.closeSync(o)}catch(t){a=t}if(i||a){this[G](i||a,t)}r()};let o;try{o=g.default.openSync(String(t.absolute),(0,b.getWriteFlag)(t.size),i)}catch(t){return oner(t)}const a=this.transform?this.transform(t)||t:t;if(a!==t){a.on("error",(r=>this[G](r,t)));t.pipe(a)}a.on("data",(t=>{try{g.default.writeSync(o,t,0,t.length)}catch(t){oner(t)}}));a.on("end",(()=>{let r=null;if(t.mtime&&!this.noMtime){const i=t.atime||new Date;const a=t.mtime;try{g.default.futimesSync(o,i,a)}catch(o){try{g.default.utimesSync(String(t.absolute),i,a)}catch(t){r=o}}}if(this[q](t)){const i=this[X](t);const a=this[Z](t);try{g.default.fchownSync(o,Number(i),Number(a))}catch(o){try{g.default.chownSync(String(t.absolute),Number(i),Number(a))}catch(t){r=r||o}}}oner(r)}))}[L](t,r){const i=typeof t.mode==="number"?t.mode&4095:this.dmode;const o=this[H](String(t.absolute),i);if(o){this[G](o,t);r();return}if(t.mtime&&!this.noMtime){try{g.default.utimesSync(String(t.absolute),t.atime||new Date,t.mtime)}catch(o){}}if(this[q](t)){try{g.default.chownSync(String(t.absolute),Number(this[X](t)),Number(this[Z](t)))}catch(o){}}r();t.resume()}[H](t,r){try{return(0,w.mkdirSync)((0,E.normalizeWindowsPath)(t),{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:r})}catch(t){return t}}[I](t,r,i,o){const a=`${i}Sync`;try{g.default[a](r,String(t.absolute));o();t.resume()}catch(r){return this[G](r,t)}}}r.UnpackSync=UnpackSync},8368:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.update=void 0;const o=i(8283);const a=i(4095);r.update=(0,o.makeCommand)(a.replace.syncFile,a.replace.asyncFile,a.replace.syncNoFile,a.replace.asyncNoFile,((t,r=[])=>{a.replace.validate?.(t,r);mtimeFilter(t)}));const mtimeFilter=t=>{const r=t.filter;if(!t.mtimeCache){t.mtimeCache=new Map}t.filter=r?(i,o)=>r(i,o)&&!((t.mtimeCache?.get(i)??o.mtime??0)>(o.mtime??0)):(r,i)=>!((t.mtimeCache?.get(r)??i.mtime??0)>(i.mtime??0))}},553:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.warnMethod=void 0;const warnMethod=(t,r,i,o={})=>{if(t.file){o.file=t.file}if(t.cwd){o.cwd=t.cwd}o.code=i instanceof Error&&i.code||r;o.tarCode=r;if(!t.strict&&o.recoverable!==false){if(i instanceof Error){o=Object.assign(i,o);i=i.message}t.emit("warn",r,i,o)}else if(i instanceof Error){t.emit("error",Object.assign(i,o))}else{t.emit("error",Object.assign(new Error(`${r}: ${i}`),o))}};r.warnMethod=warnMethod},7665:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.decode=r.encode=void 0;const i=["|","<",">","?",":"];const o=i.map((t=>String.fromCharCode(61440+t.charCodeAt(0))));const a=new Map(i.map(((t,r)=>[t,o[r]])));const u=new Map(o.map(((t,r)=>[t,i[r]])));const encode=t=>i.reduce(((t,r)=>t.split(r).join(a.get(r))),t);r.encode=encode;const decode=t=>o.reduce(((t,r)=>t.split(r).join(u.get(r))),t);r.decode=decode},1595:function(t,r,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,r,i,o){if(o===undefined)o=i;var a=Object.getOwnPropertyDescriptor(r,i);if(!a||("get"in a?!r.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return r[i]}}}Object.defineProperty(t,o,a)}:function(t,r,i,o){if(o===undefined)o=i;t[o]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:true,value:r})}:function(t,r){t["default"]=r});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i))o(r,t,i);a(r,t);return r};var l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.WriteEntryTar=r.WriteEntrySync=r.WriteEntry=void 0;const h=l(i(7147));const d=i(6014);const p=l(i(1017));const g=i(2058);const y=i(7998);const b=i(2376);const w=i(1082);const v=i(3798);const E=i(942);const A=i(3456);const _=i(553);const C=u(i(7665));const prefixPath=(t,r)=>{if(!r){return(0,b.normalizeWindowsPath)(t)}t=(0,b.normalizeWindowsPath)(t).replace(/^\.(\/|$)/,"");return(0,A.stripTrailingSlashes)(r)+"/"+t};const S=16*1024*1024;const D=Symbol("process");const x=Symbol("file");const O=Symbol("directory");const R=Symbol("symlink");const k=Symbol("hardlink");const P=Symbol("header");const T=Symbol("read");const M=Symbol("lstat");const L=Symbol("onlstat");const I=Symbol("onread");const $=Symbol("onreadlink");const N=Symbol("openfile");const B=Symbol("onopenfile");const j=Symbol("close");const H=Symbol("mode");const G=Symbol("awaitDrain");const U=Symbol("ondrain");const W=Symbol("prefix");class WriteEntry extends d.Minipass{path;portable;myuid=process.getuid&&process.getuid()||0;myuser=process.env.USER||"";maxReadSize;linkCache;statCache;preservePaths;cwd;strict;mtime;noPax;noMtime;prefix;fd;blockLen=0;blockRemain=0;buf;pos=0;remain=0;length=0;offset=0;win32;absolute;header;type;linkpath;stat;onWriteEntry;#kt=false;constructor(t,r={}){const i=(0,w.dealias)(r);super();this.path=(0,b.normalizeWindowsPath)(t);this.portable=!!i.portable;this.maxReadSize=i.maxReadSize||S;this.linkCache=i.linkCache||new Map;this.statCache=i.statCache||new Map;this.preservePaths=!!i.preservePaths;this.cwd=(0,b.normalizeWindowsPath)(i.cwd||process.cwd());this.strict=!!i.strict;this.noPax=!!i.noPax;this.noMtime=!!i.noMtime;this.mtime=i.mtime;this.prefix=i.prefix?(0,b.normalizeWindowsPath)(i.prefix):undefined;this.onWriteEntry=i.onWriteEntry;if(typeof i.onwarn==="function"){this.on("warn",i.onwarn)}let o=false;if(!this.preservePaths){const[t,r]=(0,E.stripAbsolutePath)(this.path);if(t&&typeof r==="string"){this.path=r;o=t}}this.win32=!!i.win32||process.platform==="win32";if(this.win32){this.path=C.decode(this.path.replace(/\\/g,"/"));t=t.replace(/\\/g,"/")}this.absolute=(0,b.normalizeWindowsPath)(i.absolute||p.default.resolve(this.cwd,t));if(this.path===""){this.path="./"}if(o){this.warn("TAR_ENTRY_INFO",`stripping ${o} from absolute path`,{entry:this,path:o+this.path})}const a=this.statCache.get(this.absolute);if(a){this[L](a)}else{this[M]()}}warn(t,r,i={}){return(0,_.warnMethod)(this,t,r,i)}emit(t,...r){if(t==="error"){this.#kt=true}return super.emit(t,...r)}[M](){h.default.lstat(this.absolute,((t,r)=>{if(t){return this.emit("error",t)}this[L](r)}))}[L](t){this.statCache.set(this.absolute,t);this.stat=t;if(!t.isFile()){t.size=0}this.type=getType(t);this.emit("stat",t);this[D]()}[D](){switch(this.type){case"File":return this[x]();case"Directory":return this[O]();case"SymbolicLink":return this[R]();default:return this.end()}}[H](t){return(0,y.modeFix)(t,this.type==="Directory",this.portable)}[W](t){return prefixPath(t,this.prefix)}[P](){if(!this.stat){throw new Error("cannot write header before stat")}if(this.type==="Directory"&&this.portable){this.noMtime=true}this.onWriteEntry?.(this);this.header=new g.Header({path:this[W](this.path),linkpath:this.type==="Link"&&this.linkpath!==undefined?this[W](this.linkpath):this.linkpath,mode:this[H](this.stat.mode),uid:this.portable?undefined:this.stat.uid,gid:this.portable?undefined:this.stat.gid,size:this.stat.size,mtime:this.noMtime?undefined:this.mtime||this.stat.mtime,type:this.type==="Unsupported"?undefined:this.type,uname:this.portable?undefined:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?undefined:this.stat.atime,ctime:this.portable?undefined:this.stat.ctime});if(this.header.encode()&&!this.noPax){super.write(new v.Pax({atime:this.portable?undefined:this.header.atime,ctime:this.portable?undefined:this.header.ctime,gid:this.portable?undefined:this.header.gid,mtime:this.noMtime?undefined:this.mtime||this.header.mtime,path:this[W](this.path),linkpath:this.type==="Link"&&this.linkpath!==undefined?this[W](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?undefined:this.header.uid,uname:this.portable?undefined:this.header.uname,dev:this.portable?undefined:this.stat.dev,ino:this.portable?undefined:this.stat.ino,nlink:this.portable?undefined:this.stat.nlink}).encode())}const t=this.header?.block;if(!t){throw new Error("failed to encode header")}super.write(t)}[O](){if(!this.stat){throw new Error("cannot create directory entry without stat")}if(this.path.slice(-1)!=="/"){this.path+="/"}this.stat.size=0;this[P]();this.end()}[R](){h.default.readlink(this.absolute,((t,r)=>{if(t){return this.emit("error",t)}this[$](r)}))}[$](t){this.linkpath=(0,b.normalizeWindowsPath)(t);this[P]();this.end()}[k](t){if(!this.stat){throw new Error("cannot create link entry without stat")}this.type="Link";this.linkpath=(0,b.normalizeWindowsPath)(p.default.relative(this.cwd,t));this.stat.size=0;this[P]();this.end()}[x](){if(!this.stat){throw new Error("cannot create file entry without stat")}if(this.stat.nlink>1){const t=`${this.stat.dev}:${this.stat.ino}`;const r=this.linkCache.get(t);if(r?.indexOf(this.cwd)===0){return this[k](r)}this.linkCache.set(t,this.absolute)}this[P]();if(this.stat.size===0){return this.end()}this[N]()}[N](){h.default.open(this.absolute,"r",((t,r)=>{if(t){return this.emit("error",t)}this[B](r)}))}[B](t){this.fd=t;if(this.#kt){return this[j]()}if(!this.stat){throw new Error("should stat before calling onopenfile")}this.blockLen=512*Math.ceil(this.stat.size/512);this.blockRemain=this.blockLen;const r=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(r);this.offset=0;this.pos=0;this.remain=this.stat.size;this.length=this.buf.length;this[T]()}[T](){const{fd:t,buf:r,offset:i,length:o,pos:a}=this;if(t===undefined||r===undefined){throw new Error("cannot read file without first opening")}h.default.read(t,r,i,o,a,((t,r)=>{if(t){return this[j]((()=>this.emit("error",t)))}this[I](r)}))}[j](t=(()=>{})){if(this.fd!==undefined)h.default.close(this.fd,t)}[I](t){if(t<=0&&this.remain>0){const t=Object.assign(new Error("encountered unexpected EOF"),{path:this.absolute,syscall:"read",code:"EOF"});return this[j]((()=>this.emit("error",t)))}if(t>this.remain){const t=Object.assign(new Error("did not encounter expected EOF"),{path:this.absolute,syscall:"read",code:"EOF"});return this[j]((()=>this.emit("error",t)))}if(!this.buf){throw new Error("should have created buffer prior to reading")}if(t===this.remain){for(let r=t;r<this.length&&t<this.blockRemain;r++){this.buf[r+this.offset]=0;t++;this.remain++}}const r=this.offset===0&&t===this.buf.length?this.buf:this.buf.subarray(this.offset,this.offset+t);const i=this.write(r);if(!i){this[G]((()=>this[U]()))}else{this[U]()}}[G](t){this.once("drain",t)}write(t,r,i){if(typeof r==="function"){i=r;r=undefined}if(typeof t==="string"){t=Buffer.from(t,typeof r==="string"?r:"utf8")}if(this.blockRemain<t.length){const t=Object.assign(new Error("writing more data than expected"),{path:this.absolute});return this.emit("error",t)}this.remain-=t.length;this.blockRemain-=t.length;this.pos+=t.length;this.offset+=t.length;return super.write(t,null,i)}[U](){if(!this.remain){if(this.blockRemain){super.write(Buffer.alloc(this.blockRemain))}return this[j]((t=>t?this.emit("error",t):this.end()))}if(!this.buf){throw new Error("buffer lost somehow in ONDRAIN")}if(this.offset>=this.length){this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length));this.offset=0}this.length=this.buf.length-this.offset;this[T]()}}r.WriteEntry=WriteEntry;class WriteEntrySync extends WriteEntry{sync=true;[M](){this[L](h.default.lstatSync(this.absolute))}[R](){this[$](h.default.readlinkSync(this.absolute))}[N](){this[B](h.default.openSync(this.absolute,"r"))}[T](){let t=true;try{const{fd:r,buf:i,offset:o,length:a,pos:u}=this;if(r===undefined||i===undefined){throw new Error("fd and buf must be set in READ method")}const l=h.default.readSync(r,i,o,a,u);this[I](l);t=false}finally{if(t){try{this[j]((()=>{}))}catch(t){}}}}[G](t){t()}[j](t=(()=>{})){if(this.fd!==undefined)h.default.closeSync(this.fd);t()}}r.WriteEntrySync=WriteEntrySync;class WriteEntryTar extends d.Minipass{blockLen=0;blockRemain=0;buf=0;pos=0;remain=0;length=0;preservePaths;portable;strict;noPax;noMtime;readEntry;type;prefix;path;mode;uid;gid;uname;gname;header;mtime;atime;ctime;linkpath;size;onWriteEntry;warn(t,r,i={}){return(0,_.warnMethod)(this,t,r,i)}constructor(t,r={}){const i=(0,w.dealias)(r);super();this.preservePaths=!!i.preservePaths;this.portable=!!i.portable;this.strict=!!i.strict;this.noPax=!!i.noPax;this.noMtime=!!i.noMtime;this.onWriteEntry=i.onWriteEntry;this.readEntry=t;const{type:o}=t;if(o==="Unsupported"){throw new Error("writing entry that should be ignored")}this.type=o;if(this.type==="Directory"&&this.portable){this.noMtime=true}this.prefix=i.prefix;this.path=(0,b.normalizeWindowsPath)(t.path);this.mode=t.mode!==undefined?this[H](t.mode):undefined;this.uid=this.portable?undefined:t.uid;this.gid=this.portable?undefined:t.gid;this.uname=this.portable?undefined:t.uname;this.gname=this.portable?undefined:t.gname;this.size=t.size;this.mtime=this.noMtime?undefined:i.mtime||t.mtime;this.atime=this.portable?undefined:t.atime;this.ctime=this.portable?undefined:t.ctime;this.linkpath=t.linkpath!==undefined?(0,b.normalizeWindowsPath)(t.linkpath):undefined;if(typeof i.onwarn==="function"){this.on("warn",i.onwarn)}let a=false;if(!this.preservePaths){const[t,r]=(0,E.stripAbsolutePath)(this.path);if(t&&typeof r==="string"){this.path=r;a=t}}this.remain=t.size;this.blockRemain=t.startBlockSize;this.onWriteEntry?.(this);this.header=new g.Header({path:this[W](this.path),linkpath:this.type==="Link"&&this.linkpath!==undefined?this[W](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?undefined:this.uid,gid:this.portable?undefined:this.gid,size:this.size,mtime:this.noMtime?undefined:this.mtime,type:this.type,uname:this.portable?undefined:this.uname,atime:this.portable?undefined:this.atime,ctime:this.portable?undefined:this.ctime});if(a){this.warn("TAR_ENTRY_INFO",`stripping ${a} from absolute path`,{entry:this,path:a+this.path})}if(this.header.encode()&&!this.noPax){super.write(new v.Pax({atime:this.portable?undefined:this.atime,ctime:this.portable?undefined:this.ctime,gid:this.portable?undefined:this.gid,mtime:this.noMtime?undefined:this.mtime,path:this[W](this.path),linkpath:this.type==="Link"&&this.linkpath!==undefined?this[W](this.linkpath):this.linkpath,size:this.size,uid:this.portable?undefined:this.uid,uname:this.portable?undefined:this.uname,dev:this.portable?undefined:this.readEntry.dev,ino:this.portable?undefined:this.readEntry.ino,nlink:this.portable?undefined:this.readEntry.nlink}).encode())}const u=this.header?.block;if(!u)throw new Error("failed to encode header");super.write(u);t.pipe(this)}[W](t){return prefixPath(t,this.prefix)}[H](t){return(0,y.modeFix)(t,this.type==="Directory",this.portable)}write(t,r,i){if(typeof r==="function"){i=r;r=undefined}if(typeof t==="string"){t=Buffer.from(t,typeof r==="string"?r:"utf8")}const o=t.length;if(o>this.blockRemain){throw new Error("writing more to entry than is appropriate")}this.blockRemain-=o;return super.write(t,i)}end(t,r,i){if(this.blockRemain){super.write(Buffer.alloc(this.blockRemain))}if(typeof t==="function"){i=t;r=undefined;t=undefined}if(typeof r==="function"){i=r;r=undefined}if(typeof t==="string"){t=Buffer.from(t,r??"utf8")}if(i)this.once("finish",i);t?super.end(t,i):super.end(i);return this}}r.WriteEntryTar=WriteEntryTar;const getType=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported"},4982:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.Node=r.Yallist=void 0;class Yallist{tail;head;length=0;static create(t=[]){return new Yallist(t)}constructor(t=[]){for(const r of t){this.push(r)}}*[Symbol.iterator](){for(let t=this.head;t;t=t.next){yield t.value}}removeNode(t){if(t.list!==this){throw new Error("removing node which does not belong to this list")}const r=t.next;const i=t.prev;if(r){r.prev=i}if(i){i.next=r}if(t===this.head){this.head=r}if(t===this.tail){this.tail=i}this.length--;t.next=undefined;t.prev=undefined;t.list=undefined;return r}unshiftNode(t){if(t===this.head){return}if(t.list){t.list.removeNode(t)}const r=this.head;t.list=this;t.next=r;if(r){r.prev=t}this.head=t;if(!this.tail){this.tail=t}this.length++}pushNode(t){if(t===this.tail){return}if(t.list){t.list.removeNode(t)}const r=this.tail;t.list=this;t.prev=r;if(r){r.next=t}this.tail=t;if(!this.head){this.head=t}this.length++}push(...t){for(let r=0,i=t.length;r<i;r++){push(this,t[r])}return this.length}unshift(...t){for(var r=0,i=t.length;r<i;r++){unshift(this,t[r])}return this.length}pop(){if(!this.tail){return undefined}const t=this.tail.value;const r=this.tail;this.tail=this.tail.prev;if(this.tail){this.tail.next=undefined}else{this.head=undefined}r.list=undefined;this.length--;return t}shift(){if(!this.head){return undefined}const t=this.head.value;const r=this.head;this.head=this.head.next;if(this.head){this.head.prev=undefined}else{this.tail=undefined}r.list=undefined;this.length--;return t}forEach(t,r){r=r||this;for(let i=this.head,o=0;!!i;o++){t.call(r,i.value,o,this);i=i.next}}forEachReverse(t,r){r=r||this;for(let i=this.tail,o=this.length-1;!!i;o--){t.call(r,i.value,o,this);i=i.prev}}get(t){let r=0;let i=this.head;for(;!!i&&r<t;r++){i=i.next}if(r===t&&!!i){return i.value}}getReverse(t){let r=0;let i=this.tail;for(;!!i&&r<t;r++){i=i.prev}if(r===t&&!!i){return i.value}}map(t,r){r=r||this;const i=new Yallist;for(let o=this.head;!!o;){i.push(t.call(r,o.value,this));o=o.next}return i}mapReverse(t,r){r=r||this;var i=new Yallist;for(let o=this.tail;!!o;){i.push(t.call(r,o.value,this));o=o.prev}return i}reduce(t,r){let i;let o=this.head;if(arguments.length>1){i=r}else if(this.head){o=this.head.next;i=this.head.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var a=0;!!o;a++){i=t(i,o.value,a);o=o.next}return i}reduceReverse(t,r){let i;let o=this.tail;if(arguments.length>1){i=r}else if(this.tail){o=this.tail.prev;i=this.tail.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(let r=this.length-1;!!o;r--){i=t(i,o.value,r);o=o.prev}return i}toArray(){const t=new Array(this.length);for(let r=0,i=this.head;!!i;r++){t[r]=i.value;i=i.next}return t}toArrayReverse(){const t=new Array(this.length);for(let r=0,i=this.tail;!!i;r++){t[r]=i.value;i=i.prev}return t}slice(t=0,r=this.length){if(r<0){r+=this.length}if(t<0){t+=this.length}const i=new Yallist;if(r<t||r<0){return i}if(t<0){t=0}if(r>this.length){r=this.length}let o=this.head;let a=0;for(a=0;!!o&&a<t;a++){o=o.next}for(;!!o&&a<r;a++,o=o.next){i.push(o.value)}return i}sliceReverse(t=0,r=this.length){if(r<0){r+=this.length}if(t<0){t+=this.length}const i=new Yallist;if(r<t||r<0){return i}if(t<0){t=0}if(r>this.length){r=this.length}let o=this.length;let a=this.tail;for(;!!a&&o>r;o--){a=a.prev}for(;!!a&&o>t;o--,a=a.prev){i.push(a.value)}return i}splice(t,r=0,...i){if(t>this.length){t=this.length-1}if(t<0){t=this.length+t}let o=this.head;for(let r=0;!!o&&r<t;r++){o=o.next}const a=[];for(let t=0;!!o&&t<r;t++){a.push(o.value);o=this.removeNode(o)}if(!o){o=this.tail}else if(o!==this.tail){o=o.prev}for(const t of i){o=insertAfter(this,o,t)}return a}reverse(){const t=this.head;const r=this.tail;for(let r=t;!!r;r=r.prev){const t=r.prev;r.prev=r.next;r.next=t}this.head=r;this.tail=t;return this}}r.Yallist=Yallist;function insertAfter(t,r,i){const o=r;const a=r?r.next:t.head;const u=new Node(i,o,a,t);if(u.next===undefined){t.tail=u}if(u.prev===undefined){t.head=u}t.length++;return u}function push(t,r){t.tail=new Node(r,t.tail,undefined,t);if(!t.head){t.head=t.tail}t.length++}function unshift(t,r){t.head=new Node(r,undefined,t.head,t);if(!t.tail){t.tail=t.head}t.length++}class Node{list;next;prev;value;constructor(t,r,i,o){this.list=o;this.value=t;if(r){r.next=this;this.prev=r}else{this.prev=undefined}if(i){i.prev=this;this.next=i}else{this.next=undefined}}}r.Node=Node},2548:t=>{"use strict";t.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":["🌍 ","🌎 ","🌏 "]},"material":{"interval":17,"frames":["█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███████▁▁▁▁▁▁▁▁▁▁▁▁▁","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","██████████▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","█████████████▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁██████████████▁▁▁▁","▁▁▁██████████████▁▁▁","▁▁▁▁█████████████▁▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁▁▁████████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁██████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","██████▁▁▁▁▁▁▁▁▁▁▁▁▁█","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁▁█████████████▁▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁▁███████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁▁█████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁"]},"moon":{"interval":80,"frames":["🌑 ","🌒 ","🌓 ","🌔 ","🌕 ","🌖 ","🌗 ","🌘 "]},"runner":{"interval":140,"frames":["🚶 ","🏃 "]},"pong":{"interval":80,"frames":["▐⠂ ▌","▐⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂▌","▐ ⠠▌","▐ ⡀▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐⠠ ▌"]},"shark":{"interval":120,"frames":["▐|\\\\____________▌","▐_|\\\\___________▌","▐__|\\\\__________▌","▐___|\\\\_________▌","▐____|\\\\________▌","▐_____|\\\\_______▌","▐______|\\\\______▌","▐_______|\\\\_____▌","▐________|\\\\____▌","▐_________|\\\\___▌","▐__________|\\\\__▌","▐___________|\\\\_▌","▐____________|\\\\▌","▐____________/|▌","▐___________/|_▌","▐__________/|__▌","▐_________/|___▌","▐________/|____▌","▐_______/|_____▌","▐______/|______▌","▐_____/|_______▌","▐____/|________▌","▐___/|_________▌","▐__/|__________▌","▐_/|___________▌","▐/|____________▌"]},"dqpb":{"interval":100,"frames":["d","q","p","b"]},"weather":{"interval":100,"frames":["☀️ ","☀️ ","☀️ ","🌤 ","⛅️ ","🌥 ","☁️ ","🌧 ","🌨 ","🌧 ","🌨 ","🌧 ","🌨 ","⛈ ","🌨 ","🌧 ","🌨 ","☁️ ","🌥 ","⛅️ ","🌤 ","☀️ ","☀️ "]},"christmas":{"interval":400,"frames":["🌲","🎄"]},"grenade":{"interval":80,"frames":["، ","′ "," ´ "," ‾ "," ⸌"," ⸊"," |"," ⁎"," ⁕"," ෴ "," ⁓"," "," "," "]},"point":{"interval":125,"frames":["∙∙∙","●∙∙","∙●∙","∙∙●","∙∙∙"]},"layer":{"interval":150,"frames":["-","=","≡"]},"betaWave":{"interval":80,"frames":["ρββββββ","βρβββββ","ββρββββ","βββρβββ","ββββρββ","βββββρβ","ββββββρ"]},"fingerDance":{"interval":160,"frames":["🤘 ","🤟 ","🖖 ","✋ ","🤚 ","👆 "]},"fistBump":{"interval":80,"frames":["🤜 🤛 ","🤜 🤛 ","🤜 🤛 "," 🤜 🤛 "," 🤜🤛 "," 🤜✨🤛 ","🤜 ✨ 🤛 "]},"soccerHeader":{"interval":80,"frames":[" 🧑⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 "]},"mindblown":{"interval":160,"frames":["😐 ","😐 ","😮 ","😮 ","😦 ","😦 ","😧 ","😧 ","🤯 ","💥 ","✨ "," "," "," "]},"speaker":{"interval":160,"frames":["🔈 ","🔉 ","🔊 ","🔉 "]},"orangePulse":{"interval":100,"frames":["🔸 ","🔶 ","🟠 ","🟠 ","🔶 "]},"bluePulse":{"interval":100,"frames":["🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},"orangeBluePulse":{"interval":100,"frames":["🔸 ","🔶 ","🟠 ","🟠 ","🔶 ","🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},"timeTravel":{"interval":100,"frames":["🕛 ","🕚 ","🕙 ","🕘 ","🕗 ","🕖 ","🕕 ","🕔 ","🕓 ","🕒 ","🕑 ","🕐 "]},"aesthetic":{"interval":80,"frames":["▰▱▱▱▱▱▱","▰▰▱▱▱▱▱","▰▰▰▱▱▱▱","▰▰▰▰▱▱▱","▰▰▰▰▰▱▱","▰▰▰▰▰▰▱","▰▰▰▰▰▰▰","▰▱▱▱▱▱▱"]}}')},4147:t=>{"use strict";t.exports=JSON.parse('{"name":"create-expo","version":"3.3.1","bin":"./build/index.js","main":"build","description":"Create universal Expo apps","license":"BSD-3-Clause","keywords":["expo","react-native","react"],"homepage":"https://docs.expo.dev","repository":{"type":"git","url":"https://github.com/expo/expo.git","directory":"packages/create-expo"},"author":"Evan Bacon <bacon@expo.io> (https://github.com/evanbacon)","files":["build","template"],"engines":{"node":">=18.13.0"},"scripts":{"build":"ncc build ./src/index.ts -o build/","build:prod":"ncc build ./src/index.ts -o build/ --minify --no-cache --no-source-map-register","prepare":"expo-module clean && yarn run build:prod","clean":"expo-module clean","lint":"expo-module lint","typecheck":"expo-module typecheck","test":"expo-module test","test:e2e":"expo-module test --config e2e/jest.config.js --runInBand","watch":"yarn run build --watch","prepublishOnly":"expo-module prepublishOnly"},"devDependencies":{"@expo/config":"~11.0.0","@expo/json-file":"^9.1.0","@expo/package-manager":"^1.8.0","@expo/spawn-async":"^1.7.2","@octokit/types":"^13.5.0","@types/debug":"^4.1.7","@types/getenv":"^1.0.0","@types/node":"^18.19.34","@types/picomatch":"^2.3.3","@types/prompts":"2.0.14","@vercel/ncc":"^0.38.1","arg":"^5.0.2","chalk":"^4.0.0","debug":"^4.3.4","expo-module-scripts":"^4.1.0","getenv":"^1.0.0","glob":"^10.4.2","nock":"^14.0.0-beta.7","ora":"3.4.0","picomatch":"^2.3.1","prompts":"^2.4.2","tar":"^7.4.3","update-check":"^1.5.4"},"gitHead":"2487c7aa9b5ef6a7052e82bbf9a53604c2ed273f"}')}};var __webpack_module_cache__={};function __nccwpck_require__(t){var r=__webpack_module_cache__[t];if(r!==undefined){return r.exports}var i=__webpack_module_cache__[t]={id:t,loaded:false,exports:{}};var o=true;try{__webpack_modules__[t].call(i.exports,i,i.exports,__nccwpck_require__);o=false}finally{if(o)delete __webpack_module_cache__[t]}i.loaded=true;return i.exports}(()=>{__nccwpck_require__.nmd=t=>{t.paths=[];if(!t.children)t.children=[];return t}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var __webpack_exports__=__nccwpck_require__(2855);module.exports=__webpack_exports__})();
|
|
45
|
+
{bold npm:} {cyan npx ${i.o}}
|
|
46
|
+
{bold yarn:} {cyan yarn create ${e}}
|
|
47
|
+
{bold pnpm:} {cyan pnpm create ${e}}
|
|
48
|
+
{bold bun:} {cyan bun create ${e}}
|
|
49
|
+
`)}const{AnalyticsEventPhases:l,AnalyticsEventTypes:c,flushAsync:p,track:h}=await r.e(162).then(r.bind(r,3162));try{const s=await resolveStringOrBooleanArgsAsync(e,t,{"--template":Boolean,"--example":Boolean,"-t":"--template","-e":"--example"});f(`Default args:\n%O`,n);f(`Parsed:\n%O`,s);const{createAsync:i}=await Promise.all([r.e(571),r.e(733)]).then(r.bind(r,733));await i(s.projectRoot,{yes:!!n["--yes"],template:s.args["--template"],example:s.args["--example"],install:!n["--no-install"]});h({event:c.CREATE_EXPO_APP,properties:{phase:l.SUCCESS}});await p()}catch(e){if(!(e instanceof o.z)){a.Zb.exception(e)}h({event:c.CREATE_EXPO_APP,properties:{phase:l.FAIL,message:e.cause}});await p().finally((()=>{process.exit(e.code||1)}))}finally{const e=await(await r.e(897).then(r.bind(r,5897))).default;await e()}}run()},9247:(e,t,r)=>{"use strict";r.d(t,{o:()=>n});const n=r(4147).name},5733:(e,t,r)=>{"use strict";r.d(t,{z:()=>ExitError});class ExitError extends Error{cause;code;constructor(e,t){super(e instanceof Error?e.message:e);this.cause=e;this.code=t}}},3744:(e,t,r)=>{"use strict";r.d(t,{JF:()=>exit,Zb:()=>o});var n=r(8746);var s=r.n(n);var i=r(5733);function error(...e){console.error(...e)}function exception(e){const{env:t}=r(7943);error(s().red(e.toString())+(t.EXPO_DEBUG?"\n"+s().gray(e.stack):""))}function log(...e){console.log(...e)}function exit(e,t=1){if(e instanceof Error){exception(e)}else if(e){if(t===0){log(e)}else{error(e)}}if(t!==0){throw new i.z(e,t)}process.exit(t)}const o={error:error,exception:exception,log:log,exit:exit}},1805:(e,t,r)=>{"use strict";r.d(t,{CP:()=>formatRunCommand,RH:()=>resolvePackageManager,a1:()=>configurePackageManager,a3:()=>installDependenciesAsync,p6:()=>formatSelfCommand});var n=r(7496);var s=r.n(n);var i=r(2081);var o=r.n(i);var a=r(9247);const u=r(7984)("expo:init:resolvePackageManager");function resolvePackageManager(){const e=process.env.npm_config_user_agent;u("npm_config_user_agent:",e);if(e?.startsWith("yarn")){return"yarn"}else if(e?.startsWith("pnpm")){return"pnpm"}else if(e?.startsWith("bun")){return"bun"}else if(e?.startsWith("npm")){return"npm"}if(isPackageManagerAvailable("yarn")){return"yarn"}else if(isPackageManagerAvailable("pnpm")){return"pnpm"}else if(isPackageManagerAvailable("bun")){return"bun"}return"npm"}function isPackageManagerAvailable(e){try{(0,i.execSync)(`${e} --version`,{stdio:"ignore"});return true}catch{}return false}function formatRunCommand(e,t){switch(e){case"pnpm":return`pnpm run ${t}`;case"yarn":return`yarn ${t}`;case"bun":return`bun run ${t}`;case"npm":default:return`npm run ${t}`}}function formatSelfCommand(){const e=resolvePackageManager();switch(e){case"pnpm":return`pnpx ${a.o}`;case"bun":return`bunx ${a.o}`;case"yarn":case"npm":default:return`npx ${a.o}`}}function createPackageManager(e,t){switch(e){case"yarn":return new n.YarnPackageManager(t);case"pnpm":return new n.PnpmPackageManager(t);case"bun":return new n.BunPackageManager(t);case"npm":default:return new n.NpmPackageManager(t)}}async function installDependenciesAsync(e,t,r={silent:false}){await createPackageManager(t,{cwd:e,silent:r.silent}).installAsync()}async function configurePackageManager(e,t,r={silent:false}){const n=createPackageManager(t,{cwd:e,...r});switch(n.name){case"pnpm":await n.runAsync(["config","--location","project","set","node-linker","hoisted"]);break;case"yarn":{const e=await n.versionAsync();const t=parseInt(e.split(".")[0],10);if(t>=2){await n.runAsync(["config","set","nodeLinker","node-modules"])}break}}}},7943:(e,t,r)=>{"use strict";r.r(t);r.d(t,{env:()=>i});var n=r(7945);var s=r.n(n);class Env{get EXPO_DEBUG(){return(0,n.boolish)("EXPO_DEBUG",false)}get EXPO_BETA(){return(0,n.boolish)("EXPO_BETA",false)}get CI(){return(0,n.boolish)("CI",false)}get EXPO_NO_CACHE(){return(0,n.boolish)("EXPO_NO_CACHE",false)}get EXPO_NO_TELEMETRY(){return(0,n.boolish)("EXPO_NO_TELEMETRY",false)}}const i=new Env},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")},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")},5687:e=>{"use strict";e.exports=require("https")},8188:e=>{"use strict";e.exports=require("module")},8061:e=>{"use strict";e.exports=require("node:assert")},6005:e=>{"use strict";e.exports=require("node:crypto")},5673:e=>{"use strict";e.exports=require("node:events")},7561:e=>{"use strict";e.exports=require("node:fs")},3977:e=>{"use strict";e.exports=require("node:fs/promises")},9411:e=>{"use strict";e.exports=require("node:path")},7742:e=>{"use strict";e.exports=require("node:process")},4492:e=>{"use strict";e.exports=require("node:stream")},6915:e=>{"use strict";e.exports=require("node:string_decoder")},1041:e=>{"use strict";e.exports=require("node:url")},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")},6224:e=>{"use strict";e.exports=require("tty")},7310:e=>{"use strict";e.exports=require("url")},3837:e=>{"use strict";e.exports=require("util")},9796:e=>{"use strict";e.exports=require("zlib")},9539:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isIdentifierChar=isIdentifierChar;t.isIdentifierName=isIdentifierName;t.isIdentifierStart=isIdentifierStart;let r="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";let n="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const s=new RegExp("["+r+"]");const i=new RegExp("["+r+n+"]");r=n=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,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,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,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,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,20,1,64,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,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,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,38,6,186,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,19,72,200,32,32,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,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,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,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,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,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191];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,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,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,343,9,54,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,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,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,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239];function isInAstralSet(e,t){let r=65536;for(let n=0,s=t.length;n<s;n+=2){r+=t[n];if(r>e)return false;r+=t[n+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&&s.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;r<e.length;r++){let n=e.charCodeAt(r);if((n&64512)===55296&&r+1<e.length){const t=e.charCodeAt(++r);if((t&64512)===56320){n=65536+((n&1023)<<10)+(t&1023)}}if(t){t=false;if(!isIdentifierStart(n)){return false}}else if(!isIdentifierChar(n)){return false}}return!t}},4679:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"isIdentifierChar",{enumerable:true,get:function(){return n.isIdentifierChar}});Object.defineProperty(t,"isIdentifierName",{enumerable:true,get:function(){return n.isIdentifierName}});Object.defineProperty(t,"isIdentifierStart",{enumerable:true,get:function(){return n.isIdentifierStart}});Object.defineProperty(t,"isKeyword",{enumerable:true,get:function(){return s.isKeyword}});Object.defineProperty(t,"isReservedWord",{enumerable:true,get:function(){return s.isReservedWord}});Object.defineProperty(t,"isStrictBindOnlyReservedWord",{enumerable:true,get:function(){return s.isStrictBindOnlyReservedWord}});Object.defineProperty(t,"isStrictBindReservedWord",{enumerable:true,get:function(){return s.isStrictBindReservedWord}});Object.defineProperty(t,"isStrictReservedWord",{enumerable:true,get:function(){return s.isStrictReservedWord}});var n=r(9539);var s=r(11)},11:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isKeyword=isKeyword;t.isReservedWord=isReservedWord;t.isStrictBindOnlyReservedWord=isStrictBindOnlyReservedWord;t.isStrictBindReservedWord=isStrictBindReservedWord;t.isStrictReservedWord=isStrictReservedWord;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 n=new Set(r.keyword);const s=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)||s.has(e)}function isStrictBindOnlyReservedWord(e){return i.has(e)}function isStrictBindReservedWord(e,t){return isStrictReservedWord(e,t)||isStrictBindOnlyReservedWord(e)}function isKeyword(e){return n.has(e)}},932:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=highlight;t.shouldHighlight=shouldHighlight;var n=r(8035);var s=r(4679);var i=_interopRequireWildcard(r(9397),true);function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(_getRequireWildcardCache=function(e){return e?r:t})(e)}function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=_getRequireWildcardCache(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var o=s?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}const o=typeof process==="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?(0,i.createColors)(false):i.default;const compose=(e,t)=>r=>e(t(r));const a=new Set(["as","async","from","get","of","set"]);function getDefs(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.gray,invalid:compose(compose(e.white,e.bgRed),e.bold)}}const u=/\r\n|[\n\r\u2028\u2029]/;const l=/^[()[\]{}]$/;let c;{const e=/^[a-z][\w-]*$/i;const getTokenType=function(t,r,n){if(t.type==="name"){if((0,s.isKeyword)(t.value)||(0,s.isStrictReservedWord)(t.value,true)||a.has(t.value)){return"keyword"}if(e.test(t.value)&&(n[r-1]==="<"||n.slice(r-2,r)==="</")){return"jsxIdentifier"}if(t.value[0]!==t.value[0].toLowerCase()){return"capitalized"}}if(t.type==="punctuator"&&l.test(t.value)){return"bracket"}if(t.type==="invalid"&&(t.value==="@"||t.value==="#")){return"punctuator"}return t.type};c=function*(e){let t;while(t=n.default.exec(e)){const r=n.matchToToken(t);yield{type:getTokenType(r,t.index,e),value:r.value}}}}function highlightTokens(e,t){let r="";for(const{type:n,value:s}of c(t)){const t=e[n];if(t){r+=s.split(u).map((e=>t(e))).join("\n")}else{r+=s}}return r}function shouldHighlight(e){return o.isColorSupported||e.forceColor}let f=undefined;function getColors(e){if(e){var t;(t=f)!=null?t:f=(0,i.createColors)(true);return f}return o}function highlight(e,t={}){if(e!==""&&shouldHighlight(t)){const r=getDefs(getColors(t.forceColor));return highlightTokens(r,e)}else{return e}}{let e,n;t.getChalk=({forceColor:t})=>{var s;(s=e)!=null?s:e=r(6870);if(t){var i;(i=n)!=null?i:n=new e.constructor({enabled:true,level:1});return n}return e}}},3576:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.LRUCache=void 0;const r=typeof performance==="object"&&performance&&typeof performance.now==="function"?performance:Date;const n=new Set;const s=typeof process==="object"&&!!process?process:{};const emitWarning=(e,t,r,n)=>{typeof s.emitWarning==="function"?s.emitWarning(e,t,r,n):console.error(`[${r}] ${t}: ${e}`)};let i=globalThis.AbortController;let o=globalThis.AbortSignal;if(typeof i==="undefined"){o=class AbortSignal{onabort;_onabort=[];reason;aborted=false;addEventListener(e,t){this._onabort.push(t)}};i=class AbortController{constructor(){warnACPolyfill()}signal=new o;abort(e){if(this.signal.aborted)return;this.signal.reason=e;this.signal.aborted=true;for(const t of this.signal._onabort){t(e)}this.signal.onabort?.(e)}};let e=s.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1";const warnACPolyfill=()=>{if(!e)return;e=false;emitWarning("AbortController is not defined. If using lru-cache in "+"node 14, load an AbortController polyfill from the "+"`node-abort-controller` package. A minimal polyfill is "+"provided for use by LRUCache.fetch(), but it should not be "+"relied upon in other contexts (eg, passing it to other APIs that "+"use AbortController/AbortSignal might have undesirable effects). "+"You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",warnACPolyfill)}}const shouldWarn=e=>!n.has(e);const a=Symbol("type");const isPosInt=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e);const getUintArray=e=>!isPosInt(e)?null:e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?ZeroArray:null;class ZeroArray extends Array{constructor(e){super(e);this.fill(0)}}class Stack{heap;length;static#n=false;static create(e){const t=getUintArray(e);if(!t)return[];Stack.#n=true;const r=new Stack(e,t);Stack.#n=false;return r}constructor(e,t){if(!Stack.#n){throw new TypeError("instantiate Stack using Stack.create(n)")}this.heap=new t(e);this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}}class LRUCache{#s;#i;#o;#a;#u;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#l;#c;#f;#p;#h;#d;#g;#m;#D;#y;#A;#E;#C;#v;#b;#w;#F;static unsafeExposeInternals(e){return{starts:e.#C,ttls:e.#v,sizes:e.#E,keyMap:e.#f,keyList:e.#p,valList:e.#h,next:e.#d,prev:e.#g,get head(){return e.#m},get tail(){return e.#D},free:e.#y,isBackgroundFetch:t=>e.#_(t),backgroundFetch:(t,r,n,s)=>e.#S(t,r,n,s),moveToTail:t=>e.#x(t),indexes:t=>e.#O(t),rindexes:t=>e.#k(t),isStale:t=>e.#R(t)}}get max(){return this.#s}get maxSize(){return this.#i}get calculatedSize(){return this.#c}get size(){return this.#l}get fetchMethod(){return this.#u}get dispose(){return this.#o}get disposeAfter(){return this.#a}constructor(e){const{max:t=0,ttl:r,ttlResolution:s=1,ttlAutopurge:i,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:u,dispose:l,disposeAfter:c,noDisposeOnSet:f,noUpdateTTL:p,maxSize:h=0,maxEntrySize:d=0,sizeCalculation:g,fetchMethod:m,noDeleteOnFetchRejection:D,noDeleteOnStaleGet:y,allowStaleOnFetchRejection:A,allowStaleOnFetchAbort:E,ignoreFetchAbort:C}=e;if(t!==0&&!isPosInt(t)){throw new TypeError("max option must be a nonnegative integer")}const v=t?getUintArray(t):Array;if(!v){throw new Error("invalid max value: "+t)}this.#s=t;this.#i=h;this.maxEntrySize=d||this.#i;this.sizeCalculation=g;if(this.sizeCalculation){if(!this.#i&&!this.maxEntrySize){throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize")}if(typeof this.sizeCalculation!=="function"){throw new TypeError("sizeCalculation set to non-function")}}if(m!==undefined&&typeof m!=="function"){throw new TypeError("fetchMethod must be a function if specified")}this.#u=m;this.#w=!!m;this.#f=new Map;this.#p=new Array(t).fill(undefined);this.#h=new Array(t).fill(undefined);this.#d=new v(t);this.#g=new v(t);this.#m=0;this.#D=0;this.#y=Stack.create(t);this.#l=0;this.#c=0;if(typeof l==="function"){this.#o=l}if(typeof c==="function"){this.#a=c;this.#A=[]}else{this.#a=undefined;this.#A=undefined}this.#b=!!this.#o;this.#F=!!this.#a;this.noDisposeOnSet=!!f;this.noUpdateTTL=!!p;this.noDeleteOnFetchRejection=!!D;this.allowStaleOnFetchRejection=!!A;this.allowStaleOnFetchAbort=!!E;this.ignoreFetchAbort=!!C;if(this.maxEntrySize!==0){if(this.#i!==0){if(!isPosInt(this.#i)){throw new TypeError("maxSize must be a positive integer if specified")}}if(!isPosInt(this.maxEntrySize)){throw new TypeError("maxEntrySize must be a positive integer if specified")}this.#$()}this.allowStale=!!u;this.noDeleteOnStaleGet=!!y;this.updateAgeOnGet=!!o;this.updateAgeOnHas=!!a;this.ttlResolution=isPosInt(s)||s===0?s:1;this.ttlAutopurge=!!i;this.ttl=r||0;if(this.ttl){if(!isPosInt(this.ttl)){throw new TypeError("ttl must be a positive integer if specified")}this.#B()}if(this.#s===0&&this.ttl===0&&this.#i===0){throw new TypeError("At least one of max, maxSize, or ttl is required")}if(!this.ttlAutopurge&&!this.#s&&!this.#i){const e="LRU_CACHE_UNBOUNDED";if(shouldWarn(e)){n.add(e);const t="TTL caching without ttlAutopurge, max, or maxSize can "+"result in unbounded memory consumption.";emitWarning(t,"UnboundedCacheWarning",e,LRUCache)}}}getRemainingTTL(e){return this.#f.has(e)?Infinity:0}#B(){const e=new ZeroArray(this.#s);const t=new ZeroArray(this.#s);this.#v=e;this.#C=t;this.#I=(n,s,i=r.now())=>{t[n]=s!==0?i:0;e[n]=s;if(s!==0&&this.ttlAutopurge){const e=setTimeout((()=>{if(this.#R(n)){this.delete(this.#p[n])}}),s+1);if(e.unref){e.unref()}}};this.#L=n=>{t[n]=e[n]!==0?r.now():0};this.#P=(r,s)=>{if(e[s]){const i=e[s];const o=t[s];if(!i||!o)return;r.ttl=i;r.start=o;r.now=n||getNow();const a=r.now-o;r.remainingTTL=i-a}};let n=0;const getNow=()=>{const e=r.now();if(this.ttlResolution>0){n=e;const t=setTimeout((()=>n=0),this.ttlResolution);if(t.unref){t.unref()}}return e};this.getRemainingTTL=r=>{const s=this.#f.get(r);if(s===undefined){return 0}const i=e[s];const o=t[s];if(!i||!o){return Infinity}const a=(n||getNow())-o;return i-a};this.#R=r=>{const s=t[r];const i=e[r];return!!i&&!!s&&(n||getNow())-s>i}}#L=()=>{};#P=()=>{};#I=()=>{};#R=()=>false;#$(){const e=new ZeroArray(this.#s);this.#c=0;this.#E=e;this.#T=t=>{this.#c-=e[t];e[t]=0};this.#N=(e,t,r,n)=>{if(this.#_(t)){return 0}if(!isPosInt(r)){if(n){if(typeof n!=="function"){throw new TypeError("sizeCalculation must be a function")}r=n(t,e);if(!isPosInt(r)){throw new TypeError("sizeCalculation return invalid (expect positive integer)")}}else{throw new TypeError("invalid size value (must be positive integer). "+"When maxSize or maxEntrySize is used, sizeCalculation "+"or size must be set.")}}return r};this.#M=(t,r,n)=>{e[t]=r;if(this.#i){const r=this.#i-e[t];while(this.#c>r){this.#j(true)}}this.#c+=e[t];if(n){n.entrySize=r;n.totalCalculatedSize=this.#c}}}#T=e=>{};#M=(e,t,r)=>{};#N=(e,t,r,n)=>{if(r||n){throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache")}return 0};*#O({allowStale:e=this.allowStale}={}){if(this.#l){for(let t=this.#D;true;){if(!this.#H(t)){break}if(e||!this.#R(t)){yield t}if(t===this.#m){break}else{t=this.#g[t]}}}}*#k({allowStale:e=this.allowStale}={}){if(this.#l){for(let t=this.#m;true;){if(!this.#H(t)){break}if(e||!this.#R(t)){yield t}if(t===this.#D){break}else{t=this.#d[t]}}}}#H(e){return e!==undefined&&this.#f.get(this.#p[e])===e}*entries(){for(const e of this.#O()){if(this.#h[e]!==undefined&&this.#p[e]!==undefined&&!this.#_(this.#h[e])){yield[this.#p[e],this.#h[e]]}}}*rentries(){for(const e of this.#k()){if(this.#h[e]!==undefined&&this.#p[e]!==undefined&&!this.#_(this.#h[e])){yield[this.#p[e],this.#h[e]]}}}*keys(){for(const e of this.#O()){const t=this.#p[e];if(t!==undefined&&!this.#_(this.#h[e])){yield t}}}*rkeys(){for(const e of this.#k()){const t=this.#p[e];if(t!==undefined&&!this.#_(this.#h[e])){yield t}}}*values(){for(const e of this.#O()){const t=this.#h[e];if(t!==undefined&&!this.#_(this.#h[e])){yield this.#h[e]}}}*rvalues(){for(const e of this.#k()){const t=this.#h[e];if(t!==undefined&&!this.#_(this.#h[e])){yield this.#h[e]}}}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,t={}){for(const r of this.#O()){const n=this.#h[r];const s=this.#_(n)?n.__staleWhileFetching:n;if(s===undefined)continue;if(e(s,this.#p[r],this)){return this.get(this.#p[r],t)}}}forEach(e,t=this){for(const r of this.#O()){const n=this.#h[r];const s=this.#_(n)?n.__staleWhileFetching:n;if(s===undefined)continue;e.call(t,s,this.#p[r],this)}}rforEach(e,t=this){for(const r of this.#k()){const n=this.#h[r];const s=this.#_(n)?n.__staleWhileFetching:n;if(s===undefined)continue;e.call(t,s,this.#p[r],this)}}purgeStale(){let e=false;for(const t of this.#k({allowStale:true})){if(this.#R(t)){this.delete(this.#p[t]);e=true}}return e}info(e){const t=this.#f.get(e);if(t===undefined)return undefined;const n=this.#h[t];const s=this.#_(n)?n.__staleWhileFetching:n;if(s===undefined)return undefined;const i={value:s};if(this.#v&&this.#C){const e=this.#v[t];const n=this.#C[t];if(e&&n){const t=e-(r.now()-n);i.ttl=t;i.start=Date.now()}}if(this.#E){i.size=this.#E[t]}return i}dump(){const e=[];for(const t of this.#O({allowStale:true})){const n=this.#p[t];const s=this.#h[t];const i=this.#_(s)?s.__staleWhileFetching:s;if(i===undefined||n===undefined)continue;const o={value:i};if(this.#v&&this.#C){o.ttl=this.#v[t];const e=r.now()-this.#C[t];o.start=Math.floor(Date.now()-e)}if(this.#E){o.size=this.#E[t]}e.unshift([n,o])}return e}load(e){this.clear();for(const[t,n]of e){if(n.start){const e=Date.now()-n.start;n.start=r.now()-e}this.set(t,n.value,n)}}set(e,t,r={}){if(t===undefined){this.delete(e);return this}const{ttl:n=this.ttl,start:s,noDisposeOnSet:i=this.noDisposeOnSet,sizeCalculation:o=this.sizeCalculation,status:a}=r;let{noUpdateTTL:u=this.noUpdateTTL}=r;const l=this.#N(e,t,r.size||0,o);if(this.maxEntrySize&&l>this.maxEntrySize){if(a){a.set="miss";a.maxEntrySizeExceeded=true}this.delete(e);return this}let c=this.#l===0?undefined:this.#f.get(e);if(c===undefined){c=this.#l===0?this.#D:this.#y.length!==0?this.#y.pop():this.#l===this.#s?this.#j(false):this.#l;this.#p[c]=e;this.#h[c]=t;this.#f.set(e,c);this.#d[this.#D]=c;this.#g[c]=this.#D;this.#D=c;this.#l++;this.#M(c,l,a);if(a)a.set="add";u=false}else{this.#x(c);const r=this.#h[c];if(t!==r){if(this.#w&&this.#_(r)){r.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:t}=r;if(t!==undefined&&!i){if(this.#b){this.#o?.(t,e,"set")}if(this.#F){this.#A?.push([t,e,"set"])}}}else if(!i){if(this.#b){this.#o?.(r,e,"set")}if(this.#F){this.#A?.push([r,e,"set"])}}this.#T(c);this.#M(c,l,a);this.#h[c]=t;if(a){a.set="replace";const e=r&&this.#_(r)?r.__staleWhileFetching:r;if(e!==undefined)a.oldValue=e}}else if(a){a.set="update"}}if(n!==0&&!this.#v){this.#B()}if(this.#v){if(!u){this.#I(c,n,s)}if(a)this.#P(a,c)}if(!i&&this.#F&&this.#A){const e=this.#A;let t;while(t=e?.shift()){this.#a?.(...t)}}return this}pop(){try{while(this.#l){const e=this.#h[this.#m];this.#j(true);if(this.#_(e)){if(e.__staleWhileFetching){return e.__staleWhileFetching}}else if(e!==undefined){return e}}}finally{if(this.#F&&this.#A){const e=this.#A;let t;while(t=e?.shift()){this.#a?.(...t)}}}}#j(e){const t=this.#m;const r=this.#p[t];const n=this.#h[t];if(this.#w&&this.#_(n)){n.__abortController.abort(new Error("evicted"))}else if(this.#b||this.#F){if(this.#b){this.#o?.(n,r,"evict")}if(this.#F){this.#A?.push([n,r,"evict"])}}this.#T(t);if(e){this.#p[t]=undefined;this.#h[t]=undefined;this.#y.push(t)}if(this.#l===1){this.#m=this.#D=0;this.#y.length=0}else{this.#m=this.#d[t]}this.#f.delete(r);this.#l--;return t}has(e,t={}){const{updateAgeOnHas:r=this.updateAgeOnHas,status:n}=t;const s=this.#f.get(e);if(s!==undefined){const e=this.#h[s];if(this.#_(e)&&e.__staleWhileFetching===undefined){return false}if(!this.#R(s)){if(r){this.#L(s)}if(n){n.has="hit";this.#P(n,s)}return true}else if(n){n.has="stale";this.#P(n,s)}}else if(n){n.has="miss"}return false}peek(e,t={}){const{allowStale:r=this.allowStale}=t;const n=this.#f.get(e);if(n===undefined||!r&&this.#R(n)){return}const s=this.#h[n];return this.#_(s)?s.__staleWhileFetching:s}#S(e,t,r,n){const s=t===undefined?undefined:this.#h[t];if(this.#_(s)){return s}const o=new i;const{signal:a}=r;a?.addEventListener("abort",(()=>o.abort(a.reason)),{signal:o.signal});const u={signal:o.signal,options:r,context:n};const cb=(n,s=false)=>{const{aborted:i}=o.signal;const a=r.ignoreFetchAbort&&n!==undefined;if(r.status){if(i&&!s){r.status.fetchAborted=true;r.status.fetchError=o.signal.reason;if(a)r.status.fetchAbortIgnored=true}else{r.status.fetchResolved=true}}if(i&&!a&&!s){return fetchFail(o.signal.reason)}const c=l;if(this.#h[t]===l){if(n===undefined){if(c.__staleWhileFetching){this.#h[t]=c.__staleWhileFetching}else{this.delete(e)}}else{if(r.status)r.status.fetchUpdated=true;this.set(e,n,u.options)}}return n};const eb=e=>{if(r.status){r.status.fetchRejected=true;r.status.fetchError=e}return fetchFail(e)};const fetchFail=n=>{const{aborted:s}=o.signal;const i=s&&r.allowStaleOnFetchAbort;const a=i||r.allowStaleOnFetchRejection;const u=a||r.noDeleteOnFetchRejection;const c=l;if(this.#h[t]===l){const r=!u||c.__staleWhileFetching===undefined;if(r){this.delete(e)}else if(!i){this.#h[t]=c.__staleWhileFetching}}if(a){if(r.status&&c.__staleWhileFetching!==undefined){r.status.returnedStale=true}return c.__staleWhileFetching}else if(c.__returned===c){throw n}};const pcall=(t,n)=>{const i=this.#u?.(e,s,u);if(i&&i instanceof Promise){i.then((e=>t(e===undefined?undefined:e)),n)}o.signal.addEventListener("abort",(()=>{if(!r.ignoreFetchAbort||r.allowStaleOnFetchAbort){t(undefined);if(r.allowStaleOnFetchAbort){t=e=>cb(e,true)}}}))};if(r.status)r.status.fetchDispatched=true;const l=new Promise(pcall).then(cb,eb);const c=Object.assign(l,{__abortController:o,__staleWhileFetching:s,__returned:undefined});if(t===undefined){this.set(e,c,{...u.options,status:undefined});t=this.#f.get(e)}else{this.#h[t]=c}return c}#_(e){if(!this.#w)return false;const t=e;return!!t&&t instanceof Promise&&t.hasOwnProperty("__staleWhileFetching")&&t.__abortController instanceof i}async fetch(e,t={}){const{allowStale:r=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,ttl:i=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:a=0,sizeCalculation:u=this.sizeCalculation,noUpdateTTL:l=this.noUpdateTTL,noDeleteOnFetchRejection:c=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:f=this.allowStaleOnFetchRejection,ignoreFetchAbort:p=this.ignoreFetchAbort,allowStaleOnFetchAbort:h=this.allowStaleOnFetchAbort,context:d,forceRefresh:g=false,status:m,signal:D}=t;if(!this.#w){if(m)m.fetch="get";return this.get(e,{allowStale:r,updateAgeOnGet:n,noDeleteOnStaleGet:s,status:m})}const y={allowStale:r,updateAgeOnGet:n,noDeleteOnStaleGet:s,ttl:i,noDisposeOnSet:o,size:a,sizeCalculation:u,noUpdateTTL:l,noDeleteOnFetchRejection:c,allowStaleOnFetchRejection:f,allowStaleOnFetchAbort:h,ignoreFetchAbort:p,status:m,signal:D};let A=this.#f.get(e);if(A===undefined){if(m)m.fetch="miss";const t=this.#S(e,A,y,d);return t.__returned=t}else{const t=this.#h[A];if(this.#_(t)){const e=r&&t.__staleWhileFetching!==undefined;if(m){m.fetch="inflight";if(e)m.returnedStale=true}return e?t.__staleWhileFetching:t.__returned=t}const s=this.#R(A);if(!g&&!s){if(m)m.fetch="hit";this.#x(A);if(n){this.#L(A)}if(m)this.#P(m,A);return t}const i=this.#S(e,A,y,d);const o=i.__staleWhileFetching!==undefined;const a=o&&r;if(m){m.fetch=s?"stale":"refresh";if(a&&s)m.returnedStale=true}return a?i.__staleWhileFetching:i.__returned=i}}get(e,t={}){const{allowStale:r=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,status:i}=t;const o=this.#f.get(e);if(o!==undefined){const t=this.#h[o];const a=this.#_(t);if(i)this.#P(i,o);if(this.#R(o)){if(i)i.get="stale";if(!a){if(!s){this.delete(e)}if(i&&r)i.returnedStale=true;return r?t:undefined}else{if(i&&r&&t.__staleWhileFetching!==undefined){i.returnedStale=true}return r?t.__staleWhileFetching:undefined}}else{if(i)i.get="hit";if(a){return t.__staleWhileFetching}this.#x(o);if(n){this.#L(o)}return t}}else if(i){i.get="miss"}}#G(e,t){this.#g[t]=e;this.#d[e]=t}#x(e){if(e!==this.#D){if(e===this.#m){this.#m=this.#d[e]}else{this.#G(this.#g[e],this.#d[e])}this.#G(this.#D,e);this.#D=e}}delete(e){let t=false;if(this.#l!==0){const r=this.#f.get(e);if(r!==undefined){t=true;if(this.#l===1){this.clear()}else{this.#T(r);const t=this.#h[r];if(this.#_(t)){t.__abortController.abort(new Error("deleted"))}else if(this.#b||this.#F){if(this.#b){this.#o?.(t,e,"delete")}if(this.#F){this.#A?.push([t,e,"delete"])}}this.#f.delete(e);this.#p[r]=undefined;this.#h[r]=undefined;if(r===this.#D){this.#D=this.#g[r]}else if(r===this.#m){this.#m=this.#d[r]}else{const e=this.#g[r];this.#d[e]=this.#d[r];const t=this.#d[r];this.#g[t]=this.#g[r]}this.#l--;this.#y.push(r)}}}if(this.#F&&this.#A?.length){const e=this.#A;let t;while(t=e?.shift()){this.#a?.(...t)}}return t}clear(){for(const e of this.#k({allowStale:true})){const t=this.#h[e];if(this.#_(t)){t.__abortController.abort(new Error("deleted"))}else{const r=this.#p[e];if(this.#b){this.#o?.(t,r,"delete")}if(this.#F){this.#A?.push([t,r,"delete"])}}}this.#f.clear();this.#h.fill(undefined);this.#p.fill(undefined);if(this.#v&&this.#C){this.#v.fill(0);this.#C.fill(0)}if(this.#E){this.#E.fill(0)}this.#m=0;this.#D=0;this.#y.length=0;this.#c=0;this.#l=0;if(this.#F&&this.#A){const e=this.#A;let t;while(t=e?.shift()){this.#a?.(...t)}}}}t.LRUCache=LRUCache},4147:e=>{"use strict";e.exports=JSON.parse('{"name":"create-expo","version":"3.3.2","bin":"./build/index.js","main":"build","description":"Create universal Expo apps","license":"BSD-3-Clause","keywords":["expo","react-native","react"],"homepage":"https://docs.expo.dev","repository":{"type":"git","url":"https://github.com/expo/expo.git","directory":"packages/create-expo"},"author":"Evan Bacon <bacon@expo.io> (https://github.com/evanbacon)","files":["build","template"],"engines":{"node":">=18.13.0"},"scripts":{"build":"ncc build ./src/index.ts -o build/","build:prod":"ncc build ./src/index.ts -o build/ --minify --no-cache --no-source-map-register","prepare":"expo-module clean && yarn run build:prod","clean":"expo-module clean","lint":"expo-module lint","typecheck":"expo-module typecheck","test":"expo-module test","test:e2e":"expo-module test --config e2e/jest.config.js --runInBand","watch":"yarn run build --watch","prepublishOnly":"expo-module prepublishOnly"},"devDependencies":{"@expo/config":"~11.0.1","@expo/json-file":"^9.1.1","@expo/package-manager":"^1.8.1","@expo/spawn-async":"^1.7.2","@octokit/types":"^13.5.0","@types/debug":"^4.1.7","@types/getenv":"^1.0.0","@types/node":"^22.14.0","@types/picomatch":"^2.3.3","@types/prompts":"2.0.14","@vercel/ncc":"^0.38.1","arg":"^5.0.2","chalk":"^4.0.0","debug":"^4.3.4","expo-module-scripts":"^4.1.1","getenv":"^1.0.0","glob":"^10.4.2","nock":"^14.0.0-beta.7","ora":"3.4.0","picomatch":"^2.3.1","prompts":"^2.4.2","tar":"^7.4.3","update-check":"^1.5.4"},"gitHead":"1914bb35d23af23078da37e70988261844436505"}')}};var t={};function __nccwpck_require__(r){var n=t[r];if(n!==undefined){return n.exports}var s=t[r]={id:r,loaded:false,exports:{}};var i=true;try{e[r].call(s.exports,s,s.exports,__nccwpck_require__);i=false}finally{if(i)delete t[r]}s.loaded=true;return s.exports}__nccwpck_require__.m=e;(()=>{__nccwpck_require__.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;__nccwpck_require__.d(t,{a:t});return t}})();(()=>{var e=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;var t;__nccwpck_require__.t=function(r,n){if(n&1)r=this(r);if(n&8)return r;if(typeof r==="object"&&r){if(n&4&&r.__esModule)return r;if(n&16&&typeof r.then==="function")return r}var s=Object.create(null);__nccwpck_require__.r(s);var i={};t=t||[null,e({}),e([]),e(e)];for(var o=n&2&&r;typeof o=="object"&&!~t.indexOf(o);o=e(o)){Object.getOwnPropertyNames(o).forEach((e=>i[e]=()=>r[e]))}i["default"]=()=>r;__nccwpck_require__.d(s,i);return s}})();(()=>{__nccwpck_require__.d=(e,t)=>{for(var r in t){if(__nccwpck_require__.o(t,r)&&!__nccwpck_require__.o(e,r)){Object.defineProperty(e,r,{enumerable:true,get:t[r]})}}}})();(()=>{__nccwpck_require__.f={};__nccwpck_require__.e=e=>Promise.all(Object.keys(__nccwpck_require__.f).reduce(((t,r)=>{__nccwpck_require__.f[r](e,t);return t}),[]))})();(()=>{__nccwpck_require__.u=e=>""+e+".index.js"})();(()=>{__nccwpck_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})();(()=>{__nccwpck_require__.r=e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}})();(()=>{__nccwpck_require__.nmd=e=>{e.paths=[];if(!e.children)e.children=[];return e}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";(()=>{var e={179:1};var installChunk=t=>{var r=t.modules,n=t.ids,s=t.runtime;for(var i in r){if(__nccwpck_require__.o(r,i)){__nccwpck_require__.m[i]=r[i]}}if(s)s(__nccwpck_require__);for(var o=0;o<n.length;o++)e[n[o]]=1};__nccwpck_require__.f.require=(t,r)=>{if(!e[t]){if(true){installChunk(require("./"+__nccwpck_require__.u(t)))}else e[t]=1}}})();var r={};(()=>{"use strict";__nccwpck_require__.r(r);var e=__nccwpck_require__(7984);var t=__nccwpck_require__.n(e);var n=__nccwpck_require__(7945);var s=__nccwpck_require__.n(n);var i=__nccwpck_require__(9247);process.title=i.o;if((0,n.boolish)("EXPO_DEBUG",false)){t().enable("expo:init:*")}else if(t().enabled("expo:init:")){process.env.EXPO_DEBUG="1"}__nccwpck_require__(3936)})();module.exports=r})();
|