@griddo/cx 1.75.218 → 1.75.219
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.js +25 -25
- package/gatsby-config.ts +1 -1
- package/package.json +4 -4
- package/scripts/griddo-exporter.ts +18 -3
- package/src/services/store.ts +2 -1
- package/src/types/pages.ts +1 -0
- package/src/utils/folders.ts +1 -6
- package/src/utils/pages.ts +12 -15
- package/src/utils/sites.ts +15 -12
package/build/index.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
"use strict";var ol=Object.create;var fi=Object.defineProperty;var al=Object.getOwnPropertyDescriptor;var cl=Object.getOwnPropertyNames;var ul=Object.getPrototypeOf,ll=Object.prototype.hasOwnProperty;var v=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var fl=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of cl(t))!ll.call(e,i)&&i!==r&&fi(e,i,{get:()=>t[i],enumerable:!(n=al(t,i))||n.enumerable});return e};var Y=(e,t,r)=>(r=e!=null?ol(ul(e)):{},fl(t||!e||!e.__esModule?fi(r,"default",{value:e,enumerable:!0}):r,e));var di=v((qp,hi)=>{"use strict";var hl=/[|\\{}()[\]^$+*?.]/g;hi.exports=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(hl,"\\$&")}});var mi=v((Ap,pi)=>{"use strict";pi.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]}});var jr=v((Mp,bi)=>{var Ie=mi(),vi={};for(jt in Ie)Ie.hasOwnProperty(jt)&&(vi[Ie[jt]]=jt);var jt,x=bi.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(ie in x)if(x.hasOwnProperty(ie)){if(!("channels"in x[ie]))throw new Error("missing channels property: "+ie);if(!("labels"in x[ie]))throw new Error("missing channel labels property: "+ie);if(x[ie].labels.length!==x[ie].channels)throw new Error("channel and label counts mismatch: "+ie);yi=x[ie].channels,gi=x[ie].labels,delete x[ie].channels,delete x[ie].labels,Object.defineProperty(x[ie],"channels",{value:yi}),Object.defineProperty(x[ie],"labels",{value:gi})}var yi,gi,ie;x.rgb.hsl=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),s=Math.max(t,r,n),o=s-i,a,c,d;return s===i?a=0:t===s?a=(r-n)/o:r===s?a=2+(n-t)/o:n===s&&(a=4+(t-r)/o),a=Math.min(a*60,360),a<0&&(a+=360),d=(i+s)/2,s===i?c=0:d<=.5?c=o/(s+i):c=o/(2-s-i),[a,c*100,d*100]};x.rgb.hsv=function(e){var t,r,n,i,s,o=e[0]/255,a=e[1]/255,c=e[2]/255,d=Math.max(o,a,c),h=d-Math.min(o,a,c),p=function(y){return(d-y)/6/h+1/2};return h===0?i=s=0:(s=h/d,t=p(o),r=p(a),n=p(c),o===d?i=n-r:a===d?i=1/3+t-n:c===d&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,d*100]};x.rgb.hwb=function(e){var t=e[0],r=e[1],n=e[2],i=x.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,s*100,n*100]};x.rgb.cmyk=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i,s,o,a;return a=Math.min(1-t,1-r,1-n),i=(1-t-a)/(1-a)||0,s=(1-r-a)/(1-a)||0,o=(1-n-a)/(1-a)||0,[i*100,s*100,o*100,a*100]};function dl(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}x.rgb.keyword=function(e){var t=vi[e];if(t)return t;var r=1/0,n;for(var i in Ie)if(Ie.hasOwnProperty(i)){var s=Ie[i],o=dl(e,s);o<r&&(r=o,n=i)}return n};x.keyword.rgb=function(e){return Ie[e]};x.rgb.xyz=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var i=t*.4124+r*.3576+n*.1805,s=t*.2126+r*.7152+n*.0722,o=t*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};x.rgb.lab=function(e){var t=x.rgb.xyz(e),r=t[0],n=t[1],i=t[2],s,o,a;return r/=95.047,n/=100,i/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,s=116*n-16,o=500*(r-n),a=200*(n-i),[s,o,a]};x.hsl.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,s,o,a,c;if(r===0)return c=n*255,[c,c,c];n<.5?s=n*(1+r):s=n+r-n*r,i=2*n-s,a=[0,0,0];for(var d=0;d<3;d++)o=t+1/3*-(d-1),o<0&&o++,o>1&&o--,6*o<1?c=i+(s-i)*6*o:2*o<1?c=s:3*o<2?c=i+(s-i)*(2/3-o)*6:c=i,a[d]=c*255;return a};x.hsl.hsv=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,i=r,s=Math.max(n,.01),o,a;return n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s,a=(n+r)/2,o=n===0?2*i/(s+i):2*r/(n+r),[t,o*100,a*100]};x.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,n=e[2]/100,i=Math.floor(t)%6,s=t-Math.floor(t),o=255*n*(1-r),a=255*n*(1-r*s),c=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,c,o];case 1:return[a,n,o];case 2:return[o,n,c];case 3:return[o,a,n];case 4:return[c,o,n];case 5:return[n,o,a]}};x.hsv.hsl=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01),s,o,a;return a=(2-r)*n,s=(2-r)*i,o=r*i,o/=s<=1?s:2-s,o=o||0,a/=2,[t,o*100,a*100]};x.hwb.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i=r+n,s,o,a,c;i>1&&(r/=i,n/=i),s=Math.floor(6*t),o=1-n,a=6*t-s,s&1&&(a=1-a),c=r+a*(o-r);var d,h,p;switch(s){default:case 6:case 0:d=o,h=c,p=r;break;case 1:d=c,h=o,p=r;break;case 2:d=r,h=o,p=c;break;case 3:d=r,h=c,p=o;break;case 4:d=c,h=r,p=o;break;case 5:d=o,h=r,p=c;break}return[d*255,h*255,p*255]};x.cmyk.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100,s,o,a;return s=1-Math.min(1,t*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i),[s*255,o*255,a*255]};x.xyz.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,i,s,o;return i=t*3.2406+r*-1.5372+n*-.4986,s=t*-.9689+r*1.8758+n*.0415,o=t*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[i*255,s*255,o*255]};x.xyz.lab=function(e){var t=e[0],r=e[1],n=e[2],i,s,o;return t/=95.047,r/=100,n/=108.883,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=116*r-16,s=500*(t-r),o=200*(r-n),[i,s,o]};x.lab.xyz=function(e){var t=e[0],r=e[1],n=e[2],i,s,o;s=(t+16)/116,i=r/500+s,o=s-n/200;var a=Math.pow(s,3),c=Math.pow(i,3),d=Math.pow(o,3);return s=a>.008856?a:(s-16/116)/7.787,i=c>.008856?c:(i-16/116)/7.787,o=d>.008856?d:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};x.lab.lch=function(e){var t=e[0],r=e[1],n=e[2],i,s,o;return i=Math.atan2(n,r),s=i*360/2/Math.PI,s<0&&(s+=360),o=Math.sqrt(r*r+n*n),[t,o,s]};x.lch.lab=function(e){var t=e[0],r=e[1],n=e[2],i,s,o;return o=n/360*2*Math.PI,i=r*Math.cos(o),s=r*Math.sin(o),[t,i,s]};x.rgb.ansi16=function(e){var t=e[0],r=e[1],n=e[2],i=1 in arguments?arguments[1]:x.rgb.hsv(e)[2];if(i=Math.round(i/50),i===0)return 30;var s=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return i===2&&(s+=60),s};x.hsv.ansi16=function(e){return x.rgb.ansi16(x.hsv.rgb(e),e[2])};x.rgb.ansi256=function(e){var t=e[0],r=e[1],n=e[2];if(t===r&&r===n)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;var i=16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};x.ansi16.rgb=function(e){var t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];var r=(~~(e>50)+1)*.5,n=(t&1)*r*255,i=(t>>1&1)*r*255,s=(t>>2&1)*r*255;return[n,i,s]};x.ansi256.rgb=function(e){if(e>=232){var t=(e-232)*10+8;return[t,t,t]}e-=16;var r,n=Math.floor(e/36)/5*255,i=Math.floor((r=e%36)/6)/5*255,s=r%6/5*255;return[n,i,s]};x.rgb.hex=function(e){var t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255),r=t.toString(16).toUpperCase();return"000000".substring(r.length)+r};x.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var r=t[0];t[0].length===3&&(r=r.split("").map(function(a){return a+a}).join(""));var n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};x.rgb.hcg=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),s=Math.min(Math.min(t,r),n),o=i-s,a,c;return o<1?a=s/(1-o):a=0,o<=0?c=0:i===t?c=(r-n)/o%6:i===r?c=2+(n-t)/o:c=4+(t-r)/o+4,c/=6,c%=1,[c*360,o*100,a*100]};x.hsl.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1,i=0;return r<.5?n=2*t*r:n=2*t*(1-r),n<1&&(i=(r-.5*n)/(1-n)),[e[0],n*100,i*100]};x.hsv.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=t*r,i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],n*100,i*100]};x.hcg.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];var i=[0,0,0],s=t%1*6,o=s%1,a=1-o,c=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=a,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]=a,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]=a}return c=(1-r)*n,[(r*i[0]+c)*255,(r*i[1]+c)*255,(r*i[2]+c)*255]};x.hcg.hsv=function(e){var t=e[1]/100,r=e[2]/100,n=t+r*(1-t),i=0;return n>0&&(i=t/n),[e[0],i*100,n*100]};x.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100,n=r*(1-t)+.5*t,i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],i*100,n*100]};x.hcg.hwb=function(e){var t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};x.hwb.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1-r,i=n-t,s=0;return i<1&&(s=(n-i)/(1-i)),[e[0],i*100,s*100]};x.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};x.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};x.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};x.gray.hsl=x.gray.hsv=function(e){return[0,0,e[0]]};x.gray.hwb=function(e){return[0,100,e[0]]};x.gray.cmyk=function(e){return[0,0,0,e[0]]};x.gray.lab=function(e){return[e[0],0,0]};x.gray.hex=function(e){var t=Math.round(e[0]/100*255)&255,r=(t<<16)+(t<<8)+t,n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};x.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[t/255*100]}});var _i=v((Pp,wi)=>{var Lt=jr();function pl(){for(var e={},t=Object.keys(Lt),r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function ml(e){var t=pl(),r=[e];for(t[e].distance=0;r.length;)for(var n=r.pop(),i=Object.keys(Lt[n]),s=i.length,o=0;o<s;o++){var a=i[o],c=t[a];c.distance===-1&&(c.distance=t[n].distance+1,c.parent=n,r.unshift(a))}return t}function yl(e,t){return function(r){return t(e(r))}}function gl(e,t){for(var r=[t[e].parent,e],n=Lt[t[e].parent][e],i=t[e].parent;t[i].parent;)r.unshift(t[i].parent),n=yl(Lt[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}wi.exports=function(e){for(var t=ml(e),r={},n=Object.keys(t),i=n.length,s=0;s<i;s++){var o=n[s],a=t[o];a.parent!==null&&(r[o]=gl(o,t))}return r}});var Ei=v((Fp,xi)=>{var Lr=jr(),vl=_i(),ze={},bl=Object.keys(Lr);function wl(e){var t=function(r){return r==null?r:(arguments.length>1&&(r=Array.prototype.slice.call(arguments)),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function _l(e){var t=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var n=e(r);if(typeof n=="object")for(var i=n.length,s=0;s<i;s++)n[s]=Math.round(n[s]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}bl.forEach(function(e){ze[e]={},Object.defineProperty(ze[e],"channels",{value:Lr[e].channels}),Object.defineProperty(ze[e],"labels",{value:Lr[e].labels});var t=vl(e),r=Object.keys(t);r.forEach(function(n){var i=t[n];ze[e][n]=_l(i),ze[e][n].raw=wl(i)})});xi.exports=ze});var ki=v((Tp,Si)=>{"use strict";var We=Ei(),Bt=(e,t)=>function(){return`\x1B[${e.apply(We,arguments)+t}m`},$t=(e,t)=>function(){let r=e.apply(We,arguments);return`\x1B[${38+t};5;${r}m`},Ht=(e,t)=>function(){let r=e.apply(We,arguments);return`\x1B[${38+t};2;${r[0]};${r[1]};${r[2]}m`};function xl(){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],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.grey=t.color.gray;for(let i of Object.keys(t)){let s=t[i];for(let o of Object.keys(s)){let a=s[o];t[o]={open:`\x1B[${a[0]}m`,close:`\x1B[${a[1]}m`},s[o]=t[o],e.set(a[0],a[1])}Object.defineProperty(t,i,{value:s,enumerable:!1}),Object.defineProperty(t,"codes",{value:e,enumerable:!1})}let r=i=>i,n=(i,s,o)=>[i,s,o];t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",t.color.ansi={ansi:Bt(r,0)},t.color.ansi256={ansi256:$t(r,0)},t.color.ansi16m={rgb:Ht(n,0)},t.bgColor.ansi={ansi:Bt(r,10)},t.bgColor.ansi256={ansi256:$t(r,10)},t.bgColor.ansi16m={rgb:Ht(n,10)};for(let i of Object.keys(We)){if(typeof We[i]!="object")continue;let s=We[i];i==="ansi16"&&(i="ansi"),"ansi16"in s&&(t.color.ansi[i]=Bt(s.ansi16,0),t.bgColor.ansi[i]=Bt(s.ansi16,10)),"ansi256"in s&&(t.color.ansi256[i]=$t(s.ansi256,0),t.bgColor.ansi256[i]=$t(s.ansi256,10)),"rgb"in s&&(t.color.ansi16m[i]=Ht(s.rgb,0),t.bgColor.ansi16m[i]=Ht(s.rgb,10))}return t}Object.defineProperty(Si,"exports",{enumerable:!0,get:xl})});var Ri=v((Np,Ci)=>{"use strict";Ci.exports=(e,t)=>{t=t||process.argv;let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1?!0:n<i)}});var qi=v((Ip,Oi)=>{"use strict";var El=require("os"),_e=Ri(),ee=process.env,Je;_e("no-color")||_e("no-colors")||_e("color=false")?Je=!1:(_e("color")||_e("colors")||_e("color=true")||_e("color=always"))&&(Je=!0);"FORCE_COLOR"in ee&&(Je=ee.FORCE_COLOR.length===0||parseInt(ee.FORCE_COLOR,10)!==0);function Sl(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function kl(e){if(Je===!1)return 0;if(_e("color=16m")||_e("color=full")||_e("color=truecolor"))return 3;if(_e("color=256"))return 2;if(e&&!e.isTTY&&Je!==!0)return 0;let t=Je?1:0;if(process.platform==="win32"){let r=El.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in ee)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in ee)||ee.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in ee)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ee.TEAMCITY_VERSION)?1:0;if(ee.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in ee){let r=parseInt((ee.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ee.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ee.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ee.TERM)||"COLORTERM"in ee?1:(ee.TERM==="dumb",t)}function Br(e){let t=kl(e);return Sl(t)}Oi.exports={supportsColor:Br,stdout:Br(process.stdout),stderr:Br(process.stderr)}});var Ti=v((Dp,Fi)=>{"use strict";var Cl=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Ai=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Rl=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Ol=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,ql=new Map([["n",`
|
|
3
|
-
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function
|
|
4
|
-
`,Ll=/^\s*([\w.-]+)\s*=\s*(.*)?\s*$/,Bl=/\\n/g,$l=/\n|\r|\r\n/;function Bi(e,t){let r=!!(t&&t.debug),n={};return e.toString().split($l).forEach(function(i,s){let o=i.match(Ll);if(o!=null){let a=o[1],c=o[2]||"",d=c.length-1,h=c[0]==='"'&&c[d]==='"';c[0]==="'"&&c[d]==="'"||h?(c=c.substring(1,d),h&&(c=c.replace(Bl,jl))):c=c.trim(),n[a]=c}else r&&Li(`did not match key and value when parsing line ${s+1}: ${i}`)}),n}function Hl(e){let t=Dl.resolve(process.cwd(),".env"),r="utf8",n=!1;e&&(e.path!=null&&(t=e.path),e.encoding!=null&&(r=e.encoding),e.debug!=null&&(n=!0));try{let i=Bi(Il.readFileSync(t,{encoding:r}),{debug:n});return Object.keys(i).forEach(function(s){Object.prototype.hasOwnProperty.call(process.env,s)?n&&Li(`"${s}" is already defined in \`process.env\` and will not be overwritten`):process.env[s]=i[s]}),{parsed:i}}catch(i){return{error:i}}}Ur.exports.config=Hl;Ur.exports.parse=Bi});var Hi=v((Bp,$i)=>{var Gr=class{constructor(t){this.value=t,this.next=void 0}},zr=class{constructor(){this.clear()}enqueue(t){let r=new Gr(t);this._head?(this._tail.next=r,this._tail=r):(this._head=r,this._tail=r),this._size++}dequeue(){let t=this._head;if(t)return this._head=this._head.next,this._size--,t.value}clear(){this._head=void 0,this._tail=void 0,this._size=0}get size(){return this._size}*[Symbol.iterator](){let t=this._head;for(;t;)yield t.value,t=t.next}};$i.exports=zr});var Gi=v(($p,Ui)=>{"use strict";var Ul=Hi(),Gl=e=>{if(!((Number.isInteger(e)||e===1/0)&&e>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");let t=new Ul,r=0,n=()=>{r--,t.size>0&&t.dequeue()()},i=async(a,c,...d)=>{r++;let h=(async()=>a(...d))();c(h);try{await h}catch{}n()},s=(a,c,...d)=>{t.enqueue(i.bind(null,a,c,...d)),(async()=>(await Promise.resolve(),r<e&&t.size>0&&t.dequeue()()))()},o=(a,...c)=>new Promise(d=>{s(a,d,...c)});return Object.defineProperties(o,{activeCount:{get:()=>r},pendingCount:{get:()=>t.size},clearQueue:{value:()=>{t.clear()}}}),o};Ui.exports=Gl});var Ji=v((Hp,Wi)=>{"use strict";var zi=Gi(),zt=class extends Error{constructor(t){super(),this.value=t}},zl=async(e,t)=>t(await e),Wl=async e=>{let t=await Promise.all(e);if(t[1]===!0)throw new zt(t[0]);return!1},Jl=async(e,t,r)=>{r={concurrency:1/0,preserveOrder:!0,...r};let n=zi(r.concurrency),i=[...e].map(o=>[o,n(zl,o,t)]),s=zi(r.preserveOrder?1:1/0);try{await Promise.all(i.map(o=>s(Wl,o)))}catch(o){if(o instanceof zt)return o.value;throw o}};Wi.exports=Jl});var Zi=v((Up,Wr)=>{"use strict";var Vi=require("path"),Wt=require("fs"),{promisify:Yi}=require("util"),Vl=Ji(),Yl=Yi(Wt.stat),Xl=Yi(Wt.lstat),Xi={directory:"isDirectory",file:"isFile"};function Ki({type:e}){if(!(e in Xi))throw new Error(`Invalid type specified: ${e}`)}var Qi=(e,t)=>e===void 0||t[Xi[e]]();Wr.exports=async(e,t)=>{t={cwd:process.cwd(),type:"file",allowSymlinks:!0,...t},Ki(t);let r=t.allowSymlinks?Yl:Xl;return Vl(e,async n=>{try{let i=await r(Vi.resolve(t.cwd,n));return Qi(t.type,i)}catch{return!1}},t)};Wr.exports.sync=(e,t)=>{t={cwd:process.cwd(),allowSymlinks:!0,type:"file",...t},Ki(t);let r=t.allowSymlinks?Wt.statSync:Wt.lstatSync;for(let n of e)try{let i=r(Vi.resolve(t.cwd,n));if(Qi(t.type,i))return n}catch{}}});var ts=v((Gp,Jr)=>{"use strict";var es=require("fs"),{promisify:Kl}=require("util"),Ql=Kl(es.access);Jr.exports=async e=>{try{return await Ql(e),!0}catch{return!1}};Jr.exports.sync=e=>{try{return es.accessSync(e),!0}catch{return!1}}});var ns=v((zp,Ye)=>{"use strict";var Oe=require("path"),Jt=Zi(),rs=ts(),Vr=Symbol("findUp.stop");Ye.exports=async(e,t={})=>{let r=Oe.resolve(t.cwd||""),{root:n}=Oe.parse(r),i=[].concat(e),s=async o=>{if(typeof e!="function")return Jt(i,o);let a=await e(o.cwd);return typeof a=="string"?Jt([a],o):a};for(;;){let o=await s({...t,cwd:r});if(o===Vr)return;if(o)return Oe.resolve(r,o);if(r===n)return;r=Oe.dirname(r)}};Ye.exports.sync=(e,t={})=>{let r=Oe.resolve(t.cwd||""),{root:n}=Oe.parse(r),i=[].concat(e),s=o=>{if(typeof e!="function")return Jt.sync(i,o);let a=e(o.cwd);return typeof a=="string"?Jt.sync([a],o):a};for(;;){let o=s({...t,cwd:r});if(o===Vr)return;if(o)return Oe.resolve(r,o);if(r===n)return;r=Oe.dirname(r)}};Ye.exports.exists=rs;Ye.exports.sync.exists=rs.sync;Ye.exports.stop=Vr});var os=v((Wp,Yr)=>{"use strict";var is=require("path"),ss=ns(),Zl=async e=>{let t=await ss("package.json",{cwd:e});return t&&is.dirname(t)};Yr.exports=Zl;Yr.exports.sync=e=>{let t=ss.sync("package.json",{cwd:e});return t&&is.dirname(t)}});var Xr=v((Yp,ds)=>{"use strict";ds.exports=function(t,r){return function(){for(var i=new Array(arguments.length),s=0;s<i.length;s++)i[s]=arguments[s];return t.apply(r,i)}}});var se=v((Xp,ys)=>{"use strict";var ef=Xr(),De=Object.prototype.toString;function Zr(e){return De.call(e)==="[object Array]"}function Kr(e){return typeof e>"u"}function tf(e){return e!==null&&!Kr(e)&&e.constructor!==null&&!Kr(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function rf(e){return De.call(e)==="[object ArrayBuffer]"}function nf(e){return typeof FormData<"u"&&e instanceof FormData}function sf(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function of(e){return typeof e=="string"}function af(e){return typeof e=="number"}function ps(e){return e!==null&&typeof e=="object"}function Yt(e){if(De.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function cf(e){return De.call(e)==="[object Date]"}function uf(e){return De.call(e)==="[object File]"}function lf(e){return De.call(e)==="[object Blob]"}function ms(e){return De.call(e)==="[object Function]"}function ff(e){return ps(e)&&ms(e.pipe)}function hf(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}function df(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function pf(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function en(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),Zr(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}function Qr(){var e={};function t(i,s){Yt(e[s])&&Yt(i)?e[s]=Qr(e[s],i):Yt(i)?e[s]=Qr({},i):Zr(i)?e[s]=i.slice():e[s]=i}for(var r=0,n=arguments.length;r<n;r++)en(arguments[r],t);return e}function mf(e,t,r){return en(t,function(i,s){r&&typeof i=="function"?e[s]=ef(i,r):e[s]=i}),e}function yf(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}ys.exports={isArray:Zr,isArrayBuffer:rf,isBuffer:tf,isFormData:nf,isArrayBufferView:sf,isString:of,isNumber:af,isObject:ps,isPlainObject:Yt,isUndefined:Kr,isDate:cf,isFile:uf,isBlob:lf,isFunction:ms,isStream:ff,isURLSearchParams:hf,isStandardBrowserEnv:pf,forEach:en,merge:Qr,extend:mf,trim:df,stripBOM:yf}});var Xt=v((Kp,vs)=>{"use strict";var Xe=se();function gs(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}vs.exports=function(t,r,n){if(!r)return t;var i;if(n)i=n(r);else if(Xe.isURLSearchParams(r))i=r.toString();else{var s=[];Xe.forEach(r,function(c,d){c===null||typeof c>"u"||(Xe.isArray(c)?d=d+"[]":c=[c],Xe.forEach(c,function(p){Xe.isDate(p)?p=p.toISOString():Xe.isObject(p)&&(p=JSON.stringify(p)),s.push(gs(d)+"="+gs(p))}))}),i=s.join("&")}if(i){var o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}});var ws=v((Qp,bs)=>{"use strict";var gf=se();function Kt(){this.handlers=[]}Kt.prototype.use=function(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};Kt.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};Kt.prototype.forEach=function(t){gf.forEach(this.handlers,function(n){n!==null&&t(n)})};bs.exports=Kt});var xs=v((Zp,_s)=>{"use strict";var vf=se();_s.exports=function(t,r){vf.forEach(t,function(i,s){s!==r&&s.toUpperCase()===r.toUpperCase()&&(t[r]=i,delete t[s])})}});var Qt=v((e1,Es)=>{"use strict";Es.exports=function(t,r,n,i,s){return t.config=r,n&&(t.code=n),t.request=i,t.response=s,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}});var Zt=v((t1,Ss)=>{"use strict";var bf=Qt();Ss.exports=function(t,r,n,i,s){var o=new Error(t);return bf(o,r,n,i,s)}});var tn=v((r1,ks)=>{"use strict";var wf=Zt();ks.exports=function(t,r,n){var i=n.config.validateStatus;!n.status||!i||i(n.status)?t(n):r(wf("Request failed with status code "+n.status,n.config,null,n.request,n))}});var Rs=v((n1,Cs)=>{"use strict";var er=se();Cs.exports=er.isStandardBrowserEnv()?function(){return{write:function(r,n,i,s,o,a){var c=[];c.push(r+"="+encodeURIComponent(n)),er.isNumber(i)&&c.push("expires="+new Date(i).toGMTString()),er.isString(s)&&c.push("path="+s),er.isString(o)&&c.push("domain="+o),a===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(r){var n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()});var qs=v((i1,Os)=>{"use strict";Os.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}});var Ms=v((s1,As)=>{"use strict";As.exports=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}});var rn=v((o1,Ps)=>{"use strict";var _f=qs(),xf=Ms();Ps.exports=function(t,r){return t&&!_f(r)?xf(t,r):r}});var Ts=v((a1,Fs)=>{"use strict";var nn=se(),Ef=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];Fs.exports=function(t){var r={},n,i,s;return t&&nn.forEach(t.split(`
|
|
5
|
-
`),function(a){if(s=a.indexOf(":"),n=nn.trim(a.substr(0,s)).toLowerCase(),i=nn.trim(a.substr(s+1)),n){if(r[n]&&Ef.indexOf(n)>=0)return;n==="set-cookie"?r[n]=(r[n]?r[n]:[]).concat([i]):r[n]=r[n]?r[n]+", "+i:i}}),r}});var Ds=v((c1,Is)=>{"use strict";var Ns=se();Is.exports=Ns.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),n;function i(s){var o=s;return t&&(r.setAttribute("href",o),o=r.href),r.setAttribute("href",o),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=i(window.location.href),function(o){var a=Ns.isString(o)?i(o):o;return a.protocol===n.protocol&&a.host===n.host}}():function(){return function(){return!0}}()});var Ls=v((u1,js)=>{"use strict";var tr=se(),Sf=tn(),kf=Rs(),Cf=Xt(),Rf=rn(),Of=Ts(),qf=Ds(),sn=Zt();js.exports=function(t){return new Promise(function(n,i){var s=t.data,o=t.headers,a=t.responseType;tr.isFormData(s)&&delete o["Content-Type"];var c=new XMLHttpRequest;if(t.auth){var d=t.auth.username||"",h=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";o.Authorization="Basic "+btoa(d+":"+h)}var p=Rf(t.baseURL,t.url);c.open(t.method.toUpperCase(),Cf(p,t.params,t.paramsSerializer),!0),c.timeout=t.timeout;function y(){if(c){var w="getAllResponseHeaders"in c?Of(c.getAllResponseHeaders()):null,A=!a||a==="text"||a==="json"?c.responseText:c.response,O={data:A,status:c.status,statusText:c.statusText,headers:w,config:t,request:c};Sf(n,i,O),c=null}}if("onloadend"in c?c.onloadend=y:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(y)},c.onabort=function(){c&&(i(sn("Request aborted",t,"ECONNABORTED",c)),c=null)},c.onerror=function(){i(sn("Network Error",t,null,c)),c=null},c.ontimeout=function(){var A="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(A=t.timeoutErrorMessage),i(sn(A,t,t.transitional&&t.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",c)),c=null},tr.isStandardBrowserEnv()){var m=(t.withCredentials||qf(p))&&t.xsrfCookieName?kf.read(t.xsrfCookieName):void 0;m&&(o[t.xsrfHeaderName]=m)}"setRequestHeader"in c&&tr.forEach(o,function(A,O){typeof s>"u"&&O.toLowerCase()==="content-type"?delete o[O]:c.setRequestHeader(O,A)}),tr.isUndefined(t.withCredentials)||(c.withCredentials=!!t.withCredentials),a&&a!=="json"&&(c.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&c.addEventListener("progress",t.onDownloadProgress),typeof t.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(A){c&&(c.abort(),i(A),c=null)}),s||(s=null),c.send(s)})}});var $s=v((l1,Bs)=>{var Ke=1e3,Qe=Ke*60,Ze=Qe*60,je=Ze*24,Af=je*7,Mf=je*365.25;Bs.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return Pf(e);if(r==="number"&&isFinite(e))return t.long?Tf(e):Ff(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Pf(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*Mf;case"weeks":case"week":case"w":return r*Af;case"days":case"day":case"d":return r*je;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Ze;case"minutes":case"minute":case"mins":case"min":case"m":return r*Qe;case"seconds":case"second":case"secs":case"sec":case"s":return r*Ke;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Ff(e){var t=Math.abs(e);return t>=je?Math.round(e/je)+"d":t>=Ze?Math.round(e/Ze)+"h":t>=Qe?Math.round(e/Qe)+"m":t>=Ke?Math.round(e/Ke)+"s":e+"ms"}function Tf(e){var t=Math.abs(e);return t>=je?rr(e,t,je,"day"):t>=Ze?rr(e,t,Ze,"hour"):t>=Qe?rr(e,t,Qe,"minute"):t>=Ke?rr(e,t,Ke,"second"):e+" ms"}function rr(e,t,r,n){var i=t>=r*1.5;return Math.round(e/r)+" "+n+(i?"s":"")}});var on=v((f1,Hs)=>{function Nf(e){r.debug=r,r.default=r,r.coerce=c,r.disable=s,r.enable=i,r.enabled=o,r.humanize=$s(),r.destroy=d,Object.keys(e).forEach(h=>{r[h]=e[h]}),r.names=[],r.skips=[],r.formatters={};function t(h){let p=0;for(let y=0;y<h.length;y++)p=(p<<5)-p+h.charCodeAt(y),p|=0;return r.colors[Math.abs(p)%r.colors.length]}r.selectColor=t;function r(h){let p,y=null,m,w;function A(...O){if(!A.enabled)return;let N=A,S=Number(new Date),C=S-(p||S);N.diff=C,N.prev=p,N.curr=S,p=S,O[0]=r.coerce(O[0]),typeof O[0]!="string"&&O.unshift("%O");let P=0;O[0]=O[0].replace(/%([a-zA-Z%])/g,(de,Ce)=>{if(de==="%%")return"%";P++;let ce=r.formatters[Ce];if(typeof ce=="function"){let q=O[P];de=ce.call(N,q),O.splice(P,1),P--}return de}),r.formatArgs.call(N,O),(N.log||r.log).apply(N,O)}return A.namespace=h,A.useColors=r.useColors(),A.color=r.selectColor(h),A.extend=n,A.destroy=r.destroy,Object.defineProperty(A,"enabled",{enumerable:!0,configurable:!1,get:()=>y!==null?y:(m!==r.namespaces&&(m=r.namespaces,w=r.enabled(h)),w),set:O=>{y=O}}),typeof r.init=="function"&&r.init(A),A}function n(h,p){let y=r(this.namespace+(typeof p>"u"?":":p)+h);return y.log=this.log,y}function i(h){r.save(h),r.namespaces=h,r.names=[],r.skips=[];let p,y=(typeof h=="string"?h:"").split(/[\s,]+/),m=y.length;for(p=0;p<m;p++)y[p]&&(h=y[p].replace(/\*/g,".*?"),h[0]==="-"?r.skips.push(new RegExp("^"+h.slice(1)+"$")):r.names.push(new RegExp("^"+h+"$")))}function s(){let h=[...r.names.map(a),...r.skips.map(a).map(p=>"-"+p)].join(",");return r.enable(""),h}function o(h){if(h[h.length-1]==="*")return!0;let p,y;for(p=0,y=r.skips.length;p<y;p++)if(r.skips[p].test(h))return!1;for(p=0,y=r.names.length;p<y;p++)if(r.names[p].test(h))return!0;return!1}function a(h){return h.toString().substring(2,h.toString().length-2).replace(/\.\*\?$/,"*")}function c(h){return h instanceof Error?h.stack||h.message:h}function d(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}Hs.exports=Nf});var Us=v((pe,nr)=>{pe.formatArgs=Df;pe.save=jf;pe.load=Lf;pe.useColors=If;pe.storage=Bf();pe.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();pe.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function If(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function Df(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+nr.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,n=0;e[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(r++,i==="%c"&&(n=r))}),e.splice(n,0,t)}pe.log=console.debug||console.log||(()=>{});function jf(e){try{e?pe.storage.setItem("debug",e):pe.storage.removeItem("debug")}catch{}}function Lf(){let e;try{e=pe.storage.getItem("debug")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function Bf(){try{return localStorage}catch{}}nr.exports=on()(pe);var{formatters:$f}=nr.exports;$f.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var zs=v((h1,Gs)=>{"use strict";Gs.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}});var un=v((d1,Js)=>{"use strict";var Hf=require("os"),Ws=require("tty"),be=zs(),{env:V}=process,qe;be("no-color")||be("no-colors")||be("color=false")||be("color=never")?qe=0:(be("color")||be("colors")||be("color=true")||be("color=always"))&&(qe=1);"FORCE_COLOR"in V&&(V.FORCE_COLOR==="true"?qe=1:V.FORCE_COLOR==="false"?qe=0:qe=V.FORCE_COLOR.length===0?1:Math.min(parseInt(V.FORCE_COLOR,10),3));function an(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function cn(e,t){if(qe===0)return 0;if(be("color=16m")||be("color=full")||be("color=truecolor"))return 3;if(be("color=256"))return 2;if(e&&!t&&qe===void 0)return 0;let r=qe||0;if(V.TERM==="dumb")return r;if(process.platform==="win32"){let n=Hf.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in V)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in V)||V.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in V)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(V.TEAMCITY_VERSION)?1:0;if(V.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in V){let n=parseInt((V.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(V.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(V.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(V.TERM)||"COLORTERM"in V?1:r}function Uf(e){let t=cn(e,e&&e.isTTY);return an(t)}Js.exports={supportsColor:Uf,stdout:an(cn(!0,Ws.isatty(1))),stderr:an(cn(!0,Ws.isatty(2)))}});var Ys=v((X,sr)=>{var Gf=require("tty"),ir=require("util");X.init=Kf;X.log=Vf;X.formatArgs=Wf;X.save=Yf;X.load=Xf;X.useColors=zf;X.destroy=ir.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");X.colors=[6,2,3,4,5,1];try{let e=un();e&&(e.stderr||e).level>=2&&(X.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}X.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(i,s)=>s.toUpperCase()),n=process.env[t];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),e[r]=n,e},{});function zf(){return"colors"in X.inspectOpts?!!X.inspectOpts.colors:Gf.isatty(process.stderr.fd)}function Wf(e){let{namespace:t,useColors:r}=this;if(r){let n=this.color,i="\x1B[3"+(n<8?n:"8;5;"+n),s=` ${i};1m${t} \x1B[0m`;e[0]=s+e[0].split(`
|
|
2
|
+
"use strict";var ol=Object.create;var hi=Object.defineProperty;var al=Object.getOwnPropertyDescriptor;var cl=Object.getOwnPropertyNames;var ul=Object.getPrototypeOf,ll=Object.prototype.hasOwnProperty;var v=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var fl=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of cl(t))!ll.call(e,i)&&i!==r&&hi(e,i,{get:()=>t[i],enumerable:!(n=al(t,i))||n.enumerable});return e};var Y=(e,t,r)=>(r=e!=null?ol(ul(e)):{},fl(t||!e||!e.__esModule?hi(r,"default",{value:e,enumerable:!0}):r,e));var pi=v((qp,di)=>{"use strict";var hl=/[|\\{}()[\]^$+*?.]/g;di.exports=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(hl,"\\$&")}});var yi=v((Mp,mi)=>{"use strict";mi.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]}});var Lr=v((Pp,wi)=>{var Ne=yi(),bi={};for(jt in Ne)Ne.hasOwnProperty(jt)&&(bi[Ne[jt]]=jt);var jt,x=wi.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(ie in x)if(x.hasOwnProperty(ie)){if(!("channels"in x[ie]))throw new Error("missing channels property: "+ie);if(!("labels"in x[ie]))throw new Error("missing channel labels property: "+ie);if(x[ie].labels.length!==x[ie].channels)throw new Error("channel and label counts mismatch: "+ie);gi=x[ie].channels,vi=x[ie].labels,delete x[ie].channels,delete x[ie].labels,Object.defineProperty(x[ie],"channels",{value:gi}),Object.defineProperty(x[ie],"labels",{value:vi})}var gi,vi,ie;x.rgb.hsl=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),s=Math.max(t,r,n),o=s-i,a,c,d;return s===i?a=0:t===s?a=(r-n)/o:r===s?a=2+(n-t)/o:n===s&&(a=4+(t-r)/o),a=Math.min(a*60,360),a<0&&(a+=360),d=(i+s)/2,s===i?c=0:d<=.5?c=o/(s+i):c=o/(2-s-i),[a,c*100,d*100]};x.rgb.hsv=function(e){var t,r,n,i,s,o=e[0]/255,a=e[1]/255,c=e[2]/255,d=Math.max(o,a,c),h=d-Math.min(o,a,c),p=function(y){return(d-y)/6/h+1/2};return h===0?i=s=0:(s=h/d,t=p(o),r=p(a),n=p(c),o===d?i=n-r:a===d?i=1/3+t-n:c===d&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,d*100]};x.rgb.hwb=function(e){var t=e[0],r=e[1],n=e[2],i=x.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,s*100,n*100]};x.rgb.cmyk=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i,s,o,a;return a=Math.min(1-t,1-r,1-n),i=(1-t-a)/(1-a)||0,s=(1-r-a)/(1-a)||0,o=(1-n-a)/(1-a)||0,[i*100,s*100,o*100,a*100]};function dl(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}x.rgb.keyword=function(e){var t=bi[e];if(t)return t;var r=1/0,n;for(var i in Ne)if(Ne.hasOwnProperty(i)){var s=Ne[i],o=dl(e,s);o<r&&(r=o,n=i)}return n};x.keyword.rgb=function(e){return Ne[e]};x.rgb.xyz=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var i=t*.4124+r*.3576+n*.1805,s=t*.2126+r*.7152+n*.0722,o=t*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};x.rgb.lab=function(e){var t=x.rgb.xyz(e),r=t[0],n=t[1],i=t[2],s,o,a;return r/=95.047,n/=100,i/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,s=116*n-16,o=500*(r-n),a=200*(n-i),[s,o,a]};x.hsl.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,s,o,a,c;if(r===0)return c=n*255,[c,c,c];n<.5?s=n*(1+r):s=n+r-n*r,i=2*n-s,a=[0,0,0];for(var d=0;d<3;d++)o=t+1/3*-(d-1),o<0&&o++,o>1&&o--,6*o<1?c=i+(s-i)*6*o:2*o<1?c=s:3*o<2?c=i+(s-i)*(2/3-o)*6:c=i,a[d]=c*255;return a};x.hsl.hsv=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,i=r,s=Math.max(n,.01),o,a;return n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s,a=(n+r)/2,o=n===0?2*i/(s+i):2*r/(n+r),[t,o*100,a*100]};x.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,n=e[2]/100,i=Math.floor(t)%6,s=t-Math.floor(t),o=255*n*(1-r),a=255*n*(1-r*s),c=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,c,o];case 1:return[a,n,o];case 2:return[o,n,c];case 3:return[o,a,n];case 4:return[c,o,n];case 5:return[n,o,a]}};x.hsv.hsl=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01),s,o,a;return a=(2-r)*n,s=(2-r)*i,o=r*i,o/=s<=1?s:2-s,o=o||0,a/=2,[t,o*100,a*100]};x.hwb.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i=r+n,s,o,a,c;i>1&&(r/=i,n/=i),s=Math.floor(6*t),o=1-n,a=6*t-s,s&1&&(a=1-a),c=r+a*(o-r);var d,h,p;switch(s){default:case 6:case 0:d=o,h=c,p=r;break;case 1:d=c,h=o,p=r;break;case 2:d=r,h=o,p=c;break;case 3:d=r,h=c,p=o;break;case 4:d=c,h=r,p=o;break;case 5:d=o,h=r,p=c;break}return[d*255,h*255,p*255]};x.cmyk.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100,s,o,a;return s=1-Math.min(1,t*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i),[s*255,o*255,a*255]};x.xyz.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,i,s,o;return i=t*3.2406+r*-1.5372+n*-.4986,s=t*-.9689+r*1.8758+n*.0415,o=t*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[i*255,s*255,o*255]};x.xyz.lab=function(e){var t=e[0],r=e[1],n=e[2],i,s,o;return t/=95.047,r/=100,n/=108.883,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=116*r-16,s=500*(t-r),o=200*(r-n),[i,s,o]};x.lab.xyz=function(e){var t=e[0],r=e[1],n=e[2],i,s,o;s=(t+16)/116,i=r/500+s,o=s-n/200;var a=Math.pow(s,3),c=Math.pow(i,3),d=Math.pow(o,3);return s=a>.008856?a:(s-16/116)/7.787,i=c>.008856?c:(i-16/116)/7.787,o=d>.008856?d:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};x.lab.lch=function(e){var t=e[0],r=e[1],n=e[2],i,s,o;return i=Math.atan2(n,r),s=i*360/2/Math.PI,s<0&&(s+=360),o=Math.sqrt(r*r+n*n),[t,o,s]};x.lch.lab=function(e){var t=e[0],r=e[1],n=e[2],i,s,o;return o=n/360*2*Math.PI,i=r*Math.cos(o),s=r*Math.sin(o),[t,i,s]};x.rgb.ansi16=function(e){var t=e[0],r=e[1],n=e[2],i=1 in arguments?arguments[1]:x.rgb.hsv(e)[2];if(i=Math.round(i/50),i===0)return 30;var s=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return i===2&&(s+=60),s};x.hsv.ansi16=function(e){return x.rgb.ansi16(x.hsv.rgb(e),e[2])};x.rgb.ansi256=function(e){var t=e[0],r=e[1],n=e[2];if(t===r&&r===n)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;var i=16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};x.ansi16.rgb=function(e){var t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];var r=(~~(e>50)+1)*.5,n=(t&1)*r*255,i=(t>>1&1)*r*255,s=(t>>2&1)*r*255;return[n,i,s]};x.ansi256.rgb=function(e){if(e>=232){var t=(e-232)*10+8;return[t,t,t]}e-=16;var r,n=Math.floor(e/36)/5*255,i=Math.floor((r=e%36)/6)/5*255,s=r%6/5*255;return[n,i,s]};x.rgb.hex=function(e){var t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255),r=t.toString(16).toUpperCase();return"000000".substring(r.length)+r};x.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var r=t[0];t[0].length===3&&(r=r.split("").map(function(a){return a+a}).join(""));var n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};x.rgb.hcg=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),s=Math.min(Math.min(t,r),n),o=i-s,a,c;return o<1?a=s/(1-o):a=0,o<=0?c=0:i===t?c=(r-n)/o%6:i===r?c=2+(n-t)/o:c=4+(t-r)/o+4,c/=6,c%=1,[c*360,o*100,a*100]};x.hsl.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1,i=0;return r<.5?n=2*t*r:n=2*t*(1-r),n<1&&(i=(r-.5*n)/(1-n)),[e[0],n*100,i*100]};x.hsv.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=t*r,i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],n*100,i*100]};x.hcg.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];var i=[0,0,0],s=t%1*6,o=s%1,a=1-o,c=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=a,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]=a,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]=a}return c=(1-r)*n,[(r*i[0]+c)*255,(r*i[1]+c)*255,(r*i[2]+c)*255]};x.hcg.hsv=function(e){var t=e[1]/100,r=e[2]/100,n=t+r*(1-t),i=0;return n>0&&(i=t/n),[e[0],i*100,n*100]};x.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100,n=r*(1-t)+.5*t,i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],i*100,n*100]};x.hcg.hwb=function(e){var t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};x.hwb.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1-r,i=n-t,s=0;return i<1&&(s=(n-i)/(1-i)),[e[0],i*100,s*100]};x.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};x.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};x.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};x.gray.hsl=x.gray.hsv=function(e){return[0,0,e[0]]};x.gray.hwb=function(e){return[0,100,e[0]]};x.gray.cmyk=function(e){return[0,0,0,e[0]]};x.gray.lab=function(e){return[e[0],0,0]};x.gray.hex=function(e){var t=Math.round(e[0]/100*255)&255,r=(t<<16)+(t<<8)+t,n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};x.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[t/255*100]}});var xi=v((Fp,_i)=>{var Lt=Lr();function pl(){for(var e={},t=Object.keys(Lt),r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function ml(e){var t=pl(),r=[e];for(t[e].distance=0;r.length;)for(var n=r.pop(),i=Object.keys(Lt[n]),s=i.length,o=0;o<s;o++){var a=i[o],c=t[a];c.distance===-1&&(c.distance=t[n].distance+1,c.parent=n,r.unshift(a))}return t}function yl(e,t){return function(r){return t(e(r))}}function gl(e,t){for(var r=[t[e].parent,e],n=Lt[t[e].parent][e],i=t[e].parent;t[i].parent;)r.unshift(t[i].parent),n=yl(Lt[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}_i.exports=function(e){for(var t=ml(e),r={},n=Object.keys(t),i=n.length,s=0;s<i;s++){var o=n[s],a=t[o];a.parent!==null&&(r[o]=gl(o,t))}return r}});var Si=v((Tp,Ei)=>{var Br=Lr(),vl=xi(),ze={},bl=Object.keys(Br);function wl(e){var t=function(r){return r==null?r:(arguments.length>1&&(r=Array.prototype.slice.call(arguments)),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function _l(e){var t=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var n=e(r);if(typeof n=="object")for(var i=n.length,s=0;s<i;s++)n[s]=Math.round(n[s]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}bl.forEach(function(e){ze[e]={},Object.defineProperty(ze[e],"channels",{value:Br[e].channels}),Object.defineProperty(ze[e],"labels",{value:Br[e].labels});var t=vl(e),r=Object.keys(t);r.forEach(function(n){var i=t[n];ze[e][n]=_l(i),ze[e][n].raw=wl(i)})});Ei.exports=ze});var Ci=v((Ip,ki)=>{"use strict";var We=Si(),Bt=(e,t)=>function(){return`\x1B[${e.apply(We,arguments)+t}m`},$t=(e,t)=>function(){let r=e.apply(We,arguments);return`\x1B[${38+t};5;${r}m`},Ht=(e,t)=>function(){let r=e.apply(We,arguments);return`\x1B[${38+t};2;${r[0]};${r[1]};${r[2]}m`};function xl(){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],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.grey=t.color.gray;for(let i of Object.keys(t)){let s=t[i];for(let o of Object.keys(s)){let a=s[o];t[o]={open:`\x1B[${a[0]}m`,close:`\x1B[${a[1]}m`},s[o]=t[o],e.set(a[0],a[1])}Object.defineProperty(t,i,{value:s,enumerable:!1}),Object.defineProperty(t,"codes",{value:e,enumerable:!1})}let r=i=>i,n=(i,s,o)=>[i,s,o];t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",t.color.ansi={ansi:Bt(r,0)},t.color.ansi256={ansi256:$t(r,0)},t.color.ansi16m={rgb:Ht(n,0)},t.bgColor.ansi={ansi:Bt(r,10)},t.bgColor.ansi256={ansi256:$t(r,10)},t.bgColor.ansi16m={rgb:Ht(n,10)};for(let i of Object.keys(We)){if(typeof We[i]!="object")continue;let s=We[i];i==="ansi16"&&(i="ansi"),"ansi16"in s&&(t.color.ansi[i]=Bt(s.ansi16,0),t.bgColor.ansi[i]=Bt(s.ansi16,10)),"ansi256"in s&&(t.color.ansi256[i]=$t(s.ansi256,0),t.bgColor.ansi256[i]=$t(s.ansi256,10)),"rgb"in s&&(t.color.ansi16m[i]=Ht(s.rgb,0),t.bgColor.ansi16m[i]=Ht(s.rgb,10))}return t}Object.defineProperty(ki,"exports",{enumerable:!0,get:xl})});var Oi=v((Np,Ri)=>{"use strict";Ri.exports=(e,t)=>{t=t||process.argv;let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1?!0:n<i)}});var qi=v((Dp,Ai)=>{"use strict";var El=require("os"),_e=Oi(),ee=process.env,Je;_e("no-color")||_e("no-colors")||_e("color=false")?Je=!1:(_e("color")||_e("colors")||_e("color=true")||_e("color=always"))&&(Je=!0);"FORCE_COLOR"in ee&&(Je=ee.FORCE_COLOR.length===0||parseInt(ee.FORCE_COLOR,10)!==0);function Sl(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function kl(e){if(Je===!1)return 0;if(_e("color=16m")||_e("color=full")||_e("color=truecolor"))return 3;if(_e("color=256"))return 2;if(e&&!e.isTTY&&Je!==!0)return 0;let t=Je?1:0;if(process.platform==="win32"){let r=El.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in ee)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in ee)||ee.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in ee)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ee.TEAMCITY_VERSION)?1:0;if(ee.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in ee){let r=parseInt((ee.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ee.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ee.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ee.TERM)||"COLORTERM"in ee?1:(ee.TERM==="dumb",t)}function $r(e){let t=kl(e);return Sl(t)}Ai.exports={supportsColor:$r,stdout:$r(process.stdout),stderr:$r(process.stderr)}});var Ii=v((jp,Ti)=>{"use strict";var Cl=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Mi=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Rl=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Ol=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,Al=new Map([["n",`
|
|
3
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function Fi(e){return e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):Al.get(e)||e}function ql(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),i;for(let s of n)if(!isNaN(s))r.push(Number(s));else if(i=s.match(Rl))r.push(i[2].replace(Ol,(o,a,c)=>a?Fi(a):c));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${e}')`);return r}function Ml(e){Mi.lastIndex=0;let t=[],r;for(;(r=Mi.exec(e))!==null;){let n=r[1];if(r[2]){let i=ql(n,r[2]);t.push([n].concat(i))}else t.push([n])}return t}function Pi(e,t){let r={};for(let i of t)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=e;for(let i of Object.keys(r))if(Array.isArray(r[i])){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);r[i].length>0?n=n[i].apply(n,r[i]):n=n[i]}return n}Ti.exports=(e,t)=>{let r=[],n=[],i=[];if(t.replace(Cl,(s,o,a,c,d,h)=>{if(o)i.push(Fi(o));else if(c){let p=i.join("");i=[],n.push(r.length===0?p:Pi(e,r)(p)),r.push({inverse:a,styles:Ml(c)})}else if(d){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(Pi(e,r)(i.join(""))),i=[],r.pop()}else i.push(h)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var yt=v((Lp,mt)=>{"use strict";var Ur=pi(),W=Ci(),Hr=qi().stdout,Pl=Ii(),Di=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),ji=["ansi","ansi","ansi256","ansi16m"],Li=new Set(["gray"]),Ve=Object.create(null);function Ni(e,t){t=t||{};let r=Hr?Hr.level:0;e.level=t.level===void 0?r:t.level,e.enabled="enabled"in t?t.enabled:e.level>0}function pt(e){if(!this||!(this instanceof pt)||this.template){let t={};return Ni(t,e),t.template=function(){let r=[].slice.call(arguments);return Il.apply(null,[t.template].concat(r))},Object.setPrototypeOf(t,pt.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=pt,t.template}Ni(this,e)}Di&&(W.blue.open="\x1B[94m");for(let e of Object.keys(W))W[e].closeRe=new RegExp(Ur(W[e].close),"g"),Ve[e]={get(){let t=W[e];return Ut.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}};Ve.visible={get(){return Ut.call(this,this._styles||[],!0,"visible")}};W.color.closeRe=new RegExp(Ur(W.color.close),"g");for(let e of Object.keys(W.color.ansi))Li.has(e)||(Ve[e]={get(){let t=this.level;return function(){let n={open:W.color[ji[t]][e].apply(null,arguments),close:W.color.close,closeRe:W.color.closeRe};return Ut.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});W.bgColor.closeRe=new RegExp(Ur(W.bgColor.close),"g");for(let e of Object.keys(W.bgColor.ansi)){if(Li.has(e))continue;let t="bg"+e[0].toUpperCase()+e.slice(1);Ve[t]={get(){let r=this.level;return function(){let i={open:W.bgColor[ji[r]][e].apply(null,arguments),close:W.bgColor.close,closeRe:W.bgColor.closeRe};return Ut.call(this,this._styles?this._styles.concat(i):[i],this._empty,e)}}}}var Fl=Object.defineProperties(()=>{},Ve);function Ut(e,t,r){let n=function(){return Tl.apply(n,arguments)};n._styles=e,n._empty=t;let i=this;return Object.defineProperty(n,"level",{enumerable:!0,get(){return i.level},set(s){i.level=s}}),Object.defineProperty(n,"enabled",{enumerable:!0,get(){return i.enabled},set(s){i.enabled=s}}),n.hasGrey=this.hasGrey||r==="gray"||r==="grey",n.__proto__=Fl,n}function Tl(){let e=arguments,t=e.length,r=String(arguments[0]);if(t===0)return"";if(t>1)for(let i=1;i<t;i++)r+=" "+e[i];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;let n=W.dim.open;Di&&this.hasGrey&&(W.dim.open="");for(let i of this._styles.slice().reverse())r=i.open+r.replace(i.closeRe,i.open)+i.close,r=r.replace(/\r?\n/g,`${i.close}$&${i.open}`);return W.dim.open=n,r}function Il(e,t){if(!Array.isArray(t))return[].slice.call(arguments,1).join(" ");let r=[].slice.call(arguments,2),n=[t.raw[0]];for(let i=1;i<t.length;i++)n.push(String(r[i-1]).replace(/[{}\\]/g,"\\$&")),n.push(String(t.raw[i]));return Pl(e,n.join(""))}Object.defineProperties(pt.prototype,Ve);mt.exports=pt();mt.exports.supportsColor=Hr;mt.exports.default=mt.exports});var Gt=v((Bp,Gr)=>{var Nl=require("fs"),Dl=require("path");function Bi(e){console.log(`[dotenv][DEBUG] ${e}`)}var jl=`
|
|
4
|
+
`,Ll=/^\s*([\w.-]+)\s*=\s*(.*)?\s*$/,Bl=/\\n/g,$l=/\n|\r|\r\n/;function $i(e,t){let r=!!(t&&t.debug),n={};return e.toString().split($l).forEach(function(i,s){let o=i.match(Ll);if(o!=null){let a=o[1],c=o[2]||"",d=c.length-1,h=c[0]==='"'&&c[d]==='"';c[0]==="'"&&c[d]==="'"||h?(c=c.substring(1,d),h&&(c=c.replace(Bl,jl))):c=c.trim(),n[a]=c}else r&&Bi(`did not match key and value when parsing line ${s+1}: ${i}`)}),n}function Hl(e){let t=Dl.resolve(process.cwd(),".env"),r="utf8",n=!1;e&&(e.path!=null&&(t=e.path),e.encoding!=null&&(r=e.encoding),e.debug!=null&&(n=!0));try{let i=$i(Nl.readFileSync(t,{encoding:r}),{debug:n});return Object.keys(i).forEach(function(s){Object.prototype.hasOwnProperty.call(process.env,s)?n&&Bi(`"${s}" is already defined in \`process.env\` and will not be overwritten`):process.env[s]=i[s]}),{parsed:i}}catch(i){return{error:i}}}Gr.exports.config=Hl;Gr.exports.parse=$i});var Ui=v(($p,Hi)=>{var zr=class{constructor(t){this.value=t,this.next=void 0}},Wr=class{constructor(){this.clear()}enqueue(t){let r=new zr(t);this._head?(this._tail.next=r,this._tail=r):(this._head=r,this._tail=r),this._size++}dequeue(){let t=this._head;if(t)return this._head=this._head.next,this._size--,t.value}clear(){this._head=void 0,this._tail=void 0,this._size=0}get size(){return this._size}*[Symbol.iterator](){let t=this._head;for(;t;)yield t.value,t=t.next}};Hi.exports=Wr});var zi=v((Hp,Gi)=>{"use strict";var Ul=Ui(),Gl=e=>{if(!((Number.isInteger(e)||e===1/0)&&e>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");let t=new Ul,r=0,n=()=>{r--,t.size>0&&t.dequeue()()},i=async(a,c,...d)=>{r++;let h=(async()=>a(...d))();c(h);try{await h}catch{}n()},s=(a,c,...d)=>{t.enqueue(i.bind(null,a,c,...d)),(async()=>(await Promise.resolve(),r<e&&t.size>0&&t.dequeue()()))()},o=(a,...c)=>new Promise(d=>{s(a,d,...c)});return Object.defineProperties(o,{activeCount:{get:()=>r},pendingCount:{get:()=>t.size},clearQueue:{value:()=>{t.clear()}}}),o};Gi.exports=Gl});var Vi=v((Up,Ji)=>{"use strict";var Wi=zi(),zt=class extends Error{constructor(t){super(),this.value=t}},zl=async(e,t)=>t(await e),Wl=async e=>{let t=await Promise.all(e);if(t[1]===!0)throw new zt(t[0]);return!1},Jl=async(e,t,r)=>{r={concurrency:1/0,preserveOrder:!0,...r};let n=Wi(r.concurrency),i=[...e].map(o=>[o,n(zl,o,t)]),s=Wi(r.preserveOrder?1:1/0);try{await Promise.all(i.map(o=>s(Wl,o)))}catch(o){if(o instanceof zt)return o.value;throw o}};Ji.exports=Jl});var es=v((Gp,Jr)=>{"use strict";var Yi=require("path"),Wt=require("fs"),{promisify:Xi}=require("util"),Vl=Vi(),Yl=Xi(Wt.stat),Xl=Xi(Wt.lstat),Ki={directory:"isDirectory",file:"isFile"};function Qi({type:e}){if(!(e in Ki))throw new Error(`Invalid type specified: ${e}`)}var Zi=(e,t)=>e===void 0||t[Ki[e]]();Jr.exports=async(e,t)=>{t={cwd:process.cwd(),type:"file",allowSymlinks:!0,...t},Qi(t);let r=t.allowSymlinks?Yl:Xl;return Vl(e,async n=>{try{let i=await r(Yi.resolve(t.cwd,n));return Zi(t.type,i)}catch{return!1}},t)};Jr.exports.sync=(e,t)=>{t={cwd:process.cwd(),allowSymlinks:!0,type:"file",...t},Qi(t);let r=t.allowSymlinks?Wt.statSync:Wt.lstatSync;for(let n of e)try{let i=r(Yi.resolve(t.cwd,n));if(Zi(t.type,i))return n}catch{}}});var rs=v((zp,Vr)=>{"use strict";var ts=require("fs"),{promisify:Kl}=require("util"),Ql=Kl(ts.access);Vr.exports=async e=>{try{return await Ql(e),!0}catch{return!1}};Vr.exports.sync=e=>{try{return ts.accessSync(e),!0}catch{return!1}}});var is=v((Wp,Ye)=>{"use strict";var Oe=require("path"),Jt=es(),ns=rs(),Yr=Symbol("findUp.stop");Ye.exports=async(e,t={})=>{let r=Oe.resolve(t.cwd||""),{root:n}=Oe.parse(r),i=[].concat(e),s=async o=>{if(typeof e!="function")return Jt(i,o);let a=await e(o.cwd);return typeof a=="string"?Jt([a],o):a};for(;;){let o=await s({...t,cwd:r});if(o===Yr)return;if(o)return Oe.resolve(r,o);if(r===n)return;r=Oe.dirname(r)}};Ye.exports.sync=(e,t={})=>{let r=Oe.resolve(t.cwd||""),{root:n}=Oe.parse(r),i=[].concat(e),s=o=>{if(typeof e!="function")return Jt.sync(i,o);let a=e(o.cwd);return typeof a=="string"?Jt.sync([a],o):a};for(;;){let o=s({...t,cwd:r});if(o===Yr)return;if(o)return Oe.resolve(r,o);if(r===n)return;r=Oe.dirname(r)}};Ye.exports.exists=ns;Ye.exports.sync.exists=ns.sync;Ye.exports.stop=Yr});var as=v((Jp,Xr)=>{"use strict";var ss=require("path"),os=is(),Zl=async e=>{let t=await os("package.json",{cwd:e});return t&&ss.dirname(t)};Xr.exports=Zl;Xr.exports.sync=e=>{let t=os.sync("package.json",{cwd:e});return t&&ss.dirname(t)}});var Kr=v((Xp,ps)=>{"use strict";ps.exports=function(t,r){return function(){for(var i=new Array(arguments.length),s=0;s<i.length;s++)i[s]=arguments[s];return t.apply(r,i)}}});var se=v((Kp,gs)=>{"use strict";var ef=Kr(),De=Object.prototype.toString;function en(e){return De.call(e)==="[object Array]"}function Qr(e){return typeof e>"u"}function tf(e){return e!==null&&!Qr(e)&&e.constructor!==null&&!Qr(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function rf(e){return De.call(e)==="[object ArrayBuffer]"}function nf(e){return typeof FormData<"u"&&e instanceof FormData}function sf(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function of(e){return typeof e=="string"}function af(e){return typeof e=="number"}function ms(e){return e!==null&&typeof e=="object"}function Yt(e){if(De.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function cf(e){return De.call(e)==="[object Date]"}function uf(e){return De.call(e)==="[object File]"}function lf(e){return De.call(e)==="[object Blob]"}function ys(e){return De.call(e)==="[object Function]"}function ff(e){return ms(e)&&ys(e.pipe)}function hf(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}function df(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function pf(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function tn(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),en(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}function Zr(){var e={};function t(i,s){Yt(e[s])&&Yt(i)?e[s]=Zr(e[s],i):Yt(i)?e[s]=Zr({},i):en(i)?e[s]=i.slice():e[s]=i}for(var r=0,n=arguments.length;r<n;r++)tn(arguments[r],t);return e}function mf(e,t,r){return tn(t,function(i,s){r&&typeof i=="function"?e[s]=ef(i,r):e[s]=i}),e}function yf(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}gs.exports={isArray:en,isArrayBuffer:rf,isBuffer:tf,isFormData:nf,isArrayBufferView:sf,isString:of,isNumber:af,isObject:ms,isPlainObject:Yt,isUndefined:Qr,isDate:cf,isFile:uf,isBlob:lf,isFunction:ys,isStream:ff,isURLSearchParams:hf,isStandardBrowserEnv:pf,forEach:tn,merge:Zr,extend:mf,trim:df,stripBOM:yf}});var Xt=v((Qp,bs)=>{"use strict";var Xe=se();function vs(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}bs.exports=function(t,r,n){if(!r)return t;var i;if(n)i=n(r);else if(Xe.isURLSearchParams(r))i=r.toString();else{var s=[];Xe.forEach(r,function(c,d){c===null||typeof c>"u"||(Xe.isArray(c)?d=d+"[]":c=[c],Xe.forEach(c,function(p){Xe.isDate(p)?p=p.toISOString():Xe.isObject(p)&&(p=JSON.stringify(p)),s.push(vs(d)+"="+vs(p))}))}),i=s.join("&")}if(i){var o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}});var _s=v((Zp,ws)=>{"use strict";var gf=se();function Kt(){this.handlers=[]}Kt.prototype.use=function(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};Kt.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};Kt.prototype.forEach=function(t){gf.forEach(this.handlers,function(n){n!==null&&t(n)})};ws.exports=Kt});var Es=v((e1,xs)=>{"use strict";var vf=se();xs.exports=function(t,r){vf.forEach(t,function(i,s){s!==r&&s.toUpperCase()===r.toUpperCase()&&(t[r]=i,delete t[s])})}});var Qt=v((t1,Ss)=>{"use strict";Ss.exports=function(t,r,n,i,s){return t.config=r,n&&(t.code=n),t.request=i,t.response=s,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}});var Zt=v((r1,ks)=>{"use strict";var bf=Qt();ks.exports=function(t,r,n,i,s){var o=new Error(t);return bf(o,r,n,i,s)}});var rn=v((n1,Cs)=>{"use strict";var wf=Zt();Cs.exports=function(t,r,n){var i=n.config.validateStatus;!n.status||!i||i(n.status)?t(n):r(wf("Request failed with status code "+n.status,n.config,null,n.request,n))}});var Os=v((i1,Rs)=>{"use strict";var er=se();Rs.exports=er.isStandardBrowserEnv()?function(){return{write:function(r,n,i,s,o,a){var c=[];c.push(r+"="+encodeURIComponent(n)),er.isNumber(i)&&c.push("expires="+new Date(i).toGMTString()),er.isString(s)&&c.push("path="+s),er.isString(o)&&c.push("domain="+o),a===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(r){var n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()});var qs=v((s1,As)=>{"use strict";As.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}});var Ps=v((o1,Ms)=>{"use strict";Ms.exports=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}});var nn=v((a1,Fs)=>{"use strict";var _f=qs(),xf=Ps();Fs.exports=function(t,r){return t&&!_f(r)?xf(t,r):r}});var Is=v((c1,Ts)=>{"use strict";var sn=se(),Ef=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];Ts.exports=function(t){var r={},n,i,s;return t&&sn.forEach(t.split(`
|
|
5
|
+
`),function(a){if(s=a.indexOf(":"),n=sn.trim(a.substr(0,s)).toLowerCase(),i=sn.trim(a.substr(s+1)),n){if(r[n]&&Ef.indexOf(n)>=0)return;n==="set-cookie"?r[n]=(r[n]?r[n]:[]).concat([i]):r[n]=r[n]?r[n]+", "+i:i}}),r}});var js=v((u1,Ds)=>{"use strict";var Ns=se();Ds.exports=Ns.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),n;function i(s){var o=s;return t&&(r.setAttribute("href",o),o=r.href),r.setAttribute("href",o),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=i(window.location.href),function(o){var a=Ns.isString(o)?i(o):o;return a.protocol===n.protocol&&a.host===n.host}}():function(){return function(){return!0}}()});var Bs=v((l1,Ls)=>{"use strict";var tr=se(),Sf=rn(),kf=Os(),Cf=Xt(),Rf=nn(),Of=Is(),Af=js(),on=Zt();Ls.exports=function(t){return new Promise(function(n,i){var s=t.data,o=t.headers,a=t.responseType;tr.isFormData(s)&&delete o["Content-Type"];var c=new XMLHttpRequest;if(t.auth){var d=t.auth.username||"",h=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";o.Authorization="Basic "+btoa(d+":"+h)}var p=Rf(t.baseURL,t.url);c.open(t.method.toUpperCase(),Cf(p,t.params,t.paramsSerializer),!0),c.timeout=t.timeout;function y(){if(c){var w="getAllResponseHeaders"in c?Of(c.getAllResponseHeaders()):null,q=!a||a==="text"||a==="json"?c.responseText:c.response,O={data:q,status:c.status,statusText:c.statusText,headers:w,config:t,request:c};Sf(n,i,O),c=null}}if("onloadend"in c?c.onloadend=y:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(y)},c.onabort=function(){c&&(i(on("Request aborted",t,"ECONNABORTED",c)),c=null)},c.onerror=function(){i(on("Network Error",t,null,c)),c=null},c.ontimeout=function(){var q="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(q=t.timeoutErrorMessage),i(on(q,t,t.transitional&&t.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",c)),c=null},tr.isStandardBrowserEnv()){var m=(t.withCredentials||Af(p))&&t.xsrfCookieName?kf.read(t.xsrfCookieName):void 0;m&&(o[t.xsrfHeaderName]=m)}"setRequestHeader"in c&&tr.forEach(o,function(q,O){typeof s>"u"&&O.toLowerCase()==="content-type"?delete o[O]:c.setRequestHeader(O,q)}),tr.isUndefined(t.withCredentials)||(c.withCredentials=!!t.withCredentials),a&&a!=="json"&&(c.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&c.addEventListener("progress",t.onDownloadProgress),typeof t.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(q){c&&(c.abort(),i(q),c=null)}),s||(s=null),c.send(s)})}});var Hs=v((f1,$s)=>{var Ke=1e3,Qe=Ke*60,Ze=Qe*60,je=Ze*24,qf=je*7,Mf=je*365.25;$s.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return Pf(e);if(r==="number"&&isFinite(e))return t.long?Tf(e):Ff(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Pf(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*Mf;case"weeks":case"week":case"w":return r*qf;case"days":case"day":case"d":return r*je;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Ze;case"minutes":case"minute":case"mins":case"min":case"m":return r*Qe;case"seconds":case"second":case"secs":case"sec":case"s":return r*Ke;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Ff(e){var t=Math.abs(e);return t>=je?Math.round(e/je)+"d":t>=Ze?Math.round(e/Ze)+"h":t>=Qe?Math.round(e/Qe)+"m":t>=Ke?Math.round(e/Ke)+"s":e+"ms"}function Tf(e){var t=Math.abs(e);return t>=je?rr(e,t,je,"day"):t>=Ze?rr(e,t,Ze,"hour"):t>=Qe?rr(e,t,Qe,"minute"):t>=Ke?rr(e,t,Ke,"second"):e+" ms"}function rr(e,t,r,n){var i=t>=r*1.5;return Math.round(e/r)+" "+n+(i?"s":"")}});var an=v((h1,Us)=>{function If(e){r.debug=r,r.default=r,r.coerce=c,r.disable=s,r.enable=i,r.enabled=o,r.humanize=Hs(),r.destroy=d,Object.keys(e).forEach(h=>{r[h]=e[h]}),r.names=[],r.skips=[],r.formatters={};function t(h){let p=0;for(let y=0;y<h.length;y++)p=(p<<5)-p+h.charCodeAt(y),p|=0;return r.colors[Math.abs(p)%r.colors.length]}r.selectColor=t;function r(h){let p,y=null,m,w;function q(...O){if(!q.enabled)return;let I=q,S=Number(new Date),C=S-(p||S);I.diff=C,I.prev=p,I.curr=S,p=S,O[0]=r.coerce(O[0]),typeof O[0]!="string"&&O.unshift("%O");let P=0;O[0]=O[0].replace(/%([a-zA-Z%])/g,(de,Se)=>{if(de==="%%")return"%";P++;let ce=r.formatters[Se];if(typeof ce=="function"){let A=O[P];de=ce.call(I,A),O.splice(P,1),P--}return de}),r.formatArgs.call(I,O),(I.log||r.log).apply(I,O)}return q.namespace=h,q.useColors=r.useColors(),q.color=r.selectColor(h),q.extend=n,q.destroy=r.destroy,Object.defineProperty(q,"enabled",{enumerable:!0,configurable:!1,get:()=>y!==null?y:(m!==r.namespaces&&(m=r.namespaces,w=r.enabled(h)),w),set:O=>{y=O}}),typeof r.init=="function"&&r.init(q),q}function n(h,p){let y=r(this.namespace+(typeof p>"u"?":":p)+h);return y.log=this.log,y}function i(h){r.save(h),r.namespaces=h,r.names=[],r.skips=[];let p,y=(typeof h=="string"?h:"").split(/[\s,]+/),m=y.length;for(p=0;p<m;p++)y[p]&&(h=y[p].replace(/\*/g,".*?"),h[0]==="-"?r.skips.push(new RegExp("^"+h.slice(1)+"$")):r.names.push(new RegExp("^"+h+"$")))}function s(){let h=[...r.names.map(a),...r.skips.map(a).map(p=>"-"+p)].join(",");return r.enable(""),h}function o(h){if(h[h.length-1]==="*")return!0;let p,y;for(p=0,y=r.skips.length;p<y;p++)if(r.skips[p].test(h))return!1;for(p=0,y=r.names.length;p<y;p++)if(r.names[p].test(h))return!0;return!1}function a(h){return h.toString().substring(2,h.toString().length-2).replace(/\.\*\?$/,"*")}function c(h){return h instanceof Error?h.stack||h.message:h}function d(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}Us.exports=If});var Gs=v((pe,nr)=>{pe.formatArgs=Df;pe.save=jf;pe.load=Lf;pe.useColors=Nf;pe.storage=Bf();pe.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();pe.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function Nf(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function Df(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+nr.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,n=0;e[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(r++,i==="%c"&&(n=r))}),e.splice(n,0,t)}pe.log=console.debug||console.log||(()=>{});function jf(e){try{e?pe.storage.setItem("debug",e):pe.storage.removeItem("debug")}catch{}}function Lf(){let e;try{e=pe.storage.getItem("debug")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function Bf(){try{return localStorage}catch{}}nr.exports=an()(pe);var{formatters:$f}=nr.exports;$f.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var Ws=v((d1,zs)=>{"use strict";zs.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}});var ln=v((p1,Vs)=>{"use strict";var Hf=require("os"),Js=require("tty"),be=Ws(),{env:V}=process,Ae;be("no-color")||be("no-colors")||be("color=false")||be("color=never")?Ae=0:(be("color")||be("colors")||be("color=true")||be("color=always"))&&(Ae=1);"FORCE_COLOR"in V&&(V.FORCE_COLOR==="true"?Ae=1:V.FORCE_COLOR==="false"?Ae=0:Ae=V.FORCE_COLOR.length===0?1:Math.min(parseInt(V.FORCE_COLOR,10),3));function cn(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function un(e,t){if(Ae===0)return 0;if(be("color=16m")||be("color=full")||be("color=truecolor"))return 3;if(be("color=256"))return 2;if(e&&!t&&Ae===void 0)return 0;let r=Ae||0;if(V.TERM==="dumb")return r;if(process.platform==="win32"){let n=Hf.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in V)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in V)||V.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in V)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(V.TEAMCITY_VERSION)?1:0;if(V.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in V){let n=parseInt((V.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(V.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(V.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(V.TERM)||"COLORTERM"in V?1:r}function Uf(e){let t=un(e,e&&e.isTTY);return cn(t)}Vs.exports={supportsColor:Uf,stdout:cn(un(!0,Js.isatty(1))),stderr:cn(un(!0,Js.isatty(2)))}});var Xs=v((X,sr)=>{var Gf=require("tty"),ir=require("util");X.init=Kf;X.log=Vf;X.formatArgs=Wf;X.save=Yf;X.load=Xf;X.useColors=zf;X.destroy=ir.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");X.colors=[6,2,3,4,5,1];try{let e=ln();e&&(e.stderr||e).level>=2&&(X.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}X.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(i,s)=>s.toUpperCase()),n=process.env[t];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),e[r]=n,e},{});function zf(){return"colors"in X.inspectOpts?!!X.inspectOpts.colors:Gf.isatty(process.stderr.fd)}function Wf(e){let{namespace:t,useColors:r}=this;if(r){let n=this.color,i="\x1B[3"+(n<8?n:"8;5;"+n),s=` ${i};1m${t} \x1B[0m`;e[0]=s+e[0].split(`
|
|
6
6
|
`).join(`
|
|
7
7
|
`+s),e.push(i+"m+"+sr.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=Jf()+t+" "+e[0]}function Jf(){return X.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Vf(...e){return process.stderr.write(ir.format(...e)+`
|
|
8
|
-
`)}function Yf(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function Xf(){return process.env.DEBUG}function Kf(e){e.inspectOpts={};let t=Object.keys(X.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=X.inspectOpts[t[r]]}sr.exports=
|
|
9
|
-
`).map(t=>t.trim()).join(" ")};Vs.O=function(e){return this.inspectOpts.colors=this.useColors,ir.inspect(e,this.inspectOpts)}});var Xs=v((p1,ln)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?ln.exports=Us():ln.exports=Ys()});var Qs=v((m1,Ks)=>{var gt;Ks.exports=function(){if(!gt){try{gt=Xs()("follow-redirects")}catch{}typeof gt!="function"&&(gt=function(){})}gt.apply(null,arguments)}});var yn=v((y1,mn)=>{var Le=require("url"),fn=Le.URL,Qf=require("http"),Zf=require("https"),to=require("stream").Writable,ro=require("assert"),no=Qs(),dn=["abort","aborted","connect","error","socket","timeout"],pn=Object.create(null);dn.forEach(function(e){pn[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}});var eh=bt("ERR_INVALID_URL","Invalid URL",TypeError),Zs=bt("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),th=bt("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),rh=bt("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),nh=bt("ERR_STREAM_WRITE_AFTER_END","write after end");function me(e,t){to.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var r=this;this._onNativeResponse=function(n){r._processResponse(n)},this._performRequest()}me.prototype=Object.create(to.prototype);me.prototype.abort=function(){so(this._currentRequest),this.emit("abort")};me.prototype.write=function(e,t,r){if(this._ending)throw new nh;if(!Be(e)&&!oh(e))throw new TypeError("data should be a string, Buffer or Uint8Array");if(vt(t)&&(r=t,t=null),e.length===0){r&&r();return}this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new rh),this.abort())};me.prototype.end=function(e,t,r){if(vt(e)?(r=e,e=t=null):vt(t)&&(r=t,t=null),!e)this._ended=this._ending=!0,this._currentRequest.end(null,null,r);else{var n=this,i=this._currentRequest;this.write(e,t,function(){n._ended=!0,i.end(null,null,r)}),this._ending=!0}};me.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)};me.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)};me.prototype.setTimeout=function(e,t){var r=this;function n(o){o.setTimeout(e),o.removeListener("timeout",o.destroy),o.addListener("timeout",o.destroy)}function i(o){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout(function(){r.emit("timeout"),s()},e),n(o)}function s(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",s),r.removeListener("error",s),r.removeListener("response",s),t&&r.removeListener("timeout",t),r.socket||r._currentRequest.removeListener("socket",i)}return t&&this.on("timeout",t),this.socket?i(this.socket):this._currentRequest.once("socket",i),this.on("socket",n),this.on("abort",s),this.on("error",s),this.on("response",s),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){me.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}});["aborted","connection","socket"].forEach(function(e){Object.defineProperty(me.prototype,e,{get:function(){return this._currentRequest[e]}})});me.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}};me.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t){this.emit("error",new TypeError("Unsupported protocol "+e));return}if(this._options.agents){var r=e.slice(0,-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=t.request(this._options,this._onNativeResponse);n._redirectable=this;for(var i of dn)n.on(i,pn[i]);if(this._currentUrl=/^\//.test(this._options.path)?Le.format(this._options):this._options.path,this._isRedirect){var s=0,o=this,a=this._requestBodyBuffers;(function c(d){if(n===o._currentRequest)if(d)o.emit("error",d);else if(s<a.length){var h=a[s++];n.finished||n.write(h.data,h.encoding,c)}else o._ended&&n.end()})()}};me.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var r=e.headers.location;if(!r||this._options.followRedirects===!1||t<300||t>=400){e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[];return}if(so(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects){this.emit("error",new th);return}var n,i=this._options.beforeRedirect;i&&(n=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var s=this._options.method;((t===301||t===302)&&this._options.method==="POST"||t===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],hn(/^content-/i,this._options.headers));var o=hn(/^host$/i,this._options.headers),a=Le.parse(this._currentUrl),c=o||a.host,d=/^\w+:/.test(r)?this._currentUrl:Le.format(Object.assign(a,{host:c})),h;try{h=Le.resolve(d,r)}catch(w){this.emit("error",new Zs({cause:w}));return}no("redirecting to",h),this._isRedirect=!0;var p=Le.parse(h);if(Object.assign(this._options,p),(p.protocol!==a.protocol&&p.protocol!=="https:"||p.host!==c&&!sh(p.host,c))&&hn(/^(?:authorization|cookie)$/i,this._options.headers),vt(i)){var y={headers:e.headers,statusCode:t},m={url:d,method:s,headers:n};try{i(this._options,y,m)}catch(w){this.emit("error",w);return}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(w){this.emit("error",new Zs({cause:w}))}};function io(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach(function(n){var i=n+":",s=r[i]=e[n],o=t[n]=Object.create(s);function a(d,h,p){if(Be(d)){var y;try{y=eo(new fn(d))}catch{y=Le.parse(d)}if(!Be(y.protocol))throw new eh({input:d});d=y}else fn&&d instanceof fn?d=eo(d):(p=h,h=d,d={protocol:i});return vt(h)&&(p=h,h=null),h=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},d,h),h.nativeProtocols=r,!Be(h.host)&&!Be(h.hostname)&&(h.hostname="::1"),ro.equal(h.protocol,i,"protocol mismatch"),no("options",h),new me(h,p)}function c(d,h,p){var y=o.request(d,h,p);return y.end(),y}Object.defineProperties(o,{request:{value:a,configurable:!0,enumerable:!0,writable:!0},get:{value:c,configurable:!0,enumerable:!0,writable:!0}})}),t}function ih(){}function eo(e){var t={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:e.pathname+e.search,href:e.href};return e.port!==""&&(t.port=Number(e.port)),t}function hn(e,t){var r;for(var n in t)e.test(n)&&(r=t[n],delete t[n]);return r===null||typeof r>"u"?void 0:String(r).trim()}function bt(e,t,r){function n(i){Error.captureStackTrace(this,this.constructor),Object.assign(this,i||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return n.prototype=new(r||Error),n.prototype.constructor=n,n.prototype.name="Error ["+e+"]",n}function so(e){for(var t of dn)e.removeListener(t,pn[t]);e.on("error",ih),e.abort()}function sh(e,t){ro(Be(e)&&Be(t));var r=e.length-t.length-1;return r>0&&e[r]==="."&&e.endsWith(t)}function Be(e){return typeof e=="string"||e instanceof String}function vt(e){return typeof e=="function"}function oh(e){return typeof e=="object"&&"length"in e}mn.exports=io({http:Qf,https:Zf});mn.exports.wrap=io});var gn=v((g1,ah)=>{ah.exports={name:"axios",version:"0.21.4",description:"Promise based HTTP client for the browser and node.js",main:"index.js",scripts:{test:"grunt test",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},repository:{type:"git",url:"https://github.com/axios/axios.git"},keywords:["xhr","http","ajax","promise","node"],author:"Matt Zabriskie",license:"MIT",bugs:{url:"https://github.com/axios/axios/issues"},homepage:"https://axios-http.com",devDependencies:{coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},browser:{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},jsdelivr:"dist/axios.min.js",unpkg:"dist/axios.min.js",typings:"./index.d.ts",dependencies:{"follow-redirects":"^1.14.0"},bundlesize:[{path:"./dist/axios.min.js",threshold:"5kB"}]}});var fo=v((v1,lo)=>{"use strict";var wt=se(),oo=tn(),ch=rn(),uh=Xt(),lh=require("http"),fh=require("https"),hh=yn().http,dh=yn().https,ao=require("url"),ph=require("zlib"),mh=gn(),or=Zt(),vn=Qt(),co=/https:?/;function uo(e,t,r){if(e.hostname=t.host,e.host=t.host,e.port=t.port,e.path=r,t.auth){var n=Buffer.from(t.auth.username+":"+t.auth.password,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+n}e.beforeRedirect=function(s){s.headers.host=s.host,uo(s,t,s.href)}}lo.exports=function(t){return new Promise(function(n,i){var s=function(k){n(k)},o=function(k){i(k)},a=t.data,c=t.headers;if("User-Agent"in c||"user-agent"in c?!c["User-Agent"]&&!c["user-agent"]&&(delete c["User-Agent"],delete c["user-agent"]):c["User-Agent"]="axios/"+mh.version,a&&!wt.isStream(a)){if(!Buffer.isBuffer(a))if(wt.isArrayBuffer(a))a=Buffer.from(new Uint8Array(a));else if(wt.isString(a))a=Buffer.from(a,"utf-8");else return o(or("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",t));c["Content-Length"]=a.length}var d=void 0;if(t.auth){var h=t.auth.username||"",p=t.auth.password||"";d=h+":"+p}var y=ch(t.baseURL,t.url),m=ao.parse(y),w=m.protocol||"http:";if(!d&&m.auth){var A=m.auth.split(":"),O=A[0]||"",N=A[1]||"";d=O+":"+N}d&&delete c.Authorization;var S=co.test(w),C=S?t.httpsAgent:t.httpAgent,P={path:uh(m.path,t.params,t.paramsSerializer).replace(/^\?/,""),method:t.method.toUpperCase(),headers:c,agent:C,agents:{http:t.httpAgent,https:t.httpsAgent},auth:d};t.socketPath?P.socketPath=t.socketPath:(P.hostname=m.hostname,P.port=m.port);var J=t.proxy;if(!J&&J!==!1){var de=w.slice(0,-1)+"_proxy",Ce=process.env[de]||process.env[de.toUpperCase()];if(Ce){var ce=ao.parse(Ce),q=process.env.no_proxy||process.env.NO_PROXY,D=!0;if(q){var I=q.split(",").map(function(k){return k.trim()});D=!I.some(function(k){return k?k==="*"||k[0]==="."&&m.hostname.substr(m.hostname.length-k.length)===k?!0:m.hostname===k:!1})}if(D&&(J={host:ce.hostname,port:ce.port,protocol:ce.protocol},ce.auth)){var U=ce.auth.split(":");J.auth={username:U[0],password:U[1]}}}}J&&(P.headers.host=m.hostname+(m.port?":"+m.port:""),uo(P,J,w+"//"+m.hostname+(m.port?":"+m.port:"")+P.path));var M,H=S&&(J?co.test(J.protocol):!0);t.transport?M=t.transport:t.maxRedirects===0?M=H?fh:lh:(t.maxRedirects&&(P.maxRedirects=t.maxRedirects),M=H?dh:hh),t.maxBodyLength>-1&&(P.maxBodyLength=t.maxBodyLength);var R=M.request(P,function(k){if(!R.aborted){var F=k,Re=k.req||R;if(k.statusCode!==204&&Re.method!=="HEAD"&&t.decompress!==!1)switch(k.headers["content-encoding"]){case"gzip":case"compress":case"deflate":F=F.pipe(ph.createUnzip()),delete k.headers["content-encoding"];break}var Ne={status:k.statusCode,statusText:k.statusMessage,headers:k.headers,config:t,request:Re};if(t.responseType==="stream")Ne.data=F,oo(s,o,Ne);else{var ue=[],ye=0;F.on("data",function(ge){ue.push(ge),ye+=ge.length,t.maxContentLength>-1&&ye>t.maxContentLength&&(F.destroy(),o(or("maxContentLength size of "+t.maxContentLength+" exceeded",t,null,Re)))}),F.on("error",function(ge){R.aborted||o(vn(ge,t,null,Re))}),F.on("end",function(){var ge=Buffer.concat(ue);t.responseType!=="arraybuffer"&&(ge=ge.toString(t.responseEncoding),(!t.responseEncoding||t.responseEncoding==="utf8")&&(ge=wt.stripBOM(ge))),Ne.data=ge,oo(s,o,Ne)})}}});if(R.on("error",function(k){R.aborted&&k.code!=="ERR_FR_TOO_MANY_REDIRECTS"||o(vn(k,t,null,R))}),t.timeout){var L=parseInt(t.timeout,10);if(isNaN(L)){o(or("error trying to parse `config.timeout` to int",t,"ERR_PARSE_TIMEOUT",R));return}R.setTimeout(L,function(){R.abort(),o(or("timeout of "+L+"ms exceeded",t,t.transitional&&t.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",R))})}t.cancelToken&&t.cancelToken.promise.then(function(k){R.aborted||(R.abort(),o(k))}),wt.isStream(a)?a.on("error",function(k){o(vn(k,t,null,R))}).pipe(R):R.end(a)})}});var cr=v((b1,mo)=>{"use strict";var K=se(),ho=xs(),yh=Qt(),gh={"Content-Type":"application/x-www-form-urlencoded"};function po(e,t){!K.isUndefined(e)&&K.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function vh(){var e;return typeof XMLHttpRequest<"u"?e=Ls():typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]"&&(e=fo()),e}function bh(e,t,r){if(K.isString(e))try{return(t||JSON.parse)(e),K.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}var ar={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:vh(),transformRequest:[function(t,r){return ho(r,"Accept"),ho(r,"Content-Type"),K.isFormData(t)||K.isArrayBuffer(t)||K.isBuffer(t)||K.isStream(t)||K.isFile(t)||K.isBlob(t)?t:K.isArrayBufferView(t)?t.buffer:K.isURLSearchParams(t)?(po(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):K.isObject(t)||r&&r["Content-Type"]==="application/json"?(po(r,"application/json"),bh(t)):t}],transformResponse:[function(t){var r=this.transitional,n=r&&r.silentJSONParsing,i=r&&r.forcedJSONParsing,s=!n&&this.responseType==="json";if(s||i&&K.isString(t)&&t.length)try{return JSON.parse(t)}catch(o){if(s)throw o.name==="SyntaxError"?yh(o,this,"E_JSON_PARSE"):o}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};ar.headers={common:{Accept:"application/json, text/plain, */*"}};K.forEach(["delete","get","head"],function(t){ar.headers[t]={}});K.forEach(["post","put","patch"],function(t){ar.headers[t]=K.merge(gh)});mo.exports=ar});var go=v((w1,yo)=>{"use strict";var wh=se(),_h=cr();yo.exports=function(t,r,n){var i=this||_h;return wh.forEach(n,function(o){t=o.call(i,t,r)}),t}});var bn=v((_1,vo)=>{"use strict";vo.exports=function(t){return!!(t&&t.__CANCEL__)}});var _o=v((x1,wo)=>{"use strict";var bo=se(),wn=go(),xh=bn(),Eh=cr();function _n(e){e.cancelToken&&e.cancelToken.throwIfRequested()}wo.exports=function(t){_n(t),t.headers=t.headers||{},t.data=wn.call(t,t.data,t.headers,t.transformRequest),t.headers=bo.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),bo.forEach(["delete","get","head","post","put","patch","common"],function(i){delete t.headers[i]});var r=t.adapter||Eh.adapter;return r(t).then(function(i){return _n(t),i.data=wn.call(t,i.data,i.headers,t.transformResponse),i},function(i){return xh(i)||(_n(t),i&&i.response&&(i.response.data=wn.call(t,i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})}});var xn=v((E1,xo)=>{"use strict";var te=se();xo.exports=function(t,r){r=r||{};var n={},i=["url","method","data"],s=["headers","auth","proxy","params"],o=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function c(y,m){return te.isPlainObject(y)&&te.isPlainObject(m)?te.merge(y,m):te.isPlainObject(m)?te.merge({},m):te.isArray(m)?m.slice():m}function d(y){te.isUndefined(r[y])?te.isUndefined(t[y])||(n[y]=c(void 0,t[y])):n[y]=c(t[y],r[y])}te.forEach(i,function(m){te.isUndefined(r[m])||(n[m]=c(void 0,r[m]))}),te.forEach(s,d),te.forEach(o,function(m){te.isUndefined(r[m])?te.isUndefined(t[m])||(n[m]=c(void 0,t[m])):n[m]=c(void 0,r[m])}),te.forEach(a,function(m){m in r?n[m]=c(t[m],r[m]):m in t&&(n[m]=c(void 0,t[m]))});var h=i.concat(s).concat(o).concat(a),p=Object.keys(t).concat(Object.keys(r)).filter(function(m){return h.indexOf(m)===-1});return te.forEach(p,d),n}});var Ro=v((S1,Co)=>{"use strict";var So=gn(),En={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){En[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var Eo={},Sh=So.version.split(".");function ko(e,t){for(var r=t?t.split("."):Sh,n=e.split("."),i=0;i<3;i++){if(r[i]>n[i])return!0;if(r[i]<n[i])return!1}return!1}En.transitional=function(t,r,n){var i=r&&ko(r);function s(o,a){return"[Axios v"+So.version+"] Transitional option '"+o+"'"+a+(n?". "+n:"")}return function(o,a,c){if(t===!1)throw new Error(s(a," has been removed in "+r));return i&&!Eo[a]&&(Eo[a]=!0,console.warn(s(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(o,a,c):!0}};function kh(e,t,r){if(typeof e!="object")throw new TypeError("options must be an object");for(var n=Object.keys(e),i=n.length;i-- >0;){var s=n[i],o=t[s];if(o){var a=e[s],c=a===void 0||o(a,s,e);if(c!==!0)throw new TypeError("option "+s+" must be "+c);continue}if(r!==!0)throw Error("Unknown option "+s)}}Co.exports={isOlderVersion:ko,assertOptions:kh,validators:En}});var Fo=v((k1,Po)=>{"use strict";var Ao=se(),Ch=Xt(),Oo=ws(),qo=_o(),ur=xn(),Mo=Ro(),et=Mo.validators;function _t(e){this.defaults=e,this.interceptors={request:new Oo,response:new Oo}}_t.prototype.request=function(t){typeof t=="string"?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=ur(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;r!==void 0&&Mo.assertOptions(r,{silentJSONParsing:et.transitional(et.boolean,"1.0.0"),forcedJSONParsing:et.transitional(et.boolean,"1.0.0"),clarifyTimeoutError:et.transitional(et.boolean,"1.0.0")},!1);var n=[],i=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(t)===!1||(i=i&&y.synchronous,n.unshift(y.fulfilled,y.rejected))});var s=[];this.interceptors.response.forEach(function(y){s.push(y.fulfilled,y.rejected)});var o;if(!i){var a=[qo,void 0];for(Array.prototype.unshift.apply(a,n),a=a.concat(s),o=Promise.resolve(t);a.length;)o=o.then(a.shift(),a.shift());return o}for(var c=t;n.length;){var d=n.shift(),h=n.shift();try{c=d(c)}catch(p){h(p);break}}try{o=qo(c)}catch(p){return Promise.reject(p)}for(;s.length;)o=o.then(s.shift(),s.shift());return o};_t.prototype.getUri=function(t){return t=ur(this.defaults,t),Ch(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};Ao.forEach(["delete","get","head","options"],function(t){_t.prototype[t]=function(r,n){return this.request(ur(n||{},{method:t,url:r,data:(n||{}).data}))}});Ao.forEach(["post","put","patch"],function(t){_t.prototype[t]=function(r,n,i){return this.request(ur(i||{},{method:t,url:r,data:n}))}});Po.exports=_t});var kn=v((C1,To)=>{"use strict";function Sn(e){this.message=e}Sn.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};Sn.prototype.__CANCEL__=!0;To.exports=Sn});var Io=v((R1,No)=>{"use strict";var Rh=kn();function lr(e){if(typeof e!="function")throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(i){t=i});var r=this;e(function(i){r.reason||(r.reason=new Rh(i),t(r.reason))})}lr.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};lr.source=function(){var t,r=new lr(function(i){t=i});return{token:r,cancel:t}};No.exports=lr});var jo=v((O1,Do)=>{"use strict";Do.exports=function(t){return function(n){return t.apply(null,n)}}});var Bo=v((q1,Lo)=>{"use strict";Lo.exports=function(t){return typeof t=="object"&&t.isAxiosError===!0}});var Uo=v((A1,Cn)=>{"use strict";var $o=se(),Oh=Xr(),fr=Fo(),qh=xn(),Ah=cr();function Ho(e){var t=new fr(e),r=Oh(fr.prototype.request,t);return $o.extend(r,fr.prototype,t),$o.extend(r,t),r}var xe=Ho(Ah);xe.Axios=fr;xe.create=function(t){return Ho(qh(xe.defaults,t))};xe.Cancel=kn();xe.CancelToken=Io();xe.isCancel=bn();xe.all=function(t){return Promise.all(t)};xe.spread=jo();xe.isAxiosError=Bo();Cn.exports=xe;Cn.exports.default=xe});var Rn=v((M1,Go)=>{Go.exports=Uo()});var le=v(qn=>{"use strict";qn.fromCallback=function(e){return Object.defineProperty(function(...t){if(typeof t[t.length-1]=="function")e.apply(this,t);else return new Promise((r,n)=>{e.call(this,...t,(i,s)=>i!=null?n(i):r(s))})},"name",{value:e.name})};qn.fromPromise=function(e){return Object.defineProperty(function(...t){let r=t[t.length-1];if(typeof r!="function")return e.apply(this,t);e.apply(this,t.slice(0,-1)).then(n=>r(null,n),r)},"name",{value:e.name})}});var Vo=v((T1,Jo)=>{var Ae=require("constants"),Mh=process.cwd,dr=null,Ph=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return dr||(dr=Mh.call(process)),dr};try{process.cwd()}catch{}typeof process.chdir=="function"&&(An=process.chdir,process.chdir=function(e){dr=null,An.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,An));var An;Jo.exports=Fh;function Fh(e){Ae.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||r(e),e.chown=s(e.chown),e.fchown=s(e.fchown),e.lchown=s(e.lchown),e.chmod=n(e.chmod),e.fchmod=n(e.fchmod),e.lchmod=n(e.lchmod),e.chownSync=o(e.chownSync),e.fchownSync=o(e.fchownSync),e.lchownSync=o(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=a(e.stat),e.fstat=a(e.fstat),e.lstat=a(e.lstat),e.statSync=c(e.statSync),e.fstatSync=c(e.fstatSync),e.lstatSync=c(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(h,p,y){y&&process.nextTick(y)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(h,p,y,m){m&&process.nextTick(m)},e.lchownSync=function(){}),Ph==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(h){function p(y,m,w){var A=Date.now(),O=0;h(y,m,function N(S){if(S&&(S.code==="EACCES"||S.code==="EPERM")&&Date.now()-A<6e4){setTimeout(function(){e.stat(m,function(C,P){C&&C.code==="ENOENT"?h(y,m,N):w(S)})},O),O<100&&(O+=10);return}w&&w(S)})}return Object.setPrototypeOf&&Object.setPrototypeOf(p,h),p}(e.rename)),e.read=typeof e.read!="function"?e.read:function(h){function p(y,m,w,A,O,N){var S;if(N&&typeof N=="function"){var C=0;S=function(P,J,de){if(P&&P.code==="EAGAIN"&&C<10)return C++,h.call(e,y,m,w,A,O,S);N.apply(this,arguments)}}return h.call(e,y,m,w,A,O,S)}return Object.setPrototypeOf&&Object.setPrototypeOf(p,h),p}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(h){return function(p,y,m,w,A){for(var O=0;;)try{return h.call(e,p,y,m,w,A)}catch(N){if(N.code==="EAGAIN"&&O<10){O++;continue}throw N}}}(e.readSync);function t(h){h.lchmod=function(p,y,m){h.open(p,Ae.O_WRONLY|Ae.O_SYMLINK,y,function(w,A){if(w){m&&m(w);return}h.fchmod(A,y,function(O){h.close(A,function(N){m&&m(O||N)})})})},h.lchmodSync=function(p,y){var m=h.openSync(p,Ae.O_WRONLY|Ae.O_SYMLINK,y),w=!0,A;try{A=h.fchmodSync(m,y),w=!1}finally{if(w)try{h.closeSync(m)}catch{}else h.closeSync(m)}return A}}function r(h){Ae.hasOwnProperty("O_SYMLINK")&&h.futimes?(h.lutimes=function(p,y,m,w){h.open(p,Ae.O_SYMLINK,function(A,O){if(A){w&&w(A);return}h.futimes(O,y,m,function(N){h.close(O,function(S){w&&w(N||S)})})})},h.lutimesSync=function(p,y,m){var w=h.openSync(p,Ae.O_SYMLINK),A,O=!0;try{A=h.futimesSync(w,y,m),O=!1}finally{if(O)try{h.closeSync(w)}catch{}else h.closeSync(w)}return A}):h.futimes&&(h.lutimes=function(p,y,m,w){w&&process.nextTick(w)},h.lutimesSync=function(){})}function n(h){return h&&function(p,y,m){return h.call(e,p,y,function(w){d(w)&&(w=null),m&&m.apply(this,arguments)})}}function i(h){return h&&function(p,y){try{return h.call(e,p,y)}catch(m){if(!d(m))throw m}}}function s(h){return h&&function(p,y,m,w){return h.call(e,p,y,m,function(A){d(A)&&(A=null),w&&w.apply(this,arguments)})}}function o(h){return h&&function(p,y,m){try{return h.call(e,p,y,m)}catch(w){if(!d(w))throw w}}}function a(h){return h&&function(p,y,m){typeof y=="function"&&(m=y,y=null);function w(A,O){O&&(O.uid<0&&(O.uid+=4294967296),O.gid<0&&(O.gid+=4294967296)),m&&m.apply(this,arguments)}return y?h.call(e,p,y,w):h.call(e,p,w)}}function c(h){return h&&function(p,y){var m=y?h.call(e,p,y):h.call(e,p);return m&&(m.uid<0&&(m.uid+=4294967296),m.gid<0&&(m.gid+=4294967296)),m}}function d(h){if(!h||h.code==="ENOSYS")return!0;var p=!process.getuid||process.getuid()!==0;return!!(p&&(h.code==="EINVAL"||h.code==="EPERM"))}}});var Ko=v((N1,Xo)=>{var Yo=require("stream").Stream;Xo.exports=Th;function Th(e){return{ReadStream:t,WriteStream:r};function t(n,i){if(!(this instanceof t))return new t(n,i);Yo.call(this);var s=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var o=Object.keys(i),a=0,c=o.length;a<c;a++){var d=o[a];this[d]=i[d]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){s._read()});return}e.open(this.path,this.flags,this.mode,function(h,p){if(h){s.emit("error",h),s.readable=!1;return}s.fd=p,s.emit("open",p),s._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);Yo.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var s=Object.keys(i),o=0,a=s.length;o<a;o++){var c=s[o];this[c]=i[c]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var Zo=v((I1,Qo)=>{"use strict";Qo.exports=Ih;var Nh=Object.getPrototypeOf||function(e){return e.__proto__};function Ih(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:Nh(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}});var re=v((D1,Fn)=>{var G=require("fs"),Dh=Vo(),jh=Ko(),Lh=Zo(),pr=require("util"),Q,yr;typeof Symbol=="function"&&typeof Symbol.for=="function"?(Q=Symbol.for("graceful-fs.queue"),yr=Symbol.for("graceful-fs.previous")):(Q="___graceful-fs.queue",yr="___graceful-fs.previous");function Bh(){}function ra(e,t){Object.defineProperty(e,Q,{get:function(){return t}})}var $e=Bh;pr.debuglog?$e=pr.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&($e=function(){var e=pr.format.apply(pr,arguments);e="GFS4: "+e.split(/\n/).join(`
|
|
10
|
-
GFS4: `),console.error(e)});G[Q]||(ea=global[Q]||[],ra(G,ea),G.close=function(e){function t(r,n){return e.call(G,r,function(i){i||ta(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,yr,{value:e}),t}(G.close),G.closeSync=function(e){function t(r){e.apply(G,arguments),ta()}return Object.defineProperty(t,yr,{value:e}),t}(G.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){$e(G[Q]),require("assert").equal(G[Q].length,0)}));var ea;global[Q]||ra(global,G[Q]);Fn.exports=Mn(Lh(G));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!G.__patched&&(Fn.exports=Mn(G),G.__patched=!0);function Mn(e){Dh(e),e.gracefulify=Mn,e.createReadStream=J,e.createWriteStream=de;var t=e.readFile;e.readFile=r;function r(q,D,I){return typeof D=="function"&&(I=D,D=null),U(q,D,I);function U(M,H,R,L){return t(M,H,function(T){T&&(T.code==="EMFILE"||T.code==="ENFILE")?tt([U,[M,H,R],T,L||Date.now(),Date.now()]):typeof R=="function"&&R.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=i;function i(q,D,I,U){return typeof I=="function"&&(U=I,I=null),M(q,D,I,U);function M(H,R,L,T,k){return n(H,R,L,function(F){F&&(F.code==="EMFILE"||F.code==="ENFILE")?tt([M,[H,R,L,T],F,k||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}var s=e.appendFile;s&&(e.appendFile=o);function o(q,D,I,U){return typeof I=="function"&&(U=I,I=null),M(q,D,I,U);function M(H,R,L,T,k){return s(H,R,L,function(F){F&&(F.code==="EMFILE"||F.code==="ENFILE")?tt([M,[H,R,L,T],F,k||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}var a=e.copyFile;a&&(e.copyFile=c);function c(q,D,I,U){return typeof I=="function"&&(U=I,I=0),M(q,D,I,U);function M(H,R,L,T,k){return a(H,R,L,function(F){F&&(F.code==="EMFILE"||F.code==="ENFILE")?tt([M,[H,R,L,T],F,k||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}var d=e.readdir;e.readdir=p;var h=/^v[0-5]\./;function p(q,D,I){typeof D=="function"&&(I=D,D=null);var U=h.test(process.version)?function(R,L,T,k){return d(R,M(R,L,T,k))}:function(R,L,T,k){return d(R,L,M(R,L,T,k))};return U(q,D,I);function M(H,R,L,T){return function(k,F){k&&(k.code==="EMFILE"||k.code==="ENFILE")?tt([U,[H,R,L],k,T||Date.now(),Date.now()]):(F&&F.sort&&F.sort(),typeof L=="function"&&L.call(this,k,F))}}}if(process.version.substr(0,4)==="v0.8"){var y=jh(e);N=y.ReadStream,C=y.WriteStream}var m=e.ReadStream;m&&(N.prototype=Object.create(m.prototype),N.prototype.open=S);var w=e.WriteStream;w&&(C.prototype=Object.create(w.prototype),C.prototype.open=P),Object.defineProperty(e,"ReadStream",{get:function(){return N},set:function(q){N=q},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return C},set:function(q){C=q},enumerable:!0,configurable:!0});var A=N;Object.defineProperty(e,"FileReadStream",{get:function(){return A},set:function(q){A=q},enumerable:!0,configurable:!0});var O=C;Object.defineProperty(e,"FileWriteStream",{get:function(){return O},set:function(q){O=q},enumerable:!0,configurable:!0});function N(q,D){return this instanceof N?(m.apply(this,arguments),this):N.apply(Object.create(N.prototype),arguments)}function S(){var q=this;ce(q.path,q.flags,q.mode,function(D,I){D?(q.autoClose&&q.destroy(),q.emit("error",D)):(q.fd=I,q.emit("open",I),q.read())})}function C(q,D){return this instanceof C?(w.apply(this,arguments),this):C.apply(Object.create(C.prototype),arguments)}function P(){var q=this;ce(q.path,q.flags,q.mode,function(D,I){D?(q.destroy(),q.emit("error",D)):(q.fd=I,q.emit("open",I))})}function J(q,D){return new e.ReadStream(q,D)}function de(q,D){return new e.WriteStream(q,D)}var Ce=e.open;e.open=ce;function ce(q,D,I,U){return typeof I=="function"&&(U=I,I=null),M(q,D,I,U);function M(H,R,L,T,k){return Ce(H,R,L,function(F,Re){F&&(F.code==="EMFILE"||F.code==="ENFILE")?tt([M,[H,R,L,T],F,k||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}return e}function tt(e){$e("ENQUEUE",e[0].name,e[1]),G[Q].push(e),Pn()}var mr;function ta(){for(var e=Date.now(),t=0;t<G[Q].length;++t)G[Q][t].length>2&&(G[Q][t][3]=e,G[Q][t][4]=e);Pn()}function Pn(){if(clearTimeout(mr),mr=void 0,G[Q].length!==0){var e=G[Q].shift(),t=e[0],r=e[1],n=e[2],i=e[3],s=e[4];if(i===void 0)$e("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=6e4){$e("TIMEOUT",t.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-s,c=Math.max(s-i,1),d=Math.min(c*1.2,100);a>=d?($e("RETRY",t.name,r),t.apply(null,r.concat([i]))):G[Q].push(e)}mr===void 0&&(mr=setTimeout(Pn,0))}}});var xt=v(Me=>{"use strict";var na=le().fromCallback,oe=re(),$h=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(e=>typeof oe[e]=="function");Object.keys(oe).forEach(e=>{e!=="promises"&&(Me[e]=oe[e])});$h.forEach(e=>{Me[e]=na(oe[e])});Me.exists=function(e,t){return typeof t=="function"?oe.exists(e,t):new Promise(r=>oe.exists(e,r))};Me.read=function(e,t,r,n,i,s){return typeof s=="function"?oe.read(e,t,r,n,i,s):new Promise((o,a)=>{oe.read(e,t,r,n,i,(c,d,h)=>{if(c)return a(c);o({bytesRead:d,buffer:h})})})};Me.write=function(e,t,...r){return typeof r[r.length-1]=="function"?oe.write(e,t,...r):new Promise((n,i)=>{oe.write(e,t,...r,(s,o,a)=>{if(s)return i(s);n({bytesWritten:o,buffer:a})})})};typeof oe.writev=="function"&&(Me.writev=function(e,t,...r){return typeof r[r.length-1]=="function"?oe.writev(e,t,...r):new Promise((n,i)=>{oe.writev(e,t,...r,(s,o,a)=>{if(s)return i(s);n({bytesWritten:o,buffers:a})})})});typeof oe.realpath.native=="function"&&(Me.realpath.native=na(oe.realpath.native))});var Tn=v((L1,ia)=>{ia.exports=e=>{let t=process.versions.node.split(".").map(r=>parseInt(r,10));return e=e.split(".").map(r=>parseInt(r,10)),t[0]>e[0]||t[0]===e[0]&&(t[1]>e[1]||t[1]===e[1]&&t[2]>=e[2])}});var ua=v((B1,Nn)=>{"use strict";var rt=xt(),ke=require("path"),Hh=Tn(),sa=Hh("10.12.0"),oa=e=>{if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(ke.parse(e).root,""))){let r=new Error(`Path contains invalid characters: ${e}`);throw r.code="EINVAL",r}},aa=e=>{let t={mode:511};return typeof e=="number"&&(e={mode:e}),{...t,...e}},ca=e=>{let t=new Error(`operation not permitted, mkdir '${e}'`);return t.code="EPERM",t.errno=-4048,t.path=e,t.syscall="mkdir",t};Nn.exports.makeDir=async(e,t)=>{if(oa(e),t=aa(t),sa){let n=ke.resolve(e);return rt.mkdir(n,{mode:t.mode,recursive:!0})}let r=async n=>{try{await rt.mkdir(n,t.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(ke.dirname(n)===n)throw ca(n);if(i.message.includes("null bytes"))throw i;return await r(ke.dirname(n)),r(n)}try{if(!(await rt.stat(n)).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return r(ke.resolve(e))};Nn.exports.makeDirSync=(e,t)=>{if(oa(e),t=aa(t),sa){let n=ke.resolve(e);return rt.mkdirSync(n,{mode:t.mode,recursive:!0})}let r=n=>{try{rt.mkdirSync(n,t.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(ke.dirname(n)===n)throw ca(n);if(i.message.includes("null bytes"))throw i;return r(ke.dirname(n)),r(n)}try{if(!rt.statSync(n).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return r(ke.resolve(e))}});var Ee=v(($1,la)=>{"use strict";var Uh=le().fromPromise,{makeDir:Gh,makeDirSync:In}=ua(),Dn=Uh(Gh);la.exports={mkdirs:Dn,mkdirsSync:In,mkdirp:Dn,mkdirpSync:In,ensureDir:Dn,ensureDirSync:In}});var jn=v((H1,fa)=>{"use strict";var nt=re();function zh(e,t,r,n){nt.open(e,"r+",(i,s)=>{if(i)return n(i);nt.futimes(s,t,r,o=>{nt.close(s,a=>{n&&n(o||a)})})})}function Wh(e,t,r){let n=nt.openSync(e,"r+");return nt.futimesSync(n,t,r),nt.closeSync(n)}fa.exports={utimesMillis:zh,utimesMillisSync:Wh}});var Et=v((U1,ma)=>{"use strict";var it=xt(),fe=require("path"),Jh=require("util"),Vh=Tn(),gr=Vh("10.5.0"),ha=e=>gr?it.stat(e,{bigint:!0}):it.stat(e),Ln=e=>gr?it.statSync(e,{bigint:!0}):it.statSync(e);function Yh(e,t){return Promise.all([ha(e),ha(t).catch(r=>{if(r.code==="ENOENT")return null;throw r})]).then(([r,n])=>({srcStat:r,destStat:n}))}function Xh(e,t){let r,n=Ln(e);try{r=Ln(t)}catch(i){if(i.code==="ENOENT")return{srcStat:n,destStat:null};throw i}return{srcStat:n,destStat:r}}function Kh(e,t,r,n){Jh.callbackify(Yh)(e,t,(i,s)=>{if(i)return n(i);let{srcStat:o,destStat:a}=s;return a&&vr(o,a)?n(new Error("Source and destination must not be the same.")):o.isDirectory()&&Bn(e,t)?n(new Error(br(e,t,r))):n(null,{srcStat:o,destStat:a})})}function Qh(e,t,r){let{srcStat:n,destStat:i}=Xh(e,t);if(i&&vr(n,i))throw new Error("Source and destination must not be the same.");if(n.isDirectory()&&Bn(e,t))throw new Error(br(e,t,r));return{srcStat:n,destStat:i}}function da(e,t,r,n,i){let s=fe.resolve(fe.dirname(e)),o=fe.resolve(fe.dirname(r));if(o===s||o===fe.parse(o).root)return i();let a=(c,d)=>c?c.code==="ENOENT"?i():i(c):vr(t,d)?i(new Error(br(e,r,n))):da(e,t,o,n,i);gr?it.stat(o,{bigint:!0},a):it.stat(o,a)}function pa(e,t,r,n){let i=fe.resolve(fe.dirname(e)),s=fe.resolve(fe.dirname(r));if(s===i||s===fe.parse(s).root)return;let o;try{o=Ln(s)}catch(a){if(a.code==="ENOENT")return;throw a}if(vr(t,o))throw new Error(br(e,r,n));return pa(e,t,s,n)}function vr(e,t){return!!(t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev&&(gr||t.ino<Number.MAX_SAFE_INTEGER||t.size===e.size&&t.mode===e.mode&&t.nlink===e.nlink&&t.atimeMs===e.atimeMs&&t.mtimeMs===e.mtimeMs&&t.ctimeMs===e.ctimeMs&&t.birthtimeMs===e.birthtimeMs))}function Bn(e,t){let r=fe.resolve(e).split(fe.sep).filter(i=>i),n=fe.resolve(t).split(fe.sep).filter(i=>i);return r.reduce((i,s,o)=>i&&n[o]===s,!0)}function br(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}ma.exports={checkPaths:Kh,checkPathsSync:Qh,checkParentPaths:da,checkParentPathsSync:pa,isSrcSubdir:Bn}});var wa=v((G1,ba)=>{"use strict";var ne=re(),St=require("path"),Zh=Ee().mkdirsSync,e0=jn().utimesMillisSync,kt=Et();function t0(e,t,r){typeof r=="function"&&(r={filter:r}),r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
8
|
+
`)}function Yf(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function Xf(){return process.env.DEBUG}function Kf(e){e.inspectOpts={};let t=Object.keys(X.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=X.inspectOpts[t[r]]}sr.exports=an()(X);var{formatters:Ys}=sr.exports;Ys.o=function(e){return this.inspectOpts.colors=this.useColors,ir.inspect(e,this.inspectOpts).split(`
|
|
9
|
+
`).map(t=>t.trim()).join(" ")};Ys.O=function(e){return this.inspectOpts.colors=this.useColors,ir.inspect(e,this.inspectOpts)}});var Ks=v((m1,fn)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?fn.exports=Gs():fn.exports=Xs()});var Zs=v((y1,Qs)=>{var vt;Qs.exports=function(){if(!vt){try{vt=Ks()("follow-redirects")}catch{}typeof vt!="function"&&(vt=function(){})}vt.apply(null,arguments)}});var gn=v((g1,yn)=>{var Le=require("url"),hn=Le.URL,Qf=require("http"),Zf=require("https"),ro=require("stream").Writable,no=require("assert"),io=Zs(),pn=["abort","aborted","connect","error","socket","timeout"],mn=Object.create(null);pn.forEach(function(e){mn[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}});var eh=wt("ERR_INVALID_URL","Invalid URL",TypeError),eo=wt("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),th=wt("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),rh=wt("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),nh=wt("ERR_STREAM_WRITE_AFTER_END","write after end");function me(e,t){ro.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var r=this;this._onNativeResponse=function(n){r._processResponse(n)},this._performRequest()}me.prototype=Object.create(ro.prototype);me.prototype.abort=function(){oo(this._currentRequest),this.emit("abort")};me.prototype.write=function(e,t,r){if(this._ending)throw new nh;if(!Be(e)&&!oh(e))throw new TypeError("data should be a string, Buffer or Uint8Array");if(bt(t)&&(r=t,t=null),e.length===0){r&&r();return}this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new rh),this.abort())};me.prototype.end=function(e,t,r){if(bt(e)?(r=e,e=t=null):bt(t)&&(r=t,t=null),!e)this._ended=this._ending=!0,this._currentRequest.end(null,null,r);else{var n=this,i=this._currentRequest;this.write(e,t,function(){n._ended=!0,i.end(null,null,r)}),this._ending=!0}};me.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)};me.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)};me.prototype.setTimeout=function(e,t){var r=this;function n(o){o.setTimeout(e),o.removeListener("timeout",o.destroy),o.addListener("timeout",o.destroy)}function i(o){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout(function(){r.emit("timeout"),s()},e),n(o)}function s(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",s),r.removeListener("error",s),r.removeListener("response",s),t&&r.removeListener("timeout",t),r.socket||r._currentRequest.removeListener("socket",i)}return t&&this.on("timeout",t),this.socket?i(this.socket):this._currentRequest.once("socket",i),this.on("socket",n),this.on("abort",s),this.on("error",s),this.on("response",s),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){me.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}});["aborted","connection","socket"].forEach(function(e){Object.defineProperty(me.prototype,e,{get:function(){return this._currentRequest[e]}})});me.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}};me.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t){this.emit("error",new TypeError("Unsupported protocol "+e));return}if(this._options.agents){var r=e.slice(0,-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=t.request(this._options,this._onNativeResponse);n._redirectable=this;for(var i of pn)n.on(i,mn[i]);if(this._currentUrl=/^\//.test(this._options.path)?Le.format(this._options):this._options.path,this._isRedirect){var s=0,o=this,a=this._requestBodyBuffers;(function c(d){if(n===o._currentRequest)if(d)o.emit("error",d);else if(s<a.length){var h=a[s++];n.finished||n.write(h.data,h.encoding,c)}else o._ended&&n.end()})()}};me.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var r=e.headers.location;if(!r||this._options.followRedirects===!1||t<300||t>=400){e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[];return}if(oo(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects){this.emit("error",new th);return}var n,i=this._options.beforeRedirect;i&&(n=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var s=this._options.method;((t===301||t===302)&&this._options.method==="POST"||t===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],dn(/^content-/i,this._options.headers));var o=dn(/^host$/i,this._options.headers),a=Le.parse(this._currentUrl),c=o||a.host,d=/^\w+:/.test(r)?this._currentUrl:Le.format(Object.assign(a,{host:c})),h;try{h=Le.resolve(d,r)}catch(w){this.emit("error",new eo({cause:w}));return}io("redirecting to",h),this._isRedirect=!0;var p=Le.parse(h);if(Object.assign(this._options,p),(p.protocol!==a.protocol&&p.protocol!=="https:"||p.host!==c&&!sh(p.host,c))&&dn(/^(?:authorization|cookie)$/i,this._options.headers),bt(i)){var y={headers:e.headers,statusCode:t},m={url:d,method:s,headers:n};try{i(this._options,y,m)}catch(w){this.emit("error",w);return}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(w){this.emit("error",new eo({cause:w}))}};function so(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach(function(n){var i=n+":",s=r[i]=e[n],o=t[n]=Object.create(s);function a(d,h,p){if(Be(d)){var y;try{y=to(new hn(d))}catch{y=Le.parse(d)}if(!Be(y.protocol))throw new eh({input:d});d=y}else hn&&d instanceof hn?d=to(d):(p=h,h=d,d={protocol:i});return bt(h)&&(p=h,h=null),h=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},d,h),h.nativeProtocols=r,!Be(h.host)&&!Be(h.hostname)&&(h.hostname="::1"),no.equal(h.protocol,i,"protocol mismatch"),io("options",h),new me(h,p)}function c(d,h,p){var y=o.request(d,h,p);return y.end(),y}Object.defineProperties(o,{request:{value:a,configurable:!0,enumerable:!0,writable:!0},get:{value:c,configurable:!0,enumerable:!0,writable:!0}})}),t}function ih(){}function to(e){var t={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:e.pathname+e.search,href:e.href};return e.port!==""&&(t.port=Number(e.port)),t}function dn(e,t){var r;for(var n in t)e.test(n)&&(r=t[n],delete t[n]);return r===null||typeof r>"u"?void 0:String(r).trim()}function wt(e,t,r){function n(i){Error.captureStackTrace(this,this.constructor),Object.assign(this,i||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return n.prototype=new(r||Error),n.prototype.constructor=n,n.prototype.name="Error ["+e+"]",n}function oo(e){for(var t of pn)e.removeListener(t,mn[t]);e.on("error",ih),e.abort()}function sh(e,t){no(Be(e)&&Be(t));var r=e.length-t.length-1;return r>0&&e[r]==="."&&e.endsWith(t)}function Be(e){return typeof e=="string"||e instanceof String}function bt(e){return typeof e=="function"}function oh(e){return typeof e=="object"&&"length"in e}yn.exports=so({http:Qf,https:Zf});yn.exports.wrap=so});var vn=v((v1,ah)=>{ah.exports={name:"axios",version:"0.21.4",description:"Promise based HTTP client for the browser and node.js",main:"index.js",scripts:{test:"grunt test",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},repository:{type:"git",url:"https://github.com/axios/axios.git"},keywords:["xhr","http","ajax","promise","node"],author:"Matt Zabriskie",license:"MIT",bugs:{url:"https://github.com/axios/axios/issues"},homepage:"https://axios-http.com",devDependencies:{coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},browser:{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},jsdelivr:"dist/axios.min.js",unpkg:"dist/axios.min.js",typings:"./index.d.ts",dependencies:{"follow-redirects":"^1.14.0"},bundlesize:[{path:"./dist/axios.min.js",threshold:"5kB"}]}});var ho=v((b1,fo)=>{"use strict";var _t=se(),ao=rn(),ch=nn(),uh=Xt(),lh=require("http"),fh=require("https"),hh=gn().http,dh=gn().https,co=require("url"),ph=require("zlib"),mh=vn(),or=Zt(),bn=Qt(),uo=/https:?/;function lo(e,t,r){if(e.hostname=t.host,e.host=t.host,e.port=t.port,e.path=r,t.auth){var n=Buffer.from(t.auth.username+":"+t.auth.password,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+n}e.beforeRedirect=function(s){s.headers.host=s.host,lo(s,t,s.href)}}fo.exports=function(t){return new Promise(function(n,i){var s=function(k){n(k)},o=function(k){i(k)},a=t.data,c=t.headers;if("User-Agent"in c||"user-agent"in c?!c["User-Agent"]&&!c["user-agent"]&&(delete c["User-Agent"],delete c["user-agent"]):c["User-Agent"]="axios/"+mh.version,a&&!_t.isStream(a)){if(!Buffer.isBuffer(a))if(_t.isArrayBuffer(a))a=Buffer.from(new Uint8Array(a));else if(_t.isString(a))a=Buffer.from(a,"utf-8");else return o(or("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",t));c["Content-Length"]=a.length}var d=void 0;if(t.auth){var h=t.auth.username||"",p=t.auth.password||"";d=h+":"+p}var y=ch(t.baseURL,t.url),m=co.parse(y),w=m.protocol||"http:";if(!d&&m.auth){var q=m.auth.split(":"),O=q[0]||"",I=q[1]||"";d=O+":"+I}d&&delete c.Authorization;var S=uo.test(w),C=S?t.httpsAgent:t.httpAgent,P={path:uh(m.path,t.params,t.paramsSerializer).replace(/^\?/,""),method:t.method.toUpperCase(),headers:c,agent:C,agents:{http:t.httpAgent,https:t.httpsAgent},auth:d};t.socketPath?P.socketPath=t.socketPath:(P.hostname=m.hostname,P.port=m.port);var J=t.proxy;if(!J&&J!==!1){var de=w.slice(0,-1)+"_proxy",Se=process.env[de]||process.env[de.toUpperCase()];if(Se){var ce=co.parse(Se),A=process.env.no_proxy||process.env.NO_PROXY,D=!0;if(A){var N=A.split(",").map(function(k){return k.trim()});D=!N.some(function(k){return k?k==="*"||k[0]==="."&&m.hostname.substr(m.hostname.length-k.length)===k?!0:m.hostname===k:!1})}if(D&&(J={host:ce.hostname,port:ce.port,protocol:ce.protocol},ce.auth)){var U=ce.auth.split(":");J.auth={username:U[0],password:U[1]}}}}J&&(P.headers.host=m.hostname+(m.port?":"+m.port:""),lo(P,J,w+"//"+m.hostname+(m.port?":"+m.port:"")+P.path));var M,H=S&&(J?uo.test(J.protocol):!0);t.transport?M=t.transport:t.maxRedirects===0?M=H?fh:lh:(t.maxRedirects&&(P.maxRedirects=t.maxRedirects),M=H?dh:hh),t.maxBodyLength>-1&&(P.maxBodyLength=t.maxBodyLength);var R=M.request(P,function(k){if(!R.aborted){var F=k,Re=k.req||R;if(k.statusCode!==204&&Re.method!=="HEAD"&&t.decompress!==!1)switch(k.headers["content-encoding"]){case"gzip":case"compress":case"deflate":F=F.pipe(ph.createUnzip()),delete k.headers["content-encoding"];break}var Ie={status:k.statusCode,statusText:k.statusMessage,headers:k.headers,config:t,request:Re};if(t.responseType==="stream")Ie.data=F,ao(s,o,Ie);else{var ue=[],ye=0;F.on("data",function(ge){ue.push(ge),ye+=ge.length,t.maxContentLength>-1&&ye>t.maxContentLength&&(F.destroy(),o(or("maxContentLength size of "+t.maxContentLength+" exceeded",t,null,Re)))}),F.on("error",function(ge){R.aborted||o(bn(ge,t,null,Re))}),F.on("end",function(){var ge=Buffer.concat(ue);t.responseType!=="arraybuffer"&&(ge=ge.toString(t.responseEncoding),(!t.responseEncoding||t.responseEncoding==="utf8")&&(ge=_t.stripBOM(ge))),Ie.data=ge,ao(s,o,Ie)})}}});if(R.on("error",function(k){R.aborted&&k.code!=="ERR_FR_TOO_MANY_REDIRECTS"||o(bn(k,t,null,R))}),t.timeout){var L=parseInt(t.timeout,10);if(isNaN(L)){o(or("error trying to parse `config.timeout` to int",t,"ERR_PARSE_TIMEOUT",R));return}R.setTimeout(L,function(){R.abort(),o(or("timeout of "+L+"ms exceeded",t,t.transitional&&t.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",R))})}t.cancelToken&&t.cancelToken.promise.then(function(k){R.aborted||(R.abort(),o(k))}),_t.isStream(a)?a.on("error",function(k){o(bn(k,t,null,R))}).pipe(R):R.end(a)})}});var cr=v((w1,yo)=>{"use strict";var K=se(),po=Es(),yh=Qt(),gh={"Content-Type":"application/x-www-form-urlencoded"};function mo(e,t){!K.isUndefined(e)&&K.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function vh(){var e;return typeof XMLHttpRequest<"u"?e=Bs():typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]"&&(e=ho()),e}function bh(e,t,r){if(K.isString(e))try{return(t||JSON.parse)(e),K.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}var ar={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:vh(),transformRequest:[function(t,r){return po(r,"Accept"),po(r,"Content-Type"),K.isFormData(t)||K.isArrayBuffer(t)||K.isBuffer(t)||K.isStream(t)||K.isFile(t)||K.isBlob(t)?t:K.isArrayBufferView(t)?t.buffer:K.isURLSearchParams(t)?(mo(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):K.isObject(t)||r&&r["Content-Type"]==="application/json"?(mo(r,"application/json"),bh(t)):t}],transformResponse:[function(t){var r=this.transitional,n=r&&r.silentJSONParsing,i=r&&r.forcedJSONParsing,s=!n&&this.responseType==="json";if(s||i&&K.isString(t)&&t.length)try{return JSON.parse(t)}catch(o){if(s)throw o.name==="SyntaxError"?yh(o,this,"E_JSON_PARSE"):o}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};ar.headers={common:{Accept:"application/json, text/plain, */*"}};K.forEach(["delete","get","head"],function(t){ar.headers[t]={}});K.forEach(["post","put","patch"],function(t){ar.headers[t]=K.merge(gh)});yo.exports=ar});var vo=v((_1,go)=>{"use strict";var wh=se(),_h=cr();go.exports=function(t,r,n){var i=this||_h;return wh.forEach(n,function(o){t=o.call(i,t,r)}),t}});var wn=v((x1,bo)=>{"use strict";bo.exports=function(t){return!!(t&&t.__CANCEL__)}});var xo=v((E1,_o)=>{"use strict";var wo=se(),_n=vo(),xh=wn(),Eh=cr();function xn(e){e.cancelToken&&e.cancelToken.throwIfRequested()}_o.exports=function(t){xn(t),t.headers=t.headers||{},t.data=_n.call(t,t.data,t.headers,t.transformRequest),t.headers=wo.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),wo.forEach(["delete","get","head","post","put","patch","common"],function(i){delete t.headers[i]});var r=t.adapter||Eh.adapter;return r(t).then(function(i){return xn(t),i.data=_n.call(t,i.data,i.headers,t.transformResponse),i},function(i){return xh(i)||(xn(t),i&&i.response&&(i.response.data=_n.call(t,i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})}});var En=v((S1,Eo)=>{"use strict";var te=se();Eo.exports=function(t,r){r=r||{};var n={},i=["url","method","data"],s=["headers","auth","proxy","params"],o=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function c(y,m){return te.isPlainObject(y)&&te.isPlainObject(m)?te.merge(y,m):te.isPlainObject(m)?te.merge({},m):te.isArray(m)?m.slice():m}function d(y){te.isUndefined(r[y])?te.isUndefined(t[y])||(n[y]=c(void 0,t[y])):n[y]=c(t[y],r[y])}te.forEach(i,function(m){te.isUndefined(r[m])||(n[m]=c(void 0,r[m]))}),te.forEach(s,d),te.forEach(o,function(m){te.isUndefined(r[m])?te.isUndefined(t[m])||(n[m]=c(void 0,t[m])):n[m]=c(void 0,r[m])}),te.forEach(a,function(m){m in r?n[m]=c(t[m],r[m]):m in t&&(n[m]=c(void 0,t[m]))});var h=i.concat(s).concat(o).concat(a),p=Object.keys(t).concat(Object.keys(r)).filter(function(m){return h.indexOf(m)===-1});return te.forEach(p,d),n}});var Oo=v((k1,Ro)=>{"use strict";var ko=vn(),Sn={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){Sn[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var So={},Sh=ko.version.split(".");function Co(e,t){for(var r=t?t.split("."):Sh,n=e.split("."),i=0;i<3;i++){if(r[i]>n[i])return!0;if(r[i]<n[i])return!1}return!1}Sn.transitional=function(t,r,n){var i=r&&Co(r);function s(o,a){return"[Axios v"+ko.version+"] Transitional option '"+o+"'"+a+(n?". "+n:"")}return function(o,a,c){if(t===!1)throw new Error(s(a," has been removed in "+r));return i&&!So[a]&&(So[a]=!0,console.warn(s(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(o,a,c):!0}};function kh(e,t,r){if(typeof e!="object")throw new TypeError("options must be an object");for(var n=Object.keys(e),i=n.length;i-- >0;){var s=n[i],o=t[s];if(o){var a=e[s],c=a===void 0||o(a,s,e);if(c!==!0)throw new TypeError("option "+s+" must be "+c);continue}if(r!==!0)throw Error("Unknown option "+s)}}Ro.exports={isOlderVersion:Co,assertOptions:kh,validators:Sn}});var To=v((C1,Fo)=>{"use strict";var Mo=se(),Ch=Xt(),Ao=_s(),qo=xo(),ur=En(),Po=Oo(),et=Po.validators;function xt(e){this.defaults=e,this.interceptors={request:new Ao,response:new Ao}}xt.prototype.request=function(t){typeof t=="string"?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=ur(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;r!==void 0&&Po.assertOptions(r,{silentJSONParsing:et.transitional(et.boolean,"1.0.0"),forcedJSONParsing:et.transitional(et.boolean,"1.0.0"),clarifyTimeoutError:et.transitional(et.boolean,"1.0.0")},!1);var n=[],i=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(t)===!1||(i=i&&y.synchronous,n.unshift(y.fulfilled,y.rejected))});var s=[];this.interceptors.response.forEach(function(y){s.push(y.fulfilled,y.rejected)});var o;if(!i){var a=[qo,void 0];for(Array.prototype.unshift.apply(a,n),a=a.concat(s),o=Promise.resolve(t);a.length;)o=o.then(a.shift(),a.shift());return o}for(var c=t;n.length;){var d=n.shift(),h=n.shift();try{c=d(c)}catch(p){h(p);break}}try{o=qo(c)}catch(p){return Promise.reject(p)}for(;s.length;)o=o.then(s.shift(),s.shift());return o};xt.prototype.getUri=function(t){return t=ur(this.defaults,t),Ch(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};Mo.forEach(["delete","get","head","options"],function(t){xt.prototype[t]=function(r,n){return this.request(ur(n||{},{method:t,url:r,data:(n||{}).data}))}});Mo.forEach(["post","put","patch"],function(t){xt.prototype[t]=function(r,n,i){return this.request(ur(i||{},{method:t,url:r,data:n}))}});Fo.exports=xt});var Cn=v((R1,Io)=>{"use strict";function kn(e){this.message=e}kn.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};kn.prototype.__CANCEL__=!0;Io.exports=kn});var Do=v((O1,No)=>{"use strict";var Rh=Cn();function lr(e){if(typeof e!="function")throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(i){t=i});var r=this;e(function(i){r.reason||(r.reason=new Rh(i),t(r.reason))})}lr.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};lr.source=function(){var t,r=new lr(function(i){t=i});return{token:r,cancel:t}};No.exports=lr});var Lo=v((A1,jo)=>{"use strict";jo.exports=function(t){return function(n){return t.apply(null,n)}}});var $o=v((q1,Bo)=>{"use strict";Bo.exports=function(t){return typeof t=="object"&&t.isAxiosError===!0}});var Go=v((M1,Rn)=>{"use strict";var Ho=se(),Oh=Kr(),fr=To(),Ah=En(),qh=cr();function Uo(e){var t=new fr(e),r=Oh(fr.prototype.request,t);return Ho.extend(r,fr.prototype,t),Ho.extend(r,t),r}var xe=Uo(qh);xe.Axios=fr;xe.create=function(t){return Uo(Ah(xe.defaults,t))};xe.Cancel=Cn();xe.CancelToken=Do();xe.isCancel=wn();xe.all=function(t){return Promise.all(t)};xe.spread=Lo();xe.isAxiosError=$o();Rn.exports=xe;Rn.exports.default=xe});var On=v((P1,zo)=>{zo.exports=Go()});var le=v(qn=>{"use strict";qn.fromCallback=function(e){return Object.defineProperty(function(...t){if(typeof t[t.length-1]=="function")e.apply(this,t);else return new Promise((r,n)=>{e.call(this,...t,(i,s)=>i!=null?n(i):r(s))})},"name",{value:e.name})};qn.fromPromise=function(e){return Object.defineProperty(function(...t){let r=t[t.length-1];if(typeof r!="function")return e.apply(this,t);e.apply(this,t.slice(0,-1)).then(n=>r(null,n),r)},"name",{value:e.name})}});var Yo=v((I1,Vo)=>{var qe=require("constants"),Mh=process.cwd,dr=null,Ph=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return dr||(dr=Mh.call(process)),dr};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Mn=process.chdir,process.chdir=function(e){dr=null,Mn.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Mn));var Mn;Vo.exports=Fh;function Fh(e){qe.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||r(e),e.chown=s(e.chown),e.fchown=s(e.fchown),e.lchown=s(e.lchown),e.chmod=n(e.chmod),e.fchmod=n(e.fchmod),e.lchmod=n(e.lchmod),e.chownSync=o(e.chownSync),e.fchownSync=o(e.fchownSync),e.lchownSync=o(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=a(e.stat),e.fstat=a(e.fstat),e.lstat=a(e.lstat),e.statSync=c(e.statSync),e.fstatSync=c(e.fstatSync),e.lstatSync=c(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(h,p,y){y&&process.nextTick(y)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(h,p,y,m){m&&process.nextTick(m)},e.lchownSync=function(){}),Ph==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(h){function p(y,m,w){var q=Date.now(),O=0;h(y,m,function I(S){if(S&&(S.code==="EACCES"||S.code==="EPERM")&&Date.now()-q<6e4){setTimeout(function(){e.stat(m,function(C,P){C&&C.code==="ENOENT"?h(y,m,I):w(S)})},O),O<100&&(O+=10);return}w&&w(S)})}return Object.setPrototypeOf&&Object.setPrototypeOf(p,h),p}(e.rename)),e.read=typeof e.read!="function"?e.read:function(h){function p(y,m,w,q,O,I){var S;if(I&&typeof I=="function"){var C=0;S=function(P,J,de){if(P&&P.code==="EAGAIN"&&C<10)return C++,h.call(e,y,m,w,q,O,S);I.apply(this,arguments)}}return h.call(e,y,m,w,q,O,S)}return Object.setPrototypeOf&&Object.setPrototypeOf(p,h),p}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(h){return function(p,y,m,w,q){for(var O=0;;)try{return h.call(e,p,y,m,w,q)}catch(I){if(I.code==="EAGAIN"&&O<10){O++;continue}throw I}}}(e.readSync);function t(h){h.lchmod=function(p,y,m){h.open(p,qe.O_WRONLY|qe.O_SYMLINK,y,function(w,q){if(w){m&&m(w);return}h.fchmod(q,y,function(O){h.close(q,function(I){m&&m(O||I)})})})},h.lchmodSync=function(p,y){var m=h.openSync(p,qe.O_WRONLY|qe.O_SYMLINK,y),w=!0,q;try{q=h.fchmodSync(m,y),w=!1}finally{if(w)try{h.closeSync(m)}catch{}else h.closeSync(m)}return q}}function r(h){qe.hasOwnProperty("O_SYMLINK")&&h.futimes?(h.lutimes=function(p,y,m,w){h.open(p,qe.O_SYMLINK,function(q,O){if(q){w&&w(q);return}h.futimes(O,y,m,function(I){h.close(O,function(S){w&&w(I||S)})})})},h.lutimesSync=function(p,y,m){var w=h.openSync(p,qe.O_SYMLINK),q,O=!0;try{q=h.futimesSync(w,y,m),O=!1}finally{if(O)try{h.closeSync(w)}catch{}else h.closeSync(w)}return q}):h.futimes&&(h.lutimes=function(p,y,m,w){w&&process.nextTick(w)},h.lutimesSync=function(){})}function n(h){return h&&function(p,y,m){return h.call(e,p,y,function(w){d(w)&&(w=null),m&&m.apply(this,arguments)})}}function i(h){return h&&function(p,y){try{return h.call(e,p,y)}catch(m){if(!d(m))throw m}}}function s(h){return h&&function(p,y,m,w){return h.call(e,p,y,m,function(q){d(q)&&(q=null),w&&w.apply(this,arguments)})}}function o(h){return h&&function(p,y,m){try{return h.call(e,p,y,m)}catch(w){if(!d(w))throw w}}}function a(h){return h&&function(p,y,m){typeof y=="function"&&(m=y,y=null);function w(q,O){O&&(O.uid<0&&(O.uid+=4294967296),O.gid<0&&(O.gid+=4294967296)),m&&m.apply(this,arguments)}return y?h.call(e,p,y,w):h.call(e,p,w)}}function c(h){return h&&function(p,y){var m=y?h.call(e,p,y):h.call(e,p);return m&&(m.uid<0&&(m.uid+=4294967296),m.gid<0&&(m.gid+=4294967296)),m}}function d(h){if(!h||h.code==="ENOSYS")return!0;var p=!process.getuid||process.getuid()!==0;return!!(p&&(h.code==="EINVAL"||h.code==="EPERM"))}}});var Qo=v((N1,Ko)=>{var Xo=require("stream").Stream;Ko.exports=Th;function Th(e){return{ReadStream:t,WriteStream:r};function t(n,i){if(!(this instanceof t))return new t(n,i);Xo.call(this);var s=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var o=Object.keys(i),a=0,c=o.length;a<c;a++){var d=o[a];this[d]=i[d]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){s._read()});return}e.open(this.path,this.flags,this.mode,function(h,p){if(h){s.emit("error",h),s.readable=!1;return}s.fd=p,s.emit("open",p),s._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);Xo.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var s=Object.keys(i),o=0,a=s.length;o<a;o++){var c=s[o];this[c]=i[c]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var ea=v((D1,Zo)=>{"use strict";Zo.exports=Nh;var Ih=Object.getPrototypeOf||function(e){return e.__proto__};function Nh(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:Ih(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}});var re=v((j1,Tn)=>{var G=require("fs"),Dh=Yo(),jh=Qo(),Lh=ea(),pr=require("util"),Q,yr;typeof Symbol=="function"&&typeof Symbol.for=="function"?(Q=Symbol.for("graceful-fs.queue"),yr=Symbol.for("graceful-fs.previous")):(Q="___graceful-fs.queue",yr="___graceful-fs.previous");function Bh(){}function na(e,t){Object.defineProperty(e,Q,{get:function(){return t}})}var $e=Bh;pr.debuglog?$e=pr.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&($e=function(){var e=pr.format.apply(pr,arguments);e="GFS4: "+e.split(/\n/).join(`
|
|
10
|
+
GFS4: `),console.error(e)});G[Q]||(ta=global[Q]||[],na(G,ta),G.close=function(e){function t(r,n){return e.call(G,r,function(i){i||ra(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,yr,{value:e}),t}(G.close),G.closeSync=function(e){function t(r){e.apply(G,arguments),ra()}return Object.defineProperty(t,yr,{value:e}),t}(G.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){$e(G[Q]),require("assert").equal(G[Q].length,0)}));var ta;global[Q]||na(global,G[Q]);Tn.exports=Pn(Lh(G));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!G.__patched&&(Tn.exports=Pn(G),G.__patched=!0);function Pn(e){Dh(e),e.gracefulify=Pn,e.createReadStream=J,e.createWriteStream=de;var t=e.readFile;e.readFile=r;function r(A,D,N){return typeof D=="function"&&(N=D,D=null),U(A,D,N);function U(M,H,R,L){return t(M,H,function(T){T&&(T.code==="EMFILE"||T.code==="ENFILE")?tt([U,[M,H,R],T,L||Date.now(),Date.now()]):typeof R=="function"&&R.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=i;function i(A,D,N,U){return typeof N=="function"&&(U=N,N=null),M(A,D,N,U);function M(H,R,L,T,k){return n(H,R,L,function(F){F&&(F.code==="EMFILE"||F.code==="ENFILE")?tt([M,[H,R,L,T],F,k||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}var s=e.appendFile;s&&(e.appendFile=o);function o(A,D,N,U){return typeof N=="function"&&(U=N,N=null),M(A,D,N,U);function M(H,R,L,T,k){return s(H,R,L,function(F){F&&(F.code==="EMFILE"||F.code==="ENFILE")?tt([M,[H,R,L,T],F,k||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}var a=e.copyFile;a&&(e.copyFile=c);function c(A,D,N,U){return typeof N=="function"&&(U=N,N=0),M(A,D,N,U);function M(H,R,L,T,k){return a(H,R,L,function(F){F&&(F.code==="EMFILE"||F.code==="ENFILE")?tt([M,[H,R,L,T],F,k||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}var d=e.readdir;e.readdir=p;var h=/^v[0-5]\./;function p(A,D,N){typeof D=="function"&&(N=D,D=null);var U=h.test(process.version)?function(R,L,T,k){return d(R,M(R,L,T,k))}:function(R,L,T,k){return d(R,L,M(R,L,T,k))};return U(A,D,N);function M(H,R,L,T){return function(k,F){k&&(k.code==="EMFILE"||k.code==="ENFILE")?tt([U,[H,R,L],k,T||Date.now(),Date.now()]):(F&&F.sort&&F.sort(),typeof L=="function"&&L.call(this,k,F))}}}if(process.version.substr(0,4)==="v0.8"){var y=jh(e);I=y.ReadStream,C=y.WriteStream}var m=e.ReadStream;m&&(I.prototype=Object.create(m.prototype),I.prototype.open=S);var w=e.WriteStream;w&&(C.prototype=Object.create(w.prototype),C.prototype.open=P),Object.defineProperty(e,"ReadStream",{get:function(){return I},set:function(A){I=A},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return C},set:function(A){C=A},enumerable:!0,configurable:!0});var q=I;Object.defineProperty(e,"FileReadStream",{get:function(){return q},set:function(A){q=A},enumerable:!0,configurable:!0});var O=C;Object.defineProperty(e,"FileWriteStream",{get:function(){return O},set:function(A){O=A},enumerable:!0,configurable:!0});function I(A,D){return this instanceof I?(m.apply(this,arguments),this):I.apply(Object.create(I.prototype),arguments)}function S(){var A=this;ce(A.path,A.flags,A.mode,function(D,N){D?(A.autoClose&&A.destroy(),A.emit("error",D)):(A.fd=N,A.emit("open",N),A.read())})}function C(A,D){return this instanceof C?(w.apply(this,arguments),this):C.apply(Object.create(C.prototype),arguments)}function P(){var A=this;ce(A.path,A.flags,A.mode,function(D,N){D?(A.destroy(),A.emit("error",D)):(A.fd=N,A.emit("open",N))})}function J(A,D){return new e.ReadStream(A,D)}function de(A,D){return new e.WriteStream(A,D)}var Se=e.open;e.open=ce;function ce(A,D,N,U){return typeof N=="function"&&(U=N,N=null),M(A,D,N,U);function M(H,R,L,T,k){return Se(H,R,L,function(F,Re){F&&(F.code==="EMFILE"||F.code==="ENFILE")?tt([M,[H,R,L,T],F,k||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}return e}function tt(e){$e("ENQUEUE",e[0].name,e[1]),G[Q].push(e),Fn()}var mr;function ra(){for(var e=Date.now(),t=0;t<G[Q].length;++t)G[Q][t].length>2&&(G[Q][t][3]=e,G[Q][t][4]=e);Fn()}function Fn(){if(clearTimeout(mr),mr=void 0,G[Q].length!==0){var e=G[Q].shift(),t=e[0],r=e[1],n=e[2],i=e[3],s=e[4];if(i===void 0)$e("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=6e4){$e("TIMEOUT",t.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-s,c=Math.max(s-i,1),d=Math.min(c*1.2,100);a>=d?($e("RETRY",t.name,r),t.apply(null,r.concat([i]))):G[Q].push(e)}mr===void 0&&(mr=setTimeout(Fn,0))}}});var Et=v(Me=>{"use strict";var ia=le().fromCallback,oe=re(),$h=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(e=>typeof oe[e]=="function");Object.keys(oe).forEach(e=>{e!=="promises"&&(Me[e]=oe[e])});$h.forEach(e=>{Me[e]=ia(oe[e])});Me.exists=function(e,t){return typeof t=="function"?oe.exists(e,t):new Promise(r=>oe.exists(e,r))};Me.read=function(e,t,r,n,i,s){return typeof s=="function"?oe.read(e,t,r,n,i,s):new Promise((o,a)=>{oe.read(e,t,r,n,i,(c,d,h)=>{if(c)return a(c);o({bytesRead:d,buffer:h})})})};Me.write=function(e,t,...r){return typeof r[r.length-1]=="function"?oe.write(e,t,...r):new Promise((n,i)=>{oe.write(e,t,...r,(s,o,a)=>{if(s)return i(s);n({bytesWritten:o,buffer:a})})})};typeof oe.writev=="function"&&(Me.writev=function(e,t,...r){return typeof r[r.length-1]=="function"?oe.writev(e,t,...r):new Promise((n,i)=>{oe.writev(e,t,...r,(s,o,a)=>{if(s)return i(s);n({bytesWritten:o,buffers:a})})})});typeof oe.realpath.native=="function"&&(Me.realpath.native=ia(oe.realpath.native))});var In=v((B1,sa)=>{sa.exports=e=>{let t=process.versions.node.split(".").map(r=>parseInt(r,10));return e=e.split(".").map(r=>parseInt(r,10)),t[0]>e[0]||t[0]===e[0]&&(t[1]>e[1]||t[1]===e[1]&&t[2]>=e[2])}});var la=v(($1,Nn)=>{"use strict";var rt=Et(),Ce=require("path"),Hh=In(),oa=Hh("10.12.0"),aa=e=>{if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(Ce.parse(e).root,""))){let r=new Error(`Path contains invalid characters: ${e}`);throw r.code="EINVAL",r}},ca=e=>{let t={mode:511};return typeof e=="number"&&(e={mode:e}),{...t,...e}},ua=e=>{let t=new Error(`operation not permitted, mkdir '${e}'`);return t.code="EPERM",t.errno=-4048,t.path=e,t.syscall="mkdir",t};Nn.exports.makeDir=async(e,t)=>{if(aa(e),t=ca(t),oa){let n=Ce.resolve(e);return rt.mkdir(n,{mode:t.mode,recursive:!0})}let r=async n=>{try{await rt.mkdir(n,t.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(Ce.dirname(n)===n)throw ua(n);if(i.message.includes("null bytes"))throw i;return await r(Ce.dirname(n)),r(n)}try{if(!(await rt.stat(n)).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return r(Ce.resolve(e))};Nn.exports.makeDirSync=(e,t)=>{if(aa(e),t=ca(t),oa){let n=Ce.resolve(e);return rt.mkdirSync(n,{mode:t.mode,recursive:!0})}let r=n=>{try{rt.mkdirSync(n,t.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(Ce.dirname(n)===n)throw ua(n);if(i.message.includes("null bytes"))throw i;return r(Ce.dirname(n)),r(n)}try{if(!rt.statSync(n).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return r(Ce.resolve(e))}});var Ee=v((H1,fa)=>{"use strict";var Uh=le().fromPromise,{makeDir:Gh,makeDirSync:Dn}=la(),jn=Uh(Gh);fa.exports={mkdirs:jn,mkdirsSync:Dn,mkdirp:jn,mkdirpSync:Dn,ensureDir:jn,ensureDirSync:Dn}});var Ln=v((U1,ha)=>{"use strict";var nt=re();function zh(e,t,r,n){nt.open(e,"r+",(i,s)=>{if(i)return n(i);nt.futimes(s,t,r,o=>{nt.close(s,a=>{n&&n(o||a)})})})}function Wh(e,t,r){let n=nt.openSync(e,"r+");return nt.futimesSync(n,t,r),nt.closeSync(n)}ha.exports={utimesMillis:zh,utimesMillisSync:Wh}});var St=v((G1,ya)=>{"use strict";var it=Et(),fe=require("path"),Jh=require("util"),Vh=In(),gr=Vh("10.5.0"),da=e=>gr?it.stat(e,{bigint:!0}):it.stat(e),Bn=e=>gr?it.statSync(e,{bigint:!0}):it.statSync(e);function Yh(e,t){return Promise.all([da(e),da(t).catch(r=>{if(r.code==="ENOENT")return null;throw r})]).then(([r,n])=>({srcStat:r,destStat:n}))}function Xh(e,t){let r,n=Bn(e);try{r=Bn(t)}catch(i){if(i.code==="ENOENT")return{srcStat:n,destStat:null};throw i}return{srcStat:n,destStat:r}}function Kh(e,t,r,n){Jh.callbackify(Yh)(e,t,(i,s)=>{if(i)return n(i);let{srcStat:o,destStat:a}=s;return a&&vr(o,a)?n(new Error("Source and destination must not be the same.")):o.isDirectory()&&$n(e,t)?n(new Error(br(e,t,r))):n(null,{srcStat:o,destStat:a})})}function Qh(e,t,r){let{srcStat:n,destStat:i}=Xh(e,t);if(i&&vr(n,i))throw new Error("Source and destination must not be the same.");if(n.isDirectory()&&$n(e,t))throw new Error(br(e,t,r));return{srcStat:n,destStat:i}}function pa(e,t,r,n,i){let s=fe.resolve(fe.dirname(e)),o=fe.resolve(fe.dirname(r));if(o===s||o===fe.parse(o).root)return i();let a=(c,d)=>c?c.code==="ENOENT"?i():i(c):vr(t,d)?i(new Error(br(e,r,n))):pa(e,t,o,n,i);gr?it.stat(o,{bigint:!0},a):it.stat(o,a)}function ma(e,t,r,n){let i=fe.resolve(fe.dirname(e)),s=fe.resolve(fe.dirname(r));if(s===i||s===fe.parse(s).root)return;let o;try{o=Bn(s)}catch(a){if(a.code==="ENOENT")return;throw a}if(vr(t,o))throw new Error(br(e,r,n));return ma(e,t,s,n)}function vr(e,t){return!!(t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev&&(gr||t.ino<Number.MAX_SAFE_INTEGER||t.size===e.size&&t.mode===e.mode&&t.nlink===e.nlink&&t.atimeMs===e.atimeMs&&t.mtimeMs===e.mtimeMs&&t.ctimeMs===e.ctimeMs&&t.birthtimeMs===e.birthtimeMs))}function $n(e,t){let r=fe.resolve(e).split(fe.sep).filter(i=>i),n=fe.resolve(t).split(fe.sep).filter(i=>i);return r.reduce((i,s,o)=>i&&n[o]===s,!0)}function br(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}ya.exports={checkPaths:Kh,checkPathsSync:Qh,checkParentPaths:pa,checkParentPathsSync:ma,isSrcSubdir:$n}});var _a=v((z1,wa)=>{"use strict";var ne=re(),kt=require("path"),Zh=Ee().mkdirsSync,e0=Ln().utimesMillisSync,Ct=St();function t0(e,t,r){typeof r=="function"&&(r={filter:r}),r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
11
11
|
|
|
12
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:n,destStat:i}=
|
|
12
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:n,destStat:i}=Ct.checkPathsSync(e,t,"copy");return Ct.checkParentPathsSync(e,n,t,"copy"),r0(i,e,t,r)}function r0(e,t,r,n){if(n.filter&&!n.filter(t,r))return;let i=kt.dirname(r);return ne.existsSync(i)||Zh(i),ga(e,t,r,n)}function ga(e,t,r,n){if(!(n.filter&&!n.filter(t,r)))return n0(e,t,r,n)}function n0(e,t,r,n){let s=(n.dereference?ne.statSync:ne.lstatSync)(t);if(s.isDirectory())return l0(s,e,t,r,n);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return i0(s,e,t,r,n);if(s.isSymbolicLink())return d0(e,t,r,n)}function i0(e,t,r,n,i){return t?s0(e,r,n,i):va(e,r,n,i)}function s0(e,t,r,n){if(n.overwrite)return ne.unlinkSync(r),va(e,t,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}function va(e,t,r,n){return ne.copyFileSync(t,r),n.preserveTimestamps&&o0(e.mode,t,r),Hn(r,e.mode)}function o0(e,t,r){return a0(e)&&c0(r,e),u0(t,r)}function a0(e){return(e&128)===0}function c0(e,t){return Hn(e,t|128)}function Hn(e,t){return ne.chmodSync(e,t)}function u0(e,t){let r=ne.statSync(e);return e0(t,r.atime,r.mtime)}function l0(e,t,r,n,i){if(!t)return f0(e.mode,r,n,i);if(t&&!t.isDirectory())throw new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`);return ba(r,n,i)}function f0(e,t,r,n){return ne.mkdirSync(r),ba(t,r,n),Hn(r,e)}function ba(e,t,r){ne.readdirSync(e).forEach(n=>h0(n,e,t,r))}function h0(e,t,r,n){let i=kt.join(t,e),s=kt.join(r,e),{destStat:o}=Ct.checkPathsSync(i,s,"copy");return ga(o,i,s,n)}function d0(e,t,r,n){let i=ne.readlinkSync(t);if(n.dereference&&(i=kt.resolve(process.cwd(),i)),e){let s;try{s=ne.readlinkSync(r)}catch(o){if(o.code==="EINVAL"||o.code==="UNKNOWN")return ne.symlinkSync(i,r);throw o}if(n.dereference&&(s=kt.resolve(process.cwd(),s)),Ct.isSrcSubdir(i,s))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${s}'.`);if(ne.statSync(r).isDirectory()&&Ct.isSrcSubdir(s,i))throw new Error(`Cannot overwrite '${s}' with '${i}'.`);return p0(i,r)}else return ne.symlinkSync(i,r)}function p0(e,t){return ne.unlinkSync(t),ne.symlinkSync(e,t)}wa.exports=t0});var Un=v((W1,xa)=>{"use strict";xa.exports={copySync:_a()}});var Pe=v((J1,Sa)=>{"use strict";var m0=le().fromPromise,Ea=Et();function y0(e){return Ea.access(e).then(()=>!0).catch(()=>!1)}Sa.exports={pathExists:m0(y0),pathExistsSync:Ea.existsSync}});var Fa=v((V1,Pa)=>{"use strict";var he=re(),Rt=require("path"),g0=Ee().mkdirs,v0=Pe().pathExists,b0=Ln().utimesMillis,Ot=St();function w0(e,t,r,n){typeof r=="function"&&!n?(n=r,r={}):typeof r=="function"&&(r={filter:r}),n=n||function(){},r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
13
13
|
|
|
14
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`),
|
|
15
|
-
`,finalEOL:r=!0,replacer:n=null,spaces:i}={}){let s=r?t:"";return JSON.stringify(e,n,i).replace(/\n/g,t)+s}function id(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}xc.exports={stringify:nd,stripBom:id}});var Cc=v((sm,kc)=>{var ot;try{ot=re()}catch{ot=require("fs")}var Rr=le(),{stringify:Ec,stripBom:Sc}=Cr();async function sd(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||ot,n="throws"in t?t.throws:!0,i=await Rr.fromCallback(r.readFile)(e,t);i=Sc(i);let s;try{s=JSON.parse(i,t?t.reviver:null)}catch(o){if(n)throw o.message=`${e}: ${o.message}`,o;return null}return s}var od=Rr.fromPromise(sd);function ad(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||ot,n="throws"in t?t.throws:!0;try{let i=r.readFileSync(e,t);return i=Sc(i),JSON.parse(i,t.reviver)}catch(i){if(n)throw i.message=`${e}: ${i.message}`,i;return null}}async function cd(e,t,r={}){let n=r.fs||ot,i=Ec(t,r);await Rr.fromCallback(n.writeFile)(e,i,r)}var ud=Rr.fromPromise(cd);function ld(e,t,r={}){let n=r.fs||ot,i=Ec(t,r);return n.writeFileSync(e,i,r)}var fd={readFile:od,readFileSync:ad,writeFile:ud,writeFileSync:ld};kc.exports=fd});var Oc=v((om,Rc)=>{"use strict";var Or=Cc();Rc.exports={readJson:Or.readFile,readJsonSync:Or.readFileSync,writeJson:Or.writeFile,writeJsonSync:Or.writeFileSync}});var qr=v((am,Mc)=>{"use strict";var hd=le().fromCallback,Mt=re(),qc=require("path"),Ac=Ee(),dd=Pe().pathExists;function pd(e,t,r,n){typeof r=="function"&&(n=r,r="utf8");let i=qc.dirname(e);dd(i,(s,o)=>{if(s)return n(s);if(o)return Mt.writeFile(e,t,r,n);Ac.mkdirs(i,a=>{if(a)return n(a);Mt.writeFile(e,t,r,n)})})}function md(e,...t){let r=qc.dirname(e);if(Mt.existsSync(r))return Mt.writeFileSync(e,...t);Ac.mkdirsSync(r),Mt.writeFileSync(e,...t)}Mc.exports={outputFile:hd(pd),outputFileSync:md}});var Fc=v((cm,Pc)=>{"use strict";var{stringify:yd}=Cr(),{outputFile:gd}=qr();async function vd(e,t,r={}){let n=yd(t,r);await gd(e,n,r)}Pc.exports=vd});var Nc=v((um,Tc)=>{"use strict";var{stringify:bd}=Cr(),{outputFileSync:wd}=qr();function _d(e,t,r){let n=bd(t,r);wd(e,n,r)}Tc.exports=_d});var Dc=v((lm,Ic)=>{"use strict";var xd=le().fromPromise,ae=Oc();ae.outputJson=xd(Fc());ae.outputJsonSync=Nc();ae.outputJSON=ae.outputJson;ae.outputJSONSync=ae.outputJsonSync;ae.writeJSON=ae.writeJson;ae.writeJSONSync=ae.writeJsonSync;ae.readJSON=ae.readJson;ae.readJSONSync=ae.readJsonSync;Ic.exports=ae});var Uc=v((fm,Hc)=>{"use strict";var Bc=re(),Ed=require("path"),Sd=Hn().copySync,$c=qt().removeSync,kd=Ee().mkdirpSync,jc=Et();function Cd(e,t,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:i}=jc.checkPathsSync(e,t,"move");return jc.checkParentPathsSync(e,i,t,"move"),kd(Ed.dirname(t)),Rd(e,t,n)}function Rd(e,t,r){if(r)return $c(t),Lc(e,t,r);if(Bc.existsSync(t))throw new Error("dest already exists.");return Lc(e,t,r)}function Lc(e,t,r){try{Bc.renameSync(e,t)}catch(n){if(n.code!=="EXDEV")throw n;return Od(e,t,r)}}function Od(e,t,r){return Sd(e,t,{overwrite:r,errorOnExist:!0}),$c(e)}Hc.exports=Cd});var zc=v((hm,Gc)=>{"use strict";Gc.exports={moveSync:Uc()}});var Xc=v((dm,Yc)=>{"use strict";var qd=re(),Ad=require("path"),Md=Gn().copy,Vc=qt().remove,Pd=Ee().mkdirp,Fd=Pe().pathExists,Wc=Et();function Td(e,t,r,n){typeof r=="function"&&(n=r,r={});let i=r.overwrite||r.clobber||!1;Wc.checkPaths(e,t,"move",(s,o)=>{if(s)return n(s);let{srcStat:a}=o;Wc.checkParentPaths(e,a,t,"move",c=>{if(c)return n(c);Pd(Ad.dirname(t),d=>d?n(d):Nd(e,t,i,n))})})}function Nd(e,t,r,n){if(r)return Vc(t,i=>i?n(i):Jc(e,t,r,n));Fd(t,(i,s)=>i?n(i):s?n(new Error("dest already exists.")):Jc(e,t,r,n))}function Jc(e,t,r,n){qd.rename(e,t,i=>i?i.code!=="EXDEV"?n(i):Id(e,t,r,n):n())}function Id(e,t,r,n){Md(e,t,{overwrite:r,errorOnExist:!0},s=>s?n(s):Vc(e,n))}Yc.exports=Td});var Qc=v((pm,Kc)=>{"use strict";var Dd=le().fromCallback;Kc.exports={move:Dd(Xc())}});var eu=v((mm,Wn)=>{"use strict";Wn.exports={...xt(),...Hn(),...Gn(),...Qa(),..._c(),...Dc(),...Ee(),...zc(),...Qc(),...qr(),...Pe(),...qt()};var Zc=require("fs");Object.getOwnPropertyDescriptor(Zc,"promises")&&Object.defineProperty(Wn.exports,"promises",{get(){return Zc.promises}})});var ru=v((ym,tu)=>{"use strict";tu.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]}});var Jn=v((gm,iu)=>{var Pt=ru(),nu={};for(let e of Object.keys(Pt))nu[Pt[e]]=e;var E={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"]}};iu.exports=E;for(let e of Object.keys(E)){if(!("channels"in E[e]))throw new Error("missing channels property: "+e);if(!("labels"in E[e]))throw new Error("missing channel labels property: "+e);if(E[e].labels.length!==E[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:r}=E[e];delete E[e].channels,delete E[e].labels,Object.defineProperty(E[e],"channels",{value:t}),Object.defineProperty(E[e],"labels",{value:r})}E.rgb.hsl=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),s=Math.max(t,r,n),o=s-i,a,c;s===i?a=0:t===s?a=(r-n)/o:r===s?a=2+(n-t)/o:n===s&&(a=4+(t-r)/o),a=Math.min(a*60,360),a<0&&(a+=360);let d=(i+s)/2;return s===i?c=0:d<=.5?c=o/(s+i):c=o/(2-s-i),[a,c*100,d*100]};E.rgb.hsv=function(e){let t,r,n,i,s,o=e[0]/255,a=e[1]/255,c=e[2]/255,d=Math.max(o,a,c),h=d-Math.min(o,a,c),p=function(y){return(d-y)/6/h+1/2};return h===0?(i=0,s=0):(s=h/d,t=p(o),r=p(a),n=p(c),o===d?i=n-r:a===d?i=1/3+t-n:c===d&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,d*100]};E.rgb.hwb=function(e){let t=e[0],r=e[1],n=e[2],i=E.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,s*100,n*100]};E.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(1-t,1-r,1-n),s=(1-t-i)/(1-i)||0,o=(1-r-i)/(1-i)||0,a=(1-n-i)/(1-i)||0;return[s*100,o*100,a*100,i*100]};function jd(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}E.rgb.keyword=function(e){let t=nu[e];if(t)return t;let r=1/0,n;for(let i of Object.keys(Pt)){let s=Pt[i],o=jd(e,s);o<r&&(r=o,n=i)}return n};E.keyword.rgb=function(e){return Pt[e]};E.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let i=t*.4124+r*.3576+n*.1805,s=t*.2126+r*.7152+n*.0722,o=t*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};E.rgb.lab=function(e){let t=E.rgb.xyz(e),r=t[0],n=t[1],i=t[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let s=116*n-16,o=500*(r-n),a=200*(n-i);return[s,o,a]};E.hsl.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,i,s,o;if(r===0)return o=n*255,[o,o,o];n<.5?i=n*(1+r):i=n+r-n*r;let a=2*n-i,c=[0,0,0];for(let d=0;d<3;d++)s=t+1/3*-(d-1),s<0&&s++,s>1&&s--,6*s<1?o=a+(i-a)*6*s:2*s<1?o=i:3*s<2?o=a+(i-a)*(2/3-s)*6:o=a,c[d]=o*255;return c};E.hsl.hsv=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,i=r,s=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s;let o=(n+r)/2,a=n===0?2*i/(s+i):2*r/(n+r);return[t,a*100,o*100]};E.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,n=e[2]/100,i=Math.floor(t)%6,s=t-Math.floor(t),o=255*n*(1-r),a=255*n*(1-r*s),c=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,c,o];case 1:return[a,n,o];case 2:return[o,n,c];case 3:return[o,a,n];case 4:return[c,o,n];case 5:return[n,o,a]}};E.hsv.hsl=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01),s,o;o=(2-r)*n;let a=(2-r)*i;return s=r*i,s/=a<=1?a:2-a,s=s||0,o/=2,[t,s*100,o*100]};E.hwb.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,i=r+n,s;i>1&&(r/=i,n/=i);let o=Math.floor(6*t),a=1-n;s=6*t-o,o&1&&(s=1-s);let c=r+s*(a-r),d,h,p;switch(o){default:case 6:case 0:d=a,h=c,p=r;break;case 1:d=c,h=a,p=r;break;case 2:d=r,h=a,p=c;break;case 3:d=r,h=c,p=a;break;case 4:d=c,h=r,p=a;break;case 5:d=a,h=r,p=c;break}return[d*255,h*255,p*255]};E.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100,s=1-Math.min(1,t*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i);return[s*255,o*255,a*255]};E.xyz.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,i,s,o;return i=t*3.2406+r*-1.5372+n*-.4986,s=t*-.9689+r*1.8758+n*.0415,o=t*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[i*255,s*255,o*255]};E.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let i=116*r-16,s=500*(t-r),o=200*(r-n);return[i,s,o]};E.lab.xyz=function(e){let t=e[0],r=e[1],n=e[2],i,s,o;s=(t+16)/116,i=r/500+s,o=s-n/200;let a=s**3,c=i**3,d=o**3;return s=a>.008856?a:(s-16/116)/7.787,i=c>.008856?c:(i-16/116)/7.787,o=d>.008856?d:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};E.lab.lch=function(e){let t=e[0],r=e[1],n=e[2],i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);let o=Math.sqrt(r*r+n*n);return[t,o,i]};E.lch.lab=function(e){let t=e[0],r=e[1],i=e[2]/360*2*Math.PI,s=r*Math.cos(i),o=r*Math.sin(i);return[t,s,o]};E.rgb.ansi16=function(e,t=null){let[r,n,i]=e,s=t===null?E.rgb.hsv(e)[2]:t;if(s=Math.round(s/50),s===0)return 30;let o=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return s===2&&(o+=60),o};E.hsv.ansi16=function(e){return E.rgb.ansi16(E.hsv.rgb(e),e[2])};E.rgb.ansi256=function(e){let t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};E.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 r=(~~(e>50)+1)*.5,n=(t&1)*r*255,i=(t>>1&1)*r*255,s=(t>>2&1)*r*255;return[n,i,s]};E.ansi256.rgb=function(e){if(e>=232){let s=(e-232)*10+8;return[s,s,s]}e-=16;let t,r=Math.floor(e/36)/5*255,n=Math.floor((t=e%36)/6)/5*255,i=t%6/5*255;return[r,n,i]};E.rgb.hex=function(e){let r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};E.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 r=t[0];t[0].length===3&&(r=r.split("").map(a=>a+a).join(""));let n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};E.rgb.hcg=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),s=Math.min(Math.min(t,r),n),o=i-s,a,c;return o<1?a=s/(1-o):a=0,o<=0?c=0:i===t?c=(r-n)/o%6:i===r?c=2+(n-t)/o:c=4+(t-r)/o,c/=6,c%=1,[c*360,o*100,a*100]};E.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r),i=0;return n<1&&(i=(r-.5*n)/(1-n)),[e[0],n*100,i*100]};E.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=t*r,i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],n*100,i*100]};E.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];let i=[0,0,0],s=t%1*6,o=s%1,a=1-o,c=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=a,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]=a,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]=a}return c=(1-r)*n,[(r*i[0]+c)*255,(r*i[1]+c)*255,(r*i[2]+c)*255]};E.hcg.hsv=function(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t),i=0;return n>0&&(i=t/n),[e[0],i*100,n*100]};E.hcg.hsl=function(e){let t=e[1]/100,n=e[2]/100*(1-t)+.5*t,i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],i*100,n*100]};E.hcg.hwb=function(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};E.hwb.hcg=function(e){let t=e[1]/100,n=1-e[2]/100,i=n-t,s=0;return i<1&&(s=(n-i)/(1-i)),[e[0],i*100,s*100]};E.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};E.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};E.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};E.gray.hsl=function(e){return[0,0,e[0]]};E.gray.hsv=E.gray.hsl;E.gray.hwb=function(e){return[0,100,e[0]]};E.gray.cmyk=function(e){return[0,0,0,e[0]]};E.gray.lab=function(e){return[e[0],0,0]};E.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};E.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});var ou=v((vm,su)=>{var Ar=Jn();function Ld(){let e={},t=Object.keys(Ar);for(let r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function Bd(e){let t=Ld(),r=[e];for(t[e].distance=0;r.length;){let n=r.pop(),i=Object.keys(Ar[n]);for(let s=i.length,o=0;o<s;o++){let a=i[o],c=t[a];c.distance===-1&&(c.distance=t[n].distance+1,c.parent=n,r.unshift(a))}}return t}function $d(e,t){return function(r){return t(e(r))}}function Hd(e,t){let r=[t[e].parent,e],n=Ar[t[e].parent][e],i=t[e].parent;for(;t[i].parent;)r.unshift(t[i].parent),n=$d(Ar[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}su.exports=function(e){let t=Bd(e),r={},n=Object.keys(t);for(let i=n.length,s=0;s<i;s++){let o=n[s];t[o].parent!==null&&(r[o]=Hd(o,t))}return r}});var cu=v((bm,au)=>{var Vn=Jn(),Ud=ou(),at={},Gd=Object.keys(Vn);function zd(e){let t=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function Wd(e){let t=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let i=e(r);if(typeof i=="object")for(let s=i.length,o=0;o<s;o++)i[o]=Math.round(i[o]);return i};return"conversion"in e&&(t.conversion=e.conversion),t}Gd.forEach(e=>{at[e]={},Object.defineProperty(at[e],"channels",{value:Vn[e].channels}),Object.defineProperty(at[e],"labels",{value:Vn[e].labels});let t=Ud(e);Object.keys(t).forEach(n=>{let i=t[n];at[e][n]=Wd(i),at[e][n].raw=zd(i)})});au.exports=at});var pu=v((wm,du)=>{"use strict";var uu=(e,t)=>(...r)=>`\x1B[${e(...r)+t}m`,lu=(e,t)=>(...r)=>{let n=e(...r);return`\x1B[${38+t};5;${n}m`},fu=(e,t)=>(...r)=>{let n=e(...r);return`\x1B[${38+t};2;${n[0]};${n[1]};${n[2]}m`},Mr=e=>e,hu=(e,t,r)=>[e,t,r],ct=(e,t,r)=>{Object.defineProperty(e,t,{get:()=>{let n=r();return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})},Yn,ut=(e,t,r,n)=>{Yn===void 0&&(Yn=cu());let i=n?10:0,s={};for(let[o,a]of Object.entries(Yn)){let c=o==="ansi16"?"ansi":o;o===t?s[c]=e(r,i):typeof a=="object"&&(s[c]=e(a[t],i))}return s};function Jd(){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[r,n]of Object.entries(t)){for(let[i,s]of Object.entries(n))t[i]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},n[i]=t[i],e.set(s[0],s[1]);Object.defineProperty(t,r,{value:n,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",ct(t.color,"ansi",()=>ut(uu,"ansi16",Mr,!1)),ct(t.color,"ansi256",()=>ut(lu,"ansi256",Mr,!1)),ct(t.color,"ansi16m",()=>ut(fu,"rgb",hu,!1)),ct(t.bgColor,"ansi",()=>ut(uu,"ansi16",Mr,!0)),ct(t.bgColor,"ansi256",()=>ut(lu,"ansi256",Mr,!0)),ct(t.bgColor,"ansi16m",()=>ut(fu,"rgb",hu,!0)),t}Object.defineProperty(du,"exports",{enumerable:!0,get:Jd})});var yu=v((_m,mu)=>{"use strict";var Vd=(e,t,r)=>{let n=e.indexOf(t);if(n===-1)return e;let i=t.length,s=0,o="";do o+=e.substr(s,n-s)+t+r,s=n+i,n=e.indexOf(t,s);while(n!==-1);return o+=e.substr(s),o},Yd=(e,t,r,n)=>{let i=0,s="";do{let o=e[n-1]==="\r";s+=e.substr(i,(o?n-1:n)-i)+t+(o?`\r
|
|
14
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`),Ot.checkPaths(e,t,"copy",(i,s)=>{if(i)return n(i);let{srcStat:o,destStat:a}=s;Ot.checkParentPaths(e,o,t,"copy",c=>c?n(c):r.filter?Oa(ka,a,e,t,r,n):ka(a,e,t,r,n))})}function ka(e,t,r,n,i){let s=Rt.dirname(r);v0(s,(o,a)=>{if(o)return i(o);if(a)return Gn(e,t,r,n,i);g0(s,c=>c?i(c):Gn(e,t,r,n,i))})}function Oa(e,t,r,n,i,s){Promise.resolve(i.filter(r,n)).then(o=>o?e(t,r,n,i,s):s(),o=>s(o))}function Gn(e,t,r,n,i){return n.filter?Oa(Ca,e,t,r,n,i):Ca(e,t,r,n,i)}function Ca(e,t,r,n,i){(n.dereference?he.stat:he.lstat)(t,(o,a)=>{if(o)return i(o);if(a.isDirectory())return R0(a,e,t,r,n,i);if(a.isFile()||a.isCharacterDevice()||a.isBlockDevice())return _0(a,e,t,r,n,i);if(a.isSymbolicLink())return q0(e,t,r,n,i)})}function _0(e,t,r,n,i,s){return t?x0(e,r,n,i,s):Aa(e,r,n,i,s)}function x0(e,t,r,n,i){if(n.overwrite)he.unlink(r,s=>s?i(s):Aa(e,t,r,n,i));else return n.errorOnExist?i(new Error(`'${r}' already exists`)):i()}function Aa(e,t,r,n,i){he.copyFile(t,r,s=>s?i(s):n.preserveTimestamps?E0(e.mode,t,r,i):wr(r,e.mode,i))}function E0(e,t,r,n){return S0(e)?k0(r,e,i=>i?n(i):Ra(e,t,r,n)):Ra(e,t,r,n)}function S0(e){return(e&128)===0}function k0(e,t,r){return wr(e,t|128,r)}function Ra(e,t,r,n){C0(t,r,i=>i?n(i):wr(r,e,n))}function wr(e,t,r){return he.chmod(e,t,r)}function C0(e,t,r){he.stat(e,(n,i)=>n?r(n):b0(t,i.atime,i.mtime,r))}function R0(e,t,r,n,i,s){return t?t&&!t.isDirectory()?s(new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`)):qa(r,n,i,s):O0(e.mode,r,n,i,s)}function O0(e,t,r,n,i){he.mkdir(r,s=>{if(s)return i(s);qa(t,r,n,o=>o?i(o):wr(r,e,i))})}function qa(e,t,r,n){he.readdir(e,(i,s)=>i?n(i):Ma(s,e,t,r,n))}function Ma(e,t,r,n,i){let s=e.pop();return s?A0(e,s,t,r,n,i):i()}function A0(e,t,r,n,i,s){let o=Rt.join(r,t),a=Rt.join(n,t);Ot.checkPaths(o,a,"copy",(c,d)=>{if(c)return s(c);let{destStat:h}=d;Gn(h,o,a,i,p=>p?s(p):Ma(e,r,n,i,s))})}function q0(e,t,r,n,i){he.readlink(t,(s,o)=>{if(s)return i(s);if(n.dereference&&(o=Rt.resolve(process.cwd(),o)),e)he.readlink(r,(a,c)=>a?a.code==="EINVAL"||a.code==="UNKNOWN"?he.symlink(o,r,i):i(a):(n.dereference&&(c=Rt.resolve(process.cwd(),c)),Ot.isSrcSubdir(o,c)?i(new Error(`Cannot copy '${o}' to a subdirectory of itself, '${c}'.`)):e.isDirectory()&&Ot.isSrcSubdir(c,o)?i(new Error(`Cannot overwrite '${c}' with '${o}'.`)):M0(o,r,i)));else return he.symlink(o,r,i)})}function M0(e,t,r){he.unlink(t,n=>n?r(n):he.symlink(e,t,r))}Pa.exports=w0});var zn=v((Y1,Ta)=>{"use strict";var P0=le().fromCallback;Ta.exports={copy:P0(Fa())}});var Ua=v((X1,Ha)=>{"use strict";var Ia=re(),La=require("path"),$=require("assert"),At=process.platform==="win32";function Ba(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(r=>{e[r]=e[r]||Ia[r],r=r+"Sync",e[r]=e[r]||Ia[r]}),e.maxBusyTries=e.maxBusyTries||3}function Wn(e,t,r){let n=0;typeof t=="function"&&(r=t,t={}),$(e,"rimraf: missing path"),$.strictEqual(typeof e,"string","rimraf: path should be a string"),$.strictEqual(typeof r,"function","rimraf: callback function required"),$(t,"rimraf: invalid options argument provided"),$.strictEqual(typeof t,"object","rimraf: options should be object"),Ba(t),Na(e,t,function i(s){if(s){if((s.code==="EBUSY"||s.code==="ENOTEMPTY"||s.code==="EPERM")&&n<t.maxBusyTries){n++;let o=n*100;return setTimeout(()=>Na(e,t,i),o)}s.code==="ENOENT"&&(s=null)}r(s)})}function Na(e,t,r){$(e),$(t),$(typeof r=="function"),t.lstat(e,(n,i)=>{if(n&&n.code==="ENOENT")return r(null);if(n&&n.code==="EPERM"&&At)return Da(e,t,n,r);if(i&&i.isDirectory())return _r(e,t,n,r);t.unlink(e,s=>{if(s){if(s.code==="ENOENT")return r(null);if(s.code==="EPERM")return At?Da(e,t,s,r):_r(e,t,s,r);if(s.code==="EISDIR")return _r(e,t,s,r)}return r(s)})})}function Da(e,t,r,n){$(e),$(t),$(typeof n=="function"),t.chmod(e,438,i=>{i?n(i.code==="ENOENT"?null:r):t.stat(e,(s,o)=>{s?n(s.code==="ENOENT"?null:r):o.isDirectory()?_r(e,t,r,n):t.unlink(e,n)})})}function ja(e,t,r){let n;$(e),$(t);try{t.chmodSync(e,438)}catch(i){if(i.code==="ENOENT")return;throw r}try{n=t.statSync(e)}catch(i){if(i.code==="ENOENT")return;throw r}n.isDirectory()?xr(e,t,r):t.unlinkSync(e)}function _r(e,t,r,n){$(e),$(t),$(typeof n=="function"),t.rmdir(e,i=>{i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?F0(e,t,n):i&&i.code==="ENOTDIR"?n(r):n(i)})}function F0(e,t,r){$(e),$(t),$(typeof r=="function"),t.readdir(e,(n,i)=>{if(n)return r(n);let s=i.length,o;if(s===0)return t.rmdir(e,r);i.forEach(a=>{Wn(La.join(e,a),t,c=>{if(!o){if(c)return r(o=c);--s===0&&t.rmdir(e,r)}})})})}function $a(e,t){let r;t=t||{},Ba(t),$(e,"rimraf: missing path"),$.strictEqual(typeof e,"string","rimraf: path should be a string"),$(t,"rimraf: missing options"),$.strictEqual(typeof t,"object","rimraf: options should be object");try{r=t.lstatSync(e)}catch(n){if(n.code==="ENOENT")return;n.code==="EPERM"&&At&&ja(e,t,n)}try{r&&r.isDirectory()?xr(e,t,null):t.unlinkSync(e)}catch(n){if(n.code==="ENOENT")return;if(n.code==="EPERM")return At?ja(e,t,n):xr(e,t,n);if(n.code!=="EISDIR")throw n;xr(e,t,n)}}function xr(e,t,r){$(e),$(t);try{t.rmdirSync(e)}catch(n){if(n.code==="ENOTDIR")throw r;if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")T0(e,t);else if(n.code!=="ENOENT")throw n}}function T0(e,t){if($(e),$(t),t.readdirSync(e).forEach(r=>$a(La.join(e,r),t)),At){let r=Date.now();do try{return t.rmdirSync(e,t)}catch{}while(Date.now()-r<500)}else return t.rmdirSync(e,t)}Ha.exports=Wn;Wn.sync=$a});var qt=v((K1,za)=>{"use strict";var I0=le().fromCallback,Ga=Ua();za.exports={remove:I0(Ga),removeSync:Ga.sync}});var Za=v((Q1,Qa)=>{"use strict";var N0=le().fromCallback,Va=re(),Ya=require("path"),Xa=Ee(),Ka=qt(),Wa=N0(function(t,r){r=r||function(){},Va.readdir(t,(n,i)=>{if(n)return Xa.mkdirs(t,r);i=i.map(o=>Ya.join(t,o)),s();function s(){let o=i.pop();if(!o)return r();Ka.remove(o,a=>{if(a)return r(a);s()})}})});function Ja(e){let t;try{t=Va.readdirSync(e)}catch{return Xa.mkdirsSync(e)}t.forEach(r=>{r=Ya.join(e,r),Ka.removeSync(r)})}Qa.exports={emptyDirSync:Ja,emptydirSync:Ja,emptyDir:Wa,emptydir:Wa}});var nc=v((Z1,rc)=>{"use strict";var D0=le().fromCallback,ec=require("path"),Fe=re(),tc=Ee();function j0(e,t){function r(){Fe.writeFile(e,"",n=>{if(n)return t(n);t()})}Fe.stat(e,(n,i)=>{if(!n&&i.isFile())return t();let s=ec.dirname(e);Fe.stat(s,(o,a)=>{if(o)return o.code==="ENOENT"?tc.mkdirs(s,c=>{if(c)return t(c);r()}):t(o);a.isDirectory()?r():Fe.readdir(s,c=>{if(c)return t(c)})})})}function L0(e){let t;try{t=Fe.statSync(e)}catch{}if(t&&t.isFile())return;let r=ec.dirname(e);try{Fe.statSync(r).isDirectory()||Fe.readdirSync(r)}catch(n){if(n&&n.code==="ENOENT")tc.mkdirsSync(r);else throw n}Fe.writeFileSync(e,"")}rc.exports={createFile:D0(j0),createFileSync:L0}});var cc=v((em,ac)=>{"use strict";var B0=le().fromCallback,sc=require("path"),He=re(),oc=Ee(),ic=Pe().pathExists;function $0(e,t,r){function n(i,s){He.link(i,s,o=>{if(o)return r(o);r(null)})}ic(t,(i,s)=>{if(i)return r(i);if(s)return r(null);He.lstat(e,o=>{if(o)return o.message=o.message.replace("lstat","ensureLink"),r(o);let a=sc.dirname(t);ic(a,(c,d)=>{if(c)return r(c);if(d)return n(e,t);oc.mkdirs(a,h=>{if(h)return r(h);n(e,t)})})})})}function H0(e,t){if(He.existsSync(t))return;try{He.lstatSync(e)}catch(s){throw s.message=s.message.replace("lstat","ensureLink"),s}let n=sc.dirname(t);return He.existsSync(n)||oc.mkdirsSync(n),He.linkSync(e,t)}ac.exports={createLink:B0($0),createLinkSync:H0}});var lc=v((tm,uc)=>{"use strict";var Te=require("path"),Mt=re(),U0=Pe().pathExists;function G0(e,t,r){if(Te.isAbsolute(e))return Mt.lstat(e,n=>n?(n.message=n.message.replace("lstat","ensureSymlink"),r(n)):r(null,{toCwd:e,toDst:e}));{let n=Te.dirname(t),i=Te.join(n,e);return U0(i,(s,o)=>s?r(s):o?r(null,{toCwd:i,toDst:e}):Mt.lstat(e,a=>a?(a.message=a.message.replace("lstat","ensureSymlink"),r(a)):r(null,{toCwd:e,toDst:Te.relative(n,e)})))}}function z0(e,t){let r;if(Te.isAbsolute(e)){if(r=Mt.existsSync(e),!r)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{let n=Te.dirname(t),i=Te.join(n,e);if(r=Mt.existsSync(i),r)return{toCwd:i,toDst:e};if(r=Mt.existsSync(e),!r)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:Te.relative(n,e)}}}uc.exports={symlinkPaths:G0,symlinkPathsSync:z0}});var dc=v((rm,hc)=>{"use strict";var fc=re();function W0(e,t,r){if(r=typeof t=="function"?t:r,t=typeof t=="function"?!1:t,t)return r(null,t);fc.lstat(e,(n,i)=>{if(n)return r(null,"file");t=i&&i.isDirectory()?"dir":"file",r(null,t)})}function J0(e,t){let r;if(t)return t;try{r=fc.lstatSync(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}hc.exports={symlinkType:W0,symlinkTypeSync:J0}});var wc=v((nm,bc)=>{"use strict";var V0=le().fromCallback,mc=require("path"),st=re(),yc=Ee(),Y0=yc.mkdirs,X0=yc.mkdirsSync,gc=lc(),K0=gc.symlinkPaths,Q0=gc.symlinkPathsSync,vc=dc(),Z0=vc.symlinkType,ed=vc.symlinkTypeSync,pc=Pe().pathExists;function td(e,t,r,n){n=typeof r=="function"?r:n,r=typeof r=="function"?!1:r,pc(t,(i,s)=>{if(i)return n(i);if(s)return n(null);K0(e,t,(o,a)=>{if(o)return n(o);e=a.toDst,Z0(a.toCwd,r,(c,d)=>{if(c)return n(c);let h=mc.dirname(t);pc(h,(p,y)=>{if(p)return n(p);if(y)return st.symlink(e,t,d,n);Y0(h,m=>{if(m)return n(m);st.symlink(e,t,d,n)})})})})})}function rd(e,t,r){if(st.existsSync(t))return;let i=Q0(e,t);e=i.toDst,r=ed(i.toCwd,r);let s=mc.dirname(t);return st.existsSync(s)||X0(s),st.symlinkSync(e,t,r)}bc.exports={createSymlink:V0(td),createSymlinkSync:rd}});var xc=v((im,_c)=>{"use strict";var Er=nc(),Sr=cc(),kr=wc();_c.exports={createFile:Er.createFile,createFileSync:Er.createFileSync,ensureFile:Er.createFile,ensureFileSync:Er.createFileSync,createLink:Sr.createLink,createLinkSync:Sr.createLinkSync,ensureLink:Sr.createLink,ensureLinkSync:Sr.createLinkSync,createSymlink:kr.createSymlink,createSymlinkSync:kr.createSymlinkSync,ensureSymlink:kr.createSymlink,ensureSymlinkSync:kr.createSymlinkSync}});var Cr=v((sm,Ec)=>{function nd(e,{EOL:t=`
|
|
15
|
+
`,finalEOL:r=!0,replacer:n=null,spaces:i}={}){let s=r?t:"";return JSON.stringify(e,n,i).replace(/\n/g,t)+s}function id(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}Ec.exports={stringify:nd,stripBom:id}});var Rc=v((om,Cc)=>{var ot;try{ot=re()}catch{ot=require("fs")}var Rr=le(),{stringify:Sc,stripBom:kc}=Cr();async function sd(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||ot,n="throws"in t?t.throws:!0,i=await Rr.fromCallback(r.readFile)(e,t);i=kc(i);let s;try{s=JSON.parse(i,t?t.reviver:null)}catch(o){if(n)throw o.message=`${e}: ${o.message}`,o;return null}return s}var od=Rr.fromPromise(sd);function ad(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||ot,n="throws"in t?t.throws:!0;try{let i=r.readFileSync(e,t);return i=kc(i),JSON.parse(i,t.reviver)}catch(i){if(n)throw i.message=`${e}: ${i.message}`,i;return null}}async function cd(e,t,r={}){let n=r.fs||ot,i=Sc(t,r);await Rr.fromCallback(n.writeFile)(e,i,r)}var ud=Rr.fromPromise(cd);function ld(e,t,r={}){let n=r.fs||ot,i=Sc(t,r);return n.writeFileSync(e,i,r)}var fd={readFile:od,readFileSync:ad,writeFile:ud,writeFileSync:ld};Cc.exports=fd});var Ac=v((am,Oc)=>{"use strict";var Or=Rc();Oc.exports={readJson:Or.readFile,readJsonSync:Or.readFileSync,writeJson:Or.writeFile,writeJsonSync:Or.writeFileSync}});var Ar=v((cm,Pc)=>{"use strict";var hd=le().fromCallback,Pt=re(),qc=require("path"),Mc=Ee(),dd=Pe().pathExists;function pd(e,t,r,n){typeof r=="function"&&(n=r,r="utf8");let i=qc.dirname(e);dd(i,(s,o)=>{if(s)return n(s);if(o)return Pt.writeFile(e,t,r,n);Mc.mkdirs(i,a=>{if(a)return n(a);Pt.writeFile(e,t,r,n)})})}function md(e,...t){let r=qc.dirname(e);if(Pt.existsSync(r))return Pt.writeFileSync(e,...t);Mc.mkdirsSync(r),Pt.writeFileSync(e,...t)}Pc.exports={outputFile:hd(pd),outputFileSync:md}});var Tc=v((um,Fc)=>{"use strict";var{stringify:yd}=Cr(),{outputFile:gd}=Ar();async function vd(e,t,r={}){let n=yd(t,r);await gd(e,n,r)}Fc.exports=vd});var Nc=v((lm,Ic)=>{"use strict";var{stringify:bd}=Cr(),{outputFileSync:wd}=Ar();function _d(e,t,r){let n=bd(t,r);wd(e,n,r)}Ic.exports=_d});var jc=v((fm,Dc)=>{"use strict";var xd=le().fromPromise,ae=Ac();ae.outputJson=xd(Tc());ae.outputJsonSync=Nc();ae.outputJSON=ae.outputJson;ae.outputJSONSync=ae.outputJsonSync;ae.writeJSON=ae.writeJson;ae.writeJSONSync=ae.writeJsonSync;ae.readJSON=ae.readJson;ae.readJSONSync=ae.readJsonSync;Dc.exports=ae});var Gc=v((hm,Uc)=>{"use strict";var $c=re(),Ed=require("path"),Sd=Un().copySync,Hc=qt().removeSync,kd=Ee().mkdirpSync,Lc=St();function Cd(e,t,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:i}=Lc.checkPathsSync(e,t,"move");return Lc.checkParentPathsSync(e,i,t,"move"),kd(Ed.dirname(t)),Rd(e,t,n)}function Rd(e,t,r){if(r)return Hc(t),Bc(e,t,r);if($c.existsSync(t))throw new Error("dest already exists.");return Bc(e,t,r)}function Bc(e,t,r){try{$c.renameSync(e,t)}catch(n){if(n.code!=="EXDEV")throw n;return Od(e,t,r)}}function Od(e,t,r){return Sd(e,t,{overwrite:r,errorOnExist:!0}),Hc(e)}Uc.exports=Cd});var Wc=v((dm,zc)=>{"use strict";zc.exports={moveSync:Gc()}});var Kc=v((pm,Xc)=>{"use strict";var Ad=re(),qd=require("path"),Md=zn().copy,Yc=qt().remove,Pd=Ee().mkdirp,Fd=Pe().pathExists,Jc=St();function Td(e,t,r,n){typeof r=="function"&&(n=r,r={});let i=r.overwrite||r.clobber||!1;Jc.checkPaths(e,t,"move",(s,o)=>{if(s)return n(s);let{srcStat:a}=o;Jc.checkParentPaths(e,a,t,"move",c=>{if(c)return n(c);Pd(qd.dirname(t),d=>d?n(d):Id(e,t,i,n))})})}function Id(e,t,r,n){if(r)return Yc(t,i=>i?n(i):Vc(e,t,r,n));Fd(t,(i,s)=>i?n(i):s?n(new Error("dest already exists.")):Vc(e,t,r,n))}function Vc(e,t,r,n){Ad.rename(e,t,i=>i?i.code!=="EXDEV"?n(i):Nd(e,t,r,n):n())}function Nd(e,t,r,n){Md(e,t,{overwrite:r,errorOnExist:!0},s=>s?n(s):Yc(e,n))}Xc.exports=Td});var Zc=v((mm,Qc)=>{"use strict";var Dd=le().fromCallback;Qc.exports={move:Dd(Kc())}});var tu=v((ym,Jn)=>{"use strict";Jn.exports={...Et(),...Un(),...zn(),...Za(),...xc(),...jc(),...Ee(),...Wc(),...Zc(),...Ar(),...Pe(),...qt()};var eu=require("fs");Object.getOwnPropertyDescriptor(eu,"promises")&&Object.defineProperty(Jn.exports,"promises",{get(){return eu.promises}})});var nu=v((gm,ru)=>{"use strict";ru.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]}});var Vn=v((vm,su)=>{var Ft=nu(),iu={};for(let e of Object.keys(Ft))iu[Ft[e]]=e;var E={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"]}};su.exports=E;for(let e of Object.keys(E)){if(!("channels"in E[e]))throw new Error("missing channels property: "+e);if(!("labels"in E[e]))throw new Error("missing channel labels property: "+e);if(E[e].labels.length!==E[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:r}=E[e];delete E[e].channels,delete E[e].labels,Object.defineProperty(E[e],"channels",{value:t}),Object.defineProperty(E[e],"labels",{value:r})}E.rgb.hsl=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),s=Math.max(t,r,n),o=s-i,a,c;s===i?a=0:t===s?a=(r-n)/o:r===s?a=2+(n-t)/o:n===s&&(a=4+(t-r)/o),a=Math.min(a*60,360),a<0&&(a+=360);let d=(i+s)/2;return s===i?c=0:d<=.5?c=o/(s+i):c=o/(2-s-i),[a,c*100,d*100]};E.rgb.hsv=function(e){let t,r,n,i,s,o=e[0]/255,a=e[1]/255,c=e[2]/255,d=Math.max(o,a,c),h=d-Math.min(o,a,c),p=function(y){return(d-y)/6/h+1/2};return h===0?(i=0,s=0):(s=h/d,t=p(o),r=p(a),n=p(c),o===d?i=n-r:a===d?i=1/3+t-n:c===d&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,d*100]};E.rgb.hwb=function(e){let t=e[0],r=e[1],n=e[2],i=E.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,s*100,n*100]};E.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(1-t,1-r,1-n),s=(1-t-i)/(1-i)||0,o=(1-r-i)/(1-i)||0,a=(1-n-i)/(1-i)||0;return[s*100,o*100,a*100,i*100]};function jd(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}E.rgb.keyword=function(e){let t=iu[e];if(t)return t;let r=1/0,n;for(let i of Object.keys(Ft)){let s=Ft[i],o=jd(e,s);o<r&&(r=o,n=i)}return n};E.keyword.rgb=function(e){return Ft[e]};E.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let i=t*.4124+r*.3576+n*.1805,s=t*.2126+r*.7152+n*.0722,o=t*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};E.rgb.lab=function(e){let t=E.rgb.xyz(e),r=t[0],n=t[1],i=t[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let s=116*n-16,o=500*(r-n),a=200*(n-i);return[s,o,a]};E.hsl.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,i,s,o;if(r===0)return o=n*255,[o,o,o];n<.5?i=n*(1+r):i=n+r-n*r;let a=2*n-i,c=[0,0,0];for(let d=0;d<3;d++)s=t+1/3*-(d-1),s<0&&s++,s>1&&s--,6*s<1?o=a+(i-a)*6*s:2*s<1?o=i:3*s<2?o=a+(i-a)*(2/3-s)*6:o=a,c[d]=o*255;return c};E.hsl.hsv=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,i=r,s=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s;let o=(n+r)/2,a=n===0?2*i/(s+i):2*r/(n+r);return[t,a*100,o*100]};E.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,n=e[2]/100,i=Math.floor(t)%6,s=t-Math.floor(t),o=255*n*(1-r),a=255*n*(1-r*s),c=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,c,o];case 1:return[a,n,o];case 2:return[o,n,c];case 3:return[o,a,n];case 4:return[c,o,n];case 5:return[n,o,a]}};E.hsv.hsl=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01),s,o;o=(2-r)*n;let a=(2-r)*i;return s=r*i,s/=a<=1?a:2-a,s=s||0,o/=2,[t,s*100,o*100]};E.hwb.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,i=r+n,s;i>1&&(r/=i,n/=i);let o=Math.floor(6*t),a=1-n;s=6*t-o,o&1&&(s=1-s);let c=r+s*(a-r),d,h,p;switch(o){default:case 6:case 0:d=a,h=c,p=r;break;case 1:d=c,h=a,p=r;break;case 2:d=r,h=a,p=c;break;case 3:d=r,h=c,p=a;break;case 4:d=c,h=r,p=a;break;case 5:d=a,h=r,p=c;break}return[d*255,h*255,p*255]};E.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100,s=1-Math.min(1,t*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i);return[s*255,o*255,a*255]};E.xyz.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,i,s,o;return i=t*3.2406+r*-1.5372+n*-.4986,s=t*-.9689+r*1.8758+n*.0415,o=t*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[i*255,s*255,o*255]};E.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let i=116*r-16,s=500*(t-r),o=200*(r-n);return[i,s,o]};E.lab.xyz=function(e){let t=e[0],r=e[1],n=e[2],i,s,o;s=(t+16)/116,i=r/500+s,o=s-n/200;let a=s**3,c=i**3,d=o**3;return s=a>.008856?a:(s-16/116)/7.787,i=c>.008856?c:(i-16/116)/7.787,o=d>.008856?d:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};E.lab.lch=function(e){let t=e[0],r=e[1],n=e[2],i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);let o=Math.sqrt(r*r+n*n);return[t,o,i]};E.lch.lab=function(e){let t=e[0],r=e[1],i=e[2]/360*2*Math.PI,s=r*Math.cos(i),o=r*Math.sin(i);return[t,s,o]};E.rgb.ansi16=function(e,t=null){let[r,n,i]=e,s=t===null?E.rgb.hsv(e)[2]:t;if(s=Math.round(s/50),s===0)return 30;let o=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return s===2&&(o+=60),o};E.hsv.ansi16=function(e){return E.rgb.ansi16(E.hsv.rgb(e),e[2])};E.rgb.ansi256=function(e){let t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};E.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 r=(~~(e>50)+1)*.5,n=(t&1)*r*255,i=(t>>1&1)*r*255,s=(t>>2&1)*r*255;return[n,i,s]};E.ansi256.rgb=function(e){if(e>=232){let s=(e-232)*10+8;return[s,s,s]}e-=16;let t,r=Math.floor(e/36)/5*255,n=Math.floor((t=e%36)/6)/5*255,i=t%6/5*255;return[r,n,i]};E.rgb.hex=function(e){let r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};E.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 r=t[0];t[0].length===3&&(r=r.split("").map(a=>a+a).join(""));let n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};E.rgb.hcg=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),s=Math.min(Math.min(t,r),n),o=i-s,a,c;return o<1?a=s/(1-o):a=0,o<=0?c=0:i===t?c=(r-n)/o%6:i===r?c=2+(n-t)/o:c=4+(t-r)/o,c/=6,c%=1,[c*360,o*100,a*100]};E.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r),i=0;return n<1&&(i=(r-.5*n)/(1-n)),[e[0],n*100,i*100]};E.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=t*r,i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],n*100,i*100]};E.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];let i=[0,0,0],s=t%1*6,o=s%1,a=1-o,c=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=a,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]=a,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]=a}return c=(1-r)*n,[(r*i[0]+c)*255,(r*i[1]+c)*255,(r*i[2]+c)*255]};E.hcg.hsv=function(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t),i=0;return n>0&&(i=t/n),[e[0],i*100,n*100]};E.hcg.hsl=function(e){let t=e[1]/100,n=e[2]/100*(1-t)+.5*t,i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],i*100,n*100]};E.hcg.hwb=function(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};E.hwb.hcg=function(e){let t=e[1]/100,n=1-e[2]/100,i=n-t,s=0;return i<1&&(s=(n-i)/(1-i)),[e[0],i*100,s*100]};E.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};E.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};E.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};E.gray.hsl=function(e){return[0,0,e[0]]};E.gray.hsv=E.gray.hsl;E.gray.hwb=function(e){return[0,100,e[0]]};E.gray.cmyk=function(e){return[0,0,0,e[0]]};E.gray.lab=function(e){return[e[0],0,0]};E.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};E.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});var au=v((bm,ou)=>{var qr=Vn();function Ld(){let e={},t=Object.keys(qr);for(let r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function Bd(e){let t=Ld(),r=[e];for(t[e].distance=0;r.length;){let n=r.pop(),i=Object.keys(qr[n]);for(let s=i.length,o=0;o<s;o++){let a=i[o],c=t[a];c.distance===-1&&(c.distance=t[n].distance+1,c.parent=n,r.unshift(a))}}return t}function $d(e,t){return function(r){return t(e(r))}}function Hd(e,t){let r=[t[e].parent,e],n=qr[t[e].parent][e],i=t[e].parent;for(;t[i].parent;)r.unshift(t[i].parent),n=$d(qr[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}ou.exports=function(e){let t=Bd(e),r={},n=Object.keys(t);for(let i=n.length,s=0;s<i;s++){let o=n[s];t[o].parent!==null&&(r[o]=Hd(o,t))}return r}});var uu=v((wm,cu)=>{var Yn=Vn(),Ud=au(),at={},Gd=Object.keys(Yn);function zd(e){let t=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function Wd(e){let t=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let i=e(r);if(typeof i=="object")for(let s=i.length,o=0;o<s;o++)i[o]=Math.round(i[o]);return i};return"conversion"in e&&(t.conversion=e.conversion),t}Gd.forEach(e=>{at[e]={},Object.defineProperty(at[e],"channels",{value:Yn[e].channels}),Object.defineProperty(at[e],"labels",{value:Yn[e].labels});let t=Ud(e);Object.keys(t).forEach(n=>{let i=t[n];at[e][n]=Wd(i),at[e][n].raw=zd(i)})});cu.exports=at});var mu=v((_m,pu)=>{"use strict";var lu=(e,t)=>(...r)=>`\x1B[${e(...r)+t}m`,fu=(e,t)=>(...r)=>{let n=e(...r);return`\x1B[${38+t};5;${n}m`},hu=(e,t)=>(...r)=>{let n=e(...r);return`\x1B[${38+t};2;${n[0]};${n[1]};${n[2]}m`},Mr=e=>e,du=(e,t,r)=>[e,t,r],ct=(e,t,r)=>{Object.defineProperty(e,t,{get:()=>{let n=r();return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})},Xn,ut=(e,t,r,n)=>{Xn===void 0&&(Xn=uu());let i=n?10:0,s={};for(let[o,a]of Object.entries(Xn)){let c=o==="ansi16"?"ansi":o;o===t?s[c]=e(r,i):typeof a=="object"&&(s[c]=e(a[t],i))}return s};function Jd(){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[r,n]of Object.entries(t)){for(let[i,s]of Object.entries(n))t[i]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},n[i]=t[i],e.set(s[0],s[1]);Object.defineProperty(t,r,{value:n,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",ct(t.color,"ansi",()=>ut(lu,"ansi16",Mr,!1)),ct(t.color,"ansi256",()=>ut(fu,"ansi256",Mr,!1)),ct(t.color,"ansi16m",()=>ut(hu,"rgb",du,!1)),ct(t.bgColor,"ansi",()=>ut(lu,"ansi16",Mr,!0)),ct(t.bgColor,"ansi256",()=>ut(fu,"ansi256",Mr,!0)),ct(t.bgColor,"ansi16m",()=>ut(hu,"rgb",du,!0)),t}Object.defineProperty(pu,"exports",{enumerable:!0,get:Jd})});var gu=v((xm,yu)=>{"use strict";var Vd=(e,t,r)=>{let n=e.indexOf(t);if(n===-1)return e;let i=t.length,s=0,o="";do o+=e.substr(s,n-s)+t+r,s=n+i,n=e.indexOf(t,s);while(n!==-1);return o+=e.substr(s),o},Yd=(e,t,r,n)=>{let i=0,s="";do{let o=e[n-1]==="\r";s+=e.substr(i,(o?n-1:n)-i)+t+(o?`\r
|
|
16
16
|
`:`
|
|
17
17
|
`)+r,i=n+1,n=e.indexOf(`
|
|
18
|
-
`,i)}while(n!==-1);return s+=e.substr(i),s};
|
|
19
|
-
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function
|
|
20
|
-
`);return s!==-1&&(t=np(t,i,n,s)),n+t+i},Xn,Cu=(e,...t)=>{let[r]=t;if(!Pr(r)||!Pr(r.raw))return t.join(" ");let n=t.slice(1),i=[r.raw[0]];for(let s=1;s<r.length;s++)i.push(String(n[s-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[s]));return Xn===void 0&&(Xn=_u()),Xn(e,i.join(""))};Object.defineProperties(Fr.prototype,lt);var Nr=Fr();Nr.supportsColor=Kn;Nr.stderr=Fr({level:Qn?Qn.level:0});Nr.stderr.supportsColor=Qn;Ru.exports=Nr});var qu=v((ti,ri)=>{(function(e,t){typeof ti=="object"&&typeof ri<"u"?ri.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.tinycolor=t())})(ti,function(){"use strict";function e(u){return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},e(u)}var t=/^\s+/,r=/\s+$/;function n(u,f){if(u=u||"",f=f||{},u instanceof n)return u;if(!(this instanceof n))return new n(u,f);var l=i(u);this._originalInput=u,this._r=l.r,this._g=l.g,this._b=l.b,this._a=l.a,this._roundA=Math.round(100*this._a)/100,this._format=f.format||l.format,this._gradientType=f.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=l.ok}n.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var f=this.toRgb();return(f.r*299+f.g*587+f.b*114)/1e3},getLuminance:function(){var f=this.toRgb(),l,g,_,b,j,B;return l=f.r/255,g=f.g/255,_=f.b/255,l<=.03928?b=l/12.92:b=Math.pow((l+.055)/1.055,2.4),g<=.03928?j=g/12.92:j=Math.pow((g+.055)/1.055,2.4),_<=.03928?B=_/12.92:B=Math.pow((_+.055)/1.055,2.4),.2126*b+.7152*j+.0722*B},setAlpha:function(f){return this._a=U(f),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var f=c(this._r,this._g,this._b);return{h:f.h*360,s:f.s,v:f.v,a:this._a}},toHsvString:function(){var f=c(this._r,this._g,this._b),l=Math.round(f.h*360),g=Math.round(f.s*100),_=Math.round(f.v*100);return this._a==1?"hsv("+l+", "+g+"%, "+_+"%)":"hsva("+l+", "+g+"%, "+_+"%, "+this._roundA+")"},toHsl:function(){var f=o(this._r,this._g,this._b);return{h:f.h*360,s:f.s,l:f.l,a:this._a}},toHslString:function(){var f=o(this._r,this._g,this._b),l=Math.round(f.h*360),g=Math.round(f.s*100),_=Math.round(f.l*100);return this._a==1?"hsl("+l+", "+g+"%, "+_+"%)":"hsla("+l+", "+g+"%, "+_+"%, "+this._roundA+")"},toHex:function(f){return h(this._r,this._g,this._b,f)},toHexString:function(f){return"#"+this.toHex(f)},toHex8:function(f){return p(this._r,this._g,this._b,this._a,f)},toHex8String:function(f){return"#"+this.toHex8(f)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(M(this._r,255)*100)+"%",g:Math.round(M(this._g,255)*100)+"%",b:Math.round(M(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(M(this._r,255)*100)+"%, "+Math.round(M(this._g,255)*100)+"%, "+Math.round(M(this._b,255)*100)+"%)":"rgba("+Math.round(M(this._r,255)*100)+"%, "+Math.round(M(this._g,255)*100)+"%, "+Math.round(M(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:D[h(this._r,this._g,this._b,!0)]||!1},toFilter:function(f){var l="#"+y(this._r,this._g,this._b,this._a),g=l,_=this._gradientType?"GradientType = 1, ":"";if(f){var b=n(f);g="#"+y(b._r,b._g,b._b,b._a)}return"progid:DXImageTransform.Microsoft.gradient("+_+"startColorstr="+l+",endColorstr="+g+")"},toString:function(f){var l=!!f;f=f||this._format;var g=!1,_=this._a<1&&this._a>=0,b=!l&&_&&(f==="hex"||f==="hex6"||f==="hex3"||f==="hex4"||f==="hex8"||f==="name");return b?f==="name"&&this._a===0?this.toName():this.toRgbString():(f==="rgb"&&(g=this.toRgbString()),f==="prgb"&&(g=this.toPercentageRgbString()),(f==="hex"||f==="hex6")&&(g=this.toHexString()),f==="hex3"&&(g=this.toHexString(!0)),f==="hex4"&&(g=this.toHex8String(!0)),f==="hex8"&&(g=this.toHex8String()),f==="name"&&(g=this.toName()),f==="hsl"&&(g=this.toHslString()),f==="hsv"&&(g=this.toHsvString()),g||this.toHexString())},clone:function(){return n(this.toString())},_applyModification:function(f,l){var g=f.apply(null,[this].concat([].slice.call(l)));return this._r=g._r,this._g=g._g,this._b=g._b,this.setAlpha(g._a),this},lighten:function(){return this._applyModification(O,arguments)},brighten:function(){return this._applyModification(N,arguments)},darken:function(){return this._applyModification(S,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(w,arguments)},greyscale:function(){return this._applyModification(A,arguments)},spin:function(){return this._applyModification(C,arguments)},_applyCombination:function(f,l){return f.apply(null,[this].concat([].slice.call(l)))},analogous:function(){return this._applyCombination(Ce,arguments)},complement:function(){return this._applyCombination(P,arguments)},monochromatic:function(){return this._applyCombination(ce,arguments)},splitcomplement:function(){return this._applyCombination(de,arguments)},triad:function(){return this._applyCombination(J,[3])},tetrad:function(){return this._applyCombination(J,[4])}},n.fromRatio=function(u,f){if(e(u)=="object"){var l={};for(var g in u)u.hasOwnProperty(g)&&(g==="a"?l[g]=u[g]:l[g]=F(u[g]));u=l}return n(u,f)};function i(u){var f={r:0,g:0,b:0},l=1,g=null,_=null,b=null,j=!1,B=!1;return typeof u=="string"&&(u=Dt(u)),e(u)=="object"&&(ye(u.r)&&ye(u.g)&&ye(u.b)?(f=s(u.r,u.g,u.b),j=!0,B=String(u.r).substr(-1)==="%"?"prgb":"rgb"):ye(u.h)&&ye(u.s)&&ye(u.v)?(g=F(u.s),_=F(u.v),f=d(u.h,g,_),j=!0,B="hsv"):ye(u.h)&&ye(u.s)&&ye(u.l)&&(g=F(u.s),b=F(u.l),f=a(u.h,g,b),j=!0,B="hsl"),u.hasOwnProperty("a")&&(l=u.a)),l=U(l),{ok:j,format:u.format||B,r:Math.min(255,Math.max(f.r,0)),g:Math.min(255,Math.max(f.g,0)),b:Math.min(255,Math.max(f.b,0)),a:l}}function s(u,f,l){return{r:M(u,255)*255,g:M(f,255)*255,b:M(l,255)*255}}function o(u,f,l){u=M(u,255),f=M(f,255),l=M(l,255);var g=Math.max(u,f,l),_=Math.min(u,f,l),b,j,B=(g+_)/2;if(g==_)b=j=0;else{var z=g-_;switch(j=B>.5?z/(2-g-_):z/(g+_),g){case u:b=(f-l)/z+(f<l?6:0);break;case f:b=(l-u)/z+2;break;case l:b=(u-f)/z+4;break}b/=6}return{h:b,s:j,l:B}}function a(u,f,l){var g,_,b;u=M(u,360),f=M(f,100),l=M(l,100);function j(ve,ht,we){return we<0&&(we+=1),we>1&&(we-=1),we<1/6?ve+(ht-ve)*6*we:we<1/2?ht:we<2/3?ve+(ht-ve)*(2/3-we)*6:ve}if(f===0)g=_=b=l;else{var B=l<.5?l*(1+f):l+f-l*f,z=2*l-B;g=j(z,B,u+1/3),_=j(z,B,u),b=j(z,B,u-1/3)}return{r:g*255,g:_*255,b:b*255}}function c(u,f,l){u=M(u,255),f=M(f,255),l=M(l,255);var g=Math.max(u,f,l),_=Math.min(u,f,l),b,j,B=g,z=g-_;if(j=g===0?0:z/g,g==_)b=0;else{switch(g){case u:b=(f-l)/z+(f<l?6:0);break;case f:b=(l-u)/z+2;break;case l:b=(u-f)/z+4;break}b/=6}return{h:b,s:j,v:B}}function d(u,f,l){u=M(u,360)*6,f=M(f,100),l=M(l,100);var g=Math.floor(u),_=u-g,b=l*(1-f),j=l*(1-_*f),B=l*(1-(1-_)*f),z=g%6,ve=[l,j,b,b,B,l][z],ht=[B,l,l,j,b,b][z],we=[b,b,B,l,l,j][z];return{r:ve*255,g:ht*255,b:we*255}}function h(u,f,l,g){var _=[k(Math.round(u).toString(16)),k(Math.round(f).toString(16)),k(Math.round(l).toString(16))];return g&&_[0].charAt(0)==_[0].charAt(1)&&_[1].charAt(0)==_[1].charAt(1)&&_[2].charAt(0)==_[2].charAt(1)?_[0].charAt(0)+_[1].charAt(0)+_[2].charAt(0):_.join("")}function p(u,f,l,g,_){var b=[k(Math.round(u).toString(16)),k(Math.round(f).toString(16)),k(Math.round(l).toString(16)),k(Re(g))];return _&&b[0].charAt(0)==b[0].charAt(1)&&b[1].charAt(0)==b[1].charAt(1)&&b[2].charAt(0)==b[2].charAt(1)&&b[3].charAt(0)==b[3].charAt(1)?b[0].charAt(0)+b[1].charAt(0)+b[2].charAt(0)+b[3].charAt(0):b.join("")}function y(u,f,l,g){var _=[k(Re(g)),k(Math.round(u).toString(16)),k(Math.round(f).toString(16)),k(Math.round(l).toString(16))];return _.join("")}n.equals=function(u,f){return!u||!f?!1:n(u).toRgbString()==n(f).toRgbString()},n.random=function(){return n.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function m(u,f){f=f===0?0:f||10;var l=n(u).toHsl();return l.s-=f/100,l.s=H(l.s),n(l)}function w(u,f){f=f===0?0:f||10;var l=n(u).toHsl();return l.s+=f/100,l.s=H(l.s),n(l)}function A(u){return n(u).desaturate(100)}function O(u,f){f=f===0?0:f||10;var l=n(u).toHsl();return l.l+=f/100,l.l=H(l.l),n(l)}function N(u,f){f=f===0?0:f||10;var l=n(u).toRgb();return l.r=Math.max(0,Math.min(255,l.r-Math.round(255*-(f/100)))),l.g=Math.max(0,Math.min(255,l.g-Math.round(255*-(f/100)))),l.b=Math.max(0,Math.min(255,l.b-Math.round(255*-(f/100)))),n(l)}function S(u,f){f=f===0?0:f||10;var l=n(u).toHsl();return l.l-=f/100,l.l=H(l.l),n(l)}function C(u,f){var l=n(u).toHsl(),g=(l.h+f)%360;return l.h=g<0?360+g:g,n(l)}function P(u){var f=n(u).toHsl();return f.h=(f.h+180)%360,n(f)}function J(u,f){if(isNaN(f)||f<=0)throw new Error("Argument to polyad must be a positive number");for(var l=n(u).toHsl(),g=[n(u)],_=360/f,b=1;b<f;b++)g.push(n({h:(l.h+b*_)%360,s:l.s,l:l.l}));return g}function de(u){var f=n(u).toHsl(),l=f.h;return[n(u),n({h:(l+72)%360,s:f.s,l:f.l}),n({h:(l+216)%360,s:f.s,l:f.l})]}function Ce(u,f,l){f=f||6,l=l||30;var g=n(u).toHsl(),_=360/l,b=[n(u)];for(g.h=(g.h-(_*f>>1)+720)%360;--f;)g.h=(g.h+_)%360,b.push(n(g));return b}function ce(u,f){f=f||6;for(var l=n(u).toHsv(),g=l.h,_=l.s,b=l.v,j=[],B=1/f;f--;)j.push(n({h:g,s:_,v:b})),b=(b+B)%1;return j}n.mix=function(u,f,l){l=l===0?0:l||50;var g=n(u).toRgb(),_=n(f).toRgb(),b=l/100,j={r:(_.r-g.r)*b+g.r,g:(_.g-g.g)*b+g.g,b:(_.b-g.b)*b+g.b,a:(_.a-g.a)*b+g.a};return n(j)},n.readability=function(u,f){var l=n(u),g=n(f);return(Math.max(l.getLuminance(),g.getLuminance())+.05)/(Math.min(l.getLuminance(),g.getLuminance())+.05)},n.isReadable=function(u,f,l){var g=n.readability(u,f),_,b;switch(b=!1,_=ge(l),_.level+_.size){case"AAsmall":case"AAAlarge":b=g>=4.5;break;case"AAlarge":b=g>=3;break;case"AAAsmall":b=g>=7;break}return b},n.mostReadable=function(u,f,l){var g=null,_=0,b,j,B,z;l=l||{},j=l.includeFallbackColors,B=l.level,z=l.size;for(var ve=0;ve<f.length;ve++)b=n.readability(u,f[ve]),b>_&&(_=b,g=n(f[ve]));return n.isReadable(u,g,{level:B,size:z})||!j?g:(l.includeFallbackColors=!1,n.mostReadable(u,["#fff","#000"],l))};var q=n.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},D=n.hexNames=I(q);function I(u){var f={};for(var l in u)u.hasOwnProperty(l)&&(f[u[l]]=l);return f}function U(u){return u=parseFloat(u),(isNaN(u)||u<0||u>1)&&(u=1),u}function M(u,f){L(u)&&(u="100%");var l=T(u);return u=Math.min(f,Math.max(0,parseFloat(u))),l&&(u=parseInt(u*f,10)/100),Math.abs(u-f)<1e-6?1:u%f/parseFloat(f)}function H(u){return Math.min(1,Math.max(0,u))}function R(u){return parseInt(u,16)}function L(u){return typeof u=="string"&&u.indexOf(".")!=-1&&parseFloat(u)===1}function T(u){return typeof u=="string"&&u.indexOf("%")!=-1}function k(u){return u.length==1?"0"+u:""+u}function F(u){return u<=1&&(u=u*100+"%"),u}function Re(u){return Math.round(parseFloat(u)*255).toString(16)}function Ne(u){return R(u)/255}var ue=function(){var u="[-\\+]?\\d+%?",f="[-\\+]?\\d*\\.\\d+%?",l="(?:"+f+")|(?:"+u+")",g="[\\s|\\(]+("+l+")[,|\\s]+("+l+")[,|\\s]+("+l+")\\s*\\)?",_="[\\s|\\(]+("+l+")[,|\\s]+("+l+")[,|\\s]+("+l+")[,|\\s]+("+l+")\\s*\\)?";return{CSS_UNIT:new RegExp(l),rgb:new RegExp("rgb"+g),rgba:new RegExp("rgba"+_),hsl:new RegExp("hsl"+g),hsla:new RegExp("hsla"+_),hsv:new RegExp("hsv"+g),hsva:new RegExp("hsva"+_),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function ye(u){return!!ue.CSS_UNIT.exec(u)}function Dt(u){u=u.replace(t,"").replace(r,"").toLowerCase();var f=!1;if(q[u])u=q[u],f=!0;else if(u=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var l;return(l=ue.rgb.exec(u))?{r:l[1],g:l[2],b:l[3]}:(l=ue.rgba.exec(u))?{r:l[1],g:l[2],b:l[3],a:l[4]}:(l=ue.hsl.exec(u))?{h:l[1],s:l[2],l:l[3]}:(l=ue.hsla.exec(u))?{h:l[1],s:l[2],l:l[3],a:l[4]}:(l=ue.hsv.exec(u))?{h:l[1],s:l[2],v:l[3]}:(l=ue.hsva.exec(u))?{h:l[1],s:l[2],v:l[3],a:l[4]}:(l=ue.hex8.exec(u))?{r:R(l[1]),g:R(l[2]),b:R(l[3]),a:Ne(l[4]),format:f?"name":"hex8"}:(l=ue.hex6.exec(u))?{r:R(l[1]),g:R(l[2]),b:R(l[3]),format:f?"name":"hex"}:(l=ue.hex4.exec(u))?{r:R(l[1]+""+l[1]),g:R(l[2]+""+l[2]),b:R(l[3]+""+l[3]),a:Ne(l[4]+""+l[4]),format:f?"name":"hex8"}:(l=ue.hex3.exec(u))?{r:R(l[1]+""+l[1]),g:R(l[2]+""+l[2]),b:R(l[3]+""+l[3]),format:f?"name":"hex"}:!1}function ge(u){var f,l;return u=u||{level:"AA",size:"small"},f=(u.level||"AA").toUpperCase(),l=(u.size||"small").toLowerCase(),f!=="AA"&&f!=="AAA"&&(f="AA"),l!=="small"&&l!=="large"&&(l="small"),{level:f,size:l}}return n})});var Iu=v((Sm,Nu)=>{var Tt=qu(),Fu={r:256,g:256,b:256,a:1},Tu={h:360,s:1,v:1,a:1};function ii(e,t,r){let n={};for(let i in e)e.hasOwnProperty(i)&&(n[i]=r===0?0:(t[i]-e[i])/r);return n}function si(e,t,r,n){let i={};for(let s in t)t.hasOwnProperty(s)&&(i[s]=e[s]*r+t[s],i[s]=i[s]<0?i[s]+n[s]:n[s]!==1?i[s]%n[s]:i[s]);return i}function ni(e,t,r){let n=e.color.toRgb(),i=t.color.toRgb(),s=ii(n,i,r),o=[e.color];for(let a=1;a<r;a++){let c=si(s,n,a,Fu);o.push(Tt(c))}return o}function Au(e,t,r,n){let i=e.color.toHsv(),s=t.color.toHsv();if(i.s===0||s.s===0)return ni(e,t,r);let o;if(typeof n=="boolean")o=n;else{let h=i.h<s.h&&s.h-i.h<180||i.h>s.h&&i.h-s.h>180;o=n==="long"&&h||n==="short"&&!h}let a=ii(i,s,r),c=[e.color],d;i.h<=s.h&&!o||i.h>=s.h&&o?d=s.h-i.h:o?d=360-s.h+i.h:d=360-i.h+s.h,a.h=Math.pow(-1,o?1:0)*Math.abs(d)/r;for(let h=1;h<r;h++){let p=si(a,i,h,Tu);c.push(Tt(p))}return c}function Mu(e,t){let r=e.length;if(t=parseInt(t,10),isNaN(t)||t<2)throw new Error("Invalid number of steps (< 2)");if(t<r)throw new Error("Number of steps cannot be inferior to number of stops");let n=[];for(let s=1;s<r;s++){let o=(t-1)*(e[s].pos-e[s-1].pos);n.push(Math.max(1,Math.round(o)))}let i=1;for(let s=r-1;s--;)i+=n[s];for(;i!==t;)if(i<t){let s=Math.min.apply(null,n);n[n.indexOf(s)]++,i++}else{let s=Math.max.apply(null,n);n[n.indexOf(s)]--,i--}return n}function Pu(e,t,r,n){if(t<0||t>1)throw new Error("Position must be between 0 and 1");let i,s;for(let c=0,d=e.length;c<d-1;c++)if(t>=e[c].pos&&t<e[c+1].pos){i=e[c],s=e[c+1];break}i||(i=s=e[e.length-1]);let o=ii(i.color[r](),s.color[r](),(s.pos-i.pos)*100),a=si(o,i.color[r](),(t-i.pos)*100,n);return Tt(a)}var ft=class{constructor(t){if(t.length<2)throw new Error("Invalid number of stops (< 2)");let r=t[0].pos!==void 0,n=t.length,i=-1,s=!1;this.stops=t.map((o,a)=>{let c=o.pos!==void 0;if(r^c)throw new Error("Cannot mix positionned and not posionned color stops");if(c){let d=o.color!==void 0;if(!d&&(s||a===0||a===n-1))throw new Error("Cannot define two consecutive position-only stops");if(s=!d,o={color:d?Tt(o.color):null,colorLess:!d,pos:o.pos},o.pos<0||o.pos>1)throw new Error("Color stops positions must be between 0 and 1");if(o.pos<i)throw new Error("Color stops positions are not ordered");i=o.pos}else o={color:Tt(o.color!==void 0?o.color:o),pos:a/(n-1)};return o}),this.stops[0].pos!==0&&(this.stops.unshift({color:this.stops[0].color,pos:0}),n++),this.stops[n-1].pos!==1&&this.stops.push({color:this.stops[n-1].color,pos:1})}reverse(){let t=[];return this.stops.forEach(function(r){t.push({color:r.color,pos:1-r.pos})}),new ft(t.reverse())}loop(){let t=[],r=[];return this.stops.forEach(n=>{t.push({color:n.color,pos:n.pos/2})}),this.stops.slice(0,-1).forEach(n=>{r.push({color:n.color,pos:1-n.pos/2})}),new ft(t.concat(r.reverse()))}rgb(t){let r=Mu(this.stops,t),n=[];this.stops.forEach((i,s)=>{i.colorLess&&(i.color=ni(this.stops[s-1],this.stops[s+1],2)[1])});for(let i=0,s=this.stops.length;i<s-1;i++){let o=ni(this.stops[i],this.stops[i+1],r[i]);n.splice(n.length,0,...o)}return n.push(this.stops[this.stops.length-1].color),n}hsv(t,r){let n=Mu(this.stops,t),i=[];this.stops.forEach((s,o)=>{s.colorLess&&(s.color=Au(this.stops[o-1],this.stops[o+1],2,r)[1])});for(let s=0,o=this.stops.length;s<o-1;s++){let a=Au(this.stops[s],this.stops[s+1],n[s],r);i.splice(i.length,0,...a)}return i.push(this.stops[this.stops.length-1].color),i}css(t,r){t=t||"linear",r=r||(t==="linear"?"to right":"ellipse at center");let n=t+"-gradient("+r;return this.stops.forEach(function(i){n+=", "+(i.colorLess?"":i.color.toRgbString()+" ")+i.pos*100+"%"}),n+=")",n}rgbAt(t){return Pu(this.stops,t,"toRgb",Fu)}hsvAt(t){return Pu(this.stops,t,"toHsv",Tu)}};Nu.exports=function(e){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');e=arguments[0]}else e=Array.prototype.slice.call(arguments);return new ft(e)}});var $u=v((km,Ir)=>{"use strict";var ju=Ou(),op=Iu(),Du=/\s/g;function oi(...e){let t=op.apply(this,e),r=(n,i)=>ap(n?n.toString():"",t,i);return r.multiline=(n,i)=>cp(n?n.toString():"",t,i),r}var Lu=(e,t,r)=>t.interpolation.toLowerCase()==="hsv"?e.hsv(r,t.hsvSpin.toLowerCase()):e.rgb(r);function ap(e,t,r){let n=Bu(r),i=Math.max(e.replace(Du,"").length,t.stops.length),s=Lu(t,n,i),o="";for(let a of e)o+=a.match(Du)?a:ju.hex(s.shift().toHex())(a);return o}function cp(e,t,r){let n=Bu(r),i=e.split(`
|
|
21
|
-
`),s=Math.max.apply(null,i.map(c=>c.length).concat([t.stops.length])),o=
|
|
22
|
-
`)}function
|
|
23
|
-
\u{1FA84} Cache initialized`)}function
|
|
18
|
+
`,i)}while(n!==-1);return s+=e.substr(i),s};yu.exports={stringReplaceAll:Vd,stringEncaseCRLFWithFirstIndex:Yd}});var xu=v((Em,_u)=>{"use strict";var Xd=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,vu=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Kd=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Qd=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,Zd=new Map([["n",`
|
|
19
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function wu(e){let t=e[0]==="u",r=e[1]==="{";return t&&!r&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):t&&r?String.fromCodePoint(parseInt(e.slice(2,-1),16)):Zd.get(e)||e}function ep(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),i;for(let s of n){let o=Number(s);if(!Number.isNaN(o))r.push(o);else if(i=s.match(Kd))r.push(i[2].replace(Qd,(a,c,d)=>c?wu(c):d));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${e}')`)}return r}function tp(e){vu.lastIndex=0;let t=[],r;for(;(r=vu.exec(e))!==null;){let n=r[1];if(r[2]){let i=ep(n,r[2]);t.push([n].concat(i))}else t.push([n])}return t}function bu(e,t){let r={};for(let i of t)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=e;for(let[i,s]of Object.entries(r))if(Array.isArray(s)){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);n=s.length>0?n[i](...s):n[i]}return n}_u.exports=(e,t)=>{let r=[],n=[],i=[];if(t.replace(Xd,(s,o,a,c,d,h)=>{if(o)i.push(wu(o));else if(c){let p=i.join("");i=[],n.push(r.length===0?p:bu(e,r)(p)),r.push({inverse:a,styles:tp(c)})}else if(d){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(bu(e,r)(i.join(""))),i=[],r.pop()}else i.push(h)}),n.push(i.join("")),r.length>0){let s=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(s)}return n.join("")}});var Au=v((Sm,Ou)=>{"use strict";var Tt=mu(),{stdout:Qn,stderr:Zn}=ln(),{stringReplaceAll:rp,stringEncaseCRLFWithFirstIndex:np}=gu(),{isArray:Pr}=Array,Su=["ansi","ansi","ansi256","ansi16m"],lt=Object.create(null),ip=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=Qn?Qn.level:0;e.level=t.level===void 0?r:t.level},ei=class{constructor(t){return ku(t)}},ku=e=>{let t={};return ip(t,e),t.template=(...r)=>Ru(t.template,...r),Object.setPrototypeOf(t,Fr.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=ei,t.template};function Fr(e){return ku(e)}for(let[e,t]of Object.entries(Tt))lt[e]={get(){let r=Tr(this,ti(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:r}),r}};lt.visible={get(){let e=Tr(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};var Cu=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let e of Cu)lt[e]={get(){let{level:t}=this;return function(...r){let n=ti(Tt.color[Su[t]][e](...r),Tt.color.close,this._styler);return Tr(this,n,this._isEmpty)}}};for(let e of Cu){let t="bg"+e[0].toUpperCase()+e.slice(1);lt[t]={get(){let{level:r}=this;return function(...n){let i=ti(Tt.bgColor[Su[r]][e](...n),Tt.bgColor.close,this._styler);return Tr(this,i,this._isEmpty)}}}}var sp=Object.defineProperties(()=>{},{...lt,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),ti=(e,t,r)=>{let n,i;return r===void 0?(n=e,i=t):(n=r.openAll+e,i=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:i,parent:r}},Tr=(e,t,r)=>{let n=(...i)=>Pr(i[0])&&Pr(i[0].raw)?Eu(n,Ru(n,...i)):Eu(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,sp),n._generator=e,n._styler=t,n._isEmpty=r,n},Eu=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let r=e._styler;if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.indexOf("\x1B")!==-1)for(;r!==void 0;)t=rp(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
|
|
20
|
+
`);return s!==-1&&(t=np(t,i,n,s)),n+t+i},Kn,Ru=(e,...t)=>{let[r]=t;if(!Pr(r)||!Pr(r.raw))return t.join(" ");let n=t.slice(1),i=[r.raw[0]];for(let s=1;s<r.length;s++)i.push(String(n[s-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[s]));return Kn===void 0&&(Kn=xu()),Kn(e,i.join(""))};Object.defineProperties(Fr.prototype,lt);var Ir=Fr();Ir.supportsColor=Qn;Ir.stderr=Fr({level:Zn?Zn.level:0});Ir.stderr.supportsColor=Zn;Ou.exports=Ir});var qu=v((ri,ni)=>{(function(e,t){typeof ri=="object"&&typeof ni<"u"?ni.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.tinycolor=t())})(ri,function(){"use strict";function e(u){return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},e(u)}var t=/^\s+/,r=/\s+$/;function n(u,f){if(u=u||"",f=f||{},u instanceof n)return u;if(!(this instanceof n))return new n(u,f);var l=i(u);this._originalInput=u,this._r=l.r,this._g=l.g,this._b=l.b,this._a=l.a,this._roundA=Math.round(100*this._a)/100,this._format=f.format||l.format,this._gradientType=f.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=l.ok}n.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var f=this.toRgb();return(f.r*299+f.g*587+f.b*114)/1e3},getLuminance:function(){var f=this.toRgb(),l,g,_,b,j,B;return l=f.r/255,g=f.g/255,_=f.b/255,l<=.03928?b=l/12.92:b=Math.pow((l+.055)/1.055,2.4),g<=.03928?j=g/12.92:j=Math.pow((g+.055)/1.055,2.4),_<=.03928?B=_/12.92:B=Math.pow((_+.055)/1.055,2.4),.2126*b+.7152*j+.0722*B},setAlpha:function(f){return this._a=U(f),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var f=c(this._r,this._g,this._b);return{h:f.h*360,s:f.s,v:f.v,a:this._a}},toHsvString:function(){var f=c(this._r,this._g,this._b),l=Math.round(f.h*360),g=Math.round(f.s*100),_=Math.round(f.v*100);return this._a==1?"hsv("+l+", "+g+"%, "+_+"%)":"hsva("+l+", "+g+"%, "+_+"%, "+this._roundA+")"},toHsl:function(){var f=o(this._r,this._g,this._b);return{h:f.h*360,s:f.s,l:f.l,a:this._a}},toHslString:function(){var f=o(this._r,this._g,this._b),l=Math.round(f.h*360),g=Math.round(f.s*100),_=Math.round(f.l*100);return this._a==1?"hsl("+l+", "+g+"%, "+_+"%)":"hsla("+l+", "+g+"%, "+_+"%, "+this._roundA+")"},toHex:function(f){return h(this._r,this._g,this._b,f)},toHexString:function(f){return"#"+this.toHex(f)},toHex8:function(f){return p(this._r,this._g,this._b,this._a,f)},toHex8String:function(f){return"#"+this.toHex8(f)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(M(this._r,255)*100)+"%",g:Math.round(M(this._g,255)*100)+"%",b:Math.round(M(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(M(this._r,255)*100)+"%, "+Math.round(M(this._g,255)*100)+"%, "+Math.round(M(this._b,255)*100)+"%)":"rgba("+Math.round(M(this._r,255)*100)+"%, "+Math.round(M(this._g,255)*100)+"%, "+Math.round(M(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:D[h(this._r,this._g,this._b,!0)]||!1},toFilter:function(f){var l="#"+y(this._r,this._g,this._b,this._a),g=l,_=this._gradientType?"GradientType = 1, ":"";if(f){var b=n(f);g="#"+y(b._r,b._g,b._b,b._a)}return"progid:DXImageTransform.Microsoft.gradient("+_+"startColorstr="+l+",endColorstr="+g+")"},toString:function(f){var l=!!f;f=f||this._format;var g=!1,_=this._a<1&&this._a>=0,b=!l&&_&&(f==="hex"||f==="hex6"||f==="hex3"||f==="hex4"||f==="hex8"||f==="name");return b?f==="name"&&this._a===0?this.toName():this.toRgbString():(f==="rgb"&&(g=this.toRgbString()),f==="prgb"&&(g=this.toPercentageRgbString()),(f==="hex"||f==="hex6")&&(g=this.toHexString()),f==="hex3"&&(g=this.toHexString(!0)),f==="hex4"&&(g=this.toHex8String(!0)),f==="hex8"&&(g=this.toHex8String()),f==="name"&&(g=this.toName()),f==="hsl"&&(g=this.toHslString()),f==="hsv"&&(g=this.toHsvString()),g||this.toHexString())},clone:function(){return n(this.toString())},_applyModification:function(f,l){var g=f.apply(null,[this].concat([].slice.call(l)));return this._r=g._r,this._g=g._g,this._b=g._b,this.setAlpha(g._a),this},lighten:function(){return this._applyModification(O,arguments)},brighten:function(){return this._applyModification(I,arguments)},darken:function(){return this._applyModification(S,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(w,arguments)},greyscale:function(){return this._applyModification(q,arguments)},spin:function(){return this._applyModification(C,arguments)},_applyCombination:function(f,l){return f.apply(null,[this].concat([].slice.call(l)))},analogous:function(){return this._applyCombination(Se,arguments)},complement:function(){return this._applyCombination(P,arguments)},monochromatic:function(){return this._applyCombination(ce,arguments)},splitcomplement:function(){return this._applyCombination(de,arguments)},triad:function(){return this._applyCombination(J,[3])},tetrad:function(){return this._applyCombination(J,[4])}},n.fromRatio=function(u,f){if(e(u)=="object"){var l={};for(var g in u)u.hasOwnProperty(g)&&(g==="a"?l[g]=u[g]:l[g]=F(u[g]));u=l}return n(u,f)};function i(u){var f={r:0,g:0,b:0},l=1,g=null,_=null,b=null,j=!1,B=!1;return typeof u=="string"&&(u=Dt(u)),e(u)=="object"&&(ye(u.r)&&ye(u.g)&&ye(u.b)?(f=s(u.r,u.g,u.b),j=!0,B=String(u.r).substr(-1)==="%"?"prgb":"rgb"):ye(u.h)&&ye(u.s)&&ye(u.v)?(g=F(u.s),_=F(u.v),f=d(u.h,g,_),j=!0,B="hsv"):ye(u.h)&&ye(u.s)&&ye(u.l)&&(g=F(u.s),b=F(u.l),f=a(u.h,g,b),j=!0,B="hsl"),u.hasOwnProperty("a")&&(l=u.a)),l=U(l),{ok:j,format:u.format||B,r:Math.min(255,Math.max(f.r,0)),g:Math.min(255,Math.max(f.g,0)),b:Math.min(255,Math.max(f.b,0)),a:l}}function s(u,f,l){return{r:M(u,255)*255,g:M(f,255)*255,b:M(l,255)*255}}function o(u,f,l){u=M(u,255),f=M(f,255),l=M(l,255);var g=Math.max(u,f,l),_=Math.min(u,f,l),b,j,B=(g+_)/2;if(g==_)b=j=0;else{var z=g-_;switch(j=B>.5?z/(2-g-_):z/(g+_),g){case u:b=(f-l)/z+(f<l?6:0);break;case f:b=(l-u)/z+2;break;case l:b=(u-f)/z+4;break}b/=6}return{h:b,s:j,l:B}}function a(u,f,l){var g,_,b;u=M(u,360),f=M(f,100),l=M(l,100);function j(ve,dt,we){return we<0&&(we+=1),we>1&&(we-=1),we<1/6?ve+(dt-ve)*6*we:we<1/2?dt:we<2/3?ve+(dt-ve)*(2/3-we)*6:ve}if(f===0)g=_=b=l;else{var B=l<.5?l*(1+f):l+f-l*f,z=2*l-B;g=j(z,B,u+1/3),_=j(z,B,u),b=j(z,B,u-1/3)}return{r:g*255,g:_*255,b:b*255}}function c(u,f,l){u=M(u,255),f=M(f,255),l=M(l,255);var g=Math.max(u,f,l),_=Math.min(u,f,l),b,j,B=g,z=g-_;if(j=g===0?0:z/g,g==_)b=0;else{switch(g){case u:b=(f-l)/z+(f<l?6:0);break;case f:b=(l-u)/z+2;break;case l:b=(u-f)/z+4;break}b/=6}return{h:b,s:j,v:B}}function d(u,f,l){u=M(u,360)*6,f=M(f,100),l=M(l,100);var g=Math.floor(u),_=u-g,b=l*(1-f),j=l*(1-_*f),B=l*(1-(1-_)*f),z=g%6,ve=[l,j,b,b,B,l][z],dt=[B,l,l,j,b,b][z],we=[b,b,B,l,l,j][z];return{r:ve*255,g:dt*255,b:we*255}}function h(u,f,l,g){var _=[k(Math.round(u).toString(16)),k(Math.round(f).toString(16)),k(Math.round(l).toString(16))];return g&&_[0].charAt(0)==_[0].charAt(1)&&_[1].charAt(0)==_[1].charAt(1)&&_[2].charAt(0)==_[2].charAt(1)?_[0].charAt(0)+_[1].charAt(0)+_[2].charAt(0):_.join("")}function p(u,f,l,g,_){var b=[k(Math.round(u).toString(16)),k(Math.round(f).toString(16)),k(Math.round(l).toString(16)),k(Re(g))];return _&&b[0].charAt(0)==b[0].charAt(1)&&b[1].charAt(0)==b[1].charAt(1)&&b[2].charAt(0)==b[2].charAt(1)&&b[3].charAt(0)==b[3].charAt(1)?b[0].charAt(0)+b[1].charAt(0)+b[2].charAt(0)+b[3].charAt(0):b.join("")}function y(u,f,l,g){var _=[k(Re(g)),k(Math.round(u).toString(16)),k(Math.round(f).toString(16)),k(Math.round(l).toString(16))];return _.join("")}n.equals=function(u,f){return!u||!f?!1:n(u).toRgbString()==n(f).toRgbString()},n.random=function(){return n.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function m(u,f){f=f===0?0:f||10;var l=n(u).toHsl();return l.s-=f/100,l.s=H(l.s),n(l)}function w(u,f){f=f===0?0:f||10;var l=n(u).toHsl();return l.s+=f/100,l.s=H(l.s),n(l)}function q(u){return n(u).desaturate(100)}function O(u,f){f=f===0?0:f||10;var l=n(u).toHsl();return l.l+=f/100,l.l=H(l.l),n(l)}function I(u,f){f=f===0?0:f||10;var l=n(u).toRgb();return l.r=Math.max(0,Math.min(255,l.r-Math.round(255*-(f/100)))),l.g=Math.max(0,Math.min(255,l.g-Math.round(255*-(f/100)))),l.b=Math.max(0,Math.min(255,l.b-Math.round(255*-(f/100)))),n(l)}function S(u,f){f=f===0?0:f||10;var l=n(u).toHsl();return l.l-=f/100,l.l=H(l.l),n(l)}function C(u,f){var l=n(u).toHsl(),g=(l.h+f)%360;return l.h=g<0?360+g:g,n(l)}function P(u){var f=n(u).toHsl();return f.h=(f.h+180)%360,n(f)}function J(u,f){if(isNaN(f)||f<=0)throw new Error("Argument to polyad must be a positive number");for(var l=n(u).toHsl(),g=[n(u)],_=360/f,b=1;b<f;b++)g.push(n({h:(l.h+b*_)%360,s:l.s,l:l.l}));return g}function de(u){var f=n(u).toHsl(),l=f.h;return[n(u),n({h:(l+72)%360,s:f.s,l:f.l}),n({h:(l+216)%360,s:f.s,l:f.l})]}function Se(u,f,l){f=f||6,l=l||30;var g=n(u).toHsl(),_=360/l,b=[n(u)];for(g.h=(g.h-(_*f>>1)+720)%360;--f;)g.h=(g.h+_)%360,b.push(n(g));return b}function ce(u,f){f=f||6;for(var l=n(u).toHsv(),g=l.h,_=l.s,b=l.v,j=[],B=1/f;f--;)j.push(n({h:g,s:_,v:b})),b=(b+B)%1;return j}n.mix=function(u,f,l){l=l===0?0:l||50;var g=n(u).toRgb(),_=n(f).toRgb(),b=l/100,j={r:(_.r-g.r)*b+g.r,g:(_.g-g.g)*b+g.g,b:(_.b-g.b)*b+g.b,a:(_.a-g.a)*b+g.a};return n(j)},n.readability=function(u,f){var l=n(u),g=n(f);return(Math.max(l.getLuminance(),g.getLuminance())+.05)/(Math.min(l.getLuminance(),g.getLuminance())+.05)},n.isReadable=function(u,f,l){var g=n.readability(u,f),_,b;switch(b=!1,_=ge(l),_.level+_.size){case"AAsmall":case"AAAlarge":b=g>=4.5;break;case"AAlarge":b=g>=3;break;case"AAAsmall":b=g>=7;break}return b},n.mostReadable=function(u,f,l){var g=null,_=0,b,j,B,z;l=l||{},j=l.includeFallbackColors,B=l.level,z=l.size;for(var ve=0;ve<f.length;ve++)b=n.readability(u,f[ve]),b>_&&(_=b,g=n(f[ve]));return n.isReadable(u,g,{level:B,size:z})||!j?g:(l.includeFallbackColors=!1,n.mostReadable(u,["#fff","#000"],l))};var A=n.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},D=n.hexNames=N(A);function N(u){var f={};for(var l in u)u.hasOwnProperty(l)&&(f[u[l]]=l);return f}function U(u){return u=parseFloat(u),(isNaN(u)||u<0||u>1)&&(u=1),u}function M(u,f){L(u)&&(u="100%");var l=T(u);return u=Math.min(f,Math.max(0,parseFloat(u))),l&&(u=parseInt(u*f,10)/100),Math.abs(u-f)<1e-6?1:u%f/parseFloat(f)}function H(u){return Math.min(1,Math.max(0,u))}function R(u){return parseInt(u,16)}function L(u){return typeof u=="string"&&u.indexOf(".")!=-1&&parseFloat(u)===1}function T(u){return typeof u=="string"&&u.indexOf("%")!=-1}function k(u){return u.length==1?"0"+u:""+u}function F(u){return u<=1&&(u=u*100+"%"),u}function Re(u){return Math.round(parseFloat(u)*255).toString(16)}function Ie(u){return R(u)/255}var ue=function(){var u="[-\\+]?\\d+%?",f="[-\\+]?\\d*\\.\\d+%?",l="(?:"+f+")|(?:"+u+")",g="[\\s|\\(]+("+l+")[,|\\s]+("+l+")[,|\\s]+("+l+")\\s*\\)?",_="[\\s|\\(]+("+l+")[,|\\s]+("+l+")[,|\\s]+("+l+")[,|\\s]+("+l+")\\s*\\)?";return{CSS_UNIT:new RegExp(l),rgb:new RegExp("rgb"+g),rgba:new RegExp("rgba"+_),hsl:new RegExp("hsl"+g),hsla:new RegExp("hsla"+_),hsv:new RegExp("hsv"+g),hsva:new RegExp("hsva"+_),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function ye(u){return!!ue.CSS_UNIT.exec(u)}function Dt(u){u=u.replace(t,"").replace(r,"").toLowerCase();var f=!1;if(A[u])u=A[u],f=!0;else if(u=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var l;return(l=ue.rgb.exec(u))?{r:l[1],g:l[2],b:l[3]}:(l=ue.rgba.exec(u))?{r:l[1],g:l[2],b:l[3],a:l[4]}:(l=ue.hsl.exec(u))?{h:l[1],s:l[2],l:l[3]}:(l=ue.hsla.exec(u))?{h:l[1],s:l[2],l:l[3],a:l[4]}:(l=ue.hsv.exec(u))?{h:l[1],s:l[2],v:l[3]}:(l=ue.hsva.exec(u))?{h:l[1],s:l[2],v:l[3],a:l[4]}:(l=ue.hex8.exec(u))?{r:R(l[1]),g:R(l[2]),b:R(l[3]),a:Ie(l[4]),format:f?"name":"hex8"}:(l=ue.hex6.exec(u))?{r:R(l[1]),g:R(l[2]),b:R(l[3]),format:f?"name":"hex"}:(l=ue.hex4.exec(u))?{r:R(l[1]+""+l[1]),g:R(l[2]+""+l[2]),b:R(l[3]+""+l[3]),a:Ie(l[4]+""+l[4]),format:f?"name":"hex8"}:(l=ue.hex3.exec(u))?{r:R(l[1]+""+l[1]),g:R(l[2]+""+l[2]),b:R(l[3]+""+l[3]),format:f?"name":"hex"}:!1}function ge(u){var f,l;return u=u||{level:"AA",size:"small"},f=(u.level||"AA").toUpperCase(),l=(u.size||"small").toLowerCase(),f!=="AA"&&f!=="AAA"&&(f="AA"),l!=="small"&&l!=="large"&&(l="small"),{level:f,size:l}}return n})});var Du=v((km,Nu)=>{var It=qu(),Tu={r:256,g:256,b:256,a:1},Iu={h:360,s:1,v:1,a:1};function si(e,t,r){let n={};for(let i in e)e.hasOwnProperty(i)&&(n[i]=r===0?0:(t[i]-e[i])/r);return n}function oi(e,t,r,n){let i={};for(let s in t)t.hasOwnProperty(s)&&(i[s]=e[s]*r+t[s],i[s]=i[s]<0?i[s]+n[s]:n[s]!==1?i[s]%n[s]:i[s]);return i}function ii(e,t,r){let n=e.color.toRgb(),i=t.color.toRgb(),s=si(n,i,r),o=[e.color];for(let a=1;a<r;a++){let c=oi(s,n,a,Tu);o.push(It(c))}return o}function Mu(e,t,r,n){let i=e.color.toHsv(),s=t.color.toHsv();if(i.s===0||s.s===0)return ii(e,t,r);let o;if(typeof n=="boolean")o=n;else{let h=i.h<s.h&&s.h-i.h<180||i.h>s.h&&i.h-s.h>180;o=n==="long"&&h||n==="short"&&!h}let a=si(i,s,r),c=[e.color],d;i.h<=s.h&&!o||i.h>=s.h&&o?d=s.h-i.h:o?d=360-s.h+i.h:d=360-i.h+s.h,a.h=Math.pow(-1,o?1:0)*Math.abs(d)/r;for(let h=1;h<r;h++){let p=oi(a,i,h,Iu);c.push(It(p))}return c}function Pu(e,t){let r=e.length;if(t=parseInt(t,10),isNaN(t)||t<2)throw new Error("Invalid number of steps (< 2)");if(t<r)throw new Error("Number of steps cannot be inferior to number of stops");let n=[];for(let s=1;s<r;s++){let o=(t-1)*(e[s].pos-e[s-1].pos);n.push(Math.max(1,Math.round(o)))}let i=1;for(let s=r-1;s--;)i+=n[s];for(;i!==t;)if(i<t){let s=Math.min.apply(null,n);n[n.indexOf(s)]++,i++}else{let s=Math.max.apply(null,n);n[n.indexOf(s)]--,i--}return n}function Fu(e,t,r,n){if(t<0||t>1)throw new Error("Position must be between 0 and 1");let i,s;for(let c=0,d=e.length;c<d-1;c++)if(t>=e[c].pos&&t<e[c+1].pos){i=e[c],s=e[c+1];break}i||(i=s=e[e.length-1]);let o=si(i.color[r](),s.color[r](),(s.pos-i.pos)*100),a=oi(o,i.color[r](),(t-i.pos)*100,n);return It(a)}var ft=class{constructor(t){if(t.length<2)throw new Error("Invalid number of stops (< 2)");let r=t[0].pos!==void 0,n=t.length,i=-1,s=!1;this.stops=t.map((o,a)=>{let c=o.pos!==void 0;if(r^c)throw new Error("Cannot mix positionned and not posionned color stops");if(c){let d=o.color!==void 0;if(!d&&(s||a===0||a===n-1))throw new Error("Cannot define two consecutive position-only stops");if(s=!d,o={color:d?It(o.color):null,colorLess:!d,pos:o.pos},o.pos<0||o.pos>1)throw new Error("Color stops positions must be between 0 and 1");if(o.pos<i)throw new Error("Color stops positions are not ordered");i=o.pos}else o={color:It(o.color!==void 0?o.color:o),pos:a/(n-1)};return o}),this.stops[0].pos!==0&&(this.stops.unshift({color:this.stops[0].color,pos:0}),n++),this.stops[n-1].pos!==1&&this.stops.push({color:this.stops[n-1].color,pos:1})}reverse(){let t=[];return this.stops.forEach(function(r){t.push({color:r.color,pos:1-r.pos})}),new ft(t.reverse())}loop(){let t=[],r=[];return this.stops.forEach(n=>{t.push({color:n.color,pos:n.pos/2})}),this.stops.slice(0,-1).forEach(n=>{r.push({color:n.color,pos:1-n.pos/2})}),new ft(t.concat(r.reverse()))}rgb(t){let r=Pu(this.stops,t),n=[];this.stops.forEach((i,s)=>{i.colorLess&&(i.color=ii(this.stops[s-1],this.stops[s+1],2)[1])});for(let i=0,s=this.stops.length;i<s-1;i++){let o=ii(this.stops[i],this.stops[i+1],r[i]);n.splice(n.length,0,...o)}return n.push(this.stops[this.stops.length-1].color),n}hsv(t,r){let n=Pu(this.stops,t),i=[];this.stops.forEach((s,o)=>{s.colorLess&&(s.color=Mu(this.stops[o-1],this.stops[o+1],2,r)[1])});for(let s=0,o=this.stops.length;s<o-1;s++){let a=Mu(this.stops[s],this.stops[s+1],n[s],r);i.splice(i.length,0,...a)}return i.push(this.stops[this.stops.length-1].color),i}css(t,r){t=t||"linear",r=r||(t==="linear"?"to right":"ellipse at center");let n=t+"-gradient("+r;return this.stops.forEach(function(i){n+=", "+(i.colorLess?"":i.color.toRgbString()+" ")+i.pos*100+"%"}),n+=")",n}rgbAt(t){return Fu(this.stops,t,"toRgb",Tu)}hsvAt(t){return Fu(this.stops,t,"toHsv",Iu)}};Nu.exports=function(e){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');e=arguments[0]}else e=Array.prototype.slice.call(arguments);return new ft(e)}});var Hu=v((Cm,Nr)=>{"use strict";var Lu=Au(),op=Du(),ju=/\s/g;function ai(...e){let t=op.apply(this,e),r=(n,i)=>ap(n?n.toString():"",t,i);return r.multiline=(n,i)=>cp(n?n.toString():"",t,i),r}var Bu=(e,t,r)=>t.interpolation.toLowerCase()==="hsv"?e.hsv(r,t.hsvSpin.toLowerCase()):e.rgb(r);function ap(e,t,r){let n=$u(r),i=Math.max(e.replace(ju,"").length,t.stops.length),s=Bu(t,n,i),o="";for(let a of e)o+=a.match(ju)?a:Lu.hex(s.shift().toHex())(a);return o}function cp(e,t,r){let n=$u(r),i=e.split(`
|
|
21
|
+
`),s=Math.max.apply(null,i.map(c=>c.length).concat([t.stops.length])),o=Bu(t,n,s),a=[];for(let c of i){let d=o.slice(0),h="";for(let p of c)h+=Lu.hex(d.shift().toHex())(p);a.push(h)}return a.join(`
|
|
22
|
+
`)}function $u(e){let t={interpolation:"rgb",hsvSpin:"short",...e};if(e!==void 0&&typeof e!="object")throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof e}\``);if(typeof t.interpolation!="string")throw new TypeError(`Expected \`options.interpolation\` to be a \`string\`, got \`${typeof t.interpolation}\``);if(t.interpolation.toLowerCase()==="hsv"&&typeof t.hsvSpin!="string")throw new TypeError(`Expected \`options.hsvSpin\` to be a \`string\`, got \`${typeof t.hsvSpin}\``);return t}var Nt={atlas:{colors:["#feac5e","#c779d0","#4bc0c8"],options:{}},cristal:{colors:["#bdfff3","#4ac29a"],options:{}},teen:{colors:["#77a1d3","#79cbca","#e684ae"],options:{}},mind:{colors:["#473b7b","#3584a7","#30d2be"],options:{}},morning:{colors:["#ff5f6d","#ffc371"],options:{interpolation:"hsv"}},vice:{colors:["#5ee7df","#b490ca"],options:{interpolation:"hsv"}},passion:{colors:["#f43b47","#453a94"],options:{}},fruit:{colors:["#ff4e50","#f9d423"],options:{}},instagram:{colors:["#833ab4","#fd1d1d","#fcb045"],options:{}},retro:{colors:["#3f51b1","#5a55ae","#7b5fac","#8f6aae","#a86aa4","#cc6b8e","#f18271","#f3a469","#f7c978"],options:{}},summer:{colors:["#fdbb2d","#22c1c3"],options:{}},rainbow:{colors:["#ff0000","#ff0100"],options:{interpolation:"hsv",hsvSpin:"long"}},pastel:{colors:["#74ebd5","#74ecd5"],options:{interpolation:"hsv",hsvSpin:"long"}}};Nr.exports=ai;for(let e in Nt)Nr.exports[e]=t=>new ai(Nt[e].colors)(t,Nt[e].options),Nr.exports[e].multiline=t=>new ai(Nt[e].colors).multiline(t,Nt[e].options)});var nl=require("child_process"),ke=Y(require("fs")),ht=Y(require("path")),Z=Y(yt()),il=Y(Gt()),fi=Y(as());var cs=Y(require("crypto")),gt=Y(require("fs")),us=Y(require("path")),Vt=us.default.resolve(__dirname,"./../../apiCache"),Vp=`${Vt}/siteHash.json`;function ls(){gt.default.existsSync(Vt)||gt.default.mkdirSync(Vt),console.log(`
|
|
23
|
+
\u{1FA84} Cache initialized`)}function fs(e){let t=cs.default.createHash("sha256");return t.update(JSON.stringify(e)),`${Vt}/${t.digest("hex")}`}function hs(e,t){let r=typeof t=="string"?t:JSON.stringify(t);gt.default.writeFileSync(fs(e),r,"utf8")}function ds(e){try{let t=gt.default.readFileSync(fs(e),{encoding:"utf-8"});return JSON.parse(t)}catch{return null}}var Wo=Y(On()),Jo=Y(yt()),An=class{user;password;baseUrl;headers;constructor(){this.user=process.env.botEmail,this.password=process.env.botPassword,this.baseUrl=process.env.API_URL}async login(){try{let t=await(0,Wo.default)({url:`${this.baseUrl}/login_check`,method:"POST",headers:{"Content-Type":"application/json"},data:{username:this.user,password:this.password}});if(t.status===200){let{data:{token:r}}=t;this.headers={Authorization:"bearer "+r,"Cache-Control":"no-store"}}return this.headers}catch{console.error(Jo.default.red(`
|
|
24
24
|
\u256D\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256E
|
|
25
25
|
\u2502 Access credentials failure \u2502
|
|
26
26
|
\u2502 Check that the login details are correct in your .env file \u2502
|
|
27
27
|
\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256F
|
|
28
|
-
`)),process.exit(1)}}},hr=new
|
|
28
|
+
`)),process.exit(1)}}},hr=new An;var Xu=Y(On()),Ku=Y(yt()),Qu=Y(Gt());var lp=Y(yt()),Gu=Y(Gt()),fp=Y(tu()),zu=Y(Hu());var Uu="1.75.219";Gu.default.config();var hp=!!process.env.GRIDDO_BUILD_LOGS&&!!JSON.parse(process.env.GRIDDO_BUILD_LOGS)||!!process.env.LOGS&&!!JSON.parse(process.env.LOGS);function Wu(...e){hp&&console.info(...e)}function Ju(e){return new Promise(t=>setTimeout(t,e))}function ci(e,t=3){return(e/1e3).toFixed(t)}function Vu(e){return"site"in e&&e.site?e?.site:void 0}function ui(...e){let t=performance.now();return e.forEach(r=>r()),ci(performance.now()-t)}function Yu(){let e=`
|
|
29
29
|
\xB7\xB7
|
|
30
30
|
\xB7\xB7
|
|
31
31
|
\xB7\xB7
|
|
@@ -37,14 +37,14 @@ GFS4: `),console.error(e)});G[Q]||(ea=global[Q]||[],ra(G,ea),G.close=function(e)
|
|
|
37
37
|
\xB7\xB7 |______ _/ \\_ | |_____| | \\_ | |______ | \\_
|
|
38
38
|
\xB7\xB7
|
|
39
39
|
\xB7\xB7 Griddo exporter orchestrator
|
|
40
|
-
\xB7\xB7 ${
|
|
40
|
+
\xB7\xB7 ${Uu}
|
|
41
41
|
\xB7\xB7
|
|
42
42
|
\xB7\xB7
|
|
43
43
|
\xB7\xB7
|
|
44
|
-
`;console.log(
|
|
44
|
+
`;console.log(zu.default.cristal(e))}Qu.default.config();var{env:{RETRY_WAIT_SECONDS:dp="4",RETRY_ATTEMPTS:pp="1"}}=process;async function Zu(e){let{endpoint:t,body:r,cached:n,attempt:i=1,method:s,headers:o}=e,a={endpoint:t,body:r,cached:n};if(n){let c=ds(a);if(c)return c}try{let{data:c}=await(0,Xu.default)({url:t,method:s,headers:{...o,...hr.headers},data:r});return hs(a,c),c}catch(c){let d=c;return d.response?.status===404?null:((i>parseInt(pp)||!d.response)&&process.exit(1),mp(d,{callInfo:{endpoint:t,body:r}}),console.warn(`Waiting for retry: ${s}`,t),await Ju(parseInt(dp)*1e3),Zu({endpoint:t,body:r,cached:n,method:s,attempt:i+1}))}}async function el(e){let t=new Date,{endpoint:r}=e,n=await Zu({...e,method:"get"}),i=e.cached?"(cached)":"(fetch)",s=Vu(n),o=s?`site: ${s} `:"",a=ci(new Date().getTime()-t.getTime());return Wu(`GET ${i} ${o} ${r} - ${a}s`),n}function mp(e,t){let{response:r,message:n,stack:i}=e,{callInfo:s}=t,{status:o,statusText:a,data:c}=r||{},d=[];for(let m of Object.keys(s)){let w=m;d.push(`${m}: ${typeof s[w]=="object"?JSON.stringify(s[w]):s[w]}`)}let h=d.join(`
|
|
45
45
|
`),p=r?`Code: ${o} - ${a}
|
|
46
46
|
Response: ${JSON.stringify(c)}`:"",y=`${n}
|
|
47
|
-
${i}`;console.warn(
|
|
47
|
+
${i}`;console.warn(Ku.default.bold.red(`
|
|
48
48
|
=============
|
|
49
49
|
|
|
50
50
|
{ Call info }
|
|
@@ -57,10 +57,10 @@ ${p}
|
|
|
57
57
|
${y}
|
|
58
58
|
|
|
59
59
|
=============
|
|
60
|
-
`))}var yp=process.env.API_URL,gp={GET_ALL:`${yp}/domains`},Dr=class{static async getAll(){let{GET_ALL:t}=gp;return await
|
|
61
|
-
\u231B\uFE0F Domain ${e} restaured: ${r}s`),t.runExporter();let n=
|
|
62
|
-
\u231B\uFE0F Domain ${e} archived: ${n}s`)},
|
|
60
|
+
`))}var yp=process.env.API_URL,gp={GET_ALL:`${yp}/domains`},Dr=class{static async getAll(){let{GET_ALL:t}=gp;return await el({endpoint:t})}};async function tl(){await hr.login();let e=await Dr.getAll();return vp(e)}function vp(e){let t=e.filter(({slug:r})=>!!r).map(({slug:r})=>r.replace("/",""));return[...new Set(t)]}il.default.config();var jr=["dist","assets","apiCache"],li=["public",".store"],bp=!!process.env.GRIDDO_EXPORT_STRIP_DOMAIN_FROM_PATH;bp?jr.push(".cache"):li.push(".cache");var wp=fi.default.sync(),_p=ht.default.resolve(wp,"exports/sites"),sl=fi.default.sync(__dirname),xp=e=>t=>Ep(t,e),Ep=(e,t={})=>(0,nl.execSync)(e,{cwd:sl,stdio:"inherit",env:{...process.env,...t,GRIDDO_EXPORTER:"true"}}),Sp=e=>!(process.env.GRIDDO_ASSET_PREFIX||process.env.ASSET_PREFIX)||!e||!e.startsWith("pro-")?"":`${process.env.GRIDDO_ASSET_PREFIX||process.env.ASSET_PREFIX}/${e}`,rl=(...e)=>console.log(...e),Ge=(...e)=>console.log(...e),kp=(...e)=>console.log(...e),Ue=(...e)=>console.log(...e),Cp=async e=>{let t=Op(e),r=ui(t.init,t.restoreArtifacts);Ge(`
|
|
61
|
+
\u231B\uFE0F Domain ${e} restaured: ${r}s`),t.runExporter();let n=ui(t.archiveArtifacts);Ge(`
|
|
62
|
+
\u231B\uFE0F Domain ${e} archived: ${n}s`)},Rp=async()=>{Yu(),ls();let e=await tl();for(let t of e)Ge(`\uFE0F\u{1F6A2} Exporting domain ${Z.default.underline(t)}`),await Cp(t)},Op=e=>{let t=Sp(e),r=xp({DOMAIN:e,GRIDDO_ASSET_PREFIX:t,NEEDS_ASSET_DOMAIN_PREFIX:t&&t!=="",GRIDDO_RENDERID:new Date().valueOf()}),n=()=>{Ge(`\u{1F680} Initializing ${Z.default.underline(e)} exporter`),s(),o()},i=(S="")=>{let C=ht.default.resolve(_p,e),P=ht.default.resolve(C,S),J=ht.default.resolve(P,e),de=`${P}-BACKUP`,Se=ht.default.resolve(sl,S);return{domainExportArchiveBasePath:C,currentExportArchivePath:P,currentExportBackupPath:de,currentExportWorkingPath:Se,currentExportArchivePathInDomain:J}},s=()=>{for(let S of[...jr,...li]){let{currentExportWorkingPath:C}=i(S);ke.default.existsSync(C)&&(Ue(`\u{1F9F9} Cleanup dirty ${Z.default.gray(C)}`),r(`rm -rf ${C}`))}},o=()=>{let{domainExportArchiveBasePath:S}=i();ke.default.existsSync(S)||(Ge(`\u2728 Creating ${S}`),r(`mkdir -p ${S}`))},a=S=>{let{currentExportArchivePath:C,currentExportWorkingPath:P}=i(S);Ge(`\u{1F69A} Moving files from ${Z.default.gray(P)} to ${Z.default.gray(C)}`),r(`mv ${P} ${C}`)},c=()=>{for(let S of jr){let{currentExportWorkingPath:C,currentExportArchivePath:P}=i(S);if(!ke.default.existsSync(C)){rl("\u{1F4C1} Source directory has not been created:",C);continue}try{h(S),a(S),y(S)}catch(J){rl(`\u{1F69A} Error moving files to ${P}`,J.message),p(S);continue}}},d=()=>{for(let S of jr){let{currentExportArchivePath:C,currentExportWorkingPath:P}=i(S);ke.default.existsSync(C)&&(Ue(`\uFE0F\u267B\uFE0F Restoring ${Z.default.gray(C)}`),r(`cp -R ${C} ${P}`))}w()},h=S=>{let{currentExportArchivePath:C,currentExportBackupPath:P}=i(S);ke.default.existsSync(C)&&(Ge(`\u{1F4BF} Creating backup of ${Z.default.gray(C)}`),r(`mv ${C} ${P}`))},p=S=>{let{currentExportArchivePath:C,currentExportBackupPath:P}=i(S);ke.default.existsSync(P)&&(Ue(`\uFE0F\u267B\uFE0F Restoring backup ${Z.default.gray(C)}`),r(`mv ${P} ${C}`))},y=S=>{let{currentExportArchivePath:C,currentExportBackupPath:P}=i(S);Ue(`\uFE0F\u{1F5D1}\uFE0F Removing backup ${Z.default.gray(C)}`),r(`rm -rf ${P}`)},m=()=>{console.log(`
|
|
63
63
|
${Z.default.black(Z.default.bgGreen(" Gatsby (start) "))}
|
|
64
|
-
`),r("yarn export"),
|
|
64
|
+
`),r("yarn export"),kp("Your sites have been exported correctly"),console.log(`
|
|
65
65
|
${Z.default.black(Z.default.bgGreen(" Gatsby (end) "))}
|
|
66
|
-
`),O()},w=()=>{let{currentExportWorkingPath:S}=i("dist"),{currentExportWorkingPath:C}=i("public");
|
|
66
|
+
`),O()},w=()=>{let{currentExportWorkingPath:S}=i("dist"),{currentExportWorkingPath:C}=i("public");ke.default.existsSync(S)&&(Ue(`\u{1F69A} Moving ${Z.default.gray(S)} to ${Z.default.gray(C)}`),r(`mv ${S} ${C}`))},q=()=>{let{currentExportWorkingPath:S}=i("public"),{currentExportWorkingPath:C}=i("dist");ke.default.existsSync(S)&&(Ue(`\u{1F69A} Moving ${S} to ${C}`),r(`mv ${S} ${C}`))},O=()=>{for(let S of li){let{currentExportWorkingPath:C}=i(S);ke.default.existsSync(C)&&(Ue(`\u{1F5D1}\uFE0F Removing ${Z.default.gray(C)}`),r(`rm -rf ${C}`))}},I=()=>{s()};return{init:n,getArtifactPaths:i,archiveExportArtifact:a,archiveArtifacts:c,restoreArtifacts:d,createArtifactBackup:h,restoreArtifactBackup:p,deleteArtifactBackup:y,runExporter:m}};console.clear();Rp().catch(e=>{console.error("\u26D4\uFE0F ERROR",e?.stdout?.toString()||e),process.exit(1)});
|
package/gatsby-config.ts
CHANGED
|
@@ -30,7 +30,7 @@ const config: GatsbyConfig = {
|
|
|
30
30
|
|
|
31
31
|
if (GRIDDO_ASSET_PREFIX) {
|
|
32
32
|
config.assetPrefix = GRIDDO_ASSET_PREFIX;
|
|
33
|
-
// @ts-expect-error
|
|
33
|
+
// @ts-expect-error Must be null to exist, but must be different from assetPrefix
|
|
34
34
|
config.pathPrefix = null;
|
|
35
35
|
}
|
|
36
36
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@griddo/cx",
|
|
3
3
|
"description": "Griddo SSG based on Gatsby",
|
|
4
|
-
"version": "1.75.
|
|
4
|
+
"version": "1.75.219",
|
|
5
5
|
"authors": [
|
|
6
6
|
"Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
|
|
7
7
|
"Diego M. Béjar <diego.bejar@secuoyas.com>",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@babel/preset-env": "^7.14.5",
|
|
36
36
|
"@babel/preset-react": "^7.14.5",
|
|
37
37
|
"@babel/preset-typescript": "^7.16.5",
|
|
38
|
-
"@griddo/core": "^1.75.
|
|
38
|
+
"@griddo/core": "^1.75.219",
|
|
39
39
|
"@svgr/webpack": "^5.5.0",
|
|
40
40
|
"babel-loader": "^8.0.6",
|
|
41
41
|
"babel-plugin-styled-components": "^1.10.7",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"react-helmet": "^6.0.0"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@griddo/eslint-config-back": "^1.75.
|
|
68
|
+
"@griddo/eslint-config-back": "^1.75.219",
|
|
69
69
|
"@types/babel__core": "^7.20.0",
|
|
70
70
|
"@types/babel__preset-env": "^7.9.2",
|
|
71
71
|
"@types/csvtojson": "^2.0.0",
|
|
@@ -113,5 +113,5 @@
|
|
|
113
113
|
"publishConfig": {
|
|
114
114
|
"access": "public"
|
|
115
115
|
},
|
|
116
|
-
"gitHead": "
|
|
116
|
+
"gitHead": "cd6d77a701e8fff60b1c91412cb96af5bfbbadf2"
|
|
117
117
|
}
|
|
@@ -19,7 +19,17 @@ dotenv.config();
|
|
|
19
19
|
|
|
20
20
|
// Envs
|
|
21
21
|
const artifactsArchivable = ["dist", "assets", "apiCache"];
|
|
22
|
-
const artifactsDisposable = ["public", "store"
|
|
22
|
+
const artifactsDisposable = ["public", ".store"];
|
|
23
|
+
|
|
24
|
+
// TODO: Remove STRIP_DOMAIN_FROM_PATH behaviour when all instances are over 1.75.219
|
|
25
|
+
const STRIP_DOMAIN_FROM_PATH =
|
|
26
|
+
!!process.env.GRIDDO_EXPORT_STRIP_DOMAIN_FROM_PATH;
|
|
27
|
+
|
|
28
|
+
if (STRIP_DOMAIN_FROM_PATH) {
|
|
29
|
+
artifactsArchivable.push(".cache");
|
|
30
|
+
} else {
|
|
31
|
+
artifactsDisposable.push(".cache");
|
|
32
|
+
}
|
|
23
33
|
|
|
24
34
|
// Where we are going to find export folders
|
|
25
35
|
const execBasePath = pkgDir.sync()!;
|
|
@@ -105,8 +115,8 @@ const getDomainRunner = (domain: string) => {
|
|
|
105
115
|
const run = getEnvRunner({
|
|
106
116
|
DOMAIN: domain,
|
|
107
117
|
GRIDDO_ASSET_PREFIX: assetPrefix,
|
|
108
|
-
|
|
109
|
-
|
|
118
|
+
NEEDS_ASSET_DOMAIN_PREFIX: assetPrefix && assetPrefix !== "",
|
|
119
|
+
GRIDDO_RENDERID: new Date().valueOf(),
|
|
110
120
|
});
|
|
111
121
|
|
|
112
122
|
const init = () => {
|
|
@@ -125,6 +135,10 @@ const getDomainRunner = (domain: string) => {
|
|
|
125
135
|
domainExportArchiveBasePath,
|
|
126
136
|
artifact
|
|
127
137
|
);
|
|
138
|
+
const currentExportArchivePathInDomain = path.resolve(
|
|
139
|
+
currentExportArchivePath,
|
|
140
|
+
domain
|
|
141
|
+
);
|
|
128
142
|
const currentExportBackupPath = `${currentExportArchivePath}-BACKUP`;
|
|
129
143
|
const currentExportWorkingPath = path.resolve(workingPath, artifact);
|
|
130
144
|
|
|
@@ -133,6 +147,7 @@ const getDomainRunner = (domain: string) => {
|
|
|
133
147
|
currentExportArchivePath,
|
|
134
148
|
currentExportBackupPath,
|
|
135
149
|
currentExportWorkingPath,
|
|
150
|
+
currentExportArchivePathInDomain,
|
|
136
151
|
};
|
|
137
152
|
};
|
|
138
153
|
|
package/src/services/store.ts
CHANGED
|
@@ -61,7 +61,8 @@ const REACT_APP_INSTANCE =
|
|
|
61
61
|
process.env.GRIDDO_REACT_APP_INSTANCE || process.env.REACT_APP_INSTANCE;
|
|
62
62
|
const GRIDDO_API_CONCURRENCY_COUNT = process.env.GRIDDO_API_CONCURRENCY_COUNT;
|
|
63
63
|
const PUBLIC_API_URL = process.env.PUBLIC_API_URL as string;
|
|
64
|
-
const RENDER_ID =
|
|
64
|
+
const RENDER_ID =
|
|
65
|
+
process.env.GRIDDO_RENDERID || new Date().valueOf().toString();
|
|
65
66
|
|
|
66
67
|
// Consts
|
|
67
68
|
const CREATED_PAGES: Array<number> = [];
|
package/src/types/pages.ts
CHANGED
package/src/utils/folders.ts
CHANGED
|
@@ -54,9 +54,6 @@ async function deleteSites(updatedSites: Array<Site>) {
|
|
|
54
54
|
* - css
|
|
55
55
|
*/
|
|
56
56
|
async function updateDist() {
|
|
57
|
-
const isGriddoExporter =
|
|
58
|
-
process.env.GRIDDO_EXPORTER && process.env.GRIDDO_EXPORTER === "on";
|
|
59
|
-
|
|
60
57
|
const src = "./public";
|
|
61
58
|
const dest = "./dist";
|
|
62
59
|
|
|
@@ -86,7 +83,7 @@ async function updateDist() {
|
|
|
86
83
|
fs.mkdirSync(assetsDest, { recursive: true });
|
|
87
84
|
fs.copySync(src, dest);
|
|
88
85
|
|
|
89
|
-
if (process.env.
|
|
86
|
+
if (process.env.NEEDS_ASSET_DOMAIN_PREFIX) {
|
|
90
87
|
fs.copySync(pageDataSrc, pageDataDest);
|
|
91
88
|
fs.copySync(projectStaticSrc, projectStaticDest, { overwrite: false });
|
|
92
89
|
fs.copySync(gatsbyStaticSrc, gatsbyStaticDest, { overwrite: false });
|
|
@@ -98,8 +95,6 @@ async function updateDist() {
|
|
|
98
95
|
fs.copySync(fileSrc, fileDest);
|
|
99
96
|
});
|
|
100
97
|
}
|
|
101
|
-
|
|
102
|
-
if (isGriddoExporter) fs.rmSync(src, { recursive: true });
|
|
103
98
|
} catch (err) {
|
|
104
99
|
console.error(err);
|
|
105
100
|
}
|
package/src/utils/pages.ts
CHANGED
|
@@ -24,7 +24,9 @@ dotenv.config();
|
|
|
24
24
|
const GRIDDO_SEARCH_FEATURE = !!JSON.parse(
|
|
25
25
|
process.env.GRIDDO_SEARCH_FEATURE || "false"
|
|
26
26
|
);
|
|
27
|
-
const
|
|
27
|
+
const NEEDS_ASSET_PREFIX = !!process.env.NEEDS_ASSET_DOMAIN_PREFIX;
|
|
28
|
+
const STRIP_DOMAIN_FROM_PATH =
|
|
29
|
+
!!process.env.GRIDDO_EXPORT_STRIP_DOMAIN_FROM_PATH;
|
|
28
30
|
|
|
29
31
|
// Consts
|
|
30
32
|
const DEFAULT_ITEMS_PER_PAGE_FOR_LIST_TEMPLATES = 25;
|
|
@@ -149,7 +151,6 @@ async function createGatsbyPageObject(
|
|
|
149
151
|
instance: additionalInfo.instance,
|
|
150
152
|
};
|
|
151
153
|
|
|
152
|
-
const filepath = `${fullPath?.domain}${fullPath?.compose}`;
|
|
153
154
|
const foundLanguage = siteLangs.find(({ id }) => id === page?.language);
|
|
154
155
|
const locale = foundLanguage?.locale.replace(/_/g, "-");
|
|
155
156
|
|
|
@@ -163,9 +164,14 @@ async function createGatsbyPageObject(
|
|
|
163
164
|
socialTitle,
|
|
164
165
|
});
|
|
165
166
|
|
|
166
|
-
const
|
|
167
|
-
|
|
168
|
-
|
|
167
|
+
const pagePath =
|
|
168
|
+
NEEDS_ASSET_PREFIX || STRIP_DOMAIN_FROM_PATH
|
|
169
|
+
? fullPath.compose
|
|
170
|
+
: `${fullPath?.domain}${fullPath?.compose}`;
|
|
171
|
+
|
|
172
|
+
const pageObjectForGatsby: GatsbyPageObject = {
|
|
173
|
+
path: pagePath,
|
|
174
|
+
matchPath: NEEDS_ASSET_PREFIX ? fullPath.compose : "",
|
|
169
175
|
component: COMPONENT,
|
|
170
176
|
size: undefined,
|
|
171
177
|
context: {
|
|
@@ -198,20 +204,11 @@ async function createGatsbyPageObject(
|
|
|
198
204
|
},
|
|
199
205
|
};
|
|
200
206
|
|
|
201
|
-
const assetPrefix =
|
|
202
|
-
fullPath?.domain.startsWith("/pro-") && HAS_ASSET_PREFIX
|
|
203
|
-
? process.env.GRIDDO_ASSET_PREFIX
|
|
204
|
-
: undefined;
|
|
205
|
-
|
|
206
|
-
if (assetPrefix) {
|
|
207
|
-
pageObjectForGatsby.matchPath = fullPath?.compose as string;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
207
|
if (GRIDDO_SEARCH_FEATURE) {
|
|
211
208
|
const exportFile = path.resolve(
|
|
212
209
|
__dirname,
|
|
213
210
|
"../../dist/",
|
|
214
|
-
`./${
|
|
211
|
+
`./${pagePath}index.html`
|
|
215
212
|
);
|
|
216
213
|
const content = fs.existsSync(exportFile)
|
|
217
214
|
? fs.readFileSync(exportFile).toString()
|
package/src/utils/sites.ts
CHANGED
|
@@ -183,8 +183,8 @@ async function generateBuildReport(
|
|
|
183
183
|
|
|
184
184
|
logInfo(`Build report saved for ${buildSitesInfo.length} site(s)`);
|
|
185
185
|
|
|
186
|
-
// API
|
|
187
|
-
// TODO:
|
|
186
|
+
// Tell API the build has finished
|
|
187
|
+
// TODO: Remove when the file version is implemented.
|
|
188
188
|
const promises = Object.keys(buildProcessData).map(async (siteID) => {
|
|
189
189
|
const body = buildProcessData[siteID];
|
|
190
190
|
logInfo(`Deploying ending call to site ${siteID}:`);
|
|
@@ -215,7 +215,7 @@ async function generateSitemaps(sites: Array<Site>) {
|
|
|
215
215
|
|
|
216
216
|
const {
|
|
217
217
|
items: sitemapPagesGroup,
|
|
218
|
-
url: { home },
|
|
218
|
+
url: { home, domain },
|
|
219
219
|
} = response;
|
|
220
220
|
|
|
221
221
|
if (!home) return;
|
|
@@ -227,9 +227,14 @@ async function generateSitemaps(sites: Array<Site>) {
|
|
|
227
227
|
if (!langDomain) return;
|
|
228
228
|
|
|
229
229
|
const slug = Object.values(langDomain)[0];
|
|
230
|
-
const sitemaps = [];
|
|
230
|
+
const sitemaps: string[] = [];
|
|
231
231
|
const sitemapPageGroupKeys = Object.keys(sitemapPagesGroup);
|
|
232
232
|
|
|
233
|
+
const sitemapBasePath = path.resolve(
|
|
234
|
+
__dirname,
|
|
235
|
+
`../../public/${slug.replace(domain, "")}`
|
|
236
|
+
);
|
|
237
|
+
|
|
233
238
|
for (const templateId of sitemapPageGroupKeys) {
|
|
234
239
|
const sitemapPages = sitemapPagesGroup[templateId];
|
|
235
240
|
|
|
@@ -245,10 +250,8 @@ async function generateSitemaps(sites: Array<Site>) {
|
|
|
245
250
|
url: sitemapPages,
|
|
246
251
|
});
|
|
247
252
|
const sitemapName = `/sitemap-${templateId.toLowerCase()}.xml`;
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
`../../public/${slug}${sitemapName}`
|
|
251
|
-
);
|
|
253
|
+
|
|
254
|
+
const exactPath = `${sitemapBasePath}${sitemapName}`;
|
|
252
255
|
|
|
253
256
|
saveFile(exactPath, siteMap);
|
|
254
257
|
|
|
@@ -263,10 +266,8 @@ async function generateSitemaps(sites: Array<Site>) {
|
|
|
263
266
|
"@": { xmlns: "http://www.sitemaps.org/schemas/sitemap/0.9" },
|
|
264
267
|
sitemap: sitemaps.map((loc) => ({ loc })),
|
|
265
268
|
});
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
`../../public/${slug}/sitemap.xml`
|
|
269
|
-
);
|
|
269
|
+
|
|
270
|
+
const exactPath = `${sitemapBasePath}/sitemap.xml`;
|
|
270
271
|
|
|
271
272
|
saveFile(exactPath, siteMap);
|
|
272
273
|
});
|
|
@@ -285,6 +286,8 @@ async function generateSitemaps(sites: Array<Site>) {
|
|
|
285
286
|
*/
|
|
286
287
|
function saveFile(filePath: string, content: string) {
|
|
287
288
|
try {
|
|
289
|
+
const pathName = path.dirname(filePath);
|
|
290
|
+
if (!fs.existsSync(pathName)) fs.mkdirSync(pathName, { recursive: true });
|
|
288
291
|
fs.writeFileSync(filePath, content);
|
|
289
292
|
} catch (err) {
|
|
290
293
|
console.error(`Error saving file: ${err}`);
|