@griddo/cx 10.6.5 → 10.6.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,72 +1,68 @@
1
- "use strict";var By=Object.create;var pn=Object.defineProperty;var Uy=Object.getOwnPropertyDescriptor;var Xy=Object.getOwnPropertyNames;var Hy=Object.getPrototypeOf,Wy=Object.prototype.hasOwnProperty;var ou=(e,t)=>()=>(e&&(t=e(e=0)),t);var v=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Yy=(e,t)=>{for(var r in t)pn(e,r,{get:t[r],enumerable:!0})},au=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Xy(t))!Wy.call(e,i)&&i!==r&&pn(e,i,{get:()=>t[i],enumerable:!(n=Uy(t,i))||n.enumerable});return e};var T=(e,t,r)=>(r=e!=null?By(Hy(e)):{},au(t||!e||!e.__esModule?pn(r,"default",{value:e,enumerable:!0}):r,e)),Vy=e=>au(pn({},"__esModule",{value:!0}),e);var Ot=v((aw,Qi)=>{var zy=require("fs"),Jy=require("path");function su(e){console.log(`[dotenv][DEBUG] ${e}`)}var Ky=`
2
- `,Qy=/^\s*([\w.-]+)\s*=\s*(.*)?\s*$/,Zy=/\\n/g,eg=/\n|\r|\r\n/;function uu(e,t){let r=!!(t&&t.debug),n={};return e.toString().split(eg).forEach(function(i,o){let a=i.match(Qy);if(a!=null){let s=a[1],c=a[2]||"",d=c.length-1,l=c[0]==='"'&&c[d]==='"';c[0]==="'"&&c[d]==="'"||l?(c=c.substring(1,d),l&&(c=c.replace(Zy,Ky))):c=c.trim(),n[s]=c}else r&&su(`did not match key and value when parsing line ${o+1}: ${i}`)}),n}function tg(e){let t=Jy.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=uu(zy.readFileSync(t,{encoding:r}),{debug:n});return Object.keys(i).forEach(function(o){Object.prototype.hasOwnProperty.call(process.env,o)?n&&su(`"${o}" is already defined in \`process.env\` and will not be overwritten`):process.env[o]=i[o]}),{parsed:i}}catch(i){return{error:i}}}Qi.exports.config=tg;Qi.exports.parse=uu});var Ae=v(Zi=>{"use strict";Zi.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})};Zi.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 lu=v((uw,cu)=>{var gt=require("constants"),rg=process.cwd,hn=null,ng=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return hn||(hn=rg.call(process)),hn};try{process.cwd()}catch{}typeof process.chdir=="function"&&(eo=process.chdir,process.chdir=function(e){hn=null,eo.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,eo));var eo;cu.exports=ig;function ig(e){gt.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=a(e.chownSync),e.fchownSync=a(e.fchownSync),e.lchownSync=a(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=s(e.stat),e.fstat=s(e.fstat),e.lstat=s(e.lstat),e.statSync=c(e.statSync),e.fstatSync=c(e.fstatSync),e.lstatSync=c(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(l,p,m){m&&process.nextTick(m)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(l,p,m,h){h&&process.nextTick(h)},e.lchownSync=function(){}),ng==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(l){function p(m,h,_){var b=Date.now(),w=0;l(m,h,function I(F){if(F&&(F.code==="EACCES"||F.code==="EPERM")&&Date.now()-b<6e4){setTimeout(function(){e.stat(h,function(P,L){P&&P.code==="ENOENT"?l(m,h,I):_(F)})},w),w<100&&(w+=10);return}_&&_(F)})}return Object.setPrototypeOf&&Object.setPrototypeOf(p,l),p}(e.rename)),e.read=typeof e.read!="function"?e.read:function(l){function p(m,h,_,b,w,I){var F;if(I&&typeof I=="function"){var P=0;F=function(L,K,se){if(L&&L.code==="EAGAIN"&&P<10)return P++,l.call(e,m,h,_,b,w,F);I.apply(this,arguments)}}return l.call(e,m,h,_,b,w,F)}return Object.setPrototypeOf&&Object.setPrototypeOf(p,l),p}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(l){return function(p,m,h,_,b){for(var w=0;;)try{return l.call(e,p,m,h,_,b)}catch(I){if(I.code==="EAGAIN"&&w<10){w++;continue}throw I}}}(e.readSync);function t(l){l.lchmod=function(p,m,h){l.open(p,gt.O_WRONLY|gt.O_SYMLINK,m,function(_,b){if(_){h&&h(_);return}l.fchmod(b,m,function(w){l.close(b,function(I){h&&h(w||I)})})})},l.lchmodSync=function(p,m){var h=l.openSync(p,gt.O_WRONLY|gt.O_SYMLINK,m),_=!0,b;try{b=l.fchmodSync(h,m),_=!1}finally{if(_)try{l.closeSync(h)}catch{}else l.closeSync(h)}return b}}function r(l){gt.hasOwnProperty("O_SYMLINK")&&l.futimes?(l.lutimes=function(p,m,h,_){l.open(p,gt.O_SYMLINK,function(b,w){if(b){_&&_(b);return}l.futimes(w,m,h,function(I){l.close(w,function(F){_&&_(I||F)})})})},l.lutimesSync=function(p,m,h){var _=l.openSync(p,gt.O_SYMLINK),b,w=!0;try{b=l.futimesSync(_,m,h),w=!1}finally{if(w)try{l.closeSync(_)}catch{}else l.closeSync(_)}return b}):l.futimes&&(l.lutimes=function(p,m,h,_){_&&process.nextTick(_)},l.lutimesSync=function(){})}function n(l){return l&&function(p,m,h){return l.call(e,p,m,function(_){d(_)&&(_=null),h&&h.apply(this,arguments)})}}function i(l){return l&&function(p,m){try{return l.call(e,p,m)}catch(h){if(!d(h))throw h}}}function o(l){return l&&function(p,m,h,_){return l.call(e,p,m,h,function(b){d(b)&&(b=null),_&&_.apply(this,arguments)})}}function a(l){return l&&function(p,m,h){try{return l.call(e,p,m,h)}catch(_){if(!d(_))throw _}}}function s(l){return l&&function(p,m,h){typeof m=="function"&&(h=m,m=null);function _(b,w){w&&(w.uid<0&&(w.uid+=4294967296),w.gid<0&&(w.gid+=4294967296)),h&&h.apply(this,arguments)}return m?l.call(e,p,m,_):l.call(e,p,_)}}function c(l){return l&&function(p,m){var h=m?l.call(e,p,m):l.call(e,p);return h&&(h.uid<0&&(h.uid+=4294967296),h.gid<0&&(h.gid+=4294967296)),h}}function d(l){if(!l||l.code==="ENOSYS")return!0;var p=!process.getuid||process.getuid()!==0;return!!(p&&(l.code==="EINVAL"||l.code==="EPERM"))}}});var pu=v((cw,du)=>{var fu=require("stream").Stream;du.exports=og;function og(e){return{ReadStream:t,WriteStream:r};function t(n,i){if(!(this instanceof t))return new t(n,i);fu.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 a=Object.keys(i),s=0,c=a.length;s<c;s++){var d=a[s];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(l,p){if(l){o.emit("error",l),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);fu.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),a=0,s=o.length;a<s;a++){var c=o[a];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 mu=v((lw,hu)=>{"use strict";hu.exports=sg;var ag=Object.getPrototypeOf||function(e){return e.__proto__};function sg(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:ag(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}});var be=v((fw,no)=>{var re=require("fs"),ug=lu(),cg=pu(),lg=mu(),mn=require("util"),ye,gn;typeof Symbol=="function"&&typeof Symbol.for=="function"?(ye=Symbol.for("graceful-fs.queue"),gn=Symbol.for("graceful-fs.previous")):(ye="___graceful-fs.queue",gn="___graceful-fs.previous");function fg(){}function vu(e,t){Object.defineProperty(e,ye,{get:function(){return t}})}var It=fg;mn.debuglog?It=mn.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(It=function(){var e=mn.format.apply(mn,arguments);e="GFS4: "+e.split(/\n/).join(`
3
- GFS4: `),console.error(e)});re[ye]||(yu=global[ye]||[],vu(re,yu),re.close=function(e){function t(r,n){return e.call(re,r,function(i){i||gu(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,gn,{value:e}),t}(re.close),re.closeSync=function(e){function t(r){e.apply(re,arguments),gu()}return Object.defineProperty(t,gn,{value:e}),t}(re.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){It(re[ye]),require("assert").equal(re[ye].length,0)}));var yu;global[ye]||vu(global,re[ye]);no.exports=to(lg(re));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!re.__patched&&(no.exports=to(re),re.__patched=!0);function to(e){ug(e),e.gracefulify=to,e.createReadStream=K,e.createWriteStream=se;var t=e.readFile;e.readFile=r;function r(x,q,M){return typeof q=="function"&&(M=q,q=null),Q(x,q,M);function Q(U,W,S,H){return t(U,W,function(k){k&&(k.code==="EMFILE"||k.code==="ENFILE")?Vt([Q,[U,W,S],k,H||Date.now(),Date.now()]):typeof S=="function"&&S.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=i;function i(x,q,M,Q){return typeof M=="function"&&(Q=M,M=null),U(x,q,M,Q);function U(W,S,H,k,R){return n(W,S,H,function(j){j&&(j.code==="EMFILE"||j.code==="ENFILE")?Vt([U,[W,S,H,k],j,R||Date.now(),Date.now()]):typeof k=="function"&&k.apply(this,arguments)})}}var o=e.appendFile;o&&(e.appendFile=a);function a(x,q,M,Q){return typeof M=="function"&&(Q=M,M=null),U(x,q,M,Q);function U(W,S,H,k,R){return o(W,S,H,function(j){j&&(j.code==="EMFILE"||j.code==="ENFILE")?Vt([U,[W,S,H,k],j,R||Date.now(),Date.now()]):typeof k=="function"&&k.apply(this,arguments)})}}var s=e.copyFile;s&&(e.copyFile=c);function c(x,q,M,Q){return typeof M=="function"&&(Q=M,M=0),U(x,q,M,Q);function U(W,S,H,k,R){return s(W,S,H,function(j){j&&(j.code==="EMFILE"||j.code==="ENFILE")?Vt([U,[W,S,H,k],j,R||Date.now(),Date.now()]):typeof k=="function"&&k.apply(this,arguments)})}}var d=e.readdir;e.readdir=p;var l=/^v[0-5]\./;function p(x,q,M){typeof q=="function"&&(M=q,q=null);var Q=l.test(process.version)?function(S,H,k,R){return d(S,U(S,H,k,R))}:function(S,H,k,R){return d(S,H,U(S,H,k,R))};return Q(x,q,M);function U(W,S,H,k){return function(R,j){R&&(R.code==="EMFILE"||R.code==="ENFILE")?Vt([Q,[W,S,H],R,k||Date.now(),Date.now()]):(j&&j.sort&&j.sort(),typeof H=="function"&&H.call(this,R,j))}}}if(process.version.substr(0,4)==="v0.8"){var m=cg(e);I=m.ReadStream,P=m.WriteStream}var h=e.ReadStream;h&&(I.prototype=Object.create(h.prototype),I.prototype.open=F);var _=e.WriteStream;_&&(P.prototype=Object.create(_.prototype),P.prototype.open=L),Object.defineProperty(e,"ReadStream",{get:function(){return I},set:function(x){I=x},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return P},set:function(x){P=x},enumerable:!0,configurable:!0});var b=I;Object.defineProperty(e,"FileReadStream",{get:function(){return b},set:function(x){b=x},enumerable:!0,configurable:!0});var w=P;Object.defineProperty(e,"FileWriteStream",{get:function(){return w},set:function(x){w=x},enumerable:!0,configurable:!0});function I(x,q){return this instanceof I?(h.apply(this,arguments),this):I.apply(Object.create(I.prototype),arguments)}function F(){var x=this;ce(x.path,x.flags,x.mode,function(q,M){q?(x.autoClose&&x.destroy(),x.emit("error",q)):(x.fd=M,x.emit("open",M),x.read())})}function P(x,q){return this instanceof P?(_.apply(this,arguments),this):P.apply(Object.create(P.prototype),arguments)}function L(){var x=this;ce(x.path,x.flags,x.mode,function(q,M){q?(x.destroy(),x.emit("error",q)):(x.fd=M,x.emit("open",M))})}function K(x,q){return new e.ReadStream(x,q)}function se(x,q){return new e.WriteStream(x,q)}var $e=e.open;e.open=ce;function ce(x,q,M,Q){return typeof M=="function"&&(Q=M,M=null),U(x,q,M,Q);function U(W,S,H,k,R){return $e(W,S,H,function(j,he){j&&(j.code==="EMFILE"||j.code==="ENFILE")?Vt([U,[W,S,H,k],j,R||Date.now(),Date.now()]):typeof k=="function"&&k.apply(this,arguments)})}}return e}function Vt(e){It("ENQUEUE",e[0].name,e[1]),re[ye].push(e),ro()}var yn;function gu(){for(var e=Date.now(),t=0;t<re[ye].length;++t)re[ye][t].length>2&&(re[ye][t][3]=e,re[ye][t][4]=e);ro()}function ro(){if(clearTimeout(yn),yn=void 0,re[ye].length!==0){var e=re[ye].shift(),t=e[0],r=e[1],n=e[2],i=e[3],o=e[4];if(i===void 0)It("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=6e4){It("TIMEOUT",t.name,r);var a=r.pop();typeof a=="function"&&a.call(null,n)}else{var s=Date.now()-o,c=Math.max(o-i,1),d=Math.min(c*1.2,100);s>=d?(It("RETRY",t.name,r),t.apply(null,r.concat([i]))):re[ye].push(e)}yn===void 0&&(yn=setTimeout(ro,0))}}});var wr=v(vt=>{"use strict";var _u=Ae().fromCallback,xe=be(),dg=["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 xe[e]=="function");Object.keys(xe).forEach(e=>{e!=="promises"&&(vt[e]=xe[e])});dg.forEach(e=>{vt[e]=_u(xe[e])});vt.exists=function(e,t){return typeof t=="function"?xe.exists(e,t):new Promise(r=>xe.exists(e,r))};vt.read=function(e,t,r,n,i,o){return typeof o=="function"?xe.read(e,t,r,n,i,o):new Promise((a,s)=>{xe.read(e,t,r,n,i,(c,d,l)=>{if(c)return s(c);a({bytesRead:d,buffer:l})})})};vt.write=function(e,t,...r){return typeof r[r.length-1]=="function"?xe.write(e,t,...r):new Promise((n,i)=>{xe.write(e,t,...r,(o,a,s)=>{if(o)return i(o);n({bytesWritten:a,buffer:s})})})};typeof xe.writev=="function"&&(vt.writev=function(e,t,...r){return typeof r[r.length-1]=="function"?xe.writev(e,t,...r):new Promise((n,i)=>{xe.writev(e,t,...r,(o,a,s)=>{if(o)return i(o);n({bytesWritten:a,buffers:s})})})});typeof xe.realpath.native=="function"&&(vt.realpath.native=_u(xe.realpath.native))});var io=v((pw,Eu)=>{Eu.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 Cu=v((hw,oo)=>{"use strict";var zt=wr(),lt=require("path"),pg=io(),bu=pg("10.12.0"),Su=e=>{if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(lt.parse(e).root,""))){let r=new Error(`Path contains invalid characters: ${e}`);throw r.code="EINVAL",r}},wu=e=>{let t={mode:511};return typeof e=="number"&&(e={mode:e}),{...t,...e}},Du=e=>{let t=new Error(`operation not permitted, mkdir '${e}'`);return t.code="EPERM",t.errno=-4048,t.path=e,t.syscall="mkdir",t};oo.exports.makeDir=async(e,t)=>{if(Su(e),t=wu(t),bu){let n=lt.resolve(e);return zt.mkdir(n,{mode:t.mode,recursive:!0})}let r=async n=>{try{await zt.mkdir(n,t.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(lt.dirname(n)===n)throw Du(n);if(i.message.includes("null bytes"))throw i;return await r(lt.dirname(n)),r(n)}try{if(!(await zt.stat(n)).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return r(lt.resolve(e))};oo.exports.makeDirSync=(e,t)=>{if(Su(e),t=wu(t),bu){let n=lt.resolve(e);return zt.mkdirSync(n,{mode:t.mode,recursive:!0})}let r=n=>{try{zt.mkdirSync(n,t.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(lt.dirname(n)===n)throw Du(n);if(i.message.includes("null bytes"))throw i;return r(lt.dirname(n)),r(n)}try{if(!zt.statSync(n).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return r(lt.resolve(e))}});var Ke=v((mw,xu)=>{"use strict";var hg=Ae().fromPromise,{makeDir:mg,makeDirSync:ao}=Cu(),so=hg(mg);xu.exports={mkdirs:so,mkdirsSync:ao,mkdirp:so,mkdirpSync:ao,ensureDir:so,ensureDirSync:ao}});var uo=v((yw,Ru)=>{"use strict";var Jt=be();function yg(e,t,r,n){Jt.open(e,"r+",(i,o)=>{if(i)return n(i);Jt.futimes(o,t,r,a=>{Jt.close(o,s=>{n&&n(a||s)})})})}function gg(e,t,r){let n=Jt.openSync(e,"r+");return Jt.futimesSync(n,t,r),Jt.closeSync(n)}Ru.exports={utimesMillis:yg,utimesMillisSync:gg}});var Dr=v((gw,Tu)=>{"use strict";var Kt=wr(),Fe=require("path"),vg=require("util"),_g=io(),vn=_g("10.5.0"),Ou=e=>vn?Kt.stat(e,{bigint:!0}):Kt.stat(e),co=e=>vn?Kt.statSync(e,{bigint:!0}):Kt.statSync(e);function Eg(e,t){return Promise.all([Ou(e),Ou(t).catch(r=>{if(r.code==="ENOENT")return null;throw r})]).then(([r,n])=>({srcStat:r,destStat:n}))}function bg(e,t){let r,n=co(e);try{r=co(t)}catch(i){if(i.code==="ENOENT")return{srcStat:n,destStat:null};throw i}return{srcStat:n,destStat:r}}function Sg(e,t,r,n){vg.callbackify(Eg)(e,t,(i,o)=>{if(i)return n(i);let{srcStat:a,destStat:s}=o;return s&&_n(a,s)?n(new Error("Source and destination must not be the same.")):a.isDirectory()&&lo(e,t)?n(new Error(En(e,t,r))):n(null,{srcStat:a,destStat:s})})}function wg(e,t,r){let{srcStat:n,destStat:i}=bg(e,t);if(i&&_n(n,i))throw new Error("Source and destination must not be the same.");if(n.isDirectory()&&lo(e,t))throw new Error(En(e,t,r));return{srcStat:n,destStat:i}}function Iu(e,t,r,n,i){let o=Fe.resolve(Fe.dirname(e)),a=Fe.resolve(Fe.dirname(r));if(a===o||a===Fe.parse(a).root)return i();let s=(c,d)=>c?c.code==="ENOENT"?i():i(c):_n(t,d)?i(new Error(En(e,r,n))):Iu(e,t,a,n,i);vn?Kt.stat(a,{bigint:!0},s):Kt.stat(a,s)}function Pu(e,t,r,n){let i=Fe.resolve(Fe.dirname(e)),o=Fe.resolve(Fe.dirname(r));if(o===i||o===Fe.parse(o).root)return;let a;try{a=co(o)}catch(s){if(s.code==="ENOENT")return;throw s}if(_n(t,a))throw new Error(En(e,r,n));return Pu(e,t,o,n)}function _n(e,t){return!!(t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev&&(vn||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 lo(e,t){let r=Fe.resolve(e).split(Fe.sep).filter(i=>i),n=Fe.resolve(t).split(Fe.sep).filter(i=>i);return r.reduce((i,o,a)=>i&&n[a]===o,!0)}function En(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}Tu.exports={checkPaths:Sg,checkPathsSync:wg,checkParentPaths:Iu,checkParentPathsSync:Pu,isSrcSubdir:lo}});var Nu=v((vw,ku)=>{"use strict";var Se=be(),Cr=require("path"),Dg=Ke().mkdirsSync,Cg=uo().utimesMillisSync,xr=Dr();function xg(e,t,r){typeof r=="function"&&(r={filter:r}),r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
1
+ "use strict";var Wy=Object.create;var fn=Object.defineProperty;var Yy=Object.getOwnPropertyDescriptor;var Vy=Object.getOwnPropertyNames;var zy=Object.getPrototypeOf,Jy=Object.prototype.hasOwnProperty;var iu=(e,t)=>()=>(e&&(t=e(e=0)),t);var v=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ky=(e,t)=>{for(var r in t)fn(e,r,{get:t[r],enumerable:!0})},ou=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Vy(t))!Jy.call(e,i)&&i!==r&&fn(e,i,{get:()=>t[i],enumerable:!(n=Yy(t,i))||n.enumerable});return e};var P=(e,t,r)=>(r=e!=null?Wy(zy(e)):{},ou(t||!e||!e.__esModule?fn(r,"default",{value:e,enumerable:!0}):r,e)),Qy=e=>ou(fn({},"__esModule",{value:!0}),e);var It=v((hw,Zi)=>{var Zy=require("fs"),eg=require("path");function au(e){console.log(`[dotenv][DEBUG] ${e}`)}var tg=`
2
+ `,rg=/^\s*([\w.-]+)\s*=\s*(.*)?\s*$/,ng=/\\n/g,ig=/\n|\r|\r\n/;function su(e,t){let r=!!(t&&t.debug),n={};return e.toString().split(ig).forEach(function(i,o){let a=i.match(rg);if(a!=null){let s=a[1],c=a[2]||"",d=c.length-1,l=c[0]==='"'&&c[d]==='"';c[0]==="'"&&c[d]==="'"||l?(c=c.substring(1,d),l&&(c=c.replace(ng,tg))):c=c.trim(),n[s]=c}else r&&au(`did not match key and value when parsing line ${o+1}: ${i}`)}),n}function og(e){let t=eg.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=su(Zy.readFileSync(t,{encoding:r}),{debug:n});return Object.keys(i).forEach(function(o){Object.prototype.hasOwnProperty.call(process.env,o)?n&&au(`"${o}" is already defined in \`process.env\` and will not be overwritten`):process.env[o]=i[o]}),{parsed:i}}catch(i){return{error:i}}}Zi.exports.config=og;Zi.exports.parse=su});var Fe=v(eo=>{"use strict";eo.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})};eo.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 cu=v((yw,uu)=>{var vt=require("constants"),ag=process.cwd,dn=null,sg=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return dn||(dn=ag.call(process)),dn};try{process.cwd()}catch{}typeof process.chdir=="function"&&(to=process.chdir,process.chdir=function(e){dn=null,to.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,to));var to;uu.exports=ug;function ug(e){vt.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=a(e.chownSync),e.fchownSync=a(e.fchownSync),e.lchownSync=a(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=s(e.stat),e.fstat=s(e.fstat),e.lstat=s(e.lstat),e.statSync=c(e.statSync),e.fstatSync=c(e.fstatSync),e.lstatSync=c(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(l,p,m){m&&process.nextTick(m)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(l,p,m,h){h&&process.nextTick(h)},e.lchownSync=function(){}),sg==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(l){function p(m,h,_){var E=Date.now(),w=0;l(m,h,function I(F){if(F&&(F.code==="EACCES"||F.code==="EPERM")&&Date.now()-E<6e4){setTimeout(function(){e.stat(h,function(A,L){A&&A.code==="ENOENT"?l(m,h,I):_(F)})},w),w<100&&(w+=10);return}_&&_(F)})}return Object.setPrototypeOf&&Object.setPrototypeOf(p,l),p}(e.rename)),e.read=typeof e.read!="function"?e.read:function(l){function p(m,h,_,E,w,I){var F;if(I&&typeof I=="function"){var A=0;F=function(L,K,ue){if(L&&L.code==="EAGAIN"&&A<10)return A++,l.call(e,m,h,_,E,w,F);I.apply(this,arguments)}}return l.call(e,m,h,_,E,w,F)}return Object.setPrototypeOf&&Object.setPrototypeOf(p,l),p}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(l){return function(p,m,h,_,E){for(var w=0;;)try{return l.call(e,p,m,h,_,E)}catch(I){if(I.code==="EAGAIN"&&w<10){w++;continue}throw I}}}(e.readSync);function t(l){l.lchmod=function(p,m,h){l.open(p,vt.O_WRONLY|vt.O_SYMLINK,m,function(_,E){if(_){h&&h(_);return}l.fchmod(E,m,function(w){l.close(E,function(I){h&&h(w||I)})})})},l.lchmodSync=function(p,m){var h=l.openSync(p,vt.O_WRONLY|vt.O_SYMLINK,m),_=!0,E;try{E=l.fchmodSync(h,m),_=!1}finally{if(_)try{l.closeSync(h)}catch{}else l.closeSync(h)}return E}}function r(l){vt.hasOwnProperty("O_SYMLINK")&&l.futimes?(l.lutimes=function(p,m,h,_){l.open(p,vt.O_SYMLINK,function(E,w){if(E){_&&_(E);return}l.futimes(w,m,h,function(I){l.close(w,function(F){_&&_(I||F)})})})},l.lutimesSync=function(p,m,h){var _=l.openSync(p,vt.O_SYMLINK),E,w=!0;try{E=l.futimesSync(_,m,h),w=!1}finally{if(w)try{l.closeSync(_)}catch{}else l.closeSync(_)}return E}):l.futimes&&(l.lutimes=function(p,m,h,_){_&&process.nextTick(_)},l.lutimesSync=function(){})}function n(l){return l&&function(p,m,h){return l.call(e,p,m,function(_){d(_)&&(_=null),h&&h.apply(this,arguments)})}}function i(l){return l&&function(p,m){try{return l.call(e,p,m)}catch(h){if(!d(h))throw h}}}function o(l){return l&&function(p,m,h,_){return l.call(e,p,m,h,function(E){d(E)&&(E=null),_&&_.apply(this,arguments)})}}function a(l){return l&&function(p,m,h){try{return l.call(e,p,m,h)}catch(_){if(!d(_))throw _}}}function s(l){return l&&function(p,m,h){typeof m=="function"&&(h=m,m=null);function _(E,w){w&&(w.uid<0&&(w.uid+=4294967296),w.gid<0&&(w.gid+=4294967296)),h&&h.apply(this,arguments)}return m?l.call(e,p,m,_):l.call(e,p,_)}}function c(l){return l&&function(p,m){var h=m?l.call(e,p,m):l.call(e,p);return h&&(h.uid<0&&(h.uid+=4294967296),h.gid<0&&(h.gid+=4294967296)),h}}function d(l){if(!l||l.code==="ENOSYS")return!0;var p=!process.getuid||process.getuid()!==0;return!!(p&&(l.code==="EINVAL"||l.code==="EPERM"))}}});var du=v((gw,fu)=>{var lu=require("stream").Stream;fu.exports=cg;function cg(e){return{ReadStream:t,WriteStream:r};function t(n,i){if(!(this instanceof t))return new t(n,i);lu.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 a=Object.keys(i),s=0,c=a.length;s<c;s++){var d=a[s];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(l,p){if(l){o.emit("error",l),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);lu.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),a=0,s=o.length;a<s;a++){var c=o[a];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 hu=v((vw,pu)=>{"use strict";pu.exports=fg;var lg=Object.getPrototypeOf||function(e){return e.__proto__};function fg(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:lg(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}});var Se=v((_w,io)=>{var re=require("fs"),dg=cu(),pg=du(),hg=hu(),pn=require("util"),ge,mn;typeof Symbol=="function"&&typeof Symbol.for=="function"?(ge=Symbol.for("graceful-fs.queue"),mn=Symbol.for("graceful-fs.previous")):(ge="___graceful-fs.queue",mn="___graceful-fs.previous");function mg(){}function gu(e,t){Object.defineProperty(e,ge,{get:function(){return t}})}var Pt=mg;pn.debuglog?Pt=pn.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Pt=function(){var e=pn.format.apply(pn,arguments);e="GFS4: "+e.split(/\n/).join(`
3
+ GFS4: `),console.error(e)});re[ge]||(mu=global[ge]||[],gu(re,mu),re.close=function(e){function t(r,n){return e.call(re,r,function(i){i||yu(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,mn,{value:e}),t}(re.close),re.closeSync=function(e){function t(r){e.apply(re,arguments),yu()}return Object.defineProperty(t,mn,{value:e}),t}(re.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Pt(re[ge]),require("assert").equal(re[ge].length,0)}));var mu;global[ge]||gu(global,re[ge]);io.exports=ro(hg(re));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!re.__patched&&(io.exports=ro(re),re.__patched=!0);function ro(e){dg(e),e.gracefulify=ro,e.createReadStream=K,e.createWriteStream=ue;var t=e.readFile;e.readFile=r;function r(x,q,M){return typeof q=="function"&&(M=q,q=null),Q(x,q,M);function Q(U,W,S,H){return t(U,W,function(k){k&&(k.code==="EMFILE"||k.code==="ENFILE")?Vt([Q,[U,W,S],k,H||Date.now(),Date.now()]):typeof S=="function"&&S.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=i;function i(x,q,M,Q){return typeof M=="function"&&(Q=M,M=null),U(x,q,M,Q);function U(W,S,H,k,R){return n(W,S,H,function(j){j&&(j.code==="EMFILE"||j.code==="ENFILE")?Vt([U,[W,S,H,k],j,R||Date.now(),Date.now()]):typeof k=="function"&&k.apply(this,arguments)})}}var o=e.appendFile;o&&(e.appendFile=a);function a(x,q,M,Q){return typeof M=="function"&&(Q=M,M=null),U(x,q,M,Q);function U(W,S,H,k,R){return o(W,S,H,function(j){j&&(j.code==="EMFILE"||j.code==="ENFILE")?Vt([U,[W,S,H,k],j,R||Date.now(),Date.now()]):typeof k=="function"&&k.apply(this,arguments)})}}var s=e.copyFile;s&&(e.copyFile=c);function c(x,q,M,Q){return typeof M=="function"&&(Q=M,M=0),U(x,q,M,Q);function U(W,S,H,k,R){return s(W,S,H,function(j){j&&(j.code==="EMFILE"||j.code==="ENFILE")?Vt([U,[W,S,H,k],j,R||Date.now(),Date.now()]):typeof k=="function"&&k.apply(this,arguments)})}}var d=e.readdir;e.readdir=p;var l=/^v[0-5]\./;function p(x,q,M){typeof q=="function"&&(M=q,q=null);var Q=l.test(process.version)?function(S,H,k,R){return d(S,U(S,H,k,R))}:function(S,H,k,R){return d(S,H,U(S,H,k,R))};return Q(x,q,M);function U(W,S,H,k){return function(R,j){R&&(R.code==="EMFILE"||R.code==="ENFILE")?Vt([Q,[W,S,H],R,k||Date.now(),Date.now()]):(j&&j.sort&&j.sort(),typeof H=="function"&&H.call(this,R,j))}}}if(process.version.substr(0,4)==="v0.8"){var m=pg(e);I=m.ReadStream,A=m.WriteStream}var h=e.ReadStream;h&&(I.prototype=Object.create(h.prototype),I.prototype.open=F);var _=e.WriteStream;_&&(A.prototype=Object.create(_.prototype),A.prototype.open=L),Object.defineProperty(e,"ReadStream",{get:function(){return I},set:function(x){I=x},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return A},set:function(x){A=x},enumerable:!0,configurable:!0});var E=I;Object.defineProperty(e,"FileReadStream",{get:function(){return E},set:function(x){E=x},enumerable:!0,configurable:!0});var w=A;Object.defineProperty(e,"FileWriteStream",{get:function(){return w},set:function(x){w=x},enumerable:!0,configurable:!0});function I(x,q){return this instanceof I?(h.apply(this,arguments),this):I.apply(Object.create(I.prototype),arguments)}function F(){var x=this;le(x.path,x.flags,x.mode,function(q,M){q?(x.autoClose&&x.destroy(),x.emit("error",q)):(x.fd=M,x.emit("open",M),x.read())})}function A(x,q){return this instanceof A?(_.apply(this,arguments),this):A.apply(Object.create(A.prototype),arguments)}function L(){var x=this;le(x.path,x.flags,x.mode,function(q,M){q?(x.destroy(),x.emit("error",q)):(x.fd=M,x.emit("open",M))})}function K(x,q){return new e.ReadStream(x,q)}function ue(x,q){return new e.WriteStream(x,q)}var $e=e.open;e.open=le;function le(x,q,M,Q){return typeof M=="function"&&(Q=M,M=null),U(x,q,M,Q);function U(W,S,H,k,R){return $e(W,S,H,function(j,me){j&&(j.code==="EMFILE"||j.code==="ENFILE")?Vt([U,[W,S,H,k],j,R||Date.now(),Date.now()]):typeof k=="function"&&k.apply(this,arguments)})}}return e}function Vt(e){Pt("ENQUEUE",e[0].name,e[1]),re[ge].push(e),no()}var hn;function yu(){for(var e=Date.now(),t=0;t<re[ge].length;++t)re[ge][t].length>2&&(re[ge][t][3]=e,re[ge][t][4]=e);no()}function no(){if(clearTimeout(hn),hn=void 0,re[ge].length!==0){var e=re[ge].shift(),t=e[0],r=e[1],n=e[2],i=e[3],o=e[4];if(i===void 0)Pt("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=6e4){Pt("TIMEOUT",t.name,r);var a=r.pop();typeof a=="function"&&a.call(null,n)}else{var s=Date.now()-o,c=Math.max(o-i,1),d=Math.min(c*1.2,100);s>=d?(Pt("RETRY",t.name,r),t.apply(null,r.concat([i]))):re[ge].push(e)}hn===void 0&&(hn=setTimeout(no,0))}}});var wr=v(_t=>{"use strict";var vu=Fe().fromCallback,Re=Se(),yg=["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 Re[e]=="function");Object.keys(Re).forEach(e=>{e!=="promises"&&(_t[e]=Re[e])});yg.forEach(e=>{_t[e]=vu(Re[e])});_t.exists=function(e,t){return typeof t=="function"?Re.exists(e,t):new Promise(r=>Re.exists(e,r))};_t.read=function(e,t,r,n,i,o){return typeof o=="function"?Re.read(e,t,r,n,i,o):new Promise((a,s)=>{Re.read(e,t,r,n,i,(c,d,l)=>{if(c)return s(c);a({bytesRead:d,buffer:l})})})};_t.write=function(e,t,...r){return typeof r[r.length-1]=="function"?Re.write(e,t,...r):new Promise((n,i)=>{Re.write(e,t,...r,(o,a,s)=>{if(o)return i(o);n({bytesWritten:a,buffer:s})})})};typeof Re.writev=="function"&&(_t.writev=function(e,t,...r){return typeof r[r.length-1]=="function"?Re.writev(e,t,...r):new Promise((n,i)=>{Re.writev(e,t,...r,(o,a,s)=>{if(o)return i(o);n({bytesWritten:a,buffers:s})})})});typeof Re.realpath.native=="function"&&(_t.realpath.native=vu(Re.realpath.native))});var oo=v((Ew,_u)=>{_u.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 Du=v((Sw,ao)=>{"use strict";var zt=wr(),ct=require("path"),gg=oo(),bu=gg("10.12.0"),Eu=e=>{if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(ct.parse(e).root,""))){let r=new Error(`Path contains invalid characters: ${e}`);throw r.code="EINVAL",r}},Su=e=>{let t={mode:511};return typeof e=="number"&&(e={mode:e}),{...t,...e}},wu=e=>{let t=new Error(`operation not permitted, mkdir '${e}'`);return t.code="EPERM",t.errno=-4048,t.path=e,t.syscall="mkdir",t};ao.exports.makeDir=async(e,t)=>{if(Eu(e),t=Su(t),bu){let n=ct.resolve(e);return zt.mkdir(n,{mode:t.mode,recursive:!0})}let r=async n=>{try{await zt.mkdir(n,t.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(ct.dirname(n)===n)throw wu(n);if(i.message.includes("null bytes"))throw i;return await r(ct.dirname(n)),r(n)}try{if(!(await zt.stat(n)).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return r(ct.resolve(e))};ao.exports.makeDirSync=(e,t)=>{if(Eu(e),t=Su(t),bu){let n=ct.resolve(e);return zt.mkdirSync(n,{mode:t.mode,recursive:!0})}let r=n=>{try{zt.mkdirSync(n,t.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(ct.dirname(n)===n)throw wu(n);if(i.message.includes("null bytes"))throw i;return r(ct.dirname(n)),r(n)}try{if(!zt.statSync(n).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return r(ct.resolve(e))}});var Ke=v((ww,Cu)=>{"use strict";var vg=Fe().fromPromise,{makeDir:_g,makeDirSync:so}=Du(),uo=vg(_g);Cu.exports={mkdirs:uo,mkdirsSync:so,mkdirp:uo,mkdirpSync:so,ensureDir:uo,ensureDirSync:so}});var co=v((Dw,xu)=>{"use strict";var Jt=Se();function bg(e,t,r,n){Jt.open(e,"r+",(i,o)=>{if(i)return n(i);Jt.futimes(o,t,r,a=>{Jt.close(o,s=>{n&&n(a||s)})})})}function Eg(e,t,r){let n=Jt.openSync(e,"r+");return Jt.futimesSync(n,t,r),Jt.closeSync(n)}xu.exports={utimesMillis:bg,utimesMillisSync:Eg}});var Dr=v((Cw,Pu)=>{"use strict";var Kt=wr(),Le=require("path"),Sg=require("util"),wg=oo(),yn=wg("10.5.0"),Ru=e=>yn?Kt.stat(e,{bigint:!0}):Kt.stat(e),lo=e=>yn?Kt.statSync(e,{bigint:!0}):Kt.statSync(e);function Dg(e,t){return Promise.all([Ru(e),Ru(t).catch(r=>{if(r.code==="ENOENT")return null;throw r})]).then(([r,n])=>({srcStat:r,destStat:n}))}function Cg(e,t){let r,n=lo(e);try{r=lo(t)}catch(i){if(i.code==="ENOENT")return{srcStat:n,destStat:null};throw i}return{srcStat:n,destStat:r}}function xg(e,t,r,n){Sg.callbackify(Dg)(e,t,(i,o)=>{if(i)return n(i);let{srcStat:a,destStat:s}=o;return s&&gn(a,s)?n(new Error("Source and destination must not be the same.")):a.isDirectory()&&fo(e,t)?n(new Error(vn(e,t,r))):n(null,{srcStat:a,destStat:s})})}function Rg(e,t,r){let{srcStat:n,destStat:i}=Cg(e,t);if(i&&gn(n,i))throw new Error("Source and destination must not be the same.");if(n.isDirectory()&&fo(e,t))throw new Error(vn(e,t,r));return{srcStat:n,destStat:i}}function Ou(e,t,r,n,i){let o=Le.resolve(Le.dirname(e)),a=Le.resolve(Le.dirname(r));if(a===o||a===Le.parse(a).root)return i();let s=(c,d)=>c?c.code==="ENOENT"?i():i(c):gn(t,d)?i(new Error(vn(e,r,n))):Ou(e,t,a,n,i);yn?Kt.stat(a,{bigint:!0},s):Kt.stat(a,s)}function Iu(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 a;try{a=lo(o)}catch(s){if(s.code==="ENOENT")return;throw s}if(gn(t,a))throw new Error(vn(e,r,n));return Iu(e,t,o,n)}function gn(e,t){return!!(t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev&&(yn||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 fo(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,a)=>i&&n[a]===o,!0)}function vn(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}Pu.exports={checkPaths:xg,checkPathsSync:Rg,checkParentPaths:Ou,checkParentPathsSync:Iu,isSrcSubdir:fo}});var ku=v((xw,Lu)=>{"use strict";var we=Se(),Cr=require("path"),Og=Ke().mkdirsSync,Ig=co().utimesMillisSync,xr=Dr();function Pg(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;
4
4
 
5
- see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:n,destStat:i}=xr.checkPathsSync(e,t,"copy");return xr.checkParentPathsSync(e,n,t,"copy"),Rg(i,e,t,r)}function Rg(e,t,r,n){if(n.filter&&!n.filter(t,r))return;let i=Cr.dirname(r);return Se.existsSync(i)||Dg(i),Au(e,t,r,n)}function Au(e,t,r,n){if(!(n.filter&&!n.filter(t,r)))return Og(e,t,r,n)}function Og(e,t,r,n){let o=(n.dereference?Se.statSync:Se.lstatSync)(t);if(o.isDirectory())return kg(o,e,t,r,n);if(o.isFile()||o.isCharacterDevice()||o.isBlockDevice())return Ig(o,e,t,r,n);if(o.isSymbolicLink())return qg(e,t,r,n)}function Ig(e,t,r,n,i){return t?Pg(e,r,n,i):Fu(e,r,n,i)}function Pg(e,t,r,n){if(n.overwrite)return Se.unlinkSync(r),Fu(e,t,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}function Fu(e,t,r,n){return Se.copyFileSync(t,r),n.preserveTimestamps&&Tg(e.mode,t,r),fo(r,e.mode)}function Tg(e,t,r){return Ag(e)&&Fg(r,e),Lg(t,r)}function Ag(e){return(e&128)===0}function Fg(e,t){return fo(e,t|128)}function fo(e,t){return Se.chmodSync(e,t)}function Lg(e,t){let r=Se.statSync(e);return Cg(t,r.atime,r.mtime)}function kg(e,t,r,n,i){if(!t)return Ng(e.mode,r,n,i);if(t&&!t.isDirectory())throw new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`);return Lu(r,n,i)}function Ng(e,t,r,n){return Se.mkdirSync(r),Lu(t,r,n),fo(r,e)}function Lu(e,t,r){Se.readdirSync(e).forEach(n=>Mg(n,e,t,r))}function Mg(e,t,r,n){let i=Cr.join(t,e),o=Cr.join(r,e),{destStat:a}=xr.checkPathsSync(i,o,"copy");return Au(a,i,o,n)}function qg(e,t,r,n){let i=Se.readlinkSync(t);if(n.dereference&&(i=Cr.resolve(process.cwd(),i)),e){let o;try{o=Se.readlinkSync(r)}catch(a){if(a.code==="EINVAL"||a.code==="UNKNOWN")return Se.symlinkSync(i,r);throw a}if(n.dereference&&(o=Cr.resolve(process.cwd(),o)),xr.isSrcSubdir(i,o))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${o}'.`);if(Se.statSync(r).isDirectory()&&xr.isSrcSubdir(o,i))throw new Error(`Cannot overwrite '${o}' with '${i}'.`);return jg(i,r)}else return Se.symlinkSync(i,r)}function jg(e,t){return Se.unlinkSync(t),Se.symlinkSync(e,t)}ku.exports=xg});var po=v((_w,Mu)=>{"use strict";Mu.exports={copySync:Nu()}});var _t=v((Ew,ju)=>{"use strict";var $g=Ae().fromPromise,qu=wr();function Gg(e){return qu.access(e).then(()=>!0).catch(()=>!1)}ju.exports={pathExists:$g(Gg),pathExistsSync:qu.existsSync}});var Vu=v((bw,Yu)=>{"use strict";var Le=be(),Rr=require("path"),Bg=Ke().mkdirs,Ug=_t().pathExists,Xg=uo().utimesMillis,Or=Dr();function Hg(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;
5
+ see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:n,destStat:i}=xr.checkPathsSync(e,t,"copy");return xr.checkParentPathsSync(e,n,t,"copy"),Ag(i,e,t,r)}function Ag(e,t,r,n){if(n.filter&&!n.filter(t,r))return;let i=Cr.dirname(r);return we.existsSync(i)||Og(i),Au(e,t,r,n)}function Au(e,t,r,n){if(!(n.filter&&!n.filter(t,r)))return Tg(e,t,r,n)}function Tg(e,t,r,n){let o=(n.dereference?we.statSync:we.lstatSync)(t);if(o.isDirectory())return jg(o,e,t,r,n);if(o.isFile()||o.isCharacterDevice()||o.isBlockDevice())return Fg(o,e,t,r,n);if(o.isSymbolicLink())return Bg(e,t,r,n)}function Fg(e,t,r,n,i){return t?Lg(e,r,n,i):Tu(e,r,n,i)}function Lg(e,t,r,n){if(n.overwrite)return we.unlinkSync(r),Tu(e,t,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}function Tu(e,t,r,n){return we.copyFileSync(t,r),n.preserveTimestamps&&kg(e.mode,t,r),po(r,e.mode)}function kg(e,t,r){return Ng(e)&&Mg(r,e),qg(t,r)}function Ng(e){return(e&128)===0}function Mg(e,t){return po(e,t|128)}function po(e,t){return we.chmodSync(e,t)}function qg(e,t){let r=we.statSync(e);return Ig(t,r.atime,r.mtime)}function jg(e,t,r,n,i){if(!t)return $g(e.mode,r,n,i);if(t&&!t.isDirectory())throw new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`);return Fu(r,n,i)}function $g(e,t,r,n){return we.mkdirSync(r),Fu(t,r,n),po(r,e)}function Fu(e,t,r){we.readdirSync(e).forEach(n=>Gg(n,e,t,r))}function Gg(e,t,r,n){let i=Cr.join(t,e),o=Cr.join(r,e),{destStat:a}=xr.checkPathsSync(i,o,"copy");return Au(a,i,o,n)}function Bg(e,t,r,n){let i=we.readlinkSync(t);if(n.dereference&&(i=Cr.resolve(process.cwd(),i)),e){let o;try{o=we.readlinkSync(r)}catch(a){if(a.code==="EINVAL"||a.code==="UNKNOWN")return we.symlinkSync(i,r);throw a}if(n.dereference&&(o=Cr.resolve(process.cwd(),o)),xr.isSrcSubdir(i,o))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${o}'.`);if(we.statSync(r).isDirectory()&&xr.isSrcSubdir(o,i))throw new Error(`Cannot overwrite '${o}' with '${i}'.`);return Ug(i,r)}else return we.symlinkSync(i,r)}function Ug(e,t){return we.unlinkSync(t),we.symlinkSync(e,t)}Lu.exports=Pg});var ho=v((Rw,Nu)=>{"use strict";Nu.exports={copySync:ku()}});var bt=v((Ow,qu)=>{"use strict";var Xg=Fe().fromPromise,Mu=wr();function Hg(e){return Mu.access(e).then(()=>!0).catch(()=>!1)}qu.exports={pathExists:Xg(Hg),pathExistsSync:Mu.existsSync}});var Yu=v((Iw,Wu)=>{"use strict";var ke=Se(),Rr=require("path"),Wg=Ke().mkdirs,Yg=bt().pathExists,Vg=co().utimesMillis,Or=Dr();function zg(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;
6
6
 
7
- see https://github.com/jprichardson/node-fs-extra/issues/269`),Or.checkPaths(e,t,"copy",(i,o)=>{if(i)return n(i);let{srcStat:a,destStat:s}=o;Or.checkParentPaths(e,a,t,"copy",c=>c?n(c):r.filter?Uu($u,s,e,t,r,n):$u(s,e,t,r,n))})}function $u(e,t,r,n,i){let o=Rr.dirname(r);Ug(o,(a,s)=>{if(a)return i(a);if(s)return ho(e,t,r,n,i);Bg(o,c=>c?i(c):ho(e,t,r,n,i))})}function Uu(e,t,r,n,i,o){Promise.resolve(i.filter(r,n)).then(a=>a?e(t,r,n,i,o):o(),a=>o(a))}function ho(e,t,r,n,i){return n.filter?Uu(Gu,e,t,r,n,i):Gu(e,t,r,n,i)}function Gu(e,t,r,n,i){(n.dereference?Le.stat:Le.lstat)(t,(a,s)=>{if(a)return i(a);if(s.isDirectory())return Qg(s,e,t,r,n,i);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return Wg(s,e,t,r,n,i);if(s.isSymbolicLink())return tv(e,t,r,n,i)})}function Wg(e,t,r,n,i,o){return t?Yg(e,r,n,i,o):Xu(e,r,n,i,o)}function Yg(e,t,r,n,i){if(n.overwrite)Le.unlink(r,o=>o?i(o):Xu(e,t,r,n,i));else return n.errorOnExist?i(new Error(`'${r}' already exists`)):i()}function Xu(e,t,r,n,i){Le.copyFile(t,r,o=>o?i(o):n.preserveTimestamps?Vg(e.mode,t,r,i):bn(r,e.mode,i))}function Vg(e,t,r,n){return zg(e)?Jg(r,e,i=>i?n(i):Bu(e,t,r,n)):Bu(e,t,r,n)}function zg(e){return(e&128)===0}function Jg(e,t,r){return bn(e,t|128,r)}function Bu(e,t,r,n){Kg(t,r,i=>i?n(i):bn(r,e,n))}function bn(e,t,r){return Le.chmod(e,t,r)}function Kg(e,t,r){Le.stat(e,(n,i)=>n?r(n):Xg(t,i.atime,i.mtime,r))}function Qg(e,t,r,n,i,o){return t?t&&!t.isDirectory()?o(new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`)):Hu(r,n,i,o):Zg(e.mode,r,n,i,o)}function Zg(e,t,r,n,i){Le.mkdir(r,o=>{if(o)return i(o);Hu(t,r,n,a=>a?i(a):bn(r,e,i))})}function Hu(e,t,r,n){Le.readdir(e,(i,o)=>i?n(i):Wu(o,e,t,r,n))}function Wu(e,t,r,n,i){let o=e.pop();return o?ev(e,o,t,r,n,i):i()}function ev(e,t,r,n,i,o){let a=Rr.join(r,t),s=Rr.join(n,t);Or.checkPaths(a,s,"copy",(c,d)=>{if(c)return o(c);let{destStat:l}=d;ho(l,a,s,i,p=>p?o(p):Wu(e,r,n,i,o))})}function tv(e,t,r,n,i){Le.readlink(t,(o,a)=>{if(o)return i(o);if(n.dereference&&(a=Rr.resolve(process.cwd(),a)),e)Le.readlink(r,(s,c)=>s?s.code==="EINVAL"||s.code==="UNKNOWN"?Le.symlink(a,r,i):i(s):(n.dereference&&(c=Rr.resolve(process.cwd(),c)),Or.isSrcSubdir(a,c)?i(new Error(`Cannot copy '${a}' to a subdirectory of itself, '${c}'.`)):e.isDirectory()&&Or.isSrcSubdir(c,a)?i(new Error(`Cannot overwrite '${c}' with '${a}'.`)):rv(a,r,i)));else return Le.symlink(a,r,i)})}function rv(e,t,r){Le.unlink(t,n=>n?r(n):Le.symlink(e,t,r))}Yu.exports=Hg});var mo=v((Sw,zu)=>{"use strict";var nv=Ae().fromCallback;zu.exports={copy:nv(Vu())}});var ic=v((ww,nc)=>{"use strict";var Ju=be(),ec=require("path"),z=require("assert"),Ir=process.platform==="win32";function tc(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(r=>{e[r]=e[r]||Ju[r],r=r+"Sync",e[r]=e[r]||Ju[r]}),e.maxBusyTries=e.maxBusyTries||3}function yo(e,t,r){let n=0;typeof t=="function"&&(r=t,t={}),z(e,"rimraf: missing path"),z.strictEqual(typeof e,"string","rimraf: path should be a string"),z.strictEqual(typeof r,"function","rimraf: callback function required"),z(t,"rimraf: invalid options argument provided"),z.strictEqual(typeof t,"object","rimraf: options should be object"),tc(t),Ku(e,t,function i(o){if(o){if((o.code==="EBUSY"||o.code==="ENOTEMPTY"||o.code==="EPERM")&&n<t.maxBusyTries){n++;let a=n*100;return setTimeout(()=>Ku(e,t,i),a)}o.code==="ENOENT"&&(o=null)}r(o)})}function Ku(e,t,r){z(e),z(t),z(typeof r=="function"),t.lstat(e,(n,i)=>{if(n&&n.code==="ENOENT")return r(null);if(n&&n.code==="EPERM"&&Ir)return Qu(e,t,n,r);if(i&&i.isDirectory())return Sn(e,t,n,r);t.unlink(e,o=>{if(o){if(o.code==="ENOENT")return r(null);if(o.code==="EPERM")return Ir?Qu(e,t,o,r):Sn(e,t,o,r);if(o.code==="EISDIR")return Sn(e,t,o,r)}return r(o)})})}function Qu(e,t,r,n){z(e),z(t),z(typeof n=="function"),t.chmod(e,438,i=>{i?n(i.code==="ENOENT"?null:r):t.stat(e,(o,a)=>{o?n(o.code==="ENOENT"?null:r):a.isDirectory()?Sn(e,t,r,n):t.unlink(e,n)})})}function Zu(e,t,r){let n;z(e),z(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()?wn(e,t,r):t.unlinkSync(e)}function Sn(e,t,r,n){z(e),z(t),z(typeof n=="function"),t.rmdir(e,i=>{i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?iv(e,t,n):i&&i.code==="ENOTDIR"?n(r):n(i)})}function iv(e,t,r){z(e),z(t),z(typeof r=="function"),t.readdir(e,(n,i)=>{if(n)return r(n);let o=i.length,a;if(o===0)return t.rmdir(e,r);i.forEach(s=>{yo(ec.join(e,s),t,c=>{if(!a){if(c)return r(a=c);--o===0&&t.rmdir(e,r)}})})})}function rc(e,t){let r;t=t||{},tc(t),z(e,"rimraf: missing path"),z.strictEqual(typeof e,"string","rimraf: path should be a string"),z(t,"rimraf: missing options"),z.strictEqual(typeof t,"object","rimraf: options should be object");try{r=t.lstatSync(e)}catch(n){if(n.code==="ENOENT")return;n.code==="EPERM"&&Ir&&Zu(e,t,n)}try{r&&r.isDirectory()?wn(e,t,null):t.unlinkSync(e)}catch(n){if(n.code==="ENOENT")return;if(n.code==="EPERM")return Ir?Zu(e,t,n):wn(e,t,n);if(n.code!=="EISDIR")throw n;wn(e,t,n)}}function wn(e,t,r){z(e),z(t);try{t.rmdirSync(e)}catch(n){if(n.code==="ENOTDIR")throw r;if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")ov(e,t);else if(n.code!=="ENOENT")throw n}}function ov(e,t){if(z(e),z(t),t.readdirSync(e).forEach(r=>rc(ec.join(e,r),t)),Ir){let r=Date.now();do try{return t.rmdirSync(e,t)}catch{}while(Date.now()-r<500)}else return t.rmdirSync(e,t)}nc.exports=yo;yo.sync=rc});var Pr=v((Dw,ac)=>{"use strict";var av=Ae().fromCallback,oc=ic();ac.exports={remove:av(oc),removeSync:oc.sync}});var hc=v((Cw,pc)=>{"use strict";var sv=Ae().fromCallback,cc=be(),lc=require("path"),fc=Ke(),dc=Pr(),sc=sv(function(t,r){r=r||function(){},cc.readdir(t,(n,i)=>{if(n)return fc.mkdirs(t,r);i=i.map(a=>lc.join(t,a)),o();function o(){let a=i.pop();if(!a)return r();dc.remove(a,s=>{if(s)return r(s);o()})}})});function uc(e){let t;try{t=cc.readdirSync(e)}catch{return fc.mkdirsSync(e)}t.forEach(r=>{r=lc.join(e,r),dc.removeSync(r)})}pc.exports={emptyDirSync:uc,emptydirSync:uc,emptyDir:sc,emptydir:sc}});var vc=v((xw,gc)=>{"use strict";var uv=Ae().fromCallback,mc=require("path"),Et=be(),yc=Ke();function cv(e,t){function r(){Et.writeFile(e,"",n=>{if(n)return t(n);t()})}Et.stat(e,(n,i)=>{if(!n&&i.isFile())return t();let o=mc.dirname(e);Et.stat(o,(a,s)=>{if(a)return a.code==="ENOENT"?yc.mkdirs(o,c=>{if(c)return t(c);r()}):t(a);s.isDirectory()?r():Et.readdir(o,c=>{if(c)return t(c)})})})}function lv(e){let t;try{t=Et.statSync(e)}catch{}if(t&&t.isFile())return;let r=mc.dirname(e);try{Et.statSync(r).isDirectory()||Et.readdirSync(r)}catch(n){if(n&&n.code==="ENOENT")yc.mkdirsSync(r);else throw n}Et.writeFileSync(e,"")}gc.exports={createFile:uv(cv),createFileSync:lv}});var wc=v((Rw,Sc)=>{"use strict";var fv=Ae().fromCallback,Ec=require("path"),Pt=be(),bc=Ke(),_c=_t().pathExists;function dv(e,t,r){function n(i,o){Pt.link(i,o,a=>{if(a)return r(a);r(null)})}_c(t,(i,o)=>{if(i)return r(i);if(o)return r(null);Pt.lstat(e,a=>{if(a)return a.message=a.message.replace("lstat","ensureLink"),r(a);let s=Ec.dirname(t);_c(s,(c,d)=>{if(c)return r(c);if(d)return n(e,t);bc.mkdirs(s,l=>{if(l)return r(l);n(e,t)})})})})}function pv(e,t){if(Pt.existsSync(t))return;try{Pt.lstatSync(e)}catch(o){throw o.message=o.message.replace("lstat","ensureLink"),o}let n=Ec.dirname(t);return Pt.existsSync(n)||bc.mkdirsSync(n),Pt.linkSync(e,t)}Sc.exports={createLink:fv(dv),createLinkSync:pv}});var Cc=v((Ow,Dc)=>{"use strict";var bt=require("path"),Tr=be(),hv=_t().pathExists;function mv(e,t,r){if(bt.isAbsolute(e))return Tr.lstat(e,n=>n?(n.message=n.message.replace("lstat","ensureSymlink"),r(n)):r(null,{toCwd:e,toDst:e}));{let n=bt.dirname(t),i=bt.join(n,e);return hv(i,(o,a)=>o?r(o):a?r(null,{toCwd:i,toDst:e}):Tr.lstat(e,s=>s?(s.message=s.message.replace("lstat","ensureSymlink"),r(s)):r(null,{toCwd:e,toDst:bt.relative(n,e)})))}}function yv(e,t){let r;if(bt.isAbsolute(e)){if(r=Tr.existsSync(e),!r)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{let n=bt.dirname(t),i=bt.join(n,e);if(r=Tr.existsSync(i),r)return{toCwd:i,toDst:e};if(r=Tr.existsSync(e),!r)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:bt.relative(n,e)}}}Dc.exports={symlinkPaths:mv,symlinkPathsSync:yv}});var Oc=v((Iw,Rc)=>{"use strict";var xc=be();function gv(e,t,r){if(r=typeof t=="function"?t:r,t=typeof t=="function"?!1:t,t)return r(null,t);xc.lstat(e,(n,i)=>{if(n)return r(null,"file");t=i&&i.isDirectory()?"dir":"file",r(null,t)})}function vv(e,t){let r;if(t)return t;try{r=xc.lstatSync(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}Rc.exports={symlinkType:gv,symlinkTypeSync:vv}});var kc=v((Pw,Lc)=>{"use strict";var _v=Ae().fromCallback,Pc=require("path"),Qt=be(),Tc=Ke(),Ev=Tc.mkdirs,bv=Tc.mkdirsSync,Ac=Cc(),Sv=Ac.symlinkPaths,wv=Ac.symlinkPathsSync,Fc=Oc(),Dv=Fc.symlinkType,Cv=Fc.symlinkTypeSync,Ic=_t().pathExists;function xv(e,t,r,n){n=typeof r=="function"?r:n,r=typeof r=="function"?!1:r,Ic(t,(i,o)=>{if(i)return n(i);if(o)return n(null);Sv(e,t,(a,s)=>{if(a)return n(a);e=s.toDst,Dv(s.toCwd,r,(c,d)=>{if(c)return n(c);let l=Pc.dirname(t);Ic(l,(p,m)=>{if(p)return n(p);if(m)return Qt.symlink(e,t,d,n);Ev(l,h=>{if(h)return n(h);Qt.symlink(e,t,d,n)})})})})})}function Rv(e,t,r){if(Qt.existsSync(t))return;let i=wv(e,t);e=i.toDst,r=Cv(i.toCwd,r);let o=Pc.dirname(t);return Qt.existsSync(o)||bv(o),Qt.symlinkSync(e,t,r)}Lc.exports={createSymlink:_v(xv),createSymlinkSync:Rv}});var Mc=v((Tw,Nc)=>{"use strict";var Dn=vc(),Cn=wc(),xn=kc();Nc.exports={createFile:Dn.createFile,createFileSync:Dn.createFileSync,ensureFile:Dn.createFile,ensureFileSync:Dn.createFileSync,createLink:Cn.createLink,createLinkSync:Cn.createLinkSync,ensureLink:Cn.createLink,ensureLinkSync:Cn.createLinkSync,createSymlink:xn.createSymlink,createSymlinkSync:xn.createSymlinkSync,ensureSymlink:xn.createSymlink,ensureSymlinkSync:xn.createSymlinkSync}});var Rn=v((Aw,qc)=>{function Ov(e,{EOL:t=`
8
- `,finalEOL:r=!0,replacer:n=null,spaces:i}={}){let o=r?t:"";return JSON.stringify(e,n,i).replace(/\n/g,t)+o}function Iv(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}qc.exports={stringify:Ov,stripBom:Iv}});var Bc=v((Fw,Gc)=>{var Zt;try{Zt=be()}catch{Zt=require("fs")}var On=Ae(),{stringify:jc,stripBom:$c}=Rn();async function Pv(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||Zt,n="throws"in t?t.throws:!0,i=await On.fromCallback(r.readFile)(e,t);i=$c(i);let o;try{o=JSON.parse(i,t?t.reviver:null)}catch(a){if(n)throw a.message=`${e}: ${a.message}`,a;return null}return o}var Tv=On.fromPromise(Pv);function Av(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||Zt,n="throws"in t?t.throws:!0;try{let i=r.readFileSync(e,t);return i=$c(i),JSON.parse(i,t.reviver)}catch(i){if(n)throw i.message=`${e}: ${i.message}`,i;return null}}async function Fv(e,t,r={}){let n=r.fs||Zt,i=jc(t,r);await On.fromCallback(n.writeFile)(e,i,r)}var Lv=On.fromPromise(Fv);function kv(e,t,r={}){let n=r.fs||Zt,i=jc(t,r);return n.writeFileSync(e,i,r)}var Nv={readFile:Tv,readFileSync:Av,writeFile:Lv,writeFileSync:kv};Gc.exports=Nv});var Xc=v((Lw,Uc)=>{"use strict";var In=Bc();Uc.exports={readJson:In.readFile,readJsonSync:In.readFileSync,writeJson:In.writeFile,writeJsonSync:In.writeFileSync}});var Pn=v((kw,Yc)=>{"use strict";var Mv=Ae().fromCallback,Ar=be(),Hc=require("path"),Wc=Ke(),qv=_t().pathExists;function jv(e,t,r,n){typeof r=="function"&&(n=r,r="utf8");let i=Hc.dirname(e);qv(i,(o,a)=>{if(o)return n(o);if(a)return Ar.writeFile(e,t,r,n);Wc.mkdirs(i,s=>{if(s)return n(s);Ar.writeFile(e,t,r,n)})})}function $v(e,...t){let r=Hc.dirname(e);if(Ar.existsSync(r))return Ar.writeFileSync(e,...t);Wc.mkdirsSync(r),Ar.writeFileSync(e,...t)}Yc.exports={outputFile:Mv(jv),outputFileSync:$v}});var zc=v((Nw,Vc)=>{"use strict";var{stringify:Gv}=Rn(),{outputFile:Bv}=Pn();async function Uv(e,t,r={}){let n=Gv(t,r);await Bv(e,n,r)}Vc.exports=Uv});var Kc=v((Mw,Jc)=>{"use strict";var{stringify:Xv}=Rn(),{outputFileSync:Hv}=Pn();function Wv(e,t,r){let n=Xv(t,r);Hv(e,n,r)}Jc.exports=Wv});var Zc=v((qw,Qc)=>{"use strict";var Yv=Ae().fromPromise,Re=Xc();Re.outputJson=Yv(zc());Re.outputJsonSync=Kc();Re.outputJSON=Re.outputJson;Re.outputJSONSync=Re.outputJsonSync;Re.writeJSON=Re.writeJson;Re.writeJSONSync=Re.writeJsonSync;Re.readJSON=Re.readJson;Re.readJSONSync=Re.readJsonSync;Qc.exports=Re});var ol=v((jw,il)=>{"use strict";var rl=be(),Vv=require("path"),zv=po().copySync,nl=Pr().removeSync,Jv=Ke().mkdirpSync,el=Dr();function Kv(e,t,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:i}=el.checkPathsSync(e,t,"move");return el.checkParentPathsSync(e,i,t,"move"),Jv(Vv.dirname(t)),Qv(e,t,n)}function Qv(e,t,r){if(r)return nl(t),tl(e,t,r);if(rl.existsSync(t))throw new Error("dest already exists.");return tl(e,t,r)}function tl(e,t,r){try{rl.renameSync(e,t)}catch(n){if(n.code!=="EXDEV")throw n;return Zv(e,t,r)}}function Zv(e,t,r){return zv(e,t,{overwrite:r,errorOnExist:!0}),nl(e)}il.exports=Kv});var sl=v(($w,al)=>{"use strict";al.exports={moveSync:ol()}});var dl=v((Gw,fl)=>{"use strict";var e0=be(),t0=require("path"),r0=mo().copy,ll=Pr().remove,n0=Ke().mkdirp,i0=_t().pathExists,ul=Dr();function o0(e,t,r,n){typeof r=="function"&&(n=r,r={});let i=r.overwrite||r.clobber||!1;ul.checkPaths(e,t,"move",(o,a)=>{if(o)return n(o);let{srcStat:s}=a;ul.checkParentPaths(e,s,t,"move",c=>{if(c)return n(c);n0(t0.dirname(t),d=>d?n(d):a0(e,t,i,n))})})}function a0(e,t,r,n){if(r)return ll(t,i=>i?n(i):cl(e,t,r,n));i0(t,(i,o)=>i?n(i):o?n(new Error("dest already exists.")):cl(e,t,r,n))}function cl(e,t,r,n){e0.rename(e,t,i=>i?i.code!=="EXDEV"?n(i):s0(e,t,r,n):n())}function s0(e,t,r,n){r0(e,t,{overwrite:r,errorOnExist:!0},o=>o?n(o):ll(e,n))}fl.exports=o0});var hl=v((Bw,pl)=>{"use strict";var u0=Ae().fromCallback;pl.exports={move:u0(dl())}});var Tt=v((Uw,go)=>{"use strict";go.exports={...wr(),...po(),...mo(),...hc(),...Mc(),...Zc(),...Ke(),...sl(),...hl(),...Pn(),..._t(),...Pr()};var ml=require("fs");Object.getOwnPropertyDescriptor(ml,"promises")&&Object.defineProperty(go.exports,"promises",{get(){return ml.promises}})});var gl=v((Xw,yl)=>{"use strict";var c0=/[|\\{}()[\]^$+*?.]/g;yl.exports=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(c0,"\\$&")}});var _l=v((Hw,vl)=>{"use strict";vl.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 vo=v((Ww,wl)=>{var At=_l(),Sl={};for(Tn in At)At.hasOwnProperty(Tn)&&(Sl[At[Tn]]=Tn);var Tn,C=wl.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(Oe in C)if(C.hasOwnProperty(Oe)){if(!("channels"in C[Oe]))throw new Error("missing channels property: "+Oe);if(!("labels"in C[Oe]))throw new Error("missing channel labels property: "+Oe);if(C[Oe].labels.length!==C[Oe].channels)throw new Error("channel and label counts mismatch: "+Oe);El=C[Oe].channels,bl=C[Oe].labels,delete C[Oe].channels,delete C[Oe].labels,Object.defineProperty(C[Oe],"channels",{value:El}),Object.defineProperty(C[Oe],"labels",{value:bl})}var El,bl,Oe;C.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),a=o-i,s,c,d;return o===i?s=0:t===o?s=(r-n)/a:r===o?s=2+(n-t)/a:n===o&&(s=4+(t-r)/a),s=Math.min(s*60,360),s<0&&(s+=360),d=(i+o)/2,o===i?c=0:d<=.5?c=a/(o+i):c=a/(2-o-i),[s,c*100,d*100]};C.rgb.hsv=function(e){var t,r,n,i,o,a=e[0]/255,s=e[1]/255,c=e[2]/255,d=Math.max(a,s,c),l=d-Math.min(a,s,c),p=function(m){return(d-m)/6/l+1/2};return l===0?i=o=0:(o=l/d,t=p(a),r=p(s),n=p(c),a===d?i=n-r:s===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]};C.rgb.hwb=function(e){var t=e[0],r=e[1],n=e[2],i=C.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]};C.rgb.cmyk=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i,o,a,s;return s=Math.min(1-t,1-r,1-n),i=(1-t-s)/(1-s)||0,o=(1-r-s)/(1-s)||0,a=(1-n-s)/(1-s)||0,[i*100,o*100,a*100,s*100]};function l0(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}C.rgb.keyword=function(e){var t=Sl[e];if(t)return t;var r=1/0,n;for(var i in At)if(At.hasOwnProperty(i)){var o=At[i],a=l0(e,o);a<r&&(r=a,n=i)}return n};C.keyword.rgb=function(e){return At[e]};C.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,a=t*.0193+r*.1192+n*.9505;return[i*100,o*100,a*100]};C.rgb.lab=function(e){var t=C.rgb.xyz(e),r=t[0],n=t[1],i=t[2],o,a,s;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,a=500*(r-n),s=200*(n-i),[o,a,s]};C.hsl.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,o,a,s,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,s=[0,0,0];for(var d=0;d<3;d++)a=t+1/3*-(d-1),a<0&&a++,a>1&&a--,6*a<1?c=i+(o-i)*6*a:2*a<1?c=o:3*a<2?c=i+(o-i)*(2/3-a)*6:c=i,s[d]=c*255;return s};C.hsl.hsv=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,i=r,o=Math.max(n,.01),a,s;return n*=2,r*=n<=1?n:2-n,i*=o<=1?o:2-o,s=(n+r)/2,a=n===0?2*i/(o+i):2*r/(n+r),[t,a*100,s*100]};C.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),a=255*n*(1-r),s=255*n*(1-r*o),c=255*n*(1-r*(1-o));switch(n*=255,i){case 0:return[n,c,a];case 1:return[s,n,a];case 2:return[a,n,c];case 3:return[a,s,n];case 4:return[c,a,n];case 5:return[n,a,s]}};C.hsv.hsl=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01),o,a,s;return s=(2-r)*n,o=(2-r)*i,a=r*i,a/=o<=1?o:2-o,a=a||0,s/=2,[t,a*100,s*100]};C.hwb.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i=r+n,o,a,s,c;i>1&&(r/=i,n/=i),o=Math.floor(6*t),a=1-n,s=6*t-o,o&1&&(s=1-s),c=r+s*(a-r);var d,l,p;switch(o){default:case 6:case 0:d=a,l=c,p=r;break;case 1:d=c,l=a,p=r;break;case 2:d=r,l=a,p=c;break;case 3:d=r,l=c,p=a;break;case 4:d=c,l=r,p=a;break;case 5:d=a,l=r,p=c;break}return[d*255,l*255,p*255]};C.cmyk.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100,o,a,s;return o=1-Math.min(1,t*(1-i)+i),a=1-Math.min(1,r*(1-i)+i),s=1-Math.min(1,n*(1-i)+i),[o*255,a*255,s*255]};C.xyz.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,i,o,a;return i=t*3.2406+r*-1.5372+n*-.4986,o=t*-.9689+r*1.8758+n*.0415,a=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,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a*12.92,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),[i*255,o*255,a*255]};C.xyz.lab=function(e){var t=e[0],r=e[1],n=e[2],i,o,a;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),a=200*(r-n),[i,o,a]};C.lab.xyz=function(e){var t=e[0],r=e[1],n=e[2],i,o,a;o=(t+16)/116,i=r/500+o,a=o-n/200;var s=Math.pow(o,3),c=Math.pow(i,3),d=Math.pow(a,3);return o=s>.008856?s:(o-16/116)/7.787,i=c>.008856?c:(i-16/116)/7.787,a=d>.008856?d:(a-16/116)/7.787,i*=95.047,o*=100,a*=108.883,[i,o,a]};C.lab.lch=function(e){var t=e[0],r=e[1],n=e[2],i,o,a;return i=Math.atan2(n,r),o=i*360/2/Math.PI,o<0&&(o+=360),a=Math.sqrt(r*r+n*n),[t,a,o]};C.lch.lab=function(e){var t=e[0],r=e[1],n=e[2],i,o,a;return a=n/360*2*Math.PI,i=r*Math.cos(a),o=r*Math.sin(a),[t,i,o]};C.rgb.ansi16=function(e){var t=e[0],r=e[1],n=e[2],i=1 in arguments?arguments[1]:C.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};C.hsv.ansi16=function(e){return C.rgb.ansi16(C.hsv.rgb(e),e[2])};C.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};C.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]};C.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]};C.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};C.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(s){return s+s}).join(""));var n=parseInt(r,16),i=n>>16&255,o=n>>8&255,a=n&255;return[i,o,a]};C.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),a=i-o,s,c;return a<1?s=o/(1-a):s=0,a<=0?c=0:i===t?c=(r-n)/a%6:i===r?c=2+(n-t)/a:c=4+(t-r)/a+4,c/=6,c%=1,[c*360,a*100,s*100]};C.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]};C.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]};C.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,a=o%1,s=1-a,c=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return c=(1-r)*n,[(r*i[0]+c)*255,(r*i[1]+c)*255,(r*i[2]+c)*255]};C.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]};C.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]};C.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]};C.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]};C.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};C.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};C.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};C.gray.hsl=C.gray.hsv=function(e){return[0,0,e[0]]};C.gray.hwb=function(e){return[0,100,e[0]]};C.gray.cmyk=function(e){return[0,0,0,e[0]]};C.gray.lab=function(e){return[e[0],0,0]};C.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};C.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[t/255*100]}});var Cl=v((Yw,Dl)=>{var An=vo();function f0(){for(var e={},t=Object.keys(An),r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function d0(e){var t=f0(),r=[e];for(t[e].distance=0;r.length;)for(var n=r.pop(),i=Object.keys(An[n]),o=i.length,a=0;a<o;a++){var s=i[a],c=t[s];c.distance===-1&&(c.distance=t[n].distance+1,c.parent=n,r.unshift(s))}return t}function p0(e,t){return function(r){return t(e(r))}}function h0(e,t){for(var r=[t[e].parent,e],n=An[t[e].parent][e],i=t[e].parent;t[i].parent;)r.unshift(t[i].parent),n=p0(An[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}Dl.exports=function(e){for(var t=d0(e),r={},n=Object.keys(t),i=n.length,o=0;o<i;o++){var a=n[o],s=t[a];s.parent!==null&&(r[a]=h0(a,t))}return r}});var Rl=v((Vw,xl)=>{var _o=vo(),m0=Cl(),er={},y0=Object.keys(_o);function g0(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 v0(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}y0.forEach(function(e){er[e]={},Object.defineProperty(er[e],"channels",{value:_o[e].channels}),Object.defineProperty(er[e],"labels",{value:_o[e].labels});var t=m0(e),r=Object.keys(t);r.forEach(function(n){var i=t[n];er[e][n]=v0(i),er[e][n].raw=g0(i)})});xl.exports=er});var Il=v((zw,Ol)=>{"use strict";var tr=Rl(),Fn=(e,t)=>function(){return`\x1B[${e.apply(tr,arguments)+t}m`},Ln=(e,t)=>function(){let r=e.apply(tr,arguments);return`\x1B[${38+t};5;${r}m`},kn=(e,t)=>function(){let r=e.apply(tr,arguments);return`\x1B[${38+t};2;${r[0]};${r[1]};${r[2]}m`};function _0(){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 a of Object.keys(o)){let s=o[a];t[a]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},o[a]=t[a],e.set(s[0],s[1])}Object.defineProperty(t,i,{value:o,enumerable:!1}),Object.defineProperty(t,"codes",{value:e,enumerable:!1})}let r=i=>i,n=(i,o,a)=>[i,o,a];t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",t.color.ansi={ansi:Fn(r,0)},t.color.ansi256={ansi256:Ln(r,0)},t.color.ansi16m={rgb:kn(n,0)},t.bgColor.ansi={ansi:Fn(r,10)},t.bgColor.ansi256={ansi256:Ln(r,10)},t.bgColor.ansi16m={rgb:kn(n,10)};for(let i of Object.keys(tr)){if(typeof tr[i]!="object")continue;let o=tr[i];i==="ansi16"&&(i="ansi"),"ansi16"in o&&(t.color.ansi[i]=Fn(o.ansi16,0),t.bgColor.ansi[i]=Fn(o.ansi16,10)),"ansi256"in o&&(t.color.ansi256[i]=Ln(o.ansi256,0),t.bgColor.ansi256[i]=Ln(o.ansi256,10)),"rgb"in o&&(t.color.ansi16m[i]=kn(o.rgb,0),t.bgColor.ansi16m[i]=kn(o.rgb,10))}return t}Object.defineProperty(Ol,"exports",{enumerable:!0,get:_0})});var Tl=v((Jw,Pl)=>{"use strict";Pl.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 Fl=v((Kw,Al)=>{"use strict";var E0=require("os"),Qe=Tl(),we=process.env,rr;Qe("no-color")||Qe("no-colors")||Qe("color=false")?rr=!1:(Qe("color")||Qe("colors")||Qe("color=true")||Qe("color=always"))&&(rr=!0);"FORCE_COLOR"in we&&(rr=we.FORCE_COLOR.length===0||parseInt(we.FORCE_COLOR,10)!==0);function b0(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function S0(e){if(rr===!1)return 0;if(Qe("color=16m")||Qe("color=full")||Qe("color=truecolor"))return 3;if(Qe("color=256"))return 2;if(e&&!e.isTTY&&rr!==!0)return 0;let t=rr?1:0;if(process.platform==="win32"){let r=E0.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 we)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in we)||we.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in we)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(we.TEAMCITY_VERSION)?1:0;if(we.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in we){let r=parseInt((we.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(we.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(we.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(we.TERM)||"COLORTERM"in we?1:(we.TERM==="dumb",t)}function Eo(e){let t=S0(e);return b0(t)}Al.exports={supportsColor:Eo,stdout:Eo(process.stdout),stderr:Eo(process.stderr)}});var ql=v((Qw,Ml)=>{"use strict";var w0=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Ll=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,D0=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,C0=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,x0=new Map([["n",`
9
- `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function Nl(e){return e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):x0.get(e)||e}function R0(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(D0))r.push(i[2].replace(C0,(a,s,c)=>s?Nl(s):c));else throw new Error(`Invalid Chalk template style argument: ${o} (in style '${e}')`);return r}function O0(e){Ll.lastIndex=0;let t=[],r;for(;(r=Ll.exec(e))!==null;){let n=r[1];if(r[2]){let i=R0(n,r[2]);t.push([n].concat(i))}else t.push([n])}return t}function kl(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}Ml.exports=(e,t)=>{let r=[],n=[],i=[];if(t.replace(w0,(o,a,s,c,d,l)=>{if(a)i.push(Nl(a));else if(c){let p=i.join("");i=[],n.push(r.length===0?p:kl(e,r)(p)),r.push({inverse:s,styles:O0(c)})}else if(d){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(kl(e,r)(i.join(""))),i=[],r.pop()}else i.push(l)}),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 Mn=v((Zw,Lr)=>{"use strict";var So=gl(),ae=Il(),bo=Fl().stdout,I0=ql(),$l=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),Gl=["ansi","ansi","ansi256","ansi16m"],Bl=new Set(["gray"]),nr=Object.create(null);function jl(e,t){t=t||{};let r=bo?bo.level:0;e.level=t.level===void 0?r:t.level,e.enabled="enabled"in t?t.enabled:e.level>0}function Fr(e){if(!this||!(this instanceof Fr)||this.template){let t={};return jl(t,e),t.template=function(){let r=[].slice.call(arguments);return A0.apply(null,[t.template].concat(r))},Object.setPrototypeOf(t,Fr.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=Fr,t.template}jl(this,e)}$l&&(ae.blue.open="\x1B[94m");for(let e of Object.keys(ae))ae[e].closeRe=new RegExp(So(ae[e].close),"g"),nr[e]={get(){let t=ae[e];return Nn.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}};nr.visible={get(){return Nn.call(this,this._styles||[],!0,"visible")}};ae.color.closeRe=new RegExp(So(ae.color.close),"g");for(let e of Object.keys(ae.color.ansi))Bl.has(e)||(nr[e]={get(){let t=this.level;return function(){let n={open:ae.color[Gl[t]][e].apply(null,arguments),close:ae.color.close,closeRe:ae.color.closeRe};return Nn.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});ae.bgColor.closeRe=new RegExp(So(ae.bgColor.close),"g");for(let e of Object.keys(ae.bgColor.ansi)){if(Bl.has(e))continue;let t="bg"+e[0].toUpperCase()+e.slice(1);nr[t]={get(){let r=this.level;return function(){let i={open:ae.bgColor[Gl[r]][e].apply(null,arguments),close:ae.bgColor.close,closeRe:ae.bgColor.closeRe};return Nn.call(this,this._styles?this._styles.concat(i):[i],this._empty,e)}}}}var P0=Object.defineProperties(()=>{},nr);function Nn(e,t,r){let n=function(){return T0.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__=P0,n}function T0(){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=ae.dim.open;$l&&this.hasGrey&&(ae.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 ae.dim.open=n,r}function A0(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 I0(e,n.join(""))}Object.defineProperties(Fr.prototype,nr);Lr.exports=Fr();Lr.exports.supportsColor=bo;Lr.exports.default=Lr.exports});var Xl=v((e1,Ul)=>{var wo=class{constructor(t){this.value=t,this.next=void 0}},Do=class{constructor(){this.clear()}enqueue(t){let r=new wo(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}};Ul.exports=Do});var Co=v((t1,Hl)=>{"use strict";var F0=Xl(),L0=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 F0,r=0,n=()=>{r--,t.size>0&&t.dequeue()()},i=async(s,c,...d)=>{r++;let l=(async()=>s(...d))();c(l);try{await l}catch{}n()},o=(s,c,...d)=>{t.enqueue(i.bind(null,s,c,...d)),(async()=>(await Promise.resolve(),r<e&&t.size>0&&t.dequeue()()))()},a=(s,...c)=>new Promise(d=>{o(s,d,...c)});return Object.defineProperties(a,{activeCount:{get:()=>r},pendingCount:{get:()=>t.size},clearQueue:{value:()=>{t.clear()}}}),a};Hl.exports=L0});var Vl=v((r1,Yl)=>{"use strict";var Wl=Co(),qn=class extends Error{constructor(t){super(),this.value=t}},k0=async(e,t)=>t(await e),N0=async e=>{let t=await Promise.all(e);if(t[1]===!0)throw new qn(t[0]);return!1},M0=async(e,t,r)=>{r={concurrency:1/0,preserveOrder:!0,...r};let n=Wl(r.concurrency),i=[...e].map(a=>[a,n(k0,a,t)]),o=Wl(r.preserveOrder?1:1/0);try{await Promise.all(i.map(a=>o(N0,a)))}catch(a){if(a instanceof qn)return a.value;throw a}};Yl.exports=M0});var ef=v((n1,xo)=>{"use strict";var zl=require("path"),jn=require("fs"),{promisify:Jl}=require("util"),q0=Vl(),j0=Jl(jn.stat),$0=Jl(jn.lstat),Kl={directory:"isDirectory",file:"isFile"};function Ql({type:e}){if(!(e in Kl))throw new Error(`Invalid type specified: ${e}`)}var Zl=(e,t)=>e===void 0||t[Kl[e]]();xo.exports=async(e,t)=>{t={cwd:process.cwd(),type:"file",allowSymlinks:!0,...t},Ql(t);let r=t.allowSymlinks?j0:$0;return q0(e,async n=>{try{let i=await r(zl.resolve(t.cwd,n));return Zl(t.type,i)}catch{return!1}},t)};xo.exports.sync=(e,t)=>{t={cwd:process.cwd(),allowSymlinks:!0,type:"file",...t},Ql(t);let r=t.allowSymlinks?jn.statSync:jn.lstatSync;for(let n of e)try{let i=r(zl.resolve(t.cwd,n));if(Zl(t.type,i))return n}catch{}}});var rf=v((i1,Ro)=>{"use strict";var tf=require("fs"),{promisify:G0}=require("util"),B0=G0(tf.access);Ro.exports=async e=>{try{return await B0(e),!0}catch{return!1}};Ro.exports.sync=e=>{try{return tf.accessSync(e),!0}catch{return!1}}});var Io=v((o1,ir)=>{"use strict";var St=require("path"),$n=ef(),nf=rf(),Oo=Symbol("findUp.stop");ir.exports=async(e,t={})=>{let r=St.resolve(t.cwd||""),{root:n}=St.parse(r),i=[].concat(e),o=async a=>{if(typeof e!="function")return $n(i,a);let s=await e(a.cwd);return typeof s=="string"?$n([s],a):s};for(;;){let a=await o({...t,cwd:r});if(a===Oo)return;if(a)return St.resolve(r,a);if(r===n)return;r=St.dirname(r)}};ir.exports.sync=(e,t={})=>{let r=St.resolve(t.cwd||""),{root:n}=St.parse(r),i=[].concat(e),o=a=>{if(typeof e!="function")return $n.sync(i,a);let s=e(a.cwd);return typeof s=="string"?$n.sync([s],a):s};for(;;){let a=o({...t,cwd:r});if(a===Oo)return;if(a)return St.resolve(r,a);if(r===n)return;r=St.dirname(r)}};ir.exports.exists=nf;ir.exports.sync.exists=nf.sync;ir.exports.stop=Oo});var Gn=v((a1,Po)=>{"use strict";var of=require("path"),af=Io(),U0=async e=>{let t=await af("package.json",{cwd:e});return t&&of.dirname(t)};Po.exports=U0;Po.exports.sync=e=>{let t=af.sync("package.json",{cwd:e});return t&&of.dirname(t)}});var vf=v((p1,gf)=>{"use strict";var{FORCE_COLOR:V0,NODE_DISABLE_COLORS:z0,TERM:J0}=process.env,Y={enabled:!z0&&J0!=="dumb"&&V0!=="0",reset:J(0,0),bold:J(1,22),dim:J(2,22),italic:J(3,23),underline:J(4,24),inverse:J(7,27),hidden:J(8,28),strikethrough:J(9,29),black:J(30,39),red:J(31,39),green:J(32,39),yellow:J(33,39),blue:J(34,39),magenta:J(35,39),cyan:J(36,39),white:J(37,39),gray:J(90,39),grey:J(90,39),bgBlack:J(40,49),bgRed:J(41,49),bgGreen:J(42,49),bgYellow:J(43,49),bgBlue:J(44,49),bgMagenta:J(45,49),bgCyan:J(46,49),bgWhite:J(47,49)};function yf(e,t){let r=0,n,i="",o="";for(;r<e.length;r++)n=e[r],i+=n.open,o+=n.close,t.includes(n.close)&&(t=t.replace(n.rgx,n.close+n.open));return i+t+o}function K0(e,t){let r={has:e,keys:t};return r.reset=Y.reset.bind(r),r.bold=Y.bold.bind(r),r.dim=Y.dim.bind(r),r.italic=Y.italic.bind(r),r.underline=Y.underline.bind(r),r.inverse=Y.inverse.bind(r),r.hidden=Y.hidden.bind(r),r.strikethrough=Y.strikethrough.bind(r),r.black=Y.black.bind(r),r.red=Y.red.bind(r),r.green=Y.green.bind(r),r.yellow=Y.yellow.bind(r),r.blue=Y.blue.bind(r),r.magenta=Y.magenta.bind(r),r.cyan=Y.cyan.bind(r),r.white=Y.white.bind(r),r.gray=Y.gray.bind(r),r.grey=Y.grey.bind(r),r.bgBlack=Y.bgBlack.bind(r),r.bgRed=Y.bgRed.bind(r),r.bgGreen=Y.bgGreen.bind(r),r.bgYellow=Y.bgYellow.bind(r),r.bgBlue=Y.bgBlue.bind(r),r.bgMagenta=Y.bgMagenta.bind(r),r.bgCyan=Y.bgCyan.bind(r),r.bgWhite=Y.bgWhite.bind(r),r}function J(e,t){let r={open:`\x1B[${e}m`,close:`\x1B[${t}m`,rgx:new RegExp(`\\x1b\\[${t}m`,"g")};return function(n){return this!==void 0&&this.has!==void 0?(this.has.includes(e)||(this.has.push(e),this.keys.push(r)),n===void 0?this:Y.enabled?yf(this.keys,n+""):n+""):n===void 0?K0([e],[r]):Y.enabled?yf([r],n+""):n+""}}gf.exports=Y});var If=v($=>{"use strict";var Nr=Symbol.for("react.element"),Q0=Symbol.for("react.portal"),Z0=Symbol.for("react.fragment"),e_=Symbol.for("react.strict_mode"),t_=Symbol.for("react.profiler"),r_=Symbol.for("react.provider"),n_=Symbol.for("react.context"),i_=Symbol.for("react.forward_ref"),o_=Symbol.for("react.suspense"),a_=Symbol.for("react.memo"),s_=Symbol.for("react.lazy"),_f=Symbol.iterator;function u_(e){return e===null||typeof e!="object"?null:(e=_f&&e[_f]||e["@@iterator"],typeof e=="function"?e:null)}var Sf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},wf=Object.assign,Df={};function sr(e,t,r){this.props=e,this.context=t,this.refs=Df,this.updater=r||Sf}sr.prototype.isReactComponent={};sr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};sr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Cf(){}Cf.prototype=sr.prototype;function No(e,t,r){this.props=e,this.context=t,this.refs=Df,this.updater=r||Sf}var Mo=No.prototype=new Cf;Mo.constructor=No;wf(Mo,sr.prototype);Mo.isPureReactComponent=!0;var Ef=Array.isArray,xf=Object.prototype.hasOwnProperty,qo={current:null},Rf={key:!0,ref:!0,__self:!0,__source:!0};function Of(e,t,r){var n,i={},o=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)xf.call(t,n)&&!Rf.hasOwnProperty(n)&&(i[n]=t[n]);var s=arguments.length-2;if(s===1)i.children=r;else if(1<s){for(var c=Array(s),d=0;d<s;d++)c[d]=arguments[d+2];i.children=c}if(e&&e.defaultProps)for(n in s=e.defaultProps,s)i[n]===void 0&&(i[n]=s[n]);return{$$typeof:Nr,type:e,key:o,ref:a,props:i,_owner:qo.current}}function c_(e,t){return{$$typeof:Nr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function jo(e){return typeof e=="object"&&e!==null&&e.$$typeof===Nr}function l_(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var bf=/\/+/g;function ko(e,t){return typeof e=="object"&&e!==null&&e.key!=null?l_(""+e.key):t.toString(36)}function Yn(e,t,r,n,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case Nr:case Q0:a=!0}}if(a)return a=e,i=i(a),e=n===""?"."+ko(a,0):n,Ef(i)?(r="",e!=null&&(r=e.replace(bf,"$&/")+"/"),Yn(i,t,r,"",function(d){return d})):i!=null&&(jo(i)&&(i=c_(i,r+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(bf,"$&/")+"/")+e)),t.push(i)),1;if(a=0,n=n===""?".":n+":",Ef(e))for(var s=0;s<e.length;s++){o=e[s];var c=n+ko(o,s);a+=Yn(o,t,r,c,i)}else if(c=u_(e),typeof c=="function")for(e=c.call(e),s=0;!(o=e.next()).done;)o=o.value,c=n+ko(o,s++),a+=Yn(o,t,r,c,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function Wn(e,t,r){if(e==null)return e;var n=[],i=0;return Yn(e,n,"","",function(o){return t.call(r,o,i++)}),n}function f_(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Pe={current:null},Vn={transition:null},d_={ReactCurrentDispatcher:Pe,ReactCurrentBatchConfig:Vn,ReactCurrentOwner:qo};$.Children={map:Wn,forEach:function(e,t,r){Wn(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return Wn(e,function(){t++}),t},toArray:function(e){return Wn(e,function(t){return t})||[]},only:function(e){if(!jo(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};$.Component=sr;$.Fragment=Z0;$.Profiler=t_;$.PureComponent=No;$.StrictMode=e_;$.Suspense=o_;$.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=d_;$.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=wf({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=qo.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)xf.call(t,c)&&!Rf.hasOwnProperty(c)&&(n[c]=t[c]===void 0&&s!==void 0?s[c]:t[c])}var c=arguments.length-2;if(c===1)n.children=r;else if(1<c){s=Array(c);for(var d=0;d<c;d++)s[d]=arguments[d+2];n.children=s}return{$$typeof:Nr,type:e.type,key:i,ref:o,props:n,_owner:a}};$.createContext=function(e){return e={$$typeof:n_,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:r_,_context:e},e.Consumer=e};$.createElement=Of;$.createFactory=function(e){var t=Of.bind(null,e);return t.type=e,t};$.createRef=function(){return{current:null}};$.forwardRef=function(e){return{$$typeof:i_,render:e}};$.isValidElement=jo;$.lazy=function(e){return{$$typeof:s_,_payload:{_status:-1,_result:e},_init:f_}};$.memo=function(e,t){return{$$typeof:a_,type:e,compare:t===void 0?null:t}};$.startTransition=function(e){var t=Vn.transition;Vn.transition={};try{e()}finally{Vn.transition=t}};$.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};$.useCallback=function(e,t){return Pe.current.useCallback(e,t)};$.useContext=function(e){return Pe.current.useContext(e)};$.useDebugValue=function(){};$.useDeferredValue=function(e){return Pe.current.useDeferredValue(e)};$.useEffect=function(e,t){return Pe.current.useEffect(e,t)};$.useId=function(){return Pe.current.useId()};$.useImperativeHandle=function(e,t,r){return Pe.current.useImperativeHandle(e,t,r)};$.useInsertionEffect=function(e,t){return Pe.current.useInsertionEffect(e,t)};$.useLayoutEffect=function(e,t){return Pe.current.useLayoutEffect(e,t)};$.useMemo=function(e,t){return Pe.current.useMemo(e,t)};$.useReducer=function(e,t,r){return Pe.current.useReducer(e,t,r)};$.useRef=function(e){return Pe.current.useRef(e)};$.useState=function(e){return Pe.current.useState(e)};$.useSyncExternalStore=function(e,t,r){return Pe.current.useSyncExternalStore(e,t,r)};$.useTransition=function(){return Pe.current.useTransition()};$.version="18.2.0"});var Pf=v((G,zn)=>{"use strict";process.env.NODE_ENV!=="production"&&function(){"use strict";typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e="18.2.0",t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),_=Symbol.iterator,b="@@iterator";function w(u){if(u===null||typeof u!="object")return null;var f=_&&u[_]||u[b];return typeof f=="function"?f:null}var I={current:null},F={transition:null},P={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},L={current:null},K={},se=null;function $e(u){se=u}K.setExtraStackFrame=function(u){se=u},K.getCurrentStack=null,K.getStackAddendum=function(){var u="";se&&(u+=se);var f=K.getCurrentStack;return f&&(u+=f()||""),u};var ce=!1,x=!1,q=!1,M=!1,Q=!1,U={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:F,ReactCurrentOwner:L};U.ReactDebugCurrentFrame=K,U.ReactCurrentActQueue=P;function W(u){{for(var f=arguments.length,y=new Array(f>1?f-1:0),g=1;g<f;g++)y[g-1]=arguments[g];H("warn",u,y)}}function S(u){{for(var f=arguments.length,y=new Array(f>1?f-1:0),g=1;g<f;g++)y[g-1]=arguments[g];H("error",u,y)}}function H(u,f,y){{var g=U.ReactDebugCurrentFrame,E=g.getStackAddendum();E!==""&&(f+="%s",y=y.concat([E]));var O=y.map(function(D){return String(D)});O.unshift("Warning: "+f),Function.prototype.apply.call(console[u],console,O)}}var k={};function R(u,f){{var y=u.constructor,g=y&&(y.displayName||y.name)||"ReactClass",E=g+"."+f;if(k[E])return;S("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",f,g),k[E]=!0}}var j={isMounted:function(u){return!1},enqueueForceUpdate:function(u,f,y){R(u,"forceUpdate")},enqueueReplaceState:function(u,f,y,g){R(u,"replaceState")},enqueueSetState:function(u,f,y,g){R(u,"setState")}},he=Object.assign,it={};Object.freeze(it);function Xe(u,f,y){this.props=u,this.context=f,this.refs=it,this.updater=y||j}Xe.prototype.isReactComponent={},Xe.prototype.setState=function(u,f){if(typeof u!="object"&&typeof u!="function"&&u!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,u,f,"setState")},Xe.prototype.forceUpdate=function(u){this.updater.enqueueForceUpdate(this,u,"forceUpdate")};{var ct={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},Rt=function(u,f){Object.defineProperty(Xe.prototype,u,{get:function(){W("%s(...) is deprecated in plain JavaScript React classes. %s",f[0],f[1])}})};for(var Ee in ct)ct.hasOwnProperty(Ee)&&Rt(Ee,ct[Ee])}function tn(){}tn.prototype=Xe.prototype;function ht(u,f,y){this.props=u,this.context=f,this.refs=it,this.updater=y||j}var mt=ht.prototype=new tn;mt.constructor=ht,he(mt,Xe.prototype),mt.isPureReactComponent=!0;function ze(){var u={current:null};return Object.seal(u),u}var Ut=Array.isArray;function Je(u){return Ut(u)}function rn(u){{var f=typeof Symbol=="function"&&Symbol.toStringTag,y=f&&u[Symbol.toStringTag]||u.constructor.name||"Object";return y}}function vr(u){try{return _r(u),!1}catch{return!0}}function _r(u){return""+u}function Xt(u){if(vr(u))return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",rn(u)),_r(u)}function He(u,f,y){var g=u.displayName;if(g)return g;var E=f.displayName||f.name||"";return E!==""?y+"("+E+")":y}function Ds(u){return u.displayName||"Context"}function yt(u){if(u==null)return null;if(typeof u.tag=="number"&&S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u;switch(u){case n:return"Fragment";case r:return"Portal";case o:return"Profiler";case i:return"StrictMode";case d:return"Suspense";case l:return"SuspenseList"}if(typeof u=="object")switch(u.$$typeof){case s:var f=u;return Ds(f)+".Consumer";case a:var y=u;return Ds(y._context)+".Provider";case c:return He(u,u.render,"ForwardRef");case p:var g=u.displayName||null;return g!==null?g:yt(u.type)||"Memo";case m:{var E=u,O=E._payload,D=E._init;try{return yt(D(O))}catch{return null}}}return null}var Er=Object.prototype.hasOwnProperty,Cs={key:!0,ref:!0,__self:!0,__source:!0},xs,Rs,$i;$i={};function Os(u){if(Er.call(u,"ref")){var f=Object.getOwnPropertyDescriptor(u,"ref").get;if(f&&f.isReactWarning)return!1}return u.ref!==void 0}function Is(u){if(Er.call(u,"key")){var f=Object.getOwnPropertyDescriptor(u,"key").get;if(f&&f.isReactWarning)return!1}return u.key!==void 0}function $m(u,f){var y=function(){xs||(xs=!0,S("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",f))};y.isReactWarning=!0,Object.defineProperty(u,"key",{get:y,configurable:!0})}function Gm(u,f){var y=function(){Rs||(Rs=!0,S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",f))};y.isReactWarning=!0,Object.defineProperty(u,"ref",{get:y,configurable:!0})}function Bm(u){if(typeof u.ref=="string"&&L.current&&u.__self&&L.current.stateNode!==u.__self){var f=yt(L.current.type);$i[f]||(S('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',f,u.ref),$i[f]=!0)}}var Gi=function(u,f,y,g,E,O,D){var A={$$typeof:t,type:u,key:f,ref:y,props:D,_owner:O};return A._store={},Object.defineProperty(A._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(A,"_self",{configurable:!1,enumerable:!1,writable:!1,value:g}),Object.defineProperty(A,"_source",{configurable:!1,enumerable:!1,writable:!1,value:E}),Object.freeze&&(Object.freeze(A.props),Object.freeze(A)),A};function Um(u,f,y){var g,E={},O=null,D=null,A=null,B=null;if(f!=null){Os(f)&&(D=f.ref,Bm(f)),Is(f)&&(Xt(f.key),O=""+f.key),A=f.__self===void 0?null:f.__self,B=f.__source===void 0?null:f.__source;for(g in f)Er.call(f,g)&&!Cs.hasOwnProperty(g)&&(E[g]=f[g])}var V=arguments.length-2;if(V===1)E.children=y;else if(V>1){for(var Z=Array(V),ee=0;ee<V;ee++)Z[ee]=arguments[ee+2];Object.freeze&&Object.freeze(Z),E.children=Z}if(u&&u.defaultProps){var te=u.defaultProps;for(g in te)E[g]===void 0&&(E[g]=te[g])}if(O||D){var oe=typeof u=="function"?u.displayName||u.name||"Unknown":u;O&&$m(E,oe),D&&Gm(E,oe)}return Gi(u,O,D,A,B,L.current,E)}function Xm(u,f){var y=Gi(u.type,f,u.ref,u._self,u._source,u._owner,u.props);return y}function Hm(u,f,y){if(u==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+u+".");var g,E=he({},u.props),O=u.key,D=u.ref,A=u._self,B=u._source,V=u._owner;if(f!=null){Os(f)&&(D=f.ref,V=L.current),Is(f)&&(Xt(f.key),O=""+f.key);var Z;u.type&&u.type.defaultProps&&(Z=u.type.defaultProps);for(g in f)Er.call(f,g)&&!Cs.hasOwnProperty(g)&&(f[g]===void 0&&Z!==void 0?E[g]=Z[g]:E[g]=f[g])}var ee=arguments.length-2;if(ee===1)E.children=y;else if(ee>1){for(var te=Array(ee),oe=0;oe<ee;oe++)te[oe]=arguments[oe+2];E.children=te}return Gi(u.type,O,D,A,B,V,E)}function Ht(u){return typeof u=="object"&&u!==null&&u.$$typeof===t}var Ps=".",Wm=":";function Ym(u){var f=/[=:]/g,y={"=":"=0",":":"=2"},g=u.replace(f,function(E){return y[E]});return"$"+g}var Ts=!1,Vm=/\/+/g;function As(u){return u.replace(Vm,"$&/")}function Bi(u,f){return typeof u=="object"&&u!==null&&u.key!=null?(Xt(u.key),Ym(""+u.key)):f.toString(36)}function nn(u,f,y,g,E){var O=typeof u;(O==="undefined"||O==="boolean")&&(u=null);var D=!1;if(u===null)D=!0;else switch(O){case"string":case"number":D=!0;break;case"object":switch(u.$$typeof){case t:case r:D=!0}}if(D){var A=u,B=E(A),V=g===""?Ps+Bi(A,0):g;if(Je(B)){var Z="";V!=null&&(Z=As(V)+"/"),nn(B,f,Z,"",function(Gy){return Gy})}else B!=null&&(Ht(B)&&(B.key&&(!A||A.key!==B.key)&&Xt(B.key),B=Xm(B,y+(B.key&&(!A||A.key!==B.key)?As(""+B.key)+"/":"")+V)),f.push(B));return 1}var ee,te,oe=0,me=g===""?Ps:g+Wm;if(Je(u))for(var dn=0;dn<u.length;dn++)ee=u[dn],te=me+Bi(ee,dn),oe+=nn(ee,f,y,te,E);else{var Ki=w(u);if(typeof Ki=="function"){var ru=u;Ki===ru.entries&&(Ts||W("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Ts=!0);for(var jy=Ki.call(ru),nu,$y=0;!(nu=jy.next()).done;)ee=nu.value,te=me+Bi(ee,$y++),oe+=nn(ee,f,y,te,E)}else if(O==="object"){var iu=String(u);throw new Error("Objects are not valid as a React child (found: "+(iu==="[object Object]"?"object with keys {"+Object.keys(u).join(", ")+"}":iu)+"). If you meant to render a collection of children, use an array instead.")}}return oe}function on(u,f,y){if(u==null)return u;var g=[],E=0;return nn(u,g,"","",function(O){return f.call(y,O,E++)}),g}function zm(u){var f=0;return on(u,function(){f++}),f}function Jm(u,f,y){on(u,function(){f.apply(this,arguments)},y)}function Km(u){return on(u,function(f){return f})||[]}function Qm(u){if(!Ht(u))throw new Error("React.Children.only expected to receive a single React element child.");return u}function Zm(u){var f={$$typeof:s,_currentValue:u,_currentValue2:u,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};f.Provider={$$typeof:a,_context:f};var y=!1,g=!1,E=!1;{var O={$$typeof:s,_context:f};Object.defineProperties(O,{Provider:{get:function(){return g||(g=!0,S("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),f.Provider},set:function(D){f.Provider=D}},_currentValue:{get:function(){return f._currentValue},set:function(D){f._currentValue=D}},_currentValue2:{get:function(){return f._currentValue2},set:function(D){f._currentValue2=D}},_threadCount:{get:function(){return f._threadCount},set:function(D){f._threadCount=D}},Consumer:{get:function(){return y||(y=!0,S("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),f.Consumer}},displayName:{get:function(){return f.displayName},set:function(D){E||(W("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",D),E=!0)}}}),f.Consumer=O}return f._currentRenderer=null,f._currentRenderer2=null,f}var br=-1,Ui=0,Fs=1,ey=2;function ty(u){if(u._status===br){var f=u._result,y=f();if(y.then(function(O){if(u._status===Ui||u._status===br){var D=u;D._status=Fs,D._result=O}},function(O){if(u._status===Ui||u._status===br){var D=u;D._status=ey,D._result=O}}),u._status===br){var g=u;g._status=Ui,g._result=y}}if(u._status===Fs){var E=u._result;return E===void 0&&S(`lazy: Expected the result of a dynamic import() call. Instead received: %s
7
+ see https://github.com/jprichardson/node-fs-extra/issues/269`),Or.checkPaths(e,t,"copy",(i,o)=>{if(i)return n(i);let{srcStat:a,destStat:s}=o;Or.checkParentPaths(e,a,t,"copy",c=>c?n(c):r.filter?Bu(ju,s,e,t,r,n):ju(s,e,t,r,n))})}function ju(e,t,r,n,i){let o=Rr.dirname(r);Yg(o,(a,s)=>{if(a)return i(a);if(s)return mo(e,t,r,n,i);Wg(o,c=>c?i(c):mo(e,t,r,n,i))})}function Bu(e,t,r,n,i,o){Promise.resolve(i.filter(r,n)).then(a=>a?e(t,r,n,i,o):o(),a=>o(a))}function mo(e,t,r,n,i){return n.filter?Bu($u,e,t,r,n,i):$u(e,t,r,n,i)}function $u(e,t,r,n,i){(n.dereference?ke.stat:ke.lstat)(t,(a,s)=>{if(a)return i(a);if(s.isDirectory())return rv(s,e,t,r,n,i);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return Jg(s,e,t,r,n,i);if(s.isSymbolicLink())return ov(e,t,r,n,i)})}function Jg(e,t,r,n,i,o){return t?Kg(e,r,n,i,o):Uu(e,r,n,i,o)}function Kg(e,t,r,n,i){if(n.overwrite)ke.unlink(r,o=>o?i(o):Uu(e,t,r,n,i));else return n.errorOnExist?i(new Error(`'${r}' already exists`)):i()}function Uu(e,t,r,n,i){ke.copyFile(t,r,o=>o?i(o):n.preserveTimestamps?Qg(e.mode,t,r,i):_n(r,e.mode,i))}function Qg(e,t,r,n){return Zg(e)?ev(r,e,i=>i?n(i):Gu(e,t,r,n)):Gu(e,t,r,n)}function Zg(e){return(e&128)===0}function ev(e,t,r){return _n(e,t|128,r)}function Gu(e,t,r,n){tv(t,r,i=>i?n(i):_n(r,e,n))}function _n(e,t,r){return ke.chmod(e,t,r)}function tv(e,t,r){ke.stat(e,(n,i)=>n?r(n):Vg(t,i.atime,i.mtime,r))}function rv(e,t,r,n,i,o){return t?t&&!t.isDirectory()?o(new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`)):Xu(r,n,i,o):nv(e.mode,r,n,i,o)}function nv(e,t,r,n,i){ke.mkdir(r,o=>{if(o)return i(o);Xu(t,r,n,a=>a?i(a):_n(r,e,i))})}function Xu(e,t,r,n){ke.readdir(e,(i,o)=>i?n(i):Hu(o,e,t,r,n))}function Hu(e,t,r,n,i){let o=e.pop();return o?iv(e,o,t,r,n,i):i()}function iv(e,t,r,n,i,o){let a=Rr.join(r,t),s=Rr.join(n,t);Or.checkPaths(a,s,"copy",(c,d)=>{if(c)return o(c);let{destStat:l}=d;mo(l,a,s,i,p=>p?o(p):Hu(e,r,n,i,o))})}function ov(e,t,r,n,i){ke.readlink(t,(o,a)=>{if(o)return i(o);if(n.dereference&&(a=Rr.resolve(process.cwd(),a)),e)ke.readlink(r,(s,c)=>s?s.code==="EINVAL"||s.code==="UNKNOWN"?ke.symlink(a,r,i):i(s):(n.dereference&&(c=Rr.resolve(process.cwd(),c)),Or.isSrcSubdir(a,c)?i(new Error(`Cannot copy '${a}' to a subdirectory of itself, '${c}'.`)):e.isDirectory()&&Or.isSrcSubdir(c,a)?i(new Error(`Cannot overwrite '${c}' with '${a}'.`)):av(a,r,i)));else return ke.symlink(a,r,i)})}function av(e,t,r){ke.unlink(t,n=>n?r(n):ke.symlink(e,t,r))}Wu.exports=zg});var yo=v((Pw,Vu)=>{"use strict";var sv=Fe().fromCallback;Vu.exports={copy:sv(Yu())}});var nc=v((Aw,rc)=>{"use strict";var zu=Se(),Zu=require("path"),z=require("assert"),Ir=process.platform==="win32";function ec(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(r=>{e[r]=e[r]||zu[r],r=r+"Sync",e[r]=e[r]||zu[r]}),e.maxBusyTries=e.maxBusyTries||3}function go(e,t,r){let n=0;typeof t=="function"&&(r=t,t={}),z(e,"rimraf: missing path"),z.strictEqual(typeof e,"string","rimraf: path should be a string"),z.strictEqual(typeof r,"function","rimraf: callback function required"),z(t,"rimraf: invalid options argument provided"),z.strictEqual(typeof t,"object","rimraf: options should be object"),ec(t),Ju(e,t,function i(o){if(o){if((o.code==="EBUSY"||o.code==="ENOTEMPTY"||o.code==="EPERM")&&n<t.maxBusyTries){n++;let a=n*100;return setTimeout(()=>Ju(e,t,i),a)}o.code==="ENOENT"&&(o=null)}r(o)})}function Ju(e,t,r){z(e),z(t),z(typeof r=="function"),t.lstat(e,(n,i)=>{if(n&&n.code==="ENOENT")return r(null);if(n&&n.code==="EPERM"&&Ir)return Ku(e,t,n,r);if(i&&i.isDirectory())return bn(e,t,n,r);t.unlink(e,o=>{if(o){if(o.code==="ENOENT")return r(null);if(o.code==="EPERM")return Ir?Ku(e,t,o,r):bn(e,t,o,r);if(o.code==="EISDIR")return bn(e,t,o,r)}return r(o)})})}function Ku(e,t,r,n){z(e),z(t),z(typeof n=="function"),t.chmod(e,438,i=>{i?n(i.code==="ENOENT"?null:r):t.stat(e,(o,a)=>{o?n(o.code==="ENOENT"?null:r):a.isDirectory()?bn(e,t,r,n):t.unlink(e,n)})})}function Qu(e,t,r){let n;z(e),z(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()?En(e,t,r):t.unlinkSync(e)}function bn(e,t,r,n){z(e),z(t),z(typeof n=="function"),t.rmdir(e,i=>{i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?uv(e,t,n):i&&i.code==="ENOTDIR"?n(r):n(i)})}function uv(e,t,r){z(e),z(t),z(typeof r=="function"),t.readdir(e,(n,i)=>{if(n)return r(n);let o=i.length,a;if(o===0)return t.rmdir(e,r);i.forEach(s=>{go(Zu.join(e,s),t,c=>{if(!a){if(c)return r(a=c);--o===0&&t.rmdir(e,r)}})})})}function tc(e,t){let r;t=t||{},ec(t),z(e,"rimraf: missing path"),z.strictEqual(typeof e,"string","rimraf: path should be a string"),z(t,"rimraf: missing options"),z.strictEqual(typeof t,"object","rimraf: options should be object");try{r=t.lstatSync(e)}catch(n){if(n.code==="ENOENT")return;n.code==="EPERM"&&Ir&&Qu(e,t,n)}try{r&&r.isDirectory()?En(e,t,null):t.unlinkSync(e)}catch(n){if(n.code==="ENOENT")return;if(n.code==="EPERM")return Ir?Qu(e,t,n):En(e,t,n);if(n.code!=="EISDIR")throw n;En(e,t,n)}}function En(e,t,r){z(e),z(t);try{t.rmdirSync(e)}catch(n){if(n.code==="ENOTDIR")throw r;if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")cv(e,t);else if(n.code!=="ENOENT")throw n}}function cv(e,t){if(z(e),z(t),t.readdirSync(e).forEach(r=>tc(Zu.join(e,r),t)),Ir){let r=Date.now();do try{return t.rmdirSync(e,t)}catch{}while(Date.now()-r<500)}else return t.rmdirSync(e,t)}rc.exports=go;go.sync=tc});var Pr=v((Tw,oc)=>{"use strict";var lv=Fe().fromCallback,ic=nc();oc.exports={remove:lv(ic),removeSync:ic.sync}});var pc=v((Fw,dc)=>{"use strict";var fv=Fe().fromCallback,uc=Se(),cc=require("path"),lc=Ke(),fc=Pr(),ac=fv(function(t,r){r=r||function(){},uc.readdir(t,(n,i)=>{if(n)return lc.mkdirs(t,r);i=i.map(a=>cc.join(t,a)),o();function o(){let a=i.pop();if(!a)return r();fc.remove(a,s=>{if(s)return r(s);o()})}})});function sc(e){let t;try{t=uc.readdirSync(e)}catch{return lc.mkdirsSync(e)}t.forEach(r=>{r=cc.join(e,r),fc.removeSync(r)})}dc.exports={emptyDirSync:sc,emptydirSync:sc,emptyDir:ac,emptydir:ac}});var gc=v((Lw,yc)=>{"use strict";var dv=Fe().fromCallback,hc=require("path"),Et=Se(),mc=Ke();function pv(e,t){function r(){Et.writeFile(e,"",n=>{if(n)return t(n);t()})}Et.stat(e,(n,i)=>{if(!n&&i.isFile())return t();let o=hc.dirname(e);Et.stat(o,(a,s)=>{if(a)return a.code==="ENOENT"?mc.mkdirs(o,c=>{if(c)return t(c);r()}):t(a);s.isDirectory()?r():Et.readdir(o,c=>{if(c)return t(c)})})})}function hv(e){let t;try{t=Et.statSync(e)}catch{}if(t&&t.isFile())return;let r=hc.dirname(e);try{Et.statSync(r).isDirectory()||Et.readdirSync(r)}catch(n){if(n&&n.code==="ENOENT")mc.mkdirsSync(r);else throw n}Et.writeFileSync(e,"")}yc.exports={createFile:dv(pv),createFileSync:hv}});var Sc=v((kw,Ec)=>{"use strict";var mv=Fe().fromCallback,_c=require("path"),At=Se(),bc=Ke(),vc=bt().pathExists;function yv(e,t,r){function n(i,o){At.link(i,o,a=>{if(a)return r(a);r(null)})}vc(t,(i,o)=>{if(i)return r(i);if(o)return r(null);At.lstat(e,a=>{if(a)return a.message=a.message.replace("lstat","ensureLink"),r(a);let s=_c.dirname(t);vc(s,(c,d)=>{if(c)return r(c);if(d)return n(e,t);bc.mkdirs(s,l=>{if(l)return r(l);n(e,t)})})})})}function gv(e,t){if(At.existsSync(t))return;try{At.lstatSync(e)}catch(o){throw o.message=o.message.replace("lstat","ensureLink"),o}let n=_c.dirname(t);return At.existsSync(n)||bc.mkdirsSync(n),At.linkSync(e,t)}Ec.exports={createLink:mv(yv),createLinkSync:gv}});var Dc=v((Nw,wc)=>{"use strict";var St=require("path"),Ar=Se(),vv=bt().pathExists;function _v(e,t,r){if(St.isAbsolute(e))return Ar.lstat(e,n=>n?(n.message=n.message.replace("lstat","ensureSymlink"),r(n)):r(null,{toCwd:e,toDst:e}));{let n=St.dirname(t),i=St.join(n,e);return vv(i,(o,a)=>o?r(o):a?r(null,{toCwd:i,toDst:e}):Ar.lstat(e,s=>s?(s.message=s.message.replace("lstat","ensureSymlink"),r(s)):r(null,{toCwd:e,toDst:St.relative(n,e)})))}}function bv(e,t){let r;if(St.isAbsolute(e)){if(r=Ar.existsSync(e),!r)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{let n=St.dirname(t),i=St.join(n,e);if(r=Ar.existsSync(i),r)return{toCwd:i,toDst:e};if(r=Ar.existsSync(e),!r)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:St.relative(n,e)}}}wc.exports={symlinkPaths:_v,symlinkPathsSync:bv}});var Rc=v((Mw,xc)=>{"use strict";var Cc=Se();function Ev(e,t,r){if(r=typeof t=="function"?t:r,t=typeof t=="function"?!1:t,t)return r(null,t);Cc.lstat(e,(n,i)=>{if(n)return r(null,"file");t=i&&i.isDirectory()?"dir":"file",r(null,t)})}function Sv(e,t){let r;if(t)return t;try{r=Cc.lstatSync(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}xc.exports={symlinkType:Ev,symlinkTypeSync:Sv}});var Lc=v((qw,Fc)=>{"use strict";var wv=Fe().fromCallback,Ic=require("path"),Qt=Se(),Pc=Ke(),Dv=Pc.mkdirs,Cv=Pc.mkdirsSync,Ac=Dc(),xv=Ac.symlinkPaths,Rv=Ac.symlinkPathsSync,Tc=Rc(),Ov=Tc.symlinkType,Iv=Tc.symlinkTypeSync,Oc=bt().pathExists;function Pv(e,t,r,n){n=typeof r=="function"?r:n,r=typeof r=="function"?!1:r,Oc(t,(i,o)=>{if(i)return n(i);if(o)return n(null);xv(e,t,(a,s)=>{if(a)return n(a);e=s.toDst,Ov(s.toCwd,r,(c,d)=>{if(c)return n(c);let l=Ic.dirname(t);Oc(l,(p,m)=>{if(p)return n(p);if(m)return Qt.symlink(e,t,d,n);Dv(l,h=>{if(h)return n(h);Qt.symlink(e,t,d,n)})})})})})}function Av(e,t,r){if(Qt.existsSync(t))return;let i=Rv(e,t);e=i.toDst,r=Iv(i.toCwd,r);let o=Ic.dirname(t);return Qt.existsSync(o)||Cv(o),Qt.symlinkSync(e,t,r)}Fc.exports={createSymlink:wv(Pv),createSymlinkSync:Av}});var Nc=v((jw,kc)=>{"use strict";var Sn=gc(),wn=Sc(),Dn=Lc();kc.exports={createFile:Sn.createFile,createFileSync:Sn.createFileSync,ensureFile:Sn.createFile,ensureFileSync:Sn.createFileSync,createLink:wn.createLink,createLinkSync:wn.createLinkSync,ensureLink:wn.createLink,ensureLinkSync:wn.createLinkSync,createSymlink:Dn.createSymlink,createSymlinkSync:Dn.createSymlinkSync,ensureSymlink:Dn.createSymlink,ensureSymlinkSync:Dn.createSymlinkSync}});var Cn=v(($w,Mc)=>{function Tv(e,{EOL:t=`
8
+ `,finalEOL:r=!0,replacer:n=null,spaces:i}={}){let o=r?t:"";return JSON.stringify(e,n,i).replace(/\n/g,t)+o}function Fv(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}Mc.exports={stringify:Tv,stripBom:Fv}});var Gc=v((Gw,$c)=>{var Zt;try{Zt=Se()}catch{Zt=require("fs")}var xn=Fe(),{stringify:qc,stripBom:jc}=Cn();async function Lv(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||Zt,n="throws"in t?t.throws:!0,i=await xn.fromCallback(r.readFile)(e,t);i=jc(i);let o;try{o=JSON.parse(i,t?t.reviver:null)}catch(a){if(n)throw a.message=`${e}: ${a.message}`,a;return null}return o}var kv=xn.fromPromise(Lv);function Nv(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||Zt,n="throws"in t?t.throws:!0;try{let i=r.readFileSync(e,t);return i=jc(i),JSON.parse(i,t.reviver)}catch(i){if(n)throw i.message=`${e}: ${i.message}`,i;return null}}async function Mv(e,t,r={}){let n=r.fs||Zt,i=qc(t,r);await xn.fromCallback(n.writeFile)(e,i,r)}var qv=xn.fromPromise(Mv);function jv(e,t,r={}){let n=r.fs||Zt,i=qc(t,r);return n.writeFileSync(e,i,r)}var $v={readFile:kv,readFileSync:Nv,writeFile:qv,writeFileSync:jv};$c.exports=$v});var Uc=v((Bw,Bc)=>{"use strict";var Rn=Gc();Bc.exports={readJson:Rn.readFile,readJsonSync:Rn.readFileSync,writeJson:Rn.writeFile,writeJsonSync:Rn.writeFileSync}});var On=v((Uw,Wc)=>{"use strict";var Gv=Fe().fromCallback,Tr=Se(),Xc=require("path"),Hc=Ke(),Bv=bt().pathExists;function Uv(e,t,r,n){typeof r=="function"&&(n=r,r="utf8");let i=Xc.dirname(e);Bv(i,(o,a)=>{if(o)return n(o);if(a)return Tr.writeFile(e,t,r,n);Hc.mkdirs(i,s=>{if(s)return n(s);Tr.writeFile(e,t,r,n)})})}function Xv(e,...t){let r=Xc.dirname(e);if(Tr.existsSync(r))return Tr.writeFileSync(e,...t);Hc.mkdirsSync(r),Tr.writeFileSync(e,...t)}Wc.exports={outputFile:Gv(Uv),outputFileSync:Xv}});var Vc=v((Xw,Yc)=>{"use strict";var{stringify:Hv}=Cn(),{outputFile:Wv}=On();async function Yv(e,t,r={}){let n=Hv(t,r);await Wv(e,n,r)}Yc.exports=Yv});var Jc=v((Hw,zc)=>{"use strict";var{stringify:Vv}=Cn(),{outputFileSync:zv}=On();function Jv(e,t,r){let n=Vv(t,r);zv(e,n,r)}zc.exports=Jv});var Qc=v((Ww,Kc)=>{"use strict";var Kv=Fe().fromPromise,Oe=Uc();Oe.outputJson=Kv(Vc());Oe.outputJsonSync=Jc();Oe.outputJSON=Oe.outputJson;Oe.outputJSONSync=Oe.outputJsonSync;Oe.writeJSON=Oe.writeJson;Oe.writeJSONSync=Oe.writeJsonSync;Oe.readJSON=Oe.readJson;Oe.readJSONSync=Oe.readJsonSync;Kc.exports=Oe});var il=v((Yw,nl)=>{"use strict";var tl=Se(),Qv=require("path"),Zv=ho().copySync,rl=Pr().removeSync,e0=Ke().mkdirpSync,Zc=Dr();function t0(e,t,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:i}=Zc.checkPathsSync(e,t,"move");return Zc.checkParentPathsSync(e,i,t,"move"),e0(Qv.dirname(t)),r0(e,t,n)}function r0(e,t,r){if(r)return rl(t),el(e,t,r);if(tl.existsSync(t))throw new Error("dest already exists.");return el(e,t,r)}function el(e,t,r){try{tl.renameSync(e,t)}catch(n){if(n.code!=="EXDEV")throw n;return n0(e,t,r)}}function n0(e,t,r){return Zv(e,t,{overwrite:r,errorOnExist:!0}),rl(e)}nl.exports=t0});var al=v((Vw,ol)=>{"use strict";ol.exports={moveSync:il()}});var fl=v((zw,ll)=>{"use strict";var i0=Se(),o0=require("path"),a0=yo().copy,cl=Pr().remove,s0=Ke().mkdirp,u0=bt().pathExists,sl=Dr();function c0(e,t,r,n){typeof r=="function"&&(n=r,r={});let i=r.overwrite||r.clobber||!1;sl.checkPaths(e,t,"move",(o,a)=>{if(o)return n(o);let{srcStat:s}=a;sl.checkParentPaths(e,s,t,"move",c=>{if(c)return n(c);s0(o0.dirname(t),d=>d?n(d):l0(e,t,i,n))})})}function l0(e,t,r,n){if(r)return cl(t,i=>i?n(i):ul(e,t,r,n));u0(t,(i,o)=>i?n(i):o?n(new Error("dest already exists.")):ul(e,t,r,n))}function ul(e,t,r,n){i0.rename(e,t,i=>i?i.code!=="EXDEV"?n(i):f0(e,t,r,n):n())}function f0(e,t,r,n){a0(e,t,{overwrite:r,errorOnExist:!0},o=>o?n(o):cl(e,n))}ll.exports=c0});var pl=v((Jw,dl)=>{"use strict";var d0=Fe().fromCallback;dl.exports={move:d0(fl())}});var Tt=v((Kw,vo)=>{"use strict";vo.exports={...wr(),...ho(),...yo(),...pc(),...Nc(),...Qc(),...Ke(),...al(),...pl(),...On(),...bt(),...Pr()};var hl=require("fs");Object.getOwnPropertyDescriptor(hl,"promises")&&Object.defineProperty(vo.exports,"promises",{get(){return hl.promises}})});var yl=v((Qw,ml)=>{"use strict";var p0=/[|\\{}()[\]^$+*?.]/g;ml.exports=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(p0,"\\$&")}});var vl=v((Zw,gl)=>{"use strict";gl.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 _o=v((e1,Sl)=>{var Ft=vl(),El={};for(In in Ft)Ft.hasOwnProperty(In)&&(El[Ft[In]]=In);var In,C=Sl.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 C)if(C.hasOwnProperty(Ie)){if(!("channels"in C[Ie]))throw new Error("missing channels property: "+Ie);if(!("labels"in C[Ie]))throw new Error("missing channel labels property: "+Ie);if(C[Ie].labels.length!==C[Ie].channels)throw new Error("channel and label counts mismatch: "+Ie);_l=C[Ie].channels,bl=C[Ie].labels,delete C[Ie].channels,delete C[Ie].labels,Object.defineProperty(C[Ie],"channels",{value:_l}),Object.defineProperty(C[Ie],"labels",{value:bl})}var _l,bl,Ie;C.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),a=o-i,s,c,d;return o===i?s=0:t===o?s=(r-n)/a:r===o?s=2+(n-t)/a:n===o&&(s=4+(t-r)/a),s=Math.min(s*60,360),s<0&&(s+=360),d=(i+o)/2,o===i?c=0:d<=.5?c=a/(o+i):c=a/(2-o-i),[s,c*100,d*100]};C.rgb.hsv=function(e){var t,r,n,i,o,a=e[0]/255,s=e[1]/255,c=e[2]/255,d=Math.max(a,s,c),l=d-Math.min(a,s,c),p=function(m){return(d-m)/6/l+1/2};return l===0?i=o=0:(o=l/d,t=p(a),r=p(s),n=p(c),a===d?i=n-r:s===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]};C.rgb.hwb=function(e){var t=e[0],r=e[1],n=e[2],i=C.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]};C.rgb.cmyk=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i,o,a,s;return s=Math.min(1-t,1-r,1-n),i=(1-t-s)/(1-s)||0,o=(1-r-s)/(1-s)||0,a=(1-n-s)/(1-s)||0,[i*100,o*100,a*100,s*100]};function h0(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}C.rgb.keyword=function(e){var t=El[e];if(t)return t;var r=1/0,n;for(var i in Ft)if(Ft.hasOwnProperty(i)){var o=Ft[i],a=h0(e,o);a<r&&(r=a,n=i)}return n};C.keyword.rgb=function(e){return Ft[e]};C.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,a=t*.0193+r*.1192+n*.9505;return[i*100,o*100,a*100]};C.rgb.lab=function(e){var t=C.rgb.xyz(e),r=t[0],n=t[1],i=t[2],o,a,s;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,a=500*(r-n),s=200*(n-i),[o,a,s]};C.hsl.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,o,a,s,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,s=[0,0,0];for(var d=0;d<3;d++)a=t+1/3*-(d-1),a<0&&a++,a>1&&a--,6*a<1?c=i+(o-i)*6*a:2*a<1?c=o:3*a<2?c=i+(o-i)*(2/3-a)*6:c=i,s[d]=c*255;return s};C.hsl.hsv=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,i=r,o=Math.max(n,.01),a,s;return n*=2,r*=n<=1?n:2-n,i*=o<=1?o:2-o,s=(n+r)/2,a=n===0?2*i/(o+i):2*r/(n+r),[t,a*100,s*100]};C.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),a=255*n*(1-r),s=255*n*(1-r*o),c=255*n*(1-r*(1-o));switch(n*=255,i){case 0:return[n,c,a];case 1:return[s,n,a];case 2:return[a,n,c];case 3:return[a,s,n];case 4:return[c,a,n];case 5:return[n,a,s]}};C.hsv.hsl=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01),o,a,s;return s=(2-r)*n,o=(2-r)*i,a=r*i,a/=o<=1?o:2-o,a=a||0,s/=2,[t,a*100,s*100]};C.hwb.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i=r+n,o,a,s,c;i>1&&(r/=i,n/=i),o=Math.floor(6*t),a=1-n,s=6*t-o,o&1&&(s=1-s),c=r+s*(a-r);var d,l,p;switch(o){default:case 6:case 0:d=a,l=c,p=r;break;case 1:d=c,l=a,p=r;break;case 2:d=r,l=a,p=c;break;case 3:d=r,l=c,p=a;break;case 4:d=c,l=r,p=a;break;case 5:d=a,l=r,p=c;break}return[d*255,l*255,p*255]};C.cmyk.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100,o,a,s;return o=1-Math.min(1,t*(1-i)+i),a=1-Math.min(1,r*(1-i)+i),s=1-Math.min(1,n*(1-i)+i),[o*255,a*255,s*255]};C.xyz.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,i,o,a;return i=t*3.2406+r*-1.5372+n*-.4986,o=t*-.9689+r*1.8758+n*.0415,a=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,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a*12.92,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),[i*255,o*255,a*255]};C.xyz.lab=function(e){var t=e[0],r=e[1],n=e[2],i,o,a;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),a=200*(r-n),[i,o,a]};C.lab.xyz=function(e){var t=e[0],r=e[1],n=e[2],i,o,a;o=(t+16)/116,i=r/500+o,a=o-n/200;var s=Math.pow(o,3),c=Math.pow(i,3),d=Math.pow(a,3);return o=s>.008856?s:(o-16/116)/7.787,i=c>.008856?c:(i-16/116)/7.787,a=d>.008856?d:(a-16/116)/7.787,i*=95.047,o*=100,a*=108.883,[i,o,a]};C.lab.lch=function(e){var t=e[0],r=e[1],n=e[2],i,o,a;return i=Math.atan2(n,r),o=i*360/2/Math.PI,o<0&&(o+=360),a=Math.sqrt(r*r+n*n),[t,a,o]};C.lch.lab=function(e){var t=e[0],r=e[1],n=e[2],i,o,a;return a=n/360*2*Math.PI,i=r*Math.cos(a),o=r*Math.sin(a),[t,i,o]};C.rgb.ansi16=function(e){var t=e[0],r=e[1],n=e[2],i=1 in arguments?arguments[1]:C.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};C.hsv.ansi16=function(e){return C.rgb.ansi16(C.hsv.rgb(e),e[2])};C.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};C.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]};C.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]};C.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};C.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(s){return s+s}).join(""));var n=parseInt(r,16),i=n>>16&255,o=n>>8&255,a=n&255;return[i,o,a]};C.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),a=i-o,s,c;return a<1?s=o/(1-a):s=0,a<=0?c=0:i===t?c=(r-n)/a%6:i===r?c=2+(n-t)/a:c=4+(t-r)/a+4,c/=6,c%=1,[c*360,a*100,s*100]};C.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]};C.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]};C.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,a=o%1,s=1-a,c=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=a,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=a;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=a,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return c=(1-r)*n,[(r*i[0]+c)*255,(r*i[1]+c)*255,(r*i[2]+c)*255]};C.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]};C.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]};C.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]};C.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]};C.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};C.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};C.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};C.gray.hsl=C.gray.hsv=function(e){return[0,0,e[0]]};C.gray.hwb=function(e){return[0,100,e[0]]};C.gray.cmyk=function(e){return[0,0,0,e[0]]};C.gray.lab=function(e){return[e[0],0,0]};C.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};C.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[t/255*100]}});var Dl=v((t1,wl)=>{var Pn=_o();function m0(){for(var e={},t=Object.keys(Pn),r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function y0(e){var t=m0(),r=[e];for(t[e].distance=0;r.length;)for(var n=r.pop(),i=Object.keys(Pn[n]),o=i.length,a=0;a<o;a++){var s=i[a],c=t[s];c.distance===-1&&(c.distance=t[n].distance+1,c.parent=n,r.unshift(s))}return t}function g0(e,t){return function(r){return t(e(r))}}function v0(e,t){for(var r=[t[e].parent,e],n=Pn[t[e].parent][e],i=t[e].parent;t[i].parent;)r.unshift(t[i].parent),n=g0(Pn[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}wl.exports=function(e){for(var t=y0(e),r={},n=Object.keys(t),i=n.length,o=0;o<i;o++){var a=n[o],s=t[a];s.parent!==null&&(r[a]=v0(a,t))}return r}});var xl=v((r1,Cl)=>{var bo=_o(),_0=Dl(),er={},b0=Object.keys(bo);function E0(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 S0(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}b0.forEach(function(e){er[e]={},Object.defineProperty(er[e],"channels",{value:bo[e].channels}),Object.defineProperty(er[e],"labels",{value:bo[e].labels});var t=_0(e),r=Object.keys(t);r.forEach(function(n){var i=t[n];er[e][n]=S0(i),er[e][n].raw=E0(i)})});Cl.exports=er});var Ol=v((n1,Rl)=>{"use strict";var tr=xl(),An=(e,t)=>function(){return`\x1B[${e.apply(tr,arguments)+t}m`},Tn=(e,t)=>function(){let r=e.apply(tr,arguments);return`\x1B[${38+t};5;${r}m`},Fn=(e,t)=>function(){let r=e.apply(tr,arguments);return`\x1B[${38+t};2;${r[0]};${r[1]};${r[2]}m`};function w0(){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 a of Object.keys(o)){let s=o[a];t[a]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},o[a]=t[a],e.set(s[0],s[1])}Object.defineProperty(t,i,{value:o,enumerable:!1}),Object.defineProperty(t,"codes",{value:e,enumerable:!1})}let r=i=>i,n=(i,o,a)=>[i,o,a];t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",t.color.ansi={ansi:An(r,0)},t.color.ansi256={ansi256:Tn(r,0)},t.color.ansi16m={rgb:Fn(n,0)},t.bgColor.ansi={ansi:An(r,10)},t.bgColor.ansi256={ansi256:Tn(r,10)},t.bgColor.ansi16m={rgb:Fn(n,10)};for(let i of Object.keys(tr)){if(typeof tr[i]!="object")continue;let o=tr[i];i==="ansi16"&&(i="ansi"),"ansi16"in o&&(t.color.ansi[i]=An(o.ansi16,0),t.bgColor.ansi[i]=An(o.ansi16,10)),"ansi256"in o&&(t.color.ansi256[i]=Tn(o.ansi256,0),t.bgColor.ansi256[i]=Tn(o.ansi256,10)),"rgb"in o&&(t.color.ansi16m[i]=Fn(o.rgb,0),t.bgColor.ansi16m[i]=Fn(o.rgb,10))}return t}Object.defineProperty(Rl,"exports",{enumerable:!0,get:w0})});var Pl=v((i1,Il)=>{"use strict";Il.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 Tl=v((o1,Al)=>{"use strict";var D0=require("os"),Qe=Pl(),De=process.env,rr;Qe("no-color")||Qe("no-colors")||Qe("color=false")?rr=!1:(Qe("color")||Qe("colors")||Qe("color=true")||Qe("color=always"))&&(rr=!0);"FORCE_COLOR"in De&&(rr=De.FORCE_COLOR.length===0||parseInt(De.FORCE_COLOR,10)!==0);function C0(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function x0(e){if(rr===!1)return 0;if(Qe("color=16m")||Qe("color=full")||Qe("color=truecolor"))return 3;if(Qe("color=256"))return 2;if(e&&!e.isTTY&&rr!==!0)return 0;let t=rr?1:0;if(process.platform==="win32"){let r=D0.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in De)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in De)||De.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in De)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(De.TEAMCITY_VERSION)?1:0;if(De.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in De){let r=parseInt((De.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(De.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(De.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(De.TERM)||"COLORTERM"in De?1:(De.TERM==="dumb",t)}function Eo(e){let t=x0(e);return C0(t)}Al.exports={supportsColor:Eo,stdout:Eo(process.stdout),stderr:Eo(process.stderr)}});var Ml=v((a1,Nl)=>{"use strict";var R0=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Fl=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,O0=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,I0=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,P0=new Map([["n",`
9
+ `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function kl(e){return e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):P0.get(e)||e}function A0(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(O0))r.push(i[2].replace(I0,(a,s,c)=>s?kl(s):c));else throw new Error(`Invalid Chalk template style argument: ${o} (in style '${e}')`);return r}function T0(e){Fl.lastIndex=0;let t=[],r;for(;(r=Fl.exec(e))!==null;){let n=r[1];if(r[2]){let i=A0(n,r[2]);t.push([n].concat(i))}else t.push([n])}return t}function Ll(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}Nl.exports=(e,t)=>{let r=[],n=[],i=[];if(t.replace(R0,(o,a,s,c,d,l)=>{if(a)i.push(kl(a));else if(c){let p=i.join("");i=[],n.push(r.length===0?p:Ll(e,r)(p)),r.push({inverse:s,styles:T0(c)})}else if(d){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(Ll(e,r)(i.join(""))),i=[],r.pop()}else i.push(l)}),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 kn=v((s1,Lr)=>{"use strict";var wo=yl(),se=Ol(),So=Tl().stdout,F0=Ml(),jl=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),$l=["ansi","ansi","ansi256","ansi16m"],Gl=new Set(["gray"]),nr=Object.create(null);function ql(e,t){t=t||{};let r=So?So.level:0;e.level=t.level===void 0?r:t.level,e.enabled="enabled"in t?t.enabled:e.level>0}function Fr(e){if(!this||!(this instanceof Fr)||this.template){let t={};return ql(t,e),t.template=function(){let r=[].slice.call(arguments);return N0.apply(null,[t.template].concat(r))},Object.setPrototypeOf(t,Fr.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=Fr,t.template}ql(this,e)}jl&&(se.blue.open="\x1B[94m");for(let e of Object.keys(se))se[e].closeRe=new RegExp(wo(se[e].close),"g"),nr[e]={get(){let t=se[e];return Ln.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}};nr.visible={get(){return Ln.call(this,this._styles||[],!0,"visible")}};se.color.closeRe=new RegExp(wo(se.color.close),"g");for(let e of Object.keys(se.color.ansi))Gl.has(e)||(nr[e]={get(){let t=this.level;return function(){let n={open:se.color[$l[t]][e].apply(null,arguments),close:se.color.close,closeRe:se.color.closeRe};return Ln.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});se.bgColor.closeRe=new RegExp(wo(se.bgColor.close),"g");for(let e of Object.keys(se.bgColor.ansi)){if(Gl.has(e))continue;let t="bg"+e[0].toUpperCase()+e.slice(1);nr[t]={get(){let r=this.level;return function(){let i={open:se.bgColor[$l[r]][e].apply(null,arguments),close:se.bgColor.close,closeRe:se.bgColor.closeRe};return Ln.call(this,this._styles?this._styles.concat(i):[i],this._empty,e)}}}}var L0=Object.defineProperties(()=>{},nr);function Ln(e,t,r){let n=function(){return k0.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__=L0,n}function k0(){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=se.dim.open;jl&&this.hasGrey&&(se.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 se.dim.open=n,r}function N0(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 F0(e,n.join(""))}Object.defineProperties(Fr.prototype,nr);Lr.exports=Fr();Lr.exports.supportsColor=So;Lr.exports.default=Lr.exports});var Ul=v((u1,Bl)=>{var Do=class{constructor(t){this.value=t,this.next=void 0}},Co=class{constructor(){this.clear()}enqueue(t){let r=new Do(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}};Bl.exports=Co});var xo=v((c1,Xl)=>{"use strict";var M0=Ul(),q0=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 M0,r=0,n=()=>{r--,t.size>0&&t.dequeue()()},i=async(s,c,...d)=>{r++;let l=(async()=>s(...d))();c(l);try{await l}catch{}n()},o=(s,c,...d)=>{t.enqueue(i.bind(null,s,c,...d)),(async()=>(await Promise.resolve(),r<e&&t.size>0&&t.dequeue()()))()},a=(s,...c)=>new Promise(d=>{o(s,d,...c)});return Object.defineProperties(a,{activeCount:{get:()=>r},pendingCount:{get:()=>t.size},clearQueue:{value:()=>{t.clear()}}}),a};Xl.exports=q0});var Yl=v((l1,Wl)=>{"use strict";var Hl=xo(),Nn=class extends Error{constructor(t){super(),this.value=t}},j0=async(e,t)=>t(await e),$0=async e=>{let t=await Promise.all(e);if(t[1]===!0)throw new Nn(t[0]);return!1},G0=async(e,t,r)=>{r={concurrency:1/0,preserveOrder:!0,...r};let n=Hl(r.concurrency),i=[...e].map(a=>[a,n(j0,a,t)]),o=Hl(r.preserveOrder?1:1/0);try{await Promise.all(i.map(a=>o($0,a)))}catch(a){if(a instanceof Nn)return a.value;throw a}};Wl.exports=G0});var Zl=v((f1,Ro)=>{"use strict";var Vl=require("path"),Mn=require("fs"),{promisify:zl}=require("util"),B0=Yl(),U0=zl(Mn.stat),X0=zl(Mn.lstat),Jl={directory:"isDirectory",file:"isFile"};function Kl({type:e}){if(!(e in Jl))throw new Error(`Invalid type specified: ${e}`)}var Ql=(e,t)=>e===void 0||t[Jl[e]]();Ro.exports=async(e,t)=>{t={cwd:process.cwd(),type:"file",allowSymlinks:!0,...t},Kl(t);let r=t.allowSymlinks?U0:X0;return B0(e,async n=>{try{let i=await r(Vl.resolve(t.cwd,n));return Ql(t.type,i)}catch{return!1}},t)};Ro.exports.sync=(e,t)=>{t={cwd:process.cwd(),allowSymlinks:!0,type:"file",...t},Kl(t);let r=t.allowSymlinks?Mn.statSync:Mn.lstatSync;for(let n of e)try{let i=r(Vl.resolve(t.cwd,n));if(Ql(t.type,i))return n}catch{}}});var tf=v((d1,Oo)=>{"use strict";var ef=require("fs"),{promisify:H0}=require("util"),W0=H0(ef.access);Oo.exports=async e=>{try{return await W0(e),!0}catch{return!1}};Oo.exports.sync=e=>{try{return ef.accessSync(e),!0}catch{return!1}}});var Po=v((p1,ir)=>{"use strict";var wt=require("path"),qn=Zl(),rf=tf(),Io=Symbol("findUp.stop");ir.exports=async(e,t={})=>{let r=wt.resolve(t.cwd||""),{root:n}=wt.parse(r),i=[].concat(e),o=async a=>{if(typeof e!="function")return qn(i,a);let s=await e(a.cwd);return typeof s=="string"?qn([s],a):s};for(;;){let a=await o({...t,cwd:r});if(a===Io)return;if(a)return wt.resolve(r,a);if(r===n)return;r=wt.dirname(r)}};ir.exports.sync=(e,t={})=>{let r=wt.resolve(t.cwd||""),{root:n}=wt.parse(r),i=[].concat(e),o=a=>{if(typeof e!="function")return qn.sync(i,a);let s=e(a.cwd);return typeof s=="string"?qn.sync([s],a):s};for(;;){let a=o({...t,cwd:r});if(a===Io)return;if(a)return wt.resolve(r,a);if(r===n)return;r=wt.dirname(r)}};ir.exports.exists=rf;ir.exports.sync.exists=rf.sync;ir.exports.stop=Io});var jn=v((h1,Ao)=>{"use strict";var nf=require("path"),of=Po(),Y0=async e=>{let t=await of("package.json",{cwd:e});return t&&nf.dirname(t)};Ao.exports=Y0;Ao.exports.sync=e=>{let t=of.sync("package.json",{cwd:e});return t&&nf.dirname(t)}});var uf=v((m1,sf)=>{"use strict";var{FORCE_COLOR:V0,NODE_DISABLE_COLORS:z0,TERM:J0}=process.env,Y={enabled:!z0&&J0!=="dumb"&&V0!=="0",reset:J(0,0),bold:J(1,22),dim:J(2,22),italic:J(3,23),underline:J(4,24),inverse:J(7,27),hidden:J(8,28),strikethrough:J(9,29),black:J(30,39),red:J(31,39),green:J(32,39),yellow:J(33,39),blue:J(34,39),magenta:J(35,39),cyan:J(36,39),white:J(37,39),gray:J(90,39),grey:J(90,39),bgBlack:J(40,49),bgRed:J(41,49),bgGreen:J(42,49),bgYellow:J(43,49),bgBlue:J(44,49),bgMagenta:J(45,49),bgCyan:J(46,49),bgWhite:J(47,49)};function af(e,t){let r=0,n,i="",o="";for(;r<e.length;r++)n=e[r],i+=n.open,o+=n.close,t.includes(n.close)&&(t=t.replace(n.rgx,n.close+n.open));return i+t+o}function K0(e,t){let r={has:e,keys:t};return r.reset=Y.reset.bind(r),r.bold=Y.bold.bind(r),r.dim=Y.dim.bind(r),r.italic=Y.italic.bind(r),r.underline=Y.underline.bind(r),r.inverse=Y.inverse.bind(r),r.hidden=Y.hidden.bind(r),r.strikethrough=Y.strikethrough.bind(r),r.black=Y.black.bind(r),r.red=Y.red.bind(r),r.green=Y.green.bind(r),r.yellow=Y.yellow.bind(r),r.blue=Y.blue.bind(r),r.magenta=Y.magenta.bind(r),r.cyan=Y.cyan.bind(r),r.white=Y.white.bind(r),r.gray=Y.gray.bind(r),r.grey=Y.grey.bind(r),r.bgBlack=Y.bgBlack.bind(r),r.bgRed=Y.bgRed.bind(r),r.bgGreen=Y.bgGreen.bind(r),r.bgYellow=Y.bgYellow.bind(r),r.bgBlue=Y.bgBlue.bind(r),r.bgMagenta=Y.bgMagenta.bind(r),r.bgCyan=Y.bgCyan.bind(r),r.bgWhite=Y.bgWhite.bind(r),r}function J(e,t){let r={open:`\x1B[${e}m`,close:`\x1B[${t}m`,rgx:new RegExp(`\\x1b\\[${t}m`,"g")};return function(n){return this!==void 0&&this.has!==void 0?(this.has.includes(e)||(this.has.push(e),this.keys.push(r)),n===void 0?this:Y.enabled?af(this.keys,n+""):n+""):n===void 0?K0([e],[r]):Y.enabled?af([r],n+""):n+""}}sf.exports=Y});var _f=v($=>{"use strict";var kr=Symbol.for("react.element"),Q0=Symbol.for("react.portal"),Z0=Symbol.for("react.fragment"),e_=Symbol.for("react.strict_mode"),t_=Symbol.for("react.profiler"),r_=Symbol.for("react.provider"),n_=Symbol.for("react.context"),i_=Symbol.for("react.forward_ref"),o_=Symbol.for("react.suspense"),a_=Symbol.for("react.memo"),s_=Symbol.for("react.lazy"),cf=Symbol.iterator;function u_(e){return e===null||typeof e!="object"?null:(e=cf&&e[cf]||e["@@iterator"],typeof e=="function"?e:null)}var df={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},pf=Object.assign,hf={};function or(e,t,r){this.props=e,this.context=t,this.refs=hf,this.updater=r||df}or.prototype.isReactComponent={};or.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};or.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function mf(){}mf.prototype=or.prototype;function Fo(e,t,r){this.props=e,this.context=t,this.refs=hf,this.updater=r||df}var Lo=Fo.prototype=new mf;Lo.constructor=Fo;pf(Lo,or.prototype);Lo.isPureReactComponent=!0;var lf=Array.isArray,yf=Object.prototype.hasOwnProperty,ko={current:null},gf={key:!0,ref:!0,__self:!0,__source:!0};function vf(e,t,r){var n,i={},o=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)yf.call(t,n)&&!gf.hasOwnProperty(n)&&(i[n]=t[n]);var s=arguments.length-2;if(s===1)i.children=r;else if(1<s){for(var c=Array(s),d=0;d<s;d++)c[d]=arguments[d+2];i.children=c}if(e&&e.defaultProps)for(n in s=e.defaultProps,s)i[n]===void 0&&(i[n]=s[n]);return{$$typeof:kr,type:e,key:o,ref:a,props:i,_owner:ko.current}}function c_(e,t){return{$$typeof:kr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function No(e){return typeof e=="object"&&e!==null&&e.$$typeof===kr}function l_(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var ff=/\/+/g;function To(e,t){return typeof e=="object"&&e!==null&&e.key!=null?l_(""+e.key):t.toString(36)}function Gn(e,t,r,n,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case kr:case Q0:a=!0}}if(a)return a=e,i=i(a),e=n===""?"."+To(a,0):n,lf(i)?(r="",e!=null&&(r=e.replace(ff,"$&/")+"/"),Gn(i,t,r,"",function(d){return d})):i!=null&&(No(i)&&(i=c_(i,r+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(ff,"$&/")+"/")+e)),t.push(i)),1;if(a=0,n=n===""?".":n+":",lf(e))for(var s=0;s<e.length;s++){o=e[s];var c=n+To(o,s);a+=Gn(o,t,r,c,i)}else if(c=u_(e),typeof c=="function")for(e=c.call(e),s=0;!(o=e.next()).done;)o=o.value,c=n+To(o,s++),a+=Gn(o,t,r,c,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function $n(e,t,r){if(e==null)return e;var n=[],i=0;return Gn(e,n,"","",function(o){return t.call(r,o,i++)}),n}function f_(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Pe={current:null},Bn={transition:null},d_={ReactCurrentDispatcher:Pe,ReactCurrentBatchConfig:Bn,ReactCurrentOwner:ko};$.Children={map:$n,forEach:function(e,t,r){$n(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return $n(e,function(){t++}),t},toArray:function(e){return $n(e,function(t){return t})||[]},only:function(e){if(!No(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};$.Component=or;$.Fragment=Z0;$.Profiler=t_;$.PureComponent=Fo;$.StrictMode=e_;$.Suspense=o_;$.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=d_;$.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=pf({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=ko.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)yf.call(t,c)&&!gf.hasOwnProperty(c)&&(n[c]=t[c]===void 0&&s!==void 0?s[c]:t[c])}var c=arguments.length-2;if(c===1)n.children=r;else if(1<c){s=Array(c);for(var d=0;d<c;d++)s[d]=arguments[d+2];n.children=s}return{$$typeof:kr,type:e.type,key:i,ref:o,props:n,_owner:a}};$.createContext=function(e){return e={$$typeof:n_,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:r_,_context:e},e.Consumer=e};$.createElement=vf;$.createFactory=function(e){var t=vf.bind(null,e);return t.type=e,t};$.createRef=function(){return{current:null}};$.forwardRef=function(e){return{$$typeof:i_,render:e}};$.isValidElement=No;$.lazy=function(e){return{$$typeof:s_,_payload:{_status:-1,_result:e},_init:f_}};$.memo=function(e,t){return{$$typeof:a_,type:e,compare:t===void 0?null:t}};$.startTransition=function(e){var t=Bn.transition;Bn.transition={};try{e()}finally{Bn.transition=t}};$.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};$.useCallback=function(e,t){return Pe.current.useCallback(e,t)};$.useContext=function(e){return Pe.current.useContext(e)};$.useDebugValue=function(){};$.useDeferredValue=function(e){return Pe.current.useDeferredValue(e)};$.useEffect=function(e,t){return Pe.current.useEffect(e,t)};$.useId=function(){return Pe.current.useId()};$.useImperativeHandle=function(e,t,r){return Pe.current.useImperativeHandle(e,t,r)};$.useInsertionEffect=function(e,t){return Pe.current.useInsertionEffect(e,t)};$.useLayoutEffect=function(e,t){return Pe.current.useLayoutEffect(e,t)};$.useMemo=function(e,t){return Pe.current.useMemo(e,t)};$.useReducer=function(e,t,r){return Pe.current.useReducer(e,t,r)};$.useRef=function(e){return Pe.current.useRef(e)};$.useState=function(e){return Pe.current.useState(e)};$.useSyncExternalStore=function(e,t,r){return Pe.current.useSyncExternalStore(e,t,r)};$.useTransition=function(){return Pe.current.useTransition()};$.version="18.2.0"});var bf=v((G,Un)=>{"use strict";process.env.NODE_ENV!=="production"&&function(){"use strict";typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e="18.2.0",t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),_=Symbol.iterator,E="@@iterator";function w(u){if(u===null||typeof u!="object")return null;var f=_&&u[_]||u[E];return typeof f=="function"?f:null}var I={current:null},F={transition:null},A={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},L={current:null},K={},ue=null;function $e(u){ue=u}K.setExtraStackFrame=function(u){ue=u},K.getCurrentStack=null,K.getStackAddendum=function(){var u="";ue&&(u+=ue);var f=K.getCurrentStack;return f&&(u+=f()||""),u};var le=!1,x=!1,q=!1,M=!1,Q=!1,U={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:F,ReactCurrentOwner:L};U.ReactDebugCurrentFrame=K,U.ReactCurrentActQueue=A;function W(u){{for(var f=arguments.length,y=new Array(f>1?f-1:0),g=1;g<f;g++)y[g-1]=arguments[g];H("warn",u,y)}}function S(u){{for(var f=arguments.length,y=new Array(f>1?f-1:0),g=1;g<f;g++)y[g-1]=arguments[g];H("error",u,y)}}function H(u,f,y){{var g=U.ReactDebugCurrentFrame,b=g.getStackAddendum();b!==""&&(f+="%s",y=y.concat([b]));var O=y.map(function(D){return String(D)});O.unshift("Warning: "+f),Function.prototype.apply.call(console[u],console,O)}}var k={};function R(u,f){{var y=u.constructor,g=y&&(y.displayName||y.name)||"ReactClass",b=g+"."+f;if(k[b])return;S("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",f,g),k[b]=!0}}var j={isMounted:function(u){return!1},enqueueForceUpdate:function(u,f,y){R(u,"forceUpdate")},enqueueReplaceState:function(u,f,y,g){R(u,"replaceState")},enqueueSetState:function(u,f,y,g){R(u,"setState")}},me=Object.assign,nt={};Object.freeze(nt);function He(u,f,y){this.props=u,this.context=f,this.refs=nt,this.updater=y||j}He.prototype.isReactComponent={},He.prototype.setState=function(u,f){if(typeof u!="object"&&typeof u!="function"&&u!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,u,f,"setState")},He.prototype.forceUpdate=function(u){this.updater.enqueueForceUpdate(this,u,"forceUpdate")};{var ut={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},Ot=function(u,f){Object.defineProperty(He.prototype,u,{get:function(){W("%s(...) is deprecated in plain JavaScript React classes. %s",f[0],f[1])}})};for(var Ee in ut)ut.hasOwnProperty(Ee)&&Ot(Ee,ut[Ee])}function Zr(){}Zr.prototype=He.prototype;function mt(u,f,y){this.props=u,this.context=f,this.refs=nt,this.updater=y||j}var yt=mt.prototype=new Zr;yt.constructor=mt,me(yt,He.prototype),yt.isPureReactComponent=!0;function ze(){var u={current:null};return Object.seal(u),u}var Ut=Array.isArray;function Je(u){return Ut(u)}function en(u){{var f=typeof Symbol=="function"&&Symbol.toStringTag,y=f&&u[Symbol.toStringTag]||u.constructor.name||"Object";return y}}function vr(u){try{return _r(u),!1}catch{return!0}}function _r(u){return""+u}function Xt(u){if(vr(u))return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",en(u)),_r(u)}function We(u,f,y){var g=u.displayName;if(g)return g;var b=f.displayName||f.name||"";return b!==""?y+"("+b+")":y}function ws(u){return u.displayName||"Context"}function gt(u){if(u==null)return null;if(typeof u.tag=="number"&&S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u;switch(u){case n:return"Fragment";case r:return"Portal";case o:return"Profiler";case i:return"StrictMode";case d:return"Suspense";case l:return"SuspenseList"}if(typeof u=="object")switch(u.$$typeof){case s:var f=u;return ws(f)+".Consumer";case a:var y=u;return ws(y._context)+".Provider";case c:return We(u,u.render,"ForwardRef");case p:var g=u.displayName||null;return g!==null?g:gt(u.type)||"Memo";case m:{var b=u,O=b._payload,D=b._init;try{return gt(D(O))}catch{return null}}}return null}var br=Object.prototype.hasOwnProperty,Ds={key:!0,ref:!0,__self:!0,__source:!0},Cs,xs,Gi;Gi={};function Rs(u){if(br.call(u,"ref")){var f=Object.getOwnPropertyDescriptor(u,"ref").get;if(f&&f.isReactWarning)return!1}return u.ref!==void 0}function Os(u){if(br.call(u,"key")){var f=Object.getOwnPropertyDescriptor(u,"key").get;if(f&&f.isReactWarning)return!1}return u.key!==void 0}function Xm(u,f){var y=function(){Cs||(Cs=!0,S("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",f))};y.isReactWarning=!0,Object.defineProperty(u,"key",{get:y,configurable:!0})}function Hm(u,f){var y=function(){xs||(xs=!0,S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",f))};y.isReactWarning=!0,Object.defineProperty(u,"ref",{get:y,configurable:!0})}function Wm(u){if(typeof u.ref=="string"&&L.current&&u.__self&&L.current.stateNode!==u.__self){var f=gt(L.current.type);Gi[f]||(S('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',f,u.ref),Gi[f]=!0)}}var Bi=function(u,f,y,g,b,O,D){var T={$$typeof:t,type:u,key:f,ref:y,props:D,_owner:O};return T._store={},Object.defineProperty(T._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(T,"_self",{configurable:!1,enumerable:!1,writable:!1,value:g}),Object.defineProperty(T,"_source",{configurable:!1,enumerable:!1,writable:!1,value:b}),Object.freeze&&(Object.freeze(T.props),Object.freeze(T)),T};function Ym(u,f,y){var g,b={},O=null,D=null,T=null,B=null;if(f!=null){Rs(f)&&(D=f.ref,Wm(f)),Os(f)&&(Xt(f.key),O=""+f.key),T=f.__self===void 0?null:f.__self,B=f.__source===void 0?null:f.__source;for(g in f)br.call(f,g)&&!Ds.hasOwnProperty(g)&&(b[g]=f[g])}var V=arguments.length-2;if(V===1)b.children=y;else if(V>1){for(var Z=Array(V),ee=0;ee<V;ee++)Z[ee]=arguments[ee+2];Object.freeze&&Object.freeze(Z),b.children=Z}if(u&&u.defaultProps){var te=u.defaultProps;for(g in te)b[g]===void 0&&(b[g]=te[g])}if(O||D){var ae=typeof u=="function"?u.displayName||u.name||"Unknown":u;O&&Xm(b,ae),D&&Hm(b,ae)}return Bi(u,O,D,T,B,L.current,b)}function Vm(u,f){var y=Bi(u.type,f,u.ref,u._self,u._source,u._owner,u.props);return y}function zm(u,f,y){if(u==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+u+".");var g,b=me({},u.props),O=u.key,D=u.ref,T=u._self,B=u._source,V=u._owner;if(f!=null){Rs(f)&&(D=f.ref,V=L.current),Os(f)&&(Xt(f.key),O=""+f.key);var Z;u.type&&u.type.defaultProps&&(Z=u.type.defaultProps);for(g in f)br.call(f,g)&&!Ds.hasOwnProperty(g)&&(f[g]===void 0&&Z!==void 0?b[g]=Z[g]:b[g]=f[g])}var ee=arguments.length-2;if(ee===1)b.children=y;else if(ee>1){for(var te=Array(ee),ae=0;ae<ee;ae++)te[ae]=arguments[ae+2];b.children=te}return Bi(u.type,O,D,T,B,V,b)}function Ht(u){return typeof u=="object"&&u!==null&&u.$$typeof===t}var Is=".",Jm=":";function Km(u){var f=/[=:]/g,y={"=":"=0",":":"=2"},g=u.replace(f,function(b){return y[b]});return"$"+g}var Ps=!1,Qm=/\/+/g;function As(u){return u.replace(Qm,"$&/")}function Ui(u,f){return typeof u=="object"&&u!==null&&u.key!=null?(Xt(u.key),Km(""+u.key)):f.toString(36)}function tn(u,f,y,g,b){var O=typeof u;(O==="undefined"||O==="boolean")&&(u=null);var D=!1;if(u===null)D=!0;else switch(O){case"string":case"number":D=!0;break;case"object":switch(u.$$typeof){case t:case r:D=!0}}if(D){var T=u,B=b(T),V=g===""?Is+Ui(T,0):g;if(Je(B)){var Z="";V!=null&&(Z=As(V)+"/"),tn(B,f,Z,"",function(Hy){return Hy})}else B!=null&&(Ht(B)&&(B.key&&(!T||T.key!==B.key)&&Xt(B.key),B=Vm(B,y+(B.key&&(!T||T.key!==B.key)?As(""+B.key)+"/":"")+V)),f.push(B));return 1}var ee,te,ae=0,ye=g===""?Is:g+Jm;if(Je(u))for(var ln=0;ln<u.length;ln++)ee=u[ln],te=ye+Ui(ee,ln),ae+=tn(ee,f,y,te,b);else{var Qi=w(u);if(typeof Qi=="function"){var tu=u;Qi===tu.entries&&(Ps||W("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Ps=!0);for(var Uy=Qi.call(tu),ru,Xy=0;!(ru=Uy.next()).done;)ee=ru.value,te=ye+Ui(ee,Xy++),ae+=tn(ee,f,y,te,b)}else if(O==="object"){var nu=String(u);throw new Error("Objects are not valid as a React child (found: "+(nu==="[object Object]"?"object with keys {"+Object.keys(u).join(", ")+"}":nu)+"). If you meant to render a collection of children, use an array instead.")}}return ae}function rn(u,f,y){if(u==null)return u;var g=[],b=0;return tn(u,g,"","",function(O){return f.call(y,O,b++)}),g}function Zm(u){var f=0;return rn(u,function(){f++}),f}function ey(u,f,y){rn(u,function(){f.apply(this,arguments)},y)}function ty(u){return rn(u,function(f){return f})||[]}function ry(u){if(!Ht(u))throw new Error("React.Children.only expected to receive a single React element child.");return u}function ny(u){var f={$$typeof:s,_currentValue:u,_currentValue2:u,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};f.Provider={$$typeof:a,_context:f};var y=!1,g=!1,b=!1;{var O={$$typeof:s,_context:f};Object.defineProperties(O,{Provider:{get:function(){return g||(g=!0,S("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),f.Provider},set:function(D){f.Provider=D}},_currentValue:{get:function(){return f._currentValue},set:function(D){f._currentValue=D}},_currentValue2:{get:function(){return f._currentValue2},set:function(D){f._currentValue2=D}},_threadCount:{get:function(){return f._threadCount},set:function(D){f._threadCount=D}},Consumer:{get:function(){return y||(y=!0,S("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),f.Consumer}},displayName:{get:function(){return f.displayName},set:function(D){b||(W("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",D),b=!0)}}}),f.Consumer=O}return f._currentRenderer=null,f._currentRenderer2=null,f}var Er=-1,Xi=0,Ts=1,iy=2;function oy(u){if(u._status===Er){var f=u._result,y=f();if(y.then(function(O){if(u._status===Xi||u._status===Er){var D=u;D._status=Ts,D._result=O}},function(O){if(u._status===Xi||u._status===Er){var D=u;D._status=iy,D._result=O}}),u._status===Er){var g=u;g._status=Xi,g._result=y}}if(u._status===Ts){var b=u._result;return b===void 0&&S(`lazy: Expected the result of a dynamic import() call. Instead received: %s
10
10
 
11
11
  Your code should look like:
12
12
  const MyComponent = lazy(() => import('./MyComponent'))
13
13
 
14
- Did you accidentally put curly braces around the import?`,E),"default"in E||S(`lazy: Expected the result of a dynamic import() call. Instead received: %s
14
+ Did you accidentally put curly braces around the import?`,b),"default"in b||S(`lazy: Expected the result of a dynamic import() call. Instead received: %s
15
15
 
16
16
  Your code should look like:
17
- const MyComponent = lazy(() => import('./MyComponent'))`,E),E.default}else throw u._result}function ry(u){var f={_status:br,_result:u},y={$$typeof:m,_payload:f,_init:ty};{var g,E;Object.defineProperties(y,{defaultProps:{configurable:!0,get:function(){return g},set:function(O){S("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),g=O,Object.defineProperty(y,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return E},set:function(O){S("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),E=O,Object.defineProperty(y,"propTypes",{enumerable:!0})}}})}return y}function ny(u){u!=null&&u.$$typeof===p?S("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof u!="function"?S("forwardRef requires a render function but was given %s.",u===null?"null":typeof u):u.length!==0&&u.length!==2&&S("forwardRef render functions accept exactly two parameters: props and ref. %s",u.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),u!=null&&(u.defaultProps!=null||u.propTypes!=null)&&S("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var f={$$typeof:c,render:u};{var y;Object.defineProperty(f,"displayName",{enumerable:!1,configurable:!0,get:function(){return y},set:function(g){y=g,!u.name&&!u.displayName&&(u.displayName=g)}})}return f}var Ls;Ls=Symbol.for("react.module.reference");function ks(u){return!!(typeof u=="string"||typeof u=="function"||u===n||u===o||Q||u===i||u===d||u===l||M||u===h||ce||x||q||typeof u=="object"&&u!==null&&(u.$$typeof===m||u.$$typeof===p||u.$$typeof===a||u.$$typeof===s||u.$$typeof===c||u.$$typeof===Ls||u.getModuleId!==void 0))}function iy(u,f){ks(u)||S("memo: The first argument must be a component. Instead received: %s",u===null?"null":typeof u);var y={$$typeof:p,type:u,compare:f===void 0?null:f};{var g;Object.defineProperty(y,"displayName",{enumerable:!1,configurable:!0,get:function(){return g},set:function(E){g=E,!u.name&&!u.displayName&&(u.displayName=E)}})}return y}function Ce(){var u=I.current;return u===null&&S(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
17
+ const MyComponent = lazy(() => import('./MyComponent'))`,b),b.default}else throw u._result}function ay(u){var f={_status:Er,_result:u},y={$$typeof:m,_payload:f,_init:oy};{var g,b;Object.defineProperties(y,{defaultProps:{configurable:!0,get:function(){return g},set:function(O){S("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),g=O,Object.defineProperty(y,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return b},set:function(O){S("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),b=O,Object.defineProperty(y,"propTypes",{enumerable:!0})}}})}return y}function sy(u){u!=null&&u.$$typeof===p?S("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof u!="function"?S("forwardRef requires a render function but was given %s.",u===null?"null":typeof u):u.length!==0&&u.length!==2&&S("forwardRef render functions accept exactly two parameters: props and ref. %s",u.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),u!=null&&(u.defaultProps!=null||u.propTypes!=null)&&S("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var f={$$typeof:c,render:u};{var y;Object.defineProperty(f,"displayName",{enumerable:!1,configurable:!0,get:function(){return y},set:function(g){y=g,!u.name&&!u.displayName&&(u.displayName=g)}})}return f}var Fs;Fs=Symbol.for("react.module.reference");function Ls(u){return!!(typeof u=="string"||typeof u=="function"||u===n||u===o||Q||u===i||u===d||u===l||M||u===h||le||x||q||typeof u=="object"&&u!==null&&(u.$$typeof===m||u.$$typeof===p||u.$$typeof===a||u.$$typeof===s||u.$$typeof===c||u.$$typeof===Fs||u.getModuleId!==void 0))}function uy(u,f){Ls(u)||S("memo: The first argument must be a component. Instead received: %s",u===null?"null":typeof u);var y={$$typeof:p,type:u,compare:f===void 0?null:f};{var g;Object.defineProperty(y,"displayName",{enumerable:!1,configurable:!0,get:function(){return g},set:function(b){g=b,!u.name&&!u.displayName&&(u.displayName=b)}})}return y}function xe(){var u=I.current;return u===null&&S(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
18
18
  1. You might have mismatching versions of React and the renderer (such as React DOM)
19
19
  2. You might be breaking the Rules of Hooks
20
20
  3. You might have more than one copy of React in the same app
21
- See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),u}function oy(u){var f=Ce();if(u._context!==void 0){var y=u._context;y.Consumer===u?S("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):y.Provider===u&&S("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return f.useContext(u)}function ay(u){var f=Ce();return f.useState(u)}function sy(u,f,y){var g=Ce();return g.useReducer(u,f,y)}function uy(u){var f=Ce();return f.useRef(u)}function cy(u,f){var y=Ce();return y.useEffect(u,f)}function ly(u,f){var y=Ce();return y.useInsertionEffect(u,f)}function fy(u,f){var y=Ce();return y.useLayoutEffect(u,f)}function dy(u,f){var y=Ce();return y.useCallback(u,f)}function py(u,f){var y=Ce();return y.useMemo(u,f)}function hy(u,f,y){var g=Ce();return g.useImperativeHandle(u,f,y)}function my(u,f){{var y=Ce();return y.useDebugValue(u,f)}}function yy(){var u=Ce();return u.useTransition()}function gy(u){var f=Ce();return f.useDeferredValue(u)}function vy(){var u=Ce();return u.useId()}function _y(u,f,y){var g=Ce();return g.useSyncExternalStore(u,f,y)}var Sr=0,Ns,Ms,qs,js,$s,Gs,Bs;function Us(){}Us.__reactDisabledLog=!0;function Ey(){{if(Sr===0){Ns=console.log,Ms=console.info,qs=console.warn,js=console.error,$s=console.group,Gs=console.groupCollapsed,Bs=console.groupEnd;var u={configurable:!0,enumerable:!0,value:Us,writable:!0};Object.defineProperties(console,{info:u,log:u,warn:u,error:u,group:u,groupCollapsed:u,groupEnd:u})}Sr++}}function by(){{if(Sr--,Sr===0){var u={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:he({},u,{value:Ns}),info:he({},u,{value:Ms}),warn:he({},u,{value:qs}),error:he({},u,{value:js}),group:he({},u,{value:$s}),groupCollapsed:he({},u,{value:Gs}),groupEnd:he({},u,{value:Bs})})}Sr<0&&S("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Xi=U.ReactCurrentDispatcher,Hi;function an(u,f,y){{if(Hi===void 0)try{throw Error()}catch(E){var g=E.stack.trim().match(/\n( *(at )?)/);Hi=g&&g[1]||""}return`
22
- `+Hi+u}}var Wi=!1,sn;{var Sy=typeof WeakMap=="function"?WeakMap:Map;sn=new Sy}function Xs(u,f){if(!u||Wi)return"";{var y=sn.get(u);if(y!==void 0)return y}var g;Wi=!0;var E=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var O;O=Xi.current,Xi.current=null,Ey();try{if(f){var D=function(){throw Error()};if(Object.defineProperty(D.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(D,[])}catch(me){g=me}Reflect.construct(u,[],D)}else{try{D.call()}catch(me){g=me}u.call(D.prototype)}}else{try{throw Error()}catch(me){g=me}u()}}catch(me){if(me&&g&&typeof me.stack=="string"){for(var A=me.stack.split(`
21
+ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),u}function cy(u){var f=xe();if(u._context!==void 0){var y=u._context;y.Consumer===u?S("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):y.Provider===u&&S("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return f.useContext(u)}function ly(u){var f=xe();return f.useState(u)}function fy(u,f,y){var g=xe();return g.useReducer(u,f,y)}function dy(u){var f=xe();return f.useRef(u)}function py(u,f){var y=xe();return y.useEffect(u,f)}function hy(u,f){var y=xe();return y.useInsertionEffect(u,f)}function my(u,f){var y=xe();return y.useLayoutEffect(u,f)}function yy(u,f){var y=xe();return y.useCallback(u,f)}function gy(u,f){var y=xe();return y.useMemo(u,f)}function vy(u,f,y){var g=xe();return g.useImperativeHandle(u,f,y)}function _y(u,f){{var y=xe();return y.useDebugValue(u,f)}}function by(){var u=xe();return u.useTransition()}function Ey(u){var f=xe();return f.useDeferredValue(u)}function Sy(){var u=xe();return u.useId()}function wy(u,f,y){var g=xe();return g.useSyncExternalStore(u,f,y)}var Sr=0,ks,Ns,Ms,qs,js,$s,Gs;function Bs(){}Bs.__reactDisabledLog=!0;function Dy(){{if(Sr===0){ks=console.log,Ns=console.info,Ms=console.warn,qs=console.error,js=console.group,$s=console.groupCollapsed,Gs=console.groupEnd;var u={configurable:!0,enumerable:!0,value:Bs,writable:!0};Object.defineProperties(console,{info:u,log:u,warn:u,error:u,group:u,groupCollapsed:u,groupEnd:u})}Sr++}}function Cy(){{if(Sr--,Sr===0){var u={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:me({},u,{value:ks}),info:me({},u,{value:Ns}),warn:me({},u,{value:Ms}),error:me({},u,{value:qs}),group:me({},u,{value:js}),groupCollapsed:me({},u,{value:$s}),groupEnd:me({},u,{value:Gs})})}Sr<0&&S("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Hi=U.ReactCurrentDispatcher,Wi;function nn(u,f,y){{if(Wi===void 0)try{throw Error()}catch(b){var g=b.stack.trim().match(/\n( *(at )?)/);Wi=g&&g[1]||""}return`
22
+ `+Wi+u}}var Yi=!1,on;{var xy=typeof WeakMap=="function"?WeakMap:Map;on=new xy}function Us(u,f){if(!u||Yi)return"";{var y=on.get(u);if(y!==void 0)return y}var g;Yi=!0;var b=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var O;O=Hi.current,Hi.current=null,Dy();try{if(f){var D=function(){throw Error()};if(Object.defineProperty(D.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(D,[])}catch(ye){g=ye}Reflect.construct(u,[],D)}else{try{D.call()}catch(ye){g=ye}u.call(D.prototype)}}else{try{throw Error()}catch(ye){g=ye}u()}}catch(ye){if(ye&&g&&typeof ye.stack=="string"){for(var T=ye.stack.split(`
23
23
  `),B=g.stack.split(`
24
- `),V=A.length-1,Z=B.length-1;V>=1&&Z>=0&&A[V]!==B[Z];)Z--;for(;V>=1&&Z>=0;V--,Z--)if(A[V]!==B[Z]){if(V!==1||Z!==1)do if(V--,Z--,Z<0||A[V]!==B[Z]){var ee=`
25
- `+A[V].replace(" at new "," at ");return u.displayName&&ee.includes("<anonymous>")&&(ee=ee.replace("<anonymous>",u.displayName)),typeof u=="function"&&sn.set(u,ee),ee}while(V>=1&&Z>=0);break}}}finally{Wi=!1,Xi.current=O,by(),Error.prepareStackTrace=E}var te=u?u.displayName||u.name:"",oe=te?an(te):"";return typeof u=="function"&&sn.set(u,oe),oe}function wy(u,f,y){return Xs(u,!1)}function Dy(u){var f=u.prototype;return!!(f&&f.isReactComponent)}function un(u,f,y){if(u==null)return"";if(typeof u=="function")return Xs(u,Dy(u));if(typeof u=="string")return an(u);switch(u){case d:return an("Suspense");case l:return an("SuspenseList")}if(typeof u=="object")switch(u.$$typeof){case c:return wy(u.render);case p:return un(u.type,f,y);case m:{var g=u,E=g._payload,O=g._init;try{return un(O(E),f,y)}catch{}}}return""}var Hs={},Ws=U.ReactDebugCurrentFrame;function cn(u){if(u){var f=u._owner,y=un(u.type,u._source,f?f.type:null);Ws.setExtraStackFrame(y)}else Ws.setExtraStackFrame(null)}function Cy(u,f,y,g,E){{var O=Function.call.bind(Er);for(var D in u)if(O(u,D)){var A=void 0;try{if(typeof u[D]!="function"){var B=Error((g||"React class")+": "+y+" type `"+D+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof u[D]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw B.name="Invariant Violation",B}A=u[D](f,D,g,y,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(V){A=V}A&&!(A instanceof Error)&&(cn(E),S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",g||"React class",y,D,typeof A),cn(null)),A instanceof Error&&!(A.message in Hs)&&(Hs[A.message]=!0,cn(E),S("Failed %s type: %s",y,A.message),cn(null))}}}function Wt(u){if(u){var f=u._owner,y=un(u.type,u._source,f?f.type:null);$e(y)}else $e(null)}var Yi;Yi=!1;function Ys(){if(L.current){var u=yt(L.current.type);if(u)return`
24
+ `),V=T.length-1,Z=B.length-1;V>=1&&Z>=0&&T[V]!==B[Z];)Z--;for(;V>=1&&Z>=0;V--,Z--)if(T[V]!==B[Z]){if(V!==1||Z!==1)do if(V--,Z--,Z<0||T[V]!==B[Z]){var ee=`
25
+ `+T[V].replace(" at new "," at ");return u.displayName&&ee.includes("<anonymous>")&&(ee=ee.replace("<anonymous>",u.displayName)),typeof u=="function"&&on.set(u,ee),ee}while(V>=1&&Z>=0);break}}}finally{Yi=!1,Hi.current=O,Cy(),Error.prepareStackTrace=b}var te=u?u.displayName||u.name:"",ae=te?nn(te):"";return typeof u=="function"&&on.set(u,ae),ae}function Ry(u,f,y){return Us(u,!1)}function Oy(u){var f=u.prototype;return!!(f&&f.isReactComponent)}function an(u,f,y){if(u==null)return"";if(typeof u=="function")return Us(u,Oy(u));if(typeof u=="string")return nn(u);switch(u){case d:return nn("Suspense");case l:return nn("SuspenseList")}if(typeof u=="object")switch(u.$$typeof){case c:return Ry(u.render);case p:return an(u.type,f,y);case m:{var g=u,b=g._payload,O=g._init;try{return an(O(b),f,y)}catch{}}}return""}var Xs={},Hs=U.ReactDebugCurrentFrame;function sn(u){if(u){var f=u._owner,y=an(u.type,u._source,f?f.type:null);Hs.setExtraStackFrame(y)}else Hs.setExtraStackFrame(null)}function Iy(u,f,y,g,b){{var O=Function.call.bind(br);for(var D in u)if(O(u,D)){var T=void 0;try{if(typeof u[D]!="function"){var B=Error((g||"React class")+": "+y+" type `"+D+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof u[D]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw B.name="Invariant Violation",B}T=u[D](f,D,g,y,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(V){T=V}T&&!(T instanceof Error)&&(sn(b),S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",g||"React class",y,D,typeof T),sn(null)),T instanceof Error&&!(T.message in Xs)&&(Xs[T.message]=!0,sn(b),S("Failed %s type: %s",y,T.message),sn(null))}}}function Wt(u){if(u){var f=u._owner,y=an(u.type,u._source,f?f.type:null);$e(y)}else $e(null)}var Vi;Vi=!1;function Ws(){if(L.current){var u=gt(L.current.type);if(u)return`
26
26
 
27
- Check the render method of \``+u+"`."}return""}function xy(u){if(u!==void 0){var f=u.fileName.replace(/^.*[\\\/]/,""),y=u.lineNumber;return`
27
+ Check the render method of \``+u+"`."}return""}function Py(u){if(u!==void 0){var f=u.fileName.replace(/^.*[\\\/]/,""),y=u.lineNumber;return`
28
28
 
29
- Check your code at `+f+":"+y+"."}return""}function Ry(u){return u!=null?xy(u.__source):""}var Vs={};function Oy(u){var f=Ys();if(!f){var y=typeof u=="string"?u:u.displayName||u.name;y&&(f=`
29
+ Check your code at `+f+":"+y+"."}return""}function Ay(u){return u!=null?Py(u.__source):""}var Ys={};function Ty(u){var f=Ws();if(!f){var y=typeof u=="string"?u:u.displayName||u.name;y&&(f=`
30
30
 
31
- Check the top-level render call using <`+y+">.")}return f}function zs(u,f){if(!(!u._store||u._store.validated||u.key!=null)){u._store.validated=!0;var y=Oy(f);if(!Vs[y]){Vs[y]=!0;var g="";u&&u._owner&&u._owner!==L.current&&(g=" It was passed a child from "+yt(u._owner.type)+"."),Wt(u),S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',y,g),Wt(null)}}}function Js(u,f){if(typeof u=="object"){if(Je(u))for(var y=0;y<u.length;y++){var g=u[y];Ht(g)&&zs(g,f)}else if(Ht(u))u._store&&(u._store.validated=!0);else if(u){var E=w(u);if(typeof E=="function"&&E!==u.entries)for(var O=E.call(u),D;!(D=O.next()).done;)Ht(D.value)&&zs(D.value,f)}}}function Ks(u){{var f=u.type;if(f==null||typeof f=="string")return;var y;if(typeof f=="function")y=f.propTypes;else if(typeof f=="object"&&(f.$$typeof===c||f.$$typeof===p))y=f.propTypes;else return;if(y){var g=yt(f);Cy(y,u.props,"prop",g,u)}else if(f.PropTypes!==void 0&&!Yi){Yi=!0;var E=yt(f);S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",E||"Unknown")}typeof f.getDefaultProps=="function"&&!f.getDefaultProps.isReactClassApproved&&S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Iy(u){{for(var f=Object.keys(u.props),y=0;y<f.length;y++){var g=f[y];if(g!=="children"&&g!=="key"){Wt(u),S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",g),Wt(null);break}}u.ref!==null&&(Wt(u),S("Invalid attribute `ref` supplied to `React.Fragment`."),Wt(null))}}function Qs(u,f,y){var g=ks(u);if(!g){var E="";(u===void 0||typeof u=="object"&&u!==null&&Object.keys(u).length===0)&&(E+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var O=Ry(f);O?E+=O:E+=Ys();var D;u===null?D="null":Je(u)?D="array":u!==void 0&&u.$$typeof===t?(D="<"+(yt(u.type)||"Unknown")+" />",E=" Did you accidentally export a JSX literal instead of a component?"):D=typeof u,S("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",D,E)}var A=Um.apply(this,arguments);if(A==null)return A;if(g)for(var B=2;B<arguments.length;B++)Js(arguments[B],u);return u===n?Iy(A):Ks(A),A}var Zs=!1;function Py(u){var f=Qs.bind(null,u);return f.type=u,Zs||(Zs=!0,W("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(f,"type",{enumerable:!1,get:function(){return W("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:u}),u}}),f}function Ty(u,f,y){for(var g=Hm.apply(this,arguments),E=2;E<arguments.length;E++)Js(arguments[E],g.type);return Ks(g),g}function Ay(u,f){var y=F.transition;F.transition={};var g=F.transition;F.transition._updatedFibers=new Set;try{u()}finally{if(F.transition=y,y===null&&g._updatedFibers){var E=g._updatedFibers.size;E>10&&W("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),g._updatedFibers.clear()}}}var eu=!1,ln=null;function Fy(u){if(ln===null)try{var f=("require"+Math.random()).slice(0,7),y=zn&&zn[f];ln=y.call(zn,"timers").setImmediate}catch{ln=function(E){eu===!1&&(eu=!0,typeof MessageChannel>"u"&&S("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var O=new MessageChannel;O.port1.onmessage=E,O.port2.postMessage(void 0)}}return ln(u)}var Yt=0,tu=!1;function Ly(u){{var f=Yt;Yt++,P.current===null&&(P.current=[]);var y=P.isBatchingLegacy,g;try{if(P.isBatchingLegacy=!0,g=u(),!y&&P.didScheduleLegacyUpdate){var E=P.current;E!==null&&(P.didScheduleLegacyUpdate=!1,Ji(E))}}catch(te){throw fn(f),te}finally{P.isBatchingLegacy=y}if(g!==null&&typeof g=="object"&&typeof g.then=="function"){var O=g,D=!1,A={then:function(te,oe){D=!0,O.then(function(me){fn(f),Yt===0?Vi(me,te,oe):te(me)},function(me){fn(f),oe(me)})}};return!tu&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){D||(tu=!0,S("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),A}else{var B=g;if(fn(f),Yt===0){var V=P.current;V!==null&&(Ji(V),P.current=null);var Z={then:function(te,oe){P.current===null?(P.current=[],Vi(B,te,oe)):te(B)}};return Z}else{var ee={then:function(te,oe){te(B)}};return ee}}}}function fn(u){u!==Yt-1&&S("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Yt=u}function Vi(u,f,y){{var g=P.current;if(g!==null)try{Ji(g),Fy(function(){g.length===0?(P.current=null,f(u)):Vi(u,f,y)})}catch(E){y(E)}else f(u)}}var zi=!1;function Ji(u){if(!zi){zi=!0;var f=0;try{for(;f<u.length;f++){var y=u[f];do y=y(!0);while(y!==null)}u.length=0}catch(g){throw u=u.slice(f+1),g}finally{zi=!1}}}var ky=Qs,Ny=Ty,My=Py,qy={map:on,forEach:Jm,count:zm,toArray:Km,only:Qm};G.Children=qy,G.Component=Xe,G.Fragment=n,G.Profiler=o,G.PureComponent=ht,G.StrictMode=i,G.Suspense=d,G.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=U,G.cloneElement=Ny,G.createContext=Zm,G.createElement=ky,G.createFactory=My,G.createRef=ze,G.forwardRef=ny,G.isValidElement=Ht,G.lazy=ry,G.memo=iy,G.startTransition=Ay,G.unstable_act=Ly,G.useCallback=dy,G.useContext=oy,G.useDebugValue=my,G.useDeferredValue=gy,G.useEffect=cy,G.useId=vy,G.useImperativeHandle=hy,G.useInsertionEffect=ly,G.useLayoutEffect=fy,G.useMemo=py,G.useReducer=sy,G.useRef=uy,G.useState=ay,G.useSyncExternalStore=_y,G.useTransition=yy,G.version=e,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()});var Tf=v((m1,$o)=>{"use strict";process.env.NODE_ENV==="production"?$o.exports=If():$o.exports=Pf()});function ur(e=""){return p_?Go.default.resolve(Uo.default.sync(__dirname),"../../../",e):Go.default.resolve(Uo.default.sync(__dirname),"../griddo-components",e)}function h_(){let e=Bo.default.sync("jsconfig.json",{cwd:ur()});return Bo.default.sync("tsconfig.json",{cwd:ur()})||e}function m_(){let e=require(h_());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("/*"),a=ur(o);return{...t,[n]:a}},{"@griddo-instance":`${ur()}/src/index.js`})}var Go,Bo,Uo,p_,x1,xd=ou(()=>{"use strict";Go=T(require("node:path")),Bo=T(Io()),Uo=T(Gn()),p_=__dirname.includes("node_modules"),x1=m_()});var Pd={};Yy(Pd,{CXDir:()=>b_,default:()=>E_});var st,Qn,Od,Kn,y_,g_,v_,Rd,__,Id,E_,b_,Td=ou(()=>{"use strict";st=T(require("node:path")),Qn=T(Gn());xd();Od=Qn.default.sync(st.default.resolve(__dirname,"../..")),Kn=Qn.default.sync(__dirname),y_=st.default.resolve(Qn.default.sync(__dirname)),g_=st.default.resolve(Kn,"caches"),v_=ur(),Rd=st.default.join(Od,"exports/sites"),{version:__}=require(st.default.join(Kn,"package.json")),Id={proDomain:"pro-",griddoVersion:__,CXDir:{EXPORTS:"__exports",CACHE:"__caches",CX:"__cx",SSG:"__ssg",COMPONENTS:"__components",ROOT:"__root",EXPORTS_DIST:"__exports_dist",CX_DIST:"__cx_dist"},paths:e=>({__caches:st.default.join(g_,e||""),__components:v_,__cx:Kn,__exports:st.default.join(Rd,e||""),__root:Od,__ssg:y_,__exports_dist:e?st.default.join(Rd,e,"dist"):"",__cx_dist:st.default.join(Kn,"dist")})},E_=Id,b_=Id.CXDir});var Ko=v((M1,Bd)=>{"use strict";Bd.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 Te=v((q1,Hd)=>{"use strict";var C_=Ko(),Lt=Object.prototype.toString;function ea(e){return Lt.call(e)==="[object Array]"}function Qo(e){return typeof e>"u"}function x_(e){return e!==null&&!Qo(e)&&e.constructor!==null&&!Qo(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function R_(e){return Lt.call(e)==="[object ArrayBuffer]"}function O_(e){return typeof FormData<"u"&&e instanceof FormData}function I_(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function P_(e){return typeof e=="string"}function T_(e){return typeof e=="number"}function Ud(e){return e!==null&&typeof e=="object"}function ei(e){if(Lt.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function A_(e){return Lt.call(e)==="[object Date]"}function F_(e){return Lt.call(e)==="[object File]"}function L_(e){return Lt.call(e)==="[object Blob]"}function Xd(e){return Lt.call(e)==="[object Function]"}function k_(e){return Ud(e)&&Xd(e.pipe)}function N_(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}function M_(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function q_(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function ta(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),ea(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 Zo(){var e={};function t(i,o){ei(e[o])&&ei(i)?e[o]=Zo(e[o],i):ei(i)?e[o]=Zo({},i):ea(i)?e[o]=i.slice():e[o]=i}for(var r=0,n=arguments.length;r<n;r++)ta(arguments[r],t);return e}function j_(e,t,r){return ta(t,function(i,o){r&&typeof i=="function"?e[o]=C_(i,r):e[o]=i}),e}function $_(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}Hd.exports={isArray:ea,isArrayBuffer:R_,isBuffer:x_,isFormData:O_,isArrayBufferView:I_,isString:P_,isNumber:T_,isObject:Ud,isPlainObject:ei,isUndefined:Qo,isDate:A_,isFile:F_,isBlob:L_,isFunction:Xd,isStream:k_,isURLSearchParams:N_,isStandardBrowserEnv:q_,forEach:ta,merge:Zo,extend:j_,trim:M_,stripBOM:$_}});var ti=v((j1,Yd)=>{"use strict";var lr=Te();function Wd(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}Yd.exports=function(t,r,n){if(!r)return t;var i;if(n)i=n(r);else if(lr.isURLSearchParams(r))i=r.toString();else{var o=[];lr.forEach(r,function(c,d){c===null||typeof c>"u"||(lr.isArray(c)?d=d+"[]":c=[c],lr.forEach(c,function(p){lr.isDate(p)?p=p.toISOString():lr.isObject(p)&&(p=JSON.stringify(p)),o.push(Wd(d)+"="+Wd(p))}))}),i=o.join("&")}if(i){var a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}});var zd=v(($1,Vd)=>{"use strict";var G_=Te();function ri(){this.handlers=[]}ri.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};ri.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};ri.prototype.forEach=function(t){G_.forEach(this.handlers,function(n){n!==null&&t(n)})};Vd.exports=ri});var Kd=v((G1,Jd)=>{"use strict";var B_=Te();Jd.exports=function(t,r){B_.forEach(t,function(i,o){o!==r&&o.toUpperCase()===r.toUpperCase()&&(t[r]=i,delete t[o])})}});var ni=v((B1,Qd)=>{"use strict";Qd.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 ii=v((U1,Zd)=>{"use strict";var U_=ni();Zd.exports=function(t,r,n,i,o){var a=new Error(t);return U_(a,r,n,i,o)}});var ra=v((X1,ep)=>{"use strict";var X_=ii();ep.exports=function(t,r,n){var i=n.config.validateStatus;!n.status||!i||i(n.status)?t(n):r(X_("Request failed with status code "+n.status,n.config,null,n.request,n))}});var rp=v((H1,tp)=>{"use strict";var oi=Te();tp.exports=oi.isStandardBrowserEnv()?function(){return{write:function(r,n,i,o,a,s){var c=[];c.push(r+"="+encodeURIComponent(n)),oi.isNumber(i)&&c.push("expires="+new Date(i).toGMTString()),oi.isString(o)&&c.push("path="+o),oi.isString(a)&&c.push("domain="+a),s===!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 ip=v((W1,np)=>{"use strict";np.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}});var ap=v((Y1,op)=>{"use strict";op.exports=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}});var na=v((V1,sp)=>{"use strict";var H_=ip(),W_=ap();sp.exports=function(t,r){return t&&!H_(r)?W_(t,r):r}});var cp=v((z1,up)=>{"use strict";var ia=Te(),Y_=["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"];up.exports=function(t){var r={},n,i,o;return t&&ia.forEach(t.split(`
32
- `),function(s){if(o=s.indexOf(":"),n=ia.trim(s.substr(0,o)).toLowerCase(),i=ia.trim(s.substr(o+1)),n){if(r[n]&&Y_.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 dp=v((J1,fp)=>{"use strict";var lp=Te();fp.exports=lp.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),n;function i(o){var a=o;return t&&(r.setAttribute("href",a),a=r.href),r.setAttribute("href",a),{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(a){var s=lp.isString(a)?i(a):a;return s.protocol===n.protocol&&s.host===n.host}}():function(){return function(){return!0}}()});var hp=v((K1,pp)=>{"use strict";var ai=Te(),V_=ra(),z_=rp(),J_=ti(),K_=na(),Q_=cp(),Z_=dp(),oa=ii();pp.exports=function(t){return new Promise(function(n,i){var o=t.data,a=t.headers,s=t.responseType;ai.isFormData(o)&&delete a["Content-Type"];var c=new XMLHttpRequest;if(t.auth){var d=t.auth.username||"",l=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";a.Authorization="Basic "+btoa(d+":"+l)}var p=K_(t.baseURL,t.url);c.open(t.method.toUpperCase(),J_(p,t.params,t.paramsSerializer),!0),c.timeout=t.timeout;function m(){if(c){var _="getAllResponseHeaders"in c?Q_(c.getAllResponseHeaders()):null,b=!s||s==="text"||s==="json"?c.responseText:c.response,w={data:b,status:c.status,statusText:c.statusText,headers:_,config:t,request:c};V_(n,i,w),c=null}}if("onloadend"in c?c.onloadend=m:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(m)},c.onabort=function(){c&&(i(oa("Request aborted",t,"ECONNABORTED",c)),c=null)},c.onerror=function(){i(oa("Network Error",t,null,c)),c=null},c.ontimeout=function(){var b="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(b=t.timeoutErrorMessage),i(oa(b,t,t.transitional&&t.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",c)),c=null},ai.isStandardBrowserEnv()){var h=(t.withCredentials||Z_(p))&&t.xsrfCookieName?z_.read(t.xsrfCookieName):void 0;h&&(a[t.xsrfHeaderName]=h)}"setRequestHeader"in c&&ai.forEach(a,function(b,w){typeof o>"u"&&w.toLowerCase()==="content-type"?delete a[w]:c.setRequestHeader(w,b)}),ai.isUndefined(t.withCredentials)||(c.withCredentials=!!t.withCredentials),s&&s!=="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(b){c&&(c.abort(),i(b),c=null)}),o||(o=null),c.send(o)})}});var yp=v((Q1,mp)=>{var fr=1e3,dr=fr*60,pr=dr*60,kt=pr*24,eE=kt*7,tE=kt*365.25;mp.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return rE(e);if(r==="number"&&isFinite(e))return t.long?iE(e):nE(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function rE(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*tE;case"weeks":case"week":case"w":return r*eE;case"days":case"day":case"d":return r*kt;case"hours":case"hour":case"hrs":case"hr":case"h":return r*pr;case"minutes":case"minute":case"mins":case"min":case"m":return r*dr;case"seconds":case"second":case"secs":case"sec":case"s":return r*fr;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function nE(e){var t=Math.abs(e);return t>=kt?Math.round(e/kt)+"d":t>=pr?Math.round(e/pr)+"h":t>=dr?Math.round(e/dr)+"m":t>=fr?Math.round(e/fr)+"s":e+"ms"}function iE(e){var t=Math.abs(e);return t>=kt?si(e,t,kt,"day"):t>=pr?si(e,t,pr,"hour"):t>=dr?si(e,t,dr,"minute"):t>=fr?si(e,t,fr,"second"):e+" ms"}function si(e,t,r,n){var i=t>=r*1.5;return Math.round(e/r)+" "+n+(i?"s":"")}});var aa=v((Z1,gp)=>{function oE(e){r.debug=r,r.default=r,r.coerce=c,r.disable=o,r.enable=i,r.enabled=a,r.humanize=yp(),r.destroy=d,Object.keys(e).forEach(l=>{r[l]=e[l]}),r.names=[],r.skips=[],r.formatters={};function t(l){let p=0;for(let m=0;m<l.length;m++)p=(p<<5)-p+l.charCodeAt(m),p|=0;return r.colors[Math.abs(p)%r.colors.length]}r.selectColor=t;function r(l){let p,m=null,h,_;function b(...w){if(!b.enabled)return;let I=b,F=Number(new Date),P=F-(p||F);I.diff=P,I.prev=p,I.curr=F,p=F,w[0]=r.coerce(w[0]),typeof w[0]!="string"&&w.unshift("%O");let L=0;w[0]=w[0].replace(/%([a-zA-Z%])/g,(se,$e)=>{if(se==="%%")return"%";L++;let ce=r.formatters[$e];if(typeof ce=="function"){let x=w[L];se=ce.call(I,x),w.splice(L,1),L--}return se}),r.formatArgs.call(I,w),(I.log||r.log).apply(I,w)}return b.namespace=l,b.useColors=r.useColors(),b.color=r.selectColor(l),b.extend=n,b.destroy=r.destroy,Object.defineProperty(b,"enabled",{enumerable:!0,configurable:!1,get:()=>m!==null?m:(h!==r.namespaces&&(h=r.namespaces,_=r.enabled(l)),_),set:w=>{m=w}}),typeof r.init=="function"&&r.init(b),b}function n(l,p){let m=r(this.namespace+(typeof p>"u"?":":p)+l);return m.log=this.log,m}function i(l){r.save(l),r.namespaces=l,r.names=[],r.skips=[];let p,m=(typeof l=="string"?l:"").split(/[\s,]+/),h=m.length;for(p=0;p<h;p++)m[p]&&(l=m[p].replace(/\*/g,".*?"),l[0]==="-"?r.skips.push(new RegExp("^"+l.slice(1)+"$")):r.names.push(new RegExp("^"+l+"$")))}function o(){let l=[...r.names.map(s),...r.skips.map(s).map(p=>"-"+p)].join(",");return r.enable(""),l}function a(l){if(l[l.length-1]==="*")return!0;let p,m;for(p=0,m=r.skips.length;p<m;p++)if(r.skips[p].test(l))return!1;for(p=0,m=r.names.length;p<m;p++)if(r.names[p].test(l))return!0;return!1}function s(l){return l.toString().substring(2,l.toString().length-2).replace(/\.\*\?$/,"*")}function c(l){return l instanceof Error?l.stack||l.message:l}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}gp.exports=oE});var vp=v((Be,ui)=>{Be.formatArgs=sE;Be.save=uE;Be.load=cE;Be.useColors=aE;Be.storage=lE();Be.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`."))}})();Be.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 aE(){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 sE(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+ui.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)}Be.log=console.debug||console.log||(()=>{});function uE(e){try{e?Be.storage.setItem("debug",e):Be.storage.removeItem("debug")}catch{}}function cE(){let e;try{e=Be.storage.getItem("debug")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function lE(){try{return localStorage}catch{}}ui.exports=aa()(Be);var{formatters:fE}=ui.exports;fE.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var Ep=v((eD,_p)=>{"use strict";_p.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 wp=v((tD,Sp)=>{"use strict";var dE=require("os"),bp=require("tty"),Ye=Ep(),{env:fe}=process,Dt;Ye("no-color")||Ye("no-colors")||Ye("color=false")||Ye("color=never")?Dt=0:(Ye("color")||Ye("colors")||Ye("color=true")||Ye("color=always"))&&(Dt=1);"FORCE_COLOR"in fe&&(fe.FORCE_COLOR==="true"?Dt=1:fe.FORCE_COLOR==="false"?Dt=0:Dt=fe.FORCE_COLOR.length===0?1:Math.min(parseInt(fe.FORCE_COLOR,10),3));function sa(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function ua(e,t){if(Dt===0)return 0;if(Ye("color=16m")||Ye("color=full")||Ye("color=truecolor"))return 3;if(Ye("color=256"))return 2;if(e&&!t&&Dt===void 0)return 0;let r=Dt||0;if(fe.TERM==="dumb")return r;if(process.platform==="win32"){let n=dE.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in fe)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in fe)||fe.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in fe)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(fe.TEAMCITY_VERSION)?1:0;if(fe.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in fe){let n=parseInt((fe.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(fe.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(fe.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(fe.TERM)||"COLORTERM"in fe?1:r}function pE(e){let t=ua(e,e&&e.isTTY);return sa(t)}Sp.exports={supportsColor:pE,stdout:sa(ua(!0,bp.isatty(1))),stderr:sa(ua(!0,bp.isatty(2)))}});var Cp=v((ge,li)=>{var hE=require("tty"),ci=require("util");ge.init=bE;ge.log=vE;ge.formatArgs=yE;ge.save=_E;ge.load=EE;ge.useColors=mE;ge.destroy=ci.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");ge.colors=[6,2,3,4,5,1];try{let e=wp();e&&(e.stderr||e).level>=2&&(ge.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{}ge.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 mE(){return"colors"in ge.inspectOpts?!!ge.inspectOpts.colors:hE.isatty(process.stderr.fd)}function yE(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(`
31
+ Check the top-level render call using <`+y+">.")}return f}function Vs(u,f){if(!(!u._store||u._store.validated||u.key!=null)){u._store.validated=!0;var y=Ty(f);if(!Ys[y]){Ys[y]=!0;var g="";u&&u._owner&&u._owner!==L.current&&(g=" It was passed a child from "+gt(u._owner.type)+"."),Wt(u),S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',y,g),Wt(null)}}}function zs(u,f){if(typeof u=="object"){if(Je(u))for(var y=0;y<u.length;y++){var g=u[y];Ht(g)&&Vs(g,f)}else if(Ht(u))u._store&&(u._store.validated=!0);else if(u){var b=w(u);if(typeof b=="function"&&b!==u.entries)for(var O=b.call(u),D;!(D=O.next()).done;)Ht(D.value)&&Vs(D.value,f)}}}function Js(u){{var f=u.type;if(f==null||typeof f=="string")return;var y;if(typeof f=="function")y=f.propTypes;else if(typeof f=="object"&&(f.$$typeof===c||f.$$typeof===p))y=f.propTypes;else return;if(y){var g=gt(f);Iy(y,u.props,"prop",g,u)}else if(f.PropTypes!==void 0&&!Vi){Vi=!0;var b=gt(f);S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",b||"Unknown")}typeof f.getDefaultProps=="function"&&!f.getDefaultProps.isReactClassApproved&&S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Fy(u){{for(var f=Object.keys(u.props),y=0;y<f.length;y++){var g=f[y];if(g!=="children"&&g!=="key"){Wt(u),S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",g),Wt(null);break}}u.ref!==null&&(Wt(u),S("Invalid attribute `ref` supplied to `React.Fragment`."),Wt(null))}}function Ks(u,f,y){var g=Ls(u);if(!g){var b="";(u===void 0||typeof u=="object"&&u!==null&&Object.keys(u).length===0)&&(b+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var O=Ay(f);O?b+=O:b+=Ws();var D;u===null?D="null":Je(u)?D="array":u!==void 0&&u.$$typeof===t?(D="<"+(gt(u.type)||"Unknown")+" />",b=" Did you accidentally export a JSX literal instead of a component?"):D=typeof u,S("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",D,b)}var T=Ym.apply(this,arguments);if(T==null)return T;if(g)for(var B=2;B<arguments.length;B++)zs(arguments[B],u);return u===n?Fy(T):Js(T),T}var Qs=!1;function Ly(u){var f=Ks.bind(null,u);return f.type=u,Qs||(Qs=!0,W("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(f,"type",{enumerable:!1,get:function(){return W("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:u}),u}}),f}function ky(u,f,y){for(var g=zm.apply(this,arguments),b=2;b<arguments.length;b++)zs(arguments[b],g.type);return Js(g),g}function Ny(u,f){var y=F.transition;F.transition={};var g=F.transition;F.transition._updatedFibers=new Set;try{u()}finally{if(F.transition=y,y===null&&g._updatedFibers){var b=g._updatedFibers.size;b>10&&W("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),g._updatedFibers.clear()}}}var Zs=!1,un=null;function My(u){if(un===null)try{var f=("require"+Math.random()).slice(0,7),y=Un&&Un[f];un=y.call(Un,"timers").setImmediate}catch{un=function(b){Zs===!1&&(Zs=!0,typeof MessageChannel>"u"&&S("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var O=new MessageChannel;O.port1.onmessage=b,O.port2.postMessage(void 0)}}return un(u)}var Yt=0,eu=!1;function qy(u){{var f=Yt;Yt++,A.current===null&&(A.current=[]);var y=A.isBatchingLegacy,g;try{if(A.isBatchingLegacy=!0,g=u(),!y&&A.didScheduleLegacyUpdate){var b=A.current;b!==null&&(A.didScheduleLegacyUpdate=!1,Ki(b))}}catch(te){throw cn(f),te}finally{A.isBatchingLegacy=y}if(g!==null&&typeof g=="object"&&typeof g.then=="function"){var O=g,D=!1,T={then:function(te,ae){D=!0,O.then(function(ye){cn(f),Yt===0?zi(ye,te,ae):te(ye)},function(ye){cn(f),ae(ye)})}};return!eu&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){D||(eu=!0,S("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),T}else{var B=g;if(cn(f),Yt===0){var V=A.current;V!==null&&(Ki(V),A.current=null);var Z={then:function(te,ae){A.current===null?(A.current=[],zi(B,te,ae)):te(B)}};return Z}else{var ee={then:function(te,ae){te(B)}};return ee}}}}function cn(u){u!==Yt-1&&S("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Yt=u}function zi(u,f,y){{var g=A.current;if(g!==null)try{Ki(g),My(function(){g.length===0?(A.current=null,f(u)):zi(u,f,y)})}catch(b){y(b)}else f(u)}}var Ji=!1;function Ki(u){if(!Ji){Ji=!0;var f=0;try{for(;f<u.length;f++){var y=u[f];do y=y(!0);while(y!==null)}u.length=0}catch(g){throw u=u.slice(f+1),g}finally{Ji=!1}}}var jy=Ks,$y=ky,Gy=Ly,By={map:rn,forEach:ey,count:Zm,toArray:ty,only:ry};G.Children=By,G.Component=He,G.Fragment=n,G.Profiler=o,G.PureComponent=mt,G.StrictMode=i,G.Suspense=d,G.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=U,G.cloneElement=$y,G.createContext=ny,G.createElement=jy,G.createFactory=Gy,G.createRef=ze,G.forwardRef=sy,G.isValidElement=Ht,G.lazy=ay,G.memo=uy,G.startTransition=Ny,G.unstable_act=qy,G.useCallback=yy,G.useContext=cy,G.useDebugValue=_y,G.useDeferredValue=Ey,G.useEffect=py,G.useId=Sy,G.useImperativeHandle=vy,G.useInsertionEffect=hy,G.useLayoutEffect=my,G.useMemo=gy,G.useReducer=fy,G.useRef=dy,G.useState=ly,G.useSyncExternalStore=wy,G.useTransition=by,G.version=e,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()});var Ef=v((g1,Mo)=>{"use strict";process.env.NODE_ENV==="production"?Mo.exports=_f():Mo.exports=bf()});var ce=v(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.isUndefined=Me.fixName=Me.validateName=Me.validateSingleChar=Me.fixChar=Me.validateChar=void 0;function g_(e){for(var t=0;t<e.length;t++){var r=e.charCodeAt(t);if(!(r===9||r===10||r===13||r>=32&&r<=55295||r>=57344&&r<=65533)){if(t+1===e.length)return!1;var n=e.charCodeAt(t+1);if(r>=55296&&r<=56319&&n>=56320&&n<=57343){t++;continue}return!1}}return!0}Me.validateChar=g_;function v_(e){for(var t="",r=0;r<e.length;r++){var n=e.charCodeAt(r);if(n===9||n===10||n===13||n>=32&&n<=55295||n>=57344&&n<=65533){t+=e[r];continue}if(r+1===e.length)return t+="\uFFFD",t;var i=e.charCodeAt(r+1);if(n>=55296&&n<=56319&&i>=56320&&i<=57343){t+=e[r]+e[r+1],r++;continue}t+="\uFFFD"}return t}Me.fixChar=v_;function __(e){if(e.length===0)return!1;var t=e.charCodeAt(0);if(e.length===1)return t===9||t===10||t===13||t>=32&&t<=55295||t>=57344&&t<=65533;if(e.length!==2)return!1;var r=e.charCodeAt(1);return t>=55296&&t<=56319&&r>=56320&&r<=57343}Me.validateSingleChar=__;function b_(e){if(e.length===0)return!1;var t=e.charCodeAt(0),r=t===58||t===95||t>=65&&t<=90||t>=97&&t<=122||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=767||t>=880&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533;if(e.length===1)return r;var n=e.charCodeAt(1),i=t>=55296&&t<=56191&&n>=56320&&n<=57343;if(!r&&!i)return!1;for(var o=i?2:1,a=o;a<e.length;a++){var s=e.charCodeAt(a);if(!(s===58||s===95||s===45||s===46||s===183||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||s>=192&&s<=214||s>=216&&s<=246||s>=248&&s<=767||s>=768&&s<=879||s>=880&&s<=893||s>=895&&s<=8191||s>=8204&&s<=8205||s>=8255&&s<=8256||s>=8304&&s<=8591||s>=11264&&s<=12271||s>=12289&&s<=55295||s>=63744&&s<=64975||s>=65008&&s<=65533)){if(a+1===e.length)return!1;var c=e.charCodeAt(a+1);if(s>=55296&&s<=56191&&c>=56320&&c<=57343){a++;continue}return!1}}return!0}Me.validateName=b_;function E_(e){var t="";if(e.length===0)return t;var r=e.charCodeAt(0),n=r===58||r===95||r>=65&&r<=90||r>=97&&r<=122||r>=192&&r<=214||r>=216&&r<=246||r>=248&&r<=767||r>=880&&r<=893||r>=895&&r<=8191||r>=8204&&r<=8205||r>=8304&&r<=8591||r>=11264&&r<=12271||r>=12289&&r<=55295||r>=63744&&r<=64975||r>=65008&&r<=65533;if(e.length===1)return n?t=e[0]:t="\uFFFD",t;var i=e.charCodeAt(1),o=r>=55296&&r<=56191&&i>=56320&&i<=57343;o?t=e[0]+e[1]:n?t=e[0]:t="\uFFFD";for(var a=o?2:1,s=a;s<e.length;s++){var c=e.charCodeAt(s);if(c===58||c===95||c===45||c===46||c===183||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||c>=192&&c<=214||c>=216&&c<=246||c>=248&&c<=767||c>=768&&c<=879||c>=880&&c<=893||c>=895&&c<=8191||c>=8204&&c<=8205||c>=8255&&c<=8256||c>=8304&&c<=8591||c>=11264&&c<=12271||c>=12289&&c<=55295||c>=63744&&c<=64975||c>=65008&&c<=65533){t+=e[s];continue}if(s+1===e.length)return t+="\uFFFD",t;var d=e.charCodeAt(s+1);if(c>=55296&&c<=56191&&d>=56320&&d<=57343){t+=e[s]+e[s+1],s++;continue}t+="\uFFFD"}return t}Me.fixName=E_;function S_(e){return Object.prototype.toString.call(e)==="[object Undefined]"}Me.isUndefined=S_});var ur=v(Vn=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});Vn.StringOptions=void 0;var Yn=ce(),w_=function(){function e(t){this.doubleQuotes=!1,this.indent=" ",this.newline=`
32
+ `,this.pretty=!0,(0,Yn.isUndefined)(t.doubleQuotes)||(this.doubleQuotes=t.doubleQuotes),(0,Yn.isUndefined)(t.indent)||(this.indent=t.indent),(0,Yn.isUndefined)(t.newline)||(this.newline=t.newline),(0,Yn.isUndefined)(t.pretty)||(this.pretty=t.pretty)}return e}();Vn.StringOptions=w_});var zn=v(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.escapeDoubleQuotes=Ye.escapeSingleQuotes=Ye.escapeRightAngleBracketsInCdataTerminator=Ye.escapeLeftAngleBrackets=Ye.escapeAmpersands=void 0;function D_(e){return e.replace(/&/g,"&amp;")}Ye.escapeAmpersands=D_;function C_(e){return e.replace(/</g,"&lt;")}Ye.escapeLeftAngleBrackets=C_;function x_(e){return e.replace(/]]>/g,"]]&gt;")}Ye.escapeRightAngleBracketsInCdataTerminator=x_;function R_(e){return e.replace(/'/g,"&apos;")}Ye.escapeSingleQuotes=R_;function O_(e){return e.replace(/"/g,"&quot;")}Ye.escapeDoubleQuotes=O_});var Wo=v(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});var I_=ve(),Rd=zn(),Xo=ce(),P_=function(){function e(t,r,n){this._validation=r,(0,Xo.isUndefined)(n.replaceInvalidCharsInCharData)?this._replaceInvalidCharsInCharData=!1:this._replaceInvalidCharsInCharData=n.replaceInvalidCharsInCharData,this._parent=t,this.charData=n.charData}return Object.defineProperty(e.prototype,"charData",{get:function(){return this._charData},set:function(t){if(this._replaceInvalidCharsInCharData)t=(0,Xo.fixChar)(t);else if(this._validation&&!(0,Xo.validateChar)(t))throw new Error((0,I_.getContext)(this.up())+": attribute text"+(' "'+t+'" should not contain characters not')+" allowed in XML");this._charData=t},enumerable:!1,configurable:!0}),e.prototype.toString=function(){var t=this._charData;return t=(0,Rd.escapeAmpersands)(t),t=(0,Rd.escapeLeftAngleBrackets)(t),t},e.prototype.up=function(){return this._parent},e}();Ho.default=P_});var Jn=v(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});var Od=ve(),Id=ce(),A_=function(){function e(t,r,n){this._hex=!1,this._validation=r,this._parent=t,this.char=n.char,(0,Id.isUndefined)(n.hex)||(this.hex=n.hex)}return Object.defineProperty(e.prototype,"char",{get:function(){return this._char},set:function(t){if(this._validation&&!(0,Id.validateSingleChar)(t))throw new Error((0,Od.getContext)(this.up())+": character reference"+(' "'+t+'" should reference a single character,')+" and this character should be allowed in XML");this._char=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hex",{get:function(){return this._hex},set:function(t){this._hex=t},enumerable:!1,configurable:!0}),e.prototype.toString=function(){var t;if(this._char.length===1)t=this._char.charCodeAt(0);else{var r=this._char.charCodeAt(0);if(r>=55296&&r<=56319&&this._char.length>1){var n=this._char.charCodeAt(1);if(n>=56320&&n<=57343)t=(r-55296)*1024+n-56320+65536;else throw new Error((0,Od.getContext)(this.up())+": character"+(' reference "'+this.char+'" should')+" reference a valid Unicode character")}else t=r}return this._hex?"&#x"+t.toString(16)+";":"&#"+t+";"},e.prototype.up=function(){return this._parent},e}();Yo.default=A_});var Kn=v(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});var T_=ve(),F_=ce(),L_=function(){function e(t,r,n){this._validation=r,this._parent=t,this.name=n.name}return Object.defineProperty(e.prototype,"name",{get:function(){return this._name},set:function(t){if(this._validation&&!(0,F_.validateName)(t))throw new Error((0,T_.getContext)(this.up())+": entity reference name"+(' "'+t+'" should not contain characters not')+" allowed in XML names");this._name=t},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"&"+this._name+";"},e.prototype.up=function(){return this._parent},e}();Vo.default=L_});var Qn=v(Nr=>{"use strict";var Ko=Nr&&Nr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Nr,"__esModule",{value:!0});var zo=ve(),Pd=zn(),k_=ur(),Jo=ce(),N_=Ko(Wo()),M_=Ko(Jn()),q_=Ko(Kn()),j_=function(){function e(t,r,n){this._validation=r,(0,Jo.isUndefined)(n.replaceInvalidCharsInName)?this._replaceInvalidCharsInName=!1:this._replaceInvalidCharsInName=n.replaceInvalidCharsInName,this._children=[],this._parent=t,this.name=n.name}return Object.defineProperty(e.prototype,"name",{get:function(){return this._name},set:function(t){if(this._replaceInvalidCharsInName){if(t=(0,Jo.fixName)(t),t.length===0)throw new Error((0,zo.getContext)(this.up())+": attribute name should not be empty")}else if(this._validation&&!(0,Jo.validateName)(t))throw t.length===0?new Error((0,zo.getContext)(this.up())+": attribute name should not be empty"):new Error((0,zo.getContext)(this.up())+": attribute name"+(' "'+t+'" should not contain characters not')+" allowed in XML names");this._name=t},enumerable:!1,configurable:!0}),e.prototype.charRef=function(t){var r=new M_.default(this,this._validation,t);return this._children.push(r),r},e.prototype.entityRef=function(t){var r=new q_.default(this,this._validation,t);return this._children.push(r),r},e.prototype.text=function(t){var r=new N_.default(this,this._validation,t);return this._children.push(r),r},e.prototype.toString=function(t){t===void 0&&(t={});for(var r=new k_.StringOptions(t),n=r.doubleQuotes?'"':"'",i=this._name+"="+n,o=0,a=this._children;o<a.length;o++){var s=a[o];r.doubleQuotes?i+=(0,Pd.escapeDoubleQuotes)(s.toString()):i+=(0,Pd.escapeSingleQuotes)(s.toString())}return i+=n,i},e.prototype.up=function(){return this._parent},e}();Nr.default=j_});var Zo=v(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});var $_=ve(),G_=ce(),B_=function(){function e(t,r,n){this._validation=r,this._parent=t,this.charData=n.charData}return Object.defineProperty(e.prototype,"charData",{get:function(){return this._charData},set:function(t){if(this._validation&&!(0,G_.validateChar)(t))throw new Error((0,$_.getContext)(this.up())+": attribute-list"+(' declaration "'+t+'" should not contain')+" characters not allowed in XML");this._charData=t},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"<!ATTLIST "+this._charData+">"},e.prototype.up=function(){return this._parent},e}();Qo.default=B_});var ta=v(ea=>{"use strict";Object.defineProperty(ea,"__esModule",{value:!0});var U_=ve(),X_=ce(),H_=function(){function e(t,r,n){this._validation=r,this._parent=t,this.charData=n.charData}return Object.defineProperty(e.prototype,"charData",{get:function(){return this._charData},set:function(t){if(this._validation&&!(0,X_.validateChar)(t))throw new Error((0,U_.getContext)(this.up())+": element declaration"+(' "'+t+'" should not contain characters')+" not allowed in XML");this._charData=t},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"<!ELEMENT "+this._charData+">"},e.prototype.up=function(){return this._parent},e}();ea.default=H_});var na=v(ra=>{"use strict";Object.defineProperty(ra,"__esModule",{value:!0});var W_=ve(),Y_=ce(),V_=function(){function e(t,r,n){this._validation=r,this._parent=t,this.charData=n.charData}return Object.defineProperty(e.prototype,"charData",{get:function(){return this._charData},set:function(t){if(this._validation&&!(0,Y_.validateChar)(t))throw new Error((0,W_.getContext)(this.up())+": entity declaration"+(' "'+t+'" should not contain characters')+" not allowed in XML");this._charData=t},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"<!ENTITY "+this._charData+">"},e.prototype.up=function(){return this._parent},e}();ra.default=V_});var oa=v(ia=>{"use strict";Object.defineProperty(ia,"__esModule",{value:!0});var z_=ve(),J_=ce(),K_=function(){function e(t,r,n){this._validation=r,this._parent=t,this.charData=n.charData}return Object.defineProperty(e.prototype,"charData",{get:function(){return this._charData},set:function(t){if(this._validation&&!(0,J_.validateChar)(t))throw new Error((0,z_.getContext)(this.up())+": notation declaration"+(' "'+t+'" should not contain characters')+" not allowed in XML");this._charData=t},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"<!NOTATION "+this._charData+">"},e.prototype.up=function(){return this._parent},e}();ia.default=K_});var sa=v(aa=>{"use strict";Object.defineProperty(aa,"__esModule",{value:!0});var Q_=ve(),Z_=ce(),eb=function(){function e(t,r,n){this._validation=r,this._parent=t,this.name=n.name}return Object.defineProperty(e.prototype,"name",{get:function(){return this._name},set:function(t){if(this._validation&&!(0,Z_.validateName)(t))throw new Error((0,Q_.getContext)(this.up())+": parameter entity"+(' reference name "'+t+'" should not contain')+" characters not allowed in XML names");this._name=t},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"%"+this._name+";"},e.prototype.up=function(){return this._parent},e}();aa.default=eb});var Mr=v(ua=>{"use strict";Object.defineProperty(ua,"__esModule",{value:!0});var Zn=ve(),ei=ce(),tb=function(){function e(t,r,n){this._validation=r,this._parent=t,this.content=n.content,this.target=n.target}return Object.defineProperty(e.prototype,"content",{get:function(){return this._content},set:function(t){if(!(0,ei.isUndefined)(t)){if(this._validation&&!(0,ei.validateChar)(t))throw new Error((0,Zn.getContext)(this.up())+": processing"+(' instruction content "'+t+'" should')+" not contain characters not allowed in XML");if(this._validation&&t.indexOf("?>")!==-1)throw new Error((0,Zn.getContext)(this.up())+": processing"+(' instruction content "'+t+'" should')+" not contain the string '?>'")}this._content=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"target",{get:function(){return this._target},set:function(t){if(this._validation&&!(0,ei.validateName)(t))throw new Error((0,Zn.getContext)(this.up())+": processing"+(' instruction target "'+t+'" should')+" not contain characters not allowed in XML names");if(this._validation&&t==="xml")throw new Error((0,Zn.getContext)(this.up())+": processing"+(' instruction target "'+t+'" should')+" not be the string 'xml'");this._target=t},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return(0,ei.isUndefined)(this._content)?"<?"+this._target+"?>":"<?"+this._target+" "+this._content+"?>"},e.prototype.up=function(){return this._parent},e}();ua.default=tb});var ti=v(Lt=>{"use strict";var kt=Lt&&Lt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Lt,"__esModule",{value:!0});Lt.validatePubId=void 0;var Ct=ve(),rb=ur(),at=ce(),nb=kt(qr()),ib=kt(Zo()),ob=kt(ta()),ab=kt(na()),sb=kt(oa()),ub=kt(sa()),cb=kt(Mr()),lb=function(){function e(t,r,n){this._pubId=void 0,this._sysId=void 0,this._validation=r,this._children=[],this._parent=t,this.name=n.name,(0,at.isUndefined)(n.sysId)||(this.sysId=n.sysId),(0,at.isUndefined)(n.pubId)||(this.pubId=n.pubId)}return Object.defineProperty(e.prototype,"name",{get:function(){return this._name},set:function(t){if(this._validation&&!(0,at.validateName)(t))throw new Error((0,Ct.getContext)(this.up())+': DTD name "'+t+'" should not contain characters not allowed in XML names');this._name=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pubId",{get:function(){return this._pubId},set:function(t){if(!(0,at.isUndefined)(t)){if(this._validation&&!Ad(t))throw new Error((0,Ct.getContext)(this.up())+": DTD public"+(' identifier "'+t+'" should not contain')+" characters not allowed in public identifiers");if(this._validation&&(0,at.isUndefined)(this._sysId))throw new Error((0,Ct.getContext)(this.up())+": DTD public"+(' identifier "'+t+'" should not be defined')+" if system identifier is undefined")}this._pubId=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sysId",{get:function(){return this._sysId},set:function(t){if(!(0,at.isUndefined)(t)){if(this._validation&&!(0,at.validateChar)(t))throw new Error((0,Ct.getContext)(this.up())+": DTD system"+(' identifier "'+t+'" should not contain')+" characters not allowed in XML");if(this._validation&&t.indexOf("'")!==-1&&t.indexOf('"')!==-1)throw new Error((0,Ct.getContext)(this.up())+": DTD system"+(' identifier "'+t+'" should not contain')+" both single quotes and double quotes")}this._sysId=t},enumerable:!1,configurable:!0}),e.prototype.attlist=function(t){var r=new ib.default(this,this._validation,t);return this._children.push(r),r},e.prototype.comment=function(t){var r=new nb.default(this,this._validation,t);return this._children.push(r),r},e.prototype.element=function(t){var r=new ob.default(this,this._validation,t);return this._children.push(r),r},e.prototype.entity=function(t){var r=new ab.default(this,this._validation,t);return this._children.push(r),r},e.prototype.notation=function(t){var r=new sb.default(this,this._validation,t);return this._children.push(r),r},e.prototype.paramEntityRef=function(t){var r=new ub.default(this,this._validation,t);return this._children.push(r),r},e.prototype.procInst=function(t){var r=new cb.default(this,this._validation,t);return this._children.push(r),r},e.prototype.toString=function(t){t===void 0&&(t={});var r=new rb.StringOptions(t),n="<!DOCTYPE "+this._name;if((0,at.isUndefined)(this._pubId))(0,at.isUndefined)(this._sysId)||(n+=" ",n=this.appendId("SYSTEM",this._sysId,n,r));else{if((0,at.isUndefined)(this._sysId))throw new Error((0,Ct.getContext)(this.up())+": DTD system identifier is not undefined");n+=" ",n=this.appendId("PUBLIC",this._pubId,n,r),n=this.appendId("",this._sysId,n,r)}if(this._children.length!==0){n+=" [";for(var i=0,o=this._children;i<o.length;i++){var a=o[i];r.pretty&&(n+=r.newline+r.indent),n+=a.toString()}r.pretty&&(n+=r.newline),n+="]>"}else n+=">";return n},e.prototype.up=function(){return this._parent},e.prototype.appendId=function(t,r,n,i){if(n+=t+" ",i.doubleQuotes){if(this._validation&&r.indexOf('"')!==-1)throw new Error((0,Ct.getContext)(this.up())+": doubleQuotes option inconsistent with DTD system identifier or public identifier");n+='"'+r+'"'}else{if(this._validation&&r.indexOf("'")!==-1)throw new Error((0,Ct.getContext)(this)+": doubleQuotes option inconsistent with DTD system identifier or public identifier");n+="'"+r+"'"}return n},e}();Lt.default=lb;function Ad(e){for(var t=0;t<e.length;t++){var r=e.charCodeAt(t);if(!(r===10||r===13||r===32||r===33||r>=35&&r<=37||r>=39&&r<=47||r>=48&&r<=57||r===58||r===59||r===61||r===63||r>=64&&r<=90||r===95||r>=97&&r<=122))return t+1===e.length,!1}return!0}Lt.validatePubId=Ad});var fa=v(la=>{"use strict";Object.defineProperty(la,"__esModule",{value:!0});var Td=ve(),ca=ce(),fb=function(){function e(t,r,n){this._validation=r,(0,ca.isUndefined)(n.replaceInvalidCharsInCharData)?this._replaceInvalidCharsInCharData=!1:this._replaceInvalidCharsInCharData=n.replaceInvalidCharsInCharData,this._parent=t,this.charData=n.charData}return Object.defineProperty(e.prototype,"charData",{get:function(){return this._charData},set:function(t){if(this._replaceInvalidCharsInCharData)t=(0,ca.fixChar)(t);else if(this._validation&&!(0,ca.validateChar)(t))throw new Error((0,Td.getContext)(this.up())+": CDATA section"+(' "'+t+'" should not contain characters')+" not allowed in XML");if(this._replaceInvalidCharsInCharData)t=t.replace("]]>","\uFFFD\uFFFD\uFFFD");else if(this._validation&&t.indexOf("]]>")!==-1)throw new Error((0,Td.getContext)(this.up())+": CDATA section"+(' "'+t+'" should not contain the string')+" ']]>'");this._charData=t},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"<![CDATA["+this._charData+"]]>"},e.prototype.up=function(){return this._parent},e}();la.default=fb});var ma=v(ha=>{"use strict";Object.defineProperty(ha,"__esModule",{value:!0});var db=ve(),da=zn(),pa=ce(),pb=function(){function e(t,r,n){this._validation=r,(0,pa.isUndefined)(n.replaceInvalidCharsInCharData)?this._replaceInvalidCharsInCharData=!1:this._replaceInvalidCharsInCharData=n.replaceInvalidCharsInCharData,this._parent=t,this.charData=n.charData}return Object.defineProperty(e.prototype,"charData",{get:function(){return this._charData},set:function(t){if(this._replaceInvalidCharsInCharData)t=(0,pa.fixChar)(t);else if(this._validation&&!(0,pa.validateChar)(t))throw new Error((0,db.getContext)(this.up())+": character data"+('"'+t+'" should not contain characters not')+" allowed in XML");this._charData=t},enumerable:!1,configurable:!0}),e.prototype.toString=function(){var t=this._charData;return t=(0,da.escapeAmpersands)(t),t=(0,da.escapeLeftAngleBrackets)(t),t=(0,da.escapeRightAngleBracketsInCdataTerminator)(t),t},e.prototype.up=function(){return this._parent},e}();ha.default=pb});var oi=v(Gr=>{"use strict";var Nt=Gr&&Gr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Gr,"__esModule",{value:!0});var ri=ve(),hb=ur(),jr=ce(),Fd=Nt(Qn()),mb=Nt(fa()),$r=Nt(ma()),ni=Nt(Jn()),yb=Nt(qr()),ii=Nt(Kn()),gb=Nt(Mr()),vb=function(){function e(t,r,n){this._validation=r,(0,jr.isUndefined)(n.replaceInvalidCharsInName)?this._replaceInvalidCharsInName=!1:this._replaceInvalidCharsInName=n.replaceInvalidCharsInName,(0,jr.isUndefined)(n.useSelfClosingTagIfEmpty)?this._useSelfClosingTagIfEmpty=!0:this._useSelfClosingTagIfEmpty=n.useSelfClosingTagIfEmpty,this._children=[],this._attributeNames=[],this._parent=t,this.name=n.name}return Object.defineProperty(e.prototype,"name",{get:function(){return this._name},set:function(t){if(this._replaceInvalidCharsInName){if(t=(0,jr.fixName)(t),t.length===0)throw new Error((0,ri.getContext)(this.up())+": element name should not be empty")}else if(this._validation&&!(0,jr.validateName)(t))throw t.length===0?new Error((0,ri.getContext)(this.up())+": element name should not be empty"):new Error((0,ri.getContext)(this.up())+": element name"+(' "'+t+'" should not contain characters not')+" allowed in XML names");this._name=t},enumerable:!1,configurable:!0}),e.prototype.attribute=function(t){if(this._validation&&this._attributeNames.indexOf(t.name)!==-1)throw new Error((0,ri.getContext)(this.up())+': element "'+this.name+'" already contains an attribute with the'+(' name "'+t.name+'"'));var r=new Fd.default(this,this._validation,t);return this._children.push(r),this._attributeNames.push(t.name),r},e.prototype.cdata=function(t){var r=new mb.default(this,this._validation,t);return this._children.push(r),r},e.prototype.charData=function(t){var r=new $r.default(this,this._validation,t);return this._children.push(r),r},e.prototype.charRef=function(t){var r=new ni.default(this,this._validation,t);return this._children.push(r),r},e.prototype.comment=function(t){var r=new yb.default(this,this._validation,t);return this._children.push(r),r},e.prototype.element=function(t){var r=new e(this,this._validation,t);return this._children.push(r),r},e.prototype.entityRef=function(t){var r=new ii.default(this,this._validation,t);return this._children.push(r),r},e.prototype.procInst=function(t){var r=new gb.default(this,this._validation,t);return this._children.push(r),r},e.prototype.toString=function(t){return t===void 0&&(t={}),this.toStringWithIndent(t,"")},e.prototype.up=function(){return this._parent},e.prototype.toStringWithIndent=function(t,r){for(var n=new hb.StringOptions(t),i=r+n.indent,o="<"+this._name,a=[],s=0,c=this._children;s<c.length;s++){var d=c[s];d instanceof Fd.default?o+=" "+d.toString(t):a.push(d)}if(a.length>0){for(var l="",p=0;p<a.length;p++){var m=a[p],h="";m instanceof e?h+=m.toStringWithIndent(n,i):h+=m.toString();var _=p>0?a[p-1]:void 0;m instanceof $r.default&&m.toString()===""||(n.pretty&&(this.allSameLineNodes(a)||p>0&&this.onSameLine(m,_)||(h=n.newline+i+h)),l+=h)}n.pretty&&(this.allSameLineNodes(a)||(l+=n.newline+r)),l.length===0&&this._useSelfClosingTagIfEmpty?o+="/>":o+=">"+l+"</"+this._name+">"}else this._useSelfClosingTagIfEmpty?o+="/>":o+="></"+this._name+">";return o},e.prototype.allSameLineNodes=function(t){for(var r=0,n=t;r<n.length;r++){var i=n[r];if(!(i instanceof ni.default||i instanceof ii.default||i instanceof $r.default))return!1}return!0},e.prototype.onSameLine=function(t,r){return(t instanceof ni.default||t instanceof ii.default||t instanceof $r.default)&&!(0,jr.isUndefined)(r)&&(r instanceof ni.default||r instanceof ii.default||r instanceof $r.default)},e}();Gr.default=vb});var ve=v(cr=>{"use strict";var si=cr&&cr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(cr,"__esModule",{value:!0});cr.getContext=void 0;var _b=si(Qn()),bb=si(ui()),Eb=si(ti()),Sb=si(oi());function ai(e){if(e instanceof _b.default)return ai(e.up())+(' > attribute "'+e.name+'"');if(e instanceof bb.default)return"in XML document";if(e instanceof Eb.default)return ai(e.up())+" > DTD";if(e instanceof Sb.default)return ai(e.up())+(' > element "'+e.name+'"');throw new Error("Unrecognized object of type "+Object.prototype.toString.call(e))}cr.getContext=ai});var qr=v(va=>{"use strict";Object.defineProperty(va,"__esModule",{value:!0});var ya=ve(),ga=ce(),wb=function(){function e(t,r,n){this._validation=r,(0,ga.isUndefined)(n.replaceInvalidCharsInCharData)?this._replaceInvalidCharsInCharData=!1:this._replaceInvalidCharsInCharData=n.replaceInvalidCharsInCharData,this._parent=t,this.charData=n.charData}return Object.defineProperty(e.prototype,"charData",{get:function(){return this._charData},set:function(t){if(this._replaceInvalidCharsInCharData)t=(0,ga.fixChar)(t);else if(this._validation&&!(0,ga.validateChar)(t))throw new Error((0,ya.getContext)(this.up())+": comment content"+(' "'+t+'" should not contain characters')+" not allowed in XML");if(this._replaceInvalidCharsInCharData)t=t.replace("--","\uFFFD\uFFFD");else if(this._validation&&t.indexOf("--")!==-1)throw new Error((0,ya.getContext)(this.up())+": comment content"+(' "'+t+'" should not contain the string')+" '--'");if(this._replaceInvalidCharsInCharData)t.lastIndexOf("-")===t.length-1&&(t=t.substr(0,t.length-1)+"\uFFFD");else if(this._validation&&t.lastIndexOf("-")===t.length-1)throw new Error((0,ya.getContext)(this.up())+": comment content"+(' "'+t+'" should not end with the string')+" '-'");this._charData=t},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"<!--"+this._charData+"-->"},e.prototype.up=function(){return this._parent},e}();va.default=wb});var Ea=v(ba=>{"use strict";Object.defineProperty(ba,"__esModule",{value:!0});var _a=ve(),Db=ur(),Br=ce(),Cb=function(){function e(t,r,n){this._version="1.0",this._validation=r,this._parent=t,this.encoding=n.encoding,this.standalone=n.standalone,(0,Br.isUndefined)(n.version)||(this.version=n.version)}return Object.defineProperty(e.prototype,"encoding",{get:function(){return this._encoding},set:function(t){if(this._validation&&!(0,Br.isUndefined)(t)&&!xb(t))throw new Error((0,_a.getContext)(this.up())+": declaration"+(" encoding attribute "+t+" should be a")+" valid encoding");this._encoding=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"standalone",{get:function(){return this._standalone},set:function(t){if(this._validation&&!(0,Br.isUndefined)(t)&&t!=="yes"&&t!=="no")throw new Error((0,_a.getContext)(this.up())+": declaration"+(" standalone attribute "+t+" should")+" be the string 'yes' or the string 'no'");this._standalone=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},set:function(t){if(this._validation&&!Rb(t))throw new Error((0,_a.getContext)(this.up())+": declaration version"+(" attribute "+t+" should be a valid XML")+" version");this._version=t},enumerable:!1,configurable:!0}),e.prototype.toString=function(t){t===void 0&&(t={});var r=new Db.StringOptions(t),n=r.doubleQuotes?'"':"'",i="<?xml version="+n+this._version+n;return(0,Br.isUndefined)(this._encoding)||(i+=" encoding="+n+this._encoding+n),(0,Br.isUndefined)(this._standalone)||(i+=" standalone="+n+this._standalone+n),i+="?>",i},e.prototype.up=function(){return this._parent},e}();ba.default=Cb;function xb(e){if(e.length===0)return!1;var t=e.charCodeAt(0);if(!(t>=65&&t<=90||t>=97&&t<=122))return!1;for(var r=1;r<e.length;r++){var n=e.charCodeAt(r);if(!(n===95||n===45||n===46||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122))return r+1===e.length,!1}return!0}function Rb(e){for(var t=0;t<=9;t++)if(e==="1."+t)return!0;return!1}});var ui=v(Xr=>{"use strict";var Hr=Xr&&Xr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Xr,"__esModule",{value:!0});var Ob=ur(),Ib=ce(),Pb=Hr(qr()),Ld=Hr(Ea()),kd=Hr(ti()),Ur=Hr(oi()),Ab=Hr(Mr()),Tb=function(){function e(t){this._children=[],this._validation=(0,Ib.isUndefined)(t.validation)?!0:t.validation}return e.prototype.comment=function(t){var r=new Pb.default(this,this._validation,t);return this._children.push(r),r},e.prototype.decl=function(t){if(t===void 0&&(t={}),this._validation&&this._children.length!==0)throw new Error("in XML document: declaration must be the first child");var r=new Ld.default(this,this._validation,t);return this._children.push(r),r},e.prototype.dtd=function(t){var r=this._children.filter(function(i){return i instanceof Ur.default});if(this._validation&&r.length!==0)throw new Error("in XML document: DTD must precede the root element");var n=new kd.default(this,this._validation,t);return this._children.push(n),n},e.prototype.element=function(t){var r=this._children.filter(function(i){return i instanceof Ur.default});if(this._validation&&r.length!==0)throw new Error("in XML document: only one root element is permitted");var n=new Ur.default(this,this._validation,t);return this._children.push(n),n},e.prototype.procInst=function(t){var r=new Ab.default(this,this._validation,t);return this._children.push(r),r},e.prototype.toString=function(t){t===void 0&&(t={});var r=this._children.filter(function(d){return d instanceof Ur.default});if(this._validation&&r.length!==1)throw new Error("in XML document: no more than one root element is permitted");for(var n=new Ob.StringOptions(t),i="",o=0,a=this._children;o<a.length;o++){var s=a[o];s instanceof Ld.default||s instanceof kd.default||s instanceof Ur.default?i+=s.toString(t):i+=s.toString(),n.pretty&&(i+=n.newline)}var c=i.length-n.newline.length;return i.substr(c)===n.newline&&(i=i.substr(0,c)),i},e}();Xr.default=Tb});var Nd=v(N=>{"use strict";var de=N&&N.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(N,"__esModule",{value:!0});N.document=N.XmlProcInst=N.XmlEntityRef=N.XmlElement=N.XmlDtdParamEntityRef=N.XmlDtdNotation=N.XmlDtdEntity=N.XmlDtdElement=N.XmlDtdAttlist=N.XmlDtd=N.XmlDocument=N.XmlDecl=N.XmlComment=N.XmlCharRef=N.XmlCharData=N.XmlCdata=N.XmlAttributeText=N.XmlAttribute=void 0;var Fb=de(ui()),Lb=Qn();Object.defineProperty(N,"XmlAttribute",{enumerable:!0,get:function(){return de(Lb).default}});var kb=Wo();Object.defineProperty(N,"XmlAttributeText",{enumerable:!0,get:function(){return de(kb).default}});var Nb=fa();Object.defineProperty(N,"XmlCdata",{enumerable:!0,get:function(){return de(Nb).default}});var Mb=ma();Object.defineProperty(N,"XmlCharData",{enumerable:!0,get:function(){return de(Mb).default}});var qb=Jn();Object.defineProperty(N,"XmlCharRef",{enumerable:!0,get:function(){return de(qb).default}});var jb=qr();Object.defineProperty(N,"XmlComment",{enumerable:!0,get:function(){return de(jb).default}});var $b=Ea();Object.defineProperty(N,"XmlDecl",{enumerable:!0,get:function(){return de($b).default}});var Gb=ui();Object.defineProperty(N,"XmlDocument",{enumerable:!0,get:function(){return de(Gb).default}});var Bb=ti();Object.defineProperty(N,"XmlDtd",{enumerable:!0,get:function(){return de(Bb).default}});var Ub=Zo();Object.defineProperty(N,"XmlDtdAttlist",{enumerable:!0,get:function(){return de(Ub).default}});var Xb=ta();Object.defineProperty(N,"XmlDtdElement",{enumerable:!0,get:function(){return de(Xb).default}});var Hb=na();Object.defineProperty(N,"XmlDtdEntity",{enumerable:!0,get:function(){return de(Hb).default}});var Wb=oa();Object.defineProperty(N,"XmlDtdNotation",{enumerable:!0,get:function(){return de(Wb).default}});var Yb=sa();Object.defineProperty(N,"XmlDtdParamEntityRef",{enumerable:!0,get:function(){return de(Yb).default}});var Vb=oi();Object.defineProperty(N,"XmlElement",{enumerable:!0,get:function(){return de(Vb).default}});var zb=Kn();Object.defineProperty(N,"XmlEntityRef",{enumerable:!0,get:function(){return de(zb).default}});var Jb=Mr();Object.defineProperty(N,"XmlProcInst",{enumerable:!0,get:function(){return de(Jb).default}});function Kb(e){return e===void 0&&(e={}),new Fb.default(e)}N.document=Kb});var Sa=v(pe=>{"use strict";Object.defineProperty(pe,"__esModule",{value:!0});pe.stringify=pe.isMap=pe.isSet=pe.isFunction=pe.isArray=pe.isObject=pe.isNull=pe.isUndefined=void 0;function Md(e){return Object.prototype.toString.call(e)==="[object Undefined]"}pe.isUndefined=Md;function qd(e){return Object.prototype.toString.call(e)==="[object Null]"}pe.isNull=qd;function Qb(e){return Object.prototype.toString.call(e)==="[object Object]"}pe.isObject=Qb;function Zb(e){return Object.prototype.toString.call(e)==="[object Array]"}pe.isArray=Zb;function jd(e){return Object.prototype.toString.call(e)==="[object Function]"}pe.isFunction=jd;function eE(e){return Object.prototype.toString.call(e)==="[object Set]"}pe.isSet=eE;function tE(e){return Object.prototype.toString.call(e)==="[object Map]"}pe.isMap=tE;function rE(e){return!Md(e)&&!qd(e)&&jd(e?.toString)&&(e=e.toString()),String(e)}pe.stringify=rE});var Hd=v(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.WrapHandlers=qe.TypeHandlers=qe.FormatOptions=qe.DtdOptions=qe.DeclarationOptions=qe.Options=void 0;var Ze=Sa(),nE=function(){function e(t){t===void 0&&(t={}),this.aliasString="=",this.attributeString="@",this.cdataInvalidChars=!1,this.cdataKeys=[],this.replaceInvalidChars=!1,this.useSelfClosingTagIfEmpty=!0,this.validation=!0,this.valueString="#",(0,Ze.isUndefined)(t.validation)||(this.validation=t.validation),(0,Ze.isUndefined)(t.aliasString)||(this.aliasString=t.aliasString),(0,Ze.isUndefined)(t.attributeString)||(this.attributeString=t.attributeString),(0,Ze.isUndefined)(t.cdataInvalidChars)||(this.cdataInvalidChars=t.cdataInvalidChars),(0,Ze.isUndefined)(t.cdataKeys)||(this.cdataKeys=t.cdataKeys),this.declaration=new $d(t.declaration),this.dtd=new Gd(this.validation,t.dtd),this.format=new Bd(t.format),(0,Ze.isUndefined)(t.replaceInvalidChars)||(this.replaceInvalidChars=t.replaceInvalidChars),this.typeHandlers=new Ud(t.typeHandlers),(0,Ze.isUndefined)(t.useSelfClosingTagIfEmpty)||(this.useSelfClosingTagIfEmpty=t.useSelfClosingTagIfEmpty),(0,Ze.isUndefined)(t.valueString)||(this.valueString=t.valueString),this.wrapHandlers=new Xd(t.wrapHandlers)}return e}();qe.Options=nE;var $d=function(){function e(t){t===void 0&&(t={}),this.include=!0,(0,Ze.isUndefined)(t.include)||(this.include=t.include),this.encoding=t.encoding,this.standalone=t.standalone,this.version=t.version}return e}();qe.DeclarationOptions=$d;var Gd=function(){function e(t,r){if(r===void 0&&(r={}),this.include=!1,(0,Ze.isUndefined)(r.include)||(this.include=r.include),t&&(0,Ze.isUndefined)(r.name)&&this.include)throw new Error("options.dtd.name should be defined if options.dtd.include is true");this.name=r.name,this.sysId=r.sysId,this.pubId=r.pubId}return e}();qe.DtdOptions=Gd;var Bd=function(){function e(t){t===void 0&&(t={}),this.doubleQuotes=t.doubleQuotes,this.indent=t.indent,this.newline=t.newline,this.pretty=t.pretty}return e}();qe.FormatOptions=Bd;var Ud=function(){function e(t){t===void 0&&(t={});for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(this[r]=t[r])}return e}();qe.TypeHandlers=Ud;var Xd=function(){function e(t){t===void 0&&(t={});for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(this[r]=t[r])}return e}();qe.WrapHandlers=Xd});var Kd=v(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.parse=xt.parseToExistingElement=xt.Absent=void 0;var Yd=Nd(),Vd=Hd(),oe=Sa(),wa=function(){function e(){}return Object.defineProperty(e,"instance",{get:function(){return e._instance},enumerable:!1,configurable:!0}),e._instance=new e,e}();xt.Absent=wa;function Da(e,t){var r=Object.prototype.toString.call(e),n;return Object.prototype.hasOwnProperty.call(t.typeHandlers,"*")&&(n=t.typeHandlers["*"]),Object.prototype.hasOwnProperty.call(t.typeHandlers,r)&&(n=t.typeHandlers[r]),n}function zd(e,t,r){var n=function(a){return r.cdataInvalidChars&&(a.indexOf("<")!==-1||a.indexOf("&")!==-1)||r.cdataKeys.indexOf(t.name)!==-1||r.cdataKeys.indexOf("*")!==-1};if(t instanceof Yd.XmlElement)if(n(e))for(var i=e.split("]]>"),o=0;o<i.length;o++)n(i[o])?t.cdata({charData:i[o],replaceInvalidCharsInCharData:r.replaceInvalidChars}):t.charData({charData:i[o],replaceInvalidCharsInCharData:r.replaceInvalidChars}),o<i.length-1&&t.charData({charData:"]]>",replaceInvalidCharsInCharData:r.replaceInvalidChars});else t.charData({charData:e,replaceInvalidCharsInCharData:r.replaceInvalidChars});else t.text({charData:e,replaceInvalidCharsInCharData:r.replaceInvalidChars})}function iE(e,t,r,n){var i=r.attribute({name:e,replaceInvalidCharsInName:n.replaceInvalidChars});zd((0,oe.stringify)(t),i,n)}function Wd(e,t,r,n){if(e===n.aliasString){r.name=(0,oe.stringify)(t);return}if(e.indexOf(n.attributeString)===0&&(0,oe.isObject)(t)){for(var i=0,o=Object.keys(t);i<o.length;i++){var a=o[i];iE(a,(0,oe.stringify)(t[a]),r,n)}return}if(e.indexOf(n.valueString)===0){ci(e,(0,oe.stringify)(t),r,n);return}var s=r;if(!(0,oe.isArray)(t)&&!(0,oe.isSet)(t)){var c=Da(t,n);if(!(0,oe.isUndefined)(c)&&c(t)===wa.instance)return;s=r.element({name:e,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty})}ci(e,t,s,n)}function oE(e,t,r){if((0,oe.isMap)(e))e.forEach(function(a,s){Wd((0,oe.stringify)(s),a,t,r)});else for(var n=0,i=Object.keys(e);n<i.length;n++){var o=i[n];Wd(o,e[o],t,r)}}function aE(e,t,r,n){var i;Object.prototype.hasOwnProperty.call(n.wrapHandlers,"*")&&(i=n.wrapHandlers["*"]),Object.prototype.hasOwnProperty.call(n.wrapHandlers,e)&&(i=n.wrapHandlers[e]);var o=e,a=r;if(!(0,oe.isUndefined)(i)){var s=i(o,t);(0,oe.isNull)(s)||(o=s,a=r.element({name:e,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty}))}t.forEach(function(c){var d=a;if(!(0,oe.isArray)(c)&&!(0,oe.isSet)(c)){var l=Da(c,n);if(!(0,oe.isUndefined)(l)&&l(c)===wa.instance)return;d=a.element({name:o,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty})}ci(o,c,d,n)})}function ci(e,t,r,n){var i=Da(t,n);if((0,oe.isUndefined)(i)||(t=i(t)),(0,oe.isObject)(t)||(0,oe.isMap)(t)){oE(t,r,n);return}if((0,oe.isArray)(t)||(0,oe.isSet)(t)){aE(e,t,r,n);return}zd((0,oe.stringify)(t),r,n)}function Jd(e,t,r){var n=new Vd.Options(r);ci(e.name,t,e,n)}xt.parseToExistingElement=Jd;function sE(e,t,r){var n=new Vd.Options(r),i=new Yd.XmlDocument({validation:n.validation});n.declaration.include&&i.decl(n.declaration),n.dtd.include&&i.dtd({name:n.dtd.name,pubId:n.dtd.pubId,sysId:n.dtd.sysId});var o=i.element({name:e,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty});return Jd(o,t,r),i.toString(n.format)}xt.parse=sE});var Ca=v((aD,Qd)=>{"use strict";Qd.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 Te=v((sD,tp)=>{"use strict";var uE=Ca(),Mt=Object.prototype.toString;function Oa(e){return Mt.call(e)==="[object Array]"}function xa(e){return typeof e>"u"}function cE(e){return e!==null&&!xa(e)&&e.constructor!==null&&!xa(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function lE(e){return Mt.call(e)==="[object ArrayBuffer]"}function fE(e){return typeof FormData<"u"&&e instanceof FormData}function dE(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function pE(e){return typeof e=="string"}function hE(e){return typeof e=="number"}function Zd(e){return e!==null&&typeof e=="object"}function li(e){if(Mt.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function mE(e){return Mt.call(e)==="[object Date]"}function yE(e){return Mt.call(e)==="[object File]"}function gE(e){return Mt.call(e)==="[object Blob]"}function ep(e){return Mt.call(e)==="[object Function]"}function vE(e){return Zd(e)&&ep(e.pipe)}function _E(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}function bE(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function EE(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function Ia(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),Oa(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 Ra(){var e={};function t(i,o){li(e[o])&&li(i)?e[o]=Ra(e[o],i):li(i)?e[o]=Ra({},i):Oa(i)?e[o]=i.slice():e[o]=i}for(var r=0,n=arguments.length;r<n;r++)Ia(arguments[r],t);return e}function SE(e,t,r){return Ia(t,function(i,o){r&&typeof i=="function"?e[o]=uE(i,r):e[o]=i}),e}function wE(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}tp.exports={isArray:Oa,isArrayBuffer:lE,isBuffer:cE,isFormData:fE,isArrayBufferView:dE,isString:pE,isNumber:hE,isObject:Zd,isPlainObject:li,isUndefined:xa,isDate:mE,isFile:yE,isBlob:gE,isFunction:ep,isStream:vE,isURLSearchParams:_E,isStandardBrowserEnv:EE,forEach:Ia,merge:Ra,extend:SE,trim:bE,stripBOM:wE}});var fi=v((uD,np)=>{"use strict";var lr=Te();function rp(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}np.exports=function(t,r,n){if(!r)return t;var i;if(n)i=n(r);else if(lr.isURLSearchParams(r))i=r.toString();else{var o=[];lr.forEach(r,function(c,d){c===null||typeof c>"u"||(lr.isArray(c)?d=d+"[]":c=[c],lr.forEach(c,function(p){lr.isDate(p)?p=p.toISOString():lr.isObject(p)&&(p=JSON.stringify(p)),o.push(rp(d)+"="+rp(p))}))}),i=o.join("&")}if(i){var a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}});var op=v((cD,ip)=>{"use strict";var DE=Te();function di(){this.handlers=[]}di.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};di.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};di.prototype.forEach=function(t){DE.forEach(this.handlers,function(n){n!==null&&t(n)})};ip.exports=di});var sp=v((lD,ap)=>{"use strict";var CE=Te();ap.exports=function(t,r){CE.forEach(t,function(i,o){o!==r&&o.toUpperCase()===r.toUpperCase()&&(t[r]=i,delete t[o])})}});var pi=v((fD,up)=>{"use strict";up.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 hi=v((dD,cp)=>{"use strict";var xE=pi();cp.exports=function(t,r,n,i,o){var a=new Error(t);return xE(a,r,n,i,o)}});var Pa=v((pD,lp)=>{"use strict";var RE=hi();lp.exports=function(t,r,n){var i=n.config.validateStatus;!n.status||!i||i(n.status)?t(n):r(RE("Request failed with status code "+n.status,n.config,null,n.request,n))}});var dp=v((hD,fp)=>{"use strict";var mi=Te();fp.exports=mi.isStandardBrowserEnv()?function(){return{write:function(r,n,i,o,a,s){var c=[];c.push(r+"="+encodeURIComponent(n)),mi.isNumber(i)&&c.push("expires="+new Date(i).toGMTString()),mi.isString(o)&&c.push("path="+o),mi.isString(a)&&c.push("domain="+a),s===!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 hp=v((mD,pp)=>{"use strict";pp.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}});var yp=v((yD,mp)=>{"use strict";mp.exports=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}});var Aa=v((gD,gp)=>{"use strict";var OE=hp(),IE=yp();gp.exports=function(t,r){return t&&!OE(r)?IE(t,r):r}});var _p=v((vD,vp)=>{"use strict";var Ta=Te(),PE=["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"];vp.exports=function(t){var r={},n,i,o;return t&&Ta.forEach(t.split(`
33
+ `),function(s){if(o=s.indexOf(":"),n=Ta.trim(s.substr(0,o)).toLowerCase(),i=Ta.trim(s.substr(o+1)),n){if(r[n]&&PE.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 Sp=v((_D,Ep)=>{"use strict";var bp=Te();Ep.exports=bp.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),n;function i(o){var a=o;return t&&(r.setAttribute("href",a),a=r.href),r.setAttribute("href",a),{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(a){var s=bp.isString(a)?i(a):a;return s.protocol===n.protocol&&s.host===n.host}}():function(){return function(){return!0}}()});var Dp=v((bD,wp)=>{"use strict";var yi=Te(),AE=Pa(),TE=dp(),FE=fi(),LE=Aa(),kE=_p(),NE=Sp(),Fa=hi();wp.exports=function(t){return new Promise(function(n,i){var o=t.data,a=t.headers,s=t.responseType;yi.isFormData(o)&&delete a["Content-Type"];var c=new XMLHttpRequest;if(t.auth){var d=t.auth.username||"",l=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";a.Authorization="Basic "+btoa(d+":"+l)}var p=LE(t.baseURL,t.url);c.open(t.method.toUpperCase(),FE(p,t.params,t.paramsSerializer),!0),c.timeout=t.timeout;function m(){if(c){var _="getAllResponseHeaders"in c?kE(c.getAllResponseHeaders()):null,E=!s||s==="text"||s==="json"?c.responseText:c.response,w={data:E,status:c.status,statusText:c.statusText,headers:_,config:t,request:c};AE(n,i,w),c=null}}if("onloadend"in c?c.onloadend=m:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(m)},c.onabort=function(){c&&(i(Fa("Request aborted",t,"ECONNABORTED",c)),c=null)},c.onerror=function(){i(Fa("Network Error",t,null,c)),c=null},c.ontimeout=function(){var E="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(E=t.timeoutErrorMessage),i(Fa(E,t,t.transitional&&t.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",c)),c=null},yi.isStandardBrowserEnv()){var h=(t.withCredentials||NE(p))&&t.xsrfCookieName?TE.read(t.xsrfCookieName):void 0;h&&(a[t.xsrfHeaderName]=h)}"setRequestHeader"in c&&yi.forEach(a,function(E,w){typeof o>"u"&&w.toLowerCase()==="content-type"?delete a[w]:c.setRequestHeader(w,E)}),yi.isUndefined(t.withCredentials)||(c.withCredentials=!!t.withCredentials),s&&s!=="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(E){c&&(c.abort(),i(E),c=null)}),o||(o=null),c.send(o)})}});var xp=v((ED,Cp)=>{var fr=1e3,dr=fr*60,pr=dr*60,qt=pr*24,ME=qt*7,qE=qt*365.25;Cp.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return jE(e);if(r==="number"&&isFinite(e))return t.long?GE(e):$E(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function jE(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*qE;case"weeks":case"week":case"w":return r*ME;case"days":case"day":case"d":return r*qt;case"hours":case"hour":case"hrs":case"hr":case"h":return r*pr;case"minutes":case"minute":case"mins":case"min":case"m":return r*dr;case"seconds":case"second":case"secs":case"sec":case"s":return r*fr;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function $E(e){var t=Math.abs(e);return t>=qt?Math.round(e/qt)+"d":t>=pr?Math.round(e/pr)+"h":t>=dr?Math.round(e/dr)+"m":t>=fr?Math.round(e/fr)+"s":e+"ms"}function GE(e){var t=Math.abs(e);return t>=qt?gi(e,t,qt,"day"):t>=pr?gi(e,t,pr,"hour"):t>=dr?gi(e,t,dr,"minute"):t>=fr?gi(e,t,fr,"second"):e+" ms"}function gi(e,t,r,n){var i=t>=r*1.5;return Math.round(e/r)+" "+n+(i?"s":"")}});var La=v((SD,Rp)=>{function BE(e){r.debug=r,r.default=r,r.coerce=c,r.disable=o,r.enable=i,r.enabled=a,r.humanize=xp(),r.destroy=d,Object.keys(e).forEach(l=>{r[l]=e[l]}),r.names=[],r.skips=[],r.formatters={};function t(l){let p=0;for(let m=0;m<l.length;m++)p=(p<<5)-p+l.charCodeAt(m),p|=0;return r.colors[Math.abs(p)%r.colors.length]}r.selectColor=t;function r(l){let p,m=null,h,_;function E(...w){if(!E.enabled)return;let I=E,F=Number(new Date),A=F-(p||F);I.diff=A,I.prev=p,I.curr=F,p=F,w[0]=r.coerce(w[0]),typeof w[0]!="string"&&w.unshift("%O");let L=0;w[0]=w[0].replace(/%([a-zA-Z%])/g,(ue,$e)=>{if(ue==="%%")return"%";L++;let le=r.formatters[$e];if(typeof le=="function"){let x=w[L];ue=le.call(I,x),w.splice(L,1),L--}return ue}),r.formatArgs.call(I,w),(I.log||r.log).apply(I,w)}return E.namespace=l,E.useColors=r.useColors(),E.color=r.selectColor(l),E.extend=n,E.destroy=r.destroy,Object.defineProperty(E,"enabled",{enumerable:!0,configurable:!1,get:()=>m!==null?m:(h!==r.namespaces&&(h=r.namespaces,_=r.enabled(l)),_),set:w=>{m=w}}),typeof r.init=="function"&&r.init(E),E}function n(l,p){let m=r(this.namespace+(typeof p>"u"?":":p)+l);return m.log=this.log,m}function i(l){r.save(l),r.namespaces=l,r.names=[],r.skips=[];let p,m=(typeof l=="string"?l:"").split(/[\s,]+/),h=m.length;for(p=0;p<h;p++)m[p]&&(l=m[p].replace(/\*/g,".*?"),l[0]==="-"?r.skips.push(new RegExp("^"+l.slice(1)+"$")):r.names.push(new RegExp("^"+l+"$")))}function o(){let l=[...r.names.map(s),...r.skips.map(s).map(p=>"-"+p)].join(",");return r.enable(""),l}function a(l){if(l[l.length-1]==="*")return!0;let p,m;for(p=0,m=r.skips.length;p<m;p++)if(r.skips[p].test(l))return!1;for(p=0,m=r.names.length;p<m;p++)if(r.names[p].test(l))return!0;return!1}function s(l){return l.toString().substring(2,l.toString().length-2).replace(/\.\*\?$/,"*")}function c(l){return l instanceof Error?l.stack||l.message:l}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}Rp.exports=BE});var Op=v((Ue,vi)=>{Ue.formatArgs=XE;Ue.save=HE;Ue.load=WE;Ue.useColors=UE;Ue.storage=YE();Ue.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`."))}})();Ue.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 UE(){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 XE(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+vi.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)}Ue.log=console.debug||console.log||(()=>{});function HE(e){try{e?Ue.storage.setItem("debug",e):Ue.storage.removeItem("debug")}catch{}}function WE(){let e;try{e=Ue.storage.getItem("debug")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function YE(){try{return localStorage}catch{}}vi.exports=La()(Ue);var{formatters:VE}=vi.exports;VE.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var Pp=v((wD,Ip)=>{"use strict";Ip.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 Fp=v((DD,Tp)=>{"use strict";var zE=require("os"),Ap=require("tty"),Ve=Pp(),{env:he}=process,Rt;Ve("no-color")||Ve("no-colors")||Ve("color=false")||Ve("color=never")?Rt=0:(Ve("color")||Ve("colors")||Ve("color=true")||Ve("color=always"))&&(Rt=1);"FORCE_COLOR"in he&&(he.FORCE_COLOR==="true"?Rt=1:he.FORCE_COLOR==="false"?Rt=0:Rt=he.FORCE_COLOR.length===0?1:Math.min(parseInt(he.FORCE_COLOR,10),3));function ka(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Na(e,t){if(Rt===0)return 0;if(Ve("color=16m")||Ve("color=full")||Ve("color=truecolor"))return 3;if(Ve("color=256"))return 2;if(e&&!t&&Rt===void 0)return 0;let r=Rt||0;if(he.TERM==="dumb")return r;if(process.platform==="win32"){let n=zE.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in he)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in he)||he.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in he)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(he.TEAMCITY_VERSION)?1:0;if(he.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in he){let n=parseInt((he.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(he.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(he.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(he.TERM)||"COLORTERM"in he?1:r}function JE(e){let t=Na(e,e&&e.isTTY);return ka(t)}Tp.exports={supportsColor:JE,stdout:ka(Na(!0,Ap.isatty(1))),stderr:ka(Na(!0,Ap.isatty(2)))}});var kp=v((_e,bi)=>{var KE=require("tty"),_i=require("util");_e.init=iS;_e.log=tS;_e.formatArgs=ZE;_e.save=rS;_e.load=nS;_e.useColors=QE;_e.destroy=_i.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");_e.colors=[6,2,3,4,5,1];try{let e=Fp();e&&(e.stderr||e).level>=2&&(_e.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{}_e.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 QE(){return"colors"in _e.inspectOpts?!!_e.inspectOpts.colors:KE.isatty(process.stderr.fd)}function ZE(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(`
33
34
  `).join(`
34
- `+o),e.push(i+"m+"+li.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=gE()+t+" "+e[0]}function gE(){return ge.inspectOpts.hideDate?"":new Date().toISOString()+" "}function vE(...e){return process.stderr.write(ci.format(...e)+`
35
- `)}function _E(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function EE(){return process.env.DEBUG}function bE(e){e.inspectOpts={};let t=Object.keys(ge.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=ge.inspectOpts[t[r]]}li.exports=aa()(ge);var{formatters:Dp}=li.exports;Dp.o=function(e){return this.inspectOpts.colors=this.useColors,ci.inspect(e,this.inspectOpts).split(`
36
- `).map(t=>t.trim()).join(" ")};Dp.O=function(e){return this.inspectOpts.colors=this.useColors,ci.inspect(e,this.inspectOpts)}});var xp=v((rD,ca)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?ca.exports=vp():ca.exports=Cp()});var Op=v((nD,Rp)=>{var qr;Rp.exports=function(){if(!qr){try{qr=xp()("follow-redirects")}catch{}typeof qr!="function"&&(qr=function(){})}qr.apply(null,arguments)}});var ma=v((iD,ha)=>{var Nt=require("url"),la=Nt.URL,SE=require("http"),wE=require("https"),Tp=require("stream").Writable,Ap=require("assert"),Fp=Op(),da=["abort","aborted","connect","error","socket","timeout"],pa=Object.create(null);da.forEach(function(e){pa[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}});var DE=$r("ERR_INVALID_URL","Invalid URL",TypeError),Ip=$r("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),CE=$r("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),xE=$r("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),RE=$r("ERR_STREAM_WRITE_AFTER_END","write after end");function Ue(e,t){Tp.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()}Ue.prototype=Object.create(Tp.prototype);Ue.prototype.abort=function(){kp(this._currentRequest),this.emit("abort")};Ue.prototype.write=function(e,t,r){if(this._ending)throw new RE;if(!Mt(e)&&!PE(e))throw new TypeError("data should be a string, Buffer or Uint8Array");if(jr(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 xE),this.abort())};Ue.prototype.end=function(e,t,r){if(jr(e)?(r=e,e=t=null):jr(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}};Ue.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)};Ue.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)};Ue.prototype.setTimeout=function(e,t){var r=this;function n(a){a.setTimeout(e),a.removeListener("timeout",a.destroy),a.addListener("timeout",a.destroy)}function i(a){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout(function(){r.emit("timeout"),o()},e),n(a)}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){Ue.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}});["aborted","connection","socket"].forEach(function(e){Object.defineProperty(Ue.prototype,e,{get:function(){return this._currentRequest[e]}})});Ue.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))}};Ue.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 da)n.on(i,pa[i]);if(this._currentUrl=/^\//.test(this._options.path)?Nt.format(this._options):this._options.path,this._isRedirect){var o=0,a=this,s=this._requestBodyBuffers;(function c(d){if(n===a._currentRequest)if(d)a.emit("error",d);else if(o<s.length){var l=s[o++];n.finished||n.write(l.data,l.encoding,c)}else a._ended&&n.end()})()}};Ue.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(kp(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects){this.emit("error",new CE);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=[],fa(/^content-/i,this._options.headers));var a=fa(/^host$/i,this._options.headers),s=Nt.parse(this._currentUrl),c=a||s.host,d=/^\w+:/.test(r)?this._currentUrl:Nt.format(Object.assign(s,{host:c})),l;try{l=Nt.resolve(d,r)}catch(_){this.emit("error",new Ip({cause:_}));return}Fp("redirecting to",l),this._isRedirect=!0;var p=Nt.parse(l);if(Object.assign(this._options,p),(p.protocol!==s.protocol&&p.protocol!=="https:"||p.host!==c&&!IE(p.host,c))&&fa(/^(?:authorization|cookie)$/i,this._options.headers),jr(i)){var m={headers:e.headers,statusCode:t},h={url:d,method:o,headers:n};try{i(this._options,m,h)}catch(_){this.emit("error",_);return}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(_){this.emit("error",new Ip({cause:_}))}};function Lp(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach(function(n){var i=n+":",o=r[i]=e[n],a=t[n]=Object.create(o);function s(d,l,p){if(Mt(d)){var m;try{m=Pp(new la(d))}catch{m=Nt.parse(d)}if(!Mt(m.protocol))throw new DE({input:d});d=m}else la&&d instanceof la?d=Pp(d):(p=l,l=d,d={protocol:i});return jr(l)&&(p=l,l=null),l=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},d,l),l.nativeProtocols=r,!Mt(l.host)&&!Mt(l.hostname)&&(l.hostname="::1"),Ap.equal(l.protocol,i,"protocol mismatch"),Fp("options",l),new Ue(l,p)}function c(d,l,p){var m=a.request(d,l,p);return m.end(),m}Object.defineProperties(a,{request:{value:s,configurable:!0,enumerable:!0,writable:!0},get:{value:c,configurable:!0,enumerable:!0,writable:!0}})}),t}function OE(){}function Pp(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 fa(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 $r(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 kp(e){for(var t of da)e.removeListener(t,pa[t]);e.on("error",OE),e.abort()}function IE(e,t){Ap(Mt(e)&&Mt(t));var r=e.length-t.length-1;return r>0&&e[r]==="."&&e.endsWith(t)}function Mt(e){return typeof e=="string"||e instanceof String}function jr(e){return typeof e=="function"}function PE(e){return typeof e=="object"&&"length"in e}ha.exports=Lp({http:SE,https:wE});ha.exports.wrap=Lp});var ya=v((oD,TE)=>{TE.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 Gp=v((aD,$p)=>{"use strict";var Gr=Te(),Np=ra(),AE=na(),FE=ti(),LE=require("http"),kE=require("https"),NE=ma().http,ME=ma().https,Mp=require("url"),qE=require("zlib"),jE=ya(),fi=ii(),ga=ni(),qp=/https:?/;function jp(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,jp(o,t,o.href)}}$p.exports=function(t){return new Promise(function(n,i){var o=function(R){n(R)},a=function(R){i(R)},s=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/"+jE.version,s&&!Gr.isStream(s)){if(!Buffer.isBuffer(s))if(Gr.isArrayBuffer(s))s=Buffer.from(new Uint8Array(s));else if(Gr.isString(s))s=Buffer.from(s,"utf-8");else return a(fi("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",t));c["Content-Length"]=s.length}var d=void 0;if(t.auth){var l=t.auth.username||"",p=t.auth.password||"";d=l+":"+p}var m=AE(t.baseURL,t.url),h=Mp.parse(m),_=h.protocol||"http:";if(!d&&h.auth){var b=h.auth.split(":"),w=b[0]||"",I=b[1]||"";d=w+":"+I}d&&delete c.Authorization;var F=qp.test(_),P=F?t.httpsAgent:t.httpAgent,L={path:FE(h.path,t.params,t.paramsSerializer).replace(/^\?/,""),method:t.method.toUpperCase(),headers:c,agent:P,agents:{http:t.httpAgent,https:t.httpsAgent},auth:d};t.socketPath?L.socketPath=t.socketPath:(L.hostname=h.hostname,L.port=h.port);var K=t.proxy;if(!K&&K!==!1){var se=_.slice(0,-1)+"_proxy",$e=process.env[se]||process.env[se.toUpperCase()];if($e){var ce=Mp.parse($e),x=process.env.no_proxy||process.env.NO_PROXY,q=!0;if(x){var M=x.split(",").map(function(R){return R.trim()});q=!M.some(function(R){return R?R==="*"||R[0]==="."&&h.hostname.substr(h.hostname.length-R.length)===R?!0:h.hostname===R:!1})}if(q&&(K={host:ce.hostname,port:ce.port,protocol:ce.protocol},ce.auth)){var Q=ce.auth.split(":");K.auth={username:Q[0],password:Q[1]}}}}K&&(L.headers.host=h.hostname+(h.port?":"+h.port:""),jp(L,K,_+"//"+h.hostname+(h.port?":"+h.port:"")+L.path));var U,W=F&&(K?qp.test(K.protocol):!0);t.transport?U=t.transport:t.maxRedirects===0?U=W?kE:LE:(t.maxRedirects&&(L.maxRedirects=t.maxRedirects),U=W?ME:NE),t.maxBodyLength>-1&&(L.maxBodyLength=t.maxBodyLength);var S=U.request(L,function(R){if(!S.aborted){var j=R,he=R.req||S;if(R.statusCode!==204&&he.method!=="HEAD"&&t.decompress!==!1)switch(R.headers["content-encoding"]){case"gzip":case"compress":case"deflate":j=j.pipe(qE.createUnzip()),delete R.headers["content-encoding"];break}var it={status:R.statusCode,statusText:R.statusMessage,headers:R.headers,config:t,request:he};if(t.responseType==="stream")it.data=j,Np(o,a,it);else{var Xe=[],ct=0;j.on("data",function(Ee){Xe.push(Ee),ct+=Ee.length,t.maxContentLength>-1&&ct>t.maxContentLength&&(j.destroy(),a(fi("maxContentLength size of "+t.maxContentLength+" exceeded",t,null,he)))}),j.on("error",function(Ee){S.aborted||a(ga(Ee,t,null,he))}),j.on("end",function(){var Ee=Buffer.concat(Xe);t.responseType!=="arraybuffer"&&(Ee=Ee.toString(t.responseEncoding),(!t.responseEncoding||t.responseEncoding==="utf8")&&(Ee=Gr.stripBOM(Ee))),it.data=Ee,Np(o,a,it)})}}});if(S.on("error",function(R){S.aborted&&R.code!=="ERR_FR_TOO_MANY_REDIRECTS"||a(ga(R,t,null,S))}),t.timeout){var H=parseInt(t.timeout,10);if(isNaN(H)){a(fi("error trying to parse `config.timeout` to int",t,"ERR_PARSE_TIMEOUT",S));return}S.setTimeout(H,function(){S.abort(),a(fi("timeout of "+H+"ms exceeded",t,t.transitional&&t.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",S))})}t.cancelToken&&t.cancelToken.promise.then(function(R){S.aborted||(S.abort(),a(R))}),Gr.isStream(s)?s.on("error",function(R){a(ga(R,t,null,S))}).pipe(S):S.end(s)})}});var pi=v((sD,Xp)=>{"use strict";var ve=Te(),Bp=Kd(),$E=ni(),GE={"Content-Type":"application/x-www-form-urlencoded"};function Up(e,t){!ve.isUndefined(e)&&ve.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function BE(){var e;return typeof XMLHttpRequest<"u"?e=hp():typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]"&&(e=Gp()),e}function UE(e,t,r){if(ve.isString(e))try{return(t||JSON.parse)(e),ve.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}var di={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:BE(),transformRequest:[function(t,r){return Bp(r,"Accept"),Bp(r,"Content-Type"),ve.isFormData(t)||ve.isArrayBuffer(t)||ve.isBuffer(t)||ve.isStream(t)||ve.isFile(t)||ve.isBlob(t)?t:ve.isArrayBufferView(t)?t.buffer:ve.isURLSearchParams(t)?(Up(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):ve.isObject(t)||r&&r["Content-Type"]==="application/json"?(Up(r,"application/json"),UE(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&&ve.isString(t)&&t.length)try{return JSON.parse(t)}catch(a){if(o)throw a.name==="SyntaxError"?$E(a,this,"E_JSON_PARSE"):a}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};di.headers={common:{Accept:"application/json, text/plain, */*"}};ve.forEach(["delete","get","head"],function(t){di.headers[t]={}});ve.forEach(["post","put","patch"],function(t){di.headers[t]=ve.merge(GE)});Xp.exports=di});var Wp=v((uD,Hp)=>{"use strict";var XE=Te(),HE=pi();Hp.exports=function(t,r,n){var i=this||HE;return XE.forEach(n,function(a){t=a.call(i,t,r)}),t}});var va=v((cD,Yp)=>{"use strict";Yp.exports=function(t){return!!(t&&t.__CANCEL__)}});var Jp=v((lD,zp)=>{"use strict";var Vp=Te(),_a=Wp(),WE=va(),YE=pi();function Ea(e){e.cancelToken&&e.cancelToken.throwIfRequested()}zp.exports=function(t){Ea(t),t.headers=t.headers||{},t.data=_a.call(t,t.data,t.headers,t.transformRequest),t.headers=Vp.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Vp.forEach(["delete","get","head","post","put","patch","common"],function(i){delete t.headers[i]});var r=t.adapter||YE.adapter;return r(t).then(function(i){return Ea(t),i.data=_a.call(t,i.data,i.headers,t.transformResponse),i},function(i){return WE(i)||(Ea(t),i&&i.response&&(i.response.data=_a.call(t,i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})}});var ba=v((fD,Kp)=>{"use strict";var De=Te();Kp.exports=function(t,r){r=r||{};var n={},i=["url","method","data"],o=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function c(m,h){return De.isPlainObject(m)&&De.isPlainObject(h)?De.merge(m,h):De.isPlainObject(h)?De.merge({},h):De.isArray(h)?h.slice():h}function d(m){De.isUndefined(r[m])?De.isUndefined(t[m])||(n[m]=c(void 0,t[m])):n[m]=c(t[m],r[m])}De.forEach(i,function(h){De.isUndefined(r[h])||(n[h]=c(void 0,r[h]))}),De.forEach(o,d),De.forEach(a,function(h){De.isUndefined(r[h])?De.isUndefined(t[h])||(n[h]=c(void 0,t[h])):n[h]=c(void 0,r[h])}),De.forEach(s,function(h){h in r?n[h]=c(t[h],r[h]):h in t&&(n[h]=c(void 0,t[h]))});var l=i.concat(o).concat(a).concat(s),p=Object.keys(t).concat(Object.keys(r)).filter(function(h){return l.indexOf(h)===-1});return De.forEach(p,d),n}});var rh=v((dD,th)=>{"use strict";var Zp=ya(),Sa={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){Sa[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var Qp={},VE=Zp.version.split(".");function eh(e,t){for(var r=t?t.split("."):VE,n=e.split("."),i=0;i<3;i++){if(r[i]>n[i])return!0;if(r[i]<n[i])return!1}return!1}Sa.transitional=function(t,r,n){var i=r&&eh(r);function o(a,s){return"[Axios v"+Zp.version+"] Transitional option '"+a+"'"+s+(n?". "+n:"")}return function(a,s,c){if(t===!1)throw new Error(o(s," has been removed in "+r));return i&&!Qp[s]&&(Qp[s]=!0,console.warn(o(s," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(a,s,c):!0}};function zE(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],a=t[o];if(a){var s=e[o],c=s===void 0||a(s,o,e);if(c!==!0)throw new TypeError("option "+o+" must be "+c);continue}if(r!==!0)throw Error("Unknown option "+o)}}th.exports={isOlderVersion:eh,assertOptions:zE,validators:Sa}});var uh=v((pD,sh)=>{"use strict";var oh=Te(),JE=ti(),nh=zd(),ih=Jp(),hi=ba(),ah=rh(),hr=ah.validators;function Br(e){this.defaults=e,this.interceptors={request:new nh,response:new nh}}Br.prototype.request=function(t){typeof t=="string"?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=hi(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&&ah.assertOptions(r,{silentJSONParsing:hr.transitional(hr.boolean,"1.0.0"),forcedJSONParsing:hr.transitional(hr.boolean,"1.0.0"),clarifyTimeoutError:hr.transitional(hr.boolean,"1.0.0")},!1);var n=[],i=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(t)===!1||(i=i&&m.synchronous,n.unshift(m.fulfilled,m.rejected))});var o=[];this.interceptors.response.forEach(function(m){o.push(m.fulfilled,m.rejected)});var a;if(!i){var s=[ih,void 0];for(Array.prototype.unshift.apply(s,n),s=s.concat(o),a=Promise.resolve(t);s.length;)a=a.then(s.shift(),s.shift());return a}for(var c=t;n.length;){var d=n.shift(),l=n.shift();try{c=d(c)}catch(p){l(p);break}}try{a=ih(c)}catch(p){return Promise.reject(p)}for(;o.length;)a=a.then(o.shift(),o.shift());return a};Br.prototype.getUri=function(t){return t=hi(this.defaults,t),JE(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};oh.forEach(["delete","get","head","options"],function(t){Br.prototype[t]=function(r,n){return this.request(hi(n||{},{method:t,url:r,data:(n||{}).data}))}});oh.forEach(["post","put","patch"],function(t){Br.prototype[t]=function(r,n,i){return this.request(hi(i||{},{method:t,url:r,data:n}))}});sh.exports=Br});var Da=v((hD,ch)=>{"use strict";function wa(e){this.message=e}wa.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};wa.prototype.__CANCEL__=!0;ch.exports=wa});var fh=v((mD,lh)=>{"use strict";var KE=Da();function mi(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 KE(i),t(r.reason))})}mi.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};mi.source=function(){var t,r=new mi(function(i){t=i});return{token:r,cancel:t}};lh.exports=mi});var ph=v((yD,dh)=>{"use strict";dh.exports=function(t){return function(n){return t.apply(null,n)}}});var mh=v((gD,hh)=>{"use strict";hh.exports=function(t){return typeof t=="object"&&t.isAxiosError===!0}});var vh=v((vD,Ca)=>{"use strict";var yh=Te(),QE=Ko(),yi=uh(),ZE=ba(),eb=pi();function gh(e){var t=new yi(e),r=QE(yi.prototype.request,t);return yh.extend(r,yi.prototype,t),yh.extend(r,t),r}var rt=gh(eb);rt.Axios=yi;rt.create=function(t){return gh(ZE(rt.defaults,t))};rt.Cancel=Da();rt.CancelToken=fh();rt.isCancel=va();rt.all=function(t){return Promise.all(t)};rt.spread=ph();rt.isAxiosError=mh();Ca.exports=rt;Ca.exports.default=rt});var xa=v((_D,_h)=>{_h.exports=vh()});var ue=v(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.isUndefined=qe.fixName=qe.validateName=qe.validateSingleChar=qe.fixChar=qe.validateChar=void 0;function lb(e){for(var t=0;t<e.length;t++){var r=e.charCodeAt(t);if(!(r===9||r===10||r===13||r>=32&&r<=55295||r>=57344&&r<=65533)){if(t+1===e.length)return!1;var n=e.charCodeAt(t+1);if(r>=55296&&r<=56319&&n>=56320&&n<=57343){t++;continue}return!1}}return!0}qe.validateChar=lb;function fb(e){for(var t="",r=0;r<e.length;r++){var n=e.charCodeAt(r);if(n===9||n===10||n===13||n>=32&&n<=55295||n>=57344&&n<=65533){t+=e[r];continue}if(r+1===e.length)return t+="\uFFFD",t;var i=e.charCodeAt(r+1);if(n>=55296&&n<=56319&&i>=56320&&i<=57343){t+=e[r]+e[r+1],r++;continue}t+="\uFFFD"}return t}qe.fixChar=fb;function db(e){if(e.length===0)return!1;var t=e.charCodeAt(0);if(e.length===1)return t===9||t===10||t===13||t>=32&&t<=55295||t>=57344&&t<=65533;if(e.length!==2)return!1;var r=e.charCodeAt(1);return t>=55296&&t<=56319&&r>=56320&&r<=57343}qe.validateSingleChar=db;function pb(e){if(e.length===0)return!1;var t=e.charCodeAt(0),r=t===58||t===95||t>=65&&t<=90||t>=97&&t<=122||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=767||t>=880&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533;if(e.length===1)return r;var n=e.charCodeAt(1),i=t>=55296&&t<=56191&&n>=56320&&n<=57343;if(!r&&!i)return!1;for(var o=i?2:1,a=o;a<e.length;a++){var s=e.charCodeAt(a);if(!(s===58||s===95||s===45||s===46||s===183||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||s>=192&&s<=214||s>=216&&s<=246||s>=248&&s<=767||s>=768&&s<=879||s>=880&&s<=893||s>=895&&s<=8191||s>=8204&&s<=8205||s>=8255&&s<=8256||s>=8304&&s<=8591||s>=11264&&s<=12271||s>=12289&&s<=55295||s>=63744&&s<=64975||s>=65008&&s<=65533)){if(a+1===e.length)return!1;var c=e.charCodeAt(a+1);if(s>=55296&&s<=56191&&c>=56320&&c<=57343){a++;continue}return!1}}return!0}qe.validateName=pb;function hb(e){var t="";if(e.length===0)return t;var r=e.charCodeAt(0),n=r===58||r===95||r>=65&&r<=90||r>=97&&r<=122||r>=192&&r<=214||r>=216&&r<=246||r>=248&&r<=767||r>=880&&r<=893||r>=895&&r<=8191||r>=8204&&r<=8205||r>=8304&&r<=8591||r>=11264&&r<=12271||r>=12289&&r<=55295||r>=63744&&r<=64975||r>=65008&&r<=65533;if(e.length===1)return n?t=e[0]:t="\uFFFD",t;var i=e.charCodeAt(1),o=r>=55296&&r<=56191&&i>=56320&&i<=57343;o?t=e[0]+e[1]:n?t=e[0]:t="\uFFFD";for(var a=o?2:1,s=a;s<e.length;s++){var c=e.charCodeAt(s);if(c===58||c===95||c===45||c===46||c===183||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||c>=192&&c<=214||c>=216&&c<=246||c>=248&&c<=767||c>=768&&c<=879||c>=880&&c<=893||c>=895&&c<=8191||c>=8204&&c<=8205||c>=8255&&c<=8256||c>=8304&&c<=8591||c>=11264&&c<=12271||c>=12289&&c<=55295||c>=63744&&c<=64975||c>=65008&&c<=65533){t+=e[s];continue}if(s+1===e.length)return t+="\uFFFD",t;var d=e.charCodeAt(s+1);if(c>=55296&&c<=56191&&d>=56320&&d<=57343){t+=e[s]+e[s+1],s++;continue}t+="\uFFFD"}return t}qe.fixName=hb;function mb(e){return Object.prototype.toString.call(e)==="[object Undefined]"}qe.isUndefined=mb});var yr=v(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.StringOptions=void 0;var bi=ue(),yb=function(){function e(t){this.doubleQuotes=!1,this.indent=" ",this.newline=`
37
- `,this.pretty=!0,(0,bi.isUndefined)(t.doubleQuotes)||(this.doubleQuotes=t.doubleQuotes),(0,bi.isUndefined)(t.indent)||(this.indent=t.indent),(0,bi.isUndefined)(t.newline)||(this.newline=t.newline),(0,bi.isUndefined)(t.pretty)||(this.pretty=t.pretty)}return e}();Si.StringOptions=yb});var wi=v(Ve=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});Ve.escapeDoubleQuotes=Ve.escapeSingleQuotes=Ve.escapeRightAngleBracketsInCdataTerminator=Ve.escapeLeftAngleBrackets=Ve.escapeAmpersands=void 0;function gb(e){return e.replace(/&/g,"&amp;")}Ve.escapeAmpersands=gb;function vb(e){return e.replace(/</g,"&lt;")}Ve.escapeLeftAngleBrackets=vb;function _b(e){return e.replace(/]]>/g,"]]&gt;")}Ve.escapeRightAngleBracketsInCdataTerminator=_b;function Eb(e){return e.replace(/'/g,"&apos;")}Ve.escapeSingleQuotes=Eb;function bb(e){return e.replace(/"/g,"&quot;")}Ve.escapeDoubleQuotes=bb});var ja=v(qa=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});var Sb=_e(),zh=wi(),Ma=ue(),wb=function(){function e(t,r,n){this._validation=r,(0,Ma.isUndefined)(n.replaceInvalidCharsInCharData)?this._replaceInvalidCharsInCharData=!1:this._replaceInvalidCharsInCharData=n.replaceInvalidCharsInCharData,this._parent=t,this.charData=n.charData}return Object.defineProperty(e.prototype,"charData",{get:function(){return this._charData},set:function(t){if(this._replaceInvalidCharsInCharData)t=(0,Ma.fixChar)(t);else if(this._validation&&!(0,Ma.validateChar)(t))throw new Error((0,Sb.getContext)(this.up())+": attribute text"+(' "'+t+'" should not contain characters not')+" allowed in XML");this._charData=t},enumerable:!1,configurable:!0}),e.prototype.toString=function(){var t=this._charData;return t=(0,zh.escapeAmpersands)(t),t=(0,zh.escapeLeftAngleBrackets)(t),t},e.prototype.up=function(){return this._parent},e}();qa.default=wb});var Di=v($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});var Jh=_e(),Kh=ue(),Db=function(){function e(t,r,n){this._hex=!1,this._validation=r,this._parent=t,this.char=n.char,(0,Kh.isUndefined)(n.hex)||(this.hex=n.hex)}return Object.defineProperty(e.prototype,"char",{get:function(){return this._char},set:function(t){if(this._validation&&!(0,Kh.validateSingleChar)(t))throw new Error((0,Jh.getContext)(this.up())+": character reference"+(' "'+t+'" should reference a single character,')+" and this character should be allowed in XML");this._char=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hex",{get:function(){return this._hex},set:function(t){this._hex=t},enumerable:!1,configurable:!0}),e.prototype.toString=function(){var t;if(this._char.length===1)t=this._char.charCodeAt(0);else{var r=this._char.charCodeAt(0);if(r>=55296&&r<=56319&&this._char.length>1){var n=this._char.charCodeAt(1);if(n>=56320&&n<=57343)t=(r-55296)*1024+n-56320+65536;else throw new Error((0,Jh.getContext)(this.up())+": character"+(' reference "'+this.char+'" should')+" reference a valid Unicode character")}else t=r}return this._hex?"&#x"+t.toString(16)+";":"&#"+t+";"},e.prototype.up=function(){return this._parent},e}();$a.default=Db});var Ci=v(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});var Cb=_e(),xb=ue(),Rb=function(){function e(t,r,n){this._validation=r,this._parent=t,this.name=n.name}return Object.defineProperty(e.prototype,"name",{get:function(){return this._name},set:function(t){if(this._validation&&!(0,xb.validateName)(t))throw new Error((0,Cb.getContext)(this.up())+": entity reference name"+(' "'+t+'" should not contain characters not')+" allowed in XML names");this._name=t},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"&"+this._name+";"},e.prototype.up=function(){return this._parent},e}();Ga.default=Rb});var xi=v(Ur=>{"use strict";var Xa=Ur&&Ur.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ur,"__esModule",{value:!0});var Ba=_e(),Qh=wi(),Ob=yr(),Ua=ue(),Ib=Xa(ja()),Pb=Xa(Di()),Tb=Xa(Ci()),Ab=function(){function e(t,r,n){this._validation=r,(0,Ua.isUndefined)(n.replaceInvalidCharsInName)?this._replaceInvalidCharsInName=!1:this._replaceInvalidCharsInName=n.replaceInvalidCharsInName,this._children=[],this._parent=t,this.name=n.name}return Object.defineProperty(e.prototype,"name",{get:function(){return this._name},set:function(t){if(this._replaceInvalidCharsInName){if(t=(0,Ua.fixName)(t),t.length===0)throw new Error((0,Ba.getContext)(this.up())+": attribute name should not be empty")}else if(this._validation&&!(0,Ua.validateName)(t))throw t.length===0?new Error((0,Ba.getContext)(this.up())+": attribute name should not be empty"):new Error((0,Ba.getContext)(this.up())+": attribute name"+(' "'+t+'" should not contain characters not')+" allowed in XML names");this._name=t},enumerable:!1,configurable:!0}),e.prototype.charRef=function(t){var r=new Pb.default(this,this._validation,t);return this._children.push(r),r},e.prototype.entityRef=function(t){var r=new Tb.default(this,this._validation,t);return this._children.push(r),r},e.prototype.text=function(t){var r=new Ib.default(this,this._validation,t);return this._children.push(r),r},e.prototype.toString=function(t){t===void 0&&(t={});for(var r=new Ob.StringOptions(t),n=r.doubleQuotes?'"':"'",i=this._name+"="+n,o=0,a=this._children;o<a.length;o++){var s=a[o];r.doubleQuotes?i+=(0,Qh.escapeDoubleQuotes)(s.toString()):i+=(0,Qh.escapeSingleQuotes)(s.toString())}return i+=n,i},e.prototype.up=function(){return this._parent},e}();Ur.default=Ab});var Wa=v(Ha=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});var Fb=_e(),Lb=ue(),kb=function(){function e(t,r,n){this._validation=r,this._parent=t,this.charData=n.charData}return Object.defineProperty(e.prototype,"charData",{get:function(){return this._charData},set:function(t){if(this._validation&&!(0,Lb.validateChar)(t))throw new Error((0,Fb.getContext)(this.up())+": attribute-list"+(' declaration "'+t+'" should not contain')+" characters not allowed in XML");this._charData=t},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"<!ATTLIST "+this._charData+">"},e.prototype.up=function(){return this._parent},e}();Ha.default=kb});var Va=v(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});var Nb=_e(),Mb=ue(),qb=function(){function e(t,r,n){this._validation=r,this._parent=t,this.charData=n.charData}return Object.defineProperty(e.prototype,"charData",{get:function(){return this._charData},set:function(t){if(this._validation&&!(0,Mb.validateChar)(t))throw new Error((0,Nb.getContext)(this.up())+": element declaration"+(' "'+t+'" should not contain characters')+" not allowed in XML");this._charData=t},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"<!ELEMENT "+this._charData+">"},e.prototype.up=function(){return this._parent},e}();Ya.default=qb});var Ja=v(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});var jb=_e(),$b=ue(),Gb=function(){function e(t,r,n){this._validation=r,this._parent=t,this.charData=n.charData}return Object.defineProperty(e.prototype,"charData",{get:function(){return this._charData},set:function(t){if(this._validation&&!(0,$b.validateChar)(t))throw new Error((0,jb.getContext)(this.up())+": entity declaration"+(' "'+t+'" should not contain characters')+" not allowed in XML");this._charData=t},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"<!ENTITY "+this._charData+">"},e.prototype.up=function(){return this._parent},e}();za.default=Gb});var Qa=v(Ka=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});var Bb=_e(),Ub=ue(),Xb=function(){function e(t,r,n){this._validation=r,this._parent=t,this.charData=n.charData}return Object.defineProperty(e.prototype,"charData",{get:function(){return this._charData},set:function(t){if(this._validation&&!(0,Ub.validateChar)(t))throw new Error((0,Bb.getContext)(this.up())+": notation declaration"+(' "'+t+'" should not contain characters')+" not allowed in XML");this._charData=t},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"<!NOTATION "+this._charData+">"},e.prototype.up=function(){return this._parent},e}();Ka.default=Xb});var es=v(Za=>{"use strict";Object.defineProperty(Za,"__esModule",{value:!0});var Hb=_e(),Wb=ue(),Yb=function(){function e(t,r,n){this._validation=r,this._parent=t,this.name=n.name}return Object.defineProperty(e.prototype,"name",{get:function(){return this._name},set:function(t){if(this._validation&&!(0,Wb.validateName)(t))throw new Error((0,Hb.getContext)(this.up())+": parameter entity"+(' reference name "'+t+'" should not contain')+" characters not allowed in XML names");this._name=t},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"%"+this._name+";"},e.prototype.up=function(){return this._parent},e}();Za.default=Yb});var Xr=v(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});var Ri=_e(),Oi=ue(),Vb=function(){function e(t,r,n){this._validation=r,this._parent=t,this.content=n.content,this.target=n.target}return Object.defineProperty(e.prototype,"content",{get:function(){return this._content},set:function(t){if(!(0,Oi.isUndefined)(t)){if(this._validation&&!(0,Oi.validateChar)(t))throw new Error((0,Ri.getContext)(this.up())+": processing"+(' instruction content "'+t+'" should')+" not contain characters not allowed in XML");if(this._validation&&t.indexOf("?>")!==-1)throw new Error((0,Ri.getContext)(this.up())+": processing"+(' instruction content "'+t+'" should')+" not contain the string '?>'")}this._content=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"target",{get:function(){return this._target},set:function(t){if(this._validation&&!(0,Oi.validateName)(t))throw new Error((0,Ri.getContext)(this.up())+": processing"+(' instruction target "'+t+'" should')+" not contain characters not allowed in XML names");if(this._validation&&t==="xml")throw new Error((0,Ri.getContext)(this.up())+": processing"+(' instruction target "'+t+'" should')+" not be the string 'xml'");this._target=t},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return(0,Oi.isUndefined)(this._content)?"<?"+this._target+"?>":"<?"+this._target+" "+this._content+"?>"},e.prototype.up=function(){return this._parent},e}();ts.default=Vb});var Ii=v(jt=>{"use strict";var $t=jt&&jt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(jt,"__esModule",{value:!0});jt.validatePubId=void 0;var Ct=_e(),zb=yr(),ut=ue(),Jb=$t(Hr()),Kb=$t(Wa()),Qb=$t(Va()),Zb=$t(Ja()),eS=$t(Qa()),tS=$t(es()),rS=$t(Xr()),nS=function(){function e(t,r,n){this._pubId=void 0,this._sysId=void 0,this._validation=r,this._children=[],this._parent=t,this.name=n.name,(0,ut.isUndefined)(n.sysId)||(this.sysId=n.sysId),(0,ut.isUndefined)(n.pubId)||(this.pubId=n.pubId)}return Object.defineProperty(e.prototype,"name",{get:function(){return this._name},set:function(t){if(this._validation&&!(0,ut.validateName)(t))throw new Error((0,Ct.getContext)(this.up())+': DTD name "'+t+'" should not contain characters not allowed in XML names');this._name=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pubId",{get:function(){return this._pubId},set:function(t){if(!(0,ut.isUndefined)(t)){if(this._validation&&!Zh(t))throw new Error((0,Ct.getContext)(this.up())+": DTD public"+(' identifier "'+t+'" should not contain')+" characters not allowed in public identifiers");if(this._validation&&(0,ut.isUndefined)(this._sysId))throw new Error((0,Ct.getContext)(this.up())+": DTD public"+(' identifier "'+t+'" should not be defined')+" if system identifier is undefined")}this._pubId=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sysId",{get:function(){return this._sysId},set:function(t){if(!(0,ut.isUndefined)(t)){if(this._validation&&!(0,ut.validateChar)(t))throw new Error((0,Ct.getContext)(this.up())+": DTD system"+(' identifier "'+t+'" should not contain')+" characters not allowed in XML");if(this._validation&&t.indexOf("'")!==-1&&t.indexOf('"')!==-1)throw new Error((0,Ct.getContext)(this.up())+": DTD system"+(' identifier "'+t+'" should not contain')+" both single quotes and double quotes")}this._sysId=t},enumerable:!1,configurable:!0}),e.prototype.attlist=function(t){var r=new Kb.default(this,this._validation,t);return this._children.push(r),r},e.prototype.comment=function(t){var r=new Jb.default(this,this._validation,t);return this._children.push(r),r},e.prototype.element=function(t){var r=new Qb.default(this,this._validation,t);return this._children.push(r),r},e.prototype.entity=function(t){var r=new Zb.default(this,this._validation,t);return this._children.push(r),r},e.prototype.notation=function(t){var r=new eS.default(this,this._validation,t);return this._children.push(r),r},e.prototype.paramEntityRef=function(t){var r=new tS.default(this,this._validation,t);return this._children.push(r),r},e.prototype.procInst=function(t){var r=new rS.default(this,this._validation,t);return this._children.push(r),r},e.prototype.toString=function(t){t===void 0&&(t={});var r=new zb.StringOptions(t),n="<!DOCTYPE "+this._name;if((0,ut.isUndefined)(this._pubId))(0,ut.isUndefined)(this._sysId)||(n+=" ",n=this.appendId("SYSTEM",this._sysId,n,r));else{if((0,ut.isUndefined)(this._sysId))throw new Error((0,Ct.getContext)(this.up())+": DTD system identifier is not undefined");n+=" ",n=this.appendId("PUBLIC",this._pubId,n,r),n=this.appendId("",this._sysId,n,r)}if(this._children.length!==0){n+=" [";for(var i=0,o=this._children;i<o.length;i++){var a=o[i];r.pretty&&(n+=r.newline+r.indent),n+=a.toString()}r.pretty&&(n+=r.newline),n+="]>"}else n+=">";return n},e.prototype.up=function(){return this._parent},e.prototype.appendId=function(t,r,n,i){if(n+=t+" ",i.doubleQuotes){if(this._validation&&r.indexOf('"')!==-1)throw new Error((0,Ct.getContext)(this.up())+": doubleQuotes option inconsistent with DTD system identifier or public identifier");n+='"'+r+'"'}else{if(this._validation&&r.indexOf("'")!==-1)throw new Error((0,Ct.getContext)(this)+": doubleQuotes option inconsistent with DTD system identifier or public identifier");n+="'"+r+"'"}return n},e}();jt.default=nS;function Zh(e){for(var t=0;t<e.length;t++){var r=e.charCodeAt(t);if(!(r===10||r===13||r===32||r===33||r>=35&&r<=37||r>=39&&r<=47||r>=48&&r<=57||r===58||r===59||r===61||r===63||r>=64&&r<=90||r===95||r>=97&&r<=122))return t+1===e.length,!1}return!0}jt.validatePubId=Zh});var is=v(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});var em=_e(),rs=ue(),iS=function(){function e(t,r,n){this._validation=r,(0,rs.isUndefined)(n.replaceInvalidCharsInCharData)?this._replaceInvalidCharsInCharData=!1:this._replaceInvalidCharsInCharData=n.replaceInvalidCharsInCharData,this._parent=t,this.charData=n.charData}return Object.defineProperty(e.prototype,"charData",{get:function(){return this._charData},set:function(t){if(this._replaceInvalidCharsInCharData)t=(0,rs.fixChar)(t);else if(this._validation&&!(0,rs.validateChar)(t))throw new Error((0,em.getContext)(this.up())+": CDATA section"+(' "'+t+'" should not contain characters')+" not allowed in XML");if(this._replaceInvalidCharsInCharData)t=t.replace("]]>","\uFFFD\uFFFD\uFFFD");else if(this._validation&&t.indexOf("]]>")!==-1)throw new Error((0,em.getContext)(this.up())+": CDATA section"+(' "'+t+'" should not contain the string')+" ']]>'");this._charData=t},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"<![CDATA["+this._charData+"]]>"},e.prototype.up=function(){return this._parent},e}();ns.default=iS});var us=v(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});var oS=_e(),os=wi(),as=ue(),aS=function(){function e(t,r,n){this._validation=r,(0,as.isUndefined)(n.replaceInvalidCharsInCharData)?this._replaceInvalidCharsInCharData=!1:this._replaceInvalidCharsInCharData=n.replaceInvalidCharsInCharData,this._parent=t,this.charData=n.charData}return Object.defineProperty(e.prototype,"charData",{get:function(){return this._charData},set:function(t){if(this._replaceInvalidCharsInCharData)t=(0,as.fixChar)(t);else if(this._validation&&!(0,as.validateChar)(t))throw new Error((0,oS.getContext)(this.up())+": character data"+('"'+t+'" should not contain characters not')+" allowed in XML");this._charData=t},enumerable:!1,configurable:!0}),e.prototype.toString=function(){var t=this._charData;return t=(0,os.escapeAmpersands)(t),t=(0,os.escapeLeftAngleBrackets)(t),t=(0,os.escapeRightAngleBracketsInCdataTerminator)(t),t},e.prototype.up=function(){return this._parent},e}();ss.default=aS});var Fi=v(Vr=>{"use strict";var Gt=Vr&&Vr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Vr,"__esModule",{value:!0});var Pi=_e(),sS=yr(),Wr=ue(),tm=Gt(xi()),uS=Gt(is()),Yr=Gt(us()),Ti=Gt(Di()),cS=Gt(Hr()),Ai=Gt(Ci()),lS=Gt(Xr()),fS=function(){function e(t,r,n){this._validation=r,(0,Wr.isUndefined)(n.replaceInvalidCharsInName)?this._replaceInvalidCharsInName=!1:this._replaceInvalidCharsInName=n.replaceInvalidCharsInName,(0,Wr.isUndefined)(n.useSelfClosingTagIfEmpty)?this._useSelfClosingTagIfEmpty=!0:this._useSelfClosingTagIfEmpty=n.useSelfClosingTagIfEmpty,this._children=[],this._attributeNames=[],this._parent=t,this.name=n.name}return Object.defineProperty(e.prototype,"name",{get:function(){return this._name},set:function(t){if(this._replaceInvalidCharsInName){if(t=(0,Wr.fixName)(t),t.length===0)throw new Error((0,Pi.getContext)(this.up())+": element name should not be empty")}else if(this._validation&&!(0,Wr.validateName)(t))throw t.length===0?new Error((0,Pi.getContext)(this.up())+": element name should not be empty"):new Error((0,Pi.getContext)(this.up())+": element name"+(' "'+t+'" should not contain characters not')+" allowed in XML names");this._name=t},enumerable:!1,configurable:!0}),e.prototype.attribute=function(t){if(this._validation&&this._attributeNames.indexOf(t.name)!==-1)throw new Error((0,Pi.getContext)(this.up())+': element "'+this.name+'" already contains an attribute with the'+(' name "'+t.name+'"'));var r=new tm.default(this,this._validation,t);return this._children.push(r),this._attributeNames.push(t.name),r},e.prototype.cdata=function(t){var r=new uS.default(this,this._validation,t);return this._children.push(r),r},e.prototype.charData=function(t){var r=new Yr.default(this,this._validation,t);return this._children.push(r),r},e.prototype.charRef=function(t){var r=new Ti.default(this,this._validation,t);return this._children.push(r),r},e.prototype.comment=function(t){var r=new cS.default(this,this._validation,t);return this._children.push(r),r},e.prototype.element=function(t){var r=new e(this,this._validation,t);return this._children.push(r),r},e.prototype.entityRef=function(t){var r=new Ai.default(this,this._validation,t);return this._children.push(r),r},e.prototype.procInst=function(t){var r=new lS.default(this,this._validation,t);return this._children.push(r),r},e.prototype.toString=function(t){return t===void 0&&(t={}),this.toStringWithIndent(t,"")},e.prototype.up=function(){return this._parent},e.prototype.toStringWithIndent=function(t,r){for(var n=new sS.StringOptions(t),i=r+n.indent,o="<"+this._name,a=[],s=0,c=this._children;s<c.length;s++){var d=c[s];d instanceof tm.default?o+=" "+d.toString(t):a.push(d)}if(a.length>0){for(var l="",p=0;p<a.length;p++){var m=a[p],h="";m instanceof e?h+=m.toStringWithIndent(n,i):h+=m.toString();var _=p>0?a[p-1]:void 0;m instanceof Yr.default&&m.toString()===""||(n.pretty&&(this.allSameLineNodes(a)||p>0&&this.onSameLine(m,_)||(h=n.newline+i+h)),l+=h)}n.pretty&&(this.allSameLineNodes(a)||(l+=n.newline+r)),l.length===0&&this._useSelfClosingTagIfEmpty?o+="/>":o+=">"+l+"</"+this._name+">"}else this._useSelfClosingTagIfEmpty?o+="/>":o+="></"+this._name+">";return o},e.prototype.allSameLineNodes=function(t){for(var r=0,n=t;r<n.length;r++){var i=n[r];if(!(i instanceof Ti.default||i instanceof Ai.default||i instanceof Yr.default))return!1}return!0},e.prototype.onSameLine=function(t,r){return(t instanceof Ti.default||t instanceof Ai.default||t instanceof Yr.default)&&!(0,Wr.isUndefined)(r)&&(r instanceof Ti.default||r instanceof Ai.default||r instanceof Yr.default)},e}();Vr.default=fS});var _e=v(gr=>{"use strict";var ki=gr&&gr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(gr,"__esModule",{value:!0});gr.getContext=void 0;var dS=ki(xi()),pS=ki(Ni()),hS=ki(Ii()),mS=ki(Fi());function Li(e){if(e instanceof dS.default)return Li(e.up())+(' > attribute "'+e.name+'"');if(e instanceof pS.default)return"in XML document";if(e instanceof hS.default)return Li(e.up())+" > DTD";if(e instanceof mS.default)return Li(e.up())+(' > element "'+e.name+'"');throw new Error("Unrecognized object of type "+Object.prototype.toString.call(e))}gr.getContext=Li});var Hr=v(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});var cs=_e(),ls=ue(),yS=function(){function e(t,r,n){this._validation=r,(0,ls.isUndefined)(n.replaceInvalidCharsInCharData)?this._replaceInvalidCharsInCharData=!1:this._replaceInvalidCharsInCharData=n.replaceInvalidCharsInCharData,this._parent=t,this.charData=n.charData}return Object.defineProperty(e.prototype,"charData",{get:function(){return this._charData},set:function(t){if(this._replaceInvalidCharsInCharData)t=(0,ls.fixChar)(t);else if(this._validation&&!(0,ls.validateChar)(t))throw new Error((0,cs.getContext)(this.up())+": comment content"+(' "'+t+'" should not contain characters')+" not allowed in XML");if(this._replaceInvalidCharsInCharData)t=t.replace("--","\uFFFD\uFFFD");else if(this._validation&&t.indexOf("--")!==-1)throw new Error((0,cs.getContext)(this.up())+": comment content"+(' "'+t+'" should not contain the string')+" '--'");if(this._replaceInvalidCharsInCharData)t.lastIndexOf("-")===t.length-1&&(t=t.substr(0,t.length-1)+"\uFFFD");else if(this._validation&&t.lastIndexOf("-")===t.length-1)throw new Error((0,cs.getContext)(this.up())+": comment content"+(' "'+t+'" should not end with the string')+" '-'");this._charData=t},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"<!--"+this._charData+"-->"},e.prototype.up=function(){return this._parent},e}();fs.default=yS});var hs=v(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});var ds=_e(),gS=yr(),zr=ue(),vS=function(){function e(t,r,n){this._version="1.0",this._validation=r,this._parent=t,this.encoding=n.encoding,this.standalone=n.standalone,(0,zr.isUndefined)(n.version)||(this.version=n.version)}return Object.defineProperty(e.prototype,"encoding",{get:function(){return this._encoding},set:function(t){if(this._validation&&!(0,zr.isUndefined)(t)&&!_S(t))throw new Error((0,ds.getContext)(this.up())+": declaration"+(" encoding attribute "+t+" should be a")+" valid encoding");this._encoding=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"standalone",{get:function(){return this._standalone},set:function(t){if(this._validation&&!(0,zr.isUndefined)(t)&&t!=="yes"&&t!=="no")throw new Error((0,ds.getContext)(this.up())+": declaration"+(" standalone attribute "+t+" should")+" be the string 'yes' or the string 'no'");this._standalone=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},set:function(t){if(this._validation&&!ES(t))throw new Error((0,ds.getContext)(this.up())+": declaration version"+(" attribute "+t+" should be a valid XML")+" version");this._version=t},enumerable:!1,configurable:!0}),e.prototype.toString=function(t){t===void 0&&(t={});var r=new gS.StringOptions(t),n=r.doubleQuotes?'"':"'",i="<?xml version="+n+this._version+n;return(0,zr.isUndefined)(this._encoding)||(i+=" encoding="+n+this._encoding+n),(0,zr.isUndefined)(this._standalone)||(i+=" standalone="+n+this._standalone+n),i+="?>",i},e.prototype.up=function(){return this._parent},e}();ps.default=vS;function _S(e){if(e.length===0)return!1;var t=e.charCodeAt(0);if(!(t>=65&&t<=90||t>=97&&t<=122))return!1;for(var r=1;r<e.length;r++){var n=e.charCodeAt(r);if(!(n===95||n===45||n===46||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122))return r+1===e.length,!1}return!0}function ES(e){for(var t=0;t<=9;t++)if(e==="1."+t)return!0;return!1}});var Ni=v(Kr=>{"use strict";var Qr=Kr&&Kr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Kr,"__esModule",{value:!0});var bS=yr(),SS=ue(),wS=Qr(Hr()),rm=Qr(hs()),nm=Qr(Ii()),Jr=Qr(Fi()),DS=Qr(Xr()),CS=function(){function e(t){this._children=[],this._validation=(0,SS.isUndefined)(t.validation)?!0:t.validation}return e.prototype.comment=function(t){var r=new wS.default(this,this._validation,t);return this._children.push(r),r},e.prototype.decl=function(t){if(t===void 0&&(t={}),this._validation&&this._children.length!==0)throw new Error("in XML document: declaration must be the first child");var r=new rm.default(this,this._validation,t);return this._children.push(r),r},e.prototype.dtd=function(t){var r=this._children.filter(function(i){return i instanceof Jr.default});if(this._validation&&r.length!==0)throw new Error("in XML document: DTD must precede the root element");var n=new nm.default(this,this._validation,t);return this._children.push(n),n},e.prototype.element=function(t){var r=this._children.filter(function(i){return i instanceof Jr.default});if(this._validation&&r.length!==0)throw new Error("in XML document: only one root element is permitted");var n=new Jr.default(this,this._validation,t);return this._children.push(n),n},e.prototype.procInst=function(t){var r=new DS.default(this,this._validation,t);return this._children.push(r),r},e.prototype.toString=function(t){t===void 0&&(t={});var r=this._children.filter(function(d){return d instanceof Jr.default});if(this._validation&&r.length!==1)throw new Error("in XML document: no more than one root element is permitted");for(var n=new bS.StringOptions(t),i="",o=0,a=this._children;o<a.length;o++){var s=a[o];s instanceof rm.default||s instanceof nm.default||s instanceof Jr.default?i+=s.toString(t):i+=s.toString(),n.pretty&&(i+=n.newline)}var c=i.length-n.newline.length;return i.substr(c)===n.newline&&(i=i.substr(0,c)),i},e}();Kr.default=CS});var im=v(N=>{"use strict";var de=N&&N.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(N,"__esModule",{value:!0});N.document=N.XmlProcInst=N.XmlEntityRef=N.XmlElement=N.XmlDtdParamEntityRef=N.XmlDtdNotation=N.XmlDtdEntity=N.XmlDtdElement=N.XmlDtdAttlist=N.XmlDtd=N.XmlDocument=N.XmlDecl=N.XmlComment=N.XmlCharRef=N.XmlCharData=N.XmlCdata=N.XmlAttributeText=N.XmlAttribute=void 0;var xS=de(Ni()),RS=xi();Object.defineProperty(N,"XmlAttribute",{enumerable:!0,get:function(){return de(RS).default}});var OS=ja();Object.defineProperty(N,"XmlAttributeText",{enumerable:!0,get:function(){return de(OS).default}});var IS=is();Object.defineProperty(N,"XmlCdata",{enumerable:!0,get:function(){return de(IS).default}});var PS=us();Object.defineProperty(N,"XmlCharData",{enumerable:!0,get:function(){return de(PS).default}});var TS=Di();Object.defineProperty(N,"XmlCharRef",{enumerable:!0,get:function(){return de(TS).default}});var AS=Hr();Object.defineProperty(N,"XmlComment",{enumerable:!0,get:function(){return de(AS).default}});var FS=hs();Object.defineProperty(N,"XmlDecl",{enumerable:!0,get:function(){return de(FS).default}});var LS=Ni();Object.defineProperty(N,"XmlDocument",{enumerable:!0,get:function(){return de(LS).default}});var kS=Ii();Object.defineProperty(N,"XmlDtd",{enumerable:!0,get:function(){return de(kS).default}});var NS=Wa();Object.defineProperty(N,"XmlDtdAttlist",{enumerable:!0,get:function(){return de(NS).default}});var MS=Va();Object.defineProperty(N,"XmlDtdElement",{enumerable:!0,get:function(){return de(MS).default}});var qS=Ja();Object.defineProperty(N,"XmlDtdEntity",{enumerable:!0,get:function(){return de(qS).default}});var jS=Qa();Object.defineProperty(N,"XmlDtdNotation",{enumerable:!0,get:function(){return de(jS).default}});var $S=es();Object.defineProperty(N,"XmlDtdParamEntityRef",{enumerable:!0,get:function(){return de($S).default}});var GS=Fi();Object.defineProperty(N,"XmlElement",{enumerable:!0,get:function(){return de(GS).default}});var BS=Ci();Object.defineProperty(N,"XmlEntityRef",{enumerable:!0,get:function(){return de(BS).default}});var US=Xr();Object.defineProperty(N,"XmlProcInst",{enumerable:!0,get:function(){return de(US).default}});function XS(e){return e===void 0&&(e={}),new xS.default(e)}N.document=XS});var ms=v(pe=>{"use strict";Object.defineProperty(pe,"__esModule",{value:!0});pe.stringify=pe.isMap=pe.isSet=pe.isFunction=pe.isArray=pe.isObject=pe.isNull=pe.isUndefined=void 0;function om(e){return Object.prototype.toString.call(e)==="[object Undefined]"}pe.isUndefined=om;function am(e){return Object.prototype.toString.call(e)==="[object Null]"}pe.isNull=am;function HS(e){return Object.prototype.toString.call(e)==="[object Object]"}pe.isObject=HS;function WS(e){return Object.prototype.toString.call(e)==="[object Array]"}pe.isArray=WS;function sm(e){return Object.prototype.toString.call(e)==="[object Function]"}pe.isFunction=sm;function YS(e){return Object.prototype.toString.call(e)==="[object Set]"}pe.isSet=YS;function VS(e){return Object.prototype.toString.call(e)==="[object Map]"}pe.isMap=VS;function zS(e){return!om(e)&&!am(e)&&sm(e?.toString)&&(e=e.toString()),String(e)}pe.stringify=zS});var pm=v(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.WrapHandlers=je.TypeHandlers=je.FormatOptions=je.DtdOptions=je.DeclarationOptions=je.Options=void 0;var nt=ms(),JS=function(){function e(t){t===void 0&&(t={}),this.aliasString="=",this.attributeString="@",this.cdataInvalidChars=!1,this.cdataKeys=[],this.replaceInvalidChars=!1,this.useSelfClosingTagIfEmpty=!0,this.validation=!0,this.valueString="#",(0,nt.isUndefined)(t.validation)||(this.validation=t.validation),(0,nt.isUndefined)(t.aliasString)||(this.aliasString=t.aliasString),(0,nt.isUndefined)(t.attributeString)||(this.attributeString=t.attributeString),(0,nt.isUndefined)(t.cdataInvalidChars)||(this.cdataInvalidChars=t.cdataInvalidChars),(0,nt.isUndefined)(t.cdataKeys)||(this.cdataKeys=t.cdataKeys),this.declaration=new um(t.declaration),this.dtd=new cm(this.validation,t.dtd),this.format=new lm(t.format),(0,nt.isUndefined)(t.replaceInvalidChars)||(this.replaceInvalidChars=t.replaceInvalidChars),this.typeHandlers=new fm(t.typeHandlers),(0,nt.isUndefined)(t.useSelfClosingTagIfEmpty)||(this.useSelfClosingTagIfEmpty=t.useSelfClosingTagIfEmpty),(0,nt.isUndefined)(t.valueString)||(this.valueString=t.valueString),this.wrapHandlers=new dm(t.wrapHandlers)}return e}();je.Options=JS;var um=function(){function e(t){t===void 0&&(t={}),this.include=!0,(0,nt.isUndefined)(t.include)||(this.include=t.include),this.encoding=t.encoding,this.standalone=t.standalone,this.version=t.version}return e}();je.DeclarationOptions=um;var cm=function(){function e(t,r){if(r===void 0&&(r={}),this.include=!1,(0,nt.isUndefined)(r.include)||(this.include=r.include),t&&(0,nt.isUndefined)(r.name)&&this.include)throw new Error("options.dtd.name should be defined if options.dtd.include is true");this.name=r.name,this.sysId=r.sysId,this.pubId=r.pubId}return e}();je.DtdOptions=cm;var lm=function(){function e(t){t===void 0&&(t={}),this.doubleQuotes=t.doubleQuotes,this.indent=t.indent,this.newline=t.newline,this.pretty=t.pretty}return e}();je.FormatOptions=lm;var fm=function(){function e(t){t===void 0&&(t={});for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(this[r]=t[r])}return e}();je.TypeHandlers=fm;var dm=function(){function e(t){t===void 0&&(t={});for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(this[r]=t[r])}return e}();je.WrapHandlers=dm});var _m=v(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.parse=xt.parseToExistingElement=xt.Absent=void 0;var mm=im(),ym=pm(),ie=ms(),ys=function(){function e(){}return Object.defineProperty(e,"instance",{get:function(){return e._instance},enumerable:!1,configurable:!0}),e._instance=new e,e}();xt.Absent=ys;function gs(e,t){var r=Object.prototype.toString.call(e),n;return Object.prototype.hasOwnProperty.call(t.typeHandlers,"*")&&(n=t.typeHandlers["*"]),Object.prototype.hasOwnProperty.call(t.typeHandlers,r)&&(n=t.typeHandlers[r]),n}function gm(e,t,r){var n=function(a){return r.cdataInvalidChars&&(a.indexOf("<")!==-1||a.indexOf("&")!==-1)||r.cdataKeys.indexOf(t.name)!==-1||r.cdataKeys.indexOf("*")!==-1};if(t instanceof mm.XmlElement)if(n(e))for(var i=e.split("]]>"),o=0;o<i.length;o++)n(i[o])?t.cdata({charData:i[o],replaceInvalidCharsInCharData:r.replaceInvalidChars}):t.charData({charData:i[o],replaceInvalidCharsInCharData:r.replaceInvalidChars}),o<i.length-1&&t.charData({charData:"]]>",replaceInvalidCharsInCharData:r.replaceInvalidChars});else t.charData({charData:e,replaceInvalidCharsInCharData:r.replaceInvalidChars});else t.text({charData:e,replaceInvalidCharsInCharData:r.replaceInvalidChars})}function KS(e,t,r,n){var i=r.attribute({name:e,replaceInvalidCharsInName:n.replaceInvalidChars});gm((0,ie.stringify)(t),i,n)}function hm(e,t,r,n){if(e===n.aliasString){r.name=(0,ie.stringify)(t);return}if(e.indexOf(n.attributeString)===0&&(0,ie.isObject)(t)){for(var i=0,o=Object.keys(t);i<o.length;i++){var a=o[i];KS(a,(0,ie.stringify)(t[a]),r,n)}return}if(e.indexOf(n.valueString)===0){Mi(e,(0,ie.stringify)(t),r,n);return}var s=r;if(!(0,ie.isArray)(t)&&!(0,ie.isSet)(t)){var c=gs(t,n);if(!(0,ie.isUndefined)(c)&&c(t)===ys.instance)return;s=r.element({name:e,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty})}Mi(e,t,s,n)}function QS(e,t,r){if((0,ie.isMap)(e))e.forEach(function(a,s){hm((0,ie.stringify)(s),a,t,r)});else for(var n=0,i=Object.keys(e);n<i.length;n++){var o=i[n];hm(o,e[o],t,r)}}function ZS(e,t,r,n){var i;Object.prototype.hasOwnProperty.call(n.wrapHandlers,"*")&&(i=n.wrapHandlers["*"]),Object.prototype.hasOwnProperty.call(n.wrapHandlers,e)&&(i=n.wrapHandlers[e]);var o=e,a=r;if(!(0,ie.isUndefined)(i)){var s=i(o,t);(0,ie.isNull)(s)||(o=s,a=r.element({name:e,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty}))}t.forEach(function(c){var d=a;if(!(0,ie.isArray)(c)&&!(0,ie.isSet)(c)){var l=gs(c,n);if(!(0,ie.isUndefined)(l)&&l(c)===ys.instance)return;d=a.element({name:o,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty})}Mi(o,c,d,n)})}function Mi(e,t,r,n){var i=gs(t,n);if((0,ie.isUndefined)(i)||(t=i(t)),(0,ie.isObject)(t)||(0,ie.isMap)(t)){QS(t,r,n);return}if((0,ie.isArray)(t)||(0,ie.isSet)(t)){ZS(e,t,r,n);return}gm((0,ie.stringify)(t),r,n)}function vm(e,t,r){var n=new ym.Options(r);Mi(e.name,t,e,n)}xt.parseToExistingElement=vm;function ew(e,t,r){var n=new ym.Options(r),i=new mm.XmlDocument({validation:n.validation});n.declaration.include&&i.decl(n.declaration),n.dtd.include&&i.dtd({name:n.dtd.name,pubId:n.dtd.pubId,sysId:n.dtd.sysId});var o=i.element({name:e,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty});return vm(o,t,r),i.toString(n.format)}xt.parse=ew});var Ss=T(require("node:fs")),en=T(require("node:path"));var Nd=require("node:child_process"),dt=T(require("node:path")),Md=T(Ot()),tt=T(Tt());var cr=T(require("node:fs")),Ad=T(require("node:path")),Mr=T(Mn()),Fd=T(Ot()),Zn=T(Tt()),Ld=T(Gn());var Ze=T(require("node:fs")),ot=T(require("node:path")),Ie=T(Tt());var ft=T(require("node:fs")),ke=T(require("node:path")),Bn=T(Tt());var or=ne();function*X0(e){let{basePath:t,withSizeProp:r}=e||{},{__cx:n}=or.paths(),i=t||ke.default.join(n,"store"),o=ff(i).filter(a=>ke.default.extname(a)===".json");for(let a of o)try{let s=Bn.default.readJsonSync(a,{encoding:"utf-8"});if(r){let c=ft.default.statSync(a);s.size=c.size/1024}s.path&&(yield s)}catch(s){console.error(`Error: The file ${a} doesn't exist`,s)}}async function To(){let{__cx:e}=or.paths(),{sitesToPublish:t,createdPages:r,buildProcessData:n}=Bn.default.readJSONSync(ke.default.join(e,"store","metadata","render-info.json"));return{buildProcessData:n,createdPages:r,sitesToPublish:t}}function sf(){let{__cx:e}=or.paths(),t=ke.default.join(e,"store");ft.default.existsSync(t)||(ft.default.mkdirSync(t),ft.default.mkdirSync(ke.default.join(t,"metadata"))),console.info("Store initialized")}function uf(e,t){let{__cx:r}=or.paths();ft.default.writeFileSync(ke.default.join(r,"store","metadata","render-info.json"),JSON.stringify(t))}function H0(e,t){return Ao(e).filter(i=>t.includes(i))}function Ao(e){return ft.default.readdirSync(e).filter(r=>{let n=`${e}/${r}`,i=ft.default.statSync(n);if(i&&i.isDirectory()||ke.default.extname(r)!==".json")return!1;let o=ke.default.basename(r,ke.default.extname(r));return!isNaN(parseInt(o))}).map(r=>{let n=ke.default.basename(r,ke.default.extname(r));return parseInt(n)})}function cf(e){let{__cx:t}=or.paths();e.forEach(r=>{Fo(r,["editorID","parentEditorID"]);let n=`${r.context.page.id}.json`,i=ke.default.join(t,"store",n);Bn.default.writeJSONSync(i,r)})}function Un(e){let{__cx:t}=or.paths();e.length!==0&&e.forEach(r=>{let n=ke.default.join(t,"store",`${r}.json`);try{ft.default.unlinkSync(n)}catch(i){console.log(`Error removing file ${r}`,i.message)}})}async function lf(e,t){let{changedPages:r,pages:n,validPagesIds:i,sitesToPublish:o}=t,a=H0(e,n),s=i.filter(h=>!a.includes(h)),c=s.concat(r),d=a.filter(h=>!i.includes(h)),l=Array.from(new Set(c)).filter(h=>!d.includes(h)),p=X0(),m=[];for await(let h of p){let _=h.context.page.site,b=h.context.page.id;o.map(w=>w.id).includes(_)||m.push(b)}return{pagesInStore:a,pagesMissingInStore:s,pagesToDeleteFromStore:[...d,...m],pagesToWriteToStore:l}}var W0=ne(),Lo=e=>{if(!Ie.default.statSync(e).isDirectory())return;let r=Ie.default.readdirSync(e);if(r.length>0){let i=r.length,o=r.filter(a=>ot.default.extname(a).toLowerCase()===".xml").length;i===o&&(r.forEach(function(a){let s=ot.default.join(e,a);Ie.default.rmSync(s)}),r=Ie.default.readdirSync(e)),r.forEach(function(a){let s=ot.default.join(e,a);Lo(s)}),r=Ie.default.readdirSync(e)}if(r.length===0){Ie.default.rmdirSync(e);return}};function Xn(e,t){for(let r of e)Ze.default.existsSync(r)||Ze.default.mkdirSync(r,{recursive:!0,...t})}function Hn(e,t,r,n={withBackup:!1}){let{withBackup:i}=n;for(let o of r){let a=ot.default.join(e,o),s=ot.default.join(t,o);if(!Ie.default.existsSync(a)){console.log(`Source directory does not exist: ${a}`);continue}i&&hf(s);try{Ie.default.existsSync(s)&&Ze.default.rmSync(s,{recursive:!0,force:!0}),Ze.default.cpSync(a,s,{recursive:!0,preserveTimestamps:!0}),i&&pf(s)}catch{console.log("Copy failed!"),i&&(df(s),console.log("Backup has been restored."))}}}function ar(e,t,r,n){let{override:i,withBackup:o}=n||{};for(let a of r){let s=ot.default.join(e,a),c=ot.default.join(t,a);if(Ie.default.existsSync(s)){o&&hf(c);try{i&&Ie.default.existsSync(c)&&Ze.default.rmSync(c,{recursive:!0,force:!0}),Ze.default.renameSync(s,c),o&&pf(c)}catch{console.log("Move failed!"),o&&(df(c),console.log("Backup has been restored."))}}}}function kr(e,t){for(let r of t){if(!r)continue;let n=ot.default.join(e,r);Ie.default.existsSync(n)&&Ze.default.rmSync(n,{recursive:!0,force:!0})}}function df(e,t="-BACKUP"){let r=e+t;try{Ze.default.renameSync(r,e),console.log(`Backup ${r} has been restored`)}catch{console.log(`Error while delete ${r} backup`)}}function pf(e,t="-BACKUP"){let r=e+t;if(Ie.default.existsSync(r))try{Ze.default.rmSync(r,{recursive:!0,force:!0}),console.log(`Backup ${r} has been deleted`)}catch{console.log(`Error while delete ${r} backup`)}}function hf(e,t="-BACKUP"){let r=e+t;if(Ie.default.existsSync(e)){if(Ie.default.existsSync(r)){console.log(`Destination ${r} already exists`);return}try{Ze.default.renameSync(e,r),console.log(`Backup of ${e} has been created in ${r}`)}catch{console.log(`Error while coping ${e} to ${r} backup`)}}}function Y0(e){return Number.isInteger(e)&&e<0}async function mf(){let{__cx:e}=W0.paths(),t=ot.default.join(e,"store");try{let r=Ao(t).filter(Y0);Un(r)}catch{console.info("`store` folder does not exist. Skipping multipage or static list template cleaning.")}}var Jn=T(vf()),Dd=T(Tf());var Af=T(Ot());Af.default.config();var Ge=process.env.GRIDDO_API_URL||process.env.API_URL,Ff=process.env.GRIDDO_PUBLIC_API_URL||process.env.PUBLIC_API_URL,Lf=process.env.botEmail,kf=process.env.botPassword,Nf=Number.parseInt(process.env.GRIDDO_API_CONCURRENCY_COUNT||"10"),Mf=at(process.env.GRIDDO_RENDER_ALL_SITES||process.env.updateAllSites),qf=Number.parseInt(process.env.GRIDDO_RENDER_SITE||""),jf=(process.env.GRIDDO_RENDER_PAGES||"").split(",").map(e=>Number.parseInt(e)).filter(Boolean),$f=at(process.env.GRIDDO_SKIP_BUILD_CHECKS),Gf=at(process.env.GRIDDO_DEBUG_LOGS),Bf=at(process.env.GRIDDO_BUILD_LOGS),Uf=at(process.env.GRIDDO_RENDER_BREAKPOINTS_FEATURE),Xf=at(process.env.GRIDDO_SSG_VERBOSE_LOGS),Hf=at(process.env.GRIDGRIDDO_SEARCH_FEATURE_FEATURE),Wf=process.env.GRIDDO_ASSET_PREFIX||process.env.ASSET_PREFIX,Yf=process.env.GRIDDO_REACT_APP_INSTANCE||process.env.REACT_APP_INSTANCE,Vf=at(process.env.GRIDDO_AI_EMBEDDINGS),zf=at(process.env.GRIDDO_VERBOSE_LOGS),Jf=Number.parseInt(process.env.GRIDDO_CLEAN_LIFECYCLE_MAX_ATTEMPTS||"1"),Kf=Number.parseInt(process.env.GRIDDO_CLOSE_LIFECYCLE_MAX_ATTEMPTS||"1"),Qf=Number.parseInt(process.env.GRIDDO_PREPARE_LIFECYCLE_MAX_ATTEMPTS||"1"),Zf=Number.parseInt(process.env.GRIDDO_RESTORE_LIFECYCLE_MAX_ATTEMPTS||"1"),ed=Number.parseInt(process.env.GRIDDO_DATA_LIFECYCLE_MAX_ATTEMPTS||"1"),td=Number.parseInt(process.env.GRIDDO_SSG_LIFECYCLE_MAX_ATTEMPTS||"2"),rd=Number.parseInt(process.env.GRIDDO_RELOCATION_LIFECYCLE_MAX_ATTEMPTS||"1"),nd=Number.parseInt(process.env.GRIDDO_META_LIFECYCLE_MAX_ATTEMPTS||"4"),id=Number.parseInt(process.env.GRIDDO_ARCHIVE_LIFECYCLE_MAX_ATTEMPTS||"1"),od=process.env.GRIDDO_CX_FIXTURES_DOMAIN_NAMES,ad=process.env.GRIDDO_CX_FIXTURES_SITE_NAMES;var wt=`${Ge}/site/`,sd=`${Ge}/sites/all`,ud=`${Ge}/settings`,cd=`${Ge}/debug/reset-render`,ld=`${Ge}/page`,fd=`${Ge}/search`,dd=`${Ge}/domains`,pd=`${Ge}/domains/robots`,hd=`${Ge}/login_check`,md=`${Ge}/ai/embeddings`,yd=[wt,"/all"],gd=[wt,"/languages"],vd=[wt,"/build/start"],_d=[wt,"/build/end"],Ed=[wt,"/distributor"],bd=[wt,"/sitemap"],Sd=[wt,"/socials"],wd=[wt,"/pages?pagination=false"];var le={AI_EMBEDDINGS:md,BUILD_END:_d,BUILD_START:vd,DOMAINS:dd,GET_ALL:sd,GET_PAGE:ld,GET_PAGES:wd,GET_REFERENCE_FIELD_DATA:Ed,GET_SITEMAP:bd,INFO:yd,LANGUAGES:gd,LOGIN:hd,RESET_RENDER:cd,ROBOTS:pd,SEARCH:fd,SETTINGS:ud,SOCIALS:Sd},X={GRIDDO_AI_EMBEDDINGS:Vf,GRIDDO_API_CONCURRENCY_COUNT:Nf,GRIDDO_API_URL:Ge,GRIDDO_ARCHIVE_LIFECYCLE_MAX_ATTEMPTS:id,GRIDDO_ASSET_PREFIX:Wf,GRIDDO_BOT_PASSWORD:kf,GRIDDO_BOT_USER:Lf,GRIDDO_BUILD_LOGS:Bf,GRIDDO_CLEAN_LIFECYCLE_MAX_ATTEMPTS:Jf,GRIDDO_CLOSE_LIFECYCLE_MAX_ATTEMPTS:Kf,GRIDDO_DATA_LIFECYCLE_MAX_ATTEMPTS:ed,GRIDDO_DEBUG_LOGS:Gf,GRIDDO_FIXTURES_DOMAIN_NAMES:od,GRIDDO_FIXTURES_SITE_NAMES:ad,GRIDDO_META_LIFECYCLE_MAX_ATTEMPTS:nd,GRIDDO_PREPARE_LIFECYCLE_MAX_ATTEMPTS:Qf,GRIDDO_PUBLIC_API_URL:Ff,GRIDDO_REACT_APP_INSTANCE:Yf,GRIDDO_RELOCATION_LIFECYCLE_MAX_ATTEMPTS:rd,GRIDDO_RENDER_ALL_SITES:Mf,GRIDDO_RENDER_BREAKPOINTS_FEATURE:Uf,GRIDDO_RENDER_PAGES:jf,GRIDDO_RENDER_SITE:qf,GRIDDO_RESTORE_LIFECYCLE_MAX_ATTEMPTS:Zf,GRIDDO_SEARCH_FEATURE:Hf,GRIDDO_SKIP_BUILD_CHECKS:$f,GRIDDO_SSG_LIFECYCLE_MAX_ATTEMPTS:td,GRIDDO_SSG_VERBOSE_LOGS:Xf,GRIDDO_VERBOSE_LOGS:zf};function Ne(e){X.GRIDDO_VERBOSE_LOGS&&console.log(Jn.default.yellow("verbose"),Jn.default.dim(e.replace(/(\s)\s+/g,"$1").trim()))}function We(e,t="",r=1,n=1){let i=e.split(`
35
+ `+o),e.push(i+"m+"+bi.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=eS()+t+" "+e[0]}function eS(){return _e.inspectOpts.hideDate?"":new Date().toISOString()+" "}function tS(...e){return process.stderr.write(_i.format(...e)+`
36
+ `)}function rS(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function nS(){return process.env.DEBUG}function iS(e){e.inspectOpts={};let t=Object.keys(_e.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=_e.inspectOpts[t[r]]}bi.exports=La()(_e);var{formatters:Lp}=bi.exports;Lp.o=function(e){return this.inspectOpts.colors=this.useColors,_i.inspect(e,this.inspectOpts).split(`
37
+ `).map(t=>t.trim()).join(" ")};Lp.O=function(e){return this.inspectOpts.colors=this.useColors,_i.inspect(e,this.inspectOpts)}});var Np=v((CD,Ma)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Ma.exports=Op():Ma.exports=kp()});var qp=v((xD,Mp)=>{var Wr;Mp.exports=function(){if(!Wr){try{Wr=Np()("follow-redirects")}catch{}typeof Wr!="function"&&(Wr=function(){})}Wr.apply(null,arguments)}});var Ua=v((RD,Ba)=>{var jt=require("url"),qa=jt.URL,oS=require("http"),aS=require("https"),Gp=require("stream").Writable,Bp=require("assert"),Up=qp(),$a=["abort","aborted","connect","error","socket","timeout"],Ga=Object.create(null);$a.forEach(function(e){Ga[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}});var sS=Vr("ERR_INVALID_URL","Invalid URL",TypeError),jp=Vr("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),uS=Vr("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),cS=Vr("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),lS=Vr("ERR_STREAM_WRITE_AFTER_END","write after end");function Xe(e,t){Gp.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()}Xe.prototype=Object.create(Gp.prototype);Xe.prototype.abort=function(){Hp(this._currentRequest),this.emit("abort")};Xe.prototype.write=function(e,t,r){if(this._ending)throw new lS;if(!$t(e)&&!pS(e))throw new TypeError("data should be a string, Buffer or Uint8Array");if(Yr(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 cS),this.abort())};Xe.prototype.end=function(e,t,r){if(Yr(e)?(r=e,e=t=null):Yr(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}};Xe.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)};Xe.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)};Xe.prototype.setTimeout=function(e,t){var r=this;function n(a){a.setTimeout(e),a.removeListener("timeout",a.destroy),a.addListener("timeout",a.destroy)}function i(a){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout(function(){r.emit("timeout"),o()},e),n(a)}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){Xe.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}});["aborted","connection","socket"].forEach(function(e){Object.defineProperty(Xe.prototype,e,{get:function(){return this._currentRequest[e]}})});Xe.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))}};Xe.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 $a)n.on(i,Ga[i]);if(this._currentUrl=/^\//.test(this._options.path)?jt.format(this._options):this._options.path,this._isRedirect){var o=0,a=this,s=this._requestBodyBuffers;(function c(d){if(n===a._currentRequest)if(d)a.emit("error",d);else if(o<s.length){var l=s[o++];n.finished||n.write(l.data,l.encoding,c)}else a._ended&&n.end()})()}};Xe.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(Hp(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects){this.emit("error",new uS);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=[],ja(/^content-/i,this._options.headers));var a=ja(/^host$/i,this._options.headers),s=jt.parse(this._currentUrl),c=a||s.host,d=/^\w+:/.test(r)?this._currentUrl:jt.format(Object.assign(s,{host:c})),l;try{l=jt.resolve(d,r)}catch(_){this.emit("error",new jp({cause:_}));return}Up("redirecting to",l),this._isRedirect=!0;var p=jt.parse(l);if(Object.assign(this._options,p),(p.protocol!==s.protocol&&p.protocol!=="https:"||p.host!==c&&!dS(p.host,c))&&ja(/^(?:authorization|cookie)$/i,this._options.headers),Yr(i)){var m={headers:e.headers,statusCode:t},h={url:d,method:o,headers:n};try{i(this._options,m,h)}catch(_){this.emit("error",_);return}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(_){this.emit("error",new jp({cause:_}))}};function Xp(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach(function(n){var i=n+":",o=r[i]=e[n],a=t[n]=Object.create(o);function s(d,l,p){if($t(d)){var m;try{m=$p(new qa(d))}catch{m=jt.parse(d)}if(!$t(m.protocol))throw new sS({input:d});d=m}else qa&&d instanceof qa?d=$p(d):(p=l,l=d,d={protocol:i});return Yr(l)&&(p=l,l=null),l=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},d,l),l.nativeProtocols=r,!$t(l.host)&&!$t(l.hostname)&&(l.hostname="::1"),Bp.equal(l.protocol,i,"protocol mismatch"),Up("options",l),new Xe(l,p)}function c(d,l,p){var m=a.request(d,l,p);return m.end(),m}Object.defineProperties(a,{request:{value:s,configurable:!0,enumerable:!0,writable:!0},get:{value:c,configurable:!0,enumerable:!0,writable:!0}})}),t}function fS(){}function $p(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 ja(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 Vr(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 Hp(e){for(var t of $a)e.removeListener(t,Ga[t]);e.on("error",fS),e.abort()}function dS(e,t){Bp($t(e)&&$t(t));var r=e.length-t.length-1;return r>0&&e[r]==="."&&e.endsWith(t)}function $t(e){return typeof e=="string"||e instanceof String}function Yr(e){return typeof e=="function"}function pS(e){return typeof e=="object"&&"length"in e}Ba.exports=Xp({http:oS,https:aS});Ba.exports.wrap=Xp});var Xa=v((OD,hS)=>{hS.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 Kp=v((ID,Jp)=>{"use strict";var zr=Te(),Wp=Pa(),mS=Aa(),yS=fi(),gS=require("http"),vS=require("https"),_S=Ua().http,bS=Ua().https,Yp=require("url"),ES=require("zlib"),SS=Xa(),Ei=hi(),Ha=pi(),Vp=/https:?/;function zp(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,zp(o,t,o.href)}}Jp.exports=function(t){return new Promise(function(n,i){var o=function(R){n(R)},a=function(R){i(R)},s=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/"+SS.version,s&&!zr.isStream(s)){if(!Buffer.isBuffer(s))if(zr.isArrayBuffer(s))s=Buffer.from(new Uint8Array(s));else if(zr.isString(s))s=Buffer.from(s,"utf-8");else return a(Ei("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",t));c["Content-Length"]=s.length}var d=void 0;if(t.auth){var l=t.auth.username||"",p=t.auth.password||"";d=l+":"+p}var m=mS(t.baseURL,t.url),h=Yp.parse(m),_=h.protocol||"http:";if(!d&&h.auth){var E=h.auth.split(":"),w=E[0]||"",I=E[1]||"";d=w+":"+I}d&&delete c.Authorization;var F=Vp.test(_),A=F?t.httpsAgent:t.httpAgent,L={path:yS(h.path,t.params,t.paramsSerializer).replace(/^\?/,""),method:t.method.toUpperCase(),headers:c,agent:A,agents:{http:t.httpAgent,https:t.httpsAgent},auth:d};t.socketPath?L.socketPath=t.socketPath:(L.hostname=h.hostname,L.port=h.port);var K=t.proxy;if(!K&&K!==!1){var ue=_.slice(0,-1)+"_proxy",$e=process.env[ue]||process.env[ue.toUpperCase()];if($e){var le=Yp.parse($e),x=process.env.no_proxy||process.env.NO_PROXY,q=!0;if(x){var M=x.split(",").map(function(R){return R.trim()});q=!M.some(function(R){return R?R==="*"||R[0]==="."&&h.hostname.substr(h.hostname.length-R.length)===R?!0:h.hostname===R:!1})}if(q&&(K={host:le.hostname,port:le.port,protocol:le.protocol},le.auth)){var Q=le.auth.split(":");K.auth={username:Q[0],password:Q[1]}}}}K&&(L.headers.host=h.hostname+(h.port?":"+h.port:""),zp(L,K,_+"//"+h.hostname+(h.port?":"+h.port:"")+L.path));var U,W=F&&(K?Vp.test(K.protocol):!0);t.transport?U=t.transport:t.maxRedirects===0?U=W?vS:gS:(t.maxRedirects&&(L.maxRedirects=t.maxRedirects),U=W?bS:_S),t.maxBodyLength>-1&&(L.maxBodyLength=t.maxBodyLength);var S=U.request(L,function(R){if(!S.aborted){var j=R,me=R.req||S;if(R.statusCode!==204&&me.method!=="HEAD"&&t.decompress!==!1)switch(R.headers["content-encoding"]){case"gzip":case"compress":case"deflate":j=j.pipe(ES.createUnzip()),delete R.headers["content-encoding"];break}var nt={status:R.statusCode,statusText:R.statusMessage,headers:R.headers,config:t,request:me};if(t.responseType==="stream")nt.data=j,Wp(o,a,nt);else{var He=[],ut=0;j.on("data",function(Ee){He.push(Ee),ut+=Ee.length,t.maxContentLength>-1&&ut>t.maxContentLength&&(j.destroy(),a(Ei("maxContentLength size of "+t.maxContentLength+" exceeded",t,null,me)))}),j.on("error",function(Ee){S.aborted||a(Ha(Ee,t,null,me))}),j.on("end",function(){var Ee=Buffer.concat(He);t.responseType!=="arraybuffer"&&(Ee=Ee.toString(t.responseEncoding),(!t.responseEncoding||t.responseEncoding==="utf8")&&(Ee=zr.stripBOM(Ee))),nt.data=Ee,Wp(o,a,nt)})}}});if(S.on("error",function(R){S.aborted&&R.code!=="ERR_FR_TOO_MANY_REDIRECTS"||a(Ha(R,t,null,S))}),t.timeout){var H=parseInt(t.timeout,10);if(isNaN(H)){a(Ei("error trying to parse `config.timeout` to int",t,"ERR_PARSE_TIMEOUT",S));return}S.setTimeout(H,function(){S.abort(),a(Ei("timeout of "+H+"ms exceeded",t,t.transitional&&t.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",S))})}t.cancelToken&&t.cancelToken.promise.then(function(R){S.aborted||(S.abort(),a(R))}),zr.isStream(s)?s.on("error",function(R){a(Ha(R,t,null,S))}).pipe(S):S.end(s)})}});var wi=v((PD,eh)=>{"use strict";var be=Te(),Qp=sp(),wS=pi(),DS={"Content-Type":"application/x-www-form-urlencoded"};function Zp(e,t){!be.isUndefined(e)&&be.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function CS(){var e;return typeof XMLHttpRequest<"u"?e=Dp():typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]"&&(e=Kp()),e}function xS(e,t,r){if(be.isString(e))try{return(t||JSON.parse)(e),be.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}var Si={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:CS(),transformRequest:[function(t,r){return Qp(r,"Accept"),Qp(r,"Content-Type"),be.isFormData(t)||be.isArrayBuffer(t)||be.isBuffer(t)||be.isStream(t)||be.isFile(t)||be.isBlob(t)?t:be.isArrayBufferView(t)?t.buffer:be.isURLSearchParams(t)?(Zp(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):be.isObject(t)||r&&r["Content-Type"]==="application/json"?(Zp(r,"application/json"),xS(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&&be.isString(t)&&t.length)try{return JSON.parse(t)}catch(a){if(o)throw a.name==="SyntaxError"?wS(a,this,"E_JSON_PARSE"):a}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};Si.headers={common:{Accept:"application/json, text/plain, */*"}};be.forEach(["delete","get","head"],function(t){Si.headers[t]={}});be.forEach(["post","put","patch"],function(t){Si.headers[t]=be.merge(DS)});eh.exports=Si});var rh=v((AD,th)=>{"use strict";var RS=Te(),OS=wi();th.exports=function(t,r,n){var i=this||OS;return RS.forEach(n,function(a){t=a.call(i,t,r)}),t}});var Wa=v((TD,nh)=>{"use strict";nh.exports=function(t){return!!(t&&t.__CANCEL__)}});var ah=v((FD,oh)=>{"use strict";var ih=Te(),Ya=rh(),IS=Wa(),PS=wi();function Va(e){e.cancelToken&&e.cancelToken.throwIfRequested()}oh.exports=function(t){Va(t),t.headers=t.headers||{},t.data=Ya.call(t,t.data,t.headers,t.transformRequest),t.headers=ih.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),ih.forEach(["delete","get","head","post","put","patch","common"],function(i){delete t.headers[i]});var r=t.adapter||PS.adapter;return r(t).then(function(i){return Va(t),i.data=Ya.call(t,i.data,i.headers,t.transformResponse),i},function(i){return IS(i)||(Va(t),i&&i.response&&(i.response.data=Ya.call(t,i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})}});var za=v((LD,sh)=>{"use strict";var Ce=Te();sh.exports=function(t,r){r=r||{};var n={},i=["url","method","data"],o=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function c(m,h){return Ce.isPlainObject(m)&&Ce.isPlainObject(h)?Ce.merge(m,h):Ce.isPlainObject(h)?Ce.merge({},h):Ce.isArray(h)?h.slice():h}function d(m){Ce.isUndefined(r[m])?Ce.isUndefined(t[m])||(n[m]=c(void 0,t[m])):n[m]=c(t[m],r[m])}Ce.forEach(i,function(h){Ce.isUndefined(r[h])||(n[h]=c(void 0,r[h]))}),Ce.forEach(o,d),Ce.forEach(a,function(h){Ce.isUndefined(r[h])?Ce.isUndefined(t[h])||(n[h]=c(void 0,t[h])):n[h]=c(void 0,r[h])}),Ce.forEach(s,function(h){h in r?n[h]=c(t[h],r[h]):h in t&&(n[h]=c(void 0,t[h]))});var l=i.concat(o).concat(a).concat(s),p=Object.keys(t).concat(Object.keys(r)).filter(function(h){return l.indexOf(h)===-1});return Ce.forEach(p,d),n}});var dh=v((kD,fh)=>{"use strict";var ch=Xa(),Ja={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){Ja[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var uh={},AS=ch.version.split(".");function lh(e,t){for(var r=t?t.split("."):AS,n=e.split("."),i=0;i<3;i++){if(r[i]>n[i])return!0;if(r[i]<n[i])return!1}return!1}Ja.transitional=function(t,r,n){var i=r&&lh(r);function o(a,s){return"[Axios v"+ch.version+"] Transitional option '"+a+"'"+s+(n?". "+n:"")}return function(a,s,c){if(t===!1)throw new Error(o(s," has been removed in "+r));return i&&!uh[s]&&(uh[s]=!0,console.warn(o(s," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(a,s,c):!0}};function TS(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],a=t[o];if(a){var s=e[o],c=s===void 0||a(s,o,e);if(c!==!0)throw new TypeError("option "+o+" must be "+c);continue}if(r!==!0)throw Error("Unknown option "+o)}}fh.exports={isOlderVersion:lh,assertOptions:TS,validators:Ja}});var vh=v((ND,gh)=>{"use strict";var mh=Te(),FS=fi(),ph=op(),hh=ah(),Di=za(),yh=dh(),hr=yh.validators;function Jr(e){this.defaults=e,this.interceptors={request:new ph,response:new ph}}Jr.prototype.request=function(t){typeof t=="string"?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=Di(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&&yh.assertOptions(r,{silentJSONParsing:hr.transitional(hr.boolean,"1.0.0"),forcedJSONParsing:hr.transitional(hr.boolean,"1.0.0"),clarifyTimeoutError:hr.transitional(hr.boolean,"1.0.0")},!1);var n=[],i=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(t)===!1||(i=i&&m.synchronous,n.unshift(m.fulfilled,m.rejected))});var o=[];this.interceptors.response.forEach(function(m){o.push(m.fulfilled,m.rejected)});var a;if(!i){var s=[hh,void 0];for(Array.prototype.unshift.apply(s,n),s=s.concat(o),a=Promise.resolve(t);s.length;)a=a.then(s.shift(),s.shift());return a}for(var c=t;n.length;){var d=n.shift(),l=n.shift();try{c=d(c)}catch(p){l(p);break}}try{a=hh(c)}catch(p){return Promise.reject(p)}for(;o.length;)a=a.then(o.shift(),o.shift());return a};Jr.prototype.getUri=function(t){return t=Di(this.defaults,t),FS(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};mh.forEach(["delete","get","head","options"],function(t){Jr.prototype[t]=function(r,n){return this.request(Di(n||{},{method:t,url:r,data:(n||{}).data}))}});mh.forEach(["post","put","patch"],function(t){Jr.prototype[t]=function(r,n,i){return this.request(Di(i||{},{method:t,url:r,data:n}))}});gh.exports=Jr});var Qa=v((MD,_h)=>{"use strict";function Ka(e){this.message=e}Ka.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};Ka.prototype.__CANCEL__=!0;_h.exports=Ka});var Eh=v((qD,bh)=>{"use strict";var LS=Qa();function Ci(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 LS(i),t(r.reason))})}Ci.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};Ci.source=function(){var t,r=new Ci(function(i){t=i});return{token:r,cancel:t}};bh.exports=Ci});var wh=v((jD,Sh)=>{"use strict";Sh.exports=function(t){return function(n){return t.apply(null,n)}}});var Ch=v(($D,Dh)=>{"use strict";Dh.exports=function(t){return typeof t=="object"&&t.isAxiosError===!0}});var Oh=v((GD,Za)=>{"use strict";var xh=Te(),kS=Ca(),xi=vh(),NS=za(),MS=wi();function Rh(e){var t=new xi(e),r=kS(xi.prototype.request,t);return xh.extend(r,xi.prototype,t),xh.extend(r,t),r}var et=Rh(MS);et.Axios=xi;et.create=function(t){return Rh(NS(et.defaults,t))};et.Cancel=Qa();et.CancelToken=Eh();et.isCancel=Wa();et.all=function(t){return Promise.all(t)};et.spread=wh();et.isAxiosError=Ch();Za.exports=et;Za.exports.default=et});var es=v((BD,Ih)=>{Ih.exports=Oh()});function yr(e=""){return US?ds.default.resolve(hs.default.sync(__dirname),"../../../",e):ds.default.resolve(hs.default.sync(__dirname),"../griddo-components",e)}function XS(){let e=ps.default.sync("jsconfig.json",{cwd:yr()});return ps.default.sync("tsconfig.json",{cwd:yr()})||e}function HS(){let e=require(XS());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("/*"),a=yr(o);return{...t,[n]:a}},{"@griddo-instance":`${yr()}/src/index.js`})}var ds,ps,hs,US,dC,nm=iu(()=>{"use strict";ds=P(require("node:path")),ps=P(Po()),hs=P(jn()),US=__dirname.includes("node_modules"),dC=HS()});var am={};Ky(am,{default:()=>KS});var st,Pi,om,Ii,WS,YS,VS,im,zS,JS,KS,sm=iu(()=>{"use strict";st=P(require("node:path")),Pi=P(jn());nm();om=Pi.default.sync(st.default.resolve(__dirname,"../..")),Ii=Pi.default.sync(__dirname),WS=st.default.resolve(Pi.default.sync(__dirname)),YS=st.default.resolve(Ii,"caches"),VS=yr(),im=st.default.join(om,"exports/sites"),{version:zS}=require(st.default.join(Ii,"package.json")),JS={proDomain:"pro-",griddoVersion:zS,paths:e=>({__caches:st.default.join(YS,e||""),__components:VS,__cx:Ii,__exports:st.default.join(im,e||""),__root:om,__ssg:WS,__exports_dist:e?st.default.join(im,e,"dist"):"",__cx_dist:st.default.join(Ii,"dist")})},KS=JS});var ji=P(require("node:path"));var pm=require("node:child_process"),ht=P(require("node:path")),hm=P(It()),rt=P(Tt());var gr=P(require("node:fs")),um=P(require("node:path")),Qr=P(kn()),cm=P(It()),Ai=P(Tt()),lm=P(jn());var Be=P(require("node:fs")),dt=P(require("node:path")),Ae=P(Tt());var Xn=P(uf()),hd=P(Ef());var Sf=P(It());Sf.default.config();var Ge=process.env.GRIDDO_API_URL||process.env.API_URL,wf=process.env.GRIDDO_PUBLIC_API_URL||process.env.PUBLIC_API_URL,Df=process.env.botEmail,Cf=process.env.botPassword,xf=Number.parseInt(process.env.GRIDDO_API_CONCURRENCY_COUNT||"10"),Rf=it(process.env.GRIDDO_RENDER_ALL_SITES||process.env.updateAllSites),Of=Number.parseInt(process.env.GRIDDO_RENDER_SITE||""),If=(process.env.GRIDDO_RENDER_PAGES||"").split(",").map(e=>Number.parseInt(e)).filter(Boolean),Pf=it(process.env.GRIDDO_SKIP_BUILD_CHECKS),Af=it(process.env.GRIDDO_DEBUG_LOGS),Tf=it(process.env.GRIDDO_BUILD_LOGS),Ff=it(process.env.GRIDDO_RENDER_BREAKPOINTS_FEATURE),Lf=it(process.env.GRIDDO_SSG_VERBOSE_LOGS),kf=it(process.env.GRIDGRIDDO_SEARCH_FEATURE_FEATURE),Nf=process.env.GRIDDO_ASSET_PREFIX||process.env.ASSET_PREFIX,Mf=process.env.GRIDDO_REACT_APP_INSTANCE||process.env.REACT_APP_INSTANCE,qf=it(process.env.GRIDDO_AI_EMBEDDINGS),jf=it(process.env.GRIDDO_VERBOSE_LOGS),$f=Number.parseInt(process.env.GRIDDO_CLEAN_LIFECYCLE_MAX_ATTEMPTS||"1"),Gf=Number.parseInt(process.env.GRIDDO_CLOSE_LIFECYCLE_MAX_ATTEMPTS||"1"),Bf=Number.parseInt(process.env.GRIDDO_PREPARE_LIFECYCLE_MAX_ATTEMPTS||"1"),Uf=Number.parseInt(process.env.GRIDDO_RESTORE_LIFECYCLE_MAX_ATTEMPTS||"1"),Xf=Number.parseInt(process.env.GRIDDO_DATA_LIFECYCLE_MAX_ATTEMPTS||"1"),Hf=Number.parseInt(process.env.GRIDDO_SSG_LIFECYCLE_MAX_ATTEMPTS||"2"),Wf=Number.parseInt(process.env.GRIDDO_RELOCATION_LIFECYCLE_MAX_ATTEMPTS||"1"),Yf=Number.parseInt(process.env.GRIDDO_META_LIFECYCLE_MAX_ATTEMPTS||"4"),Vf=Number.parseInt(process.env.GRIDDO_ARCHIVE_LIFECYCLE_MAX_ATTEMPTS||"1"),zf=process.env.GRIDDO_CX_FIXTURES_DOMAIN_NAMES,Jf=process.env.GRIDDO_CX_FIXTURES_SITE_NAMES;var Dt=`${Ge}/site/`,Kf=`${Ge}/sites/all`,Qf=`${Ge}/settings`,Zf=`${Ge}/debug/reset-render`,ed=`${Ge}/page`,td=`${Ge}/search`,rd=`${Ge}/domains`,nd=`${Ge}/domains/robots`,id=`${Ge}/login_check`,od=`${Ge}/ai/embeddings`,ad=[Dt,"/all"],sd=[Dt,"/languages"],ud=[Dt,"/build/start"],cd=[Dt,"/build/end"],ld=[Dt,"/distributor"],fd=[Dt,"/sitemap"],dd=[Dt,"/socials"],pd=[Dt,"/pages?pagination=false"];var fe={AI_EMBEDDINGS:od,BUILD_END:cd,BUILD_START:ud,DOMAINS:rd,GET_ALL:Kf,GET_PAGE:ed,GET_PAGES:pd,GET_REFERENCE_FIELD_DATA:ld,GET_SITEMAP:fd,INFO:ad,LANGUAGES:sd,LOGIN:id,RESET_RENDER:Zf,ROBOTS:nd,SEARCH:td,SETTINGS:Qf,SOCIALS:dd},X={GRIDDO_AI_EMBEDDINGS:qf,GRIDDO_API_CONCURRENCY_COUNT:xf,GRIDDO_API_URL:Ge,GRIDDO_ARCHIVE_LIFECYCLE_MAX_ATTEMPTS:Vf,GRIDDO_ASSET_PREFIX:Nf,GRIDDO_BOT_PASSWORD:Cf,GRIDDO_BOT_USER:Df,GRIDDO_BUILD_LOGS:Tf,GRIDDO_CLEAN_LIFECYCLE_MAX_ATTEMPTS:$f,GRIDDO_CLOSE_LIFECYCLE_MAX_ATTEMPTS:Gf,GRIDDO_DATA_LIFECYCLE_MAX_ATTEMPTS:Xf,GRIDDO_DEBUG_LOGS:Af,GRIDDO_FIXTURES_DOMAIN_NAMES:zf,GRIDDO_FIXTURES_SITE_NAMES:Jf,GRIDDO_META_LIFECYCLE_MAX_ATTEMPTS:Yf,GRIDDO_PREPARE_LIFECYCLE_MAX_ATTEMPTS:Bf,GRIDDO_PUBLIC_API_URL:wf,GRIDDO_REACT_APP_INSTANCE:Mf,GRIDDO_RELOCATION_LIFECYCLE_MAX_ATTEMPTS:Wf,GRIDDO_RENDER_ALL_SITES:Rf,GRIDDO_RENDER_BREAKPOINTS_FEATURE:Ff,GRIDDO_RENDER_PAGES:If,GRIDDO_RENDER_SITE:Of,GRIDDO_RESTORE_LIFECYCLE_MAX_ATTEMPTS:Uf,GRIDDO_SEARCH_FEATURE:kf,GRIDDO_SKIP_BUILD_CHECKS:Pf,GRIDDO_SSG_LIFECYCLE_MAX_ATTEMPTS:Hf,GRIDDO_SSG_VERBOSE_LOGS:Lf,GRIDDO_VERBOSE_LOGS:jf};function ne(e){X.GRIDDO_VERBOSE_LOGS&&console.log(Xn.default.yellow("verbose"),Xn.default.dim(e.replace(/(\s)\s+/g,"$1").trim()))}function ot(e,t="",r=1,n=1){let i=e.split(`
38
38
  `).map(_=>_.trim()),o=t?` ${t} `:"",a=t?o.length:0,s=Math.max(...i.map(_=>_.length))+r*2,c=Math.max(s,a),d=`\u2502${" ".repeat(c)}\u2502
39
39
  `.repeat(n),l=c,p=`\u256D${o}${"\u2500".repeat(l-a)}\u256E
40
- `,m=`\u2570${"\u2500".repeat(l)}\u256F`,h=i.map(_=>{let b=" ".repeat(c-_.length-r);return`\u2502${" ".repeat(r)}${_}${b}\u2502
41
- `}).join("");console.log(`${p}${d}${h}${d}${m}`)}function Ft(e){console.info(`${Jn.default.blue("info")} ${e}`)}function Cd(e){let t=ne(),r=process.version,{griddoVersion:n}=t,i=`
40
+ `,m=`\u2570${"\u2500".repeat(l)}\u256F`,h=i.map(_=>{let E=" ".repeat(c-_.length-r);return`\u2502${" ".repeat(r)}${_}${E}\u2502
41
+ `}).join("");console.log(`${p}${d}${h}${d}${m}`)}function lt(e){console.info(`${Xn.default.blue("info")} ${e}`)}function md(e){let t=ie(),r=process.version,{griddoVersion:n}=t,i=`
42
42
  \xB7\xB7
43
43
  \xB7\xB7 Griddo ${n}
44
44
  \xB7\xB7
45
45
  \xB7\xB7 Adapter: ${e}
46
46
  \xB7\xB7 Node: ${r}
47
- \xB7\xB7 React: ${Dd.version}
47
+ \xB7\xB7 React: ${hd.version}
48
48
  \xB7\xB7
49
- `;console.log(i)}Fd.default.config();var S_=ne(),A1=Ld.default.sync();function ne(){try{return(Td(),Vy(Pd)).default}catch{console.log("Error while reading configuration file"),process.exit(1)}}function at(e){if(typeof e=="boolean")return e;if(e==null)return!1;if(e.toLowerCase()==="true")return!0;if(e.toLowerCase()==="false")return!1;if(e.toLowerCase()==="on")return!0;if(e.toLowerCase()==="off")return!1;let t=parseInt(e,10);return isNaN(t)?!1:t>0}function ff(e){let t=[];return cr.default.readdirSync(e).forEach(n=>{let i=`${e}/${n}`;t.push(i)}),t}function Xo(e){return new Promise(t=>setTimeout(t,e))}function Ho(e,t=3){return(e/1e3).toFixed(t)}function Wo(e){if(typeof e!="string")return"site"in e&&e.site?e?.site:void 0}function Fo(e,t){for(let r in e)t.includes(r)?delete e[r]:typeof e[r]=="object"&&Fo(e[r],t)}function Yo(e){return e.map(({name:t,id:r})=>`${t} (${r})`).join(", ")}function kd(){let{__cx:e}=S_.paths(),t=Ad.default.join(e,"apiCache"),r=cr.default.readdirSync(t),n={},i=r.filter(a=>{let s=`${t}/${a}`,c=Zn.default.readJSONSync(s,"utf-8"),{id:d,entity:l,fullUrl:p}=c;return!!(d&&l&&p)});for(let a of i){let s=`${t}/${a}`,c=Zn.default.readJSONSync(s,"utf-8"),d=cr.default.statSync(s).mtimeMs,{id:l}=c;(!n[l]||d>cr.default.statSync(`${t}/${n[l]}`).mtimeMs)&&(n[l]=a)}let o=0;for(let a of i){let s=`${t}/${a}`,c=Zn.default.readJSONSync(s,"utf-8"),{id:d}=c;a!==n[d]&&(cr.default.unlinkSync(s),o++)}console.log(`Sanitize apiCache dir for ${o} files`)}async function Vo(e,t=0){let r=process.hrtime();for(let a of e)await a(),t>0&&await Xo(t);let[n,i]=process.hrtime(r);return+(n+i/1e9).toFixed(3)}function zo(e){if(JSON.parse(process.env.GRIDDO_RENDER_BREAKPOINTS_FEATURE||"false"))return new Promise(r=>{console.log(`
50
- `),We(`\u231B\uFE0F ${e}`,"",1,0),process.stdin.once("data",()=>{r()})})}async function et(e,t){let{steps:r,bypass:n,delay:i}=t;if(n)return;let o={Archive:X.GRIDDO_ARCHIVE_LIFECYCLE_MAX_ATTEMPTS,Data:X.GRIDDO_DATA_LIFECYCLE_MAX_ATTEMPTS,Meta:X.GRIDDO_META_LIFECYCLE_MAX_ATTEMPTS,Relocation:X.GRIDDO_RELOCATION_LIFECYCLE_MAX_ATTEMPTS,Clean:X.GRIDDO_CLEAN_LIFECYCLE_MAX_ATTEMPTS,Restore:X.GRIDDO_RESTORE_LIFECYCLE_MAX_ATTEMPTS,Prepare:X.GRIDDO_PREPARE_LIFECYCLE_MAX_ATTEMPTS,Close:X.GRIDDO_CLOSE_LIFECYCLE_MAX_ATTEMPTS,SSG:X.GRIDDO_SSG_LIFECYCLE_MAX_ATTEMPTS,HealthCheck:1,__DEBUG__:1},a=0,s=o[e]||1;for(;a<s;)try{console.info(`
51
- ${Mr.default.blue("info")} start ${e} life-cycle`);let c=await Vo(r,i);console.info(`${Mr.default.green("success")} ${e} - ${c}s`),await zo(`${e} LifeCycle`);break}catch(c){let d=Mr.default.bgRed.black(` Error in ${e} LifeCycle `),l=Mr.default.yellow(`Attempt (${a+1})`);console.log(`
52
- ${d} ${l}
53
- `),console.log(c),console.log(),a++}if(a===s)throw new Error(`Exceeded maximum retry attempts (${s}) for ${e} LifeCycle`)}Md.default.config();var qd=ne();function jd(e){let{proDomain:t}=ne(),r=process.env.GRIDDO_ASSET_PREFIX||process.env.ASSET_PREFIX;if(!r||!e||!e.startsWith(t))return"";let n=`${r}/${e}`;return Ne(`Reading env.GRIDDO_ASSET_PREFIX, ${process.env.GRIDDO_ASSET_PREFIX}`),Ne(`Setting the asset prefix with the domain concatenated, ${n}`),n}function Jo(e,t,r,n="jpg"){let i=typeof e=="string"?e:e?.url;return i?i.split("/")[2].includes("cloudinary.com")?D_(i,`c_fill,w_${t},h_${r}`):w_(i,`f/${n}/w/${t}/h/${r}`):null}function w_(e,t){let r=e.split("/"),n=r.slice(0,-1).join("/"),i=r.slice(-1)[0];return`${n}/${t}/${i}`}function D_(e,t){let r=e.replace("https://",""),n=r.split("/").slice(0,4).join("/"),i=r.replace(n,"");return`https://${n}/${t}${i}`}function $d(e){Ne(`read assetPrefixWithDomain, ${e}`);let{__ssg:t}=qd.paths(),r=(0,Nd.spawnSync)("yarn",["gatsby-build",process.env.GRIDDO_SSG_VERBOSE?"--verbose":""],{cwd:t,stdio:["ignore","inherit","ignore"],encoding:"utf8",shell:!0,env:Object.assign(process.env,{GRIDDO_EXPORTER:"true",SPAWN_ASSET_PREFIX_WITH_DOMAIN:e})});if(r.status!==0)throw new Error(`Error in gatsby build ${JSON.stringify(r)}`)}async function Gd(e,t){let{__cx:r,__ssg:n}=qd.paths(e),i=dt.default.join(r,"dist"),o=dt.default.join(r,"assets"),a=dt.default.join(r,"dist",e),s=dt.default.join(n,"public"),c=tt.default.readdirSync(s).filter(b=>dt.default.extname(b)===".js"||dt.default.extname(b)===".json"||dt.default.extname(b)===".css"),d=`${s}/page-data`,l=`${o}/page-data`,p=dt.default.join(n,"static"),m=o,h=`${i}/static`,_=`${o}/static`;try{tt.default.mkdirSync(o,{recursive:!0}),tt.default.copySync(s,i,{preserveTimestamps:!0}),t&&(tt.default.copySync(d,l,{preserveTimestamps:!0}),tt.default.existsSync(p)&&tt.default.copySync(p,m,{overwrite:!1,preserveTimestamps:!0}),tt.default.copySync(h,_,{overwrite:!1,preserveTimestamps:!0}),tt.default.existsSync(p)&&tt.default.copySync(p,a,{overwrite:!1,preserveTimestamps:!0}),c.map(async b=>{let w=`${s}/${b}`,I=`${o}/${b}`;tt.default.copySync(w,I,{preserveTimestamps:!0})}))}catch(b){console.error(b)}}var Pa=T(require("node:fs")),Ta=T(require("node:path"));var Ih=T(xa()),Ph=T(Mn()),Th=T(Ot());var Eh=T(require("node:crypto")),qt=T(require("node:fs")),mr=T(require("node:path")),Ra=T(Tt());var gi=ne();function bh(){let{__cx:e}=gi.paths(),t=mr.default.join(e,"apiCache");qt.default.existsSync(t)||qt.default.mkdirSync(t),console.info("Cache initialized")}function Sh(e){let{__cx:t}=gi.paths(),r=mr.default.join(t,"apiCache"),n=Eh.default.createHash("sha256");return n.update(JSON.stringify(e)),`${r}/${n.digest("hex")}`}function wh(e,t){let r=typeof t=="string"?t:JSON.stringify(t),n=Sh(e),i=mr.default.dirname(n);qt.default.existsSync(i)||qt.default.mkdirSync(i,{recursive:!0}),qt.default.writeFileSync(n,r,"utf8")}function Dh(e){try{let t=Sh(e);return Ra.default.readJSONSync(t,{encoding:"utf-8"})}catch{return null}}function tb(){let{__cx:e}=gi.paths(),r=`${mr.default.join(e,"apiCache")}/siteHash.json`;try{return Ra.default.readJSONSync(r,{encoding:"utf-8"})||{}}catch{return{}}}function Ch(e,t){let r=tb(),n=r[e],i=t||n||new Date().valueOf(),{__cx:o}=gi.paths(),s=`${mr.default.join(o,"apiCache")}/siteHash.json`;return i!==n&&(r[e]=i,qt.default.writeFileSync(s,JSON.stringify(r),{encoding:"utf-8"})),i.toString()}var xh=T(xa()),Rh=T(Mn());var Oa=class{user;password;baseUrl;headers;constructor(){this.user=X.GRIDDO_BOT_USER,this.password=X.GRIDDO_BOT_PASSWORD,this.baseUrl=X.GRIDDO_API_URL}async login(){try{let t=await(0,xh.default)({url:le.LOGIN,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(Rh.default.red(`
49
+ `;console.log(i)}var ft=P(require("node:fs")),Ne=P(require("node:path")),Hn=P(Tt());var ar=ie();function*p_(e){let{basePath:t,withSizeProp:r}=e||{},{__cx:n}=ar.paths(),i=t||Ne.default.join(n,"store"),o=bd(i).filter(a=>Ne.default.extname(a)===".json");for(let a of o)try{let s=Hn.default.readJsonSync(a,{encoding:"utf-8"});if(r){let c=ft.default.statSync(a);s.size=c.size/1024}s.path&&(yield s)}catch(s){console.error(`Error: The file ${a} doesn't exist`,s)}}async function qo(){let{__cx:e}=ar.paths(),{sitesToPublish:t,createdPages:r,buildProcessData:n}=Hn.default.readJSONSync(Ne.default.join(e,"store","metadata","render-info.json"));return{buildProcessData:n,createdPages:r,sitesToPublish:t}}function yd(){let{__cx:e}=ar.paths(),t=Ne.default.join(e,"store");ft.default.existsSync(t)||(ft.default.mkdirSync(t),ft.default.mkdirSync(Ne.default.join(t,"metadata"))),console.info("Store initialized")}function gd(e,t){let{__cx:r}=ar.paths();ft.default.writeFileSync(Ne.default.join(r,"store","metadata","render-info.json"),JSON.stringify(t))}function h_(e,t){return jo(e).filter(i=>t.includes(i))}function jo(e){return ft.default.readdirSync(e).filter(r=>{let n=`${e}/${r}`,i=ft.default.statSync(n);if(i&&i.isDirectory()||Ne.default.extname(r)!==".json")return!1;let o=Ne.default.basename(r,Ne.default.extname(r));return!isNaN(parseInt(o))}).map(r=>{let n=Ne.default.basename(r,Ne.default.extname(r));return parseInt(n)})}function vd(e){let{__cx:t}=ar.paths();e.forEach(r=>{$o(r,["editorID","parentEditorID"]);let n=`${r.context.page.id}.json`,i=Ne.default.join(t,"store",n);Hn.default.writeJSONSync(i,r)})}function Wn(e){let{__cx:t}=ar.paths();e.length!==0&&e.forEach(r=>{let n=Ne.default.join(t,"store",`${r}.json`);try{ft.default.unlinkSync(n)}catch(i){console.log(`Error removing file ${r}`,i.message)}})}async function _d(e,t){let{changedPages:r,pages:n,validPagesIds:i,sitesToPublish:o}=t,a=h_(e,n),s=i.filter(h=>!a.includes(h)),c=s.concat(r),d=a.filter(h=>!i.includes(h)),l=Array.from(new Set(c)).filter(h=>!d.includes(h)),p=p_(),m=[];for await(let h of p){let _=h.context.page.site,E=h.context.page.id;o.map(w=>w.id).includes(_)||m.push(E)}return{pagesInStore:a,pagesMissingInStore:s,pagesToDeleteFromStore:[...d,...m],pagesToWriteToStore:l}}var m_=ie(),Go=e=>{if(!Ae.default.statSync(e).isDirectory())return;let r=Ae.default.readdirSync(e);if(r.length>0){let i=r.length,o=r.filter(a=>dt.default.extname(a).toLowerCase()===".xml").length;i===o&&(r.forEach(function(a){let s=dt.default.join(e,a);Ae.default.rmSync(s)}),r=Ae.default.readdirSync(e)),r.forEach(function(a){let s=dt.default.join(e,a);Go(s)}),r=Ae.default.readdirSync(e)}if(r.length===0){Ae.default.rmdirSync(e);return}};function Ed(e,t="-BACKUP"){let r=e+t;try{Be.default.renameSync(r,e),console.log(`Backup ${r} has been restored`)}catch{console.log(`Error while delete ${r} backup`)}}function Sd(e,t="-BACKUP"){let r=e+t;if(Ae.default.existsSync(r))try{Be.default.rmSync(r,{recursive:!0,force:!0}),console.log(`Backup ${r} has been deleted`)}catch{console.log(`Error while delete ${r} backup`)}}function wd(e,t="-BACKUP"){let r=e+t;if(Ae.default.existsSync(e)){if(Ae.default.existsSync(r)){console.log(`Destination ${r} already exists`);return}try{Be.default.renameSync(e,r),console.log(`Backup of ${e} has been created in ${r}`)}catch{console.log(`Error while coping ${e} to ${r} backup`)}}}function y_(e){return Number.isInteger(e)&&e<0}async function Dd(){let{__cx:e}=m_.paths(),t=dt.default.join(e,"store");try{let r=jo(t).filter(y_);Wn(r)}catch{console.info("`store` folder does not exist. Skipping multipage or static list template cleaning.")}}function Bo(e){for(let t of e)t&&Ae.default.existsSync(t)&&(Be.default.rmSync(t,{recursive:!0,force:!0}),ne(`removed directory: ${t}`))}function Cd(e,t){for(let r of e)Be.default.existsSync(r)||(Be.default.mkdirSync(r,{recursive:!0,...t}),ne(`create directory: ${r}`))}function Uo(e,t,r,n={withBackup:!1}){let{withBackup:i}=n;for(let o of r){let a=dt.default.join(e,o),s=dt.default.join(t,o);if(!Ae.default.existsSync(a)){console.log(`(Maybe first render) Source directory does not exist: ${a}`);continue}i&&(wd(s),ne(`create backup: ${s}`));try{Ae.default.existsSync(s)&&(Be.default.rmSync(s,{recursive:!0,force:!0}),ne(`clean destination: ${s}`)),Be.default.cpSync(a,s,{recursive:!0,preserveTimestamps:!0}),ne(`copy: ${a} to ${s}`),i&&(Sd(s),ne(`delete backup: ${s}`))}catch{console.log("copy failed!"),i&&(Ed(s),console.log("Backup has been restored."))}}}function xd(e,t){Be.default.existsSync(e)&&(Be.default.renameSync(e,t),ne(`rename ${e} to ${t}`))}function sr(e,t,r,n){let{override:i,withBackup:o}=n||{};for(let a of r){let s=dt.default.join(e,a),c=dt.default.join(t,a);if(Ae.default.existsSync(s)){o&&wd(c);try{i&&Ae.default.existsSync(c)&&Be.default.rmSync(c,{recursive:!0,force:!0}),Be.default.renameSync(s,c),ne(`moved: ${s} to ${c}`),o&&Sd(c)}catch(d){throw o&&(Ed(c),console.log("Backup has been restored.")),new Error(JSON.stringify(d))}}}}var Bt=P(require("node:path")),Kr=P(Tt()),cs=P(Kd());var Ph=P(es()),Ah=P(kn());var ts=class{user;password;baseUrl;headers;constructor(){this.user=X.GRIDDO_BOT_USER,this.password=X.GRIDDO_BOT_PASSWORD,this.baseUrl=X.GRIDDO_API_URL}async login(){try{let t=await(0,Ph.default)({url:fe.LOGIN,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(Ah.default.red(`
54
50
  \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
55
51
  \u2502 Access credentials failure \u2502
56
52
  \u2502 Check that the login details are correct in your .env file \u2502
57
53
  \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
58
- `)),process.exit(1)}}},pt=new Oa;Th.default.config();var{env:{RETRY_WAIT_SECONDS:rb="4",RETRY_ATTEMPTS:Oh="4"}}=process;async function Ia(e,t,r=""){let{endpoint:n,body:i,cacheKey:o="",attempt:a=1,headers:s}=e,c={endpoint:n,body:i,headers:s,cacheKey:o};if(o){let d=new Date,l=Dh(c);if(l){let p=Wo(l),m=p?`site: ${p}`:"",h=Ho(new Date().getTime()-d.getTime());return Ft(`${t} (cache) ${m} ${n} - ${h}s ${r}`),l}}try{let d=new Date,{data:l}=await(0,Ih.default)({url:n,method:t,headers:Object.assign({},s,pt.headers),data:i}),p=Wo(l),m=p?`site: ${p}`:"",h=Ho(new Date().getTime()-d.getTime());return Ft(`${t} (fetch) ${m} ${n} - ${h}s ${r}`),wh(c,l),l}catch(d){let l=d;return l.response?.status===404?null:(a>parseInt(Oh)&&(console.log(`
59
- Max attempts ${Oh} reached
54
+ `)),process.exit(1)}}},pt=new ts;var jh=P(es()),$h=P(kn()),Gh=P(It());var Th=P(require("node:crypto")),Gt=P(require("node:fs")),mr=P(require("node:path")),rs=P(Tt());var Ri=ie();function Fh(){let{__cx:e}=Ri.paths(),t=mr.default.join(e,"apiCache");Gt.default.existsSync(t)||Gt.default.mkdirSync(t),console.info("Cache initialized")}function Lh(e){let{__cx:t}=Ri.paths(),r=mr.default.join(t,"apiCache"),n=Th.default.createHash("sha256");return n.update(JSON.stringify(e)),`${r}/${n.digest("hex")}`}function kh(e,t){let r=typeof t=="string"?t:JSON.stringify(t),n=Lh(e),i=mr.default.dirname(n);Gt.default.existsSync(i)||Gt.default.mkdirSync(i,{recursive:!0}),Gt.default.writeFileSync(n,r,"utf8")}function Nh(e){try{let t=Lh(e);return rs.default.readJSONSync(t,{encoding:"utf-8"})}catch{return null}}function qS(){let{__cx:e}=Ri.paths(),r=`${mr.default.join(e,"apiCache")}/siteHash.json`;try{return rs.default.readJSONSync(r,{encoding:"utf-8"})||{}}catch{return{}}}function Mh(e,t){let r=qS(),n=r[e],i=t||n||new Date().valueOf(),{__cx:o}=Ri.paths(),s=`${mr.default.join(o,"apiCache")}/siteHash.json`;return i!==n&&(r[e]=i,Gt.default.writeFileSync(s,JSON.stringify(r),{encoding:"utf-8"})),i.toString()}Gh.default.config();var{env:{RETRY_WAIT_SECONDS:jS="4",RETRY_ATTEMPTS:qh="4"}}=process;async function os(e,t,r=""){let{endpoint:n,body:i,cacheKey:o="",attempt:a=1,headers:s}=e,c={endpoint:n,body:i,headers:s,cacheKey:o};if(o){let d=new Date,l=Nh(c);if(l){let p=is(l),m=p?`site: ${p}`:"",h=ns(new Date().getTime()-d.getTime());return lt(`${t} (cache) ${m} ${n} - ${h}s ${r}`),l}}try{let d=new Date,{data:l}=await(0,jh.default)({url:n,method:t,headers:Object.assign({},s,pt.headers),data:i}),p=is(l),m=p?`site: ${p}`:"",h=ns(new Date().getTime()-d.getTime());return lt(`${t} (fetch) ${m} ${n} - ${h}s ${r}`),kh(c,l),l}catch(d){let l=d;return l.response?.status===404?null:(a>parseInt(qh)&&(console.log(`
55
+ Max attempts ${qh} reached
60
56
  --------------------------------------
61
57
  - ${t.toUpperCase()} ${n}
62
58
  - BODY: ${JSON.stringify(i)}
63
59
  - HEADERS: ${JSON.stringify(s)}
64
60
  - RESPONSE: ${l.response?.status,JSON.stringify(l.response?.data)}
65
61
  --------------------------------------
66
- `),process.exit(1)),l.response||(console.log("Unknown error occurred"),console.log(JSON.stringify(l,null,2)),process.exit(1)),nb(l,{callInfo:{endpoint:n,body:i}}),console.warn(`Waiting for retry: ${t}`,n),await Xo(parseInt(rb)*1e3),Ia({endpoint:n,body:i,headers:s,cacheKey:o,attempt:a+1},t,r))}}async function Me(e){return await Ia(e,"get")}async function vi(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 Ia(e,"post",i||"")}function nb(e,t){let{response:r,message:n,stack:i}=e,{callInfo:o}=t,{status:a,statusText:s,data:c}=r||{},d=[];for(let h of Object.keys(o))d.push(`${h}: ${typeof o[h]=="object"?JSON.stringify(o[h]):o[h]}`);let l=d.join(`
62
+ `),process.exit(1)),l.response||(console.log("Unknown error occurred"),console.log(JSON.stringify(l,null,2)),process.exit(1)),$S(l,{callInfo:{endpoint:n,body:i}}),console.warn(`Waiting for retry: ${t}`,n),await as(parseInt(jS)*1e3),os({endpoint:n,body:i,headers:s,cacheKey:o,attempt:a+1},t,r))}}async function je(e){return await os(e,"get")}async function Oi(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 os(e,"post",i||"")}function $S(e,t){let{response:r,message:n,stack:i}=e,{callInfo:o}=t,{status:a,statusText:s,data:c}=r||{},d=[];for(let h of Object.keys(o))d.push(`${h}: ${typeof o[h]=="object"?JSON.stringify(o[h]):o[h]}`);let l=d.join(`
67
63
  `),p=r?`Code: ${a} - ${s}
68
64
  Response: ${JSON.stringify(c)}`:"",m=`${n}
69
- ${i}`;console.warn(Ph.default.bold.red(`
65
+ ${i}`;console.warn($h.default.bold.red(`
70
66
  =============
71
67
 
72
68
  { Call info }
@@ -79,14 +75,18 @@ ${p}
79
75
  ${m}
80
76
 
81
77
  =============
82
- `))}var ib=ne(),Aa=class{robots;baseURL;settings;endpoint;constructor(){this.robots=[],this.settings={},this.endpoint=le.ROBOTS}async getRobots(){try{let t=await Me({endpoint:this.endpoint});this.robots=t?.filter(r=>!!r.path).map(({path:r,content:n})=>({path:r,content:n||`User-agent: *
78
+ `))}async function Bh(){return await je({endpoint:fe.GET_ALL})}async function Uh(e,t){return await je({endpoint:`${fe.GET_PAGE}/${e}`,cacheKey:t})}async function Xh(e,t=""){let[r,n]=fe.INFO;return await je({endpoint:`${r}${e}${n}`,cacheKey:t})}async function ss(e,t=""){let[r,n]=fe.LANGUAGES;return await je({endpoint:`${r}${e}${n}`,cacheKey:t})}async function us(e){let[t,r]=fe.BUILD_START;return await je({endpoint:`${t}${e}${r}`})}async function Hh(e,t){let[r,n]=fe.BUILD_END;return await Oi({endpoint:`${r}${e}${n}`,body:t})}async function Wh(e,t,r,n,i){let[o,a]=fe.GET_REFERENCE_FIELD_DATA,s=n||e.site,c=i||e.language;return await Oi({endpoint:`${o}${s}${a}`,body:t,headers:{lang:c},cacheKey:r})}async function Yh(e){let[t,r]=fe.GET_SITEMAP;return await je({endpoint:`${t}${e}${r}`})}async function Vh(e,t=""){let[r,n]=fe.SOCIALS;return await je({endpoint:`${r}${e}${n}`,cacheKey:t})}var Jh=ie();async function Kh(e){console.info(`API URL ${X.GRIDDO_API_URL}`),await pt.login();let t=await Bh(),r=X.GRIDDO_RENDER_ALL_SITES?t.filter(o=>!X.GRIDDO_RENDER_SITE||o.id===X.GRIDDO_RENDER_SITE):t.filter(o=>X.GRIDDO_RENDER_SITE?o.id===X.GRIDDO_RENDER_SITE:!!o.shouldBeUpdated);if(r.length)for(let o of r){let{items:a}=await ss(o.id);o.domains=a.filter(s=>s.domain&&(s.domain.slug===e||s.domain.slug===`/${e}`)).map(s=>({[s.id]:`${s.domain.slug}${s.path}`}))}let n=r.filter(o=>X.GRIDDO_RENDER_SITE?o.id===X.GRIDDO_RENDER_SITE:!!o.isPublished&&o.domains.length>0),i=r.filter(o=>!o.isPublished&&o.shouldBeUpdated);return{sitesToPublish:n,sitesToUnpublish:i}}async function Qh(e){for(let t of e){let r=await us(t.id),{siteHash:n}=r,i={siteHash:n,publishHashes:[],unpublishHashes:[]};await Hh(t.id,i)}}async function Zh(e){let t=await us(e),r=await Xh(e),n=await ss(e),i=await Vh(e),o=n.items,a=o.find(_=>_.isDefault),{siteHash:s,unpublishHashes:c,publishIds:d}=t,{headers:l,footers:p}=r,m=X.GRIDDO_RENDER_PAGES.length?X.GRIDDO_RENDER_PAGES.filter(_=>d.includes(_)):d;return{siteInfo:r,validPagesIds:m,siteHash:s,unpublishHashes:c,siteLangs:o,defaultLang:a,headers:l,footers:p,socials:i}}async function em(){let{__cx:e}=Jh.paths(),{buildProcessData:t}=await qo(),r=await pt.login(),n=Object.keys(t).map(o=>({...t[o],siteId:parseInt(o)})),i={authControl:r,sites:n};Kr.default.writeFileSync(Bt.default.join(e,"dist","__build-report__.json"),JSON.stringify(i)),lt(`Build report saved for ${n.length} site(s)`)}async function tm(){let{sitesToPublish:e}=await qo(),{__cx:t}=Jh.paths(),r=Bt.default.join(t,"dist");for(let n of e){let{id:i,languages:o}=n;for(let a of o){pt.headers&&(pt.headers.lang=a.id.toString());let s=await Yh(i);if(!s)continue;let{items:c,url:{home:d,domain:l}}=s;if(!d)continue;let p=n.domains.find(F=>Object.keys(F)[0]==a.id.toString());if(!p)continue;let m=Object.values(p)[0],h=[],_=Object.keys(c),E=Bt.default.join(r,m.replace(l,""));for(let F of _){let A=c[F];if(!A.length)continue;let L=(0,cs.parse)("urlset",{"@":{xmlns:"http://www.sitemaps.org/schemas/sitemap/0.9","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation":"http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"},url:A}),K=`/sitemap-${F.toLowerCase()}.xml`,ue=Bt.default.join(E,K);zh(ue,L),h.push(`${d.endsWith("/")?d.slice(0,-1):d}${K}`)}if(!h.length)continue;let w=(0,cs.parse)("sitemapindex",{"@":{xmlns:"http://www.sitemaps.org/schemas/sitemap/0.9"},sitemap:h.map(F=>({loc:F}))}),I=Bt.default.join(E,"sitemap.xml");zh(I,w)}}}function zh(e,t){try{let r=Bt.default.dirname(e);Kr.default.existsSync(r)||Kr.default.mkdirSync(r,{recursive:!0}),Kr.default.writeFileSync(e,t)}catch(r){console.error(`Error saving file: ${r}`)}}var ls=P(require("node:fs")),fs=P(require("node:path"));var GS=ie();async function BS(){try{return(await je({endpoint:fe.ROBOTS}))?.filter(t=>!!t.path).map(({path:t,content:r})=>({path:t,content:r||`User-agent: *
83
79
  \r
84
- \rAllow: /`}))||[]}catch(t){console.warn(`${this.constructor.name}: ${t.message}`)}}async writeFiles(t){let{__cx:r}=ib.paths(t),n=Ta.default.join(r,"dist");await this.getRobots();let i=this.robots.find(({path:o})=>o===`/${t}`);if(!i){console.log(`Robots not found for ${t}`);return}if(Pa.default.existsSync(n)){let o=Ta.default.join(n,"robots.txt");Pa.default.writeFileSync(o,i?.content)}else console.log(`${n} not found`)}},Ah=new Aa;var Om=T(require("node:path")),Im=T(Ot()),Pm=T(Co());async function Fh(){return await Me({endpoint:le.GET_ALL})}async function Lh(e,t){return await Me({endpoint:`${le.GET_PAGE}/${e}`,cacheKey:t})}async function kh(e,t=""){let[r,n]=le.INFO;return await Me({endpoint:`${r}${e}${n}`,cacheKey:t})}async function Fa(e,t=""){let[r,n]=le.LANGUAGES;return await Me({endpoint:`${r}${e}${n}`,cacheKey:t})}async function La(e){let[t,r]=le.BUILD_START;return await Me({endpoint:`${t}${e}${r}`})}async function Nh(e,t){let[r,n]=le.BUILD_END;return await vi({endpoint:`${r}${e}${n}`,body:t})}async function Mh(e,t,r,n,i){let[o,a]=le.GET_REFERENCE_FIELD_DATA,s=n||e.site,c=i||e.language;return await vi({endpoint:`${o}${s}${a}`,body:t,headers:{lang:c},cacheKey:r})}async function qh(e){let[t,r]=le.GET_SITEMAP;return await Me({endpoint:`${t}${e}${r}`})}async function jh(e,t=""){let[r,n]=le.SOCIALS;return await Me({endpoint:`${r}${e}${n}`,cacheKey:t})}var _i=class{static getBody(t,r){let{order:n,sources:i,quantity:o,mode:a,fixed:s,fullRelations:c=!1,allLanguages:d=!1,preferenceLanguage:l=!1,referenceId:p}=t;return a==="auto"?{mode:a,order:n,sources:i,quantity:o,fullRelations:c,allLanguages:d,preferenceLanguage:l}:a==="manual"?{mode:a,fixed:s,fullRelations:c}:a==="navigation"?{mode:a,order:n,quantity:o,fullRelations:c,referenceId:p||r?.structuredDataContent?.id}:(console.log(`Error: Distribuidor mode: ${a} is not recognized on page ${r?.id}.`),t)}static async fetchContentTypeData(t){let{page:r,component:{data:n},cacheKey:i}=t;if(!n)return We(`Error: Page ${r.id} has \`hasDistributorData: true\` but it doesn't have a \`data\` prop`,"No data in ReferenceField"),[];if(Array.isArray(n.sources)&&n.sources.length<1)return We(`Warning: Page with id: ${r.id} has a ReferenceField with empty \`data.sources\``,"Empty data.sources in ReferenceField"),[];let{site:o,lang:a}=n;!n.sources&&n.mode==="auto"&&We(`Warning: Page with id: ${r.id} has a ReferenceField with \`undefined\` \`data.sources\``,"undefined data.sources in ReferenceField");let s=this.getBody(n,r);return await Mh(r,s,i,o,a)}static async getDistributorData({page:t,cacheKey:r=""}){try{let{template:n}=t,i=async(s,c=1)=>{if(!(!s||typeof s!="object")&&JSON.stringify(s).includes('"hasDistributorData":true'))for(let d in s){if(d==="queriedItems")continue;let p=s[d];!p||typeof p!="object"||(p.hasDistributorData&&(p.queriedItems=await this.fetchContentTypeData({page:t,cacheKey:r,component:p})),await i(p,c+1))}};return await(async s=>(await i([s]),s))(n)}catch(n){console.error(`Error en get distributor ${n}`),process.exit(1)}}};var Ei=class{_defaultHeaders;_defaultFooters;_navigations;constructor(){this._navigations={footers:[],headers:[]},this._defaultHeaders={},this._defaultFooters={}}set navigations(t){this._navigations=t,this._defaultFooters=this.getDefaultFooters(),this._defaultHeaders=this.getDefaultHeaders()}get navigations(){return this._navigations}getDefaultFooters(){return[...this.navigations.footers].filter(i=>!!i.setAsDefault).reduce((i,o)=>{let{language:a}=o;return{...i,[a]:o}},{})}getDefaultHeaders(){return[...this.navigations.headers].filter(i=>!!i.setAsDefault).reduce((i,o)=>{let{language:a}=o;return{...i,[a]:o}},{})}getRightLanguage(t,r,n){if(!t||!r)return null;let o=t.find(a=>a.language===n&&a.navigationLanguages?.find(s=>s.navigationId===r))||t.find(a=>a.id===r);return o?{...o}:null}getPageHeader(t,r){return this.getRightLanguage(this.navigations.headers,t,r)}getPageFooter(t,r){return this.getRightLanguage(this.navigations.footers,t,r)}getPageNavigations(t){let{header:r,footer:n,language:i,template:{templateType:o},templateConfig:{defaultHeader:a,defaultFooter:s,templates:c}}=t,d=_=>{let b=_.find(w=>typeof w=="number");return typeof b=="number"?b:null},l=d([r,c?.[o]?.defaultHeader,a]),p=d([n,c?.[o]?.defaultFooter,s]),m=l?this.getPageHeader(l,i):l===0?null:this._defaultHeaders[i],h=p?this.getPageFooter(p,i):p===0?null:this._defaultFooters[i];return{header:m,footer:h}}};async function $h(){return await Me({endpoint:le.SETTINGS})}var Uh=T(Ot());Uh.default.config();var ob=25;function ab({socialTitle:e,socialDescription:t,socialImage:r}){return{type:"website",title:e,description:t,image:r?Jo(r,1280,768):"",twitterImage:r?Jo(r,1280,768):""}}function sb(e){let{title:t,metaTitle:r,metaDescription:n,canonicalURL:i,locale:o,url:a,isIndexed:s,follow:c,metasAdvanced:d,pageLanguages:l,fullUrl:p,metaKeywords:m}=e,h=d?.split(",").filter(Boolean).map(_=>_.trim().toLowerCase())||[];return{title:(r||t||"").trim(),description:n,canonical:i&&i.trim()&&i!==p?i.trim():s?p:void 0,locale:o,url:a,index:s?"index":"noindex",follow:c?"follow":"nofollow",translate:h.includes("notranslate")?"notranslate":"",metasAdvanced:h.filter(_=>_!=="notranslate").join(),pageLanguages:l,metaKeywords:m?.filter(Boolean).map(_=>_.replace(/"/g,"'")).join(", ")}}async function Na(e,t){let{id:r,title:n,fullPath:i,language:o,breadcrumb:a,socialDescription:s,socialImage:c,socialTitle:d}=e,{baseUrl:l,cloudinaryName:p,griddoVersion:m,siteLangs:h,siteMetadata:_,siteOptions:b,siteScript:w,siteSlug:I,socials:F,theme:P,navigations:{header:L,footer:K}}=t;e.breadcrumb=a,e.siteSlug=I,e.apiUrl=l,e.publicApiUrl=t.publicBaseUrl,e.instance=t.instance;let $e=h.find(({id:U})=>U===e?.language)?.locale.replace(/_/g,"-"),ce=sb(e),x=ab({socialDescription:s,socialImage:c,socialTitle:d}),q=i.compose,M=new Date().toString();return{path:q,size:void 0,context:{id:r,title:n,fullPath:i,locale:$e,languageId:o,theme:P,siteMetadata:_,pageMetadata:ce,openGraph:x,socials:F,siteLangs:h,cloudinaryName:p,siteOptions:b,griddoVersion:m,renderDate:M,siteScript:w,header:L,footer:K,page:e}}}async function Xh(e,t){return await Na(e,t)}async function Hh({page:e,pages:t,isRoot:r=!1,defaultLang:n,template:i,totalQueriedItems:o},a){let s=t.map(async(c,d)=>{let l=d===0,p=d+1,{domainUrl:m,compose:h}=e.fullPath,_={...e,id:parseInt("-"+e.id+d),fullPath:{...e.fullPath,compose:ka(h,p,{addEndingSlash:!0})},fullUrl:ka(e.fullUrl,p,{addEndingSlash:!0}),slug:ka(e.slug,p),title:Bh(e.title,p),metaTitle:Bh(e.metaTitle||"",p),disableHrefLangs:p>1,template:{...i,isFirstPage:l,pageNumber:p,totalPages:t.length,baseLink:`${m}${h}`,queriedItems:c,totalQueriedItems:o?.length},isRoot:r,defaultLang:n};return await Na(_,a)});return Promise.all(s)}function Wh(e,t){let{multiPageElements:r,...n}=e,i=JSON.parse(JSON.stringify(r));i.find(({sectionSlug:a})=>a==="/")||i.push({});let o=i.map(async(a,s)=>{let c=JSON.parse(JSON.stringify(n)),{sectionSlug:d="/",title:l="",metaTitle:p="",metaDescription:m=""}=a,h=typeof l=="string"?l:l.content,_=c.fullPath.compose||"",b=c.fullUrl.endsWith("/")?c.fullUrl.slice(0,-1):c.fullUrl,w=d?.replace(/\//g,""),F=d==="/"?w:w+"/",P=_.endsWith("/")?"":"/",L=`${_}${P}${F}`;return h.trim()&&(c.title=h),m.trim()&&(c.metaDescription=m),c.id=parseInt("-"+c.id+s),c.fullUrl=`${b}/${F}`,c.fullPath.compose=L,c.slug=L,c.template.activeSectionSlug=d,c.template.activeSectionBase=b,c.metaTitle=p.trim()||h.trim()||c.metaTitle,await Na(c,t)});return Promise.all(o)}function Yh(e){return new Promise(r=>{let n=(i,o=0)=>{if(!(!i||typeof i!="object")){for(let a in i){let s=i[a],c=s||typeof s=="object",d=JSON.stringify(s).includes('"hasGriddoMultiPage":true');if(!c||!d)continue;let{component:l,hasGriddoMultiPage:p,elements:m}=s;l&&p&&r(m||[]),n(s,o+1)}o||r(null)}};n([e])})}function ub(e,t,r){return t?.slice(e*(r-1),e*r)}function cb(e,t){let r=Math.ceil(t.length/e)||1;return Array.from({length:r},(i,o)=>o+1)?.map(i=>ub(e,t,i))}function Vh(e){let t=e.queriedItems||[],r=e?.itemsPerPage||ob;return cb(r,t)}function Gh(e){return e.replace(/\/+$/,"/")}function ka(e,t,r){let n=e.endsWith("/")?"":"/",i=r?.addEndingSlash?"/":"";return t<=1?Gh(`${e}${i}`):Gh(`${e}${n}${t}${i}`)}function Bh(e,t){return!e||t<=1?e:`${e} - ${t}`}var Bt=T(require("node:path")),Zr=T(Tt()),vs=T(_m());var bm=ne();async function Sm(e){console.info(`API URL ${X.GRIDDO_API_URL}`),await pt.login();let t=await Fh(),r=X.GRIDDO_RENDER_ALL_SITES?t.filter(o=>!X.GRIDDO_RENDER_SITE||o.id===X.GRIDDO_RENDER_SITE):t.filter(o=>X.GRIDDO_RENDER_SITE?o.id===X.GRIDDO_RENDER_SITE:!!o.shouldBeUpdated);if(r.length)for(let o of r){let{items:a}=await Fa(o.id);o.domains=a.filter(s=>s.domain&&(s.domain.slug===e||s.domain.slug===`/${e}`)).map(s=>({[s.id]:`${s.domain.slug}${s.path}`}))}let n=r.filter(o=>X.GRIDDO_RENDER_SITE?o.id===X.GRIDDO_RENDER_SITE:!!o.isPublished&&o.domains.length>0),i=r.filter(o=>!o.isPublished&&o.shouldBeUpdated);return{sitesToPublish:n,sitesToUnpublish:i}}async function wm(e){for(let t of e){let r=await La(t.id),{siteHash:n}=r,i={siteHash:n,publishHashes:[],unpublishHashes:[]};await Nh(t.id,i)}}async function Dm(e){let t=await La(e),r=await kh(e),n=await Fa(e),i=await jh(e),o=n.items,a=o.find(_=>_.isDefault),{siteHash:s,unpublishHashes:c,publishIds:d}=t,{headers:l,footers:p}=r,m=X.GRIDDO_RENDER_PAGES.length?X.GRIDDO_RENDER_PAGES.filter(_=>d.includes(_)):d;return{siteInfo:r,validPagesIds:m,siteHash:s,unpublishHashes:c,siteLangs:o,defaultLang:a,headers:l,footers:p,socials:i}}async function Cm(){let{__cx:e}=bm.paths(),{buildProcessData:t}=await To(),r=await pt.login(),n=Object.keys(t).map(o=>({...t[o],siteId:parseInt(o)})),i={authControl:r,sites:n};Zr.default.writeFileSync(Bt.default.join(e,"dist","__build-report__.json"),JSON.stringify(i)),Ft(`Build report saved for ${n.length} site(s)`)}async function xm(){let{sitesToPublish:e}=await To(),{__cx:t}=bm.paths(),r=Bt.default.join(t,"dist");for(let n of e){let{id:i,languages:o}=n;for(let a of o){pt.headers&&(pt.headers.lang=a.id.toString());let s=await qh(i);if(!s)continue;let{items:c,url:{home:d,domain:l}}=s;if(!d)continue;let p=n.domains.find(F=>Object.keys(F)[0]==a.id.toString());if(!p)continue;let m=Object.values(p)[0],h=[],_=Object.keys(c),b=Bt.default.join(r,m.replace(l,""));for(let F of _){let P=c[F];if(!P.length)continue;let L=(0,vs.parse)("urlset",{"@":{xmlns:"http://www.sitemaps.org/schemas/sitemap/0.9","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation":"http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"},url:P}),K=`/sitemap-${F.toLowerCase()}.xml`,se=Bt.default.join(b,K);Em(se,L),h.push(`${d.endsWith("/")?d.slice(0,-1):d}${K}`)}if(!h.length)continue;let w=(0,vs.parse)("sitemapindex",{"@":{xmlns:"http://www.sitemaps.org/schemas/sitemap/0.9"},sitemap:h.map(F=>({loc:F}))}),I=Bt.default.join(b,"sitemap.xml");Em(I,w)}}}function Em(e,t){try{let r=Bt.default.dirname(e);Zr.default.existsSync(r)||Zr.default.mkdirSync(r,{recursive:!0}),Zr.default.writeFileSync(e,t)}catch(r){console.error(`Error saving file: ${r}`)}}var Rm=ne();Im.default.config();var tw=new Date().valueOf().toString();async function Tm(e){sf(),console.info(`API calls with ${X.GRIDDO_API_CONCURRENCY_COUNT} threads`);let{__cx:t}=Rm.paths(),{griddoVersion:r}=Rm,n=Om.default.join(t,"store");try{let i=[],o={},{sitesToPublish:a,sitesToUnpublish:s}=await Sm(e);a.length||s.length||(console.warn("There are no sites to update"),process.exit(0)),console.info(`Sites to publish: ${Yo(a)}`),console.info(`Sites to unpublish: ${Yo(s)}`),await wm(s);for(let c of a){let{id:d,slug:l,theme:p,favicon:m,changedPages:h=[],pages:_=[]}=c,{siteInfo:b,validPagesIds:w,siteHash:I,unpublishHashes:F,siteLangs:P,defaultLang:L,headers:K,footers:se,socials:$e}=await Dm(d),{cloudinaryName:ce,useMetaTitle:x,useMetaKeywords:q,showBasicMetaRobots:M,avoidHrefLangsOnCanonicals:Q,avoidSelfReferenceCanonicals:U,avoidHrefLangXDefault:W,avoidDebugMetas:S}=await $h();o[d]={siteHash:I,unpublishHashes:F,publishHashes:[]};let H=new Ei;H.navigations={headers:K,footers:se},c.languages=P;let k=Ch(d,I),R=b.siteScript,j={siteUrl:b.slug,title:b.name,favicon:m},he={baseUrl:X.GRIDDO_API_URL,publicBaseUrl:X.GRIDDO_PUBLIC_API_URL,instance:X.GRIDDO_REACT_APP_INSTANCE,siteSlug:l,theme:p,siteMetadata:j,socials:$e,siteLangs:P,cloudinaryName:ce,griddoVersion:r,siteOptions:{useMetaTitle:x,useMetaKeywords:q,showBasicMetaRobots:M,avoidHrefLangsOnCanonicals:Q,avoidSelfReferenceCanonicals:U,avoidHrefLangXDefault:W,avoidDebugMetas:S},siteScript:R};Ft(`${c.name} site`);let it=async ht=>{let mt=[],ze=await Lh(ht,k);if(!ze)return;i.push(ht);let Ut=JSON.parse(JSON.stringify(he));Ut.navigations=H.getPageNavigations(ze);let Je=await _i.getDistributorData({page:ze,cacheKey:tw}),rn=await Yh(Je),vr=ze?.mode==="list",_r=!vr&&rn,Xt=!_r&&!vr;if(vr){let He={page:ze,pages:Vh(Je),isRoot:!1,defaultLang:L,template:Je,totalQueriedItems:Je.queriedItems};mt=await Hh(He,Ut)}if(_r){let He=ze;He.template=Je,He.multiPageElements=rn,He.defaultLang=L,mt=await Wh(He,Ut)}if(Xt){let He=ze;He.template=Je,He.defaultLang=L,mt=[await Xh(He,Ut)]}ze.hash!==null&&o[d].publishHashes.push(ze.hash),cf(mt)},{pagesMissingInStore:Xe,pagesToDeleteFromStore:ct,pagesToWriteToStore:Rt}=await lf(n,{sitesToPublish:a,pages:_,validPagesIds:w,changedPages:h});Un(ct),Ne(`Store site: ${c.name}`),Ne(`${w.length} valid pages from API`),Ne(`changed ${h.length} pages from API`),Ne(`deleted ${ct.length} pages from store`),Ne(`missing ${Xe.length} pages in store`),Ne(`write ${Rt.length} pages to store`);let Ee=(0,Pm.default)(X.GRIDDO_API_CONCURRENCY_COUNT),tn=Rt.map(ht=>Ee(()=>it(ht)));await Promise.all(tn)}uf(n,{buildProcessData:o,createdPages:i,sitesToPublish:a})}catch(i){console.error(i.message),process.exit(1)}}async function Am(e){bh(),await Tm(e),kd()}var Es=T(require("node:fs")),bs=T(require("node:path"));var _s=class extends Error{constructor(){super(),this.name="InternalCXError",this.stack=""}};function qi({error:e,message:t,expected:r="",hint:n=""}){let i=[t,r,n].filter(Boolean).join(`
85
- `);throw We(i,e,1,0),new _s}var Fm={id:100,error:"NoDomainsFoundError",message:"No domains found in this instance. The process cannot continue.",expected:"This can happen if the API is not functioning or the site is not properly configured, or the domains are not registered.",hint:"You can contact the instance administrator."},Lm={id:101,error:"RenderUUIDError",message:`Render sentinel file does not exist.
80
+ \rAllow: /`}))||[]}catch(e){console.warn(`Robots: ${e.message}`)}}async function rm(e){let{__cx:t}=GS.paths(e),r=fs.default.join(t,"dist"),n=await BS();if(!n){console.log(`Robots not found for ${e}`);return}let i=n.find(({path:o})=>o===`/${e}`);if(!i){console.log(`Robots not found for ${e}`);return}if(ls.default.existsSync(r)){let o=fs.default.join(r,"robots.txt");ls.default.writeFileSync(o,i?.content)}else console.log(`${r} not found`)}cm.default.config();var QS=ie(),SC=lm.default.sync();function ie(){try{return(sm(),Qy(am)).default}catch{console.log("Error while reading configuration file"),process.exit(1)}}function it(e){if(typeof e=="boolean")return e;if(e==null)return!1;if(e.toLowerCase()==="true")return!0;if(e.toLowerCase()==="false")return!1;if(e.toLowerCase()==="on")return!0;if(e.toLowerCase()==="off")return!1;let t=parseInt(e,10);return isNaN(t)?!1:t>0}function bd(e){let t=[];return gr.default.readdirSync(e).forEach(n=>{let i=`${e}/${n}`;t.push(i)}),t}function as(e){return new Promise(t=>setTimeout(t,e))}function ns(e,t=3){return(e/1e3).toFixed(t)}function is(e){if(typeof e!="string")return"site"in e&&e.site?e?.site:void 0}function $o(e,t){for(let r in e)t.includes(r)?delete e[r]:typeof e[r]=="object"&&$o(e[r],t)}function ms(e){return e.map(({name:t,id:r})=>`${t} (${r})`).join(", ")}function fm(){let{__cx:e}=QS.paths(),t=um.default.join(e,"apiCache"),r=gr.default.readdirSync(t),n={},i=r.filter(a=>{let s=`${t}/${a}`,c=Ai.default.readJSONSync(s,"utf-8"),{id:d,entity:l,fullUrl:p}=c;return!!(d&&l&&p)});for(let a of i){let s=`${t}/${a}`,c=Ai.default.readJSONSync(s,"utf-8"),d=gr.default.statSync(s).mtimeMs,{id:l}=c;(!n[l]||d>gr.default.statSync(`${t}/${n[l]}`).mtimeMs)&&(n[l]=a)}let o=0;for(let a of i){let s=`${t}/${a}`,c=Ai.default.readJSONSync(s,"utf-8"),{id:d}=c;a!==n[d]&&(gr.default.unlinkSync(s),o++)}console.log(`Sanitize apiCache dir for ${o} files`)}async function ys(e,t=0){let r=process.hrtime();for(let a of e)await a(),t>0&&await as(t);let[n,i]=process.hrtime(r);return+(n+i/1e9).toFixed(3)}function ZS(e){if(JSON.parse(process.env.GRIDDO_RENDER_BREAKPOINTS_FEATURE||"false"))return new Promise(r=>{console.log(`
81
+ `),ot(`\u231B\uFE0F ${e}`,"",1,0),process.stdin.once("data",()=>{r()})})}async function tt(e,t){let{steps:r,bypass:n,delay:i}=t;if(n)return;let o={Archive:X.GRIDDO_ARCHIVE_LIFECYCLE_MAX_ATTEMPTS,Data:X.GRIDDO_DATA_LIFECYCLE_MAX_ATTEMPTS,Meta:X.GRIDDO_META_LIFECYCLE_MAX_ATTEMPTS,Relocation:X.GRIDDO_RELOCATION_LIFECYCLE_MAX_ATTEMPTS,Clean:X.GRIDDO_CLEAN_LIFECYCLE_MAX_ATTEMPTS,Restore:X.GRIDDO_RESTORE_LIFECYCLE_MAX_ATTEMPTS,Prepare:X.GRIDDO_PREPARE_LIFECYCLE_MAX_ATTEMPTS,Close:X.GRIDDO_CLOSE_LIFECYCLE_MAX_ATTEMPTS,SSG:X.GRIDDO_SSG_LIFECYCLE_MAX_ATTEMPTS,HealthCheck:1,__DEBUG__:1},a=0,s=o[e]||1;for(;a<s;)try{console.info(`
82
+ ${Qr.default.blue("info")} start ${e} life-cycle`);let c=await ys(r,i);console.info(`${Qr.default.green("success")} ${e} - ${c}s`),await ZS(`${e} LifeCycle`);break}catch(c){let d=Qr.default.bgRed.black(` Error in ${e} LifeCycle `),l=Qr.default.yellow(`Attempt (${a+1})`);console.log(`
83
+ ${d} ${l}
84
+ `),console.log(c),console.log(),a++}if(a===s)throw new Error(`Exceeded maximum retry attempts (${s}) for ${e} LifeCycle`)}async function dm(e){await em(),await tm(),await rm(e)}hm.default.config();var mm=ie();function ym(e){let{proDomain:t}=ie(),r=process.env.GRIDDO_ASSET_PREFIX||process.env.ASSET_PREFIX;if(!r||!e||!e.startsWith(t))return"";let n=`${r}/${e}`;return ne(`Reading env.GRIDDO_ASSET_PREFIX, ${process.env.GRIDDO_ASSET_PREFIX}`),ne(`Setting the asset prefix with the domain concatenated, ${n}`),n}function gs(e,t,r,n="jpg"){let i=typeof e=="string"?e:e?.url;return i?i.split("/")[2].includes("cloudinary.com")?tw(i,`c_fill,w_${t},h_${r}`):ew(i,`f/${n}/w/${t}/h/${r}`):null}function ew(e,t){let r=e.split("/"),n=r.slice(0,-1).join("/"),i=r.slice(-1)[0];return`${n}/${t}/${i}`}function tw(e,t){let r=e.replace("https://",""),n=r.split("/").slice(0,4).join("/"),i=r.replace(n,"");return`https://${n}/${t}${i}`}function gm(e){ne(`read assetPrefixWithDomain, ${e}`);let{__ssg:t}=mm.paths(),r=(0,pm.spawnSync)("yarn",["gatsby-build",process.env.GRIDDO_SSG_VERBOSE?"--verbose":""],{cwd:t,stdio:["ignore","inherit","ignore"],encoding:"utf8",shell:!0,env:Object.assign(process.env,{GRIDDO_EXPORTER:"true",SPAWN_ASSET_PREFIX_WITH_DOMAIN:e})});if(r.status!==0)throw new Error(`Error in gatsby build ${JSON.stringify(r)}`)}async function vm(e,t){let{__cx:r,__ssg:n}=mm.paths(e),i=ht.default.join(r,"dist"),o=ht.default.join(r,"assets"),a=ht.default.join(r,"dist",e),s=ht.default.join(n,"public"),c=rt.default.readdirSync(s).filter(E=>ht.default.extname(E)===".js"||ht.default.extname(E)===".json"||ht.default.extname(E)===".css"),d=`${s}/page-data`,l=`${o}/page-data`,p=ht.default.join(n,"static"),m=o,h=`${i}/static`,_=`${o}/static`;try{rt.default.mkdirSync(o,{recursive:!0}),rt.default.copySync(s,i,{preserveTimestamps:!0}),t&&(rt.default.copySync(d,l,{preserveTimestamps:!0}),rt.default.existsSync(p)&&rt.default.copySync(p,m,{overwrite:!1,preserveTimestamps:!0}),rt.default.copySync(h,_,{overwrite:!1,preserveTimestamps:!0}),rt.default.existsSync(p)&&rt.default.copySync(p,a,{overwrite:!1,preserveTimestamps:!0}),c.map(async E=>{let w=`${s}/${E}`,I=`${o}/${E}`;rt.default.copySync(w,I,{preserveTimestamps:!0})}))}catch(E){console.error(E)}}var Ti=P(require("node:path"));function rw(e){let{__cx:t,__exports:r,__caches:n}=e;return{initials:[r,n],disposables:[Ti.default.join(t,"store"),Ti.default.join(t,"apiCache"),Ti.default.join(t,"dist")],cacheables:["apiCache","store"],archivables:["dist","assets"]}}var _m=rw;var Fi=P(require("node:path"));function nw(e){let{__ssg:t}=e;return{disposables:[Fi.default.join(t,"public"),Fi.default.join(t,"static"),Fi.default.join(t,".cache")],cacheables:[".cache"],initials:[],archivables:[]}}var bm=nw;function Em(e,t){let{cxPaths:r}=t,n={gatsby:bm(r)};return{cx:_m(r),ssg:n[e]}}var Tm=P(require("node:path")),Fm=P(It()),Lm=P(xo());var Li=class{static getBody(t,r){let{order:n,sources:i,quantity:o,mode:a,fixed:s,fullRelations:c=!1,allLanguages:d=!1,preferenceLanguage:l=!1,referenceId:p}=t;return a==="auto"?{mode:a,order:n,sources:i,quantity:o,fullRelations:c,allLanguages:d,preferenceLanguage:l}:a==="manual"?{mode:a,fixed:s,fullRelations:c}:a==="navigation"?{mode:a,order:n,quantity:o,fullRelations:c,referenceId:p||r?.structuredDataContent?.id}:(console.log(`Error: Distribuidor mode: ${a} is not recognized on page ${r?.id}.`),t)}static async fetchContentTypeData(t){let{page:r,component:{data:n},cacheKey:i}=t;if(!n)return ot(`Error: Page ${r.id} has \`hasDistributorData: true\` but it doesn't have a \`data\` prop`,"No data in ReferenceField"),[];if(Array.isArray(n.sources)&&n.sources.length<1)return ot(`Warning: Page with id: ${r.id} has a ReferenceField with empty \`data.sources\``,"Empty data.sources in ReferenceField"),[];let{site:o,lang:a}=n;!n.sources&&n.mode==="auto"&&ot(`Warning: Page with id: ${r.id} has a ReferenceField with \`undefined\` \`data.sources\``,"undefined data.sources in ReferenceField");let s=this.getBody(n,r);return await Wh(r,s,i,o,a)}static async getDistributorData({page:t,cacheKey:r=""}){try{let{template:n}=t,i=async(s,c=1)=>{if(!(!s||typeof s!="object")&&JSON.stringify(s).includes('"hasDistributorData":true'))for(let d in s){if(d==="queriedItems")continue;let p=s[d];!p||typeof p!="object"||(p.hasDistributorData&&(p.queriedItems=await this.fetchContentTypeData({page:t,cacheKey:r,component:p})),await i(p,c+1))}};return await(async s=>(await i([s]),s))(n)}catch(n){console.error(`Error en get distributor ${n}`),process.exit(1)}}};var ki=class{_defaultHeaders;_defaultFooters;_navigations;constructor(){this._navigations={footers:[],headers:[]},this._defaultHeaders={},this._defaultFooters={}}set navigations(t){this._navigations=t,this._defaultFooters=this.getDefaultFooters(),this._defaultHeaders=this.getDefaultHeaders()}get navigations(){return this._navigations}getDefaultFooters(){return[...this.navigations.footers].filter(i=>!!i.setAsDefault).reduce((i,o)=>{let{language:a}=o;return{...i,[a]:o}},{})}getDefaultHeaders(){return[...this.navigations.headers].filter(i=>!!i.setAsDefault).reduce((i,o)=>{let{language:a}=o;return{...i,[a]:o}},{})}getRightLanguage(t,r,n){if(!t||!r)return null;let o=t.find(a=>a.language===n&&a.navigationLanguages?.find(s=>s.navigationId===r))||t.find(a=>a.id===r);return o?{...o}:null}getPageHeader(t,r){return this.getRightLanguage(this.navigations.headers,t,r)}getPageFooter(t,r){return this.getRightLanguage(this.navigations.footers,t,r)}getPageNavigations(t){let{header:r,footer:n,language:i,template:{templateType:o},templateConfig:{defaultHeader:a,defaultFooter:s,templates:c}}=t,d=_=>{let E=_.find(w=>typeof w=="number");return typeof E=="number"?E:null},l=d([r,c?.[o]?.defaultHeader,a]),p=d([n,c?.[o]?.defaultFooter,s]),m=l?this.getPageHeader(l,i):l===0?null:this._defaultHeaders[i],h=p?this.getPageFooter(p,i):p===0?null:this._defaultFooters[i];return{header:m,footer:h}}};async function Sm(){return await je({endpoint:fe.SETTINGS})}var Cm=P(It());Cm.default.config();var iw=25;function ow({socialTitle:e,socialDescription:t,socialImage:r}){return{type:"website",title:e,description:t,image:r?gs(r,1280,768):"",twitterImage:r?gs(r,1280,768):""}}function aw(e){let{title:t,metaTitle:r,metaDescription:n,canonicalURL:i,locale:o,url:a,isIndexed:s,follow:c,metasAdvanced:d,pageLanguages:l,fullUrl:p,metaKeywords:m}=e,h=d?.split(",").filter(Boolean).map(_=>_.trim().toLowerCase())||[];return{title:(r||t||"").trim(),description:n,canonical:i&&i.trim()&&i!==p?i.trim():s?p:void 0,locale:o,url:a,index:s?"index":"noindex",follow:c?"follow":"nofollow",translate:h.includes("notranslate")?"notranslate":"",metasAdvanced:h.filter(_=>_!=="notranslate").join(),pageLanguages:l,metaKeywords:m?.filter(Boolean).map(_=>_.replace(/"/g,"'")).join(", ")}}async function _s(e,t){let{id:r,title:n,fullPath:i,language:o,breadcrumb:a,socialDescription:s,socialImage:c,socialTitle:d}=e,{baseUrl:l,cloudinaryName:p,griddoVersion:m,siteLangs:h,siteMetadata:_,siteOptions:E,siteScript:w,siteSlug:I,socials:F,theme:A,navigations:{header:L,footer:K}}=t;e.breadcrumb=a,e.siteSlug=I,e.apiUrl=l,e.publicApiUrl=t.publicBaseUrl,e.instance=t.instance;let $e=h.find(({id:U})=>U===e?.language)?.locale.replace(/_/g,"-"),le=aw(e),x=ow({socialDescription:s,socialImage:c,socialTitle:d}),q=i.compose,M=new Date().toString();return{path:q,size:void 0,context:{id:r,title:n,fullPath:i,locale:$e,languageId:o,theme:A,siteMetadata:_,pageMetadata:le,openGraph:x,socials:F,siteLangs:h,cloudinaryName:p,siteOptions:E,griddoVersion:m,renderDate:M,siteScript:w,header:L,footer:K,page:e}}}async function xm(e,t){return await _s(e,t)}async function Rm({page:e,pages:t,isRoot:r=!1,defaultLang:n,template:i,totalQueriedItems:o},a){let s=t.map(async(c,d)=>{let l=d===0,p=d+1,{domainUrl:m,compose:h}=e.fullPath,_={...e,id:parseInt("-"+e.id+d),fullPath:{...e.fullPath,compose:vs(h,p,{addEndingSlash:!0})},fullUrl:vs(e.fullUrl,p,{addEndingSlash:!0}),slug:vs(e.slug,p),title:Dm(e.title,p),metaTitle:Dm(e.metaTitle||"",p),disableHrefLangs:p>1,template:{...i,isFirstPage:l,pageNumber:p,totalPages:t.length,baseLink:`${m}${h}`,queriedItems:c,totalQueriedItems:o?.length},isRoot:r,defaultLang:n};return await _s(_,a)});return Promise.all(s)}function Om(e,t){let{multiPageElements:r,...n}=e,i=JSON.parse(JSON.stringify(r));i.find(({sectionSlug:a})=>a==="/")||i.push({});let o=i.map(async(a,s)=>{let c=JSON.parse(JSON.stringify(n)),{sectionSlug:d="/",title:l="",metaTitle:p="",metaDescription:m=""}=a,h=typeof l=="string"?l:l.content,_=c.fullPath.compose||"",E=c.fullUrl.endsWith("/")?c.fullUrl.slice(0,-1):c.fullUrl,w=d?.replace(/\//g,""),F=d==="/"?w:w+"/",A=_.endsWith("/")?"":"/",L=`${_}${A}${F}`;return h.trim()&&(c.title=h),m.trim()&&(c.metaDescription=m),c.id=parseInt("-"+c.id+s),c.fullUrl=`${E}/${F}`,c.fullPath.compose=L,c.slug=L,c.template.activeSectionSlug=d,c.template.activeSectionBase=E,c.metaTitle=p.trim()||h.trim()||c.metaTitle,await _s(c,t)});return Promise.all(o)}function Im(e){return new Promise(r=>{let n=(i,o=0)=>{if(!(!i||typeof i!="object")){for(let a in i){let s=i[a],c=s||typeof s=="object",d=JSON.stringify(s).includes('"hasGriddoMultiPage":true');if(!c||!d)continue;let{component:l,hasGriddoMultiPage:p,elements:m}=s;l&&p&&r(m||[]),n(s,o+1)}o||r(null)}};n([e])})}function sw(e,t,r){return t?.slice(e*(r-1),e*r)}function uw(e,t){let r=Math.ceil(t.length/e)||1;return Array.from({length:r},(i,o)=>o+1)?.map(i=>sw(e,t,i))}function Pm(e){let t=e.queriedItems||[],r=e?.itemsPerPage||iw;return uw(r,t)}function wm(e){return e.replace(/\/+$/,"/")}function vs(e,t,r){let n=e.endsWith("/")?"":"/",i=r?.addEndingSlash?"/":"";return t<=1?wm(`${e}${i}`):wm(`${e}${n}${t}${i}`)}function Dm(e,t){return!e||t<=1?e:`${e} - ${t}`}var Am=ie();Fm.default.config();var cw=new Date().valueOf().toString();async function km(e){yd(),console.info(`API calls with ${X.GRIDDO_API_CONCURRENCY_COUNT} threads`);let{__cx:t}=Am.paths(),{griddoVersion:r}=Am,n=Tm.default.join(t,"store");try{let i=[],o={},{sitesToPublish:a,sitesToUnpublish:s}=await Kh(e);a.length||s.length||(console.warn("There are no sites to update"),process.exit(0)),console.info(`Sites to publish: ${ms(a)}`),console.info(`Sites to unpublish: ${ms(s)}`),await Qh(s);for(let c of a){let{id:d,slug:l,theme:p,favicon:m,changedPages:h=[],pages:_=[]}=c,{siteInfo:E,validPagesIds:w,siteHash:I,unpublishHashes:F,siteLangs:A,defaultLang:L,headers:K,footers:ue,socials:$e}=await Zh(d),{cloudinaryName:le,useMetaTitle:x,useMetaKeywords:q,showBasicMetaRobots:M,avoidHrefLangsOnCanonicals:Q,avoidSelfReferenceCanonicals:U,avoidHrefLangXDefault:W,avoidDebugMetas:S}=await Sm();o[d]={siteHash:I,unpublishHashes:F,publishHashes:[]};let H=new ki;H.navigations={headers:K,footers:ue},c.languages=A;let k=Mh(d,I),R=E.siteScript,j={siteUrl:E.slug,title:E.name,favicon:m},me={baseUrl:X.GRIDDO_API_URL,publicBaseUrl:X.GRIDDO_PUBLIC_API_URL,instance:X.GRIDDO_REACT_APP_INSTANCE,siteSlug:l,theme:p,siteMetadata:j,socials:$e,siteLangs:A,cloudinaryName:le,griddoVersion:r,siteOptions:{useMetaTitle:x,useMetaKeywords:q,showBasicMetaRobots:M,avoidHrefLangsOnCanonicals:Q,avoidSelfReferenceCanonicals:U,avoidHrefLangXDefault:W,avoidDebugMetas:S},siteScript:R};lt(`${c.name} site`);let nt=async mt=>{let yt=[],ze=await Uh(mt,k);if(!ze)return;i.push(mt);let Ut=JSON.parse(JSON.stringify(me));Ut.navigations=H.getPageNavigations(ze);let Je=await Li.getDistributorData({page:ze,cacheKey:cw}),en=await Im(Je),vr=ze?.mode==="list",_r=!vr&&en,Xt=!_r&&!vr;if(vr){let We={page:ze,pages:Pm(Je),isRoot:!1,defaultLang:L,template:Je,totalQueriedItems:Je.queriedItems};yt=await Rm(We,Ut)}if(_r){let We=ze;We.template=Je,We.multiPageElements=en,We.defaultLang=L,yt=await Om(We,Ut)}if(Xt){let We=ze;We.template=Je,We.defaultLang=L,yt=[await xm(We,Ut)]}ze.hash!==null&&o[d].publishHashes.push(ze.hash),vd(yt)},{pagesMissingInStore:He,pagesToDeleteFromStore:ut,pagesToWriteToStore:Ot}=await _d(n,{sitesToPublish:a,pages:_,validPagesIds:w,changedPages:h});Wn(ut),ne(`Store site: ${c.name}`),ne(`${w.length} valid pages from API`),ne(`changed ${h.length} pages from API`),ne(`deleted ${ut.length} pages from store`),ne(`missing ${He.length} pages in store`),ne(`write ${Ot.length} pages to store`);let Ee=(0,Lm.default)(X.GRIDDO_API_CONCURRENCY_COUNT),Zr=Ot.map(mt=>Ee(()=>nt(mt)));await Promise.all(Zr)}gd(n,{buildProcessData:o,createdPages:i,sitesToPublish:a})}catch(i){console.error(i.message),process.exit(1)}}async function Nm(e){Fh(),await km(e),fm()}var Mi=P(require("node:fs")),qi=P(require("node:path"));var bs=class extends Error{constructor(){super(),this.name="InternalCXError",this.stack=""}};function Ni({error:e,message:t,expected:r="",hint:n=""}){let i=[t,r,n].filter(Boolean).join(`
85
+ `);throw ot(i,e,1,0),new bs}var Mm={id:100,error:"NoDomainsFoundError",message:"No domains found in this instance. The process cannot continue.",expected:"This can happen if the API is not functioning or the site is not properly configured, or the domains are not registered.",hint:"You can contact the instance administrator."},qm={id:101,error:"RenderUUIDError",message:`Render sentinel file does not exist.
86
86
  The rendering uuid cannot be read safely.
87
87
  There was probably a instance deployment during the render and files were deleted.
88
88
 
89
- The files generated in this render will not be published.`};var km=ne();function Nm(){let{__cx:e}=km.paths(),t=bs.default.join(e,".render-sentinel");Es.default.writeFileSync(t,new Date().toISOString())}function Mm(){let{__cx:e}=km.paths(),t=bs.default.join(e,".render-sentinel");Es.default.existsSync(t)||qi(Lm)}var rw=ne();async function nw(e){We(`Initializing render for the domain ${e}`,"",1,0),Nm();let{__ssg:t,__exports:r,__caches:n,__cx:i,__components:o}=rw.paths(e),a=jd(e),s=!!a&&a!=="";await et("Clean",{steps:[()=>kr(i,["store","apiCache","dist"]),()=>kr(t,["dist","public","static",".cache"])]}),await et("Prepare",{steps:[()=>Xn([r]),()=>Xn([n])]}),await et("Restore",{steps:[()=>Hn(o,t,["static"]),()=>Hn(r,i,["assets"]),()=>Hn(r,t,["dist"]),()=>{Ss.default.existsSync(en.default.join(t,"dist"))&&Ss.default.renameSync(en.default.join(t,"dist"),en.default.join(t,"public"))},()=>ar(n,i,["apiCache","store"]),()=>ar(n,t,[".cache"])]}),await et("Data",{steps:[()=>Am(e)]}),await et("SSG",{steps:[()=>$d(a)]}),await et("Relocation",{steps:[()=>Gd(e,s)]}),await et("Meta",{steps:[()=>Cm(),()=>Ah.writeFiles(e),()=>xm(),()=>zo("Meta LifeCycle")]}),await et("Archive",{steps:[()=>mf(),()=>Lo(en.default.join(i,"dist")),()=>ar(i,r,["dist","assets"],{withBackup:!0}),()=>ar(i,n,["apiCache","store"]),()=>ar(t,n,[".cache"])]}),await et("Clean",{steps:[()=>kr(t,["static","public","dist"])]}),await et("HealthCheck",{steps:[()=>Mm()]})}async function ws(e){Cd("gatsby");for(let t of e)await nw(t)}var ji=class{static async getAll(){return await Me({endpoint:le.DOMAINS})}};async function qm(){await pt.login();let e=await ji.getAll();return e.length||qi(Fm),Ne(`getting domains names (${e.length})`),iw(e)}function iw(e){let t=e.filter(({slug:r})=>!!r).map(({slug:r})=>r.replace("/",""));return[...new Set(t)]}async function jm(){try{let e=await qm(),t=await Vo([()=>ws(e)]);We(`All domains rendered in ${t}s.`,"",1,0),process.exit(0)}catch(e){console.log(e),process.exit(1)}}jm();
89
+ The files generated in this render will not be published.`};var Es=ie();function jm(){let{__cx:e}=Es.paths(),t=qi.default.join(e,".render-sentinel");Mi.default.writeFileSync(t,new Date().toISOString())}function $m(){let{__cx:e}=Es.paths(),t=qi.default.join(e,".render-sentinel");Mi.default.unlinkSync(t)}function Gm(){let{__cx:e}=Es.paths(),t=qi.default.join(e,".render-sentinel");Mi.default.existsSync(t)||Ni(qm)}var lw=ie();async function fw(e){lt(`Initializing render for the domain ${e}`),jm();let t=lw.paths(e),r=Em("gatsby",{cxPaths:t}),{__ssg:n,__exports:i,__caches:o,__cx:a,__components:s}=t,c={...r,all:{disposables:[...r.cx.disposables,...r.ssg.disposables],initials:[...r.cx.initials,...r.ssg.initials]}},d=ym(e),l=!!d&&d!=="";await tt("Clean",{steps:[()=>Bo(c.all.disposables)]}),await tt("Prepare",{steps:[()=>Cd(c.all.initials)]}),await tt("Restore",{steps:[()=>Uo(s,n,["static"]),()=>Uo(i,a,c.cx.archivables),()=>xd(ji.default.join(a,"dist"),ji.default.join(n,"public")),()=>sr(o,a,c.cx.cacheables),()=>sr(o,n,c.ssg.cacheables)]}),await tt("Data",{steps:[()=>Nm(e)]}),await tt("SSG",{steps:[()=>gm(d)]}),await tt("Relocation",{steps:[()=>vm(e,l)]}),await tt("Meta",{steps:[()=>dm(e)]}),await tt("Archive",{steps:[()=>Dd(),()=>Go(ji.default.join(a,"dist")),()=>sr(a,i,c.cx.archivables,{withBackup:!0}),()=>sr(a,o,c.cx.cacheables),()=>sr(n,o,c.ssg.cacheables)]}),await tt("Close",{steps:[()=>Bo(c.all.disposables)]}),await tt("HealthCheck",{steps:[()=>Gm()]}),$m()}async function Ss(e){md("gatsby");for(let t of e)await fw(t)}var $i=class{static async getAll(){return await je({endpoint:fe.DOMAINS})}};async function Bm(){await pt.login();let e=await $i.getAll();return e.length||Ni(Mm),ne(`getting domains names (${e.length})`),dw(e)}function dw(e){let t=e.filter(({slug:r})=>!!r).map(({slug:r})=>r.replace("/",""));return[...new Set(t)]}async function Um(){try{let e=await Bm(),t=await ys([()=>Ss(e)]);ot(`All domains rendered in ${t}s.`,"",1,0),process.exit(0)}catch(e){console.log(e),process.exit(1)}}Um();
90
90
  /*! Bundled license information:
91
91
 
92
92
  react/cjs/react.production.min.js: