1 Star 0 Fork 69

zhourx1129/app脚本

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
app_wytk.js 39.51 KB
一键复制 编辑 原始数据 按行查看 历史
soy 提交于 2022-03-12 04:56 . 微娱推客
/*
软件名称:微娱推客
项目注册地址(微信识别):https://gitee.com/soy-tool/app-script/raw/master/picture/wytk.jpg
必要变量:
变量名 soy_wytk_data
变量值 token&UA
注释:抓包 https://lm.wy.run/api/sign/index 在的链接 请求头找token和user-agent(即UA)
多个号用 # 或 @ 或 换行 隔开
cron "26/5 10,13 * * *"
脚本地址:https://gitee.com/soy-tool/app-script/raw/master/app_wytk.js
*/
const $ = new Env('【微娱推客】版本:22/02/26_0');
const notify = $.isNode() ? require('./sendNotify') : '';
var _0xodI='jsjiami.com.v6',_0xodI_=['_0xodI'],_0x29d5=[_0xodI,'\x63\x72\x79\x70\x74\x6f\x2d\x6a\x73','\x6c\x6f\x67','\x0a\u3010\x73\x6f\x79\u811a\u672c\u6587\u4ef6\u514d\u8d23\u58f0\u660e\u3011\uff1a\x0a\x2d\x2d\x2d\u811a\u672c\u6587\u4ef6\u53ea\u7528\u4e8e\u5174\u8da3\u4ea4\u6d41\x0a\x2d\x2d\x2d\u811a\u672c\u6587\u4ef6\u4efb\u4f55\u4eba\u4e0d\u5f97\u7528\u4e8e\u5546\u4e1a\u4ee5\u53ca\u975e\u6cd5\u7528\u9014\x0a\x2d\x2d\x2d\u811a\u672c\u6587\u4ef6\u4e0b\u8f7d\u8bd5\u7528\u540e\x32\x34\u5c0f\u65f6\u5185\u81ea\u884c\u5220\u9664\x0a\x2d\x2d\x2d\u56e0\u4f7f\u7528\u811a\u672c\u6587\u4ef6\u9020\u6210\u4f7f\u7528\u8005\u4ee5\u53ca\u4efb\u4f55\u7f51\u7ad9\u5e73\u53f0\u7684\u4e00\u5207\u635f\u5931\u7686\u7531\u4f7f\u7528\u8005\u627f\u62c5\x0a\x2d\x2d\x2d\u811a\u672c\u6587\u4ef6\u5982\u6709\u4e0d\u614e\u88ab\u7834\u89e3\u6216\u4fee\u6539\u7686\u6709\u7834\u89e3\u6216\u4fee\u6539\u8005\u627f\u62c5\x0a\x2d\x2d\x2d\u5982\u4e0d\u63a5\u53d7\u6b64\u6761\u6b3e\u8bf7\u7acb\u5373\u5220\u9664\u811a\u672c\u6587\u4ef6','\x69\x73\x4e\x6f\x64\x65','\x65\x6e\x76','\x73\x6f\x79\x5f\x77\x79\x74\x6b\x5f\x64\x61\x74\x61','\x0a\u3010\x73\x6f\x79\u811a\u672c\u63d0\u793a\u3011\uff1a\u672a\u586b\u5199\u76f8\u5e94\u53d8\u91cf\x20\x73\x6f\x79\x5f\x77\x79\x74\x6b\x5f\x64\x61\x74\x61','\x69\x6e\x64\x65\x78\x4f\x66','\x73\x70\x6c\x69\x74','\x0a\x3d\x3d\x3d\x20\u811a\u672c\u6267\u884c\x20\x2d\x20\u5317\u4eac\u65f6\u95f4\uff1a','\x67\x65\x74\x54\x69\x6d\x65','\x67\x65\x74\x54\x69\x6d\x65\x7a\x6f\x6e\x65\x4f\x66\x66\x73\x65\x74','\x74\x6f\x4c\x6f\x63\x61\x6c\x65\x53\x74\x72\x69\x6e\x67','\x20\x3d\x3d\x3d\x0a','\x3d\x3d\x3d\u3010\u5171\x20','\x6c\x65\x6e\x67\x74\x68','\x20\u4e2a\u8d26\u53f7\u3011\x3d\x3d\x3d\x0a','\x4d\x6f\x7a\x69\x6c\x6c\x61\x2f\x35\x2e\x30\x20\x28\x4c\x69\x6e\x75\x78\x3b\x20\x41\x6e\x64\x72\x6f\x69\x64\x20\x38\x2e\x31\x3b\x20\x50\x41\x52\x2d\x41\x4c\x30\x30\x20\x42\x75\x69\x6c\x64\x2f\x48\x55\x41\x57\x45\x49\x50\x41\x52\x2d\x41\x4c\x30\x30\x3b\x20\x77\x76\x29\x20\x41\x70\x70\x6c\x65\x57\x65\x62\x4b\x69\x74\x2f\x35\x33\x37\x2e\x33\x36\x20\x28\x4b\x48\x54\x4d\x4c\x2c\x20\x6c\x69\x6b\x65\x20\x47\x65\x63\x6b\x6f\x29\x20\x56\x65\x72\x73\x69\x6f\x6e\x2f\x34\x2e\x30\x20\x43\x68\x72\x6f\x6d\x65\x2f\x35\x37\x2e\x30\x2e\x32\x39\x38\x37\x2e\x31\x33\x32\x20\x4d\x51\x51\x42\x72\x6f\x77\x73\x65\x72\x2f\x36\x2e\x32\x20\x54\x42\x53\x2f\x30\x34\x34\x33\x30\x34\x20\x6e\x61\x6d\x65\x20\x53\x61\x66\x61\x72\x69\x2f\x35\x33\x37\x2e\x33\x36\x20\x4d\x69\x63\x72\x6f\x4d\x65\x73\x73\x65\x6e\x67\x65\x72\x2f\x36\x2e\x37\x2e\x33\x2e\x31\x33\x36\x30\x28\x30\x78\x32\x36\x30\x37\x30\x33\x33\x33\x29','\x69\x6e\x64\x65\x78','\x73\x65\x6e\x64\x4e\x6f\x74\x69\x66\x79','\x6e\x61\x6d\x65','\x63\x61\x74\x63\x68','\x6c\x6f\x67\x45\x72\x72','\x66\x69\x6e\x61\x6c\x6c\x79','\x64\x6f\x6e\x65','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x61\x70\x69\x2e\x77\x79\x74\x6b\x31\x36\x38\x38\x2e\x63\x6f\x6d\x2f\x61\x70\x69\x2f\x76\x31\x2f\x69\x6e\x76\x65\x73\x74\x6f\x72\x2f','\x0a\u5f00\u59cb\u3010\u7b2c\x20','\x20\u4e2a\u8d26\u53f7\u4efb\u52a1\u3011','\x73\x69\x67\x6e\x2f\x69\x6e\x64\x65\x78','\x70\x6f\x73\x74','\x0a\u3010\x73\x6f\x79\u811a\u672c\u63d0\u793a\x2d\x2d\x2d\u8d26\u53f7\x20','\x20\u7b7e\u5230\u72b6\u6001\u3011\x3a\x20\u7f51\u7edc\u8bf7\u6c42\u5931\u8d25\x2c\u4f60\u7684\x69\x70\u65e0\u6cd5\u8bbf\u95ee\u5e73\u53f0\u670d\u52a1\u5668','\x70\x61\x72\x73\x65','\x63\x6f\x64\x65','\x64\x61\x74\x61','\x73\x63\x6f\x72\x65','\x74\x6f\x64\x61\x79\x5f\x63\x6f\x75\x6e\x74','\x74\x6f\x64\x61\x79\x5f\x66\x61\x6e\x73\x5f\x63\x6f\x69\x6e','\x6c\x6f\x67\x69\x6e\x5f\x73\x74\x61\x74\x75\x73','\x20\u7b7e\u5230\u72b6\u6001\u3011\x3a\x20\u4eca\u65e5\u7b7e\u5230\u5df2\u4e0a\u9650','\x20\u7b7e\u5230\u72b6\u6001\u3011\x3a\x20\x74\x6f\x6b\x65\x6e\u5df2\u8fc7\u671f','\x20\u7b7e\u5230\u72b6\u6001\u3011\x3a\x20','\x6d\x73\x67','\x73\x69\x67\x6e\x2f\x75\x73\x65\x72\x53\x69\x67\x6e\x49\x6e','\x20\u7b7e\u5230\u3011\x3a\x20\u7f51\u7edc\u8bf7\u6c42\u5931\u8d25\x2c\u4f60\u7684\x69\x70\u65e0\u6cd5\u8bbf\u95ee\u5e73\u53f0\u670d\u52a1\u5668','\x20\u7b7e\u5230\u3011\x3a\x20','\x75\x73\x65\x72\x2f\x75\x73\x65\x72\x49\x6e\x66\x6f','\x20\u7528\u6237\u4fe1\u606f\u3011\x3a\x20\u7f51\u7edc\u8bf7\u6c42\u5931\u8d25\x2c\u4f60\u7684\x69\x70\u65e0\u6cd5\u8bbf\u95ee\u5e73\u53f0\u670d\u52a1\u5668','\x20\u7528\u6237\u4fe1\u606f\u3011\x3a\x20\x0a\x2d\x2d\x2d\u7528\u6237\u6635\u79f0\uff1a','\x6e\x69\x63\x6b\x6e\x61\x6d\x65','\x0a\x2d\x2d\x2d\u7528\u6237\x49\x44\uff1a','\x0a\x2d\x2d\x2d\u5f53\u524d\u79ef\u5206\uff1a','\x0a\x2d\x2d\x2d\u5f53\u524d\u4f59\u989d\uff1a','\x6d\x6f\x6e\x65\x79','\x20\u7528\u6237\u4fe1\u606f\u3011\x3a\x20','\x75\x73\x65\x72\x2f\x77\x69\x74\x68\x50\x6f\x73\x74','\x61\x6d\x6f\x75\x6e\x74\x3d\x31','\x20\u63d0\u73b0\u3011\x3a\x20\u63d0\u73b0\x20\x31\x20\u5143\u6210\u529f','\x20\u63d0\u73b0\u3011\x3a\x20','\x73\x69\x67\x6e\x2f\x63\x68\x65\x63\x6b\x42\x61\x6e\x6e\x65\x72\x43\x6f\x6e\x74\x65\x6e\x72','\x70\x6c\x61\x74\x66\x6f\x72\x6d\x5f\x74\x79\x70\x65\x3d\x31','\x20\u83b7\u53d6\u7b7e\u5230\u6587\u7ae0\u3011\x3a\x20\u7f51\u7edc\u8bf7\u6c42\u5931\u8d25\x2c\u4f60\u7684\x69\x70\u65e0\u6cd5\u8bbf\u95ee\u5e73\u53f0\u670d\u52a1\u5668','\x20\u83b7\u53d6\u7b7e\u5230\u6587\u7ae0\u3011\x3a\x20','\x61\x63\x74\x69\x76\x69\x66\x79\x5f\x6e\x6f\x74\x5f\x61\x64\x5f\x6e\x6f\x74\x69\x63\x65','\x73\x69\x67\x6e\x2f\x67\x65\x74\x42\x61\x6e\x6e\x65\x72\x42\x61\x63\x6b','\x69\x64\x3d','\x26\x74\x79\x70\x65\x3d\x31\x26\x70\x6c\x61\x74\x66\x6f\x72\x6d\x5f\x74\x79\x70\x65\x3d\x31','\x20\u6d4f\u89c8\u6587\u7ae0\u5956\u52b1\u3011\x3a\x20\u7f51\u7edc\u8bf7\u6c42\u5931\u8d25\x2c\u4f60\u7684\x69\x70\u65e0\u6cd5\u8bbf\u95ee\u5e73\u53f0\u670d\u52a1\u5668','\x20\u6d4f\u89c8\u6587\u7ae0\u5956\u52b1\u3011\x3a\x20\u83b7\u5f97\x20','\x6e\x75\x6d','\x20\u79ef\u5206','\x20\u6d4f\u89c8\u6587\u7ae0\u5956\u52b1\u3011\x3a\x20','\x41\x45\x53','\x65\x6e\x63\x72\x79\x70\x74','\x65\x6e\x63','\x55\x74\x66\x38','\x6d\x6f\x64\x65','\x43\x42\x43','\x70\x61\x64','\x50\x6b\x63\x73\x37','\x74\x6f\x53\x74\x72\x69\x6e\x67','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x6c\x6d\x2e\x77\x79\x2e\x72\x75\x6e\x2f\x61\x70\x69\x2f','\x6c\x6d\x2e\x77\x79\x2e\x72\x75\x6e','\x6b\x65\x65\x70\x2d\x61\x6c\x69\x76\x65','\x75\x74\x66\x2d\x38','\x61\x70\x70\x6c\x69\x63\x61\x74\x69\x6f\x6e\x2f\x78\x2d\x77\x77\x77\x2d\x66\x6f\x72\x6d\x2d\x75\x72\x6c\x65\x6e\x63\x6f\x64\x65\x64','\x67\x7a\x69\x70\x2c\x63\x6f\x6d\x70\x72\x65\x73\x73\x2c\x62\x72\x2c\x64\x65\x66\x6c\x61\x74\x65','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x73\x65\x72\x76\x69\x63\x65\x77\x65\x63\x68\x61\x74\x2e\x63\x6f\x6d\x2f\x77\x78\x30\x37\x31\x36\x34\x38\x62\x63\x35\x62\x36\x63\x39\x33\x36\x39\x2f\x33\x2f\x70\x61\x67\x65\x2d\x66\x72\x61\x6d\x65\x2e\x68\x74\x6d\x6c','\x67\x65\x74\x46\x75\x6c\x6c\x59\x65\x61\x72','\x67\x65\x74\x4d\x6f\x6e\x74\x68','\x67\x65\x74\x44\x61\x74\x65','\x67\x65\x74\x44\x61\x79','\x20\u661f\u671f','\u65e5\u4e00\u4e8c\u4e09\u56db\u4e94\u516d','\x63\x68\x61\x72\x41\x74','\x67\x65\x74\x48\x6f\x75\x72\x73','\x67\x65\x74\x4d\x69\x6e\x75\x74\x65\x73','\x67\x65\x74\x53\x65\x63\x6f\x6e\x64\x73','\x67\x65\x74\x4d\x69\x6c\x6c\x69\x73\x65\x63\x6f\x6e\x64\x73','\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74','\x73\x75\x62\x73\x74\x72','\x72\x65\x70\x6c\x61\x63\x65','\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65','\x74\x6f\x4c\x6f\x77\x65\x72\x43\x61\x73\x65','\x6a\x44\x6e\x44\x73\x6a\x69\x61\x6e\x64\x79\x47\x6d\x6e\x69\x2e\x63\x6f\x67\x6d\x2e\x76\x36\x62\x58\x4f\x4b\x70\x3d\x3d'];function _0xee38(_0x2dcc7b,_0x5033b3){_0x2dcc7b=~~'0x'['concat'](_0x2dcc7b['slice'](0x0));var _0x15b114=_0x29d5[_0x2dcc7b];return _0x15b114;};(function(_0xed6cd5,_0x27a618){var _0x12c783=0x0;for(_0x27a618=_0xed6cd5['shift'](_0x12c783>>0x2);_0x27a618&&_0x27a618!==(_0xed6cd5['pop'](_0x12c783>>0x3)+'')['replace'](/[DnDndyGngbXOKp=]/g,'');_0x12c783++){_0x12c783=_0x12c783^0xd6d4e;}}(_0x29d5,_0xee38));const crypto=require(_0xee38('0'));let app_soy_wytk_data=[],soy_wytk_UA='';console[_0xee38('1')](_0xee38('2'));!(async()=>{if($[_0xee38('3')]()){if(!process[_0xee38('4')][_0xee38('5')]){console[_0xee38('1')](_0xee38('6'));return;}if(process[_0xee38('4')][_0xee38('5')]&&process[_0xee38('4')][_0xee38('5')][_0xee38('7')]('\x0a')>-0x1){app_soy_wytk_data=process[_0xee38('4')][_0xee38('5')][_0xee38('8')]('\x0a');}else if(process[_0xee38('4')][_0xee38('5')]&&process[_0xee38('4')][_0xee38('5')][_0xee38('7')]('\x23')>-0x1){app_soy_wytk_data=process[_0xee38('4')][_0xee38('5')][_0xee38('8')]('\x23');}else if(process[_0xee38('4')][_0xee38('5')]&&process[_0xee38('4')][_0xee38('5')][_0xee38('7')]('\x40')>-0x1){app_soy_wytk_data=process[_0xee38('4')][_0xee38('5')][_0xee38('8')]('\x40');}else{app_soy_wytk_data=process[_0xee38('4')][_0xee38('5')][_0xee38('8')]();};}console[_0xee38('1')](_0xee38('9')+new Date(new Date()[_0xee38('a')]()+new Date()[_0xee38('b')]()*0x3c*0x3e8+0x8*0x3c*0x3c*0x3e8)[_0xee38('c')]()+_0xee38('d'));console[_0xee38('1')](_0xee38('e')+app_soy_wytk_data[_0xee38('f')]+_0xee38('10'));subTitle='';for(i=0x0;i<app_soy_wytk_data[_0xee38('f')];i++){let _0x1addbc=app_soy_wytk_data[i][_0xee38('8')]('\x26');token=_0x1addbc[0x0];soy_wytk_UA=_0x1addbc[0x1];if(!soy_wytk_UA){soy_wytk_UA=_0xee38('11');}$[_0xee38('12')]=i+0x1;await implement();};if(notify){if(subTitle){await notify[_0xee38('13')]($[_0xee38('14')],subTitle);}}})()[_0xee38('15')](_0x50315c=>$[_0xee38('16')](_0x50315c))[_0xee38('17')](()=>$[_0xee38('18')]());async function implement(){host=_0xee38('19');console[_0xee38('1')](_0xee38('1a')+$[_0xee38('12')]+_0xee38('1b'));await sign_state();await userInfo();}function sign_state(){let _0x1114b9=Post_request(_0xee38('1c'),'');return new Promise((_0x419bc1,_0xc54a96)=>{$[_0xee38('1d')](_0x1114b9,async(_0x53774e,_0x5707d6,_0x1727dd)=>{try{if(_0x53774e){console[_0xee38('1')](_0xee38('1e')+$[_0xee38('12')]+_0xee38('1f'));subTitle+=_0xee38('1e')+$[_0xee38('12')]+_0xee38('1f');}else{let _0x3b41a2=JSON[_0xee38('20')](_0x1727dd);if(_0x3b41a2[_0xee38('21')]==0x1){let _0x2fb2e9=_0x3b41a2[_0xee38('22')][_0xee38('22')][_0xee38('23')];let _0x4ce3de=_0x3b41a2[_0xee38('22')][_0xee38('22')][_0xee38('24')];let _0x384e63=_0x3b41a2[_0xee38('22')][_0xee38('22')][_0xee38('25')];let _0x420c46=_0x3b41a2[_0xee38('22')][_0xee38('26')];if(_0x420c46){if(_0x4ce3de<0xa){await userSignIn();}else{console[_0xee38('1')](_0xee38('1e')+$[_0xee38('12')]+_0xee38('27'));}await sign_Contenr();}else{console[_0xee38('1')](_0xee38('1e')+$[_0xee38('12')]+_0xee38('28'));}}else{console[_0xee38('1')](_0xee38('1e')+$[_0xee38('12')]+_0xee38('29')+_0x3b41a2[_0xee38('2a')]);}}}catch(_0x2991ad){console[_0xee38('1')](_0x2991ad,_0x5707d6);}finally{_0x419bc1();}});});}function userSignIn(){let _0x3717aa=Post_request(_0xee38('2b'),'');return new Promise((_0x298241,_0x473731)=>{$[_0xee38('1d')](_0x3717aa,async(_0x4b06e4,_0x25a1da,_0x5025c0)=>{try{if(_0x4b06e4){console[_0xee38('1')](_0xee38('1e')+$[_0xee38('12')]+_0xee38('2c'));subTitle+=_0xee38('1e')+$[_0xee38('12')]+_0xee38('2c');}else{let _0x3b0fb3=JSON[_0xee38('20')](_0x5025c0);if(_0x3b0fb3[_0xee38('21')]==0x1){console[_0xee38('1')](_0xee38('1e')+$[_0xee38('12')]+_0xee38('2d')+_0x3b0fb3[_0xee38('2a')]);}else{console[_0xee38('1')](_0xee38('1e')+$[_0xee38('12')]+_0xee38('2d')+_0x3b0fb3[_0xee38('2a')]);}}}catch(_0xd0e028){console[_0xee38('1')](_0xd0e028,_0x25a1da);}finally{_0x298241();}});});}function userInfo(){let _0x2d25c2=Post_request(_0xee38('2e'),'');return new Promise((_0xbfe419,_0x45f805)=>{$[_0xee38('1d')](_0x2d25c2,async(_0xbd2a2a,_0x33d5fd,_0x301f77)=>{try{if(_0xbd2a2a){console[_0xee38('1')](_0xee38('1e')+$[_0xee38('12')]+_0xee38('2f'));subTitle+=_0xee38('1e')+$[_0xee38('12')]+_0xee38('2f');console[_0xee38('1')](_0xbd2a2a+'\x0a');}else{let _0x538085=JSON[_0xee38('20')](_0x301f77);if(_0x538085[_0xee38('21')]==0x1){console[_0xee38('1')](_0xee38('1e')+$[_0xee38('12')]+_0xee38('30')+_0x538085[_0xee38('22')][_0xee38('31')]+_0xee38('32')+_0x538085[_0xee38('22')]['\x69\x64']+_0xee38('33')+_0x538085[_0xee38('22')][_0xee38('23')]+_0xee38('34')+_0x538085[_0xee38('22')][_0xee38('35')]);if(_0x538085[_0xee38('22')][_0xee38('35')]>=0x1){await withPost();}}else{console[_0xee38('1')](_0xee38('1e')+$[_0xee38('12')]+_0xee38('36')+_0x538085[_0xee38('2a')]);}}}catch(_0x172de0){console[_0xee38('1')](_0x172de0,_0x33d5fd);}finally{_0xbfe419();}});});}function withPost(){let _0x5d1f31=Post_request(_0xee38('37'),_0xee38('38'));return new Promise((_0x2972e0,_0x5ad564)=>{$[_0xee38('1d')](_0x5d1f31,async(_0xafc095,_0x13fcdc,_0x3c11ab)=>{try{if(_0xafc095){console[_0xee38('1')](_0xee38('1e')+$[_0xee38('12')]+_0xee38('2f'));subTitle+=_0xee38('1e')+$[_0xee38('12')]+_0xee38('2f');console[_0xee38('1')](_0xafc095+'\x0a');}else{let _0x1bf6cf=JSON[_0xee38('20')](_0x3c11ab);if(_0x1bf6cf[_0xee38('21')]==0x1){console[_0xee38('1')](_0xee38('1e')+$[_0xee38('12')]+_0xee38('39'));}else{console[_0xee38('1')](_0xee38('1e')+$[_0xee38('12')]+_0xee38('3a')+_0x1bf6cf[_0xee38('2a')]);}}}catch(_0x28ab1b){console[_0xee38('1')](_0x28ab1b,_0x13fcdc);}finally{_0x2972e0();}});});}function sign_Contenr(){let _0x326f1c=Post_request(_0xee38('3b'),_0xee38('3c'));return new Promise((_0x1eea91,_0x4f7508)=>{$[_0xee38('1d')](_0x326f1c,async(_0x3cc46c,_0x400936,_0x3afc31)=>{try{if(_0x3cc46c){console[_0xee38('1')](_0xee38('1e')+$[_0xee38('12')]+_0xee38('3d'));subTitle+=_0xee38('1e')+$[_0xee38('12')]+_0xee38('3d');console[_0xee38('1')](_0x3cc46c+'\x0a');}else{let _0x5e3a54=JSON[_0xee38('20')](_0x3afc31);if(_0x5e3a54[_0xee38('21')]==0x0){await getBanner(_0x5e3a54[_0xee38('22')]['\x69\x64']);}else if(_0x5e3a54[_0xee38('21')]==0x1){console[_0xee38('1')](_0xee38('1e')+$[_0xee38('12')]+_0xee38('3e')+_0x5e3a54[_0xee38('22')][_0xee38('3f')]);}else{console[_0xee38('1')](_0xee38('1e')+$[_0xee38('12')]+_0xee38('3e')+_0x5e3a54[_0xee38('2a')]);}}}catch(_0x3f121f){console[_0xee38('1')](_0x3f121f,_0x400936);}finally{_0x1eea91();}});});}function getBanner(_0x43db30){let _0x542081=Post_request(_0xee38('40'),_0xee38('41')+_0x43db30+_0xee38('42'));return new Promise((_0x239080,_0x105c39)=>{$[_0xee38('1d')](_0x542081,async(_0x4cc66f,_0x5a3191,_0x18c450)=>{try{if(_0x4cc66f){console[_0xee38('1')](_0xee38('1e')+$[_0xee38('12')]+_0xee38('43'));subTitle+=_0xee38('1e')+$[_0xee38('12')]+_0xee38('43');console[_0xee38('1')](_0x4cc66f+'\x0a');}else{let _0x29b713=JSON[_0xee38('20')](_0x18c450);if(_0x29b713[_0xee38('21')]==0x1){console[_0xee38('1')](_0xee38('1e')+$[_0xee38('12')]+_0xee38('44')+_0x29b713[_0xee38('22')][_0xee38('45')]+_0xee38('46'));}else{console[_0xee38('1')](_0xee38('1e')+$[_0xee38('12')]+_0xee38('47')+_0x29b713[_0xee38('2a')]);}}}catch(_0x2402c2){console[_0xee38('1')](_0x2402c2,_0x5a3191);}finally{_0x239080();}});});}function AES_Encrypt(_0x1f5371,_0xe70d93,_0x390617){let _0xd79402=crypto[_0xee38('48')][_0xee38('49')](crypto[_0xee38('4a')][_0xee38('4b')][_0xee38('20')](_0x1f5371),crypto[_0xee38('4a')][_0xee38('4b')][_0xee38('20')](_0xe70d93),{'\x69\x76':crypto[_0xee38('4a')][_0xee38('4b')][_0xee38('20')](_0x390617),'\x6d\x6f\x64\x65':crypto[_0xee38('4c')][_0xee38('4d')],'\x70\x61\x64\x64\x69\x6e\x67':crypto[_0xee38('4e')][_0xee38('4f')]});return _0xd79402[_0xee38('50')](crypto[_0xee38('4b')]);}function Post_request(_0x5dc298,_0x35cbdb){return{'\x75\x72\x6c':_0xee38('51')+_0x5dc298,'\x68\x65\x61\x64\x65\x72\x73':{'Host':_0xee38('52'),'Connection':_0xee38('53'),'Content-Length':_0x35cbdb[_0xee38('f')],'charset':_0xee38('54'),'User-Agent':soy_wytk_UA,'Content-Type':_0xee38('55'),'Accept-Encoding':_0xee38('56'),'token':token,'Referer':_0xee38('57')},'\x62\x6f\x64\x79':_0x35cbdb};};function Get_request(_0x3379ce){return{'\x75\x72\x6c':_0xee38('51')+_0x3379ce,'\x68\x65\x61\x64\x65\x72\x73':{'Host':_0xee38('52'),'Connection':_0xee38('53'),'Content-Length':0x0,'charset':_0xee38('54'),'User-Agent':soy_wytk_UA,'content-type':_0xee38('55'),'Accept-Encoding':_0xee38('56'),'token':token,'Referer':_0xee38('57')}};};function getCurrentTime(){let _0x21254a=new Date();let _0x70bdbc=_0x21254a[_0xee38('58')]();let _0x28059e=_0x21254a[_0xee38('59')]()+0x1;let _0x1791d2=_0x21254a[_0xee38('5a')]();let _0x23b868=_0x21254a[_0xee38('5b')]();let _0xe6850f=_0xee38('5c')+_0xee38('5d')[_0xee38('5e')](_0x21254a[_0xee38('5b')]());let _0xbf29b5=_0x21254a[_0xee38('5f')]();let _0x24a207=_0x21254a[_0xee38('60')]();let _0x467a0c=_0x21254a[_0xee38('61')]();let _0x375b34=_0x21254a[_0xee38('62')]();if(_0x28059e<0xa){_0x28059e='\x30'+_0x28059e;}if(_0x1791d2<0xa){_0x1791d2='\x30'+_0x1791d2;}if(_0xbf29b5<0xa){_0xbf29b5='\x30'+_0xbf29b5;}if(_0x24a207<0xa){_0x24a207='\x30'+_0x24a207;}if(_0x467a0c<0xa){_0x467a0c='\x30'+_0x467a0c;}if(_0x375b34<0xa){_0x375b34='\x30\x30'+_0x375b34;}else if(_0x375b34<0x64){_0x375b34='\x30'+_0x375b34;}return _0x70bdbc+'\x2d'+_0x28059e+'\x2d'+_0x1791d2+'\x20'+_0xbf29b5+'\x3a'+_0x24a207+'\x3a'+_0x467a0c;}function MD5_Encrypt(_0x21468a){function _0x2746e1(_0x21468a,_0x2746e1){return _0x21468a<<_0x2746e1|_0x21468a>>>0x20-_0x2746e1;}function _0x43ca74(_0x21468a,_0x2746e1){var _0x43ca74,_0x52ca39,_0xa459be,_0x5a52c8,_0x1fb198;return _0xa459be=0x80000000&_0x21468a,_0x5a52c8=0x80000000&_0x2746e1,_0x43ca74=0x40000000&_0x21468a,_0x52ca39=0x40000000&_0x2746e1,_0x1fb198=(0x3fffffff&_0x21468a)+(0x3fffffff&_0x2746e1),_0x43ca74&_0x52ca39?0x80000000^_0x1fb198^_0xa459be^_0x5a52c8:_0x43ca74|_0x52ca39?0x40000000&_0x1fb198?0xc0000000^_0x1fb198^_0xa459be^_0x5a52c8:0x40000000^_0x1fb198^_0xa459be^_0x5a52c8:_0x1fb198^_0xa459be^_0x5a52c8;}function _0x70d026(_0x21468a,_0x2746e1,_0x43ca74){return _0x21468a&_0x2746e1|~_0x21468a&_0x43ca74;}function _0x56c1bf(_0x21468a,_0x2746e1,_0x43ca74){return _0x21468a&_0x43ca74|_0x2746e1&~_0x43ca74;}function _0x3053fd(_0x21468a,_0x2746e1,_0x43ca74){return _0x21468a^_0x2746e1^_0x43ca74;}function _0x3e8f95(_0x21468a,_0x2746e1,_0x43ca74){return _0x2746e1^(_0x21468a|~_0x43ca74);}function _0x23431d(_0x21468a,_0x56c1bf,_0x3053fd,_0x3e8f95,_0x23431d,_0x3d7898,_0x3172bc){return _0x21468a=_0x43ca74(_0x21468a,_0x43ca74(_0x43ca74(_0x70d026(_0x56c1bf,_0x3053fd,_0x3e8f95),_0x23431d),_0x3172bc)),_0x43ca74(_0x2746e1(_0x21468a,_0x3d7898),_0x56c1bf);}function _0x5dab6a(_0x21468a,_0x70d026,_0x3053fd,_0x3e8f95,_0x23431d,_0x5dab6a,_0x472fdd){return _0x21468a=_0x43ca74(_0x21468a,_0x43ca74(_0x43ca74(_0x56c1bf(_0x70d026,_0x3053fd,_0x3e8f95),_0x23431d),_0x472fdd)),_0x43ca74(_0x2746e1(_0x21468a,_0x5dab6a),_0x70d026);}function _0x116a98(_0x21468a,_0x70d026,_0x56c1bf,_0x3e8f95,_0x23431d,_0x5dab6a,_0x116a98){return _0x21468a=_0x43ca74(_0x21468a,_0x43ca74(_0x43ca74(_0x3053fd(_0x70d026,_0x56c1bf,_0x3e8f95),_0x23431d),_0x116a98)),_0x43ca74(_0x2746e1(_0x21468a,_0x5dab6a),_0x70d026);}function _0x568347(_0x21468a,_0x70d026,_0x56c1bf,_0x3053fd,_0x23431d,_0x5dab6a,_0x116a98){return _0x21468a=_0x43ca74(_0x21468a,_0x43ca74(_0x43ca74(_0x3e8f95(_0x70d026,_0x56c1bf,_0x3053fd),_0x23431d),_0x116a98)),_0x43ca74(_0x2746e1(_0x21468a,_0x5dab6a),_0x70d026);}function _0x4ad02b(_0x21468a){for(var _0x2746e1,_0x43ca74=_0x21468a[_0xee38('f')],_0x70d026=_0x43ca74+0x8,_0x56c1bf=(_0x70d026-_0x70d026%0x40)/0x40,_0x3053fd=0x10*(_0x56c1bf+0x1),_0x3e8f95=new Array(_0x3053fd-0x1),_0x23431d=0x0,_0x5dab6a=0x0;_0x43ca74>_0x5dab6a;)_0x2746e1=(_0x5dab6a-_0x5dab6a%0x4)/0x4,_0x23431d=_0x5dab6a%0x4*0x8,_0x3e8f95[_0x2746e1]=_0x3e8f95[_0x2746e1]|_0x21468a[_0xee38('63')](_0x5dab6a)<<_0x23431d,_0x5dab6a++;return _0x2746e1=(_0x5dab6a-_0x5dab6a%0x4)/0x4,_0x23431d=_0x5dab6a%0x4*0x8,_0x3e8f95[_0x2746e1]=_0x3e8f95[_0x2746e1]|0x80<<_0x23431d,_0x3e8f95[_0x3053fd-0x2]=_0x43ca74<<0x3,_0x3e8f95[_0x3053fd-0x1]=_0x43ca74>>>0x1d,_0x3e8f95;}function _0x25dd68(_0x21468a){var _0x2746e1,_0x43ca74,_0x70d026='',_0x56c1bf='';for(_0x43ca74=0x0;0x3>=_0x43ca74;_0x43ca74++)_0x2746e1=_0x21468a>>>0x8*_0x43ca74&0xff,_0x56c1bf='\x30'+_0x2746e1[_0xee38('50')](0x10),_0x70d026+=_0x56c1bf[_0xee38('64')](_0x56c1bf[_0xee38('f')]-0x2,0x2);return _0x70d026;}function _0x319665(_0x21468a){_0x21468a=_0x21468a[_0xee38('65')](/\r\n/g,'\x0a');for(var _0x2746e1='',_0x43ca74=0x0;_0x43ca74<_0x21468a[_0xee38('f')];_0x43ca74++){var _0x70d026=_0x21468a[_0xee38('63')](_0x43ca74);0x80>_0x70d026?_0x2746e1+=String[_0xee38('66')](_0x70d026):_0x70d026>0x7f&&0x800>_0x70d026?(_0x2746e1+=String[_0xee38('66')](_0x70d026>>0x6|0xc0),_0x2746e1+=String[_0xee38('66')](0x3f&_0x70d026|0x80)):(_0x2746e1+=String[_0xee38('66')](_0x70d026>>0xc|0xe0),_0x2746e1+=String[_0xee38('66')](_0x70d026>>0x6&0x3f|0x80),_0x2746e1+=String[_0xee38('66')](0x3f&_0x70d026|0x80));}return _0x2746e1;}var _0x5c6cf9,_0x5beeda,_0x373c15,_0x5cc081,_0x29a78c,_0x67bce0,_0x2556d7,_0x20a90c,_0x287141,_0x47c0e8=[],_0x51132b=0x7,_0x1b07f0=0xc,_0x258277=0x11,_0x1c0f72=0x16,_0x5802f2=0x5,_0x325e28=0x9,_0x4d5654=0xe,_0x2a8215=0x14,_0x4f029f=0x4,_0x1fab7=0xb,_0x41af36=0x10,_0x5d29ad=0x17,_0x519e0f=0x6,_0x1eccae=0xa,_0x16f804=0xf,_0x4a7fc3=0x15;for(_0x21468a=_0x319665(_0x21468a),_0x47c0e8=_0x4ad02b(_0x21468a),_0x67bce0=0x67452301,_0x2556d7=0xefcdab89,_0x20a90c=0x98badcfe,_0x287141=0x10325476,_0x5c6cf9=0x0;_0x5c6cf9<_0x47c0e8[_0xee38('f')];_0x5c6cf9+=0x10)_0x5beeda=_0x67bce0,_0x373c15=_0x2556d7,_0x5cc081=_0x20a90c,_0x29a78c=_0x287141,_0x67bce0=_0x23431d(_0x67bce0,_0x2556d7,_0x20a90c,_0x287141,_0x47c0e8[_0x5c6cf9+0x0],_0x51132b,0xd76aa478),_0x287141=_0x23431d(_0x287141,_0x67bce0,_0x2556d7,_0x20a90c,_0x47c0e8[_0x5c6cf9+0x1],_0x1b07f0,0xe8c7b756),_0x20a90c=_0x23431d(_0x20a90c,_0x287141,_0x67bce0,_0x2556d7,_0x47c0e8[_0x5c6cf9+0x2],_0x258277,0x242070db),_0x2556d7=_0x23431d(_0x2556d7,_0x20a90c,_0x287141,_0x67bce0,_0x47c0e8[_0x5c6cf9+0x3],_0x1c0f72,0xc1bdceee),_0x67bce0=_0x23431d(_0x67bce0,_0x2556d7,_0x20a90c,_0x287141,_0x47c0e8[_0x5c6cf9+0x4],_0x51132b,0xf57c0faf),_0x287141=_0x23431d(_0x287141,_0x67bce0,_0x2556d7,_0x20a90c,_0x47c0e8[_0x5c6cf9+0x5],_0x1b07f0,0x4787c62a),_0x20a90c=_0x23431d(_0x20a90c,_0x287141,_0x67bce0,_0x2556d7,_0x47c0e8[_0x5c6cf9+0x6],_0x258277,0xa8304613),_0x2556d7=_0x23431d(_0x2556d7,_0x20a90c,_0x287141,_0x67bce0,_0x47c0e8[_0x5c6cf9+0x7],_0x1c0f72,0xfd469501),_0x67bce0=_0x23431d(_0x67bce0,_0x2556d7,_0x20a90c,_0x287141,_0x47c0e8[_0x5c6cf9+0x8],_0x51132b,0x698098d8),_0x287141=_0x23431d(_0x287141,_0x67bce0,_0x2556d7,_0x20a90c,_0x47c0e8[_0x5c6cf9+0x9],_0x1b07f0,0x8b44f7af),_0x20a90c=_0x23431d(_0x20a90c,_0x287141,_0x67bce0,_0x2556d7,_0x47c0e8[_0x5c6cf9+0xa],_0x258277,0xffff5bb1),_0x2556d7=_0x23431d(_0x2556d7,_0x20a90c,_0x287141,_0x67bce0,_0x47c0e8[_0x5c6cf9+0xb],_0x1c0f72,0x895cd7be),_0x67bce0=_0x23431d(_0x67bce0,_0x2556d7,_0x20a90c,_0x287141,_0x47c0e8[_0x5c6cf9+0xc],_0x51132b,0x6b901122),_0x287141=_0x23431d(_0x287141,_0x67bce0,_0x2556d7,_0x20a90c,_0x47c0e8[_0x5c6cf9+0xd],_0x1b07f0,0xfd987193),_0x20a90c=_0x23431d(_0x20a90c,_0x287141,_0x67bce0,_0x2556d7,_0x47c0e8[_0x5c6cf9+0xe],_0x258277,0xa679438e),_0x2556d7=_0x23431d(_0x2556d7,_0x20a90c,_0x287141,_0x67bce0,_0x47c0e8[_0x5c6cf9+0xf],_0x1c0f72,0x49b40821),_0x67bce0=_0x5dab6a(_0x67bce0,_0x2556d7,_0x20a90c,_0x287141,_0x47c0e8[_0x5c6cf9+0x1],_0x5802f2,0xf61e2562),_0x287141=_0x5dab6a(_0x287141,_0x67bce0,_0x2556d7,_0x20a90c,_0x47c0e8[_0x5c6cf9+0x6],_0x325e28,0xc040b340),_0x20a90c=_0x5dab6a(_0x20a90c,_0x287141,_0x67bce0,_0x2556d7,_0x47c0e8[_0x5c6cf9+0xb],_0x4d5654,0x265e5a51),_0x2556d7=_0x5dab6a(_0x2556d7,_0x20a90c,_0x287141,_0x67bce0,_0x47c0e8[_0x5c6cf9+0x0],_0x2a8215,0xe9b6c7aa),_0x67bce0=_0x5dab6a(_0x67bce0,_0x2556d7,_0x20a90c,_0x287141,_0x47c0e8[_0x5c6cf9+0x5],_0x5802f2,0xd62f105d),_0x287141=_0x5dab6a(_0x287141,_0x67bce0,_0x2556d7,_0x20a90c,_0x47c0e8[_0x5c6cf9+0xa],_0x325e28,0x2441453),_0x20a90c=_0x5dab6a(_0x20a90c,_0x287141,_0x67bce0,_0x2556d7,_0x47c0e8[_0x5c6cf9+0xf],_0x4d5654,0xd8a1e681),_0x2556d7=_0x5dab6a(_0x2556d7,_0x20a90c,_0x287141,_0x67bce0,_0x47c0e8[_0x5c6cf9+0x4],_0x2a8215,0xe7d3fbc8),_0x67bce0=_0x5dab6a(_0x67bce0,_0x2556d7,_0x20a90c,_0x287141,_0x47c0e8[_0x5c6cf9+0x9],_0x5802f2,0x21e1cde6),_0x287141=_0x5dab6a(_0x287141,_0x67bce0,_0x2556d7,_0x20a90c,_0x47c0e8[_0x5c6cf9+0xe],_0x325e28,0xc33707d6),_0x20a90c=_0x5dab6a(_0x20a90c,_0x287141,_0x67bce0,_0x2556d7,_0x47c0e8[_0x5c6cf9+0x3],_0x4d5654,0xf4d50d87),_0x2556d7=_0x5dab6a(_0x2556d7,_0x20a90c,_0x287141,_0x67bce0,_0x47c0e8[_0x5c6cf9+0x8],_0x2a8215,0x455a14ed),_0x67bce0=_0x5dab6a(_0x67bce0,_0x2556d7,_0x20a90c,_0x287141,_0x47c0e8[_0x5c6cf9+0xd],_0x5802f2,0xa9e3e905),_0x287141=_0x5dab6a(_0x287141,_0x67bce0,_0x2556d7,_0x20a90c,_0x47c0e8[_0x5c6cf9+0x2],_0x325e28,0xfcefa3f8),_0x20a90c=_0x5dab6a(_0x20a90c,_0x287141,_0x67bce0,_0x2556d7,_0x47c0e8[_0x5c6cf9+0x7],_0x4d5654,0x676f02d9),_0x2556d7=_0x5dab6a(_0x2556d7,_0x20a90c,_0x287141,_0x67bce0,_0x47c0e8[_0x5c6cf9+0xc],_0x2a8215,0x8d2a4c8a),_0x67bce0=_0x116a98(_0x67bce0,_0x2556d7,_0x20a90c,_0x287141,_0x47c0e8[_0x5c6cf9+0x5],_0x4f029f,0xfffa3942),_0x287141=_0x116a98(_0x287141,_0x67bce0,_0x2556d7,_0x20a90c,_0x47c0e8[_0x5c6cf9+0x8],_0x1fab7,0x8771f681),_0x20a90c=_0x116a98(_0x20a90c,_0x287141,_0x67bce0,_0x2556d7,_0x47c0e8[_0x5c6cf9+0xb],_0x41af36,0x6d9d6122),_0x2556d7=_0x116a98(_0x2556d7,_0x20a90c,_0x287141,_0x67bce0,_0x47c0e8[_0x5c6cf9+0xe],_0x5d29ad,0xfde5380c),_0x67bce0=_0x116a98(_0x67bce0,_0x2556d7,_0x20a90c,_0x287141,_0x47c0e8[_0x5c6cf9+0x1],_0x4f029f,0xa4beea44),_0x287141=_0x116a98(_0x287141,_0x67bce0,_0x2556d7,_0x20a90c,_0x47c0e8[_0x5c6cf9+0x4],_0x1fab7,0x4bdecfa9),_0x20a90c=_0x116a98(_0x20a90c,_0x287141,_0x67bce0,_0x2556d7,_0x47c0e8[_0x5c6cf9+0x7],_0x41af36,0xf6bb4b60),_0x2556d7=_0x116a98(_0x2556d7,_0x20a90c,_0x287141,_0x67bce0,_0x47c0e8[_0x5c6cf9+0xa],_0x5d29ad,0xbebfbc70),_0x67bce0=_0x116a98(_0x67bce0,_0x2556d7,_0x20a90c,_0x287141,_0x47c0e8[_0x5c6cf9+0xd],_0x4f029f,0x289b7ec6),_0x287141=_0x116a98(_0x287141,_0x67bce0,_0x2556d7,_0x20a90c,_0x47c0e8[_0x5c6cf9+0x0],_0x1fab7,0xeaa127fa),_0x20a90c=_0x116a98(_0x20a90c,_0x287141,_0x67bce0,_0x2556d7,_0x47c0e8[_0x5c6cf9+0x3],_0x41af36,0xd4ef3085),_0x2556d7=_0x116a98(_0x2556d7,_0x20a90c,_0x287141,_0x67bce0,_0x47c0e8[_0x5c6cf9+0x6],_0x5d29ad,0x4881d05),_0x67bce0=_0x116a98(_0x67bce0,_0x2556d7,_0x20a90c,_0x287141,_0x47c0e8[_0x5c6cf9+0x9],_0x4f029f,0xd9d4d039),_0x287141=_0x116a98(_0x287141,_0x67bce0,_0x2556d7,_0x20a90c,_0x47c0e8[_0x5c6cf9+0xc],_0x1fab7,0xe6db99e5),_0x20a90c=_0x116a98(_0x20a90c,_0x287141,_0x67bce0,_0x2556d7,_0x47c0e8[_0x5c6cf9+0xf],_0x41af36,0x1fa27cf8),_0x2556d7=_0x116a98(_0x2556d7,_0x20a90c,_0x287141,_0x67bce0,_0x47c0e8[_0x5c6cf9+0x2],_0x5d29ad,0xc4ac5665),_0x67bce0=_0x568347(_0x67bce0,_0x2556d7,_0x20a90c,_0x287141,_0x47c0e8[_0x5c6cf9+0x0],_0x519e0f,0xf4292244),_0x287141=_0x568347(_0x287141,_0x67bce0,_0x2556d7,_0x20a90c,_0x47c0e8[_0x5c6cf9+0x7],_0x1eccae,0x432aff97),_0x20a90c=_0x568347(_0x20a90c,_0x287141,_0x67bce0,_0x2556d7,_0x47c0e8[_0x5c6cf9+0xe],_0x16f804,0xab9423a7),_0x2556d7=_0x568347(_0x2556d7,_0x20a90c,_0x287141,_0x67bce0,_0x47c0e8[_0x5c6cf9+0x5],_0x4a7fc3,0xfc93a039),_0x67bce0=_0x568347(_0x67bce0,_0x2556d7,_0x20a90c,_0x287141,_0x47c0e8[_0x5c6cf9+0xc],_0x519e0f,0x655b59c3),_0x287141=_0x568347(_0x287141,_0x67bce0,_0x2556d7,_0x20a90c,_0x47c0e8[_0x5c6cf9+0x3],_0x1eccae,0x8f0ccc92),_0x20a90c=_0x568347(_0x20a90c,_0x287141,_0x67bce0,_0x2556d7,_0x47c0e8[_0x5c6cf9+0xa],_0x16f804,0xffeff47d),_0x2556d7=_0x568347(_0x2556d7,_0x20a90c,_0x287141,_0x67bce0,_0x47c0e8[_0x5c6cf9+0x1],_0x4a7fc3,0x85845dd1),_0x67bce0=_0x568347(_0x67bce0,_0x2556d7,_0x20a90c,_0x287141,_0x47c0e8[_0x5c6cf9+0x8],_0x519e0f,0x6fa87e4f),_0x287141=_0x568347(_0x287141,_0x67bce0,_0x2556d7,_0x20a90c,_0x47c0e8[_0x5c6cf9+0xf],_0x1eccae,0xfe2ce6e0),_0x20a90c=_0x568347(_0x20a90c,_0x287141,_0x67bce0,_0x2556d7,_0x47c0e8[_0x5c6cf9+0x6],_0x16f804,0xa3014314),_0x2556d7=_0x568347(_0x2556d7,_0x20a90c,_0x287141,_0x67bce0,_0x47c0e8[_0x5c6cf9+0xd],_0x4a7fc3,0x4e0811a1),_0x67bce0=_0x568347(_0x67bce0,_0x2556d7,_0x20a90c,_0x287141,_0x47c0e8[_0x5c6cf9+0x4],_0x519e0f,0xf7537e82),_0x287141=_0x568347(_0x287141,_0x67bce0,_0x2556d7,_0x20a90c,_0x47c0e8[_0x5c6cf9+0xb],_0x1eccae,0xbd3af235),_0x20a90c=_0x568347(_0x20a90c,_0x287141,_0x67bce0,_0x2556d7,_0x47c0e8[_0x5c6cf9+0x2],_0x16f804,0x2ad7d2bb),_0x2556d7=_0x568347(_0x2556d7,_0x20a90c,_0x287141,_0x67bce0,_0x47c0e8[_0x5c6cf9+0x9],_0x4a7fc3,0xeb86d391),_0x67bce0=_0x43ca74(_0x67bce0,_0x5beeda),_0x2556d7=_0x43ca74(_0x2556d7,_0x373c15),_0x20a90c=_0x43ca74(_0x20a90c,_0x5cc081),_0x287141=_0x43ca74(_0x287141,_0x29a78c);var _0x30c7c6=_0x25dd68(_0x67bce0)+_0x25dd68(_0x2556d7)+_0x25dd68(_0x20a90c)+_0x25dd68(_0x287141);return _0x30c7c6[_0xee38('67')]();};_0xodI='jsjiami.com.v6';
function Env(t, e) {
class s {
constructor(t) {
this.env = t
}
send(t, e = "GET") {
t = "string" == typeof t ? {
url: t
} : t;
let s = this.get;
return "POST" === e && (s = this.post), new Promise((e, i) => {
s.call(this, t, (t, s, r) => {
t ? i(t) : e(s)
})
})
}
get(t) {
return this.send.call(this.env, t)
}
post(t) {
return this.send.call(this.env, t, "POST")
}
}
return new class {
constructor(t, e) {
this.name = t, this.http = new s(this), this.data = null, this.dataFile = "box.dat", this.logs = [], this.isMute = !1, this.isNeedRewrite = !1, this.logSeparator = "\n", this.startTime = (new Date).getTime(), Object.assign(this, e), this.log("", `\ud83d\udd14${this.name}, \u5f00\u59cb!`)
}
isNode() {
return "undefined" != typeof module && !!module.exports
}
isQuanX() {
return "undefined" != typeof $task
}
isSurge() {
return "undefined" != typeof $httpClient && "undefined" == typeof $loon
}
isLoon() {
return "undefined" != typeof $loon
}
toObj(t, e = null) {
try {
return JSON.parse(t)
} catch {
return e
}
}
toStr(t, e = null) {
try {
return JSON.stringify(t)
} catch {
return e
}
}
getjson(t, e) {
let s = e;
const i = this.getdata(t);
if (i) try {
s = JSON.parse(this.getdata(t))
} catch {}
return s
}
setjson(t, e) {
try {
return this.setdata(JSON.stringify(t), e)
} catch {
return !1
}
}
getScript(t) {
return new Promise(e => {
this.get({
url: t
}, (t, s, i) => e(i))
})
}
runScript(t, e) {
return new Promise(s => {
let i = this.getdata("@chavy_boxjs_userCfgs.httpapi");
i = i ? i.replace(/\n/g, "").trim() : i;
let r = this.getdata("@chavy_boxjs_userCfgs.httpapi_timeout");
r = r ? 1 * r : 20, r = e && e.timeout ? e.timeout : r;
const [o, h] = i.split("@"), a = {
url: `http://${h}/v1/scripting/evaluate`,
body: {
script_text: t,
mock_type: "cron",
timeout: r
},
headers: {
"X-Key": o,
Accept: "*/*"
}
};
this.post(a, (t, e, i) => s(i))
}).catch(t => this.logErr(t))
}
loaddata() {
if (!this.isNode()) return {}; {
this.fs = this.fs ? this.fs : require("fs"), this.path = this.path ? this.path : require("path");
const t = this.path.resolve(this.dataFile),
e = this.path.resolve(process.cwd(), this.dataFile),
s = this.fs.existsSync(t),
i = !s && this.fs.existsSync(e);
if (!s && !i) return {}; {
const i = s ? t : e;
try {
return JSON.parse(this.fs.readFileSync(i))
} catch (t) {
return {}
}
}
}
}
writedata() {
if (this.isNode()) {
this.fs = this.fs ? this.fs : require("fs"), this.path = this.path ? this.path : require("path");
const t = this.path.resolve(this.dataFile),
e = this.path.resolve(process.cwd(), this.dataFile),
s = this.fs.existsSync(t),
i = !s && this.fs.existsSync(e),
r = JSON.stringify(this.data);
s ? this.fs.writeFileSync(t, r) : i ? this.fs.writeFileSync(e, r) : this.fs.writeFileSync(t, r)
}
}
lodash_get(t, e, s) {
const i = e.replace(/\[(\d+)\]/g, ".$1").split(".");
let r = t;
for (const t of i)
if (r = Object(r)[t], void 0 === r) return s;
return r
}
lodash_set(t, e, s) {
return Object(t) !== t ? t : (Array.isArray(e) || (e = e.toString().match(/[^.[\]]+/g) || []), e.slice(0, -1).reduce((t, s, i) => Object(t[s]) === t[s] ? t[s] : t[s] = Math.abs(e[i + 1]) >> 0 == +e[i + 1] ? [] : {}, t)[e[e.length - 1]] = s, t)
}
getdata(t) {
let e = this.getval(t);
if (/^@/.test(t)) {
const [, s, i] = /^@(.*?)\.(.*?)$/.exec(t), r = s ? this.getval(s) : "";
if (r) try {
const t = JSON.parse(r);
e = t ? this.lodash_get(t, i, "") : e
} catch (t) {
e = ""
}
}
return e
}
setdata(t, e) {
let s = !1;
if (/^@/.test(e)) {
const [, i, r] = /^@(.*?)\.(.*?)$/.exec(e), o = this.getval(i), h = i ? "null" === o ? null : o || "{}" : "{}";
try {
const e = JSON.parse(h);
this.lodash_set(e, r, t), s = this.setval(JSON.stringify(e), i)
} catch (e) {
const o = {};
this.lodash_set(o, r, t), s = this.setval(JSON.stringify(o), i)
}
} else s = this.setval(t, e);
return s
}
getval(t) {
return this.isSurge() || this.isLoon() ? $persistentStore.read(t) : this.isQuanX() ? $prefs.valueForKey(t) : this.isNode() ? (this.data = this.loaddata(), this.data[t]) : this.data && this.data[t] || null
}
setval(t, e) {
return this.isSurge() || this.isLoon() ? $persistentStore.write(t, e) : this.isQuanX() ? $prefs.setValueForKey(t, e) : this.isNode() ? (this.data = this.loaddata(), this.data[e] = t, this.writedata(), !0) : this.data && this.data[e] || null
}
initGotEnv(t) {
this.got = this.got ? this.got : require("got"), this.cktough = this.cktough ? this.cktough : require("tough-cookie"), this.ckjar = this.ckjar ? this.ckjar : new this.cktough.CookieJar, t && (t.headers = t.headers ? t.headers : {}, void 0 === t.headers.Cookie && void 0 === t.cookieJar && (t.cookieJar = this.ckjar))
}
get(t, e = (() => {})) {
t.headers && (delete t.headers["Content-Type"], delete t.headers["Content-Length"]), this.isSurge() || this.isLoon() ? (this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, {
"X-Surge-Skip-Scripting": !1
})), $httpClient.get(t, (t, s, i) => {
!t && s && (s.body = i, s.statusCode = s.status), e(t, s, i)
})) : this.isQuanX() ? (this.isNeedRewrite && (t.opts = t.opts || {}, Object.assign(t.opts, {
hints: !1
})), $task.fetch(t).then(t => {
const {
statusCode: s,
statusCode: i,
headers: r,
body: o
} = t;
e(null, {
status: s,
statusCode: i,
headers: r,
body: o
}, o)
}, t => e(t))) : this.isNode() && (this.initGotEnv(t), this.got(t).on("redirect", (t, e) => {
try {
if (t.headers["set-cookie"]) {
const s = t.headers["set-cookie"].map(this.cktough.Cookie.parse).toString();
this.ckjar.setCookieSync(s, null), e.cookieJar = this.ckjar
}
} catch (t) {
this.logErr(t)
}
}).then(t => {
const {
statusCode: s,
statusCode: i,
headers: r,
body: o
} = t;
e(null, {
status: s,
statusCode: i,
headers: r,
body: o
}, o)
}, t => {
const {
message: s,
response: i
} = t;
e(s, i, i && i.body)
}))
}
post(t, e = (() => {})) {
if (t.body && t.headers && !t.headers["Content-Type"] && (t.headers["Content-Type"] = "application/x-www-form-urlencoded"), t.headers && delete t.headers["Content-Length"], this.isSurge() || this.isLoon()) this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, {
"X-Surge-Skip-Scripting": !1
})), $httpClient.post(t, (t, s, i) => {
!t && s && (s.body = i, s.statusCode = s.status), e(t, s, i)
});
else if (this.isQuanX()) t.method = "POST", this.isNeedRewrite && (t.opts = t.opts || {}, Object.assign(t.opts, {
hints: !1
})), $task.fetch(t).then(t => {
const {
statusCode: s,
statusCode: i,
headers: r,
body: o
} = t;
e(null, {
status: s,
statusCode: i,
headers: r,
body: o
}, o)
}, t => e(t));
else if (this.isNode()) {
this.initGotEnv(t);
const {
url: s,
...i
} = t;
this.got.post(s, i).then(t => {
const {
statusCode: s,
statusCode: i,
headers: r,
body: o
} = t;
e(null, {
status: s,
statusCode: i,
headers: r,
body: o
}, o)
}, t => {
const {
message: s,
response: i
} = t;
e(s, i, i && i.body)
})
}
}
time(t) {
let e = {
"M+": (new Date).getMonth() + 1,
"d+": (new Date).getDate(),
"H+": (new Date).getHours(),
"m+": (new Date).getMinutes(),
"s+": (new Date).getSeconds(),
"q+": Math.floor(((new Date).getMonth() + 3) / 3),
S: (new Date).getMilliseconds()
};
/(y+)/.test(t) && (t = t.replace(RegExp.$1, ((new Date).getFullYear() + "").substr(4 - RegExp.$1.length)));
for (let s in e) new RegExp("(" + s + ")").test(t) && (t = t.replace(RegExp.$1, 1 == RegExp.$1.length ? e[s] : ("00" + e[s]).substr(("" + e[s]).length)));
return t
}
msg(e = t, s = "", i = "", r) {
const o = t => {
if (!t) return t;
if ("string" == typeof t) return this.isLoon() ? t : this.isQuanX() ? {
"open-url": t
} : this.isSurge() ? {
url: t
} : void 0;
if ("object" == typeof t) {
if (this.isLoon()) {
let e = t.openUrl || t.url || t["open-url"],
s = t.mediaUrl || t["media-url"];
return {
openUrl: e,
mediaUrl: s
}
}
if (this.isQuanX()) {
let e = t["open-url"] || t.url || t.openUrl,
s = t["media-url"] || t.mediaUrl;
return {
"open-url": e,
"media-url": s
}
}
if (this.isSurge()) {
let e = t.url || t.openUrl || t["open-url"];
return {
url: e
}
}
}
};
this.isMute || (this.isSurge() || this.isLoon() ? $notification.post(e, s, i, o(r)) : this.isQuanX() && $notify(e, s, i, o(r)));
let h = ["", "==============\ud83d\udce3\u7cfb\u7edf\u901a\u77e5\ud83d\udce3=============="];
h.push(e), s && h.push(s), i && h.push(i), console.log(h.join("\n")), this.logs = this.logs.concat(h)
}
log(...t) {
t.length > 0 && (this.logs = [...this.logs, ...t]), console.log(t.join(this.logSeparator))
}
logErr(t, e) {
const s = !this.isSurge() && !this.isQuanX() && !this.isLoon();
s ? this.log("", `\u2757\ufe0f${this.name}, \u9519\u8bef!`, t.stack) : this.log("", `\u2757\ufe0f${this.name}, \u9519\u8bef!`, t)
}
wait(t) {
return new Promise(e => setTimeout(e, t))
}
done(t = {}) {
const e = (new Date).getTime(),
s = (e - this.startTime) / 1e3;
this.log("", `\ud83d\udd14${this.name}, \u7ed3\u675f! \ud83d\udd5b ${s} \u79d2`), this.log(), (this.isSurge() || this.isQuanX() || this.isLoon()) && $done(t)
}
}(t, e)
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhourx1129/app-script.git
git@gitee.com:zhourx1129/app-script.git
zhourx1129
app-script
app脚本
master

搜索帮助