zmp-cli 3.15.12 → 3.15.14

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/deploy/utils/request-upload.js +1 -1
  11. package/deploy/utils/upload-app.js +1 -1
  12. package/index.js +1 -1
  13. package/login/index.js +1 -1
  14. package/login/utils/get-options.js +1 -1
  15. package/login/utils/zalo-login.js +1 -1
  16. package/migrate/icons/update-icon-v3.js +1 -1
  17. package/migrate/index.js +1 -1
  18. package/migrate/utils/get-options.js +1 -1
  19. package/migrate/utils/migrate-react.js +1 -1
  20. package/package.json +11 -2
  21. package/start/index.js +1 -1
  22. package/sync/index-to-app-config.js +1 -1
  23. package/sync/index.js +1 -1
  24. package/utils/axios.js +1 -1
  25. package/utils/check-update.js +1 -1
  26. package/utils/constants.js +1 -1
  27. package/utils/env.js +1 -1
  28. package/utils/error.js +1 -1
  29. package/utils/find-files-by-ext.js +1 -1
  30. package/utils/find-free-port.js +1 -1
  31. package/utils/fs-extra.js +1 -1
  32. package/utils/generate-pages-map.js +1 -1
  33. package/utils/get-app-info.js +1 -1
  34. package/utils/get-current-project.js +1 -1
  35. package/utils/get-ip.js +1 -1
  36. package/utils/get-latest-version.js +1 -1
  37. package/utils/log.js +1 -1
  38. package/utils/node-blob.js +1 -1
  39. package/utils/resumable.d.js +1 -1
  40. package/utils/resumable.js +1 -1
  41. package/utils/spinner.js +1 -1
  42. package/utils/tunnel.js +1 -1
