zmp-cli 4.0.0 → 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x2ae510=_0x46b9;(function(_0x50a0df,_0x116558){const _0x159318=_0x46b9,_0x16f8c4=_0x50a0df();while(!![]){try{const _0x25b435=-parseInt(_0x159318(0x171))/0x1*(-parseInt(_0x159318(0x173))/0x2)+parseInt(_0x159318(0x19f))/0x3*(parseInt(_0x159318(0x18f))/0x4)+-parseInt(_0x159318(0x192))/0x5*(-parseInt(_0x159318(0x19c))/0x6)+-parseInt(_0x159318(0x18c))/0x7*(-parseInt(_0x159318(0x17d))/0x8)+parseInt(_0x159318(0x194))/0x9+parseInt(_0x159318(0x19e))/0xa*(-parseInt(_0x159318(0x176))/0xb)+-parseInt(_0x159318(0x19b))/0xc*(parseInt(_0x159318(0x189))/0xd);if(_0x25b435===_0x116558)break;else _0x16f8c4['push'](_0x16f8c4['shift']());}catch(_0x273159){_0x16f8c4['push'](_0x16f8c4['shift']());}}}(_0x1f91,0xbad10));function _0x1f91(){const _0x473d67=['env','appConfig','Warning:\x20This\x20CLI\x20version\x20will\x20work\x20better\x20with\x20zmp-framework\x20version\x201.5.0\x20or\x20higher','appConfigJson','13ukIbFV','error_msg','statusStart','571669JTmpxg','error','Building\x20for\x20production...\x20','245572IcwqkB','NODE_ENV','bold','25hCXOLt','statusError','13368645bFCeyj','../utils/generate-pages-map','exports','yellow','Build\x20Done!\x20✅','node_modules','join','41993616AlHzUP','1347078UIqHtX','production','14290mozhvM','45igvRIf','../config','latestVersion','NODE_TLS_REJECT_UNAUTHORIZED','1BaLtlR','zmp-framework','2700118WpLGSV','www','cwd','5357YayvPM','path','getEnv','default','filename','@rollup/plugin-dynamic-import-vars','../utils/error','8UbnPRa','www/','text','green','nextVersion','versionStatus','zmp-cli-core','mode'];_0x1f91=function(){return _0x473d67;};return _0x1f91();}function _0x46b9(_0x481264,_0x1c0d6f){const _0x1f9180=_0x1f91();return _0x46b9=function(_0x46b97e,_0x477d9c){_0x46b97e=_0x46b97e-0x16f;let _0x2c5d79=_0x1f9180[_0x46b97e];return _0x2c5d79;},_0x46b9(_0x481264,_0x1c0d6f);}const e=require('chalk'),r=require(_0x2ae510(0x177)),t=require(_0x2ae510(0x17b))[_0x2ae510(0x179)],i=require('@rollup/plugin-replace'),{buildApp:o}=require(_0x2ae510(0x183)),n=require('../utils/fs-extra'),s=require('../utils/env'),{errorExit:a}=require(_0x2ae510(0x17c)),u=require(_0x2ae510(0x1a0)),l=require(_0x2ae510(0x195)),{existsSync:p}=require('fs'),g=require('../utils/get-latest-version'),c=s[_0x2ae510(0x178)](_0x2ae510(0x190))||'production',w=e['gray']('(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)'),d=e[_0x2ae510(0x197)](_0x2ae510(0x187));module[_0x2ae510(0x196)]=async(_0x43023c={},_0x27194d)=>{const _0x290d34=_0x2ae510;_0x27194d||(_0x27194d={'statusStart'(){},'statusDone'(){},'statusError'(){},'text'(){},'error'(){}}),_0x27194d[_0x290d34(0x18b)]((_0x290d34(0x19d)===c?_0x290d34(0x18e):'Building\x20development\x20version...\x20')+w),process[_0x290d34(0x185)][_0x290d34(0x170)]='1';let _0x5e5591=_0x43023c[_0x290d34(0x175)]||process['cwd'](),_0x3a110b=_0x2d1cfa=>r[_0x290d34(0x19a)](_0x5e5591,_0x2d1cfa),_0x405c3a=_0x43023c['appConfigJson']||require(_0x3a110b(u['filename'][_0x290d34(0x186)]));p(r['join'](_0x5e5591,_0x290d34(0x199),_0x290d34(0x172)))&&_0x27194d[_0x290d34(0x17f)](d);try{let _0x4facb5,_0x419d1c=s[_0x290d34(0x178)](u['env']['appId']);if(!_0x419d1c)throw Error(u[_0x290d34(0x18a)]['permission_denied']);let _0x5e3b77=_0x43023c[_0x290d34(0x181)];if(!_0x5e3b77){let _0x21ae62=await g(_0x419d1c),_0x3b69d5=_0x21ae62&&_0x21ae62[_0x290d34(0x16f)]&&Number(_0x21ae62[_0x290d34(0x16f)]);null==_0x3b69d5&&(_0x3b69d5=0x0);}let _0x6997ba=await o({'cwd':_0x5e5591,'mode':_0x43023c[_0x290d34(0x184)]||c,'appId':_0x419d1c,'nextVersion':_0x5e3b77,'currentVersion':_0x4facb5,'target':_0x43023c[_0x290d34(0x182)]??0x2,'appConfig':_0x405c3a,'outDir':_0x290d34(0x174),'vite2RollupPlugins':[i({'values':{'ZMP_IMPORT_PAGES':()=>l(_0x5e5591)}}),t({'warnOnError':!0x0})],'customLogger':{'info':_0x27194d[_0x290d34(0x17f)],'warn':_0x27194d[_0x290d34(0x17f)],'warnOnce':_0x27194d['text'],'error':_0x27194d[_0x290d34(0x18d)]}});return _0x6997ba&&_0x6997ba[_0x290d34(0x188)]&&n['writeFileSync'](_0x3a110b(_0x290d34(0x17e)+u[_0x290d34(0x17a)][_0x290d34(0x186)]),JSON['stringify'](_0x6997ba[_0x290d34(0x188)])),_0x27194d['statusDone'](''+e[_0x290d34(0x191)][_0x290d34(0x180)](_0x290d34(0x198))),_0x6997ba?.[_0x290d34(0x188)];}catch(_0x2fbcc6){_0x27194d[_0x290d34(0x193)]('Error\x20building\x20project'),a(_0x2fbcc6);return;}};
1
+ 'use strict';function _0x24ae(){const _0x5ae034=['exports','join','production','statusStart','versionStatus','zmp-framework','../config','yellow','getEnv','../utils/error','506mrpdFH','2222022IXWNDm','writeFileSync','cwd','appConfig','bold','../utils/env','filename','text','stringify','3iqhtne','2557496UbvBVt','appConfigJson','NODE_ENV','Error\x20building\x20project','green','@rollup/plugin-dynamic-import-vars','448500szjfmf','path','Building\x20for\x20production...\x20','@rollup/plugin-replace','gray','nextVersion','201gaNSre','459VpQAPZ','531433hWiZrL','permission_denied','chalk','10jNWpSJ','Build\x20Done!\x20✅','../utils/get-latest-version','appId','NODE_TLS_REJECT_UNAUTHORIZED','88130bxLKmw','env','zmp-cli-core','error','statusError','statusDone','mode','303054gSzMMk'];_0x24ae=function(){return _0x5ae034;};return _0x24ae();}const _0x11dad8=_0x1770;(function(_0x1ef755,_0x3918bb){const _0x23af84=_0x1770,_0x59e736=_0x1ef755();while(!![]){try{const _0x6e0872=parseInt(_0x23af84(0xfc))/0x1*(-parseInt(_0x23af84(0xe5))/0x2)+-parseInt(_0x23af84(0xef))/0x3*(parseInt(_0x23af84(0xf6))/0x4)+parseInt(_0x23af84(0x101))/0x5*(-parseInt(_0x23af84(0x10d))/0x6)+-parseInt(_0x23af84(0xfe))/0x7+parseInt(_0x23af84(0xf0))/0x8+-parseInt(_0x23af84(0xfd))/0x9*(-parseInt(_0x23af84(0x106))/0xa)+-parseInt(_0x23af84(0xe6))/0xb;if(_0x6e0872===_0x3918bb)break;else _0x59e736['push'](_0x59e736['shift']());}catch(_0x454adf){_0x59e736['push'](_0x59e736['shift']());}}}(_0x24ae,0x377a1));function _0x1770(_0x25ddf0,_0x1d68e5){const _0x24aefe=_0x24ae();return _0x1770=function(_0x17706a,_0x958cbf){_0x17706a=_0x17706a-0xdb;let _0x419a9a=_0x24aefe[_0x17706a];return _0x419a9a;},_0x1770(_0x25ddf0,_0x1d68e5);}const e=require(_0x11dad8(0x100)),r=require(_0x11dad8(0xf7)),t=require(_0x11dad8(0xf5))['default'],i=require(_0x11dad8(0xf9)),{buildApp:o}=require(_0x11dad8(0x108)),n=require('../utils/fs-extra'),s=require(_0x11dad8(0xeb)),{errorExit:a}=require(_0x11dad8(0xe4)),u=require(_0x11dad8(0xe1)),l=require('../utils/generate-pages-map'),{existsSync:p}=require('fs'),g=require(_0x11dad8(0x103)),c=s[_0x11dad8(0xe3)](_0x11dad8(0xf2))||_0x11dad8(0xdd),w=e[_0x11dad8(0xfa)]('(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)'),d=e[_0x11dad8(0xe2)]('Warning:\x20This\x20CLI\x20version\x20will\x20work\x20better\x20with\x20zmp-framework\x20version\x201.5.0\x20or\x20higher');module[_0x11dad8(0xdb)]=async(_0x4fd78e={},_0xbaa8cd)=>{const _0x3dbda4=_0x11dad8;_0xbaa8cd||(_0xbaa8cd={'statusStart'(){},'statusDone'(){},'statusError'(){},'text'(){},'error'(){}}),_0xbaa8cd[_0x3dbda4(0xde)](('production'===c?_0x3dbda4(0xf8):'Building\x20development\x20version...\x20')+w),process[_0x3dbda4(0x107)][_0x3dbda4(0x105)]='1';let _0x15f2cb=_0x4fd78e['cwd']||process[_0x3dbda4(0xe8)](),_0x13e541=_0x2e2a9a=>r['join'](_0x15f2cb,_0x2e2a9a),_0x2dc61c=_0x4fd78e[_0x3dbda4(0xf1)]||require(_0x13e541(u['filename'][_0x3dbda4(0xe9)]));p(r[_0x3dbda4(0xdc)](_0x15f2cb,'node_modules',_0x3dbda4(0xe0)))&&_0xbaa8cd['text'](d);try{let _0xdb8024,_0xf71186=s[_0x3dbda4(0xe3)](u[_0x3dbda4(0x107)][_0x3dbda4(0x104)]);if(!_0xf71186)throw Error(u['error_msg'][_0x3dbda4(0xff)]);let _0x3d8c58=_0x4fd78e[_0x3dbda4(0xfb)];if(!_0x3d8c58){let _0x457b0e=await g(_0xf71186),_0x4ff22a=_0x457b0e&&_0x457b0e['latestVersion']&&Number(_0x457b0e['latestVersion']);null==_0x4ff22a&&(_0x4ff22a=0x0);}let _0x5bc342=await o({'cwd':_0x15f2cb,'mode':_0x4fd78e[_0x3dbda4(0x10c)]||c,'appId':_0xf71186,'nextVersion':_0x3d8c58,'currentVersion':_0xdb8024,'target':_0x4fd78e[_0x3dbda4(0xdf)]??0x2,'appConfig':_0x2dc61c,'outDir':'www','vite2RollupPlugins':[i({'values':{'ZMP_IMPORT_PAGES':()=>l(_0x15f2cb)}}),t({'warnOnError':!0x0})],'customLogger':{'info':_0xbaa8cd[_0x3dbda4(0xed)],'warn':_0xbaa8cd['text'],'warnOnce':_0xbaa8cd[_0x3dbda4(0xed)],'error':_0xbaa8cd[_0x3dbda4(0x109)]}});return _0x5bc342&&_0x5bc342[_0x3dbda4(0xf1)]&&n[_0x3dbda4(0xe7)](_0x13e541('www/'+u[_0x3dbda4(0xec)][_0x3dbda4(0xe9)]),JSON[_0x3dbda4(0xee)](_0x5bc342[_0x3dbda4(0xf1)])),_0xbaa8cd[_0x3dbda4(0x10b)](''+e[_0x3dbda4(0xea)][_0x3dbda4(0xf4)](_0x3dbda4(0x102))),_0x5bc342?.[_0x3dbda4(0xf1)];}catch(_0x4bfa3b){_0xbaa8cd[_0x3dbda4(0x10a)](_0x3dbda4(0xf3)),a(_0x4bfa3b);return;}};
package/config/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function _0x13b8(_0x3d8497,_0x1a037f){var _0x29a6e5=_0x29a6();return _0x13b8=function(_0x13b8c5,_0xbf779c){_0x13b8c5=_0x13b8c5-0x16a;var _0x23b581=_0x29a6e5[_0x13b8c5];return _0x23b581;},_0x13b8(_0x3d8497,_0x1a037f);}var _0x5d54c1=_0x13b8;function _0x29a6(){var _0x13a545=['//h5.zdn.vn/zapps/','Permission\x20denied.\x20Please\x20login\x20again.\x20(Tips:\x20Run\x20\x27zmp\x20login\x27)','cwd','172aaQCsw','971353GRBeuZ','Request\x20Timeout','2gvZMDY','App\x20config\x20not\x20found.\x20Please\x20re-init\x20project.\x20(Tips:\x20Run\x20\x27zmp\x20init\x27)','admin/request-login','dev-tools/app/get-info','APP_ID','zmp-cli.json','app/upload-chunk','package.json','4112871EpLESL','ZMP_TOKEN','5144ItSrRO','3115atkZsV','7091091SMLuyW','10321870ZxXGEE','app-config.json','app/get-info','6218664zFieWr','exports','/.env','93935VUndGM','11vCReIt','app/request-upload'];_0x29a6=function(){return _0x13a545;};return _0x29a6();}(function(_0xe5eadd,_0x9c6450){var _0x452e03=_0x13b8,_0x2c13da=_0xe5eadd();while(!![]){try{var _0x9873ae=-parseInt(_0x452e03(0x17f))/0x1*(parseInt(_0x452e03(0x181))/0x2)+parseInt(_0x452e03(0x16d))/0x3+-parseInt(_0x452e03(0x17e))/0x4*(-parseInt(_0x452e03(0x178))/0x5)+parseInt(_0x452e03(0x175))/0x6+parseInt(_0x452e03(0x170))/0x7*(parseInt(_0x452e03(0x16f))/0x8)+-parseInt(_0x452e03(0x171))/0x9+parseInt(_0x452e03(0x172))/0xa*(-parseInt(_0x452e03(0x179))/0xb);if(_0x9873ae===_0x9c6450)break;else _0x2c13da['push'](_0x2c13da['shift']());}catch(_0x2c2df2){_0x2c13da['push'](_0x2c13da['shift']());}}}(_0x29a6,0xad532));module[_0x5d54c1(0x176)]={'filename':{'appConfig':_0x5d54c1(0x173),'zmpConfig':_0x5d54c1(0x16a),'packageJson':_0x5d54c1(0x16c)},'api_domain':'https://zmp-api.developers.zalo.me/','zdn_url':_0x5d54c1(0x17b),'path':{'login':'admin/login','requestLogin':_0x5d54c1(0x183),'checkLoginStatus':'admin/get-login-status','uploadAppByChunk':_0x5d54c1(0x16b),'requestUploadResumable':_0x5d54c1(0x17a),'getAppInfo':_0x5d54c1(0x174),'getLatestVersion':_0x5d54c1(0x184)},'dirname':__dirname,'root_env':()=>process[_0x5d54c1(0x17d)]()+_0x5d54c1(0x177),'env':{'appId':_0x5d54c1(0x185),'token':_0x5d54c1(0x16e)},'error_code':{'app_config_not_found':-0x578,'permission_denied':-0x7d1,'request_timeout':-0x7d3},'error_msg':{'app_config_not_found':_0x5d54c1(0x182),'permission_denied':_0x5d54c1(0x17c),'request_timeout':_0x5d54c1(0x180)},'resumable_option':{'chunkSize':0x7d000,'simultaneousUploads':0x4,'testChunks':!0x0,'throttleProgressCallbacks':0x1,'method':'octet','forceChunkSize':!0x1}};
1
+ 'use strict';var _0x33935c=_0x4293;function _0x4293(_0x3f0f3a,_0x157c31){var _0x522cdd=_0x522c();return _0x4293=function(_0x429332,_0x2ed5eb){_0x429332=_0x429332-0x86;var _0x3b8c43=_0x522cdd[_0x429332];return _0x3b8c43;},_0x4293(_0x3f0f3a,_0x157c31);}function _0x522c(){var _0x59fce2=['6686470WFmIuz','https://zmp-api.developers.zalo.me/','6PKUVQX','/.env','APP_ID','package.json','App\x20config\x20not\x20found.\x20Please\x20re-init\x20project.\x20(Tips:\x20Run\x20\x27zmp\x20init\x27)','295ZoVocH','30040250EiLeRa','1624735EEOlQI','dev-tools/app/get-info','27YUcabL','2561408FfGboS','admin/login','app/upload-chunk','6716atjssv','zmp-cli.json','admin/get-login-status','628348qWGrbE','104724EVsgeN','octet','exports','//h5.zdn.vn/zapps/'];_0x522c=function(){return _0x59fce2;};return _0x522c();}(function(_0x20cb2d,_0x566456){var _0x570f44=_0x4293,_0x4f1dcf=_0x20cb2d();while(!![]){try{var _0x37908f=parseInt(_0x570f44(0x8e))/0x1*(parseInt(_0x570f44(0x96))/0x2)+-parseInt(_0x570f44(0x89))/0x3*(-parseInt(_0x570f44(0x99))/0x4)+parseInt(_0x570f44(0x90))/0x5+parseInt(_0x570f44(0x9a))/0x6+parseInt(_0x570f44(0x87))/0x7+parseInt(_0x570f44(0x93))/0x8*(parseInt(_0x570f44(0x92))/0x9)+-parseInt(_0x570f44(0x8f))/0xa;if(_0x37908f===_0x566456)break;else _0x4f1dcf['push'](_0x4f1dcf['shift']());}catch(_0x130986){_0x4f1dcf['push'](_0x4f1dcf['shift']());}}}(_0x522c,0x88732));module[_0x33935c(0x9c)]={'filename':{'appConfig':'app-config.json','zmpConfig':_0x33935c(0x97),'packageJson':_0x33935c(0x8c)},'api_domain':_0x33935c(0x88),'zdn_url':_0x33935c(0x86),'path':{'login':_0x33935c(0x94),'requestLogin':'admin/request-login','checkLoginStatus':_0x33935c(0x98),'uploadAppByChunk':_0x33935c(0x95),'requestUploadResumable':'app/request-upload','getAppInfo':'app/get-info','getLatestVersion':_0x33935c(0x91)},'dirname':__dirname,'root_env':()=>process['cwd']()+_0x33935c(0x8a),'env':{'appId':_0x33935c(0x8b),'token':'ZMP_TOKEN'},'error_code':{'app_config_not_found':-0x578,'permission_denied':-0x7d1,'request_timeout':-0x7d3},'error_msg':{'app_config_not_found':_0x33935c(0x8d),'permission_denied':'Permission\x20denied.\x20Please\x20login\x20again.\x20(Tips:\x20Run\x20\x27zmp\x20login\x27)','request_timeout':'Request\x20Timeout'},'resumable_option':{'chunkSize':0x7d000,'simultaneousUploads':0x4,'testChunks':!0x0,'throttleProgressCallbacks':0x1,'method':_0x33935c(0x9b),'forceChunkSize':!0x1}};
package/create/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x536a36=_0x599a;(function(_0x3b5c31,_0x526e41){const _0x4ade2a=_0x599a,_0x965f17=_0x3b5c31();while(!![]){try{const _0x24979f=-parseInt(_0x4ade2a(0x13e))/0x1*(-parseInt(_0x4ade2a(0x133))/0x2)+-parseInt(_0x4ade2a(0x122))/0x3+parseInt(_0x4ade2a(0x13b))/0x4*(parseInt(_0x4ade2a(0x134))/0x5)+-parseInt(_0x4ade2a(0x138))/0x6*(parseInt(_0x4ade2a(0x155))/0x7)+-parseInt(_0x4ade2a(0x153))/0x8+parseInt(_0x4ade2a(0x159))/0x9*(parseInt(_0x4ade2a(0x121))/0xa)+parseInt(_0x4ade2a(0x13f))/0xb*(parseInt(_0x4ade2a(0x15a))/0xc);if(_0x24979f===_0x526e41)break;else _0x965f17['push'](_0x965f17['shift']());}catch(_0x36766d){_0x965f17['push'](_0x965f17['shift']());}}}(_0x140b,0x920c7));function _0x140b(){const _0x1897a6=['statusDone','https://mini.zalo.me/blog/huong-dan-chuyen-doi-web-app-thanh-zalo-mini-app-trong-30-phut/','Error\x20creating\x20project\x20files','./utils/generate-app-config','\x0a-\x20📖\x20Check\x20','newProject','Next\x20steps:','map','../config','6320544pcQPSn','\x0a-\x20📖\x20Visit\x20documentation\x20at\x20','4745881wMgxKN','\x20in\x20project\x20root\x20folder\x20with\x20further\x20instructions\x0a\x20\x20','content','zmp-cli-core','6084JMVoNp','272388fDlAZh','name','cd\x20','replace','15890RArdsN','2678649aYVJDz','Generating\x20app-config.json','log-symbols','https://mini.zalo.me/','\x0a\x20\x20','resolve','writeFileSync','./utils/generate-npm-scripts','path','cwd','(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)','exports','\x22\x20-\x20','statusError','description','.env','Creating\x20project\x20files','711904XnGXWd','35465xfpoCS','success','promise','Done!','6nextSd','bold','\x20Run\x20\x22npm\x20run\x20','320ArnCFO','chalk','exec-sh','3ddZSsD','121tviMzs','\x0a-\x20🔥\x20Run\x20\x22zmp\x20deploy\x22\x20-\x20deploy\x20mini\x20app\x20for\x20production\x0a-\x20📖\x20Visit\x20instruction\x20at\x20','\x0a-\x20👉\x20Run\x20\x22cd\x20','join','\x20&&\x20npm\x20install','\x20✅\x0a\x0a','npm\x20install','Error\x20installing\x20NPM\x20Dependencies','statusStart','filename','folderName'];_0x140b=function(){return _0x1897a6;};return _0x140b();}const e=require(_0x536a36(0x13d)),t=require(_0x536a36(0x12a)),n=require(_0x536a36(0x13c)),r=require(_0x536a36(0x124)),{initProject:i}=require(_0x536a36(0x158)),o=require('../utils/fs-extra'),{errorExit:s}=require('../utils/error'),a=require(_0x536a36(0x152)),c=require(_0x536a36(0x14d)),l=require(_0x536a36(0x129)),{renameSync:u,existsSync:p}=require('fs'),d=n['gray'](_0x536a36(0x12c));async function f(_0x4e1070,_0x5b3d2c){const _0x2f17df=_0x536a36;_0x5b3d2c[_0x2f17df(0x147)](_0x2f17df(0x132));try{let {cwd:_0x5451df,template:_0xaa6057,folderName:_0x304899,name:_0x84fa85}=_0x4e1070;await i({'cwd':_0x5451df,'template':_0xaa6057,'folderName':_0x304899,'projectName':_0x84fa85});}catch(_0x26d4cb){_0x5b3d2c['statusError'](_0x2f17df(0x14c)),s(_0x26d4cb);}_0x5b3d2c[_0x2f17df(0x14a)](_0x2f17df(0x132));}async function m(_0xb71bb6){const _0x35e145=_0x536a36;let _0x407148=t[_0x35e145(0x127)](_0xb71bb6[_0x35e145(0x12b)],_0x35e145(0x131)),_0x263cbd=t[_0x35e145(0x127)](_0xb71bb6[_0x35e145(0x12b)],_0xb71bb6[_0x35e145(0x149)],_0x35e145(0x131));p(_0x407148)&&!p(_0x263cbd)&&u(_0x407148,_0x263cbd);}function _0x599a(_0x3783d6,_0x50da50){const _0x140b64=_0x140b();return _0x599a=function(_0x599aaf,_0x2564f8){_0x599aaf=_0x599aaf-0x121;let _0x349f47=_0x140b64[_0x599aaf];return _0x349f47;},_0x599a(_0x3783d6,_0x50da50);}async function g(_0x168be4,_0x539a92){const _0x8de753=_0x536a36;let {cwd:_0x222113}=_0x168be4;_0x539a92[_0x8de753(0x147)](_0x8de753(0x123));let _0x28b081=c(_0x168be4);o[_0x8de753(0x128)](t[_0x8de753(0x142)](_0x222113,a[_0x8de753(0x148)]['appConfig']),_0x28b081[_0x8de753(0x157)]),_0x539a92[_0x8de753(0x14a)]('Generating\x20app-config.json');}async function $(_0x133568,_0x441549){const _0x4d090c=_0x536a36;let _0x1f4fa5=t[_0x4d090c(0x142)](_0x133568[_0x4d090c(0x12b)],_0x133568[_0x4d090c(0x149)]);_0x441549[_0x4d090c(0x147)]('Installing\x20NPM\x20Dependencies\x20'+d);let _0x56f1ee=_0x1f4fa5===process[_0x4d090c(0x12b)]();try{_0x56f1ee?await e[_0x4d090c(0x136)](_0x4d090c(0x145),!0x0):await e[_0x4d090c(0x136)](_0x4d090c(0x15c)+_0x1f4fa5[_0x4d090c(0x15d)](/ /g,'\x5c\x20')+_0x4d090c(0x143),!0x0);}catch(_0xe27761){_0x441549[_0x4d090c(0x12f)](_0x4d090c(0x146)),s(_0xe27761);return;}_0x441549[_0x4d090c(0x14a)]('Installing\x20NPM\x20Dependencies');}async function h(_0x519a7f,_0x5f3a4c){const _0x2d4a96=_0x536a36;let _0x4671e4=l(['s','r'])[_0x2d4a96(0x151)](_0x1b8f8f=>'-\x20'+_0x1b8f8f['icon']+_0x2d4a96(0x13a)+_0x1b8f8f[_0x2d4a96(0x15b)]+_0x2d4a96(0x12e)+_0x1b8f8f[_0x2d4a96(0x130)]),_0x444a63='\x0a'+n[_0x2d4a96(0x139)](r[_0x2d4a96(0x135)])+'\x20'+n[_0x2d4a96(0x139)](_0x2d4a96(0x137))+_0x2d4a96(0x144)+n[_0x2d4a96(0x139)](r['info'])+'\x20'+n['bold'](_0x2d4a96(0x150))+_0x2d4a96(0x141)+_0x519a7f[_0x2d4a96(0x149)]+'\x22\x0a'+_0x4671e4['join']('\x0a')+_0x2d4a96(0x154)+n['bold'](_0x2d4a96(0x125))+_0x2d4a96(0x14e)+n['bold']('README.md')+_0x2d4a96(0x156);_0x5f3a4c['text'](_0x444a63);}async function y(_0x594161,_0x4c06be){const _0x314068=_0x536a36;let _0x2eea30='\x0a'+n['bold'](r['success'])+'\x20'+n[_0x314068(0x139)](_0x314068(0x137))+_0x314068(0x144)+n[_0x314068(0x139)](r['info'])+'\x20'+n[_0x314068(0x139)](_0x314068(0x150))+_0x314068(0x140)+n[_0x314068(0x139)](_0x314068(0x14b))+_0x314068(0x126);_0x4c06be['text'](_0x2eea30);}module[_0x536a36(0x12d)]=async(_0x412c30={},_0x5e307b)=>{const _0x330ef9=_0x536a36;for(let _0xb3b3c1 of(_0x5e307b||(_0x5e307b={'statusStart'(){},'statusDone'(){},'statusError'(){},'text'(){},'error'(){}}),_0x412c30[_0x330ef9(0x14f)]?[f,m,$,h]:[g,y]))await _0xb3b3c1(_0x412c30,_0x5e307b);};
1
+ 'use strict';const _0x47bc8c=_0x25f4;(function(_0x1f965b,_0x2beefa){const _0x16fe0c=_0x25f4,_0x12f329=_0x1f965b();while(!![]){try{const _0x314ca6=parseInt(_0x16fe0c(0xca))/0x1+parseInt(_0x16fe0c(0xd6))/0x2*(parseInt(_0x16fe0c(0xc1))/0x3)+-parseInt(_0x16fe0c(0xdf))/0x4+-parseInt(_0x16fe0c(0xc5))/0x5*(parseInt(_0x16fe0c(0xc7))/0x6)+parseInt(_0x16fe0c(0xd5))/0x7+parseInt(_0x16fe0c(0xd7))/0x8+-parseInt(_0x16fe0c(0xd0))/0x9*(parseInt(_0x16fe0c(0xe1))/0xa);if(_0x314ca6===_0x2beefa)break;else _0x12f329['push'](_0x12f329['shift']());}catch(_0x220f87){_0x12f329['push'](_0x12f329['shift']());}}}(_0x4ff4,0xe6c8d));function _0x4ff4(){const _0x47952=['filename','npm\x20install','4123764qxuFyN','map','Done!','gray','statusDone','9004814NKWqJW','8BseiHy','4712872XTVscW','\x0a-\x20📖\x20Visit\x20documentation\x20at\x20','bold','description','newProject','\x0a\x20\x20','.env','Creating\x20project\x20files','6470812CVaYUh','cwd','10IvZPwW','\x20&&\x20npm\x20install','README.md','name','Error\x20creating\x20project\x20files','./utils/generate-app-config','success','statusError','statusStart','\x20Run\x20\x22npm\x20run\x20','appConfig','Error\x20installing\x20NPM\x20Dependencies','content','\x20✅\x0a\x0a','\x0a-\x20👉\x20Run\x20\x22cd\x20','https://mini.zalo.me/','join','promise','log-symbols','Next\x20steps:','folderName','icon','path','chalk','\x0a-\x20🔥\x20Run\x20\x22zmp\x20deploy\x22\x20-\x20deploy\x20mini\x20app\x20for\x20production\x0a-\x20📖\x20Visit\x20instruction\x20at\x20','806277xLNffB','zmp-cli-core','\x22\x20-\x20','writeFileSync','55LbkuWx','resolve','128292neovyF','text','Installing\x20NPM\x20Dependencies','305847NRXLwI','../config','exports','Generating\x20app-config.json'];_0x4ff4=function(){return _0x47952;};return _0x4ff4();}const e=require('exec-sh'),t=require(_0x47bc8c(0xbe)),n=require(_0x47bc8c(0xbf)),r=require(_0x47bc8c(0xba)),{initProject:i}=require(_0x47bc8c(0xc2)),o=require('../utils/fs-extra'),{errorExit:s}=require('../utils/error'),a=require(_0x47bc8c(0xcb)),c=require(_0x47bc8c(0xe6)),l=require('./utils/generate-npm-scripts'),{renameSync:u,existsSync:p}=require('fs'),d=n[_0x47bc8c(0xd3)]('(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)');async function f(_0x3b1349,_0x4c3b2e){const _0x468275=_0x47bc8c;_0x4c3b2e[_0x468275(0xe9)](_0x468275(0xde));try{let {cwd:_0x49ad9e,template:_0x4f8499,folderName:_0x60702e,name:_0x547de6}=_0x3b1349;await i({'cwd':_0x49ad9e,'template':_0x4f8499,'folderName':_0x60702e,'projectName':_0x547de6});}catch(_0x5b24cb){_0x4c3b2e[_0x468275(0xe8)](_0x468275(0xe5)),s(_0x5b24cb);}_0x4c3b2e[_0x468275(0xd4)]('Creating\x20project\x20files');}async function m(_0x75944c){const _0x437edc=_0x47bc8c;let _0x25e61c=t[_0x437edc(0xc6)](_0x75944c[_0x437edc(0xe0)],_0x437edc(0xdd)),_0x14dbaf=t['resolve'](_0x75944c['cwd'],_0x75944c[_0x437edc(0xbc)],_0x437edc(0xdd));p(_0x25e61c)&&!p(_0x14dbaf)&&u(_0x25e61c,_0x14dbaf);}async function g(_0x5759a0,_0x740c87){const _0x231d85=_0x47bc8c;let {cwd:_0x1b8703}=_0x5759a0;_0x740c87[_0x231d85(0xe9)](_0x231d85(0xcd));let _0x3ed70c=c(_0x5759a0);o[_0x231d85(0xc4)](t[_0x231d85(0xb8)](_0x1b8703,a[_0x231d85(0xce)][_0x231d85(0xeb)]),_0x3ed70c[_0x231d85(0xed)]),_0x740c87['statusDone'](_0x231d85(0xcd));}async function $(_0x9cf0ad,_0x5168d6){const _0x35a0fa=_0x47bc8c;let _0x4d3245=t['join'](_0x9cf0ad[_0x35a0fa(0xe0)],_0x9cf0ad[_0x35a0fa(0xbc)]);_0x5168d6[_0x35a0fa(0xe9)]('Installing\x20NPM\x20Dependencies\x20'+d);let _0x2459fa=_0x4d3245===process[_0x35a0fa(0xe0)]();try{_0x2459fa?await e[_0x35a0fa(0xb9)](_0x35a0fa(0xcf),!0x0):await e[_0x35a0fa(0xb9)]('cd\x20'+_0x4d3245['replace'](/ /g,'\x5c\x20')+_0x35a0fa(0xe2),!0x0);}catch(_0x2bb54b){_0x5168d6[_0x35a0fa(0xe8)](_0x35a0fa(0xec)),s(_0x2bb54b);return;}_0x5168d6[_0x35a0fa(0xd4)](_0x35a0fa(0xc9));}async function h(_0x2ee6d2,_0x1151a9){const _0x7e5bc5=_0x47bc8c;let _0x11fa3e=l(['s','r'])[_0x7e5bc5(0xd1)](_0x7e1859=>'-\x20'+_0x7e1859[_0x7e5bc5(0xbd)]+_0x7e5bc5(0xea)+_0x7e1859[_0x7e5bc5(0xe4)]+_0x7e5bc5(0xc3)+_0x7e1859[_0x7e5bc5(0xda)]),_0x385d00='\x0a'+n[_0x7e5bc5(0xd9)](r[_0x7e5bc5(0xe7)])+'\x20'+n['bold'](_0x7e5bc5(0xd2))+_0x7e5bc5(0xee)+n[_0x7e5bc5(0xd9)](r['info'])+'\x20'+n[_0x7e5bc5(0xd9)]('Next\x20steps:')+_0x7e5bc5(0xef)+_0x2ee6d2['folderName']+'\x22\x0a'+_0x11fa3e[_0x7e5bc5(0xb8)]('\x0a')+_0x7e5bc5(0xd8)+n[_0x7e5bc5(0xd9)](_0x7e5bc5(0xf0))+'\x0a-\x20📖\x20Check\x20'+n[_0x7e5bc5(0xd9)](_0x7e5bc5(0xe3))+'\x20in\x20project\x20root\x20folder\x20with\x20further\x20instructions\x0a\x20\x20';_0x1151a9[_0x7e5bc5(0xc8)](_0x385d00);}function _0x25f4(_0x578c86,_0x5f0186){const _0x4ff4c6=_0x4ff4();return _0x25f4=function(_0x25f470,_0x1e4737){_0x25f470=_0x25f470-0xb8;let _0x5d9e50=_0x4ff4c6[_0x25f470];return _0x5d9e50;},_0x25f4(_0x578c86,_0x5f0186);}async function y(_0x2462b9,_0x1fcca1){const _0x2a9cb1=_0x47bc8c;let _0x5ee468='\x0a'+n[_0x2a9cb1(0xd9)](r['success'])+'\x20'+n[_0x2a9cb1(0xd9)](_0x2a9cb1(0xd2))+_0x2a9cb1(0xee)+n[_0x2a9cb1(0xd9)](r['info'])+'\x20'+n[_0x2a9cb1(0xd9)](_0x2a9cb1(0xbb))+_0x2a9cb1(0xc0)+n['bold']('https://mini.zalo.me/blog/huong-dan-chuyen-doi-web-app-thanh-zalo-mini-app-trong-30-phut/')+_0x2a9cb1(0xdc);_0x1fcca1['text'](_0x5ee468);}module[_0x47bc8c(0xcc)]=async(_0xdf0b41={},_0x6bf0dd)=>{const _0x5b300e=_0x47bc8c;for(let _0x2055ca of(_0x6bf0dd||(_0x6bf0dd={'statusStart'(){},'statusDone'(){},'statusError'(){},'text'(){},'error'(){}}),_0xdf0b41[_0x5b300e(0xdb)]?[f,m,$,h]:[g,y]))await _0x2055ca(_0xdf0b41,_0x6bf0dd);};
@@ -1 +1 @@
1
- 'use strict';function _0x3eb6(){const _0x4b5889=['stringify','normal','1194504lvQqnd','exports','8fSUwSa','trim','2259060uhBovk','1354288zovssW','10OxUOYw','305022DYwICn','#1843EF','back','11710395mzlLTA','white','3205069zWrUsg','1157698ULhNcJ'];_0x3eb6=function(){return _0x4b5889;};return _0x3eb6();}function _0x3acd(_0x572d37,_0x320ece){const _0x3eb618=_0x3eb6();return _0x3acd=function(_0x3acd17,_0x20f5a6){_0x3acd17=_0x3acd17-0x6d;let _0x30f64f=_0x3eb618[_0x3acd17];return _0x30f64f;},_0x3acd(_0x572d37,_0x320ece);}const _0xc9406=_0x3acd;(function(_0xb0d707,_0x164b49){const _0x328432=_0x3acd,_0x18357c=_0xb0d707();while(!![]){try{const _0x2c94f0=parseInt(_0x328432(0x77))/0x1+-parseInt(_0x328432(0x6d))/0x2+parseInt(_0x328432(0x74))/0x3+-parseInt(_0x328432(0x75))/0x4*(parseInt(_0x328432(0x76))/0x5)+-parseInt(_0x328432(0x70))/0x6+-parseInt(_0x328432(0x7c))/0x7+-parseInt(_0x328432(0x72))/0x8*(-parseInt(_0x328432(0x7a))/0x9);if(_0x2c94f0===_0x164b49)break;else _0x18357c['push'](_0x18357c['shift']());}catch(_0x2369b1){_0x18357c['push'](_0x18357c['shift']());}}}(_0x3eb6,0x6cf2d));module[_0xc9406(0x71)]=function(_0x2d95f5){const _0x488f16=_0xc9406;let {name:_0x4019cc}=_0x2d95f5,_0x12bd5d={'title':_0x4019cc,'headerTitle':_0x4019cc,'headerColor':_0x488f16(0x78),'textColor':_0x488f16(0x7b),'leftButton':_0x488f16(0x79),'statusBar':_0x488f16(0x6f),'actionBarHidden':!0x1,'hideAndroidBottomNavigationBar':!0x1,'hideIOSSafeAreaBottom':!0x1};return{'content':JSON[_0x488f16(0x6e)]({'app':_0x12bd5d,'listCSS':[],'listSyncJS':[],'listAsyncJS':[]},'',0x2)[_0x488f16(0x73)](),'appConfig':_0x12bd5d};};
1
+ 'use strict';function _0x1d17(){const _0x58aea8=['547367uLKDaQ','27oBnJKd','18yoLnnD','1853768UvOEoO','#1843EF','145Yeoffb','42822264dgkoeH','exports','800063fGnzdF','normal','30qcuGch','37524baCOCy','4FAGGjA','2613927sUCexA','2995615rcyPSt'];_0x1d17=function(){return _0x58aea8;};return _0x1d17();}const _0x31c679=_0x50e2;function _0x50e2(_0xa5f059,_0x299db5){const _0x1d17fe=_0x1d17();return _0x50e2=function(_0x50e2da,_0x12212a){_0x50e2da=_0x50e2da-0x105;let _0x9a67c4=_0x1d17fe[_0x50e2da];return _0x9a67c4;},_0x50e2(_0xa5f059,_0x299db5);}(function(_0x5a6f49,_0x25a48b){const _0x5bf252=_0x50e2,_0x21b590=_0x5a6f49();while(!![]){try{const _0x211ea3=-parseInt(_0x5bf252(0x10f))/0x1*(-parseInt(_0x5bf252(0x10c))/0x2)+parseInt(_0x5bf252(0x10d))/0x3+-parseInt(_0x5bf252(0x10b))/0x4*(-parseInt(_0x5bf252(0x105))/0x5)+parseInt(_0x5bf252(0x111))/0x6*(parseInt(_0x5bf252(0x10e))/0x7)+parseInt(_0x5bf252(0x112))/0x8*(parseInt(_0x5bf252(0x110))/0x9)+-parseInt(_0x5bf252(0x10a))/0xa*(-parseInt(_0x5bf252(0x108))/0xb)+-parseInt(_0x5bf252(0x106))/0xc;if(_0x211ea3===_0x25a48b)break;else _0x21b590['push'](_0x21b590['shift']());}catch(_0x3b9ea9){_0x21b590['push'](_0x21b590['shift']());}}}(_0x1d17,0xd39cf));module[_0x31c679(0x107)]=function(_0x261120){const _0x1e1bb6=_0x31c679;let {name:_0x785bd3}=_0x261120,_0x48d9df={'title':_0x785bd3,'headerTitle':_0x785bd3,'headerColor':_0x1e1bb6(0x113),'textColor':'white','leftButton':'back','statusBar':_0x1e1bb6(0x109),'actionBarHidden':!0x1,'hideAndroidBottomNavigationBar':!0x1,'hideIOSSafeAreaBottom':!0x1};return{'content':JSON['stringify']({'app':_0x48d9df,'listCSS':[],'listSyncJS':[],'listAsyncJS':[]},'',0x2)['trim'](),'appConfig':_0x48d9df};};
@@ -1 +1 @@
1
- 'use strict';const _0x17a4fe=_0xdd5d;function _0xdd5d(_0x19e2e2,_0x4f43f6){const _0x39128c=_0x3912();return _0xdd5d=function(_0xdd5d86,_0x5a4031){_0xdd5d86=_0xdd5d86-0xcc;let _0x5dbbb0=_0x39128c[_0xdd5d86];return _0x5dbbb0;},_0xdd5d(_0x19e2e2,_0x4f43f6);}(function(_0x5aa67e,_0x31d4a4){const _0x4d406a=_0xdd5d,_0x5303d1=_0x5aa67e();while(!![]){try{const _0x32b90f=parseInt(_0x4d406a(0xdb))/0x1+-parseInt(_0x4d406a(0xcd))/0x2*(parseInt(_0x4d406a(0xdd))/0x3)+-parseInt(_0x4d406a(0xce))/0x4+parseInt(_0x4d406a(0xda))/0x5+-parseInt(_0x4d406a(0xd3))/0x6+parseInt(_0x4d406a(0xd1))/0x7+-parseInt(_0x4d406a(0xcc))/0x8*(-parseInt(_0x4d406a(0xd5))/0x9);if(_0x32b90f===_0x31d4a4)break;else _0x5303d1['push'](_0x5303d1['shift']());}catch(_0x556d2c){_0x5303d1['push'](_0x5303d1['shift']());}}}(_0x3912,0x524e8));const i=require(_0x17a4fe(0xd6));module['exports']=(_0x312844=['s','r'])=>_0x312844[_0x17a4fe(0xd0)](_0x5add9a=>({'icon':i[_0x17a4fe(0xd4)][_0x5add9a][_0x17a4fe(0xdc)],'name':i[_0x17a4fe(0xd4)][_0x5add9a][_0x17a4fe(0xd8)],'script':i[_0x17a4fe(0xd4)][_0x5add9a][_0x17a4fe(0xcf)],'description':i[_0x17a4fe(0xd4)][_0x5add9a][_0x17a4fe(0xd2)]})),module[_0x17a4fe(0xd7)]['generateTailWindScripts']=(_0x20fdea=['t'])=>_0x20fdea[_0x17a4fe(0xd0)](_0x389146=>({'icon':i[_0x17a4fe(0xd9)][_0x389146][_0x17a4fe(0xdc)],'name':i[_0x17a4fe(0xd9)][_0x389146][_0x17a4fe(0xd8)],'script':i[_0x17a4fe(0xd9)][_0x389146][_0x17a4fe(0xcf)],'description':i[_0x17a4fe(0xd9)][_0x389146][_0x17a4fe(0xd2)]}));function _0x3912(){const _0x31033c=['1529565wzvmhP','127586gGeiQZ','icon','1331868dnVpnn','8jmcHEm','2YHTYhk','730852DTqlps','script','map','2310217wKdnAW','description','2054736VnpkeU','default','4884507CLVWRH','./npm-scripts','exports','name','tailwind'];_0x3912=function(){return _0x31033c;};return _0x3912();}
1
+ 'use strict';const _0x4eab6d=_0x7b0c;function _0x7b0c(_0x40fbd6,_0x1cd0f9){const _0x2f5469=_0x2f54();return _0x7b0c=function(_0x7b0c91,_0x5538ca){_0x7b0c91=_0x7b0c91-0x1b0;let _0x192a8b=_0x2f5469[_0x7b0c91];return _0x192a8b;},_0x7b0c(_0x40fbd6,_0x1cd0f9);}(function(_0xe751d5,_0x504cf8){const _0x5e240f=_0x7b0c,_0x2adf00=_0xe751d5();while(!![]){try{const _0x22a80f=-parseInt(_0x5e240f(0x1b0))/0x1+parseInt(_0x5e240f(0x1b3))/0x2*(-parseInt(_0x5e240f(0x1bd))/0x3)+parseInt(_0x5e240f(0x1bb))/0x4*(-parseInt(_0x5e240f(0x1b6))/0x5)+-parseInt(_0x5e240f(0x1b8))/0x6+parseInt(_0x5e240f(0x1c2))/0x7+-parseInt(_0x5e240f(0x1b9))/0x8*(parseInt(_0x5e240f(0x1ba))/0x9)+parseInt(_0x5e240f(0x1b1))/0xa;if(_0x22a80f===_0x504cf8)break;else _0x2adf00['push'](_0x2adf00['shift']());}catch(_0x426bc8){_0x2adf00['push'](_0x2adf00['shift']());}}}(_0x2f54,0x60e25));const i=require(_0x4eab6d(0x1b2));function _0x2f54(){const _0x4e031d=['959436vLVvlc','2270504zLceLa','9tdSkNz','1449416FgDOAu','script','29082fVIqvB','generateTailWindScripts','description','icon','map','5153351IENssu','596954NbyABl','11993870KazAxg','./npm-scripts','28wuJdDi','default','tailwind','5rsSihH','exports'];_0x2f54=function(){return _0x4e031d;};return _0x2f54();}module[_0x4eab6d(0x1b7)]=(_0x41721c=['s','r'])=>_0x41721c[_0x4eab6d(0x1c1)](_0x5b9b72=>({'icon':i[_0x4eab6d(0x1b4)][_0x5b9b72][_0x4eab6d(0x1c0)],'name':i[_0x4eab6d(0x1b4)][_0x5b9b72]['name'],'script':i[_0x4eab6d(0x1b4)][_0x5b9b72][_0x4eab6d(0x1bc)],'description':i[_0x4eab6d(0x1b4)][_0x5b9b72][_0x4eab6d(0x1bf)]})),module[_0x4eab6d(0x1b7)][_0x4eab6d(0x1be)]=(_0x280a25=['t'])=>_0x280a25[_0x4eab6d(0x1c1)](_0x3d8e96=>({'icon':i[_0x4eab6d(0x1b5)][_0x3d8e96][_0x4eab6d(0x1c0)],'name':i[_0x4eab6d(0x1b5)][_0x3d8e96]['name'],'script':i[_0x4eab6d(0x1b5)][_0x3d8e96][_0x4eab6d(0x1bc)],'description':i['tailwind'][_0x3d8e96][_0x4eab6d(0x1bf)]}));
@@ -1 +1 @@
1
- 'use strict';const _0x141f29=_0x3ad5;function _0x4c07(){const _0x4858fa=['name','Folder\x20name:','(A\x20new\x20folder\x20with\x20this\x20name\x20will\x20be\x20created\x20in\x20the\x20selected\x20directory)','github','input','2279825WpTFpV','Choose\x20a\x20template:','New\x20project','newProject','App\x20(project)\x20name:','replace','exports','prompt','list','5520177mkqWiX','1538420YWHFFc','Using\x20ZMP\x20to\x20deploy\x20only','data','2716kVZPgk','zmp-cli-core','chalk','612426LJaRGh','1272616wUARIH','../../utils/axios','Folder\x20name\x20is\x20required','6126eBwOuB','map','resolve','then','toLowerCase','inquirer','1930SeuViq','My\x20App','App\x20name\x20is\x20required','343qfweKD'];_0x4c07=function(){return _0x4858fa;};return _0x4c07();}(function(_0x4dfc9b,_0x29993d){const _0x23e9b1=_0x3ad5,_0xb0088=_0x4dfc9b();while(!![]){try{const _0xd404fd=parseInt(_0x23e9b1(0x17b))/0x1*(parseInt(_0x23e9b1(0x19b))/0x2)+parseInt(_0x23e9b1(0x191))/0x3+-parseInt(_0x23e9b1(0x18b))/0x4+parseInt(_0x23e9b1(0x181))/0x5+parseInt(_0x23e9b1(0x195))/0x6*(parseInt(_0x23e9b1(0x18e))/0x7)+-parseInt(_0x23e9b1(0x192))/0x8+-parseInt(_0x23e9b1(0x18a))/0x9;if(_0xd404fd===_0x29993d)break;else _0xb0088['push'](_0xb0088['shift']());}catch(_0x53e791){_0xb0088['push'](_0xb0088['shift']());}}}(_0x4c07,0x38347));function _0x3ad5(_0x18b4ad,_0x311b36){const _0x4c0719=_0x4c07();return _0x3ad5=function(_0x3ad565,_0x4e699e){_0x3ad565=_0x3ad565-0x179;let _0x30b6fd=_0x4c0719[_0x3ad565];return _0x30b6fd;},_0x3ad5(_0x18b4ad,_0x311b36);}const e=require(_0x141f29(0x19a)),t=require(_0x141f29(0x190)),{getTemplates:r,BLANK_TEMPLATES:a}=require(_0x141f29(0x18f)),{axiosClient:n}=require(_0x141f29(0x193)),i=[{'type':_0x141f29(0x189),'name':_0x141f29(0x184),'message':'What\x20action\x20you\x20want\x20to\x20do?','choices':[{'name':'Create\x20a\x20new\x20ZMP\x20project','value':!0x0,'short':_0x141f29(0x183)},{'name':_0x141f29(0x18c),'value':!0x1,'short':'Existing\x20project'}]},{'type':_0x141f29(0x189),'name':'template','when':_0xb9e4d3=>_0xb9e4d3[_0x141f29(0x184)],'message':_0x141f29(0x182),'choices':async()=>{const _0x371a7c=_0x141f29;let _0x51d343=await r({'request':_0x49b797=>n(_0x49b797)[_0x371a7c(0x198)](_0x33a356=>_0x33a356[_0x371a7c(0x18d)])});return[...a[_0x371a7c(0x196)](_0xfb344b=>({'name':_0xfb344b['name'],'value':_0xfb344b[_0x371a7c(0x17f)]})),new e['Separator'](),..._0x51d343['map'](_0x28ad96=>({'name':_0x28ad96[_0x371a7c(0x17c)],'value':_0x28ad96[_0x371a7c(0x17f)]}))];}},{'type':_0x141f29(0x180),'name':_0x141f29(0x17c),'message':_0x141f29(0x185),'default':_0x141f29(0x179),'validate':_0x26764f=>new Promise((_0x4c1141,_0x36f045)=>{const _0x4c01d5=_0x141f29;_0x26764f?_0x4c1141(!0x0):_0x36f045(Error(_0x4c01d5(0x17a)));})},{'type':_0x141f29(0x180),'name':'folderName','when':_0x1b7a2e=>_0x1b7a2e[_0x141f29(0x184)],'message':_0x141f29(0x17d),'suffix':'\x0a'+t['italic'](_0x141f29(0x17e)),'default':_0x9772e6=>{const _0x4c49d8=_0x141f29;let {name:_0x4eb5e0}=_0x9772e6;return _0x4eb5e0[_0x4c49d8(0x186)](/ /g,'-')[_0x4c49d8(0x186)](/[^a-zA-Z0-9-]/g,'')[_0x4c49d8(0x199)]();},'validate':_0x4a29f2=>new Promise((_0x930b4a,_0x570284)=>{const _0xd99e57=_0x141f29;_0x4a29f2?_0x930b4a(!0x0):_0x570284(Error(_0xd99e57(0x194)));})}];module[_0x141f29(0x187)]=function(){const _0x1fed69=_0x141f29;return e[_0x1fed69(0x188)](i)[_0x1fed69(0x198)](_0xcb4b62=>Promise[_0x1fed69(0x197)](_0xcb4b62));};
1
+ 'use strict';const _0x264289=_0x59eb;(function(_0x1d2d92,_0x5a2f23){const _0x5ead5e=_0x59eb,_0x22d13f=_0x1d2d92();while(!![]){try{const _0x3f61b9=-parseInt(_0x5ead5e(0xaa))/0x1+parseInt(_0x5ead5e(0xaf))/0x2*(parseInt(_0x5ead5e(0xb1))/0x3)+parseInt(_0x5ead5e(0xb2))/0x4+parseInt(_0x5ead5e(0xab))/0x5+-parseInt(_0x5ead5e(0xbe))/0x6*(parseInt(_0x5ead5e(0xb4))/0x7)+parseInt(_0x5ead5e(0xae))/0x8*(parseInt(_0x5ead5e(0xac))/0x9)+parseInt(_0x5ead5e(0xc2))/0xa*(-parseInt(_0x5ead5e(0xc5))/0xb);if(_0x3f61b9===_0x5a2f23)break;else _0x22d13f['push'](_0x22d13f['shift']());}catch(_0x596fae){_0x22d13f['push'](_0x22d13f['shift']());}}}(_0x2a02,0x2c136));function _0x2a02(){const _0x10426f=['name','Using\x20ZMP\x20to\x20deploy\x20only','toLowerCase','(A\x20new\x20folder\x20with\x20this\x20name\x20will\x20be\x20created\x20in\x20the\x20selected\x20directory)','github','resolve','italic','Separator','chalk','Existing\x20project','261403zeXtrn','1282665llKOrf','1116rSxkUH','newProject','19512uIayVu','2990ERqjgz','replace','303AwgTRS','1014720riZONK','My\x20App','2793YoqjTy','Choose\x20a\x20template:','then','folderName','zmp-cli-core','App\x20(project)\x20name:','inquirer','data','New\x20project','../../utils/axios','732VghTKT','input','prompt','map','152590htOVzq','What\x20action\x20you\x20want\x20to\x20do?','Folder\x20name\x20is\x20required','341CbBekG','template','Folder\x20name:','App\x20name\x20is\x20required'];_0x2a02=function(){return _0x10426f;};return _0x2a02();}function _0x59eb(_0x11002b,_0x1ff553){const _0x2a02eb=_0x2a02();return _0x59eb=function(_0x59eb3f,_0x4b6c37){_0x59eb3f=_0x59eb3f-0xa8;let _0x5f3ec2=_0x2a02eb[_0x59eb3f];return _0x5f3ec2;},_0x59eb(_0x11002b,_0x1ff553);}const e=require(_0x264289(0xba)),t=require(_0x264289(0xa8)),{getTemplates:r,BLANK_TEMPLATES:a}=require(_0x264289(0xb8)),{axiosClient:n}=require(_0x264289(0xbd)),i=[{'type':'list','name':_0x264289(0xad),'message':_0x264289(0xc3),'choices':[{'name':'Create\x20a\x20new\x20ZMP\x20project','value':!0x0,'short':_0x264289(0xbc)},{'name':_0x264289(0xca),'value':!0x1,'short':_0x264289(0xa9)}]},{'type':'list','name':_0x264289(0xc6),'when':_0x2edc7c=>_0x2edc7c[_0x264289(0xad)],'message':_0x264289(0xb5),'choices':async()=>{const _0x5e0bbd=_0x264289;let _0x3811be=await r({'request':_0xa24924=>n(_0xa24924)[_0x5e0bbd(0xb6)](_0x3e0cdd=>_0x3e0cdd[_0x5e0bbd(0xbb)])});return[...a['map'](_0x31e016=>({'name':_0x31e016['name'],'value':_0x31e016[_0x5e0bbd(0xcd)]})),new e[(_0x5e0bbd(0xd0))](),..._0x3811be[_0x5e0bbd(0xc1)](_0x4b465b=>({'name':_0x4b465b[_0x5e0bbd(0xc9)],'value':_0x4b465b[_0x5e0bbd(0xcd)]}))];}},{'type':_0x264289(0xbf),'name':_0x264289(0xc9),'message':_0x264289(0xb9),'default':_0x264289(0xb3),'validate':_0x35a82f=>new Promise((_0xfb90bc,_0x47a4cd)=>{const _0x49793c=_0x264289;_0x35a82f?_0xfb90bc(!0x0):_0x47a4cd(Error(_0x49793c(0xc8)));})},{'type':_0x264289(0xbf),'name':_0x264289(0xb7),'when':_0x55578f=>_0x55578f['newProject'],'message':_0x264289(0xc7),'suffix':'\x0a'+t[_0x264289(0xcf)](_0x264289(0xcc)),'default':_0x5b17f2=>{const _0x4b8a7c=_0x264289;let {name:_0x11431b}=_0x5b17f2;return _0x11431b[_0x4b8a7c(0xb0)](/ /g,'-')[_0x4b8a7c(0xb0)](/[^a-zA-Z0-9-]/g,'')[_0x4b8a7c(0xcb)]();},'validate':_0x3f2cce=>new Promise((_0x344b5a,_0x3e816b)=>{const _0x198249=_0x264289;_0x3f2cce?_0x344b5a(!0x0):_0x3e816b(Error(_0x198249(0xc4)));})}];module['exports']=function(){const _0x244950=_0x264289;return e[_0x244950(0xc0)](i)[_0x244950(0xb6)](_0x4c3ef7=>Promise[_0x244950(0xce)](_0x4c3ef7));};
@@ -1 +1 @@
1
- 'use strict';const _0x5c51d1=_0x23d8;function _0x23d8(_0x16e487,_0xa5c34a){const _0x4c31b8=_0x4c31();return _0x23d8=function(_0x23d81e,_0x18c26e){_0x23d81e=_0x23d81e-0x143;let _0x56c157=_0x4c31b8[_0x23d81e];return _0x56c157;},_0x23d8(_0x16e487,_0xa5c34a);}(function(_0x3748f5,_0x53b1c7){const _0x5996bc=_0x23d8,_0x42daf3=_0x3748f5();while(!![]){try{const _0x139956=parseInt(_0x5996bc(0x151))/0x1*(-parseInt(_0x5996bc(0x15b))/0x2)+parseInt(_0x5996bc(0x148))/0x3+-parseInt(_0x5996bc(0x158))/0x4*(parseInt(_0x5996bc(0x14d))/0x5)+-parseInt(_0x5996bc(0x150))/0x6*(parseInt(_0x5996bc(0x15f))/0x7)+parseInt(_0x5996bc(0x15d))/0x8*(-parseInt(_0x5996bc(0x156))/0x9)+-parseInt(_0x5996bc(0x15a))/0xa+parseInt(_0x5996bc(0x149))/0xb;if(_0x139956===_0x53b1c7)break;else _0x42daf3['push'](_0x42daf3['shift']());}catch(_0x502776){_0x42daf3['push'](_0x42daf3['shift']());}}}(_0x4c31,0xaee9c));const e={'d':_0x5c51d1(0x147),'p':_0x5c51d1(0x14b),'s':_0x5c51d1(0x145),'v':_0x5c51d1(0x15c),'r':_0x5c51d1(0x155),'t':_0x5c51d1(0x14f)};function s(_0xd907e2){const _0x1f95ed=_0x5c51d1;return _0xd907e2[_0x1f95ed(0x153)]('_')[0x0][_0x1f95ed(0x153)]('')[_0x1f95ed(0x160)](_0x2573b8=>e[_0x2573b8])[_0x1f95ed(0x154)]('-');}const t={'default':{'s':{'icon':'🔥','script':'zmp\x20start','description':_0x5c51d1(0x152)},'r':{'icon':'🙏','script':_0x5c51d1(0x143),'description':_0x5c51d1(0x14a)}},'httpServer':{'v':{'icon':'🔧','script':_0x5c51d1(0x15e),'description':_0x5c51d1(0x152)},'s':{'icon':'🔥','script':_0x5c51d1(0x146),'description':_0x5c51d1(0x152)}},'tailwind':{'t':{'icon':'🔧','script':_0x5c51d1(0x161),'description':'build\x20tailwind\x20css'}}};function _0x4c31(){const _0xb5f2f8=['dev','3646467vvzRyz','26974937rMhefs','deploy\x20mini\x20app\x20for\x20production','prod','keys','5NPThZG','forEach','build:css','6nBJXmn','114FHGCaB','run\x20development\x20server','split','join','deploy','5216751PsqhDS','exports','4594484ncBMmO','name','1762690oIjvUv','4250qVQEQs','serve','8ZGYxCR','http-server\x20./www/\x20-o\x20-c\x201\x20-a\x20localhost\x20-p\x208080','5631731tVwIPn','map','postcss\x20src/css/tailwind.css\x20-o\x20src/css/styles.css','httpServer','zmp\x20deploy','default','start','npm\x20run\x20serve'];_0x4c31=function(){return _0xb5f2f8;};return _0x4c31();}Object['keys'](t[_0x5c51d1(0x144)])['forEach'](_0x57eaf5=>{const _0x58bee1=_0x5c51d1;t[_0x58bee1(0x144)][_0x57eaf5]['name']=s(_0x57eaf5);}),Object[_0x5c51d1(0x14c)](t[_0x5c51d1(0x162)])[_0x5c51d1(0x14e)](_0x237b60=>{const _0x35ed73=_0x5c51d1;t[_0x35ed73(0x162)][_0x237b60]['name']=s(_0x237b60);}),Object[_0x5c51d1(0x14c)](t['tailwind'])[_0x5c51d1(0x14e)](_0x1c7895=>{const _0xc47928=_0x5c51d1;t['tailwind'][_0x1c7895][_0xc47928(0x159)]=s(_0x1c7895);}),module[_0x5c51d1(0x157)]=t;
1
+ 'use strict';const _0xe9a708=_0x4b51;(function(_0x20c464,_0x112421){const _0x4e1417=_0x4b51,_0x463daa=_0x20c464();while(!![]){try{const _0x188b47=-parseInt(_0x4e1417(0x15f))/0x1*(-parseInt(_0x4e1417(0x160))/0x2)+-parseInt(_0x4e1417(0x14d))/0x3*(parseInt(_0x4e1417(0x158))/0x4)+parseInt(_0x4e1417(0x149))/0x5+parseInt(_0x4e1417(0x15a))/0x6*(-parseInt(_0x4e1417(0x14a))/0x7)+parseInt(_0x4e1417(0x157))/0x8*(-parseInt(_0x4e1417(0x155))/0x9)+parseInt(_0x4e1417(0x147))/0xa+parseInt(_0x4e1417(0x14b))/0xb;if(_0x188b47===_0x112421)break;else _0x463daa['push'](_0x463daa['shift']());}catch(_0x51d91b){_0x463daa['push'](_0x463daa['shift']());}}}(_0x1de8,0x5c1e3));function _0x1de8(){const _0x2f026d=['32tnaFpJ','build:css','run\x20development\x20server','dev','build\x20tailwind\x20css','serve','1314990bErrRH','prod','2267160EzDAon','108017dCTUOY','12436798HYXalV','forEach','292827efOYmV','default','start','npm\x20run\x20serve','name','keys','deploy','split','18piTEnI','postcss\x20src/css/tailwind.css\x20-o\x20src/css/styles.css','2423016BKyGFf','20ENmrfj','deploy\x20mini\x20app\x20for\x20production','222GiejYT','httpServer','exports','tailwind','join','20407asjlEa'];_0x1de8=function(){return _0x2f026d;};return _0x1de8();}function _0x4b51(_0x53cde4,_0x213504){const _0x1de8bb=_0x1de8();return _0x4b51=function(_0x4b51b9,_0x563651){_0x4b51b9=_0x4b51b9-0x142;let _0x522b6e=_0x1de8bb[_0x4b51b9];return _0x522b6e;},_0x4b51(_0x53cde4,_0x213504);}const e={'d':_0xe9a708(0x144),'p':_0xe9a708(0x148),'s':_0xe9a708(0x14f),'v':_0xe9a708(0x146),'r':_0xe9a708(0x153),'t':_0xe9a708(0x142)};function s(_0x65756d){const _0x1a68b4=_0xe9a708;return _0x65756d[_0x1a68b4(0x154)]('_')[0x0][_0x1a68b4(0x154)]('')['map'](_0x1b5836=>e[_0x1b5836])[_0x1a68b4(0x15e)]('-');}const t={'default':{'s':{'icon':'🔥','script':'zmp\x20start','description':_0xe9a708(0x143)},'r':{'icon':'🙏','script':'zmp\x20deploy','description':_0xe9a708(0x159)}},'httpServer':{'v':{'icon':'🔧','script':'http-server\x20./www/\x20-o\x20-c\x201\x20-a\x20localhost\x20-p\x208080','description':_0xe9a708(0x143)},'s':{'icon':'🔥','script':_0xe9a708(0x150),'description':_0xe9a708(0x143)}},'tailwind':{'t':{'icon':'🔧','script':_0xe9a708(0x156),'description':_0xe9a708(0x145)}}};Object[_0xe9a708(0x152)](t[_0xe9a708(0x14e)])['forEach'](_0x47889c=>{t['default'][_0x47889c]['name']=s(_0x47889c);}),Object[_0xe9a708(0x152)](t[_0xe9a708(0x15b)])[_0xe9a708(0x14c)](_0x13855e=>{const _0xaf2ec4=_0xe9a708;t[_0xaf2ec4(0x15b)][_0x13855e]['name']=s(_0x13855e);}),Object['keys'](t[_0xe9a708(0x15d)])['forEach'](_0x5b12aa=>{const _0xd91ff7=_0xe9a708;t[_0xd91ff7(0x15d)][_0x5b12aa][_0xd91ff7(0x151)]=s(_0x5b12aa);}),module[_0xe9a708(0x15c)]=t;
package/deploy/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function _0xb9f1(_0x6d673c,_0xfe6a68){const _0x384aba=_0x384a();return _0xb9f1=function(_0xb9f1a,_0x37c986){_0xb9f1a=_0xb9f1a-0x88;let _0x13af78=_0x384aba[_0xb9f1a];return _0x13af78;},_0xb9f1(_0x6d673c,_0xfe6a68);}const _0x4ab93e=_0xb9f1;(function(_0x347ca9,_0x475336){const _0x423d69=_0xb9f1,_0x39f007=_0x347ca9();while(!![]){try{const _0x17c241=-parseInt(_0x423d69(0xae))/0x1*(parseInt(_0x423d69(0x91))/0x2)+parseInt(_0x423d69(0xbb))/0x3+parseInt(_0x423d69(0xb1))/0x4*(parseInt(_0x423d69(0xb2))/0x5)+-parseInt(_0x423d69(0xa8))/0x6+parseInt(_0x423d69(0xa5))/0x7*(parseInt(_0x423d69(0x9c))/0x8)+parseInt(_0x423d69(0xb5))/0x9*(parseInt(_0x423d69(0x92))/0xa)+parseInt(_0x423d69(0x8d))/0xb*(parseInt(_0x423d69(0xb6))/0xc);if(_0x17c241===_0x475336)break;else _0x39f007['push'](_0x39f007['shift']());}catch(_0xa4ef88){_0x39f007['push'](_0x39f007['shift']());}}}(_0x384a,0x3cf36));const e=require(_0x4ab93e(0x9d)),r=require('file-api')[_0x4ab93e(0xb9)],t=require(_0x4ab93e(0xaf)),o=require(_0x4ab93e(0xbe)),a=require('qrcode-terminal'),i=require('../config'),s=require('../build/index'),n=require(_0x4ab93e(0xa3)),{errorExit:u}=require(_0x4ab93e(0x94)),{deploy:l}=require(_0x4ab93e(0xad)),{axiosClient:d}=require(_0x4ab93e(0xaa));module[_0x4ab93e(0xb0)]=async(_0x57666e={},_0x1f65ea)=>{const _0x57cc3f=_0x4ab93e;let _0xe055e9=[];_0x1f65ea[_0x57cc3f(0x8e)]();let _0x150f20=_0x359c6f=>{const _0x518745=_0x57cc3f;let _0x30e758=t[_0x518745(0xb8)]('['+Math[_0x518745(0x8f)](_0x359c6f)[_0x518745(0x96)]()[_0x518745(0xa6)](0x2,'\x20')+'%]')+_0x518745(0xbc);_0x1f65ea['statusText'](_0x30e758);};_0x150f20(0x0);try{await s(_0x57666e),_0x150f20(0x1e);let _0x5bd9ae=_0x57666e[_0x57cc3f(0xbd)],_0x4d138d=_0x57666e[_0x57cc3f(0xa9)]||'www',_0xd9db4a=_0x57666e[_0x57cc3f(0x8c)]||process['cwd'](),_0x5535bd=_0x57666e[_0x57cc3f(0x88)],_0x4a86d0=_0x57666e[_0x57cc3f(0x8b)],_0xb7c14d=()=>n[_0x57cc3f(0xb3)](i[_0x57cc3f(0x93)][_0x57cc3f(0x9f)]),_0x1b88a8=await l({'isCustom':_0x5bd9ae,'outputDir':_0x4d138d,'cwd':_0xd9db4a,'target':_0x5535bd,'description':_0x4a86d0,'ResumableClass':e,'FileClass':r,'getToken':_0xb7c14d,'request':async({url:_0x1a0385,method:_0x4f3f72,data:_0x160381})=>{const _0x29fd86=_0x57cc3f;let _0x57df08={'Authorization':_0x29fd86(0x99)+_0xb7c14d(),'cache-control':_0x29fd86(0xac)},_0x3bd478=(await d(_0x1a0385,{'method':_0x4f3f72,..._0x29fd86(0xb7)===_0x4f3f72?{'params':_0x160381}:{'data':_0x160381},'headers':_0x57df08,'withCredentials':!0x0}))['data'];if(!_0x3bd478||_0x3bd478['err']<0x0){if(_0x3bd478&&_0x3bd478['err']===i[_0x29fd86(0x9a)][_0x29fd86(0xa4)])throw Error(i[_0x29fd86(0xb4)][_0x29fd86(0xa4)]);throw Error(JSON[_0x29fd86(0xbf)](_0x3bd478));}return _0x3bd478[_0x29fd86(0xa2)];},'customLogger':{'info':_0x3ef2e6=>{const _0x55b254=_0x57cc3f;_0xe055e9[_0x55b254(0x9b)](_0x3ef2e6);},'warn':_0x5ea726=>{const _0x2e1b3a=_0x57cc3f;_0xe055e9[_0x2e1b3a(0x9b)](_0x5ea726);}},'onProgress':_0x3e212d=>{_0x150f20(0x1e+0x46*_0x3e212d/0x64);}}),_0x2f5c51=_0x1b88a8&&_0x1b88a8['data']&&_0x1b88a8[_0x57cc3f(0xa2)][_0x57cc3f(0x98)],_0x3aa180=_0x1b88a8&&_0x1b88a8[_0x57cc3f(0xa2)]&&_0x1b88a8['data'][_0x57cc3f(0xba)];a[_0x57cc3f(0xa1)](_0x2f5c51,{'small':!0x0},function(_0x17c72a){const _0x2cd538=_0x57cc3f;let _0x199785=''+t[_0x2cd538(0x90)](o[_0x2cd538(0xa7)]+_0x2cd538(0x97)+_0x17c72a);_0x1f65ea[_0x2cd538(0x8a)](t[_0x2cd538(0x90)][_0x2cd538(0xa0)]('Deploy\x20Done!')+'\x20✅'),_0x1f65ea[_0x2cd538(0x8a)](t['bold']['green'](_0x2cd538(0x89))+'\x20'+_0x3aa180),_0x1f65ea[_0x2cd538(0x95)](_0x199785);});}catch(_0x386527){_0x1f65ea[_0x57cc3f(0xab)](_0x57cc3f(0x9e)),u(_0x386527);}finally{for(let _0x520a28 of _0xe055e9)_0x1f65ea['text'](_0x520a28);}};function _0x384a(){const _0x2579da=['bold','11062DeBzgA','10xgwmwm','env','../utils/error','text','toString','\x20View\x20app\x20at:\x0a','appUrl','Bearer\x20','error_code','push','56oFDNKL','../utils/resumable','Error\x20deploying\x20your\x20app','token','green','generate','data','../utils/env','permission_denied','93485CnpAbW','padStart','info','2376276vCyLSX','outputDir','../utils/axios','statusError','no-cache','zmp-cli-core','69CzUEQx','chalk','exports','1540DuEAEz','2525RLbwFM','getEnv','error_msg','4054761DUjBln','12yHcSEl','GET','gray','File','versionId','122751kwFBUw','\x20Deploying\x20Your\x20App','customProject','log-symbols','stringify','versionStatus','Version:','statusDone','desc','cwd','2727813HQNhUW','statusStart','round'];_0x384a=function(){return _0x2579da;};return _0x384a();}
1
+ 'use strict';const _0x1c2323=_0x42a8;(function(_0xa81196,_0x4b79ac){const _0x415176=_0x42a8,_0xed01f9=_0xa81196();while(!![]){try{const _0x127aad=parseInt(_0x415176(0x115))/0x1+parseInt(_0x415176(0x114))/0x2+parseInt(_0x415176(0x10a))/0x3*(-parseInt(_0x415176(0x106))/0x4)+-parseInt(_0x415176(0xfe))/0x5+parseInt(_0x415176(0x113))/0x6*(-parseInt(_0x415176(0xfb))/0x7)+parseInt(_0x415176(0x10b))/0x8*(parseInt(_0x415176(0x111))/0x9)+-parseInt(_0x415176(0xf0))/0xa*(-parseInt(_0x415176(0x117))/0xb);if(_0x127aad===_0x4b79ac)break;else _0xed01f9['push'](_0xed01f9['shift']());}catch(_0x40aa53){_0xed01f9['push'](_0xed01f9['shift']());}}}(_0x3acd,0xeb082));function _0x42a8(_0x11c4e9,_0x41e9ff){const _0x3acdd0=_0x3acd();return _0x42a8=function(_0x42a8b1,_0x3af9f3){_0x42a8b1=_0x42a8b1-0xea;let _0x180f49=_0x3acdd0[_0x42a8b1];return _0x180f49;},_0x42a8(_0x11c4e9,_0x41e9ff);}const e=require('../utils/resumable'),r=require(_0x1c2323(0xed))[_0x1c2323(0xf7)],t=require('chalk'),o=require(_0x1c2323(0x11e)),a=require(_0x1c2323(0x102)),i=require(_0x1c2323(0x101)),s=require('../build/index'),n=require(_0x1c2323(0x10f)),{errorExit:u}=require(_0x1c2323(0xf8)),{deploy:l}=require(_0x1c2323(0xeb)),{axiosClient:d}=require(_0x1c2323(0xf1));function _0x3acd(){const _0x2ac6d2=['File','../utils/error','text','exports','4913713lfZAKl','\x20View\x20app\x20at:\x0a','appUrl','5226745ThLjxX','err','cwd','../config','qrcode-terminal','generate','toString','green','4BXLOPo','env','customProject','data','5237814anhqME','69592YsVxYW','token','outputDir','stringify','../utils/env','getEnv','450EsfFAY','GET','12tEJJVW','1613632aPqSyq','169701VNNvFW','Error\x20deploying\x20your\x20app','77BQRtAe','error_msg','permission_denied','\x20Deploying\x20Your\x20App','versionStatus','no-cache','Deploy\x20Done!','log-symbols','www','zmp-cli-core','statusText','file-api','Bearer\x20','statusError','5352040rqoMeA','../utils/axios','statusDone','info','error_code','gray','push'];_0x3acd=function(){return _0x2ac6d2;};return _0x3acd();}module[_0x1c2323(0xfa)]=async(_0x239ad2={},_0x53dc9a)=>{const _0x29ead5=_0x1c2323;let _0x13130a=[];try{let _0x44db6d=_0x239ad2[_0x29ead5(0x108)],_0x35d4e7=_0x239ad2[_0x29ead5(0x10d)]||_0x29ead5(0xea),_0x15cc72=_0x239ad2['cwd']||process[_0x29ead5(0x100)](),_0x3f18a2=_0x239ad2[_0x29ead5(0x11b)],_0x12b259=_0x239ad2['desc'],_0x5bfc35=()=>n[_0x29ead5(0x110)](i[_0x29ead5(0x107)][_0x29ead5(0x10c)]);_0x44db6d||await s(_0x239ad2,_0x53dc9a),_0x53dc9a['statusStart']();let _0x152ff4=_0x1e4cb8=>{const _0x2cd059=_0x29ead5;let _0x4f7187=t[_0x2cd059(0xf5)]('['+Math['round'](_0x1e4cb8)[_0x2cd059(0x104)]()['padStart'](0x2,'\x20')+'%]')+_0x2cd059(0x11a);_0x53dc9a[_0x2cd059(0xec)](_0x4f7187);};_0x152ff4(0x1e);let _0x28ac68=await l({'isCustom':_0x44db6d,'outputDir':_0x35d4e7,'cwd':_0x15cc72,'target':_0x3f18a2,'description':_0x12b259,'ResumableClass':e,'FileClass':r,'getToken':_0x5bfc35,'request':async({url:_0x197dc2,method:_0x1f72d2,data:_0xe94400})=>{const _0x569cb2=_0x29ead5;let _0x59522c={'Authorization':_0x569cb2(0xee)+_0x5bfc35(),'cache-control':_0x569cb2(0x11c)},_0x5ada44=(await d(_0x197dc2,{'method':_0x1f72d2,..._0x569cb2(0x112)===_0x1f72d2?{'params':_0xe94400}:{'data':_0xe94400},'headers':_0x59522c,'withCredentials':!0x0}))[_0x569cb2(0x109)];if(!_0x5ada44||_0x5ada44[_0x569cb2(0xff)]<0x0){if(_0x5ada44&&_0x5ada44[_0x569cb2(0xff)]===i[_0x569cb2(0xf4)][_0x569cb2(0x119)])throw Error(i[_0x569cb2(0x118)][_0x569cb2(0x119)]);throw Error(JSON[_0x569cb2(0x10e)](_0x5ada44));}return _0x5ada44[_0x569cb2(0x109)];},'customLogger':{'info':_0x581919=>{const _0x13ea8c=_0x29ead5;_0x13130a[_0x13ea8c(0xf6)](_0x581919);},'warn':_0x573f34=>{const _0x27100e=_0x29ead5;_0x13130a[_0x27100e(0xf6)](_0x573f34);}},'onProgress':_0x3c43f7=>{_0x152ff4(0x1e+0x46*_0x3c43f7/0x64);}}),_0x540502=_0x28ac68&&_0x28ac68[_0x29ead5(0x109)]&&_0x28ac68['data'][_0x29ead5(0xfd)],_0x188fb2=_0x28ac68&&_0x28ac68['data']&&_0x28ac68[_0x29ead5(0x109)]['versionId'];for(let _0x4e74a of(a[_0x29ead5(0x103)](_0x540502,{'small':!0x0},function(_0x2447ef){const _0x594242=_0x29ead5;let _0x1c89a1=''+t['bold'](o[_0x594242(0xf3)]+_0x594242(0xfc)+_0x2447ef);_0x53dc9a[_0x594242(0xf2)](t['bold'][_0x594242(0x105)](_0x594242(0x11d))+'\x20✅'),_0x53dc9a[_0x594242(0xf2)](t['bold'][_0x594242(0x105)]('Version:')+'\x20'+_0x188fb2),_0x53dc9a['text'](_0x1c89a1);}),_0x13130a))_0x53dc9a[_0x29ead5(0xf9)](_0x4e74a);}catch(_0x325063){for(let _0x5b55d6 of(_0x53dc9a[_0x29ead5(0xef)](_0x29ead5(0x116)),_0x13130a))_0x53dc9a['text'](_0x5b55d6);u(_0x325063);}};
@@ -1 +1 @@
1
- 'use strict';const _0x1fe514=_0x8350;function _0x8350(_0x2aba63,_0x317c5c){const _0xe8cca7=_0xe8cc();return _0x8350=function(_0x8350b4,_0x197047){_0x8350b4=_0x8350b4-0x16e;let _0x580e53=_0xe8cca7[_0x8350b4];return _0x580e53;},_0x8350(_0x2aba63,_0x317c5c);}function _0xe8cc(){const _0x545f3a=['list','650140SyIRfM','map','exports','outputDir','customProject','95388Qbpxhv','Description:','../../utils/constants','15tCrlfx','Where\x20is\x20your\x20dist\x20folder?','This\x20is\x20not\x20a\x20ZMP\x20Project,\x20do\x20you\x20want\x20to\x20continue?','2028861CgtSlb','72496wGmigh','12cLysZm','21JzGTTb','62139DzdRFA','versionStatus','8wgHvXP','136928vORwXa','lodash','resolve','desc','length','quit','40034EHzkIa'];_0xe8cc=function(){return _0x545f3a;};return _0xe8cc();}(function(_0x11cdf6,_0x4690a3){const _0x46dc0d=_0x8350,_0x44bc82=_0x11cdf6();while(!![]){try{const _0x3ae2ff=-parseInt(_0x46dc0d(0x178))/0x1*(-parseInt(_0x46dc0d(0x187))/0x2)+-parseInt(_0x46dc0d(0x16e))/0x3*(-parseInt(_0x46dc0d(0x186))/0x4)+-parseInt(_0x46dc0d(0x182))/0x5*(-parseInt(_0x46dc0d(0x17f))/0x6)+-parseInt(_0x46dc0d(0x16f))/0x7*(-parseInt(_0x46dc0d(0x171))/0x8)+-parseInt(_0x46dc0d(0x185))/0x9+-parseInt(_0x46dc0d(0x17a))/0xa+-parseInt(_0x46dc0d(0x172))/0xb;if(_0x3ae2ff===_0x4690a3)break;else _0x44bc82['push'](_0x44bc82['shift']());}catch(_0x2e3b34){_0x44bc82['push'](_0x44bc82['shift']());}}}(_0xe8cc,0x1d7b0));const e=require('inquirer'),{versionStatus:t}=require(_0x1fe514(0x181)),i=require(_0x1fe514(0x173)),r=[{'type':_0x1fe514(0x179),'name':_0x1fe514(0x170),'message':'What\x20version\x20status\x20are\x20you\x20deploying?','choices':Object['keys'](t)[_0x1fe514(0x17b)](_0x67d8f0=>({'name':i['capitalize'](_0x67d8f0),'value':t[_0x67d8f0]})),'when':_0x282c3a=>!_0x282c3a['quit'],'validate':_0x1aad03=>new Promise((_0xacd216,_0x19467e)=>{const _0x28efd3=_0x1fe514;_0x1aad03&&_0x1aad03[_0x28efd3(0x176)]?_0xacd216(!0x0):_0x19467e(Error('Server\x20type\x20is\x20required!'));})},{'type':'input','name':_0x1fe514(0x175),'message':_0x1fe514(0x180),'when':_0x553f50=>!_0x553f50[_0x1fe514(0x177)],'validate':_0x4517ed=>new Promise((_0x2ba3a7,_0xe7b4c9)=>{_0x4517ed&&_0x4517ed['length']?_0x2ba3a7(!0x0):_0xe7b4c9(Error('Description\x20is\x20required!'));})}],s=[{'type':'list','name':_0x1fe514(0x177),'message':_0x1fe514(0x184),'choices':[{'name':'Deploy\x20your\x20existing\x20project','value':!0x1},{'name':'Quit','value':!0x0}]},{'type':'input','name':_0x1fe514(0x17d),'message':_0x1fe514(0x183),'when':_0x580a13=>!_0x580a13[_0x1fe514(0x177)],'default':'www'}];module[_0x1fe514(0x17c)]=async function(_0x494950){const _0x1cbc28=_0x1fe514;let _0x5c4bfb=_0x494950?[...r]:[...s,...r];return e['prompt'](_0x5c4bfb)['then'](_0x3995f5=>(_0x3995f5[_0x1cbc28(0x17e)]=!0x1,!0x1===_0x3995f5[_0x1cbc28(0x177)]&&(_0x3995f5[_0x1cbc28(0x17e)]=!0x0),Promise[_0x1cbc28(0x174)](_0x3995f5)));};
1
+ 'use strict';function _0x5e29(_0x355efa,_0x4e45ff){const _0x5310bc=_0x5310();return _0x5e29=function(_0x5e29e8,_0x49e350){_0x5e29e8=_0x5e29e8-0xdb;let _0x470d0f=_0x5310bc[_0x5e29e8];return _0x470d0f;},_0x5e29(_0x355efa,_0x4e45ff);}const _0xfe18ea=_0x5e29;(function(_0x2d9625,_0x531b13){const _0x2181d9=_0x5e29,_0x43da95=_0x2d9625();while(!![]){try{const _0x50e849=-parseInt(_0x2181d9(0xf0))/0x1*(parseInt(_0x2181d9(0xe0))/0x2)+-parseInt(_0x2181d9(0xed))/0x3*(parseInt(_0x2181d9(0xe7))/0x4)+-parseInt(_0x2181d9(0xf6))/0x5*(parseInt(_0x2181d9(0xf9))/0x6)+-parseInt(_0x2181d9(0xee))/0x7+parseInt(_0x2181d9(0xe9))/0x8*(parseInt(_0x2181d9(0xe8))/0x9)+-parseInt(_0x2181d9(0xe4))/0xa+parseInt(_0x2181d9(0xe3))/0xb*(parseInt(_0x2181d9(0xea))/0xc);if(_0x50e849===_0x531b13)break;else _0x43da95['push'](_0x43da95['shift']());}catch(_0x154b48){_0x43da95['push'](_0x43da95['shift']());}}}(_0x5310,0xc71b5));function _0x5310(){const _0xe30059=['1180KaMCMU','Quit','../../utils/constants','1056ViwgZz','length','input','www','then','This\x20is\x20not\x20a\x20ZMP\x20Project,\x20do\x20you\x20want\x20to\x20continue?','capitalize','outputDir','exports','166CfdoxY','Where\x20is\x20your\x20dist\x20folder?','quit','15539249LohSTJ','13729800ouFFEB','inquirer','map','25096UbdNxE','45oUNqHO','2424056xDojtV','24vLyFrf','Server\x20type\x20is\x20required!','resolve','531ZZLBti','6106170BXKPjQ','Description:','1536gxeXHs','keys','Description\x20is\x20required!','Deploy\x20your\x20existing\x20project','list','desc'];_0x5310=function(){return _0xe30059;};return _0x5310();}const e=require(_0xfe18ea(0xe5)),{versionStatus:t}=require(_0xfe18ea(0xf8)),i=require('lodash'),r=[{'type':'list','name':'versionStatus','message':'What\x20version\x20status\x20are\x20you\x20deploying?','choices':Object[_0xfe18ea(0xf1)](t)[_0xfe18ea(0xe6)](_0x41b86b=>({'name':i[_0xfe18ea(0xdd)](_0x41b86b),'value':t[_0x41b86b]})),'when':_0x1cc972=>!_0x1cc972[_0xfe18ea(0xe2)],'validate':_0x454239=>new Promise((_0x277a08,_0x17c4e7)=>{const _0x123255=_0xfe18ea;_0x454239&&_0x454239[_0x123255(0xfa)]?_0x277a08(!0x0):_0x17c4e7(Error(_0x123255(0xeb)));})},{'type':_0xfe18ea(0xfb),'name':_0xfe18ea(0xf5),'message':_0xfe18ea(0xef),'when':_0x10e527=>!_0x10e527[_0xfe18ea(0xe2)],'validate':_0x5f24c0=>new Promise((_0x1f5a9a,_0x24100a)=>{const _0x224ebe=_0xfe18ea;_0x5f24c0&&_0x5f24c0[_0x224ebe(0xfa)]?_0x1f5a9a(!0x0):_0x24100a(Error(_0x224ebe(0xf2)));})}],s=[{'type':_0xfe18ea(0xf4),'name':'quit','message':_0xfe18ea(0xdc),'choices':[{'name':_0xfe18ea(0xf3),'value':!0x1},{'name':_0xfe18ea(0xf7),'value':!0x0}]},{'type':_0xfe18ea(0xfb),'name':_0xfe18ea(0xde),'message':_0xfe18ea(0xe1),'when':_0x3c503c=>!_0x3c503c['quit'],'default':_0xfe18ea(0xfc)}];module[_0xfe18ea(0xdf)]=async function(_0x5b8a9d){const _0x2e4318=_0xfe18ea;let _0xcbfeaf=_0x5b8a9d?[...r]:[...s,...r];return e['prompt'](_0xcbfeaf)[_0x2e4318(0xdb)](_0x5e2493=>(_0x5e2493['customProject']=!0x1,!0x1===_0x5e2493['quit']&&(_0x5e2493['customProject']=!0x0),Promise[_0x2e4318(0xec)](_0x5e2493)));};
package/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';function _0x14a5(_0x5e258e,_0xf2589c){const _0xf857df=_0xf857();return _0x14a5=function(_0x14a5ea,_0x430f3e){_0x14a5ea=_0x14a5ea-0x1af;let _0x451845=_0xf857df[_0x14a5ea];return _0x451845;},_0x14a5(_0x5e258e,_0xf2589c);}const _0x1419ed=_0x14a5;(function(_0x30e4f1,_0x2e1033){const _0x48159e=_0x14a5,_0x195465=_0x30e4f1();while(!![]){try{const _0x267598=parseInt(_0x48159e(0x1c0))/0x1+parseInt(_0x48159e(0x205))/0x2*(parseInt(_0x48159e(0x1f8))/0x3)+-parseInt(_0x48159e(0x1e3))/0x4*(-parseInt(_0x48159e(0x1fe))/0x5)+parseInt(_0x48159e(0x1e7))/0x6*(parseInt(_0x48159e(0x1ba))/0x7)+-parseInt(_0x48159e(0x213))/0x8*(parseInt(_0x48159e(0x1b0))/0x9)+parseInt(_0x48159e(0x1c4))/0xa+-parseInt(_0x48159e(0x1bd))/0xb;if(_0x267598===_0x2e1033)break;else _0x195465['push'](_0x195465['shift']());}catch(_0x1109c0){_0x195465['push'](_0x195465['shift']());}}}(_0xf857,0x5aa4e));const e=require(_0x1419ed(0x1f9)),o=require(_0x1419ed(0x1be)),t=require(_0x1419ed(0x1cc)),i=require('commander'),s=require('log-symbols'),r=require(_0x1419ed(0x204)),n=require(_0x1419ed(0x1b8)),a=require('./utils/spinner'),c=require(_0x1419ed(0x214)),p=require(_0x1419ed(0x1d4)),u=require(_0x1419ed(0x1dd)),l=require('./login/utils/get-options'),d=require('./deploy/utils/get-options'),m=require(_0x1419ed(0x200)),g=require(_0x1419ed(0x20a)),x=require(_0x1419ed(0x1ec)),y=require(_0x1419ed(0x20f)),w=require(_0x1419ed(0x1ef)),v=require(_0x1419ed(0x1e8)),f=require('./sync/index'),q=require(_0x1419ed(0x1b6)),h=require('os'),M=require(_0x1419ed(0x1d9)),P=require('./config'),{versionStatus:j}=require('./utils/constants'),Z=process[_0x1419ed(0x1c3)](),S={'statusStart':_0x1fa612=>a[_0x1419ed(0x1df)](_0x1fa612),'statusDone':_0x452069=>a[_0x1419ed(0x1d1)](_0x452069),'statusText':_0x2b6be4=>a[_0x1419ed(0x218)](_0x2b6be4),'statusError':_0x9e0c5b=>a['error'](_0x9e0c5b),'text':_0x227b9a=>c[_0x1419ed(0x218)](_0x227b9a),'error':_0x111d58=>c[_0x1419ed(0x212)](_0x111d58),'showOnUI':()=>{}};o(),r[_0x1419ed(0x1fd)](P[_0x1419ed(0x1d0)]())||r[_0x1419ed(0x1fb)](P[_0x1419ed(0x1d0)]()),console[_0x1419ed(0x1eb)](e[_0x1419ed(0x211)](t[_0x1419ed(0x1c6)](_0x1419ed(0x1e2),{'horizontalLayout':_0x1419ed(0x208),'verticalLayout':_0x1419ed(0x208)})),e[_0x1419ed(0x211)](_0x1419ed(0x202)+M[_0x1419ed(0x207)]+'\x0a')),i['version'](M[_0x1419ed(0x207)])[_0x1419ed(0x1e5)](_0x1419ed(0x1f7))[_0x1419ed(0x1b7)](_0x1419ed(0x1af))[_0x1419ed(0x216)](_0x1419ed(0x1e6),_0x1419ed(0x1d6))[_0x1419ed(0x1ee)](_0x1419ed(0x1db))['action'](async _0x21eebd=>{const _0x52b163=_0x1419ed;_0x21eebd[_0x52b163(0x1c1)]||await n();let _0x3cb0b4=await l();await g({'cwd':Z,..._0x3cb0b4},S);let _0x3543f9=await u();await x({'cwd':Z,..._0x3543f9},S),process['exit'](0x0);}),i[_0x1419ed(0x1e5)]('<command>\x20[options]')[_0x1419ed(0x1b7)]('login')[_0x1419ed(0x1ee)](_0x1419ed(0x1cf))['action'](async()=>{let _0x53a4d2=await l();await g({'cwd':Z,..._0x53a4d2},S),process['exit'](0x0);}),i[_0x1419ed(0x1e5)](_0x1419ed(0x1f7))['command'](_0x1419ed(0x1df))['option'](_0x1419ed(0x1cb),_0x1419ed(0x1bf))[_0x1419ed(0x216)](_0x1419ed(0x1de),_0x1419ed(0x1b9),parseInt)[_0x1419ed(0x216)](_0x1419ed(0x1c2),_0x1419ed(0x1f2))[_0x1419ed(0x216)]('-ios,\x20--ios',_0x1419ed(0x1b4))[_0x1419ed(0x216)](_0x1419ed(0x1d2),_0x1419ed(0x1ff))[_0x1419ed(0x216)](_0x1419ed(0x1b5),'Device\x20mode')[_0x1419ed(0x216)](_0x1419ed(0x1bb),_0x1419ed(0x1d5))['description']('Start\x20a\x20ZMP\x20project')[_0x1419ed(0x1ea)](async _0x4666f6=>{const _0x31cbfc=_0x1419ed;if(p(Z)||(c['text'](s[_0x31cbfc(0x212)]+_0x31cbfc(0x1f6)),process[_0x31cbfc(0x1bc)](0x1)),_0x4666f6&&_0x4666f6[_0x31cbfc(0x1ca)])try{console['log'](require[_0x31cbfc(0x1e1)]('nw'));}catch(_0x155a3b){console['error'](_0x31cbfc(0x1c7)),process[_0x31cbfc(0x1bc)](_0x155a3b[_0x31cbfc(0x217)]);}let _0x196f73=h[_0x31cbfc(0x1f5)]();_0x196f73[_0x31cbfc(0x1e0)]('.local')||(_0x196f73=_0x196f73+'.local'),await y({'cwd':Z,'port':_0x4666f6&&_0x4666f6['port']||0xbb8,'iosHostName':_0x4666f6&&_0x4666f6[_0x31cbfc(0x1fc)]||_0x196f73,'showMobileUI':_0x4666f6&&_0x4666f6[_0x31cbfc(0x1ca)]||!0x1,'previewOnZalo':_0x4666f6&&_0x4666f6[_0x31cbfc(0x1dc)]||!0x1,'ios':_0x4666f6&&_0x4666f6['ios']||!0x1,'mode':_0x4666f6&&_0x4666f6[_0x31cbfc(0x1e4)],'frame':!!_0x4666f6&&(void 0x0===_0x4666f6[_0x31cbfc(0x1c8)]||null===_0x4666f6[_0x31cbfc(0x1c8)])||_0x4666f6[_0x31cbfc(0x1c8)],'deviceMode':_0x4666f6&&_0x4666f6[_0x31cbfc(0x206)]||!0x1},S),process[_0x31cbfc(0x1bc)](0x0);}),i[_0x1419ed(0x1e5)](_0x1419ed(0x1f7))[_0x1419ed(0x1b7)](_0x1419ed(0x210))[_0x1419ed(0x216)](_0x1419ed(0x1bb),_0x1419ed(0x1d5))['description'](_0x1419ed(0x1b2))[_0x1419ed(0x1ea)](async _0x166e43=>{const _0x399f51=_0x1419ed;p(Z)||(c[_0x399f51(0x218)](s['error']+_0x399f51(0x1f6)),process['exit'](0x1)),await w({'cwd':Z,'mode':_0x166e43&&_0x166e43[_0x399f51(0x1e4)]},S),process[_0x399f51(0x1bc)](0x0);}),i[_0x1419ed(0x1e5)](_0x1419ed(0x1f7))[_0x1419ed(0x1b7)](_0x1419ed(0x1b3))[_0x1419ed(0x216)](_0x1419ed(0x1bb),_0x1419ed(0x1d5))[_0x1419ed(0x216)](_0x1419ed(0x1ed),_0x1419ed(0x1f3))['option'](_0x1419ed(0x1da),'Deploy\x20existing\x20project')[_0x1419ed(0x216)](_0x1419ed(0x1f4),_0x1419ed(0x215))[_0x1419ed(0x216)](_0x1419ed(0x1c5),'Version\x20description')[_0x1419ed(0x216)](_0x1419ed(0x1c9),_0x1419ed(0x20e))[_0x1419ed(0x216)](_0x1419ed(0x1de),_0x1419ed(0x1cd),parseInt)['description'](_0x1419ed(0x1fa))[_0x1419ed(0x1ea)](async _0x41a4e3=>{const _0x4075e6=_0x1419ed;let _0x361ebd=p(Z),_0x4ea8a1=_0x41a4e3;_0x41a4e3[_0x4075e6(0x20c)]?_0x4ea8a1[_0x4075e6(0x1f0)]=!0x0:_0x41a4e3[_0x4075e6(0x20d)]||(_0x4ea8a1=await d(_0x361ebd)),_0x41a4e3[_0x4075e6(0x1ce)]&&(_0x4ea8a1[_0x4075e6(0x1d8)]=j[_0x4075e6(0x20b)]),_0x4ea8a1[_0x4075e6(0x1b1)]&&process[_0x4075e6(0x1bc)](0x1),await v({'cwd':Z,'mode':_0x41a4e3&&_0x41a4e3[_0x4075e6(0x1e4)],..._0x4ea8a1},S),process[_0x4075e6(0x1bc)](0x0);}),i[_0x1419ed(0x1e5)]('<command>\x20[options]')[_0x1419ed(0x1b7)]('sync-config\x20<source>')['option'](_0x1419ed(0x1d3),'Custom\x20entry\x20point,\x20default\x20is\x20#app')['description']('Automatically\x20update\x20app-config.json\x20resources\x20list\x20based\x20on\x20index.html')[_0x1419ed(0x1ea)](async(_0x547460,_0x4dee5e)=>{const _0x27bae9=_0x1419ed;await f({'source':_0x547460,..._0x4dee5e},S),process[_0x27bae9(0x1bc)](0x0);}),i[_0x1419ed(0x1e5)](_0x1419ed(0x1f7))[_0x1419ed(0x1b7)](_0x1419ed(0x1f1))[_0x1419ed(0x1ea)](async function(){const _0x21a009=_0x1419ed;let _0x7b52a5=p(Z);_0x7b52a5||(S[_0x21a009(0x218)](s[_0x21a009(0x212)]+_0x21a009(0x1f6)),process[_0x21a009(0x1bc)](0x1));let _0x15e36b=await m();await q({'cwd':Z,..._0x15e36b,..._0x7b52a5},S),process[_0x21a009(0x1bc)](0x0);}),i['on']('command:*',_0x87f6c5=>{const _0x541b08=_0x1419ed;i[_0x541b08(0x1e9)](),c['text']('\x0a\x20Unknown\x20command\x20'+_0x87f6c5);}),i[_0x1419ed(0x209)](process[_0x1419ed(0x201)]),i[_0x1419ed(0x1d7)][_0x1419ed(0x203)]||i[_0x1419ed(0x1e9)]();function _0xf857(){const _0x31253d=['build','cyan','error','1048EHhwwV','./utils/log','Deploy\x20testing\x20version','option','code','text','init','28521ZLAHQI','quit','Build\x20a\x20ZMP\x20project','deploy','Run\x20on\x20ios','-D,\x20--device','./migrate/index','command','./utils/check-update','Specify\x20server\x20port.\x20By\x20default\x20it\x20is\x203000','53921VzNCmI','-M,\x20--mode\x20<m>','exit','20153023TRIIWL','clear','Specify\x20server\x20hostname.\x20By\x20default\x20it\x20is\x20os.hostname','403446WJNHOV','skipUpdate','-Z,\x20--zalo-app','cwd','5705150ZKwEqZ','-m,\x20--desc\x20<message>','textSync','NW.js\x20module\x20is\x20not\x20found.\x20Please\x20run\x20\x22npm\x20install\x20-g\x20nw@sdk\x22','frame','-o,\x20--outputDir\x20<output>','showMobileUi','-iosH,\x20--ios-host-name\x20<n>','figlet','Specify\x20UI\x20server\x20port.\x20By\x20default\x20it\x20is\x203001','testing','Login\x20ZMP','root_env','done','-nF,\x20--no-frame','-r,\x20--root-element\x20<selector>','./utils/get-current-project','Env\x20mode','Skip\x20checking\x20for\x20update\x20of\x20zmp-cli','args','versionStatus','./package.json','-e,\x20--existing','Init\x20ZMP\x20project','zaloApp','./create/utils/get-options','-P,\x20--port\x20<n>','start','includes','resolve','ZMP\x20CLI','2824GiORFP','mode','usage','--skipUpdate','342TURFTU','./deploy/index','outputHelp','action','log','./create/index','-p,\x20--passive','description','./build/index','customProject','migrate','Preview\x20on\x20Zalo','Passive\x20mode\x20(non-interactive)','-t,\x20--testing','hostname','\x20This\x20is\x20not\x20ZMP\x20project','<command>\x20[options]','111354ymPOvk','chalk','Deploy\x20a\x20ZMP\x20project','writeFileSync','iosHostName','existsSync','5120jARcFN','Run\x20without\x20Zalo\x20frame','./migrate/utils/get-options','argv','Version:\x20','length','./utils/fs-extra','26EFLaNC','device','version','full','parse','./login/index','TESTING','existing','passive','Output\x20folder.\x20Default\x20www','./start/index'];_0xf857=function(){return _0x31253d;};return _0xf857();}
2
+ 'use strict';const _0x1741a8=_0x13bf;(function(_0x19a69c,_0x3d4f1d){const _0x42e7db=_0x13bf,_0x1e8517=_0x19a69c();while(!![]){try{const _0x28f624=parseInt(_0x42e7db(0x1b0))/0x1+-parseInt(_0x42e7db(0x1a5))/0x2+-parseInt(_0x42e7db(0x1a0))/0x3*(parseInt(_0x42e7db(0x17d))/0x4)+parseInt(_0x42e7db(0x1c7))/0x5+parseInt(_0x42e7db(0x1d9))/0x6+-parseInt(_0x42e7db(0x1d1))/0x7*(-parseInt(_0x42e7db(0x1be))/0x8)+parseInt(_0x42e7db(0x195))/0x9*(-parseInt(_0x42e7db(0x19e))/0xa);if(_0x28f624===_0x3d4f1d)break;else _0x1e8517['push'](_0x1e8517['shift']());}catch(_0x4e2ee4){_0x1e8517['push'](_0x1e8517['shift']());}}}(_0x4f62,0xe8f17));function _0x4f62(){const _0x21b006=['1922137QSJuNQ','./deploy/utils/get-options','existing','Deploy\x20testing\x20version','\x20This\x20is\x20not\x20ZMP\x20project','Version:\x20','./utils/check-update','NW.js\x20module\x20is\x20not\x20found.\x20Please\x20run\x20\x22npm\x20install\x20-g\x20nw@sdk\x22','8330898jKgpxJ','./utils/get-current-project','Skip\x20checking\x20for\x20update\x20of\x20zmp-cli','./utils/spinner','-nF,\x20--no-frame','chalk','Specify\x20UI\x20server\x20port.\x20By\x20default\x20it\x20is\x203001','-r,\x20--root-element\x20<selector>','-m,\x20--desc\x20<message>','./migrate/utils/get-options','command:*','-iosH,\x20--ios-host-name\x20<n>','text','Device\x20mode','76268cICXWX','device','<command>\x20[options]','ZMP\x20CLI','-p,\x20--passive','cyan','./create/utils/get-options','Deploy\x20a\x20ZMP\x20project','showMobileUi','passive','Version\x20description','error','Build\x20a\x20ZMP\x20project','-P,\x20--port\x20<n>','./sync/index','parse','Custom\x20entry\x20point,\x20default\x20is\x20#app','command','textSync','mode','./login/utils/get-options','Passive\x20mode\x20(non-interactive)','migrate','quit','234MKJCjq','./login/index','sync-config\x20<source>','Init\x20ZMP\x20project','resolve','testing','figlet','Deploy\x20existing\x20project','Env\x20mode','505290HDBbnY','-D,\x20--device','246LklRvm','argv','clear','./utils/fs-extra','full','1326582pQCMiy','code','writeFileSync','zaloApp','./deploy/index','log','Preview\x20on\x20Zalo','-M,\x20--mode\x20<m>','outputHelp','description','deploy','885405zysrLn','hostname','option','start','commander','Run\x20on\x20ios','includes','./start/index','customProject','Automatically\x20update\x20app-config.json\x20resources\x20list\x20based\x20on\x20index.html','./package.json','.local','./migrate/index','Run\x20without\x20Zalo\x20frame','16iOYTTO','exit','./utils/log','done','Login\x20ZMP','frame','args','usage','version','8358020bYGcDA','Start\x20a\x20ZMP\x20project','\x0a\x20Unknown\x20command\x20','Specify\x20server\x20hostname.\x20By\x20default\x20it\x20is\x20os.hostname','length','action','Specify\x20server\x20port.\x20By\x20default\x20it\x20is\x203000','-ios,\x20--ios','log-symbols','root_env'];_0x4f62=function(){return _0x21b006;};return _0x4f62();}function _0x13bf(_0x579371,_0x25f466){const _0x4f627=_0x4f62();return _0x13bf=function(_0x13bf1c,_0x2a6ace){_0x13bf1c=_0x13bf1c-0x175;let _0xca070c=_0x4f627[_0x13bf1c];return _0xca070c;},_0x13bf(_0x579371,_0x25f466);}const e=require(_0x1741a8(0x1de)),o=require(_0x1741a8(0x1a2)),t=require(_0x1741a8(0x19b)),i=require(_0x1741a8(0x1b4)),s=require(_0x1741a8(0x1cf)),r=require(_0x1741a8(0x1a3)),n=require(_0x1741a8(0x1d7)),a=require(_0x1741a8(0x1dc)),c=require(_0x1741a8(0x1c0)),p=require(_0x1741a8(0x1da)),u=require(_0x1741a8(0x183)),l=require(_0x1741a8(0x191)),d=require(_0x1741a8(0x1d2)),m=require(_0x1741a8(0x178)),g=require(_0x1741a8(0x196)),x=require('./create/index'),y=require(_0x1741a8(0x1b7)),w=require('./build/index'),v=require(_0x1741a8(0x1a9)),f=require(_0x1741a8(0x18b)),q=require(_0x1741a8(0x1bc)),h=require('os'),M=require(_0x1741a8(0x1ba)),P=require('./config'),{versionStatus:j}=require('./utils/constants'),Z=process['cwd'](),S={'statusStart':_0x82ca9f=>a[_0x1741a8(0x1b3)](_0x82ca9f),'statusDone':_0x5a2cd3=>a[_0x1741a8(0x1c1)](_0x5a2cd3),'statusText':_0xbfbce5=>a[_0x1741a8(0x17b)](_0xbfbce5),'statusError':_0x14d70e=>a[_0x1741a8(0x188)](_0x14d70e),'text':_0x4386b3=>c[_0x1741a8(0x17b)](_0x4386b3),'error':_0x41347e=>c[_0x1741a8(0x188)](_0x41347e),'showOnUI':()=>{}};o(),r['existsSync'](P['root_env']())||r[_0x1741a8(0x1a7)](P[_0x1741a8(0x1d0)]()),console[_0x1741a8(0x1aa)](e[_0x1741a8(0x182)](t[_0x1741a8(0x18f)](_0x1741a8(0x180),{'horizontalLayout':_0x1741a8(0x1a4),'verticalLayout':_0x1741a8(0x1a4)})),e['cyan'](_0x1741a8(0x1d6)+M[_0x1741a8(0x1c6)]+'\x0a')),i[_0x1741a8(0x1c6)](M[_0x1741a8(0x1c6)])['usage'](_0x1741a8(0x17f))[_0x1741a8(0x18e)]('init')[_0x1741a8(0x1b2)]('--skipUpdate',_0x1741a8(0x1db))[_0x1741a8(0x1ae)](_0x1741a8(0x198))[_0x1741a8(0x1cc)](async _0x27cca6=>{const _0x46289d=_0x1741a8;_0x27cca6['skipUpdate']||await n();let _0x1bb62f=await l();await g({'cwd':Z,..._0x1bb62f},S);let _0x4dbbe9=await u();await x({'cwd':Z,..._0x4dbbe9},S),process[_0x46289d(0x1bf)](0x0);}),i[_0x1741a8(0x1c5)]('<command>\x20[options]')['command']('login')[_0x1741a8(0x1ae)](_0x1741a8(0x1c2))['action'](async()=>{let _0x170bf9=await l();await g({'cwd':Z,..._0x170bf9},S),process['exit'](0x0);}),i[_0x1741a8(0x1c5)](_0x1741a8(0x17f))[_0x1741a8(0x18e)]('start')[_0x1741a8(0x1b2)](_0x1741a8(0x17a),_0x1741a8(0x1ca))[_0x1741a8(0x1b2)](_0x1741a8(0x18a),_0x1741a8(0x1cd),parseInt)['option']('-Z,\x20--zalo-app',_0x1741a8(0x1ab))['option'](_0x1741a8(0x1ce),_0x1741a8(0x1b5))['option'](_0x1741a8(0x1dd),_0x1741a8(0x1bd))[_0x1741a8(0x1b2)](_0x1741a8(0x19f),_0x1741a8(0x17c))[_0x1741a8(0x1b2)](_0x1741a8(0x1ac),_0x1741a8(0x19d))[_0x1741a8(0x1ae)](_0x1741a8(0x1c8))[_0x1741a8(0x1cc)](async _0x3b3584=>{const _0x3cb1f1=_0x1741a8;if(p(Z)||(c['text'](s['error']+_0x3cb1f1(0x1d5)),process['exit'](0x1)),_0x3b3584&&_0x3b3584[_0x3cb1f1(0x185)])try{console[_0x3cb1f1(0x1aa)](require[_0x3cb1f1(0x199)]('nw'));}catch(_0x4c30e4){console[_0x3cb1f1(0x188)](_0x3cb1f1(0x1d8)),process['exit'](_0x4c30e4[_0x3cb1f1(0x1a6)]);}let _0x27112c=h[_0x3cb1f1(0x1b1)]();_0x27112c[_0x3cb1f1(0x1b6)](_0x3cb1f1(0x1bb))||(_0x27112c=_0x27112c+_0x3cb1f1(0x1bb)),await y({'cwd':Z,'port':_0x3b3584&&_0x3b3584['port']||0xbb8,'iosHostName':_0x3b3584&&_0x3b3584['iosHostName']||_0x27112c,'showMobileUI':_0x3b3584&&_0x3b3584[_0x3cb1f1(0x185)]||!0x1,'previewOnZalo':_0x3b3584&&_0x3b3584[_0x3cb1f1(0x1a8)]||!0x1,'ios':_0x3b3584&&_0x3b3584['ios']||!0x1,'mode':_0x3b3584&&_0x3b3584[_0x3cb1f1(0x190)],'frame':!!_0x3b3584&&(void 0x0===_0x3b3584[_0x3cb1f1(0x1c3)]||null===_0x3b3584[_0x3cb1f1(0x1c3)])||_0x3b3584[_0x3cb1f1(0x1c3)],'deviceMode':_0x3b3584&&_0x3b3584[_0x3cb1f1(0x17e)]||!0x1},S),process[_0x3cb1f1(0x1bf)](0x0);}),i['usage']('<command>\x20[options]')[_0x1741a8(0x18e)]('build')[_0x1741a8(0x1b2)](_0x1741a8(0x1ac),_0x1741a8(0x19d))[_0x1741a8(0x1ae)](_0x1741a8(0x189))['action'](async _0x29f27e=>{const _0x330d54=_0x1741a8;p(Z)||(c[_0x330d54(0x17b)](s[_0x330d54(0x188)]+_0x330d54(0x1d5)),process[_0x330d54(0x1bf)](0x1)),await w({'cwd':Z,'mode':_0x29f27e&&_0x29f27e[_0x330d54(0x190)]},S),process[_0x330d54(0x1bf)](0x0);}),i['usage'](_0x1741a8(0x17f))[_0x1741a8(0x18e)](_0x1741a8(0x1af))[_0x1741a8(0x1b2)](_0x1741a8(0x1ac),'Env\x20mode')[_0x1741a8(0x1b2)](_0x1741a8(0x181),_0x1741a8(0x192))[_0x1741a8(0x1b2)]('-e,\x20--existing',_0x1741a8(0x19c))['option']('-t,\x20--testing',_0x1741a8(0x1d4))[_0x1741a8(0x1b2)](_0x1741a8(0x177),_0x1741a8(0x187))['option']('-o,\x20--outputDir\x20<output>','Output\x20folder.\x20Default\x20www')[_0x1741a8(0x1b2)]('-P,\x20--port\x20<n>',_0x1741a8(0x175),parseInt)[_0x1741a8(0x1ae)](_0x1741a8(0x184))[_0x1741a8(0x1cc)](async _0x31e0c9=>{const _0x465988=_0x1741a8;let _0x23daf4=p(Z),_0x12315b=_0x31e0c9;_0x31e0c9[_0x465988(0x1d3)]?_0x12315b[_0x465988(0x1b8)]=!0x0:_0x31e0c9[_0x465988(0x186)]||(_0x12315b=await d(_0x23daf4)),_0x31e0c9[_0x465988(0x19a)]&&(_0x12315b['versionStatus']=j['TESTING']),_0x12315b[_0x465988(0x194)]&&process['exit'](0x1),await v({'cwd':Z,'mode':_0x31e0c9&&_0x31e0c9[_0x465988(0x190)],..._0x12315b},S),process[_0x465988(0x1bf)](0x0);}),i['usage'](_0x1741a8(0x17f))[_0x1741a8(0x18e)](_0x1741a8(0x197))[_0x1741a8(0x1b2)](_0x1741a8(0x176),_0x1741a8(0x18d))[_0x1741a8(0x1ae)](_0x1741a8(0x1b9))[_0x1741a8(0x1cc)](async(_0x57fe2a,_0x37a582)=>{const _0x3136db=_0x1741a8;await f({'source':_0x57fe2a,..._0x37a582},S),process[_0x3136db(0x1bf)](0x0);}),i[_0x1741a8(0x1c5)]('<command>\x20[options]')[_0x1741a8(0x18e)](_0x1741a8(0x193))[_0x1741a8(0x1cc)](async function(){const _0x22625e=_0x1741a8;let _0x445382=p(Z);_0x445382||(S[_0x22625e(0x17b)](s[_0x22625e(0x188)]+_0x22625e(0x1d5)),process[_0x22625e(0x1bf)](0x1));let _0x58b592=await m();await q({'cwd':Z,..._0x58b592,..._0x445382},S),process[_0x22625e(0x1bf)](0x0);}),i['on'](_0x1741a8(0x179),_0x49cbb3=>{const _0x24fd76=_0x1741a8;i[_0x24fd76(0x1ad)](),c[_0x24fd76(0x17b)](_0x24fd76(0x1c9)+_0x49cbb3);}),i[_0x1741a8(0x18c)](process[_0x1741a8(0x1a1)]),i[_0x1741a8(0x1c4)][_0x1741a8(0x1cb)]||i[_0x1741a8(0x1ad)]();
package/login/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function _0x2a6f(_0x12ceb8,_0x274ab5){const _0x343831=_0x3438();return _0x2a6f=function(_0x2a6f9e,_0x4d3089){_0x2a6f9e=_0x2a6f9e-0x111;let _0x39891e=_0x343831[_0x2a6f9e];return _0x39891e;},_0x2a6f(_0x12ceb8,_0x274ab5);}const _0x36ba78=_0x2a6f;(function(_0x8386ab,_0x45e0fd){const _0x30060c=_0x2a6f,_0x45a174=_0x8386ab();while(!![]){try{const _0x3dd2b0=parseInt(_0x30060c(0x12f))/0x1*(parseInt(_0x30060c(0x114))/0x2)+-parseInt(_0x30060c(0x11d))/0x3+-parseInt(_0x30060c(0x12a))/0x4*(-parseInt(_0x30060c(0x125))/0x5)+-parseInt(_0x30060c(0x135))/0x6*(-parseInt(_0x30060c(0x141))/0x7)+-parseInt(_0x30060c(0x12c))/0x8*(parseInt(_0x30060c(0x14a))/0x9)+-parseInt(_0x30060c(0x147))/0xa+parseInt(_0x30060c(0x13e))/0xb*(parseInt(_0x30060c(0x130))/0xc);if(_0x3dd2b0===_0x45e0fd)break;else _0x45a174['push'](_0x45a174['shift']());}catch(_0x339a68){_0x45a174['push'](_0x45a174['shift']());}}}(_0x3438,0xabe75));function _0x3438(){const _0x42ddec=['log-symbols','api_domain','1507DdQKus','getEnv','gray','7zAstmq','stringify','start','info','request_timeout','setEnv','10603170iHEiWe','loginMethod','error_code','1940247vxWoWs','exports','../utils/axios','error_msg','2reRfrK','token','application/x-www-form-urlencoded','jsonwebtoken','./utils/zalo-login','no-cache','Token\x20Invalid!','bold','statusDone','1281327rLmIMP','stop','chalk','catch','loginUrl','Login\x20Success!','\x20(Time\x20out\x20after\x20','error','1035195NeFOLE','POST','permission_denied','qrcode-terminal','statusStart','16ZgowjT','Login\x20failed!','8sDqOji','env','text','15613kjMShr','68520HzvGzf','data','appId','then','err','4686522lccPBO','zalo','zmpsk','generate','getQRCode','login','msg'];_0x3438=function(){return _0x42ddec;};return _0x3438();}const e=require(_0x36ba78(0x11f)),t=require('ora'),r=require(_0x36ba78(0x117)),a=require(_0x36ba78(0x128)),n=require(_0x36ba78(0x13c)),o=require('../config'),s=require('../utils/env'),i=require('../utils/log'),u=require(_0x36ba78(0x118)),{axiosClient:l}=require(_0x36ba78(0x112)),c=require('qs'),d=e[_0x36ba78(0x140)]('Login...'),p=t(d);module[_0x36ba78(0x111)]=async(_0x5111a8={},_0x5f39c9)=>{const _0x115756=_0x36ba78;let _0x129589;_0x5f39c9||(_0x5f39c9={'statusStart'(){},'statusDone'(){},'statusText'(){},'statusError'(){},'text'(){},'error'(){}}),_0x5f39c9[_0x115756(0x129)](d),p[_0x115756(0x143)]();let _0x5da290=_0x5111a8[_0x115756(0x148)],_0x1c8389=_0x5111a8[_0x115756(0x132)]||s[_0x115756(0x13f)](o[_0x115756(0x12d)]['appId']),_0x1a9df5=_0x5111a8[_0x115756(0x115)],_0x3a62eb=''+o[_0x115756(0x13d)]+o['path'][_0x115756(0x13a)];try{if(p[_0x115756(0x143)](),_0x115756(0x136)===_0x5da290){let _0xd73097;await new Promise((_0x728435,_0x1dfdd5)=>{const _0x2673ad=_0x115756;u[_0x2673ad(0x139)](_0x1c8389)[_0x2673ad(0x133)](function(_0x50edb5){const _0xb5336f=_0x2673ad;p[_0xb5336f(0x11e)]();let _0x32ad96=_0x50edb5['data'];if(!_0x32ad96||_0x32ad96[_0xb5336f(0x134)]<0x0)return _0x1dfdd5(Error(_0x32ad96[_0xb5336f(0x13b)]));let _0x2d2552=_0x32ad96[_0xb5336f(0x131)]&&_0x32ad96[_0xb5336f(0x131)][_0xb5336f(0x121)];return _0xd73097=_0x32ad96['data']&&_0x32ad96[_0xb5336f(0x131)][_0xb5336f(0x137)],a[_0xb5336f(0x138)](_0x2d2552,{'small':!0x0},function(_0x576e11){const _0x5e4f05=_0xb5336f;let _0x1fb299=n[_0x5e4f05(0x144)]+'\x20'+e[_0x5e4f05(0x11b)]('Scan\x20the\x20QR\x20code\x20with\x20Zalo\x20app:\x0a'+_0x576e11);_0x5f39c9[_0x5e4f05(0x12e)](_0x1fb299);}),s['setEnv'](o['env'][_0xb5336f(0x132)],_0x1c8389),_0x728435();})['catch'](function(_0x265713){return p['stop'](),_0x1dfdd5(_0x265713);});}),await new Promise((_0x4e2b71,_0xaf8707)=>{const _0x227c09=_0x115756;if(!_0xd73097)return _0xaf8707(Error(_0x227c09(0x11a)));let _0xc11d31=0x0;_0x129589=setInterval(()=>{const _0x30eb15=_0x227c09;if(_0x5f39c9['statusText'](d+_0x30eb15(0x123)+(0x3c-_0xc11d31)+'s)'),_0xc11d31>0x3c)return clearInterval(_0x129589),_0xaf8707(Error(o[_0x30eb15(0x113)][_0x30eb15(0x145)]));_0xc11d31++,u['checkStatus'](_0xd73097)['then'](function(_0x288567){const _0x31a80a=_0x30eb15;p[_0x31a80a(0x11e)]();let _0x10fefb=_0x288567[_0x31a80a(0x131)];if(_0x10fefb&&_0x10fefb[_0x31a80a(0x134)]===o[_0x31a80a(0x149)][_0x31a80a(0x127)])return clearInterval(_0x129589),_0xaf8707(Error(o[_0x31a80a(0x113)][_0x31a80a(0x127)]));if(_0x10fefb&&_0x10fefb[_0x31a80a(0x134)]===o[_0x31a80a(0x149)][_0x31a80a(0x145)])return clearInterval(_0x129589),_0xaf8707(Error(o[_0x31a80a(0x113)]['request_timeout']));if(_0x10fefb&&_0x10fefb['err']>=0x0){clearInterval(_0x129589);let _0x79c642=_0x10fefb[_0x31a80a(0x131)]&&_0x10fefb['data']['jwt'];return s[_0x31a80a(0x146)](o[_0x31a80a(0x12d)]['token'],_0x79c642),_0x5f39c9[_0x31a80a(0x11c)](_0x31a80a(0x122)),_0x4e2b71();}})[_0x30eb15(0x120)](function(_0x2f18d7){const _0x2a9d6c=_0x30eb15;return clearInterval(_0x129589),p[_0x2a9d6c(0x11e)](),_0xaf8707(_0x2f18d7);});},0x7d0);});}else await new Promise((_0x1d4943,_0x4b7e4e)=>{const _0x5accf8=_0x115756;l({'url':_0x3a62eb,'method':_0x5accf8(0x126),'headers':{'cache-control':_0x5accf8(0x119),'content-type':_0x5accf8(0x116)},'data':c[_0x5accf8(0x142)]({'accessToken':_0x1a9df5,'appId':_0x1c8389}),'withCredentials':!0x0})[_0x5accf8(0x133)](function(_0x3e0652){const _0x33fb77=_0x5accf8;p[_0x33fb77(0x11e)]();let _0x4e5d77=_0x3e0652[_0x33fb77(0x131)];if(!_0x4e5d77||_0x4e5d77[_0x33fb77(0x134)]<0x0)return _0x4b7e4e(Error(_0x4e5d77[_0x33fb77(0x13b)]));let _0xade1d5=_0x4e5d77['data']&&_0x4e5d77[_0x33fb77(0x131)]['jwt'];try{let _0xed97dd=r['decode'](_0xade1d5);s[_0x33fb77(0x146)](o[_0x33fb77(0x12d)][_0x33fb77(0x132)],_0xed97dd[_0x33fb77(0x132)]),s[_0x33fb77(0x146)](o[_0x33fb77(0x12d)][_0x33fb77(0x115)],_0xade1d5);}catch(_0x4f486c){return _0x4b7e4e(_0x4f486c);}return _0x5f39c9[_0x33fb77(0x11c)](_0x33fb77(0x122)),_0x1d4943();})[_0x5accf8(0x120)](function(_0x495c7a){const _0x4c41cd=_0x5accf8;return p[_0x4c41cd(0x11e)](),_0x4b7e4e(_0x495c7a);});});}catch(_0x173147){_0x5f39c9['statusError'](_0x115756(0x12b)),i[_0x115756(0x124)](_0x173147['stderr']||_0x173147);return;}};
1
+ 'use strict';function _0x2405(_0x1d6dd6,_0x21469b){const _0x37c03b=_0x37c0();return _0x2405=function(_0x2405a3,_0x2875c1){_0x2405a3=_0x2405a3-0x1d0;let _0x51d749=_0x37c03b[_0x2405a3];return _0x51d749;},_0x2405(_0x1d6dd6,_0x21469b);}const _0x39b2bf=_0x2405;(function(_0x2eb63d,_0x3d3c17){const _0x7f0b1d=_0x2405,_0x588b2b=_0x2eb63d();while(!![]){try{const _0x2804f0=parseInt(_0x7f0b1d(0x1d5))/0x1+parseInt(_0x7f0b1d(0x1eb))/0x2+-parseInt(_0x7f0b1d(0x1f4))/0x3+-parseInt(_0x7f0b1d(0x1da))/0x4+parseInt(_0x7f0b1d(0x1f0))/0x5+parseInt(_0x7f0b1d(0x204))/0x6+parseInt(_0x7f0b1d(0x1d9))/0x7*(parseInt(_0x7f0b1d(0x1e2))/0x8);if(_0x2804f0===_0x3d3c17)break;else _0x588b2b['push'](_0x588b2b['shift']());}catch(_0x49a19c){_0x588b2b['push'](_0x588b2b['shift']());}}}(_0x37c0,0x92591));function _0x37c0(){const _0x2f6606=['env','setEnv','Token\x20Invalid!','../utils/axios','651756OchmVu','appId','err','stringify','Scan\x20the\x20QR\x20code\x20with\x20Zalo\x20app:\x0a','POST','statusText','request_timeout','jsonwebtoken','../config','55787rUppHC','error_code','error','generate','3346uzisGQ','1154796cQWnUn','decode','exports','info','\x20(Time\x20out\x20after\x20','getEnv','error_msg','bold','648JzwdtH','checkStatus','login','chalk','zmpsk','permission_denied','start','catch','msg','1296840BcuBmi','text','then','stderr','token','3034600OlnMkD','./utils/zalo-login','data','statusDone','1710993hLDAjZ','gray','application/x-www-form-urlencoded','getQRCode','Login\x20failed!','ora','stop','jwt','loginMethod','api_domain','Login\x20Success!','no-cache'];_0x37c0=function(){return _0x2f6606;};return _0x37c0();}const e=require(_0x39b2bf(0x1e5)),t=require(_0x39b2bf(0x1f9)),r=require(_0x39b2bf(0x1d3)),a=require('qrcode-terminal'),n=require('log-symbols'),o=require(_0x39b2bf(0x1d4)),s=require('../utils/env'),i=require('../utils/log'),u=require(_0x39b2bf(0x1f1)),{axiosClient:l}=require(_0x39b2bf(0x203)),c=require('qs'),d=e[_0x39b2bf(0x1f5)]('Login...'),p=t(d);module[_0x39b2bf(0x1dc)]=async(_0x4a5ab5={},_0xc5cff1)=>{const _0x2abf05=_0x39b2bf;let _0x56facd;_0xc5cff1||(_0xc5cff1={'statusStart'(){},'statusDone'(){},'statusText'(){},'statusError'(){},'text'(){},'error'(){}}),_0xc5cff1['statusStart'](d),p['start']();let _0x522ead=_0x4a5ab5[_0x2abf05(0x1fc)],_0x242306=_0x4a5ab5['appId']||s[_0x2abf05(0x1df)](o[_0x2abf05(0x200)][_0x2abf05(0x205)]),_0x5283cf=_0x4a5ab5[_0x2abf05(0x1ef)],_0x25c949=''+o[_0x2abf05(0x1fd)]+o['path'][_0x2abf05(0x1e4)];try{if(p[_0x2abf05(0x1e8)](),'zalo'===_0x522ead){let _0x3a720d;await new Promise((_0x63773a,_0x4566d6)=>{const _0x26ae67=_0x2abf05;u[_0x26ae67(0x1f7)](_0x242306)['then'](function(_0x8622da){const _0x96108=_0x26ae67;p[_0x96108(0x1fa)]();let _0x1dbeb1=_0x8622da[_0x96108(0x1f2)];if(!_0x1dbeb1||_0x1dbeb1[_0x96108(0x206)]<0x0)return _0x4566d6(Error(_0x1dbeb1[_0x96108(0x1ea)]));let _0x1d9e94=_0x1dbeb1['data']&&_0x1dbeb1[_0x96108(0x1f2)]['loginUrl'];return _0x3a720d=_0x1dbeb1['data']&&_0x1dbeb1[_0x96108(0x1f2)][_0x96108(0x1e6)],a[_0x96108(0x1d8)](_0x1d9e94,{'small':!0x0},function(_0x46f1a2){const _0x532612=_0x96108;let _0x51423a=n[_0x532612(0x1dd)]+'\x20'+e[_0x532612(0x1e1)](_0x532612(0x208)+_0x46f1a2);_0xc5cff1[_0x532612(0x1ec)](_0x51423a);}),s['setEnv'](o[_0x96108(0x200)][_0x96108(0x205)],_0x242306),_0x63773a();})[_0x26ae67(0x1e9)](function(_0x2b2a57){const _0x1353f2=_0x26ae67;return p[_0x1353f2(0x1fa)](),_0x4566d6(_0x2b2a57);});}),await new Promise((_0x34cf99,_0x3f9573)=>{const _0x1fc938=_0x2abf05;if(!_0x3a720d)return _0x3f9573(Error(_0x1fc938(0x202)));let _0x185042=0x0;_0x56facd=setInterval(()=>{const _0x473ce0=_0x1fc938;if(_0xc5cff1[_0x473ce0(0x1d1)](d+_0x473ce0(0x1de)+(0x3c-_0x185042)+'s)'),_0x185042>0x3c)return clearInterval(_0x56facd),_0x3f9573(Error(o[_0x473ce0(0x1e0)]['request_timeout']));_0x185042++,u[_0x473ce0(0x1e3)](_0x3a720d)[_0x473ce0(0x1ed)](function(_0x39ca40){const _0x3b72dd=_0x473ce0;p[_0x3b72dd(0x1fa)]();let _0x42e20d=_0x39ca40[_0x3b72dd(0x1f2)];if(_0x42e20d&&_0x42e20d['err']===o[_0x3b72dd(0x1d6)][_0x3b72dd(0x1e7)])return clearInterval(_0x56facd),_0x3f9573(Error(o['error_msg'][_0x3b72dd(0x1e7)]));if(_0x42e20d&&_0x42e20d[_0x3b72dd(0x206)]===o[_0x3b72dd(0x1d6)]['request_timeout'])return clearInterval(_0x56facd),_0x3f9573(Error(o[_0x3b72dd(0x1e0)][_0x3b72dd(0x1d2)]));if(_0x42e20d&&_0x42e20d['err']>=0x0){clearInterval(_0x56facd);let _0x216935=_0x42e20d[_0x3b72dd(0x1f2)]&&_0x42e20d[_0x3b72dd(0x1f2)]['jwt'];return s[_0x3b72dd(0x201)](o[_0x3b72dd(0x200)][_0x3b72dd(0x1ef)],_0x216935),_0xc5cff1[_0x3b72dd(0x1f3)](_0x3b72dd(0x1fe)),_0x34cf99();}})[_0x473ce0(0x1e9)](function(_0x338db7){const _0x3baf13=_0x473ce0;return clearInterval(_0x56facd),p[_0x3baf13(0x1fa)](),_0x3f9573(_0x338db7);});},0x7d0);});}else await new Promise((_0x5e2bc8,_0x3d8fd6)=>{const _0x3678ec=_0x2abf05;l({'url':_0x25c949,'method':_0x3678ec(0x1d0),'headers':{'cache-control':_0x3678ec(0x1ff),'content-type':_0x3678ec(0x1f6)},'data':c[_0x3678ec(0x207)]({'accessToken':_0x5283cf,'appId':_0x242306}),'withCredentials':!0x0})[_0x3678ec(0x1ed)](function(_0x5a318d){const _0x14e7f7=_0x3678ec;p[_0x14e7f7(0x1fa)]();let _0x2d968a=_0x5a318d['data'];if(!_0x2d968a||_0x2d968a[_0x14e7f7(0x206)]<0x0)return _0x3d8fd6(Error(_0x2d968a[_0x14e7f7(0x1ea)]));let _0x2140fc=_0x2d968a['data']&&_0x2d968a['data'][_0x14e7f7(0x1fb)];try{let _0x28cb0c=r[_0x14e7f7(0x1db)](_0x2140fc);s[_0x14e7f7(0x201)](o['env']['appId'],_0x28cb0c[_0x14e7f7(0x205)]),s[_0x14e7f7(0x201)](o['env'][_0x14e7f7(0x1ef)],_0x2140fc);}catch(_0x472556){return _0x3d8fd6(_0x472556);}return _0xc5cff1[_0x14e7f7(0x1f3)](_0x14e7f7(0x1fe)),_0x5e2bc8();})['catch'](function(_0x56f466){const _0x5bab65=_0x3678ec;return p[_0x5bab65(0x1fa)](),_0x3d8fd6(_0x56f466);});});}catch(_0x3ad825){_0xc5cff1['statusError'](_0x2abf05(0x1f8)),i[_0x2abf05(0x1d7)](_0x3ad825[_0x2abf05(0x1ee)]||_0x3ad825);return;}};
@@ -1 +1 @@
1
- 'use strict';const _0x2fbde2=_0x2ff9;(function(_0x1c85f2,_0x592b1f){const _0x1e1144=_0x2ff9,_0x3c7527=_0x1c85f2();while(!![]){try{const _0x2055f5=parseInt(_0x1e1144(0xe3))/0x1+-parseInt(_0x1e1144(0xd6))/0x2+parseInt(_0x1e1144(0xdc))/0x3+parseInt(_0x1e1144(0xdd))/0x4+-parseInt(_0x1e1144(0xdb))/0x5*(-parseInt(_0x1e1144(0xe5))/0x6)+-parseInt(_0x1e1144(0xee))/0x7*(parseInt(_0x1e1144(0xe1))/0x8)+parseInt(_0x1e1144(0xd9))/0x9*(-parseInt(_0x1e1144(0xe7))/0xa);if(_0x2055f5===_0x592b1f)break;else _0x3c7527['push'](_0x3c7527['shift']());}catch(_0x15783c){_0x3c7527['push'](_0x3c7527['shift']());}}}(_0xe00d,0x1c7aa));function _0x2ff9(_0x439721,_0x39842b){const _0xe00dd3=_0xe00d();return _0x2ff9=function(_0x2ff9db,_0x27cd8b){_0x2ff9db=_0x2ff9db-0xd5;let _0x2814f2=_0xe00dd3[_0x2ff9db];return _0x2814f2;},_0x2ff9(_0x439721,_0x39842b);}function _0xe00d(){const _0x34e0f4=['loginMethod','Login\x20method\x20is\x20required!','27207JIMWWR','env','195HDlgzP','120174luCmVl','529892WOqiPA','appId','getEnv','inquirer','58728vQcZzI','accessToken','153461ErHxur','Zalo\x20Access\x20Token:','30954WcuFdY','exports','670tRglAy','2.\x20Login\x20With\x20App\x20Access\x20Token','1.\x20Login\x20Via\x20QR\x20Code\x20With\x20Zalo\x20App','Mini\x20App\x20ID:','input','../../utils/env','zalo','56nrIivG','../../config','length','298548UxQgzW'];_0xe00d=function(){return _0x34e0f4;};return _0xe00d();}const e=require(_0x2fbde2(0xe0)),i=require(_0x2fbde2(0xec)),o=require(_0x2fbde2(0xef));module[_0x2fbde2(0xe6)]=function(){const _0x3112af=_0x2fbde2;let _0x346297=[{'type':_0x3112af(0xeb),'name':_0x3112af(0xde),'message':_0x3112af(0xea),'when':()=>!i[_0x3112af(0xdf)](o[_0x3112af(0xda)][_0x3112af(0xde)]),'validate':_0x28ea96=>new Promise((_0x460370,_0x4b01e6)=>{_0x28ea96?_0x460370(!0x0):_0x4b01e6(Error('Mimi\x20App\x20ID\x20is\x20required'));})},{'type':'list','name':'loginMethod','message':'Choose\x20a\x20Login\x20Method','choices':[{'name':_0x3112af(0xe9),'value':_0x3112af(0xed)},{'name':_0x3112af(0xe8),'value':_0x3112af(0xe2)}],'validate':_0x1d6ffc=>new Promise((_0x5ed047,_0xc3f9d4)=>{const _0x2914fa=_0x3112af;_0x1d6ffc&&_0x1d6ffc[_0x2914fa(0xd5)]?_0x5ed047(!0x0):_0xc3f9d4(Error(_0x2914fa(0xd8)));})},{'type':'input','name':'token','message':_0x3112af(0xe4),'when':_0x46bf43=>_0x3112af(0xe2)===_0x46bf43[_0x3112af(0xd7)],'validate':_0x3a5d4a=>new Promise((_0x53d490,_0x396456)=>{_0x3a5d4a?_0x53d490(!0x0):_0x396456(Error('Zalo\x20Access\x20Token\x20is\x20required'));})}];return e['prompt'](_0x346297)['then'](_0x34879e=>Promise['resolve'](_0x34879e));};
1
+ 'use strict';const _0x25f22a=_0x3613;function _0x2d64(){const _0xe562e7=['input','Mini\x20App\x20ID:','7813092LsOadi','86198zmsFIB','500475iBftZU','13332231jCqKIc','then','Choose\x20a\x20Login\x20Method','95435wElmrc','accessToken','loginMethod','672PNSHwF','list','env','zalo','1.\x20Login\x20Via\x20QR\x20Code\x20With\x20Zalo\x20App','2.\x20Login\x20With\x20App\x20Access\x20Token','../../utils/env','922fClZid','appId','inquirer','6934044yesIIE','Zalo\x20Access\x20Token\x20is\x20required','prompt','resolve','9657pEUucR'];_0x2d64=function(){return _0xe562e7;};return _0x2d64();}(function(_0x5497f3,_0x23547e){const _0x4f9a73=_0x3613,_0x25b70c=_0x5497f3();while(!![]){try{const _0x1769e6=-parseInt(_0x4f9a73(0xdd))/0x1+-parseInt(_0x4f9a73(0xd1))/0x2*(-parseInt(_0x4f9a73(0xd8))/0x3)+-parseInt(_0x4f9a73(0xd4))/0x4+-parseInt(_0x4f9a73(0xc7))/0x5+parseInt(_0x4f9a73(0xdb))/0x6+-parseInt(_0x4f9a73(0xdc))/0x7*(parseInt(_0x4f9a73(0xca))/0x8)+parseInt(_0x4f9a73(0xde))/0x9;if(_0x1769e6===_0x23547e)break;else _0x25b70c['push'](_0x25b70c['shift']());}catch(_0x2c6d68){_0x25b70c['push'](_0x25b70c['shift']());}}}(_0x2d64,0xef453));function _0x3613(_0xc1ab37,_0x1e20a0){const _0x2d64ff=_0x2d64();return _0x3613=function(_0x361353,_0x2f8965){_0x361353=_0x361353-0xc6;let _0x5a8f23=_0x2d64ff[_0x361353];return _0x5a8f23;},_0x3613(_0xc1ab37,_0x1e20a0);}const e=require(_0x25f22a(0xd3)),i=require(_0x25f22a(0xd0)),o=require('../../config');module['exports']=function(){const _0x4d4727=_0x25f22a;let _0x5812dd=[{'type':_0x4d4727(0xd9),'name':_0x4d4727(0xd2),'message':_0x4d4727(0xda),'when':()=>!i['getEnv'](o[_0x4d4727(0xcc)][_0x4d4727(0xd2)]),'validate':_0x2c3a00=>new Promise((_0xdd6530,_0x62210b)=>{_0x2c3a00?_0xdd6530(!0x0):_0x62210b(Error('Mimi\x20App\x20ID\x20is\x20required'));})},{'type':_0x4d4727(0xcb),'name':'loginMethod','message':_0x4d4727(0xc6),'choices':[{'name':_0x4d4727(0xce),'value':_0x4d4727(0xcd)},{'name':_0x4d4727(0xcf),'value':_0x4d4727(0xc8)}],'validate':_0x123f15=>new Promise((_0x19c16b,_0x597312)=>{_0x123f15&&_0x123f15['length']?_0x19c16b(!0x0):_0x597312(Error('Login\x20method\x20is\x20required!'));})},{'type':_0x4d4727(0xd9),'name':'token','message':'Zalo\x20Access\x20Token:','when':_0x473618=>_0x4d4727(0xc8)===_0x473618[_0x4d4727(0xc9)],'validate':_0x499cea=>new Promise((_0x24d97c,_0x1eb0de)=>{const _0x4a9465=_0x4d4727;_0x499cea?_0x24d97c(!0x0):_0x1eb0de(Error(_0x4a9465(0xd5)));})}];return e[_0x4d4727(0xd6)](_0x5812dd)[_0x4d4727(0xdf)](_0x1dce00=>Promise[_0x4d4727(0xd7)](_0x1dce00));};
@@ -1 +1 @@
1
- 'use strict';const _0x458784=_0x5bbd;(function(_0x2fd812,_0x2541a8){const _0x19eea0=_0x5bbd,_0x67a8a3=_0x2fd812();while(!![]){try{const _0xc1f611=-parseInt(_0x19eea0(0x15a))/0x1*(parseInt(_0x19eea0(0x16b))/0x2)+parseInt(_0x19eea0(0x15e))/0x3*(-parseInt(_0x19eea0(0x167))/0x4)+-parseInt(_0x19eea0(0x168))/0x5*(parseInt(_0x19eea0(0x15d))/0x6)+-parseInt(_0x19eea0(0x161))/0x7*(parseInt(_0x19eea0(0x165))/0x8)+-parseInt(_0x19eea0(0x162))/0x9+parseInt(_0x19eea0(0x15c))/0xa+parseInt(_0x19eea0(0x16a))/0xb;if(_0xc1f611===_0x2541a8)break;else _0x67a8a3['push'](_0x67a8a3['shift']());}catch(_0x5528c4){_0x67a8a3['push'](_0x67a8a3['shift']());}}}(_0x3a55,0x41e8a));function _0x5bbd(_0xedf91d,_0x2f24d3){const _0x3a5549=_0x3a55();return _0x5bbd=function(_0x5bbd48,_0x292f35){_0x5bbd48=_0x5bbd48-0x15a;let _0x52ed1d=_0x3a5549[_0x5bbd48];return _0x52ed1d;},_0x5bbd(_0xedf91d,_0x2f24d3);}function _0x3a55(){const _0x443f1f=['6eUWOML','266838pEehFU','no-cache','checkLoginStatus','193382vbbKxz','3633237nnxKDR','api_domain','../../config','112dhJqXm','requestLogin','20wBvneS','1672340hHraWP','path','21751565xSoVWU','107434RTstVA','get','4HYPGDC','?zmpsk=','770700hUVUfg'];_0x3a55=function(){return _0x443f1f;};return _0x3a55();}const e=require(_0x458784(0x164)),{axiosClient:t}=require('../../utils/axios');module['exports']=(function(){const _0x1b5bc6=_0x458784;let _0x37d8af=''+e[_0x1b5bc6(0x163)]+e[_0x1b5bc6(0x169)][_0x1b5bc6(0x166)],_0x3541af=''+e[_0x1b5bc6(0x163)]+e[_0x1b5bc6(0x169)][_0x1b5bc6(0x160)];return{'getQRCode':_0xebe437=>t({'method':_0x1b5bc6(0x16c),'url':_0x37d8af+'?appId='+_0xebe437,'headers':{'cache-control':_0x1b5bc6(0x15f)},'withCredentials':!0x0}),'checkStatus':_0x588edc=>t({'method':_0x1b5bc6(0x16c),'url':_0x3541af+_0x1b5bc6(0x15b)+_0x588edc,'headers':{'cache-control':_0x1b5bc6(0x15f)},'withCredentials':!0x0})};}());
1
+ 'use strict';const _0x196e91=_0x19e2;(function(_0x5dec86,_0x5bee2c){const _0x5d6d10=_0x19e2,_0x26ddd8=_0x5dec86();while(!![]){try{const _0x4003d5=-parseInt(_0x5d6d10(0x13f))/0x1+-parseInt(_0x5d6d10(0x14a))/0x2*(parseInt(_0x5d6d10(0x148))/0x3)+parseInt(_0x5d6d10(0x147))/0x4*(-parseInt(_0x5d6d10(0x141))/0x5)+-parseInt(_0x5d6d10(0x142))/0x6+parseInt(_0x5d6d10(0x146))/0x7*(-parseInt(_0x5d6d10(0x14e))/0x8)+parseInt(_0x5d6d10(0x14c))/0x9*(parseInt(_0x5d6d10(0x140))/0xa)+parseInt(_0x5d6d10(0x144))/0xb;if(_0x4003d5===_0x5bee2c)break;else _0x26ddd8['push'](_0x26ddd8['shift']());}catch(_0x38acc2){_0x26ddd8['push'](_0x26ddd8['shift']());}}}(_0x4f4b,0xa0d25));function _0x4f4b(){const _0x593a6e=['4411652NTxjSG','3pDOeXU','get','605192PqOUVb','no-cache','176481JTsjFY','path','8BjcOzX','checkLoginStatus','api_domain','681944WXlodc','410okbhYA','5RmXTEi','1057692YNfrHv','?zmpsk=','27615632VUKfjQ','exports','2744147GIDQPZ'];_0x4f4b=function(){return _0x593a6e;};return _0x4f4b();}function _0x19e2(_0x2dcdbf,_0xd7a8da){const _0x4f4b7a=_0x4f4b();return _0x19e2=function(_0x19e2d6,_0x59a10b){_0x19e2d6=_0x19e2d6-0x13e;let _0x48336f=_0x4f4b7a[_0x19e2d6];return _0x48336f;},_0x19e2(_0x2dcdbf,_0xd7a8da);}const e=require('../../config'),{axiosClient:t}=require('../../utils/axios');module[_0x196e91(0x145)]=(function(){const _0xe531a8=_0x196e91;let _0x55d652=''+e['api_domain']+e['path']['requestLogin'],_0x43775b=''+e[_0xe531a8(0x13e)]+e[_0xe531a8(0x14d)][_0xe531a8(0x14f)];return{'getQRCode':_0x53f80c=>t({'method':'get','url':_0x55d652+'?appId='+_0x53f80c,'headers':{'cache-control':_0xe531a8(0x14b)},'withCredentials':!0x0}),'checkStatus':_0x1c5ecc=>t({'method':_0xe531a8(0x149),'url':_0x43775b+_0xe531a8(0x143)+_0x1c5ecc,'headers':{'cache-control':_0xe531a8(0x14b)},'withCredentials':!0x0})};}());
@@ -1 +1 @@
1
- 'use strict';const _0x10a3c8=_0x4634;(function(_0x7a347a,_0x22e87d){const _0x1f8de4=_0x4634,_0x47c708=_0x7a347a();while(!![]){try{const _0x47b7dd=-parseInt(_0x1f8de4(0xae))/0x1+parseInt(_0x1f8de4(0xc1))/0x2*(parseInt(_0x1f8de4(0xb4))/0x3)+parseInt(_0x1f8de4(0xb3))/0x4+-parseInt(_0x1f8de4(0xb1))/0x5*(parseInt(_0x1f8de4(0xbb))/0x6)+parseInt(_0x1f8de4(0xbd))/0x7+-parseInt(_0x1f8de4(0xb9))/0x8+parseInt(_0x1f8de4(0xb8))/0x9;if(_0x47b7dd===_0x22e87d)break;else _0x47c708['push'](_0x47c708['shift']());}catch(_0x1b1a31){_0x47c708['push'](_0x47c708['shift']());}}}(_0x17e2,0x8db4e));function _0x4634(_0x1287a7,_0xf74a3){const _0x17e2f6=_0x17e2();return _0x4634=function(_0x463469,_0x208510){_0x463469=_0x463469-0xad;let _0xe42842=_0x17e2f6[_0x463469];return _0xe42842;},_0x4634(_0x1287a7,_0xf74a3);}function _0x17e2(){const _0x507a47=['./icons.css','2811599HaAiaV','npm\x20install\x20zmp-framework@latest','copyFileAsync','./src/css/icons.css','34LpbSch','npm\x20install\x20zmp-ui@latest','689488npvgkb','exports','uiFramework','1075555bQqaoz','promise','4460236yWscTD','7716iIyQjv','cwd','resolve','../../utils/fs-extra','6938622MGmqzU','6770952zsWPSo','exec-sh','6KLgpNo'];_0x17e2=function(){return _0x507a47;};return _0x17e2();}const e=require(_0x10a3c8(0xb7)),s=require('path'),r=require(_0x10a3c8(0xba));async function i(_0x56e6b1){const _0x570eda=_0x10a3c8;if('zmp-framework'===_0x56e6b1[_0x570eda(0xb0)])e[_0x570eda(0xbf)](s[_0x570eda(0xb6)](__dirname,_0x570eda(0xbc)),s['resolve'](_0x56e6b1[_0x570eda(0xb5)],_0x570eda(0xc0))),await r[_0x570eda(0xb2)](_0x570eda(0xbe),!0x0);else{if('zmp-ui'!==_0x56e6b1[_0x570eda(0xb0)])return;await r[_0x570eda(0xb2)](_0x570eda(0xad),!0x0);}}module[_0x10a3c8(0xaf)]=i;
1
+ 'use strict';const _0x15df23=_0x2ac4;(function(_0x155f8c,_0x1f9918){const _0x1968d0=_0x2ac4,_0x2ccb1f=_0x155f8c();while(!![]){try{const _0x486ddd=-parseInt(_0x1968d0(0xbd))/0x1*(-parseInt(_0x1968d0(0xba))/0x2)+-parseInt(_0x1968d0(0xc3))/0x3*(parseInt(_0x1968d0(0xb8))/0x4)+parseInt(_0x1968d0(0xc2))/0x5+-parseInt(_0x1968d0(0xb7))/0x6+-parseInt(_0x1968d0(0xb1))/0x7*(-parseInt(_0x1968d0(0xb3))/0x8)+parseInt(_0x1968d0(0xbc))/0x9*(-parseInt(_0x1968d0(0xbe))/0xa)+-parseInt(_0x1968d0(0xb5))/0xb*(-parseInt(_0x1968d0(0xb6))/0xc);if(_0x486ddd===_0x1f9918)break;else _0x2ccb1f['push'](_0x2ccb1f['shift']());}catch(_0x4b8be4){_0x2ccb1f['push'](_0x2ccb1f['shift']());}}}(_0x2592,0x47a4a));function _0x2ac4(_0x50857f,_0xaf37b7){const _0x2592a8=_0x2592();return _0x2ac4=function(_0x2ac473,_0x51206e){_0x2ac473=_0x2ac473-0xb0;let _0x282cfd=_0x2592a8[_0x2ac473];return _0x282cfd;},_0x2ac4(_0x50857f,_0xaf37b7);}function _0x2592(){const _0x39cb45=['1102536peAiel','1136asvdnv','zmp-ui','460582gDVWgz','promise','1719792SniXpO','1vumSvb','20eQBTio','uiFramework','exports','../../utils/fs-extra','1446415bFEyEH','135wxbTzn','resolve','exec-sh','./src/css/icons.css','path','cwd','35CQENra','npm\x20install\x20zmp-ui@latest','50312JOBONr','copyFileAsync','3532573cKbagB','12SXwehq'];_0x2592=function(){return _0x39cb45;};return _0x2592();}const e=require(_0x15df23(0xc1)),s=require(_0x15df23(0xc7)),r=require(_0x15df23(0xc5));async function i(_0x23dd82){const _0x502a67=_0x15df23;if('zmp-framework'===_0x23dd82[_0x502a67(0xbf)])e[_0x502a67(0xb4)](s[_0x502a67(0xc4)](__dirname,'./icons.css'),s[_0x502a67(0xc4)](_0x23dd82[_0x502a67(0xb0)],_0x502a67(0xc6))),await r[_0x502a67(0xbb)]('npm\x20install\x20zmp-framework@latest',!0x0);else{if(_0x502a67(0xb9)!==_0x23dd82[_0x502a67(0xbf)])return;await r[_0x502a67(0xbb)](_0x502a67(0xb2),!0x0);}}module[_0x15df23(0xc0)]=i;
package/migrate/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x37dfb3=_0x5146;(function(_0x59ce41,_0x1398cd){const _0x133696=_0x5146,_0xb8409b=_0x59ce41();while(!![]){try{const _0x4804f6=parseInt(_0x133696(0x90))/0x1+-parseInt(_0x133696(0x9c))/0x2*(parseInt(_0x133696(0xac))/0x3)+parseInt(_0x133696(0xa2))/0x4*(parseInt(_0x133696(0x99))/0x5)+-parseInt(_0x133696(0x8e))/0x6*(parseInt(_0x133696(0x9b))/0x7)+parseInt(_0x133696(0x9a))/0x8+-parseInt(_0x133696(0xa7))/0x9+parseInt(_0x133696(0x97))/0xa*(parseInt(_0x133696(0x9d))/0xb);if(_0x4804f6===_0x1398cd)break;else _0xb8409b['push'](_0xb8409b['shift']());}catch(_0x9299c5){_0xb8409b['push'](_0xb8409b['shift']());}}}(_0x5e6c,0x542eb));function _0x5e6c(){const _0x54f792=['path','cwd','2891610coYTIg','join','exports','../utils/error','statusDone','183NgzURM','text','\x20is\x20not\x20yet\x20supported','3450qboBuV','statusError','506898DNNUWN','green','bold','(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)','log-symbols','filename','\x20Project\x20using\x20ZMP\x20','81580WXRlfV','zmpConfig','1158165vakxAA','900784EDKAEX','5558DXLMUe','5914dtwtcW','297qEnmAl','./utils/migrate-react','Migrating\x20Your\x20App\x20','chalk','Migration\x20error!','8IxFfAi','framework','statusStart'];_0x5e6c=function(){return _0x54f792;};return _0x5e6c();}const r=require(_0x37dfb3(0xa0)),t=require(_0x37dfb3(0xa5)),e=require(_0x37dfb3(0x94)),s=require(_0x37dfb3(0x9e)),{errorExit:a}=require(_0x37dfb3(0xaa)),o=require('../config'),i=r['gray'](_0x37dfb3(0x93));async function u(_0x119c52={},_0x4ff688){const _0x2dc490=_0x37dfb3;let _0xa45c3e=_0x119c52[_0x2dc490(0xa6)]||process['cwd']();_0x4ff688||(_0x4ff688={'statusStart'(){},'statusDone'(){},'statusText'(){},'statusError'(){},'text'(){},'error'(){},'showOnUI'(){}}),_0x4ff688[_0x2dc490(0xa4)](_0x2dc490(0x9f)+i);try{let _0x19eb5b,_0x53d016=require((_0x19eb5b=o[_0x2dc490(0x95)][_0x2dc490(0x98)],t[_0x2dc490(0xa8)](_0xa45c3e,_0x19eb5b)));'react'===_0x53d016['framework']?await s(_0x119c52):(_0x4ff688[_0x2dc490(0xad)](e['error']+_0x2dc490(0x96)+_0x53d016[_0x2dc490(0xa3)]+_0x2dc490(0xae)),process['exit'](0x1)),_0x4ff688[_0x2dc490(0xab)](r[_0x2dc490(0x92)][_0x2dc490(0x91)]('Migration\x20Done!')+'\x20✅');}catch(_0x4cb214){_0x4ff688[_0x2dc490(0x8f)](_0x2dc490(0xa1)),a(_0x4cb214);}}function _0x5146(_0x33dbf2,_0x3ae62b){const _0x5e6c27=_0x5e6c();return _0x5146=function(_0x51460d,_0x1f06a8){_0x51460d=_0x51460d-0x8e;let _0x371ce6=_0x5e6c27[_0x51460d];return _0x371ce6;},_0x5146(_0x33dbf2,_0x3ae62b);}module[_0x37dfb3(0xa9)]=u;
1
+ 'use strict';const _0x5edca9=_0x1c6a;(function(_0xb785c2,_0x5b5e37){const _0x24654e=_0x1c6a,_0x282667=_0xb785c2();while(!![]){try{const _0x420423=parseInt(_0x24654e(0x86))/0x1*(-parseInt(_0x24654e(0x90))/0x2)+-parseInt(_0x24654e(0x8b))/0x3*(parseInt(_0x24654e(0x78))/0x4)+-parseInt(_0x24654e(0x99))/0x5*(parseInt(_0x24654e(0x82))/0x6)+parseInt(_0x24654e(0x77))/0x7*(-parseInt(_0x24654e(0x80))/0x8)+parseInt(_0x24654e(0x7a))/0x9+parseInt(_0x24654e(0x7c))/0xa*(parseInt(_0x24654e(0x76))/0xb)+-parseInt(_0x24654e(0x7e))/0xc*(-parseInt(_0x24654e(0x91))/0xd);if(_0x420423===_0x5b5e37)break;else _0x282667['push'](_0x282667['shift']());}catch(_0x5c639a){_0x282667['push'](_0x282667['shift']());}}}(_0x1ee1,0x9178e));const r=require(_0x5edca9(0x85)),t=require(_0x5edca9(0x87)),e=require(_0x5edca9(0x8c)),s=require('./utils/migrate-react'),{errorExit:a}=require(_0x5edca9(0x79)),o=require(_0x5edca9(0x8e)),i=r[_0x5edca9(0x7d)](_0x5edca9(0x8a));function _0x1c6a(_0xbac52d,_0x1499d0){const _0x1ee1f3=_0x1ee1();return _0x1c6a=function(_0x1c6a49,_0x5374bb){_0x1c6a49=_0x1c6a49-0x75;let _0x11a92e=_0x1ee1f3[_0x1c6a49];return _0x11a92e;},_0x1c6a(_0xbac52d,_0x1499d0);}async function u(_0x2348c5={},_0x58e56b){const _0x3b6de7=_0x5edca9;let _0x84ce68=_0x2348c5[_0x3b6de7(0x96)]||process[_0x3b6de7(0x96)]();_0x58e56b||(_0x58e56b={'statusStart'(){},'statusDone'(){},'statusText'(){},'statusError'(){},'text'(){},'error'(){},'showOnUI'(){}}),_0x58e56b[_0x3b6de7(0x93)](_0x3b6de7(0x95)+i);try{let _0x3c0bbf,_0x53a3ef=require((_0x3c0bbf=o[_0x3b6de7(0x84)][_0x3b6de7(0x9a)],t[_0x3b6de7(0x8f)](_0x84ce68,_0x3c0bbf)));_0x3b6de7(0x83)===_0x53a3ef[_0x3b6de7(0x88)]?await s(_0x2348c5):(_0x58e56b[_0x3b6de7(0x7f)](e[_0x3b6de7(0x75)]+_0x3b6de7(0x97)+_0x53a3ef['framework']+_0x3b6de7(0x7b)),process[_0x3b6de7(0x89)](0x1)),_0x58e56b[_0x3b6de7(0x81)](r[_0x3b6de7(0x94)]['green']('Migration\x20Done!')+'\x20✅');}catch(_0x17ce3f){_0x58e56b[_0x3b6de7(0x8d)](_0x3b6de7(0x92)),a(_0x17ce3f);}}module[_0x5edca9(0x98)]=u;function _0x1ee1(){const _0x108f09=['600scVNTI','statusDone','24FVlxuy','react','filename','chalk','105019IrEDyt','path','framework','exit','(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)','259233WdxQZg','log-symbols','statusError','../config','join','4hJEQHK','351LpSwDT','Migration\x20error!','statusStart','bold','Migrating\x20Your\x20App\x20','cwd','\x20Project\x20using\x20ZMP\x20','exports','183450OBmQCO','zmpConfig','error','88ZLWSkF','19145mKhdij','52awWHZc','../utils/error','7603344GjmzSE','\x20is\x20not\x20yet\x20supported','273390WqZJrS','gray','541152KXNesJ','text'];_0x1ee1=function(){return _0x108f09;};return _0x1ee1();}
@@ -1 +1 @@
1
- 'use strict';function _0x1b5f(){const _0x24a55c=['migrateVersion','v1tov2','1338092ZpOvBZ','Choose\x20which\x20framework\x20or\x20library\x20used\x20in\x20your\x20project','2691quhUXF','iconsv3','inquirer','list','2358643fqEKmI','7250mWsdRP','2801080KeXxMC','exports','Icons\x20(fix\x20icon\x20not\x20displayed\x20in\x20iOS\x20v16+)','836706npdoIg','zmp-framework','1RzyFbh','5RcmVWb','zmp-ui','Other','1600728vCwrJD','other','resolve','What\x20version\x20do\x20you\x20want\x20to\x20migrate?','Version\x201\x20=>\x20Version\x202','644342tPMoUe'];_0x1b5f=function(){return _0x24a55c;};return _0x1b5f();}const _0x1d4fea=_0x2b37;(function(_0x5395c3,_0x5bc4c5){const _0x2169fb=_0x2b37,_0x14fe6d=_0x5395c3();while(!![]){try{const _0x499881=parseInt(_0x2169fb(0x154))/0x1*(-parseInt(_0x2169fb(0x15d))/0x2)+-parseInt(_0x2169fb(0x152))/0x3+parseInt(_0x2169fb(0x160))/0x4*(parseInt(_0x2169fb(0x155))/0x5)+parseInt(_0x2169fb(0x158))/0x6+parseInt(_0x2169fb(0x166))/0x7+-parseInt(_0x2169fb(0x168))/0x8+-parseInt(_0x2169fb(0x162))/0x9*(-parseInt(_0x2169fb(0x167))/0xa);if(_0x499881===_0x5bc4c5)break;else _0x14fe6d['push'](_0x14fe6d['shift']());}catch(_0x51403a){_0x14fe6d['push'](_0x14fe6d['shift']());}}}(_0x1b5f,0x31c33));const e=require(_0x1d4fea(0x164)),r=[{'type':_0x1d4fea(0x165),'name':_0x1d4fea(0x15e),'message':_0x1d4fea(0x15b),'choices':[{'name':_0x1d4fea(0x15c),'value':_0x1d4fea(0x15f)},{'name':_0x1d4fea(0x151),'value':'iconsv3'}]},{'type':_0x1d4fea(0x165),'name':'uiFramework','message':_0x1d4fea(0x161),'when':_0x553943=>_0x1d4fea(0x163)===_0x553943[_0x1d4fea(0x15e)],'choices':[{'name':_0x1d4fea(0x153),'value':_0x1d4fea(0x153)},{'name':_0x1d4fea(0x156),'value':_0x1d4fea(0x156)},{'name':_0x1d4fea(0x157),'value':_0x1d4fea(0x159)}]}];function _0x2b37(_0x5942a7,_0x3566d1){const _0x1b5f21=_0x1b5f();return _0x2b37=function(_0x2b37a0,_0x4ec21d){_0x2b37a0=_0x2b37a0-0x150;let _0x2dcbea=_0x1b5f21[_0x2b37a0];return _0x2dcbea;},_0x2b37(_0x5942a7,_0x3566d1);}module[_0x1d4fea(0x150)]=function(){const _0x4d6168=_0x1d4fea;return e['prompt'](r)['then'](_0x51e0f3=>Promise[_0x4d6168(0x15a)](_0x51e0f3));};
1
+ 'use strict';function _0x527e(){const _0x8d8725=['15ZDOLav','other','iconsv3','Version\x201\x20=>\x20Version\x202','What\x20version\x20do\x20you\x20want\x20to\x20migrate?','exports','Choose\x20which\x20framework\x20or\x20library\x20used\x20in\x20your\x20project','zmp-framework','209538tkhWRn','inquirer','387gKeRCA','71664JrlNMh','3358180dvOeGU','11272MYfCLC','9zzLGKj','29692HHeYEm','prompt','resolve','uiFramework','15111QqvEyP','zmp-ui','migrateVersion','v1tov2','1145599YPhDzK'];_0x527e=function(){return _0x8d8725;};return _0x527e();}function _0x1f28(_0x575195,_0x221fbb){const _0x527e86=_0x527e();return _0x1f28=function(_0x1f28e0,_0x5b578){_0x1f28e0=_0x1f28e0-0x1a1;let _0x1d8297=_0x527e86[_0x1f28e0];return _0x1d8297;},_0x1f28(_0x575195,_0x221fbb);}const _0x416594=_0x1f28;(function(_0x27c86a,_0x2e0405){const _0x28f54e=_0x1f28,_0x446625=_0x27c86a();while(!![]){try{const _0x266b79=parseInt(_0x28f54e(0x1a7))/0x1+parseInt(_0x28f54e(0x1b7))/0x2+parseInt(_0x28f54e(0x1a2))/0x3*(-parseInt(_0x28f54e(0x1a3))/0x4)+parseInt(_0x28f54e(0x1ac))/0x5*(-parseInt(_0x28f54e(0x1b4))/0x6)+-parseInt(_0x28f54e(0x1ab))/0x7+-parseInt(_0x28f54e(0x1a1))/0x8*(-parseInt(_0x28f54e(0x1b6))/0x9)+parseInt(_0x28f54e(0x1b8))/0xa;if(_0x266b79===_0x2e0405)break;else _0x446625['push'](_0x446625['shift']());}catch(_0x4f9c3b){_0x446625['push'](_0x446625['shift']());}}}(_0x527e,0x263ed));const e=require(_0x416594(0x1b5)),r=[{'type':'list','name':_0x416594(0x1a9),'message':_0x416594(0x1b0),'choices':[{'name':_0x416594(0x1af),'value':_0x416594(0x1aa)},{'name':'Icons\x20(fix\x20icon\x20not\x20displayed\x20in\x20iOS\x20v16+)','value':_0x416594(0x1ae)}]},{'type':'list','name':_0x416594(0x1a6),'message':_0x416594(0x1b2),'when':_0x19a89f=>_0x416594(0x1ae)===_0x19a89f[_0x416594(0x1a9)],'choices':[{'name':_0x416594(0x1b3),'value':'zmp-framework'},{'name':_0x416594(0x1a8),'value':_0x416594(0x1a8)},{'name':'Other','value':_0x416594(0x1ad)}]}];module[_0x416594(0x1b1)]=function(){const _0x3e3724=_0x416594;return e[_0x3e3724(0x1a4)](r)['then'](_0x428009=>Promise[_0x3e3724(0x1a5)](_0x428009));};
@@ -1 +1 @@
1
- 'use strict';const _0x3bceb4=_0x4426;(function(_0x43c1f2,_0x538588){const _0x315e8f=_0x4426,_0x55028e=_0x43c1f2();while(!![]){try{const _0xcd3d3e=-parseInt(_0x315e8f(0x205))/0x1*(parseInt(_0x315e8f(0x207))/0x2)+-parseInt(_0x315e8f(0x206))/0x3+parseInt(_0x315e8f(0x1fd))/0x4+parseInt(_0x315e8f(0x1f7))/0x5+parseInt(_0x315e8f(0x200))/0x6*(-parseInt(_0x315e8f(0x1f3))/0x7)+-parseInt(_0x315e8f(0x204))/0x8*(parseInt(_0x315e8f(0x201))/0x9)+-parseInt(_0x315e8f(0x1fc))/0xa*(-parseInt(_0x315e8f(0x202))/0xb);if(_0xcd3d3e===_0x538588)break;else _0x55028e['push'](_0x55028e['shift']());}catch(_0x3ec28a){_0x55028e['push'](_0x55028e['shift']());}}}(_0x465e,0xee3c6));function _0x4426(_0x4ba0d2,_0x3e9735){const _0x465e77=_0x465e();return _0x4426=function(_0x4426e9,_0xe243ab){_0x4426e9=_0x4426e9-0x1f3;let _0x45049c=_0x465e77[_0x4426e9];return _0x45049c;},_0x4426(_0x4ba0d2,_0x3e9735);}const e=require('../templates/v2/generate-index.react'),i=require('../../utils/fs-extra'),t=require(_0x3bceb4(0x1f6)),s=require('exec-sh'),r=require(_0x3bceb4(0x1fe));async function a(_0x2ece24){const _0x21aa7b=_0x3bceb4;let _0x8f6c33=e(_0x2ece24);i['writeFileSync'](t[_0x21aa7b(0x1f4)](_0x2ece24[_0x21aa7b(0x1fa)],_0x21aa7b(0x1f9)),_0x8f6c33),i[_0x21aa7b(0x1f5)](t['resolve'](__dirname,_0x21aa7b(0x1f8)),t['resolve'](_0x2ece24[_0x21aa7b(0x1fa)],'vite.config.js')),await s[_0x21aa7b(0x203)]('npm\x20install\x20vite\x20@vitejs/plugin-react-refresh\x20--save-dev',!0x0);}async function n(_0xcc5984){const _0xaa7564=_0x3bceb4;switch(_0xcc5984[_0xaa7564(0x1ff)]){case'v1tov2':await a(_0xcc5984);break;case'iconsv3':await r(_0xcc5984);}}function _0x465e(){const _0x4368ac=['index.html','cwd','exports','24959030QUMshA','4417492Plfxhg','../icons/update-icon-v3','migrateVersion','3502806vAHPNO','9deLbxA','11byIVbP','promise','10976272TVPgih','9vFWMvG','2907009txIppU','332824xoYwKG','7kFoVTk','join','copyFileAsync','path','8990420zfqFQS','../templates/v2/vite.config.js'];_0x465e=function(){return _0x4368ac;};return _0x465e();}module[_0x3bceb4(0x1fb)]=n;
1
+ 'use strict';const _0x39237c=_0x5e19;(function(_0x872002,_0x30ed35){const _0x4177c6=_0x5e19,_0x48b148=_0x872002();while(!![]){try{const _0x1e3f88=parseInt(_0x4177c6(0x16d))/0x1+-parseInt(_0x4177c6(0x158))/0x2+-parseInt(_0x4177c6(0x165))/0x3+parseInt(_0x4177c6(0x162))/0x4*(-parseInt(_0x4177c6(0x15c))/0x5)+-parseInt(_0x4177c6(0x15e))/0x6*(parseInt(_0x4177c6(0x15d))/0x7)+-parseInt(_0x4177c6(0x15a))/0x8*(-parseInt(_0x4177c6(0x157))/0x9)+parseInt(_0x4177c6(0x16b))/0xa;if(_0x1e3f88===_0x30ed35)break;else _0x48b148['push'](_0x48b148['shift']());}catch(_0x289b42){_0x48b148['push'](_0x48b148['shift']());}}}(_0x57ca,0x84ef8));function _0x57ca(){const _0x2e8532=['npm\x20install\x20vite\x20@vitejs/plugin-react-refresh\x20--save-dev','promise','migrateVersion','copyFileAsync','17843990PARNsT','resolve','35126eRRhWu','../templates/v2/vite.config.js','4148424YGeeGK','595338BHmYvM','iconsv3','16FJpsAW','index.html','306705niZiGM','115129aSaxyd','186HArknl','writeFileSync','cwd','exec-sh','36KoNISx','path','../../utils/fs-extra','2511894hMpjDf','vite.config.js'];_0x57ca=function(){return _0x2e8532;};return _0x57ca();}const e=require('../templates/v2/generate-index.react'),i=require(_0x39237c(0x164)),t=require(_0x39237c(0x163)),s=require(_0x39237c(0x161)),r=require('../icons/update-icon-v3');async function a(_0x48746a){const _0x47c597=_0x39237c;let _0x608000=e(_0x48746a);i[_0x47c597(0x15f)](t['join'](_0x48746a['cwd'],_0x47c597(0x15b)),_0x608000),i[_0x47c597(0x16a)](t[_0x47c597(0x16c)](__dirname,_0x47c597(0x156)),t[_0x47c597(0x16c)](_0x48746a[_0x47c597(0x160)],_0x47c597(0x166))),await s[_0x47c597(0x168)](_0x47c597(0x167),!0x0);}async function n(_0x3169ff){const _0x23872f=_0x39237c;switch(_0x3169ff[_0x23872f(0x169)]){case'v1tov2':await a(_0x3169ff);break;case _0x23872f(0x159):await r(_0x3169ff);}}function _0x5e19(_0x5c7307,_0x1b51e2){const _0x57ca32=_0x57ca();return _0x5e19=function(_0x5e19b5,_0x140bd4){_0x5e19b5=_0x5e19b5-0x156;let _0x19243d=_0x57ca32[_0x5e19b5];return _0x19243d;},_0x5e19(_0x5c7307,_0x1b51e2);}module['exports']=n;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zmp-cli",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "description": "ZMP command line utility (CLI)",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -75,7 +75,7 @@
75
75
  "xhr2": "^0.2.1",
76
76
  "xmlhttprequest": "^1.8.0",
77
77
  "zip-local": "^0.3.4",
78
- "zmp-cli-core": "^1.1.2"
78
+ "zmp-cli-core": "~1.1.3"
79
79
  },
80
80
  "overrides": {
81
81
  "chii": {