zmp-cli 3.15.6-beta.1 → 3.15.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.js +1 -1
- package/config/index.js +1 -1
- package/create/index.js +1 -1
- package/create/init-zmp-ui.js +1 -1
- package/create/utils/colors.js +1 -1
- package/create/utils/generate-app-config.js +1 -1
- package/create/utils/generate-gitignore.js +1 -1
- package/create/utils/generate-npm-scripts.js +1 -1
- package/create/utils/generate-package-json.js +1 -1
- package/create/utils/generate-readme.js +1 -1
- package/create/utils/get-options.js +1 -1
- package/create/utils/indent.js +1 -1
- package/create/utils/npm-scripts.js +1 -1
- package/create/utils/string.js +1 -1
- package/create/utils/styles-extension.js +1 -1
- package/create/utils/template-if.js +1 -1
- package/deploy/index.js +1 -1
- package/deploy/utils/get-options.js +1 -1
- package/deploy/utils/request-upload.js +1 -1
- package/deploy/utils/upload-app.js +1 -1
- package/index.js +1 -1
- package/login/index.js +1 -1
- package/login/utils/get-options.js +1 -1
- package/login/utils/zalo-login.js +1 -1
- package/migrate/icons/update-icon-v3.js +1 -1
- package/migrate/index.js +1 -1
- package/migrate/utils/get-options.js +1 -1
- package/migrate/utils/migrate-react.js +1 -1
- package/package.json +1 -1
- package/start/generate-hr-config.js +1 -1
- package/start/index.js +1 -1
- package/sync/index-to-app-config.js +1 -1
- package/sync/index.js +1 -1
- package/utils/axios.js +1 -1
- package/utils/check-update.js +1 -1
- package/utils/constants.js +1 -1
- package/utils/env.js +1 -1
- package/utils/error.js +1 -1
- package/utils/find-files-by-ext.js +1 -1
- package/utils/find-free-port.js +1 -1
- package/utils/fs-extra.js +1 -1
- package/utils/generate-pages-map.js +1 -1
- package/utils/get-app-info.js +1 -1
- package/utils/get-current-project.js +1 -1
- package/utils/get-ip.js +1 -1
- package/utils/log.js +1 -1
- package/utils/node-blob.js +1 -1
- package/utils/resumable.d.js +1 -1
- package/utils/resumable.js +1 -1
- package/utils/spinner.js +1 -1
- package/utils/tunnel.js +1 -1
- package/create/templates/react/dist/generate-scripts.dev.js +0 -23
- package/create/templates/react-typescript/dist/generate-scripts.dev.js +0 -23
- package/deploy/utils/dist/request-upload.dev.js +0 -62
- package/deploy/utils/dist/upload-app.dev.js +0 -113
- package/login/utils/dist/zalo-login.dev.js +0 -41
package/deploy/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x98bc04=_0x2fa1;(function(_0x55cc49,_0x20b9b3){const _0x1f60da=_0x2fa1,_0x4a9c39=_0x55cc49();while(!![]){try{const _0x249369=-parseInt(_0x1f60da(0x144))/0x1*(-parseInt(_0x1f60da(0x10e))/0x2)+-parseInt(_0x1f60da(0x13c))/0x3*(parseInt(_0x1f60da(0x129))/0x4)+-parseInt(_0x1f60da(0x10a))/0x5*(-parseInt(_0x1f60da(0x133))/0x6)+parseInt(_0x1f60da(0x142))/0x7+parseInt(_0x1f60da(0x10b))/0x8*(parseInt(_0x1f60da(0x10c))/0x9)+parseInt(_0x1f60da(0x105))/0xa+-parseInt(_0x1f60da(0x13f))/0xb;if(_0x249369===_0x20b9b3)break;else _0x4a9c39['push'](_0x4a9c39['shift']());}catch(_0x291063){_0x4a9c39['push'](_0x4a9c39['shift']());}}}(_0x4e15,0x674da));function _0x4e15(){const _0x4b1409=['\x20View\x20app\x20at:\x0a','\x20💪','log-symbols','cwd','3SZRJEd','../utils/fs-extra','memory','13495515AwPlEN','../utils/env','Update\x20app\x20with\x20new\x20version','171206mwulPr','compress','19PBcIjz','join','www','length','listSyncJS','5894500XapPSb','./utils/upload-app','Please\x20define\x20your\x20assets\x20output\x20at\x20app-config.json.\x20Read\x20more:\x20https://mini.zalo.me/intro/getting-started/app-config/','filename','zmp','4735zpRLEJ','14848ewAKXW','2907dUIYHo','api_domain','1186mbxgZv','chalk','desc','statusError','../config','appConfig','error_msg','includes','identifier','forEach','data','Deploy\x20Done!','Version:','exit','app_config_not_found','info','Error\x20deploying\x20your\x20app','packageJson','green','nextVersion','appUrl','zip','entries','statusDone','gray','error','text','1037396JfOTbz','customProject','env','Deploying\x20Your\x20App\x20','stringify','writeFileSync','./utils/request-upload','token','title','bold','4338CtnmjO','path','zip-local','versionStatus','listAsyncJS'];_0x4e15=function(){return _0x4b1409;};return _0x4e15();}const e=require(_0x98bc04(0x10f)),t=require('path'),r=require(_0x98bc04(0x135)),i=require(_0x98bc04(0x13a)),a=require('qrcode-terminal'),s=require(_0x98bc04(0x112)),n=require('../build/index'),o=require(_0x98bc04(0x140)),p=require(_0x98bc04(0x106)),l=require(_0x98bc04(0x13d)),u=require(_0x98bc04(0x12f)),c=e[_0x98bc04(0x126)]('(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)'),d={'statusStart'(){},'statusDone'(){},'statusText'(){},'statusError'(){},'text'(){},'error'(){},'showOnUI'(){}};function _0x2fa1(_0x1d8113,_0x42bec3){const _0x4e15b8=_0x4e15();return _0x2fa1=function(_0x2fa14e,_0x2180dd){_0x2fa14e=_0x2fa14e-0x101;let _0xe356ae=_0x4e15b8[_0x2fa14e];return _0xe356ae;},_0x2fa1(_0x1d8113,_0x42bec3);}module['exports']=async(_0x4e1432={},_0x493c99=d,{exitOnError:_0x820e32=!0x0}={})=>{const _0x194e96=_0x98bc04;let _0x273800,_0x1e81f4,_0x3b59c8,_0x5ca6b5=_0x4e1432[_0x194e96(0x13b)]||process[_0x194e96(0x13b)](),_0x3d2f12=_0x4e1432['outputDir']||_0x194e96(0x102),_0x5c599a=s[_0x194e96(0x10d)],_0x4db6e3=_0x98788=>t[_0x194e96(0x101)](_0x5ca6b5,_0x98788);function _0x54b6cc(_0x269b27){const _0x14cc67=_0x194e96;_0x493c99[_0x14cc67(0x127)](_0x269b27['stderr']||_0x269b27),_0x820e32&&process[_0x14cc67(0x11b)](0x1);}let _0x23c154=o['getEnv'](s[_0x194e96(0x12b)][_0x194e96(0x130)]),_0x40cf39=s[_0x194e96(0x108)][_0x194e96(0x113)],_0x476582=s['filename'][_0x194e96(0x11f)],_0x19c003=!0x0;try{_0x273800=require(_0x4db6e3(_0x40cf39));}catch(_0x2a1fbf){try{_0x273800=require(_0x4db6e3(_0x3d2f12+'/'+_0x40cf39)),_0x19c003=!0x1;}catch(_0x5e3467){_0x54b6cc(Error(s[_0x194e96(0x114)][_0x194e96(0x11c)]));}}let _0x45fa61={};try{let _0x309862=require(_0x4db6e3(_0x476582))['dependencies'];Object[_0x194e96(0x124)](_0x309862)[_0x194e96(0x117)](([_0x1e9f2f,_0x468ef2])=>{const _0x1ffba1=_0x194e96;(_0x1e9f2f[_0x1ffba1(0x115)](_0x1ffba1(0x109))||_0x1e9f2f[_0x1ffba1(0x115)]('react'))&&(_0x45fa61[_0x1e9f2f]=_0x468ef2);});}catch(_0x341b58){}let _0x2d4a28={'appName':_0x273800['app'][_0x194e96(0x131)],'appDesc':_0x4e1432[_0x194e96(0x110)]||_0x194e96(0x141),'appConfig':JSON[_0x194e96(0x12d)](_0x273800),'frameworkVersions':JSON['stringify'](_0x45fa61)};try{let _0x302e53=''+_0x5c599a+s[_0x194e96(0x134)]['requestUploadResumable'],_0x4ed4db=await u(_0x302e53,_0x2d4a28,_0x4e1432[_0x194e96(0x136)],_0x23c154);_0x1e81f4=_0x4ed4db[_0x194e96(0x121)],_0x3b59c8=_0x4ed4db[_0x194e96(0x116)];}catch(_0x3a06fe){_0x54b6cc(_0x3a06fe);}if(_0x4e1432[_0x194e96(0x12a)]){let _0x46887b=0x0;_0x273800[_0x194e96(0x104)]&&_0x273800[_0x194e96(0x104)][_0x194e96(0x103)]>0x0&&(_0x46887b+=0x1),_0x273800[_0x194e96(0x137)]&&_0x273800['listAsyncJS'][_0x194e96(0x103)]>0x0&&(_0x46887b+=0x1),0x0===_0x46887b&&_0x54b6cc(Error(_0x194e96(0x107))),_0x19c003&&l[_0x194e96(0x12e)](_0x4db6e3(_0x3d2f12+'/'+s[_0x194e96(0x108)][_0x194e96(0x113)]),JSON[_0x194e96(0x12d)](_0x273800));}else _0x273800=await n({..._0x4e1432,'appConfigJson':_0x273800,'nextVersion':_0x1e81f4},_0x493c99);_0x493c99['statusStart'](_0x194e96(0x12c)+c);try{let _0x16cd3b=await new Promise((_0x3b97b6,_0x5485a9)=>{const _0x2bf2d0=_0x194e96;r[_0x2bf2d0(0x123)](_0x4db6e3(_0x3d2f12),function(_0x347e2d,_0x151ec2){const _0x50ebc7=_0x2bf2d0;return _0x347e2d?_0x5485a9(_0x347e2d):(_0x151ec2[_0x50ebc7(0x143)](),_0x3b97b6(_0x151ec2[_0x50ebc7(0x13e)]()));});}),_0x2c6bf2={..._0x2d4a28,'appBuffer':_0x16cd3b,'identifier':_0x3b59c8},_0x1f7bd0=await p(_0x2c6bf2,_0x4e1432,_0x493c99),_0x2d66aa=_0x1f7bd0&&_0x1f7bd0['data']&&_0x1f7bd0[_0x194e96(0x118)][_0x194e96(0x122)];a['generate'](_0x2d66aa,{'small':!0x0},function(_0x585862){const _0x18cfcd=_0x194e96;let _0x262baa=''+e['bold'](i[_0x18cfcd(0x11d)]+_0x18cfcd(0x138)+_0x585862);_0x493c99[_0x18cfcd(0x125)](e[_0x18cfcd(0x132)][_0x18cfcd(0x120)](_0x18cfcd(0x119))+_0x18cfcd(0x139)),_0x493c99['statusDone'](e['bold']['green'](_0x18cfcd(0x11a))+'\x20'+_0x1e81f4),_0x493c99[_0x18cfcd(0x128)](_0x262baa);});}catch(_0x177c37){_0x493c99[_0x194e96(0x111)](_0x194e96(0x11e)),_0x54b6cc(_0x177c37);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x2156aa=_0x2c1c;(function(_0x67689e,_0x1e5002){const _0x2f2439=_0x2c1c,_0x3279a9=_0x67689e();while(!![]){try{const _0x341e26=parseInt(_0x2f2439(0x1a6))/0x1*(parseInt(_0x2f2439(0x1ae))/0x2)+parseInt(_0x2f2439(0x1aa))/0x3*(-parseInt(_0x2f2439(0x1bb))/0x4)+-parseInt(_0x2f2439(0x1b0))/0x5+-parseInt(_0x2f2439(0x1ba))/0x6+-parseInt(_0x2f2439(0x1a0))/0x7*(parseInt(_0x2f2439(0x1b7))/0x8)+-parseInt(_0x2f2439(0x19c))/0x9+parseInt(_0x2f2439(0x1a4))/0xa*(parseInt(_0x2f2439(0x1b6))/0xb);if(_0x341e26===_0x1e5002)break;else _0x3279a9['push'](_0x3279a9['shift']());}catch(_0x4aaf8a){_0x3279a9['push'](_0x3279a9['shift']());}}}(_0x4960,0xa1a86));function _0x2c1c(_0xbdbec6,_0x335c4b){const _0x4960d2=_0x4960();return _0x2c1c=function(_0x2c1c4c,_0x4e0847){_0x2c1c4c=_0x2c1c4c-0x19c;let _0x4cdf04=_0x4960d2[_0x2c1c4c];return _0x4cdf04;},_0x2c1c(_0xbdbec6,_0x335c4b);}function _0x4960(){const _0x13528e=['versionStatus','../../utils/constants','Quit','25541030oKNoFn','length','826iwzrlY','What\x20version\x20status\x20are\x20you\x20deploying?','inquirer','lodash','27LNaWMh','then','input','prompt','122LaAtqy','map','2690745GdYKpD','Description:','www','keys','Where\x20is\x20your\x20dist\x20folder?','quit','22BVkYud','1360Kpzwpc','outputDir','list','5667498LszkmC','580292WvIaoB','Description\x20is\x20required!','capitalize','7711767JUYEBW','Server\x20type\x20is\x20required!','Deploy\x20your\x20existing\x20project','customProject','35049CwMMZR'];_0x4960=function(){return _0x13528e;};return _0x4960();}const e=require(_0x2156aa(0x1a8)),{versionStatus:t}=require(_0x2156aa(0x1a2)),i=require(_0x2156aa(0x1a9)),r=[{'type':_0x2156aa(0x1b9),'name':_0x2156aa(0x1a1),'message':_0x2156aa(0x1a7),'choices':Object[_0x2156aa(0x1b3)](t)[_0x2156aa(0x1af)](_0x314abb=>({'name':i[_0x2156aa(0x1bd)](_0x314abb),'value':t[_0x314abb]})),'when':_0x44a0ea=>!_0x44a0ea['quit'],'validate':_0x182465=>new Promise((_0x7e3a87,_0x407e48)=>{const _0x1b6730=_0x2156aa;_0x182465&&_0x182465['length']?_0x7e3a87(!0x0):_0x407e48(Error(_0x1b6730(0x19d)));})},{'type':_0x2156aa(0x1ac),'name':'desc','message':_0x2156aa(0x1b1),'when':_0x30b586=>!_0x30b586[_0x2156aa(0x1b5)],'validate':_0x4c4803=>new Promise((_0xc55e29,_0x268cd1)=>{const _0x46aae2=_0x2156aa;_0x4c4803&&_0x4c4803[_0x46aae2(0x1a5)]?_0xc55e29(!0x0):_0x268cd1(Error(_0x46aae2(0x1bc)));})}],s=[{'type':'list','name':'quit','message':'This\x20is\x20not\x20a\x20ZMP\x20Project,\x20do\x20you\x20want\x20to\x20continue?','choices':[{'name':_0x2156aa(0x19e),'value':!0x1},{'name':_0x2156aa(0x1a3),'value':!0x0}]},{'type':_0x2156aa(0x1ac),'name':_0x2156aa(0x1b8),'message':_0x2156aa(0x1b4),'when':_0x3d0ecb=>!_0x3d0ecb['quit'],'default':_0x2156aa(0x1b2)}];module['exports']=async function(_0x4ad309){const _0x358d7b=_0x2156aa;let _0x246166=_0x4ad309?[...r]:[...s,...r];return e[_0x358d7b(0x1ad)](_0x246166)[_0x358d7b(0x1ab)](_0x328022=>(_0x328022[_0x358d7b(0x19f)]=!0x1,!0x1===_0x328022['quit']&&(_0x328022[_0x358d7b(0x19f)]=!0x0),Promise['resolve'](_0x328022)));};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x1789ac=_0x3bd0;(function(_0x29b58a,_0x22616b){const _0x36157f=_0x3bd0,_0x2ebc6a=_0x29b58a();while(!![]){try{const _0x18d73c=-parseInt(_0x36157f(0x144))/0x1+parseInt(_0x36157f(0x13a))/0x2*(-parseInt(_0x36157f(0x14c))/0x3)+parseInt(_0x36157f(0x148))/0x4*(parseInt(_0x36157f(0x14d))/0x5)+parseInt(_0x36157f(0x13c))/0x6*(parseInt(_0x36157f(0x147))/0x7)+-parseInt(_0x36157f(0x13e))/0x8*(-parseInt(_0x36157f(0x13b))/0x9)+-parseInt(_0x36157f(0x14e))/0xa*(-parseInt(_0x36157f(0x146))/0xb)+parseInt(_0x36157f(0x14a))/0xc*(parseInt(_0x36157f(0x142))/0xd);if(_0x18d73c===_0x22616b)break;else _0x2ebc6a['push'](_0x2ebc6a['shift']());}catch(_0x4a0e5a){_0x2ebc6a['push'](_0x2ebc6a['shift']());}}}(_0x4844,0x6bc87));const {axiosClient:r}=require('../../utils/axios'),e=require('../../config'),i=async(_0x2c50f1,_0x327cc2,_0x1600e8,_0x3fb5bd)=>{const _0x161d33=_0x3bd0;let {appName:_0x32db1b,appDesc:_0x4b032e,appConfig:_0x87a84,frameworkVersions:_0x49dcea}=_0x327cc2,_0x5ea28f={'Authorization':_0x161d33(0x141)+_0x3fb5bd,'cache-control':_0x161d33(0x13d)},_0x27be06=(await r[_0x161d33(0x149)](_0x2c50f1,{'params':{'name':_0x32db1b,'desc':_0x4b032e,'config':_0x87a84,'versionStatus':_0x1600e8,'frameworkVersions':_0x49dcea},'headers':_0x5ea28f,'withCredentials':!0x0}))[_0x161d33(0x14b)];if(!_0x27be06||_0x27be06[_0x161d33(0x13f)]<0x0){if(_0x27be06&&_0x27be06[_0x161d33(0x13f)]===e[_0x161d33(0x14f)][_0x161d33(0x145)])throw Error(e[_0x161d33(0x143)][_0x161d33(0x145)]);throw Error(JSON['stringify'](_0x27be06));}return _0x27be06[_0x161d33(0x14b)];};function _0x3bd0(_0x557eab,_0x97530b){const _0x4844fc=_0x4844();return _0x3bd0=function(_0x3bd015,_0x52fae6){_0x3bd015=_0x3bd015-0x13a;let _0x1e71c1=_0x4844fc[_0x3bd015];return _0x1e71c1;},_0x3bd0(_0x557eab,_0x97530b);}function _0x4844(){const _0x5a4e30=['36588FTKPub','data','3lCvxWJ','8035njOzZH','1250stZNFD','error_code','771186CBinPV','891477GaRMci','68838ehqpeq','no-cache','8JNkbdB','err','exports','Bearer\x20','195YtyToW','error_msg','829378lCuefM','permission_denied','26972GsVgKf','399ngBudb','1372cEotLx','get'];_0x4844=function(){return _0x5a4e30;};return _0x4844();}module[_0x1789ac(0x140)]=i;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0xc6b83f=_0x13b5;function _0x13b5(_0x133dfe,_0x18d5da){const _0x3f8c85=_0x3f8c();return _0x13b5=function(_0x13b523,_0xc31df1){_0x13b523=_0x13b523-0x17e;let _0x22b26f=_0x3f8c85[_0x13b523];return _0x22b26f;},_0x13b5(_0x133dfe,_0x18d5da);}(function(_0x54de23,_0x3f0370){const _0x4f2c8e=_0x13b5,_0x443653=_0x54de23();while(!![]){try{const _0x214b76=-parseInt(_0x4f2c8e(0x193))/0x1*(-parseInt(_0x4f2c8e(0x181))/0x2)+-parseInt(_0x4f2c8e(0x1ae))/0x3*(parseInt(_0x4f2c8e(0x18d))/0x4)+-parseInt(_0x4f2c8e(0x185))/0x5*(-parseInt(_0x4f2c8e(0x194))/0x6)+parseInt(_0x4f2c8e(0x199))/0x7*(parseInt(_0x4f2c8e(0x19f))/0x8)+parseInt(_0x4f2c8e(0x1a1))/0x9*(-parseInt(_0x4f2c8e(0x191))/0xa)+parseInt(_0x4f2c8e(0x19b))/0xb+parseInt(_0x4f2c8e(0x1af))/0xc;if(_0x214b76===_0x3f0370)break;else _0x443653['push'](_0x443653['shift']());}catch(_0x19ffa4){_0x443653['push'](_0x443653['shift']());}}}(_0x3f8c,0x92aab));const r=require(_0xc6b83f(0x1a0)),e=require(_0xc6b83f(0x190)),n=require('../../config'),o=require('../../utils/env'),t=require(_0xc6b83f(0x18b))[_0xc6b83f(0x18c)],a=require(_0xc6b83f(0x197)),u=require('lodash');function _0x3f8c(){const _0x193f1e=['1058740qnvhjH','getEnv','token','chalk','30DSHPOL','parse','1TnOKWs','8586sJhEHI','fileError','Does\x20not\x20support\x20upload\x20app','form-data','round','399HCMrNy','resumable_option','1780878CMFUnz','config','Error\x20upload\x20app:\x20cancel','Bearer\x20','65080BGAmSm','../../utils/resumable','2533140BIHijj','path','upload','join','exports','isNumber','env','addFile','progress','append','fileSuccess','support','err','6CXJlqM','633360RBzZxi','name','Error\x20upload\x20app:\x20','fileProgress','686156ztonuj','cancel','complete','Deploying\x20Your\x20App\x20','3330kWNyCx','uploadAppByChunk','desc','fileAdded','gray','statusText','file-api','File'];_0x3f8c=function(){return _0x193f1e;};return _0x3f8c();}module[_0xc6b83f(0x1a5)]=async function(_0x190bdf,_0x4bebb4,_0x2330e3){const _0xab832f=_0xc6b83f;let _0x7a2c8e=n['api_domain'],_0x3b766c=''+_0x7a2c8e+n[_0xab832f(0x1a2)][_0xab832f(0x186)],{appName:_0xfeba38,appDesc:_0x52d4fe,appBuffer:_0x112785,appConfig:_0xab7855,identifier:_0x18c373}=_0x190bdf,_0x10a5ef=o[_0xab832f(0x18e)](n[_0xab832f(0x1a7)][_0xab832f(0x18f)]),_0x2c26f6=new r({...n[_0xab832f(0x19a)],'target':_0x3b766c,'headers':{'Authorization':_0xab832f(0x19e)+_0x10a5ef},'generateUniqueIdentifier':()=>_0x18c373}),_0x57059c=new a();if(_0x57059c[_0xab832f(0x1aa)]('zipFile',_0x112785),_0x57059c[_0xab832f(0x1aa)](_0xab832f(0x17e),_0xfeba38),_0x57059c[_0xab832f(0x1aa)](_0xab832f(0x187),_0x52d4fe),_0x57059c['append'](_0xab832f(0x19c),_0xab7855),_0x2c26f6[_0xab832f(0x1ac)])return _0x2c26f6['on'](_0xab832f(0x180),function(_0x1dc8ea){const _0x12773f=_0xab832f;let _0x132b32=Array(Math[_0x12773f(0x198)](0x64*_0x1dc8ea[_0x12773f(0x1a9)]())%0x65+0x1)[_0x12773f(0x1a4)]('|');_0x2330e3[_0x12773f(0x18a)](_0x12773f(0x184)+e[_0x12773f(0x189)]('\x0a'+_0x132b32+'\x20'+Math[_0x12773f(0x198)](0x64*_0x1dc8ea['progress']())+'%'));}),await new Promise((_0x4dbea7,_0x17c6d8)=>{const _0x112a93=_0xab832f;try{var _0x3f5e50=new t({'name':'www.zip','buffer':_0x112785});_0x2c26f6['on'](_0x112a93(0x188),function(){const _0x2457d7=_0x112a93;_0x2c26f6[_0x2457d7(0x1a3)]();}),_0x2c26f6['on'](_0x112a93(0x183),function(){return _0x4dbea7();}),_0x2c26f6['on'](_0x112a93(0x195),function(_0x36ff12,_0x16b348){const _0x546ee6=_0x112a93;return _0x17c6d8(Error(_0x546ee6(0x17f)+_0x16b348));}),_0x2c26f6['on'](_0x112a93(0x182),function(){const _0x2b99c4=_0x112a93;return _0x17c6d8(Error(_0x2b99c4(0x19d)));}),_0x2c26f6['on'](_0x112a93(0x1ab),function(_0x3d603e,_0x3d888a){const _0x292c78=_0x112a93;let _0x3a9077=JSON[_0x292c78(0x192)](_0x3d888a);return u[_0x292c78(0x1a6)](_0x3a9077[_0x292c78(0x1ad)])&&_0x3a9077[_0x292c78(0x1ad)]<0x0?_0x17c6d8(Error('Error\x20upload\x20app:\x20'+_0x3d888a)):_0x4dbea7(_0x3a9077);}),_0x2c26f6[_0x112a93(0x1a8)](_0x3f5e50);}catch(_0x1e2de5){return _0x17c6d8(_0x1e2de5);}});_0x2330e3['statusError'](_0xab832f(0x196));};
|
package/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
'use strict';const
|
|
2
|
+
'use strict';const _0x548a02=_0xe762;function _0x2d94(){const _0x3c94cc=['command:*','Specify\x20server\x20hostname.\x20By\x20default\x20it\x20is\x20os.hostname','ZMP\x20CLI','clear','6rdCVdg','Env\x20mode','mode','Build\x20a\x20ZMP\x20project','testing','-m,\x20--desc\x20<message>','Deploy\x20a\x20ZMP\x20project','cyan','existsSync','./utils/constants','length','./create/utils/get-options','./login/index','command','<command>\x20[options]','-P,\x20--port\x20<n>','root_env','Deploy\x20in\x20Development\x20server','outputHelp','-M,\x20--mode\x20<m>','./start/index','-r,\x20--root-element\x20<selector>','ios','error','cwd','Login\x20ZMP','log-symbols','quit','args','-iosH,\x20--ios-host-name\x20<n>','Passive\x20mode\x20(non-interactive)','Automatically\x20update\x20app-config.json\x20resources\x20list\x20based\x20on\x20index.html','.local','./utils/log','1819391TTqEsc','description','option','Preview\x20on\x20Zalo','Version:\x20','./utils/fs-extra','583312ylvERk','./migrate/utils/get-options','frame','port','./deploy/utils/get-options','-p,\x20--passive','20jHLoYz','sync-config\x20<source>','Deploy\x20testing\x20version','218746XhHnEA','-D,\x20--device','Start\x20a\x20ZMP\x20project','textSync','version','\x20This\x20is\x20not\x20ZMP\x20project','./config','-t,\x20--testing','iosHostName','Run\x20without\x20Zalo\x20frame','./create/index','skipUpdate','chalk','Deploy\x20existing\x20project','Run\x20on\x20ios','device','resolve','Output\x20folder.\x20Default\x20www','Custom\x20entry\x20point,\x20default\x20is\x20#app','deploy','./utils/check-update','./login/utils/get-options','1324450VdGvpa','writeFileSync','figlet','-D,\x20--dev','commander','8FvmYBa','action','passive','text','./build/index','3574215NyWAxW','dev','migrate','3111656cwifhy','exit','Device\x20mode','login','--skipUpdate','9JmhgcB','NW.js\x20module\x20is\x20not\x20found.\x20Please\x20run\x20\x22npm\x20install\x20-g\x20nw@sdk\x22','showMobileUi','log','6904887tHOEqu','-o,\x20--outputDir\x20<output>','includes','start','usage'];_0x2d94=function(){return _0x3c94cc;};return _0x2d94();}function _0xe762(_0x5431bc,_0x496707){const _0x2d946c=_0x2d94();return _0xe762=function(_0xe76299,_0x9f6dba){_0xe76299=_0xe76299-0x102;let _0x3ca25c=_0x2d946c[_0xe76299];return _0x3ca25c;},_0xe762(_0x5431bc,_0x496707);}(function(_0x2fdb6f,_0x57f0b4){const _0x39c159=_0xe762,_0x188606=_0x2fdb6f();while(!![]){try{const _0xc80207=-parseInt(_0x39c159(0x124))/0x1+parseInt(_0x39c159(0x11b))/0x2+parseInt(_0x39c159(0x144))/0x3+-parseInt(_0x39c159(0x13f))/0x4*(-parseInt(_0x39c159(0x13a))/0x5)+-parseInt(_0x39c159(0x159))/0x6*(parseInt(_0x39c159(0x115))/0x7)+parseInt(_0x39c159(0x147))/0x8*(parseInt(_0x39c159(0x14c))/0x9)+parseInt(_0x39c159(0x121))/0xa*(-parseInt(_0x39c159(0x150))/0xb);if(_0xc80207===_0x57f0b4)break;else _0x188606['push'](_0x188606['shift']());}catch(_0x2a4ff2){_0x188606['push'](_0x188606['shift']());}}}(_0x2d94,0xa3039));const e=require(_0x548a02(0x130)),o=require(_0x548a02(0x158)),t=require(_0x548a02(0x13c)),i=require(_0x548a02(0x13e)),r=require(_0x548a02(0x10d)),s=require(_0x548a02(0x11a)),n=require(_0x548a02(0x138)),a=require('./utils/spinner'),c=require(_0x548a02(0x114)),p=require('./utils/get-current-project'),u=require(_0x548a02(0x164)),l=require(_0x548a02(0x139)),d=require(_0x548a02(0x11f)),m=require(_0x548a02(0x11c)),g=require(_0x548a02(0x165)),x=require(_0x548a02(0x12e)),y=require(_0x548a02(0x107)),v=require(_0x548a02(0x143)),w=require('./deploy/index'),f=require('./sync/index'),q=require('./migrate/index'),h=require('os'),M=require('./package.json'),P=require(_0x548a02(0x12a)),{versionStatus:j}=require(_0x548a02(0x162)),Z=process[_0x548a02(0x10b)](),D={'statusStart':_0x350a6f=>a[_0x548a02(0x153)](_0x350a6f),'statusDone':_0x2d39f1=>a['done'](_0x2d39f1),'statusText':_0x452dc7=>a[_0x548a02(0x142)](_0x452dc7),'statusError':_0x47b720=>a['error'](_0x47b720),'text':_0x4956dd=>c['text'](_0x4956dd),'error':_0x51e369=>c[_0x548a02(0x10a)](_0x51e369),'showOnUI':()=>{}};o(),s[_0x548a02(0x161)](P[_0x548a02(0x103)]())||s[_0x548a02(0x13b)](P[_0x548a02(0x103)]()),console[_0x548a02(0x14f)](e[_0x548a02(0x160)](t[_0x548a02(0x127)](_0x548a02(0x157),{'horizontalLayout':'full','verticalLayout':'full'})),e[_0x548a02(0x160)](_0x548a02(0x119)+M[_0x548a02(0x128)]+'\x0a')),i[_0x548a02(0x128)](M['version'])[_0x548a02(0x154)](_0x548a02(0x167))[_0x548a02(0x166)]('init')['option'](_0x548a02(0x14b),'Skip\x20checking\x20for\x20update\x20of\x20zmp-cli')[_0x548a02(0x116)]('Init\x20ZMP\x20project')[_0x548a02(0x140)](async _0xe423cc=>{const _0x29fd01=_0x548a02;_0xe423cc[_0x29fd01(0x12f)]||await n(),p(Z)&&(c['text'](r['error']+'\x20ZMP\x20project\x20already\x20set\x20up\x20in\x20current\x20directory'),process['exit'](0x1));let _0x2f4a96=await l();await g({'cwd':Z,..._0x2f4a96},D);let _0x1113cc=await u();await x({'cwd':Z,..._0x1113cc},D),process[_0x29fd01(0x148)](0x0);}),i[_0x548a02(0x154)](_0x548a02(0x167))[_0x548a02(0x166)](_0x548a02(0x14a))['description'](_0x548a02(0x10c))[_0x548a02(0x140)](async()=>{const _0x150376=_0x548a02;let _0x14b43e=await l();await g({'cwd':Z,..._0x14b43e},D),process[_0x150376(0x148)](0x0);}),i[_0x548a02(0x154)](_0x548a02(0x167))[_0x548a02(0x166)](_0x548a02(0x153))[_0x548a02(0x117)](_0x548a02(0x110),_0x548a02(0x156))[_0x548a02(0x117)](_0x548a02(0x102),'Specify\x20server\x20port.\x20By\x20default\x20it\x20is\x203000',parseInt)['option']('-Z,\x20--zalo-app',_0x548a02(0x118))[_0x548a02(0x117)]('-ios,\x20--ios',_0x548a02(0x132))[_0x548a02(0x117)]('-nF,\x20--no-frame',_0x548a02(0x12d))[_0x548a02(0x117)](_0x548a02(0x125),_0x548a02(0x149))[_0x548a02(0x117)](_0x548a02(0x106),_0x548a02(0x15a))[_0x548a02(0x116)](_0x548a02(0x126))['action'](async _0x5209c2=>{const _0x511ab9=_0x548a02;if(p(Z)||(c[_0x511ab9(0x142)](r[_0x511ab9(0x10a)]+'\x20This\x20is\x20not\x20ZMP\x20project'),process[_0x511ab9(0x148)](0x1)),_0x5209c2&&_0x5209c2['showMobileUi'])try{console[_0x511ab9(0x14f)](require[_0x511ab9(0x134)]('nw'));}catch(_0x595c47){console[_0x511ab9(0x10a)](_0x511ab9(0x14d)),process[_0x511ab9(0x148)](_0x595c47['code']);}let _0x444a10=h['hostname']();_0x444a10[_0x511ab9(0x152)]('.local')||(_0x444a10=_0x444a10+_0x511ab9(0x113)),await y({'cwd':Z,'port':_0x5209c2&&_0x5209c2[_0x511ab9(0x11e)]||0xbb8,'iosHostName':_0x5209c2&&_0x5209c2[_0x511ab9(0x12c)]||_0x444a10,'showMobileUI':_0x5209c2&&_0x5209c2[_0x511ab9(0x14e)]||!0x1,'previewOnZalo':_0x5209c2&&_0x5209c2['zaloApp']||!0x1,'ios':_0x5209c2&&_0x5209c2[_0x511ab9(0x109)]||!0x1,'mode':_0x5209c2&&_0x5209c2[_0x511ab9(0x15b)],'frame':!!_0x5209c2&&(void 0x0===_0x5209c2[_0x511ab9(0x11d)]||null===_0x5209c2['frame'])||_0x5209c2[_0x511ab9(0x11d)],'deviceMode':_0x5209c2&&_0x5209c2[_0x511ab9(0x133)]||!0x1},D),process[_0x511ab9(0x148)](0x0);}),i[_0x548a02(0x154)](_0x548a02(0x167))['command']('build')[_0x548a02(0x116)](_0x548a02(0x15c))[_0x548a02(0x140)](async()=>{const _0x2281e0=_0x548a02;p(Z)||(c[_0x2281e0(0x142)](r[_0x2281e0(0x10a)]+_0x2281e0(0x129)),process[_0x2281e0(0x148)](0x1)),await v({'cwd':Z},D),process[_0x2281e0(0x148)](0x0);}),i[_0x548a02(0x154)]('<command>\x20[options]')[_0x548a02(0x166)](_0x548a02(0x137))[_0x548a02(0x117)](_0x548a02(0x13d),_0x548a02(0x104))['option'](_0x548a02(0x106),'Env\x20mode')[_0x548a02(0x117)](_0x548a02(0x120),_0x548a02(0x111))[_0x548a02(0x117)]('-e,\x20--existing',_0x548a02(0x131))['option'](_0x548a02(0x12b),_0x548a02(0x123))[_0x548a02(0x117)](_0x548a02(0x15e),'Version\x20description')[_0x548a02(0x117)](_0x548a02(0x151),_0x548a02(0x135))[_0x548a02(0x117)](_0x548a02(0x102),'Specify\x20UI\x20server\x20port.\x20By\x20default\x20it\x20is\x203001',parseInt)[_0x548a02(0x116)](_0x548a02(0x15f))[_0x548a02(0x140)](async _0x25eeee=>{const _0x5943f9=_0x548a02;let _0x4f63b7=p(Z),_0x2cf37a=_0x25eeee;_0x25eeee['existing']?_0x2cf37a['customProject']=!0x0:_0x25eeee[_0x5943f9(0x141)]||(_0x2cf37a=await d(_0x4f63b7)),_0x25eeee[_0x5943f9(0x15d)]&&(_0x2cf37a['versionStatus']=j['TESTING']),_0x2cf37a[_0x5943f9(0x10e)]&&process['exit'](0x1),await w({'cwd':Z,'dev':_0x25eeee&&_0x25eeee[_0x5943f9(0x145)],'mode':_0x25eeee&&_0x25eeee[_0x5943f9(0x15b)],..._0x2cf37a},D),process['exit'](0x0);}),i[_0x548a02(0x154)](_0x548a02(0x167))[_0x548a02(0x166)](_0x548a02(0x122))[_0x548a02(0x117)](_0x548a02(0x108),_0x548a02(0x136))[_0x548a02(0x116)](_0x548a02(0x112))['action'](async(_0x20df75,_0x39872e)=>{const _0x3b81f9=_0x548a02;await f({'source':_0x20df75,..._0x39872e},D),process[_0x3b81f9(0x148)](0x0);}),i['usage'](_0x548a02(0x167))[_0x548a02(0x166)](_0x548a02(0x146))[_0x548a02(0x140)](async function(){const _0x1cd0e5=_0x548a02;let _0x1898c9=p(Z);_0x1898c9||(D[_0x1cd0e5(0x142)](r[_0x1cd0e5(0x10a)]+_0x1cd0e5(0x129)),process[_0x1cd0e5(0x148)](0x1));let _0x35916f=await m();await q({'cwd':Z,..._0x35916f,..._0x1898c9},D),process[_0x1cd0e5(0x148)](0x0);}),i['on'](_0x548a02(0x155),_0x2c0f90=>{const _0x319500=_0x548a02;i['outputHelp'](),c[_0x319500(0x142)]('\x0a\x20Unknown\x20command\x20'+_0x2c0f90);}),i['parse'](process['argv']),i[_0x548a02(0x10f)][_0x548a02(0x163)]||i[_0x548a02(0x105)]();
|
package/login/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0x2d8a25=_0x2e1b;function _0x2e1b(_0x5dafbf,_0x5e891b){const _0x42d3fb=_0x42d3();return _0x2e1b=function(_0x2e1bf8,_0x2e910e){_0x2e1bf8=_0x2e1bf8-0x1de;let _0x5817c8=_0x42d3fb[_0x2e1bf8];return _0x5817c8;},_0x2e1b(_0x5dafbf,_0x5e891b);}(function(_0x3158eb,_0x3c8ef0){const _0x583fda=_0x2e1b,_0x465a8f=_0x3158eb();while(!![]){try{const _0x216c3e=parseInt(_0x583fda(0x216))/0x1*(parseInt(_0x583fda(0x217))/0x2)+parseInt(_0x583fda(0x214))/0x3+-parseInt(_0x583fda(0x1e6))/0x4*(-parseInt(_0x583fda(0x211))/0x5)+-parseInt(_0x583fda(0x1fa))/0x6+-parseInt(_0x583fda(0x1f7))/0x7*(parseInt(_0x583fda(0x201))/0x8)+parseInt(_0x583fda(0x1f8))/0x9+-parseInt(_0x583fda(0x213))/0xa;if(_0x216c3e===_0x3c8ef0)break;else _0x465a8f['push'](_0x465a8f['shift']());}catch(_0x3ad9b9){_0x465a8f['push'](_0x465a8f['shift']());}}}(_0x42d3,0x3e13a));function _0x42d3(){const _0x128aff=['bold','250eAbzTH','Scan\x20the\x20QR\x20code\x20with\x20Zalo\x20app:\x0a','5424110SRDGia','545046WSqfkR','error','262981wdhujl','2PHoGhg','../utils/env','permission_denied','zalo','./utils/zalo-login','POST','token','stop','Login\x20Success!','then','text','env','31124HvDFcK','catch','log-symbols','statusDone','info','statusText','Login\x20failed!','appId','start','gray','zmpsk','chalk','ora','Login...','error_msg','loginMethod','statusError','989023epSgzj','2409885tdfKlD','getEnv','981072EIOYDr','qrcode-terminal','decode','jwt','api_domain','stringify','setEnv','8ZbFTUF','../utils/axios','path','msg','../utils/log','data','getQRCode','error_code','exports','request_timeout','login','jsonwebtoken','err','checkStatus','../config'];_0x42d3=function(){return _0x128aff;};return _0x42d3();}const e=require(_0x2d8a25(0x1f1)),t=require(_0x2d8a25(0x1f2)),r=require(_0x2d8a25(0x20c)),a=require(_0x2d8a25(0x1fb)),n=require(_0x2d8a25(0x1e8)),o=require(_0x2d8a25(0x20f)),s=require(_0x2d8a25(0x218)),i=require(_0x2d8a25(0x205)),u=require(_0x2d8a25(0x1de)),{axiosClient:l}=require(_0x2d8a25(0x202)),c=require('qs'),d=e[_0x2d8a25(0x1ef)](_0x2d8a25(0x1f3)),p=t(d);module[_0x2d8a25(0x209)]=async(_0x42a87d={},_0x44d987,{exitOnError:_0x413683=!0x0}={})=>{const _0x5249a1=_0x2d8a25;let _0x329971;_0x44d987||(_0x44d987={'statusStart'(){},'statusDone'(){},'statusText'(){},'statusError'(){},'text'(){},'error'(){}}),_0x44d987['statusStart'](d),p[_0x5249a1(0x1ee)]();let _0x746a12=_0x42a87d[_0x5249a1(0x1f5)],_0x58b36c=_0x42a87d[_0x5249a1(0x1ed)]||s[_0x5249a1(0x1f9)](o['env'][_0x5249a1(0x1ed)]),_0x36dcd0=_0x42a87d[_0x5249a1(0x1e0)],_0x208a25=''+o[_0x5249a1(0x1fe)]+o[_0x5249a1(0x203)][_0x5249a1(0x20b)];try{if(p[_0x5249a1(0x1ee)](),_0x5249a1(0x21a)===_0x746a12){let _0x60308e;await new Promise((_0x348a57,_0x239d7c)=>{const _0xaa634a=_0x5249a1;u[_0xaa634a(0x207)](_0x58b36c)['then'](function(_0xa1dd43){const _0x10d663=_0xaa634a;p[_0x10d663(0x1e1)]();let _0x5333bf=_0xa1dd43[_0x10d663(0x206)];if(!_0x5333bf||_0x5333bf[_0x10d663(0x20d)]<0x0)return _0x239d7c(Error(_0x5333bf[_0x10d663(0x204)]));let _0x114deb=_0x5333bf[_0x10d663(0x206)]&&_0x5333bf['data']['loginUrl'];return _0x60308e=_0x5333bf[_0x10d663(0x206)]&&_0x5333bf['data'][_0x10d663(0x1f0)],a['generate'](_0x114deb,{'small':!0x0},function(_0x71b3f7){const _0x4d304c=_0x10d663;let _0x48602f=n[_0x4d304c(0x1ea)]+'\x20'+e[_0x4d304c(0x210)](_0x4d304c(0x212)+_0x71b3f7);_0x44d987[_0x4d304c(0x1e4)](_0x48602f);}),s[_0x10d663(0x200)](o[_0x10d663(0x1e5)][_0x10d663(0x1ed)],_0x58b36c),_0x348a57();})[_0xaa634a(0x1e7)](function(_0x369554){return p['stop'](),_0x239d7c(_0x369554);});}),await new Promise((_0x58c075,_0x3c3330)=>{if(!_0x60308e)return _0x3c3330(Error('Token\x20Invalid!'));let _0x1bb543=0x0;_0x329971=setInterval(()=>{const _0x1de7ad=_0x2e1b;if(_0x44d987[_0x1de7ad(0x1eb)](d+'\x20(Time\x20out\x20after\x20'+(0x3c-_0x1bb543)+'s)'),_0x1bb543>0x3c)return clearInterval(_0x329971),_0x3c3330(Error(o['error_msg'][_0x1de7ad(0x20a)]));_0x1bb543++,u[_0x1de7ad(0x20e)](_0x60308e)[_0x1de7ad(0x1e3)](function(_0x5a7941){const _0x21d1be=_0x1de7ad;p['stop']();let _0xc6fdd4=_0x5a7941[_0x21d1be(0x206)];if(_0xc6fdd4&&_0xc6fdd4[_0x21d1be(0x20d)]===o['error_code'][_0x21d1be(0x219)])return clearInterval(_0x329971),_0x3c3330(Error(o[_0x21d1be(0x1f4)]['permission_denied']));if(_0xc6fdd4&&_0xc6fdd4[_0x21d1be(0x20d)]===o[_0x21d1be(0x208)][_0x21d1be(0x20a)])return clearInterval(_0x329971),_0x3c3330(Error(o[_0x21d1be(0x1f4)][_0x21d1be(0x20a)]));if(_0xc6fdd4&&_0xc6fdd4[_0x21d1be(0x20d)]>=0x0){clearInterval(_0x329971);let _0x30c7e0=_0xc6fdd4[_0x21d1be(0x206)]&&_0xc6fdd4[_0x21d1be(0x206)][_0x21d1be(0x1fd)];return s['setEnv'](o['env'][_0x21d1be(0x1e0)],_0x30c7e0),_0x44d987[_0x21d1be(0x1e9)](_0x21d1be(0x1e2)),_0x58c075();}})[_0x1de7ad(0x1e7)](function(_0x33e1af){const _0x4ea1f7=_0x1de7ad;return clearInterval(_0x329971),p[_0x4ea1f7(0x1e1)](),_0x3c3330(_0x33e1af);});},0x7d0);});}else await new Promise((_0x231b0d,_0x2f1a6f)=>{const _0x49b742=_0x5249a1;l({'url':_0x208a25,'method':_0x49b742(0x1df),'headers':{'cache-control':'no-cache','content-type':'application/x-www-form-urlencoded'},'data':c[_0x49b742(0x1ff)]({'accessToken':_0x36dcd0,'appId':_0x58b36c}),'withCredentials':!0x0})[_0x49b742(0x1e3)](function(_0x9b6207){const _0x1f156b=_0x49b742;p['stop']();let _0x232350=_0x9b6207[_0x1f156b(0x206)];if(!_0x232350||_0x232350[_0x1f156b(0x20d)]<0x0)return _0x2f1a6f(Error(_0x232350['msg']));let _0x547e0f=_0x232350[_0x1f156b(0x206)]&&_0x232350['data']['jwt'];try{let _0x252a94=r[_0x1f156b(0x1fc)](_0x547e0f);s[_0x1f156b(0x200)](o[_0x1f156b(0x1e5)][_0x1f156b(0x1ed)],_0x252a94[_0x1f156b(0x1ed)]),s[_0x1f156b(0x200)](o[_0x1f156b(0x1e5)][_0x1f156b(0x1e0)],_0x547e0f);}catch(_0x5e9d0f){return _0x2f1a6f(_0x5e9d0f);}return _0x44d987[_0x1f156b(0x1e9)](_0x1f156b(0x1e2)),_0x231b0d();})[_0x49b742(0x1e7)](function(_0x2a0700){const _0x2271c3=_0x49b742;return p[_0x2271c3(0x1e1)](),_0x2f1a6f(_0x2a0700);});});}catch(_0x1c838a){_0x44d987[_0x5249a1(0x1f6)](_0x5249a1(0x1ec)),i[_0x5249a1(0x215)](_0x1c838a['stderr']||_0x1c838a),_0x413683&&process['exit'](0x1);return;}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x526c(_0x226373,_0x5e5834){const _0x2c8cda=_0x2c8c();return _0x526c=function(_0x526cee,_0x4890f0){_0x526cee=_0x526cee-0x6b;let _0x333693=_0x2c8cda[_0x526cee];return _0x333693;},_0x526c(_0x226373,_0x5e5834);}function _0x2c8c(){const _0x26b711=['Choose\x20a\x20Login\x20Method','250410AfkKNM','exports','resolve','381670YuUYwO','Zalo\x20Access\x20Token\x20is\x20required','loginMethod','343973PyIeit','list','input','Zalo\x20Access\x20Token:','3926850OYCoea','Mimi\x20App\x20ID\x20is\x20required','zalo','env','getEnv','then','../../config','appId','8HyguPR','accessToken','1.\x20Login\x20Via\x20QR\x20Code\x20With\x20Zalo\x20App','../../utils/env','inquirer','token','96VDOxzg','531194iazzlT','prompt','1384360KcnfGA','Mini\x20App\x20ID:','180OLRHjs','1151634jomNDg'];_0x2c8c=function(){return _0x26b711;};return _0x2c8c();}const _0x2561c8=_0x526c;(function(_0x137f11,_0x139cb6){const _0x3f5252=_0x526c,_0x5747e9=_0x137f11();while(!![]){try{const _0xa1ccf6=-parseInt(_0x3f5252(0x70))/0x1+parseInt(_0x3f5252(0x72))/0x2+-parseInt(_0x3f5252(0x75))/0x3+-parseInt(_0x3f5252(0x89))/0x4*(-parseInt(_0x3f5252(0x77))/0x5)+parseInt(_0x3f5252(0x81))/0x6+parseInt(_0x3f5252(0x7d))/0x7*(parseInt(_0x3f5252(0x6f))/0x8)+parseInt(_0x3f5252(0x74))/0x9*(-parseInt(_0x3f5252(0x7a))/0xa);if(_0xa1ccf6===_0x139cb6)break;else _0x5747e9['push'](_0x5747e9['shift']());}catch(_0x532273){_0x5747e9['push'](_0x5747e9['shift']());}}}(_0x2c8c,0x576bb));const e=require(_0x2561c8(0x6d)),i=require(_0x2561c8(0x6c)),o=require(_0x2561c8(0x87));module[_0x2561c8(0x78)]=function(){const _0x3b23db=_0x2561c8;let _0x3b8429=[{'type':_0x3b23db(0x7f),'name':_0x3b23db(0x88),'message':_0x3b23db(0x73),'when':()=>!i[_0x3b23db(0x85)](o[_0x3b23db(0x84)]['appId']),'validate':_0x2d288b=>new Promise((_0x20e91c,_0x1e4d39)=>{const _0x379540=_0x3b23db;_0x2d288b?_0x20e91c(!0x0):_0x1e4d39(Error(_0x379540(0x82)));})},{'type':_0x3b23db(0x7e),'name':'loginMethod','message':_0x3b23db(0x76),'choices':[{'name':_0x3b23db(0x6b),'value':_0x3b23db(0x83)},{'name':'2.\x20Login\x20With\x20App\x20Access\x20Token','value':_0x3b23db(0x8a)}],'validate':_0x1ae45a=>new Promise((_0x23a67b,_0x9abedc)=>{_0x1ae45a&&_0x1ae45a['length']?_0x23a67b(!0x0):_0x9abedc(Error('Login\x20method\x20is\x20required!'));})},{'type':_0x3b23db(0x7f),'name':_0x3b23db(0x6e),'message':_0x3b23db(0x80),'when':_0x3508ef=>_0x3b23db(0x8a)===_0x3508ef[_0x3b23db(0x7c)],'validate':_0x58b9ef=>new Promise((_0x144d1d,_0x22b0d1)=>{const _0x36af3f=_0x3b23db;_0x58b9ef?_0x144d1d(!0x0):_0x22b0d1(Error(_0x36af3f(0x7b)));})}];return e[_0x3b23db(0x71)](_0x3b8429)[_0x3b23db(0x86)](_0x36d47d=>Promise[_0x3b23db(0x79)](_0x36d47d));};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x3c63(_0x21319a,_0x2f3322){const _0xe296b5=_0xe296();return _0x3c63=function(_0x3c637f,_0x965ff2){_0x3c637f=_0x3c637f-0x9f;let _0x395fe3=_0xe296b5[_0x3c637f];return _0x395fe3;},_0x3c63(_0x21319a,_0x2f3322);}const _0x1ee839=_0x3c63;(function(_0x3e723a,_0x1a97d1){const _0x4ea3fd=_0x3c63,_0x435fd8=_0x3e723a();while(!![]){try{const _0x4636ee=-parseInt(_0x4ea3fd(0xb0))/0x1*(parseInt(_0x4ea3fd(0xa8))/0x2)+-parseInt(_0x4ea3fd(0xab))/0x3*(-parseInt(_0x4ea3fd(0xa3))/0x4)+-parseInt(_0x4ea3fd(0xac))/0x5*(parseInt(_0x4ea3fd(0x9f))/0x6)+-parseInt(_0x4ea3fd(0xa7))/0x7*(parseInt(_0x4ea3fd(0xa6))/0x8)+parseInt(_0x4ea3fd(0xa2))/0x9*(parseInt(_0x4ea3fd(0xb2))/0xa)+-parseInt(_0x4ea3fd(0xaf))/0xb*(-parseInt(_0x4ea3fd(0xa9))/0xc)+-parseInt(_0x4ea3fd(0xaa))/0xd*(-parseInt(_0x4ea3fd(0xb1))/0xe);if(_0x4636ee===_0x1a97d1)break;else _0x435fd8['push'](_0x435fd8['shift']());}catch(_0x236b39){_0x435fd8['push'](_0x435fd8['shift']());}}}(_0xe296,0xc6049));const e=require('../../config'),{axiosClient:t}=require(_0x1ee839(0xad));module[_0x1ee839(0xa0)]=(function(){const _0x383cb2=_0x1ee839;let _0x51f018=''+e['api_domain']+e['path'][_0x383cb2(0xa4)],_0x881c53=''+e['api_domain']+e['path']['checkLoginStatus'];return{'getQRCode':_0x78a79f=>t({'method':_0x383cb2(0xa1),'url':_0x51f018+'?appId='+_0x78a79f,'headers':{'cache-control':_0x383cb2(0xa5)},'withCredentials':!0x0}),'checkStatus':_0x43bdd3=>t({'method':_0x383cb2(0xa1),'url':_0x881c53+_0x383cb2(0xae)+_0x43bdd3,'headers':{'cache-control':'no-cache'},'withCredentials':!0x0})};}());function _0xe296(){const _0x1dfb0a=['3123bRaGFo','72EeGZmD','requestLogin','no-cache','26424EpAvDR','413BqCmrE','11754rjEkFO','1303716ImXRHA','11037NWbxhU','103263FOQmay','16855Evqpeq','../../utils/axios','?zmpsk=','11geVOzP','96loLzUI','21490ITSTHL','2930exEOrn','1002AxenFV','exports','get'];_0xe296=function(){return _0x1dfb0a;};return _0xe296();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x2698b5=_0x26ff;(function(_0xffc4e3,_0x5882db){const _0x37e76b=_0x26ff,_0x5be2cf=_0xffc4e3();while(!![]){try{const _0x116b3b=-parseInt(_0x37e76b(0x1ce))/0x1*(parseInt(_0x37e76b(0x1c9))/0x2)+parseInt(_0x37e76b(0x1c2))/0x3+-parseInt(_0x37e76b(0x1d0))/0x4*(-parseInt(_0x37e76b(0x1bd))/0x5)+-parseInt(_0x37e76b(0x1b9))/0x6*(-parseInt(_0x37e76b(0x1cd))/0x7)+parseInt(_0x37e76b(0x1bb))/0x8*(-parseInt(_0x37e76b(0x1c1))/0x9)+parseInt(_0x37e76b(0x1cb))/0xa*(-parseInt(_0x37e76b(0x1cf))/0xb)+parseInt(_0x37e76b(0x1cc))/0xc;if(_0x116b3b===_0x5882db)break;else _0x5be2cf['push'](_0x5be2cf['shift']());}catch(_0x402c16){_0x5be2cf['push'](_0x5be2cf['shift']());}}}(_0x3325,0x9d293));function _0x26ff(_0x511ffc,_0x39c7ed){const _0x332536=_0x3325();return _0x26ff=function(_0x26ff00,_0x1eed17){_0x26ff00=_0x26ff00-0x1b8;let _0x46623b=_0x332536[_0x26ff00];return _0x46623b;},_0x26ff(_0x511ffc,_0x39c7ed);}const e=require(_0x2698b5(0x1bc)),s=require(_0x2698b5(0x1b8)),r=require(_0x2698b5(0x1d1));function _0x3325(){const _0x5efb9f=['2524191GuMyne','./src/css/icons.css','copyFileAsync','promise','uiFramework','zmp-ui','./icons.css','265852xTuaTw','exports','40gxvPVs','16195800oRUxhx','2083151TOyobw','7aHuIeU','2944359sEnmxy','4lWerlj','exec-sh','path','6tOzhqO','zmp-framework','54880fkZEWp','../../utils/fs-extra','2359045LPIcRC','resolve','npm\x20install\x20zmp-framework@latest','npm\x20install\x20zmp-ui@latest','414hqPfSy'];_0x3325=function(){return _0x5efb9f;};return _0x3325();}async function i(_0x266986){const _0x56ddfd=_0x2698b5;if(_0x56ddfd(0x1ba)===_0x266986[_0x56ddfd(0x1c6)])e[_0x56ddfd(0x1c4)](s['resolve'](__dirname,_0x56ddfd(0x1c8)),s[_0x56ddfd(0x1be)](_0x266986['cwd'],_0x56ddfd(0x1c3))),await r[_0x56ddfd(0x1c5)](_0x56ddfd(0x1bf),!0x0);else{if(_0x56ddfd(0x1c7)!==_0x266986[_0x56ddfd(0x1c6)])return;await r[_0x56ddfd(0x1c5)](_0x56ddfd(0x1c0),!0x0);}}module[_0x2698b5(0x1ca)]=i;
|
package/migrate/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x5f59de=_0x141b;(function(_0xe1a3c8,_0x1ea5b7){const _0x6bf120=_0x141b,_0x26d7ea=_0xe1a3c8();while(!![]){try{const _0x2eb458=-parseInt(_0x6bf120(0x1f1))/0x1*(-parseInt(_0x6bf120(0x1dd))/0x2)+-parseInt(_0x6bf120(0x1f4))/0x3*(-parseInt(_0x6bf120(0x1fa))/0x4)+parseInt(_0x6bf120(0x1ef))/0x5+-parseInt(_0x6bf120(0x1f9))/0x6+parseInt(_0x6bf120(0x1da))/0x7*(-parseInt(_0x6bf120(0x1f2))/0x8)+-parseInt(_0x6bf120(0x1df))/0x9+-parseInt(_0x6bf120(0x1f3))/0xa*(-parseInt(_0x6bf120(0x1e9))/0xb);if(_0x2eb458===_0x1ea5b7)break;else _0x26d7ea['push'](_0x26d7ea['shift']());}catch(_0x2b4a35){_0x26d7ea['push'](_0x26d7ea['shift']());}}}(_0x3854,0x3ec27));const r=require(_0x5f59de(0x1f0)),e=require('../utils/log'),t=require(_0x5f59de(0x1d7));require('../utils/env');function _0x3854(){const _0x4491fd=['31mrCgWP','72iOsVgr','10dBAwmZ','529059JdLRWp','Migration\x20Done!','error','Migration\x20error!','statusStart','2569188fHzyKZ','4HJaLZW','exports','path','zmpConfig','bold','89558dZkOcc','./utils/migrate-react','statusError','18850cUgdyn','stderr','1564758AnXuNL','../config','(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)','\x20is\x20not\x20yet\x20supported','gray','log-symbols','statusDone','\x20💪','green','Migrating\x20Your\x20App\x20','89815huNImy','\x20Project\x20using\x20ZMP\x20','exit','framework','cwd','react','2487880xnIszw','chalk'];_0x3854=function(){return _0x4491fd;};return _0x3854();}const s=require(_0x5f59de(0x1e4)),o=require(_0x5f59de(0x1db)),i=require(_0x5f59de(0x1e0)),a=r[_0x5f59de(0x1e3)](_0x5f59de(0x1e1));function _0x141b(_0x3062ed,_0x34c9cf){const _0x385410=_0x3854();return _0x141b=function(_0x141b47,_0x3c7a8b){_0x141b47=_0x141b47-0x1d7;let _0x1c7b7f=_0x385410[_0x141b47];return _0x1c7b7f;},_0x141b(_0x3062ed,_0x34c9cf);}async function u(_0x31c79e={},_0x5ab21b,{exitOnError:_0x97ea65=!0x0,iconFile:_0x2f8c6e=null}={}){const _0x28af01=_0x5f59de;let _0x55e0dd=_0x31c79e['cwd']||process[_0x28af01(0x1ed)]();_0x5ab21b||(_0x5ab21b={'statusStart'(){},'statusDone'(){},'statusText'(){},'statusError'(){},'text'(){},'error'(){},'showOnUI'(){}}),_0x5ab21b[_0x28af01(0x1f8)](_0x28af01(0x1e8)+a);try{let _0xcf122f,_0x1a6b9e=require((_0xcf122f=i['filename'][_0x28af01(0x1d8)],t['join'](_0x55e0dd,_0xcf122f)));_0x28af01(0x1ee)===_0x1a6b9e[_0x28af01(0x1ec)]?await o(_0x31c79e):(_0x5ab21b['text'](s[_0x28af01(0x1f6)]+_0x28af01(0x1ea)+_0x1a6b9e['framework']+_0x28af01(0x1e2)),process[_0x28af01(0x1eb)](0x1)),_0x5ab21b[_0x28af01(0x1e5)](r[_0x28af01(0x1d9)][_0x28af01(0x1e7)](_0x28af01(0x1f5))+_0x28af01(0x1e6));}catch(_0x306ce5){_0x5ab21b[_0x28af01(0x1dc)](_0x28af01(0x1f7)),e['error'](_0x306ce5[_0x28af01(0x1de)]||_0x306ce5),_0x97ea65&&process[_0x28af01(0x1eb)](0x1);}}module[_0x5f59de(0x1fb)]=u;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x43a2dd=_0x934b;(function(_0x246370,_0xf3d097){const _0x3094af=_0x934b,_0x3c8e61=_0x246370();while(!![]){try{const _0x340fe6=-parseInt(_0x3094af(0x110))/0x1*(parseInt(_0x3094af(0x112))/0x2)+-parseInt(_0x3094af(0x114))/0x3+-parseInt(_0x3094af(0x10e))/0x4*(parseInt(_0x3094af(0x106))/0x5)+-parseInt(_0x3094af(0xfc))/0x6+-parseInt(_0x3094af(0x108))/0x7+-parseInt(_0x3094af(0x102))/0x8+parseInt(_0x3094af(0x10b))/0x9*(parseInt(_0x3094af(0xff))/0xa);if(_0x340fe6===_0xf3d097)break;else _0x3c8e61['push'](_0x3c8e61['shift']());}catch(_0x3c9ffb){_0x3c8e61['push'](_0x3c8e61['shift']());}}}(_0x2018,0x19854));const e=require(_0x43a2dd(0x111)),r=[{'type':_0x43a2dd(0x10f),'name':_0x43a2dd(0xfd),'message':_0x43a2dd(0x100),'choices':[{'name':'Version\x201\x20=>\x20Version\x202','value':_0x43a2dd(0x103)},{'name':_0x43a2dd(0x101),'value':_0x43a2dd(0x113)}]},{'type':'list','name':_0x43a2dd(0x10c),'message':_0x43a2dd(0x107),'when':_0x4180d1=>_0x43a2dd(0x113)===_0x4180d1[_0x43a2dd(0xfd)],'choices':[{'name':_0x43a2dd(0xfe),'value':_0x43a2dd(0xfe)},{'name':_0x43a2dd(0x109),'value':_0x43a2dd(0x109)},{'name':'Other','value':'other'}]}];function _0x934b(_0x5e1abb,_0x2f11e5){const _0x2018ea=_0x2018();return _0x934b=function(_0x934bb1,_0x4349a6){_0x934bb1=_0x934bb1-0xfc;let _0x9324fd=_0x2018ea[_0x934bb1];return _0x9324fd;},_0x934b(_0x5e1abb,_0x2f11e5);}function _0x2018(){const _0x239a07=['1068830EKKCxG','zmp-ui','prompt','16749WVQnXW','uiFramework','exports','388TWnTnj','list','51258RuwcMO','inquirer','4KQsvCp','iconsv3','286335pZqMnG','909984JlljTh','migrateVersion','zmp-framework','4540vrzHGl','What\x20version\x20do\x20you\x20want\x20to\x20migrate?','Icons\x20(fix\x20icon\x20not\x20displayed\x20in\x20iOS\x20v16+)','1011200rGQSHT','v1tov2','then','resolve','5755dgdfMd','Choose\x20which\x20framework\x20or\x20library\x20used\x20in\x20your\x20project'];_0x2018=function(){return _0x239a07;};return _0x2018();}module[_0x43a2dd(0x10d)]=function(){const _0x3f1f25=_0x43a2dd;return e[_0x3f1f25(0x10a)](r)[_0x3f1f25(0x104)](_0x11f1f8=>Promise[_0x3f1f25(0x105)](_0x11f1f8));};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x30c8fb=_0x1408;(function(_0x2bc67d,_0x7d7f74){const _0x47f500=_0x1408,_0x41e004=_0x2bc67d();while(!![]){try{const _0x393ad2=-parseInt(_0x47f500(0x17b))/0x1+-parseInt(_0x47f500(0x18c))/0x2*(parseInt(_0x47f500(0x17a))/0x3)+-parseInt(_0x47f500(0x182))/0x4+parseInt(_0x47f500(0x18f))/0x5*(parseInt(_0x47f500(0x183))/0x6)+parseInt(_0x47f500(0x188))/0x7+-parseInt(_0x47f500(0x18b))/0x8+-parseInt(_0x47f500(0x18a))/0x9*(-parseInt(_0x47f500(0x179))/0xa);if(_0x393ad2===_0x7d7f74)break;else _0x41e004['push'](_0x41e004['shift']());}catch(_0x42c702){_0x41e004['push'](_0x41e004['shift']());}}}(_0x4b4f,0x57a23));const e=require(_0x30c8fb(0x17c)),i=require(_0x30c8fb(0x181)),t=require('path'),s=require(_0x30c8fb(0x192)),r=require(_0x30c8fb(0x189));async function a(_0x598f00){const _0x315981=_0x30c8fb;let _0x2fbc26=e(_0x598f00);i[_0x315981(0x17f)](t[_0x315981(0x187)](_0x598f00[_0x315981(0x18e)],_0x315981(0x18d)),_0x2fbc26),i[_0x315981(0x184)](t[_0x315981(0x186)](__dirname,'../templates/v2/vite.config.js'),t[_0x315981(0x186)](_0x598f00[_0x315981(0x18e)],_0x315981(0x17e))),await s[_0x315981(0x17d)]('npm\x20install\x20vite\x20@vitejs/plugin-react-refresh\x20--save-dev',!0x0);}async function n(_0x158c66){const _0x5abc87=_0x30c8fb;switch(_0x158c66[_0x5abc87(0x190)]){case _0x5abc87(0x180):await a(_0x158c66);break;case _0x5abc87(0x191):await r(_0x158c66);}}module[_0x30c8fb(0x185)]=n;function _0x1408(_0x202bf6,_0x3a0e34){const _0x4b4f62=_0x4b4f();return _0x1408=function(_0x140848,_0x1746ff){_0x140848=_0x140848-0x179;let _0x38608c=_0x4b4f62[_0x140848];return _0x38608c;},_0x1408(_0x202bf6,_0x3a0e34);}function _0x4b4f(){const _0x57628e=['join','3257548SlBfVs','../icons/update-icon-v3','2085966CvNZRu','3222600FtIbMv','2UYgMyB','index.html','cwd','230855kEZBjJ','migrateVersion','iconsv3','exec-sh','10EcguHS','7377GRSRna','30164hoIFRW','../templates/v2/generate-index.react','promise','vite.config.js','writeFileSync','v1tov2','../../utils/fs-extra','1273128TPsKSk','54RLqYvA','copyFileAsync','exports','resolve'];_0x4b4f=function(){return _0x57628e;};return _0x4b4f();}
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x12773b=_0xc2fe;(function(_0x24571b,_0x4bc0e3){const _0x27ac62=_0xc2fe,_0x2542c1=_0x24571b();while(!![]){try{const _0x17a757=-parseInt(_0x27ac62(0xfd))/0x1*(parseInt(_0x27ac62(0xfa))/0x2)+parseInt(_0x27ac62(0xf8))/0x3+-parseInt(_0x27ac62(0xff))/0x4+parseInt(_0x27ac62(0xed))/0x5+parseInt(_0x27ac62(0xe6))/0x6*(-parseInt(_0x27ac62(0xeb))/0x7)+-parseInt(_0x27ac62(0xf7))/0x8*(-parseInt(_0x27ac62(0xf3))/0x9)+parseInt(_0x27ac62(0xfb))/0xa;if(_0x17a757===_0x4bc0e3)break;else _0x2542c1['push'](_0x2542c1['shift']());}catch(_0x4b5d1c){_0x2542c1['push'](_0x2542c1['shift']());}}}(_0x34ed,0xd920c));const {default:t}=require('axios'),e=require(_0x12773b(0xf1));function _0xc2fe(_0x52d737,_0x220988){const _0x34edb8=_0x34ed();return _0xc2fe=function(_0xc2fe60,_0x2401bc){_0xc2fe60=_0xc2fe60-0xe0;let _0x4b5046=_0x34edb8[_0xc2fe60];return _0x4b5046;},_0xc2fe(_0x52d737,_0x220988);}async function r(_0x168091,_0x3a932b={}){const _0x49ab0e=_0x12773b;let _0x5361c3=[];try{let _0x189df6=(await t({'url':_0x168091,'headers':{'Accept':_0x49ab0e(0xe0)}}))[_0x49ab0e(0xea)];new e()[_0x49ab0e(0xe8)](_0x189df6,_0x49ab0e(0xe3))[_0x49ab0e(0xe5)]('script')[_0x49ab0e(0xf0)](_0x3f0743=>{const _0x146985=_0x49ab0e;let _0x10286e=_0x3f0743[_0x146985(0xfc)](_0x146985(0xe7)),_0x229cf8=_0x3f0743[_0x146985(0xfc)]('type'),_0x3f878c=_0x3f0743[_0x146985(0xfc)]('data-skip-hr-config'),_0x3b8cd4=_0x3f0743['innerHTML'];null===_0x3f878c&&_0x5361c3[_0x146985(0xf2)]({'src':_0x10286e,'type':_0x229cf8,'innerHTML':_0x3b8cd4?_0x3b8cd4[_0x146985(0xf4)](_0x146985(0xfe),'from\x20\x22'+_0x3a932b['exposedUrl']+'/')['replaceAll'](_0x146985(0xec),_0x146985(0xf5)+_0x3a932b[_0x146985(0xe1)]+'/'):void 0x0});}),_0x5361c3[_0x49ab0e(0xf2)]({'src':_0x49ab0e(0xef),'type':'module'}),_0x5361c3[_0x49ab0e(0xf2)]({'id':_0x49ab0e(0xe4),'innerHTML':_0x49ab0e(0xe9)+_0x3a932b[_0x49ab0e(0xf9)]+'/target.js\x27;\x0a\x20\x20\x20\x20\x20\x20\x20\x20document.head.appendChild(script);\x0a\x20\x20\x20\x20\x20\x20\x20\x20window.BACKUP_URL\x20=\x20window.location.href;\x0a\x20\x20\x20\x20\x20\x20})()','type':_0x49ab0e(0xf6)});}catch(_0x3b03f0){console[_0x49ab0e(0xe2)](_0x3b03f0);}return{'listCSS':[],'listJS':_0x5361c3};}module[_0x12773b(0xee)]={'generateHrFromIndex':r};function _0x34ed(){const _0x19b991=['8244315qGoxZH','exports','/studio.module.js','forEach','dom-parser','push','7173lXwtrS','replaceAll','from\x20\x27','text/javascript','2264vSpJBh','4870074wqjArX','chiiUrl','800RzAlah','2150570AaKzNu','getAttribute','2879zMrirS','from\x20\x22/','5091184RcqYOW','text/html,application/xhtml+xml,application/xml','exposedUrl','warn','text/html','remote-debug-script','getElementsByTagName','42MFStOz','src','parseFromString','(function\x20()\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20var\x20script\x20=\x20document.createElement(\x27script\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20script.src=\x27','data','399077rJESRq','from\x20\x27/'];_0x34ed=function(){return _0x19b991;};return _0x34ed();}
|
package/start/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function _0x3182(_0x3cabb3,_0x10864f){const _0x123dce=_0x123d();return _0x3182=function(_0x3182ce,_0x4f2fbf){_0x3182ce=_0x3182ce-0x1f3;let _0x3fb4ea=_0x123dce[_0x3182ce];return _0x3fb4ea;},_0x3182(_0x3cabb3,_0x10864f);}const _0xeb2948=_0x3182;(function(_0x125008,_0x6200c){const _0x24d1a=_0x3182,_0x588187=_0x125008();while(!![]){try{const _0x8f8336=parseInt(_0x24d1a(0x265))/0x1+-parseInt(_0x24d1a(0x236))/0x2+-parseInt(_0x24d1a(0x24b))/0x3*(parseInt(_0x24d1a(0x20e))/0x4)+parseInt(_0x24d1a(0x23c))/0x5*(-parseInt(_0x24d1a(0x204))/0x6)+-parseInt(_0x24d1a(0x23e))/0x7*(parseInt(_0x24d1a(0x237))/0x8)+parseInt(_0x24d1a(0x20a))/0x9+parseInt(_0x24d1a(0x200))/0xa;if(_0x8f8336===_0x6200c)break;else _0x588187['push'](_0x588187['shift']());}catch(_0x2ea47f){_0x588187['push'](_0x588187['shift']());}}}(_0x123d,0xf3cf4));const e=require(_0xeb2948(0x263)),r=require(_0xeb2948(0x216)),t=require(_0xeb2948(0x21c)),o=require(_0xeb2948(0x248)),i=require(_0xeb2948(0x222)),{createServer:n}=require(_0xeb2948(0x214)),s=require(_0xeb2948(0x250)),{hri:a}=require('human-readable-ids'),l=require(_0xeb2948(0x24e)),c=require(_0xeb2948(0x1fc)),p=require(_0xeb2948(0x219)),d=require(_0xeb2948(0x219)),u=require(_0xeb2948(0x256)),{openTunnel:g}=require(_0xeb2948(0x261)),{deviceModeSetup:h}=require(_0xeb2948(0x259)),{generateHrFromIndex:f}=require('./generate-hr-config'),m=r('Starting\x20mini\x20app...');function _0x123d(){const _0x2c8816=['originalUrl','Zalo\x20Mini\x20App\x20dev\x20server\x20is\x20running\x20at:\x0a','headers','../utils/find-free-port','/hr.config.json','writeFileSync','../utils/constants','error','join','stringify','zbrowser://h5.zdn.vn','blue','localhost','/app-config.json','../utils/tunnel','reverse','chalk','listen','1450220YvkffA','/frame','stop','server','app-config.json','address','info','config','\x20browser.','appId','use','findIndex','port','../utils/env','Trying\x20reverse\x20socket\x20connection','adb\x20reverse\x20error:\x20','exit','41469510vJuIty','existsSync','previewOnZalo','(function\x20()\x20{\x20var\x20script\x20=\x20document.createElement(\x27script\x27);\x20script.src=\x27http://','426nagxWX','http://localhost:','\x22);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(import.meta.hot)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20import.meta.hot.on(\x22vite:beforeFullReload\x22,\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20window.location.href\x20=\x20window.BACKUP_URL;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ZJSBridge.callCustomAction(\x22action.ma.menu.reload\x22,\x20{},\x20()\x20=>\x20{});\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20throw\x20\x22(skipping\x20full\x20reload)\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20import.meta.hot.on(\x27zmp:close\x27,\x20(data)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ZJSBridge.callCustomAction(\x22action.window.close\x22,\x20{},\x20()\x20=>\x20{});\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20shownTip\x20=\x20false;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20window.onerror\x20=\x20function\x20(message,\x20url,\x20line,\x20column,\x20error)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(!error)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20console.error(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22An\x20uncaught\x20error\x20has\x20occurred,\x20but\x20the\x20detailed\x20error\x20message\x20cannot\x20be\x20displayed\x20due\x20to\x20the\x20cross-origin\x20policy.\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(!shownTip)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20console.warn(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22To\x20view\x20the\x20detailed\x20error\x20message,\x20you\x20can\x20try\x20one\x20of\x20the\x20following\x20methods:\x5cn\x5cn1.\x20Wrap\x20your\x20code\x20in\x20a\x20try-catch\x20block,\x20use\x20.catch\x20with\x20Promises,\x20or\x20use\x20<ErrorBoundary>\x20in\x20React\x20to\x20catch\x20the\x20detailed\x20error\x20object.\x5cn2.\x20Try\x20to\x20reproduce\x20the\x20issue\x20using\x20a\x20simulator.\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20shownTip\x20=\x20true;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20console.error(\x22[\x22\x20+\x20error.name\x20+\x20\x22]\x20\x22\x20+\x20error.message);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20catch\x20(error)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20console.error(error);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','https://h5.zdn.vn','logger','child_process','6308640GvXgZB','production','tcp:','application/json','92flePbR','module','TUNNEL_SERVER_HOST','spawn','Error\x20starting\x20project','toString','vite','remote-debug-script','ora','exports','iosHostName','../utils/fs-extra','middlewares','/target.js\x27;\x20document.body.appendChild(script);\x20})()','path','text','Google\x20Chrome','stderr','Zalo\x20Mini\x20App\x20dev\x20server\x20is\x20running\x20at:\x20','/zapps/','log-symbols','includes','0.0.0.0','mode','Remote\x20debugging\x20tool\x20is\x20running\x20at:\x20http://localhost:','cwd','end','Content-Type','bold','text/javascript','generate','red','splice','start','/?env=TESTING_LOCAL&clientIp=http://','\x20in\x20','yellow','stdout','random','ios','3444052VwBsIp','552BxuvMA','https://zalo.me/app/link/zapps/','httpServer','Access-Control-Allow-Origin','push','111595akIJtr','Can\x20not\x20start\x20remote\x20debug\x20server','142513CSzges','frame','statusError','adb','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20import\x20{\x20createHotContext\x20}\x20from\x20\x22/@vite/client\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20import.meta.hot\x20=\x20createHotContext(\x22','devices','listJS','/?env=TESTING_LOCAL&clientIp=','green','printUrls','qrcode-terminal','https://','readFileSync','76701AoxITr','development','vite.config.ts','../config','data','chii','Chromium-based','deviceMode'];_0x123d=function(){return _0x2c8816;};return _0x123d();}module[_0xeb2948(0x217)]=async(_0x16b07e={},_0x2200b3,{exitOnError:_0x394c75=!0x0}={})=>{const _0x29f768=_0xeb2948;_0x2200b3||(_0x2200b3={'statusStart'(){},'statusDone'(){},'statusError'(){},'text'(){},'error'(){}}),m[_0x29f768(0x22f)]();let _0x427c11=_0x16b07e[_0x29f768(0x227)]||process['cwd'](),_0x569b5c=_0x16b07e[_0x29f768(0x1f8)]||c['getEnv'](l['env'][_0x29f768(0x1f8)]),_0x497ff5=_0x16b07e[_0x29f768(0x202)],_0x4c1d16=_0x16b07e[_0x29f768(0x235)],_0x4ab47c=_0x16b07e[_0x29f768(0x218)],_0x3c9524=_0x16b07e[_0x29f768(0x23f)],_0x1ba2d3=_0x4c1d16?_0x4ab47c:_0x29f768(0x25f),_0x4844b7=_0x16b07e['port'],_0x5993e7=_0x4844b7-0x2,_0x108a32=_0x16b07e[_0x29f768(0x225)]||(_0x497ff5?_0x29f768(0x20b):_0x29f768(0x24c)),_0x36a69b=_0x16b07e[_0x29f768(0x252)];try{let _0x5bb199,_0x573200,_0x2baed7;if(_0x497ff5){let _0x84c53e=t[_0x29f768(0x25b)](_0x427c11,'hr.config.json'),_0x536225={'id':_0x29f768(0x215),'innerHTML':_0x29f768(0x203)+_0x1ba2d3+':'+_0x5993e7+_0x29f768(0x21b),'type':'text/javascript'};if(p[_0x29f768(0x201)](_0x84c53e)){let _0x4fe60e=p[_0x29f768(0x24a)](_0x84c53e),_0x700108=JSON['parse'](_0x4fe60e),_0x435f20=_0x700108[_0x29f768(0x244)];Array['isArray'](_0x435f20)||(_0x435f20=[]);let _0x3cb23d=_0x435f20[_0x29f768(0x1fa)](_0x54ad78=>_0x29f768(0x215)===_0x54ad78['id']);_0x3cb23d<=0x0||_0x435f20[_0x29f768(0x22e)](_0x3cb23d,0x1),_0x435f20[_0x29f768(0x23b)](_0x536225),_0x700108[_0x29f768(0x244)]=_0x435f20,p[_0x29f768(0x258)](_0x84c53e,JSON['stringify'](_0x700108,void 0x0,0x4));}else p[_0x29f768(0x258)](_0x84c53e,JSON['stringify']({'listCSS':[],'listJS':[{'src':'/src/app.js','type':_0x29f768(0x20f),'async':!0x0},_0x536225]},void 0x0,0x4));}let _0xefe267='vite.config.js';if(d[_0x29f768(0x201)](t['join'](_0x427c11,_0x29f768(0x24d)))&&(_0xefe267=_0x29f768(0x24d)),_0x36a69b){_0x573200=a[_0x29f768(0x234)](),_0x2baed7=await u(),s[_0x29f768(0x22f)]({'port':_0x2baed7});let _0x491aa0=await g(_0x2baed7),_0x1485e2=_0x573200+'.'+h[_0x29f768(0x210)];_0x5bb199=await n({'configFile':t[_0x29f768(0x25b)](_0x427c11,_0xefe267),'root':_0x427c11,'mode':_0x108a32,'define':{'process.env.NODE_ENV':JSON[_0x29f768(0x25c)](_0x108a32),'process.env.previewOnZalo':!0x0},'server':{'port':_0x4844b7,'host':_0x29f768(0x25f),'origin':'https://'+_0x1485e2,'base':_0x29f768(0x221)+_0x569b5c+'/','hmr':{'host':_0x1485e2,'clientPort':0x1bb,'protocol':'wss'},'https':!0x1},'plugins':[{'name':'hr-config-plugin','configureServer'(_0x3a5131){const _0x42d72c=_0x29f768;let _0x5a174c=(_0x18b79e,_0x273096)=>{const _0x11b675=_0x3182;[_0x11b675(0x207),_0x11b675(0x25d)][_0x11b675(0x223)](_0x18b79e[_0x11b675(0x255)]['origin'])&&_0x273096['setHeader'](_0x11b675(0x23a),_0x18b79e['headers']['origin']);};_0x3a5131[_0x42d72c(0x21a)]['use'](_0x42d72c(0x260),(_0xf894f,_0x5e899a,_0x141897)=>'/app-config.json'===_0xf894f[_0x42d72c(0x253)]?(_0x5e899a['setHeader']('Content-Type','application/javascript'),_0x5a174c(_0xf894f,_0x5e899a),_0x5e899a[_0x42d72c(0x228)](p[_0x42d72c(0x24a)](t[_0x42d72c(0x25b)](_0x427c11,_0x42d72c(0x1f3))))):_0x141897()),_0x3a5131['middlewares'][_0x42d72c(0x1f9)](_0x42d72c(0x257),async(_0x18cf20,_0x155f06)=>{const _0x33dac3=_0x42d72c;_0x155f06['setHeader']('Content-Type',_0x33dac3(0x20d)),_0x5a174c(_0x18cf20,_0x155f06);let _0x3a3d5f=await f(_0x33dac3(0x205)+_0x5db50d[_0x33dac3(0x239)][_0x33dac3(0x1f4)]()[_0x33dac3(0x1fb)],{'chiiUrl':_0x491aa0,'exposedUrl':_0x33dac3(0x249)+_0x573200+'.'+h[_0x33dac3(0x210)]});_0x155f06[_0x33dac3(0x228)](JSON['stringify'](_0x3a3d5f));}),_0x3a5131[_0x42d72c(0x21a)][_0x42d72c(0x1f9)]('/studio.module.js',async(_0x1fec65,_0x5639ad)=>{const _0x43bae8=_0x42d72c;_0x5639ad['setHeader'](_0x43bae8(0x229),_0x43bae8(0x22b)),_0x5a174c(_0x1fec65,_0x5639ad),_0x5639ad['end'](_0x43bae8(0x242)+_0x573200+_0x43bae8(0x206));});}}]});}else _0x5bb199=await n({'configFile':t['join'](_0x427c11,_0xefe267),'root':_0x427c11,'mode':_0x108a32,'define':{'process.env.NODE_ENV':JSON[_0x29f768(0x25c)](_0x108a32),'process.env.previewOnZalo':_0x497ff5},'server':{'port':_0x3c9524?_0x4844b7-0x1:_0x4844b7,..._0x497ff5?{'host':_0x29f768(0x224),'hmr':{'host':_0x1ba2d3,'protocol':'ws'}}:{}}});let _0x5db50d=await _0x5bb199[_0x29f768(0x264)]();if(_0x497ff5)try{s['start']({'port':_0x5993e7}),_0x2200b3[_0x29f768(0x21d)](e[_0x29f768(0x246)](i[_0x29f768(0x1f5)]+'\x20'+e[_0x29f768(0x22a)](_0x29f768(0x226)+_0x5993e7))),_0x4c1d16||require(_0x29f768(0x209))['spawn'](_0x29f768(0x241),[_0x29f768(0x262),_0x29f768(0x20c)+_0x5993e7,_0x29f768(0x20c)+_0x5993e7])[_0x29f768(0x21f)]['on'](_0x29f768(0x24f),function(_0x352717){const _0x2c9d69=_0x29f768;_0x2200b3['error'](_0x352717[_0x2c9d69(0x213)]());});}catch(_0x30e4dc){_0x2200b3[_0x29f768(0x21d)](i['info']+'\x20'+e[_0x29f768(0x22d)](_0x29f768(0x23d)));}else{if(!_0x36a69b){if(_0x3c9524){let _0x1335ac=await n({'configFile':!0x1,'root':__dirname+_0x29f768(0x266),'server':{'port':_0x5db50d['httpServer'][_0x29f768(0x1f4)]()['port']+0x1,'strictPort':!0x0,'open':!0x0}});m['stop'](),await _0x1335ac[_0x29f768(0x264)](),(0x0,_0x1335ac['config']['logger'][_0x29f768(0x1f5)])(e['green'](_0x29f768(0x254))),_0x1335ac['printUrls']();}else m[_0x29f768(0x267)](),(0x0,_0x5bb199[_0x29f768(0x1f6)][_0x29f768(0x208)][_0x29f768(0x1f5)])(e[_0x29f768(0x246)](_0x29f768(0x254))),_0x5bb199[_0x29f768(0x247)]();}}return m[_0x29f768(0x267)](),await new Promise(async()=>{const _0x3e7190=_0x29f768;if(_0x497ff5){let _0x32fc51=_0x3e7190(0x238)+_0x569b5c+_0x3e7190(0x230)+_0x1ba2d3+':'+_0x5db50d[_0x3e7190(0x1f6)][_0x3e7190(0x268)][_0x3e7190(0x1fb)];o[_0x3e7190(0x22c)](_0x32fc51,{'small':!0x0},function(_0x1eb534){const _0x1f98dd=_0x3e7190;if(_0x2200b3['text'](e[_0x1f98dd(0x246)](i[_0x1f98dd(0x1f5)]+'\x20'+e[_0x1f98dd(0x22a)](_0x1f98dd(0x220)+_0x1ba2d3+':'+_0x5db50d[_0x1f98dd(0x1f6)][_0x1f98dd(0x268)][_0x1f98dd(0x1fb)]))),_0x2200b3[_0x1f98dd(0x21d)](e['green'](i['info']+'\x20'+e['bold'](_0x1f98dd(0x1fd)))),_0x4c1d16){let _0x191245=i[_0x1f98dd(0x1f5)]+'\x20'+e[_0x1f98dd(0x22a)]('Scan\x20the\x20QR\x20code\x20with\x20Zalo\x20app:\x0a'+_0x1eb534);_0x2200b3[_0x1f98dd(0x21d)](_0x191245);}else{let _0x2b0bc5=require(_0x1f98dd(0x209))[_0x1f98dd(0x211)](_0x1f98dd(0x241),[_0x1f98dd(0x262),_0x1f98dd(0x20c)+_0x5db50d[_0x1f98dd(0x1f6)][_0x1f98dd(0x268)]['port'],_0x1f98dd(0x20c)+_0x5db50d[_0x1f98dd(0x1f6)]['server'][_0x1f98dd(0x1fb)]]);_0x2b0bc5['stderr']['on']('data',function(_0xe1067e){const _0xa9380=_0x1f98dd;_0x2200b3[_0xa9380(0x25a)](_0xe1067e[_0xa9380(0x213)]());}),_0x2b0bc5['on'](_0x1f98dd(0x1ff),function(_0x3b24cf){const _0x1e117d=_0x1f98dd;if(0x0!==_0x3b24cf)throw Error(_0x1e117d(0x1fe)+_0x3b24cf);{let _0x52f412=i[_0x1e117d(0x1f5)]+'\x20'+e[_0x1e117d(0x22a)]('Scan\x20the\x20QR\x20code\x20with\x20Zalo\x20app:\x0a'+_0x1eb534);_0x2200b3[_0x1e117d(0x21d)](_0x52f412),require('child_process')[_0x1e117d(0x211)]('adb',[_0x1e117d(0x243)])[_0x1e117d(0x233)]['on'](_0x1e117d(0x24f),function(_0x4ea7e3){const _0x5a5bcb=_0x1e117d;_0x2200b3[_0x5a5bcb(0x21d)](''+e[_0x5a5bcb(0x232)](_0x4ea7e3['toString']()));});}});}});}if(_0x36a69b){let _0x46d8d0=_0x5db50d[_0x3e7190(0x239)][_0x3e7190(0x1f4)]()[_0x3e7190(0x1fb)],_0xbfbc80=await g(_0x46d8d0,_0x573200),_0x4084fc='https://zalo.me/app/link/zapps/'+_0x569b5c+_0x3e7190(0x245)+_0xbfbc80;o[_0x3e7190(0x22c)](_0x4084fc,{'small':!0x0},function(_0x45878d){const _0x40079e=_0x3e7190;let _0x3c11fb=i['info']+'\x20'+e[_0x40079e(0x22a)]('Scan\x20the\x20QR\x20code\x20with\x20Zalo\x20app:\x0a'+_0x45878d);_0x2200b3[_0x40079e(0x21d)](_0x3c11fb),_0x2200b3[_0x40079e(0x21d)](i[_0x40079e(0x1f5)]+'\x20'+e[_0x40079e(0x22a)]('To\x20inspect\x20your\x20app,\x20open:\x20http://localhost:'+_0x2baed7+_0x40079e(0x231)+e[_0x40079e(0x246)](_0x40079e(0x21e))+'\x20or\x20a\x20'+e[_0x40079e(0x25e)](_0x40079e(0x251))+_0x40079e(0x1f7)));});}});}catch(_0x50c032){_0x2200b3[_0x29f768(0x240)](_0x29f768(0x212)),_0x2200b3['error'](_0x50c032),_0x2200b3['error'](_0x50c032[_0x29f768(0x21f)]||_0x50c032),_0x394c75&&process[_0x29f768(0x1ff)](0x1);return;}};
|
|
1
|
+
'use strict';const _0x54c847=_0x573a;(function(_0x4f442c,_0xa7f2eb){const _0x1f27f8=_0x573a,_0x5df9b2=_0x4f442c();while(!![]){try{const _0x4d3c5c=-parseInt(_0x1f27f8(0x1ea))/0x1*(parseInt(_0x1f27f8(0x1cb))/0x2)+-parseInt(_0x1f27f8(0x1f8))/0x3+parseInt(_0x1f27f8(0x1d0))/0x4*(parseInt(_0x1f27f8(0x1b4))/0x5)+-parseInt(_0x1f27f8(0x1b7))/0x6+-parseInt(_0x1f27f8(0x1a9))/0x7+-parseInt(_0x1f27f8(0x20e))/0x8*(parseInt(_0x1f27f8(0x1b0))/0x9)+parseInt(_0x1f27f8(0x1ae))/0xa;if(_0x4d3c5c===_0xa7f2eb)break;else _0x5df9b2['push'](_0x5df9b2['shift']());}catch(_0x4d50b0){_0x5df9b2['push'](_0x5df9b2['shift']());}}}(_0x3078,0x246be));function _0x573a(_0x3d1c13,_0x1d6c25){const _0x3078b8=_0x3078();return _0x573a=function(_0x573a0b,_0x2c9648){_0x573a0b=_0x573a0b-0x1a6;let _0x1626df=_0x3078b8[_0x573a0b];return _0x1626df;},_0x573a(_0x3d1c13,_0x1d6c25);}const e=require(_0x54c847(0x1c8)),r=require('ora'),t=require(_0x54c847(0x1f2)),o=require(_0x54c847(0x216)),i=require(_0x54c847(0x204)),{createServer:n}=require(_0x54c847(0x1a7)),s=require('chii'),{hri:a}=require('human-readable-ids'),l=require(_0x54c847(0x1e9)),c=require(_0x54c847(0x1e1)),p=require('../utils/fs-extra'),d=require('../utils/fs-extra'),u=require(_0x54c847(0x212)),{openTunnel:g}=require(_0x54c847(0x1f1)),{deviceModeSetup:h}=require(_0x54c847(0x1ce)),{generateHrFromIndex:f}=require(_0x54c847(0x1d4)),m=r(_0x54c847(0x1ff));function _0x3078(){const _0x4220e5=['chalk','stop','isArray','90TszFFh','exit','devices','../utils/constants','reverse','8NDTQFt','random','yellow','/hr.config.json','./generate-hr-config','application/javascript','getEnv','localhost','deviceMode','listen','module','start','port','middlewares','spawn','stderr','server','../utils/env','text/javascript','setHeader','remote-debug-script','includes','readFileSync','/frame','httpServer','../config','2791lhvmYr','address','Trying\x20reverse\x20socket\x20connection','stringify','use','Access-Control-Allow-Origin','Can\x20not\x20start\x20remote\x20debug\x20server','../utils/tunnel','path','iosHostName','listJS','production','text','Scan\x20the\x20QR\x20code\x20with\x20Zalo\x20app:\x0a','817503AatXEk','vite.config.ts','end','logger','config','error','generate','Starting\x20mini\x20app...','/app-config.json','adb\x20reverse\x20error:\x20','wss','\x20browser.','log-symbols','join','\x22);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(import.meta.hot)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20import.meta.hot.on(\x22vite:beforeFullReload\x22,\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20window.location.href\x20=\x20window.BACKUP_URL;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ZJSBridge.callCustomAction(\x22action.ma.menu.reload\x22,\x20{},\x20()\x20=>\x20{});\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20throw\x20\x22(skipping\x20full\x20reload)\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20import.meta.hot.on(\x27zmp:close\x27,\x20(data)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ZJSBridge.callCustomAction(\x22action.window.close\x22,\x20{},\x20()\x20=>\x20{});\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20shownTip\x20=\x20false;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20window.onerror\x20=\x20function\x20(message,\x20url,\x20line,\x20column,\x20error)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(!error)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20console.error(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22An\x20uncaught\x20error\x20has\x20occurred,\x20but\x20the\x20detailed\x20error\x20message\x20cannot\x20be\x20displayed\x20due\x20to\x20the\x20cross-origin\x20policy.\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(!shownTip)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20console.warn(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22To\x20view\x20the\x20detailed\x20error\x20message,\x20you\x20can\x20try\x20one\x20of\x20the\x20following\x20methods:\x5cn\x5cn1.\x20Wrap\x20your\x20code\x20in\x20a\x20try-catch\x20block,\x20use\x20.catch\x20with\x20Promises,\x20or\x20use\x20<ErrorBoundary>\x20in\x20React\x20to\x20catch\x20the\x20detailed\x20error\x20object.\x5cn2.\x20Try\x20to\x20reproduce\x20the\x20issue\x20using\x20a\x20simulator.\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20shownTip\x20=\x20true;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20console.error(\x22[\x22\x20+\x20error.name\x20+\x20\x22]\x20\x22\x20+\x20error.message);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20catch\x20(error)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20console.error(error);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Error\x20starting\x20project','Chromium-based','/?env=TESTING_LOCAL&clientIp=','app-config.json','printUrls','Zalo\x20Mini\x20App\x20dev\x20server\x20is\x20running\x20at:\x0a','Remote\x20debugging\x20tool\x20is\x20running\x20at:\x20http://localhost:','136IDGJzB','TUNNEL_SERVER_HOST','mode','Content-Type','../utils/find-free-port','cwd','appId','application/json','qrcode-terminal','parse','vite','push','962122SeKzuS','vite.config.js','originalUrl','/src/app.js','child_process','6181550oSMaEh','adb','89415kcDrAO','data','https://','To\x20inspect\x20your\x20app,\x20open:\x20http://localhost:','681485qQJhYJ','zbrowser://h5.zdn.vn','bold','222780gJyOqH','headers','origin','(function\x20()\x20{\x20var\x20script\x20=\x20document.createElement(\x27script\x27);\x20script.src=\x27http://','hr-config-plugin','tcp:','existsSync','/target.js\x27;\x20document.body.appendChild(script);\x20})()','development','toString','previewOnZalo','info','green','frame','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20import\x20{\x20createHotContext\x20}\x20from\x20\x22/@vite/client\x22;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20import.meta.hot\x20=\x20createHotContext(\x22','writeFileSync','splice'];_0x3078=function(){return _0x4220e5;};return _0x3078();}module['exports']=async(_0x4faaf9={},_0x5683c1,{exitOnError:_0x5a4c1a=!0x0}={})=>{const _0x41c058=_0x54c847;_0x5683c1||(_0x5683c1={'statusStart'(){},'statusDone'(){},'statusError'(){},'text'(){},'error'(){}}),m[_0x41c058(0x1db)]();let _0x395d95=_0x4faaf9[_0x41c058(0x213)]||process[_0x41c058(0x213)](),_0x4cf538=_0x4faaf9[_0x41c058(0x214)]||c[_0x41c058(0x1d6)](l['env'][_0x41c058(0x214)]),_0x47b72b=_0x4faaf9[_0x41c058(0x1c1)],_0x2b6082=_0x4faaf9['ios'],_0x303c29=_0x4faaf9[_0x41c058(0x1f3)],_0x923711=_0x4faaf9[_0x41c058(0x1c4)],_0x4a33d8=_0x2b6082?_0x303c29:_0x41c058(0x1d7),_0x76cc17=_0x4faaf9[_0x41c058(0x1dc)],_0x1d8e5d=_0x76cc17-0x2,_0x44920e=_0x4faaf9[_0x41c058(0x210)]||(_0x47b72b?_0x41c058(0x1f5):_0x41c058(0x1bf)),_0x50bae3=_0x4faaf9[_0x41c058(0x1d8)];try{let _0xbed404,_0x3261e0,_0x216a25;if(_0x47b72b){let _0x1585ae=t[_0x41c058(0x205)](_0x395d95,'hr.config.json'),_0x16cc44={'id':_0x41c058(0x1e4),'innerHTML':_0x41c058(0x1ba)+_0x4a33d8+':'+_0x1d8e5d+_0x41c058(0x1be),'type':'text/javascript'};if(p['existsSync'](_0x1585ae)){let _0x4d3a04=p[_0x41c058(0x1e6)](_0x1585ae),_0x5c529d=JSON[_0x41c058(0x1a6)](_0x4d3a04),_0xb98f5a=_0x5c529d[_0x41c058(0x1f4)];Array[_0x41c058(0x1ca)](_0xb98f5a)||(_0xb98f5a=[]);let _0x40c416=_0xb98f5a['findIndex'](_0x5679e7=>_0x41c058(0x1e4)===_0x5679e7['id']);_0x40c416<=0x0||_0xb98f5a[_0x41c058(0x1c7)](_0x40c416,0x1),_0xb98f5a[_0x41c058(0x1a8)](_0x16cc44),_0x5c529d[_0x41c058(0x1f4)]=_0xb98f5a,p[_0x41c058(0x1c6)](_0x1585ae,JSON[_0x41c058(0x1ed)](_0x5c529d,void 0x0,0x4));}else p[_0x41c058(0x1c6)](_0x1585ae,JSON[_0x41c058(0x1ed)]({'listCSS':[],'listJS':[{'src':_0x41c058(0x1ac),'type':_0x41c058(0x1da),'async':!0x0},_0x16cc44]},void 0x0,0x4));}let _0x494d58=_0x41c058(0x1aa);if(d[_0x41c058(0x1bd)](t[_0x41c058(0x205)](_0x395d95,_0x41c058(0x1f9)))&&(_0x494d58='vite.config.ts'),_0x50bae3){_0x3261e0=a[_0x41c058(0x1d1)](),_0x216a25=await u(),s[_0x41c058(0x1db)]({'port':_0x216a25});let _0x4de27c=await g(_0x216a25),_0x445e59=_0x3261e0+'.'+h[_0x41c058(0x20f)];_0xbed404=await n({'configFile':t[_0x41c058(0x205)](_0x395d95,_0x494d58),'root':_0x395d95,'mode':_0x44920e,'define':{'process.env.NODE_ENV':JSON[_0x41c058(0x1ed)](_0x44920e),'process.env.previewOnZalo':!0x0},'server':{'port':_0x76cc17,'host':_0x41c058(0x1d7),'origin':_0x41c058(0x1b2)+_0x445e59,'base':'/zapps/'+_0x4cf538+'/','hmr':{'host':_0x445e59,'clientPort':0x1bb,'protocol':_0x41c058(0x202)},'https':!0x1},'plugins':[{'name':_0x41c058(0x1bb),'configureServer'(_0x369461){const _0x57d045=_0x41c058;let _0x3ed697=(_0x89cee0,_0x479dbf)=>{const _0x186508=_0x573a;['https://h5.zdn.vn',_0x186508(0x1b5)][_0x186508(0x1e5)](_0x89cee0['headers'][_0x186508(0x1b9)])&&_0x479dbf[_0x186508(0x1e3)](_0x186508(0x1ef),_0x89cee0[_0x186508(0x1b8)]['origin']);};_0x369461[_0x57d045(0x1dd)][_0x57d045(0x1ee)](_0x57d045(0x200),(_0x11f281,_0x4c4e00,_0x5a6896)=>_0x57d045(0x200)===_0x11f281[_0x57d045(0x1ab)]?(_0x4c4e00['setHeader'](_0x57d045(0x211),_0x57d045(0x1d5)),_0x3ed697(_0x11f281,_0x4c4e00),_0x4c4e00['end'](p[_0x57d045(0x1e6)](t[_0x57d045(0x205)](_0x395d95,_0x57d045(0x20a))))):_0x5a6896()),_0x369461[_0x57d045(0x1dd)]['use'](_0x57d045(0x1d3),async(_0x1adaf4,_0x47fa98)=>{const _0x178b48=_0x57d045;_0x47fa98[_0x178b48(0x1e3)](_0x178b48(0x211),_0x178b48(0x215)),_0x3ed697(_0x1adaf4,_0x47fa98);let _0x4a394a=await f('http://localhost:'+_0x4db3ef['httpServer'][_0x178b48(0x1eb)]()[_0x178b48(0x1dc)],{'chiiUrl':_0x4de27c,'exposedUrl':_0x178b48(0x1b2)+_0x3261e0+'.'+h['TUNNEL_SERVER_HOST']});_0x47fa98['end'](JSON['stringify'](_0x4a394a));}),_0x369461[_0x57d045(0x1dd)]['use']('/studio.module.js',async(_0x171dd8,_0x3a9b45)=>{const _0x16cd17=_0x57d045;_0x3a9b45[_0x16cd17(0x1e3)](_0x16cd17(0x211),_0x16cd17(0x1e2)),_0x3ed697(_0x171dd8,_0x3a9b45),_0x3a9b45[_0x16cd17(0x1fa)](_0x16cd17(0x1c5)+_0x3261e0+_0x16cd17(0x206));});}}]});}else _0xbed404=await n({'configFile':t['join'](_0x395d95,_0x494d58),'root':_0x395d95,'mode':_0x44920e,'define':{'process.env.NODE_ENV':JSON['stringify'](_0x44920e),'process.env.previewOnZalo':_0x47b72b},'server':{'port':_0x923711?_0x76cc17-0x1:_0x76cc17,..._0x47b72b?{'host':'0.0.0.0','hmr':{'host':_0x4a33d8,'protocol':'ws'}}:{}}});let _0x4db3ef=await _0xbed404[_0x41c058(0x1d9)]();if(_0x47b72b)try{s[_0x41c058(0x1db)]({'port':_0x1d8e5d}),_0x5683c1['text'](e[_0x41c058(0x1c3)](i[_0x41c058(0x1c2)]+'\x20'+e['bold'](_0x41c058(0x20d)+_0x1d8e5d))),_0x2b6082||require(_0x41c058(0x1ad))[_0x41c058(0x1de)](_0x41c058(0x1af),[_0x41c058(0x1cf),_0x41c058(0x1bc)+_0x1d8e5d,_0x41c058(0x1bc)+_0x1d8e5d])['stderr']['on']('data',function(_0x3e1cb5){const _0xf64454=_0x41c058;_0x5683c1[_0xf64454(0x1fd)](_0x3e1cb5['toString']());});}catch(_0x2e0608){_0x5683c1[_0x41c058(0x1f6)](i['info']+'\x20'+e['red'](_0x41c058(0x1f0)));}else{if(!_0x50bae3){if(_0x923711){let _0x4e7e9c=await n({'configFile':!0x1,'root':__dirname+_0x41c058(0x1e7),'server':{'port':_0x4db3ef[_0x41c058(0x1e8)]['address']()[_0x41c058(0x1dc)]+0x1,'strictPort':!0x0,'open':!0x0}});m[_0x41c058(0x1c9)](),await _0x4e7e9c['listen'](),(0x0,_0x4e7e9c[_0x41c058(0x1fc)][_0x41c058(0x1fb)][_0x41c058(0x1c2)])(e[_0x41c058(0x1c3)](_0x41c058(0x20c))),_0x4e7e9c[_0x41c058(0x20b)]();}else m[_0x41c058(0x1c9)](),(0x0,_0xbed404[_0x41c058(0x1fc)][_0x41c058(0x1fb)]['info'])(e[_0x41c058(0x1c3)](_0x41c058(0x20c))),_0xbed404[_0x41c058(0x20b)]();}}return m[_0x41c058(0x1c9)](),await new Promise(async()=>{const _0x5775af=_0x41c058;if(_0x47b72b){let _0x5c0e32='https://zalo.me/app/link/zapps/'+_0x4cf538+'/?env=TESTING_LOCAL&clientIp=http://'+_0x4a33d8+':'+_0x4db3ef[_0x5775af(0x1fc)][_0x5775af(0x1e0)]['port'];o[_0x5775af(0x1fe)](_0x5c0e32,{'small':!0x0},function(_0x57f17c){const _0xb736d2=_0x5775af;if(_0x5683c1[_0xb736d2(0x1f6)](e[_0xb736d2(0x1c3)](i[_0xb736d2(0x1c2)]+'\x20'+e[_0xb736d2(0x1b6)]('Zalo\x20Mini\x20App\x20dev\x20server\x20is\x20running\x20at:\x20'+_0x4a33d8+':'+_0x4db3ef[_0xb736d2(0x1fc)]['server'][_0xb736d2(0x1dc)]))),_0x5683c1['text'](e['green'](i[_0xb736d2(0x1c2)]+'\x20'+e[_0xb736d2(0x1b6)](_0xb736d2(0x1ec)))),_0x2b6082){let _0x4caf1a=i['info']+'\x20'+e[_0xb736d2(0x1b6)](_0xb736d2(0x1f7)+_0x57f17c);_0x5683c1[_0xb736d2(0x1f6)](_0x4caf1a);}else{let _0x5a7893=require(_0xb736d2(0x1ad))[_0xb736d2(0x1de)](_0xb736d2(0x1af),[_0xb736d2(0x1cf),'tcp:'+_0x4db3ef[_0xb736d2(0x1fc)][_0xb736d2(0x1e0)][_0xb736d2(0x1dc)],_0xb736d2(0x1bc)+_0x4db3ef[_0xb736d2(0x1fc)]['server'][_0xb736d2(0x1dc)]]);_0x5a7893[_0xb736d2(0x1df)]['on'](_0xb736d2(0x1b1),function(_0x2f4786){const _0x4c968d=_0xb736d2;_0x5683c1[_0x4c968d(0x1fd)](_0x2f4786[_0x4c968d(0x1c0)]());}),_0x5a7893['on'](_0xb736d2(0x1cc),function(_0x37683f){const _0x5ac969=_0xb736d2;if(0x0!==_0x37683f)throw Error(_0x5ac969(0x201)+_0x37683f);{let _0x1b6899=i['info']+'\x20'+e[_0x5ac969(0x1b6)]('Scan\x20the\x20QR\x20code\x20with\x20Zalo\x20app:\x0a'+_0x57f17c);_0x5683c1[_0x5ac969(0x1f6)](_0x1b6899),require('child_process')[_0x5ac969(0x1de)](_0x5ac969(0x1af),[_0x5ac969(0x1cd)])['stdout']['on'](_0x5ac969(0x1b1),function(_0x2f4a3f){const _0x16511b=_0x5ac969;_0x5683c1[_0x16511b(0x1f6)](''+e[_0x16511b(0x1d2)](_0x2f4a3f['toString']()));});}});}});}if(_0x50bae3){let _0x5b2c83=_0x4db3ef['httpServer'][_0x5775af(0x1eb)]()[_0x5775af(0x1dc)],_0x4adcc5=await g(_0x5b2c83,_0x3261e0),_0x1f5919='https://zalo.me/app/link/zapps/'+_0x4cf538+_0x5775af(0x209)+_0x4adcc5;o[_0x5775af(0x1fe)](_0x1f5919,{'small':!0x0},function(_0x57fe41){const _0x5e7818=_0x5775af;let _0x5368dc=i[_0x5e7818(0x1c2)]+'\x20'+e[_0x5e7818(0x1b6)]('Scan\x20the\x20QR\x20code\x20with\x20Zalo\x20app:\x0a'+_0x57fe41);_0x5683c1['text'](_0x5368dc),_0x5683c1[_0x5e7818(0x1f6)](i[_0x5e7818(0x1c2)]+'\x20'+e[_0x5e7818(0x1b6)](_0x5e7818(0x1b3)+_0x216a25+'\x20in\x20'+e[_0x5e7818(0x1c3)]('Google\x20Chrome')+'\x20or\x20a\x20'+e['blue'](_0x5e7818(0x208))+_0x5e7818(0x203)));});}});}catch(_0x309c9f){_0x5683c1['statusError'](_0x41c058(0x207)),_0x5683c1['error'](_0x309c9f),_0x5683c1['error'](_0x309c9f[_0x41c058(0x1df)]||_0x309c9f),_0x5a4c1a&&process[_0x41c058(0x1cc)](0x1);return;}};
|