package/build/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x58231b=_0x589a;function _0x589a(_0x10700b,_0x4e3528){const _0x250272=_0x2502();return _0x589a=function(_0x589a84,_0x27f81e){_0x589a84=_0x589a84-0xde;let _0x49a205=_0x250272[_0x589a84];return _0x49a205;},_0x589a(_0x10700b,_0x4e3528);}(function(_0x71437a,_0x21aaa8){const _0x352ca4=_0x589a,_0x328714=_0x71437a();while(!![]){try{const _0x1c04ed=parseInt(_0x352ca4(0xf7))/0x1+parseInt(_0x352ca4(0xe4))/0x2*(parseInt(_0x352ca4(0xe5))/0x3)+-parseInt(_0x352ca4(0xdf))/0x4*(-parseInt(_0x352ca4(0x108))/0x5)+-parseInt(_0x352ca4(0x113))/0x6*(-parseInt(_0x352ca4(0x100))/0x7)+parseInt(_0x352ca4(0xe0))/0x8*(-parseInt(_0x352ca4(0xe1))/0x9)+parseInt(_0x352ca4(0xf1))/0xa*(parseInt(_0x352ca4(0x109))/0xb)+parseInt(_0x352ca4(0xef))/0xc*(-parseInt(_0x352ca4(0xde))/0xd);if(_0x1c04ed===_0x21aaa8)break;else _0x328714['push'](_0x328714['shift']());}catch(_0x440a24){_0x328714['push'](_0x328714['shift']());}}}(_0x2502,0x87377));function _0x2502(){const _0x511628=['www/','cwd','join','Building\x20for\x20production...','bold','Warning:\x20This\x20CLI\x20version\x20will\x20work\x20better\x20with\x20zmp-framework\x20version\x201.5.0\x20or\x20higher','203SjpIat','Building\x20development\x20version...','../utils/env','default','../utils/error','chalk','appConfigJson','getEnv','1979755fDIjeb','22aLMUBG','env','NODE_ENV','production','error','../utils/get-latest-version','statusDone','mode','filename','Build\x20Done!\x0a','61458ECeAvI','143FAsLSH','8RbFQmn','69432WcLaxg','675oEBsqw','exports','writeFileSync','247444vfkvMC','12CZGyaE','text','www','green','statusError','appConfig','zmp-framework','nextVersion','zmp-cli-core','latestVersion','1785012PkGzAp','stringify','2594170mfmBQW','gray','../config','Building...\x20(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)','yellow','../utils/fs-extra','738362AbCZPk','node_modules','appId'];_0x2502=function(){return _0x511628;};return _0x2502();}const e=require(_0x58231b(0x105)),r=require('ora'),t=require('path'),i=require('@rollup/plugin-dynamic-import-vars')[_0x58231b(0x103)],o=require('@rollup/plugin-replace'),{buildApp:n}=require(_0x58231b(0xed)),u=require(_0x58231b(0xf6)),a=require(_0x58231b(0x102)),{errorExit:s}=require(_0x58231b(0x104)),l=require(_0x58231b(0xf3)),p=require('../utils/generate-pages-map'),{existsSync:g}=require('fs'),c=require(_0x58231b(0x10e)),w=a[_0x58231b(0x107)](_0x58231b(0x10b))||'production',d=e[_0x58231b(0xf2)](_0x58231b(0xf4)),m=e[_0x58231b(0xf5)](_0x58231b(0xff)),f=r(_0x58231b(0x10c)===w?_0x58231b(0xfd):_0x58231b(0x101));module[_0x58231b(0xe2)]=async(_0x1b2395={},_0x4ca534)=>{const _0x2d7e67=_0x58231b;let _0x4a3b16=_0x1b2395[_0x2d7e67(0xfb)]||process['cwd'](),_0x418cfe=_0xec279f=>t[_0x2d7e67(0xfc)](_0x4a3b16,_0xec279f),_0xaf1c1f=_0x1b2395[_0x2d7e67(0x106)]||require(_0x418cfe(l['filename'][_0x2d7e67(0xea)]));_0x4ca534||(_0x4ca534={'statusStart'(){},'statusDone'(){},'statusError'(){},'text'(){},'error'(){}}),g(t[_0x2d7e67(0xfc)](_0x4a3b16,_0x2d7e67(0xf8),_0x2d7e67(0xeb)))&&_0x4ca534[_0x2d7e67(0xe6)](m),f['start'](),_0x4ca534['statusStart'](d);try{let _0x308288=a[_0x2d7e67(0x107)](l[_0x2d7e67(0x10a)][_0x2d7e67(0xf9)]),_0x35e447=_0x1b2395[_0x2d7e67(0xec)];if(!_0x35e447){let _0x2ef433=await c(_0x308288,_0x1b2395),_0x521bd2=_0x2ef433&&_0x2ef433['latestVersion']&&Number(_0x2ef433[_0x2d7e67(0xee)]);null==_0x521bd2&&(_0x521bd2=0x0),_0x35e447=_0x521bd2+0x1;}let {appConfigJson:_0x375914}=await n({'cwd':_0x4a3b16,'mode':_0x1b2395[_0x2d7e67(0x110)]||w,'appId':_0x308288,'nextVersion':_0x35e447,'appConfig':_0xaf1c1f,'outDir':_0x2d7e67(0xe7),'vite2RollupPlugins':[o({'values':{'ZMP_IMPORT_PAGES':()=>p(_0x4a3b16)}}),i({'warnOnError':!0x0})],'customLogger':{'info':_0x4ca534[_0x2d7e67(0xe6)],'warn':_0x4ca534['text'],'warnOnce':_0x4ca534['text'],'error':_0x4ca534[_0x2d7e67(0x10d)]}});return _0x375914&&u[_0x2d7e67(0xe3)](_0x418cfe(_0x2d7e67(0xfa)+l[_0x2d7e67(0x111)][_0x2d7e67(0xea)]),JSON[_0x2d7e67(0xf0)](_0x375914)),_0x4ca534[_0x2d7e67(0x10f)](''+e[_0x2d7e67(0xfe)][_0x2d7e67(0xe8)](_0x2d7e67(0x112))),_0x375914;}catch(_0x27b72a){_0x4ca534[_0x2d7e67(0xe9)]('Error\x20building\x20project'),s(_0x27b72a);return;}};
1
+ 'use strict';function _0x440a(_0x364ae2,_0x1b692f){const _0x4f862f=_0x4f86();return _0x440a=function(_0x440a01,_0x1d41fb){_0x440a01=_0x440a01-0x1c3;let _0x48ae66=_0x4f862f[_0x440a01];return _0x48ae66;},_0x440a(_0x364ae2,_0x1b692f);}function _0x4f86(){const _0x4e28d2=['7512tENmdc','latestVersion','getEnv','@rollup/plugin-replace','gray','363184vWYWan','../config','join','yellow','Building\x20development\x20version...','stringify','../utils/error','363702UBArMb','appConfigJson','NODE_ENV','../utils/fs-extra','default','error','937137rLfrol','@rollup/plugin-dynamic-import-vars','production','655ajEybX','42GxtYrD','zmp-framework','zmp-cli-core','appConfig','appId','bold','filename','Building\x20for\x20production...','statusDone','text','../utils/get-latest-version','278549tfNHpP','Build\x20Done!\x0a','exports','mode','8073216kPASfl','ora','statusError','Warning:\x20This\x20CLI\x20version\x20will\x20work\x20better\x20with\x20zmp-framework\x20version\x201.5.0\x20or\x20higher','statusStart','env','851940RmhxcB','writeFileSync','path','www','nextVersion','start'];_0x4f86=function(){return _0x4e28d2;};return _0x4f86();}const _0x46878a=_0x440a;(function(_0x4cbca6,_0x436ccd){const _0x355188=_0x440a,_0x29c4cb=_0x4cbca6();while(!![]){try{const _0x4d479a=-parseInt(_0x355188(0x1c7))/0x1+parseInt(_0x355188(0x1d1))/0x2+parseInt(_0x355188(0x1e9))/0x3+-parseInt(_0x355188(0x1d7))/0x4*(-parseInt(_0x355188(0x1ec))/0x5)+parseInt(_0x355188(0x1e3))/0x6*(parseInt(_0x355188(0x1ed))/0x7)+parseInt(_0x355188(0x1dc))/0x8+-parseInt(_0x355188(0x1cb))/0x9;if(_0x4d479a===_0x436ccd)break;else _0x29c4cb['push'](_0x29c4cb['shift']());}catch(_0x424e3c){_0x29c4cb['push'](_0x29c4cb['shift']());}}}(_0x4f86,0x35326));const e=require('chalk'),r=require(_0x46878a(0x1cc)),t=require(_0x46878a(0x1d3)),i=require(_0x46878a(0x1ea))[_0x46878a(0x1e7)],o=require(_0x46878a(0x1da)),{buildApp:n}=require(_0x46878a(0x1ef)),u=require(_0x46878a(0x1e6)),a=require('../utils/env'),{errorExit:s}=require(_0x46878a(0x1e2)),l=require(_0x46878a(0x1dd)),p=require('../utils/generate-pages-map'),{existsSync:g}=require('fs'),c=require(_0x46878a(0x1c6)),w=a[_0x46878a(0x1d9)](_0x46878a(0x1e5))||_0x46878a(0x1eb),d=e[_0x46878a(0x1db)]('Building...\x20(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)'),m=e[_0x46878a(0x1df)](_0x46878a(0x1ce)),f=r(_0x46878a(0x1eb)===w?_0x46878a(0x1c3):_0x46878a(0x1e0));module[_0x46878a(0x1c9)]=async(_0xcb3bb2={},_0x1c8b34)=>{const _0x4271b8=_0x46878a;let _0x5d8193=_0xcb3bb2['cwd']||process['cwd'](),_0x28f604=_0x3d8b14=>t[_0x4271b8(0x1de)](_0x5d8193,_0x3d8b14),_0x4d1e20=_0xcb3bb2[_0x4271b8(0x1e4)]||require(_0x28f604(l[_0x4271b8(0x1f3)][_0x4271b8(0x1f0)]));_0x1c8b34||(_0x1c8b34={'statusStart'(){},'statusDone'(){},'statusError'(){},'text'(){},'error'(){}}),g(t[_0x4271b8(0x1de)](_0x5d8193,'node_modules',_0x4271b8(0x1ee)))&&_0x1c8b34['text'](m),f[_0x4271b8(0x1d6)](),_0x1c8b34[_0x4271b8(0x1cf)](d);try{let _0x68c02c=a['getEnv'](l[_0x4271b8(0x1d0)][_0x4271b8(0x1f1)]),_0x3fcdae=_0xcb3bb2[_0x4271b8(0x1d5)];if(!_0x3fcdae){let _0x46bd20=await c(_0x68c02c,_0xcb3bb2),_0x39c8e4=_0x46bd20&&_0x46bd20[_0x4271b8(0x1d8)]&&Number(_0x46bd20[_0x4271b8(0x1d8)]);null==_0x39c8e4&&(_0x39c8e4=0x0),_0x3fcdae=_0x39c8e4+0x1;}let {appConfigJson:_0x323e56}=await n({'cwd':_0x5d8193,'mode':_0xcb3bb2[_0x4271b8(0x1ca)]||w,'appId':_0x68c02c,'nextVersion':_0x3fcdae,'appConfig':_0x4d1e20,'outDir':_0x4271b8(0x1d4),'vite2RollupPlugins':[o({'values':{'ZMP_IMPORT_PAGES':()=>p(_0x5d8193)}}),i({'warnOnError':!0x0})],'customLogger':{'info':_0x1c8b34[_0x4271b8(0x1c5)],'warn':_0x1c8b34[_0x4271b8(0x1c5)],'warnOnce':_0x1c8b34['text'],'error':_0x1c8b34[_0x4271b8(0x1e8)]}});return _0x323e56&&u[_0x4271b8(0x1d2)](_0x28f604('www/'+l[_0x4271b8(0x1f3)][_0x4271b8(0x1f0)]),JSON[_0x4271b8(0x1e1)](_0x323e56)),_0x1c8b34[_0x4271b8(0x1c4)](''+e[_0x4271b8(0x1f2)]['green'](_0x4271b8(0x1c8))),_0x323e56;}catch(_0xc907b3){_0x1c8b34[_0x4271b8(0x1cd)]('Error\x20building\x20project'),s(_0xc907b3);return;}};
package/config/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var _0x5f5559=_0x35b6;(function(_0x55a45f,_0x5daba3){var _0x1e40b8=_0x35b6,_0x45b7e6=_0x55a45f();while(!![]){try{var _0x9b852f=-parseInt(_0x1e40b8(0x1ce))/0x1*(-parseInt(_0x1e40b8(0x1c4))/0x2)+-parseInt(_0x1e40b8(0x1c5))/0x3*(-parseInt(_0x1e40b8(0x1ba))/0x4)+parseInt(_0x1e40b8(0x1c9))/0x5*(parseInt(_0x1e40b8(0x1c1))/0x6)+parseInt(_0x1e40b8(0x1cc))/0x7+-parseInt(_0x1e40b8(0x1b9))/0x8*(parseInt(_0x1e40b8(0x1bb))/0x9)+parseInt(_0x1e40b8(0x1c8))/0xa*(-parseInt(_0x1e40b8(0x1c0))/0xb)+-parseInt(_0x1e40b8(0x1ca))/0xc;if(_0x9b852f===_0x5daba3)break;else _0x45b7e6['push'](_0x45b7e6['shift']());}catch(_0x21e6f1){_0x45b7e6['push'](_0x45b7e6['shift']());}}}(_0x279d,0x541fa));function _0x35b6(_0x5ef074,_0x3625f9){var _0x279d25=_0x279d();return _0x35b6=function(_0x35b65a,_0x4b7756){_0x35b65a=_0x35b65a-0x1b9;var _0x3d4421=_0x279d25[_0x35b65a];return _0x3d4421;},_0x35b6(_0x5ef074,_0x3625f9);}function _0x279d(){var _0x372919=['app/upload-chunk','28746VNEQZE','117PfZleJ','octet','admin/login','10qplqgZ','2129255VdxKQZ','10517472voxtMN','package.json','2740983hZEWul','//h5.zdn.vn/zapps/','37CsXBHm','app/get-info','https://zmp-api.developers.zalo.me/','admin/get-login-status','ZMP_TOKEN','admin/request-login','APP_ID','exports','1192QfKAon','49372OxcWvI','3771bFlLAC','dev-tools/app/get-info','cwd','Permission\x20denied.\x20Please\x20login\x20again.\x20(Tips:\x20Run\x20\x27zmp\x20login\x27)','App\x20config\x20not\x20found.\x20Please\x20re-init\x20project.\x20(Tips:\x20Run\x20\x27zmp\x20init\x27)','6018551PzmvLn','6sgXwuW','app/request-upload'];_0x279d=function(){return _0x372919;};return _0x279d();}module[_0x5f5559(0x1d5)]={'filename':{'appConfig':'app-config.json','zmpConfig':'zmp-cli.json','packageJson':_0x5f5559(0x1cb)},'api_domain':_0x5f5559(0x1d0),'zdn_url':_0x5f5559(0x1cd),'path':{'login':_0x5f5559(0x1c7),'requestLogin':_0x5f5559(0x1d3),'checkLoginStatus':_0x5f5559(0x1d1),'uploadAppByChunk':_0x5f5559(0x1c3),'requestUploadResumable':_0x5f5559(0x1c2),'getAppInfo':_0x5f5559(0x1cf),'getLatestVersion':_0x5f5559(0x1bc)},'dirname':__dirname,'root_env':()=>process[_0x5f5559(0x1bd)]()+'/.env','env':{'appId':_0x5f5559(0x1d4),'token':_0x5f5559(0x1d2)},'error_code':{'app_config_not_found':-0x578,'permission_denied':-0x7d1,'request_timeout':-0x7d3},'error_msg':{'app_config_not_found':_0x5f5559(0x1bf),'permission_denied':_0x5f5559(0x1be),'request_timeout':'Request\x20Timeout'},'resumable_option':{'chunkSize':0x7d000,'simultaneousUploads':0x4,'testChunks':!0x0,'throttleProgressCallbacks':0x1,'method':_0x5f5559(0x1c6),'forceChunkSize':!0x1}};
1
+ 'use strict';var _0x5d4850=_0x4a67;(function(_0x505acb,_0x20e8cf){var _0x457bc9=_0x4a67,_0x2e9cb4=_0x505acb();while(!![]){try{var _0x24eaf7=parseInt(_0x457bc9(0x1ab))/0x1+parseInt(_0x457bc9(0x19b))/0x2+-parseInt(_0x457bc9(0x198))/0x3+-parseInt(_0x457bc9(0x1a7))/0x4+parseInt(_0x457bc9(0x1aa))/0x5*(-parseInt(_0x457bc9(0x1a2))/0x6)+-parseInt(_0x457bc9(0x1a8))/0x7+parseInt(_0x457bc9(0x199))/0x8*(parseInt(_0x457bc9(0x1ac))/0x9);if(_0x24eaf7===_0x20e8cf)break;else _0x2e9cb4['push'](_0x2e9cb4['shift']());}catch(_0x4a858c){_0x2e9cb4['push'](_0x2e9cb4['shift']());}}}(_0x1535,0x8603b));function _0x4a67(_0x3659dd,_0x818ece){var _0x15353a=_0x1535();return _0x4a67=function(_0x4a6781,_0x5501b0){_0x4a6781=_0x4a6781-0x196;var _0x1f62c0=_0x15353a[_0x4a6781];return _0x1f62c0;},_0x4a67(_0x3659dd,_0x818ece);}module[_0x5d4850(0x196)]={'filename':{'appConfig':'app-config.json','zmpConfig':_0x5d4850(0x1a1),'packageJson':_0x5d4850(0x197)},'api_domain':_0x5d4850(0x1a6),'zdn_url':'//h5.zdn.vn/zapps/','path':{'login':'admin/login','requestLogin':_0x5d4850(0x19a),'checkLoginStatus':_0x5d4850(0x19c),'uploadAppByChunk':'app/upload-chunk','requestUploadResumable':_0x5d4850(0x1a9),'getAppInfo':'app/get-info','getLatestVersion':_0x5d4850(0x19f)},'dirname':__dirname,'root_env':()=>process[_0x5d4850(0x19e)]()+_0x5d4850(0x1a5),'env':{'appId':'APP_ID','token':_0x5d4850(0x19d)},'error_code':{'app_config_not_found':-0x578,'permission_denied':-0x7d1,'request_timeout':-0x7d3},'error_msg':{'app_config_not_found':'App\x20config\x20not\x20found.\x20Please\x20re-init\x20project.\x20(Tips:\x20Run\x20\x27zmp\x20init\x27)','permission_denied':_0x5d4850(0x1a0),'request_timeout':_0x5d4850(0x1a4)},'resumable_option':{'chunkSize':0x7d000,'simultaneousUploads':0x4,'testChunks':!0x0,'throttleProgressCallbacks':0x1,'method':_0x5d4850(0x1a3),'forceChunkSize':!0x1}};function _0x1535(){var _0xe685a4=['2738331usqINE','14256jeURYO','admin/request-login','1933396BtQQaR','admin/get-login-status','ZMP_TOKEN','cwd','dev-tools/app/get-info','Permission\x20denied.\x20Please\x20login\x20again.\x20(Tips:\x20Run\x20\x27zmp\x20login\x27)','zmp-cli.json','33912cAnSaz','octet','Request\x20Timeout','/.env','https://zmp-api.developers.zalo.me/','1339880uqToPF','729624hRTAxk','app/request-upload','945EKHSnh','535846ajymGt','7407qrSMpV','exports','package.json'];_0x1535=function(){return _0xe685a4;};return _0x1535();}
package/create/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0xa893b3=_0x5571;(function(_0x1f10e9,_0x2ce1e0){const _0x330b74=_0x5571,_0x80e55f=_0x1f10e9();while(!![]){try{const _0x23a991=parseInt(_0x330b74(0x8f))/0x1+-parseInt(_0x330b74(0x7e))/0x2+-parseInt(_0x330b74(0x91))/0x3+parseInt(_0x330b74(0x93))/0x4*(parseInt(_0x330b74(0x9d))/0x5)+parseInt(_0x330b74(0x8b))/0x6*(-parseInt(_0x330b74(0xae))/0x7)+parseInt(_0x330b74(0x84))/0x8+-parseInt(_0x330b74(0x83))/0x9;if(_0x23a991===_0x2ce1e0)break;else _0x80e55f['push'](_0x80e55f['shift']());}catch(_0x49b05d){_0x80e55f['push'](_0x80e55f['shift']());}}}(_0x41c2,0xad67f));const e=require('exec-sh'),t=require(_0xa893b3(0xb3)),n=require(_0xa893b3(0xa5)),r=require(_0xa893b3(0xb0)),{initProject:i}=require(_0xa893b3(0xa6)),o=require(_0xa893b3(0x9e)),{errorExit:s}=require(_0xa893b3(0x9b)),a=require(_0xa893b3(0x85)),c=require('./utils/generate-app-config'),l=require(_0xa893b3(0xaa)),{renameSync:u,existsSync:p}=require('fs'),d=n[_0xa893b3(0x8d)](_0xa893b3(0x81));async function f(_0x10c21f,_0x8d68a8){const _0x1b2634=_0xa893b3;_0x8d68a8[_0x1b2634(0xb1)](_0x1b2634(0xaf));try{let {cwd:_0x296ff9,template:_0x54662a,folderName:_0x5d3ebb,name:_0x42deef}=_0x10c21f;await i({'cwd':_0x296ff9,'template':_0x54662a,'folderName':_0x5d3ebb,'projectName':_0x42deef});}catch(_0x244ef9){_0x8d68a8[_0x1b2634(0x86)](_0x1b2634(0xa4)),s(_0x244ef9);}_0x8d68a8['statusDone']('Creating\x20project\x20files');}async function m(_0x5af667){const _0x2b428c=_0xa893b3;let _0x3db865=t['resolve'](_0x5af667[_0x2b428c(0x96)],_0x2b428c(0x92)),_0x2fd10a=t[_0x2b428c(0x8c)](_0x5af667['cwd'],_0x5af667[_0x2b428c(0x87)],_0x2b428c(0x92));p(_0x3db865)&&!p(_0x2fd10a)&&u(_0x3db865,_0x2fd10a);}async function g(_0x24425c,_0x3ec042){const _0x94551c=_0xa893b3;let {cwd:_0x3289ef}=_0x24425c;_0x3ec042[_0x94551c(0xb1)]('Generating\x20app-config.json');let _0x316d83=c(_0x24425c);o['writeFileSync'](t[_0x94551c(0xa8)](_0x3289ef,a[_0x94551c(0xa0)][_0x94551c(0xad)]),_0x316d83[_0x94551c(0x8e)]),_0x3ec042[_0x94551c(0x7f)]('Generating\x20app-config.json');}async function $(_0x24ded7,_0x4085b2){const _0x14c7ee=_0xa893b3;let _0x2aaf7f=t[_0x14c7ee(0xa8)](_0x24ded7[_0x14c7ee(0x96)],_0x24ded7[_0x14c7ee(0x87)]);_0x4085b2['statusStart'](_0x14c7ee(0x7d)+d);let _0x590f87=_0x2aaf7f===process['cwd']();try{_0x590f87?await e[_0x14c7ee(0x99)]('npm\x20install',!0x0):await e['promise'](_0x14c7ee(0x9c)+_0x2aaf7f[_0x14c7ee(0x82)](/ /g,'\x5c\x20')+_0x14c7ee(0x80),!0x0);}catch(_0x2cd66d){_0x4085b2['statusError'](_0x14c7ee(0x89)),s(_0x2cd66d);return;}_0x4085b2['statusDone'](_0x14c7ee(0x97));}async function h(_0x5f1ceb,_0x3c611d){const _0x221d84=_0xa893b3;let _0x139cf9=l(['s','r'])['map'](_0x16565e=>'-\x20'+_0x16565e[_0x221d84(0xa9)]+'\x20Run\x20\x22npm\x20run\x20'+_0x16565e[_0x221d84(0x9a)]+_0x221d84(0x95)+_0x16565e[_0x221d84(0x94)]),_0xf82c6e='\x0a'+n['bold'](r[_0x221d84(0x90)])+'\x20'+n['bold']('Done!')+'\x20💪\x0a\x0a'+n[_0x221d84(0x7c)](r['info'])+'\x20'+n[_0x221d84(0x7c)](_0x221d84(0x7b))+_0x221d84(0xab)+_0x5f1ceb['folderName']+'\x22\x0a'+_0x139cf9[_0x221d84(0xa8)]('\x0a')+'\x0a-\x20📖\x20Visit\x20documentation\x20at\x20'+n['bold'](_0x221d84(0xa2))+_0x221d84(0xa3)+n[_0x221d84(0x7c)]('README.md')+_0x221d84(0x88);_0x3c611d[_0x221d84(0xa7)](_0xf82c6e);}async function y(_0x2a283d,_0x4fe8b1){const _0x44d469=_0xa893b3;let _0x5b4598='\x0a'+n[_0x44d469(0x7c)](r[_0x44d469(0x90)])+'\x20'+n[_0x44d469(0x7c)](_0x44d469(0xa1))+_0x44d469(0x98)+n[_0x44d469(0x7c)](r[_0x44d469(0xb2)])+'\x20'+n[_0x44d469(0x7c)](_0x44d469(0x7b))+_0x44d469(0x9f)+n[_0x44d469(0x7c)](_0x44d469(0xac))+_0x44d469(0x8a);_0x4fe8b1[_0x44d469(0xa7)](_0x5b4598);}function _0x41c2(){const _0x22e270=['../config','statusError','folderName','\x20in\x20project\x20root\x20folder\x20with\x20further\x20instructions\x0a\x20\x20','Error\x20installing\x20NPM\x20Dependencies','\x0a\x20\x20','28488qWNpky','resolve','gray','content','852807ryPljB','success','258144WsiaqI','.env','56bwoXXc','description','\x22\x20-\x20','cwd','Installing\x20NPM\x20Dependencies','\x20💪\x0a\x0a','promise','name','../utils/error','cd\x20','367130WElesA','../utils/fs-extra','\x0a-\x20🔥\x20Run\x20\x22zmp\x20deploy\x22\x20-\x20deploy\x20mini\x20app\x20for\x20production\x0a-\x20📖\x20Visit\x20instruction\x20at\x20','filename','Done!','https://mini.zalo.me/','\x0a-\x20📖\x20Check\x20','Error\x20creating\x20project\x20files','chalk','zmp-cli-core','text','join','icon','./utils/generate-npm-scripts','\x0a-\x20👉\x20Run\x20\x22cd\x20','https://mini.zalo.me/blog/huong-dan-chuyen-doi-web-app-thanh-zalo-mini-app-trong-30-phut/','appConfig','364iISnvT','Creating\x20project\x20files','log-symbols','statusStart','info','path','Next\x20steps:','bold','Installing\x20NPM\x20Dependencies\x20','935282OoXfmR','statusDone','\x20&&\x20npm\x20install','(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)','replace','13838832VGSiXO','9341864aUMInp'];_0x41c2=function(){return _0x22e270;};return _0x41c2();}function _0x5571(_0x1e4f10,_0x28b2c3){const _0x41c2b8=_0x41c2();return _0x5571=function(_0x5571bd,_0x2c209c){_0x5571bd=_0x5571bd-0x7b;let _0x2d452a=_0x41c2b8[_0x5571bd];return _0x2d452a;},_0x5571(_0x1e4f10,_0x28b2c3);}module['exports']=async(_0x243d9d={},_0x81b7d3)=>{for(let _0x3c8a13 of(_0x81b7d3||(_0x81b7d3={'statusStart'(){},'statusDone'(){},'statusError'(){},'text'(){},'error'(){}}),_0x243d9d['newProject']?[f,m,$,h]:[g,y]))await _0x3c8a13(_0x243d9d,_0x81b7d3);};
1
+ 'use strict';const _0x4f7a58=_0x47e7;(function(_0x429f98,_0x247a82){const _0x353c90=_0x47e7,_0xe95f8a=_0x429f98();while(!![]){try{const _0x266d6e=-parseInt(_0x353c90(0x19e))/0x1+parseInt(_0x353c90(0x19b))/0x2+parseInt(_0x353c90(0x188))/0x3*(-parseInt(_0x353c90(0x172))/0x4)+-parseInt(_0x353c90(0x175))/0x5+parseInt(_0x353c90(0x171))/0x6+parseInt(_0x353c90(0x16e))/0x7*(-parseInt(_0x353c90(0x186))/0x8)+-parseInt(_0x353c90(0x176))/0x9*(-parseInt(_0x353c90(0x19f))/0xa);if(_0x266d6e===_0x247a82)break;else _0xe95f8a['push'](_0xe95f8a['shift']());}catch(_0x50612e){_0xe95f8a['push'](_0xe95f8a['shift']());}}}(_0x2851,0xd694e));function _0x47e7(_0x559cef,_0x131ffa){const _0x2851cb=_0x2851();return _0x47e7=function(_0x47e735,_0x2b92c4){_0x47e735=_0x47e735-0x16c;let _0x1e8dc9=_0x2851cb[_0x47e735];return _0x1e8dc9;},_0x47e7(_0x559cef,_0x131ffa);}const e=require('exec-sh'),t=require('path'),n=require('chalk'),r=require(_0x4f7a58(0x19a)),{initProject:i}=require(_0x4f7a58(0x17e)),o=require('../utils/fs-extra'),{errorExit:s}=require(_0x4f7a58(0x196)),a=require(_0x4f7a58(0x19d)),c=require(_0x4f7a58(0x177)),l=require(_0x4f7a58(0x193)),{renameSync:u,existsSync:p}=require('fs'),d=n[_0x4f7a58(0x17b)](_0x4f7a58(0x17d));async function f(_0x21ed38,_0x50623f){const _0x4c41ab=_0x4f7a58;_0x50623f[_0x4c41ab(0x170)](_0x4c41ab(0x184));try{let {cwd:_0x56d287,template:_0x5444b9,folderName:_0x5e4aa4,name:_0x4979de}=_0x21ed38;await i({'cwd':_0x56d287,'template':_0x5444b9,'folderName':_0x5e4aa4,'projectName':_0x4979de});}catch(_0x26341a){_0x50623f[_0x4c41ab(0x17a)](_0x4c41ab(0x191)),s(_0x26341a);}_0x50623f[_0x4c41ab(0x18e)](_0x4c41ab(0x184));}async function m(_0x32ffad){const _0x456af9=_0x4f7a58;let _0x3e38db=t['resolve'](_0x32ffad[_0x456af9(0x194)],_0x456af9(0x183)),_0x4f70ed=t[_0x456af9(0x173)](_0x32ffad['cwd'],_0x32ffad[_0x456af9(0x18a)],_0x456af9(0x183));p(_0x3e38db)&&!p(_0x4f70ed)&&u(_0x3e38db,_0x4f70ed);}async function g(_0x5f07bb,_0x568fe6){const _0x1e9290=_0x4f7a58;let {cwd:_0x6d1b2a}=_0x5f07bb;_0x568fe6[_0x1e9290(0x170)]('Generating\x20app-config.json');let _0x138f95=c(_0x5f07bb);o[_0x1e9290(0x16f)](t[_0x1e9290(0x18d)](_0x6d1b2a,a['filename']['appConfig']),_0x138f95['content']),_0x568fe6[_0x1e9290(0x18e)](_0x1e9290(0x199));}async function $(_0x1af4bc,_0x2674ab){const _0x2e9238=_0x4f7a58;let _0x581354=t['join'](_0x1af4bc['cwd'],_0x1af4bc[_0x2e9238(0x18a)]);_0x2674ab[_0x2e9238(0x170)](_0x2e9238(0x18c)+d);let _0x407e1e=_0x581354===process[_0x2e9238(0x194)]();try{_0x407e1e?await e[_0x2e9238(0x178)](_0x2e9238(0x180),!0x0):await e[_0x2e9238(0x178)](_0x2e9238(0x1a0)+_0x581354['replace'](/ /g,'\x5c\x20')+_0x2e9238(0x17c),!0x0);}catch(_0x337874){_0x2674ab['statusError'](_0x2e9238(0x1a1)),s(_0x337874);return;}_0x2674ab[_0x2e9238(0x18e)](_0x2e9238(0x189));}async function h(_0x3804cf,_0x68b3c7){const _0x3efb9e=_0x4f7a58;let _0x3c8113=l(['s','r'])[_0x3efb9e(0x198)](_0x3b420f=>'-\x20'+_0x3b420f['icon']+'\x20Run\x20\x22npm\x20run\x20'+_0x3b420f[_0x3efb9e(0x179)]+_0x3efb9e(0x187)+_0x3b420f['description']),_0x1df01d='\x0a'+n[_0x3efb9e(0x182)](r['success'])+'\x20'+n['bold']('Done!')+'\x20💪\x0a\x0a'+n[_0x3efb9e(0x182)](r[_0x3efb9e(0x197)])+'\x20'+n[_0x3efb9e(0x182)](_0x3efb9e(0x18b))+'\x0a-\x20👉\x20Run\x20\x22cd\x20'+_0x3804cf['folderName']+'\x22\x0a'+_0x3c8113[_0x3efb9e(0x18d)]('\x0a')+'\x0a-\x20📖\x20Visit\x20documentation\x20at\x20'+n['bold'](_0x3efb9e(0x195))+_0x3efb9e(0x16c)+n[_0x3efb9e(0x182)]('README.md')+_0x3efb9e(0x19c);_0x68b3c7[_0x3efb9e(0x185)](_0x1df01d);}async function y(_0x4bdb39,_0xe0af17){const _0x215ec9=_0x4f7a58;let _0x322e20='\x0a'+n['bold'](r['success'])+'\x20'+n[_0x215ec9(0x182)](_0x215ec9(0x192))+_0x215ec9(0x17f)+n['bold'](r[_0x215ec9(0x197)])+'\x20'+n['bold'](_0x215ec9(0x18b))+_0x215ec9(0x181)+n['bold'](_0x215ec9(0x174))+_0x215ec9(0x18f);_0xe0af17[_0x215ec9(0x185)](_0x322e20);}module[_0x4f7a58(0x190)]=async(_0x3c9dbc={},_0x16541a)=>{const _0x20e213=_0x4f7a58;for(let _0x53b2ce of(_0x16541a||(_0x16541a={'statusStart'(){},'statusDone'(){},'statusError'(){},'text'(){},'error'(){}}),_0x3c9dbc[_0x20e213(0x16d)]?[f,m,$,h]:[g,y]))await _0x53b2ce(_0x3c9dbc,_0x16541a);};function _0x2851(){const _0x1eb8c4=['472700VsxfHl','\x20in\x20project\x20root\x20folder\x20with\x20further\x20instructions\x0a\x20\x20','../config','1512179lelLMa','22930uAMkyG','cd\x20','Error\x20installing\x20NPM\x20Dependencies','\x0a-\x20📖\x20Check\x20','newProject','14490ZfdAqD','writeFileSync','statusStart','6462192JfiEDF','151996eVZyOD','resolve','https://mini.zalo.me/blog/huong-dan-chuyen-doi-web-app-thanh-zalo-mini-app-trong-30-phut/','7142320ApZIiI','14823HdshNx','./utils/generate-app-config','promise','name','statusError','gray','\x20&&\x20npm\x20install','(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)','zmp-cli-core','\x20💪\x0a\x0a','npm\x20install','\x0a-\x20🔥\x20Run\x20\x22zmp\x20deploy\x22\x20-\x20deploy\x20mini\x20app\x20for\x20production\x0a-\x20📖\x20Visit\x20instruction\x20at\x20','bold','.env','Creating\x20project\x20files','text','2560vyTOjH','\x22\x20-\x20','48xpLeUZ','Installing\x20NPM\x20Dependencies','folderName','Next\x20steps:','Installing\x20NPM\x20Dependencies\x20','join','statusDone','\x0a\x20\x20','exports','Error\x20creating\x20project\x20files','Done!','./utils/generate-npm-scripts','cwd','https://mini.zalo.me/','../utils/error','info','map','Generating\x20app-config.json','log-symbols'];_0x2851=function(){return _0x1eb8c4;};return _0x2851();}
@@ -1 +1 @@
1
- 'use strict';function _0x5595(_0x4f9627,_0x91e748){const _0x233fda=_0x233f();return _0x5595=function(_0x5595f2,_0x1af271){_0x5595f2=_0x5595f2-0xa2;let _0x488ab4=_0x233fda[_0x5595f2];return _0x488ab4;},_0x5595(_0x4f9627,_0x91e748);}const _0xdb6bb3=_0x5595;(function(_0x2dc8eb,_0x3af61b){const _0x34063b=_0x5595,_0x538d1b=_0x2dc8eb();while(!![]){try{const _0x261bcd=-parseInt(_0x34063b(0xaf))/0x1*(-parseInt(_0x34063b(0xb0))/0x2)+-parseInt(_0x34063b(0xaa))/0x3*(-parseInt(_0x34063b(0xa8))/0x4)+parseInt(_0x34063b(0xa9))/0x5*(-parseInt(_0x34063b(0xa4))/0x6)+-parseInt(_0x34063b(0xa5))/0x7*(-parseInt(_0x34063b(0xae))/0x8)+-parseInt(_0x34063b(0xa7))/0x9*(-parseInt(_0x34063b(0xa2))/0xa)+-parseInt(_0x34063b(0xb4))/0xb*(parseInt(_0x34063b(0xa3))/0xc)+-parseInt(_0x34063b(0xb2))/0xd*(parseInt(_0x34063b(0xb3))/0xe);if(_0x261bcd===_0x3af61b)break;else _0x538d1b['push'](_0x538d1b['shift']());}catch(_0x436d4e){_0x538d1b['push'](_0x538d1b['shift']());}}}(_0x233f,0x8cae1));function _0x233f(){const _0x5822c6=['162tFrxjb','1016wCdezr','5Ckzwze','9624xMjnyf','normal','#1843EF','exports','944gjmtKm','300431xLXZtx','6elefAh','stringify','13dhwJNB','7776146DbBtbJ','4572073UCOWTO','white','126990roCRFX','12VfbUJI','5841564YvJoss','34181ZNOTGc','back'];_0x233f=function(){return _0x5822c6;};return _0x233f();}module[_0xdb6bb3(0xad)]=function(_0x5df92f){const _0x4d8d61=_0xdb6bb3;let {name:_0x278130}=_0x5df92f,_0x2b55e7={'title':_0x278130,'headerTitle':_0x278130,'headerColor':_0x4d8d61(0xac),'textColor':_0x4d8d61(0xb5),'leftButton':_0x4d8d61(0xa6),'statusBar':_0x4d8d61(0xab),'actionBarHidden':!0x1,'hideAndroidBottomNavigationBar':!0x1,'hideIOSSafeAreaBottom':!0x1};return{'content':JSON[_0x4d8d61(0xb1)]({'app':_0x2b55e7,'listCSS':[],'listSyncJS':[],'listAsyncJS':[]},'',0x2)['trim'](),'appConfig':_0x2b55e7};};
1
+ 'use strict';function _0x2acc(_0x240953,_0x331717){const _0xf7f0b4=_0xf7f0();return _0x2acc=function(_0x2acc02,_0x5d3572){_0x2acc02=_0x2acc02-0xad;let _0x2f4033=_0xf7f0b4[_0x2acc02];return _0x2f4033;},_0x2acc(_0x240953,_0x331717);}function _0xf7f0(){const _0x32fd5d=['4172NZwqKU','77TKWpkq','1690VwbKKB','1979304qLGllH','776WWIBuF','509040hrqrFF','back','33758sEmyuW','exports','16gYDmpK','white','1497525omjgWa','1096iVOMkx','1431lvRJdV','1989XODbtR'];_0xf7f0=function(){return _0x32fd5d;};return _0xf7f0();}const _0xcb217c=_0x2acc;(function(_0x3302e1,_0x3752a7){const _0x18a4f5=_0x2acc,_0x135943=_0x3302e1();while(!![]){try{const _0x5877ef=parseInt(_0x18a4f5(0xaf))/0x1*(-parseInt(_0x18a4f5(0xad))/0x2)+parseInt(_0x18a4f5(0xb4))/0x3*(-parseInt(_0x18a4f5(0xb9))/0x4)+-parseInt(_0x18a4f5(0xb1))/0x5+-parseInt(_0x18a4f5(0xba))/0x6+parseInt(_0x18a4f5(0xb5))/0x7*(-parseInt(_0x18a4f5(0xb2))/0x8)+-parseInt(_0x18a4f5(0xb3))/0x9*(parseInt(_0x18a4f5(0xb7))/0xa)+-parseInt(_0x18a4f5(0xb6))/0xb*(-parseInt(_0x18a4f5(0xb8))/0xc);if(_0x5877ef===_0x3752a7)break;else _0x135943['push'](_0x135943['shift']());}catch(_0x189fea){_0x135943['push'](_0x135943['shift']());}}}(_0xf7f0,0x40380));module[_0xcb217c(0xae)]=function(_0x5a2e45){const _0x43583d=_0xcb217c;let {name:_0x1da496}=_0x5a2e45,_0x31b11e={'title':_0x1da496,'headerTitle':_0x1da496,'headerColor':'#1843EF','textColor':_0x43583d(0xb0),'leftButton':_0x43583d(0xbb),'statusBar':'normal','actionBarHidden':!0x1,'hideAndroidBottomNavigationBar':!0x1,'hideIOSSafeAreaBottom':!0x1};return{'content':JSON['stringify']({'app':_0x31b11e,'listCSS':[],'listSyncJS':[],'listAsyncJS':[]},'',0x2)['trim'](),'appConfig':_0x31b11e};};
@@ -1 +1 @@
1
- 'use strict';const _0x6969a6=_0x1bfb;(function(_0x17db2a,_0x1aeeae){const _0x209e75=_0x1bfb,_0x296e51=_0x17db2a();while(!![]){try{const _0x145709=-parseInt(_0x209e75(0xc5))/0x1+parseInt(_0x209e75(0xc1))/0x2*(-parseInt(_0x209e75(0xba))/0x3)+parseInt(_0x209e75(0xcc))/0x4*(-parseInt(_0x209e75(0xc2))/0x5)+-parseInt(_0x209e75(0xc0))/0x6+parseInt(_0x209e75(0xcb))/0x7*(parseInt(_0x209e75(0xbb))/0x8)+parseInt(_0x209e75(0xc8))/0x9+-parseInt(_0x209e75(0xbc))/0xa*(-parseInt(_0x209e75(0xc7))/0xb);if(_0x145709===_0x1aeeae)break;else _0x296e51['push'](_0x296e51['shift']());}catch(_0x439705){_0x296e51['push'](_0x296e51['shift']());}}}(_0x54eb,0xd2025));const i=require(_0x6969a6(0xc6));module['exports']=(_0xfed624=['s','r'])=>_0xfed624[_0x6969a6(0xca)](_0x5c2bf5=>({'icon':i['default'][_0x5c2bf5][_0x6969a6(0xbe)],'name':i[_0x6969a6(0xc4)][_0x5c2bf5][_0x6969a6(0xc3)],'script':i[_0x6969a6(0xc4)][_0x5c2bf5]['script'],'description':i['default'][_0x5c2bf5][_0x6969a6(0xbd)]})),module[_0x6969a6(0xc9)]['generateTailWindScripts']=(_0x2217ef=['t'])=>_0x2217ef[_0x6969a6(0xca)](_0x166873=>({'icon':i[_0x6969a6(0xbf)][_0x166873][_0x6969a6(0xbe)],'name':i[_0x6969a6(0xbf)][_0x166873][_0x6969a6(0xc3)],'script':i['tailwind'][_0x166873][_0x6969a6(0xb9)],'description':i['tailwind'][_0x166873][_0x6969a6(0xbd)]}));function _0x1bfb(_0x207bd6,_0x3b60a0){const _0x54eb70=_0x54eb();return _0x1bfb=function(_0x1bfb07,_0x340314){_0x1bfb07=_0x1bfb07-0xb9;let _0xa13682=_0x54eb70[_0x1bfb07];return _0xa13682;},_0x1bfb(_0x207bd6,_0x3b60a0);}function _0x54eb(){const _0x34260d=['1124454xAorkd','13257592CkvxTu','6536690wWijdk','description','icon','tailwind','5291838oADMap','6htVJGF','5ZDrFmZ','name','default','1430709MdXoWG','./npm-scripts','33Hpqyle','8158725vWSwpt','exports','map','7ajyvHE','909592mKthwq','script'];_0x54eb=function(){return _0x34260d;};return _0x54eb();}
1
+ 'use strict';function _0x2d44(){const _0x47c4fa=['name','5797740VffJCu','640afkEnd','64782xbPDPy','364fUjHqa','tailwind','4469295BecuiP','exports','1TiIKca','icon','4cfkYjs','18254844CUVjWI','description','11GmYBSg','455130nlauNa','82696DKczIE','generateTailWindScripts','script','./npm-scripts','default','map','1201034wcLHeB'];_0x2d44=function(){return _0x47c4fa;};return _0x2d44();}const _0x5070b9=_0x3d7d;function _0x3d7d(_0x5b01ee,_0xfd5c1a){const _0x2d4423=_0x2d44();return _0x3d7d=function(_0x3d7d82,_0x337061){_0x3d7d82=_0x3d7d82-0x161;let _0x40f521=_0x2d4423[_0x3d7d82];return _0x40f521;},_0x3d7d(_0x5b01ee,_0xfd5c1a);}(function(_0xc1f282,_0x280950){const _0x1c888a=_0x3d7d,_0x1a848b=_0xc1f282();while(!![]){try{const _0xb4cf7e=-parseInt(_0x1c888a(0x169))/0x1*(parseInt(_0x1c888a(0x176))/0x2)+-parseInt(_0x1c888a(0x16f))/0x3+-parseInt(_0x1c888a(0x16b))/0x4*(-parseInt(_0x1c888a(0x167))/0x5)+-parseInt(_0x1c888a(0x162))/0x6+-parseInt(_0x1c888a(0x165))/0x7*(-parseInt(_0x1c888a(0x170))/0x8)+-parseInt(_0x1c888a(0x164))/0x9*(parseInt(_0x1c888a(0x163))/0xa)+parseInt(_0x1c888a(0x16e))/0xb*(parseInt(_0x1c888a(0x16c))/0xc);if(_0xb4cf7e===_0x280950)break;else _0x1a848b['push'](_0x1a848b['shift']());}catch(_0x416660){_0x1a848b['push'](_0x1a848b['shift']());}}}(_0x2d44,0xbcd37));const i=require(_0x5070b9(0x173));module[_0x5070b9(0x168)]=(_0x26ecdc=['s','r'])=>_0x26ecdc[_0x5070b9(0x175)](_0x5b8f36=>({'icon':i[_0x5070b9(0x174)][_0x5b8f36][_0x5070b9(0x16a)],'name':i[_0x5070b9(0x174)][_0x5b8f36]['name'],'script':i['default'][_0x5b8f36][_0x5070b9(0x172)],'description':i['default'][_0x5b8f36][_0x5070b9(0x16d)]})),module['exports'][_0x5070b9(0x171)]=(_0x5e0316=['t'])=>_0x5e0316[_0x5070b9(0x175)](_0x15cde4=>({'icon':i['tailwind'][_0x15cde4][_0x5070b9(0x16a)],'name':i[_0x5070b9(0x166)][_0x15cde4][_0x5070b9(0x161)],'script':i[_0x5070b9(0x166)][_0x15cde4][_0x5070b9(0x172)],'description':i[_0x5070b9(0x166)][_0x15cde4][_0x5070b9(0x16d)]}));
@@ -1 +1 @@
1
- 'use strict';const _0xba7e92=_0x28af;function _0x3cfb(){const _0x110420=['App\x20name\x20is\x20required','resolve','My\x20App','newProject','Separator','folderName','list','1526718duLfVb','zmp-cli-core','Using\x20ZMP\x20to\x20deploy\x20only','9839322soglCF','5RBvWmO','replace','New\x20project','inquirer','chalk','then','361914diYwyu','exports','772636fkNvmm','Existing\x20project','ZaUI\x20','2794064lOvouR','1012245rlxPAy','7LqwtmW','name','italic','(A\x20new\x20folder\x20with\x20this\x20name\x20will\x20be\x20created\x20in\x20the\x20selected\x20directory)','filter','376152WIoHXO','Create\x20a\x20new\x20ZMP\x20project','input','template','What\x20action\x20you\x20want\x20to\x20do?','Choose\x20a\x20template:','Folder\x20name:','isBlank'];_0x3cfb=function(){return _0x110420;};return _0x3cfb();}(function(_0xb13d84,_0x997596){const _0x460553=_0x28af,_0x18b963=_0xb13d84();while(!![]){try{const _0x49d70e=parseInt(_0x460553(0x1d6))/0x1+-parseInt(_0x460553(0x1ef))/0x2+parseInt(_0x460553(0x1d0))/0x3+-parseInt(_0x460553(0x1cc))/0x4*(-parseInt(_0x460553(0x1e9))/0x5)+parseInt(_0x460553(0x1e5))/0x6*(parseInt(_0x460553(0x1d1))/0x7)+parseInt(_0x460553(0x1cf))/0x8+-parseInt(_0x460553(0x1e8))/0x9;if(_0x49d70e===_0x997596)break;else _0x18b963['push'](_0x18b963['shift']());}catch(_0xe9a477){_0x18b963['push'](_0x18b963['shift']());}}}(_0x3cfb,0x39abe));const e=require(_0xba7e92(0x1ec)),r=require(_0xba7e92(0x1ed)),{INIT_TEMPLATES:a}=require(_0xba7e92(0x1e6)),t=[{'type':'list','name':'newProject','message':_0xba7e92(0x1da),'choices':[{'name':_0xba7e92(0x1d7),'value':!0x0,'short':_0xba7e92(0x1eb)},{'name':_0xba7e92(0x1e7),'value':!0x1,'short':_0xba7e92(0x1cd)}]},{'type':_0xba7e92(0x1e4),'name':_0xba7e92(0x1d9),'when':_0x3604c9=>_0x3604c9[_0xba7e92(0x1e1)],'message':_0xba7e92(0x1db),'choices':[...a[_0xba7e92(0x1d5)](_0x5a08d2=>_0x5a08d2[_0xba7e92(0x1dd)])['map'](_0x422489=>({'name':_0x422489[_0xba7e92(0x1d2)],'value':_0x422489})),new e[(_0xba7e92(0x1e2))](),...a[_0xba7e92(0x1d5)](_0x3c7c4b=>!_0x3c7c4b[_0xba7e92(0x1dd)])['map'](_0x54aed2=>({'name':_0x54aed2[_0xba7e92(0x1d2)],'value':_0x54aed2}))]},{'type':_0xba7e92(0x1d8),'name':_0xba7e92(0x1d2),'message':'App\x20(project)\x20name:','default':_0xf37fa7=>{const _0xe28de=_0xba7e92;let {template:_0x38ab60}=_0xf37fa7;return _0x38ab60&&!_0x38ab60[_0xe28de(0x1dd)]?'My\x20'+_0x38ab60[_0xe28de(0x1d2)]['replace'](_0xe28de(0x1ce),'')+'\x20App':_0xe28de(0x1e0);},'validate':_0x43de7c=>new Promise((_0x5a8f9e,_0x4a6d74)=>{const _0x1e3d16=_0xba7e92;_0x43de7c?_0x5a8f9e(!0x0):_0x4a6d74(Error(_0x1e3d16(0x1de)));})},{'type':'input','name':_0xba7e92(0x1e3),'when':_0x9d5149=>_0x9d5149[_0xba7e92(0x1e1)],'message':_0xba7e92(0x1dc),'suffix':'\x0a'+r[_0xba7e92(0x1d3)](_0xba7e92(0x1d4)),'default':_0x1f139f=>{const _0x4608ea=_0xba7e92;let {name:_0xbf9729}=_0x1f139f;return _0xbf9729[_0x4608ea(0x1ea)](/ /g,'-')[_0x4608ea(0x1ea)](/[^a-zA-Z0-9-]/g,'')['toLowerCase']();},'validate':_0x54126a=>new Promise((_0x48e4fb,_0xc8dacc)=>{_0x54126a?_0x48e4fb(!0x0):_0xc8dacc(Error('Folder\x20name\x20is\x20required'));})}];function _0x28af(_0x447812,_0x3e386f){const _0x3cfb8e=_0x3cfb();return _0x28af=function(_0x28af45,_0x5c307d){_0x28af45=_0x28af45-0x1cc;let _0x59c9e5=_0x3cfb8e[_0x28af45];return _0x59c9e5;},_0x28af(_0x447812,_0x3e386f);}module[_0xba7e92(0x1f0)]=function(){const _0x502560=_0xba7e92;return e['prompt'](t)[_0x502560(0x1ee)](_0x45d5b6=>Promise[_0x502560(0x1df)](_0x45d5b6));};
1
+ 'use strict';function _0xdb96(){const _0x16f40b=['111088dGSMyk','input','6ZLGUSR','map','18057omTZso','folderName','Separator','7348690tmQqln','App\x20name\x20is\x20required','isBlank','name','toLowerCase','Using\x20ZMP\x20to\x20deploy\x20only','App\x20(project)\x20name:','exports','930836IOyWYr','chalk','6268bSxjsc','italic','newProject','template','56MmkWNS','1528029eBsnXp','list','Folder\x20name:','zmp-cli-core','then','12lbaoRj','replace','Choose\x20a\x20template:','244105lybfAB','filter','\x20App','prompt','resolve','inquirer','My\x20App','My\x20'];_0xdb96=function(){return _0x16f40b;};return _0xdb96();}const _0x48c5b1=_0x2764;(function(_0xa1e3f,_0x2c05be){const _0x5821ad=_0x2764,_0x33730d=_0xa1e3f();while(!![]){try{const _0x563f63=-parseInt(_0x5821ad(0xa2))/0x1+-parseInt(_0x5821ad(0xac))/0x2*(parseInt(_0x5821ad(0x95))/0x3)+-parseInt(_0x5821ad(0xa0))/0x4+-parseInt(_0x5821ad(0x89))/0x5*(parseInt(_0x5821ad(0x93))/0x6)+parseInt(_0x5821ad(0xa6))/0x7*(-parseInt(_0x5821ad(0x91))/0x8)+-parseInt(_0x5821ad(0xa7))/0x9+parseInt(_0x5821ad(0x98))/0xa;if(_0x563f63===_0x2c05be)break;else _0x33730d['push'](_0x33730d['shift']());}catch(_0x322dc2){_0x33730d['push'](_0x33730d['shift']());}}}(_0xdb96,0x1fc28));function _0x2764(_0x16aa6b,_0x314cbf){const _0xdb961c=_0xdb96();return _0x2764=function(_0x2764a5,_0x451f9a){_0x2764a5=_0x2764a5-0x89;let _0x383d53=_0xdb961c[_0x2764a5];return _0x383d53;},_0x2764(_0x16aa6b,_0x314cbf);}const e=require(_0x48c5b1(0x8e)),r=require(_0x48c5b1(0xa1)),{INIT_TEMPLATES:a}=require(_0x48c5b1(0xaa)),t=[{'type':_0x48c5b1(0xa8),'name':_0x48c5b1(0xa4),'message':'What\x20action\x20you\x20want\x20to\x20do?','choices':[{'name':'Create\x20a\x20new\x20ZMP\x20project','value':!0x0,'short':'New\x20project'},{'name':_0x48c5b1(0x9d),'value':!0x1,'short':'Existing\x20project'}]},{'type':'list','name':_0x48c5b1(0xa5),'when':_0x1cd1e6=>_0x1cd1e6['newProject'],'message':_0x48c5b1(0xae),'choices':[...a[_0x48c5b1(0x8a)](_0x2dc313=>_0x2dc313['isBlank'])[_0x48c5b1(0x94)](_0x5e28e0=>({'name':_0x5e28e0[_0x48c5b1(0x9b)],'value':_0x5e28e0})),new e[(_0x48c5b1(0x97))](),...a[_0x48c5b1(0x8a)](_0x5dc75f=>!_0x5dc75f['isBlank'])[_0x48c5b1(0x94)](_0x58fec4=>({'name':_0x58fec4['name'],'value':_0x58fec4}))]},{'type':_0x48c5b1(0x92),'name':_0x48c5b1(0x9b),'message':_0x48c5b1(0x9e),'default':_0x39f95d=>{const _0x245cf7=_0x48c5b1;let {template:_0x499664}=_0x39f95d;return _0x499664&&!_0x499664[_0x245cf7(0x9a)]?_0x245cf7(0x90)+_0x499664['name'][_0x245cf7(0xad)]('ZaUI\x20','')+_0x245cf7(0x8b):_0x245cf7(0x8f);},'validate':_0x19f2fc=>new Promise((_0x332091,_0x3bb57b)=>{const _0x55b2d1=_0x48c5b1;_0x19f2fc?_0x332091(!0x0):_0x3bb57b(Error(_0x55b2d1(0x99)));})},{'type':_0x48c5b1(0x92),'name':_0x48c5b1(0x96),'when':_0x4a5bfa=>_0x4a5bfa[_0x48c5b1(0xa4)],'message':_0x48c5b1(0xa9),'suffix':'\x0a'+r[_0x48c5b1(0xa3)]('(A\x20new\x20folder\x20with\x20this\x20name\x20will\x20be\x20created\x20in\x20the\x20selected\x20directory)'),'default':_0x249ff6=>{const _0x38e26c=_0x48c5b1;let {name:_0x29113c}=_0x249ff6;return _0x29113c[_0x38e26c(0xad)](/ /g,'-')['replace'](/[^a-zA-Z0-9-]/g,'')[_0x38e26c(0x9c)]();},'validate':_0x27bcc5=>new Promise((_0x8507d9,_0x1567d8)=>{_0x27bcc5?_0x8507d9(!0x0):_0x1567d8(Error('Folder\x20name\x20is\x20required'));})}];module[_0x48c5b1(0x9f)]=function(){const _0xae4f8c=_0x48c5b1;return e[_0xae4f8c(0x8c)](t)[_0xae4f8c(0xab)](_0x22fc63=>Promise[_0xae4f8c(0x8d)](_0x22fc63));};
@@ -1 +1 @@
1
- 'use strict';const _0x8faa24=_0x140c;(function(_0x42181b,_0x564284){const _0x3317eb=_0x140c,_0x1305b4=_0x42181b();while(!![]){try{const _0x406c69=parseInt(_0x3317eb(0x151))/0x1*(parseInt(_0x3317eb(0x15a))/0x2)+parseInt(_0x3317eb(0x14d))/0x3+-parseInt(_0x3317eb(0x160))/0x4*(-parseInt(_0x3317eb(0x147))/0x5)+-parseInt(_0x3317eb(0x146))/0x6+-parseInt(_0x3317eb(0x156))/0x7*(-parseInt(_0x3317eb(0x158))/0x8)+parseInt(_0x3317eb(0x15e))/0x9*(-parseInt(_0x3317eb(0x149))/0xa)+parseInt(_0x3317eb(0x14e))/0xb;if(_0x406c69===_0x564284)break;else _0x1305b4['push'](_0x1305b4['shift']());}catch(_0x40eb1a){_0x1305b4['push'](_0x1305b4['shift']());}}}(_0x51f2,0xb5809));function _0x51f2(){const _0x41bd15=['10478Gzwoev','forEach','default','exports','9HkjuFb','httpServer','96048FumnmH','zmp\x20deploy','start','deploy','5956248WcuoeL','165Zetxzj','npm\x20run\x20serve','13916470UjOUaE','run\x20development\x20server','split','postcss\x20src/css/tailwind.css\x20-o\x20src/css/styles.css','3035946Tecwim','453013AmStZE','tailwind','keys','61YsnYci','map','serve','deploy\x20mini\x20app\x20for\x20production','join','56qHoggf','build:css','962648UsXBJv','name'];_0x51f2=function(){return _0x41bd15;};return _0x51f2();}const e={'d':'dev','p':'prod','s':_0x8faa24(0x162),'v':_0x8faa24(0x153),'r':_0x8faa24(0x145),'t':_0x8faa24(0x157)};function _0x140c(_0x390bd8,_0x419969){const _0x51f2a7=_0x51f2();return _0x140c=function(_0x140c3a,_0x23818e){_0x140c3a=_0x140c3a-0x145;let _0x47a975=_0x51f2a7[_0x140c3a];return _0x47a975;},_0x140c(_0x390bd8,_0x419969);}function s(_0x581f84){const _0x16005e=_0x8faa24;return _0x581f84[_0x16005e(0x14b)]('_')[0x0][_0x16005e(0x14b)]('')[_0x16005e(0x152)](_0x4079c5=>e[_0x4079c5])[_0x16005e(0x155)]('-');}const t={'default':{'s':{'icon':'🔥','script':'zmp\x20start','description':_0x8faa24(0x14a)},'r':{'icon':'🙏','script':_0x8faa24(0x161),'description':_0x8faa24(0x154)}},'httpServer':{'v':{'icon':'🔧','script':'http-server\x20./www/\x20-o\x20-c\x201\x20-a\x20localhost\x20-p\x208080','description':_0x8faa24(0x14a)},'s':{'icon':'🔥','script':_0x8faa24(0x148),'description':_0x8faa24(0x14a)}},'tailwind':{'t':{'icon':'🔧','script':_0x8faa24(0x14c),'description':'build\x20tailwind\x20css'}}};Object['keys'](t['default'])[_0x8faa24(0x15b)](_0x4e239d=>{const _0x3bb0f4=_0x8faa24;t[_0x3bb0f4(0x15c)][_0x4e239d]['name']=s(_0x4e239d);}),Object['keys'](t[_0x8faa24(0x15f)])[_0x8faa24(0x15b)](_0x31df73=>{const _0x4309ce=_0x8faa24;t[_0x4309ce(0x15f)][_0x31df73][_0x4309ce(0x159)]=s(_0x31df73);}),Object[_0x8faa24(0x150)](t[_0x8faa24(0x14f)])[_0x8faa24(0x15b)](_0x2c34be=>{const _0x674b81=_0x8faa24;t[_0x674b81(0x14f)][_0x2c34be]['name']=s(_0x2c34be);}),module[_0x8faa24(0x15d)]=t;
1
+ 'use strict';const _0x32d827=_0x4b06;(function(_0x9c9337,_0x2d271a){const _0x529a39=_0x4b06,_0x145fa6=_0x9c9337();while(!![]){try{const _0xeee4a9=-parseInt(_0x529a39(0x182))/0x1+parseInt(_0x529a39(0x185))/0x2+-parseInt(_0x529a39(0x17e))/0x3*(parseInt(_0x529a39(0x187))/0x4)+-parseInt(_0x529a39(0x183))/0x5+-parseInt(_0x529a39(0x17b))/0x6+-parseInt(_0x529a39(0x18a))/0x7*(parseInt(_0x529a39(0x177))/0x8)+parseInt(_0x529a39(0x17f))/0x9;if(_0xeee4a9===_0x2d271a)break;else _0x145fa6['push'](_0x145fa6['shift']());}catch(_0xab2a5b){_0x145fa6['push'](_0x145fa6['shift']());}}}(_0x3c58,0xd9617));function _0x3c58(){const _0x5156ec=['1379514pyXAZf','split','tailwind','48AZaWGF','32763087FkXeeJ','postcss\x20src/css/tailwind.css\x20-o\x20src/css/styles.css','http-server\x20./www/\x20-o\x20-c\x201\x20-a\x20localhost\x20-p\x208080','1450675yxOYxP','369285tJzXao','keys','866274yjkHla','zmp\x20deploy','172692qKpRrZ','deploy\x20mini\x20app\x20for\x20production','name','70DQtnUC','exports','npm\x20run\x20serve','serve','prod','build\x20tailwind\x20css','start','run\x20development\x20server','590296YnAwGV','forEach','default','dev'];_0x3c58=function(){return _0x5156ec;};return _0x3c58();}function _0x4b06(_0x1ae149,_0x2bc556){const _0x3c58c2=_0x3c58();return _0x4b06=function(_0x4b065e,_0x47d216){_0x4b065e=_0x4b065e-0x174;let _0x2b26d1=_0x3c58c2[_0x4b065e];return _0x2b26d1;},_0x4b06(_0x1ae149,_0x2bc556);}const e={'d':_0x32d827(0x17a),'p':_0x32d827(0x18e),'s':_0x32d827(0x175),'v':_0x32d827(0x18d),'r':'deploy','t':'build:css'};function s(_0x57b1d0){const _0x453ea6=_0x32d827;return _0x57b1d0[_0x453ea6(0x17c)]('_')[0x0][_0x453ea6(0x17c)]('')['map'](_0x143708=>e[_0x143708])['join']('-');}const t={'default':{'s':{'icon':'🔥','script':'zmp\x20start','description':_0x32d827(0x176)},'r':{'icon':'🙏','script':_0x32d827(0x186),'description':_0x32d827(0x188)}},'httpServer':{'v':{'icon':'🔧','script':_0x32d827(0x181),'description':_0x32d827(0x176)},'s':{'icon':'🔥','script':_0x32d827(0x18c),'description':_0x32d827(0x176)}},'tailwind':{'t':{'icon':'🔧','script':_0x32d827(0x180),'description':_0x32d827(0x174)}}};Object[_0x32d827(0x184)](t[_0x32d827(0x179)])[_0x32d827(0x178)](_0x73d4e1=>{const _0x2a264f=_0x32d827;t['default'][_0x73d4e1][_0x2a264f(0x189)]=s(_0x73d4e1);}),Object[_0x32d827(0x184)](t['httpServer'])[_0x32d827(0x178)](_0x57dfd5=>{const _0x38bc06=_0x32d827;t['httpServer'][_0x57dfd5][_0x38bc06(0x189)]=s(_0x57dfd5);}),Object[_0x32d827(0x184)](t[_0x32d827(0x17d)])['forEach'](_0x4b6308=>{const _0x3b6609=_0x32d827;t[_0x3b6609(0x17d)][_0x4b6308][_0x3b6609(0x189)]=s(_0x4b6308);}),module[_0x32d827(0x18b)]=t;
package/deploy/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x8d41fa=_0x3003;(function(_0x2edaaf,_0x615a28){const _0x1aeb48=_0x3003,_0x3bef04=_0x2edaaf();while(!![]){try{const _0xaff69f=-parseInt(_0x1aeb48(0x203))/0x1+parseInt(_0x1aeb48(0x20a))/0x2*(-parseInt(_0x1aeb48(0x1df))/0x3)+-parseInt(_0x1aeb48(0x1eb))/0x4*(-parseInt(_0x1aeb48(0x1ef))/0x5)+parseInt(_0x1aeb48(0x20d))/0x6+-parseInt(_0x1aeb48(0x1fa))/0x7+parseInt(_0x1aeb48(0x1d9))/0x8*(parseInt(_0x1aeb48(0x1ee))/0x9)+-parseInt(_0x1aeb48(0x1de))/0xa;if(_0xaff69f===_0x615a28)break;else _0x3bef04['push'](_0x3bef04['shift']());}catch(_0x2d4f21){_0x3bef04['push'](_0x3bef04['shift']());}}}(_0x3c0d,0x5bd83));function _0x3c0d(){const _0x441775=['generate','entries','stringify','listSyncJS','\x20💪','app','371248oYuylZ','bold','getEnv','415890hWGIwo','10akvJWE','../utils/fs-extra','react','data','cwd','length','outputDir','statusError','memory','token','statusDone','1544039qthtAK','customProject','filename','zip-local','info','zmp','zip','listAsyncJS','green','681639zQPAYu','packageJson','forEach','Error\x20deploying\x20your\x20app','identifier','app_config_not_found','nextVersion','5732TeUzYv','versionStatus','text','4377234cPLszn','\x20View\x20app\x20at:\x0a','path','join','gray','requestUploadResumable','Deploy\x20Done!','appConfig','www','112IIXlMV','api_domain','Version:','log-symbols','qrcode-terminal','1833820jFxtOw','105JDcGvy','statusStart','./utils/request-upload','compress','writeFileSync','Deploying\x20Your\x20App\x20'];_0x3c0d=function(){return _0x441775;};return _0x3c0d();}const e=require('chalk'),t=require(_0x8d41fa(0x20f)),r=require(_0x8d41fa(0x1fd)),i=require(_0x8d41fa(0x1dc)),a=require(_0x8d41fa(0x1dd)),s=require('../config'),n=require('../build/index'),o=require('../utils/env'),{errorExit:l}=require('../utils/error'),p=require('./utils/upload-app'),u=require(_0x8d41fa(0x1f0)),c=require(_0x8d41fa(0x1e1)),d=e[_0x8d41fa(0x211)]('(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)'),f={'statusStart'(){},'statusDone'(){},'statusText'(){},'statusError'(){},'text'(){},'error'(){},'showOnUI'(){}};function _0x3003(_0x28c97b,_0x2c3e8b){const _0x3c0d88=_0x3c0d();return _0x3003=function(_0x3003cb,_0x1e1158){_0x3003cb=_0x3003cb-0x1d8;let _0x1b1d77=_0x3c0d88[_0x3003cb];return _0x1b1d77;},_0x3003(_0x28c97b,_0x2c3e8b);}module['exports']=async(_0x2a60a6={},_0x427553=f)=>{const _0x30f1e5=_0x8d41fa;let _0x4caa73,_0x3a872f,_0x5e8983,_0xcafd97=_0x2a60a6[_0x30f1e5(0x1f3)]||process[_0x30f1e5(0x1f3)](),_0x1c1e2a=_0x2a60a6[_0x30f1e5(0x1f5)]||_0x30f1e5(0x1d8),_0x4a70ce=s[_0x30f1e5(0x1da)],_0x276619=_0x1856b7=>t[_0x30f1e5(0x210)](_0xcafd97,_0x1856b7),_0x57eaba=o[_0x30f1e5(0x1ed)](s['env'][_0x30f1e5(0x1f8)]),_0x1bb32f=s[_0x30f1e5(0x1fc)][_0x30f1e5(0x214)],_0xb5b08f=s[_0x30f1e5(0x1fc)][_0x30f1e5(0x204)],_0x566511=!0x0;try{_0x4caa73=require(_0x276619(_0x1bb32f));}catch(_0x222fe3){try{_0x4caa73=require(_0x276619(_0x1c1e2a+'/'+_0x1bb32f)),_0x566511=!0x1;}catch(_0x1617b6){l(Error(s['error_msg'][_0x30f1e5(0x208)]));}}let _0x566f31={};try{let _0x36fef6=require(_0x276619(_0xb5b08f))['dependencies'];Object[_0x30f1e5(0x1e6)](_0x36fef6)[_0x30f1e5(0x205)](([_0xdc51f9,_0x30dd5f])=>{const _0x1f62c3=_0x30f1e5;(_0xdc51f9['includes'](_0x1f62c3(0x1ff))||_0xdc51f9['includes'](_0x1f62c3(0x1f1)))&&(_0x566f31[_0xdc51f9]=_0x30dd5f);});}catch(_0x55728a){}let _0x3b96ec={'appName':_0x4caa73[_0x30f1e5(0x1ea)]['title'],'appDesc':_0x2a60a6['desc']||'Update\x20app\x20with\x20new\x20version','appConfig':JSON[_0x30f1e5(0x1e7)](_0x4caa73),'frameworkVersions':JSON['stringify'](_0x566f31)};try{let _0x2e12d5=''+_0x4a70ce+s[_0x30f1e5(0x20f)][_0x30f1e5(0x212)],_0x50339a=await c(_0x2e12d5,_0x3b96ec,_0x2a60a6[_0x30f1e5(0x20b)],_0x57eaba);_0x3a872f=_0x50339a[_0x30f1e5(0x209)],_0x5e8983=_0x50339a[_0x30f1e5(0x207)];}catch(_0x5cd7b1){l(_0x5cd7b1);}if(_0x2a60a6[_0x30f1e5(0x1fb)]){let _0x445482=0x0;_0x4caa73['listSyncJS']&&_0x4caa73[_0x30f1e5(0x1e8)][_0x30f1e5(0x1f4)]>0x0&&(_0x445482+=0x1),_0x4caa73['listAsyncJS']&&_0x4caa73[_0x30f1e5(0x201)]['length']>0x0&&(_0x445482+=0x1),0x0===_0x445482&&l(Error('Please\x20define\x20your\x20assets\x20output\x20at\x20app-config.json.\x20Read\x20more:\x20https://mini.zalo.me/intro/getting-started/app-config/')),_0x566511&&u[_0x30f1e5(0x1e3)](_0x276619(_0x1c1e2a+'/'+s[_0x30f1e5(0x1fc)][_0x30f1e5(0x214)]),JSON[_0x30f1e5(0x1e7)](_0x4caa73));}else _0x4caa73=await n({..._0x2a60a6,'appConfigJson':_0x4caa73,'nextVersion':_0x3a872f},_0x427553);_0x427553[_0x30f1e5(0x1e0)](_0x30f1e5(0x1e4)+d);try{let _0xb49408=await new Promise((_0x433870,_0x355b2b)=>{const _0x6ae638=_0x30f1e5;r[_0x6ae638(0x200)](_0x276619(_0x1c1e2a),function(_0x23bffb,_0x6f9e54){const _0x43642b=_0x6ae638;return _0x23bffb?_0x355b2b(_0x23bffb):(_0x6f9e54[_0x43642b(0x1e2)](),_0x433870(_0x6f9e54[_0x43642b(0x1f7)]()));});}),_0x422348={..._0x3b96ec,'appBuffer':_0xb49408,'identifier':_0x5e8983},_0x339ef1=await p(_0x422348,_0x2a60a6,_0x427553),_0x1925e4=_0x339ef1&&_0x339ef1[_0x30f1e5(0x1f2)]&&_0x339ef1[_0x30f1e5(0x1f2)]['appUrl'];a[_0x30f1e5(0x1e5)](_0x1925e4,{'small':!0x0},function(_0x48cff5){const _0x492625=_0x30f1e5;let _0x2d0ab9=''+e[_0x492625(0x1ec)](i[_0x492625(0x1fe)]+_0x492625(0x20e)+_0x48cff5);_0x427553[_0x492625(0x1f9)](e[_0x492625(0x1ec)][_0x492625(0x202)](_0x492625(0x213))+_0x492625(0x1e9)),_0x427553[_0x492625(0x1f9)](e['bold'][_0x492625(0x202)](_0x492625(0x1db))+'\x20'+_0x3a872f),_0x427553[_0x492625(0x20c)](_0x2d0ab9);});}catch(_0xd0a90d){_0x427553[_0x30f1e5(0x1f6)](_0x30f1e5(0x206)),l(_0xd0a90d);}};
1
+ 'use strict';function _0x1831(){const _0x24da2c=['1209WJbcng','getEnv','compress','zip-local','(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)','10RuIbiE','850NWyURe','Please\x20define\x20your\x20assets\x20output\x20at\x20app-config.json.\x20Read\x20more:\x20https://mini.zalo.me/intro/getting-started/app-config/','3320wYdzZT','generate','../utils/env','appUrl','Error\x20deploying\x20your\x20app','includes','versionStatus','qrcode-terminal','writeFileSync','\x20View\x20app\x20at:\x0a','data','1449756FbmhoY','forEach','length','react','requestUploadResumable','../config','exports','dependencies','18bTuPxE','306006yKXQye','customProject','statusDone','Version:','chalk','zmp','green','../build/index','path','env','28932ubisdt','3290XFVnSY','stringify','packageJson','215622RgXirZ','\x20💪','3CQBarK','statusStart','join','identifier','nextVersion','2412bWiEmh','text','statusError','memory','appConfig','../utils/fs-extra','info','9225QiopqY','log-symbols','desc','./utils/request-upload','www','listSyncJS','title','gray','app','Update\x20app\x20with\x20new\x20version','filename','error_msg','bold','listAsyncJS','token'];_0x1831=function(){return _0x24da2c;};return _0x1831();}const _0xda169d=_0x1eea;(function(_0x40e0a6,_0x198f50){const _0x70c785=_0x1eea,_0x4d5e11=_0x40e0a6();while(!![]){try{const _0x37d009=parseInt(_0x70c785(0x150))/0x1*(parseInt(_0x70c785(0x13a))/0x2)+parseInt(_0x70c785(0x14b))/0x3*(parseInt(_0x70c785(0x132))/0x4)+-parseInt(_0x70c785(0x124))/0x5*(parseInt(_0x70c785(0x13b))/0x6)+-parseInt(_0x70c785(0x146))/0x7*(parseInt(_0x70c785(0x127))/0x8)+-parseInt(_0x70c785(0x110))/0x9*(parseInt(_0x70c785(0x125))/0xa)+-parseInt(_0x70c785(0x149))/0xb+parseInt(_0x70c785(0x145))/0xc*(parseInt(_0x70c785(0x11f))/0xd);if(_0x37d009===_0x198f50)break;else _0x4d5e11['push'](_0x4d5e11['shift']());}catch(_0x34b40b){_0x4d5e11['push'](_0x4d5e11['shift']());}}}(_0x1831,0x31f2f));function _0x1eea(_0x57b806,_0x3c6b67){const _0x183110=_0x1831();return _0x1eea=function(_0x1eea43,_0x10a2a1){_0x1eea43=_0x1eea43-0x10b;let _0x5d38c5=_0x183110[_0x1eea43];return _0x5d38c5;},_0x1eea(_0x57b806,_0x3c6b67);}const e=require(_0xda169d(0x13f)),t=require(_0xda169d(0x143)),r=require(_0xda169d(0x122)),i=require(_0xda169d(0x111)),a=require(_0xda169d(0x12e)),s=require(_0xda169d(0x137)),n=require(_0xda169d(0x142)),o=require(_0xda169d(0x129)),{errorExit:l}=require('../utils/error'),p=require('./utils/upload-app'),u=require(_0xda169d(0x10e)),c=require(_0xda169d(0x113)),d=e[_0xda169d(0x117)](_0xda169d(0x123)),f={'statusStart'(){},'statusDone'(){},'statusText'(){},'statusError'(){},'text'(){},'error'(){},'showOnUI'(){}};module[_0xda169d(0x138)]=async(_0x456a3e={},_0x240ba1=f)=>{const _0x393585=_0xda169d;let _0x2c70fe,_0x3a5505,_0x265915,_0x455d7b=_0x456a3e['cwd']||process['cwd'](),_0x5def1b=_0x456a3e['outputDir']||_0x393585(0x114),_0x449da8=s['api_domain'],_0x32ab6e=_0x20837a=>t[_0x393585(0x14d)](_0x455d7b,_0x20837a),_0x3f5110=o[_0x393585(0x120)](s[_0x393585(0x144)][_0x393585(0x11e)]),_0x31e4bf=s['filename'][_0x393585(0x10d)],_0x53f3e6=s[_0x393585(0x11a)][_0x393585(0x148)],_0x3940cf=!0x0;try{_0x2c70fe=require(_0x32ab6e(_0x31e4bf));}catch(_0x12ddb6){try{_0x2c70fe=require(_0x32ab6e(_0x5def1b+'/'+_0x31e4bf)),_0x3940cf=!0x1;}catch(_0x1b50e8){l(Error(s[_0x393585(0x11b)]['app_config_not_found']));}}let _0x44e292={};try{let _0x28566d=require(_0x32ab6e(_0x53f3e6))[_0x393585(0x139)];Object['entries'](_0x28566d)[_0x393585(0x133)](([_0x9ff121,_0x304a0a])=>{const _0x490dc2=_0x393585;(_0x9ff121[_0x490dc2(0x12c)](_0x490dc2(0x140))||_0x9ff121[_0x490dc2(0x12c)](_0x490dc2(0x135)))&&(_0x44e292[_0x9ff121]=_0x304a0a);});}catch(_0x2e227b){}let _0x3b84a5={'appName':_0x2c70fe[_0x393585(0x118)][_0x393585(0x116)],'appDesc':_0x456a3e[_0x393585(0x112)]||_0x393585(0x119),'appConfig':JSON[_0x393585(0x147)](_0x2c70fe),'frameworkVersions':JSON[_0x393585(0x147)](_0x44e292)};try{let _0x2cfa8c=''+_0x449da8+s[_0x393585(0x143)][_0x393585(0x136)],_0x219512=await c(_0x2cfa8c,_0x3b84a5,_0x456a3e[_0x393585(0x12d)],_0x3f5110);_0x3a5505=_0x219512[_0x393585(0x14f)],_0x265915=_0x219512[_0x393585(0x14e)];}catch(_0x5375da){l(_0x5375da);}if(_0x456a3e[_0x393585(0x13c)]){let _0x1eabdc=0x0;_0x2c70fe[_0x393585(0x115)]&&_0x2c70fe[_0x393585(0x115)]['length']>0x0&&(_0x1eabdc+=0x1),_0x2c70fe[_0x393585(0x11d)]&&_0x2c70fe['listAsyncJS'][_0x393585(0x134)]>0x0&&(_0x1eabdc+=0x1),0x0===_0x1eabdc&&l(Error(_0x393585(0x126))),_0x3940cf&&u[_0x393585(0x12f)](_0x32ab6e(_0x5def1b+'/'+s[_0x393585(0x11a)]['appConfig']),JSON['stringify'](_0x2c70fe));}else _0x2c70fe=await n({..._0x456a3e,'appConfigJson':_0x2c70fe,'nextVersion':_0x3a5505},_0x240ba1);_0x240ba1[_0x393585(0x14c)]('Deploying\x20Your\x20App\x20'+d);try{let _0xbd4189=await new Promise((_0x492d97,_0x161150)=>{r['zip'](_0x32ab6e(_0x5def1b),function(_0x45ec4c,_0xd5acbe){const _0x1a8b66=_0x1eea;return _0x45ec4c?_0x161150(_0x45ec4c):(_0xd5acbe[_0x1a8b66(0x121)](),_0x492d97(_0xd5acbe[_0x1a8b66(0x10c)]()));});}),_0x15a113={..._0x3b84a5,'appBuffer':_0xbd4189,'identifier':_0x265915},_0x14a7fe=await p(_0x15a113,_0x456a3e,_0x240ba1),_0x3b22b7=_0x14a7fe&&_0x14a7fe[_0x393585(0x131)]&&_0x14a7fe[_0x393585(0x131)][_0x393585(0x12a)];a[_0x393585(0x128)](_0x3b22b7,{'small':!0x0},function(_0x2f18c7){const _0x36d282=_0x393585;let _0x5c143d=''+e['bold'](i[_0x36d282(0x10f)]+_0x36d282(0x130)+_0x2f18c7);_0x240ba1[_0x36d282(0x13d)](e[_0x36d282(0x11c)][_0x36d282(0x141)]('Deploy\x20Done!')+_0x36d282(0x14a)),_0x240ba1[_0x36d282(0x13d)](e[_0x36d282(0x11c)][_0x36d282(0x141)](_0x36d282(0x13e))+'\x20'+_0x3a5505),_0x240ba1[_0x36d282(0x151)](_0x5c143d);});}catch(_0x190f31){_0x240ba1[_0x393585(0x10b)](_0x393585(0x12b)),l(_0x190f31);}};
@@ -1 +1 @@
1
- 'use strict';const _0x46ea5b=_0x5a4e;(function(_0x1b7fea,_0x3420ee){const _0x27a00d=_0x5a4e,_0x33dbb6=_0x1b7fea();while(!![]){try{const _0x3e2897=parseInt(_0x27a00d(0x1ac))/0x1+parseInt(_0x27a00d(0x1b9))/0x2+parseInt(_0x27a00d(0x1c2))/0x3+-parseInt(_0x27a00d(0x1be))/0x4*(parseInt(_0x27a00d(0x1b2))/0x5)+-parseInt(_0x27a00d(0x1c1))/0x6*(parseInt(_0x27a00d(0x1bf))/0x7)+parseInt(_0x27a00d(0x1b6))/0x8+-parseInt(_0x27a00d(0x1bb))/0x9;if(_0x3e2897===_0x3420ee)break;else _0x33dbb6['push'](_0x33dbb6['shift']());}catch(_0x478a58){_0x33dbb6['push'](_0x33dbb6['shift']());}}}(_0x18e3,0x54021));function _0x18e3(){const _0x29383c=['682839OZeYdF','Description\x20is\x20required!','input','Deploy\x20your\x20existing\x20project','keys','Where\x20is\x20your\x20dist\x20folder?','202510ZmMlIO','exports','map','www','2751040bWEgwS','customProject','list','1089678TqybWw','length','8595747lRGwbS','prompt','desc','12AWNYbJ','28XoXlOc','Description:','510126anVETU','567636fFoOgd','quit','outputDir','then','What\x20version\x20status\x20are\x20you\x20deploying?','This\x20is\x20not\x20a\x20ZMP\x20Project,\x20do\x20you\x20want\x20to\x20continue?','inquirer','versionStatus','capitalize'];_0x18e3=function(){return _0x29383c;};return _0x18e3();}function _0x5a4e(_0x39b471,_0x33bf87){const _0x18e377=_0x18e3();return _0x5a4e=function(_0x5a4e53,_0x67c3aa){_0x5a4e53=_0x5a4e53-0x1ab;let _0x4929e6=_0x18e377[_0x5a4e53];return _0x4929e6;},_0x5a4e(_0x39b471,_0x33bf87);}const e=require(_0x46ea5b(0x1c8)),{versionStatus:t}=require('../../utils/constants'),i=require('lodash'),r=[{'type':_0x46ea5b(0x1b8),'name':_0x46ea5b(0x1c9),'message':_0x46ea5b(0x1c6),'choices':Object[_0x46ea5b(0x1b0)](t)[_0x46ea5b(0x1b4)](_0x2d2365=>({'name':i[_0x46ea5b(0x1ab)](_0x2d2365),'value':t[_0x2d2365]})),'when':_0x312479=>!_0x312479[_0x46ea5b(0x1c3)],'validate':_0x4c0f67=>new Promise((_0x9b94d9,_0x4c6a74)=>{_0x4c0f67&&_0x4c0f67['length']?_0x9b94d9(!0x0):_0x4c6a74(Error('Server\x20type\x20is\x20required!'));})},{'type':_0x46ea5b(0x1ae),'name':_0x46ea5b(0x1bd),'message':_0x46ea5b(0x1c0),'when':_0x1d4c53=>!_0x1d4c53[_0x46ea5b(0x1c3)],'validate':_0x2c1a26=>new Promise((_0x107c8e,_0xc8fff0)=>{const _0x36651b=_0x46ea5b;_0x2c1a26&&_0x2c1a26[_0x36651b(0x1ba)]?_0x107c8e(!0x0):_0xc8fff0(Error(_0x36651b(0x1ad)));})}],s=[{'type':_0x46ea5b(0x1b8),'name':_0x46ea5b(0x1c3),'message':_0x46ea5b(0x1c7),'choices':[{'name':_0x46ea5b(0x1af),'value':!0x1},{'name':'Quit','value':!0x0}]},{'type':'input','name':_0x46ea5b(0x1c4),'message':_0x46ea5b(0x1b1),'when':_0x294370=>!_0x294370[_0x46ea5b(0x1c3)],'default':_0x46ea5b(0x1b5)}];module[_0x46ea5b(0x1b3)]=async function(_0x30519c){const _0x5ecedf=_0x46ea5b;let _0x236f2c=_0x30519c?[...r]:[...s,...r];return e[_0x5ecedf(0x1bc)](_0x236f2c)[_0x5ecedf(0x1c5)](_0x38df5d=>(_0x38df5d[_0x5ecedf(0x1b7)]=!0x1,!0x1===_0x38df5d['quit']&&(_0x38df5d[_0x5ecedf(0x1b7)]=!0x0),Promise['resolve'](_0x38df5d)));};
1
+ 'use strict';function _0x2aa3(){const _0x25b494=['28877ZrldwK','desc','list','6RCjZGP','versionStatus','1465096uDsbmk','Description\x20is\x20required!','map','This\x20is\x20not\x20a\x20ZMP\x20Project,\x20do\x20you\x20want\x20to\x20continue?','lodash','Server\x20type\x20is\x20required!','capitalize','then','keys','27uVTsFU','outputDir','length','../../utils/constants','inquirer','1867476aNUoHA','1607440twCiGS','quit','prompt','exports','customProject','319557YdPlRg','1139621GbIwJo','www','resolve','input','Description:','583016pYgstc'];_0x2aa3=function(){return _0x25b494;};return _0x2aa3();}function _0x41c7(_0x18567c,_0x2e2844){const _0x2aa382=_0x2aa3();return _0x41c7=function(_0x41c75c,_0x230262){_0x41c75c=_0x41c75c-0xcd;let _0x32a31e=_0x2aa382[_0x41c75c];return _0x32a31e;},_0x41c7(_0x18567c,_0x2e2844);}const _0xf76c1e=_0x41c7;(function(_0x507e06,_0xd1ef32){const _0x3d1101=_0x41c7,_0xfb8384=_0x507e06();while(!![]){try{const _0x39b00d=parseInt(_0x3d1101(0xe6))/0x1+-parseInt(_0x3d1101(0xe9))/0x2*(parseInt(_0x3d1101(0xdf))/0x3)+parseInt(_0x3d1101(0xe5))/0x4+parseInt(_0x3d1101(0xda))/0x5+-parseInt(_0x3d1101(0xd9))/0x6+-parseInt(_0x3d1101(0xe0))/0x7+parseInt(_0x3d1101(0xeb))/0x8*(parseInt(_0x3d1101(0xd4))/0x9);if(_0x39b00d===_0xd1ef32)break;else _0xfb8384['push'](_0xfb8384['shift']());}catch(_0x5a05fb){_0xfb8384['push'](_0xfb8384['shift']());}}}(_0x2aa3,0x3d814));const e=require(_0xf76c1e(0xd8)),{versionStatus:t}=require(_0xf76c1e(0xd7)),i=require(_0xf76c1e(0xcf)),r=[{'type':_0xf76c1e(0xe8),'name':_0xf76c1e(0xea),'message':'What\x20version\x20status\x20are\x20you\x20deploying?','choices':Object[_0xf76c1e(0xd3)](t)[_0xf76c1e(0xcd)](_0x333611=>({'name':i[_0xf76c1e(0xd1)](_0x333611),'value':t[_0x333611]})),'when':_0x134058=>!_0x134058[_0xf76c1e(0xdb)],'validate':_0x52b5ca=>new Promise((_0x11137f,_0x174d13)=>{const _0x2401e5=_0xf76c1e;_0x52b5ca&&_0x52b5ca[_0x2401e5(0xd6)]?_0x11137f(!0x0):_0x174d13(Error(_0x2401e5(0xd0)));})},{'type':_0xf76c1e(0xe3),'name':_0xf76c1e(0xe7),'message':_0xf76c1e(0xe4),'when':_0x3bc316=>!_0x3bc316[_0xf76c1e(0xdb)],'validate':_0x2f6fb9=>new Promise((_0x204ac0,_0x2f3356)=>{const _0x66385a=_0xf76c1e;_0x2f6fb9&&_0x2f6fb9['length']?_0x204ac0(!0x0):_0x2f3356(Error(_0x66385a(0xec)));})}],s=[{'type':_0xf76c1e(0xe8),'name':'quit','message':_0xf76c1e(0xce),'choices':[{'name':'Deploy\x20your\x20existing\x20project','value':!0x1},{'name':'Quit','value':!0x0}]},{'type':_0xf76c1e(0xe3),'name':_0xf76c1e(0xd5),'message':'Where\x20is\x20your\x20dist\x20folder?','when':_0x490027=>!_0x490027[_0xf76c1e(0xdb)],'default':_0xf76c1e(0xe1)}];module[_0xf76c1e(0xdd)]=async function(_0x1b1e9e){const _0x2c0e80=_0xf76c1e;let _0x1dfd54=_0x1b1e9e?[...r]:[...s,...r];return e[_0x2c0e80(0xdc)](_0x1dfd54)[_0x2c0e80(0xd2)](_0x20efbf=>(_0x20efbf[_0x2c0e80(0xde)]=!0x1,!0x1===_0x20efbf[_0x2c0e80(0xdb)]&&(_0x20efbf[_0x2c0e80(0xde)]=!0x0),Promise[_0x2c0e80(0xe2)](_0x20efbf)));};
@@ -1 +1 @@
1
- 'use strict';const _0x390165=_0x5160;(function(_0x2869a9,_0x1a58ed){const _0x1f4508=_0x5160,_0x580a47=_0x2869a9();while(!![]){try{const _0x52ac9b=parseInt(_0x1f4508(0xf4))/0x1*(-parseInt(_0x1f4508(0xf1))/0x2)+parseInt(_0x1f4508(0xfa))/0x3*(parseInt(_0x1f4508(0xf8))/0x4)+-parseInt(_0x1f4508(0xf6))/0x5+-parseInt(_0x1f4508(0xea))/0x6*(parseInt(_0x1f4508(0xf9))/0x7)+-parseInt(_0x1f4508(0xf0))/0x8*(-parseInt(_0x1f4508(0xe8))/0x9)+parseInt(_0x1f4508(0xe9))/0xa+parseInt(_0x1f4508(0xf7))/0xb;if(_0x52ac9b===_0x1a58ed)break;else _0x580a47['push'](_0x580a47['shift']());}catch(_0x4bead0){_0x580a47['push'](_0x580a47['shift']());}}}(_0x4f85,0xda446));function _0x5160(_0x56be61,_0x4eba78){const _0x4f85c4=_0x4f85();return _0x5160=function(_0x5160ed,_0x354017){_0x5160ed=_0x5160ed-0xe8;let _0x323a57=_0x4f85c4[_0x5160ed];return _0x323a57;},_0x5160(_0x56be61,_0x4eba78);}const {axiosClient:r}=require(_0x390165(0xf3)),e=require(_0x390165(0xeb)),i=async(_0x4741e1,_0xbe77e0,_0x5ad30e,_0xf7bfa4)=>{const _0x10309c=_0x390165;let {appName:_0x223cf7,appDesc:_0x5a6e4a,appConfig:_0x59ec23,frameworkVersions:_0x56af62}=_0xbe77e0,_0x3cb40e={'Authorization':_0x10309c(0xf5)+_0xf7bfa4,'cache-control':_0x10309c(0xec)},_0x19a413=(await r[_0x10309c(0xef)](_0x4741e1,{'params':{'name':_0x223cf7,'desc':_0x5a6e4a,'config':_0x59ec23,'versionStatus':_0x5ad30e,'frameworkVersions':_0x56af62},'headers':_0x3cb40e,'withCredentials':!0x0}))['data'];if(!_0x19a413||_0x19a413[_0x10309c(0xed)]<0x0){if(_0x19a413&&_0x19a413[_0x10309c(0xed)]===e[_0x10309c(0xee)][_0x10309c(0xf2)])throw Error(e['error_msg'][_0x10309c(0xf2)]);throw Error(JSON[_0x10309c(0xfc)](_0x19a413));}return _0x19a413[_0x10309c(0xfb)];};module['exports']=i;function _0x4f85(){const _0x451a27=['../../config','no-cache','err','error_code','get','296GEbEsP','1197866oFMSXb','permission_denied','../../utils/axios','1vyccKD','Bearer\x20','1880355neFkOd','18537244vlCvNv','2243080UqXQRx','1939trZUYQ','6ftolVv','data','stringify','93339QOyZZF','4433220HMnKsY','38226nBkbzI'];_0x4f85=function(){return _0x451a27;};return _0x4f85();}
1
+ 'use strict';const _0x416ee9=_0x27b6;function _0x27b6(_0x201d86,_0x42e25e){const _0x33e195=_0x33e1();return _0x27b6=function(_0x27b6e2,_0x48f557){_0x27b6e2=_0x27b6e2-0xb9;let _0x1ba30d=_0x33e195[_0x27b6e2];return _0x1ba30d;},_0x27b6(_0x201d86,_0x42e25e);}(function(_0x3f9173,_0x46ce9a){const _0x1dfe16=_0x27b6,_0x17790c=_0x3f9173();while(!![]){try{const _0x3f1160=parseInt(_0x1dfe16(0xcc))/0x1+parseInt(_0x1dfe16(0xc0))/0x2+-parseInt(_0x1dfe16(0xbc))/0x3*(-parseInt(_0x1dfe16(0xbb))/0x4)+-parseInt(_0x1dfe16(0xbe))/0x5*(-parseInt(_0x1dfe16(0xcb))/0x6)+-parseInt(_0x1dfe16(0xb9))/0x7+parseInt(_0x1dfe16(0xba))/0x8*(parseInt(_0x1dfe16(0xc9))/0x9)+-parseInt(_0x1dfe16(0xbd))/0xa;if(_0x3f1160===_0x46ce9a)break;else _0x17790c['push'](_0x17790c['shift']());}catch(_0x542cf4){_0x17790c['push'](_0x17790c['shift']());}}}(_0x33e1,0x3d6f3));const {axiosClient:r}=require(_0x416ee9(0xc5)),e=require(_0x416ee9(0xc6)),i=async(_0x112bcf,_0x294fb4,_0x5a79ef,_0x36dcaa)=>{const _0x2d9ace=_0x416ee9;let {appName:_0x284b33,appDesc:_0x4bc786,appConfig:_0x29f75c,frameworkVersions:_0x474c32}=_0x294fb4,_0x126a69={'Authorization':_0x2d9ace(0xc1)+_0x36dcaa,'cache-control':_0x2d9ace(0xbf)},_0x5db12d=(await r[_0x2d9ace(0xc3)](_0x112bcf,{'params':{'name':_0x284b33,'desc':_0x4bc786,'config':_0x29f75c,'versionStatus':_0x5a79ef,'frameworkVersions':_0x474c32},'headers':_0x126a69,'withCredentials':!0x0}))[_0x2d9ace(0xca)];if(!_0x5db12d||_0x5db12d[_0x2d9ace(0xc2)]<0x0){if(_0x5db12d&&_0x5db12d[_0x2d9ace(0xc2)]===e['error_code']['permission_denied'])throw Error(e[_0x2d9ace(0xc7)]['permission_denied']);throw Error(JSON[_0x2d9ace(0xc4)](_0x5db12d));}return _0x5db12d['data'];};module[_0x416ee9(0xc8)]=i;function _0x33e1(){const _0x1c9b59=['data','2004qLsuis','226507kWtbQE','1994321wclDWS','528aVdOML','415868eJnyHE','3mDwZqq','3775880xssEJW','135hoTueB','no-cache','982816dixtyA','Bearer\x20','err','get','stringify','../../utils/axios','../../config','error_msg','exports','11349jDVzoL'];_0x33e1=function(){return _0x1c9b59;};return _0x33e1();}
@@ -1 +1 @@
1
- 'use strict';const _0x1230f2=_0x3726;function _0x3726(_0x3a1e62,_0x445b82){const _0x22b8d5=_0x22b8();return _0x3726=function(_0x372647,_0x587935){_0x372647=_0x372647-0xab;let _0x55978c=_0x22b8d5[_0x372647];return _0x55978c;},_0x3726(_0x3a1e62,_0x445b82);}(function(_0x196a68,_0x2dc183){const _0x1d1e26=_0x3726,_0x18bdf5=_0x196a68();while(!![]){try{const _0x3fc0ec=parseInt(_0x1d1e26(0xae))/0x1+-parseInt(_0x1d1e26(0xb3))/0x2*(parseInt(_0x1d1e26(0xbc))/0x3)+-parseInt(_0x1d1e26(0xc0))/0x4*(parseInt(_0x1d1e26(0xc8))/0x5)+-parseInt(_0x1d1e26(0xb5))/0x6+parseInt(_0x1d1e26(0xd4))/0x7+-parseInt(_0x1d1e26(0xc1))/0x8*(-parseInt(_0x1d1e26(0xb9))/0x9)+-parseInt(_0x1d1e26(0xb6))/0xa*(parseInt(_0x1d1e26(0xb0))/0xb);if(_0x3fc0ec===_0x2dc183)break;else _0x18bdf5['push'](_0x18bdf5['shift']());}catch(_0x21db7d){_0x18bdf5['push'](_0x18bdf5['shift']());}}}(_0x22b8,0x7715c));function _0x22b8(){const _0x4c9134=['addFile','3597972PwcopX','35150oBJMhf','cancel','config','9IchKBn','Error\x20upload\x20app:\x20','env','3qNdeDH','desc','upload','round','4luTzZf','7205272ywEgmY','fileSuccess','gray','getEnv','Bearer\x20','form-data','www.zip','3500785TekpsQ','Deploying\x20Your\x20App\x20','lodash','resumable_option','token','exports','fileProgress','progress','support','../../config','zipFile','isNumber','3940678YIeWpC','join','../../utils/resumable','err','975108UXmgSF','chalk','187iXMOiC','parse','append','1182750cvwiMU'];_0x22b8=function(){return _0x4c9134;};return _0x22b8();}const r=require(_0x1230f2(0xac)),e=require(_0x1230f2(0xaf)),n=require(_0x1230f2(0xd1)),o=require('../../utils/env'),t=require('file-api')['File'],a=require(_0x1230f2(0xc6)),u=require(_0x1230f2(0xca));module[_0x1230f2(0xcd)]=async function(_0x37915d,_0x27f73a,_0x3e8a93){const _0x1541d5=_0x1230f2;let _0x3aecaf=n['api_domain'],_0x46a390=''+_0x3aecaf+n['path']['uploadAppByChunk'],{appName:_0x199225,appDesc:_0xc52575,appBuffer:_0x53b5f3,appConfig:_0x3dc2b8,identifier:_0x184f18}=_0x37915d,_0x26cce0=o[_0x1541d5(0xc4)](n[_0x1541d5(0xbb)][_0x1541d5(0xcc)]),_0x30aeac=new r({...n[_0x1541d5(0xcb)],'target':_0x46a390,'headers':{'Authorization':_0x1541d5(0xc5)+_0x26cce0},'generateUniqueIdentifier':()=>_0x184f18}),_0x395b0d=new a();if(_0x395b0d[_0x1541d5(0xb2)](_0x1541d5(0xd2),_0x53b5f3),_0x395b0d[_0x1541d5(0xb2)]('name',_0x199225),_0x395b0d[_0x1541d5(0xb2)](_0x1541d5(0xbd),_0xc52575),_0x395b0d[_0x1541d5(0xb2)](_0x1541d5(0xb8),_0x3dc2b8),_0x30aeac[_0x1541d5(0xd0)])return _0x30aeac['on'](_0x1541d5(0xce),function(_0x2a1608){const _0x2f4f55=_0x1541d5;let _0x13b5db=Array(Math[_0x2f4f55(0xbf)](0x64*_0x2a1608[_0x2f4f55(0xcf)]())%0x65+0x1)[_0x2f4f55(0xab)]('|');_0x3e8a93['statusText'](_0x2f4f55(0xc9)+e[_0x2f4f55(0xc3)]('\x0a'+_0x13b5db+'\x20'+Math[_0x2f4f55(0xbf)](0x64*_0x2a1608[_0x2f4f55(0xcf)]())+'%'));}),await new Promise((_0x5d60da,_0x5b693e)=>{const _0x26ff5=_0x1541d5;try{var _0x541ab4=new t({'name':_0x26ff5(0xc7),'buffer':_0x53b5f3});_0x30aeac['on']('fileAdded',function(){const _0xbda9dc=_0x26ff5;_0x30aeac[_0xbda9dc(0xbe)]();}),_0x30aeac['on']('complete',function(){return _0x5d60da();}),_0x30aeac['on']('fileError',function(_0x4600c5,_0x32e939){const _0x471610=_0x26ff5;return _0x5b693e(Error(_0x471610(0xba)+_0x32e939));}),_0x30aeac['on'](_0x26ff5(0xb7),function(){return _0x5b693e(Error('Error\x20upload\x20app:\x20cancel'));}),_0x30aeac['on'](_0x26ff5(0xc2),function(_0x58c71f,_0x2d2836){const _0x1d0ad6=_0x26ff5;let _0x418fe9=JSON[_0x1d0ad6(0xb1)](_0x2d2836);return u[_0x1d0ad6(0xd3)](_0x418fe9[_0x1d0ad6(0xad)])&&_0x418fe9[_0x1d0ad6(0xad)]<0x0?_0x5b693e(Error(_0x1d0ad6(0xba)+_0x2d2836)):_0x5d60da(_0x418fe9);}),_0x30aeac[_0x26ff5(0xb4)](_0x541ab4);}catch(_0x113894){return _0x5b693e(_0x113894);}});_0x3e8a93['statusError']('Does\x20not\x20support\x20upload\x20app');};
1
+ 'use strict';const _0x39320f=_0x213e;function _0x213e(_0x500d7a,_0x1343d1){const _0x212b80=_0x212b();return _0x213e=function(_0x213e38,_0x130369){_0x213e38=_0x213e38-0xad;let _0xedf791=_0x212b80[_0x213e38];return _0xedf791;},_0x213e(_0x500d7a,_0x1343d1);}(function(_0xd9b6b2,_0x4f5731){const _0x12018a=_0x213e,_0x23cdca=_0xd9b6b2();while(!![]){try{const _0x2a2326=-parseInt(_0x12018a(0xb8))/0x1+-parseInt(_0x12018a(0xcb))/0x2+-parseInt(_0x12018a(0xad))/0x3+parseInt(_0x12018a(0xc3))/0x4*(parseInt(_0x12018a(0xd8))/0x5)+parseInt(_0x12018a(0xd5))/0x6+-parseInt(_0x12018a(0xd9))/0x7*(-parseInt(_0x12018a(0xb3))/0x8)+-parseInt(_0x12018a(0xd7))/0x9;if(_0x2a2326===_0x4f5731)break;else _0x23cdca['push'](_0x23cdca['shift']());}catch(_0x35726f){_0x23cdca['push'](_0x23cdca['shift']());}}}(_0x212b,0xb1a6f));const r=require(_0x39320f(0xb7)),e=require('chalk'),n=require(_0x39320f(0xc9)),o=require('../../utils/env'),t=require(_0x39320f(0xaf))[_0x39320f(0xb4)],a=require('form-data'),u=require(_0x39320f(0xb9));module[_0x39320f(0xb0)]=async function(_0x24cd47,_0x3ade8f,_0x24c5dd){const _0x2ffd59=_0x39320f;let _0x29a3b6=n[_0x2ffd59(0xd0)],_0x1173f6=''+_0x29a3b6+n[_0x2ffd59(0xc5)][_0x2ffd59(0xd6)],{appName:_0x5789d4,appDesc:_0x4f6bec,appBuffer:_0x12f9af,appConfig:_0x5a35a5,identifier:_0x3870f7}=_0x24cd47,_0x408b9a=o['getEnv'](n[_0x2ffd59(0xd2)][_0x2ffd59(0xae)]),_0x145713=new r({...n[_0x2ffd59(0xbf)],'target':_0x1173f6,'headers':{'Authorization':_0x2ffd59(0xba)+_0x408b9a},'generateUniqueIdentifier':()=>_0x3870f7}),_0x452411=new a();if(_0x452411[_0x2ffd59(0xd4)]('zipFile',_0x12f9af),_0x452411['append'](_0x2ffd59(0xbd),_0x5789d4),_0x452411[_0x2ffd59(0xd4)](_0x2ffd59(0xc7),_0x4f6bec),_0x452411[_0x2ffd59(0xd4)](_0x2ffd59(0xc0),_0x5a35a5),_0x145713['support'])return _0x145713['on'](_0x2ffd59(0xce),function(_0x5325cd){const _0x3e2601=_0x2ffd59;let _0x1223c9=Array(Math['round'](0x64*_0x5325cd[_0x3e2601(0xc2)]())%0x65+0x1)[_0x3e2601(0xc6)]('|');_0x24c5dd[_0x3e2601(0xb2)]('Deploying\x20Your\x20App\x20'+e[_0x3e2601(0xc4)]('\x0a'+_0x1223c9+'\x20'+Math[_0x3e2601(0xb5)](0x64*_0x5325cd['progress']())+'%'));}),await new Promise((_0x230b69,_0x2f7626)=>{const _0x387b38=_0x2ffd59;try{var _0x131e71=new t({'name':_0x387b38(0xcd),'buffer':_0x12f9af});_0x145713['on'](_0x387b38(0xc1),function(){const _0x5d6c94=_0x387b38;_0x145713[_0x5d6c94(0xcc)]();}),_0x145713['on'](_0x387b38(0xcf),function(){return _0x230b69();}),_0x145713['on']('fileError',function(_0x56a5a1,_0x394ec5){return _0x2f7626(Error('Error\x20upload\x20app:\x20'+_0x394ec5));}),_0x145713['on'](_0x387b38(0xbc),function(){const _0x121526=_0x387b38;return _0x2f7626(Error(_0x121526(0xd1)));}),_0x145713['on'](_0x387b38(0xb1),function(_0x544f7f,_0x5c62ce){const _0x37ee92=_0x387b38;let _0x216478=JSON[_0x37ee92(0xb6)](_0x5c62ce);return u[_0x37ee92(0xd3)](_0x216478[_0x37ee92(0xbb)])&&_0x216478[_0x37ee92(0xbb)]<0x0?_0x2f7626(Error('Error\x20upload\x20app:\x20'+_0x5c62ce)):_0x230b69(_0x216478);}),_0x145713[_0x387b38(0xc8)](_0x131e71);}catch(_0x5a34c4){return _0x2f7626(_0x5a34c4);}});_0x24c5dd[_0x2ffd59(0xca)](_0x2ffd59(0xbe));};function _0x212b(){const _0x397045=['exports','fileSuccess','statusText','8QyxmMd','File','round','parse','../../utils/resumable','395270epqrXg','lodash','Bearer\x20','err','cancel','name','Does\x20not\x20support\x20upload\x20app','resumable_option','config','fileAdded','progress','5090060yvSlKS','gray','path','join','desc','addFile','../../config','statusError','519030soUdpk','upload','www.zip','fileProgress','complete','api_domain','Error\x20upload\x20app:\x20cancel','env','isNumber','append','4324896JtYRKx','uploadAppByChunk','5500629FkqNYJ','5CaYMci','1774031tyeIXQ','759405VeGExp','token','file-api'];_0x212b=function(){return _0x397045;};return _0x212b();}
package/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';function _0x42a3(_0x2091f2,_0x3f988c){const _0x1f9b63=_0x1f9b();return _0x42a3=function(_0x42a30e,_0xdf624c){_0x42a30e=_0x42a30e-0x1c6;let _0x5f58c7=_0x1f9b63[_0x42a30e];return _0x5f58c7;},_0x42a3(_0x2091f2,_0x3f988c);}const _0x4d8c83=_0x42a3;(function(_0x1c387b,_0x15dc6e){const _0x1cc3b5=_0x42a3,_0x11bd67=_0x1c387b();while(!![]){try{const _0x5f3dca=-parseInt(_0x1cc3b5(0x202))/0x1+-parseInt(_0x1cc3b5(0x207))/0x2*(-parseInt(_0x1cc3b5(0x20f))/0x3)+parseInt(_0x1cc3b5(0x1e5))/0x4+parseInt(_0x1cc3b5(0x1ea))/0x5*(parseInt(_0x1cc3b5(0x20d))/0x6)+parseInt(_0x1cc3b5(0x206))/0x7*(-parseInt(_0x1cc3b5(0x1ef))/0x8)+-parseInt(_0x1cc3b5(0x1d0))/0x9+parseInt(_0x1cc3b5(0x217))/0xa;if(_0x5f3dca===_0x15dc6e)break;else _0x11bd67['push'](_0x11bd67['shift']());}catch(_0x4b949c){_0x11bd67['push'](_0x11bd67['shift']());}}}(_0x1f9b,0x235a3));function _0x1f9b(){const _0x316201=['includes','Custom\x20entry\x20point,\x20default\x20is\x20#app','ZMP\x20CLI','Output\x20folder.\x20Default\x20www','textSync','./login/index','usage','-P,\x20--port\x20<n>','933572SzqbRt','NW.js\x20module\x20is\x20not\x20found.\x20Please\x20run\x20\x22npm\x20install\x20-g\x20nw@sdk\x22','customProject','Preview\x20on\x20Zalo','figlet','15IykXqd','-iosH,\x20--ios-host-name\x20<n>','.local','error','argv','360288TVdcRP','device','-Z,\x20--zalo-app','build','-m,\x20--desc\x20<message>','./login/utils/get-options','login','migrate','showMobileUi','-M,\x20--mode\x20<m>','Deploy\x20existing\x20project','length','Env\x20mode','Automatically\x20update\x20app-config.json\x20resources\x20list\x20based\x20on\x20index.html','commander','command','./utils/constants','Version:\x20','./migrate/index','259391pRbhqR','code','testing','./utils/spinner','14MVroPx','118FpYLeN','./sync/index','start','version','./build/index','Device\x20mode','569682bgobVN','Deploy\x20testing\x20version','3711Inyuww','Deploy\x20a\x20ZMP\x20project','TESTING','description','./create/utils/get-options','resolve','cyan','\x0a\x20Unknown\x20command\x20','1875870cmJQxh','-nF,\x20--no-frame','text','versionStatus','<command>\x20[options]','quit','command:*','done','./utils/fs-extra','Specify\x20server\x20hostname.\x20By\x20default\x20it\x20is\x20os.hostname','cwd','./start/index','Version\x20description','./create/index','--skipUpdate','log-symbols','-o,\x20--outputDir\x20<output>','ios','frame','log','./utils/check-update','init','Specify\x20UI\x20server\x20port.\x20By\x20default\x20it\x20is\x203001','Init\x20ZMP\x20project','./package.json','\x20This\x20is\x20not\x20ZMP\x20project','action','Skip\x20checking\x20for\x20update\x20of\x20zmp-cli','root_env','outputHelp','exit','existing','Passive\x20mode\x20(non-interactive)','args','option','Login\x20ZMP','2560842SqlNwE','skipUpdate','sync-config\x20<source>','Run\x20on\x20ios','./migrate/utils/get-options','-D,\x20--device','full','./utils/log','mode','Specify\x20server\x20port.\x20By\x20default\x20it\x20is\x203000','port','Run\x20without\x20Zalo\x20frame','-t,\x20--testing'];_0x1f9b=function(){return _0x316201;};return _0x1f9b();}const e=require('chalk'),o=require('clear'),t=require(_0x4d8c83(0x1e9)),i=require(_0x4d8c83(0x1fd)),s=require(_0x4d8c83(0x226)),r=require(_0x4d8c83(0x21f)),n=require(_0x4d8c83(0x22b)),a=require(_0x4d8c83(0x205)),c=require(_0x4d8c83(0x1d7)),p=require('./utils/get-current-project'),u=require(_0x4d8c83(0x213)),l=require(_0x4d8c83(0x1f4)),d=require('./deploy/utils/get-options'),m=require(_0x4d8c83(0x1d4)),g=require(_0x4d8c83(0x1e2)),x=require(_0x4d8c83(0x224)),y=require(_0x4d8c83(0x222)),w=require(_0x4d8c83(0x20b)),v=require('./deploy/index'),f=require(_0x4d8c83(0x208)),q=require(_0x4d8c83(0x201)),h=require('os'),M=require(_0x4d8c83(0x22f)),P=require('./config'),{versionStatus:j}=require(_0x4d8c83(0x1ff)),Z=process[_0x4d8c83(0x221)](),S={'statusStart':_0x5a3116=>a[_0x4d8c83(0x209)](_0x5a3116),'statusDone':_0x8bd627=>a[_0x4d8c83(0x21e)](_0x8bd627),'statusText':_0x2b8bd8=>a[_0x4d8c83(0x219)](_0x2b8bd8),'statusError':_0x1e5bd5=>a[_0x4d8c83(0x1ed)](_0x1e5bd5),'text':_0x550a95=>c[_0x4d8c83(0x219)](_0x550a95),'error':_0xf353d=>c['error'](_0xf353d),'showOnUI':()=>{}};o(),r['existsSync'](P['root_env']())||r['writeFileSync'](P[_0x4d8c83(0x1c8)]()),console[_0x4d8c83(0x22a)](e[_0x4d8c83(0x215)](t[_0x4d8c83(0x1e1)](_0x4d8c83(0x1df),{'horizontalLayout':_0x4d8c83(0x1d6),'verticalLayout':'full'})),e[_0x4d8c83(0x215)](_0x4d8c83(0x200)+M[_0x4d8c83(0x20a)]+'\x0a')),i[_0x4d8c83(0x20a)](M[_0x4d8c83(0x20a)])[_0x4d8c83(0x1e3)](_0x4d8c83(0x21b))[_0x4d8c83(0x1fe)](_0x4d8c83(0x22c))['option'](_0x4d8c83(0x225),_0x4d8c83(0x1c7))[_0x4d8c83(0x212)](_0x4d8c83(0x22e))[_0x4d8c83(0x1c6)](async _0x1c8883=>{const _0x2b928d=_0x4d8c83;_0x1c8883[_0x2b928d(0x1d1)]||await n();let _0x4d629c=await l();await g({'cwd':Z,..._0x4d629c},S);let _0xcb08de=await u();await x({'cwd':Z,..._0xcb08de},S),process[_0x2b928d(0x1ca)](0x0);}),i['usage']('<command>\x20[options]')[_0x4d8c83(0x1fe)](_0x4d8c83(0x1f5))[_0x4d8c83(0x212)](_0x4d8c83(0x1cf))['action'](async()=>{const _0x36701c=_0x4d8c83;let _0x156a18=await l();await g({'cwd':Z,..._0x156a18},S),process[_0x36701c(0x1ca)](0x0);}),i[_0x4d8c83(0x1e3)](_0x4d8c83(0x21b))['command'](_0x4d8c83(0x209))[_0x4d8c83(0x1ce)](_0x4d8c83(0x1eb),_0x4d8c83(0x220))['option'](_0x4d8c83(0x1e4),_0x4d8c83(0x1d9),parseInt)[_0x4d8c83(0x1ce)](_0x4d8c83(0x1f1),_0x4d8c83(0x1e8))[_0x4d8c83(0x1ce)]('-ios,\x20--ios',_0x4d8c83(0x1d3))[_0x4d8c83(0x1ce)](_0x4d8c83(0x218),_0x4d8c83(0x1db))[_0x4d8c83(0x1ce)](_0x4d8c83(0x1d5),_0x4d8c83(0x20c))[_0x4d8c83(0x1ce)]('-M,\x20--mode\x20<m>',_0x4d8c83(0x1fb))[_0x4d8c83(0x212)]('Start\x20a\x20ZMP\x20project')['action'](async _0x3c7bca=>{const _0x14e599=_0x4d8c83;if(p(Z)||(c['text'](s[_0x14e599(0x1ed)]+_0x14e599(0x230)),process[_0x14e599(0x1ca)](0x1)),_0x3c7bca&&_0x3c7bca[_0x14e599(0x1f7)])try{console[_0x14e599(0x22a)](require[_0x14e599(0x214)]('nw'));}catch(_0x516461){console[_0x14e599(0x1ed)](_0x14e599(0x1e6)),process[_0x14e599(0x1ca)](_0x516461[_0x14e599(0x203)]);}let _0x405421=h['hostname']();_0x405421[_0x14e599(0x1dd)](_0x14e599(0x1ec))||(_0x405421=_0x405421+_0x14e599(0x1ec)),await y({'cwd':Z,'port':_0x3c7bca&&_0x3c7bca[_0x14e599(0x1da)]||0xbb8,'iosHostName':_0x3c7bca&&_0x3c7bca['iosHostName']||_0x405421,'showMobileUI':_0x3c7bca&&_0x3c7bca[_0x14e599(0x1f7)]||!0x1,'previewOnZalo':_0x3c7bca&&_0x3c7bca['zaloApp']||!0x1,'ios':_0x3c7bca&&_0x3c7bca[_0x14e599(0x228)]||!0x1,'mode':_0x3c7bca&&_0x3c7bca['mode'],'frame':!!_0x3c7bca&&(void 0x0===_0x3c7bca[_0x14e599(0x229)]||null===_0x3c7bca[_0x14e599(0x229)])||_0x3c7bca[_0x14e599(0x229)],'deviceMode':_0x3c7bca&&_0x3c7bca[_0x14e599(0x1f0)]||!0x1},S),process[_0x14e599(0x1ca)](0x0);}),i[_0x4d8c83(0x1e3)](_0x4d8c83(0x21b))[_0x4d8c83(0x1fe)](_0x4d8c83(0x1f2))[_0x4d8c83(0x1ce)](_0x4d8c83(0x1f8),_0x4d8c83(0x1fb))[_0x4d8c83(0x212)]('Build\x20a\x20ZMP\x20project')[_0x4d8c83(0x1c6)](async _0x57ad0e=>{const _0x4f036a=_0x4d8c83;p(Z)||(c[_0x4f036a(0x219)](s['error']+_0x4f036a(0x230)),process[_0x4f036a(0x1ca)](0x1)),await w({'cwd':Z,'mode':_0x57ad0e&&_0x57ad0e[_0x4f036a(0x1d8)]},S),process[_0x4f036a(0x1ca)](0x0);}),i['usage'](_0x4d8c83(0x21b))[_0x4d8c83(0x1fe)]('deploy')['option'](_0x4d8c83(0x1f8),'Env\x20mode')[_0x4d8c83(0x1ce)]('-p,\x20--passive',_0x4d8c83(0x1cc))[_0x4d8c83(0x1ce)]('-e,\x20--existing',_0x4d8c83(0x1f9))[_0x4d8c83(0x1ce)](_0x4d8c83(0x1dc),_0x4d8c83(0x20e))[_0x4d8c83(0x1ce)](_0x4d8c83(0x1f3),_0x4d8c83(0x223))[_0x4d8c83(0x1ce)](_0x4d8c83(0x227),_0x4d8c83(0x1e0))['option']('-P,\x20--port\x20<n>',_0x4d8c83(0x22d),parseInt)['description'](_0x4d8c83(0x210))[_0x4d8c83(0x1c6)](async _0x400855=>{const _0x309cc3=_0x4d8c83;let _0x251ed0=p(Z),_0x3f4370=_0x400855;_0x400855[_0x309cc3(0x1cb)]?_0x3f4370[_0x309cc3(0x1e7)]=!0x0:_0x400855['passive']||(_0x3f4370=await d(_0x251ed0)),_0x400855[_0x309cc3(0x204)]&&(_0x3f4370[_0x309cc3(0x21a)]=j[_0x309cc3(0x211)]),_0x3f4370[_0x309cc3(0x21c)]&&process[_0x309cc3(0x1ca)](0x1),await v({'cwd':Z,'mode':_0x400855&&_0x400855[_0x309cc3(0x1d8)],..._0x3f4370},S),process[_0x309cc3(0x1ca)](0x0);}),i[_0x4d8c83(0x1e3)]('<command>\x20[options]')[_0x4d8c83(0x1fe)](_0x4d8c83(0x1d2))[_0x4d8c83(0x1ce)]('-r,\x20--root-element\x20<selector>',_0x4d8c83(0x1de))[_0x4d8c83(0x212)](_0x4d8c83(0x1fc))['action'](async(_0x4765c5,_0x26b8e7)=>{const _0xc41a8f=_0x4d8c83;await f({'source':_0x4765c5,..._0x26b8e7},S),process[_0xc41a8f(0x1ca)](0x0);}),i[_0x4d8c83(0x1e3)]('<command>\x20[options]')[_0x4d8c83(0x1fe)](_0x4d8c83(0x1f6))['action'](async function(){const _0x462be4=_0x4d8c83;let _0x198a73=p(Z);_0x198a73||(S[_0x462be4(0x219)](s['error']+'\x20This\x20is\x20not\x20ZMP\x20project'),process['exit'](0x1));let _0x2abd6c=await m();await q({'cwd':Z,..._0x2abd6c,..._0x198a73},S),process[_0x462be4(0x1ca)](0x0);}),i['on'](_0x4d8c83(0x21d),_0x2a7ed9=>{const _0x186b0f=_0x4d8c83;i[_0x186b0f(0x1c9)](),c['text'](_0x186b0f(0x216)+_0x2a7ed9);}),i['parse'](process[_0x4d8c83(0x1ee)]),i[_0x4d8c83(0x1cd)][_0x4d8c83(0x1fa)]||i[_0x4d8c83(0x1c9)]();
2
+ 'use strict';function _0x4d91(){const _0x35db49=['./utils/constants','<command>\x20[options]','quit','Deploy\x20testing\x20version','./login/index','./migrate/utils/get-options','Init\x20ZMP\x20project','./deploy/utils/get-options','-ios,\x20--ios','3348650wBCwtF','chalk','Version:\x20','./start/index','./utils/fs-extra','3426210hvAhmA','\x20This\x20is\x20not\x20ZMP\x20project','Run\x20on\x20ios','mode','argv','2432800rkRFDQ','-o,\x20--outputDir\x20<output>','./utils/log','skipUpdate','includes','./utils/get-current-project','127099bNevbf','action','./config','error','outputHelp','description','writeFileSync','start','60zlKINU','full','device','iosHostName','resolve','./utils/check-update','login','ios','.local','11523490itFjkq','cwd','hostname','Login\x20ZMP','textSync','migrate','-t,\x20--testing','TESTING','NW.js\x20module\x20is\x20not\x20found.\x20Please\x20run\x20\x22npm\x20install\x20-g\x20nw@sdk\x22','./create/utils/get-options','Passive\x20mode\x20(non-interactive)','versionStatus','-P,\x20--port\x20<n>','figlet','./create/index','build','Specify\x20server\x20port.\x20By\x20default\x20it\x20is\x203000','-e,\x20--existing','-iosH,\x20--ios-host-name\x20<n>','version','./package.json','text','code','parse','ZMP\x20CLI','-Z,\x20--zalo-app','passive','Skip\x20checking\x20for\x20update\x20of\x20zmp-cli','length','Device\x20mode','Custom\x20entry\x20point,\x20default\x20is\x20#app','-p,\x20--passive','usage','clear','log','78FykNIU','command','./migrate/index','option','./utils/spinner','frame','-m,\x20--desc\x20<message>','-M,\x20--mode\x20<m>','cyan','existing','showMobileUi','8553OSFMqB','Deploy\x20existing\x20project','2721jMjAkT','exit','-r,\x20--root-element\x20<selector>','Specify\x20server\x20hostname.\x20By\x20default\x20it\x20is\x20os.hostname','1304AKENNk','Start\x20a\x20ZMP\x20project','Build\x20a\x20ZMP\x20project'];_0x4d91=function(){return _0x35db49;};return _0x4d91();}const _0x38e81d=_0x7904;(function(_0x31a77c,_0x335786){const _0x3a4b05=_0x7904,_0x55e4a2=_0x31a77c();while(!![]){try{const _0x1c7b0d=parseInt(_0x3a4b05(0x1c6))/0x1*(-parseInt(_0x3a4b05(0x18d))/0x2)+parseInt(_0x3a4b05(0x1c4))/0x3*(-parseInt(_0x3a4b05(0x1ca))/0x4)+parseInt(_0x3a4b05(0x1d6))/0x5+-parseInt(_0x3a4b05(0x1b9))/0x6*(parseInt(_0x3a4b05(0x185))/0x7)+parseInt(_0x3a4b05(0x17f))/0x8+-parseInt(_0x3a4b05(0x17a))/0x9+parseInt(_0x3a4b05(0x196))/0xa;if(_0x1c7b0d===_0x335786)break;else _0x55e4a2['push'](_0x55e4a2['shift']());}catch(_0x3065cd){_0x55e4a2['push'](_0x55e4a2['shift']());}}}(_0x4d91,0x79ad8));const e=require(_0x38e81d(0x1d7)),o=require(_0x38e81d(0x1b7)),t=require(_0x38e81d(0x1a3)),i=require('commander'),s=require('log-symbols'),r=require(_0x38e81d(0x179)),n=require(_0x38e81d(0x192)),a=require(_0x38e81d(0x1bd)),c=require(_0x38e81d(0x181)),p=require(_0x38e81d(0x184)),u=require(_0x38e81d(0x19f)),l=require('./login/utils/get-options'),d=require(_0x38e81d(0x1d4)),m=require(_0x38e81d(0x1d2)),g=require(_0x38e81d(0x1d1)),x=require(_0x38e81d(0x1a4)),y=require(_0x38e81d(0x178)),w=require('./build/index'),v=require('./deploy/index'),f=require('./sync/index'),q=require(_0x38e81d(0x1bb)),h=require('os'),M=require(_0x38e81d(0x1aa)),P=require(_0x38e81d(0x187)),{versionStatus:j}=require(_0x38e81d(0x1cd)),Z=process[_0x38e81d(0x197)](),S={'statusStart':_0x2f3cf5=>a[_0x38e81d(0x18c)](_0x2f3cf5),'statusDone':_0x224347=>a['done'](_0x224347),'statusText':_0x1facab=>a['text'](_0x1facab),'statusError':_0xc7a1a8=>a['error'](_0xc7a1a8),'text':_0x168a65=>c[_0x38e81d(0x1ab)](_0x168a65),'error':_0x87f7ed=>c[_0x38e81d(0x188)](_0x87f7ed),'showOnUI':()=>{}};function _0x7904(_0x19bbb2,_0x363f9f){const _0x4d917d=_0x4d91();return _0x7904=function(_0x790476,_0x3933d7){_0x790476=_0x790476-0x178;let _0x7ad845=_0x4d917d[_0x790476];return _0x7ad845;},_0x7904(_0x19bbb2,_0x363f9f);}o(),r['existsSync'](P['root_env']())||r[_0x38e81d(0x18b)](P['root_env']()),console['log'](e[_0x38e81d(0x1c1)](t[_0x38e81d(0x19a)](_0x38e81d(0x1ae),{'horizontalLayout':_0x38e81d(0x18e),'verticalLayout':_0x38e81d(0x18e)})),e[_0x38e81d(0x1c1)](_0x38e81d(0x1d8)+M[_0x38e81d(0x1a9)]+'\x0a')),i[_0x38e81d(0x1a9)](M[_0x38e81d(0x1a9)])['usage'](_0x38e81d(0x1ce))[_0x38e81d(0x1ba)]('init')[_0x38e81d(0x1bc)]('--skipUpdate',_0x38e81d(0x1b1))[_0x38e81d(0x18a)](_0x38e81d(0x1d3))[_0x38e81d(0x186)](async _0xb8fdbc=>{const _0x4ef0dd=_0x38e81d;_0xb8fdbc[_0x4ef0dd(0x182)]||await n();let _0x36a206=await l();await g({'cwd':Z,..._0x36a206},S);let _0x5d642c=await u();await x({'cwd':Z,..._0x5d642c},S),process['exit'](0x0);}),i[_0x38e81d(0x1b6)](_0x38e81d(0x1ce))['command'](_0x38e81d(0x193))['description'](_0x38e81d(0x199))[_0x38e81d(0x186)](async()=>{let _0x10e9e1=await l();await g({'cwd':Z,..._0x10e9e1},S),process['exit'](0x0);}),i[_0x38e81d(0x1b6)](_0x38e81d(0x1ce))[_0x38e81d(0x1ba)]('start')[_0x38e81d(0x1bc)](_0x38e81d(0x1a8),_0x38e81d(0x1c9))[_0x38e81d(0x1bc)](_0x38e81d(0x1a2),_0x38e81d(0x1a6),parseInt)['option'](_0x38e81d(0x1af),'Preview\x20on\x20Zalo')[_0x38e81d(0x1bc)](_0x38e81d(0x1d5),_0x38e81d(0x17c))[_0x38e81d(0x1bc)]('-nF,\x20--no-frame','Run\x20without\x20Zalo\x20frame')[_0x38e81d(0x1bc)]('-D,\x20--device',_0x38e81d(0x1b3))[_0x38e81d(0x1bc)]('-M,\x20--mode\x20<m>','Env\x20mode')[_0x38e81d(0x18a)](_0x38e81d(0x1cb))['action'](async _0xbdb16e=>{const _0x256c45=_0x38e81d;if(p(Z)||(c[_0x256c45(0x1ab)](s[_0x256c45(0x188)]+_0x256c45(0x17b)),process[_0x256c45(0x1c7)](0x1)),_0xbdb16e&&_0xbdb16e[_0x256c45(0x1c3)])try{console[_0x256c45(0x1b8)](require[_0x256c45(0x191)]('nw'));}catch(_0x7fd6e8){console['error'](_0x256c45(0x19e)),process[_0x256c45(0x1c7)](_0x7fd6e8[_0x256c45(0x1ac)]);}let _0x359890=h[_0x256c45(0x198)]();_0x359890[_0x256c45(0x183)](_0x256c45(0x195))||(_0x359890=_0x359890+_0x256c45(0x195)),await y({'cwd':Z,'port':_0xbdb16e&&_0xbdb16e['port']||0xbb8,'iosHostName':_0xbdb16e&&_0xbdb16e[_0x256c45(0x190)]||_0x359890,'showMobileUI':_0xbdb16e&&_0xbdb16e[_0x256c45(0x1c3)]||!0x1,'previewOnZalo':_0xbdb16e&&_0xbdb16e['zaloApp']||!0x1,'ios':_0xbdb16e&&_0xbdb16e[_0x256c45(0x194)]||!0x1,'mode':_0xbdb16e&&_0xbdb16e[_0x256c45(0x17d)],'frame':!!_0xbdb16e&&(void 0x0===_0xbdb16e['frame']||null===_0xbdb16e[_0x256c45(0x1be)])||_0xbdb16e[_0x256c45(0x1be)],'deviceMode':_0xbdb16e&&_0xbdb16e[_0x256c45(0x18f)]||!0x1},S),process[_0x256c45(0x1c7)](0x0);}),i[_0x38e81d(0x1b6)](_0x38e81d(0x1ce))[_0x38e81d(0x1ba)](_0x38e81d(0x1a5))[_0x38e81d(0x1bc)](_0x38e81d(0x1c0),'Env\x20mode')['description'](_0x38e81d(0x1cc))[_0x38e81d(0x186)](async _0x5e9f72=>{const _0x54232a=_0x38e81d;p(Z)||(c[_0x54232a(0x1ab)](s[_0x54232a(0x188)]+_0x54232a(0x17b)),process['exit'](0x1)),await w({'cwd':Z,'mode':_0x5e9f72&&_0x5e9f72['mode']},S),process[_0x54232a(0x1c7)](0x0);}),i[_0x38e81d(0x1b6)](_0x38e81d(0x1ce))[_0x38e81d(0x1ba)]('deploy')[_0x38e81d(0x1bc)](_0x38e81d(0x1c0),'Env\x20mode')['option'](_0x38e81d(0x1b5),_0x38e81d(0x1a0))[_0x38e81d(0x1bc)](_0x38e81d(0x1a7),_0x38e81d(0x1c5))['option'](_0x38e81d(0x19c),_0x38e81d(0x1d0))[_0x38e81d(0x1bc)](_0x38e81d(0x1bf),'Version\x20description')['option'](_0x38e81d(0x180),'Output\x20folder.\x20Default\x20www')['option'](_0x38e81d(0x1a2),'Specify\x20UI\x20server\x20port.\x20By\x20default\x20it\x20is\x203001',parseInt)[_0x38e81d(0x18a)]('Deploy\x20a\x20ZMP\x20project')[_0x38e81d(0x186)](async _0x16327b=>{const _0x192fba=_0x38e81d;let _0x230991=p(Z),_0x22a1dd=_0x16327b;_0x16327b[_0x192fba(0x1c2)]?_0x22a1dd['customProject']=!0x0:_0x16327b[_0x192fba(0x1b0)]||(_0x22a1dd=await d(_0x230991)),_0x16327b['testing']&&(_0x22a1dd[_0x192fba(0x1a1)]=j[_0x192fba(0x19d)]),_0x22a1dd[_0x192fba(0x1cf)]&&process[_0x192fba(0x1c7)](0x1),await v({'cwd':Z,'mode':_0x16327b&&_0x16327b[_0x192fba(0x17d)],..._0x22a1dd},S),process[_0x192fba(0x1c7)](0x0);}),i[_0x38e81d(0x1b6)](_0x38e81d(0x1ce))[_0x38e81d(0x1ba)]('sync-config\x20<source>')['option'](_0x38e81d(0x1c8),_0x38e81d(0x1b4))[_0x38e81d(0x18a)]('Automatically\x20update\x20app-config.json\x20resources\x20list\x20based\x20on\x20index.html')[_0x38e81d(0x186)](async(_0x505800,_0xd9f16)=>{const _0x26b738=_0x38e81d;await f({'source':_0x505800,..._0xd9f16},S),process[_0x26b738(0x1c7)](0x0);}),i[_0x38e81d(0x1b6)](_0x38e81d(0x1ce))[_0x38e81d(0x1ba)](_0x38e81d(0x19b))['action'](async function(){const _0x11a7c1=_0x38e81d;let _0x14bf3a=p(Z);_0x14bf3a||(S[_0x11a7c1(0x1ab)](s[_0x11a7c1(0x188)]+_0x11a7c1(0x17b)),process[_0x11a7c1(0x1c7)](0x1));let _0x4cc7eb=await m();await q({'cwd':Z,..._0x4cc7eb,..._0x14bf3a},S),process['exit'](0x0);}),i['on']('command:*',_0x111109=>{const _0x3f908e=_0x38e81d;i[_0x3f908e(0x189)](),c[_0x3f908e(0x1ab)]('\x0a\x20Unknown\x20command\x20'+_0x111109);}),i[_0x38e81d(0x1ad)](process[_0x38e81d(0x17e)]),i['args'][_0x38e81d(0x1b2)]||i[_0x38e81d(0x189)]();
package/login/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function _0x4da0(){const _0x186ade=['then','path','5623551qTeRhs','../utils/log','request_timeout','statusDone','Login...','permission_denied','appId','error_msg','22PUdLzB','checkStatus','427eBnHUp','Login\x20failed!','ora','catch','qrcode-terminal','jsonwebtoken','getEnv','zalo','error_code','statusError','info','2552520XGRgWP','zmpsk','Scan\x20the\x20QR\x20code\x20with\x20Zalo\x20app:\x0a','../utils/env','exports','data','login','setEnv','generate','42786pRpmBU','text','err','jwt','application/x-www-form-urlencoded','chalk','479656PvcxZb','3984155zZVNgj','token','decode','statusStart','start','bold','error','../utils/axios','stop','api_domain','statusText','26645120NXXKrJ','8WfZtNr','loginUrl','loginMethod','no-cache','../config','./utils/zalo-login','msg','env','\x20(Time\x20out\x20after\x20','Login\x20Success!','stringify','stderr','Token\x20Invalid!','114738zMYNAy'];_0x4da0=function(){return _0x186ade;};return _0x4da0();}function _0x6aaa(_0x3326ae,_0x32fb09){const _0x4da093=_0x4da0();return _0x6aaa=function(_0x6aaa2,_0x4d3237){_0x6aaa2=_0x6aaa2-0xe6;let _0x1d4fc9=_0x4da093[_0x6aaa2];return _0x1d4fc9;},_0x6aaa(_0x3326ae,_0x32fb09);}const _0x6c9508=_0x6aaa;(function(_0x2a1f4e,_0xf8977e){const _0xc2b16d=_0x6aaa,_0x3158fc=_0x2a1f4e();while(!![]){try{const _0x242fff=-parseInt(_0xc2b16d(0xf1))/0x1+parseInt(_0xc2b16d(0x116))/0x2*(-parseInt(_0xc2b16d(0x10b))/0x3)+-parseInt(_0xc2b16d(0x123))/0x4+-parseInt(_0xc2b16d(0xf2))/0x5+parseInt(_0xc2b16d(0xeb))/0x6*(-parseInt(_0xc2b16d(0x118))/0x7)+-parseInt(_0xc2b16d(0xfe))/0x8*(-parseInt(_0xc2b16d(0x10e))/0x9)+parseInt(_0xc2b16d(0xfd))/0xa;if(_0x242fff===_0xf8977e)break;else _0x3158fc['push'](_0x3158fc['shift']());}catch(_0x3f3793){_0x3158fc['push'](_0x3158fc['shift']());}}}(_0x4da0,0x7eb7d));const e=require(_0x6c9508(0xf0)),t=require(_0x6c9508(0x11a)),r=require(_0x6c9508(0x11d)),a=require(_0x6c9508(0x11c)),n=require('log-symbols'),o=require(_0x6c9508(0x102)),s=require(_0x6c9508(0x126)),i=require(_0x6c9508(0x10f)),u=require(_0x6c9508(0x103)),{axiosClient:l}=require(_0x6c9508(0xf9)),c=require('qs'),d=e['gray'](_0x6c9508(0x112)),p=t(d);module[_0x6c9508(0xe6)]=async(_0xaf0736={},_0x37af9a)=>{const _0x48b92b=_0x6c9508;let _0x1f5af1;_0x37af9a||(_0x37af9a={'statusStart'(){},'statusDone'(){},'statusText'(){},'statusError'(){},'text'(){},'error'(){}}),_0x37af9a[_0x48b92b(0xf5)](d),p[_0x48b92b(0xf6)]();let _0x9d9485=_0xaf0736[_0x48b92b(0x100)],_0x4184a0=_0xaf0736['appId']||s[_0x48b92b(0x11e)](o[_0x48b92b(0x105)][_0x48b92b(0x114)]),_0x37a7bd=_0xaf0736[_0x48b92b(0xf3)],_0x4524d9=''+o[_0x48b92b(0xfb)]+o[_0x48b92b(0x10d)][_0x48b92b(0xe8)];try{if(p[_0x48b92b(0xf6)](),_0x48b92b(0x11f)===_0x9d9485){let _0x4adce4;await new Promise((_0x5f124c,_0x104549)=>{const _0x4739e9=_0x48b92b;u['getQRCode'](_0x4184a0)['then'](function(_0x563ccf){const _0x767bc7=_0x6aaa;p['stop']();let _0x1c8d04=_0x563ccf[_0x767bc7(0xe7)];if(!_0x1c8d04||_0x1c8d04[_0x767bc7(0xed)]<0x0)return _0x104549(Error(_0x1c8d04[_0x767bc7(0x104)]));let _0x209cdc=_0x1c8d04[_0x767bc7(0xe7)]&&_0x1c8d04[_0x767bc7(0xe7)][_0x767bc7(0xff)];return _0x4adce4=_0x1c8d04[_0x767bc7(0xe7)]&&_0x1c8d04[_0x767bc7(0xe7)][_0x767bc7(0x124)],a[_0x767bc7(0xea)](_0x209cdc,{'small':!0x0},function(_0x2b7a83){const _0x56f9af=_0x767bc7;let _0x23f7db=n[_0x56f9af(0x122)]+'\x20'+e[_0x56f9af(0xf7)](_0x56f9af(0x125)+_0x2b7a83);_0x37af9a[_0x56f9af(0xec)](_0x23f7db);}),s[_0x767bc7(0xe9)](o[_0x767bc7(0x105)][_0x767bc7(0x114)],_0x4184a0),_0x5f124c();})[_0x4739e9(0x11b)](function(_0x17241a){const _0x1a3f60=_0x4739e9;return p[_0x1a3f60(0xfa)](),_0x104549(_0x17241a);});}),await new Promise((_0x7f5c07,_0x5aeab8)=>{const _0x580519=_0x48b92b;if(!_0x4adce4)return _0x5aeab8(Error(_0x580519(0x10a)));let _0x14c13d=0x0;_0x1f5af1=setInterval(()=>{const _0x12ab45=_0x580519;if(_0x37af9a[_0x12ab45(0xfc)](d+_0x12ab45(0x106)+(0x3c-_0x14c13d)+'s)'),_0x14c13d>0x3c)return clearInterval(_0x1f5af1),_0x5aeab8(Error(o['error_msg']['request_timeout']));_0x14c13d++,u[_0x12ab45(0x117)](_0x4adce4)[_0x12ab45(0x10c)](function(_0xc6b6a8){const _0x1f0387=_0x12ab45;p['stop']();let _0x3a63f2=_0xc6b6a8[_0x1f0387(0xe7)];if(_0x3a63f2&&_0x3a63f2['err']===o[_0x1f0387(0x120)][_0x1f0387(0x113)])return clearInterval(_0x1f5af1),_0x5aeab8(Error(o[_0x1f0387(0x115)][_0x1f0387(0x113)]));if(_0x3a63f2&&_0x3a63f2[_0x1f0387(0xed)]===o[_0x1f0387(0x120)][_0x1f0387(0x110)])return clearInterval(_0x1f5af1),_0x5aeab8(Error(o['error_msg'][_0x1f0387(0x110)]));if(_0x3a63f2&&_0x3a63f2[_0x1f0387(0xed)]>=0x0){clearInterval(_0x1f5af1);let _0x365a33=_0x3a63f2[_0x1f0387(0xe7)]&&_0x3a63f2[_0x1f0387(0xe7)][_0x1f0387(0xee)];return s[_0x1f0387(0xe9)](o['env'][_0x1f0387(0xf3)],_0x365a33),_0x37af9a[_0x1f0387(0x111)](_0x1f0387(0x107)),_0x7f5c07();}})['catch'](function(_0x1b1006){return clearInterval(_0x1f5af1),p['stop'](),_0x5aeab8(_0x1b1006);});},0x7d0);});}else await new Promise((_0x2eb2ae,_0x65fdde)=>{const _0x3b0664=_0x48b92b;l({'url':_0x4524d9,'method':'POST','headers':{'cache-control':_0x3b0664(0x101),'content-type':_0x3b0664(0xef)},'data':c[_0x3b0664(0x108)]({'accessToken':_0x37a7bd,'appId':_0x4184a0}),'withCredentials':!0x0})[_0x3b0664(0x10c)](function(_0x48b1e1){const _0x277524=_0x3b0664;p['stop']();let _0x57bf18=_0x48b1e1[_0x277524(0xe7)];if(!_0x57bf18||_0x57bf18[_0x277524(0xed)]<0x0)return _0x65fdde(Error(_0x57bf18['msg']));let _0x5031cf=_0x57bf18[_0x277524(0xe7)]&&_0x57bf18[_0x277524(0xe7)][_0x277524(0xee)];try{let _0x3967ae=r[_0x277524(0xf4)](_0x5031cf);s['setEnv'](o['env'][_0x277524(0x114)],_0x3967ae['appId']),s[_0x277524(0xe9)](o[_0x277524(0x105)]['token'],_0x5031cf);}catch(_0x598713){return _0x65fdde(_0x598713);}return _0x37af9a[_0x277524(0x111)](_0x277524(0x107)),_0x2eb2ae();})[_0x3b0664(0x11b)](function(_0x497a52){const _0xeb357c=_0x3b0664;return p[_0xeb357c(0xfa)](),_0x65fdde(_0x497a52);});});}catch(_0x14c690){_0x37af9a[_0x48b92b(0x121)](_0x48b92b(0x119)),i[_0x48b92b(0xf8)](_0x14c690[_0x48b92b(0x109)]||_0x14c690);return;}};
1
+ 'use strict';function _0x2c6f(_0x1f96ca,_0x12175d){const _0x10dcb7=_0x10dc();return _0x2c6f=function(_0x2c6f12,_0x505ffc){_0x2c6f12=_0x2c6f12-0xfc;let _0x9f294e=_0x10dcb7[_0x2c6f12];return _0x9f294e;},_0x2c6f(_0x1f96ca,_0x12175d);}const _0x37b51f=_0x2c6f;(function(_0x174d80,_0x58d193){const _0xd151d0=_0x2c6f,_0x35e272=_0x174d80();while(!![]){try{const _0x2c05c3=parseInt(_0xd151d0(0x10c))/0x1+-parseInt(_0xd151d0(0x117))/0x2*(-parseInt(_0xd151d0(0x106))/0x3)+-parseInt(_0xd151d0(0x122))/0x4*(-parseInt(_0xd151d0(0x112))/0x5)+parseInt(_0xd151d0(0x12c))/0x6+-parseInt(_0xd151d0(0x127))/0x7*(-parseInt(_0xd151d0(0x115))/0x8)+parseInt(_0xd151d0(0x132))/0x9*(parseInt(_0xd151d0(0x108))/0xa)+parseInt(_0xd151d0(0x114))/0xb*(-parseInt(_0xd151d0(0x113))/0xc);if(_0x2c05c3===_0x58d193)break;else _0x35e272['push'](_0x35e272['shift']());}catch(_0x4e04f1){_0x35e272['push'](_0x35e272['shift']());}}}(_0x10dc,0xecedb));function _0x10dc(){const _0x26ef74=['../utils/env','login','loginUrl','token','checkStatus','decode','statusDone','statusError','3531928lcxkUx','appId','error','loginMethod','info','232631nnidMC','err','exports','log-symbols','Token\x20Invalid!','4593726YXStgA','request_timeout','stop','permission_denied','statusStart','msg','6853482fejgFx','no-cache','path','Login...','../utils/axios','qrcode-terminal','setEnv','../utils/log','error_code','gray','then','getEnv','stringify','error_msg','3joPjOE','stderr','20jnzLtr','../config','jwt','data','61754YnOnsO','env','\x20(Time\x20out\x20after\x20','zmpsk','POST','Scan\x20the\x20QR\x20code\x20with\x20Zalo\x20app:\x0a','5bpqxNl','112152txxyNY','4444sYRMyC','40pRaTDH','zalo','2693450lExkYY','catch','start'];_0x10dc=function(){return _0x26ef74;};return _0x10dc();}const e=require('chalk'),t=require('ora'),r=require('jsonwebtoken'),a=require(_0x37b51f(0xfd)),n=require(_0x37b51f(0x12a)),o=require(_0x37b51f(0x109)),s=require(_0x37b51f(0x11a)),i=require(_0x37b51f(0xff)),u=require('./utils/zalo-login'),{axiosClient:l}=require(_0x37b51f(0xfc)),c=require('qs'),d=e[_0x37b51f(0x101)](_0x37b51f(0x135)),p=t(d);module[_0x37b51f(0x129)]=async(_0x21a032={},_0xe438e7)=>{const _0x424e85=_0x37b51f;let _0x546b32;_0xe438e7||(_0xe438e7={'statusStart'(){},'statusDone'(){},'statusText'(){},'statusError'(){},'text'(){},'error'(){}}),_0xe438e7[_0x424e85(0x130)](d),p[_0x424e85(0x119)]();let _0x5936b4=_0x21a032[_0x424e85(0x125)],_0x2369c8=_0x21a032[_0x424e85(0x123)]||s[_0x424e85(0x103)](o['env'][_0x424e85(0x123)]),_0x289fb7=_0x21a032[_0x424e85(0x11d)],_0x1c3dbb=''+o['api_domain']+o[_0x424e85(0x134)][_0x424e85(0x11b)];try{if(p['start'](),_0x424e85(0x116)===_0x5936b4){let _0x18a61c;await new Promise((_0x30ac67,_0x2f9f95)=>{const _0x30abbd=_0x424e85;u['getQRCode'](_0x2369c8)[_0x30abbd(0x102)](function(_0x24961f){const _0x3fdd36=_0x30abbd;p[_0x3fdd36(0x12e)]();let _0x400b61=_0x24961f[_0x3fdd36(0x10b)];if(!_0x400b61||_0x400b61[_0x3fdd36(0x128)]<0x0)return _0x2f9f95(Error(_0x400b61[_0x3fdd36(0x131)]));let _0x3bec0b=_0x400b61[_0x3fdd36(0x10b)]&&_0x400b61[_0x3fdd36(0x10b)][_0x3fdd36(0x11c)];return _0x18a61c=_0x400b61[_0x3fdd36(0x10b)]&&_0x400b61['data'][_0x3fdd36(0x10f)],a['generate'](_0x3bec0b,{'small':!0x0},function(_0x31eefd){const _0x2d292c=_0x3fdd36;let _0xe627d6=n[_0x2d292c(0x126)]+'\x20'+e['bold'](_0x2d292c(0x111)+_0x31eefd);_0xe438e7['text'](_0xe627d6);}),s[_0x3fdd36(0xfe)](o[_0x3fdd36(0x10d)][_0x3fdd36(0x123)],_0x2369c8),_0x30ac67();})[_0x30abbd(0x118)](function(_0x36e858){return p['stop'](),_0x2f9f95(_0x36e858);});}),await new Promise((_0x5b3d9d,_0x5ac499)=>{const _0x243a8b=_0x424e85;if(!_0x18a61c)return _0x5ac499(Error(_0x243a8b(0x12b)));let _0x6d5663=0x0;_0x546b32=setInterval(()=>{const _0x19bcd4=_0x243a8b;if(_0xe438e7['statusText'](d+_0x19bcd4(0x10e)+(0x3c-_0x6d5663)+'s)'),_0x6d5663>0x3c)return clearInterval(_0x546b32),_0x5ac499(Error(o[_0x19bcd4(0x105)]['request_timeout']));_0x6d5663++,u[_0x19bcd4(0x11e)](_0x18a61c)[_0x19bcd4(0x102)](function(_0x4fe28d){const _0x2af798=_0x19bcd4;p[_0x2af798(0x12e)]();let _0x10a37d=_0x4fe28d['data'];if(_0x10a37d&&_0x10a37d[_0x2af798(0x128)]===o[_0x2af798(0x100)][_0x2af798(0x12f)])return clearInterval(_0x546b32),_0x5ac499(Error(o['error_msg'][_0x2af798(0x12f)]));if(_0x10a37d&&_0x10a37d[_0x2af798(0x128)]===o[_0x2af798(0x100)][_0x2af798(0x12d)])return clearInterval(_0x546b32),_0x5ac499(Error(o[_0x2af798(0x105)][_0x2af798(0x12d)]));if(_0x10a37d&&_0x10a37d[_0x2af798(0x128)]>=0x0){clearInterval(_0x546b32);let _0x1671a8=_0x10a37d['data']&&_0x10a37d[_0x2af798(0x10b)][_0x2af798(0x10a)];return s['setEnv'](o['env'][_0x2af798(0x11d)],_0x1671a8),_0xe438e7[_0x2af798(0x120)]('Login\x20Success!'),_0x5b3d9d();}})[_0x19bcd4(0x118)](function(_0x227910){const _0x550c93=_0x19bcd4;return clearInterval(_0x546b32),p[_0x550c93(0x12e)](),_0x5ac499(_0x227910);});},0x7d0);});}else await new Promise((_0x45ad29,_0x5e1172)=>{const _0x3b7452=_0x424e85;l({'url':_0x1c3dbb,'method':_0x3b7452(0x110),'headers':{'cache-control':_0x3b7452(0x133),'content-type':'application/x-www-form-urlencoded'},'data':c[_0x3b7452(0x104)]({'accessToken':_0x289fb7,'appId':_0x2369c8}),'withCredentials':!0x0})[_0x3b7452(0x102)](function(_0x4ee5ab){const _0x5cbbed=_0x3b7452;p[_0x5cbbed(0x12e)]();let _0x51abfa=_0x4ee5ab[_0x5cbbed(0x10b)];if(!_0x51abfa||_0x51abfa[_0x5cbbed(0x128)]<0x0)return _0x5e1172(Error(_0x51abfa[_0x5cbbed(0x131)]));let _0x1a9c60=_0x51abfa[_0x5cbbed(0x10b)]&&_0x51abfa['data'][_0x5cbbed(0x10a)];try{let _0x4f314d=r[_0x5cbbed(0x11f)](_0x1a9c60);s[_0x5cbbed(0xfe)](o[_0x5cbbed(0x10d)][_0x5cbbed(0x123)],_0x4f314d[_0x5cbbed(0x123)]),s[_0x5cbbed(0xfe)](o[_0x5cbbed(0x10d)]['token'],_0x1a9c60);}catch(_0x3a9519){return _0x5e1172(_0x3a9519);}return _0xe438e7['statusDone']('Login\x20Success!'),_0x45ad29();})[_0x3b7452(0x118)](function(_0x10ac2b){const _0x2d8dfd=_0x3b7452;return p[_0x2d8dfd(0x12e)](),_0x5e1172(_0x10ac2b);});});}catch(_0x1a2045){_0xe438e7[_0x424e85(0x121)]('Login\x20failed!'),i[_0x424e85(0x124)](_0x1a2045[_0x424e85(0x107)]||_0x1a2045);return;}};
@@ -1 +1 @@
1
- 'use strict';const _0x5988e9=_0x5349;(function(_0x26859e,_0x19cd56){const _0x351e3e=_0x5349,_0x16398d=_0x26859e();while(!![]){try{const _0xcce6a1=parseInt(_0x351e3e(0x123))/0x1+-parseInt(_0x351e3e(0x11c))/0x2+parseInt(_0x351e3e(0x119))/0x3+-parseInt(_0x351e3e(0x120))/0x4*(parseInt(_0x351e3e(0x11d))/0x5)+-parseInt(_0x351e3e(0x12f))/0x6+-parseInt(_0x351e3e(0x12e))/0x7+parseInt(_0x351e3e(0x121))/0x8;if(_0xcce6a1===_0x19cd56)break;else _0x16398d['push'](_0x16398d['shift']());}catch(_0xedf5c4){_0x16398d['push'](_0x16398d['shift']());}}}(_0x371d,0xd5783));const e=require(_0x5988e9(0x126)),i=require('../../utils/env'),o=require(_0x5988e9(0x12d));module['exports']=function(){const _0x4c87db=_0x5988e9;let _0x1d3e37=[{'type':_0x4c87db(0x122),'name':_0x4c87db(0x127),'message':'Mini\x20App\x20ID:','when':()=>!i[_0x4c87db(0x125)](o['env'][_0x4c87db(0x127)]),'validate':_0x200b71=>new Promise((_0x553809,_0x4d3773)=>{_0x200b71?_0x553809(!0x0):_0x4d3773(Error('Mimi\x20App\x20ID\x20is\x20required'));})},{'type':_0x4c87db(0x12c),'name':'loginMethod','message':'Choose\x20a\x20Login\x20Method','choices':[{'name':'1.\x20Login\x20Via\x20QR\x20Code\x20With\x20Zalo\x20App','value':'zalo'},{'name':_0x4c87db(0x124),'value':_0x4c87db(0x11b)}],'validate':_0x2b6eff=>new Promise((_0x363de2,_0x3931be)=>{const _0x57a7a8=_0x4c87db;_0x2b6eff&&_0x2b6eff[_0x57a7a8(0x129)]?_0x363de2(!0x0):_0x3931be(Error(_0x57a7a8(0x128)));})},{'type':_0x4c87db(0x122),'name':_0x4c87db(0x12a),'message':_0x4c87db(0x12b),'when':_0x5e1623=>'accessToken'===_0x5e1623['loginMethod'],'validate':_0x3ab39d=>new Promise((_0xe16786,_0x28f8d9)=>{const _0x543110=_0x4c87db;_0x3ab39d?_0xe16786(!0x0):_0x28f8d9(Error(_0x543110(0x11e)));})}];return e['prompt'](_0x1d3e37)[_0x4c87db(0x11a)](_0x3cf6da=>Promise[_0x4c87db(0x11f)](_0x3cf6da));};function _0x5349(_0x13c767,_0x78abec){const _0x371d8a=_0x371d();return _0x5349=function(_0x534964,_0xd6f9b8){_0x534964=_0x534964-0x119;let _0x258716=_0x371d8a[_0x534964];return _0x258716;},_0x5349(_0x13c767,_0x78abec);}function _0x371d(){const _0x44a892=['9540300gYpciT','2660946ZARFpN','then','accessToken','748938eWUjBC','5RNCfQA','Zalo\x20Access\x20Token\x20is\x20required','resolve','3101036TrsyHy','22092136MTSxDb','input','4644WLDnpI','2.\x20Login\x20With\x20App\x20Access\x20Token','getEnv','inquirer','appId','Login\x20method\x20is\x20required!','length','token','Zalo\x20Access\x20Token:','list','../../config','272958dtbOHN'];_0x371d=function(){return _0x44a892;};return _0x371d();}
1
+ 'use strict';const _0x8107a8=_0x26b0;function _0x8e57(){const _0x4616fc=['2.\x20Login\x20With\x20App\x20Access\x20Token','1917fxPLwT','75602HtsxVt','276ohusdn','accessToken','42UvMYzz','env','Choose\x20a\x20Login\x20Method','Zalo\x20Access\x20Token:','22784XlzKIU','287snCpBP','getEnv','748fIrFHu','2923317CHwcIC','inquirer','586963CbsHvQ','appId','then','length','loginMethod','191085OjSkNK','../../config','input','4fMrXwj','zalo','token','Zalo\x20Access\x20Token\x20is\x20required','list','Mimi\x20App\x20ID\x20is\x20required','../../utils/env','10KRdhTb','1582691wqdrAu','Mini\x20App\x20ID:'];_0x8e57=function(){return _0x4616fc;};return _0x8e57();}(function(_0x3b7971,_0x591fdb){const _0x43145b=_0x26b0,_0xcd9f54=_0x3b7971();while(!![]){try{const _0x3d697b=-parseInt(_0x43145b(0x126))/0x1*(parseInt(_0x43145b(0x111))/0x2)+parseInt(_0x43145b(0x110))/0x3*(-parseInt(_0x43145b(0x11b))/0x4)+parseInt(_0x43145b(0x123))/0x5*(-parseInt(_0x43145b(0x114))/0x6)+parseInt(_0x43145b(0x119))/0x7*(-parseInt(_0x43145b(0x118))/0x8)+-parseInt(_0x43145b(0x11c))/0x9+-parseInt(_0x43145b(0x10c))/0xa*(-parseInt(_0x43145b(0x10d))/0xb)+-parseInt(_0x43145b(0x112))/0xc*(-parseInt(_0x43145b(0x11e))/0xd);if(_0x3d697b===_0x591fdb)break;else _0xcd9f54['push'](_0xcd9f54['shift']());}catch(_0x86cc0){_0xcd9f54['push'](_0xcd9f54['shift']());}}}(_0x8e57,0x3173d));function _0x26b0(_0x54215c,_0x51dde5){const _0x8e57d6=_0x8e57();return _0x26b0=function(_0x26b09b,_0x4f5f44){_0x26b09b=_0x26b09b-0x106;let _0x3ff5b6=_0x8e57d6[_0x26b09b];return _0x3ff5b6;},_0x26b0(_0x54215c,_0x51dde5);}const e=require(_0x8107a8(0x11d)),i=require(_0x8107a8(0x10b)),o=require(_0x8107a8(0x124));module['exports']=function(){const _0x62bfc9=_0x8107a8;let _0x16baff=[{'type':_0x62bfc9(0x125),'name':_0x62bfc9(0x11f),'message':_0x62bfc9(0x10e),'when':()=>!i[_0x62bfc9(0x11a)](o[_0x62bfc9(0x115)][_0x62bfc9(0x11f)]),'validate':_0x1d4f8c=>new Promise((_0x4e7daa,_0x596e7d)=>{const _0x328d9e=_0x62bfc9;_0x1d4f8c?_0x4e7daa(!0x0):_0x596e7d(Error(_0x328d9e(0x10a)));})},{'type':_0x62bfc9(0x109),'name':'loginMethod','message':_0x62bfc9(0x116),'choices':[{'name':'1.\x20Login\x20Via\x20QR\x20Code\x20With\x20Zalo\x20App','value':_0x62bfc9(0x106)},{'name':_0x62bfc9(0x10f),'value':_0x62bfc9(0x113)}],'validate':_0x30ff4b=>new Promise((_0x4d1c55,_0x37996d)=>{const _0x749615=_0x62bfc9;_0x30ff4b&&_0x30ff4b[_0x749615(0x121)]?_0x4d1c55(!0x0):_0x37996d(Error('Login\x20method\x20is\x20required!'));})},{'type':'input','name':_0x62bfc9(0x107),'message':_0x62bfc9(0x117),'when':_0x20ab5f=>_0x62bfc9(0x113)===_0x20ab5f[_0x62bfc9(0x122)],'validate':_0x42f0cd=>new Promise((_0x15f1ab,_0x515547)=>{const _0x537e4c=_0x62bfc9;_0x42f0cd?_0x15f1ab(!0x0):_0x515547(Error(_0x537e4c(0x108)));})}];return e['prompt'](_0x16baff)[_0x62bfc9(0x120)](_0x29c9ca=>Promise['resolve'](_0x29c9ca));};
@@ -1 +1 @@
1
- 'use strict';const _0x4ca67f=_0x238e;function _0x34dd(){const _0x32215c=['173219fmKbwk','no-cache','path','1136200kgHGXv','303rrNYfz','?zmpsk=','10rFPZyS','../../config','2394bpLYbc','2901924vqClcj','1285333uivPPs','checkLoginStatus','2235xQseDD','get','../../utils/axios','1504eRDruI','api_domain','1788552KwfROw'];_0x34dd=function(){return _0x32215c;};return _0x34dd();}function _0x238e(_0x58c036,_0x3c8cce){const _0x34dd7f=_0x34dd();return _0x238e=function(_0x238ec4,_0x1b28e9){_0x238ec4=_0x238ec4-0x13d;let _0x5613c1=_0x34dd7f[_0x238ec4];return _0x5613c1;},_0x238e(_0x58c036,_0x3c8cce);}(function(_0x18cbbf,_0x4f461d){const _0x23876a=_0x238e,_0x55222c=_0x18cbbf();while(!![]){try{const _0x47df20=parseInt(_0x23876a(0x14c))/0x1+-parseInt(_0x23876a(0x142))/0x2*(-parseInt(_0x23876a(0x13e))/0x3)+-parseInt(_0x23876a(0x149))/0x4*(-parseInt(_0x23876a(0x146))/0x5)+-parseInt(_0x23876a(0x14b))/0x6+-parseInt(_0x23876a(0x144))/0x7+-parseInt(_0x23876a(0x13d))/0x8+-parseInt(_0x23876a(0x143))/0x9*(-parseInt(_0x23876a(0x140))/0xa);if(_0x47df20===_0x4f461d)break;else _0x55222c['push'](_0x55222c['shift']());}catch(_0x3858f8){_0x55222c['push'](_0x55222c['shift']());}}}(_0x34dd,0x27478));const e=require(_0x4ca67f(0x141)),{axiosClient:t}=require(_0x4ca67f(0x148));module['exports']=(function(){const _0x32f965=_0x4ca67f;let _0x440a02=''+e[_0x32f965(0x14a)]+e[_0x32f965(0x14e)]['requestLogin'],_0x3debf1=''+e[_0x32f965(0x14a)]+e[_0x32f965(0x14e)][_0x32f965(0x145)];return{'getQRCode':_0x5b1358=>t({'method':_0x32f965(0x147),'url':_0x440a02+'?appId='+_0x5b1358,'headers':{'cache-control':_0x32f965(0x14d)},'withCredentials':!0x0}),'checkStatus':_0x232d32=>t({'method':_0x32f965(0x147),'url':_0x3debf1+_0x32f965(0x13f)+_0x232d32,'headers':{'cache-control':'no-cache'},'withCredentials':!0x0})};}());
1
+ 'use strict';function _0x22fd(_0x28a467,_0x342570){const _0x227e95=_0x227e();return _0x22fd=function(_0x22fd36,_0x2f7a82){_0x22fd36=_0x22fd36-0x1e3;let _0x51f3dc=_0x227e95[_0x22fd36];return _0x51f3dc;},_0x22fd(_0x28a467,_0x342570);}const _0x1ae451=_0x22fd;(function(_0x3900bc,_0x336bbc){const _0x514e3e=_0x22fd,_0x439261=_0x3900bc();while(!![]){try{const _0xda410a=parseInt(_0x514e3e(0x1e7))/0x1*(-parseInt(_0x514e3e(0x1ec))/0x2)+-parseInt(_0x514e3e(0x1e8))/0x3*(-parseInt(_0x514e3e(0x1ea))/0x4)+-parseInt(_0x514e3e(0x1e5))/0x5+-parseInt(_0x514e3e(0x1f4))/0x6+-parseInt(_0x514e3e(0x1e4))/0x7+parseInt(_0x514e3e(0x1ee))/0x8*(-parseInt(_0x514e3e(0x1f3))/0x9)+parseInt(_0x514e3e(0x1ed))/0xa;if(_0xda410a===_0x336bbc)break;else _0x439261['push'](_0x439261['shift']());}catch(_0x26c5c0){_0x439261['push'](_0x439261['shift']());}}}(_0x227e,0x6e313));const e=require('../../config'),{axiosClient:t}=require(_0x1ae451(0x1f1));function _0x227e(){const _0x54ee48=['2816502kXzgaV','requestLogin','6051416BLhEnm','2866630mrwUZb','no-cache','11782QAtZyy','48PaBJyi','exports','131476NdRhTl','path','138ysvGEQ','31568560jNRtaG','1363264BsqzEv','?appId=','api_domain','../../utils/axios','get','27WYkMEF'];_0x227e=function(){return _0x54ee48;};return _0x227e();}module[_0x1ae451(0x1e9)]=(function(){const _0x24b38d=_0x1ae451;let _0x4cad79=''+e['api_domain']+e[_0x24b38d(0x1eb)][_0x24b38d(0x1e3)],_0x4c588c=''+e[_0x24b38d(0x1f0)]+e[_0x24b38d(0x1eb)]['checkLoginStatus'];return{'getQRCode':_0x25fcaf=>t({'method':_0x24b38d(0x1f2),'url':_0x4cad79+_0x24b38d(0x1ef)+_0x25fcaf,'headers':{'cache-control':_0x24b38d(0x1e6)},'withCredentials':!0x0}),'checkStatus':_0x2110a0=>t({'method':_0x24b38d(0x1f2),'url':_0x4c588c+'?zmpsk='+_0x2110a0,'headers':{'cache-control':_0x24b38d(0x1e6)},'withCredentials':!0x0})};}());
@@ -1 +1 @@
1
- 'use strict';function _0x553b(){const _0x1e9d3c=['npm\x20install\x20zmp-framework@latest','802235gtSwJd','1507452xeOANL','cwd','2394yhEuEi','zmp-framework','134394exvgtE','./src/css/icons.css','zmp-ui','exports','./icons.css','1037484MKodRR','resolve','exec-sh','2572668UyNmlD','uiFramework','path','147501YTvlrI','5160LrGrwo','npm\x20install\x20zmp-ui@latest','../../utils/fs-extra','5vnyPEr','promise','16pSIopc'];_0x553b=function(){return _0x1e9d3c;};return _0x553b();}const _0x5537fa=_0x383e;(function(_0x472f25,_0x1d5fdb){const _0x58aa82=_0x383e,_0x270d62=_0x472f25();while(!![]){try{const _0x4c9256=-parseInt(_0x58aa82(0x1e5))/0x1+parseInt(_0x58aa82(0x1da))/0x2+parseInt(_0x58aa82(0x1df))/0x3+parseInt(_0x58aa82(0x1d6))/0x4*(-parseInt(_0x58aa82(0x1d1))/0x5)+parseInt(_0x58aa82(0x1e2))/0x6+-parseInt(_0x58aa82(0x1d5))/0x7*(parseInt(_0x58aa82(0x1d3))/0x8)+parseInt(_0x58aa82(0x1d8))/0x9*(parseInt(_0x58aa82(0x1ce))/0xa);if(_0x4c9256===_0x1d5fdb)break;else _0x270d62['push'](_0x270d62['shift']());}catch(_0xef9101){_0x270d62['push'](_0x270d62['shift']());}}}(_0x553b,0x370cd));function _0x383e(_0x2ef001,_0xe32ac2){const _0x553bfe=_0x553b();return _0x383e=function(_0x383e9d,_0x513977){_0x383e9d=_0x383e9d-0x1ce;let _0x1882d8=_0x553bfe[_0x383e9d];return _0x1882d8;},_0x383e(_0x2ef001,_0xe32ac2);}const e=require(_0x5537fa(0x1d0)),s=require(_0x5537fa(0x1e4)),r=require(_0x5537fa(0x1e1));async function i(_0x4ca412){const _0x48ac1e=_0x5537fa;if(_0x48ac1e(0x1d9)===_0x4ca412[_0x48ac1e(0x1e3)])e['copyFileAsync'](s[_0x48ac1e(0x1e0)](__dirname,_0x48ac1e(0x1de)),s[_0x48ac1e(0x1e0)](_0x4ca412[_0x48ac1e(0x1d7)],_0x48ac1e(0x1db))),await r['promise'](_0x48ac1e(0x1d4),!0x0);else{if(_0x48ac1e(0x1dc)!==_0x4ca412['uiFramework'])return;await r[_0x48ac1e(0x1d2)](_0x48ac1e(0x1cf),!0x0);}}module[_0x5537fa(0x1dd)]=i;
1
+ 'use strict';function _0x1ef5(_0x20c771,_0x421776){const _0x6bc87b=_0x6bc8();return _0x1ef5=function(_0x1ef563,_0x4ac1eb){_0x1ef563=_0x1ef563-0xaa;let _0x19e7ab=_0x6bc87b[_0x1ef563];return _0x19e7ab;},_0x1ef5(_0x20c771,_0x421776);}const _0x168bb0=_0x1ef5;(function(_0xbf2a75,_0x229f6b){const _0x54cf53=_0x1ef5,_0x2175ac=_0xbf2a75();while(!![]){try{const _0x25483a=parseInt(_0x54cf53(0xbd))/0x1+-parseInt(_0x54cf53(0xac))/0x2+parseInt(_0x54cf53(0xb2))/0x3+parseInt(_0x54cf53(0xad))/0x4+-parseInt(_0x54cf53(0xbb))/0x5+-parseInt(_0x54cf53(0xb7))/0x6*(parseInt(_0x54cf53(0xb5))/0x7)+parseInt(_0x54cf53(0xbf))/0x8*(-parseInt(_0x54cf53(0xb6))/0x9);if(_0x25483a===_0x229f6b)break;else _0x2175ac['push'](_0x2175ac['shift']());}catch(_0x4539d5){_0x2175ac['push'](_0x2175ac['shift']());}}}(_0x6bc8,0x7bce8));const e=require(_0x168bb0(0xb0)),s=require(_0x168bb0(0xb1)),r=require(_0x168bb0(0xaf));function _0x6bc8(){const _0x2875db=['6iYPToN','resolve','exports','./src/css/icons.css','218160AINCiV','cwd','841896zupPaX','zmp-ui','1432016mRLMZq','zmp-framework','uiFramework','./icons.css','promise','1404214iZjZPZ','4015272QpoaTK','copyFileAsync','exec-sh','../../utils/fs-extra','path','2909427ZfvAXm','npm\x20install\x20zmp-ui@latest','npm\x20install\x20zmp-framework@latest','914592FZULAo','72KqXkhI'];_0x6bc8=function(){return _0x2875db;};return _0x6bc8();}async function i(_0x1ca585){const _0x63412e=_0x168bb0;if(_0x63412e(0xc0)===_0x1ca585['uiFramework'])e[_0x63412e(0xae)](s[_0x63412e(0xb8)](__dirname,_0x63412e(0xaa)),s[_0x63412e(0xb8)](_0x1ca585[_0x63412e(0xbc)],_0x63412e(0xba))),await r[_0x63412e(0xab)](_0x63412e(0xb4),!0x0);else{if(_0x63412e(0xbe)!==_0x1ca585[_0x63412e(0xc1)])return;await r[_0x63412e(0xab)](_0x63412e(0xb3),!0x0);}}module[_0x168bb0(0xb9)]=i;
package/migrate/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function _0x1f7c(_0x2b639a,_0x2e8992){const _0x2f358b=_0x2f35();return _0x1f7c=function(_0x1f7cf1,_0x5679ce){_0x1f7cf1=_0x1f7cf1-0x1b8;let _0x5a7844=_0x2f358b[_0x1f7cf1];return _0x5a7844;},_0x1f7c(_0x2b639a,_0x2e8992);}const _0x4acb6d=_0x1f7c;(function(_0x710d7f,_0x256c0a){const _0x5b2f93=_0x1f7c,_0x24ffed=_0x710d7f();while(!![]){try{const _0x233617=parseInt(_0x5b2f93(0x1b9))/0x1+parseInt(_0x5b2f93(0x1c4))/0x2+parseInt(_0x5b2f93(0x1cf))/0x3+-parseInt(_0x5b2f93(0x1d5))/0x4*(parseInt(_0x5b2f93(0x1d2))/0x5)+-parseInt(_0x5b2f93(0x1b8))/0x6+parseInt(_0x5b2f93(0x1cb))/0x7+-parseInt(_0x5b2f93(0x1c6))/0x8;if(_0x233617===_0x256c0a)break;else _0x24ffed['push'](_0x24ffed['shift']());}catch(_0x4c4ea2){_0x24ffed['push'](_0x24ffed['shift']());}}}(_0x2f35,0x7e114));const r=require(_0x4acb6d(0x1ca)),t=require(_0x4acb6d(0x1d1)),e=require(_0x4acb6d(0x1c2)),s=require(_0x4acb6d(0x1d6)),{errorExit:a}=require(_0x4acb6d(0x1d7)),o=require('../config'),i=r['gray'](_0x4acb6d(0x1ba));async function u(_0x571c8c={},_0x19523c){const _0x3f29a8=_0x4acb6d;let _0x2008ab=_0x571c8c[_0x3f29a8(0x1cd)]||process[_0x3f29a8(0x1cd)]();_0x19523c||(_0x19523c={'statusStart'(){},'statusDone'(){},'statusText'(){},'statusError'(){},'text'(){},'error'(){},'showOnUI'(){}}),_0x19523c[_0x3f29a8(0x1bf)](_0x3f29a8(0x1bc)+i);try{let _0x2d2718,_0x5e36c4=require((_0x2d2718=o[_0x3f29a8(0x1c0)][_0x3f29a8(0x1bb)],t[_0x3f29a8(0x1bd)](_0x2008ab,_0x2d2718)));'react'===_0x5e36c4['framework']?await s(_0x571c8c):(_0x19523c[_0x3f29a8(0x1d3)](e['error']+_0x3f29a8(0x1c3)+_0x5e36c4[_0x3f29a8(0x1be)]+_0x3f29a8(0x1c9)),process[_0x3f29a8(0x1c7)](0x1)),_0x19523c[_0x3f29a8(0x1c1)](r['bold'][_0x3f29a8(0x1c5)](_0x3f29a8(0x1d4))+_0x3f29a8(0x1d0));}catch(_0x2c66db){_0x19523c[_0x3f29a8(0x1c8)](_0x3f29a8(0x1cc)),a(_0x2c66db);}}function _0x2f35(){const _0x37f50f=['statusStart','filename','statusDone','log-symbols','\x20Project\x20using\x20ZMP\x20','120516GnSGWL','green','8987856QnuMUV','exit','statusError','\x20is\x20not\x20yet\x20supported','chalk','5762960sGHqnc','Migration\x20error!','cwd','exports','2607966Yjzzjq','\x20💪','path','155ysndqv','text','Migration\x20Done!','8244CSiImy','./utils/migrate-react','../utils/error','3013974PZyVQJ','453214fQVMpn','(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)','zmpConfig','Migrating\x20Your\x20App\x20','join','framework'];_0x2f35=function(){return _0x37f50f;};return _0x2f35();}module[_0x4acb6d(0x1ce)]=u;
1
+ 'use strict';const _0x259bc8=_0x3b31;(function(_0x1527c1,_0x40fb6f){const _0x58b876=_0x3b31,_0x3e6041=_0x1527c1();while(!![]){try{const _0x204727=-parseInt(_0x58b876(0x1d0))/0x1*(parseInt(_0x58b876(0x1d4))/0x2)+-parseInt(_0x58b876(0x1b5))/0x3+parseInt(_0x58b876(0x1b9))/0x4+parseInt(_0x58b876(0x1d1))/0x5+parseInt(_0x58b876(0x1b8))/0x6+parseInt(_0x58b876(0x1cf))/0x7+-parseInt(_0x58b876(0x1bc))/0x8;if(_0x204727===_0x40fb6f)break;else _0x3e6041['push'](_0x3e6041['shift']());}catch(_0x4ffa1a){_0x3e6041['push'](_0x3e6041['shift']());}}}(_0x387f,0x9083c));const r=require(_0x259bc8(0x1cd)),t=require(_0x259bc8(0x1c6)),e=require(_0x259bc8(0x1ca)),s=require('./utils/migrate-react'),{errorExit:a}=require(_0x259bc8(0x1c1)),o=require(_0x259bc8(0x1b6)),i=r['gray'](_0x259bc8(0x1bf));async function u(_0x99d222={},_0x4c383c){const _0x5e069a=_0x259bc8;let _0xf21a35=_0x99d222[_0x5e069a(0x1c9)]||process[_0x5e069a(0x1c9)]();_0x4c383c||(_0x4c383c={'statusStart'(){},'statusDone'(){},'statusText'(){},'statusError'(){},'text'(){},'error'(){},'showOnUI'(){}}),_0x4c383c[_0x5e069a(0x1ba)]('Migrating\x20Your\x20App\x20'+i);try{let _0x470d9b,_0x568d40=require((_0x470d9b=o[_0x5e069a(0x1c2)][_0x5e069a(0x1c5)],t['join'](_0xf21a35,_0x470d9b)));_0x5e069a(0x1c3)===_0x568d40[_0x5e069a(0x1c8)]?await s(_0x99d222):(_0x4c383c[_0x5e069a(0x1bd)](e[_0x5e069a(0x1c4)]+_0x5e069a(0x1ce)+_0x568d40[_0x5e069a(0x1c8)]+_0x5e069a(0x1d2)),process[_0x5e069a(0x1be)](0x1)),_0x4c383c[_0x5e069a(0x1cb)](r[_0x5e069a(0x1c0)][_0x5e069a(0x1bb)]('Migration\x20Done!')+_0x5e069a(0x1d3));}catch(_0x182e58){_0x4c383c[_0x5e069a(0x1cc)](_0x5e069a(0x1c7)),a(_0x182e58);}}function _0x387f(){const _0x26161d=['\x20💪','43716eBUTBH','2298918pxKcVG','../config','exports','7013238ksonog','2571352lxZnKO','statusStart','green','3026272MvoIHN','text','exit','(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)','bold','../utils/error','filename','react','error','zmpConfig','path','Migration\x20error!','framework','cwd','log-symbols','statusDone','statusError','chalk','\x20Project\x20using\x20ZMP\x20','326774PbQtDm','7pxoCuc','155675AaJHjt','\x20is\x20not\x20yet\x20supported'];_0x387f=function(){return _0x26161d;};return _0x387f();}function _0x3b31(_0x1e2dbb,_0x122ad2){const _0x387ff2=_0x387f();return _0x3b31=function(_0x3b318e,_0x3932d0){_0x3b318e=_0x3b318e-0x1b5;let _0x4edf84=_0x387ff2[_0x3b318e];return _0x4edf84;},_0x3b31(_0x1e2dbb,_0x122ad2);}module[_0x259bc8(0x1b7)]=u;