@griddo/cx 10.4.21 → 10.4.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/adapters/gatsby/utils.d.ts +21 -15
- package/build/browser/index.d.ts +1 -1
- package/build/browser/index.js +1 -1
- package/build/build-complete.js +21 -21
- package/build/index.d.ts +2 -3
- package/build/index.js +30 -34
- package/build/react/Foo/index.d.ts +3 -0
- package/build/react/index.d.ts +1 -1
- package/build/react/index.js +1 -0
- package/build/reset-render.js +21 -21
- package/build/run-start-render.js +29 -33
- package/build/start-render.js +30 -34
- package/build/types/global.d.ts +1 -0
- package/build/upload-search-content.js +22 -22
- package/build/utils/{shared.d.ts → core-utils.d.ts} +44 -2
- package/build/utils/folders.d.ts +6 -1
- package/build/utils/store.d.ts +1 -1
- package/cx.config.js +7 -0
- package/exporter/adapters/gatsby/index.ts +67 -14
- package/exporter/adapters/gatsby/utils.ts +116 -31
- package/exporter/browser/index.ts +1 -1
- package/exporter/build-complete.ts +5 -5
- package/exporter/index.ts +6 -5
- package/exporter/react/Foo/index.tsx +7 -0
- package/exporter/react/index.tsx +3 -0
- package/exporter/services/distributors.ts +1 -1
- package/exporter/services/robots.ts +1 -1
- package/exporter/services/store.ts +9 -16
- package/exporter/start-render.ts +1 -1
- package/exporter/types/global.ts +1 -0
- package/exporter/utils/api.ts +1 -1
- package/exporter/utils/cache.ts +1 -1
- package/exporter/utils/{shared.ts → core-utils.ts} +120 -20
- package/exporter/utils/create-build-data.ts +1 -1
- package/exporter/utils/domains.ts +3 -0
- package/exporter/utils/folders.ts +38 -2
- package/exporter/utils/health-checks.ts +1 -1
- package/exporter/utils/searches.ts +1 -1
- package/exporter/utils/sites.ts +12 -18
- package/exporter/utils/store.ts +2 -3
- package/gatsby-config.ts +10 -6
- package/gatsby-node.ts +20 -11
- package/package.json +8 -5
- package/src/components/template.tsx +2 -1
- package/src/gatsby-node-utils.ts +2 -39
- package/src/types.ts +6 -7
- package/build/utils/temp-utils.d.ts +0 -10
- package/exporter/react/index.ts +0 -5
- package/exporter/utils/temp-utils.ts +0 -103
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
"use strict";var wl=Object.create;var Dt=Object.defineProperty;var Sl=Object.getOwnPropertyDescriptor;var xl=Object.getOwnPropertyNames;var El=Object.getPrototypeOf,_l=Object.prototype.hasOwnProperty;var Si=(e,t)=>()=>(e&&(t=e(e=0)),t);var v=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Cl=(e,t)=>{for(var r in t)Dt(e,r,{get:t[r],enumerable:!0})},xi=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of xl(t))!_l.call(e,i)&&i!==r&&Dt(e,i,{get:()=>t[i],enumerable:!(n=Sl(t,i))||n.enumerable});return e};var D=(e,t,r)=>(r=e!=null?wl(El(e)):{},xi(t||!e||!e.__esModule?Dt(r,"default",{value:e,enumerable:!0}):r,e)),kl=e=>xi(Dt({},"__esModule",{value:!0}),e);var _i=v((rm,Ei)=>{var Lr=class{constructor(t){this.value=t,this.next=void 0}},$r=class{constructor(){this.clear()}enqueue(t){let r=new Lr(t);this._head?(this._tail.next=r,this._tail=r):(this._head=r,this._tail=r),this._size++}dequeue(){let t=this._head;if(t)return this._head=this._head.next,this._size--,t.value}clear(){this._head=void 0,this._tail=void 0,this._size=0}get size(){return this._size}*[Symbol.iterator](){let t=this._head;for(;t;)yield t.value,t=t.next}};Ei.exports=$r});var ki=v((nm,Ci)=>{"use strict";var Ol=_i(),Rl=e=>{if(!((Number.isInteger(e)||e===1/0)&&e>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");let t=new Ol,r=0,n=()=>{r--,t.size>0&&t.dequeue()()},i=async(a,c,...d)=>{r++;let f=(async()=>a(...d))();c(f);try{await f}catch{}n()},o=(a,c,...d)=>{t.enqueue(i.bind(null,a,c,...d)),(async()=>(await Promise.resolve(),r<e&&t.size>0&&t.dequeue()()))()},s=(a,...c)=>new Promise(d=>{o(a,d,...c)});return Object.defineProperties(s,{activeCount:{get:()=>r},pendingCount:{get:()=>t.size},clearQueue:{value:()=>{t.clear()}}}),s};Ci.exports=Rl});var Pi=v((im,Ri)=>{"use strict";var Oi=ki(),jt=class extends Error{constructor(t){super(),this.value=t}},Pl=async(e,t)=>t(await e),Al=async e=>{let t=await Promise.all(e);if(t[1]===!0)throw new jt(t[0]);return!1},ql=async(e,t,r)=>{r={concurrency:1/0,preserveOrder:!0,...r};let n=Oi(r.concurrency),i=[...e].map(s=>[s,n(Pl,s,t)]),o=Oi(r.preserveOrder?1:1/0);try{await Promise.all(i.map(s=>o(Al,s)))}catch(s){if(s instanceof jt)return s.value;throw s}};Ri.exports=ql});var Ii=v((om,Ur)=>{"use strict";var Ai=require("path"),Nt=require("fs"),{promisify:qi}=require("util"),Ml=Pi(),Fl=qi(Nt.stat),Tl=qi(Nt.lstat),Mi={directory:"isDirectory",file:"isFile"};function Fi({type:e}){if(!(e in Mi))throw new Error(`Invalid type specified: ${e}`)}var Ti=(e,t)=>e===void 0||t[Mi[e]]();Ur.exports=async(e,t)=>{t={cwd:process.cwd(),type:"file",allowSymlinks:!0,...t},Fi(t);let r=t.allowSymlinks?Fl:Tl;return Ml(e,async n=>{try{let i=await r(Ai.resolve(t.cwd,n));return Ti(t.type,i)}catch{return!1}},t)};Ur.exports.sync=(e,t)=>{t={cwd:process.cwd(),allowSymlinks:!0,type:"file",...t},Fi(t);let r=t.allowSymlinks?Nt.statSync:Nt.lstatSync;for(let n of e)try{let i=r(Ai.resolve(t.cwd,n));if(Ti(t.type,i))return n}catch{}}});var ji=v((sm,Hr)=>{"use strict";var Di=require("fs"),{promisify:Il}=require("util"),Dl=Il(Di.access);Hr.exports=async e=>{try{return await Dl(e),!0}catch{return!1}};Hr.exports.sync=e=>{try{return Di.accessSync(e),!0}catch{return!1}}});var zr=v((am,He)=>{"use strict";var Oe=require("path"),Bt=Ii(),Ni=ji(),Gr=Symbol("findUp.stop");He.exports=async(e,t={})=>{let r=Oe.resolve(t.cwd||""),{root:n}=Oe.parse(r),i=[].concat(e),o=async s=>{if(typeof e!="function")return Bt(i,s);let a=await e(s.cwd);return typeof a=="string"?Bt([a],s):a};for(;;){let s=await o({...t,cwd:r});if(s===Gr)return;if(s)return Oe.resolve(r,s);if(r===n)return;r=Oe.dirname(r)}};He.exports.sync=(e,t={})=>{let r=Oe.resolve(t.cwd||""),{root:n}=Oe.parse(r),i=[].concat(e),o=s=>{if(typeof e!="function")return Bt.sync(i,s);let a=e(s.cwd);return typeof a=="string"?Bt.sync([a],s):a};for(;;){let s=o({...t,cwd:r});if(s===Gr)return;if(s)return Oe.resolve(r,s);if(r===n)return;r=Oe.dirname(r)}};He.exports.exists=Ni;He.exports.sync.exists=Ni.sync;He.exports.stop=Gr});var dt=v((cm,Jr)=>{"use strict";var Bi=require("path"),Li=zr(),jl=async e=>{let t=await Li("package.json",{cwd:e});return t&&Bi.dirname(t)};Jr.exports=jl;Jr.exports.sync=e=>{let t=Li.sync("package.json",{cwd:e});return t&&Bi.dirname(t)}});var Wr=v((um,$i)=>{"use strict";$i.exports=function(t,r){return function(){for(var i=new Array(arguments.length),o=0;o<i.length;o++)i[o]=arguments[o];return t.apply(r,i)}}});var ne=v((lm,Gi)=>{"use strict";var Nl=Wr(),Ie=Object.prototype.toString;function Xr(e){return Ie.call(e)==="[object Array]"}function Vr(e){return typeof e>"u"}function Bl(e){return e!==null&&!Vr(e)&&e.constructor!==null&&!Vr(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Ll(e){return Ie.call(e)==="[object ArrayBuffer]"}function $l(e){return typeof FormData<"u"&&e instanceof FormData}function Ul(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function Hl(e){return typeof e=="string"}function Gl(e){return typeof e=="number"}function Ui(e){return e!==null&&typeof e=="object"}function Lt(e){if(Ie.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function zl(e){return Ie.call(e)==="[object Date]"}function Jl(e){return Ie.call(e)==="[object File]"}function Wl(e){return Ie.call(e)==="[object Blob]"}function Hi(e){return Ie.call(e)==="[object Function]"}function Vl(e){return Ui(e)&&Hi(e.pipe)}function Yl(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}function Xl(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Kl(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function Kr(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),Xr(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}function Yr(){var e={};function t(i,o){Lt(e[o])&&Lt(i)?e[o]=Yr(e[o],i):Lt(i)?e[o]=Yr({},i):Xr(i)?e[o]=i.slice():e[o]=i}for(var r=0,n=arguments.length;r<n;r++)Kr(arguments[r],t);return e}function Ql(e,t,r){return Kr(t,function(i,o){r&&typeof i=="function"?e[o]=Nl(i,r):e[o]=i}),e}function Zl(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}Gi.exports={isArray:Xr,isArrayBuffer:Ll,isBuffer:Bl,isFormData:$l,isArrayBufferView:Ul,isString:Hl,isNumber:Gl,isObject:Ui,isPlainObject:Lt,isUndefined:Vr,isDate:zl,isFile:Jl,isBlob:Wl,isFunction:Hi,isStream:Vl,isURLSearchParams:Yl,isStandardBrowserEnv:Kl,forEach:Kr,merge:Yr,extend:Ql,trim:Xl,stripBOM:Zl}});var $t=v((fm,Ji)=>{"use strict";var Ge=ne();function zi(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}Ji.exports=function(t,r,n){if(!r)return t;var i;if(n)i=n(r);else if(Ge.isURLSearchParams(r))i=r.toString();else{var o=[];Ge.forEach(r,function(c,d){c===null||typeof c>"u"||(Ge.isArray(c)?d=d+"[]":c=[c],Ge.forEach(c,function(p){Ge.isDate(p)?p=p.toISOString():Ge.isObject(p)&&(p=JSON.stringify(p)),o.push(zi(d)+"="+zi(p))}))}),i=o.join("&")}if(i){var s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}});var Vi=v((hm,Wi)=>{"use strict";var ef=ne();function Ut(){this.handlers=[]}Ut.prototype.use=function(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};Ut.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};Ut.prototype.forEach=function(t){ef.forEach(this.handlers,function(n){n!==null&&t(n)})};Wi.exports=Ut});var Xi=v((dm,Yi)=>{"use strict";var tf=ne();Yi.exports=function(t,r){tf.forEach(t,function(i,o){o!==r&&o.toUpperCase()===r.toUpperCase()&&(t[r]=i,delete t[o])})}});var Ht=v((pm,Ki)=>{"use strict";Ki.exports=function(t,r,n,i,o){return t.config=r,n&&(t.code=n),t.request=i,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}});var Gt=v((mm,Qi)=>{"use strict";var rf=Ht();Qi.exports=function(t,r,n,i,o){var s=new Error(t);return rf(s,r,n,i,o)}});var Qr=v((ym,Zi)=>{"use strict";var nf=Gt();Zi.exports=function(t,r,n){var i=n.config.validateStatus;!n.status||!i||i(n.status)?t(n):r(nf("Request failed with status code "+n.status,n.config,null,n.request,n))}});var to=v((gm,eo)=>{"use strict";var zt=ne();eo.exports=zt.isStandardBrowserEnv()?function(){return{write:function(r,n,i,o,s,a){var c=[];c.push(r+"="+encodeURIComponent(n)),zt.isNumber(i)&&c.push("expires="+new Date(i).toGMTString()),zt.isString(o)&&c.push("path="+o),zt.isString(s)&&c.push("domain="+s),a===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(r){var n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()});var no=v((vm,ro)=>{"use strict";ro.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}});var oo=v((bm,io)=>{"use strict";io.exports=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}});var Zr=v((wm,so)=>{"use strict";var of=no(),sf=oo();so.exports=function(t,r){return t&&!of(r)?sf(t,r):r}});var co=v((Sm,ao)=>{"use strict";var en=ne(),af=["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"];ao.exports=function(t){var r={},n,i,o;return t&&en.forEach(t.split(`
|
|
2
|
-
`),function(a){if(o=a.indexOf(":"),n=en.trim(a.substr(0,o)).toLowerCase(),i=en.trim(a.substr(o+1)),n){if(r[n]&&af.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 fo=v((xm,lo)=>{"use strict";var uo=ne();lo.exports=uo.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),n;function i(o){var s=o;return t&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{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(s){var a=uo.isString(s)?i(s):s;return a.protocol===n.protocol&&a.host===n.host}}():function(){return function(){return!0}}()});var po=v((Em,ho)=>{"use strict";var Jt=ne(),cf=Qr(),uf=to(),lf=$t(),ff=Zr(),hf=co(),df=fo(),tn=Gt();ho.exports=function(t){return new Promise(function(n,i){var o=t.data,s=t.headers,a=t.responseType;Jt.isFormData(o)&&delete s["Content-Type"];var c=new XMLHttpRequest;if(t.auth){var d=t.auth.username||"",f=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";s.Authorization="Basic "+btoa(d+":"+f)}var p=ff(t.baseURL,t.url);c.open(t.method.toUpperCase(),lf(p,t.params,t.paramsSerializer),!0),c.timeout=t.timeout;function y(){if(c){var S="getAllResponseHeaders"in c?hf(c.getAllResponseHeaders()):null,O=!a||a==="text"||a==="json"?c.responseText:c.response,R={data:O,status:c.status,statusText:c.statusText,headers:S,config:t,request:c};cf(n,i,R),c=null}}if("onloadend"in c?c.onloadend=y:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(y)},c.onabort=function(){c&&(i(tn("Request aborted",t,"ECONNABORTED",c)),c=null)},c.onerror=function(){i(tn("Network Error",t,null,c)),c=null},c.ontimeout=function(){var O="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(O=t.timeoutErrorMessage),i(tn(O,t,t.transitional&&t.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",c)),c=null},Jt.isStandardBrowserEnv()){var m=(t.withCredentials||df(p))&&t.xsrfCookieName?uf.read(t.xsrfCookieName):void 0;m&&(s[t.xsrfHeaderName]=m)}"setRequestHeader"in c&&Jt.forEach(s,function(O,R){typeof o>"u"&&R.toLowerCase()==="content-type"?delete s[R]:c.setRequestHeader(R,O)}),Jt.isUndefined(t.withCredentials)||(c.withCredentials=!!t.withCredentials),a&&a!=="json"&&(c.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&c.addEventListener("progress",t.onDownloadProgress),typeof t.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(O){c&&(c.abort(),i(O),c=null)}),o||(o=null),c.send(o)})}});var yo=v((_m,mo)=>{var ze=1e3,Je=ze*60,We=Je*60,De=We*24,pf=De*7,mf=De*365.25;mo.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return yf(e);if(r==="number"&&isFinite(e))return t.long?vf(e):gf(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function yf(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*mf;case"weeks":case"week":case"w":return r*pf;case"days":case"day":case"d":return r*De;case"hours":case"hour":case"hrs":case"hr":case"h":return r*We;case"minutes":case"minute":case"mins":case"min":case"m":return r*Je;case"seconds":case"second":case"secs":case"sec":case"s":return r*ze;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function gf(e){var t=Math.abs(e);return t>=De?Math.round(e/De)+"d":t>=We?Math.round(e/We)+"h":t>=Je?Math.round(e/Je)+"m":t>=ze?Math.round(e/ze)+"s":e+"ms"}function vf(e){var t=Math.abs(e);return t>=De?Wt(e,t,De,"day"):t>=We?Wt(e,t,We,"hour"):t>=Je?Wt(e,t,Je,"minute"):t>=ze?Wt(e,t,ze,"second"):e+" ms"}function Wt(e,t,r,n){var i=t>=r*1.5;return Math.round(e/r)+" "+n+(i?"s":"")}});var rn=v((Cm,go)=>{function bf(e){r.debug=r,r.default=r,r.coerce=c,r.disable=o,r.enable=i,r.enabled=s,r.humanize=yo(),r.destroy=d,Object.keys(e).forEach(f=>{r[f]=e[f]}),r.names=[],r.skips=[],r.formatters={};function t(f){let p=0;for(let y=0;y<f.length;y++)p=(p<<5)-p+f.charCodeAt(y),p|=0;return r.colors[Math.abs(p)%r.colors.length]}r.selectColor=t;function r(f){let p,y=null,m,S;function O(...R){if(!O.enabled)return;let M=O,$=Number(new Date),z=$-(p||$);M.diff=z,M.prev=p,M.curr=$,p=$,R[0]=r.coerce(R[0]),typeof R[0]!="string"&&R.unshift("%O");let G=0;R[0]=R[0].replace(/%([a-zA-Z%])/g,(ve,Ce)=>{if(ve==="%%")return"%";G++;let ae=r.formatters[Ce];if(typeof ae=="function"){let k=R[G];ve=ae.call(M,k),R.splice(G,1),G--}return ve}),r.formatArgs.call(M,R),(M.log||r.log).apply(M,R)}return O.namespace=f,O.useColors=r.useColors(),O.color=r.selectColor(f),O.extend=n,O.destroy=r.destroy,Object.defineProperty(O,"enabled",{enumerable:!0,configurable:!1,get:()=>y!==null?y:(m!==r.namespaces&&(m=r.namespaces,S=r.enabled(f)),S),set:R=>{y=R}}),typeof r.init=="function"&&r.init(O),O}function n(f,p){let y=r(this.namespace+(typeof p>"u"?":":p)+f);return y.log=this.log,y}function i(f){r.save(f),r.namespaces=f,r.names=[],r.skips=[];let p,y=(typeof f=="string"?f:"").split(/[\s,]+/),m=y.length;for(p=0;p<m;p++)y[p]&&(f=y[p].replace(/\*/g,".*?"),f[0]==="-"?r.skips.push(new RegExp("^"+f.slice(1)+"$")):r.names.push(new RegExp("^"+f+"$")))}function o(){let f=[...r.names.map(a),...r.skips.map(a).map(p=>"-"+p)].join(",");return r.enable(""),f}function s(f){if(f[f.length-1]==="*")return!0;let p,y;for(p=0,y=r.skips.length;p<y;p++)if(r.skips[p].test(f))return!1;for(p=0,y=r.names.length;p<y;p++)if(r.names[p].test(f))return!0;return!1}function a(f){return f.toString().substring(2,f.toString().length-2).replace(/\.\*\?$/,"*")}function c(f){return f instanceof Error?f.stack||f.message:f}function d(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}go.exports=bf});var vo=v((he,Vt)=>{he.formatArgs=Sf;he.save=xf;he.load=Ef;he.useColors=wf;he.storage=_f();he.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();he.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 wf(){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 Sf(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+Vt.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,n=0;e[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(r++,i==="%c"&&(n=r))}),e.splice(n,0,t)}he.log=console.debug||console.log||(()=>{});function xf(e){try{e?he.storage.setItem("debug",e):he.storage.removeItem("debug")}catch{}}function Ef(){let e;try{e=he.storage.getItem("debug")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function _f(){try{return localStorage}catch{}}Vt.exports=rn()(he);var{formatters:Cf}=Vt.exports;Cf.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var wo=v((km,bo)=>{"use strict";bo.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}});var sn=v((Om,xo)=>{"use strict";var kf=require("os"),So=require("tty"),ge=wo(),{env:V}=process,Re;ge("no-color")||ge("no-colors")||ge("color=false")||ge("color=never")?Re=0:(ge("color")||ge("colors")||ge("color=true")||ge("color=always"))&&(Re=1);"FORCE_COLOR"in V&&(V.FORCE_COLOR==="true"?Re=1:V.FORCE_COLOR==="false"?Re=0:Re=V.FORCE_COLOR.length===0?1:Math.min(parseInt(V.FORCE_COLOR,10),3));function nn(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function on(e,t){if(Re===0)return 0;if(ge("color=16m")||ge("color=full")||ge("color=truecolor"))return 3;if(ge("color=256"))return 2;if(e&&!t&&Re===void 0)return 0;let r=Re||0;if(V.TERM==="dumb")return r;if(process.platform==="win32"){let n=kf.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in V)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in V)||V.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in V)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(V.TEAMCITY_VERSION)?1:0;if(V.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in V){let n=parseInt((V.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(V.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(V.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(V.TERM)||"COLORTERM"in V?1:r}function Of(e){let t=on(e,e&&e.isTTY);return nn(t)}xo.exports={supportsColor:Of,stdout:nn(on(!0,So.isatty(1))),stderr:nn(on(!0,So.isatty(2)))}});var _o=v((Y,Xt)=>{var Rf=require("tty"),Yt=require("util");Y.init=If;Y.log=Mf;Y.formatArgs=Af;Y.save=Ff;Y.load=Tf;Y.useColors=Pf;Y.destroy=Yt.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");Y.colors=[6,2,3,4,5,1];try{let e=sn();e&&(e.stderr||e).level>=2&&(Y.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{}Y.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(i,o)=>o.toUpperCase()),n=process.env[t];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),e[r]=n,e},{});function Pf(){return"colors"in Y.inspectOpts?!!Y.inspectOpts.colors:Rf.isatty(process.stderr.fd)}function Af(e){let{namespace:t,useColors:r}=this;if(r){let n=this.color,i="\x1B[3"+(n<8?n:"8;5;"+n),o=` ${i};1m${t} \x1B[0m`;e[0]=o+e[0].split(`
|
|
3
|
-
`).join(`
|
|
4
|
-
`+o),e.push(i+"m+"+Xt.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=qf()+t+" "+e[0]}function qf(){return Y.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Mf(...e){return process.stderr.write(Yt.format(...e)+`
|
|
5
|
-
`)}function Ff(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function Tf(){return process.env.DEBUG}function If(e){e.inspectOpts={};let t=Object.keys(Y.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=Y.inspectOpts[t[r]]}Xt.exports=rn()(Y);var{formatters:Eo}=Xt.exports;Eo.o=function(e){return this.inspectOpts.colors=this.useColors,Yt.inspect(e,this.inspectOpts).split(`
|
|
6
|
-
`).map(t=>t.trim()).join(" ")};Eo.O=function(e){return this.inspectOpts.colors=this.useColors,Yt.inspect(e,this.inspectOpts)}});var Co=v((Rm,an)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?an.exports=vo():an.exports=_o()});var Oo=v((Pm,ko)=>{var pt;ko.exports=function(){if(!pt){try{pt=Co()("follow-redirects")}catch{}typeof pt!="function"&&(pt=function(){})}pt.apply(null,arguments)}});var dn=v((Am,hn)=>{var je=require("url"),cn=je.URL,Df=require("http"),jf=require("https"),Ao=require("stream").Writable,qo=require("assert"),Mo=Oo(),ln=["abort","aborted","connect","error","socket","timeout"],fn=Object.create(null);ln.forEach(function(e){fn[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}});var Nf=yt("ERR_INVALID_URL","Invalid URL",TypeError),Ro=yt("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),Bf=yt("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),Lf=yt("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),$f=yt("ERR_STREAM_WRITE_AFTER_END","write after end");function de(e,t){Ao.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var r=this;this._onNativeResponse=function(n){r._processResponse(n)},this._performRequest()}de.prototype=Object.create(Ao.prototype);de.prototype.abort=function(){To(this._currentRequest),this.emit("abort")};de.prototype.write=function(e,t,r){if(this._ending)throw new $f;if(!Ne(e)&&!Gf(e))throw new TypeError("data should be a string, Buffer or Uint8Array");if(mt(t)&&(r=t,t=null),e.length===0){r&&r();return}this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new Lf),this.abort())};de.prototype.end=function(e,t,r){if(mt(e)?(r=e,e=t=null):mt(t)&&(r=t,t=null),!e)this._ended=this._ending=!0,this._currentRequest.end(null,null,r);else{var n=this,i=this._currentRequest;this.write(e,t,function(){n._ended=!0,i.end(null,null,r)}),this._ending=!0}};de.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)};de.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)};de.prototype.setTimeout=function(e,t){var r=this;function n(s){s.setTimeout(e),s.removeListener("timeout",s.destroy),s.addListener("timeout",s.destroy)}function i(s){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout(function(){r.emit("timeout"),o()},e),n(s)}function o(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",o),r.removeListener("error",o),r.removeListener("response",o),t&&r.removeListener("timeout",t),r.socket||r._currentRequest.removeListener("socket",i)}return t&&this.on("timeout",t),this.socket?i(this.socket):this._currentRequest.once("socket",i),this.on("socket",n),this.on("abort",o),this.on("error",o),this.on("response",o),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){de.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}});["aborted","connection","socket"].forEach(function(e){Object.defineProperty(de.prototype,e,{get:function(){return this._currentRequest[e]}})});de.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}};de.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t){this.emit("error",new TypeError("Unsupported protocol "+e));return}if(this._options.agents){var r=e.slice(0,-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=t.request(this._options,this._onNativeResponse);n._redirectable=this;for(var i of ln)n.on(i,fn[i]);if(this._currentUrl=/^\//.test(this._options.path)?je.format(this._options):this._options.path,this._isRedirect){var o=0,s=this,a=this._requestBodyBuffers;(function c(d){if(n===s._currentRequest)if(d)s.emit("error",d);else if(o<a.length){var f=a[o++];n.finished||n.write(f.data,f.encoding,c)}else s._ended&&n.end()})()}};de.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var r=e.headers.location;if(!r||this._options.followRedirects===!1||t<300||t>=400){e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[];return}if(To(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects){this.emit("error",new Bf);return}var n,i=this._options.beforeRedirect;i&&(n=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var o=this._options.method;((t===301||t===302)&&this._options.method==="POST"||t===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],un(/^content-/i,this._options.headers));var s=un(/^host$/i,this._options.headers),a=je.parse(this._currentUrl),c=s||a.host,d=/^\w+:/.test(r)?this._currentUrl:je.format(Object.assign(a,{host:c})),f;try{f=je.resolve(d,r)}catch(S){this.emit("error",new Ro({cause:S}));return}Mo("redirecting to",f),this._isRedirect=!0;var p=je.parse(f);if(Object.assign(this._options,p),(p.protocol!==a.protocol&&p.protocol!=="https:"||p.host!==c&&!Hf(p.host,c))&&un(/^(?:authorization|cookie)$/i,this._options.headers),mt(i)){var y={headers:e.headers,statusCode:t},m={url:d,method:o,headers:n};try{i(this._options,y,m)}catch(S){this.emit("error",S);return}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(S){this.emit("error",new Ro({cause:S}))}};function Fo(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach(function(n){var i=n+":",o=r[i]=e[n],s=t[n]=Object.create(o);function a(d,f,p){if(Ne(d)){var y;try{y=Po(new cn(d))}catch{y=je.parse(d)}if(!Ne(y.protocol))throw new Nf({input:d});d=y}else cn&&d instanceof cn?d=Po(d):(p=f,f=d,d={protocol:i});return mt(f)&&(p=f,f=null),f=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},d,f),f.nativeProtocols=r,!Ne(f.host)&&!Ne(f.hostname)&&(f.hostname="::1"),qo.equal(f.protocol,i,"protocol mismatch"),Mo("options",f),new de(f,p)}function c(d,f,p){var y=s.request(d,f,p);return y.end(),y}Object.defineProperties(s,{request:{value:a,configurable:!0,enumerable:!0,writable:!0},get:{value:c,configurable:!0,enumerable:!0,writable:!0}})}),t}function Uf(){}function Po(e){var t={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:e.pathname+e.search,href:e.href};return e.port!==""&&(t.port=Number(e.port)),t}function un(e,t){var r;for(var n in t)e.test(n)&&(r=t[n],delete t[n]);return r===null||typeof r>"u"?void 0:String(r).trim()}function yt(e,t,r){function n(i){Error.captureStackTrace(this,this.constructor),Object.assign(this,i||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return n.prototype=new(r||Error),n.prototype.constructor=n,n.prototype.name="Error ["+e+"]",n}function To(e){for(var t of ln)e.removeListener(t,fn[t]);e.on("error",Uf),e.abort()}function Hf(e,t){qo(Ne(e)&&Ne(t));var r=e.length-t.length-1;return r>0&&e[r]==="."&&e.endsWith(t)}function Ne(e){return typeof e=="string"||e instanceof String}function mt(e){return typeof e=="function"}function Gf(e){return typeof e=="object"&&"length"in e}hn.exports=Fo({http:Df,https:jf});hn.exports.wrap=Fo});var pn=v((qm,zf)=>{zf.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 Lo=v((Mm,Bo)=>{"use strict";var gt=ne(),Io=Qr(),Jf=Zr(),Wf=$t(),Vf=require("http"),Yf=require("https"),Xf=dn().http,Kf=dn().https,Do=require("url"),Qf=require("zlib"),Zf=pn(),Kt=Gt(),mn=Ht(),jo=/https:?/;function No(e,t,r){if(e.hostname=t.host,e.host=t.host,e.port=t.port,e.path=r,t.auth){var n=Buffer.from(t.auth.username+":"+t.auth.password,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+n}e.beforeRedirect=function(o){o.headers.host=o.host,No(o,t,o.href)}}Bo.exports=function(t){return new Promise(function(n,i){var o=function(_){n(_)},s=function(_){i(_)},a=t.data,c=t.headers;if("User-Agent"in c||"user-agent"in c?!c["User-Agent"]&&!c["user-agent"]&&(delete c["User-Agent"],delete c["user-agent"]):c["User-Agent"]="axios/"+Zf.version,a&&!gt.isStream(a)){if(!Buffer.isBuffer(a))if(gt.isArrayBuffer(a))a=Buffer.from(new Uint8Array(a));else if(gt.isString(a))a=Buffer.from(a,"utf-8");else return s(Kt("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",t));c["Content-Length"]=a.length}var d=void 0;if(t.auth){var f=t.auth.username||"",p=t.auth.password||"";d=f+":"+p}var y=Jf(t.baseURL,t.url),m=Do.parse(y),S=m.protocol||"http:";if(!d&&m.auth){var O=m.auth.split(":"),R=O[0]||"",M=O[1]||"";d=R+":"+M}d&&delete c.Authorization;var $=jo.test(S),z=$?t.httpsAgent:t.httpAgent,G={path:Wf(m.path,t.params,t.paramsSerializer).replace(/^\?/,""),method:t.method.toUpperCase(),headers:c,agent:z,agents:{http:t.httpAgent,https:t.httpsAgent},auth:d};t.socketPath?G.socketPath=t.socketPath:(G.hostname=m.hostname,G.port=m.port);var re=t.proxy;if(!re&&re!==!1){var ve=S.slice(0,-1)+"_proxy",Ce=process.env[ve]||process.env[ve.toUpperCase()];if(Ce){var ae=Do.parse(Ce),k=process.env.no_proxy||process.env.NO_PROXY,T=!0;if(k){var F=k.split(",").map(function(_){return _.trim()});T=!F.some(function(_){return _?_==="*"||_[0]==="."&&m.hostname.substr(m.hostname.length-_.length)===_?!0:m.hostname===_:!1})}if(T&&(re={host:ae.hostname,port:ae.port,protocol:ae.protocol},ae.auth)){var U=ae.auth.split(":");re.auth={username:U[0],password:U[1]}}}}re&&(G.headers.host=m.hostname+(m.port?":"+m.port:""),No(G,re,S+"//"+m.hostname+(m.port?":"+m.port:"")+G.path));var P,L=$&&(re?jo.test(re.protocol):!0);t.transport?P=t.transport:t.maxRedirects===0?P=L?Yf:Vf:(t.maxRedirects&&(G.maxRedirects=t.maxRedirects),P=L?Kf:Xf),t.maxBodyLength>-1&&(G.maxBodyLength=t.maxBodyLength);var C=P.request(G,function(_){if(!C.aborted){var A=_,ke=_.req||C;if(_.statusCode!==204&&ke.method!=="HEAD"&&t.decompress!==!1)switch(_.headers["content-encoding"]){case"gzip":case"compress":case"deflate":A=A.pipe(Qf.createUnzip()),delete _.headers["content-encoding"];break}var Te={status:_.statusCode,statusText:_.statusMessage,headers:_.headers,config:t,request:ke};if(t.responseType==="stream")Te.data=A,Io(o,s,Te);else{var ce=[],pe=0;A.on("data",function(me){ce.push(me),pe+=me.length,t.maxContentLength>-1&&pe>t.maxContentLength&&(A.destroy(),s(Kt("maxContentLength size of "+t.maxContentLength+" exceeded",t,null,ke)))}),A.on("error",function(me){C.aborted||s(mn(me,t,null,ke))}),A.on("end",function(){var me=Buffer.concat(ce);t.responseType!=="arraybuffer"&&(me=me.toString(t.responseEncoding),(!t.responseEncoding||t.responseEncoding==="utf8")&&(me=gt.stripBOM(me))),Te.data=me,Io(o,s,Te)})}}});if(C.on("error",function(_){C.aborted&&_.code!=="ERR_FR_TOO_MANY_REDIRECTS"||s(mn(_,t,null,C))}),t.timeout){var j=parseInt(t.timeout,10);if(isNaN(j)){s(Kt("error trying to parse `config.timeout` to int",t,"ERR_PARSE_TIMEOUT",C));return}C.setTimeout(j,function(){C.abort(),s(Kt("timeout of "+j+"ms exceeded",t,t.transitional&&t.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",C))})}t.cancelToken&&t.cancelToken.promise.then(function(_){C.aborted||(C.abort(),s(_))}),gt.isStream(a)?a.on("error",function(_){s(mn(_,t,null,C))}).pipe(C):C.end(a)})}});var Zt=v((Fm,Ho)=>{"use strict";var X=ne(),$o=Xi(),eh=Ht(),th={"Content-Type":"application/x-www-form-urlencoded"};function Uo(e,t){!X.isUndefined(e)&&X.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function rh(){var e;return typeof XMLHttpRequest<"u"?e=po():typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]"&&(e=Lo()),e}function nh(e,t,r){if(X.isString(e))try{return(t||JSON.parse)(e),X.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}var Qt={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:rh(),transformRequest:[function(t,r){return $o(r,"Accept"),$o(r,"Content-Type"),X.isFormData(t)||X.isArrayBuffer(t)||X.isBuffer(t)||X.isStream(t)||X.isFile(t)||X.isBlob(t)?t:X.isArrayBufferView(t)?t.buffer:X.isURLSearchParams(t)?(Uo(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):X.isObject(t)||r&&r["Content-Type"]==="application/json"?(Uo(r,"application/json"),nh(t)):t}],transformResponse:[function(t){var r=this.transitional,n=r&&r.silentJSONParsing,i=r&&r.forcedJSONParsing,o=!n&&this.responseType==="json";if(o||i&&X.isString(t)&&t.length)try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?eh(s,this,"E_JSON_PARSE"):s}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};Qt.headers={common:{Accept:"application/json, text/plain, */*"}};X.forEach(["delete","get","head"],function(t){Qt.headers[t]={}});X.forEach(["post","put","patch"],function(t){Qt.headers[t]=X.merge(th)});Ho.exports=Qt});var zo=v((Tm,Go)=>{"use strict";var ih=ne(),oh=Zt();Go.exports=function(t,r,n){var i=this||oh;return ih.forEach(n,function(s){t=s.call(i,t,r)}),t}});var yn=v((Im,Jo)=>{"use strict";Jo.exports=function(t){return!!(t&&t.__CANCEL__)}});var Yo=v((Dm,Vo)=>{"use strict";var Wo=ne(),gn=zo(),sh=yn(),ah=Zt();function vn(e){e.cancelToken&&e.cancelToken.throwIfRequested()}Vo.exports=function(t){vn(t),t.headers=t.headers||{},t.data=gn.call(t,t.data,t.headers,t.transformRequest),t.headers=Wo.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Wo.forEach(["delete","get","head","post","put","patch","common"],function(i){delete t.headers[i]});var r=t.adapter||ah.adapter;return r(t).then(function(i){return vn(t),i.data=gn.call(t,i.data,i.headers,t.transformResponse),i},function(i){return sh(i)||(vn(t),i&&i.response&&(i.response.data=gn.call(t,i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})}});var bn=v((jm,Xo)=>{"use strict";var Q=ne();Xo.exports=function(t,r){r=r||{};var n={},i=["url","method","data"],o=["headers","auth","proxy","params"],s=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function c(y,m){return Q.isPlainObject(y)&&Q.isPlainObject(m)?Q.merge(y,m):Q.isPlainObject(m)?Q.merge({},m):Q.isArray(m)?m.slice():m}function d(y){Q.isUndefined(r[y])?Q.isUndefined(t[y])||(n[y]=c(void 0,t[y])):n[y]=c(t[y],r[y])}Q.forEach(i,function(m){Q.isUndefined(r[m])||(n[m]=c(void 0,r[m]))}),Q.forEach(o,d),Q.forEach(s,function(m){Q.isUndefined(r[m])?Q.isUndefined(t[m])||(n[m]=c(void 0,t[m])):n[m]=c(void 0,r[m])}),Q.forEach(a,function(m){m in r?n[m]=c(t[m],r[m]):m in t&&(n[m]=c(void 0,t[m]))});var f=i.concat(o).concat(s).concat(a),p=Object.keys(t).concat(Object.keys(r)).filter(function(m){return f.indexOf(m)===-1});return Q.forEach(p,d),n}});var ts=v((Nm,es)=>{"use strict";var Qo=pn(),wn={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){wn[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var Ko={},ch=Qo.version.split(".");function Zo(e,t){for(var r=t?t.split("."):ch,n=e.split("."),i=0;i<3;i++){if(r[i]>n[i])return!0;if(r[i]<n[i])return!1}return!1}wn.transitional=function(t,r,n){var i=r&&Zo(r);function o(s,a){return"[Axios v"+Qo.version+"] Transitional option '"+s+"'"+a+(n?". "+n:"")}return function(s,a,c){if(t===!1)throw new Error(o(a," has been removed in "+r));return i&&!Ko[a]&&(Ko[a]=!0,console.warn(o(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(s,a,c):!0}};function uh(e,t,r){if(typeof e!="object")throw new TypeError("options must be an object");for(var n=Object.keys(e),i=n.length;i-- >0;){var o=n[i],s=t[o];if(s){var a=e[o],c=a===void 0||s(a,o,e);if(c!==!0)throw new TypeError("option "+o+" must be "+c);continue}if(r!==!0)throw Error("Unknown option "+o)}}es.exports={isOlderVersion:Zo,assertOptions:uh,validators:wn}});var as=v((Bm,ss)=>{"use strict";var is=ne(),lh=$t(),rs=Vi(),ns=Yo(),er=bn(),os=ts(),Ve=os.validators;function vt(e){this.defaults=e,this.interceptors={request:new rs,response:new rs}}vt.prototype.request=function(t){typeof t=="string"?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=er(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;r!==void 0&&os.assertOptions(r,{silentJSONParsing:Ve.transitional(Ve.boolean,"1.0.0"),forcedJSONParsing:Ve.transitional(Ve.boolean,"1.0.0"),clarifyTimeoutError:Ve.transitional(Ve.boolean,"1.0.0")},!1);var n=[],i=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(t)===!1||(i=i&&y.synchronous,n.unshift(y.fulfilled,y.rejected))});var o=[];this.interceptors.response.forEach(function(y){o.push(y.fulfilled,y.rejected)});var s;if(!i){var a=[ns,void 0];for(Array.prototype.unshift.apply(a,n),a=a.concat(o),s=Promise.resolve(t);a.length;)s=s.then(a.shift(),a.shift());return s}for(var c=t;n.length;){var d=n.shift(),f=n.shift();try{c=d(c)}catch(p){f(p);break}}try{s=ns(c)}catch(p){return Promise.reject(p)}for(;o.length;)s=s.then(o.shift(),o.shift());return s};vt.prototype.getUri=function(t){return t=er(this.defaults,t),lh(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};is.forEach(["delete","get","head","options"],function(t){vt.prototype[t]=function(r,n){return this.request(er(n||{},{method:t,url:r,data:(n||{}).data}))}});is.forEach(["post","put","patch"],function(t){vt.prototype[t]=function(r,n,i){return this.request(er(i||{},{method:t,url:r,data:n}))}});ss.exports=vt});var xn=v((Lm,cs)=>{"use strict";function Sn(e){this.message=e}Sn.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};Sn.prototype.__CANCEL__=!0;cs.exports=Sn});var ls=v(($m,us)=>{"use strict";var fh=xn();function tr(e){if(typeof e!="function")throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(i){t=i});var r=this;e(function(i){r.reason||(r.reason=new fh(i),t(r.reason))})}tr.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};tr.source=function(){var t,r=new tr(function(i){t=i});return{token:r,cancel:t}};us.exports=tr});var hs=v((Um,fs)=>{"use strict";fs.exports=function(t){return function(n){return t.apply(null,n)}}});var ps=v((Hm,ds)=>{"use strict";ds.exports=function(t){return typeof t=="object"&&t.isAxiosError===!0}});var gs=v((Gm,En)=>{"use strict";var ms=ne(),hh=Wr(),rr=as(),dh=bn(),ph=Zt();function ys(e){var t=new rr(e),r=hh(rr.prototype.request,t);return ms.extend(r,rr.prototype,t),ms.extend(r,t),r}var we=ys(ph);we.Axios=rr;we.create=function(t){return ys(dh(we.defaults,t))};we.Cancel=xn();we.CancelToken=ls();we.isCancel=yn();we.all=function(t){return Promise.all(t)};we.spread=hs();we.isAxiosError=ps();En.exports=we;En.exports.default=we});var _n=v((zm,vs)=>{vs.exports=gs()});var ws=v((Jm,bs)=>{"use strict";var mh=/[|\\{}()[\]^$+*?.]/g;bs.exports=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(mh,"\\$&")}});var xs=v((Wm,Ss)=>{"use strict";Ss.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 Cn=v((Vm,ks)=>{var Be=xs(),Cs={};for(nr in Be)Be.hasOwnProperty(nr)&&(Cs[Be[nr]]=nr);var nr,x=ks.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(ie in x)if(x.hasOwnProperty(ie)){if(!("channels"in x[ie]))throw new Error("missing channels property: "+ie);if(!("labels"in x[ie]))throw new Error("missing channel labels property: "+ie);if(x[ie].labels.length!==x[ie].channels)throw new Error("channel and label counts mismatch: "+ie);Es=x[ie].channels,_s=x[ie].labels,delete x[ie].channels,delete x[ie].labels,Object.defineProperty(x[ie],"channels",{value:Es}),Object.defineProperty(x[ie],"labels",{value:_s})}var Es,_s,ie;x.rgb.hsl=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),o=Math.max(t,r,n),s=o-i,a,c,d;return o===i?a=0:t===o?a=(r-n)/s:r===o?a=2+(n-t)/s:n===o&&(a=4+(t-r)/s),a=Math.min(a*60,360),a<0&&(a+=360),d=(i+o)/2,o===i?c=0:d<=.5?c=s/(o+i):c=s/(2-o-i),[a,c*100,d*100]};x.rgb.hsv=function(e){var t,r,n,i,o,s=e[0]/255,a=e[1]/255,c=e[2]/255,d=Math.max(s,a,c),f=d-Math.min(s,a,c),p=function(y){return(d-y)/6/f+1/2};return f===0?i=o=0:(o=f/d,t=p(s),r=p(a),n=p(c),s===d?i=n-r:a===d?i=1/3+t-n:c===d&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,o*100,d*100]};x.rgb.hwb=function(e){var t=e[0],r=e[1],n=e[2],i=x.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,o*100,n*100]};x.rgb.cmyk=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i,o,s,a;return a=Math.min(1-t,1-r,1-n),i=(1-t-a)/(1-a)||0,o=(1-r-a)/(1-a)||0,s=(1-n-a)/(1-a)||0,[i*100,o*100,s*100,a*100]};function yh(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}x.rgb.keyword=function(e){var t=Cs[e];if(t)return t;var r=1/0,n;for(var i in Be)if(Be.hasOwnProperty(i)){var o=Be[i],s=yh(e,o);s<r&&(r=s,n=i)}return n};x.keyword.rgb=function(e){return Be[e]};x.rgb.xyz=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var i=t*.4124+r*.3576+n*.1805,o=t*.2126+r*.7152+n*.0722,s=t*.0193+r*.1192+n*.9505;return[i*100,o*100,s*100]};x.rgb.lab=function(e){var t=x.rgb.xyz(e),r=t[0],n=t[1],i=t[2],o,s,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,o=116*n-16,s=500*(r-n),a=200*(n-i),[o,s,a]};x.hsl.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,o,s,a,c;if(r===0)return c=n*255,[c,c,c];n<.5?o=n*(1+r):o=n+r-n*r,i=2*n-o,a=[0,0,0];for(var d=0;d<3;d++)s=t+1/3*-(d-1),s<0&&s++,s>1&&s--,6*s<1?c=i+(o-i)*6*s:2*s<1?c=o:3*s<2?c=i+(o-i)*(2/3-s)*6:c=i,a[d]=c*255;return a};x.hsl.hsv=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,i=r,o=Math.max(n,.01),s,a;return n*=2,r*=n<=1?n:2-n,i*=o<=1?o:2-o,a=(n+r)/2,s=n===0?2*i/(o+i):2*r/(n+r),[t,s*100,a*100]};x.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,n=e[2]/100,i=Math.floor(t)%6,o=t-Math.floor(t),s=255*n*(1-r),a=255*n*(1-r*o),c=255*n*(1-r*(1-o));switch(n*=255,i){case 0:return[n,c,s];case 1:return[a,n,s];case 2:return[s,n,c];case 3:return[s,a,n];case 4:return[c,s,n];case 5:return[n,s,a]}};x.hsv.hsl=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01),o,s,a;return a=(2-r)*n,o=(2-r)*i,s=r*i,s/=o<=1?o:2-o,s=s||0,a/=2,[t,s*100,a*100]};x.hwb.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i=r+n,o,s,a,c;i>1&&(r/=i,n/=i),o=Math.floor(6*t),s=1-n,a=6*t-o,o&1&&(a=1-a),c=r+a*(s-r);var d,f,p;switch(o){default:case 6:case 0:d=s,f=c,p=r;break;case 1:d=c,f=s,p=r;break;case 2:d=r,f=s,p=c;break;case 3:d=r,f=c,p=s;break;case 4:d=c,f=r,p=s;break;case 5:d=s,f=r,p=c;break}return[d*255,f*255,p*255]};x.cmyk.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100,o,s,a;return o=1-Math.min(1,t*(1-i)+i),s=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i),[o*255,s*255,a*255]};x.xyz.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,i,o,s;return i=t*3.2406+r*-1.5372+n*-.4986,o=t*-.9689+r*1.8758+n*.0415,s=t*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),s=Math.min(Math.max(0,s),1),[i*255,o*255,s*255]};x.xyz.lab=function(e){var t=e[0],r=e[1],n=e[2],i,o,s;return t/=95.047,r/=100,n/=108.883,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=116*r-16,o=500*(t-r),s=200*(r-n),[i,o,s]};x.lab.xyz=function(e){var t=e[0],r=e[1],n=e[2],i,o,s;o=(t+16)/116,i=r/500+o,s=o-n/200;var a=Math.pow(o,3),c=Math.pow(i,3),d=Math.pow(s,3);return o=a>.008856?a:(o-16/116)/7.787,i=c>.008856?c:(i-16/116)/7.787,s=d>.008856?d:(s-16/116)/7.787,i*=95.047,o*=100,s*=108.883,[i,o,s]};x.lab.lch=function(e){var t=e[0],r=e[1],n=e[2],i,o,s;return i=Math.atan2(n,r),o=i*360/2/Math.PI,o<0&&(o+=360),s=Math.sqrt(r*r+n*n),[t,s,o]};x.lch.lab=function(e){var t=e[0],r=e[1],n=e[2],i,o,s;return s=n/360*2*Math.PI,i=r*Math.cos(s),o=r*Math.sin(s),[t,i,o]};x.rgb.ansi16=function(e){var t=e[0],r=e[1],n=e[2],i=1 in arguments?arguments[1]:x.rgb.hsv(e)[2];if(i=Math.round(i/50),i===0)return 30;var o=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return i===2&&(o+=60),o};x.hsv.ansi16=function(e){return x.rgb.ansi16(x.hsv.rgb(e),e[2])};x.rgb.ansi256=function(e){var t=e[0],r=e[1],n=e[2];if(t===r&&r===n)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;var i=16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};x.ansi16.rgb=function(e){var t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];var r=(~~(e>50)+1)*.5,n=(t&1)*r*255,i=(t>>1&1)*r*255,o=(t>>2&1)*r*255;return[n,i,o]};x.ansi256.rgb=function(e){if(e>=232){var t=(e-232)*10+8;return[t,t,t]}e-=16;var r,n=Math.floor(e/36)/5*255,i=Math.floor((r=e%36)/6)/5*255,o=r%6/5*255;return[n,i,o]};x.rgb.hex=function(e){var t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255),r=t.toString(16).toUpperCase();return"000000".substring(r.length)+r};x.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var r=t[0];t[0].length===3&&(r=r.split("").map(function(a){return a+a}).join(""));var n=parseInt(r,16),i=n>>16&255,o=n>>8&255,s=n&255;return[i,o,s]};x.rgb.hcg=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),o=Math.min(Math.min(t,r),n),s=i-o,a,c;return s<1?a=o/(1-s):a=0,s<=0?c=0:i===t?c=(r-n)/s%6:i===r?c=2+(n-t)/s:c=4+(t-r)/s+4,c/=6,c%=1,[c*360,s*100,a*100]};x.hsl.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1,i=0;return r<.5?n=2*t*r:n=2*t*(1-r),n<1&&(i=(r-.5*n)/(1-n)),[e[0],n*100,i*100]};x.hsv.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=t*r,i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],n*100,i*100]};x.hcg.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];var i=[0,0,0],o=t%1*6,s=o%1,a=1-s,c=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=s,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]=s;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return c=(1-r)*n,[(r*i[0]+c)*255,(r*i[1]+c)*255,(r*i[2]+c)*255]};x.hcg.hsv=function(e){var t=e[1]/100,r=e[2]/100,n=t+r*(1-t),i=0;return n>0&&(i=t/n),[e[0],i*100,n*100]};x.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100,n=r*(1-t)+.5*t,i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],i*100,n*100]};x.hcg.hwb=function(e){var t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};x.hwb.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1-r,i=n-t,o=0;return i<1&&(o=(n-i)/(1-i)),[e[0],i*100,o*100]};x.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};x.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};x.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};x.gray.hsl=x.gray.hsv=function(e){return[0,0,e[0]]};x.gray.hwb=function(e){return[0,100,e[0]]};x.gray.cmyk=function(e){return[0,0,0,e[0]]};x.gray.lab=function(e){return[e[0],0,0]};x.gray.hex=function(e){var t=Math.round(e[0]/100*255)&255,r=(t<<16)+(t<<8)+t,n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};x.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[t/255*100]}});var Rs=v((Ym,Os)=>{var ir=Cn();function gh(){for(var e={},t=Object.keys(ir),r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function vh(e){var t=gh(),r=[e];for(t[e].distance=0;r.length;)for(var n=r.pop(),i=Object.keys(ir[n]),o=i.length,s=0;s<o;s++){var a=i[s],c=t[a];c.distance===-1&&(c.distance=t[n].distance+1,c.parent=n,r.unshift(a))}return t}function bh(e,t){return function(r){return t(e(r))}}function wh(e,t){for(var r=[t[e].parent,e],n=ir[t[e].parent][e],i=t[e].parent;t[i].parent;)r.unshift(t[i].parent),n=bh(ir[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}Os.exports=function(e){for(var t=vh(e),r={},n=Object.keys(t),i=n.length,o=0;o<i;o++){var s=n[o],a=t[s];a.parent!==null&&(r[s]=wh(s,t))}return r}});var As=v((Xm,Ps)=>{var kn=Cn(),Sh=Rs(),Ye={},xh=Object.keys(kn);function Eh(e){var t=function(r){return r==null?r:(arguments.length>1&&(r=Array.prototype.slice.call(arguments)),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function _h(e){var t=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var n=e(r);if(typeof n=="object")for(var i=n.length,o=0;o<i;o++)n[o]=Math.round(n[o]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}xh.forEach(function(e){Ye[e]={},Object.defineProperty(Ye[e],"channels",{value:kn[e].channels}),Object.defineProperty(Ye[e],"labels",{value:kn[e].labels});var t=Sh(e),r=Object.keys(t);r.forEach(function(n){var i=t[n];Ye[e][n]=_h(i),Ye[e][n].raw=Eh(i)})});Ps.exports=Ye});var Ms=v((Km,qs)=>{"use strict";var Xe=As(),or=(e,t)=>function(){return`\x1B[${e.apply(Xe,arguments)+t}m`},sr=(e,t)=>function(){let r=e.apply(Xe,arguments);return`\x1B[${38+t};5;${r}m`},ar=(e,t)=>function(){let r=e.apply(Xe,arguments);return`\x1B[${38+t};2;${r[0]};${r[1]};${r[2]}m`};function Ch(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.grey=t.color.gray;for(let i of Object.keys(t)){let o=t[i];for(let s of Object.keys(o)){let a=o[s];t[s]={open:`\x1B[${a[0]}m`,close:`\x1B[${a[1]}m`},o[s]=t[s],e.set(a[0],a[1])}Object.defineProperty(t,i,{value:o,enumerable:!1}),Object.defineProperty(t,"codes",{value:e,enumerable:!1})}let r=i=>i,n=(i,o,s)=>[i,o,s];t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",t.color.ansi={ansi:or(r,0)},t.color.ansi256={ansi256:sr(r,0)},t.color.ansi16m={rgb:ar(n,0)},t.bgColor.ansi={ansi:or(r,10)},t.bgColor.ansi256={ansi256:sr(r,10)},t.bgColor.ansi16m={rgb:ar(n,10)};for(let i of Object.keys(Xe)){if(typeof Xe[i]!="object")continue;let o=Xe[i];i==="ansi16"&&(i="ansi"),"ansi16"in o&&(t.color.ansi[i]=or(o.ansi16,0),t.bgColor.ansi[i]=or(o.ansi16,10)),"ansi256"in o&&(t.color.ansi256[i]=sr(o.ansi256,0),t.bgColor.ansi256[i]=sr(o.ansi256,10)),"rgb"in o&&(t.color.ansi16m[i]=ar(o.rgb,0),t.bgColor.ansi16m[i]=ar(o.rgb,10))}return t}Object.defineProperty(qs,"exports",{enumerable:!0,get:Ch})});var Ts=v((Qm,Fs)=>{"use strict";Fs.exports=(e,t)=>{t=t||process.argv;let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1?!0:n<i)}});var Ds=v((Zm,Is)=>{"use strict";var kh=require("os"),Se=Ts(),Z=process.env,Ke;Se("no-color")||Se("no-colors")||Se("color=false")?Ke=!1:(Se("color")||Se("colors")||Se("color=true")||Se("color=always"))&&(Ke=!0);"FORCE_COLOR"in Z&&(Ke=Z.FORCE_COLOR.length===0||parseInt(Z.FORCE_COLOR,10)!==0);function Oh(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Rh(e){if(Ke===!1)return 0;if(Se("color=16m")||Se("color=full")||Se("color=truecolor"))return 3;if(Se("color=256"))return 2;if(e&&!e.isTTY&&Ke!==!0)return 0;let t=Ke?1:0;if(process.platform==="win32"){let r=kh.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 Z)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in Z)||Z.CI_NAME==="codeship"?1:t;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 r=parseInt((Z.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Z.TERM_PROGRAM){case"iTerm.app":return r>=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:(Z.TERM==="dumb",t)}function On(e){let t=Rh(e);return Oh(t)}Is.exports={supportsColor:On,stdout:On(process.stdout),stderr:On(process.stderr)}});var $s=v((e1,Ls)=>{"use strict";var Ph=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,js=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Ah=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,qh=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,Mh=new Map([["n",`
|
|
7
|
-
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function Bs(e){return e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):Mh.get(e)||e}function Fh(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),i;for(let o of n)if(!isNaN(o))r.push(Number(o));else if(i=o.match(Ah))r.push(i[2].replace(qh,(s,a,c)=>a?Bs(a):c));else throw new Error(`Invalid Chalk template style argument: ${o} (in style '${e}')`);return r}function Th(e){js.lastIndex=0;let t=[],r;for(;(r=js.exec(e))!==null;){let n=r[1];if(r[2]){let i=Fh(n,r[2]);t.push([n].concat(i))}else t.push([n])}return t}function Ns(e,t){let r={};for(let i of t)for(let o of i.styles)r[o[0]]=i.inverse?null:o.slice(1);let n=e;for(let i of Object.keys(r))if(Array.isArray(r[i])){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);r[i].length>0?n=n[i].apply(n,r[i]):n=n[i]}return n}Ls.exports=(e,t)=>{let r=[],n=[],i=[];if(t.replace(Ph,(o,s,a,c,d,f)=>{if(s)i.push(Bs(s));else if(c){let p=i.join("");i=[],n.push(r.length===0?p:Ns(e,r)(p)),r.push({inverse:a,styles:Th(c)})}else if(d){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(Ns(e,r)(i.join(""))),i=[],r.pop()}else i.push(f)}),n.push(i.join("")),r.length>0){let o=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(o)}return n.join("")}});var ur=v((t1,wt)=>{"use strict";var Pn=ws(),W=Ms(),Rn=Ds().stdout,Ih=$s(),Hs=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),Gs=["ansi","ansi","ansi256","ansi16m"],zs=new Set(["gray"]),Qe=Object.create(null);function Us(e,t){t=t||{};let r=Rn?Rn.level:0;e.level=t.level===void 0?r:t.level,e.enabled="enabled"in t?t.enabled:e.level>0}function bt(e){if(!this||!(this instanceof bt)||this.template){let t={};return Us(t,e),t.template=function(){let r=[].slice.call(arguments);return Nh.apply(null,[t.template].concat(r))},Object.setPrototypeOf(t,bt.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=bt,t.template}Us(this,e)}Hs&&(W.blue.open="\x1B[94m");for(let e of Object.keys(W))W[e].closeRe=new RegExp(Pn(W[e].close),"g"),Qe[e]={get(){let t=W[e];return cr.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}};Qe.visible={get(){return cr.call(this,this._styles||[],!0,"visible")}};W.color.closeRe=new RegExp(Pn(W.color.close),"g");for(let e of Object.keys(W.color.ansi))zs.has(e)||(Qe[e]={get(){let t=this.level;return function(){let n={open:W.color[Gs[t]][e].apply(null,arguments),close:W.color.close,closeRe:W.color.closeRe};return cr.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});W.bgColor.closeRe=new RegExp(Pn(W.bgColor.close),"g");for(let e of Object.keys(W.bgColor.ansi)){if(zs.has(e))continue;let t="bg"+e[0].toUpperCase()+e.slice(1);Qe[t]={get(){let r=this.level;return function(){let i={open:W.bgColor[Gs[r]][e].apply(null,arguments),close:W.bgColor.close,closeRe:W.bgColor.closeRe};return cr.call(this,this._styles?this._styles.concat(i):[i],this._empty,e)}}}}var Dh=Object.defineProperties(()=>{},Qe);function cr(e,t,r){let n=function(){return jh.apply(n,arguments)};n._styles=e,n._empty=t;let i=this;return Object.defineProperty(n,"level",{enumerable:!0,get(){return i.level},set(o){i.level=o}}),Object.defineProperty(n,"enabled",{enumerable:!0,get(){return i.enabled},set(o){i.enabled=o}}),n.hasGrey=this.hasGrey||r==="gray"||r==="grey",n.__proto__=Dh,n}function jh(){let e=arguments,t=e.length,r=String(arguments[0]);if(t===0)return"";if(t>1)for(let i=1;i<t;i++)r+=" "+e[i];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;let n=W.dim.open;Hs&&this.hasGrey&&(W.dim.open="");for(let i of this._styles.slice().reverse())r=i.open+r.replace(i.closeRe,i.open)+i.close,r=r.replace(/\r?\n/g,`${i.close}$&${i.open}`);return W.dim.open=n,r}function Nh(e,t){if(!Array.isArray(t))return[].slice.call(arguments,1).join(" ");let r=[].slice.call(arguments,2),n=[t.raw[0]];for(let i=1;i<t.length;i++)n.push(String(r[i-1]).replace(/[{}\\]/g,"\\$&")),n.push(String(t.raw[i]));return Ih(e,n.join(""))}Object.defineProperties(bt.prototype,Qe);wt.exports=bt();wt.exports.supportsColor=Rn;wt.exports.default=wt.exports});var Mn=v((n1,qn)=>{var Bh=require("fs"),Lh=require("path");function Vs(e){console.log(`[dotenv][DEBUG] ${e}`)}var $h=`
|
|
8
|
-
`,Uh=/^\s*([\w.-]+)\s*=\s*(.*)?\s*$/,Hh=/\\n/g,Gh=/\n|\r|\r\n/;function Ys(e,t){let r=!!(t&&t.debug),n={};return e.toString().split(Gh).forEach(function(i,o){let s=i.match(Uh);if(s!=null){let a=s[1],c=s[2]||"",d=c.length-1,f=c[0]==='"'&&c[d]==='"';c[0]==="'"&&c[d]==="'"||f?(c=c.substring(1,d),f&&(c=c.replace(Hh,$h))):c=c.trim(),n[a]=c}else r&&Vs(`did not match key and value when parsing line ${o+1}: ${i}`)}),n}function zh(e){let t=Lh.resolve(process.cwd(),".env"),r="utf8",n=!1;e&&(e.path!=null&&(t=e.path),e.encoding!=null&&(r=e.encoding),e.debug!=null&&(n=!0));try{let i=Ys(Bh.readFileSync(t,{encoding:r}),{debug:n});return Object.keys(i).forEach(function(o){Object.prototype.hasOwnProperty.call(process.env,o)?n&&Vs(`"${o}" is already defined in \`process.env\` and will not be overwritten`):process.env[o]=i[o]}),{parsed:i}}catch(i){return{error:i}}}qn.exports.config=zh;qn.exports.parse=Ys});var ue=v(Fn=>{"use strict";Fn.fromCallback=function(e){return Object.defineProperty(function(...t){if(typeof t[t.length-1]=="function")e.apply(this,t);else return new Promise((r,n)=>{e.call(this,...t,(i,o)=>i!=null?n(i):r(o))})},"name",{value:e.name})};Fn.fromPromise=function(e){return Object.defineProperty(function(...t){let r=t[t.length-1];if(typeof r!="function")return e.apply(this,t);e.apply(this,t.slice(0,-1)).then(n=>r(null,n),r)},"name",{value:e.name})}});var Ks=v((o1,Xs)=>{var Pe=require("constants"),Jh=process.cwd,fr=null,Wh=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return fr||(fr=Jh.call(process)),fr};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Tn=process.chdir,process.chdir=function(e){fr=null,Tn.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Tn));var Tn;Xs.exports=Vh;function Vh(e){Pe.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||r(e),e.chown=o(e.chown),e.fchown=o(e.fchown),e.lchown=o(e.lchown),e.chmod=n(e.chmod),e.fchmod=n(e.fchmod),e.lchmod=n(e.lchmod),e.chownSync=s(e.chownSync),e.fchownSync=s(e.fchownSync),e.lchownSync=s(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=a(e.stat),e.fstat=a(e.fstat),e.lstat=a(e.lstat),e.statSync=c(e.statSync),e.fstatSync=c(e.fstatSync),e.lstatSync=c(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(f,p,y){y&&process.nextTick(y)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(f,p,y,m){m&&process.nextTick(m)},e.lchownSync=function(){}),Wh==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(f){function p(y,m,S){var O=Date.now(),R=0;f(y,m,function M($){if($&&($.code==="EACCES"||$.code==="EPERM")&&Date.now()-O<6e4){setTimeout(function(){e.stat(m,function(z,G){z&&z.code==="ENOENT"?f(y,m,M):S($)})},R),R<100&&(R+=10);return}S&&S($)})}return Object.setPrototypeOf&&Object.setPrototypeOf(p,f),p}(e.rename)),e.read=typeof e.read!="function"?e.read:function(f){function p(y,m,S,O,R,M){var $;if(M&&typeof M=="function"){var z=0;$=function(G,re,ve){if(G&&G.code==="EAGAIN"&&z<10)return z++,f.call(e,y,m,S,O,R,$);M.apply(this,arguments)}}return f.call(e,y,m,S,O,R,$)}return Object.setPrototypeOf&&Object.setPrototypeOf(p,f),p}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(f){return function(p,y,m,S,O){for(var R=0;;)try{return f.call(e,p,y,m,S,O)}catch(M){if(M.code==="EAGAIN"&&R<10){R++;continue}throw M}}}(e.readSync);function t(f){f.lchmod=function(p,y,m){f.open(p,Pe.O_WRONLY|Pe.O_SYMLINK,y,function(S,O){if(S){m&&m(S);return}f.fchmod(O,y,function(R){f.close(O,function(M){m&&m(R||M)})})})},f.lchmodSync=function(p,y){var m=f.openSync(p,Pe.O_WRONLY|Pe.O_SYMLINK,y),S=!0,O;try{O=f.fchmodSync(m,y),S=!1}finally{if(S)try{f.closeSync(m)}catch{}else f.closeSync(m)}return O}}function r(f){Pe.hasOwnProperty("O_SYMLINK")&&f.futimes?(f.lutimes=function(p,y,m,S){f.open(p,Pe.O_SYMLINK,function(O,R){if(O){S&&S(O);return}f.futimes(R,y,m,function(M){f.close(R,function($){S&&S(M||$)})})})},f.lutimesSync=function(p,y,m){var S=f.openSync(p,Pe.O_SYMLINK),O,R=!0;try{O=f.futimesSync(S,y,m),R=!1}finally{if(R)try{f.closeSync(S)}catch{}else f.closeSync(S)}return O}):f.futimes&&(f.lutimes=function(p,y,m,S){S&&process.nextTick(S)},f.lutimesSync=function(){})}function n(f){return f&&function(p,y,m){return f.call(e,p,y,function(S){d(S)&&(S=null),m&&m.apply(this,arguments)})}}function i(f){return f&&function(p,y){try{return f.call(e,p,y)}catch(m){if(!d(m))throw m}}}function o(f){return f&&function(p,y,m,S){return f.call(e,p,y,m,function(O){d(O)&&(O=null),S&&S.apply(this,arguments)})}}function s(f){return f&&function(p,y,m){try{return f.call(e,p,y,m)}catch(S){if(!d(S))throw S}}}function a(f){return f&&function(p,y,m){typeof y=="function"&&(m=y,y=null);function S(O,R){R&&(R.uid<0&&(R.uid+=4294967296),R.gid<0&&(R.gid+=4294967296)),m&&m.apply(this,arguments)}return y?f.call(e,p,y,S):f.call(e,p,S)}}function c(f){return f&&function(p,y){var m=y?f.call(e,p,y):f.call(e,p);return m&&(m.uid<0&&(m.uid+=4294967296),m.gid<0&&(m.gid+=4294967296)),m}}function d(f){if(!f||f.code==="ENOSYS")return!0;var p=!process.getuid||process.getuid()!==0;return!!(p&&(f.code==="EINVAL"||f.code==="EPERM"))}}});var ea=v((s1,Zs)=>{var Qs=require("stream").Stream;Zs.exports=Yh;function Yh(e){return{ReadStream:t,WriteStream:r};function t(n,i){if(!(this instanceof t))return new t(n,i);Qs.call(this);var o=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 s=Object.keys(i),a=0,c=s.length;a<c;a++){var d=s[a];this[d]=i[d]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){o._read()});return}e.open(this.path,this.flags,this.mode,function(f,p){if(f){o.emit("error",f),o.readable=!1;return}o.fd=p,o.emit("open",p),o._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);Qs.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 o=Object.keys(i),s=0,a=o.length;s<a;s++){var c=o[s];this[c]=i[c]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var ra=v((a1,ta)=>{"use strict";ta.exports=Kh;var Xh=Object.getPrototypeOf||function(e){return e.__proto__};function Kh(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:Xh(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}});var ee=v((c1,jn)=>{var H=require("fs"),Qh=Ks(),Zh=ea(),e0=ra(),hr=require("util"),K,pr;typeof Symbol=="function"&&typeof Symbol.for=="function"?(K=Symbol.for("graceful-fs.queue"),pr=Symbol.for("graceful-fs.previous")):(K="___graceful-fs.queue",pr="___graceful-fs.previous");function t0(){}function oa(e,t){Object.defineProperty(e,K,{get:function(){return t}})}var Le=t0;hr.debuglog?Le=hr.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Le=function(){var e=hr.format.apply(hr,arguments);e="GFS4: "+e.split(/\n/).join(`
|
|
9
|
-
GFS4: `),console.error(e)});H[K]||(na=global[K]||[],oa(H,na),H.close=function(e){function t(r,n){return e.call(H,r,function(i){i||ia(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,pr,{value:e}),t}(H.close),H.closeSync=function(e){function t(r){e.apply(H,arguments),ia()}return Object.defineProperty(t,pr,{value:e}),t}(H.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Le(H[K]),require("assert").equal(H[K].length,0)}));var na;global[K]||oa(global,H[K]);jn.exports=In(e0(H));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!H.__patched&&(jn.exports=In(H),H.__patched=!0);function In(e){Qh(e),e.gracefulify=In,e.createReadStream=re,e.createWriteStream=ve;var t=e.readFile;e.readFile=r;function r(k,T,F){return typeof T=="function"&&(F=T,T=null),U(k,T,F);function U(P,L,C,j){return t(P,L,function(q){q&&(q.code==="EMFILE"||q.code==="ENFILE")?Ze([U,[P,L,C],q,j||Date.now(),Date.now()]):typeof C=="function"&&C.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=i;function i(k,T,F,U){return typeof F=="function"&&(U=F,F=null),P(k,T,F,U);function P(L,C,j,q,_){return n(L,C,j,function(A){A&&(A.code==="EMFILE"||A.code==="ENFILE")?Ze([P,[L,C,j,q],A,_||Date.now(),Date.now()]):typeof q=="function"&&q.apply(this,arguments)})}}var o=e.appendFile;o&&(e.appendFile=s);function s(k,T,F,U){return typeof F=="function"&&(U=F,F=null),P(k,T,F,U);function P(L,C,j,q,_){return o(L,C,j,function(A){A&&(A.code==="EMFILE"||A.code==="ENFILE")?Ze([P,[L,C,j,q],A,_||Date.now(),Date.now()]):typeof q=="function"&&q.apply(this,arguments)})}}var a=e.copyFile;a&&(e.copyFile=c);function c(k,T,F,U){return typeof F=="function"&&(U=F,F=0),P(k,T,F,U);function P(L,C,j,q,_){return a(L,C,j,function(A){A&&(A.code==="EMFILE"||A.code==="ENFILE")?Ze([P,[L,C,j,q],A,_||Date.now(),Date.now()]):typeof q=="function"&&q.apply(this,arguments)})}}var d=e.readdir;e.readdir=p;var f=/^v[0-5]\./;function p(k,T,F){typeof T=="function"&&(F=T,T=null);var U=f.test(process.version)?function(C,j,q,_){return d(C,P(C,j,q,_))}:function(C,j,q,_){return d(C,j,P(C,j,q,_))};return U(k,T,F);function P(L,C,j,q){return function(_,A){_&&(_.code==="EMFILE"||_.code==="ENFILE")?Ze([U,[L,C,j],_,q||Date.now(),Date.now()]):(A&&A.sort&&A.sort(),typeof j=="function"&&j.call(this,_,A))}}}if(process.version.substr(0,4)==="v0.8"){var y=Zh(e);M=y.ReadStream,z=y.WriteStream}var m=e.ReadStream;m&&(M.prototype=Object.create(m.prototype),M.prototype.open=$);var S=e.WriteStream;S&&(z.prototype=Object.create(S.prototype),z.prototype.open=G),Object.defineProperty(e,"ReadStream",{get:function(){return M},set:function(k){M=k},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return z},set:function(k){z=k},enumerable:!0,configurable:!0});var O=M;Object.defineProperty(e,"FileReadStream",{get:function(){return O},set:function(k){O=k},enumerable:!0,configurable:!0});var R=z;Object.defineProperty(e,"FileWriteStream",{get:function(){return R},set:function(k){R=k},enumerable:!0,configurable:!0});function M(k,T){return this instanceof M?(m.apply(this,arguments),this):M.apply(Object.create(M.prototype),arguments)}function $(){var k=this;ae(k.path,k.flags,k.mode,function(T,F){T?(k.autoClose&&k.destroy(),k.emit("error",T)):(k.fd=F,k.emit("open",F),k.read())})}function z(k,T){return this instanceof z?(S.apply(this,arguments),this):z.apply(Object.create(z.prototype),arguments)}function G(){var k=this;ae(k.path,k.flags,k.mode,function(T,F){T?(k.destroy(),k.emit("error",T)):(k.fd=F,k.emit("open",F))})}function re(k,T){return new e.ReadStream(k,T)}function ve(k,T){return new e.WriteStream(k,T)}var Ce=e.open;e.open=ae;function ae(k,T,F,U){return typeof F=="function"&&(U=F,F=null),P(k,T,F,U);function P(L,C,j,q,_){return Ce(L,C,j,function(A,ke){A&&(A.code==="EMFILE"||A.code==="ENFILE")?Ze([P,[L,C,j,q],A,_||Date.now(),Date.now()]):typeof q=="function"&&q.apply(this,arguments)})}}return e}function Ze(e){Le("ENQUEUE",e[0].name,e[1]),H[K].push(e),Dn()}var dr;function ia(){for(var e=Date.now(),t=0;t<H[K].length;++t)H[K][t].length>2&&(H[K][t][3]=e,H[K][t][4]=e);Dn()}function Dn(){if(clearTimeout(dr),dr=void 0,H[K].length!==0){var e=H[K].shift(),t=e[0],r=e[1],n=e[2],i=e[3],o=e[4];if(i===void 0)Le("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=6e4){Le("TIMEOUT",t.name,r);var s=r.pop();typeof s=="function"&&s.call(null,n)}else{var a=Date.now()-o,c=Math.max(o-i,1),d=Math.min(c*1.2,100);a>=d?(Le("RETRY",t.name,r),t.apply(null,r.concat([i]))):H[K].push(e)}dr===void 0&&(dr=setTimeout(Dn,0))}}});var St=v(Ae=>{"use strict";var sa=ue().fromCallback,oe=ee(),r0=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(e=>typeof oe[e]=="function");Object.keys(oe).forEach(e=>{e!=="promises"&&(Ae[e]=oe[e])});r0.forEach(e=>{Ae[e]=sa(oe[e])});Ae.exists=function(e,t){return typeof t=="function"?oe.exists(e,t):new Promise(r=>oe.exists(e,r))};Ae.read=function(e,t,r,n,i,o){return typeof o=="function"?oe.read(e,t,r,n,i,o):new Promise((s,a)=>{oe.read(e,t,r,n,i,(c,d,f)=>{if(c)return a(c);s({bytesRead:d,buffer:f})})})};Ae.write=function(e,t,...r){return typeof r[r.length-1]=="function"?oe.write(e,t,...r):new Promise((n,i)=>{oe.write(e,t,...r,(o,s,a)=>{if(o)return i(o);n({bytesWritten:s,buffer:a})})})};typeof oe.writev=="function"&&(Ae.writev=function(e,t,...r){return typeof r[r.length-1]=="function"?oe.writev(e,t,...r):new Promise((n,i)=>{oe.writev(e,t,...r,(o,s,a)=>{if(o)return i(o);n({bytesWritten:s,buffers:a})})})});typeof oe.realpath.native=="function"&&(Ae.realpath.native=sa(oe.realpath.native))});var Nn=v((l1,aa)=>{aa.exports=e=>{let t=process.versions.node.split(".").map(r=>parseInt(r,10));return e=e.split(".").map(r=>parseInt(r,10)),t[0]>e[0]||t[0]===e[0]&&(t[1]>e[1]||t[1]===e[1]&&t[2]>=e[2])}});var ha=v((f1,Bn)=>{"use strict";var et=St(),_e=require("path"),n0=Nn(),ca=n0("10.12.0"),ua=e=>{if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(_e.parse(e).root,""))){let r=new Error(`Path contains invalid characters: ${e}`);throw r.code="EINVAL",r}},la=e=>{let t={mode:511};return typeof e=="number"&&(e={mode:e}),{...t,...e}},fa=e=>{let t=new Error(`operation not permitted, mkdir '${e}'`);return t.code="EPERM",t.errno=-4048,t.path=e,t.syscall="mkdir",t};Bn.exports.makeDir=async(e,t)=>{if(ua(e),t=la(t),ca){let n=_e.resolve(e);return et.mkdir(n,{mode:t.mode,recursive:!0})}let r=async n=>{try{await et.mkdir(n,t.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(_e.dirname(n)===n)throw fa(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(e))};Bn.exports.makeDirSync=(e,t)=>{if(ua(e),t=la(t),ca){let n=_e.resolve(e);return et.mkdirSync(n,{mode:t.mode,recursive:!0})}let r=n=>{try{et.mkdirSync(n,t.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(_e.dirname(n)===n)throw fa(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(e))}});var xe=v((h1,da)=>{"use strict";var i0=ue().fromPromise,{makeDir:o0,makeDirSync:Ln}=ha(),$n=i0(o0);da.exports={mkdirs:$n,mkdirsSync:Ln,mkdirp:$n,mkdirpSync:Ln,ensureDir:$n,ensureDirSync:Ln}});var Un=v((d1,pa)=>{"use strict";var tt=ee();function s0(e,t,r,n){tt.open(e,"r+",(i,o)=>{if(i)return n(i);tt.futimes(o,t,r,s=>{tt.close(o,a=>{n&&n(s||a)})})})}function a0(e,t,r){let n=tt.openSync(e,"r+");return tt.futimesSync(n,t,r),tt.closeSync(n)}pa.exports={utimesMillis:s0,utimesMillisSync:a0}});var xt=v((p1,va)=>{"use strict";var rt=St(),le=require("path"),c0=require("util"),u0=Nn(),mr=u0("10.5.0"),ma=e=>mr?rt.stat(e,{bigint:!0}):rt.stat(e),Hn=e=>mr?rt.statSync(e,{bigint:!0}):rt.statSync(e);function l0(e,t){return Promise.all([ma(e),ma(t).catch(r=>{if(r.code==="ENOENT")return null;throw r})]).then(([r,n])=>({srcStat:r,destStat:n}))}function f0(e,t){let r,n=Hn(e);try{r=Hn(t)}catch(i){if(i.code==="ENOENT")return{srcStat:n,destStat:null};throw i}return{srcStat:n,destStat:r}}function h0(e,t,r,n){c0.callbackify(l0)(e,t,(i,o)=>{if(i)return n(i);let{srcStat:s,destStat:a}=o;return a&&yr(s,a)?n(new Error("Source and destination must not be the same.")):s.isDirectory()&&Gn(e,t)?n(new Error(gr(e,t,r))):n(null,{srcStat:s,destStat:a})})}function d0(e,t,r){let{srcStat:n,destStat:i}=f0(e,t);if(i&&yr(n,i))throw new Error("Source and destination must not be the same.");if(n.isDirectory()&&Gn(e,t))throw new Error(gr(e,t,r));return{srcStat:n,destStat:i}}function ya(e,t,r,n,i){let o=le.resolve(le.dirname(e)),s=le.resolve(le.dirname(r));if(s===o||s===le.parse(s).root)return i();let a=(c,d)=>c?c.code==="ENOENT"?i():i(c):yr(t,d)?i(new Error(gr(e,r,n))):ya(e,t,s,n,i);mr?rt.stat(s,{bigint:!0},a):rt.stat(s,a)}function ga(e,t,r,n){let i=le.resolve(le.dirname(e)),o=le.resolve(le.dirname(r));if(o===i||o===le.parse(o).root)return;let s;try{s=Hn(o)}catch(a){if(a.code==="ENOENT")return;throw a}if(yr(t,s))throw new Error(gr(e,r,n));return ga(e,t,o,n)}function yr(e,t){return!!(t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev&&(mr||t.ino<Number.MAX_SAFE_INTEGER||t.size===e.size&&t.mode===e.mode&&t.nlink===e.nlink&&t.atimeMs===e.atimeMs&&t.mtimeMs===e.mtimeMs&&t.ctimeMs===e.ctimeMs&&t.birthtimeMs===e.birthtimeMs))}function Gn(e,t){let r=le.resolve(e).split(le.sep).filter(i=>i),n=le.resolve(t).split(le.sep).filter(i=>i);return r.reduce((i,o,s)=>i&&n[s]===o,!0)}function gr(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}va.exports={checkPaths:h0,checkPathsSync:d0,checkParentPaths:ya,checkParentPathsSync:ga,isSrcSubdir:Gn}});var Ea=v((m1,xa)=>{"use strict";var te=ee(),Et=require("path"),p0=xe().mkdirsSync,m0=Un().utimesMillisSync,_t=xt();function y0(e,t,r){typeof r=="function"&&(r={filter:r}),r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
1
|
+
"use strict";var El=Object.create;var Dt=Object.defineProperty;var _l=Object.getOwnPropertyDescriptor;var Cl=Object.getOwnPropertyNames;var kl=Object.getPrototypeOf,Ol=Object.prototype.hasOwnProperty;var Ei=(e,t)=>()=>(e&&(t=e(e=0)),t);var v=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Rl=(e,t)=>{for(var r in t)Dt(e,r,{get:t[r],enumerable:!0})},_i=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Cl(t))!Ol.call(e,i)&&i!==r&&Dt(e,i,{get:()=>t[i],enumerable:!(n=_l(t,i))||n.enumerable});return e};var D=(e,t,r)=>(r=e!=null?El(kl(e)):{},_i(t||!e||!e.__esModule?Dt(r,"default",{value:e,enumerable:!0}):r,e)),Pl=e=>_i(Dt({},"__esModule",{value:!0}),e);var ki=v((sm,Ci)=>{var Br=class{constructor(t){this.value=t,this.next=void 0}},$r=class{constructor(){this.clear()}enqueue(t){let r=new Br(t);this._head?(this._tail.next=r,this._tail=r):(this._head=r,this._tail=r),this._size++}dequeue(){let t=this._head;if(t)return this._head=this._head.next,this._size--,t.value}clear(){this._head=void 0,this._tail=void 0,this._size=0}get size(){return this._size}*[Symbol.iterator](){let t=this._head;for(;t;)yield t.value,t=t.next}};Ci.exports=$r});var Ri=v((am,Oi)=>{"use strict";var Al=ki(),Ml=e=>{if(!((Number.isInteger(e)||e===1/0)&&e>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");let t=new Al,r=0,n=()=>{r--,t.size>0&&t.dequeue()()},i=async(a,c,...d)=>{r++;let f=(async()=>a(...d))();c(f);try{await f}catch{}n()},o=(a,c,...d)=>{t.enqueue(i.bind(null,a,c,...d)),(async()=>(await Promise.resolve(),r<e&&t.size>0&&t.dequeue()()))()},s=(a,...c)=>new Promise(d=>{o(a,d,...c)});return Object.defineProperties(s,{activeCount:{get:()=>r},pendingCount:{get:()=>t.size},clearQueue:{value:()=>{t.clear()}}}),s};Oi.exports=Ml});var Mi=v((cm,Ai)=>{"use strict";var Pi=Ri(),Nt=class extends Error{constructor(t){super(),this.value=t}},ql=async(e,t)=>t(await e),Tl=async e=>{let t=await Promise.all(e);if(t[1]===!0)throw new Nt(t[0]);return!1},Fl=async(e,t,r)=>{r={concurrency:1/0,preserveOrder:!0,...r};let n=Pi(r.concurrency),i=[...e].map(s=>[s,n(ql,s,t)]),o=Pi(r.preserveOrder?1:1/0);try{await Promise.all(i.map(s=>o(Tl,s)))}catch(s){if(s instanceof Nt)return s.value;throw s}};Ai.exports=Fl});var Ni=v((um,Hr)=>{"use strict";var qi=require("path"),jt=require("fs"),{promisify:Ti}=require("util"),Il=Mi(),Dl=Ti(jt.stat),Nl=Ti(jt.lstat),Fi={directory:"isDirectory",file:"isFile"};function Ii({type:e}){if(!(e in Fi))throw new Error(`Invalid type specified: ${e}`)}var Di=(e,t)=>e===void 0||t[Fi[e]]();Hr.exports=async(e,t)=>{t={cwd:process.cwd(),type:"file",allowSymlinks:!0,...t},Ii(t);let r=t.allowSymlinks?Dl:Nl;return Il(e,async n=>{try{let i=await r(qi.resolve(t.cwd,n));return Di(t.type,i)}catch{return!1}},t)};Hr.exports.sync=(e,t)=>{t={cwd:process.cwd(),allowSymlinks:!0,type:"file",...t},Ii(t);let r=t.allowSymlinks?jt.statSync:jt.lstatSync;for(let n of e)try{let i=r(qi.resolve(t.cwd,n));if(Di(t.type,i))return n}catch{}}});var Li=v((lm,Ur)=>{"use strict";var ji=require("fs"),{promisify:jl}=require("util"),Ll=jl(ji.access);Ur.exports=async e=>{try{return await Ll(e),!0}catch{return!1}};Ur.exports.sync=e=>{try{return ji.accessSync(e),!0}catch{return!1}}});var zr=v((fm,Ue)=>{"use strict";var Oe=require("path"),Lt=Ni(),Bi=Li(),Gr=Symbol("findUp.stop");Ue.exports=async(e,t={})=>{let r=Oe.resolve(t.cwd||""),{root:n}=Oe.parse(r),i=[].concat(e),o=async s=>{if(typeof e!="function")return Lt(i,s);let a=await e(s.cwd);return typeof a=="string"?Lt([a],s):a};for(;;){let s=await o({...t,cwd:r});if(s===Gr)return;if(s)return Oe.resolve(r,s);if(r===n)return;r=Oe.dirname(r)}};Ue.exports.sync=(e,t={})=>{let r=Oe.resolve(t.cwd||""),{root:n}=Oe.parse(r),i=[].concat(e),o=s=>{if(typeof e!="function")return Lt.sync(i,s);let a=e(s.cwd);return typeof a=="string"?Lt.sync([a],s):a};for(;;){let s=o({...t,cwd:r});if(s===Gr)return;if(s)return Oe.resolve(r,s);if(r===n)return;r=Oe.dirname(r)}};Ue.exports.exists=Bi;Ue.exports.sync.exists=Bi.sync;Ue.exports.stop=Gr});var ht=v((hm,Jr)=>{"use strict";var $i=require("path"),Hi=zr(),Bl=async e=>{let t=await Hi("package.json",{cwd:e});return t&&$i.dirname(t)};Jr.exports=Bl;Jr.exports.sync=e=>{let t=Hi.sync("package.json",{cwd:e});return t&&$i.dirname(t)}});var Gi=v((dm,Ui)=>{"use strict";var $l=/[|\\{}()[\]^$+*?.]/g;Ui.exports=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace($l,"\\$&")}});var Ji=v((pm,zi)=>{"use strict";zi.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 Wr=v((mm,Xi)=>{var De=Ji(),Yi={};for(Bt in De)De.hasOwnProperty(Bt)&&(Yi[De[Bt]]=Bt);var Bt,x=Xi.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(ne in x)if(x.hasOwnProperty(ne)){if(!("channels"in x[ne]))throw new Error("missing channels property: "+ne);if(!("labels"in x[ne]))throw new Error("missing channel labels property: "+ne);if(x[ne].labels.length!==x[ne].channels)throw new Error("channel and label counts mismatch: "+ne);Wi=x[ne].channels,Vi=x[ne].labels,delete x[ne].channels,delete x[ne].labels,Object.defineProperty(x[ne],"channels",{value:Wi}),Object.defineProperty(x[ne],"labels",{value:Vi})}var Wi,Vi,ne;x.rgb.hsl=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),o=Math.max(t,r,n),s=o-i,a,c,d;return o===i?a=0:t===o?a=(r-n)/s:r===o?a=2+(n-t)/s:n===o&&(a=4+(t-r)/s),a=Math.min(a*60,360),a<0&&(a+=360),d=(i+o)/2,o===i?c=0:d<=.5?c=s/(o+i):c=s/(2-o-i),[a,c*100,d*100]};x.rgb.hsv=function(e){var t,r,n,i,o,s=e[0]/255,a=e[1]/255,c=e[2]/255,d=Math.max(s,a,c),f=d-Math.min(s,a,c),p=function(y){return(d-y)/6/f+1/2};return f===0?i=o=0:(o=f/d,t=p(s),r=p(a),n=p(c),s===d?i=n-r:a===d?i=1/3+t-n:c===d&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,o*100,d*100]};x.rgb.hwb=function(e){var t=e[0],r=e[1],n=e[2],i=x.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,o*100,n*100]};x.rgb.cmyk=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i,o,s,a;return a=Math.min(1-t,1-r,1-n),i=(1-t-a)/(1-a)||0,o=(1-r-a)/(1-a)||0,s=(1-n-a)/(1-a)||0,[i*100,o*100,s*100,a*100]};function Hl(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}x.rgb.keyword=function(e){var t=Yi[e];if(t)return t;var r=1/0,n;for(var i in De)if(De.hasOwnProperty(i)){var o=De[i],s=Hl(e,o);s<r&&(r=s,n=i)}return n};x.keyword.rgb=function(e){return De[e]};x.rgb.xyz=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var i=t*.4124+r*.3576+n*.1805,o=t*.2126+r*.7152+n*.0722,s=t*.0193+r*.1192+n*.9505;return[i*100,o*100,s*100]};x.rgb.lab=function(e){var t=x.rgb.xyz(e),r=t[0],n=t[1],i=t[2],o,s,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,o=116*n-16,s=500*(r-n),a=200*(n-i),[o,s,a]};x.hsl.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,o,s,a,c;if(r===0)return c=n*255,[c,c,c];n<.5?o=n*(1+r):o=n+r-n*r,i=2*n-o,a=[0,0,0];for(var d=0;d<3;d++)s=t+1/3*-(d-1),s<0&&s++,s>1&&s--,6*s<1?c=i+(o-i)*6*s:2*s<1?c=o:3*s<2?c=i+(o-i)*(2/3-s)*6:c=i,a[d]=c*255;return a};x.hsl.hsv=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,i=r,o=Math.max(n,.01),s,a;return n*=2,r*=n<=1?n:2-n,i*=o<=1?o:2-o,a=(n+r)/2,s=n===0?2*i/(o+i):2*r/(n+r),[t,s*100,a*100]};x.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,n=e[2]/100,i=Math.floor(t)%6,o=t-Math.floor(t),s=255*n*(1-r),a=255*n*(1-r*o),c=255*n*(1-r*(1-o));switch(n*=255,i){case 0:return[n,c,s];case 1:return[a,n,s];case 2:return[s,n,c];case 3:return[s,a,n];case 4:return[c,s,n];case 5:return[n,s,a]}};x.hsv.hsl=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01),o,s,a;return a=(2-r)*n,o=(2-r)*i,s=r*i,s/=o<=1?o:2-o,s=s||0,a/=2,[t,s*100,a*100]};x.hwb.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i=r+n,o,s,a,c;i>1&&(r/=i,n/=i),o=Math.floor(6*t),s=1-n,a=6*t-o,o&1&&(a=1-a),c=r+a*(s-r);var d,f,p;switch(o){default:case 6:case 0:d=s,f=c,p=r;break;case 1:d=c,f=s,p=r;break;case 2:d=r,f=s,p=c;break;case 3:d=r,f=c,p=s;break;case 4:d=c,f=r,p=s;break;case 5:d=s,f=r,p=c;break}return[d*255,f*255,p*255]};x.cmyk.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100,o,s,a;return o=1-Math.min(1,t*(1-i)+i),s=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i),[o*255,s*255,a*255]};x.xyz.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,i,o,s;return i=t*3.2406+r*-1.5372+n*-.4986,o=t*-.9689+r*1.8758+n*.0415,s=t*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),s=Math.min(Math.max(0,s),1),[i*255,o*255,s*255]};x.xyz.lab=function(e){var t=e[0],r=e[1],n=e[2],i,o,s;return t/=95.047,r/=100,n/=108.883,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,i=116*r-16,o=500*(t-r),s=200*(r-n),[i,o,s]};x.lab.xyz=function(e){var t=e[0],r=e[1],n=e[2],i,o,s;o=(t+16)/116,i=r/500+o,s=o-n/200;var a=Math.pow(o,3),c=Math.pow(i,3),d=Math.pow(s,3);return o=a>.008856?a:(o-16/116)/7.787,i=c>.008856?c:(i-16/116)/7.787,s=d>.008856?d:(s-16/116)/7.787,i*=95.047,o*=100,s*=108.883,[i,o,s]};x.lab.lch=function(e){var t=e[0],r=e[1],n=e[2],i,o,s;return i=Math.atan2(n,r),o=i*360/2/Math.PI,o<0&&(o+=360),s=Math.sqrt(r*r+n*n),[t,s,o]};x.lch.lab=function(e){var t=e[0],r=e[1],n=e[2],i,o,s;return s=n/360*2*Math.PI,i=r*Math.cos(s),o=r*Math.sin(s),[t,i,o]};x.rgb.ansi16=function(e){var t=e[0],r=e[1],n=e[2],i=1 in arguments?arguments[1]:x.rgb.hsv(e)[2];if(i=Math.round(i/50),i===0)return 30;var o=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return i===2&&(o+=60),o};x.hsv.ansi16=function(e){return x.rgb.ansi16(x.hsv.rgb(e),e[2])};x.rgb.ansi256=function(e){var t=e[0],r=e[1],n=e[2];if(t===r&&r===n)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;var i=16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};x.ansi16.rgb=function(e){var t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];var r=(~~(e>50)+1)*.5,n=(t&1)*r*255,i=(t>>1&1)*r*255,o=(t>>2&1)*r*255;return[n,i,o]};x.ansi256.rgb=function(e){if(e>=232){var t=(e-232)*10+8;return[t,t,t]}e-=16;var r,n=Math.floor(e/36)/5*255,i=Math.floor((r=e%36)/6)/5*255,o=r%6/5*255;return[n,i,o]};x.rgb.hex=function(e){var t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255),r=t.toString(16).toUpperCase();return"000000".substring(r.length)+r};x.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var r=t[0];t[0].length===3&&(r=r.split("").map(function(a){return a+a}).join(""));var n=parseInt(r,16),i=n>>16&255,o=n>>8&255,s=n&255;return[i,o,s]};x.rgb.hcg=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),o=Math.min(Math.min(t,r),n),s=i-o,a,c;return s<1?a=o/(1-s):a=0,s<=0?c=0:i===t?c=(r-n)/s%6:i===r?c=2+(n-t)/s:c=4+(t-r)/s+4,c/=6,c%=1,[c*360,s*100,a*100]};x.hsl.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1,i=0;return r<.5?n=2*t*r:n=2*t*(1-r),n<1&&(i=(r-.5*n)/(1-n)),[e[0],n*100,i*100]};x.hsv.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=t*r,i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],n*100,i*100]};x.hcg.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];var i=[0,0,0],o=t%1*6,s=o%1,a=1-s,c=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=s,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]=s;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return c=(1-r)*n,[(r*i[0]+c)*255,(r*i[1]+c)*255,(r*i[2]+c)*255]};x.hcg.hsv=function(e){var t=e[1]/100,r=e[2]/100,n=t+r*(1-t),i=0;return n>0&&(i=t/n),[e[0],i*100,n*100]};x.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100,n=r*(1-t)+.5*t,i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],i*100,n*100]};x.hcg.hwb=function(e){var t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};x.hwb.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1-r,i=n-t,o=0;return i<1&&(o=(n-i)/(1-i)),[e[0],i*100,o*100]};x.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};x.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};x.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};x.gray.hsl=x.gray.hsv=function(e){return[0,0,e[0]]};x.gray.hwb=function(e){return[0,100,e[0]]};x.gray.cmyk=function(e){return[0,0,0,e[0]]};x.gray.lab=function(e){return[e[0],0,0]};x.gray.hex=function(e){var t=Math.round(e[0]/100*255)&255,r=(t<<16)+(t<<8)+t,n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};x.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[t/255*100]}});var Qi=v((ym,Ki)=>{var $t=Wr();function Ul(){for(var e={},t=Object.keys($t),r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function Gl(e){var t=Ul(),r=[e];for(t[e].distance=0;r.length;)for(var n=r.pop(),i=Object.keys($t[n]),o=i.length,s=0;s<o;s++){var a=i[s],c=t[a];c.distance===-1&&(c.distance=t[n].distance+1,c.parent=n,r.unshift(a))}return t}function zl(e,t){return function(r){return t(e(r))}}function Jl(e,t){for(var r=[t[e].parent,e],n=$t[t[e].parent][e],i=t[e].parent;t[i].parent;)r.unshift(t[i].parent),n=zl($t[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}Ki.exports=function(e){for(var t=Gl(e),r={},n=Object.keys(t),i=n.length,o=0;o<i;o++){var s=n[o],a=t[s];a.parent!==null&&(r[s]=Jl(s,t))}return r}});var eo=v((gm,Zi)=>{var Vr=Wr(),Wl=Qi(),Ge={},Vl=Object.keys(Vr);function Yl(e){var t=function(r){return r==null?r:(arguments.length>1&&(r=Array.prototype.slice.call(arguments)),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function Xl(e){var t=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var n=e(r);if(typeof n=="object")for(var i=n.length,o=0;o<i;o++)n[o]=Math.round(n[o]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}Vl.forEach(function(e){Ge[e]={},Object.defineProperty(Ge[e],"channels",{value:Vr[e].channels}),Object.defineProperty(Ge[e],"labels",{value:Vr[e].labels});var t=Wl(e),r=Object.keys(t);r.forEach(function(n){var i=t[n];Ge[e][n]=Xl(i),Ge[e][n].raw=Yl(i)})});Zi.exports=Ge});var ro=v((vm,to)=>{"use strict";var ze=eo(),Ht=(e,t)=>function(){return`\x1B[${e.apply(ze,arguments)+t}m`},Ut=(e,t)=>function(){let r=e.apply(ze,arguments);return`\x1B[${38+t};5;${r}m`},Gt=(e,t)=>function(){let r=e.apply(ze,arguments);return`\x1B[${38+t};2;${r[0]};${r[1]};${r[2]}m`};function Kl(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.grey=t.color.gray;for(let i of Object.keys(t)){let o=t[i];for(let s of Object.keys(o)){let a=o[s];t[s]={open:`\x1B[${a[0]}m`,close:`\x1B[${a[1]}m`},o[s]=t[s],e.set(a[0],a[1])}Object.defineProperty(t,i,{value:o,enumerable:!1}),Object.defineProperty(t,"codes",{value:e,enumerable:!1})}let r=i=>i,n=(i,o,s)=>[i,o,s];t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",t.color.ansi={ansi:Ht(r,0)},t.color.ansi256={ansi256:Ut(r,0)},t.color.ansi16m={rgb:Gt(n,0)},t.bgColor.ansi={ansi:Ht(r,10)},t.bgColor.ansi256={ansi256:Ut(r,10)},t.bgColor.ansi16m={rgb:Gt(n,10)};for(let i of Object.keys(ze)){if(typeof ze[i]!="object")continue;let o=ze[i];i==="ansi16"&&(i="ansi"),"ansi16"in o&&(t.color.ansi[i]=Ht(o.ansi16,0),t.bgColor.ansi[i]=Ht(o.ansi16,10)),"ansi256"in o&&(t.color.ansi256[i]=Ut(o.ansi256,0),t.bgColor.ansi256[i]=Ut(o.ansi256,10)),"rgb"in o&&(t.color.ansi16m[i]=Gt(o.rgb,0),t.bgColor.ansi16m[i]=Gt(o.rgb,10))}return t}Object.defineProperty(to,"exports",{enumerable:!0,get:Kl})});var io=v((bm,no)=>{"use strict";no.exports=(e,t)=>{t=t||process.argv;let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1?!0:n<i)}});var so=v((wm,oo)=>{"use strict";var Ql=require("os"),we=io(),Q=process.env,Je;we("no-color")||we("no-colors")||we("color=false")?Je=!1:(we("color")||we("colors")||we("color=true")||we("color=always"))&&(Je=!0);"FORCE_COLOR"in Q&&(Je=Q.FORCE_COLOR.length===0||parseInt(Q.FORCE_COLOR,10)!==0);function Zl(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function ef(e){if(Je===!1)return 0;if(we("color=16m")||we("color=full")||we("color=truecolor"))return 3;if(we("color=256"))return 2;if(e&&!e.isTTY&&Je!==!0)return 0;let t=Je?1:0;if(process.platform==="win32"){let r=Ql.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 Q)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in Q)||Q.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in Q)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Q.TEAMCITY_VERSION)?1:0;if(Q.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Q){let r=parseInt((Q.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Q.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Q.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Q.TERM)||"COLORTERM"in Q?1:(Q.TERM==="dumb",t)}function Yr(e){let t=ef(e);return Zl(t)}oo.exports={supportsColor:Yr,stdout:Yr(process.stdout),stderr:Yr(process.stderr)}});var fo=v((Sm,lo)=>{"use strict";var tf=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,ao=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,rf=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,nf=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,of=new Map([["n",`
|
|
2
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function uo(e){return e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):of.get(e)||e}function sf(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),i;for(let o of n)if(!isNaN(o))r.push(Number(o));else if(i=o.match(rf))r.push(i[2].replace(nf,(s,a,c)=>a?uo(a):c));else throw new Error(`Invalid Chalk template style argument: ${o} (in style '${e}')`);return r}function af(e){ao.lastIndex=0;let t=[],r;for(;(r=ao.exec(e))!==null;){let n=r[1];if(r[2]){let i=sf(n,r[2]);t.push([n].concat(i))}else t.push([n])}return t}function co(e,t){let r={};for(let i of t)for(let o of i.styles)r[o[0]]=i.inverse?null:o.slice(1);let n=e;for(let i of Object.keys(r))if(Array.isArray(r[i])){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);r[i].length>0?n=n[i].apply(n,r[i]):n=n[i]}return n}lo.exports=(e,t)=>{let r=[],n=[],i=[];if(t.replace(tf,(o,s,a,c,d,f)=>{if(s)i.push(uo(s));else if(c){let p=i.join("");i=[],n.push(r.length===0?p:co(e,r)(p)),r.push({inverse:a,styles:af(c)})}else if(d){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(co(e,r)(i.join(""))),i=[],r.pop()}else i.push(f)}),n.push(i.join("")),r.length>0){let o=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(o)}return n.join("")}});var Jt=v((xm,pt)=>{"use strict";var Kr=Gi(),W=ro(),Xr=so().stdout,cf=fo(),po=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),mo=["ansi","ansi","ansi256","ansi16m"],yo=new Set(["gray"]),We=Object.create(null);function ho(e,t){t=t||{};let r=Xr?Xr.level:0;e.level=t.level===void 0?r:t.level,e.enabled="enabled"in t?t.enabled:e.level>0}function dt(e){if(!this||!(this instanceof dt)||this.template){let t={};return ho(t,e),t.template=function(){let r=[].slice.call(arguments);return ff.apply(null,[t.template].concat(r))},Object.setPrototypeOf(t,dt.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=dt,t.template}ho(this,e)}po&&(W.blue.open="\x1B[94m");for(let e of Object.keys(W))W[e].closeRe=new RegExp(Kr(W[e].close),"g"),We[e]={get(){let t=W[e];return zt.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}};We.visible={get(){return zt.call(this,this._styles||[],!0,"visible")}};W.color.closeRe=new RegExp(Kr(W.color.close),"g");for(let e of Object.keys(W.color.ansi))yo.has(e)||(We[e]={get(){let t=this.level;return function(){let n={open:W.color[mo[t]][e].apply(null,arguments),close:W.color.close,closeRe:W.color.closeRe};return zt.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});W.bgColor.closeRe=new RegExp(Kr(W.bgColor.close),"g");for(let e of Object.keys(W.bgColor.ansi)){if(yo.has(e))continue;let t="bg"+e[0].toUpperCase()+e.slice(1);We[t]={get(){let r=this.level;return function(){let i={open:W.bgColor[mo[r]][e].apply(null,arguments),close:W.bgColor.close,closeRe:W.bgColor.closeRe};return zt.call(this,this._styles?this._styles.concat(i):[i],this._empty,e)}}}}var uf=Object.defineProperties(()=>{},We);function zt(e,t,r){let n=function(){return lf.apply(n,arguments)};n._styles=e,n._empty=t;let i=this;return Object.defineProperty(n,"level",{enumerable:!0,get(){return i.level},set(o){i.level=o}}),Object.defineProperty(n,"enabled",{enumerable:!0,get(){return i.enabled},set(o){i.enabled=o}}),n.hasGrey=this.hasGrey||r==="gray"||r==="grey",n.__proto__=uf,n}function lf(){let e=arguments,t=e.length,r=String(arguments[0]);if(t===0)return"";if(t>1)for(let i=1;i<t;i++)r+=" "+e[i];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;let n=W.dim.open;po&&this.hasGrey&&(W.dim.open="");for(let i of this._styles.slice().reverse())r=i.open+r.replace(i.closeRe,i.open)+i.close,r=r.replace(/\r?\n/g,`${i.close}$&${i.open}`);return W.dim.open=n,r}function ff(e,t){if(!Array.isArray(t))return[].slice.call(arguments,1).join(" ");let r=[].slice.call(arguments,2),n=[t.raw[0]];for(let i=1;i<t.length;i++)n.push(String(r[i-1]).replace(/[{}\\]/g,"\\$&")),n.push(String(t.raw[i]));return cf(e,n.join(""))}Object.defineProperties(dt.prototype,We);pt.exports=dt();pt.exports.supportsColor=Xr;pt.exports.default=pt.exports});var Zr=v((Em,Qr)=>{var hf=require("fs"),df=require("path");function go(e){console.log(`[dotenv][DEBUG] ${e}`)}var pf=`
|
|
3
|
+
`,mf=/^\s*([\w.-]+)\s*=\s*(.*)?\s*$/,yf=/\\n/g,gf=/\n|\r|\r\n/;function vo(e,t){let r=!!(t&&t.debug),n={};return e.toString().split(gf).forEach(function(i,o){let s=i.match(mf);if(s!=null){let a=s[1],c=s[2]||"",d=c.length-1,f=c[0]==='"'&&c[d]==='"';c[0]==="'"&&c[d]==="'"||f?(c=c.substring(1,d),f&&(c=c.replace(yf,pf))):c=c.trim(),n[a]=c}else r&&go(`did not match key and value when parsing line ${o+1}: ${i}`)}),n}function vf(e){let t=df.resolve(process.cwd(),".env"),r="utf8",n=!1;e&&(e.path!=null&&(t=e.path),e.encoding!=null&&(r=e.encoding),e.debug!=null&&(n=!0));try{let i=vo(hf.readFileSync(t,{encoding:r}),{debug:n});return Object.keys(i).forEach(function(o){Object.prototype.hasOwnProperty.call(process.env,o)?n&&go(`"${o}" is already defined in \`process.env\` and will not be overwritten`):process.env[o]=i[o]}),{parsed:i}}catch(i){return{error:i}}}Qr.exports.config=vf;Qr.exports.parse=vo});var ue=v(en=>{"use strict";en.fromCallback=function(e){return Object.defineProperty(function(...t){if(typeof t[t.length-1]=="function")e.apply(this,t);else return new Promise((r,n)=>{e.call(this,...t,(i,o)=>i!=null?n(i):r(o))})},"name",{value:e.name})};en.fromPromise=function(e){return Object.defineProperty(function(...t){let r=t[t.length-1];if(typeof r!="function")return e.apply(this,t);e.apply(this,t.slice(0,-1)).then(n=>r(null,n),r)},"name",{value:e.name})}});var wo=v((Cm,bo)=>{var Re=require("constants"),bf=process.cwd,Wt=null,wf=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Wt||(Wt=bf.call(process)),Wt};try{process.cwd()}catch{}typeof process.chdir=="function"&&(tn=process.chdir,process.chdir=function(e){Wt=null,tn.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,tn));var tn;bo.exports=Sf;function Sf(e){Re.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||r(e),e.chown=o(e.chown),e.fchown=o(e.fchown),e.lchown=o(e.lchown),e.chmod=n(e.chmod),e.fchmod=n(e.fchmod),e.lchmod=n(e.lchmod),e.chownSync=s(e.chownSync),e.fchownSync=s(e.fchownSync),e.lchownSync=s(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=a(e.stat),e.fstat=a(e.fstat),e.lstat=a(e.lstat),e.statSync=c(e.statSync),e.fstatSync=c(e.fstatSync),e.lstatSync=c(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(f,p,y){y&&process.nextTick(y)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(f,p,y,m){m&&process.nextTick(m)},e.lchownSync=function(){}),wf==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(f){function p(y,m,S){var O=Date.now(),R=0;f(y,m,function q($){if($&&($.code==="EACCES"||$.code==="EPERM")&&Date.now()-O<6e4){setTimeout(function(){e.stat(m,function(z,G){z&&z.code==="ENOENT"?f(y,m,q):S($)})},R),R<100&&(R+=10);return}S&&S($)})}return Object.setPrototypeOf&&Object.setPrototypeOf(p,f),p}(e.rename)),e.read=typeof e.read!="function"?e.read:function(f){function p(y,m,S,O,R,q){var $;if(q&&typeof q=="function"){var z=0;$=function(G,re,ve){if(G&&G.code==="EAGAIN"&&z<10)return z++,f.call(e,y,m,S,O,R,$);q.apply(this,arguments)}}return f.call(e,y,m,S,O,R,$)}return Object.setPrototypeOf&&Object.setPrototypeOf(p,f),p}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(f){return function(p,y,m,S,O){for(var R=0;;)try{return f.call(e,p,y,m,S,O)}catch(q){if(q.code==="EAGAIN"&&R<10){R++;continue}throw q}}}(e.readSync);function t(f){f.lchmod=function(p,y,m){f.open(p,Re.O_WRONLY|Re.O_SYMLINK,y,function(S,O){if(S){m&&m(S);return}f.fchmod(O,y,function(R){f.close(O,function(q){m&&m(R||q)})})})},f.lchmodSync=function(p,y){var m=f.openSync(p,Re.O_WRONLY|Re.O_SYMLINK,y),S=!0,O;try{O=f.fchmodSync(m,y),S=!1}finally{if(S)try{f.closeSync(m)}catch{}else f.closeSync(m)}return O}}function r(f){Re.hasOwnProperty("O_SYMLINK")&&f.futimes?(f.lutimes=function(p,y,m,S){f.open(p,Re.O_SYMLINK,function(O,R){if(O){S&&S(O);return}f.futimes(R,y,m,function(q){f.close(R,function($){S&&S(q||$)})})})},f.lutimesSync=function(p,y,m){var S=f.openSync(p,Re.O_SYMLINK),O,R=!0;try{O=f.futimesSync(S,y,m),R=!1}finally{if(R)try{f.closeSync(S)}catch{}else f.closeSync(S)}return O}):f.futimes&&(f.lutimes=function(p,y,m,S){S&&process.nextTick(S)},f.lutimesSync=function(){})}function n(f){return f&&function(p,y,m){return f.call(e,p,y,function(S){d(S)&&(S=null),m&&m.apply(this,arguments)})}}function i(f){return f&&function(p,y){try{return f.call(e,p,y)}catch(m){if(!d(m))throw m}}}function o(f){return f&&function(p,y,m,S){return f.call(e,p,y,m,function(O){d(O)&&(O=null),S&&S.apply(this,arguments)})}}function s(f){return f&&function(p,y,m){try{return f.call(e,p,y,m)}catch(S){if(!d(S))throw S}}}function a(f){return f&&function(p,y,m){typeof y=="function"&&(m=y,y=null);function S(O,R){R&&(R.uid<0&&(R.uid+=4294967296),R.gid<0&&(R.gid+=4294967296)),m&&m.apply(this,arguments)}return y?f.call(e,p,y,S):f.call(e,p,S)}}function c(f){return f&&function(p,y){var m=y?f.call(e,p,y):f.call(e,p);return m&&(m.uid<0&&(m.uid+=4294967296),m.gid<0&&(m.gid+=4294967296)),m}}function d(f){if(!f||f.code==="ENOSYS")return!0;var p=!process.getuid||process.getuid()!==0;return!!(p&&(f.code==="EINVAL"||f.code==="EPERM"))}}});var Eo=v((km,xo)=>{var So=require("stream").Stream;xo.exports=xf;function xf(e){return{ReadStream:t,WriteStream:r};function t(n,i){if(!(this instanceof t))return new t(n,i);So.call(this);var o=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 s=Object.keys(i),a=0,c=s.length;a<c;a++){var d=s[a];this[d]=i[d]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){o._read()});return}e.open(this.path,this.flags,this.mode,function(f,p){if(f){o.emit("error",f),o.readable=!1;return}o.fd=p,o.emit("open",p),o._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);So.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 o=Object.keys(i),s=0,a=o.length;s<a;s++){var c=o[s];this[c]=i[c]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var Co=v((Om,_o)=>{"use strict";_o.exports=_f;var Ef=Object.getPrototypeOf||function(e){return e.__proto__};function _f(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:Ef(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}});var Z=v((Rm,on)=>{var U=require("fs"),Cf=wo(),kf=Eo(),Of=Co(),Vt=require("util"),Y,Xt;typeof Symbol=="function"&&typeof Symbol.for=="function"?(Y=Symbol.for("graceful-fs.queue"),Xt=Symbol.for("graceful-fs.previous")):(Y="___graceful-fs.queue",Xt="___graceful-fs.previous");function Rf(){}function Ro(e,t){Object.defineProperty(e,Y,{get:function(){return t}})}var Ne=Rf;Vt.debuglog?Ne=Vt.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Ne=function(){var e=Vt.format.apply(Vt,arguments);e="GFS4: "+e.split(/\n/).join(`
|
|
4
|
+
GFS4: `),console.error(e)});U[Y]||(ko=global[Y]||[],Ro(U,ko),U.close=function(e){function t(r,n){return e.call(U,r,function(i){i||Oo(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,Xt,{value:e}),t}(U.close),U.closeSync=function(e){function t(r){e.apply(U,arguments),Oo()}return Object.defineProperty(t,Xt,{value:e}),t}(U.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Ne(U[Y]),require("assert").equal(U[Y].length,0)}));var ko;global[Y]||Ro(global,U[Y]);on.exports=rn(Of(U));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!U.__patched&&(on.exports=rn(U),U.__patched=!0);function rn(e){Cf(e),e.gracefulify=rn,e.createReadStream=re,e.createWriteStream=ve;var t=e.readFile;e.readFile=r;function r(k,F,T){return typeof F=="function"&&(T=F,F=null),H(k,F,T);function H(P,B,C,N){return t(P,B,function(M){M&&(M.code==="EMFILE"||M.code==="ENFILE")?Ve([H,[P,B,C],M,N||Date.now(),Date.now()]):typeof C=="function"&&C.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=i;function i(k,F,T,H){return typeof T=="function"&&(H=T,T=null),P(k,F,T,H);function P(B,C,N,M,_){return n(B,C,N,function(A){A&&(A.code==="EMFILE"||A.code==="ENFILE")?Ve([P,[B,C,N,M],A,_||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}var o=e.appendFile;o&&(e.appendFile=s);function s(k,F,T,H){return typeof T=="function"&&(H=T,T=null),P(k,F,T,H);function P(B,C,N,M,_){return o(B,C,N,function(A){A&&(A.code==="EMFILE"||A.code==="ENFILE")?Ve([P,[B,C,N,M],A,_||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}var a=e.copyFile;a&&(e.copyFile=c);function c(k,F,T,H){return typeof T=="function"&&(H=T,T=0),P(k,F,T,H);function P(B,C,N,M,_){return a(B,C,N,function(A){A&&(A.code==="EMFILE"||A.code==="ENFILE")?Ve([P,[B,C,N,M],A,_||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}var d=e.readdir;e.readdir=p;var f=/^v[0-5]\./;function p(k,F,T){typeof F=="function"&&(T=F,F=null);var H=f.test(process.version)?function(C,N,M,_){return d(C,P(C,N,M,_))}:function(C,N,M,_){return d(C,N,P(C,N,M,_))};return H(k,F,T);function P(B,C,N,M){return function(_,A){_&&(_.code==="EMFILE"||_.code==="ENFILE")?Ve([H,[B,C,N],_,M||Date.now(),Date.now()]):(A&&A.sort&&A.sort(),typeof N=="function"&&N.call(this,_,A))}}}if(process.version.substr(0,4)==="v0.8"){var y=kf(e);q=y.ReadStream,z=y.WriteStream}var m=e.ReadStream;m&&(q.prototype=Object.create(m.prototype),q.prototype.open=$);var S=e.WriteStream;S&&(z.prototype=Object.create(S.prototype),z.prototype.open=G),Object.defineProperty(e,"ReadStream",{get:function(){return q},set:function(k){q=k},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return z},set:function(k){z=k},enumerable:!0,configurable:!0});var O=q;Object.defineProperty(e,"FileReadStream",{get:function(){return O},set:function(k){O=k},enumerable:!0,configurable:!0});var R=z;Object.defineProperty(e,"FileWriteStream",{get:function(){return R},set:function(k){R=k},enumerable:!0,configurable:!0});function q(k,F){return this instanceof q?(m.apply(this,arguments),this):q.apply(Object.create(q.prototype),arguments)}function $(){var k=this;ae(k.path,k.flags,k.mode,function(F,T){F?(k.autoClose&&k.destroy(),k.emit("error",F)):(k.fd=T,k.emit("open",T),k.read())})}function z(k,F){return this instanceof z?(S.apply(this,arguments),this):z.apply(Object.create(z.prototype),arguments)}function G(){var k=this;ae(k.path,k.flags,k.mode,function(F,T){F?(k.destroy(),k.emit("error",F)):(k.fd=T,k.emit("open",T))})}function re(k,F){return new e.ReadStream(k,F)}function ve(k,F){return new e.WriteStream(k,F)}var Ce=e.open;e.open=ae;function ae(k,F,T,H){return typeof T=="function"&&(H=T,T=null),P(k,F,T,H);function P(B,C,N,M,_){return Ce(B,C,N,function(A,ke){A&&(A.code==="EMFILE"||A.code==="ENFILE")?Ve([P,[B,C,N,M],A,_||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}return e}function Ve(e){Ne("ENQUEUE",e[0].name,e[1]),U[Y].push(e),nn()}var Yt;function Oo(){for(var e=Date.now(),t=0;t<U[Y].length;++t)U[Y][t].length>2&&(U[Y][t][3]=e,U[Y][t][4]=e);nn()}function nn(){if(clearTimeout(Yt),Yt=void 0,U[Y].length!==0){var e=U[Y].shift(),t=e[0],r=e[1],n=e[2],i=e[3],o=e[4];if(i===void 0)Ne("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=6e4){Ne("TIMEOUT",t.name,r);var s=r.pop();typeof s=="function"&&s.call(null,n)}else{var a=Date.now()-o,c=Math.max(o-i,1),d=Math.min(c*1.2,100);a>=d?(Ne("RETRY",t.name,r),t.apply(null,r.concat([i]))):U[Y].push(e)}Yt===void 0&&(Yt=setTimeout(nn,0))}}});var mt=v(Pe=>{"use strict";var Po=ue().fromCallback,ie=Z(),Pf=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(e=>typeof ie[e]=="function");Object.keys(ie).forEach(e=>{e!=="promises"&&(Pe[e]=ie[e])});Pf.forEach(e=>{Pe[e]=Po(ie[e])});Pe.exists=function(e,t){return typeof t=="function"?ie.exists(e,t):new Promise(r=>ie.exists(e,r))};Pe.read=function(e,t,r,n,i,o){return typeof o=="function"?ie.read(e,t,r,n,i,o):new Promise((s,a)=>{ie.read(e,t,r,n,i,(c,d,f)=>{if(c)return a(c);s({bytesRead:d,buffer:f})})})};Pe.write=function(e,t,...r){return typeof r[r.length-1]=="function"?ie.write(e,t,...r):new Promise((n,i)=>{ie.write(e,t,...r,(o,s,a)=>{if(o)return i(o);n({bytesWritten:s,buffer:a})})})};typeof ie.writev=="function"&&(Pe.writev=function(e,t,...r){return typeof r[r.length-1]=="function"?ie.writev(e,t,...r):new Promise((n,i)=>{ie.writev(e,t,...r,(o,s,a)=>{if(o)return i(o);n({bytesWritten:s,buffers:a})})})});typeof ie.realpath.native=="function"&&(Pe.realpath.native=Po(ie.realpath.native))});var sn=v((Am,Ao)=>{Ao.exports=e=>{let t=process.versions.node.split(".").map(r=>parseInt(r,10));return e=e.split(".").map(r=>parseInt(r,10)),t[0]>e[0]||t[0]===e[0]&&(t[1]>e[1]||t[1]===e[1]&&t[2]>=e[2])}});var Io=v((Mm,an)=>{"use strict";var Ye=mt(),Ee=require("path"),Af=sn(),Mo=Af("10.12.0"),qo=e=>{if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(Ee.parse(e).root,""))){let r=new Error(`Path contains invalid characters: ${e}`);throw r.code="EINVAL",r}},To=e=>{let t={mode:511};return typeof e=="number"&&(e={mode:e}),{...t,...e}},Fo=e=>{let t=new Error(`operation not permitted, mkdir '${e}'`);return t.code="EPERM",t.errno=-4048,t.path=e,t.syscall="mkdir",t};an.exports.makeDir=async(e,t)=>{if(qo(e),t=To(t),Mo){let n=Ee.resolve(e);return Ye.mkdir(n,{mode:t.mode,recursive:!0})}let r=async n=>{try{await Ye.mkdir(n,t.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(Ee.dirname(n)===n)throw Fo(n);if(i.message.includes("null bytes"))throw i;return await r(Ee.dirname(n)),r(n)}try{if(!(await Ye.stat(n)).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return r(Ee.resolve(e))};an.exports.makeDirSync=(e,t)=>{if(qo(e),t=To(t),Mo){let n=Ee.resolve(e);return Ye.mkdirSync(n,{mode:t.mode,recursive:!0})}let r=n=>{try{Ye.mkdirSync(n,t.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(Ee.dirname(n)===n)throw Fo(n);if(i.message.includes("null bytes"))throw i;return r(Ee.dirname(n)),r(n)}try{if(!Ye.statSync(n).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return r(Ee.resolve(e))}});var Se=v((qm,Do)=>{"use strict";var Mf=ue().fromPromise,{makeDir:qf,makeDirSync:cn}=Io(),un=Mf(qf);Do.exports={mkdirs:un,mkdirsSync:cn,mkdirp:un,mkdirpSync:cn,ensureDir:un,ensureDirSync:cn}});var ln=v((Tm,No)=>{"use strict";var Xe=Z();function Tf(e,t,r,n){Xe.open(e,"r+",(i,o)=>{if(i)return n(i);Xe.futimes(o,t,r,s=>{Xe.close(o,a=>{n&&n(s||a)})})})}function Ff(e,t,r){let n=Xe.openSync(e,"r+");return Xe.futimesSync(n,t,r),Xe.closeSync(n)}No.exports={utimesMillis:Tf,utimesMillisSync:Ff}});var yt=v((Fm,$o)=>{"use strict";var Ke=mt(),le=require("path"),If=require("util"),Df=sn(),Kt=Df("10.5.0"),jo=e=>Kt?Ke.stat(e,{bigint:!0}):Ke.stat(e),fn=e=>Kt?Ke.statSync(e,{bigint:!0}):Ke.statSync(e);function Nf(e,t){return Promise.all([jo(e),jo(t).catch(r=>{if(r.code==="ENOENT")return null;throw r})]).then(([r,n])=>({srcStat:r,destStat:n}))}function jf(e,t){let r,n=fn(e);try{r=fn(t)}catch(i){if(i.code==="ENOENT")return{srcStat:n,destStat:null};throw i}return{srcStat:n,destStat:r}}function Lf(e,t,r,n){If.callbackify(Nf)(e,t,(i,o)=>{if(i)return n(i);let{srcStat:s,destStat:a}=o;return a&&Qt(s,a)?n(new Error("Source and destination must not be the same.")):s.isDirectory()&&hn(e,t)?n(new Error(Zt(e,t,r))):n(null,{srcStat:s,destStat:a})})}function Bf(e,t,r){let{srcStat:n,destStat:i}=jf(e,t);if(i&&Qt(n,i))throw new Error("Source and destination must not be the same.");if(n.isDirectory()&&hn(e,t))throw new Error(Zt(e,t,r));return{srcStat:n,destStat:i}}function Lo(e,t,r,n,i){let o=le.resolve(le.dirname(e)),s=le.resolve(le.dirname(r));if(s===o||s===le.parse(s).root)return i();let a=(c,d)=>c?c.code==="ENOENT"?i():i(c):Qt(t,d)?i(new Error(Zt(e,r,n))):Lo(e,t,s,n,i);Kt?Ke.stat(s,{bigint:!0},a):Ke.stat(s,a)}function Bo(e,t,r,n){let i=le.resolve(le.dirname(e)),o=le.resolve(le.dirname(r));if(o===i||o===le.parse(o).root)return;let s;try{s=fn(o)}catch(a){if(a.code==="ENOENT")return;throw a}if(Qt(t,s))throw new Error(Zt(e,r,n));return Bo(e,t,o,n)}function Qt(e,t){return!!(t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev&&(Kt||t.ino<Number.MAX_SAFE_INTEGER||t.size===e.size&&t.mode===e.mode&&t.nlink===e.nlink&&t.atimeMs===e.atimeMs&&t.mtimeMs===e.mtimeMs&&t.ctimeMs===e.ctimeMs&&t.birthtimeMs===e.birthtimeMs))}function hn(e,t){let r=le.resolve(e).split(le.sep).filter(i=>i),n=le.resolve(t).split(le.sep).filter(i=>i);return r.reduce((i,o,s)=>i&&n[s]===o,!0)}function Zt(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}$o.exports={checkPaths:Lf,checkPathsSync:Bf,checkParentPaths:Lo,checkParentPathsSync:Bo,isSrcSubdir:hn}});var Jo=v((Im,zo)=>{"use strict";var ee=Z(),gt=require("path"),$f=Se().mkdirsSync,Hf=ln().utimesMillisSync,vt=yt();function Uf(e,t,r){typeof r=="function"&&(r={filter:r}),r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
10
5
|
|
|
11
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:n,destStat:i}=
|
|
6
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:n,destStat:i}=vt.checkPathsSync(e,t,"copy");return vt.checkParentPathsSync(e,n,t,"copy"),Gf(i,e,t,r)}function Gf(e,t,r,n){if(n.filter&&!n.filter(t,r))return;let i=gt.dirname(r);return ee.existsSync(i)||$f(i),Ho(e,t,r,n)}function Ho(e,t,r,n){if(!(n.filter&&!n.filter(t,r)))return zf(e,t,r,n)}function zf(e,t,r,n){let o=(n.dereference?ee.statSync:ee.lstatSync)(t);if(o.isDirectory())return Qf(o,e,t,r,n);if(o.isFile()||o.isCharacterDevice()||o.isBlockDevice())return Jf(o,e,t,r,n);if(o.isSymbolicLink())return th(e,t,r,n)}function Jf(e,t,r,n,i){return t?Wf(e,r,n,i):Uo(e,r,n,i)}function Wf(e,t,r,n){if(n.overwrite)return ee.unlinkSync(r),Uo(e,t,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}function Uo(e,t,r,n){return ee.copyFileSync(t,r),n.preserveTimestamps&&Vf(e.mode,t,r),dn(r,e.mode)}function Vf(e,t,r){return Yf(e)&&Xf(r,e),Kf(t,r)}function Yf(e){return(e&128)===0}function Xf(e,t){return dn(e,t|128)}function dn(e,t){return ee.chmodSync(e,t)}function Kf(e,t){let r=ee.statSync(e);return Hf(t,r.atime,r.mtime)}function Qf(e,t,r,n,i){if(!t)return Zf(e.mode,r,n,i);if(t&&!t.isDirectory())throw new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`);return Go(r,n,i)}function Zf(e,t,r,n){return ee.mkdirSync(r),Go(t,r,n),dn(r,e)}function Go(e,t,r){ee.readdirSync(e).forEach(n=>eh(n,e,t,r))}function eh(e,t,r,n){let i=gt.join(t,e),o=gt.join(r,e),{destStat:s}=vt.checkPathsSync(i,o,"copy");return Ho(s,i,o,n)}function th(e,t,r,n){let i=ee.readlinkSync(t);if(n.dereference&&(i=gt.resolve(process.cwd(),i)),e){let o;try{o=ee.readlinkSync(r)}catch(s){if(s.code==="EINVAL"||s.code==="UNKNOWN")return ee.symlinkSync(i,r);throw s}if(n.dereference&&(o=gt.resolve(process.cwd(),o)),vt.isSrcSubdir(i,o))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${o}'.`);if(ee.statSync(r).isDirectory()&&vt.isSrcSubdir(o,i))throw new Error(`Cannot overwrite '${o}' with '${i}'.`);return rh(i,r)}else return ee.symlinkSync(i,r)}function rh(e,t){return ee.unlinkSync(t),ee.symlinkSync(e,t)}zo.exports=Uf});var pn=v((Dm,Wo)=>{"use strict";Wo.exports={copySync:Jo()}});var Ae=v((Nm,Yo)=>{"use strict";var nh=ue().fromPromise,Vo=mt();function ih(e){return Vo.access(e).then(()=>!0).catch(()=>!1)}Yo.exports={pathExists:nh(ih),pathExistsSync:Vo.existsSync}});var is=v((jm,ns)=>{"use strict";var fe=Z(),bt=require("path"),oh=Se().mkdirs,sh=Ae().pathExists,ah=ln().utimesMillis,wt=yt();function ch(e,t,r,n){typeof r=="function"&&!n?(n=r,r={}):typeof r=="function"&&(r={filter:r}),n=n||function(){},r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
12
7
|
|
|
13
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`),
|
|
14
|
-
`,finalEOL:r=!0,replacer:n=null,spaces:i}={}){let o=r?t:"";return JSON.stringify(e,n,i).replace(/\n/g,t)+o}function bd(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}Cc.exports={stringify:vd,stripBom:bd}});var Pc=v((A1,Rc)=>{var it;try{it=ee()}catch{it=require("fs")}var Cr=ue(),{stringify:kc,stripBom:Oc}=_r();async function wd(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||it,n="throws"in t?t.throws:!0,i=await Cr.fromCallback(r.readFile)(e,t);i=Oc(i);let o;try{o=JSON.parse(i,t?t.reviver:null)}catch(s){if(n)throw s.message=`${e}: ${s.message}`,s;return null}return o}var Sd=Cr.fromPromise(wd);function xd(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||it,n="throws"in t?t.throws:!0;try{let i=r.readFileSync(e,t);return i=Oc(i),JSON.parse(i,t.reviver)}catch(i){if(n)throw i.message=`${e}: ${i.message}`,i;return null}}async function Ed(e,t,r={}){let n=r.fs||it,i=kc(t,r);await Cr.fromCallback(n.writeFile)(e,i,r)}var _d=Cr.fromPromise(Ed);function Cd(e,t,r={}){let n=r.fs||it,i=kc(t,r);return n.writeFileSync(e,i,r)}var kd={readFile:Sd,readFileSync:xd,writeFile:_d,writeFileSync:Cd};Rc.exports=kd});var qc=v((q1,Ac)=>{"use strict";var kr=Pc();Ac.exports={readJson:kr.readFile,readJsonSync:kr.readFileSync,writeJson:kr.writeFile,writeJsonSync:kr.writeFileSync}});var Or=v((M1,Tc)=>{"use strict";var Od=ue().fromCallback,At=ee(),Mc=require("path"),Fc=xe(),Rd=qe().pathExists;function Pd(e,t,r,n){typeof r=="function"&&(n=r,r="utf8");let i=Mc.dirname(e);Rd(i,(o,s)=>{if(o)return n(o);if(s)return At.writeFile(e,t,r,n);Fc.mkdirs(i,a=>{if(a)return n(a);At.writeFile(e,t,r,n)})})}function Ad(e,...t){let r=Mc.dirname(e);if(At.existsSync(r))return At.writeFileSync(e,...t);Fc.mkdirsSync(r),At.writeFileSync(e,...t)}Tc.exports={outputFile:Od(Pd),outputFileSync:Ad}});var Dc=v((F1,Ic)=>{"use strict";var{stringify:qd}=_r(),{outputFile:Md}=Or();async function Fd(e,t,r={}){let n=qd(t,r);await Md(e,n,r)}Ic.exports=Fd});var Nc=v((T1,jc)=>{"use strict";var{stringify:Td}=_r(),{outputFileSync:Id}=Or();function Dd(e,t,r){let n=Td(t,r);Id(e,n,r)}jc.exports=Dd});var Lc=v((I1,Bc)=>{"use strict";var jd=ue().fromPromise,se=qc();se.outputJson=jd(Dc());se.outputJsonSync=Nc();se.outputJSON=se.outputJson;se.outputJSONSync=se.outputJsonSync;se.writeJSON=se.writeJson;se.writeJSONSync=se.writeJsonSync;se.readJSON=se.readJson;se.readJSONSync=se.readJsonSync;Bc.exports=se});var Jc=v((D1,zc)=>{"use strict";var Hc=ee(),Nd=require("path"),Bd=Jn().copySync,Gc=Rt().removeSync,Ld=xe().mkdirpSync,$c=xt();function $d(e,t,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:i}=$c.checkPathsSync(e,t,"move");return $c.checkParentPathsSync(e,i,t,"move"),Ld(Nd.dirname(t)),Ud(e,t,n)}function Ud(e,t,r){if(r)return Gc(t),Uc(e,t,r);if(Hc.existsSync(t))throw new Error("dest already exists.");return Uc(e,t,r)}function Uc(e,t,r){try{Hc.renameSync(e,t)}catch(n){if(n.code!=="EXDEV")throw n;return Hd(e,t,r)}}function Hd(e,t,r){return Bd(e,t,{overwrite:r,errorOnExist:!0}),Gc(e)}zc.exports=$d});var Vc=v((j1,Wc)=>{"use strict";Wc.exports={moveSync:Jc()}});var Zc=v((N1,Qc)=>{"use strict";var Gd=ee(),zd=require("path"),Jd=Vn().copy,Kc=Rt().remove,Wd=xe().mkdirp,Vd=qe().pathExists,Yc=xt();function Yd(e,t,r,n){typeof r=="function"&&(n=r,r={});let i=r.overwrite||r.clobber||!1;Yc.checkPaths(e,t,"move",(o,s)=>{if(o)return n(o);let{srcStat:a}=s;Yc.checkParentPaths(e,a,t,"move",c=>{if(c)return n(c);Wd(zd.dirname(t),d=>d?n(d):Xd(e,t,i,n))})})}function Xd(e,t,r,n){if(r)return Kc(t,i=>i?n(i):Xc(e,t,r,n));Vd(t,(i,o)=>i?n(i):o?n(new Error("dest already exists.")):Xc(e,t,r,n))}function Xc(e,t,r,n){Gd.rename(e,t,i=>i?i.code!=="EXDEV"?n(i):Kd(e,t,r,n):n())}function Kd(e,t,r,n){Jd(e,t,{overwrite:r,errorOnExist:!0},o=>o?n(o):Kc(e,n))}Qc.exports=Yd});var tu=v((B1,eu)=>{"use strict";var Qd=ue().fromCallback;eu.exports={move:Qd(Zc())}});var ot=v((L1,Xn)=>{"use strict";Xn.exports={...St(),...Jn(),...Vn(),...tc(),..._c(),...Lc(),...xe(),...Vc(),...tu(),...Or(),...qe(),...Rt()};var ru=require("fs");Object.getOwnPropertyDescriptor(ru,"promises")&&Object.defineProperty(Xn.exports,"promises",{get(){return ru.promises}})});var iu=v(($1,nu)=>{"use strict";nu.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 Kn=v((U1,su)=>{var qt=iu(),ou={};for(let e of Object.keys(qt))ou[qt[e]]=e;var E={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};su.exports=E;for(let e of Object.keys(E)){if(!("channels"in E[e]))throw new Error("missing channels property: "+e);if(!("labels"in E[e]))throw new Error("missing channel labels property: "+e);if(E[e].labels.length!==E[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:r}=E[e];delete E[e].channels,delete E[e].labels,Object.defineProperty(E[e],"channels",{value:t}),Object.defineProperty(E[e],"labels",{value:r})}E.rgb.hsl=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),o=Math.max(t,r,n),s=o-i,a,c;o===i?a=0:t===o?a=(r-n)/s:r===o?a=2+(n-t)/s:n===o&&(a=4+(t-r)/s),a=Math.min(a*60,360),a<0&&(a+=360);let d=(i+o)/2;return o===i?c=0:d<=.5?c=s/(o+i):c=s/(2-o-i),[a,c*100,d*100]};E.rgb.hsv=function(e){let t,r,n,i,o,s=e[0]/255,a=e[1]/255,c=e[2]/255,d=Math.max(s,a,c),f=d-Math.min(s,a,c),p=function(y){return(d-y)/6/f+1/2};return f===0?(i=0,o=0):(o=f/d,t=p(s),r=p(a),n=p(c),s===d?i=n-r:a===d?i=1/3+t-n:c===d&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,o*100,d*100]};E.rgb.hwb=function(e){let t=e[0],r=e[1],n=e[2],i=E.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,o*100,n*100]};E.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(1-t,1-r,1-n),o=(1-t-i)/(1-i)||0,s=(1-r-i)/(1-i)||0,a=(1-n-i)/(1-i)||0;return[o*100,s*100,a*100,i*100]};function Zd(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}E.rgb.keyword=function(e){let t=ou[e];if(t)return t;let r=1/0,n;for(let i of Object.keys(qt)){let o=qt[i],s=Zd(e,o);s<r&&(r=s,n=i)}return n};E.keyword.rgb=function(e){return qt[e]};E.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let i=t*.4124+r*.3576+n*.1805,o=t*.2126+r*.7152+n*.0722,s=t*.0193+r*.1192+n*.9505;return[i*100,o*100,s*100]};E.rgb.lab=function(e){let t=E.rgb.xyz(e),r=t[0],n=t[1],i=t[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let o=116*n-16,s=500*(r-n),a=200*(n-i);return[o,s,a]};E.hsl.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,i,o,s;if(r===0)return s=n*255,[s,s,s];n<.5?i=n*(1+r):i=n+r-n*r;let a=2*n-i,c=[0,0,0];for(let d=0;d<3;d++)o=t+1/3*-(d-1),o<0&&o++,o>1&&o--,6*o<1?s=a+(i-a)*6*o:2*o<1?s=i:3*o<2?s=a+(i-a)*(2/3-o)*6:s=a,c[d]=s*255;return c};E.hsl.hsv=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,i=r,o=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=o<=1?o:2-o;let s=(n+r)/2,a=n===0?2*i/(o+i):2*r/(n+r);return[t,a*100,s*100]};E.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,n=e[2]/100,i=Math.floor(t)%6,o=t-Math.floor(t),s=255*n*(1-r),a=255*n*(1-r*o),c=255*n*(1-r*(1-o));switch(n*=255,i){case 0:return[n,c,s];case 1:return[a,n,s];case 2:return[s,n,c];case 3:return[s,a,n];case 4:return[c,s,n];case 5:return[n,s,a]}};E.hsv.hsl=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01),o,s;s=(2-r)*n;let a=(2-r)*i;return o=r*i,o/=a<=1?a:2-a,o=o||0,s/=2,[t,o*100,s*100]};E.hwb.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,i=r+n,o;i>1&&(r/=i,n/=i);let s=Math.floor(6*t),a=1-n;o=6*t-s,s&1&&(o=1-o);let c=r+o*(a-r),d,f,p;switch(s){default:case 6:case 0:d=a,f=c,p=r;break;case 1:d=c,f=a,p=r;break;case 2:d=r,f=a,p=c;break;case 3:d=r,f=c,p=a;break;case 4:d=c,f=r,p=a;break;case 5:d=a,f=r,p=c;break}return[d*255,f*255,p*255]};E.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100,o=1-Math.min(1,t*(1-i)+i),s=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i);return[o*255,s*255,a*255]};E.xyz.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,i,o,s;return i=t*3.2406+r*-1.5372+n*-.4986,o=t*-.9689+r*1.8758+n*.0415,s=t*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),s=Math.min(Math.max(0,s),1),[i*255,o*255,s*255]};E.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let i=116*r-16,o=500*(t-r),s=200*(r-n);return[i,o,s]};E.lab.xyz=function(e){let t=e[0],r=e[1],n=e[2],i,o,s;o=(t+16)/116,i=r/500+o,s=o-n/200;let a=o**3,c=i**3,d=s**3;return o=a>.008856?a:(o-16/116)/7.787,i=c>.008856?c:(i-16/116)/7.787,s=d>.008856?d:(s-16/116)/7.787,i*=95.047,o*=100,s*=108.883,[i,o,s]};E.lab.lch=function(e){let t=e[0],r=e[1],n=e[2],i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);let s=Math.sqrt(r*r+n*n);return[t,s,i]};E.lch.lab=function(e){let t=e[0],r=e[1],i=e[2]/360*2*Math.PI,o=r*Math.cos(i),s=r*Math.sin(i);return[t,o,s]};E.rgb.ansi16=function(e,t=null){let[r,n,i]=e,o=t===null?E.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),o===0)return 30;let s=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return o===2&&(s+=60),s};E.hsv.ansi16=function(e){return E.rgb.ansi16(E.hsv.rgb(e),e[2])};E.rgb.ansi256=function(e){let t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};E.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let r=(~~(e>50)+1)*.5,n=(t&1)*r*255,i=(t>>1&1)*r*255,o=(t>>2&1)*r*255;return[n,i,o]};E.ansi256.rgb=function(e){if(e>=232){let o=(e-232)*10+8;return[o,o,o]}e-=16;let t,r=Math.floor(e/36)/5*255,n=Math.floor((t=e%36)/6)/5*255,i=t%6/5*255;return[r,n,i]};E.rgb.hex=function(e){let r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};E.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(a=>a+a).join(""));let n=parseInt(r,16),i=n>>16&255,o=n>>8&255,s=n&255;return[i,o,s]};E.rgb.hcg=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),o=Math.min(Math.min(t,r),n),s=i-o,a,c;return s<1?a=o/(1-s):a=0,s<=0?c=0:i===t?c=(r-n)/s%6:i===r?c=2+(n-t)/s:c=4+(t-r)/s,c/=6,c%=1,[c*360,s*100,a*100]};E.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r),i=0;return n<1&&(i=(r-.5*n)/(1-n)),[e[0],n*100,i*100]};E.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=t*r,i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],n*100,i*100]};E.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];let i=[0,0,0],o=t%1*6,s=o%1,a=1-s,c=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=s,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]=s;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return c=(1-r)*n,[(r*i[0]+c)*255,(r*i[1]+c)*255,(r*i[2]+c)*255]};E.hcg.hsv=function(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t),i=0;return n>0&&(i=t/n),[e[0],i*100,n*100]};E.hcg.hsl=function(e){let t=e[1]/100,n=e[2]/100*(1-t)+.5*t,i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],i*100,n*100]};E.hcg.hwb=function(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};E.hwb.hcg=function(e){let t=e[1]/100,n=1-e[2]/100,i=n-t,o=0;return i<1&&(o=(n-i)/(1-i)),[e[0],i*100,o*100]};E.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};E.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};E.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};E.gray.hsl=function(e){return[0,0,e[0]]};E.gray.hsv=E.gray.hsl;E.gray.hwb=function(e){return[0,100,e[0]]};E.gray.cmyk=function(e){return[0,0,0,e[0]]};E.gray.lab=function(e){return[e[0],0,0]};E.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n};E.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});var cu=v((H1,au)=>{var Rr=Kn();function ep(){let e={},t=Object.keys(Rr);for(let r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function tp(e){let t=ep(),r=[e];for(t[e].distance=0;r.length;){let n=r.pop(),i=Object.keys(Rr[n]);for(let o=i.length,s=0;s<o;s++){let a=i[s],c=t[a];c.distance===-1&&(c.distance=t[n].distance+1,c.parent=n,r.unshift(a))}}return t}function rp(e,t){return function(r){return t(e(r))}}function np(e,t){let r=[t[e].parent,e],n=Rr[t[e].parent][e],i=t[e].parent;for(;t[i].parent;)r.unshift(t[i].parent),n=rp(Rr[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}au.exports=function(e){let t=tp(e),r={},n=Object.keys(t);for(let i=n.length,o=0;o<i;o++){let s=n[o];t[s].parent!==null&&(r[s]=np(s,t))}return r}});var lu=v((G1,uu)=>{var Qn=Kn(),ip=cu(),st={},op=Object.keys(Qn);function sp(e){let t=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function ap(e){let t=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let i=e(r);if(typeof i=="object")for(let o=i.length,s=0;s<o;s++)i[s]=Math.round(i[s]);return i};return"conversion"in e&&(t.conversion=e.conversion),t}op.forEach(e=>{st[e]={},Object.defineProperty(st[e],"channels",{value:Qn[e].channels}),Object.defineProperty(st[e],"labels",{value:Qn[e].labels});let t=ip(e);Object.keys(t).forEach(n=>{let i=t[n];st[e][n]=ap(i),st[e][n].raw=sp(i)})});uu.exports=st});var yu=v((z1,mu)=>{"use strict";var fu=(e,t)=>(...r)=>`\x1B[${e(...r)+t}m`,hu=(e,t)=>(...r)=>{let n=e(...r);return`\x1B[${38+t};5;${n}m`},du=(e,t)=>(...r)=>{let n=e(...r);return`\x1B[${38+t};2;${n[0]};${n[1]};${n[2]}m`},Pr=e=>e,pu=(e,t,r)=>[e,t,r],at=(e,t,r)=>{Object.defineProperty(e,t,{get:()=>{let n=r();return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})},Zn,ct=(e,t,r,n)=>{Zn===void 0&&(Zn=lu());let i=n?10:0,o={};for(let[s,a]of Object.entries(Zn)){let c=s==="ansi16"?"ansi":s;s===t?o[c]=e(r,i):typeof a=="object"&&(o[c]=e(a[t],i))}return o};function cp(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(let[r,n]of Object.entries(t)){for(let[i,o]of Object.entries(n))t[i]={open:`\x1B[${o[0]}m`,close:`\x1B[${o[1]}m`},n[i]=t[i],e.set(o[0],o[1]);Object.defineProperty(t,r,{value:n,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",at(t.color,"ansi",()=>ct(fu,"ansi16",Pr,!1)),at(t.color,"ansi256",()=>ct(hu,"ansi256",Pr,!1)),at(t.color,"ansi16m",()=>ct(du,"rgb",pu,!1)),at(t.bgColor,"ansi",()=>ct(fu,"ansi16",Pr,!0)),at(t.bgColor,"ansi256",()=>ct(hu,"ansi256",Pr,!0)),at(t.bgColor,"ansi16m",()=>ct(du,"rgb",pu,!0)),t}Object.defineProperty(mu,"exports",{enumerable:!0,get:cp})});var vu=v((J1,gu)=>{"use strict";var up=(e,t,r)=>{let n=e.indexOf(t);if(n===-1)return e;let i=t.length,o=0,s="";do s+=e.substr(o,n-o)+t+r,o=n+i,n=e.indexOf(t,o);while(n!==-1);return s+=e.substr(o),s},lp=(e,t,r,n)=>{let i=0,o="";do{let s=e[n-1]==="\r";o+=e.substr(i,(s?n-1:n)-i)+t+(s?`\r
|
|
8
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`),wt.checkPaths(e,t,"copy",(i,o)=>{if(i)return n(i);let{srcStat:s,destStat:a}=o;wt.checkParentPaths(e,s,t,"copy",c=>c?n(c):r.filter?Zo(Xo,a,e,t,r,n):Xo(a,e,t,r,n))})}function Xo(e,t,r,n,i){let o=bt.dirname(r);sh(o,(s,a)=>{if(s)return i(s);if(a)return mn(e,t,r,n,i);oh(o,c=>c?i(c):mn(e,t,r,n,i))})}function Zo(e,t,r,n,i,o){Promise.resolve(i.filter(r,n)).then(s=>s?e(t,r,n,i,o):o(),s=>o(s))}function mn(e,t,r,n,i){return n.filter?Zo(Ko,e,t,r,n,i):Ko(e,t,r,n,i)}function Ko(e,t,r,n,i){(n.dereference?fe.stat:fe.lstat)(t,(s,a)=>{if(s)return i(s);if(a.isDirectory())return mh(a,e,t,r,n,i);if(a.isFile()||a.isCharacterDevice()||a.isBlockDevice())return uh(a,e,t,r,n,i);if(a.isSymbolicLink())return vh(e,t,r,n,i)})}function uh(e,t,r,n,i,o){return t?lh(e,r,n,i,o):es(e,r,n,i,o)}function lh(e,t,r,n,i){if(n.overwrite)fe.unlink(r,o=>o?i(o):es(e,t,r,n,i));else return n.errorOnExist?i(new Error(`'${r}' already exists`)):i()}function es(e,t,r,n,i){fe.copyFile(t,r,o=>o?i(o):n.preserveTimestamps?fh(e.mode,t,r,i):er(r,e.mode,i))}function fh(e,t,r,n){return hh(e)?dh(r,e,i=>i?n(i):Qo(e,t,r,n)):Qo(e,t,r,n)}function hh(e){return(e&128)===0}function dh(e,t,r){return er(e,t|128,r)}function Qo(e,t,r,n){ph(t,r,i=>i?n(i):er(r,e,n))}function er(e,t,r){return fe.chmod(e,t,r)}function ph(e,t,r){fe.stat(e,(n,i)=>n?r(n):ah(t,i.atime,i.mtime,r))}function mh(e,t,r,n,i,o){return t?t&&!t.isDirectory()?o(new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`)):ts(r,n,i,o):yh(e.mode,r,n,i,o)}function yh(e,t,r,n,i){fe.mkdir(r,o=>{if(o)return i(o);ts(t,r,n,s=>s?i(s):er(r,e,i))})}function ts(e,t,r,n){fe.readdir(e,(i,o)=>i?n(i):rs(o,e,t,r,n))}function rs(e,t,r,n,i){let o=e.pop();return o?gh(e,o,t,r,n,i):i()}function gh(e,t,r,n,i,o){let s=bt.join(r,t),a=bt.join(n,t);wt.checkPaths(s,a,"copy",(c,d)=>{if(c)return o(c);let{destStat:f}=d;mn(f,s,a,i,p=>p?o(p):rs(e,r,n,i,o))})}function vh(e,t,r,n,i){fe.readlink(t,(o,s)=>{if(o)return i(o);if(n.dereference&&(s=bt.resolve(process.cwd(),s)),e)fe.readlink(r,(a,c)=>a?a.code==="EINVAL"||a.code==="UNKNOWN"?fe.symlink(s,r,i):i(a):(n.dereference&&(c=bt.resolve(process.cwd(),c)),wt.isSrcSubdir(s,c)?i(new Error(`Cannot copy '${s}' to a subdirectory of itself, '${c}'.`)):e.isDirectory()&&wt.isSrcSubdir(c,s)?i(new Error(`Cannot overwrite '${c}' with '${s}'.`)):bh(s,r,i)));else return fe.symlink(s,r,i)})}function bh(e,t,r){fe.unlink(t,n=>n?r(n):fe.symlink(e,t,r))}ns.exports=ch});var yn=v((Lm,os)=>{"use strict";var wh=ue().fromCallback;os.exports={copy:wh(is())}});var ps=v((Bm,ds)=>{"use strict";var ss=Z(),ls=require("path"),L=require("assert"),St=process.platform==="win32";function fs(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(r=>{e[r]=e[r]||ss[r],r=r+"Sync",e[r]=e[r]||ss[r]}),e.maxBusyTries=e.maxBusyTries||3}function gn(e,t,r){let n=0;typeof t=="function"&&(r=t,t={}),L(e,"rimraf: missing path"),L.strictEqual(typeof e,"string","rimraf: path should be a string"),L.strictEqual(typeof r,"function","rimraf: callback function required"),L(t,"rimraf: invalid options argument provided"),L.strictEqual(typeof t,"object","rimraf: options should be object"),fs(t),as(e,t,function i(o){if(o){if((o.code==="EBUSY"||o.code==="ENOTEMPTY"||o.code==="EPERM")&&n<t.maxBusyTries){n++;let s=n*100;return setTimeout(()=>as(e,t,i),s)}o.code==="ENOENT"&&(o=null)}r(o)})}function as(e,t,r){L(e),L(t),L(typeof r=="function"),t.lstat(e,(n,i)=>{if(n&&n.code==="ENOENT")return r(null);if(n&&n.code==="EPERM"&&St)return cs(e,t,n,r);if(i&&i.isDirectory())return tr(e,t,n,r);t.unlink(e,o=>{if(o){if(o.code==="ENOENT")return r(null);if(o.code==="EPERM")return St?cs(e,t,o,r):tr(e,t,o,r);if(o.code==="EISDIR")return tr(e,t,o,r)}return r(o)})})}function cs(e,t,r,n){L(e),L(t),L(typeof n=="function"),t.chmod(e,438,i=>{i?n(i.code==="ENOENT"?null:r):t.stat(e,(o,s)=>{o?n(o.code==="ENOENT"?null:r):s.isDirectory()?tr(e,t,r,n):t.unlink(e,n)})})}function us(e,t,r){let n;L(e),L(t);try{t.chmodSync(e,438)}catch(i){if(i.code==="ENOENT")return;throw r}try{n=t.statSync(e)}catch(i){if(i.code==="ENOENT")return;throw r}n.isDirectory()?rr(e,t,r):t.unlinkSync(e)}function tr(e,t,r,n){L(e),L(t),L(typeof n=="function"),t.rmdir(e,i=>{i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?Sh(e,t,n):i&&i.code==="ENOTDIR"?n(r):n(i)})}function Sh(e,t,r){L(e),L(t),L(typeof r=="function"),t.readdir(e,(n,i)=>{if(n)return r(n);let o=i.length,s;if(o===0)return t.rmdir(e,r);i.forEach(a=>{gn(ls.join(e,a),t,c=>{if(!s){if(c)return r(s=c);--o===0&&t.rmdir(e,r)}})})})}function hs(e,t){let r;t=t||{},fs(t),L(e,"rimraf: missing path"),L.strictEqual(typeof e,"string","rimraf: path should be a string"),L(t,"rimraf: missing options"),L.strictEqual(typeof t,"object","rimraf: options should be object");try{r=t.lstatSync(e)}catch(n){if(n.code==="ENOENT")return;n.code==="EPERM"&&St&&us(e,t,n)}try{r&&r.isDirectory()?rr(e,t,null):t.unlinkSync(e)}catch(n){if(n.code==="ENOENT")return;if(n.code==="EPERM")return St?us(e,t,n):rr(e,t,n);if(n.code!=="EISDIR")throw n;rr(e,t,n)}}function rr(e,t,r){L(e),L(t);try{t.rmdirSync(e)}catch(n){if(n.code==="ENOTDIR")throw r;if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")xh(e,t);else if(n.code!=="ENOENT")throw n}}function xh(e,t){if(L(e),L(t),t.readdirSync(e).forEach(r=>hs(ls.join(e,r),t)),St){let r=Date.now();do try{return t.rmdirSync(e,t)}catch{}while(Date.now()-r<500)}else return t.rmdirSync(e,t)}ds.exports=gn;gn.sync=hs});var xt=v(($m,ys)=>{"use strict";var Eh=ue().fromCallback,ms=ps();ys.exports={remove:Eh(ms),removeSync:ms.sync}});var _s=v((Hm,Es)=>{"use strict";var _h=ue().fromCallback,bs=Z(),ws=require("path"),Ss=Se(),xs=xt(),gs=_h(function(t,r){r=r||function(){},bs.readdir(t,(n,i)=>{if(n)return Ss.mkdirs(t,r);i=i.map(s=>ws.join(t,s)),o();function o(){let s=i.pop();if(!s)return r();xs.remove(s,a=>{if(a)return r(a);o()})}})});function vs(e){let t;try{t=bs.readdirSync(e)}catch{return Ss.mkdirsSync(e)}t.forEach(r=>{r=ws.join(e,r),xs.removeSync(r)})}Es.exports={emptyDirSync:vs,emptydirSync:vs,emptyDir:gs,emptydir:gs}});var Rs=v((Um,Os)=>{"use strict";var Ch=ue().fromCallback,Cs=require("path"),Me=Z(),ks=Se();function kh(e,t){function r(){Me.writeFile(e,"",n=>{if(n)return t(n);t()})}Me.stat(e,(n,i)=>{if(!n&&i.isFile())return t();let o=Cs.dirname(e);Me.stat(o,(s,a)=>{if(s)return s.code==="ENOENT"?ks.mkdirs(o,c=>{if(c)return t(c);r()}):t(s);a.isDirectory()?r():Me.readdir(o,c=>{if(c)return t(c)})})})}function Oh(e){let t;try{t=Me.statSync(e)}catch{}if(t&&t.isFile())return;let r=Cs.dirname(e);try{Me.statSync(r).isDirectory()||Me.readdirSync(r)}catch(n){if(n&&n.code==="ENOENT")ks.mkdirsSync(r);else throw n}Me.writeFileSync(e,"")}Os.exports={createFile:Ch(kh),createFileSync:Oh}});var Ts=v((Gm,qs)=>{"use strict";var Rh=ue().fromCallback,As=require("path"),je=Z(),Ms=Se(),Ps=Ae().pathExists;function Ph(e,t,r){function n(i,o){je.link(i,o,s=>{if(s)return r(s);r(null)})}Ps(t,(i,o)=>{if(i)return r(i);if(o)return r(null);je.lstat(e,s=>{if(s)return s.message=s.message.replace("lstat","ensureLink"),r(s);let a=As.dirname(t);Ps(a,(c,d)=>{if(c)return r(c);if(d)return n(e,t);Ms.mkdirs(a,f=>{if(f)return r(f);n(e,t)})})})})}function Ah(e,t){if(je.existsSync(t))return;try{je.lstatSync(e)}catch(o){throw o.message=o.message.replace("lstat","ensureLink"),o}let n=As.dirname(t);return je.existsSync(n)||Ms.mkdirsSync(n),je.linkSync(e,t)}qs.exports={createLink:Rh(Ph),createLinkSync:Ah}});var Is=v((zm,Fs)=>{"use strict";var qe=require("path"),Et=Z(),Mh=Ae().pathExists;function qh(e,t,r){if(qe.isAbsolute(e))return Et.lstat(e,n=>n?(n.message=n.message.replace("lstat","ensureSymlink"),r(n)):r(null,{toCwd:e,toDst:e}));{let n=qe.dirname(t),i=qe.join(n,e);return Mh(i,(o,s)=>o?r(o):s?r(null,{toCwd:i,toDst:e}):Et.lstat(e,a=>a?(a.message=a.message.replace("lstat","ensureSymlink"),r(a)):r(null,{toCwd:e,toDst:qe.relative(n,e)})))}}function Th(e,t){let r;if(qe.isAbsolute(e)){if(r=Et.existsSync(e),!r)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{let n=qe.dirname(t),i=qe.join(n,e);if(r=Et.existsSync(i),r)return{toCwd:i,toDst:e};if(r=Et.existsSync(e),!r)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:qe.relative(n,e)}}}Fs.exports={symlinkPaths:qh,symlinkPathsSync:Th}});var js=v((Jm,Ns)=>{"use strict";var Ds=Z();function Fh(e,t,r){if(r=typeof t=="function"?t:r,t=typeof t=="function"?!1:t,t)return r(null,t);Ds.lstat(e,(n,i)=>{if(n)return r(null,"file");t=i&&i.isDirectory()?"dir":"file",r(null,t)})}function Ih(e,t){let r;if(t)return t;try{r=Ds.lstatSync(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}Ns.exports={symlinkType:Fh,symlinkTypeSync:Ih}});var zs=v((Wm,Gs)=>{"use strict";var Dh=ue().fromCallback,Bs=require("path"),Qe=Z(),$s=Se(),Nh=$s.mkdirs,jh=$s.mkdirsSync,Hs=Is(),Lh=Hs.symlinkPaths,Bh=Hs.symlinkPathsSync,Us=js(),$h=Us.symlinkType,Hh=Us.symlinkTypeSync,Ls=Ae().pathExists;function Uh(e,t,r,n){n=typeof r=="function"?r:n,r=typeof r=="function"?!1:r,Ls(t,(i,o)=>{if(i)return n(i);if(o)return n(null);Lh(e,t,(s,a)=>{if(s)return n(s);e=a.toDst,$h(a.toCwd,r,(c,d)=>{if(c)return n(c);let f=Bs.dirname(t);Ls(f,(p,y)=>{if(p)return n(p);if(y)return Qe.symlink(e,t,d,n);Nh(f,m=>{if(m)return n(m);Qe.symlink(e,t,d,n)})})})})})}function Gh(e,t,r){if(Qe.existsSync(t))return;let i=Bh(e,t);e=i.toDst,r=Hh(i.toCwd,r);let o=Bs.dirname(t);return Qe.existsSync(o)||jh(o),Qe.symlinkSync(e,t,r)}Gs.exports={createSymlink:Dh(Uh),createSymlinkSync:Gh}});var Ws=v((Vm,Js)=>{"use strict";var nr=Rs(),ir=Ts(),or=zs();Js.exports={createFile:nr.createFile,createFileSync:nr.createFileSync,ensureFile:nr.createFile,ensureFileSync:nr.createFileSync,createLink:ir.createLink,createLinkSync:ir.createLinkSync,ensureLink:ir.createLink,ensureLinkSync:ir.createLinkSync,createSymlink:or.createSymlink,createSymlinkSync:or.createSymlinkSync,ensureSymlink:or.createSymlink,ensureSymlinkSync:or.createSymlinkSync}});var sr=v((Ym,Vs)=>{function zh(e,{EOL:t=`
|
|
9
|
+
`,finalEOL:r=!0,replacer:n=null,spaces:i}={}){let o=r?t:"";return JSON.stringify(e,n,i).replace(/\n/g,t)+o}function Jh(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}Vs.exports={stringify:zh,stripBom:Jh}});var Qs=v((Xm,Ks)=>{var Ze;try{Ze=Z()}catch{Ze=require("fs")}var ar=ue(),{stringify:Ys,stripBom:Xs}=sr();async function Wh(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||Ze,n="throws"in t?t.throws:!0,i=await ar.fromCallback(r.readFile)(e,t);i=Xs(i);let o;try{o=JSON.parse(i,t?t.reviver:null)}catch(s){if(n)throw s.message=`${e}: ${s.message}`,s;return null}return o}var Vh=ar.fromPromise(Wh);function Yh(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||Ze,n="throws"in t?t.throws:!0;try{let i=r.readFileSync(e,t);return i=Xs(i),JSON.parse(i,t.reviver)}catch(i){if(n)throw i.message=`${e}: ${i.message}`,i;return null}}async function Xh(e,t,r={}){let n=r.fs||Ze,i=Ys(t,r);await ar.fromCallback(n.writeFile)(e,i,r)}var Kh=ar.fromPromise(Xh);function Qh(e,t,r={}){let n=r.fs||Ze,i=Ys(t,r);return n.writeFileSync(e,i,r)}var Zh={readFile:Vh,readFileSync:Yh,writeFile:Kh,writeFileSync:Qh};Ks.exports=Zh});var ea=v((Km,Zs)=>{"use strict";var cr=Qs();Zs.exports={readJson:cr.readFile,readJsonSync:cr.readFileSync,writeJson:cr.writeFile,writeJsonSync:cr.writeFileSync}});var ur=v((Qm,na)=>{"use strict";var e0=ue().fromCallback,_t=Z(),ta=require("path"),ra=Se(),t0=Ae().pathExists;function r0(e,t,r,n){typeof r=="function"&&(n=r,r="utf8");let i=ta.dirname(e);t0(i,(o,s)=>{if(o)return n(o);if(s)return _t.writeFile(e,t,r,n);ra.mkdirs(i,a=>{if(a)return n(a);_t.writeFile(e,t,r,n)})})}function n0(e,...t){let r=ta.dirname(e);if(_t.existsSync(r))return _t.writeFileSync(e,...t);ra.mkdirsSync(r),_t.writeFileSync(e,...t)}na.exports={outputFile:e0(r0),outputFileSync:n0}});var oa=v((Zm,ia)=>{"use strict";var{stringify:i0}=sr(),{outputFile:o0}=ur();async function s0(e,t,r={}){let n=i0(t,r);await o0(e,n,r)}ia.exports=s0});var aa=v((e1,sa)=>{"use strict";var{stringify:a0}=sr(),{outputFileSync:c0}=ur();function u0(e,t,r){let n=a0(t,r);c0(e,n,r)}sa.exports=u0});var ua=v((t1,ca)=>{"use strict";var l0=ue().fromPromise,oe=ea();oe.outputJson=l0(oa());oe.outputJsonSync=aa();oe.outputJSON=oe.outputJson;oe.outputJSONSync=oe.outputJsonSync;oe.writeJSON=oe.writeJson;oe.writeJSONSync=oe.writeJsonSync;oe.readJSON=oe.readJson;oe.readJSONSync=oe.readJsonSync;ca.exports=oe});var ma=v((r1,pa)=>{"use strict";var ha=Z(),f0=require("path"),h0=pn().copySync,da=xt().removeSync,d0=Se().mkdirpSync,la=yt();function p0(e,t,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:i}=la.checkPathsSync(e,t,"move");return la.checkParentPathsSync(e,i,t,"move"),d0(f0.dirname(t)),m0(e,t,n)}function m0(e,t,r){if(r)return da(t),fa(e,t,r);if(ha.existsSync(t))throw new Error("dest already exists.");return fa(e,t,r)}function fa(e,t,r){try{ha.renameSync(e,t)}catch(n){if(n.code!=="EXDEV")throw n;return y0(e,t,r)}}function y0(e,t,r){return h0(e,t,{overwrite:r,errorOnExist:!0}),da(e)}pa.exports=p0});var ga=v((n1,ya)=>{"use strict";ya.exports={moveSync:ma()}});var xa=v((i1,Sa)=>{"use strict";var g0=Z(),v0=require("path"),b0=yn().copy,wa=xt().remove,w0=Se().mkdirp,S0=Ae().pathExists,va=yt();function x0(e,t,r,n){typeof r=="function"&&(n=r,r={});let i=r.overwrite||r.clobber||!1;va.checkPaths(e,t,"move",(o,s)=>{if(o)return n(o);let{srcStat:a}=s;va.checkParentPaths(e,a,t,"move",c=>{if(c)return n(c);w0(v0.dirname(t),d=>d?n(d):E0(e,t,i,n))})})}function E0(e,t,r,n){if(r)return wa(t,i=>i?n(i):ba(e,t,r,n));S0(t,(i,o)=>i?n(i):o?n(new Error("dest already exists.")):ba(e,t,r,n))}function ba(e,t,r,n){g0.rename(e,t,i=>i?i.code!=="EXDEV"?n(i):_0(e,t,r,n):n())}function _0(e,t,r,n){b0(e,t,{overwrite:r,errorOnExist:!0},o=>o?n(o):wa(e,n))}Sa.exports=x0});var _a=v((o1,Ea)=>{"use strict";var C0=ue().fromCallback;Ea.exports={move:C0(xa())}});var Ct=v((s1,vn)=>{"use strict";vn.exports={...mt(),...pn(),...yn(),..._s(),...Ws(),...ua(),...Se(),...ga(),..._a(),...ur(),...Ae(),...xt()};var Ca=require("fs");Object.getOwnPropertyDescriptor(Ca,"promises")&&Object.defineProperty(vn.exports,"promises",{get(){return Ca.promises}})});var Oa=v((a1,ka)=>{"use strict";ka.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 bn=v((c1,Pa)=>{var kt=Oa(),Ra={};for(let e of Object.keys(kt))Ra[kt[e]]=e;var E={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};Pa.exports=E;for(let e of Object.keys(E)){if(!("channels"in E[e]))throw new Error("missing channels property: "+e);if(!("labels"in E[e]))throw new Error("missing channel labels property: "+e);if(E[e].labels.length!==E[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:r}=E[e];delete E[e].channels,delete E[e].labels,Object.defineProperty(E[e],"channels",{value:t}),Object.defineProperty(E[e],"labels",{value:r})}E.rgb.hsl=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),o=Math.max(t,r,n),s=o-i,a,c;o===i?a=0:t===o?a=(r-n)/s:r===o?a=2+(n-t)/s:n===o&&(a=4+(t-r)/s),a=Math.min(a*60,360),a<0&&(a+=360);let d=(i+o)/2;return o===i?c=0:d<=.5?c=s/(o+i):c=s/(2-o-i),[a,c*100,d*100]};E.rgb.hsv=function(e){let t,r,n,i,o,s=e[0]/255,a=e[1]/255,c=e[2]/255,d=Math.max(s,a,c),f=d-Math.min(s,a,c),p=function(y){return(d-y)/6/f+1/2};return f===0?(i=0,o=0):(o=f/d,t=p(s),r=p(a),n=p(c),s===d?i=n-r:a===d?i=1/3+t-n:c===d&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,o*100,d*100]};E.rgb.hwb=function(e){let t=e[0],r=e[1],n=e[2],i=E.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,o*100,n*100]};E.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(1-t,1-r,1-n),o=(1-t-i)/(1-i)||0,s=(1-r-i)/(1-i)||0,a=(1-n-i)/(1-i)||0;return[o*100,s*100,a*100,i*100]};function k0(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}E.rgb.keyword=function(e){let t=Ra[e];if(t)return t;let r=1/0,n;for(let i of Object.keys(kt)){let o=kt[i],s=k0(e,o);s<r&&(r=s,n=i)}return n};E.keyword.rgb=function(e){return kt[e]};E.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let i=t*.4124+r*.3576+n*.1805,o=t*.2126+r*.7152+n*.0722,s=t*.0193+r*.1192+n*.9505;return[i*100,o*100,s*100]};E.rgb.lab=function(e){let t=E.rgb.xyz(e),r=t[0],n=t[1],i=t[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let o=116*n-16,s=500*(r-n),a=200*(n-i);return[o,s,a]};E.hsl.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,i,o,s;if(r===0)return s=n*255,[s,s,s];n<.5?i=n*(1+r):i=n+r-n*r;let a=2*n-i,c=[0,0,0];for(let d=0;d<3;d++)o=t+1/3*-(d-1),o<0&&o++,o>1&&o--,6*o<1?s=a+(i-a)*6*o:2*o<1?s=i:3*o<2?s=a+(i-a)*(2/3-o)*6:s=a,c[d]=s*255;return c};E.hsl.hsv=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,i=r,o=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=o<=1?o:2-o;let s=(n+r)/2,a=n===0?2*i/(o+i):2*r/(n+r);return[t,a*100,s*100]};E.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,n=e[2]/100,i=Math.floor(t)%6,o=t-Math.floor(t),s=255*n*(1-r),a=255*n*(1-r*o),c=255*n*(1-r*(1-o));switch(n*=255,i){case 0:return[n,c,s];case 1:return[a,n,s];case 2:return[s,n,c];case 3:return[s,a,n];case 4:return[c,s,n];case 5:return[n,s,a]}};E.hsv.hsl=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01),o,s;s=(2-r)*n;let a=(2-r)*i;return o=r*i,o/=a<=1?a:2-a,o=o||0,s/=2,[t,o*100,s*100]};E.hwb.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,i=r+n,o;i>1&&(r/=i,n/=i);let s=Math.floor(6*t),a=1-n;o=6*t-s,s&1&&(o=1-o);let c=r+o*(a-r),d,f,p;switch(s){default:case 6:case 0:d=a,f=c,p=r;break;case 1:d=c,f=a,p=r;break;case 2:d=r,f=a,p=c;break;case 3:d=r,f=c,p=a;break;case 4:d=c,f=r,p=a;break;case 5:d=a,f=r,p=c;break}return[d*255,f*255,p*255]};E.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100,o=1-Math.min(1,t*(1-i)+i),s=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i);return[o*255,s*255,a*255]};E.xyz.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,i,o,s;return i=t*3.2406+r*-1.5372+n*-.4986,o=t*-.9689+r*1.8758+n*.0415,s=t*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),s=Math.min(Math.max(0,s),1),[i*255,o*255,s*255]};E.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let i=116*r-16,o=500*(t-r),s=200*(r-n);return[i,o,s]};E.lab.xyz=function(e){let t=e[0],r=e[1],n=e[2],i,o,s;o=(t+16)/116,i=r/500+o,s=o-n/200;let a=o**3,c=i**3,d=s**3;return o=a>.008856?a:(o-16/116)/7.787,i=c>.008856?c:(i-16/116)/7.787,s=d>.008856?d:(s-16/116)/7.787,i*=95.047,o*=100,s*=108.883,[i,o,s]};E.lab.lch=function(e){let t=e[0],r=e[1],n=e[2],i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);let s=Math.sqrt(r*r+n*n);return[t,s,i]};E.lch.lab=function(e){let t=e[0],r=e[1],i=e[2]/360*2*Math.PI,o=r*Math.cos(i),s=r*Math.sin(i);return[t,o,s]};E.rgb.ansi16=function(e,t=null){let[r,n,i]=e,o=t===null?E.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),o===0)return 30;let s=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return o===2&&(s+=60),s};E.hsv.ansi16=function(e){return E.rgb.ansi16(E.hsv.rgb(e),e[2])};E.rgb.ansi256=function(e){let t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};E.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let r=(~~(e>50)+1)*.5,n=(t&1)*r*255,i=(t>>1&1)*r*255,o=(t>>2&1)*r*255;return[n,i,o]};E.ansi256.rgb=function(e){if(e>=232){let o=(e-232)*10+8;return[o,o,o]}e-=16;let t,r=Math.floor(e/36)/5*255,n=Math.floor((t=e%36)/6)/5*255,i=t%6/5*255;return[r,n,i]};E.rgb.hex=function(e){let r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};E.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(a=>a+a).join(""));let n=parseInt(r,16),i=n>>16&255,o=n>>8&255,s=n&255;return[i,o,s]};E.rgb.hcg=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),o=Math.min(Math.min(t,r),n),s=i-o,a,c;return s<1?a=o/(1-s):a=0,s<=0?c=0:i===t?c=(r-n)/s%6:i===r?c=2+(n-t)/s:c=4+(t-r)/s,c/=6,c%=1,[c*360,s*100,a*100]};E.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r),i=0;return n<1&&(i=(r-.5*n)/(1-n)),[e[0],n*100,i*100]};E.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=t*r,i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],n*100,i*100]};E.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];let i=[0,0,0],o=t%1*6,s=o%1,a=1-s,c=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=s,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]=s;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return c=(1-r)*n,[(r*i[0]+c)*255,(r*i[1]+c)*255,(r*i[2]+c)*255]};E.hcg.hsv=function(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t),i=0;return n>0&&(i=t/n),[e[0],i*100,n*100]};E.hcg.hsl=function(e){let t=e[1]/100,n=e[2]/100*(1-t)+.5*t,i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],i*100,n*100]};E.hcg.hwb=function(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};E.hwb.hcg=function(e){let t=e[1]/100,n=1-e[2]/100,i=n-t,o=0;return i<1&&(o=(n-i)/(1-i)),[e[0],i*100,o*100]};E.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};E.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};E.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};E.gray.hsl=function(e){return[0,0,e[0]]};E.gray.hsv=E.gray.hsl;E.gray.hwb=function(e){return[0,100,e[0]]};E.gray.cmyk=function(e){return[0,0,0,e[0]]};E.gray.lab=function(e){return[e[0],0,0]};E.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n};E.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});var Ma=v((u1,Aa)=>{var lr=bn();function O0(){let e={},t=Object.keys(lr);for(let r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function R0(e){let t=O0(),r=[e];for(t[e].distance=0;r.length;){let n=r.pop(),i=Object.keys(lr[n]);for(let o=i.length,s=0;s<o;s++){let a=i[s],c=t[a];c.distance===-1&&(c.distance=t[n].distance+1,c.parent=n,r.unshift(a))}}return t}function P0(e,t){return function(r){return t(e(r))}}function A0(e,t){let r=[t[e].parent,e],n=lr[t[e].parent][e],i=t[e].parent;for(;t[i].parent;)r.unshift(t[i].parent),n=P0(lr[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}Aa.exports=function(e){let t=R0(e),r={},n=Object.keys(t);for(let i=n.length,o=0;o<i;o++){let s=n[o];t[s].parent!==null&&(r[s]=A0(s,t))}return r}});var Ta=v((l1,qa)=>{var wn=bn(),M0=Ma(),et={},q0=Object.keys(wn);function T0(e){let t=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function F0(e){let t=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let i=e(r);if(typeof i=="object")for(let o=i.length,s=0;s<o;s++)i[s]=Math.round(i[s]);return i};return"conversion"in e&&(t.conversion=e.conversion),t}q0.forEach(e=>{et[e]={},Object.defineProperty(et[e],"channels",{value:wn[e].channels}),Object.defineProperty(et[e],"labels",{value:wn[e].labels});let t=M0(e);Object.keys(t).forEach(n=>{let i=t[n];et[e][n]=F0(i),et[e][n].raw=T0(i)})});qa.exports=et});var La=v((f1,ja)=>{"use strict";var Fa=(e,t)=>(...r)=>`\x1B[${e(...r)+t}m`,Ia=(e,t)=>(...r)=>{let n=e(...r);return`\x1B[${38+t};5;${n}m`},Da=(e,t)=>(...r)=>{let n=e(...r);return`\x1B[${38+t};2;${n[0]};${n[1]};${n[2]}m`},fr=e=>e,Na=(e,t,r)=>[e,t,r],tt=(e,t,r)=>{Object.defineProperty(e,t,{get:()=>{let n=r();return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})},Sn,rt=(e,t,r,n)=>{Sn===void 0&&(Sn=Ta());let i=n?10:0,o={};for(let[s,a]of Object.entries(Sn)){let c=s==="ansi16"?"ansi":s;s===t?o[c]=e(r,i):typeof a=="object"&&(o[c]=e(a[t],i))}return o};function I0(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(let[r,n]of Object.entries(t)){for(let[i,o]of Object.entries(n))t[i]={open:`\x1B[${o[0]}m`,close:`\x1B[${o[1]}m`},n[i]=t[i],e.set(o[0],o[1]);Object.defineProperty(t,r,{value:n,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",tt(t.color,"ansi",()=>rt(Fa,"ansi16",fr,!1)),tt(t.color,"ansi256",()=>rt(Ia,"ansi256",fr,!1)),tt(t.color,"ansi16m",()=>rt(Da,"rgb",Na,!1)),tt(t.bgColor,"ansi",()=>rt(Fa,"ansi16",fr,!0)),tt(t.bgColor,"ansi256",()=>rt(Ia,"ansi256",fr,!0)),tt(t.bgColor,"ansi16m",()=>rt(Da,"rgb",Na,!0)),t}Object.defineProperty(ja,"exports",{enumerable:!0,get:I0})});var $a=v((h1,Ba)=>{"use strict";Ba.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}});var _n=v((d1,Ua)=>{"use strict";var D0=require("os"),Ha=require("tty"),ge=$a(),{env:V}=process,Te;ge("no-color")||ge("no-colors")||ge("color=false")||ge("color=never")?Te=0:(ge("color")||ge("colors")||ge("color=true")||ge("color=always"))&&(Te=1);"FORCE_COLOR"in V&&(V.FORCE_COLOR==="true"?Te=1:V.FORCE_COLOR==="false"?Te=0:Te=V.FORCE_COLOR.length===0?1:Math.min(parseInt(V.FORCE_COLOR,10),3));function xn(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function En(e,t){if(Te===0)return 0;if(ge("color=16m")||ge("color=full")||ge("color=truecolor"))return 3;if(ge("color=256"))return 2;if(e&&!t&&Te===void 0)return 0;let r=Te||0;if(V.TERM==="dumb")return r;if(process.platform==="win32"){let n=D0.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in V)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in V)||V.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in V)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(V.TEAMCITY_VERSION)?1:0;if(V.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in V){let n=parseInt((V.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(V.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(V.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(V.TERM)||"COLORTERM"in V?1:r}function N0(e){let t=En(e,e&&e.isTTY);return xn(t)}Ua.exports={supportsColor:N0,stdout:xn(En(!0,Ha.isatty(1))),stderr:xn(En(!0,Ha.isatty(2)))}});var za=v((p1,Ga)=>{"use strict";var j0=(e,t,r)=>{let n=e.indexOf(t);if(n===-1)return e;let i=t.length,o=0,s="";do s+=e.substr(o,n-o)+t+r,o=n+i,n=e.indexOf(t,o);while(n!==-1);return s+=e.substr(o),s},L0=(e,t,r,n)=>{let i=0,o="";do{let s=e[n-1]==="\r";o+=e.substr(i,(s?n-1:n)-i)+t+(s?`\r
|
|
15
10
|
`:`
|
|
16
11
|
`)+r,i=n+1,n=e.indexOf(`
|
|
17
|
-
`,i)}while(n!==-1);return o+=e.substr(i),o};
|
|
18
|
-
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function
|
|
19
|
-
`);return o!==-1&&(t=vp(t,i,n,o)),n+t+i},ei,Ru=(e,...t)=>{let[r]=t;if(!Ar(r)||!Ar(r.raw))return t.join(" ");let n=t.slice(1),i=[r.raw[0]];for(let o=1;o<r.length;o++)i.push(String(n[o-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[o]));return ei===void 0&&(ei=Eu()),ei(e,i.join(""))};Object.defineProperties(qr.prototype,ut);var Fr=qr();Fr.supportsColor=ti;Fr.stderr=qr({level:ri?ri.level:0});Fr.stderr.supportsColor=ri;Pu.exports=Fr});var qu=v((oi,si)=>{(function(e,t){typeof oi=="object"&&typeof si<"u"?si.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.tinycolor=t())})(oi,function(){"use strict";function e(u){return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},e(u)}var t=/^\s+/,r=/\s+$/;function n(u,h){if(u=u||"",h=h||{},u instanceof n)return u;if(!(this instanceof n))return new n(u,h);var l=i(u);this._originalInput=u,this._r=l.r,this._g=l.g,this._b=l.b,this._a=l.a,this._roundA=Math.round(100*this._a)/100,this._format=h.format||l.format,this._gradientType=h.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=l.ok}n.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var h=this.toRgb();return(h.r*299+h.g*587+h.b*114)/1e3},getLuminance:function(){var h=this.toRgb(),l,g,w,b,I,N;return l=h.r/255,g=h.g/255,w=h.b/255,l<=.03928?b=l/12.92:b=Math.pow((l+.055)/1.055,2.4),g<=.03928?I=g/12.92:I=Math.pow((g+.055)/1.055,2.4),w<=.03928?N=w/12.92:N=Math.pow((w+.055)/1.055,2.4),.2126*b+.7152*I+.0722*N},setAlpha:function(h){return this._a=U(h),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var h=c(this._r,this._g,this._b);return{h:h.h*360,s:h.s,v:h.v,a:this._a}},toHsvString:function(){var h=c(this._r,this._g,this._b),l=Math.round(h.h*360),g=Math.round(h.s*100),w=Math.round(h.v*100);return this._a==1?"hsv("+l+", "+g+"%, "+w+"%)":"hsva("+l+", "+g+"%, "+w+"%, "+this._roundA+")"},toHsl:function(){var h=s(this._r,this._g,this._b);return{h:h.h*360,s:h.s,l:h.l,a:this._a}},toHslString:function(){var h=s(this._r,this._g,this._b),l=Math.round(h.h*360),g=Math.round(h.s*100),w=Math.round(h.l*100);return this._a==1?"hsl("+l+", "+g+"%, "+w+"%)":"hsla("+l+", "+g+"%, "+w+"%, "+this._roundA+")"},toHex:function(h){return f(this._r,this._g,this._b,h)},toHexString:function(h){return"#"+this.toHex(h)},toHex8:function(h){return p(this._r,this._g,this._b,this._a,h)},toHex8String:function(h){return"#"+this.toHex8(h)},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(P(this._r,255)*100)+"%",g:Math.round(P(this._g,255)*100)+"%",b:Math.round(P(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(P(this._r,255)*100)+"%, "+Math.round(P(this._g,255)*100)+"%, "+Math.round(P(this._b,255)*100)+"%)":"rgba("+Math.round(P(this._r,255)*100)+"%, "+Math.round(P(this._g,255)*100)+"%, "+Math.round(P(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:T[f(this._r,this._g,this._b,!0)]||!1},toFilter:function(h){var l="#"+y(this._r,this._g,this._b,this._a),g=l,w=this._gradientType?"GradientType = 1, ":"";if(h){var b=n(h);g="#"+y(b._r,b._g,b._b,b._a)}return"progid:DXImageTransform.Microsoft.gradient("+w+"startColorstr="+l+",endColorstr="+g+")"},toString:function(h){var l=!!h;h=h||this._format;var g=!1,w=this._a<1&&this._a>=0,b=!l&&w&&(h==="hex"||h==="hex6"||h==="hex3"||h==="hex4"||h==="hex8"||h==="name");return b?h==="name"&&this._a===0?this.toName():this.toRgbString():(h==="rgb"&&(g=this.toRgbString()),h==="prgb"&&(g=this.toPercentageRgbString()),(h==="hex"||h==="hex6")&&(g=this.toHexString()),h==="hex3"&&(g=this.toHexString(!0)),h==="hex4"&&(g=this.toHex8String(!0)),h==="hex8"&&(g=this.toHex8String()),h==="name"&&(g=this.toName()),h==="hsl"&&(g=this.toHslString()),h==="hsv"&&(g=this.toHsvString()),g||this.toHexString())},clone:function(){return n(this.toString())},_applyModification:function(h,l){var g=h.apply(null,[this].concat([].slice.call(l)));return this._r=g._r,this._g=g._g,this._b=g._b,this.setAlpha(g._a),this},lighten:function(){return this._applyModification(R,arguments)},brighten:function(){return this._applyModification(M,arguments)},darken:function(){return this._applyModification($,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(S,arguments)},greyscale:function(){return this._applyModification(O,arguments)},spin:function(){return this._applyModification(z,arguments)},_applyCombination:function(h,l){return h.apply(null,[this].concat([].slice.call(l)))},analogous:function(){return this._applyCombination(Ce,arguments)},complement:function(){return this._applyCombination(G,arguments)},monochromatic:function(){return this._applyCombination(ae,arguments)},splitcomplement:function(){return this._applyCombination(ve,arguments)},triad:function(){return this._applyCombination(re,[3])},tetrad:function(){return this._applyCombination(re,[4])}},n.fromRatio=function(u,h){if(e(u)=="object"){var l={};for(var g in u)u.hasOwnProperty(g)&&(g==="a"?l[g]=u[g]:l[g]=A(u[g]));u=l}return n(u,h)};function i(u){var h={r:0,g:0,b:0},l=1,g=null,w=null,b=null,I=!1,N=!1;return typeof u=="string"&&(u=It(u)),e(u)=="object"&&(pe(u.r)&&pe(u.g)&&pe(u.b)?(h=o(u.r,u.g,u.b),I=!0,N=String(u.r).substr(-1)==="%"?"prgb":"rgb"):pe(u.h)&&pe(u.s)&&pe(u.v)?(g=A(u.s),w=A(u.v),h=d(u.h,g,w),I=!0,N="hsv"):pe(u.h)&&pe(u.s)&&pe(u.l)&&(g=A(u.s),b=A(u.l),h=a(u.h,g,b),I=!0,N="hsl"),u.hasOwnProperty("a")&&(l=u.a)),l=U(l),{ok:I,format:u.format||N,r:Math.min(255,Math.max(h.r,0)),g:Math.min(255,Math.max(h.g,0)),b:Math.min(255,Math.max(h.b,0)),a:l}}function o(u,h,l){return{r:P(u,255)*255,g:P(h,255)*255,b:P(l,255)*255}}function s(u,h,l){u=P(u,255),h=P(h,255),l=P(l,255);var g=Math.max(u,h,l),w=Math.min(u,h,l),b,I,N=(g+w)/2;if(g==w)b=I=0;else{var J=g-w;switch(I=N>.5?J/(2-g-w):J/(g+w),g){case u:b=(h-l)/J+(h<l?6:0);break;case h:b=(l-u)/J+2;break;case l:b=(u-h)/J+4;break}b/=6}return{h:b,s:I,l:N}}function a(u,h,l){var g,w,b;u=P(u,360),h=P(h,100),l=P(l,100);function I(ye,ht,be){return be<0&&(be+=1),be>1&&(be-=1),be<1/6?ye+(ht-ye)*6*be:be<1/2?ht:be<2/3?ye+(ht-ye)*(2/3-be)*6:ye}if(h===0)g=w=b=l;else{var N=l<.5?l*(1+h):l+h-l*h,J=2*l-N;g=I(J,N,u+1/3),w=I(J,N,u),b=I(J,N,u-1/3)}return{r:g*255,g:w*255,b:b*255}}function c(u,h,l){u=P(u,255),h=P(h,255),l=P(l,255);var g=Math.max(u,h,l),w=Math.min(u,h,l),b,I,N=g,J=g-w;if(I=g===0?0:J/g,g==w)b=0;else{switch(g){case u:b=(h-l)/J+(h<l?6:0);break;case h:b=(l-u)/J+2;break;case l:b=(u-h)/J+4;break}b/=6}return{h:b,s:I,v:N}}function d(u,h,l){u=P(u,360)*6,h=P(h,100),l=P(l,100);var g=Math.floor(u),w=u-g,b=l*(1-h),I=l*(1-w*h),N=l*(1-(1-w)*h),J=g%6,ye=[l,I,b,b,N,l][J],ht=[N,l,l,I,b,b][J],be=[b,b,N,l,l,I][J];return{r:ye*255,g:ht*255,b:be*255}}function f(u,h,l,g){var w=[_(Math.round(u).toString(16)),_(Math.round(h).toString(16)),_(Math.round(l).toString(16))];return g&&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(u,h,l,g,w){var b=[_(Math.round(u).toString(16)),_(Math.round(h).toString(16)),_(Math.round(l).toString(16)),_(ke(g))];return w&&b[0].charAt(0)==b[0].charAt(1)&&b[1].charAt(0)==b[1].charAt(1)&&b[2].charAt(0)==b[2].charAt(1)&&b[3].charAt(0)==b[3].charAt(1)?b[0].charAt(0)+b[1].charAt(0)+b[2].charAt(0)+b[3].charAt(0):b.join("")}function y(u,h,l,g){var w=[_(ke(g)),_(Math.round(u).toString(16)),_(Math.round(h).toString(16)),_(Math.round(l).toString(16))];return w.join("")}n.equals=function(u,h){return!u||!h?!1:n(u).toRgbString()==n(h).toRgbString()},n.random=function(){return n.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function m(u,h){h=h===0?0:h||10;var l=n(u).toHsl();return l.s-=h/100,l.s=L(l.s),n(l)}function S(u,h){h=h===0?0:h||10;var l=n(u).toHsl();return l.s+=h/100,l.s=L(l.s),n(l)}function O(u){return n(u).desaturate(100)}function R(u,h){h=h===0?0:h||10;var l=n(u).toHsl();return l.l+=h/100,l.l=L(l.l),n(l)}function M(u,h){h=h===0?0:h||10;var l=n(u).toRgb();return l.r=Math.max(0,Math.min(255,l.r-Math.round(255*-(h/100)))),l.g=Math.max(0,Math.min(255,l.g-Math.round(255*-(h/100)))),l.b=Math.max(0,Math.min(255,l.b-Math.round(255*-(h/100)))),n(l)}function $(u,h){h=h===0?0:h||10;var l=n(u).toHsl();return l.l-=h/100,l.l=L(l.l),n(l)}function z(u,h){var l=n(u).toHsl(),g=(l.h+h)%360;return l.h=g<0?360+g:g,n(l)}function G(u){var h=n(u).toHsl();return h.h=(h.h+180)%360,n(h)}function re(u,h){if(isNaN(h)||h<=0)throw new Error("Argument to polyad must be a positive number");for(var l=n(u).toHsl(),g=[n(u)],w=360/h,b=1;b<h;b++)g.push(n({h:(l.h+b*w)%360,s:l.s,l:l.l}));return g}function ve(u){var h=n(u).toHsl(),l=h.h;return[n(u),n({h:(l+72)%360,s:h.s,l:h.l}),n({h:(l+216)%360,s:h.s,l:h.l})]}function Ce(u,h,l){h=h||6,l=l||30;var g=n(u).toHsl(),w=360/l,b=[n(u)];for(g.h=(g.h-(w*h>>1)+720)%360;--h;)g.h=(g.h+w)%360,b.push(n(g));return b}function ae(u,h){h=h||6;for(var l=n(u).toHsv(),g=l.h,w=l.s,b=l.v,I=[],N=1/h;h--;)I.push(n({h:g,s:w,v:b})),b=(b+N)%1;return I}n.mix=function(u,h,l){l=l===0?0:l||50;var g=n(u).toRgb(),w=n(h).toRgb(),b=l/100,I={r:(w.r-g.r)*b+g.r,g:(w.g-g.g)*b+g.g,b:(w.b-g.b)*b+g.b,a:(w.a-g.a)*b+g.a};return n(I)},n.readability=function(u,h){var l=n(u),g=n(h);return(Math.max(l.getLuminance(),g.getLuminance())+.05)/(Math.min(l.getLuminance(),g.getLuminance())+.05)},n.isReadable=function(u,h,l){var g=n.readability(u,h),w,b;switch(b=!1,w=me(l),w.level+w.size){case"AAsmall":case"AAAlarge":b=g>=4.5;break;case"AAlarge":b=g>=3;break;case"AAAsmall":b=g>=7;break}return b},n.mostReadable=function(u,h,l){var g=null,w=0,b,I,N,J;l=l||{},I=l.includeFallbackColors,N=l.level,J=l.size;for(var ye=0;ye<h.length;ye++)b=n.readability(u,h[ye]),b>w&&(w=b,g=n(h[ye]));return n.isReadable(u,g,{level:N,size:J})||!I?g:(l.includeFallbackColors=!1,n.mostReadable(u,["#fff","#000"],l))};var k=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"},T=n.hexNames=F(k);function F(u){var h={};for(var l in u)u.hasOwnProperty(l)&&(h[u[l]]=l);return h}function U(u){return u=parseFloat(u),(isNaN(u)||u<0||u>1)&&(u=1),u}function P(u,h){j(u)&&(u="100%");var l=q(u);return u=Math.min(h,Math.max(0,parseFloat(u))),l&&(u=parseInt(u*h,10)/100),Math.abs(u-h)<1e-6?1:u%h/parseFloat(h)}function L(u){return Math.min(1,Math.max(0,u))}function C(u){return parseInt(u,16)}function j(u){return typeof u=="string"&&u.indexOf(".")!=-1&&parseFloat(u)===1}function q(u){return typeof u=="string"&&u.indexOf("%")!=-1}function _(u){return u.length==1?"0"+u:""+u}function A(u){return u<=1&&(u=u*100+"%"),u}function ke(u){return Math.round(parseFloat(u)*255).toString(16)}function Te(u){return C(u)/255}var ce=function(){var u="[-\\+]?\\d+%?",h="[-\\+]?\\d*\\.\\d+%?",l="(?:"+h+")|(?:"+u+")",g="[\\s|\\(]+("+l+")[,|\\s]+("+l+")[,|\\s]+("+l+")\\s*\\)?",w="[\\s|\\(]+("+l+")[,|\\s]+("+l+")[,|\\s]+("+l+")[,|\\s]+("+l+")\\s*\\)?";return{CSS_UNIT:new RegExp(l),rgb:new RegExp("rgb"+g),rgba:new RegExp("rgba"+w),hsl:new RegExp("hsl"+g),hsla:new RegExp("hsla"+w),hsv:new RegExp("hsv"+g),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 pe(u){return!!ce.CSS_UNIT.exec(u)}function It(u){u=u.replace(t,"").replace(r,"").toLowerCase();var h=!1;if(k[u])u=k[u],h=!0;else if(u=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var l;return(l=ce.rgb.exec(u))?{r:l[1],g:l[2],b:l[3]}:(l=ce.rgba.exec(u))?{r:l[1],g:l[2],b:l[3],a:l[4]}:(l=ce.hsl.exec(u))?{h:l[1],s:l[2],l:l[3]}:(l=ce.hsla.exec(u))?{h:l[1],s:l[2],l:l[3],a:l[4]}:(l=ce.hsv.exec(u))?{h:l[1],s:l[2],v:l[3]}:(l=ce.hsva.exec(u))?{h:l[1],s:l[2],v:l[3],a:l[4]}:(l=ce.hex8.exec(u))?{r:C(l[1]),g:C(l[2]),b:C(l[3]),a:Te(l[4]),format:h?"name":"hex8"}:(l=ce.hex6.exec(u))?{r:C(l[1]),g:C(l[2]),b:C(l[3]),format:h?"name":"hex"}:(l=ce.hex4.exec(u))?{r:C(l[1]+""+l[1]),g:C(l[2]+""+l[2]),b:C(l[3]+""+l[3]),a:Te(l[4]+""+l[4]),format:h?"name":"hex8"}:(l=ce.hex3.exec(u))?{r:C(l[1]+""+l[1]),g:C(l[2]+""+l[2]),b:C(l[3]+""+l[3]),format:h?"name":"hex"}:!1}function me(u){var h,l;return u=u||{level:"AA",size:"small"},h=(u.level||"AA").toUpperCase(),l=(u.size||"small").toLowerCase(),h!=="AA"&&h!=="AAA"&&(h="AA"),l!=="small"&&l!=="large"&&(l="small"),{level:h,size:l}}return n})});var Nu=v((Y1,ju)=>{var Ft=qu(),Iu={r:256,g:256,b:256,a:1},Du={h:360,s:1,v:1,a:1};function ci(e,t,r){let n={};for(let i in e)e.hasOwnProperty(i)&&(n[i]=r===0?0:(t[i]-e[i])/r);return n}function ui(e,t,r,n){let i={};for(let o in t)t.hasOwnProperty(o)&&(i[o]=e[o]*r+t[o],i[o]=i[o]<0?i[o]+n[o]:n[o]!==1?i[o]%n[o]:i[o]);return i}function ai(e,t,r){let n=e.color.toRgb(),i=t.color.toRgb(),o=ci(n,i,r),s=[e.color];for(let a=1;a<r;a++){let c=ui(o,n,a,Iu);s.push(Ft(c))}return s}function Mu(e,t,r,n){let i=e.color.toHsv(),o=t.color.toHsv();if(i.s===0||o.s===0)return ai(e,t,r);let s;if(typeof n=="boolean")s=n;else{let f=i.h<o.h&&o.h-i.h<180||i.h>o.h&&i.h-o.h>180;s=n==="long"&&f||n==="short"&&!f}let a=ci(i,o,r),c=[e.color],d;i.h<=o.h&&!s||i.h>=o.h&&s?d=o.h-i.h:s?d=360-o.h+i.h:d=360-i.h+o.h,a.h=Math.pow(-1,s?1:0)*Math.abs(d)/r;for(let f=1;f<r;f++){let p=ui(a,i,f,Du);c.push(Ft(p))}return c}function Fu(e,t){let r=e.length;if(t=parseInt(t,10),isNaN(t)||t<2)throw new Error("Invalid number of steps (< 2)");if(t<r)throw new Error("Number of steps cannot be inferior to number of stops");let n=[];for(let o=1;o<r;o++){let s=(t-1)*(e[o].pos-e[o-1].pos);n.push(Math.max(1,Math.round(s)))}let i=1;for(let o=r-1;o--;)i+=n[o];for(;i!==t;)if(i<t){let o=Math.min.apply(null,n);n[n.indexOf(o)]++,i++}else{let o=Math.max.apply(null,n);n[n.indexOf(o)]--,i--}return n}function Tu(e,t,r,n){if(t<0||t>1)throw new Error("Position must be between 0 and 1");let i,o;for(let c=0,d=e.length;c<d-1;c++)if(t>=e[c].pos&&t<e[c+1].pos){i=e[c],o=e[c+1];break}i||(i=o=e[e.length-1]);let s=ci(i.color[r](),o.color[r](),(o.pos-i.pos)*100),a=ui(s,i.color[r](),(t-i.pos)*100,n);return Ft(a)}var lt=class{constructor(t){if(t.length<2)throw new Error("Invalid number of stops (< 2)");let r=t[0].pos!==void 0,n=t.length,i=-1,o=!1;this.stops=t.map((s,a)=>{let c=s.pos!==void 0;if(r^c)throw new Error("Cannot mix positionned and not posionned color stops");if(c){let d=s.color!==void 0;if(!d&&(o||a===0||a===n-1))throw new Error("Cannot define two consecutive position-only stops");if(o=!d,s={color:d?Ft(s.color):null,colorLess:!d,pos:s.pos},s.pos<0||s.pos>1)throw new Error("Color stops positions must be between 0 and 1");if(s.pos<i)throw new Error("Color stops positions are not ordered");i=s.pos}else s={color:Ft(s.color!==void 0?s.color:s),pos:a/(n-1)};return s}),this.stops[0].pos!==0&&(this.stops.unshift({color:this.stops[0].color,pos:0}),n++),this.stops[n-1].pos!==1&&this.stops.push({color:this.stops[n-1].color,pos:1})}reverse(){let t=[];return this.stops.forEach(function(r){t.push({color:r.color,pos:1-r.pos})}),new lt(t.reverse())}loop(){let t=[],r=[];return this.stops.forEach(n=>{t.push({color:n.color,pos:n.pos/2})}),this.stops.slice(0,-1).forEach(n=>{r.push({color:n.color,pos:1-n.pos/2})}),new lt(t.concat(r.reverse()))}rgb(t){let r=Fu(this.stops,t),n=[];this.stops.forEach((i,o)=>{i.colorLess&&(i.color=ai(this.stops[o-1],this.stops[o+1],2)[1])});for(let i=0,o=this.stops.length;i<o-1;i++){let s=ai(this.stops[i],this.stops[i+1],r[i]);n.splice(n.length,0,...s)}return n.push(this.stops[this.stops.length-1].color),n}hsv(t,r){let n=Fu(this.stops,t),i=[];this.stops.forEach((o,s)=>{o.colorLess&&(o.color=Mu(this.stops[s-1],this.stops[s+1],2,r)[1])});for(let o=0,s=this.stops.length;o<s-1;o++){let a=Mu(this.stops[o],this.stops[o+1],n[o],r);i.splice(i.length,0,...a)}return i.push(this.stops[this.stops.length-1].color),i}css(t,r){t=t||"linear",r=r||(t==="linear"?"to right":"ellipse at center");let n=t+"-gradient("+r;return this.stops.forEach(function(i){n+=", "+(i.colorLess?"":i.color.toRgbString()+" ")+i.pos*100+"%"}),n+=")",n}rgbAt(t){return Tu(this.stops,t,"toRgb",Iu)}hsvAt(t){return Tu(this.stops,t,"toHsv",Du)}};ju.exports=function(e){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');e=arguments[0]}else e=Array.prototype.slice.call(arguments);return new lt(e)}});var Hu=v((X1,Tr)=>{"use strict";var Lu=Au(),Sp=Nu(),Bu=/\s/g;function li(...e){let t=Sp.apply(this,e),r=(n,i)=>xp(n?n.toString():"",t,i);return r.multiline=(n,i)=>Ep(n?n.toString():"",t,i),r}var $u=(e,t,r)=>t.interpolation.toLowerCase()==="hsv"?e.hsv(r,t.hsvSpin.toLowerCase()):e.rgb(r);function xp(e,t,r){let n=Uu(r),i=Math.max(e.replace(Bu,"").length,t.stops.length),o=$u(t,n,i),s="";for(let a of e)s+=a.match(Bu)?a:Lu.hex(o.shift().toHex())(a);return s}function Ep(e,t,r){let n=Uu(r),i=e.split(`
|
|
20
|
-
`),o=Math.max.apply(null,i.map(c=>c.length).concat([t.stops.length])),s
|
|
21
|
-
`)}function
|
|
12
|
+
`,i)}while(n!==-1);return o+=e.substr(i),o};Ga.exports={stringReplaceAll:j0,stringEncaseCRLFWithFirstIndex:L0}});var Xa=v((m1,Ya)=>{"use strict";var B0=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Ja=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,$0=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,H0=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,U0=new Map([["n",`
|
|
13
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function Va(e){let t=e[0]==="u",r=e[1]==="{";return t&&!r&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):t&&r?String.fromCodePoint(parseInt(e.slice(2,-1),16)):U0.get(e)||e}function G0(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),i;for(let o of n){let s=Number(o);if(!Number.isNaN(s))r.push(s);else if(i=o.match($0))r.push(i[2].replace(H0,(a,c,d)=>c?Va(c):d));else throw new Error(`Invalid Chalk template style argument: ${o} (in style '${e}')`)}return r}function z0(e){Ja.lastIndex=0;let t=[],r;for(;(r=Ja.exec(e))!==null;){let n=r[1];if(r[2]){let i=G0(n,r[2]);t.push([n].concat(i))}else t.push([n])}return t}function Wa(e,t){let r={};for(let i of t)for(let o of i.styles)r[o[0]]=i.inverse?null:o.slice(1);let n=e;for(let[i,o]of Object.entries(r))if(Array.isArray(o)){if(!(i in n))throw new Error(`Unknown Chalk style: ${i}`);n=o.length>0?n[i](...o):n[i]}return n}Ya.exports=(e,t)=>{let r=[],n=[],i=[];if(t.replace(B0,(o,s,a,c,d,f)=>{if(s)i.push(Va(s));else if(c){let p=i.join("");i=[],n.push(r.length===0?p:Wa(e,r)(p)),r.push({inverse:a,styles:z0(c)})}else if(d){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(Wa(e,r)(i.join(""))),i=[],r.pop()}else i.push(f)}),n.push(i.join("")),r.length>0){let o=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(o)}return n.join("")}});var nc=v((y1,rc)=>{"use strict";var Ot=La(),{stdout:kn,stderr:On}=_n(),{stringReplaceAll:J0,stringEncaseCRLFWithFirstIndex:W0}=za(),{isArray:hr}=Array,Qa=["ansi","ansi","ansi256","ansi16m"],nt=Object.create(null),V0=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=kn?kn.level:0;e.level=t.level===void 0?r:t.level},Rn=class{constructor(t){return Za(t)}},Za=e=>{let t={};return V0(t,e),t.template=(...r)=>tc(t.template,...r),Object.setPrototypeOf(t,dr.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=Rn,t.template};function dr(e){return Za(e)}for(let[e,t]of Object.entries(Ot))nt[e]={get(){let r=pr(this,Pn(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:r}),r}};nt.visible={get(){let e=pr(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};var ec=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let e of ec)nt[e]={get(){let{level:t}=this;return function(...r){let n=Pn(Ot.color[Qa[t]][e](...r),Ot.color.close,this._styler);return pr(this,n,this._isEmpty)}}};for(let e of ec){let t="bg"+e[0].toUpperCase()+e.slice(1);nt[t]={get(){let{level:r}=this;return function(...n){let i=Pn(Ot.bgColor[Qa[r]][e](...n),Ot.bgColor.close,this._styler);return pr(this,i,this._isEmpty)}}}}var Y0=Object.defineProperties(()=>{},{...nt,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),Pn=(e,t,r)=>{let n,i;return r===void 0?(n=e,i=t):(n=r.openAll+e,i=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:i,parent:r}},pr=(e,t,r)=>{let n=(...i)=>hr(i[0])&&hr(i[0].raw)?Ka(n,tc(n,...i)):Ka(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,Y0),n._generator=e,n._styler=t,n._isEmpty=r,n},Ka=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let r=e._styler;if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.indexOf("\x1B")!==-1)for(;r!==void 0;)t=J0(t,r.close,r.open),r=r.parent;let o=t.indexOf(`
|
|
14
|
+
`);return o!==-1&&(t=W0(t,i,n,o)),n+t+i},Cn,tc=(e,...t)=>{let[r]=t;if(!hr(r)||!hr(r.raw))return t.join(" ");let n=t.slice(1),i=[r.raw[0]];for(let o=1;o<r.length;o++)i.push(String(n[o-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[o]));return Cn===void 0&&(Cn=Xa()),Cn(e,i.join(""))};Object.defineProperties(dr.prototype,nt);var mr=dr();mr.supportsColor=kn;mr.stderr=dr({level:On?On.level:0});mr.stderr.supportsColor=On;rc.exports=mr});var ic=v((An,Mn)=>{(function(e,t){typeof An=="object"&&typeof Mn<"u"?Mn.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.tinycolor=t())})(An,function(){"use strict";function e(u){return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},e(u)}var t=/^\s+/,r=/\s+$/;function n(u,h){if(u=u||"",h=h||{},u instanceof n)return u;if(!(this instanceof n))return new n(u,h);var l=i(u);this._originalInput=u,this._r=l.r,this._g=l.g,this._b=l.b,this._a=l.a,this._roundA=Math.round(100*this._a)/100,this._format=h.format||l.format,this._gradientType=h.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=l.ok}n.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var h=this.toRgb();return(h.r*299+h.g*587+h.b*114)/1e3},getLuminance:function(){var h=this.toRgb(),l,g,w,b,I,j;return l=h.r/255,g=h.g/255,w=h.b/255,l<=.03928?b=l/12.92:b=Math.pow((l+.055)/1.055,2.4),g<=.03928?I=g/12.92:I=Math.pow((g+.055)/1.055,2.4),w<=.03928?j=w/12.92:j=Math.pow((w+.055)/1.055,2.4),.2126*b+.7152*I+.0722*j},setAlpha:function(h){return this._a=H(h),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var h=c(this._r,this._g,this._b);return{h:h.h*360,s:h.s,v:h.v,a:this._a}},toHsvString:function(){var h=c(this._r,this._g,this._b),l=Math.round(h.h*360),g=Math.round(h.s*100),w=Math.round(h.v*100);return this._a==1?"hsv("+l+", "+g+"%, "+w+"%)":"hsva("+l+", "+g+"%, "+w+"%, "+this._roundA+")"},toHsl:function(){var h=s(this._r,this._g,this._b);return{h:h.h*360,s:h.s,l:h.l,a:this._a}},toHslString:function(){var h=s(this._r,this._g,this._b),l=Math.round(h.h*360),g=Math.round(h.s*100),w=Math.round(h.l*100);return this._a==1?"hsl("+l+", "+g+"%, "+w+"%)":"hsla("+l+", "+g+"%, "+w+"%, "+this._roundA+")"},toHex:function(h){return f(this._r,this._g,this._b,h)},toHexString:function(h){return"#"+this.toHex(h)},toHex8:function(h){return p(this._r,this._g,this._b,this._a,h)},toHex8String:function(h){return"#"+this.toHex8(h)},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(P(this._r,255)*100)+"%",g:Math.round(P(this._g,255)*100)+"%",b:Math.round(P(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(P(this._r,255)*100)+"%, "+Math.round(P(this._g,255)*100)+"%, "+Math.round(P(this._b,255)*100)+"%)":"rgba("+Math.round(P(this._r,255)*100)+"%, "+Math.round(P(this._g,255)*100)+"%, "+Math.round(P(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:F[f(this._r,this._g,this._b,!0)]||!1},toFilter:function(h){var l="#"+y(this._r,this._g,this._b,this._a),g=l,w=this._gradientType?"GradientType = 1, ":"";if(h){var b=n(h);g="#"+y(b._r,b._g,b._b,b._a)}return"progid:DXImageTransform.Microsoft.gradient("+w+"startColorstr="+l+",endColorstr="+g+")"},toString:function(h){var l=!!h;h=h||this._format;var g=!1,w=this._a<1&&this._a>=0,b=!l&&w&&(h==="hex"||h==="hex6"||h==="hex3"||h==="hex4"||h==="hex8"||h==="name");return b?h==="name"&&this._a===0?this.toName():this.toRgbString():(h==="rgb"&&(g=this.toRgbString()),h==="prgb"&&(g=this.toPercentageRgbString()),(h==="hex"||h==="hex6")&&(g=this.toHexString()),h==="hex3"&&(g=this.toHexString(!0)),h==="hex4"&&(g=this.toHex8String(!0)),h==="hex8"&&(g=this.toHex8String()),h==="name"&&(g=this.toName()),h==="hsl"&&(g=this.toHslString()),h==="hsv"&&(g=this.toHsvString()),g||this.toHexString())},clone:function(){return n(this.toString())},_applyModification:function(h,l){var g=h.apply(null,[this].concat([].slice.call(l)));return this._r=g._r,this._g=g._g,this._b=g._b,this.setAlpha(g._a),this},lighten:function(){return this._applyModification(R,arguments)},brighten:function(){return this._applyModification(q,arguments)},darken:function(){return this._applyModification($,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(S,arguments)},greyscale:function(){return this._applyModification(O,arguments)},spin:function(){return this._applyModification(z,arguments)},_applyCombination:function(h,l){return h.apply(null,[this].concat([].slice.call(l)))},analogous:function(){return this._applyCombination(Ce,arguments)},complement:function(){return this._applyCombination(G,arguments)},monochromatic:function(){return this._applyCombination(ae,arguments)},splitcomplement:function(){return this._applyCombination(ve,arguments)},triad:function(){return this._applyCombination(re,[3])},tetrad:function(){return this._applyCombination(re,[4])}},n.fromRatio=function(u,h){if(e(u)=="object"){var l={};for(var g in u)u.hasOwnProperty(g)&&(g==="a"?l[g]=u[g]:l[g]=A(u[g]));u=l}return n(u,h)};function i(u){var h={r:0,g:0,b:0},l=1,g=null,w=null,b=null,I=!1,j=!1;return typeof u=="string"&&(u=It(u)),e(u)=="object"&&(pe(u.r)&&pe(u.g)&&pe(u.b)?(h=o(u.r,u.g,u.b),I=!0,j=String(u.r).substr(-1)==="%"?"prgb":"rgb"):pe(u.h)&&pe(u.s)&&pe(u.v)?(g=A(u.s),w=A(u.v),h=d(u.h,g,w),I=!0,j="hsv"):pe(u.h)&&pe(u.s)&&pe(u.l)&&(g=A(u.s),b=A(u.l),h=a(u.h,g,b),I=!0,j="hsl"),u.hasOwnProperty("a")&&(l=u.a)),l=H(l),{ok:I,format:u.format||j,r:Math.min(255,Math.max(h.r,0)),g:Math.min(255,Math.max(h.g,0)),b:Math.min(255,Math.max(h.b,0)),a:l}}function o(u,h,l){return{r:P(u,255)*255,g:P(h,255)*255,b:P(l,255)*255}}function s(u,h,l){u=P(u,255),h=P(h,255),l=P(l,255);var g=Math.max(u,h,l),w=Math.min(u,h,l),b,I,j=(g+w)/2;if(g==w)b=I=0;else{var J=g-w;switch(I=j>.5?J/(2-g-w):J/(g+w),g){case u:b=(h-l)/J+(h<l?6:0);break;case h:b=(l-u)/J+2;break;case l:b=(u-h)/J+4;break}b/=6}return{h:b,s:I,l:j}}function a(u,h,l){var g,w,b;u=P(u,360),h=P(h,100),l=P(l,100);function I(ye,ft,be){return be<0&&(be+=1),be>1&&(be-=1),be<1/6?ye+(ft-ye)*6*be:be<1/2?ft:be<2/3?ye+(ft-ye)*(2/3-be)*6:ye}if(h===0)g=w=b=l;else{var j=l<.5?l*(1+h):l+h-l*h,J=2*l-j;g=I(J,j,u+1/3),w=I(J,j,u),b=I(J,j,u-1/3)}return{r:g*255,g:w*255,b:b*255}}function c(u,h,l){u=P(u,255),h=P(h,255),l=P(l,255);var g=Math.max(u,h,l),w=Math.min(u,h,l),b,I,j=g,J=g-w;if(I=g===0?0:J/g,g==w)b=0;else{switch(g){case u:b=(h-l)/J+(h<l?6:0);break;case h:b=(l-u)/J+2;break;case l:b=(u-h)/J+4;break}b/=6}return{h:b,s:I,v:j}}function d(u,h,l){u=P(u,360)*6,h=P(h,100),l=P(l,100);var g=Math.floor(u),w=u-g,b=l*(1-h),I=l*(1-w*h),j=l*(1-(1-w)*h),J=g%6,ye=[l,I,b,b,j,l][J],ft=[j,l,l,I,b,b][J],be=[b,b,j,l,l,I][J];return{r:ye*255,g:ft*255,b:be*255}}function f(u,h,l,g){var w=[_(Math.round(u).toString(16)),_(Math.round(h).toString(16)),_(Math.round(l).toString(16))];return g&&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(u,h,l,g,w){var b=[_(Math.round(u).toString(16)),_(Math.round(h).toString(16)),_(Math.round(l).toString(16)),_(ke(g))];return w&&b[0].charAt(0)==b[0].charAt(1)&&b[1].charAt(0)==b[1].charAt(1)&&b[2].charAt(0)==b[2].charAt(1)&&b[3].charAt(0)==b[3].charAt(1)?b[0].charAt(0)+b[1].charAt(0)+b[2].charAt(0)+b[3].charAt(0):b.join("")}function y(u,h,l,g){var w=[_(ke(g)),_(Math.round(u).toString(16)),_(Math.round(h).toString(16)),_(Math.round(l).toString(16))];return w.join("")}n.equals=function(u,h){return!u||!h?!1:n(u).toRgbString()==n(h).toRgbString()},n.random=function(){return n.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function m(u,h){h=h===0?0:h||10;var l=n(u).toHsl();return l.s-=h/100,l.s=B(l.s),n(l)}function S(u,h){h=h===0?0:h||10;var l=n(u).toHsl();return l.s+=h/100,l.s=B(l.s),n(l)}function O(u){return n(u).desaturate(100)}function R(u,h){h=h===0?0:h||10;var l=n(u).toHsl();return l.l+=h/100,l.l=B(l.l),n(l)}function q(u,h){h=h===0?0:h||10;var l=n(u).toRgb();return l.r=Math.max(0,Math.min(255,l.r-Math.round(255*-(h/100)))),l.g=Math.max(0,Math.min(255,l.g-Math.round(255*-(h/100)))),l.b=Math.max(0,Math.min(255,l.b-Math.round(255*-(h/100)))),n(l)}function $(u,h){h=h===0?0:h||10;var l=n(u).toHsl();return l.l-=h/100,l.l=B(l.l),n(l)}function z(u,h){var l=n(u).toHsl(),g=(l.h+h)%360;return l.h=g<0?360+g:g,n(l)}function G(u){var h=n(u).toHsl();return h.h=(h.h+180)%360,n(h)}function re(u,h){if(isNaN(h)||h<=0)throw new Error("Argument to polyad must be a positive number");for(var l=n(u).toHsl(),g=[n(u)],w=360/h,b=1;b<h;b++)g.push(n({h:(l.h+b*w)%360,s:l.s,l:l.l}));return g}function ve(u){var h=n(u).toHsl(),l=h.h;return[n(u),n({h:(l+72)%360,s:h.s,l:h.l}),n({h:(l+216)%360,s:h.s,l:h.l})]}function Ce(u,h,l){h=h||6,l=l||30;var g=n(u).toHsl(),w=360/l,b=[n(u)];for(g.h=(g.h-(w*h>>1)+720)%360;--h;)g.h=(g.h+w)%360,b.push(n(g));return b}function ae(u,h){h=h||6;for(var l=n(u).toHsv(),g=l.h,w=l.s,b=l.v,I=[],j=1/h;h--;)I.push(n({h:g,s:w,v:b})),b=(b+j)%1;return I}n.mix=function(u,h,l){l=l===0?0:l||50;var g=n(u).toRgb(),w=n(h).toRgb(),b=l/100,I={r:(w.r-g.r)*b+g.r,g:(w.g-g.g)*b+g.g,b:(w.b-g.b)*b+g.b,a:(w.a-g.a)*b+g.a};return n(I)},n.readability=function(u,h){var l=n(u),g=n(h);return(Math.max(l.getLuminance(),g.getLuminance())+.05)/(Math.min(l.getLuminance(),g.getLuminance())+.05)},n.isReadable=function(u,h,l){var g=n.readability(u,h),w,b;switch(b=!1,w=me(l),w.level+w.size){case"AAsmall":case"AAAlarge":b=g>=4.5;break;case"AAlarge":b=g>=3;break;case"AAAsmall":b=g>=7;break}return b},n.mostReadable=function(u,h,l){var g=null,w=0,b,I,j,J;l=l||{},I=l.includeFallbackColors,j=l.level,J=l.size;for(var ye=0;ye<h.length;ye++)b=n.readability(u,h[ye]),b>w&&(w=b,g=n(h[ye]));return n.isReadable(u,g,{level:j,size:J})||!I?g:(l.includeFallbackColors=!1,n.mostReadable(u,["#fff","#000"],l))};var k=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"},F=n.hexNames=T(k);function T(u){var h={};for(var l in u)u.hasOwnProperty(l)&&(h[u[l]]=l);return h}function H(u){return u=parseFloat(u),(isNaN(u)||u<0||u>1)&&(u=1),u}function P(u,h){N(u)&&(u="100%");var l=M(u);return u=Math.min(h,Math.max(0,parseFloat(u))),l&&(u=parseInt(u*h,10)/100),Math.abs(u-h)<1e-6?1:u%h/parseFloat(h)}function B(u){return Math.min(1,Math.max(0,u))}function C(u){return parseInt(u,16)}function N(u){return typeof u=="string"&&u.indexOf(".")!=-1&&parseFloat(u)===1}function M(u){return typeof u=="string"&&u.indexOf("%")!=-1}function _(u){return u.length==1?"0"+u:""+u}function A(u){return u<=1&&(u=u*100+"%"),u}function ke(u){return Math.round(parseFloat(u)*255).toString(16)}function Ie(u){return C(u)/255}var ce=function(){var u="[-\\+]?\\d+%?",h="[-\\+]?\\d*\\.\\d+%?",l="(?:"+h+")|(?:"+u+")",g="[\\s|\\(]+("+l+")[,|\\s]+("+l+")[,|\\s]+("+l+")\\s*\\)?",w="[\\s|\\(]+("+l+")[,|\\s]+("+l+")[,|\\s]+("+l+")[,|\\s]+("+l+")\\s*\\)?";return{CSS_UNIT:new RegExp(l),rgb:new RegExp("rgb"+g),rgba:new RegExp("rgba"+w),hsl:new RegExp("hsl"+g),hsla:new RegExp("hsla"+w),hsv:new RegExp("hsv"+g),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 pe(u){return!!ce.CSS_UNIT.exec(u)}function It(u){u=u.replace(t,"").replace(r,"").toLowerCase();var h=!1;if(k[u])u=k[u],h=!0;else if(u=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var l;return(l=ce.rgb.exec(u))?{r:l[1],g:l[2],b:l[3]}:(l=ce.rgba.exec(u))?{r:l[1],g:l[2],b:l[3],a:l[4]}:(l=ce.hsl.exec(u))?{h:l[1],s:l[2],l:l[3]}:(l=ce.hsla.exec(u))?{h:l[1],s:l[2],l:l[3],a:l[4]}:(l=ce.hsv.exec(u))?{h:l[1],s:l[2],v:l[3]}:(l=ce.hsva.exec(u))?{h:l[1],s:l[2],v:l[3],a:l[4]}:(l=ce.hex8.exec(u))?{r:C(l[1]),g:C(l[2]),b:C(l[3]),a:Ie(l[4]),format:h?"name":"hex8"}:(l=ce.hex6.exec(u))?{r:C(l[1]),g:C(l[2]),b:C(l[3]),format:h?"name":"hex"}:(l=ce.hex4.exec(u))?{r:C(l[1]+""+l[1]),g:C(l[2]+""+l[2]),b:C(l[3]+""+l[3]),a:Ie(l[4]+""+l[4]),format:h?"name":"hex8"}:(l=ce.hex3.exec(u))?{r:C(l[1]+""+l[1]),g:C(l[2]+""+l[2]),b:C(l[3]+""+l[3]),format:h?"name":"hex"}:!1}function me(u){var h,l;return u=u||{level:"AA",size:"small"},h=(u.level||"AA").toUpperCase(),l=(u.size||"small").toLowerCase(),h!=="AA"&&h!=="AAA"&&(h="AA"),l!=="small"&&l!=="large"&&(l="small"),{level:h,size:l}}return n})});var fc=v((g1,lc)=>{var Rt=ic(),cc={r:256,g:256,b:256,a:1},uc={h:360,s:1,v:1,a:1};function Tn(e,t,r){let n={};for(let i in e)e.hasOwnProperty(i)&&(n[i]=r===0?0:(t[i]-e[i])/r);return n}function Fn(e,t,r,n){let i={};for(let o in t)t.hasOwnProperty(o)&&(i[o]=e[o]*r+t[o],i[o]=i[o]<0?i[o]+n[o]:n[o]!==1?i[o]%n[o]:i[o]);return i}function qn(e,t,r){let n=e.color.toRgb(),i=t.color.toRgb(),o=Tn(n,i,r),s=[e.color];for(let a=1;a<r;a++){let c=Fn(o,n,a,cc);s.push(Rt(c))}return s}function oc(e,t,r,n){let i=e.color.toHsv(),o=t.color.toHsv();if(i.s===0||o.s===0)return qn(e,t,r);let s;if(typeof n=="boolean")s=n;else{let f=i.h<o.h&&o.h-i.h<180||i.h>o.h&&i.h-o.h>180;s=n==="long"&&f||n==="short"&&!f}let a=Tn(i,o,r),c=[e.color],d;i.h<=o.h&&!s||i.h>=o.h&&s?d=o.h-i.h:s?d=360-o.h+i.h:d=360-i.h+o.h,a.h=Math.pow(-1,s?1:0)*Math.abs(d)/r;for(let f=1;f<r;f++){let p=Fn(a,i,f,uc);c.push(Rt(p))}return c}function sc(e,t){let r=e.length;if(t=parseInt(t,10),isNaN(t)||t<2)throw new Error("Invalid number of steps (< 2)");if(t<r)throw new Error("Number of steps cannot be inferior to number of stops");let n=[];for(let o=1;o<r;o++){let s=(t-1)*(e[o].pos-e[o-1].pos);n.push(Math.max(1,Math.round(s)))}let i=1;for(let o=r-1;o--;)i+=n[o];for(;i!==t;)if(i<t){let o=Math.min.apply(null,n);n[n.indexOf(o)]++,i++}else{let o=Math.max.apply(null,n);n[n.indexOf(o)]--,i--}return n}function ac(e,t,r,n){if(t<0||t>1)throw new Error("Position must be between 0 and 1");let i,o;for(let c=0,d=e.length;c<d-1;c++)if(t>=e[c].pos&&t<e[c+1].pos){i=e[c],o=e[c+1];break}i||(i=o=e[e.length-1]);let s=Tn(i.color[r](),o.color[r](),(o.pos-i.pos)*100),a=Fn(s,i.color[r](),(t-i.pos)*100,n);return Rt(a)}var it=class{constructor(t){if(t.length<2)throw new Error("Invalid number of stops (< 2)");let r=t[0].pos!==void 0,n=t.length,i=-1,o=!1;this.stops=t.map((s,a)=>{let c=s.pos!==void 0;if(r^c)throw new Error("Cannot mix positionned and not posionned color stops");if(c){let d=s.color!==void 0;if(!d&&(o||a===0||a===n-1))throw new Error("Cannot define two consecutive position-only stops");if(o=!d,s={color:d?Rt(s.color):null,colorLess:!d,pos:s.pos},s.pos<0||s.pos>1)throw new Error("Color stops positions must be between 0 and 1");if(s.pos<i)throw new Error("Color stops positions are not ordered");i=s.pos}else s={color:Rt(s.color!==void 0?s.color:s),pos:a/(n-1)};return s}),this.stops[0].pos!==0&&(this.stops.unshift({color:this.stops[0].color,pos:0}),n++),this.stops[n-1].pos!==1&&this.stops.push({color:this.stops[n-1].color,pos:1})}reverse(){let t=[];return this.stops.forEach(function(r){t.push({color:r.color,pos:1-r.pos})}),new it(t.reverse())}loop(){let t=[],r=[];return this.stops.forEach(n=>{t.push({color:n.color,pos:n.pos/2})}),this.stops.slice(0,-1).forEach(n=>{r.push({color:n.color,pos:1-n.pos/2})}),new it(t.concat(r.reverse()))}rgb(t){let r=sc(this.stops,t),n=[];this.stops.forEach((i,o)=>{i.colorLess&&(i.color=qn(this.stops[o-1],this.stops[o+1],2)[1])});for(let i=0,o=this.stops.length;i<o-1;i++){let s=qn(this.stops[i],this.stops[i+1],r[i]);n.splice(n.length,0,...s)}return n.push(this.stops[this.stops.length-1].color),n}hsv(t,r){let n=sc(this.stops,t),i=[];this.stops.forEach((o,s)=>{o.colorLess&&(o.color=oc(this.stops[s-1],this.stops[s+1],2,r)[1])});for(let o=0,s=this.stops.length;o<s-1;o++){let a=oc(this.stops[o],this.stops[o+1],n[o],r);i.splice(i.length,0,...a)}return i.push(this.stops[this.stops.length-1].color),i}css(t,r){t=t||"linear",r=r||(t==="linear"?"to right":"ellipse at center");let n=t+"-gradient("+r;return this.stops.forEach(function(i){n+=", "+(i.colorLess?"":i.color.toRgbString()+" ")+i.pos*100+"%"}),n+=")",n}rgbAt(t){return ac(this.stops,t,"toRgb",cc)}hsvAt(t){return ac(this.stops,t,"toHsv",uc)}};lc.exports=function(e){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');e=arguments[0]}else e=Array.prototype.slice.call(arguments);return new it(e)}});var yc=v((v1,yr)=>{"use strict";var dc=nc(),X0=fc(),hc=/\s/g;function In(...e){let t=X0.apply(this,e),r=(n,i)=>K0(n?n.toString():"",t,i);return r.multiline=(n,i)=>Q0(n?n.toString():"",t,i),r}var pc=(e,t,r)=>t.interpolation.toLowerCase()==="hsv"?e.hsv(r,t.hsvSpin.toLowerCase()):e.rgb(r);function K0(e,t,r){let n=mc(r),i=Math.max(e.replace(hc,"").length,t.stops.length),o=pc(t,n,i),s="";for(let a of e)s+=a.match(hc)?a:dc.hex(o.shift().toHex())(a);return s}function Q0(e,t,r){let n=mc(r),i=e.split(`
|
|
15
|
+
`),o=Math.max.apply(null,i.map(c=>c.length).concat([t.stops.length])),s=pc(t,n,o),a=[];for(let c of i){let d=s.slice(0),f="";for(let p of c)f+=dc.hex(d.shift().toHex())(p);a.push(f)}return a.join(`
|
|
16
|
+
`)}function mc(e){let t={interpolation:"rgb",hsvSpin:"short",...e};if(e!==void 0&&typeof e!="object")throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof e}\``);if(typeof t.interpolation!="string")throw new TypeError(`Expected \`options.interpolation\` to be a \`string\`, got \`${typeof t.interpolation}\``);if(t.interpolation.toLowerCase()==="hsv"&&typeof t.hsvSpin!="string")throw new TypeError(`Expected \`options.hsvSpin\` to be a \`string\`, got \`${typeof t.hsvSpin}\``);return t}var Pt={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"}}};yr.exports=In;for(let e in Pt)yr.exports[e]=t=>new In(Pt[e].colors)(t,Pt[e].options),yr.exports[e].multiline=t=>new In(Pt[e].colors).multiline(t,Pt[e].options)});function ot(e=""){return td?Dn.default.resolve(jn.default.sync(__dirname),"../../../",e):Dn.default.resolve(jn.default.sync(__dirname),"../griddo-components",e)}function rd(){let e=Nn.default.sync("jsconfig.json",{cwd:ot()});return Nn.default.sync("tsconfig.json",{cwd:ot()})||e}function nd(){let e=require(rd());return Object.keys(e?.compilerOptions?.paths).reduce((t,r)=>{let[n]=r.split("/"),[i]=e&&e.compilerOptions&&e.compilerOptions.paths&&e.compilerOptions.paths[r],[o]=i.split("/*"),s=ot(o);return{...t,[n]:s}},{"@griddo-instance":`${ot()}/src/index.js`})}var Dn,Nn,jn,td,P1,xc=Ei(()=>{"use strict";Dn=D(require("node:path")),Nn=D(zr()),jn=D(ht()),td=__dirname.includes("node_modules"),P1=nd()});var Cc={};Rl(Cc,{CXDir:()=>ld,default:()=>ud});var Fe,vr,Ec,Ln,id,od,sd,ad,cd,_c,ud,ld,kc=Ei(()=>{"use strict";Fe=D(require("node:path")),vr=D(ht());xc();Ec=vr.default.sync(Fe.default.resolve(__dirname,"../..")),Ln=vr.default.sync(__dirname),id=Fe.default.resolve(vr.default.sync(__dirname)),od=Fe.default.resolve(Ln,"caches"),sd=ot(),ad=Fe.default.join(Ec,"exports/sites"),{version:cd}=require(Fe.default.join(Ln,"package.json")),_c={proDomain:"pro-",griddoVersion:cd,CXDir:{EXPORTS:"__exports",CACHE:"__caches",CX:"__cx",SSG:"__ssg",COMPONENTS:"__components",ROOT:"__root"},paths:e=>({__caches:Fe.default.join(od,e||""),__components:sd,__cx:Ln,__exports:Fe.default.join(ad,e||""),__root:Ec,__ssg:id})},ud=_c,ld=_c.CXDir});var Gn=v((L1,Tc)=>{"use strict";Tc.exports=function(t,r){return function(){for(var i=new Array(arguments.length),o=0;o<i.length;o++)i[o]=arguments[o];return t.apply(r,i)}}});var se=v((B1,Dc)=>{"use strict";var md=Gn(),Le=Object.prototype.toString;function Wn(e){return Le.call(e)==="[object Array]"}function zn(e){return typeof e>"u"}function yd(e){return e!==null&&!zn(e)&&e.constructor!==null&&!zn(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function gd(e){return Le.call(e)==="[object ArrayBuffer]"}function vd(e){return typeof FormData<"u"&&e instanceof FormData}function bd(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function wd(e){return typeof e=="string"}function Sd(e){return typeof e=="number"}function Fc(e){return e!==null&&typeof e=="object"}function br(e){if(Le.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function xd(e){return Le.call(e)==="[object Date]"}function Ed(e){return Le.call(e)==="[object File]"}function _d(e){return Le.call(e)==="[object Blob]"}function Ic(e){return Le.call(e)==="[object Function]"}function Cd(e){return Fc(e)&&Ic(e.pipe)}function kd(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}function Od(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Rd(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function Vn(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),Wn(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}function Jn(){var e={};function t(i,o){br(e[o])&&br(i)?e[o]=Jn(e[o],i):br(i)?e[o]=Jn({},i):Wn(i)?e[o]=i.slice():e[o]=i}for(var r=0,n=arguments.length;r<n;r++)Vn(arguments[r],t);return e}function Pd(e,t,r){return Vn(t,function(i,o){r&&typeof i=="function"?e[o]=md(i,r):e[o]=i}),e}function Ad(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}Dc.exports={isArray:Wn,isArrayBuffer:gd,isBuffer:yd,isFormData:vd,isArrayBufferView:bd,isString:wd,isNumber:Sd,isObject:Fc,isPlainObject:br,isUndefined:zn,isDate:xd,isFile:Ed,isBlob:_d,isFunction:Ic,isStream:Cd,isURLSearchParams:kd,isStandardBrowserEnv:Rd,forEach:Vn,merge:Jn,extend:Pd,trim:Od,stripBOM:Ad}});var wr=v(($1,jc)=>{"use strict";var st=se();function Nc(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}jc.exports=function(t,r,n){if(!r)return t;var i;if(n)i=n(r);else if(st.isURLSearchParams(r))i=r.toString();else{var o=[];st.forEach(r,function(c,d){c===null||typeof c>"u"||(st.isArray(c)?d=d+"[]":c=[c],st.forEach(c,function(p){st.isDate(p)?p=p.toISOString():st.isObject(p)&&(p=JSON.stringify(p)),o.push(Nc(d)+"="+Nc(p))}))}),i=o.join("&")}if(i){var s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}});var Bc=v((H1,Lc)=>{"use strict";var Md=se();function Sr(){this.handlers=[]}Sr.prototype.use=function(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};Sr.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};Sr.prototype.forEach=function(t){Md.forEach(this.handlers,function(n){n!==null&&t(n)})};Lc.exports=Sr});var Hc=v((U1,$c)=>{"use strict";var qd=se();$c.exports=function(t,r){qd.forEach(t,function(i,o){o!==r&&o.toUpperCase()===r.toUpperCase()&&(t[r]=i,delete t[o])})}});var xr=v((G1,Uc)=>{"use strict";Uc.exports=function(t,r,n,i,o){return t.config=r,n&&(t.code=n),t.request=i,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}});var Er=v((z1,Gc)=>{"use strict";var Td=xr();Gc.exports=function(t,r,n,i,o){var s=new Error(t);return Td(s,r,n,i,o)}});var Yn=v((J1,zc)=>{"use strict";var Fd=Er();zc.exports=function(t,r,n){var i=n.config.validateStatus;!n.status||!i||i(n.status)?t(n):r(Fd("Request failed with status code "+n.status,n.config,null,n.request,n))}});var Wc=v((W1,Jc)=>{"use strict";var _r=se();Jc.exports=_r.isStandardBrowserEnv()?function(){return{write:function(r,n,i,o,s,a){var c=[];c.push(r+"="+encodeURIComponent(n)),_r.isNumber(i)&&c.push("expires="+new Date(i).toGMTString()),_r.isString(o)&&c.push("path="+o),_r.isString(s)&&c.push("domain="+s),a===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(r){var n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()});var Yc=v((V1,Vc)=>{"use strict";Vc.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}});var Kc=v((Y1,Xc)=>{"use strict";Xc.exports=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}});var Xn=v((X1,Qc)=>{"use strict";var Id=Yc(),Dd=Kc();Qc.exports=function(t,r){return t&&!Id(r)?Dd(t,r):r}});var eu=v((K1,Zc)=>{"use strict";var Kn=se(),Nd=["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"];Zc.exports=function(t){var r={},n,i,o;return t&&Kn.forEach(t.split(`
|
|
17
|
+
`),function(a){if(o=a.indexOf(":"),n=Kn.trim(a.substr(0,o)).toLowerCase(),i=Kn.trim(a.substr(o+1)),n){if(r[n]&&Nd.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 nu=v((Q1,ru)=>{"use strict";var tu=se();ru.exports=tu.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),n;function i(o){var s=o;return t&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{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(s){var a=tu.isString(s)?i(s):s;return a.protocol===n.protocol&&a.host===n.host}}():function(){return function(){return!0}}()});var ou=v((Z1,iu)=>{"use strict";var Cr=se(),jd=Yn(),Ld=Wc(),Bd=wr(),$d=Xn(),Hd=eu(),Ud=nu(),Qn=Er();iu.exports=function(t){return new Promise(function(n,i){var o=t.data,s=t.headers,a=t.responseType;Cr.isFormData(o)&&delete s["Content-Type"];var c=new XMLHttpRequest;if(t.auth){var d=t.auth.username||"",f=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";s.Authorization="Basic "+btoa(d+":"+f)}var p=$d(t.baseURL,t.url);c.open(t.method.toUpperCase(),Bd(p,t.params,t.paramsSerializer),!0),c.timeout=t.timeout;function y(){if(c){var S="getAllResponseHeaders"in c?Hd(c.getAllResponseHeaders()):null,O=!a||a==="text"||a==="json"?c.responseText:c.response,R={data:O,status:c.status,statusText:c.statusText,headers:S,config:t,request:c};jd(n,i,R),c=null}}if("onloadend"in c?c.onloadend=y:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(y)},c.onabort=function(){c&&(i(Qn("Request aborted",t,"ECONNABORTED",c)),c=null)},c.onerror=function(){i(Qn("Network Error",t,null,c)),c=null},c.ontimeout=function(){var O="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(O=t.timeoutErrorMessage),i(Qn(O,t,t.transitional&&t.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",c)),c=null},Cr.isStandardBrowserEnv()){var m=(t.withCredentials||Ud(p))&&t.xsrfCookieName?Ld.read(t.xsrfCookieName):void 0;m&&(s[t.xsrfHeaderName]=m)}"setRequestHeader"in c&&Cr.forEach(s,function(O,R){typeof o>"u"&&R.toLowerCase()==="content-type"?delete s[R]:c.setRequestHeader(R,O)}),Cr.isUndefined(t.withCredentials)||(c.withCredentials=!!t.withCredentials),a&&a!=="json"&&(c.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&c.addEventListener("progress",t.onDownloadProgress),typeof t.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(O){c&&(c.abort(),i(O),c=null)}),o||(o=null),c.send(o)})}});var au=v((ey,su)=>{var at=1e3,ct=at*60,ut=ct*60,Be=ut*24,Gd=Be*7,zd=Be*365.25;su.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return Jd(e);if(r==="number"&&isFinite(e))return t.long?Vd(e):Wd(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Jd(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*zd;case"weeks":case"week":case"w":return r*Gd;case"days":case"day":case"d":return r*Be;case"hours":case"hour":case"hrs":case"hr":case"h":return r*ut;case"minutes":case"minute":case"mins":case"min":case"m":return r*ct;case"seconds":case"second":case"secs":case"sec":case"s":return r*at;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Wd(e){var t=Math.abs(e);return t>=Be?Math.round(e/Be)+"d":t>=ut?Math.round(e/ut)+"h":t>=ct?Math.round(e/ct)+"m":t>=at?Math.round(e/at)+"s":e+"ms"}function Vd(e){var t=Math.abs(e);return t>=Be?kr(e,t,Be,"day"):t>=ut?kr(e,t,ut,"hour"):t>=ct?kr(e,t,ct,"minute"):t>=at?kr(e,t,at,"second"):e+" ms"}function kr(e,t,r,n){var i=t>=r*1.5;return Math.round(e/r)+" "+n+(i?"s":"")}});var Zn=v((ty,cu)=>{function Yd(e){r.debug=r,r.default=r,r.coerce=c,r.disable=o,r.enable=i,r.enabled=s,r.humanize=au(),r.destroy=d,Object.keys(e).forEach(f=>{r[f]=e[f]}),r.names=[],r.skips=[],r.formatters={};function t(f){let p=0;for(let y=0;y<f.length;y++)p=(p<<5)-p+f.charCodeAt(y),p|=0;return r.colors[Math.abs(p)%r.colors.length]}r.selectColor=t;function r(f){let p,y=null,m,S;function O(...R){if(!O.enabled)return;let q=O,$=Number(new Date),z=$-(p||$);q.diff=z,q.prev=p,q.curr=$,p=$,R[0]=r.coerce(R[0]),typeof R[0]!="string"&&R.unshift("%O");let G=0;R[0]=R[0].replace(/%([a-zA-Z%])/g,(ve,Ce)=>{if(ve==="%%")return"%";G++;let ae=r.formatters[Ce];if(typeof ae=="function"){let k=R[G];ve=ae.call(q,k),R.splice(G,1),G--}return ve}),r.formatArgs.call(q,R),(q.log||r.log).apply(q,R)}return O.namespace=f,O.useColors=r.useColors(),O.color=r.selectColor(f),O.extend=n,O.destroy=r.destroy,Object.defineProperty(O,"enabled",{enumerable:!0,configurable:!1,get:()=>y!==null?y:(m!==r.namespaces&&(m=r.namespaces,S=r.enabled(f)),S),set:R=>{y=R}}),typeof r.init=="function"&&r.init(O),O}function n(f,p){let y=r(this.namespace+(typeof p>"u"?":":p)+f);return y.log=this.log,y}function i(f){r.save(f),r.namespaces=f,r.names=[],r.skips=[];let p,y=(typeof f=="string"?f:"").split(/[\s,]+/),m=y.length;for(p=0;p<m;p++)y[p]&&(f=y[p].replace(/\*/g,".*?"),f[0]==="-"?r.skips.push(new RegExp("^"+f.slice(1)+"$")):r.names.push(new RegExp("^"+f+"$")))}function o(){let f=[...r.names.map(a),...r.skips.map(a).map(p=>"-"+p)].join(",");return r.enable(""),f}function s(f){if(f[f.length-1]==="*")return!0;let p,y;for(p=0,y=r.skips.length;p<y;p++)if(r.skips[p].test(f))return!1;for(p=0,y=r.names.length;p<y;p++)if(r.names[p].test(f))return!0;return!1}function a(f){return f.toString().substring(2,f.toString().length-2).replace(/\.\*\?$/,"*")}function c(f){return f instanceof Error?f.stack||f.message:f}function d(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}cu.exports=Yd});var uu=v((he,Or)=>{he.formatArgs=Kd;he.save=Qd;he.load=Zd;he.useColors=Xd;he.storage=ep();he.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();he.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 Xd(){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 Kd(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+Or.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,n=0;e[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(r++,i==="%c"&&(n=r))}),e.splice(n,0,t)}he.log=console.debug||console.log||(()=>{});function Qd(e){try{e?he.storage.setItem("debug",e):he.storage.removeItem("debug")}catch{}}function Zd(){let e;try{e=he.storage.getItem("debug")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function ep(){try{return localStorage}catch{}}Or.exports=Zn()(he);var{formatters:tp}=Or.exports;tp.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var fu=v((X,Pr)=>{var rp=require("tty"),Rr=require("util");X.init=up;X.log=sp;X.formatArgs=ip;X.save=ap;X.load=cp;X.useColors=np;X.destroy=Rr.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");X.colors=[6,2,3,4,5,1];try{let e=_n();e&&(e.stderr||e).level>=2&&(X.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}X.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(i,o)=>o.toUpperCase()),n=process.env[t];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),e[r]=n,e},{});function np(){return"colors"in X.inspectOpts?!!X.inspectOpts.colors:rp.isatty(process.stderr.fd)}function ip(e){let{namespace:t,useColors:r}=this;if(r){let n=this.color,i="\x1B[3"+(n<8?n:"8;5;"+n),o=` ${i};1m${t} \x1B[0m`;e[0]=o+e[0].split(`
|
|
18
|
+
`).join(`
|
|
19
|
+
`+o),e.push(i+"m+"+Pr.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=op()+t+" "+e[0]}function op(){return X.inspectOpts.hideDate?"":new Date().toISOString()+" "}function sp(...e){return process.stderr.write(Rr.format(...e)+`
|
|
20
|
+
`)}function ap(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function cp(){return process.env.DEBUG}function up(e){e.inspectOpts={};let t=Object.keys(X.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=X.inspectOpts[t[r]]}Pr.exports=Zn()(X);var{formatters:lu}=Pr.exports;lu.o=function(e){return this.inspectOpts.colors=this.useColors,Rr.inspect(e,this.inspectOpts).split(`
|
|
21
|
+
`).map(t=>t.trim()).join(" ")};lu.O=function(e){return this.inspectOpts.colors=this.useColors,Rr.inspect(e,this.inspectOpts)}});var hu=v((ry,ei)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?ei.exports=uu():ei.exports=fu()});var pu=v((ny,du)=>{var At;du.exports=function(){if(!At){try{At=hu()("follow-redirects")}catch{}typeof At!="function"&&(At=function(){})}At.apply(null,arguments)}});var si=v((iy,oi)=>{var $e=require("url"),ti=$e.URL,lp=require("http"),fp=require("https"),gu=require("stream").Writable,vu=require("assert"),bu=pu(),ni=["abort","aborted","connect","error","socket","timeout"],ii=Object.create(null);ni.forEach(function(e){ii[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}});var hp=qt("ERR_INVALID_URL","Invalid URL",TypeError),mu=qt("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),dp=qt("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),pp=qt("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),mp=qt("ERR_STREAM_WRITE_AFTER_END","write after end");function de(e,t){gu.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var r=this;this._onNativeResponse=function(n){r._processResponse(n)},this._performRequest()}de.prototype=Object.create(gu.prototype);de.prototype.abort=function(){Su(this._currentRequest),this.emit("abort")};de.prototype.write=function(e,t,r){if(this._ending)throw new mp;if(!He(e)&&!vp(e))throw new TypeError("data should be a string, Buffer or Uint8Array");if(Mt(t)&&(r=t,t=null),e.length===0){r&&r();return}this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new pp),this.abort())};de.prototype.end=function(e,t,r){if(Mt(e)?(r=e,e=t=null):Mt(t)&&(r=t,t=null),!e)this._ended=this._ending=!0,this._currentRequest.end(null,null,r);else{var n=this,i=this._currentRequest;this.write(e,t,function(){n._ended=!0,i.end(null,null,r)}),this._ending=!0}};de.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)};de.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)};de.prototype.setTimeout=function(e,t){var r=this;function n(s){s.setTimeout(e),s.removeListener("timeout",s.destroy),s.addListener("timeout",s.destroy)}function i(s){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout(function(){r.emit("timeout"),o()},e),n(s)}function o(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",o),r.removeListener("error",o),r.removeListener("response",o),t&&r.removeListener("timeout",t),r.socket||r._currentRequest.removeListener("socket",i)}return t&&this.on("timeout",t),this.socket?i(this.socket):this._currentRequest.once("socket",i),this.on("socket",n),this.on("abort",o),this.on("error",o),this.on("response",o),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){de.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}});["aborted","connection","socket"].forEach(function(e){Object.defineProperty(de.prototype,e,{get:function(){return this._currentRequest[e]}})});de.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}};de.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t){this.emit("error",new TypeError("Unsupported protocol "+e));return}if(this._options.agents){var r=e.slice(0,-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=t.request(this._options,this._onNativeResponse);n._redirectable=this;for(var i of ni)n.on(i,ii[i]);if(this._currentUrl=/^\//.test(this._options.path)?$e.format(this._options):this._options.path,this._isRedirect){var o=0,s=this,a=this._requestBodyBuffers;(function c(d){if(n===s._currentRequest)if(d)s.emit("error",d);else if(o<a.length){var f=a[o++];n.finished||n.write(f.data,f.encoding,c)}else s._ended&&n.end()})()}};de.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var r=e.headers.location;if(!r||this._options.followRedirects===!1||t<300||t>=400){e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[];return}if(Su(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects){this.emit("error",new dp);return}var n,i=this._options.beforeRedirect;i&&(n=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var o=this._options.method;((t===301||t===302)&&this._options.method==="POST"||t===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],ri(/^content-/i,this._options.headers));var s=ri(/^host$/i,this._options.headers),a=$e.parse(this._currentUrl),c=s||a.host,d=/^\w+:/.test(r)?this._currentUrl:$e.format(Object.assign(a,{host:c})),f;try{f=$e.resolve(d,r)}catch(S){this.emit("error",new mu({cause:S}));return}bu("redirecting to",f),this._isRedirect=!0;var p=$e.parse(f);if(Object.assign(this._options,p),(p.protocol!==a.protocol&&p.protocol!=="https:"||p.host!==c&&!gp(p.host,c))&&ri(/^(?:authorization|cookie)$/i,this._options.headers),Mt(i)){var y={headers:e.headers,statusCode:t},m={url:d,method:o,headers:n};try{i(this._options,y,m)}catch(S){this.emit("error",S);return}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(S){this.emit("error",new mu({cause:S}))}};function wu(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach(function(n){var i=n+":",o=r[i]=e[n],s=t[n]=Object.create(o);function a(d,f,p){if(He(d)){var y;try{y=yu(new ti(d))}catch{y=$e.parse(d)}if(!He(y.protocol))throw new hp({input:d});d=y}else ti&&d instanceof ti?d=yu(d):(p=f,f=d,d={protocol:i});return Mt(f)&&(p=f,f=null),f=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},d,f),f.nativeProtocols=r,!He(f.host)&&!He(f.hostname)&&(f.hostname="::1"),vu.equal(f.protocol,i,"protocol mismatch"),bu("options",f),new de(f,p)}function c(d,f,p){var y=s.request(d,f,p);return y.end(),y}Object.defineProperties(s,{request:{value:a,configurable:!0,enumerable:!0,writable:!0},get:{value:c,configurable:!0,enumerable:!0,writable:!0}})}),t}function yp(){}function yu(e){var t={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:e.pathname+e.search,href:e.href};return e.port!==""&&(t.port=Number(e.port)),t}function ri(e,t){var r;for(var n in t)e.test(n)&&(r=t[n],delete t[n]);return r===null||typeof r>"u"?void 0:String(r).trim()}function qt(e,t,r){function n(i){Error.captureStackTrace(this,this.constructor),Object.assign(this,i||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return n.prototype=new(r||Error),n.prototype.constructor=n,n.prototype.name="Error ["+e+"]",n}function Su(e){for(var t of ni)e.removeListener(t,ii[t]);e.on("error",yp),e.abort()}function gp(e,t){vu(He(e)&&He(t));var r=e.length-t.length-1;return r>0&&e[r]==="."&&e.endsWith(t)}function He(e){return typeof e=="string"||e instanceof String}function Mt(e){return typeof e=="function"}function vp(e){return typeof e=="object"&&"length"in e}oi.exports=wu({http:lp,https:fp});oi.exports.wrap=wu});var ai=v((oy,bp)=>{bp.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 Ou=v((sy,ku)=>{"use strict";var Tt=se(),xu=Yn(),wp=Xn(),Sp=wr(),xp=require("http"),Ep=require("https"),_p=si().http,Cp=si().https,Eu=require("url"),kp=require("zlib"),Op=ai(),Ar=Er(),ci=xr(),_u=/https:?/;function Cu(e,t,r){if(e.hostname=t.host,e.host=t.host,e.port=t.port,e.path=r,t.auth){var n=Buffer.from(t.auth.username+":"+t.auth.password,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+n}e.beforeRedirect=function(o){o.headers.host=o.host,Cu(o,t,o.href)}}ku.exports=function(t){return new Promise(function(n,i){var o=function(_){n(_)},s=function(_){i(_)},a=t.data,c=t.headers;if("User-Agent"in c||"user-agent"in c?!c["User-Agent"]&&!c["user-agent"]&&(delete c["User-Agent"],delete c["user-agent"]):c["User-Agent"]="axios/"+Op.version,a&&!Tt.isStream(a)){if(!Buffer.isBuffer(a))if(Tt.isArrayBuffer(a))a=Buffer.from(new Uint8Array(a));else if(Tt.isString(a))a=Buffer.from(a,"utf-8");else return s(Ar("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",t));c["Content-Length"]=a.length}var d=void 0;if(t.auth){var f=t.auth.username||"",p=t.auth.password||"";d=f+":"+p}var y=wp(t.baseURL,t.url),m=Eu.parse(y),S=m.protocol||"http:";if(!d&&m.auth){var O=m.auth.split(":"),R=O[0]||"",q=O[1]||"";d=R+":"+q}d&&delete c.Authorization;var $=_u.test(S),z=$?t.httpsAgent:t.httpAgent,G={path:Sp(m.path,t.params,t.paramsSerializer).replace(/^\?/,""),method:t.method.toUpperCase(),headers:c,agent:z,agents:{http:t.httpAgent,https:t.httpsAgent},auth:d};t.socketPath?G.socketPath=t.socketPath:(G.hostname=m.hostname,G.port=m.port);var re=t.proxy;if(!re&&re!==!1){var ve=S.slice(0,-1)+"_proxy",Ce=process.env[ve]||process.env[ve.toUpperCase()];if(Ce){var ae=Eu.parse(Ce),k=process.env.no_proxy||process.env.NO_PROXY,F=!0;if(k){var T=k.split(",").map(function(_){return _.trim()});F=!T.some(function(_){return _?_==="*"||_[0]==="."&&m.hostname.substr(m.hostname.length-_.length)===_?!0:m.hostname===_:!1})}if(F&&(re={host:ae.hostname,port:ae.port,protocol:ae.protocol},ae.auth)){var H=ae.auth.split(":");re.auth={username:H[0],password:H[1]}}}}re&&(G.headers.host=m.hostname+(m.port?":"+m.port:""),Cu(G,re,S+"//"+m.hostname+(m.port?":"+m.port:"")+G.path));var P,B=$&&(re?_u.test(re.protocol):!0);t.transport?P=t.transport:t.maxRedirects===0?P=B?Ep:xp:(t.maxRedirects&&(G.maxRedirects=t.maxRedirects),P=B?Cp:_p),t.maxBodyLength>-1&&(G.maxBodyLength=t.maxBodyLength);var C=P.request(G,function(_){if(!C.aborted){var A=_,ke=_.req||C;if(_.statusCode!==204&&ke.method!=="HEAD"&&t.decompress!==!1)switch(_.headers["content-encoding"]){case"gzip":case"compress":case"deflate":A=A.pipe(kp.createUnzip()),delete _.headers["content-encoding"];break}var Ie={status:_.statusCode,statusText:_.statusMessage,headers:_.headers,config:t,request:ke};if(t.responseType==="stream")Ie.data=A,xu(o,s,Ie);else{var ce=[],pe=0;A.on("data",function(me){ce.push(me),pe+=me.length,t.maxContentLength>-1&&pe>t.maxContentLength&&(A.destroy(),s(Ar("maxContentLength size of "+t.maxContentLength+" exceeded",t,null,ke)))}),A.on("error",function(me){C.aborted||s(ci(me,t,null,ke))}),A.on("end",function(){var me=Buffer.concat(ce);t.responseType!=="arraybuffer"&&(me=me.toString(t.responseEncoding),(!t.responseEncoding||t.responseEncoding==="utf8")&&(me=Tt.stripBOM(me))),Ie.data=me,xu(o,s,Ie)})}}});if(C.on("error",function(_){C.aborted&&_.code!=="ERR_FR_TOO_MANY_REDIRECTS"||s(ci(_,t,null,C))}),t.timeout){var N=parseInt(t.timeout,10);if(isNaN(N)){s(Ar("error trying to parse `config.timeout` to int",t,"ERR_PARSE_TIMEOUT",C));return}C.setTimeout(N,function(){C.abort(),s(Ar("timeout of "+N+"ms exceeded",t,t.transitional&&t.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",C))})}t.cancelToken&&t.cancelToken.promise.then(function(_){C.aborted||(C.abort(),s(_))}),Tt.isStream(a)?a.on("error",function(_){s(ci(_,t,null,C))}).pipe(C):C.end(a)})}});var qr=v((ay,Au)=>{"use strict";var K=se(),Ru=Hc(),Rp=xr(),Pp={"Content-Type":"application/x-www-form-urlencoded"};function Pu(e,t){!K.isUndefined(e)&&K.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function Ap(){var e;return typeof XMLHttpRequest<"u"?e=ou():typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]"&&(e=Ou()),e}function Mp(e,t,r){if(K.isString(e))try{return(t||JSON.parse)(e),K.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}var Mr={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:Ap(),transformRequest:[function(t,r){return Ru(r,"Accept"),Ru(r,"Content-Type"),K.isFormData(t)||K.isArrayBuffer(t)||K.isBuffer(t)||K.isStream(t)||K.isFile(t)||K.isBlob(t)?t:K.isArrayBufferView(t)?t.buffer:K.isURLSearchParams(t)?(Pu(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):K.isObject(t)||r&&r["Content-Type"]==="application/json"?(Pu(r,"application/json"),Mp(t)):t}],transformResponse:[function(t){var r=this.transitional,n=r&&r.silentJSONParsing,i=r&&r.forcedJSONParsing,o=!n&&this.responseType==="json";if(o||i&&K.isString(t)&&t.length)try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?Rp(s,this,"E_JSON_PARSE"):s}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};Mr.headers={common:{Accept:"application/json, text/plain, */*"}};K.forEach(["delete","get","head"],function(t){Mr.headers[t]={}});K.forEach(["post","put","patch"],function(t){Mr.headers[t]=K.merge(Pp)});Au.exports=Mr});var qu=v((cy,Mu)=>{"use strict";var qp=se(),Tp=qr();Mu.exports=function(t,r,n){var i=this||Tp;return qp.forEach(n,function(s){t=s.call(i,t,r)}),t}});var ui=v((uy,Tu)=>{"use strict";Tu.exports=function(t){return!!(t&&t.__CANCEL__)}});var Du=v((ly,Iu)=>{"use strict";var Fu=se(),li=qu(),Fp=ui(),Ip=qr();function fi(e){e.cancelToken&&e.cancelToken.throwIfRequested()}Iu.exports=function(t){fi(t),t.headers=t.headers||{},t.data=li.call(t,t.data,t.headers,t.transformRequest),t.headers=Fu.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Fu.forEach(["delete","get","head","post","put","patch","common"],function(i){delete t.headers[i]});var r=t.adapter||Ip.adapter;return r(t).then(function(i){return fi(t),i.data=li.call(t,i.data,i.headers,t.transformResponse),i},function(i){return Fp(i)||(fi(t),i&&i.response&&(i.response.data=li.call(t,i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})}});var hi=v((fy,Nu)=>{"use strict";var te=se();Nu.exports=function(t,r){r=r||{};var n={},i=["url","method","data"],o=["headers","auth","proxy","params"],s=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function c(y,m){return te.isPlainObject(y)&&te.isPlainObject(m)?te.merge(y,m):te.isPlainObject(m)?te.merge({},m):te.isArray(m)?m.slice():m}function d(y){te.isUndefined(r[y])?te.isUndefined(t[y])||(n[y]=c(void 0,t[y])):n[y]=c(t[y],r[y])}te.forEach(i,function(m){te.isUndefined(r[m])||(n[m]=c(void 0,r[m]))}),te.forEach(o,d),te.forEach(s,function(m){te.isUndefined(r[m])?te.isUndefined(t[m])||(n[m]=c(void 0,t[m])):n[m]=c(void 0,r[m])}),te.forEach(a,function(m){m in r?n[m]=c(t[m],r[m]):m in t&&(n[m]=c(void 0,t[m]))});var f=i.concat(o).concat(s).concat(a),p=Object.keys(t).concat(Object.keys(r)).filter(function(m){return f.indexOf(m)===-1});return te.forEach(p,d),n}});var Hu=v((hy,$u)=>{"use strict";var Lu=ai(),di={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){di[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var ju={},Dp=Lu.version.split(".");function Bu(e,t){for(var r=t?t.split("."):Dp,n=e.split("."),i=0;i<3;i++){if(r[i]>n[i])return!0;if(r[i]<n[i])return!1}return!1}di.transitional=function(t,r,n){var i=r&&Bu(r);function o(s,a){return"[Axios v"+Lu.version+"] Transitional option '"+s+"'"+a+(n?". "+n:"")}return function(s,a,c){if(t===!1)throw new Error(o(a," has been removed in "+r));return i&&!ju[a]&&(ju[a]=!0,console.warn(o(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(s,a,c):!0}};function Np(e,t,r){if(typeof e!="object")throw new TypeError("options must be an object");for(var n=Object.keys(e),i=n.length;i-- >0;){var o=n[i],s=t[o];if(s){var a=e[o],c=a===void 0||s(a,o,e);if(c!==!0)throw new TypeError("option "+o+" must be "+c);continue}if(r!==!0)throw Error("Unknown option "+o)}}$u.exports={isOlderVersion:Bu,assertOptions:Np,validators:di}});var Vu=v((dy,Wu)=>{"use strict";var zu=se(),jp=wr(),Uu=Bc(),Gu=Du(),Tr=hi(),Ju=Hu(),lt=Ju.validators;function Ft(e){this.defaults=e,this.interceptors={request:new Uu,response:new Uu}}Ft.prototype.request=function(t){typeof t=="string"?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=Tr(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;r!==void 0&&Ju.assertOptions(r,{silentJSONParsing:lt.transitional(lt.boolean,"1.0.0"),forcedJSONParsing:lt.transitional(lt.boolean,"1.0.0"),clarifyTimeoutError:lt.transitional(lt.boolean,"1.0.0")},!1);var n=[],i=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(t)===!1||(i=i&&y.synchronous,n.unshift(y.fulfilled,y.rejected))});var o=[];this.interceptors.response.forEach(function(y){o.push(y.fulfilled,y.rejected)});var s;if(!i){var a=[Gu,void 0];for(Array.prototype.unshift.apply(a,n),a=a.concat(o),s=Promise.resolve(t);a.length;)s=s.then(a.shift(),a.shift());return s}for(var c=t;n.length;){var d=n.shift(),f=n.shift();try{c=d(c)}catch(p){f(p);break}}try{s=Gu(c)}catch(p){return Promise.reject(p)}for(;o.length;)s=s.then(o.shift(),o.shift());return s};Ft.prototype.getUri=function(t){return t=Tr(this.defaults,t),jp(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};zu.forEach(["delete","get","head","options"],function(t){Ft.prototype[t]=function(r,n){return this.request(Tr(n||{},{method:t,url:r,data:(n||{}).data}))}});zu.forEach(["post","put","patch"],function(t){Ft.prototype[t]=function(r,n,i){return this.request(Tr(i||{},{method:t,url:r,data:n}))}});Wu.exports=Ft});var mi=v((py,Yu)=>{"use strict";function pi(e){this.message=e}pi.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};pi.prototype.__CANCEL__=!0;Yu.exports=pi});var Ku=v((my,Xu)=>{"use strict";var Lp=mi();function Fr(e){if(typeof e!="function")throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(i){t=i});var r=this;e(function(i){r.reason||(r.reason=new Lp(i),t(r.reason))})}Fr.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};Fr.source=function(){var t,r=new Fr(function(i){t=i});return{token:r,cancel:t}};Xu.exports=Fr});var Zu=v((yy,Qu)=>{"use strict";Qu.exports=function(t){return function(n){return t.apply(null,n)}}});var tl=v((gy,el)=>{"use strict";el.exports=function(t){return typeof t=="object"&&t.isAxiosError===!0}});var il=v((vy,yi)=>{"use strict";var rl=se(),Bp=Gn(),Ir=Vu(),$p=hi(),Hp=qr();function nl(e){var t=new Ir(e),r=Bp(Ir.prototype.request,t);return rl.extend(r,Ir.prototype,t),rl.extend(r,t),r}var xe=nl(Hp);xe.Axios=Ir;xe.create=function(t){return nl($p(xe.defaults,t))};xe.Cancel=mi();xe.CancelToken=Ku();xe.isCancel=ui();xe.all=function(t){return Promise.all(t)};xe.spread=Zu();xe.isAxiosError=tl();yi.exports=xe;yi.exports.default=xe});var gi=v((by,ol)=>{ol.exports=il()});var Sl=D(require("node:fs")),Lr=D(require("node:path")),xl=D(ht());var Oc=D(require("node:fs"));var Bn=D(Jt()),Rc=D(Zr()),fd=D(Ct()),hd=D(yc()),Pc=D(ht());var ed=D(Ct());var gc=D(require("node:fs")),gr=D(require("node:path")),vc=D(Ct());var bc=_e();function wc(e){let{__caches:t}=bc.paths(e);return Z0({basePath:gr.default.join(t,"store"),withSizeProp:!1})}function*Z0(e){let{basePath:t,withSizeProp:r}=e||{},{__cx:n}=bc.paths(),i=t||gr.default.join(n,"store"),o=Sc(i).filter(s=>gr.default.extname(s)===".json");for(let s of o)try{let a=vc.default.readJsonSync(s,{encoding:"utf-8"});if(r){let c=gc.default.statSync(s);a.size=c.size/1024}a.path&&(yield a)}catch(a){console.error(`Error: The file ${s} doesn't exist`,a)}}var O1=_e();Rc.default.config();var I1=_e(),dd=Mc(process.env.GRIDDO_DEBUG_LOGS),pd=Mc(process.env.GRIDDO_BUILD_LOGS),D1=Pc.default.sync(),N1={clean:JSON.parse(process.env.GRIDDO_CLEAN_LIFECYCLE_MAX_ATTEMPTS||"1"),prepare:JSON.parse(process.env.GRIDDO_PREPARE_LIFECYCLE_MAX_ATTEMPTS||"1"),restore:JSON.parse(process.env.GRIDDO_RESTORE_LIFECYCLE_MAX_ATTEMPTS||"1"),data:JSON.parse(process.env.GRIDDO_DATA_LIFECYCLE_MAX_ATTEMPTS||"1"),ssg:JSON.parse(process.env.GRIDDO_SSG_LIFECYCLE_MAX_ATTEMPTS||"2"),relocation:JSON.parse(process.env.GRIDDO_RELOCATION_LIFECYCLE_MAX_ATTEMPTS||"1"),meta:JSON.parse(process.env.GRIDDO_META_LIFECYCLE_MAX_ATTEMPTS||"4"),archive:JSON.parse(process.env.GRIDDO_ARCHIVE_LIFECYCLE_MAX_ATTEMPTS||"1")};function _e(){try{return(kc(),Pl(Cc)).default}catch{console.log("Error while reading configuration file"),process.exit(1)}}function Ac(e){dd&&console.log(Bn.default.hex("#ffff33")("verbose"),Bn.default.gray(e.replace(/(\s)\s+/g,"$1").trim()))}function Mc(e){if(typeof e=="boolean")return e;if(e==null)return!1;if(e.toLowerCase()==="true")return!0;if(e.toLowerCase()==="false")return!1;let t=parseInt(e,10);return isNaN(t)?!1:t>0}function Sc(e){let t=[];return Oc.default.readdirSync(e).forEach(n=>{let i=`${e}/${n}`;t.push(i)}),t}function $n(e){pd&&console.info(e.replace(/(\s)\s+/g,"$1").trim())}function qc(e){return new Promise(t=>setTimeout(t,e))}function Hn(e,t=3){return(e/1e3).toFixed(t)}function Un(e){return"site"in e&&e.site?e?.site:void 0}var sl=D(gi()),al=D(Jt()),vi=class{user;password;baseUrl;headers;constructor(){this.user=process.env.botEmail,this.password=process.env.botPassword,this.baseUrl=process.env.API_URL}async login(){try{let t=await(0,sl.default)({url:`${this.baseUrl}/login_check`,method:"POST",headers:{"Content-Type":"application/json"},data:{username:this.user,password:this.password}});if(t.status===200){let{data:{token:r}}=t;this.headers={Authorization:"bearer "+r,"Cache-Control":"no-store"}}return this.headers}catch{console.error(al.default.red(`
|
|
22
22
|
\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
|
|
23
23
|
\u2502 Access credentials failure \u2502
|
|
24
24
|
\u2502 Check that the login details are correct in your .env file \u2502
|
|
25
25
|
\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
|
|
26
|
-
`)),process.exit(1)}}},
|
|
27
|
-
Max attempts ${
|
|
26
|
+
`)),process.exit(1)}}},Dr=new vi;var pl=D(gi()),ml=D(Jt()),yl=D(Zr());var cl=D(require("node:crypto")),Nr=D(require("node:fs")),bi=D(require("node:path")),ul=D(Ct());var Up=_e();function ll(e){let{__cx:t}=Up.paths(),r=bi.default.join(t,"apiCache"),n=cl.default.createHash("sha256");return n.update(JSON.stringify(e)),`${r}/${n.digest("hex")}`}function fl(e,t){let r=typeof t=="string"?t:JSON.stringify(t),n=ll(e),i=bi.default.dirname(n);Nr.default.existsSync(i)||Nr.default.mkdirSync(i,{recursive:!0}),Nr.default.writeFileSync(n,r,"utf8")}function hl(e){try{let t=ll(e);return ul.default.readJSONSync(t,{encoding:"utf-8"})}catch{return null}}yl.default.config();var{env:{RETRY_WAIT_SECONDS:Gp="4",RETRY_ATTEMPTS:dl="4"}}=process;async function wi(e,t,r=""){let{endpoint:n,body:i,cacheKey:o="",attempt:s=1,headers:a}=e,c={endpoint:n,body:i,headers:a,cacheKey:o};if(o){let d=new Date,f=hl(c);if(f){let p=Un(f),y=p?`site: ${p}`:"",m=Hn(new Date().getTime()-d.getTime());return $n(`${t} (cache) ${y} ${n} - ${m}s ${r}`),f}}try{let d=new Date,{data:f}=await(0,pl.default)({url:n,method:t,headers:Object.assign({},a,Dr.headers),data:i}),p=Un(f),y=p?`site: ${p}`:"",m=Hn(new Date().getTime()-d.getTime());return $n(`${t} (fetch) ${y} ${n} - ${m}s ${r}`),fl(c,f),f}catch(d){let f=d;return f.response?.status===404?null:(s>parseInt(dl)&&(console.log(`
|
|
27
|
+
Max attempts ${dl} reached
|
|
28
28
|
--------------------------------------
|
|
29
29
|
- ${t.toUpperCase()} ${n}
|
|
30
30
|
- BODY: ${JSON.stringify(i)}
|
|
31
31
|
- HEADERS: ${JSON.stringify(a)}
|
|
32
32
|
- RESPONSE: ${f.response?.status,JSON.stringify(f.response?.data)}
|
|
33
33
|
--------------------------------------
|
|
34
|
-
`),process.exit(1)),f.response||(console.log("Unknown error occurred"),console.log(JSON.stringify(f,null,2)),process.exit(1))
|
|
34
|
+
`),process.exit(1)),f.response||(console.log("Unknown error occurred"),console.log(JSON.stringify(f,null,2)),process.exit(1)),zp(f,{callInfo:{endpoint:n,body:i}}),console.warn(`Waiting for retry: ${t}`,n),await qc(parseInt(Gp)*1e3),wi({endpoint:n,body:i,headers:a,cacheKey:o,attempt:s+1},t,r))}}async function gl(e){return await wi(e,"get")}async function vl(e){let{endpoint:t,body:r,headers:n}=e,i=t.endsWith("/distributor")&&`# Distributor body: ${JSON.stringify(r)} lang: ${JSON.stringify(n?.lang)}`;return await wi(e,"post",i||"")}function zp(e,t){let{response:r,message:n,stack:i}=e,{callInfo:o}=t,{status:s,statusText:a,data:c}=r||{},d=[];for(let m of Object.keys(o))d.push(`${m}: ${typeof o[m]=="object"?JSON.stringify(o[m]):o[m]}`);let f=d.join(`
|
|
35
35
|
`),p=r?`Code: ${s} - ${a}
|
|
36
36
|
Response: ${JSON.stringify(c)}`:"",y=`${n}
|
|
37
|
-
${i}`;console.warn(
|
|
37
|
+
${i}`;console.warn(ml.default.bold.red(`
|
|
38
38
|
=============
|
|
39
39
|
|
|
40
40
|
{ Call info }
|
|
@@ -47,4 +47,4 @@ ${p}
|
|
|
47
47
|
${y}
|
|
48
48
|
|
|
49
49
|
=============
|
|
50
|
-
`))}var
|
|
50
|
+
`))}var Jp=process.env.API_URL,Wp={GET_ALL:`${Jp}/domains`},jr=class{static async getAll(){let{GET_ALL:t}=Wp;return await gl({endpoint:t})}};async function bl(){await Dr.login();let e=await jr.getAll();return Ac(`Getting domains slugs (${e.length})`),Vp(e)}function Vp(e){let t=e.filter(({slug:r})=>!!r).map(({slug:r})=>r.replace("/",""));return[...new Set(t)]}var Si=D(require("node:fs")),xi=D(require("node:path"));var Yp=process.env.API_URL;async function Xp(e){let{title:t,description:r,image:n,pageId:i,languageId:o,siteId:s,url:a,content:c,template:d}=e;return await vl({endpoint:`${Yp}/search`,body:{title:t,description:r,image:n,pageId:i,languageId:o,siteId:s,url:a,template:d,content:Kp(c)}})}function Kp(e){let t=Qp(["meta","link","style","script","noscript","nav","header","footer"],e),r=Zp(t);return em(r)}function Qp(e,t){let r=t;return e.forEach(n=>{r=r.replace(new RegExp(`<${n}.*?>.*?</${n}>`,"gis")," ").replace(new RegExp(`(<${n}([^>]+)>)`,"gis")," ")}),r}function Zp(e){return e.replace(/(<([^>]+)>)/gis," ")}function em(e){return e.replace(/\s+/g," ")}async function wl(e,t){let r=_e(),{__caches:n}=r.paths(t),i=xi.default.join(n,"store");if(!Si.default.existsSync(i)){console.log(`Skipping uploading content to the search endpoint for the domain ${t}, it has not exported sites.`);return}let o=wc(t);for await(let s of o){let{context:{page:a,openGraph:c}}=s,{compose:d}=a.fullPath,f=xi.default.resolve(`${e}/${d}/index.html`),p=Si.default.readFileSync(f).toString(),y={siteId:a.site,pageId:a.id,title:a.title,languageId:a.language,url:a.fullUrl,template:a.template.templateType||a.templateId,description:c.description,image:c.image,content:p};await Xp(y)}}var tm=JSON.parse(process.env.GRIDDO_SEARCH_FEATURE||"false"),rm=xl.default.sync(Lr.default.resolve(__dirname,"../..")),nm=Lr.default.resolve(rm,"exports/sites");async function im(){if(!tm)return;let e=await bl();for(let t of e){let r=Lr.default.resolve(nm,t,"dist");Sl.default.existsSync(r)&&await wl(r,t)}}im().catch(e=>{console.error("Error",e?.stdout?.toString()||e),process.exit(1)});
|