xcube
Version:
Alipay Cube Tools
3 lines (2 loc) • 3.22 kB
JavaScript
;const _0x2f71dc=_0x7981;(function(_0x348c8e,_0x22f3cc){const _0x515727=_0x7981,_0x4d0a51=_0x348c8e();while(!![]){try{const _0x319699=parseInt(_0x515727(0x13a))/0x1*(parseInt(_0x515727(0x129))/0x2)+parseInt(_0x515727(0x135))/0x3*(-parseInt(_0x515727(0x136))/0x4)+parseInt(_0x515727(0x12f))/0x5+-parseInt(_0x515727(0x126))/0x6+-parseInt(_0x515727(0x12e))/0x7*(parseInt(_0x515727(0x12d))/0x8)+-parseInt(_0x515727(0x13c))/0x9*(parseInt(_0x515727(0x12a))/0xa)+-parseInt(_0x515727(0x12b))/0xb*(-parseInt(_0x515727(0x11f))/0xc);if(_0x319699===_0x22f3cc)break;else _0x4d0a51['push'](_0x4d0a51['shift']());}catch(_0x1aaeda){_0x4d0a51['push'](_0x4d0a51['shift']());}}}(_0x406c,0x76c8b));var __awaiter=this&&this[_0x2f71dc(0x124)]||function(_0x47d13a,_0x610b83,_0x37bbd6,_0x5d96a4){return new(_0x37bbd6||(_0x37bbd6=Promise))(function(_0x164b02,_0x1ad32b){const _0x1991f2=_0x7981;function _0x1f85e8(_0x2fdb28){const _0x51b991=_0x7981;try{_0x21ea12(_0x5d96a4[_0x51b991(0x133)](_0x2fdb28));}catch(_0x522901){_0x1ad32b(_0x522901);}}function _0x11d067(_0x1ea7a9){try{_0x21ea12(_0x5d96a4['throw'](_0x1ea7a9));}catch(_0x43464e){_0x1ad32b(_0x43464e);}}function _0x21ea12(_0x20db8f){const _0x2922f3=_0x7981;var _0x3791f3;_0x20db8f['done']?_0x164b02(_0x20db8f[_0x2922f3(0x121)]):(_0x3791f3=_0x20db8f['value'],_0x3791f3 instanceof _0x37bbd6?_0x3791f3:new _0x37bbd6(function(_0x2cb078){_0x2cb078(_0x3791f3);}))['then'](_0x1f85e8,_0x11d067);}_0x21ea12((_0x5d96a4=_0x5d96a4[_0x1991f2(0x11d)](_0x47d13a,_0x610b83||[]))[_0x1991f2(0x133)]());});};Object[_0x2f71dc(0x128)](exports,_0x2f71dc(0x125),{'value':!0x0}),exports[_0x2f71dc(0x130)]=void 0x0;function _0x406c(){const _0xac8c91=['next','dist/app.zip','957921SDnEHR','4Dksryp','cuckoo','join','Unable\x20to\x20find\x20Cube\x20compilation\x20product\x20:\x20','76808pCRHsW','path','476802uBbGTw','apply','app.json','25262676DYyiCt','stringify','value','broadcase','../server','__awaiter','__esModule','3957216OYboUM','existsSync','defineProperty','8cSswCn','20JTNPdh','11DtmgAT','readFileSync','8ilpQEs','6744591kpNejq','611980iAUmQE','preview','show_project_cuckoo','toString'];_0x406c=function(){return _0xac8c91;};return _0x406c();}const path_1=require(_0x2f71dc(0x13b)),fs_1=require('fs'),server_1=require(_0x2f71dc(0x123));function preview(_0x5ec5ce,_0xd70bcd=!0x1){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x3d80f9=_0x7981,_0x238734=(0x0,path_1[_0x3d80f9(0x138)])(_0x5ec5ce,_0x3d80f9(0x134));if(!(0x0,fs_1[_0x3d80f9(0x127)])(_0x238734))throw Error(_0x3d80f9(0x139)+_0x238734);const _0x4ef297=JSON['parse']((0x0,fs_1[_0x3d80f9(0x12c)])((0x0,path_1[_0x3d80f9(0x138)])(_0x5ec5ce,_0x3d80f9(0x11e)))[_0x3d80f9(0x132)]());yield(0x0,server_1[_0x3d80f9(0x122)])(JSON[_0x3d80f9(0x120)]({'key':_0x3d80f9(0x131),'payload':{'name':(0x0,path_1['basename'])(_0x5ec5ce),'type':_0x3d80f9(0x137),'appId':_0x4ef297['id'],'source':(0x0,server_1['fillFileRemoteUrl'])(_0x238734)}}));});}function _0x7981(_0x139ca4,_0x59d57b){const _0x406c76=_0x406c();return _0x7981=function(_0x7981d9,_0x5e407a){_0x7981d9=_0x7981d9-0x11d;let _0x381dc9=_0x406c76[_0x7981d9];return _0x381dc9;},_0x7981(_0x139ca4,_0x59d57b);}exports[_0x2f71dc(0x130)]=preview;
//# sourceMappingURL=cuckooapp.js.map