@griddo/cx 10.4.18 → 10.4.19
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/build-complete.js +14 -14
- package/build/index.js +27 -27
- package/build/run-start-render.js +27 -27
- package/build/start-render.js +27 -27
- package/build/upload-search-content.js +50 -0
- package/exporter/adapters/gatsby/index.ts +0 -5
- package/exporter/upload-search-content.ts +38 -0
- package/exporter/utils/api.ts +2 -2
- package/exporter/utils/searches.ts +25 -9
- package/exporter/utils/shared.ts +21 -0
- package/package.json +12 -9
- package/tsconfig.json +16 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";var wl=Object.create;var It=Object.defineProperty;var Sl=Object.getOwnPropertyDescriptor;var xl=Object.getOwnPropertyNames;var El=Object.getPrototypeOf,_l=Object.prototype.hasOwnProperty;var xi=(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)It(e,r,{get:t[r],enumerable:!0})},Ei=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of xl(t))!_l.call(e,i)&&i!==r&&It(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)):{},Ei(t||!e||!e.__esModule?It(r,"default",{value:e,enumerable:!0}):r,e)),kl=e=>Ei(It({},"__esModule",{value:!0}),e);var Ci=v((tm,_i)=>{var Br=class{constructor(t){this.value=t,this.next=void 0}},Lr=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}};_i.exports=Lr});var Oi=v((rm,ki)=>{"use strict";var Ol=Ci(),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};ki.exports=Rl});var Ai=v((nm,Pi)=>{"use strict";var Ri=Oi(),Dt=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 Dt(t[0]);return!1},ql=async(e,t,r)=>{r={concurrency:1/0,preserveOrder:!0,...r};let n=Ri(r.concurrency),i=[...e].map(s=>[s,n(Pl,s,t)]),o=Ri(r.preserveOrder?1:1/0);try{await Promise.all(i.map(s=>o(Al,s)))}catch(s){if(s instanceof Dt)return s.value;throw s}};Pi.exports=ql});var Di=v((im,$r)=>{"use strict";var qi=require("path"),Nt=require("fs"),{promisify:Mi}=require("util"),Ml=Ai(),Fl=Mi(Nt.stat),Tl=Mi(Nt.lstat),Fi={directory:"isDirectory",file:"isFile"};function Ti({type:e}){if(!(e in Fi))throw new Error(`Invalid type specified: ${e}`)}var Ii=(e,t)=>e===void 0||t[Fi[e]]();$r.exports=async(e,t)=>{t={cwd:process.cwd(),type:"file",allowSymlinks:!0,...t},Ti(t);let r=t.allowSymlinks?Fl:Tl;return Ml(e,async n=>{try{let i=await r(qi.resolve(t.cwd,n));return Ii(t.type,i)}catch{return!1}},t)};$r.exports.sync=(e,t)=>{t={cwd:process.cwd(),allowSymlinks:!0,type:"file",...t},Ti(t);let r=t.allowSymlinks?Nt.statSync:Nt.lstatSync;for(let n of e)try{let i=r(qi.resolve(t.cwd,n));if(Ii(t.type,i))return n}catch{}}});var ji=v((om,Ur)=>{"use strict";var Ni=require("fs"),{promisify:Il}=require("util"),Dl=Il(Ni.access);Ur.exports=async e=>{try{return await Dl(e),!0}catch{return!1}};Ur.exports.sync=e=>{try{return Ni.accessSync(e),!0}catch{return!1}}});var Gr=v((sm,Ue)=>{"use strict";var ke=require("path"),jt=Di(),Bi=ji(),Hr=Symbol("findUp.stop");Ue.exports=async(e,t={})=>{let r=ke.resolve(t.cwd||""),{root:n}=ke.parse(r),i=[].concat(e),o=async s=>{if(typeof e!="function")return jt(i,s);let a=await e(s.cwd);return typeof a=="string"?jt([a],s):a};for(;;){let s=await o({...t,cwd:r});if(s===Hr)return;if(s)return ke.resolve(r,s);if(r===n)return;r=ke.dirname(r)}};Ue.exports.sync=(e,t={})=>{let r=ke.resolve(t.cwd||""),{root:n}=ke.parse(r),i=[].concat(e),o=s=>{if(typeof e!="function")return jt.sync(i,s);let a=e(s.cwd);return typeof a=="string"?jt.sync([a],s):a};for(;;){let s=o({...t,cwd:r});if(s===Hr)return;if(s)return ke.resolve(r,s);if(r===n)return;r=ke.dirname(r)}};Ue.exports.exists=Bi;Ue.exports.sync.exists=Bi.sync;Ue.exports.stop=Hr});var ht=v((am,zr)=>{"use strict";var Li=require("path"),$i=Gr(),Nl=async e=>{let t=await $i("package.json",{cwd:e});return t&&Li.dirname(t)};zr.exports=Nl;zr.exports.sync=e=>{let t=$i.sync("package.json",{cwd:e});return t&&Li.dirname(t)}});var Jr=v((cm,Ui)=>{"use strict";Ui.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((um,zi)=>{"use strict";var jl=Jr(),Te=Object.prototype.toString;function Yr(e){return Te.call(e)==="[object Array]"}function Wr(e){return typeof e>"u"}function Bl(e){return e!==null&&!Wr(e)&&e.constructor!==null&&!Wr(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Ll(e){return Te.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 Hi(e){return e!==null&&typeof e=="object"}function Bt(e){if(Te.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function zl(e){return Te.call(e)==="[object Date]"}function Jl(e){return Te.call(e)==="[object File]"}function Wl(e){return Te.call(e)==="[object Blob]"}function Gi(e){return Te.call(e)==="[object Function]"}function Vl(e){return Hi(e)&&Gi(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 Xr(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),Yr(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 Vr(){var e={};function t(i,o){Bt(e[o])&&Bt(i)?e[o]=Vr(e[o],i):Bt(i)?e[o]=Vr({},i):Yr(i)?e[o]=i.slice():e[o]=i}for(var r=0,n=arguments.length;r<n;r++)Xr(arguments[r],t);return e}function Ql(e,t,r){return Xr(t,function(i,o){r&&typeof i=="function"?e[o]=jl(i,r):e[o]=i}),e}function Zl(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}zi.exports={isArray:Yr,isArrayBuffer:Ll,isBuffer:Bl,isFormData:$l,isArrayBufferView:Ul,isString:Hl,isNumber:Gl,isObject:Hi,isPlainObject:Bt,isUndefined:Wr,isDate:zl,isFile:Jl,isBlob:Wl,isFunction:Gi,isStream:Vl,isURLSearchParams:Yl,isStandardBrowserEnv:Kl,forEach:Xr,merge:Vr,extend:Ql,trim:Xl,stripBOM:Zl}});var Lt=v((lm,Wi)=>{"use strict";var He=ne();function Ji(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}Wi.exports=function(t,r,n){if(!r)return t;var i;if(n)i=n(r);else if(He.isURLSearchParams(r))i=r.toString();else{var o=[];He.forEach(r,function(c,d){c===null||typeof c>"u"||(He.isArray(c)?d=d+"[]":c=[c],He.forEach(c,function(p){He.isDate(p)?p=p.toISOString():He.isObject(p)&&(p=JSON.stringify(p)),o.push(Ji(d)+"="+Ji(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 Yi=v((fm,Vi)=>{"use strict";var ef=ne();function $t(){this.handlers=[]}$t.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};$t.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};$t.prototype.forEach=function(t){ef.forEach(this.handlers,function(n){n!==null&&t(n)})};Vi.exports=$t});var Ki=v((hm,Xi)=>{"use strict";var tf=ne();Xi.exports=function(t,r){tf.forEach(t,function(i,o){o!==r&&o.toUpperCase()===r.toUpperCase()&&(t[r]=i,delete t[o])})}});var Ut=v((dm,Qi)=>{"use strict";Qi.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 Ht=v((pm,Zi)=>{"use strict";var rf=Ut();Zi.exports=function(t,r,n,i,o){var s=new Error(t);return rf(s,r,n,i,o)}});var Kr=v((mm,eo)=>{"use strict";var nf=Ht();eo.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 ro=v((ym,to)=>{"use strict";var Gt=ne();to.exports=Gt.isStandardBrowserEnv()?function(){return{write:function(r,n,i,o,s,a){var c=[];c.push(r+"="+encodeURIComponent(n)),Gt.isNumber(i)&&c.push("expires="+new Date(i).toGMTString()),Gt.isString(o)&&c.push("path="+o),Gt.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 io=v((gm,no)=>{"use strict";no.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}});var so=v((vm,oo)=>{"use strict";oo.exports=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}});var Qr=v((bm,ao)=>{"use strict";var of=io(),sf=so();ao.exports=function(t,r){return t&&!of(r)?sf(t,r):r}});var uo=v((wm,co)=>{"use strict";var Zr=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"];co.exports=function(t){var r={},n,i,o;return t&&Zr.forEach(t.split(`
|
|
2
|
+
`),function(a){if(o=a.indexOf(":"),n=Zr.trim(a.substr(0,o)).toLowerCase(),i=Zr.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 ho=v((Sm,fo)=>{"use strict";var lo=ne();fo.exports=lo.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=lo.isString(s)?i(s):s;return a.protocol===n.protocol&&a.host===n.host}}():function(){return function(){return!0}}()});var mo=v((xm,po)=>{"use strict";var zt=ne(),cf=Kr(),uf=ro(),lf=Lt(),ff=Qr(),hf=uo(),df=ho(),en=Ht();po.exports=function(t){return new Promise(function(n,i){var o=t.data,s=t.headers,a=t.responseType;zt.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(en("Request aborted",t,"ECONNABORTED",c)),c=null)},c.onerror=function(){i(en("Network Error",t,null,c)),c=null},c.ontimeout=function(){var O="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(O=t.timeoutErrorMessage),i(en(O,t,t.transitional&&t.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",c)),c=null},zt.isStandardBrowserEnv()){var m=(t.withCredentials||df(p))&&t.xsrfCookieName?uf.read(t.xsrfCookieName):void 0;m&&(s[t.xsrfHeaderName]=m)}"setRequestHeader"in c&&zt.forEach(s,function(O,R){typeof o>"u"&&R.toLowerCase()==="content-type"?delete s[R]:c.setRequestHeader(R,O)}),zt.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 go=v((Em,yo)=>{var Ge=1e3,ze=Ge*60,Je=ze*60,Ie=Je*24,pf=Ie*7,mf=Ie*365.25;yo.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*Ie;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Je;case"minutes":case"minute":case"mins":case"min":case"m":return r*ze;case"seconds":case"second":case"secs":case"sec":case"s":return r*Ge;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function gf(e){var t=Math.abs(e);return t>=Ie?Math.round(e/Ie)+"d":t>=Je?Math.round(e/Je)+"h":t>=ze?Math.round(e/ze)+"m":t>=Ge?Math.round(e/Ge)+"s":e+"ms"}function vf(e){var t=Math.abs(e);return t>=Ie?Jt(e,t,Ie,"day"):t>=Je?Jt(e,t,Je,"hour"):t>=ze?Jt(e,t,ze,"minute"):t>=Ge?Jt(e,t,Ge,"second"):e+" ms"}function Jt(e,t,r,n){var i=t>=r*1.5;return Math.round(e/r)+" "+n+(i?"s":"")}});var tn=v((_m,vo)=>{function bf(e){r.debug=r,r.default=r,r.coerce=c,r.disable=o,r.enable=i,r.enabled=s,r.humanize=go(),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,_e)=>{if(ve==="%%")return"%";G++;let ae=r.formatters[_e];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}vo.exports=bf});var bo=v((he,Wt)=>{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 ":" ")+"+"+Wt.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{}}Wt.exports=tn()(he);var{formatters:Cf}=Wt.exports;Cf.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var So=v((Cm,wo)=>{"use strict";wo.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 on=v((km,Eo)=>{"use strict";var kf=require("os"),xo=require("tty"),ge=So(),{env:V}=process,Oe;ge("no-color")||ge("no-colors")||ge("color=false")||ge("color=never")?Oe=0:(ge("color")||ge("colors")||ge("color=true")||ge("color=always"))&&(Oe=1);"FORCE_COLOR"in V&&(V.FORCE_COLOR==="true"?Oe=1:V.FORCE_COLOR==="false"?Oe=0:Oe=V.FORCE_COLOR.length===0?1:Math.min(parseInt(V.FORCE_COLOR,10),3));function rn(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function nn(e,t){if(Oe===0)return 0;if(ge("color=16m")||ge("color=full")||ge("color=truecolor"))return 3;if(ge("color=256"))return 2;if(e&&!t&&Oe===void 0)return 0;let r=Oe||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=nn(e,e&&e.isTTY);return rn(t)}Eo.exports={supportsColor:Of,stdout:rn(nn(!0,xo.isatty(1))),stderr:rn(nn(!0,xo.isatty(2)))}});var Co=v((Y,Yt)=>{var Rf=require("tty"),Vt=require("util");Y.init=If;Y.log=Mf;Y.formatArgs=Af;Y.save=Ff;Y.load=Tf;Y.useColors=Pf;Y.destroy=Vt.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=on();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+"+Yt.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(Vt.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]]}Yt.exports=tn()(Y);var{formatters:_o}=Yt.exports;_o.o=function(e){return this.inspectOpts.colors=this.useColors,Vt.inspect(e,this.inspectOpts).split(`
|
|
6
|
+
`).map(t=>t.trim()).join(" ")};_o.O=function(e){return this.inspectOpts.colors=this.useColors,Vt.inspect(e,this.inspectOpts)}});var ko=v((Om,sn)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?sn.exports=bo():sn.exports=Co()});var Ro=v((Rm,Oo)=>{var dt;Oo.exports=function(){if(!dt){try{dt=ko()("follow-redirects")}catch{}typeof dt!="function"&&(dt=function(){})}dt.apply(null,arguments)}});var hn=v((Pm,fn)=>{var De=require("url"),an=De.URL,Df=require("http"),Nf=require("https"),qo=require("stream").Writable,Mo=require("assert"),Fo=Ro(),un=["abort","aborted","connect","error","socket","timeout"],ln=Object.create(null);un.forEach(function(e){ln[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}});var jf=mt("ERR_INVALID_URL","Invalid URL",TypeError),Po=mt("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),Bf=mt("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),Lf=mt("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),$f=mt("ERR_STREAM_WRITE_AFTER_END","write after end");function de(e,t){qo.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(qo.prototype);de.prototype.abort=function(){Io(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(pt(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(pt(e)?(r=e,e=t=null):pt(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 un)n.on(i,ln[i]);if(this._currentUrl=/^\//.test(this._options.path)?De.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(Io(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=[],cn(/^content-/i,this._options.headers));var s=cn(/^host$/i,this._options.headers),a=De.parse(this._currentUrl),c=s||a.host,d=/^\w+:/.test(r)?this._currentUrl:De.format(Object.assign(a,{host:c})),f;try{f=De.resolve(d,r)}catch(S){this.emit("error",new Po({cause:S}));return}Fo("redirecting to",f),this._isRedirect=!0;var p=De.parse(f);if(Object.assign(this._options,p),(p.protocol!==a.protocol&&p.protocol!=="https:"||p.host!==c&&!Hf(p.host,c))&&cn(/^(?:authorization|cookie)$/i,this._options.headers),pt(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 Po({cause:S}))}};function To(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=Ao(new an(d))}catch{y=De.parse(d)}if(!Ne(y.protocol))throw new jf({input:d});d=y}else an&&d instanceof an?d=Ao(d):(p=f,f=d,d={protocol:i});return pt(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"),Mo.equal(f.protocol,i,"protocol mismatch"),Fo("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 Ao(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 cn(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 mt(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 Io(e){for(var t of un)e.removeListener(t,ln[t]);e.on("error",Uf),e.abort()}function Hf(e,t){Mo(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 pt(e){return typeof e=="function"}function Gf(e){return typeof e=="object"&&"length"in e}fn.exports=To({http:Df,https:Nf});fn.exports.wrap=To});var dn=v((Am,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 $o=v((qm,Lo)=>{"use strict";var yt=ne(),Do=Kr(),Jf=Qr(),Wf=Lt(),Vf=require("http"),Yf=require("https"),Xf=hn().http,Kf=hn().https,No=require("url"),Qf=require("zlib"),Zf=dn(),Xt=Ht(),pn=Ut(),jo=/https:?/;function Bo(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,Bo(o,t,o.href)}}Lo.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&&!yt.isStream(a)){if(!Buffer.isBuffer(a))if(yt.isArrayBuffer(a))a=Buffer.from(new Uint8Array(a));else if(yt.isString(a))a=Buffer.from(a,"utf-8");else return s(Xt("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=No.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",_e=process.env[ve]||process.env[ve.toUpperCase()];if(_e){var ae=No.parse(_e),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:""),Bo(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=_,Ce=_.req||C;if(_.statusCode!==204&&Ce.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 Fe={status:_.statusCode,statusText:_.statusMessage,headers:_.headers,config:t,request:Ce};if(t.responseType==="stream")Fe.data=A,Do(o,s,Fe);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(Xt("maxContentLength size of "+t.maxContentLength+" exceeded",t,null,Ce)))}),A.on("error",function(me){C.aborted||s(pn(me,t,null,Ce))}),A.on("end",function(){var me=Buffer.concat(ce);t.responseType!=="arraybuffer"&&(me=me.toString(t.responseEncoding),(!t.responseEncoding||t.responseEncoding==="utf8")&&(me=yt.stripBOM(me))),Fe.data=me,Do(o,s,Fe)})}}});if(C.on("error",function(_){C.aborted&&_.code!=="ERR_FR_TOO_MANY_REDIRECTS"||s(pn(_,t,null,C))}),t.timeout){var N=parseInt(t.timeout,10);if(isNaN(N)){s(Xt("error trying to parse `config.timeout` to int",t,"ERR_PARSE_TIMEOUT",C));return}C.setTimeout(N,function(){C.abort(),s(Xt("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(_))}),yt.isStream(a)?a.on("error",function(_){s(pn(_,t,null,C))}).pipe(C):C.end(a)})}});var Qt=v((Mm,Go)=>{"use strict";var X=ne(),Uo=Ki(),eh=Ut(),th={"Content-Type":"application/x-www-form-urlencoded"};function Ho(e,t){!X.isUndefined(e)&&X.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function rh(){var e;return typeof XMLHttpRequest<"u"?e=mo():typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]"&&(e=$o()),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 Kt={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:rh(),transformRequest:[function(t,r){return Uo(r,"Accept"),Uo(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)?(Ho(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):X.isObject(t)||r&&r["Content-Type"]==="application/json"?(Ho(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}};Kt.headers={common:{Accept:"application/json, text/plain, */*"}};X.forEach(["delete","get","head"],function(t){Kt.headers[t]={}});X.forEach(["post","put","patch"],function(t){Kt.headers[t]=X.merge(th)});Go.exports=Kt});var Jo=v((Fm,zo)=>{"use strict";var ih=ne(),oh=Qt();zo.exports=function(t,r,n){var i=this||oh;return ih.forEach(n,function(s){t=s.call(i,t,r)}),t}});var mn=v((Tm,Wo)=>{"use strict";Wo.exports=function(t){return!!(t&&t.__CANCEL__)}});var Xo=v((Im,Yo)=>{"use strict";var Vo=ne(),yn=Jo(),sh=mn(),ah=Qt();function gn(e){e.cancelToken&&e.cancelToken.throwIfRequested()}Yo.exports=function(t){gn(t),t.headers=t.headers||{},t.data=yn.call(t,t.data,t.headers,t.transformRequest),t.headers=Vo.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Vo.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 gn(t),i.data=yn.call(t,i.data,i.headers,t.transformResponse),i},function(i){return sh(i)||(gn(t),i&&i.response&&(i.response.data=yn.call(t,i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})}});var vn=v((Dm,Ko)=>{"use strict";var Q=ne();Ko.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 rs=v((Nm,ts)=>{"use strict";var Zo=dn(),bn={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){bn[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var Qo={},ch=Zo.version.split(".");function es(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}bn.transitional=function(t,r,n){var i=r&&es(r);function o(s,a){return"[Axios v"+Zo.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&&!Qo[a]&&(Qo[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)}}ts.exports={isOlderVersion:es,assertOptions:uh,validators:bn}});var cs=v((jm,as)=>{"use strict";var os=ne(),lh=Lt(),ns=Yi(),is=Xo(),Zt=vn(),ss=rs(),We=ss.validators;function gt(e){this.defaults=e,this.interceptors={request:new ns,response:new ns}}gt.prototype.request=function(t){typeof t=="string"?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=Zt(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&&ss.assertOptions(r,{silentJSONParsing:We.transitional(We.boolean,"1.0.0"),forcedJSONParsing:We.transitional(We.boolean,"1.0.0"),clarifyTimeoutError:We.transitional(We.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=[is,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=is(c)}catch(p){return Promise.reject(p)}for(;o.length;)s=s.then(o.shift(),o.shift());return s};gt.prototype.getUri=function(t){return t=Zt(this.defaults,t),lh(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};os.forEach(["delete","get","head","options"],function(t){gt.prototype[t]=function(r,n){return this.request(Zt(n||{},{method:t,url:r,data:(n||{}).data}))}});os.forEach(["post","put","patch"],function(t){gt.prototype[t]=function(r,n,i){return this.request(Zt(i||{},{method:t,url:r,data:n}))}});as.exports=gt});var Sn=v((Bm,us)=>{"use strict";function wn(e){this.message=e}wn.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};wn.prototype.__CANCEL__=!0;us.exports=wn});var fs=v((Lm,ls)=>{"use strict";var fh=Sn();function er(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))})}er.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};er.source=function(){var t,r=new er(function(i){t=i});return{token:r,cancel:t}};ls.exports=er});var ds=v(($m,hs)=>{"use strict";hs.exports=function(t){return function(n){return t.apply(null,n)}}});var ms=v((Um,ps)=>{"use strict";ps.exports=function(t){return typeof t=="object"&&t.isAxiosError===!0}});var vs=v((Hm,xn)=>{"use strict";var ys=ne(),hh=Jr(),tr=cs(),dh=vn(),ph=Qt();function gs(e){var t=new tr(e),r=hh(tr.prototype.request,t);return ys.extend(r,tr.prototype,t),ys.extend(r,t),r}var we=gs(ph);we.Axios=tr;we.create=function(t){return gs(dh(we.defaults,t))};we.Cancel=Sn();we.CancelToken=fs();we.isCancel=mn();we.all=function(t){return Promise.all(t)};we.spread=ds();we.isAxiosError=ms();xn.exports=we;xn.exports.default=we});var En=v((Gm,bs)=>{bs.exports=vs()});var Ss=v((zm,ws)=>{"use strict";var mh=/[|\\{}()[\]^$+*?.]/g;ws.exports=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(mh,"\\$&")}});var Es=v((Jm,xs)=>{"use strict";xs.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 _n=v((Wm,Os)=>{var je=Es(),ks={};for(rr in je)je.hasOwnProperty(rr)&&(ks[je[rr]]=rr);var rr,x=Os.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);_s=x[ie].channels,Cs=x[ie].labels,delete x[ie].channels,delete x[ie].labels,Object.defineProperty(x[ie],"channels",{value:_s}),Object.defineProperty(x[ie],"labels",{value:Cs})}var _s,Cs,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=ks[e];if(t)return t;var r=1/0,n;for(var i in je)if(je.hasOwnProperty(i)){var o=je[i],s=yh(e,o);s<r&&(r=s,n=i)}return n};x.keyword.rgb=function(e){return je[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 Ps=v((Vm,Rs)=>{var nr=_n();function gh(){for(var e={},t=Object.keys(nr),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(nr[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=nr[t[e].parent][e],i=t[e].parent;t[i].parent;)r.unshift(t[i].parent),n=bh(nr[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}Rs.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 qs=v((Ym,As)=>{var Cn=_n(),Sh=Ps(),Ve={},xh=Object.keys(Cn);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){Ve[e]={},Object.defineProperty(Ve[e],"channels",{value:Cn[e].channels}),Object.defineProperty(Ve[e],"labels",{value:Cn[e].labels});var t=Sh(e),r=Object.keys(t);r.forEach(function(n){var i=t[n];Ve[e][n]=_h(i),Ve[e][n].raw=Eh(i)})});As.exports=Ve});var Fs=v((Xm,Ms)=>{"use strict";var Ye=qs(),ir=(e,t)=>function(){return`\x1B[${e.apply(Ye,arguments)+t}m`},or=(e,t)=>function(){let r=e.apply(Ye,arguments);return`\x1B[${38+t};5;${r}m`},sr=(e,t)=>function(){let r=e.apply(Ye,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:ir(r,0)},t.color.ansi256={ansi256:or(r,0)},t.color.ansi16m={rgb:sr(n,0)},t.bgColor.ansi={ansi:ir(r,10)},t.bgColor.ansi256={ansi256:or(r,10)},t.bgColor.ansi16m={rgb:sr(n,10)};for(let i of Object.keys(Ye)){if(typeof Ye[i]!="object")continue;let o=Ye[i];i==="ansi16"&&(i="ansi"),"ansi16"in o&&(t.color.ansi[i]=ir(o.ansi16,0),t.bgColor.ansi[i]=ir(o.ansi16,10)),"ansi256"in o&&(t.color.ansi256[i]=or(o.ansi256,0),t.bgColor.ansi256[i]=or(o.ansi256,10)),"rgb"in o&&(t.color.ansi16m[i]=sr(o.rgb,0),t.bgColor.ansi16m[i]=sr(o.rgb,10))}return t}Object.defineProperty(Ms,"exports",{enumerable:!0,get:Ch})});var Is=v((Km,Ts)=>{"use strict";Ts.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 Ns=v((Qm,Ds)=>{"use strict";var kh=require("os"),Se=Is(),Z=process.env,Xe;Se("no-color")||Se("no-colors")||Se("color=false")?Xe=!1:(Se("color")||Se("colors")||Se("color=true")||Se("color=always"))&&(Xe=!0);"FORCE_COLOR"in Z&&(Xe=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(Xe===!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&&Xe!==!0)return 0;let t=Xe?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 kn(e){let t=Rh(e);return Oh(t)}Ds.exports={supportsColor:kn,stdout:kn(process.stdout),stderr:kn(process.stderr)}});var Us=v((Zm,$s)=>{"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 Ls(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?Ls(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 Bs(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}$s.exports=(e,t)=>{let r=[],n=[],i=[];if(t.replace(Ph,(o,s,a,c,d,f)=>{if(s)i.push(Ls(s));else if(c){let p=i.join("");i=[],n.push(r.length===0?p:Bs(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(Bs(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 cr=v((e1,bt)=>{"use strict";var Rn=Ss(),W=Fs(),On=Ns().stdout,Ih=Us(),Gs=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),zs=["ansi","ansi","ansi256","ansi16m"],Js=new Set(["gray"]),Ke=Object.create(null);function Hs(e,t){t=t||{};let r=On?On.level:0;e.level=t.level===void 0?r:t.level,e.enabled="enabled"in t?t.enabled:e.level>0}function vt(e){if(!this||!(this instanceof vt)||this.template){let t={};return Hs(t,e),t.template=function(){let r=[].slice.call(arguments);return jh.apply(null,[t.template].concat(r))},Object.setPrototypeOf(t,vt.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=vt,t.template}Hs(this,e)}Gs&&(W.blue.open="\x1B[94m");for(let e of Object.keys(W))W[e].closeRe=new RegExp(Rn(W[e].close),"g"),Ke[e]={get(){let t=W[e];return ar.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}};Ke.visible={get(){return ar.call(this,this._styles||[],!0,"visible")}};W.color.closeRe=new RegExp(Rn(W.color.close),"g");for(let e of Object.keys(W.color.ansi))Js.has(e)||(Ke[e]={get(){let t=this.level;return function(){let n={open:W.color[zs[t]][e].apply(null,arguments),close:W.color.close,closeRe:W.color.closeRe};return ar.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});W.bgColor.closeRe=new RegExp(Rn(W.bgColor.close),"g");for(let e of Object.keys(W.bgColor.ansi)){if(Js.has(e))continue;let t="bg"+e[0].toUpperCase()+e.slice(1);Ke[t]={get(){let r=this.level;return function(){let i={open:W.bgColor[zs[r]][e].apply(null,arguments),close:W.bgColor.close,closeRe:W.bgColor.closeRe};return ar.call(this,this._styles?this._styles.concat(i):[i],this._empty,e)}}}}var Dh=Object.defineProperties(()=>{},Ke);function ar(e,t,r){let n=function(){return Nh.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 Nh(){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;Gs&&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 jh(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(vt.prototype,Ke);bt.exports=vt();bt.exports.supportsColor=On;bt.exports.default=bt.exports});var qn=v((r1,An)=>{var Bh=require("fs"),Lh=require("path");function Ys(e){console.log(`[dotenv][DEBUG] ${e}`)}var $h=`
|
|
8
|
+
`,Uh=/^\s*([\w.-]+)\s*=\s*(.*)?\s*$/,Hh=/\\n/g,Gh=/\n|\r|\r\n/;function Xs(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&&Ys(`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=Xs(Bh.readFileSync(t,{encoding:r}),{debug:n});return Object.keys(i).forEach(function(o){Object.prototype.hasOwnProperty.call(process.env,o)?n&&Ys(`"${o}" is already defined in \`process.env\` and will not be overwritten`):process.env[o]=i[o]}),{parsed:i}}catch(i){return{error:i}}}An.exports.config=zh;An.exports.parse=Xs});var ue=v(Mn=>{"use strict";Mn.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})};Mn.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 Qs=v((i1,Ks)=>{var Re=require("constants"),Jh=process.cwd,lr=null,Wh=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return lr||(lr=Jh.call(process)),lr};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Fn=process.chdir,process.chdir=function(e){lr=null,Fn.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Fn));var Fn;Ks.exports=Vh;function Vh(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(){}),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,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(M){m&&m(R||M)})})})},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(M){f.close(R,function($){S&&S(M||$)})})})},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 ta=v((o1,ea)=>{var Zs=require("stream").Stream;ea.exports=Yh;function Yh(e){return{ReadStream:t,WriteStream:r};function t(n,i){if(!(this instanceof t))return new t(n,i);Zs.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);Zs.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 na=v((s1,ra)=>{"use strict";ra.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((a1,Dn)=>{var H=require("fs"),Qh=Qs(),Zh=ta(),e0=na(),fr=require("util"),K,dr;typeof Symbol=="function"&&typeof Symbol.for=="function"?(K=Symbol.for("graceful-fs.queue"),dr=Symbol.for("graceful-fs.previous")):(K="___graceful-fs.queue",dr="___graceful-fs.previous");function t0(){}function sa(e,t){Object.defineProperty(e,K,{get:function(){return t}})}var Be=t0;fr.debuglog?Be=fr.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Be=function(){var e=fr.format.apply(fr,arguments);e="GFS4: "+e.split(/\n/).join(`
|
|
9
|
+
GFS4: `),console.error(e)});H[K]||(ia=global[K]||[],sa(H,ia),H.close=function(e){function t(r,n){return e.call(H,r,function(i){i||oa(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,dr,{value:e}),t}(H.close),H.closeSync=function(e){function t(r){e.apply(H,arguments),oa()}return Object.defineProperty(t,dr,{value:e}),t}(H.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Be(H[K]),require("assert").equal(H[K].length,0)}));var ia;global[K]||sa(global,H[K]);Dn.exports=Tn(e0(H));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!H.__patched&&(Dn.exports=Tn(H),H.__patched=!0);function Tn(e){Qh(e),e.gracefulify=Tn,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,N){return t(P,L,function(q){q&&(q.code==="EMFILE"||q.code==="ENFILE")?Qe([U,[P,L,C],q,N||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,N,q,_){return n(L,C,N,function(A){A&&(A.code==="EMFILE"||A.code==="ENFILE")?Qe([P,[L,C,N,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,N,q,_){return o(L,C,N,function(A){A&&(A.code==="EMFILE"||A.code==="ENFILE")?Qe([P,[L,C,N,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,N,q,_){return a(L,C,N,function(A){A&&(A.code==="EMFILE"||A.code==="ENFILE")?Qe([P,[L,C,N,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,N,q,_){return d(C,P(C,N,q,_))}:function(C,N,q,_){return d(C,N,P(C,N,q,_))};return U(k,T,F);function P(L,C,N,q){return function(_,A){_&&(_.code==="EMFILE"||_.code==="ENFILE")?Qe([U,[L,C,N],_,q||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=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 _e=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,N,q,_){return _e(L,C,N,function(A,Ce){A&&(A.code==="EMFILE"||A.code==="ENFILE")?Qe([P,[L,C,N,q],A,_||Date.now(),Date.now()]):typeof q=="function"&&q.apply(this,arguments)})}}return e}function Qe(e){Be("ENQUEUE",e[0].name,e[1]),H[K].push(e),In()}var hr;function oa(){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);In()}function In(){if(clearTimeout(hr),hr=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)Be("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=6e4){Be("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?(Be("RETRY",t.name,r),t.apply(null,r.concat([i]))):H[K].push(e)}hr===void 0&&(hr=setTimeout(In,0))}}});var wt=v(Pe=>{"use strict";var aa=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"&&(Pe[e]=oe[e])});r0.forEach(e=>{Pe[e]=aa(oe[e])});Pe.exists=function(e,t){return typeof t=="function"?oe.exists(e,t):new Promise(r=>oe.exists(e,r))};Pe.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})})})};Pe.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"&&(Pe.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"&&(Pe.realpath.native=aa(oe.realpath.native))});var Nn=v((u1,ca)=>{ca.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 da=v((l1,jn)=>{"use strict";var Ze=wt(),Ee=require("path"),n0=Nn(),ua=n0("10.12.0"),la=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}},fa=e=>{let t={mode:511};return typeof e=="number"&&(e={mode:e}),{...t,...e}},ha=e=>{let t=new Error(`operation not permitted, mkdir '${e}'`);return t.code="EPERM",t.errno=-4048,t.path=e,t.syscall="mkdir",t};jn.exports.makeDir=async(e,t)=>{if(la(e),t=fa(t),ua){let n=Ee.resolve(e);return Ze.mkdir(n,{mode:t.mode,recursive:!0})}let r=async n=>{try{await Ze.mkdir(n,t.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(Ee.dirname(n)===n)throw ha(n);if(i.message.includes("null bytes"))throw i;return await r(Ee.dirname(n)),r(n)}try{if(!(await Ze.stat(n)).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return r(Ee.resolve(e))};jn.exports.makeDirSync=(e,t)=>{if(la(e),t=fa(t),ua){let n=Ee.resolve(e);return Ze.mkdirSync(n,{mode:t.mode,recursive:!0})}let r=n=>{try{Ze.mkdirSync(n,t.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(Ee.dirname(n)===n)throw ha(n);if(i.message.includes("null bytes"))throw i;return r(Ee.dirname(n)),r(n)}try{if(!Ze.statSync(n).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return r(Ee.resolve(e))}});var xe=v((f1,pa)=>{"use strict";var i0=ue().fromPromise,{makeDir:o0,makeDirSync:Bn}=da(),Ln=i0(o0);pa.exports={mkdirs:Ln,mkdirsSync:Bn,mkdirp:Ln,mkdirpSync:Bn,ensureDir:Ln,ensureDirSync:Bn}});var $n=v((h1,ma)=>{"use strict";var et=ee();function s0(e,t,r,n){et.open(e,"r+",(i,o)=>{if(i)return n(i);et.futimes(o,t,r,s=>{et.close(o,a=>{n&&n(s||a)})})})}function a0(e,t,r){let n=et.openSync(e,"r+");return et.futimesSync(n,t,r),et.closeSync(n)}ma.exports={utimesMillis:s0,utimesMillisSync:a0}});var St=v((d1,ba)=>{"use strict";var tt=wt(),le=require("path"),c0=require("util"),u0=Nn(),pr=u0("10.5.0"),ya=e=>pr?tt.stat(e,{bigint:!0}):tt.stat(e),Un=e=>pr?tt.statSync(e,{bigint:!0}):tt.statSync(e);function l0(e,t){return Promise.all([ya(e),ya(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=Un(e);try{r=Un(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&&mr(s,a)?n(new Error("Source and destination must not be the same.")):s.isDirectory()&&Hn(e,t)?n(new Error(yr(e,t,r))):n(null,{srcStat:s,destStat:a})})}function d0(e,t,r){let{srcStat:n,destStat:i}=f0(e,t);if(i&&mr(n,i))throw new Error("Source and destination must not be the same.");if(n.isDirectory()&&Hn(e,t))throw new Error(yr(e,t,r));return{srcStat:n,destStat:i}}function ga(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):mr(t,d)?i(new Error(yr(e,r,n))):ga(e,t,s,n,i);pr?tt.stat(s,{bigint:!0},a):tt.stat(s,a)}function va(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=Un(o)}catch(a){if(a.code==="ENOENT")return;throw a}if(mr(t,s))throw new Error(yr(e,r,n));return va(e,t,o,n)}function mr(e,t){return!!(t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev&&(pr||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 yr(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}ba.exports={checkPaths:h0,checkPathsSync:d0,checkParentPaths:ga,checkParentPathsSync:va,isSrcSubdir:Hn}});var _a=v((p1,Ea)=>{"use strict";var te=ee(),xt=require("path"),p0=xe().mkdirsSync,m0=$n().utimesMillisSync,Et=St();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;
|
|
10
|
+
|
|
11
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:n,destStat:i}=Et.checkPathsSync(e,t,"copy");return Et.checkParentPathsSync(e,n,t,"copy"),g0(i,e,t,r)}function g0(e,t,r,n){if(n.filter&&!n.filter(t,r))return;let i=xt.dirname(r);return te.existsSync(i)||p0(i),wa(e,t,r,n)}function wa(e,t,r,n){if(!(n.filter&&!n.filter(t,r)))return v0(e,t,r,n)}function v0(e,t,r,n){let o=(n.dereference?te.statSync:te.lstatSync)(t);if(o.isDirectory())return C0(o,e,t,r,n);if(o.isFile()||o.isCharacterDevice()||o.isBlockDevice())return b0(o,e,t,r,n);if(o.isSymbolicLink())return R0(e,t,r,n)}function b0(e,t,r,n,i){return t?w0(e,r,n,i):Sa(e,r,n,i)}function w0(e,t,r,n){if(n.overwrite)return te.unlinkSync(r),Sa(e,t,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}function Sa(e,t,r,n){return te.copyFileSync(t,r),n.preserveTimestamps&&S0(e.mode,t,r),Gn(r,e.mode)}function S0(e,t,r){return x0(e)&&E0(r,e),_0(t,r)}function x0(e){return(e&128)===0}function E0(e,t){return Gn(e,t|128)}function Gn(e,t){return te.chmodSync(e,t)}function _0(e,t){let r=te.statSync(e);return m0(t,r.atime,r.mtime)}function C0(e,t,r,n,i){if(!t)return k0(e.mode,r,n,i);if(t&&!t.isDirectory())throw new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`);return xa(r,n,i)}function k0(e,t,r,n){return te.mkdirSync(r),xa(t,r,n),Gn(r,e)}function xa(e,t,r){te.readdirSync(e).forEach(n=>O0(n,e,t,r))}function O0(e,t,r,n){let i=xt.join(t,e),o=xt.join(r,e),{destStat:s}=Et.checkPathsSync(i,o,"copy");return wa(s,i,o,n)}function R0(e,t,r,n){let i=te.readlinkSync(t);if(n.dereference&&(i=xt.resolve(process.cwd(),i)),e){let o;try{o=te.readlinkSync(r)}catch(s){if(s.code==="EINVAL"||s.code==="UNKNOWN")return te.symlinkSync(i,r);throw s}if(n.dereference&&(o=xt.resolve(process.cwd(),o)),Et.isSrcSubdir(i,o))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${o}'.`);if(te.statSync(r).isDirectory()&&Et.isSrcSubdir(o,i))throw new Error(`Cannot overwrite '${o}' with '${i}'.`);return P0(i,r)}else return te.symlinkSync(i,r)}function P0(e,t){return te.unlinkSync(t),te.symlinkSync(e,t)}Ea.exports=y0});var zn=v((m1,Ca)=>{"use strict";Ca.exports={copySync:_a()}});var Ae=v((y1,Oa)=>{"use strict";var A0=ue().fromPromise,ka=wt();function q0(e){return ka.access(e).then(()=>!0).catch(()=>!1)}Oa.exports={pathExists:A0(q0),pathExistsSync:ka.existsSync}});var Da=v((g1,Ia)=>{"use strict";var fe=ee(),_t=require("path"),M0=xe().mkdirs,F0=Ae().pathExists,T0=$n().utimesMillis,Ct=St();function I0(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
|
+
|
|
13
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`),Ct.checkPaths(e,t,"copy",(i,o)=>{if(i)return n(i);let{srcStat:s,destStat:a}=o;Ct.checkParentPaths(e,s,t,"copy",c=>c?n(c):r.filter?qa(Ra,a,e,t,r,n):Ra(a,e,t,r,n))})}function Ra(e,t,r,n,i){let o=_t.dirname(r);F0(o,(s,a)=>{if(s)return i(s);if(a)return Jn(e,t,r,n,i);M0(o,c=>c?i(c):Jn(e,t,r,n,i))})}function qa(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 Jn(e,t,r,n,i){return n.filter?qa(Pa,e,t,r,n,i):Pa(e,t,r,n,i)}function Pa(e,t,r,n,i){(n.dereference?fe.stat:fe.lstat)(t,(s,a)=>{if(s)return i(s);if(a.isDirectory())return U0(a,e,t,r,n,i);if(a.isFile()||a.isCharacterDevice()||a.isBlockDevice())return D0(a,e,t,r,n,i);if(a.isSymbolicLink())return z0(e,t,r,n,i)})}function D0(e,t,r,n,i,o){return t?N0(e,r,n,i,o):Ma(e,r,n,i,o)}function N0(e,t,r,n,i){if(n.overwrite)fe.unlink(r,o=>o?i(o):Ma(e,t,r,n,i));else return n.errorOnExist?i(new Error(`'${r}' already exists`)):i()}function Ma(e,t,r,n,i){fe.copyFile(t,r,o=>o?i(o):n.preserveTimestamps?j0(e.mode,t,r,i):gr(r,e.mode,i))}function j0(e,t,r,n){return B0(e)?L0(r,e,i=>i?n(i):Aa(e,t,r,n)):Aa(e,t,r,n)}function B0(e){return(e&128)===0}function L0(e,t,r){return gr(e,t|128,r)}function Aa(e,t,r,n){$0(t,r,i=>i?n(i):gr(r,e,n))}function gr(e,t,r){return fe.chmod(e,t,r)}function $0(e,t,r){fe.stat(e,(n,i)=>n?r(n):T0(t,i.atime,i.mtime,r))}function U0(e,t,r,n,i,o){return t?t&&!t.isDirectory()?o(new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`)):Fa(r,n,i,o):H0(e.mode,r,n,i,o)}function H0(e,t,r,n,i){fe.mkdir(r,o=>{if(o)return i(o);Fa(t,r,n,s=>s?i(s):gr(r,e,i))})}function Fa(e,t,r,n){fe.readdir(e,(i,o)=>i?n(i):Ta(o,e,t,r,n))}function Ta(e,t,r,n,i){let o=e.pop();return o?G0(e,o,t,r,n,i):i()}function G0(e,t,r,n,i,o){let s=_t.join(r,t),a=_t.join(n,t);Ct.checkPaths(s,a,"copy",(c,d)=>{if(c)return o(c);let{destStat:f}=d;Jn(f,s,a,i,p=>p?o(p):Ta(e,r,n,i,o))})}function z0(e,t,r,n,i){fe.readlink(t,(o,s)=>{if(o)return i(o);if(n.dereference&&(s=_t.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=_t.resolve(process.cwd(),c)),Ct.isSrcSubdir(s,c)?i(new Error(`Cannot copy '${s}' to a subdirectory of itself, '${c}'.`)):e.isDirectory()&&Ct.isSrcSubdir(c,s)?i(new Error(`Cannot overwrite '${c}' with '${s}'.`)):J0(s,r,i)));else return fe.symlink(s,r,i)})}function J0(e,t,r){fe.unlink(t,n=>n?r(n):fe.symlink(e,t,r))}Ia.exports=I0});var Wn=v((v1,Na)=>{"use strict";var W0=ue().fromCallback;Na.exports={copy:W0(Da())}});var Ja=v((b1,za)=>{"use strict";var ja=ee(),Ua=require("path"),B=require("assert"),kt=process.platform==="win32";function Ha(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(r=>{e[r]=e[r]||ja[r],r=r+"Sync",e[r]=e[r]||ja[r]}),e.maxBusyTries=e.maxBusyTries||3}function Vn(e,t,r){let n=0;typeof t=="function"&&(r=t,t={}),B(e,"rimraf: missing path"),B.strictEqual(typeof e,"string","rimraf: path should be a string"),B.strictEqual(typeof r,"function","rimraf: callback function required"),B(t,"rimraf: invalid options argument provided"),B.strictEqual(typeof t,"object","rimraf: options should be object"),Ha(t),Ba(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(()=>Ba(e,t,i),s)}o.code==="ENOENT"&&(o=null)}r(o)})}function Ba(e,t,r){B(e),B(t),B(typeof r=="function"),t.lstat(e,(n,i)=>{if(n&&n.code==="ENOENT")return r(null);if(n&&n.code==="EPERM"&&kt)return La(e,t,n,r);if(i&&i.isDirectory())return vr(e,t,n,r);t.unlink(e,o=>{if(o){if(o.code==="ENOENT")return r(null);if(o.code==="EPERM")return kt?La(e,t,o,r):vr(e,t,o,r);if(o.code==="EISDIR")return vr(e,t,o,r)}return r(o)})})}function La(e,t,r,n){B(e),B(t),B(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()?vr(e,t,r,n):t.unlink(e,n)})})}function $a(e,t,r){let n;B(e),B(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()?br(e,t,r):t.unlinkSync(e)}function vr(e,t,r,n){B(e),B(t),B(typeof n=="function"),t.rmdir(e,i=>{i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?V0(e,t,n):i&&i.code==="ENOTDIR"?n(r):n(i)})}function V0(e,t,r){B(e),B(t),B(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=>{Vn(Ua.join(e,a),t,c=>{if(!s){if(c)return r(s=c);--o===0&&t.rmdir(e,r)}})})})}function Ga(e,t){let r;t=t||{},Ha(t),B(e,"rimraf: missing path"),B.strictEqual(typeof e,"string","rimraf: path should be a string"),B(t,"rimraf: missing options"),B.strictEqual(typeof t,"object","rimraf: options should be object");try{r=t.lstatSync(e)}catch(n){if(n.code==="ENOENT")return;n.code==="EPERM"&&kt&&$a(e,t,n)}try{r&&r.isDirectory()?br(e,t,null):t.unlinkSync(e)}catch(n){if(n.code==="ENOENT")return;if(n.code==="EPERM")return kt?$a(e,t,n):br(e,t,n);if(n.code!=="EISDIR")throw n;br(e,t,n)}}function br(e,t,r){B(e),B(t);try{t.rmdirSync(e)}catch(n){if(n.code==="ENOTDIR")throw r;if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")Y0(e,t);else if(n.code!=="ENOENT")throw n}}function Y0(e,t){if(B(e),B(t),t.readdirSync(e).forEach(r=>Ga(Ua.join(e,r),t)),kt){let r=Date.now();do try{return t.rmdirSync(e,t)}catch{}while(Date.now()-r<500)}else return t.rmdirSync(e,t)}za.exports=Vn;Vn.sync=Ga});var Ot=v((w1,Va)=>{"use strict";var X0=ue().fromCallback,Wa=Ja();Va.exports={remove:X0(Wa),removeSync:Wa.sync}});var rc=v((S1,tc)=>{"use strict";var K0=ue().fromCallback,Ka=ee(),Qa=require("path"),Za=xe(),ec=Ot(),Ya=K0(function(t,r){r=r||function(){},Ka.readdir(t,(n,i)=>{if(n)return Za.mkdirs(t,r);i=i.map(s=>Qa.join(t,s)),o();function o(){let s=i.pop();if(!s)return r();ec.remove(s,a=>{if(a)return r(a);o()})}})});function Xa(e){let t;try{t=Ka.readdirSync(e)}catch{return Za.mkdirsSync(e)}t.forEach(r=>{r=Qa.join(e,r),ec.removeSync(r)})}tc.exports={emptyDirSync:Xa,emptydirSync:Xa,emptyDir:Ya,emptydir:Ya}});var sc=v((x1,oc)=>{"use strict";var Q0=ue().fromCallback,nc=require("path"),qe=ee(),ic=xe();function Z0(e,t){function r(){qe.writeFile(e,"",n=>{if(n)return t(n);t()})}qe.stat(e,(n,i)=>{if(!n&&i.isFile())return t();let o=nc.dirname(e);qe.stat(o,(s,a)=>{if(s)return s.code==="ENOENT"?ic.mkdirs(o,c=>{if(c)return t(c);r()}):t(s);a.isDirectory()?r():qe.readdir(o,c=>{if(c)return t(c)})})})}function ed(e){let t;try{t=qe.statSync(e)}catch{}if(t&&t.isFile())return;let r=nc.dirname(e);try{qe.statSync(r).isDirectory()||qe.readdirSync(r)}catch(n){if(n&&n.code==="ENOENT")ic.mkdirsSync(r);else throw n}qe.writeFileSync(e,"")}oc.exports={createFile:Q0(Z0),createFileSync:ed}});var fc=v((E1,lc)=>{"use strict";var td=ue().fromCallback,cc=require("path"),Le=ee(),uc=xe(),ac=Ae().pathExists;function rd(e,t,r){function n(i,o){Le.link(i,o,s=>{if(s)return r(s);r(null)})}ac(t,(i,o)=>{if(i)return r(i);if(o)return r(null);Le.lstat(e,s=>{if(s)return s.message=s.message.replace("lstat","ensureLink"),r(s);let a=cc.dirname(t);ac(a,(c,d)=>{if(c)return r(c);if(d)return n(e,t);uc.mkdirs(a,f=>{if(f)return r(f);n(e,t)})})})})}function nd(e,t){if(Le.existsSync(t))return;try{Le.lstatSync(e)}catch(o){throw o.message=o.message.replace("lstat","ensureLink"),o}let n=cc.dirname(t);return Le.existsSync(n)||uc.mkdirsSync(n),Le.linkSync(e,t)}lc.exports={createLink:td(rd),createLinkSync:nd}});var dc=v((_1,hc)=>{"use strict";var Me=require("path"),Rt=ee(),id=Ae().pathExists;function od(e,t,r){if(Me.isAbsolute(e))return Rt.lstat(e,n=>n?(n.message=n.message.replace("lstat","ensureSymlink"),r(n)):r(null,{toCwd:e,toDst:e}));{let n=Me.dirname(t),i=Me.join(n,e);return id(i,(o,s)=>o?r(o):s?r(null,{toCwd:i,toDst:e}):Rt.lstat(e,a=>a?(a.message=a.message.replace("lstat","ensureSymlink"),r(a)):r(null,{toCwd:e,toDst:Me.relative(n,e)})))}}function sd(e,t){let r;if(Me.isAbsolute(e)){if(r=Rt.existsSync(e),!r)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{let n=Me.dirname(t),i=Me.join(n,e);if(r=Rt.existsSync(i),r)return{toCwd:i,toDst:e};if(r=Rt.existsSync(e),!r)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:Me.relative(n,e)}}}hc.exports={symlinkPaths:od,symlinkPathsSync:sd}});var yc=v((C1,mc)=>{"use strict";var pc=ee();function ad(e,t,r){if(r=typeof t=="function"?t:r,t=typeof t=="function"?!1:t,t)return r(null,t);pc.lstat(e,(n,i)=>{if(n)return r(null,"file");t=i&&i.isDirectory()?"dir":"file",r(null,t)})}function cd(e,t){let r;if(t)return t;try{r=pc.lstatSync(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}mc.exports={symlinkType:ad,symlinkTypeSync:cd}});var Ec=v((k1,xc)=>{"use strict";var ud=ue().fromCallback,vc=require("path"),rt=ee(),bc=xe(),ld=bc.mkdirs,fd=bc.mkdirsSync,wc=dc(),hd=wc.symlinkPaths,dd=wc.symlinkPathsSync,Sc=yc(),pd=Sc.symlinkType,md=Sc.symlinkTypeSync,gc=Ae().pathExists;function yd(e,t,r,n){n=typeof r=="function"?r:n,r=typeof r=="function"?!1:r,gc(t,(i,o)=>{if(i)return n(i);if(o)return n(null);hd(e,t,(s,a)=>{if(s)return n(s);e=a.toDst,pd(a.toCwd,r,(c,d)=>{if(c)return n(c);let f=vc.dirname(t);gc(f,(p,y)=>{if(p)return n(p);if(y)return rt.symlink(e,t,d,n);ld(f,m=>{if(m)return n(m);rt.symlink(e,t,d,n)})})})})})}function gd(e,t,r){if(rt.existsSync(t))return;let i=dd(e,t);e=i.toDst,r=md(i.toCwd,r);let o=vc.dirname(t);return rt.existsSync(o)||fd(o),rt.symlinkSync(e,t,r)}xc.exports={createSymlink:ud(yd),createSymlinkSync:gd}});var Cc=v((O1,_c)=>{"use strict";var wr=sc(),Sr=fc(),xr=Ec();_c.exports={createFile:wr.createFile,createFileSync:wr.createFileSync,ensureFile:wr.createFile,ensureFileSync:wr.createFileSync,createLink:Sr.createLink,createLinkSync:Sr.createLinkSync,ensureLink:Sr.createLink,ensureLinkSync:Sr.createLinkSync,createSymlink:xr.createSymlink,createSymlinkSync:xr.createSymlinkSync,ensureSymlink:xr.createSymlink,ensureSymlinkSync:xr.createSymlinkSync}});var Er=v((R1,kc)=>{function vd(e,{EOL:t=`
|
|
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/,"")}kc.exports={stringify:vd,stripBom:bd}});var Ac=v((P1,Pc)=>{var nt;try{nt=ee()}catch{nt=require("fs")}var _r=ue(),{stringify:Oc,stripBom:Rc}=Er();async function wd(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||nt,n="throws"in t?t.throws:!0,i=await _r.fromCallback(r.readFile)(e,t);i=Rc(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=_r.fromPromise(wd);function xd(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||nt,n="throws"in t?t.throws:!0;try{let i=r.readFileSync(e,t);return i=Rc(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||nt,i=Oc(t,r);await _r.fromCallback(n.writeFile)(e,i,r)}var _d=_r.fromPromise(Ed);function Cd(e,t,r={}){let n=r.fs||nt,i=Oc(t,r);return n.writeFileSync(e,i,r)}var kd={readFile:Sd,readFileSync:xd,writeFile:_d,writeFileSync:Cd};Pc.exports=kd});var Mc=v((A1,qc)=>{"use strict";var Cr=Ac();qc.exports={readJson:Cr.readFile,readJsonSync:Cr.readFileSync,writeJson:Cr.writeFile,writeJsonSync:Cr.writeFileSync}});var kr=v((q1,Ic)=>{"use strict";var Od=ue().fromCallback,Pt=ee(),Fc=require("path"),Tc=xe(),Rd=Ae().pathExists;function Pd(e,t,r,n){typeof r=="function"&&(n=r,r="utf8");let i=Fc.dirname(e);Rd(i,(o,s)=>{if(o)return n(o);if(s)return Pt.writeFile(e,t,r,n);Tc.mkdirs(i,a=>{if(a)return n(a);Pt.writeFile(e,t,r,n)})})}function Ad(e,...t){let r=Fc.dirname(e);if(Pt.existsSync(r))return Pt.writeFileSync(e,...t);Tc.mkdirsSync(r),Pt.writeFileSync(e,...t)}Ic.exports={outputFile:Od(Pd),outputFileSync:Ad}});var Nc=v((M1,Dc)=>{"use strict";var{stringify:qd}=Er(),{outputFile:Md}=kr();async function Fd(e,t,r={}){let n=qd(t,r);await Md(e,n,r)}Dc.exports=Fd});var Bc=v((F1,jc)=>{"use strict";var{stringify:Td}=Er(),{outputFileSync:Id}=kr();function Dd(e,t,r){let n=Td(t,r);Id(e,n,r)}jc.exports=Dd});var $c=v((T1,Lc)=>{"use strict";var Nd=ue().fromPromise,se=Mc();se.outputJson=Nd(Nc());se.outputJsonSync=Bc();se.outputJSON=se.outputJson;se.outputJSONSync=se.outputJsonSync;se.writeJSON=se.writeJson;se.writeJSONSync=se.writeJsonSync;se.readJSON=se.readJson;se.readJSONSync=se.readJsonSync;Lc.exports=se});var Wc=v((I1,Jc)=>{"use strict";var Gc=ee(),jd=require("path"),Bd=zn().copySync,zc=Ot().removeSync,Ld=xe().mkdirpSync,Uc=St();function $d(e,t,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:i}=Uc.checkPathsSync(e,t,"move");return Uc.checkParentPathsSync(e,i,t,"move"),Ld(jd.dirname(t)),Ud(e,t,n)}function Ud(e,t,r){if(r)return zc(t),Hc(e,t,r);if(Gc.existsSync(t))throw new Error("dest already exists.");return Hc(e,t,r)}function Hc(e,t,r){try{Gc.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}),zc(e)}Jc.exports=$d});var Yc=v((D1,Vc)=>{"use strict";Vc.exports={moveSync:Wc()}});var eu=v((N1,Zc)=>{"use strict";var Gd=ee(),zd=require("path"),Jd=Wn().copy,Qc=Ot().remove,Wd=xe().mkdirp,Vd=Ae().pathExists,Xc=St();function Yd(e,t,r,n){typeof r=="function"&&(n=r,r={});let i=r.overwrite||r.clobber||!1;Xc.checkPaths(e,t,"move",(o,s)=>{if(o)return n(o);let{srcStat:a}=s;Xc.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 Qc(t,i=>i?n(i):Kc(e,t,r,n));Vd(t,(i,o)=>i?n(i):o?n(new Error("dest already exists.")):Kc(e,t,r,n))}function Kc(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):Qc(e,n))}Zc.exports=Yd});var ru=v((j1,tu)=>{"use strict";var Qd=ue().fromCallback;tu.exports={move:Qd(eu())}});var it=v((B1,Yn)=>{"use strict";Yn.exports={...wt(),...zn(),...Wn(),...rc(),...Cc(),...$c(),...xe(),...Yc(),...ru(),...kr(),...Ae(),...Ot()};var nu=require("fs");Object.getOwnPropertyDescriptor(nu,"promises")&&Object.defineProperty(Yn.exports,"promises",{get(){return nu.promises}})});var fu=v((U1,lu)=>{"use strict";lu.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((H1,du)=>{var At=fu(),hu={};for(let e of Object.keys(At))hu[At[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"]}};du.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=hu[e];if(t)return t;let r=1/0,n;for(let i of Object.keys(At)){let o=At[i],s=Zd(e,o);s<r&&(r=s,n=i)}return n};E.keyword.rgb=function(e){return At[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 mu=v((G1,pu)=>{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}pu.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 gu=v((z1,yu)=>{var Qn=Kn(),ip=mu(),ot={},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=>{ot[e]={},Object.defineProperty(ot[e],"channels",{value:Qn[e].channels}),Object.defineProperty(ot[e],"labels",{value:Qn[e].labels});let t=ip(e);Object.keys(t).forEach(n=>{let i=t[n];ot[e][n]=ap(i),ot[e][n].raw=sp(i)})});yu.exports=ot});var Eu=v((J1,xu)=>{"use strict";var vu=(e,t)=>(...r)=>`\x1B[${e(...r)+t}m`,bu=(e,t)=>(...r)=>{let n=e(...r);return`\x1B[${38+t};5;${n}m`},wu=(e,t)=>(...r)=>{let n=e(...r);return`\x1B[${38+t};2;${n[0]};${n[1]};${n[2]}m`},Pr=e=>e,Su=(e,t,r)=>[e,t,r],st=(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,at=(e,t,r,n)=>{Zn===void 0&&(Zn=gu());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",st(t.color,"ansi",()=>at(vu,"ansi16",Pr,!1)),st(t.color,"ansi256",()=>at(bu,"ansi256",Pr,!1)),st(t.color,"ansi16m",()=>at(wu,"rgb",Su,!1)),st(t.bgColor,"ansi",()=>at(vu,"ansi16",Pr,!0)),st(t.bgColor,"ansi256",()=>at(bu,"ansi256",Pr,!0)),st(t.bgColor,"ansi16m",()=>at(wu,"rgb",Su,!0)),t}Object.defineProperty(xu,"exports",{enumerable:!0,get:cp})});var Cu=v((W1,_u)=>{"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
|
|
15
|
+
`:`
|
|
16
|
+
`)+r,i=n+1,n=e.indexOf(`
|
|
17
|
+
`,i)}while(n!==-1);return o+=e.substr(i),o};_u.exports={stringReplaceAll:up,stringEncaseCRLFWithFirstIndex:lp}});var Au=v((V1,Pu)=>{"use strict";var fp=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,ku=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,hp=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,dp=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,pp=new Map([["n",`
|
|
18
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function Ru(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)):pp.get(e)||e}function mp(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(hp))r.push(i[2].replace(dp,(a,c,d)=>c?Ru(c):d));else throw new Error(`Invalid Chalk template style argument: ${o} (in style '${e}')`)}return r}function yp(e){ku.lastIndex=0;let t=[],r;for(;(r=ku.exec(e))!==null;){let n=r[1];if(r[2]){let i=mp(n,r[2]);t.push([n].concat(i))}else t.push([n])}return t}function Ou(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}Pu.exports=(e,t)=>{let r=[],n=[],i=[];if(t.replace(fp,(o,s,a,c,d,f)=>{if(s)i.push(Ru(s));else if(c){let p=i.join("");i=[],n.push(r.length===0?p:Ou(e,r)(p)),r.push({inverse:a,styles:yp(c)})}else if(d){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(Ou(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 Nu=v((Y1,Du)=>{"use strict";var qt=Eu(),{stdout:ti,stderr:ri}=on(),{stringReplaceAll:gp,stringEncaseCRLFWithFirstIndex:vp}=Cu(),{isArray:Ar}=Array,Mu=["ansi","ansi","ansi256","ansi16m"],ct=Object.create(null),bp=(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=ti?ti.level:0;e.level=t.level===void 0?r:t.level},ni=class{constructor(t){return Fu(t)}},Fu=e=>{let t={};return bp(t,e),t.template=(...r)=>Iu(t.template,...r),Object.setPrototypeOf(t,qr.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=ni,t.template};function qr(e){return Fu(e)}for(let[e,t]of Object.entries(qt))ct[e]={get(){let r=Mr(this,ii(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:r}),r}};ct.visible={get(){let e=Mr(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};var Tu=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let e of Tu)ct[e]={get(){let{level:t}=this;return function(...r){let n=ii(qt.color[Mu[t]][e](...r),qt.color.close,this._styler);return Mr(this,n,this._isEmpty)}}};for(let e of Tu){let t="bg"+e[0].toUpperCase()+e.slice(1);ct[t]={get(){let{level:r}=this;return function(...n){let i=ii(qt.bgColor[Mu[r]][e](...n),qt.bgColor.close,this._styler);return Mr(this,i,this._isEmpty)}}}}var wp=Object.defineProperties(()=>{},{...ct,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),ii=(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}},Mr=(e,t,r)=>{let n=(...i)=>Ar(i[0])&&Ar(i[0].raw)?qu(n,Iu(n,...i)):qu(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,wp),n._generator=e,n._styler=t,n._isEmpty=r,n},qu=(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=gp(t,r.close,r.open),r=r.parent;let o=t.indexOf(`
|
|
19
|
+
`);return o!==-1&&(t=vp(t,i,n,o)),n+t+i},ei,Iu=(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=Au()),ei(e,i.join(""))};Object.defineProperties(qr.prototype,ct);var Fr=qr();Fr.supportsColor=ti;Fr.stderr=qr({level:ri?ri.level:0});Fr.stderr.supportsColor=ri;Du.exports=Fr});var ju=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,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=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(_e,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=Tt(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=U(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)),_(Ce(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=[_(Ce(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 _e(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"},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){N(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 N(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 Ce(u){return Math.round(parseFloat(u)*255).toString(16)}function Fe(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 Tt(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:Fe(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:Fe(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 zu=v((X1,Gu)=>{var Mt=ju(),Uu={r:256,g:256,b:256,a:1},Hu={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,Uu);s.push(Mt(c))}return s}function Bu(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,Hu);c.push(Mt(p))}return c}function Lu(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 $u(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 Mt(a)}var ut=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?Mt(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:Mt(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 ut(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 ut(t.concat(r.reverse()))}rgb(t){let r=Lu(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=Lu(this.stops,t),i=[];this.stops.forEach((o,s)=>{o.colorLess&&(o.color=Bu(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=Bu(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 $u(this.stops,t,"toRgb",Uu)}hsvAt(t){return $u(this.stops,t,"toHsv",Hu)}};Gu.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 ut(e)}});var Xu=v((K1,Tr)=>{"use strict";var Wu=Nu(),Sp=zu(),Ju=/\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 Vu=(e,t,r)=>t.interpolation.toLowerCase()==="hsv"?e.hsv(r,t.hsvSpin.toLowerCase()):e.rgb(r);function xp(e,t,r){let n=Yu(r),i=Math.max(e.replace(Ju,"").length,t.stops.length),o=Vu(t,n,i),s="";for(let a of e)s+=a.match(Ju)?a:Wu.hex(o.shift().toHex())(a);return s}function Ep(e,t,r){let n=Yu(r),i=e.split(`
|
|
20
|
+
`),o=Math.max.apply(null,i.map(c=>c.length).concat([t.stops.length])),s=Vu(t,n,o),a=[];for(let c of i){let d=s.slice(0),f="";for(let p of c)f+=Wu.hex(d.shift().toHex())(p);a.push(f)}return a.join(`
|
|
21
|
+
`)}function Yu(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 Ft={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"}}};Tr.exports=li;for(let e in Ft)Tr.exports[e]=t=>new li(Ft[e].colors)(t,Ft[e].options),Tr.exports[e].multiline=t=>new li(Ft[e].colors).multiline(t,Ft[e].options)});function lt(e=""){return Tp?yi.default.resolve(vi.default.sync(__dirname),"../../../",e):yi.default.resolve(vi.default.sync(__dirname),"../griddo-components",e)}function Ip(){let e=gi.default.sync("jsconfig.json",{cwd:lt()});return gi.default.sync("tsconfig.json",{cwd:lt()})||e}function Dp(){let e=require(Ip());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=lt(o);return{...t,[n]:s}},{"@griddo-instance":`${lt()}/src/index.js`})}var yi,gi,vi,Tp,gy,cl=xi(()=>{"use strict";yi=D(require("node:path")),gi=D(Gr()),vi=D(ht()),Tp=__dirname.includes("node_modules"),gy=Dp()});var hl={};Cl(hl,{CXDir:()=>Up,default:()=>$p});var $e,Nr,ul,ll,Np,jp,Bp,Lp,fl,$p,Up,dl=xi(()=>{"use strict";$e=D(require("node:path")),Nr=D(ht());cl();ul=Nr.default.sync($e.default.resolve(__dirname,"../..")),ll=Nr.default.sync(__dirname),Np=$e.default.resolve(Nr.default.sync(__dirname)),jp=$e.default.resolve(ll,"caches"),Bp=lt(),Lp=$e.default.join(ul,"exports/sites"),fl={proDomain:"pro-",CXDir:{EXPORTS:"__exports",CACHE:"__caches",CX:"__cx",SSG:"__ssg",COMPONENTS:"__components",ROOT:"__root"},dirs:e=>({__caches:$e.default.join(jp,e||""),__components:Bp,__cx:ll,__exports:$e.default.join(Lp,e||""),__root:ul,__ssg:Np})},$p=fl,Up=fl.CXDir});var vl=D(require("node:fs")),jr=D(require("node:path")),bl=D(ht());var Ws=D(En()),Vs=D(cr()),Pn=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,Ws.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(Vs.default.red(`
|
|
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
|
+
\u2502 Access credentials failure \u2502
|
|
24
|
+
\u2502 Check that the login details are correct in your .env file \u2502
|
|
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)}}},ur=new Pn;var rl=D(En()),nl=D(cr()),il=D(qn());var iu=D(require("node:crypto")),Or=D(require("node:fs")),Xn=D(require("node:path")),ou=D(it()),su=Xn.default.resolve(__dirname,"./../apiCache"),L1=`${su}/siteHash.json`;function au(e){let t=iu.default.createHash("sha256");return t.update(JSON.stringify(e)),`${su}/${t.digest("hex")}`}function cu(e,t){let r=typeof t=="string"?t:JSON.stringify(t),n=au(e),i=Xn.default.dirname(n);Or.default.existsSync(i)||Or.default.mkdirSync(i,{recursive:!0}),Or.default.writeFileSync(n,r,"utf8")}function uu(e){try{let t=au(e);return ou.default.readJSONSync(t,{encoding:"utf-8"})}catch{return null}}var _p=D(cr()),Ku=D(qn()),Qu=D(it()),Cp=D(Xu()),fi=D(ht());Ku.default.config();var Q1=!!process.env.GRIDDO_DEBUG_LOGS&&!!JSON.parse(process.env.GRIDDO_DEBUG_LOGS),kp=!!process.env.GRIDDO_BUILD_LOGS&&!!JSON.parse(process.env.GRIDDO_BUILD_LOGS)||!!process.env.LOGS&&!!JSON.parse(process.env.LOGS),Op=fi.default.sync(__dirname),Z1=fi.default.sync();function Zu(e){let t=[];return Qu.default.readdirSync(e).forEach(n=>{let i=`${e}/${n}`;t.push(i)}),t}function hi(e){kp&&console.info(e.replace(/(\s)\s+/g,"$1"))}function el(e){return new Promise(t=>setTimeout(t,e))}function di(e,t=3){return(e/1e3).toFixed(t)}function pi(e){return"site"in e&&e.site?e?.site:void 0}il.default.config();var{env:{RETRY_WAIT_SECONDS:Rp="4",RETRY_ATTEMPTS:tl="4"}}=process;async function mi(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=uu(c);if(f){let p=pi(f),y=p?`site: ${p}`:"",m=di(new Date().getTime()-d.getTime());return hi(`${t} (cache) ${y} ${n} - ${m}s ${r}`),f}}try{let d=new Date,{data:f}=await(0,rl.default)({url:n,method:t,headers:Object.assign({},a,ur.headers),data:i}),p=pi(f),y=p?`site: ${p}`:"",m=di(new Date().getTime()-d.getTime());return hi(`${t} (fetch) ${y} ${n} - ${m}s ${r}`),cu(c,f),f}catch(d){let f=d;return f.response?.status===404?null:(s>parseInt(tl)&&(console.log(`
|
|
27
|
+
Max attempts ${tl} reached
|
|
28
|
+
--------------------------------------
|
|
29
|
+
- ${t.toUpperCase()} ${n}
|
|
30
|
+
- BODY: ${JSON.stringify(i)}
|
|
31
|
+
- HEADERS: ${JSON.stringify(a)}
|
|
32
|
+
- RESPONSE: ${f.response?.status,JSON.stringify(f.response?.data)}
|
|
33
|
+
--------------------------------------
|
|
34
|
+
`),process.exit(1)),f.response||(console.log("Unknown error occurred"),console.log(JSON.stringify(f,null,2)),process.exit(1)),Pp(f,{callInfo:{endpoint:n,body:i}}),console.warn(`Waiting for retry: ${t}`,n),await el(parseInt(Rp)*1e3),mi({endpoint:n,body:i,headers:a,cacheKey:o,attempt:s+1},t,r))}}async function ol(e){return await mi(e,"get")}async function sl(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 mi(e,"post",i||"")}function Pp(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
|
+
`),p=r?`Code: ${s} - ${a}
|
|
36
|
+
Response: ${JSON.stringify(c)}`:"",y=`${n}
|
|
37
|
+
${i}`;console.warn(nl.default.bold.red(`
|
|
38
|
+
=============
|
|
39
|
+
|
|
40
|
+
{ Call info }
|
|
41
|
+
${f}
|
|
42
|
+
|
|
43
|
+
{ API Response }
|
|
44
|
+
${p}
|
|
45
|
+
|
|
46
|
+
{ Error details }
|
|
47
|
+
${y}
|
|
48
|
+
|
|
49
|
+
=============
|
|
50
|
+
`))}var Ap=process.env.API_URL,qp={GET_ALL:`${Ap}/domains`},Ir=class{static async getAll(){let{GET_ALL:t}=qp;return await ol({endpoint:t})}};async function al(){await ur.login();let e=await Ir.getAll();return Mp(e)}function Mp(e){let t=e.filter(({slug:r})=>!!r).map(({slug:r})=>r.replace("/",""));return[...new Set(t)]}var wi=D(require("node:fs")),Si=D(require("node:path"));var pl=D(require("node:fs/promises")),bi=D(require("node:path")),ml=D(it());var Hp=D(it());var Fp=D(it());function Dr(){try{return(dl(),kl(hl)).default}catch{console.log("Error while reading configuration file"),process.exit(1)}}async function*yl(e){let t=bi.default.resolve(e),r=Zu(t).filter(n=>bi.default.extname(n)===".json");for(let n of r)try{let i=await pl.default.stat(n),o=await ml.default.readJSON(n,{encoding:"utf-8"});o.size=i.size/1024,o.path&&(yield o)}catch(i){console.error(`Error: The file ${n} doesn't exist`,i)}}var Gp=process.env.API_URL;async function zp(e){let{title:t,description:r,image:n,pageId:i,languageId:o,siteId:s,url:a,content:c,template:d}=e;return await sl({endpoint:`${Gp}/search`,body:{title:t,description:r,image:n,pageId:i,languageId:o,siteId:s,url:a,template:d,content:Jp(c)}})}function Jp(e){let t=Wp(["meta","link","style","script","noscript","nav","header","footer"],e),r=Vp(t);return Yp(r)}function Wp(e,t){let r=t;return e.forEach(n=>{r=r.replace(new RegExp(`<${n}.*?>.*?</${n}>`,"gis")," ").replace(new RegExp(`(<${n}([^>]+)>)`,"gis")," ")}),r}function Vp(e){return e.replace(/(<([^>]+)>)/gis," ")}function Yp(e){return e.replace(/\s+/g," ")}async function gl(e,t){let r=Dr(),{__caches:n}=r.dirs(t),i=Si.default.join(n,"store");if(!wi.default.existsSync(i)){console.log(`Skipping uploading content to the search endpoint for the domain ${t}, it has not exported sites.`);return}let o=yl(i);for await(let s of o){let{context:{page:a,openGraph:c}}=s,{compose:d}=a.fullPath,f=Si.default.resolve(`${e}/${d}/index.html`),p=wi.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 zp(y)}}var Xp=JSON.parse(process.env.GRIDDO_SEARCH_FEATURE||"false"),Kp=bl.default.sync(jr.default.resolve(__dirname,"../..")),Qp=jr.default.resolve(Kp,"exports/sites");async function Zp(){if(!Xp)return;let e=await al();for(let t of e){let r=jr.default.resolve(Qp,t,"dist");vl.default.existsSync(r)&&await gl(r,t)}}Zp().catch(e=>{console.error("Error",e?.stdout?.toString()||e),process.exit(1)});
|
|
@@ -14,7 +14,6 @@ import {
|
|
|
14
14
|
removeDirsSync,
|
|
15
15
|
removeVirtualPagesFromStore,
|
|
16
16
|
} from "../../utils/folders";
|
|
17
|
-
import { uploadSearchContentToAPI } from "../../utils/searches";
|
|
18
17
|
import {
|
|
19
18
|
doLifeCycle,
|
|
20
19
|
logBox,
|
|
@@ -42,9 +41,6 @@ async function runGatsbyAdapter() {
|
|
|
42
41
|
|
|
43
42
|
const assetPrefix = getGatsbyAssetPrefixSlug(domain);
|
|
44
43
|
const needsAssetPrefix = !!assetPrefix && assetPrefix !== "";
|
|
45
|
-
const shouldUploadSearchData = JSON.parse(
|
|
46
|
-
process.env.GRIDDO_SEARCH_FEATURE || "false"
|
|
47
|
-
);
|
|
48
44
|
|
|
49
45
|
/*
|
|
50
46
|
* Clean LifeCycle.
|
|
@@ -162,7 +158,6 @@ async function runGatsbyAdapter() {
|
|
|
162
158
|
() => generateBuildReport(),
|
|
163
159
|
() => RobotsService.writeFiles(domain),
|
|
164
160
|
() => generateSitemaps(),
|
|
165
|
-
() => (shouldUploadSearchData ? uploadSearchContentToAPI() : undefined),
|
|
166
161
|
() => pause("Meta LifeCycle"),
|
|
167
162
|
],
|
|
168
163
|
});
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import fs from "node:fs";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
|
|
4
|
+
import pkgDir from "pkg-dir";
|
|
5
|
+
|
|
6
|
+
import { getInstanceDomains } from "./utils/domains";
|
|
7
|
+
import { uploadRenderedSearchContentToAPI } from "./utils/searches";
|
|
8
|
+
|
|
9
|
+
const doSearch = JSON.parse(process.env.GRIDDO_SEARCH_FEATURE || "false");
|
|
10
|
+
|
|
11
|
+
// Where we are going to find export folders
|
|
12
|
+
const execBasePath = pkgDir.sync(path.resolve(__dirname, "../.."))!;
|
|
13
|
+
|
|
14
|
+
// Where we are going to find archived exports
|
|
15
|
+
const exportArchiveBasePath = path.resolve(execBasePath, "exports/sites");
|
|
16
|
+
|
|
17
|
+
async function main() {
|
|
18
|
+
// Feature not enabled
|
|
19
|
+
if (!doSearch) {
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const domains = await getInstanceDomains();
|
|
24
|
+
|
|
25
|
+
for (const domain of domains) {
|
|
26
|
+
const distDomainPath = path.resolve(exportArchiveBasePath, domain, "dist");
|
|
27
|
+
|
|
28
|
+
// If the export/sites/domain has not exported sites, do not upload search content.
|
|
29
|
+
if (fs.existsSync(distDomainPath)) {
|
|
30
|
+
await uploadRenderedSearchContentToAPI(distDomainPath, domain);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
main().catch((err) => {
|
|
36
|
+
console.error("Error", err?.stdout?.toString() || err);
|
|
37
|
+
process.exit(1);
|
|
38
|
+
});
|
package/exporter/utils/api.ts
CHANGED
|
@@ -12,7 +12,7 @@ import axios from "axios";
|
|
|
12
12
|
import chalk from "chalk";
|
|
13
13
|
import dotenv from "dotenv";
|
|
14
14
|
|
|
15
|
-
import {
|
|
15
|
+
import { saveCache, searchCacheData } from "./cache";
|
|
16
16
|
import { delay, getSafeSiteId, logInfo, msToSec } from "./shared";
|
|
17
17
|
import { AuthService } from "../services/auth";
|
|
18
18
|
|
|
@@ -210,4 +210,4 @@ ${errorDetailsStr}
|
|
|
210
210
|
);
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
-
export { getApi as get,
|
|
213
|
+
export { getApi as get, postApi as post, putApi as put };
|
|
@@ -6,6 +6,7 @@ import path from "node:path";
|
|
|
6
6
|
|
|
7
7
|
import { post } from "./api";
|
|
8
8
|
import { getBuildPages } from "./store";
|
|
9
|
+
import { getConfig } from "./temp-utils";
|
|
9
10
|
|
|
10
11
|
// Envs
|
|
11
12
|
const API_URL = process.env.API_URL as string;
|
|
@@ -106,21 +107,36 @@ function stripSpaces(str: string) {
|
|
|
106
107
|
* Function that search in the `/public` dir the content info of the pages and
|
|
107
108
|
* send it to the search table in the ddbb using the API.
|
|
108
109
|
*/
|
|
109
|
-
async function
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
async function uploadRenderedSearchContentToAPI(
|
|
111
|
+
distDomainPath: string,
|
|
112
|
+
domain: string
|
|
113
|
+
) {
|
|
114
|
+
const config = getConfig();
|
|
115
|
+
const { __caches } = config.dirs(domain);
|
|
116
|
+
|
|
117
|
+
// Extraemos el path de la carpeta store dentro de un dominio
|
|
118
|
+
const storeFolder = path.join(__caches, "store");
|
|
119
|
+
|
|
120
|
+
// Este caso sería que el dominio existe en la instancia pero no hay sites
|
|
121
|
+
// renderizardos bajo el mismo. Por lo que `store` no existe.
|
|
122
|
+
if (!fs.existsSync(storeFolder)) {
|
|
123
|
+
console.log(
|
|
124
|
+
`Skipping uploading content to the search endpoint for the domain ${domain}, it has not exported sites.`
|
|
125
|
+
);
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
112
128
|
|
|
113
|
-
|
|
129
|
+
// Obtenemos las páginas del store
|
|
130
|
+
const storePages = getBuildPages(storeFolder);
|
|
131
|
+
|
|
132
|
+
for await (const store of storePages) {
|
|
114
133
|
const {
|
|
115
134
|
context: { page, openGraph },
|
|
116
135
|
} = store;
|
|
117
136
|
|
|
118
137
|
const { compose } = page.fullPath;
|
|
119
138
|
|
|
120
|
-
const contextPath = path.resolve(
|
|
121
|
-
__dirname,
|
|
122
|
-
`../dist/${compose}/index.html`
|
|
123
|
-
);
|
|
139
|
+
const contextPath = path.resolve(`${distDomainPath}/${compose}/index.html`);
|
|
124
140
|
|
|
125
141
|
const content = fs.readFileSync(contextPath).toString();
|
|
126
142
|
|
|
@@ -140,4 +156,4 @@ async function uploadSearchContentToAPI() {
|
|
|
140
156
|
}
|
|
141
157
|
}
|
|
142
158
|
|
|
143
|
-
export { postSearchInfo,
|
|
159
|
+
export { postSearchInfo, uploadRenderedSearchContentToAPI };
|