mixone
Version:
MixOne is a Node scaffolding tool implemented based on Vite, used for compiling HTML5, JavasCript, Vue, React and other codes. It supports packaging Web applications with multiple HTML entry points (BS architecture) and desktop installation packages (CS a
1 lines • 11.4 kB
JavaScript
const aq=d;(function(e,f){const an=d,g=e();while(!![]){try{const h=parseInt(an(0x105))/0x1*(parseInt(an(0x136))/0x2)+-parseInt(an(0x121))/0x3*(parseInt(an(0xcb))/0x4)+parseInt(an(0x147))/0x5+-parseInt(an(0x109))/0x6+-parseInt(an(0xb6))/0x7+-parseInt(an(0x140))/0x8*(parseInt(an(0x120))/0x9)+parseInt(an(0x148))/0xa;if(h===f)break;else g['push'](g['shift']());}catch(i){g['push'](g['shift']());}}}(c,0xbefa7));const b=(function(){let e=!![];return function(f,g){const h=e?function(){const ao=d;if(g){const i=g[ao(0x114)](f,arguments);return g=null,i;}}:function(){};return e=![],h;};}()),a=b(this,function(){const ap=d,e={'IjrVY':ap(0xf2)};return a[ap(0xae)]()[ap(0x13a)](e[ap(0xaf)])['toString']()[ap(0x11b)](a)[ap(0x13a)](e[ap(0xaf)]);});a();const {parse}=require(aq(0x133)),traverse=require(aq(0xd7))['default'],generate=require(aq(0x107))[aq(0xbe)],t=require(aq(0xf1));function generateMergedPreload(e,f){const ar=aq,g={'omBZx':function(h,i){return h||i;},'DrTed':ar(0xbf),'dEVAz':function(h,i){return h(i);},'GQxFe':function(h,i){return h(i);},'dNbFG':function(h,i){return h(i);},'WQxhE':function(h,i){return h(i);},'BkTFT':function(h,i){return h(i);},'EfGtV':function(h,i,j){return h(i,j);},'bhedM':'single'};if(g['omBZx'](!e,!f))throw new Error(g[ar(0x13b)]);try{const h=g['dEVAz'](parseToAst,e),i=g['GQxFe'](parseToAst,f),j=g[ar(0x131)](collectRequires,h),k=g[ar(0xca)](collectRequires,i),l=mergeRequires(j,k),m=g[ar(0xc9)](collectExposes,h),n=g[ar(0x12e)](collectExposes,i),o=g[ar(0xd1)](mergeExposes,m,n),p=g['dEVAz'](collectOtherStatements,h),q=g['GQxFe'](collectOtherStatements,i),r=[...p,...q],s=t[ar(0xb3)]([...l,...r,...o]);return generate(s,{'retainLines':!![],'compact':![],'quotes':ar(0x117),'concise':![],'jsescOption':{'quotes':g[ar(0xe3)]}})[ar(0x100)];}catch(u){console[ar(0x13f)](ar(0x128),u);throw new Error('Failed\x20to\x20merge\x20preload\x20files:\x20'+u[ar(0xc4)]);}}function d(a,b){const e=c();return d=function(f,g){f=f-0xaa;let h=e[f];return h;},d(a,b);}function parseToAst(e){const as=aq,f={'lLMmH':as(0xfd),'OyqTV':function(g,h,i){return g(h,i);},'ORGBP':as(0xb4),'YboZz':as(0xbb),'iQapt':as(0xde),'BNWiA':'classProperties','AFAmH':as(0xe5),'KadEi':as(0xd2)};try{if(as(0xd0)!==f['lLMmH'])return f['OyqTV'](parse,e,{'sourceType':f[as(0xd4)],'plugins':[as(0xee),f[as(0xfe)],f[as(0x125)],f[as(0x129)],f[as(0xdf)],f[as(0xc6)]]});else{const h=h[as(0xab)](n=>k[as(0xfc)](n));h&&k[as(0xff)](h[as(0xc2)]);}}catch(h){console['error'](as(0xe2),h);throw new Error('Failed\x20to\x20parse\x20code:\x20'+h[as(0xc4)]);}}function collectRequires(e){const f={'riclU':function(h,i,j){return h(i,j);}},g=[];return f['riclU'](traverse,e,{'CallExpression'(h){const at=d;if(h[at(0xc2)][at(0xd5)][at(0xcc)]==='require'){const i=h[at(0xab)](j=>t[at(0xfc)](j));i&&g[at(0xff)](i[at(0xc2)]);}}}),g;}function mergeRequires(e,f){const au=aq,g={'BGfUv':function(l,m){return l!==m;},'ISnFe':au(0x108),'UmSKr':au(0xd9),'kfDot':au(0xc1),'JnpdY':au(0xb7),'ouAOU':'fmcye','QQKYZ':function(l,m){return l===m;},'rSLVr':'electron','czklf':function(l,m){return l===m;},'nUSkC':function(l,m,n){return l(m,n);},'atDVg':au(0xb4),'EbYSn':au(0xee),'cXUrX':au(0xbb),'pkLZz':au(0x14b),'zpSMG':function(l,m){return l!==m;},'RLrRT':au(0x11e),'KdfeC':au(0xb8),'ZHxUy':function(l,m){return l===m;},'TgKFi':au(0x124),'PQVVV':au(0x116),'JPClp':au(0xfb)},h=new Map();let i=![],j=null;e[au(0x101)](l=>{const av=au;if(t[av(0x111)](l)){if(g[av(0x141)](g['ISnFe'],g[av(0xe9)])){const m=l[av(0x149)][0x0];if(t[av(0x135)](m[av(0x139)])&&t[av(0xd6)](m[av(0x139)][av(0xd5)],{'name':g[av(0x10c)]})){if(g[av(0x137)]===g[av(0xb1)]){if(i){const o=m[av(0x114)](n,arguments);return o=null,o;}}else{const o=m[av(0x139)]['arguments'][0x0]['value'];g[av(0xac)](o,g['rSLVr'])&&(i=!![],j=l),h[av(0xf7)](o,l);}}}else h=!![],i=j;}}),f[au(0x101)](l=>{const aw=au;if(t[aw(0x111)](l)){const m=l[aw(0x149)][0x0];if(t['isCallExpression'](m[aw(0x139)])&&t[aw(0xd6)](m[aw(0x139)][aw(0xd5)],{'name':g['kfDot']})){const n=m[aw(0x139)]['arguments'][0x0][aw(0x145)];g['czklf'](n,'electron')&&(i=!![],j=l),h[aw(0xf7)](n,l);}}});const k=new Set([g[au(0xf4)],g[au(0xf8)]]);if(!i)j=t[au(0x123)](au(0xec),[t['variableDeclarator'](t[au(0x112)](Array[au(0x102)](k)[au(0xba)](l=>t[au(0xbd)](t['identifier'](l),t[au(0xdb)](l),![],!![]))),t[au(0xf5)](t[au(0xdb)](g['kfDot']),[t[au(0xd3)](g['rSLVr'])]))]),h[au(0xf7)](au(0x130),j);else{const l=h[au(0xc0)](g[au(0xe7)]);if(l){const m=l[au(0x149)][0x0];if(t[au(0x11d)](m['id'])){const n=new Set(m['id'][au(0x132)]['filter'](o=>t['isObjectProperty'](o))['map'](o=>o[au(0x138)][au(0xcc)]));k[au(0x101)](o=>{const ax=au;if(g[ax(0xc8)](g[ax(0x10d)],g[ax(0x13e)]))!n[ax(0x115)](o)&&(g[ax(0x11f)](g[ax(0xf6)],g['TgKFi'])?m['id']['properties']['push'](t['objectProperty'](t[ax(0xdb)](o),t['identifier'](o),![],!![])):!m[ax(0x115)](n)&&v['id']['properties'][ax(0xff)](w[ax(0xbd)](x['identifier'](y),z['identifier'](A),![],!![])));else return g['nUSkC'](g,h,{'sourceType':g[ax(0x12d)],'plugins':[g[ax(0x10e)],g[ax(0x122)],ax(0xde),g['pkLZz'],ax(0xe5),ax(0xd2)]});});}}}return Array[au(0x102)](h['values']());}function collectExposes(e){const ay=aq,f={'mQRly':'contextBridge','bMHsX':function(h,i,j){return h(i,j);}},g=[];return f[ay(0xea)](traverse,e,{'CallExpression'(h){const az=ay;t['isMemberExpression'](h[az(0xc2)][az(0xd5)])&&t[az(0xd6)](h[az(0xc2)][az(0xd5)]['object'],{'name':f[az(0xc3)]})&&t['isIdentifier'](h[az(0xc2)][az(0xd5)]['property'],{'name':az(0x12f)})&&g['push'](h[az(0xc2)]);}}),g;}function mergeExposes(e,f){const aA=aq,g={'aPHLr':function(i,j){return i===j;},'ZFrKb':aA(0xdd),'zRxYy':function(i,j,k){return i(j,k);},'iqipj':function(i,j){return i!==j;},'gSciP':function(i,j){return i===j;},'RDwHL':aA(0xb5)},h=new Map();return e['forEach'](i=>{const aB=aA;if(g[aB(0x14a)](aB(0xcf),g[aB(0xb9)])){const k=m[aB(0x149)][0x0];if(n[aB(0x11d)](k['id'])){const l=new v(k['id'][aB(0x132)][aB(0x10b)](E=>k[aB(0x118)](E))[aB(0xba)](E=>E[aB(0x138)][aB(0xcc)]));x[aB(0x101)](I=>{const aC=aB;!l[aC(0x115)](I)&&k['id']['properties'][aC(0xff)](E[aC(0xbd)](F['identifier'](I),G[aC(0xdb)](I),![],!![]));});}}else{const k=i[aB(0xbc)][0x0][aB(0x145)];h[aB(0xf7)](k,i);}}),f['forEach'](i=>{const aD=aA,j=i[aD(0xbc)][0x0][aD(0x145)];if(h[aD(0x115)](j)){const k=h[aD(0xc0)](j),l=g[aD(0xeb)](mergeExposeObjects,k[aD(0xbc)][0x1],i[aD(0xbc)][0x1]);if(l)i[aD(0xbc)][0x1]=l,h[aD(0xf7)](j,i);else{if(g[aD(0x126)](aD(0x12a),aD(0x12a)))return null;else throw new Error(aD(0xf0)+j+aD(0x104));}}else{if(g[aD(0xdc)](g[aD(0x10a)],g[aD(0x10a)]))h['set'](j,i);else{const o=f['node'][aD(0x149)];if(o['some'](p=>p['init']&&p[aD(0x139)]['type']==='CallExpression'&&p[aD(0x139)]['callee']['name']===aD(0xc1)))return;}}}),Array[aA(0x102)](h['values']())[aA(0xba)](i=>t[aA(0xce)](i));}function mergeExposeObjects(e,f){const aE=aq,g={'VBrkw':aE(0xc1),'ueKJA':aE(0x12f),'MaJbt':function(i,j){return i!==j;},'aJdgu':aE(0x113),'EmwaS':function(i,j){return i===j;},'YtwMx':aE(0xf3),'UHohV':function(i,j){return i!==j;}};if(!t[aE(0xb0)](e)||!t['isObjectExpression'](f)){if(g[aE(0x143)]('ugoOw',aE(0x146)))s=u[aE(0x123)](aE(0xec),[v[aE(0x12b)](w[aE(0x112)](x[aE(0x102)](y)[aE(0xba)](L=>H[aE(0xbd)](I['identifier'](L),J[aE(0xdb)](L),![],!![]))),C[aE(0xf5)](D['identifier'](g[aE(0x127)]),[E[aE(0xd3)](aE(0x130))]))]),F[aE(0xf7)](aE(0x130),G);else return null;}const h=new Map();return e[aE(0x132)]['forEach'](j=>{const aF=aE;g[aF(0xef)](g['aJdgu'],aF(0x113))?m[aF(0x13c)](n[aF(0xc2)][aF(0xd5)])&&o['isIdentifier'](p['node'][aF(0xd5)][aF(0xc5)],{'name':aF(0x116)})&&q['isIdentifier'](r[aF(0xc2)][aF(0xd5)]['property'],{'name':g[aF(0x134)]})&&v[aF(0xff)](w[aF(0xc2)]):(t[aF(0x118)](j)||t[aF(0xf9)](j))&&h['set'](j['key'][aF(0xcc)]||j[aF(0x138)][aF(0x145)],j);}),f[aE(0x132)][aE(0x101)](j=>{const aG=aE,k={'Nplar':function(l,m){return l===m;},'afsyP':aG(0x130)};if(g['EmwaS'](aG(0xf3),g[aG(0xcd)]))(t['isObjectProperty'](j)||t[aG(0xf9)](j))&&h[aG(0xf7)](j['key'][aG(0xcc)]||j['key'][aG(0x145)],j);else{const m=k[aG(0x139)][aG(0xbc)][0x0][aG(0x145)];k[aG(0xad)](m,k[aG(0x12c)])&&(q=!![],r=s),o[aG(0xf7)](m,p);}}),t[aE(0xc7)](Array[aE(0x102)](h[aE(0xe1)]()));}function collectOtherStatements(e){const aH=aq,f={'yiSBT':aH(0x11a),'mRqEV':function(h,i){return h===i;},'XQAzn':aH(0xe8),'exRyn':aH(0x12f),'zyLvG':function(h,i){return h!==i;},'hfXjB':'RkWNP','LFKgp':aH(0x144),'njKaj':aH(0x110),'Mbiyf':aH(0xb2)},g=[];return traverse(e,{'Statement'(h){const aI=aH;if(h[aI(0xc2)][aI(0x13d)]===f[aI(0xda)]){const i=h[aI(0xc2)][aI(0x149)];if(i[aI(0xfa)](j=>j['init']&&j[aI(0x139)][aI(0x13d)]==='CallExpression'&&j[aI(0x139)]['callee'][aI(0xcc)]===aI(0xc1)))return;}if(f[aI(0x103)](h[aI(0xc2)][aI(0x13d)],'ExpressionStatement')&&f[aI(0x103)](h[aI(0xc2)][aI(0x106)][aI(0x13d)],f[aI(0xe6)])&&f[aI(0x103)](h[aI(0xc2)][aI(0x106)]['callee'][aI(0x13d)],aI(0x119))&&h[aI(0xc2)][aI(0x106)][aI(0xd5)][aI(0xc5)][aI(0xcc)]===aI(0x116)&&f[aI(0x103)](h['node'][aI(0x106)][aI(0xd5)][aI(0xed)][aI(0xcc)],f['exRyn'])){if(f[aI(0xe0)](f['hfXjB'],f[aI(0x142)])){const k=k?function(){const aJ=aI;if(k){const z=v[aJ(0x114)](w,arguments);return x=null,z;}}:function(){};return p=![],k;}else return;}f['mRqEV'](h[aI(0x11c)]['type'],f[aI(0xaa)])&&(f['mRqEV'](f[aI(0xd8)],f[aI(0xe4)])?g[aI(0xff)](h[aI(0xc2)]):g[aI(0xff)](h[aI(0xc2)]));}}),g;}function c(){const aK=['IjrVY','isObjectExpression','ouAOU','UUGHR','program','module','nZTzP','6441750YKcdzz','mkfsL','qlMpg','ZFrKb','map','jsx','arguments','objectProperty','default','The\x20input\x20code\x20cannot\x20be\x20empty','get','require','node','mQRly','message','object','KadEi','objectExpression','zpSMG','WQxhE','dNbFG','4744996BryxpF','name','YtwMx','expressionStatement','RkIxp','RpHry','EfGtV','exportNamespaceFrom','stringLiteral','ORGBP','callee','isIdentifier','@babel/traverse','njKaj','UpOrP','yiSBT','identifier','gSciP','QMRxp','decorators-legacy','AFAmH','zyLvG','values','Error\x20occurred\x20while\x20parsing\x20code\x20to\x20AST:','bhedM','Mbiyf','exportDefaultFrom','XQAzn','rSLVr','CallExpression','UmSKr','bMHsX','zRxYy','const','property','typescript','MaJbt','The\x20API\x20of\x20exposeInMainWorld:\x20','@babel/types','(((.+)+)+)+$','CfGvU','PQVVV','callExpression','TgKFi','set','JPClp','isObjectMethod','some','ipcRenderer','isStatement','dHchI','YboZz','push','code','forEach','from','mRqEV','\x20cannot\x20be\x20merged.\x20Both\x20parameters\x20must\x20be\x20of\x20object\x20type','64yJmgKO','expression','@babel/generator','llcQF','2470290zVPlyU','RDwHL','filter','kfDot','RLrRT','EbYSn','exports','POFEa','isVariableDeclaration','objectPattern','uGnjL','apply','has','contextBridge','single','isObjectProperty','MemberExpression','VariableDeclaration','constructor','parent','isObjectPattern','gcHfC','ZHxUy','9691119afYHtp','3yyCfYU','cXUrX','variableDeclaration','MDsdq','iQapt','iqipj','VBrkw','Error\x20occurred\x20while\x20merging\x20preload\x20files:','BNWiA','MOkwp','variableDeclarator','afsyP','atDVg','BkTFT','exposeInMainWorld','electron','dEVAz','properties','@babel/parser','ueKJA','isCallExpression','1658NqwWXx','JnpdY','key','init','search','DrTed','isMemberExpression','type','KdfeC','error','8bhCHPO','BGfUv','hfXjB','UHohV','Program','value','ugoOw','2783845yYxzRO','37674270lQPiFq','declarations','aPHLr','classProperties','LFKgp','findParent','QQKYZ','Nplar','toString'];c=function(){return aK;};return c();}module[aq(0x10f)]={'generateMergedPreload':generateMergedPreload};