@griddo/cx 10.4.9 → 10.4.11
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/create-build-data.js +2 -2
- package/build/index.js +28 -28
- package/exporter/adapters/gatsby/index.ts +1 -1
- package/exporter/cx.config.d.ts +24 -0
- package/exporter/cx.config.js +40 -0
- package/exporter/services/robots.ts +1 -1
- package/exporter/utils/folders.ts +1 -2
- package/exporter/utils/instance.ts +1 -2
- package/exporter/utils/pages.ts +11 -0
- package/exporter/utils/sites.ts +2 -2
- package/exporter/utils/store.ts +1 -1
- package/exporter/utils/temp-utils.ts +4 -16
- package/gatsby-browser.tsx +1 -1
- package/gatsby-node.ts +2 -2
- package/gatsby-ssr.tsx +1 -1
- package/package.json +2 -2
- package/src/components/Head.tsx +1 -1
- package/src/components/template.tsx +1 -1
package/build/index.js
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
"use strict";var Kh=Object.create;var fi=Object.defineProperty;var Qh=Object.getOwnPropertyDescriptor;var Zh=Object.getOwnPropertyNames;var ep=Object.getPrototypeOf,tp=Object.prototype.hasOwnProperty;var zo=(t,e)=>()=>(t&&(e=t(t=0)),e);var y=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),rp=(t,e)=>{for(var r in e)fi(t,r,{get:e[r],enumerable:!0})},np=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Zh(e))!tp.call(t,i)&&i!==r&&fi(t,i,{get:()=>e[i],enumerable:!(n=Qh(e,i))||n.enumerable});return t};var k=(t,e,r)=>(r=t!=null?Kh(ep(t)):{},np(e||!t||!t.__esModule?fi(r,"default",{value:t,enumerable:!0}):r,t));var Yo=y((Ub,Vo)=>{"use strict";var ip=/[|\\{}()[\]^$+*?.]/g;Vo.exports=function(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(ip,"\\$&")}});var Qo=y((Xb,Ko)=>{"use strict";Ko.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 di=y((Gb,ra)=>{var vt=Qo(),ta={};for(jr in vt)vt.hasOwnProperty(jr)&&(ta[vt[jr]]=jr);var jr,D=ra.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(ye in D)if(D.hasOwnProperty(ye)){if(!("channels"in D[ye]))throw new Error("missing channels property: "+ye);if(!("labels"in D[ye]))throw new Error("missing channel labels property: "+ye);if(D[ye].labels.length!==D[ye].channels)throw new Error("channel and label counts mismatch: "+ye);Zo=D[ye].channels,ea=D[ye].labels,delete D[ye].channels,delete D[ye].labels,Object.defineProperty(D[ye],"channels",{value:Zo}),Object.defineProperty(D[ye],"labels",{value:ea})}var Zo,ea,ye;D.rgb.hsl=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),s=Math.max(e,r,n),o=s-i,a,c,d;return s===i?a=0:e===s?a=(r-n)/o:r===s?a=2+(n-e)/o:n===s&&(a=4+(e-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]};D.rgb.hsv=function(t){var e,r,n,i,s,o=t[0]/255,a=t[1]/255,c=t[2]/255,d=Math.max(o,a,c),u=d-Math.min(o,a,c),h=function(g){return(d-g)/6/u+1/2};return u===0?i=s=0:(s=u/d,e=h(o),r=h(a),n=h(c),o===d?i=n-r:a===d?i=1/3+e-n:c===d&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,d*100]};D.rgb.hwb=function(t){var e=t[0],r=t[1],n=t[2],i=D.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,s*100,n*100]};D.rgb.cmyk=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i,s,o,a;return a=Math.min(1-e,1-r,1-n),i=(1-e-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 sp(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}D.rgb.keyword=function(t){var e=ta[t];if(e)return e;var r=1/0,n;for(var i in vt)if(vt.hasOwnProperty(i)){var s=vt[i],o=sp(t,s);o<r&&(r=o,n=i)}return n};D.keyword.rgb=function(t){return vt[t]};D.rgb.xyz=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255;e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/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=e*.4124+r*.3576+n*.1805,s=e*.2126+r*.7152+n*.0722,o=e*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};D.rgb.lab=function(t){var e=D.rgb.xyz(t),r=e[0],n=e[1],i=e[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]};D.hsl.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[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=e+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};D.hsl.hsv=function(t){var e=t[0],r=t[1]/100,n=t[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),[e,o*100,a*100]};D.hsv.rgb=function(t){var e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,s=e-Math.floor(e),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]}};D.hsv.hsl=function(t){var e=t[0],r=t[1]/100,n=t[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,[e,o*100,a*100]};D.hwb.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,s,o,a,c;i>1&&(r/=i,n/=i),s=Math.floor(6*e),o=1-n,a=6*e-s,s&1&&(a=1-a),c=r+a*(o-r);var d,u,h;switch(s){default:case 6:case 0:d=o,u=c,h=r;break;case 1:d=c,u=o,h=r;break;case 2:d=r,u=o,h=c;break;case 3:d=r,u=c,h=o;break;case 4:d=c,u=r,h=o;break;case 5:d=o,u=r,h=c;break}return[d*255,u*255,h*255]};D.cmyk.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100,s,o,a;return s=1-Math.min(1,e*(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]};D.xyz.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,i,s,o;return i=e*3.2406+r*-1.5372+n*-.4986,s=e*-.9689+r*1.8758+n*.0415,o=e*.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]};D.xyz.lab=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;return e/=95.047,r/=100,n/=108.883,e=e>.008856?Math.pow(e,1/3):7.787*e+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*(e-r),o=200*(r-n),[i,s,o]};D.lab.xyz=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;s=(e+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]};D.lab.lch=function(t){var e=t[0],r=t[1],n=t[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),[e,o,s]};D.lch.lab=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;return o=n/360*2*Math.PI,i=r*Math.cos(o),s=r*Math.sin(o),[e,i,s]};D.rgb.ansi16=function(t){var e=t[0],r=t[1],n=t[2],i=1 in arguments?arguments[1]:D.rgb.hsv(t)[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(e/255));return i===2&&(s+=60),s};D.hsv.ansi16=function(t){return D.rgb.ansi16(D.hsv.rgb(t),t[2])};D.rgb.ansi256=function(t){var e=t[0],r=t[1],n=t[2];if(e===r&&r===n)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;var i=16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};D.ansi16.rgb=function(t){var e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];var r=(~~(t>50)+1)*.5,n=(e&1)*r*255,i=(e>>1&1)*r*255,s=(e>>2&1)*r*255;return[n,i,s]};D.ansi256.rgb=function(t){if(t>=232){var e=(t-232)*10+8;return[e,e,e]}t-=16;var r,n=Math.floor(t/36)/5*255,i=Math.floor((r=t%36)/6)/5*255,s=r%6/5*255;return[n,i,s]};D.rgb.hex=function(t){var e=((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255),r=e.toString(16).toUpperCase();return"000000".substring(r.length)+r};D.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var r=e[0];e[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]};D.rgb.hcg=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),s=Math.min(Math.min(e,r),n),o=i-s,a,c;return o<1?a=s/(1-o):a=0,o<=0?c=0:i===e?c=(r-n)/o%6:i===r?c=2+(n-e)/o:c=4+(e-r)/o+4,c/=6,c%=1,[c*360,o*100,a*100]};D.hsl.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1,i=0;return r<.5?n=2*e*r:n=2*e*(1-r),n<1&&(i=(r-.5*n)/(1-n)),[t[0],n*100,i*100]};D.hsv.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],n*100,i*100]};D.hcg.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];var i=[0,0,0],s=e%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]};D.hcg.hsv=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e),i=0;return n>0&&(i=e/n),[t[0],i*100,n*100]};D.hcg.hsl=function(t){var e=t[1]/100,r=t[2]/100,n=r*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],i*100,n*100]};D.hcg.hwb=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],(n-e)*100,(1-n)*100]};D.hwb.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1-r,i=n-e,s=0;return i<1&&(s=(n-i)/(1-i)),[t[0],i*100,s*100]};D.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};D.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};D.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};D.gray.hsl=D.gray.hsv=function(t){return[0,0,t[0]]};D.gray.hwb=function(t){return[0,100,t[0]]};D.gray.cmyk=function(t){return[0,0,0,t[0]]};D.gray.lab=function(t){return[t[0],0,0]};D.gray.hex=function(t){var e=Math.round(t[0]/100*255)&255,r=(e<<16)+(e<<8)+e,n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};D.rgb.gray=function(t){var e=(t[0]+t[1]+t[2])/3;return[e/255*100]}});var ia=y((Hb,na)=>{var $r=di();function op(){for(var t={},e=Object.keys($r),r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function ap(t){var e=op(),r=[t];for(e[t].distance=0;r.length;)for(var n=r.pop(),i=Object.keys($r[n]),s=i.length,o=0;o<s;o++){var a=i[o],c=e[a];c.distance===-1&&(c.distance=e[n].distance+1,c.parent=n,r.unshift(a))}return e}function cp(t,e){return function(r){return e(t(r))}}function up(t,e){for(var r=[e[t].parent,t],n=$r[e[t].parent][t],i=e[t].parent;e[i].parent;)r.unshift(e[i].parent),n=cp($r[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}na.exports=function(t){for(var e=ap(t),r={},n=Object.keys(e),i=n.length,s=0;s<i;s++){var o=n[s],a=e[o];a.parent!==null&&(r[o]=up(o,e))}return r}});var oa=y((Wb,sa)=>{var hi=di(),lp=ia(),Ft={},fp=Object.keys(hi);function dp(t){var e=function(r){return r==null?r:(arguments.length>1&&(r=Array.prototype.slice.call(arguments)),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}function hp(t){var e=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var n=t(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 t&&(e.conversion=t.conversion),e}fp.forEach(function(t){Ft[t]={},Object.defineProperty(Ft[t],"channels",{value:hi[t].channels}),Object.defineProperty(Ft[t],"labels",{value:hi[t].labels});var e=lp(t),r=Object.keys(e);r.forEach(function(n){var i=e[n];Ft[t][n]=hp(i),Ft[t][n].raw=dp(i)})});sa.exports=Ft});var ca=y((Jb,aa)=>{"use strict";var kt=oa(),Lr=(t,e)=>function(){return`\x1B[${t.apply(kt,arguments)+e}m`},Br=(t,e)=>function(){let r=t.apply(kt,arguments);return`\x1B[${38+e};5;${r}m`},Ur=(t,e)=>function(){let r=t.apply(kt,arguments);return`\x1B[${38+e};2;${r[0]};${r[1]};${r[2]}m`};function pp(){let t=new Map,e={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]}};e.color.grey=e.color.gray;for(let i of Object.keys(e)){let s=e[i];for(let o of Object.keys(s)){let a=s[o];e[o]={open:`\x1B[${a[0]}m`,close:`\x1B[${a[1]}m`},s[o]=e[o],t.set(a[0],a[1])}Object.defineProperty(e,i,{value:s,enumerable:!1}),Object.defineProperty(e,"codes",{value:t,enumerable:!1})}let r=i=>i,n=(i,s,o)=>[i,s,o];e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",e.color.ansi={ansi:Lr(r,0)},e.color.ansi256={ansi256:Br(r,0)},e.color.ansi16m={rgb:Ur(n,0)},e.bgColor.ansi={ansi:Lr(r,10)},e.bgColor.ansi256={ansi256:Br(r,10)},e.bgColor.ansi16m={rgb:Ur(n,10)};for(let i of Object.keys(kt)){if(typeof kt[i]!="object")continue;let s=kt[i];i==="ansi16"&&(i="ansi"),"ansi16"in s&&(e.color.ansi[i]=Lr(s.ansi16,0),e.bgColor.ansi[i]=Lr(s.ansi16,10)),"ansi256"in s&&(e.color.ansi256[i]=Br(s.ansi256,0),e.bgColor.ansi256[i]=Br(s.ansi256,10)),"rgb"in s&&(e.color.ansi16m[i]=Ur(s.rgb,0),e.bgColor.ansi16m[i]=Ur(s.rgb,10))}return e}Object.defineProperty(aa,"exports",{enumerable:!0,get:pp})});var la=y((zb,ua)=>{"use strict";ua.exports=(t,e)=>{e=e||process.argv;let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1?!0:n<i)}});var da=y((Vb,fa)=>{"use strict";var mp=require("os"),$e=la(),de=process.env,Tt;$e("no-color")||$e("no-colors")||$e("color=false")?Tt=!1:($e("color")||$e("colors")||$e("color=true")||$e("color=always"))&&(Tt=!0);"FORCE_COLOR"in de&&(Tt=de.FORCE_COLOR.length===0||parseInt(de.FORCE_COLOR,10)!==0);function gp(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function yp(t){if(Tt===!1)return 0;if($e("color=16m")||$e("color=full")||$e("color=truecolor"))return 3;if($e("color=256"))return 2;if(t&&!t.isTTY&&Tt!==!0)return 0;let e=Tt?1:0;if(process.platform==="win32"){let r=mp.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 de)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in de)||de.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in de)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(de.TEAMCITY_VERSION)?1:0;if(de.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in de){let r=parseInt((de.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(de.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(de.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(de.TERM)||"COLORTERM"in de?1:(de.TERM==="dumb",e)}function pi(t){let e=yp(t);return gp(e)}fa.exports={supportsColor:pi,stdout:pi(process.stdout),stderr:pi(process.stderr)}});var ya=y((Yb,ga)=>{"use strict";var vp=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,ha=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,bp=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,_p=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,wp=new Map([["n",`
|
|
3
|
-
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function
|
|
4
|
-
`,
|
|
5
|
-
GFS4: `),console.error(t)});z[ie]||(Ra=global[ie]||[],ka(z,Ra),z.close=function(t){function e(r,n){return t.call(z,r,function(i){i||Fa(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,Jr,{value:t}),e}(z.close),z.closeSync=function(t){function e(r){t.apply(z,arguments),Fa()}return Object.defineProperty(e,Jr,{value:t}),e}(z.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){bt(z[ie]),require("assert").equal(z[ie].length,0)}));var Ra;global[ie]||ka(global,z[ie]);Si.exports=_i(Xp(z));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!z.__patched&&(Si.exports=_i(z),z.__patched=!0);function _i(t){Bp(t),t.gracefulify=_i,t.createReadStream=H,t.createWriteStream=Q;var e=t.readFile;t.readFile=r;function r(_,S,P){return typeof S=="function"&&(P=S,S=null),G(_,S,P);function G(R,L,I,B){return e(R,L,function(T){T&&(T.code==="EMFILE"||T.code==="ENFILE")?qt([G,[R,L,I],T,B||Date.now(),Date.now()]):typeof I=="function"&&I.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=i;function i(_,S,P,G){return typeof P=="function"&&(G=P,P=null),R(_,S,P,G);function R(L,I,B,T,A){return n(L,I,B,function(M){M&&(M.code==="EMFILE"||M.code==="ENFILE")?qt([R,[L,I,B,T],M,A||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}var s=t.appendFile;s&&(t.appendFile=o);function o(_,S,P,G){return typeof P=="function"&&(G=P,P=null),R(_,S,P,G);function R(L,I,B,T,A){return s(L,I,B,function(M){M&&(M.code==="EMFILE"||M.code==="ENFILE")?qt([R,[L,I,B,T],M,A||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(_,S,P,G){return typeof P=="function"&&(G=P,P=0),R(_,S,P,G);function R(L,I,B,T,A){return a(L,I,B,function(M){M&&(M.code==="EMFILE"||M.code==="ENFILE")?qt([R,[L,I,B,T],M,A||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}var d=t.readdir;t.readdir=h;var u=/^v[0-5]\./;function h(_,S,P){typeof S=="function"&&(P=S,S=null);var G=u.test(process.version)?function(I,B,T,A){return d(I,R(I,B,T,A))}:function(I,B,T,A){return d(I,B,R(I,B,T,A))};return G(_,S,P);function R(L,I,B,T){return function(A,M){A&&(A.code==="EMFILE"||A.code==="ENFILE")?qt([G,[L,I,B],A,T||Date.now(),Date.now()]):(M&&M.sort&&M.sort(),typeof B=="function"&&B.call(this,A,M))}}}if(process.version.substr(0,4)==="v0.8"){var g=Up(t);F=g.ReadStream,U=g.WriteStream}var m=t.ReadStream;m&&(F.prototype=Object.create(m.prototype),F.prototype.open=N);var b=t.WriteStream;b&&(U.prototype=Object.create(b.prototype),U.prototype.open=$),Object.defineProperty(t,"ReadStream",{get:function(){return F},set:function(_){F=_},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return U},set:function(_){U=_},enumerable:!0,configurable:!0});var x=F;Object.defineProperty(t,"FileReadStream",{get:function(){return x},set:function(_){x=_},enumerable:!0,configurable:!0});var C=U;Object.defineProperty(t,"FileWriteStream",{get:function(){return C},set:function(_){C=_},enumerable:!0,configurable:!0});function F(_,S){return this instanceof F?(m.apply(this,arguments),this):F.apply(Object.create(F.prototype),arguments)}function N(){var _=this;V(_.path,_.flags,_.mode,function(S,P){S?(_.autoClose&&_.destroy(),_.emit("error",S)):(_.fd=P,_.emit("open",P),_.read())})}function U(_,S){return this instanceof U?(b.apply(this,arguments),this):U.apply(Object.create(U.prototype),arguments)}function $(){var _=this;V(_.path,_.flags,_.mode,function(S,P){S?(_.destroy(),_.emit("error",S)):(_.fd=P,_.emit("open",P))})}function H(_,S){return new t.ReadStream(_,S)}function Q(_,S){return new t.WriteStream(_,S)}var ue=t.open;t.open=V;function V(_,S,P,G){return typeof P=="function"&&(G=P,P=null),R(_,S,P,G);function R(L,I,B,T,A){return ue(L,I,B,function(M,Ne){M&&(M.code==="EMFILE"||M.code==="ENFILE")?qt([R,[L,I,B,T],M,A||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}return t}function qt(t){bt("ENQUEUE",t[0].name,t[1]),z[ie].push(t),wi()}var Wr;function Fa(){for(var t=Date.now(),e=0;e<z[ie].length;++e)z[ie][e].length>2&&(z[ie][e][3]=t,z[ie][e][4]=t);wi()}function wi(){if(clearTimeout(Wr),Wr=void 0,z[ie].length!==0){var t=z[ie].shift(),e=t[0],r=t[1],n=t[2],i=t[3],s=t[4];if(i===void 0)bt("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-i>=6e4){bt("TIMEOUT",e.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?(bt("RETRY",e.name,r),e.apply(null,r.concat([i]))):z[ie].push(t)}Wr===void 0&&(Wr=setTimeout(wi,0))}}});var ar=y(it=>{"use strict";var Ta=Ce().fromCallback,ve=he(),Hp=["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(t=>typeof ve[t]=="function");Object.keys(ve).forEach(t=>{t!=="promises"&&(it[t]=ve[t])});Hp.forEach(t=>{it[t]=Ta(ve[t])});it.exists=function(t,e){return typeof e=="function"?ve.exists(t,e):new Promise(r=>ve.exists(t,r))};it.read=function(t,e,r,n,i,s){return typeof s=="function"?ve.read(t,e,r,n,i,s):new Promise((o,a)=>{ve.read(t,e,r,n,i,(c,d,u)=>{if(c)return a(c);o({bytesRead:d,buffer:u})})})};it.write=function(t,e,...r){return typeof r[r.length-1]=="function"?ve.write(t,e,...r):new Promise((n,i)=>{ve.write(t,e,...r,(s,o,a)=>{if(s)return i(s);n({bytesWritten:o,buffer:a})})})};typeof ve.writev=="function"&&(it.writev=function(t,e,...r){return typeof r[r.length-1]=="function"?ve.writev(t,e,...r):new Promise((n,i)=>{ve.writev(t,e,...r,(s,o,a)=>{if(s)return i(s);n({bytesWritten:o,buffers:a})})})});typeof ve.realpath.native=="function"&&(it.realpath.native=Ta(ve.realpath.native))});var xi=y((s2,Ma)=>{Ma.exports=t=>{let e=process.versions.node.split(".").map(r=>parseInt(r,10));return t=t.split(".").map(r=>parseInt(r,10)),e[0]>t[0]||e[0]===t[0]&&(e[1]>t[1]||e[1]===t[1]&&e[2]>=t[2])}});var La=y((o2,Ei)=>{"use strict";var Nt=ar(),Ve=require("path"),Wp=xi(),qa=Wp("10.12.0"),Na=t=>{if(process.platform==="win32"&&/[<>:"|?*]/.test(t.replace(Ve.parse(t).root,""))){let r=new Error(`Path contains invalid characters: ${t}`);throw r.code="EINVAL",r}},ja=t=>{let e={mode:511};return typeof t=="number"&&(t={mode:t}),{...e,...t}},$a=t=>{let e=new Error(`operation not permitted, mkdir '${t}'`);return e.code="EPERM",e.errno=-4048,e.path=t,e.syscall="mkdir",e};Ei.exports.makeDir=async(t,e)=>{if(Na(t),e=ja(e),qa){let n=Ve.resolve(t);return Nt.mkdir(n,{mode:e.mode,recursive:!0})}let r=async n=>{try{await Nt.mkdir(n,e.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(Ve.dirname(n)===n)throw $a(n);if(i.message.includes("null bytes"))throw i;return await r(Ve.dirname(n)),r(n)}try{if(!(await Nt.stat(n)).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return r(Ve.resolve(t))};Ei.exports.makeDirSync=(t,e)=>{if(Na(t),e=ja(e),qa){let n=Ve.resolve(t);return Nt.mkdirSync(n,{mode:e.mode,recursive:!0})}let r=n=>{try{Nt.mkdirSync(n,e.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(Ve.dirname(n)===n)throw $a(n);if(i.message.includes("null bytes"))throw i;return r(Ve.dirname(n)),r(n)}try{if(!Nt.statSync(n).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return r(Ve.resolve(t))}});var Le=y((a2,Ba)=>{"use strict";var Jp=Ce().fromPromise,{makeDir:zp,makeDirSync:Ci}=La(),Pi=Jp(zp);Ba.exports={mkdirs:Pi,mkdirsSync:Ci,mkdirp:Pi,mkdirpSync:Ci,ensureDir:Pi,ensureDirSync:Ci}});var Di=y((c2,Ua)=>{"use strict";var jt=he();function Vp(t,e,r,n){jt.open(t,"r+",(i,s)=>{if(i)return n(i);jt.futimes(s,e,r,o=>{jt.close(s,a=>{n&&n(o||a)})})})}function Yp(t,e,r){let n=jt.openSync(t,"r+");return jt.futimesSync(n,e,r),jt.closeSync(n)}Ua.exports={utimesMillis:Vp,utimesMillisSync:Yp}});var cr=y((u2,Wa)=>{"use strict";var $t=ar(),Pe=require("path"),Kp=require("util"),Qp=xi(),zr=Qp("10.5.0"),Xa=t=>zr?$t.stat(t,{bigint:!0}):$t.stat(t),Oi=t=>zr?$t.statSync(t,{bigint:!0}):$t.statSync(t);function Zp(t,e){return Promise.all([Xa(t),Xa(e).catch(r=>{if(r.code==="ENOENT")return null;throw r})]).then(([r,n])=>({srcStat:r,destStat:n}))}function e0(t,e){let r,n=Oi(t);try{r=Oi(e)}catch(i){if(i.code==="ENOENT")return{srcStat:n,destStat:null};throw i}return{srcStat:n,destStat:r}}function t0(t,e,r,n){Kp.callbackify(Zp)(t,e,(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()&&Ai(t,e)?n(new Error(Yr(t,e,r))):n(null,{srcStat:o,destStat:a})})}function r0(t,e,r){let{srcStat:n,destStat:i}=e0(t,e);if(i&&Vr(n,i))throw new Error("Source and destination must not be the same.");if(n.isDirectory()&&Ai(t,e))throw new Error(Yr(t,e,r));return{srcStat:n,destStat:i}}function Ga(t,e,r,n,i){let s=Pe.resolve(Pe.dirname(t)),o=Pe.resolve(Pe.dirname(r));if(o===s||o===Pe.parse(o).root)return i();let a=(c,d)=>c?c.code==="ENOENT"?i():i(c):Vr(e,d)?i(new Error(Yr(t,r,n))):Ga(t,e,o,n,i);zr?$t.stat(o,{bigint:!0},a):$t.stat(o,a)}function Ha(t,e,r,n){let i=Pe.resolve(Pe.dirname(t)),s=Pe.resolve(Pe.dirname(r));if(s===i||s===Pe.parse(s).root)return;let o;try{o=Oi(s)}catch(a){if(a.code==="ENOENT")return;throw a}if(Vr(e,o))throw new Error(Yr(t,r,n));return Ha(t,e,s,n)}function Vr(t,e){return!!(e.ino&&e.dev&&e.ino===t.ino&&e.dev===t.dev&&(zr||e.ino<Number.MAX_SAFE_INTEGER||e.size===t.size&&e.mode===t.mode&&e.nlink===t.nlink&&e.atimeMs===t.atimeMs&&e.mtimeMs===t.mtimeMs&&e.ctimeMs===t.ctimeMs&&e.birthtimeMs===t.birthtimeMs))}function Ai(t,e){let r=Pe.resolve(t).split(Pe.sep).filter(i=>i),n=Pe.resolve(e).split(Pe.sep).filter(i=>i);return r.reduce((i,s,o)=>i&&n[o]===s,!0)}function Yr(t,e,r){return`Cannot ${r} '${t}' to a subdirectory of itself, '${e}'.`}Wa.exports={checkPaths:t0,checkPathsSync:r0,checkParentPaths:Ga,checkParentPathsSync:Ha,isSrcSubdir:Ai}});var Ka=y((l2,Ya)=>{"use strict";var pe=he(),ur=require("path"),n0=Le().mkdirsSync,i0=Di().utimesMillisSync,lr=cr();function s0(t,e,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;
|
|
2
|
+
"use strict";var Qh=Object.create;var jr=Object.defineProperty;var Zh=Object.getOwnPropertyDescriptor;var ep=Object.getOwnPropertyNames;var tp=Object.getPrototypeOf,rp=Object.prototype.hasOwnProperty;var zo=(t,e)=>()=>(t&&(e=t(t=0)),e);var y=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),np=(t,e)=>{for(var r in e)jr(t,r,{get:e[r],enumerable:!0})},Vo=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of ep(e))!rp.call(t,i)&&i!==r&&jr(t,i,{get:()=>e[i],enumerable:!(n=Zh(e,i))||n.enumerable});return t};var k=(t,e,r)=>(r=t!=null?Qh(tp(t)):{},Vo(e||!t||!t.__esModule?jr(r,"default",{value:t,enumerable:!0}):r,t)),ip=t=>Vo(jr({},"__esModule",{value:!0}),t);var Ko=y((Xb,Yo)=>{"use strict";var sp=/[|\\{}()[\]^$+*?.]/g;Yo.exports=function(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(sp,"\\$&")}});var Zo=y((Gb,Qo)=>{"use strict";Qo.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 di=y((Hb,na)=>{var yt=Zo(),ra={};for($r in yt)yt.hasOwnProperty($r)&&(ra[yt[$r]]=$r);var $r,D=na.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(ye in D)if(D.hasOwnProperty(ye)){if(!("channels"in D[ye]))throw new Error("missing channels property: "+ye);if(!("labels"in D[ye]))throw new Error("missing channel labels property: "+ye);if(D[ye].labels.length!==D[ye].channels)throw new Error("channel and label counts mismatch: "+ye);ea=D[ye].channels,ta=D[ye].labels,delete D[ye].channels,delete D[ye].labels,Object.defineProperty(D[ye],"channels",{value:ea}),Object.defineProperty(D[ye],"labels",{value:ta})}var ea,ta,ye;D.rgb.hsl=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),s=Math.max(e,r,n),o=s-i,a,c,d;return s===i?a=0:e===s?a=(r-n)/o:r===s?a=2+(n-e)/o:n===s&&(a=4+(e-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]};D.rgb.hsv=function(t){var e,r,n,i,s,o=t[0]/255,a=t[1]/255,c=t[2]/255,d=Math.max(o,a,c),u=d-Math.min(o,a,c),h=function(g){return(d-g)/6/u+1/2};return u===0?i=s=0:(s=u/d,e=h(o),r=h(a),n=h(c),o===d?i=n-r:a===d?i=1/3+e-n:c===d&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,d*100]};D.rgb.hwb=function(t){var e=t[0],r=t[1],n=t[2],i=D.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,s*100,n*100]};D.rgb.cmyk=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i,s,o,a;return a=Math.min(1-e,1-r,1-n),i=(1-e-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 op(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}D.rgb.keyword=function(t){var e=ra[t];if(e)return e;var r=1/0,n;for(var i in yt)if(yt.hasOwnProperty(i)){var s=yt[i],o=op(t,s);o<r&&(r=o,n=i)}return n};D.keyword.rgb=function(t){return yt[t]};D.rgb.xyz=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255;e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/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=e*.4124+r*.3576+n*.1805,s=e*.2126+r*.7152+n*.0722,o=e*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};D.rgb.lab=function(t){var e=D.rgb.xyz(t),r=e[0],n=e[1],i=e[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]};D.hsl.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[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=e+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};D.hsl.hsv=function(t){var e=t[0],r=t[1]/100,n=t[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),[e,o*100,a*100]};D.hsv.rgb=function(t){var e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,s=e-Math.floor(e),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]}};D.hsv.hsl=function(t){var e=t[0],r=t[1]/100,n=t[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,[e,o*100,a*100]};D.hwb.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,s,o,a,c;i>1&&(r/=i,n/=i),s=Math.floor(6*e),o=1-n,a=6*e-s,s&1&&(a=1-a),c=r+a*(o-r);var d,u,h;switch(s){default:case 6:case 0:d=o,u=c,h=r;break;case 1:d=c,u=o,h=r;break;case 2:d=r,u=o,h=c;break;case 3:d=r,u=c,h=o;break;case 4:d=c,u=r,h=o;break;case 5:d=o,u=r,h=c;break}return[d*255,u*255,h*255]};D.cmyk.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100,s,o,a;return s=1-Math.min(1,e*(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]};D.xyz.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,i,s,o;return i=e*3.2406+r*-1.5372+n*-.4986,s=e*-.9689+r*1.8758+n*.0415,o=e*.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]};D.xyz.lab=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;return e/=95.047,r/=100,n/=108.883,e=e>.008856?Math.pow(e,1/3):7.787*e+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*(e-r),o=200*(r-n),[i,s,o]};D.lab.xyz=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;s=(e+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]};D.lab.lch=function(t){var e=t[0],r=t[1],n=t[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),[e,o,s]};D.lch.lab=function(t){var e=t[0],r=t[1],n=t[2],i,s,o;return o=n/360*2*Math.PI,i=r*Math.cos(o),s=r*Math.sin(o),[e,i,s]};D.rgb.ansi16=function(t){var e=t[0],r=t[1],n=t[2],i=1 in arguments?arguments[1]:D.rgb.hsv(t)[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(e/255));return i===2&&(s+=60),s};D.hsv.ansi16=function(t){return D.rgb.ansi16(D.hsv.rgb(t),t[2])};D.rgb.ansi256=function(t){var e=t[0],r=t[1],n=t[2];if(e===r&&r===n)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;var i=16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};D.ansi16.rgb=function(t){var e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];var r=(~~(t>50)+1)*.5,n=(e&1)*r*255,i=(e>>1&1)*r*255,s=(e>>2&1)*r*255;return[n,i,s]};D.ansi256.rgb=function(t){if(t>=232){var e=(t-232)*10+8;return[e,e,e]}t-=16;var r,n=Math.floor(t/36)/5*255,i=Math.floor((r=t%36)/6)/5*255,s=r%6/5*255;return[n,i,s]};D.rgb.hex=function(t){var e=((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255),r=e.toString(16).toUpperCase();return"000000".substring(r.length)+r};D.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var r=e[0];e[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]};D.rgb.hcg=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),s=Math.min(Math.min(e,r),n),o=i-s,a,c;return o<1?a=s/(1-o):a=0,o<=0?c=0:i===e?c=(r-n)/o%6:i===r?c=2+(n-e)/o:c=4+(e-r)/o+4,c/=6,c%=1,[c*360,o*100,a*100]};D.hsl.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1,i=0;return r<.5?n=2*e*r:n=2*e*(1-r),n<1&&(i=(r-.5*n)/(1-n)),[t[0],n*100,i*100]};D.hsv.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],n*100,i*100]};D.hcg.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];var i=[0,0,0],s=e%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]};D.hcg.hsv=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e),i=0;return n>0&&(i=e/n),[t[0],i*100,n*100]};D.hcg.hsl=function(t){var e=t[1]/100,r=t[2]/100,n=r*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],i*100,n*100]};D.hcg.hwb=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],(n-e)*100,(1-n)*100]};D.hwb.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1-r,i=n-e,s=0;return i<1&&(s=(n-i)/(1-i)),[t[0],i*100,s*100]};D.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};D.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};D.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};D.gray.hsl=D.gray.hsv=function(t){return[0,0,t[0]]};D.gray.hwb=function(t){return[0,100,t[0]]};D.gray.cmyk=function(t){return[0,0,0,t[0]]};D.gray.lab=function(t){return[t[0],0,0]};D.gray.hex=function(t){var e=Math.round(t[0]/100*255)&255,r=(e<<16)+(e<<8)+e,n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};D.rgb.gray=function(t){var e=(t[0]+t[1]+t[2])/3;return[e/255*100]}});var sa=y((Wb,ia)=>{var Lr=di();function ap(){for(var t={},e=Object.keys(Lr),r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function cp(t){var e=ap(),r=[t];for(e[t].distance=0;r.length;)for(var n=r.pop(),i=Object.keys(Lr[n]),s=i.length,o=0;o<s;o++){var a=i[o],c=e[a];c.distance===-1&&(c.distance=e[n].distance+1,c.parent=n,r.unshift(a))}return e}function up(t,e){return function(r){return e(t(r))}}function lp(t,e){for(var r=[e[t].parent,t],n=Lr[e[t].parent][t],i=e[t].parent;e[i].parent;)r.unshift(e[i].parent),n=up(Lr[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}ia.exports=function(t){for(var e=cp(t),r={},n=Object.keys(e),i=n.length,s=0;s<i;s++){var o=n[s],a=e[o];a.parent!==null&&(r[o]=lp(o,e))}return r}});var aa=y((Jb,oa)=>{var hi=di(),fp=sa(),Ft={},dp=Object.keys(hi);function hp(t){var e=function(r){return r==null?r:(arguments.length>1&&(r=Array.prototype.slice.call(arguments)),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}function pp(t){var e=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var n=t(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 t&&(e.conversion=t.conversion),e}dp.forEach(function(t){Ft[t]={},Object.defineProperty(Ft[t],"channels",{value:hi[t].channels}),Object.defineProperty(Ft[t],"labels",{value:hi[t].labels});var e=fp(t),r=Object.keys(e);r.forEach(function(n){var i=e[n];Ft[t][n]=pp(i),Ft[t][n].raw=hp(i)})});oa.exports=Ft});var ua=y((zb,ca)=>{"use strict";var kt=aa(),Br=(t,e)=>function(){return`\x1B[${t.apply(kt,arguments)+e}m`},Ur=(t,e)=>function(){let r=t.apply(kt,arguments);return`\x1B[${38+e};5;${r}m`},Xr=(t,e)=>function(){let r=t.apply(kt,arguments);return`\x1B[${38+e};2;${r[0]};${r[1]};${r[2]}m`};function mp(){let t=new Map,e={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]}};e.color.grey=e.color.gray;for(let i of Object.keys(e)){let s=e[i];for(let o of Object.keys(s)){let a=s[o];e[o]={open:`\x1B[${a[0]}m`,close:`\x1B[${a[1]}m`},s[o]=e[o],t.set(a[0],a[1])}Object.defineProperty(e,i,{value:s,enumerable:!1}),Object.defineProperty(e,"codes",{value:t,enumerable:!1})}let r=i=>i,n=(i,s,o)=>[i,s,o];e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",e.color.ansi={ansi:Br(r,0)},e.color.ansi256={ansi256:Ur(r,0)},e.color.ansi16m={rgb:Xr(n,0)},e.bgColor.ansi={ansi:Br(r,10)},e.bgColor.ansi256={ansi256:Ur(r,10)},e.bgColor.ansi16m={rgb:Xr(n,10)};for(let i of Object.keys(kt)){if(typeof kt[i]!="object")continue;let s=kt[i];i==="ansi16"&&(i="ansi"),"ansi16"in s&&(e.color.ansi[i]=Br(s.ansi16,0),e.bgColor.ansi[i]=Br(s.ansi16,10)),"ansi256"in s&&(e.color.ansi256[i]=Ur(s.ansi256,0),e.bgColor.ansi256[i]=Ur(s.ansi256,10)),"rgb"in s&&(e.color.ansi16m[i]=Xr(s.rgb,0),e.bgColor.ansi16m[i]=Xr(s.rgb,10))}return e}Object.defineProperty(ca,"exports",{enumerable:!0,get:mp})});var fa=y((Vb,la)=>{"use strict";la.exports=(t,e)=>{e=e||process.argv;let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1?!0:n<i)}});var ha=y((Yb,da)=>{"use strict";var gp=require("os"),$e=fa(),de=process.env,Tt;$e("no-color")||$e("no-colors")||$e("color=false")?Tt=!1:($e("color")||$e("colors")||$e("color=true")||$e("color=always"))&&(Tt=!0);"FORCE_COLOR"in de&&(Tt=de.FORCE_COLOR.length===0||parseInt(de.FORCE_COLOR,10)!==0);function yp(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function vp(t){if(Tt===!1)return 0;if($e("color=16m")||$e("color=full")||$e("color=truecolor"))return 3;if($e("color=256"))return 2;if(t&&!t.isTTY&&Tt!==!0)return 0;let e=Tt?1:0;if(process.platform==="win32"){let r=gp.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 de)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in de)||de.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in de)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(de.TEAMCITY_VERSION)?1:0;if(de.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in de){let r=parseInt((de.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(de.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(de.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(de.TERM)||"COLORTERM"in de?1:(de.TERM==="dumb",e)}function pi(t){let e=vp(t);return yp(e)}da.exports={supportsColor:pi,stdout:pi(process.stdout),stderr:pi(process.stderr)}});var va=y((Kb,ya)=>{"use strict";var bp=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,pa=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,_p=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,wp=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,Sp=new Map([["n",`
|
|
3
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function ga(t){return t[0]==="u"&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):Sp.get(t)||t}function xp(t,e){let r=[],n=e.trim().split(/\s*,\s*/g),i;for(let s of n)if(!isNaN(s))r.push(Number(s));else if(i=s.match(_p))r.push(i[2].replace(wp,(o,a,c)=>a?ga(a):c));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${t}')`);return r}function Ep(t){pa.lastIndex=0;let e=[],r;for(;(r=pa.exec(t))!==null;){let n=r[1];if(r[2]){let i=xp(n,r[2]);e.push([n].concat(i))}else e.push([n])}return e}function ma(t,e){let r={};for(let i of e)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=t;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}ya.exports=(t,e)=>{let r=[],n=[],i=[];if(e.replace(bp,(s,o,a,c,d,u)=>{if(o)i.push(ga(o));else if(c){let h=i.join("");i=[],n.push(r.length===0?h:ma(t,r)(h)),r.push({inverse:a,styles:Ep(c)})}else if(d){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(ma(t,r)(i.join(""))),i=[],r.pop()}else i.push(u)}),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 or=y((Qb,sr)=>{"use strict";var gi=Ko(),K=ua(),mi=ha().stdout,Cp=va(),_a=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),wa=["ansi","ansi","ansi256","ansi16m"],Sa=new Set(["gray"]),Mt=Object.create(null);function ba(t,e){e=e||{};let r=mi?mi.level:0;t.level=e.level===void 0?r:e.level,t.enabled="enabled"in e?e.enabled:t.level>0}function ir(t){if(!this||!(this instanceof ir)||this.template){let e={};return ba(e,t),e.template=function(){let r=[].slice.call(arguments);return Op.apply(null,[e.template].concat(r))},Object.setPrototypeOf(e,ir.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=ir,e.template}ba(this,t)}_a&&(K.blue.open="\x1B[94m");for(let t of Object.keys(K))K[t].closeRe=new RegExp(gi(K[t].close),"g"),Mt[t]={get(){let e=K[t];return Gr.call(this,this._styles?this._styles.concat(e):[e],this._empty,t)}};Mt.visible={get(){return Gr.call(this,this._styles||[],!0,"visible")}};K.color.closeRe=new RegExp(gi(K.color.close),"g");for(let t of Object.keys(K.color.ansi))Sa.has(t)||(Mt[t]={get(){let e=this.level;return function(){let n={open:K.color[wa[e]][t].apply(null,arguments),close:K.color.close,closeRe:K.color.closeRe};return Gr.call(this,this._styles?this._styles.concat(n):[n],this._empty,t)}}});K.bgColor.closeRe=new RegExp(gi(K.bgColor.close),"g");for(let t of Object.keys(K.bgColor.ansi)){if(Sa.has(t))continue;let e="bg"+t[0].toUpperCase()+t.slice(1);Mt[e]={get(){let r=this.level;return function(){let i={open:K.bgColor[wa[r]][t].apply(null,arguments),close:K.bgColor.close,closeRe:K.bgColor.closeRe};return Gr.call(this,this._styles?this._styles.concat(i):[i],this._empty,t)}}}}var Pp=Object.defineProperties(()=>{},Mt);function Gr(t,e,r){let n=function(){return Dp.apply(n,arguments)};n._styles=t,n._empty=e;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__=Pp,n}function Dp(){let t=arguments,e=t.length,r=String(arguments[0]);if(e===0)return"";if(e>1)for(let i=1;i<e;i++)r+=" "+t[i];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;let n=K.dim.open;_a&&this.hasGrey&&(K.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 K.dim.open=n,r}function Op(t,e){if(!Array.isArray(e))return[].slice.call(arguments,1).join(" ");let r=[].slice.call(arguments,2),n=[e.raw[0]];for(let i=1;i<e.length;i++)n.push(String(r[i-1]).replace(/[{}\\]/g,"\\$&")),n.push(String(e.raw[i]));return Cp(t,n.join(""))}Object.defineProperties(ir.prototype,Mt);sr.exports=ir();sr.exports.supportsColor=mi;sr.exports.default=sr.exports});var ze=y((Zb,yi)=>{var Ap=require("fs"),Ip=require("path");function xa(t){console.log(`[dotenv][DEBUG] ${t}`)}var Rp=`
|
|
4
|
+
`,Fp=/^\s*([\w.-]+)\s*=\s*(.*)?\s*$/,kp=/\\n/g,Tp=/\n|\r|\r\n/;function Ea(t,e){let r=!!(e&&e.debug),n={};return t.toString().split(Tp).forEach(function(i,s){let o=i.match(Fp);if(o!=null){let a=o[1],c=o[2]||"",d=c.length-1,u=c[0]==='"'&&c[d]==='"';c[0]==="'"&&c[d]==="'"||u?(c=c.substring(1,d),u&&(c=c.replace(kp,Rp))):c=c.trim(),n[a]=c}else r&&xa(`did not match key and value when parsing line ${s+1}: ${i}`)}),n}function Mp(t){let e=Ip.resolve(process.cwd(),".env"),r="utf8",n=!1;t&&(t.path!=null&&(e=t.path),t.encoding!=null&&(r=t.encoding),t.debug!=null&&(n=!0));try{let i=Ea(Ap.readFileSync(e,{encoding:r}),{debug:n});return Object.keys(i).forEach(function(s){Object.prototype.hasOwnProperty.call(process.env,s)?n&&xa(`"${s}" is already defined in \`process.env\` and will not be overwritten`):process.env[s]=i[s]}),{parsed:i}}catch(i){return{error:i}}}yi.exports.config=Mp;yi.exports.parse=Ea});var Ce=y(vi=>{"use strict";vi.fromCallback=function(t){return Object.defineProperty(function(...e){if(typeof e[e.length-1]=="function")t.apply(this,e);else return new Promise((r,n)=>{t.call(this,...e,(i,s)=>i!=null?n(i):r(s))})},"name",{value:t.name})};vi.fromPromise=function(t){return Object.defineProperty(function(...e){let r=e[e.length-1];if(typeof r!="function")return t.apply(this,e);t.apply(this,e.slice(0,-1)).then(n=>r(null,n),r)},"name",{value:t.name})}});var Pa=y((t2,Ca)=>{var nt=require("constants"),qp=process.cwd,Hr=null,Np=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Hr||(Hr=qp.call(process)),Hr};try{process.cwd()}catch{}typeof process.chdir=="function"&&(bi=process.chdir,process.chdir=function(t){Hr=null,bi.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,bi));var bi;Ca.exports=jp;function jp(t){nt.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&e(t),t.lutimes||r(t),t.chown=s(t.chown),t.fchown=s(t.fchown),t.lchown=s(t.lchown),t.chmod=n(t.chmod),t.fchmod=n(t.fchmod),t.lchmod=n(t.lchmod),t.chownSync=o(t.chownSync),t.fchownSync=o(t.fchownSync),t.lchownSync=o(t.lchownSync),t.chmodSync=i(t.chmodSync),t.fchmodSync=i(t.fchmodSync),t.lchmodSync=i(t.lchmodSync),t.stat=a(t.stat),t.fstat=a(t.fstat),t.lstat=a(t.lstat),t.statSync=c(t.statSync),t.fstatSync=c(t.fstatSync),t.lstatSync=c(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(u,h,g){g&&process.nextTick(g)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(u,h,g,m){m&&process.nextTick(m)},t.lchownSync=function(){}),Np==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:function(u){function h(g,m,b){var x=Date.now(),C=0;u(g,m,function F(N){if(N&&(N.code==="EACCES"||N.code==="EPERM")&&Date.now()-x<6e4){setTimeout(function(){t.stat(m,function(U,$){U&&U.code==="ENOENT"?u(g,m,F):b(N)})},C),C<100&&(C+=10);return}b&&b(N)})}return Object.setPrototypeOf&&Object.setPrototypeOf(h,u),h}(t.rename)),t.read=typeof t.read!="function"?t.read:function(u){function h(g,m,b,x,C,F){var N;if(F&&typeof F=="function"){var U=0;N=function($,H,Q){if($&&$.code==="EAGAIN"&&U<10)return U++,u.call(t,g,m,b,x,C,N);F.apply(this,arguments)}}return u.call(t,g,m,b,x,C,N)}return Object.setPrototypeOf&&Object.setPrototypeOf(h,u),h}(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:function(u){return function(h,g,m,b,x){for(var C=0;;)try{return u.call(t,h,g,m,b,x)}catch(F){if(F.code==="EAGAIN"&&C<10){C++;continue}throw F}}}(t.readSync);function e(u){u.lchmod=function(h,g,m){u.open(h,nt.O_WRONLY|nt.O_SYMLINK,g,function(b,x){if(b){m&&m(b);return}u.fchmod(x,g,function(C){u.close(x,function(F){m&&m(C||F)})})})},u.lchmodSync=function(h,g){var m=u.openSync(h,nt.O_WRONLY|nt.O_SYMLINK,g),b=!0,x;try{x=u.fchmodSync(m,g),b=!1}finally{if(b)try{u.closeSync(m)}catch{}else u.closeSync(m)}return x}}function r(u){nt.hasOwnProperty("O_SYMLINK")&&u.futimes?(u.lutimes=function(h,g,m,b){u.open(h,nt.O_SYMLINK,function(x,C){if(x){b&&b(x);return}u.futimes(C,g,m,function(F){u.close(C,function(N){b&&b(F||N)})})})},u.lutimesSync=function(h,g,m){var b=u.openSync(h,nt.O_SYMLINK),x,C=!0;try{x=u.futimesSync(b,g,m),C=!1}finally{if(C)try{u.closeSync(b)}catch{}else u.closeSync(b)}return x}):u.futimes&&(u.lutimes=function(h,g,m,b){b&&process.nextTick(b)},u.lutimesSync=function(){})}function n(u){return u&&function(h,g,m){return u.call(t,h,g,function(b){d(b)&&(b=null),m&&m.apply(this,arguments)})}}function i(u){return u&&function(h,g){try{return u.call(t,h,g)}catch(m){if(!d(m))throw m}}}function s(u){return u&&function(h,g,m,b){return u.call(t,h,g,m,function(x){d(x)&&(x=null),b&&b.apply(this,arguments)})}}function o(u){return u&&function(h,g,m){try{return u.call(t,h,g,m)}catch(b){if(!d(b))throw b}}}function a(u){return u&&function(h,g,m){typeof g=="function"&&(m=g,g=null);function b(x,C){C&&(C.uid<0&&(C.uid+=4294967296),C.gid<0&&(C.gid+=4294967296)),m&&m.apply(this,arguments)}return g?u.call(t,h,g,b):u.call(t,h,b)}}function c(u){return u&&function(h,g){var m=g?u.call(t,h,g):u.call(t,h);return m&&(m.uid<0&&(m.uid+=4294967296),m.gid<0&&(m.gid+=4294967296)),m}}function d(u){if(!u||u.code==="ENOSYS")return!0;var h=!process.getuid||process.getuid()!==0;return!!(h&&(u.code==="EINVAL"||u.code==="EPERM"))}}});var Aa=y((r2,Oa)=>{var Da=require("stream").Stream;Oa.exports=$p;function $p(t){return{ReadStream:e,WriteStream:r};function e(n,i){if(!(this instanceof e))return new e(n,i);Da.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}t.open(this.path,this.flags,this.mode,function(u,h){if(u){s.emit("error",u),s.readable=!1;return}s.fd=h,s.emit("open",h),s._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);Da.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=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var Ra=y((n2,Ia)=>{"use strict";Ia.exports=Bp;var Lp=Object.getPrototypeOf||function(t){return t.__proto__};function Bp(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:Lp(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}});var he=y((i2,Si)=>{var z=require("fs"),Up=Pa(),Xp=Aa(),Gp=Ra(),Wr=require("util"),ie,zr;typeof Symbol=="function"&&typeof Symbol.for=="function"?(ie=Symbol.for("graceful-fs.queue"),zr=Symbol.for("graceful-fs.previous")):(ie="___graceful-fs.queue",zr="___graceful-fs.previous");function Hp(){}function Ta(t,e){Object.defineProperty(t,ie,{get:function(){return e}})}var vt=Hp;Wr.debuglog?vt=Wr.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(vt=function(){var t=Wr.format.apply(Wr,arguments);t="GFS4: "+t.split(/\n/).join(`
|
|
5
|
+
GFS4: `),console.error(t)});z[ie]||(Fa=global[ie]||[],Ta(z,Fa),z.close=function(t){function e(r,n){return t.call(z,r,function(i){i||ka(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,zr,{value:t}),e}(z.close),z.closeSync=function(t){function e(r){t.apply(z,arguments),ka()}return Object.defineProperty(e,zr,{value:t}),e}(z.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){vt(z[ie]),require("assert").equal(z[ie].length,0)}));var Fa;global[ie]||Ta(global,z[ie]);Si.exports=_i(Gp(z));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!z.__patched&&(Si.exports=_i(z),z.__patched=!0);function _i(t){Up(t),t.gracefulify=_i,t.createReadStream=H,t.createWriteStream=Q;var e=t.readFile;t.readFile=r;function r(_,S,P){return typeof S=="function"&&(P=S,S=null),G(_,S,P);function G(R,L,I,B){return e(R,L,function(T){T&&(T.code==="EMFILE"||T.code==="ENFILE")?qt([G,[R,L,I],T,B||Date.now(),Date.now()]):typeof I=="function"&&I.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=i;function i(_,S,P,G){return typeof P=="function"&&(G=P,P=null),R(_,S,P,G);function R(L,I,B,T,A){return n(L,I,B,function(M){M&&(M.code==="EMFILE"||M.code==="ENFILE")?qt([R,[L,I,B,T],M,A||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}var s=t.appendFile;s&&(t.appendFile=o);function o(_,S,P,G){return typeof P=="function"&&(G=P,P=null),R(_,S,P,G);function R(L,I,B,T,A){return s(L,I,B,function(M){M&&(M.code==="EMFILE"||M.code==="ENFILE")?qt([R,[L,I,B,T],M,A||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(_,S,P,G){return typeof P=="function"&&(G=P,P=0),R(_,S,P,G);function R(L,I,B,T,A){return a(L,I,B,function(M){M&&(M.code==="EMFILE"||M.code==="ENFILE")?qt([R,[L,I,B,T],M,A||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}var d=t.readdir;t.readdir=h;var u=/^v[0-5]\./;function h(_,S,P){typeof S=="function"&&(P=S,S=null);var G=u.test(process.version)?function(I,B,T,A){return d(I,R(I,B,T,A))}:function(I,B,T,A){return d(I,B,R(I,B,T,A))};return G(_,S,P);function R(L,I,B,T){return function(A,M){A&&(A.code==="EMFILE"||A.code==="ENFILE")?qt([G,[L,I,B],A,T||Date.now(),Date.now()]):(M&&M.sort&&M.sort(),typeof B=="function"&&B.call(this,A,M))}}}if(process.version.substr(0,4)==="v0.8"){var g=Xp(t);F=g.ReadStream,U=g.WriteStream}var m=t.ReadStream;m&&(F.prototype=Object.create(m.prototype),F.prototype.open=N);var b=t.WriteStream;b&&(U.prototype=Object.create(b.prototype),U.prototype.open=$),Object.defineProperty(t,"ReadStream",{get:function(){return F},set:function(_){F=_},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return U},set:function(_){U=_},enumerable:!0,configurable:!0});var x=F;Object.defineProperty(t,"FileReadStream",{get:function(){return x},set:function(_){x=_},enumerable:!0,configurable:!0});var C=U;Object.defineProperty(t,"FileWriteStream",{get:function(){return C},set:function(_){C=_},enumerable:!0,configurable:!0});function F(_,S){return this instanceof F?(m.apply(this,arguments),this):F.apply(Object.create(F.prototype),arguments)}function N(){var _=this;V(_.path,_.flags,_.mode,function(S,P){S?(_.autoClose&&_.destroy(),_.emit("error",S)):(_.fd=P,_.emit("open",P),_.read())})}function U(_,S){return this instanceof U?(b.apply(this,arguments),this):U.apply(Object.create(U.prototype),arguments)}function $(){var _=this;V(_.path,_.flags,_.mode,function(S,P){S?(_.destroy(),_.emit("error",S)):(_.fd=P,_.emit("open",P))})}function H(_,S){return new t.ReadStream(_,S)}function Q(_,S){return new t.WriteStream(_,S)}var ue=t.open;t.open=V;function V(_,S,P,G){return typeof P=="function"&&(G=P,P=null),R(_,S,P,G);function R(L,I,B,T,A){return ue(L,I,B,function(M,Ne){M&&(M.code==="EMFILE"||M.code==="ENFILE")?qt([R,[L,I,B,T],M,A||Date.now(),Date.now()]):typeof T=="function"&&T.apply(this,arguments)})}}return t}function qt(t){vt("ENQUEUE",t[0].name,t[1]),z[ie].push(t),wi()}var Jr;function ka(){for(var t=Date.now(),e=0;e<z[ie].length;++e)z[ie][e].length>2&&(z[ie][e][3]=t,z[ie][e][4]=t);wi()}function wi(){if(clearTimeout(Jr),Jr=void 0,z[ie].length!==0){var t=z[ie].shift(),e=t[0],r=t[1],n=t[2],i=t[3],s=t[4];if(i===void 0)vt("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-i>=6e4){vt("TIMEOUT",e.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?(vt("RETRY",e.name,r),e.apply(null,r.concat([i]))):z[ie].push(t)}Jr===void 0&&(Jr=setTimeout(wi,0))}}});var ar=y(it=>{"use strict";var Ma=Ce().fromCallback,ve=he(),Wp=["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(t=>typeof ve[t]=="function");Object.keys(ve).forEach(t=>{t!=="promises"&&(it[t]=ve[t])});Wp.forEach(t=>{it[t]=Ma(ve[t])});it.exists=function(t,e){return typeof e=="function"?ve.exists(t,e):new Promise(r=>ve.exists(t,r))};it.read=function(t,e,r,n,i,s){return typeof s=="function"?ve.read(t,e,r,n,i,s):new Promise((o,a)=>{ve.read(t,e,r,n,i,(c,d,u)=>{if(c)return a(c);o({bytesRead:d,buffer:u})})})};it.write=function(t,e,...r){return typeof r[r.length-1]=="function"?ve.write(t,e,...r):new Promise((n,i)=>{ve.write(t,e,...r,(s,o,a)=>{if(s)return i(s);n({bytesWritten:o,buffer:a})})})};typeof ve.writev=="function"&&(it.writev=function(t,e,...r){return typeof r[r.length-1]=="function"?ve.writev(t,e,...r):new Promise((n,i)=>{ve.writev(t,e,...r,(s,o,a)=>{if(s)return i(s);n({bytesWritten:o,buffers:a})})})});typeof ve.realpath.native=="function"&&(it.realpath.native=Ma(ve.realpath.native))});var xi=y((o2,qa)=>{qa.exports=t=>{let e=process.versions.node.split(".").map(r=>parseInt(r,10));return t=t.split(".").map(r=>parseInt(r,10)),e[0]>t[0]||e[0]===t[0]&&(e[1]>t[1]||e[1]===t[1]&&e[2]>=t[2])}});var Ba=y((a2,Ei)=>{"use strict";var Nt=ar(),Ve=require("path"),Jp=xi(),Na=Jp("10.12.0"),ja=t=>{if(process.platform==="win32"&&/[<>:"|?*]/.test(t.replace(Ve.parse(t).root,""))){let r=new Error(`Path contains invalid characters: ${t}`);throw r.code="EINVAL",r}},$a=t=>{let e={mode:511};return typeof t=="number"&&(t={mode:t}),{...e,...t}},La=t=>{let e=new Error(`operation not permitted, mkdir '${t}'`);return e.code="EPERM",e.errno=-4048,e.path=t,e.syscall="mkdir",e};Ei.exports.makeDir=async(t,e)=>{if(ja(t),e=$a(e),Na){let n=Ve.resolve(t);return Nt.mkdir(n,{mode:e.mode,recursive:!0})}let r=async n=>{try{await Nt.mkdir(n,e.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(Ve.dirname(n)===n)throw La(n);if(i.message.includes("null bytes"))throw i;return await r(Ve.dirname(n)),r(n)}try{if(!(await Nt.stat(n)).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return r(Ve.resolve(t))};Ei.exports.makeDirSync=(t,e)=>{if(ja(t),e=$a(e),Na){let n=Ve.resolve(t);return Nt.mkdirSync(n,{mode:e.mode,recursive:!0})}let r=n=>{try{Nt.mkdirSync(n,e.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(Ve.dirname(n)===n)throw La(n);if(i.message.includes("null bytes"))throw i;return r(Ve.dirname(n)),r(n)}try{if(!Nt.statSync(n).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return r(Ve.resolve(t))}});var Le=y((c2,Ua)=>{"use strict";var zp=Ce().fromPromise,{makeDir:Vp,makeDirSync:Ci}=Ba(),Pi=zp(Vp);Ua.exports={mkdirs:Pi,mkdirsSync:Ci,mkdirp:Pi,mkdirpSync:Ci,ensureDir:Pi,ensureDirSync:Ci}});var Di=y((u2,Xa)=>{"use strict";var jt=he();function Yp(t,e,r,n){jt.open(t,"r+",(i,s)=>{if(i)return n(i);jt.futimes(s,e,r,o=>{jt.close(s,a=>{n&&n(o||a)})})})}function Kp(t,e,r){let n=jt.openSync(t,"r+");return jt.futimesSync(n,e,r),jt.closeSync(n)}Xa.exports={utimesMillis:Yp,utimesMillisSync:Kp}});var cr=y((l2,Ja)=>{"use strict";var $t=ar(),Pe=require("path"),Qp=require("util"),Zp=xi(),Vr=Zp("10.5.0"),Ga=t=>Vr?$t.stat(t,{bigint:!0}):$t.stat(t),Oi=t=>Vr?$t.statSync(t,{bigint:!0}):$t.statSync(t);function e0(t,e){return Promise.all([Ga(t),Ga(e).catch(r=>{if(r.code==="ENOENT")return null;throw r})]).then(([r,n])=>({srcStat:r,destStat:n}))}function t0(t,e){let r,n=Oi(t);try{r=Oi(e)}catch(i){if(i.code==="ENOENT")return{srcStat:n,destStat:null};throw i}return{srcStat:n,destStat:r}}function r0(t,e,r,n){Qp.callbackify(e0)(t,e,(i,s)=>{if(i)return n(i);let{srcStat:o,destStat:a}=s;return a&&Yr(o,a)?n(new Error("Source and destination must not be the same.")):o.isDirectory()&&Ai(t,e)?n(new Error(Kr(t,e,r))):n(null,{srcStat:o,destStat:a})})}function n0(t,e,r){let{srcStat:n,destStat:i}=t0(t,e);if(i&&Yr(n,i))throw new Error("Source and destination must not be the same.");if(n.isDirectory()&&Ai(t,e))throw new Error(Kr(t,e,r));return{srcStat:n,destStat:i}}function Ha(t,e,r,n,i){let s=Pe.resolve(Pe.dirname(t)),o=Pe.resolve(Pe.dirname(r));if(o===s||o===Pe.parse(o).root)return i();let a=(c,d)=>c?c.code==="ENOENT"?i():i(c):Yr(e,d)?i(new Error(Kr(t,r,n))):Ha(t,e,o,n,i);Vr?$t.stat(o,{bigint:!0},a):$t.stat(o,a)}function Wa(t,e,r,n){let i=Pe.resolve(Pe.dirname(t)),s=Pe.resolve(Pe.dirname(r));if(s===i||s===Pe.parse(s).root)return;let o;try{o=Oi(s)}catch(a){if(a.code==="ENOENT")return;throw a}if(Yr(e,o))throw new Error(Kr(t,r,n));return Wa(t,e,s,n)}function Yr(t,e){return!!(e.ino&&e.dev&&e.ino===t.ino&&e.dev===t.dev&&(Vr||e.ino<Number.MAX_SAFE_INTEGER||e.size===t.size&&e.mode===t.mode&&e.nlink===t.nlink&&e.atimeMs===t.atimeMs&&e.mtimeMs===t.mtimeMs&&e.ctimeMs===t.ctimeMs&&e.birthtimeMs===t.birthtimeMs))}function Ai(t,e){let r=Pe.resolve(t).split(Pe.sep).filter(i=>i),n=Pe.resolve(e).split(Pe.sep).filter(i=>i);return r.reduce((i,s,o)=>i&&n[o]===s,!0)}function Kr(t,e,r){return`Cannot ${r} '${t}' to a subdirectory of itself, '${e}'.`}Ja.exports={checkPaths:r0,checkPathsSync:n0,checkParentPaths:Ha,checkParentPathsSync:Wa,isSrcSubdir:Ai}});var Qa=y((f2,Ka)=>{"use strict";var pe=he(),ur=require("path"),i0=Le().mkdirsSync,s0=Di().utimesMillisSync,lr=cr();function o0(t,e,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;
|
|
6
6
|
|
|
7
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:n,destStat:i}=lr.checkPathsSync(t,e,"copy");return lr.checkParentPathsSync(t,n,e,"copy"),
|
|
7
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:n,destStat:i}=lr.checkPathsSync(t,e,"copy");return lr.checkParentPathsSync(t,n,e,"copy"),a0(i,t,e,r)}function a0(t,e,r,n){if(n.filter&&!n.filter(e,r))return;let i=ur.dirname(r);return pe.existsSync(i)||i0(i),za(t,e,r,n)}function za(t,e,r,n){if(!(n.filter&&!n.filter(e,r)))return c0(t,e,r,n)}function c0(t,e,r,n){let s=(n.dereference?pe.statSync:pe.lstatSync)(e);if(s.isDirectory())return m0(s,t,e,r,n);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return u0(s,t,e,r,n);if(s.isSymbolicLink())return v0(t,e,r,n)}function u0(t,e,r,n,i){return e?l0(t,r,n,i):Va(t,r,n,i)}function l0(t,e,r,n){if(n.overwrite)return pe.unlinkSync(r),Va(t,e,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}function Va(t,e,r,n){return pe.copyFileSync(e,r),n.preserveTimestamps&&f0(t.mode,e,r),Ii(r,t.mode)}function f0(t,e,r){return d0(t)&&h0(r,t),p0(e,r)}function d0(t){return(t&128)===0}function h0(t,e){return Ii(t,e|128)}function Ii(t,e){return pe.chmodSync(t,e)}function p0(t,e){let r=pe.statSync(t);return s0(e,r.atime,r.mtime)}function m0(t,e,r,n,i){if(!e)return g0(t.mode,r,n,i);if(e&&!e.isDirectory())throw new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`);return Ya(r,n,i)}function g0(t,e,r,n){return pe.mkdirSync(r),Ya(e,r,n),Ii(r,t)}function Ya(t,e,r){pe.readdirSync(t).forEach(n=>y0(n,t,e,r))}function y0(t,e,r,n){let i=ur.join(e,t),s=ur.join(r,t),{destStat:o}=lr.checkPathsSync(i,s,"copy");return za(o,i,s,n)}function v0(t,e,r,n){let i=pe.readlinkSync(e);if(n.dereference&&(i=ur.resolve(process.cwd(),i)),t){let s;try{s=pe.readlinkSync(r)}catch(o){if(o.code==="EINVAL"||o.code==="UNKNOWN")return pe.symlinkSync(i,r);throw o}if(n.dereference&&(s=ur.resolve(process.cwd(),s)),lr.isSrcSubdir(i,s))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${s}'.`);if(pe.statSync(r).isDirectory()&&lr.isSrcSubdir(s,i))throw new Error(`Cannot overwrite '${s}' with '${i}'.`);return b0(i,r)}else return pe.symlinkSync(i,r)}function b0(t,e){return pe.unlinkSync(e),pe.symlinkSync(t,e)}Ka.exports=o0});var Ri=y((d2,Za)=>{"use strict";Za.exports={copySync:Qa()}});var st=y((h2,tc)=>{"use strict";var _0=Ce().fromPromise,ec=ar();function w0(t){return ec.access(t).then(()=>!0).catch(()=>!1)}tc.exports={pathExists:_0(w0),pathExistsSync:ec.existsSync}});var lc=y((p2,uc)=>{"use strict";var De=he(),fr=require("path"),S0=Le().mkdirs,x0=st().pathExists,E0=Di().utimesMillis,dr=cr();function C0(t,e,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;
|
|
8
8
|
|
|
9
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`),dr.checkPaths(t,e,"copy",(i,s)=>{if(i)return n(i);let{srcStat:o,destStat:a}=s;dr.checkParentPaths(t,o,e,"copy",c=>c?n(c):r.filter?
|
|
10
|
-
`,finalEOL:r=!0,replacer:n=null,spaces:i}={}){let s=r?e:"";return JSON.stringify(t,n,i).replace(/\n/g,e)+s}function cm(t){return Buffer.isBuffer(t)&&(t=t.toString("utf8")),t.replace(/^\uFEFF/,"")}Zc.exports={stringify:am,stripBom:cm}});var nu=y((C2,ru)=>{var Bt;try{Bt=he()}catch{Bt=require("fs")}var sn=Ce(),{stringify:eu,stripBom:tu}=nn();async function um(t,e={}){typeof e=="string"&&(e={encoding:e});let r=e.fs||Bt,n="throws"in e?e.throws:!0,i=await sn.fromCallback(r.readFile)(t,e);i=tu(i);let s;try{s=JSON.parse(i,e?e.reviver:null)}catch(o){if(n)throw o.message=`${t}: ${o.message}`,o;return null}return s}var lm=sn.fromPromise(um);function fm(t,e={}){typeof e=="string"&&(e={encoding:e});let r=e.fs||Bt,n="throws"in e?e.throws:!0;try{let i=r.readFileSync(t,e);return i=tu(i),JSON.parse(i,e.reviver)}catch(i){if(n)throw i.message=`${t}: ${i.message}`,i;return null}}async function dm(t,e,r={}){let n=r.fs||Bt,i=eu(e,r);await sn.fromCallback(n.writeFile)(t,i,r)}var hm=sn.fromPromise(dm);function pm(t,e,r={}){let n=r.fs||Bt,i=eu(e,r);return n.writeFileSync(t,i,r)}var mm={readFile:lm,readFileSync:fm,writeFile:hm,writeFileSync:pm};ru.exports=mm});var su=y((P2,iu)=>{"use strict";var on=nu();iu.exports={readJson:on.readFile,readJsonSync:on.readFileSync,writeJson:on.writeFile,writeJsonSync:on.writeFileSync}});var an=y((D2,cu)=>{"use strict";var gm=Ce().fromCallback,gr=he(),ou=require("path"),au=Le(),ym=st().pathExists;function vm(t,e,r,n){typeof r=="function"&&(n=r,r="utf8");let i=ou.dirname(t);ym(i,(s,o)=>{if(s)return n(s);if(o)return gr.writeFile(t,e,r,n);au.mkdirs(i,a=>{if(a)return n(a);gr.writeFile(t,e,r,n)})})}function bm(t,...e){let r=ou.dirname(t);if(gr.existsSync(r))return gr.writeFileSync(t,...e);au.mkdirsSync(r),gr.writeFileSync(t,...e)}cu.exports={outputFile:gm(vm),outputFileSync:bm}});var lu=y((O2,uu)=>{"use strict";var{stringify:_m}=nn(),{outputFile:wm}=an();async function Sm(t,e,r={}){let n=_m(e,r);await wm(t,n,r)}uu.exports=Sm});var du=y((A2,fu)=>{"use strict";var{stringify:xm}=nn(),{outputFileSync:Em}=an();function Cm(t,e,r){let n=xm(e,r);Em(t,n,r)}fu.exports=Cm});var pu=y((I2,hu)=>{"use strict";var Pm=Ce().fromPromise,be=su();be.outputJson=Pm(lu());be.outputJsonSync=du();be.outputJSON=be.outputJson;be.outputJSONSync=be.outputJsonSync;be.writeJSON=be.writeJson;be.writeJSONSync=be.writeJsonSync;be.readJSON=be.readJson;be.readJSONSync=be.readJsonSync;hu.exports=be});var _u=y((R2,bu)=>{"use strict";var yu=he(),Dm=require("path"),Om=Ri().copySync,vu=pr().removeSync,Am=Le().mkdirpSync,mu=cr();function Im(t,e,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:i}=mu.checkPathsSync(t,e,"move");return mu.checkParentPathsSync(t,i,e,"move"),Am(Dm.dirname(e)),Rm(t,e,n)}function Rm(t,e,r){if(r)return vu(e),gu(t,e,r);if(yu.existsSync(e))throw new Error("dest already exists.");return gu(t,e,r)}function gu(t,e,r){try{yu.renameSync(t,e)}catch(n){if(n.code!=="EXDEV")throw n;return Fm(t,e,r)}}function Fm(t,e,r){return Om(t,e,{overwrite:r,errorOnExist:!0}),vu(t)}bu.exports=Im});var Su=y((F2,wu)=>{"use strict";wu.exports={moveSync:_u()}});var Du=y((k2,Pu)=>{"use strict";var km=he(),Tm=require("path"),Mm=ki().copy,Cu=pr().remove,qm=Le().mkdirp,Nm=st().pathExists,xu=cr();function jm(t,e,r,n){typeof r=="function"&&(n=r,r={});let i=r.overwrite||r.clobber||!1;xu.checkPaths(t,e,"move",(s,o)=>{if(s)return n(s);let{srcStat:a}=o;xu.checkParentPaths(t,a,e,"move",c=>{if(c)return n(c);qm(Tm.dirname(e),d=>d?n(d):$m(t,e,i,n))})})}function $m(t,e,r,n){if(r)return Cu(e,i=>i?n(i):Eu(t,e,r,n));Nm(e,(i,s)=>i?n(i):s?n(new Error("dest already exists.")):Eu(t,e,r,n))}function Eu(t,e,r,n){km.rename(t,e,i=>i?i.code!=="EXDEV"?n(i):Lm(t,e,r,n):n())}function Lm(t,e,r,n){Mm(t,e,{overwrite:r,errorOnExist:!0},s=>s?n(s):Cu(t,n))}Pu.exports=jm});var Au=y((T2,Ou)=>{"use strict";var Bm=Ce().fromCallback;Ou.exports={move:Bm(Du())}});var ct=y((M2,Mi)=>{"use strict";Mi.exports={...ar(),...Ri(),...ki(),...Ac(),...Qc(),...pu(),...Le(),...Su(),...Au(),...an(),...st(),...pr()};var Iu=require("fs");Object.getOwnPropertyDescriptor(Iu,"promises")&&Object.defineProperty(Mi.exports,"promises",{get(){return Iu.promises}})});var Fu=y((q2,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 qi=y((N2,Tu)=>{var yr=Fu(),ku={};for(let t of Object.keys(yr))ku[yr[t]]=t;var O={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"]}};Tu.exports=O;for(let t of Object.keys(O)){if(!("channels"in O[t]))throw new Error("missing channels property: "+t);if(!("labels"in O[t]))throw new Error("missing channel labels property: "+t);if(O[t].labels.length!==O[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:e,labels:r}=O[t];delete O[t].channels,delete O[t].labels,Object.defineProperty(O[t],"channels",{value:e}),Object.defineProperty(O[t],"labels",{value:r})}O.rgb.hsl=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),s=Math.max(e,r,n),o=s-i,a,c;s===i?a=0:e===s?a=(r-n)/o:r===s?a=2+(n-e)/o:n===s&&(a=4+(e-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]};O.rgb.hsv=function(t){let e,r,n,i,s,o=t[0]/255,a=t[1]/255,c=t[2]/255,d=Math.max(o,a,c),u=d-Math.min(o,a,c),h=function(g){return(d-g)/6/u+1/2};return u===0?(i=0,s=0):(s=u/d,e=h(o),r=h(a),n=h(c),o===d?i=n-r:a===d?i=1/3+e-n:c===d&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,d*100]};O.rgb.hwb=function(t){let e=t[0],r=t[1],n=t[2],i=O.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,s*100,n*100]};O.rgb.cmyk=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(1-e,1-r,1-n),s=(1-e-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 Um(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}O.rgb.keyword=function(t){let e=ku[t];if(e)return e;let r=1/0,n;for(let i of Object.keys(yr)){let s=yr[i],o=Um(t,s);o<r&&(r=o,n=i)}return n};O.keyword.rgb=function(t){return yr[t]};O.rgb.xyz=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/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=e*.4124+r*.3576+n*.1805,s=e*.2126+r*.7152+n*.0722,o=e*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};O.rgb.lab=function(t){let e=O.rgb.xyz(t),r=e[0],n=e[1],i=e[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]};O.hsl.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[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=e+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};O.hsl.hsv=function(t){let e=t[0],r=t[1]/100,n=t[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[e,a*100,o*100]};O.hsv.rgb=function(t){let e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,s=e-Math.floor(e),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]}};O.hsv.hsl=function(t){let e=t[0],r=t[1]/100,n=t[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,[e,s*100,o*100]};O.hwb.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,s;i>1&&(r/=i,n/=i);let o=Math.floor(6*e),a=1-n;s=6*e-o,o&1&&(s=1-s);let c=r+s*(a-r),d,u,h;switch(o){default:case 6:case 0:d=a,u=c,h=r;break;case 1:d=c,u=a,h=r;break;case 2:d=r,u=a,h=c;break;case 3:d=r,u=c,h=a;break;case 4:d=c,u=r,h=a;break;case 5:d=a,u=r,h=c;break}return[d*255,u*255,h*255]};O.cmyk.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100,s=1-Math.min(1,e*(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]};O.xyz.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i,s,o;return i=e*3.2406+r*-1.5372+n*-.4986,s=e*-.9689+r*1.8758+n*.0415,o=e*.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]};O.xyz.lab=function(t){let e=t[0],r=t[1],n=t[2];e/=95.047,r/=100,n/=108.883,e=e>.008856?e**(1/3):7.787*e+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*(e-r),o=200*(r-n);return[i,s,o]};O.lab.xyz=function(t){let e=t[0],r=t[1],n=t[2],i,s,o;s=(e+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]};O.lab.lch=function(t){let e=t[0],r=t[1],n=t[2],i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);let o=Math.sqrt(r*r+n*n);return[e,o,i]};O.lch.lab=function(t){let e=t[0],r=t[1],i=t[2]/360*2*Math.PI,s=r*Math.cos(i),o=r*Math.sin(i);return[e,s,o]};O.rgb.ansi16=function(t,e=null){let[r,n,i]=t,s=e===null?O.rgb.hsv(t)[2]:e;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};O.hsv.ansi16=function(t){return O.rgb.ansi16(O.hsv.rgb(t),t[2])};O.rgb.ansi256=function(t){let e=t[0],r=t[1],n=t[2];return e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};O.ansi16.rgb=function(t){let e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];let r=(~~(t>50)+1)*.5,n=(e&1)*r*255,i=(e>>1&1)*r*255,s=(e>>2&1)*r*255;return[n,i,s]};O.ansi256.rgb=function(t){if(t>=232){let s=(t-232)*10+8;return[s,s,s]}t-=16;let e,r=Math.floor(t/36)/5*255,n=Math.floor((e=t%36)/6)/5*255,i=e%6/5*255;return[r,n,i]};O.rgb.hex=function(t){let r=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};O.hex.rgb=function(t){let e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let r=e[0];e[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]};O.rgb.hcg=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),s=Math.min(Math.min(e,r),n),o=i-s,a,c;return o<1?a=s/(1-o):a=0,o<=0?c=0:i===e?c=(r-n)/o%6:i===r?c=2+(n-e)/o:c=4+(e-r)/o,c/=6,c%=1,[c*360,o*100,a*100]};O.hsl.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=r<.5?2*e*r:2*e*(1-r),i=0;return n<1&&(i=(r-.5*n)/(1-n)),[t[0],n*100,i*100]};O.hsv.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],n*100,i*100]};O.hcg.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];let i=[0,0,0],s=e%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]};O.hcg.hsv=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e),i=0;return n>0&&(i=e/n),[t[0],i*100,n*100]};O.hcg.hsl=function(t){let e=t[1]/100,n=t[2]/100*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],i*100,n*100]};O.hcg.hwb=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],(n-e)*100,(1-n)*100]};O.hwb.hcg=function(t){let e=t[1]/100,n=1-t[2]/100,i=n-e,s=0;return i<1&&(s=(n-i)/(1-i)),[t[0],i*100,s*100]};O.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};O.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};O.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};O.gray.hsl=function(t){return[0,0,t[0]]};O.gray.hsv=O.gray.hsl;O.gray.hwb=function(t){return[0,100,t[0]]};O.gray.cmyk=function(t){return[0,0,0,t[0]]};O.gray.lab=function(t){return[t[0],0,0]};O.gray.hex=function(t){let e=Math.round(t[0]/100*255)&255,n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n};O.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}});var qu=y((j2,Mu)=>{var cn=qi();function Xm(){let t={},e=Object.keys(cn);for(let r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function Gm(t){let e=Xm(),r=[t];for(e[t].distance=0;r.length;){let n=r.pop(),i=Object.keys(cn[n]);for(let s=i.length,o=0;o<s;o++){let a=i[o],c=e[a];c.distance===-1&&(c.distance=e[n].distance+1,c.parent=n,r.unshift(a))}}return e}function Hm(t,e){return function(r){return e(t(r))}}function Wm(t,e){let r=[e[t].parent,t],n=cn[e[t].parent][t],i=e[t].parent;for(;e[i].parent;)r.unshift(e[i].parent),n=Hm(cn[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}Mu.exports=function(t){let e=Gm(t),r={},n=Object.keys(e);for(let i=n.length,s=0;s<i;s++){let o=n[s];e[o].parent!==null&&(r[o]=Wm(o,e))}return r}});var ju=y(($2,Nu)=>{var Ni=qi(),Jm=qu(),Ut={},zm=Object.keys(Ni);function Vm(t){let e=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}function Ym(t){let e=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let i=t(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 t&&(e.conversion=t.conversion),e}zm.forEach(t=>{Ut[t]={},Object.defineProperty(Ut[t],"channels",{value:Ni[t].channels}),Object.defineProperty(Ut[t],"labels",{value:Ni[t].labels});let e=Jm(t);Object.keys(e).forEach(n=>{let i=e[n];Ut[t][n]=Ym(i),Ut[t][n].raw=Vm(i)})});Nu.exports=Ut});var Gu=y((L2,Xu)=>{"use strict";var $u=(t,e)=>(...r)=>`\x1B[${t(...r)+e}m`,Lu=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};5;${n}m`},Bu=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};2;${n[0]};${n[1]};${n[2]}m`},un=t=>t,Uu=(t,e,r)=>[t,e,r],Xt=(t,e,r)=>{Object.defineProperty(t,e,{get:()=>{let n=r();return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})},ji,Gt=(t,e,r,n)=>{ji===void 0&&(ji=ju());let i=n?10:0,s={};for(let[o,a]of Object.entries(ji)){let c=o==="ansi16"?"ansi":o;o===e?s[c]=t(r,i):typeof a=="object"&&(s[c]=t(a[e],i))}return s};function Km(){let t=new Map,e={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]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[r,n]of Object.entries(e)){for(let[i,s]of Object.entries(n))e[i]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},n[i]=e[i],t.set(s[0],s[1]);Object.defineProperty(e,r,{value:n,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",Xt(e.color,"ansi",()=>Gt($u,"ansi16",un,!1)),Xt(e.color,"ansi256",()=>Gt(Lu,"ansi256",un,!1)),Xt(e.color,"ansi16m",()=>Gt(Bu,"rgb",Uu,!1)),Xt(e.bgColor,"ansi",()=>Gt($u,"ansi16",un,!0)),Xt(e.bgColor,"ansi256",()=>Gt(Lu,"ansi256",un,!0)),Xt(e.bgColor,"ansi16m",()=>Gt(Bu,"rgb",Uu,!0)),e}Object.defineProperty(Xu,"exports",{enumerable:!0,get:Km})});var Wu=y((B2,Hu)=>{"use strict";Hu.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1||n<i)}});var Bi=y((U2,zu)=>{"use strict";var Qm=require("os"),Ju=require("tty"),Te=Wu(),{env:te}=process,ut;Te("no-color")||Te("no-colors")||Te("color=false")||Te("color=never")?ut=0:(Te("color")||Te("colors")||Te("color=true")||Te("color=always"))&&(ut=1);"FORCE_COLOR"in te&&(te.FORCE_COLOR==="true"?ut=1:te.FORCE_COLOR==="false"?ut=0:ut=te.FORCE_COLOR.length===0?1:Math.min(parseInt(te.FORCE_COLOR,10),3));function $i(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function Li(t,e){if(ut===0)return 0;if(Te("color=16m")||Te("color=full")||Te("color=truecolor"))return 3;if(Te("color=256"))return 2;if(t&&!e&&ut===void 0)return 0;let r=ut||0;if(te.TERM==="dumb")return r;if(process.platform==="win32"){let n=Qm.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in te)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in te)||te.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in te)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(te.TEAMCITY_VERSION)?1:0;if(te.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in te){let n=parseInt((te.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(te.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(te.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(te.TERM)||"COLORTERM"in te?1:r}function Zm(t){let e=Li(t,t&&t.isTTY);return $i(e)}zu.exports={supportsColor:Zm,stdout:$i(Li(!0,Ju.isatty(1))),stderr:$i(Li(!0,Ju.isatty(2)))}});var Yu=y((X2,Vu)=>{"use strict";var eg=(t,e,r)=>{let n=t.indexOf(e);if(n===-1)return t;let i=e.length,s=0,o="";do o+=t.substr(s,n-s)+e+r,s=n+i,n=t.indexOf(e,s);while(n!==-1);return o+=t.substr(s),o},tg=(t,e,r,n)=>{let i=0,s="";do{let o=t[n-1]==="\r";s+=t.substr(i,(o?n-1:n)-i)+e+(o?`\r
|
|
9
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`),dr.checkPaths(t,e,"copy",(i,s)=>{if(i)return n(i);let{srcStat:o,destStat:a}=s;dr.checkParentPaths(t,o,e,"copy",c=>c?n(c):r.filter?sc(rc,a,t,e,r,n):rc(a,t,e,r,n))})}function rc(t,e,r,n,i){let s=fr.dirname(r);x0(s,(o,a)=>{if(o)return i(o);if(a)return Fi(t,e,r,n,i);S0(s,c=>c?i(c):Fi(t,e,r,n,i))})}function sc(t,e,r,n,i,s){Promise.resolve(i.filter(r,n)).then(o=>o?t(e,r,n,i,s):s(),o=>s(o))}function Fi(t,e,r,n,i){return n.filter?sc(nc,t,e,r,n,i):nc(t,e,r,n,i)}function nc(t,e,r,n,i){(n.dereference?De.stat:De.lstat)(e,(o,a)=>{if(o)return i(o);if(a.isDirectory())return F0(a,t,e,r,n,i);if(a.isFile()||a.isCharacterDevice()||a.isBlockDevice())return P0(a,t,e,r,n,i);if(a.isSymbolicLink())return M0(t,e,r,n,i)})}function P0(t,e,r,n,i,s){return e?D0(t,r,n,i,s):oc(t,r,n,i,s)}function D0(t,e,r,n,i){if(n.overwrite)De.unlink(r,s=>s?i(s):oc(t,e,r,n,i));else return n.errorOnExist?i(new Error(`'${r}' already exists`)):i()}function oc(t,e,r,n,i){De.copyFile(e,r,s=>s?i(s):n.preserveTimestamps?O0(t.mode,e,r,i):Qr(r,t.mode,i))}function O0(t,e,r,n){return A0(t)?I0(r,t,i=>i?n(i):ic(t,e,r,n)):ic(t,e,r,n)}function A0(t){return(t&128)===0}function I0(t,e,r){return Qr(t,e|128,r)}function ic(t,e,r,n){R0(e,r,i=>i?n(i):Qr(r,t,n))}function Qr(t,e,r){return De.chmod(t,e,r)}function R0(t,e,r){De.stat(t,(n,i)=>n?r(n):E0(e,i.atime,i.mtime,r))}function F0(t,e,r,n,i,s){return e?e&&!e.isDirectory()?s(new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`)):ac(r,n,i,s):k0(t.mode,r,n,i,s)}function k0(t,e,r,n,i){De.mkdir(r,s=>{if(s)return i(s);ac(e,r,n,o=>o?i(o):Qr(r,t,i))})}function ac(t,e,r,n){De.readdir(t,(i,s)=>i?n(i):cc(s,t,e,r,n))}function cc(t,e,r,n,i){let s=t.pop();return s?T0(t,s,e,r,n,i):i()}function T0(t,e,r,n,i,s){let o=fr.join(r,e),a=fr.join(n,e);dr.checkPaths(o,a,"copy",(c,d)=>{if(c)return s(c);let{destStat:u}=d;Fi(u,o,a,i,h=>h?s(h):cc(t,r,n,i,s))})}function M0(t,e,r,n,i){De.readlink(e,(s,o)=>{if(s)return i(s);if(n.dereference&&(o=fr.resolve(process.cwd(),o)),t)De.readlink(r,(a,c)=>a?a.code==="EINVAL"||a.code==="UNKNOWN"?De.symlink(o,r,i):i(a):(n.dereference&&(c=fr.resolve(process.cwd(),c)),dr.isSrcSubdir(o,c)?i(new Error(`Cannot copy '${o}' to a subdirectory of itself, '${c}'.`)):t.isDirectory()&&dr.isSrcSubdir(c,o)?i(new Error(`Cannot overwrite '${c}' with '${o}'.`)):q0(o,r,i)));else return De.symlink(o,r,i)})}function q0(t,e,r){De.unlink(e,n=>n?r(n):De.symlink(t,e,r))}uc.exports=C0});var ki=y((m2,fc)=>{"use strict";var N0=Ce().fromCallback;fc.exports={copy:N0(lc())}});var _c=y((g2,bc)=>{"use strict";var dc=he(),gc=require("path"),W=require("assert"),hr=process.platform==="win32";function yc(t){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(r=>{t[r]=t[r]||dc[r],r=r+"Sync",t[r]=t[r]||dc[r]}),t.maxBusyTries=t.maxBusyTries||3}function Ti(t,e,r){let n=0;typeof e=="function"&&(r=e,e={}),W(t,"rimraf: missing path"),W.strictEqual(typeof t,"string","rimraf: path should be a string"),W.strictEqual(typeof r,"function","rimraf: callback function required"),W(e,"rimraf: invalid options argument provided"),W.strictEqual(typeof e,"object","rimraf: options should be object"),yc(e),hc(t,e,function i(s){if(s){if((s.code==="EBUSY"||s.code==="ENOTEMPTY"||s.code==="EPERM")&&n<e.maxBusyTries){n++;let o=n*100;return setTimeout(()=>hc(t,e,i),o)}s.code==="ENOENT"&&(s=null)}r(s)})}function hc(t,e,r){W(t),W(e),W(typeof r=="function"),e.lstat(t,(n,i)=>{if(n&&n.code==="ENOENT")return r(null);if(n&&n.code==="EPERM"&&hr)return pc(t,e,n,r);if(i&&i.isDirectory())return Zr(t,e,n,r);e.unlink(t,s=>{if(s){if(s.code==="ENOENT")return r(null);if(s.code==="EPERM")return hr?pc(t,e,s,r):Zr(t,e,s,r);if(s.code==="EISDIR")return Zr(t,e,s,r)}return r(s)})})}function pc(t,e,r,n){W(t),W(e),W(typeof n=="function"),e.chmod(t,438,i=>{i?n(i.code==="ENOENT"?null:r):e.stat(t,(s,o)=>{s?n(s.code==="ENOENT"?null:r):o.isDirectory()?Zr(t,e,r,n):e.unlink(t,n)})})}function mc(t,e,r){let n;W(t),W(e);try{e.chmodSync(t,438)}catch(i){if(i.code==="ENOENT")return;throw r}try{n=e.statSync(t)}catch(i){if(i.code==="ENOENT")return;throw r}n.isDirectory()?en(t,e,r):e.unlinkSync(t)}function Zr(t,e,r,n){W(t),W(e),W(typeof n=="function"),e.rmdir(t,i=>{i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?j0(t,e,n):i&&i.code==="ENOTDIR"?n(r):n(i)})}function j0(t,e,r){W(t),W(e),W(typeof r=="function"),e.readdir(t,(n,i)=>{if(n)return r(n);let s=i.length,o;if(s===0)return e.rmdir(t,r);i.forEach(a=>{Ti(gc.join(t,a),e,c=>{if(!o){if(c)return r(o=c);--s===0&&e.rmdir(t,r)}})})})}function vc(t,e){let r;e=e||{},yc(e),W(t,"rimraf: missing path"),W.strictEqual(typeof t,"string","rimraf: path should be a string"),W(e,"rimraf: missing options"),W.strictEqual(typeof e,"object","rimraf: options should be object");try{r=e.lstatSync(t)}catch(n){if(n.code==="ENOENT")return;n.code==="EPERM"&&hr&&mc(t,e,n)}try{r&&r.isDirectory()?en(t,e,null):e.unlinkSync(t)}catch(n){if(n.code==="ENOENT")return;if(n.code==="EPERM")return hr?mc(t,e,n):en(t,e,n);if(n.code!=="EISDIR")throw n;en(t,e,n)}}function en(t,e,r){W(t),W(e);try{e.rmdirSync(t)}catch(n){if(n.code==="ENOTDIR")throw r;if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")$0(t,e);else if(n.code!=="ENOENT")throw n}}function $0(t,e){if(W(t),W(e),e.readdirSync(t).forEach(r=>vc(gc.join(t,r),e)),hr){let r=Date.now();do try{return e.rmdirSync(t,e)}catch{}while(Date.now()-r<500)}else return e.rmdirSync(t,e)}bc.exports=Ti;Ti.sync=vc});var pr=y((y2,Sc)=>{"use strict";var L0=Ce().fromCallback,wc=_c();Sc.exports={remove:L0(wc),removeSync:wc.sync}});var Ic=y((v2,Ac)=>{"use strict";var B0=Ce().fromCallback,Cc=he(),Pc=require("path"),Dc=Le(),Oc=pr(),xc=B0(function(e,r){r=r||function(){},Cc.readdir(e,(n,i)=>{if(n)return Dc.mkdirs(e,r);i=i.map(o=>Pc.join(e,o)),s();function s(){let o=i.pop();if(!o)return r();Oc.remove(o,a=>{if(a)return r(a);s()})}})});function Ec(t){let e;try{e=Cc.readdirSync(t)}catch{return Dc.mkdirsSync(t)}e.forEach(r=>{r=Pc.join(t,r),Oc.removeSync(r)})}Ac.exports={emptyDirSync:Ec,emptydirSync:Ec,emptyDir:xc,emptydir:xc}});var Tc=y((b2,kc)=>{"use strict";var U0=Ce().fromCallback,Rc=require("path"),ot=he(),Fc=Le();function X0(t,e){function r(){ot.writeFile(t,"",n=>{if(n)return e(n);e()})}ot.stat(t,(n,i)=>{if(!n&&i.isFile())return e();let s=Rc.dirname(t);ot.stat(s,(o,a)=>{if(o)return o.code==="ENOENT"?Fc.mkdirs(s,c=>{if(c)return e(c);r()}):e(o);a.isDirectory()?r():ot.readdir(s,c=>{if(c)return e(c)})})})}function G0(t){let e;try{e=ot.statSync(t)}catch{}if(e&&e.isFile())return;let r=Rc.dirname(t);try{ot.statSync(r).isDirectory()||ot.readdirSync(r)}catch(n){if(n&&n.code==="ENOENT")Fc.mkdirsSync(r);else throw n}ot.writeFileSync(t,"")}kc.exports={createFile:U0(X0),createFileSync:G0}});var $c=y((_2,jc)=>{"use strict";var H0=Ce().fromCallback,qc=require("path"),bt=he(),Nc=Le(),Mc=st().pathExists;function W0(t,e,r){function n(i,s){bt.link(i,s,o=>{if(o)return r(o);r(null)})}Mc(e,(i,s)=>{if(i)return r(i);if(s)return r(null);bt.lstat(t,o=>{if(o)return o.message=o.message.replace("lstat","ensureLink"),r(o);let a=qc.dirname(e);Mc(a,(c,d)=>{if(c)return r(c);if(d)return n(t,e);Nc.mkdirs(a,u=>{if(u)return r(u);n(t,e)})})})})}function J0(t,e){if(bt.existsSync(e))return;try{bt.lstatSync(t)}catch(s){throw s.message=s.message.replace("lstat","ensureLink"),s}let n=qc.dirname(e);return bt.existsSync(n)||Nc.mkdirsSync(n),bt.linkSync(t,e)}jc.exports={createLink:H0(W0),createLinkSync:J0}});var Bc=y((w2,Lc)=>{"use strict";var at=require("path"),mr=he(),z0=st().pathExists;function V0(t,e,r){if(at.isAbsolute(t))return mr.lstat(t,n=>n?(n.message=n.message.replace("lstat","ensureSymlink"),r(n)):r(null,{toCwd:t,toDst:t}));{let n=at.dirname(e),i=at.join(n,t);return z0(i,(s,o)=>s?r(s):o?r(null,{toCwd:i,toDst:t}):mr.lstat(t,a=>a?(a.message=a.message.replace("lstat","ensureSymlink"),r(a)):r(null,{toCwd:t,toDst:at.relative(n,t)})))}}function Y0(t,e){let r;if(at.isAbsolute(t)){if(r=mr.existsSync(t),!r)throw new Error("absolute srcpath does not exist");return{toCwd:t,toDst:t}}else{let n=at.dirname(e),i=at.join(n,t);if(r=mr.existsSync(i),r)return{toCwd:i,toDst:t};if(r=mr.existsSync(t),!r)throw new Error("relative srcpath does not exist");return{toCwd:t,toDst:at.relative(n,t)}}}Lc.exports={symlinkPaths:V0,symlinkPathsSync:Y0}});var Gc=y((S2,Xc)=>{"use strict";var Uc=he();function K0(t,e,r){if(r=typeof e=="function"?e:r,e=typeof e=="function"?!1:e,e)return r(null,e);Uc.lstat(t,(n,i)=>{if(n)return r(null,"file");e=i&&i.isDirectory()?"dir":"file",r(null,e)})}function Q0(t,e){let r;if(e)return e;try{r=Uc.lstatSync(t)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}Xc.exports={symlinkType:K0,symlinkTypeSync:Q0}});var Kc=y((x2,Yc)=>{"use strict";var Z0=Ce().fromCallback,Wc=require("path"),Lt=he(),Jc=Le(),em=Jc.mkdirs,tm=Jc.mkdirsSync,zc=Bc(),rm=zc.symlinkPaths,nm=zc.symlinkPathsSync,Vc=Gc(),im=Vc.symlinkType,sm=Vc.symlinkTypeSync,Hc=st().pathExists;function om(t,e,r,n){n=typeof r=="function"?r:n,r=typeof r=="function"?!1:r,Hc(e,(i,s)=>{if(i)return n(i);if(s)return n(null);rm(t,e,(o,a)=>{if(o)return n(o);t=a.toDst,im(a.toCwd,r,(c,d)=>{if(c)return n(c);let u=Wc.dirname(e);Hc(u,(h,g)=>{if(h)return n(h);if(g)return Lt.symlink(t,e,d,n);em(u,m=>{if(m)return n(m);Lt.symlink(t,e,d,n)})})})})})}function am(t,e,r){if(Lt.existsSync(e))return;let i=nm(t,e);t=i.toDst,r=sm(i.toCwd,r);let s=Wc.dirname(e);return Lt.existsSync(s)||tm(s),Lt.symlinkSync(t,e,r)}Yc.exports={createSymlink:Z0(om),createSymlinkSync:am}});var Zc=y((E2,Qc)=>{"use strict";var tn=Tc(),rn=$c(),nn=Kc();Qc.exports={createFile:tn.createFile,createFileSync:tn.createFileSync,ensureFile:tn.createFile,ensureFileSync:tn.createFileSync,createLink:rn.createLink,createLinkSync:rn.createLinkSync,ensureLink:rn.createLink,ensureLinkSync:rn.createLinkSync,createSymlink:nn.createSymlink,createSymlinkSync:nn.createSymlinkSync,ensureSymlink:nn.createSymlink,ensureSymlinkSync:nn.createSymlinkSync}});var sn=y((C2,eu)=>{function cm(t,{EOL:e=`
|
|
10
|
+
`,finalEOL:r=!0,replacer:n=null,spaces:i}={}){let s=r?e:"";return JSON.stringify(t,n,i).replace(/\n/g,e)+s}function um(t){return Buffer.isBuffer(t)&&(t=t.toString("utf8")),t.replace(/^\uFEFF/,"")}eu.exports={stringify:cm,stripBom:um}});var iu=y((P2,nu)=>{var Bt;try{Bt=he()}catch{Bt=require("fs")}var on=Ce(),{stringify:tu,stripBom:ru}=sn();async function lm(t,e={}){typeof e=="string"&&(e={encoding:e});let r=e.fs||Bt,n="throws"in e?e.throws:!0,i=await on.fromCallback(r.readFile)(t,e);i=ru(i);let s;try{s=JSON.parse(i,e?e.reviver:null)}catch(o){if(n)throw o.message=`${t}: ${o.message}`,o;return null}return s}var fm=on.fromPromise(lm);function dm(t,e={}){typeof e=="string"&&(e={encoding:e});let r=e.fs||Bt,n="throws"in e?e.throws:!0;try{let i=r.readFileSync(t,e);return i=ru(i),JSON.parse(i,e.reviver)}catch(i){if(n)throw i.message=`${t}: ${i.message}`,i;return null}}async function hm(t,e,r={}){let n=r.fs||Bt,i=tu(e,r);await on.fromCallback(n.writeFile)(t,i,r)}var pm=on.fromPromise(hm);function mm(t,e,r={}){let n=r.fs||Bt,i=tu(e,r);return n.writeFileSync(t,i,r)}var gm={readFile:fm,readFileSync:dm,writeFile:pm,writeFileSync:mm};nu.exports=gm});var ou=y((D2,su)=>{"use strict";var an=iu();su.exports={readJson:an.readFile,readJsonSync:an.readFileSync,writeJson:an.writeFile,writeJsonSync:an.writeFileSync}});var cn=y((O2,uu)=>{"use strict";var ym=Ce().fromCallback,gr=he(),au=require("path"),cu=Le(),vm=st().pathExists;function bm(t,e,r,n){typeof r=="function"&&(n=r,r="utf8");let i=au.dirname(t);vm(i,(s,o)=>{if(s)return n(s);if(o)return gr.writeFile(t,e,r,n);cu.mkdirs(i,a=>{if(a)return n(a);gr.writeFile(t,e,r,n)})})}function _m(t,...e){let r=au.dirname(t);if(gr.existsSync(r))return gr.writeFileSync(t,...e);cu.mkdirsSync(r),gr.writeFileSync(t,...e)}uu.exports={outputFile:ym(bm),outputFileSync:_m}});var fu=y((A2,lu)=>{"use strict";var{stringify:wm}=sn(),{outputFile:Sm}=cn();async function xm(t,e,r={}){let n=wm(e,r);await Sm(t,n,r)}lu.exports=xm});var hu=y((I2,du)=>{"use strict";var{stringify:Em}=sn(),{outputFileSync:Cm}=cn();function Pm(t,e,r){let n=Em(e,r);Cm(t,n,r)}du.exports=Pm});var mu=y((R2,pu)=>{"use strict";var Dm=Ce().fromPromise,be=ou();be.outputJson=Dm(fu());be.outputJsonSync=hu();be.outputJSON=be.outputJson;be.outputJSONSync=be.outputJsonSync;be.writeJSON=be.writeJson;be.writeJSONSync=be.writeJsonSync;be.readJSON=be.readJson;be.readJSONSync=be.readJsonSync;pu.exports=be});var wu=y((F2,_u)=>{"use strict";var vu=he(),Om=require("path"),Am=Ri().copySync,bu=pr().removeSync,Im=Le().mkdirpSync,gu=cr();function Rm(t,e,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:i}=gu.checkPathsSync(t,e,"move");return gu.checkParentPathsSync(t,i,e,"move"),Im(Om.dirname(e)),Fm(t,e,n)}function Fm(t,e,r){if(r)return bu(e),yu(t,e,r);if(vu.existsSync(e))throw new Error("dest already exists.");return yu(t,e,r)}function yu(t,e,r){try{vu.renameSync(t,e)}catch(n){if(n.code!=="EXDEV")throw n;return km(t,e,r)}}function km(t,e,r){return Am(t,e,{overwrite:r,errorOnExist:!0}),bu(t)}_u.exports=Rm});var xu=y((k2,Su)=>{"use strict";Su.exports={moveSync:wu()}});var Ou=y((T2,Du)=>{"use strict";var Tm=he(),Mm=require("path"),qm=ki().copy,Pu=pr().remove,Nm=Le().mkdirp,jm=st().pathExists,Eu=cr();function $m(t,e,r,n){typeof r=="function"&&(n=r,r={});let i=r.overwrite||r.clobber||!1;Eu.checkPaths(t,e,"move",(s,o)=>{if(s)return n(s);let{srcStat:a}=o;Eu.checkParentPaths(t,a,e,"move",c=>{if(c)return n(c);Nm(Mm.dirname(e),d=>d?n(d):Lm(t,e,i,n))})})}function Lm(t,e,r,n){if(r)return Pu(e,i=>i?n(i):Cu(t,e,r,n));jm(e,(i,s)=>i?n(i):s?n(new Error("dest already exists.")):Cu(t,e,r,n))}function Cu(t,e,r,n){Tm.rename(t,e,i=>i?i.code!=="EXDEV"?n(i):Bm(t,e,r,n):n())}function Bm(t,e,r,n){qm(t,e,{overwrite:r,errorOnExist:!0},s=>s?n(s):Pu(t,n))}Du.exports=$m});var Iu=y((M2,Au)=>{"use strict";var Um=Ce().fromCallback;Au.exports={move:Um(Ou())}});var ct=y((q2,Mi)=>{"use strict";Mi.exports={...ar(),...Ri(),...ki(),...Ic(),...Zc(),...mu(),...Le(),...xu(),...Iu(),...cn(),...st(),...pr()};var Ru=require("fs");Object.getOwnPropertyDescriptor(Ru,"promises")&&Object.defineProperty(Mi.exports,"promises",{get(){return Ru.promises}})});var ku=y((N2,Fu)=>{"use strict";Fu.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 qi=y((j2,Mu)=>{var yr=ku(),Tu={};for(let t of Object.keys(yr))Tu[yr[t]]=t;var O={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"]}};Mu.exports=O;for(let t of Object.keys(O)){if(!("channels"in O[t]))throw new Error("missing channels property: "+t);if(!("labels"in O[t]))throw new Error("missing channel labels property: "+t);if(O[t].labels.length!==O[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:e,labels:r}=O[t];delete O[t].channels,delete O[t].labels,Object.defineProperty(O[t],"channels",{value:e}),Object.defineProperty(O[t],"labels",{value:r})}O.rgb.hsl=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),s=Math.max(e,r,n),o=s-i,a,c;s===i?a=0:e===s?a=(r-n)/o:r===s?a=2+(n-e)/o:n===s&&(a=4+(e-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]};O.rgb.hsv=function(t){let e,r,n,i,s,o=t[0]/255,a=t[1]/255,c=t[2]/255,d=Math.max(o,a,c),u=d-Math.min(o,a,c),h=function(g){return(d-g)/6/u+1/2};return u===0?(i=0,s=0):(s=u/d,e=h(o),r=h(a),n=h(c),o===d?i=n-r:a===d?i=1/3+e-n:c===d&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,d*100]};O.rgb.hwb=function(t){let e=t[0],r=t[1],n=t[2],i=O.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,s*100,n*100]};O.rgb.cmyk=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(1-e,1-r,1-n),s=(1-e-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 Xm(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}O.rgb.keyword=function(t){let e=Tu[t];if(e)return e;let r=1/0,n;for(let i of Object.keys(yr)){let s=yr[i],o=Xm(t,s);o<r&&(r=o,n=i)}return n};O.keyword.rgb=function(t){return yr[t]};O.rgb.xyz=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/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=e*.4124+r*.3576+n*.1805,s=e*.2126+r*.7152+n*.0722,o=e*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};O.rgb.lab=function(t){let e=O.rgb.xyz(t),r=e[0],n=e[1],i=e[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]};O.hsl.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[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=e+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};O.hsl.hsv=function(t){let e=t[0],r=t[1]/100,n=t[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[e,a*100,o*100]};O.hsv.rgb=function(t){let e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,s=e-Math.floor(e),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]}};O.hsv.hsl=function(t){let e=t[0],r=t[1]/100,n=t[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,[e,s*100,o*100]};O.hwb.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,s;i>1&&(r/=i,n/=i);let o=Math.floor(6*e),a=1-n;s=6*e-o,o&1&&(s=1-s);let c=r+s*(a-r),d,u,h;switch(o){default:case 6:case 0:d=a,u=c,h=r;break;case 1:d=c,u=a,h=r;break;case 2:d=r,u=a,h=c;break;case 3:d=r,u=c,h=a;break;case 4:d=c,u=r,h=a;break;case 5:d=a,u=r,h=c;break}return[d*255,u*255,h*255]};O.cmyk.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100,s=1-Math.min(1,e*(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]};O.xyz.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i,s,o;return i=e*3.2406+r*-1.5372+n*-.4986,s=e*-.9689+r*1.8758+n*.0415,o=e*.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]};O.xyz.lab=function(t){let e=t[0],r=t[1],n=t[2];e/=95.047,r/=100,n/=108.883,e=e>.008856?e**(1/3):7.787*e+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*(e-r),o=200*(r-n);return[i,s,o]};O.lab.xyz=function(t){let e=t[0],r=t[1],n=t[2],i,s,o;s=(e+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]};O.lab.lch=function(t){let e=t[0],r=t[1],n=t[2],i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);let o=Math.sqrt(r*r+n*n);return[e,o,i]};O.lch.lab=function(t){let e=t[0],r=t[1],i=t[2]/360*2*Math.PI,s=r*Math.cos(i),o=r*Math.sin(i);return[e,s,o]};O.rgb.ansi16=function(t,e=null){let[r,n,i]=t,s=e===null?O.rgb.hsv(t)[2]:e;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};O.hsv.ansi16=function(t){return O.rgb.ansi16(O.hsv.rgb(t),t[2])};O.rgb.ansi256=function(t){let e=t[0],r=t[1],n=t[2];return e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};O.ansi16.rgb=function(t){let e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];let r=(~~(t>50)+1)*.5,n=(e&1)*r*255,i=(e>>1&1)*r*255,s=(e>>2&1)*r*255;return[n,i,s]};O.ansi256.rgb=function(t){if(t>=232){let s=(t-232)*10+8;return[s,s,s]}t-=16;let e,r=Math.floor(t/36)/5*255,n=Math.floor((e=t%36)/6)/5*255,i=e%6/5*255;return[r,n,i]};O.rgb.hex=function(t){let r=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};O.hex.rgb=function(t){let e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let r=e[0];e[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]};O.rgb.hcg=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),s=Math.min(Math.min(e,r),n),o=i-s,a,c;return o<1?a=s/(1-o):a=0,o<=0?c=0:i===e?c=(r-n)/o%6:i===r?c=2+(n-e)/o:c=4+(e-r)/o,c/=6,c%=1,[c*360,o*100,a*100]};O.hsl.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=r<.5?2*e*r:2*e*(1-r),i=0;return n<1&&(i=(r-.5*n)/(1-n)),[t[0],n*100,i*100]};O.hsv.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],n*100,i*100]};O.hcg.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];let i=[0,0,0],s=e%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]};O.hcg.hsv=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e),i=0;return n>0&&(i=e/n),[t[0],i*100,n*100]};O.hcg.hsl=function(t){let e=t[1]/100,n=t[2]/100*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],i*100,n*100]};O.hcg.hwb=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],(n-e)*100,(1-n)*100]};O.hwb.hcg=function(t){let e=t[1]/100,n=1-t[2]/100,i=n-e,s=0;return i<1&&(s=(n-i)/(1-i)),[t[0],i*100,s*100]};O.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};O.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};O.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};O.gray.hsl=function(t){return[0,0,t[0]]};O.gray.hsv=O.gray.hsl;O.gray.hwb=function(t){return[0,100,t[0]]};O.gray.cmyk=function(t){return[0,0,0,t[0]]};O.gray.lab=function(t){return[t[0],0,0]};O.gray.hex=function(t){let e=Math.round(t[0]/100*255)&255,n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n};O.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}});var Nu=y(($2,qu)=>{var un=qi();function Gm(){let t={},e=Object.keys(un);for(let r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function Hm(t){let e=Gm(),r=[t];for(e[t].distance=0;r.length;){let n=r.pop(),i=Object.keys(un[n]);for(let s=i.length,o=0;o<s;o++){let a=i[o],c=e[a];c.distance===-1&&(c.distance=e[n].distance+1,c.parent=n,r.unshift(a))}}return e}function Wm(t,e){return function(r){return e(t(r))}}function Jm(t,e){let r=[e[t].parent,t],n=un[e[t].parent][t],i=e[t].parent;for(;e[i].parent;)r.unshift(e[i].parent),n=Wm(un[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}qu.exports=function(t){let e=Hm(t),r={},n=Object.keys(e);for(let i=n.length,s=0;s<i;s++){let o=n[s];e[o].parent!==null&&(r[o]=Jm(o,e))}return r}});var $u=y((L2,ju)=>{var Ni=qi(),zm=Nu(),Ut={},Vm=Object.keys(Ni);function Ym(t){let e=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}function Km(t){let e=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let i=t(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 t&&(e.conversion=t.conversion),e}Vm.forEach(t=>{Ut[t]={},Object.defineProperty(Ut[t],"channels",{value:Ni[t].channels}),Object.defineProperty(Ut[t],"labels",{value:Ni[t].labels});let e=zm(t);Object.keys(e).forEach(n=>{let i=e[n];Ut[t][n]=Km(i),Ut[t][n].raw=Ym(i)})});ju.exports=Ut});var Hu=y((B2,Gu)=>{"use strict";var Lu=(t,e)=>(...r)=>`\x1B[${t(...r)+e}m`,Bu=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};5;${n}m`},Uu=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};2;${n[0]};${n[1]};${n[2]}m`},ln=t=>t,Xu=(t,e,r)=>[t,e,r],Xt=(t,e,r)=>{Object.defineProperty(t,e,{get:()=>{let n=r();return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})},ji,Gt=(t,e,r,n)=>{ji===void 0&&(ji=$u());let i=n?10:0,s={};for(let[o,a]of Object.entries(ji)){let c=o==="ansi16"?"ansi":o;o===e?s[c]=t(r,i):typeof a=="object"&&(s[c]=t(a[e],i))}return s};function Qm(){let t=new Map,e={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]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[r,n]of Object.entries(e)){for(let[i,s]of Object.entries(n))e[i]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},n[i]=e[i],t.set(s[0],s[1]);Object.defineProperty(e,r,{value:n,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",Xt(e.color,"ansi",()=>Gt(Lu,"ansi16",ln,!1)),Xt(e.color,"ansi256",()=>Gt(Bu,"ansi256",ln,!1)),Xt(e.color,"ansi16m",()=>Gt(Uu,"rgb",Xu,!1)),Xt(e.bgColor,"ansi",()=>Gt(Lu,"ansi16",ln,!0)),Xt(e.bgColor,"ansi256",()=>Gt(Bu,"ansi256",ln,!0)),Xt(e.bgColor,"ansi16m",()=>Gt(Uu,"rgb",Xu,!0)),e}Object.defineProperty(Gu,"exports",{enumerable:!0,get:Qm})});var Ju=y((U2,Wu)=>{"use strict";Wu.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1||n<i)}});var Bi=y((X2,Vu)=>{"use strict";var Zm=require("os"),zu=require("tty"),Te=Ju(),{env:te}=process,ut;Te("no-color")||Te("no-colors")||Te("color=false")||Te("color=never")?ut=0:(Te("color")||Te("colors")||Te("color=true")||Te("color=always"))&&(ut=1);"FORCE_COLOR"in te&&(te.FORCE_COLOR==="true"?ut=1:te.FORCE_COLOR==="false"?ut=0:ut=te.FORCE_COLOR.length===0?1:Math.min(parseInt(te.FORCE_COLOR,10),3));function $i(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function Li(t,e){if(ut===0)return 0;if(Te("color=16m")||Te("color=full")||Te("color=truecolor"))return 3;if(Te("color=256"))return 2;if(t&&!e&&ut===void 0)return 0;let r=ut||0;if(te.TERM==="dumb")return r;if(process.platform==="win32"){let n=Zm.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in te)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in te)||te.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in te)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(te.TEAMCITY_VERSION)?1:0;if(te.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in te){let n=parseInt((te.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(te.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(te.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(te.TERM)||"COLORTERM"in te?1:r}function eg(t){let e=Li(t,t&&t.isTTY);return $i(e)}Vu.exports={supportsColor:eg,stdout:$i(Li(!0,zu.isatty(1))),stderr:$i(Li(!0,zu.isatty(2)))}});var Ku=y((G2,Yu)=>{"use strict";var tg=(t,e,r)=>{let n=t.indexOf(e);if(n===-1)return t;let i=e.length,s=0,o="";do o+=t.substr(s,n-s)+e+r,s=n+i,n=t.indexOf(e,s);while(n!==-1);return o+=t.substr(s),o},rg=(t,e,r,n)=>{let i=0,s="";do{let o=t[n-1]==="\r";s+=t.substr(i,(o?n-1:n)-i)+e+(o?`\r
|
|
11
11
|
`:`
|
|
12
12
|
`)+r,i=n+1,n=t.indexOf(`
|
|
13
|
-
`,i)}while(n!==-1);return s+=t.substr(i),s};
|
|
14
|
-
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function
|
|
15
|
-
`);return s!==-1&&(e=ug(e,i,n,s)),n+e+i},Ui,ol=(t,...e)=>{let[r]=e;if(!ln(r)||!ln(r.raw))return e.join(" ");let n=e.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 Ui===void 0&&(Ui=tl()),Ui(t,i.join(""))};Object.defineProperties(fn.prototype,Ht);var hn=fn();hn.supportsColor=Xi;hn.stderr=fn({level:Gi?Gi.level:0});hn.stderr.supportsColor=Gi;al.exports=hn});var ul=y((Ji,zi)=>{(function(t,e){typeof Ji=="object"&&typeof zi<"u"?zi.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self,t.tinycolor=e())})(Ji,function(){"use strict";function t(l){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},t(l)}var e=/^\s+/,r=/\s+$/;function n(l,p){if(l=l||"",p=p||{},l instanceof n)return l;if(!(this instanceof n))return new n(l,p);var f=i(l);this._originalInput=l,this._r=f.r,this._g=f.g,this._b=f.b,this._a=f.a,this._roundA=Math.round(100*this._a)/100,this._format=p.format||f.format,this._gradientType=p.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=f.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 p=this.toRgb();return(p.r*299+p.g*587+p.b*114)/1e3},getLuminance:function(){var p=this.toRgb(),f,v,E,w,j,X;return f=p.r/255,v=p.g/255,E=p.b/255,f<=.03928?w=f/12.92:w=Math.pow((f+.055)/1.055,2.4),v<=.03928?j=v/12.92:j=Math.pow((v+.055)/1.055,2.4),E<=.03928?X=E/12.92:X=Math.pow((E+.055)/1.055,2.4),.2126*w+.7152*j+.0722*X},setAlpha:function(p){return this._a=G(p),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var p=c(this._r,this._g,this._b);return{h:p.h*360,s:p.s,v:p.v,a:this._a}},toHsvString:function(){var p=c(this._r,this._g,this._b),f=Math.round(p.h*360),v=Math.round(p.s*100),E=Math.round(p.v*100);return this._a==1?"hsv("+f+", "+v+"%, "+E+"%)":"hsva("+f+", "+v+"%, "+E+"%, "+this._roundA+")"},toHsl:function(){var p=o(this._r,this._g,this._b);return{h:p.h*360,s:p.s,l:p.l,a:this._a}},toHslString:function(){var p=o(this._r,this._g,this._b),f=Math.round(p.h*360),v=Math.round(p.s*100),E=Math.round(p.l*100);return this._a==1?"hsl("+f+", "+v+"%, "+E+"%)":"hsla("+f+", "+v+"%, "+E+"%, "+this._roundA+")"},toHex:function(p){return u(this._r,this._g,this._b,p)},toHexString:function(p){return"#"+this.toHex(p)},toHex8:function(p){return h(this._r,this._g,this._b,this._a,p)},toHex8String:function(p){return"#"+this.toHex8(p)},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(R(this._r,255)*100)+"%",g:Math.round(R(this._g,255)*100)+"%",b:Math.round(R(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(R(this._r,255)*100)+"%, "+Math.round(R(this._g,255)*100)+"%, "+Math.round(R(this._b,255)*100)+"%)":"rgba("+Math.round(R(this._r,255)*100)+"%, "+Math.round(R(this._g,255)*100)+"%, "+Math.round(R(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:S[u(this._r,this._g,this._b,!0)]||!1},toFilter:function(p){var f="#"+g(this._r,this._g,this._b,this._a),v=f,E=this._gradientType?"GradientType = 1, ":"";if(p){var w=n(p);v="#"+g(w._r,w._g,w._b,w._a)}return"progid:DXImageTransform.Microsoft.gradient("+E+"startColorstr="+f+",endColorstr="+v+")"},toString:function(p){var f=!!p;p=p||this._format;var v=!1,E=this._a<1&&this._a>=0,w=!f&&E&&(p==="hex"||p==="hex6"||p==="hex3"||p==="hex4"||p==="hex8"||p==="name");return w?p==="name"&&this._a===0?this.toName():this.toRgbString():(p==="rgb"&&(v=this.toRgbString()),p==="prgb"&&(v=this.toPercentageRgbString()),(p==="hex"||p==="hex6")&&(v=this.toHexString()),p==="hex3"&&(v=this.toHexString(!0)),p==="hex4"&&(v=this.toHex8String(!0)),p==="hex8"&&(v=this.toHex8String()),p==="name"&&(v=this.toName()),p==="hsl"&&(v=this.toHslString()),p==="hsv"&&(v=this.toHsvString()),v||this.toHexString())},clone:function(){return n(this.toString())},_applyModification:function(p,f){var v=p.apply(null,[this].concat([].slice.call(f)));return this._r=v._r,this._g=v._g,this._b=v._b,this.setAlpha(v._a),this},lighten:function(){return this._applyModification(C,arguments)},brighten:function(){return this._applyModification(F,arguments)},darken:function(){return this._applyModification(N,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(b,arguments)},greyscale:function(){return this._applyModification(x,arguments)},spin:function(){return this._applyModification(U,arguments)},_applyCombination:function(p,f){return p.apply(null,[this].concat([].slice.call(f)))},analogous:function(){return this._applyCombination(ue,arguments)},complement:function(){return this._applyCombination($,arguments)},monochromatic:function(){return this._applyCombination(V,arguments)},splitcomplement:function(){return this._applyCombination(Q,arguments)},triad:function(){return this._applyCombination(H,[3])},tetrad:function(){return this._applyCombination(H,[4])}},n.fromRatio=function(l,p){if(t(l)=="object"){var f={};for(var v in l)l.hasOwnProperty(v)&&(v==="a"?f[v]=l[v]:f[v]=M(l[v]));l=f}return n(l,p)};function i(l){var p={r:0,g:0,b:0},f=1,v=null,E=null,w=null,j=!1,X=!1;return typeof l=="string"&&(l=Rt(l)),t(l)=="object"&&(le(l.r)&&le(l.g)&&le(l.b)?(p=s(l.r,l.g,l.b),j=!0,X=String(l.r).substr(-1)==="%"?"prgb":"rgb"):le(l.h)&&le(l.s)&&le(l.v)?(v=M(l.s),E=M(l.v),p=d(l.h,v,E),j=!0,X="hsv"):le(l.h)&&le(l.s)&&le(l.l)&&(v=M(l.s),w=M(l.l),p=a(l.h,v,w),j=!0,X="hsl"),l.hasOwnProperty("a")&&(f=l.a)),f=G(f),{ok:j,format:l.format||X,r:Math.min(255,Math.max(p.r,0)),g:Math.min(255,Math.max(p.g,0)),b:Math.min(255,Math.max(p.b,0)),a:f}}function s(l,p,f){return{r:R(l,255)*255,g:R(p,255)*255,b:R(f,255)*255}}function o(l,p,f){l=R(l,255),p=R(p,255),f=R(f,255);var v=Math.max(l,p,f),E=Math.min(l,p,f),w,j,X=(v+E)/2;if(v==E)w=j=0;else{var J=v-E;switch(j=X>.5?J/(2-v-E):J/(v+E),v){case l:w=(p-f)/J+(p<f?6:0);break;case p:w=(f-l)/J+2;break;case f:w=(l-p)/J+4;break}w/=6}return{h:w,s:j,l:X}}function a(l,p,f){var v,E,w;l=R(l,360),p=R(p,100),f=R(f,100);function j(Ee,fe,je){return je<0&&(je+=1),je>1&&(je-=1),je<1/6?Ee+(fe-Ee)*6*je:je<1/2?fe:je<2/3?Ee+(fe-Ee)*(2/3-je)*6:Ee}if(p===0)v=E=w=f;else{var X=f<.5?f*(1+p):f+p-f*p,J=2*f-X;v=j(J,X,l+1/3),E=j(J,X,l),w=j(J,X,l-1/3)}return{r:v*255,g:E*255,b:w*255}}function c(l,p,f){l=R(l,255),p=R(p,255),f=R(f,255);var v=Math.max(l,p,f),E=Math.min(l,p,f),w,j,X=v,J=v-E;if(j=v===0?0:J/v,v==E)w=0;else{switch(v){case l:w=(p-f)/J+(p<f?6:0);break;case p:w=(f-l)/J+2;break;case f:w=(l-p)/J+4;break}w/=6}return{h:w,s:j,v:X}}function d(l,p,f){l=R(l,360)*6,p=R(p,100),f=R(f,100);var v=Math.floor(l),E=l-v,w=f*(1-p),j=f*(1-E*p),X=f*(1-(1-E)*p),J=v%6,Ee=[f,j,w,w,X,f][J],fe=[X,f,f,j,w,w][J],je=[w,w,X,f,f,j][J];return{r:Ee*255,g:fe*255,b:je*255}}function u(l,p,f,v){var E=[A(Math.round(l).toString(16)),A(Math.round(p).toString(16)),A(Math.round(f).toString(16))];return v&&E[0].charAt(0)==E[0].charAt(1)&&E[1].charAt(0)==E[1].charAt(1)&&E[2].charAt(0)==E[2].charAt(1)?E[0].charAt(0)+E[1].charAt(0)+E[2].charAt(0):E.join("")}function h(l,p,f,v,E){var w=[A(Math.round(l).toString(16)),A(Math.round(p).toString(16)),A(Math.round(f).toString(16)),A(Ne(v))];return E&&w[0].charAt(0)==w[0].charAt(1)&&w[1].charAt(0)==w[1].charAt(1)&&w[2].charAt(0)==w[2].charAt(1)&&w[3].charAt(0)==w[3].charAt(1)?w[0].charAt(0)+w[1].charAt(0)+w[2].charAt(0)+w[3].charAt(0):w.join("")}function g(l,p,f,v){var E=[A(Ne(v)),A(Math.round(l).toString(16)),A(Math.round(p).toString(16)),A(Math.round(f).toString(16))];return E.join("")}n.equals=function(l,p){return!l||!p?!1:n(l).toRgbString()==n(p).toRgbString()},n.random=function(){return n.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function m(l,p){p=p===0?0:p||10;var f=n(l).toHsl();return f.s-=p/100,f.s=L(f.s),n(f)}function b(l,p){p=p===0?0:p||10;var f=n(l).toHsl();return f.s+=p/100,f.s=L(f.s),n(f)}function x(l){return n(l).desaturate(100)}function C(l,p){p=p===0?0:p||10;var f=n(l).toHsl();return f.l+=p/100,f.l=L(f.l),n(f)}function F(l,p){p=p===0?0:p||10;var f=n(l).toRgb();return f.r=Math.max(0,Math.min(255,f.r-Math.round(255*-(p/100)))),f.g=Math.max(0,Math.min(255,f.g-Math.round(255*-(p/100)))),f.b=Math.max(0,Math.min(255,f.b-Math.round(255*-(p/100)))),n(f)}function N(l,p){p=p===0?0:p||10;var f=n(l).toHsl();return f.l-=p/100,f.l=L(f.l),n(f)}function U(l,p){var f=n(l).toHsl(),v=(f.h+p)%360;return f.h=v<0?360+v:v,n(f)}function $(l){var p=n(l).toHsl();return p.h=(p.h+180)%360,n(p)}function H(l,p){if(isNaN(p)||p<=0)throw new Error("Argument to polyad must be a positive number");for(var f=n(l).toHsl(),v=[n(l)],E=360/p,w=1;w<p;w++)v.push(n({h:(f.h+w*E)%360,s:f.s,l:f.l}));return v}function Q(l){var p=n(l).toHsl(),f=p.h;return[n(l),n({h:(f+72)%360,s:p.s,l:p.l}),n({h:(f+216)%360,s:p.s,l:p.l})]}function ue(l,p,f){p=p||6,f=f||30;var v=n(l).toHsl(),E=360/f,w=[n(l)];for(v.h=(v.h-(E*p>>1)+720)%360;--p;)v.h=(v.h+E)%360,w.push(n(v));return w}function V(l,p){p=p||6;for(var f=n(l).toHsv(),v=f.h,E=f.s,w=f.v,j=[],X=1/p;p--;)j.push(n({h:v,s:E,v:w})),w=(w+X)%1;return j}n.mix=function(l,p,f){f=f===0?0:f||50;var v=n(l).toRgb(),E=n(p).toRgb(),w=f/100,j={r:(E.r-v.r)*w+v.r,g:(E.g-v.g)*w+v.g,b:(E.b-v.b)*w+v.b,a:(E.a-v.a)*w+v.a};return n(j)},n.readability=function(l,p){var f=n(l),v=n(p);return(Math.max(f.getLuminance(),v.getLuminance())+.05)/(Math.min(f.getLuminance(),v.getLuminance())+.05)},n.isReadable=function(l,p,f){var v=n.readability(l,p),E,w;switch(w=!1,E=xe(f),E.level+E.size){case"AAsmall":case"AAAlarge":w=v>=4.5;break;case"AAlarge":w=v>=3;break;case"AAAsmall":w=v>=7;break}return w},n.mostReadable=function(l,p,f){var v=null,E=0,w,j,X,J;f=f||{},j=f.includeFallbackColors,X=f.level,J=f.size;for(var Ee=0;Ee<p.length;Ee++)w=n.readability(l,p[Ee]),w>E&&(E=w,v=n(p[Ee]));return n.isReadable(l,v,{level:X,size:J})||!j?v:(f.includeFallbackColors=!1,n.mostReadable(l,["#fff","#000"],f))};var _=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"},S=n.hexNames=P(_);function P(l){var p={};for(var f in l)l.hasOwnProperty(f)&&(p[l[f]]=f);return p}function G(l){return l=parseFloat(l),(isNaN(l)||l<0||l>1)&&(l=1),l}function R(l,p){B(l)&&(l="100%");var f=T(l);return l=Math.min(p,Math.max(0,parseFloat(l))),f&&(l=parseInt(l*p,10)/100),Math.abs(l-p)<1e-6?1:l%p/parseFloat(p)}function L(l){return Math.min(1,Math.max(0,l))}function I(l){return parseInt(l,16)}function B(l){return typeof l=="string"&&l.indexOf(".")!=-1&&parseFloat(l)===1}function T(l){return typeof l=="string"&&l.indexOf("%")!=-1}function A(l){return l.length==1?"0"+l:""+l}function M(l){return l<=1&&(l=l*100+"%"),l}function Ne(l){return Math.round(parseFloat(l)*255).toString(16)}function He(l){return I(l)/255}var ee=function(){var l="[-\\+]?\\d+%?",p="[-\\+]?\\d*\\.\\d+%?",f="(?:"+p+")|(?:"+l+")",v="[\\s|\\(]+("+f+")[,|\\s]+("+f+")[,|\\s]+("+f+")\\s*\\)?",E="[\\s|\\(]+("+f+")[,|\\s]+("+f+")[,|\\s]+("+f+")[,|\\s]+("+f+")\\s*\\)?";return{CSS_UNIT:new RegExp(f),rgb:new RegExp("rgb"+v),rgba:new RegExp("rgba"+E),hsl:new RegExp("hsl"+v),hsla:new RegExp("hsla"+E),hsv:new RegExp("hsv"+v),hsva:new RegExp("hsva"+E),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 le(l){return!!ee.CSS_UNIT.exec(l)}function Rt(l){l=l.replace(e,"").replace(r,"").toLowerCase();var p=!1;if(_[l])l=_[l],p=!0;else if(l=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var f;return(f=ee.rgb.exec(l))?{r:f[1],g:f[2],b:f[3]}:(f=ee.rgba.exec(l))?{r:f[1],g:f[2],b:f[3],a:f[4]}:(f=ee.hsl.exec(l))?{h:f[1],s:f[2],l:f[3]}:(f=ee.hsla.exec(l))?{h:f[1],s:f[2],l:f[3],a:f[4]}:(f=ee.hsv.exec(l))?{h:f[1],s:f[2],v:f[3]}:(f=ee.hsva.exec(l))?{h:f[1],s:f[2],v:f[3],a:f[4]}:(f=ee.hex8.exec(l))?{r:I(f[1]),g:I(f[2]),b:I(f[3]),a:He(f[4]),format:p?"name":"hex8"}:(f=ee.hex6.exec(l))?{r:I(f[1]),g:I(f[2]),b:I(f[3]),format:p?"name":"hex"}:(f=ee.hex4.exec(l))?{r:I(f[1]+""+f[1]),g:I(f[2]+""+f[2]),b:I(f[3]+""+f[3]),a:He(f[4]+""+f[4]),format:p?"name":"hex8"}:(f=ee.hex3.exec(l))?{r:I(f[1]+""+f[1]),g:I(f[2]+""+f[2]),b:I(f[3]+""+f[3]),format:p?"name":"hex"}:!1}function xe(l){var p,f;return l=l||{level:"AA",size:"small"},p=(l.level||"AA").toUpperCase(),f=(l.size||"small").toLowerCase(),p!=="AA"&&p!=="AAA"&&(p="AA"),f!=="small"&&f!=="large"&&(f="small"),{level:p,size:f}}return n})});var gl=y((W2,ml)=>{var br=ul(),hl={r:256,g:256,b:256,a:1},pl={h:360,s:1,v:1,a:1};function Yi(t,e,r){let n={};for(let i in t)t.hasOwnProperty(i)&&(n[i]=r===0?0:(e[i]-t[i])/r);return n}function Ki(t,e,r,n){let i={};for(let s in e)e.hasOwnProperty(s)&&(i[s]=t[s]*r+e[s],i[s]=i[s]<0?i[s]+n[s]:n[s]!==1?i[s]%n[s]:i[s]);return i}function Vi(t,e,r){let n=t.color.toRgb(),i=e.color.toRgb(),s=Yi(n,i,r),o=[t.color];for(let a=1;a<r;a++){let c=Ki(s,n,a,hl);o.push(br(c))}return o}function ll(t,e,r,n){let i=t.color.toHsv(),s=e.color.toHsv();if(i.s===0||s.s===0)return Vi(t,e,r);let o;if(typeof n=="boolean")o=n;else{let u=i.h<s.h&&s.h-i.h<180||i.h>s.h&&i.h-s.h>180;o=n==="long"&&u||n==="short"&&!u}let a=Yi(i,s,r),c=[t.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 u=1;u<r;u++){let h=Ki(a,i,u,pl);c.push(br(h))}return c}function fl(t,e){let r=t.length;if(e=parseInt(e,10),isNaN(e)||e<2)throw new Error("Invalid number of steps (< 2)");if(e<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=(e-1)*(t[s].pos-t[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!==e;)if(i<e){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 dl(t,e,r,n){if(e<0||e>1)throw new Error("Position must be between 0 and 1");let i,s;for(let c=0,d=t.length;c<d-1;c++)if(e>=t[c].pos&&e<t[c+1].pos){i=t[c],s=t[c+1];break}i||(i=s=t[t.length-1]);let o=Yi(i.color[r](),s.color[r](),(s.pos-i.pos)*100),a=Ki(o,i.color[r](),(e-i.pos)*100,n);return br(a)}var Wt=class{constructor(e){if(e.length<2)throw new Error("Invalid number of stops (< 2)");let r=e[0].pos!==void 0,n=e.length,i=-1,s=!1;this.stops=e.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?br(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:br(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 e=[];return this.stops.forEach(function(r){e.push({color:r.color,pos:1-r.pos})}),new Wt(e.reverse())}loop(){let e=[],r=[];return this.stops.forEach(n=>{e.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 Wt(e.concat(r.reverse()))}rgb(e){let r=fl(this.stops,e),n=[];this.stops.forEach((i,s)=>{i.colorLess&&(i.color=Vi(this.stops[s-1],this.stops[s+1],2)[1])});for(let i=0,s=this.stops.length;i<s-1;i++){let o=Vi(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(e,r){let n=fl(this.stops,e),i=[];this.stops.forEach((s,o)=>{s.colorLess&&(s.color=ll(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=ll(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(e,r){e=e||"linear",r=r||(e==="linear"?"to right":"ellipse at center");let n=e+"-gradient("+r;return this.stops.forEach(function(i){n+=", "+(i.colorLess?"":i.color.toRgbString()+" ")+i.pos*100+"%"}),n+=")",n}rgbAt(e){return dl(this.stops,e,"toRgb",hl)}hsvAt(e){return dl(this.stops,e,"toHsv",pl)}};ml.exports=function(t){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');t=arguments[0]}else t=Array.prototype.slice.call(arguments);return new Wt(t)}});var wl=y((J2,pn)=>{"use strict";var vl=cl(),dg=gl(),yl=/\s/g;function Qi(...t){let e=dg.apply(this,t),r=(n,i)=>hg(n?n.toString():"",e,i);return r.multiline=(n,i)=>pg(n?n.toString():"",e,i),r}var bl=(t,e,r)=>e.interpolation.toLowerCase()==="hsv"?t.hsv(r,e.hsvSpin.toLowerCase()):t.rgb(r);function hg(t,e,r){let n=_l(r),i=Math.max(t.replace(yl,"").length,e.stops.length),s=bl(e,n,i),o="";for(let a of t)o+=a.match(yl)?a:vl.hex(s.shift().toHex())(a);return o}function pg(t,e,r){let n=_l(r),i=t.split(`
|
|
16
|
-
`),s=Math.max.apply(null,i.map(c=>c.length).concat([e.stops.length])),o=
|
|
17
|
-
`)}function
|
|
18
|
-
`,this.pretty=!0,(0,En.isUndefined)(e.doubleQuotes)||(this.doubleQuotes=e.doubleQuotes),(0,En.isUndefined)(e.indent)||(this.indent=e.indent),(0,En.isUndefined)(e.newline)||(this.newline=e.newline),(0,En.isUndefined)(e.pretty)||(this.pretty=e.pretty)}return t}();Cn.StringOptions=Kg});var Pn=y(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.escapeDoubleQuotes=qe.escapeSingleQuotes=qe.escapeRightAngleBracketsInCdataTerminator=qe.escapeLeftAngleBrackets=qe.escapeAmpersands=void 0;function Qg(t){return t.replace(/&/g,"&")}qe.escapeAmpersands=Qg;function Zg(t){return t.replace(/</g,"<")}qe.escapeLeftAngleBrackets=Zg;function ey(t){return t.replace(/]]>/g,"]]>")}qe.escapeRightAngleBracketsInCdataTerminator=ey;function ty(t){return t.replace(/'/g,"'")}qe.escapeSingleQuotes=ty;function ry(t){return t.replace(/"/g,""")}qe.escapeDoubleQuotes=ry});var Cs=y(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});var ny=oe(),ff=Pn(),xs=Z(),iy=function(){function t(e,r,n){this._validation=r,(0,xs.isUndefined)(n.replaceInvalidCharsInCharData)?this._replaceInvalidCharsInCharData=!1:this._replaceInvalidCharsInCharData=n.replaceInvalidCharsInCharData,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._replaceInvalidCharsInCharData)e=(0,xs.fixChar)(e);else if(this._validation&&!(0,xs.validateChar)(e))throw new Error((0,ny.getContext)(this.up())+": attribute text"+(' "'+e+'" should not contain characters not')+" allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){var e=this._charData;return e=(0,ff.escapeAmpersands)(e),e=(0,ff.escapeLeftAngleBrackets)(e),e},t.prototype.up=function(){return this._parent},t}();Es.default=iy});var Dn=y(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});var df=oe(),hf=Z(),sy=function(){function t(e,r,n){this._hex=!1,this._validation=r,this._parent=e,this.char=n.char,(0,hf.isUndefined)(n.hex)||(this.hex=n.hex)}return Object.defineProperty(t.prototype,"char",{get:function(){return this._char},set:function(e){if(this._validation&&!(0,hf.validateSingleChar)(e))throw new Error((0,df.getContext)(this.up())+": character reference"+(' "'+e+'" should reference a single character,')+" and this character should be allowed in XML");this._char=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hex",{get:function(){return this._hex},set:function(e){this._hex=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){var e;if(this._char.length===1)e=this._char.charCodeAt(0);else{var r=this._char.charCodeAt(0);if(r>=55296&&r<=56319&&this._char.length>1){var n=this._char.charCodeAt(1);if(n>=56320&&n<=57343)e=(r-55296)*1024+n-56320+65536;else throw new Error((0,df.getContext)(this.up())+": character"+(' reference "'+this.char+'" should')+" reference a valid Unicode character")}else e=r}return this._hex?"&#x"+e.toString(16)+";":"&#"+e+";"},t.prototype.up=function(){return this._parent},t}();Ps.default=sy});var On=y(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});var oy=oe(),ay=Z(),cy=function(){function t(e,r,n){this._validation=r,this._parent=e,this.name=n.name}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){if(this._validation&&!(0,ay.validateName)(e))throw new Error((0,oy.getContext)(this.up())+": entity reference name"+(' "'+e+'" should not contain characters not')+" allowed in XML names");this._name=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"&"+this._name+";"},t.prototype.up=function(){return this._parent},t}();Ds.default=cy});var An=y(Sr=>{"use strict";var Is=Sr&&Sr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Sr,"__esModule",{value:!0});var Os=oe(),pf=Pn(),uy=Vt(),As=Z(),ly=Is(Cs()),fy=Is(Dn()),dy=Is(On()),hy=function(){function t(e,r,n){this._validation=r,(0,As.isUndefined)(n.replaceInvalidCharsInName)?this._replaceInvalidCharsInName=!1:this._replaceInvalidCharsInName=n.replaceInvalidCharsInName,this._children=[],this._parent=e,this.name=n.name}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){if(this._replaceInvalidCharsInName){if(e=(0,As.fixName)(e),e.length===0)throw new Error((0,Os.getContext)(this.up())+": attribute name should not be empty")}else if(this._validation&&!(0,As.validateName)(e))throw e.length===0?new Error((0,Os.getContext)(this.up())+": attribute name should not be empty"):new Error((0,Os.getContext)(this.up())+": attribute name"+(' "'+e+'" should not contain characters not')+" allowed in XML names");this._name=e},enumerable:!1,configurable:!0}),t.prototype.charRef=function(e){var r=new fy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.entityRef=function(e){var r=new dy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.text=function(e){var r=new ly.default(this,this._validation,e);return this._children.push(r),r},t.prototype.toString=function(e){e===void 0&&(e={});for(var r=new uy.StringOptions(e),n=r.doubleQuotes?'"':"'",i=this._name+"="+n,s=0,o=this._children;s<o.length;s++){var a=o[s];r.doubleQuotes?i+=(0,pf.escapeDoubleQuotes)(a.toString()):i+=(0,pf.escapeSingleQuotes)(a.toString())}return i+=n,i},t.prototype.up=function(){return this._parent},t}();Sr.default=hy});var Fs=y(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});var py=oe(),my=Z(),gy=function(){function t(e,r,n){this._validation=r,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._validation&&!(0,my.validateChar)(e))throw new Error((0,py.getContext)(this.up())+": attribute-list"+(' declaration "'+e+'" should not contain')+" characters not allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<!ATTLIST "+this._charData+">"},t.prototype.up=function(){return this._parent},t}();Rs.default=gy});var Ts=y(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});var yy=oe(),vy=Z(),by=function(){function t(e,r,n){this._validation=r,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._validation&&!(0,vy.validateChar)(e))throw new Error((0,yy.getContext)(this.up())+": element declaration"+(' "'+e+'" should not contain characters')+" not allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<!ELEMENT "+this._charData+">"},t.prototype.up=function(){return this._parent},t}();ks.default=by});var qs=y(Ms=>{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});var _y=oe(),wy=Z(),Sy=function(){function t(e,r,n){this._validation=r,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._validation&&!(0,wy.validateChar)(e))throw new Error((0,_y.getContext)(this.up())+": entity declaration"+(' "'+e+'" should not contain characters')+" not allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<!ENTITY "+this._charData+">"},t.prototype.up=function(){return this._parent},t}();Ms.default=Sy});var js=y(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});var xy=oe(),Ey=Z(),Cy=function(){function t(e,r,n){this._validation=r,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._validation&&!(0,Ey.validateChar)(e))throw new Error((0,xy.getContext)(this.up())+": notation declaration"+(' "'+e+'" should not contain characters')+" not allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<!NOTATION "+this._charData+">"},t.prototype.up=function(){return this._parent},t}();Ns.default=Cy});var Ls=y($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});var Py=oe(),Dy=Z(),Oy=function(){function t(e,r,n){this._validation=r,this._parent=e,this.name=n.name}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){if(this._validation&&!(0,Dy.validateName)(e))throw new Error((0,Py.getContext)(this.up())+": parameter entity"+(' reference name "'+e+'" should not contain')+" characters not allowed in XML names");this._name=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"%"+this._name+";"},t.prototype.up=function(){return this._parent},t}();$s.default=Oy});var xr=y(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});var In=oe(),Rn=Z(),Ay=function(){function t(e,r,n){this._validation=r,this._parent=e,this.content=n.content,this.target=n.target}return Object.defineProperty(t.prototype,"content",{get:function(){return this._content},set:function(e){if(!(0,Rn.isUndefined)(e)){if(this._validation&&!(0,Rn.validateChar)(e))throw new Error((0,In.getContext)(this.up())+": processing"+(' instruction content "'+e+'" should')+" not contain characters not allowed in XML");if(this._validation&&e.indexOf("?>")!==-1)throw new Error((0,In.getContext)(this.up())+": processing"+(' instruction content "'+e+'" should')+" not contain the string '?>'")}this._content=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"target",{get:function(){return this._target},set:function(e){if(this._validation&&!(0,Rn.validateName)(e))throw new Error((0,In.getContext)(this.up())+": processing"+(' instruction target "'+e+'" should')+" not contain characters not allowed in XML names");if(this._validation&&e==="xml")throw new Error((0,In.getContext)(this.up())+": processing"+(' instruction target "'+e+'" should')+" not be the string 'xml'");this._target=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return(0,Rn.isUndefined)(this._content)?"<?"+this._target+"?>":"<?"+this._target+" "+this._content+"?>"},t.prototype.up=function(){return this._parent},t}();Bs.default=Ay});var Fn=y(St=>{"use strict";var xt=St&&St.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(St,"__esModule",{value:!0});St.validatePubId=void 0;var pt=oe(),Iy=Vt(),We=Z(),Ry=xt(Er()),Fy=xt(Fs()),ky=xt(Ts()),Ty=xt(qs()),My=xt(js()),qy=xt(Ls()),Ny=xt(xr()),jy=function(){function t(e,r,n){this._pubId=void 0,this._sysId=void 0,this._validation=r,this._children=[],this._parent=e,this.name=n.name,(0,We.isUndefined)(n.sysId)||(this.sysId=n.sysId),(0,We.isUndefined)(n.pubId)||(this.pubId=n.pubId)}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){if(this._validation&&!(0,We.validateName)(e))throw new Error((0,pt.getContext)(this.up())+': DTD name "'+e+'" should not contain characters not allowed in XML names');this._name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pubId",{get:function(){return this._pubId},set:function(e){if(!(0,We.isUndefined)(e)){if(this._validation&&!mf(e))throw new Error((0,pt.getContext)(this.up())+": DTD public"+(' identifier "'+e+'" should not contain')+" characters not allowed in public identifiers");if(this._validation&&(0,We.isUndefined)(this._sysId))throw new Error((0,pt.getContext)(this.up())+": DTD public"+(' identifier "'+e+'" should not be defined')+" if system identifier is undefined")}this._pubId=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sysId",{get:function(){return this._sysId},set:function(e){if(!(0,We.isUndefined)(e)){if(this._validation&&!(0,We.validateChar)(e))throw new Error((0,pt.getContext)(this.up())+": DTD system"+(' identifier "'+e+'" should not contain')+" characters not allowed in XML");if(this._validation&&e.indexOf("'")!==-1&&e.indexOf('"')!==-1)throw new Error((0,pt.getContext)(this.up())+": DTD system"+(' identifier "'+e+'" should not contain')+" both single quotes and double quotes")}this._sysId=e},enumerable:!1,configurable:!0}),t.prototype.attlist=function(e){var r=new Fy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.comment=function(e){var r=new Ry.default(this,this._validation,e);return this._children.push(r),r},t.prototype.element=function(e){var r=new ky.default(this,this._validation,e);return this._children.push(r),r},t.prototype.entity=function(e){var r=new Ty.default(this,this._validation,e);return this._children.push(r),r},t.prototype.notation=function(e){var r=new My.default(this,this._validation,e);return this._children.push(r),r},t.prototype.paramEntityRef=function(e){var r=new qy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.procInst=function(e){var r=new Ny.default(this,this._validation,e);return this._children.push(r),r},t.prototype.toString=function(e){e===void 0&&(e={});var r=new Iy.StringOptions(e),n="<!DOCTYPE "+this._name;if((0,We.isUndefined)(this._pubId))(0,We.isUndefined)(this._sysId)||(n+=" ",n=this.appendId("SYSTEM",this._sysId,n,r));else{if((0,We.isUndefined)(this._sysId))throw new Error((0,pt.getContext)(this.up())+": DTD system identifier is not undefined");n+=" ",n=this.appendId("PUBLIC",this._pubId,n,r),n=this.appendId("",this._sysId,n,r)}if(this._children.length!==0){n+=" [";for(var i=0,s=this._children;i<s.length;i++){var o=s[i];r.pretty&&(n+=r.newline+r.indent),n+=o.toString()}r.pretty&&(n+=r.newline),n+="]>"}else n+=">";return n},t.prototype.up=function(){return this._parent},t.prototype.appendId=function(e,r,n,i){if(n+=e+" ",i.doubleQuotes){if(this._validation&&r.indexOf('"')!==-1)throw new Error((0,pt.getContext)(this.up())+": doubleQuotes option inconsistent with DTD system identifier or public identifier");n+='"'+r+'"'}else{if(this._validation&&r.indexOf("'")!==-1)throw new Error((0,pt.getContext)(this)+": doubleQuotes option inconsistent with DTD system identifier or public identifier");n+="'"+r+"'"}return n},t}();St.default=jy;function mf(t){for(var e=0;e<t.length;e++){var r=t.charCodeAt(e);if(!(r===10||r===13||r===32||r===33||r>=35&&r<=37||r>=39&&r<=47||r>=48&&r<=57||r===58||r===59||r===61||r===63||r>=64&&r<=90||r===95||r>=97&&r<=122))return e+1===t.length,!1}return!0}St.validatePubId=mf});var Gs=y(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});var gf=oe(),Us=Z(),$y=function(){function t(e,r,n){this._validation=r,(0,Us.isUndefined)(n.replaceInvalidCharsInCharData)?this._replaceInvalidCharsInCharData=!1:this._replaceInvalidCharsInCharData=n.replaceInvalidCharsInCharData,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._replaceInvalidCharsInCharData)e=(0,Us.fixChar)(e);else if(this._validation&&!(0,Us.validateChar)(e))throw new Error((0,gf.getContext)(this.up())+": CDATA section"+(' "'+e+'" should not contain characters')+" not allowed in XML");if(this._replaceInvalidCharsInCharData)e=e.replace("]]>","\uFFFD\uFFFD\uFFFD");else if(this._validation&&e.indexOf("]]>")!==-1)throw new Error((0,gf.getContext)(this.up())+": CDATA section"+(' "'+e+'" should not contain the string')+" ']]>'");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<![CDATA["+this._charData+"]]>"},t.prototype.up=function(){return this._parent},t}();Xs.default=$y});var zs=y(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});var Ly=oe(),Hs=Pn(),Ws=Z(),By=function(){function t(e,r,n){this._validation=r,(0,Ws.isUndefined)(n.replaceInvalidCharsInCharData)?this._replaceInvalidCharsInCharData=!1:this._replaceInvalidCharsInCharData=n.replaceInvalidCharsInCharData,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._replaceInvalidCharsInCharData)e=(0,Ws.fixChar)(e);else if(this._validation&&!(0,Ws.validateChar)(e))throw new Error((0,Ly.getContext)(this.up())+": character data"+('"'+e+'" should not contain characters not')+" allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){var e=this._charData;return e=(0,Hs.escapeAmpersands)(e),e=(0,Hs.escapeLeftAngleBrackets)(e),e=(0,Hs.escapeRightAngleBracketsInCdataTerminator)(e),e},t.prototype.up=function(){return this._parent},t}();Js.default=By});var qn=y(Dr=>{"use strict";var Et=Dr&&Dr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Dr,"__esModule",{value:!0});var kn=oe(),Uy=Vt(),Cr=Z(),yf=Et(An()),Xy=Et(Gs()),Pr=Et(zs()),Tn=Et(Dn()),Gy=Et(Er()),Mn=Et(On()),Hy=Et(xr()),Wy=function(){function t(e,r,n){this._validation=r,(0,Cr.isUndefined)(n.replaceInvalidCharsInName)?this._replaceInvalidCharsInName=!1:this._replaceInvalidCharsInName=n.replaceInvalidCharsInName,(0,Cr.isUndefined)(n.useSelfClosingTagIfEmpty)?this._useSelfClosingTagIfEmpty=!0:this._useSelfClosingTagIfEmpty=n.useSelfClosingTagIfEmpty,this._children=[],this._attributeNames=[],this._parent=e,this.name=n.name}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){if(this._replaceInvalidCharsInName){if(e=(0,Cr.fixName)(e),e.length===0)throw new Error((0,kn.getContext)(this.up())+": element name should not be empty")}else if(this._validation&&!(0,Cr.validateName)(e))throw e.length===0?new Error((0,kn.getContext)(this.up())+": element name should not be empty"):new Error((0,kn.getContext)(this.up())+": element name"+(' "'+e+'" should not contain characters not')+" allowed in XML names");this._name=e},enumerable:!1,configurable:!0}),t.prototype.attribute=function(e){if(this._validation&&this._attributeNames.indexOf(e.name)!==-1)throw new Error((0,kn.getContext)(this.up())+': element "'+this.name+'" already contains an attribute with the'+(' name "'+e.name+'"'));var r=new yf.default(this,this._validation,e);return this._children.push(r),this._attributeNames.push(e.name),r},t.prototype.cdata=function(e){var r=new Xy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.charData=function(e){var r=new Pr.default(this,this._validation,e);return this._children.push(r),r},t.prototype.charRef=function(e){var r=new Tn.default(this,this._validation,e);return this._children.push(r),r},t.prototype.comment=function(e){var r=new Gy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.element=function(e){var r=new t(this,this._validation,e);return this._children.push(r),r},t.prototype.entityRef=function(e){var r=new Mn.default(this,this._validation,e);return this._children.push(r),r},t.prototype.procInst=function(e){var r=new Hy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.toString=function(e){return e===void 0&&(e={}),this.toStringWithIndent(e,"")},t.prototype.up=function(){return this._parent},t.prototype.toStringWithIndent=function(e,r){for(var n=new Uy.StringOptions(e),i=r+n.indent,s="<"+this._name,o=[],a=0,c=this._children;a<c.length;a++){var d=c[a];d instanceof yf.default?s+=" "+d.toString(e):o.push(d)}if(o.length>0){for(var u="",h=0;h<o.length;h++){var g=o[h],m="";g instanceof t?m+=g.toStringWithIndent(n,i):m+=g.toString();var b=h>0?o[h-1]:void 0;g instanceof Pr.default&&g.toString()===""||(n.pretty&&(this.allSameLineNodes(o)||h>0&&this.onSameLine(g,b)||(m=n.newline+i+m)),u+=m)}n.pretty&&(this.allSameLineNodes(o)||(u+=n.newline+r)),u.length===0&&this._useSelfClosingTagIfEmpty?s+="/>":s+=">"+u+"</"+this._name+">"}else this._useSelfClosingTagIfEmpty?s+="/>":s+="></"+this._name+">";return s},t.prototype.allSameLineNodes=function(e){for(var r=0,n=e;r<n.length;r++){var i=n[r];if(!(i instanceof Tn.default||i instanceof Mn.default||i instanceof Pr.default))return!1}return!0},t.prototype.onSameLine=function(e,r){return(e instanceof Tn.default||e instanceof Mn.default||e instanceof Pr.default)&&!(0,Cr.isUndefined)(r)&&(r instanceof Tn.default||r instanceof Mn.default||r instanceof Pr.default)},t}();Dr.default=Wy});var oe=y(Yt=>{"use strict";var jn=Yt&&Yt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Yt,"__esModule",{value:!0});Yt.getContext=void 0;var Jy=jn(An()),zy=jn($n()),Vy=jn(Fn()),Yy=jn(qn());function Nn(t){if(t instanceof Jy.default)return Nn(t.up())+(' > attribute "'+t.name+'"');if(t instanceof zy.default)return"in XML document";if(t instanceof Vy.default)return Nn(t.up())+" > DTD";if(t instanceof Yy.default)return Nn(t.up())+(' > element "'+t.name+'"');throw new Error("Unrecognized object of type "+Object.prototype.toString.call(t))}Yt.getContext=Nn});var Er=y(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});var Vs=oe(),Ys=Z(),Ky=function(){function t(e,r,n){this._validation=r,(0,Ys.isUndefined)(n.replaceInvalidCharsInCharData)?this._replaceInvalidCharsInCharData=!1:this._replaceInvalidCharsInCharData=n.replaceInvalidCharsInCharData,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._replaceInvalidCharsInCharData)e=(0,Ys.fixChar)(e);else if(this._validation&&!(0,Ys.validateChar)(e))throw new Error((0,Vs.getContext)(this.up())+": comment content"+(' "'+e+'" should not contain characters')+" not allowed in XML");if(this._replaceInvalidCharsInCharData)e=e.replace("--","\uFFFD\uFFFD");else if(this._validation&&e.indexOf("--")!==-1)throw new Error((0,Vs.getContext)(this.up())+": comment content"+(' "'+e+'" should not contain the string')+" '--'");if(this._replaceInvalidCharsInCharData)e.lastIndexOf("-")===e.length-1&&(e=e.substr(0,e.length-1)+"\uFFFD");else if(this._validation&&e.lastIndexOf("-")===e.length-1)throw new Error((0,Vs.getContext)(this.up())+": comment content"+(' "'+e+'" should not end with the string')+" '-'");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<!--"+this._charData+"-->"},t.prototype.up=function(){return this._parent},t}();Ks.default=Ky});var eo=y(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});var Qs=oe(),Qy=Vt(),Or=Z(),Zy=function(){function t(e,r,n){this._version="1.0",this._validation=r,this._parent=e,this.encoding=n.encoding,this.standalone=n.standalone,(0,Or.isUndefined)(n.version)||(this.version=n.version)}return Object.defineProperty(t.prototype,"encoding",{get:function(){return this._encoding},set:function(e){if(this._validation&&!(0,Or.isUndefined)(e)&&!ev(e))throw new Error((0,Qs.getContext)(this.up())+": declaration"+(" encoding attribute "+e+" should be a")+" valid encoding");this._encoding=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"standalone",{get:function(){return this._standalone},set:function(e){if(this._validation&&!(0,Or.isUndefined)(e)&&e!=="yes"&&e!=="no")throw new Error((0,Qs.getContext)(this.up())+": declaration"+(" standalone attribute "+e+" should")+" be the string 'yes' or the string 'no'");this._standalone=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._version},set:function(e){if(this._validation&&!tv(e))throw new Error((0,Qs.getContext)(this.up())+": declaration version"+(" attribute "+e+" should be a valid XML")+" version");this._version=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(e){e===void 0&&(e={});var r=new Qy.StringOptions(e),n=r.doubleQuotes?'"':"'",i="<?xml version="+n+this._version+n;return(0,Or.isUndefined)(this._encoding)||(i+=" encoding="+n+this._encoding+n),(0,Or.isUndefined)(this._standalone)||(i+=" standalone="+n+this._standalone+n),i+="?>",i},t.prototype.up=function(){return this._parent},t}();Zs.default=Zy;function ev(t){if(t.length===0)return!1;var e=t.charCodeAt(0);if(!(e>=65&&e<=90||e>=97&&e<=122))return!1;for(var r=1;r<t.length;r++){var n=t.charCodeAt(r);if(!(n===95||n===45||n===46||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122))return r+1===t.length,!1}return!0}function tv(t){for(var e=0;e<=9;e++)if(t==="1."+e)return!0;return!1}});var $n=y(Ir=>{"use strict";var Rr=Ir&&Ir.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ir,"__esModule",{value:!0});var rv=Vt(),nv=Z(),iv=Rr(Er()),vf=Rr(eo()),bf=Rr(Fn()),Ar=Rr(qn()),sv=Rr(xr()),ov=function(){function t(e){this._children=[],this._validation=(0,nv.isUndefined)(e.validation)?!0:e.validation}return t.prototype.comment=function(e){var r=new iv.default(this,this._validation,e);return this._children.push(r),r},t.prototype.decl=function(e){if(e===void 0&&(e={}),this._validation&&this._children.length!==0)throw new Error("in XML document: declaration must be the first child");var r=new vf.default(this,this._validation,e);return this._children.push(r),r},t.prototype.dtd=function(e){var r=this._children.filter(function(i){return i instanceof Ar.default});if(this._validation&&r.length!==0)throw new Error("in XML document: DTD must precede the root element");var n=new bf.default(this,this._validation,e);return this._children.push(n),n},t.prototype.element=function(e){var r=this._children.filter(function(i){return i instanceof Ar.default});if(this._validation&&r.length!==0)throw new Error("in XML document: only one root element is permitted");var n=new Ar.default(this,this._validation,e);return this._children.push(n),n},t.prototype.procInst=function(e){var r=new sv.default(this,this._validation,e);return this._children.push(r),r},t.prototype.toString=function(e){e===void 0&&(e={});var r=this._children.filter(function(d){return d instanceof Ar.default});if(this._validation&&r.length!==1)throw new Error("in XML document: no more than one root element is permitted");for(var n=new rv.StringOptions(e),i="",s=0,o=this._children;s<o.length;s++){var a=o[s];a instanceof vf.default||a instanceof bf.default||a instanceof Ar.default?i+=a.toString(e):i+=a.toString(),n.pretty&&(i+=n.newline)}var c=i.length-n.newline.length;return i.substr(c)===n.newline&&(i=i.substr(0,c)),i},t}();Ir.default=ov});var _f=y(q=>{"use strict";var re=q&&q.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(q,"__esModule",{value:!0});q.document=q.XmlProcInst=q.XmlEntityRef=q.XmlElement=q.XmlDtdParamEntityRef=q.XmlDtdNotation=q.XmlDtdEntity=q.XmlDtdElement=q.XmlDtdAttlist=q.XmlDtd=q.XmlDocument=q.XmlDecl=q.XmlComment=q.XmlCharRef=q.XmlCharData=q.XmlCdata=q.XmlAttributeText=q.XmlAttribute=void 0;var av=re($n()),cv=An();Object.defineProperty(q,"XmlAttribute",{enumerable:!0,get:function(){return re(cv).default}});var uv=Cs();Object.defineProperty(q,"XmlAttributeText",{enumerable:!0,get:function(){return re(uv).default}});var lv=Gs();Object.defineProperty(q,"XmlCdata",{enumerable:!0,get:function(){return re(lv).default}});var fv=zs();Object.defineProperty(q,"XmlCharData",{enumerable:!0,get:function(){return re(fv).default}});var dv=Dn();Object.defineProperty(q,"XmlCharRef",{enumerable:!0,get:function(){return re(dv).default}});var hv=Er();Object.defineProperty(q,"XmlComment",{enumerable:!0,get:function(){return re(hv).default}});var pv=eo();Object.defineProperty(q,"XmlDecl",{enumerable:!0,get:function(){return re(pv).default}});var mv=$n();Object.defineProperty(q,"XmlDocument",{enumerable:!0,get:function(){return re(mv).default}});var gv=Fn();Object.defineProperty(q,"XmlDtd",{enumerable:!0,get:function(){return re(gv).default}});var yv=Fs();Object.defineProperty(q,"XmlDtdAttlist",{enumerable:!0,get:function(){return re(yv).default}});var vv=Ts();Object.defineProperty(q,"XmlDtdElement",{enumerable:!0,get:function(){return re(vv).default}});var bv=qs();Object.defineProperty(q,"XmlDtdEntity",{enumerable:!0,get:function(){return re(bv).default}});var _v=js();Object.defineProperty(q,"XmlDtdNotation",{enumerable:!0,get:function(){return re(_v).default}});var wv=Ls();Object.defineProperty(q,"XmlDtdParamEntityRef",{enumerable:!0,get:function(){return re(wv).default}});var Sv=qn();Object.defineProperty(q,"XmlElement",{enumerable:!0,get:function(){return re(Sv).default}});var xv=On();Object.defineProperty(q,"XmlEntityRef",{enumerable:!0,get:function(){return re(xv).default}});var Ev=xr();Object.defineProperty(q,"XmlProcInst",{enumerable:!0,get:function(){return re(Ev).default}});function Cv(t){return t===void 0&&(t={}),new av.default(t)}q.document=Cv});var to=y(ne=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0});ne.stringify=ne.isMap=ne.isSet=ne.isFunction=ne.isArray=ne.isObject=ne.isNull=ne.isUndefined=void 0;function wf(t){return Object.prototype.toString.call(t)==="[object Undefined]"}ne.isUndefined=wf;function Sf(t){return Object.prototype.toString.call(t)==="[object Null]"}ne.isNull=Sf;function Pv(t){return Object.prototype.toString.call(t)==="[object Object]"}ne.isObject=Pv;function Dv(t){return Object.prototype.toString.call(t)==="[object Array]"}ne.isArray=Dv;function xf(t){return Object.prototype.toString.call(t)==="[object Function]"}ne.isFunction=xf;function Ov(t){return Object.prototype.toString.call(t)==="[object Set]"}ne.isSet=Ov;function Av(t){return Object.prototype.toString.call(t)==="[object Map]"}ne.isMap=Av;function Iv(t){return!wf(t)&&!Sf(t)&&xf(t?.toString)&&(t=t.toString()),String(t)}ne.stringify=Iv});var Af=y(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.WrapHandlers=Ae.TypeHandlers=Ae.FormatOptions=Ae.DtdOptions=Ae.DeclarationOptions=Ae.Options=void 0;var Ue=to(),Rv=function(){function t(e){e===void 0&&(e={}),this.aliasString="=",this.attributeString="@",this.cdataInvalidChars=!1,this.cdataKeys=[],this.replaceInvalidChars=!1,this.useSelfClosingTagIfEmpty=!0,this.validation=!0,this.valueString="#",(0,Ue.isUndefined)(e.validation)||(this.validation=e.validation),(0,Ue.isUndefined)(e.aliasString)||(this.aliasString=e.aliasString),(0,Ue.isUndefined)(e.attributeString)||(this.attributeString=e.attributeString),(0,Ue.isUndefined)(e.cdataInvalidChars)||(this.cdataInvalidChars=e.cdataInvalidChars),(0,Ue.isUndefined)(e.cdataKeys)||(this.cdataKeys=e.cdataKeys),this.declaration=new Ef(e.declaration),this.dtd=new Cf(this.validation,e.dtd),this.format=new Pf(e.format),(0,Ue.isUndefined)(e.replaceInvalidChars)||(this.replaceInvalidChars=e.replaceInvalidChars),this.typeHandlers=new Df(e.typeHandlers),(0,Ue.isUndefined)(e.useSelfClosingTagIfEmpty)||(this.useSelfClosingTagIfEmpty=e.useSelfClosingTagIfEmpty),(0,Ue.isUndefined)(e.valueString)||(this.valueString=e.valueString),this.wrapHandlers=new Of(e.wrapHandlers)}return t}();Ae.Options=Rv;var Ef=function(){function t(e){e===void 0&&(e={}),this.include=!0,(0,Ue.isUndefined)(e.include)||(this.include=e.include),this.encoding=e.encoding,this.standalone=e.standalone,this.version=e.version}return t}();Ae.DeclarationOptions=Ef;var Cf=function(){function t(e,r){if(r===void 0&&(r={}),this.include=!1,(0,Ue.isUndefined)(r.include)||(this.include=r.include),e&&(0,Ue.isUndefined)(r.name)&&this.include)throw new Error("options.dtd.name should be defined if options.dtd.include is true");this.name=r.name,this.sysId=r.sysId,this.pubId=r.pubId}return t}();Ae.DtdOptions=Cf;var Pf=function(){function t(e){e===void 0&&(e={}),this.doubleQuotes=e.doubleQuotes,this.indent=e.indent,this.newline=e.newline,this.pretty=e.pretty}return t}();Ae.FormatOptions=Pf;var Df=function(){function t(e){e===void 0&&(e={});for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(this[r]=e[r])}return t}();Ae.TypeHandlers=Df;var Of=function(){function t(e){e===void 0&&(e={});for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(this[r]=e[r])}return t}();Ae.WrapHandlers=Of});var Mf=y(mt=>{"use strict";Object.defineProperty(mt,"__esModule",{value:!0});mt.parse=mt.parseToExistingElement=mt.Absent=void 0;var Rf=_f(),Ff=Af(),Y=to(),ro=function(){function t(){}return Object.defineProperty(t,"instance",{get:function(){return t._instance},enumerable:!1,configurable:!0}),t._instance=new t,t}();mt.Absent=ro;function no(t,e){var r=Object.prototype.toString.call(t),n;return Object.prototype.hasOwnProperty.call(e.typeHandlers,"*")&&(n=e.typeHandlers["*"]),Object.prototype.hasOwnProperty.call(e.typeHandlers,r)&&(n=e.typeHandlers[r]),n}function kf(t,e,r){var n=function(o){return r.cdataInvalidChars&&(o.indexOf("<")!==-1||o.indexOf("&")!==-1)||r.cdataKeys.indexOf(e.name)!==-1||r.cdataKeys.indexOf("*")!==-1};if(e instanceof Rf.XmlElement)if(n(t))for(var i=t.split("]]>"),s=0;s<i.length;s++)n(i[s])?e.cdata({charData:i[s],replaceInvalidCharsInCharData:r.replaceInvalidChars}):e.charData({charData:i[s],replaceInvalidCharsInCharData:r.replaceInvalidChars}),s<i.length-1&&e.charData({charData:"]]>",replaceInvalidCharsInCharData:r.replaceInvalidChars});else e.charData({charData:t,replaceInvalidCharsInCharData:r.replaceInvalidChars});else e.text({charData:t,replaceInvalidCharsInCharData:r.replaceInvalidChars})}function Fv(t,e,r,n){var i=r.attribute({name:t,replaceInvalidCharsInName:n.replaceInvalidChars});kf((0,Y.stringify)(e),i,n)}function If(t,e,r,n){if(t===n.aliasString){r.name=(0,Y.stringify)(e);return}if(t.indexOf(n.attributeString)===0&&(0,Y.isObject)(e)){for(var i=0,s=Object.keys(e);i<s.length;i++){var o=s[i];Fv(o,(0,Y.stringify)(e[o]),r,n)}return}if(t.indexOf(n.valueString)===0){Ln(t,(0,Y.stringify)(e),r,n);return}var a=r;if(!(0,Y.isArray)(e)&&!(0,Y.isSet)(e)){var c=no(e,n);if(!(0,Y.isUndefined)(c)&&c(e)===ro.instance)return;a=r.element({name:t,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty})}Ln(t,e,a,n)}function kv(t,e,r){if((0,Y.isMap)(t))t.forEach(function(o,a){If((0,Y.stringify)(a),o,e,r)});else for(var n=0,i=Object.keys(t);n<i.length;n++){var s=i[n];If(s,t[s],e,r)}}function Tv(t,e,r,n){var i;Object.prototype.hasOwnProperty.call(n.wrapHandlers,"*")&&(i=n.wrapHandlers["*"]),Object.prototype.hasOwnProperty.call(n.wrapHandlers,t)&&(i=n.wrapHandlers[t]);var s=t,o=r;if(!(0,Y.isUndefined)(i)){var a=i(s,e);(0,Y.isNull)(a)||(s=a,o=r.element({name:t,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty}))}e.forEach(function(c){var d=o;if(!(0,Y.isArray)(c)&&!(0,Y.isSet)(c)){var u=no(c,n);if(!(0,Y.isUndefined)(u)&&u(c)===ro.instance)return;d=o.element({name:s,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty})}Ln(s,c,d,n)})}function Ln(t,e,r,n){var i=no(e,n);if((0,Y.isUndefined)(i)||(e=i(e)),(0,Y.isObject)(e)||(0,Y.isMap)(e)){kv(e,r,n);return}if((0,Y.isArray)(e)||(0,Y.isSet)(e)){Tv(t,e,r,n);return}kf((0,Y.stringify)(e),r,n)}function Tf(t,e,r){var n=new Ff.Options(r);Ln(t.name,e,t,n)}mt.parseToExistingElement=Tf;function Mv(t,e,r){var n=new Ff.Options(r),i=new Rf.XmlDocument({validation:n.validation});n.declaration.include&&i.decl(n.declaration),n.dtd.include&&i.dtd({name:n.dtd.name,pubId:n.dtd.pubId,sysId:n.dtd.sysId});var s=i.element({name:t,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty});return Tf(s,e,r),i.toString(n.format)}mt.parse=Mv});var io=y((H_,qf)=>{"use strict";qf.exports=function(e,r){return function(){for(var i=new Array(arguments.length),s=0;s<i.length;s++)i[s]=arguments[s];return e.apply(r,i)}}});var Se=y((W_,$f)=>{"use strict";var qv=io(),Ct=Object.prototype.toString;function ao(t){return Ct.call(t)==="[object Array]"}function so(t){return typeof t>"u"}function Nv(t){return t!==null&&!so(t)&&t.constructor!==null&&!so(t.constructor)&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function jv(t){return Ct.call(t)==="[object ArrayBuffer]"}function $v(t){return typeof FormData<"u"&&t instanceof FormData}function Lv(t){var e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&t.buffer instanceof ArrayBuffer,e}function Bv(t){return typeof t=="string"}function Uv(t){return typeof t=="number"}function Nf(t){return t!==null&&typeof t=="object"}function Bn(t){if(Ct.call(t)!=="[object Object]")return!1;var e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}function Xv(t){return Ct.call(t)==="[object Date]"}function Gv(t){return Ct.call(t)==="[object File]"}function Hv(t){return Ct.call(t)==="[object Blob]"}function jf(t){return Ct.call(t)==="[object Function]"}function Wv(t){return Nf(t)&&jf(t.pipe)}function Jv(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}function zv(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function Vv(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function co(t,e){if(!(t===null||typeof t>"u"))if(typeof t!="object"&&(t=[t]),ao(t))for(var r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}function oo(){var t={};function e(i,s){Bn(t[s])&&Bn(i)?t[s]=oo(t[s],i):Bn(i)?t[s]=oo({},i):ao(i)?t[s]=i.slice():t[s]=i}for(var r=0,n=arguments.length;r<n;r++)co(arguments[r],e);return t}function Yv(t,e,r){return co(e,function(i,s){r&&typeof i=="function"?t[s]=qv(i,r):t[s]=i}),t}function Kv(t){return t.charCodeAt(0)===65279&&(t=t.slice(1)),t}$f.exports={isArray:ao,isArrayBuffer:jv,isBuffer:Nv,isFormData:$v,isArrayBufferView:Lv,isString:Bv,isNumber:Uv,isObject:Nf,isPlainObject:Bn,isUndefined:so,isDate:Xv,isFile:Gv,isBlob:Hv,isFunction:jf,isStream:Wv,isURLSearchParams:Jv,isStandardBrowserEnv:Vv,forEach:co,merge:oo,extend:Yv,trim:zv,stripBOM:Kv}});var Un=y((J_,Bf)=>{"use strict";var Kt=Se();function Lf(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}Bf.exports=function(e,r,n){if(!r)return e;var i;if(n)i=n(r);else if(Kt.isURLSearchParams(r))i=r.toString();else{var s=[];Kt.forEach(r,function(c,d){c===null||typeof c>"u"||(Kt.isArray(c)?d=d+"[]":c=[c],Kt.forEach(c,function(h){Kt.isDate(h)?h=h.toISOString():Kt.isObject(h)&&(h=JSON.stringify(h)),s.push(Lf(d)+"="+Lf(h))}))}),i=s.join("&")}if(i){var o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}});var Xf=y((z_,Uf)=>{"use strict";var Qv=Se();function Xn(){this.handlers=[]}Xn.prototype.use=function(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};Xn.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)};Xn.prototype.forEach=function(e){Qv.forEach(this.handlers,function(n){n!==null&&e(n)})};Uf.exports=Xn});var Hf=y((V_,Gf)=>{"use strict";var Zv=Se();Gf.exports=function(e,r){Zv.forEach(e,function(i,s){s!==r&&s.toUpperCase()===r.toUpperCase()&&(e[r]=i,delete e[s])})}});var Gn=y((Y_,Wf)=>{"use strict";Wf.exports=function(e,r,n,i,s){return e.config=r,n&&(e.code=n),e.request=i,e.response=s,e.isAxiosError=!0,e.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}},e}});var Hn=y((K_,Jf)=>{"use strict";var e1=Gn();Jf.exports=function(e,r,n,i,s){var o=new Error(e);return e1(o,r,n,i,s)}});var uo=y((Q_,zf)=>{"use strict";var t1=Hn();zf.exports=function(e,r,n){var i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):r(t1("Request failed with status code "+n.status,n.config,null,n.request,n))}});var Yf=y((Z_,Vf)=>{"use strict";var Wn=Se();Vf.exports=Wn.isStandardBrowserEnv()?function(){return{write:function(r,n,i,s,o,a){var c=[];c.push(r+"="+encodeURIComponent(n)),Wn.isNumber(i)&&c.push("expires="+new Date(i).toGMTString()),Wn.isString(s)&&c.push("path="+s),Wn.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 Qf=y((ew,Kf)=>{"use strict";Kf.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}});var ed=y((tw,Zf)=>{"use strict";Zf.exports=function(e,r){return r?e.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):e}});var lo=y((rw,td)=>{"use strict";var r1=Qf(),n1=ed();td.exports=function(e,r){return e&&!r1(r)?n1(e,r):r}});var nd=y((nw,rd)=>{"use strict";var fo=Se(),i1=["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"];rd.exports=function(e){var r={},n,i,s;return e&&fo.forEach(e.split(`
|
|
19
|
-
`),function(a){if(s=a.indexOf(":"),n=fo.trim(a.substr(0,s)).toLowerCase(),i=fo.trim(a.substr(s+1)),n){if(r[n]&&i1.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 od=y((iw,sd)=>{"use strict";var id=Se();sd.exports=id.isStandardBrowserEnv()?function(){var e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),n;function i(s){var o=s;return e&&(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=id.isString(o)?i(o):o;return a.protocol===n.protocol&&a.host===n.host}}():function(){return function(){return!0}}()});var cd=y((sw,ad)=>{"use strict";var Jn=Se(),s1=uo(),o1=Yf(),a1=Un(),c1=lo(),u1=nd(),l1=od(),ho=Hn();ad.exports=function(e){return new Promise(function(n,i){var s=e.data,o=e.headers,a=e.responseType;Jn.isFormData(s)&&delete o["Content-Type"];var c=new XMLHttpRequest;if(e.auth){var d=e.auth.username||"",u=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.Authorization="Basic "+btoa(d+":"+u)}var h=c1(e.baseURL,e.url);c.open(e.method.toUpperCase(),a1(h,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function g(){if(c){var b="getAllResponseHeaders"in c?u1(c.getAllResponseHeaders()):null,x=!a||a==="text"||a==="json"?c.responseText:c.response,C={data:x,status:c.status,statusText:c.statusText,headers:b,config:e,request:c};s1(n,i,C),c=null}}if("onloadend"in c?c.onloadend=g:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(g)},c.onabort=function(){c&&(i(ho("Request aborted",e,"ECONNABORTED",c)),c=null)},c.onerror=function(){i(ho("Network Error",e,null,c)),c=null},c.ontimeout=function(){var x="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(x=e.timeoutErrorMessage),i(ho(x,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",c)),c=null},Jn.isStandardBrowserEnv()){var m=(e.withCredentials||l1(h))&&e.xsrfCookieName?o1.read(e.xsrfCookieName):void 0;m&&(o[e.xsrfHeaderName]=m)}"setRequestHeader"in c&&Jn.forEach(o,function(x,C){typeof s>"u"&&C.toLowerCase()==="content-type"?delete o[C]:c.setRequestHeader(C,x)}),Jn.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),a&&a!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",e.onDownloadProgress),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(x){c&&(c.abort(),i(x),c=null)}),s||(s=null),c.send(s)})}});var ld=y((ow,ud)=>{var Qt=1e3,Zt=Qt*60,er=Zt*60,Pt=er*24,f1=Pt*7,d1=Pt*365.25;ud.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return h1(t);if(r==="number"&&isFinite(t))return e.long?m1(t):p1(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function h1(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*d1;case"weeks":case"week":case"w":return r*f1;case"days":case"day":case"d":return r*Pt;case"hours":case"hour":case"hrs":case"hr":case"h":return r*er;case"minutes":case"minute":case"mins":case"min":case"m":return r*Zt;case"seconds":case"second":case"secs":case"sec":case"s":return r*Qt;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function p1(t){var e=Math.abs(t);return e>=Pt?Math.round(t/Pt)+"d":e>=er?Math.round(t/er)+"h":e>=Zt?Math.round(t/Zt)+"m":e>=Qt?Math.round(t/Qt)+"s":t+"ms"}function m1(t){var e=Math.abs(t);return e>=Pt?zn(t,e,Pt,"day"):e>=er?zn(t,e,er,"hour"):e>=Zt?zn(t,e,Zt,"minute"):e>=Qt?zn(t,e,Qt,"second"):t+" ms"}function zn(t,e,r,n){var i=e>=r*1.5;return Math.round(t/r)+" "+n+(i?"s":"")}});var po=y((aw,fd)=>{function g1(t){r.debug=r,r.default=r,r.coerce=c,r.disable=s,r.enable=i,r.enabled=o,r.humanize=ld(),r.destroy=d,Object.keys(t).forEach(u=>{r[u]=t[u]}),r.names=[],r.skips=[],r.formatters={};function e(u){let h=0;for(let g=0;g<u.length;g++)h=(h<<5)-h+u.charCodeAt(g),h|=0;return r.colors[Math.abs(h)%r.colors.length]}r.selectColor=e;function r(u){let h,g=null,m,b;function x(...C){if(!x.enabled)return;let F=x,N=Number(new Date),U=N-(h||N);F.diff=U,F.prev=h,F.curr=N,h=N,C[0]=r.coerce(C[0]),typeof C[0]!="string"&&C.unshift("%O");let $=0;C[0]=C[0].replace(/%([a-zA-Z%])/g,(Q,ue)=>{if(Q==="%%")return"%";$++;let V=r.formatters[ue];if(typeof V=="function"){let _=C[$];Q=V.call(F,_),C.splice($,1),$--}return Q}),r.formatArgs.call(F,C),(F.log||r.log).apply(F,C)}return x.namespace=u,x.useColors=r.useColors(),x.color=r.selectColor(u),x.extend=n,x.destroy=r.destroy,Object.defineProperty(x,"enabled",{enumerable:!0,configurable:!1,get:()=>g!==null?g:(m!==r.namespaces&&(m=r.namespaces,b=r.enabled(u)),b),set:C=>{g=C}}),typeof r.init=="function"&&r.init(x),x}function n(u,h){let g=r(this.namespace+(typeof h>"u"?":":h)+u);return g.log=this.log,g}function i(u){r.save(u),r.namespaces=u,r.names=[],r.skips=[];let h,g=(typeof u=="string"?u:"").split(/[\s,]+/),m=g.length;for(h=0;h<m;h++)g[h]&&(u=g[h].replace(/\*/g,".*?"),u[0]==="-"?r.skips.push(new RegExp("^"+u.slice(1)+"$")):r.names.push(new RegExp("^"+u+"$")))}function s(){let u=[...r.names.map(a),...r.skips.map(a).map(h=>"-"+h)].join(",");return r.enable(""),u}function o(u){if(u[u.length-1]==="*")return!0;let h,g;for(h=0,g=r.skips.length;h<g;h++)if(r.skips[h].test(u))return!1;for(h=0,g=r.names.length;h<g;h++)if(r.names[h].test(u))return!0;return!1}function a(u){return u.toString().substring(2,u.toString().length-2).replace(/\.\*\?$/,"*")}function c(u){return u instanceof Error?u.stack||u.message:u}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}fd.exports=g1});var dd=y((Fe,Vn)=>{Fe.formatArgs=v1;Fe.save=b1;Fe.load=_1;Fe.useColors=y1;Fe.storage=w1();Fe.destroy=(()=>{let t=!1;return()=>{t||(t=!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`."))}})();Fe.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 y1(){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 v1(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+Vn.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(r++,i==="%c"&&(n=r))}),t.splice(n,0,e)}Fe.log=console.debug||console.log||(()=>{});function b1(t){try{t?Fe.storage.setItem("debug",t):Fe.storage.removeItem("debug")}catch{}}function _1(){let t;try{t=Fe.storage.getItem("debug")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function w1(){try{return localStorage}catch{}}Vn.exports=po()(Fe);var{formatters:S1}=Vn.exports;S1.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var pd=y((ae,Kn)=>{var x1=require("tty"),Yn=require("util");ae.init=I1;ae.log=D1;ae.formatArgs=C1;ae.save=O1;ae.load=A1;ae.useColors=E1;ae.destroy=Yn.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");ae.colors=[6,2,3,4,5,1];try{let t=Bi();t&&(t.stderr||t).level>=2&&(ae.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{}ae.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(i,s)=>s.toUpperCase()),n=process.env[e];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),t[r]=n,t},{});function E1(){return"colors"in ae.inspectOpts?!!ae.inspectOpts.colors:x1.isatty(process.stderr.fd)}function C1(t){let{namespace:e,useColors:r}=this;if(r){let n=this.color,i="\x1B[3"+(n<8?n:"8;5;"+n),s=` ${i};1m${e} \x1B[0m`;t[0]=s+t[0].split(`
|
|
13
|
+
`,i)}while(n!==-1);return s+=t.substr(i),s};Yu.exports={stringReplaceAll:tg,stringEncaseCRLFWithFirstIndex:rg}});var rl=y((H2,tl)=>{"use strict";var ng=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Qu=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,ig=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,sg=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,og=new Map([["n",`
|
|
14
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function el(t){let e=t[0]==="u",r=t[1]==="{";return e&&!r&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):e&&r?String.fromCodePoint(parseInt(t.slice(2,-1),16)):og.get(t)||t}function ag(t,e){let r=[],n=e.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(ig))r.push(i[2].replace(sg,(a,c,d)=>c?el(c):d));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${t}')`)}return r}function cg(t){Qu.lastIndex=0;let e=[],r;for(;(r=Qu.exec(t))!==null;){let n=r[1];if(r[2]){let i=ag(n,r[2]);e.push([n].concat(i))}else e.push([n])}return e}function Zu(t,e){let r={};for(let i of e)for(let s of i.styles)r[s[0]]=i.inverse?null:s.slice(1);let n=t;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}tl.exports=(t,e)=>{let r=[],n=[],i=[];if(e.replace(ng,(s,o,a,c,d,u)=>{if(o)i.push(el(o));else if(c){let h=i.join("");i=[],n.push(r.length===0?h:Zu(t,r)(h)),r.push({inverse:a,styles:cg(c)})}else if(d){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(Zu(t,r)(i.join(""))),i=[],r.pop()}else i.push(u)}),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 ul=y((W2,cl)=>{"use strict";var vr=Hu(),{stdout:Xi,stderr:Gi}=Bi(),{stringReplaceAll:ug,stringEncaseCRLFWithFirstIndex:lg}=Ku(),{isArray:fn}=Array,il=["ansi","ansi","ansi256","ansi16m"],Ht=Object.create(null),fg=(t,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=Xi?Xi.level:0;t.level=e.level===void 0?r:e.level},Hi=class{constructor(e){return sl(e)}},sl=t=>{let e={};return fg(e,t),e.template=(...r)=>al(e.template,...r),Object.setPrototypeOf(e,dn.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},e.template.Instance=Hi,e.template};function dn(t){return sl(t)}for(let[t,e]of Object.entries(vr))Ht[t]={get(){let r=hn(this,Wi(e.open,e.close,this._styler),this._isEmpty);return Object.defineProperty(this,t,{value:r}),r}};Ht.visible={get(){let t=hn(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:t}),t}};var ol=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let t of ol)Ht[t]={get(){let{level:e}=this;return function(...r){let n=Wi(vr.color[il[e]][t](...r),vr.color.close,this._styler);return hn(this,n,this._isEmpty)}}};for(let t of ol){let e="bg"+t[0].toUpperCase()+t.slice(1);Ht[e]={get(){let{level:r}=this;return function(...n){let i=Wi(vr.bgColor[il[r]][t](...n),vr.bgColor.close,this._styler);return hn(this,i,this._isEmpty)}}}}var dg=Object.defineProperties(()=>{},{...Ht,level:{enumerable:!0,get(){return this._generator.level},set(t){this._generator.level=t}}}),Wi=(t,e,r)=>{let n,i;return r===void 0?(n=t,i=e):(n=r.openAll+t,i=e+r.closeAll),{open:t,close:e,openAll:n,closeAll:i,parent:r}},hn=(t,e,r)=>{let n=(...i)=>fn(i[0])&&fn(i[0].raw)?nl(n,al(n,...i)):nl(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,dg),n._generator=t,n._styler=e,n._isEmpty=r,n},nl=(t,e)=>{if(t.level<=0||!e)return t._isEmpty?"":e;let r=t._styler;if(r===void 0)return e;let{openAll:n,closeAll:i}=r;if(e.indexOf("\x1B")!==-1)for(;r!==void 0;)e=ug(e,r.close,r.open),r=r.parent;let s=e.indexOf(`
|
|
15
|
+
`);return s!==-1&&(e=lg(e,i,n,s)),n+e+i},Ui,al=(t,...e)=>{let[r]=e;if(!fn(r)||!fn(r.raw))return e.join(" ");let n=e.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 Ui===void 0&&(Ui=rl()),Ui(t,i.join(""))};Object.defineProperties(dn.prototype,Ht);var pn=dn();pn.supportsColor=Xi;pn.stderr=dn({level:Gi?Gi.level:0});pn.stderr.supportsColor=Gi;cl.exports=pn});var ll=y((Ji,zi)=>{(function(t,e){typeof Ji=="object"&&typeof zi<"u"?zi.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self,t.tinycolor=e())})(Ji,function(){"use strict";function t(l){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},t(l)}var e=/^\s+/,r=/\s+$/;function n(l,p){if(l=l||"",p=p||{},l instanceof n)return l;if(!(this instanceof n))return new n(l,p);var f=i(l);this._originalInput=l,this._r=f.r,this._g=f.g,this._b=f.b,this._a=f.a,this._roundA=Math.round(100*this._a)/100,this._format=p.format||f.format,this._gradientType=p.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=f.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 p=this.toRgb();return(p.r*299+p.g*587+p.b*114)/1e3},getLuminance:function(){var p=this.toRgb(),f,v,E,w,j,X;return f=p.r/255,v=p.g/255,E=p.b/255,f<=.03928?w=f/12.92:w=Math.pow((f+.055)/1.055,2.4),v<=.03928?j=v/12.92:j=Math.pow((v+.055)/1.055,2.4),E<=.03928?X=E/12.92:X=Math.pow((E+.055)/1.055,2.4),.2126*w+.7152*j+.0722*X},setAlpha:function(p){return this._a=G(p),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var p=c(this._r,this._g,this._b);return{h:p.h*360,s:p.s,v:p.v,a:this._a}},toHsvString:function(){var p=c(this._r,this._g,this._b),f=Math.round(p.h*360),v=Math.round(p.s*100),E=Math.round(p.v*100);return this._a==1?"hsv("+f+", "+v+"%, "+E+"%)":"hsva("+f+", "+v+"%, "+E+"%, "+this._roundA+")"},toHsl:function(){var p=o(this._r,this._g,this._b);return{h:p.h*360,s:p.s,l:p.l,a:this._a}},toHslString:function(){var p=o(this._r,this._g,this._b),f=Math.round(p.h*360),v=Math.round(p.s*100),E=Math.round(p.l*100);return this._a==1?"hsl("+f+", "+v+"%, "+E+"%)":"hsla("+f+", "+v+"%, "+E+"%, "+this._roundA+")"},toHex:function(p){return u(this._r,this._g,this._b,p)},toHexString:function(p){return"#"+this.toHex(p)},toHex8:function(p){return h(this._r,this._g,this._b,this._a,p)},toHex8String:function(p){return"#"+this.toHex8(p)},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(R(this._r,255)*100)+"%",g:Math.round(R(this._g,255)*100)+"%",b:Math.round(R(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(R(this._r,255)*100)+"%, "+Math.round(R(this._g,255)*100)+"%, "+Math.round(R(this._b,255)*100)+"%)":"rgba("+Math.round(R(this._r,255)*100)+"%, "+Math.round(R(this._g,255)*100)+"%, "+Math.round(R(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:S[u(this._r,this._g,this._b,!0)]||!1},toFilter:function(p){var f="#"+g(this._r,this._g,this._b,this._a),v=f,E=this._gradientType?"GradientType = 1, ":"";if(p){var w=n(p);v="#"+g(w._r,w._g,w._b,w._a)}return"progid:DXImageTransform.Microsoft.gradient("+E+"startColorstr="+f+",endColorstr="+v+")"},toString:function(p){var f=!!p;p=p||this._format;var v=!1,E=this._a<1&&this._a>=0,w=!f&&E&&(p==="hex"||p==="hex6"||p==="hex3"||p==="hex4"||p==="hex8"||p==="name");return w?p==="name"&&this._a===0?this.toName():this.toRgbString():(p==="rgb"&&(v=this.toRgbString()),p==="prgb"&&(v=this.toPercentageRgbString()),(p==="hex"||p==="hex6")&&(v=this.toHexString()),p==="hex3"&&(v=this.toHexString(!0)),p==="hex4"&&(v=this.toHex8String(!0)),p==="hex8"&&(v=this.toHex8String()),p==="name"&&(v=this.toName()),p==="hsl"&&(v=this.toHslString()),p==="hsv"&&(v=this.toHsvString()),v||this.toHexString())},clone:function(){return n(this.toString())},_applyModification:function(p,f){var v=p.apply(null,[this].concat([].slice.call(f)));return this._r=v._r,this._g=v._g,this._b=v._b,this.setAlpha(v._a),this},lighten:function(){return this._applyModification(C,arguments)},brighten:function(){return this._applyModification(F,arguments)},darken:function(){return this._applyModification(N,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(b,arguments)},greyscale:function(){return this._applyModification(x,arguments)},spin:function(){return this._applyModification(U,arguments)},_applyCombination:function(p,f){return p.apply(null,[this].concat([].slice.call(f)))},analogous:function(){return this._applyCombination(ue,arguments)},complement:function(){return this._applyCombination($,arguments)},monochromatic:function(){return this._applyCombination(V,arguments)},splitcomplement:function(){return this._applyCombination(Q,arguments)},triad:function(){return this._applyCombination(H,[3])},tetrad:function(){return this._applyCombination(H,[4])}},n.fromRatio=function(l,p){if(t(l)=="object"){var f={};for(var v in l)l.hasOwnProperty(v)&&(v==="a"?f[v]=l[v]:f[v]=M(l[v]));l=f}return n(l,p)};function i(l){var p={r:0,g:0,b:0},f=1,v=null,E=null,w=null,j=!1,X=!1;return typeof l=="string"&&(l=Rt(l)),t(l)=="object"&&(le(l.r)&&le(l.g)&&le(l.b)?(p=s(l.r,l.g,l.b),j=!0,X=String(l.r).substr(-1)==="%"?"prgb":"rgb"):le(l.h)&&le(l.s)&&le(l.v)?(v=M(l.s),E=M(l.v),p=d(l.h,v,E),j=!0,X="hsv"):le(l.h)&&le(l.s)&&le(l.l)&&(v=M(l.s),w=M(l.l),p=a(l.h,v,w),j=!0,X="hsl"),l.hasOwnProperty("a")&&(f=l.a)),f=G(f),{ok:j,format:l.format||X,r:Math.min(255,Math.max(p.r,0)),g:Math.min(255,Math.max(p.g,0)),b:Math.min(255,Math.max(p.b,0)),a:f}}function s(l,p,f){return{r:R(l,255)*255,g:R(p,255)*255,b:R(f,255)*255}}function o(l,p,f){l=R(l,255),p=R(p,255),f=R(f,255);var v=Math.max(l,p,f),E=Math.min(l,p,f),w,j,X=(v+E)/2;if(v==E)w=j=0;else{var J=v-E;switch(j=X>.5?J/(2-v-E):J/(v+E),v){case l:w=(p-f)/J+(p<f?6:0);break;case p:w=(f-l)/J+2;break;case f:w=(l-p)/J+4;break}w/=6}return{h:w,s:j,l:X}}function a(l,p,f){var v,E,w;l=R(l,360),p=R(p,100),f=R(f,100);function j(Ee,fe,je){return je<0&&(je+=1),je>1&&(je-=1),je<1/6?Ee+(fe-Ee)*6*je:je<1/2?fe:je<2/3?Ee+(fe-Ee)*(2/3-je)*6:Ee}if(p===0)v=E=w=f;else{var X=f<.5?f*(1+p):f+p-f*p,J=2*f-X;v=j(J,X,l+1/3),E=j(J,X,l),w=j(J,X,l-1/3)}return{r:v*255,g:E*255,b:w*255}}function c(l,p,f){l=R(l,255),p=R(p,255),f=R(f,255);var v=Math.max(l,p,f),E=Math.min(l,p,f),w,j,X=v,J=v-E;if(j=v===0?0:J/v,v==E)w=0;else{switch(v){case l:w=(p-f)/J+(p<f?6:0);break;case p:w=(f-l)/J+2;break;case f:w=(l-p)/J+4;break}w/=6}return{h:w,s:j,v:X}}function d(l,p,f){l=R(l,360)*6,p=R(p,100),f=R(f,100);var v=Math.floor(l),E=l-v,w=f*(1-p),j=f*(1-E*p),X=f*(1-(1-E)*p),J=v%6,Ee=[f,j,w,w,X,f][J],fe=[X,f,f,j,w,w][J],je=[w,w,X,f,f,j][J];return{r:Ee*255,g:fe*255,b:je*255}}function u(l,p,f,v){var E=[A(Math.round(l).toString(16)),A(Math.round(p).toString(16)),A(Math.round(f).toString(16))];return v&&E[0].charAt(0)==E[0].charAt(1)&&E[1].charAt(0)==E[1].charAt(1)&&E[2].charAt(0)==E[2].charAt(1)?E[0].charAt(0)+E[1].charAt(0)+E[2].charAt(0):E.join("")}function h(l,p,f,v,E){var w=[A(Math.round(l).toString(16)),A(Math.round(p).toString(16)),A(Math.round(f).toString(16)),A(Ne(v))];return E&&w[0].charAt(0)==w[0].charAt(1)&&w[1].charAt(0)==w[1].charAt(1)&&w[2].charAt(0)==w[2].charAt(1)&&w[3].charAt(0)==w[3].charAt(1)?w[0].charAt(0)+w[1].charAt(0)+w[2].charAt(0)+w[3].charAt(0):w.join("")}function g(l,p,f,v){var E=[A(Ne(v)),A(Math.round(l).toString(16)),A(Math.round(p).toString(16)),A(Math.round(f).toString(16))];return E.join("")}n.equals=function(l,p){return!l||!p?!1:n(l).toRgbString()==n(p).toRgbString()},n.random=function(){return n.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function m(l,p){p=p===0?0:p||10;var f=n(l).toHsl();return f.s-=p/100,f.s=L(f.s),n(f)}function b(l,p){p=p===0?0:p||10;var f=n(l).toHsl();return f.s+=p/100,f.s=L(f.s),n(f)}function x(l){return n(l).desaturate(100)}function C(l,p){p=p===0?0:p||10;var f=n(l).toHsl();return f.l+=p/100,f.l=L(f.l),n(f)}function F(l,p){p=p===0?0:p||10;var f=n(l).toRgb();return f.r=Math.max(0,Math.min(255,f.r-Math.round(255*-(p/100)))),f.g=Math.max(0,Math.min(255,f.g-Math.round(255*-(p/100)))),f.b=Math.max(0,Math.min(255,f.b-Math.round(255*-(p/100)))),n(f)}function N(l,p){p=p===0?0:p||10;var f=n(l).toHsl();return f.l-=p/100,f.l=L(f.l),n(f)}function U(l,p){var f=n(l).toHsl(),v=(f.h+p)%360;return f.h=v<0?360+v:v,n(f)}function $(l){var p=n(l).toHsl();return p.h=(p.h+180)%360,n(p)}function H(l,p){if(isNaN(p)||p<=0)throw new Error("Argument to polyad must be a positive number");for(var f=n(l).toHsl(),v=[n(l)],E=360/p,w=1;w<p;w++)v.push(n({h:(f.h+w*E)%360,s:f.s,l:f.l}));return v}function Q(l){var p=n(l).toHsl(),f=p.h;return[n(l),n({h:(f+72)%360,s:p.s,l:p.l}),n({h:(f+216)%360,s:p.s,l:p.l})]}function ue(l,p,f){p=p||6,f=f||30;var v=n(l).toHsl(),E=360/f,w=[n(l)];for(v.h=(v.h-(E*p>>1)+720)%360;--p;)v.h=(v.h+E)%360,w.push(n(v));return w}function V(l,p){p=p||6;for(var f=n(l).toHsv(),v=f.h,E=f.s,w=f.v,j=[],X=1/p;p--;)j.push(n({h:v,s:E,v:w})),w=(w+X)%1;return j}n.mix=function(l,p,f){f=f===0?0:f||50;var v=n(l).toRgb(),E=n(p).toRgb(),w=f/100,j={r:(E.r-v.r)*w+v.r,g:(E.g-v.g)*w+v.g,b:(E.b-v.b)*w+v.b,a:(E.a-v.a)*w+v.a};return n(j)},n.readability=function(l,p){var f=n(l),v=n(p);return(Math.max(f.getLuminance(),v.getLuminance())+.05)/(Math.min(f.getLuminance(),v.getLuminance())+.05)},n.isReadable=function(l,p,f){var v=n.readability(l,p),E,w;switch(w=!1,E=xe(f),E.level+E.size){case"AAsmall":case"AAAlarge":w=v>=4.5;break;case"AAlarge":w=v>=3;break;case"AAAsmall":w=v>=7;break}return w},n.mostReadable=function(l,p,f){var v=null,E=0,w,j,X,J;f=f||{},j=f.includeFallbackColors,X=f.level,J=f.size;for(var Ee=0;Ee<p.length;Ee++)w=n.readability(l,p[Ee]),w>E&&(E=w,v=n(p[Ee]));return n.isReadable(l,v,{level:X,size:J})||!j?v:(f.includeFallbackColors=!1,n.mostReadable(l,["#fff","#000"],f))};var _=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"},S=n.hexNames=P(_);function P(l){var p={};for(var f in l)l.hasOwnProperty(f)&&(p[l[f]]=f);return p}function G(l){return l=parseFloat(l),(isNaN(l)||l<0||l>1)&&(l=1),l}function R(l,p){B(l)&&(l="100%");var f=T(l);return l=Math.min(p,Math.max(0,parseFloat(l))),f&&(l=parseInt(l*p,10)/100),Math.abs(l-p)<1e-6?1:l%p/parseFloat(p)}function L(l){return Math.min(1,Math.max(0,l))}function I(l){return parseInt(l,16)}function B(l){return typeof l=="string"&&l.indexOf(".")!=-1&&parseFloat(l)===1}function T(l){return typeof l=="string"&&l.indexOf("%")!=-1}function A(l){return l.length==1?"0"+l:""+l}function M(l){return l<=1&&(l=l*100+"%"),l}function Ne(l){return Math.round(parseFloat(l)*255).toString(16)}function He(l){return I(l)/255}var ee=function(){var l="[-\\+]?\\d+%?",p="[-\\+]?\\d*\\.\\d+%?",f="(?:"+p+")|(?:"+l+")",v="[\\s|\\(]+("+f+")[,|\\s]+("+f+")[,|\\s]+("+f+")\\s*\\)?",E="[\\s|\\(]+("+f+")[,|\\s]+("+f+")[,|\\s]+("+f+")[,|\\s]+("+f+")\\s*\\)?";return{CSS_UNIT:new RegExp(f),rgb:new RegExp("rgb"+v),rgba:new RegExp("rgba"+E),hsl:new RegExp("hsl"+v),hsla:new RegExp("hsla"+E),hsv:new RegExp("hsv"+v),hsva:new RegExp("hsva"+E),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 le(l){return!!ee.CSS_UNIT.exec(l)}function Rt(l){l=l.replace(e,"").replace(r,"").toLowerCase();var p=!1;if(_[l])l=_[l],p=!0;else if(l=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var f;return(f=ee.rgb.exec(l))?{r:f[1],g:f[2],b:f[3]}:(f=ee.rgba.exec(l))?{r:f[1],g:f[2],b:f[3],a:f[4]}:(f=ee.hsl.exec(l))?{h:f[1],s:f[2],l:f[3]}:(f=ee.hsla.exec(l))?{h:f[1],s:f[2],l:f[3],a:f[4]}:(f=ee.hsv.exec(l))?{h:f[1],s:f[2],v:f[3]}:(f=ee.hsva.exec(l))?{h:f[1],s:f[2],v:f[3],a:f[4]}:(f=ee.hex8.exec(l))?{r:I(f[1]),g:I(f[2]),b:I(f[3]),a:He(f[4]),format:p?"name":"hex8"}:(f=ee.hex6.exec(l))?{r:I(f[1]),g:I(f[2]),b:I(f[3]),format:p?"name":"hex"}:(f=ee.hex4.exec(l))?{r:I(f[1]+""+f[1]),g:I(f[2]+""+f[2]),b:I(f[3]+""+f[3]),a:He(f[4]+""+f[4]),format:p?"name":"hex8"}:(f=ee.hex3.exec(l))?{r:I(f[1]+""+f[1]),g:I(f[2]+""+f[2]),b:I(f[3]+""+f[3]),format:p?"name":"hex"}:!1}function xe(l){var p,f;return l=l||{level:"AA",size:"small"},p=(l.level||"AA").toUpperCase(),f=(l.size||"small").toLowerCase(),p!=="AA"&&p!=="AAA"&&(p="AA"),f!=="small"&&f!=="large"&&(f="small"),{level:p,size:f}}return n})});var yl=y((J2,gl)=>{var br=ll(),pl={r:256,g:256,b:256,a:1},ml={h:360,s:1,v:1,a:1};function Yi(t,e,r){let n={};for(let i in t)t.hasOwnProperty(i)&&(n[i]=r===0?0:(e[i]-t[i])/r);return n}function Ki(t,e,r,n){let i={};for(let s in e)e.hasOwnProperty(s)&&(i[s]=t[s]*r+e[s],i[s]=i[s]<0?i[s]+n[s]:n[s]!==1?i[s]%n[s]:i[s]);return i}function Vi(t,e,r){let n=t.color.toRgb(),i=e.color.toRgb(),s=Yi(n,i,r),o=[t.color];for(let a=1;a<r;a++){let c=Ki(s,n,a,pl);o.push(br(c))}return o}function fl(t,e,r,n){let i=t.color.toHsv(),s=e.color.toHsv();if(i.s===0||s.s===0)return Vi(t,e,r);let o;if(typeof n=="boolean")o=n;else{let u=i.h<s.h&&s.h-i.h<180||i.h>s.h&&i.h-s.h>180;o=n==="long"&&u||n==="short"&&!u}let a=Yi(i,s,r),c=[t.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 u=1;u<r;u++){let h=Ki(a,i,u,ml);c.push(br(h))}return c}function dl(t,e){let r=t.length;if(e=parseInt(e,10),isNaN(e)||e<2)throw new Error("Invalid number of steps (< 2)");if(e<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=(e-1)*(t[s].pos-t[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!==e;)if(i<e){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 hl(t,e,r,n){if(e<0||e>1)throw new Error("Position must be between 0 and 1");let i,s;for(let c=0,d=t.length;c<d-1;c++)if(e>=t[c].pos&&e<t[c+1].pos){i=t[c],s=t[c+1];break}i||(i=s=t[t.length-1]);let o=Yi(i.color[r](),s.color[r](),(s.pos-i.pos)*100),a=Ki(o,i.color[r](),(e-i.pos)*100,n);return br(a)}var Wt=class{constructor(e){if(e.length<2)throw new Error("Invalid number of stops (< 2)");let r=e[0].pos!==void 0,n=e.length,i=-1,s=!1;this.stops=e.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?br(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:br(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 e=[];return this.stops.forEach(function(r){e.push({color:r.color,pos:1-r.pos})}),new Wt(e.reverse())}loop(){let e=[],r=[];return this.stops.forEach(n=>{e.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 Wt(e.concat(r.reverse()))}rgb(e){let r=dl(this.stops,e),n=[];this.stops.forEach((i,s)=>{i.colorLess&&(i.color=Vi(this.stops[s-1],this.stops[s+1],2)[1])});for(let i=0,s=this.stops.length;i<s-1;i++){let o=Vi(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(e,r){let n=dl(this.stops,e),i=[];this.stops.forEach((s,o)=>{s.colorLess&&(s.color=fl(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=fl(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(e,r){e=e||"linear",r=r||(e==="linear"?"to right":"ellipse at center");let n=e+"-gradient("+r;return this.stops.forEach(function(i){n+=", "+(i.colorLess?"":i.color.toRgbString()+" ")+i.pos*100+"%"}),n+=")",n}rgbAt(e){return hl(this.stops,e,"toRgb",pl)}hsvAt(e){return hl(this.stops,e,"toHsv",ml)}};gl.exports=function(t){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');t=arguments[0]}else t=Array.prototype.slice.call(arguments);return new Wt(t)}});var Sl=y((z2,mn)=>{"use strict";var bl=ul(),hg=yl(),vl=/\s/g;function Qi(...t){let e=hg.apply(this,t),r=(n,i)=>pg(n?n.toString():"",e,i);return r.multiline=(n,i)=>mg(n?n.toString():"",e,i),r}var _l=(t,e,r)=>e.interpolation.toLowerCase()==="hsv"?t.hsv(r,e.hsvSpin.toLowerCase()):t.rgb(r);function pg(t,e,r){let n=wl(r),i=Math.max(t.replace(vl,"").length,e.stops.length),s=_l(e,n,i),o="";for(let a of t)o+=a.match(vl)?a:bl.hex(s.shift().toHex())(a);return o}function mg(t,e,r){let n=wl(r),i=t.split(`
|
|
16
|
+
`),s=Math.max.apply(null,i.map(c=>c.length).concat([e.stops.length])),o=_l(e,n,s),a=[];for(let c of i){let d=o.slice(0),u="";for(let h of c)u+=bl.hex(d.shift().toHex())(h);a.push(u)}return a.join(`
|
|
17
|
+
`)}function wl(t){let e={interpolation:"rgb",hsvSpin:"short",...t};if(t!==void 0&&typeof t!="object")throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof t}\``);if(typeof e.interpolation!="string")throw new TypeError(`Expected \`options.interpolation\` to be a \`string\`, got \`${typeof e.interpolation}\``);if(e.interpolation.toLowerCase()==="hsv"&&typeof e.hsvSpin!="string")throw new TypeError(`Expected \`options.hsvSpin\` to be a \`string\`, got \`${typeof e.hsvSpin}\``);return e}var _r={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"}}};mn.exports=Qi;for(let t in _r)mn.exports[t]=e=>new Qi(_r[t].colors)(e,_r[t].options),mn.exports[t].multiline=e=>new Qi(_r[t].colors).multiline(e,_r[t].options)});var El=y((V2,xl)=>{var Zi=class{constructor(e){this.value=e,this.next=void 0}},es=class{constructor(){this.clear()}enqueue(e){let r=new Zi(e);this._head?(this._tail.next=r,this._tail=r):(this._head=r,this._tail=r),this._size++}dequeue(){let e=this._head;if(e)return this._head=this._head.next,this._size--,e.value}clear(){this._head=void 0,this._tail=void 0,this._size=0}get size(){return this._size}*[Symbol.iterator](){let e=this._head;for(;e;)yield e.value,e=e.next}};xl.exports=es});var ts=y((Y2,Cl)=>{"use strict";var gg=El(),yg=t=>{if(!((Number.isInteger(t)||t===1/0)&&t>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");let e=new gg,r=0,n=()=>{r--,e.size>0&&e.dequeue()()},i=async(a,c,...d)=>{r++;let u=(async()=>a(...d))();c(u);try{await u}catch{}n()},s=(a,c,...d)=>{e.enqueue(i.bind(null,a,c,...d)),(async()=>(await Promise.resolve(),r<t&&e.size>0&&e.dequeue()()))()},o=(a,...c)=>new Promise(d=>{s(a,d,...c)});return Object.defineProperties(o,{activeCount:{get:()=>r},pendingCount:{get:()=>e.size},clearQueue:{value:()=>{e.clear()}}}),o};Cl.exports=yg});var Ol=y((K2,Dl)=>{"use strict";var Pl=ts(),gn=class extends Error{constructor(e){super(),this.value=e}},vg=async(t,e)=>e(await t),bg=async t=>{let e=await Promise.all(t);if(e[1]===!0)throw new gn(e[0]);return!1},_g=async(t,e,r)=>{r={concurrency:1/0,preserveOrder:!0,...r};let n=Pl(r.concurrency),i=[...t].map(o=>[o,n(vg,o,e)]),s=Pl(r.preserveOrder?1:1/0);try{await Promise.all(i.map(o=>s(bg,o)))}catch(o){if(o instanceof gn)return o.value;throw o}};Dl.exports=_g});var Tl=y((Q2,rs)=>{"use strict";var Al=require("path"),yn=require("fs"),{promisify:Il}=require("util"),wg=Ol(),Sg=Il(yn.stat),xg=Il(yn.lstat),Rl={directory:"isDirectory",file:"isFile"};function Fl({type:t}){if(!(t in Rl))throw new Error(`Invalid type specified: ${t}`)}var kl=(t,e)=>t===void 0||e[Rl[t]]();rs.exports=async(t,e)=>{e={cwd:process.cwd(),type:"file",allowSymlinks:!0,...e},Fl(e);let r=e.allowSymlinks?Sg:xg;return wg(t,async n=>{try{let i=await r(Al.resolve(e.cwd,n));return kl(e.type,i)}catch{return!1}},e)};rs.exports.sync=(t,e)=>{e={cwd:process.cwd(),allowSymlinks:!0,type:"file",...e},Fl(e);let r=e.allowSymlinks?yn.statSync:yn.lstatSync;for(let n of t)try{let i=r(Al.resolve(e.cwd,n));if(kl(e.type,i))return n}catch{}}});var ql=y((Z2,ns)=>{"use strict";var Ml=require("fs"),{promisify:Eg}=require("util"),Cg=Eg(Ml.access);ns.exports=async t=>{try{return await Cg(t),!0}catch{return!1}};ns.exports.sync=t=>{try{return Ml.accessSync(t),!0}catch{return!1}}});var ss=y((e_,Jt)=>{"use strict";var lt=require("path"),vn=Tl(),Nl=ql(),is=Symbol("findUp.stop");Jt.exports=async(t,e={})=>{let r=lt.resolve(e.cwd||""),{root:n}=lt.parse(r),i=[].concat(t),s=async o=>{if(typeof t!="function")return vn(i,o);let a=await t(o.cwd);return typeof a=="string"?vn([a],o):a};for(;;){let o=await s({...e,cwd:r});if(o===is)return;if(o)return lt.resolve(r,o);if(r===n)return;r=lt.dirname(r)}};Jt.exports.sync=(t,e={})=>{let r=lt.resolve(e.cwd||""),{root:n}=lt.parse(r),i=[].concat(t),s=o=>{if(typeof t!="function")return vn.sync(i,o);let a=t(o.cwd);return typeof a=="string"?vn.sync([a],o):a};for(;;){let o=s({...e,cwd:r});if(o===is)return;if(o)return lt.resolve(r,o);if(r===n)return;r=lt.dirname(r)}};Jt.exports.exists=Nl;Jt.exports.sync.exists=Nl.sync;Jt.exports.stop=is});var wr=y((t_,os)=>{"use strict";var jl=require("path"),$l=ss(),Pg=async t=>{let e=await $l("package.json",{cwd:t});return e&&jl.dirname(e)};os.exports=Pg;os.exports.sync=t=>{let e=$l.sync("package.json",{cwd:t});return e&&jl.dirname(e)}});function _t(t=""){return Wl?ps.default.resolve(gs.default.sync(__dirname),"../../../",t):ps.default.resolve(gs.default.sync(__dirname),"../griddo-components",t)}function Ig(){let t=ms.default.sync("jsconfig.json",{cwd:_t()});return ms.default.sync("tsconfig.json",{cwd:_t()})||t}function Rg(){let t=require(Ig());return Object.keys(t?.compilerOptions?.paths).reduce((e,r)=>{let[n]=r.split("/"),[i]=t&&t.compilerOptions&&t.compilerOptions.paths&&t.compilerOptions.paths[r],[s]=i.split("/*"),o=_t(s);return{...e,[n]:o}},{components:`${_t()}/src/index.js`})}var ps,ms,gs,Wl,Ag,ys=zo(()=>{"use strict";ps=k(require("node:path")),ms=k(ss()),gs=k(wr()),Wl=__dirname.includes("node_modules"),Ag=Rg()});var Yl={};np(Yl,{CXDir:()=>jg,artifacts:()=>qg,default:()=>Ng});var zt,Sn,Jl,zl,Fg,kg,Tg,Mg,qg,Vl,Ng,jg,Kl=zo(()=>{"use strict";zt=k(require("node:path")),Sn=k(wr());ys();Jl=Sn.default.sync(zt.default.resolve(__dirname,"../..")),zl=Sn.default.sync(__dirname),Fg=Sn.default.sync(__dirname),kg=zt.default.resolve(zl,"caches"),Tg=_t(),Mg=zt.default.join(Jl,"exports/sites"),qg=["public",".cache","static"],Vl={proDomain:"pro-",CXDir:{EXPORTS:"__exports",CACHE:"__cache",CX:"__cx",SSG:"__ssg",COMPONENTS:"__components",ROOT:"__root"},dirs:t=>({__cache:zt.default.join(kg,t||""),__components:Tg,__cx:zl,__exports:zt.default.join(Mg,t||""),__root:Jl,__ssg:Fg})},Ng=Vl,jg=Vl.CXDir});var Z=y(Oe=>{"use strict";Object.defineProperty(Oe,"__esModule",{value:!0});Oe.isUndefined=Oe.fixName=Oe.validateName=Oe.validateSingleChar=Oe.fixChar=Oe.validateChar=void 0;function Wg(t){for(var e=0;e<t.length;e++){var r=t.charCodeAt(e);if(!(r===9||r===10||r===13||r>=32&&r<=55295||r>=57344&&r<=65533)){if(e+1===t.length)return!1;var n=t.charCodeAt(e+1);if(r>=55296&&r<=56319&&n>=56320&&n<=57343){e++;continue}return!1}}return!0}Oe.validateChar=Wg;function Jg(t){for(var e="",r=0;r<t.length;r++){var n=t.charCodeAt(r);if(n===9||n===10||n===13||n>=32&&n<=55295||n>=57344&&n<=65533){e+=t[r];continue}if(r+1===t.length)return e+="\uFFFD",e;var i=t.charCodeAt(r+1);if(n>=55296&&n<=56319&&i>=56320&&i<=57343){e+=t[r]+t[r+1],r++;continue}e+="\uFFFD"}return e}Oe.fixChar=Jg;function zg(t){if(t.length===0)return!1;var e=t.charCodeAt(0);if(t.length===1)return e===9||e===10||e===13||e>=32&&e<=55295||e>=57344&&e<=65533;if(t.length!==2)return!1;var r=t.charCodeAt(1);return e>=55296&&e<=56319&&r>=56320&&r<=57343}Oe.validateSingleChar=zg;function Vg(t){if(t.length===0)return!1;var e=t.charCodeAt(0),r=e===58||e===95||e>=65&&e<=90||e>=97&&e<=122||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533;if(t.length===1)return r;var n=t.charCodeAt(1),i=e>=55296&&e<=56191&&n>=56320&&n<=57343;if(!r&&!i)return!1;for(var s=i?2:1,o=s;o<t.length;o++){var a=t.charCodeAt(o);if(!(a===58||a===95||a===45||a===46||a===183||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122||a>=192&&a<=214||a>=216&&a<=246||a>=248&&a<=767||a>=768&&a<=879||a>=880&&a<=893||a>=895&&a<=8191||a>=8204&&a<=8205||a>=8255&&a<=8256||a>=8304&&a<=8591||a>=11264&&a<=12271||a>=12289&&a<=55295||a>=63744&&a<=64975||a>=65008&&a<=65533)){if(o+1===t.length)return!1;var c=t.charCodeAt(o+1);if(a>=55296&&a<=56191&&c>=56320&&c<=57343){o++;continue}return!1}}return!0}Oe.validateName=Vg;function Yg(t){var e="";if(t.length===0)return e;var r=t.charCodeAt(0),n=r===58||r===95||r>=65&&r<=90||r>=97&&r<=122||r>=192&&r<=214||r>=216&&r<=246||r>=248&&r<=767||r>=880&&r<=893||r>=895&&r<=8191||r>=8204&&r<=8205||r>=8304&&r<=8591||r>=11264&&r<=12271||r>=12289&&r<=55295||r>=63744&&r<=64975||r>=65008&&r<=65533;if(t.length===1)return n?e=t[0]:e="\uFFFD",e;var i=t.charCodeAt(1),s=r>=55296&&r<=56191&&i>=56320&&i<=57343;s?e=t[0]+t[1]:n?e=t[0]:e="\uFFFD";for(var o=s?2:1,a=o;a<t.length;a++){var c=t.charCodeAt(a);if(c===58||c===95||c===45||c===46||c===183||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||c>=192&&c<=214||c>=216&&c<=246||c>=248&&c<=767||c>=768&&c<=879||c>=880&&c<=893||c>=895&&c<=8191||c>=8204&&c<=8205||c>=8255&&c<=8256||c>=8304&&c<=8591||c>=11264&&c<=12271||c>=12289&&c<=55295||c>=63744&&c<=64975||c>=65008&&c<=65533){e+=t[a];continue}if(a+1===t.length)return e+="\uFFFD",e;var d=t.charCodeAt(a+1);if(c>=55296&&c<=56191&&d>=56320&&d<=57343){e+=t[a]+t[a+1],a++;continue}e+="\uFFFD"}return e}Oe.fixName=Yg;function Kg(t){return Object.prototype.toString.call(t)==="[object Undefined]"}Oe.isUndefined=Kg});var Vt=y(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.StringOptions=void 0;var Cn=Z(),Qg=function(){function t(e){this.doubleQuotes=!1,this.indent=" ",this.newline=`
|
|
18
|
+
`,this.pretty=!0,(0,Cn.isUndefined)(e.doubleQuotes)||(this.doubleQuotes=e.doubleQuotes),(0,Cn.isUndefined)(e.indent)||(this.indent=e.indent),(0,Cn.isUndefined)(e.newline)||(this.newline=e.newline),(0,Cn.isUndefined)(e.pretty)||(this.pretty=e.pretty)}return t}();Pn.StringOptions=Qg});var Dn=y(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.escapeDoubleQuotes=qe.escapeSingleQuotes=qe.escapeRightAngleBracketsInCdataTerminator=qe.escapeLeftAngleBrackets=qe.escapeAmpersands=void 0;function Zg(t){return t.replace(/&/g,"&")}qe.escapeAmpersands=Zg;function ey(t){return t.replace(/</g,"<")}qe.escapeLeftAngleBrackets=ey;function ty(t){return t.replace(/]]>/g,"]]>")}qe.escapeRightAngleBracketsInCdataTerminator=ty;function ry(t){return t.replace(/'/g,"'")}qe.escapeSingleQuotes=ry;function ny(t){return t.replace(/"/g,""")}qe.escapeDoubleQuotes=ny});var Cs=y(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});var iy=oe(),df=Dn(),xs=Z(),sy=function(){function t(e,r,n){this._validation=r,(0,xs.isUndefined)(n.replaceInvalidCharsInCharData)?this._replaceInvalidCharsInCharData=!1:this._replaceInvalidCharsInCharData=n.replaceInvalidCharsInCharData,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._replaceInvalidCharsInCharData)e=(0,xs.fixChar)(e);else if(this._validation&&!(0,xs.validateChar)(e))throw new Error((0,iy.getContext)(this.up())+": attribute text"+(' "'+e+'" should not contain characters not')+" allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){var e=this._charData;return e=(0,df.escapeAmpersands)(e),e=(0,df.escapeLeftAngleBrackets)(e),e},t.prototype.up=function(){return this._parent},t}();Es.default=sy});var On=y(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});var hf=oe(),pf=Z(),oy=function(){function t(e,r,n){this._hex=!1,this._validation=r,this._parent=e,this.char=n.char,(0,pf.isUndefined)(n.hex)||(this.hex=n.hex)}return Object.defineProperty(t.prototype,"char",{get:function(){return this._char},set:function(e){if(this._validation&&!(0,pf.validateSingleChar)(e))throw new Error((0,hf.getContext)(this.up())+": character reference"+(' "'+e+'" should reference a single character,')+" and this character should be allowed in XML");this._char=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hex",{get:function(){return this._hex},set:function(e){this._hex=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){var e;if(this._char.length===1)e=this._char.charCodeAt(0);else{var r=this._char.charCodeAt(0);if(r>=55296&&r<=56319&&this._char.length>1){var n=this._char.charCodeAt(1);if(n>=56320&&n<=57343)e=(r-55296)*1024+n-56320+65536;else throw new Error((0,hf.getContext)(this.up())+": character"+(' reference "'+this.char+'" should')+" reference a valid Unicode character")}else e=r}return this._hex?"&#x"+e.toString(16)+";":"&#"+e+";"},t.prototype.up=function(){return this._parent},t}();Ps.default=oy});var An=y(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});var ay=oe(),cy=Z(),uy=function(){function t(e,r,n){this._validation=r,this._parent=e,this.name=n.name}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){if(this._validation&&!(0,cy.validateName)(e))throw new Error((0,ay.getContext)(this.up())+": entity reference name"+(' "'+e+'" should not contain characters not')+" allowed in XML names");this._name=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"&"+this._name+";"},t.prototype.up=function(){return this._parent},t}();Ds.default=uy});var In=y(Sr=>{"use strict";var Is=Sr&&Sr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Sr,"__esModule",{value:!0});var Os=oe(),mf=Dn(),ly=Vt(),As=Z(),fy=Is(Cs()),dy=Is(On()),hy=Is(An()),py=function(){function t(e,r,n){this._validation=r,(0,As.isUndefined)(n.replaceInvalidCharsInName)?this._replaceInvalidCharsInName=!1:this._replaceInvalidCharsInName=n.replaceInvalidCharsInName,this._children=[],this._parent=e,this.name=n.name}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){if(this._replaceInvalidCharsInName){if(e=(0,As.fixName)(e),e.length===0)throw new Error((0,Os.getContext)(this.up())+": attribute name should not be empty")}else if(this._validation&&!(0,As.validateName)(e))throw e.length===0?new Error((0,Os.getContext)(this.up())+": attribute name should not be empty"):new Error((0,Os.getContext)(this.up())+": attribute name"+(' "'+e+'" should not contain characters not')+" allowed in XML names");this._name=e},enumerable:!1,configurable:!0}),t.prototype.charRef=function(e){var r=new dy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.entityRef=function(e){var r=new hy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.text=function(e){var r=new fy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.toString=function(e){e===void 0&&(e={});for(var r=new ly.StringOptions(e),n=r.doubleQuotes?'"':"'",i=this._name+"="+n,s=0,o=this._children;s<o.length;s++){var a=o[s];r.doubleQuotes?i+=(0,mf.escapeDoubleQuotes)(a.toString()):i+=(0,mf.escapeSingleQuotes)(a.toString())}return i+=n,i},t.prototype.up=function(){return this._parent},t}();Sr.default=py});var Fs=y(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});var my=oe(),gy=Z(),yy=function(){function t(e,r,n){this._validation=r,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._validation&&!(0,gy.validateChar)(e))throw new Error((0,my.getContext)(this.up())+": attribute-list"+(' declaration "'+e+'" should not contain')+" characters not allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<!ATTLIST "+this._charData+">"},t.prototype.up=function(){return this._parent},t}();Rs.default=yy});var Ts=y(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});var vy=oe(),by=Z(),_y=function(){function t(e,r,n){this._validation=r,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._validation&&!(0,by.validateChar)(e))throw new Error((0,vy.getContext)(this.up())+": element declaration"+(' "'+e+'" should not contain characters')+" not allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<!ELEMENT "+this._charData+">"},t.prototype.up=function(){return this._parent},t}();ks.default=_y});var qs=y(Ms=>{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});var wy=oe(),Sy=Z(),xy=function(){function t(e,r,n){this._validation=r,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._validation&&!(0,Sy.validateChar)(e))throw new Error((0,wy.getContext)(this.up())+": entity declaration"+(' "'+e+'" should not contain characters')+" not allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<!ENTITY "+this._charData+">"},t.prototype.up=function(){return this._parent},t}();Ms.default=xy});var js=y(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});var Ey=oe(),Cy=Z(),Py=function(){function t(e,r,n){this._validation=r,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._validation&&!(0,Cy.validateChar)(e))throw new Error((0,Ey.getContext)(this.up())+": notation declaration"+(' "'+e+'" should not contain characters')+" not allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<!NOTATION "+this._charData+">"},t.prototype.up=function(){return this._parent},t}();Ns.default=Py});var Ls=y($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});var Dy=oe(),Oy=Z(),Ay=function(){function t(e,r,n){this._validation=r,this._parent=e,this.name=n.name}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){if(this._validation&&!(0,Oy.validateName)(e))throw new Error((0,Dy.getContext)(this.up())+": parameter entity"+(' reference name "'+e+'" should not contain')+" characters not allowed in XML names");this._name=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"%"+this._name+";"},t.prototype.up=function(){return this._parent},t}();$s.default=Ay});var xr=y(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});var Rn=oe(),Fn=Z(),Iy=function(){function t(e,r,n){this._validation=r,this._parent=e,this.content=n.content,this.target=n.target}return Object.defineProperty(t.prototype,"content",{get:function(){return this._content},set:function(e){if(!(0,Fn.isUndefined)(e)){if(this._validation&&!(0,Fn.validateChar)(e))throw new Error((0,Rn.getContext)(this.up())+": processing"+(' instruction content "'+e+'" should')+" not contain characters not allowed in XML");if(this._validation&&e.indexOf("?>")!==-1)throw new Error((0,Rn.getContext)(this.up())+": processing"+(' instruction content "'+e+'" should')+" not contain the string '?>'")}this._content=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"target",{get:function(){return this._target},set:function(e){if(this._validation&&!(0,Fn.validateName)(e))throw new Error((0,Rn.getContext)(this.up())+": processing"+(' instruction target "'+e+'" should')+" not contain characters not allowed in XML names");if(this._validation&&e==="xml")throw new Error((0,Rn.getContext)(this.up())+": processing"+(' instruction target "'+e+'" should')+" not be the string 'xml'");this._target=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return(0,Fn.isUndefined)(this._content)?"<?"+this._target+"?>":"<?"+this._target+" "+this._content+"?>"},t.prototype.up=function(){return this._parent},t}();Bs.default=Iy});var kn=y(St=>{"use strict";var xt=St&&St.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(St,"__esModule",{value:!0});St.validatePubId=void 0;var ht=oe(),Ry=Vt(),We=Z(),Fy=xt(Er()),ky=xt(Fs()),Ty=xt(Ts()),My=xt(qs()),qy=xt(js()),Ny=xt(Ls()),jy=xt(xr()),$y=function(){function t(e,r,n){this._pubId=void 0,this._sysId=void 0,this._validation=r,this._children=[],this._parent=e,this.name=n.name,(0,We.isUndefined)(n.sysId)||(this.sysId=n.sysId),(0,We.isUndefined)(n.pubId)||(this.pubId=n.pubId)}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){if(this._validation&&!(0,We.validateName)(e))throw new Error((0,ht.getContext)(this.up())+': DTD name "'+e+'" should not contain characters not allowed in XML names');this._name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pubId",{get:function(){return this._pubId},set:function(e){if(!(0,We.isUndefined)(e)){if(this._validation&&!gf(e))throw new Error((0,ht.getContext)(this.up())+": DTD public"+(' identifier "'+e+'" should not contain')+" characters not allowed in public identifiers");if(this._validation&&(0,We.isUndefined)(this._sysId))throw new Error((0,ht.getContext)(this.up())+": DTD public"+(' identifier "'+e+'" should not be defined')+" if system identifier is undefined")}this._pubId=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sysId",{get:function(){return this._sysId},set:function(e){if(!(0,We.isUndefined)(e)){if(this._validation&&!(0,We.validateChar)(e))throw new Error((0,ht.getContext)(this.up())+": DTD system"+(' identifier "'+e+'" should not contain')+" characters not allowed in XML");if(this._validation&&e.indexOf("'")!==-1&&e.indexOf('"')!==-1)throw new Error((0,ht.getContext)(this.up())+": DTD system"+(' identifier "'+e+'" should not contain')+" both single quotes and double quotes")}this._sysId=e},enumerable:!1,configurable:!0}),t.prototype.attlist=function(e){var r=new ky.default(this,this._validation,e);return this._children.push(r),r},t.prototype.comment=function(e){var r=new Fy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.element=function(e){var r=new Ty.default(this,this._validation,e);return this._children.push(r),r},t.prototype.entity=function(e){var r=new My.default(this,this._validation,e);return this._children.push(r),r},t.prototype.notation=function(e){var r=new qy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.paramEntityRef=function(e){var r=new Ny.default(this,this._validation,e);return this._children.push(r),r},t.prototype.procInst=function(e){var r=new jy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.toString=function(e){e===void 0&&(e={});var r=new Ry.StringOptions(e),n="<!DOCTYPE "+this._name;if((0,We.isUndefined)(this._pubId))(0,We.isUndefined)(this._sysId)||(n+=" ",n=this.appendId("SYSTEM",this._sysId,n,r));else{if((0,We.isUndefined)(this._sysId))throw new Error((0,ht.getContext)(this.up())+": DTD system identifier is not undefined");n+=" ",n=this.appendId("PUBLIC",this._pubId,n,r),n=this.appendId("",this._sysId,n,r)}if(this._children.length!==0){n+=" [";for(var i=0,s=this._children;i<s.length;i++){var o=s[i];r.pretty&&(n+=r.newline+r.indent),n+=o.toString()}r.pretty&&(n+=r.newline),n+="]>"}else n+=">";return n},t.prototype.up=function(){return this._parent},t.prototype.appendId=function(e,r,n,i){if(n+=e+" ",i.doubleQuotes){if(this._validation&&r.indexOf('"')!==-1)throw new Error((0,ht.getContext)(this.up())+": doubleQuotes option inconsistent with DTD system identifier or public identifier");n+='"'+r+'"'}else{if(this._validation&&r.indexOf("'")!==-1)throw new Error((0,ht.getContext)(this)+": doubleQuotes option inconsistent with DTD system identifier or public identifier");n+="'"+r+"'"}return n},t}();St.default=$y;function gf(t){for(var e=0;e<t.length;e++){var r=t.charCodeAt(e);if(!(r===10||r===13||r===32||r===33||r>=35&&r<=37||r>=39&&r<=47||r>=48&&r<=57||r===58||r===59||r===61||r===63||r>=64&&r<=90||r===95||r>=97&&r<=122))return e+1===t.length,!1}return!0}St.validatePubId=gf});var Gs=y(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});var yf=oe(),Us=Z(),Ly=function(){function t(e,r,n){this._validation=r,(0,Us.isUndefined)(n.replaceInvalidCharsInCharData)?this._replaceInvalidCharsInCharData=!1:this._replaceInvalidCharsInCharData=n.replaceInvalidCharsInCharData,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._replaceInvalidCharsInCharData)e=(0,Us.fixChar)(e);else if(this._validation&&!(0,Us.validateChar)(e))throw new Error((0,yf.getContext)(this.up())+": CDATA section"+(' "'+e+'" should not contain characters')+" not allowed in XML");if(this._replaceInvalidCharsInCharData)e=e.replace("]]>","\uFFFD\uFFFD\uFFFD");else if(this._validation&&e.indexOf("]]>")!==-1)throw new Error((0,yf.getContext)(this.up())+": CDATA section"+(' "'+e+'" should not contain the string')+" ']]>'");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<![CDATA["+this._charData+"]]>"},t.prototype.up=function(){return this._parent},t}();Xs.default=Ly});var zs=y(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});var By=oe(),Hs=Dn(),Ws=Z(),Uy=function(){function t(e,r,n){this._validation=r,(0,Ws.isUndefined)(n.replaceInvalidCharsInCharData)?this._replaceInvalidCharsInCharData=!1:this._replaceInvalidCharsInCharData=n.replaceInvalidCharsInCharData,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._replaceInvalidCharsInCharData)e=(0,Ws.fixChar)(e);else if(this._validation&&!(0,Ws.validateChar)(e))throw new Error((0,By.getContext)(this.up())+": character data"+('"'+e+'" should not contain characters not')+" allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){var e=this._charData;return e=(0,Hs.escapeAmpersands)(e),e=(0,Hs.escapeLeftAngleBrackets)(e),e=(0,Hs.escapeRightAngleBracketsInCdataTerminator)(e),e},t.prototype.up=function(){return this._parent},t}();Js.default=Uy});var Nn=y(Dr=>{"use strict";var Et=Dr&&Dr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Dr,"__esModule",{value:!0});var Tn=oe(),Xy=Vt(),Cr=Z(),vf=Et(In()),Gy=Et(Gs()),Pr=Et(zs()),Mn=Et(On()),Hy=Et(Er()),qn=Et(An()),Wy=Et(xr()),Jy=function(){function t(e,r,n){this._validation=r,(0,Cr.isUndefined)(n.replaceInvalidCharsInName)?this._replaceInvalidCharsInName=!1:this._replaceInvalidCharsInName=n.replaceInvalidCharsInName,(0,Cr.isUndefined)(n.useSelfClosingTagIfEmpty)?this._useSelfClosingTagIfEmpty=!0:this._useSelfClosingTagIfEmpty=n.useSelfClosingTagIfEmpty,this._children=[],this._attributeNames=[],this._parent=e,this.name=n.name}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){if(this._replaceInvalidCharsInName){if(e=(0,Cr.fixName)(e),e.length===0)throw new Error((0,Tn.getContext)(this.up())+": element name should not be empty")}else if(this._validation&&!(0,Cr.validateName)(e))throw e.length===0?new Error((0,Tn.getContext)(this.up())+": element name should not be empty"):new Error((0,Tn.getContext)(this.up())+": element name"+(' "'+e+'" should not contain characters not')+" allowed in XML names");this._name=e},enumerable:!1,configurable:!0}),t.prototype.attribute=function(e){if(this._validation&&this._attributeNames.indexOf(e.name)!==-1)throw new Error((0,Tn.getContext)(this.up())+': element "'+this.name+'" already contains an attribute with the'+(' name "'+e.name+'"'));var r=new vf.default(this,this._validation,e);return this._children.push(r),this._attributeNames.push(e.name),r},t.prototype.cdata=function(e){var r=new Gy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.charData=function(e){var r=new Pr.default(this,this._validation,e);return this._children.push(r),r},t.prototype.charRef=function(e){var r=new Mn.default(this,this._validation,e);return this._children.push(r),r},t.prototype.comment=function(e){var r=new Hy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.element=function(e){var r=new t(this,this._validation,e);return this._children.push(r),r},t.prototype.entityRef=function(e){var r=new qn.default(this,this._validation,e);return this._children.push(r),r},t.prototype.procInst=function(e){var r=new Wy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.toString=function(e){return e===void 0&&(e={}),this.toStringWithIndent(e,"")},t.prototype.up=function(){return this._parent},t.prototype.toStringWithIndent=function(e,r){for(var n=new Xy.StringOptions(e),i=r+n.indent,s="<"+this._name,o=[],a=0,c=this._children;a<c.length;a++){var d=c[a];d instanceof vf.default?s+=" "+d.toString(e):o.push(d)}if(o.length>0){for(var u="",h=0;h<o.length;h++){var g=o[h],m="";g instanceof t?m+=g.toStringWithIndent(n,i):m+=g.toString();var b=h>0?o[h-1]:void 0;g instanceof Pr.default&&g.toString()===""||(n.pretty&&(this.allSameLineNodes(o)||h>0&&this.onSameLine(g,b)||(m=n.newline+i+m)),u+=m)}n.pretty&&(this.allSameLineNodes(o)||(u+=n.newline+r)),u.length===0&&this._useSelfClosingTagIfEmpty?s+="/>":s+=">"+u+"</"+this._name+">"}else this._useSelfClosingTagIfEmpty?s+="/>":s+="></"+this._name+">";return s},t.prototype.allSameLineNodes=function(e){for(var r=0,n=e;r<n.length;r++){var i=n[r];if(!(i instanceof Mn.default||i instanceof qn.default||i instanceof Pr.default))return!1}return!0},t.prototype.onSameLine=function(e,r){return(e instanceof Mn.default||e instanceof qn.default||e instanceof Pr.default)&&!(0,Cr.isUndefined)(r)&&(r instanceof Mn.default||r instanceof qn.default||r instanceof Pr.default)},t}();Dr.default=Jy});var oe=y(Yt=>{"use strict";var $n=Yt&&Yt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Yt,"__esModule",{value:!0});Yt.getContext=void 0;var zy=$n(In()),Vy=$n(Ln()),Yy=$n(kn()),Ky=$n(Nn());function jn(t){if(t instanceof zy.default)return jn(t.up())+(' > attribute "'+t.name+'"');if(t instanceof Vy.default)return"in XML document";if(t instanceof Yy.default)return jn(t.up())+" > DTD";if(t instanceof Ky.default)return jn(t.up())+(' > element "'+t.name+'"');throw new Error("Unrecognized object of type "+Object.prototype.toString.call(t))}Yt.getContext=jn});var Er=y(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});var Vs=oe(),Ys=Z(),Qy=function(){function t(e,r,n){this._validation=r,(0,Ys.isUndefined)(n.replaceInvalidCharsInCharData)?this._replaceInvalidCharsInCharData=!1:this._replaceInvalidCharsInCharData=n.replaceInvalidCharsInCharData,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._replaceInvalidCharsInCharData)e=(0,Ys.fixChar)(e);else if(this._validation&&!(0,Ys.validateChar)(e))throw new Error((0,Vs.getContext)(this.up())+": comment content"+(' "'+e+'" should not contain characters')+" not allowed in XML");if(this._replaceInvalidCharsInCharData)e=e.replace("--","\uFFFD\uFFFD");else if(this._validation&&e.indexOf("--")!==-1)throw new Error((0,Vs.getContext)(this.up())+": comment content"+(' "'+e+'" should not contain the string')+" '--'");if(this._replaceInvalidCharsInCharData)e.lastIndexOf("-")===e.length-1&&(e=e.substr(0,e.length-1)+"\uFFFD");else if(this._validation&&e.lastIndexOf("-")===e.length-1)throw new Error((0,Vs.getContext)(this.up())+": comment content"+(' "'+e+'" should not end with the string')+" '-'");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<!--"+this._charData+"-->"},t.prototype.up=function(){return this._parent},t}();Ks.default=Qy});var eo=y(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});var Qs=oe(),Zy=Vt(),Or=Z(),ev=function(){function t(e,r,n){this._version="1.0",this._validation=r,this._parent=e,this.encoding=n.encoding,this.standalone=n.standalone,(0,Or.isUndefined)(n.version)||(this.version=n.version)}return Object.defineProperty(t.prototype,"encoding",{get:function(){return this._encoding},set:function(e){if(this._validation&&!(0,Or.isUndefined)(e)&&!tv(e))throw new Error((0,Qs.getContext)(this.up())+": declaration"+(" encoding attribute "+e+" should be a")+" valid encoding");this._encoding=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"standalone",{get:function(){return this._standalone},set:function(e){if(this._validation&&!(0,Or.isUndefined)(e)&&e!=="yes"&&e!=="no")throw new Error((0,Qs.getContext)(this.up())+": declaration"+(" standalone attribute "+e+" should")+" be the string 'yes' or the string 'no'");this._standalone=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._version},set:function(e){if(this._validation&&!rv(e))throw new Error((0,Qs.getContext)(this.up())+": declaration version"+(" attribute "+e+" should be a valid XML")+" version");this._version=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(e){e===void 0&&(e={});var r=new Zy.StringOptions(e),n=r.doubleQuotes?'"':"'",i="<?xml version="+n+this._version+n;return(0,Or.isUndefined)(this._encoding)||(i+=" encoding="+n+this._encoding+n),(0,Or.isUndefined)(this._standalone)||(i+=" standalone="+n+this._standalone+n),i+="?>",i},t.prototype.up=function(){return this._parent},t}();Zs.default=ev;function tv(t){if(t.length===0)return!1;var e=t.charCodeAt(0);if(!(e>=65&&e<=90||e>=97&&e<=122))return!1;for(var r=1;r<t.length;r++){var n=t.charCodeAt(r);if(!(n===95||n===45||n===46||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122))return r+1===t.length,!1}return!0}function rv(t){for(var e=0;e<=9;e++)if(t==="1."+e)return!0;return!1}});var Ln=y(Ir=>{"use strict";var Rr=Ir&&Ir.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ir,"__esModule",{value:!0});var nv=Vt(),iv=Z(),sv=Rr(Er()),bf=Rr(eo()),_f=Rr(kn()),Ar=Rr(Nn()),ov=Rr(xr()),av=function(){function t(e){this._children=[],this._validation=(0,iv.isUndefined)(e.validation)?!0:e.validation}return t.prototype.comment=function(e){var r=new sv.default(this,this._validation,e);return this._children.push(r),r},t.prototype.decl=function(e){if(e===void 0&&(e={}),this._validation&&this._children.length!==0)throw new Error("in XML document: declaration must be the first child");var r=new bf.default(this,this._validation,e);return this._children.push(r),r},t.prototype.dtd=function(e){var r=this._children.filter(function(i){return i instanceof Ar.default});if(this._validation&&r.length!==0)throw new Error("in XML document: DTD must precede the root element");var n=new _f.default(this,this._validation,e);return this._children.push(n),n},t.prototype.element=function(e){var r=this._children.filter(function(i){return i instanceof Ar.default});if(this._validation&&r.length!==0)throw new Error("in XML document: only one root element is permitted");var n=new Ar.default(this,this._validation,e);return this._children.push(n),n},t.prototype.procInst=function(e){var r=new ov.default(this,this._validation,e);return this._children.push(r),r},t.prototype.toString=function(e){e===void 0&&(e={});var r=this._children.filter(function(d){return d instanceof Ar.default});if(this._validation&&r.length!==1)throw new Error("in XML document: no more than one root element is permitted");for(var n=new nv.StringOptions(e),i="",s=0,o=this._children;s<o.length;s++){var a=o[s];a instanceof bf.default||a instanceof _f.default||a instanceof Ar.default?i+=a.toString(e):i+=a.toString(),n.pretty&&(i+=n.newline)}var c=i.length-n.newline.length;return i.substr(c)===n.newline&&(i=i.substr(0,c)),i},t}();Ir.default=av});var wf=y(q=>{"use strict";var re=q&&q.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(q,"__esModule",{value:!0});q.document=q.XmlProcInst=q.XmlEntityRef=q.XmlElement=q.XmlDtdParamEntityRef=q.XmlDtdNotation=q.XmlDtdEntity=q.XmlDtdElement=q.XmlDtdAttlist=q.XmlDtd=q.XmlDocument=q.XmlDecl=q.XmlComment=q.XmlCharRef=q.XmlCharData=q.XmlCdata=q.XmlAttributeText=q.XmlAttribute=void 0;var cv=re(Ln()),uv=In();Object.defineProperty(q,"XmlAttribute",{enumerable:!0,get:function(){return re(uv).default}});var lv=Cs();Object.defineProperty(q,"XmlAttributeText",{enumerable:!0,get:function(){return re(lv).default}});var fv=Gs();Object.defineProperty(q,"XmlCdata",{enumerable:!0,get:function(){return re(fv).default}});var dv=zs();Object.defineProperty(q,"XmlCharData",{enumerable:!0,get:function(){return re(dv).default}});var hv=On();Object.defineProperty(q,"XmlCharRef",{enumerable:!0,get:function(){return re(hv).default}});var pv=Er();Object.defineProperty(q,"XmlComment",{enumerable:!0,get:function(){return re(pv).default}});var mv=eo();Object.defineProperty(q,"XmlDecl",{enumerable:!0,get:function(){return re(mv).default}});var gv=Ln();Object.defineProperty(q,"XmlDocument",{enumerable:!0,get:function(){return re(gv).default}});var yv=kn();Object.defineProperty(q,"XmlDtd",{enumerable:!0,get:function(){return re(yv).default}});var vv=Fs();Object.defineProperty(q,"XmlDtdAttlist",{enumerable:!0,get:function(){return re(vv).default}});var bv=Ts();Object.defineProperty(q,"XmlDtdElement",{enumerable:!0,get:function(){return re(bv).default}});var _v=qs();Object.defineProperty(q,"XmlDtdEntity",{enumerable:!0,get:function(){return re(_v).default}});var wv=js();Object.defineProperty(q,"XmlDtdNotation",{enumerable:!0,get:function(){return re(wv).default}});var Sv=Ls();Object.defineProperty(q,"XmlDtdParamEntityRef",{enumerable:!0,get:function(){return re(Sv).default}});var xv=Nn();Object.defineProperty(q,"XmlElement",{enumerable:!0,get:function(){return re(xv).default}});var Ev=An();Object.defineProperty(q,"XmlEntityRef",{enumerable:!0,get:function(){return re(Ev).default}});var Cv=xr();Object.defineProperty(q,"XmlProcInst",{enumerable:!0,get:function(){return re(Cv).default}});function Pv(t){return t===void 0&&(t={}),new cv.default(t)}q.document=Pv});var to=y(ne=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0});ne.stringify=ne.isMap=ne.isSet=ne.isFunction=ne.isArray=ne.isObject=ne.isNull=ne.isUndefined=void 0;function Sf(t){return Object.prototype.toString.call(t)==="[object Undefined]"}ne.isUndefined=Sf;function xf(t){return Object.prototype.toString.call(t)==="[object Null]"}ne.isNull=xf;function Dv(t){return Object.prototype.toString.call(t)==="[object Object]"}ne.isObject=Dv;function Ov(t){return Object.prototype.toString.call(t)==="[object Array]"}ne.isArray=Ov;function Ef(t){return Object.prototype.toString.call(t)==="[object Function]"}ne.isFunction=Ef;function Av(t){return Object.prototype.toString.call(t)==="[object Set]"}ne.isSet=Av;function Iv(t){return Object.prototype.toString.call(t)==="[object Map]"}ne.isMap=Iv;function Rv(t){return!Sf(t)&&!xf(t)&&Ef(t?.toString)&&(t=t.toString()),String(t)}ne.stringify=Rv});var If=y(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.WrapHandlers=Ae.TypeHandlers=Ae.FormatOptions=Ae.DtdOptions=Ae.DeclarationOptions=Ae.Options=void 0;var Ue=to(),Fv=function(){function t(e){e===void 0&&(e={}),this.aliasString="=",this.attributeString="@",this.cdataInvalidChars=!1,this.cdataKeys=[],this.replaceInvalidChars=!1,this.useSelfClosingTagIfEmpty=!0,this.validation=!0,this.valueString="#",(0,Ue.isUndefined)(e.validation)||(this.validation=e.validation),(0,Ue.isUndefined)(e.aliasString)||(this.aliasString=e.aliasString),(0,Ue.isUndefined)(e.attributeString)||(this.attributeString=e.attributeString),(0,Ue.isUndefined)(e.cdataInvalidChars)||(this.cdataInvalidChars=e.cdataInvalidChars),(0,Ue.isUndefined)(e.cdataKeys)||(this.cdataKeys=e.cdataKeys),this.declaration=new Cf(e.declaration),this.dtd=new Pf(this.validation,e.dtd),this.format=new Df(e.format),(0,Ue.isUndefined)(e.replaceInvalidChars)||(this.replaceInvalidChars=e.replaceInvalidChars),this.typeHandlers=new Of(e.typeHandlers),(0,Ue.isUndefined)(e.useSelfClosingTagIfEmpty)||(this.useSelfClosingTagIfEmpty=e.useSelfClosingTagIfEmpty),(0,Ue.isUndefined)(e.valueString)||(this.valueString=e.valueString),this.wrapHandlers=new Af(e.wrapHandlers)}return t}();Ae.Options=Fv;var Cf=function(){function t(e){e===void 0&&(e={}),this.include=!0,(0,Ue.isUndefined)(e.include)||(this.include=e.include),this.encoding=e.encoding,this.standalone=e.standalone,this.version=e.version}return t}();Ae.DeclarationOptions=Cf;var Pf=function(){function t(e,r){if(r===void 0&&(r={}),this.include=!1,(0,Ue.isUndefined)(r.include)||(this.include=r.include),e&&(0,Ue.isUndefined)(r.name)&&this.include)throw new Error("options.dtd.name should be defined if options.dtd.include is true");this.name=r.name,this.sysId=r.sysId,this.pubId=r.pubId}return t}();Ae.DtdOptions=Pf;var Df=function(){function t(e){e===void 0&&(e={}),this.doubleQuotes=e.doubleQuotes,this.indent=e.indent,this.newline=e.newline,this.pretty=e.pretty}return t}();Ae.FormatOptions=Df;var Of=function(){function t(e){e===void 0&&(e={});for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(this[r]=e[r])}return t}();Ae.TypeHandlers=Of;var Af=function(){function t(e){e===void 0&&(e={});for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(this[r]=e[r])}return t}();Ae.WrapHandlers=Af});var qf=y(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.parse=pt.parseToExistingElement=pt.Absent=void 0;var Ff=wf(),kf=If(),Y=to(),ro=function(){function t(){}return Object.defineProperty(t,"instance",{get:function(){return t._instance},enumerable:!1,configurable:!0}),t._instance=new t,t}();pt.Absent=ro;function no(t,e){var r=Object.prototype.toString.call(t),n;return Object.prototype.hasOwnProperty.call(e.typeHandlers,"*")&&(n=e.typeHandlers["*"]),Object.prototype.hasOwnProperty.call(e.typeHandlers,r)&&(n=e.typeHandlers[r]),n}function Tf(t,e,r){var n=function(o){return r.cdataInvalidChars&&(o.indexOf("<")!==-1||o.indexOf("&")!==-1)||r.cdataKeys.indexOf(e.name)!==-1||r.cdataKeys.indexOf("*")!==-1};if(e instanceof Ff.XmlElement)if(n(t))for(var i=t.split("]]>"),s=0;s<i.length;s++)n(i[s])?e.cdata({charData:i[s],replaceInvalidCharsInCharData:r.replaceInvalidChars}):e.charData({charData:i[s],replaceInvalidCharsInCharData:r.replaceInvalidChars}),s<i.length-1&&e.charData({charData:"]]>",replaceInvalidCharsInCharData:r.replaceInvalidChars});else e.charData({charData:t,replaceInvalidCharsInCharData:r.replaceInvalidChars});else e.text({charData:t,replaceInvalidCharsInCharData:r.replaceInvalidChars})}function kv(t,e,r,n){var i=r.attribute({name:t,replaceInvalidCharsInName:n.replaceInvalidChars});Tf((0,Y.stringify)(e),i,n)}function Rf(t,e,r,n){if(t===n.aliasString){r.name=(0,Y.stringify)(e);return}if(t.indexOf(n.attributeString)===0&&(0,Y.isObject)(e)){for(var i=0,s=Object.keys(e);i<s.length;i++){var o=s[i];kv(o,(0,Y.stringify)(e[o]),r,n)}return}if(t.indexOf(n.valueString)===0){Bn(t,(0,Y.stringify)(e),r,n);return}var a=r;if(!(0,Y.isArray)(e)&&!(0,Y.isSet)(e)){var c=no(e,n);if(!(0,Y.isUndefined)(c)&&c(e)===ro.instance)return;a=r.element({name:t,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty})}Bn(t,e,a,n)}function Tv(t,e,r){if((0,Y.isMap)(t))t.forEach(function(o,a){Rf((0,Y.stringify)(a),o,e,r)});else for(var n=0,i=Object.keys(t);n<i.length;n++){var s=i[n];Rf(s,t[s],e,r)}}function Mv(t,e,r,n){var i;Object.prototype.hasOwnProperty.call(n.wrapHandlers,"*")&&(i=n.wrapHandlers["*"]),Object.prototype.hasOwnProperty.call(n.wrapHandlers,t)&&(i=n.wrapHandlers[t]);var s=t,o=r;if(!(0,Y.isUndefined)(i)){var a=i(s,e);(0,Y.isNull)(a)||(s=a,o=r.element({name:t,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty}))}e.forEach(function(c){var d=o;if(!(0,Y.isArray)(c)&&!(0,Y.isSet)(c)){var u=no(c,n);if(!(0,Y.isUndefined)(u)&&u(c)===ro.instance)return;d=o.element({name:s,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty})}Bn(s,c,d,n)})}function Bn(t,e,r,n){var i=no(e,n);if((0,Y.isUndefined)(i)||(e=i(e)),(0,Y.isObject)(e)||(0,Y.isMap)(e)){Tv(e,r,n);return}if((0,Y.isArray)(e)||(0,Y.isSet)(e)){Mv(t,e,r,n);return}Tf((0,Y.stringify)(e),r,n)}function Mf(t,e,r){var n=new kf.Options(r);Bn(t.name,e,t,n)}pt.parseToExistingElement=Mf;function qv(t,e,r){var n=new kf.Options(r),i=new Ff.XmlDocument({validation:n.validation});n.declaration.include&&i.decl(n.declaration),n.dtd.include&&i.dtd({name:n.dtd.name,pubId:n.dtd.pubId,sysId:n.dtd.sysId});var s=i.element({name:t,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty});return Mf(s,e,r),i.toString(n.format)}pt.parse=qv});var io=y((W_,Nf)=>{"use strict";Nf.exports=function(e,r){return function(){for(var i=new Array(arguments.length),s=0;s<i.length;s++)i[s]=arguments[s];return e.apply(r,i)}}});var Se=y((J_,Lf)=>{"use strict";var Nv=io(),Ct=Object.prototype.toString;function ao(t){return Ct.call(t)==="[object Array]"}function so(t){return typeof t>"u"}function jv(t){return t!==null&&!so(t)&&t.constructor!==null&&!so(t.constructor)&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function $v(t){return Ct.call(t)==="[object ArrayBuffer]"}function Lv(t){return typeof FormData<"u"&&t instanceof FormData}function Bv(t){var e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&t.buffer instanceof ArrayBuffer,e}function Uv(t){return typeof t=="string"}function Xv(t){return typeof t=="number"}function jf(t){return t!==null&&typeof t=="object"}function Un(t){if(Ct.call(t)!=="[object Object]")return!1;var e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}function Gv(t){return Ct.call(t)==="[object Date]"}function Hv(t){return Ct.call(t)==="[object File]"}function Wv(t){return Ct.call(t)==="[object Blob]"}function $f(t){return Ct.call(t)==="[object Function]"}function Jv(t){return jf(t)&&$f(t.pipe)}function zv(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}function Vv(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function Yv(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function co(t,e){if(!(t===null||typeof t>"u"))if(typeof t!="object"&&(t=[t]),ao(t))for(var r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}function oo(){var t={};function e(i,s){Un(t[s])&&Un(i)?t[s]=oo(t[s],i):Un(i)?t[s]=oo({},i):ao(i)?t[s]=i.slice():t[s]=i}for(var r=0,n=arguments.length;r<n;r++)co(arguments[r],e);return t}function Kv(t,e,r){return co(e,function(i,s){r&&typeof i=="function"?t[s]=Nv(i,r):t[s]=i}),t}function Qv(t){return t.charCodeAt(0)===65279&&(t=t.slice(1)),t}Lf.exports={isArray:ao,isArrayBuffer:$v,isBuffer:jv,isFormData:Lv,isArrayBufferView:Bv,isString:Uv,isNumber:Xv,isObject:jf,isPlainObject:Un,isUndefined:so,isDate:Gv,isFile:Hv,isBlob:Wv,isFunction:$f,isStream:Jv,isURLSearchParams:zv,isStandardBrowserEnv:Yv,forEach:co,merge:oo,extend:Kv,trim:Vv,stripBOM:Qv}});var Xn=y((z_,Uf)=>{"use strict";var Kt=Se();function Bf(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}Uf.exports=function(e,r,n){if(!r)return e;var i;if(n)i=n(r);else if(Kt.isURLSearchParams(r))i=r.toString();else{var s=[];Kt.forEach(r,function(c,d){c===null||typeof c>"u"||(Kt.isArray(c)?d=d+"[]":c=[c],Kt.forEach(c,function(h){Kt.isDate(h)?h=h.toISOString():Kt.isObject(h)&&(h=JSON.stringify(h)),s.push(Bf(d)+"="+Bf(h))}))}),i=s.join("&")}if(i){var o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}});var Gf=y((V_,Xf)=>{"use strict";var Zv=Se();function Gn(){this.handlers=[]}Gn.prototype.use=function(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};Gn.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)};Gn.prototype.forEach=function(e){Zv.forEach(this.handlers,function(n){n!==null&&e(n)})};Xf.exports=Gn});var Wf=y((Y_,Hf)=>{"use strict";var e1=Se();Hf.exports=function(e,r){e1.forEach(e,function(i,s){s!==r&&s.toUpperCase()===r.toUpperCase()&&(e[r]=i,delete e[s])})}});var Hn=y((K_,Jf)=>{"use strict";Jf.exports=function(e,r,n,i,s){return e.config=r,n&&(e.code=n),e.request=i,e.response=s,e.isAxiosError=!0,e.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}},e}});var Wn=y((Q_,zf)=>{"use strict";var t1=Hn();zf.exports=function(e,r,n,i,s){var o=new Error(e);return t1(o,r,n,i,s)}});var uo=y((Z_,Vf)=>{"use strict";var r1=Wn();Vf.exports=function(e,r,n){var i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):r(r1("Request failed with status code "+n.status,n.config,null,n.request,n))}});var Kf=y((ew,Yf)=>{"use strict";var Jn=Se();Yf.exports=Jn.isStandardBrowserEnv()?function(){return{write:function(r,n,i,s,o,a){var c=[];c.push(r+"="+encodeURIComponent(n)),Jn.isNumber(i)&&c.push("expires="+new Date(i).toGMTString()),Jn.isString(s)&&c.push("path="+s),Jn.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 Zf=y((tw,Qf)=>{"use strict";Qf.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}});var td=y((rw,ed)=>{"use strict";ed.exports=function(e,r){return r?e.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):e}});var lo=y((nw,rd)=>{"use strict";var n1=Zf(),i1=td();rd.exports=function(e,r){return e&&!n1(r)?i1(e,r):r}});var id=y((iw,nd)=>{"use strict";var fo=Se(),s1=["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"];nd.exports=function(e){var r={},n,i,s;return e&&fo.forEach(e.split(`
|
|
19
|
+
`),function(a){if(s=a.indexOf(":"),n=fo.trim(a.substr(0,s)).toLowerCase(),i=fo.trim(a.substr(s+1)),n){if(r[n]&&s1.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 ad=y((sw,od)=>{"use strict";var sd=Se();od.exports=sd.isStandardBrowserEnv()?function(){var e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),n;function i(s){var o=s;return e&&(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=sd.isString(o)?i(o):o;return a.protocol===n.protocol&&a.host===n.host}}():function(){return function(){return!0}}()});var ud=y((ow,cd)=>{"use strict";var zn=Se(),o1=uo(),a1=Kf(),c1=Xn(),u1=lo(),l1=id(),f1=ad(),ho=Wn();cd.exports=function(e){return new Promise(function(n,i){var s=e.data,o=e.headers,a=e.responseType;zn.isFormData(s)&&delete o["Content-Type"];var c=new XMLHttpRequest;if(e.auth){var d=e.auth.username||"",u=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.Authorization="Basic "+btoa(d+":"+u)}var h=u1(e.baseURL,e.url);c.open(e.method.toUpperCase(),c1(h,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function g(){if(c){var b="getAllResponseHeaders"in c?l1(c.getAllResponseHeaders()):null,x=!a||a==="text"||a==="json"?c.responseText:c.response,C={data:x,status:c.status,statusText:c.statusText,headers:b,config:e,request:c};o1(n,i,C),c=null}}if("onloadend"in c?c.onloadend=g:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(g)},c.onabort=function(){c&&(i(ho("Request aborted",e,"ECONNABORTED",c)),c=null)},c.onerror=function(){i(ho("Network Error",e,null,c)),c=null},c.ontimeout=function(){var x="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(x=e.timeoutErrorMessage),i(ho(x,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",c)),c=null},zn.isStandardBrowserEnv()){var m=(e.withCredentials||f1(h))&&e.xsrfCookieName?a1.read(e.xsrfCookieName):void 0;m&&(o[e.xsrfHeaderName]=m)}"setRequestHeader"in c&&zn.forEach(o,function(x,C){typeof s>"u"&&C.toLowerCase()==="content-type"?delete o[C]:c.setRequestHeader(C,x)}),zn.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),a&&a!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",e.onDownloadProgress),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(x){c&&(c.abort(),i(x),c=null)}),s||(s=null),c.send(s)})}});var fd=y((aw,ld)=>{var Qt=1e3,Zt=Qt*60,er=Zt*60,Pt=er*24,d1=Pt*7,h1=Pt*365.25;ld.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return p1(t);if(r==="number"&&isFinite(t))return e.long?g1(t):m1(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function p1(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*h1;case"weeks":case"week":case"w":return r*d1;case"days":case"day":case"d":return r*Pt;case"hours":case"hour":case"hrs":case"hr":case"h":return r*er;case"minutes":case"minute":case"mins":case"min":case"m":return r*Zt;case"seconds":case"second":case"secs":case"sec":case"s":return r*Qt;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function m1(t){var e=Math.abs(t);return e>=Pt?Math.round(t/Pt)+"d":e>=er?Math.round(t/er)+"h":e>=Zt?Math.round(t/Zt)+"m":e>=Qt?Math.round(t/Qt)+"s":t+"ms"}function g1(t){var e=Math.abs(t);return e>=Pt?Vn(t,e,Pt,"day"):e>=er?Vn(t,e,er,"hour"):e>=Zt?Vn(t,e,Zt,"minute"):e>=Qt?Vn(t,e,Qt,"second"):t+" ms"}function Vn(t,e,r,n){var i=e>=r*1.5;return Math.round(t/r)+" "+n+(i?"s":"")}});var po=y((cw,dd)=>{function y1(t){r.debug=r,r.default=r,r.coerce=c,r.disable=s,r.enable=i,r.enabled=o,r.humanize=fd(),r.destroy=d,Object.keys(t).forEach(u=>{r[u]=t[u]}),r.names=[],r.skips=[],r.formatters={};function e(u){let h=0;for(let g=0;g<u.length;g++)h=(h<<5)-h+u.charCodeAt(g),h|=0;return r.colors[Math.abs(h)%r.colors.length]}r.selectColor=e;function r(u){let h,g=null,m,b;function x(...C){if(!x.enabled)return;let F=x,N=Number(new Date),U=N-(h||N);F.diff=U,F.prev=h,F.curr=N,h=N,C[0]=r.coerce(C[0]),typeof C[0]!="string"&&C.unshift("%O");let $=0;C[0]=C[0].replace(/%([a-zA-Z%])/g,(Q,ue)=>{if(Q==="%%")return"%";$++;let V=r.formatters[ue];if(typeof V=="function"){let _=C[$];Q=V.call(F,_),C.splice($,1),$--}return Q}),r.formatArgs.call(F,C),(F.log||r.log).apply(F,C)}return x.namespace=u,x.useColors=r.useColors(),x.color=r.selectColor(u),x.extend=n,x.destroy=r.destroy,Object.defineProperty(x,"enabled",{enumerable:!0,configurable:!1,get:()=>g!==null?g:(m!==r.namespaces&&(m=r.namespaces,b=r.enabled(u)),b),set:C=>{g=C}}),typeof r.init=="function"&&r.init(x),x}function n(u,h){let g=r(this.namespace+(typeof h>"u"?":":h)+u);return g.log=this.log,g}function i(u){r.save(u),r.namespaces=u,r.names=[],r.skips=[];let h,g=(typeof u=="string"?u:"").split(/[\s,]+/),m=g.length;for(h=0;h<m;h++)g[h]&&(u=g[h].replace(/\*/g,".*?"),u[0]==="-"?r.skips.push(new RegExp("^"+u.slice(1)+"$")):r.names.push(new RegExp("^"+u+"$")))}function s(){let u=[...r.names.map(a),...r.skips.map(a).map(h=>"-"+h)].join(",");return r.enable(""),u}function o(u){if(u[u.length-1]==="*")return!0;let h,g;for(h=0,g=r.skips.length;h<g;h++)if(r.skips[h].test(u))return!1;for(h=0,g=r.names.length;h<g;h++)if(r.names[h].test(u))return!0;return!1}function a(u){return u.toString().substring(2,u.toString().length-2).replace(/\.\*\?$/,"*")}function c(u){return u instanceof Error?u.stack||u.message:u}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}dd.exports=y1});var hd=y((Fe,Yn)=>{Fe.formatArgs=b1;Fe.save=_1;Fe.load=w1;Fe.useColors=v1;Fe.storage=S1();Fe.destroy=(()=>{let t=!1;return()=>{t||(t=!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`."))}})();Fe.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 v1(){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 b1(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+Yn.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(r++,i==="%c"&&(n=r))}),t.splice(n,0,e)}Fe.log=console.debug||console.log||(()=>{});function _1(t){try{t?Fe.storage.setItem("debug",t):Fe.storage.removeItem("debug")}catch{}}function w1(){let t;try{t=Fe.storage.getItem("debug")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function S1(){try{return localStorage}catch{}}Yn.exports=po()(Fe);var{formatters:x1}=Yn.exports;x1.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var md=y((ae,Qn)=>{var E1=require("tty"),Kn=require("util");ae.init=R1;ae.log=O1;ae.formatArgs=P1;ae.save=A1;ae.load=I1;ae.useColors=C1;ae.destroy=Kn.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");ae.colors=[6,2,3,4,5,1];try{let t=Bi();t&&(t.stderr||t).level>=2&&(ae.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{}ae.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(i,s)=>s.toUpperCase()),n=process.env[e];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),t[r]=n,t},{});function C1(){return"colors"in ae.inspectOpts?!!ae.inspectOpts.colors:E1.isatty(process.stderr.fd)}function P1(t){let{namespace:e,useColors:r}=this;if(r){let n=this.color,i="\x1B[3"+(n<8?n:"8;5;"+n),s=` ${i};1m${e} \x1B[0m`;t[0]=s+t[0].split(`
|
|
20
20
|
`).join(`
|
|
21
|
-
`+s),t.push(i+"m+"+
|
|
22
|
-
`)}function
|
|
23
|
-
`).map(e=>e.trim()).join(" ")};hd.O=function(t){return this.inspectOpts.colors=this.useColors,Yn.inspect(t,this.inspectOpts)}});var md=y((cw,mo)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?mo.exports=dd():mo.exports=pd()});var yd=y((uw,gd)=>{var Fr;gd.exports=function(){if(!Fr){try{Fr=md()("follow-redirects")}catch{}typeof Fr!="function"&&(Fr=function(){})}Fr.apply(null,arguments)}});var wo=y((lw,_o)=>{var Dt=require("url"),go=Dt.URL,R1=require("http"),F1=require("https"),_d=require("stream").Writable,wd=require("assert"),Sd=yd(),vo=["abort","aborted","connect","error","socket","timeout"],bo=Object.create(null);vo.forEach(function(t){bo[t]=function(e,r,n){this._redirectable.emit(t,e,r,n)}});var k1=Tr("ERR_INVALID_URL","Invalid URL",TypeError),vd=Tr("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),T1=Tr("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),M1=Tr("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),q1=Tr("ERR_STREAM_WRITE_AFTER_END","write after end");function ke(t,e){_d.call(this),this._sanitizeOptions(t),this._options=t,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],e&&this.on("response",e);var r=this;this._onNativeResponse=function(n){r._processResponse(n)},this._performRequest()}ke.prototype=Object.create(_d.prototype);ke.prototype.abort=function(){Ed(this._currentRequest),this.emit("abort")};ke.prototype.write=function(t,e,r){if(this._ending)throw new q1;if(!Ot(t)&&!$1(t))throw new TypeError("data should be a string, Buffer or Uint8Array");if(kr(e)&&(r=e,e=null),t.length===0){r&&r();return}this._requestBodyLength+t.length<=this._options.maxBodyLength?(this._requestBodyLength+=t.length,this._requestBodyBuffers.push({data:t,encoding:e}),this._currentRequest.write(t,e,r)):(this.emit("error",new M1),this.abort())};ke.prototype.end=function(t,e,r){if(kr(t)?(r=t,t=e=null):kr(e)&&(r=e,e=null),!t)this._ended=this._ending=!0,this._currentRequest.end(null,null,r);else{var n=this,i=this._currentRequest;this.write(t,e,function(){n._ended=!0,i.end(null,null,r)}),this._ending=!0}};ke.prototype.setHeader=function(t,e){this._options.headers[t]=e,this._currentRequest.setHeader(t,e)};ke.prototype.removeHeader=function(t){delete this._options.headers[t],this._currentRequest.removeHeader(t)};ke.prototype.setTimeout=function(t,e){var r=this;function n(o){o.setTimeout(t),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()},t),n(o)}function s(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",s),r.removeListener("error",s),r.removeListener("response",s),e&&r.removeListener("timeout",e),r.socket||r._currentRequest.removeListener("socket",i)}return e&&this.on("timeout",e),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(t){ke.prototype[t]=function(e,r){return this._currentRequest[t](e,r)}});["aborted","connection","socket"].forEach(function(t){Object.defineProperty(ke.prototype,t,{get:function(){return this._currentRequest[t]}})});ke.prototype._sanitizeOptions=function(t){if(t.headers||(t.headers={}),t.host&&(t.hostname||(t.hostname=t.host),delete t.host),!t.pathname&&t.path){var e=t.path.indexOf("?");e<0?t.pathname=t.path:(t.pathname=t.path.substring(0,e),t.search=t.path.substring(e))}};ke.prototype._performRequest=function(){var t=this._options.protocol,e=this._options.nativeProtocols[t];if(!e){this.emit("error",new TypeError("Unsupported protocol "+t));return}if(this._options.agents){var r=t.slice(0,-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=e.request(this._options,this._onNativeResponse);n._redirectable=this;for(var i of vo)n.on(i,bo[i]);if(this._currentUrl=/^\//.test(this._options.path)?Dt.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 u=a[s++];n.finished||n.write(u.data,u.encoding,c)}else o._ended&&n.end()})()}};ke.prototype._processResponse=function(t){var e=t.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:t.headers,statusCode:e});var r=t.headers.location;if(!r||this._options.followRedirects===!1||e<300||e>=400){t.responseUrl=this._currentUrl,t.redirects=this._redirects,this.emit("response",t),this._requestBodyBuffers=[];return}if(Ed(this._currentRequest),t.destroy(),++this._redirectCount>this._options.maxRedirects){this.emit("error",new T1);return}var n,i=this._options.beforeRedirect;i&&(n=Object.assign({Host:t.req.getHeader("host")},this._options.headers));var s=this._options.method;((e===301||e===302)&&this._options.method==="POST"||e===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],yo(/^content-/i,this._options.headers));var o=yo(/^host$/i,this._options.headers),a=Dt.parse(this._currentUrl),c=o||a.host,d=/^\w+:/.test(r)?this._currentUrl:Dt.format(Object.assign(a,{host:c})),u;try{u=Dt.resolve(d,r)}catch(b){this.emit("error",new vd({cause:b}));return}Sd("redirecting to",u),this._isRedirect=!0;var h=Dt.parse(u);if(Object.assign(this._options,h),(h.protocol!==a.protocol&&h.protocol!=="https:"||h.host!==c&&!j1(h.host,c))&&yo(/^(?:authorization|cookie)$/i,this._options.headers),kr(i)){var g={headers:t.headers,statusCode:e},m={url:d,method:s,headers:n};try{i(this._options,g,m)}catch(b){this.emit("error",b);return}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(b){this.emit("error",new vd({cause:b}))}};function xd(t){var e={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(t).forEach(function(n){var i=n+":",s=r[i]=t[n],o=e[n]=Object.create(s);function a(d,u,h){if(Ot(d)){var g;try{g=bd(new go(d))}catch{g=Dt.parse(d)}if(!Ot(g.protocol))throw new k1({input:d});d=g}else go&&d instanceof go?d=bd(d):(h=u,u=d,d={protocol:i});return kr(u)&&(h=u,u=null),u=Object.assign({maxRedirects:e.maxRedirects,maxBodyLength:e.maxBodyLength},d,u),u.nativeProtocols=r,!Ot(u.host)&&!Ot(u.hostname)&&(u.hostname="::1"),wd.equal(u.protocol,i,"protocol mismatch"),Sd("options",u),new ke(u,h)}function c(d,u,h){var g=o.request(d,u,h);return g.end(),g}Object.defineProperties(o,{request:{value:a,configurable:!0,enumerable:!0,writable:!0},get:{value:c,configurable:!0,enumerable:!0,writable:!0}})}),e}function N1(){}function bd(t){var e={protocol:t.protocol,hostname:t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,hash:t.hash,search:t.search,pathname:t.pathname,path:t.pathname+t.search,href:t.href};return t.port!==""&&(e.port=Number(t.port)),e}function yo(t,e){var r;for(var n in e)t.test(n)&&(r=e[n],delete e[n]);return r===null||typeof r>"u"?void 0:String(r).trim()}function Tr(t,e,r){function n(i){Error.captureStackTrace(this,this.constructor),Object.assign(this,i||{}),this.code=t,this.message=this.cause?e+": "+this.cause.message:e}return n.prototype=new(r||Error),n.prototype.constructor=n,n.prototype.name="Error ["+t+"]",n}function Ed(t){for(var e of vo)t.removeListener(e,bo[e]);t.on("error",N1),t.abort()}function j1(t,e){wd(Ot(t)&&Ot(e));var r=t.length-e.length-1;return r>0&&t[r]==="."&&t.endsWith(e)}function Ot(t){return typeof t=="string"||t instanceof String}function kr(t){return typeof t=="function"}function $1(t){return typeof t=="object"&&"length"in t}_o.exports=xd({http:R1,https:F1});_o.exports.wrap=xd});var So=y((fw,L1)=>{L1.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 Id=y((dw,Ad)=>{"use strict";var Mr=Se(),Cd=uo(),B1=lo(),U1=Un(),X1=require("http"),G1=require("https"),H1=wo().http,W1=wo().https,Pd=require("url"),J1=require("zlib"),z1=So(),Qn=Hn(),xo=Gn(),Dd=/https:?/;function Od(t,e,r){if(t.hostname=e.host,t.host=e.host,t.port=e.port,t.path=r,e.auth){var n=Buffer.from(e.auth.username+":"+e.auth.password,"utf8").toString("base64");t.headers["Proxy-Authorization"]="Basic "+n}t.beforeRedirect=function(s){s.headers.host=s.host,Od(s,e,s.href)}}Ad.exports=function(e){return new Promise(function(n,i){var s=function(A){n(A)},o=function(A){i(A)},a=e.data,c=e.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/"+z1.version,a&&!Mr.isStream(a)){if(!Buffer.isBuffer(a))if(Mr.isArrayBuffer(a))a=Buffer.from(new Uint8Array(a));else if(Mr.isString(a))a=Buffer.from(a,"utf-8");else return o(Qn("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));c["Content-Length"]=a.length}var d=void 0;if(e.auth){var u=e.auth.username||"",h=e.auth.password||"";d=u+":"+h}var g=B1(e.baseURL,e.url),m=Pd.parse(g),b=m.protocol||"http:";if(!d&&m.auth){var x=m.auth.split(":"),C=x[0]||"",F=x[1]||"";d=C+":"+F}d&&delete c.Authorization;var N=Dd.test(b),U=N?e.httpsAgent:e.httpAgent,$={path:U1(m.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:c,agent:U,agents:{http:e.httpAgent,https:e.httpsAgent},auth:d};e.socketPath?$.socketPath=e.socketPath:($.hostname=m.hostname,$.port=m.port);var H=e.proxy;if(!H&&H!==!1){var Q=b.slice(0,-1)+"_proxy",ue=process.env[Q]||process.env[Q.toUpperCase()];if(ue){var V=Pd.parse(ue),_=process.env.no_proxy||process.env.NO_PROXY,S=!0;if(_){var P=_.split(",").map(function(A){return A.trim()});S=!P.some(function(A){return A?A==="*"||A[0]==="."&&m.hostname.substr(m.hostname.length-A.length)===A?!0:m.hostname===A:!1})}if(S&&(H={host:V.hostname,port:V.port,protocol:V.protocol},V.auth)){var G=V.auth.split(":");H.auth={username:G[0],password:G[1]}}}}H&&($.headers.host=m.hostname+(m.port?":"+m.port:""),Od($,H,b+"//"+m.hostname+(m.port?":"+m.port:"")+$.path));var R,L=N&&(H?Dd.test(H.protocol):!0);e.transport?R=e.transport:e.maxRedirects===0?R=L?G1:X1:(e.maxRedirects&&($.maxRedirects=e.maxRedirects),R=L?W1:H1),e.maxBodyLength>-1&&($.maxBodyLength=e.maxBodyLength);var I=R.request($,function(A){if(!I.aborted){var M=A,Ne=A.req||I;if(A.statusCode!==204&&Ne.method!=="HEAD"&&e.decompress!==!1)switch(A.headers["content-encoding"]){case"gzip":case"compress":case"deflate":M=M.pipe(J1.createUnzip()),delete A.headers["content-encoding"];break}var He={status:A.statusCode,statusText:A.statusMessage,headers:A.headers,config:e,request:Ne};if(e.responseType==="stream")He.data=M,Cd(s,o,He);else{var ee=[],le=0;M.on("data",function(xe){ee.push(xe),le+=xe.length,e.maxContentLength>-1&&le>e.maxContentLength&&(M.destroy(),o(Qn("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,Ne)))}),M.on("error",function(xe){I.aborted||o(xo(xe,e,null,Ne))}),M.on("end",function(){var xe=Buffer.concat(ee);e.responseType!=="arraybuffer"&&(xe=xe.toString(e.responseEncoding),(!e.responseEncoding||e.responseEncoding==="utf8")&&(xe=Mr.stripBOM(xe))),He.data=xe,Cd(s,o,He)})}}});if(I.on("error",function(A){I.aborted&&A.code!=="ERR_FR_TOO_MANY_REDIRECTS"||o(xo(A,e,null,I))}),e.timeout){var B=parseInt(e.timeout,10);if(isNaN(B)){o(Qn("error trying to parse `config.timeout` to int",e,"ERR_PARSE_TIMEOUT",I));return}I.setTimeout(B,function(){I.abort(),o(Qn("timeout of "+B+"ms exceeded",e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",I))})}e.cancelToken&&e.cancelToken.promise.then(function(A){I.aborted||(I.abort(),o(A))}),Mr.isStream(a)?a.on("error",function(A){o(xo(A,e,null,I))}).pipe(I):I.end(a)})}});var ei=y((hw,kd)=>{"use strict";var ce=Se(),Rd=Hf(),V1=Gn(),Y1={"Content-Type":"application/x-www-form-urlencoded"};function Fd(t,e){!ce.isUndefined(t)&&ce.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function K1(){var t;return typeof XMLHttpRequest<"u"?t=cd():typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]"&&(t=Id()),t}function Q1(t,e,r){if(ce.isString(t))try{return(e||JSON.parse)(t),ce.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}var Zn={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:K1(),transformRequest:[function(e,r){return Rd(r,"Accept"),Rd(r,"Content-Type"),ce.isFormData(e)||ce.isArrayBuffer(e)||ce.isBuffer(e)||ce.isStream(e)||ce.isFile(e)||ce.isBlob(e)?e:ce.isArrayBufferView(e)?e.buffer:ce.isURLSearchParams(e)?(Fd(r,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):ce.isObject(e)||r&&r["Content-Type"]==="application/json"?(Fd(r,"application/json"),Q1(e)):e}],transformResponse:[function(e){var r=this.transitional,n=r&&r.silentJSONParsing,i=r&&r.forcedJSONParsing,s=!n&&this.responseType==="json";if(s||i&&ce.isString(e)&&e.length)try{return JSON.parse(e)}catch(o){if(s)throw o.name==="SyntaxError"?V1(o,this,"E_JSON_PARSE"):o}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};Zn.headers={common:{Accept:"application/json, text/plain, */*"}};ce.forEach(["delete","get","head"],function(e){Zn.headers[e]={}});ce.forEach(["post","put","patch"],function(e){Zn.headers[e]=ce.merge(Y1)});kd.exports=Zn});var Md=y((pw,Td)=>{"use strict";var Z1=Se(),eb=ei();Td.exports=function(e,r,n){var i=this||eb;return Z1.forEach(n,function(o){e=o.call(i,e,r)}),e}});var Eo=y((mw,qd)=>{"use strict";qd.exports=function(e){return!!(e&&e.__CANCEL__)}});var $d=y((gw,jd)=>{"use strict";var Nd=Se(),Co=Md(),tb=Eo(),rb=ei();function Po(t){t.cancelToken&&t.cancelToken.throwIfRequested()}jd.exports=function(e){Po(e),e.headers=e.headers||{},e.data=Co.call(e,e.data,e.headers,e.transformRequest),e.headers=Nd.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),Nd.forEach(["delete","get","head","post","put","patch","common"],function(i){delete e.headers[i]});var r=e.adapter||rb.adapter;return r(e).then(function(i){return Po(e),i.data=Co.call(e,i.data,i.headers,e.transformResponse),i},function(i){return tb(i)||(Po(e),i&&i.response&&(i.response.data=Co.call(e,i.response.data,i.response.headers,e.transformResponse))),Promise.reject(i)})}});var Do=y((yw,Ld)=>{"use strict";var me=Se();Ld.exports=function(e,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(g,m){return me.isPlainObject(g)&&me.isPlainObject(m)?me.merge(g,m):me.isPlainObject(m)?me.merge({},m):me.isArray(m)?m.slice():m}function d(g){me.isUndefined(r[g])?me.isUndefined(e[g])||(n[g]=c(void 0,e[g])):n[g]=c(e[g],r[g])}me.forEach(i,function(m){me.isUndefined(r[m])||(n[m]=c(void 0,r[m]))}),me.forEach(s,d),me.forEach(o,function(m){me.isUndefined(r[m])?me.isUndefined(e[m])||(n[m]=c(void 0,e[m])):n[m]=c(void 0,r[m])}),me.forEach(a,function(m){m in r?n[m]=c(e[m],r[m]):m in e&&(n[m]=c(void 0,e[m]))});var u=i.concat(s).concat(o).concat(a),h=Object.keys(e).concat(Object.keys(r)).filter(function(m){return u.indexOf(m)===-1});return me.forEach(h,d),n}});var Hd=y((vw,Gd)=>{"use strict";var Ud=So(),Oo={};["object","boolean","number","function","string","symbol"].forEach(function(t,e){Oo[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});var Bd={},nb=Ud.version.split(".");function Xd(t,e){for(var r=e?e.split("."):nb,n=t.split("."),i=0;i<3;i++){if(r[i]>n[i])return!0;if(r[i]<n[i])return!1}return!1}Oo.transitional=function(e,r,n){var i=r&&Xd(r);function s(o,a){return"[Axios v"+Ud.version+"] Transitional option '"+o+"'"+a+(n?". "+n:"")}return function(o,a,c){if(e===!1)throw new Error(s(a," has been removed in "+r));return i&&!Bd[a]&&(Bd[a]=!0,console.warn(s(a," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(o,a,c):!0}};function ib(t,e,r){if(typeof t!="object")throw new TypeError("options must be an object");for(var n=Object.keys(t),i=n.length;i-- >0;){var s=n[i],o=e[s];if(o){var a=t[s],c=a===void 0||o(a,s,t);if(c!==!0)throw new TypeError("option "+s+" must be "+c);continue}if(r!==!0)throw Error("Unknown option "+s)}}Gd.exports={isOlderVersion:Xd,assertOptions:ib,validators:Oo}});var Kd=y((bw,Yd)=>{"use strict";var zd=Se(),sb=Un(),Wd=Xf(),Jd=$d(),ti=Do(),Vd=Hd(),tr=Vd.validators;function qr(t){this.defaults=t,this.interceptors={request:new Wd,response:new Wd}}qr.prototype.request=function(e){typeof e=="string"?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=ti(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var r=e.transitional;r!==void 0&&Vd.assertOptions(r,{silentJSONParsing:tr.transitional(tr.boolean,"1.0.0"),forcedJSONParsing:tr.transitional(tr.boolean,"1.0.0"),clarifyTimeoutError:tr.transitional(tr.boolean,"1.0.0")},!1);var n=[],i=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(e)===!1||(i=i&&g.synchronous,n.unshift(g.fulfilled,g.rejected))});var s=[];this.interceptors.response.forEach(function(g){s.push(g.fulfilled,g.rejected)});var o;if(!i){var a=[Jd,void 0];for(Array.prototype.unshift.apply(a,n),a=a.concat(s),o=Promise.resolve(e);a.length;)o=o.then(a.shift(),a.shift());return o}for(var c=e;n.length;){var d=n.shift(),u=n.shift();try{c=d(c)}catch(h){u(h);break}}try{o=Jd(c)}catch(h){return Promise.reject(h)}for(;s.length;)o=o.then(s.shift(),s.shift());return o};qr.prototype.getUri=function(e){return e=ti(this.defaults,e),sb(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")};zd.forEach(["delete","get","head","options"],function(e){qr.prototype[e]=function(r,n){return this.request(ti(n||{},{method:e,url:r,data:(n||{}).data}))}});zd.forEach(["post","put","patch"],function(e){qr.prototype[e]=function(r,n,i){return this.request(ti(i||{},{method:e,url:r,data:n}))}});Yd.exports=qr});var Io=y((_w,Qd)=>{"use strict";function Ao(t){this.message=t}Ao.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};Ao.prototype.__CANCEL__=!0;Qd.exports=Ao});var eh=y((ww,Zd)=>{"use strict";var ob=Io();function ri(t){if(typeof t!="function")throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(i){e=i});var r=this;t(function(i){r.reason||(r.reason=new ob(i),e(r.reason))})}ri.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};ri.source=function(){var e,r=new ri(function(i){e=i});return{token:r,cancel:e}};Zd.exports=ri});var rh=y((Sw,th)=>{"use strict";th.exports=function(e){return function(n){return e.apply(null,n)}}});var ih=y((xw,nh)=>{"use strict";nh.exports=function(e){return typeof e=="object"&&e.isAxiosError===!0}});var ah=y((Ew,Ro)=>{"use strict";var sh=Se(),ab=io(),ni=Kd(),cb=Do(),ub=ei();function oh(t){var e=new ni(t),r=ab(ni.prototype.request,e);return sh.extend(r,ni.prototype,e),sh.extend(r,e),r}var Xe=oh(ub);Xe.Axios=ni;Xe.create=function(e){return oh(cb(Xe.defaults,e))};Xe.Cancel=Io();Xe.CancelToken=eh();Xe.isCancel=Eo();Xe.all=function(e){return Promise.all(e)};Xe.spread=rh();Xe.isAxiosError=ih();Ro.exports=Xe;Ro.exports.default=Xe});var Fo=y((Cw,ch)=>{ch.exports=ah()});var Ge=k(require("node:fs")),Je=k(require("node:path")),Re=k(or()),Ah=k(ze());var wt=require("node:child_process"),we=k(require("node:path")),se=k(ct());var as=k(or()),$l=k(ze()),Ye=k(ct()),Ll=k(wl()),cs=k(wr());var vn="10.4.9";$l.default.config();var n_=!!process.env.GRIDDO_DEBUG_LOGS&&!!JSON.parse(process.env.GRIDDO_DEBUG_LOGS),Dg=!!process.env.GRIDDO_BUILD_LOGS&&!!JSON.parse(process.env.GRIDDO_BUILD_LOGS)||!!process.env.LOGS&&!!JSON.parse(process.env.LOGS),bn=cs.default.sync(__dirname),_n=cs.default.sync();function Bl(t){let e=[];return Ye.default.readdirSync(t).forEach(n=>{let i=`${t}/${n}`;e.push(i)}),e}function ft(t,e="",r=1,n=1){let i=t.split(`
|
|
21
|
+
`+s),t.push(i+"m+"+Qn.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=D1()+e+" "+t[0]}function D1(){return ae.inspectOpts.hideDate?"":new Date().toISOString()+" "}function O1(...t){return process.stderr.write(Kn.format(...t)+`
|
|
22
|
+
`)}function A1(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function I1(){return process.env.DEBUG}function R1(t){t.inspectOpts={};let e=Object.keys(ae.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=ae.inspectOpts[e[r]]}Qn.exports=po()(ae);var{formatters:pd}=Qn.exports;pd.o=function(t){return this.inspectOpts.colors=this.useColors,Kn.inspect(t,this.inspectOpts).split(`
|
|
23
|
+
`).map(e=>e.trim()).join(" ")};pd.O=function(t){return this.inspectOpts.colors=this.useColors,Kn.inspect(t,this.inspectOpts)}});var gd=y((uw,mo)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?mo.exports=hd():mo.exports=md()});var vd=y((lw,yd)=>{var Fr;yd.exports=function(){if(!Fr){try{Fr=gd()("follow-redirects")}catch{}typeof Fr!="function"&&(Fr=function(){})}Fr.apply(null,arguments)}});var wo=y((fw,_o)=>{var Dt=require("url"),go=Dt.URL,F1=require("http"),k1=require("https"),wd=require("stream").Writable,Sd=require("assert"),xd=vd(),vo=["abort","aborted","connect","error","socket","timeout"],bo=Object.create(null);vo.forEach(function(t){bo[t]=function(e,r,n){this._redirectable.emit(t,e,r,n)}});var T1=Tr("ERR_INVALID_URL","Invalid URL",TypeError),bd=Tr("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),M1=Tr("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),q1=Tr("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),N1=Tr("ERR_STREAM_WRITE_AFTER_END","write after end");function ke(t,e){wd.call(this),this._sanitizeOptions(t),this._options=t,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],e&&this.on("response",e);var r=this;this._onNativeResponse=function(n){r._processResponse(n)},this._performRequest()}ke.prototype=Object.create(wd.prototype);ke.prototype.abort=function(){Cd(this._currentRequest),this.emit("abort")};ke.prototype.write=function(t,e,r){if(this._ending)throw new N1;if(!Ot(t)&&!L1(t))throw new TypeError("data should be a string, Buffer or Uint8Array");if(kr(e)&&(r=e,e=null),t.length===0){r&&r();return}this._requestBodyLength+t.length<=this._options.maxBodyLength?(this._requestBodyLength+=t.length,this._requestBodyBuffers.push({data:t,encoding:e}),this._currentRequest.write(t,e,r)):(this.emit("error",new q1),this.abort())};ke.prototype.end=function(t,e,r){if(kr(t)?(r=t,t=e=null):kr(e)&&(r=e,e=null),!t)this._ended=this._ending=!0,this._currentRequest.end(null,null,r);else{var n=this,i=this._currentRequest;this.write(t,e,function(){n._ended=!0,i.end(null,null,r)}),this._ending=!0}};ke.prototype.setHeader=function(t,e){this._options.headers[t]=e,this._currentRequest.setHeader(t,e)};ke.prototype.removeHeader=function(t){delete this._options.headers[t],this._currentRequest.removeHeader(t)};ke.prototype.setTimeout=function(t,e){var r=this;function n(o){o.setTimeout(t),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()},t),n(o)}function s(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",s),r.removeListener("error",s),r.removeListener("response",s),e&&r.removeListener("timeout",e),r.socket||r._currentRequest.removeListener("socket",i)}return e&&this.on("timeout",e),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(t){ke.prototype[t]=function(e,r){return this._currentRequest[t](e,r)}});["aborted","connection","socket"].forEach(function(t){Object.defineProperty(ke.prototype,t,{get:function(){return this._currentRequest[t]}})});ke.prototype._sanitizeOptions=function(t){if(t.headers||(t.headers={}),t.host&&(t.hostname||(t.hostname=t.host),delete t.host),!t.pathname&&t.path){var e=t.path.indexOf("?");e<0?t.pathname=t.path:(t.pathname=t.path.substring(0,e),t.search=t.path.substring(e))}};ke.prototype._performRequest=function(){var t=this._options.protocol,e=this._options.nativeProtocols[t];if(!e){this.emit("error",new TypeError("Unsupported protocol "+t));return}if(this._options.agents){var r=t.slice(0,-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=e.request(this._options,this._onNativeResponse);n._redirectable=this;for(var i of vo)n.on(i,bo[i]);if(this._currentUrl=/^\//.test(this._options.path)?Dt.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 u=a[s++];n.finished||n.write(u.data,u.encoding,c)}else o._ended&&n.end()})()}};ke.prototype._processResponse=function(t){var e=t.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:t.headers,statusCode:e});var r=t.headers.location;if(!r||this._options.followRedirects===!1||e<300||e>=400){t.responseUrl=this._currentUrl,t.redirects=this._redirects,this.emit("response",t),this._requestBodyBuffers=[];return}if(Cd(this._currentRequest),t.destroy(),++this._redirectCount>this._options.maxRedirects){this.emit("error",new M1);return}var n,i=this._options.beforeRedirect;i&&(n=Object.assign({Host:t.req.getHeader("host")},this._options.headers));var s=this._options.method;((e===301||e===302)&&this._options.method==="POST"||e===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],yo(/^content-/i,this._options.headers));var o=yo(/^host$/i,this._options.headers),a=Dt.parse(this._currentUrl),c=o||a.host,d=/^\w+:/.test(r)?this._currentUrl:Dt.format(Object.assign(a,{host:c})),u;try{u=Dt.resolve(d,r)}catch(b){this.emit("error",new bd({cause:b}));return}xd("redirecting to",u),this._isRedirect=!0;var h=Dt.parse(u);if(Object.assign(this._options,h),(h.protocol!==a.protocol&&h.protocol!=="https:"||h.host!==c&&!$1(h.host,c))&&yo(/^(?:authorization|cookie)$/i,this._options.headers),kr(i)){var g={headers:t.headers,statusCode:e},m={url:d,method:s,headers:n};try{i(this._options,g,m)}catch(b){this.emit("error",b);return}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(b){this.emit("error",new bd({cause:b}))}};function Ed(t){var e={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(t).forEach(function(n){var i=n+":",s=r[i]=t[n],o=e[n]=Object.create(s);function a(d,u,h){if(Ot(d)){var g;try{g=_d(new go(d))}catch{g=Dt.parse(d)}if(!Ot(g.protocol))throw new T1({input:d});d=g}else go&&d instanceof go?d=_d(d):(h=u,u=d,d={protocol:i});return kr(u)&&(h=u,u=null),u=Object.assign({maxRedirects:e.maxRedirects,maxBodyLength:e.maxBodyLength},d,u),u.nativeProtocols=r,!Ot(u.host)&&!Ot(u.hostname)&&(u.hostname="::1"),Sd.equal(u.protocol,i,"protocol mismatch"),xd("options",u),new ke(u,h)}function c(d,u,h){var g=o.request(d,u,h);return g.end(),g}Object.defineProperties(o,{request:{value:a,configurable:!0,enumerable:!0,writable:!0},get:{value:c,configurable:!0,enumerable:!0,writable:!0}})}),e}function j1(){}function _d(t){var e={protocol:t.protocol,hostname:t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,hash:t.hash,search:t.search,pathname:t.pathname,path:t.pathname+t.search,href:t.href};return t.port!==""&&(e.port=Number(t.port)),e}function yo(t,e){var r;for(var n in e)t.test(n)&&(r=e[n],delete e[n]);return r===null||typeof r>"u"?void 0:String(r).trim()}function Tr(t,e,r){function n(i){Error.captureStackTrace(this,this.constructor),Object.assign(this,i||{}),this.code=t,this.message=this.cause?e+": "+this.cause.message:e}return n.prototype=new(r||Error),n.prototype.constructor=n,n.prototype.name="Error ["+t+"]",n}function Cd(t){for(var e of vo)t.removeListener(e,bo[e]);t.on("error",j1),t.abort()}function $1(t,e){Sd(Ot(t)&&Ot(e));var r=t.length-e.length-1;return r>0&&t[r]==="."&&t.endsWith(e)}function Ot(t){return typeof t=="string"||t instanceof String}function kr(t){return typeof t=="function"}function L1(t){return typeof t=="object"&&"length"in t}_o.exports=Ed({http:F1,https:k1});_o.exports.wrap=Ed});var So=y((dw,B1)=>{B1.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 Rd=y((hw,Id)=>{"use strict";var Mr=Se(),Pd=uo(),U1=lo(),X1=Xn(),G1=require("http"),H1=require("https"),W1=wo().http,J1=wo().https,Dd=require("url"),z1=require("zlib"),V1=So(),Zn=Wn(),xo=Hn(),Od=/https:?/;function Ad(t,e,r){if(t.hostname=e.host,t.host=e.host,t.port=e.port,t.path=r,e.auth){var n=Buffer.from(e.auth.username+":"+e.auth.password,"utf8").toString("base64");t.headers["Proxy-Authorization"]="Basic "+n}t.beforeRedirect=function(s){s.headers.host=s.host,Ad(s,e,s.href)}}Id.exports=function(e){return new Promise(function(n,i){var s=function(A){n(A)},o=function(A){i(A)},a=e.data,c=e.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/"+V1.version,a&&!Mr.isStream(a)){if(!Buffer.isBuffer(a))if(Mr.isArrayBuffer(a))a=Buffer.from(new Uint8Array(a));else if(Mr.isString(a))a=Buffer.from(a,"utf-8");else return o(Zn("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));c["Content-Length"]=a.length}var d=void 0;if(e.auth){var u=e.auth.username||"",h=e.auth.password||"";d=u+":"+h}var g=U1(e.baseURL,e.url),m=Dd.parse(g),b=m.protocol||"http:";if(!d&&m.auth){var x=m.auth.split(":"),C=x[0]||"",F=x[1]||"";d=C+":"+F}d&&delete c.Authorization;var N=Od.test(b),U=N?e.httpsAgent:e.httpAgent,$={path:X1(m.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:c,agent:U,agents:{http:e.httpAgent,https:e.httpsAgent},auth:d};e.socketPath?$.socketPath=e.socketPath:($.hostname=m.hostname,$.port=m.port);var H=e.proxy;if(!H&&H!==!1){var Q=b.slice(0,-1)+"_proxy",ue=process.env[Q]||process.env[Q.toUpperCase()];if(ue){var V=Dd.parse(ue),_=process.env.no_proxy||process.env.NO_PROXY,S=!0;if(_){var P=_.split(",").map(function(A){return A.trim()});S=!P.some(function(A){return A?A==="*"||A[0]==="."&&m.hostname.substr(m.hostname.length-A.length)===A?!0:m.hostname===A:!1})}if(S&&(H={host:V.hostname,port:V.port,protocol:V.protocol},V.auth)){var G=V.auth.split(":");H.auth={username:G[0],password:G[1]}}}}H&&($.headers.host=m.hostname+(m.port?":"+m.port:""),Ad($,H,b+"//"+m.hostname+(m.port?":"+m.port:"")+$.path));var R,L=N&&(H?Od.test(H.protocol):!0);e.transport?R=e.transport:e.maxRedirects===0?R=L?H1:G1:(e.maxRedirects&&($.maxRedirects=e.maxRedirects),R=L?J1:W1),e.maxBodyLength>-1&&($.maxBodyLength=e.maxBodyLength);var I=R.request($,function(A){if(!I.aborted){var M=A,Ne=A.req||I;if(A.statusCode!==204&&Ne.method!=="HEAD"&&e.decompress!==!1)switch(A.headers["content-encoding"]){case"gzip":case"compress":case"deflate":M=M.pipe(z1.createUnzip()),delete A.headers["content-encoding"];break}var He={status:A.statusCode,statusText:A.statusMessage,headers:A.headers,config:e,request:Ne};if(e.responseType==="stream")He.data=M,Pd(s,o,He);else{var ee=[],le=0;M.on("data",function(xe){ee.push(xe),le+=xe.length,e.maxContentLength>-1&&le>e.maxContentLength&&(M.destroy(),o(Zn("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,Ne)))}),M.on("error",function(xe){I.aborted||o(xo(xe,e,null,Ne))}),M.on("end",function(){var xe=Buffer.concat(ee);e.responseType!=="arraybuffer"&&(xe=xe.toString(e.responseEncoding),(!e.responseEncoding||e.responseEncoding==="utf8")&&(xe=Mr.stripBOM(xe))),He.data=xe,Pd(s,o,He)})}}});if(I.on("error",function(A){I.aborted&&A.code!=="ERR_FR_TOO_MANY_REDIRECTS"||o(xo(A,e,null,I))}),e.timeout){var B=parseInt(e.timeout,10);if(isNaN(B)){o(Zn("error trying to parse `config.timeout` to int",e,"ERR_PARSE_TIMEOUT",I));return}I.setTimeout(B,function(){I.abort(),o(Zn("timeout of "+B+"ms exceeded",e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",I))})}e.cancelToken&&e.cancelToken.promise.then(function(A){I.aborted||(I.abort(),o(A))}),Mr.isStream(a)?a.on("error",function(A){o(xo(A,e,null,I))}).pipe(I):I.end(a)})}});var ti=y((pw,Td)=>{"use strict";var ce=Se(),Fd=Wf(),Y1=Hn(),K1={"Content-Type":"application/x-www-form-urlencoded"};function kd(t,e){!ce.isUndefined(t)&&ce.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function Q1(){var t;return typeof XMLHttpRequest<"u"?t=ud():typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]"&&(t=Rd()),t}function Z1(t,e,r){if(ce.isString(t))try{return(e||JSON.parse)(t),ce.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}var ei={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:Q1(),transformRequest:[function(e,r){return Fd(r,"Accept"),Fd(r,"Content-Type"),ce.isFormData(e)||ce.isArrayBuffer(e)||ce.isBuffer(e)||ce.isStream(e)||ce.isFile(e)||ce.isBlob(e)?e:ce.isArrayBufferView(e)?e.buffer:ce.isURLSearchParams(e)?(kd(r,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):ce.isObject(e)||r&&r["Content-Type"]==="application/json"?(kd(r,"application/json"),Z1(e)):e}],transformResponse:[function(e){var r=this.transitional,n=r&&r.silentJSONParsing,i=r&&r.forcedJSONParsing,s=!n&&this.responseType==="json";if(s||i&&ce.isString(e)&&e.length)try{return JSON.parse(e)}catch(o){if(s)throw o.name==="SyntaxError"?Y1(o,this,"E_JSON_PARSE"):o}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};ei.headers={common:{Accept:"application/json, text/plain, */*"}};ce.forEach(["delete","get","head"],function(e){ei.headers[e]={}});ce.forEach(["post","put","patch"],function(e){ei.headers[e]=ce.merge(K1)});Td.exports=ei});var qd=y((mw,Md)=>{"use strict";var eb=Se(),tb=ti();Md.exports=function(e,r,n){var i=this||tb;return eb.forEach(n,function(o){e=o.call(i,e,r)}),e}});var Eo=y((gw,Nd)=>{"use strict";Nd.exports=function(e){return!!(e&&e.__CANCEL__)}});var Ld=y((yw,$d)=>{"use strict";var jd=Se(),Co=qd(),rb=Eo(),nb=ti();function Po(t){t.cancelToken&&t.cancelToken.throwIfRequested()}$d.exports=function(e){Po(e),e.headers=e.headers||{},e.data=Co.call(e,e.data,e.headers,e.transformRequest),e.headers=jd.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),jd.forEach(["delete","get","head","post","put","patch","common"],function(i){delete e.headers[i]});var r=e.adapter||nb.adapter;return r(e).then(function(i){return Po(e),i.data=Co.call(e,i.data,i.headers,e.transformResponse),i},function(i){return rb(i)||(Po(e),i&&i.response&&(i.response.data=Co.call(e,i.response.data,i.response.headers,e.transformResponse))),Promise.reject(i)})}});var Do=y((vw,Bd)=>{"use strict";var me=Se();Bd.exports=function(e,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(g,m){return me.isPlainObject(g)&&me.isPlainObject(m)?me.merge(g,m):me.isPlainObject(m)?me.merge({},m):me.isArray(m)?m.slice():m}function d(g){me.isUndefined(r[g])?me.isUndefined(e[g])||(n[g]=c(void 0,e[g])):n[g]=c(e[g],r[g])}me.forEach(i,function(m){me.isUndefined(r[m])||(n[m]=c(void 0,r[m]))}),me.forEach(s,d),me.forEach(o,function(m){me.isUndefined(r[m])?me.isUndefined(e[m])||(n[m]=c(void 0,e[m])):n[m]=c(void 0,r[m])}),me.forEach(a,function(m){m in r?n[m]=c(e[m],r[m]):m in e&&(n[m]=c(void 0,e[m]))});var u=i.concat(s).concat(o).concat(a),h=Object.keys(e).concat(Object.keys(r)).filter(function(m){return u.indexOf(m)===-1});return me.forEach(h,d),n}});var Wd=y((bw,Hd)=>{"use strict";var Xd=So(),Oo={};["object","boolean","number","function","string","symbol"].forEach(function(t,e){Oo[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});var Ud={},ib=Xd.version.split(".");function Gd(t,e){for(var r=e?e.split("."):ib,n=t.split("."),i=0;i<3;i++){if(r[i]>n[i])return!0;if(r[i]<n[i])return!1}return!1}Oo.transitional=function(e,r,n){var i=r&&Gd(r);function s(o,a){return"[Axios v"+Xd.version+"] Transitional option '"+o+"'"+a+(n?". "+n:"")}return function(o,a,c){if(e===!1)throw new Error(s(a," has been removed in "+r));return i&&!Ud[a]&&(Ud[a]=!0,console.warn(s(a," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(o,a,c):!0}};function sb(t,e,r){if(typeof t!="object")throw new TypeError("options must be an object");for(var n=Object.keys(t),i=n.length;i-- >0;){var s=n[i],o=e[s];if(o){var a=t[s],c=a===void 0||o(a,s,t);if(c!==!0)throw new TypeError("option "+s+" must be "+c);continue}if(r!==!0)throw Error("Unknown option "+s)}}Hd.exports={isOlderVersion:Gd,assertOptions:sb,validators:Oo}});var Qd=y((_w,Kd)=>{"use strict";var Vd=Se(),ob=Xn(),Jd=Gf(),zd=Ld(),ri=Do(),Yd=Wd(),tr=Yd.validators;function qr(t){this.defaults=t,this.interceptors={request:new Jd,response:new Jd}}qr.prototype.request=function(e){typeof e=="string"?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=ri(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var r=e.transitional;r!==void 0&&Yd.assertOptions(r,{silentJSONParsing:tr.transitional(tr.boolean,"1.0.0"),forcedJSONParsing:tr.transitional(tr.boolean,"1.0.0"),clarifyTimeoutError:tr.transitional(tr.boolean,"1.0.0")},!1);var n=[],i=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(e)===!1||(i=i&&g.synchronous,n.unshift(g.fulfilled,g.rejected))});var s=[];this.interceptors.response.forEach(function(g){s.push(g.fulfilled,g.rejected)});var o;if(!i){var a=[zd,void 0];for(Array.prototype.unshift.apply(a,n),a=a.concat(s),o=Promise.resolve(e);a.length;)o=o.then(a.shift(),a.shift());return o}for(var c=e;n.length;){var d=n.shift(),u=n.shift();try{c=d(c)}catch(h){u(h);break}}try{o=zd(c)}catch(h){return Promise.reject(h)}for(;s.length;)o=o.then(s.shift(),s.shift());return o};qr.prototype.getUri=function(e){return e=ri(this.defaults,e),ob(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")};Vd.forEach(["delete","get","head","options"],function(e){qr.prototype[e]=function(r,n){return this.request(ri(n||{},{method:e,url:r,data:(n||{}).data}))}});Vd.forEach(["post","put","patch"],function(e){qr.prototype[e]=function(r,n,i){return this.request(ri(i||{},{method:e,url:r,data:n}))}});Kd.exports=qr});var Io=y((ww,Zd)=>{"use strict";function Ao(t){this.message=t}Ao.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};Ao.prototype.__CANCEL__=!0;Zd.exports=Ao});var th=y((Sw,eh)=>{"use strict";var ab=Io();function ni(t){if(typeof t!="function")throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(i){e=i});var r=this;t(function(i){r.reason||(r.reason=new ab(i),e(r.reason))})}ni.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};ni.source=function(){var e,r=new ni(function(i){e=i});return{token:r,cancel:e}};eh.exports=ni});var nh=y((xw,rh)=>{"use strict";rh.exports=function(e){return function(n){return e.apply(null,n)}}});var sh=y((Ew,ih)=>{"use strict";ih.exports=function(e){return typeof e=="object"&&e.isAxiosError===!0}});var ch=y((Cw,Ro)=>{"use strict";var oh=Se(),cb=io(),ii=Qd(),ub=Do(),lb=ti();function ah(t){var e=new ii(t),r=cb(ii.prototype.request,e);return oh.extend(r,ii.prototype,e),oh.extend(r,e),r}var Xe=ah(lb);Xe.Axios=ii;Xe.create=function(e){return ah(ub(Xe.defaults,e))};Xe.Cancel=Io();Xe.CancelToken=th();Xe.isCancel=Eo();Xe.all=function(e){return Promise.all(e)};Xe.spread=nh();Xe.isAxiosError=sh();Ro.exports=Xe;Ro.exports.default=Xe});var Fo=y((Pw,uh)=>{uh.exports=ch()});var Ge=k(require("node:fs")),Je=k(require("node:path")),Re=k(or()),Ih=k(ze());var wt=require("node:child_process"),we=k(require("node:path")),se=k(ct());var as=k(or()),Ll=k(ze()),Ye=k(ct()),Bl=k(Sl()),cs=k(wr());var bn="10.4.11";Ll.default.config();var i_=!!process.env.GRIDDO_DEBUG_LOGS&&!!JSON.parse(process.env.GRIDDO_DEBUG_LOGS),Og=!!process.env.GRIDDO_BUILD_LOGS&&!!JSON.parse(process.env.GRIDDO_BUILD_LOGS)||!!process.env.LOGS&&!!JSON.parse(process.env.LOGS),_n=cs.default.sync(__dirname),wn=cs.default.sync();function Ul(t){let e=[];return Ye.default.readdirSync(t).forEach(n=>{let i=`${t}/${n}`;e.push(i)}),e}function ft(t,e="",r=1,n=1){let i=t.split(`
|
|
24
24
|
`).map(b=>b.trim()),s=e?` ${e} `:"",o=e?s.length:0,a=Math.max(...i.map(b=>b.length))+r*2,c=Math.max(a,o),d=`\u2502${" ".repeat(c)}\u2502
|
|
25
25
|
`.repeat(n),u=c,h=`\u256D${s}${"\u2500".repeat(u-o)}\u256E
|
|
26
26
|
`,g=`\u2570${"\u2500".repeat(u)}\u256F`,m=i.map(b=>{let x=" ".repeat(c-b.length-r);return`\u2502${" ".repeat(r)}${b}${x}\u2502
|
|
27
|
-
`}).join("");console.log(`${h}${d}${m}${d}${g}`)}function Be(t){
|
|
27
|
+
`}).join("");console.log(`${h}${d}${m}${d}${g}`)}function Be(t){Og&&console.info(t.replace(/(\s)\s+/g,"$1"))}function Xl(t){return new Promise(e=>setTimeout(e,t))}function us(t,e=3){return(t/1e3).toFixed(e)}function ls(t){return"site"in t&&t.site?t?.site:void 0}function fs(t,e){for(let r in t)e.includes(r)?delete t[r]:typeof t[r]=="object"&&fs(t[r],e)}function ds(t){return t.map(({name:e,id:r})=>`${e} (${r})`).join(", ")}function Gl(t){let e=`
|
|
28
28
|
\xB7\xB7
|
|
29
|
-
\xB7\xB7 Griddo Exporter ${
|
|
29
|
+
\xB7\xB7 Griddo Exporter ${bn}
|
|
30
30
|
\xB7\xB7 Adapter: ${t}
|
|
31
31
|
\xB7\xB7
|
|
32
|
-
`;console.log(
|
|
32
|
+
`;console.log(Bl.default.cristal(e))}function Hl(t){let e=Ye.default.readdirSync(t),r={},n=e.filter(s=>{let o=`${t}/${s}`,a=Ye.default.readJSONSync(o,"utf-8"),{id:c,entity:d,fullUrl:u}=a;return!!(c&&d&&u)});for(let s of n){let o=`${t}/${s}`,a=Ye.default.readJSONSync(o,"utf-8"),c=Ye.default.statSync(o).mtimeMs,{id:d}=a;(!r[d]||c>Ye.default.statSync(`${t}/${r[d]}`).mtimeMs)&&(r[d]=s)}let i=0;for(let s of n){let o=`${t}/${s}`,a=Ye.default.readJSONSync(o,"utf-8"),{id:c}=a;s!==r[c]&&(Ye.default.unlinkSync(o),i++)}console.log(`Sanitize apiCache dir for ${i} files`)}async function hs(...t){let e=process.hrtime();for(let s of t)await s();let[r,n]=process.hrtime(e);return+(r+n/1e9).toFixed(3)}function Ke(t){if(JSON.parse(process.env.GRIDDO_RENDER_BREAKPOINTS_FEATURE||"false"))return new Promise(r=>{console.log(`
|
|
33
33
|
`),ft(`\u231B\uFE0F ${t}`,"",1,0),process.stdin.once("data",()=>{r()})})}async function Qe(t){let{steps:e,name:r,attempts:n}=t,i=0,s=n||1;for(;i<s;)try{console.info(`
|
|
34
|
-
${as.default.blue("info")} start ${r} life-cycle`);let o=await hs(...e);console.info(`${as.default.green("success")} ${r} - ${o}s`);break}catch{console.log(`Error in ${r}. Attempt (${i+1})`),i++}if(i===s)throw new Error(`Exceeded maximum retry attempts (${s}) for ${r} LifeCycle`)}var
|
|
34
|
+
${as.default.blue("info")} start ${r} life-cycle`);let o=await hs(...e);console.info(`${as.default.green("success")} ${r} - ${o}s`);break}catch{console.log(`Error in ${r}. Attempt (${i+1})`),i++}if(i===s)throw new Error(`Exceeded maximum retry attempts (${s}) for ${r} LifeCycle`)}var dt=k(require("node:fs")),Zl=k(require("node:fs/promises")),_e=k(require("node:path")),xn=k(ct());var Ze=k(require("node:path")),et=k(ct());function Me(){try{return(Kl(),ip(Yl)).default}catch{process.exit(1)}}async function Ql(t,e){let n=Me().dirs(t),i=Ze.default.resolve(n.__cx,"dist"),s=Ze.default.resolve(n.__cx,"assets"),o=Ze.default.join(n.__cx,"dist",t),a=Ze.default.resolve(n.__ssg,"public"),c=et.default.readdirSync(a).filter(x=>Ze.default.extname(x)===".js"||Ze.default.extname(x)===".json"||Ze.default.extname(x)===".css"),d=`${a}/page-data`,u=`${s}/page-data`,h=Ze.default.resolve(n.__cx,"./static"),g=s,m=`${i}/static`,b=`${s}/static`;try{et.default.mkdirSync(s,{recursive:!0}),et.default.copySync(a,i),e&&(et.default.copySync(d,u),et.default.copySync(h,g,{overwrite:!1}),et.default.copySync(m,b,{overwrite:!1}),et.default.copySync(h,o,{overwrite:!1}),c.map(async x=>{let C=`${a}/${x}`,F=`${s}/${x}`;et.default.copySync(C,F)}))}catch(x){console.error(x)}}async function*vs(t){let e=_e.default.resolve(t),r=Ul(e).filter(n=>_e.default.extname(n)===".json");for(let n of r)try{let i=await Zl.default.stat(n),s=await xn.default.readJSON(n,{encoding:"utf-8"});s.size=i.size/1024,s.path&&(yield s)}catch(i){console.error(`Error: The file ${n} doesn't exist`,i)}}async function bs(){let e=Me().dirs(),r=_e.default.join(e.__cx,"store"),{sitesToPublish:n,createdPages:i,buildProcessData:s}=xn.default.readJSONSync(_e.default.resolve(r,"metadata","render-info.json"));return{buildProcessData:s,createdPages:i,sitesToPublish:n}}function ef(t){dt.default.existsSync(t)||(dt.default.mkdirSync(t),dt.default.mkdirSync(_e.default.resolve(t,"metadata"))),console.info("Store initialized")}function tf(t,e){dt.default.writeFileSync(_e.default.resolve(t,"metadata","render-info.json"),JSON.stringify(e))}function $g(t,e){return _s(t).filter(i=>e.includes(i))}function _s(t){return dt.default.readdirSync(t).filter(r=>{let n=`${t}/${r}`,i=dt.default.statSync(n);if(i&&i.isDirectory()||_e.default.extname(r)!==".json")return!1;let s=_e.default.basename(r,_e.default.extname(r));return!isNaN(parseInt(s))}).map(r=>{let n=_e.default.basename(r,_e.default.extname(r));return parseInt(n)})}function rf(t,e){e.forEach(r=>{fs(r,["editorID","parentEditorID"]);let n=`${r.context.page.id}.json`,i=_e.default.resolve(t,n);xn.default.writeJSONSync(i,r)})}function En(t,e){e.length!==0&&e.forEach(r=>{let n=_e.default.resolve(t,`${r}.json`);try{dt.default.unlinkSync(n)}catch(i){console.log(`Error removing file ${r}`,i.message)}})}async function nf(t,e){let{changedPages:r,pages:n,validPagesIds:i,sitesToPublish:s}=e,o=$g(t,n),a=i.filter(m=>!o.includes(m)),c=a.concat(r),d=o.filter(m=>!i.includes(m)),u=Array.from(new Set(c)).filter(m=>!d.includes(m)),h=vs(_e.default.resolve(__dirname,"../store")),g=[];for await(let m of h){let b=m.context.page.site,x=m.context.page.id;s.map(C=>C.id).includes(b)||g.push(x)}return{pagesInStore:o,pagesMissingInStore:a,pagesToDeleteFromStore:[...d,...g],pagesToWriteToStore:u}}var m_=we.default.resolve(__dirname,"../store/"),g_=we.default.resolve(__dirname,"../dist/"),y_=we.default.resolve(__dirname,"../"),v_=we.default.resolve(wn,"exports/sites");async function ws(t,e){for await(let r of t)for(let n of r.domains){let i=Object.values(n)[0],s=JSON.parse(process.env.GRIDDO_EXPORT_STRIP_DOMAIN_FROM_PATH||"false")?i.split(e).join(""):i,o=we.default.resolve(__dirname,`../public${s}`),a=we.default.resolve(__dirname,`../public/page-data${s}`);if(Be(`Site dir ${o}`),Be(`Page data dir ${a}`),!!se.default.existsSync(o)){try{await se.default.rm(o,{recursive:!0}),Be(`${o} was deleted!`)}catch(c){console.log(c)}if(se.default.existsSync(a))try{await se.default.rm(a,{recursive:!0}),console.info(`${a} was deleted!`)}catch(c){console.log(c)}}}}var Ss=t=>{let e=t||we.default.resolve(_n,"dist");if(!se.default.statSync(e).isDirectory())return;let n=se.default.readdirSync(e);if(n.length>0){let s=n.length,o=n.filter(a=>we.default.extname(a).toLowerCase()===".xml").length;s===o&&(n.forEach(function(a){let c=we.default.join(e,a);se.default.rmSync(c)}),n=se.default.readdirSync(e)),n.forEach(function(a){let c=we.default.join(e,a);Ss(c)}),n=se.default.readdirSync(e)}if(n.length===0){se.default.rmdirSync(e);return}};function sf(t){let{artifacts:e,from:r,to:n,withBackup:i}=t;for(let s of e){let o=we.default.join(r,s),a=we.default.join(n,s);if(!se.default.existsSync(o)){console.log(`Source directory does not exist: ${o}`);continue}i&&Ug(a);try{se.default.existsSync(a)&&(0,wt.spawnSync)("rm",["-rf",a]),(0,wt.spawnSync)("cp",["-Rp",o,a]),i&&Bg(a)}catch{console.log("Copy failed!"),i&&(Lg(a),console.log("Backup has been restored."))}}}function of(t){let{artifacts:e,from:r}=t;for(let n of e)if(n){let i=we.default.join(r,n);se.default.existsSync(i)&&(0,wt.spawnSync)("rm",["-rf",i])}}function Lg(t,e="-BACKUP"){let r=t+e;try{(0,wt.spawnSync)("mv",[r,t]),console.log(`Backup ${r} has been restored`)}catch{console.log(`Error while delete ${r} backup`)}}function Bg(t,e="-BACKUP"){let r=t+e;if(!se.default.existsSync(r)){console.log(`Source ${r} does not exist`);return}try{(0,wt.spawnSync)("rm",["-rf",r]),console.log(`Backup ${r} has been deleted`)}catch{console.log(`Error while delete ${r} backup`)}}function Ug(t,e="-BACKUP"){let r=t+e;if(!se.default.existsSync(t)){console.log(`Source ${t} does not exist`);return}if(se.default.existsSync(r)){console.log(`Destination ${r} already exists`);return}try{(0,wt.spawnSync)("mv",[t,r]),console.log(`Backup of ${t} has been created in ${r}`)}catch{console.log(`Error while coping ${t} to ${r} backup`)}}function Xg(t){return Number.isInteger(t)&&t<0}async function af(){let e=Me().dirs(),r=we.default.join(e.__cx,"store");try{let n=_s(r).filter(Xg);En(r,n)}catch{console.info("`store` folder does not exist. Skipping multipage clean up.")}}var cf=require("node:child_process"),uf=k(ze()),lf=k(wr());uf.default.config();var Gg=lf.default.sync(__dirname);function ff(t){return e=>Hg(e,t)}function Hg(t,e){let[r,...n]=t.split(" "),{error:i,status:s}=(0,cf.spawnSync)(r,n,{cwd:Gg,stdio:["ignore","inherit","ignore"],encoding:"utf8",shell:!0,env:Object.assign({GRIDDO_EXPORTER:"true"},process.env,e)});if(i)throw console.error(i),new Error(i.toString());if(s!==0)throw new Error(`Command \`${t}\` exited with code ${s}`)}var nr=k(require("node:path")),Nr=k(ct()),jo=k(qf());var lh=k(Fo()),fh=k(or()),ko=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 e=await(0,lh.default)({url:`${this.baseUrl}/login_check`,method:"POST",headers:{"Content-Type":"application/json"},data:{username:this.user,password:this.password}});if(e.status===200){let{data:{token:r}}=e;this.headers={Authorization:"bearer "+r,"Cache-Control":"no-store"}}return this.headers}catch{console.error(fh.default.red(`
|
|
35
35
|
\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
|
|
36
36
|
\u2502 Access credentials failure \u2502
|
|
37
37
|
\u2502 Check that the login details are correct in your .env file \u2502
|
|
38
38
|
\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
|
|
39
|
-
`)),process.exit(1)}}},tt=new ko;var
|
|
40
|
-
Max attempts ${
|
|
39
|
+
`)),process.exit(1)}}},tt=new ko;var xh=k(ze());var _h=k(Fo()),wh=k(or()),Sh=k(ze());var dh=k(require("node:crypto")),At=k(require("node:fs")),To=k(require("node:path")),Mo=k(ct()),si=To.default.resolve(__dirname,"./../apiCache"),hh=`${si}/siteHash.json`;function ph(){At.default.existsSync(si)||At.default.mkdirSync(si),console.info("Cache initialized")}function mh(t){let e=dh.default.createHash("sha256");return e.update(JSON.stringify(t)),`${si}/${e.digest("hex")}`}function gh(t,e){let r=typeof e=="string"?e:JSON.stringify(e),n=mh(t),i=To.default.dirname(n);At.default.existsSync(i)||At.default.mkdirSync(i,{recursive:!0}),At.default.writeFileSync(n,r,"utf8")}function yh(t){try{let e=mh(t);return Mo.default.readJSONSync(e,{encoding:"utf-8"})}catch{return null}}function fb(){try{return Mo.default.readJSONSync(hh,{encoding:"utf-8"})||{}}catch{return{}}}function vh(t,e){let r=fb(),n=r[t],i=e||n||new Date().valueOf();return i!==n&&(r[t]=i,At.default.writeFileSync(hh,JSON.stringify(r),{encoding:"utf-8"})),i.toString()}Sh.default.config();var{env:{RETRY_WAIT_SECONDS:db="4",RETRY_ATTEMPTS:bh="4"}}=process;async function qo(t,e,r=""){let{endpoint:n,body:i,cacheKey:s="",attempt:o=1,headers:a}=t,c={endpoint:n,body:i,headers:a,cacheKey:s};if(s){let d=new Date,u=yh(c);if(u){let h=ls(u),g=h?`site: ${h}`:"",m=us(new Date().getTime()-d.getTime());return Be(`${e} (cache) ${g} ${n} - ${m}s ${r}`),u}}try{let d=new Date,{data:u}=await(0,_h.default)({url:n,method:e,headers:Object.assign({},a,tt.headers),data:i}),h=ls(u),g=h?`site: ${h}`:"",m=us(new Date().getTime()-d.getTime());return Be(`${e} (fetch) ${g} ${n} - ${m}s ${r}`),gh(c,u),u}catch(d){let u=d;return u.response?.status===404?null:(o>parseInt(bh)&&(console.log(`
|
|
40
|
+
Max attempts ${bh} reached
|
|
41
41
|
--------------------------------------
|
|
42
42
|
- ${e.toUpperCase()} ${n}
|
|
43
43
|
- BODY: ${JSON.stringify(i)}
|
|
44
44
|
- HEADERS: ${JSON.stringify(a)}
|
|
45
45
|
- RESPONSE: ${u.response?.status,JSON.stringify(u.response?.data)}
|
|
46
46
|
--------------------------------------
|
|
47
|
-
`),process.exit(1)),u.response||(console.log("Unknown error occurred"),console.log(JSON.stringify(u,null,2)),process.exit(1)),
|
|
47
|
+
`),process.exit(1)),u.response||(console.log("Unknown error occurred"),console.log(JSON.stringify(u,null,2)),process.exit(1)),hb(u,{callInfo:{endpoint:n,body:i}}),console.warn(`Waiting for retry: ${e}`,n),await Xl(parseInt(db)*1e3),qo({endpoint:n,body:i,headers:a,cacheKey:s,attempt:o+1},e,r))}}async function Ie(t){return await qo(t,"get")}async function It(t){let{endpoint:e,body:r,headers:n}=t,i=e.endsWith("/distributor")&&`# Distributor body: ${JSON.stringify(r)} lang: ${JSON.stringify(n?.lang)}`;return await qo(t,"post",i||"")}function hb(t,e){let{response:r,message:n,stack:i}=t,{callInfo:s}=e,{status:o,statusText:a,data:c}=r||{},d=[];for(let m of Object.keys(s))d.push(`${m}: ${typeof s[m]=="object"?JSON.stringify(s[m]):s[m]}`);let u=d.join(`
|
|
48
48
|
`),h=r?`Code: ${o} - ${a}
|
|
49
49
|
Response: ${JSON.stringify(c)}`:"",g=`${n}
|
|
50
|
-
${i}`;console.warn(
|
|
50
|
+
${i}`;console.warn(wh.default.bold.red(`
|
|
51
51
|
=============
|
|
52
52
|
|
|
53
53
|
{ Call info }
|
|
@@ -60,11 +60,11 @@ ${h}
|
|
|
60
60
|
${g}
|
|
61
61
|
|
|
62
62
|
=============
|
|
63
|
-
`))}
|
|
63
|
+
`))}xh.default.config();var No=process.env.API_URL,mt=`${No}/site/`,rt={GET_ALL:`${No}/sites/all`,GET_PAGE:[`${No}/page/`,""],INFO:[`${mt}`,"/all"],LANGUAGES:[`${mt}`,"/languages"],BUILD_START:[`${mt}`,"/build/start"],BUILD_END:[`${mt}`,"/build/end"],GET_DISTRIBUTOR_DATA:[`${mt}`,"/distributor"],GET_SITEMAP:[`${mt}`,"/sitemap"],SOCIALS:[`${mt}`,"/socials"],GET_PAGES:[`${mt}`,"/pages?pagination=false"]},ge=class{static async getAll(){let{GET_ALL:e}=rt;return await Ie({endpoint:e})}static async getPage(e,r){let{GET_PAGE:[n,i]}=rt;return await Ie({endpoint:`${n}${e}${i}`,cacheKey:r})}static async getInfo(e,r=""){let{INFO:[n,i]}=rt;return await Ie({endpoint:`${n}${e}${i}`,cacheKey:r})}static async getLanguages(e,r=""){let{LANGUAGES:[n,i]}=rt;return await Ie({endpoint:`${n}${e}${i}`,cacheKey:r})}static async startSiteRender(e){let{BUILD_START:[r,n]}=rt;return await Ie({endpoint:`${r}${e}${n}`})}static async endSiteRender(e,r){let{BUILD_END:[n,i]}=rt;return await It({endpoint:`${n}${e}${i}`,body:r})}static async getDistributorData(e,r,n,i,s){let{GET_DISTRIBUTOR_DATA:[o,a]}=rt,c=i||e.site,d=s||e.language;return await It({endpoint:`${o}${c}${a}`,body:r,headers:{lang:d},cacheKey:n})}static async getSitemap(e){let{GET_SITEMAP:[r,n]}=rt;return await Ie({endpoint:`${r}${e}${n}`})}static async getSocials(e,r=""){let{SOCIALS:[n,i]}=rt;return await Ie({endpoint:`${n}${e}${i}`,cacheKey:r})}};var pb=process.env.API_URL,mb=!!process.env.GRIDDO_RENDER_ALL_SITES||!!process.env.updateAllSites,rr=process.env.GRIDDO_RENDER_SITE&&parseInt(process.env.GRIDDO_RENDER_SITE)||process.env.testSite&&parseInt(process.env.testSite),Eh=(process.env.GRIDDO_RENDER_PAGES||process.env.testPage||"").split(",").map(t=>parseInt(t)).filter(Boolean),gb=JSON.parse(process.env.GRIDDO_EXPORT_STRIP_DOMAIN_FROM_PATH||"false");async function oi(t){console.info(`API URL ${pb}`),await tt.login();let e=await ge.getAll(),r=mb?e.filter(s=>!rr||s.id===rr):e.filter(s=>rr?s.id===rr:!!s.shouldBeUpdated);if(r.length)for(let s of r){let{items:o}=await ge.getLanguages(s.id);s.domains=o.filter(a=>a.domain&&(a.domain.slug===t||a.domain.slug===`/${t}`)).map(a=>({[a.id]:`${a.domain.slug}${a.path}`}))}let n=r.filter(s=>rr?s.id===rr:!!s.isPublished&&s.domains.length>0),i=r.filter(s=>!s.isPublished&&s.shouldBeUpdated);return{sitesToPublish:n,sitesToUnpublish:i}}async function Ph(t){for(let e of t){let r=await ge.startSiteRender(e.id),{siteHash:n}=r,i={siteHash:n,publishHashes:[],unpublishHashes:[]};await ge.endSiteRender(e.id,i)}}async function Dh(t){let e=await ge.startSiteRender(t),r=await ge.getInfo(t),n=await ge.getLanguages(t),i=await ge.getSocials(t),s=n.items,o=s.find(b=>b.isDefault),{siteHash:a,unpublishHashes:c,publishIds:d}=e,{headers:u,footers:h}=r,g=Eh.length?Eh.filter(b=>d.includes(b)):d;return{siteInfo:r,validPagesIds:g,siteHash:a,unpublishHashes:c,siteLangs:s,defaultLang:o,headers:u,footers:h,socials:i}}async function Oh(){let e=Me().dirs(),r=nr.default.join(e.__cx,"dist"),{buildProcessData:n}=await bs(),i=nr.default.join(r,"__build-report__.json"),s=await tt.login(),o=Object.keys(n).map(c=>({...n[c],siteId:parseInt(c)})),a={authControl:s,sites:o};Nr.default.writeFileSync(i,JSON.stringify(a)),Be(`Build report saved for ${o.length} site(s)`)}async function Ah(){let{sitesToPublish:t}=await bs(),r=Me().dirs(),n=nr.default.resolve(r.__cx,"dist"),i=t.map(async s=>{let{id:o,languages:a}=s,c=a.map(async d=>{tt.headers&&(tt.headers.lang=d.id.toString());let u=await ge.getSitemap(o);if(!u)return;let{items:h,url:{home:g,domain:m}}=u;if(!g)return;let b=s.domains.find(H=>Object.keys(H)[0]==d.id.toString());if(!b)return;let x=Object.values(b)[0],C=[],F=Object.keys(h),N=nr.default.join(n,`${gb?x.replace(m,""):x}`);for(let H of F){let Q=h[H];if(!Q.length)continue;let ue=(0,jo.parse)("urlset",{"@":{xmlns:"http://www.sitemaps.org/schemas/sitemap/0.9","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation":"http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"},url:Q}),V=`/sitemap-${H.toLowerCase()}.xml`,_=`${N}${V}`;Ch(_,ue),C.push(`${g.endsWith("/")?g.slice(0,-1):g}${V}`)}if(!C.length)return;let U=(0,jo.parse)("sitemapindex",{"@":{xmlns:"http://www.sitemaps.org/schemas/sitemap/0.9"},sitemap:C.map(H=>({loc:H}))}),$=`${N}/sitemap.xml`;Ch($,U)});return Promise.all(c)});await Promise.all(i)}function Ch(t,e){try{let r=nr.default.dirname(t);Nr.default.existsSync(r)||Nr.default.mkdirSync(r,{recursive:!0}),Nr.default.writeFileSync(t,e)}catch(r){console.error(`Error saving file: ${r}`)}}Ih.default.config();var gt={prepare:JSON.parse(process.env.GRIDDO_PREPARE_LIFECYCLE_MAX_ATTEMPTS||"1"),restore:JSON.parse(process.env.GRIDDO_RESTORE_LIFECYCLE_MAX_ATTEMPTS||"1"),data:JSON.parse(process.env.GRIDDO_DATA_LIFECYCLE_MAX_ATTEMPTS||"1"),ssg:JSON.parse(process.env.GRIDDO_SSG_LIFECYCLE_MAX_ATTEMPTS||"1"),relocation:JSON.parse(process.env.GRIDDO_RELOCATION_LIFECYCLE_MAX_ATTEMPTS||"1"),meta:JSON.parse(process.env.GRIDDO_META_LIFECYCLE_MAX_ATTEMPTS||"1"),archive:JSON.parse(process.env.GRIDDO_ARCHIVE_LIFECYCLE_MAX_ATTEMPTS||"1"),clean:JSON.parse(process.env.GRIDDO_CLEAN_LIFECYCLE_MAX_ATTEMPTS||"1")};function Rh(t){let e=["dist","assets"],r=["public"],n=["apiCache","store"];JSON.parse(process.env.GRIDDO_EXPORT_STRIP_DOMAIN_FROM_PATH||"false")?n.push(".cache"):r.push(".cache");let s=Je.default.resolve(wn,"exports/sites"),o=Je.default.resolve(__dirname,"../caches"),a=yb(t),c=ff({GRIDDO_ASSET_PREFIX:a,FOO:"true-and-false"}),d=()=>{console.info(`Initializing exporter for the domain ${t}`),g(),m()},u=()=>{for(let _ of e){let{currentExportArchivePath:S,currentExportWorkingPath:P}=h(_);Ge.default.existsSync(S)&&(console.log(`\uFE0FRestoring ${Re.default.gray(S)}`),c(`cp -R ${S} ${P}`))}ue()},h=(_="")=>{if(_==="/")throw new Error(`Artifact path cannot be root: ${_}`);let S=Je.default.resolve(s,t),P=Je.default.resolve(S,_),G=Je.default.resolve(P,t),R=Je.default.resolve(o,t),L=Je.default.resolve(R,_),I=Je.default.resolve(L,t),B=`${P}-BACKUP`,T=Je.default.resolve(_n,_);return{domainExportArchiveBasePath:S,currentExportArchivePath:P,currentExportBackupPath:B,currentExportWorkingPath:T,currentExportArchivePathInDomain:G,domainCacheArchiveBasePath:R,currentExportArchiveCachePath:L,currentExportArchiveCachePathInDomain:I}},g=()=>{for(let _ of[...e,...r,...n]){let{currentExportWorkingPath:S}=h(_);Ge.default.existsSync(S)&&(console.log(`Cleanup dirty ${Re.default.gray(S)}`),c(`rm -rf ${S}`))}},m=()=>{let{domainExportArchiveBasePath:_,domainCacheArchiveBasePath:S}=h();for(let P of[_,S])Ge.default.existsSync(P)||(console.info(`Creating ${P}`),c(`mkdir -p ${P}`))},b=_=>{let{currentExportArchivePath:S,currentExportWorkingPath:P}=h(_);console.info(`Moving files from ${Re.default.gray(P)} to ${Re.default.gray(S)}`),c(`mv ${P} ${S}`)},x=()=>{for(let _ of e){let{currentExportWorkingPath:S,currentExportArchivePath:P}=h(_);if(!Ge.default.existsSync(S)){console.log("Source directory has not been created:",S);continue}try{C(_),b(_),N(_)}catch(G){console.log(`Error moving files to ${P}`,G.message),F(_);continue}}},C=_=>{let{currentExportArchivePath:S,currentExportBackupPath:P}=h(_);Ge.default.existsSync(S)&&(console.info(`Creating backup of ${Re.default.gray(S)}`),c(`mv ${S} ${P}`))},F=_=>{let{currentExportArchivePath:S,currentExportBackupPath:P}=h(_);Ge.default.existsSync(P)&&(console.log(`\uFE0FRestoring backup ${Re.default.gray(S)}`),c(`mv ${P} ${S}`))},N=_=>{let{currentExportArchivePath:S,currentExportBackupPath:P}=h(_);console.log(`\uFE0FRemoving backup ${Re.default.gray(S)}`),c(`rm -rf ${P}`)},U=()=>{for(let _ of n){let{currentExportArchiveCachePath:S,currentExportWorkingPath:P}=h(_);if(Ge.default.existsSync(P))console.info(`Moving files from ${Re.default.gray(P)} to ${Re.default.gray(S)}`),c(`mv ${P} ${S}`);else throw new Error(`Error moving files from ${P}: Path does not exist.`)}},$=async()=>{let{sitesToPublish:_,sitesToUnpublish:S}=await oi(t);await ws(S,t),await ws(_,t)},H=()=>{for(let _ of n){let{currentExportArchiveCachePath:S,currentExportWorkingPath:P}=h(_);Ge.default.existsSync(S)&&(console.log(`\uFE0FRestoring ${Re.default.gray(S)}`),c(`mv ${S} ${P}`))}},Q=()=>{c("yarn gatsby-build")},ue=()=>{let{currentExportWorkingPath:_}=h("dist"),{currentExportWorkingPath:S}=h("public");Ge.default.existsSync(_)&&(console.log(`Moving ${Re.default.gray(_)} to ${Re.default.gray(S)}`),c(`mv ${_} ${S}`))};return{init:d,getArtifactPaths:h,archiveExportArtifact:b,archiveArtifacts:x,restoreArtifacts:u,createArtifactBackup:C,restoreArtifactBackup:F,deleteArtifactBackup:N,archiveCacheArtifacts:U,restoreCacheArtifacts:H,cleanUpSites:$,runGatsbyBuild:Q,removeDisposableArtifacts:()=>{for(let _ of r){let{currentExportWorkingPath:S}=h(_);Ge.default.existsSync(S)&&(console.log(`\uFE0FRemoving ${Re.default.gray(S)}`),c(`rm -rf ${S}`))}}}}function yb(t){let e=process.env.GRIDDO_ASSET_PREFIX||process.env.ASSET_PREFIX;return!e||!t||!t.startsWith("pro-")?"":`${e}/${t}`}var vb=k(ct());ys();function Fh(t){let e=process.env.GRIDDO_ASSET_PREFIX||process.env.ASSET_PREFIX;return!e||!t||!t.startsWith("pro-")?"":`${e}/${t}`}var $o=k(require("node:fs")),ai=k(require("node:path")),kh=k(ze());kh.default.config();var Lo=class{robots;baseURL;settings;endpoint;constructor(){this.robots=[],this.baseURL=process.env.API_URL,this.settings={},this.endpoint=`${this.baseURL}/domains/robots`}async getRobots(){try{let e=await Ie({endpoint:this.endpoint});this.robots=e?.filter(r=>!!r.path).map(({path:r,content:n})=>({path:r,content:n||`User-agent: *
|
|
64
64
|
\r
|
|
65
|
-
\rAllow: /`}))||[]}catch(e){console.warn(`${this.constructor.name}: ${e.message}`)}}async writeFiles(e){let n=(await Me()).dirs(e),i=oi.default.join(n.__cx,"dist");await this.getRobots();let s=this.robots.find(({path:o})=>o===`/${e}`);if(!s){console.log(`Robots not found for ${e}`);return}if($o.default.existsSync(i)){let o=JSON.parse(process.env.GRIDDO_EXPORT_STRIP_DOMAIN_FROM_PATH||"false")?oi.default.join(i,"robots.txt"):oi.default.join(i,s.path,"robots.txt");$o.default.writeFileSync(o,s?.content)}else console.log(`${i} not found`)}},kh=new Lo;var vb=process.env.API_URL,bb={GET_ALL:`${vb}/domains`},ai=class{static async getAll(){let{GET_ALL:e}=bb;return await Ie({endpoint:e})}};async function Th(){await tt.login();let t=await ai.getAll();return _b(t)}function _b(t){let e=t.filter(({slug:r})=>!!r).map(({slug:r})=>r.replace("/",""));return[...new Set(e)]}var Wo=k(require("node:path"));var Gh=k(ze()),Hh=k(ts());var ci=class{static getBody(e,r){let{order:n,sources:i,quantity:s,mode:o,fixed:a,fullRelations:c=!1,allLanguages:d=!1,preferenceLanguage:u=!1,referenceId:h}=e;return o==="auto"?{mode:o,order:n,sources:i,quantity:s,fullRelations:c,allLanguages:d,preferenceLanguage:u}:o==="manual"?{mode:o,fixed:a,fullRelations:c}:o==="navigation"?{mode:o,order:n,quantity:s,fullRelations:c,referenceId:h||r?.structuredDataContent?.id}:(console.log(`Error: Distribuidor mode: ${o} is not recognized on page ${r?.id}.`),e)}static async fetchContentTypeData(e){let{page:r,component:{data:n},cacheKey:i}=e;if(!n)return ft(`Error: Page ${r.id} has \`hasDistributorData: true\` but it doesn't have a \`data\` prop`,"No data in ReferenceField"),[];if(Array.isArray(n.sources)&&n.sources.length<1)return ft(`Warning: Page with id: ${r.id} has a ReferenceField with empty \`data.sources\``,"Empty data.sources in ReferenceField"),[];let{site:s,lang:o}=n,a=this.getBody(n,r);return await ge.getDistributorData(r,a,i,s,o)}static async getDistributorData({page:e,cacheKey:r=""}){try{let{template:n}=e,i=async(a,c=1)=>{if(!(!a||typeof a!="object")&&JSON.stringify(a).includes('"hasDistributorData":true'))for(let d in a){if(d==="queriedItems")continue;let h=a[d];!h||typeof h!="object"||(h.hasDistributorData&&(h.queriedItems=await this.fetchContentTypeData({page:e,cacheKey:r,component:h})),await i(h,c+1))}};return await(async a=>(await i([a]),a))(n)}catch(n){console.error(`Error en get distributor ${n}`),process.exit(1)}}};var ui=class{_defaultHeaders;_defaultFooters;_navigations;constructor(){this._navigations={footers:[],headers:[]},this._defaultHeaders={},this._defaultFooters={}}set navigations(e){this._navigations=e,this._defaultFooters=this.getDefaultFooters(),this._defaultHeaders=this.getDefaultHeaders()}get navigations(){return this._navigations}getDefaultFooters(){return[...this.navigations.footers].filter(i=>!!i.setAsDefault).reduce((i,s)=>{let{language:o}=s;return{...i,[o]:s}},{})}getDefaultHeaders(){return[...this.navigations.headers].filter(i=>!!i.setAsDefault).reduce((i,s)=>{let{language:o}=s;return{...i,[o]:s}},{})}getRightLanguage(e,r,n){if(!e||!r)return null;let s=e.find(o=>o.language===n&&o.navigationLanguages?.find(a=>a.navigationId===r))||e.find(o=>o.id===r);return s?{...s}:null}getPageHeader(e,r){return this.getRightLanguage(this.navigations.headers,e,r)}getPageFooter(e,r){return this.getRightLanguage(this.navigations.footers,e,r)}getPageNavigations(e){let{header:r,footer:n,language:i,template:{templateType:s},templateConfig:{defaultHeader:o,defaultFooter:a,templates:c}}=e,d=b=>{let x=b.find(C=>typeof C=="number");return typeof x=="number"?x:null},u=d([r,c?.[s]?.defaultHeader,o]),h=d([n,c?.[s]?.defaultFooter,a]),g=u?this.getPageHeader(u,i):u===0?null:this._defaultHeaders[i],m=h?this.getPageFooter(h,i):h===0?null:this._defaultFooters[i];return{header:g,footer:m}}};var Bo=class{baseURL;settings;ENDPOINTS;constructor(){this.baseURL=process.env.API_URL,this.settings={cloudinaryName:"",useMetaTitle:!1,useMetaKeywords:!1,showBasicMetaRobots:!1,avoidHrefLangsOnCanonicals:!1,avoidSelfReferenceCanonicals:!1,avoidHrefLangXDefault:!1,avoidDebugMetas:!1},this.ENDPOINTS={settings:`${this.baseURL}/settings`,resetRender:`${this.baseURL}/debug/reset-render`}}async getAll(){let{settings:e}=this.ENDPOINTS,r=await Ie({endpoint:e});this.settings=r}async resetRender(){let{resetRender:e}=this.ENDPOINTS;await It({endpoint:e})}},Uo=new Bo;var Nh=k(ze());function Xo(t,e,r,n="jpg"){let i=typeof t=="string"?t:t?.url;return i?i.split("/")[2].includes("cloudinary.com")?Sb(i,`c_fill,w_${e},h_${r}`):wb(i,`f/${n}/w/${e}/h/${r}`):null}function wb(t,e){let r=t.split("/"),n=r.slice(0,-1).join("/"),i=r.slice(-1)[0];return`${n}/${e}/${i}`}function Sb(t,e){let r=t.replace("https://",""),n=r.split("/").slice(0,4).join("/"),i=r.replace(n,"");return`https://${n}/${e}${i}`}Nh.default.config();var xb=JSON.parse(process.env.GRIDDO_EXPORT_STRIP_DOMAIN_FROM_PATH||"false"),Eb=25;function Cb({socialTitle:t,socialDescription:e,socialImage:r}){return{type:"website",title:t,description:e,image:r?Xo(r,1280,768):"",twitterImage:r?Xo(r,1280,768):""}}function Pb(t){let{title:e,metaTitle:r,metaDescription:n,canonicalURL:i,locale:s,url:o,isIndexed:a,follow:c,metasAdvanced:d,pageLanguages:u,fullUrl:h,metaKeywords:g}=t,m=d?.split(",").filter(Boolean).map(b=>b.trim().toLowerCase())||[];return{title:(r||e||"").trim(),description:n,canonical:i&&i.trim()&&i!==h?i.trim():a?h:void 0,locale:s,url:o,index:a?"index":"noindex",follow:c?"follow":"nofollow",translate:m.includes("notranslate")?"notranslate":"",metasAdvanced:m.filter(b=>b!=="notranslate").join(),pageLanguages:u,metaKeywords:g?.filter(Boolean).map(b=>b.replace(/"/g,"'")).join(", ")}}async function Ho(t,e){let{id:r,title:n,fullPath:i,language:s,breadcrumb:o,socialDescription:a,socialImage:c,socialTitle:d}=t,{baseUrl:u,cloudinaryName:h,griddoVersion:g,siteLangs:m,siteMetadata:b,siteOptions:x,siteScript:C,siteSlug:F,socials:N,theme:U,navigations:{header:$,footer:H}}=e;t.breadcrumb=o,t.siteSlug=F,t.apiUrl=u,t.publicApiUrl=e.publicBaseUrl,t.instance=e.instance;let ue=m.find(({id:R})=>R===t?.language)?.locale.replace(/_/g,"-"),V=Pb(t),_=Cb({socialDescription:a,socialImage:c,socialTitle:d}),S=xb?i.compose:`${i.domain}${i.compose}`,P=new Date().toString();return{path:S,size:void 0,context:{id:r,title:n,fullPath:i,locale:ue,languageId:s,theme:U,siteMetadata:b,pageMetadata:V,openGraph:_,socials:N,siteLangs:m,cloudinaryName:h,siteOptions:x,griddoVersion:g,renderDate:P,siteScript:C,header:$,footer:H,page:t}}}async function jh(t,e){return await Ho(t,e)}async function $h({page:t,pages:e,isRoot:r=!1,defaultLang:n,template:i,totalQueriedItems:s},o){let a=e.map(async(c,d)=>{let u=d===0,h=d+1,{domainUrl:g,compose:m}=t.fullPath,b={...t,fullPath:{...t.fullPath,compose:Go(m,h,{addEndingSlash:!0})},fullUrl:Go(t.fullUrl,h,{addEndingSlash:!0}),slug:Go(t.slug,h),title:qh(t.title,h),metaTitle:qh(t.metaTitle||"",h),disableHrefLangs:h>1,template:{...i,isFirstPage:u,pageNumber:h,totalPages:e.length,baseLink:`${g}${m}`,queriedItems:c,totalQueriedItems:s?.length},isRoot:r,defaultLang:n};return await Ho(b,o)});return Promise.all(a)}function Lh(t,e){let{multiPageElements:r,...n}=t,i=JSON.parse(JSON.stringify(r));i.find(({sectionSlug:o})=>o==="/")||i.push({});let s=i.map(async(o,a)=>{let c=JSON.parse(JSON.stringify(n)),{sectionSlug:d="/",title:u="",metaTitle:h="",metaDescription:g=""}=o,m=typeof u=="string"?u:u.content,b=c.fullPath.compose||"",x=c.fullUrl.endsWith("/")?c.fullUrl.slice(0,-1):c.fullUrl,C=d?.replace(/\//g,""),N=d==="/"?C:C+"/",U=b.endsWith("/")?"":"/",$=`${b}${U}${N}`;return m.trim()&&(c.title=m),g.trim()&&(c.metaDescription=g),c.id=parseInt("-"+c.id+a),c.fullUrl=`${x}/${N}`,c.fullPath.compose=$,c.slug=$,c.template.activeSectionSlug=d,c.template.activeSectionBase=x,c.metaTitle=h.trim()||m.trim()||c.metaTitle,await Ho(c,e)});return Promise.all(s)}function Bh(t){return new Promise(r=>{let n=(i,s=0)=>{if(!(!i||typeof i!="object")){for(let o in i){let a=i[o],c=a||typeof a=="object",d=JSON.stringify(a).includes('"hasGriddoMultiPage":true');if(!c||!d)continue;let{component:u,hasGriddoMultiPage:h,elements:g}=a;u&&h&&r(g||[]),n(a,s+1)}s||r(null)}};n([t])})}function Db(t,e,r){return e?.slice(t*(r-1),t*r)}function Ob(t,e){let r=Math.ceil(e.length/t)||1;return Array.from({length:r},(i,s)=>s+1)?.map(i=>Db(t,e,i))}function Uh(t){let e=t.queriedItems||[],r=t?.itemsPerPage||Eb;return Ob(r,e)}function Mh(t){return t.replace(/\/+$/,"/")}function Go(t,e,r){let n=t.endsWith("/")?"":"/",i=r?.addEndingSlash?"/":"";return e<=1?Mh(`${t}${i}`):Mh(`${t}${n}${e}${i}`)}function qh(t,e){return!t||e<=1?t:`${t} - ${e}`}Gh.default.config();var Ab=process.env.API_URL,Ib=process.env.GRIDDO_REACT_APP_INSTANCE||process.env.REACT_APP_INSTANCE,Xh=parseInt(process.env.GRIDDO_API_CONCURRENCY_COUNT||"10"),Rb=process.env.PUBLIC_API_URL,Fb=new Date().valueOf().toString();async function Wh(t,e){console.info(`API calls with ${Xh} threads`);try{let r=[],n={},{sitesToPublish:i,sitesToUnpublish:s}=await si(e);await Uo.getAll(),i.length||s.length||(console.warn("There are no sites to update"),process.exit(0)),console.info(`Sites to publish: ${ds(i)}`),console.info(`Sites to unpublish: ${ds(s)}`),await Ch(s);for(let o of i){let{id:a,slug:c,theme:d,favicon:u,changedPages:h=[],pages:g=[]}=o,{siteInfo:m,validPagesIds:b,siteHash:x,unpublishHashes:C,siteLangs:F,defaultLang:N,headers:U,footers:$,socials:H}=await Ph(a),{cloudinaryName:Q,useMetaTitle:ue,useMetaKeywords:V,showBasicMetaRobots:_,avoidHrefLangsOnCanonicals:S,avoidSelfReferenceCanonicals:P,avoidHrefLangXDefault:G,avoidDebugMetas:R}=Uo.settings;n[a]={siteHash:x,unpublishHashes:C,publishHashes:[]};let L=new ui;L.navigations={headers:U,footers:$},o.languages=F;let I=yh(a,x),B=m.siteScript,T={siteUrl:m.slug,title:m.name,favicon:u},A={baseUrl:Ab,publicBaseUrl:Rb,instance:Ib,siteSlug:c,theme:d,siteMetadata:T,socials:H,siteLangs:F,cloudinaryName:Q,griddoVersion:vn,siteOptions:{useMetaTitle:ue,useMetaKeywords:V,showBasicMetaRobots:_,avoidHrefLangsOnCanonicals:S,avoidSelfReferenceCanonicals:P,avoidHrefLangXDefault:G,avoidDebugMetas:R},siteScript:B};Be(`${o.name} site`);let M=async p=>{let f=[],v=await ge.getPage(p,I);if(!v)return;r.push(p);let E=JSON.parse(JSON.stringify(A));E.navigations=L.getPageNavigations(v);let w=await ci.getDistributorData({page:v,cacheKey:Fb}),j=await Bh(w),X=v?.mode==="list",J=!X&&j,Ee=!J&&!X;if(X){let fe={page:v,pages:Uh(w),isRoot:!1,defaultLang:N,template:w,totalQueriedItems:w.queriedItems};f=await $h(fe,E)}if(J){let fe=v;fe.template=w,fe.multiPageElements=j,fe.defaultLang=N,f=await Lh(fe,E)}if(Ee){let fe=v;fe.template=w,fe.defaultLang=N,f=[await jh(fe,E)]}v.hash!==null&&n[a].publishHashes.push(v.hash),tf(t,f)},{pagesInStore:Ne,pagesMissingInStore:He,pagesToDeleteFromStore:ee,pagesToWriteToStore:le}=await rf(t,{sitesToPublish:i,pages:g,validPagesIds:b,changedPages:h});xn(t,ee);let Rt=`Store: ${Ne.length} -> ${Ne}
|
|
65
|
+
\rAllow: /`}))||[]}catch(e){console.warn(`${this.constructor.name}: ${e.message}`)}}async writeFiles(e){let n=Me().dirs(e),i=ai.default.join(n.__cx,"dist");await this.getRobots();let s=this.robots.find(({path:o})=>o===`/${e}`);if(!s){console.log(`Robots not found for ${e}`);return}if($o.default.existsSync(i)){let o=JSON.parse(process.env.GRIDDO_EXPORT_STRIP_DOMAIN_FROM_PATH||"false")?ai.default.join(i,"robots.txt"):ai.default.join(i,s.path,"robots.txt");$o.default.writeFileSync(o,s?.content)}else console.log(`${i} not found`)}},Th=new Lo;var bb=process.env.API_URL,_b={GET_ALL:`${bb}/domains`},ci=class{static async getAll(){let{GET_ALL:e}=_b;return await Ie({endpoint:e})}};async function Mh(){await tt.login();let t=await ci.getAll();return wb(t)}function wb(t){let e=t.filter(({slug:r})=>!!r).map(({slug:r})=>r.replace("/",""));return[...new Set(e)]}var Wo=k(require("node:path"));var Hh=k(ze()),Wh=k(ts());var ui=class{static getBody(e,r){let{order:n,sources:i,quantity:s,mode:o,fixed:a,fullRelations:c=!1,allLanguages:d=!1,preferenceLanguage:u=!1,referenceId:h}=e;return o==="auto"?{mode:o,order:n,sources:i,quantity:s,fullRelations:c,allLanguages:d,preferenceLanguage:u}:o==="manual"?{mode:o,fixed:a,fullRelations:c}:o==="navigation"?{mode:o,order:n,quantity:s,fullRelations:c,referenceId:h||r?.structuredDataContent?.id}:(console.log(`Error: Distribuidor mode: ${o} is not recognized on page ${r?.id}.`),e)}static async fetchContentTypeData(e){let{page:r,component:{data:n},cacheKey:i}=e;if(!n)return ft(`Error: Page ${r.id} has \`hasDistributorData: true\` but it doesn't have a \`data\` prop`,"No data in ReferenceField"),[];if(Array.isArray(n.sources)&&n.sources.length<1)return ft(`Warning: Page with id: ${r.id} has a ReferenceField with empty \`data.sources\``,"Empty data.sources in ReferenceField"),[];let{site:s,lang:o}=n,a=this.getBody(n,r);return await ge.getDistributorData(r,a,i,s,o)}static async getDistributorData({page:e,cacheKey:r=""}){try{let{template:n}=e,i=async(a,c=1)=>{if(!(!a||typeof a!="object")&&JSON.stringify(a).includes('"hasDistributorData":true'))for(let d in a){if(d==="queriedItems")continue;let h=a[d];!h||typeof h!="object"||(h.hasDistributorData&&(h.queriedItems=await this.fetchContentTypeData({page:e,cacheKey:r,component:h})),await i(h,c+1))}};return await(async a=>(await i([a]),a))(n)}catch(n){console.error(`Error en get distributor ${n}`),process.exit(1)}}};var li=class{_defaultHeaders;_defaultFooters;_navigations;constructor(){this._navigations={footers:[],headers:[]},this._defaultHeaders={},this._defaultFooters={}}set navigations(e){this._navigations=e,this._defaultFooters=this.getDefaultFooters(),this._defaultHeaders=this.getDefaultHeaders()}get navigations(){return this._navigations}getDefaultFooters(){return[...this.navigations.footers].filter(i=>!!i.setAsDefault).reduce((i,s)=>{let{language:o}=s;return{...i,[o]:s}},{})}getDefaultHeaders(){return[...this.navigations.headers].filter(i=>!!i.setAsDefault).reduce((i,s)=>{let{language:o}=s;return{...i,[o]:s}},{})}getRightLanguage(e,r,n){if(!e||!r)return null;let s=e.find(o=>o.language===n&&o.navigationLanguages?.find(a=>a.navigationId===r))||e.find(o=>o.id===r);return s?{...s}:null}getPageHeader(e,r){return this.getRightLanguage(this.navigations.headers,e,r)}getPageFooter(e,r){return this.getRightLanguage(this.navigations.footers,e,r)}getPageNavigations(e){let{header:r,footer:n,language:i,template:{templateType:s},templateConfig:{defaultHeader:o,defaultFooter:a,templates:c}}=e,d=b=>{let x=b.find(C=>typeof C=="number");return typeof x=="number"?x:null},u=d([r,c?.[s]?.defaultHeader,o]),h=d([n,c?.[s]?.defaultFooter,a]),g=u?this.getPageHeader(u,i):u===0?null:this._defaultHeaders[i],m=h?this.getPageFooter(h,i):h===0?null:this._defaultFooters[i];return{header:g,footer:m}}};var Bo=class{baseURL;settings;ENDPOINTS;constructor(){this.baseURL=process.env.API_URL,this.settings={cloudinaryName:"",useMetaTitle:!1,useMetaKeywords:!1,showBasicMetaRobots:!1,avoidHrefLangsOnCanonicals:!1,avoidSelfReferenceCanonicals:!1,avoidHrefLangXDefault:!1,avoidDebugMetas:!1},this.ENDPOINTS={settings:`${this.baseURL}/settings`,resetRender:`${this.baseURL}/debug/reset-render`}}async getAll(){let{settings:e}=this.ENDPOINTS,r=await Ie({endpoint:e});this.settings=r}async resetRender(){let{resetRender:e}=this.ENDPOINTS;await It({endpoint:e})}},Uo=new Bo;var jh=k(ze());function Xo(t,e,r,n="jpg"){let i=typeof t=="string"?t:t?.url;return i?i.split("/")[2].includes("cloudinary.com")?xb(i,`c_fill,w_${e},h_${r}`):Sb(i,`f/${n}/w/${e}/h/${r}`):null}function Sb(t,e){let r=t.split("/"),n=r.slice(0,-1).join("/"),i=r.slice(-1)[0];return`${n}/${e}/${i}`}function xb(t,e){let r=t.replace("https://",""),n=r.split("/").slice(0,4).join("/"),i=r.replace(n,"");return`https://${n}/${e}${i}`}jh.default.config();var Eb=JSON.parse(process.env.GRIDDO_EXPORT_STRIP_DOMAIN_FROM_PATH||"false"),Cb=25;function Pb({socialTitle:t,socialDescription:e,socialImage:r}){return{type:"website",title:t,description:e,image:r?Xo(r,1280,768):"",twitterImage:r?Xo(r,1280,768):""}}function Db(t){let{title:e,metaTitle:r,metaDescription:n,canonicalURL:i,locale:s,url:o,isIndexed:a,follow:c,metasAdvanced:d,pageLanguages:u,fullUrl:h,metaKeywords:g}=t,m=d?.split(",").filter(Boolean).map(b=>b.trim().toLowerCase())||[];return{title:(r||e||"").trim(),description:n,canonical:i&&i.trim()&&i!==h?i.trim():a?h:void 0,locale:s,url:o,index:a?"index":"noindex",follow:c?"follow":"nofollow",translate:m.includes("notranslate")?"notranslate":"",metasAdvanced:m.filter(b=>b!=="notranslate").join(),pageLanguages:u,metaKeywords:g?.filter(Boolean).map(b=>b.replace(/"/g,"'")).join(", ")}}async function Ho(t,e){let{id:r,title:n,fullPath:i,language:s,breadcrumb:o,socialDescription:a,socialImage:c,socialTitle:d}=t,{baseUrl:u,cloudinaryName:h,griddoVersion:g,siteLangs:m,siteMetadata:b,siteOptions:x,siteScript:C,siteSlug:F,socials:N,theme:U,navigations:{header:$,footer:H}}=e;t.breadcrumb=o,t.siteSlug=F,t.apiUrl=u,t.publicApiUrl=e.publicBaseUrl,t.instance=e.instance;let ue=m.find(({id:R})=>R===t?.language)?.locale.replace(/_/g,"-"),V=Db(t),_=Pb({socialDescription:a,socialImage:c,socialTitle:d}),S=Eb?i.compose:`${i.domain}${i.compose}`,P=new Date().toString();return{path:S,size:void 0,context:{id:r,title:n,fullPath:i,locale:ue,languageId:s,theme:U,siteMetadata:b,pageMetadata:V,openGraph:_,socials:N,siteLangs:m,cloudinaryName:h,siteOptions:x,griddoVersion:g,renderDate:P,siteScript:C,header:$,footer:H,page:t}}}async function $h(t,e){return await Ho(t,e)}async function Lh({page:t,pages:e,isRoot:r=!1,defaultLang:n,template:i,totalQueriedItems:s},o){let a=e.map(async(c,d)=>{let u=d===0,h=d+1,{domainUrl:g,compose:m}=t.fullPath,b={...t,id:parseInt("-"+t.id+d),fullPath:{...t.fullPath,compose:Go(m,h,{addEndingSlash:!0})},fullUrl:Go(t.fullUrl,h,{addEndingSlash:!0}),slug:Go(t.slug,h),title:Nh(t.title,h),metaTitle:Nh(t.metaTitle||"",h),disableHrefLangs:h>1,template:{...i,isFirstPage:u,pageNumber:h,totalPages:e.length,baseLink:`${g}${m}`,queriedItems:c,totalQueriedItems:s?.length},isRoot:r,defaultLang:n};return await Ho(b,o)});return Promise.all(a)}function Bh(t,e){let{multiPageElements:r,...n}=t,i=JSON.parse(JSON.stringify(r));i.find(({sectionSlug:o})=>o==="/")||i.push({});let s=i.map(async(o,a)=>{let c=JSON.parse(JSON.stringify(n)),{sectionSlug:d="/",title:u="",metaTitle:h="",metaDescription:g=""}=o,m=typeof u=="string"?u:u.content,b=c.fullPath.compose||"",x=c.fullUrl.endsWith("/")?c.fullUrl.slice(0,-1):c.fullUrl,C=d?.replace(/\//g,""),N=d==="/"?C:C+"/",U=b.endsWith("/")?"":"/",$=`${b}${U}${N}`;return m.trim()&&(c.title=m),g.trim()&&(c.metaDescription=g),c.id=parseInt("-"+c.id+a),c.fullUrl=`${x}/${N}`,c.fullPath.compose=$,c.slug=$,c.template.activeSectionSlug=d,c.template.activeSectionBase=x,c.metaTitle=h.trim()||m.trim()||c.metaTitle,await Ho(c,e)});return Promise.all(s)}function Uh(t){return new Promise(r=>{let n=(i,s=0)=>{if(!(!i||typeof i!="object")){for(let o in i){let a=i[o],c=a||typeof a=="object",d=JSON.stringify(a).includes('"hasGriddoMultiPage":true');if(!c||!d)continue;let{component:u,hasGriddoMultiPage:h,elements:g}=a;u&&h&&r(g||[]),n(a,s+1)}s||r(null)}};n([t])})}function Ob(t,e,r){return e?.slice(t*(r-1),t*r)}function Ab(t,e){let r=Math.ceil(e.length/t)||1;return Array.from({length:r},(i,s)=>s+1)?.map(i=>Ob(t,e,i))}function Xh(t){let e=t.queriedItems||[],r=t?.itemsPerPage||Cb;return Ab(r,e)}function qh(t){return t.replace(/\/+$/,"/")}function Go(t,e,r){let n=t.endsWith("/")?"":"/",i=r?.addEndingSlash?"/":"";return e<=1?qh(`${t}${i}`):qh(`${t}${n}${e}${i}`)}function Nh(t,e){return!t||e<=1?t:`${t} - ${e}`}Hh.default.config();var Ib=process.env.API_URL,Rb=process.env.GRIDDO_REACT_APP_INSTANCE||process.env.REACT_APP_INSTANCE,Gh=parseInt(process.env.GRIDDO_API_CONCURRENCY_COUNT||"10"),Fb=process.env.PUBLIC_API_URL,kb=new Date().valueOf().toString();async function Jh(t,e){console.info(`API calls with ${Gh} threads`);try{let r=[],n={},{sitesToPublish:i,sitesToUnpublish:s}=await oi(e);await Uo.getAll(),i.length||s.length||(console.warn("There are no sites to update"),process.exit(0)),console.info(`Sites to publish: ${ds(i)}`),console.info(`Sites to unpublish: ${ds(s)}`),await Ph(s);for(let o of i){let{id:a,slug:c,theme:d,favicon:u,changedPages:h=[],pages:g=[]}=o,{siteInfo:m,validPagesIds:b,siteHash:x,unpublishHashes:C,siteLangs:F,defaultLang:N,headers:U,footers:$,socials:H}=await Dh(a),{cloudinaryName:Q,useMetaTitle:ue,useMetaKeywords:V,showBasicMetaRobots:_,avoidHrefLangsOnCanonicals:S,avoidSelfReferenceCanonicals:P,avoidHrefLangXDefault:G,avoidDebugMetas:R}=Uo.settings;n[a]={siteHash:x,unpublishHashes:C,publishHashes:[]};let L=new li;L.navigations={headers:U,footers:$},o.languages=F;let I=vh(a,x),B=m.siteScript,T={siteUrl:m.slug,title:m.name,favicon:u},A={baseUrl:Ib,publicBaseUrl:Fb,instance:Rb,siteSlug:c,theme:d,siteMetadata:T,socials:H,siteLangs:F,cloudinaryName:Q,griddoVersion:bn,siteOptions:{useMetaTitle:ue,useMetaKeywords:V,showBasicMetaRobots:_,avoidHrefLangsOnCanonicals:S,avoidSelfReferenceCanonicals:P,avoidHrefLangXDefault:G,avoidDebugMetas:R},siteScript:B};Be(`${o.name} site`);let M=async p=>{let f=[],v=await ge.getPage(p,I);if(!v)return;r.push(p);let E=JSON.parse(JSON.stringify(A));E.navigations=L.getPageNavigations(v);let w=await ui.getDistributorData({page:v,cacheKey:kb}),j=await Uh(w),X=v?.mode==="list",J=!X&&j,Ee=!J&&!X;if(X){let fe={page:v,pages:Xh(w),isRoot:!1,defaultLang:N,template:w,totalQueriedItems:w.queriedItems};f=await Lh(fe,E)}if(J){let fe=v;fe.template=w,fe.multiPageElements=j,fe.defaultLang=N,f=await Bh(fe,E)}if(Ee){let fe=v;fe.template=w,fe.defaultLang=N,f=[await $h(fe,E)]}v.hash!==null&&n[a].publishHashes.push(v.hash),rf(t,f)},{pagesInStore:Ne,pagesMissingInStore:He,pagesToDeleteFromStore:ee,pagesToWriteToStore:le}=await nf(t,{sitesToPublish:i,pages:g,validPagesIds:b,changedPages:h});En(t,ee);let Rt=`Store: ${Ne.length} -> ${Ne}
|
|
66
66
|
ValidPages: ${b.length} -> ${b}
|
|
67
67
|
Changed: ${h.length} -> ${h}
|
|
68
68
|
Deleted/Unpublished: ${ee.length} -> ${ee}
|
|
69
69
|
Missing in store: ${He.length} -> ${He}
|
|
70
|
-
Finally to store: ${le.length} -> ${le}`;JSON.parse(process.env.GRIDDO_DEBUG_LOGS||"false")&&ft(Rt,`Site store: ${o.name}`,1,0);let xe=(0,
|
|
70
|
+
Finally to store: ${le.length} -> ${le}`;JSON.parse(process.env.GRIDDO_DEBUG_LOGS||"false")&&ft(Rt,`Site store: ${o.name}`,1,0);let xe=(0,Wh.default)(Gh),l=le.map(p=>xe(()=>M(p)));await Promise.all(l)}tf(t,{buildProcessData:n,createdPages:r,sitesToPublish:i})}catch(r){console.error(r.message),process.exit(1)}}var zh=Wo.default.resolve(__dirname,"../store/"),Tb=Wo.default.resolve(__dirname,"../apiCache");async function Vh(t){ph(),ef(zh),await Jh(zh,t),Hl(Tb)}var Yh=k(require("node:fs")),fi=k(require("node:path"));var Mb=process.env.API_URL;async function qb(t){let{title:e,description:r,image:n,pageId:i,languageId:s,siteId:o,url:a,content:c,template:d}=t;return await It({endpoint:`${Mb}/search`,body:{title:e,description:r,image:n,pageId:i,languageId:s,siteId:o,url:a,template:d,content:Nb(c)}})}function Nb(t){let e=jb(["meta","link","style","script","noscript","nav","header","footer"],t),r=$b(e);return Lb(r)}function jb(t,e){let r=e;return t.forEach(n=>{r=r.replace(new RegExp(`<${n}.*?>.*?</${n}>`,"gis")," ").replace(new RegExp(`(<${n}([^>]+)>)`,"gis")," ")}),r}function $b(t){return t.replace(/(<([^>]+)>)/gis," ")}function Lb(t){return t.replace(/\s+/g," ")}async function Kh(){let t=fi.default.resolve(__dirname,"../store"),e=JSON.parse(process.env.GRIDDO_EXPORT_STRIP_DOMAIN_FROM_PATH||"false");for await(let r of vs(t)){let{context:{page:n,openGraph:i}}=r,{compose:s,domain:o}=n.fullPath,a=e?fi.default.resolve(__dirname,`../dist/${s}/index.html`):fi.default.resolve(__dirname,`../dist${o}${s}/index.html`),c=Yh.default.readFileSync(a).toString(),d={siteId:n.site,pageId:n.id,title:n.title,languageId:n.language,url:n.fullUrl,template:n.template.templateType||n.templateId,description:i.description,image:i.image,content:c};await qb(d)}}async function Jo(){Gl("gatsby");let t=await Mh(),e=Me();for(let r of t){let n=Rh(r),{__components:i,__cx:s}=e.dirs(r),o=Fh(r),a=!!o&&o!=="";await Qe({name:"Prepare",steps:[()=>sf({artifacts:["static"],from:i,to:s}),n.init,()=>Ke("Prepared LifeCycle")],attempts:gt.prepare}),await Qe({name:"Restore",attempts:gt.restore,steps:[n.restoreArtifacts,n.restoreCacheArtifacts,()=>Ke("Restore LifeCycle")]}),await Qe({name:"Data",attempts:gt.data,steps:[()=>Vh(r),()=>Ke("Data LifeCycle")]}),await Qe({name:"SSG",attempts:gt.ssg,steps:[n.runGatsbyBuild,()=>Ke("SSG LifeCycle")]}),await Qe({name:"Relocation",steps:[()=>Ql(r,a),()=>Ke("Relocation LifeCycle")]});let c=JSON.parse(process.env.GRIDDO_SEARCH_FEATURE||"false");await Qe({name:"Meta",attempts:gt.meta,steps:[()=>Oh(),()=>Th.writeFiles(r),()=>Ah(),()=>c?Kh():void 0,()=>Ke("Meta LifeCycle")]}),await Qe({name:"Archive",attempts:gt.archive,steps:[af,()=>Ss(),n.removeDisposableArtifacts,n.archiveArtifacts,n.archiveCacheArtifacts,()=>Ke("Archive LifeCycle")]}),await Qe({name:"Clean",steps:[()=>of({from:s,artifacts:["static","apiCache"]}),()=>Ke("Clean LifeCycle")],attempts:gt.clean})}}async function Bb(){let t=await hs(()=>Jo()).catch(e=>{console.log(e),console.log("[[[ Render will be reset ]]]"),process.exit(1)});ft(`All domains rendered in ${t}s.`,"",1,0),process.exit(0)}Bb().catch(t=>{console.error("Error in main():",t?.stdout?.toString()||t),process.exit(1)});
|