1 line
8.5 KiB
JavaScript
1 line
8.5 KiB
JavaScript
'use strict';const _0xffe8c4=_0x2891;(function(_0x1d548e,_0x4f3e42){const _0x529d=_0x2891,_0x491484=_0x1d548e();while(!![]){try{const _0x5ef820=-parseInt(_0x529d(0xf0))/0x1*(parseInt(_0x529d(0x117))/0x2)+-parseInt(_0x529d(0x107))/0x3*(-parseInt(_0x529d(0x119))/0x4)+-parseInt(_0x529d(0x118))/0x5*(parseInt(_0x529d(0x112))/0x6)+-parseInt(_0x529d(0xee))/0x7+-parseInt(_0x529d(0x108))/0x8*(-parseInt(_0x529d(0x110))/0x9)+parseInt(_0x529d(0x115))/0xa*(-parseInt(_0x529d(0x113))/0xb)+parseInt(_0x529d(0xf2))/0xc;if(_0x5ef820===_0x4f3e42)break;else _0x491484['push'](_0x491484['shift']());}catch(_0x20a16b){_0x491484['push'](_0x491484['shift']());}}}(_0x390c,0x2c0d9));function _0x55c7(){const _0x4c720=_0x2891,_0xe422e=[_0x4c720(0x10a),_0x4c720(0xe6),_0x4c720(0xf1),_0x4c720(0xef),'join','fs-extra',_0x4c720(0xf4),_0x4c720(0xfa),'plugin',_0x4c720(0xf9),_0x4c720(0x10c),'__importDefault','./http','i18n/en.js','../builtin','1814601ZimcsF',_0x4c720(0xfe),_0x4c720(0x11d),_0x4c720(0xf6),_0x4c720(0xfc),_0x4c720(0xfd),_0x4c720(0xe7),_0x4c720(0xe3),_0x4c720(0x109),_0x4c720(0x104),_0x4c720(0xec),'download','upgrade','service-',_0x4c720(0xe5),_0x4c720(0x11c),_0x4c720(0x100),'default','downloading','mkdirs','installed',_0x4c720(0xf8),_0x4c720(0xe8),_0x4c720(0x106),'author',_0x4c720(0x111),_0x4c720(0x10e),_0x4c720(0x114),_0x4c720(0x10b),_0x4c720(0xf7),'version',_0x4c720(0x10d),_0x4c720(0xeb),_0x4c720(0x102),_0x4c720(0x105)];return _0x55c7=function(){return _0xe422e;},_0x55c7();}const _0x16598c=_0x5a06;(function(_0x3a542f,_0x2091c4){const _0x1a5707=_0x2891,_0x6f1a9b=_0x5a06,_0x50d677=_0x3a542f();while(!![]){try{const _0x4d8709=-parseInt(_0x6f1a9b(0x99))/0x1+-parseInt(_0x6f1a9b(0x8f))/0x2+parseInt(_0x6f1a9b(0x8b))/0x3+parseInt(_0x6f1a9b(0x7a))/0x4+-parseInt(_0x6f1a9b(0x7c))/0x5+parseInt(_0x6f1a9b(0x95))/0x6*(parseInt(_0x6f1a9b(0x7e))/0x7)+-parseInt(_0x6f1a9b(0x79))/0x8*(-parseInt(_0x6f1a9b(0x7b))/0x9);if(_0x4d8709===_0x2091c4)break;else _0x50d677[_0x1a5707(0xf3)](_0x50d677['shift']());}catch(_0x37339c){_0x50d677[_0x1a5707(0xf3)](_0x50d677[_0x1a5707(0x11b)]());}}}(_0x55c7,0xd5b04));function _0x5a06(_0x436697,_0x2a65d1){const _0x27a3f2=_0x55c7();return _0x5a06=function(_0x16cc18,_0x4824eb){_0x16cc18=_0x16cc18-0x69;let _0x7658dd=_0x27a3f2[_0x16cc18];return _0x7658dd;},_0x5a06(_0x436697,_0x2a65d1);}var __importDefault=this&&this[_0x16598c(0x87)]||function(_0x99277b){return _0x99277b&&_0x99277b['__esModule']?_0x99277b:{'default':_0x99277b};};function _0x390c(){const _0x5baca8=['i18n/en.js','2202284RqmEJJ','sendMsg','34iBeCze','7blvsVt','11052240uMvwiC','push','name','unlinkSync','.zip','./util','defineProperty','readJson','require','join','1859810PXxnes','fail','catch','replace','i18n/zh.js','upgrade','5325692EUANag','default','open-popup','4491xcyKCS','getServiceHomePath','45585yNbotR','4848HcrVjH','./file','7084960AjndFz','registerI18n','unzip','basename','main','status','2781tnAnWE','builder','78XxRvYZ','21417YwRxRR','progress','1210KpjOpm','./editor','4570cYUcUL','138740FnYNFg','16OBeUjq','getLang','shift','path','then','__esModule','popup','match','826589DWKcrb','getServicePluginInfo','existsSync','contents','package.json','service-','32352aKRRQo','567048bJbziu'];_0x390c=function(){return _0x5baca8;};return _0x390c();}function _0x2891(_0x3f3b6e,_0x276f44){const _0x390c54=_0x390c();return _0x2891=function(_0x2891c3,_0x123eaa){_0x2891c3=_0x2891c3-0xe3;let _0x4c79cb=_0x390c54[_0x2891c3];return _0x4c79cb;},_0x2891(_0x3f3b6e,_0x276f44);}Object[_0x16598c(0x6e)](exports,_0xffe8c4(0x11e),{'value':!0x0});const fs_extra_1=require(_0x16598c(0x81)),path_1=require(_0x16598c(0x9a)),file_1=__importDefault(require(_0x16598c(0x93))),editor_1=__importDefault(require(_0xffe8c4(0x116))),util_1=__importDefault(require(_0x16598c(0x76))),http_1=__importDefault(require(_0x16598c(0x88)));exports[_0x16598c(0x6a)]={'pluginExists':function(_0x3cfc6d){const _0xe7d371=_0xffe8c4,_0x227002=_0x16598c;return(0x0,fs_extra_1[_0xe7d371(0xe7)])((0x0,path_1[_0xe7d371(0xfb)])(editor_1[_0x227002(0x6a)][_0xe7d371(0x106)](),_0x3cfc6d[_0xe7d371(0xff)](_0xe7d371(0xea),'')))||(0x0,fs_extra_1[_0xe7d371(0xe7)])((0x0,path_1[_0xe7d371(0xfb)])(_0x227002(0x8a),_0x3cfc6d));},'getServicePluginInfo':function(_0x3fa41b){const _0x36f62a=_0xffe8c4,_0x50967a=_0x16598c;let _0x54582b=(0x0,path_1[_0x50967a(0x80)])(editor_1[_0x50967a(0x6a)][_0x36f62a(0x106)](),_0x3fa41b[_0x36f62a(0xff)](_0x50967a(0x98),''));(0x0,fs_extra_1[_0x50967a(0x91)])(_0x54582b)||(_0x54582b=(0x0,path_1[_0x50967a(0x80)])(__dirname,_0x50967a(0x8a),_0x3fa41b));let _0x5cbf89=(0x0,path_1[_0x50967a(0x80)])(_0x54582b,_0x36f62a(0xe9));if(!(0x0,fs_extra_1[_0x50967a(0x91)])(_0x5cbf89))return;let _0x2a890f=file_1[_0x36f62a(0x103)][_0x50967a(0x85)](_0x5cbf89);if(_0x2a890f[_0x50967a(0x82)]!==_0x50967a(0x98)+(0x0,path_1[_0x50967a(0x78)])(_0x54582b)&&_0x2a890f['name']!==(0x0,path_1[_0x50967a(0x78)])(_0x54582b))return;let _0x145b01='';if(_0x2a890f[_0x50967a(0x97)]&&(0x0,fs_extra_1[_0x50967a(0x91)])((0x0,path_1[_0x50967a(0x80)])(_0x54582b,_0x2a890f[_0x36f62a(0x101)]))){let _0x20044a=util_1[_0x50967a(0x6a)][_0x50967a(0x83)](_0x54582b,_0x2a890f[_0x36f62a(0x101)]);_0x145b01='zh'===editor_1[_0x36f62a(0x103)][_0x36f62a(0x11a)]()?_0x20044a['zh']:_0x20044a['en'];}return{'path':_0x54582b,'name':_0x2a890f[_0x50967a(0x82)],'version':_0x2a890f[_0x50967a(0x77)],'author':_0x2a890f[_0x50967a(0x71)],'contents':_0x2a890f[_0x50967a(0x6f)],'builder':_0x2a890f[_0x50967a(0x72)],'upgrade':_0x145b01};},'installPlugin':function(_0x2d4d13,_0x52c1b6,_0x46cf06){const _0x59b58d=_0xffe8c4,_0x395e17=_0x16598c;let _0x376cec=editor_1[_0x395e17(0x6a)][_0x395e17(0x70)](),_0x424c5b=(0x0,path_1[_0x395e17(0x80)])(editor_1[_0x395e17(0x6a)]['getCreatorHomePath'](),_0x395e17(0x96));!(0x0,fs_extra_1[_0x395e17(0x91)])(_0x376cec)&&file_1[_0x395e17(0x6a)][_0x395e17(0x6c)](_0x376cec),!(0x0,fs_extra_1[_0x395e17(0x91)])(_0x424c5b)&&file_1[_0x59b58d(0x103)][_0x395e17(0x6c)](_0x424c5b);let _0x36524a=(0x0,path_1[_0x395e17(0x80)])(_0x424c5b,_0x2d4d13+_0x395e17(0x8e)),_0x440658=0x0;return new Promise((_0x309aa5,_0x25c123)=>{const _0x338457=_0x59b58d,_0x5b21de=_0x395e17;let _0x336762=(_0x39d638=_0x5b21de(0x90))=>{_0x46cf06&&_0x46cf06(_0x39d638,!0x0),_0x25c123(_0x39d638);};if(!_0x52c1b6[_0x338457(0xe4)](/^(http|https):\/\/[^\s]*.zip$/))return _0x336762();http_1[_0x5b21de(0x6a)][_0x5b21de(0x96)](_0x52c1b6,_0x36524a,(_0x13773f,_0x123c07)=>{const _0x203121=_0x338457,_0x863aff=_0x5b21de;if(_0x13773f||null===_0x123c07)return _0x336762();let _0xa24625=editor_1[_0x863aff(0x6a)]['tr'](_0x863aff(0x6b))+'\x20'+_0x123c07[_0x863aff(0x74)]+'%';if(_0x440658!==_0x123c07[_0x863aff(0x74)]&&(_0x440658=_0x123c07[_0x863aff(0x74)],_0x46cf06&&_0x46cf06(_0xa24625,!0x1)),'complete'===_0x123c07[_0x203121(0x10f)]){if(0x64!==_0x123c07[_0x203121(0x114)])return _0x336762();file_1[_0x863aff(0x6a)][_0x863aff(0x86)](_0x36524a,_0x376cec)[_0x863aff(0x8d)](()=>{const _0x20a671=_0x203121,_0x1bbd43=_0x863aff;(0x0,fs_extra_1[_0x1bbd43(0x91)])(_0x36524a)&&(0x0,fs_extra_1[_0x20a671(0xf5)])(_0x36524a),_0x46cf06&&_0x46cf06(editor_1[_0x1bbd43(0x6a)]['tr'](_0x1bbd43(0x6d)),!0x0),_0x309aa5(!0x0);})[_0x863aff(0x8c)](()=>_0x336762());}});});},'openPopup':function(_0x2b9cad,_0x5df323){const _0x3ea37d=_0x16598c;var _0x21235d,_0x1e73cf;let _0x53a3f3=this[_0x3ea37d(0x7d)](_0x2b9cad);void 0x0!==_0x53a3f3&&(null===(_0x1e73cf=null===(_0x21235d=_0x53a3f3[_0x3ea37d(0x6f)])||void 0x0===_0x21235d?void 0x0:_0x21235d[_0x3ea37d(0x92)])||void 0x0===_0x1e73cf?void 0x0:_0x1e73cf[_0x3ea37d(0x73)])&&editor_1[_0x3ea37d(0x6a)][_0x3ea37d(0x7f)](editor_1[_0x3ea37d(0x6a)][_0x3ea37d(0x84)],_0x3ea37d(0x94),_0x2b9cad,_0x5df323);},'closePopup':function(_0x5196d0){const _0x205f01=_0xffe8c4,_0x492800=_0x16598c;var _0x1fff6c,_0x5f1677;let _0xf126c5=this['getServicePluginInfo'](_0x5196d0);void 0x0!==_0xf126c5&&(null===(_0x5f1677=null===(_0x1fff6c=_0xf126c5[_0x492800(0x6f)])||void 0x0===_0x1fff6c?void 0x0:_0x1fff6c['popup'])||void 0x0===_0x5f1677?void 0x0:_0x5f1677[_0x205f01(0x10e)])&&editor_1[_0x492800(0x6a)][_0x492800(0x7f)](editor_1[_0x492800(0x6a)][_0x492800(0x84)],'close-popup',_0x5196d0);},'registerI18n':function(_0x2e0ab7){const _0x46581b=_0xffe8c4,_0x3a422f=_0x16598c;let _0x29d0f0=this[_0x3a422f(0x7d)](_0x2e0ab7);void 0x0!==_0x29d0f0&&((0x0,fs_extra_1[_0x3a422f(0x91)])((0x0,path_1[_0x3a422f(0x80)])(_0x29d0f0[_0x3a422f(0x9a)],_0x3a422f(0x69)))&&editor_1[_0x3a422f(0x6a)][_0x46581b(0x10b)]('zh',_0x2e0ab7,util_1[_0x3a422f(0x6a)][_0x3a422f(0x83)](_0x29d0f0[_0x3a422f(0x9a)],_0x3a422f(0x69))),(0x0,fs_extra_1[_0x3a422f(0x91)])((0x0,path_1[_0x3a422f(0x80)])(_0x29d0f0[_0x46581b(0x11c)],_0x46581b(0xed)))&&editor_1[_0x3a422f(0x6a)][_0x3a422f(0x75)]('en',_0x2e0ab7,util_1[_0x46581b(0x103)][_0x46581b(0xfa)](_0x29d0f0[_0x3a422f(0x9a)],_0x3a422f(0x89))));}}; |