zmp-cli 3.15.15 → 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.
Files changed (42) hide show
  1. package/build/index.js +1 -1
  2. package/config/index.js +1 -1
  3. package/create/index.js +1 -1
  4. package/create/utils/generate-app-config.js +1 -1
  5. package/create/utils/generate-npm-scripts.js +1 -1
  6. package/create/utils/get-options.js +1 -1
  7. package/create/utils/npm-scripts.js +1 -1
  8. package/deploy/index.js +1 -1
  9. package/deploy/utils/get-options.js +1 -1
  10. package/index.js +1 -1
  11. package/login/index.js +1 -1
  12. package/login/utils/get-options.js +1 -1
  13. package/login/utils/zalo-login.js +1 -1
  14. package/migrate/icons/update-icon-v3.js +1 -1
  15. package/migrate/index.js +1 -1
  16. package/migrate/utils/get-options.js +1 -1
  17. package/migrate/utils/migrate-react.js +1 -1
  18. package/package.json +2 -3
  19. package/start/index.js +1 -1
  20. package/sync/index-to-app-config.js +1 -1
  21. package/sync/index.js +1 -1
  22. package/utils/axios.js +1 -1
  23. package/utils/check-update.js +1 -1
  24. package/utils/constants.js +1 -1
  25. package/utils/env.js +1 -1
  26. package/utils/error.js +1 -1
  27. package/utils/find-files-by-ext.js +1 -1
  28. package/utils/find-free-port.js +1 -1
  29. package/utils/fs-extra.js +1 -1
  30. package/utils/generate-pages-map.js +1 -1
  31. package/utils/get-app-info.js +1 -1
  32. package/utils/get-current-project.js +1 -1
  33. package/utils/get-ip.js +1 -1
  34. package/utils/get-latest-version.js +1 -1
  35. package/utils/log.js +1 -1
  36. package/utils/node-blob.js +1 -1
  37. package/utils/resumable.d.js +1 -1
  38. package/utils/resumable.js +1 -1
  39. package/utils/spinner.js +1 -1
  40. package/utils/tunnel.js +1 -1
  41. package/deploy/utils/request-upload.js +0 -1
  42. package/deploy/utils/upload-app.js +0 -1
