UNPKG

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 6.17 kB
const Q=d;function d(a,b){const e=c();return d=function(f,g){f=f-0x133;let h=e[f];return h;},d(a,b);}function c(){const Y=['AeyYG','apply','preload.js','QxzlX','flbXq','JaSzN','VSwbS','(((.+)+)+)+$','copy_file','kSEBR','DfXwD','bntfV','trim','420764dMhFMp','3hKvJtS','toString','JcVyz','Successfully\x20processed\x20existing\x20preload.js:\x20','-window','Successfully\x20processed\x20preload.js:\x20','exports','out\x5c','DEkJz','TSBwZ','Maldc','join','btPfE','existsSync','./static-file-copier','MgGTF','windows','531102DCFvkb','readdirSync','path','frmYo','LllnR','awroK','log','315hJwOrk','WMKiz','relative','endsWith','hSTMo','copyFileSync','search','owqDl','isDirectory','BtBNs','ijwQy','kirrR','SGOHN','window-controller.js','readFileSync','rjhqV','5026290dnmPLv','startsWith','rTPVr','statSync','nlngV','TVEYE','utf-8','Copied\x20window-controller.js\x20to\x20window\x20directory:\x20','128244pXHAaF','1101780jteezU','mgnfN','pVUeD','ILPIy','qWzdo','99BWizOZ','4341195mEGiZl','24hgPEZm','Window\x20directory\x20processing\x20completed:\x20','mkdirSync','constructor','GZBGe','BHAOe','luBtK','writeFileSync','KIiYz','3186729TMJOfZ'];c=function(){return Y;};return c();}(function(e,f){const L=d,g=e();while(!![]){try{const h=-parseInt(L(0x133))/0x1+parseInt(L(0x163))/0x2*(parseInt(L(0x152))/0x3)+-parseInt(L(0x151))/0x4+-parseInt(L(0x139))/0x5+-parseInt(L(0x182))/0x6*(parseInt(L(0x16a))/0x7)+parseInt(L(0x13a))/0x8*(-parseInt(L(0x143))/0x9)+-parseInt(L(0x17a))/0xa*(-parseInt(L(0x138))/0xb);if(h===f)break;else g['push'](g['shift']());}catch(i){g['push'](g['shift']());}}}(c,0xa8709));const b=(function(){const M=d,e={'eZerm':'WsVsi','BHAOe':M(0x161)};let f=!![];return function(g,h){const N=M,i={'mgnfN':e['eZerm'],'BtBNs':e[N(0x13f)]},j=f?function(){const O=N;if(h){if(i[O(0x134)]===i[O(0x173)])return h[O(0x15d)](i,j);else{const l=h[O(0x145)](g,arguments);return h=null,l;}}}:function(){};return f=![],j;};}()),a=b(this,function(){const P=d,e={'ILPIy':P(0x14b)};return a[P(0x153)]()[P(0x170)](e[P(0x136)])[P(0x153)]()[P(0x13d)](a)[P(0x170)](P(0x14b));});a();const fs=require('fs'),path=require(Q(0x165)),{generateDefaultPreloadScript}=require(Q(0x160)),{generateMergedPreload}=require('./preload-merger');function handleWindowPreload(e,f,g,h){const R=Q,i={'GZBGe':function(o,p,q,r,s){return o(p,q,r,s);},'DfXwD':R(0x146),'rTPVr':function(o,p,q){return o(p,q);},'flbXq':function(o,p){return o!==p;},'btPfE':'anjvv','hSTMo':'IERJD','JaSzN':R(0x17f),'ZIiJq':'XBUVz','bntfV':R(0x14c),'kirrR':R(0x177),'NApjm':function(o,p){return o===p;},'QxzlX':R(0x176)},j=path['join'](e,i[R(0x14e)]),k=path['join'](h,i[R(0x14e)]),l=path[R(0x16c)](e,h),m=path['join'](f,l),n=path[R(0x15d)](m,i[R(0x14e)]);if(!fs[R(0x15f)](k)){!fs[R(0x15f)](m)&&fs[R(0x13c)](m,{'recursive':!![]});let o=i[R(0x17c)](generateDefaultPreloadScript,g,f),p;if(fs[R(0x15f)](j)){if(i[R(0x148)](i[R(0x15e)],i[R(0x16e)])){const s=fs[R(0x178)](j,R(0x180));p=i[R(0x17c)](generateMergedPreload,o,s);}else{const u=h['apply'](i,arguments);return j=null,u;}}else i[R(0x149)]!==i['ZIiJq']?p=o:(i[R(0x13e)](o,p,q,r,s),t(u,v,w,x));fs[R(0x141)](n,p);const q=path[R(0x15d)](g,i[R(0x14f)],i[R(0x175)]),r=path['join'](m,i['kirrR']);fs['existsSync'](q)&&(i['NApjm'](i[R(0x147)],R(0x176))?(fs[R(0x16f)](q,r),console['log'](R(0x181)+path[R(0x16c)](e,r))):g=h);}}function getNormalizedOutPath(e,f,g){const S=Q,h={'CoxBL':function(i,j){return i===j;},'frmYo':S(0x140)};if(g[S(0x17b)]('out/')||g[S(0x17b)](S(0x159))){if(h['CoxBL'](h[S(0x166)],h[S(0x166)]))return path[S(0x15d)](e,g);else l[S(0x16f)](m,n),o[S(0x169)](S(0x181)+p['relative'](q,r));}return path['join'](f,g);}function writeDefaultPreloadFileWhenDeleted(e,f,g,h){const T=Q,i={'LllnR':function(k,l,m){return k(l,m);}},j=i[T(0x167)](generateDefaultPreloadScript,e,f);fs[T(0x141)](g,j),console['log'](T(0x155)+h);}function isWindowDirectory(e,f){const U=Q,g={'GnxTc':'windows','kSEBR':U(0x156)};return f===g['GnxTc']||f[U(0x16d)](g[U(0x14d)]);}function processWindowDirectory(e,f,g,h,i){const V=Q,j={'pVUeD':'preload.js','rjhqV':function(t,u,v,w){return t(u,v,w);},'pCFYO':function(t,u,v){return t(u,v);},'awroK':V(0x180),'qWzdo':V(0x14c),'nlngV':V(0x177)},k=path['join'](e,j['pVUeD']),l=path[V(0x16c)](e,h),m=j[V(0x179)](getNormalizedOutPath,e,f,l),n=path[V(0x15d)](h,j[V(0x135)]),o=path[V(0x15d)](m,j['pVUeD']),p=j['pCFYO'](generateDefaultPreloadScript,g,f);let q=p;if(fs['existsSync'](n)){const t=fs[V(0x178)](n,j['awroK']);q=t[V(0x150)]()?generateMergedPreload(p,t):p;}if(fs[V(0x15f)](k)){const u=fs[V(0x178)](k,j[V(0x168)]);q=generateMergedPreload(q,u);}fs[V(0x141)](o,q),console['log'](V(0x157)+l);const r=path[V(0x15d)](g,j[V(0x137)],V(0x177)),s=path[V(0x15d)](m,j[V(0x17e)]);fs[V(0x15f)](r)&&(fs[V(0x16f)](r,s),console[V(0x169)](V(0x181)+path['relative'](e,s))),i&&console[V(0x169)](V(0x13b)+l);}function findAndProcessWindowDirs(e,f,g,h,i){const W=Q,j={'AeyYG':W(0x180),'DEkJz':function(l,m,n){return l(m,n);},'aSKMk':function(l,m){return l!==m;},'owqDl':W(0x154),'TSBwZ':function(l,m){return l===m;},'WMKiz':W(0x15c),'KIiYz':function(l,m,n,o,p,q){return l(m,n,o,p,q);},'ijwQy':function(l,m,n,o,p,q){return l(m,n,o,p,q);}},k=fs[W(0x164)](h);for(const l of k){const m=path[W(0x15d)](h,l);if(!fs[W(0x17d)](m)[W(0x172)]()||l['startsWith']('.')){if(j['aSKMk'](j[W(0x171)],j[W(0x171)])){const p=j[W(0x178)](k,j[W(0x144)]);l=m(n,p);}else continue;}if(j[W(0x15a)](isWindowDirectory,m,l)){if(j[W(0x15b)](j[W(0x16b)],W(0x15c)))j[W(0x142)](processWindowDirectory,e,f,g,m,i);else{const p=j[W(0x178)](k,j[W(0x144)]);l=j[W(0x15a)](m,n,p);}}j[W(0x174)](findAndProcessWindowDirs,e,f,g,m,i);}}function checkWindowPreloadAndCopy(e,f,g){const X=Q,h={'NPnuI':function(j,k,l,m,n){return j(k,l,m,n);},'VSwbS':function(j,k,l,m,n){return j(k,l,m,n);}};console[X(0x169)]('Checking\x20if\x20window\x20directories\x20need\x20preload.js\x20files...');const i=path['join'](e,X(0x162));fs[X(0x15f)](i)&&(h['NPnuI'](processWindowDirectory,e,f,g,i),h[X(0x14a)](findAndProcessWindowDirs,e,f,g,i));}module[Q(0x158)]={'checkWindowPreloadAndCopy':checkWindowPreloadAndCopy,'writeDefaultPreloadFileWhenDeleted':writeDefaultPreloadFileWhenDeleted,'handleWindowPreload':handleWindowPreload};