easy-email-pro-core 1.8.2 → 1.8.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/lib/index.cjs.js +1 -1
- package/lib/index.es.js +1 -1
- package/package.json +1 -1
package/lib/index.cjs.js
CHANGED
|
@@ -57,7 +57,7 @@ You passed in: '`+this.raw_options[i]+"'");return u},t.prototype._is_valid_selec
|
|
|
57
57
|
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|
58
58
|
* derived from CryptoJS.mode.CTR
|
|
59
59
|
* Jan Hruby jhruby.web@gmail.com
|
|
60
|
-
*/return r.mode.CTRGladman=function(){var i=r.lib.BlockCipherMode.extend();function n(o){if((o>>24&255)===255){var l=o>>16&255,c=o>>8&255,h=o&255;l===255?(l=0,c===255?(c=0,h===255?h=0:++h):++c):++l,o=0,o+=l<<16,o+=c<<8,o+=h}else o+=1<<24;return o}function a(o){return(o[0]=n(o[0]))===0&&(o[1]=n(o[1])),o}var u=i.Encryptor=i.extend({processBlock:function(o,l){var c=this._cipher,h=c.blockSize,g=this._iv,f=this._counter;g&&(f=this._counter=g.slice(0),this._iv=void 0),a(f);var D=f.slice(0);c.encryptBlock(D,0);for(var m=0;m<h;m++)o[l+m]^=D[m]}});return i.Decryptor=u,i}(),r.mode.CTRGladman})}(so)),ar}var sr={},oo={get exports(){return sr},set exports(t){sr=t}},Mn;function lo(){return Mn||(Mn=1,function(t,e){(function(r,i,n){t.exports=i(ue(),ve())})(ee,function(r){return r.mode.OFB=function(){var i=r.lib.BlockCipherMode.extend(),n=i.Encryptor=i.extend({processBlock:function(a,u){var o=this._cipher,l=o.blockSize,c=this._iv,h=this._keystream;c&&(h=this._keystream=c.slice(0),this._iv=void 0),o.encryptBlock(h,0);for(var g=0;g<l;g++)a[u+g]^=h[g]}});return i.Decryptor=n,i}(),r.mode.OFB})}(oo)),sr}var ur={},co={get exports(){return ur},set exports(t){ur=t}},Un;function po(){return Un||(Un=1,function(t,e){(function(r,i,n){t.exports=i(ue(),ve())})(ee,function(r){return r.mode.ECB=function(){var i=r.lib.BlockCipherMode.extend();return i.Encryptor=i.extend({processBlock:function(n,a){this._cipher.encryptBlock(n,a)}}),i.Decryptor=i.extend({processBlock:function(n,a){this._cipher.decryptBlock(n,a)}}),i}(),r.mode.ECB})}(co)),ur}var or={},ho={get exports(){return or},set exports(t){or=t}},zn;function fo(){return zn||(zn=1,function(t,e){(function(r,i,n){t.exports=i(ue(),ve())})(ee,function(r){return r.pad.AnsiX923={pad:function(i,n){var a=i.sigBytes,u=n*4,o=u-a%u,l=a+o-1;i.clamp(),i.words[l>>>2]|=o<<24-l%4*8,i.sigBytes+=o},unpad:function(i){var n=i.words[i.sigBytes-1>>>2]&255;i.sigBytes-=n}},r.pad.Ansix923})}(ho)),or}var lr={},_o={get exports(){return lr},set exports(t){lr=t}},$n;function go(){return $n||($n=1,function(t,e){(function(r,i,n){t.exports=i(ue(),ve())})(ee,function(r){return r.pad.Iso10126={pad:function(i,n){var a=n*4,u=a-i.sigBytes%a;i.concat(r.lib.WordArray.random(u-1)).concat(r.lib.WordArray.create([u<<24],1))},unpad:function(i){var n=i.words[i.sigBytes-1>>>2]&255;i.sigBytes-=n}},r.pad.Iso10126})}(_o)),lr}var cr={},xo={get exports(){return cr},set exports(t){cr=t}},Vn;function mo(){return Vn||(Vn=1,function(t,e){(function(r,i,n){t.exports=i(ue(),ve())})(ee,function(r){return r.pad.Iso97971={pad:function(i,n){i.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(i,n)},unpad:function(i){r.pad.ZeroPadding.unpad(i),i.sigBytes--}},r.pad.Iso97971})}(xo)),cr}var pr={},bo={get exports(){return pr},set exports(t){pr=t}},jn;function vo(){return jn||(jn=1,function(t,e){(function(r,i,n){t.exports=i(ue(),ve())})(ee,function(r){return r.pad.ZeroPadding={pad:function(i,n){var a=n*4;i.clamp(),i.sigBytes+=a-(i.sigBytes%a||a)},unpad:function(i){for(var n=i.words,a=i.sigBytes-1,a=i.sigBytes-1;a>=0;a--)if(n[a>>>2]>>>24-a%4*8&255){i.sigBytes=a+1;break}}},r.pad.ZeroPadding})}(bo)),pr}var hr={},Do={get exports(){return hr},set exports(t){hr=t}},Wn;function Ao(){return Wn||(Wn=1,function(t,e){(function(r,i,n){t.exports=i(ue(),ve())})(ee,function(r){return r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding})}(Do)),hr}var dr={},yo={get exports(){return dr},set exports(t){dr=t}},Gn;function Eo(){return Gn||(Gn=1,function(t,e){(function(r,i,n){t.exports=i(ue(),ve())})(ee,function(r){return function(i){var n=r,a=n.lib,u=a.CipherParams,o=n.enc,l=o.Hex,c=n.format;c.Hex={stringify:function(h){return h.ciphertext.toString(l)},parse:function(h){var g=l.parse(h);return u.create({ciphertext:g})}}}(),r.format.Hex})}(yo)),dr}var fr={},wo={get exports(){return fr},set exports(t){fr=t}},Kn;function Co(){return Kn||(Kn=1,function(t,e){(function(r,i,n){t.exports=i(ue(),ft(),_t(),st(),ve())})(ee,function(r){return function(){var i=r,n=i.lib,a=n.BlockCipher,u=i.algo,o=[],l=[],c=[],h=[],g=[],f=[],D=[],m=[],E=[],_=[];(function(){for(var A=[],x=0;x<256;x++)x<128?A[x]=x<<1:A[x]=x<<1^283;for(var k=0,b=0,x=0;x<256;x++){var w=b^b<<1^b<<2^b<<3^b<<4;w=w>>>8^w&255^99,o[k]=w,l[w]=k;var y=A[k],T=A[y],s=A[T],v=A[w]*257^w*16843008;c[k]=v<<24|v>>>8,h[k]=v<<16|v>>>16,g[k]=v<<8|v>>>24,f[k]=v;var v=s*16843009^T*65537^y*257^k*16843008;D[w]=v<<24|v>>>8,m[w]=v<<16|v>>>16,E[w]=v<<8|v>>>24,_[w]=v,k?(k=y^A[A[A[s^y]]],b^=A[A[b]]):k=b=1}})();var p=[0,1,2,4,8,16,32,64,128,27,54],d=u.AES=a.extend({_doReset:function(){var A;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var x=this._keyPriorReset=this._key,k=x.words,b=x.sigBytes/4,w=this._nRounds=b+6,y=(w+1)*4,T=this._keySchedule=[],s=0;s<y;s++)s<b?T[s]=k[s]:(A=T[s-1],s%b?b>6&&s%b==4&&(A=o[A>>>24]<<24|o[A>>>16&255]<<16|o[A>>>8&255]<<8|o[A&255]):(A=A<<8|A>>>24,A=o[A>>>24]<<24|o[A>>>16&255]<<16|o[A>>>8&255]<<8|o[A&255],A^=p[s/b|0]<<24),T[s]=T[s-b]^A);for(var v=this._invKeySchedule=[],C=0;C<y;C++){var s=y-C;if(C%4)var A=T[s];else var A=T[s-4];C<4||s<=4?v[C]=A:v[C]=D[o[A>>>24]]^m[o[A>>>16&255]]^E[o[A>>>8&255]]^_[o[A&255]]}}},encryptBlock:function(A,x){this._doCryptBlock(A,x,this._keySchedule,c,h,g,f,o)},decryptBlock:function(A,x){var k=A[x+1];A[x+1]=A[x+3],A[x+3]=k,this._doCryptBlock(A,x,this._invKeySchedule,D,m,E,_,l);var k=A[x+1];A[x+1]=A[x+3],A[x+3]=k},_doCryptBlock:function(A,x,k,b,w,y,T,s){for(var v=this._nRounds,C=A[x]^k[0],B=A[x+1]^k[1],R=A[x+2]^k[2],O=A[x+3]^k[3],H=4,P=1;P<v;P++){var V=b[C>>>24]^w[B>>>16&255]^y[R>>>8&255]^T[O&255]^k[H++],q=b[B>>>24]^w[R>>>16&255]^y[O>>>8&255]^T[C&255]^k[H++],$=b[R>>>24]^w[O>>>16&255]^y[C>>>8&255]^T[B&255]^k[H++],F=b[O>>>24]^w[C>>>16&255]^y[B>>>8&255]^T[R&255]^k[H++];C=V,B=q,R=$,O=F}var V=(s[C>>>24]<<24|s[B>>>16&255]<<16|s[R>>>8&255]<<8|s[O&255])^k[H++],q=(s[B>>>24]<<24|s[R>>>16&255]<<16|s[O>>>8&255]<<8|s[C&255])^k[H++],$=(s[R>>>24]<<24|s[O>>>16&255]<<16|s[C>>>8&255]<<8|s[B&255])^k[H++],F=(s[O>>>24]<<24|s[C>>>16&255]<<16|s[B>>>8&255]<<8|s[R&255])^k[H++];A[x]=V,A[x+1]=q,A[x+2]=$,A[x+3]=F},keySize:256/32});i.AES=a._createHelper(d)}(),r.AES})}(wo)),fr}var _r={},Bo={get exports(){return _r},set exports(t){_r=t}},Xn;function To(){return Xn||(Xn=1,function(t,e){(function(r,i,n){t.exports=i(ue(),ft(),_t(),st(),ve())})(ee,function(r){return function(){var i=r,n=i.lib,a=n.WordArray,u=n.BlockCipher,o=i.algo,l=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],c=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],h=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],g=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],f=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],D=o.DES=u.extend({_doReset:function(){for(var p=this._key,d=p.words,A=[],x=0;x<56;x++){var k=l[x]-1;A[x]=d[k>>>5]>>>31-k%32&1}for(var b=this._subKeys=[],w=0;w<16;w++){for(var y=b[w]=[],T=h[w],x=0;x<24;x++)y[x/6|0]|=A[(c[x]-1+T)%28]<<31-x%6,y[4+(x/6|0)]|=A[28+(c[x+24]-1+T)%28]<<31-x%6;y[0]=y[0]<<1|y[0]>>>31;for(var x=1;x<7;x++)y[x]=y[x]>>>(x-1)*4+3;y[7]=y[7]<<5|y[7]>>>27}for(var s=this._invSubKeys=[],x=0;x<16;x++)s[x]=b[15-x]},encryptBlock:function(p,d){this._doCryptBlock(p,d,this._subKeys)},decryptBlock:function(p,d){this._doCryptBlock(p,d,this._invSubKeys)},_doCryptBlock:function(p,d,A){this._lBlock=p[d],this._rBlock=p[d+1],m.call(this,4,252645135),m.call(this,16,65535),E.call(this,2,858993459),E.call(this,8,16711935),m.call(this,1,1431655765);for(var x=0;x<16;x++){for(var k=A[x],b=this._lBlock,w=this._rBlock,y=0,T=0;T<8;T++)y|=g[T][((w^k[T])&f[T])>>>0];this._lBlock=w,this._rBlock=b^y}var s=this._lBlock;this._lBlock=this._rBlock,this._rBlock=s,m.call(this,1,1431655765),E.call(this,8,16711935),E.call(this,2,858993459),m.call(this,16,65535),m.call(this,4,252645135),p[d]=this._lBlock,p[d+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function m(p,d){var A=(this._lBlock>>>p^this._rBlock)&d;this._rBlock^=A,this._lBlock^=A<<p}function E(p,d){var A=(this._rBlock>>>p^this._lBlock)&d;this._lBlock^=A,this._rBlock^=A<<p}i.DES=u._createHelper(D);var _=o.TripleDES=u.extend({_doReset:function(){var p=this._key,d=p.words;if(d.length!==2&&d.length!==4&&d.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var A=d.slice(0,2),x=d.length<4?d.slice(0,2):d.slice(2,4),k=d.length<6?d.slice(0,2):d.slice(4,6);this._des1=D.createEncryptor(a.create(A)),this._des2=D.createEncryptor(a.create(x)),this._des3=D.createEncryptor(a.create(k))},encryptBlock:function(p,d){this._des1.encryptBlock(p,d),this._des2.decryptBlock(p,d),this._des3.encryptBlock(p,d)},decryptBlock:function(p,d){this._des3.decryptBlock(p,d),this._des2.encryptBlock(p,d),this._des1.decryptBlock(p,d)},keySize:192/32,ivSize:64/32,blockSize:64/32});i.TripleDES=u._createHelper(_)}(),r.TripleDES})}(Bo)),_r}var gr={},ko={get exports(){return gr},set exports(t){gr=t}},Yn;function So(){return Yn||(Yn=1,function(t,e){(function(r,i,n){t.exports=i(ue(),ft(),_t(),st(),ve())})(ee,function(r){return function(){var i=r,n=i.lib,a=n.StreamCipher,u=i.algo,o=u.RC4=a.extend({_doReset:function(){for(var h=this._key,g=h.words,f=h.sigBytes,D=this._S=[],m=0;m<256;m++)D[m]=m;for(var m=0,E=0;m<256;m++){var _=m%f,p=g[_>>>2]>>>24-_%4*8&255;E=(E+D[m]+p)%256;var d=D[m];D[m]=D[E],D[E]=d}this._i=this._j=0},_doProcessBlock:function(h,g){h[g]^=l.call(this)},keySize:256/32,ivSize:0});function l(){for(var h=this._S,g=this._i,f=this._j,D=0,m=0;m<4;m++){g=(g+1)%256,f=(f+h[g])%256;var E=h[g];h[g]=h[f],h[f]=E,D|=h[(h[g]+h[f])%256]<<24-m*8}return this._i=g,this._j=f,D}i.RC4=a._createHelper(o);var c=u.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var h=this.cfg.drop;h>0;h--)l.call(this)}});i.RC4Drop=a._createHelper(c)}(),r.RC4})}(ko)),gr}var xr={},Ro={get exports(){return xr},set exports(t){xr=t}},Qn;function Fo(){return Qn||(Qn=1,function(t,e){(function(r,i,n){t.exports=i(ue(),ft(),_t(),st(),ve())})(ee,function(r){return function(){var i=r,n=i.lib,a=n.StreamCipher,u=i.algo,o=[],l=[],c=[],h=u.Rabbit=a.extend({_doReset:function(){for(var f=this._key.words,D=this.cfg.iv,m=0;m<4;m++)f[m]=(f[m]<<8|f[m]>>>24)&16711935|(f[m]<<24|f[m]>>>8)&4278255360;var E=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],_=this._C=[f[2]<<16|f[2]>>>16,f[0]&4294901760|f[1]&65535,f[3]<<16|f[3]>>>16,f[1]&4294901760|f[2]&65535,f[0]<<16|f[0]>>>16,f[2]&4294901760|f[3]&65535,f[1]<<16|f[1]>>>16,f[3]&4294901760|f[0]&65535];this._b=0;for(var m=0;m<4;m++)g.call(this);for(var m=0;m<8;m++)_[m]^=E[m+4&7];if(D){var p=D.words,d=p[0],A=p[1],x=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,k=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,b=x>>>16|k&4294901760,w=k<<16|x&65535;_[0]^=x,_[1]^=b,_[2]^=k,_[3]^=w,_[4]^=x,_[5]^=b,_[6]^=k,_[7]^=w;for(var m=0;m<4;m++)g.call(this)}},_doProcessBlock:function(f,D){var m=this._X;g.call(this),o[0]=m[0]^m[5]>>>16^m[3]<<16,o[1]=m[2]^m[7]>>>16^m[5]<<16,o[2]=m[4]^m[1]>>>16^m[7]<<16,o[3]=m[6]^m[3]>>>16^m[1]<<16;for(var E=0;E<4;E++)o[E]=(o[E]<<8|o[E]>>>24)&16711935|(o[E]<<24|o[E]>>>8)&4278255360,f[D+E]^=o[E]},blockSize:128/32,ivSize:64/32});function g(){for(var f=this._X,D=this._C,m=0;m<8;m++)l[m]=D[m];D[0]=D[0]+1295307597+this._b|0,D[1]=D[1]+3545052371+(D[0]>>>0<l[0]>>>0?1:0)|0,D[2]=D[2]+886263092+(D[1]>>>0<l[1]>>>0?1:0)|0,D[3]=D[3]+1295307597+(D[2]>>>0<l[2]>>>0?1:0)|0,D[4]=D[4]+3545052371+(D[3]>>>0<l[3]>>>0?1:0)|0,D[5]=D[5]+886263092+(D[4]>>>0<l[4]>>>0?1:0)|0,D[6]=D[6]+1295307597+(D[5]>>>0<l[5]>>>0?1:0)|0,D[7]=D[7]+3545052371+(D[6]>>>0<l[6]>>>0?1:0)|0,this._b=D[7]>>>0<l[7]>>>0?1:0;for(var m=0;m<8;m++){var E=f[m]+D[m],_=E&65535,p=E>>>16,d=((_*_>>>17)+_*p>>>15)+p*p,A=((E&4294901760)*E|0)+((E&65535)*E|0);c[m]=d^A}f[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,f[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,f[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,f[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,f[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,f[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,f[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,f[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}i.Rabbit=a._createHelper(h)}(),r.Rabbit})}(Ro)),xr}var mr={},Oo={get exports(){return mr},set exports(t){mr=t}},Zn;function No(){return Zn||(Zn=1,function(t,e){(function(r,i,n){t.exports=i(ue(),ft(),_t(),st(),ve())})(ee,function(r){return function(){var i=r,n=i.lib,a=n.StreamCipher,u=i.algo,o=[],l=[],c=[],h=u.RabbitLegacy=a.extend({_doReset:function(){var f=this._key.words,D=this.cfg.iv,m=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],E=this._C=[f[2]<<16|f[2]>>>16,f[0]&4294901760|f[1]&65535,f[3]<<16|f[3]>>>16,f[1]&4294901760|f[2]&65535,f[0]<<16|f[0]>>>16,f[2]&4294901760|f[3]&65535,f[1]<<16|f[1]>>>16,f[3]&4294901760|f[0]&65535];this._b=0;for(var _=0;_<4;_++)g.call(this);for(var _=0;_<8;_++)E[_]^=m[_+4&7];if(D){var p=D.words,d=p[0],A=p[1],x=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,k=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,b=x>>>16|k&4294901760,w=k<<16|x&65535;E[0]^=x,E[1]^=b,E[2]^=k,E[3]^=w,E[4]^=x,E[5]^=b,E[6]^=k,E[7]^=w;for(var _=0;_<4;_++)g.call(this)}},_doProcessBlock:function(f,D){var m=this._X;g.call(this),o[0]=m[0]^m[5]>>>16^m[3]<<16,o[1]=m[2]^m[7]>>>16^m[5]<<16,o[2]=m[4]^m[1]>>>16^m[7]<<16,o[3]=m[6]^m[3]>>>16^m[1]<<16;for(var E=0;E<4;E++)o[E]=(o[E]<<8|o[E]>>>24)&16711935|(o[E]<<24|o[E]>>>8)&4278255360,f[D+E]^=o[E]},blockSize:128/32,ivSize:64/32});function g(){for(var f=this._X,D=this._C,m=0;m<8;m++)l[m]=D[m];D[0]=D[0]+1295307597+this._b|0,D[1]=D[1]+3545052371+(D[0]>>>0<l[0]>>>0?1:0)|0,D[2]=D[2]+886263092+(D[1]>>>0<l[1]>>>0?1:0)|0,D[3]=D[3]+1295307597+(D[2]>>>0<l[2]>>>0?1:0)|0,D[4]=D[4]+3545052371+(D[3]>>>0<l[3]>>>0?1:0)|0,D[5]=D[5]+886263092+(D[4]>>>0<l[4]>>>0?1:0)|0,D[6]=D[6]+1295307597+(D[5]>>>0<l[5]>>>0?1:0)|0,D[7]=D[7]+3545052371+(D[6]>>>0<l[6]>>>0?1:0)|0,this._b=D[7]>>>0<l[7]>>>0?1:0;for(var m=0;m<8;m++){var E=f[m]+D[m],_=E&65535,p=E>>>16,d=((_*_>>>17)+_*p>>>15)+p*p,A=((E&4294901760)*E|0)+((E&65535)*E|0);c[m]=d^A}f[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,f[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,f[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,f[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,f[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,f[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,f[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,f[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}i.RabbitLegacy=a._createHelper(h)}(),r.RabbitLegacy})}(Oo)),mr}(function(t,e){(function(r,i,n){t.exports=i(ue(),Er(),Ou(),qu(),ft(),Pu(),_t(),ci(),Na(),$u(),qa(),Wu(),Ku(),Yu(),pi(),Ju(),st(),ve(),io(),ao(),uo(),lo(),po(),fo(),go(),mo(),vo(),Ao(),Eo(),Co(),To(),So(),Fo(),No())})(ee,function(r){return r})})(wu);const Je=ri;function qo(t,e,r){const i=new Date;i.setTime(i.getTime()+r*1e3);const n="expires="+i.toUTCString();document.cookie=t+"="+e+";"+n}function Lo(t){let e="";return document.cookie.split(";").forEach(r=>{const i=r.split("=")[0];i.trim()===t&&(e=r.replace(`${i}=`,""))}),e}let Xe="PENDING",Jn="";const Io=[{clidText:"yruFnUP9yM3OfLFA8+Vvgw==",expiredAt:1822435200}],Po=(t,e)=>{const i=Je.AES.decrypt(e,"easy_email_pro_"+t).toString(Je.enc.Utf8);return JSON.parse(i)},Ho=t=>{const e=Je.enc.Utf8.parse("easy-email-pro"),r=Je.enc.Utf8.parse("easy-email-pro_multiple_years"),i=Je.mode.CFB,n=Je.pad.Pkcs7,a=t;return Je.AES.encrypt(a,e,{iv:r,mode:i,padding:n}).toString()},Yr={getToken(){if(typeof document!="undefined")return Lo("e_e_p")},setToken(t){if(typeof document!="undefined")return qo("e_e_p",t,3600)}},ki=class{static auth(e){return Vi(this,null,function*(){if(Xe!=="PENDING")return;const r=Io.find(n=>n.clidText===Ho(e));if(r){if(r.expiredAt>+new Date/1e3)Xe="SUCCESS",r.expiredAt-+new Date/1e3<5184e3&&(console.log("-----------------------------------------"),console.log("-----------------------------------------"),console.log("-----------------------------------------"),console.error("Your Easy Email Pro subscription is about to expire. Please contact ch.mao@qq.com"),console.error("Your Easy Email Pro subscription is about to expire. Please contact ch.mao@qq.com"),console.error("Your Easy Email Pro subscription is about to expire. Please contact ch.mao@qq.com"),console.log("-----------------------------------------"),console.log("-----------------------------------------"),console.log("-----------------------------------------"));else throw console.error("Subscription error"),new Error("Subscription error");return}const i=Yr.getToken();if(i)try{Po(e,i).expiredAt>+new Date/1e3&&(Xe="SUCCESS")}catch(n){}try{const{data:n}=yield Wi(`https://api-easy-email-pro.vercel.app/api/public/token?client_id=${e}`,{method:"GET"});Yr.setToken(n.access_token),Xe="SUCCESS"}catch(n){try{const{data:a}=yield Wi(`https://admin.easyemail.pro/api/public/token?client_id=${e}`,{method:"GET"});Yr.setToken(a.access_token),Xe="SUCCESS"}catch(a){throw console.log("error",a),Xe="ERROR",Jn=String(a),a}}})}static toMJML(e){if(Xe==="PENDING")throw new Error("Please call EditorCore.auth first");if(Xe==="ERROR")throw new Error(Jn);const{element:r,pageElement:i,beautify:n,universalElements:a,mode:u,displayMode:o="desktop-mobile",idx:l,mergetagsData:c,attributesVariables:h}=e,g=oe.getBlockByType(r.type);if(!g)throw new Error(`Block ${r.type} not found`);if(!i&&g.category!==z.PAGE)throw new Error("Page element is required if element is not a page");const f=a?ki.transformUniversalElements({universalElements:a.elements,content:j.cloneDeep(r)}):j.cloneDeep(r),D=new yu({mode:u}),m={content:i||r};let E=l;g.category===z.PAGE&&(E=Z.getPageIdx());let _=nt.unescape(ji.renderToStaticMarkup(S.createElement(tt,{universalElements:a,mode:e.mode,context:m,displayMode:o,keepEmptyAttributes:!!e.keepEmptyAttributes,mergetagsData:c,attributesVariables:h},S.createElement(Au,{context:D},S.createElement(le,{idx:E,node:f})))));const p=D.getHeadContent();return _=_.replace(/\<!-- GLOBAL_EXTRACT_HEADER --\>/,p),su(e)||(_=_.replace(/\<mj-html-attributes\>([\w\W]*?)\<\/mj-html-attributes\>/,"")),n?ti.html(_,{indent_size:2}):_}static elementToMjml(e,r){return nt.unescape(ji.renderToStaticMarkup(S.createElement(tt,{universalElements:r.universalElements,mode:r.mode,context:{content:r.pageElement},displayMode:r.displayMode||"desktop-mobile",keepEmptyAttributes:!!r.keepEmptyAttributes,mergetagsData:r.mergetagsData,attributesVariables:r.attributesVariables},S.createElement(le,{node:j.cloneDeep(e)}))))}static mjmlToBlockElement(e){const i=new DOMParser().parseFromString(e,"text/html"),n=a=>{if(a.nodeType===8)return oe.getBlockByType(Y.RAW).create({data:{content:a.textContent||""}});if(a.nodeType===3)return{text:a.textContent||""};if(a.nodeType!==1)throw new Error("Invalid");const u=a;let o={},l=u.tagName.toLocaleLowerCase().replace("mj-","");const c=u.getAttribute("style"),h=c==null?void 0:c.split(";").map(m=>{const E=m.split(":");return{[E[0]]:E[1]}}).reduce((m,E)=>M(M({},m),E),{});let g=u.getAttributeNames().filter(m=>!m.startsWith("element-")).reduce((m,E)=>W(M({},m),{[E]:u.getAttribute(E)||""}),{});u.getAttribute("element-type")&&(l=u.getAttribute("element-type")),u.getAttribute("element-data")&&(o=JSON.parse(decodeURIComponent(u.getAttribute("element-data")))),u.getAttribute("element-attributes")&&(g=JSON.parse(decodeURIComponent(u.getAttribute("element-attributes")))||{});const f=oe.getBlockByType(l);if(!f){const m=M({text:u.textContent||""},h),E=_=>{const p=_.tagName.toLowerCase();p==="strong"?m.bold=!0:p==="em"?m.italic=!0:p==="u"?m.underline=!0:p==="del"?m.strikethrough=!0:p==="a"&&(m.link={href:u.getAttribute("href")||"",blank:u.getAttribute("target")==="_blank"})};return[...u.children].forEach(E),m}const D=f.void?[]:u.childNodes.length>0?[...u.childNodes].map(n):[];return{type:l,data:o,attributes:g,children:D}};return n(i.body.firstChild)}static isPageDataVariable(e){return/\$var\(([\s\S]+)\)/g.test(e)}};let qe=ki;ie(qe,"version","0.14.0"),ie(qe,"getPageDataVariables",(e,r)=>{var i;return((i=e.data.variables)==null?void 0:i.reduce((n,a)=>W(M({},n),{[a.name]:a.value}),M({},r)))||M({},r)}),ie(qe,"renderWithPageVariables",(e,r,i)=>{if(!r)return e;const n=j.cloneDeep(e);if(typeof n=="string")return n.replace(/\$var\(([\s\S]+)\)/g,(u,o)=>j.get(r,o,""));const a=u=>{j.forOwn(u,(o,l)=>{typeof o=="object"?(l!=="children"||i)&&a(o):typeof o=="string"&&(u[l]=o.replace(/\$var\(([\s\S]+)\)/g,(c,h)=>j.get(r,h,"")))})};return a(n),n}),ie(qe,"getUniversalElements",uu),ie(qe,"transformUniversalElements",ou);const La=S.createContext({}),hi=()=>S.useContext(La),tt=t=>{const e=S.useMemo(()=>{const r=qe.getPageDataVariables(t.context.content,t.attributesVariables||{});return W(M({},t),{pageVariables:r})},[t]);return S.createElement(La.Provider,{value:e},t.children)};var Ia=(t=>(t.RESPONSIVE="RESPONSIVE",t.TEMPLATE_ENGINE="TEMPLATE_ENGINE",t))(Ia||{});class wr{constructor(){ie(this,"enabledResponsive",!0)}}ie(wr,"type","RESPONSIVE");class Cr{}ie(Cr,"type","TEMPLATE_ENGINE");class Pa{}const He=class{static registerPlugins(e){e.forEach(r=>{He.registerPlugin(r)})}static registerPlugin(e){const r=new e;r instanceof wr?(He.enabledResponsive=r.enabledResponsive,He.generateResponsive=r.generateResponsive):r instanceof Cr?(He.generateIterationTemplate=r.generateIterationTemplate,He.generateConditionTemplate=r.generateConditionTemplate,He.generateVariable=r.generateVariable,He.isVariable=r.isVariable,He.renderWithData=r.renderWithData):r instanceof Pa&&r.generateElement()}};let me=He;ie(me,"enabledResponsive",!1),ie(me,"generateResponsive",e=>{const r=oe.getBlockByType(e.node.type),{mode:i,children:n,context:a,idx:u,node:o,keepEmptyAttributes:l,mergetagsData:c}=e;return r.render(W(M({},e),{mode:i,children:n,context:a,idx:u,node:o,keepEmptyAttributes:l,mergetagsData:c}))}),ie(me,"generateIterationTemplate",(e,r)=>r),ie(me,"isVariable",e=>!1),ie(me,"generateConditionTemplate",(e,r)=>r),ie(me,"generateVariable",e=>e),ie(me,"renderWithData",(e,r)=>e);const le=t=>{var x,k,b,w,y;const{children:e,node:r,idx:i}=t,{mode:n,context:a,displayMode:u,keepEmptyAttributes:o,mergetagsData:l,pageVariables:c}=hi(),h=oe.getBlockByType(r.type);if(!h)throw new Error(`${r.type} block is not registered`);let g=W(M({},r),{attributes:M({},r.attributes),mobileAttributes:M({},r.mobileAttributes)});const f=j.get(g,"attributes.css-class")||"";n==="production"&&j.set(g,"attributes.css-class",f.replace(Ba,"").replace(ai,""));const D=(x=g.attributes["mj-class"])==null?void 0:x.trim();if(D&&a.content.data.classAttributes){const T={},s=D.split(" ").map(v=>v.trim()).filter(Boolean);Object.values(s).forEach(v=>{j.get(a.content.data.classAttributes,v)&&Object.assign(T,j.get(a.content.data.classAttributes,v))}),g.attributes=G(T,g.attributes)}const m=(k=a.content.data.blockAttributes)==null?void 0:k[g.type];m&&(g.attributes=G(m,g.attributes));const E=(b=a.content.data.categoryAttributes)==null?void 0:b[h.category];a.content.data.globalAttributes&&(g.attributes=G(a.content.data.globalAttributes,g.attributes)),E&&(g.attributes=G(E,g.attributes));const _=oe.getBlockByType(g.type).defaultData.attributes;if(_&&(g.attributes=G(_,g.attributes)),Z.isSectionElement(r)||Z.isWrapperElement(r)){const T=a.content.attributes["content-background-color"];T&&(g.attributes=G({"background-color":T},g.attributes))}let d=c;Z.isWidgetElement(g)?(d=G(c,g.data.input),g=qe.renderWithPageVariables(g,d,!0)):g=qe.renderWithPageVariables(g,d);let A=me.generateResponsive({mode:n,children:e,context:a,idx:i,node:g,keepEmptyAttributes:o,mergetagsData:l,displayMode:u});if(n==="production"){const T=(w=r.logic)==null?void 0:w.condition,s=(y=r.logic)==null?void 0:y.iteration;s&&s.enabled&&(A=me.generateIterationTemplate(s,A)),T&&T.enabled&&(A=me.generateConditionTemplate(j.cloneDeep(T),A))}return S.createElement(S.Fragment,null,A)},ze=({node:t})=>{let e=t.text;const r={};return e?(t.bold&&(e=S.createElement("strong",null,e)),t.italic&&(e=S.createElement("em",null,e)),t.underline&&(e=S.createElement("u",null,e)),t.strikethrough&&(e=S.createElement("del",null,e)),t.link&&(e=S.createElement("a",{href:t.link.href,target:t.link.blank?"_blank":void 0},e)),t.color&&(r.color=t.color),t.bgColor&&(r.backgroundColor=t.bgColor),t.fontSize&&(r.fontSize=t.fontSize),t.fontFamily&&(r.fontFamily=t.fontFamily),j.isString(e)&&Object.keys(r).length===0?S.createElement(S.Fragment,null,e):S.createElement("span",{style:r},e)):null};function fe(t){const{params:e,params:{node:r,idx:i,children:n,keepEmptyAttributes:a},tag:u,children:o}=t,l=o||n,c=Is(e,{keepEmptyAttributes:a,removeDefaultAttributes:e.mode==="production"}),h=S.createElement(S.Fragment,null,`<${u}${c?` ${c}`:""}>`,l||r.children.map((g,f)=>Z.isTextNode(g)?Z.isTextListElement(r)?S.createElement(S.Fragment,{key:f},"<li>",S.createElement(ze,W(M({key:f},e),{node:g})),"</li>"):S.createElement(ze,W(M({key:f},e),{node:g})):S.createElement(le,W(M({key:f},e),{idx:i?Z.getChildIdx(i,f):null,node:g}))),`</${u}>`);return S.createElement(S.Fragment,null,h)}const Ha=t=>{if(S.isValidElement(t)||j.isString(t)||j.isUndefined(t)||j.isNumber(t)||j.isBoolean(t)||t===null||Array.isArray(t)&&t.every(e=>Ha(e)))return!0};function ae(t){return!!Ha(t)}function di(t){const u=t,{data:e,idx:r,children:i}=u,n=ce(u,["data","idx","children"]),a={type:U.WRAPPER,data:e||{},attributes:M({},n),children:ae(i)?[]:i||[]};return S.createElement(le,{idx:r,node:a,children:ae(i)?i:null})}function Ma(t){const u=t,{data:e,idx:r,children:i}=u,n=ce(u,["data","idx","children"]),a={type:U.SECTION,data:e||{},attributes:M({},n),children:ae(i)?[]:i||[]};return S.createElement(le,{idx:r,node:a,children:ae(i)?i:null})}function Ua(t){const u=t,{data:e,idx:r,children:i}=u,n=ce(u,["data","idx","children"]),a={type:U.GROUP,data:e||{},attributes:M({},n),children:ae(i)?[]:i||[]};return S.createElement(le,{idx:r,node:a,children:ae(i)?i:null})}function za(t){const u=t,{data:e,idx:r,children:i}=u,n=ce(u,["data","idx","children"]),a={type:U.COLUMN,data:e||{},attributes:M({},n),children:ae(i)?[]:i||[]};return S.createElement(le,{idx:r,node:a,children:ae(i)?i:null})}function $a(t){const u=t,{data:e,children:r,idx:i}=u,n=ce(u,["data","children","idx"]),a={type:U.BUTTON,data:e||{},attributes:M({},n),children:ae(r)?[]:r||[]};return S.createElement(le,{idx:i,node:a,children:ae(r)?r:null})}function Va(t){const u=t,{data:e,idx:r,children:i}=u,n=ce(u,["data","idx","children"]),a={type:U.IMAGE,data:e||{},attributes:M({},n),children:ae(i)?[]:i||[]};return S.createElement(le,{idx:r,node:a,children:ae(i)?i:null})}function Br(t){const u=t,{data:e,idx:r,children:i}=u,n=ce(u,["data","idx","children"]),a={type:U.TEXT,data:e||{},attributes:M({},n),children:ae(i)?[]:i||[]};return S.createElement(le,{idx:r,node:a,children:ae(i)?i:null})}function ja(t){const u=t,{data:e,idx:r,children:i}=u,n=ce(u,["data","idx","children"]),a={type:U.SPACER,data:e||{},attributes:M({},n),children:ae(i)?[]:i||[]};return S.createElement(le,{idx:r,node:a,children:ae(i)?i:null})}function Oe(t){const u=t,{data:e,children:r,idx:i}=u,n=ce(u,["data","children","idx"]),a={type:U.RAW,data:e||{content:r||""},attributes:M({},n),children:ae(r)?[]:r||[]};return S.createElement(le,{idx:i,node:a,children:ae(r)?r:null})}function Wa(t){const u=t,{data:e,idx:r,children:i}=u,n=ce(u,["data","idx","children"]),a={type:U.DIVIDER,data:e||{},attributes:M({},n),children:ae(i)?[]:i||[]};return S.createElement(le,{idx:r,node:a,children:ae(i)?i:null})}function Ga(t){const u=t,{data:e,idx:r,children:i}=u,n=ce(u,["data","idx","children"]),a={type:U.NAVBAR,data:e||{},attributes:M({},n),children:ae(i)?[]:i||[]};return S.createElement(le,{idx:r,node:a,children:ae(i)?i:null})}function Ka(t){const u=t,{data:e,idx:r,children:i}=u,n=ce(u,["data","idx","children"]),a={type:U.NAVBAR_LINK,data:e||{},attributes:M({},n),children:ae(i)?[]:i||[]};return S.createElement(le,{idx:r,node:a,children:ae(i)?i:null})}function Xa(t){const u=t,{data:e,idx:r,children:i}=u,n=ce(u,["data","idx","children"]),a={type:U.SOCIAL,data:e||{},attributes:M({},n),children:ae(i)?[]:i||[]};return S.createElement(le,{idx:r,node:a,children:ae(i)?i:null})}function Ya(t){const u=t,{data:e,idx:r,children:i}=u,n=ce(u,["data","idx","children"]),a={type:U.SOCIAL_ELEMENT,data:e||{},attributes:M({},n),children:ae(i)?[]:i||[]};return S.createElement(le,{idx:r,node:a,children:ae(i)?i:null})}function Qa(t){const u=t,{data:e,idx:r,children:i}=u,n=ce(u,["data","idx","children"]),a={type:U.HERO,data:e||{},attributes:M({},n),children:ae(i)?[]:i||[]};return S.createElement(le,{idx:r,node:a,children:ae(i)?i:null})}function Mo(t){const u=t,{tagName:e,children:r,idx:i}=u,n=ce(u,["tagName","children","idx"]),a={type:U.HTML_NODE,data:{tagName:e},attributes:M({},n),children:ae(r)?[]:r||[]};return S.createElement(le,{idx:i,node:a,children:ae(r)?r:null})}function Uo(t){const a=t,{idx:e,children:r}=a,i=ce(a,["idx","children"]),n={type:Y.FOR_EACH,data:M({},i),attributes:{},children:ae(r)?[]:r||[]};return S.createElement(le,{idx:e,node:n,children:ae(r)?r:null})}function zo(t){const a=t,{idx:e,children:r}=a,i=ce(a,["idx","children"]),n={type:Y.SHOW,data:W(M({},i),{component:r}),attributes:{},children:[]};return S.createElement(le,{idx:e,node:n,children:r})}function $o(t){const u=t,{tagName:e,idx:r,children:i}=u,n=ce(u,["tagName","idx","children"]),a={type:Y.HTML_DOM_NODE,data:{tagName:e},attributes:M({},n),children:ae(i)?[]:i||[]};return S.createElement(le,{idx:r,node:a,children:ae(i)?i:null})}const Vo=({node:t})=>S.createElement(le,{node:W(M({},t),{attributes:W(M({},t.attributes),{"css-class":dt(t.attributes["css-class"],ai)})})}),jo=Object.freeze(Object.defineProperty({__proto__:null,BasicBlock:fe,BlockRenderer:le,Button:$a,Column:za,ContentLeaf:ze,Divider:Wa,ForEach:Uo,Group:Ua,Hero:Qa,HtmlDomNode:$o,HtmlNode:Mo,Image:Va,Navbar:Ga,NavbarLink:Ka,Raw:Oe,Section:Ma,Show:zo,SlateNodePlaceholder:Vo,Social:Xa,SocialElement:Ya,Spacer:ja,Text:Br,Wrapper:di},Symbol.toStringTag,{value:"Module"})),Wo={attributes:{width:"600px","margin-top":"30px","margin-bottom":"30px","link-text-decoration":"underline"},data:{breakpoint:"480px"}},Go={get name(){return K("Page")},defaultData:Wo,type:U.PAGE,create:t=>{const e={type:U.PAGE,data:{breakpoint:"480px",globalAttributes:{"font-family":"Arial, sans-serif"}},attributes:{},children:[]};return G(e,t)},category:z.PAGE,render(t){var _,p,d,A,x,k;const{node:e,node:{data:r,attributes:i},mode:n}=t,a=r.breakpoint?`<mj-breakpoint width="${r.breakpoint}" />`:"",u=[...r.headStyles||[]];n==="testing"?u.unshift({content:wa}):(u.unshift({content:ru}),u.unshift({content:iu,inline:"inline"}));const o=u.map(b=>`<mj-style ${b.inline?'inline="inline"':""}>${b.content}</mj-style>`).join(`
|
|
60
|
+
*/return r.mode.CTRGladman=function(){var i=r.lib.BlockCipherMode.extend();function n(o){if((o>>24&255)===255){var l=o>>16&255,c=o>>8&255,h=o&255;l===255?(l=0,c===255?(c=0,h===255?h=0:++h):++c):++l,o=0,o+=l<<16,o+=c<<8,o+=h}else o+=1<<24;return o}function a(o){return(o[0]=n(o[0]))===0&&(o[1]=n(o[1])),o}var u=i.Encryptor=i.extend({processBlock:function(o,l){var c=this._cipher,h=c.blockSize,g=this._iv,f=this._counter;g&&(f=this._counter=g.slice(0),this._iv=void 0),a(f);var D=f.slice(0);c.encryptBlock(D,0);for(var m=0;m<h;m++)o[l+m]^=D[m]}});return i.Decryptor=u,i}(),r.mode.CTRGladman})}(so)),ar}var sr={},oo={get exports(){return sr},set exports(t){sr=t}},Mn;function lo(){return Mn||(Mn=1,function(t,e){(function(r,i,n){t.exports=i(ue(),ve())})(ee,function(r){return r.mode.OFB=function(){var i=r.lib.BlockCipherMode.extend(),n=i.Encryptor=i.extend({processBlock:function(a,u){var o=this._cipher,l=o.blockSize,c=this._iv,h=this._keystream;c&&(h=this._keystream=c.slice(0),this._iv=void 0),o.encryptBlock(h,0);for(var g=0;g<l;g++)a[u+g]^=h[g]}});return i.Decryptor=n,i}(),r.mode.OFB})}(oo)),sr}var ur={},co={get exports(){return ur},set exports(t){ur=t}},Un;function po(){return Un||(Un=1,function(t,e){(function(r,i,n){t.exports=i(ue(),ve())})(ee,function(r){return r.mode.ECB=function(){var i=r.lib.BlockCipherMode.extend();return i.Encryptor=i.extend({processBlock:function(n,a){this._cipher.encryptBlock(n,a)}}),i.Decryptor=i.extend({processBlock:function(n,a){this._cipher.decryptBlock(n,a)}}),i}(),r.mode.ECB})}(co)),ur}var or={},ho={get exports(){return or},set exports(t){or=t}},zn;function fo(){return zn||(zn=1,function(t,e){(function(r,i,n){t.exports=i(ue(),ve())})(ee,function(r){return r.pad.AnsiX923={pad:function(i,n){var a=i.sigBytes,u=n*4,o=u-a%u,l=a+o-1;i.clamp(),i.words[l>>>2]|=o<<24-l%4*8,i.sigBytes+=o},unpad:function(i){var n=i.words[i.sigBytes-1>>>2]&255;i.sigBytes-=n}},r.pad.Ansix923})}(ho)),or}var lr={},_o={get exports(){return lr},set exports(t){lr=t}},$n;function go(){return $n||($n=1,function(t,e){(function(r,i,n){t.exports=i(ue(),ve())})(ee,function(r){return r.pad.Iso10126={pad:function(i,n){var a=n*4,u=a-i.sigBytes%a;i.concat(r.lib.WordArray.random(u-1)).concat(r.lib.WordArray.create([u<<24],1))},unpad:function(i){var n=i.words[i.sigBytes-1>>>2]&255;i.sigBytes-=n}},r.pad.Iso10126})}(_o)),lr}var cr={},xo={get exports(){return cr},set exports(t){cr=t}},Vn;function mo(){return Vn||(Vn=1,function(t,e){(function(r,i,n){t.exports=i(ue(),ve())})(ee,function(r){return r.pad.Iso97971={pad:function(i,n){i.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(i,n)},unpad:function(i){r.pad.ZeroPadding.unpad(i),i.sigBytes--}},r.pad.Iso97971})}(xo)),cr}var pr={},bo={get exports(){return pr},set exports(t){pr=t}},jn;function vo(){return jn||(jn=1,function(t,e){(function(r,i,n){t.exports=i(ue(),ve())})(ee,function(r){return r.pad.ZeroPadding={pad:function(i,n){var a=n*4;i.clamp(),i.sigBytes+=a-(i.sigBytes%a||a)},unpad:function(i){for(var n=i.words,a=i.sigBytes-1,a=i.sigBytes-1;a>=0;a--)if(n[a>>>2]>>>24-a%4*8&255){i.sigBytes=a+1;break}}},r.pad.ZeroPadding})}(bo)),pr}var hr={},Do={get exports(){return hr},set exports(t){hr=t}},Wn;function Ao(){return Wn||(Wn=1,function(t,e){(function(r,i,n){t.exports=i(ue(),ve())})(ee,function(r){return r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding})}(Do)),hr}var dr={},yo={get exports(){return dr},set exports(t){dr=t}},Gn;function Eo(){return Gn||(Gn=1,function(t,e){(function(r,i,n){t.exports=i(ue(),ve())})(ee,function(r){return function(i){var n=r,a=n.lib,u=a.CipherParams,o=n.enc,l=o.Hex,c=n.format;c.Hex={stringify:function(h){return h.ciphertext.toString(l)},parse:function(h){var g=l.parse(h);return u.create({ciphertext:g})}}}(),r.format.Hex})}(yo)),dr}var fr={},wo={get exports(){return fr},set exports(t){fr=t}},Kn;function Co(){return Kn||(Kn=1,function(t,e){(function(r,i,n){t.exports=i(ue(),ft(),_t(),st(),ve())})(ee,function(r){return function(){var i=r,n=i.lib,a=n.BlockCipher,u=i.algo,o=[],l=[],c=[],h=[],g=[],f=[],D=[],m=[],E=[],_=[];(function(){for(var A=[],x=0;x<256;x++)x<128?A[x]=x<<1:A[x]=x<<1^283;for(var k=0,b=0,x=0;x<256;x++){var w=b^b<<1^b<<2^b<<3^b<<4;w=w>>>8^w&255^99,o[k]=w,l[w]=k;var y=A[k],T=A[y],s=A[T],v=A[w]*257^w*16843008;c[k]=v<<24|v>>>8,h[k]=v<<16|v>>>16,g[k]=v<<8|v>>>24,f[k]=v;var v=s*16843009^T*65537^y*257^k*16843008;D[w]=v<<24|v>>>8,m[w]=v<<16|v>>>16,E[w]=v<<8|v>>>24,_[w]=v,k?(k=y^A[A[A[s^y]]],b^=A[A[b]]):k=b=1}})();var p=[0,1,2,4,8,16,32,64,128,27,54],d=u.AES=a.extend({_doReset:function(){var A;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var x=this._keyPriorReset=this._key,k=x.words,b=x.sigBytes/4,w=this._nRounds=b+6,y=(w+1)*4,T=this._keySchedule=[],s=0;s<y;s++)s<b?T[s]=k[s]:(A=T[s-1],s%b?b>6&&s%b==4&&(A=o[A>>>24]<<24|o[A>>>16&255]<<16|o[A>>>8&255]<<8|o[A&255]):(A=A<<8|A>>>24,A=o[A>>>24]<<24|o[A>>>16&255]<<16|o[A>>>8&255]<<8|o[A&255],A^=p[s/b|0]<<24),T[s]=T[s-b]^A);for(var v=this._invKeySchedule=[],C=0;C<y;C++){var s=y-C;if(C%4)var A=T[s];else var A=T[s-4];C<4||s<=4?v[C]=A:v[C]=D[o[A>>>24]]^m[o[A>>>16&255]]^E[o[A>>>8&255]]^_[o[A&255]]}}},encryptBlock:function(A,x){this._doCryptBlock(A,x,this._keySchedule,c,h,g,f,o)},decryptBlock:function(A,x){var k=A[x+1];A[x+1]=A[x+3],A[x+3]=k,this._doCryptBlock(A,x,this._invKeySchedule,D,m,E,_,l);var k=A[x+1];A[x+1]=A[x+3],A[x+3]=k},_doCryptBlock:function(A,x,k,b,w,y,T,s){for(var v=this._nRounds,C=A[x]^k[0],B=A[x+1]^k[1],R=A[x+2]^k[2],O=A[x+3]^k[3],H=4,P=1;P<v;P++){var V=b[C>>>24]^w[B>>>16&255]^y[R>>>8&255]^T[O&255]^k[H++],q=b[B>>>24]^w[R>>>16&255]^y[O>>>8&255]^T[C&255]^k[H++],$=b[R>>>24]^w[O>>>16&255]^y[C>>>8&255]^T[B&255]^k[H++],F=b[O>>>24]^w[C>>>16&255]^y[B>>>8&255]^T[R&255]^k[H++];C=V,B=q,R=$,O=F}var V=(s[C>>>24]<<24|s[B>>>16&255]<<16|s[R>>>8&255]<<8|s[O&255])^k[H++],q=(s[B>>>24]<<24|s[R>>>16&255]<<16|s[O>>>8&255]<<8|s[C&255])^k[H++],$=(s[R>>>24]<<24|s[O>>>16&255]<<16|s[C>>>8&255]<<8|s[B&255])^k[H++],F=(s[O>>>24]<<24|s[C>>>16&255]<<16|s[B>>>8&255]<<8|s[R&255])^k[H++];A[x]=V,A[x+1]=q,A[x+2]=$,A[x+3]=F},keySize:256/32});i.AES=a._createHelper(d)}(),r.AES})}(wo)),fr}var _r={},Bo={get exports(){return _r},set exports(t){_r=t}},Xn;function To(){return Xn||(Xn=1,function(t,e){(function(r,i,n){t.exports=i(ue(),ft(),_t(),st(),ve())})(ee,function(r){return function(){var i=r,n=i.lib,a=n.WordArray,u=n.BlockCipher,o=i.algo,l=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],c=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],h=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],g=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],f=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],D=o.DES=u.extend({_doReset:function(){for(var p=this._key,d=p.words,A=[],x=0;x<56;x++){var k=l[x]-1;A[x]=d[k>>>5]>>>31-k%32&1}for(var b=this._subKeys=[],w=0;w<16;w++){for(var y=b[w]=[],T=h[w],x=0;x<24;x++)y[x/6|0]|=A[(c[x]-1+T)%28]<<31-x%6,y[4+(x/6|0)]|=A[28+(c[x+24]-1+T)%28]<<31-x%6;y[0]=y[0]<<1|y[0]>>>31;for(var x=1;x<7;x++)y[x]=y[x]>>>(x-1)*4+3;y[7]=y[7]<<5|y[7]>>>27}for(var s=this._invSubKeys=[],x=0;x<16;x++)s[x]=b[15-x]},encryptBlock:function(p,d){this._doCryptBlock(p,d,this._subKeys)},decryptBlock:function(p,d){this._doCryptBlock(p,d,this._invSubKeys)},_doCryptBlock:function(p,d,A){this._lBlock=p[d],this._rBlock=p[d+1],m.call(this,4,252645135),m.call(this,16,65535),E.call(this,2,858993459),E.call(this,8,16711935),m.call(this,1,1431655765);for(var x=0;x<16;x++){for(var k=A[x],b=this._lBlock,w=this._rBlock,y=0,T=0;T<8;T++)y|=g[T][((w^k[T])&f[T])>>>0];this._lBlock=w,this._rBlock=b^y}var s=this._lBlock;this._lBlock=this._rBlock,this._rBlock=s,m.call(this,1,1431655765),E.call(this,8,16711935),E.call(this,2,858993459),m.call(this,16,65535),m.call(this,4,252645135),p[d]=this._lBlock,p[d+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function m(p,d){var A=(this._lBlock>>>p^this._rBlock)&d;this._rBlock^=A,this._lBlock^=A<<p}function E(p,d){var A=(this._rBlock>>>p^this._lBlock)&d;this._lBlock^=A,this._rBlock^=A<<p}i.DES=u._createHelper(D);var _=o.TripleDES=u.extend({_doReset:function(){var p=this._key,d=p.words;if(d.length!==2&&d.length!==4&&d.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var A=d.slice(0,2),x=d.length<4?d.slice(0,2):d.slice(2,4),k=d.length<6?d.slice(0,2):d.slice(4,6);this._des1=D.createEncryptor(a.create(A)),this._des2=D.createEncryptor(a.create(x)),this._des3=D.createEncryptor(a.create(k))},encryptBlock:function(p,d){this._des1.encryptBlock(p,d),this._des2.decryptBlock(p,d),this._des3.encryptBlock(p,d)},decryptBlock:function(p,d){this._des3.decryptBlock(p,d),this._des2.encryptBlock(p,d),this._des1.decryptBlock(p,d)},keySize:192/32,ivSize:64/32,blockSize:64/32});i.TripleDES=u._createHelper(_)}(),r.TripleDES})}(Bo)),_r}var gr={},ko={get exports(){return gr},set exports(t){gr=t}},Yn;function So(){return Yn||(Yn=1,function(t,e){(function(r,i,n){t.exports=i(ue(),ft(),_t(),st(),ve())})(ee,function(r){return function(){var i=r,n=i.lib,a=n.StreamCipher,u=i.algo,o=u.RC4=a.extend({_doReset:function(){for(var h=this._key,g=h.words,f=h.sigBytes,D=this._S=[],m=0;m<256;m++)D[m]=m;for(var m=0,E=0;m<256;m++){var _=m%f,p=g[_>>>2]>>>24-_%4*8&255;E=(E+D[m]+p)%256;var d=D[m];D[m]=D[E],D[E]=d}this._i=this._j=0},_doProcessBlock:function(h,g){h[g]^=l.call(this)},keySize:256/32,ivSize:0});function l(){for(var h=this._S,g=this._i,f=this._j,D=0,m=0;m<4;m++){g=(g+1)%256,f=(f+h[g])%256;var E=h[g];h[g]=h[f],h[f]=E,D|=h[(h[g]+h[f])%256]<<24-m*8}return this._i=g,this._j=f,D}i.RC4=a._createHelper(o);var c=u.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var h=this.cfg.drop;h>0;h--)l.call(this)}});i.RC4Drop=a._createHelper(c)}(),r.RC4})}(ko)),gr}var xr={},Ro={get exports(){return xr},set exports(t){xr=t}},Qn;function Fo(){return Qn||(Qn=1,function(t,e){(function(r,i,n){t.exports=i(ue(),ft(),_t(),st(),ve())})(ee,function(r){return function(){var i=r,n=i.lib,a=n.StreamCipher,u=i.algo,o=[],l=[],c=[],h=u.Rabbit=a.extend({_doReset:function(){for(var f=this._key.words,D=this.cfg.iv,m=0;m<4;m++)f[m]=(f[m]<<8|f[m]>>>24)&16711935|(f[m]<<24|f[m]>>>8)&4278255360;var E=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],_=this._C=[f[2]<<16|f[2]>>>16,f[0]&4294901760|f[1]&65535,f[3]<<16|f[3]>>>16,f[1]&4294901760|f[2]&65535,f[0]<<16|f[0]>>>16,f[2]&4294901760|f[3]&65535,f[1]<<16|f[1]>>>16,f[3]&4294901760|f[0]&65535];this._b=0;for(var m=0;m<4;m++)g.call(this);for(var m=0;m<8;m++)_[m]^=E[m+4&7];if(D){var p=D.words,d=p[0],A=p[1],x=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,k=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,b=x>>>16|k&4294901760,w=k<<16|x&65535;_[0]^=x,_[1]^=b,_[2]^=k,_[3]^=w,_[4]^=x,_[5]^=b,_[6]^=k,_[7]^=w;for(var m=0;m<4;m++)g.call(this)}},_doProcessBlock:function(f,D){var m=this._X;g.call(this),o[0]=m[0]^m[5]>>>16^m[3]<<16,o[1]=m[2]^m[7]>>>16^m[5]<<16,o[2]=m[4]^m[1]>>>16^m[7]<<16,o[3]=m[6]^m[3]>>>16^m[1]<<16;for(var E=0;E<4;E++)o[E]=(o[E]<<8|o[E]>>>24)&16711935|(o[E]<<24|o[E]>>>8)&4278255360,f[D+E]^=o[E]},blockSize:128/32,ivSize:64/32});function g(){for(var f=this._X,D=this._C,m=0;m<8;m++)l[m]=D[m];D[0]=D[0]+1295307597+this._b|0,D[1]=D[1]+3545052371+(D[0]>>>0<l[0]>>>0?1:0)|0,D[2]=D[2]+886263092+(D[1]>>>0<l[1]>>>0?1:0)|0,D[3]=D[3]+1295307597+(D[2]>>>0<l[2]>>>0?1:0)|0,D[4]=D[4]+3545052371+(D[3]>>>0<l[3]>>>0?1:0)|0,D[5]=D[5]+886263092+(D[4]>>>0<l[4]>>>0?1:0)|0,D[6]=D[6]+1295307597+(D[5]>>>0<l[5]>>>0?1:0)|0,D[7]=D[7]+3545052371+(D[6]>>>0<l[6]>>>0?1:0)|0,this._b=D[7]>>>0<l[7]>>>0?1:0;for(var m=0;m<8;m++){var E=f[m]+D[m],_=E&65535,p=E>>>16,d=((_*_>>>17)+_*p>>>15)+p*p,A=((E&4294901760)*E|0)+((E&65535)*E|0);c[m]=d^A}f[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,f[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,f[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,f[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,f[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,f[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,f[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,f[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}i.Rabbit=a._createHelper(h)}(),r.Rabbit})}(Ro)),xr}var mr={},Oo={get exports(){return mr},set exports(t){mr=t}},Zn;function No(){return Zn||(Zn=1,function(t,e){(function(r,i,n){t.exports=i(ue(),ft(),_t(),st(),ve())})(ee,function(r){return function(){var i=r,n=i.lib,a=n.StreamCipher,u=i.algo,o=[],l=[],c=[],h=u.RabbitLegacy=a.extend({_doReset:function(){var f=this._key.words,D=this.cfg.iv,m=this._X=[f[0],f[3]<<16|f[2]>>>16,f[1],f[0]<<16|f[3]>>>16,f[2],f[1]<<16|f[0]>>>16,f[3],f[2]<<16|f[1]>>>16],E=this._C=[f[2]<<16|f[2]>>>16,f[0]&4294901760|f[1]&65535,f[3]<<16|f[3]>>>16,f[1]&4294901760|f[2]&65535,f[0]<<16|f[0]>>>16,f[2]&4294901760|f[3]&65535,f[1]<<16|f[1]>>>16,f[3]&4294901760|f[0]&65535];this._b=0;for(var _=0;_<4;_++)g.call(this);for(var _=0;_<8;_++)E[_]^=m[_+4&7];if(D){var p=D.words,d=p[0],A=p[1],x=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,k=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,b=x>>>16|k&4294901760,w=k<<16|x&65535;E[0]^=x,E[1]^=b,E[2]^=k,E[3]^=w,E[4]^=x,E[5]^=b,E[6]^=k,E[7]^=w;for(var _=0;_<4;_++)g.call(this)}},_doProcessBlock:function(f,D){var m=this._X;g.call(this),o[0]=m[0]^m[5]>>>16^m[3]<<16,o[1]=m[2]^m[7]>>>16^m[5]<<16,o[2]=m[4]^m[1]>>>16^m[7]<<16,o[3]=m[6]^m[3]>>>16^m[1]<<16;for(var E=0;E<4;E++)o[E]=(o[E]<<8|o[E]>>>24)&16711935|(o[E]<<24|o[E]>>>8)&4278255360,f[D+E]^=o[E]},blockSize:128/32,ivSize:64/32});function g(){for(var f=this._X,D=this._C,m=0;m<8;m++)l[m]=D[m];D[0]=D[0]+1295307597+this._b|0,D[1]=D[1]+3545052371+(D[0]>>>0<l[0]>>>0?1:0)|0,D[2]=D[2]+886263092+(D[1]>>>0<l[1]>>>0?1:0)|0,D[3]=D[3]+1295307597+(D[2]>>>0<l[2]>>>0?1:0)|0,D[4]=D[4]+3545052371+(D[3]>>>0<l[3]>>>0?1:0)|0,D[5]=D[5]+886263092+(D[4]>>>0<l[4]>>>0?1:0)|0,D[6]=D[6]+1295307597+(D[5]>>>0<l[5]>>>0?1:0)|0,D[7]=D[7]+3545052371+(D[6]>>>0<l[6]>>>0?1:0)|0,this._b=D[7]>>>0<l[7]>>>0?1:0;for(var m=0;m<8;m++){var E=f[m]+D[m],_=E&65535,p=E>>>16,d=((_*_>>>17)+_*p>>>15)+p*p,A=((E&4294901760)*E|0)+((E&65535)*E|0);c[m]=d^A}f[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,f[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,f[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,f[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,f[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,f[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,f[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,f[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}i.RabbitLegacy=a._createHelper(h)}(),r.RabbitLegacy})}(Oo)),mr}(function(t,e){(function(r,i,n){t.exports=i(ue(),Er(),Ou(),qu(),ft(),Pu(),_t(),ci(),Na(),$u(),qa(),Wu(),Ku(),Yu(),pi(),Ju(),st(),ve(),io(),ao(),uo(),lo(),po(),fo(),go(),mo(),vo(),Ao(),Eo(),Co(),To(),So(),Fo(),No())})(ee,function(r){return r})})(wu);const Je=ri;function qo(t,e,r){const i=new Date;i.setTime(i.getTime()+r*1e3);const n="expires="+i.toUTCString();document.cookie=t+"="+e+";"+n}function Lo(t){let e="";return document.cookie.split(";").forEach(r=>{const i=r.split("=")[0];i.trim()===t&&(e=r.replace(`${i}=`,""))}),e}let Xe="PENDING",Jn="";const Io=[{clidText:"yruFnUP9yM3OfLFA8+Vvgw==",expiredAt:1822435200}],Po=(t,e)=>{const i=Je.AES.decrypt(e,"easy_email_pro_"+t).toString(Je.enc.Utf8);return JSON.parse(i)},Ho=t=>{const e=Je.enc.Utf8.parse("easy-email-pro"),r=Je.enc.Utf8.parse("easy-email-pro_multiple_years"),i=Je.mode.CFB,n=Je.pad.Pkcs7,a=t;return Je.AES.encrypt(a,e,{iv:r,mode:i,padding:n}).toString()},Yr={getToken(){if(typeof document!="undefined")return Lo("e_e_p")},setToken(t){if(typeof document!="undefined")return qo("e_e_p",t,3600)}},ki=class{static auth(e){return Vi(this,null,function*(){if(Xe!=="PENDING")return;const r=Io.find(n=>n.clidText===Ho(e));if(r){if(r.expiredAt>+new Date/1e3)Xe="SUCCESS",r.expiredAt-+new Date/1e3<5184e3&&(console.log("-----------------------------------------"),console.log("-----------------------------------------"),console.log("-----------------------------------------"),console.error("Your Easy Email Pro subscription is about to expire. Please contact ch.mao@qq.com"),console.error("Your Easy Email Pro subscription is about to expire. Please contact ch.mao@qq.com"),console.error("Your Easy Email Pro subscription is about to expire. Please contact ch.mao@qq.com"),console.log("-----------------------------------------"),console.log("-----------------------------------------"),console.log("-----------------------------------------"));else throw console.error("Subscription error"),new Error("Subscription error");return}const i=Yr.getToken();if(i)try{Po(e,i).expiredAt>+new Date/1e3&&(Xe="SUCCESS")}catch(n){}try{const{data:n}=yield Wi(`https://admin.beacas.com/api/public/token?client_id=${e}`,{method:"GET"});Yr.setToken(n.access_token),Xe="SUCCESS"}catch(n){try{const{data:a}=yield Wi(`https://admin.easyemail.pro/api/public/token?client_id=${e}`,{method:"GET"});Yr.setToken(a.access_token),Xe="SUCCESS"}catch(a){throw console.log("error",a),Xe="ERROR",Jn=String(a),a}}})}static toMJML(e){if(Xe==="PENDING")throw new Error("Please call EditorCore.auth first");if(Xe==="ERROR")throw new Error(Jn);const{element:r,pageElement:i,beautify:n,universalElements:a,mode:u,displayMode:o="desktop-mobile",idx:l,mergetagsData:c,attributesVariables:h}=e,g=oe.getBlockByType(r.type);if(!g)throw new Error(`Block ${r.type} not found`);if(!i&&g.category!==z.PAGE)throw new Error("Page element is required if element is not a page");const f=a?ki.transformUniversalElements({universalElements:a.elements,content:j.cloneDeep(r)}):j.cloneDeep(r),D=new yu({mode:u}),m={content:i||r};let E=l;g.category===z.PAGE&&(E=Z.getPageIdx());let _=nt.unescape(ji.renderToStaticMarkup(S.createElement(tt,{universalElements:a,mode:e.mode,context:m,displayMode:o,keepEmptyAttributes:!!e.keepEmptyAttributes,mergetagsData:c,attributesVariables:h},S.createElement(Au,{context:D},S.createElement(le,{idx:E,node:f})))));const p=D.getHeadContent();return _=_.replace(/\<!-- GLOBAL_EXTRACT_HEADER --\>/,p),su(e)||(_=_.replace(/\<mj-html-attributes\>([\w\W]*?)\<\/mj-html-attributes\>/,"")),n?ti.html(_,{indent_size:2}):_}static elementToMjml(e,r){return nt.unescape(ji.renderToStaticMarkup(S.createElement(tt,{universalElements:r.universalElements,mode:r.mode,context:{content:r.pageElement},displayMode:r.displayMode||"desktop-mobile",keepEmptyAttributes:!!r.keepEmptyAttributes,mergetagsData:r.mergetagsData,attributesVariables:r.attributesVariables},S.createElement(le,{node:j.cloneDeep(e)}))))}static mjmlToBlockElement(e){const i=new DOMParser().parseFromString(e,"text/html"),n=a=>{if(a.nodeType===8)return oe.getBlockByType(Y.RAW).create({data:{content:a.textContent||""}});if(a.nodeType===3)return{text:a.textContent||""};if(a.nodeType!==1)throw new Error("Invalid");const u=a;let o={},l=u.tagName.toLocaleLowerCase().replace("mj-","");const c=u.getAttribute("style"),h=c==null?void 0:c.split(";").map(m=>{const E=m.split(":");return{[E[0]]:E[1]}}).reduce((m,E)=>M(M({},m),E),{});let g=u.getAttributeNames().filter(m=>!m.startsWith("element-")).reduce((m,E)=>W(M({},m),{[E]:u.getAttribute(E)||""}),{});u.getAttribute("element-type")&&(l=u.getAttribute("element-type")),u.getAttribute("element-data")&&(o=JSON.parse(decodeURIComponent(u.getAttribute("element-data")))),u.getAttribute("element-attributes")&&(g=JSON.parse(decodeURIComponent(u.getAttribute("element-attributes")))||{});const f=oe.getBlockByType(l);if(!f){const m=M({text:u.textContent||""},h),E=_=>{const p=_.tagName.toLowerCase();p==="strong"?m.bold=!0:p==="em"?m.italic=!0:p==="u"?m.underline=!0:p==="del"?m.strikethrough=!0:p==="a"&&(m.link={href:u.getAttribute("href")||"",blank:u.getAttribute("target")==="_blank"})};return[...u.children].forEach(E),m}const D=f.void?[]:u.childNodes.length>0?[...u.childNodes].map(n):[];return{type:l,data:o,attributes:g,children:D}};return n(i.body.firstChild)}static isPageDataVariable(e){return/\$var\(([\s\S]+)\)/g.test(e)}};let qe=ki;ie(qe,"version","0.14.0"),ie(qe,"getPageDataVariables",(e,r)=>{var i;return((i=e.data.variables)==null?void 0:i.reduce((n,a)=>W(M({},n),{[a.name]:a.value}),M({},r)))||M({},r)}),ie(qe,"renderWithPageVariables",(e,r,i)=>{if(!r)return e;const n=j.cloneDeep(e);if(typeof n=="string")return n.replace(/\$var\(([\s\S]+)\)/g,(u,o)=>j.get(r,o,""));const a=u=>{j.forOwn(u,(o,l)=>{typeof o=="object"?(l!=="children"||i)&&a(o):typeof o=="string"&&(u[l]=o.replace(/\$var\(([\s\S]+)\)/g,(c,h)=>j.get(r,h,"")))})};return a(n),n}),ie(qe,"getUniversalElements",uu),ie(qe,"transformUniversalElements",ou);const La=S.createContext({}),hi=()=>S.useContext(La),tt=t=>{const e=S.useMemo(()=>{const r=qe.getPageDataVariables(t.context.content,t.attributesVariables||{});return W(M({},t),{pageVariables:r})},[t]);return S.createElement(La.Provider,{value:e},t.children)};var Ia=(t=>(t.RESPONSIVE="RESPONSIVE",t.TEMPLATE_ENGINE="TEMPLATE_ENGINE",t))(Ia||{});class wr{constructor(){ie(this,"enabledResponsive",!0)}}ie(wr,"type","RESPONSIVE");class Cr{}ie(Cr,"type","TEMPLATE_ENGINE");class Pa{}const He=class{static registerPlugins(e){e.forEach(r=>{He.registerPlugin(r)})}static registerPlugin(e){const r=new e;r instanceof wr?(He.enabledResponsive=r.enabledResponsive,He.generateResponsive=r.generateResponsive):r instanceof Cr?(He.generateIterationTemplate=r.generateIterationTemplate,He.generateConditionTemplate=r.generateConditionTemplate,He.generateVariable=r.generateVariable,He.isVariable=r.isVariable,He.renderWithData=r.renderWithData):r instanceof Pa&&r.generateElement()}};let me=He;ie(me,"enabledResponsive",!1),ie(me,"generateResponsive",e=>{const r=oe.getBlockByType(e.node.type),{mode:i,children:n,context:a,idx:u,node:o,keepEmptyAttributes:l,mergetagsData:c}=e;return r.render(W(M({},e),{mode:i,children:n,context:a,idx:u,node:o,keepEmptyAttributes:l,mergetagsData:c}))}),ie(me,"generateIterationTemplate",(e,r)=>r),ie(me,"isVariable",e=>!1),ie(me,"generateConditionTemplate",(e,r)=>r),ie(me,"generateVariable",e=>e),ie(me,"renderWithData",(e,r)=>e);const le=t=>{var x,k,b,w,y;const{children:e,node:r,idx:i}=t,{mode:n,context:a,displayMode:u,keepEmptyAttributes:o,mergetagsData:l,pageVariables:c}=hi(),h=oe.getBlockByType(r.type);if(!h)throw new Error(`${r.type} block is not registered`);let g=W(M({},r),{attributes:M({},r.attributes),mobileAttributes:M({},r.mobileAttributes)});const f=j.get(g,"attributes.css-class")||"";n==="production"&&j.set(g,"attributes.css-class",f.replace(Ba,"").replace(ai,""));const D=(x=g.attributes["mj-class"])==null?void 0:x.trim();if(D&&a.content.data.classAttributes){const T={},s=D.split(" ").map(v=>v.trim()).filter(Boolean);Object.values(s).forEach(v=>{j.get(a.content.data.classAttributes,v)&&Object.assign(T,j.get(a.content.data.classAttributes,v))}),g.attributes=G(T,g.attributes)}const m=(k=a.content.data.blockAttributes)==null?void 0:k[g.type];m&&(g.attributes=G(m,g.attributes));const E=(b=a.content.data.categoryAttributes)==null?void 0:b[h.category];a.content.data.globalAttributes&&(g.attributes=G(a.content.data.globalAttributes,g.attributes)),E&&(g.attributes=G(E,g.attributes));const _=oe.getBlockByType(g.type).defaultData.attributes;if(_&&(g.attributes=G(_,g.attributes)),Z.isSectionElement(r)||Z.isWrapperElement(r)){const T=a.content.attributes["content-background-color"];T&&(g.attributes=G({"background-color":T},g.attributes))}let d=c;Z.isWidgetElement(g)?(d=G(c,g.data.input),g=qe.renderWithPageVariables(g,d,!0)):g=qe.renderWithPageVariables(g,d);let A=me.generateResponsive({mode:n,children:e,context:a,idx:i,node:g,keepEmptyAttributes:o,mergetagsData:l,displayMode:u});if(n==="production"){const T=(w=r.logic)==null?void 0:w.condition,s=(y=r.logic)==null?void 0:y.iteration;s&&s.enabled&&(A=me.generateIterationTemplate(s,A)),T&&T.enabled&&(A=me.generateConditionTemplate(j.cloneDeep(T),A))}return S.createElement(S.Fragment,null,A)},ze=({node:t})=>{let e=t.text;const r={};return e?(t.bold&&(e=S.createElement("strong",null,e)),t.italic&&(e=S.createElement("em",null,e)),t.underline&&(e=S.createElement("u",null,e)),t.strikethrough&&(e=S.createElement("del",null,e)),t.link&&(e=S.createElement("a",{href:t.link.href,target:t.link.blank?"_blank":void 0},e)),t.color&&(r.color=t.color),t.bgColor&&(r.backgroundColor=t.bgColor),t.fontSize&&(r.fontSize=t.fontSize),t.fontFamily&&(r.fontFamily=t.fontFamily),j.isString(e)&&Object.keys(r).length===0?S.createElement(S.Fragment,null,e):S.createElement("span",{style:r},e)):null};function fe(t){const{params:e,params:{node:r,idx:i,children:n,keepEmptyAttributes:a},tag:u,children:o}=t,l=o||n,c=Is(e,{keepEmptyAttributes:a,removeDefaultAttributes:e.mode==="production"}),h=S.createElement(S.Fragment,null,`<${u}${c?` ${c}`:""}>`,l||r.children.map((g,f)=>Z.isTextNode(g)?Z.isTextListElement(r)?S.createElement(S.Fragment,{key:f},"<li>",S.createElement(ze,W(M({key:f},e),{node:g})),"</li>"):S.createElement(ze,W(M({key:f},e),{node:g})):S.createElement(le,W(M({key:f},e),{idx:i?Z.getChildIdx(i,f):null,node:g}))),`</${u}>`);return S.createElement(S.Fragment,null,h)}const Ha=t=>{if(S.isValidElement(t)||j.isString(t)||j.isUndefined(t)||j.isNumber(t)||j.isBoolean(t)||t===null||Array.isArray(t)&&t.every(e=>Ha(e)))return!0};function ae(t){return!!Ha(t)}function di(t){const u=t,{data:e,idx:r,children:i}=u,n=ce(u,["data","idx","children"]),a={type:U.WRAPPER,data:e||{},attributes:M({},n),children:ae(i)?[]:i||[]};return S.createElement(le,{idx:r,node:a,children:ae(i)?i:null})}function Ma(t){const u=t,{data:e,idx:r,children:i}=u,n=ce(u,["data","idx","children"]),a={type:U.SECTION,data:e||{},attributes:M({},n),children:ae(i)?[]:i||[]};return S.createElement(le,{idx:r,node:a,children:ae(i)?i:null})}function Ua(t){const u=t,{data:e,idx:r,children:i}=u,n=ce(u,["data","idx","children"]),a={type:U.GROUP,data:e||{},attributes:M({},n),children:ae(i)?[]:i||[]};return S.createElement(le,{idx:r,node:a,children:ae(i)?i:null})}function za(t){const u=t,{data:e,idx:r,children:i}=u,n=ce(u,["data","idx","children"]),a={type:U.COLUMN,data:e||{},attributes:M({},n),children:ae(i)?[]:i||[]};return S.createElement(le,{idx:r,node:a,children:ae(i)?i:null})}function $a(t){const u=t,{data:e,children:r,idx:i}=u,n=ce(u,["data","children","idx"]),a={type:U.BUTTON,data:e||{},attributes:M({},n),children:ae(r)?[]:r||[]};return S.createElement(le,{idx:i,node:a,children:ae(r)?r:null})}function Va(t){const u=t,{data:e,idx:r,children:i}=u,n=ce(u,["data","idx","children"]),a={type:U.IMAGE,data:e||{},attributes:M({},n),children:ae(i)?[]:i||[]};return S.createElement(le,{idx:r,node:a,children:ae(i)?i:null})}function Br(t){const u=t,{data:e,idx:r,children:i}=u,n=ce(u,["data","idx","children"]),a={type:U.TEXT,data:e||{},attributes:M({},n),children:ae(i)?[]:i||[]};return S.createElement(le,{idx:r,node:a,children:ae(i)?i:null})}function ja(t){const u=t,{data:e,idx:r,children:i}=u,n=ce(u,["data","idx","children"]),a={type:U.SPACER,data:e||{},attributes:M({},n),children:ae(i)?[]:i||[]};return S.createElement(le,{idx:r,node:a,children:ae(i)?i:null})}function Oe(t){const u=t,{data:e,children:r,idx:i}=u,n=ce(u,["data","children","idx"]),a={type:U.RAW,data:e||{content:r||""},attributes:M({},n),children:ae(r)?[]:r||[]};return S.createElement(le,{idx:i,node:a,children:ae(r)?r:null})}function Wa(t){const u=t,{data:e,idx:r,children:i}=u,n=ce(u,["data","idx","children"]),a={type:U.DIVIDER,data:e||{},attributes:M({},n),children:ae(i)?[]:i||[]};return S.createElement(le,{idx:r,node:a,children:ae(i)?i:null})}function Ga(t){const u=t,{data:e,idx:r,children:i}=u,n=ce(u,["data","idx","children"]),a={type:U.NAVBAR,data:e||{},attributes:M({},n),children:ae(i)?[]:i||[]};return S.createElement(le,{idx:r,node:a,children:ae(i)?i:null})}function Ka(t){const u=t,{data:e,idx:r,children:i}=u,n=ce(u,["data","idx","children"]),a={type:U.NAVBAR_LINK,data:e||{},attributes:M({},n),children:ae(i)?[]:i||[]};return S.createElement(le,{idx:r,node:a,children:ae(i)?i:null})}function Xa(t){const u=t,{data:e,idx:r,children:i}=u,n=ce(u,["data","idx","children"]),a={type:U.SOCIAL,data:e||{},attributes:M({},n),children:ae(i)?[]:i||[]};return S.createElement(le,{idx:r,node:a,children:ae(i)?i:null})}function Ya(t){const u=t,{data:e,idx:r,children:i}=u,n=ce(u,["data","idx","children"]),a={type:U.SOCIAL_ELEMENT,data:e||{},attributes:M({},n),children:ae(i)?[]:i||[]};return S.createElement(le,{idx:r,node:a,children:ae(i)?i:null})}function Qa(t){const u=t,{data:e,idx:r,children:i}=u,n=ce(u,["data","idx","children"]),a={type:U.HERO,data:e||{},attributes:M({},n),children:ae(i)?[]:i||[]};return S.createElement(le,{idx:r,node:a,children:ae(i)?i:null})}function Mo(t){const u=t,{tagName:e,children:r,idx:i}=u,n=ce(u,["tagName","children","idx"]),a={type:U.HTML_NODE,data:{tagName:e},attributes:M({},n),children:ae(r)?[]:r||[]};return S.createElement(le,{idx:i,node:a,children:ae(r)?r:null})}function Uo(t){const a=t,{idx:e,children:r}=a,i=ce(a,["idx","children"]),n={type:Y.FOR_EACH,data:M({},i),attributes:{},children:ae(r)?[]:r||[]};return S.createElement(le,{idx:e,node:n,children:ae(r)?r:null})}function zo(t){const a=t,{idx:e,children:r}=a,i=ce(a,["idx","children"]),n={type:Y.SHOW,data:W(M({},i),{component:r}),attributes:{},children:[]};return S.createElement(le,{idx:e,node:n,children:r})}function $o(t){const u=t,{tagName:e,idx:r,children:i}=u,n=ce(u,["tagName","idx","children"]),a={type:Y.HTML_DOM_NODE,data:{tagName:e},attributes:M({},n),children:ae(i)?[]:i||[]};return S.createElement(le,{idx:r,node:a,children:ae(i)?i:null})}const Vo=({node:t})=>S.createElement(le,{node:W(M({},t),{attributes:W(M({},t.attributes),{"css-class":dt(t.attributes["css-class"],ai)})})}),jo=Object.freeze(Object.defineProperty({__proto__:null,BasicBlock:fe,BlockRenderer:le,Button:$a,Column:za,ContentLeaf:ze,Divider:Wa,ForEach:Uo,Group:Ua,Hero:Qa,HtmlDomNode:$o,HtmlNode:Mo,Image:Va,Navbar:Ga,NavbarLink:Ka,Raw:Oe,Section:Ma,Show:zo,SlateNodePlaceholder:Vo,Social:Xa,SocialElement:Ya,Spacer:ja,Text:Br,Wrapper:di},Symbol.toStringTag,{value:"Module"})),Wo={attributes:{width:"600px","margin-top":"30px","margin-bottom":"30px","link-text-decoration":"underline"},data:{breakpoint:"480px"}},Go={get name(){return K("Page")},defaultData:Wo,type:U.PAGE,create:t=>{const e={type:U.PAGE,data:{breakpoint:"480px",globalAttributes:{"font-family":"Arial, sans-serif"}},attributes:{},children:[]};return G(e,t)},category:z.PAGE,render(t){var _,p,d,A,x,k;const{node:e,node:{data:r,attributes:i},mode:n}=t,a=r.breakpoint?`<mj-breakpoint width="${r.breakpoint}" />`:"",u=[...r.headStyles||[]];n==="testing"?u.unshift({content:wa}):(u.unshift({content:ru}),u.unshift({content:iu,inline:"inline"}));const o=u.map(b=>`<mj-style ${b.inline?'inline="inline"':""}>${b.content}</mj-style>`).join(`
|
|
61
61
|
`)||"",l={color:((_=i["link-color"])==null?void 0:_.trim())||"inherit","font-weight":(p=i["link-font-weight"])==null?void 0:p.trim(),"text-decoration":(d=i["link-text-decoration"])==null?void 0:d.trim(),"font-style":(A=i["link-font-style"])==null?void 0:A.trim()},h=`<mj-style>.mjbody a, .mjbody a:hover, .mjbody a:active, .mjbody a[href], .mjbody a[href]:hover, .mjbody a[href]:active {${Object.keys(l).map(b=>{const w=l;return w[b]?`${b}: ${w[b]}`:""}).filter(Boolean).join(";")}}</mj-style>`,g=i["background-color"]?`background-color="${i["background-color"]}"`:"",f=i["margin-top"]&&i["margin-top"]!=="0px"?`<mj-section padding="0px"><mj-column><mj-spacer height="${i["margin-top"]}"></mj-spacer></mj-column></mj-section>`:"",D=i["margin-bottom"]&&i["margin-bottom"]!=="0px"?`<mj-section padding="0px"><mj-column><mj-spacer height="${i["margin-top"]}"></mj-spacer></mj-column></mj-section>`:"",m=r.preheader?`<mj-preview>${r.preheader}</mj-preview>`:"",E=i.width||"600px";return S.createElement(S.Fragment,null,`
|
|
62
62
|
<mjml>
|
|
63
63
|
<mj-head>
|
package/lib/index.es.js
CHANGED