@wix/cli-app 1.1.2 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/{CreateVersionCommand-ACZ3W4S4.js → CreateVersionCommand-PIV2LH7B.js} +2 -2
- package/build/{DevCommand-26MBVEGM.js → DevCommand-UIDNUWIP.js} +2 -2
- package/build/PreviewCommand-UKHGM3U7.js +4 -0
- package/build/{ServeCommand-LKGC43F2.js → ServeCommand-JX2AYHNK.js} +2 -2
- package/build/SiteIdProvider-UIS4BKVC.js +4 -0
- package/build/{build-K7HCLEXF.js → build-X5PQLJYY.js} +2 -2
- package/build/{chunk-DWQSXNK2.js → chunk-44TZXTHO.js} +2 -2
- package/build/{chunk-KZZTM2KZ.js → chunk-7PCCZH2Q.js} +2 -2
- package/build/{chunk-FBPBJN3V.js → chunk-7PDV5QDK.js} +2 -2
- package/build/{chunk-XCS5TRON.js → chunk-7T43YDHD.js} +2 -2
- package/build/{chunk-XTSD25NR.js → chunk-7XQUV5HO.js} +2 -2
- package/build/{chunk-SI3YQ623.js → chunk-BJOLH7YC.js} +2 -2
- package/build/{chunk-2DYAAR6J.js → chunk-BQW2QNTV.js} +2 -2
- package/build/{chunk-TUKI3OEQ.js → chunk-BXSRILE5.js} +2 -2
- package/build/{chunk-DLDSY2KE.js → chunk-EICHKHNE.js} +2 -2
- package/build/chunk-EICHKHNE.js.map +1 -0
- package/build/{chunk-3CWGDMDQ.js → chunk-GAEEULSA.js} +2 -2
- package/build/chunk-GXCVI5BG.js +75 -0
- package/build/chunk-GXCVI5BG.js.map +1 -0
- package/build/{chunk-LWF2UMZJ.js → chunk-HMJ5TWEC.js} +2 -2
- package/build/{chunk-NBPYX6UX.js → chunk-NQPO4DHF.js} +3 -3
- package/build/{chunk-NBPYX6UX.js.map → chunk-NQPO4DHF.js.map} +1 -1
- package/build/{chunk-EUINJR7Q.js → chunk-SGABAIB5.js} +2 -2
- package/build/{chunk-7L53MGM2.js → chunk-UFOJJCTK.js} +2 -2
- package/build/{chunk-BTGENTTK.js → chunk-UO6ED7UB.js} +2 -2
- package/build/{chunk-5CKAQAZK.js → chunk-XD45SKTN.js} +2 -2
- package/build/index.js +1 -1
- package/build/{preview-MTYF5TV5.js → preview-5ELYGXV7.js} +2 -2
- package/build/{render-command-VR53CY3H.js → render-command-VECNS26S.js} +2 -2
- package/package.json +2 -3
- package/build/PreviewCommand-MNP242P6.js +0 -4
- package/build/SiteIdProvider-KTD7B3MF.js +0 -4
- package/build/chunk-DLDSY2KE.js.map +0 -1
- package/build/chunk-YT3VC22W.js +0 -75
- package/build/chunk-YT3VC22W.js.map +0 -1
- /package/build/{CreateVersionCommand-ACZ3W4S4.js.map → CreateVersionCommand-PIV2LH7B.js.map} +0 -0
- /package/build/{DevCommand-26MBVEGM.js.map → DevCommand-UIDNUWIP.js.map} +0 -0
- /package/build/{PreviewCommand-MNP242P6.js.map → PreviewCommand-UKHGM3U7.js.map} +0 -0
- /package/build/{ServeCommand-LKGC43F2.js.map → ServeCommand-JX2AYHNK.js.map} +0 -0
- /package/build/{SiteIdProvider-KTD7B3MF.js.map → SiteIdProvider-UIS4BKVC.js.map} +0 -0
- /package/build/{build-K7HCLEXF.js.map → build-X5PQLJYY.js.map} +0 -0
- /package/build/{chunk-DWQSXNK2.js.map → chunk-44TZXTHO.js.map} +0 -0
- /package/build/{chunk-KZZTM2KZ.js.map → chunk-7PCCZH2Q.js.map} +0 -0
- /package/build/{chunk-FBPBJN3V.js.map → chunk-7PDV5QDK.js.map} +0 -0
- /package/build/{chunk-XCS5TRON.js.map → chunk-7T43YDHD.js.map} +0 -0
- /package/build/{chunk-XTSD25NR.js.map → chunk-7XQUV5HO.js.map} +0 -0
- /package/build/{chunk-SI3YQ623.js.map → chunk-BJOLH7YC.js.map} +0 -0
- /package/build/{chunk-2DYAAR6J.js.map → chunk-BQW2QNTV.js.map} +0 -0
- /package/build/{chunk-TUKI3OEQ.js.map → chunk-BXSRILE5.js.map} +0 -0
- /package/build/{chunk-3CWGDMDQ.js.map → chunk-GAEEULSA.js.map} +0 -0
- /package/build/{chunk-LWF2UMZJ.js.map → chunk-HMJ5TWEC.js.map} +0 -0
- /package/build/{chunk-EUINJR7Q.js.map → chunk-SGABAIB5.js.map} +0 -0
- /package/build/{chunk-7L53MGM2.js.map → chunk-UFOJJCTK.js.map} +0 -0
- /package/build/{chunk-BTGENTTK.js.map → chunk-UO6ED7UB.js.map} +0 -0
- /package/build/{chunk-5CKAQAZK.js.map → chunk-XD45SKTN.js.map} +0 -0
- /package/build/{preview-MTYF5TV5.js.map → preview-5ELYGXV7.js.map} +0 -0
- /package/build/{render-command-VR53CY3H.js.map → render-command-VECNS26S.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire as _createRequire } from 'node:module';
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
|
-
import{F as eo,K as to,N as yi,O as un,P as mi,Q as ro,R as io,T as ln,V as Ai,W as Ci,X as fn,Y as ao,Z as no,a as Xs,c as Gr,d as jr,j as $s,k as Zs}from"./chunk-
|
|
3
|
+
import{F as eo,K as to,N as yi,O as un,P as mi,Q as ro,R as io,T as ln,V as Ai,W as Ci,X as fn,Y as ao,Z as no,a as Xs,c as Gr,d as jr,j as $s,k as Zs}from"./chunk-GXCVI5BG.js";import{a as Le,c as F,e as ra,h as S}from"./chunk-HFDLXX7R.js";var Et=F(yn=>{"use strict";S();yn.fromCallback=function(e){return Object.defineProperty(function(...t){if(typeof t[t.length-1]=="function")e.apply(this,t);else return new Promise((i,r)=>{e.call(this,...t,(a,n)=>a!=null?r(a):i(n))})},"name",{value:e.name})};yn.fromPromise=function(e){return Object.defineProperty(function(...t){let i=t[t.length-1];if(typeof i!="function")return e.apply(this,t);e.apply(this,t.slice(0,-1)).then(r=>i(null,r),i)},"name",{value:e.name})}});var ho=F((cA,co)=>{"use strict";S();var hr=Le("constants"),sh=process.cwd,na=null,oh=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return na||(na=sh.call(process)),na};try{process.cwd()}catch{}typeof process.chdir=="function"&&(mn=process.chdir,process.chdir=function(e){na=null,mn.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,mn));var mn;co.exports=uh;function uh(e){hr.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||i(e),e.chown=n(e.chown),e.fchown=n(e.fchown),e.lchown=n(e.lchown),e.chmod=r(e.chmod),e.fchmod=r(e.fchmod),e.lchmod=r(e.lchmod),e.chownSync=s(e.chownSync),e.fchownSync=s(e.fchownSync),e.lchownSync=s(e.lchownSync),e.chmodSync=a(e.chmodSync),e.fchmodSync=a(e.fchmodSync),e.lchmodSync=a(e.lchmodSync),e.stat=o(e.stat),e.fstat=o(e.fstat),e.lstat=o(e.lstat),e.statSync=u(e.statSync),e.fstatSync=u(e.fstatSync),e.lstatSync=u(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(f,c,p){p&&process.nextTick(p)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(f,c,p,m){m&&process.nextTick(m)},e.lchownSync=function(){}),oh==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(f){function c(p,m,v){var C=Date.now(),E=0;f(p,m,function B(w){if(w&&(w.code==="EACCES"||w.code==="EPERM"||w.code==="EBUSY")&&Date.now()-C<6e4){setTimeout(function(){e.stat(m,function(T,U){T&&T.code==="ENOENT"?f(p,m,B):v(w)})},E),E<100&&(E+=10);return}v&&v(w)})}return Object.setPrototypeOf&&Object.setPrototypeOf(c,f),c}(e.rename)),e.read=typeof e.read!="function"?e.read:function(f){function c(p,m,v,C,E,B){var w;if(B&&typeof B=="function"){var T=0;w=function(U,P,Q){if(U&&U.code==="EAGAIN"&&T<10)return T++,f.call(e,p,m,v,C,E,w);B.apply(this,arguments)}}return f.call(e,p,m,v,C,E,w)}return Object.setPrototypeOf&&Object.setPrototypeOf(c,f),c}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(f){return function(c,p,m,v,C){for(var E=0;;)try{return f.call(e,c,p,m,v,C)}catch(B){if(B.code==="EAGAIN"&&E<10){E++;continue}throw B}}}(e.readSync);function t(f){f.lchmod=function(c,p,m){f.open(c,hr.O_WRONLY|hr.O_SYMLINK,p,function(v,C){if(v){m&&m(v);return}f.fchmod(C,p,function(E){f.close(C,function(B){m&&m(E||B)})})})},f.lchmodSync=function(c,p){var m=f.openSync(c,hr.O_WRONLY|hr.O_SYMLINK,p),v=!0,C;try{C=f.fchmodSync(m,p),v=!1}finally{if(v)try{f.closeSync(m)}catch{}else f.closeSync(m)}return C}}function i(f){hr.hasOwnProperty("O_SYMLINK")&&f.futimes?(f.lutimes=function(c,p,m,v){f.open(c,hr.O_SYMLINK,function(C,E){if(C){v&&v(C);return}f.futimes(E,p,m,function(B){f.close(E,function(w){v&&v(B||w)})})})},f.lutimesSync=function(c,p,m){var v=f.openSync(c,hr.O_SYMLINK),C,E=!0;try{C=f.futimesSync(v,p,m),E=!1}finally{if(E)try{f.closeSync(v)}catch{}else f.closeSync(v)}return C}):f.futimes&&(f.lutimes=function(c,p,m,v){v&&process.nextTick(v)},f.lutimesSync=function(){})}function r(f){return f&&function(c,p,m){return f.call(e,c,p,function(v){l(v)&&(v=null),m&&m.apply(this,arguments)})}}function a(f){return f&&function(c,p){try{return f.call(e,c,p)}catch(m){if(!l(m))throw m}}}function n(f){return f&&function(c,p,m,v){return f.call(e,c,p,m,function(C){l(C)&&(C=null),v&&v.apply(this,arguments)})}}function s(f){return f&&function(c,p,m){try{return f.call(e,c,p,m)}catch(v){if(!l(v))throw v}}}function o(f){return f&&function(c,p,m){typeof p=="function"&&(m=p,p=null);function v(C,E){E&&(E.uid<0&&(E.uid+=4294967296),E.gid<0&&(E.gid+=4294967296)),m&&m.apply(this,arguments)}return p?f.call(e,c,p,v):f.call(e,c,v)}}function u(f){return f&&function(c,p){var m=p?f.call(e,c,p):f.call(e,c);return m&&(m.uid<0&&(m.uid+=4294967296),m.gid<0&&(m.gid+=4294967296)),m}}function l(f){if(!f||f.code==="ENOSYS")return!0;var c=!process.getuid||process.getuid()!==0;return!!(c&&(f.code==="EINVAL"||f.code==="EPERM"))}}});var vo=F((pA,go)=>{"use strict";S();var po=Le("stream").Stream;go.exports=lh;function lh(e){return{ReadStream:t,WriteStream:i};function t(r,a){if(!(this instanceof t))return new t(r,a);po.call(this);var n=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,a=a||{};for(var s=Object.keys(a),o=0,u=s.length;o<u;o++){var l=s[o];this[l]=a[l]}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(){n._read()});return}e.open(this.path,this.flags,this.mode,function(f,c){if(f){n.emit("error",f),n.readable=!1;return}n.fd=c,n.emit("open",c),n._read()})}function i(r,a){if(!(this instanceof i))return new i(r,a);po.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,a=a||{};for(var n=Object.keys(a),s=0,o=n.length;s<o;s++){var u=n[s];this[u]=a[u]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var mo=F((gA,yo)=>{"use strict";S();yo.exports=ch;var fh=Object.getPrototypeOf||function(e){return e.__proto__};function ch(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:fh(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))}),t}});var dt=F((yA,En)=>{"use strict";S();var Qe=Le("fs"),hh=ho(),ph=vo(),dh=mo(),sa=Le("util"),Je,ua;typeof Symbol=="function"&&typeof Symbol.for=="function"?(Je=Symbol.for("graceful-fs.queue"),ua=Symbol.for("graceful-fs.previous")):(Je="___graceful-fs.queue",ua="___graceful-fs.previous");function gh(){}function Eo(e,t){Object.defineProperty(e,Je,{get:function(){return t}})}var Rr=gh;sa.debuglog?Rr=sa.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Rr=function(){var e=sa.format.apply(sa,arguments);e="GFS4: "+e.split(/\n/).join(`
|
|
4
4
|
GFS4: `),console.error(e)});Qe[Je]||(Ao=global[Je]||[],Eo(Qe,Ao),Qe.close=function(e){function t(i,r){return e.call(Qe,i,function(a){a||Co(),typeof r=="function"&&r.apply(this,arguments)})}return Object.defineProperty(t,ua,{value:e}),t}(Qe.close),Qe.closeSync=function(e){function t(i){e.apply(Qe,arguments),Co()}return Object.defineProperty(t,ua,{value:e}),t}(Qe.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Rr(Qe[Je]),Le("assert").equal(Qe[Je].length,0)}));var Ao;global[Je]||Eo(global,Qe[Je]);En.exports=An(dh(Qe));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Qe.__patched&&(En.exports=An(Qe),Qe.__patched=!0);function An(e){hh(e),e.gracefulify=An,e.createReadStream=P,e.createWriteStream=Q;var t=e.readFile;e.readFile=i;function i(H,z,Y){return typeof z=="function"&&(Y=z,z=null),re(H,z,Y);function re(ye,Ee,$,ie){return t(ye,Ee,function(V){V&&(V.code==="EMFILE"||V.code==="ENFILE")?zr([re,[ye,Ee,$],V,ie||Date.now(),Date.now()]):typeof $=="function"&&$.apply(this,arguments)})}}var r=e.writeFile;e.writeFile=a;function a(H,z,Y,re){return typeof Y=="function"&&(re=Y,Y=null),ye(H,z,Y,re);function ye(Ee,$,ie,V,_e){return r(Ee,$,ie,function(xe){xe&&(xe.code==="EMFILE"||xe.code==="ENFILE")?zr([ye,[Ee,$,ie,V],xe,_e||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var n=e.appendFile;n&&(e.appendFile=s);function s(H,z,Y,re){return typeof Y=="function"&&(re=Y,Y=null),ye(H,z,Y,re);function ye(Ee,$,ie,V,_e){return n(Ee,$,ie,function(xe){xe&&(xe.code==="EMFILE"||xe.code==="ENFILE")?zr([ye,[Ee,$,ie,V],xe,_e||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var o=e.copyFile;o&&(e.copyFile=u);function u(H,z,Y,re){return typeof Y=="function"&&(re=Y,Y=0),ye(H,z,Y,re);function ye(Ee,$,ie,V,_e){return o(Ee,$,ie,function(xe){xe&&(xe.code==="EMFILE"||xe.code==="ENFILE")?zr([ye,[Ee,$,ie,V],xe,_e||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var l=e.readdir;e.readdir=c;var f=/^v[0-5]\./;function c(H,z,Y){typeof z=="function"&&(Y=z,z=null);var re=f.test(process.version)?function($,ie,V,_e){return l($,ye($,ie,V,_e))}:function($,ie,V,_e){return l($,ie,ye($,ie,V,_e))};return re(H,z,Y);function ye(Ee,$,ie,V){return function(_e,xe){_e&&(_e.code==="EMFILE"||_e.code==="ENFILE")?zr([re,[Ee,$,ie],_e,V||Date.now(),Date.now()]):(xe&&xe.sort&&xe.sort(),typeof ie=="function"&&ie.call(this,_e,xe))}}}if(process.version.substr(0,4)==="v0.8"){var p=ph(e);B=p.ReadStream,T=p.WriteStream}var m=e.ReadStream;m&&(B.prototype=Object.create(m.prototype),B.prototype.open=w);var v=e.WriteStream;v&&(T.prototype=Object.create(v.prototype),T.prototype.open=U),Object.defineProperty(e,"ReadStream",{get:function(){return B},set:function(H){B=H},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return T},set:function(H){T=H},enumerable:!0,configurable:!0});var C=B;Object.defineProperty(e,"FileReadStream",{get:function(){return C},set:function(H){C=H},enumerable:!0,configurable:!0});var E=T;Object.defineProperty(e,"FileWriteStream",{get:function(){return E},set:function(H){E=H},enumerable:!0,configurable:!0});function B(H,z){return this instanceof B?(m.apply(this,arguments),this):B.apply(Object.create(B.prototype),arguments)}function w(){var H=this;ne(H.path,H.flags,H.mode,function(z,Y){z?(H.autoClose&&H.destroy(),H.emit("error",z)):(H.fd=Y,H.emit("open",Y),H.read())})}function T(H,z){return this instanceof T?(v.apply(this,arguments),this):T.apply(Object.create(T.prototype),arguments)}function U(){var H=this;ne(H.path,H.flags,H.mode,function(z,Y){z?(H.destroy(),H.emit("error",z)):(H.fd=Y,H.emit("open",Y))})}function P(H,z){return new e.ReadStream(H,z)}function Q(H,z){return new e.WriteStream(H,z)}var te=e.open;e.open=ne;function ne(H,z,Y,re){return typeof Y=="function"&&(re=Y,Y=null),ye(H,z,Y,re);function ye(Ee,$,ie,V,_e){return te(Ee,$,ie,function(xe,Oe){xe&&(xe.code==="EMFILE"||xe.code==="ENFILE")?zr([ye,[Ee,$,ie,V],xe,_e||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}return e}function zr(e){Rr("ENQUEUE",e[0].name,e[1]),Qe[Je].push(e),Cn()}var oa;function Co(){for(var e=Date.now(),t=0;t<Qe[Je].length;++t)Qe[Je][t].length>2&&(Qe[Je][t][3]=e,Qe[Je][t][4]=e);Cn()}function Cn(){if(clearTimeout(oa),oa=void 0,Qe[Je].length!==0){var e=Qe[Je].shift(),t=e[0],i=e[1],r=e[2],a=e[3],n=e[4];if(a===void 0)Rr("RETRY",t.name,i),t.apply(null,i);else if(Date.now()-a>=6e4){Rr("TIMEOUT",t.name,i);var s=i.pop();typeof s=="function"&&s.call(null,r)}else{var o=Date.now()-n,u=Math.max(n-a,1),l=Math.min(u*1.2,100);o>=l?(Rr("RETRY",t.name,i),t.apply(null,i.concat([a]))):Qe[Je].push(e)}oa===void 0&&(oa=setTimeout(Cn,0))}}});var Dr=F(pr=>{"use strict";S();var xo=Et().fromCallback,xt=dt(),vh=["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 xt[e]=="function");Object.assign(pr,xt);vh.forEach(e=>{pr[e]=xo(xt[e])});pr.exists=function(e,t){return typeof t=="function"?xt.exists(e,t):new Promise(i=>xt.exists(e,i))};pr.read=function(e,t,i,r,a,n){return typeof n=="function"?xt.read(e,t,i,r,a,n):new Promise((s,o)=>{xt.read(e,t,i,r,a,(u,l,f)=>{if(u)return o(u);s({bytesRead:l,buffer:f})})})};pr.write=function(e,t,...i){return typeof i[i.length-1]=="function"?xt.write(e,t,...i):new Promise((r,a)=>{xt.write(e,t,...i,(n,s,o)=>{if(n)return a(n);r({bytesWritten:s,buffer:o})})})};typeof xt.writev=="function"&&(pr.writev=function(e,t,...i){return typeof i[i.length-1]=="function"?xt.writev(e,t,...i):new Promise((r,a)=>{xt.writev(e,t,...i,(n,s,o)=>{if(n)return a(n);r({bytesWritten:s,buffers:o})})})});typeof xt.realpath.native=="function"?pr.realpath.native=xo(xt.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")});var Io=F((EA,So)=>{"use strict";S();var yh=Le("path");So.exports.checkPath=function(t){if(process.platform==="win32"&&/[<>:"|?*]/.test(t.replace(yh.parse(t).root,""))){let r=new Error(`Path contains invalid characters: ${t}`);throw r.code="EINVAL",r}}});var wo=F((SA,xn)=>{"use strict";S();var Bo=Dr(),{checkPath:bo}=Io(),To=e=>{let t={mode:511};return typeof e=="number"?e:{...t,...e}.mode};xn.exports.makeDir=async(e,t)=>(bo(e),Bo.mkdir(e,{mode:To(t),recursive:!0}));xn.exports.makeDirSync=(e,t)=>(bo(e),Bo.mkdirSync(e,{mode:To(t),recursive:!0}))});var Mt=F((BA,_o)=>{"use strict";S();var mh=Et().fromPromise,{makeDir:Ah,makeDirSync:Sn}=wo(),In=mh(Ah);_o.exports={mkdirs:In,mkdirsSync:Sn,mkdirp:In,mkdirpSync:Sn,ensureDir:In,ensureDirSync:Sn}});var dr=F((TA,ko)=>{"use strict";S();var Ch=Et().fromPromise,No=Dr();function Eh(e){return No.access(e).then(()=>!0).catch(()=>!1)}ko.exports={pathExists:Ch(Eh),pathExistsSync:No.existsSync}});var Bn=F((_A,Lo)=>{"use strict";S();var Jr=dt();function xh(e,t,i,r){Jr.open(e,"r+",(a,n)=>{if(a)return r(a);Jr.futimes(n,t,i,s=>{Jr.close(n,o=>{r&&r(s||o)})})})}function Sh(e,t,i){let r=Jr.openSync(e,"r+");return Jr.futimesSync(r,t,i),Jr.closeSync(r)}Lo.exports={utimesMillis:xh,utimesMillisSync:Sh}});var Pr=F((kA,Po)=>{"use strict";S();var Wr=Dr(),Ke=Le("path"),Ih=Le("util");function Bh(e,t,i){let r=i.dereference?a=>Wr.stat(a,{bigint:!0}):a=>Wr.lstat(a,{bigint:!0});return Promise.all([r(e),r(t).catch(a=>{if(a.code==="ENOENT")return null;throw a})]).then(([a,n])=>({srcStat:a,destStat:n}))}function bh(e,t,i){let r,a=i.dereference?s=>Wr.statSync(s,{bigint:!0}):s=>Wr.lstatSync(s,{bigint:!0}),n=a(e);try{r=a(t)}catch(s){if(s.code==="ENOENT")return{srcStat:n,destStat:null};throw s}return{srcStat:n,destStat:r}}function Th(e,t,i,r,a){Ih.callbackify(Bh)(e,t,r,(n,s)=>{if(n)return a(n);let{srcStat:o,destStat:u}=s;if(u){if(Bi(o,u)){let l=Ke.basename(e),f=Ke.basename(t);return i==="move"&&l!==f&&l.toLowerCase()===f.toLowerCase()?a(null,{srcStat:o,destStat:u,isChangingCase:!0}):a(new Error("Source and destination must not be the same."))}if(o.isDirectory()&&!u.isDirectory())return a(new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`));if(!o.isDirectory()&&u.isDirectory())return a(new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`))}return o.isDirectory()&&bn(e,t)?a(new Error(la(e,t,i))):a(null,{srcStat:o,destStat:u})})}function wh(e,t,i,r){let{srcStat:a,destStat:n}=bh(e,t,r);if(n){if(Bi(a,n)){let s=Ke.basename(e),o=Ke.basename(t);if(i==="move"&&s!==o&&s.toLowerCase()===o.toLowerCase())return{srcStat:a,destStat:n,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(a.isDirectory()&&!n.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!a.isDirectory()&&n.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(a.isDirectory()&&bn(e,t))throw new Error(la(e,t,i));return{srcStat:a,destStat:n}}function Ro(e,t,i,r,a){let n=Ke.resolve(Ke.dirname(e)),s=Ke.resolve(Ke.dirname(i));if(s===n||s===Ke.parse(s).root)return a();Wr.stat(s,{bigint:!0},(o,u)=>o?o.code==="ENOENT"?a():a(o):Bi(t,u)?a(new Error(la(e,i,r))):Ro(e,t,s,r,a))}function Do(e,t,i,r){let a=Ke.resolve(Ke.dirname(e)),n=Ke.resolve(Ke.dirname(i));if(n===a||n===Ke.parse(n).root)return;let s;try{s=Wr.statSync(n,{bigint:!0})}catch(o){if(o.code==="ENOENT")return;throw o}if(Bi(t,s))throw new Error(la(e,i,r));return Do(e,t,n,r)}function Bi(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function bn(e,t){let i=Ke.resolve(e).split(Ke.sep).filter(a=>a),r=Ke.resolve(t).split(Ke.sep).filter(a=>a);return i.reduce((a,n,s)=>a&&r[s]===n,!0)}function la(e,t,i){return`Cannot ${i} '${e}' to a subdirectory of itself, '${t}'.`}Po.exports={checkPaths:Th,checkPathsSync:wh,checkParentPaths:Ro,checkParentPathsSync:Do,isSrcSubdir:bn,areIdentical:Bi}});var Ko=F((RA,qo)=>{"use strict";S();var St=dt(),bi=Le("path"),_h=Mt().mkdirs,Nh=dr().pathExists,kh=Bn().utimesMillis,Ti=Pr();function Lh(e,t,i,r){typeof i=="function"&&!r?(r=i,i={}):typeof i=="function"&&(i={filter:i}),r=r||function(){},i=i||{},i.clobber="clobber"in i?!!i.clobber:!0,i.overwrite="overwrite"in i?!!i.overwrite:i.clobber,i.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
5
5
|
|
|
6
6
|
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001"),Ti.checkPaths(e,t,"copy",i,(a,n)=>{if(a)return r(a);let{srcStat:s,destStat:o}=n;Ti.checkParentPaths(e,s,t,"copy",u=>u?r(u):i.filter?Oo(Qo,o,e,t,i,r):Qo(o,e,t,i,r))})}function Qo(e,t,i,r,a){let n=bi.dirname(i);Nh(n,(s,o)=>{if(s)return a(s);if(o)return fa(e,t,i,r,a);_h(n,u=>u?a(u):fa(e,t,i,r,a))})}function Oo(e,t,i,r,a,n){Promise.resolve(a.filter(i,r)).then(s=>s?e(t,i,r,a,n):n(),s=>n(s))}function Rh(e,t,i,r,a){return r.filter?Oo(fa,e,t,i,r,a):fa(e,t,i,r,a)}function fa(e,t,i,r,a){(r.dereference?St.stat:St.lstat)(t,(s,o)=>s?a(s):o.isDirectory()?Fh(o,e,t,i,r,a):o.isFile()||o.isCharacterDevice()||o.isBlockDevice()?Dh(o,e,t,i,r,a):o.isSymbolicLink()?Kh(e,t,i,r,a):o.isSocket()?a(new Error(`Cannot copy a socket file: ${t}`)):o.isFIFO()?a(new Error(`Cannot copy a FIFO pipe: ${t}`)):a(new Error(`Unknown file: ${t}`)))}function Dh(e,t,i,r,a,n){return t?Ph(e,i,r,a,n):Vo(e,i,r,a,n)}function Ph(e,t,i,r,a){if(r.overwrite)St.unlink(i,n=>n?a(n):Vo(e,t,i,r,a));else return r.errorOnExist?a(new Error(`'${i}' already exists`)):a()}function Vo(e,t,i,r,a){St.copyFile(t,i,n=>n?a(n):r.preserveTimestamps?Qh(e.mode,t,i,a):ca(i,e.mode,a))}function Qh(e,t,i,r){return Uh(e)?Oh(i,e,a=>a?r(a):Uo(e,t,i,r)):Uo(e,t,i,r)}function Uh(e){return(e&128)===0}function Oh(e,t,i){return ca(e,t|128,i)}function Uo(e,t,i,r){Vh(t,i,a=>a?r(a):ca(i,e,r))}function ca(e,t,i){return St.chmod(e,t,i)}function Vh(e,t,i){St.stat(e,(r,a)=>r?i(r):kh(t,a.atime,a.mtime,i))}function Fh(e,t,i,r,a,n){return t?Fo(i,r,a,n):Mh(e.mode,i,r,a,n)}function Mh(e,t,i,r,a){St.mkdir(i,n=>{if(n)return a(n);Fo(t,i,r,s=>s?a(s):ca(i,e,a))})}function Fo(e,t,i,r){St.readdir(e,(a,n)=>a?r(a):Mo(n,e,t,i,r))}function Mo(e,t,i,r,a){let n=e.pop();return n?qh(e,n,t,i,r,a):a()}function qh(e,t,i,r,a,n){let s=bi.join(i,t),o=bi.join(r,t);Ti.checkPaths(s,o,"copy",a,(u,l)=>{if(u)return n(u);let{destStat:f}=l;Rh(f,s,o,a,c=>c?n(c):Mo(e,i,r,a,n))})}function Kh(e,t,i,r,a){St.readlink(t,(n,s)=>{if(n)return a(n);if(r.dereference&&(s=bi.resolve(process.cwd(),s)),e)St.readlink(i,(o,u)=>o?o.code==="EINVAL"||o.code==="UNKNOWN"?St.symlink(s,i,a):a(o):(r.dereference&&(u=bi.resolve(process.cwd(),u)),Ti.isSrcSubdir(s,u)?a(new Error(`Cannot copy '${s}' to a subdirectory of itself, '${u}'.`)):e.isDirectory()&&Ti.isSrcSubdir(u,s)?a(new Error(`Cannot overwrite '${u}' with '${s}'.`)):Hh(s,i,a)));else return St.symlink(s,i,a)})}function Hh(e,t,i){St.unlink(t,r=>r?i(r):St.symlink(e,t,i))}qo.exports=Lh});var zo=F((PA,Yo)=>{"use strict";S();var pt=dt(),wi=Le("path"),Gh=Mt().mkdirsSync,jh=Bn().utimesMillisSync,_i=Pr();function Yh(e,t,i){typeof i=="function"&&(i={filter:i}),i=i||{},i.clobber="clobber"in i?!!i.clobber:!0,i.overwrite="overwrite"in i?!!i.overwrite:i.clobber,i.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
@@ -152,4 +152,4 @@ export default createComponentHmrWrapper(OriginalComponent, import.meta.hot.data
|
|
|
152
152
|
You can close this browser tab and return to the terminal to continue working.
|
|
153
153
|
</body>
|
|
154
154
|
</html>`}S();var J0="__WIX_ORIGIN_PLACEHOLDER__";function W0(){let e=null;return{name:"wix:auto-origin",apply:"serve",config:()=>({server:{origin:J0}}),configureServer:t=>{t.middlewares.use((i,r,a)=>{e=e??wa(t),a()})},transform:(t,i)=>{if(i.match(/.*\.(m?jsx?|tsx?)$/))return t;if(!e)throw new Gr({code:jr.FailedToResolveViteOrigin()});return t.replaceAll(J0,e)}}}S();import{dirname as Jm,isAbsolute as Wm,join as Xm}from"node:path";import{URL as X0}from"node:url";function $m(e,t,i){let r=new X0(t,i).href;if(t.startsWith("/@vite"))return r;if(!Wm(t)){let a=Xm(Jm(e),t);r=new X0(a,i).href}return r}function $0(){let e;return{name:"wix:absolute-html-url",apply:"serve",configureServer(t){e=t},transformIndexHtml:{order:"post",handler(t,{originalUrl:i}){if(!i)throw new Error("Cannot find asset URL.");let r=e.resolvedUrls?.local?.[0],a=(n,s,o,u)=>{let l=$m(i,o,r);return`${s}${l}${u}`};return t.replace(/(<script type="module" src=")(.+)(">[\r\n]*<\/script>)/g,a).replace(/(<link rel="stylesheet" href=")(.+)(" \/>)/g,a).replace(/(\r\n|\n|\r)/gm,"")}}}}async function mx(e,t){let{https:i}=t,r=[...yi(e)].map(([u,l])=>[`html-asset-${l.id}`,u]),a=[...mi(e)].map(([u,l])=>[`script-asset-${l.id}`,u]),n=e.components.filter((0,Z0.isType)(to.EmbeddedScript)).map(u=>[u.id,Zm(e.projectFolder,u.relativePath)]),s=[...Ai(e)].map(([u,l])=>[`html-asset-${l.id}`,u]),o=[...Ci(e)].map(([u,l])=>[`script-asset-${l.id}`,u]);return{configFile:!1,root:e.projectFolder,customLogger:t.customLogger,clearScreen:!1,logLevel:"info",optimizeDeps:{entries:[ro,io,ao,no]},server:{},build:{sourcemap:!0,outDir:eo(e.projectFolder),rollupOptions:{input:Object.fromEntries([...r,...a,...n,...s,...o])}},plugins:[Bf(),...i?[z0()]:[],Sf({initialModel:e,...t}),vf(),df({react:"React","react-dom":"ReactDOM"}),Cf({initialModel:e,...t}),W0(),$0()],experimental:{renderBuiltUrl(u,{hostType:l,hostId:f}){return l==="html"&&!f.startsWith("wix/html")?"__STATICS_BASE_URL_PLACEHOLDER__"+u:l!=="js"?{relative:!0}:{runtime:`import.meta.url.replace(${`"${f}"`}, ${`"${u}"`})`}}}}}export{wa as a,mx as b};
|
|
155
|
-
//# sourceMappingURL=chunk-
|
|
155
|
+
//# sourceMappingURL=chunk-HMJ5TWEC.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire as _createRequire } from 'node:module';
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
|
-
import{a as wt,c as kt,d as yr,f as mg,g as gg,h as yt,i as Gn,j as ap,m as Dg,n as Eg,o as lp,q as dS,r as hS}from"./chunk-YT3VC22W.js";import{a as et,b as Wt,c as Z,d as up,e as me,f as lo,g as _,h as d}from"./chunk-HFDLXX7R.js";var xg=Z((pP,vg)=>{"use strict";d();var mS=hS(),gS=dS(),DS="Expected a function";function ES(e,t,r){var n=!0,s=!0;if(typeof e!="function")throw new TypeError(DS);return gS(r)&&(n="leading"in r?!!r.leading:n,s="trailing"in r?!!r.trailing:s),mS(e,t,{leading:n,maxWait:t,trailing:s})}vg.exports=ES});var Cg=Z((DP,vS)=>{vS.exports=[{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE"},{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN"},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"SYSTEM_TEAMFOUNDATIONCOLLECTIONURI",pr:"SYSTEM_PULLREQUEST_PULLREQUESTID"},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"Codefresh",constant:"CODEFRESH",env:"CF_BUILD_ID",pr:{any:["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{name:"Codemagic",constant:"CODEMAGIC",env:"CM_BUILD_ID",pr:"CM_PULL_REQUEST"},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"Expo Application Services",constant:"EAS",env:"EAS_BUILD"},{name:"Gerrit",constant:"GERRIT",env:"GERRIT_PROJECT"},{name:"GitHub Actions",constant:"GITHUB_ACTIONS",env:"GITHUB_ACTIONS",pr:{GITHUB_EVENT_NAME:"pull_request"}},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI",pr:"CI_MERGE_REQUEST_ID"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"Google Cloud Build",constant:"GOOGLE_CLOUD_BUILD",env:"BUILDER_OUTPUT"},{name:"Harness CI",constant:"HARNESS",env:"HARNESS_BUILD_ID"},{name:"Heroku",constant:"HEROKU",env:{env:"NODE",includes:"/app/.heroku/node/bin/node"}},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"LayerCI",constant:"LAYERCI",env:"LAYERCI",pr:"LAYERCI_PULL_REQUEST"},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Nevercode",constant:"NEVERCODE",env:"NEVERCODE",pr:{env:"NEVERCODE_PULL_REQUEST",ne:"false"}},{name:"ReleaseHub",constant:"RELEASEHUB",env:"RELEASE_BUILD_ID"},{name:"Render",constant:"RENDER",env:"RENDER",pr:{IS_PULL_REQUEST:"true"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Screwdriver",constant:"SCREWDRIVER",env:"SCREWDRIVER",pr:{env:"SD_PULL_REQUEST",ne:"false"}},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Shippable",constant:"SHIPPABLE",env:"SHIPPABLE",pr:{IS_PULL_REQUEST:"true"}},{name:"Solano CI",constant:"SOLANO",env:"TDDIUM",pr:"TDDIUM_PR_ID"},{name:"Sourcehut",constant:"SOURCEHUT",env:{CI_NAME:"sourcehut"}},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}},{name:"Vercel",constant:"VERCEL",env:{any:["NOW_BUILDER","VERCEL"]}},{name:"Visual Studio App Center",constant:"APPCENTER",env:"APPCENTER_BUILD_ID"},{name:"Woodpecker",constant:"WOODPECKER",env:{CI:"woodpecker"},pr:{CI_BUILD_EVENT:"pull_request"}},{name:"Xcode Cloud",constant:"XCODE_CLOUD",env:"CI_XCODE_PROJECT",pr:"CI_PULL_REQUEST_NUMBER"},{name:"Xcode Server",constant:"XCODE_SERVER",env:"XCS"}]});var Sg=Z(ar=>{"use strict";d();var Fg=Cg(),dt=process.env;Object.defineProperty(ar,"_vendors",{value:Fg.map(function(e){return e.constant})});ar.name=null;ar.isPR=null;Fg.forEach(function(e){let r=(Array.isArray(e.env)?e.env:[e.env]).every(function(n){return _g(n)});if(ar[e.constant]=r,!!r)switch(ar.name=e.name,typeof e.pr){case"string":ar.isPR=!!dt[e.pr];break;case"object":"env"in e.pr?ar.isPR=e.pr.env in dt&&dt[e.pr.env]!==e.pr.ne:"any"in e.pr?ar.isPR=e.pr.any.some(function(n){return!!dt[n]}):ar.isPR=_g(e.pr);break;default:ar.isPR=null}});ar.isCI=!!(dt.CI!=="false"&&(dt.BUILD_ID||dt.BUILD_NUMBER||dt.CI||dt.CI_APP_ID||dt.CI_BUILD_ID||dt.CI_BUILD_NUMBER||dt.CI_NAME||dt.CONTINUOUS_INTEGRATION||dt.RUN_ID||ar.name));function _g(e){return typeof e=="string"?!!dt[e]:"env"in e?dt[e.env]&&dt[e.env].includes(e.includes):"any"in e?e.any.some(function(t){return!!dt[t]}):Object.keys(e).every(function(t){return dt[t]===e[t]})}});var wg=Z((xP,Tg)=>{"use strict";d();Tg.exports=Sg().isCI});var Ag=Z((FP,Oa)=>{"use strict";d();Oa.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Oa.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Oa.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var hp=Z((TP,ho)=>{"use strict";d();var $e=global.process,di=function(e){return e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function"};di($e)?(bg=et("assert"),fo=Ag(),Og=/^win/i.test($e.platform),Bs=et("events"),typeof Bs!="function"&&(Bs=Bs.EventEmitter),$e.__signal_exit_emitter__?Ct=$e.__signal_exit_emitter__:(Ct=$e.__signal_exit_emitter__=new Bs,Ct.count=0,Ct.emitted={}),Ct.infinite||(Ct.setMaxListeners(1/0),Ct.infinite=!0),ho.exports=function(e,t){if(!di(global.process))return function(){};bg.equal(typeof e,"function","a callback must be provided for exit handler"),po===!1&&pp();var r="exit";t&&t.alwaysLast&&(r="afterexit");var n=function(){Ct.removeListener(r,e),Ct.listeners("exit").length===0&&Ct.listeners("afterexit").length===0&&Ia()};return Ct.on(r,e),n},Ia=function(){!po||!di(global.process)||(po=!1,fo.forEach(function(t){try{$e.removeListener(t,Na[t])}catch{}}),$e.emit=Ra,$e.reallyExit=dp,Ct.count-=1)},ho.exports.unload=Ia,hi=function(t,r,n){Ct.emitted[t]||(Ct.emitted[t]=!0,Ct.emit(t,r,n))},Na={},fo.forEach(function(e){Na[e]=function(){if(di(global.process)){var r=$e.listeners(e);r.length===Ct.count&&(Ia(),hi("exit",null,e),hi("afterexit",null,e),Og&&e==="SIGHUP"&&(e="SIGINT"),$e.kill($e.pid,e))}}}),ho.exports.signals=function(){return fo},po=!1,pp=function(){po||!di(global.process)||(po=!0,Ct.count+=1,fo=fo.filter(function(t){try{return $e.on(t,Na[t]),!0}catch{return!1}}),$e.emit=Ng,$e.reallyExit=Ig)},ho.exports.load=pp,dp=$e.reallyExit,Ig=function(t){di(global.process)&&($e.exitCode=t||0,hi("exit",$e.exitCode,null),hi("afterexit",$e.exitCode,null),dp.call($e,$e.exitCode))},Ra=$e.emit,Ng=function(t,r){if(t==="exit"&&di(global.process)){r!==void 0&&($e.exitCode=r);var n=Ra.apply(this,arguments);return hi("exit",$e.exitCode,null),hi("afterexit",$e.exitCode,null),n}else return Ra.apply(this,arguments)}):ho.exports=function(){return function(){}};var bg,fo,Og,Bs,Ct,Ia,hi,Na,po,pp,dp,Ig,Ra,Ng});var sE=Z(Me=>{"use strict";d();function vp(e,t){var r=e.length;e.push(t);e:for(;0<r;){var n=r-1>>>1,s=e[n];if(0<La(s,t))e[n]=t,e[r]=s,r=n;else break e}}function Ur(e){return e.length===0?null:e[0]}function Ba(e){if(e.length===0)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,s=e.length,a=s>>>1;n<a;){var l=2*(n+1)-1,p=e[l],h=l+1,g=e[h];if(0>La(p,r))h<s&&0>La(g,p)?(e[n]=g,e[h]=r,n=h):(e[n]=p,e[l]=r,n=l);else if(h<s&&0>La(g,r))e[n]=g,e[h]=r,n=h;else break e}}return t}function La(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(KD=performance,Me.unstable_now=function(){return KD.now()}):(gp=Date,QD=gp.now(),Me.unstable_now=function(){return gp.now()-QD});var KD,gp,QD,tn=[],jn=[],SS=1,Cr=null,Ut=3,ka=!1,mi=!1,Us=!1,tE=typeof setTimeout=="function"?setTimeout:null,rE=typeof clearTimeout=="function"?clearTimeout:null,ZD=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function xp(e){for(var t=Ur(jn);t!==null;){if(t.callback===null)Ba(jn);else if(t.startTime<=e)Ba(jn),t.sortIndex=t.expirationTime,vp(tn,t);else break;t=Ur(jn)}}function yp(e){if(Us=!1,xp(e),!mi)if(Ur(tn)!==null)mi=!0,_p(Cp);else{var t=Ur(jn);t!==null&&Fp(yp,t.startTime-e)}}function Cp(e,t){mi=!1,Us&&(Us=!1,rE(Ms),Ms=-1),ka=!0;var r=Ut;try{for(xp(t),Cr=Ur(tn);Cr!==null&&(!(Cr.expirationTime>t)||e&&!oE());){var n=Cr.callback;if(typeof n=="function"){Cr.callback=null,Ut=Cr.priorityLevel;var s=n(Cr.expirationTime<=t);t=Me.unstable_now(),typeof s=="function"?Cr.callback=s:Cr===Ur(tn)&&Ba(tn),xp(t)}else Ba(tn);Cr=Ur(tn)}if(Cr!==null)var a=!0;else{var l=Ur(jn);l!==null&&Fp(yp,l.startTime-t),a=!1}return a}finally{Cr=null,Ut=r,ka=!1}}var Ua=!1,Pa=null,Ms=-1,nE=5,iE=-1;function oE(){return!(Me.unstable_now()-iE<nE)}function Dp(){if(Pa!==null){var e=Me.unstable_now();iE=e;var t=!0;try{t=Pa(!0,e)}finally{t?ks():(Ua=!1,Pa=null)}}else Ua=!1}var ks;typeof ZD=="function"?ks=function(){ZD(Dp)}:typeof MessageChannel<"u"?(Ep=new MessageChannel,eE=Ep.port2,Ep.port1.onmessage=Dp,ks=function(){eE.postMessage(null)}):ks=function(){tE(Dp,0)};var Ep,eE;function _p(e){Pa=e,Ua||(Ua=!0,ks())}function Fp(e,t){Ms=tE(function(){e(Me.unstable_now())},t)}Me.unstable_IdlePriority=5;Me.unstable_ImmediatePriority=1;Me.unstable_LowPriority=4;Me.unstable_NormalPriority=3;Me.unstable_Profiling=null;Me.unstable_UserBlockingPriority=2;Me.unstable_cancelCallback=function(e){e.callback=null};Me.unstable_continueExecution=function(){mi||ka||(mi=!0,_p(Cp))};Me.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):nE=0<e?Math.floor(1e3/e):5};Me.unstable_getCurrentPriorityLevel=function(){return Ut};Me.unstable_getFirstCallbackNode=function(){return Ur(tn)};Me.unstable_next=function(e){switch(Ut){case 1:case 2:case 3:var t=3;break;default:t=Ut}var r=Ut;Ut=t;try{return e()}finally{Ut=r}};Me.unstable_pauseExecution=function(){};Me.unstable_requestPaint=function(){};Me.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=Ut;Ut=e;try{return t()}finally{Ut=r}};Me.unstable_scheduleCallback=function(e,t,r){var n=Me.unstable_now();switch(typeof r=="object"&&r!==null?(r=r.delay,r=typeof r=="number"&&0<r?n+r:n):r=n,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=r+s,e={id:SS++,callback:t,priorityLevel:e,startTime:r,expirationTime:s,sortIndex:-1},r>n?(e.sortIndex=r,vp(jn,e),Ur(tn)===null&&e===Ur(jn)&&(Us?(rE(Ms),Ms=-1):Us=!0,Fp(yp,r-n))):(e.sortIndex=s,vp(tn,e),mi||ka||(mi=!0,_p(Cp))),e};Me.unstable_shouldYield=oE;Me.unstable_wrapCallback=function(e){var t=Ut;return function(){var r=Ut;Ut=t;try{return e.apply(this,arguments)}finally{Ut=r}}}});var aE=Z((VP,uE)=>{"use strict";d();uE.exports=sE()});var cE=Z((YP,lE)=>{"use strict";d();lE.exports=function(t){var r={},n=et("react"),s=aE(),a=Object.assign;function l(i){for(var o="https://reactjs.org/docs/error-decoder.html?invariant="+i,u=1;u<arguments.length;u++)o+="&args[]="+encodeURIComponent(arguments[u]);return"Minified React error #"+i+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var p=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,h=Symbol.for("react.element"),g=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),w=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),G=Symbol.for("react.memo"),W=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var H=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var X=Symbol.iterator;function Y(i){return i===null||typeof i!="object"?null:(i=X&&i[X]||i["@@iterator"],typeof i=="function"?i:null)}function le(i){if(i==null)return null;if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case D:return"Fragment";case g:return"Portal";case E:return"Profiler";case v:return"StrictMode";case I:return"Suspense";case P:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case w:return(i.displayName||"Context")+".Consumer";case S:return(i._context.displayName||"Context")+".Provider";case N:var o=i.render;return i=i.displayName,i||(i=o.displayName||o.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case G:return o=i.displayName||null,o!==null?o:le(i.type)||"Memo";case W:o=i._payload,i=i._init;try{return le(i(o))}catch{}}return null}function Le(i){var o=i.type;switch(i.tag){case 24:return"Cache";case 9:return(o.displayName||"Context")+".Consumer";case 10:return(o._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return i=o.render,i=i.displayName||i.name||"",o.displayName||(i!==""?"ForwardRef("+i+")":"ForwardRef");case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return le(o);case 8:return o===v?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o}return null}function Ae(i){var o=i,u=i;if(i.alternate)for(;o.return;)o=o.return;else{i=o;do o=i,o.flags&4098&&(u=o.return),i=o.return;while(i)}return o.tag===3?u:null}function _e(i){if(Ae(i)!==i)throw Error(l(188))}function Ft(i){var o=i.alternate;if(!o){if(o=Ae(i),o===null)throw Error(l(188));return o!==i?null:i}for(var u=i,c=o;;){var f=u.return;if(f===null)break;var m=f.alternate;if(m===null){if(c=f.return,c!==null){u=c;continue}break}if(f.child===m.child){for(m=f.child;m;){if(m===u)return _e(f),i;if(m===c)return _e(f),o;m=m.sibling}throw Error(l(188))}if(u.return!==c.return)u=f,c=m;else{for(var x=!1,T=f.child;T;){if(T===u){x=!0,u=f,c=m;break}if(T===c){x=!0,c=f,u=m;break}T=T.sibling}if(!x){for(T=m.child;T;){if(T===u){x=!0,u=m,c=f;break}if(T===c){x=!0,c=m,u=f;break}T=T.sibling}if(!x)throw Error(l(189))}}if(u.alternate!==c)throw Error(l(190))}if(u.tag!==3)throw Error(l(188));return u.stateNode.current===u?i:o}function rt(i){return i=Ft(i),i!==null?Ue(i):null}function Ue(i){if(i.tag===5||i.tag===6)return i;for(i=i.child;i!==null;){var o=Ue(i);if(o!==null)return o;i=i.sibling}return null}function gt(i){if(i.tag===5||i.tag===6)return i;for(i=i.child;i!==null;){if(i.tag!==4){var o=gt(i);if(o!==null)return o}i=i.sibling}return null}var pe=Array.isArray,Yt=t.getPublicInstance,Be=t.getRootHostContext,De=t.getChildHostContext,Ve=t.prepareForCommit,ir=t.resetAfterCommit,wr=t.createInstance,or=t.appendInitialChild,ge=t.finalizeInitialChildren,Ar=t.prepareUpdate,at=t.shouldSetTextContent,ns=t.createTextInstance,is=t.scheduleTimeout,lt=t.cancelTimeout,cn=t.noTimeout,bn=t.isPrimaryRenderer,ct=t.supportsMutation,$t=t.supportsPersistence,Nt=t.supportsHydration,fn=t.getInstanceFromNode,Ou=t.preparePortalMount,Iu=t.getCurrentEventPriority,Ui=t.detachDeletedInstance,os=t.supportsMicrotasks,Nu=t.scheduleMicrotask,On=t.supportsTestSelectors,Ru=t.findFiberRoot,Mi=t.getBoundingRect,Hi=t.getTextContent,pr=t.isHiddenSubtree,Gi=t.matchAccessibilityRole,ss=t.setFocusIfFocusable,ti=t.setupIntersectionObserver,In=t.appendChild,ji=t.appendChildToContainer,Vr=t.commitTextUpdate,us=t.commitMount,br=t.commitUpdate,as=t.insertBefore,qr=t.insertInContainerBefore,ls=t.removeChild,jc=t.removeChildFromContainer,Wi=t.resetTextContent,Wc=t.hideInstance,zc=t.hideTextInstance,Vc=t.unhideInstance,Or=t.unhideTextInstance,zi=t.clearContainer,Lu=t.cloneInstance,Xt=t.createContainerChildSet,cs=t.appendChildToContainerChildSet,Vi=t.finalizeContainerChildren,ri=t.replaceContainerChildren,qi=t.cloneHiddenInstance,Yi=t.cloneHiddenTextInstance,fs=t.canHydrateInstance,qc=t.canHydrateTextInstance,Yc=t.canHydrateSuspenseInstance,Pu=t.isSuspenseInstancePending,ps=t.isSuspenseInstanceFallback,$c=t.getSuspenseInstanceFallbackErrorDetails,Xc=t.registerSuspenseInstanceRetry,$i=t.getNextHydratableSibling,Bu=t.getFirstHydratableChild,Xi=t.getFirstHydratableChildWithinContainer,ku=t.getFirstHydratableChildWithinSuspenseInstance,Jc=t.hydrateInstance,Uu=t.hydrateTextInstance,Ji=t.hydrateSuspenseInstance,Kc=t.getNextHydratableInstanceAfterSuspenseInstance,Mu=t.commitHydratedContainer,ds=t.commitHydratedSuspenseInstance,Ir=t.clearSuspenseBoundary,Hu=t.clearSuspenseBoundaryFromContainer,C=t.shouldDeleteUnhydratedTailInstances,y=t.didNotMatchHydratedContainerTextInstance,b=t.didNotMatchHydratedTextInstance,L;function O(i){if(L===void 0)try{throw Error()}catch(u){var o=u.stack.trim().match(/\n( *(at )?)/);L=o&&o[1]||""}return`
|
|
3
|
+
import{a as wt,c as kt,d as yr,f as mg,g as gg,h as yt,i as Gn,j as ap,m as Dg,n as Eg,o as lp,q as dS,r as hS}from"./chunk-GXCVI5BG.js";import{a as et,b as Wt,c as Z,d as up,e as me,f as lo,g as _,h as d}from"./chunk-HFDLXX7R.js";var xg=Z((pP,vg)=>{"use strict";d();var mS=hS(),gS=dS(),DS="Expected a function";function ES(e,t,r){var n=!0,s=!0;if(typeof e!="function")throw new TypeError(DS);return gS(r)&&(n="leading"in r?!!r.leading:n,s="trailing"in r?!!r.trailing:s),mS(e,t,{leading:n,maxWait:t,trailing:s})}vg.exports=ES});var Cg=Z((DP,vS)=>{vS.exports=[{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE"},{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN"},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"SYSTEM_TEAMFOUNDATIONCOLLECTIONURI",pr:"SYSTEM_PULLREQUEST_PULLREQUESTID"},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"Codefresh",constant:"CODEFRESH",env:"CF_BUILD_ID",pr:{any:["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{name:"Codemagic",constant:"CODEMAGIC",env:"CM_BUILD_ID",pr:"CM_PULL_REQUEST"},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"Expo Application Services",constant:"EAS",env:"EAS_BUILD"},{name:"Gerrit",constant:"GERRIT",env:"GERRIT_PROJECT"},{name:"GitHub Actions",constant:"GITHUB_ACTIONS",env:"GITHUB_ACTIONS",pr:{GITHUB_EVENT_NAME:"pull_request"}},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI",pr:"CI_MERGE_REQUEST_ID"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"Google Cloud Build",constant:"GOOGLE_CLOUD_BUILD",env:"BUILDER_OUTPUT"},{name:"Harness CI",constant:"HARNESS",env:"HARNESS_BUILD_ID"},{name:"Heroku",constant:"HEROKU",env:{env:"NODE",includes:"/app/.heroku/node/bin/node"}},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"LayerCI",constant:"LAYERCI",env:"LAYERCI",pr:"LAYERCI_PULL_REQUEST"},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Nevercode",constant:"NEVERCODE",env:"NEVERCODE",pr:{env:"NEVERCODE_PULL_REQUEST",ne:"false"}},{name:"ReleaseHub",constant:"RELEASEHUB",env:"RELEASE_BUILD_ID"},{name:"Render",constant:"RENDER",env:"RENDER",pr:{IS_PULL_REQUEST:"true"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Screwdriver",constant:"SCREWDRIVER",env:"SCREWDRIVER",pr:{env:"SD_PULL_REQUEST",ne:"false"}},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Shippable",constant:"SHIPPABLE",env:"SHIPPABLE",pr:{IS_PULL_REQUEST:"true"}},{name:"Solano CI",constant:"SOLANO",env:"TDDIUM",pr:"TDDIUM_PR_ID"},{name:"Sourcehut",constant:"SOURCEHUT",env:{CI_NAME:"sourcehut"}},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}},{name:"Vercel",constant:"VERCEL",env:{any:["NOW_BUILDER","VERCEL"]}},{name:"Visual Studio App Center",constant:"APPCENTER",env:"APPCENTER_BUILD_ID"},{name:"Woodpecker",constant:"WOODPECKER",env:{CI:"woodpecker"},pr:{CI_BUILD_EVENT:"pull_request"}},{name:"Xcode Cloud",constant:"XCODE_CLOUD",env:"CI_XCODE_PROJECT",pr:"CI_PULL_REQUEST_NUMBER"},{name:"Xcode Server",constant:"XCODE_SERVER",env:"XCS"}]});var Sg=Z(ar=>{"use strict";d();var Fg=Cg(),dt=process.env;Object.defineProperty(ar,"_vendors",{value:Fg.map(function(e){return e.constant})});ar.name=null;ar.isPR=null;Fg.forEach(function(e){let r=(Array.isArray(e.env)?e.env:[e.env]).every(function(n){return _g(n)});if(ar[e.constant]=r,!!r)switch(ar.name=e.name,typeof e.pr){case"string":ar.isPR=!!dt[e.pr];break;case"object":"env"in e.pr?ar.isPR=e.pr.env in dt&&dt[e.pr.env]!==e.pr.ne:"any"in e.pr?ar.isPR=e.pr.any.some(function(n){return!!dt[n]}):ar.isPR=_g(e.pr);break;default:ar.isPR=null}});ar.isCI=!!(dt.CI!=="false"&&(dt.BUILD_ID||dt.BUILD_NUMBER||dt.CI||dt.CI_APP_ID||dt.CI_BUILD_ID||dt.CI_BUILD_NUMBER||dt.CI_NAME||dt.CONTINUOUS_INTEGRATION||dt.RUN_ID||ar.name));function _g(e){return typeof e=="string"?!!dt[e]:"env"in e?dt[e.env]&&dt[e.env].includes(e.includes):"any"in e?e.any.some(function(t){return!!dt[t]}):Object.keys(e).every(function(t){return dt[t]===e[t]})}});var wg=Z((xP,Tg)=>{"use strict";d();Tg.exports=Sg().isCI});var Ag=Z((FP,Oa)=>{"use strict";d();Oa.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Oa.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Oa.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var hp=Z((TP,ho)=>{"use strict";d();var $e=global.process,di=function(e){return e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function"};di($e)?(bg=et("assert"),fo=Ag(),Og=/^win/i.test($e.platform),Bs=et("events"),typeof Bs!="function"&&(Bs=Bs.EventEmitter),$e.__signal_exit_emitter__?Ct=$e.__signal_exit_emitter__:(Ct=$e.__signal_exit_emitter__=new Bs,Ct.count=0,Ct.emitted={}),Ct.infinite||(Ct.setMaxListeners(1/0),Ct.infinite=!0),ho.exports=function(e,t){if(!di(global.process))return function(){};bg.equal(typeof e,"function","a callback must be provided for exit handler"),po===!1&&pp();var r="exit";t&&t.alwaysLast&&(r="afterexit");var n=function(){Ct.removeListener(r,e),Ct.listeners("exit").length===0&&Ct.listeners("afterexit").length===0&&Ia()};return Ct.on(r,e),n},Ia=function(){!po||!di(global.process)||(po=!1,fo.forEach(function(t){try{$e.removeListener(t,Na[t])}catch{}}),$e.emit=Ra,$e.reallyExit=dp,Ct.count-=1)},ho.exports.unload=Ia,hi=function(t,r,n){Ct.emitted[t]||(Ct.emitted[t]=!0,Ct.emit(t,r,n))},Na={},fo.forEach(function(e){Na[e]=function(){if(di(global.process)){var r=$e.listeners(e);r.length===Ct.count&&(Ia(),hi("exit",null,e),hi("afterexit",null,e),Og&&e==="SIGHUP"&&(e="SIGINT"),$e.kill($e.pid,e))}}}),ho.exports.signals=function(){return fo},po=!1,pp=function(){po||!di(global.process)||(po=!0,Ct.count+=1,fo=fo.filter(function(t){try{return $e.on(t,Na[t]),!0}catch{return!1}}),$e.emit=Ng,$e.reallyExit=Ig)},ho.exports.load=pp,dp=$e.reallyExit,Ig=function(t){di(global.process)&&($e.exitCode=t||0,hi("exit",$e.exitCode,null),hi("afterexit",$e.exitCode,null),dp.call($e,$e.exitCode))},Ra=$e.emit,Ng=function(t,r){if(t==="exit"&&di(global.process)){r!==void 0&&($e.exitCode=r);var n=Ra.apply(this,arguments);return hi("exit",$e.exitCode,null),hi("afterexit",$e.exitCode,null),n}else return Ra.apply(this,arguments)}):ho.exports=function(){return function(){}};var bg,fo,Og,Bs,Ct,Ia,hi,Na,po,pp,dp,Ig,Ra,Ng});var sE=Z(Me=>{"use strict";d();function vp(e,t){var r=e.length;e.push(t);e:for(;0<r;){var n=r-1>>>1,s=e[n];if(0<La(s,t))e[n]=t,e[r]=s,r=n;else break e}}function Ur(e){return e.length===0?null:e[0]}function Ba(e){if(e.length===0)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,s=e.length,a=s>>>1;n<a;){var l=2*(n+1)-1,p=e[l],h=l+1,g=e[h];if(0>La(p,r))h<s&&0>La(g,p)?(e[n]=g,e[h]=r,n=h):(e[n]=p,e[l]=r,n=l);else if(h<s&&0>La(g,r))e[n]=g,e[h]=r,n=h;else break e}}return t}function La(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(KD=performance,Me.unstable_now=function(){return KD.now()}):(gp=Date,QD=gp.now(),Me.unstable_now=function(){return gp.now()-QD});var KD,gp,QD,tn=[],jn=[],SS=1,Cr=null,Ut=3,ka=!1,mi=!1,Us=!1,tE=typeof setTimeout=="function"?setTimeout:null,rE=typeof clearTimeout=="function"?clearTimeout:null,ZD=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function xp(e){for(var t=Ur(jn);t!==null;){if(t.callback===null)Ba(jn);else if(t.startTime<=e)Ba(jn),t.sortIndex=t.expirationTime,vp(tn,t);else break;t=Ur(jn)}}function yp(e){if(Us=!1,xp(e),!mi)if(Ur(tn)!==null)mi=!0,_p(Cp);else{var t=Ur(jn);t!==null&&Fp(yp,t.startTime-e)}}function Cp(e,t){mi=!1,Us&&(Us=!1,rE(Ms),Ms=-1),ka=!0;var r=Ut;try{for(xp(t),Cr=Ur(tn);Cr!==null&&(!(Cr.expirationTime>t)||e&&!oE());){var n=Cr.callback;if(typeof n=="function"){Cr.callback=null,Ut=Cr.priorityLevel;var s=n(Cr.expirationTime<=t);t=Me.unstable_now(),typeof s=="function"?Cr.callback=s:Cr===Ur(tn)&&Ba(tn),xp(t)}else Ba(tn);Cr=Ur(tn)}if(Cr!==null)var a=!0;else{var l=Ur(jn);l!==null&&Fp(yp,l.startTime-t),a=!1}return a}finally{Cr=null,Ut=r,ka=!1}}var Ua=!1,Pa=null,Ms=-1,nE=5,iE=-1;function oE(){return!(Me.unstable_now()-iE<nE)}function Dp(){if(Pa!==null){var e=Me.unstable_now();iE=e;var t=!0;try{t=Pa(!0,e)}finally{t?ks():(Ua=!1,Pa=null)}}else Ua=!1}var ks;typeof ZD=="function"?ks=function(){ZD(Dp)}:typeof MessageChannel<"u"?(Ep=new MessageChannel,eE=Ep.port2,Ep.port1.onmessage=Dp,ks=function(){eE.postMessage(null)}):ks=function(){tE(Dp,0)};var Ep,eE;function _p(e){Pa=e,Ua||(Ua=!0,ks())}function Fp(e,t){Ms=tE(function(){e(Me.unstable_now())},t)}Me.unstable_IdlePriority=5;Me.unstable_ImmediatePriority=1;Me.unstable_LowPriority=4;Me.unstable_NormalPriority=3;Me.unstable_Profiling=null;Me.unstable_UserBlockingPriority=2;Me.unstable_cancelCallback=function(e){e.callback=null};Me.unstable_continueExecution=function(){mi||ka||(mi=!0,_p(Cp))};Me.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):nE=0<e?Math.floor(1e3/e):5};Me.unstable_getCurrentPriorityLevel=function(){return Ut};Me.unstable_getFirstCallbackNode=function(){return Ur(tn)};Me.unstable_next=function(e){switch(Ut){case 1:case 2:case 3:var t=3;break;default:t=Ut}var r=Ut;Ut=t;try{return e()}finally{Ut=r}};Me.unstable_pauseExecution=function(){};Me.unstable_requestPaint=function(){};Me.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=Ut;Ut=e;try{return t()}finally{Ut=r}};Me.unstable_scheduleCallback=function(e,t,r){var n=Me.unstable_now();switch(typeof r=="object"&&r!==null?(r=r.delay,r=typeof r=="number"&&0<r?n+r:n):r=n,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=r+s,e={id:SS++,callback:t,priorityLevel:e,startTime:r,expirationTime:s,sortIndex:-1},r>n?(e.sortIndex=r,vp(jn,e),Ur(tn)===null&&e===Ur(jn)&&(Us?(rE(Ms),Ms=-1):Us=!0,Fp(yp,r-n))):(e.sortIndex=s,vp(tn,e),mi||ka||(mi=!0,_p(Cp))),e};Me.unstable_shouldYield=oE;Me.unstable_wrapCallback=function(e){var t=Ut;return function(){var r=Ut;Ut=t;try{return e.apply(this,arguments)}finally{Ut=r}}}});var aE=Z((VP,uE)=>{"use strict";d();uE.exports=sE()});var cE=Z((YP,lE)=>{"use strict";d();lE.exports=function(t){var r={},n=et("react"),s=aE(),a=Object.assign;function l(i){for(var o="https://reactjs.org/docs/error-decoder.html?invariant="+i,u=1;u<arguments.length;u++)o+="&args[]="+encodeURIComponent(arguments[u]);return"Minified React error #"+i+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var p=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,h=Symbol.for("react.element"),g=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),w=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),G=Symbol.for("react.memo"),W=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var H=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var X=Symbol.iterator;function Y(i){return i===null||typeof i!="object"?null:(i=X&&i[X]||i["@@iterator"],typeof i=="function"?i:null)}function le(i){if(i==null)return null;if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case D:return"Fragment";case g:return"Portal";case E:return"Profiler";case v:return"StrictMode";case I:return"Suspense";case P:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case w:return(i.displayName||"Context")+".Consumer";case S:return(i._context.displayName||"Context")+".Provider";case N:var o=i.render;return i=i.displayName,i||(i=o.displayName||o.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case G:return o=i.displayName||null,o!==null?o:le(i.type)||"Memo";case W:o=i._payload,i=i._init;try{return le(i(o))}catch{}}return null}function Le(i){var o=i.type;switch(i.tag){case 24:return"Cache";case 9:return(o.displayName||"Context")+".Consumer";case 10:return(o._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return i=o.render,i=i.displayName||i.name||"",o.displayName||(i!==""?"ForwardRef("+i+")":"ForwardRef");case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return le(o);case 8:return o===v?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o}return null}function Ae(i){var o=i,u=i;if(i.alternate)for(;o.return;)o=o.return;else{i=o;do o=i,o.flags&4098&&(u=o.return),i=o.return;while(i)}return o.tag===3?u:null}function _e(i){if(Ae(i)!==i)throw Error(l(188))}function Ft(i){var o=i.alternate;if(!o){if(o=Ae(i),o===null)throw Error(l(188));return o!==i?null:i}for(var u=i,c=o;;){var f=u.return;if(f===null)break;var m=f.alternate;if(m===null){if(c=f.return,c!==null){u=c;continue}break}if(f.child===m.child){for(m=f.child;m;){if(m===u)return _e(f),i;if(m===c)return _e(f),o;m=m.sibling}throw Error(l(188))}if(u.return!==c.return)u=f,c=m;else{for(var x=!1,T=f.child;T;){if(T===u){x=!0,u=f,c=m;break}if(T===c){x=!0,c=f,u=m;break}T=T.sibling}if(!x){for(T=m.child;T;){if(T===u){x=!0,u=m,c=f;break}if(T===c){x=!0,c=m,u=f;break}T=T.sibling}if(!x)throw Error(l(189))}}if(u.alternate!==c)throw Error(l(190))}if(u.tag!==3)throw Error(l(188));return u.stateNode.current===u?i:o}function rt(i){return i=Ft(i),i!==null?Ue(i):null}function Ue(i){if(i.tag===5||i.tag===6)return i;for(i=i.child;i!==null;){var o=Ue(i);if(o!==null)return o;i=i.sibling}return null}function gt(i){if(i.tag===5||i.tag===6)return i;for(i=i.child;i!==null;){if(i.tag!==4){var o=gt(i);if(o!==null)return o}i=i.sibling}return null}var pe=Array.isArray,Yt=t.getPublicInstance,Be=t.getRootHostContext,De=t.getChildHostContext,Ve=t.prepareForCommit,ir=t.resetAfterCommit,wr=t.createInstance,or=t.appendInitialChild,ge=t.finalizeInitialChildren,Ar=t.prepareUpdate,at=t.shouldSetTextContent,ns=t.createTextInstance,is=t.scheduleTimeout,lt=t.cancelTimeout,cn=t.noTimeout,bn=t.isPrimaryRenderer,ct=t.supportsMutation,$t=t.supportsPersistence,Nt=t.supportsHydration,fn=t.getInstanceFromNode,Ou=t.preparePortalMount,Iu=t.getCurrentEventPriority,Ui=t.detachDeletedInstance,os=t.supportsMicrotasks,Nu=t.scheduleMicrotask,On=t.supportsTestSelectors,Ru=t.findFiberRoot,Mi=t.getBoundingRect,Hi=t.getTextContent,pr=t.isHiddenSubtree,Gi=t.matchAccessibilityRole,ss=t.setFocusIfFocusable,ti=t.setupIntersectionObserver,In=t.appendChild,ji=t.appendChildToContainer,Vr=t.commitTextUpdate,us=t.commitMount,br=t.commitUpdate,as=t.insertBefore,qr=t.insertInContainerBefore,ls=t.removeChild,jc=t.removeChildFromContainer,Wi=t.resetTextContent,Wc=t.hideInstance,zc=t.hideTextInstance,Vc=t.unhideInstance,Or=t.unhideTextInstance,zi=t.clearContainer,Lu=t.cloneInstance,Xt=t.createContainerChildSet,cs=t.appendChildToContainerChildSet,Vi=t.finalizeContainerChildren,ri=t.replaceContainerChildren,qi=t.cloneHiddenInstance,Yi=t.cloneHiddenTextInstance,fs=t.canHydrateInstance,qc=t.canHydrateTextInstance,Yc=t.canHydrateSuspenseInstance,Pu=t.isSuspenseInstancePending,ps=t.isSuspenseInstanceFallback,$c=t.getSuspenseInstanceFallbackErrorDetails,Xc=t.registerSuspenseInstanceRetry,$i=t.getNextHydratableSibling,Bu=t.getFirstHydratableChild,Xi=t.getFirstHydratableChildWithinContainer,ku=t.getFirstHydratableChildWithinSuspenseInstance,Jc=t.hydrateInstance,Uu=t.hydrateTextInstance,Ji=t.hydrateSuspenseInstance,Kc=t.getNextHydratableInstanceAfterSuspenseInstance,Mu=t.commitHydratedContainer,ds=t.commitHydratedSuspenseInstance,Ir=t.clearSuspenseBoundary,Hu=t.clearSuspenseBoundaryFromContainer,C=t.shouldDeleteUnhydratedTailInstances,y=t.didNotMatchHydratedContainerTextInstance,b=t.didNotMatchHydratedTextInstance,L;function O(i){if(L===void 0)try{throw Error()}catch(u){var o=u.stack.trim().match(/\n( *(at )?)/);L=o&&o[1]||""}return`
|
|
4
4
|
`+L+i}var U=!1;function V(i,o){if(!i||U)return"";U=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(o)if(o=function(){throw Error()},Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(J){var c=J}Reflect.construct(i,[],o)}else{try{o.call()}catch(J){c=J}i.call(o.prototype)}else{try{throw Error()}catch(J){c=J}i()}}catch(J){if(J&&c&&typeof J.stack=="string"){for(var f=J.stack.split(`
|
|
5
5
|
`),m=c.stack.split(`
|
|
6
6
|
`),x=f.length-1,T=m.length-1;1<=x&&0<=T&&f[x]!==m[T];)T--;for(;1<=x&&0<=T;x--,T--)if(f[x]!==m[T]){if(x!==1||T!==1)do if(x--,T--,0>T||f[x]!==m[T]){var k=`
|
|
@@ -63,7 +63,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
63
63
|
Failed to update files.
|
|
64
64
|
Failed to sync changes from local files to the Dev Editor
|
|
65
65
|
Still watching local files and will continue to sync changes...
|
|
66
|
-
`}),FailedToWatchFiles:({cause:t})=>{let r=Gt(t);return()=>R.createElement(K,{message:`Failed to watch files. Cause: ${r}`})},FailedToCreateGridApp:({error:t})=>()=>R.createElement(K,{message:"Failed to create an isolated environment.",explanation:t}),DeviceCodeTimedOut:()=>()=>R.createElement(K,{message:"The device code has not been approved in the time allocated, please start the login process again."}),DuplicateComponentIdsError:({issues:t})=>{let r=({issue:s})=>{let a=l=>(0,lm.match)(l,{page:()=>"page",widget:()=>"widget","sidebar-category":()=>"sidebar category","embedded-script":()=>"embedded script","custom-element":()=>"custom element"});return R.createElement(fe,{flexDirection:"column"},R.createElement($,null,R.createElement($,{bold:!0},"Duplicate ID: "),s.id),R.createElement($,{bold:!0},"Extensions:"),s.components.map(({name:l,path:p,type:h})=>R.createElement($,{key:p},"[",a(h),"] ",l," (",p,")")),R.createElement($,null,R.createElement($,{bold:!0},"Possible GUID: "),s.suggestedId))},n=R.createElement(fe,{flexDirection:"column",rowGap:1},R.createElement($,null,"You can use the provided suggested GUIDs as the ID of the newly created extension."),t.map(s=>R.createElement(r,{issue:s,key:s.id})));return()=>R.createElement(K,{message:"Found multiple extensions with the same id, this might happen if you copy paste folders.",hint:n})},FailedToGetPackageDetails:()=>()=>R.createElement(K,{message:"Failed to get package info."}),InvalidCreateAppResponse:()=>()=>R.createElement(K,{message:"`createApp` returned an invalid response."}),InvalidDeployAppResponse:()=>()=>R.createElement(K,{message:"Got unexpected response from server. Make sure you are running a supported version of the Velo CLI."}),FailedToGetPagesDiff:()=>()=>R.createElement(K,{message:"Failed to request pages diff."}),InvalidViteBuildOutput:()=>()=>R.createElement(K,{message:"Invalid vite build output"}),ViteModuleBundleNotFound:()=>()=>R.createElement(K,{message:"Could not find module bundle in vite build output"}),ViteFileNotFoundInOutput:({fileName:t})=>()=>R.createElement(K,{message:`Could not find ${t} in vite build output`}),FailedToCreatePresignedUrl:()=>()=>R.createElement(K,{message:"Failed to create a presigned upload url"}),FailedToUploadApplicationFiles:()=>()=>R.createElement(K,{message:"Failed to upload the application files"}),FailedToVerifyDeployment:()=>()=>R.createElement(K,{message:"Deployment was not finished within the desired timeframe, please try again later."}),FailedToGetUserInfo:()=>()=>R.createElement(K,{message:"Failed to get user information."}),FailedToCreateDevelopmentSite:()=>()=>R.createElement(K,{message:"Failed to create a Development Site"}),FailedToGetDevelopmentSites:()=>()=>R.createElement(K,{message:"Failed to request development sites."}),FailedToGetDevelopmentSitesLimit:()=>()=>R.createElement(K,{message:"Failed to request development sites limit."}),FailedToQuerySites:()=>()=>R.createElement(K,{message:"Failed to request sites list."}),FailedToGetSite:()=>()=>R.createElement(K,{message:"Failed to get information about your configured Development Site"}),FailedToDeploySite:()=>()=>R.createElement(K,{message:"Failed to deploy site."}),FailedToPublishDeployment:()=>()=>R.createElement(Vt,{message:"Failed to publish site."}),SiteNotFound:()=>()=>R.createElement(K,{message:"Site not found."}),FailedToSaveDevelopmentSite:({path:t})=>()=>R.createElement(K,{message:"Failed to save the current development site.",hint:`Make sure the \`${t}\` file has proper permissions and is accessible`}),FailedToBuildApp:()=>()=>R.createElement(K,{message:"Failed to build the application.",hint:"Please check the build output for more information"}),FailedToCheckIfAppInstalled:()=>()=>R.createElement(K,{message:"Failed to fetch site installation details"}),FailedToInitializeGitRepo:({cause:t})=>{let r=Gt(t);return()=>R.createElement(K,{message:`Failed to initialize git repo. Cause: ${r}`})},FailedToInstallDependencies:({cause:t})=>{let r=Gt(t);return()=>R.createElement(K,{message:`Failed to install dependencies. Cause: ${r}`})},FailedToCommitChanges:({cause:t})=>{let r=Gt(t);return()=>R.createElement(K,{message:`Failed to commit changes. Cause: ${r}`})},FailedToDeleteAuthData:({cause:t})=>{let r=Gt(t);return()=>R.createElement(K,{message:`Failed to delete auth data: ${r}`})},FailedToDeleteLegacyAuthData:({cause:t})=>{let r=Gt(t);return()=>R.createElement(K,{message:`Failed to delete legacy auth data: ${r}`})},FailedToSaveAuthData:({cause:t})=>{let r=Gt(t);return()=>R.createElement(K,{message:`Failed to save auth data: ${r}`})},FailedToWriteJson:({filePath:t,cause:r})=>{let n=Gt(r);return()=>R.createElement(K,{message:`Failed to write JSON at path: ${t}. Cause: ${n}`})},TemplatePathNotFound:({templatePath:t})=>()=>R.createElement(K,{message:`Template path not found: ${t}`,hint:"Make sure the template path exists in the remote repository"}),FailedToCloneRepo:({cause:t})=>{let r=Gt(t);return()=>R.createElement(K,{message:`Failed to clone repo: ${r}`,hint:"Make sure the Git URL is correct and that your local Git is configured properly to access the remote repository"})},InvalidGitUrl:({url:t})=>()=>R.createElement(K,{message:`Invalid Git URL: ${t}`,hint:"Make sure the Git URL is in the correct format"}),AuthenticationRequired:()=>()=>R.createElement(K,{message:"You have to already be logged in to run this command."}),SiteConfiguredRequired:()=>()=>R.createElement(K,{message:"You must configure the development site before running this command, or provide a site-id in the command options."}),FailedAddingPackageToWorkspace:()=>()=>R.createElement(K,{message:"Could not add package to the workspaces configuration. Please add it as instructed by your package manager.",hint:R.createElement($,null,"Full error can be found in ",R.createElement($,{bold:!0},"wix-error.log"))}),FailedToGenerateSelfsignedCertificate:()=>()=>R.createElement(K,{message:"Failed to generate a Selfsigned certificate for development."}),NonInteractiveTerminal:()=>()=>R.createElement(K,{message:"This command is not supported in non-interactive terminals. Please run the command in an interactive terminal (TTY)."}),FailedToResolveViteOrigin:()=>()=>R.createElement(K,{message:"Failed to resolve the base url for CSS asset urls"}),FailedToCreateAppRelease:()=>()=>R.createElement(Vt,{message:"Failed to create an app configuration in dev center."}),FailedToUpdateAppRelease:()=>()=>R.createElement(Vt,{message:"Failed to update an app configuration in dev center."}),FailedToCheckDeprecatedStatus:()=>()=>R.createElement(Vt,{message:"Failed to check cli version deprecated status."}),FailedToGetResolveNpmDependenciesResult:()=>()=>R.createElement(Vt,{message:"Failed to resolve Wix's lockfile."}),CliAppVersionMismatch:({cliVersion:t,cliAppVersion:r})=>()=>R.createElement(K,{message:R.createElement($,null,"The versions of ",R.createElement($,{bold:!0},"@wix/cli")," (",t,") and"," ",R.createElement($,{bold:!0},"@wix/cli-app")," (",r,") dependencies do not match"),hint:R.createElement($,null,"Align their versions in your ",R.createElement($,{bold:!0},"package.json")," and re-install dependencies")}),FailedToGetAppValidity:()=>()=>R.createElement(K,{message:"Failed to get validation status for app version from dev center"}),InvalidEmbeddedScriptParameterNames:({templateFilename:t,invalidParameters:r})=>()=>R.createElement(K,{message:`Invalid embedded script template in ${t}`,hint:`Dynamic parameters can only include letters, but some include invalid names: ${r.join(", ")}`}),InvalidEmbeddedScriptTemplate:({templateFilename:t,errorMessage:r})=>()=>R.createElement(K,{message:`Invalid embedded script template in ${t}`,hint:r}),InvalidCustomElementTagName:({tagName:t})=>()=>R.createElement(K,{message:R.createElement($,null,"We use name of folder as tagName for your custom element. Unfortunatly, ",R.createElement($,{bold:!0},t)," is invalid tagName."),hint:R.createElement($,null,"You can find rules for tagName here:"," ",R.createElement($,{bold:!0},"https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/define#valid_custom_element_names"))})})}function Gt(e){return e instanceof Error?e.message:JSON.stringify(e)}function ZR(e){let t=e.path.join(".");return t?`- \`${t}\`: ${e.message}`:`- ${e.message}`}var cm=({error:e,systemErrorOverride:t})=>tL(()=>{let r=gg(e);return mg(r)&&t?t:eL(c_(r.cliCode))},[e,t]);d();import yF from"react";d();import{createContext as rL}from"react";var wc=rL(null);d();d();d();d();var fm=class{value;next;constructor(t){this.value=t}},_u=class{#e;#t;#r;constructor(){this.clear()}enqueue(t){let r=new fm(t);this.#e?(this.#t.next=r,this.#t=r):(this.#e=r,this.#t=r),this.#r++}dequeue(){let t=this.#e;if(t)return this.#e=this.#e.next,this.#r--,t.value}clear(){this.#e=void 0,this.#t=void 0,this.#r=0}get size(){return this.#r}*[Symbol.iterator](){let t=this.#e;for(;t;)yield t.value,t=t.next}};function pm(e){if(!((Number.isInteger(e)||e===Number.POSITIVE_INFINITY)&&e>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");let t=new _u,r=0,n=()=>{r--,t.size>0&&t.dequeue()()},s=async(p,h,g)=>{r++;let D=(async()=>p(...g))();h(D);try{await D}catch{}n()},a=(p,h,g)=>{t.enqueue(s.bind(void 0,p,h,g)),(async()=>(await Promise.resolve(),r<e&&t.size>0&&t.dequeue()()))()},l=(p,...h)=>new Promise(g=>{a(p,g,h)});return Object.defineProperties(l,{activeCount:{get:()=>r},pendingCount:{get:()=>t.size},clearQueue:{value:()=>{t.clear()}}}),l}var qt=me(wt(),1);d();d();var Qo=class extends Error{constructor(t){super(t),this.name="TimeoutError"}},dm=class extends Error{constructor(t){super(),this.name="AbortError",this.message=t}},f_=e=>globalThis.DOMException===void 0?new dm(e):new DOMException(e),p_=e=>{let t=e.reason===void 0?f_("This operation was aborted."):e.reason;return t instanceof Error?t:f_(t)};function hm(e,t){let{milliseconds:r,fallback:n,message:s,customTimers:a={setTimeout,clearTimeout}}=t,l,h=new Promise((g,D)=>{if(typeof r!="number"||Math.sign(r)!==1)throw new TypeError(`Expected \`milliseconds\` to be a positive number, got \`${r}\``);if(t.signal){let{signal:E}=t;E.aborted&&D(p_(E)),E.addEventListener("abort",()=>{D(p_(E))})}if(r===Number.POSITIVE_INFINITY){e.then(g,D);return}let v=new Qo;l=a.setTimeout.call(void 0,()=>{if(n){try{g(n())}catch(E){D(E)}return}typeof e.cancel=="function"&&e.cancel(),s===!1?g():s instanceof Error?D(s):(v.message=s??`Promise timed out after ${r} milliseconds`,D(v))},r),(async()=>{try{g(await e)}catch(E){D(E)}})()}).finally(()=>{h.clear()});return h.clear=()=>{a.clearTimeout.call(void 0,l),l=void 0},h}var mm=Symbol("resolveValue");async function Fu(e,t={}){let{interval:r=20,timeout:n=Number.POSITIVE_INFINITY,before:s=!0}=t,a,l=!1,p=new Promise((h,g)=>{let D=async()=>{try{let v=await e();if(typeof v=="object"&&v[mm])h(v[mm]);else{if(typeof v!="boolean")throw new TypeError("Expected condition to return a boolean");v===!0?h():l||(a=setTimeout(D,r))}}catch(v){g(v)}};s?D():a=setTimeout(D,r)});if(n===Number.POSITIVE_INFINITY)return p;try{return await hm(p,typeof n=="number"?{milliseconds:n}:n)}finally{l=!0,clearTimeout(a)}}Fu.resolveWith=e=>({[mm]:e});d();d();var v_=me(D_(),1),iL=new Set(["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed","fetch failed"]),gm=class extends Error{constructor(t){super(),t instanceof Error?(this.originalError=t,{message:t}=t):(this.originalError=new Error(t),this.originalError.stack=this.stack),this.name="AbortError",this.message=t}},oL=(e,t,r)=>{let n=r.retries-(t-1);return e.attemptNumber=t,e.retriesLeft=n,e},sL=e=>iL.has(e),E_=e=>globalThis.DOMException===void 0?new Error(e):new DOMException(e);async function Su(e,t){return new Promise((r,n)=>{t={onFailedAttempt(){},retries:10,...t};let s=v_.default.operation(t);s.attempt(async a=>{try{r(await e(a))}catch(l){if(!(l instanceof Error)){n(new TypeError(`Non-error was thrown: "${l}". You should only throw errors.`));return}if(l instanceof gm)s.stop(),n(l.originalError);else if(l instanceof TypeError&&!sL(l.message))s.stop(),n(l);else{oL(l,a,t);try{await t.onFailedAttempt(l)}catch(p){n(p);return}s.retry(l)||n(s.mainError())}}}),t.signal&&!t.signal.aborted&&t.signal.addEventListener("abort",()=>{s.stop();let a=t.signal.reason===void 0?E_("The operation was aborted."):t.signal.reason;n(a instanceof Error?a:E_(a))},{once:!0})})}d();d();d();d();function x_(e){e===void 0&&(e="");var t=uL(e),r=t[0],n=t[1];return n?{schemaName:n,schemaType:r}:{schemaName:r}}var uL=function(e){return e.split("#")};d();d();function y_(e,t,r,n){for(var s=e,a=0,l=t.split(".");a<l.length;a++){var p=l[a];if(!s)return r;s=s[p]}return"".concat(s).concat(n)}var aL="_",lL=["wix.com","editorx.com"],cL=["42.wixprod.net"],fL=/{(.*)}/,pL=new RegExp("\\.(".concat(lL.join("|"),")$")),dL=new RegExp("\\.(".concat(cL.join("|"),")$"));function C_(e){var t=gL(e.host),r=EL(t,e.domainToMappings),n=hL(e.protoPath,e.data||{});return vL(n,r)}function hL(e,t){return e.split("/").map(function(r){return mL(r,t)}).join("/")}function mL(e,t){var r=e.match(fL)||[],n=r[1];if(n){var s=e.replace(r[0],"");return y_(t,n,e,s)}return e}function gL(e){var t=DL(e);return t.replace(pL,"._base_domain_").replace(dL,"._api_base_domain_")}function DL(e){return e.replace("create.editorx.com","editor.editorx.com")}function EL(e,t){var r=t[e]||t[aL];return!r&&xL(e)?t[yL]:r}function vL(e,t){var r=t?.find(function(n){return e.startsWith(n.destPath)});return r?r.srcPath+e.slice(r.destPath.length):e}function xL(e){return!!e.match(/\._base_domain_$/)}var yL="www._base_domain_";d();function __(e,t){t===void 0&&(t="");var r={};return Object.entries(e).forEach(function(n){var s=n[0],a=n[1],l=a!==null&&typeof a=="object"&&!Array.isArray(a),p=CL(t,s);if(l){var h=__(a,p);Object.assign(r,h)}else r[p]=a}),r}function CL(e,t){return"".concat(e).concat(e?".":"").concat(t)}function Tu(e){var t=__(e);return Object.entries(t).reduce(function(r,n){var s=n[0],a=n[1],l=Array.isArray(a)?a:[a];return l.forEach(function(p){p!=null&&r.append(s,p)}),r},new URLSearchParams)}d();d();var ut;(function(e){e[e.TO_JSON=0]="TO_JSON",e[e.FROM_JSON=1]="FROM_JSON"})(ut||(ut={}));d();function F_(e,t,r){return t===void 0&&(t={}),function(s,a){return s===void 0&&(s={}),typeof s=="string"?s:l(e,s);function l(D,v){var E={};return[null,void 0].includes(v)?v:(Object.entries(v).forEach(function(S){var w,N,I,P=S[0],G=S[1],W=D[P],H=x_(W),X=H.schemaName,Y=H.schemaType,le=Y==="Map",Le=(I=(N=(w=h(X))===null||w===void 0?void 0:w.checkRepetable)===null||N===void 0?void 0:N.call(w,G))!==null&&I!==void 0?I:Array.isArray(G),Ae;Le?Ae=G.map(function(_e){return p(_e,X)}):le?Ae=g(G,X):Ae=p(G,X),E[P]=Ae}),E)}function p(D,v){if(!v)return D;var E=t[v],S=h(v);if(S)return h(v).transform(D);if(E)return l(E,D);throw new Error("".concat(v," is neither schema nor serializable type"))}function h(D){var v;return(v=r[D])===null||v===void 0?void 0:v[a]}function g(D,v){return Object.entries(D).reduce(function(E,S){var w=S[0],N=S[1];return E[w]=p(N,v),E},{})}}}d();d();var Ac,S_=(Ac={types:["google.protobuf.Timestamp"]},Ac[ut.TO_JSON]={transform:function(e){return e.toISOString()}},Ac[ut.FROM_JSON]={transform:function(e){return new Date(e)}},Ac);d();var bc,T_=(bc={types:["google.protobuf.FieldMask"]},bc[ut.TO_JSON]={transform:function(e){return e.join(",")},checkRepetable:function(e){return e.some(function(t){return Array.isArray(t)})}},bc[ut.FROM_JSON]={transform:function(e){return typeof e=="object"?e.paths:e.split(",")}},bc);d();var Oc,w_=(Oc={types:["google.protobuf.BytesValue","BYTES"]},Oc[ut.TO_JSON]={transform:function(e){var t=e.reduce(function(r,n){return r+String.fromCharCode(n)},"");return btoa(t)}},Oc[ut.FROM_JSON]={transform:function(e){return Uint8Array.from(atob(e),function(t){return t.charCodeAt(0)})}},Oc);d();var Ic,A_=(Ic={types:["google.protobuf.Duration"]},Ic[ut.TO_JSON]={transform:function(e){var t=e.seconds,r=t===void 0?"0":t,n=e.nanos,s=n===void 0?0:n,a="";return s!==0&&(a=".".concat(s.toString().padStart(9,"0"))),"".concat(r).concat(a,"s")}},Ic[ut.FROM_JSON]={transform:function(e){var t=e.substring(0,e.length-1).split("."),r=t[0],n=t[1];return{seconds:r,nanos:_L(n)}}},Ic);function _L(e){var t=0;if(e!==void 0){var r=3-e.length/3;t=parseInt(e,10)*Math.pow(1e3,r)}return t}d();var Nc,b_=(Nc={types:["FLOAT","DOUBLE","google.protobuf.FloatValue","google.protobuf.DoubleValue"]},Nc[ut.TO_JSON]={transform:function(e){return isFinite(e)?e:e.toString()}},Nc[ut.FROM_JSON]={transform:function(e){return e==="NaN"?NaN:e==="Infinity"?1/0:e==="-Infinity"?-1/0:e}},Nc);var O_=[S_,T_,w_,A_,b_];d();var Zo=function(){return Zo=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},Zo.apply(this,arguments)};function I_(e){return e.reduce(function(t,r){var n=r.types.reduce(function(s,a){var l;return Zo(Zo({},s),(l={},l[a]=r,l))},{});return Zo(Zo({},t),n)},{})}var FL=function(e,t,r){if(r||arguments.length===2)for(var n=0,s=t.length,a;n<s;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},SL=I_(FL([],O_,!0));function fr(e,t){t===void 0&&(t={});var r=F_(e,t,SL);return{fromJSON:function(n){var s=TL(n)||n;return r(s,ut.FROM_JSON)},toJSON:function(n){return r(n,ut.TO_JSON)}}}function TL(e){try{return JSON.parse(e)}catch{}}var wL={},AL={},bL={},OL={},IL={},NL={},RL={},LL={body:"BYTES"},N_={body:"BYTES"},PL={},BL={};function es(e){var t={"manage._base_domain_":[{srcPath:"/oauth2",destPath:"/v1/oauth"}],"www.wixapis.com":[{srcPath:"/oauth2",destPath:"/v1/oauth"}],"users._base_domain_":[{srcPath:"/v1/oauth/device/verify",destPath:"/v1/oauth/device/verify"},{srcPath:"/v1/oauth/manage/user-code",destPath:"/v1/oauth/manage/user-code"}],_:[{srcPath:"/_api/oauth2",destPath:"/v1/oauth"}]};return C_(Object.assign(e,{domainToMappings:t}))}function kL(e){var t=fr(wL,{}),r=t.toJSON,n=t.fromJSON,s=fr(N_,{}).fromJSON;function a(l){var p=l.host,h=r(e),g={entityFqdn:"wix.identity.oauth.v1.refresh_token",method:"GET",methodFqn:"wix.identity.oauth2.v1.Oauth2Ng.Authorize",url:es({protoPath:"/v1/oauth/authorize",data:h,host:p}),params:Tu(h),transformResponse:s};return g}return a.fromReq=n,a}kL.__isAmbassador=!0;function Rc(e){var t=fr(LL,{}),r=t.toJSON,n=t.fromJSON,s=fr(N_,{}).fromJSON;function a(l){var p=l.host,h=r(e),g={entityFqdn:"wix.identity.oauth.v1.refresh_token",method:"POST",methodFqn:"wix.identity.oauth2.v1.Oauth2Ng.Token",url:es({protoPath:"/v1/oauth/token",data:h,host:p}),data:h,transformResponse:s};return g}return a.fromReq=n,a}Rc.__isAmbassador=!0;function Dm(e){var t=fr(AL,{}),r=t.toJSON,n=t.fromJSON,s=fr(bL,{}).fromJSON;function a(l){var p=l.host,h=r(e),g={entityFqdn:"wix.identity.oauth.v1.refresh_token",method:"GET",methodFqn:"wix.identity.oauth2.v1.Oauth2Ng.DeviceCode",url:es({protoPath:"/v1/oauth/device/code",data:h,host:p}),params:Tu(h),transformResponse:s};return g}return a.fromReq=n,a}Dm.__isAmbassador=!0;function UL(e){var t=fr(OL,{}),r=t.toJSON,n=t.fromJSON,s=fr(IL,{}).fromJSON;function a(l){var p=l.host,h=r(e),g={entityFqdn:"wix.identity.oauth.v1.refresh_token",method:"GET",methodFqn:"wix.identity.oauth2.v1.Oauth2Ng.DeviceVerify",url:es({protoPath:"/v1/oauth/device/verify",data:h,host:p}),params:Tu(h),transformResponse:s};return g}return a.fromReq=n,a}UL.__isAmbassador=!0;function ML(e){var t=fr(NL,{}),r=t.toJSON,n=t.fromJSON,s=fr(RL,{}).fromJSON;function a(l){var p=l.host,h=r(e),g={entityFqdn:"wix.identity.oauth.v1.refresh_token",method:"DELETE",methodFqn:"wix.identity.oauth2.v1.Oauth2Ng.InvalidateUserCode",url:es({protoPath:"/v1/oauth/manage/user-code",data:h,host:p}),params:Tu(h),transformResponse:s};return g}return a.fromReq=n,a}ML.__isAmbassador=!0;function Em(e){var t=fr(PL,{}),r=t.toJSON,n=t.fromJSON,s=fr(BL,{}).fromJSON;function a(l){var p=l.host,h=r(e),g={entityFqdn:"wix.identity.oauth.v1.refresh_token",method:"POST",methodFqn:"wix.identity.oauth2.v1.Oauth2Ng.RevokeRefreshToken",url:es({protoPath:"/v1/oauth/revoke",data:h,host:p}),data:h,transformResponse:s};return g}return a.fromReq=n,a}Em.__isAmbassador=!0;var wu=me(wt(),1);d();var R_=yt.object({deviceCode:yt.string(),verificationUri:yt.string().url(),userCode:yt.string(),expiresIn:yt.number()}),vm=yt.object({access_token:yt.string(),refresh_token:yt.string(),expires_in:yt.number()}).transform(e=>({accessToken:e.access_token,refreshToken:e.refresh_token,expiresIn:e.expires_in})),xm=yt.object({userId:yt.string().uuid(),email:yt.string().email()}),L_=yt.object({accessToken:yt.string(),refreshToken:yt.string(),expiresIn:yt.number(),issuedAt:yt.number()}),P_=L_.extend({userInfo:xm});var{FailedToGetAuthToken:HL,FailedToGetDeviceCode:GL,FailedToRenewAuthToken:jL,FailedToRenewAuthTokenSiteNotFound:WL,FailedToRevokeRefreshToken:zL}=yr,ym="6f95cec8-3e98-48b9-b4e5-1fb92fcd9973",B_=()=>Math.floor(Date.now()/1e3),Au=class extends Error{},k_=(0,wu.variant)({TokenRenewed:(0,wu.fields)(),RefreshTokenRevoked:(0,wu.fields)()}),Cm=class{constructor(t){this.httpClient=t;let{minRetryTimeout:r}=Gn();this.retryOptions={retries:3,minTimeout:r,maxTimeout:3*1e3}}retryOptions;async requestDeviceCode(t={}){try{let{data:r}=await Su(()=>this.httpClient.request(Dm({...t,clientId:ym})),this.retryOptions);return R_.parse(r)}catch(r){throw new kt({code:GL(),cause:r})}}async createToken(t){try{let r={clientId:ym,grantType:"urn:ietf:params:oauth:grant-type:device_code",scope:"offline_access",...t},{data:n}=await Su(()=>this.httpClient.request(Rc(r)),this.retryOptions);return{...vm.parse(n),issuedAt:B_()}}catch(r){throw sm(r)&&(r.response?.data?.message==="Device code is not yet verified"||r.response?.data?.error==="authorization_pending")?new Au("Device code is not yet verified."):new kt({code:HL(),cause:r})}}async renewToken(t){try{let r={clientId:ym,grantType:"refresh_token",...t},{data:n}=await Su(()=>this.httpClient.request(Rc(r)),this.retryOptions),s=vm.parse(n);return k_.TokenRenewed({...s,issuedAt:B_()})}catch(r){if(sm(r)){if(r.response?.status===400&&r.response?.data?.error==="invalid_grant")return k_.RefreshTokenRevoked({cause:r,siteId:t.siteId});if(t.siteId&&r.response?.status===404&&r.response?.data?.details?.applicationError?.code==="SITE_NOT_FOUND")throw new kt({code:WL({siteId:t.siteId}),cause:r})}throw new kt({code:jL(),cause:r})}}async revokeRefreshToken(t,{email:r}){try{let{data:n}=await this.httpClient.request(Em(t));return n}catch(n){throw new kt({code:zL({email:r}),info:{email:r},cause:n})}}async userInfo({accessToken:t}){try{let r=om({type:"backoffice",getAppToken:()=>t}),{data:n}=await r.get("/_serverless/wix-cli-userinfo/userinfo");return xm.parse(n)}catch(r){throw new kt({code:yr.FailedToGetUserInfo(),cause:r})}}},ts=new Cm(om({type:"backoffice"}));d();import{unlink as VL,rm as qL}from"node:fs/promises";import{resolve as Lc}from"node:path";var An=me(wt(),1);function U_(){return Lc(ap(),"auth.json")}function Fm(){return Lc(ap(),"auth")}function M_(){return Lc(Fm(),"account.json")}function YL(e){return Lc(Fm(),`${e}.json`)}var _m=(0,An.variant)({Authenticated:(0,An.fields)(),Unauthenticated:{},Expired:(0,An.fields)()});async function H_(){let e=M_();if(!await lp(e))return _m.Unauthenticated();let t=await Eg(e),r=P_.parse(t);return Tm(r)?_m.Authenticated(r):_m.Expired(r)}var p$=(0,An.variant)({Authenticated:(0,An.fields)(),Unauthenticated:{},Expired:(0,An.fields)()});async function Sm(e,t){try{let r=t?YL(t):M_();await Dg(r,e)}catch(r){throw new kt({code:yr.FailedToSaveAuthData({cause:r})})}}async function G_(){try{await qL(Fm(),{recursive:!0,force:!0})}catch(e){throw new kt({code:yr.FailedToDeleteAuthData({cause:e})})}}async function j_(){try{await VL(U_())}catch(e){throw new kt({code:yr.FailedToDeleteLegacyAuthData({cause:e})})}}async function Pc(){return lp(U_())}function Tm(e){let t=Math.floor(Date.now()/1e3),r=10*60,n=e.expiresIn-r;return e.issuedAt+n>t}var W_=e=>1e3*e;async function $L({deviceCode:e,expiresIn:t},{signal:r}){try{let n=await Fu(async()=>{try{let l=await ts.createToken({deviceCode:e});return Fu.resolveWith(l)}catch(l){if(l instanceof Au)return!1;throw l}},{interval:Gn().waitForLoginInterval??W_(3),timeout:{milliseconds:W_(t),signal:r}}),s=await ts.userInfo({accessToken:n.accessToken}),a={...n,userInfo:s};return await G_(),await Pc()&&await j_(),await Sm(a),a}catch(n){throw n instanceof Qo?new kt({code:yr.DeviceCodeTimedOut()}):n}}var z_=(0,qt.variant)({Ok:(0,qt.payload)(),Error:(0,qt.fields)()});async function q_({refreshToken:e,userInfo:t}){let r=await ts.renewToken({refreshToken:e});return(0,qt.match)(r,{TokenRenewed:async n=>{let s={userInfo:t,...n};return await Sm(s),z_.Ok(s)},RefreshTokenRevoked:({cause:n})=>z_.Error({cause:n})})}async function XL(){let e=await H_();return(0,qt.match)(e,{Authenticated:t=>t,Unauthenticated:()=>null,Expired:async t=>{let r=await q_(t);return(0,qt.match)(r,{Ok:qt.unpack,Error:(0,qt.constant)(null)})}})}function V_({userInfo:e,...t}){let r=pm(1),n={...t};return{getAccessToken:()=>r(async()=>{if(Tm(n))return n.accessToken;let s=await q_({...n,userInfo:e});return(0,qt.match)(s,{Ok:({payload:a})=>(n=a,n.accessToken),Error:({cause:a})=>{throw new kt({code:yr.FailedToRenewAuthToken(),cause:a})}})}),getRefreshToken:()=>n.refreshToken,userInfo:e}}var bu={async isLoggedIn(){let e=await XL();return e?V_(e):null},async login({deviceCode:e,signal:t}){let r=await $L(e,{signal:t});return V_(r)}};d();var vF=me(wt(),1);import Gc from"react";d();import hF from"react";d();function wm(e){return{evid:5212,src:11,endpoint:"wix-cli",params:e}}function T$(e){return{evid:5208,src:11,endpoint:"wix-cli",params:e}}function w$(e){return{evid:5201,src:11,endpoint:"wix-cli",params:e}}function A$(e){return{evid:5209,src:11,endpoint:"wix-cli",params:e}}function Y_(e){return{evid:5211,src:11,endpoint:"wix-cli",params:e}}function b$(e){return{evid:5210,src:11,endpoint:"wix-cli",params:e}}function O$(e){return{evid:5200,src:11,endpoint:"wix-cli",params:e}}var mF=me(wt(),1);var $_={"login.instructions_title":"Authorize the CLI to access your Wix account:","login.instructions_details":`1. Copy this code to the clipboard: <0>{code}</0>
|
|
66
|
+
`}),FailedToWatchFiles:({cause:t})=>{let r=Gt(t);return()=>R.createElement(K,{message:`Failed to watch files. Cause: ${r}`})},FailedToCreateGridApp:({error:t})=>()=>R.createElement(K,{message:"Failed to create an isolated environment.",explanation:t}),DeviceCodeTimedOut:()=>()=>R.createElement(K,{message:"The device code has not been approved in the time allocated, please start the login process again."}),DuplicateComponentIdsError:({issues:t})=>{let r=({issue:s})=>{let a=l=>(0,lm.match)(l,{page:()=>"page",widget:()=>"widget","sidebar-category":()=>"sidebar category","embedded-script":()=>"embedded script","custom-element":()=>"custom element"});return R.createElement(fe,{flexDirection:"column"},R.createElement($,null,R.createElement($,{bold:!0},"Duplicate ID: "),s.id),R.createElement($,{bold:!0},"Extensions:"),s.components.map(({name:l,path:p,type:h})=>R.createElement($,{key:p},"[",a(h),"] ",l," (",p,")")),R.createElement($,null,R.createElement($,{bold:!0},"Possible GUID: "),s.suggestedId))},n=R.createElement(fe,{flexDirection:"column",rowGap:1},R.createElement($,null,"You can use the provided suggested GUIDs as the ID of the newly created extension."),t.map(s=>R.createElement(r,{issue:s,key:s.id})));return()=>R.createElement(K,{message:"Found multiple extensions with the same id, this might happen if you copy paste folders.",hint:n})},FailedToGetPackageDetails:()=>()=>R.createElement(K,{message:"Failed to get package info."}),InvalidCreateAppResponse:()=>()=>R.createElement(K,{message:"`createApp` returned an invalid response."}),InvalidDeployAppResponse:()=>()=>R.createElement(K,{message:"Got unexpected response from server. Make sure you are running a supported version of the Velo CLI."}),FailedToGetPagesDiff:()=>()=>R.createElement(K,{message:"Failed to request pages diff."}),InvalidViteBuildOutput:()=>()=>R.createElement(K,{message:"Invalid vite build output"}),ViteModuleBundleNotFound:()=>()=>R.createElement(K,{message:"Could not find module bundle in vite build output"}),ViteFileNotFoundInOutput:({fileName:t})=>()=>R.createElement(K,{message:`Could not find ${t} in vite build output`}),FailedToCreatePresignedUrl:()=>()=>R.createElement(K,{message:"Failed to create a presigned upload url"}),FailedToUploadApplicationFiles:()=>()=>R.createElement(K,{message:"Failed to upload the application files"}),FailedToVerifyDeployment:()=>()=>R.createElement(K,{message:"Deployment was not finished within the desired timeframe, please try again later."}),FailedToGetUserInfo:()=>()=>R.createElement(K,{message:"Failed to get user information."}),FailedToCreateDevelopmentSite:()=>()=>R.createElement(K,{message:"Failed to create a Development Site"}),FailedToGetDevelopmentSites:()=>()=>R.createElement(K,{message:"Failed to request development sites."}),FailedToGetDevelopmentSitesLimit:()=>()=>R.createElement(K,{message:"Failed to request development sites limit."}),FailedToQuerySites:()=>()=>R.createElement(K,{message:"Failed to request sites list."}),FailedToGetSite:()=>()=>R.createElement(K,{message:"Failed to get information about your configured Development Site"}),FailedToDeploySite:()=>()=>R.createElement(K,{message:"Failed to deploy site."}),FailedToPublishDeployment:()=>()=>R.createElement(Vt,{message:"Failed to publish site."}),SiteNotFound:()=>()=>R.createElement(K,{message:"Site not found."}),FailedToSaveDevelopmentSite:({path:t})=>()=>R.createElement(K,{message:"Failed to save the current development site.",hint:`Make sure the \`${t}\` file has proper permissions and is accessible`}),FailedToBuildApp:()=>()=>R.createElement(K,{message:"Failed to build the application.",hint:"Please check the build output for more information"}),FailedToCheckIfAppInstalled:()=>()=>R.createElement(K,{message:"Failed to fetch site installation details"}),FailedToInitializeGitRepo:({cause:t})=>{let r=Gt(t);return()=>R.createElement(K,{message:`Failed to initialize git repo. Cause: ${r}`})},FailedToInstallDependencies:({cause:t})=>{let r=Gt(t);return()=>R.createElement(K,{message:`Failed to install dependencies. Cause: ${r}`})},FailedToCommitChanges:({cause:t})=>{let r=Gt(t);return()=>R.createElement(K,{message:`Failed to commit changes. Cause: ${r}`})},FailedToDeleteAuthData:({cause:t})=>{let r=Gt(t);return()=>R.createElement(K,{message:`Failed to delete auth data: ${r}`})},FailedToDeleteLegacyAuthData:({cause:t})=>{let r=Gt(t);return()=>R.createElement(K,{message:`Failed to delete legacy auth data: ${r}`})},FailedToSaveAuthData:({cause:t})=>{let r=Gt(t);return()=>R.createElement(K,{message:`Failed to save auth data: ${r}`})},FailedToWriteJson:({filePath:t,cause:r})=>{let n=Gt(r);return()=>R.createElement(K,{message:`Failed to write JSON at path: ${t}. Cause: ${n}`})},TemplatePathNotFound:({templatePath:t})=>()=>R.createElement(K,{message:`Template path not found: ${t}`,hint:"Make sure the template path exists in the remote repository"}),FailedToCloneRepo:({cause:t})=>{let r=Gt(t);return()=>R.createElement(K,{message:`Failed to clone repo: ${r}`,hint:"Make sure the Git URL is correct and that your local Git is configured properly to access the remote repository"})},InvalidGitUrl:({url:t})=>()=>R.createElement(K,{message:`Invalid Git URL: ${t}`,hint:"Make sure the Git URL is in the correct format"}),AuthenticationRequired:()=>()=>R.createElement(K,{message:"You have to already be logged in to run this command."}),SiteConfiguredRequired:()=>()=>R.createElement(K,{message:"You must configure the development site before running this command, or provide a site-id in the command options."}),FailedAddingPackageToWorkspace:()=>()=>R.createElement(K,{message:"Could not add package to the workspaces configuration. Please add it as instructed by your package manager.",hint:R.createElement($,null,"Full error can be found in ",R.createElement($,{bold:!0},"wix-error.log"))}),FailedToGenerateSelfsignedCertificate:()=>()=>R.createElement(K,{message:"Failed to generate a Selfsigned certificate for development."}),NonInteractiveTerminal:()=>()=>R.createElement(K,{message:"This command is not supported in non-interactive terminals. Please run the command in an interactive terminal (TTY)."}),FailedToResolveViteOrigin:()=>()=>R.createElement(K,{message:"Failed to resolve the base url for CSS asset urls"}),FailedToCreateAppRelease:()=>()=>R.createElement(Vt,{message:"Failed to create an app configuration in dev center."}),FailedToUpdateAppRelease:()=>()=>R.createElement(Vt,{message:"Failed to update an app configuration in dev center."}),FailedToCheckDeprecatedStatus:()=>()=>R.createElement(Vt,{message:"Failed to check cli version deprecated status."}),FailedToGetResolveNpmDependenciesResult:()=>()=>R.createElement(Vt,{message:"Failed to resolve Wix's lockfile."}),CliAppVersionMismatch:({cliVersion:t,cliAppVersion:r})=>()=>R.createElement(K,{message:R.createElement($,null,"The versions of ",R.createElement($,{bold:!0},"@wix/cli")," (",t,") and"," ",R.createElement($,{bold:!0},"@wix/cli-app")," (",r,") dependencies do not match"),hint:R.createElement($,null,"Align their versions in your ",R.createElement($,{bold:!0},"package.json")," and re-install dependencies")}),FailedToGetAppValidity:()=>()=>R.createElement(K,{message:"Failed to get validation status for app version from dev center"}),InvalidEmbeddedScriptParameterNames:({templateFilename:t,invalidParameters:r})=>()=>R.createElement(K,{message:`Invalid embedded script template in ${t}`,hint:`Dynamic parameters can only include letters, but some include invalid names: ${r.join(", ")}`}),InvalidEmbeddedScriptTemplate:({templateFilename:t,errorMessage:r})=>()=>R.createElement(K,{message:`Invalid embedded script template in ${t}`,hint:r}),InvalidCustomElementTagName:({tagName:t,errorMessage:r})=>()=>R.createElement(K,{message:R.createElement($,null,"We use name of folder as tagName for your custom element. Unfortunatly, ",R.createElement($,{bold:!0},t)," is invalid tagName. Reason: ",r),hint:R.createElement($,null,"You can find rules for tagName here:"," ",R.createElement($,{bold:!0},"https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/define#valid_custom_element_names"))})})}function Gt(e){return e instanceof Error?e.message:JSON.stringify(e)}function ZR(e){let t=e.path.join(".");return t?`- \`${t}\`: ${e.message}`:`- ${e.message}`}var cm=({error:e,systemErrorOverride:t})=>tL(()=>{let r=gg(e);return mg(r)&&t?t:eL(c_(r.cliCode))},[e,t]);d();import yF from"react";d();import{createContext as rL}from"react";var wc=rL(null);d();d();d();d();var fm=class{value;next;constructor(t){this.value=t}},_u=class{#e;#t;#r;constructor(){this.clear()}enqueue(t){let r=new fm(t);this.#e?(this.#t.next=r,this.#t=r):(this.#e=r,this.#t=r),this.#r++}dequeue(){let t=this.#e;if(t)return this.#e=this.#e.next,this.#r--,t.value}clear(){this.#e=void 0,this.#t=void 0,this.#r=0}get size(){return this.#r}*[Symbol.iterator](){let t=this.#e;for(;t;)yield t.value,t=t.next}};function pm(e){if(!((Number.isInteger(e)||e===Number.POSITIVE_INFINITY)&&e>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");let t=new _u,r=0,n=()=>{r--,t.size>0&&t.dequeue()()},s=async(p,h,g)=>{r++;let D=(async()=>p(...g))();h(D);try{await D}catch{}n()},a=(p,h,g)=>{t.enqueue(s.bind(void 0,p,h,g)),(async()=>(await Promise.resolve(),r<e&&t.size>0&&t.dequeue()()))()},l=(p,...h)=>new Promise(g=>{a(p,g,h)});return Object.defineProperties(l,{activeCount:{get:()=>r},pendingCount:{get:()=>t.size},clearQueue:{value:()=>{t.clear()}}}),l}var qt=me(wt(),1);d();d();var Qo=class extends Error{constructor(t){super(t),this.name="TimeoutError"}},dm=class extends Error{constructor(t){super(),this.name="AbortError",this.message=t}},f_=e=>globalThis.DOMException===void 0?new dm(e):new DOMException(e),p_=e=>{let t=e.reason===void 0?f_("This operation was aborted."):e.reason;return t instanceof Error?t:f_(t)};function hm(e,t){let{milliseconds:r,fallback:n,message:s,customTimers:a={setTimeout,clearTimeout}}=t,l,h=new Promise((g,D)=>{if(typeof r!="number"||Math.sign(r)!==1)throw new TypeError(`Expected \`milliseconds\` to be a positive number, got \`${r}\``);if(t.signal){let{signal:E}=t;E.aborted&&D(p_(E)),E.addEventListener("abort",()=>{D(p_(E))})}if(r===Number.POSITIVE_INFINITY){e.then(g,D);return}let v=new Qo;l=a.setTimeout.call(void 0,()=>{if(n){try{g(n())}catch(E){D(E)}return}typeof e.cancel=="function"&&e.cancel(),s===!1?g():s instanceof Error?D(s):(v.message=s??`Promise timed out after ${r} milliseconds`,D(v))},r),(async()=>{try{g(await e)}catch(E){D(E)}})()}).finally(()=>{h.clear()});return h.clear=()=>{a.clearTimeout.call(void 0,l),l=void 0},h}var mm=Symbol("resolveValue");async function Fu(e,t={}){let{interval:r=20,timeout:n=Number.POSITIVE_INFINITY,before:s=!0}=t,a,l=!1,p=new Promise((h,g)=>{let D=async()=>{try{let v=await e();if(typeof v=="object"&&v[mm])h(v[mm]);else{if(typeof v!="boolean")throw new TypeError("Expected condition to return a boolean");v===!0?h():l||(a=setTimeout(D,r))}}catch(v){g(v)}};s?D():a=setTimeout(D,r)});if(n===Number.POSITIVE_INFINITY)return p;try{return await hm(p,typeof n=="number"?{milliseconds:n}:n)}finally{l=!0,clearTimeout(a)}}Fu.resolveWith=e=>({[mm]:e});d();d();var v_=me(D_(),1),iL=new Set(["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed","fetch failed"]),gm=class extends Error{constructor(t){super(),t instanceof Error?(this.originalError=t,{message:t}=t):(this.originalError=new Error(t),this.originalError.stack=this.stack),this.name="AbortError",this.message=t}},oL=(e,t,r)=>{let n=r.retries-(t-1);return e.attemptNumber=t,e.retriesLeft=n,e},sL=e=>iL.has(e),E_=e=>globalThis.DOMException===void 0?new Error(e):new DOMException(e);async function Su(e,t){return new Promise((r,n)=>{t={onFailedAttempt(){},retries:10,...t};let s=v_.default.operation(t);s.attempt(async a=>{try{r(await e(a))}catch(l){if(!(l instanceof Error)){n(new TypeError(`Non-error was thrown: "${l}". You should only throw errors.`));return}if(l instanceof gm)s.stop(),n(l.originalError);else if(l instanceof TypeError&&!sL(l.message))s.stop(),n(l);else{oL(l,a,t);try{await t.onFailedAttempt(l)}catch(p){n(p);return}s.retry(l)||n(s.mainError())}}}),t.signal&&!t.signal.aborted&&t.signal.addEventListener("abort",()=>{s.stop();let a=t.signal.reason===void 0?E_("The operation was aborted."):t.signal.reason;n(a instanceof Error?a:E_(a))},{once:!0})})}d();d();d();d();function x_(e){e===void 0&&(e="");var t=uL(e),r=t[0],n=t[1];return n?{schemaName:n,schemaType:r}:{schemaName:r}}var uL=function(e){return e.split("#")};d();d();function y_(e,t,r,n){for(var s=e,a=0,l=t.split(".");a<l.length;a++){var p=l[a];if(!s)return r;s=s[p]}return"".concat(s).concat(n)}var aL="_",lL=["wix.com","editorx.com"],cL=["42.wixprod.net"],fL=/{(.*)}/,pL=new RegExp("\\.(".concat(lL.join("|"),")$")),dL=new RegExp("\\.(".concat(cL.join("|"),")$"));function C_(e){var t=gL(e.host),r=EL(t,e.domainToMappings),n=hL(e.protoPath,e.data||{});return vL(n,r)}function hL(e,t){return e.split("/").map(function(r){return mL(r,t)}).join("/")}function mL(e,t){var r=e.match(fL)||[],n=r[1];if(n){var s=e.replace(r[0],"");return y_(t,n,e,s)}return e}function gL(e){var t=DL(e);return t.replace(pL,"._base_domain_").replace(dL,"._api_base_domain_")}function DL(e){return e.replace("create.editorx.com","editor.editorx.com")}function EL(e,t){var r=t[e]||t[aL];return!r&&xL(e)?t[yL]:r}function vL(e,t){var r=t?.find(function(n){return e.startsWith(n.destPath)});return r?r.srcPath+e.slice(r.destPath.length):e}function xL(e){return!!e.match(/\._base_domain_$/)}var yL="www._base_domain_";d();function __(e,t){t===void 0&&(t="");var r={};return Object.entries(e).forEach(function(n){var s=n[0],a=n[1],l=a!==null&&typeof a=="object"&&!Array.isArray(a),p=CL(t,s);if(l){var h=__(a,p);Object.assign(r,h)}else r[p]=a}),r}function CL(e,t){return"".concat(e).concat(e?".":"").concat(t)}function Tu(e){var t=__(e);return Object.entries(t).reduce(function(r,n){var s=n[0],a=n[1],l=Array.isArray(a)?a:[a];return l.forEach(function(p){p!=null&&r.append(s,p)}),r},new URLSearchParams)}d();d();var ut;(function(e){e[e.TO_JSON=0]="TO_JSON",e[e.FROM_JSON=1]="FROM_JSON"})(ut||(ut={}));d();function F_(e,t,r){return t===void 0&&(t={}),function(s,a){return s===void 0&&(s={}),typeof s=="string"?s:l(e,s);function l(D,v){var E={};return[null,void 0].includes(v)?v:(Object.entries(v).forEach(function(S){var w,N,I,P=S[0],G=S[1],W=D[P],H=x_(W),X=H.schemaName,Y=H.schemaType,le=Y==="Map",Le=(I=(N=(w=h(X))===null||w===void 0?void 0:w.checkRepetable)===null||N===void 0?void 0:N.call(w,G))!==null&&I!==void 0?I:Array.isArray(G),Ae;Le?Ae=G.map(function(_e){return p(_e,X)}):le?Ae=g(G,X):Ae=p(G,X),E[P]=Ae}),E)}function p(D,v){if(!v)return D;var E=t[v],S=h(v);if(S)return h(v).transform(D);if(E)return l(E,D);throw new Error("".concat(v," is neither schema nor serializable type"))}function h(D){var v;return(v=r[D])===null||v===void 0?void 0:v[a]}function g(D,v){return Object.entries(D).reduce(function(E,S){var w=S[0],N=S[1];return E[w]=p(N,v),E},{})}}}d();d();var Ac,S_=(Ac={types:["google.protobuf.Timestamp"]},Ac[ut.TO_JSON]={transform:function(e){return e.toISOString()}},Ac[ut.FROM_JSON]={transform:function(e){return new Date(e)}},Ac);d();var bc,T_=(bc={types:["google.protobuf.FieldMask"]},bc[ut.TO_JSON]={transform:function(e){return e.join(",")},checkRepetable:function(e){return e.some(function(t){return Array.isArray(t)})}},bc[ut.FROM_JSON]={transform:function(e){return typeof e=="object"?e.paths:e.split(",")}},bc);d();var Oc,w_=(Oc={types:["google.protobuf.BytesValue","BYTES"]},Oc[ut.TO_JSON]={transform:function(e){var t=e.reduce(function(r,n){return r+String.fromCharCode(n)},"");return btoa(t)}},Oc[ut.FROM_JSON]={transform:function(e){return Uint8Array.from(atob(e),function(t){return t.charCodeAt(0)})}},Oc);d();var Ic,A_=(Ic={types:["google.protobuf.Duration"]},Ic[ut.TO_JSON]={transform:function(e){var t=e.seconds,r=t===void 0?"0":t,n=e.nanos,s=n===void 0?0:n,a="";return s!==0&&(a=".".concat(s.toString().padStart(9,"0"))),"".concat(r).concat(a,"s")}},Ic[ut.FROM_JSON]={transform:function(e){var t=e.substring(0,e.length-1).split("."),r=t[0],n=t[1];return{seconds:r,nanos:_L(n)}}},Ic);function _L(e){var t=0;if(e!==void 0){var r=3-e.length/3;t=parseInt(e,10)*Math.pow(1e3,r)}return t}d();var Nc,b_=(Nc={types:["FLOAT","DOUBLE","google.protobuf.FloatValue","google.protobuf.DoubleValue"]},Nc[ut.TO_JSON]={transform:function(e){return isFinite(e)?e:e.toString()}},Nc[ut.FROM_JSON]={transform:function(e){return e==="NaN"?NaN:e==="Infinity"?1/0:e==="-Infinity"?-1/0:e}},Nc);var O_=[S_,T_,w_,A_,b_];d();var Zo=function(){return Zo=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},Zo.apply(this,arguments)};function I_(e){return e.reduce(function(t,r){var n=r.types.reduce(function(s,a){var l;return Zo(Zo({},s),(l={},l[a]=r,l))},{});return Zo(Zo({},t),n)},{})}var FL=function(e,t,r){if(r||arguments.length===2)for(var n=0,s=t.length,a;n<s;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},SL=I_(FL([],O_,!0));function fr(e,t){t===void 0&&(t={});var r=F_(e,t,SL);return{fromJSON:function(n){var s=TL(n)||n;return r(s,ut.FROM_JSON)},toJSON:function(n){return r(n,ut.TO_JSON)}}}function TL(e){try{return JSON.parse(e)}catch{}}var wL={},AL={},bL={},OL={},IL={},NL={},RL={},LL={body:"BYTES"},N_={body:"BYTES"},PL={},BL={};function es(e){var t={"manage._base_domain_":[{srcPath:"/oauth2",destPath:"/v1/oauth"}],"www.wixapis.com":[{srcPath:"/oauth2",destPath:"/v1/oauth"}],"users._base_domain_":[{srcPath:"/v1/oauth/device/verify",destPath:"/v1/oauth/device/verify"},{srcPath:"/v1/oauth/manage/user-code",destPath:"/v1/oauth/manage/user-code"}],_:[{srcPath:"/_api/oauth2",destPath:"/v1/oauth"}]};return C_(Object.assign(e,{domainToMappings:t}))}function kL(e){var t=fr(wL,{}),r=t.toJSON,n=t.fromJSON,s=fr(N_,{}).fromJSON;function a(l){var p=l.host,h=r(e),g={entityFqdn:"wix.identity.oauth.v1.refresh_token",method:"GET",methodFqn:"wix.identity.oauth2.v1.Oauth2Ng.Authorize",url:es({protoPath:"/v1/oauth/authorize",data:h,host:p}),params:Tu(h),transformResponse:s};return g}return a.fromReq=n,a}kL.__isAmbassador=!0;function Rc(e){var t=fr(LL,{}),r=t.toJSON,n=t.fromJSON,s=fr(N_,{}).fromJSON;function a(l){var p=l.host,h=r(e),g={entityFqdn:"wix.identity.oauth.v1.refresh_token",method:"POST",methodFqn:"wix.identity.oauth2.v1.Oauth2Ng.Token",url:es({protoPath:"/v1/oauth/token",data:h,host:p}),data:h,transformResponse:s};return g}return a.fromReq=n,a}Rc.__isAmbassador=!0;function Dm(e){var t=fr(AL,{}),r=t.toJSON,n=t.fromJSON,s=fr(bL,{}).fromJSON;function a(l){var p=l.host,h=r(e),g={entityFqdn:"wix.identity.oauth.v1.refresh_token",method:"GET",methodFqn:"wix.identity.oauth2.v1.Oauth2Ng.DeviceCode",url:es({protoPath:"/v1/oauth/device/code",data:h,host:p}),params:Tu(h),transformResponse:s};return g}return a.fromReq=n,a}Dm.__isAmbassador=!0;function UL(e){var t=fr(OL,{}),r=t.toJSON,n=t.fromJSON,s=fr(IL,{}).fromJSON;function a(l){var p=l.host,h=r(e),g={entityFqdn:"wix.identity.oauth.v1.refresh_token",method:"GET",methodFqn:"wix.identity.oauth2.v1.Oauth2Ng.DeviceVerify",url:es({protoPath:"/v1/oauth/device/verify",data:h,host:p}),params:Tu(h),transformResponse:s};return g}return a.fromReq=n,a}UL.__isAmbassador=!0;function ML(e){var t=fr(NL,{}),r=t.toJSON,n=t.fromJSON,s=fr(RL,{}).fromJSON;function a(l){var p=l.host,h=r(e),g={entityFqdn:"wix.identity.oauth.v1.refresh_token",method:"DELETE",methodFqn:"wix.identity.oauth2.v1.Oauth2Ng.InvalidateUserCode",url:es({protoPath:"/v1/oauth/manage/user-code",data:h,host:p}),params:Tu(h),transformResponse:s};return g}return a.fromReq=n,a}ML.__isAmbassador=!0;function Em(e){var t=fr(PL,{}),r=t.toJSON,n=t.fromJSON,s=fr(BL,{}).fromJSON;function a(l){var p=l.host,h=r(e),g={entityFqdn:"wix.identity.oauth.v1.refresh_token",method:"POST",methodFqn:"wix.identity.oauth2.v1.Oauth2Ng.RevokeRefreshToken",url:es({protoPath:"/v1/oauth/revoke",data:h,host:p}),data:h,transformResponse:s};return g}return a.fromReq=n,a}Em.__isAmbassador=!0;var wu=me(wt(),1);d();var R_=yt.object({deviceCode:yt.string(),verificationUri:yt.string().url(),userCode:yt.string(),expiresIn:yt.number()}),vm=yt.object({access_token:yt.string(),refresh_token:yt.string(),expires_in:yt.number()}).transform(e=>({accessToken:e.access_token,refreshToken:e.refresh_token,expiresIn:e.expires_in})),xm=yt.object({userId:yt.string().uuid(),email:yt.string().email()}),L_=yt.object({accessToken:yt.string(),refreshToken:yt.string(),expiresIn:yt.number(),issuedAt:yt.number()}),P_=L_.extend({userInfo:xm});var{FailedToGetAuthToken:HL,FailedToGetDeviceCode:GL,FailedToRenewAuthToken:jL,FailedToRenewAuthTokenSiteNotFound:WL,FailedToRevokeRefreshToken:zL}=yr,ym="6f95cec8-3e98-48b9-b4e5-1fb92fcd9973",B_=()=>Math.floor(Date.now()/1e3),Au=class extends Error{},k_=(0,wu.variant)({TokenRenewed:(0,wu.fields)(),RefreshTokenRevoked:(0,wu.fields)()}),Cm=class{constructor(t){this.httpClient=t;let{minRetryTimeout:r}=Gn();this.retryOptions={retries:3,minTimeout:r,maxTimeout:3*1e3}}retryOptions;async requestDeviceCode(t={}){try{let{data:r}=await Su(()=>this.httpClient.request(Dm({...t,clientId:ym})),this.retryOptions);return R_.parse(r)}catch(r){throw new kt({code:GL(),cause:r})}}async createToken(t){try{let r={clientId:ym,grantType:"urn:ietf:params:oauth:grant-type:device_code",scope:"offline_access",...t},{data:n}=await Su(()=>this.httpClient.request(Rc(r)),this.retryOptions);return{...vm.parse(n),issuedAt:B_()}}catch(r){throw sm(r)&&(r.response?.data?.message==="Device code is not yet verified"||r.response?.data?.error==="authorization_pending")?new Au("Device code is not yet verified."):new kt({code:HL(),cause:r})}}async renewToken(t){try{let r={clientId:ym,grantType:"refresh_token",...t},{data:n}=await Su(()=>this.httpClient.request(Rc(r)),this.retryOptions),s=vm.parse(n);return k_.TokenRenewed({...s,issuedAt:B_()})}catch(r){if(sm(r)){if(r.response?.status===400&&r.response?.data?.error==="invalid_grant")return k_.RefreshTokenRevoked({cause:r,siteId:t.siteId});if(t.siteId&&r.response?.status===404&&r.response?.data?.details?.applicationError?.code==="SITE_NOT_FOUND")throw new kt({code:WL({siteId:t.siteId}),cause:r})}throw new kt({code:jL(),cause:r})}}async revokeRefreshToken(t,{email:r}){try{let{data:n}=await this.httpClient.request(Em(t));return n}catch(n){throw new kt({code:zL({email:r}),info:{email:r},cause:n})}}async userInfo({accessToken:t}){try{let r=om({type:"backoffice",getAppToken:()=>t}),{data:n}=await r.get("/_serverless/wix-cli-userinfo/userinfo");return xm.parse(n)}catch(r){throw new kt({code:yr.FailedToGetUserInfo(),cause:r})}}},ts=new Cm(om({type:"backoffice"}));d();import{unlink as VL,rm as qL}from"node:fs/promises";import{resolve as Lc}from"node:path";var An=me(wt(),1);function U_(){return Lc(ap(),"auth.json")}function Fm(){return Lc(ap(),"auth")}function M_(){return Lc(Fm(),"account.json")}function YL(e){return Lc(Fm(),`${e}.json`)}var _m=(0,An.variant)({Authenticated:(0,An.fields)(),Unauthenticated:{},Expired:(0,An.fields)()});async function H_(){let e=M_();if(!await lp(e))return _m.Unauthenticated();let t=await Eg(e),r=P_.parse(t);return Tm(r)?_m.Authenticated(r):_m.Expired(r)}var p$=(0,An.variant)({Authenticated:(0,An.fields)(),Unauthenticated:{},Expired:(0,An.fields)()});async function Sm(e,t){try{let r=t?YL(t):M_();await Dg(r,e)}catch(r){throw new kt({code:yr.FailedToSaveAuthData({cause:r})})}}async function G_(){try{await qL(Fm(),{recursive:!0,force:!0})}catch(e){throw new kt({code:yr.FailedToDeleteAuthData({cause:e})})}}async function j_(){try{await VL(U_())}catch(e){throw new kt({code:yr.FailedToDeleteLegacyAuthData({cause:e})})}}async function Pc(){return lp(U_())}function Tm(e){let t=Math.floor(Date.now()/1e3),r=10*60,n=e.expiresIn-r;return e.issuedAt+n>t}var W_=e=>1e3*e;async function $L({deviceCode:e,expiresIn:t},{signal:r}){try{let n=await Fu(async()=>{try{let l=await ts.createToken({deviceCode:e});return Fu.resolveWith(l)}catch(l){if(l instanceof Au)return!1;throw l}},{interval:Gn().waitForLoginInterval??W_(3),timeout:{milliseconds:W_(t),signal:r}}),s=await ts.userInfo({accessToken:n.accessToken}),a={...n,userInfo:s};return await G_(),await Pc()&&await j_(),await Sm(a),a}catch(n){throw n instanceof Qo?new kt({code:yr.DeviceCodeTimedOut()}):n}}var z_=(0,qt.variant)({Ok:(0,qt.payload)(),Error:(0,qt.fields)()});async function q_({refreshToken:e,userInfo:t}){let r=await ts.renewToken({refreshToken:e});return(0,qt.match)(r,{TokenRenewed:async n=>{let s={userInfo:t,...n};return await Sm(s),z_.Ok(s)},RefreshTokenRevoked:({cause:n})=>z_.Error({cause:n})})}async function XL(){let e=await H_();return(0,qt.match)(e,{Authenticated:t=>t,Unauthenticated:()=>null,Expired:async t=>{let r=await q_(t);return(0,qt.match)(r,{Ok:qt.unpack,Error:(0,qt.constant)(null)})}})}function V_({userInfo:e,...t}){let r=pm(1),n={...t};return{getAccessToken:()=>r(async()=>{if(Tm(n))return n.accessToken;let s=await q_({...n,userInfo:e});return(0,qt.match)(s,{Ok:({payload:a})=>(n=a,n.accessToken),Error:({cause:a})=>{throw new kt({code:yr.FailedToRenewAuthToken(),cause:a})}})}),getRefreshToken:()=>n.refreshToken,userInfo:e}}var bu={async isLoggedIn(){let e=await XL();return e?V_(e):null},async login({deviceCode:e,signal:t}){let r=await $L(e,{signal:t});return V_(r)}};d();var vF=me(wt(),1);import Gc from"react";d();import hF from"react";d();function wm(e){return{evid:5212,src:11,endpoint:"wix-cli",params:e}}function T$(e){return{evid:5208,src:11,endpoint:"wix-cli",params:e}}function w$(e){return{evid:5201,src:11,endpoint:"wix-cli",params:e}}function A$(e){return{evid:5209,src:11,endpoint:"wix-cli",params:e}}function Y_(e){return{evid:5211,src:11,endpoint:"wix-cli",params:e}}function b$(e){return{evid:5210,src:11,endpoint:"wix-cli",params:e}}function O$(e){return{evid:5200,src:11,endpoint:"wix-cli",params:e}}var mF=me(wt(),1);var $_={"login.instructions_title":"Authorize the CLI to access your Wix account:","login.instructions_details":`1. Copy this code to the clipboard: <0>{code}</0>
|
|
67
67
|
2. Press <1/> to connect to <2/> then paste the code`,"login.legacy_auth_notice":"We implemented a new and more secure login method. You'll need to re-login to continue using the CLI.","login.error_opening_browser":"Failed to open browser, please try opening <0/> manually."};d();import nr,{useState as aP}from"react";d();var fF=me(aF(),1);d();var lF=me(Sc(),1);async function cF(e,t){await(0,lF.createHttpClient)().post(e,void 0,{params:{url:t}})}async function pF(e){let{userBrowserTestEndpoint:t}=Gn();t?await cF(t,e):await(0,fF.default)(e,{background:!0})}var dF=({userCode:e,verificationUri:t})=>{let{reportError:r}=yh(),[n,s]=aP(null);return Vn((a,l)=>{l.return&&pF(t).catch(p=>{r(p),s(p)})}),nr.createElement(nr.Fragment,null,nr.createElement(Qn,{i18nKey:"login.instructions_title"}),nr.createElement(fe,{flexDirection:"column",marginTop:1,marginBottom:1,marginLeft:2},nr.createElement(Qn,{i18nKey:"login.instructions_details",components:[nr.createElement($,{skin:"legacyBlue"}),nr.createElement(uy,{value:"enter"}),nr.createElement(Ud,{url:t})],values:{code:e}})),n&&nr.createElement(nr.Fragment,null,nr.createElement(fe,{flexDirection:"column",marginBottom:1},nr.createElement(cm,{error:n})),nr.createElement(Qn,{i18nKey:"login.error_opening_browser",components:[nr.createElement(Ud,{url:t})]})))};var gF=({loginFn:e,onLogin:t,onError:r})=>{let n=xh();function s(p){n.report(wm({isSuccess:!1,...p instanceof Error?{errorType:p.name}:{errorType:"unknown",errorMessage:JSON.stringify(p)}})),r(p)}let a=ud(async({signal:p},h)=>{try{let g=await e({deviceCode:h,signal:p});n.report(wm({isSuccess:!0})),t(g)}catch(g){s(g)}}),{status:l}=vi(async()=>(n.report(Y_({})),ts.requestDeviceCode()),[],{onSuccess:p=>{a.execute(p)},onError:s});return(0,mF.match)(l,{Error:()=>null,Loading:()=>hF.createElement(cl,null),Success:({result:{userCode:p,verificationUri:h}})=>hF.createElement(dF,{userCode:p,verificationUri:h})})};d();var DF=me(wt(),1);import Hc from"react";var EF=({children:e})=>{let{status:t}=vi(Pc,[],{onError:()=>{}});return(0,DF.match)(t,{Error:()=>null,Loading:()=>null,Success:({result:r})=>Hc.createElement(Hc.Fragment,null,r&&Hc.createElement(fe,{marginBottom:1},Hc.createElement(Qn,{i18nKey:"login.legacy_auth_notice"})),e)})};var xF=({authStrategy:{login:e,isLoggedIn:t},onLogin:r,onError:n,children:s})=>{let{status:a,merge:l}=vi(t,[],{onSuccess:p=>{p&&r(p)},onError:n});return(0,vF.match)(a,{Loading:()=>Gc.createElement(cl,null),Error:()=>null,Success:({result:p})=>p===null?Gc.createElement(vh,{messages:$_},Gc.createElement(EF,null,Gc.createElement(gF,{loginFn:e,onLogin:h=>{l({result:h}),r(h)},onError:n}))):s(p)})};var lP=({children:e,onError:t,onLogin:r})=>{let n=qn();return yF.createElement(xF,{authStrategy:bu,onLogin:({userInfo:s})=>r?.(s),onError:t??n},({getAccessToken:s,userInfo:a})=>yF.createElement(wc.Provider,{value:{getAccessToken:s,userInfo:a}},e))};d();d();import{useContext as cP}from"react";function fP(){let e=cP(wc);if(!e)throw new Error("useAuth() cannot be used without an <AuthProvider>");return e}var{isLoggedIn:PX}=bu;export{Qo as a,Fu as b,Su as c,C_ as d,Tu as e,fr as f,Sc as g,om as h,sm as i,fP as j,wg as k,fe as l,xn as m,Vn as n,$ as o,nA as p,pd as q,dd as r,Xs as s,EA as t,Io as u,fO as v,Nd as w,uy as x,Ud as y,cl as z,qn as A,vi as B,ud as C,Qw as D,Zw as E,Qn as F,Rl as G,Eh as H,vh as I,ZI as J,xh as K,T$ as L,w$ as M,A$ as N,b$ as O,O$ as P,pF as Q,cm as R,nN as S,yh as T,lP as U,PX as V};
|
|
68
68
|
/*! Bundled license information:
|
|
69
69
|
|
|
@@ -103,4 +103,4 @@ react-reconciler/cjs/react-reconciler-constants.production.min.js:
|
|
|
103
103
|
base-64/base64.js:
|
|
104
104
|
(*! https://mths.be/base64 v1.0.0 by @mathias | MIT license *)
|
|
105
105
|
*/
|
|
106
|
-
//# sourceMappingURL=chunk-
|
|
106
|
+
//# sourceMappingURL=chunk-NQPO4DHF.js.map
|