package/build/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function _0xa8fb(){const _0xfdfd0d=['Error\x20building\x20project','statusStart','appId','../config','Warning:\x20This\x20CLI\x20version\x20will\x20work\x20better\x20with\x20zmp-framework\x20version\x201.5.0\x20or\x20higher','start','3ksxnpE','15VylTnb','4094754TXoEZa','join','151042NZlCdL','2709616nizgMj','filename','node_modules','error','statusError','zmp-framework','env','ora','zmp-cli-core','green','@rollup/plugin-dynamic-import-vars','Building\x20development\x20version...','path','nextVersion','NODE_ENV','production','chalk','405044twNmJP','../utils/generate-pages-map','appConfig','Build\x20Done!\x0a','text','987320QcpibZ','appConfigJson','www/','cwd','10arGSOH','Building...\x20(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)','yellow','mode','latestVersion','5311621SZEhAi','stringify','www','14702778LaNWYt','bold','default','writeFileSync','../utils/env','gray','getEnv','../utils/get-latest-version'];_0xa8fb=function(){return _0xfdfd0d;};return _0xa8fb();}const _0x4bbe71=_0x2f2a;(function(_0x1748fc,_0x2c065a){const _0xdf44cd=_0x2f2a,_0x43ad03=_0x1748fc();while(!![]){try{const _0x33f8da=parseInt(_0xdf44cd(0x126))/0x1*(parseInt(_0xdf44cd(0x12a))/0x2)+parseInt(_0xdf44cd(0x127))/0x3*(-parseInt(_0xdf44cd(0x13c))/0x4)+parseInt(_0xdf44cd(0x141))/0x5+-parseInt(_0xdf44cd(0x128))/0x6+-parseInt(_0xdf44cd(0x14a))/0x7+parseInt(_0xdf44cd(0x12b))/0x8+parseInt(_0xdf44cd(0x118))/0x9*(parseInt(_0xdf44cd(0x145))/0xa);if(_0x33f8da===_0x2c065a)break;else _0x43ad03['push'](_0x43ad03['shift']());}catch(_0x1f8043){_0x43ad03['push'](_0x43ad03['shift']());}}}(_0xa8fb,0x6d924));function _0x2f2a(_0x1e428f,_0x463bb2){const _0xa8fb8=_0xa8fb();return _0x2f2a=function(_0x2f2a57,_0x440f6b){_0x2f2a57=_0x2f2a57-0x118;let _0x3e691a=_0xa8fb8[_0x2f2a57];return _0x3e691a;},_0x2f2a(_0x1e428f,_0x463bb2);}const e=require(_0x4bbe71(0x13b)),r=require(_0x4bbe71(0x132)),t=require(_0x4bbe71(0x137)),i=require(_0x4bbe71(0x135))[_0x4bbe71(0x11a)],o=require('@rollup/plugin-replace'),{buildApp:n}=require(_0x4bbe71(0x133)),u=require('../utils/fs-extra'),a=require(_0x4bbe71(0x11c)),{errorExit:s}=require('../utils/error'),l=require(_0x4bbe71(0x123)),p=require(_0x4bbe71(0x13d)),{existsSync:g}=require('fs'),c=require(_0x4bbe71(0x11f)),w=a['getEnv'](_0x4bbe71(0x139))||'production',d=e[_0x4bbe71(0x11d)](_0x4bbe71(0x146)),m=e[_0x4bbe71(0x147)](_0x4bbe71(0x124)),f=r(_0x4bbe71(0x13a)===w?'Building\x20for\x20production...':_0x4bbe71(0x136));module['exports']=async(_0x10065c={},_0x4dfbd5)=>{const _0x5b6de0=_0x4bbe71;let _0x1846d1=_0x10065c[_0x5b6de0(0x144)]||process[_0x5b6de0(0x144)](),_0x4a6f53=_0x5b7f9f=>t[_0x5b6de0(0x129)](_0x1846d1,_0x5b7f9f),_0x76d5b9=_0x10065c[_0x5b6de0(0x142)]||require(_0x4a6f53(l[_0x5b6de0(0x12c)][_0x5b6de0(0x13e)]));_0x4dfbd5||(_0x4dfbd5={'statusStart'(){},'statusDone'(){},'statusError'(){},'text'(){},'error'(){}}),g(t[_0x5b6de0(0x129)](_0x1846d1,_0x5b6de0(0x12d),_0x5b6de0(0x130)))&&_0x4dfbd5[_0x5b6de0(0x140)](m),f[_0x5b6de0(0x125)](),_0x4dfbd5[_0x5b6de0(0x121)](d);try{let _0x13199b=a[_0x5b6de0(0x11e)](l[_0x5b6de0(0x131)][_0x5b6de0(0x122)]),_0x97e4ab=_0x10065c[_0x5b6de0(0x138)];if(!_0x97e4ab){let _0x4a570e=await c(_0x13199b,_0x10065c),_0x468b1d=_0x4a570e&&_0x4a570e['latestVersion']&&Number(_0x4a570e[_0x5b6de0(0x149)]);null==_0x468b1d&&(_0x468b1d=0x0),_0x97e4ab=_0x468b1d+0x1;}let {appConfigJson:_0x40d5bd}=await n({'cwd':_0x1846d1,'mode':_0x10065c[_0x5b6de0(0x148)]||w,'appId':_0x13199b,'nextVersion':_0x97e4ab,'appConfig':_0x76d5b9,'outDir':_0x5b6de0(0x14c),'vite2RollupPlugins':[o({'values':{'ZMP_IMPORT_PAGES':()=>p(_0x1846d1)}}),i({'warnOnError':!0x0})],'customLogger':{'info':_0x4dfbd5[_0x5b6de0(0x140)],'warn':_0x4dfbd5[_0x5b6de0(0x140)],'warnOnce':_0x4dfbd5[_0x5b6de0(0x140)],'error':_0x4dfbd5[_0x5b6de0(0x12e)]}});return _0x40d5bd&&u[_0x5b6de0(0x11b)](_0x4a6f53(_0x5b6de0(0x143)+l[_0x5b6de0(0x12c)][_0x5b6de0(0x13e)]),JSON[_0x5b6de0(0x14b)](_0x40d5bd)),_0x4dfbd5['statusDone'](''+e[_0x5b6de0(0x119)][_0x5b6de0(0x134)](_0x5b6de0(0x13f))),_0x40d5bd;}catch(_0x51d9ae){_0x4dfbd5[_0x5b6de0(0x12f)](_0x5b6de0(0x120)),s(_0x51d9ae);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 _0xe623(_0x3ea277,_0x16c2ed){var _0x4b88b4=_0x4b88();return _0xe623=function(_0xe62383,_0x933b2f){_0xe62383=_0xe62383-0x1de;var _0x22dc5e=_0x4b88b4[_0xe62383];return _0x22dc5e;},_0xe623(_0x3ea277,_0x16c2ed);}var _0xac1e1d=_0xe623;function _0x4b88(){var _0x3391ec=['zmp-cli.json','87255QsedMj','2511520nMjoTZ','admin/request-login','3070ckuiYr','dev-tools/app/get-info','app-config.json','app/get-info','App\x20config\x20not\x20found.\x20Please\x20re-init\x20project.\x20(Tips:\x20Run\x20\x27zmp\x20init\x27)','9kcHhGq','566614XRdLiL','34353EtLJxY','admin/get-login-status','4958796QELMfA','APP_ID','//h5.zdn.vn/zapps/','311192JZvAPA','/.env','package.json','Request\x20Timeout','394784uALAST','147VBHbhA'];_0x4b88=function(){return _0x3391ec;};return _0x4b88();}(function(_0x36ae34,_0x3399fc){var _0x468a74=_0xe623,_0x4e548c=_0x36ae34();while(!![]){try{var _0x2ddead=-parseInt(_0x468a74(0x1e6))/0x1+parseInt(_0x468a74(0x1f2))/0x2*(parseInt(_0x468a74(0x1f1))/0x3)+parseInt(_0x468a74(0x1ea))/0x4+parseInt(_0x468a74(0x1e9))/0x5+-parseInt(_0x468a74(0x1df))/0x6+-parseInt(_0x468a74(0x1e7))/0x7*(parseInt(_0x468a74(0x1e2))/0x8)+-parseInt(_0x468a74(0x1f3))/0x9*(-parseInt(_0x468a74(0x1ec))/0xa);if(_0x2ddead===_0x3399fc)break;else _0x4e548c['push'](_0x4e548c['shift']());}catch(_0x5a450e){_0x4e548c['push'](_0x4e548c['shift']());}}}(_0x4b88,0x998ce));module['exports']={'filename':{'appConfig':_0xac1e1d(0x1ee),'zmpConfig':_0xac1e1d(0x1e8),'packageJson':_0xac1e1d(0x1e4)},'api_domain':'https://zmp-api.developers.zalo.me/','zdn_url':_0xac1e1d(0x1e1),'path':{'login':'admin/login','requestLogin':_0xac1e1d(0x1eb),'checkLoginStatus':_0xac1e1d(0x1de),'uploadAppByChunk':'app/upload-chunk','requestUploadResumable':'app/request-upload','getAppInfo':_0xac1e1d(0x1ef),'getLatestVersion':_0xac1e1d(0x1ed)},'dirname':__dirname,'root_env':()=>process['cwd']()+_0xac1e1d(0x1e3),'env':{'appId':_0xac1e1d(0x1e0),'token':'ZMP_TOKEN'},'error_code':{'app_config_not_found':-0x578,'permission_denied':-0x7d1,'request_timeout':-0x7d3},'error_msg':{'app_config_not_found':_0xac1e1d(0x1f0),'permission_denied':'Permission\x20denied.\x20Please\x20login\x20again.\x20(Tips:\x20Run\x20\x27zmp\x20login\x27)','request_timeout':_0xac1e1d(0x1e5)},'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 _0x53378e=_0x3144;(function(_0x59ee1b,_0x3b257f){const _0x1510b1=_0x3144,_0x595a03=_0x59ee1b();while(!![]){try{const _0x22a144=parseInt(_0x1510b1(0x17b))/0x1*(parseInt(_0x1510b1(0x16f))/0x2)+parseInt(_0x1510b1(0x198))/0x3+parseInt(_0x1510b1(0x164))/0x4*(-parseInt(_0x1510b1(0x169))/0x5)+-parseInt(_0x1510b1(0x19b))/0x6*(parseInt(_0x1510b1(0x194))/0x7)+parseInt(_0x1510b1(0x191))/0x8+parseInt(_0x1510b1(0x184))/0x9+parseInt(_0x1510b1(0x18d))/0xa;if(_0x22a144===_0x3b257f)break;else _0x595a03['push'](_0x595a03['shift']());}catch(_0x160135){_0x595a03['push'](_0x595a03['shift']());}}}(_0x4493,0x1c7b1));function _0x3144(_0x3ddfb6,_0x35653b){const _0x4493f4=_0x4493();return _0x3144=function(_0x3144be,_0xe47bf0){_0x3144be=_0x3144be-0x162;let _0x30603a=_0x4493f4[_0x3144be];return _0x30603a;},_0x3144(_0x3ddfb6,_0x35653b);}const e=require(_0x53378e(0x18f)),t=require(_0x53378e(0x176)),n=require(_0x53378e(0x16b)),r=require('log-symbols'),{initProject:i}=require(_0x53378e(0x178)),o=require(_0x53378e(0x180)),{errorExit:s}=require('../utils/error'),a=require(_0x53378e(0x190)),c=require(_0x53378e(0x17d)),l=require(_0x53378e(0x17a)),{renameSync:u,existsSync:p}=require('fs'),d=n[_0x53378e(0x163)]('(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)');async function f(_0x1668fd,_0x4f1299){const _0x2faea9=_0x53378e;_0x4f1299[_0x2faea9(0x18c)](_0x2faea9(0x185));try{let {cwd:_0x37a72a,template:_0x22db0d,folderName:_0x53a0a4,name:_0x569603}=_0x1668fd;await i({'cwd':_0x37a72a,'template':_0x22db0d,'folderName':_0x53a0a4,'projectName':_0x569603});}catch(_0x2af56e){_0x4f1299[_0x2faea9(0x171)](_0x2faea9(0x16e)),s(_0x2af56e);}_0x4f1299[_0x2faea9(0x197)](_0x2faea9(0x185));}async function m(_0x56a31a){const _0x4a0ab2=_0x53378e;let _0x4700a5=t[_0x4a0ab2(0x177)](_0x56a31a[_0x4a0ab2(0x187)],_0x4a0ab2(0x18b)),_0x204fff=t[_0x4a0ab2(0x177)](_0x56a31a['cwd'],_0x56a31a['folderName'],_0x4a0ab2(0x18b));p(_0x4700a5)&&!p(_0x204fff)&&u(_0x4700a5,_0x204fff);}async function g(_0x54ecc4,_0x1f7768){const _0x282978=_0x53378e;let {cwd:_0x2d6f89}=_0x54ecc4;_0x1f7768[_0x282978(0x18c)](_0x282978(0x183));let _0x4b2b7b=c(_0x54ecc4);o[_0x282978(0x18e)](t[_0x282978(0x175)](_0x2d6f89,a[_0x282978(0x193)]['appConfig']),_0x4b2b7b[_0x282978(0x199)]),_0x1f7768[_0x282978(0x197)]('Generating\x20app-config.json');}async function $(_0x803b82,_0x491bab){const _0x3a2f9c=_0x53378e;let _0x22f550=t[_0x3a2f9c(0x175)](_0x803b82[_0x3a2f9c(0x187)],_0x803b82['folderName']);_0x491bab['statusStart'](_0x3a2f9c(0x170)+d);let _0x289cbf=_0x22f550===process[_0x3a2f9c(0x187)]();try{_0x289cbf?await e['promise'](_0x3a2f9c(0x181),!0x0):await e['promise'](_0x3a2f9c(0x172)+_0x22f550['replace'](/ /g,'\x5c\x20')+_0x3a2f9c(0x162),!0x0);}catch(_0x308af8){_0x491bab['statusError'](_0x3a2f9c(0x167)),s(_0x308af8);return;}_0x491bab['statusDone'](_0x3a2f9c(0x188));}async function h(_0x4140a2,_0x505f2a){const _0x32e696=_0x53378e;let _0x15252c=l(['s','r'])['map'](_0x28d5a0=>'-\x20'+_0x28d5a0[_0x32e696(0x174)]+_0x32e696(0x16c)+_0x28d5a0[_0x32e696(0x17c)]+_0x32e696(0x192)+_0x28d5a0[_0x32e696(0x16a)]),_0x30a954='\x0a'+n[_0x32e696(0x16d)](r[_0x32e696(0x168)])+'\x20'+n['bold'](_0x32e696(0x195))+_0x32e696(0x19a)+n['bold'](r['info'])+'\x20'+n['bold'](_0x32e696(0x179))+_0x32e696(0x165)+_0x4140a2[_0x32e696(0x18a)]+'\x22\x0a'+_0x15252c[_0x32e696(0x175)]('\x0a')+_0x32e696(0x196)+n['bold'](_0x32e696(0x17f))+_0x32e696(0x186)+n['bold']('README.md')+'\x20in\x20project\x20root\x20folder\x20with\x20further\x20instructions\x0a\x20\x20';_0x505f2a['text'](_0x30a954);}async function y(_0xa4882a,_0x14210d){const _0x290236=_0x53378e;let _0x17dcd8='\x0a'+n['bold'](r[_0x290236(0x168)])+'\x20'+n[_0x290236(0x16d)](_0x290236(0x195))+_0x290236(0x19a)+n[_0x290236(0x16d)](r[_0x290236(0x166)])+'\x20'+n[_0x290236(0x16d)](_0x290236(0x179))+_0x290236(0x189)+n['bold'](_0x290236(0x182))+'\x0a\x20\x20';_0x14210d[_0x290236(0x17e)](_0x17dcd8);}function _0x4493(){const _0x12714a=['2muYyfh','name','./utils/generate-app-config','text','https://mini.zalo.me/','../utils/fs-extra','npm\x20install','https://mini.zalo.me/blog/huong-dan-chuyen-doi-web-app-thanh-zalo-mini-app-trong-30-phut/','Generating\x20app-config.json','67347fxlyOu','Creating\x20project\x20files','\x0a-\x20📖\x20Check\x20','cwd','Installing\x20NPM\x20Dependencies','\x0a-\x20🔥\x20Run\x20\x22zmp\x20deploy\x22\x20-\x20deploy\x20mini\x20app\x20for\x20production\x0a-\x20📖\x20Visit\x20instruction\x20at\x20','folderName','.env','statusStart','288310FQAiqt','writeFileSync','exec-sh','../config','705936YqQExl','\x22\x20-\x20','filename','142954eAuctA','Done!','\x0a-\x20📖\x20Visit\x20documentation\x20at\x20','statusDone','632883OIsmEw','content','\x20💪\x0a\x0a','66lhEYMk','\x20&&\x20npm\x20install','gray','36736cVCrcO','\x0a-\x20👉\x20Run\x20\x22cd\x20','info','Error\x20installing\x20NPM\x20Dependencies','success','15DRNHfD','description','chalk','\x20Run\x20\x22npm\x20run\x20','bold','Error\x20creating\x20project\x20files','33334UnSJrw','Installing\x20NPM\x20Dependencies\x20','statusError','cd\x20','exports','icon','join','path','resolve','zmp-cli-core','Next\x20steps:','./utils/generate-npm-scripts'];_0x4493=function(){return _0x12714a;};return _0x4493();}module[_0x53378e(0x173)]=async(_0x3ac17e={},_0x9150de)=>{for(let _0x32b22f of(_0x9150de||(_0x9150de={'statusStart'(){},'statusDone'(){},'statusError'(){},'text'(){},'error'(){}}),_0x3ac17e['newProject']?[f,m,$,h]:[g,y]))await _0x32b22f(_0x3ac17e,_0x9150de);};
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 _0x5152(_0x1492e1,_0x59228b){const _0x24409b=_0x2440();return _0x5152=function(_0x515279,_0x4ce8cd){_0x515279=_0x515279-0x18d;let _0x4a0564=_0x24409b[_0x515279];return _0x4a0564;},_0x5152(_0x1492e1,_0x59228b);}const _0x51b7e6=_0x5152;function _0x2440(){const _0x5a08f8=['exports','stringify','31656MKDcRv','188522FvmRqJ','back','4530mbNmTo','8028GLGxXW','1572472Cpqsnw','white','455KWjGmP','193359YBkOjI','4GYUHQw','227748CqlJhA','5313245BsiRGo'];_0x2440=function(){return _0x5a08f8;};return _0x2440();}(function(_0x402c19,_0x42bc73){const _0x58c1dd=_0x5152,_0x1f341d=_0x402c19();while(!![]){try{const _0x5bda33=parseInt(_0x58c1dd(0x196))/0x1+-parseInt(_0x58c1dd(0x18d))/0x2+parseInt(_0x58c1dd(0x194))/0x3*(parseInt(_0x58c1dd(0x195))/0x4)+-parseInt(_0x58c1dd(0x193))/0x5*(-parseInt(_0x58c1dd(0x19a))/0x6)+-parseInt(_0x58c1dd(0x197))/0x7+parseInt(_0x58c1dd(0x191))/0x8+parseInt(_0x58c1dd(0x190))/0x9*(parseInt(_0x58c1dd(0x18f))/0xa);if(_0x5bda33===_0x42bc73)break;else _0x1f341d['push'](_0x1f341d['shift']());}catch(_0x409af8){_0x1f341d['push'](_0x1f341d['shift']());}}}(_0x2440,0x7ede8));module[_0x51b7e6(0x198)]=function(_0x48a9f3){const _0x30d447=_0x51b7e6;let {name:_0x9d8994}=_0x48a9f3,_0x4164b9={'title':_0x9d8994,'headerTitle':_0x9d8994,'headerColor':'#1843EF','textColor':_0x30d447(0x192),'leftButton':_0x30d447(0x18e),'statusBar':'normal','actionBarHidden':!0x1,'hideAndroidBottomNavigationBar':!0x1,'hideIOSSafeAreaBottom':!0x1};return{'content':JSON[_0x30d447(0x199)]({'app':_0x4164b9,'listCSS':[],'listSyncJS':[],'listAsyncJS':[]},'',0x2)['trim'](),'appConfig':_0x4164b9};};
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 _0x5c9932=_0x5506;(function(_0x1c3442,_0x2cc7de){const _0x261c20=_0x5506,_0x40e1ad=_0x1c3442();while(!![]){try{const _0x5389a2=parseInt(_0x261c20(0x1c3))/0x1+-parseInt(_0x261c20(0x1bd))/0x2+parseInt(_0x261c20(0x1c0))/0x3+-parseInt(_0x261c20(0x1bb))/0x4+parseInt(_0x261c20(0x1c7))/0x5*(parseInt(_0x261c20(0x1bf))/0x6)+-parseInt(_0x261c20(0x1ba))/0x7+parseInt(_0x261c20(0x1c6))/0x8;if(_0x5389a2===_0x2cc7de)break;else _0x40e1ad['push'](_0x40e1ad['shift']());}catch(_0x1de5e7){_0x40e1ad['push'](_0x40e1ad['shift']());}}}(_0x331e,0xb82a0));const i=require(_0x5c9932(0x1c2));module[_0x5c9932(0x1c9)]=(_0x14d4c3=['s','r'])=>_0x14d4c3[_0x5c9932(0x1bc)](_0x4928c4=>({'icon':i['default'][_0x4928c4][_0x5c9932(0x1be)],'name':i['default'][_0x4928c4][_0x5c9932(0x1c8)],'script':i[_0x5c9932(0x1ca)][_0x4928c4][_0x5c9932(0x1c5)],'description':i[_0x5c9932(0x1ca)][_0x4928c4][_0x5c9932(0x1c4)]})),module[_0x5c9932(0x1c9)]['generateTailWindScripts']=(_0x53db1b=['t'])=>_0x53db1b[_0x5c9932(0x1bc)](_0x17631b=>({'icon':i[_0x5c9932(0x1c1)][_0x17631b][_0x5c9932(0x1be)],'name':i[_0x5c9932(0x1c1)][_0x17631b][_0x5c9932(0x1c8)],'script':i[_0x5c9932(0x1c1)][_0x17631b][_0x5c9932(0x1c5)],'description':i[_0x5c9932(0x1c1)][_0x17631b][_0x5c9932(0x1c4)]}));function _0x5506(_0x3ced33,_0x1fd923){const _0x331e2d=_0x331e();return _0x5506=function(_0x550620,_0x2d89b8){_0x550620=_0x550620-0x1ba;let _0x535ac9=_0x331e2d[_0x550620];return _0x535ac9;},_0x5506(_0x3ced33,_0x1fd923);}function _0x331e(){const _0x1e0d4b=['306684TnNvOx','4936756ikstMa','map','1963146TJHGQD','icon','6247014Hiyqhq','2160519IacpGy','tailwind','./npm-scripts','115671jPPYwu','description','script','9095176lpdwEZ','5GurClT','name','exports','default'];_0x331e=function(){return _0x1e0d4b;};return _0x331e();}
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 _0x30e00d=_0x19dc;(function(_0x4ce89b,_0x3913dd){const _0x207cff=_0x19dc,_0x3b1806=_0x4ce89b();while(!![]){try{const _0x1956e4=parseInt(_0x207cff(0x118))/0x1+parseInt(_0x207cff(0x12e))/0x2*(-parseInt(_0x207cff(0x12b))/0x3)+parseInt(_0x207cff(0x130))/0x4+-parseInt(_0x207cff(0x11c))/0x5+parseInt(_0x207cff(0x122))/0x6+parseInt(_0x207cff(0x126))/0x7+-parseInt(_0x207cff(0x129))/0x8*(parseInt(_0x207cff(0x12d))/0x9);if(_0x1956e4===_0x3913dd)break;else _0x3b1806['push'](_0x3b1806['shift']());}catch(_0x34e8e4){_0x3b1806['push'](_0x3b1806['shift']());}}}(_0x387e,0x50c21));function _0x19dc(_0x4f6451,_0x4081f8){const _0x387e8d=_0x387e();return _0x19dc=function(_0x19dc9b,_0x23f25f){_0x19dc9b=_0x19dc9b-0x112;let _0x2346f4=_0x387e8d[_0x19dc9b];return _0x2346f4;},_0x19dc(_0x4f6451,_0x4081f8);}function _0x387e(){const _0x66cf1c=['New\x20project','Choose\x20a\x20template:','replace','chalk','362626DHusNE','Existing\x20project','folderName','(A\x20new\x20folder\x20with\x20this\x20name\x20will\x20be\x20created\x20in\x20the\x20selected\x20directory)','2601730cVCfhs','input','App\x20(project)\x20name:','prompt','map','resolve','3616044CDIhKD','template','My\x20','exports','4534292EIwpLP','isBlank','name','1184UtNYSX','filter','105UgkTTZ','What\x20action\x20you\x20want\x20to\x20do?','32229SkpfWy','21218IjSYAW','toLowerCase','557512IHzCtk','App\x20name\x20is\x20required','list','Using\x20ZMP\x20to\x20deploy\x20only'];_0x387e=function(){return _0x66cf1c;};return _0x387e();}const e=require('inquirer'),r=require(_0x30e00d(0x117)),{INIT_TEMPLATES:a}=require('zmp-cli-core'),t=[{'type':_0x30e00d(0x112),'name':'newProject','message':_0x30e00d(0x12c),'choices':[{'name':'Create\x20a\x20new\x20ZMP\x20project','value':!0x0,'short':_0x30e00d(0x114)},{'name':_0x30e00d(0x113),'value':!0x1,'short':_0x30e00d(0x119)}]},{'type':_0x30e00d(0x112),'name':_0x30e00d(0x123),'when':_0xac7f83=>_0xac7f83['newProject'],'message':_0x30e00d(0x115),'choices':[...a[_0x30e00d(0x12a)](_0x34c2ab=>_0x34c2ab[_0x30e00d(0x127)])[_0x30e00d(0x120)](_0x375bd2=>({'name':_0x375bd2[_0x30e00d(0x128)],'value':_0x375bd2})),new e['Separator'](),...a[_0x30e00d(0x12a)](_0x5f255f=>!_0x5f255f[_0x30e00d(0x127)])[_0x30e00d(0x120)](_0x1d859d=>({'name':_0x1d859d[_0x30e00d(0x128)],'value':_0x1d859d}))]},{'type':_0x30e00d(0x11d),'name':_0x30e00d(0x128),'message':_0x30e00d(0x11e),'default':_0x1de36d=>{const _0x28acee=_0x30e00d;let {template:_0x3ec78f}=_0x1de36d;return _0x3ec78f&&!_0x3ec78f['isBlank']?_0x28acee(0x124)+_0x3ec78f['name'][_0x28acee(0x116)]('ZaUI\x20','')+'\x20App':'My\x20App';},'validate':_0xd0edfa=>new Promise((_0x413ab1,_0xbe7354)=>{const _0x15ebc1=_0x30e00d;_0xd0edfa?_0x413ab1(!0x0):_0xbe7354(Error(_0x15ebc1(0x131)));})},{'type':_0x30e00d(0x11d),'name':_0x30e00d(0x11a),'when':_0x17771d=>_0x17771d['newProject'],'message':'Folder\x20name:','suffix':'\x0a'+r['italic'](_0x30e00d(0x11b)),'default':_0x1a7a61=>{const _0x2cb956=_0x30e00d;let {name:_0x52352b}=_0x1a7a61;return _0x52352b[_0x2cb956(0x116)](/ /g,'-')[_0x2cb956(0x116)](/[^a-zA-Z0-9-]/g,'')[_0x2cb956(0x12f)]();},'validate':_0x460646=>new Promise((_0x3316e7,_0x2806a6)=>{_0x460646?_0x3316e7(!0x0):_0x2806a6(Error('Folder\x20name\x20is\x20required'));})}];module[_0x30e00d(0x125)]=function(){const _0x3b99ec=_0x30e00d;return e[_0x3b99ec(0x11f)](t)['then'](_0x4d1360=>Promise[_0x3b99ec(0x121)](_0x4d1360));};
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 _0xbb5c9c=_0x6843;function _0x6843(_0x247fe6,_0x333cff){const _0x59aba3=_0x59ab();return _0x6843=function(_0x6843a8,_0x37d5b0){_0x6843a8=_0x6843a8-0x1c8;let _0x50460b=_0x59aba3[_0x6843a8];return _0x50460b;},_0x6843(_0x247fe6,_0x333cff);}(function(_0x4e2440,_0x378caf){const _0x33e6de=_0x6843,_0x451e75=_0x4e2440();while(!![]){try{const _0x461f41=-parseInt(_0x33e6de(0x1d0))/0x1*(parseInt(_0x33e6de(0x1d1))/0x2)+parseInt(_0x33e6de(0x1e4))/0x3+-parseInt(_0x33e6de(0x1d9))/0x4+-parseInt(_0x33e6de(0x1dd))/0x5+-parseInt(_0x33e6de(0x1df))/0x6+parseInt(_0x33e6de(0x1d7))/0x7*(-parseInt(_0x33e6de(0x1d4))/0x8)+parseInt(_0x33e6de(0x1e2))/0x9;if(_0x461f41===_0x378caf)break;else _0x451e75['push'](_0x451e75['shift']());}catch(_0x58dbc1){_0x451e75['push'](_0x451e75['shift']());}}}(_0x59ab,0x5969d));const e={'d':'dev','p':_0xbb5c9c(0x1da),'s':_0xbb5c9c(0x1d5),'v':_0xbb5c9c(0x1c8),'r':_0xbb5c9c(0x1ce),'t':_0xbb5c9c(0x1e3)};function s(_0x3a0392){const _0x4e317c=_0xbb5c9c;return _0x3a0392['split']('_')[0x0][_0x4e317c(0x1e1)]('')[_0x4e317c(0x1d3)](_0x5237f7=>e[_0x5237f7])[_0x4e317c(0x1e0)]('-');}const t={'default':{'s':{'icon':'🔥','script':_0xbb5c9c(0x1d8),'description':_0xbb5c9c(0x1de)},'r':{'icon':'🙏','script':_0xbb5c9c(0x1ca),'description':_0xbb5c9c(0x1cc)}},'httpServer':{'v':{'icon':'🔧','script':'http-server\x20./www/\x20-o\x20-c\x201\x20-a\x20localhost\x20-p\x208080','description':_0xbb5c9c(0x1de)},'s':{'icon':'🔥','script':_0xbb5c9c(0x1cd),'description':_0xbb5c9c(0x1de)}},'tailwind':{'t':{'icon':'🔧','script':'postcss\x20src/css/tailwind.css\x20-o\x20src/css/styles.css','description':'build\x20tailwind\x20css'}}};Object['keys'](t[_0xbb5c9c(0x1cf)])[_0xbb5c9c(0x1cb)](_0x4e5a5e=>{const _0xda6dbf=_0xbb5c9c;t[_0xda6dbf(0x1cf)][_0x4e5a5e][_0xda6dbf(0x1db)]=s(_0x4e5a5e);}),Object[_0xbb5c9c(0x1d2)](t[_0xbb5c9c(0x1d6)])[_0xbb5c9c(0x1cb)](_0x3a12d4=>{const _0x506f4f=_0xbb5c9c;t[_0x506f4f(0x1d6)][_0x3a12d4][_0x506f4f(0x1db)]=s(_0x3a12d4);}),Object['keys'](t[_0xbb5c9c(0x1c9)])[_0xbb5c9c(0x1cb)](_0x30dad2=>{const _0x43fbbe=_0xbb5c9c;t[_0x43fbbe(0x1c9)][_0x30dad2]['name']=s(_0x30dad2);}),module[_0xbb5c9c(0x1dc)]=t;function _0x59ab(){const _0x4bfb09=['4382148oSRhPo','join','split','28113138wMehDi','build:css','401187zatlPS','serve','tailwind','zmp\x20deploy','forEach','deploy\x20mini\x20app\x20for\x20production','npm\x20run\x20serve','deploy','default','33751RLCqyU','20sKWIWQ','keys','map','1496OAFzDx','start','httpServer','24878NRhfAf','zmp\x20start','2333816KvslaN','prod','name','exports','2876270gSdhfH','run\x20development\x20server'];_0x59ab=function(){return _0x4bfb09;};return _0x59ab();}
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 _0x1929(_0x4838a2,_0x46fd1f){const _0x417989=_0x4179();return _0x1929=function(_0x19299c,_0x131c36){_0x19299c=_0x19299c-0x148;let _0x269b95=_0x417989[_0x19299c];return _0x269b95;},_0x1929(_0x4838a2,_0x46fd1f);}const _0x369620=_0x1929;(function(_0x3a27af,_0x28624b){const _0x2877b7=_0x1929,_0xd9366e=_0x3a27af();while(!![]){try{const _0x720c25=-parseInt(_0x2877b7(0x16d))/0x1+parseInt(_0x2877b7(0x16e))/0x2+-parseInt(_0x2877b7(0x158))/0x3+parseInt(_0x2877b7(0x177))/0x4+-parseInt(_0x2877b7(0x15d))/0x5+-parseInt(_0x2877b7(0x176))/0x6*(parseInt(_0x2877b7(0x17b))/0x7)+parseInt(_0x2877b7(0x181))/0x8;if(_0x720c25===_0x28624b)break;else _0xd9366e['push'](_0xd9366e['shift']());}catch(_0x57e471){_0xd9366e['push'](_0xd9366e['shift']());}}}(_0x4179,0x9fd35));const e=require(_0x369620(0x178)),t=require(_0x369620(0x152)),r=require('zip-local'),i=require('log-symbols'),a=require(_0x369620(0x163)),s=require(_0x369620(0x180)),n=require('../build/index'),o=require(_0x369620(0x175)),{errorExit:l}=require(_0x369620(0x14f)),p=require(_0x369620(0x15c)),u=require(_0x369620(0x17f)),c=require(_0x369620(0x15b)),d=e['gray'](_0x369620(0x166)),f={'statusStart'(){},'statusDone'(){},'statusText'(){},'statusError'(){},'text'(){},'error'(){},'showOnUI'(){}};function _0x4179(){const _0x2e9308=['statusStart','Update\x20app\x20with\x20new\x20version','entries','memory','includes','939702FvRFoN','statusDone','dependencies','./utils/request-upload','./utils/upload-app','362940wwxUeK','react','statusError','zip','green','listSyncJS','qrcode-terminal','www','filename','(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)','\x20💪','app','error_msg','env','desc','join','854357APYcLK','972140YIlEiD','Error\x20deploying\x20your\x20app','appUrl','forEach','Deploying\x20Your\x20App\x20','appConfig','outputDir','../utils/env','6FRhOno','1377172bLTBsQ','chalk','title','Version:','1019501altwzE','data','info','text','../utils/fs-extra','../config','9680832BsTuFm','app_config_not_found','bold','generate','getEnv','cwd','listAsyncJS','customProject','versionStatus','compress','../utils/error','Deploy\x20Done!','stringify','path'];_0x4179=function(){return _0x2e9308;};return _0x4179();}module['exports']=async(_0x18378e={},_0x525fd8=f)=>{const _0x3ae37f=_0x369620;let _0xeb4333,_0x4fee6b,_0x181380,_0x445902=_0x18378e['cwd']||process[_0x3ae37f(0x14a)](),_0x6f9e79=_0x18378e[_0x3ae37f(0x174)]||_0x3ae37f(0x164),_0x1de9e1=s['api_domain'],_0x270076=_0x21aa9b=>t[_0x3ae37f(0x16c)](_0x445902,_0x21aa9b),_0x25d989=o[_0x3ae37f(0x149)](s[_0x3ae37f(0x16a)]['token']),_0x1613cc=s[_0x3ae37f(0x165)][_0x3ae37f(0x173)],_0x23ecea=s[_0x3ae37f(0x165)]['packageJson'],_0x5e5f4b=!0x0;try{_0xeb4333=require(_0x270076(_0x1613cc));}catch(_0x4c1570){try{_0xeb4333=require(_0x270076(_0x6f9e79+'/'+_0x1613cc)),_0x5e5f4b=!0x1;}catch(_0xc53f1f){l(Error(s[_0x3ae37f(0x169)][_0x3ae37f(0x182)]));}}let _0x433011={};try{let _0x5686ca=require(_0x270076(_0x23ecea))[_0x3ae37f(0x15a)];Object[_0x3ae37f(0x155)](_0x5686ca)[_0x3ae37f(0x171)](([_0x219684,_0x437380])=>{const _0x2c6451=_0x3ae37f;(_0x219684[_0x2c6451(0x157)]('zmp')||_0x219684[_0x2c6451(0x157)](_0x2c6451(0x15e)))&&(_0x433011[_0x219684]=_0x437380);});}catch(_0x4afe59){}let _0x305bb4={'appName':_0xeb4333[_0x3ae37f(0x168)][_0x3ae37f(0x179)],'appDesc':_0x18378e[_0x3ae37f(0x16b)]||_0x3ae37f(0x154),'appConfig':JSON['stringify'](_0xeb4333),'frameworkVersions':JSON[_0x3ae37f(0x151)](_0x433011)};try{let _0x8960a5=''+_0x1de9e1+s[_0x3ae37f(0x152)]['requestUploadResumable'],_0x572ffc=await c(_0x8960a5,_0x305bb4,_0x18378e[_0x3ae37f(0x14d)],_0x25d989);_0x4fee6b=_0x572ffc['nextVersion'],_0x181380=_0x572ffc['identifier'];}catch(_0x6284e2){l(_0x6284e2);}if(_0x18378e[_0x3ae37f(0x14c)]){let _0x24c778=0x0;_0xeb4333[_0x3ae37f(0x162)]&&_0xeb4333[_0x3ae37f(0x162)]['length']>0x0&&(_0x24c778+=0x1),_0xeb4333[_0x3ae37f(0x14b)]&&_0xeb4333[_0x3ae37f(0x14b)]['length']>0x0&&(_0x24c778+=0x1),0x0===_0x24c778&&l(Error('Please\x20define\x20your\x20assets\x20output\x20at\x20app-config.json.\x20Read\x20more:\x20https://mini.zalo.me/intro/getting-started/app-config/')),_0x5e5f4b&&u['writeFileSync'](_0x270076(_0x6f9e79+'/'+s[_0x3ae37f(0x165)][_0x3ae37f(0x173)]),JSON[_0x3ae37f(0x151)](_0xeb4333));}else _0xeb4333=await n({..._0x18378e,'appConfigJson':_0xeb4333,'nextVersion':_0x4fee6b},_0x525fd8);_0x525fd8[_0x3ae37f(0x153)](_0x3ae37f(0x172)+d);try{let _0x300a24=await new Promise((_0x3ed99f,_0x139033)=>{const _0x40469c=_0x3ae37f;r[_0x40469c(0x160)](_0x270076(_0x6f9e79),function(_0x215fad,_0x18860a){const _0x3b1b3a=_0x40469c;return _0x215fad?_0x139033(_0x215fad):(_0x18860a[_0x3b1b3a(0x14e)](),_0x3ed99f(_0x18860a[_0x3b1b3a(0x156)]()));});}),_0x89c8fb={..._0x305bb4,'appBuffer':_0x300a24,'identifier':_0x181380},_0x346bec=await p(_0x89c8fb,_0x18378e,_0x525fd8),_0x27d8aa=_0x346bec&&_0x346bec[_0x3ae37f(0x17c)]&&_0x346bec[_0x3ae37f(0x17c)][_0x3ae37f(0x170)];a[_0x3ae37f(0x148)](_0x27d8aa,{'small':!0x0},function(_0x5abca0){const _0x4f295a=_0x3ae37f;let _0x34be7f=''+e['bold'](i[_0x4f295a(0x17d)]+'\x20View\x20app\x20at:\x0a'+_0x5abca0);_0x525fd8[_0x4f295a(0x159)](e['bold'][_0x4f295a(0x161)](_0x4f295a(0x150))+_0x4f295a(0x167)),_0x525fd8[_0x4f295a(0x159)](e[_0x4f295a(0x183)][_0x4f295a(0x161)](_0x4f295a(0x17a))+'\x20'+_0x4fee6b),_0x525fd8[_0x4f295a(0x17e)](_0x34be7f);});}catch(_0x10fcc7){_0x525fd8[_0x3ae37f(0x15f)](_0x3ae37f(0x16f)),l(_0x10fcc7);}};
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';function _0x1deb(){const _0x57de34=['356212gnaehZ','11VDdTqv','keys','246232KisoOh','41001mfqvXq','Description\x20is\x20required!','This\x20is\x20not\x20a\x20ZMP\x20Project,\x20do\x20you\x20want\x20to\x20continue?','exports','quit','prompt','list','2053710nYloeG','input','Server\x20type\x20is\x20required!','6fxkUaK','267575OcHWom','1780542mhjkNv','length','outputDir','Quit','21ngxORX','customProject','80dvZGQG','resolve','Deploy\x20your\x20existing\x20project','460045KXkmfj','map','Description:','capitalize','Where\x20is\x20your\x20dist\x20folder?','inquirer','lodash'];_0x1deb=function(){return _0x57de34;};return _0x1deb();}const _0x1f4a14=_0x5c35;(function(_0x4461e4,_0x5c3403){const _0x3f9d94=_0x5c35,_0x12be33=_0x4461e4();while(!![]){try{const _0x479b82=parseInt(_0x3f9d94(0xf4))/0x1+parseInt(_0x3f9d94(0xe5))/0x2+-parseInt(_0x3f9d94(0xe9))/0x3*(parseInt(_0x3f9d94(0xdb))/0x4)+parseInt(_0x3f9d94(0xde))/0x5*(parseInt(_0x3f9d94(0xf3))/0x6)+-parseInt(_0x3f9d94(0xd9))/0x7*(parseInt(_0x3f9d94(0xe8))/0x8)+parseInt(_0x3f9d94(0xd5))/0x9+parseInt(_0x3f9d94(0xf0))/0xa*(-parseInt(_0x3f9d94(0xe6))/0xb);if(_0x479b82===_0x5c3403)break;else _0x12be33['push'](_0x12be33['shift']());}catch(_0x55d6ef){_0x12be33['push'](_0x12be33['shift']());}}}(_0x1deb,0x28280));function _0x5c35(_0x466daf,_0x2bb659){const _0x1deb8e=_0x1deb();return _0x5c35=function(_0x5c359b,_0x120778){_0x5c359b=_0x5c359b-0xd5;let _0x52fbf=_0x1deb8e[_0x5c359b];return _0x52fbf;},_0x5c35(_0x466daf,_0x2bb659);}const e=require(_0x1f4a14(0xe3)),{versionStatus:t}=require('../../utils/constants'),i=require(_0x1f4a14(0xe4)),r=[{'type':'list','name':'versionStatus','message':'What\x20version\x20status\x20are\x20you\x20deploying?','choices':Object[_0x1f4a14(0xe7)](t)[_0x1f4a14(0xdf)](_0x207c2e=>({'name':i[_0x1f4a14(0xe1)](_0x207c2e),'value':t[_0x207c2e]})),'when':_0x3a1931=>!_0x3a1931[_0x1f4a14(0xed)],'validate':_0x4bdf89=>new Promise((_0x1db1b8,_0x4c9c9b)=>{const _0x375e57=_0x1f4a14;_0x4bdf89&&_0x4bdf89[_0x375e57(0xd6)]?_0x1db1b8(!0x0):_0x4c9c9b(Error(_0x375e57(0xf2)));})},{'type':'input','name':'desc','message':_0x1f4a14(0xe0),'when':_0x22c4ef=>!_0x22c4ef[_0x1f4a14(0xed)],'validate':_0x25a0f5=>new Promise((_0x3f839e,_0x28a652)=>{const _0x5e1201=_0x1f4a14;_0x25a0f5&&_0x25a0f5[_0x5e1201(0xd6)]?_0x3f839e(!0x0):_0x28a652(Error(_0x5e1201(0xea)));})}],s=[{'type':_0x1f4a14(0xef),'name':_0x1f4a14(0xed),'message':_0x1f4a14(0xeb),'choices':[{'name':_0x1f4a14(0xdd),'value':!0x1},{'name':_0x1f4a14(0xd8),'value':!0x0}]},{'type':_0x1f4a14(0xf1),'name':_0x1f4a14(0xd7),'message':_0x1f4a14(0xe2),'when':_0x3c1f9b=>!_0x3c1f9b[_0x1f4a14(0xed)],'default':'www'}];module[_0x1f4a14(0xec)]=async function(_0xaa950e){const _0x37eaa1=_0x1f4a14;let _0x4456b6=_0xaa950e?[...r]:[...s,...r];return e[_0x37eaa1(0xee)](_0x4456b6)['then'](_0x57c9da=>(_0x57c9da[_0x37eaa1(0xda)]=!0x1,!0x1===_0x57c9da['quit']&&(_0x57c9da[_0x37eaa1(0xda)]=!0x0),Promise[_0x37eaa1(0xdc)](_0x57c9da)));};
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 _0x24f6(){const _0x5d0c44=['args','./package.json','-ios,\x20--ios','deploy','code','text','includes','parse','-D,\x20--device','\x20This\x20is\x20not\x20ZMP\x20project','textSync','action','usage','exit','login','./create/utils/get-options','length','figlet','./deploy/utils/get-options','./utils/get-current-project','.local','commander','3201170rPxUOO','Deploy\x20a\x20ZMP\x20project','command','24TWRiuy','customProject','Specify\x20server\x20hostname.\x20By\x20default\x20it\x20is\x20os.hostname','versionStatus','8825jxChLe','-o,\x20--outputDir\x20<output>','./config','./deploy/index','Skip\x20checking\x20for\x20update\x20of\x20zmp-cli','./login/index','\x0a\x20Unknown\x20command\x20','124miYYXN','argv','Build\x20a\x20ZMP\x20project','TESTING','--skipUpdate','writeFileSync','NW.js\x20module\x20is\x20not\x20found.\x20Please\x20run\x20\x22npm\x20install\x20-g\x20nw@sdk\x22','./utils/fs-extra','command:*','version','./start/index','sync-config\x20<source>','Custom\x20entry\x20point,\x20default\x20is\x20#app','cyan','frame','./create/index','-M,\x20--mode\x20<m>','Login\x20ZMP','-m,\x20--desc\x20<message>','-e,\x20--existing','-Z,\x20--zalo-app','hostname','clear','./migrate/index','2jgAMRZ','chalk','device','ios','./migrate/utils/get-options','full','log','passive','Env\x20mode','error','-r,\x20--root-element\x20<selector>','Init\x20ZMP\x20project','iosHostName','46839GWqsmc','port','ZMP\x20CLI','4125627ZqEDcG','-P,\x20--port\x20<n>','<command>\x20[options]','build','Run\x20on\x20ios','log-symbols','./utils/spinner','skipUpdate','Preview\x20on\x20Zalo','outputHelp','10111213aTGXVj','Specify\x20server\x20port.\x20By\x20default\x20it\x20is\x203000','Start\x20a\x20ZMP\x20project','Version:\x20','-nF,\x20--no-frame','395069MyHAyd','./build/index','zaloApp','description','existing','-t,\x20--testing','Deploy\x20existing\x20project','Automatically\x20update\x20app-config.json\x20resources\x20list\x20based\x20on\x20index.html','Output\x20folder.\x20Default\x20www','root_env','Deploy\x20testing\x20version','init','option','9963744QDmhmO','./sync/index','showMobileUi','migrate'];_0x24f6=function(){return _0x5d0c44;};return _0x24f6();}const _0x5c52ea=_0x522f;(function(_0x22836d,_0x46e603){const _0x54427d=_0x522f,_0x595f7c=_0x22836d();while(!![]){try{const _0x2f67e3=-parseInt(_0x54427d(0x132))/0x1*(-parseInt(_0x54427d(0x113))/0x2)+parseInt(_0x54427d(0x120))/0x3*(-parseInt(_0x54427d(0x167))/0x4)+parseInt(_0x54427d(0x160))/0x5*(-parseInt(_0x54427d(0x15c))/0x6)+parseInt(_0x54427d(0x12d))/0x7+-parseInt(_0x54427d(0x13f))/0x8+parseInt(_0x54427d(0x123))/0x9+parseInt(_0x54427d(0x159))/0xa;if(_0x2f67e3===_0x46e603)break;else _0x595f7c['push'](_0x595f7c['shift']());}catch(_0xe61a4b){_0x595f7c['push'](_0x595f7c['shift']());}}}(_0x24f6,0xd736d));function _0x522f(_0x332bff,_0x1ecf54){const _0x24f617=_0x24f6();return _0x522f=function(_0x522ff5,_0x2a32d2){_0x522ff5=_0x522ff5-0x105;let _0x170811=_0x24f617[_0x522ff5];return _0x170811;},_0x522f(_0x332bff,_0x1ecf54);}const e=require(_0x5c52ea(0x114)),o=require(_0x5c52ea(0x111)),t=require(_0x5c52ea(0x154)),i=require(_0x5c52ea(0x158)),s=require(_0x5c52ea(0x128)),r=require(_0x5c52ea(0x16e)),n=require('./utils/check-update'),a=require(_0x5c52ea(0x129)),c=require('./utils/log'),p=require(_0x5c52ea(0x156)),u=require(_0x5c52ea(0x152)),l=require('./login/utils/get-options'),d=require(_0x5c52ea(0x155)),m=require(_0x5c52ea(0x117)),g=require(_0x5c52ea(0x165)),x=require(_0x5c52ea(0x10a)),y=require(_0x5c52ea(0x105)),w=require(_0x5c52ea(0x133)),v=require(_0x5c52ea(0x163)),f=require(_0x5c52ea(0x140)),q=require(_0x5c52ea(0x112)),h=require('os'),M=require(_0x5c52ea(0x144)),P=require(_0x5c52ea(0x162)),{versionStatus:j}=require('./utils/constants'),Z=process['cwd'](),S={'statusStart':_0x2322b8=>a['start'](_0x2322b8),'statusDone':_0x4f4666=>a['done'](_0x4f4666),'statusText':_0x3da54f=>a[_0x5c52ea(0x148)](_0x3da54f),'statusError':_0x521f96=>a[_0x5c52ea(0x11c)](_0x521f96),'text':_0x39b1cf=>c[_0x5c52ea(0x148)](_0x39b1cf),'error':_0x56ff09=>c['error'](_0x56ff09),'showOnUI':()=>{}};o(),r['existsSync'](P[_0x5c52ea(0x13b)]())||r[_0x5c52ea(0x16c)](P[_0x5c52ea(0x13b)]()),console['log'](e[_0x5c52ea(0x108)](t[_0x5c52ea(0x14d)](_0x5c52ea(0x122),{'horizontalLayout':_0x5c52ea(0x118),'verticalLayout':_0x5c52ea(0x118)})),e[_0x5c52ea(0x108)](_0x5c52ea(0x130)+M[_0x5c52ea(0x170)]+'\x0a')),i[_0x5c52ea(0x170)](M[_0x5c52ea(0x170)])[_0x5c52ea(0x14f)](_0x5c52ea(0x125))['command'](_0x5c52ea(0x13d))[_0x5c52ea(0x13e)](_0x5c52ea(0x16b),_0x5c52ea(0x164))[_0x5c52ea(0x135)](_0x5c52ea(0x11e))['action'](async _0xf294fb=>{const _0x406be1=_0x5c52ea;_0xf294fb[_0x406be1(0x12a)]||await n();let _0x285e6e=await l();await g({'cwd':Z,..._0x285e6e},S);let _0x75d389=await u();await x({'cwd':Z,..._0x75d389},S),process[_0x406be1(0x150)](0x0);}),i[_0x5c52ea(0x14f)](_0x5c52ea(0x125))['command'](_0x5c52ea(0x151))['description'](_0x5c52ea(0x10c))['action'](async()=>{const _0x68ca1a=_0x5c52ea;let _0x4e8fa9=await l();await g({'cwd':Z,..._0x4e8fa9},S),process[_0x68ca1a(0x150)](0x0);}),i[_0x5c52ea(0x14f)](_0x5c52ea(0x125))[_0x5c52ea(0x15b)]('start')[_0x5c52ea(0x13e)]('-iosH,\x20--ios-host-name\x20<n>',_0x5c52ea(0x15e))[_0x5c52ea(0x13e)](_0x5c52ea(0x124),_0x5c52ea(0x12e),parseInt)['option'](_0x5c52ea(0x10f),_0x5c52ea(0x12b))[_0x5c52ea(0x13e)](_0x5c52ea(0x145),_0x5c52ea(0x127))[_0x5c52ea(0x13e)](_0x5c52ea(0x131),'Run\x20without\x20Zalo\x20frame')['option'](_0x5c52ea(0x14b),'Device\x20mode')['option'](_0x5c52ea(0x10b),_0x5c52ea(0x11b))[_0x5c52ea(0x135)](_0x5c52ea(0x12f))['action'](async _0x425e21=>{const _0x1c707f=_0x5c52ea;if(p(Z)||(c['text'](s[_0x1c707f(0x11c)]+_0x1c707f(0x14c)),process[_0x1c707f(0x150)](0x1)),_0x425e21&&_0x425e21[_0x1c707f(0x141)])try{console[_0x1c707f(0x119)](require['resolve']('nw'));}catch(_0x4c9656){console[_0x1c707f(0x11c)](_0x1c707f(0x16d)),process['exit'](_0x4c9656[_0x1c707f(0x147)]);}let _0x37faad=h[_0x1c707f(0x110)]();_0x37faad[_0x1c707f(0x149)]('.local')||(_0x37faad=_0x37faad+_0x1c707f(0x157)),await y({'cwd':Z,'port':_0x425e21&&_0x425e21[_0x1c707f(0x121)]||0xbb8,'iosHostName':_0x425e21&&_0x425e21[_0x1c707f(0x11f)]||_0x37faad,'showMobileUI':_0x425e21&&_0x425e21[_0x1c707f(0x141)]||!0x1,'previewOnZalo':_0x425e21&&_0x425e21[_0x1c707f(0x134)]||!0x1,'ios':_0x425e21&&_0x425e21[_0x1c707f(0x116)]||!0x1,'mode':_0x425e21&&_0x425e21['mode'],'frame':!!_0x425e21&&(void 0x0===_0x425e21[_0x1c707f(0x109)]||null===_0x425e21[_0x1c707f(0x109)])||_0x425e21['frame'],'deviceMode':_0x425e21&&_0x425e21[_0x1c707f(0x115)]||!0x1},S),process[_0x1c707f(0x150)](0x0);}),i[_0x5c52ea(0x14f)](_0x5c52ea(0x125))[_0x5c52ea(0x15b)](_0x5c52ea(0x126))[_0x5c52ea(0x13e)]('-M,\x20--mode\x20<m>',_0x5c52ea(0x11b))[_0x5c52ea(0x135)](_0x5c52ea(0x169))[_0x5c52ea(0x14e)](async _0x504942=>{const _0x4c026e=_0x5c52ea;p(Z)||(c[_0x4c026e(0x148)](s['error']+_0x4c026e(0x14c)),process[_0x4c026e(0x150)](0x1)),await w({'cwd':Z,'mode':_0x504942&&_0x504942['mode']},S),process[_0x4c026e(0x150)](0x0);}),i[_0x5c52ea(0x14f)](_0x5c52ea(0x125))[_0x5c52ea(0x15b)](_0x5c52ea(0x146))['option'](_0x5c52ea(0x10b),'Env\x20mode')[_0x5c52ea(0x13e)]('-p,\x20--passive','Passive\x20mode\x20(non-interactive)')[_0x5c52ea(0x13e)](_0x5c52ea(0x10e),_0x5c52ea(0x138))[_0x5c52ea(0x13e)](_0x5c52ea(0x137),_0x5c52ea(0x13c))[_0x5c52ea(0x13e)](_0x5c52ea(0x10d),'Version\x20description')['option'](_0x5c52ea(0x161),_0x5c52ea(0x13a))[_0x5c52ea(0x13e)](_0x5c52ea(0x124),'Specify\x20UI\x20server\x20port.\x20By\x20default\x20it\x20is\x203001',parseInt)[_0x5c52ea(0x135)](_0x5c52ea(0x15a))[_0x5c52ea(0x14e)](async _0x410479=>{const _0x565a79=_0x5c52ea;let _0x311212=p(Z),_0x431686=_0x410479;_0x410479[_0x565a79(0x136)]?_0x431686[_0x565a79(0x15d)]=!0x0:_0x410479[_0x565a79(0x11a)]||(_0x431686=await d(_0x311212)),_0x410479['testing']&&(_0x431686[_0x565a79(0x15f)]=j[_0x565a79(0x16a)]),_0x431686['quit']&&process['exit'](0x1),await v({'cwd':Z,'mode':_0x410479&&_0x410479['mode'],..._0x431686},S),process[_0x565a79(0x150)](0x0);}),i[_0x5c52ea(0x14f)](_0x5c52ea(0x125))[_0x5c52ea(0x15b)](_0x5c52ea(0x106))[_0x5c52ea(0x13e)](_0x5c52ea(0x11d),_0x5c52ea(0x107))[_0x5c52ea(0x135)](_0x5c52ea(0x139))[_0x5c52ea(0x14e)](async(_0x429569,_0x3d9d6e)=>{const _0x2d61d4=_0x5c52ea;await f({'source':_0x429569,..._0x3d9d6e},S),process[_0x2d61d4(0x150)](0x0);}),i[_0x5c52ea(0x14f)](_0x5c52ea(0x125))[_0x5c52ea(0x15b)](_0x5c52ea(0x142))[_0x5c52ea(0x14e)](async function(){const _0x3947e1=_0x5c52ea;let _0x42fb21=p(Z);_0x42fb21||(S[_0x3947e1(0x148)](s[_0x3947e1(0x11c)]+_0x3947e1(0x14c)),process[_0x3947e1(0x150)](0x1));let _0x54c692=await m();await q({'cwd':Z,..._0x54c692,..._0x42fb21},S),process[_0x3947e1(0x150)](0x0);}),i['on'](_0x5c52ea(0x16f),_0x19f228=>{const _0x56fcd0=_0x5c52ea;i['outputHelp'](),c['text'](_0x56fcd0(0x166)+_0x19f228);}),i[_0x5c52ea(0x14a)](process[_0x5c52ea(0x168)]),i[_0x5c52ea(0x143)][_0x5c52ea(0x153)]||i[_0x5c52ea(0x12c)]();
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 _0x3278(_0x19b013,_0x22cfee){const _0x4667d2=_0x4667();return _0x3278=function(_0x3278e3,_0x3fe500){_0x3278e3=_0x3278e3-0x1c1;let _0x2b0892=_0x4667d2[_0x3278e3];return _0x2b0892;},_0x3278(_0x19b013,_0x22cfee);}const _0x315c8c=_0x3278;(function(_0x2c5bcb,_0x3451b6){const _0x2dd0f6=_0x3278,_0xba532a=_0x2c5bcb();while(!![]){try{const _0x1ce834=parseInt(_0x2dd0f6(0x1e7))/0x1*(-parseInt(_0x2dd0f6(0x1fd))/0x2)+-parseInt(_0x2dd0f6(0x1c5))/0x3*(parseInt(_0x2dd0f6(0x1c4))/0x4)+-parseInt(_0x2dd0f6(0x1ed))/0x5*(-parseInt(_0x2dd0f6(0x1fb))/0x6)+parseInt(_0x2dd0f6(0x1fc))/0x7+parseInt(_0x2dd0f6(0x1e5))/0x8+-parseInt(_0x2dd0f6(0x1df))/0x9*(parseInt(_0x2dd0f6(0x1f8))/0xa)+-parseInt(_0x2dd0f6(0x1f3))/0xb;if(_0x1ce834===_0x3451b6)break;else _0xba532a['push'](_0xba532a['shift']());}catch(_0x4e043c){_0xba532a['push'](_0xba532a['shift']());}}}(_0x4667,0x54de0));const e=require(_0x315c8c(0x1f1)),t=require(_0x315c8c(0x1e4)),r=require('jsonwebtoken'),a=require(_0x315c8c(0x1ca)),n=require(_0x315c8c(0x1d9)),o=require('../config'),s=require(_0x315c8c(0x1de)),i=require('../utils/log'),u=require(_0x315c8c(0x1d3)),{axiosClient:l}=require(_0x315c8c(0x1e3)),c=require('qs'),d=e['gray'](_0x315c8c(0x1cf)),p=t(d);function _0x4667(){const _0xf1cb40=['zalo','error_code','Login\x20Success!','41490QeArmg','path','\x20(Time\x20out\x20after\x20','27444nCkyfN','4602759tKBnaz','662nlGXSg','permission_denied','setEnv','statusDone','error','48zcEfNB','103899VccBrS','Token\x20Invalid!','jwt','err','msg','qrcode-terminal','POST','login','Scan\x20the\x20QR\x20code\x20with\x20Zalo\x20app:\x0a','exports','Login...','statusText','appId','stop','./utils/zalo-login','start','loginUrl','application/x-www-form-urlencoded','zmpsk','statusError','log-symbols','getQRCode','then','catch','api_domain','../utils/env','486tfGcmF','request_timeout','info','statusStart','../utils/axios','ora','1156240lCsBvu','data','25dLXktr','error_msg','generate','token','checkStatus','env','265TtYcJf','bold','Login\x20failed!','decode','chalk','text','538516qLNXjn','stderr'];_0x4667=function(){return _0xf1cb40;};return _0x4667();}module[_0x315c8c(0x1ce)]=async(_0x5ac979={},_0x4bb2c5)=>{const _0x10b1b9=_0x315c8c;let _0x5e9c31;_0x4bb2c5||(_0x4bb2c5={'statusStart'(){},'statusDone'(){},'statusText'(){},'statusError'(){},'text'(){},'error'(){}}),_0x4bb2c5[_0x10b1b9(0x1e2)](d),p[_0x10b1b9(0x1d4)]();let _0x1cd519=_0x5ac979['loginMethod'],_0x3f9446=_0x5ac979[_0x10b1b9(0x1d1)]||s['getEnv'](o[_0x10b1b9(0x1ec)][_0x10b1b9(0x1d1)]),_0x5655e6=_0x5ac979[_0x10b1b9(0x1ea)],_0xd49239=''+o[_0x10b1b9(0x1dd)]+o[_0x10b1b9(0x1f9)][_0x10b1b9(0x1cc)];try{if(p[_0x10b1b9(0x1d4)](),_0x10b1b9(0x1f5)===_0x1cd519){let _0x1cbbf1;await new Promise((_0x28a0ad,_0x31fa54)=>{const _0x503148=_0x10b1b9;u[_0x503148(0x1da)](_0x3f9446)[_0x503148(0x1db)](function(_0x357538){const _0x6dc94=_0x503148;p[_0x6dc94(0x1d2)]();let _0x30afd4=_0x357538[_0x6dc94(0x1e6)];if(!_0x30afd4||_0x30afd4[_0x6dc94(0x1c8)]<0x0)return _0x31fa54(Error(_0x30afd4[_0x6dc94(0x1c9)]));let _0x4be632=_0x30afd4[_0x6dc94(0x1e6)]&&_0x30afd4[_0x6dc94(0x1e6)][_0x6dc94(0x1d5)];return _0x1cbbf1=_0x30afd4[_0x6dc94(0x1e6)]&&_0x30afd4[_0x6dc94(0x1e6)][_0x6dc94(0x1d7)],a[_0x6dc94(0x1e9)](_0x4be632,{'small':!0x0},function(_0x4b3045){const _0x1dd72c=_0x6dc94;let _0x24c063=n[_0x1dd72c(0x1e1)]+'\x20'+e[_0x1dd72c(0x1ee)](_0x1dd72c(0x1cd)+_0x4b3045);_0x4bb2c5[_0x1dd72c(0x1f2)](_0x24c063);}),s[_0x6dc94(0x1c1)](o['env']['appId'],_0x3f9446),_0x28a0ad();})[_0x503148(0x1dc)](function(_0x167fe5){const _0x12e272=_0x503148;return p[_0x12e272(0x1d2)](),_0x31fa54(_0x167fe5);});}),await new Promise((_0x1274fa,_0x4d2778)=>{const _0x3c9675=_0x10b1b9;if(!_0x1cbbf1)return _0x4d2778(Error(_0x3c9675(0x1c6)));let _0x1cce31=0x0;_0x5e9c31=setInterval(()=>{const _0x4f8a48=_0x3c9675;if(_0x4bb2c5[_0x4f8a48(0x1d0)](d+_0x4f8a48(0x1fa)+(0x3c-_0x1cce31)+'s)'),_0x1cce31>0x3c)return clearInterval(_0x5e9c31),_0x4d2778(Error(o['error_msg']['request_timeout']));_0x1cce31++,u[_0x4f8a48(0x1eb)](_0x1cbbf1)[_0x4f8a48(0x1db)](function(_0x38441e){const _0x2cc295=_0x4f8a48;p[_0x2cc295(0x1d2)]();let _0x5c6d28=_0x38441e[_0x2cc295(0x1e6)];if(_0x5c6d28&&_0x5c6d28['err']===o[_0x2cc295(0x1f6)][_0x2cc295(0x1fe)])return clearInterval(_0x5e9c31),_0x4d2778(Error(o[_0x2cc295(0x1e8)][_0x2cc295(0x1fe)]));if(_0x5c6d28&&_0x5c6d28['err']===o[_0x2cc295(0x1f6)][_0x2cc295(0x1e0)])return clearInterval(_0x5e9c31),_0x4d2778(Error(o[_0x2cc295(0x1e8)]['request_timeout']));if(_0x5c6d28&&_0x5c6d28[_0x2cc295(0x1c8)]>=0x0){clearInterval(_0x5e9c31);let _0x345a4f=_0x5c6d28[_0x2cc295(0x1e6)]&&_0x5c6d28[_0x2cc295(0x1e6)][_0x2cc295(0x1c7)];return s[_0x2cc295(0x1c1)](o[_0x2cc295(0x1ec)]['token'],_0x345a4f),_0x4bb2c5['statusDone']('Login\x20Success!'),_0x1274fa();}})[_0x4f8a48(0x1dc)](function(_0x529c53){const _0x4ca638=_0x4f8a48;return clearInterval(_0x5e9c31),p[_0x4ca638(0x1d2)](),_0x4d2778(_0x529c53);});},0x7d0);});}else await new Promise((_0x277afa,_0x5aede5)=>{const _0x26d28b=_0x10b1b9;l({'url':_0xd49239,'method':_0x26d28b(0x1cb),'headers':{'cache-control':'no-cache','content-type':_0x26d28b(0x1d6)},'data':c['stringify']({'accessToken':_0x5655e6,'appId':_0x3f9446}),'withCredentials':!0x0})[_0x26d28b(0x1db)](function(_0x339a27){const _0x1ce88a=_0x26d28b;p[_0x1ce88a(0x1d2)]();let _0x3dc33a=_0x339a27[_0x1ce88a(0x1e6)];if(!_0x3dc33a||_0x3dc33a[_0x1ce88a(0x1c8)]<0x0)return _0x5aede5(Error(_0x3dc33a[_0x1ce88a(0x1c9)]));let _0x452b70=_0x3dc33a[_0x1ce88a(0x1e6)]&&_0x3dc33a[_0x1ce88a(0x1e6)][_0x1ce88a(0x1c7)];try{let _0x2b419b=r[_0x1ce88a(0x1f0)](_0x452b70);s[_0x1ce88a(0x1c1)](o[_0x1ce88a(0x1ec)][_0x1ce88a(0x1d1)],_0x2b419b['appId']),s[_0x1ce88a(0x1c1)](o[_0x1ce88a(0x1ec)][_0x1ce88a(0x1ea)],_0x452b70);}catch(_0x19a227){return _0x5aede5(_0x19a227);}return _0x4bb2c5[_0x1ce88a(0x1c2)](_0x1ce88a(0x1f7)),_0x277afa();})[_0x26d28b(0x1dc)](function(_0x2b1d90){return p['stop'](),_0x5aede5(_0x2b1d90);});});}catch(_0x15dd59){_0x4bb2c5[_0x10b1b9(0x1d8)](_0x10b1b9(0x1ef)),i[_0x10b1b9(0x1c3)](_0x15dd59[_0x10b1b9(0x1f4)]||_0x15dd59);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 _0x10617f=_0x2fc2;function _0x2fc2(_0x196faf,_0x26799e){const _0x6cfbc9=_0x6cfb();return _0x2fc2=function(_0x2fc27e,_0x14f312){_0x2fc27e=_0x2fc27e-0x1cb;let _0x2e4367=_0x6cfbc9[_0x2fc27e];return _0x2e4367;},_0x2fc2(_0x196faf,_0x26799e);}(function(_0x5af7b1,_0x313d32){const _0x9c6c7f=_0x2fc2,_0x328343=_0x5af7b1();while(!![]){try{const _0x54ada4=-parseInt(_0x9c6c7f(0x1d8))/0x1*(parseInt(_0x9c6c7f(0x1de))/0x2)+-parseInt(_0x9c6c7f(0x1e1))/0x3+parseInt(_0x9c6c7f(0x1df))/0x4*(-parseInt(_0x9c6c7f(0x1cd))/0x5)+-parseInt(_0x9c6c7f(0x1d7))/0x6+parseInt(_0x9c6c7f(0x1d0))/0x7+-parseInt(_0x9c6c7f(0x1db))/0x8+-parseInt(_0x9c6c7f(0x1d6))/0x9*(-parseInt(_0x9c6c7f(0x1d4))/0xa);if(_0x54ada4===_0x313d32)break;else _0x328343['push'](_0x328343['shift']());}catch(_0xbb898b){_0x328343['push'](_0x328343['shift']());}}}(_0x6cfb,0xc1498));const e=require(_0x10617f(0x1dd)),i=require(_0x10617f(0x1e3)),o=require(_0x10617f(0x1cc));function _0x6cfb(){const _0x30cc0a=['2.\x20Login\x20With\x20App\x20Access\x20Token','2251371UlVQwl','1.\x20Login\x20Via\x20QR\x20Code\x20With\x20Zalo\x20App','../../utils/env','getEnv','prompt','Zalo\x20Access\x20Token:','input','loginMethod','zalo','env','Mimi\x20App\x20ID\x20is\x20required','../../config','3998285YVNPyZ','appId','token','7052710OZTfzi','length','Zalo\x20Access\x20Token\x20is\x20required','Choose\x20a\x20Login\x20Method','50AXMyCQ','Mini\x20App\x20ID:','4175181UQaaVm','1126446MNwyex','1kUaXRu','then','resolve','832040sXRkjz','accessToken','inquirer','1387022aerhDH','4iSCqSM'];_0x6cfb=function(){return _0x30cc0a;};return _0x6cfb();}module['exports']=function(){const _0x1b8036=_0x10617f;let _0x13975e=[{'type':_0x1b8036(0x1e7),'name':_0x1b8036(0x1ce),'message':_0x1b8036(0x1d5),'when':()=>!i[_0x1b8036(0x1e4)](o[_0x1b8036(0x1ea)][_0x1b8036(0x1ce)]),'validate':_0x26674f=>new Promise((_0xce7c2,_0x21b6d9)=>{const _0x20cc92=_0x1b8036;_0x26674f?_0xce7c2(!0x0):_0x21b6d9(Error(_0x20cc92(0x1cb)));})},{'type':'list','name':_0x1b8036(0x1e8),'message':_0x1b8036(0x1d3),'choices':[{'name':_0x1b8036(0x1e2),'value':_0x1b8036(0x1e9)},{'name':_0x1b8036(0x1e0),'value':_0x1b8036(0x1dc)}],'validate':_0x214c29=>new Promise((_0x397965,_0x304a9c)=>{const _0x11eb52=_0x1b8036;_0x214c29&&_0x214c29[_0x11eb52(0x1d1)]?_0x397965(!0x0):_0x304a9c(Error('Login\x20method\x20is\x20required!'));})},{'type':_0x1b8036(0x1e7),'name':_0x1b8036(0x1cf),'message':_0x1b8036(0x1e6),'when':_0x288b28=>_0x1b8036(0x1dc)===_0x288b28[_0x1b8036(0x1e8)],'validate':_0x259808=>new Promise((_0x12f662,_0x178dd9)=>{const _0x11906e=_0x1b8036;_0x259808?_0x12f662(!0x0):_0x178dd9(Error(_0x11906e(0x1d2)));})}];return e[_0x1b8036(0x1e5)](_0x13975e)[_0x1b8036(0x1d9)](_0x5807b9=>Promise[_0x1b8036(0x1da)](_0x5807b9));};
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 _0xfd093a=_0x1993;(function(_0x13a9e5,_0x5f5acf){const _0x566eeb=_0x1993,_0x3d14dd=_0x13a9e5();while(!![]){try{const _0x19aac1=-parseInt(_0x566eeb(0xa7))/0x1*(parseInt(_0x566eeb(0xa6))/0x2)+-parseInt(_0x566eeb(0xa8))/0x3+-parseInt(_0x566eeb(0xae))/0x4*(parseInt(_0x566eeb(0xaf))/0x5)+parseInt(_0x566eeb(0xb1))/0x6+parseInt(_0x566eeb(0xa3))/0x7+-parseInt(_0x566eeb(0xad))/0x8*(-parseInt(_0x566eeb(0xb0))/0x9)+parseInt(_0x566eeb(0xb4))/0xa;if(_0x19aac1===_0x5f5acf)break;else _0x3d14dd['push'](_0x3d14dd['shift']());}catch(_0x1a6032){_0x3d14dd['push'](_0x3d14dd['shift']());}}}(_0xd4d5,0xb5ffa));function _0x1993(_0x40abce,_0x2660b9){const _0xd4d5b0=_0xd4d5();return _0x1993=function(_0x199334,_0x29f9fb){_0x199334=_0x199334-0xa3;let _0x55cfff=_0xd4d5b0[_0x199334];return _0x55cfff;},_0x1993(_0x40abce,_0x2660b9);}const e=require(_0xfd093a(0xa4)),{axiosClient:t}=require(_0xfd093a(0xaa));function _0xd4d5(){const _0x516758=['430085rgjYZG','45GwkGvR','7340826MfNNwg','path','get','7215440xkWWft','checkLoginStatus','requestLogin','4135810soFsSu','../../config','?appId=','2wiotqM','748228zhpVdg','1899207roPZNk','no-cache','../../utils/axios','api_domain','?zmpsk=','1547504KbYLxc','64QxPvky'];_0xd4d5=function(){return _0x516758;};return _0xd4d5();}module['exports']=(function(){const _0x1fdd52=_0xfd093a;let _0x12ad74=''+e[_0x1fdd52(0xab)]+e['path'][_0x1fdd52(0xb6)],_0x8776bd=''+e[_0x1fdd52(0xab)]+e[_0x1fdd52(0xb2)][_0x1fdd52(0xb5)];return{'getQRCode':_0x3daaba=>t({'method':_0x1fdd52(0xb3),'url':_0x12ad74+_0x1fdd52(0xa5)+_0x3daaba,'headers':{'cache-control':_0x1fdd52(0xa9)},'withCredentials':!0x0}),'checkStatus':_0x3b1db6=>t({'method':_0x1fdd52(0xb3),'url':_0x8776bd+_0x1fdd52(0xac)+_0x3b1db6,'headers':{'cache-control':_0x1fdd52(0xa9)},'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 _0x2be880=_0x2be7;function _0x2be7(_0x1bf627,_0x3ce0cf){const _0x2c9b2d=_0x2c9b();return _0x2be7=function(_0x2be752,_0xe88197){_0x2be752=_0x2be752-0x16c;let _0x552330=_0x2c9b2d[_0x2be752];return _0x552330;},_0x2be7(_0x1bf627,_0x3ce0cf);}(function(_0x4e2bf8,_0x20084a){const _0x375653=_0x2be7,_0x4708e6=_0x4e2bf8();while(!![]){try{const _0x2073b1=parseInt(_0x375653(0x179))/0x1+parseInt(_0x375653(0x173))/0x2+parseInt(_0x375653(0x171))/0x3*(parseInt(_0x375653(0x16e))/0x4)+parseInt(_0x375653(0x178))/0x5*(parseInt(_0x375653(0x17e))/0x6)+parseInt(_0x375653(0x16d))/0x7*(-parseInt(_0x375653(0x17d))/0x8)+parseInt(_0x375653(0x172))/0x9+parseInt(_0x375653(0x177))/0xa*(-parseInt(_0x375653(0x174))/0xb);if(_0x2073b1===_0x20084a)break;else _0x4708e6['push'](_0x4708e6['shift']());}catch(_0x44c625){_0x4708e6['push'](_0x4708e6['shift']());}}}(_0x2c9b,0x7d89e));function _0x2c9b(){const _0x14a1cc=['cwd','664uHmEow','2145498YzofoC','zmp-ui','copyFileAsync','resolve','uiFramework','./src/css/icons.css','38822MocefL','316QOFkjC','exec-sh','path','28311AmWKBs','6333192VWkMvE','1352788AoamKo','11GHeEXe','./icons.css','zmp-framework','18210470YCCtmE','5VaIHih','312383eDPdEu','exports','promise'];_0x2c9b=function(){return _0x14a1cc;};return _0x2c9b();}const e=require('../../utils/fs-extra'),s=require(_0x2be880(0x170)),r=require(_0x2be880(0x16f));async function i(_0x3c3d86){const _0x7180d5=_0x2be880;if(_0x7180d5(0x176)===_0x3c3d86[_0x7180d5(0x182)])e[_0x7180d5(0x180)](s['resolve'](__dirname,_0x7180d5(0x175)),s[_0x7180d5(0x181)](_0x3c3d86[_0x7180d5(0x17c)],_0x7180d5(0x16c))),await r[_0x7180d5(0x17b)]('npm\x20install\x20zmp-framework@latest',!0x0);else{if(_0x7180d5(0x17f)!==_0x3c3d86['uiFramework'])return;await r['promise']('npm\x20install\x20zmp-ui@latest',!0x0);}}module[_0x2be880(0x17a)]=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 _0x3d6b4b=_0x4e8d;(function(_0x303dc5,_0x5d2343){const _0x72d811=_0x4e8d,_0x16476a=_0x303dc5();while(!![]){try{const _0x81d1b0=parseInt(_0x72d811(0x150))/0x1+-parseInt(_0x72d811(0x161))/0x2*(parseInt(_0x72d811(0x158))/0x3)+-parseInt(_0x72d811(0x160))/0x4*(-parseInt(_0x72d811(0x15f))/0x5)+-parseInt(_0x72d811(0x15a))/0x6+-parseInt(_0x72d811(0x152))/0x7+-parseInt(_0x72d811(0x155))/0x8*(-parseInt(_0x72d811(0x159))/0x9)+-parseInt(_0x72d811(0x15e))/0xa;if(_0x81d1b0===_0x5d2343)break;else _0x16476a['push'](_0x16476a['shift']());}catch(_0x482a33){_0x16476a['push'](_0x16476a['shift']());}}}(_0x114a,0xa9d68));const r=require('chalk'),t=require('path'),e=require(_0x3d6b4b(0x151)),s=require(_0x3d6b4b(0x14f)),{errorExit:a}=require(_0x3d6b4b(0x145)),o=require(_0x3d6b4b(0x146)),i=r[_0x3d6b4b(0x143)]('(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)');async function u(_0x486770={},_0x540e58){const _0x288c9e=_0x3d6b4b;let _0x54d76d=_0x486770[_0x288c9e(0x153)]||process['cwd']();_0x540e58||(_0x540e58={'statusStart'(){},'statusDone'(){},'statusText'(){},'statusError'(){},'text'(){},'error'(){},'showOnUI'(){}}),_0x540e58[_0x288c9e(0x154)](_0x288c9e(0x141)+i);try{let _0x35d794,_0x4655cc=require((_0x35d794=o[_0x288c9e(0x15d)][_0x288c9e(0x156)],t[_0x288c9e(0x14e)](_0x54d76d,_0x35d794)));_0x288c9e(0x14a)===_0x4655cc[_0x288c9e(0x157)]?await s(_0x486770):(_0x540e58['text'](e[_0x288c9e(0x15c)]+_0x288c9e(0x15b)+_0x4655cc[_0x288c9e(0x157)]+_0x288c9e(0x142)),process[_0x288c9e(0x14d)](0x1)),_0x540e58[_0x288c9e(0x144)](r[_0x288c9e(0x148)]['green'](_0x288c9e(0x14c))+_0x288c9e(0x147));}catch(_0x461b39){_0x540e58[_0x288c9e(0x14b)]('Migration\x20error!'),a(_0x461b39);}}function _0x4e8d(_0x5302fe,_0x2c7bb8){const _0x114a52=_0x114a();return _0x4e8d=function(_0x4e8ddc,_0x88a30f){_0x4e8ddc=_0x4e8ddc-0x141;let _0x5df190=_0x114a52[_0x4e8ddc];return _0x5df190;},_0x4e8d(_0x5302fe,_0x2c7bb8);}function _0x114a(){const _0x257925=['log-symbols','4595801PUrAsQ','cwd','statusStart','8ZRBNgy','zmpConfig','framework','3vDDtMa','562698UoJryy','713010WyvPHd','\x20Project\x20using\x20ZMP\x20','error','filename','1787650mrThJc','2340rTmKwd','5708FLfadT','425082AXRwTL','Migrating\x20Your\x20App\x20','\x20is\x20not\x20yet\x20supported','gray','statusDone','../utils/error','../config','\x20💪','bold','exports','react','statusError','Migration\x20Done!','exit','join','./utils/migrate-react','1131982UxrXKe'];_0x114a=function(){return _0x257925;};return _0x114a();}module[_0x3d6b4b(0x149)]=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 _0x331d(){const _0x13c49f=['Icons\x20(fix\x20icon\x20not\x20displayed\x20in\x20iOS\x20v16+)','zmp-framework','10364YzZpkT','1278603orqcOT','other','344025YmCEhM','52nRyRod','445ckciKC','Version\x201\x20=>\x20Version\x202','inquirer','zmp-ui','iconsv3','9732VauspJ','Other','migrateVersion','resolve','then','6WerWol','Choose\x20which\x20framework\x20or\x20library\x20used\x20in\x20your\x20project','8TCAQGU','670428WlstbU','2343330jJcajP','18599WJoHeH','list'];_0x331d=function(){return _0x13c49f;};return _0x331d();}const _0x2d26df=_0x2eb4;(function(_0x2c48ea,_0x44fe83){const _0x34fbd6=_0x2eb4,_0x584612=_0x2c48ea();while(!![]){try{const _0x4c085a=parseInt(_0x34fbd6(0xb1))/0x1*(-parseInt(_0x34fbd6(0xad))/0x2)+parseInt(_0x34fbd6(0xa7))/0x3+parseInt(_0x34fbd6(0xb7))/0x4*(-parseInt(_0x34fbd6(0xb2))/0x5)+parseInt(_0x34fbd6(0xa4))/0x6*(parseInt(_0x34fbd6(0xa9))/0x7)+parseInt(_0x34fbd6(0xa6))/0x8*(parseInt(_0x34fbd6(0xae))/0x9)+parseInt(_0x34fbd6(0xa8))/0xa+parseInt(_0x34fbd6(0xb0))/0xb;if(_0x4c085a===_0x44fe83)break;else _0x584612['push'](_0x584612['shift']());}catch(_0x57f1b2){_0x584612['push'](_0x584612['shift']());}}}(_0x331d,0x2415f));const e=require(_0x2d26df(0xb4)),r=[{'type':_0x2d26df(0xaa),'name':_0x2d26df(0xa1),'message':'What\x20version\x20do\x20you\x20want\x20to\x20migrate?','choices':[{'name':_0x2d26df(0xb3),'value':'v1tov2'},{'name':_0x2d26df(0xab),'value':'iconsv3'}]},{'type':'list','name':'uiFramework','message':_0x2d26df(0xa5),'when':_0x380501=>_0x2d26df(0xb6)===_0x380501['migrateVersion'],'choices':[{'name':_0x2d26df(0xac),'value':_0x2d26df(0xac)},{'name':'zmp-ui','value':_0x2d26df(0xb5)},{'name':_0x2d26df(0xb8),'value':_0x2d26df(0xaf)}]}];function _0x2eb4(_0x20b9fb,_0x50f187){const _0x331d5e=_0x331d();return _0x2eb4=function(_0x2eb44b,_0x3abe59){_0x2eb44b=_0x2eb44b-0xa1;let _0x44ad33=_0x331d5e[_0x2eb44b];return _0x44ad33;},_0x2eb4(_0x20b9fb,_0x50f187);}module['exports']=function(){const _0x5913ba=_0x2d26df;return e['prompt'](r)[_0x5913ba(0xa3)](_0x5ecaa2=>Promise[_0x5913ba(0xa2)](_0x5ecaa2));};
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';function _0x465a(_0xf6a891,_0x3719e5){const _0x484c75=_0x484c();return _0x465a=function(_0x465af0,_0x28a1bb){_0x465af0=_0x465af0-0x1e6;let _0x59455a=_0x484c75[_0x465af0];return _0x59455a;},_0x465a(_0xf6a891,_0x3719e5);}const _0x1f65bf=_0x465a;(function(_0x3cd555,_0x92386b){const _0x139070=_0x465a,_0x4aa08a=_0x3cd555();while(!![]){try{const _0x1132d1=-parseInt(_0x139070(0x1ef))/0x1+-parseInt(_0x139070(0x1ff))/0x2+parseInt(_0x139070(0x1f7))/0x3+parseInt(_0x139070(0x1f5))/0x4+-parseInt(_0x139070(0x1fc))/0x5+parseInt(_0x139070(0x1fd))/0x6*(parseInt(_0x139070(0x1ee))/0x7)+parseInt(_0x139070(0x1f2))/0x8*(parseInt(_0x139070(0x1e8))/0x9);if(_0x1132d1===_0x92386b)break;else _0x4aa08a['push'](_0x4aa08a['shift']());}catch(_0x25fd95){_0x4aa08a['push'](_0x4aa08a['shift']());}}}(_0x484c,0x5a92c));const e=require(_0x1f65bf(0x1e9)),i=require(_0x1f65bf(0x1fa)),t=require(_0x1f65bf(0x1e6)),s=require(_0x1f65bf(0x1ea)),r=require('../icons/update-icon-v3');async function a(_0x386f89){const _0x358dde=_0x1f65bf;let _0x1f1aa9=e(_0x386f89);i[_0x358dde(0x1eb)](t[_0x358dde(0x1f6)](_0x386f89['cwd'],_0x358dde(0x1f1)),_0x1f1aa9),i[_0x358dde(0x1fb)](t[_0x358dde(0x1e7)](__dirname,_0x358dde(0x1f8)),t[_0x358dde(0x1e7)](_0x386f89[_0x358dde(0x1ec)],_0x358dde(0x1f4))),await s[_0x358dde(0x1ed)](_0x358dde(0x1fe),!0x0);}async function n(_0x4da82d){const _0x4fed50=_0x1f65bf;switch(_0x4da82d['migrateVersion']){case _0x4fed50(0x1f3):await a(_0x4da82d);break;case _0x4fed50(0x1f9):await r(_0x4da82d);}}module[_0x1f65bf(0x1f0)]=n;function _0x484c(){const _0x11c2a0=['../../utils/fs-extra','copyFileAsync','3459365JHSmoN','1238196OKdvlQ','npm\x20install\x20vite\x20@vitejs/plugin-react-refresh\x20--save-dev','719020NIuLfw','path','resolve','7454214HmECbJ','../templates/v2/generate-index.react','exec-sh','writeFileSync','cwd','promise','7mgfJJj','589781HPKMOI','exports','index.html','8NMjdmj','v1tov2','vite.config.js','1735468HcqziX','join','1631019CkuBva','../templates/v2/vite.config.js','iconsv3'];_0x484c=function(){return _0x11c2a0;};return _0x484c();}
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": "3.15.15",
3
+ "version": "4.0.1",
4
4
  "description": "ZMP command line utility (CLI)",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -60,7 +60,6 @@
60
60
  "proxy-agent": "^6.2.1",
61
61
  "qrcode": "^1.4.4",
62
62
  "qrcode-terminal": "^0.12.0",
63
- "qs": "^6.14.0",
64
63
  "react-refresh": "^0.9.0",
65
64
  "resumablejs": "^1.1.0",
66
65
  "rimraf": "^3.0.0",
@@ -76,7 +75,7 @@
76
75
  "xhr2": "^0.2.1",
77
76
  "xmlhttprequest": "^1.8.0",
78
77
  "zip-local": "^0.3.4",
79
- "zmp-cli-core": "~1.0.11"
78
+ "zmp-cli-core": "~1.1.3"
80
79
  },
81
80
  "overrides": {
82
81
  "chii": {