eslint-cli-bundle 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eslint.js +239 -60
- package/package.json +1 -1
- package/dist/chunk-qnHZjHhP.js +0 -1
- package/dist/jiti-DyCiGFB9.js +0 -9
- package/dist/node_modules/eslint/lib/cli-engine/formatters/formatters-meta.json +0 -18
- package/dist/node_modules/eslint/lib/cli-engine/formatters/html.js +0 -162
- package/dist/node_modules/eslint/lib/cli-engine/formatters/json-with-metadata.js +0 -1
- package/dist/node_modules/eslint/lib/cli-engine/formatters/json.js +0 -1
- package/dist/node_modules/eslint/lib/cli-engine/formatters/stylish.js +0 -11
- package/dist/src-FNB-unmu.js +0 -1
- package/dist/supports-color-DduUuJDw.js +0 -1
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import{r as e,t}from"../../../../../chunk-qnHZjHhP.js";import{t as n}from"../../../../../supports-color-DduUuJDw.js";var r=t(((e,t)=>{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]}})),i=t(((e,t)=>{let n=r(),i={};for(let e of Object.keys(n))i[n[e]]=e;let a={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=a;for(let e of Object.keys(a)){if(!(`channels`in a[e]))throw Error(`missing channels property: `+e);if(!(`labels`in a[e]))throw Error(`missing channel labels property: `+e);if(a[e].labels.length!==a[e].channels)throw Error(`channel and label counts mismatch: `+e);let{channels:t,labels:n}=a[e];delete a[e].channels,delete a[e].labels,Object.defineProperty(a[e],`channels`,{value:t}),Object.defineProperty(a[e],`labels`,{value:n})}a.rgb.hsl=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=a-i,s,c;a===i?s=0:t===a?s=(n-r)/o:n===a?s=2+(r-t)/o:r===a&&(s=4+(t-n)/o),s=Math.min(s*60,360),s<0&&(s+=360);let l=(i+a)/2;return c=a===i?0:l<=.5?o/(a+i):o/(2-a-i),[s,c*100,l*100]},a.rgb.hsv=function(e){let t,n,r,i,a,o=e[0]/255,s=e[1]/255,c=e[2]/255,l=Math.max(o,s,c),u=l-Math.min(o,s,c),d=function(e){return(l-e)/6/u+1/2};return u===0?(i=0,a=0):(a=u/l,t=d(o),n=d(s),r=d(c),o===l?i=r-n:s===l?i=1/3+t-r:c===l&&(i=2/3+n-t),i<0?i+=1:i>1&&--i),[i*360,a*100,l*100]},a.rgb.hwb=function(e){let t=e[0],n=e[1],r=e[2],i=a.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[i,o*100,r*100]},a.rgb.cmyk=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(1-t,1-n,1-r),a=(1-t-i)/(1-i)||0,o=(1-n-i)/(1-i)||0,s=(1-r-i)/(1-i)||0;return[a*100,o*100,s*100,i*100]};function o(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}a.rgb.keyword=function(e){let t=i[e];if(t)return t;let r=1/0,a;for(let t of Object.keys(n)){let i=n[t],s=o(e,i);s<r&&(r=s,a=t)}return a},a.keyword.rgb=function(e){return n[e]},a.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;let i=t*.4124+n*.3576+r*.1805,a=t*.2126+n*.7152+r*.0722,o=t*.0193+n*.1192+r*.9505;return[i*100,a*100,o*100]},a.rgb.lab=function(e){let t=a.rgb.xyz(e),n=t[0],r=t[1],i=t[2];return n/=95.047,r/=100,i/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116,[116*r-16,500*(n-r),200*(r-i)]},a.hsl.rgb=function(e){let t=e[0]/360,n=e[1]/100,r=e[2]/100,i,a,o;if(n===0)return o=r*255,[o,o,o];i=r<.5?r*(1+n):r+n-r*n;let s=2*r-i,c=[0,0,0];for(let e=0;e<3;e++)a=t+1/3*-(e-1),a<0&&a++,a>1&&a--,o=6*a<1?s+(i-s)*6*a:2*a<1?i:3*a<2?s+(i-s)*(2/3-a)*6:s,c[e]=o*255;return c},a.hsl.hsv=function(e){let t=e[0],n=e[1]/100,r=e[2]/100,i=n,a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,i*=a<=1?a:2-a;let o=(r+n)/2;return[t,(r===0?2*i/(a+i):2*n/(r+n))*100,o*100]},a.hsv.rgb=function(e){let t=e[0]/60,n=e[1]/100,r=e[2]/100,i=Math.floor(t)%6,a=t-Math.floor(t),o=255*r*(1-n),s=255*r*(1-n*a),c=255*r*(1-n*(1-a));switch(r*=255,i){case 0:return[r,c,o];case 1:return[s,r,o];case 2:return[o,r,c];case 3:return[o,s,r];case 4:return[c,o,r];case 5:return[r,o,s]}},a.hsv.hsl=function(e){let t=e[0],n=e[1]/100,r=e[2]/100,i=Math.max(r,.01),a,o;o=(2-n)*r;let s=(2-n)*i;return a=n*i,a/=s<=1?s:2-s,a||=0,o/=2,[t,a*100,o*100]},a.hwb.rgb=function(e){let t=e[0]/360,n=e[1]/100,r=e[2]/100,i=n+r,a;i>1&&(n/=i,r/=i);let o=Math.floor(6*t),s=1-r;a=6*t-o,o&1&&(a=1-a);let c=n+a*(s-n),l,u,d;switch(o){default:case 6:case 0:l=s,u=c,d=n;break;case 1:l=c,u=s,d=n;break;case 2:l=n,u=s,d=c;break;case 3:l=n,u=c,d=s;break;case 4:l=c,u=n,d=s;break;case 5:l=s,u=n,d=c;break}return[l*255,u*255,d*255]},a.cmyk.rgb=function(e){let t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100,a=1-Math.min(1,t*(1-i)+i),o=1-Math.min(1,n*(1-i)+i),s=1-Math.min(1,r*(1-i)+i);return[a*255,o*255,s*255]},a.xyz.rgb=function(e){let t=e[0]/100,n=e[1]/100,r=e[2]/100,i,a,o;return i=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,o=t*.0557+n*-.204+r*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),o=Math.min(Math.max(0,o),1),[i*255,a*255,o*255]},a.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];return t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,[116*n-16,500*(t-n),200*(n-r)]},a.lab.xyz=function(e){let t=e[0],n=e[1],r=e[2],i,a,o;a=(t+16)/116,i=n/500+a,o=a-r/200;let s=a**3,c=i**3,l=o**3;return a=s>.008856?s:(a-16/116)/7.787,i=c>.008856?c:(i-16/116)/7.787,o=l>.008856?l:(o-16/116)/7.787,i*=95.047,a*=100,o*=108.883,[i,a,o]},a.lab.lch=function(e){let t=e[0],n=e[1],r=e[2],i;return i=Math.atan2(r,n)*360/2/Math.PI,i<0&&(i+=360),[t,Math.sqrt(n*n+r*r),i]},a.lch.lab=function(e){let t=e[0],n=e[1],r=e[2]/360*2*Math.PI;return[t,n*Math.cos(r),n*Math.sin(r)]},a.rgb.ansi16=function(e,t=null){let[n,r,i]=e,o=t===null?a.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),o===0)return 30;let s=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return o===2&&(s+=60),s},a.hsv.ansi16=function(e){return a.rgb.ansi16(a.hsv.rgb(e),e[2])},a.rgb.ansi256=function(e){let t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},a.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let n=(~~(e>50)+1)*.5;return[(t&1)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},a.ansi256.rgb=function(e){if(e>=232){let t=(e-232)*10+8;return[t,t,t]}e-=16;let t;return[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},a.rgb.hex=function(e){let t=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return`000000`.substring(t.length)+t},a.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split(``).map(e=>e+e).join(``));let r=parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},a.rgb.hcg=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),o=i-a,s,c;return s=o<1?a/(1-o):0,c=o<=0?0:i===t?(n-r)/o%6:i===n?2+(r-t)/o:4+(t-n)/o,c/=6,c%=1,[c*360,o*100,s*100]},a.hsl.hcg=function(e){let t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n),i=0;return r<1&&(i=(n-.5*r)/(1-r)),[e[0],r*100,i*100]},a.hsv.hcg=function(e){let t=e[1]/100,n=e[2]/100,r=t*n,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],r*100,i*100]},a.hcg.rgb=function(e){let t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];let i=[0,0,0],a=t%1*6,o=a%1,s=1-o,c=0;switch(Math.floor(a)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return c=(1-n)*r,[(n*i[0]+c)*255,(n*i[1]+c)*255,(n*i[2]+c)*255]},a.hcg.hsv=function(e){let t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],r*100,n*100]},a.hcg.hsl=function(e){let t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],r*100,n*100]},a.hcg.hwb=function(e){let t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],(n-t)*100,(1-n)*100]},a.hwb.hcg=function(e){let t=e[1]/100,n=1-e[2]/100,r=n-t,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],r*100,i*100]},a.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},a.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},a.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},a.gray.hsl=function(e){return[0,0,e[0]]},a.gray.hsv=a.gray.hsl,a.gray.hwb=function(e){return[0,100,e[0]]},a.gray.cmyk=function(e){return[0,0,0,e[0]]},a.gray.lab=function(e){return[e[0],0,0]},a.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return`000000`.substring(n.length)+n},a.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}})),a=t(((e,t)=>{let n=i();function r(){let e={},t=Object.keys(n);for(let n=t.length,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}function a(e){let t=r(),i=[e];for(t[e].distance=0;i.length;){let e=i.pop(),r=Object.keys(n[e]);for(let n=r.length,a=0;a<n;a++){let n=r[a],o=t[n];o.distance===-1&&(o.distance=t[e].distance+1,o.parent=e,i.unshift(n))}}return t}function o(e,t){return function(n){return t(e(n))}}function s(e,t){let r=[t[e].parent,e],i=n[t[e].parent][e],a=t[e].parent;for(;t[a].parent;)r.unshift(t[a].parent),i=o(n[t[a].parent][a],i),a=t[a].parent;return i.conversion=r,i}t.exports=function(e){let t=a(e),n={},r=Object.keys(t);for(let e=r.length,i=0;i<e;i++){let e=r[i];t[e].parent!==null&&(n[e]=s(e,t))}return n}})),o=t(((e,t)=>{let n=i(),r=a(),o={},s=Object.keys(n);function c(e){let t=function(...t){let n=t[0];return n==null?n:(n.length>1&&(t=n),e(t))};return`conversion`in e&&(t.conversion=e.conversion),t}function l(e){let t=function(...t){let n=t[0];if(n==null)return n;n.length>1&&(t=n);let r=e(t);if(typeof r==`object`)for(let e=r.length,t=0;t<e;t++)r[t]=Math.round(r[t]);return r};return`conversion`in e&&(t.conversion=e.conversion),t}s.forEach(e=>{o[e]={},Object.defineProperty(o[e],`channels`,{value:n[e].channels}),Object.defineProperty(o[e],`labels`,{value:n[e].labels});let t=r(e);Object.keys(t).forEach(n=>{let r=t[n];o[e][n]=l(r),o[e][n].raw=c(r)})}),t.exports=o})),s=t(((e,t)=>{let n=(e,t)=>(...n)=>`\u001B[${e(...n)+t}m`,r=(e,t)=>(...n)=>{let r=e(...n);return`\u001B[${38+t};5;${r}m`},i=(e,t)=>(...n)=>{let r=e(...n);return`\u001B[${38+t};2;${r[0]};${r[1]};${r[2]}m`},a=e=>e,s=(e,t,n)=>[e,t,n],c=(e,t,n)=>{Object.defineProperty(e,t,{get:()=>{let r=n();return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0}),r},enumerable:!0,configurable:!0})},l,u=(e,t,n,r)=>{l===void 0&&(l=o());let i=r?10:0,a={};for(let[r,o]of Object.entries(l)){let s=r===`ansi16`?`ansi`:r;r===t?a[s]=e(n,i):typeof o==`object`&&(a[s]=e(o[t],i))}return a};function d(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(let[n,r]of Object.entries(t)){for(let[n,i]of Object.entries(r))t[n]={open:`\u001B[${i[0]}m`,close:`\u001B[${i[1]}m`},r[n]=t[n],e.set(i[0],i[1]);Object.defineProperty(t,n,{value:r,enumerable:!1})}return Object.defineProperty(t,`codes`,{value:e,enumerable:!1}),t.color.close=`\x1B[39m`,t.bgColor.close=`\x1B[49m`,c(t.color,`ansi`,()=>u(n,`ansi16`,a,!1)),c(t.color,`ansi256`,()=>u(r,`ansi256`,a,!1)),c(t.color,`ansi16m`,()=>u(i,`rgb`,s,!1)),c(t.bgColor,`ansi`,()=>u(n,`ansi16`,a,!0)),c(t.bgColor,`ansi256`,()=>u(r,`ansi256`,a,!0)),c(t.bgColor,`ansi16m`,()=>u(i,`rgb`,s,!0)),t}Object.defineProperty(t,`exports`,{enumerable:!0,get:d})})),c=t(((e,t)=>{t.exports={stringReplaceAll:(e,t,n)=>{let r=e.indexOf(t);if(r===-1)return e;let i=t.length,a=0,o=``;do o+=e.substr(a,r-a)+t+n,a=r+i,r=e.indexOf(t,a);while(r!==-1);return o+=e.substr(a),o},stringEncaseCRLFWithFirstIndex:(e,t,n,r)=>{let i=0,a=``;do{let o=e[r-1]===`\r`;a+=e.substr(i,(o?r-1:r)-i)+t+(o?`\r
|
|
2
|
-
`:`
|
|
3
|
-
`)+n,i=r+1,r=e.indexOf(`
|
|
4
|
-
`,i)}while(r!==-1);return a+=e.substr(i),a}}})),l=t(((e,t)=>{let n=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,r=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,i=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,a=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,o=new Map([[`n`,`
|
|
5
|
-
`],[`r`,`\r`],[`t`,` `],[`b`,`\b`],[`f`,`\f`],[`v`,`\v`],[`0`,`\0`],[`\\`,`\\`],[`e`,`\x1B`],[`a`,`\x07`]]);function s(e){let t=e[0]===`u`,n=e[1]===`{`;return t&&!n&&e.length===5||e[0]===`x`&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):t&&n?String.fromCodePoint(parseInt(e.slice(2,-1),16)):o.get(e)||e}function c(e,t){let n=[],r=t.trim().split(/\s*,\s*/g),o;for(let t of r){let r=Number(t);if(!Number.isNaN(r))n.push(r);else if(o=t.match(i))n.push(o[2].replace(a,(e,t,n)=>t?s(t):n));else throw Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`)}return n}function l(e){r.lastIndex=0;let t=[],n;for(;(n=r.exec(e))!==null;){let e=n[1];if(n[2]){let r=c(e,n[2]);t.push([e].concat(r))}else t.push([e])}return t}function u(e,t){let n={};for(let e of t)for(let t of e.styles)n[t[0]]=e.inverse?null:t.slice(1);let r=e;for(let[e,t]of Object.entries(n))if(Array.isArray(t)){if(!(e in r))throw Error(`Unknown Chalk style: ${e}`);r=t.length>0?r[e](...t):r[e]}return r}t.exports=(e,t)=>{let r=[],i=[],a=[];if(t.replace(n,(t,n,o,c,d,f)=>{if(n)a.push(s(n));else if(c){let t=a.join(``);a=[],i.push(r.length===0?t:u(e,r)(t)),r.push({inverse:o,styles:l(c)})}else if(d){if(r.length===0)throw Error(`Found extraneous } in Chalk template literal`);i.push(u(e,r)(a.join(``))),a=[],r.pop()}else a.push(f)}),i.push(a.join(``)),r.length>0){let e=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?``:`s`} (\`}\`)`;throw Error(e)}return i.join(``)}})),u=t(((e,t)=>{let r=s(),{stdout:i,stderr:a}=n(),{stringReplaceAll:o,stringEncaseCRLFWithFirstIndex:u}=c(),{isArray:d}=Array,f=[`ansi`,`ansi`,`ansi256`,`ansi16m`],p=Object.create(null),m=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw Error("The `level` option should be an integer from 0 to 3");let n=i?i.level:0;e.level=t.level===void 0?n:t.level};var h=class{constructor(e){return g(e)}};let g=e=>{let t={};return m(t,e),t.template=(...e)=>w(t.template,...e),Object.setPrototypeOf(t,_.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=h,t.template};function _(e){return g(e)}for(let[e,t]of Object.entries(r))p[e]={get(){let n=x(this,b(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:n}),n}};p.visible={get(){let e=x(this,this._styler,!0);return Object.defineProperty(this,`visible`,{value:e}),e}};let v=[`rgb`,`hex`,`keyword`,`hsl`,`hsv`,`hwb`,`ansi`,`ansi256`];for(let e of v)p[e]={get(){let{level:t}=this;return function(...n){let i=b(r.color[f[t]][e](...n),r.color.close,this._styler);return x(this,i,this._isEmpty)}}};for(let e of v){let t=`bg`+e[0].toUpperCase()+e.slice(1);p[t]={get(){let{level:t}=this;return function(...n){let i=b(r.bgColor[f[t]][e](...n),r.bgColor.close,this._styler);return x(this,i,this._isEmpty)}}}}let y=Object.defineProperties(()=>{},{...p,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),b=(e,t,n)=>{let r,i;return n===void 0?(r=e,i=t):(r=n.openAll+e,i=t+n.closeAll),{open:e,close:t,openAll:r,closeAll:i,parent:n}},x=(e,t,n)=>{let r=(...e)=>d(e[0])&&d(e[0].raw)?S(r,w(r,...e)):S(r,e.length===1?``+e[0]:e.join(` `));return Object.setPrototypeOf(r,y),r._generator=e,r._styler=t,r._isEmpty=n,r},S=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?``:t;let n=e._styler;if(n===void 0)return t;let{openAll:r,closeAll:i}=n;if(t.indexOf(`\x1B`)!==-1)for(;n!==void 0;)t=o(t,n.close,n.open),n=n.parent;let a=t.indexOf(`
|
|
6
|
-
`);return a!==-1&&(t=u(t,i,r,a)),r+t+i},C,w=(e,...t)=>{let[n]=t;if(!d(n)||!d(n.raw))return t.join(` `);let r=t.slice(1),i=[n.raw[0]];for(let e=1;e<n.length;e++)i.push(String(r[e-1]).replace(/[{}\\]/g,`\\$&`),String(n.raw[e]));return C===void 0&&(C=l()),C(e,i.join(``))};Object.defineProperties(_.prototype,p);let T=_();T.supportsColor=i,T.stderr=_({level:a?a.level:0}),T.stderr.supportsColor=a,t.exports=T})),d=t(((e,t)=>{t.exports=function(e,t){let n=t.align,r=t.stringLength,i=e.reduce((e,t)=>(t.forEach((t,n)=>{let i=r(t);(!e[n]||i>e[n])&&(e[n]=i)}),e),[]);return e.map(e=>e.map((e,t)=>{let a=i[t]-r(e)||0,o=Array(Math.max(a+1,1)).join(` `);return n[t]===`r`?o+e:e+o}).join(` `).trimEnd()).join(`
|
|
7
|
-
`)}})),f=t(((t,n)=>{let r=u(),i=e(`node:util`),a=d();function o(e,t){return t===1?e:`${e}s`}n.exports=function(e){let t=`
|
|
8
|
-
`,n=0,s=0,c=0,l=0,u=`yellow`;e.forEach(e=>{let o=e.messages;o.length!==0&&(n+=e.errorCount,s+=e.warningCount,c+=e.fixableErrorCount,l+=e.fixableWarningCount,t+=`${r.underline(e.filePath)}\n`,t+=`${a(o.map(e=>{let t;return e.fatal||e.severity===2?(t=r.red(`error`),u=`red`):t=r.yellow(`warning`),[``,String(e.line||0),String(e.column||0),t,e.message.replace(/([^ ])\.$/u,`$1`),r.dim(e.ruleId||``)]}),{align:[``,`r`,`l`],stringLength(e){return i.stripVTControlCharacters(e).length}}).split(`
|
|
9
|
-
`).map(e=>e.replace(/(\d+)\s+(\d+)/u,(e,t,n)=>r.dim(`${t}:${n}`))).join(`
|
|
10
|
-
`)}\n\n`)});let d=n+s;return d>0&&(t+=r[u].bold([`✖ `,d,o(` problem`,d),` (`,n,o(` error`,n),`, `,s,o(` warning`,s),`)
|
|
11
|
-
`].join(``)),(c>0||l>0)&&(t+=r[u].bold([` `,c,o(` error`,c),` and `,l,o(` warning`,l)," potentially fixable with the `--fix` option.\n"].join(``)))),d>0?r.reset(t):``}}));export default f();export{};
|
package/dist/src-FNB-unmu.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./chunk-qnHZjHhP.js";import t from"node:path";import{fileURLToPath as n}from"node:url";import r from"node:fs/promises";function i(e){if(!e||!(e instanceof URL)&&typeof e!=`string`)throw TypeError(`Path must be a non-empty string or URL.`)}function a(e){if(typeof e!=`string`&&!(e instanceof ArrayBuffer)&&!ArrayBuffer.isView(e))throw TypeError(`File contents must be a string, ArrayBuffer, or ArrayBuffer view.`)}function o(e){if(e instanceof Uint8Array)return e;if(typeof e==`string`)return c.encode(e);if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e)){let t=e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);return new Uint8Array(t)}throw TypeError(`Invalid contents type. Expected string or ArrayBuffer.`)}var s,c,l,u,d,f,p,m=e((()=>{s=new TextDecoder,c=new TextEncoder,l=class extends Error{constructor(e){super(`Method "${e}" does not exist on impl.`)}},u=class extends Error{constructor(e){super(`Method "${e}" is not supported on this impl.`)}},d=class extends Error{constructor(){super(`Implementation already set.`)}},f=class{type;data;timestamp=Date.now();constructor(e,t){this.type=e,this.data=t}},p=class{#e;#t;#n=new Map;constructor({impl:e}){this.#e=e,this.#t=e}#r(e,...t){for(let n of this.#n.values())n.push(new f(`call`,{methodName:e,args:t}))}logStart(e){if(!e||typeof e!=`string`)throw TypeError(`Log name must be a non-empty string.`);if(this.#n.has(e))throw Error(`Log "${e}" already exists.`);this.#n.set(e,[])}logEnd(e){if(this.#n.has(e)){let t=this.#n.get(e);return this.#n.delete(e),t}throw Error(`Log "${e}" does not exist.`)}isBaseImpl(){return this.#t===this.#e}setImpl(e){if(this.#r(`implSet`,e),this.#t!==this.#e)throw new d;this.#t=e}resetImpl(){this.#r(`implReset`),this.#t=this.#e}#i(e){if(typeof this.#t[e]!=`function`)throw new l(e)}#a(e,t){if(typeof this.#t[e]!=`function`)throw new u(t)}#o(e,...t){return this.#r(e,...t),this.#i(e),this.#t[e](...t)}#s(e,...t){return this.#i(e),this.#t[e](...t)}#c(e,t,...n){return this.#r(t,...n),this.#a(e,t),this.#t[e](...n)}async text(e){i(e);let t=await this.#c(`bytes`,`text`,e);return t?s.decode(t):void 0}async json(e){i(e);let t=await this.#c(`bytes`,`json`,e);return t?JSON.parse(s.decode(t)):void 0}async arrayBuffer(e){return i(e),(await this.#c(`bytes`,`arrayBuffer`,e))?.buffer}async bytes(e){return i(e),this.#o(`bytes`,e)}async write(e,t){i(e),a(t),this.#r(`write`,e,t);let n=o(t);return this.#s(`write`,e,n)}async append(e,t){i(e),a(t),this.#r(`append`,e,t);let n=o(t);return this.#s(`append`,e,n)}async isFile(e){return i(e),this.#o(`isFile`,e)}async isDirectory(e){return i(e),this.#o(`isDirectory`,e)}async createDirectory(e){return i(e),this.#o(`createDirectory`,e)}async delete(e){return i(e),this.#o(`delete`,e)}async deleteAll(e){return i(e),this.#o(`deleteAll`,e)}async*list(e){i(e),yield*await this.#o(`list`,e)}async*walk(e,{directoryFilter:t=()=>!0,entryFilter:n=()=>!0}={}){i(e),this.#r(`walk`,e,{directoryFilter:t,entryFilter:n});let r=async function*(e,{directoryFilter:t,entryFilter:n,parentPath:i=``,depth:a=1}){let o;try{o=await this.#s(`list`,e)}catch(e){if(e.code===`ENOENT`)return;throw e}for await(let s of o){let o={path:s.name,depth:a,...s};i&&(o.path=`${i}/${o.path}`);let c=n(o);if(c.then&&(c=await c),c&&(yield o),s.isDirectory){let i=t(o);if(i.then&&(i=await i),!i)continue;yield*r(e instanceof URL?new URL(s.name,e.href.endsWith(`/`)?e.href:`${e.href}/`):`${e.endsWith(`/`)?e:`${e}/`}${s.name}`,{directoryFilter:t,entryFilter:n,parentPath:o.path,depth:a+1})}}}.bind(this);yield*r(e,{directoryFilter:t,entryFilter:n})}async size(e){return i(e),this.#o(`size`,e)}async lastModified(e){return i(e),this.#o(`lastModified`,e)}async copy(e,t){return i(e),i(t),this.#o(`copy`,e,t)}async copyAll(e,t){return i(e),i(t),this.#o(`copyAll`,e,t)}async move(e,t){return i(e),i(t),this.#o(`move`,e,t)}async moveAll(e,t){return i(e),i(t),this.#o(`moveAll`,e,t)}}})),h=e((()=>{})),g=e((()=>{m(),h()}));function _(e){globalThis?.process?.env.DEBUG===`@hwc/retry`&&console.debug(e)}function v(e,t){let n=Date.now()-e.lastAttempt,r=Math.max(e.lastAttempt-e.timestamp,1);return n>=Math.min(r*1.2,t)}function y(e,t){return e.age>t}function b(){if(Promise.withResolvers)return Promise.withResolvers();let e,t,n=new Promise((n,r)=>{e=n,t=r});if(e===void 0||t===void 0)throw Error(`Promise executor did not initialize resolve or reject.`);return{promise:n,resolve:e,reject:t}}var x,S,C,w,T,E=e((()=>{x=6e4,S=100,C=1e3,w=class{id=Math.random().toString(36).slice(2);fn;error;timestamp=Date.now();lastAttempt=this.timestamp;resolve;reject;signal;constructor(e,t,n,r,i){this.fn=e,this.error=t,this.timestamp=Date.now(),this.lastAttempt=Date.now(),this.resolve=n,this.reject=r,this.signal=i}get age(){return Date.now()-this.timestamp}},T=class{#e=[];#t=[];#n=0;#r;#i;#a;#o;#s;constructor(e,{timeout:t=x,maxDelay:n=S,concurrency:r=C}={}){if(typeof e!=`function`)throw Error(`Missing function to check errors`);this.#o=e,this.#r=t,this.#i=n,this.#s=r}get retrying(){return this.#e.length}get pending(){return this.#t.length}get working(){return this.#n}#c(e,{signal:t,promise:n,resolve:r,reject:i}){let a;try{a=e()}catch(e){return i(Error(`Synchronous error: ${e.message}`,{cause:e})),n}return!a||typeof a.then!=`function`?(i(Error(`Result is not a promise.`)),n):(this.#n++,n.finally(()=>{this.#n--,this.#u()}).catch(()=>{}),Promise.resolve(a).then(e=>{_(`Function called successfully without retry.`),r(e)}).catch(n=>{if(!this.#o(n)){i(n);return}let a=new w(e,n,r,i,t);_(`Function failed, queuing for retry with task ${a.id}.`),this.#e.push(a),t?.addEventListener(`abort`,()=>{_(`Task ${a.id} was aborted due to AbortSignal.`),i(t.reason)}),this.#d()}),n)}retry(e,{signal:t}={}){t?.throwIfAborted();let{promise:n,resolve:r,reject:i}=b();return this.#t.push(()=>this.#c(e,{signal:t,promise:n,resolve:r,reject:i})),this.#u(),n}#l(){this.pending&&this.#u(),this.retrying&&this.#d()}#u(){_(`Processing pending tasks: ${this.pending} pending, ${this.working} working.`);let e=this.#s-this.working;if(e<=0)return;let t=Math.min(this.pending,e);for(let e=0;e<t;e++)this.#t.shift()?.();_(`Processed pending tasks: ${this.pending} pending, ${this.working} working.`)}#d(){clearTimeout(this.#a),this.#a=void 0,_(`Processing retry queue: ${this.retrying} retrying, ${this.working} working.`);let e=()=>{this.#a=setTimeout(()=>this.#l(),0)},t=this.#e.shift();if(!t){_(`Queue is empty, exiting.`),this.pending&&e();return}if(y(t,this.#r)){_(`Task ${t.id} was abandoned due to timeout.`),t.reject(t.error),e();return}if(!v(t,this.#i)){_(`Task ${t.id} is not ready to retry, skipping.`),this.#e.push(t),e();return}t.lastAttempt=Date.now(),Promise.resolve(t.fn()).then(e=>{_(`Task ${t.id} succeeded after ${t.age}ms.`),t.resolve(e)}).catch(e=>{if(!this.#o(e)){_(`Task ${t.id} failed with non-retryable error: ${e.message}.`),t.reject(e);return}t.lastAttempt=Date.now(),this.#e.push(t),_(`Task ${t.id} failed, requeueing to try again.`)}).finally(()=>{this.#l()})}}})),D,O,k,A,j,M=e((()=>{g(),E(),D=new Set([`ENFILE`,`EMFILE`]),O=class{name;isFile;isDirectory;isSymlink;constructor(e){this.name=e.name,this.isFile=e.isFile(),this.isDirectory=e.isDirectory(),this.isSymlink=e.isSymbolicLink()}},k=class{#e;#t;constructor({fsp:e=r}={}){this.#e=e,this.#t=new T(e=>D.has(e.code))}bytes(e){return this.#t.retry(()=>this.#e.readFile(e)).then(e=>new Uint8Array(e.buffer)).catch(e=>{if(e.code!==`ENOENT`)throw e})}async write(e,r){let i=Buffer.from(r);return this.#t.retry(()=>this.#e.writeFile(e,i)).catch(r=>{if(r.code===`ENOENT`){let r=t.dirname(e instanceof URL?n(e):e);return this.#e.mkdir(r,{recursive:!0}).then(()=>this.#e.writeFile(e,i))}throw r})}async append(e,r){let i=Buffer.from(r);return this.#t.retry(()=>this.#e.appendFile(e,i)).catch(r=>{if(r.code===`ENOENT`){let r=t.dirname(e instanceof URL?n(e):e);return this.#e.mkdir(r,{recursive:!0}).then(()=>this.#e.appendFile(e,i))}throw r})}isFile(e){return this.#e.stat(e).then(e=>e.isFile()).catch(e=>{if(e.code===`ENOENT`)return!1;throw e})}isDirectory(e){return this.#e.stat(e).then(e=>e.isDirectory()).catch(e=>{if(e.code===`ENOENT`)return!1;throw e})}async createDirectory(e){await this.#e.mkdir(e,{recursive:!0})}delete(e){return this.#e.rm(e).then(()=>!0).catch(t=>{if(t.code===`ERR_FS_EISDIR`)return this.#e.rmdir(e).then(()=>!0);if(t.code===`ENOENT`)return!1;throw t})}deleteAll(e){return this.#e.rm(e,{recursive:!0}).then(()=>!0).catch(e=>{if(e.code===`ENOENT`)return!1;throw e})}async*list(e){let t=await this.#e.readdir(e,{withFileTypes:!0});for(let e of t)yield new O(e)}size(e){return this.#e.stat(e).then(e=>e.size).catch(e=>{if(e.code!==`ENOENT`)throw e})}lastModified(e){return this.#e.stat(e).then(e=>e.mtime).catch(e=>{if(e.code!==`ENOENT`)throw e})}copy(e,t){return this.#e.copyFile(e,t)}async copyAll(e,r){if(await this.isFile(e))return this.copy(e,r);let i=e instanceof URL?n(e):e,a=r instanceof URL?n(r):r;await this.createDirectory(r);for await(let n of this.list(e)){let e=t.join(i,n.name),r=t.join(a,n.name);n.isDirectory?await this.copyAll(e,r):await this.copy(e,r)}}move(e,t){return this.#e.stat(e).then(n=>{if(n.isDirectory())throw Error(`EISDIR: illegal operation on a directory, move '${e}' -> '${t}'`);return this.#e.rename(e,t)})}async moveAll(e,t){return this.#e.rename(e,t)}},A=class extends p{constructor({fsp:e}={}){super({impl:new k({fsp:e})})}},j=new A}));e((()=>{M(),g()}))();export{j as hfs};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,t}from"./chunk-qnHZjHhP.js";var n=t(((e,t)=>{t.exports=(e,t=process.argv)=>{let n=e.startsWith(`-`)?``:e.length===1?`-`:`--`,r=t.indexOf(n+e),i=t.indexOf(`--`);return r!==-1&&(i===-1||r<i)}})),r=t(((t,r)=>{let i=e(`os`),a=e(`tty`),o=n(),{env:s}=process,c;o(`no-color`)||o(`no-colors`)||o(`color=false`)||o(`color=never`)?c=0:(o(`color`)||o(`colors`)||o(`color=true`)||o(`color=always`))&&(c=1),`FORCE_COLOR`in s&&(c=s.FORCE_COLOR===`true`?1:s.FORCE_COLOR===`false`?0:s.FORCE_COLOR.length===0?1:Math.min(parseInt(s.FORCE_COLOR,10),3));function l(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function u(e,t){if(c===0)return 0;if(o(`color=16m`)||o(`color=full`)||o(`color=truecolor`))return 3;if(o(`color=256`))return 2;if(e&&!t&&c===void 0)return 0;let n=c||0;if(s.TERM===`dumb`)return n;if(process.platform===`win32`){let e=i.release().split(`.`);return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if(`CI`in s)return[`TRAVIS`,`CIRCLECI`,`APPVEYOR`,`GITLAB_CI`,`GITHUB_ACTIONS`,`BUILDKITE`].some(e=>e in s)||s.CI_NAME===`codeship`?1:n;if(`TEAMCITY_VERSION`in s)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(s.TEAMCITY_VERSION)?1:0;if(s.COLORTERM===`truecolor`)return 3;if(`TERM_PROGRAM`in s){let e=parseInt((s.TERM_PROGRAM_VERSION||``).split(`.`)[0],10);switch(s.TERM_PROGRAM){case`iTerm.app`:return e>=3?3:2;case`Apple_Terminal`:return 2}}return/-256(color)?$/i.test(s.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(s.TERM)||`COLORTERM`in s?1:n}function d(e){return l(u(e,e&&e.isTTY))}r.exports={supportsColor:d,stdout:l(u(!0,a.isatty(1))),stderr:l(u(!0,a.isatty(2)))}}));export{r as t};
|