@griddo/cx 10.4.1 → 10.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,34 +1,34 @@
1
- "use strict";var Hd=Object.create;var oo=Object.defineProperty;var Gd=Object.getOwnPropertyDescriptor;var zd=Object.getOwnPropertyNames;var Wd=Object.getPrototypeOf,Jd=Object.prototype.hasOwnProperty;var y=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Vd=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of zd(e))!Jd.call(t,i)&&i!==r&&oo(t,i,{get:()=>e[i],enumerable:!(n=Gd(e,i))||n.enumerable});return t};var z=(t,e,r)=>(r=t!=null?Hd(Wd(t)):{},Vd(e||!t||!t.__esModule?oo(r,"default",{value:t,enumerable:!0}):r,t));var Ln=y((mv,ao)=>{"use strict";ao.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 de=y((gv,lo)=>{"use strict";var Kd=Ln(),et=Object.prototype.toString;function Un(t){return et.call(t)==="[object Array]"}function $n(t){return typeof t>"u"}function Yd(t){return t!==null&&!$n(t)&&t.constructor!==null&&!$n(t.constructor)&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function Qd(t){return et.call(t)==="[object ArrayBuffer]"}function Zd(t){return typeof FormData<"u"&&t instanceof FormData}function eh(t){var e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&t.buffer instanceof ArrayBuffer,e}function th(t){return typeof t=="string"}function rh(t){return typeof t=="number"}function uo(t){return t!==null&&typeof t=="object"}function _r(t){if(et.call(t)!=="[object Object]")return!1;var e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}function nh(t){return et.call(t)==="[object Date]"}function ih(t){return et.call(t)==="[object File]"}function sh(t){return et.call(t)==="[object Blob]"}function co(t){return et.call(t)==="[object Function]"}function oh(t){return uo(t)&&co(t.pipe)}function ah(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}function uh(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function ch(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function Xn(t,e){if(!(t===null||typeof t>"u"))if(typeof t!="object"&&(t=[t]),Un(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 Bn(){var t={};function e(i,s){_r(t[s])&&_r(i)?t[s]=Bn(t[s],i):_r(i)?t[s]=Bn({},i):Un(i)?t[s]=i.slice():t[s]=i}for(var r=0,n=arguments.length;r<n;r++)Xn(arguments[r],e);return t}function lh(t,e,r){return Xn(e,function(i,s){r&&typeof i=="function"?t[s]=Kd(i,r):t[s]=i}),t}function fh(t){return t.charCodeAt(0)===65279&&(t=t.slice(1)),t}lo.exports={isArray:Un,isArrayBuffer:Qd,isBuffer:Yd,isFormData:Zd,isArrayBufferView:eh,isString:th,isNumber:rh,isObject:uo,isPlainObject:_r,isUndefined:$n,isDate:nh,isFile:ih,isBlob:sh,isFunction:co,isStream:oh,isURLSearchParams:ah,isStandardBrowserEnv:ch,forEach:Xn,merge:Bn,extend:lh,trim:uh,stripBOM:fh}});var wr=y((yv,ho)=>{"use strict";var dt=de();function fo(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}ho.exports=function(e,r,n){if(!r)return e;var i;if(n)i=n(r);else if(dt.isURLSearchParams(r))i=r.toString();else{var s=[];dt.forEach(r,function(u,h){u===null||typeof u>"u"||(dt.isArray(u)?h=h+"[]":u=[u],dt.forEach(u,function(p){dt.isDate(p)?p=p.toISOString():dt.isObject(p)&&(p=JSON.stringify(p)),s.push(fo(h)+"="+fo(p))}))}),i=s.join("&")}if(i){var o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}});var mo=y((vv,po)=>{"use strict";var dh=de();function xr(){this.handlers=[]}xr.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};xr.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)};xr.prototype.forEach=function(e){dh.forEach(this.handlers,function(n){n!==null&&e(n)})};po.exports=xr});var yo=y((bv,go)=>{"use strict";var hh=de();go.exports=function(e,r){hh.forEach(e,function(i,s){s!==r&&s.toUpperCase()===r.toUpperCase()&&(e[r]=i,delete e[s])})}});var Sr=y((_v,vo)=>{"use strict";vo.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 Er=y((wv,bo)=>{"use strict";var ph=Sr();bo.exports=function(e,r,n,i,s){var o=new Error(e);return ph(o,r,n,i,s)}});var Hn=y((xv,_o)=>{"use strict";var mh=Er();_o.exports=function(e,r,n){var i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):r(mh("Request failed with status code "+n.status,n.config,null,n.request,n))}});var xo=y((Sv,wo)=>{"use strict";var Cr=de();wo.exports=Cr.isStandardBrowserEnv()?function(){return{write:function(r,n,i,s,o,a){var u=[];u.push(r+"="+encodeURIComponent(n)),Cr.isNumber(i)&&u.push("expires="+new Date(i).toGMTString()),Cr.isString(s)&&u.push("path="+s),Cr.isString(o)&&u.push("domain="+o),a===!0&&u.push("secure"),document.cookie=u.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 Eo=y((Ev,So)=>{"use strict";So.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}});var Po=y((Cv,Co)=>{"use strict";Co.exports=function(e,r){return r?e.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):e}});var Gn=y((Pv,Oo)=>{"use strict";var gh=Eo(),yh=Po();Oo.exports=function(e,r){return e&&!gh(r)?yh(e,r):r}});var Io=y((Ov,Do)=>{"use strict";var zn=de(),vh=["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"];Do.exports=function(e){var r={},n,i,s;return e&&zn.forEach(e.split(`
2
- `),function(a){if(s=a.indexOf(":"),n=zn.trim(a.substr(0,s)).toLowerCase(),i=zn.trim(a.substr(s+1)),n){if(r[n]&&vh.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 Ro=y((Dv,Ao)=>{"use strict";var Fo=de();Ao.exports=Fo.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=Fo.isString(o)?i(o):o;return a.protocol===n.protocol&&a.host===n.host}}():function(){return function(){return!0}}()});var Mo=y((Iv,ko)=>{"use strict";var Pr=de(),bh=Hn(),_h=xo(),wh=wr(),xh=Gn(),Sh=Io(),Eh=Ro(),Wn=Er();ko.exports=function(e){return new Promise(function(n,i){var s=e.data,o=e.headers,a=e.responseType;Pr.isFormData(s)&&delete o["Content-Type"];var u=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"",c=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.Authorization="Basic "+btoa(h+":"+c)}var p=xh(e.baseURL,e.url);u.open(e.method.toUpperCase(),wh(p,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function g(){if(u){var b="getAllResponseHeaders"in u?Sh(u.getAllResponseHeaders()):null,x=!a||a==="text"||a==="json"?u.responseText:u.response,S={data:x,status:u.status,statusText:u.statusText,headers:b,config:e,request:u};bh(n,i,S),u=null}}if("onloadend"in u?u.onloadend=g:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(g)},u.onabort=function(){u&&(i(Wn("Request aborted",e,"ECONNABORTED",u)),u=null)},u.onerror=function(){i(Wn("Network Error",e,null,u)),u=null},u.ontimeout=function(){var x="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(x=e.timeoutErrorMessage),i(Wn(x,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",u)),u=null},Pr.isStandardBrowserEnv()){var m=(e.withCredentials||Eh(p))&&e.xsrfCookieName?_h.read(e.xsrfCookieName):void 0;m&&(o[e.xsrfHeaderName]=m)}"setRequestHeader"in u&&Pr.forEach(o,function(x,S){typeof s>"u"&&S.toLowerCase()==="content-type"?delete o[S]:u.setRequestHeader(S,x)}),Pr.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),a&&a!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",e.onDownloadProgress),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(x){u&&(u.abort(),i(x),u=null)}),s||(s=null),u.send(s)})}});var To=y((Fv,qo)=>{var ht=1e3,pt=ht*60,mt=pt*60,tt=mt*24,Ch=tt*7,Ph=tt*365.25;qo.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return Oh(t);if(r==="number"&&isFinite(t))return e.long?Ih(t):Dh(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function Oh(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*Ph;case"weeks":case"week":case"w":return r*Ch;case"days":case"day":case"d":return r*tt;case"hours":case"hour":case"hrs":case"hr":case"h":return r*mt;case"minutes":case"minute":case"mins":case"min":case"m":return r*pt;case"seconds":case"second":case"secs":case"sec":case"s":return r*ht;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Dh(t){var e=Math.abs(t);return e>=tt?Math.round(t/tt)+"d":e>=mt?Math.round(t/mt)+"h":e>=pt?Math.round(t/pt)+"m":e>=ht?Math.round(t/ht)+"s":t+"ms"}function Ih(t){var e=Math.abs(t);return e>=tt?Or(t,e,tt,"day"):e>=mt?Or(t,e,mt,"hour"):e>=pt?Or(t,e,pt,"minute"):e>=ht?Or(t,e,ht,"second"):t+" ms"}function Or(t,e,r,n){var i=e>=r*1.5;return Math.round(t/r)+" "+n+(i?"s":"")}});var Jn=y((Av,No)=>{function Fh(t){r.debug=r,r.default=r,r.coerce=u,r.disable=s,r.enable=i,r.enabled=o,r.humanize=To(),r.destroy=h,Object.keys(t).forEach(c=>{r[c]=t[c]}),r.names=[],r.skips=[],r.formatters={};function e(c){let p=0;for(let g=0;g<c.length;g++)p=(p<<5)-p+c.charCodeAt(g),p|=0;return r.colors[Math.abs(p)%r.colors.length]}r.selectColor=e;function r(c){let p,g=null,m,b;function x(...S){if(!x.enabled)return;let F=x,L=Number(new Date),B=L-(p||L);F.diff=B,F.prev=p,F.curr=L,p=L,S[0]=r.coerce(S[0]),typeof S[0]!="string"&&S.unshift("%O");let G=0;S[0]=S[0].replace(/%([a-zA-Z%])/g,(ye,Oe)=>{if(ye==="%%")return"%";G++;let Q=r.formatters[Oe];if(typeof Q=="function"){let O=S[G];ye=Q.call(F,O),S.splice(G,1),G--}return ye}),r.formatArgs.call(F,S),(F.log||r.log).apply(F,S)}return x.namespace=c,x.useColors=r.useColors(),x.color=r.selectColor(c),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(c)),b),set:S=>{g=S}}),typeof r.init=="function"&&r.init(x),x}function n(c,p){let g=r(this.namespace+(typeof p>"u"?":":p)+c);return g.log=this.log,g}function i(c){r.save(c),r.namespaces=c,r.names=[],r.skips=[];let p,g=(typeof c=="string"?c:"").split(/[\s,]+/),m=g.length;for(p=0;p<m;p++)g[p]&&(c=g[p].replace(/\*/g,".*?"),c[0]==="-"?r.skips.push(new RegExp("^"+c.slice(1)+"$")):r.names.push(new RegExp("^"+c+"$")))}function s(){let c=[...r.names.map(a),...r.skips.map(a).map(p=>"-"+p)].join(",");return r.enable(""),c}function o(c){if(c[c.length-1]==="*")return!0;let p,g;for(p=0,g=r.skips.length;p<g;p++)if(r.skips[p].test(c))return!1;for(p=0,g=r.names.length;p<g;p++)if(r.names[p].test(c))return!0;return!1}function a(c){return c.toString().substring(2,c.toString().length-2).replace(/\.\*\?$/,"*")}function u(c){return c instanceof Error?c.stack||c.message:c}function h(){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}No.exports=Fh});var jo=y((Ee,Dr)=>{Ee.formatArgs=Rh;Ee.save=kh;Ee.load=Mh;Ee.useColors=Ah;Ee.storage=qh();Ee.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`."))}})();Ee.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 Ah(){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 Rh(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+Dr.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)}Ee.log=console.debug||console.log||(()=>{});function kh(t){try{t?Ee.storage.setItem("debug",t):Ee.storage.removeItem("debug")}catch{}}function Mh(){let t;try{t=Ee.storage.getItem("debug")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function qh(){try{return localStorage}catch{}}Dr.exports=Jn()(Ee);var{formatters:Th}=Dr.exports;Th.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var $o=y((Rv,Lo)=>{"use strict";Lo.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 Yn=y((kv,Uo)=>{"use strict";var Nh=require("os"),Bo=require("tty"),Fe=$o(),{env:Z}=process,Xe;Fe("no-color")||Fe("no-colors")||Fe("color=false")||Fe("color=never")?Xe=0:(Fe("color")||Fe("colors")||Fe("color=true")||Fe("color=always"))&&(Xe=1);"FORCE_COLOR"in Z&&(Z.FORCE_COLOR==="true"?Xe=1:Z.FORCE_COLOR==="false"?Xe=0:Xe=Z.FORCE_COLOR.length===0?1:Math.min(parseInt(Z.FORCE_COLOR,10),3));function Vn(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function Kn(t,e){if(Xe===0)return 0;if(Fe("color=16m")||Fe("color=full")||Fe("color=truecolor"))return 3;if(Fe("color=256"))return 2;if(t&&!e&&Xe===void 0)return 0;let r=Xe||0;if(Z.TERM==="dumb")return r;if(process.platform==="win32"){let n=Nh.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in Z)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in Z)||Z.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in Z)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Z.TEAMCITY_VERSION)?1:0;if(Z.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Z){let n=parseInt((Z.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Z.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Z.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Z.TERM)||"COLORTERM"in Z?1:r}function jh(t){let e=Kn(t,t&&t.isTTY);return Vn(e)}Uo.exports={supportsColor:jh,stdout:Vn(Kn(!0,Bo.isatty(1))),stderr:Vn(Kn(!0,Bo.isatty(2)))}});var Ho=y((ne,Fr)=>{var Lh=require("tty"),Ir=require("util");ne.init=zh;ne.log=Xh;ne.formatArgs=Bh;ne.save=Hh;ne.load=Gh;ne.useColors=$h;ne.destroy=Ir.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");ne.colors=[6,2,3,4,5,1];try{let t=Yn();t&&(t.stderr||t).level>=2&&(ne.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{}ne.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 $h(){return"colors"in ne.inspectOpts?!!ne.inspectOpts.colors:Lh.isatty(process.stderr.fd)}function Bh(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(`
1
+ "use strict";var Hd=Object.create;var oo=Object.defineProperty;var Gd=Object.getOwnPropertyDescriptor;var zd=Object.getOwnPropertyNames;var Wd=Object.getPrototypeOf,Jd=Object.prototype.hasOwnProperty;var y=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Vd=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of zd(e))!Jd.call(t,i)&&i!==r&&oo(t,i,{get:()=>e[i],enumerable:!(n=Gd(e,i))||n.enumerable});return t};var z=(t,e,r)=>(r=t!=null?Hd(Wd(t)):{},Vd(e||!t||!t.__esModule?oo(r,"default",{value:t,enumerable:!0}):r,t));var Ln=y((mv,ao)=>{"use strict";ao.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 de=y((gv,lo)=>{"use strict";var Yd=Ln(),et=Object.prototype.toString;function Un(t){return et.call(t)==="[object Array]"}function $n(t){return typeof t>"u"}function Kd(t){return t!==null&&!$n(t)&&t.constructor!==null&&!$n(t.constructor)&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function Qd(t){return et.call(t)==="[object ArrayBuffer]"}function Zd(t){return typeof FormData<"u"&&t instanceof FormData}function eh(t){var e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&t.buffer instanceof ArrayBuffer,e}function th(t){return typeof t=="string"}function rh(t){return typeof t=="number"}function uo(t){return t!==null&&typeof t=="object"}function wr(t){if(et.call(t)!=="[object Object]")return!1;var e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}function nh(t){return et.call(t)==="[object Date]"}function ih(t){return et.call(t)==="[object File]"}function sh(t){return et.call(t)==="[object Blob]"}function co(t){return et.call(t)==="[object Function]"}function oh(t){return uo(t)&&co(t.pipe)}function ah(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}function uh(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function ch(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function Xn(t,e){if(!(t===null||typeof t>"u"))if(typeof t!="object"&&(t=[t]),Un(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 Bn(){var t={};function e(i,s){wr(t[s])&&wr(i)?t[s]=Bn(t[s],i):wr(i)?t[s]=Bn({},i):Un(i)?t[s]=i.slice():t[s]=i}for(var r=0,n=arguments.length;r<n;r++)Xn(arguments[r],e);return t}function lh(t,e,r){return Xn(e,function(i,s){r&&typeof i=="function"?t[s]=Yd(i,r):t[s]=i}),t}function fh(t){return t.charCodeAt(0)===65279&&(t=t.slice(1)),t}lo.exports={isArray:Un,isArrayBuffer:Qd,isBuffer:Kd,isFormData:Zd,isArrayBufferView:eh,isString:th,isNumber:rh,isObject:uo,isPlainObject:wr,isUndefined:$n,isDate:nh,isFile:ih,isBlob:sh,isFunction:co,isStream:oh,isURLSearchParams:ah,isStandardBrowserEnv:ch,forEach:Xn,merge:Bn,extend:lh,trim:uh,stripBOM:fh}});var _r=y((yv,ho)=>{"use strict";var dt=de();function fo(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}ho.exports=function(e,r,n){if(!r)return e;var i;if(n)i=n(r);else if(dt.isURLSearchParams(r))i=r.toString();else{var s=[];dt.forEach(r,function(u,h){u===null||typeof u>"u"||(dt.isArray(u)?h=h+"[]":u=[u],dt.forEach(u,function(p){dt.isDate(p)?p=p.toISOString():dt.isObject(p)&&(p=JSON.stringify(p)),s.push(fo(h)+"="+fo(p))}))}),i=s.join("&")}if(i){var o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}});var mo=y((vv,po)=>{"use strict";var dh=de();function xr(){this.handlers=[]}xr.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};xr.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)};xr.prototype.forEach=function(e){dh.forEach(this.handlers,function(n){n!==null&&e(n)})};po.exports=xr});var yo=y((bv,go)=>{"use strict";var hh=de();go.exports=function(e,r){hh.forEach(e,function(i,s){s!==r&&s.toUpperCase()===r.toUpperCase()&&(e[r]=i,delete e[s])})}});var Sr=y((wv,vo)=>{"use strict";vo.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 Er=y((_v,bo)=>{"use strict";var ph=Sr();bo.exports=function(e,r,n,i,s){var o=new Error(e);return ph(o,r,n,i,s)}});var Hn=y((xv,wo)=>{"use strict";var mh=Er();wo.exports=function(e,r,n){var i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):r(mh("Request failed with status code "+n.status,n.config,null,n.request,n))}});var xo=y((Sv,_o)=>{"use strict";var Cr=de();_o.exports=Cr.isStandardBrowserEnv()?function(){return{write:function(r,n,i,s,o,a){var u=[];u.push(r+"="+encodeURIComponent(n)),Cr.isNumber(i)&&u.push("expires="+new Date(i).toGMTString()),Cr.isString(s)&&u.push("path="+s),Cr.isString(o)&&u.push("domain="+o),a===!0&&u.push("secure"),document.cookie=u.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 Eo=y((Ev,So)=>{"use strict";So.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}});var Po=y((Cv,Co)=>{"use strict";Co.exports=function(e,r){return r?e.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):e}});var Gn=y((Pv,Do)=>{"use strict";var gh=Eo(),yh=Po();Do.exports=function(e,r){return e&&!gh(r)?yh(e,r):r}});var Io=y((Dv,Oo)=>{"use strict";var zn=de(),vh=["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"];Oo.exports=function(e){var r={},n,i,s;return e&&zn.forEach(e.split(`
2
+ `),function(a){if(s=a.indexOf(":"),n=zn.trim(a.substr(0,s)).toLowerCase(),i=zn.trim(a.substr(s+1)),n){if(r[n]&&vh.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 Ro=y((Ov,Ao)=>{"use strict";var Fo=de();Ao.exports=Fo.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=Fo.isString(o)?i(o):o;return a.protocol===n.protocol&&a.host===n.host}}():function(){return function(){return!0}}()});var Mo=y((Iv,ko)=>{"use strict";var Pr=de(),bh=Hn(),wh=xo(),_h=_r(),xh=Gn(),Sh=Io(),Eh=Ro(),Wn=Er();ko.exports=function(e){return new Promise(function(n,i){var s=e.data,o=e.headers,a=e.responseType;Pr.isFormData(s)&&delete o["Content-Type"];var u=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"",c=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.Authorization="Basic "+btoa(h+":"+c)}var p=xh(e.baseURL,e.url);u.open(e.method.toUpperCase(),_h(p,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function g(){if(u){var b="getAllResponseHeaders"in u?Sh(u.getAllResponseHeaders()):null,x=!a||a==="text"||a==="json"?u.responseText:u.response,S={data:x,status:u.status,statusText:u.statusText,headers:b,config:e,request:u};bh(n,i,S),u=null}}if("onloadend"in u?u.onloadend=g:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(g)},u.onabort=function(){u&&(i(Wn("Request aborted",e,"ECONNABORTED",u)),u=null)},u.onerror=function(){i(Wn("Network Error",e,null,u)),u=null},u.ontimeout=function(){var x="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(x=e.timeoutErrorMessage),i(Wn(x,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",u)),u=null},Pr.isStandardBrowserEnv()){var m=(e.withCredentials||Eh(p))&&e.xsrfCookieName?wh.read(e.xsrfCookieName):void 0;m&&(o[e.xsrfHeaderName]=m)}"setRequestHeader"in u&&Pr.forEach(o,function(x,S){typeof s>"u"&&S.toLowerCase()==="content-type"?delete o[S]:u.setRequestHeader(S,x)}),Pr.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),a&&a!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",e.onDownloadProgress),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(x){u&&(u.abort(),i(x),u=null)}),s||(s=null),u.send(s)})}});var To=y((Fv,qo)=>{var ht=1e3,pt=ht*60,mt=pt*60,tt=mt*24,Ch=tt*7,Ph=tt*365.25;qo.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return Dh(t);if(r==="number"&&isFinite(t))return e.long?Ih(t):Oh(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function Dh(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*Ph;case"weeks":case"week":case"w":return r*Ch;case"days":case"day":case"d":return r*tt;case"hours":case"hour":case"hrs":case"hr":case"h":return r*mt;case"minutes":case"minute":case"mins":case"min":case"m":return r*pt;case"seconds":case"second":case"secs":case"sec":case"s":return r*ht;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Oh(t){var e=Math.abs(t);return e>=tt?Math.round(t/tt)+"d":e>=mt?Math.round(t/mt)+"h":e>=pt?Math.round(t/pt)+"m":e>=ht?Math.round(t/ht)+"s":t+"ms"}function Ih(t){var e=Math.abs(t);return e>=tt?Dr(t,e,tt,"day"):e>=mt?Dr(t,e,mt,"hour"):e>=pt?Dr(t,e,pt,"minute"):e>=ht?Dr(t,e,ht,"second"):t+" ms"}function Dr(t,e,r,n){var i=e>=r*1.5;return Math.round(t/r)+" "+n+(i?"s":"")}});var Jn=y((Av,No)=>{function Fh(t){r.debug=r,r.default=r,r.coerce=u,r.disable=s,r.enable=i,r.enabled=o,r.humanize=To(),r.destroy=h,Object.keys(t).forEach(c=>{r[c]=t[c]}),r.names=[],r.skips=[],r.formatters={};function e(c){let p=0;for(let g=0;g<c.length;g++)p=(p<<5)-p+c.charCodeAt(g),p|=0;return r.colors[Math.abs(p)%r.colors.length]}r.selectColor=e;function r(c){let p,g=null,m,b;function x(...S){if(!x.enabled)return;let F=x,L=Number(new Date),B=L-(p||L);F.diff=B,F.prev=p,F.curr=L,p=L,S[0]=r.coerce(S[0]),typeof S[0]!="string"&&S.unshift("%O");let G=0;S[0]=S[0].replace(/%([a-zA-Z%])/g,(ye,De)=>{if(ye==="%%")return"%";G++;let Q=r.formatters[De];if(typeof Q=="function"){let D=S[G];ye=Q.call(F,D),S.splice(G,1),G--}return ye}),r.formatArgs.call(F,S),(F.log||r.log).apply(F,S)}return x.namespace=c,x.useColors=r.useColors(),x.color=r.selectColor(c),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(c)),b),set:S=>{g=S}}),typeof r.init=="function"&&r.init(x),x}function n(c,p){let g=r(this.namespace+(typeof p>"u"?":":p)+c);return g.log=this.log,g}function i(c){r.save(c),r.namespaces=c,r.names=[],r.skips=[];let p,g=(typeof c=="string"?c:"").split(/[\s,]+/),m=g.length;for(p=0;p<m;p++)g[p]&&(c=g[p].replace(/\*/g,".*?"),c[0]==="-"?r.skips.push(new RegExp("^"+c.slice(1)+"$")):r.names.push(new RegExp("^"+c+"$")))}function s(){let c=[...r.names.map(a),...r.skips.map(a).map(p=>"-"+p)].join(",");return r.enable(""),c}function o(c){if(c[c.length-1]==="*")return!0;let p,g;for(p=0,g=r.skips.length;p<g;p++)if(r.skips[p].test(c))return!1;for(p=0,g=r.names.length;p<g;p++)if(r.names[p].test(c))return!0;return!1}function a(c){return c.toString().substring(2,c.toString().length-2).replace(/\.\*\?$/,"*")}function u(c){return c instanceof Error?c.stack||c.message:c}function h(){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}No.exports=Fh});var jo=y((Ee,Or)=>{Ee.formatArgs=Rh;Ee.save=kh;Ee.load=Mh;Ee.useColors=Ah;Ee.storage=qh();Ee.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`."))}})();Ee.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 Ah(){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 Rh(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+Or.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)}Ee.log=console.debug||console.log||(()=>{});function kh(t){try{t?Ee.storage.setItem("debug",t):Ee.storage.removeItem("debug")}catch{}}function Mh(){let t;try{t=Ee.storage.getItem("debug")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function qh(){try{return localStorage}catch{}}Or.exports=Jn()(Ee);var{formatters:Th}=Or.exports;Th.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var $o=y((Rv,Lo)=>{"use strict";Lo.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 Kn=y((kv,Uo)=>{"use strict";var Nh=require("os"),Bo=require("tty"),Fe=$o(),{env:Z}=process,Xe;Fe("no-color")||Fe("no-colors")||Fe("color=false")||Fe("color=never")?Xe=0:(Fe("color")||Fe("colors")||Fe("color=true")||Fe("color=always"))&&(Xe=1);"FORCE_COLOR"in Z&&(Z.FORCE_COLOR==="true"?Xe=1:Z.FORCE_COLOR==="false"?Xe=0:Xe=Z.FORCE_COLOR.length===0?1:Math.min(parseInt(Z.FORCE_COLOR,10),3));function Vn(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function Yn(t,e){if(Xe===0)return 0;if(Fe("color=16m")||Fe("color=full")||Fe("color=truecolor"))return 3;if(Fe("color=256"))return 2;if(t&&!e&&Xe===void 0)return 0;let r=Xe||0;if(Z.TERM==="dumb")return r;if(process.platform==="win32"){let n=Nh.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in Z)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in Z)||Z.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in Z)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Z.TEAMCITY_VERSION)?1:0;if(Z.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Z){let n=parseInt((Z.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Z.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Z.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Z.TERM)||"COLORTERM"in Z?1:r}function jh(t){let e=Yn(t,t&&t.isTTY);return Vn(e)}Uo.exports={supportsColor:jh,stdout:Vn(Yn(!0,Bo.isatty(1))),stderr:Vn(Yn(!0,Bo.isatty(2)))}});var Ho=y((ne,Fr)=>{var Lh=require("tty"),Ir=require("util");ne.init=zh;ne.log=Xh;ne.formatArgs=Bh;ne.save=Hh;ne.load=Gh;ne.useColors=$h;ne.destroy=Ir.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");ne.colors=[6,2,3,4,5,1];try{let t=Kn();t&&(t.stderr||t).level>=2&&(ne.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{}ne.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 $h(){return"colors"in ne.inspectOpts?!!ne.inspectOpts.colors:Lh.isatty(process.stderr.fd)}function Bh(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(`
3
3
  `).join(`
4
4
  `+s),t.push(i+"m+"+Fr.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Uh()+e+" "+t[0]}function Uh(){return ne.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Xh(...t){return process.stderr.write(Ir.format(...t)+`
5
5
  `)}function Hh(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function Gh(){return process.env.DEBUG}function zh(t){t.inspectOpts={};let e=Object.keys(ne.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=ne.inspectOpts[e[r]]}Fr.exports=Jn()(ne);var{formatters:Xo}=Fr.exports;Xo.o=function(t){return this.inspectOpts.colors=this.useColors,Ir.inspect(t,this.inspectOpts).split(`
6
- `).map(e=>e.trim()).join(" ")};Xo.O=function(t){return this.inspectOpts.colors=this.useColors,Ir.inspect(t,this.inspectOpts)}});var Go=y((Mv,Qn)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Qn.exports=jo():Qn.exports=Ho()});var Wo=y((qv,zo)=>{var $t;zo.exports=function(){if(!$t){try{$t=Go()("follow-redirects")}catch{}typeof $t!="function"&&($t=function(){})}$t.apply(null,arguments)}});var ii=y((Tv,ni)=>{var rt=require("url"),Zn=rt.URL,Wh=require("http"),Jh=require("https"),Ko=require("stream").Writable,Yo=require("assert"),Qo=Wo(),ti=["abort","aborted","connect","error","socket","timeout"],ri=Object.create(null);ti.forEach(function(t){ri[t]=function(e,r,n){this._redirectable.emit(t,e,r,n)}});var Vh=Ut("ERR_INVALID_URL","Invalid URL",TypeError),Jo=Ut("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),Kh=Ut("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),Yh=Ut("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),Qh=Ut("ERR_STREAM_WRITE_AFTER_END","write after end");function Ce(t,e){Ko.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()}Ce.prototype=Object.create(Ko.prototype);Ce.prototype.abort=function(){ea(this._currentRequest),this.emit("abort")};Ce.prototype.write=function(t,e,r){if(this._ending)throw new Qh;if(!nt(t)&&!t0(t))throw new TypeError("data should be a string, Buffer or Uint8Array");if(Bt(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 Yh),this.abort())};Ce.prototype.end=function(t,e,r){if(Bt(t)?(r=t,t=e=null):Bt(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}};Ce.prototype.setHeader=function(t,e){this._options.headers[t]=e,this._currentRequest.setHeader(t,e)};Ce.prototype.removeHeader=function(t){delete this._options.headers[t],this._currentRequest.removeHeader(t)};Ce.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){Ce.prototype[t]=function(e,r){return this._currentRequest[t](e,r)}});["aborted","connection","socket"].forEach(function(t){Object.defineProperty(Ce.prototype,t,{get:function(){return this._currentRequest[t]}})});Ce.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))}};Ce.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 ti)n.on(i,ri[i]);if(this._currentUrl=/^\//.test(this._options.path)?rt.format(this._options):this._options.path,this._isRedirect){var s=0,o=this,a=this._requestBodyBuffers;(function u(h){if(n===o._currentRequest)if(h)o.emit("error",h);else if(s<a.length){var c=a[s++];n.finished||n.write(c.data,c.encoding,u)}else o._ended&&n.end()})()}};Ce.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(ea(this._currentRequest),t.destroy(),++this._redirectCount>this._options.maxRedirects){this.emit("error",new Kh);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=[],ei(/^content-/i,this._options.headers));var o=ei(/^host$/i,this._options.headers),a=rt.parse(this._currentUrl),u=o||a.host,h=/^\w+:/.test(r)?this._currentUrl:rt.format(Object.assign(a,{host:u})),c;try{c=rt.resolve(h,r)}catch(b){this.emit("error",new Jo({cause:b}));return}Qo("redirecting to",c),this._isRedirect=!0;var p=rt.parse(c);if(Object.assign(this._options,p),(p.protocol!==a.protocol&&p.protocol!=="https:"||p.host!==u&&!e0(p.host,u))&&ei(/^(?:authorization|cookie)$/i,this._options.headers),Bt(i)){var g={headers:t.headers,statusCode:e},m={url:h,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 Jo({cause:b}))}};function Zo(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(h,c,p){if(nt(h)){var g;try{g=Vo(new Zn(h))}catch{g=rt.parse(h)}if(!nt(g.protocol))throw new Vh({input:h});h=g}else Zn&&h instanceof Zn?h=Vo(h):(p=c,c=h,h={protocol:i});return Bt(c)&&(p=c,c=null),c=Object.assign({maxRedirects:e.maxRedirects,maxBodyLength:e.maxBodyLength},h,c),c.nativeProtocols=r,!nt(c.host)&&!nt(c.hostname)&&(c.hostname="::1"),Yo.equal(c.protocol,i,"protocol mismatch"),Qo("options",c),new Ce(c,p)}function u(h,c,p){var g=o.request(h,c,p);return g.end(),g}Object.defineProperties(o,{request:{value:a,configurable:!0,enumerable:!0,writable:!0},get:{value:u,configurable:!0,enumerable:!0,writable:!0}})}),e}function Zh(){}function Vo(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 ei(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 Ut(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 ea(t){for(var e of ti)t.removeListener(e,ri[e]);t.on("error",Zh),t.abort()}function e0(t,e){Yo(nt(t)&&nt(e));var r=t.length-e.length-1;return r>0&&t[r]==="."&&t.endsWith(e)}function nt(t){return typeof t=="string"||t instanceof String}function Bt(t){return typeof t=="function"}function t0(t){return typeof t=="object"&&"length"in t}ni.exports=Zo({http:Wh,https:Jh});ni.exports.wrap=Zo});var si=y((Nv,r0)=>{r0.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 oa=y((jv,sa)=>{"use strict";var Xt=de(),ta=Hn(),n0=Gn(),i0=wr(),s0=require("http"),o0=require("https"),a0=ii().http,u0=ii().https,ra=require("url"),c0=require("zlib"),l0=si(),Ar=Er(),oi=Sr(),na=/https:?/;function ia(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,ia(s,e,s.href)}}sa.exports=function(e){return new Promise(function(n,i){var s=function(E){n(E)},o=function(E){i(E)},a=e.data,u=e.headers;if("User-Agent"in u||"user-agent"in u?!u["User-Agent"]&&!u["user-agent"]&&(delete u["User-Agent"],delete u["user-agent"]):u["User-Agent"]="axios/"+l0.version,a&&!Xt.isStream(a)){if(!Buffer.isBuffer(a))if(Xt.isArrayBuffer(a))a=Buffer.from(new Uint8Array(a));else if(Xt.isString(a))a=Buffer.from(a,"utf-8");else return o(Ar("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));u["Content-Length"]=a.length}var h=void 0;if(e.auth){var c=e.auth.username||"",p=e.auth.password||"";h=c+":"+p}var g=n0(e.baseURL,e.url),m=ra.parse(g),b=m.protocol||"http:";if(!h&&m.auth){var x=m.auth.split(":"),S=x[0]||"",F=x[1]||"";h=S+":"+F}h&&delete u.Authorization;var L=na.test(b),B=L?e.httpsAgent:e.httpAgent,G={path:i0(m.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:u,agent:B,agents:{http:e.httpAgent,https:e.httpsAgent},auth:h};e.socketPath?G.socketPath=e.socketPath:(G.hostname=m.hostname,G.port=m.port);var K=e.proxy;if(!K&&K!==!1){var ye=b.slice(0,-1)+"_proxy",Oe=process.env[ye]||process.env[ye.toUpperCase()];if(Oe){var Q=ra.parse(Oe),O=process.env.no_proxy||process.env.NO_PROXY,q=!0;if(O){var k=O.split(",").map(function(E){return E.trim()});q=!k.some(function(E){return E?E==="*"||E[0]==="."&&m.hostname.substr(m.hostname.length-E.length)===E?!0:m.hostname===E:!1})}if(q&&(K={host:Q.hostname,port:Q.port,protocol:Q.protocol},Q.auth)){var X=Q.auth.split(":");K.auth={username:X[0],password:X[1]}}}}K&&(G.headers.host=m.hostname+(m.port?":"+m.port:""),ia(G,K,b+"//"+m.hostname+(m.port?":"+m.port:"")+G.path));var I,U=L&&(K?na.test(K.protocol):!0);e.transport?I=e.transport:e.maxRedirects===0?I=U?o0:s0:(e.maxRedirects&&(G.maxRedirects=e.maxRedirects),I=U?u0:a0),e.maxBodyLength>-1&&(G.maxBodyLength=e.maxBodyLength);var D=I.request(G,function(E){if(!D.aborted){var A=E,De=E.req||D;if(E.statusCode!==204&&De.method!=="HEAD"&&e.decompress!==!1)switch(E.headers["content-encoding"]){case"gzip":case"compress":case"deflate":A=A.pipe(c0.createUnzip()),delete E.headers["content-encoding"];break}var ke={status:E.statusCode,statusText:E.statusMessage,headers:E.headers,config:e,request:De};if(e.responseType==="stream")ke.data=A,ta(s,o,ke);else{var ae=[],ve=0;A.on("data",function(re){ae.push(re),ve+=re.length,e.maxContentLength>-1&&ve>e.maxContentLength&&(A.destroy(),o(Ar("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,De)))}),A.on("error",function(re){D.aborted||o(oi(re,e,null,De))}),A.on("end",function(){var re=Buffer.concat(ae);e.responseType!=="arraybuffer"&&(re=re.toString(e.responseEncoding),(!e.responseEncoding||e.responseEncoding==="utf8")&&(re=Xt.stripBOM(re))),ke.data=re,ta(s,o,ke)})}}});if(D.on("error",function(E){D.aborted&&E.code!=="ERR_FR_TOO_MANY_REDIRECTS"||o(oi(E,e,null,D))}),e.timeout){var j=parseInt(e.timeout,10);if(isNaN(j)){o(Ar("error trying to parse `config.timeout` to int",e,"ERR_PARSE_TIMEOUT",D));return}D.setTimeout(j,function(){D.abort(),o(Ar("timeout of "+j+"ms exceeded",e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",D))})}e.cancelToken&&e.cancelToken.promise.then(function(E){D.aborted||(D.abort(),o(E))}),Xt.isStream(a)?a.on("error",function(E){o(oi(E,e,null,D))}).pipe(D):D.end(a)})}});var kr=y((Lv,ca)=>{"use strict";var ie=de(),aa=yo(),f0=Sr(),d0={"Content-Type":"application/x-www-form-urlencoded"};function ua(t,e){!ie.isUndefined(t)&&ie.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function h0(){var t;return typeof XMLHttpRequest<"u"?t=Mo():typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]"&&(t=oa()),t}function p0(t,e,r){if(ie.isString(t))try{return(e||JSON.parse)(t),ie.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}var Rr={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:h0(),transformRequest:[function(e,r){return aa(r,"Accept"),aa(r,"Content-Type"),ie.isFormData(e)||ie.isArrayBuffer(e)||ie.isBuffer(e)||ie.isStream(e)||ie.isFile(e)||ie.isBlob(e)?e:ie.isArrayBufferView(e)?e.buffer:ie.isURLSearchParams(e)?(ua(r,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):ie.isObject(e)||r&&r["Content-Type"]==="application/json"?(ua(r,"application/json"),p0(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&&ie.isString(e)&&e.length)try{return JSON.parse(e)}catch(o){if(s)throw o.name==="SyntaxError"?f0(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}};Rr.headers={common:{Accept:"application/json, text/plain, */*"}};ie.forEach(["delete","get","head"],function(e){Rr.headers[e]={}});ie.forEach(["post","put","patch"],function(e){Rr.headers[e]=ie.merge(d0)});ca.exports=Rr});var fa=y(($v,la)=>{"use strict";var m0=de(),g0=kr();la.exports=function(e,r,n){var i=this||g0;return m0.forEach(n,function(o){e=o.call(i,e,r)}),e}});var ai=y((Bv,da)=>{"use strict";da.exports=function(e){return!!(e&&e.__CANCEL__)}});var ma=y((Uv,pa)=>{"use strict";var ha=de(),ui=fa(),y0=ai(),v0=kr();function ci(t){t.cancelToken&&t.cancelToken.throwIfRequested()}pa.exports=function(e){ci(e),e.headers=e.headers||{},e.data=ui.call(e,e.data,e.headers,e.transformRequest),e.headers=ha.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),ha.forEach(["delete","get","head","post","put","patch","common"],function(i){delete e.headers[i]});var r=e.adapter||v0.adapter;return r(e).then(function(i){return ci(e),i.data=ui.call(e,i.data,i.headers,e.transformResponse),i},function(i){return y0(i)||(ci(e),i&&i.response&&(i.response.data=ui.call(e,i.response.data,i.response.headers,e.transformResponse))),Promise.reject(i)})}});var li=y((Xv,ga)=>{"use strict";var ue=de();ga.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 u(g,m){return ue.isPlainObject(g)&&ue.isPlainObject(m)?ue.merge(g,m):ue.isPlainObject(m)?ue.merge({},m):ue.isArray(m)?m.slice():m}function h(g){ue.isUndefined(r[g])?ue.isUndefined(e[g])||(n[g]=u(void 0,e[g])):n[g]=u(e[g],r[g])}ue.forEach(i,function(m){ue.isUndefined(r[m])||(n[m]=u(void 0,r[m]))}),ue.forEach(s,h),ue.forEach(o,function(m){ue.isUndefined(r[m])?ue.isUndefined(e[m])||(n[m]=u(void 0,e[m])):n[m]=u(void 0,r[m])}),ue.forEach(a,function(m){m in r?n[m]=u(e[m],r[m]):m in e&&(n[m]=u(void 0,e[m]))});var c=i.concat(s).concat(o).concat(a),p=Object.keys(e).concat(Object.keys(r)).filter(function(m){return c.indexOf(m)===-1});return ue.forEach(p,h),n}});var wa=y((Hv,_a)=>{"use strict";var va=si(),fi={};["object","boolean","number","function","string","symbol"].forEach(function(t,e){fi[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});var ya={},b0=va.version.split(".");function ba(t,e){for(var r=e?e.split("."):b0,n=t.split("."),i=0;i<3;i++){if(r[i]>n[i])return!0;if(r[i]<n[i])return!1}return!1}fi.transitional=function(e,r,n){var i=r&&ba(r);function s(o,a){return"[Axios v"+va.version+"] Transitional option '"+o+"'"+a+(n?". "+n:"")}return function(o,a,u){if(e===!1)throw new Error(s(a," has been removed in "+r));return i&&!ya[a]&&(ya[a]=!0,console.warn(s(a," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(o,a,u):!0}};function _0(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],u=a===void 0||o(a,s,t);if(u!==!0)throw new TypeError("option "+s+" must be "+u);continue}if(r!==!0)throw Error("Unknown option "+s)}}_a.exports={isOlderVersion:ba,assertOptions:_0,validators:fi}});var Oa=y((Gv,Pa)=>{"use strict";var Ea=de(),w0=wr(),xa=mo(),Sa=ma(),Mr=li(),Ca=wa(),gt=Ca.validators;function Ht(t){this.defaults=t,this.interceptors={request:new xa,response:new xa}}Ht.prototype.request=function(e){typeof e=="string"?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=Mr(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&&Ca.assertOptions(r,{silentJSONParsing:gt.transitional(gt.boolean,"1.0.0"),forcedJSONParsing:gt.transitional(gt.boolean,"1.0.0"),clarifyTimeoutError:gt.transitional(gt.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=[Sa,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 u=e;n.length;){var h=n.shift(),c=n.shift();try{u=h(u)}catch(p){c(p);break}}try{o=Sa(u)}catch(p){return Promise.reject(p)}for(;s.length;)o=o.then(s.shift(),s.shift());return o};Ht.prototype.getUri=function(e){return e=Mr(this.defaults,e),w0(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")};Ea.forEach(["delete","get","head","options"],function(e){Ht.prototype[e]=function(r,n){return this.request(Mr(n||{},{method:e,url:r,data:(n||{}).data}))}});Ea.forEach(["post","put","patch"],function(e){Ht.prototype[e]=function(r,n,i){return this.request(Mr(i||{},{method:e,url:r,data:n}))}});Pa.exports=Ht});var hi=y((zv,Da)=>{"use strict";function di(t){this.message=t}di.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};di.prototype.__CANCEL__=!0;Da.exports=di});var Fa=y((Wv,Ia)=>{"use strict";var x0=hi();function qr(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 x0(i),e(r.reason))})}qr.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};qr.source=function(){var e,r=new qr(function(i){e=i});return{token:r,cancel:e}};Ia.exports=qr});var Ra=y((Jv,Aa)=>{"use strict";Aa.exports=function(e){return function(n){return e.apply(null,n)}}});var Ma=y((Vv,ka)=>{"use strict";ka.exports=function(e){return typeof e=="object"&&e.isAxiosError===!0}});var Na=y((Kv,pi)=>{"use strict";var qa=de(),S0=Ln(),Tr=Oa(),E0=li(),C0=kr();function Ta(t){var e=new Tr(t),r=S0(Tr.prototype.request,e);return qa.extend(r,Tr.prototype,e),qa.extend(r,e),r}var qe=Ta(C0);qe.Axios=Tr;qe.create=function(e){return Ta(E0(qe.defaults,e))};qe.Cancel=hi();qe.CancelToken=Fa();qe.isCancel=ai();qe.all=function(e){return Promise.all(e)};qe.spread=Ra();qe.isAxiosError=Ma();pi.exports=qe;pi.exports.default=qe});var mi=y((Yv,ja)=>{ja.exports=Na()});var $a=y((Qv,La)=>{"use strict";var P0=/[|\\{}()[\]^$+*?.]/g;La.exports=function(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(P0,"\\$&")}});var Ua=y((Zv,Ba)=>{"use strict";Ba.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 gi=y((eb,za)=>{var it=Ua(),Ga={};for(Nr in it)it.hasOwnProperty(Nr)&&(Ga[it[Nr]]=Nr);var Nr,C=za.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(he in C)if(C.hasOwnProperty(he)){if(!("channels"in C[he]))throw new Error("missing channels property: "+he);if(!("labels"in C[he]))throw new Error("missing channel labels property: "+he);if(C[he].labels.length!==C[he].channels)throw new Error("channel and label counts mismatch: "+he);Xa=C[he].channels,Ha=C[he].labels,delete C[he].channels,delete C[he].labels,Object.defineProperty(C[he],"channels",{value:Xa}),Object.defineProperty(C[he],"labels",{value:Ha})}var Xa,Ha,he;C.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,u,h;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),h=(i+s)/2,s===i?u=0:h<=.5?u=o/(s+i):u=o/(2-s-i),[a,u*100,h*100]};C.rgb.hsv=function(t){var e,r,n,i,s,o=t[0]/255,a=t[1]/255,u=t[2]/255,h=Math.max(o,a,u),c=h-Math.min(o,a,u),p=function(g){return(h-g)/6/c+1/2};return c===0?i=s=0:(s=c/h,e=p(o),r=p(a),n=p(u),o===h?i=n-r:a===h?i=1/3+e-n:u===h&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,h*100]};C.rgb.hwb=function(t){var e=t[0],r=t[1],n=t[2],i=C.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]};C.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 O0(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}C.rgb.keyword=function(t){var e=Ga[t];if(e)return e;var r=1/0,n;for(var i in it)if(it.hasOwnProperty(i)){var s=it[i],o=O0(t,s);o<r&&(r=o,n=i)}return n};C.keyword.rgb=function(t){return it[t]};C.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]};C.rgb.lab=function(t){var e=C.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]};C.hsl.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,i,s,o,a,u;if(r===0)return u=n*255,[u,u,u];n<.5?s=n*(1+r):s=n+r-n*r,i=2*n-s,a=[0,0,0];for(var h=0;h<3;h++)o=e+1/3*-(h-1),o<0&&o++,o>1&&o--,6*o<1?u=i+(s-i)*6*o:2*o<1?u=s:3*o<2?u=i+(s-i)*(2/3-o)*6:u=i,a[h]=u*255;return a};C.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]};C.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),u=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,u,o];case 1:return[a,n,o];case 2:return[o,n,u];case 3:return[o,a,n];case 4:return[u,o,n];case 5:return[n,o,a]}};C.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]};C.hwb.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,s,o,a,u;i>1&&(r/=i,n/=i),s=Math.floor(6*e),o=1-n,a=6*e-s,s&1&&(a=1-a),u=r+a*(o-r);var h,c,p;switch(s){default:case 6:case 0:h=o,c=u,p=r;break;case 1:h=u,c=o,p=r;break;case 2:h=r,c=o,p=u;break;case 3:h=r,c=u,p=o;break;case 4:h=u,c=r,p=o;break;case 5:h=o,c=r,p=u;break}return[h*255,c*255,p*255]};C.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]};C.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]};C.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]};C.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),u=Math.pow(i,3),h=Math.pow(o,3);return s=a>.008856?a:(s-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,o=h>.008856?h:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};C.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]};C.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]};C.rgb.ansi16=function(t){var e=t[0],r=t[1],n=t[2],i=1 in arguments?arguments[1]:C.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};C.hsv.ansi16=function(t){return C.rgb.ansi16(C.hsv.rgb(t),t[2])};C.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};C.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]};C.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]};C.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};C.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]};C.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,u;return o<1?a=s/(1-o):a=0,o<=0?u=0:i===e?u=(r-n)/o%6:i===r?u=2+(n-e)/o:u=4+(e-r)/o+4,u/=6,u%=1,[u*360,o*100,a*100]};C.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]};C.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]};C.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,u=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 u=(1-r)*n,[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]};C.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]};C.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]};C.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]};C.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]};C.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};C.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};C.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};C.gray.hsl=C.gray.hsv=function(t){return[0,0,t[0]]};C.gray.hwb=function(t){return[0,100,t[0]]};C.gray.cmyk=function(t){return[0,0,0,t[0]]};C.gray.lab=function(t){return[t[0],0,0]};C.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};C.rgb.gray=function(t){var e=(t[0]+t[1]+t[2])/3;return[e/255*100]}});var Ja=y((tb,Wa)=>{var jr=gi();function D0(){for(var t={},e=Object.keys(jr),r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function I0(t){var e=D0(),r=[t];for(e[t].distance=0;r.length;)for(var n=r.pop(),i=Object.keys(jr[n]),s=i.length,o=0;o<s;o++){var a=i[o],u=e[a];u.distance===-1&&(u.distance=e[n].distance+1,u.parent=n,r.unshift(a))}return e}function F0(t,e){return function(r){return e(t(r))}}function A0(t,e){for(var r=[e[t].parent,t],n=jr[e[t].parent][t],i=e[t].parent;e[i].parent;)r.unshift(e[i].parent),n=F0(jr[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}Wa.exports=function(t){for(var e=I0(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]=A0(o,e))}return r}});var Ka=y((rb,Va)=>{var yi=gi(),R0=Ja(),yt={},k0=Object.keys(yi);function M0(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 q0(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}k0.forEach(function(t){yt[t]={},Object.defineProperty(yt[t],"channels",{value:yi[t].channels}),Object.defineProperty(yt[t],"labels",{value:yi[t].labels});var e=R0(t),r=Object.keys(e);r.forEach(function(n){var i=e[n];yt[t][n]=q0(i),yt[t][n].raw=M0(i)})});Va.exports=yt});var Qa=y((nb,Ya)=>{"use strict";var vt=Ka(),Lr=(t,e)=>function(){return`\x1B[${t.apply(vt,arguments)+e}m`},$r=(t,e)=>function(){let r=t.apply(vt,arguments);return`\x1B[${38+e};5;${r}m`},Br=(t,e)=>function(){let r=t.apply(vt,arguments);return`\x1B[${38+e};2;${r[0]};${r[1]};${r[2]}m`};function T0(){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:$r(r,0)},e.color.ansi16m={rgb:Br(n,0)},e.bgColor.ansi={ansi:Lr(r,10)},e.bgColor.ansi256={ansi256:$r(r,10)},e.bgColor.ansi16m={rgb:Br(n,10)};for(let i of Object.keys(vt)){if(typeof vt[i]!="object")continue;let s=vt[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]=$r(s.ansi256,0),e.bgColor.ansi256[i]=$r(s.ansi256,10)),"rgb"in s&&(e.color.ansi16m[i]=Br(s.rgb,0),e.bgColor.ansi16m[i]=Br(s.rgb,10))}return e}Object.defineProperty(Ya,"exports",{enumerable:!0,get:T0})});var eu=y((ib,Za)=>{"use strict";Za.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 ru=y((sb,tu)=>{"use strict";var N0=require("os"),Te=eu(),ce=process.env,bt;Te("no-color")||Te("no-colors")||Te("color=false")?bt=!1:(Te("color")||Te("colors")||Te("color=true")||Te("color=always"))&&(bt=!0);"FORCE_COLOR"in ce&&(bt=ce.FORCE_COLOR.length===0||parseInt(ce.FORCE_COLOR,10)!==0);function j0(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function L0(t){if(bt===!1)return 0;if(Te("color=16m")||Te("color=full")||Te("color=truecolor"))return 3;if(Te("color=256"))return 2;if(t&&!t.isTTY&&bt!==!0)return 0;let e=bt?1:0;if(process.platform==="win32"){let r=N0.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 ce)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in ce)||ce.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in ce)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ce.TEAMCITY_VERSION)?1:0;if(ce.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in ce){let r=parseInt((ce.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ce.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ce.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ce.TERM)||"COLORTERM"in ce?1:(ce.TERM==="dumb",e)}function vi(t){let e=L0(t);return j0(e)}tu.exports={supportsColor:vi,stdout:vi(process.stdout),stderr:vi(process.stderr)}});var au=y((ob,ou)=>{"use strict";var $0=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,nu=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,B0=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,U0=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,X0=new Map([["n",`
7
- `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function su(t){return t[0]==="u"&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):X0.get(t)||t}function H0(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(B0))r.push(i[2].replace(U0,(o,a,u)=>a?su(a):u));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${t}')`);return r}function G0(t){nu.lastIndex=0;let e=[],r;for(;(r=nu.exec(t))!==null;){let n=r[1];if(r[2]){let i=H0(n,r[2]);e.push([n].concat(i))}else e.push([n])}return e}function iu(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}ou.exports=(t,e)=>{let r=[],n=[],i=[];if(e.replace($0,(s,o,a,u,h,c)=>{if(o)i.push(su(o));else if(u){let p=i.join("");i=[],n.push(r.length===0?p:iu(t,r)(p)),r.push({inverse:a,styles:G0(u)})}else if(h){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(iu(t,r)(i.join(""))),i=[],r.pop()}else i.push(c)}),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 Xr=y((ab,zt)=>{"use strict";var _i=$a(),V=Qa(),bi=ru().stdout,z0=au(),cu=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),lu=["ansi","ansi","ansi256","ansi16m"],fu=new Set(["gray"]),_t=Object.create(null);function uu(t,e){e=e||{};let r=bi?bi.level:0;t.level=e.level===void 0?r:e.level,t.enabled="enabled"in e?e.enabled:t.level>0}function Gt(t){if(!this||!(this instanceof Gt)||this.template){let e={};return uu(e,t),e.template=function(){let r=[].slice.call(arguments);return V0.apply(null,[e.template].concat(r))},Object.setPrototypeOf(e,Gt.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=Gt,e.template}uu(this,t)}cu&&(V.blue.open="\x1B[94m");for(let t of Object.keys(V))V[t].closeRe=new RegExp(_i(V[t].close),"g"),_t[t]={get(){let e=V[t];return Ur.call(this,this._styles?this._styles.concat(e):[e],this._empty,t)}};_t.visible={get(){return Ur.call(this,this._styles||[],!0,"visible")}};V.color.closeRe=new RegExp(_i(V.color.close),"g");for(let t of Object.keys(V.color.ansi))fu.has(t)||(_t[t]={get(){let e=this.level;return function(){let n={open:V.color[lu[e]][t].apply(null,arguments),close:V.color.close,closeRe:V.color.closeRe};return Ur.call(this,this._styles?this._styles.concat(n):[n],this._empty,t)}}});V.bgColor.closeRe=new RegExp(_i(V.bgColor.close),"g");for(let t of Object.keys(V.bgColor.ansi)){if(fu.has(t))continue;let e="bg"+t[0].toUpperCase()+t.slice(1);_t[e]={get(){let r=this.level;return function(){let i={open:V.bgColor[lu[r]][t].apply(null,arguments),close:V.bgColor.close,closeRe:V.bgColor.closeRe};return Ur.call(this,this._styles?this._styles.concat(i):[i],this._empty,t)}}}}var W0=Object.defineProperties(()=>{},_t);function Ur(t,e,r){let n=function(){return J0.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__=W0,n}function J0(){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=V.dim.open;cu&&this.hasGrey&&(V.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 V.dim.open=n,r}function V0(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 z0(t,n.join(""))}Object.defineProperties(Gt.prototype,_t);zt.exports=Gt();zt.exports.supportsColor=bi;zt.exports.default=zt.exports});var xt=y((cb,xi)=>{var K0=require("fs"),Y0=require("path");function pu(t){console.log(`[dotenv][DEBUG] ${t}`)}var Q0=`
8
- `,Z0=/^\s*([\w.-]+)\s*=\s*(.*)?\s*$/,ep=/\\n/g,tp=/\n|\r|\r\n/;function mu(t,e){let r=!!(e&&e.debug),n={};return t.toString().split(tp).forEach(function(i,s){let o=i.match(Z0);if(o!=null){let a=o[1],u=o[2]||"",h=u.length-1,c=u[0]==='"'&&u[h]==='"';u[0]==="'"&&u[h]==="'"||c?(u=u.substring(1,h),c&&(u=u.replace(ep,Q0))):u=u.trim(),n[a]=u}else r&&pu(`did not match key and value when parsing line ${s+1}: ${i}`)}),n}function rp(t){let e=Y0.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=mu(K0.readFileSync(e,{encoding:r}),{debug:n});return Object.keys(i).forEach(function(s){Object.prototype.hasOwnProperty.call(process.env,s)?n&&pu(`"${s}" is already defined in \`process.env\` and will not be overwritten`):process.env[s]=i[s]}),{parsed:i}}catch(i){return{error:i}}}xi.exports.config=rp;xi.exports.parse=mu});var be=y(Si=>{"use strict";Si.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})};Si.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 yu=y((fb,gu)=>{var He=require("constants"),np=process.cwd,Hr=null,ip=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Hr||(Hr=np.call(process)),Hr};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Ei=process.chdir,process.chdir=function(t){Hr=null,Ei.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Ei));var Ei;gu.exports=sp;function sp(t){He.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=u(t.statSync),t.fstatSync=u(t.fstatSync),t.lstatSync=u(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(c,p,g){g&&process.nextTick(g)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(c,p,g,m){m&&process.nextTick(m)},t.lchownSync=function(){}),ip==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:function(c){function p(g,m,b){var x=Date.now(),S=0;c(g,m,function F(L){if(L&&(L.code==="EACCES"||L.code==="EPERM")&&Date.now()-x<6e4){setTimeout(function(){t.stat(m,function(B,G){B&&B.code==="ENOENT"?c(g,m,F):b(L)})},S),S<100&&(S+=10);return}b&&b(L)})}return Object.setPrototypeOf&&Object.setPrototypeOf(p,c),p}(t.rename)),t.read=typeof t.read!="function"?t.read:function(c){function p(g,m,b,x,S,F){var L;if(F&&typeof F=="function"){var B=0;L=function(G,K,ye){if(G&&G.code==="EAGAIN"&&B<10)return B++,c.call(t,g,m,b,x,S,L);F.apply(this,arguments)}}return c.call(t,g,m,b,x,S,L)}return Object.setPrototypeOf&&Object.setPrototypeOf(p,c),p}(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:function(c){return function(p,g,m,b,x){for(var S=0;;)try{return c.call(t,p,g,m,b,x)}catch(F){if(F.code==="EAGAIN"&&S<10){S++;continue}throw F}}}(t.readSync);function e(c){c.lchmod=function(p,g,m){c.open(p,He.O_WRONLY|He.O_SYMLINK,g,function(b,x){if(b){m&&m(b);return}c.fchmod(x,g,function(S){c.close(x,function(F){m&&m(S||F)})})})},c.lchmodSync=function(p,g){var m=c.openSync(p,He.O_WRONLY|He.O_SYMLINK,g),b=!0,x;try{x=c.fchmodSync(m,g),b=!1}finally{if(b)try{c.closeSync(m)}catch{}else c.closeSync(m)}return x}}function r(c){He.hasOwnProperty("O_SYMLINK")&&c.futimes?(c.lutimes=function(p,g,m,b){c.open(p,He.O_SYMLINK,function(x,S){if(x){b&&b(x);return}c.futimes(S,g,m,function(F){c.close(S,function(L){b&&b(F||L)})})})},c.lutimesSync=function(p,g,m){var b=c.openSync(p,He.O_SYMLINK),x,S=!0;try{x=c.futimesSync(b,g,m),S=!1}finally{if(S)try{c.closeSync(b)}catch{}else c.closeSync(b)}return x}):c.futimes&&(c.lutimes=function(p,g,m,b){b&&process.nextTick(b)},c.lutimesSync=function(){})}function n(c){return c&&function(p,g,m){return c.call(t,p,g,function(b){h(b)&&(b=null),m&&m.apply(this,arguments)})}}function i(c){return c&&function(p,g){try{return c.call(t,p,g)}catch(m){if(!h(m))throw m}}}function s(c){return c&&function(p,g,m,b){return c.call(t,p,g,m,function(x){h(x)&&(x=null),b&&b.apply(this,arguments)})}}function o(c){return c&&function(p,g,m){try{return c.call(t,p,g,m)}catch(b){if(!h(b))throw b}}}function a(c){return c&&function(p,g,m){typeof g=="function"&&(m=g,g=null);function b(x,S){S&&(S.uid<0&&(S.uid+=4294967296),S.gid<0&&(S.gid+=4294967296)),m&&m.apply(this,arguments)}return g?c.call(t,p,g,b):c.call(t,p,b)}}function u(c){return c&&function(p,g){var m=g?c.call(t,p,g):c.call(t,p);return m&&(m.uid<0&&(m.uid+=4294967296),m.gid<0&&(m.gid+=4294967296)),m}}function h(c){if(!c||c.code==="ENOSYS")return!0;var p=!process.getuid||process.getuid()!==0;return!!(p&&(c.code==="EINVAL"||c.code==="EPERM"))}}});var _u=y((db,bu)=>{var vu=require("stream").Stream;bu.exports=op;function op(t){return{ReadStream:e,WriteStream:r};function e(n,i){if(!(this instanceof e))return new e(n,i);vu.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,u=o.length;a<u;a++){var h=o[a];this[h]=i[h]}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(c,p){if(c){s.emit("error",c),s.readable=!1;return}s.fd=p,s.emit("open",p),s._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);vu.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 u=s[o];this[u]=i[u]}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 xu=y((hb,wu)=>{"use strict";wu.exports=up;var ap=Object.getPrototypeOf||function(t){return t.__proto__};function up(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:ap(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}});var le=y((pb,Oi)=>{var W=require("fs"),cp=yu(),lp=_u(),fp=xu(),Gr=require("util"),se,Wr;typeof Symbol=="function"&&typeof Symbol.for=="function"?(se=Symbol.for("graceful-fs.queue"),Wr=Symbol.for("graceful-fs.previous")):(se="___graceful-fs.queue",Wr="___graceful-fs.previous");function dp(){}function Cu(t,e){Object.defineProperty(t,se,{get:function(){return e}})}var st=dp;Gr.debuglog?st=Gr.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(st=function(){var t=Gr.format.apply(Gr,arguments);t="GFS4: "+t.split(/\n/).join(`
9
- GFS4: `),console.error(t)});W[se]||(Su=global[se]||[],Cu(W,Su),W.close=function(t){function e(r,n){return t.call(W,r,function(i){i||Eu(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,Wr,{value:t}),e}(W.close),W.closeSync=function(t){function e(r){t.apply(W,arguments),Eu()}return Object.defineProperty(e,Wr,{value:t}),e}(W.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){st(W[se]),require("assert").equal(W[se].length,0)}));var Su;global[se]||Cu(global,W[se]);Oi.exports=Ci(fp(W));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!W.__patched&&(Oi.exports=Ci(W),W.__patched=!0);function Ci(t){cp(t),t.gracefulify=Ci,t.createReadStream=K,t.createWriteStream=ye;var e=t.readFile;t.readFile=r;function r(O,q,k){return typeof q=="function"&&(k=q,q=null),X(O,q,k);function X(I,U,D,j){return e(I,U,function(M){M&&(M.code==="EMFILE"||M.code==="ENFILE")?St([X,[I,U,D],M,j||Date.now(),Date.now()]):typeof D=="function"&&D.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=i;function i(O,q,k,X){return typeof k=="function"&&(X=k,k=null),I(O,q,k,X);function I(U,D,j,M,E){return n(U,D,j,function(A){A&&(A.code==="EMFILE"||A.code==="ENFILE")?St([I,[U,D,j,M],A,E||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}var s=t.appendFile;s&&(t.appendFile=o);function o(O,q,k,X){return typeof k=="function"&&(X=k,k=null),I(O,q,k,X);function I(U,D,j,M,E){return s(U,D,j,function(A){A&&(A.code==="EMFILE"||A.code==="ENFILE")?St([I,[U,D,j,M],A,E||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=u);function u(O,q,k,X){return typeof k=="function"&&(X=k,k=0),I(O,q,k,X);function I(U,D,j,M,E){return a(U,D,j,function(A){A&&(A.code==="EMFILE"||A.code==="ENFILE")?St([I,[U,D,j,M],A,E||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}var h=t.readdir;t.readdir=p;var c=/^v[0-5]\./;function p(O,q,k){typeof q=="function"&&(k=q,q=null);var X=c.test(process.version)?function(D,j,M,E){return h(D,I(D,j,M,E))}:function(D,j,M,E){return h(D,j,I(D,j,M,E))};return X(O,q,k);function I(U,D,j,M){return function(E,A){E&&(E.code==="EMFILE"||E.code==="ENFILE")?St([X,[U,D,j],E,M||Date.now(),Date.now()]):(A&&A.sort&&A.sort(),typeof j=="function"&&j.call(this,E,A))}}}if(process.version.substr(0,4)==="v0.8"){var g=lp(t);F=g.ReadStream,B=g.WriteStream}var m=t.ReadStream;m&&(F.prototype=Object.create(m.prototype),F.prototype.open=L);var b=t.WriteStream;b&&(B.prototype=Object.create(b.prototype),B.prototype.open=G),Object.defineProperty(t,"ReadStream",{get:function(){return F},set:function(O){F=O},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return B},set:function(O){B=O},enumerable:!0,configurable:!0});var x=F;Object.defineProperty(t,"FileReadStream",{get:function(){return x},set:function(O){x=O},enumerable:!0,configurable:!0});var S=B;Object.defineProperty(t,"FileWriteStream",{get:function(){return S},set:function(O){S=O},enumerable:!0,configurable:!0});function F(O,q){return this instanceof F?(m.apply(this,arguments),this):F.apply(Object.create(F.prototype),arguments)}function L(){var O=this;Q(O.path,O.flags,O.mode,function(q,k){q?(O.autoClose&&O.destroy(),O.emit("error",q)):(O.fd=k,O.emit("open",k),O.read())})}function B(O,q){return this instanceof B?(b.apply(this,arguments),this):B.apply(Object.create(B.prototype),arguments)}function G(){var O=this;Q(O.path,O.flags,O.mode,function(q,k){q?(O.destroy(),O.emit("error",q)):(O.fd=k,O.emit("open",k))})}function K(O,q){return new t.ReadStream(O,q)}function ye(O,q){return new t.WriteStream(O,q)}var Oe=t.open;t.open=Q;function Q(O,q,k,X){return typeof k=="function"&&(X=k,k=null),I(O,q,k,X);function I(U,D,j,M,E){return Oe(U,D,j,function(A,De){A&&(A.code==="EMFILE"||A.code==="ENFILE")?St([I,[U,D,j,M],A,E||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}return t}function St(t){st("ENQUEUE",t[0].name,t[1]),W[se].push(t),Pi()}var zr;function Eu(){for(var t=Date.now(),e=0;e<W[se].length;++e)W[se][e].length>2&&(W[se][e][3]=t,W[se][e][4]=t);Pi()}function Pi(){if(clearTimeout(zr),zr=void 0,W[se].length!==0){var t=W[se].shift(),e=t[0],r=t[1],n=t[2],i=t[3],s=t[4];if(i===void 0)st("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-i>=6e4){st("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-s,u=Math.max(s-i,1),h=Math.min(u*1.2,100);a>=h?(st("RETRY",e.name,r),e.apply(null,r.concat([i]))):W[se].push(t)}zr===void 0&&(zr=setTimeout(Pi,0))}}});var Wt=y(Ge=>{"use strict";var Pu=be().fromCallback,pe=le(),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 pe[t]=="function");Object.keys(pe).forEach(t=>{t!=="promises"&&(Ge[t]=pe[t])});hp.forEach(t=>{Ge[t]=Pu(pe[t])});Ge.exists=function(t,e){return typeof e=="function"?pe.exists(t,e):new Promise(r=>pe.exists(t,r))};Ge.read=function(t,e,r,n,i,s){return typeof s=="function"?pe.read(t,e,r,n,i,s):new Promise((o,a)=>{pe.read(t,e,r,n,i,(u,h,c)=>{if(u)return a(u);o({bytesRead:h,buffer:c})})})};Ge.write=function(t,e,...r){return typeof r[r.length-1]=="function"?pe.write(t,e,...r):new Promise((n,i)=>{pe.write(t,e,...r,(s,o,a)=>{if(s)return i(s);n({bytesWritten:o,buffer:a})})})};typeof pe.writev=="function"&&(Ge.writev=function(t,e,...r){return typeof r[r.length-1]=="function"?pe.writev(t,e,...r):new Promise((n,i)=>{pe.writev(t,e,...r,(s,o,a)=>{if(s)return i(s);n({bytesWritten:o,buffers:a})})})});typeof pe.realpath.native=="function"&&(Ge.realpath.native=Pu(pe.realpath.native))});var Di=y((gb,Ou)=>{Ou.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 Ru=y((yb,Ii)=>{"use strict";var Et=Wt(),$e=require("path"),pp=Di(),Du=pp("10.12.0"),Iu=t=>{if(process.platform==="win32"&&/[<>:"|?*]/.test(t.replace($e.parse(t).root,""))){let r=new Error(`Path contains invalid characters: ${t}`);throw r.code="EINVAL",r}},Fu=t=>{let e={mode:511};return typeof t=="number"&&(t={mode:t}),{...e,...t}},Au=t=>{let e=new Error(`operation not permitted, mkdir '${t}'`);return e.code="EPERM",e.errno=-4048,e.path=t,e.syscall="mkdir",e};Ii.exports.makeDir=async(t,e)=>{if(Iu(t),e=Fu(e),Du){let n=$e.resolve(t);return Et.mkdir(n,{mode:e.mode,recursive:!0})}let r=async n=>{try{await Et.mkdir(n,e.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if($e.dirname(n)===n)throw Au(n);if(i.message.includes("null bytes"))throw i;return await r($e.dirname(n)),r(n)}try{if(!(await Et.stat(n)).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return r($e.resolve(t))};Ii.exports.makeDirSync=(t,e)=>{if(Iu(t),e=Fu(e),Du){let n=$e.resolve(t);return Et.mkdirSync(n,{mode:e.mode,recursive:!0})}let r=n=>{try{Et.mkdirSync(n,e.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if($e.dirname(n)===n)throw Au(n);if(i.message.includes("null bytes"))throw i;return r($e.dirname(n)),r(n)}try{if(!Et.statSync(n).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return r($e.resolve(t))}});var Ne=y((vb,ku)=>{"use strict";var mp=be().fromPromise,{makeDir:gp,makeDirSync:Fi}=Ru(),Ai=mp(gp);ku.exports={mkdirs:Ai,mkdirsSync:Fi,mkdirp:Ai,mkdirpSync:Fi,ensureDir:Ai,ensureDirSync:Fi}});var Ri=y((bb,Mu)=>{"use strict";var Ct=le();function yp(t,e,r,n){Ct.open(t,"r+",(i,s)=>{if(i)return n(i);Ct.futimes(s,e,r,o=>{Ct.close(s,a=>{n&&n(o||a)})})})}function vp(t,e,r){let n=Ct.openSync(t,"r+");return Ct.futimesSync(n,e,r),Ct.closeSync(n)}Mu.exports={utimesMillis:yp,utimesMillisSync:vp}});var Jt=y((_b,ju)=>{"use strict";var Pt=Wt(),_e=require("path"),bp=require("util"),_p=Di(),Jr=_p("10.5.0"),qu=t=>Jr?Pt.stat(t,{bigint:!0}):Pt.stat(t),ki=t=>Jr?Pt.statSync(t,{bigint:!0}):Pt.statSync(t);function wp(t,e){return Promise.all([qu(t),qu(e).catch(r=>{if(r.code==="ENOENT")return null;throw r})]).then(([r,n])=>({srcStat:r,destStat:n}))}function xp(t,e){let r,n=ki(t);try{r=ki(e)}catch(i){if(i.code==="ENOENT")return{srcStat:n,destStat:null};throw i}return{srcStat:n,destStat:r}}function Sp(t,e,r,n){bp.callbackify(wp)(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()&&Mi(t,e)?n(new Error(Kr(t,e,r))):n(null,{srcStat:o,destStat:a})})}function Ep(t,e,r){let{srcStat:n,destStat:i}=xp(t,e);if(i&&Vr(n,i))throw new Error("Source and destination must not be the same.");if(n.isDirectory()&&Mi(t,e))throw new Error(Kr(t,e,r));return{srcStat:n,destStat:i}}function Tu(t,e,r,n,i){let s=_e.resolve(_e.dirname(t)),o=_e.resolve(_e.dirname(r));if(o===s||o===_e.parse(o).root)return i();let a=(u,h)=>u?u.code==="ENOENT"?i():i(u):Vr(e,h)?i(new Error(Kr(t,r,n))):Tu(t,e,o,n,i);Jr?Pt.stat(o,{bigint:!0},a):Pt.stat(o,a)}function Nu(t,e,r,n){let i=_e.resolve(_e.dirname(t)),s=_e.resolve(_e.dirname(r));if(s===i||s===_e.parse(s).root)return;let o;try{o=ki(s)}catch(a){if(a.code==="ENOENT")return;throw a}if(Vr(e,o))throw new Error(Kr(t,r,n));return Nu(t,e,s,n)}function Vr(t,e){return!!(e.ino&&e.dev&&e.ino===t.ino&&e.dev===t.dev&&(Jr||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 Mi(t,e){let r=_e.resolve(t).split(_e.sep).filter(i=>i),n=_e.resolve(e).split(_e.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}'.`}ju.exports={checkPaths:Sp,checkPathsSync:Ep,checkParentPaths:Tu,checkParentPathsSync:Nu,isSrcSubdir:Mi}});var Xu=y((wb,Uu)=>{"use strict";var fe=le(),Vt=require("path"),Cp=Ne().mkdirsSync,Pp=Ri().utimesMillisSync,Kt=Jt();function Op(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
+ `).map(e=>e.trim()).join(" ")};Xo.O=function(t){return this.inspectOpts.colors=this.useColors,Ir.inspect(t,this.inspectOpts)}});var Go=y((Mv,Qn)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Qn.exports=jo():Qn.exports=Ho()});var Wo=y((qv,zo)=>{var $t;zo.exports=function(){if(!$t){try{$t=Go()("follow-redirects")}catch{}typeof $t!="function"&&($t=function(){})}$t.apply(null,arguments)}});var ii=y((Tv,ni)=>{var rt=require("url"),Zn=rt.URL,Wh=require("http"),Jh=require("https"),Yo=require("stream").Writable,Ko=require("assert"),Qo=Wo(),ti=["abort","aborted","connect","error","socket","timeout"],ri=Object.create(null);ti.forEach(function(t){ri[t]=function(e,r,n){this._redirectable.emit(t,e,r,n)}});var Vh=Ut("ERR_INVALID_URL","Invalid URL",TypeError),Jo=Ut("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),Yh=Ut("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),Kh=Ut("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),Qh=Ut("ERR_STREAM_WRITE_AFTER_END","write after end");function Ce(t,e){Yo.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()}Ce.prototype=Object.create(Yo.prototype);Ce.prototype.abort=function(){ea(this._currentRequest),this.emit("abort")};Ce.prototype.write=function(t,e,r){if(this._ending)throw new Qh;if(!nt(t)&&!t0(t))throw new TypeError("data should be a string, Buffer or Uint8Array");if(Bt(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 Kh),this.abort())};Ce.prototype.end=function(t,e,r){if(Bt(t)?(r=t,t=e=null):Bt(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}};Ce.prototype.setHeader=function(t,e){this._options.headers[t]=e,this._currentRequest.setHeader(t,e)};Ce.prototype.removeHeader=function(t){delete this._options.headers[t],this._currentRequest.removeHeader(t)};Ce.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){Ce.prototype[t]=function(e,r){return this._currentRequest[t](e,r)}});["aborted","connection","socket"].forEach(function(t){Object.defineProperty(Ce.prototype,t,{get:function(){return this._currentRequest[t]}})});Ce.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))}};Ce.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 ti)n.on(i,ri[i]);if(this._currentUrl=/^\//.test(this._options.path)?rt.format(this._options):this._options.path,this._isRedirect){var s=0,o=this,a=this._requestBodyBuffers;(function u(h){if(n===o._currentRequest)if(h)o.emit("error",h);else if(s<a.length){var c=a[s++];n.finished||n.write(c.data,c.encoding,u)}else o._ended&&n.end()})()}};Ce.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(ea(this._currentRequest),t.destroy(),++this._redirectCount>this._options.maxRedirects){this.emit("error",new Yh);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=[],ei(/^content-/i,this._options.headers));var o=ei(/^host$/i,this._options.headers),a=rt.parse(this._currentUrl),u=o||a.host,h=/^\w+:/.test(r)?this._currentUrl:rt.format(Object.assign(a,{host:u})),c;try{c=rt.resolve(h,r)}catch(b){this.emit("error",new Jo({cause:b}));return}Qo("redirecting to",c),this._isRedirect=!0;var p=rt.parse(c);if(Object.assign(this._options,p),(p.protocol!==a.protocol&&p.protocol!=="https:"||p.host!==u&&!e0(p.host,u))&&ei(/^(?:authorization|cookie)$/i,this._options.headers),Bt(i)){var g={headers:t.headers,statusCode:e},m={url:h,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 Jo({cause:b}))}};function Zo(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(h,c,p){if(nt(h)){var g;try{g=Vo(new Zn(h))}catch{g=rt.parse(h)}if(!nt(g.protocol))throw new Vh({input:h});h=g}else Zn&&h instanceof Zn?h=Vo(h):(p=c,c=h,h={protocol:i});return Bt(c)&&(p=c,c=null),c=Object.assign({maxRedirects:e.maxRedirects,maxBodyLength:e.maxBodyLength},h,c),c.nativeProtocols=r,!nt(c.host)&&!nt(c.hostname)&&(c.hostname="::1"),Ko.equal(c.protocol,i,"protocol mismatch"),Qo("options",c),new Ce(c,p)}function u(h,c,p){var g=o.request(h,c,p);return g.end(),g}Object.defineProperties(o,{request:{value:a,configurable:!0,enumerable:!0,writable:!0},get:{value:u,configurable:!0,enumerable:!0,writable:!0}})}),e}function Zh(){}function Vo(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 ei(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 Ut(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 ea(t){for(var e of ti)t.removeListener(e,ri[e]);t.on("error",Zh),t.abort()}function e0(t,e){Ko(nt(t)&&nt(e));var r=t.length-e.length-1;return r>0&&t[r]==="."&&t.endsWith(e)}function nt(t){return typeof t=="string"||t instanceof String}function Bt(t){return typeof t=="function"}function t0(t){return typeof t=="object"&&"length"in t}ni.exports=Zo({http:Wh,https:Jh});ni.exports.wrap=Zo});var si=y((Nv,r0)=>{r0.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 oa=y((jv,sa)=>{"use strict";var Xt=de(),ta=Hn(),n0=Gn(),i0=_r(),s0=require("http"),o0=require("https"),a0=ii().http,u0=ii().https,ra=require("url"),c0=require("zlib"),l0=si(),Ar=Er(),oi=Sr(),na=/https:?/;function ia(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,ia(s,e,s.href)}}sa.exports=function(e){return new Promise(function(n,i){var s=function(E){n(E)},o=function(E){i(E)},a=e.data,u=e.headers;if("User-Agent"in u||"user-agent"in u?!u["User-Agent"]&&!u["user-agent"]&&(delete u["User-Agent"],delete u["user-agent"]):u["User-Agent"]="axios/"+l0.version,a&&!Xt.isStream(a)){if(!Buffer.isBuffer(a))if(Xt.isArrayBuffer(a))a=Buffer.from(new Uint8Array(a));else if(Xt.isString(a))a=Buffer.from(a,"utf-8");else return o(Ar("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));u["Content-Length"]=a.length}var h=void 0;if(e.auth){var c=e.auth.username||"",p=e.auth.password||"";h=c+":"+p}var g=n0(e.baseURL,e.url),m=ra.parse(g),b=m.protocol||"http:";if(!h&&m.auth){var x=m.auth.split(":"),S=x[0]||"",F=x[1]||"";h=S+":"+F}h&&delete u.Authorization;var L=na.test(b),B=L?e.httpsAgent:e.httpAgent,G={path:i0(m.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:u,agent:B,agents:{http:e.httpAgent,https:e.httpsAgent},auth:h};e.socketPath?G.socketPath=e.socketPath:(G.hostname=m.hostname,G.port=m.port);var Y=e.proxy;if(!Y&&Y!==!1){var ye=b.slice(0,-1)+"_proxy",De=process.env[ye]||process.env[ye.toUpperCase()];if(De){var Q=ra.parse(De),D=process.env.no_proxy||process.env.NO_PROXY,q=!0;if(D){var k=D.split(",").map(function(E){return E.trim()});q=!k.some(function(E){return E?E==="*"||E[0]==="."&&m.hostname.substr(m.hostname.length-E.length)===E?!0:m.hostname===E:!1})}if(q&&(Y={host:Q.hostname,port:Q.port,protocol:Q.protocol},Q.auth)){var X=Q.auth.split(":");Y.auth={username:X[0],password:X[1]}}}}Y&&(G.headers.host=m.hostname+(m.port?":"+m.port:""),ia(G,Y,b+"//"+m.hostname+(m.port?":"+m.port:"")+G.path));var I,U=L&&(Y?na.test(Y.protocol):!0);e.transport?I=e.transport:e.maxRedirects===0?I=U?o0:s0:(e.maxRedirects&&(G.maxRedirects=e.maxRedirects),I=U?u0:a0),e.maxBodyLength>-1&&(G.maxBodyLength=e.maxBodyLength);var O=I.request(G,function(E){if(!O.aborted){var A=E,Oe=E.req||O;if(E.statusCode!==204&&Oe.method!=="HEAD"&&e.decompress!==!1)switch(E.headers["content-encoding"]){case"gzip":case"compress":case"deflate":A=A.pipe(c0.createUnzip()),delete E.headers["content-encoding"];break}var ke={status:E.statusCode,statusText:E.statusMessage,headers:E.headers,config:e,request:Oe};if(e.responseType==="stream")ke.data=A,ta(s,o,ke);else{var ae=[],ve=0;A.on("data",function(re){ae.push(re),ve+=re.length,e.maxContentLength>-1&&ve>e.maxContentLength&&(A.destroy(),o(Ar("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,Oe)))}),A.on("error",function(re){O.aborted||o(oi(re,e,null,Oe))}),A.on("end",function(){var re=Buffer.concat(ae);e.responseType!=="arraybuffer"&&(re=re.toString(e.responseEncoding),(!e.responseEncoding||e.responseEncoding==="utf8")&&(re=Xt.stripBOM(re))),ke.data=re,ta(s,o,ke)})}}});if(O.on("error",function(E){O.aborted&&E.code!=="ERR_FR_TOO_MANY_REDIRECTS"||o(oi(E,e,null,O))}),e.timeout){var j=parseInt(e.timeout,10);if(isNaN(j)){o(Ar("error trying to parse `config.timeout` to int",e,"ERR_PARSE_TIMEOUT",O));return}O.setTimeout(j,function(){O.abort(),o(Ar("timeout of "+j+"ms exceeded",e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",O))})}e.cancelToken&&e.cancelToken.promise.then(function(E){O.aborted||(O.abort(),o(E))}),Xt.isStream(a)?a.on("error",function(E){o(oi(E,e,null,O))}).pipe(O):O.end(a)})}});var kr=y((Lv,ca)=>{"use strict";var ie=de(),aa=yo(),f0=Sr(),d0={"Content-Type":"application/x-www-form-urlencoded"};function ua(t,e){!ie.isUndefined(t)&&ie.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function h0(){var t;return typeof XMLHttpRequest<"u"?t=Mo():typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]"&&(t=oa()),t}function p0(t,e,r){if(ie.isString(t))try{return(e||JSON.parse)(t),ie.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}var Rr={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:h0(),transformRequest:[function(e,r){return aa(r,"Accept"),aa(r,"Content-Type"),ie.isFormData(e)||ie.isArrayBuffer(e)||ie.isBuffer(e)||ie.isStream(e)||ie.isFile(e)||ie.isBlob(e)?e:ie.isArrayBufferView(e)?e.buffer:ie.isURLSearchParams(e)?(ua(r,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):ie.isObject(e)||r&&r["Content-Type"]==="application/json"?(ua(r,"application/json"),p0(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&&ie.isString(e)&&e.length)try{return JSON.parse(e)}catch(o){if(s)throw o.name==="SyntaxError"?f0(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}};Rr.headers={common:{Accept:"application/json, text/plain, */*"}};ie.forEach(["delete","get","head"],function(e){Rr.headers[e]={}});ie.forEach(["post","put","patch"],function(e){Rr.headers[e]=ie.merge(d0)});ca.exports=Rr});var fa=y(($v,la)=>{"use strict";var m0=de(),g0=kr();la.exports=function(e,r,n){var i=this||g0;return m0.forEach(n,function(o){e=o.call(i,e,r)}),e}});var ai=y((Bv,da)=>{"use strict";da.exports=function(e){return!!(e&&e.__CANCEL__)}});var ma=y((Uv,pa)=>{"use strict";var ha=de(),ui=fa(),y0=ai(),v0=kr();function ci(t){t.cancelToken&&t.cancelToken.throwIfRequested()}pa.exports=function(e){ci(e),e.headers=e.headers||{},e.data=ui.call(e,e.data,e.headers,e.transformRequest),e.headers=ha.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),ha.forEach(["delete","get","head","post","put","patch","common"],function(i){delete e.headers[i]});var r=e.adapter||v0.adapter;return r(e).then(function(i){return ci(e),i.data=ui.call(e,i.data,i.headers,e.transformResponse),i},function(i){return y0(i)||(ci(e),i&&i.response&&(i.response.data=ui.call(e,i.response.data,i.response.headers,e.transformResponse))),Promise.reject(i)})}});var li=y((Xv,ga)=>{"use strict";var ue=de();ga.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 u(g,m){return ue.isPlainObject(g)&&ue.isPlainObject(m)?ue.merge(g,m):ue.isPlainObject(m)?ue.merge({},m):ue.isArray(m)?m.slice():m}function h(g){ue.isUndefined(r[g])?ue.isUndefined(e[g])||(n[g]=u(void 0,e[g])):n[g]=u(e[g],r[g])}ue.forEach(i,function(m){ue.isUndefined(r[m])||(n[m]=u(void 0,r[m]))}),ue.forEach(s,h),ue.forEach(o,function(m){ue.isUndefined(r[m])?ue.isUndefined(e[m])||(n[m]=u(void 0,e[m])):n[m]=u(void 0,r[m])}),ue.forEach(a,function(m){m in r?n[m]=u(e[m],r[m]):m in e&&(n[m]=u(void 0,e[m]))});var c=i.concat(s).concat(o).concat(a),p=Object.keys(e).concat(Object.keys(r)).filter(function(m){return c.indexOf(m)===-1});return ue.forEach(p,h),n}});var _a=y((Hv,wa)=>{"use strict";var va=si(),fi={};["object","boolean","number","function","string","symbol"].forEach(function(t,e){fi[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});var ya={},b0=va.version.split(".");function ba(t,e){for(var r=e?e.split("."):b0,n=t.split("."),i=0;i<3;i++){if(r[i]>n[i])return!0;if(r[i]<n[i])return!1}return!1}fi.transitional=function(e,r,n){var i=r&&ba(r);function s(o,a){return"[Axios v"+va.version+"] Transitional option '"+o+"'"+a+(n?". "+n:"")}return function(o,a,u){if(e===!1)throw new Error(s(a," has been removed in "+r));return i&&!ya[a]&&(ya[a]=!0,console.warn(s(a," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(o,a,u):!0}};function w0(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],u=a===void 0||o(a,s,t);if(u!==!0)throw new TypeError("option "+s+" must be "+u);continue}if(r!==!0)throw Error("Unknown option "+s)}}wa.exports={isOlderVersion:ba,assertOptions:w0,validators:fi}});var Da=y((Gv,Pa)=>{"use strict";var Ea=de(),_0=_r(),xa=mo(),Sa=ma(),Mr=li(),Ca=_a(),gt=Ca.validators;function Ht(t){this.defaults=t,this.interceptors={request:new xa,response:new xa}}Ht.prototype.request=function(e){typeof e=="string"?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=Mr(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&&Ca.assertOptions(r,{silentJSONParsing:gt.transitional(gt.boolean,"1.0.0"),forcedJSONParsing:gt.transitional(gt.boolean,"1.0.0"),clarifyTimeoutError:gt.transitional(gt.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=[Sa,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 u=e;n.length;){var h=n.shift(),c=n.shift();try{u=h(u)}catch(p){c(p);break}}try{o=Sa(u)}catch(p){return Promise.reject(p)}for(;s.length;)o=o.then(s.shift(),s.shift());return o};Ht.prototype.getUri=function(e){return e=Mr(this.defaults,e),_0(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")};Ea.forEach(["delete","get","head","options"],function(e){Ht.prototype[e]=function(r,n){return this.request(Mr(n||{},{method:e,url:r,data:(n||{}).data}))}});Ea.forEach(["post","put","patch"],function(e){Ht.prototype[e]=function(r,n,i){return this.request(Mr(i||{},{method:e,url:r,data:n}))}});Pa.exports=Ht});var hi=y((zv,Oa)=>{"use strict";function di(t){this.message=t}di.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};di.prototype.__CANCEL__=!0;Oa.exports=di});var Fa=y((Wv,Ia)=>{"use strict";var x0=hi();function qr(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 x0(i),e(r.reason))})}qr.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};qr.source=function(){var e,r=new qr(function(i){e=i});return{token:r,cancel:e}};Ia.exports=qr});var Ra=y((Jv,Aa)=>{"use strict";Aa.exports=function(e){return function(n){return e.apply(null,n)}}});var Ma=y((Vv,ka)=>{"use strict";ka.exports=function(e){return typeof e=="object"&&e.isAxiosError===!0}});var Na=y((Yv,pi)=>{"use strict";var qa=de(),S0=Ln(),Tr=Da(),E0=li(),C0=kr();function Ta(t){var e=new Tr(t),r=S0(Tr.prototype.request,e);return qa.extend(r,Tr.prototype,e),qa.extend(r,e),r}var qe=Ta(C0);qe.Axios=Tr;qe.create=function(e){return Ta(E0(qe.defaults,e))};qe.Cancel=hi();qe.CancelToken=Fa();qe.isCancel=ai();qe.all=function(e){return Promise.all(e)};qe.spread=Ra();qe.isAxiosError=Ma();pi.exports=qe;pi.exports.default=qe});var mi=y((Kv,ja)=>{ja.exports=Na()});var $a=y((Qv,La)=>{"use strict";var P0=/[|\\{}()[\]^$+*?.]/g;La.exports=function(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(P0,"\\$&")}});var Ua=y((Zv,Ba)=>{"use strict";Ba.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 gi=y((eb,za)=>{var it=Ua(),Ga={};for(Nr in it)it.hasOwnProperty(Nr)&&(Ga[it[Nr]]=Nr);var Nr,C=za.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(he in C)if(C.hasOwnProperty(he)){if(!("channels"in C[he]))throw new Error("missing channels property: "+he);if(!("labels"in C[he]))throw new Error("missing channel labels property: "+he);if(C[he].labels.length!==C[he].channels)throw new Error("channel and label counts mismatch: "+he);Xa=C[he].channels,Ha=C[he].labels,delete C[he].channels,delete C[he].labels,Object.defineProperty(C[he],"channels",{value:Xa}),Object.defineProperty(C[he],"labels",{value:Ha})}var Xa,Ha,he;C.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,u,h;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),h=(i+s)/2,s===i?u=0:h<=.5?u=o/(s+i):u=o/(2-s-i),[a,u*100,h*100]};C.rgb.hsv=function(t){var e,r,n,i,s,o=t[0]/255,a=t[1]/255,u=t[2]/255,h=Math.max(o,a,u),c=h-Math.min(o,a,u),p=function(g){return(h-g)/6/c+1/2};return c===0?i=s=0:(s=c/h,e=p(o),r=p(a),n=p(u),o===h?i=n-r:a===h?i=1/3+e-n:u===h&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,h*100]};C.rgb.hwb=function(t){var e=t[0],r=t[1],n=t[2],i=C.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]};C.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 D0(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}C.rgb.keyword=function(t){var e=Ga[t];if(e)return e;var r=1/0,n;for(var i in it)if(it.hasOwnProperty(i)){var s=it[i],o=D0(t,s);o<r&&(r=o,n=i)}return n};C.keyword.rgb=function(t){return it[t]};C.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]};C.rgb.lab=function(t){var e=C.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]};C.hsl.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,i,s,o,a,u;if(r===0)return u=n*255,[u,u,u];n<.5?s=n*(1+r):s=n+r-n*r,i=2*n-s,a=[0,0,0];for(var h=0;h<3;h++)o=e+1/3*-(h-1),o<0&&o++,o>1&&o--,6*o<1?u=i+(s-i)*6*o:2*o<1?u=s:3*o<2?u=i+(s-i)*(2/3-o)*6:u=i,a[h]=u*255;return a};C.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]};C.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),u=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,u,o];case 1:return[a,n,o];case 2:return[o,n,u];case 3:return[o,a,n];case 4:return[u,o,n];case 5:return[n,o,a]}};C.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]};C.hwb.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,s,o,a,u;i>1&&(r/=i,n/=i),s=Math.floor(6*e),o=1-n,a=6*e-s,s&1&&(a=1-a),u=r+a*(o-r);var h,c,p;switch(s){default:case 6:case 0:h=o,c=u,p=r;break;case 1:h=u,c=o,p=r;break;case 2:h=r,c=o,p=u;break;case 3:h=r,c=u,p=o;break;case 4:h=u,c=r,p=o;break;case 5:h=o,c=r,p=u;break}return[h*255,c*255,p*255]};C.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]};C.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]};C.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]};C.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),u=Math.pow(i,3),h=Math.pow(o,3);return s=a>.008856?a:(s-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,o=h>.008856?h:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};C.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]};C.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]};C.rgb.ansi16=function(t){var e=t[0],r=t[1],n=t[2],i=1 in arguments?arguments[1]:C.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};C.hsv.ansi16=function(t){return C.rgb.ansi16(C.hsv.rgb(t),t[2])};C.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};C.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]};C.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]};C.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};C.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]};C.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,u;return o<1?a=s/(1-o):a=0,o<=0?u=0:i===e?u=(r-n)/o%6:i===r?u=2+(n-e)/o:u=4+(e-r)/o+4,u/=6,u%=1,[u*360,o*100,a*100]};C.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]};C.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]};C.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,u=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 u=(1-r)*n,[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]};C.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]};C.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]};C.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]};C.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]};C.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};C.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};C.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};C.gray.hsl=C.gray.hsv=function(t){return[0,0,t[0]]};C.gray.hwb=function(t){return[0,100,t[0]]};C.gray.cmyk=function(t){return[0,0,0,t[0]]};C.gray.lab=function(t){return[t[0],0,0]};C.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};C.rgb.gray=function(t){var e=(t[0]+t[1]+t[2])/3;return[e/255*100]}});var Ja=y((tb,Wa)=>{var jr=gi();function O0(){for(var t={},e=Object.keys(jr),r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function I0(t){var e=O0(),r=[t];for(e[t].distance=0;r.length;)for(var n=r.pop(),i=Object.keys(jr[n]),s=i.length,o=0;o<s;o++){var a=i[o],u=e[a];u.distance===-1&&(u.distance=e[n].distance+1,u.parent=n,r.unshift(a))}return e}function F0(t,e){return function(r){return e(t(r))}}function A0(t,e){for(var r=[e[t].parent,t],n=jr[e[t].parent][t],i=e[t].parent;e[i].parent;)r.unshift(e[i].parent),n=F0(jr[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}Wa.exports=function(t){for(var e=I0(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]=A0(o,e))}return r}});var Ya=y((rb,Va)=>{var yi=gi(),R0=Ja(),yt={},k0=Object.keys(yi);function M0(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 q0(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}k0.forEach(function(t){yt[t]={},Object.defineProperty(yt[t],"channels",{value:yi[t].channels}),Object.defineProperty(yt[t],"labels",{value:yi[t].labels});var e=R0(t),r=Object.keys(e);r.forEach(function(n){var i=e[n];yt[t][n]=q0(i),yt[t][n].raw=M0(i)})});Va.exports=yt});var Qa=y((nb,Ka)=>{"use strict";var vt=Ya(),Lr=(t,e)=>function(){return`\x1B[${t.apply(vt,arguments)+e}m`},$r=(t,e)=>function(){let r=t.apply(vt,arguments);return`\x1B[${38+e};5;${r}m`},Br=(t,e)=>function(){let r=t.apply(vt,arguments);return`\x1B[${38+e};2;${r[0]};${r[1]};${r[2]}m`};function T0(){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:$r(r,0)},e.color.ansi16m={rgb:Br(n,0)},e.bgColor.ansi={ansi:Lr(r,10)},e.bgColor.ansi256={ansi256:$r(r,10)},e.bgColor.ansi16m={rgb:Br(n,10)};for(let i of Object.keys(vt)){if(typeof vt[i]!="object")continue;let s=vt[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]=$r(s.ansi256,0),e.bgColor.ansi256[i]=$r(s.ansi256,10)),"rgb"in s&&(e.color.ansi16m[i]=Br(s.rgb,0),e.bgColor.ansi16m[i]=Br(s.rgb,10))}return e}Object.defineProperty(Ka,"exports",{enumerable:!0,get:T0})});var eu=y((ib,Za)=>{"use strict";Za.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 ru=y((sb,tu)=>{"use strict";var N0=require("os"),Te=eu(),ce=process.env,bt;Te("no-color")||Te("no-colors")||Te("color=false")?bt=!1:(Te("color")||Te("colors")||Te("color=true")||Te("color=always"))&&(bt=!0);"FORCE_COLOR"in ce&&(bt=ce.FORCE_COLOR.length===0||parseInt(ce.FORCE_COLOR,10)!==0);function j0(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function L0(t){if(bt===!1)return 0;if(Te("color=16m")||Te("color=full")||Te("color=truecolor"))return 3;if(Te("color=256"))return 2;if(t&&!t.isTTY&&bt!==!0)return 0;let e=bt?1:0;if(process.platform==="win32"){let r=N0.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 ce)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in ce)||ce.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in ce)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ce.TEAMCITY_VERSION)?1:0;if(ce.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in ce){let r=parseInt((ce.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ce.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ce.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ce.TERM)||"COLORTERM"in ce?1:(ce.TERM==="dumb",e)}function vi(t){let e=L0(t);return j0(e)}tu.exports={supportsColor:vi,stdout:vi(process.stdout),stderr:vi(process.stderr)}});var au=y((ob,ou)=>{"use strict";var $0=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,nu=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,B0=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,U0=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,X0=new Map([["n",`
7
+ `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function su(t){return t[0]==="u"&&t.length===5||t[0]==="x"&&t.length===3?String.fromCharCode(parseInt(t.slice(1),16)):X0.get(t)||t}function H0(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(B0))r.push(i[2].replace(U0,(o,a,u)=>a?su(a):u));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${t}')`);return r}function G0(t){nu.lastIndex=0;let e=[],r;for(;(r=nu.exec(t))!==null;){let n=r[1];if(r[2]){let i=H0(n,r[2]);e.push([n].concat(i))}else e.push([n])}return e}function iu(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}ou.exports=(t,e)=>{let r=[],n=[],i=[];if(e.replace($0,(s,o,a,u,h,c)=>{if(o)i.push(su(o));else if(u){let p=i.join("");i=[],n.push(r.length===0?p:iu(t,r)(p)),r.push({inverse:a,styles:G0(u)})}else if(h){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(iu(t,r)(i.join(""))),i=[],r.pop()}else i.push(c)}),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 Xr=y((ab,zt)=>{"use strict";var wi=$a(),V=Qa(),bi=ru().stdout,z0=au(),cu=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),lu=["ansi","ansi","ansi256","ansi16m"],fu=new Set(["gray"]),wt=Object.create(null);function uu(t,e){e=e||{};let r=bi?bi.level:0;t.level=e.level===void 0?r:e.level,t.enabled="enabled"in e?e.enabled:t.level>0}function Gt(t){if(!this||!(this instanceof Gt)||this.template){let e={};return uu(e,t),e.template=function(){let r=[].slice.call(arguments);return V0.apply(null,[e.template].concat(r))},Object.setPrototypeOf(e,Gt.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=Gt,e.template}uu(this,t)}cu&&(V.blue.open="\x1B[94m");for(let t of Object.keys(V))V[t].closeRe=new RegExp(wi(V[t].close),"g"),wt[t]={get(){let e=V[t];return Ur.call(this,this._styles?this._styles.concat(e):[e],this._empty,t)}};wt.visible={get(){return Ur.call(this,this._styles||[],!0,"visible")}};V.color.closeRe=new RegExp(wi(V.color.close),"g");for(let t of Object.keys(V.color.ansi))fu.has(t)||(wt[t]={get(){let e=this.level;return function(){let n={open:V.color[lu[e]][t].apply(null,arguments),close:V.color.close,closeRe:V.color.closeRe};return Ur.call(this,this._styles?this._styles.concat(n):[n],this._empty,t)}}});V.bgColor.closeRe=new RegExp(wi(V.bgColor.close),"g");for(let t of Object.keys(V.bgColor.ansi)){if(fu.has(t))continue;let e="bg"+t[0].toUpperCase()+t.slice(1);wt[e]={get(){let r=this.level;return function(){let i={open:V.bgColor[lu[r]][t].apply(null,arguments),close:V.bgColor.close,closeRe:V.bgColor.closeRe};return Ur.call(this,this._styles?this._styles.concat(i):[i],this._empty,t)}}}}var W0=Object.defineProperties(()=>{},wt);function Ur(t,e,r){let n=function(){return J0.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__=W0,n}function J0(){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=V.dim.open;cu&&this.hasGrey&&(V.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 V.dim.open=n,r}function V0(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 z0(t,n.join(""))}Object.defineProperties(Gt.prototype,wt);zt.exports=Gt();zt.exports.supportsColor=bi;zt.exports.default=zt.exports});var xt=y((cb,xi)=>{var Y0=require("fs"),K0=require("path");function pu(t){console.log(`[dotenv][DEBUG] ${t}`)}var Q0=`
8
+ `,Z0=/^\s*([\w.-]+)\s*=\s*(.*)?\s*$/,ep=/\\n/g,tp=/\n|\r|\r\n/;function mu(t,e){let r=!!(e&&e.debug),n={};return t.toString().split(tp).forEach(function(i,s){let o=i.match(Z0);if(o!=null){let a=o[1],u=o[2]||"",h=u.length-1,c=u[0]==='"'&&u[h]==='"';u[0]==="'"&&u[h]==="'"||c?(u=u.substring(1,h),c&&(u=u.replace(ep,Q0))):u=u.trim(),n[a]=u}else r&&pu(`did not match key and value when parsing line ${s+1}: ${i}`)}),n}function rp(t){let e=K0.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=mu(Y0.readFileSync(e,{encoding:r}),{debug:n});return Object.keys(i).forEach(function(s){Object.prototype.hasOwnProperty.call(process.env,s)?n&&pu(`"${s}" is already defined in \`process.env\` and will not be overwritten`):process.env[s]=i[s]}),{parsed:i}}catch(i){return{error:i}}}xi.exports.config=rp;xi.exports.parse=mu});var be=y(Si=>{"use strict";Si.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})};Si.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 yu=y((fb,gu)=>{var He=require("constants"),np=process.cwd,Hr=null,ip=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Hr||(Hr=np.call(process)),Hr};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Ei=process.chdir,process.chdir=function(t){Hr=null,Ei.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Ei));var Ei;gu.exports=sp;function sp(t){He.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=u(t.statSync),t.fstatSync=u(t.fstatSync),t.lstatSync=u(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(c,p,g){g&&process.nextTick(g)},t.lchmodSync=function(){}),t.chown&&!t.lchown&&(t.lchown=function(c,p,g,m){m&&process.nextTick(m)},t.lchownSync=function(){}),ip==="win32"&&(t.rename=typeof t.rename!="function"?t.rename:function(c){function p(g,m,b){var x=Date.now(),S=0;c(g,m,function F(L){if(L&&(L.code==="EACCES"||L.code==="EPERM")&&Date.now()-x<6e4){setTimeout(function(){t.stat(m,function(B,G){B&&B.code==="ENOENT"?c(g,m,F):b(L)})},S),S<100&&(S+=10);return}b&&b(L)})}return Object.setPrototypeOf&&Object.setPrototypeOf(p,c),p}(t.rename)),t.read=typeof t.read!="function"?t.read:function(c){function p(g,m,b,x,S,F){var L;if(F&&typeof F=="function"){var B=0;L=function(G,Y,ye){if(G&&G.code==="EAGAIN"&&B<10)return B++,c.call(t,g,m,b,x,S,L);F.apply(this,arguments)}}return c.call(t,g,m,b,x,S,L)}return Object.setPrototypeOf&&Object.setPrototypeOf(p,c),p}(t.read),t.readSync=typeof t.readSync!="function"?t.readSync:function(c){return function(p,g,m,b,x){for(var S=0;;)try{return c.call(t,p,g,m,b,x)}catch(F){if(F.code==="EAGAIN"&&S<10){S++;continue}throw F}}}(t.readSync);function e(c){c.lchmod=function(p,g,m){c.open(p,He.O_WRONLY|He.O_SYMLINK,g,function(b,x){if(b){m&&m(b);return}c.fchmod(x,g,function(S){c.close(x,function(F){m&&m(S||F)})})})},c.lchmodSync=function(p,g){var m=c.openSync(p,He.O_WRONLY|He.O_SYMLINK,g),b=!0,x;try{x=c.fchmodSync(m,g),b=!1}finally{if(b)try{c.closeSync(m)}catch{}else c.closeSync(m)}return x}}function r(c){He.hasOwnProperty("O_SYMLINK")&&c.futimes?(c.lutimes=function(p,g,m,b){c.open(p,He.O_SYMLINK,function(x,S){if(x){b&&b(x);return}c.futimes(S,g,m,function(F){c.close(S,function(L){b&&b(F||L)})})})},c.lutimesSync=function(p,g,m){var b=c.openSync(p,He.O_SYMLINK),x,S=!0;try{x=c.futimesSync(b,g,m),S=!1}finally{if(S)try{c.closeSync(b)}catch{}else c.closeSync(b)}return x}):c.futimes&&(c.lutimes=function(p,g,m,b){b&&process.nextTick(b)},c.lutimesSync=function(){})}function n(c){return c&&function(p,g,m){return c.call(t,p,g,function(b){h(b)&&(b=null),m&&m.apply(this,arguments)})}}function i(c){return c&&function(p,g){try{return c.call(t,p,g)}catch(m){if(!h(m))throw m}}}function s(c){return c&&function(p,g,m,b){return c.call(t,p,g,m,function(x){h(x)&&(x=null),b&&b.apply(this,arguments)})}}function o(c){return c&&function(p,g,m){try{return c.call(t,p,g,m)}catch(b){if(!h(b))throw b}}}function a(c){return c&&function(p,g,m){typeof g=="function"&&(m=g,g=null);function b(x,S){S&&(S.uid<0&&(S.uid+=4294967296),S.gid<0&&(S.gid+=4294967296)),m&&m.apply(this,arguments)}return g?c.call(t,p,g,b):c.call(t,p,b)}}function u(c){return c&&function(p,g){var m=g?c.call(t,p,g):c.call(t,p);return m&&(m.uid<0&&(m.uid+=4294967296),m.gid<0&&(m.gid+=4294967296)),m}}function h(c){if(!c||c.code==="ENOSYS")return!0;var p=!process.getuid||process.getuid()!==0;return!!(p&&(c.code==="EINVAL"||c.code==="EPERM"))}}});var wu=y((db,bu)=>{var vu=require("stream").Stream;bu.exports=op;function op(t){return{ReadStream:e,WriteStream:r};function e(n,i){if(!(this instanceof e))return new e(n,i);vu.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,u=o.length;a<u;a++){var h=o[a];this[h]=i[h]}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(c,p){if(c){s.emit("error",c),s.readable=!1;return}s.fd=p,s.emit("open",p),s._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);vu.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 u=s[o];this[u]=i[u]}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 xu=y((hb,_u)=>{"use strict";_u.exports=up;var ap=Object.getPrototypeOf||function(t){return t.__proto__};function up(t){if(t===null||typeof t!="object")return t;if(t instanceof Object)var e={__proto__:ap(t)};else var e=Object.create(null);return Object.getOwnPropertyNames(t).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}});var le=y((pb,Di)=>{var W=require("fs"),cp=yu(),lp=wu(),fp=xu(),Gr=require("util"),se,Wr;typeof Symbol=="function"&&typeof Symbol.for=="function"?(se=Symbol.for("graceful-fs.queue"),Wr=Symbol.for("graceful-fs.previous")):(se="___graceful-fs.queue",Wr="___graceful-fs.previous");function dp(){}function Cu(t,e){Object.defineProperty(t,se,{get:function(){return e}})}var st=dp;Gr.debuglog?st=Gr.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(st=function(){var t=Gr.format.apply(Gr,arguments);t="GFS4: "+t.split(/\n/).join(`
9
+ GFS4: `),console.error(t)});W[se]||(Su=global[se]||[],Cu(W,Su),W.close=function(t){function e(r,n){return t.call(W,r,function(i){i||Eu(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,Wr,{value:t}),e}(W.close),W.closeSync=function(t){function e(r){t.apply(W,arguments),Eu()}return Object.defineProperty(e,Wr,{value:t}),e}(W.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){st(W[se]),require("assert").equal(W[se].length,0)}));var Su;global[se]||Cu(global,W[se]);Di.exports=Ci(fp(W));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!W.__patched&&(Di.exports=Ci(W),W.__patched=!0);function Ci(t){cp(t),t.gracefulify=Ci,t.createReadStream=Y,t.createWriteStream=ye;var e=t.readFile;t.readFile=r;function r(D,q,k){return typeof q=="function"&&(k=q,q=null),X(D,q,k);function X(I,U,O,j){return e(I,U,function(M){M&&(M.code==="EMFILE"||M.code==="ENFILE")?St([X,[I,U,O],M,j||Date.now(),Date.now()]):typeof O=="function"&&O.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=i;function i(D,q,k,X){return typeof k=="function"&&(X=k,k=null),I(D,q,k,X);function I(U,O,j,M,E){return n(U,O,j,function(A){A&&(A.code==="EMFILE"||A.code==="ENFILE")?St([I,[U,O,j,M],A,E||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}var s=t.appendFile;s&&(t.appendFile=o);function o(D,q,k,X){return typeof k=="function"&&(X=k,k=null),I(D,q,k,X);function I(U,O,j,M,E){return s(U,O,j,function(A){A&&(A.code==="EMFILE"||A.code==="ENFILE")?St([I,[U,O,j,M],A,E||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=u);function u(D,q,k,X){return typeof k=="function"&&(X=k,k=0),I(D,q,k,X);function I(U,O,j,M,E){return a(U,O,j,function(A){A&&(A.code==="EMFILE"||A.code==="ENFILE")?St([I,[U,O,j,M],A,E||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}var h=t.readdir;t.readdir=p;var c=/^v[0-5]\./;function p(D,q,k){typeof q=="function"&&(k=q,q=null);var X=c.test(process.version)?function(O,j,M,E){return h(O,I(O,j,M,E))}:function(O,j,M,E){return h(O,j,I(O,j,M,E))};return X(D,q,k);function I(U,O,j,M){return function(E,A){E&&(E.code==="EMFILE"||E.code==="ENFILE")?St([X,[U,O,j],E,M||Date.now(),Date.now()]):(A&&A.sort&&A.sort(),typeof j=="function"&&j.call(this,E,A))}}}if(process.version.substr(0,4)==="v0.8"){var g=lp(t);F=g.ReadStream,B=g.WriteStream}var m=t.ReadStream;m&&(F.prototype=Object.create(m.prototype),F.prototype.open=L);var b=t.WriteStream;b&&(B.prototype=Object.create(b.prototype),B.prototype.open=G),Object.defineProperty(t,"ReadStream",{get:function(){return F},set:function(D){F=D},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return B},set:function(D){B=D},enumerable:!0,configurable:!0});var x=F;Object.defineProperty(t,"FileReadStream",{get:function(){return x},set:function(D){x=D},enumerable:!0,configurable:!0});var S=B;Object.defineProperty(t,"FileWriteStream",{get:function(){return S},set:function(D){S=D},enumerable:!0,configurable:!0});function F(D,q){return this instanceof F?(m.apply(this,arguments),this):F.apply(Object.create(F.prototype),arguments)}function L(){var D=this;Q(D.path,D.flags,D.mode,function(q,k){q?(D.autoClose&&D.destroy(),D.emit("error",q)):(D.fd=k,D.emit("open",k),D.read())})}function B(D,q){return this instanceof B?(b.apply(this,arguments),this):B.apply(Object.create(B.prototype),arguments)}function G(){var D=this;Q(D.path,D.flags,D.mode,function(q,k){q?(D.destroy(),D.emit("error",q)):(D.fd=k,D.emit("open",k))})}function Y(D,q){return new t.ReadStream(D,q)}function ye(D,q){return new t.WriteStream(D,q)}var De=t.open;t.open=Q;function Q(D,q,k,X){return typeof k=="function"&&(X=k,k=null),I(D,q,k,X);function I(U,O,j,M,E){return De(U,O,j,function(A,Oe){A&&(A.code==="EMFILE"||A.code==="ENFILE")?St([I,[U,O,j,M],A,E||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}return t}function St(t){st("ENQUEUE",t[0].name,t[1]),W[se].push(t),Pi()}var zr;function Eu(){for(var t=Date.now(),e=0;e<W[se].length;++e)W[se][e].length>2&&(W[se][e][3]=t,W[se][e][4]=t);Pi()}function Pi(){if(clearTimeout(zr),zr=void 0,W[se].length!==0){var t=W[se].shift(),e=t[0],r=t[1],n=t[2],i=t[3],s=t[4];if(i===void 0)st("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-i>=6e4){st("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-s,u=Math.max(s-i,1),h=Math.min(u*1.2,100);a>=h?(st("RETRY",e.name,r),e.apply(null,r.concat([i]))):W[se].push(t)}zr===void 0&&(zr=setTimeout(Pi,0))}}});var Wt=y(Ge=>{"use strict";var Pu=be().fromCallback,pe=le(),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 pe[t]=="function");Object.keys(pe).forEach(t=>{t!=="promises"&&(Ge[t]=pe[t])});hp.forEach(t=>{Ge[t]=Pu(pe[t])});Ge.exists=function(t,e){return typeof e=="function"?pe.exists(t,e):new Promise(r=>pe.exists(t,r))};Ge.read=function(t,e,r,n,i,s){return typeof s=="function"?pe.read(t,e,r,n,i,s):new Promise((o,a)=>{pe.read(t,e,r,n,i,(u,h,c)=>{if(u)return a(u);o({bytesRead:h,buffer:c})})})};Ge.write=function(t,e,...r){return typeof r[r.length-1]=="function"?pe.write(t,e,...r):new Promise((n,i)=>{pe.write(t,e,...r,(s,o,a)=>{if(s)return i(s);n({bytesWritten:o,buffer:a})})})};typeof pe.writev=="function"&&(Ge.writev=function(t,e,...r){return typeof r[r.length-1]=="function"?pe.writev(t,e,...r):new Promise((n,i)=>{pe.writev(t,e,...r,(s,o,a)=>{if(s)return i(s);n({bytesWritten:o,buffers:a})})})});typeof pe.realpath.native=="function"&&(Ge.realpath.native=Pu(pe.realpath.native))});var Oi=y((gb,Du)=>{Du.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 Ru=y((yb,Ii)=>{"use strict";var Et=Wt(),$e=require("path"),pp=Oi(),Ou=pp("10.12.0"),Iu=t=>{if(process.platform==="win32"&&/[<>:"|?*]/.test(t.replace($e.parse(t).root,""))){let r=new Error(`Path contains invalid characters: ${t}`);throw r.code="EINVAL",r}},Fu=t=>{let e={mode:511};return typeof t=="number"&&(t={mode:t}),{...e,...t}},Au=t=>{let e=new Error(`operation not permitted, mkdir '${t}'`);return e.code="EPERM",e.errno=-4048,e.path=t,e.syscall="mkdir",e};Ii.exports.makeDir=async(t,e)=>{if(Iu(t),e=Fu(e),Ou){let n=$e.resolve(t);return Et.mkdir(n,{mode:e.mode,recursive:!0})}let r=async n=>{try{await Et.mkdir(n,e.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if($e.dirname(n)===n)throw Au(n);if(i.message.includes("null bytes"))throw i;return await r($e.dirname(n)),r(n)}try{if(!(await Et.stat(n)).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return r($e.resolve(t))};Ii.exports.makeDirSync=(t,e)=>{if(Iu(t),e=Fu(e),Ou){let n=$e.resolve(t);return Et.mkdirSync(n,{mode:e.mode,recursive:!0})}let r=n=>{try{Et.mkdirSync(n,e.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if($e.dirname(n)===n)throw Au(n);if(i.message.includes("null bytes"))throw i;return r($e.dirname(n)),r(n)}try{if(!Et.statSync(n).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return r($e.resolve(t))}});var Ne=y((vb,ku)=>{"use strict";var mp=be().fromPromise,{makeDir:gp,makeDirSync:Fi}=Ru(),Ai=mp(gp);ku.exports={mkdirs:Ai,mkdirsSync:Fi,mkdirp:Ai,mkdirpSync:Fi,ensureDir:Ai,ensureDirSync:Fi}});var Ri=y((bb,Mu)=>{"use strict";var Ct=le();function yp(t,e,r,n){Ct.open(t,"r+",(i,s)=>{if(i)return n(i);Ct.futimes(s,e,r,o=>{Ct.close(s,a=>{n&&n(o||a)})})})}function vp(t,e,r){let n=Ct.openSync(t,"r+");return Ct.futimesSync(n,e,r),Ct.closeSync(n)}Mu.exports={utimesMillis:yp,utimesMillisSync:vp}});var Jt=y((wb,ju)=>{"use strict";var Pt=Wt(),we=require("path"),bp=require("util"),wp=Oi(),Jr=wp("10.5.0"),qu=t=>Jr?Pt.stat(t,{bigint:!0}):Pt.stat(t),ki=t=>Jr?Pt.statSync(t,{bigint:!0}):Pt.statSync(t);function _p(t,e){return Promise.all([qu(t),qu(e).catch(r=>{if(r.code==="ENOENT")return null;throw r})]).then(([r,n])=>({srcStat:r,destStat:n}))}function xp(t,e){let r,n=ki(t);try{r=ki(e)}catch(i){if(i.code==="ENOENT")return{srcStat:n,destStat:null};throw i}return{srcStat:n,destStat:r}}function Sp(t,e,r,n){bp.callbackify(_p)(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()&&Mi(t,e)?n(new Error(Yr(t,e,r))):n(null,{srcStat:o,destStat:a})})}function Ep(t,e,r){let{srcStat:n,destStat:i}=xp(t,e);if(i&&Vr(n,i))throw new Error("Source and destination must not be the same.");if(n.isDirectory()&&Mi(t,e))throw new Error(Yr(t,e,r));return{srcStat:n,destStat:i}}function Tu(t,e,r,n,i){let s=we.resolve(we.dirname(t)),o=we.resolve(we.dirname(r));if(o===s||o===we.parse(o).root)return i();let a=(u,h)=>u?u.code==="ENOENT"?i():i(u):Vr(e,h)?i(new Error(Yr(t,r,n))):Tu(t,e,o,n,i);Jr?Pt.stat(o,{bigint:!0},a):Pt.stat(o,a)}function Nu(t,e,r,n){let i=we.resolve(we.dirname(t)),s=we.resolve(we.dirname(r));if(s===i||s===we.parse(s).root)return;let o;try{o=ki(s)}catch(a){if(a.code==="ENOENT")return;throw a}if(Vr(e,o))throw new Error(Yr(t,r,n));return Nu(t,e,s,n)}function Vr(t,e){return!!(e.ino&&e.dev&&e.ino===t.ino&&e.dev===t.dev&&(Jr||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 Mi(t,e){let r=we.resolve(t).split(we.sep).filter(i=>i),n=we.resolve(e).split(we.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}'.`}ju.exports={checkPaths:Sp,checkPathsSync:Ep,checkParentPaths:Tu,checkParentPathsSync:Nu,isSrcSubdir:Mi}});var Xu=y((_b,Uu)=>{"use strict";var fe=le(),Vt=require("path"),Cp=Ne().mkdirsSync,Pp=Ri().utimesMillisSync,Yt=Jt();function Dp(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;
10
10
 
11
- see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:n,destStat:i}=Kt.checkPathsSync(t,e,"copy");return Kt.checkParentPathsSync(t,n,e,"copy"),Dp(i,t,e,r)}function Dp(t,e,r,n){if(n.filter&&!n.filter(e,r))return;let i=Vt.dirname(r);return fe.existsSync(i)||Cp(i),Lu(t,e,r,n)}function Lu(t,e,r,n){if(!(n.filter&&!n.filter(e,r)))return Ip(t,e,r,n)}function Ip(t,e,r,n){let s=(n.dereference?fe.statSync:fe.lstatSync)(e);if(s.isDirectory())return Tp(s,t,e,r,n);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return Fp(s,t,e,r,n);if(s.isSymbolicLink())return Lp(t,e,r,n)}function Fp(t,e,r,n,i){return e?Ap(t,r,n,i):$u(t,r,n,i)}function Ap(t,e,r,n){if(n.overwrite)return fe.unlinkSync(r),$u(t,e,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}function $u(t,e,r,n){return fe.copyFileSync(e,r),n.preserveTimestamps&&Rp(t.mode,e,r),qi(r,t.mode)}function Rp(t,e,r){return kp(t)&&Mp(r,t),qp(e,r)}function kp(t){return(t&128)===0}function Mp(t,e){return qi(t,e|128)}function qi(t,e){return fe.chmodSync(t,e)}function qp(t,e){let r=fe.statSync(t);return Pp(e,r.atime,r.mtime)}function Tp(t,e,r,n,i){if(!e)return Np(t.mode,r,n,i);if(e&&!e.isDirectory())throw new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`);return Bu(r,n,i)}function Np(t,e,r,n){return fe.mkdirSync(r),Bu(e,r,n),qi(r,t)}function Bu(t,e,r){fe.readdirSync(t).forEach(n=>jp(n,t,e,r))}function jp(t,e,r,n){let i=Vt.join(e,t),s=Vt.join(r,t),{destStat:o}=Kt.checkPathsSync(i,s,"copy");return Lu(o,i,s,n)}function Lp(t,e,r,n){let i=fe.readlinkSync(e);if(n.dereference&&(i=Vt.resolve(process.cwd(),i)),t){let s;try{s=fe.readlinkSync(r)}catch(o){if(o.code==="EINVAL"||o.code==="UNKNOWN")return fe.symlinkSync(i,r);throw o}if(n.dereference&&(s=Vt.resolve(process.cwd(),s)),Kt.isSrcSubdir(i,s))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${s}'.`);if(fe.statSync(r).isDirectory()&&Kt.isSrcSubdir(s,i))throw new Error(`Cannot overwrite '${s}' with '${i}'.`);return $p(i,r)}else return fe.symlinkSync(i,r)}function $p(t,e){return fe.unlinkSync(e),fe.symlinkSync(t,e)}Uu.exports=Op});var Ti=y((xb,Hu)=>{"use strict";Hu.exports={copySync:Xu()}});var ze=y((Sb,zu)=>{"use strict";var Bp=be().fromPromise,Gu=Wt();function Up(t){return Gu.access(t).then(()=>!0).catch(()=>!1)}zu.exports={pathExists:Bp(Up),pathExistsSync:Gu.existsSync}});var tc=y((Eb,ec)=>{"use strict";var we=le(),Yt=require("path"),Xp=Ne().mkdirs,Hp=ze().pathExists,Gp=Ri().utimesMillis,Qt=Jt();function zp(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;
11
+ see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:n,destStat:i}=Yt.checkPathsSync(t,e,"copy");return Yt.checkParentPathsSync(t,n,e,"copy"),Op(i,t,e,r)}function Op(t,e,r,n){if(n.filter&&!n.filter(e,r))return;let i=Vt.dirname(r);return fe.existsSync(i)||Cp(i),Lu(t,e,r,n)}function Lu(t,e,r,n){if(!(n.filter&&!n.filter(e,r)))return Ip(t,e,r,n)}function Ip(t,e,r,n){let s=(n.dereference?fe.statSync:fe.lstatSync)(e);if(s.isDirectory())return Tp(s,t,e,r,n);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return Fp(s,t,e,r,n);if(s.isSymbolicLink())return Lp(t,e,r,n)}function Fp(t,e,r,n,i){return e?Ap(t,r,n,i):$u(t,r,n,i)}function Ap(t,e,r,n){if(n.overwrite)return fe.unlinkSync(r),$u(t,e,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}function $u(t,e,r,n){return fe.copyFileSync(e,r),n.preserveTimestamps&&Rp(t.mode,e,r),qi(r,t.mode)}function Rp(t,e,r){return kp(t)&&Mp(r,t),qp(e,r)}function kp(t){return(t&128)===0}function Mp(t,e){return qi(t,e|128)}function qi(t,e){return fe.chmodSync(t,e)}function qp(t,e){let r=fe.statSync(t);return Pp(e,r.atime,r.mtime)}function Tp(t,e,r,n,i){if(!e)return Np(t.mode,r,n,i);if(e&&!e.isDirectory())throw new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`);return Bu(r,n,i)}function Np(t,e,r,n){return fe.mkdirSync(r),Bu(e,r,n),qi(r,t)}function Bu(t,e,r){fe.readdirSync(t).forEach(n=>jp(n,t,e,r))}function jp(t,e,r,n){let i=Vt.join(e,t),s=Vt.join(r,t),{destStat:o}=Yt.checkPathsSync(i,s,"copy");return Lu(o,i,s,n)}function Lp(t,e,r,n){let i=fe.readlinkSync(e);if(n.dereference&&(i=Vt.resolve(process.cwd(),i)),t){let s;try{s=fe.readlinkSync(r)}catch(o){if(o.code==="EINVAL"||o.code==="UNKNOWN")return fe.symlinkSync(i,r);throw o}if(n.dereference&&(s=Vt.resolve(process.cwd(),s)),Yt.isSrcSubdir(i,s))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${s}'.`);if(fe.statSync(r).isDirectory()&&Yt.isSrcSubdir(s,i))throw new Error(`Cannot overwrite '${s}' with '${i}'.`);return $p(i,r)}else return fe.symlinkSync(i,r)}function $p(t,e){return fe.unlinkSync(e),fe.symlinkSync(t,e)}Uu.exports=Dp});var Ti=y((xb,Hu)=>{"use strict";Hu.exports={copySync:Xu()}});var ze=y((Sb,zu)=>{"use strict";var Bp=be().fromPromise,Gu=Wt();function Up(t){return Gu.access(t).then(()=>!0).catch(()=>!1)}zu.exports={pathExists:Bp(Up),pathExistsSync:Gu.existsSync}});var tc=y((Eb,ec)=>{"use strict";var _e=le(),Kt=require("path"),Xp=Ne().mkdirs,Hp=ze().pathExists,Gp=Ri().utimesMillis,Qt=Jt();function zp(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;
12
12
 
13
- see https://github.com/jprichardson/node-fs-extra/issues/269`),Qt.checkPaths(t,e,"copy",(i,s)=>{if(i)return n(i);let{srcStat:o,destStat:a}=s;Qt.checkParentPaths(t,o,e,"copy",u=>u?n(u):r.filter?Ku(Wu,a,t,e,r,n):Wu(a,t,e,r,n))})}function Wu(t,e,r,n,i){let s=Yt.dirname(r);Hp(s,(o,a)=>{if(o)return i(o);if(a)return Ni(t,e,r,n,i);Xp(s,u=>u?i(u):Ni(t,e,r,n,i))})}function Ku(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 Ni(t,e,r,n,i){return n.filter?Ku(Ju,t,e,r,n,i):Ju(t,e,r,n,i)}function Ju(t,e,r,n,i){(n.dereference?we.stat:we.lstat)(e,(o,a)=>{if(o)return i(o);if(a.isDirectory())return Zp(a,t,e,r,n,i);if(a.isFile()||a.isCharacterDevice()||a.isBlockDevice())return Wp(a,t,e,r,n,i);if(a.isSymbolicLink())return rm(t,e,r,n,i)})}function Wp(t,e,r,n,i,s){return e?Jp(t,r,n,i,s):Yu(t,r,n,i,s)}function Jp(t,e,r,n,i){if(n.overwrite)we.unlink(r,s=>s?i(s):Yu(t,e,r,n,i));else return n.errorOnExist?i(new Error(`'${r}' already exists`)):i()}function Yu(t,e,r,n,i){we.copyFile(e,r,s=>s?i(s):n.preserveTimestamps?Vp(t.mode,e,r,i):Yr(r,t.mode,i))}function Vp(t,e,r,n){return Kp(t)?Yp(r,t,i=>i?n(i):Vu(t,e,r,n)):Vu(t,e,r,n)}function Kp(t){return(t&128)===0}function Yp(t,e,r){return Yr(t,e|128,r)}function Vu(t,e,r,n){Qp(e,r,i=>i?n(i):Yr(r,t,n))}function Yr(t,e,r){return we.chmod(t,e,r)}function Qp(t,e,r){we.stat(t,(n,i)=>n?r(n):Gp(e,i.atime,i.mtime,r))}function Zp(t,e,r,n,i,s){return e?e&&!e.isDirectory()?s(new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`)):Qu(r,n,i,s):em(t.mode,r,n,i,s)}function em(t,e,r,n,i){we.mkdir(r,s=>{if(s)return i(s);Qu(e,r,n,o=>o?i(o):Yr(r,t,i))})}function Qu(t,e,r,n){we.readdir(t,(i,s)=>i?n(i):Zu(s,t,e,r,n))}function Zu(t,e,r,n,i){let s=t.pop();return s?tm(t,s,e,r,n,i):i()}function tm(t,e,r,n,i,s){let o=Yt.join(r,e),a=Yt.join(n,e);Qt.checkPaths(o,a,"copy",(u,h)=>{if(u)return s(u);let{destStat:c}=h;Ni(c,o,a,i,p=>p?s(p):Zu(t,r,n,i,s))})}function rm(t,e,r,n,i){we.readlink(e,(s,o)=>{if(s)return i(s);if(n.dereference&&(o=Yt.resolve(process.cwd(),o)),t)we.readlink(r,(a,u)=>a?a.code==="EINVAL"||a.code==="UNKNOWN"?we.symlink(o,r,i):i(a):(n.dereference&&(u=Yt.resolve(process.cwd(),u)),Qt.isSrcSubdir(o,u)?i(new Error(`Cannot copy '${o}' to a subdirectory of itself, '${u}'.`)):t.isDirectory()&&Qt.isSrcSubdir(u,o)?i(new Error(`Cannot overwrite '${u}' with '${o}'.`)):nm(o,r,i)));else return we.symlink(o,r,i)})}function nm(t,e,r){we.unlink(e,n=>n?r(n):we.symlink(t,e,r))}ec.exports=zp});var ji=y((Cb,rc)=>{"use strict";var im=be().fromCallback;rc.exports={copy:im(tc())}});var fc=y((Pb,lc)=>{"use strict";var nc=le(),ac=require("path"),H=require("assert"),Zt=process.platform==="win32";function uc(t){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(r=>{t[r]=t[r]||nc[r],r=r+"Sync",t[r]=t[r]||nc[r]}),t.maxBusyTries=t.maxBusyTries||3}function Li(t,e,r){let n=0;typeof e=="function"&&(r=e,e={}),H(t,"rimraf: missing path"),H.strictEqual(typeof t,"string","rimraf: path should be a string"),H.strictEqual(typeof r,"function","rimraf: callback function required"),H(e,"rimraf: invalid options argument provided"),H.strictEqual(typeof e,"object","rimraf: options should be object"),uc(e),ic(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(()=>ic(t,e,i),o)}s.code==="ENOENT"&&(s=null)}r(s)})}function ic(t,e,r){H(t),H(e),H(typeof r=="function"),e.lstat(t,(n,i)=>{if(n&&n.code==="ENOENT")return r(null);if(n&&n.code==="EPERM"&&Zt)return sc(t,e,n,r);if(i&&i.isDirectory())return Qr(t,e,n,r);e.unlink(t,s=>{if(s){if(s.code==="ENOENT")return r(null);if(s.code==="EPERM")return Zt?sc(t,e,s,r):Qr(t,e,s,r);if(s.code==="EISDIR")return Qr(t,e,s,r)}return r(s)})})}function sc(t,e,r,n){H(t),H(e),H(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()?Qr(t,e,r,n):e.unlink(t,n)})})}function oc(t,e,r){let n;H(t),H(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()?Zr(t,e,r):e.unlinkSync(t)}function Qr(t,e,r,n){H(t),H(e),H(typeof n=="function"),e.rmdir(t,i=>{i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?sm(t,e,n):i&&i.code==="ENOTDIR"?n(r):n(i)})}function sm(t,e,r){H(t),H(e),H(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=>{Li(ac.join(t,a),e,u=>{if(!o){if(u)return r(o=u);--s===0&&e.rmdir(t,r)}})})})}function cc(t,e){let r;e=e||{},uc(e),H(t,"rimraf: missing path"),H.strictEqual(typeof t,"string","rimraf: path should be a string"),H(e,"rimraf: missing options"),H.strictEqual(typeof e,"object","rimraf: options should be object");try{r=e.lstatSync(t)}catch(n){if(n.code==="ENOENT")return;n.code==="EPERM"&&Zt&&oc(t,e,n)}try{r&&r.isDirectory()?Zr(t,e,null):e.unlinkSync(t)}catch(n){if(n.code==="ENOENT")return;if(n.code==="EPERM")return Zt?oc(t,e,n):Zr(t,e,n);if(n.code!=="EISDIR")throw n;Zr(t,e,n)}}function Zr(t,e,r){H(t),H(e);try{e.rmdirSync(t)}catch(n){if(n.code==="ENOTDIR")throw r;if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")om(t,e);else if(n.code!=="ENOENT")throw n}}function om(t,e){if(H(t),H(e),e.readdirSync(t).forEach(r=>cc(ac.join(t,r),e)),Zt){let r=Date.now();do try{return e.rmdirSync(t,e)}catch{}while(Date.now()-r<500)}else return e.rmdirSync(t,e)}lc.exports=Li;Li.sync=cc});var er=y((Ob,hc)=>{"use strict";var am=be().fromCallback,dc=fc();hc.exports={remove:am(dc),removeSync:dc.sync}});var wc=y((Db,_c)=>{"use strict";var um=be().fromCallback,gc=le(),yc=require("path"),vc=Ne(),bc=er(),pc=um(function(e,r){r=r||function(){},gc.readdir(e,(n,i)=>{if(n)return vc.mkdirs(e,r);i=i.map(o=>yc.join(e,o)),s();function s(){let o=i.pop();if(!o)return r();bc.remove(o,a=>{if(a)return r(a);s()})}})});function mc(t){let e;try{e=gc.readdirSync(t)}catch{return vc.mkdirsSync(t)}e.forEach(r=>{r=yc.join(t,r),bc.removeSync(r)})}_c.exports={emptyDirSync:mc,emptydirSync:mc,emptyDir:pc,emptydir:pc}});var Cc=y((Ib,Ec)=>{"use strict";var cm=be().fromCallback,xc=require("path"),We=le(),Sc=Ne();function lm(t,e){function r(){We.writeFile(t,"",n=>{if(n)return e(n);e()})}We.stat(t,(n,i)=>{if(!n&&i.isFile())return e();let s=xc.dirname(t);We.stat(s,(o,a)=>{if(o)return o.code==="ENOENT"?Sc.mkdirs(s,u=>{if(u)return e(u);r()}):e(o);a.isDirectory()?r():We.readdir(s,u=>{if(u)return e(u)})})})}function fm(t){let e;try{e=We.statSync(t)}catch{}if(e&&e.isFile())return;let r=xc.dirname(t);try{We.statSync(r).isDirectory()||We.readdirSync(r)}catch(n){if(n&&n.code==="ENOENT")Sc.mkdirsSync(r);else throw n}We.writeFileSync(t,"")}Ec.exports={createFile:cm(lm),createFileSync:fm}});var Fc=y((Fb,Ic)=>{"use strict";var dm=be().fromCallback,Oc=require("path"),ot=le(),Dc=Ne(),Pc=ze().pathExists;function hm(t,e,r){function n(i,s){ot.link(i,s,o=>{if(o)return r(o);r(null)})}Pc(e,(i,s)=>{if(i)return r(i);if(s)return r(null);ot.lstat(t,o=>{if(o)return o.message=o.message.replace("lstat","ensureLink"),r(o);let a=Oc.dirname(e);Pc(a,(u,h)=>{if(u)return r(u);if(h)return n(t,e);Dc.mkdirs(a,c=>{if(c)return r(c);n(t,e)})})})})}function pm(t,e){if(ot.existsSync(e))return;try{ot.lstatSync(t)}catch(s){throw s.message=s.message.replace("lstat","ensureLink"),s}let n=Oc.dirname(e);return ot.existsSync(n)||Dc.mkdirsSync(n),ot.linkSync(t,e)}Ic.exports={createLink:dm(hm),createLinkSync:pm}});var Rc=y((Ab,Ac)=>{"use strict";var Je=require("path"),tr=le(),mm=ze().pathExists;function gm(t,e,r){if(Je.isAbsolute(t))return tr.lstat(t,n=>n?(n.message=n.message.replace("lstat","ensureSymlink"),r(n)):r(null,{toCwd:t,toDst:t}));{let n=Je.dirname(e),i=Je.join(n,t);return mm(i,(s,o)=>s?r(s):o?r(null,{toCwd:i,toDst:t}):tr.lstat(t,a=>a?(a.message=a.message.replace("lstat","ensureSymlink"),r(a)):r(null,{toCwd:t,toDst:Je.relative(n,t)})))}}function ym(t,e){let r;if(Je.isAbsolute(t)){if(r=tr.existsSync(t),!r)throw new Error("absolute srcpath does not exist");return{toCwd:t,toDst:t}}else{let n=Je.dirname(e),i=Je.join(n,t);if(r=tr.existsSync(i),r)return{toCwd:i,toDst:t};if(r=tr.existsSync(t),!r)throw new Error("relative srcpath does not exist");return{toCwd:t,toDst:Je.relative(n,t)}}}Ac.exports={symlinkPaths:gm,symlinkPathsSync:ym}});var qc=y((Rb,Mc)=>{"use strict";var kc=le();function vm(t,e,r){if(r=typeof e=="function"?e:r,e=typeof e=="function"?!1:e,e)return r(null,e);kc.lstat(t,(n,i)=>{if(n)return r(null,"file");e=i&&i.isDirectory()?"dir":"file",r(null,e)})}function bm(t,e){let r;if(e)return e;try{r=kc.lstatSync(t)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}Mc.exports={symlinkType:vm,symlinkTypeSync:bm}});var Uc=y((kb,Bc)=>{"use strict";var _m=be().fromCallback,Nc=require("path"),Ot=le(),jc=Ne(),wm=jc.mkdirs,xm=jc.mkdirsSync,Lc=Rc(),Sm=Lc.symlinkPaths,Em=Lc.symlinkPathsSync,$c=qc(),Cm=$c.symlinkType,Pm=$c.symlinkTypeSync,Tc=ze().pathExists;function Om(t,e,r,n){n=typeof r=="function"?r:n,r=typeof r=="function"?!1:r,Tc(e,(i,s)=>{if(i)return n(i);if(s)return n(null);Sm(t,e,(o,a)=>{if(o)return n(o);t=a.toDst,Cm(a.toCwd,r,(u,h)=>{if(u)return n(u);let c=Nc.dirname(e);Tc(c,(p,g)=>{if(p)return n(p);if(g)return Ot.symlink(t,e,h,n);wm(c,m=>{if(m)return n(m);Ot.symlink(t,e,h,n)})})})})})}function Dm(t,e,r){if(Ot.existsSync(e))return;let i=Em(t,e);t=i.toDst,r=Pm(i.toCwd,r);let s=Nc.dirname(e);return Ot.existsSync(s)||xm(s),Ot.symlinkSync(t,e,r)}Bc.exports={createSymlink:_m(Om),createSymlinkSync:Dm}});var Hc=y((Mb,Xc)=>{"use strict";var en=Cc(),tn=Fc(),rn=Uc();Xc.exports={createFile:en.createFile,createFileSync:en.createFileSync,ensureFile:en.createFile,ensureFileSync:en.createFileSync,createLink:tn.createLink,createLinkSync:tn.createLinkSync,ensureLink:tn.createLink,ensureLinkSync:tn.createLinkSync,createSymlink:rn.createSymlink,createSymlinkSync:rn.createSymlinkSync,ensureSymlink:rn.createSymlink,ensureSymlinkSync:rn.createSymlinkSync}});var nn=y((qb,Gc)=>{function Im(t,{EOL:e=`
14
- `,finalEOL:r=!0,replacer:n=null,spaces:i}={}){let s=r?e:"";return JSON.stringify(t,n,i).replace(/\n/g,e)+s}function Fm(t){return Buffer.isBuffer(t)&&(t=t.toString("utf8")),t.replace(/^\uFEFF/,"")}Gc.exports={stringify:Im,stripBom:Fm}});var Vc=y((Tb,Jc)=>{var Dt;try{Dt=le()}catch{Dt=require("fs")}var sn=be(),{stringify:zc,stripBom:Wc}=nn();async function Am(t,e={}){typeof e=="string"&&(e={encoding:e});let r=e.fs||Dt,n="throws"in e?e.throws:!0,i=await sn.fromCallback(r.readFile)(t,e);i=Wc(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 Rm=sn.fromPromise(Am);function km(t,e={}){typeof e=="string"&&(e={encoding:e});let r=e.fs||Dt,n="throws"in e?e.throws:!0;try{let i=r.readFileSync(t,e);return i=Wc(i),JSON.parse(i,e.reviver)}catch(i){if(n)throw i.message=`${t}: ${i.message}`,i;return null}}async function Mm(t,e,r={}){let n=r.fs||Dt,i=zc(e,r);await sn.fromCallback(n.writeFile)(t,i,r)}var qm=sn.fromPromise(Mm);function Tm(t,e,r={}){let n=r.fs||Dt,i=zc(e,r);return n.writeFileSync(t,i,r)}var Nm={readFile:Rm,readFileSync:km,writeFile:qm,writeFileSync:Tm};Jc.exports=Nm});var Yc=y((Nb,Kc)=>{"use strict";var on=Vc();Kc.exports={readJson:on.readFile,readJsonSync:on.readFileSync,writeJson:on.writeFile,writeJsonSync:on.writeFileSync}});var an=y((jb,el)=>{"use strict";var jm=be().fromCallback,rr=le(),Qc=require("path"),Zc=Ne(),Lm=ze().pathExists;function $m(t,e,r,n){typeof r=="function"&&(n=r,r="utf8");let i=Qc.dirname(t);Lm(i,(s,o)=>{if(s)return n(s);if(o)return rr.writeFile(t,e,r,n);Zc.mkdirs(i,a=>{if(a)return n(a);rr.writeFile(t,e,r,n)})})}function Bm(t,...e){let r=Qc.dirname(t);if(rr.existsSync(r))return rr.writeFileSync(t,...e);Zc.mkdirsSync(r),rr.writeFileSync(t,...e)}el.exports={outputFile:jm($m),outputFileSync:Bm}});var rl=y((Lb,tl)=>{"use strict";var{stringify:Um}=nn(),{outputFile:Xm}=an();async function Hm(t,e,r={}){let n=Um(e,r);await Xm(t,n,r)}tl.exports=Hm});var il=y(($b,nl)=>{"use strict";var{stringify:Gm}=nn(),{outputFileSync:zm}=an();function Wm(t,e,r){let n=Gm(e,r);zm(t,n,r)}nl.exports=Wm});var ol=y((Bb,sl)=>{"use strict";var Jm=be().fromPromise,me=Yc();me.outputJson=Jm(rl());me.outputJsonSync=il();me.outputJSON=me.outputJson;me.outputJSONSync=me.outputJsonSync;me.writeJSON=me.writeJson;me.writeJSONSync=me.writeJsonSync;me.readJSON=me.readJson;me.readJSONSync=me.readJsonSync;sl.exports=me});var dl=y((Ub,fl)=>{"use strict";var cl=le(),Vm=require("path"),Km=Ti().copySync,ll=er().removeSync,Ym=Ne().mkdirpSync,al=Jt();function Qm(t,e,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:i}=al.checkPathsSync(t,e,"move");return al.checkParentPathsSync(t,i,e,"move"),Ym(Vm.dirname(e)),Zm(t,e,n)}function Zm(t,e,r){if(r)return ll(e),ul(t,e,r);if(cl.existsSync(e))throw new Error("dest already exists.");return ul(t,e,r)}function ul(t,e,r){try{cl.renameSync(t,e)}catch(n){if(n.code!=="EXDEV")throw n;return eg(t,e,r)}}function eg(t,e,r){return Km(t,e,{overwrite:r,errorOnExist:!0}),ll(t)}fl.exports=Qm});var pl=y((Xb,hl)=>{"use strict";hl.exports={moveSync:dl()}});var bl=y((Hb,vl)=>{"use strict";var tg=le(),rg=require("path"),ng=ji().copy,yl=er().remove,ig=Ne().mkdirp,sg=ze().pathExists,ml=Jt();function og(t,e,r,n){typeof r=="function"&&(n=r,r={});let i=r.overwrite||r.clobber||!1;ml.checkPaths(t,e,"move",(s,o)=>{if(s)return n(s);let{srcStat:a}=o;ml.checkParentPaths(t,a,e,"move",u=>{if(u)return n(u);ig(rg.dirname(e),h=>h?n(h):ag(t,e,i,n))})})}function ag(t,e,r,n){if(r)return yl(e,i=>i?n(i):gl(t,e,r,n));sg(e,(i,s)=>i?n(i):s?n(new Error("dest already exists.")):gl(t,e,r,n))}function gl(t,e,r,n){tg.rename(t,e,i=>i?i.code!=="EXDEV"?n(i):ug(t,e,r,n):n())}function ug(t,e,r,n){ng(t,e,{overwrite:r,errorOnExist:!0},s=>s?n(s):yl(t,n))}vl.exports=og});var wl=y((Gb,_l)=>{"use strict";var cg=be().fromCallback;_l.exports={move:cg(bl())}});var nr=y((zb,$i)=>{"use strict";$i.exports={...Wt(),...Ti(),...ji(),...wc(),...Hc(),...ol(),...Ne(),...pl(),...wl(),...an(),...ze(),...er()};var xl=require("fs");Object.getOwnPropertyDescriptor(xl,"promises")&&Object.defineProperty($i.exports,"promises",{get(){return xl.promises}})});var Al=y((Jb,Fl)=>{"use strict";Fl.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 Xi=y((Vb,kl)=>{var ir=Al(),Rl={};for(let t of Object.keys(ir))Rl[ir[t]]=t;var P={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"]}};kl.exports=P;for(let t of Object.keys(P)){if(!("channels"in P[t]))throw new Error("missing channels property: "+t);if(!("labels"in P[t]))throw new Error("missing channel labels property: "+t);if(P[t].labels.length!==P[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:e,labels:r}=P[t];delete P[t].channels,delete P[t].labels,Object.defineProperty(P[t],"channels",{value:e}),Object.defineProperty(P[t],"labels",{value:r})}P.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,u;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 h=(i+s)/2;return s===i?u=0:h<=.5?u=o/(s+i):u=o/(2-s-i),[a,u*100,h*100]};P.rgb.hsv=function(t){let e,r,n,i,s,o=t[0]/255,a=t[1]/255,u=t[2]/255,h=Math.max(o,a,u),c=h-Math.min(o,a,u),p=function(g){return(h-g)/6/c+1/2};return c===0?(i=0,s=0):(s=c/h,e=p(o),r=p(a),n=p(u),o===h?i=n-r:a===h?i=1/3+e-n:u===h&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,h*100]};P.rgb.hwb=function(t){let e=t[0],r=t[1],n=t[2],i=P.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]};P.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 fg(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}P.rgb.keyword=function(t){let e=Rl[t];if(e)return e;let r=1/0,n;for(let i of Object.keys(ir)){let s=ir[i],o=fg(t,s);o<r&&(r=o,n=i)}return n};P.keyword.rgb=function(t){return ir[t]};P.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]};P.rgb.lab=function(t){let e=P.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]};P.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,u=[0,0,0];for(let h=0;h<3;h++)s=e+1/3*-(h-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,u[h]=o*255;return u};P.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]};P.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),u=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,u,o];case 1:return[a,n,o];case 2:return[o,n,u];case 3:return[o,a,n];case 4:return[u,o,n];case 5:return[n,o,a]}};P.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]};P.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 u=r+s*(a-r),h,c,p;switch(o){default:case 6:case 0:h=a,c=u,p=r;break;case 1:h=u,c=a,p=r;break;case 2:h=r,c=a,p=u;break;case 3:h=r,c=u,p=a;break;case 4:h=u,c=r,p=a;break;case 5:h=a,c=r,p=u;break}return[h*255,c*255,p*255]};P.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]};P.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]};P.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]};P.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,u=i**3,h=o**3;return s=a>.008856?a:(s-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,o=h>.008856?h:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};P.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]};P.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]};P.rgb.ansi16=function(t,e=null){let[r,n,i]=t,s=e===null?P.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};P.hsv.ansi16=function(t){return P.rgb.ansi16(P.hsv.rgb(t),t[2])};P.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)};P.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]};P.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]};P.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};P.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]};P.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,u;return o<1?a=s/(1-o):a=0,o<=0?u=0:i===e?u=(r-n)/o%6:i===r?u=2+(n-e)/o:u=4+(e-r)/o,u/=6,u%=1,[u*360,o*100,a*100]};P.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]};P.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]};P.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,u=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 u=(1-r)*n,[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]};P.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]};P.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]};P.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]};P.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]};P.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};P.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};P.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};P.gray.hsl=function(t){return[0,0,t[0]]};P.gray.hsv=P.gray.hsl;P.gray.hwb=function(t){return[0,100,t[0]]};P.gray.cmyk=function(t){return[0,0,0,t[0]]};P.gray.lab=function(t){return[t[0],0,0]};P.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};P.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}});var ql=y((Kb,Ml)=>{var cn=Xi();function dg(){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 hg(t){let e=dg(),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],u=e[a];u.distance===-1&&(u.distance=e[n].distance+1,u.parent=n,r.unshift(a))}}return e}function pg(t,e){return function(r){return e(t(r))}}function mg(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=pg(cn[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}Ml.exports=function(t){let e=hg(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]=mg(o,e))}return r}});var Nl=y((Yb,Tl)=>{var Hi=Xi(),gg=ql(),It={},yg=Object.keys(Hi);function vg(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 bg(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}yg.forEach(t=>{It[t]={},Object.defineProperty(It[t],"channels",{value:Hi[t].channels}),Object.defineProperty(It[t],"labels",{value:Hi[t].labels});let e=gg(t);Object.keys(e).forEach(n=>{let i=e[n];It[t][n]=bg(i),It[t][n].raw=vg(i)})});Tl.exports=It});var Xl=y((Qb,Ul)=>{"use strict";var jl=(t,e)=>(...r)=>`\x1B[${t(...r)+e}m`,Ll=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};5;${n}m`},$l=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};2;${n[0]};${n[1]};${n[2]}m`},ln=t=>t,Bl=(t,e,r)=>[t,e,r],Ft=(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})},Gi,At=(t,e,r,n)=>{Gi===void 0&&(Gi=Nl());let i=n?10:0,s={};for(let[o,a]of Object.entries(Gi)){let u=o==="ansi16"?"ansi":o;o===e?s[u]=t(r,i):typeof a=="object"&&(s[u]=t(a[e],i))}return s};function _g(){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",Ft(e.color,"ansi",()=>At(jl,"ansi16",ln,!1)),Ft(e.color,"ansi256",()=>At(Ll,"ansi256",ln,!1)),Ft(e.color,"ansi16m",()=>At($l,"rgb",Bl,!1)),Ft(e.bgColor,"ansi",()=>At(jl,"ansi16",ln,!0)),Ft(e.bgColor,"ansi256",()=>At(Ll,"ansi256",ln,!0)),Ft(e.bgColor,"ansi16m",()=>At($l,"rgb",Bl,!0)),e}Object.defineProperty(Ul,"exports",{enumerable:!0,get:_g})});var Gl=y((Zb,Hl)=>{"use strict";var wg=(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},xg=(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
13
+ see https://github.com/jprichardson/node-fs-extra/issues/269`),Qt.checkPaths(t,e,"copy",(i,s)=>{if(i)return n(i);let{srcStat:o,destStat:a}=s;Qt.checkParentPaths(t,o,e,"copy",u=>u?n(u):r.filter?Yu(Wu,a,t,e,r,n):Wu(a,t,e,r,n))})}function Wu(t,e,r,n,i){let s=Kt.dirname(r);Hp(s,(o,a)=>{if(o)return i(o);if(a)return Ni(t,e,r,n,i);Xp(s,u=>u?i(u):Ni(t,e,r,n,i))})}function Yu(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 Ni(t,e,r,n,i){return n.filter?Yu(Ju,t,e,r,n,i):Ju(t,e,r,n,i)}function Ju(t,e,r,n,i){(n.dereference?_e.stat:_e.lstat)(e,(o,a)=>{if(o)return i(o);if(a.isDirectory())return Zp(a,t,e,r,n,i);if(a.isFile()||a.isCharacterDevice()||a.isBlockDevice())return Wp(a,t,e,r,n,i);if(a.isSymbolicLink())return rm(t,e,r,n,i)})}function Wp(t,e,r,n,i,s){return e?Jp(t,r,n,i,s):Ku(t,r,n,i,s)}function Jp(t,e,r,n,i){if(n.overwrite)_e.unlink(r,s=>s?i(s):Ku(t,e,r,n,i));else return n.errorOnExist?i(new Error(`'${r}' already exists`)):i()}function Ku(t,e,r,n,i){_e.copyFile(e,r,s=>s?i(s):n.preserveTimestamps?Vp(t.mode,e,r,i):Kr(r,t.mode,i))}function Vp(t,e,r,n){return Yp(t)?Kp(r,t,i=>i?n(i):Vu(t,e,r,n)):Vu(t,e,r,n)}function Yp(t){return(t&128)===0}function Kp(t,e,r){return Kr(t,e|128,r)}function Vu(t,e,r,n){Qp(e,r,i=>i?n(i):Kr(r,t,n))}function Kr(t,e,r){return _e.chmod(t,e,r)}function Qp(t,e,r){_e.stat(t,(n,i)=>n?r(n):Gp(e,i.atime,i.mtime,r))}function Zp(t,e,r,n,i,s){return e?e&&!e.isDirectory()?s(new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`)):Qu(r,n,i,s):em(t.mode,r,n,i,s)}function em(t,e,r,n,i){_e.mkdir(r,s=>{if(s)return i(s);Qu(e,r,n,o=>o?i(o):Kr(r,t,i))})}function Qu(t,e,r,n){_e.readdir(t,(i,s)=>i?n(i):Zu(s,t,e,r,n))}function Zu(t,e,r,n,i){let s=t.pop();return s?tm(t,s,e,r,n,i):i()}function tm(t,e,r,n,i,s){let o=Kt.join(r,e),a=Kt.join(n,e);Qt.checkPaths(o,a,"copy",(u,h)=>{if(u)return s(u);let{destStat:c}=h;Ni(c,o,a,i,p=>p?s(p):Zu(t,r,n,i,s))})}function rm(t,e,r,n,i){_e.readlink(e,(s,o)=>{if(s)return i(s);if(n.dereference&&(o=Kt.resolve(process.cwd(),o)),t)_e.readlink(r,(a,u)=>a?a.code==="EINVAL"||a.code==="UNKNOWN"?_e.symlink(o,r,i):i(a):(n.dereference&&(u=Kt.resolve(process.cwd(),u)),Qt.isSrcSubdir(o,u)?i(new Error(`Cannot copy '${o}' to a subdirectory of itself, '${u}'.`)):t.isDirectory()&&Qt.isSrcSubdir(u,o)?i(new Error(`Cannot overwrite '${u}' with '${o}'.`)):nm(o,r,i)));else return _e.symlink(o,r,i)})}function nm(t,e,r){_e.unlink(e,n=>n?r(n):_e.symlink(t,e,r))}ec.exports=zp});var ji=y((Cb,rc)=>{"use strict";var im=be().fromCallback;rc.exports={copy:im(tc())}});var fc=y((Pb,lc)=>{"use strict";var nc=le(),ac=require("path"),H=require("assert"),Zt=process.platform==="win32";function uc(t){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(r=>{t[r]=t[r]||nc[r],r=r+"Sync",t[r]=t[r]||nc[r]}),t.maxBusyTries=t.maxBusyTries||3}function Li(t,e,r){let n=0;typeof e=="function"&&(r=e,e={}),H(t,"rimraf: missing path"),H.strictEqual(typeof t,"string","rimraf: path should be a string"),H.strictEqual(typeof r,"function","rimraf: callback function required"),H(e,"rimraf: invalid options argument provided"),H.strictEqual(typeof e,"object","rimraf: options should be object"),uc(e),ic(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(()=>ic(t,e,i),o)}s.code==="ENOENT"&&(s=null)}r(s)})}function ic(t,e,r){H(t),H(e),H(typeof r=="function"),e.lstat(t,(n,i)=>{if(n&&n.code==="ENOENT")return r(null);if(n&&n.code==="EPERM"&&Zt)return sc(t,e,n,r);if(i&&i.isDirectory())return Qr(t,e,n,r);e.unlink(t,s=>{if(s){if(s.code==="ENOENT")return r(null);if(s.code==="EPERM")return Zt?sc(t,e,s,r):Qr(t,e,s,r);if(s.code==="EISDIR")return Qr(t,e,s,r)}return r(s)})})}function sc(t,e,r,n){H(t),H(e),H(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()?Qr(t,e,r,n):e.unlink(t,n)})})}function oc(t,e,r){let n;H(t),H(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()?Zr(t,e,r):e.unlinkSync(t)}function Qr(t,e,r,n){H(t),H(e),H(typeof n=="function"),e.rmdir(t,i=>{i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?sm(t,e,n):i&&i.code==="ENOTDIR"?n(r):n(i)})}function sm(t,e,r){H(t),H(e),H(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=>{Li(ac.join(t,a),e,u=>{if(!o){if(u)return r(o=u);--s===0&&e.rmdir(t,r)}})})})}function cc(t,e){let r;e=e||{},uc(e),H(t,"rimraf: missing path"),H.strictEqual(typeof t,"string","rimraf: path should be a string"),H(e,"rimraf: missing options"),H.strictEqual(typeof e,"object","rimraf: options should be object");try{r=e.lstatSync(t)}catch(n){if(n.code==="ENOENT")return;n.code==="EPERM"&&Zt&&oc(t,e,n)}try{r&&r.isDirectory()?Zr(t,e,null):e.unlinkSync(t)}catch(n){if(n.code==="ENOENT")return;if(n.code==="EPERM")return Zt?oc(t,e,n):Zr(t,e,n);if(n.code!=="EISDIR")throw n;Zr(t,e,n)}}function Zr(t,e,r){H(t),H(e);try{e.rmdirSync(t)}catch(n){if(n.code==="ENOTDIR")throw r;if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")om(t,e);else if(n.code!=="ENOENT")throw n}}function om(t,e){if(H(t),H(e),e.readdirSync(t).forEach(r=>cc(ac.join(t,r),e)),Zt){let r=Date.now();do try{return e.rmdirSync(t,e)}catch{}while(Date.now()-r<500)}else return e.rmdirSync(t,e)}lc.exports=Li;Li.sync=cc});var er=y((Db,hc)=>{"use strict";var am=be().fromCallback,dc=fc();hc.exports={remove:am(dc),removeSync:dc.sync}});var _c=y((Ob,wc)=>{"use strict";var um=be().fromCallback,gc=le(),yc=require("path"),vc=Ne(),bc=er(),pc=um(function(e,r){r=r||function(){},gc.readdir(e,(n,i)=>{if(n)return vc.mkdirs(e,r);i=i.map(o=>yc.join(e,o)),s();function s(){let o=i.pop();if(!o)return r();bc.remove(o,a=>{if(a)return r(a);s()})}})});function mc(t){let e;try{e=gc.readdirSync(t)}catch{return vc.mkdirsSync(t)}e.forEach(r=>{r=yc.join(t,r),bc.removeSync(r)})}wc.exports={emptyDirSync:mc,emptydirSync:mc,emptyDir:pc,emptydir:pc}});var Cc=y((Ib,Ec)=>{"use strict";var cm=be().fromCallback,xc=require("path"),We=le(),Sc=Ne();function lm(t,e){function r(){We.writeFile(t,"",n=>{if(n)return e(n);e()})}We.stat(t,(n,i)=>{if(!n&&i.isFile())return e();let s=xc.dirname(t);We.stat(s,(o,a)=>{if(o)return o.code==="ENOENT"?Sc.mkdirs(s,u=>{if(u)return e(u);r()}):e(o);a.isDirectory()?r():We.readdir(s,u=>{if(u)return e(u)})})})}function fm(t){let e;try{e=We.statSync(t)}catch{}if(e&&e.isFile())return;let r=xc.dirname(t);try{We.statSync(r).isDirectory()||We.readdirSync(r)}catch(n){if(n&&n.code==="ENOENT")Sc.mkdirsSync(r);else throw n}We.writeFileSync(t,"")}Ec.exports={createFile:cm(lm),createFileSync:fm}});var Fc=y((Fb,Ic)=>{"use strict";var dm=be().fromCallback,Dc=require("path"),ot=le(),Oc=Ne(),Pc=ze().pathExists;function hm(t,e,r){function n(i,s){ot.link(i,s,o=>{if(o)return r(o);r(null)})}Pc(e,(i,s)=>{if(i)return r(i);if(s)return r(null);ot.lstat(t,o=>{if(o)return o.message=o.message.replace("lstat","ensureLink"),r(o);let a=Dc.dirname(e);Pc(a,(u,h)=>{if(u)return r(u);if(h)return n(t,e);Oc.mkdirs(a,c=>{if(c)return r(c);n(t,e)})})})})}function pm(t,e){if(ot.existsSync(e))return;try{ot.lstatSync(t)}catch(s){throw s.message=s.message.replace("lstat","ensureLink"),s}let n=Dc.dirname(e);return ot.existsSync(n)||Oc.mkdirsSync(n),ot.linkSync(t,e)}Ic.exports={createLink:dm(hm),createLinkSync:pm}});var Rc=y((Ab,Ac)=>{"use strict";var Je=require("path"),tr=le(),mm=ze().pathExists;function gm(t,e,r){if(Je.isAbsolute(t))return tr.lstat(t,n=>n?(n.message=n.message.replace("lstat","ensureSymlink"),r(n)):r(null,{toCwd:t,toDst:t}));{let n=Je.dirname(e),i=Je.join(n,t);return mm(i,(s,o)=>s?r(s):o?r(null,{toCwd:i,toDst:t}):tr.lstat(t,a=>a?(a.message=a.message.replace("lstat","ensureSymlink"),r(a)):r(null,{toCwd:t,toDst:Je.relative(n,t)})))}}function ym(t,e){let r;if(Je.isAbsolute(t)){if(r=tr.existsSync(t),!r)throw new Error("absolute srcpath does not exist");return{toCwd:t,toDst:t}}else{let n=Je.dirname(e),i=Je.join(n,t);if(r=tr.existsSync(i),r)return{toCwd:i,toDst:t};if(r=tr.existsSync(t),!r)throw new Error("relative srcpath does not exist");return{toCwd:t,toDst:Je.relative(n,t)}}}Ac.exports={symlinkPaths:gm,symlinkPathsSync:ym}});var qc=y((Rb,Mc)=>{"use strict";var kc=le();function vm(t,e,r){if(r=typeof e=="function"?e:r,e=typeof e=="function"?!1:e,e)return r(null,e);kc.lstat(t,(n,i)=>{if(n)return r(null,"file");e=i&&i.isDirectory()?"dir":"file",r(null,e)})}function bm(t,e){let r;if(e)return e;try{r=kc.lstatSync(t)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}Mc.exports={symlinkType:vm,symlinkTypeSync:bm}});var Uc=y((kb,Bc)=>{"use strict";var wm=be().fromCallback,Nc=require("path"),Dt=le(),jc=Ne(),_m=jc.mkdirs,xm=jc.mkdirsSync,Lc=Rc(),Sm=Lc.symlinkPaths,Em=Lc.symlinkPathsSync,$c=qc(),Cm=$c.symlinkType,Pm=$c.symlinkTypeSync,Tc=ze().pathExists;function Dm(t,e,r,n){n=typeof r=="function"?r:n,r=typeof r=="function"?!1:r,Tc(e,(i,s)=>{if(i)return n(i);if(s)return n(null);Sm(t,e,(o,a)=>{if(o)return n(o);t=a.toDst,Cm(a.toCwd,r,(u,h)=>{if(u)return n(u);let c=Nc.dirname(e);Tc(c,(p,g)=>{if(p)return n(p);if(g)return Dt.symlink(t,e,h,n);_m(c,m=>{if(m)return n(m);Dt.symlink(t,e,h,n)})})})})})}function Om(t,e,r){if(Dt.existsSync(e))return;let i=Em(t,e);t=i.toDst,r=Pm(i.toCwd,r);let s=Nc.dirname(e);return Dt.existsSync(s)||xm(s),Dt.symlinkSync(t,e,r)}Bc.exports={createSymlink:wm(Dm),createSymlinkSync:Om}});var Hc=y((Mb,Xc)=>{"use strict";var en=Cc(),tn=Fc(),rn=Uc();Xc.exports={createFile:en.createFile,createFileSync:en.createFileSync,ensureFile:en.createFile,ensureFileSync:en.createFileSync,createLink:tn.createLink,createLinkSync:tn.createLinkSync,ensureLink:tn.createLink,ensureLinkSync:tn.createLinkSync,createSymlink:rn.createSymlink,createSymlinkSync:rn.createSymlinkSync,ensureSymlink:rn.createSymlink,ensureSymlinkSync:rn.createSymlinkSync}});var nn=y((qb,Gc)=>{function Im(t,{EOL:e=`
14
+ `,finalEOL:r=!0,replacer:n=null,spaces:i}={}){let s=r?e:"";return JSON.stringify(t,n,i).replace(/\n/g,e)+s}function Fm(t){return Buffer.isBuffer(t)&&(t=t.toString("utf8")),t.replace(/^\uFEFF/,"")}Gc.exports={stringify:Im,stripBom:Fm}});var Vc=y((Tb,Jc)=>{var Ot;try{Ot=le()}catch{Ot=require("fs")}var sn=be(),{stringify:zc,stripBom:Wc}=nn();async function Am(t,e={}){typeof e=="string"&&(e={encoding:e});let r=e.fs||Ot,n="throws"in e?e.throws:!0,i=await sn.fromCallback(r.readFile)(t,e);i=Wc(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 Rm=sn.fromPromise(Am);function km(t,e={}){typeof e=="string"&&(e={encoding:e});let r=e.fs||Ot,n="throws"in e?e.throws:!0;try{let i=r.readFileSync(t,e);return i=Wc(i),JSON.parse(i,e.reviver)}catch(i){if(n)throw i.message=`${t}: ${i.message}`,i;return null}}async function Mm(t,e,r={}){let n=r.fs||Ot,i=zc(e,r);await sn.fromCallback(n.writeFile)(t,i,r)}var qm=sn.fromPromise(Mm);function Tm(t,e,r={}){let n=r.fs||Ot,i=zc(e,r);return n.writeFileSync(t,i,r)}var Nm={readFile:Rm,readFileSync:km,writeFile:qm,writeFileSync:Tm};Jc.exports=Nm});var Kc=y((Nb,Yc)=>{"use strict";var on=Vc();Yc.exports={readJson:on.readFile,readJsonSync:on.readFileSync,writeJson:on.writeFile,writeJsonSync:on.writeFileSync}});var an=y((jb,el)=>{"use strict";var jm=be().fromCallback,rr=le(),Qc=require("path"),Zc=Ne(),Lm=ze().pathExists;function $m(t,e,r,n){typeof r=="function"&&(n=r,r="utf8");let i=Qc.dirname(t);Lm(i,(s,o)=>{if(s)return n(s);if(o)return rr.writeFile(t,e,r,n);Zc.mkdirs(i,a=>{if(a)return n(a);rr.writeFile(t,e,r,n)})})}function Bm(t,...e){let r=Qc.dirname(t);if(rr.existsSync(r))return rr.writeFileSync(t,...e);Zc.mkdirsSync(r),rr.writeFileSync(t,...e)}el.exports={outputFile:jm($m),outputFileSync:Bm}});var rl=y((Lb,tl)=>{"use strict";var{stringify:Um}=nn(),{outputFile:Xm}=an();async function Hm(t,e,r={}){let n=Um(e,r);await Xm(t,n,r)}tl.exports=Hm});var il=y(($b,nl)=>{"use strict";var{stringify:Gm}=nn(),{outputFileSync:zm}=an();function Wm(t,e,r){let n=Gm(e,r);zm(t,n,r)}nl.exports=Wm});var ol=y((Bb,sl)=>{"use strict";var Jm=be().fromPromise,me=Kc();me.outputJson=Jm(rl());me.outputJsonSync=il();me.outputJSON=me.outputJson;me.outputJSONSync=me.outputJsonSync;me.writeJSON=me.writeJson;me.writeJSONSync=me.writeJsonSync;me.readJSON=me.readJson;me.readJSONSync=me.readJsonSync;sl.exports=me});var dl=y((Ub,fl)=>{"use strict";var cl=le(),Vm=require("path"),Ym=Ti().copySync,ll=er().removeSync,Km=Ne().mkdirpSync,al=Jt();function Qm(t,e,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:i}=al.checkPathsSync(t,e,"move");return al.checkParentPathsSync(t,i,e,"move"),Km(Vm.dirname(e)),Zm(t,e,n)}function Zm(t,e,r){if(r)return ll(e),ul(t,e,r);if(cl.existsSync(e))throw new Error("dest already exists.");return ul(t,e,r)}function ul(t,e,r){try{cl.renameSync(t,e)}catch(n){if(n.code!=="EXDEV")throw n;return eg(t,e,r)}}function eg(t,e,r){return Ym(t,e,{overwrite:r,errorOnExist:!0}),ll(t)}fl.exports=Qm});var pl=y((Xb,hl)=>{"use strict";hl.exports={moveSync:dl()}});var bl=y((Hb,vl)=>{"use strict";var tg=le(),rg=require("path"),ng=ji().copy,yl=er().remove,ig=Ne().mkdirp,sg=ze().pathExists,ml=Jt();function og(t,e,r,n){typeof r=="function"&&(n=r,r={});let i=r.overwrite||r.clobber||!1;ml.checkPaths(t,e,"move",(s,o)=>{if(s)return n(s);let{srcStat:a}=o;ml.checkParentPaths(t,a,e,"move",u=>{if(u)return n(u);ig(rg.dirname(e),h=>h?n(h):ag(t,e,i,n))})})}function ag(t,e,r,n){if(r)return yl(e,i=>i?n(i):gl(t,e,r,n));sg(e,(i,s)=>i?n(i):s?n(new Error("dest already exists.")):gl(t,e,r,n))}function gl(t,e,r,n){tg.rename(t,e,i=>i?i.code!=="EXDEV"?n(i):ug(t,e,r,n):n())}function ug(t,e,r,n){ng(t,e,{overwrite:r,errorOnExist:!0},s=>s?n(s):yl(t,n))}vl.exports=og});var _l=y((Gb,wl)=>{"use strict";var cg=be().fromCallback;wl.exports={move:cg(bl())}});var nr=y((zb,$i)=>{"use strict";$i.exports={...Wt(),...Ti(),...ji(),..._c(),...Hc(),...ol(),...Ne(),...pl(),..._l(),...an(),...ze(),...er()};var xl=require("fs");Object.getOwnPropertyDescriptor(xl,"promises")&&Object.defineProperty($i.exports,"promises",{get(){return xl.promises}})});var Al=y((Jb,Fl)=>{"use strict";Fl.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 Xi=y((Vb,kl)=>{var ir=Al(),Rl={};for(let t of Object.keys(ir))Rl[ir[t]]=t;var P={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"]}};kl.exports=P;for(let t of Object.keys(P)){if(!("channels"in P[t]))throw new Error("missing channels property: "+t);if(!("labels"in P[t]))throw new Error("missing channel labels property: "+t);if(P[t].labels.length!==P[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:e,labels:r}=P[t];delete P[t].channels,delete P[t].labels,Object.defineProperty(P[t],"channels",{value:e}),Object.defineProperty(P[t],"labels",{value:r})}P.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,u;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 h=(i+s)/2;return s===i?u=0:h<=.5?u=o/(s+i):u=o/(2-s-i),[a,u*100,h*100]};P.rgb.hsv=function(t){let e,r,n,i,s,o=t[0]/255,a=t[1]/255,u=t[2]/255,h=Math.max(o,a,u),c=h-Math.min(o,a,u),p=function(g){return(h-g)/6/c+1/2};return c===0?(i=0,s=0):(s=c/h,e=p(o),r=p(a),n=p(u),o===h?i=n-r:a===h?i=1/3+e-n:u===h&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,h*100]};P.rgb.hwb=function(t){let e=t[0],r=t[1],n=t[2],i=P.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]};P.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 fg(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}P.rgb.keyword=function(t){let e=Rl[t];if(e)return e;let r=1/0,n;for(let i of Object.keys(ir)){let s=ir[i],o=fg(t,s);o<r&&(r=o,n=i)}return n};P.keyword.rgb=function(t){return ir[t]};P.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]};P.rgb.lab=function(t){let e=P.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]};P.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,u=[0,0,0];for(let h=0;h<3;h++)s=e+1/3*-(h-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,u[h]=o*255;return u};P.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]};P.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),u=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,u,o];case 1:return[a,n,o];case 2:return[o,n,u];case 3:return[o,a,n];case 4:return[u,o,n];case 5:return[n,o,a]}};P.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]};P.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 u=r+s*(a-r),h,c,p;switch(o){default:case 6:case 0:h=a,c=u,p=r;break;case 1:h=u,c=a,p=r;break;case 2:h=r,c=a,p=u;break;case 3:h=r,c=u,p=a;break;case 4:h=u,c=r,p=a;break;case 5:h=a,c=r,p=u;break}return[h*255,c*255,p*255]};P.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]};P.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]};P.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]};P.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,u=i**3,h=o**3;return s=a>.008856?a:(s-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,o=h>.008856?h:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};P.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]};P.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]};P.rgb.ansi16=function(t,e=null){let[r,n,i]=t,s=e===null?P.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};P.hsv.ansi16=function(t){return P.rgb.ansi16(P.hsv.rgb(t),t[2])};P.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)};P.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]};P.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]};P.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};P.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]};P.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,u;return o<1?a=s/(1-o):a=0,o<=0?u=0:i===e?u=(r-n)/o%6:i===r?u=2+(n-e)/o:u=4+(e-r)/o,u/=6,u%=1,[u*360,o*100,a*100]};P.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]};P.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]};P.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,u=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 u=(1-r)*n,[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]};P.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]};P.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]};P.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]};P.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]};P.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};P.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};P.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};P.gray.hsl=function(t){return[0,0,t[0]]};P.gray.hsv=P.gray.hsl;P.gray.hwb=function(t){return[0,100,t[0]]};P.gray.cmyk=function(t){return[0,0,0,t[0]]};P.gray.lab=function(t){return[t[0],0,0]};P.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};P.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}});var ql=y((Yb,Ml)=>{var cn=Xi();function dg(){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 hg(t){let e=dg(),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],u=e[a];u.distance===-1&&(u.distance=e[n].distance+1,u.parent=n,r.unshift(a))}}return e}function pg(t,e){return function(r){return e(t(r))}}function mg(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=pg(cn[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}Ml.exports=function(t){let e=hg(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]=mg(o,e))}return r}});var Nl=y((Kb,Tl)=>{var Hi=Xi(),gg=ql(),It={},yg=Object.keys(Hi);function vg(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 bg(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}yg.forEach(t=>{It[t]={},Object.defineProperty(It[t],"channels",{value:Hi[t].channels}),Object.defineProperty(It[t],"labels",{value:Hi[t].labels});let e=gg(t);Object.keys(e).forEach(n=>{let i=e[n];It[t][n]=bg(i),It[t][n].raw=vg(i)})});Tl.exports=It});var Xl=y((Qb,Ul)=>{"use strict";var jl=(t,e)=>(...r)=>`\x1B[${t(...r)+e}m`,Ll=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};5;${n}m`},$l=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};2;${n[0]};${n[1]};${n[2]}m`},ln=t=>t,Bl=(t,e,r)=>[t,e,r],Ft=(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})},Gi,At=(t,e,r,n)=>{Gi===void 0&&(Gi=Nl());let i=n?10:0,s={};for(let[o,a]of Object.entries(Gi)){let u=o==="ansi16"?"ansi":o;o===e?s[u]=t(r,i):typeof a=="object"&&(s[u]=t(a[e],i))}return s};function wg(){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",Ft(e.color,"ansi",()=>At(jl,"ansi16",ln,!1)),Ft(e.color,"ansi256",()=>At(Ll,"ansi256",ln,!1)),Ft(e.color,"ansi16m",()=>At($l,"rgb",Bl,!1)),Ft(e.bgColor,"ansi",()=>At(jl,"ansi16",ln,!0)),Ft(e.bgColor,"ansi256",()=>At(Ll,"ansi256",ln,!0)),Ft(e.bgColor,"ansi16m",()=>At($l,"rgb",Bl,!0)),e}Object.defineProperty(Ul,"exports",{enumerable:!0,get:wg})});var Gl=y((Zb,Hl)=>{"use strict";var _g=(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},xg=(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
15
15
  `:`
16
16
  `)+r,i=n+1,n=t.indexOf(`
17
- `,i)}while(n!==-1);return s+=t.substr(i),s};Hl.exports={stringReplaceAll:wg,stringEncaseCRLFWithFirstIndex:xg}});var Kl=y((e2,Vl)=>{"use strict";var Sg=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,zl=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Eg=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Cg=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,Pg=new Map([["n",`
18
- `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function Jl(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)):Pg.get(t)||t}function Og(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(Eg))r.push(i[2].replace(Cg,(a,u,h)=>u?Jl(u):h));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${t}')`)}return r}function Dg(t){zl.lastIndex=0;let e=[],r;for(;(r=zl.exec(t))!==null;){let n=r[1];if(r[2]){let i=Og(n,r[2]);e.push([n].concat(i))}else e.push([n])}return e}function Wl(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}Vl.exports=(t,e)=>{let r=[],n=[],i=[];if(e.replace(Sg,(s,o,a,u,h,c)=>{if(o)i.push(Jl(o));else if(u){let p=i.join("");i=[],n.push(r.length===0?p:Wl(t,r)(p)),r.push({inverse:a,styles:Dg(u)})}else if(h){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(Wl(t,r)(i.join(""))),i=[],r.pop()}else i.push(c)}),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 nf=y((t2,rf)=>{"use strict";var sr=Xl(),{stdout:Wi,stderr:Ji}=Yn(),{stringReplaceAll:Ig,stringEncaseCRLFWithFirstIndex:Fg}=Gl(),{isArray:fn}=Array,Ql=["ansi","ansi","ansi256","ansi16m"],Rt=Object.create(null),Ag=(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=Wi?Wi.level:0;t.level=e.level===void 0?r:e.level},Vi=class{constructor(e){return Zl(e)}},Zl=t=>{let e={};return Ag(e,t),e.template=(...r)=>tf(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=Vi,e.template};function dn(t){return Zl(t)}for(let[t,e]of Object.entries(sr))Rt[t]={get(){let r=hn(this,Ki(e.open,e.close,this._styler),this._isEmpty);return Object.defineProperty(this,t,{value:r}),r}};Rt.visible={get(){let t=hn(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:t}),t}};var ef=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let t of ef)Rt[t]={get(){let{level:e}=this;return function(...r){let n=Ki(sr.color[Ql[e]][t](...r),sr.color.close,this._styler);return hn(this,n,this._isEmpty)}}};for(let t of ef){let e="bg"+t[0].toUpperCase()+t.slice(1);Rt[e]={get(){let{level:r}=this;return function(...n){let i=Ki(sr.bgColor[Ql[r]][t](...n),sr.bgColor.close,this._styler);return hn(this,i,this._isEmpty)}}}}var Rg=Object.defineProperties(()=>{},{...Rt,level:{enumerable:!0,get(){return this._generator.level},set(t){this._generator.level=t}}}),Ki=(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)?Yl(n,tf(n,...i)):Yl(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,Rg),n._generator=t,n._styler=e,n._isEmpty=r,n},Yl=(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=Ig(e,r.close,r.open),r=r.parent;let s=e.indexOf(`
19
- `);return s!==-1&&(e=Fg(e,i,n,s)),n+e+i},zi,tf=(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 zi===void 0&&(zi=Kl()),zi(t,i.join(""))};Object.defineProperties(dn.prototype,Rt);var pn=dn();pn.supportsColor=Wi;pn.stderr=dn({level:Ji?Ji.level:0});pn.stderr.supportsColor=Ji;rf.exports=pn});var sf=y((Yi,Qi)=>{(function(t,e){typeof Yi=="object"&&typeof Qi<"u"?Qi.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self,t.tinycolor=e())})(Yi,function(){"use strict";function t(l){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},t(l)}var e=/^\s+/,r=/\s+$/;function n(l,d){if(l=l||"",d=d||{},l instanceof n)return l;if(!(this instanceof n))return new n(l,d);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=d.format||f.format,this._gradientType=d.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 d=this.toRgb();return(d.r*299+d.g*587+d.b*114)/1e3},getLuminance:function(){var d=this.toRgb(),f,v,w,_,T,$;return f=d.r/255,v=d.g/255,w=d.b/255,f<=.03928?_=f/12.92:_=Math.pow((f+.055)/1.055,2.4),v<=.03928?T=v/12.92:T=Math.pow((v+.055)/1.055,2.4),w<=.03928?$=w/12.92:$=Math.pow((w+.055)/1.055,2.4),.2126*_+.7152*T+.0722*$},setAlpha:function(d){return this._a=X(d),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var d=u(this._r,this._g,this._b);return{h:d.h*360,s:d.s,v:d.v,a:this._a}},toHsvString:function(){var d=u(this._r,this._g,this._b),f=Math.round(d.h*360),v=Math.round(d.s*100),w=Math.round(d.v*100);return this._a==1?"hsv("+f+", "+v+"%, "+w+"%)":"hsva("+f+", "+v+"%, "+w+"%, "+this._roundA+")"},toHsl:function(){var d=o(this._r,this._g,this._b);return{h:d.h*360,s:d.s,l:d.l,a:this._a}},toHslString:function(){var d=o(this._r,this._g,this._b),f=Math.round(d.h*360),v=Math.round(d.s*100),w=Math.round(d.l*100);return this._a==1?"hsl("+f+", "+v+"%, "+w+"%)":"hsla("+f+", "+v+"%, "+w+"%, "+this._roundA+")"},toHex:function(d){return c(this._r,this._g,this._b,d)},toHexString:function(d){return"#"+this.toHex(d)},toHex8:function(d){return p(this._r,this._g,this._b,this._a,d)},toHex8String:function(d){return"#"+this.toHex8(d)},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(I(this._r,255)*100)+"%",g:Math.round(I(this._g,255)*100)+"%",b:Math.round(I(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(I(this._r,255)*100)+"%, "+Math.round(I(this._g,255)*100)+"%, "+Math.round(I(this._b,255)*100)+"%)":"rgba("+Math.round(I(this._r,255)*100)+"%, "+Math.round(I(this._g,255)*100)+"%, "+Math.round(I(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:q[c(this._r,this._g,this._b,!0)]||!1},toFilter:function(d){var f="#"+g(this._r,this._g,this._b,this._a),v=f,w=this._gradientType?"GradientType = 1, ":"";if(d){var _=n(d);v="#"+g(_._r,_._g,_._b,_._a)}return"progid:DXImageTransform.Microsoft.gradient("+w+"startColorstr="+f+",endColorstr="+v+")"},toString:function(d){var f=!!d;d=d||this._format;var v=!1,w=this._a<1&&this._a>=0,_=!f&&w&&(d==="hex"||d==="hex6"||d==="hex3"||d==="hex4"||d==="hex8"||d==="name");return _?d==="name"&&this._a===0?this.toName():this.toRgbString():(d==="rgb"&&(v=this.toRgbString()),d==="prgb"&&(v=this.toPercentageRgbString()),(d==="hex"||d==="hex6")&&(v=this.toHexString()),d==="hex3"&&(v=this.toHexString(!0)),d==="hex4"&&(v=this.toHex8String(!0)),d==="hex8"&&(v=this.toHex8String()),d==="name"&&(v=this.toName()),d==="hsl"&&(v=this.toHslString()),d==="hsv"&&(v=this.toHsvString()),v||this.toHexString())},clone:function(){return n(this.toString())},_applyModification:function(d,f){var v=d.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(S,arguments)},brighten:function(){return this._applyModification(F,arguments)},darken:function(){return this._applyModification(L,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(B,arguments)},_applyCombination:function(d,f){return d.apply(null,[this].concat([].slice.call(f)))},analogous:function(){return this._applyCombination(Oe,arguments)},complement:function(){return this._applyCombination(G,arguments)},monochromatic:function(){return this._applyCombination(Q,arguments)},splitcomplement:function(){return this._applyCombination(ye,arguments)},triad:function(){return this._applyCombination(K,[3])},tetrad:function(){return this._applyCombination(K,[4])}},n.fromRatio=function(l,d){if(t(l)=="object"){var f={};for(var v in l)l.hasOwnProperty(v)&&(v==="a"?f[v]=l[v]:f[v]=A(l[v]));l=f}return n(l,d)};function i(l){var d={r:0,g:0,b:0},f=1,v=null,w=null,_=null,T=!1,$=!1;return typeof l=="string"&&(l=ft(l)),t(l)=="object"&&(ve(l.r)&&ve(l.g)&&ve(l.b)?(d=s(l.r,l.g,l.b),T=!0,$=String(l.r).substr(-1)==="%"?"prgb":"rgb"):ve(l.h)&&ve(l.s)&&ve(l.v)?(v=A(l.s),w=A(l.v),d=h(l.h,v,w),T=!0,$="hsv"):ve(l.h)&&ve(l.s)&&ve(l.l)&&(v=A(l.s),_=A(l.l),d=a(l.h,v,_),T=!0,$="hsl"),l.hasOwnProperty("a")&&(f=l.a)),f=X(f),{ok:T,format:l.format||$,r:Math.min(255,Math.max(d.r,0)),g:Math.min(255,Math.max(d.g,0)),b:Math.min(255,Math.max(d.b,0)),a:f}}function s(l,d,f){return{r:I(l,255)*255,g:I(d,255)*255,b:I(f,255)*255}}function o(l,d,f){l=I(l,255),d=I(d,255),f=I(f,255);var v=Math.max(l,d,f),w=Math.min(l,d,f),_,T,$=(v+w)/2;if(v==w)_=T=0;else{var N=v-w;switch(T=$>.5?N/(2-v-w):N/(v+w),v){case l:_=(d-f)/N+(d<f?6:0);break;case d:_=(f-l)/N+2;break;case f:_=(l-d)/N+4;break}_/=6}return{h:_,s:T,l:$}}function a(l,d,f){var v,w,_;l=I(l,360),d=I(d,100),f=I(f,100);function T(Ie,Lt,Me){return Me<0&&(Me+=1),Me>1&&(Me-=1),Me<1/6?Ie+(Lt-Ie)*6*Me:Me<1/2?Lt:Me<2/3?Ie+(Lt-Ie)*(2/3-Me)*6:Ie}if(d===0)v=w=_=f;else{var $=f<.5?f*(1+d):f+d-f*d,N=2*f-$;v=T(N,$,l+1/3),w=T(N,$,l),_=T(N,$,l-1/3)}return{r:v*255,g:w*255,b:_*255}}function u(l,d,f){l=I(l,255),d=I(d,255),f=I(f,255);var v=Math.max(l,d,f),w=Math.min(l,d,f),_,T,$=v,N=v-w;if(T=v===0?0:N/v,v==w)_=0;else{switch(v){case l:_=(d-f)/N+(d<f?6:0);break;case d:_=(f-l)/N+2;break;case f:_=(l-d)/N+4;break}_/=6}return{h:_,s:T,v:$}}function h(l,d,f){l=I(l,360)*6,d=I(d,100),f=I(f,100);var v=Math.floor(l),w=l-v,_=f*(1-d),T=f*(1-w*d),$=f*(1-(1-w)*d),N=v%6,Ie=[f,T,_,_,$,f][N],Lt=[$,f,f,T,_,_][N],Me=[_,_,$,f,f,T][N];return{r:Ie*255,g:Lt*255,b:Me*255}}function c(l,d,f,v){var w=[E(Math.round(l).toString(16)),E(Math.round(d).toString(16)),E(Math.round(f).toString(16))];return v&&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[0].charAt(0)+w[1].charAt(0)+w[2].charAt(0):w.join("")}function p(l,d,f,v,w){var _=[E(Math.round(l).toString(16)),E(Math.round(d).toString(16)),E(Math.round(f).toString(16)),E(De(v))];return w&&_[0].charAt(0)==_[0].charAt(1)&&_[1].charAt(0)==_[1].charAt(1)&&_[2].charAt(0)==_[2].charAt(1)&&_[3].charAt(0)==_[3].charAt(1)?_[0].charAt(0)+_[1].charAt(0)+_[2].charAt(0)+_[3].charAt(0):_.join("")}function g(l,d,f,v){var w=[E(De(v)),E(Math.round(l).toString(16)),E(Math.round(d).toString(16)),E(Math.round(f).toString(16))];return w.join("")}n.equals=function(l,d){return!l||!d?!1:n(l).toRgbString()==n(d).toRgbString()},n.random=function(){return n.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function m(l,d){d=d===0?0:d||10;var f=n(l).toHsl();return f.s-=d/100,f.s=U(f.s),n(f)}function b(l,d){d=d===0?0:d||10;var f=n(l).toHsl();return f.s+=d/100,f.s=U(f.s),n(f)}function x(l){return n(l).desaturate(100)}function S(l,d){d=d===0?0:d||10;var f=n(l).toHsl();return f.l+=d/100,f.l=U(f.l),n(f)}function F(l,d){d=d===0?0:d||10;var f=n(l).toRgb();return f.r=Math.max(0,Math.min(255,f.r-Math.round(255*-(d/100)))),f.g=Math.max(0,Math.min(255,f.g-Math.round(255*-(d/100)))),f.b=Math.max(0,Math.min(255,f.b-Math.round(255*-(d/100)))),n(f)}function L(l,d){d=d===0?0:d||10;var f=n(l).toHsl();return f.l-=d/100,f.l=U(f.l),n(f)}function B(l,d){var f=n(l).toHsl(),v=(f.h+d)%360;return f.h=v<0?360+v:v,n(f)}function G(l){var d=n(l).toHsl();return d.h=(d.h+180)%360,n(d)}function K(l,d){if(isNaN(d)||d<=0)throw new Error("Argument to polyad must be a positive number");for(var f=n(l).toHsl(),v=[n(l)],w=360/d,_=1;_<d;_++)v.push(n({h:(f.h+_*w)%360,s:f.s,l:f.l}));return v}function ye(l){var d=n(l).toHsl(),f=d.h;return[n(l),n({h:(f+72)%360,s:d.s,l:d.l}),n({h:(f+216)%360,s:d.s,l:d.l})]}function Oe(l,d,f){d=d||6,f=f||30;var v=n(l).toHsl(),w=360/f,_=[n(l)];for(v.h=(v.h-(w*d>>1)+720)%360;--d;)v.h=(v.h+w)%360,_.push(n(v));return _}function Q(l,d){d=d||6;for(var f=n(l).toHsv(),v=f.h,w=f.s,_=f.v,T=[],$=1/d;d--;)T.push(n({h:v,s:w,v:_})),_=(_+$)%1;return T}n.mix=function(l,d,f){f=f===0?0:f||50;var v=n(l).toRgb(),w=n(d).toRgb(),_=f/100,T={r:(w.r-v.r)*_+v.r,g:(w.g-v.g)*_+v.g,b:(w.b-v.b)*_+v.b,a:(w.a-v.a)*_+v.a};return n(T)},n.readability=function(l,d){var f=n(l),v=n(d);return(Math.max(f.getLuminance(),v.getLuminance())+.05)/(Math.min(f.getLuminance(),v.getLuminance())+.05)},n.isReadable=function(l,d,f){var v=n.readability(l,d),w,_;switch(_=!1,w=re(f),w.level+w.size){case"AAsmall":case"AAAlarge":_=v>=4.5;break;case"AAlarge":_=v>=3;break;case"AAAsmall":_=v>=7;break}return _},n.mostReadable=function(l,d,f){var v=null,w=0,_,T,$,N;f=f||{},T=f.includeFallbackColors,$=f.level,N=f.size;for(var Ie=0;Ie<d.length;Ie++)_=n.readability(l,d[Ie]),_>w&&(w=_,v=n(d[Ie]));return n.isReadable(l,v,{level:$,size:N})||!T?v:(f.includeFallbackColors=!1,n.mostReadable(l,["#fff","#000"],f))};var O=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"},q=n.hexNames=k(O);function k(l){var d={};for(var f in l)l.hasOwnProperty(f)&&(d[l[f]]=f);return d}function X(l){return l=parseFloat(l),(isNaN(l)||l<0||l>1)&&(l=1),l}function I(l,d){j(l)&&(l="100%");var f=M(l);return l=Math.min(d,Math.max(0,parseFloat(l))),f&&(l=parseInt(l*d,10)/100),Math.abs(l-d)<1e-6?1:l%d/parseFloat(d)}function U(l){return Math.min(1,Math.max(0,l))}function D(l){return parseInt(l,16)}function j(l){return typeof l=="string"&&l.indexOf(".")!=-1&&parseFloat(l)===1}function M(l){return typeof l=="string"&&l.indexOf("%")!=-1}function E(l){return l.length==1?"0"+l:""+l}function A(l){return l<=1&&(l=l*100+"%"),l}function De(l){return Math.round(parseFloat(l)*255).toString(16)}function ke(l){return D(l)/255}var ae=function(){var l="[-\\+]?\\d+%?",d="[-\\+]?\\d*\\.\\d+%?",f="(?:"+d+")|(?:"+l+")",v="[\\s|\\(]+("+f+")[,|\\s]+("+f+")[,|\\s]+("+f+")\\s*\\)?",w="[\\s|\\(]+("+f+")[,|\\s]+("+f+")[,|\\s]+("+f+")[,|\\s]+("+f+")\\s*\\)?";return{CSS_UNIT:new RegExp(f),rgb:new RegExp("rgb"+v),rgba:new RegExp("rgba"+w),hsl:new RegExp("hsl"+v),hsla:new RegExp("hsla"+w),hsv:new RegExp("hsv"+v),hsva:new RegExp("hsva"+w),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 ve(l){return!!ae.CSS_UNIT.exec(l)}function ft(l){l=l.replace(e,"").replace(r,"").toLowerCase();var d=!1;if(O[l])l=O[l],d=!0;else if(l=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var f;return(f=ae.rgb.exec(l))?{r:f[1],g:f[2],b:f[3]}:(f=ae.rgba.exec(l))?{r:f[1],g:f[2],b:f[3],a:f[4]}:(f=ae.hsl.exec(l))?{h:f[1],s:f[2],l:f[3]}:(f=ae.hsla.exec(l))?{h:f[1],s:f[2],l:f[3],a:f[4]}:(f=ae.hsv.exec(l))?{h:f[1],s:f[2],v:f[3]}:(f=ae.hsva.exec(l))?{h:f[1],s:f[2],v:f[3],a:f[4]}:(f=ae.hex8.exec(l))?{r:D(f[1]),g:D(f[2]),b:D(f[3]),a:ke(f[4]),format:d?"name":"hex8"}:(f=ae.hex6.exec(l))?{r:D(f[1]),g:D(f[2]),b:D(f[3]),format:d?"name":"hex"}:(f=ae.hex4.exec(l))?{r:D(f[1]+""+f[1]),g:D(f[2]+""+f[2]),b:D(f[3]+""+f[3]),a:ke(f[4]+""+f[4]),format:d?"name":"hex8"}:(f=ae.hex3.exec(l))?{r:D(f[1]+""+f[1]),g:D(f[2]+""+f[2]),b:D(f[3]+""+f[3]),format:d?"name":"hex"}:!1}function re(l){var d,f;return l=l||{level:"AA",size:"small"},d=(l.level||"AA").toUpperCase(),f=(l.size||"small").toLowerCase(),d!=="AA"&&d!=="AAA"&&(d="AA"),f!=="small"&&f!=="large"&&(f="small"),{level:d,size:f}}return n})});var df=y((r2,ff)=>{var or=sf(),cf={r:256,g:256,b:256,a:1},lf={h:360,s:1,v:1,a:1};function es(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 ts(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 Zi(t,e,r){let n=t.color.toRgb(),i=e.color.toRgb(),s=es(n,i,r),o=[t.color];for(let a=1;a<r;a++){let u=ts(s,n,a,cf);o.push(or(u))}return o}function of(t,e,r,n){let i=t.color.toHsv(),s=e.color.toHsv();if(i.s===0||s.s===0)return Zi(t,e,r);let o;if(typeof n=="boolean")o=n;else{let c=i.h<s.h&&s.h-i.h<180||i.h>s.h&&i.h-s.h>180;o=n==="long"&&c||n==="short"&&!c}let a=es(i,s,r),u=[t.color],h;i.h<=s.h&&!o||i.h>=s.h&&o?h=s.h-i.h:o?h=360-s.h+i.h:h=360-i.h+s.h,a.h=Math.pow(-1,o?1:0)*Math.abs(h)/r;for(let c=1;c<r;c++){let p=ts(a,i,c,lf);u.push(or(p))}return u}function af(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 uf(t,e,r,n){if(e<0||e>1)throw new Error("Position must be between 0 and 1");let i,s;for(let u=0,h=t.length;u<h-1;u++)if(e>=t[u].pos&&e<t[u+1].pos){i=t[u],s=t[u+1];break}i||(i=s=t[t.length-1]);let o=es(i.color[r](),s.color[r](),(s.pos-i.pos)*100),a=ts(o,i.color[r](),(e-i.pos)*100,n);return or(a)}var kt=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 u=o.pos!==void 0;if(r^u)throw new Error("Cannot mix positionned and not posionned color stops");if(u){let h=o.color!==void 0;if(!h&&(s||a===0||a===n-1))throw new Error("Cannot define two consecutive position-only stops");if(s=!h,o={color:h?or(o.color):null,colorLess:!h,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:or(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 kt(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 kt(e.concat(r.reverse()))}rgb(e){let r=af(this.stops,e),n=[];this.stops.forEach((i,s)=>{i.colorLess&&(i.color=Zi(this.stops[s-1],this.stops[s+1],2)[1])});for(let i=0,s=this.stops.length;i<s-1;i++){let o=Zi(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=af(this.stops,e),i=[];this.stops.forEach((s,o)=>{s.colorLess&&(s.color=of(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=of(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 uf(this.stops,e,"toRgb",cf)}hsvAt(e){return uf(this.stops,e,"toHsv",lf)}};ff.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 kt(t)}});var yf=y((n2,mn)=>{"use strict";var pf=nf(),kg=df(),hf=/\s/g;function rs(...t){let e=kg.apply(this,t),r=(n,i)=>Mg(n?n.toString():"",e,i);return r.multiline=(n,i)=>qg(n?n.toString():"",e,i),r}var mf=(t,e,r)=>e.interpolation.toLowerCase()==="hsv"?t.hsv(r,e.hsvSpin.toLowerCase()):t.rgb(r);function Mg(t,e,r){let n=gf(r),i=Math.max(t.replace(hf,"").length,e.stops.length),s=mf(e,n,i),o="";for(let a of t)o+=a.match(hf)?a:pf.hex(s.shift().toHex())(a);return o}function qg(t,e,r){let n=gf(r),i=t.split(`
17
+ `,i)}while(n!==-1);return s+=t.substr(i),s};Hl.exports={stringReplaceAll:_g,stringEncaseCRLFWithFirstIndex:xg}});var Yl=y((e2,Vl)=>{"use strict";var Sg=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,zl=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Eg=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Cg=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,Pg=new Map([["n",`
18
+ `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function Jl(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)):Pg.get(t)||t}function Dg(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(Eg))r.push(i[2].replace(Cg,(a,u,h)=>u?Jl(u):h));else throw new Error(`Invalid Chalk template style argument: ${s} (in style '${t}')`)}return r}function Og(t){zl.lastIndex=0;let e=[],r;for(;(r=zl.exec(t))!==null;){let n=r[1];if(r[2]){let i=Dg(n,r[2]);e.push([n].concat(i))}else e.push([n])}return e}function Wl(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}Vl.exports=(t,e)=>{let r=[],n=[],i=[];if(e.replace(Sg,(s,o,a,u,h,c)=>{if(o)i.push(Jl(o));else if(u){let p=i.join("");i=[],n.push(r.length===0?p:Wl(t,r)(p)),r.push({inverse:a,styles:Og(u)})}else if(h){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(Wl(t,r)(i.join(""))),i=[],r.pop()}else i.push(c)}),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 nf=y((t2,rf)=>{"use strict";var sr=Xl(),{stdout:Wi,stderr:Ji}=Kn(),{stringReplaceAll:Ig,stringEncaseCRLFWithFirstIndex:Fg}=Gl(),{isArray:fn}=Array,Ql=["ansi","ansi","ansi256","ansi16m"],Rt=Object.create(null),Ag=(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=Wi?Wi.level:0;t.level=e.level===void 0?r:e.level},Vi=class{constructor(e){return Zl(e)}},Zl=t=>{let e={};return Ag(e,t),e.template=(...r)=>tf(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=Vi,e.template};function dn(t){return Zl(t)}for(let[t,e]of Object.entries(sr))Rt[t]={get(){let r=hn(this,Yi(e.open,e.close,this._styler),this._isEmpty);return Object.defineProperty(this,t,{value:r}),r}};Rt.visible={get(){let t=hn(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:t}),t}};var ef=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let t of ef)Rt[t]={get(){let{level:e}=this;return function(...r){let n=Yi(sr.color[Ql[e]][t](...r),sr.color.close,this._styler);return hn(this,n,this._isEmpty)}}};for(let t of ef){let e="bg"+t[0].toUpperCase()+t.slice(1);Rt[e]={get(){let{level:r}=this;return function(...n){let i=Yi(sr.bgColor[Ql[r]][t](...n),sr.bgColor.close,this._styler);return hn(this,i,this._isEmpty)}}}}var Rg=Object.defineProperties(()=>{},{...Rt,level:{enumerable:!0,get(){return this._generator.level},set(t){this._generator.level=t}}}),Yi=(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)?Kl(n,tf(n,...i)):Kl(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,Rg),n._generator=t,n._styler=e,n._isEmpty=r,n},Kl=(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=Ig(e,r.close,r.open),r=r.parent;let s=e.indexOf(`
19
+ `);return s!==-1&&(e=Fg(e,i,n,s)),n+e+i},zi,tf=(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 zi===void 0&&(zi=Yl()),zi(t,i.join(""))};Object.defineProperties(dn.prototype,Rt);var pn=dn();pn.supportsColor=Wi;pn.stderr=dn({level:Ji?Ji.level:0});pn.stderr.supportsColor=Ji;rf.exports=pn});var sf=y((Ki,Qi)=>{(function(t,e){typeof Ki=="object"&&typeof Qi<"u"?Qi.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self,t.tinycolor=e())})(Ki,function(){"use strict";function t(l){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},t(l)}var e=/^\s+/,r=/\s+$/;function n(l,d){if(l=l||"",d=d||{},l instanceof n)return l;if(!(this instanceof n))return new n(l,d);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=d.format||f.format,this._gradientType=d.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 d=this.toRgb();return(d.r*299+d.g*587+d.b*114)/1e3},getLuminance:function(){var d=this.toRgb(),f,v,_,w,T,$;return f=d.r/255,v=d.g/255,_=d.b/255,f<=.03928?w=f/12.92:w=Math.pow((f+.055)/1.055,2.4),v<=.03928?T=v/12.92:T=Math.pow((v+.055)/1.055,2.4),_<=.03928?$=_/12.92:$=Math.pow((_+.055)/1.055,2.4),.2126*w+.7152*T+.0722*$},setAlpha:function(d){return this._a=X(d),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var d=u(this._r,this._g,this._b);return{h:d.h*360,s:d.s,v:d.v,a:this._a}},toHsvString:function(){var d=u(this._r,this._g,this._b),f=Math.round(d.h*360),v=Math.round(d.s*100),_=Math.round(d.v*100);return this._a==1?"hsv("+f+", "+v+"%, "+_+"%)":"hsva("+f+", "+v+"%, "+_+"%, "+this._roundA+")"},toHsl:function(){var d=o(this._r,this._g,this._b);return{h:d.h*360,s:d.s,l:d.l,a:this._a}},toHslString:function(){var d=o(this._r,this._g,this._b),f=Math.round(d.h*360),v=Math.round(d.s*100),_=Math.round(d.l*100);return this._a==1?"hsl("+f+", "+v+"%, "+_+"%)":"hsla("+f+", "+v+"%, "+_+"%, "+this._roundA+")"},toHex:function(d){return c(this._r,this._g,this._b,d)},toHexString:function(d){return"#"+this.toHex(d)},toHex8:function(d){return p(this._r,this._g,this._b,this._a,d)},toHex8String:function(d){return"#"+this.toHex8(d)},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(I(this._r,255)*100)+"%",g:Math.round(I(this._g,255)*100)+"%",b:Math.round(I(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(I(this._r,255)*100)+"%, "+Math.round(I(this._g,255)*100)+"%, "+Math.round(I(this._b,255)*100)+"%)":"rgba("+Math.round(I(this._r,255)*100)+"%, "+Math.round(I(this._g,255)*100)+"%, "+Math.round(I(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:q[c(this._r,this._g,this._b,!0)]||!1},toFilter:function(d){var f="#"+g(this._r,this._g,this._b,this._a),v=f,_=this._gradientType?"GradientType = 1, ":"";if(d){var w=n(d);v="#"+g(w._r,w._g,w._b,w._a)}return"progid:DXImageTransform.Microsoft.gradient("+_+"startColorstr="+f+",endColorstr="+v+")"},toString:function(d){var f=!!d;d=d||this._format;var v=!1,_=this._a<1&&this._a>=0,w=!f&&_&&(d==="hex"||d==="hex6"||d==="hex3"||d==="hex4"||d==="hex8"||d==="name");return w?d==="name"&&this._a===0?this.toName():this.toRgbString():(d==="rgb"&&(v=this.toRgbString()),d==="prgb"&&(v=this.toPercentageRgbString()),(d==="hex"||d==="hex6")&&(v=this.toHexString()),d==="hex3"&&(v=this.toHexString(!0)),d==="hex4"&&(v=this.toHex8String(!0)),d==="hex8"&&(v=this.toHex8String()),d==="name"&&(v=this.toName()),d==="hsl"&&(v=this.toHslString()),d==="hsv"&&(v=this.toHsvString()),v||this.toHexString())},clone:function(){return n(this.toString())},_applyModification:function(d,f){var v=d.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(S,arguments)},brighten:function(){return this._applyModification(F,arguments)},darken:function(){return this._applyModification(L,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(B,arguments)},_applyCombination:function(d,f){return d.apply(null,[this].concat([].slice.call(f)))},analogous:function(){return this._applyCombination(De,arguments)},complement:function(){return this._applyCombination(G,arguments)},monochromatic:function(){return this._applyCombination(Q,arguments)},splitcomplement:function(){return this._applyCombination(ye,arguments)},triad:function(){return this._applyCombination(Y,[3])},tetrad:function(){return this._applyCombination(Y,[4])}},n.fromRatio=function(l,d){if(t(l)=="object"){var f={};for(var v in l)l.hasOwnProperty(v)&&(v==="a"?f[v]=l[v]:f[v]=A(l[v]));l=f}return n(l,d)};function i(l){var d={r:0,g:0,b:0},f=1,v=null,_=null,w=null,T=!1,$=!1;return typeof l=="string"&&(l=ft(l)),t(l)=="object"&&(ve(l.r)&&ve(l.g)&&ve(l.b)?(d=s(l.r,l.g,l.b),T=!0,$=String(l.r).substr(-1)==="%"?"prgb":"rgb"):ve(l.h)&&ve(l.s)&&ve(l.v)?(v=A(l.s),_=A(l.v),d=h(l.h,v,_),T=!0,$="hsv"):ve(l.h)&&ve(l.s)&&ve(l.l)&&(v=A(l.s),w=A(l.l),d=a(l.h,v,w),T=!0,$="hsl"),l.hasOwnProperty("a")&&(f=l.a)),f=X(f),{ok:T,format:l.format||$,r:Math.min(255,Math.max(d.r,0)),g:Math.min(255,Math.max(d.g,0)),b:Math.min(255,Math.max(d.b,0)),a:f}}function s(l,d,f){return{r:I(l,255)*255,g:I(d,255)*255,b:I(f,255)*255}}function o(l,d,f){l=I(l,255),d=I(d,255),f=I(f,255);var v=Math.max(l,d,f),_=Math.min(l,d,f),w,T,$=(v+_)/2;if(v==_)w=T=0;else{var N=v-_;switch(T=$>.5?N/(2-v-_):N/(v+_),v){case l:w=(d-f)/N+(d<f?6:0);break;case d:w=(f-l)/N+2;break;case f:w=(l-d)/N+4;break}w/=6}return{h:w,s:T,l:$}}function a(l,d,f){var v,_,w;l=I(l,360),d=I(d,100),f=I(f,100);function T(Ie,Lt,Me){return Me<0&&(Me+=1),Me>1&&(Me-=1),Me<1/6?Ie+(Lt-Ie)*6*Me:Me<1/2?Lt:Me<2/3?Ie+(Lt-Ie)*(2/3-Me)*6:Ie}if(d===0)v=_=w=f;else{var $=f<.5?f*(1+d):f+d-f*d,N=2*f-$;v=T(N,$,l+1/3),_=T(N,$,l),w=T(N,$,l-1/3)}return{r:v*255,g:_*255,b:w*255}}function u(l,d,f){l=I(l,255),d=I(d,255),f=I(f,255);var v=Math.max(l,d,f),_=Math.min(l,d,f),w,T,$=v,N=v-_;if(T=v===0?0:N/v,v==_)w=0;else{switch(v){case l:w=(d-f)/N+(d<f?6:0);break;case d:w=(f-l)/N+2;break;case f:w=(l-d)/N+4;break}w/=6}return{h:w,s:T,v:$}}function h(l,d,f){l=I(l,360)*6,d=I(d,100),f=I(f,100);var v=Math.floor(l),_=l-v,w=f*(1-d),T=f*(1-_*d),$=f*(1-(1-_)*d),N=v%6,Ie=[f,T,w,w,$,f][N],Lt=[$,f,f,T,w,w][N],Me=[w,w,$,f,f,T][N];return{r:Ie*255,g:Lt*255,b:Me*255}}function c(l,d,f,v){var _=[E(Math.round(l).toString(16)),E(Math.round(d).toString(16)),E(Math.round(f).toString(16))];return v&&_[0].charAt(0)==_[0].charAt(1)&&_[1].charAt(0)==_[1].charAt(1)&&_[2].charAt(0)==_[2].charAt(1)?_[0].charAt(0)+_[1].charAt(0)+_[2].charAt(0):_.join("")}function p(l,d,f,v,_){var w=[E(Math.round(l).toString(16)),E(Math.round(d).toString(16)),E(Math.round(f).toString(16)),E(Oe(v))];return _&&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,d,f,v){var _=[E(Oe(v)),E(Math.round(l).toString(16)),E(Math.round(d).toString(16)),E(Math.round(f).toString(16))];return _.join("")}n.equals=function(l,d){return!l||!d?!1:n(l).toRgbString()==n(d).toRgbString()},n.random=function(){return n.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function m(l,d){d=d===0?0:d||10;var f=n(l).toHsl();return f.s-=d/100,f.s=U(f.s),n(f)}function b(l,d){d=d===0?0:d||10;var f=n(l).toHsl();return f.s+=d/100,f.s=U(f.s),n(f)}function x(l){return n(l).desaturate(100)}function S(l,d){d=d===0?0:d||10;var f=n(l).toHsl();return f.l+=d/100,f.l=U(f.l),n(f)}function F(l,d){d=d===0?0:d||10;var f=n(l).toRgb();return f.r=Math.max(0,Math.min(255,f.r-Math.round(255*-(d/100)))),f.g=Math.max(0,Math.min(255,f.g-Math.round(255*-(d/100)))),f.b=Math.max(0,Math.min(255,f.b-Math.round(255*-(d/100)))),n(f)}function L(l,d){d=d===0?0:d||10;var f=n(l).toHsl();return f.l-=d/100,f.l=U(f.l),n(f)}function B(l,d){var f=n(l).toHsl(),v=(f.h+d)%360;return f.h=v<0?360+v:v,n(f)}function G(l){var d=n(l).toHsl();return d.h=(d.h+180)%360,n(d)}function Y(l,d){if(isNaN(d)||d<=0)throw new Error("Argument to polyad must be a positive number");for(var f=n(l).toHsl(),v=[n(l)],_=360/d,w=1;w<d;w++)v.push(n({h:(f.h+w*_)%360,s:f.s,l:f.l}));return v}function ye(l){var d=n(l).toHsl(),f=d.h;return[n(l),n({h:(f+72)%360,s:d.s,l:d.l}),n({h:(f+216)%360,s:d.s,l:d.l})]}function De(l,d,f){d=d||6,f=f||30;var v=n(l).toHsl(),_=360/f,w=[n(l)];for(v.h=(v.h-(_*d>>1)+720)%360;--d;)v.h=(v.h+_)%360,w.push(n(v));return w}function Q(l,d){d=d||6;for(var f=n(l).toHsv(),v=f.h,_=f.s,w=f.v,T=[],$=1/d;d--;)T.push(n({h:v,s:_,v:w})),w=(w+$)%1;return T}n.mix=function(l,d,f){f=f===0?0:f||50;var v=n(l).toRgb(),_=n(d).toRgb(),w=f/100,T={r:(_.r-v.r)*w+v.r,g:(_.g-v.g)*w+v.g,b:(_.b-v.b)*w+v.b,a:(_.a-v.a)*w+v.a};return n(T)},n.readability=function(l,d){var f=n(l),v=n(d);return(Math.max(f.getLuminance(),v.getLuminance())+.05)/(Math.min(f.getLuminance(),v.getLuminance())+.05)},n.isReadable=function(l,d,f){var v=n.readability(l,d),_,w;switch(w=!1,_=re(f),_.level+_.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,d,f){var v=null,_=0,w,T,$,N;f=f||{},T=f.includeFallbackColors,$=f.level,N=f.size;for(var Ie=0;Ie<d.length;Ie++)w=n.readability(l,d[Ie]),w>_&&(_=w,v=n(d[Ie]));return n.isReadable(l,v,{level:$,size:N})||!T?v:(f.includeFallbackColors=!1,n.mostReadable(l,["#fff","#000"],f))};var D=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"},q=n.hexNames=k(D);function k(l){var d={};for(var f in l)l.hasOwnProperty(f)&&(d[l[f]]=f);return d}function X(l){return l=parseFloat(l),(isNaN(l)||l<0||l>1)&&(l=1),l}function I(l,d){j(l)&&(l="100%");var f=M(l);return l=Math.min(d,Math.max(0,parseFloat(l))),f&&(l=parseInt(l*d,10)/100),Math.abs(l-d)<1e-6?1:l%d/parseFloat(d)}function U(l){return Math.min(1,Math.max(0,l))}function O(l){return parseInt(l,16)}function j(l){return typeof l=="string"&&l.indexOf(".")!=-1&&parseFloat(l)===1}function M(l){return typeof l=="string"&&l.indexOf("%")!=-1}function E(l){return l.length==1?"0"+l:""+l}function A(l){return l<=1&&(l=l*100+"%"),l}function Oe(l){return Math.round(parseFloat(l)*255).toString(16)}function ke(l){return O(l)/255}var ae=function(){var l="[-\\+]?\\d+%?",d="[-\\+]?\\d*\\.\\d+%?",f="(?:"+d+")|(?:"+l+")",v="[\\s|\\(]+("+f+")[,|\\s]+("+f+")[,|\\s]+("+f+")\\s*\\)?",_="[\\s|\\(]+("+f+")[,|\\s]+("+f+")[,|\\s]+("+f+")[,|\\s]+("+f+")\\s*\\)?";return{CSS_UNIT:new RegExp(f),rgb:new RegExp("rgb"+v),rgba:new RegExp("rgba"+_),hsl:new RegExp("hsl"+v),hsla:new RegExp("hsla"+_),hsv:new RegExp("hsv"+v),hsva:new RegExp("hsva"+_),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function ve(l){return!!ae.CSS_UNIT.exec(l)}function ft(l){l=l.replace(e,"").replace(r,"").toLowerCase();var d=!1;if(D[l])l=D[l],d=!0;else if(l=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var f;return(f=ae.rgb.exec(l))?{r:f[1],g:f[2],b:f[3]}:(f=ae.rgba.exec(l))?{r:f[1],g:f[2],b:f[3],a:f[4]}:(f=ae.hsl.exec(l))?{h:f[1],s:f[2],l:f[3]}:(f=ae.hsla.exec(l))?{h:f[1],s:f[2],l:f[3],a:f[4]}:(f=ae.hsv.exec(l))?{h:f[1],s:f[2],v:f[3]}:(f=ae.hsva.exec(l))?{h:f[1],s:f[2],v:f[3],a:f[4]}:(f=ae.hex8.exec(l))?{r:O(f[1]),g:O(f[2]),b:O(f[3]),a:ke(f[4]),format:d?"name":"hex8"}:(f=ae.hex6.exec(l))?{r:O(f[1]),g:O(f[2]),b:O(f[3]),format:d?"name":"hex"}:(f=ae.hex4.exec(l))?{r:O(f[1]+""+f[1]),g:O(f[2]+""+f[2]),b:O(f[3]+""+f[3]),a:ke(f[4]+""+f[4]),format:d?"name":"hex8"}:(f=ae.hex3.exec(l))?{r:O(f[1]+""+f[1]),g:O(f[2]+""+f[2]),b:O(f[3]+""+f[3]),format:d?"name":"hex"}:!1}function re(l){var d,f;return l=l||{level:"AA",size:"small"},d=(l.level||"AA").toUpperCase(),f=(l.size||"small").toLowerCase(),d!=="AA"&&d!=="AAA"&&(d="AA"),f!=="small"&&f!=="large"&&(f="small"),{level:d,size:f}}return n})});var df=y((r2,ff)=>{var or=sf(),cf={r:256,g:256,b:256,a:1},lf={h:360,s:1,v:1,a:1};function es(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 ts(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 Zi(t,e,r){let n=t.color.toRgb(),i=e.color.toRgb(),s=es(n,i,r),o=[t.color];for(let a=1;a<r;a++){let u=ts(s,n,a,cf);o.push(or(u))}return o}function of(t,e,r,n){let i=t.color.toHsv(),s=e.color.toHsv();if(i.s===0||s.s===0)return Zi(t,e,r);let o;if(typeof n=="boolean")o=n;else{let c=i.h<s.h&&s.h-i.h<180||i.h>s.h&&i.h-s.h>180;o=n==="long"&&c||n==="short"&&!c}let a=es(i,s,r),u=[t.color],h;i.h<=s.h&&!o||i.h>=s.h&&o?h=s.h-i.h:o?h=360-s.h+i.h:h=360-i.h+s.h,a.h=Math.pow(-1,o?1:0)*Math.abs(h)/r;for(let c=1;c<r;c++){let p=ts(a,i,c,lf);u.push(or(p))}return u}function af(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 uf(t,e,r,n){if(e<0||e>1)throw new Error("Position must be between 0 and 1");let i,s;for(let u=0,h=t.length;u<h-1;u++)if(e>=t[u].pos&&e<t[u+1].pos){i=t[u],s=t[u+1];break}i||(i=s=t[t.length-1]);let o=es(i.color[r](),s.color[r](),(s.pos-i.pos)*100),a=ts(o,i.color[r](),(e-i.pos)*100,n);return or(a)}var kt=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 u=o.pos!==void 0;if(r^u)throw new Error("Cannot mix positionned and not posionned color stops");if(u){let h=o.color!==void 0;if(!h&&(s||a===0||a===n-1))throw new Error("Cannot define two consecutive position-only stops");if(s=!h,o={color:h?or(o.color):null,colorLess:!h,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:or(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 kt(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 kt(e.concat(r.reverse()))}rgb(e){let r=af(this.stops,e),n=[];this.stops.forEach((i,s)=>{i.colorLess&&(i.color=Zi(this.stops[s-1],this.stops[s+1],2)[1])});for(let i=0,s=this.stops.length;i<s-1;i++){let o=Zi(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=af(this.stops,e),i=[];this.stops.forEach((s,o)=>{s.colorLess&&(s.color=of(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=of(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 uf(this.stops,e,"toRgb",cf)}hsvAt(e){return uf(this.stops,e,"toHsv",lf)}};ff.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 kt(t)}});var yf=y((n2,mn)=>{"use strict";var pf=nf(),kg=df(),hf=/\s/g;function rs(...t){let e=kg.apply(this,t),r=(n,i)=>Mg(n?n.toString():"",e,i);return r.multiline=(n,i)=>qg(n?n.toString():"",e,i),r}var mf=(t,e,r)=>e.interpolation.toLowerCase()==="hsv"?t.hsv(r,e.hsvSpin.toLowerCase()):t.rgb(r);function Mg(t,e,r){let n=gf(r),i=Math.max(t.replace(hf,"").length,e.stops.length),s=mf(e,n,i),o="";for(let a of t)o+=a.match(hf)?a:pf.hex(s.shift().toHex())(a);return o}function qg(t,e,r){let n=gf(r),i=t.split(`
20
20
  `),s=Math.max.apply(null,i.map(u=>u.length).concat([e.stops.length])),o=mf(e,n,s),a=[];for(let u of i){let h=o.slice(0),c="";for(let p of u)c+=pf.hex(h.shift().toHex())(p);a.push(c)}return a.join(`
21
- `)}function gf(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 ar={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=rs;for(let t in ar)mn.exports[t]=e=>new rs(ar[t].colors)(e,ar[t].options),mn.exports[t].multiline=e=>new rs(ar[t].colors).multiline(e,ar[t].options)});var bf=y((i2,vf)=>{var ns=class{constructor(e){this.value=e,this.next=void 0}},is=class{constructor(){this.clear()}enqueue(e){let r=new ns(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}};vf.exports=is});var ss=y((s2,_f)=>{"use strict";var Tg=bf(),Ng=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 Tg,r=0,n=()=>{r--,e.size>0&&e.dequeue()()},i=async(a,u,...h)=>{r++;let c=(async()=>a(...h))();u(c);try{await c}catch{}n()},s=(a,u,...h)=>{e.enqueue(i.bind(null,a,u,...h)),(async()=>(await Promise.resolve(),r<t&&e.size>0&&e.dequeue()()))()},o=(a,...u)=>new Promise(h=>{s(a,h,...u)});return Object.defineProperties(o,{activeCount:{get:()=>r},pendingCount:{get:()=>e.size},clearQueue:{value:()=>{e.clear()}}}),o};_f.exports=Ng});var Sf=y((o2,xf)=>{"use strict";var wf=ss(),gn=class extends Error{constructor(e){super(),this.value=e}},jg=async(t,e)=>e(await t),Lg=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=wf(r.concurrency),i=[...t].map(o=>[o,n(jg,o,e)]),s=wf(r.preserveOrder?1:1/0);try{await Promise.all(i.map(o=>s(Lg,o)))}catch(o){if(o instanceof gn)return o.value;throw o}};xf.exports=$g});var If=y((a2,os)=>{"use strict";var Ef=require("path"),yn=require("fs"),{promisify:Cf}=require("util"),Bg=Sf(),Ug=Cf(yn.stat),Xg=Cf(yn.lstat),Pf={directory:"isDirectory",file:"isFile"};function Of({type:t}){if(!(t in Pf))throw new Error(`Invalid type specified: ${t}`)}var Df=(t,e)=>t===void 0||e[Pf[t]]();os.exports=async(t,e)=>{e={cwd:process.cwd(),type:"file",allowSymlinks:!0,...e},Of(e);let r=e.allowSymlinks?Ug:Xg;return Bg(t,async n=>{try{let i=await r(Ef.resolve(e.cwd,n));return Df(e.type,i)}catch{return!1}},e)};os.exports.sync=(t,e)=>{e={cwd:process.cwd(),allowSymlinks:!0,type:"file",...e},Of(e);let r=e.allowSymlinks?yn.statSync:yn.lstatSync;for(let n of t)try{let i=r(Ef.resolve(e.cwd,n));if(Df(e.type,i))return n}catch{}}});var Af=y((u2,as)=>{"use strict";var Ff=require("fs"),{promisify:Hg}=require("util"),Gg=Hg(Ff.access);as.exports=async t=>{try{return await Gg(t),!0}catch{return!1}};as.exports.sync=t=>{try{return Ff.accessSync(t),!0}catch{return!1}}});var kf=y((c2,Mt)=>{"use strict";var Ve=require("path"),vn=If(),Rf=Af(),us=Symbol("findUp.stop");Mt.exports=async(t,e={})=>{let r=Ve.resolve(e.cwd||""),{root:n}=Ve.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===us)return;if(o)return Ve.resolve(r,o);if(r===n)return;r=Ve.dirname(r)}};Mt.exports.sync=(t,e={})=>{let r=Ve.resolve(e.cwd||""),{root:n}=Ve.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===us)return;if(o)return Ve.resolve(r,o);if(r===n)return;r=Ve.dirname(r)}};Mt.exports.exists=Rf;Mt.exports.sync.exists=Rf.sync;Mt.exports.stop=us});var Tf=y((l2,cs)=>{"use strict";var Mf=require("path"),qf=kf(),zg=async t=>{let e=await qf("package.json",{cwd:t});return e&&Mf.dirname(e)};cs.exports=zg;cs.exports.sync=t=>{let e=qf.sync("package.json",{cwd:t});return e&&Mf.dirname(e)}});var Y=y(xe=>{"use strict";Object.defineProperty(xe,"__esModule",{value:!0});xe.isUndefined=xe.fixName=xe.validateName=xe.validateSingleChar=xe.fixChar=xe.validateChar=void 0;function hy(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}xe.validateChar=hy;function py(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}xe.fixChar=py;function my(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}xe.validateSingleChar=my;function gy(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 u=t.charCodeAt(o+1);if(a>=55296&&a<=56191&&u>=56320&&u<=57343){o++;continue}return!1}}return!0}xe.validateName=gy;function yy(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 u=t.charCodeAt(a);if(u===58||u===95||u===45||u===46||u===183||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||u>=192&&u<=214||u>=216&&u<=246||u>=248&&u<=767||u>=768&&u<=879||u>=880&&u<=893||u>=895&&u<=8191||u>=8204&&u<=8205||u>=8255&&u<=8256||u>=8304&&u<=8591||u>=11264&&u<=12271||u>=12289&&u<=55295||u>=63744&&u<=64975||u>=65008&&u<=65533){e+=t[a];continue}if(a+1===t.length)return e+="\uFFFD",e;var h=t.charCodeAt(a+1);if(u>=55296&&u<=56191&&h>=56320&&h<=57343){e+=t[a]+t[a+1],a++;continue}e+="\uFFFD"}return e}xe.fixName=yy;function vy(t){return Object.prototype.toString.call(t)==="[object Undefined]"}xe.isUndefined=vy});var Tt=y(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.StringOptions=void 0;var xn=Y(),by=function(){function t(e){this.doubleQuotes=!1,this.indent=" ",this.newline=`
22
- `,this.pretty=!0,(0,xn.isUndefined)(e.doubleQuotes)||(this.doubleQuotes=e.doubleQuotes),(0,xn.isUndefined)(e.indent)||(this.indent=e.indent),(0,xn.isUndefined)(e.newline)||(this.newline=e.newline),(0,xn.isUndefined)(e.pretty)||(this.pretty=e.pretty)}return t}();Sn.StringOptions=by});var En=y(Re=>{"use strict";Object.defineProperty(Re,"__esModule",{value:!0});Re.escapeDoubleQuotes=Re.escapeSingleQuotes=Re.escapeRightAngleBracketsInCdataTerminator=Re.escapeLeftAngleBrackets=Re.escapeAmpersands=void 0;function _y(t){return t.replace(/&/g,"&amp;")}Re.escapeAmpersands=_y;function wy(t){return t.replace(/</g,"&lt;")}Re.escapeLeftAngleBrackets=wy;function xy(t){return t.replace(/]]>/g,"]]&gt;")}Re.escapeRightAngleBracketsInCdataTerminator=xy;function Sy(t){return t.replace(/'/g,"&apos;")}Re.escapeSingleQuotes=Sy;function Ey(t){return t.replace(/"/g,"&quot;")}Re.escapeDoubleQuotes=Ey});var Cs=y(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});var Cy=oe(),ud=En(),Ss=Y(),Py=function(){function t(e,r,n){this._validation=r,(0,Ss.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,Ss.fixChar)(e);else if(this._validation&&!(0,Ss.validateChar)(e))throw new Error((0,Cy.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,ud.escapeAmpersands)(e),e=(0,ud.escapeLeftAngleBrackets)(e),e},t.prototype.up=function(){return this._parent},t}();Es.default=Py});var Cn=y(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});var cd=oe(),ld=Y(),Oy=function(){function t(e,r,n){this._hex=!1,this._validation=r,this._parent=e,this.char=n.char,(0,ld.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,ld.validateSingleChar)(e))throw new Error((0,cd.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,cd.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 Pn=y(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});var Dy=oe(),Iy=Y(),Fy=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,Iy.validateName)(e))throw new Error((0,Dy.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}();Os.default=Fy});var On=y(lr=>{"use strict";var Fs=lr&&lr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(lr,"__esModule",{value:!0});var Ds=oe(),fd=En(),Ay=Tt(),Is=Y(),Ry=Fs(Cs()),ky=Fs(Cn()),My=Fs(Pn()),qy=function(){function t(e,r,n){this._validation=r,(0,Is.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,Is.fixName)(e),e.length===0)throw new Error((0,Ds.getContext)(this.up())+": attribute name should not be empty")}else if(this._validation&&!(0,Is.validateName)(e))throw e.length===0?new Error((0,Ds.getContext)(this.up())+": attribute name should not be empty"):new Error((0,Ds.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 ky.default(this,this._validation,e);return this._children.push(r),r},t.prototype.entityRef=function(e){var r=new My.default(this,this._validation,e);return this._children.push(r),r},t.prototype.text=function(e){var r=new Ry.default(this,this._validation,e);return this._children.push(r),r},t.prototype.toString=function(e){e===void 0&&(e={});for(var r=new Ay.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,fd.escapeDoubleQuotes)(a.toString()):i+=(0,fd.escapeSingleQuotes)(a.toString())}return i+=n,i},t.prototype.up=function(){return this._parent},t}();lr.default=qy});var Rs=y(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});var Ty=oe(),Ny=Y(),jy=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,Ny.validateChar)(e))throw new Error((0,Ty.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}();As.default=jy});var Ms=y(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});var Ly=oe(),$y=Y(),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,$y.validateChar)(e))throw new Error((0,Ly.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 Ts=y(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});var Uy=oe(),Xy=Y(),Hy=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,Xy.validateChar)(e))throw new Error((0,Uy.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}();qs.default=Hy});var js=y(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});var Gy=oe(),zy=Y(),Wy=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,zy.validateChar)(e))throw new Error((0,Gy.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=Wy});var $s=y(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});var Jy=oe(),Vy=Y(),Ky=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,Vy.validateName)(e))throw new Error((0,Jy.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}();Ls.default=Ky});var fr=y(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});var Dn=oe(),In=Y(),Yy=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,In.isUndefined)(e)){if(this._validation&&!(0,In.validateChar)(e))throw new Error((0,Dn.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,Dn.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,In.validateName)(e))throw new Error((0,Dn.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,Dn.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,In.isUndefined)(this._content)?"<?"+this._target+"?>":"<?"+this._target+" "+this._content+"?>"},t.prototype.up=function(){return this._parent},t}();Bs.default=Yy});var Fn=y(ut=>{"use strict";var ct=ut&&ut.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ut,"__esModule",{value:!0});ut.validatePubId=void 0;var Qe=oe(),Qy=Tt(),Le=Y(),Zy=ct(dr()),e1=ct(Rs()),t1=ct(Ms()),r1=ct(Ts()),n1=ct(js()),i1=ct($s()),s1=ct(fr()),o1=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,Le.isUndefined)(n.sysId)||(this.sysId=n.sysId),(0,Le.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,Le.validateName)(e))throw new Error((0,Qe.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,Le.isUndefined)(e)){if(this._validation&&!dd(e))throw new Error((0,Qe.getContext)(this.up())+": DTD public"+(' identifier "'+e+'" should not contain')+" characters not allowed in public identifiers");if(this._validation&&(0,Le.isUndefined)(this._sysId))throw new Error((0,Qe.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,Le.isUndefined)(e)){if(this._validation&&!(0,Le.validateChar)(e))throw new Error((0,Qe.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,Qe.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 e1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.comment=function(e){var r=new Zy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.element=function(e){var r=new t1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.entity=function(e){var r=new r1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.notation=function(e){var r=new n1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.paramEntityRef=function(e){var r=new i1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.procInst=function(e){var r=new s1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.toString=function(e){e===void 0&&(e={});var r=new Qy.StringOptions(e),n="<!DOCTYPE "+this._name;if((0,Le.isUndefined)(this._pubId))(0,Le.isUndefined)(this._sysId)||(n+=" ",n=this.appendId("SYSTEM",this._sysId,n,r));else{if((0,Le.isUndefined)(this._sysId))throw new Error((0,Qe.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,Qe.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,Qe.getContext)(this)+": doubleQuotes option inconsistent with DTD system identifier or public identifier");n+="'"+r+"'"}return n},t}();ut.default=o1;function dd(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}ut.validatePubId=dd});var Hs=y(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});var hd=oe(),Us=Y(),a1=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,hd.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,hd.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=a1});var Js=y(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});var u1=oe(),Gs=En(),zs=Y(),c1=function(){function t(e,r,n){this._validation=r,(0,zs.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,zs.fixChar)(e);else if(this._validation&&!(0,zs.validateChar)(e))throw new Error((0,u1.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,Gs.escapeAmpersands)(e),e=(0,Gs.escapeLeftAngleBrackets)(e),e=(0,Gs.escapeRightAngleBracketsInCdataTerminator)(e),e},t.prototype.up=function(){return this._parent},t}();Ws.default=c1});var Mn=y(mr=>{"use strict";var lt=mr&&mr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(mr,"__esModule",{value:!0});var An=oe(),l1=Tt(),hr=Y(),pd=lt(On()),f1=lt(Hs()),pr=lt(Js()),Rn=lt(Cn()),d1=lt(dr()),kn=lt(Pn()),h1=lt(fr()),p1=function(){function t(e,r,n){this._validation=r,(0,hr.isUndefined)(n.replaceInvalidCharsInName)?this._replaceInvalidCharsInName=!1:this._replaceInvalidCharsInName=n.replaceInvalidCharsInName,(0,hr.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,hr.fixName)(e),e.length===0)throw new Error((0,An.getContext)(this.up())+": element name should not be empty")}else if(this._validation&&!(0,hr.validateName)(e))throw e.length===0?new Error((0,An.getContext)(this.up())+": element name should not be empty"):new Error((0,An.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,An.getContext)(this.up())+': element "'+this.name+'" already contains an attribute with the'+(' name "'+e.name+'"'));var r=new pd.default(this,this._validation,e);return this._children.push(r),this._attributeNames.push(e.name),r},t.prototype.cdata=function(e){var r=new f1.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 Rn.default(this,this._validation,e);return this._children.push(r),r},t.prototype.comment=function(e){var r=new d1.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 kn.default(this,this._validation,e);return this._children.push(r),r},t.prototype.procInst=function(e){var r=new h1.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 l1.StringOptions(e),i=r+n.indent,s="<"+this._name,o=[],a=0,u=this._children;a<u.length;a++){var h=u[a];h instanceof pd.default?s+=" "+h.toString(e):o.push(h)}if(o.length>0){for(var c="",p=0;p<o.length;p++){var g=o[p],m="";g instanceof t?m+=g.toStringWithIndent(n,i):m+=g.toString();var b=p>0?o[p-1]:void 0;g instanceof pr.default&&g.toString()===""||(n.pretty&&(this.allSameLineNodes(o)||p>0&&this.onSameLine(g,b)||(m=n.newline+i+m)),c+=m)}n.pretty&&(this.allSameLineNodes(o)||(c+=n.newline+r)),c.length===0&&this._useSelfClosingTagIfEmpty?s+="/>":s+=">"+c+"</"+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 Rn.default||i instanceof kn.default||i instanceof pr.default))return!1}return!0},t.prototype.onSameLine=function(e,r){return(e instanceof Rn.default||e instanceof kn.default||e instanceof pr.default)&&!(0,hr.isUndefined)(r)&&(r instanceof Rn.default||r instanceof kn.default||r instanceof pr.default)},t}();mr.default=p1});var oe=y(Nt=>{"use strict";var Tn=Nt&&Nt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Nt,"__esModule",{value:!0});Nt.getContext=void 0;var m1=Tn(On()),g1=Tn(Nn()),y1=Tn(Fn()),v1=Tn(Mn());function qn(t){if(t instanceof m1.default)return qn(t.up())+(' > attribute "'+t.name+'"');if(t instanceof g1.default)return"in XML document";if(t instanceof y1.default)return qn(t.up())+" > DTD";if(t instanceof v1.default)return qn(t.up())+(' > element "'+t.name+'"');throw new Error("Unrecognized object of type "+Object.prototype.toString.call(t))}Nt.getContext=qn});var dr=y(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});var Vs=oe(),Ks=Y(),b1=function(){function t(e,r,n){this._validation=r,(0,Ks.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,Ks.fixChar)(e);else if(this._validation&&!(0,Ks.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}();Ys.default=b1});var eo=y(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});var Qs=oe(),_1=Tt(),gr=Y(),w1=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,gr.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,gr.isUndefined)(e)&&!x1(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,gr.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&&!S1(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 _1.StringOptions(e),n=r.doubleQuotes?'"':"'",i="<?xml version="+n+this._version+n;return(0,gr.isUndefined)(this._encoding)||(i+=" encoding="+n+this._encoding+n),(0,gr.isUndefined)(this._standalone)||(i+=" standalone="+n+this._standalone+n),i+="?>",i},t.prototype.up=function(){return this._parent},t}();Zs.default=w1;function x1(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 S1(t){for(var e=0;e<=9;e++)if(t==="1."+e)return!0;return!1}});var Nn=y(vr=>{"use strict";var br=vr&&vr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(vr,"__esModule",{value:!0});var E1=Tt(),C1=Y(),P1=br(dr()),md=br(eo()),gd=br(Fn()),yr=br(Mn()),O1=br(fr()),D1=function(){function t(e){this._children=[],this._validation=(0,C1.isUndefined)(e.validation)?!0:e.validation}return t.prototype.comment=function(e){var r=new P1.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 md.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 yr.default});if(this._validation&&r.length!==0)throw new Error("in XML document: DTD must precede the root element");var n=new gd.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 yr.default});if(this._validation&&r.length!==0)throw new Error("in XML document: only one root element is permitted");var n=new yr.default(this,this._validation,e);return this._children.push(n),n},t.prototype.procInst=function(e){var r=new O1.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(h){return h instanceof yr.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 E1.StringOptions(e),i="",s=0,o=this._children;s<o.length;s++){var a=o[s];a instanceof md.default||a instanceof gd.default||a instanceof yr.default?i+=a.toString(e):i+=a.toString(),n.pretty&&(i+=n.newline)}var u=i.length-n.newline.length;return i.substr(u)===n.newline&&(i=i.substr(0,u)),i},t}();vr.default=D1});var yd=y(R=>{"use strict";var ee=R&&R.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(R,"__esModule",{value:!0});R.document=R.XmlProcInst=R.XmlEntityRef=R.XmlElement=R.XmlDtdParamEntityRef=R.XmlDtdNotation=R.XmlDtdEntity=R.XmlDtdElement=R.XmlDtdAttlist=R.XmlDtd=R.XmlDocument=R.XmlDecl=R.XmlComment=R.XmlCharRef=R.XmlCharData=R.XmlCdata=R.XmlAttributeText=R.XmlAttribute=void 0;var I1=ee(Nn()),F1=On();Object.defineProperty(R,"XmlAttribute",{enumerable:!0,get:function(){return ee(F1).default}});var A1=Cs();Object.defineProperty(R,"XmlAttributeText",{enumerable:!0,get:function(){return ee(A1).default}});var R1=Hs();Object.defineProperty(R,"XmlCdata",{enumerable:!0,get:function(){return ee(R1).default}});var k1=Js();Object.defineProperty(R,"XmlCharData",{enumerable:!0,get:function(){return ee(k1).default}});var M1=Cn();Object.defineProperty(R,"XmlCharRef",{enumerable:!0,get:function(){return ee(M1).default}});var q1=dr();Object.defineProperty(R,"XmlComment",{enumerable:!0,get:function(){return ee(q1).default}});var T1=eo();Object.defineProperty(R,"XmlDecl",{enumerable:!0,get:function(){return ee(T1).default}});var N1=Nn();Object.defineProperty(R,"XmlDocument",{enumerable:!0,get:function(){return ee(N1).default}});var j1=Fn();Object.defineProperty(R,"XmlDtd",{enumerable:!0,get:function(){return ee(j1).default}});var L1=Rs();Object.defineProperty(R,"XmlDtdAttlist",{enumerable:!0,get:function(){return ee(L1).default}});var $1=Ms();Object.defineProperty(R,"XmlDtdElement",{enumerable:!0,get:function(){return ee($1).default}});var B1=Ts();Object.defineProperty(R,"XmlDtdEntity",{enumerable:!0,get:function(){return ee(B1).default}});var U1=js();Object.defineProperty(R,"XmlDtdNotation",{enumerable:!0,get:function(){return ee(U1).default}});var X1=$s();Object.defineProperty(R,"XmlDtdParamEntityRef",{enumerable:!0,get:function(){return ee(X1).default}});var H1=Mn();Object.defineProperty(R,"XmlElement",{enumerable:!0,get:function(){return ee(H1).default}});var G1=Pn();Object.defineProperty(R,"XmlEntityRef",{enumerable:!0,get:function(){return ee(G1).default}});var z1=fr();Object.defineProperty(R,"XmlProcInst",{enumerable:!0,get:function(){return ee(z1).default}});function W1(t){return t===void 0&&(t={}),new I1.default(t)}R.document=W1});var to=y(te=>{"use strict";Object.defineProperty(te,"__esModule",{value:!0});te.stringify=te.isMap=te.isSet=te.isFunction=te.isArray=te.isObject=te.isNull=te.isUndefined=void 0;function vd(t){return Object.prototype.toString.call(t)==="[object Undefined]"}te.isUndefined=vd;function bd(t){return Object.prototype.toString.call(t)==="[object Null]"}te.isNull=bd;function J1(t){return Object.prototype.toString.call(t)==="[object Object]"}te.isObject=J1;function V1(t){return Object.prototype.toString.call(t)==="[object Array]"}te.isArray=V1;function _d(t){return Object.prototype.toString.call(t)==="[object Function]"}te.isFunction=_d;function K1(t){return Object.prototype.toString.call(t)==="[object Set]"}te.isSet=K1;function Y1(t){return Object.prototype.toString.call(t)==="[object Map]"}te.isMap=Y1;function Q1(t){return!vd(t)&&!bd(t)&&_d(t?.toString)&&(t=t.toString()),String(t)}te.stringify=Q1});var Pd=y(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.WrapHandlers=Se.TypeHandlers=Se.FormatOptions=Se.DtdOptions=Se.DeclarationOptions=Se.Options=void 0;var je=to(),Z1=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,je.isUndefined)(e.validation)||(this.validation=e.validation),(0,je.isUndefined)(e.aliasString)||(this.aliasString=e.aliasString),(0,je.isUndefined)(e.attributeString)||(this.attributeString=e.attributeString),(0,je.isUndefined)(e.cdataInvalidChars)||(this.cdataInvalidChars=e.cdataInvalidChars),(0,je.isUndefined)(e.cdataKeys)||(this.cdataKeys=e.cdataKeys),this.declaration=new wd(e.declaration),this.dtd=new xd(this.validation,e.dtd),this.format=new Sd(e.format),(0,je.isUndefined)(e.replaceInvalidChars)||(this.replaceInvalidChars=e.replaceInvalidChars),this.typeHandlers=new Ed(e.typeHandlers),(0,je.isUndefined)(e.useSelfClosingTagIfEmpty)||(this.useSelfClosingTagIfEmpty=e.useSelfClosingTagIfEmpty),(0,je.isUndefined)(e.valueString)||(this.valueString=e.valueString),this.wrapHandlers=new Cd(e.wrapHandlers)}return t}();Se.Options=Z1;var wd=function(){function t(e){e===void 0&&(e={}),this.include=!0,(0,je.isUndefined)(e.include)||(this.include=e.include),this.encoding=e.encoding,this.standalone=e.standalone,this.version=e.version}return t}();Se.DeclarationOptions=wd;var xd=function(){function t(e,r){if(r===void 0&&(r={}),this.include=!1,(0,je.isUndefined)(r.include)||(this.include=r.include),e&&(0,je.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}();Se.DtdOptions=xd;var Sd=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}();Se.FormatOptions=Sd;var Ed=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}();Se.TypeHandlers=Ed;var Cd=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}();Se.WrapHandlers=Cd});var Rd=y(Ze=>{"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});Ze.parse=Ze.parseToExistingElement=Ze.Absent=void 0;var Dd=yd(),Id=Pd(),J=to(),ro=function(){function t(){}return Object.defineProperty(t,"instance",{get:function(){return t._instance},enumerable:!1,configurable:!0}),t._instance=new t,t}();Ze.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 Fd(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 Dd.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 ev(t,e,r,n){var i=r.attribute({name:t,replaceInvalidCharsInName:n.replaceInvalidChars});Fd((0,J.stringify)(e),i,n)}function Od(t,e,r,n){if(t===n.aliasString){r.name=(0,J.stringify)(e);return}if(t.indexOf(n.attributeString)===0&&(0,J.isObject)(e)){for(var i=0,s=Object.keys(e);i<s.length;i++){var o=s[i];ev(o,(0,J.stringify)(e[o]),r,n)}return}if(t.indexOf(n.valueString)===0){jn(t,(0,J.stringify)(e),r,n);return}var a=r;if(!(0,J.isArray)(e)&&!(0,J.isSet)(e)){var u=no(e,n);if(!(0,J.isUndefined)(u)&&u(e)===ro.instance)return;a=r.element({name:t,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty})}jn(t,e,a,n)}function tv(t,e,r){if((0,J.isMap)(t))t.forEach(function(o,a){Od((0,J.stringify)(a),o,e,r)});else for(var n=0,i=Object.keys(t);n<i.length;n++){var s=i[n];Od(s,t[s],e,r)}}function rv(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,J.isUndefined)(i)){var a=i(s,e);(0,J.isNull)(a)||(s=a,o=r.element({name:t,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty}))}e.forEach(function(u){var h=o;if(!(0,J.isArray)(u)&&!(0,J.isSet)(u)){var c=no(u,n);if(!(0,J.isUndefined)(c)&&c(u)===ro.instance)return;h=o.element({name:s,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty})}jn(s,u,h,n)})}function jn(t,e,r,n){var i=no(e,n);if((0,J.isUndefined)(i)||(e=i(e)),(0,J.isObject)(e)||(0,J.isMap)(e)){tv(e,r,n);return}if((0,J.isArray)(e)||(0,J.isSet)(e)){rv(t,e,r,n);return}Fd((0,J.stringify)(e),r,n)}function Ad(t,e,r){var n=new Id.Options(r);jn(t.name,e,t,n)}Ze.parseToExistingElement=Ad;function nv(t,e,r){var n=new Id.Options(r),i=new Dd.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 Ad(s,e,r),i.toString(n.format)}Ze.parse=nv});var du=z(mi()),hu=z(Xr()),wi=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,du.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(hu.default.red(`
21
+ `)}function gf(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 ar={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=rs;for(let t in ar)mn.exports[t]=e=>new rs(ar[t].colors)(e,ar[t].options),mn.exports[t].multiline=e=>new rs(ar[t].colors).multiline(e,ar[t].options)});var bf=y((i2,vf)=>{var ns=class{constructor(e){this.value=e,this.next=void 0}},is=class{constructor(){this.clear()}enqueue(e){let r=new ns(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}};vf.exports=is});var ss=y((s2,wf)=>{"use strict";var Tg=bf(),Ng=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 Tg,r=0,n=()=>{r--,e.size>0&&e.dequeue()()},i=async(a,u,...h)=>{r++;let c=(async()=>a(...h))();u(c);try{await c}catch{}n()},s=(a,u,...h)=>{e.enqueue(i.bind(null,a,u,...h)),(async()=>(await Promise.resolve(),r<t&&e.size>0&&e.dequeue()()))()},o=(a,...u)=>new Promise(h=>{s(a,h,...u)});return Object.defineProperties(o,{activeCount:{get:()=>r},pendingCount:{get:()=>e.size},clearQueue:{value:()=>{e.clear()}}}),o};wf.exports=Ng});var Sf=y((o2,xf)=>{"use strict";var _f=ss(),gn=class extends Error{constructor(e){super(),this.value=e}},jg=async(t,e)=>e(await t),Lg=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=_f(r.concurrency),i=[...t].map(o=>[o,n(jg,o,e)]),s=_f(r.preserveOrder?1:1/0);try{await Promise.all(i.map(o=>s(Lg,o)))}catch(o){if(o instanceof gn)return o.value;throw o}};xf.exports=$g});var If=y((a2,os)=>{"use strict";var Ef=require("path"),yn=require("fs"),{promisify:Cf}=require("util"),Bg=Sf(),Ug=Cf(yn.stat),Xg=Cf(yn.lstat),Pf={directory:"isDirectory",file:"isFile"};function Df({type:t}){if(!(t in Pf))throw new Error(`Invalid type specified: ${t}`)}var Of=(t,e)=>t===void 0||e[Pf[t]]();os.exports=async(t,e)=>{e={cwd:process.cwd(),type:"file",allowSymlinks:!0,...e},Df(e);let r=e.allowSymlinks?Ug:Xg;return Bg(t,async n=>{try{let i=await r(Ef.resolve(e.cwd,n));return Of(e.type,i)}catch{return!1}},e)};os.exports.sync=(t,e)=>{e={cwd:process.cwd(),allowSymlinks:!0,type:"file",...e},Df(e);let r=e.allowSymlinks?yn.statSync:yn.lstatSync;for(let n of t)try{let i=r(Ef.resolve(e.cwd,n));if(Of(e.type,i))return n}catch{}}});var Af=y((u2,as)=>{"use strict";var Ff=require("fs"),{promisify:Hg}=require("util"),Gg=Hg(Ff.access);as.exports=async t=>{try{return await Gg(t),!0}catch{return!1}};as.exports.sync=t=>{try{return Ff.accessSync(t),!0}catch{return!1}}});var kf=y((c2,Mt)=>{"use strict";var Ve=require("path"),vn=If(),Rf=Af(),us=Symbol("findUp.stop");Mt.exports=async(t,e={})=>{let r=Ve.resolve(e.cwd||""),{root:n}=Ve.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===us)return;if(o)return Ve.resolve(r,o);if(r===n)return;r=Ve.dirname(r)}};Mt.exports.sync=(t,e={})=>{let r=Ve.resolve(e.cwd||""),{root:n}=Ve.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===us)return;if(o)return Ve.resolve(r,o);if(r===n)return;r=Ve.dirname(r)}};Mt.exports.exists=Rf;Mt.exports.sync.exists=Rf.sync;Mt.exports.stop=us});var Tf=y((l2,cs)=>{"use strict";var Mf=require("path"),qf=kf(),zg=async t=>{let e=await qf("package.json",{cwd:t});return e&&Mf.dirname(e)};cs.exports=zg;cs.exports.sync=t=>{let e=qf.sync("package.json",{cwd:t});return e&&Mf.dirname(e)}});var K=y(xe=>{"use strict";Object.defineProperty(xe,"__esModule",{value:!0});xe.isUndefined=xe.fixName=xe.validateName=xe.validateSingleChar=xe.fixChar=xe.validateChar=void 0;function hy(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}xe.validateChar=hy;function py(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}xe.fixChar=py;function my(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}xe.validateSingleChar=my;function gy(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 u=t.charCodeAt(o+1);if(a>=55296&&a<=56191&&u>=56320&&u<=57343){o++;continue}return!1}}return!0}xe.validateName=gy;function yy(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 u=t.charCodeAt(a);if(u===58||u===95||u===45||u===46||u===183||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||u>=192&&u<=214||u>=216&&u<=246||u>=248&&u<=767||u>=768&&u<=879||u>=880&&u<=893||u>=895&&u<=8191||u>=8204&&u<=8205||u>=8255&&u<=8256||u>=8304&&u<=8591||u>=11264&&u<=12271||u>=12289&&u<=55295||u>=63744&&u<=64975||u>=65008&&u<=65533){e+=t[a];continue}if(a+1===t.length)return e+="\uFFFD",e;var h=t.charCodeAt(a+1);if(u>=55296&&u<=56191&&h>=56320&&h<=57343){e+=t[a]+t[a+1],a++;continue}e+="\uFFFD"}return e}xe.fixName=yy;function vy(t){return Object.prototype.toString.call(t)==="[object Undefined]"}xe.isUndefined=vy});var Tt=y(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.StringOptions=void 0;var xn=K(),by=function(){function t(e){this.doubleQuotes=!1,this.indent=" ",this.newline=`
22
+ `,this.pretty=!0,(0,xn.isUndefined)(e.doubleQuotes)||(this.doubleQuotes=e.doubleQuotes),(0,xn.isUndefined)(e.indent)||(this.indent=e.indent),(0,xn.isUndefined)(e.newline)||(this.newline=e.newline),(0,xn.isUndefined)(e.pretty)||(this.pretty=e.pretty)}return t}();Sn.StringOptions=by});var En=y(Re=>{"use strict";Object.defineProperty(Re,"__esModule",{value:!0});Re.escapeDoubleQuotes=Re.escapeSingleQuotes=Re.escapeRightAngleBracketsInCdataTerminator=Re.escapeLeftAngleBrackets=Re.escapeAmpersands=void 0;function wy(t){return t.replace(/&/g,"&amp;")}Re.escapeAmpersands=wy;function _y(t){return t.replace(/</g,"&lt;")}Re.escapeLeftAngleBrackets=_y;function xy(t){return t.replace(/]]>/g,"]]&gt;")}Re.escapeRightAngleBracketsInCdataTerminator=xy;function Sy(t){return t.replace(/'/g,"&apos;")}Re.escapeSingleQuotes=Sy;function Ey(t){return t.replace(/"/g,"&quot;")}Re.escapeDoubleQuotes=Ey});var Cs=y(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});var Cy=oe(),ud=En(),Ss=K(),Py=function(){function t(e,r,n){this._validation=r,(0,Ss.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,Ss.fixChar)(e);else if(this._validation&&!(0,Ss.validateChar)(e))throw new Error((0,Cy.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,ud.escapeAmpersands)(e),e=(0,ud.escapeLeftAngleBrackets)(e),e},t.prototype.up=function(){return this._parent},t}();Es.default=Py});var Cn=y(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});var cd=oe(),ld=K(),Dy=function(){function t(e,r,n){this._hex=!1,this._validation=r,this._parent=e,this.char=n.char,(0,ld.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,ld.validateSingleChar)(e))throw new Error((0,cd.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,cd.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=Dy});var Pn=y(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});var Oy=oe(),Iy=K(),Fy=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,Iy.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=Fy});var Dn=y(lr=>{"use strict";var Fs=lr&&lr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(lr,"__esModule",{value:!0});var Os=oe(),fd=En(),Ay=Tt(),Is=K(),Ry=Fs(Cs()),ky=Fs(Cn()),My=Fs(Pn()),qy=function(){function t(e,r,n){this._validation=r,(0,Is.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,Is.fixName)(e),e.length===0)throw new Error((0,Os.getContext)(this.up())+": attribute name should not be empty")}else if(this._validation&&!(0,Is.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 ky.default(this,this._validation,e);return this._children.push(r),r},t.prototype.entityRef=function(e){var r=new My.default(this,this._validation,e);return this._children.push(r),r},t.prototype.text=function(e){var r=new Ry.default(this,this._validation,e);return this._children.push(r),r},t.prototype.toString=function(e){e===void 0&&(e={});for(var r=new Ay.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,fd.escapeDoubleQuotes)(a.toString()):i+=(0,fd.escapeSingleQuotes)(a.toString())}return i+=n,i},t.prototype.up=function(){return this._parent},t}();lr.default=qy});var Rs=y(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});var Ty=oe(),Ny=K(),jy=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,Ny.validateChar)(e))throw new Error((0,Ty.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}();As.default=jy});var Ms=y(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});var Ly=oe(),$y=K(),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,$y.validateChar)(e))throw new Error((0,Ly.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 Ts=y(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});var Uy=oe(),Xy=K(),Hy=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,Xy.validateChar)(e))throw new Error((0,Uy.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}();qs.default=Hy});var js=y(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});var Gy=oe(),zy=K(),Wy=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,zy.validateChar)(e))throw new Error((0,Gy.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=Wy});var $s=y(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});var Jy=oe(),Vy=K(),Yy=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,Vy.validateName)(e))throw new Error((0,Jy.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}();Ls.default=Yy});var fr=y(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});var On=oe(),In=K(),Ky=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,In.isUndefined)(e)){if(this._validation&&!(0,In.validateChar)(e))throw new Error((0,On.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,On.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,In.validateName)(e))throw new Error((0,On.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,On.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,In.isUndefined)(this._content)?"<?"+this._target+"?>":"<?"+this._target+" "+this._content+"?>"},t.prototype.up=function(){return this._parent},t}();Bs.default=Ky});var Fn=y(ut=>{"use strict";var ct=ut&&ut.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ut,"__esModule",{value:!0});ut.validatePubId=void 0;var Qe=oe(),Qy=Tt(),Le=K(),Zy=ct(dr()),e1=ct(Rs()),t1=ct(Ms()),r1=ct(Ts()),n1=ct(js()),i1=ct($s()),s1=ct(fr()),o1=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,Le.isUndefined)(n.sysId)||(this.sysId=n.sysId),(0,Le.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,Le.validateName)(e))throw new Error((0,Qe.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,Le.isUndefined)(e)){if(this._validation&&!dd(e))throw new Error((0,Qe.getContext)(this.up())+": DTD public"+(' identifier "'+e+'" should not contain')+" characters not allowed in public identifiers");if(this._validation&&(0,Le.isUndefined)(this._sysId))throw new Error((0,Qe.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,Le.isUndefined)(e)){if(this._validation&&!(0,Le.validateChar)(e))throw new Error((0,Qe.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,Qe.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 e1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.comment=function(e){var r=new Zy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.element=function(e){var r=new t1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.entity=function(e){var r=new r1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.notation=function(e){var r=new n1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.paramEntityRef=function(e){var r=new i1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.procInst=function(e){var r=new s1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.toString=function(e){e===void 0&&(e={});var r=new Qy.StringOptions(e),n="<!DOCTYPE "+this._name;if((0,Le.isUndefined)(this._pubId))(0,Le.isUndefined)(this._sysId)||(n+=" ",n=this.appendId("SYSTEM",this._sysId,n,r));else{if((0,Le.isUndefined)(this._sysId))throw new Error((0,Qe.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,Qe.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,Qe.getContext)(this)+": doubleQuotes option inconsistent with DTD system identifier or public identifier");n+="'"+r+"'"}return n},t}();ut.default=o1;function dd(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}ut.validatePubId=dd});var Hs=y(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});var hd=oe(),Us=K(),a1=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,hd.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,hd.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=a1});var Js=y(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});var u1=oe(),Gs=En(),zs=K(),c1=function(){function t(e,r,n){this._validation=r,(0,zs.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,zs.fixChar)(e);else if(this._validation&&!(0,zs.validateChar)(e))throw new Error((0,u1.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,Gs.escapeAmpersands)(e),e=(0,Gs.escapeLeftAngleBrackets)(e),e=(0,Gs.escapeRightAngleBracketsInCdataTerminator)(e),e},t.prototype.up=function(){return this._parent},t}();Ws.default=c1});var Mn=y(mr=>{"use strict";var lt=mr&&mr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(mr,"__esModule",{value:!0});var An=oe(),l1=Tt(),hr=K(),pd=lt(Dn()),f1=lt(Hs()),pr=lt(Js()),Rn=lt(Cn()),d1=lt(dr()),kn=lt(Pn()),h1=lt(fr()),p1=function(){function t(e,r,n){this._validation=r,(0,hr.isUndefined)(n.replaceInvalidCharsInName)?this._replaceInvalidCharsInName=!1:this._replaceInvalidCharsInName=n.replaceInvalidCharsInName,(0,hr.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,hr.fixName)(e),e.length===0)throw new Error((0,An.getContext)(this.up())+": element name should not be empty")}else if(this._validation&&!(0,hr.validateName)(e))throw e.length===0?new Error((0,An.getContext)(this.up())+": element name should not be empty"):new Error((0,An.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,An.getContext)(this.up())+': element "'+this.name+'" already contains an attribute with the'+(' name "'+e.name+'"'));var r=new pd.default(this,this._validation,e);return this._children.push(r),this._attributeNames.push(e.name),r},t.prototype.cdata=function(e){var r=new f1.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 Rn.default(this,this._validation,e);return this._children.push(r),r},t.prototype.comment=function(e){var r=new d1.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 kn.default(this,this._validation,e);return this._children.push(r),r},t.prototype.procInst=function(e){var r=new h1.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 l1.StringOptions(e),i=r+n.indent,s="<"+this._name,o=[],a=0,u=this._children;a<u.length;a++){var h=u[a];h instanceof pd.default?s+=" "+h.toString(e):o.push(h)}if(o.length>0){for(var c="",p=0;p<o.length;p++){var g=o[p],m="";g instanceof t?m+=g.toStringWithIndent(n,i):m+=g.toString();var b=p>0?o[p-1]:void 0;g instanceof pr.default&&g.toString()===""||(n.pretty&&(this.allSameLineNodes(o)||p>0&&this.onSameLine(g,b)||(m=n.newline+i+m)),c+=m)}n.pretty&&(this.allSameLineNodes(o)||(c+=n.newline+r)),c.length===0&&this._useSelfClosingTagIfEmpty?s+="/>":s+=">"+c+"</"+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 Rn.default||i instanceof kn.default||i instanceof pr.default))return!1}return!0},t.prototype.onSameLine=function(e,r){return(e instanceof Rn.default||e instanceof kn.default||e instanceof pr.default)&&!(0,hr.isUndefined)(r)&&(r instanceof Rn.default||r instanceof kn.default||r instanceof pr.default)},t}();mr.default=p1});var oe=y(Nt=>{"use strict";var Tn=Nt&&Nt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Nt,"__esModule",{value:!0});Nt.getContext=void 0;var m1=Tn(Dn()),g1=Tn(Nn()),y1=Tn(Fn()),v1=Tn(Mn());function qn(t){if(t instanceof m1.default)return qn(t.up())+(' > attribute "'+t.name+'"');if(t instanceof g1.default)return"in XML document";if(t instanceof y1.default)return qn(t.up())+" > DTD";if(t instanceof v1.default)return qn(t.up())+(' > element "'+t.name+'"');throw new Error("Unrecognized object of type "+Object.prototype.toString.call(t))}Nt.getContext=qn});var dr=y(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});var Vs=oe(),Ys=K(),b1=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=b1});var eo=y(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});var Qs=oe(),w1=Tt(),gr=K(),_1=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,gr.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,gr.isUndefined)(e)&&!x1(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,gr.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&&!S1(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 w1.StringOptions(e),n=r.doubleQuotes?'"':"'",i="<?xml version="+n+this._version+n;return(0,gr.isUndefined)(this._encoding)||(i+=" encoding="+n+this._encoding+n),(0,gr.isUndefined)(this._standalone)||(i+=" standalone="+n+this._standalone+n),i+="?>",i},t.prototype.up=function(){return this._parent},t}();Zs.default=_1;function x1(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 S1(t){for(var e=0;e<=9;e++)if(t==="1."+e)return!0;return!1}});var Nn=y(vr=>{"use strict";var br=vr&&vr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(vr,"__esModule",{value:!0});var E1=Tt(),C1=K(),P1=br(dr()),md=br(eo()),gd=br(Fn()),yr=br(Mn()),D1=br(fr()),O1=function(){function t(e){this._children=[],this._validation=(0,C1.isUndefined)(e.validation)?!0:e.validation}return t.prototype.comment=function(e){var r=new P1.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 md.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 yr.default});if(this._validation&&r.length!==0)throw new Error("in XML document: DTD must precede the root element");var n=new gd.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 yr.default});if(this._validation&&r.length!==0)throw new Error("in XML document: only one root element is permitted");var n=new yr.default(this,this._validation,e);return this._children.push(n),n},t.prototype.procInst=function(e){var r=new D1.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(h){return h instanceof yr.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 E1.StringOptions(e),i="",s=0,o=this._children;s<o.length;s++){var a=o[s];a instanceof md.default||a instanceof gd.default||a instanceof yr.default?i+=a.toString(e):i+=a.toString(),n.pretty&&(i+=n.newline)}var u=i.length-n.newline.length;return i.substr(u)===n.newline&&(i=i.substr(0,u)),i},t}();vr.default=O1});var yd=y(R=>{"use strict";var ee=R&&R.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(R,"__esModule",{value:!0});R.document=R.XmlProcInst=R.XmlEntityRef=R.XmlElement=R.XmlDtdParamEntityRef=R.XmlDtdNotation=R.XmlDtdEntity=R.XmlDtdElement=R.XmlDtdAttlist=R.XmlDtd=R.XmlDocument=R.XmlDecl=R.XmlComment=R.XmlCharRef=R.XmlCharData=R.XmlCdata=R.XmlAttributeText=R.XmlAttribute=void 0;var I1=ee(Nn()),F1=Dn();Object.defineProperty(R,"XmlAttribute",{enumerable:!0,get:function(){return ee(F1).default}});var A1=Cs();Object.defineProperty(R,"XmlAttributeText",{enumerable:!0,get:function(){return ee(A1).default}});var R1=Hs();Object.defineProperty(R,"XmlCdata",{enumerable:!0,get:function(){return ee(R1).default}});var k1=Js();Object.defineProperty(R,"XmlCharData",{enumerable:!0,get:function(){return ee(k1).default}});var M1=Cn();Object.defineProperty(R,"XmlCharRef",{enumerable:!0,get:function(){return ee(M1).default}});var q1=dr();Object.defineProperty(R,"XmlComment",{enumerable:!0,get:function(){return ee(q1).default}});var T1=eo();Object.defineProperty(R,"XmlDecl",{enumerable:!0,get:function(){return ee(T1).default}});var N1=Nn();Object.defineProperty(R,"XmlDocument",{enumerable:!0,get:function(){return ee(N1).default}});var j1=Fn();Object.defineProperty(R,"XmlDtd",{enumerable:!0,get:function(){return ee(j1).default}});var L1=Rs();Object.defineProperty(R,"XmlDtdAttlist",{enumerable:!0,get:function(){return ee(L1).default}});var $1=Ms();Object.defineProperty(R,"XmlDtdElement",{enumerable:!0,get:function(){return ee($1).default}});var B1=Ts();Object.defineProperty(R,"XmlDtdEntity",{enumerable:!0,get:function(){return ee(B1).default}});var U1=js();Object.defineProperty(R,"XmlDtdNotation",{enumerable:!0,get:function(){return ee(U1).default}});var X1=$s();Object.defineProperty(R,"XmlDtdParamEntityRef",{enumerable:!0,get:function(){return ee(X1).default}});var H1=Mn();Object.defineProperty(R,"XmlElement",{enumerable:!0,get:function(){return ee(H1).default}});var G1=Pn();Object.defineProperty(R,"XmlEntityRef",{enumerable:!0,get:function(){return ee(G1).default}});var z1=fr();Object.defineProperty(R,"XmlProcInst",{enumerable:!0,get:function(){return ee(z1).default}});function W1(t){return t===void 0&&(t={}),new I1.default(t)}R.document=W1});var to=y(te=>{"use strict";Object.defineProperty(te,"__esModule",{value:!0});te.stringify=te.isMap=te.isSet=te.isFunction=te.isArray=te.isObject=te.isNull=te.isUndefined=void 0;function vd(t){return Object.prototype.toString.call(t)==="[object Undefined]"}te.isUndefined=vd;function bd(t){return Object.prototype.toString.call(t)==="[object Null]"}te.isNull=bd;function J1(t){return Object.prototype.toString.call(t)==="[object Object]"}te.isObject=J1;function V1(t){return Object.prototype.toString.call(t)==="[object Array]"}te.isArray=V1;function wd(t){return Object.prototype.toString.call(t)==="[object Function]"}te.isFunction=wd;function Y1(t){return Object.prototype.toString.call(t)==="[object Set]"}te.isSet=Y1;function K1(t){return Object.prototype.toString.call(t)==="[object Map]"}te.isMap=K1;function Q1(t){return!vd(t)&&!bd(t)&&wd(t?.toString)&&(t=t.toString()),String(t)}te.stringify=Q1});var Pd=y(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.WrapHandlers=Se.TypeHandlers=Se.FormatOptions=Se.DtdOptions=Se.DeclarationOptions=Se.Options=void 0;var je=to(),Z1=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,je.isUndefined)(e.validation)||(this.validation=e.validation),(0,je.isUndefined)(e.aliasString)||(this.aliasString=e.aliasString),(0,je.isUndefined)(e.attributeString)||(this.attributeString=e.attributeString),(0,je.isUndefined)(e.cdataInvalidChars)||(this.cdataInvalidChars=e.cdataInvalidChars),(0,je.isUndefined)(e.cdataKeys)||(this.cdataKeys=e.cdataKeys),this.declaration=new _d(e.declaration),this.dtd=new xd(this.validation,e.dtd),this.format=new Sd(e.format),(0,je.isUndefined)(e.replaceInvalidChars)||(this.replaceInvalidChars=e.replaceInvalidChars),this.typeHandlers=new Ed(e.typeHandlers),(0,je.isUndefined)(e.useSelfClosingTagIfEmpty)||(this.useSelfClosingTagIfEmpty=e.useSelfClosingTagIfEmpty),(0,je.isUndefined)(e.valueString)||(this.valueString=e.valueString),this.wrapHandlers=new Cd(e.wrapHandlers)}return t}();Se.Options=Z1;var _d=function(){function t(e){e===void 0&&(e={}),this.include=!0,(0,je.isUndefined)(e.include)||(this.include=e.include),this.encoding=e.encoding,this.standalone=e.standalone,this.version=e.version}return t}();Se.DeclarationOptions=_d;var xd=function(){function t(e,r){if(r===void 0&&(r={}),this.include=!1,(0,je.isUndefined)(r.include)||(this.include=r.include),e&&(0,je.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}();Se.DtdOptions=xd;var Sd=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}();Se.FormatOptions=Sd;var Ed=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}();Se.TypeHandlers=Ed;var Cd=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}();Se.WrapHandlers=Cd});var Rd=y(Ze=>{"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});Ze.parse=Ze.parseToExistingElement=Ze.Absent=void 0;var Od=yd(),Id=Pd(),J=to(),ro=function(){function t(){}return Object.defineProperty(t,"instance",{get:function(){return t._instance},enumerable:!1,configurable:!0}),t._instance=new t,t}();Ze.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 Fd(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 Od.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 ev(t,e,r,n){var i=r.attribute({name:t,replaceInvalidCharsInName:n.replaceInvalidChars});Fd((0,J.stringify)(e),i,n)}function Dd(t,e,r,n){if(t===n.aliasString){r.name=(0,J.stringify)(e);return}if(t.indexOf(n.attributeString)===0&&(0,J.isObject)(e)){for(var i=0,s=Object.keys(e);i<s.length;i++){var o=s[i];ev(o,(0,J.stringify)(e[o]),r,n)}return}if(t.indexOf(n.valueString)===0){jn(t,(0,J.stringify)(e),r,n);return}var a=r;if(!(0,J.isArray)(e)&&!(0,J.isSet)(e)){var u=no(e,n);if(!(0,J.isUndefined)(u)&&u(e)===ro.instance)return;a=r.element({name:t,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty})}jn(t,e,a,n)}function tv(t,e,r){if((0,J.isMap)(t))t.forEach(function(o,a){Dd((0,J.stringify)(a),o,e,r)});else for(var n=0,i=Object.keys(t);n<i.length;n++){var s=i[n];Dd(s,t[s],e,r)}}function rv(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,J.isUndefined)(i)){var a=i(s,e);(0,J.isNull)(a)||(s=a,o=r.element({name:t,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty}))}e.forEach(function(u){var h=o;if(!(0,J.isArray)(u)&&!(0,J.isSet)(u)){var c=no(u,n);if(!(0,J.isUndefined)(c)&&c(u)===ro.instance)return;h=o.element({name:s,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty})}jn(s,u,h,n)})}function jn(t,e,r,n){var i=no(e,n);if((0,J.isUndefined)(i)||(e=i(e)),(0,J.isObject)(e)||(0,J.isMap)(e)){tv(e,r,n);return}if((0,J.isArray)(e)||(0,J.isSet)(e)){rv(t,e,r,n);return}Fd((0,J.stringify)(e),r,n)}function Ad(t,e,r){var n=new Id.Options(r);jn(t.name,e,t,n)}Ze.parseToExistingElement=Ad;function nv(t,e,r){var n=new Id.Options(r),i=new Od.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 Ad(s,e,r),i.toString(n.format)}Ze.parse=nv});var du=z(mi()),hu=z(Xr()),_i=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,du.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(hu.default.red(`
23
23
  \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
24
24
  \u2502 Access credentials failure \u2502
25
25
  \u2502 Check that the login details are correct in your .env file \u2502
26
26
  \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
27
- `)),process.exit(1)}}},wt=new wi;var Xf=z(mi()),Hf=z(Xr()),Gf=z(xt());var Sl=z(require("node:crypto")),at=z(require("node:fs")),Bi=z(require("node:path")),Ui=z(nr()),un=Bi.default.resolve(__dirname,"./../apiCache"),El=`${un}/siteHash.json`;function Cl(){at.default.existsSync(un)||at.default.mkdirSync(un),console.info("Cache initialized")}function Pl(t){let e=Sl.default.createHash("sha256");return e.update(JSON.stringify(t)),`${un}/${e.digest("hex")}`}function Ol(t,e){let r=typeof e=="string"?e:JSON.stringify(e),n=Pl(t),i=Bi.default.dirname(n);at.default.existsSync(i)||at.default.mkdirSync(i,{recursive:!0}),at.default.writeFileSync(n,r,"utf8")}function Dl(t){try{let e=Pl(t);return Ui.default.readJSONSync(e,{encoding:"utf-8"})}catch{return null}}function lg(){try{return Ui.default.readJSONSync(El,{encoding:"utf-8"})||{}}catch{return{}}}function Il(t,e){let r=lg(),n=r[t],i=e||n||new Date().valueOf();return i!==n&&(r[t]=i,at.default.writeFileSync(El,JSON.stringify(r),{encoding:"utf-8"})),i.toString()}var Jg=z(Xr()),jf=z(xt()),Be=z(nr()),Vg=z(yf()),ls=z(Tf());var Nf="10.4.1";jf.default.config();var d2=!!process.env.GRIDDO_DEBUG_LOGS&&!!JSON.parse(process.env.GRIDDO_DEBUG_LOGS),Kg=!!process.env.GRIDDO_BUILD_LOGS&&!!JSON.parse(process.env.GRIDDO_BUILD_LOGS)||!!process.env.LOGS&&!!JSON.parse(process.env.LOGS),h2=ls.default.sync(__dirname),p2=ls.default.sync();function Lf(t){let e=[];return Be.default.readdirSync(t).forEach(n=>{let i=`${t}/${n}`;e.push(i)}),e}function ur(t,e="",r=1,n=1){let i=t.split(`
27
+ `)),process.exit(1)}}},_t=new _i;var Xf=z(mi()),Hf=z(Xr()),Gf=z(xt());var Sl=z(require("node:crypto")),at=z(require("node:fs")),Bi=z(require("node:path")),Ui=z(nr()),un=Bi.default.resolve(__dirname,"./../apiCache"),El=`${un}/siteHash.json`;function Cl(){at.default.existsSync(un)||at.default.mkdirSync(un),console.info("Cache initialized")}function Pl(t){let e=Sl.default.createHash("sha256");return e.update(JSON.stringify(t)),`${un}/${e.digest("hex")}`}function Dl(t,e){let r=typeof e=="string"?e:JSON.stringify(e),n=Pl(t),i=Bi.default.dirname(n);at.default.existsSync(i)||at.default.mkdirSync(i,{recursive:!0}),at.default.writeFileSync(n,r,"utf8")}function Ol(t){try{let e=Pl(t);return Ui.default.readJSONSync(e,{encoding:"utf-8"})}catch{return null}}function lg(){try{return Ui.default.readJSONSync(El,{encoding:"utf-8"})||{}}catch{return{}}}function Il(t,e){let r=lg(),n=r[t],i=e||n||new Date().valueOf();return i!==n&&(r[t]=i,at.default.writeFileSync(El,JSON.stringify(r),{encoding:"utf-8"})),i.toString()}var Jg=z(Xr()),jf=z(xt()),Be=z(nr()),Vg=z(yf()),ls=z(Tf());var Nf="10.4.3";jf.default.config();var d2=!!process.env.GRIDDO_DEBUG_LOGS&&!!JSON.parse(process.env.GRIDDO_DEBUG_LOGS),Yg=!!process.env.GRIDDO_BUILD_LOGS&&!!JSON.parse(process.env.GRIDDO_BUILD_LOGS)||!!process.env.LOGS&&!!JSON.parse(process.env.LOGS),h2=ls.default.sync(__dirname),p2=ls.default.sync();function Lf(t){let e=[];return Be.default.readdirSync(t).forEach(n=>{let i=`${t}/${n}`;e.push(i)}),e}function ur(t,e="",r=1,n=1){let i=t.split(`
28
28
  `).map(b=>b.trim()),s=e?` ${e} `:"",o=e?s.length:0,a=Math.max(...i.map(b=>b.length))+r*2,u=Math.max(a,o),h=`\u2502${" ".repeat(u)}\u2502
29
29
  `.repeat(n),c=u,p=`\u256D${s}${"\u2500".repeat(c-o)}\u256E
30
30
  `,g=`\u2570${"\u2500".repeat(c)}\u256F`,m=i.map(b=>{let x=" ".repeat(u-b.length-r);return`\u2502${" ".repeat(r)}${b}${x}\u2502
31
- `}).join("");console.log(`${p}${h}${m}${h}${g}`)}function qt(t){Kg&&console.info(t.replace(/(\s)\s+/g,"$1"))}function $f(t){return new Promise(e=>setTimeout(e,t))}function fs(t,e=3){return(t/1e3).toFixed(e)}function ds(t){return"site"in t&&t.site?t?.site:void 0}function hs(t,e){for(let r in t)e.includes(r)?delete t[r]:typeof t[r]=="object"&&hs(t[r],e)}function ps(t){return t.map(({name:e,id:r})=>`${e} (${r})`).join(", ")}function Bf(t){let e=Be.default.readdirSync(t),r={},n=e.filter(s=>{let o=`${t}/${s}`,a=Be.default.readJSONSync(o,"utf-8"),{id:u,entity:h,fullUrl:c}=a;return!!(u&&h&&c)});for(let s of n){let o=`${t}/${s}`,a=Be.default.readJSONSync(o,"utf-8"),u=Be.default.statSync(o).mtimeMs,{id:h}=a;(!r[h]||u>Be.default.statSync(`${t}/${r[h]}`).mtimeMs)&&(r[h]=s)}let i=0;for(let s of n){let o=`${t}/${s}`,a=Be.default.readJSONSync(o,"utf-8"),{id:u}=a;s!==r[u]&&(Be.default.unlinkSync(o),i++)}console.log(`Sanitize apiCache folder for ${i} files`)}Gf.default.config();var{env:{RETRY_WAIT_SECONDS:Yg="4",RETRY_ATTEMPTS:Uf="4"}}=process;async function ms(t,e,r=""){let{endpoint:n,body:i,cacheKey:s="",attempt:o=1,headers:a}=t,u={endpoint:n,body:i,headers:a,cacheKey:s};if(s){let h=new Date,c=Dl(u);if(c){let p=ds(c),g=p?`site: ${p}`:"",m=fs(new Date().getTime()-h.getTime());return qt(`${e} (cache) ${g} ${n} - ${m}s ${r}`),c}}try{let h=new Date,{data:c}=await(0,Xf.default)({url:n,method:e,headers:Object.assign({},a,wt.headers),data:i}),p=ds(c),g=p?`site: ${p}`:"",m=fs(new Date().getTime()-h.getTime());return qt(`${e} (fetch) ${g} ${n} - ${m}s ${r}`),Ol(u,c),c}catch(h){let c=h;return c.response?.status===404?null:(o>parseInt(Uf)&&(console.log(`
31
+ `}).join("");console.log(`${p}${h}${m}${h}${g}`)}function qt(t){Yg&&console.info(t.replace(/(\s)\s+/g,"$1"))}function $f(t){return new Promise(e=>setTimeout(e,t))}function fs(t,e=3){return(t/1e3).toFixed(e)}function ds(t){return"site"in t&&t.site?t?.site:void 0}function hs(t,e){for(let r in t)e.includes(r)?delete t[r]:typeof t[r]=="object"&&hs(t[r],e)}function ps(t){return t.map(({name:e,id:r})=>`${e} (${r})`).join(", ")}function Bf(t){let e=Be.default.readdirSync(t),r={},n=e.filter(s=>{let o=`${t}/${s}`,a=Be.default.readJSONSync(o,"utf-8"),{id:u,entity:h,fullUrl:c}=a;return!!(u&&h&&c)});for(let s of n){let o=`${t}/${s}`,a=Be.default.readJSONSync(o,"utf-8"),u=Be.default.statSync(o).mtimeMs,{id:h}=a;(!r[h]||u>Be.default.statSync(`${t}/${r[h]}`).mtimeMs)&&(r[h]=s)}let i=0;for(let s of n){let o=`${t}/${s}`,a=Be.default.readJSONSync(o,"utf-8"),{id:u}=a;s!==r[u]&&(Be.default.unlinkSync(o),i++)}console.log(`Sanitize apiCache dir for ${i} files`)}Gf.default.config();var{env:{RETRY_WAIT_SECONDS:Kg="4",RETRY_ATTEMPTS:Uf="4"}}=process;async function ms(t,e,r=""){let{endpoint:n,body:i,cacheKey:s="",attempt:o=1,headers:a}=t,u={endpoint:n,body:i,headers:a,cacheKey:s};if(s){let h=new Date,c=Ol(u);if(c){let p=ds(c),g=p?`site: ${p}`:"",m=fs(new Date().getTime()-h.getTime());return qt(`${e} (cache) ${g} ${n} - ${m}s ${r}`),c}}try{let h=new Date,{data:c}=await(0,Xf.default)({url:n,method:e,headers:Object.assign({},a,_t.headers),data:i}),p=ds(c),g=p?`site: ${p}`:"",m=fs(new Date().getTime()-h.getTime());return qt(`${e} (fetch) ${g} ${n} - ${m}s ${r}`),Dl(u,c),c}catch(h){let c=h;return c.response?.status===404?null:(o>parseInt(Uf)&&(console.log(`
32
32
  Max attempts ${Uf} reached
33
33
  --------------------------------------
34
34
  - ${e.toUpperCase()} ${n}
@@ -36,7 +36,7 @@ Max attempts ${Uf} reached
36
36
  - HEADERS: ${JSON.stringify(a)}
37
37
  - RESPONSE: ${c.response?.status,JSON.stringify(c.response?.data)}
38
38
  --------------------------------------
39
- `),process.exit(1)),c.response||(console.log("Unknown error occurred"),console.log(JSON.stringify(c,null,2)),process.exit(1)),Qg(c,{callInfo:{endpoint:n,body:i}}),console.warn(`Waiting for retry: ${e}`,n),await $f(parseInt(Yg)*1e3),ms({endpoint:n,body:i,headers:a,cacheKey:s,attempt:o+1},e,r))}}async function Ae(t){return await ms(t,"get")}async function cr(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 ms(t,"post",i||"")}function Qg(t,e){let{response:r,message:n,stack:i}=t,{callInfo:s}=e,{status:o,statusText:a,data:u}=r||{},h=[];for(let m of Object.keys(s))h.push(`${m}: ${typeof s[m]=="object"?JSON.stringify(s[m]):s[m]}`);let c=h.join(`
39
+ `),process.exit(1)),c.response||(console.log("Unknown error occurred"),console.log(JSON.stringify(c,null,2)),process.exit(1)),Qg(c,{callInfo:{endpoint:n,body:i}}),console.warn(`Waiting for retry: ${e}`,n),await $f(parseInt(Kg)*1e3),ms({endpoint:n,body:i,headers:a,cacheKey:s,attempt:o+1},e,r))}}async function Ae(t){return await ms(t,"get")}async function cr(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 ms(t,"post",i||"")}function Qg(t,e){let{response:r,message:n,stack:i}=t,{callInfo:s}=e,{status:o,statusText:a,data:u}=r||{},h=[];for(let m of Object.keys(s))h.push(`${m}: ${typeof s[m]=="object"?JSON.stringify(s[m]):s[m]}`);let c=h.join(`
40
40
  `),p=r?`Code: ${o} - ${a}
41
41
  Response: ${JSON.stringify(u)}`:"",g=`${n}
42
42
  ${i}`;console.warn(Hf.default.bold.red(`
@@ -52,9 +52,9 @@ ${p}
52
52
  ${g}
53
53
 
54
54
  =============
55
- `))}var Zg=process.env.API_URL,ey={GET_ALL:`${Zg}/domains`},bn=class{static async getAll(){let{GET_ALL:e}=ey;return await Ae({endpoint:e})}};async function zf(){await wt.login();let t=await bn.getAll();return ty(t)}function ty(t){let e=t.filter(({slug:r})=>!!r).map(({slug:r})=>r.replace("/",""));return[...new Set(e)]}var so=z(require("node:path"));var Ke=z(require("node:fs")),Wf=z(require("node:fs/promises")),Pe=z(require("node:path")),gs=z(nr());async function*ry(t){let e=Pe.default.resolve(t),r=Lf(e).filter(n=>Pe.default.extname(n)===".json");for(let n of r)try{let i=await Wf.default.stat(n),s=await gs.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)}}function Jf(t){Ke.default.existsSync(t)||(Ke.default.mkdirSync(t),Ke.default.mkdirSync(Pe.default.resolve(t,"metadata"))),console.info("Store initialized")}function Vf(t,e){Ke.default.writeFileSync(Pe.default.resolve(t,"metadata","render-info.json"),JSON.stringify(e))}function ny(t,e){return iy(t).filter(i=>e.includes(i))}function iy(t){return Ke.default.readdirSync(t).filter(r=>{let n=`${t}/${r}`,i=Ke.default.statSync(n);if(i&&i.isDirectory()||Pe.default.extname(r)!==".json")return!1;let s=Pe.default.basename(r,Pe.default.extname(r));return!isNaN(parseInt(s))}).map(r=>{let n=Pe.default.basename(r,Pe.default.extname(r));return parseInt(n)})}function Kf(t,e){e.forEach(r=>{hs(r,["editorID","parentEditorID"]);let n=`${r.context.page.id}.json`,i=Pe.default.resolve(t,n);gs.default.writeJSONSync(i,r)})}function Yf(t,e){e.length!==0&&e.forEach(r=>{let n=Pe.default.resolve(t,`${r}.json`);try{Ke.default.unlinkSync(n)}catch(i){console.log(`Error removing file ${r}`,i.message)}})}async function Qf(t,e){let{changedPages:r,pages:n,validPagesIds:i,sitesToPublish:s}=e,o=ny(t,n),a=i.filter(m=>!o.includes(m)),u=a.concat(r),h=o.filter(m=>!i.includes(m)),c=Array.from(new Set(u)).filter(m=>!h.includes(m)),p=ry(Pe.default.resolve(__dirname,"../store")),g=[];for await(let m of p){let b=m.context.page.site,x=m.context.page.id;s.map(S=>S.id).includes(b)||g.push(x)}return{pagesInStore:o,pagesMissingInStore:a,pagesToDeleteFromStore:[...h,...g],pagesToWriteToStore:c}}var Ld=z(xt()),$d=z(ss());var Zf=z(xt());Zf.default.config();var ys=process.env.API_URL,Ye=`${ys}/site/`,Ue={GET_ALL:`${ys}/sites/all`,GET_PAGE:[`${ys}/page/`,""],INFO:[`${Ye}`,"/all"],LANGUAGES:[`${Ye}`,"/languages"],BUILD_START:[`${Ye}`,"/build/start"],BUILD_END:[`${Ye}`,"/build/end"],GET_DISTRIBUTOR_DATA:[`${Ye}`,"/distributor"],GET_SITEMAP:[`${Ye}`,"/sitemap"],SOCIALS:[`${Ye}`,"/socials"],GET_PAGES:[`${Ye}`,"/pages?pagination=false"]},ge=class{static async getAll(){let{GET_ALL:e}=Ue;return await Ae({endpoint:e})}static async getPage(e,r){let{GET_PAGE:[n,i]}=Ue;return await Ae({endpoint:`${n}${e}${i}`,cacheKey:r})}static async getInfo(e,r=""){let{INFO:[n,i]}=Ue;return await Ae({endpoint:`${n}${e}${i}`,cacheKey:r})}static async getLanguages(e,r=""){let{LANGUAGES:[n,i]}=Ue;return await Ae({endpoint:`${n}${e}${i}`,cacheKey:r})}static async startSiteRender(e){let{BUILD_START:[r,n]}=Ue;return await Ae({endpoint:`${r}${e}${n}`})}static async endSiteRender(e,r){let{BUILD_END:[n,i]}=Ue;return await cr({endpoint:`${n}${e}${i}`,body:r})}static async getDistributorData(e,r,n,i,s){let{GET_DISTRIBUTOR_DATA:[o,a]}=Ue,u=i||e.site,h=s||e.language;return await cr({endpoint:`${o}${u}${a}`,body:r,headers:{lang:h},cacheKey:n})}static async getSitemap(e){let{GET_SITEMAP:[r,n]}=Ue;return await Ae({endpoint:`${r}${e}${n}`})}static async getSocials(e,r=""){let{SOCIALS:[n,i]}=Ue;return await Ae({endpoint:`${n}${e}${i}`,cacheKey:r})}};var _n=class{static getBody(e,r){let{order:n,sources:i,quantity:s,mode:o,fixed:a,fullRelations:u=!1,allLanguages:h=!1,preferenceLanguage:c=!1,referenceId:p}=e;return o==="auto"?{mode:o,order:n,sources:i,quantity:s,fullRelations:u,allLanguages:h,preferenceLanguage:c}:o==="manual"?{mode:o,fixed:a,fullRelations:u}:o==="navigation"?{mode:o,order:n,quantity:s,fullRelations:u,referenceId:p||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 ur(`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 ur(`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,u=1)=>{if(!(!a||typeof a!="object")&&JSON.stringify(a).includes('"hasDistributorData":true'))for(let h in a){if(h==="queriedItems")continue;let p=a[h];!p||typeof p!="object"||(p.hasDistributorData&&(p.queriedItems=await this.fetchContentTypeData({page:e,cacheKey:r,component:p})),await i(p,u+1))}};return await(async a=>(await i([a]),a))(n)}catch(n){console.error(`Error en get distributor ${n}`),process.exit(1)}}};var wn=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:u}}=e,h=b=>{let x=b.find(S=>typeof S=="number");return typeof x=="number"?x:null},c=h([r,u?.[s]?.defaultHeader,o]),p=h([n,u?.[s]?.defaultFooter,a]),g=c?this.getPageHeader(c,i):c===0?null:this._defaultHeaders[i],m=p?this.getPageFooter(p,i):p===0?null:this._defaultFooters[i];return{header:g,footer:m}}};var vs=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 Ae({endpoint:e});this.settings=r}async resetRender(){let{resetRender:e}=this.ENDPOINTS;await cr({endpoint:e})}},bs=new vs;var rd=z(xt());function _s(t,e,r,n="jpg"){let i=typeof t=="string"?t:t?.url;return i?i.split("/")[2].includes("cloudinary.com")?oy(i,`c_fill,w_${e},h_${r}`):sy(i,`f/${n}/w/${e}/h/${r}`):null}function sy(t,e){let r=t.split("/"),n=r.slice(0,-1).join("/"),i=r.slice(-1)[0];return`${n}/${e}/${i}`}function oy(t,e){let r=t.replace("https://",""),n=r.split("/").slice(0,4).join("/"),i=r.replace(n,"");return`https://${n}/${e}${i}`}rd.default.config();var ay=JSON.parse(process.env.GRIDDO_EXPORT_STRIP_DOMAIN_FROM_PATH||"false"),uy=25;function cy({socialTitle:t,socialDescription:e,socialImage:r}){return{type:"website",title:t,description:e,image:r?_s(r,1280,768):"",twitterImage:r?_s(r,1280,768):""}}function ly(t){let{title:e,metaTitle:r,metaDescription:n,canonicalURL:i,locale:s,url:o,isIndexed:a,follow:u,metasAdvanced:h,pageLanguages:c,fullUrl:p,metaKeywords:g}=t,m=h?.split(",").filter(Boolean).map(b=>b.trim().toLowerCase())||[];return{title:(r||e||"").trim(),description:n,canonical:i&&i.trim()&&i!==p?i.trim():a?p:void 0,locale:s,url:o,index:a?"index":"noindex",follow:u?"follow":"nofollow",translate:m.includes("notranslate")?"notranslate":"",metasAdvanced:m.filter(b=>b!=="notranslate").join(),pageLanguages:c,metaKeywords:g?.filter(Boolean).map(b=>b.replace(/"/g,"'")).join(", ")}}async function xs(t,e){let{id:r,title:n,fullPath:i,language:s,breadcrumb:o,socialDescription:a,socialImage:u,socialTitle:h}=t,{baseUrl:c,cloudinaryName:p,griddoVersion:g,siteLangs:m,siteMetadata:b,siteOptions:x,siteScript:S,siteSlug:F,socials:L,theme:B,navigations:{header:G,footer:K}}=e;t.breadcrumb=o,t.siteSlug=F,t.apiUrl=c,t.publicApiUrl=e.publicBaseUrl,t.instance=e.instance;let Oe=m.find(({id:I})=>I===t?.language)?.locale.replace(/_/g,"-"),Q=ly(t),O=cy({socialDescription:a,socialImage:u,socialTitle:h}),q=ay?i.compose:`${i.domain}${i.compose}`,k=new Date().toString();return{path:q,size:void 0,context:{id:r,title:n,fullPath:i,locale:Oe,languageId:s,theme:B,siteMetadata:b,pageMetadata:Q,openGraph:O,socials:L,siteLangs:m,cloudinaryName:p,siteOptions:x,griddoVersion:g,renderDate:k,siteScript:S,header:G,footer:K,page:t}}}async function nd(t,e){return await xs(t,e)}async function id({page:t,pages:e,isRoot:r=!1,defaultLang:n,template:i,totalQueriedItems:s},o){let a=e.map(async(u,h)=>{let c=h===0,p=h+1,{domainUrl:g,compose:m}=t.fullPath,b={...t,fullPath:{...t.fullPath,compose:ws(m,p,{addEndingSlash:!0})},fullUrl:ws(t.fullUrl,p,{addEndingSlash:!0}),slug:ws(t.slug,p),title:td(t.title,p),metaTitle:td(t.metaTitle||"",p),disableHrefLangs:p>1,template:{...i,isFirstPage:c,pageNumber:p,totalPages:e.length,baseLink:`${g}${m}`,queriedItems:u,totalQueriedItems:s?.length},isRoot:r,defaultLang:n};return await xs(b,o,!c)});return Promise.all(a)}function sd(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=>{let a=JSON.parse(JSON.stringify(n)),{sectionSlug:u="/",title:h="",metaTitle:c="",metaDescription:p=""}=o,g=typeof h=="string"?h:h.content,m=a.fullPath.compose||"",b=a.fullUrl.endsWith("/")?a.fullUrl.slice(0,-1):a.fullUrl,x=u?.replace(/\//g,""),F=u==="/"?x:x+"/",L=m.endsWith("/")?"":"/",B=`${m}${L}${F}`;return g.trim()&&(a.title=g),p.trim()&&(a.metaDescription=p),a.fullUrl=`${b}/${F}`,a.fullPath.compose=B,a.slug=B,a.template.activeSectionSlug=u,a.template.activeSectionBase=b,a.metaTitle=c.trim()||g.trim()||a.metaTitle,await xs(a,e)});return Promise.all(s)}function od(t){return new Promise(r=>{let n=(i,s=0)=>{if(!(!i||typeof i!="object")){for(let o in i){let a=i[o],u=a||typeof a=="object",h=JSON.stringify(a).includes('"hasGriddoMultiPage":true');if(!u||!h)continue;let{component:c,hasGriddoMultiPage:p,elements:g}=a;c&&p&&r(g||[]),n(a,s+1)}s||r(null)}};n([t])})}function fy(t,e,r){return e?.slice(t*(r-1),t*r)}function dy(t,e){let r=Math.ceil(e.length/t)||1;return Array.from({length:r},(i,s)=>s+1)?.map(i=>fy(t,e,i))}function ad(t){let e=t.queriedItems||[],r=t?.itemsPerPage||uy;return dy(r,e)}function ed(t){return t.replace(/\/+$/,"/")}function ws(t,e,r){let n=t.endsWith("/")?"":"/",i=r?.addEndingSlash?"/":"";return e<=1?ed(`${t}${i}`):ed(`${t}${n}${e}${i}`)}function td(t,e){return!t||e<=1?t:`${t} - ${e}`}var iv=z(nr()),sv=z(Rd());var ov=process.env.API_URL,av=!!process.env.GRIDDO_RENDER_ALL_SITES||!!process.env.updateAllSites,jt=process.env.GRIDDO_RENDER_SITE&&parseInt(process.env.GRIDDO_RENDER_SITE)||process.env.testSite&&parseInt(process.env.testSite),kd=(process.env.GRIDDO_RENDER_PAGES||process.env.testPage||"").split(",").map(t=>parseInt(t)).filter(Boolean),d_=JSON.parse(process.env.GRIDDO_EXPORT_STRIP_DOMAIN_FROM_PATH||"false");async function Md(t){console.info(`API URL ${ov}`),await wt.login();let e=await ge.getAll(),r=av?e.filter(s=>!jt||s.id===jt):e.filter(s=>jt?s.id===jt:!!s.shouldBeUpdated);if(r.length){let s=r.map(async o=>{let a=await ge.getLanguages(o.id);return o.domains=a.items.filter(u=>u.domain&&u.domain.slug.indexOf(t)>0).map(u=>({[u.id]:`${u.domain.slug}${u.path}`}))});await Promise.all(s)}let n=r.filter(s=>jt?s.id===jt:!!s.isPublished&&s.domains.length>0),i=r.filter(s=>!s.isPublished&&s.shouldBeUpdated);return{sitesToPublish:n,sitesToUnpublish:i}}async function qd(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 Td(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:u,publishIds:h}=e,{headers:c,footers:p}=r,g=kd.length?kd.filter(b=>h.includes(b)):h;return{siteInfo:r,validPagesIds:g,siteHash:a,unpublishHashes:u,siteLangs:s,defaultLang:o,headers:c,footers:p,socials:i}}Ld.default.config();var uv=process.env.API_URL,cv=process.env.GRIDDO_REACT_APP_INSTANCE||process.env.REACT_APP_INSTANCE,Nd=parseInt(process.env.GRIDDO_API_CONCURRENCY_COUNT||"10"),lv=process.env.PUBLIC_API_URL,fv=process.env.GRIDDO_RENDERID||new Date().valueOf().toString(),jd=[],io={};async function Bd(t,e){console.info(`API calls with ${Nd} threads`);try{let{sitesToPublish:r,sitesToUnpublish:n}=await Md(e);await bs.getAll(),r.length||n.length||(console.warn("There are no sites to update"),process.exit(0)),console.info(`Sites to publish: ${ps(r)}`),console.info(`Sites to unpublish: ${ps(n)}`),await qd(n);for(let i of r){let{id:s,slug:o,theme:a,favicon:u,changedPages:h=[],pages:c=[]}=i,{siteInfo:p,validPagesIds:g,siteHash:m,unpublishHashes:b,siteLangs:x,defaultLang:S,headers:F,footers:L,socials:B}=await Td(s),{cloudinaryName:G,useMetaTitle:K,useMetaKeywords:ye,showBasicMetaRobots:Oe,avoidHrefLangsOnCanonicals:Q,avoidSelfReferenceCanonicals:O,avoidHrefLangXDefault:q,avoidDebugMetas:k}=bs.settings;io[s]={siteHash:m,unpublishHashes:b,publishHashes:[]};let X=new wn;X.navigations={headers:F,footers:L},i.languages=x;let I=Il(s,m),U=p.siteScript,D={siteUrl:p.slug,title:p.name,favicon:u},j={baseUrl:uv,publicBaseUrl:lv,instance:cv,siteSlug:o,theme:a,siteMetadata:D,socials:B,siteLangs:x,cloudinaryName:G,griddoVersion:Nf,siteOptions:{useMetaTitle:K,useMetaKeywords:ye,showBasicMetaRobots:Oe,avoidHrefLangsOnCanonicals:Q,avoidSelfReferenceCanonicals:O,avoidHrefLangXDefault:q,avoidDebugMetas:k},siteScript:U};qt(`${i.name} site`);let M=async re=>{let l=[],d=await ge.getPage(re,I);if(!d)return;jd.push(re);let f=JSON.parse(JSON.stringify(j));f.navigations=X.getPageNavigations(d);let v=await _n.getDistributorData({page:d,cacheKey:fv}),w=await od(v),_=d?.mode==="list",T=!_&&w,$=!T&&!_;if(_){let N={page:d,pages:ad(v),isRoot:!1,defaultLang:S,template:v,totalQueriedItems:v.queriedItems};l=await id(N,f)}if(T){let N=d;N.template=v,N.multiPageElements=w,N.defaultLang=S,l=await sd(N,f)}if($){let N=d;N.template=v,N.defaultLang=S,l=[await nd(N,f)]}d.hash!==null&&io[s].publishHashes.push(d.hash),Kf(t,l)},{pagesInStore:E,pagesMissingInStore:A,pagesToDeleteFromStore:De,pagesToWriteToStore:ke}=await Qf(t,{sitesToPublish:r,pages:c,validPagesIds:g,changedPages:h});Yf(t,De);let ae=`Store: ${E.length} -> ${E}
55
+ `))}var Zg=process.env.API_URL,ey={GET_ALL:`${Zg}/domains`},bn=class{static async getAll(){let{GET_ALL:e}=ey;return await Ae({endpoint:e})}};async function zf(){await _t.login();let t=await bn.getAll();return ty(t)}function ty(t){let e=t.filter(({slug:r})=>!!r).map(({slug:r})=>r.replace("/",""));return[...new Set(e)]}var so=z(require("node:path"));var Ye=z(require("node:fs")),Wf=z(require("node:fs/promises")),Pe=z(require("node:path")),gs=z(nr());async function*ry(t){let e=Pe.default.resolve(t),r=Lf(e).filter(n=>Pe.default.extname(n)===".json");for(let n of r)try{let i=await Wf.default.stat(n),s=await gs.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)}}function Jf(t){Ye.default.existsSync(t)||(Ye.default.mkdirSync(t),Ye.default.mkdirSync(Pe.default.resolve(t,"metadata"))),console.info("Store initialized")}function Vf(t,e){Ye.default.writeFileSync(Pe.default.resolve(t,"metadata","render-info.json"),JSON.stringify(e))}function ny(t,e){return iy(t).filter(i=>e.includes(i))}function iy(t){return Ye.default.readdirSync(t).filter(r=>{let n=`${t}/${r}`,i=Ye.default.statSync(n);if(i&&i.isDirectory()||Pe.default.extname(r)!==".json")return!1;let s=Pe.default.basename(r,Pe.default.extname(r));return!isNaN(parseInt(s))}).map(r=>{let n=Pe.default.basename(r,Pe.default.extname(r));return parseInt(n)})}function Yf(t,e){e.forEach(r=>{hs(r,["editorID","parentEditorID"]);let n=`${r.context.page.id}.json`,i=Pe.default.resolve(t,n);gs.default.writeJSONSync(i,r)})}function Kf(t,e){e.length!==0&&e.forEach(r=>{let n=Pe.default.resolve(t,`${r}.json`);try{Ye.default.unlinkSync(n)}catch(i){console.log(`Error removing file ${r}`,i.message)}})}async function Qf(t,e){let{changedPages:r,pages:n,validPagesIds:i,sitesToPublish:s}=e,o=ny(t,n),a=i.filter(m=>!o.includes(m)),u=a.concat(r),h=o.filter(m=>!i.includes(m)),c=Array.from(new Set(u)).filter(m=>!h.includes(m)),p=ry(Pe.default.resolve(__dirname,"../store")),g=[];for await(let m of p){let b=m.context.page.site,x=m.context.page.id;s.map(S=>S.id).includes(b)||g.push(x)}return{pagesInStore:o,pagesMissingInStore:a,pagesToDeleteFromStore:[...h,...g],pagesToWriteToStore:c}}var Ld=z(xt()),$d=z(ss());var Zf=z(xt());Zf.default.config();var ys=process.env.API_URL,Ke=`${ys}/site/`,Ue={GET_ALL:`${ys}/sites/all`,GET_PAGE:[`${ys}/page/`,""],INFO:[`${Ke}`,"/all"],LANGUAGES:[`${Ke}`,"/languages"],BUILD_START:[`${Ke}`,"/build/start"],BUILD_END:[`${Ke}`,"/build/end"],GET_DISTRIBUTOR_DATA:[`${Ke}`,"/distributor"],GET_SITEMAP:[`${Ke}`,"/sitemap"],SOCIALS:[`${Ke}`,"/socials"],GET_PAGES:[`${Ke}`,"/pages?pagination=false"]},ge=class{static async getAll(){let{GET_ALL:e}=Ue;return await Ae({endpoint:e})}static async getPage(e,r){let{GET_PAGE:[n,i]}=Ue;return await Ae({endpoint:`${n}${e}${i}`,cacheKey:r})}static async getInfo(e,r=""){let{INFO:[n,i]}=Ue;return await Ae({endpoint:`${n}${e}${i}`,cacheKey:r})}static async getLanguages(e,r=""){let{LANGUAGES:[n,i]}=Ue;return await Ae({endpoint:`${n}${e}${i}`,cacheKey:r})}static async startSiteRender(e){let{BUILD_START:[r,n]}=Ue;return await Ae({endpoint:`${r}${e}${n}`})}static async endSiteRender(e,r){let{BUILD_END:[n,i]}=Ue;return await cr({endpoint:`${n}${e}${i}`,body:r})}static async getDistributorData(e,r,n,i,s){let{GET_DISTRIBUTOR_DATA:[o,a]}=Ue,u=i||e.site,h=s||e.language;return await cr({endpoint:`${o}${u}${a}`,body:r,headers:{lang:h},cacheKey:n})}static async getSitemap(e){let{GET_SITEMAP:[r,n]}=Ue;return await Ae({endpoint:`${r}${e}${n}`})}static async getSocials(e,r=""){let{SOCIALS:[n,i]}=Ue;return await Ae({endpoint:`${n}${e}${i}`,cacheKey:r})}};var wn=class{static getBody(e,r){let{order:n,sources:i,quantity:s,mode:o,fixed:a,fullRelations:u=!1,allLanguages:h=!1,preferenceLanguage:c=!1,referenceId:p}=e;return o==="auto"?{mode:o,order:n,sources:i,quantity:s,fullRelations:u,allLanguages:h,preferenceLanguage:c}:o==="manual"?{mode:o,fixed:a,fullRelations:u}:o==="navigation"?{mode:o,order:n,quantity:s,fullRelations:u,referenceId:p||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 ur(`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 ur(`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,u=1)=>{if(!(!a||typeof a!="object")&&JSON.stringify(a).includes('"hasDistributorData":true'))for(let h in a){if(h==="queriedItems")continue;let p=a[h];!p||typeof p!="object"||(p.hasDistributorData&&(p.queriedItems=await this.fetchContentTypeData({page:e,cacheKey:r,component:p})),await i(p,u+1))}};return await(async a=>(await i([a]),a))(n)}catch(n){console.error(`Error en get distributor ${n}`),process.exit(1)}}};var _n=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:u}}=e,h=b=>{let x=b.find(S=>typeof S=="number");return typeof x=="number"?x:null},c=h([r,u?.[s]?.defaultHeader,o]),p=h([n,u?.[s]?.defaultFooter,a]),g=c?this.getPageHeader(c,i):c===0?null:this._defaultHeaders[i],m=p?this.getPageFooter(p,i):p===0?null:this._defaultFooters[i];return{header:g,footer:m}}};var vs=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 Ae({endpoint:e});this.settings=r}async resetRender(){let{resetRender:e}=this.ENDPOINTS;await cr({endpoint:e})}},bs=new vs;var rd=z(xt());function ws(t,e,r,n="jpg"){let i=typeof t=="string"?t:t?.url;return i?i.split("/")[2].includes("cloudinary.com")?oy(i,`c_fill,w_${e},h_${r}`):sy(i,`f/${n}/w/${e}/h/${r}`):null}function sy(t,e){let r=t.split("/"),n=r.slice(0,-1).join("/"),i=r.slice(-1)[0];return`${n}/${e}/${i}`}function oy(t,e){let r=t.replace("https://",""),n=r.split("/").slice(0,4).join("/"),i=r.replace(n,"");return`https://${n}/${e}${i}`}rd.default.config();var ay=JSON.parse(process.env.GRIDDO_EXPORT_STRIP_DOMAIN_FROM_PATH||"false"),uy=25;function cy({socialTitle:t,socialDescription:e,socialImage:r}){return{type:"website",title:t,description:e,image:r?ws(r,1280,768):"",twitterImage:r?ws(r,1280,768):""}}function ly(t){let{title:e,metaTitle:r,metaDescription:n,canonicalURL:i,locale:s,url:o,isIndexed:a,follow:u,metasAdvanced:h,pageLanguages:c,fullUrl:p,metaKeywords:g}=t,m=h?.split(",").filter(Boolean).map(b=>b.trim().toLowerCase())||[];return{title:(r||e||"").trim(),description:n,canonical:i&&i.trim()&&i!==p?i.trim():a?p:void 0,locale:s,url:o,index:a?"index":"noindex",follow:u?"follow":"nofollow",translate:m.includes("notranslate")?"notranslate":"",metasAdvanced:m.filter(b=>b!=="notranslate").join(),pageLanguages:c,metaKeywords:g?.filter(Boolean).map(b=>b.replace(/"/g,"'")).join(", ")}}async function xs(t,e){let{id:r,title:n,fullPath:i,language:s,breadcrumb:o,socialDescription:a,socialImage:u,socialTitle:h}=t,{baseUrl:c,cloudinaryName:p,griddoVersion:g,siteLangs:m,siteMetadata:b,siteOptions:x,siteScript:S,siteSlug:F,socials:L,theme:B,navigations:{header:G,footer:Y}}=e;t.breadcrumb=o,t.siteSlug=F,t.apiUrl=c,t.publicApiUrl=e.publicBaseUrl,t.instance=e.instance;let De=m.find(({id:I})=>I===t?.language)?.locale.replace(/_/g,"-"),Q=ly(t),D=cy({socialDescription:a,socialImage:u,socialTitle:h}),q=ay?i.compose:`${i.domain}${i.compose}`,k=new Date().toString();return{path:q,size:void 0,context:{id:r,title:n,fullPath:i,locale:De,languageId:s,theme:B,siteMetadata:b,pageMetadata:Q,openGraph:D,socials:L,siteLangs:m,cloudinaryName:p,siteOptions:x,griddoVersion:g,renderDate:k,siteScript:S,header:G,footer:Y,page:t}}}async function nd(t,e){return await xs(t,e)}async function id({page:t,pages:e,isRoot:r=!1,defaultLang:n,template:i,totalQueriedItems:s},o){let a=e.map(async(u,h)=>{let c=h===0,p=h+1,{domainUrl:g,compose:m}=t.fullPath,b={...t,fullPath:{...t.fullPath,compose:_s(m,p,{addEndingSlash:!0})},fullUrl:_s(t.fullUrl,p,{addEndingSlash:!0}),slug:_s(t.slug,p),title:td(t.title,p),metaTitle:td(t.metaTitle||"",p),disableHrefLangs:p>1,template:{...i,isFirstPage:c,pageNumber:p,totalPages:e.length,baseLink:`${g}${m}`,queriedItems:u,totalQueriedItems:s?.length},isRoot:r,defaultLang:n};return await xs(b,o,!c)});return Promise.all(a)}function sd(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=>{let a=JSON.parse(JSON.stringify(n)),{sectionSlug:u="/",title:h="",metaTitle:c="",metaDescription:p=""}=o,g=typeof h=="string"?h:h.content,m=a.fullPath.compose||"",b=a.fullUrl.endsWith("/")?a.fullUrl.slice(0,-1):a.fullUrl,x=u?.replace(/\//g,""),F=u==="/"?x:x+"/",L=m.endsWith("/")?"":"/",B=`${m}${L}${F}`;return g.trim()&&(a.title=g),p.trim()&&(a.metaDescription=p),a.fullUrl=`${b}/${F}`,a.fullPath.compose=B,a.slug=B,a.template.activeSectionSlug=u,a.template.activeSectionBase=b,a.metaTitle=c.trim()||g.trim()||a.metaTitle,await xs(a,e)});return Promise.all(s)}function od(t){return new Promise(r=>{let n=(i,s=0)=>{if(!(!i||typeof i!="object")){for(let o in i){let a=i[o],u=a||typeof a=="object",h=JSON.stringify(a).includes('"hasGriddoMultiPage":true');if(!u||!h)continue;let{component:c,hasGriddoMultiPage:p,elements:g}=a;c&&p&&r(g||[]),n(a,s+1)}s||r(null)}};n([t])})}function fy(t,e,r){return e?.slice(t*(r-1),t*r)}function dy(t,e){let r=Math.ceil(e.length/t)||1;return Array.from({length:r},(i,s)=>s+1)?.map(i=>fy(t,e,i))}function ad(t){let e=t.queriedItems||[],r=t?.itemsPerPage||uy;return dy(r,e)}function ed(t){return t.replace(/\/+$/,"/")}function _s(t,e,r){let n=t.endsWith("/")?"":"/",i=r?.addEndingSlash?"/":"";return e<=1?ed(`${t}${i}`):ed(`${t}${n}${e}${i}`)}function td(t,e){return!t||e<=1?t:`${t} - ${e}`}var iv=z(nr()),sv=z(Rd());var ov=process.env.API_URL,av=!!process.env.GRIDDO_RENDER_ALL_SITES||!!process.env.updateAllSites,jt=process.env.GRIDDO_RENDER_SITE&&parseInt(process.env.GRIDDO_RENDER_SITE)||process.env.testSite&&parseInt(process.env.testSite),kd=(process.env.GRIDDO_RENDER_PAGES||process.env.testPage||"").split(",").map(t=>parseInt(t)).filter(Boolean),d5=JSON.parse(process.env.GRIDDO_EXPORT_STRIP_DOMAIN_FROM_PATH||"false");async function Md(t){console.info(`API URL ${ov}`),await _t.login();let e=await ge.getAll(),r=av?e.filter(s=>!jt||s.id===jt):e.filter(s=>jt?s.id===jt:!!s.shouldBeUpdated);if(r.length){let s=r.map(async o=>{let a=await ge.getLanguages(o.id);return o.domains=a.items.filter(u=>u.domain&&u.domain.slug.indexOf(t)>0).map(u=>({[u.id]:`${u.domain.slug}${u.path}`}))});await Promise.all(s)}let n=r.filter(s=>jt?s.id===jt:!!s.isPublished&&s.domains.length>0),i=r.filter(s=>!s.isPublished&&s.shouldBeUpdated);return{sitesToPublish:n,sitesToUnpublish:i}}async function qd(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 Td(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:u,publishIds:h}=e,{headers:c,footers:p}=r,g=kd.length?kd.filter(b=>h.includes(b)):h;return{siteInfo:r,validPagesIds:g,siteHash:a,unpublishHashes:u,siteLangs:s,defaultLang:o,headers:c,footers:p,socials:i}}Ld.default.config();var uv=process.env.API_URL,cv=process.env.GRIDDO_REACT_APP_INSTANCE||process.env.REACT_APP_INSTANCE,Nd=parseInt(process.env.GRIDDO_API_CONCURRENCY_COUNT||"10"),lv=process.env.PUBLIC_API_URL,fv=process.env.GRIDDO_RENDERID||new Date().valueOf().toString(),jd=[],io={};async function Bd(t,e){console.info(`API calls with ${Nd} threads`);try{let{sitesToPublish:r,sitesToUnpublish:n}=await Md(e);await bs.getAll(),r.length||n.length||(console.warn("There are no sites to update"),process.exit(0)),console.info(`Sites to publish: ${ps(r)}`),console.info(`Sites to unpublish: ${ps(n)}`),await qd(n);for(let i of r){let{id:s,slug:o,theme:a,favicon:u,changedPages:h=[],pages:c=[]}=i,{siteInfo:p,validPagesIds:g,siteHash:m,unpublishHashes:b,siteLangs:x,defaultLang:S,headers:F,footers:L,socials:B}=await Td(s),{cloudinaryName:G,useMetaTitle:Y,useMetaKeywords:ye,showBasicMetaRobots:De,avoidHrefLangsOnCanonicals:Q,avoidSelfReferenceCanonicals:D,avoidHrefLangXDefault:q,avoidDebugMetas:k}=bs.settings;io[s]={siteHash:m,unpublishHashes:b,publishHashes:[]};let X=new _n;X.navigations={headers:F,footers:L},i.languages=x;let I=Il(s,m),U=p.siteScript,O={siteUrl:p.slug,title:p.name,favicon:u},j={baseUrl:uv,publicBaseUrl:lv,instance:cv,siteSlug:o,theme:a,siteMetadata:O,socials:B,siteLangs:x,cloudinaryName:G,griddoVersion:Nf,siteOptions:{useMetaTitle:Y,useMetaKeywords:ye,showBasicMetaRobots:De,avoidHrefLangsOnCanonicals:Q,avoidSelfReferenceCanonicals:D,avoidHrefLangXDefault:q,avoidDebugMetas:k},siteScript:U};qt(`${i.name} site`);let M=async re=>{let l=[],d=await ge.getPage(re,I);if(!d)return;jd.push(re);let f=JSON.parse(JSON.stringify(j));f.navigations=X.getPageNavigations(d);let v=await wn.getDistributorData({page:d,cacheKey:fv}),_=await od(v),w=d?.mode==="list",T=!w&&_,$=!T&&!w;if(w){let N={page:d,pages:ad(v),isRoot:!1,defaultLang:S,template:v,totalQueriedItems:v.queriedItems};l=await id(N,f)}if(T){let N=d;N.template=v,N.multiPageElements=_,N.defaultLang=S,l=await sd(N,f)}if($){let N=d;N.template=v,N.defaultLang=S,l=[await nd(N,f)]}d.hash!==null&&io[s].publishHashes.push(d.hash),Yf(t,l)},{pagesInStore:E,pagesMissingInStore:A,pagesToDeleteFromStore:Oe,pagesToWriteToStore:ke}=await Qf(t,{sitesToPublish:r,pages:c,validPagesIds:g,changedPages:h});Kf(t,Oe);let ae=`Store: ${E.length} -> ${E}
56
56
  ValidPages: ${g.length} -> ${g}
57
57
  Changed: ${h.length} -> ${h}
58
- Deleted/Unpublished: ${De.length} -> ${De}
58
+ Deleted/Unpublished: ${Oe.length} -> ${Oe}
59
59
  Missing in store: ${A.length} -> ${A}
60
60
  Finally to store: ${ke.length} -> ${ke}`;JSON.parse(process.env.GRIDDO_DEBUG_LOGS||"false")&&ur(ae,`Site store: ${i.name}`,1,0);let ve=(0,$d.default)(Nd),ft=ke.map(re=>ve(()=>M(re)));await Promise.all(ft)}Vf(t,{buildProcessData:io,createdPages:jd,sitesToPublish:r})}catch(r){console.error(r.message),process.exit(1)}}var Ud=so.default.resolve(__dirname,"../store/"),dv=so.default.resolve(__dirname,"../apiCache");async function Xd(t){Cl(),Jf(Ud),await Bd(Ud,t),Bf(dv)}async function hv(){let t=await zf();for(let e of t)Xd(e).catch(r=>{console.error("Error",r?.stdout?.toString()||r),process.exit(1)}),process.exit(0)}hv().catch(t=>{console.error("Error in create-build-data.ts:",t?.stdout?.toString()||t),process.exit(1)});