@umijs/utils 4.0.0-rc.9 → 4.0.0

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.
@@ -1 +1 @@
1
- (function(){var t={928:function(t,n,e){const r=e(91);const o={};for(const t of Object.keys(r)){o[r[t]]=t}const s={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=s;for(const t of Object.keys(s)){if(!("channels"in s[t])){throw new Error("missing channels property: "+t)}if(!("labels"in s[t])){throw new Error("missing channel labels property: "+t)}if(s[t].labels.length!==s[t].channels){throw new Error("channel and label counts mismatch: "+t)}const{channels:n,labels:e}=s[t];delete s[t].channels;delete s[t].labels;Object.defineProperty(s[t],"channels",{value:n});Object.defineProperty(s[t],"labels",{value:e})}s.rgb.hsl=function(t){const n=t[0]/255;const e=t[1]/255;const r=t[2]/255;const o=Math.min(n,e,r);const s=Math.max(n,e,r);const a=s-o;let l;let c;if(s===o){l=0}else if(n===s){l=(e-r)/a}else if(e===s){l=2+(r-n)/a}else if(r===s){l=4+(n-e)/a}l=Math.min(l*60,360);if(l<0){l+=360}const i=(o+s)/2;if(s===o){c=0}else if(i<=.5){c=a/(s+o)}else{c=a/(2-s-o)}return[l,c*100,i*100]};s.rgb.hsv=function(t){let n;let e;let r;let o;let s;const a=t[0]/255;const l=t[1]/255;const c=t[2]/255;const i=Math.max(a,l,c);const h=i-Math.min(a,l,c);const diffc=function(t){return(i-t)/6/h+1/2};if(h===0){o=0;s=0}else{s=h/i;n=diffc(a);e=diffc(l);r=diffc(c);if(a===i){o=r-e}else if(l===i){o=1/3+n-r}else if(c===i){o=2/3+e-n}if(o<0){o+=1}else if(o>1){o-=1}}return[o*360,s*100,i*100]};s.rgb.hwb=function(t){const n=t[0];const e=t[1];let r=t[2];const o=s.rgb.hsl(t)[0];const a=1/255*Math.min(n,Math.min(e,r));r=1-1/255*Math.max(n,Math.max(e,r));return[o,a*100,r*100]};s.rgb.cmyk=function(t){const n=t[0]/255;const e=t[1]/255;const r=t[2]/255;const o=Math.min(1-n,1-e,1-r);const s=(1-n-o)/(1-o)||0;const a=(1-e-o)/(1-o)||0;const l=(1-r-o)/(1-o)||0;return[s*100,a*100,l*100,o*100]};function comparativeDistance(t,n){return(t[0]-n[0])**2+(t[1]-n[1])**2+(t[2]-n[2])**2}s.rgb.keyword=function(t){const n=o[t];if(n){return n}let e=Infinity;let s;for(const n of Object.keys(r)){const o=r[n];const a=comparativeDistance(t,o);if(a<e){e=a;s=n}}return s};s.keyword.rgb=function(t){return r[t]};s.rgb.xyz=function(t){let n=t[0]/255;let e=t[1]/255;let r=t[2]/255;n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92;r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const o=n*.4124+e*.3576+r*.1805;const s=n*.2126+e*.7152+r*.0722;const a=n*.0193+e*.1192+r*.9505;return[o*100,s*100,a*100]};s.rgb.lab=function(t){const n=s.rgb.xyz(t);let e=n[0];let r=n[1];let o=n[2];e/=95.047;r/=100;o/=108.883;e=e>.008856?e**(1/3):7.787*e+16/116;r=r>.008856?r**(1/3):7.787*r+16/116;o=o>.008856?o**(1/3):7.787*o+16/116;const a=116*r-16;const l=500*(e-r);const c=200*(r-o);return[a,l,c]};s.hsl.rgb=function(t){const n=t[0]/360;const e=t[1]/100;const r=t[2]/100;let o;let s;let a;if(e===0){a=r*255;return[a,a,a]}if(r<.5){o=r*(1+e)}else{o=r+e-r*e}const l=2*r-o;const c=[0,0,0];for(let t=0;t<3;t++){s=n+1/3*-(t-1);if(s<0){s++}if(s>1){s--}if(6*s<1){a=l+(o-l)*6*s}else if(2*s<1){a=o}else if(3*s<2){a=l+(o-l)*(2/3-s)*6}else{a=l}c[t]=a*255}return c};s.hsl.hsv=function(t){const n=t[0];let e=t[1]/100;let r=t[2]/100;let o=e;const s=Math.max(r,.01);r*=2;e*=r<=1?r:2-r;o*=s<=1?s:2-s;const a=(r+e)/2;const l=r===0?2*o/(s+o):2*e/(r+e);return[n,l*100,a*100]};s.hsv.rgb=function(t){const n=t[0]/60;const e=t[1]/100;let r=t[2]/100;const o=Math.floor(n)%6;const s=n-Math.floor(n);const a=255*r*(1-e);const l=255*r*(1-e*s);const c=255*r*(1-e*(1-s));r*=255;switch(o){case 0:return[r,c,a];case 1:return[l,r,a];case 2:return[a,r,c];case 3:return[a,l,r];case 4:return[c,a,r];case 5:return[r,a,l]}};s.hsv.hsl=function(t){const n=t[0];const e=t[1]/100;const r=t[2]/100;const o=Math.max(r,.01);let s;let a;a=(2-e)*r;const l=(2-e)*o;s=e*o;s/=l<=1?l:2-l;s=s||0;a/=2;return[n,s*100,a*100]};s.hwb.rgb=function(t){const n=t[0]/360;let e=t[1]/100;let r=t[2]/100;const o=e+r;let s;if(o>1){e/=o;r/=o}const a=Math.floor(6*n);const l=1-r;s=6*n-a;if((a&1)!==0){s=1-s}const c=e+s*(l-e);let i;let h;let u;switch(a){default:case 6:case 0:i=l;h=c;u=e;break;case 1:i=c;h=l;u=e;break;case 2:i=e;h=l;u=c;break;case 3:i=e;h=c;u=l;break;case 4:i=c;h=e;u=l;break;case 5:i=l;h=e;u=c;break}return[i*255,h*255,u*255]};s.cmyk.rgb=function(t){const n=t[0]/100;const e=t[1]/100;const r=t[2]/100;const o=t[3]/100;const s=1-Math.min(1,n*(1-o)+o);const a=1-Math.min(1,e*(1-o)+o);const l=1-Math.min(1,r*(1-o)+o);return[s*255,a*255,l*255]};s.xyz.rgb=function(t){const n=t[0]/100;const e=t[1]/100;const r=t[2]/100;let o;let s;let a;o=n*3.2406+e*-1.5372+r*-.4986;s=n*-.9689+e*1.8758+r*.0415;a=n*.0557+e*-.204+r*1.057;o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92;s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92;a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92;o=Math.min(Math.max(0,o),1);s=Math.min(Math.max(0,s),1);a=Math.min(Math.max(0,a),1);return[o*255,s*255,a*255]};s.xyz.lab=function(t){let n=t[0];let e=t[1];let r=t[2];n/=95.047;e/=100;r/=108.883;n=n>.008856?n**(1/3):7.787*n+16/116;e=e>.008856?e**(1/3):7.787*e+16/116;r=r>.008856?r**(1/3):7.787*r+16/116;const o=116*e-16;const s=500*(n-e);const a=200*(e-r);return[o,s,a]};s.lab.xyz=function(t){const n=t[0];const e=t[1];const r=t[2];let o;let s;let a;s=(n+16)/116;o=e/500+s;a=s-r/200;const l=s**3;const c=o**3;const i=a**3;s=l>.008856?l:(s-16/116)/7.787;o=c>.008856?c:(o-16/116)/7.787;a=i>.008856?i:(a-16/116)/7.787;o*=95.047;s*=100;a*=108.883;return[o,s,a]};s.lab.lch=function(t){const n=t[0];const e=t[1];const r=t[2];let o;const s=Math.atan2(r,e);o=s*360/2/Math.PI;if(o<0){o+=360}const a=Math.sqrt(e*e+r*r);return[n,a,o]};s.lch.lab=function(t){const n=t[0];const e=t[1];const r=t[2];const o=r/360*2*Math.PI;const s=e*Math.cos(o);const a=e*Math.sin(o);return[n,s,a]};s.rgb.ansi16=function(t,n=null){const[e,r,o]=t;let a=n===null?s.rgb.hsv(t)[2]:n;a=Math.round(a/50);if(a===0){return 30}let l=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(e/255));if(a===2){l+=60}return l};s.hsv.ansi16=function(t){return s.rgb.ansi16(s.hsv.rgb(t),t[2])};s.rgb.ansi256=function(t){const n=t[0];const e=t[1];const r=t[2];if(n===e&&e===r){if(n<8){return 16}if(n>248){return 231}return Math.round((n-8)/247*24)+232}const o=16+36*Math.round(n/255*5)+6*Math.round(e/255*5)+Math.round(r/255*5);return o};s.ansi16.rgb=function(t){let n=t%10;if(n===0||n===7){if(t>50){n+=3.5}n=n/10.5*255;return[n,n,n]}const e=(~~(t>50)+1)*.5;const r=(n&1)*e*255;const o=(n>>1&1)*e*255;const s=(n>>2&1)*e*255;return[r,o,s]};s.ansi256.rgb=function(t){if(t>=232){const n=(t-232)*10+8;return[n,n,n]}t-=16;let n;const e=Math.floor(t/36)/5*255;const r=Math.floor((n=t%36)/6)/5*255;const o=n%6/5*255;return[e,r,o]};s.rgb.hex=function(t){const n=((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255);const e=n.toString(16).toUpperCase();return"000000".substring(e.length)+e};s.hex.rgb=function(t){const n=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!n){return[0,0,0]}let e=n[0];if(n[0].length===3){e=e.split("").map((t=>t+t)).join("")}const r=parseInt(e,16);const o=r>>16&255;const s=r>>8&255;const a=r&255;return[o,s,a]};s.rgb.hcg=function(t){const n=t[0]/255;const e=t[1]/255;const r=t[2]/255;const o=Math.max(Math.max(n,e),r);const s=Math.min(Math.min(n,e),r);const a=o-s;let l;let c;if(a<1){l=s/(1-a)}else{l=0}if(a<=0){c=0}else if(o===n){c=(e-r)/a%6}else if(o===e){c=2+(r-n)/a}else{c=4+(n-e)/a}c/=6;c%=1;return[c*360,a*100,l*100]};s.hsl.hcg=function(t){const n=t[1]/100;const e=t[2]/100;const r=e<.5?2*n*e:2*n*(1-e);let o=0;if(r<1){o=(e-.5*r)/(1-r)}return[t[0],r*100,o*100]};s.hsv.hcg=function(t){const n=t[1]/100;const e=t[2]/100;const r=n*e;let o=0;if(r<1){o=(e-r)/(1-r)}return[t[0],r*100,o*100]};s.hcg.rgb=function(t){const n=t[0]/360;const e=t[1]/100;const r=t[2]/100;if(e===0){return[r*255,r*255,r*255]}const o=[0,0,0];const s=n%1*6;const a=s%1;const l=1-a;let c=0;switch(Math.floor(s)){case 0:o[0]=1;o[1]=a;o[2]=0;break;case 1:o[0]=l;o[1]=1;o[2]=0;break;case 2:o[0]=0;o[1]=1;o[2]=a;break;case 3:o[0]=0;o[1]=l;o[2]=1;break;case 4:o[0]=a;o[1]=0;o[2]=1;break;default:o[0]=1;o[1]=0;o[2]=l}c=(1-e)*r;return[(e*o[0]+c)*255,(e*o[1]+c)*255,(e*o[2]+c)*255]};s.hcg.hsv=function(t){const n=t[1]/100;const e=t[2]/100;const r=n+e*(1-n);let o=0;if(r>0){o=n/r}return[t[0],o*100,r*100]};s.hcg.hsl=function(t){const n=t[1]/100;const e=t[2]/100;const r=e*(1-n)+.5*n;let o=0;if(r>0&&r<.5){o=n/(2*r)}else if(r>=.5&&r<1){o=n/(2*(1-r))}return[t[0],o*100,r*100]};s.hcg.hwb=function(t){const n=t[1]/100;const e=t[2]/100;const r=n+e*(1-n);return[t[0],(r-n)*100,(1-r)*100]};s.hwb.hcg=function(t){const n=t[1]/100;const e=t[2]/100;const r=1-e;const o=r-n;let s=0;if(o<1){s=(r-o)/(1-o)}return[t[0],o*100,s*100]};s.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};s.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};s.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};s.gray.hsl=function(t){return[0,0,t[0]]};s.gray.hsv=s.gray.hsl;s.gray.hwb=function(t){return[0,100,t[0]]};s.gray.cmyk=function(t){return[0,0,0,t[0]]};s.gray.lab=function(t){return[t[0],0,0]};s.gray.hex=function(t){const n=Math.round(t[0]/100*255)&255;const e=(n<<16)+(n<<8)+n;const r=e.toString(16).toUpperCase();return"000000".substring(r.length)+r};s.rgb.gray=function(t){const n=(t[0]+t[1]+t[2])/3;return[n/255*100]}},501:function(t,n,e){const r=e(928);const o=e(914);const s={};const a=Object.keys(r);function wrapRaw(t){const wrappedFn=function(...n){const e=n[0];if(e===undefined||e===null){return e}if(e.length>1){n=e}return t(n)};if("conversion"in t){wrappedFn.conversion=t.conversion}return wrappedFn}function wrapRounded(t){const wrappedFn=function(...n){const e=n[0];if(e===undefined||e===null){return e}if(e.length>1){n=e}const r=t(n);if(typeof r==="object"){for(let t=r.length,n=0;n<t;n++){r[n]=Math.round(r[n])}}return r};if("conversion"in t){wrappedFn.conversion=t.conversion}return wrappedFn}a.forEach((t=>{s[t]={};Object.defineProperty(s[t],"channels",{value:r[t].channels});Object.defineProperty(s[t],"labels",{value:r[t].labels});const n=o(t);const e=Object.keys(n);e.forEach((e=>{const r=n[e];s[t][e]=wrapRounded(r);s[t][e].raw=wrapRaw(r)}))}));t.exports=s},914:function(t,n,e){const r=e(928);function buildGraph(){const t={};const n=Object.keys(r);for(let e=n.length,r=0;r<e;r++){t[n[r]]={distance:-1,parent:null}}return t}function deriveBFS(t){const n=buildGraph();const e=[t];n[t].distance=0;while(e.length){const t=e.pop();const o=Object.keys(r[t]);for(let r=o.length,s=0;s<r;s++){const r=o[s];const a=n[r];if(a.distance===-1){a.distance=n[t].distance+1;a.parent=t;e.unshift(r)}}}return n}function link(t,n){return function(e){return n(t(e))}}function wrapConversion(t,n){const e=[n[t].parent,t];let o=r[n[t].parent][t];let s=n[t].parent;while(n[s].parent){e.unshift(n[s].parent);o=link(r[n[s].parent][s],o);s=n[s].parent}o.conversion=e;return o}t.exports=function(t){const n=deriveBFS(t);const e={};const r=Object.keys(n);for(let t=r.length,o=0;o<t;o++){const t=r[o];const s=n[t];if(s.parent===null){continue}e[t]=wrapConversion(t,n)}return e}},91:function(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]}},531:function(t,n,e){var r=e(91);var o=e(690);var s=Object.hasOwnProperty;var a={};for(var l in r){if(s.call(r,l)){a[r[l]]=l}}var c=t.exports={to:{},get:{}};c.get=function(t){var n=t.substring(0,3).toLowerCase();var e;var r;switch(n){case"hsl":e=c.get.hsl(t);r="hsl";break;case"hwb":e=c.get.hwb(t);r="hwb";break;default:e=c.get.rgb(t);r="rgb";break}if(!e){return null}return{model:r,value:e}};c.get.rgb=function(t){if(!t){return null}var n=/^#([a-f0-9]{3,4})$/i;var e=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i;var o=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/;var a=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/;var l=/^(\w+)$/;var c=[0,0,0,1];var i;var h;var u;if(i=t.match(e)){u=i[2];i=i[1];for(h=0;h<3;h++){var f=h*2;c[h]=parseInt(i.slice(f,f+2),16)}if(u){c[3]=parseInt(u,16)/255}}else if(i=t.match(n)){i=i[1];u=i[3];for(h=0;h<3;h++){c[h]=parseInt(i[h]+i[h],16)}if(u){c[3]=parseInt(u+u,16)/255}}else if(i=t.match(o)){for(h=0;h<3;h++){c[h]=parseInt(i[h+1],0)}if(i[4]){if(i[5]){c[3]=parseFloat(i[4])*.01}else{c[3]=parseFloat(i[4])}}}else if(i=t.match(a)){for(h=0;h<3;h++){c[h]=Math.round(parseFloat(i[h+1])*2.55)}if(i[4]){if(i[5]){c[3]=parseFloat(i[4])*.01}else{c[3]=parseFloat(i[4])}}}else if(i=t.match(l)){if(i[1]==="transparent"){return[0,0,0,0]}if(!s.call(r,i[1])){return null}c=r[i[1]];c[3]=1;return c}else{return null}for(h=0;h<3;h++){c[h]=clamp(c[h],0,255)}c[3]=clamp(c[3],0,1);return c};c.get.hsl=function(t){if(!t){return null}var n=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/;var e=t.match(n);if(e){var r=parseFloat(e[4]);var o=(parseFloat(e[1])%360+360)%360;var s=clamp(parseFloat(e[2]),0,100);var a=clamp(parseFloat(e[3]),0,100);var l=clamp(isNaN(r)?1:r,0,1);return[o,s,a,l]}return null};c.get.hwb=function(t){if(!t){return null}var n=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/;var e=t.match(n);if(e){var r=parseFloat(e[4]);var o=(parseFloat(e[1])%360+360)%360;var s=clamp(parseFloat(e[2]),0,100);var a=clamp(parseFloat(e[3]),0,100);var l=clamp(isNaN(r)?1:r,0,1);return[o,s,a,l]}return null};c.to.hex=function(){var t=o(arguments);return"#"+hexDouble(t[0])+hexDouble(t[1])+hexDouble(t[2])+(t[3]<1?hexDouble(Math.round(t[3]*255)):"")};c.to.rgb=function(){var t=o(arguments);return t.length<4||t[3]===1?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"};c.to.rgb.percent=function(){var t=o(arguments);var n=Math.round(t[0]/255*100);var e=Math.round(t[1]/255*100);var r=Math.round(t[2]/255*100);return t.length<4||t[3]===1?"rgb("+n+"%, "+e+"%, "+r+"%)":"rgba("+n+"%, "+e+"%, "+r+"%, "+t[3]+")"};c.to.hsl=function(){var t=o(arguments);return t.length<4||t[3]===1?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"};c.to.hwb=function(){var t=o(arguments);var n="";if(t.length>=4&&t[3]!==1){n=", "+t[3]}return"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+n+")"};c.to.keyword=function(t){return a[t.slice(0,3)]};function clamp(t,n,e){return Math.min(Math.max(n,t),e)}function hexDouble(t){var n=Math.round(t).toString(16).toUpperCase();return n.length<2?"0"+n:n}},116:function(t,n,e){const r=e(531);const o=e(501);const s=[].slice;const a=["keyword","gray","hex"];const l={};for(const t of Object.keys(o)){l[s.call(o[t].labels).sort().join("")]=t}const c={};function Color(t,n){if(!(this instanceof Color)){return new Color(t,n)}if(n&&n in a){n=null}if(n&&!(n in o)){throw new Error("Unknown model: "+n)}let e;let i;if(t==null){this.model="rgb";this.color=[0,0,0];this.valpha=1}else if(t instanceof Color){this.model=t.model;this.color=t.color.slice();this.valpha=t.valpha}else if(typeof t==="string"){const n=r.get(t);if(n===null){throw new Error("Unable to parse color from string: "+t)}this.model=n.model;i=o[this.model].channels;this.color=n.value.slice(0,i);this.valpha=typeof n.value[i]==="number"?n.value[i]:1}else if(t.length>0){this.model=n||"rgb";i=o[this.model].channels;const e=s.call(t,0,i);this.color=zeroArray(e,i);this.valpha=typeof t[i]==="number"?t[i]:1}else if(typeof t==="number"){this.model="rgb";this.color=[t>>16&255,t>>8&255,t&255];this.valpha=1}else{this.valpha=1;const n=Object.keys(t);if("alpha"in t){n.splice(n.indexOf("alpha"),1);this.valpha=typeof t.alpha==="number"?t.alpha:0}const r=n.sort().join("");if(!(r in l)){throw new Error("Unable to parse color from object: "+JSON.stringify(t))}this.model=l[r];const s=o[this.model].labels;const a=[];for(e=0;e<s.length;e++){a.push(t[s[e]])}this.color=zeroArray(a)}if(c[this.model]){i=o[this.model].channels;for(e=0;e<i;e++){const t=c[this.model][e];if(t){this.color[e]=t(this.color[e])}}}this.valpha=Math.max(0,Math.min(1,this.valpha));if(Object.freeze){Object.freeze(this)}}Color.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(t){let n=this.model in r.to?this:this.rgb();n=n.round(typeof t==="number"?t:1);const e=n.valpha===1?n.color:n.color.concat(this.valpha);return r.to[n.model](e)},percentString(t){const n=this.rgb().round(typeof t==="number"?t:1);const e=n.valpha===1?n.color:n.color.concat(this.valpha);return r.to.rgb.percent(e)},array(){return this.valpha===1?this.color.slice():this.color.concat(this.valpha)},object(){const t={};const n=o[this.model].channels;const e=o[this.model].labels;for(let r=0;r<n;r++){t[e[r]]=this.color[r]}if(this.valpha!==1){t.alpha=this.valpha}return t},unitArray(){const t=this.rgb().color;t[0]/=255;t[1]/=255;t[2]/=255;if(this.valpha!==1){t.push(this.valpha)}return t},unitObject(){const t=this.rgb().object();t.r/=255;t.g/=255;t.b/=255;if(this.valpha!==1){t.alpha=this.valpha}return t},round(t){t=Math.max(t||0,0);return new Color(this.color.map(roundToPlace(t)).concat(this.valpha),this.model)},alpha(t){if(arguments.length>0){return new Color(this.color.concat(Math.max(0,Math.min(1,t))),this.model)}return this.valpha},red:getset("rgb",0,maxfn(255)),green:getset("rgb",1,maxfn(255)),blue:getset("rgb",2,maxfn(255)),hue:getset(["hsl","hsv","hsl","hwb","hcg"],0,(t=>(t%360+360)%360)),saturationl:getset("hsl",1,maxfn(100)),lightness:getset("hsl",2,maxfn(100)),saturationv:getset("hsv",1,maxfn(100)),value:getset("hsv",2,maxfn(100)),chroma:getset("hcg",1,maxfn(100)),gray:getset("hcg",2,maxfn(100)),white:getset("hwb",1,maxfn(100)),wblack:getset("hwb",2,maxfn(100)),cyan:getset("cmyk",0,maxfn(100)),magenta:getset("cmyk",1,maxfn(100)),yellow:getset("cmyk",2,maxfn(100)),black:getset("cmyk",3,maxfn(100)),x:getset("xyz",0,maxfn(100)),y:getset("xyz",1,maxfn(100)),z:getset("xyz",2,maxfn(100)),l:getset("lab",0,maxfn(100)),a:getset("lab",1),b:getset("lab",2),keyword(t){if(arguments.length>0){return new Color(t)}return o[this.model].keyword(this.color)},hex(t){if(arguments.length>0){return new Color(t)}return r.to.hex(this.rgb().round().color)},hexa(t){if(arguments.length>0){return new Color(t)}const n=this.rgb().round().color;let e=Math.round(this.valpha*255).toString(16).toUpperCase();if(e.length===1){e="0"+e}return r.to.hex(n)+e},rgbNumber(){const t=this.rgb().color;return(t[0]&255)<<16|(t[1]&255)<<8|t[2]&255},luminosity(){const t=this.rgb().color;const n=[];for(const[e,r]of t.entries()){const t=r/255;n[e]=t<=.03928?t/12.92:((t+.055)/1.055)**2.4}return.2126*n[0]+.7152*n[1]+.0722*n[2]},contrast(t){const n=this.luminosity();const e=t.luminosity();if(n>e){return(n+.05)/(e+.05)}return(e+.05)/(n+.05)},level(t){const n=this.contrast(t);if(n>=7.1){return"AAA"}return n>=4.5?"AA":""},isDark(){const t=this.rgb().color;const n=(t[0]*299+t[1]*587+t[2]*114)/1e3;return n<128},isLight(){return!this.isDark()},negate(){const t=this.rgb();for(let n=0;n<3;n++){t.color[n]=255-t.color[n]}return t},lighten(t){const n=this.hsl();n.color[2]+=n.color[2]*t;return n},darken(t){const n=this.hsl();n.color[2]-=n.color[2]*t;return n},saturate(t){const n=this.hsl();n.color[1]+=n.color[1]*t;return n},desaturate(t){const n=this.hsl();n.color[1]-=n.color[1]*t;return n},whiten(t){const n=this.hwb();n.color[1]+=n.color[1]*t;return n},blacken(t){const n=this.hwb();n.color[2]+=n.color[2]*t;return n},grayscale(){const t=this.rgb().color;const n=t[0]*.3+t[1]*.59+t[2]*.11;return Color.rgb(n,n,n)},fade(t){return this.alpha(this.valpha-this.valpha*t)},opaquer(t){return this.alpha(this.valpha+this.valpha*t)},rotate(t){const n=this.hsl();let e=n.color[0];e=(e+t)%360;e=e<0?360+e:e;n.color[0]=e;return n},mix(t,n){if(!t||!t.rgb){throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t)}const e=t.rgb();const r=this.rgb();const o=n===undefined?.5:n;const s=2*o-1;const a=e.alpha()-r.alpha();const l=((s*a===-1?s:(s+a)/(1+s*a))+1)/2;const c=1-l;return Color.rgb(l*e.red()+c*r.red(),l*e.green()+c*r.green(),l*e.blue()+c*r.blue(),e.alpha()*o+r.alpha()*(1-o))}};for(const t of Object.keys(o)){if(a.includes(t)){continue}const n=o[t].channels;Color.prototype[t]=function(){if(this.model===t){return new Color(this)}if(arguments.length>0){return new Color(arguments,t)}const e=typeof arguments[n]==="number"?n:this.valpha;return new Color(assertArray(o[this.model][t].raw(this.color)).concat(e),t)};Color[t]=function(e){if(typeof e==="number"){e=zeroArray(s.call(arguments),n)}return new Color(e,t)}}function roundTo(t,n){return Number(t.toFixed(n))}function roundToPlace(t){return function(n){return roundTo(n,t)}}function getset(t,n,e){t=Array.isArray(t)?t:[t];for(const r of t){(c[r]||(c[r]=[]))[n]=e}t=t[0];return function(r){let o;if(arguments.length>0){if(e){r=e(r)}o=this[t]();o.color[n]=r;return o}o=this[t]().color[n];if(e){o=e(o)}return o}}function maxfn(t){return function(n){return Math.max(0,Math.min(t,n))}}function assertArray(t){return Array.isArray(t)?t:[t]}function zeroArray(t,n){for(let e=0;e<n;e++){if(typeof t[e]!=="number"){t[e]=0}}return t}t.exports=Color},833:function(t){t.exports=function isArrayish(t){if(!t||typeof t==="string"){return false}return t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&t.constructor.name!=="String")}},690:function(t,n,e){"use strict";var r=e(833);var o=Array.prototype.concat;var s=Array.prototype.slice;var a=t.exports=function swizzle(t){var n=[];for(var e=0,a=t.length;e<a;e++){var l=t[e];if(r(l)){n=o.call(n,s.call(l))}else{n.push(l)}}return n};a.wrap=function(t){return function(){return t(a(arguments))}}}};var n={};function __nccwpck_require__(e){var r=n[e];if(r!==undefined){return r.exports}var o=n[e]={exports:{}};var s=true;try{t[e](o,o.exports,__nccwpck_require__);s=false}finally{if(s)delete n[e]}return o.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var e=__nccwpck_require__(116);module.exports=e})();
1
+ (function(){var t={226:function(t,n,e){const r=e(866);const o={};for(const t of Object.keys(r)){o[r[t]]=t}const s={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=s;for(const t of Object.keys(s)){if(!("channels"in s[t])){throw new Error("missing channels property: "+t)}if(!("labels"in s[t])){throw new Error("missing channel labels property: "+t)}if(s[t].labels.length!==s[t].channels){throw new Error("channel and label counts mismatch: "+t)}const{channels:n,labels:e}=s[t];delete s[t].channels;delete s[t].labels;Object.defineProperty(s[t],"channels",{value:n});Object.defineProperty(s[t],"labels",{value:e})}s.rgb.hsl=function(t){const n=t[0]/255;const e=t[1]/255;const r=t[2]/255;const o=Math.min(n,e,r);const s=Math.max(n,e,r);const a=s-o;let l;let c;if(s===o){l=0}else if(n===s){l=(e-r)/a}else if(e===s){l=2+(r-n)/a}else if(r===s){l=4+(n-e)/a}l=Math.min(l*60,360);if(l<0){l+=360}const i=(o+s)/2;if(s===o){c=0}else if(i<=.5){c=a/(s+o)}else{c=a/(2-s-o)}return[l,c*100,i*100]};s.rgb.hsv=function(t){let n;let e;let r;let o;let s;const a=t[0]/255;const l=t[1]/255;const c=t[2]/255;const i=Math.max(a,l,c);const h=i-Math.min(a,l,c);const diffc=function(t){return(i-t)/6/h+1/2};if(h===0){o=0;s=0}else{s=h/i;n=diffc(a);e=diffc(l);r=diffc(c);if(a===i){o=r-e}else if(l===i){o=1/3+n-r}else if(c===i){o=2/3+e-n}if(o<0){o+=1}else if(o>1){o-=1}}return[o*360,s*100,i*100]};s.rgb.hwb=function(t){const n=t[0];const e=t[1];let r=t[2];const o=s.rgb.hsl(t)[0];const a=1/255*Math.min(n,Math.min(e,r));r=1-1/255*Math.max(n,Math.max(e,r));return[o,a*100,r*100]};s.rgb.cmyk=function(t){const n=t[0]/255;const e=t[1]/255;const r=t[2]/255;const o=Math.min(1-n,1-e,1-r);const s=(1-n-o)/(1-o)||0;const a=(1-e-o)/(1-o)||0;const l=(1-r-o)/(1-o)||0;return[s*100,a*100,l*100,o*100]};function comparativeDistance(t,n){return(t[0]-n[0])**2+(t[1]-n[1])**2+(t[2]-n[2])**2}s.rgb.keyword=function(t){const n=o[t];if(n){return n}let e=Infinity;let s;for(const n of Object.keys(r)){const o=r[n];const a=comparativeDistance(t,o);if(a<e){e=a;s=n}}return s};s.keyword.rgb=function(t){return r[t]};s.rgb.xyz=function(t){let n=t[0]/255;let e=t[1]/255;let r=t[2]/255;n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92;r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const o=n*.4124+e*.3576+r*.1805;const s=n*.2126+e*.7152+r*.0722;const a=n*.0193+e*.1192+r*.9505;return[o*100,s*100,a*100]};s.rgb.lab=function(t){const n=s.rgb.xyz(t);let e=n[0];let r=n[1];let o=n[2];e/=95.047;r/=100;o/=108.883;e=e>.008856?e**(1/3):7.787*e+16/116;r=r>.008856?r**(1/3):7.787*r+16/116;o=o>.008856?o**(1/3):7.787*o+16/116;const a=116*r-16;const l=500*(e-r);const c=200*(r-o);return[a,l,c]};s.hsl.rgb=function(t){const n=t[0]/360;const e=t[1]/100;const r=t[2]/100;let o;let s;let a;if(e===0){a=r*255;return[a,a,a]}if(r<.5){o=r*(1+e)}else{o=r+e-r*e}const l=2*r-o;const c=[0,0,0];for(let t=0;t<3;t++){s=n+1/3*-(t-1);if(s<0){s++}if(s>1){s--}if(6*s<1){a=l+(o-l)*6*s}else if(2*s<1){a=o}else if(3*s<2){a=l+(o-l)*(2/3-s)*6}else{a=l}c[t]=a*255}return c};s.hsl.hsv=function(t){const n=t[0];let e=t[1]/100;let r=t[2]/100;let o=e;const s=Math.max(r,.01);r*=2;e*=r<=1?r:2-r;o*=s<=1?s:2-s;const a=(r+e)/2;const l=r===0?2*o/(s+o):2*e/(r+e);return[n,l*100,a*100]};s.hsv.rgb=function(t){const n=t[0]/60;const e=t[1]/100;let r=t[2]/100;const o=Math.floor(n)%6;const s=n-Math.floor(n);const a=255*r*(1-e);const l=255*r*(1-e*s);const c=255*r*(1-e*(1-s));r*=255;switch(o){case 0:return[r,c,a];case 1:return[l,r,a];case 2:return[a,r,c];case 3:return[a,l,r];case 4:return[c,a,r];case 5:return[r,a,l]}};s.hsv.hsl=function(t){const n=t[0];const e=t[1]/100;const r=t[2]/100;const o=Math.max(r,.01);let s;let a;a=(2-e)*r;const l=(2-e)*o;s=e*o;s/=l<=1?l:2-l;s=s||0;a/=2;return[n,s*100,a*100]};s.hwb.rgb=function(t){const n=t[0]/360;let e=t[1]/100;let r=t[2]/100;const o=e+r;let s;if(o>1){e/=o;r/=o}const a=Math.floor(6*n);const l=1-r;s=6*n-a;if((a&1)!==0){s=1-s}const c=e+s*(l-e);let i;let h;let u;switch(a){default:case 6:case 0:i=l;h=c;u=e;break;case 1:i=c;h=l;u=e;break;case 2:i=e;h=l;u=c;break;case 3:i=e;h=c;u=l;break;case 4:i=c;h=e;u=l;break;case 5:i=l;h=e;u=c;break}return[i*255,h*255,u*255]};s.cmyk.rgb=function(t){const n=t[0]/100;const e=t[1]/100;const r=t[2]/100;const o=t[3]/100;const s=1-Math.min(1,n*(1-o)+o);const a=1-Math.min(1,e*(1-o)+o);const l=1-Math.min(1,r*(1-o)+o);return[s*255,a*255,l*255]};s.xyz.rgb=function(t){const n=t[0]/100;const e=t[1]/100;const r=t[2]/100;let o;let s;let a;o=n*3.2406+e*-1.5372+r*-.4986;s=n*-.9689+e*1.8758+r*.0415;a=n*.0557+e*-.204+r*1.057;o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92;s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92;a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92;o=Math.min(Math.max(0,o),1);s=Math.min(Math.max(0,s),1);a=Math.min(Math.max(0,a),1);return[o*255,s*255,a*255]};s.xyz.lab=function(t){let n=t[0];let e=t[1];let r=t[2];n/=95.047;e/=100;r/=108.883;n=n>.008856?n**(1/3):7.787*n+16/116;e=e>.008856?e**(1/3):7.787*e+16/116;r=r>.008856?r**(1/3):7.787*r+16/116;const o=116*e-16;const s=500*(n-e);const a=200*(e-r);return[o,s,a]};s.lab.xyz=function(t){const n=t[0];const e=t[1];const r=t[2];let o;let s;let a;s=(n+16)/116;o=e/500+s;a=s-r/200;const l=s**3;const c=o**3;const i=a**3;s=l>.008856?l:(s-16/116)/7.787;o=c>.008856?c:(o-16/116)/7.787;a=i>.008856?i:(a-16/116)/7.787;o*=95.047;s*=100;a*=108.883;return[o,s,a]};s.lab.lch=function(t){const n=t[0];const e=t[1];const r=t[2];let o;const s=Math.atan2(r,e);o=s*360/2/Math.PI;if(o<0){o+=360}const a=Math.sqrt(e*e+r*r);return[n,a,o]};s.lch.lab=function(t){const n=t[0];const e=t[1];const r=t[2];const o=r/360*2*Math.PI;const s=e*Math.cos(o);const a=e*Math.sin(o);return[n,s,a]};s.rgb.ansi16=function(t,n=null){const[e,r,o]=t;let a=n===null?s.rgb.hsv(t)[2]:n;a=Math.round(a/50);if(a===0){return 30}let l=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(e/255));if(a===2){l+=60}return l};s.hsv.ansi16=function(t){return s.rgb.ansi16(s.hsv.rgb(t),t[2])};s.rgb.ansi256=function(t){const n=t[0];const e=t[1];const r=t[2];if(n===e&&e===r){if(n<8){return 16}if(n>248){return 231}return Math.round((n-8)/247*24)+232}const o=16+36*Math.round(n/255*5)+6*Math.round(e/255*5)+Math.round(r/255*5);return o};s.ansi16.rgb=function(t){let n=t%10;if(n===0||n===7){if(t>50){n+=3.5}n=n/10.5*255;return[n,n,n]}const e=(~~(t>50)+1)*.5;const r=(n&1)*e*255;const o=(n>>1&1)*e*255;const s=(n>>2&1)*e*255;return[r,o,s]};s.ansi256.rgb=function(t){if(t>=232){const n=(t-232)*10+8;return[n,n,n]}t-=16;let n;const e=Math.floor(t/36)/5*255;const r=Math.floor((n=t%36)/6)/5*255;const o=n%6/5*255;return[e,r,o]};s.rgb.hex=function(t){const n=((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255);const e=n.toString(16).toUpperCase();return"000000".substring(e.length)+e};s.hex.rgb=function(t){const n=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!n){return[0,0,0]}let e=n[0];if(n[0].length===3){e=e.split("").map((t=>t+t)).join("")}const r=parseInt(e,16);const o=r>>16&255;const s=r>>8&255;const a=r&255;return[o,s,a]};s.rgb.hcg=function(t){const n=t[0]/255;const e=t[1]/255;const r=t[2]/255;const o=Math.max(Math.max(n,e),r);const s=Math.min(Math.min(n,e),r);const a=o-s;let l;let c;if(a<1){l=s/(1-a)}else{l=0}if(a<=0){c=0}else if(o===n){c=(e-r)/a%6}else if(o===e){c=2+(r-n)/a}else{c=4+(n-e)/a}c/=6;c%=1;return[c*360,a*100,l*100]};s.hsl.hcg=function(t){const n=t[1]/100;const e=t[2]/100;const r=e<.5?2*n*e:2*n*(1-e);let o=0;if(r<1){o=(e-.5*r)/(1-r)}return[t[0],r*100,o*100]};s.hsv.hcg=function(t){const n=t[1]/100;const e=t[2]/100;const r=n*e;let o=0;if(r<1){o=(e-r)/(1-r)}return[t[0],r*100,o*100]};s.hcg.rgb=function(t){const n=t[0]/360;const e=t[1]/100;const r=t[2]/100;if(e===0){return[r*255,r*255,r*255]}const o=[0,0,0];const s=n%1*6;const a=s%1;const l=1-a;let c=0;switch(Math.floor(s)){case 0:o[0]=1;o[1]=a;o[2]=0;break;case 1:o[0]=l;o[1]=1;o[2]=0;break;case 2:o[0]=0;o[1]=1;o[2]=a;break;case 3:o[0]=0;o[1]=l;o[2]=1;break;case 4:o[0]=a;o[1]=0;o[2]=1;break;default:o[0]=1;o[1]=0;o[2]=l}c=(1-e)*r;return[(e*o[0]+c)*255,(e*o[1]+c)*255,(e*o[2]+c)*255]};s.hcg.hsv=function(t){const n=t[1]/100;const e=t[2]/100;const r=n+e*(1-n);let o=0;if(r>0){o=n/r}return[t[0],o*100,r*100]};s.hcg.hsl=function(t){const n=t[1]/100;const e=t[2]/100;const r=e*(1-n)+.5*n;let o=0;if(r>0&&r<.5){o=n/(2*r)}else if(r>=.5&&r<1){o=n/(2*(1-r))}return[t[0],o*100,r*100]};s.hcg.hwb=function(t){const n=t[1]/100;const e=t[2]/100;const r=n+e*(1-n);return[t[0],(r-n)*100,(1-r)*100]};s.hwb.hcg=function(t){const n=t[1]/100;const e=t[2]/100;const r=1-e;const o=r-n;let s=0;if(o<1){s=(r-o)/(1-o)}return[t[0],o*100,s*100]};s.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};s.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};s.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};s.gray.hsl=function(t){return[0,0,t[0]]};s.gray.hsv=s.gray.hsl;s.gray.hwb=function(t){return[0,100,t[0]]};s.gray.cmyk=function(t){return[0,0,0,t[0]]};s.gray.lab=function(t){return[t[0],0,0]};s.gray.hex=function(t){const n=Math.round(t[0]/100*255)&255;const e=(n<<16)+(n<<8)+n;const r=e.toString(16).toUpperCase();return"000000".substring(r.length)+r};s.rgb.gray=function(t){const n=(t[0]+t[1]+t[2])/3;return[n/255*100]}},767:function(t,n,e){const r=e(226);const o=e(392);const s={};const a=Object.keys(r);function wrapRaw(t){const wrappedFn=function(...n){const e=n[0];if(e===undefined||e===null){return e}if(e.length>1){n=e}return t(n)};if("conversion"in t){wrappedFn.conversion=t.conversion}return wrappedFn}function wrapRounded(t){const wrappedFn=function(...n){const e=n[0];if(e===undefined||e===null){return e}if(e.length>1){n=e}const r=t(n);if(typeof r==="object"){for(let t=r.length,n=0;n<t;n++){r[n]=Math.round(r[n])}}return r};if("conversion"in t){wrappedFn.conversion=t.conversion}return wrappedFn}a.forEach((t=>{s[t]={};Object.defineProperty(s[t],"channels",{value:r[t].channels});Object.defineProperty(s[t],"labels",{value:r[t].labels});const n=o(t);const e=Object.keys(n);e.forEach((e=>{const r=n[e];s[t][e]=wrapRounded(r);s[t][e].raw=wrapRaw(r)}))}));t.exports=s},392:function(t,n,e){const r=e(226);function buildGraph(){const t={};const n=Object.keys(r);for(let e=n.length,r=0;r<e;r++){t[n[r]]={distance:-1,parent:null}}return t}function deriveBFS(t){const n=buildGraph();const e=[t];n[t].distance=0;while(e.length){const t=e.pop();const o=Object.keys(r[t]);for(let r=o.length,s=0;s<r;s++){const r=o[s];const a=n[r];if(a.distance===-1){a.distance=n[t].distance+1;a.parent=t;e.unshift(r)}}}return n}function link(t,n){return function(e){return n(t(e))}}function wrapConversion(t,n){const e=[n[t].parent,t];let o=r[n[t].parent][t];let s=n[t].parent;while(n[s].parent){e.unshift(n[s].parent);o=link(r[n[s].parent][s],o);s=n[s].parent}o.conversion=e;return o}t.exports=function(t){const n=deriveBFS(t);const e={};const r=Object.keys(n);for(let t=r.length,o=0;o<t;o++){const t=r[o];const s=n[t];if(s.parent===null){continue}e[t]=wrapConversion(t,n)}return e}},866:function(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]}},973:function(t,n,e){var r=e(866);var o=e(37);var s=Object.hasOwnProperty;var a={};for(var l in r){if(s.call(r,l)){a[r[l]]=l}}var c=t.exports={to:{},get:{}};c.get=function(t){var n=t.substring(0,3).toLowerCase();var e;var r;switch(n){case"hsl":e=c.get.hsl(t);r="hsl";break;case"hwb":e=c.get.hwb(t);r="hwb";break;default:e=c.get.rgb(t);r="rgb";break}if(!e){return null}return{model:r,value:e}};c.get.rgb=function(t){if(!t){return null}var n=/^#([a-f0-9]{3,4})$/i;var e=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i;var o=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/;var a=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/;var l=/^(\w+)$/;var c=[0,0,0,1];var i;var h;var u;if(i=t.match(e)){u=i[2];i=i[1];for(h=0;h<3;h++){var f=h*2;c[h]=parseInt(i.slice(f,f+2),16)}if(u){c[3]=parseInt(u,16)/255}}else if(i=t.match(n)){i=i[1];u=i[3];for(h=0;h<3;h++){c[h]=parseInt(i[h]+i[h],16)}if(u){c[3]=parseInt(u+u,16)/255}}else if(i=t.match(o)){for(h=0;h<3;h++){c[h]=parseInt(i[h+1],0)}if(i[4]){if(i[5]){c[3]=parseFloat(i[4])*.01}else{c[3]=parseFloat(i[4])}}}else if(i=t.match(a)){for(h=0;h<3;h++){c[h]=Math.round(parseFloat(i[h+1])*2.55)}if(i[4]){if(i[5]){c[3]=parseFloat(i[4])*.01}else{c[3]=parseFloat(i[4])}}}else if(i=t.match(l)){if(i[1]==="transparent"){return[0,0,0,0]}if(!s.call(r,i[1])){return null}c=r[i[1]];c[3]=1;return c}else{return null}for(h=0;h<3;h++){c[h]=clamp(c[h],0,255)}c[3]=clamp(c[3],0,1);return c};c.get.hsl=function(t){if(!t){return null}var n=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/;var e=t.match(n);if(e){var r=parseFloat(e[4]);var o=(parseFloat(e[1])%360+360)%360;var s=clamp(parseFloat(e[2]),0,100);var a=clamp(parseFloat(e[3]),0,100);var l=clamp(isNaN(r)?1:r,0,1);return[o,s,a,l]}return null};c.get.hwb=function(t){if(!t){return null}var n=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/;var e=t.match(n);if(e){var r=parseFloat(e[4]);var o=(parseFloat(e[1])%360+360)%360;var s=clamp(parseFloat(e[2]),0,100);var a=clamp(parseFloat(e[3]),0,100);var l=clamp(isNaN(r)?1:r,0,1);return[o,s,a,l]}return null};c.to.hex=function(){var t=o(arguments);return"#"+hexDouble(t[0])+hexDouble(t[1])+hexDouble(t[2])+(t[3]<1?hexDouble(Math.round(t[3]*255)):"")};c.to.rgb=function(){var t=o(arguments);return t.length<4||t[3]===1?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"};c.to.rgb.percent=function(){var t=o(arguments);var n=Math.round(t[0]/255*100);var e=Math.round(t[1]/255*100);var r=Math.round(t[2]/255*100);return t.length<4||t[3]===1?"rgb("+n+"%, "+e+"%, "+r+"%)":"rgba("+n+"%, "+e+"%, "+r+"%, "+t[3]+")"};c.to.hsl=function(){var t=o(arguments);return t.length<4||t[3]===1?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"};c.to.hwb=function(){var t=o(arguments);var n="";if(t.length>=4&&t[3]!==1){n=", "+t[3]}return"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+n+")"};c.to.keyword=function(t){return a[t.slice(0,3)]};function clamp(t,n,e){return Math.min(Math.max(n,t),e)}function hexDouble(t){var n=Math.round(t).toString(16).toUpperCase();return n.length<2?"0"+n:n}},12:function(t,n,e){const r=e(973);const o=e(767);const s=["keyword","gray","hex"];const a={};for(const t of Object.keys(o)){a[[...o[t].labels].sort().join("")]=t}const l={};function Color(t,n){if(!(this instanceof Color)){return new Color(t,n)}if(n&&n in s){n=null}if(n&&!(n in o)){throw new Error("Unknown model: "+n)}let e;let c;if(t==null){this.model="rgb";this.color=[0,0,0];this.valpha=1}else if(t instanceof Color){this.model=t.model;this.color=[...t.color];this.valpha=t.valpha}else if(typeof t==="string"){const n=r.get(t);if(n===null){throw new Error("Unable to parse color from string: "+t)}this.model=n.model;c=o[this.model].channels;this.color=n.value.slice(0,c);this.valpha=typeof n.value[c]==="number"?n.value[c]:1}else if(t.length>0){this.model=n||"rgb";c=o[this.model].channels;const e=Array.prototype.slice.call(t,0,c);this.color=zeroArray(e,c);this.valpha=typeof t[c]==="number"?t[c]:1}else if(typeof t==="number"){this.model="rgb";this.color=[t>>16&255,t>>8&255,t&255];this.valpha=1}else{this.valpha=1;const n=Object.keys(t);if("alpha"in t){n.splice(n.indexOf("alpha"),1);this.valpha=typeof t.alpha==="number"?t.alpha:0}const r=n.sort().join("");if(!(r in a)){throw new Error("Unable to parse color from object: "+JSON.stringify(t))}this.model=a[r];const{labels:s}=o[this.model];const l=[];for(e=0;e<s.length;e++){l.push(t[s[e]])}this.color=zeroArray(l)}if(l[this.model]){c=o[this.model].channels;for(e=0;e<c;e++){const t=l[this.model][e];if(t){this.color[e]=t(this.color[e])}}}this.valpha=Math.max(0,Math.min(1,this.valpha));if(Object.freeze){Object.freeze(this)}}Color.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(t){let n=this.model in r.to?this:this.rgb();n=n.round(typeof t==="number"?t:1);const e=n.valpha===1?n.color:[...n.color,this.valpha];return r.to[n.model](e)},percentString(t){const n=this.rgb().round(typeof t==="number"?t:1);const e=n.valpha===1?n.color:[...n.color,this.valpha];return r.to.rgb.percent(e)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){const t={};const{channels:n}=o[this.model];const{labels:e}=o[this.model];for(let r=0;r<n;r++){t[e[r]]=this.color[r]}if(this.valpha!==1){t.alpha=this.valpha}return t},unitArray(){const t=this.rgb().color;t[0]/=255;t[1]/=255;t[2]/=255;if(this.valpha!==1){t.push(this.valpha)}return t},unitObject(){const t=this.rgb().object();t.r/=255;t.g/=255;t.b/=255;if(this.valpha!==1){t.alpha=this.valpha}return t},round(t){t=Math.max(t||0,0);return new Color([...this.color.map(roundToPlace(t)),this.valpha],this.model)},alpha(t){if(t!==undefined){return new Color([...this.color,Math.max(0,Math.min(1,t))],this.model)}return this.valpha},red:getset("rgb",0,maxfn(255)),green:getset("rgb",1,maxfn(255)),blue:getset("rgb",2,maxfn(255)),hue:getset(["hsl","hsv","hsl","hwb","hcg"],0,(t=>(t%360+360)%360)),saturationl:getset("hsl",1,maxfn(100)),lightness:getset("hsl",2,maxfn(100)),saturationv:getset("hsv",1,maxfn(100)),value:getset("hsv",2,maxfn(100)),chroma:getset("hcg",1,maxfn(100)),gray:getset("hcg",2,maxfn(100)),white:getset("hwb",1,maxfn(100)),wblack:getset("hwb",2,maxfn(100)),cyan:getset("cmyk",0,maxfn(100)),magenta:getset("cmyk",1,maxfn(100)),yellow:getset("cmyk",2,maxfn(100)),black:getset("cmyk",3,maxfn(100)),x:getset("xyz",0,maxfn(95.047)),y:getset("xyz",1,maxfn(100)),z:getset("xyz",2,maxfn(108.833)),l:getset("lab",0,maxfn(100)),a:getset("lab",1),b:getset("lab",2),keyword(t){if(t!==undefined){return new Color(t)}return o[this.model].keyword(this.color)},hex(t){if(t!==undefined){return new Color(t)}return r.to.hex(this.rgb().round().color)},hexa(t){if(t!==undefined){return new Color(t)}const n=this.rgb().round().color;let e=Math.round(this.valpha*255).toString(16).toUpperCase();if(e.length===1){e="0"+e}return r.to.hex(n)+e},rgbNumber(){const t=this.rgb().color;return(t[0]&255)<<16|(t[1]&255)<<8|t[2]&255},luminosity(){const t=this.rgb().color;const n=[];for(const[e,r]of t.entries()){const t=r/255;n[e]=t<=.04045?t/12.92:((t+.055)/1.055)**2.4}return.2126*n[0]+.7152*n[1]+.0722*n[2]},contrast(t){const n=this.luminosity();const e=t.luminosity();if(n>e){return(n+.05)/(e+.05)}return(e+.05)/(n+.05)},level(t){const n=this.contrast(t);if(n>=7){return"AAA"}return n>=4.5?"AA":""},isDark(){const t=this.rgb().color;const n=(t[0]*2126+t[1]*7152+t[2]*722)/1e4;return n<128},isLight(){return!this.isDark()},negate(){const t=this.rgb();for(let n=0;n<3;n++){t.color[n]=255-t.color[n]}return t},lighten(t){const n=this.hsl();n.color[2]+=n.color[2]*t;return n},darken(t){const n=this.hsl();n.color[2]-=n.color[2]*t;return n},saturate(t){const n=this.hsl();n.color[1]+=n.color[1]*t;return n},desaturate(t){const n=this.hsl();n.color[1]-=n.color[1]*t;return n},whiten(t){const n=this.hwb();n.color[1]+=n.color[1]*t;return n},blacken(t){const n=this.hwb();n.color[2]+=n.color[2]*t;return n},grayscale(){const t=this.rgb().color;const n=t[0]*.3+t[1]*.59+t[2]*.11;return Color.rgb(n,n,n)},fade(t){return this.alpha(this.valpha-this.valpha*t)},opaquer(t){return this.alpha(this.valpha+this.valpha*t)},rotate(t){const n=this.hsl();let e=n.color[0];e=(e+t)%360;e=e<0?360+e:e;n.color[0]=e;return n},mix(t,n){if(!t||!t.rgb){throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t)}const e=t.rgb();const r=this.rgb();const o=n===undefined?.5:n;const s=2*o-1;const a=e.alpha()-r.alpha();const l=((s*a===-1?s:(s+a)/(1+s*a))+1)/2;const c=1-l;return Color.rgb(l*e.red()+c*r.red(),l*e.green()+c*r.green(),l*e.blue()+c*r.blue(),e.alpha()*o+r.alpha()*(1-o))}};for(const t of Object.keys(o)){if(s.includes(t)){continue}const{channels:n}=o[t];Color.prototype[t]=function(...n){if(this.model===t){return new Color(this)}if(n.length>0){return new Color(n,t)}return new Color([...assertArray(o[this.model][t].raw(this.color)),this.valpha],t)};Color[t]=function(...e){let r=e[0];if(typeof r==="number"){r=zeroArray(e,n)}return new Color(r,t)}}function roundTo(t,n){return Number(t.toFixed(n))}function roundToPlace(t){return function(n){return roundTo(n,t)}}function getset(t,n,e){t=Array.isArray(t)?t:[t];for(const r of t){(l[r]||(l[r]=[]))[n]=e}t=t[0];return function(r){let o;if(r!==undefined){if(e){r=e(r)}o=this[t]();o.color[n]=r;return o}o=this[t]().color[n];if(e){o=e(o)}return o}}function maxfn(t){return function(n){return Math.max(0,Math.min(t,n))}}function assertArray(t){return Array.isArray(t)?t:[t]}function zeroArray(t,n){for(let e=0;e<n;e++){if(typeof t[e]!=="number"){t[e]=0}}return t}t.exports=Color},94:function(t){t.exports=function isArrayish(t){if(!t||typeof t==="string"){return false}return t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&t.constructor.name!=="String")}},37:function(t,n,e){"use strict";var r=e(94);var o=Array.prototype.concat;var s=Array.prototype.slice;var a=t.exports=function swizzle(t){var n=[];for(var e=0,a=t.length;e<a;e++){var l=t[e];if(r(l)){n=o.call(n,s.call(l))}else{n.push(l)}}return n};a.wrap=function(t){return function(){return t(a(arguments))}}}};var n={};function __nccwpck_require__(e){var r=n[e];if(r!==undefined){return r.exports}var o=n[e]={exports:{}};var s=true;try{t[e](o,o.exports,__nccwpck_require__);s=false}finally{if(s)delete n[e]}return o.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var e=__nccwpck_require__(12);module.exports=e})();
@@ -1,6 +1,6 @@
1
1
  The ISC License
2
2
 
3
- Copyright (c) Isaac Z. Schlueter and Contributors
3
+ Copyright (c) 2009-2022 Isaac Z. Schlueter and Contributors
4
4
 
5
5
  Permission to use, copy, modify, and/or distribute this software for any
6
6
  purpose with or without fee is hereby granted, provided that the above
@@ -13,9 +13,3 @@ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13
13
  WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14
14
  ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
15
15
  IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16
-
17
- ## Glob Logo
18
-
19
- Glob's logo created by Tanya Brassie <http://tanyabrassie.com/>, licensed
20
- under a Creative Commons Attribution-ShareAlike 4.0 International License
21
- https://creativecommons.org/licenses/by-sa/4.0/
@@ -1,4 +1,4 @@
1
- // Type definitions for Glob 7.1
1
+ // Type definitions for Glob 7.2
2
2
  // Project: https://github.com/isaacs/node-glob
3
3
  // Definitions by: vvakame <https://github.com/vvakame>
4
4
  // voy <https://github.com/voy>
@@ -10,6 +10,7 @@
10
10
 
11
11
  import events = require('events');
12
12
  import minimatch = require('./minimatch');
13
+ import fs = require('fs');
13
14
 
14
15
  declare function G(pattern: string, cb: (err: Error | null, matches: string[]) => void): G.IGlob;
15
16
  declare function G(pattern: string, options: G.IOptions, cb: (err: Error | null, matches: string[]) => void): G.IGlob;
@@ -55,6 +56,7 @@ declare namespace G {
55
56
  nonegate?: boolean | undefined;
56
57
  nocomment?: boolean | undefined;
57
58
  absolute?: boolean | undefined;
59
+ fs?: typeof fs;
58
60
  }
59
61
 
60
62
  interface IGlobStatic extends events.EventEmitter {
@@ -1 +1 @@
1
- (function(){var t={895:function(t){"use strict";t.exports=balanced;function balanced(t,e,r){if(t instanceof RegExp)t=maybeMatch(t,r);if(e instanceof RegExp)e=maybeMatch(e,r);var i=range(t,e,r);return i&&{start:i[0],end:i[1],pre:r.slice(0,i[0]),body:r.slice(i[0]+t.length,i[1]),post:r.slice(i[1]+e.length)}}function maybeMatch(t,e){var r=e.match(t);return r?r[0]:null}balanced.range=range;function range(t,e,r){var i,n,a,s,o;var c=r.indexOf(t);var h=r.indexOf(e,c+1);var l=c;if(c>=0&&h>0){if(t===e){return[c,h]}i=[];a=r.length;while(l>=0&&!o){if(l==c){i.push(l);c=r.indexOf(t,l+1)}else if(i.length==1){o=[i.pop(),h]}else{n=i.pop();if(n<a){a=n;s=h}h=r.indexOf(e,l+1)}l=c<h&&c>=0?c:h}if(i.length){o=[a,s]}}return o}},793:function(t,e,r){var i=r(551);var n=r(895);t.exports=expandTop;var a="\0SLASH"+Math.random()+"\0";var s="\0OPEN"+Math.random()+"\0";var o="\0CLOSE"+Math.random()+"\0";var c="\0COMMA"+Math.random()+"\0";var h="\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(s).split("\\}").join(o).split("\\,").join(c).split("\\.").join(h)}function unescapeBraces(t){return t.split(a).join("\\").split(s).join("{").split(o).join("}").split(c).join(",").split(h).join(".")}function parseCommaParts(t){if(!t)return[""];var e=[];var r=n("{","}",t);if(!r)return t.split(",");var i=r.pre;var a=r.body;var s=r.post;var o=i.split(",");o[o.length-1]+="{"+a+"}";var c=parseCommaParts(s);if(s.length){o[o.length-1]+=c.shift();o.push.apply(o,c)}e.push.apply(e,o);return e}function expandTop(t){if(!t)return[];if(t.substr(0,2)==="{}"){t="\\{\\}"+t.substr(2)}return expand(escapeBraces(t),true).map(unescapeBraces)}function identity(t){return t}function embrace(t){return"{"+t+"}"}function isPadded(t){return/^-?0\d/.test(t)}function lte(t,e){return t<=e}function gte(t,e){return t>=e}function expand(t,e){var r=[];var a=n("{","}",t);if(!a||/\$$/.test(a.pre))return[t];var s=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(a.body);var c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(a.body);var h=s||c;var l=a.body.indexOf(",")>=0;if(!h&&!l){if(a.post.match(/,.*\}/)){t=a.pre+"{"+a.body+o+a.post;return expand(t)}return[t]}var u;if(h){u=a.body.split(/\.\./)}else{u=parseCommaParts(a.body);if(u.length===1){u=expand(u[0],false).map(embrace);if(u.length===1){var p=a.post.length?expand(a.post,false):[""];return p.map((function(t){return a.pre+u[0]+t}))}}}var v=a.pre;var p=a.post.length?expand(a.post,false):[""];var d;if(h){var m=numeric(u[0]);var b=numeric(u[1]);var g=Math.max(u[0].length,u[1].length);var y=u.length==3?Math.abs(numeric(u[2])):1;var _=lte;var w=b<m;if(w){y*=-1;_=gte}var k=u.some(isPadded);d=[];for(var S=m;_(S,b);S+=y){var E;if(c){E=String.fromCharCode(S);if(E==="\\")E=""}else{E=String(S);if(k){var O=g-E.length;if(O>0){var x=new Array(O+1).join("0");if(S<0)E="-"+x+E.slice(1);else E=x+E}}}d.push(E)}}else{d=i(u,(function(t){return expand(t,false)}))}for(var A=0;A<d.length;A++){for(var G=0;G<p.length;G++){var j=v+d[A]+p[G];if(!e||h||j)r.push(j)}}return r}},551:function(t){t.exports=function(t,r){var i=[];for(var n=0;n<t.length;n++){var a=r(t[n],n);if(e(a))i.push.apply(i,a);else i.push(a)}return i};var e=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"}},899:function(t,e,r){t.exports=realpath;realpath.realpath=realpath;realpath.sync=realpathSync;realpath.realpathSync=realpathSync;realpath.monkeypatch=monkeypatch;realpath.unmonkeypatch=unmonkeypatch;var i=r(747);var n=i.realpath;var a=i.realpathSync;var s=process.version;var o=/^v[0-5]\./.test(s);var c=r(538);function newError(t){return t&&t.syscall==="realpath"&&(t.code==="ELOOP"||t.code==="ENOMEM"||t.code==="ENAMETOOLONG")}function realpath(t,e,r){if(o){return n(t,e,r)}if(typeof e==="function"){r=e;e=null}n(t,e,(function(i,n){if(newError(i)){c.realpath(t,e,r)}else{r(i,n)}}))}function realpathSync(t,e){if(o){return a(t,e)}try{return a(t,e)}catch(r){if(newError(r)){return c.realpathSync(t,e)}else{throw r}}}function monkeypatch(){i.realpath=realpath;i.realpathSync=realpathSync}function unmonkeypatch(){i.realpath=n;i.realpathSync=a}},538:function(t,e,r){var i=r(622);var n=process.platform==="win32";var a=r(747);var s=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function rethrow(){var t;if(s){var e=new Error;t=debugCallback}else t=missingCallback;return t;function debugCallback(t){if(t){e.message=t.message;t=e;missingCallback(t)}}function missingCallback(t){if(t){if(process.throwDeprecation)throw t;else if(!process.noDeprecation){var e="fs: missing callback "+(t.stack||t.message);if(process.traceDeprecation)console.trace(e);else console.error(e)}}}}function maybeCallback(t){return typeof t==="function"?t:rethrow()}var o=i.normalize;if(n){var c=/(.*?)(?:[\/\\]+|$)/g}else{var c=/(.*?)(?:[\/]+|$)/g}if(n){var h=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/}else{var h=/^[\/]*/}e.realpathSync=function realpathSync(t,e){t=i.resolve(t);if(e&&Object.prototype.hasOwnProperty.call(e,t)){return e[t]}var r=t,s={},o={};var l;var u;var p;var v;start();function start(){var e=h.exec(t);l=e[0].length;u=e[0];p=e[0];v="";if(n&&!o[p]){a.lstatSync(p);o[p]=true}}while(l<t.length){c.lastIndex=l;var d=c.exec(t);v=u;u+=d[0];p=v+d[1];l=c.lastIndex;if(o[p]||e&&e[p]===p){continue}var m;if(e&&Object.prototype.hasOwnProperty.call(e,p)){m=e[p]}else{var b=a.lstatSync(p);if(!b.isSymbolicLink()){o[p]=true;if(e)e[p]=p;continue}var g=null;if(!n){var y=b.dev.toString(32)+":"+b.ino.toString(32);if(s.hasOwnProperty(y)){g=s[y]}}if(g===null){a.statSync(p);g=a.readlinkSync(p)}m=i.resolve(v,g);if(e)e[p]=m;if(!n)s[y]=g}t=i.resolve(m,t.slice(l));start()}if(e)e[r]=t;return t};e.realpath=function realpath(t,e,r){if(typeof r!=="function"){r=maybeCallback(e);e=null}t=i.resolve(t);if(e&&Object.prototype.hasOwnProperty.call(e,t)){return process.nextTick(r.bind(null,null,e[t]))}var s=t,o={},l={};var u;var p;var v;var d;start();function start(){var e=h.exec(t);u=e[0].length;p=e[0];v=e[0];d="";if(n&&!l[v]){a.lstat(v,(function(t){if(t)return r(t);l[v]=true;LOOP()}))}else{process.nextTick(LOOP)}}function LOOP(){if(u>=t.length){if(e)e[s]=t;return r(null,t)}c.lastIndex=u;var i=c.exec(t);d=p;p+=i[0];v=d+i[1];u=c.lastIndex;if(l[v]||e&&e[v]===v){return process.nextTick(LOOP)}if(e&&Object.prototype.hasOwnProperty.call(e,v)){return gotResolvedLink(e[v])}return a.lstat(v,gotStat)}function gotStat(t,i){if(t)return r(t);if(!i.isSymbolicLink()){l[v]=true;if(e)e[v]=v;return process.nextTick(LOOP)}if(!n){var s=i.dev.toString(32)+":"+i.ino.toString(32);if(o.hasOwnProperty(s)){return gotTarget(null,o[s],v)}}a.stat(v,(function(t){if(t)return r(t);a.readlink(v,(function(t,e){if(!n)o[s]=e;gotTarget(t,e)}))}))}function gotTarget(t,n,a){if(t)return r(t);var s=i.resolve(d,n);if(e)e[a]=s;gotResolvedLink(s)}function gotResolvedLink(e){t=i.resolve(e,t.slice(u));start()}}},670:function(t,e,r){e.setopts=setopts;e.ownProp=ownProp;e.makeAbs=makeAbs;e.finish=finish;e.mark=mark;e.isIgnored=isIgnored;e.childrenIgnored=childrenIgnored;function ownProp(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var i=r(747);var n=r(622);var a=r(707);var s=r(194);var o=a.Minimatch;function alphasort(t,e){return t.localeCompare(e,"en")}function setupIgnores(t,e){t.ignore=e.ignore||[];if(!Array.isArray(t.ignore))t.ignore=[t.ignore];if(t.ignore.length){t.ignore=t.ignore.map(ignoreMap)}}function ignoreMap(t){var e=null;if(t.slice(-3)==="/**"){var r=t.replace(/(\/\*\*)+$/,"");e=new o(r,{dot:true})}return{matcher:new o(t,{dot:true}),gmatcher:e}}function setopts(t,e,r){if(!r)r={};if(r.matchBase&&-1===e.indexOf("/")){if(r.noglobstar){throw new Error("base matching requires globstar")}e="**/"+e}t.silent=!!r.silent;t.pattern=e;t.strict=r.strict!==false;t.realpath=!!r.realpath;t.realpathCache=r.realpathCache||Object.create(null);t.follow=!!r.follow;t.dot=!!r.dot;t.mark=!!r.mark;t.nodir=!!r.nodir;if(t.nodir)t.mark=true;t.sync=!!r.sync;t.nounique=!!r.nounique;t.nonull=!!r.nonull;t.nosort=!!r.nosort;t.nocase=!!r.nocase;t.stat=!!r.stat;t.noprocess=!!r.noprocess;t.absolute=!!r.absolute;t.fs=r.fs||i;t.maxLength=r.maxLength||Infinity;t.cache=r.cache||Object.create(null);t.statCache=r.statCache||Object.create(null);t.symlinks=r.symlinks||Object.create(null);setupIgnores(t,r);t.changedCwd=false;var a=process.cwd();if(!ownProp(r,"cwd"))t.cwd=a;else{t.cwd=n.resolve(r.cwd);t.changedCwd=t.cwd!==a}t.root=r.root||n.resolve(t.cwd,"/");t.root=n.resolve(t.root);if(process.platform==="win32")t.root=t.root.replace(/\\/g,"/");t.cwdAbs=s(t.cwd)?t.cwd:makeAbs(t,t.cwd);if(process.platform==="win32")t.cwdAbs=t.cwdAbs.replace(/\\/g,"/");t.nomount=!!r.nomount;r.nonegate=true;r.nocomment=true;t.minimatch=new o(e,r);t.options=t.minimatch.options}function finish(t){var e=t.nounique;var r=e?[]:Object.create(null);for(var i=0,n=t.matches.length;i<n;i++){var a=t.matches[i];if(!a||Object.keys(a).length===0){if(t.nonull){var s=t.minimatch.globSet[i];if(e)r.push(s);else r[s]=true}}else{var o=Object.keys(a);if(e)r.push.apply(r,o);else o.forEach((function(t){r[t]=true}))}}if(!e)r=Object.keys(r);if(!t.nosort)r=r.sort(alphasort);if(t.mark){for(var i=0;i<r.length;i++){r[i]=t._mark(r[i])}if(t.nodir){r=r.filter((function(e){var r=!/\/$/.test(e);var i=t.cache[e]||t.cache[makeAbs(t,e)];if(r&&i)r=i!=="DIR"&&!Array.isArray(i);return r}))}}if(t.ignore.length)r=r.filter((function(e){return!isIgnored(t,e)}));t.found=r}function mark(t,e){var r=makeAbs(t,e);var i=t.cache[r];var n=e;if(i){var a=i==="DIR"||Array.isArray(i);var s=e.slice(-1)==="/";if(a&&!s)n+="/";else if(!a&&s)n=n.slice(0,-1);if(n!==e){var o=makeAbs(t,n);t.statCache[o]=t.statCache[r];t.cache[o]=t.cache[r]}}return n}function makeAbs(t,e){var r=e;if(e.charAt(0)==="/"){r=n.join(t.root,e)}else if(s(e)||e===""){r=e}else if(t.changedCwd){r=n.resolve(t.cwd,e)}else{r=n.resolve(e)}if(process.platform==="win32")r=r.replace(/\\/g,"/");return r}function isIgnored(t,e){if(!t.ignore.length)return false;return t.ignore.some((function(t){return t.matcher.match(e)||!!(t.gmatcher&&t.gmatcher.match(e))}))}function childrenIgnored(t,e){if(!t.ignore.length)return false;return t.ignore.some((function(t){return!!(t.gmatcher&&t.gmatcher.match(e))}))}},604:function(t,e,r){t.exports=glob;var i=r(899);var n=r(707);var a=n.Minimatch;var s=r(97);var o=r(614).EventEmitter;var c=r(622);var h=r(357);var l=r(194);var u=r(526);var p=r(670);var v=p.setopts;var d=p.ownProp;var m=r(854);var b=r(669);var g=p.childrenIgnored;var y=p.isIgnored;var _=r(39);function glob(t,e,r){if(typeof e==="function")r=e,e={};if(!e)e={};if(e.sync){if(r)throw new TypeError("callback provided to sync glob");return u(t,e)}return new Glob(t,e,r)}glob.sync=u;var w=glob.GlobSync=u.GlobSync;glob.glob=glob;function extend(t,e){if(e===null||typeof e!=="object"){return t}var r=Object.keys(e);var i=r.length;while(i--){t[r[i]]=e[r[i]]}return t}glob.hasMagic=function(t,e){var r=extend({},e);r.noprocess=true;var i=new Glob(t,r);var n=i.minimatch.set;if(!t)return false;if(n.length>1)return true;for(var a=0;a<n[0].length;a++){if(typeof n[0][a]!=="string")return true}return false};glob.Glob=Glob;s(Glob,o);function Glob(t,e,r){if(typeof e==="function"){r=e;e=null}if(e&&e.sync){if(r)throw new TypeError("callback provided to sync glob");return new w(t,e)}if(!(this instanceof Glob))return new Glob(t,e,r);v(this,t,e);this._didRealPath=false;var i=this.minimatch.set.length;this.matches=new Array(i);if(typeof r==="function"){r=_(r);this.on("error",r);this.on("end",(function(t){r(null,t)}))}var n=this;this._processing=0;this._emitQueue=[];this._processQueue=[];this.paused=false;if(this.noprocess)return this;if(i===0)return done();var a=true;for(var s=0;s<i;s++){this._process(this.minimatch.set[s],s,false,done)}a=false;function done(){--n._processing;if(n._processing<=0){if(a){process.nextTick((function(){n._finish()}))}else{n._finish()}}}}Glob.prototype._finish=function(){h(this instanceof Glob);if(this.aborted)return;if(this.realpath&&!this._didRealpath)return this._realpath();p.finish(this);this.emit("end",this.found)};Glob.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=true;var t=this.matches.length;if(t===0)return this._finish();var e=this;for(var r=0;r<this.matches.length;r++)this._realpathSet(r,next);function next(){if(--t===0)e._finish()}};Glob.prototype._realpathSet=function(t,e){var r=this.matches[t];if(!r)return e();var n=Object.keys(r);var a=this;var s=n.length;if(s===0)return e();var o=this.matches[t]=Object.create(null);n.forEach((function(r,n){r=a._makeAbs(r);i.realpath(r,a.realpathCache,(function(i,n){if(!i)o[n]=true;else if(i.syscall==="stat")o[r]=true;else a.emit("error",i);if(--s===0){a.matches[t]=o;e()}}))}))};Glob.prototype._mark=function(t){return p.mark(this,t)};Glob.prototype._makeAbs=function(t){return p.makeAbs(this,t)};Glob.prototype.abort=function(){this.aborted=true;this.emit("abort")};Glob.prototype.pause=function(){if(!this.paused){this.paused=true;this.emit("pause")}};Glob.prototype.resume=function(){if(this.paused){this.emit("resume");this.paused=false;if(this._emitQueue.length){var t=this._emitQueue.slice(0);this._emitQueue.length=0;for(var e=0;e<t.length;e++){var r=t[e];this._emitMatch(r[0],r[1])}}if(this._processQueue.length){var i=this._processQueue.slice(0);this._processQueue.length=0;for(var e=0;e<i.length;e++){var n=i[e];this._processing--;this._process(n[0],n[1],n[2],n[3])}}}};Glob.prototype._process=function(t,e,r,i){h(this instanceof Glob);h(typeof i==="function");if(this.aborted)return;this._processing++;if(this.paused){this._processQueue.push([t,e,r,i]);return}var a=0;while(typeof t[a]==="string"){a++}var s;switch(a){case t.length:this._processSimple(t.join("/"),e,i);return;case 0:s=null;break;default:s=t.slice(0,a).join("/");break}var o=t.slice(a);var c;if(s===null)c=".";else if(l(s)||l(t.join("/"))){if(!s||!l(s))s="/"+s;c=s}else c=s;var u=this._makeAbs(c);if(g(this,c))return i();var p=o[0]===n.GLOBSTAR;if(p)this._processGlobStar(s,c,u,o,e,r,i);else this._processReaddir(s,c,u,o,e,r,i)};Glob.prototype._processReaddir=function(t,e,r,i,n,a,s){var o=this;this._readdir(r,a,(function(c,h){return o._processReaddir2(t,e,r,i,n,a,h,s)}))};Glob.prototype._processReaddir2=function(t,e,r,i,n,a,s,o){if(!s)return o();var h=i[0];var l=!!this.minimatch.negate;var u=h._glob;var p=this.dot||u.charAt(0)===".";var v=[];for(var d=0;d<s.length;d++){var m=s[d];if(m.charAt(0)!=="."||p){var b;if(l&&!t){b=!m.match(h)}else{b=m.match(h)}if(b)v.push(m)}}var g=v.length;if(g===0)return o();if(i.length===1&&!this.mark&&!this.stat){if(!this.matches[n])this.matches[n]=Object.create(null);for(var d=0;d<g;d++){var m=v[d];if(t){if(t!=="/")m=t+"/"+m;else m=t+m}if(m.charAt(0)==="/"&&!this.nomount){m=c.join(this.root,m)}this._emitMatch(n,m)}return o()}i.shift();for(var d=0;d<g;d++){var m=v[d];var y;if(t){if(t!=="/")m=t+"/"+m;else m=t+m}this._process([m].concat(i),n,a,o)}o()};Glob.prototype._emitMatch=function(t,e){if(this.aborted)return;if(y(this,e))return;if(this.paused){this._emitQueue.push([t,e]);return}var r=l(e)?e:this._makeAbs(e);if(this.mark)e=this._mark(e);if(this.absolute)e=r;if(this.matches[t][e])return;if(this.nodir){var i=this.cache[r];if(i==="DIR"||Array.isArray(i))return}this.matches[t][e]=true;var n=this.statCache[r];if(n)this.emit("stat",e,n);this.emit("match",e)};Glob.prototype._readdirInGlobStar=function(t,e){if(this.aborted)return;if(this.follow)return this._readdir(t,false,e);var r="lstat\0"+t;var i=this;var n=m(r,lstatcb_);if(n)i.fs.lstat(t,n);function lstatcb_(r,n){if(r&&r.code==="ENOENT")return e();var a=n&&n.isSymbolicLink();i.symlinks[t]=a;if(!a&&n&&!n.isDirectory()){i.cache[t]="FILE";e()}else i._readdir(t,false,e)}};Glob.prototype._readdir=function(t,e,r){if(this.aborted)return;r=m("readdir\0"+t+"\0"+e,r);if(!r)return;if(e&&!d(this.symlinks,t))return this._readdirInGlobStar(t,r);if(d(this.cache,t)){var i=this.cache[t];if(!i||i==="FILE")return r();if(Array.isArray(i))return r(null,i)}var n=this;n.fs.readdir(t,readdirCb(this,t,r))};function readdirCb(t,e,r){return function(i,n){if(i)t._readdirError(e,i,r);else t._readdirEntries(e,n,r)}}Glob.prototype._readdirEntries=function(t,e,r){if(this.aborted)return;if(!this.mark&&!this.stat){for(var i=0;i<e.length;i++){var n=e[i];if(t==="/")n=t+n;else n=t+"/"+n;this.cache[n]=true}}this.cache[t]=e;return r(null,e)};Glob.prototype._readdirError=function(t,e,r){if(this.aborted)return;switch(e.code){case"ENOTSUP":case"ENOTDIR":var i=this._makeAbs(t);this.cache[i]="FILE";if(i===this.cwdAbs){var n=new Error(e.code+" invalid cwd "+this.cwd);n.path=this.cwd;n.code=e.code;this.emit("error",n);this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(t)]=false;break;default:this.cache[this._makeAbs(t)]=false;if(this.strict){this.emit("error",e);this.abort()}if(!this.silent)console.error("glob error",e);break}return r()};Glob.prototype._processGlobStar=function(t,e,r,i,n,a,s){var o=this;this._readdir(r,a,(function(c,h){o._processGlobStar2(t,e,r,i,n,a,h,s)}))};Glob.prototype._processGlobStar2=function(t,e,r,i,n,a,s,o){if(!s)return o();var c=i.slice(1);var h=t?[t]:[];var l=h.concat(c);this._process(l,n,false,o);var u=this.symlinks[r];var p=s.length;if(u&&a)return o();for(var v=0;v<p;v++){var d=s[v];if(d.charAt(0)==="."&&!this.dot)continue;var m=h.concat(s[v],c);this._process(m,n,true,o);var b=h.concat(s[v],i);this._process(b,n,true,o)}o()};Glob.prototype._processSimple=function(t,e,r){var i=this;this._stat(t,(function(n,a){i._processSimple2(t,e,n,a,r)}))};Glob.prototype._processSimple2=function(t,e,r,i,n){if(!this.matches[e])this.matches[e]=Object.create(null);if(!i)return n();if(t&&l(t)&&!this.nomount){var a=/[\/\\]$/.test(t);if(t.charAt(0)==="/"){t=c.join(this.root,t)}else{t=c.resolve(this.root,t);if(a)t+="/"}}if(process.platform==="win32")t=t.replace(/\\/g,"/");this._emitMatch(e,t);n()};Glob.prototype._stat=function(t,e){var r=this._makeAbs(t);var i=t.slice(-1)==="/";if(t.length>this.maxLength)return e();if(!this.stat&&d(this.cache,r)){var n=this.cache[r];if(Array.isArray(n))n="DIR";if(!i||n==="DIR")return e(null,n);if(i&&n==="FILE")return e()}var a;var s=this.statCache[r];if(s!==undefined){if(s===false)return e(null,s);else{var o=s.isDirectory()?"DIR":"FILE";if(i&&o==="FILE")return e();else return e(null,o,s)}}var c=this;var h=m("stat\0"+r,lstatcb_);if(h)c.fs.lstat(r,h);function lstatcb_(i,n){if(n&&n.isSymbolicLink()){return c.fs.stat(r,(function(i,a){if(i)c._stat2(t,r,null,n,e);else c._stat2(t,r,i,a,e)}))}else{c._stat2(t,r,i,n,e)}}};Glob.prototype._stat2=function(t,e,r,i,n){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR")){this.statCache[e]=false;return n()}var a=t.slice(-1)==="/";this.statCache[e]=i;if(e.slice(-1)==="/"&&i&&!i.isDirectory())return n(null,false,i);var s=true;if(i)s=i.isDirectory()?"DIR":"FILE";this.cache[e]=this.cache[e]||s;if(a&&s==="FILE")return n();return n(null,s,i)}},526:function(t,e,r){t.exports=globSync;globSync.GlobSync=GlobSync;var i=r(899);var n=r(707);var a=n.Minimatch;var s=r(604).Glob;var o=r(669);var c=r(622);var h=r(357);var l=r(194);var u=r(670);var p=u.setopts;var v=u.ownProp;var d=u.childrenIgnored;var m=u.isIgnored;function globSync(t,e){if(typeof e==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");return new GlobSync(t,e).found}function GlobSync(t,e){if(!t)throw new Error("must provide pattern");if(typeof e==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof GlobSync))return new GlobSync(t,e);p(this,t,e);if(this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var i=0;i<r;i++){this._process(this.minimatch.set[i],i,false)}this._finish()}GlobSync.prototype._finish=function(){h(this instanceof GlobSync);if(this.realpath){var t=this;this.matches.forEach((function(e,r){var n=t.matches[r]=Object.create(null);for(var a in e){try{a=t._makeAbs(a);var s=i.realpathSync(a,t.realpathCache);n[s]=true}catch(e){if(e.syscall==="stat")n[t._makeAbs(a)]=true;else throw e}}}))}u.finish(this)};GlobSync.prototype._process=function(t,e,r){h(this instanceof GlobSync);var i=0;while(typeof t[i]==="string"){i++}var a;switch(i){case t.length:this._processSimple(t.join("/"),e);return;case 0:a=null;break;default:a=t.slice(0,i).join("/");break}var s=t.slice(i);var o;if(a===null)o=".";else if(l(a)||l(t.join("/"))){if(!a||!l(a))a="/"+a;o=a}else o=a;var c=this._makeAbs(o);if(d(this,o))return;var u=s[0]===n.GLOBSTAR;if(u)this._processGlobStar(a,o,c,s,e,r);else this._processReaddir(a,o,c,s,e,r)};GlobSync.prototype._processReaddir=function(t,e,r,i,n,a){var s=this._readdir(r,a);if(!s)return;var o=i[0];var h=!!this.minimatch.negate;var l=o._glob;var u=this.dot||l.charAt(0)===".";var p=[];for(var v=0;v<s.length;v++){var d=s[v];if(d.charAt(0)!=="."||u){var m;if(h&&!t){m=!d.match(o)}else{m=d.match(o)}if(m)p.push(d)}}var b=p.length;if(b===0)return;if(i.length===1&&!this.mark&&!this.stat){if(!this.matches[n])this.matches[n]=Object.create(null);for(var v=0;v<b;v++){var d=p[v];if(t){if(t.slice(-1)!=="/")d=t+"/"+d;else d=t+d}if(d.charAt(0)==="/"&&!this.nomount){d=c.join(this.root,d)}this._emitMatch(n,d)}return}i.shift();for(var v=0;v<b;v++){var d=p[v];var g;if(t)g=[t,d];else g=[d];this._process(g.concat(i),n,a)}};GlobSync.prototype._emitMatch=function(t,e){if(m(this,e))return;var r=this._makeAbs(e);if(this.mark)e=this._mark(e);if(this.absolute){e=r}if(this.matches[t][e])return;if(this.nodir){var i=this.cache[r];if(i==="DIR"||Array.isArray(i))return}this.matches[t][e]=true;if(this.stat)this._stat(e)};GlobSync.prototype._readdirInGlobStar=function(t){if(this.follow)return this._readdir(t,false);var e;var r;var i;try{r=this.fs.lstatSync(t)}catch(t){if(t.code==="ENOENT"){return null}}var n=r&&r.isSymbolicLink();this.symlinks[t]=n;if(!n&&r&&!r.isDirectory())this.cache[t]="FILE";else e=this._readdir(t,false);return e};GlobSync.prototype._readdir=function(t,e){var r;if(e&&!v(this.symlinks,t))return this._readdirInGlobStar(t);if(v(this.cache,t)){var i=this.cache[t];if(!i||i==="FILE")return null;if(Array.isArray(i))return i}try{return this._readdirEntries(t,this.fs.readdirSync(t))}catch(e){this._readdirError(t,e);return null}};GlobSync.prototype._readdirEntries=function(t,e){if(!this.mark&&!this.stat){for(var r=0;r<e.length;r++){var i=e[r];if(t==="/")i=t+i;else i=t+"/"+i;this.cache[i]=true}}this.cache[t]=e;return e};GlobSync.prototype._readdirError=function(t,e){switch(e.code){case"ENOTSUP":case"ENOTDIR":var r=this._makeAbs(t);this.cache[r]="FILE";if(r===this.cwdAbs){var i=new Error(e.code+" invalid cwd "+this.cwd);i.path=this.cwd;i.code=e.code;throw i}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(t)]=false;break;default:this.cache[this._makeAbs(t)]=false;if(this.strict)throw e;if(!this.silent)console.error("glob error",e);break}};GlobSync.prototype._processGlobStar=function(t,e,r,i,n,a){var s=this._readdir(r,a);if(!s)return;var o=i.slice(1);var c=t?[t]:[];var h=c.concat(o);this._process(h,n,false);var l=s.length;var u=this.symlinks[r];if(u&&a)return;for(var p=0;p<l;p++){var v=s[p];if(v.charAt(0)==="."&&!this.dot)continue;var d=c.concat(s[p],o);this._process(d,n,true);var m=c.concat(s[p],i);this._process(m,n,true)}};GlobSync.prototype._processSimple=function(t,e){var r=this._stat(t);if(!this.matches[e])this.matches[e]=Object.create(null);if(!r)return;if(t&&l(t)&&!this.nomount){var i=/[\/\\]$/.test(t);if(t.charAt(0)==="/"){t=c.join(this.root,t)}else{t=c.resolve(this.root,t);if(i)t+="/"}}if(process.platform==="win32")t=t.replace(/\\/g,"/");this._emitMatch(e,t)};GlobSync.prototype._stat=function(t){var e=this._makeAbs(t);var r=t.slice(-1)==="/";if(t.length>this.maxLength)return false;if(!this.stat&&v(this.cache,e)){var i=this.cache[e];if(Array.isArray(i))i="DIR";if(!r||i==="DIR")return i;if(r&&i==="FILE")return false}var n;var a=this.statCache[e];if(!a){var s;try{s=this.fs.lstatSync(e)}catch(t){if(t&&(t.code==="ENOENT"||t.code==="ENOTDIR")){this.statCache[e]=false;return false}}if(s&&s.isSymbolicLink()){try{a=this.fs.statSync(e)}catch(t){a=s}}else{a=s}}this.statCache[e]=a;var i=true;if(a)i=a.isDirectory()?"DIR":"FILE";this.cache[e]=this.cache[e]||i;if(r&&i==="FILE")return false;return i};GlobSync.prototype._mark=function(t){return u.mark(this,t)};GlobSync.prototype._makeAbs=function(t){return u.makeAbs(this,t)}},854:function(t,e,r){var i=r(315);var n=Object.create(null);var a=r(39);t.exports=i(inflight);function inflight(t,e){if(n[t]){n[t].push(e);return null}else{n[t]=[e];return makeres(t)}}function makeres(t){return a((function RES(){var e=n[t];var r=e.length;var i=slice(arguments);try{for(var a=0;a<r;a++){e[a].apply(null,i)}}finally{if(e.length>r){e.splice(0,r);process.nextTick((function(){RES.apply(null,i)}))}else{delete n[t]}}}))}function slice(t){var e=t.length;var r=[];for(var i=0;i<e;i++)r[i]=t[i];return r}},97:function(t,e,r){try{var i=r(669);if(typeof i.inherits!=="function")throw"";t.exports=i.inherits}catch(e){t.exports=r(312)}},312:function(t){if(typeof Object.create==="function"){t.exports=function inherits(t,e){if(e){t.super_=e;t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:false,writable:true,configurable:true}})}}}else{t.exports=function inherits(t,e){if(e){t.super_=e;var TempCtor=function(){};TempCtor.prototype=e.prototype;t.prototype=new TempCtor;t.prototype.constructor=t}}}},707:function(t,e,r){t.exports=minimatch;minimatch.Minimatch=Minimatch;var i={sep:"/"};try{i=r(622)}catch(t){}var n=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};var a=r(793);var s={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};var o="[^/]";var c=o+"*?";var h="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";var l="(?:(?!(?:\\/|^)\\.).)*?";var u=charSet("().*{}+?[]^$\\!");function charSet(t){return t.split("").reduce((function(t,e){t[e]=true;return t}),{})}var p=/\/+/;minimatch.filter=filter;function filter(t,e){e=e||{};return function(r,i,n){return minimatch(r,t,e)}}function ext(t,e){t=t||{};e=e||{};var r={};Object.keys(e).forEach((function(t){r[t]=e[t]}));Object.keys(t).forEach((function(e){r[e]=t[e]}));return r}minimatch.defaults=function(t){if(!t||!Object.keys(t).length)return minimatch;var e=minimatch;var r=function minimatch(r,i,n){return e.minimatch(r,i,ext(t,n))};r.Minimatch=function Minimatch(r,i){return new e.Minimatch(r,ext(t,i))};return r};Minimatch.defaults=function(t){if(!t||!Object.keys(t).length)return Minimatch;return minimatch.defaults(t).Minimatch};function minimatch(t,e,r){if(typeof e!=="string"){throw new TypeError("glob pattern string required")}if(!r)r={};if(!r.nocomment&&e.charAt(0)==="#"){return false}if(e.trim()==="")return t==="";return new Minimatch(e,r).match(t)}function Minimatch(t,e){if(!(this instanceof Minimatch)){return new Minimatch(t,e)}if(typeof t!=="string"){throw new TypeError("glob pattern string required")}if(!e)e={};t=t.trim();if(i.sep!=="/"){t=t.split(i.sep).join("/")}this.options=e;this.set=[];this.pattern=t;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){if(this._made)return;var t=this.pattern;var e=this.options;if(!e.nocomment&&t.charAt(0)==="#"){this.comment=true;return}if(!t){this.empty=true;return}this.parseNegate();var r=this.globSet=this.braceExpand();if(e.debug)this.debug=console.error;this.debug(this.pattern,r);r=this.globParts=r.map((function(t){return t.split(p)}));this.debug(this.pattern,r);r=r.map((function(t,e,r){return t.map(this.parse,this)}),this);this.debug(this.pattern,r);r=r.filter((function(t){return t.indexOf(false)===-1}));this.debug(this.pattern,r);this.set=r}Minimatch.prototype.parseNegate=parseNegate;function parseNegate(){var t=this.pattern;var e=false;var r=this.options;var i=0;if(r.nonegate)return;for(var n=0,a=t.length;n<a&&t.charAt(n)==="!";n++){e=!e;i++}if(i)this.pattern=t.substr(i);this.negate=e}minimatch.braceExpand=function(t,e){return braceExpand(t,e)};Minimatch.prototype.braceExpand=braceExpand;function braceExpand(t,e){if(!e){if(this instanceof Minimatch){e=this.options}else{e={}}}t=typeof t==="undefined"?this.pattern:t;if(typeof t==="undefined"){throw new TypeError("undefined pattern")}if(e.nobrace||!t.match(/\{.*\}/)){return[t]}return a(t)}Minimatch.prototype.parse=parse;var v={};function parse(t,e){if(t.length>1024*64){throw new TypeError("pattern is too long")}var r=this.options;if(!r.noglobstar&&t==="**")return n;if(t==="")return"";var i="";var a=!!r.nocase;var h=false;var l=[];var p=[];var d;var m=false;var b=-1;var g=-1;var y=t.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";var _=this;function clearStateChar(){if(d){switch(d){case"*":i+=c;a=true;break;case"?":i+=o;a=true;break;default:i+="\\"+d;break}_.debug("clearStateChar %j %j",d,i);d=false}}for(var w=0,k=t.length,S;w<k&&(S=t.charAt(w));w++){this.debug("%s\t%s %s %j",t,w,i,S);if(h&&u[S]){i+="\\"+S;h=false;continue}switch(S){case"/":return false;case"\\":clearStateChar();h=true;continue;case"?":case"*":case"+":case"@":case"!":this.debug("%s\t%s %s %j <-- stateChar",t,w,i,S);if(m){this.debug(" in class");if(S==="!"&&w===g+1)S="^";i+=S;continue}_.debug("call clearStateChar %j",d);clearStateChar();d=S;if(r.noext)clearStateChar();continue;case"(":if(m){i+="(";continue}if(!d){i+="\\(";continue}l.push({type:d,start:w-1,reStart:i.length,open:s[d].open,close:s[d].close});i+=d==="!"?"(?:(?!(?:":"(?:";this.debug("plType %j %j",d,i);d=false;continue;case")":if(m||!l.length){i+="\\)";continue}clearStateChar();a=true;var E=l.pop();i+=E.close;if(E.type==="!"){p.push(E)}E.reEnd=i.length;continue;case"|":if(m||!l.length||h){i+="\\|";h=false;continue}clearStateChar();i+="|";continue;case"[":clearStateChar();if(m){i+="\\"+S;continue}m=true;g=w;b=i.length;i+=S;continue;case"]":if(w===g+1||!m){i+="\\"+S;h=false;continue}if(m){var O=t.substring(g+1,w);try{RegExp("["+O+"]")}catch(t){var x=this.parse(O,v);i=i.substr(0,b)+"\\["+x[0]+"\\]";a=a||x[1];m=false;continue}}a=true;m=false;i+=S;continue;default:clearStateChar();if(h){h=false}else if(u[S]&&!(S==="^"&&m)){i+="\\"}i+=S}}if(m){O=t.substr(g+1);x=this.parse(O,v);i=i.substr(0,b)+"\\["+x[0];a=a||x[1]}for(E=l.pop();E;E=l.pop()){var A=i.slice(E.reStart+E.open.length);this.debug("setting tail",i,E);A=A.replace(/((?:\\{2}){0,64})(\\?)\|/g,(function(t,e,r){if(!r){r="\\"}return e+e+r+"|"}));this.debug("tail=%j\n %s",A,A,E,i);var G=E.type==="*"?c:E.type==="?"?o:"\\"+E.type;a=true;i=i.slice(0,E.reStart)+G+"\\("+A}clearStateChar();if(h){i+="\\\\"}var j=false;switch(i.charAt(0)){case".":case"[":case"(":j=true}for(var I=p.length-1;I>-1;I--){var M=p[I];var C=i.slice(0,M.reStart);var L=i.slice(M.reStart,M.reEnd-8);var R=i.slice(M.reEnd-8,M.reEnd);var T=i.slice(M.reEnd);R+=T;var N=C.split("(").length-1;var P=T;for(w=0;w<N;w++){P=P.replace(/\)[+*?]?/,"")}T=P;var D="";if(T===""&&e!==v){D="$"}var $=C+L+T+D+R;i=$}if(i!==""&&a){i="(?=.)"+i}if(j){i=y+i}if(e===v){return[i,a]}if(!a){return globUnescape(t)}var F=r.nocase?"i":"";try{var q=new RegExp("^"+i+"$",F)}catch(t){return new RegExp("$.")}q._glob=t;q._src=i;return q}minimatch.makeRe=function(t,e){return new Minimatch(t,e||{}).makeRe()};Minimatch.prototype.makeRe=makeRe;function makeRe(){if(this.regexp||this.regexp===false)return this.regexp;var t=this.set;if(!t.length){this.regexp=false;return this.regexp}var e=this.options;var r=e.noglobstar?c:e.dot?h:l;var i=e.nocase?"i":"";var a=t.map((function(t){return t.map((function(t){return t===n?r:typeof t==="string"?regExpEscape(t):t._src})).join("\\/")})).join("|");a="^(?:"+a+")$";if(this.negate)a="^(?!"+a+").*$";try{this.regexp=new RegExp(a,i)}catch(t){this.regexp=false}return this.regexp}minimatch.match=function(t,e,r){r=r||{};var i=new Minimatch(e,r);t=t.filter((function(t){return i.match(t)}));if(i.options.nonull&&!t.length){t.push(e)}return t};Minimatch.prototype.match=match;function match(t,e){this.debug("match",t,this.pattern);if(this.comment)return false;if(this.empty)return t==="";if(t==="/"&&e)return true;var r=this.options;if(i.sep!=="/"){t=t.split(i.sep).join("/")}t=t.split(p);this.debug(this.pattern,"split",t);var n=this.set;this.debug(this.pattern,"set",n);var a;var s;for(s=t.length-1;s>=0;s--){a=t[s];if(a)break}for(s=0;s<n.length;s++){var o=n[s];var c=t;if(r.matchBase&&o.length===1){c=[a]}var h=this.matchOne(c,o,e);if(h){if(r.flipNegate)return true;return!this.negate}}if(r.flipNegate)return false;return this.negate}Minimatch.prototype.matchOne=function(t,e,r){var i=this.options;this.debug("matchOne",{this:this,file:t,pattern:e});this.debug("matchOne",t.length,e.length);for(var a=0,s=0,o=t.length,c=e.length;a<o&&s<c;a++,s++){this.debug("matchOne loop");var h=e[s];var l=t[a];this.debug(e,h,l);if(h===false)return false;if(h===n){this.debug("GLOBSTAR",[e,h,l]);var u=a;var p=s+1;if(p===c){this.debug("** at the end");for(;a<o;a++){if(t[a]==="."||t[a]===".."||!i.dot&&t[a].charAt(0)===".")return false}return true}while(u<o){var v=t[u];this.debug("\nglobstar while",t,u,e,p,v);if(this.matchOne(t.slice(u),e.slice(p),r)){this.debug("globstar found match!",u,o,v);return true}else{if(v==="."||v===".."||!i.dot&&v.charAt(0)==="."){this.debug("dot detected!",t,u,e,p);break}this.debug("globstar swallow a segment, and continue");u++}}if(r){this.debug("\n>>> no match, partial?",t,u,e,p);if(u===o)return true}return false}var d;if(typeof h==="string"){if(i.nocase){d=l.toLowerCase()===h.toLowerCase()}else{d=l===h}this.debug("string match",h,l,d)}else{d=l.match(h);this.debug("pattern match",h,l,d)}if(!d)return false}if(a===o&&s===c){return true}else if(a===o){return r}else if(s===c){var m=a===o-1&&t[a]==="";return m}throw new Error("wtf?")};function globUnescape(t){return t.replace(/\\(.)/g,"$1")}function regExpEscape(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},39:function(t,e,r){var i=r(315);t.exports=i(once);t.exports.strict=i(onceStrict);once.proto=once((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})}));function once(t){var f=function(){if(f.called)return f.value;f.called=true;return f.value=t.apply(this,arguments)};f.called=false;return f}function onceStrict(t){var f=function(){if(f.called)throw new Error(f.onceError);f.called=true;return f.value=t.apply(this,arguments)};var e=t.name||"Function wrapped with `once`";f.onceError=e+" shouldn't be called more than once";f.called=false;return f}},194:function(t){"use strict";function posix(t){return t.charAt(0)==="/"}function win32(t){var e=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;var r=e.exec(t);var i=r[1]||"";var n=Boolean(i&&i.charAt(1)!==":");return Boolean(r[2]||n)}t.exports=process.platform==="win32"?win32:posix;t.exports.posix=posix;t.exports.win32=win32},315:function(t){t.exports=wrappy;function wrappy(t,e){if(t&&e)return wrappy(t)(e);if(typeof t!=="function")throw new TypeError("need wrapper function");Object.keys(t).forEach((function(e){wrapper[e]=t[e]}));return wrapper;function wrapper(){var e=new Array(arguments.length);for(var r=0;r<e.length;r++){e[r]=arguments[r]}var i=t.apply(this,e);var n=e[e.length-1];if(typeof i==="function"&&i!==n){Object.keys(n).forEach((function(t){i[t]=n[t]}))}return i}}},357:function(t){"use strict";t.exports=require("assert")},614:function(t){"use strict";t.exports=require("events")},747:function(t){"use strict";t.exports=require("fs")},622:function(t){"use strict";t.exports=require("path")},669:function(t){"use strict";t.exports=require("util")}};var e={};function __nccwpck_require__(r){var i=e[r];if(i!==undefined){return i.exports}var n=e[r]={exports:{}};var a=true;try{t[r](n,n.exports,__nccwpck_require__);a=false}finally{if(a)delete e[r]}return n.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(604);module.exports=r})();
1
+ (function(){var t={155:function(t){"use strict";t.exports=balanced;function balanced(t,e,r){if(t instanceof RegExp)t=maybeMatch(t,r);if(e instanceof RegExp)e=maybeMatch(e,r);var i=range(t,e,r);return i&&{start:i[0],end:i[1],pre:r.slice(0,i[0]),body:r.slice(i[0]+t.length,i[1]),post:r.slice(i[1]+e.length)}}function maybeMatch(t,e){var r=e.match(t);return r?r[0]:null}balanced.range=range;function range(t,e,r){var i,n,s,a,o;var c=r.indexOf(t);var l=r.indexOf(e,c+1);var h=c;if(c>=0&&l>0){if(t===e){return[c,l]}i=[];s=r.length;while(h>=0&&!o){if(h==c){i.push(h);c=r.indexOf(t,h+1)}else if(i.length==1){o=[i.pop(),l]}else{n=i.pop();if(n<s){s=n;a=l}l=r.indexOf(e,h+1)}h=c<l&&c>=0?c:l}if(i.length){o=[s,a]}}return o}},461:function(t,e,r){var i=r(155);t.exports=expandTop;var n="\0SLASH"+Math.random()+"\0";var s="\0OPEN"+Math.random()+"\0";var a="\0CLOSE"+Math.random()+"\0";var o="\0COMMA"+Math.random()+"\0";var c="\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(n).split("\\{").join(s).split("\\}").join(a).split("\\,").join(o).split("\\.").join(c)}function unescapeBraces(t){return t.split(n).join("\\").split(s).join("{").split(a).join("}").split(o).join(",").split(c).join(".")}function parseCommaParts(t){if(!t)return[""];var e=[];var r=i("{","}",t);if(!r)return t.split(",");var n=r.pre;var s=r.body;var a=r.post;var o=n.split(",");o[o.length-1]+="{"+s+"}";var c=parseCommaParts(a);if(a.length){o[o.length-1]+=c.shift();o.push.apply(o,c)}e.push.apply(e,o);return e}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,e){return t<=e}function gte(t,e){return t>=e}function expand(t,e){var r=[];var n=i("{","}",t);if(!n)return[t];var s=n.pre;var o=n.post.length?expand(n.post,false):[""];if(/\$$/.test(n.pre)){for(var c=0;c<o.length;c++){var l=s+"{"+n.body+"}"+o[c];r.push(l)}}else{var h=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body);var u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body);var p=h||u;var v=n.body.indexOf(",")>=0;if(!p&&!v){if(n.post.match(/,.*\}/)){t=n.pre+"{"+n.body+a+n.post;return expand(t)}return[t]}var d;if(p){d=n.body.split(/\.\./)}else{d=parseCommaParts(n.body);if(d.length===1){d=expand(d[0],false).map(embrace);if(d.length===1){return o.map((function(t){return n.pre+d[0]+t}))}}}var b;if(p){var g=numeric(d[0]);var y=numeric(d[1]);var _=Math.max(d[0].length,d[1].length);var w=d.length==3?Math.abs(numeric(d[2])):1;var k=lte;var S=y<g;if(S){w*=-1;k=gte}var E=d.some(isPadded);b=[];for(var O=g;k(O,y);O+=w){var x;if(u){x=String.fromCharCode(O);if(x==="\\")x=""}else{x=String(O);if(E){var A=_-x.length;if(A>0){var G=new Array(A+1).join("0");if(O<0)x="-"+G+x.slice(1);else x=G+x}}}b.push(x)}}else{b=[];for(var j=0;j<d.length;j++){b.push.apply(b,expand(d[j],false))}}for(var j=0;j<b.length;j++){for(var c=0;c<o.length;c++){var l=s+b[j]+o[c];if(!e||p||l)r.push(l)}}}return r}},737:function(t,e,r){t.exports=realpath;realpath.realpath=realpath;realpath.sync=realpathSync;realpath.realpathSync=realpathSync;realpath.monkeypatch=monkeypatch;realpath.unmonkeypatch=unmonkeypatch;var i=r(147);var n=i.realpath;var s=i.realpathSync;var a=process.version;var o=/^v[0-5]\./.test(a);var c=r(613);function newError(t){return t&&t.syscall==="realpath"&&(t.code==="ELOOP"||t.code==="ENOMEM"||t.code==="ENAMETOOLONG")}function realpath(t,e,r){if(o){return n(t,e,r)}if(typeof e==="function"){r=e;e=null}n(t,e,(function(i,n){if(newError(i)){c.realpath(t,e,r)}else{r(i,n)}}))}function realpathSync(t,e){if(o){return s(t,e)}try{return s(t,e)}catch(r){if(newError(r)){return c.realpathSync(t,e)}else{throw r}}}function monkeypatch(){i.realpath=realpath;i.realpathSync=realpathSync}function unmonkeypatch(){i.realpath=n;i.realpathSync=s}},613:function(t,e,r){var i=r(17);var n=process.platform==="win32";var s=r(147);var a=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function rethrow(){var t;if(a){var e=new Error;t=debugCallback}else t=missingCallback;return t;function debugCallback(t){if(t){e.message=t.message;t=e;missingCallback(t)}}function missingCallback(t){if(t){if(process.throwDeprecation)throw t;else if(!process.noDeprecation){var e="fs: missing callback "+(t.stack||t.message);if(process.traceDeprecation)console.trace(e);else console.error(e)}}}}function maybeCallback(t){return typeof t==="function"?t:rethrow()}var o=i.normalize;if(n){var c=/(.*?)(?:[\/\\]+|$)/g}else{var c=/(.*?)(?:[\/]+|$)/g}if(n){var l=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/}else{var l=/^[\/]*/}e.realpathSync=function realpathSync(t,e){t=i.resolve(t);if(e&&Object.prototype.hasOwnProperty.call(e,t)){return e[t]}var r=t,a={},o={};var h;var u;var p;var v;start();function start(){var e=l.exec(t);h=e[0].length;u=e[0];p=e[0];v="";if(n&&!o[p]){s.lstatSync(p);o[p]=true}}while(h<t.length){c.lastIndex=h;var d=c.exec(t);v=u;u+=d[0];p=v+d[1];h=c.lastIndex;if(o[p]||e&&e[p]===p){continue}var b;if(e&&Object.prototype.hasOwnProperty.call(e,p)){b=e[p]}else{var g=s.lstatSync(p);if(!g.isSymbolicLink()){o[p]=true;if(e)e[p]=p;continue}var y=null;if(!n){var _=g.dev.toString(32)+":"+g.ino.toString(32);if(a.hasOwnProperty(_)){y=a[_]}}if(y===null){s.statSync(p);y=s.readlinkSync(p)}b=i.resolve(v,y);if(e)e[p]=b;if(!n)a[_]=y}t=i.resolve(b,t.slice(h));start()}if(e)e[r]=t;return t};e.realpath=function realpath(t,e,r){if(typeof r!=="function"){r=maybeCallback(e);e=null}t=i.resolve(t);if(e&&Object.prototype.hasOwnProperty.call(e,t)){return process.nextTick(r.bind(null,null,e[t]))}var a=t,o={},h={};var u;var p;var v;var d;start();function start(){var e=l.exec(t);u=e[0].length;p=e[0];v=e[0];d="";if(n&&!h[v]){s.lstat(v,(function(t){if(t)return r(t);h[v]=true;LOOP()}))}else{process.nextTick(LOOP)}}function LOOP(){if(u>=t.length){if(e)e[a]=t;return r(null,t)}c.lastIndex=u;var i=c.exec(t);d=p;p+=i[0];v=d+i[1];u=c.lastIndex;if(h[v]||e&&e[v]===v){return process.nextTick(LOOP)}if(e&&Object.prototype.hasOwnProperty.call(e,v)){return gotResolvedLink(e[v])}return s.lstat(v,gotStat)}function gotStat(t,i){if(t)return r(t);if(!i.isSymbolicLink()){h[v]=true;if(e)e[v]=v;return process.nextTick(LOOP)}if(!n){var a=i.dev.toString(32)+":"+i.ino.toString(32);if(o.hasOwnProperty(a)){return gotTarget(null,o[a],v)}}s.stat(v,(function(t){if(t)return r(t);s.readlink(v,(function(t,e){if(!n)o[a]=e;gotTarget(t,e)}))}))}function gotTarget(t,n,s){if(t)return r(t);var a=i.resolve(d,n);if(e)e[s]=a;gotResolvedLink(a)}function gotResolvedLink(e){t=i.resolve(e,t.slice(u));start()}}},930:function(t,e,r){e.setopts=setopts;e.ownProp=ownProp;e.makeAbs=makeAbs;e.finish=finish;e.mark=mark;e.isIgnored=isIgnored;e.childrenIgnored=childrenIgnored;function ownProp(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var i=r(147);var n=r(17);var s=r(67);var a=r(249);var o=s.Minimatch;function alphasort(t,e){return t.localeCompare(e,"en")}function setupIgnores(t,e){t.ignore=e.ignore||[];if(!Array.isArray(t.ignore))t.ignore=[t.ignore];if(t.ignore.length){t.ignore=t.ignore.map(ignoreMap)}}function ignoreMap(t){var e=null;if(t.slice(-3)==="/**"){var r=t.replace(/(\/\*\*)+$/,"");e=new o(r,{dot:true})}return{matcher:new o(t,{dot:true}),gmatcher:e}}function setopts(t,e,r){if(!r)r={};if(r.matchBase&&-1===e.indexOf("/")){if(r.noglobstar){throw new Error("base matching requires globstar")}e="**/"+e}t.silent=!!r.silent;t.pattern=e;t.strict=r.strict!==false;t.realpath=!!r.realpath;t.realpathCache=r.realpathCache||Object.create(null);t.follow=!!r.follow;t.dot=!!r.dot;t.mark=!!r.mark;t.nodir=!!r.nodir;if(t.nodir)t.mark=true;t.sync=!!r.sync;t.nounique=!!r.nounique;t.nonull=!!r.nonull;t.nosort=!!r.nosort;t.nocase=!!r.nocase;t.stat=!!r.stat;t.noprocess=!!r.noprocess;t.absolute=!!r.absolute;t.fs=r.fs||i;t.maxLength=r.maxLength||Infinity;t.cache=r.cache||Object.create(null);t.statCache=r.statCache||Object.create(null);t.symlinks=r.symlinks||Object.create(null);setupIgnores(t,r);t.changedCwd=false;var s=process.cwd();if(!ownProp(r,"cwd"))t.cwd=s;else{t.cwd=n.resolve(r.cwd);t.changedCwd=t.cwd!==s}t.root=r.root||n.resolve(t.cwd,"/");t.root=n.resolve(t.root);if(process.platform==="win32")t.root=t.root.replace(/\\/g,"/");t.cwdAbs=a(t.cwd)?t.cwd:makeAbs(t,t.cwd);if(process.platform==="win32")t.cwdAbs=t.cwdAbs.replace(/\\/g,"/");t.nomount=!!r.nomount;r.nonegate=true;r.nocomment=true;r.allowWindowsEscape=true;t.minimatch=new o(e,r);t.options=t.minimatch.options}function finish(t){var e=t.nounique;var r=e?[]:Object.create(null);for(var i=0,n=t.matches.length;i<n;i++){var s=t.matches[i];if(!s||Object.keys(s).length===0){if(t.nonull){var a=t.minimatch.globSet[i];if(e)r.push(a);else r[a]=true}}else{var o=Object.keys(s);if(e)r.push.apply(r,o);else o.forEach((function(t){r[t]=true}))}}if(!e)r=Object.keys(r);if(!t.nosort)r=r.sort(alphasort);if(t.mark){for(var i=0;i<r.length;i++){r[i]=t._mark(r[i])}if(t.nodir){r=r.filter((function(e){var r=!/\/$/.test(e);var i=t.cache[e]||t.cache[makeAbs(t,e)];if(r&&i)r=i!=="DIR"&&!Array.isArray(i);return r}))}}if(t.ignore.length)r=r.filter((function(e){return!isIgnored(t,e)}));t.found=r}function mark(t,e){var r=makeAbs(t,e);var i=t.cache[r];var n=e;if(i){var s=i==="DIR"||Array.isArray(i);var a=e.slice(-1)==="/";if(s&&!a)n+="/";else if(!s&&a)n=n.slice(0,-1);if(n!==e){var o=makeAbs(t,n);t.statCache[o]=t.statCache[r];t.cache[o]=t.cache[r]}}return n}function makeAbs(t,e){var r=e;if(e.charAt(0)==="/"){r=n.join(t.root,e)}else if(a(e)||e===""){r=e}else if(t.changedCwd){r=n.resolve(t.cwd,e)}else{r=n.resolve(e)}if(process.platform==="win32")r=r.replace(/\\/g,"/");return r}function isIgnored(t,e){if(!t.ignore.length)return false;return t.ignore.some((function(t){return t.matcher.match(e)||!!(t.gmatcher&&t.gmatcher.match(e))}))}function childrenIgnored(t,e){if(!t.ignore.length)return false;return t.ignore.some((function(t){return!!(t.gmatcher&&t.gmatcher.match(e))}))}},947:function(t,e,r){t.exports=glob;var i=r(737);var n=r(67);var s=n.Minimatch;var a=r(315);var o=r(361).EventEmitter;var c=r(17);var l=r(491);var h=r(249);var u=r(44);var p=r(930);var v=p.setopts;var d=p.ownProp;var b=r(900);var g=r(837);var y=p.childrenIgnored;var _=p.isIgnored;var w=r(556);function glob(t,e,r){if(typeof e==="function")r=e,e={};if(!e)e={};if(e.sync){if(r)throw new TypeError("callback provided to sync glob");return u(t,e)}return new Glob(t,e,r)}glob.sync=u;var k=glob.GlobSync=u.GlobSync;glob.glob=glob;function extend(t,e){if(e===null||typeof e!=="object"){return t}var r=Object.keys(e);var i=r.length;while(i--){t[r[i]]=e[r[i]]}return t}glob.hasMagic=function(t,e){var r=extend({},e);r.noprocess=true;var i=new Glob(t,r);var n=i.minimatch.set;if(!t)return false;if(n.length>1)return true;for(var s=0;s<n[0].length;s++){if(typeof n[0][s]!=="string")return true}return false};glob.Glob=Glob;a(Glob,o);function Glob(t,e,r){if(typeof e==="function"){r=e;e=null}if(e&&e.sync){if(r)throw new TypeError("callback provided to sync glob");return new k(t,e)}if(!(this instanceof Glob))return new Glob(t,e,r);v(this,t,e);this._didRealPath=false;var i=this.minimatch.set.length;this.matches=new Array(i);if(typeof r==="function"){r=w(r);this.on("error",r);this.on("end",(function(t){r(null,t)}))}var n=this;this._processing=0;this._emitQueue=[];this._processQueue=[];this.paused=false;if(this.noprocess)return this;if(i===0)return done();var s=true;for(var a=0;a<i;a++){this._process(this.minimatch.set[a],a,false,done)}s=false;function done(){--n._processing;if(n._processing<=0){if(s){process.nextTick((function(){n._finish()}))}else{n._finish()}}}}Glob.prototype._finish=function(){l(this instanceof Glob);if(this.aborted)return;if(this.realpath&&!this._didRealpath)return this._realpath();p.finish(this);this.emit("end",this.found)};Glob.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=true;var t=this.matches.length;if(t===0)return this._finish();var e=this;for(var r=0;r<this.matches.length;r++)this._realpathSet(r,next);function next(){if(--t===0)e._finish()}};Glob.prototype._realpathSet=function(t,e){var r=this.matches[t];if(!r)return e();var n=Object.keys(r);var s=this;var a=n.length;if(a===0)return e();var o=this.matches[t]=Object.create(null);n.forEach((function(r,n){r=s._makeAbs(r);i.realpath(r,s.realpathCache,(function(i,n){if(!i)o[n]=true;else if(i.syscall==="stat")o[r]=true;else s.emit("error",i);if(--a===0){s.matches[t]=o;e()}}))}))};Glob.prototype._mark=function(t){return p.mark(this,t)};Glob.prototype._makeAbs=function(t){return p.makeAbs(this,t)};Glob.prototype.abort=function(){this.aborted=true;this.emit("abort")};Glob.prototype.pause=function(){if(!this.paused){this.paused=true;this.emit("pause")}};Glob.prototype.resume=function(){if(this.paused){this.emit("resume");this.paused=false;if(this._emitQueue.length){var t=this._emitQueue.slice(0);this._emitQueue.length=0;for(var e=0;e<t.length;e++){var r=t[e];this._emitMatch(r[0],r[1])}}if(this._processQueue.length){var i=this._processQueue.slice(0);this._processQueue.length=0;for(var e=0;e<i.length;e++){var n=i[e];this._processing--;this._process(n[0],n[1],n[2],n[3])}}}};Glob.prototype._process=function(t,e,r,i){l(this instanceof Glob);l(typeof i==="function");if(this.aborted)return;this._processing++;if(this.paused){this._processQueue.push([t,e,r,i]);return}var s=0;while(typeof t[s]==="string"){s++}var a;switch(s){case t.length:this._processSimple(t.join("/"),e,i);return;case 0:a=null;break;default:a=t.slice(0,s).join("/");break}var o=t.slice(s);var c;if(a===null)c=".";else if(h(a)||h(t.map((function(t){return typeof t==="string"?t:"[*]"})).join("/"))){if(!a||!h(a))a="/"+a;c=a}else c=a;var u=this._makeAbs(c);if(y(this,c))return i();var p=o[0]===n.GLOBSTAR;if(p)this._processGlobStar(a,c,u,o,e,r,i);else this._processReaddir(a,c,u,o,e,r,i)};Glob.prototype._processReaddir=function(t,e,r,i,n,s,a){var o=this;this._readdir(r,s,(function(c,l){return o._processReaddir2(t,e,r,i,n,s,l,a)}))};Glob.prototype._processReaddir2=function(t,e,r,i,n,s,a,o){if(!a)return o();var l=i[0];var h=!!this.minimatch.negate;var u=l._glob;var p=this.dot||u.charAt(0)===".";var v=[];for(var d=0;d<a.length;d++){var b=a[d];if(b.charAt(0)!=="."||p){var g;if(h&&!t){g=!b.match(l)}else{g=b.match(l)}if(g)v.push(b)}}var y=v.length;if(y===0)return o();if(i.length===1&&!this.mark&&!this.stat){if(!this.matches[n])this.matches[n]=Object.create(null);for(var d=0;d<y;d++){var b=v[d];if(t){if(t!=="/")b=t+"/"+b;else b=t+b}if(b.charAt(0)==="/"&&!this.nomount){b=c.join(this.root,b)}this._emitMatch(n,b)}return o()}i.shift();for(var d=0;d<y;d++){var b=v[d];var _;if(t){if(t!=="/")b=t+"/"+b;else b=t+b}this._process([b].concat(i),n,s,o)}o()};Glob.prototype._emitMatch=function(t,e){if(this.aborted)return;if(_(this,e))return;if(this.paused){this._emitQueue.push([t,e]);return}var r=h(e)?e:this._makeAbs(e);if(this.mark)e=this._mark(e);if(this.absolute)e=r;if(this.matches[t][e])return;if(this.nodir){var i=this.cache[r];if(i==="DIR"||Array.isArray(i))return}this.matches[t][e]=true;var n=this.statCache[r];if(n)this.emit("stat",e,n);this.emit("match",e)};Glob.prototype._readdirInGlobStar=function(t,e){if(this.aborted)return;if(this.follow)return this._readdir(t,false,e);var r="lstat\0"+t;var i=this;var n=b(r,lstatcb_);if(n)i.fs.lstat(t,n);function lstatcb_(r,n){if(r&&r.code==="ENOENT")return e();var s=n&&n.isSymbolicLink();i.symlinks[t]=s;if(!s&&n&&!n.isDirectory()){i.cache[t]="FILE";e()}else i._readdir(t,false,e)}};Glob.prototype._readdir=function(t,e,r){if(this.aborted)return;r=b("readdir\0"+t+"\0"+e,r);if(!r)return;if(e&&!d(this.symlinks,t))return this._readdirInGlobStar(t,r);if(d(this.cache,t)){var i=this.cache[t];if(!i||i==="FILE")return r();if(Array.isArray(i))return r(null,i)}var n=this;n.fs.readdir(t,readdirCb(this,t,r))};function readdirCb(t,e,r){return function(i,n){if(i)t._readdirError(e,i,r);else t._readdirEntries(e,n,r)}}Glob.prototype._readdirEntries=function(t,e,r){if(this.aborted)return;if(!this.mark&&!this.stat){for(var i=0;i<e.length;i++){var n=e[i];if(t==="/")n=t+n;else n=t+"/"+n;this.cache[n]=true}}this.cache[t]=e;return r(null,e)};Glob.prototype._readdirError=function(t,e,r){if(this.aborted)return;switch(e.code){case"ENOTSUP":case"ENOTDIR":var i=this._makeAbs(t);this.cache[i]="FILE";if(i===this.cwdAbs){var n=new Error(e.code+" invalid cwd "+this.cwd);n.path=this.cwd;n.code=e.code;this.emit("error",n);this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(t)]=false;break;default:this.cache[this._makeAbs(t)]=false;if(this.strict){this.emit("error",e);this.abort()}if(!this.silent)console.error("glob error",e);break}return r()};Glob.prototype._processGlobStar=function(t,e,r,i,n,s,a){var o=this;this._readdir(r,s,(function(c,l){o._processGlobStar2(t,e,r,i,n,s,l,a)}))};Glob.prototype._processGlobStar2=function(t,e,r,i,n,s,a,o){if(!a)return o();var c=i.slice(1);var l=t?[t]:[];var h=l.concat(c);this._process(h,n,false,o);var u=this.symlinks[r];var p=a.length;if(u&&s)return o();for(var v=0;v<p;v++){var d=a[v];if(d.charAt(0)==="."&&!this.dot)continue;var b=l.concat(a[v],c);this._process(b,n,true,o);var g=l.concat(a[v],i);this._process(g,n,true,o)}o()};Glob.prototype._processSimple=function(t,e,r){var i=this;this._stat(t,(function(n,s){i._processSimple2(t,e,n,s,r)}))};Glob.prototype._processSimple2=function(t,e,r,i,n){if(!this.matches[e])this.matches[e]=Object.create(null);if(!i)return n();if(t&&h(t)&&!this.nomount){var s=/[\/\\]$/.test(t);if(t.charAt(0)==="/"){t=c.join(this.root,t)}else{t=c.resolve(this.root,t);if(s)t+="/"}}if(process.platform==="win32")t=t.replace(/\\/g,"/");this._emitMatch(e,t);n()};Glob.prototype._stat=function(t,e){var r=this._makeAbs(t);var i=t.slice(-1)==="/";if(t.length>this.maxLength)return e();if(!this.stat&&d(this.cache,r)){var n=this.cache[r];if(Array.isArray(n))n="DIR";if(!i||n==="DIR")return e(null,n);if(i&&n==="FILE")return e()}var s;var a=this.statCache[r];if(a!==undefined){if(a===false)return e(null,a);else{var o=a.isDirectory()?"DIR":"FILE";if(i&&o==="FILE")return e();else return e(null,o,a)}}var c=this;var l=b("stat\0"+r,lstatcb_);if(l)c.fs.lstat(r,l);function lstatcb_(i,n){if(n&&n.isSymbolicLink()){return c.fs.stat(r,(function(i,s){if(i)c._stat2(t,r,null,n,e);else c._stat2(t,r,i,s,e)}))}else{c._stat2(t,r,i,n,e)}}};Glob.prototype._stat2=function(t,e,r,i,n){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR")){this.statCache[e]=false;return n()}var s=t.slice(-1)==="/";this.statCache[e]=i;if(e.slice(-1)==="/"&&i&&!i.isDirectory())return n(null,false,i);var a=true;if(i)a=i.isDirectory()?"DIR":"FILE";this.cache[e]=this.cache[e]||a;if(s&&a==="FILE")return n();return n(null,a,i)}},44:function(t,e,r){t.exports=globSync;globSync.GlobSync=GlobSync;var i=r(737);var n=r(67);var s=n.Minimatch;var a=r(947).Glob;var o=r(837);var c=r(17);var l=r(491);var h=r(249);var u=r(930);var p=u.setopts;var v=u.ownProp;var d=u.childrenIgnored;var b=u.isIgnored;function globSync(t,e){if(typeof e==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");return new GlobSync(t,e).found}function GlobSync(t,e){if(!t)throw new Error("must provide pattern");if(typeof e==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof GlobSync))return new GlobSync(t,e);p(this,t,e);if(this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var i=0;i<r;i++){this._process(this.minimatch.set[i],i,false)}this._finish()}GlobSync.prototype._finish=function(){l(this instanceof GlobSync);if(this.realpath){var t=this;this.matches.forEach((function(e,r){var n=t.matches[r]=Object.create(null);for(var s in e){try{s=t._makeAbs(s);var a=i.realpathSync(s,t.realpathCache);n[a]=true}catch(e){if(e.syscall==="stat")n[t._makeAbs(s)]=true;else throw e}}}))}u.finish(this)};GlobSync.prototype._process=function(t,e,r){l(this instanceof GlobSync);var i=0;while(typeof t[i]==="string"){i++}var s;switch(i){case t.length:this._processSimple(t.join("/"),e);return;case 0:s=null;break;default:s=t.slice(0,i).join("/");break}var a=t.slice(i);var o;if(s===null)o=".";else if(h(s)||h(t.map((function(t){return typeof t==="string"?t:"[*]"})).join("/"))){if(!s||!h(s))s="/"+s;o=s}else o=s;var c=this._makeAbs(o);if(d(this,o))return;var u=a[0]===n.GLOBSTAR;if(u)this._processGlobStar(s,o,c,a,e,r);else this._processReaddir(s,o,c,a,e,r)};GlobSync.prototype._processReaddir=function(t,e,r,i,n,s){var a=this._readdir(r,s);if(!a)return;var o=i[0];var l=!!this.minimatch.negate;var h=o._glob;var u=this.dot||h.charAt(0)===".";var p=[];for(var v=0;v<a.length;v++){var d=a[v];if(d.charAt(0)!=="."||u){var b;if(l&&!t){b=!d.match(o)}else{b=d.match(o)}if(b)p.push(d)}}var g=p.length;if(g===0)return;if(i.length===1&&!this.mark&&!this.stat){if(!this.matches[n])this.matches[n]=Object.create(null);for(var v=0;v<g;v++){var d=p[v];if(t){if(t.slice(-1)!=="/")d=t+"/"+d;else d=t+d}if(d.charAt(0)==="/"&&!this.nomount){d=c.join(this.root,d)}this._emitMatch(n,d)}return}i.shift();for(var v=0;v<g;v++){var d=p[v];var y;if(t)y=[t,d];else y=[d];this._process(y.concat(i),n,s)}};GlobSync.prototype._emitMatch=function(t,e){if(b(this,e))return;var r=this._makeAbs(e);if(this.mark)e=this._mark(e);if(this.absolute){e=r}if(this.matches[t][e])return;if(this.nodir){var i=this.cache[r];if(i==="DIR"||Array.isArray(i))return}this.matches[t][e]=true;if(this.stat)this._stat(e)};GlobSync.prototype._readdirInGlobStar=function(t){if(this.follow)return this._readdir(t,false);var e;var r;var i;try{r=this.fs.lstatSync(t)}catch(t){if(t.code==="ENOENT"){return null}}var n=r&&r.isSymbolicLink();this.symlinks[t]=n;if(!n&&r&&!r.isDirectory())this.cache[t]="FILE";else e=this._readdir(t,false);return e};GlobSync.prototype._readdir=function(t,e){var r;if(e&&!v(this.symlinks,t))return this._readdirInGlobStar(t);if(v(this.cache,t)){var i=this.cache[t];if(!i||i==="FILE")return null;if(Array.isArray(i))return i}try{return this._readdirEntries(t,this.fs.readdirSync(t))}catch(e){this._readdirError(t,e);return null}};GlobSync.prototype._readdirEntries=function(t,e){if(!this.mark&&!this.stat){for(var r=0;r<e.length;r++){var i=e[r];if(t==="/")i=t+i;else i=t+"/"+i;this.cache[i]=true}}this.cache[t]=e;return e};GlobSync.prototype._readdirError=function(t,e){switch(e.code){case"ENOTSUP":case"ENOTDIR":var r=this._makeAbs(t);this.cache[r]="FILE";if(r===this.cwdAbs){var i=new Error(e.code+" invalid cwd "+this.cwd);i.path=this.cwd;i.code=e.code;throw i}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(t)]=false;break;default:this.cache[this._makeAbs(t)]=false;if(this.strict)throw e;if(!this.silent)console.error("glob error",e);break}};GlobSync.prototype._processGlobStar=function(t,e,r,i,n,s){var a=this._readdir(r,s);if(!a)return;var o=i.slice(1);var c=t?[t]:[];var l=c.concat(o);this._process(l,n,false);var h=a.length;var u=this.symlinks[r];if(u&&s)return;for(var p=0;p<h;p++){var v=a[p];if(v.charAt(0)==="."&&!this.dot)continue;var d=c.concat(a[p],o);this._process(d,n,true);var b=c.concat(a[p],i);this._process(b,n,true)}};GlobSync.prototype._processSimple=function(t,e){var r=this._stat(t);if(!this.matches[e])this.matches[e]=Object.create(null);if(!r)return;if(t&&h(t)&&!this.nomount){var i=/[\/\\]$/.test(t);if(t.charAt(0)==="/"){t=c.join(this.root,t)}else{t=c.resolve(this.root,t);if(i)t+="/"}}if(process.platform==="win32")t=t.replace(/\\/g,"/");this._emitMatch(e,t)};GlobSync.prototype._stat=function(t){var e=this._makeAbs(t);var r=t.slice(-1)==="/";if(t.length>this.maxLength)return false;if(!this.stat&&v(this.cache,e)){var i=this.cache[e];if(Array.isArray(i))i="DIR";if(!r||i==="DIR")return i;if(r&&i==="FILE")return false}var n;var s=this.statCache[e];if(!s){var a;try{a=this.fs.lstatSync(e)}catch(t){if(t&&(t.code==="ENOENT"||t.code==="ENOTDIR")){this.statCache[e]=false;return false}}if(a&&a.isSymbolicLink()){try{s=this.fs.statSync(e)}catch(t){s=a}}else{s=a}}this.statCache[e]=s;var i=true;if(s)i=s.isDirectory()?"DIR":"FILE";this.cache[e]=this.cache[e]||i;if(r&&i==="FILE")return false;return i};GlobSync.prototype._mark=function(t){return u.mark(this,t)};GlobSync.prototype._makeAbs=function(t){return u.makeAbs(this,t)}},900:function(t,e,r){var i=r(928);var n=Object.create(null);var s=r(556);t.exports=i(inflight);function inflight(t,e){if(n[t]){n[t].push(e);return null}else{n[t]=[e];return makeres(t)}}function makeres(t){return s((function RES(){var e=n[t];var r=e.length;var i=slice(arguments);try{for(var s=0;s<r;s++){e[s].apply(null,i)}}finally{if(e.length>r){e.splice(0,r);process.nextTick((function(){RES.apply(null,i)}))}else{delete n[t]}}}))}function slice(t){var e=t.length;var r=[];for(var i=0;i<e;i++)r[i]=t[i];return r}},315:function(t,e,r){try{var i=r(837);if(typeof i.inherits!=="function")throw"";t.exports=i.inherits}catch(e){t.exports=r(959)}},959:function(t){if(typeof Object.create==="function"){t.exports=function inherits(t,e){if(e){t.super_=e;t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:false,writable:true,configurable:true}})}}}else{t.exports=function inherits(t,e){if(e){t.super_=e;var TempCtor=function(){};TempCtor.prototype=e.prototype;t.prototype=new TempCtor;t.prototype.constructor=t}}}},426:function(t){const e=typeof process==="object"&&process&&process.platform==="win32";t.exports=e?{sep:"\\"}:{sep:"/"}},67:function(t,e,r){const i=t.exports=(t,e,r={})=>{assertValidPattern(e);if(!r.nocomment&&e.charAt(0)==="#"){return false}return new Minimatch(e,r).match(t)};t.exports=i;const n=r(426);i.sep=n.sep;const s=Symbol("globstar **");i.GLOBSTAR=s;const a=r(461);const o={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};const c="[^/]";const l=c+"*?";const h="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";const u="(?:(?!(?:\\/|^)\\.).)*?";const charSet=t=>t.split("").reduce(((t,e)=>{t[e]=true;return t}),{});const p=charSet("().*{}+?[]^$\\!");const v=charSet("[.(");const d=/\/+/;i.filter=(t,e={})=>(r,n,s)=>i(r,t,e);const ext=(t,e={})=>{const r={};Object.keys(t).forEach((e=>r[e]=t[e]));Object.keys(e).forEach((t=>r[t]=e[t]));return r};i.defaults=t=>{if(!t||typeof t!=="object"||!Object.keys(t).length){return i}const e=i;const m=(r,i,n)=>e(r,i,ext(t,n));m.Minimatch=class Minimatch extends e.Minimatch{constructor(e,r){super(e,ext(t,r))}};m.Minimatch.defaults=r=>e.defaults(ext(t,r)).Minimatch;m.filter=(r,i)=>e.filter(r,ext(t,i));m.defaults=r=>e.defaults(ext(t,r));m.makeRe=(r,i)=>e.makeRe(r,ext(t,i));m.braceExpand=(r,i)=>e.braceExpand(r,ext(t,i));m.match=(r,i,n)=>e.match(r,i,ext(t,n));return m};i.braceExpand=(t,e)=>braceExpand(t,e);const braceExpand=(t,e={})=>{assertValidPattern(t);if(e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)){return[t]}return a(t)};const b=1024*64;const assertValidPattern=t=>{if(typeof t!=="string"){throw new TypeError("invalid pattern")}if(t.length>b){throw new TypeError("pattern is too long")}};const g=Symbol("subparse");i.makeRe=(t,e)=>new Minimatch(t,e||{}).makeRe();i.match=(t,e,r={})=>{const i=new Minimatch(e,r);t=t.filter((t=>i.match(t)));if(i.options.nonull&&!t.length){t.push(e)}return t};const globUnescape=t=>t.replace(/\\(.)/g,"$1");const regExpEscape=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class Minimatch{constructor(t,e){assertValidPattern(t);if(!e)e={};this.options=e;this.set=[];this.pattern=t;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!e.partial;this.make()}debug(){}make(){const t=this.pattern;const e=this.options;if(!e.nocomment&&t.charAt(0)==="#"){this.comment=true;return}if(!t){this.empty=true;return}this.parseNegate();let r=this.globSet=this.braceExpand();if(e.debug)this.debug=(...t)=>console.error(...t);this.debug(this.pattern,r);r=this.globParts=r.map((t=>t.split(d)));this.debug(this.pattern,r);r=r.map(((t,e,r)=>t.map(this.parse,this)));this.debug(this.pattern,r);r=r.filter((t=>t.indexOf(false)===-1));this.debug(this.pattern,r);this.set=r}parseNegate(){if(this.options.nonegate)return;const t=this.pattern;let e=false;let r=0;for(let i=0;i<t.length&&t.charAt(i)==="!";i++){e=!e;r++}if(r)this.pattern=t.substr(r);this.negate=e}matchOne(t,e,r){var i=this.options;this.debug("matchOne",{this:this,file:t,pattern:e});this.debug("matchOne",t.length,e.length);for(var n=0,a=0,o=t.length,c=e.length;n<o&&a<c;n++,a++){this.debug("matchOne loop");var l=e[a];var h=t[n];this.debug(e,l,h);if(l===false)return false;if(l===s){this.debug("GLOBSTAR",[e,l,h]);var u=n;var p=a+1;if(p===c){this.debug("** at the end");for(;n<o;n++){if(t[n]==="."||t[n]===".."||!i.dot&&t[n].charAt(0)===".")return false}return true}while(u<o){var v=t[u];this.debug("\nglobstar while",t,u,e,p,v);if(this.matchOne(t.slice(u),e.slice(p),r)){this.debug("globstar found match!",u,o,v);return true}else{if(v==="."||v===".."||!i.dot&&v.charAt(0)==="."){this.debug("dot detected!",t,u,e,p);break}this.debug("globstar swallow a segment, and continue");u++}}if(r){this.debug("\n>>> no match, partial?",t,u,e,p);if(u===o)return true}return false}var d;if(typeof l==="string"){d=h===l;this.debug("string match",l,h,d)}else{d=h.match(l);this.debug("pattern match",l,h,d)}if(!d)return false}if(n===o&&a===c){return true}else if(n===o){return r}else if(a===c){return n===o-1&&t[n]===""}throw new Error("wtf?")}braceExpand(){return braceExpand(this.pattern,this.options)}parse(t,e){assertValidPattern(t);const r=this.options;if(t==="**"){if(!r.noglobstar)return s;else t="*"}if(t==="")return"";let i="";let n=!!r.nocase;let a=false;const h=[];const u=[];let d;let b=false;let y=-1;let _=-1;let w;let k;let S;const E=t.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";const clearStateChar=()=>{if(d){switch(d){case"*":i+=l;n=true;break;case"?":i+=c;n=true;break;default:i+="\\"+d;break}this.debug("clearStateChar %j %j",d,i);d=false}};for(let e=0,s;e<t.length&&(s=t.charAt(e));e++){this.debug("%s\t%s %s %j",t,e,i,s);if(a){if(s==="/"){return false}if(p[s]){i+="\\"}i+=s;a=false;continue}switch(s){case"/":{return false}case"\\":clearStateChar();a=true;continue;case"?":case"*":case"+":case"@":case"!":this.debug("%s\t%s %s %j <-- stateChar",t,e,i,s);if(b){this.debug(" in class");if(s==="!"&&e===_+1)s="^";i+=s;continue}this.debug("call clearStateChar %j",d);clearStateChar();d=s;if(r.noext)clearStateChar();continue;case"(":if(b){i+="(";continue}if(!d){i+="\\(";continue}h.push({type:d,start:e-1,reStart:i.length,open:o[d].open,close:o[d].close});i+=d==="!"?"(?:(?!(?:":"(?:";this.debug("plType %j %j",d,i);d=false;continue;case")":if(b||!h.length){i+="\\)";continue}clearStateChar();n=true;k=h.pop();i+=k.close;if(k.type==="!"){u.push(k)}k.reEnd=i.length;continue;case"|":if(b||!h.length){i+="\\|";continue}clearStateChar();i+="|";continue;case"[":clearStateChar();if(b){i+="\\"+s;continue}b=true;_=e;y=i.length;i+=s;continue;case"]":if(e===_+1||!b){i+="\\"+s;continue}w=t.substring(_+1,e);try{RegExp("["+w+"]")}catch(t){S=this.parse(w,g);i=i.substr(0,y)+"\\["+S[0]+"\\]";n=n||S[1];b=false;continue}n=true;b=false;i+=s;continue;default:clearStateChar();if(p[s]&&!(s==="^"&&b)){i+="\\"}i+=s;break}}if(b){w=t.substr(_+1);S=this.parse(w,g);i=i.substr(0,y)+"\\["+S[0];n=n||S[1]}for(k=h.pop();k;k=h.pop()){let t;t=i.slice(k.reStart+k.open.length);this.debug("setting tail",i,k);t=t.replace(/((?:\\{2}){0,64})(\\?)\|/g,((t,e,r)=>{if(!r){r="\\"}return e+e+r+"|"}));this.debug("tail=%j\n %s",t,t,k,i);const e=k.type==="*"?l:k.type==="?"?c:"\\"+k.type;n=true;i=i.slice(0,k.reStart)+e+"\\("+t}clearStateChar();if(a){i+="\\\\"}const O=v[i.charAt(0)];for(let t=u.length-1;t>-1;t--){const r=u[t];const n=i.slice(0,r.reStart);const s=i.slice(r.reStart,r.reEnd-8);let a=i.slice(r.reEnd);const o=i.slice(r.reEnd-8,r.reEnd)+a;const c=n.split("(").length-1;let l=a;for(let t=0;t<c;t++){l=l.replace(/\)[+*?]?/,"")}a=l;const h=a===""&&e!==g?"$":"";i=n+s+a+h+o}if(i!==""&&n){i="(?=.)"+i}if(O){i=E+i}if(e===g){return[i,n]}if(!n){return globUnescape(t)}const x=r.nocase?"i":"";try{return Object.assign(new RegExp("^"+i+"$",x),{_glob:t,_src:i})}catch(t){return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===false)return this.regexp;const t=this.set;if(!t.length){this.regexp=false;return this.regexp}const e=this.options;const r=e.noglobstar?l:e.dot?h:u;const i=e.nocase?"i":"";let n=t.map((t=>{t=t.map((t=>typeof t==="string"?regExpEscape(t):t===s?s:t._src)).reduce(((t,e)=>{if(!(t[t.length-1]===s&&e===s)){t.push(e)}return t}),[]);t.forEach(((e,i)=>{if(e!==s||t[i-1]===s){return}if(i===0){if(t.length>1){t[i+1]="(?:\\/|"+r+"\\/)?"+t[i+1]}else{t[i]=r}}else if(i===t.length-1){t[i-1]+="(?:\\/|"+r+")?"}else{t[i-1]+="(?:\\/|\\/"+r+"\\/)"+t[i+1];t[i+1]=s}}));return t.filter((t=>t!==s)).join("/")})).join("|");n="^(?:"+n+")$";if(this.negate)n="^(?!"+n+").*$";try{this.regexp=new RegExp(n,i)}catch(t){this.regexp=false}return this.regexp}match(t,e=this.partial){this.debug("match",t,this.pattern);if(this.comment)return false;if(this.empty)return t==="";if(t==="/"&&e)return true;const r=this.options;if(n.sep!=="/"){t=t.split(n.sep).join("/")}t=t.split(d);this.debug(this.pattern,"split",t);const i=this.set;this.debug(this.pattern,"set",i);let s;for(let e=t.length-1;e>=0;e--){s=t[e];if(s)break}for(let n=0;n<i.length;n++){const a=i[n];let o=t;if(r.matchBase&&a.length===1){o=[s]}const c=this.matchOne(o,a,e);if(c){if(r.flipNegate)return true;return!this.negate}}if(r.flipNegate)return false;return this.negate}static defaults(t){return i.defaults(t).Minimatch}}i.Minimatch=Minimatch},556:function(t,e,r){var i=r(928);t.exports=i(once);t.exports.strict=i(onceStrict);once.proto=once((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})}));function once(t){var f=function(){if(f.called)return f.value;f.called=true;return f.value=t.apply(this,arguments)};f.called=false;return f}function onceStrict(t){var f=function(){if(f.called)throw new Error(f.onceError);f.called=true;return f.value=t.apply(this,arguments)};var e=t.name||"Function wrapped with `once`";f.onceError=e+" shouldn't be called more than once";f.called=false;return f}},249:function(t){"use strict";function posix(t){return t.charAt(0)==="/"}function win32(t){var e=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;var r=e.exec(t);var i=r[1]||"";var n=Boolean(i&&i.charAt(1)!==":");return Boolean(r[2]||n)}t.exports=process.platform==="win32"?win32:posix;t.exports.posix=posix;t.exports.win32=win32},928:function(t){t.exports=wrappy;function wrappy(t,e){if(t&&e)return wrappy(t)(e);if(typeof t!=="function")throw new TypeError("need wrapper function");Object.keys(t).forEach((function(e){wrapper[e]=t[e]}));return wrapper;function wrapper(){var e=new Array(arguments.length);for(var r=0;r<e.length;r++){e[r]=arguments[r]}var i=t.apply(this,e);var n=e[e.length-1];if(typeof i==="function"&&i!==n){Object.keys(n).forEach((function(t){i[t]=n[t]}))}return i}}},491:function(t){"use strict";t.exports=require("assert")},361:function(t){"use strict";t.exports=require("events")},147:function(t){"use strict";t.exports=require("fs")},17:function(t){"use strict";t.exports=require("path")},837:function(t){"use strict";t.exports=require("util")}};var e={};function __nccwpck_require__(r){var i=e[r];if(i!==undefined){return i.exports}var n=e[r]={exports:{}};var s=true;try{t[r](n,n.exports,__nccwpck_require__);s=false}finally{if(s)delete e[r]}return n.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(947);module.exports=r})();
@@ -1 +1 @@
1
- (function(){var e={897:function(e,t,r){"use strict";const s=r(13);const n=Symbol("max");const i=Symbol("length");const o=Symbol("lengthCalculator");const l=Symbol("allowStale");const a=Symbol("maxAge");const h=Symbol("dispose");const c=Symbol("noDisposeOnSet");const u=Symbol("lruList");const f=Symbol("cache");const p=Symbol("updateAgeOnGet");const naiveLength=()=>1;class LRUCache{constructor(e){if(typeof e==="number")e={max:e};if(!e)e={};if(e.max&&(typeof e.max!=="number"||e.max<0))throw new TypeError("max must be a non-negative number");const t=this[n]=e.max||Infinity;const r=e.length||naiveLength;this[o]=typeof r!=="function"?naiveLength:r;this[l]=e.stale||false;if(e.maxAge&&typeof e.maxAge!=="number")throw new TypeError("maxAge must be a number");this[a]=e.maxAge||0;this[h]=e.dispose;this[c]=e.noDisposeOnSet||false;this[p]=e.updateAgeOnGet||false;this.reset()}set max(e){if(typeof e!=="number"||e<0)throw new TypeError("max must be a non-negative number");this[n]=e||Infinity;trim(this)}get max(){return this[n]}set allowStale(e){this[l]=!!e}get allowStale(){return this[l]}set maxAge(e){if(typeof e!=="number")throw new TypeError("maxAge must be a non-negative number");this[a]=e;trim(this)}get maxAge(){return this[a]}set lengthCalculator(e){if(typeof e!=="function")e=naiveLength;if(e!==this[o]){this[o]=e;this[i]=0;this[u].forEach((e=>{e.length=this[o](e.value,e.key);this[i]+=e.length}))}trim(this)}get lengthCalculator(){return this[o]}get length(){return this[i]}get itemCount(){return this[u].length}rforEach(e,t){t=t||this;for(let r=this[u].tail;r!==null;){const s=r.prev;forEachStep(this,e,r,t);r=s}}forEach(e,t){t=t||this;for(let r=this[u].head;r!==null;){const s=r.next;forEachStep(this,e,r,t);r=s}}keys(){return this[u].toArray().map((e=>e.key))}values(){return this[u].toArray().map((e=>e.value))}reset(){if(this[h]&&this[u]&&this[u].length){this[u].forEach((e=>this[h](e.key,e.value)))}this[f]=new Map;this[u]=new s;this[i]=0}dump(){return this[u].map((e=>isStale(this,e)?false:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[u]}set(e,t,r){r=r||this[a];if(r&&typeof r!=="number")throw new TypeError("maxAge must be a number");const s=r?Date.now():0;const l=this[o](t,e);if(this[f].has(e)){if(l>this[n]){del(this,this[f].get(e));return false}const o=this[f].get(e);const a=o.value;if(this[h]){if(!this[c])this[h](e,a.value)}a.now=s;a.maxAge=r;a.value=t;this[i]+=l-a.length;a.length=l;this.get(e);trim(this);return true}const p=new Entry(e,t,l,s,r);if(p.length>this[n]){if(this[h])this[h](e,t);return false}this[i]+=p.length;this[u].unshift(p);this[f].set(e,this[u].head);trim(this);return true}has(e){if(!this[f].has(e))return false;const t=this[f].get(e).value;return!isStale(this,t)}get(e){return get(this,e,true)}peek(e){return get(this,e,false)}pop(){const e=this[u].tail;if(!e)return null;del(this,e);return e.value}del(e){del(this,this[f].get(e))}load(e){this.reset();const t=Date.now();for(let r=e.length-1;r>=0;r--){const s=e[r];const n=s.e||0;if(n===0)this.set(s.k,s.v);else{const e=n-t;if(e>0){this.set(s.k,s.v,e)}}}}prune(){this[f].forEach(((e,t)=>get(this,t,false)))}}const get=(e,t,r)=>{const s=e[f].get(t);if(s){const t=s.value;if(isStale(e,t)){del(e,s);if(!e[l])return undefined}else{if(r){if(e[p])s.value.now=Date.now();e[u].unshiftNode(s)}}return t.value}};const isStale=(e,t)=>{if(!t||!t.maxAge&&!e[a])return false;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[a]&&r>e[a]};const trim=e=>{if(e[i]>e[n]){for(let t=e[u].tail;e[i]>e[n]&&t!==null;){const r=t.prev;del(e,t);t=r}}};const del=(e,t)=>{if(t){const r=t.value;if(e[h])e[h](r.key,r.value);e[i]-=r.length;e[f].delete(r.key);e[u].removeNode(t)}};class Entry{constructor(e,t,r,s,n){this.key=e;this.value=t;this.length=r;this.now=s;this.maxAge=n||0}}const forEachStep=(e,t,r,s)=>{let n=r.value;if(isStale(e,n)){del(e,r);if(!e[l])n=undefined}if(n)t.call(s,n.value,n.key,e)};e.exports=LRUCache},747:function(e,t,r){const s=Symbol("SemVer ANY");class Comparator{static get ANY(){return s}constructor(e,t){t=n(t);if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}a("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===s){this.value=""}else{this.value=this.operator+this.semver.version}a("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=s}else{this.semver=new h(r[2],this.options.loose)}}toString(){return this.value}test(e){a("Comparator.test",e,this.options.loose);if(this.semver===s||e===s){return true}if(typeof e==="string"){try{e=new h(e,this.options)}catch(e){return false}}return l(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}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)}const r=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");const s=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");const n=this.semver.version===e.semver.version;const i=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");const o=l(this.semver,"<",e.semver,t)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<");const a=l(this.semver,">",e.semver,t)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return r||s||n&&i||o||a}}e.exports=Comparator;const n=r(813);const{re:i,t:o}=r(29);const l=r(935);const a=r(210);const h=r(286);const c=r(804)},804:function(e,t,r){class Range{constructor(e,t){t=i(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 o){this.raw=e.value;this.set=[[e]];this.format();return this}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e;this.set=e.split(/\s*\|\|\s*/).map((e=>this.parseRange(e.trim()))).filter((e=>e.length));if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${e}`)}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.format()}format(){this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim();return this.range}toString(){return this.range}parseRange(e){e=e.trim();const t=Object.keys(this.options).join(",");const r=`parseRange:${t}:${e}`;const s=n.get(r);if(s)return s;const i=this.options.loose;const a=i?h[c.HYPHENRANGELOOSE]:h[c.HYPHENRANGE];e=e.replace(a,hyphenReplace(this.options.includePrerelease));l("hyphen replace",e);e=e.replace(h[c.COMPARATORTRIM],u);l("comparator trim",e,h[c.COMPARATORTRIM]);e=e.replace(h[c.TILDETRIM],f);e=e.replace(h[c.CARETTRIM],p);e=e.split(/\s+/).join(" ");const E=i?h[c.COMPARATORLOOSE]:h[c.COMPARATOR];const m=e.split(" ").map((e=>parseComparator(e,this.options))).join(" ").split(/\s+/).map((e=>replaceGTE0(e,this.options))).filter(this.options.loose?e=>!!e.match(E):()=>true).map((e=>new o(e,this.options)));const v=m.length;const $=new Map;for(const e of m){if(isNullSet(e))return[e];$.set(e.value,e)}if($.size>1&&$.has(""))$.delete("");const R=[...$.values()];n.set(r,R);return R}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 a(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(897);const n=new s({max:1e3});const i=r(813);const o=r(747);const l=r(210);const a=r(286);const{re:h,t:c,comparatorTrimReplace:u,tildeTrimReplace:f,caretTrimReplace:p}=r(29);const isNullSet=e=>e.value==="<0.0.0-0";const isAny=e=>e.value==="";const isSatisfiable=(e,t)=>{let r=true;const s=e.slice();let n=s.pop();while(r&&s.length){r=s.every((e=>n.intersects(e,t)));n=s.pop()}return r};const parseComparator=(e,t)=>{l("comp",e,t);e=replaceCarets(e,t);l("caret",e);e=replaceTildes(e,t);l("tildes",e);e=replaceXRanges(e,t);l("xrange",e);e=replaceStars(e,t);l("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?h[c.TILDELOOSE]:h[c.TILDE];return e.replace(r,((t,r,s,n,i)=>{l("tilde",e,t,r,s,n,i);let o;if(isX(r)){o=""}else if(isX(s)){o=`>=${r}.0.0 <${+r+1}.0.0-0`}else if(isX(n)){o=`>=${r}.${s}.0 <${r}.${+s+1}.0-0`}else if(i){l("replaceTilde pr",i);o=`>=${r}.${s}.${n}-${i} <${r}.${+s+1}.0-0`}else{o=`>=${r}.${s}.${n} <${r}.${+s+1}.0-0`}l("tilde return",o);return o}))};const replaceCarets=(e,t)=>e.trim().split(/\s+/).map((e=>replaceCaret(e,t))).join(" ");const replaceCaret=(e,t)=>{l("caret",e,t);const r=t.loose?h[c.CARETLOOSE]:h[c.CARET];const s=t.includePrerelease?"-0":"";return e.replace(r,((t,r,n,i,o)=>{l("caret",e,t,r,n,i,o);let a;if(isX(r)){a=""}else if(isX(n)){a=`>=${r}.0.0${s} <${+r+1}.0.0-0`}else if(isX(i)){if(r==="0"){a=`>=${r}.${n}.0${s} <${r}.${+n+1}.0-0`}else{a=`>=${r}.${n}.0${s} <${+r+1}.0.0-0`}}else if(o){l("replaceCaret pr",o);if(r==="0"){if(n==="0"){a=`>=${r}.${n}.${i}-${o} <${r}.${n}.${+i+1}-0`}else{a=`>=${r}.${n}.${i}-${o} <${r}.${+n+1}.0-0`}}else{a=`>=${r}.${n}.${i}-${o} <${+r+1}.0.0-0`}}else{l("no pr");if(r==="0"){if(n==="0"){a=`>=${r}.${n}.${i}${s} <${r}.${n}.${+i+1}-0`}else{a=`>=${r}.${n}.${i}${s} <${r}.${+n+1}.0-0`}}else{a=`>=${r}.${n}.${i} <${+r+1}.0.0-0`}}l("caret return",a);return a}))};const replaceXRanges=(e,t)=>{l("replaceXRanges",e,t);return e.split(/\s+/).map((e=>replaceXRange(e,t))).join(" ")};const replaceXRange=(e,t)=>{e=e.trim();const r=t.loose?h[c.XRANGELOOSE]:h[c.XRANGE];return e.replace(r,((r,s,n,i,o,a)=>{l("xRange",e,r,s,n,i,o,a);const h=isX(n);const c=h||isX(i);const u=c||isX(o);const f=u;if(s==="="&&f){s=""}a=t.includePrerelease?"-0":"";if(h){if(s===">"||s==="<"){r="<0.0.0-0"}else{r="*"}}else if(s&&f){if(c){i=0}o=0;if(s===">"){s=">=";if(c){n=+n+1;i=0;o=0}else{i=+i+1;o=0}}else if(s==="<="){s="<";if(c){n=+n+1}else{i=+i+1}}if(s==="<")a="-0";r=`${s+n}.${i}.${o}${a}`}else if(c){r=`>=${n}.0.0${a} <${+n+1}.0.0-0`}else if(u){r=`>=${n}.${i}.0${a} <${n}.${+i+1}.0-0`}l("xRange return",r);return r}))};const replaceStars=(e,t)=>{l("replaceStars",e,t);return e.trim().replace(h[c.STAR],"")};const replaceGTE0=(e,t)=>{l("replaceGTE0",e,t);return e.trim().replace(h[t.includePrerelease?c.GTE0PRE:c.GTE0],"")};const hyphenReplace=e=>(t,r,s,n,i,o,l,a,h,c,u,f,p)=>{if(isX(s)){r=""}else if(isX(n)){r=`>=${s}.0.0${e?"-0":""}`}else if(isX(i)){r=`>=${s}.${n}.0${e?"-0":""}`}else if(o){r=`>=${r}`}else{r=`>=${r}${e?"-0":""}`}if(isX(h)){a=""}else if(isX(c)){a=`<${+h+1}.0.0-0`}else if(isX(u)){a=`<${h}.${+c+1}.0-0`}else if(f){a=`<=${h}.${c}.${u}-${f}`}else if(e){a=`<${h}.${c}.${+u+1}-0`}else{a=`<=${a}`}return`${r} ${a}`.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++){l(e[r].semver);if(e[r].semver===o.ANY){continue}if(e[r].semver.prerelease.length>0){const s=e[r].semver;if(s.major===t.major&&s.minor===t.minor&&s.patch===t.patch){return true}}}return false}return true}},286:function(e,t,r){const s=r(210);const{MAX_LENGTH:n,MAX_SAFE_INTEGER:i}=r(852);const{re:o,t:l}=r(29);const a=r(813);const{compareIdentifiers:h}=r(611);class SemVer{constructor(e,t){t=a(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: ${e}`)}if(e.length>n){throw new TypeError(`version is longer than ${n} characters`)}s("SemVer",e,t);this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?o[l.LOOSE]:o[l.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){s("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 h(this.major,e.major)||h(this.minor,e.minor)||h(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 n=e.prerelease[t];s("prerelease compare",t,r,n);if(r===undefined&&n===undefined){return 0}else if(n===undefined){return 1}else if(r===undefined){return-1}else if(r===n){continue}else{return h(r,n)}}while(++t)}compareBuild(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}let t=0;do{const r=this.build[t];const n=e.build[t];s("prerelease compare",t,r,n);if(r===undefined&&n===undefined){return 0}else if(n===undefined){return 1}else if(r===undefined){return-1}else if(r===n){continue}else{return h(r,n)}}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0;this.patch=0;this.minor=0;this.major++;this.inc("pre",t);break;case"preminor":this.prerelease.length=0;this.patch=0;this.minor++;this.inc("pre",t);break;case"prepatch":this.prerelease.length=0;this.inc("patch",t);this.inc("pre",t);break;case"prerelease":if(this.prerelease.length===0){this.inc("patch",t)}this.inc("pre",t);break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0){this.major++}this.minor=0;this.patch=0;this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0){this.minor++}this.patch=0;this.prerelease=[];break;case"patch":if(this.prerelease.length===0){this.patch++}this.prerelease=[];break;case"pre":if(this.prerelease.length===0){this.prerelease=[0]}else{let e=this.prerelease.length;while(--e>=0){if(typeof this.prerelease[e]==="number"){this.prerelease[e]++;e=-2}}if(e===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error(`invalid increment argument: ${e}`)}this.format();this.raw=this.version;return this}}e.exports=SemVer},264:function(e,t,r){const s=r(226);const clean=(e,t)=>{const r=s(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};e.exports=clean},935:function(e,t,r){const s=r(755);const n=r(308);const i=r(503);const o=r(381);const l=r(990);const a=r(402);const cmp=(e,t,r,h)=>{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 s(e,r,h);case"!=":return n(e,r,h);case">":return i(e,r,h);case">=":return o(e,r,h);case"<":return l(e,r,h);case"<=":return a(e,r,h);default:throw new TypeError(`Invalid operator: ${t}`)}};e.exports=cmp},981:function(e,t,r){const s=r(286);const n=r(226);const{re:i,t:o}=r(29);const coerce=(e,t)=>{if(e instanceof s){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(i[o.COERCE])}else{let t;while((t=i[o.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length)){if(!r||t.index+t[0].length!==r.index+r[0].length){r=t}i[o.COERCERTL].lastIndex=t.index+t[1].length+t[2].length}i[o.COERCERTL].lastIndex=-1}if(r===null)return null;return n(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)};e.exports=coerce},316:function(e,t,r){const s=r(286);const compareBuild=(e,t,r)=>{const n=new s(e,r);const i=new s(t,r);return n.compare(i)||n.compareBuild(i)};e.exports=compareBuild},342:function(e,t,r){const s=r(419);const compareLoose=(e,t)=>s(e,t,true);e.exports=compareLoose},419:function(e,t,r){const s=r(286);const compare=(e,t,r)=>new s(e,r).compare(new s(t,r));e.exports=compare},188:function(e,t,r){const s=r(226);const n=r(755);const diff=(e,t)=>{if(n(e,t)){return null}else{const r=s(e);const n=s(t);const i=r.prerelease.length||n.prerelease.length;const o=i?"pre":"";const l=i?"prerelease":"";for(const e in r){if(e==="major"||e==="minor"||e==="patch"){if(r[e]!==n[e]){return o+e}}}return l}};e.exports=diff},755:function(e,t,r){const s=r(419);const eq=(e,t,r)=>s(e,t,r)===0;e.exports=eq},503:function(e,t,r){const s=r(419);const gt=(e,t,r)=>s(e,t,r)>0;e.exports=gt},381:function(e,t,r){const s=r(419);const gte=(e,t,r)=>s(e,t,r)>=0;e.exports=gte},748:function(e,t,r){const s=r(286);const inc=(e,t,r,n)=>{if(typeof r==="string"){n=r;r=undefined}try{return new s(e,r).inc(t,n).version}catch(e){return null}};e.exports=inc},990:function(e,t,r){const s=r(419);const lt=(e,t,r)=>s(e,t,r)<0;e.exports=lt},402:function(e,t,r){const s=r(419);const lte=(e,t,r)=>s(e,t,r)<=0;e.exports=lte},893:function(e,t,r){const s=r(286);const major=(e,t)=>new s(e,t).major;e.exports=major},479:function(e,t,r){const s=r(286);const minor=(e,t)=>new s(e,t).minor;e.exports=minor},308:function(e,t,r){const s=r(419);const neq=(e,t,r)=>s(e,t,r)!==0;e.exports=neq},226:function(e,t,r){const{MAX_LENGTH:s}=r(852);const{re:n,t:i}=r(29);const o=r(286);const l=r(813);const parse=(e,t)=>{t=l(t);if(e instanceof o){return e}if(typeof e!=="string"){return null}if(e.length>s){return null}const r=t.loose?n[i.LOOSE]:n[i.FULL];if(!r.test(e)){return null}try{return new o(e,t)}catch(e){return null}};e.exports=parse},530:function(e,t,r){const s=r(286);const patch=(e,t)=>new s(e,t).patch;e.exports=patch},12:function(e,t,r){const s=r(226);const prerelease=(e,t)=>{const r=s(e,t);return r&&r.prerelease.length?r.prerelease:null};e.exports=prerelease},880:function(e,t,r){const s=r(419);const rcompare=(e,t,r)=>s(t,e,r);e.exports=rcompare},955:function(e,t,r){const s=r(316);const rsort=(e,t)=>e.sort(((e,r)=>s(r,e,t)));e.exports=rsort},757:function(e,t,r){const s=r(804);const satisfies=(e,t,r)=>{try{t=new s(t,r)}catch(e){return false}return t.test(e)};e.exports=satisfies},361:function(e,t,r){const s=r(316);const sort=(e,t)=>e.sort(((e,r)=>s(e,r,t)));e.exports=sort},629:function(e,t,r){const s=r(226);const valid=(e,t)=>{const r=s(e,t);return r?r.version:null};e.exports=valid},183:function(e,t,r){const s=r(29);e.exports={re:s.re,src:s.src,tokens:s.t,SEMVER_SPEC_VERSION:r(852).SEMVER_SPEC_VERSION,SemVer:r(286),compareIdentifiers:r(611).compareIdentifiers,rcompareIdentifiers:r(611).rcompareIdentifiers,parse:r(226),valid:r(629),clean:r(264),inc:r(748),diff:r(188),major:r(893),minor:r(479),patch:r(530),prerelease:r(12),compare:r(419),rcompare:r(880),compareLoose:r(342),compareBuild:r(316),sort:r(361),rsort:r(955),gt:r(503),lt:r(990),eq:r(755),neq:r(308),gte:r(381),lte:r(402),cmp:r(935),coerce:r(981),Comparator:r(747),Range:r(804),satisfies:r(757),toComparators:r(281),maxSatisfying:r(826),minSatisfying:r(592),minVersion:r(42),validRange:r(917),outside:r(409),gtr:r(151),ltr:r(979),intersects:r(315),simplifyRange:r(717),subset:r(257)}},852:function(e){const t="2.0.0";const r=256;const s=Number.MAX_SAFE_INTEGER||9007199254740991;const n=16;e.exports={SEMVER_SPEC_VERSION:t,MAX_LENGTH:r,MAX_SAFE_INTEGER:s,MAX_SAFE_COMPONENT_LENGTH:n}},210:function(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},611:function(e){const t=/^[0-9]+$/;const compareIdentifiers=(e,r)=>{const s=t.test(e);const n=t.test(r);if(s&&n){e=+e;r=+r}return e===r?0:s&&!n?-1:n&&!s?1:e<r?-1:1};const rcompareIdentifiers=(e,t)=>compareIdentifiers(t,e);e.exports={compareIdentifiers:compareIdentifiers,rcompareIdentifiers:rcompareIdentifiers}},813:function(e){const t=["includePrerelease","loose","rtl"];const parseOptions=e=>!e?{}:typeof e!=="object"?{loose:true}:t.filter((t=>e[t])).reduce(((e,t)=>{e[t]=true;return e}),{});e.exports=parseOptions},29:function(e,t,r){const{MAX_SAFE_COMPONENT_LENGTH:s}=r(852);const n=r(210);t=e.exports={};const i=t.re=[];const o=t.src=[];const l=t.t={};let a=0;const createToken=(e,t,r)=>{const s=a++;n(s,t);l[e]=s;o[s]=t;i[s]=new RegExp(t,r?"g":undefined)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","[0-9]+");createToken("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");createToken("MAINVERSION",`(${o[l.NUMERICIDENTIFIER]})\\.`+`(${o[l.NUMERICIDENTIFIER]})\\.`+`(${o[l.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${o[l.NUMERICIDENTIFIERLOOSE]})\\.`+`(${o[l.NUMERICIDENTIFIERLOOSE]})\\.`+`(${o[l.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${o[l.NUMERICIDENTIFIER]}|${o[l.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${o[l.NUMERICIDENTIFIERLOOSE]}|${o[l.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASE",`(?:-(${o[l.PRERELEASEIDENTIFIER]}(?:\\.${o[l.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${o[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${o[l.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER","[0-9A-Za-z-]+");createToken("BUILD",`(?:\\+(${o[l.BUILDIDENTIFIER]}(?:\\.${o[l.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${o[l.MAINVERSION]}${o[l.PRERELEASE]}?${o[l.BUILD]}?`);createToken("FULL",`^${o[l.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${o[l.MAINVERSIONLOOSE]}${o[l.PRERELEASELOOSE]}?${o[l.BUILD]}?`);createToken("LOOSE",`^${o[l.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${o[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${o[l.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${o[l.XRANGEIDENTIFIER]})`+`(?:\\.(${o[l.XRANGEIDENTIFIER]})`+`(?:\\.(${o[l.XRANGEIDENTIFIER]})`+`(?:${o[l.PRERELEASE]})?${o[l.BUILD]}?`+`)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${o[l.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${o[l.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${o[l.XRANGEIDENTIFIERLOOSE]})`+`(?:${o[l.PRERELEASELOOSE]})?${o[l.BUILD]}?`+`)?)?`);createToken("XRANGE",`^${o[l.GTLT]}\\s*${o[l.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${o[l.GTLT]}\\s*${o[l.XRANGEPLAINLOOSE]}$`);createToken("COERCE",`${"(^|[^\\d])"+"(\\d{1,"}${s}})`+`(?:\\.(\\d{1,${s}}))?`+`(?:\\.(\\d{1,${s}}))?`+`(?:$|[^\\d])`);createToken("COERCERTL",o[l.COERCE],true);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${o[l.LONETILDE]}\\s+`,true);t.tildeTrimReplace="$1~";createToken("TILDE",`^${o[l.LONETILDE]}${o[l.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${o[l.LONETILDE]}${o[l.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${o[l.LONECARET]}\\s+`,true);t.caretTrimReplace="$1^";createToken("CARET",`^${o[l.LONECARET]}${o[l.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${o[l.LONECARET]}${o[l.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${o[l.GTLT]}\\s*(${o[l.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${o[l.GTLT]}\\s*(${o[l.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${o[l.GTLT]}\\s*(${o[l.LOOSEPLAIN]}|${o[l.XRANGEPLAIN]})`,true);t.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${o[l.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${o[l.XRANGEPLAIN]})`+`\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${o[l.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${o[l.XRANGEPLAINLOOSE]})`+`\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0.0.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")},151:function(e,t,r){const s=r(409);const gtr=(e,t,r)=>s(e,t,">",r);e.exports=gtr},315:function(e,t,r){const s=r(804);const intersects=(e,t,r)=>{e=new s(e,r);t=new s(t,r);return e.intersects(t)};e.exports=intersects},979:function(e,t,r){const s=r(409);const ltr=(e,t,r)=>s(e,t,"<",r);e.exports=ltr},826:function(e,t,r){const s=r(286);const n=r(804);const maxSatisfying=(e,t,r)=>{let i=null;let o=null;let l=null;try{l=new n(t,r)}catch(e){return null}e.forEach((e=>{if(l.test(e)){if(!i||o.compare(e)===-1){i=e;o=new s(i,r)}}}));return i};e.exports=maxSatisfying},592:function(e,t,r){const s=r(286);const n=r(804);const minSatisfying=(e,t,r)=>{let i=null;let o=null;let l=null;try{l=new n(t,r)}catch(e){return null}e.forEach((e=>{if(l.test(e)){if(!i||o.compare(e)===1){i=e;o=new s(i,r)}}}));return i};e.exports=minSatisfying},42:function(e,t,r){const s=r(286);const n=r(804);const i=r(503);const minVersion=(e,t)=>{e=new n(e,t);let r=new s("0.0.0");if(e.test(r)){return r}r=new s("0.0.0-0");if(e.test(r)){return r}r=null;for(let t=0;t<e.set.length;++t){const n=e.set[t];let o=null;n.forEach((e=>{const t=new s(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},409:function(e,t,r){const s=r(286);const n=r(747);const{ANY:i}=n;const o=r(804);const l=r(757);const a=r(503);const h=r(990);const c=r(402);const u=r(381);const outside=(e,t,r,f)=>{e=new s(e,f);t=new o(t,f);let p,E,m,v,$;switch(r){case">":p=a;E=c;m=h;v=">";$=">=";break;case"<":p=h;E=u;m=a;v="<";$="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(l(e,t,f)){return false}for(let r=0;r<t.set.length;++r){const s=t.set[r];let o=null;let l=null;s.forEach((e=>{if(e.semver===i){e=new n(">=0.0.0")}o=o||e;l=l||e;if(p(e.semver,o.semver,f)){o=e}else if(m(e.semver,l.semver,f)){l=e}}));if(o.operator===v||o.operator===$){return false}if((!l.operator||l.operator===v)&&E(e,l.semver)){return false}else if(l.operator===$&&m(e,l.semver)){return false}}return true};e.exports=outside},717:function(e,t,r){const s=r(757);const n=r(419);e.exports=(e,t,r)=>{const i=[];let o=null;let l=null;const a=e.sort(((e,t)=>n(e,t,r)));for(const e of a){const n=s(e,t,r);if(n){l=e;if(!o)o=e}else{if(l){i.push([o,l])}l=null;o=null}}if(o)i.push([o,null]);const h=[];for(const[e,t]of i){if(e===t)h.push(e);else if(!t&&e===a[0])h.push("*");else if(!t)h.push(`>=${e}`);else if(e===a[0])h.push(`<=${t}`);else h.push(`${e} - ${t}`)}const c=h.join(" || ");const u=typeof t.raw==="string"?t.raw:String(t);return c.length<u.length?c:t}},257:function(e,t,r){const s=r(804);const n=r(747);const{ANY:i}=n;const o=r(757);const l=r(419);const subset=(e,t,r={})=>{if(e===t)return true;e=new s(e,r);t=new s(t,r);let n=false;e:for(const s of e.set){for(const e of t.set){const t=simpleSubset(s,e,r);n=n||t!==null;if(t)continue e}if(n)return false}return true};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=[new n(">=0.0.0-0")];else e=[new n(">=0.0.0")]}if(t.length===1&&t[0].semver===i){if(r.includePrerelease)return true;else t=[new n(">=0.0.0")]}const s=new Set;let a,h;for(const t of e){if(t.operator===">"||t.operator===">=")a=higherGT(a,t,r);else if(t.operator==="<"||t.operator==="<=")h=lowerLT(h,t,r);else s.add(t.semver)}if(s.size>1)return null;let c;if(a&&h){c=l(a.semver,h.semver,r);if(c>0)return null;else if(c===0&&(a.operator!==">="||h.operator!=="<="))return null}for(const e of s){if(a&&!o(e,String(a),r))return null;if(h&&!o(e,String(h),r))return null;for(const s of t){if(!o(e,String(s),r))return false}return true}let u,f;let p,E;let m=h&&!r.includePrerelease&&h.semver.prerelease.length?h.semver:false;let v=a&&!r.includePrerelease&&a.semver.prerelease.length?a.semver:false;if(m&&m.prerelease.length===1&&h.operator==="<"&&m.prerelease[0]===0){m=false}for(const e of t){E=E||e.operator===">"||e.operator===">=";p=p||e.operator==="<"||e.operator==="<=";if(a){if(v){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch){v=false}}if(e.operator===">"||e.operator===">="){u=higherGT(a,e,r);if(u===e&&u!==a)return false}else if(a.operator===">="&&!o(a.semver,String(e),r))return false}if(h){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==="<="){f=lowerLT(h,e,r);if(f===e&&f!==h)return false}else if(h.operator==="<="&&!o(h.semver,String(e),r))return false}if(!e.operator&&(h||a)&&c!==0)return false}if(a&&p&&!h&&c!==0)return false;if(h&&E&&!a&&c!==0)return false;if(v||m)return false;return true};const higherGT=(e,t,r)=>{if(!e)return t;const s=l(e.semver,t.semver,r);return s>0?e:s<0?t:t.operator===">"&&e.operator===">="?t:e};const lowerLT=(e,t,r)=>{if(!e)return t;const s=l(e.semver,t.semver,r);return s<0?e:s>0?t:t.operator==="<"&&e.operator==="<="?t:e};e.exports=subset},281:function(e,t,r){const s=r(804);const toComparators=(e,t)=>new s(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));e.exports=toComparators},917:function(e,t,r){const s=r(804);const validRange=(e,t)=>{try{return new s(e,t).range||"*"}catch(e){return null}};e.exports=validRange},989:function(e){"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next){yield e.value}}}},13:function(e,t,r){"use strict";e.exports=Yallist;Yallist.Node=Node;Yallist.create=Yallist;function Yallist(e){var t=this;if(!(t instanceof Yallist)){t=new Yallist}t.tail=null;t.head=null;t.length=0;if(e&&typeof e.forEach==="function"){e.forEach((function(e){t.push(e)}))}else if(arguments.length>0){for(var r=0,s=arguments.length;r<s;r++){t.push(arguments[r])}}return t}Yallist.prototype.removeNode=function(e){if(e.list!==this){throw new Error("removing node which does not belong to this list")}var t=e.next;var r=e.prev;if(t){t.prev=r}if(r){r.next=t}if(e===this.head){this.head=t}if(e===this.tail){this.tail=r}e.list.length--;e.next=null;e.prev=null;e.list=null;return t};Yallist.prototype.unshiftNode=function(e){if(e===this.head){return}if(e.list){e.list.removeNode(e)}var t=this.head;e.list=this;e.next=t;if(t){t.prev=e}this.head=e;if(!this.tail){this.tail=e}this.length++};Yallist.prototype.pushNode=function(e){if(e===this.tail){return}if(e.list){e.list.removeNode(e)}var t=this.tail;e.list=this;e.prev=t;if(t){t.next=e}this.tail=e;if(!this.head){this.head=e}this.length++};Yallist.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++){push(this,arguments[e])}return this.length};Yallist.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++){unshift(this,arguments[e])}return this.length};Yallist.prototype.pop=function(){if(!this.tail){return undefined}var e=this.tail.value;this.tail=this.tail.prev;if(this.tail){this.tail.next=null}else{this.head=null}this.length--;return e};Yallist.prototype.shift=function(){if(!this.head){return undefined}var e=this.head.value;this.head=this.head.next;if(this.head){this.head.prev=null}else{this.tail=null}this.length--;return e};Yallist.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,s=0;r!==null;s++){e.call(t,r.value,s,this);r=r.next}};Yallist.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,s=this.length-1;r!==null;s--){e.call(t,r.value,s,this);r=r.prev}};Yallist.prototype.get=function(e){for(var t=0,r=this.head;r!==null&&t<e;t++){r=r.next}if(t===e&&r!==null){return r.value}};Yallist.prototype.getReverse=function(e){for(var t=0,r=this.tail;r!==null&&t<e;t++){r=r.prev}if(t===e&&r!==null){return r.value}};Yallist.prototype.map=function(e,t){t=t||this;var r=new Yallist;for(var s=this.head;s!==null;){r.push(e.call(t,s.value,this));s=s.next}return r};Yallist.prototype.mapReverse=function(e,t){t=t||this;var r=new Yallist;for(var s=this.tail;s!==null;){r.push(e.call(t,s.value,this));s=s.prev}return r};Yallist.prototype.reduce=function(e,t){var r;var s=this.head;if(arguments.length>1){r=t}else if(this.head){s=this.head.next;r=this.head.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var n=0;s!==null;n++){r=e(r,s.value,n);s=s.next}return r};Yallist.prototype.reduceReverse=function(e,t){var r;var s=this.tail;if(arguments.length>1){r=t}else if(this.tail){s=this.tail.prev;r=this.tail.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var n=this.length-1;s!==null;n--){r=e(r,s.value,n);s=s.prev}return r};Yallist.prototype.toArray=function(){var e=new Array(this.length);for(var t=0,r=this.head;r!==null;t++){e[t]=r.value;r=r.next}return e};Yallist.prototype.toArrayReverse=function(){var e=new Array(this.length);for(var t=0,r=this.tail;r!==null;t++){e[t]=r.value;r=r.prev}return e};Yallist.prototype.slice=function(e,t){t=t||this.length;if(t<0){t+=this.length}e=e||0;if(e<0){e+=this.length}var r=new Yallist;if(t<e||t<0){return r}if(e<0){e=0}if(t>this.length){t=this.length}for(var s=0,n=this.head;n!==null&&s<e;s++){n=n.next}for(;n!==null&&s<t;s++,n=n.next){r.push(n.value)}return r};Yallist.prototype.sliceReverse=function(e,t){t=t||this.length;if(t<0){t+=this.length}e=e||0;if(e<0){e+=this.length}var r=new Yallist;if(t<e||t<0){return r}if(e<0){e=0}if(t>this.length){t=this.length}for(var s=this.length,n=this.tail;n!==null&&s>t;s--){n=n.prev}for(;n!==null&&s>e;s--,n=n.prev){r.push(n.value)}return r};Yallist.prototype.splice=function(e,t,...r){if(e>this.length){e=this.length-1}if(e<0){e=this.length+e}for(var s=0,n=this.head;n!==null&&s<e;s++){n=n.next}var i=[];for(var s=0;n&&s<t;s++){i.push(n.value);n=this.removeNode(n)}if(n===null){n=this.tail}if(n!==this.head&&n!==this.tail){n=n.prev}for(var s=0;s<r.length;s++){n=insert(this,n,r[s])}return i};Yallist.prototype.reverse=function(){var e=this.head;var t=this.tail;for(var r=e;r!==null;r=r.prev){var s=r.prev;r.prev=r.next;r.next=s}this.head=t;this.tail=e;return this};function insert(e,t,r){var s=t===e.head?new Node(r,null,t,e):new Node(r,t,t.next,e);if(s.next===null){e.tail=s}if(s.prev===null){e.head=s}e.length++;return s}function push(e,t){e.tail=new Node(t,e.tail,null,e);if(!e.head){e.head=e.tail}e.length++}function unshift(e,t){e.head=new Node(t,null,e.head,e);if(!e.tail){e.tail=e.head}e.length++}function Node(e,t,r,s){if(!(this instanceof Node)){return new Node(e,t,r,s)}this.list=s;this.value=e;if(t){t.next=this;this.prev=t}else{this.prev=null}if(r){r.prev=this;this.next=r}else{this.next=null}}try{r(989)(Yallist)}catch(e){}}};var t={};function __nccwpck_require__(r){var s=t[r];if(s!==undefined){return s.exports}var n=t[r]={exports:{}};var i=true;try{e[r](n,n.exports,__nccwpck_require__);i=false}finally{if(i)delete t[r]}return n.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(183);module.exports=r})();
1
+ (function(){var e={927:function(e){const t=typeof performance==="object"&&performance&&typeof performance.now==="function"?performance:Date;const s=typeof AbortController!=="undefined";const i=s?AbortController:Object.assign(class AbortController{constructor(){this.signal=new i.AbortSignal}abort(){this.signal.aborted=true}},{AbortSignal:class AbortSignal{constructor(){this.aborted=false}}});const r=new Set;const deprecatedOption=(e,t)=>{const s=`LRU_CACHE_OPTION_${e}`;if(shouldWarn(s)){warn(s,`${e} option`,`options.${t}`,LRUCache)}};const deprecatedMethod=(e,t)=>{const s=`LRU_CACHE_METHOD_${e}`;if(shouldWarn(s)){const{prototype:i}=LRUCache;const{get:r}=Object.getOwnPropertyDescriptor(i,e);warn(s,`${e} method`,`cache.${t}()`,r)}};const deprecatedProperty=(e,t)=>{const s=`LRU_CACHE_PROPERTY_${e}`;if(shouldWarn(s)){const{prototype:i}=LRUCache;const{get:r}=Object.getOwnPropertyDescriptor(i,e);warn(s,`${e} property`,`cache.${t}`,r)}};const emitWarning=(...e)=>{typeof process==="object"&&process&&typeof process.emitWarning==="function"?process.emitWarning(...e):console.error(...e)};const shouldWarn=e=>!r.has(e);const warn=(e,t,s,i)=>{r.add(e);const n=`The ${t} is deprecated. Please use ${s} instead.`;emitWarning(n,"DeprecationWarning",e,i)};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{constructor(e){if(e===0){return[]}const t=getUintArray(e);this.heap=new t(e);this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}}class LRUCache{constructor(e={}){const{max:t=0,ttl:s,ttlResolution:i=1,ttlAutopurge:n,updateAgeOnGet:o,updateAgeOnHas:l,allowStale:a,dispose:h,disposeAfter:c,noDisposeOnSet:f,noUpdateTTL:p,maxSize:u=0,sizeCalculation:E,fetchMethod:d}=e;const{length:m,maxAge:$,stale:g}=e instanceof LRUCache?{}:e;if(t!==0&&!isPosInt(t)){throw new TypeError("max option must be a nonnegative integer")}const I=t?getUintArray(t):Array;if(!I){throw new Error("invalid max value: "+t)}this.max=t;this.maxSize=u;this.sizeCalculation=E||m;if(this.sizeCalculation){if(!this.maxSize){throw new TypeError("cannot set sizeCalculation without setting maxSize")}if(typeof this.sizeCalculation!=="function"){throw new TypeError("sizeCalculation set to non-function")}}this.fetchMethod=d||null;if(this.fetchMethod&&typeof this.fetchMethod!=="function"){throw new TypeError("fetchMethod must be a function if specified")}this.keyMap=new Map;this.keyList=new Array(t).fill(null);this.valList=new Array(t).fill(null);this.next=new I(t);this.prev=new I(t);this.head=0;this.tail=0;this.free=new Stack(t);this.initialFill=1;this.size=0;if(typeof h==="function"){this.dispose=h}if(typeof c==="function"){this.disposeAfter=c;this.disposed=[]}else{this.disposeAfter=null;this.disposed=null}this.noDisposeOnSet=!!f;this.noUpdateTTL=!!p;if(this.maxSize!==0){if(!isPosInt(this.maxSize)){throw new TypeError("maxSize must be a positive integer if specified")}this.initializeSizeTracking()}this.allowStale=!!a||!!g;this.updateAgeOnGet=!!o;this.updateAgeOnHas=!!l;this.ttlResolution=isPosInt(i)||i===0?i:1;this.ttlAutopurge=!!n;this.ttl=s||$||0;if(this.ttl){if(!isPosInt(this.ttl)){throw new TypeError("ttl must be a positive integer if specified")}this.initializeTTLTracking()}if(this.max===0&&this.ttl===0&&this.maxSize===0){throw new TypeError("At least one of max, maxSize, or ttl is required")}if(!this.ttlAutopurge&&!this.max&&!this.maxSize){const e="LRU_CACHE_UNBOUNDED";if(shouldWarn(e)){r.add(e);const t="TTL caching without ttlAutopurge, max, or maxSize can "+"result in unbounded memory consumption.";emitWarning(t,"UnboundedCacheWarning",e,LRUCache)}}if(g){deprecatedOption("stale","allowStale")}if($){deprecatedOption("maxAge","ttl")}if(m){deprecatedOption("length","sizeCalculation")}}getRemainingTTL(e){return this.has(e,{updateAgeOnHas:false})?Infinity:0}initializeTTLTracking(){this.ttls=new ZeroArray(this.max);this.starts=new ZeroArray(this.max);this.setItemTTL=(e,s)=>{this.starts[e]=s!==0?t.now():0;this.ttls[e]=s;if(s!==0&&this.ttlAutopurge){const t=setTimeout((()=>{if(this.isStale(e)){this.delete(this.keyList[e])}}),s+1);if(t.unref){t.unref()}}};this.updateItemAge=e=>{this.starts[e]=this.ttls[e]!==0?t.now():0};let e=0;const getNow=()=>{const s=t.now();if(this.ttlResolution>0){e=s;const t=setTimeout((()=>e=0),this.ttlResolution);if(t.unref){t.unref()}}return s};this.getRemainingTTL=t=>{const s=this.keyMap.get(t);if(s===undefined){return 0}return this.ttls[s]===0||this.starts[s]===0?Infinity:this.starts[s]+this.ttls[s]-(e||getNow())};this.isStale=t=>this.ttls[t]!==0&&this.starts[t]!==0&&(e||getNow())-this.starts[t]>this.ttls[t]}updateItemAge(e){}setItemTTL(e,t){}isStale(e){return false}initializeSizeTracking(){this.calculatedSize=0;this.sizes=new ZeroArray(this.max);this.removeItemSize=e=>this.calculatedSize-=this.sizes[e];this.requireSize=(e,t,s,i)=>{if(!isPosInt(s)){if(i){if(typeof i!=="function"){throw new TypeError("sizeCalculation must be a function")}s=i(t,e);if(!isPosInt(s)){throw new TypeError("sizeCalculation return invalid (expect positive integer)")}}else{throw new TypeError("invalid size value (must be positive integer)")}}return s};this.addItemSize=(e,t,s,i)=>{this.sizes[e]=i;const r=this.maxSize-this.sizes[e];while(this.calculatedSize>r){this.evict(true)}this.calculatedSize+=this.sizes[e]};this.delete=e=>{if(this.size!==0){const t=this.keyMap.get(e);if(t!==undefined){this.calculatedSize-=this.sizes[t]}}return LRUCache.prototype.delete.call(this,e)}}removeItemSize(e){}addItemSize(e,t,s,i){}requireSize(e,t,s,i){if(s||i){throw new TypeError("cannot set size without setting maxSize on cache")}}*indexes({allowStale:e=this.allowStale}={}){if(this.size){for(let t=this.tail;true;){if(!this.isValidIndex(t)){break}if(e||!this.isStale(t)){yield t}if(t===this.head){break}else{t=this.prev[t]}}}}*rindexes({allowStale:e=this.allowStale}={}){if(this.size){for(let t=this.head;true;){if(!this.isValidIndex(t)){break}if(e||!this.isStale(t)){yield t}if(t===this.tail){break}else{t=this.next[t]}}}}isValidIndex(e){return this.keyMap.get(this.keyList[e])===e}*entries(){for(const e of this.indexes()){yield[this.keyList[e],this.valList[e]]}}*rentries(){for(const e of this.rindexes()){yield[this.keyList[e],this.valList[e]]}}*keys(){for(const e of this.indexes()){yield this.keyList[e]}}*rkeys(){for(const e of this.rindexes()){yield this.keyList[e]}}*values(){for(const e of this.indexes()){yield this.valList[e]}}*rvalues(){for(const e of this.rindexes()){yield this.valList[e]}}[Symbol.iterator](){return this.entries()}find(e,t={}){for(const s of this.indexes()){if(e(this.valList[s],this.keyList[s],this)){return this.get(this.keyList[s],t)}}}forEach(e,t=this){for(const s of this.indexes()){e.call(t,this.valList[s],this.keyList[s],this)}}rforEach(e,t=this){for(const s of this.rindexes()){e.call(t,this.valList[s],this.keyList[s],this)}}get prune(){deprecatedMethod("prune","purgeStale");return this.purgeStale}purgeStale(){let e=false;for(const t of this.rindexes({allowStale:true})){if(this.isStale(t)){this.delete(this.keyList[t]);e=true}}return e}dump(){const e=[];for(const t of this.indexes()){const s=this.keyList[t];const i=this.valList[t];const r={value:i};if(this.ttls){r.ttl=this.ttls[t]}if(this.sizes){r.size=this.sizes[t]}e.unshift([s,r])}return e}load(e){this.clear();for(const[t,s]of e){this.set(t,s.value,s)}}dispose(e,t,s){}set(e,t,{ttl:s=this.ttl,noDisposeOnSet:i=this.noDisposeOnSet,size:r=0,sizeCalculation:n=this.sizeCalculation,noUpdateTTL:o=this.noUpdateTTL}={}){r=this.requireSize(e,t,r,n);let l=this.size===0?undefined:this.keyMap.get(e);if(l===undefined){l=this.newIndex();this.keyList[l]=e;this.valList[l]=t;this.keyMap.set(e,l);this.next[this.tail]=l;this.prev[l]=this.tail;this.tail=l;this.size++;this.addItemSize(l,t,e,r);o=false}else{const s=this.valList[l];if(t!==s){if(this.isBackgroundFetch(s)){s.__abortController.abort()}else{if(!i){this.dispose(s,e,"set");if(this.disposeAfter){this.disposed.push([s,e,"set"])}}}this.removeItemSize(l);this.valList[l]=t;this.addItemSize(l,t,e,r)}this.moveToTail(l)}if(s!==0&&this.ttl===0&&!this.ttls){this.initializeTTLTracking()}if(!o){this.setItemTTL(l,s)}if(this.disposeAfter){while(this.disposed.length){this.disposeAfter(...this.disposed.shift())}}return this}newIndex(){if(this.size===0){return this.tail}if(this.size===this.max&&this.max!==0){return this.evict(false)}if(this.free.length!==0){return this.free.pop()}return this.initialFill++}pop(){if(this.size){const e=this.valList[this.head];this.evict(true);return e}}evict(e){const t=this.head;const s=this.keyList[t];const i=this.valList[t];if(this.isBackgroundFetch(i)){i.__abortController.abort()}else{this.dispose(i,s,"evict");if(this.disposeAfter){this.disposed.push([i,s,"evict"])}}this.removeItemSize(t);if(e){this.keyList[t]=null;this.valList[t]=null;this.free.push(t)}this.head=this.next[t];this.keyMap.delete(s);this.size--;return t}has(e,{updateAgeOnHas:t=this.updateAgeOnHas}={}){const s=this.keyMap.get(e);if(s!==undefined){if(!this.isStale(s)){if(t){this.updateItemAge(s)}return true}}return false}peek(e,{allowStale:t=this.allowStale}={}){const s=this.keyMap.get(e);if(s!==undefined&&(t||!this.isStale(s))){return this.valList[s]}}backgroundFetch(e,t,s){const r=t===undefined?undefined:this.valList[t];if(this.isBackgroundFetch(r)){return r}const n=new i;const o={signal:n.signal,options:s};const l=Promise.resolve(this.fetchMethod(e,r,o)).then((t=>{if(!n.signal.aborted){this.set(e,t,o.options)}return t}));l.__abortController=n;l.__staleWhileFetching=r;if(t===undefined){this.set(e,l,o.options);t=this.keyMap.get(e)}else{this.valList[t]=l}return l}isBackgroundFetch(e){return e&&typeof e==="object"&&typeof e.then==="function"&&Object.prototype.hasOwnProperty.call(e,"__staleWhileFetching")}async fetch(e,{allowStale:t=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,ttl:i=this.ttl,noDisposeOnSet:r=this.noDisposeOnSet,size:n=0,sizeCalculation:o=this.sizeCalculation,noUpdateTTL:l=this.noUpdateTTL}={}){if(!this.fetchMethod){return this.get(e,{allowStale:t,updateAgeOnGet:s})}const a={allowStale:t,updateAgeOnGet:s,ttl:i,noDisposeOnSet:r,size:n,sizeCalculation:o,noUpdateTTL:l};let h=this.keyMap.get(e);if(h===undefined){return this.backgroundFetch(e,h,a)}else{const i=this.valList[h];if(this.isBackgroundFetch(i)){return t&&i.__staleWhileFetching!==undefined?i.__staleWhileFetching:i}if(!this.isStale(h)){this.moveToTail(h);if(s){this.updateItemAge(h)}return i}const r=this.backgroundFetch(e,h,a);return t&&r.__staleWhileFetching!==undefined?r.__staleWhileFetching:r}}get(e,{allowStale:t=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet}={}){const i=this.keyMap.get(e);if(i!==undefined){const r=this.valList[i];const n=this.isBackgroundFetch(r);if(this.isStale(i)){if(!n){this.delete(e);return t?r:undefined}else{return t?r.__staleWhileFetching:undefined}}else{if(n){return undefined}this.moveToTail(i);if(s){this.updateItemAge(i)}return r}}}connect(e,t){this.prev[t]=e;this.next[e]=t}moveToTail(e){if(e!==this.tail){if(e===this.head){this.head=this.next[e]}else{this.connect(this.prev[e],this.next[e])}this.connect(this.tail,e);this.tail=e}}get del(){deprecatedMethod("del","delete");return this.delete}delete(e){let t=false;if(this.size!==0){const s=this.keyMap.get(e);if(s!==undefined){t=true;if(this.size===1){this.clear()}else{this.removeItemSize(s);const t=this.valList[s];if(this.isBackgroundFetch(t)){t.__abortController.abort()}else{this.dispose(t,e,"delete");if(this.disposeAfter){this.disposed.push([t,e,"delete"])}}this.keyMap.delete(e);this.keyList[s]=null;this.valList[s]=null;if(s===this.tail){this.tail=this.prev[s]}else if(s===this.head){this.head=this.next[s]}else{this.next[this.prev[s]]=this.next[s];this.prev[this.next[s]]=this.prev[s]}this.size--;this.free.push(s)}}}if(this.disposed){while(this.disposed.length){this.disposeAfter(...this.disposed.shift())}}return t}clear(){for(const e of this.rindexes({allowStale:true})){const t=this.valList[e];if(this.isBackgroundFetch(t)){t.__abortController.abort()}else{const s=this.keyList[e];this.dispose(t,s,"delete");if(this.disposeAfter){this.disposed.push([t,s,"delete"])}}}this.keyMap.clear();this.valList.fill(null);this.keyList.fill(null);if(this.ttls){this.ttls.fill(0);this.starts.fill(0)}if(this.sizes){this.sizes.fill(0)}this.head=0;this.tail=0;this.initialFill=1;this.free.length=0;this.calculatedSize=0;this.size=0;if(this.disposed){while(this.disposed.length){this.disposeAfter(...this.disposed.shift())}}}get reset(){deprecatedMethod("reset","clear");return this.clear}get length(){deprecatedProperty("length","size");return this.size}}e.exports=LRUCache},539:function(e,t,s){const i=Symbol("SemVer ANY");class Comparator{static get ANY(){return i}constructor(e,t){t=r(t);if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}a("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===i){this.value=""}else{this.value=this.operator+this.semver.version}a("comp",this)}parse(e){const t=this.options.loose?n[o.COMPARATORLOOSE]:n[o.COMPARATOR];const s=e.match(t);if(!s){throw new TypeError(`Invalid comparator: ${e}`)}this.operator=s[1]!==undefined?s[1]:"";if(this.operator==="="){this.operator=""}if(!s[2]){this.semver=i}else{this.semver=new h(s[2],this.options.loose)}}toString(){return this.value}test(e){a("Comparator.test",e,this.options.loose);if(this.semver===i||e===i){return true}if(typeof e==="string"){try{e=new h(e,this.options)}catch(e){return false}}return l(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}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)}const s=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");const i=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");const r=this.semver.version===e.semver.version;const n=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");const o=l(this.semver,"<",e.semver,t)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<");const a=l(this.semver,">",e.semver,t)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return s||i||r&&n||o||a}}e.exports=Comparator;const r=s(273);const{re:n,t:o}=s(549);const l=s(575);const a=s(297);const h=s(737);const c=s(296)},296:function(e,t,s){class Range{constructor(e,t){t=n(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 o){this.raw=e.value;this.set=[[e]];this.format();return this}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e;this.set=e.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length));if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${e}`)}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.format()}format(){this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim();return this.range}toString(){return this.range}parseRange(e){e=e.trim();const t=Object.keys(this.options).join(",");const s=`parseRange:${t}:${e}`;const i=r.get(s);if(i){return i}const n=this.options.loose;const a=n?h[c.HYPHENRANGELOOSE]:h[c.HYPHENRANGE];e=e.replace(a,hyphenReplace(this.options.includePrerelease));l("hyphen replace",e);e=e.replace(h[c.COMPARATORTRIM],f);l("comparator trim",e);e=e.replace(h[c.TILDETRIM],p);e=e.replace(h[c.CARETTRIM],u);e=e.split(/\s+/).join(" ");let E=e.split(" ").map((e=>parseComparator(e,this.options))).join(" ").split(/\s+/).map((e=>replaceGTE0(e,this.options)));if(n){E=E.filter((e=>{l("loose invalid filter",e,this.options);return!!e.match(h[c.COMPARATORLOOSE])}))}l("range list",E);const d=new Map;const m=E.map((e=>new o(e,this.options)));for(const e of m){if(isNullSet(e)){return[e]}d.set(e.value,e)}if(d.size>1&&d.has("")){d.delete("")}const $=[...d.values()];r.set(s,$);return $}intersects(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((s=>isSatisfiable(s,t)&&e.set.some((e=>isSatisfiable(e,t)&&s.every((s=>e.every((e=>s.intersects(e,t)))))))))}test(e){if(!e){return false}if(typeof e==="string"){try{e=new a(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 i=s(927);const r=new i({max:1e3});const n=s(273);const o=s(539);const l=s(297);const a=s(737);const{re:h,t:c,comparatorTrimReplace:f,tildeTrimReplace:p,caretTrimReplace:u}=s(549);const isNullSet=e=>e.value==="<0.0.0-0";const isAny=e=>e.value==="";const isSatisfiable=(e,t)=>{let s=true;const i=e.slice();let r=i.pop();while(s&&i.length){s=i.every((e=>r.intersects(e,t)));r=i.pop()}return s};const parseComparator=(e,t)=>{l("comp",e,t);e=replaceCarets(e,t);l("caret",e);e=replaceTildes(e,t);l("tildes",e);e=replaceXRanges(e,t);l("xrange",e);e=replaceStars(e,t);l("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 s=t.loose?h[c.TILDELOOSE]:h[c.TILDE];return e.replace(s,((t,s,i,r,n)=>{l("tilde",e,t,s,i,r,n);let o;if(isX(s)){o=""}else if(isX(i)){o=`>=${s}.0.0 <${+s+1}.0.0-0`}else if(isX(r)){o=`>=${s}.${i}.0 <${s}.${+i+1}.0-0`}else if(n){l("replaceTilde pr",n);o=`>=${s}.${i}.${r}-${n} <${s}.${+i+1}.0-0`}else{o=`>=${s}.${i}.${r} <${s}.${+i+1}.0-0`}l("tilde return",o);return o}))};const replaceCarets=(e,t)=>e.trim().split(/\s+/).map((e=>replaceCaret(e,t))).join(" ");const replaceCaret=(e,t)=>{l("caret",e,t);const s=t.loose?h[c.CARETLOOSE]:h[c.CARET];const i=t.includePrerelease?"-0":"";return e.replace(s,((t,s,r,n,o)=>{l("caret",e,t,s,r,n,o);let a;if(isX(s)){a=""}else if(isX(r)){a=`>=${s}.0.0${i} <${+s+1}.0.0-0`}else if(isX(n)){if(s==="0"){a=`>=${s}.${r}.0${i} <${s}.${+r+1}.0-0`}else{a=`>=${s}.${r}.0${i} <${+s+1}.0.0-0`}}else if(o){l("replaceCaret pr",o);if(s==="0"){if(r==="0"){a=`>=${s}.${r}.${n}-${o} <${s}.${r}.${+n+1}-0`}else{a=`>=${s}.${r}.${n}-${o} <${s}.${+r+1}.0-0`}}else{a=`>=${s}.${r}.${n}-${o} <${+s+1}.0.0-0`}}else{l("no pr");if(s==="0"){if(r==="0"){a=`>=${s}.${r}.${n}${i} <${s}.${r}.${+n+1}-0`}else{a=`>=${s}.${r}.${n}${i} <${s}.${+r+1}.0-0`}}else{a=`>=${s}.${r}.${n} <${+s+1}.0.0-0`}}l("caret return",a);return a}))};const replaceXRanges=(e,t)=>{l("replaceXRanges",e,t);return e.split(/\s+/).map((e=>replaceXRange(e,t))).join(" ")};const replaceXRange=(e,t)=>{e=e.trim();const s=t.loose?h[c.XRANGELOOSE]:h[c.XRANGE];return e.replace(s,((s,i,r,n,o,a)=>{l("xRange",e,s,i,r,n,o,a);const h=isX(r);const c=h||isX(n);const f=c||isX(o);const p=f;if(i==="="&&p){i=""}a=t.includePrerelease?"-0":"";if(h){if(i===">"||i==="<"){s="<0.0.0-0"}else{s="*"}}else if(i&&p){if(c){n=0}o=0;if(i===">"){i=">=";if(c){r=+r+1;n=0;o=0}else{n=+n+1;o=0}}else if(i==="<="){i="<";if(c){r=+r+1}else{n=+n+1}}if(i==="<"){a="-0"}s=`${i+r}.${n}.${o}${a}`}else if(c){s=`>=${r}.0.0${a} <${+r+1}.0.0-0`}else if(f){s=`>=${r}.${n}.0${a} <${r}.${+n+1}.0-0`}l("xRange return",s);return s}))};const replaceStars=(e,t)=>{l("replaceStars",e,t);return e.trim().replace(h[c.STAR],"")};const replaceGTE0=(e,t)=>{l("replaceGTE0",e,t);return e.trim().replace(h[t.includePrerelease?c.GTE0PRE:c.GTE0],"")};const hyphenReplace=e=>(t,s,i,r,n,o,l,a,h,c,f,p,u)=>{if(isX(i)){s=""}else if(isX(r)){s=`>=${i}.0.0${e?"-0":""}`}else if(isX(n)){s=`>=${i}.${r}.0${e?"-0":""}`}else if(o){s=`>=${s}`}else{s=`>=${s}${e?"-0":""}`}if(isX(h)){a=""}else if(isX(c)){a=`<${+h+1}.0.0-0`}else if(isX(f)){a=`<${h}.${+c+1}.0-0`}else if(p){a=`<=${h}.${c}.${f}-${p}`}else if(e){a=`<${h}.${c}.${+f+1}-0`}else{a=`<=${a}`}return`${s} ${a}`.trim()};const testSet=(e,t,s)=>{for(let s=0;s<e.length;s++){if(!e[s].test(t)){return false}}if(t.prerelease.length&&!s.includePrerelease){for(let s=0;s<e.length;s++){l(e[s].semver);if(e[s].semver===o.ANY){continue}if(e[s].semver.prerelease.length>0){const i=e[s].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch){return true}}}return false}return true}},737:function(e,t,s){const i=s(297);const{MAX_LENGTH:r,MAX_SAFE_INTEGER:n}=s(760);const{re:o,t:l}=s(549);const a=s(273);const{compareIdentifiers:h}=s(876);class SemVer{constructor(e,t){t=a(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: ${e}`)}if(e.length>r){throw new TypeError(`version is longer than ${r} characters`)}i("SemVer",e,t);this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;const s=e.trim().match(t.loose?o[l.LOOSE]:o[l.FULL]);if(!s){throw new TypeError(`Invalid Version: ${e}`)}this.raw=e;this.major=+s[1];this.minor=+s[2];this.patch=+s[3];if(this.major>n||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>n||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>n||this.patch<0){throw new TypeError("Invalid patch version")}if(!s[4]){this.prerelease=[]}else{this.prerelease=s[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<n){return t}}return e}))}this.build=s[5]?s[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){i("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 h(this.major,e.major)||h(this.minor,e.minor)||h(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 s=this.prerelease[t];const r=e.prerelease[t];i("prerelease compare",t,s,r);if(s===undefined&&r===undefined){return 0}else if(r===undefined){return 1}else if(s===undefined){return-1}else if(s===r){continue}else{return h(s,r)}}while(++t)}compareBuild(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}let t=0;do{const s=this.build[t];const r=e.build[t];i("prerelease compare",t,s,r);if(s===undefined&&r===undefined){return 0}else if(r===undefined){return 1}else if(s===undefined){return-1}else if(s===r){continue}else{return h(s,r)}}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0;this.patch=0;this.minor=0;this.major++;this.inc("pre",t);break;case"preminor":this.prerelease.length=0;this.patch=0;this.minor++;this.inc("pre",t);break;case"prepatch":this.prerelease.length=0;this.inc("patch",t);this.inc("pre",t);break;case"prerelease":if(this.prerelease.length===0){this.inc("patch",t)}this.inc("pre",t);break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0){this.major++}this.minor=0;this.patch=0;this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0){this.minor++}this.patch=0;this.prerelease=[];break;case"patch":if(this.prerelease.length===0){this.patch++}this.prerelease=[];break;case"pre":if(this.prerelease.length===0){this.prerelease=[0]}else{let e=this.prerelease.length;while(--e>=0){if(typeof this.prerelease[e]==="number"){this.prerelease[e]++;e=-2}}if(e===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error(`invalid increment argument: ${e}`)}this.format();this.raw=this.version;return this}}e.exports=SemVer},5:function(e,t,s){const i=s(64);const clean=(e,t)=>{const s=i(e.trim().replace(/^[=v]+/,""),t);return s?s.version:null};e.exports=clean},575:function(e,t,s){const i=s(622);const r=s(955);const n=s(651);const o=s(43);const l=s(199);const a=s(407);const cmp=(e,t,s,h)=>{switch(t){case"===":if(typeof e==="object"){e=e.version}if(typeof s==="object"){s=s.version}return e===s;case"!==":if(typeof e==="object"){e=e.version}if(typeof s==="object"){s=s.version}return e!==s;case"":case"=":case"==":return i(e,s,h);case"!=":return r(e,s,h);case">":return n(e,s,h);case">=":return o(e,s,h);case"<":return l(e,s,h);case"<=":return a(e,s,h);default:throw new TypeError(`Invalid operator: ${t}`)}};e.exports=cmp},735:function(e,t,s){const i=s(737);const r=s(64);const{re:n,t:o}=s(549);const coerce=(e,t)=>{if(e instanceof i){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};let s=null;if(!t.rtl){s=e.match(n[o.COERCE])}else{let t;while((t=n[o.COERCERTL].exec(e))&&(!s||s.index+s[0].length!==e.length)){if(!s||t.index+t[0].length!==s.index+s[0].length){s=t}n[o.COERCERTL].lastIndex=t.index+t[1].length+t[2].length}n[o.COERCERTL].lastIndex=-1}if(s===null){return null}return r(`${s[2]}.${s[3]||"0"}.${s[4]||"0"}`,t)};e.exports=coerce},701:function(e,t,s){const i=s(737);const compareBuild=(e,t,s)=>{const r=new i(e,s);const n=new i(t,s);return r.compare(n)||r.compareBuild(n)};e.exports=compareBuild},664:function(e,t,s){const i=s(449);const compareLoose=(e,t)=>i(e,t,true);e.exports=compareLoose},449:function(e,t,s){const i=s(737);const compare=(e,t,s)=>new i(e,s).compare(new i(t,s));e.exports=compare},890:function(e,t,s){const i=s(64);const r=s(622);const diff=(e,t)=>{if(r(e,t)){return null}else{const s=i(e);const r=i(t);const n=s.prerelease.length||r.prerelease.length;const o=n?"pre":"";const l=n?"prerelease":"";for(const e in s){if(e==="major"||e==="minor"||e==="patch"){if(s[e]!==r[e]){return o+e}}}return l}};e.exports=diff},622:function(e,t,s){const i=s(449);const eq=(e,t,s)=>i(e,t,s)===0;e.exports=eq},651:function(e,t,s){const i=s(449);const gt=(e,t,s)=>i(e,t,s)>0;e.exports=gt},43:function(e,t,s){const i=s(449);const gte=(e,t,s)=>i(e,t,s)>=0;e.exports=gte},689:function(e,t,s){const i=s(737);const inc=(e,t,s,r)=>{if(typeof s==="string"){r=s;s=undefined}try{return new i(e,s).inc(t,r).version}catch(e){return null}};e.exports=inc},199:function(e,t,s){const i=s(449);const lt=(e,t,s)=>i(e,t,s)<0;e.exports=lt},407:function(e,t,s){const i=s(449);const lte=(e,t,s)=>i(e,t,s)<=0;e.exports=lte},555:function(e,t,s){const i=s(737);const major=(e,t)=>new i(e,t).major;e.exports=major},17:function(e,t,s){const i=s(737);const minor=(e,t)=>new i(e,t).minor;e.exports=minor},955:function(e,t,s){const i=s(449);const neq=(e,t,s)=>i(e,t,s)!==0;e.exports=neq},64:function(e,t,s){const{MAX_LENGTH:i}=s(760);const{re:r,t:n}=s(549);const o=s(737);const l=s(273);const parse=(e,t)=>{t=l(t);if(e instanceof o){return e}if(typeof e!=="string"){return null}if(e.length>i){return null}const s=t.loose?r[n.LOOSE]:r[n.FULL];if(!s.test(e)){return null}try{return new o(e,t)}catch(e){return null}};e.exports=parse},463:function(e,t,s){const i=s(737);const patch=(e,t)=>new i(e,t).patch;e.exports=patch},742:function(e,t,s){const i=s(64);const prerelease=(e,t)=>{const s=i(e,t);return s&&s.prerelease.length?s.prerelease:null};e.exports=prerelease},666:function(e,t,s){const i=s(449);const rcompare=(e,t,s)=>i(t,e,s);e.exports=rcompare},522:function(e,t,s){const i=s(701);const rsort=(e,t)=>e.sort(((e,s)=>i(s,e,t)));e.exports=rsort},45:function(e,t,s){const i=s(296);const satisfies=(e,t,s)=>{try{t=new i(t,s)}catch(e){return false}return t.test(e)};e.exports=satisfies},133:function(e,t,s){const i=s(701);const sort=(e,t)=>e.sort(((e,s)=>i(e,s,t)));e.exports=sort},416:function(e,t,s){const i=s(64);const valid=(e,t)=>{const s=i(e,t);return s?s.version:null};e.exports=valid},299:function(e,t,s){const i=s(549);e.exports={re:i.re,src:i.src,tokens:i.t,SEMVER_SPEC_VERSION:s(760).SEMVER_SPEC_VERSION,SemVer:s(737),compareIdentifiers:s(876).compareIdentifiers,rcompareIdentifiers:s(876).rcompareIdentifiers,parse:s(64),valid:s(416),clean:s(5),inc:s(689),diff:s(890),major:s(555),minor:s(17),patch:s(463),prerelease:s(742),compare:s(449),rcompare:s(666),compareLoose:s(664),compareBuild:s(701),sort:s(133),rsort:s(522),gt:s(651),lt:s(199),eq:s(622),neq:s(955),gte:s(43),lte:s(407),cmp:s(575),coerce:s(735),Comparator:s(539),Range:s(296),satisfies:s(45),toComparators:s(944),maxSatisfying:s(165),minSatisfying:s(66),minVersion:s(339),validRange:s(552),outside:s(812),gtr:s(920),ltr:s(489),intersects:s(982),simplifyRange:s(980),subset:s(601)}},760:function(e){const t="2.0.0";const s=256;const i=Number.MAX_SAFE_INTEGER||9007199254740991;const r=16;e.exports={SEMVER_SPEC_VERSION:t,MAX_LENGTH:s,MAX_SAFE_INTEGER:i,MAX_SAFE_COMPONENT_LENGTH:r}},297:function(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},876:function(e){const t=/^[0-9]+$/;const compareIdentifiers=(e,s)=>{const i=t.test(e);const r=t.test(s);if(i&&r){e=+e;s=+s}return e===s?0:i&&!r?-1:r&&!i?1:e<s?-1:1};const rcompareIdentifiers=(e,t)=>compareIdentifiers(t,e);e.exports={compareIdentifiers:compareIdentifiers,rcompareIdentifiers:rcompareIdentifiers}},273:function(e){const t=["includePrerelease","loose","rtl"];const parseOptions=e=>!e?{}:typeof e!=="object"?{loose:true}:t.filter((t=>e[t])).reduce(((e,t)=>{e[t]=true;return e}),{});e.exports=parseOptions},549:function(e,t,s){const{MAX_SAFE_COMPONENT_LENGTH:i}=s(760);const r=s(297);t=e.exports={};const n=t.re=[];const o=t.src=[];const l=t.t={};let a=0;const createToken=(e,t,s)=>{const i=a++;r(e,i,t);l[e]=i;o[i]=t;n[i]=new RegExp(t,s?"g":undefined)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","[0-9]+");createToken("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");createToken("MAINVERSION",`(${o[l.NUMERICIDENTIFIER]})\\.`+`(${o[l.NUMERICIDENTIFIER]})\\.`+`(${o[l.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${o[l.NUMERICIDENTIFIERLOOSE]})\\.`+`(${o[l.NUMERICIDENTIFIERLOOSE]})\\.`+`(${o[l.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${o[l.NUMERICIDENTIFIER]}|${o[l.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${o[l.NUMERICIDENTIFIERLOOSE]}|${o[l.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASE",`(?:-(${o[l.PRERELEASEIDENTIFIER]}(?:\\.${o[l.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${o[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${o[l.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER","[0-9A-Za-z-]+");createToken("BUILD",`(?:\\+(${o[l.BUILDIDENTIFIER]}(?:\\.${o[l.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${o[l.MAINVERSION]}${o[l.PRERELEASE]}?${o[l.BUILD]}?`);createToken("FULL",`^${o[l.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${o[l.MAINVERSIONLOOSE]}${o[l.PRERELEASELOOSE]}?${o[l.BUILD]}?`);createToken("LOOSE",`^${o[l.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${o[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${o[l.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${o[l.XRANGEIDENTIFIER]})`+`(?:\\.(${o[l.XRANGEIDENTIFIER]})`+`(?:\\.(${o[l.XRANGEIDENTIFIER]})`+`(?:${o[l.PRERELEASE]})?${o[l.BUILD]}?`+`)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${o[l.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${o[l.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${o[l.XRANGEIDENTIFIERLOOSE]})`+`(?:${o[l.PRERELEASELOOSE]})?${o[l.BUILD]}?`+`)?)?`);createToken("XRANGE",`^${o[l.GTLT]}\\s*${o[l.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${o[l.GTLT]}\\s*${o[l.XRANGEPLAINLOOSE]}$`);createToken("COERCE",`${"(^|[^\\d])"+"(\\d{1,"}${i}})`+`(?:\\.(\\d{1,${i}}))?`+`(?:\\.(\\d{1,${i}}))?`+`(?:$|[^\\d])`);createToken("COERCERTL",o[l.COERCE],true);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${o[l.LONETILDE]}\\s+`,true);t.tildeTrimReplace="$1~";createToken("TILDE",`^${o[l.LONETILDE]}${o[l.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${o[l.LONETILDE]}${o[l.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${o[l.LONECARET]}\\s+`,true);t.caretTrimReplace="$1^";createToken("CARET",`^${o[l.LONECARET]}${o[l.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${o[l.LONECARET]}${o[l.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${o[l.GTLT]}\\s*(${o[l.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${o[l.GTLT]}\\s*(${o[l.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${o[l.GTLT]}\\s*(${o[l.LOOSEPLAIN]}|${o[l.XRANGEPLAIN]})`,true);t.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${o[l.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${o[l.XRANGEPLAIN]})`+`\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${o[l.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${o[l.XRANGEPLAINLOOSE]})`+`\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},920:function(e,t,s){const i=s(812);const gtr=(e,t,s)=>i(e,t,">",s);e.exports=gtr},982:function(e,t,s){const i=s(296);const intersects=(e,t,s)=>{e=new i(e,s);t=new i(t,s);return e.intersects(t)};e.exports=intersects},489:function(e,t,s){const i=s(812);const ltr=(e,t,s)=>i(e,t,"<",s);e.exports=ltr},165:function(e,t,s){const i=s(737);const r=s(296);const maxSatisfying=(e,t,s)=>{let n=null;let o=null;let l=null;try{l=new r(t,s)}catch(e){return null}e.forEach((e=>{if(l.test(e)){if(!n||o.compare(e)===-1){n=e;o=new i(n,s)}}}));return n};e.exports=maxSatisfying},66:function(e,t,s){const i=s(737);const r=s(296);const minSatisfying=(e,t,s)=>{let n=null;let o=null;let l=null;try{l=new r(t,s)}catch(e){return null}e.forEach((e=>{if(l.test(e)){if(!n||o.compare(e)===1){n=e;o=new i(n,s)}}}));return n};e.exports=minSatisfying},339:function(e,t,s){const i=s(737);const r=s(296);const n=s(651);const minVersion=(e,t)=>{e=new r(e,t);let s=new i("0.0.0");if(e.test(s)){return s}s=new i("0.0.0-0");if(e.test(s)){return s}s=null;for(let t=0;t<e.set.length;++t){const r=e.set[t];let o=null;r.forEach((e=>{const t=new i(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||n(t,o)){o=t}break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}));if(o&&(!s||n(s,o))){s=o}}if(s&&e.test(s)){return s}return null};e.exports=minVersion},812:function(e,t,s){const i=s(737);const r=s(539);const{ANY:n}=r;const o=s(296);const l=s(45);const a=s(651);const h=s(199);const c=s(407);const f=s(43);const outside=(e,t,s,p)=>{e=new i(e,p);t=new o(t,p);let u,E,d,m,$;switch(s){case">":u=a;E=c;d=h;m=">";$=">=";break;case"<":u=h;E=f;d=a;m="<";$="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(l(e,t,p)){return false}for(let s=0;s<t.set.length;++s){const i=t.set[s];let o=null;let l=null;i.forEach((e=>{if(e.semver===n){e=new r(">=0.0.0")}o=o||e;l=l||e;if(u(e.semver,o.semver,p)){o=e}else if(d(e.semver,l.semver,p)){l=e}}));if(o.operator===m||o.operator===$){return false}if((!l.operator||l.operator===m)&&E(e,l.semver)){return false}else if(l.operator===$&&d(e,l.semver)){return false}}return true};e.exports=outside},980:function(e,t,s){const i=s(45);const r=s(449);e.exports=(e,t,s)=>{const n=[];let o=null;let l=null;const a=e.sort(((e,t)=>r(e,t,s)));for(const e of a){const r=i(e,t,s);if(r){l=e;if(!o){o=e}}else{if(l){n.push([o,l])}l=null;o=null}}if(o){n.push([o,null])}const h=[];for(const[e,t]of n){if(e===t){h.push(e)}else if(!t&&e===a[0]){h.push("*")}else if(!t){h.push(`>=${e}`)}else if(e===a[0]){h.push(`<=${t}`)}else{h.push(`${e} - ${t}`)}}const c=h.join(" || ");const f=typeof t.raw==="string"?t.raw:String(t);return c.length<f.length?c:t}},601:function(e,t,s){const i=s(296);const r=s(539);const{ANY:n}=r;const o=s(45);const l=s(449);const subset=(e,t,s={})=>{if(e===t){return true}e=new i(e,s);t=new i(t,s);let r=false;e:for(const i of e.set){for(const e of t.set){const t=simpleSubset(i,e,s);r=r||t!==null;if(t){continue e}}if(r){return false}}return true};const simpleSubset=(e,t,s)=>{if(e===t){return true}if(e.length===1&&e[0].semver===n){if(t.length===1&&t[0].semver===n){return true}else if(s.includePrerelease){e=[new r(">=0.0.0-0")]}else{e=[new r(">=0.0.0")]}}if(t.length===1&&t[0].semver===n){if(s.includePrerelease){return true}else{t=[new r(">=0.0.0")]}}const i=new Set;let a,h;for(const t of e){if(t.operator===">"||t.operator===">="){a=higherGT(a,t,s)}else if(t.operator==="<"||t.operator==="<="){h=lowerLT(h,t,s)}else{i.add(t.semver)}}if(i.size>1){return null}let c;if(a&&h){c=l(a.semver,h.semver,s);if(c>0){return null}else if(c===0&&(a.operator!==">="||h.operator!=="<=")){return null}}for(const e of i){if(a&&!o(e,String(a),s)){return null}if(h&&!o(e,String(h),s)){return null}for(const i of t){if(!o(e,String(i),s)){return false}}return true}let f,p;let u,E;let d=h&&!s.includePrerelease&&h.semver.prerelease.length?h.semver:false;let m=a&&!s.includePrerelease&&a.semver.prerelease.length?a.semver:false;if(d&&d.prerelease.length===1&&h.operator==="<"&&d.prerelease[0]===0){d=false}for(const e of t){E=E||e.operator===">"||e.operator===">=";u=u||e.operator==="<"||e.operator==="<=";if(a){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===">="){f=higherGT(a,e,s);if(f===e&&f!==a){return false}}else if(a.operator===">="&&!o(a.semver,String(e),s)){return false}}if(h){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=lowerLT(h,e,s);if(p===e&&p!==h){return false}}else if(h.operator==="<="&&!o(h.semver,String(e),s)){return false}}if(!e.operator&&(h||a)&&c!==0){return false}}if(a&&u&&!h&&c!==0){return false}if(h&&E&&!a&&c!==0){return false}if(m||d){return false}return true};const higherGT=(e,t,s)=>{if(!e){return t}const i=l(e.semver,t.semver,s);return i>0?e:i<0?t:t.operator===">"&&e.operator===">="?t:e};const lowerLT=(e,t,s)=>{if(!e){return t}const i=l(e.semver,t.semver,s);return i<0?e:i>0?t:t.operator==="<"&&e.operator==="<="?t:e};e.exports=subset},944:function(e,t,s){const i=s(296);const toComparators=(e,t)=>new i(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));e.exports=toComparators},552:function(e,t,s){const i=s(296);const validRange=(e,t)=>{try{return new i(e,t).range||"*"}catch(e){return null}};e.exports=validRange}};var t={};function __nccwpck_require__(s){var i=t[s];if(i!==undefined){return i.exports}var r=t[s]={exports:{}};var n=true;try{e[s](r,r.exports,__nccwpck_require__);n=false}finally{if(n)delete t[s]}return r.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var s=__nccwpck_require__(299);module.exports=s})();
@@ -1 +1 @@
1
- {"name":"semver","license":"ISC"}
1
+ {"name":"semver","author":"GitHub Inc.","license":"ISC"}
@@ -1,13 +1,4 @@
1
1
  "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
12
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
13
4
  };
@@ -27,31 +18,32 @@ class BaseGenerator extends Generator_1.default {
27
18
  prompting() {
28
19
  return this.questions;
29
20
  }
30
- writing() {
31
- return __awaiter(this, void 0, void 0, function* () {
32
- const context = Object.assign(Object.assign({}, this.data), this.prompts);
33
- if ((0, fs_1.statSync)(this.path).isDirectory()) {
34
- this.copyDirectory({
35
- context,
36
- path: this.path,
21
+ async writing() {
22
+ const context = {
23
+ ...this.data,
24
+ ...this.prompts,
25
+ };
26
+ if ((0, fs_1.statSync)(this.path).isDirectory()) {
27
+ this.copyDirectory({
28
+ context,
29
+ path: this.path,
30
+ target: this.target,
31
+ });
32
+ }
33
+ else {
34
+ if (this.path.endsWith('.tpl')) {
35
+ this.copyTpl({
36
+ templatePath: this.path,
37
37
  target: this.target,
38
+ context,
38
39
  });
39
40
  }
40
41
  else {
41
- if (this.path.endsWith('.tpl')) {
42
- this.copyTpl({
43
- templatePath: this.path,
44
- target: this.target,
45
- context,
46
- });
47
- }
48
- else {
49
- const absTarget = this.target;
50
- fs_extra_1.default.mkdirpSync((0, path_1.dirname)(absTarget));
51
- (0, fs_1.copyFileSync)(this.path, absTarget);
52
- }
42
+ const absTarget = this.target;
43
+ fs_extra_1.default.mkdirpSync((0, path_1.dirname)(absTarget));
44
+ (0, fs_1.copyFileSync)(this.path, absTarget);
53
45
  }
54
- });
46
+ }
55
47
  }
56
48
  }
57
49
  exports.default = BaseGenerator;
@@ -1,19 +1,10 @@
1
1
  "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
12
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
13
4
  };
14
5
  Object.defineProperty(exports, "__esModule", { value: true });
15
6
  const BaseGenerator_1 = __importDefault(require("./BaseGenerator"));
16
- const generateFile = ({ path, target, baseDir, data, questions, }) => __awaiter(void 0, void 0, void 0, function* () {
7
+ const generateFile = async ({ path, target, baseDir, data, questions, }) => {
17
8
  const generator = new BaseGenerator_1.default({
18
9
  path,
19
10
  target,
@@ -21,6 +12,6 @@ const generateFile = ({ path, target, baseDir, data, questions, }) => __awaiter(
21
12
  data,
22
13
  questions,
23
14
  });
24
- yield generator.run();
25
- });
15
+ await generator.run();
16
+ };
26
17
  exports.default = generateFile;
@@ -1,13 +1,4 @@
1
1
  "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
12
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
13
4
  };
@@ -25,19 +16,15 @@ class Generator {
25
16
  this.args = args;
26
17
  this.prompts = {};
27
18
  }
28
- run() {
29
- return __awaiter(this, void 0, void 0, function* () {
30
- const questions = this.prompting();
31
- this.prompts = yield (0, prompts_1.default)(questions);
32
- yield this.writing();
33
- });
19
+ async run() {
20
+ const questions = this.prompting();
21
+ this.prompts = await (0, prompts_1.default)(questions);
22
+ await this.writing();
34
23
  }
35
24
  prompting() {
36
25
  return [];
37
26
  }
38
- writing() {
39
- return __awaiter(this, void 0, void 0, function* () { });
40
- }
27
+ async writing() { }
41
28
  copyTpl(opts) {
42
29
  const tpl = (0, fs_1.readFileSync)(opts.templatePath, 'utf-8');
43
30
  const content = mustache_1.default.render(tpl, opts.context);
package/dist/index.d.ts CHANGED
@@ -6,6 +6,7 @@ import cheerio from '../compiled/cheerio';
6
6
  import crossSpawn from '../compiled/cross-spawn';
7
7
  import debug from '../compiled/debug';
8
8
  import deepmerge from '../compiled/deepmerge';
9
+ import * as execa from '../compiled/execa';
9
10
  import fsExtra from '../compiled/fs-extra';
10
11
  import glob from '../compiled/glob';
11
12
  import lodash from '../compiled/lodash';
@@ -26,10 +27,11 @@ import * as logger from './logger';
26
27
  import updatePackageJSON from './updatePackageJSON';
27
28
  export * from './getCorejsVersion';
28
29
  export * from './importLazy';
30
+ export * from './isLocalDev';
29
31
  export * from './isStyleFile';
30
32
  export * from './npmClient';
31
33
  export * from './randomColor/randomColor';
32
34
  export * as register from './register';
33
35
  export * from './tryPaths';
34
36
  export * from './winPath';
35
- export { address, axios, chalk, cheerio, chokidar, crossSpawn, debug, deepmerge, fsExtra, glob, Generator, BaseGenerator, generateFile, installDeps, lodash, logger, Mustache, pkgUp, portfinder, prompts, resolve, rimraf, semver, stripAnsi, updatePackageJSON, yParser, };
37
+ export { address, axios, chalk, cheerio, chokidar, crossSpawn, debug, deepmerge, execa, fsExtra, glob, Generator, BaseGenerator, generateFile, installDeps, lodash, logger, Mustache, pkgUp, portfinder, prompts, resolve, rimraf, semver, stripAnsi, updatePackageJSON, yParser, };
package/dist/index.js CHANGED
@@ -29,7 +29,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
29
29
  return (mod && mod.__esModule) ? mod : { "default": mod };
30
30
  };
31
31
  Object.defineProperty(exports, "__esModule", { value: true });
32
- exports.yParser = exports.updatePackageJSON = exports.stripAnsi = exports.semver = exports.rimraf = exports.resolve = exports.prompts = exports.portfinder = exports.pkgUp = exports.Mustache = exports.logger = exports.lodash = exports.installDeps = exports.generateFile = exports.BaseGenerator = exports.Generator = exports.glob = exports.fsExtra = exports.deepmerge = exports.debug = exports.crossSpawn = exports.chokidar = exports.cheerio = exports.chalk = exports.axios = exports.address = exports.register = void 0;
32
+ exports.yParser = exports.updatePackageJSON = exports.stripAnsi = exports.semver = exports.rimraf = exports.resolve = exports.prompts = exports.portfinder = exports.pkgUp = exports.Mustache = exports.logger = exports.lodash = exports.installDeps = exports.generateFile = exports.BaseGenerator = exports.Generator = exports.glob = exports.fsExtra = exports.execa = exports.deepmerge = exports.debug = exports.crossSpawn = exports.chokidar = exports.cheerio = exports.chalk = exports.axios = exports.address = exports.register = void 0;
33
33
  const chokidar = __importStar(require("chokidar"));
34
34
  exports.chokidar = chokidar;
35
35
  const address_1 = __importDefault(require("../compiled/address"));
@@ -46,6 +46,8 @@ const debug_1 = __importDefault(require("../compiled/debug"));
46
46
  exports.debug = debug_1.default;
47
47
  const deepmerge_1 = __importDefault(require("../compiled/deepmerge"));
48
48
  exports.deepmerge = deepmerge_1.default;
49
+ const execa = __importStar(require("../compiled/execa"));
50
+ exports.execa = execa;
49
51
  const fs_extra_1 = __importDefault(require("../compiled/fs-extra"));
50
52
  exports.fsExtra = fs_extra_1.default;
51
53
  const glob_1 = __importDefault(require("../compiled/glob"));
@@ -85,6 +87,7 @@ const updatePackageJSON_1 = __importDefault(require("./updatePackageJSON"));
85
87
  exports.updatePackageJSON = updatePackageJSON_1.default;
86
88
  __exportStar(require("./getCorejsVersion"), exports);
87
89
  __exportStar(require("./importLazy"), exports);
90
+ __exportStar(require("./isLocalDev"), exports);
88
91
  __exportStar(require("./isStyleFile"), exports);
89
92
  __exportStar(require("./npmClient"), exports);
90
93
  __exportStar(require("./randomColor/randomColor"), exports);
@@ -43,7 +43,9 @@ function installDeps({ opts, cwd = process.cwd(), }) {
43
43
  .join(' '), {
44
44
  encoding: 'utf8',
45
45
  cwd,
46
- env: Object.assign({}, process.env),
46
+ env: {
47
+ ...process.env,
48
+ },
47
49
  stderr: 'pipe',
48
50
  stdout: 'pipe',
49
51
  });
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Check whether it is development in local
3
+ */
4
+ export declare const isLocalDev: () => string | false;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isLocalDev = void 0;
4
+ const fs_1 = require("fs");
5
+ const path_1 = require("path");
6
+ const root = (0, path_1.join)(__dirname, '../../../');
7
+ const rootPkg = (0, path_1.join)(root, './package.json');
8
+ /**
9
+ * Check whether it is development in local
10
+ */
11
+ const isLocalDev = () => {
12
+ const isLocal = (0, fs_1.existsSync)(rootPkg) && require(rootPkg)._local;
13
+ return isLocal ? root : false;
14
+ };
15
+ exports.isLocalDev = isLocalDev;
package/dist/logger.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export declare const prefixes: {
2
2
  wait: string;
3
3
  error: string;
4
+ fatal: string;
4
5
  warn: string;
5
6
  ready: string;
6
7
  info: string;
@@ -14,3 +15,5 @@ export declare function ready(...message: any[]): void;
14
15
  export declare function info(...message: any[]): void;
15
16
  export declare function event(...message: any[]): void;
16
17
  export declare function debug(...message: any[]): void;
18
+ export declare function fatal(...message: any[]): void;
19
+ export declare function getLatestLogFilePath(): string;
package/dist/logger.js CHANGED
@@ -3,11 +3,39 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.debug = exports.event = exports.info = exports.ready = exports.warn = exports.error = exports.wait = exports.prefixes = void 0;
6
+ exports.getLatestLogFilePath = exports.fatal = exports.debug = exports.event = exports.info = exports.ready = exports.warn = exports.error = exports.wait = exports.prefixes = void 0;
7
+ const path_1 = require("path");
8
+ const pino_1 = __importDefault(require("pino"));
7
9
  const chalk_1 = __importDefault(require("../compiled/chalk"));
10
+ const fs_extra_1 = __importDefault(require("../compiled/fs-extra"));
11
+ const loggerDir = (0, path_1.join)(process.cwd(), 'node_modules/.cache/logger');
12
+ const loggerPath = (0, path_1.join)(loggerDir, 'umi.log');
13
+ fs_extra_1.default.mkdirpSync(loggerDir);
14
+ const customLevels = {
15
+ ready: 31,
16
+ event: 32,
17
+ wait: 55,
18
+ // 虽然这里设置了 debug 为 30,但日志中还是 20,符合预期
19
+ // 这里不加会不生成到 umi.log,transport 的 level 配置没有生效,原因不明
20
+ debug: 30,
21
+ };
22
+ const logger = (0, pino_1.default)({
23
+ customLevels,
24
+ }, pino_1.default.transport({
25
+ targets: [
26
+ {
27
+ target: require.resolve('pino/file'),
28
+ options: {
29
+ destination: loggerPath,
30
+ },
31
+ level: 'trace',
32
+ },
33
+ ],
34
+ }));
8
35
  exports.prefixes = {
9
36
  wait: chalk_1.default.cyan('wait') + ' -',
10
37
  error: chalk_1.default.red('error') + ' -',
38
+ fatal: chalk_1.default.red('fatal') + ' -',
11
39
  warn: chalk_1.default.yellow('warn') + ' -',
12
40
  ready: chalk_1.default.green('ready') + ' -',
13
41
  info: chalk_1.default.cyan('info') + ' -',
@@ -16,31 +44,47 @@ exports.prefixes = {
16
44
  };
17
45
  function wait(...message) {
18
46
  console.log(exports.prefixes.wait, ...message);
47
+ logger.wait(message[0]);
19
48
  }
20
49
  exports.wait = wait;
21
50
  function error(...message) {
22
51
  console.error(exports.prefixes.error, ...message);
52
+ logger.error(message[0]);
23
53
  }
24
54
  exports.error = error;
25
55
  function warn(...message) {
26
56
  console.warn(exports.prefixes.warn, ...message);
57
+ logger.warn(message[0]);
27
58
  }
28
59
  exports.warn = warn;
29
60
  function ready(...message) {
30
61
  console.log(exports.prefixes.ready, ...message);
62
+ logger.ready(message[0]);
31
63
  }
32
64
  exports.ready = ready;
33
65
  function info(...message) {
34
66
  console.log(exports.prefixes.info, ...message);
67
+ logger.info(message[0]);
35
68
  }
36
69
  exports.info = info;
37
70
  function event(...message) {
38
71
  console.log(exports.prefixes.event, ...message);
72
+ logger.event(message[0]);
39
73
  }
40
74
  exports.event = event;
41
75
  function debug(...message) {
42
76
  if (process.env.DEBUG) {
43
77
  console.log(exports.prefixes.debug, ...message);
44
78
  }
79
+ logger.debug(message[0]);
45
80
  }
46
81
  exports.debug = debug;
82
+ function fatal(...message) {
83
+ console.error(exports.prefixes.fatal, ...message);
84
+ logger.fatal(message[0]);
85
+ }
86
+ exports.fatal = fatal;
87
+ function getLatestLogFilePath() {
88
+ return loggerPath;
89
+ }
90
+ exports.getLatestLogFilePath = getLatestLogFilePath;
@@ -7,8 +7,9 @@ export declare enum NpmClientEnum {
7
7
  yarn = "yarn",
8
8
  npm = "npm"
9
9
  }
10
- export declare const getNpmClient: () => NpmClient;
11
- export declare const checkNpmClient: (npmClient: NpmClient) => boolean;
10
+ export declare const getNpmClient: (opts: {
11
+ cwd: string;
12
+ }) => NpmClient;
12
13
  export declare const installWithNpmClient: ({ npmClient, cwd, }: {
13
14
  npmClient: NpmClient;
14
15
  cwd?: string | undefined;
package/dist/npmClient.js CHANGED
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.installWithNpmClient = exports.checkNpmClient = exports.getNpmClient = exports.NpmClientEnum = exports.npmClients = void 0;
3
+ exports.installWithNpmClient = exports.getNpmClient = exports.NpmClientEnum = exports.npmClients = void 0;
4
+ const fs_1 = require("fs");
5
+ const path_1 = require("path");
4
6
  exports.npmClients = ['pnpm', 'tnpm', 'cnpm', 'yarn', 'npm'];
5
7
  var NpmClientEnum;
6
8
  (function (NpmClientEnum) {
@@ -10,26 +12,25 @@ var NpmClientEnum;
10
12
  NpmClientEnum["yarn"] = "yarn";
11
13
  NpmClientEnum["npm"] = "npm";
12
14
  })(NpmClientEnum = exports.NpmClientEnum || (exports.NpmClientEnum = {}));
13
- const getNpmClient = () => {
14
- const userAgent = process.env.npm_config_user_agent;
15
- if (userAgent) {
16
- if (userAgent.includes('pnpm'))
17
- return 'pnpm';
18
- if (userAgent.includes('tnpm'))
19
- return 'tnpm';
20
- if (userAgent.includes('yarn'))
21
- return 'yarn';
22
- if (userAgent.includes('cnpm'))
23
- return 'cnpm';
15
+ const getNpmClient = (opts) => {
16
+ const chokidarPkg = require('chokidar/package.json');
17
+ if (chokidarPkg.__npminstall_done) {
18
+ return chokidarPkg._resolved.includes('registry.npm.alibaba-inc.com')
19
+ ? 'tnpm'
20
+ : 'cnpm';
21
+ }
22
+ const chokidarPath = require.resolve('chokidar');
23
+ if (chokidarPath.includes('.pnpm') ||
24
+ (0, fs_1.existsSync)((0, path_1.join)(opts.cwd, 'node_modules', '.pnpm'))) {
25
+ return 'pnpm';
26
+ }
27
+ if ((0, fs_1.existsSync)((0, path_1.join)(opts.cwd, 'yarn.lock')) ||
28
+ (0, fs_1.existsSync)((0, path_1.join)(opts.cwd, 'node_modules', '.yarn-integrity'))) {
29
+ return 'yarn';
24
30
  }
25
31
  return 'npm';
26
32
  };
27
33
  exports.getNpmClient = getNpmClient;
28
- const checkNpmClient = (npmClient) => {
29
- const userAgent = process.env.npm_config_user_agent;
30
- return !!(userAgent && userAgent.includes(npmClient));
31
- };
32
- exports.checkNpmClient = checkNpmClient;
33
34
  const installWithNpmClient = ({ npmClient, cwd, }) => {
34
35
  const { sync } = require('../compiled/cross-spawn');
35
36
  const npm = sync(npmClient, [npmClient === 'yarn' ? '' : 'install'], {
package/dist/register.js CHANGED
@@ -14,7 +14,9 @@ function transform(opts) {
14
14
  const ext = (0, path_1.extname)(filename);
15
15
  return implementor.transformSync(code, {
16
16
  loader: ext.slice(1),
17
- target: 'es2017',
17
+ // consistent with `tsconfig.base.json`
18
+ // https://github.com/umijs/umi-next/pull/729
19
+ target: 'es2019',
18
20
  format: 'cjs',
19
21
  }).code;
20
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umijs/utils",
3
- "version": "4.0.0-rc.9",
3
+ "version": "4.0.0",
4
4
  "homepage": "https://github.com/umijs/umi-next/tree/master/packages/utils#readme",
5
5
  "bugs": "https://github.com/umijs/umi-next/issues",
6
6
  "repository": {
@@ -16,44 +16,45 @@
16
16
  ],
17
17
  "scripts": {
18
18
  "build": "pnpm tsc",
19
- "build:deps": "pnpm esno ../../scripts/bundleDeps.ts",
19
+ "build:deps": "umi-scripts bundleDeps",
20
20
  "dev": "pnpm build -- --watch",
21
- "test": "jest -c ../../jest.turbo.config.ts"
21
+ "test": "umi-scripts jest-turbo"
22
22
  },
23
23
  "dependencies": {
24
- "chokidar": "3.5.3"
24
+ "chokidar": "3.5.3",
25
+ "pino": "7.11.0"
25
26
  },
26
27
  "devDependencies": {
27
28
  "@types/color": "3.0.3",
28
29
  "@types/cross-spawn": "6.0.2",
29
30
  "@types/debug": "4.1.7",
30
- "@types/lodash": "4.14.180",
31
+ "@types/lodash": "4.14.182",
31
32
  "@types/mustache": "4.1.2",
32
33
  "@types/prompts": "^2.0.14",
33
34
  "@types/rimraf": "3.0.2",
34
35
  "@types/semver": "7.3.9",
35
36
  "address": "1.1.2",
36
- "axios": "0.26.1",
37
+ "axios": "0.27.2",
37
38
  "chalk": "5.0.1",
38
39
  "cheerio": "1.0.0-rc.10",
39
- "color": "4.2.1",
40
+ "color": "4.2.3",
40
41
  "cross-spawn": "7.0.3",
41
42
  "debug": "4.3.4",
42
43
  "deepmerge": "4.2.2",
43
44
  "execa": "6.1.0",
44
45
  "fs-extra": "10.0.1",
45
- "glob": "7.2.0",
46
+ "glob": "8.0.1",
46
47
  "import-lazy": "4.0.0",
47
48
  "lodash": "4.17.21",
48
49
  "mustache": "4.2.0",
49
50
  "pirates": "4.0.5",
50
51
  "pkg-up": "4.0.0",
51
52
  "portfinder": "1.0.28",
52
- "prettier": "2.6.0",
53
+ "prettier": "2.6.2",
53
54
  "prompts": "2.4.2",
54
55
  "resolve": "1.22.0",
55
56
  "rimraf": "3.0.2",
56
- "semver": "7.3.5",
57
+ "semver": "7.3.6",
57
58
  "strip-ansi": "7.0.1",
58
59
  "yargs-parser": "21.0.1"
59
60
  },