forked from feverrun/my_scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jd_ppdt.js
11 lines (8 loc) · 31.8 KB
/
jd_ppdt.js
1
2
3
4
5
6
7
8
9
10
11
/*
超级品牌殿堂
cron "2 2 29 2 *" jd_ppdt.js
*/
const $ = new Env('超级品牌殿堂');
var __encode ='jsjiami.com',_a={}, _0xb483=["\x5F\x64\x65\x63\x6F\x64\x65","\x68\x74\x74\x70\x3A\x2F\x2F\x77\x77\x77\x2E\x73\x6F\x6A\x73\x6F\x6E\x2E\x63\x6F\x6D\x2F\x6A\x61\x76\x61\x73\x63\x72\x69\x70\x74\x6F\x62\x66\x75\x73\x63\x61\x74\x6F\x72\x2E\x68\x74\x6D\x6C"];(function(_0xd642x1){_0xd642x1[_0xb483[0]]= _0xb483[1]})(_a);var __Oxfaca0=["\x69\x73\x4E\x6F\x64\x65","\x2E\x2F\x73\x65\x6E\x64\x4E\x6F\x74\x69\x66\x79","","\x2E\x2F\x6A\x64\x43\x6F\x6F\x6B\x69\x65\x2E\x6A\x73","\x70\x75\x73\x68","\x66\x6F\x72\x45\x61\x63\x68","\x6B\x65\x79\x73","\x4A\x44\x5F\x44\x45\x42\x55\x47","\x65\x6E\x76","\x66\x61\x6C\x73\x65","\x6C\x6F\x67","\x66\x69\x6C\x74\x65\x72","\x43\x6F\x6F\x6B\x69\x65\x4A\x44","\x67\x65\x74\x64\x61\x74\x61","\x43\x6F\x6F\x6B\x69\x65\x4A\x44\x32","\x63\x6F\x6F\x6B\x69\x65","\x6D\x61\x70","\x43\x6F\x6F\x6B\x69\x65\x73\x4A\x44","\x5B\x5D","\x74\x61\x73\x6B\x4C\x69\x73\x74","\x64\x6F\x6E\x65","\x66\x69\x6E\x61\x6C\x6C\x79","\u274C\x20","\x6E\x61\x6D\x65","\x2C\x20\u5931\u8D25\x21\x20\u539F\u56E0\x3A\x20","\x21","\x63\x61\x74\x63\x68","\u3010\u63D0\u793A\u3011\u8BF7\u5148\u83B7\u53D6\u4EAC\u4E1C\u8D26\u53F7\u4E00\x63\x6F\x6F\x6B\x69\x65\x0A\u76F4\u63A5\u4F7F\u7528\x4E\x6F\x62\x79\x44\x61\u7684\u4EAC\u4E1C\u7B7E\u5230\u83B7\u53D6","\x68\x74\x74\x70\x73\x3A\x2F\x2F\x62\x65\x61\x6E\x2E\x6D\x2E\x6A\x64\x2E\x63\x6F\x6D\x2F\x62\x65\x61\x6E\x2F\x73\x69\x67\x6E\x49\x6E\x64\x65\x78\x2E\x61\x63\x74\x69\x6F\x6E","\x6D\x73\x67","\u52A0\u5165\u73AF\u5883\u9891\u9053\x3A\x20\x68\x74\x74\x70\x73\x3A\x2F\x2F\x74\x2E\x6D\x65\x2F\x70\x72\x6F\x65\x6E\x76\x63","\x72\x61\x6E\x64\x6F\x6D","\x77\x61\x69\x74","\u6682\u65E0\u6709\u6C34\u7684\u54C1\u724C\u6BBF\u5802\u6D3B\u52A8","\x6C\x65\x6E\x67\x74\x68","\x55\x73\x65\x72\x4E\x61\x6D\x65","\x6D\x61\x74\x63\x68","\x69\x6E\x64\x65\x78","\x69\x73\x4C\x6F\x67\x69\x6E","\x6E\x69\x63\x6B\x4E\x61\x6D\x65","\x55\x55\x49\x44","\x78\x78\x78\x78\x78\x78\x78\x78\x78\x78\x78\x78\x78\x78\x78\x78\x2D\x78\x78\x78\x78\x78\x78\x78\x78\x78\x78\x78\x78\x78\x78\x78\x78","\x55\x55\x49\x44\x53\x54\x52","\x2A\x2A\x2A\x2A\x2A\x2A\u5F00\u59CB\u3010\u4EAC\u4E1C\u8D26\u53F7","\u3011","\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A\x2A","\u3010\u63D0\u793A\u3011\x63\x6F\x6F\x6B\x69\x65\u5DF2\u5931\u6548","\u4EAC\u4E1C\u8D26\u53F7","\x20","\x5C\x6E\u8BF7\u91CD\u65B0\u767B\u5F55\u83B7\u53D6\x5C\x6E\x68\x74\x74\x70\x73\x3A\x2F\x2F\x62\x65\x61\x6E\x2E\x6D\x2E\x6A\x64\x2E\x63\x6F\x6D\x2F\x62\x65\x61\x6E\x2F\x73\x69\x67\x6E\x49\x6E\x64\x65\x78\x2E\x61\x63\x74\x69\x6F\x6E","\x63\x6F\x6F\x6B\x69\x65\u5DF2\u5931\u6548\x20\x2D\x20","\x5C\x6E\u8BF7\u91CD\u65B0\u767B\u5F55\u83B7\u53D6\x63\x6F\x6F\x6B\x69\x65","\x73\x65\x6E\x64\x4E\x6F\x74\x69\x66\x79","\x62\x6C\x61\x63\x6B\x46\x6C\x61\x67","\x61\x72\x65\x61","\x31\x32\x5F\x39\x38\x34\x5F\x31","\x5F","\x73\x6F\x75\x72\x63\x65","\x68\x61\x6C\x6C\x5F\x31\x31\x31\x31","\x61\x63\x74\x69\x76\x69\x74\x79\x49\x64","\x65\x6E\x63\x72\x79\x70\x74\x50\x72\x6F\x6A\x65\x63\x74\x49\x64","\x63\x6F\x6D\x70\x6C\x65\x74\x69\x6F\x6E\x46\x6C\x61\x67","\u5DF2\u5B8C\u6210","\u53BB\u505A\x3A\x20","\x61\x73\x73\x69\x67\x6E\x6D\x65\x6E\x74\x4E\x61\x6D\x65","\x65\x6E\x63\x72\x79\x70\x74\x41\x73\x73\x69\x67\x6E\x6D\x65\x6E\x74\x49\x64","\u53EF\u80FD\u662F\u9ED1\u53F7\uFF0C\x20\u8DF3\u8FC7\u6B64\u8D26\u53F7","\x68\x74\x74\x70\x73\x3A\x2F\x2F\x61\x70\x69\x2E\x6D\x2E\x6A\x64\x2E\x63\x6F\x6D\x2F\x3F\x63\x6C\x69\x65\x6E\x74\x3D\x77\x68\x35\x26\x61\x70\x70\x69\x64\x3D\x50\x72\x6F\x64\x75\x63\x74\x5A\x34\x42\x72\x61\x6E\x64\x26\x66\x75\x6E\x63\x74\x69\x6F\x6E\x49\x64\x3D\x73\x75\x70\x65\x72\x42\x72\x61\x6E\x64\x53\x65\x63\x6F\x6E\x64\x46\x6C\x6F\x6F\x72\x4D\x61\x69\x6E\x50\x61\x67\x65\x26\x74\x3D","\x6E\x6F\x77","\x26\x62\x6F\x64\x79\x3D\x25\x37\x42\x25\x32\x32\x73\x6F\x75\x72\x63\x65\x25\x32\x32\x3A\x25\x32\x32\x68\x61\x6C\x6C\x5F\x31\x31\x31\x31\x25\x32\x32\x2C\x25\x32\x32\x61\x63\x74\x69\x76\x69\x74\x79\x49\x64\x25\x32\x32\x3A","\x25\x37\x44","\x61\x70\x70\x6C\x69\x63\x61\x74\x69\x6F\x6E\x2F\x6A\x73\x6F\x6E\x2C\x20\x74\x65\x78\x74\x2F\x70\x6C\x61\x69\x6E\x2C\x20\x2A\x2F\x2A","\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","\x68\x74\x74\x70\x73\x3A\x2F\x2F\x70\x72\x6F\x64\x65\x76\x2E\x6D\x2E\x6A\x64\x2E\x63\x6F\x6D\x2F\x6D\x61\x6C\x6C\x2F\x61\x63\x74\x69\x76\x65\x2F\x72\x77\x38\x65\x77\x4D\x7A\x73\x44\x4D\x65\x76\x70\x56\x6E\x75\x43\x4A\x37\x45\x67\x58\x53\x34\x50\x4D\x39\x2F\x69\x6E\x64\x65\x78\x2E\x68\x74\x6D\x6C","\x68\x74\x74\x70\x73\x3A\x2F\x2F\x70\x72\x6F\x64\x65\x76\x2E\x6D\x2E\x6A\x64\x2E\x63\x6F\x6D","\x55\x41","\x7A\x68\x2D\x48\x61\x6E\x73\x2D\x43\x4E\x3B\x71\x3D\x31","\x73\x74\x72\x69\x6E\x67\x69\x66\x79","\x20\x73\x75\x70\x65\x72\x42\x72\x61\x6E\x64\x53\x65\x63\x6F\x6E\x64\x46\x6C\x6F\x6F\x72\x4D\x61\x69\x6E\x50\x61\x67\x65\u8BF7\u6C42\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u8DEF\u91CD\u8BD5","\x70\x61\x72\x73\x65","\x63\x6F\x64\x65","\x64\x61\x74\x61","\x62\x69\x7A\x43\x6F\x64\x65","\x73\x75\x63\x63\x65\x73\x73","\x61\x63\x74\x69\x76\x69\x74\x79\x42\x61\x73\x65\x49\x6E\x66\x6F","\x72\x65\x73\x75\x6C\x74","\x6C\x6F\x67\x45\x72\x72","\x70\x6F\x73\x74","\x68\x74\x74\x70\x73\x3A\x2F\x2F\x61\x70\x69\x2E\x6D\x2E\x6A\x64\x2E\x63\x6F\x6D\x2F\x3F\x63\x6C\x69\x65\x6E\x74\x3D\x77\x68\x35\x26\x61\x70\x70\x69\x64\x3D\x50\x72\x6F\x64\x75\x63\x74\x5A\x34\x42\x72\x61\x6E\x64\x26\x66\x75\x6E\x63\x74\x69\x6F\x6E\x49\x64\x3D\x73\x75\x70\x65\x72\x42\x72\x61\x6E\x64\x54\x61\x73\x6B\x4C\x69\x73\x74\x26\x74\x3D","\x20\x73\x75\x70\x65\x72\x42\x72\x61\x6E\x64\x54\x61\x73\x6B\x4C\x69\x73\x74\u8BF7\u6C42\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u8DEF\u91CD\u8BD5","\x68\x74\x74\x70\x73\x3A\x2F\x2F\x61\x70\x69\x2E\x6D\x2E\x6A\x64\x2E\x63\x6F\x6D\x2F\x3F\x63\x6C\x69\x65\x6E\x74\x3D\x77\x68\x35\x26\x61\x70\x70\x69\x64\x3D\x50\x72\x6F\x64\x75\x63\x74\x5A\x34\x42\x72\x61\x6E\x64\x26\x66\x75\x6E\x63\x74\x69\x6F\x6E\x49\x64\x3D\x73\x75\x70\x65\x72\x42\x72\x61\x6E\x64\x44\x6F\x54\x61\x73\x6B\x26\x74\x3D","\x2C\x25\x32\x32\x63\x6F\x6D\x70\x6C\x65\x74\x69\x6F\x6E\x46\x6C\x61\x67\x25\x32\x32\x3A\x31\x2C\x25\x32\x32\x65\x6E\x63\x72\x79\x70\x74\x50\x72\x6F\x6A\x65\x63\x74\x49\x64\x25\x32\x32\x3A\x25\x32\x32","\x25\x32\x32\x2C\x25\x32\x32\x65\x6E\x63\x72\x79\x70\x74\x41\x73\x73\x69\x67\x6E\x6D\x65\x6E\x74\x49\x64\x25\x32\x32\x3A\x25\x32\x32","\x25\x32\x32\x2C\x25\x32\x32\x61\x73\x73\x69\x67\x6E\x6D\x65\x6E\x74\x54\x79\x70\x65\x25\x32\x32\x3A\x30\x2C\x25\x32\x32\x61\x63\x74\x69\x6F\x6E\x54\x79\x70\x65\x25\x32\x32\x3A\x30\x25\x37\x44","\x20\x73\x75\x70\x65\x72\x42\x72\x61\x6E\x64\x44\x6F\x54\x61\x73\x6B\u8BF7\u6C42\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u8DEF\u91CD\u8BD5","\x72\x65\x77\x61\x72\x64\x73","\x61\x77\x61\x72\x64\x4E\x61\x6D\x65","\u83B7\u5F97\x3A\x20","\x62\x65\x61\x6E\x4E\x75\x6D","\u4EAC\u8C46","\u6CA1\u4E2D\u5230\uFF01","\x62\x69\x7A\x4D\x73\x67","\x6F\x62\x6A\x65\x63\x74","\u4EAC\u4E1C\u670D\u52A1\u5668\u8BBF\u95EE\u6570\u636E\u4E3A\u7A7A\uFF0C\u8BF7\u68C0\u67E5\u81EA\u8EAB\u8BBE\u5907\u7F51\u7EDC\u60C5\u51B5","\x73\x74\x72\x69\x6E\x67","\u8BF7\u52FF\u968F\u610F\u5728\x42\x6F\x78\x4A\x73\u8F93\u5165\u6846\u4FEE\u6539\u5185\u5BB9\x0A\u5EFA\u8BAE\u901A\u8FC7\u811A\u672C\u53BB\u83B7\u53D6\x63\x6F\x6F\x6B\x69\x65","\x6A\x64\x61\x70\x70\x3B\x69\x50\x68\x6F\x6E\x65\x3B\x31\x30\x2E\x34\x2E\x35\x3B\x31\x33\x2E\x31\x2E\x32\x3B","\x3B\x6E\x65\x74\x77\x6F\x72\x6B\x2F\x77\x69\x66\x69\x3B\x6D\x6F\x64\x65\x6C\x2F\x69\x50\x68\x6F\x6E\x65\x38\x2C\x31\x3B\x61\x64\x64\x72\x65\x73\x73\x69\x64\x2F\x32\x33\x30\x38\x34\x36\x30\x36\x31\x31\x3B\x61\x70\x70\x42\x75\x69\x6C\x64\x2F\x31\x36\x37\x38\x31\x34\x3B\x6A\x64\x53\x75\x70\x70\x6F\x72\x74\x44\x61\x72\x6B\x4D\x6F\x64\x65\x2F\x30\x3B\x4D\x6F\x7A\x69\x6C\x6C\x61\x2F\x35\x2E\x30\x20\x28\x69\x50\x68\x6F\x6E\x65\x3B\x20\x43\x50\x55\x20\x69\x50\x68\x6F\x6E\x65\x20\x4F\x53\x20\x31\x33\x5F\x31\x5F\x32\x20\x6C\x69\x6B\x65\x20\x4D\x61\x63\x20\x4F\x53\x20\x58\x29\x20\x41\x70\x70\x6C\x65\x57\x65\x62\x4B\x69\x74\x2F\x36\x30\x35\x2E\x31\x2E\x31\x35\x20\x28\x4B\x48\x54\x4D\x4C\x2C\x20\x6C\x69\x6B\x65\x20\x47\x65\x63\x6B\x6F\x29\x20\x4D\x6F\x62\x69\x6C\x65\x2F\x31\x35\x45\x31\x34\x38\x3B\x73\x75\x70\x70\x6F\x72\x74\x4A\x44\x53\x48\x57\x4B\x2F\x31","\x61\x62\x63\x64\x65\x66\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39","\x66\x6C\x6F\x6F\x72","\x63\x68\x61\x72\x41\x74","\x30","\x31","\x32","\x33","\x34","\x35","\x36","\x37","\x38","\x39","\x61","\x62","\x63","\x64","\x65","\x66","\x67","\x68","\x69","\x6A","\x6B","\x6C","\x6D","\x6E","\x6F","\x70","\x71","\x72","\x73","\x74","\x75","\x76","\x77","\x78","\x79","\x7A","\x72\x6F\x75\x6E\x64","\x78\x78\x78\x78\x78\x78\x78\x78\x78\x78\x78\x78\x78\x78\x78\x78\x78\x78\x78\x78\x78\x78\x78\x78\x78\x78\x78\x78\x78\x78\x78\x78\x78\x78\x78\x78\x78\x78\x78\x78","\x74\x6F\x55\x70\x70\x65\x72\x43\x61\x73\x65","\x72\x65\x70\x6C\x61\x63\x65","\x68\x74\x74\x70\x3A\x2F\x2F\x68\x7A\x2E\x66\x65\x76\x65\x72\x72\x75\x6E\x2E\x74\x6F\x70\x3A\x39\x39\x2F\x73\x68\x61\x72\x65\x2F\x67\x65\x74\x2F\x61\x75\x74\x68\x6F\x72\x3F\x66\x6C\x61\x67\x3D\x70\x70\x64\x74","\u8BF7\u6C42\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u8DEF","\x67\x65\x74","\x6A\x64\x6C\x74\x61\x70\x70\x3B\x61\x6E\x64\x72\x6F\x69\x64\x3B\x33\x2E\x38\x2E\x31\x30\x3B\x31\x30\x3B\x6E\x65\x74\x77\x6F\x72\x6B\x2F\x77\x69\x66\x69\x3B\x6D\x6F\x64\x65\x6C\x2F\x4D\x49\x20\x38\x3B\x61\x64\x64\x72\x65\x73\x73\x69\x64\x2F\x31\x39\x36\x39\x39\x39\x38\x30\x35\x39\x3B\x61\x69\x64\x2F\x38\x35\x36\x36\x39\x37\x32\x64\x66\x64\x39\x61\x37\x39\x35\x64\x3B\x6F\x61\x69\x64\x2F\x34\x61\x38\x62\x37\x37\x33\x63\x33\x65\x33\x30\x37\x33\x38\x36\x3B\x6F\x73\x56\x65\x72\x2F\x32\x39\x3B\x61\x70\x70\x42\x75\x69\x6C\x64\x2F\x31\x34\x33\x36\x3B\x70\x73\x6E\x2F\x50\x68\x59\x62\x55\x74\x43\x73\x43\x4A\x6F\x72\x31\x62\x38\x68\x77\x78\x6A\x6E\x59\x38\x72\x45\x76\x35\x53\x38\x58\x43\x7C\x33\x38\x33\x3B\x70\x73\x71\x2F\x31\x34\x3B\x61\x64\x6B\x2F\x3B\x61\x64\x73\x2F\x3B\x70\x61\x70\x2F\x4A\x41\x32\x30\x32\x30\x5F\x33\x31\x31\x32\x35\x33\x31\x7C\x33\x2E\x38\x2E\x31\x30\x7C\x41\x4E\x44\x52\x4F\x49\x44\x20\x31\x30\x3B\x6F\x73\x76\x2F\x31\x30\x3B\x70\x76\x2F\x33\x37\x34\x2E\x31\x34\x3B\x6A\x64\x76\x2F\x30\x7C\x69\x6F\x73\x61\x70\x70\x7C\x74\x5F\x33\x33\x35\x31\x33\x39\x37\x37\x34\x7C\x6C\x69\x74\x65\x73\x68\x61\x72\x65\x7C\x43\x6F\x70\x79\x55\x52\x4C\x7C\x31\x36\x30\x39\x33\x30\x36\x35\x39\x30\x31\x37\x35\x7C\x31\x36\x30\x39\x33\x30\x36\x35\x39\x36\x3B\x72\x65\x66\x2F\x63\x6F\x6D\x2E\x6A\x64\x2E\x6A\x64\x6C\x69\x74\x65\x2E\x6C\x69\x62\x2E\x6A\x64\x6C\x69\x74\x65\x6D\x65\x73\x73\x61\x67\x65\x2E\x76\x69\x65\x77\x2E\x61\x63\x74\x69\x76\x69\x74\x79\x2E\x4D\x65\x73\x73\x61\x67\x65\x43\x65\x6E\x74\x65\x72\x4D\x61\x69\x6E\x41\x63\x74\x69\x76\x69\x74\x79\x3B\x70\x61\x72\x74\x6E\x65\x72\x2F\x6A\x73\x78\x64\x6C\x79\x71\x6A\x30\x39\x3B\x61\x70\x70\x72\x70\x64\x2F\x4D\x65\x73\x73\x61\x67\x65\x43\x65\x6E\x74\x65\x72\x5F\x4D\x65\x73\x73\x61\x67\x65\x4D\x65\x72\x67\x65\x3B\x65\x75\x66\x76\x2F\x31\x3B\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\x31\x30\x3B\x20\x4D\x49\x20\x38\x20\x42\x75\x69\x6C\x64\x2F\x51\x4B\x51\x31\x2E\x31\x39\x30\x38\x32\x38\x2E\x30\x30\x32\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\x36\x36\x2E\x30\x2E\x33\x33\x35\x39\x2E\x31\x32\x36\x20\x4D\x51\x51\x42\x72\x6F\x77\x73\x65\x72\x2F\x36\x2E\x32\x20\x54\x42\x53\x2F\x30\x34\x35\x31\x34\x30\x20\x4D\x6F\x62\x69\x6C\x65\x20\x53\x61\x66\x61\x72\x69\x2F\x35\x33\x37\x2E\x33\x36","\x41","\x42","\x43","\x44","\x45","\x46","\x47","\x48","\x49","\x4A","\x4B","\x4C","\x4D","\x4E","\x4F","\x50","\x51","\x52","\x53","\x54","\x55","\x56","\x57","\x58","\x59","\x5A","\x75\x6E\x64\x65\x66\x69\x6E\x65\x64","\u5220\u9664","\u7248\u672C\u53F7\uFF0C\x6A\x73\u4F1A\u5B9A","\u671F\u5F39\u7A97\uFF0C","\u8FD8\u8BF7\u652F\u6301\u6211\u4EEC\u7684\u5DE5\u4F5C","\x6A\x73\x6A\x69\x61","\x6D\x69\x2E\x63\x6F\x6D"];const notify=$[__Oxfaca0[0x0]]()?require(__Oxfaca0[0x1]):__Oxfaca0[0x2];const jdCookieNode=$[__Oxfaca0[0x0]]()?require(__Oxfaca0[0x3]):__Oxfaca0[0x2];let cookiesArr=[],cookie=__Oxfaca0[0x2],message;if($[__Oxfaca0[0x0]]()){Object[__Oxfaca0[0x6]](jdCookieNode)[__Oxfaca0[0x5]]((_0x7f92x6)=>{cookiesArr[__Oxfaca0[0x4]](jdCookieNode[_0x7f92x6])});if(process[__Oxfaca0[0x8]][__Oxfaca0[0x7]]&& process[__Oxfaca0[0x8]][__Oxfaca0[0x7]]=== __Oxfaca0[0x9]){console[__Oxfaca0[0xa]]= ()=>{}}}else {cookiesArr= [$[__Oxfaca0[0xd]](__Oxfaca0[0xc]),$[__Oxfaca0[0xd]](__Oxfaca0[0xe]),...jsonParse($[__Oxfaca0[0xd]](__Oxfaca0[0x11])|| __Oxfaca0[0x12])[__Oxfaca0[0x10]]((_0x7f92x6)=>{return _0x7f92x6[__Oxfaca0[0xf]]})][__Oxfaca0[0xb]]((_0x7f92x6)=>{return !!_0x7f92x6})};$[__Oxfaca0[0x13]]= [];!(async ()=>{if(!cookiesArr[0x0]){$[__Oxfaca0[0x1d]]($[__Oxfaca0[0x17]],__Oxfaca0[0x1b],__Oxfaca0[0x1c],{"\x6F\x70\x65\x6E\x2D\x75\x72\x6C":__Oxfaca0[0x1c]});return};console[__Oxfaca0[0xa]](__Oxfaca0[0x1e]); await $[__Oxfaca0[0x20]](parseInt(Math[__Oxfaca0[0x1f]]()* 2500+ 1000,10));let _0x7f92x8= await getId();if(_0x7f92x8== __Oxfaca0[0x2]){console[__Oxfaca0[0xa]](`${__Oxfaca0[0x21]}`);return};activityIds= [_0x7f92x8];for(let _0x7f92x9=0;_0x7f92x9< cookiesArr[__Oxfaca0[0x22]];_0x7f92x9++){if(cookiesArr[_0x7f92x9]){cookie= cookiesArr[_0x7f92x9];$[__Oxfaca0[0x23]]= decodeURIComponent(cookie[__Oxfaca0[0x24]](/pt_pin=([^; ]+)(?=;?)/)&& cookie[__Oxfaca0[0x24]](/pt_pin=([^; ]+)(?=;?)/)[0x1]);$[__Oxfaca0[0x25]]= _0x7f92x9+ 1;$[__Oxfaca0[0x26]]= true;$[__Oxfaca0[0x27]]= __Oxfaca0[0x2];$[__Oxfaca0[0x28]]= getUUID(__Oxfaca0[0x29]);$[__Oxfaca0[0x2a]]= getUUIDSTR(16);message= __Oxfaca0[0x2];console[__Oxfaca0[0xa]](`${__Oxfaca0[0x2b]}${$[__Oxfaca0[0x25]]}${__Oxfaca0[0x2c]}${$[__Oxfaca0[0x27]]|| $[__Oxfaca0[0x23]]}${__Oxfaca0[0x2d]}`);if(!$[__Oxfaca0[0x26]]){$[__Oxfaca0[0x1d]]($[__Oxfaca0[0x17]],`${__Oxfaca0[0x2e]}`,`${__Oxfaca0[0x2f]}${$[__Oxfaca0[0x25]]}${__Oxfaca0[0x30]}${$[__Oxfaca0[0x27]]|| $[__Oxfaca0[0x23]]}${__Oxfaca0[0x31]}`,{"\x6F\x70\x65\x6E\x2D\x75\x72\x6C":__Oxfaca0[0x1c]});if($[__Oxfaca0[0x0]]()){ await notify[__Oxfaca0[0x34]](`${__Oxfaca0[0x2]}${$[__Oxfaca0[0x17]]}${__Oxfaca0[0x32]}${$[__Oxfaca0[0x23]]}${__Oxfaca0[0x2]}`,`${__Oxfaca0[0x2f]}${$[__Oxfaca0[0x25]]}${__Oxfaca0[0x30]}${$[__Oxfaca0[0x23]]}${__Oxfaca0[0x33]}`)};continue};$[__Oxfaca0[0x35]]= false;for(let _0x7f92xa=0;_0x7f92xa< activityIds[__Oxfaca0[0x22]];_0x7f92xa++){ await getUA();$[__Oxfaca0[0x36]]= `${__Oxfaca0[0x37]}${parseInt(Math[__Oxfaca0[0x1f]]()* 4444+ 1000,10)}${__Oxfaca0[0x38]}${parseInt(Math[__Oxfaca0[0x1f]]()* 55555+ 10000,10)}${__Oxfaca0[0x2]}`; await $[__Oxfaca0[0x20]](parseInt(Math[__Oxfaca0[0x1f]]()* 1500+ 1000,10));$[__Oxfaca0[0x39]]= __Oxfaca0[0x3a];$[__Oxfaca0[0x3b]]= activityIds[_0x7f92xa]; await superBrandSecondFloorMainPage($[__Oxfaca0[0x3b]]); await $[__Oxfaca0[0x20]](parseInt(Math[__Oxfaca0[0x1f]]()* 1000+ 500,10)); await superBrandTaskList($[__Oxfaca0[0x3b]]);if(!$[__Oxfaca0[0x3c]]){ await $[__Oxfaca0[0x20]](parseInt(Math[__Oxfaca0[0x1f]]()* 500+ 500,10));continue}; await $[__Oxfaca0[0x20]](parseInt(Math[__Oxfaca0[0x1f]]()* 1000+ 1000,10));if($[__Oxfaca0[0x13]][__Oxfaca0[0x22]]>= 1){for(let _0x7f92xb of $[__Oxfaca0[0x13]]){if(_0x7f92xb[__Oxfaca0[0x3d]]== true){console[__Oxfaca0[0xa]](`${__Oxfaca0[0x3e]}`)}else {console[__Oxfaca0[0xa]](`${__Oxfaca0[0x3f]}${_0x7f92xb[__Oxfaca0[0x40]]}${__Oxfaca0[0x2]}`);$[__Oxfaca0[0x41]]= _0x7f92xb[__Oxfaca0[0x41]]; await superBrandDoTask();if($[__Oxfaca0[0x35]]== true){break}; await $[__Oxfaca0[0x20]](parseInt(Math[__Oxfaca0[0x1f]]()* 1200+ 1200,10))}}}else {continue};if($[__Oxfaca0[0x35]]== true){break}};if($[__Oxfaca0[0x35]]== true){console[__Oxfaca0[0xa]](`${__Oxfaca0[0x42]}`);continue}}; await $[__Oxfaca0[0x20]](parseInt(Math[__Oxfaca0[0x1f]]()* 2500+ 2500,10))}})()[__Oxfaca0[0x1a]]((_0x7f92x7)=>{$[__Oxfaca0[0xa]](__Oxfaca0[0x2],`${__Oxfaca0[0x16]}${$[__Oxfaca0[0x17]]}${__Oxfaca0[0x18]}${_0x7f92x7}${__Oxfaca0[0x19]}`,__Oxfaca0[0x2])})[__Oxfaca0[0x15]](()=>{$[__Oxfaca0[0x14]]()});async function superBrandSecondFloorMainPage(_0x7f92xd){return new Promise((_0x7f92xe)=>{options= {url:`${__Oxfaca0[0x43]}${Date[__Oxfaca0[0x44]]()}${__Oxfaca0[0x45]}${_0x7f92xd}${__Oxfaca0[0x46]}`,headers:{'\x61\x63\x63\x65\x70\x74':__Oxfaca0[0x47],'\x63\x6F\x6E\x74\x65\x6E\x74\x2D\x74\x79\x70\x65':__Oxfaca0[0x48],"\x52\x65\x66\x65\x72\x65\x72":__Oxfaca0[0x49],"\x6F\x72\x69\x67\x69\x6E":__Oxfaca0[0x4a],"\x55\x73\x65\x72\x2D\x41\x67\x65\x6E\x74":$[__Oxfaca0[0x4b]],'\x61\x63\x63\x65\x70\x74\x2D\x6C\x61\x6E\x67\x75\x61\x67\x65':__Oxfaca0[0x4c],'\x63\x6F\x6F\x6B\x69\x65':cookie}};$[__Oxfaca0[0x57]](options,async (_0x7f92xf,_0x7f92x10,_0x7f92x11)=>{try{if(_0x7f92xf){console[__Oxfaca0[0xa]](`${__Oxfaca0[0x2]}${JSON[__Oxfaca0[0x4d]](_0x7f92xf)}${__Oxfaca0[0x2]}`);console[__Oxfaca0[0xa]](`${__Oxfaca0[0x2]}${$[__Oxfaca0[0x17]]}${__Oxfaca0[0x4e]}`)}else {res= JSON[__Oxfaca0[0x4f]](_0x7f92x11);if(res[__Oxfaca0[0x50]]== 0&& res[__Oxfaca0[0x51]]){if(res[__Oxfaca0[0x51]][__Oxfaca0[0x52]]== 0&& res[__Oxfaca0[0x51]][__Oxfaca0[0x53]]== true){try{$[__Oxfaca0[0x54]]= res[__Oxfaca0[0x51]][__Oxfaca0[0x55]][__Oxfaca0[0x54]];$[__Oxfaca0[0x3c]]= $[__Oxfaca0[0x54]][__Oxfaca0[0x3c]]}catch(e){$[__Oxfaca0[0x3c]]= __Oxfaca0[0x2]}}}}}catch(e){$[__Oxfaca0[0x56]](e,_0x7f92x10)}finally{_0x7f92xe()}})})}async function superBrandTaskList(_0x7f92xd){return new Promise((_0x7f92xe)=>{options= {url:`${__Oxfaca0[0x58]}${Date[__Oxfaca0[0x44]]()}${__Oxfaca0[0x45]}${_0x7f92xd}${__Oxfaca0[0x46]}`,headers:{'\x61\x63\x63\x65\x70\x74':__Oxfaca0[0x47],'\x63\x6F\x6E\x74\x65\x6E\x74\x2D\x74\x79\x70\x65':__Oxfaca0[0x48],"\x52\x65\x66\x65\x72\x65\x72":__Oxfaca0[0x49],"\x6F\x72\x69\x67\x69\x6E":__Oxfaca0[0x4a],"\x55\x73\x65\x72\x2D\x41\x67\x65\x6E\x74":$[__Oxfaca0[0x4b]],'\x61\x63\x63\x65\x70\x74\x2D\x6C\x61\x6E\x67\x75\x61\x67\x65':__Oxfaca0[0x4c],'\x63\x6F\x6F\x6B\x69\x65':cookie}};$[__Oxfaca0[0x57]](options,async (_0x7f92xf,_0x7f92x10,_0x7f92x11)=>{try{if(_0x7f92xf){console[__Oxfaca0[0xa]](`${__Oxfaca0[0x2]}${JSON[__Oxfaca0[0x4d]](_0x7f92xf)}${__Oxfaca0[0x2]}`);console[__Oxfaca0[0xa]](`${__Oxfaca0[0x2]}${$[__Oxfaca0[0x17]]}${__Oxfaca0[0x59]}`)}else {res= JSON[__Oxfaca0[0x4f]](_0x7f92x11);if(res[__Oxfaca0[0x50]]== 0&& res[__Oxfaca0[0x51]]){if(res[__Oxfaca0[0x51]][__Oxfaca0[0x52]]== 0&& res[__Oxfaca0[0x51]][__Oxfaca0[0x53]]== true){$[__Oxfaca0[0x55]]= res[__Oxfaca0[0x51]][__Oxfaca0[0x55]];try{$[__Oxfaca0[0x13]]= $[__Oxfaca0[0x55]][__Oxfaca0[0x13]]}catch(e){$[__Oxfaca0[0x13]]= []}}}}}catch(e){$[__Oxfaca0[0x56]](e,_0x7f92x10)}finally{_0x7f92xe()}})})}async function superBrandDoTask(){return new Promise((_0x7f92xe)=>{options= {url:`${__Oxfaca0[0x5a]}${Date[__Oxfaca0[0x44]]()}${__Oxfaca0[0x45]}${$[__Oxfaca0[0x3b]]}${__Oxfaca0[0x5b]}${$[__Oxfaca0[0x3c]]}${__Oxfaca0[0x5c]}${$[__Oxfaca0[0x41]]}${__Oxfaca0[0x5d]}`,headers:{'\x61\x63\x63\x65\x70\x74':__Oxfaca0[0x47],'\x63\x6F\x6E\x74\x65\x6E\x74\x2D\x74\x79\x70\x65':__Oxfaca0[0x48],"\x52\x65\x66\x65\x72\x65\x72":__Oxfaca0[0x49],"\x6F\x72\x69\x67\x69\x6E":__Oxfaca0[0x4a],"\x55\x73\x65\x72\x2D\x41\x67\x65\x6E\x74":$[__Oxfaca0[0x4b]],'\x61\x63\x63\x65\x70\x74\x2D\x6C\x61\x6E\x67\x75\x61\x67\x65':__Oxfaca0[0x4c],'\x63\x6F\x6F\x6B\x69\x65':cookie}};$[__Oxfaca0[0x57]](options,async (_0x7f92xf,_0x7f92x10,_0x7f92x11)=>{try{if(_0x7f92xf){console[__Oxfaca0[0xa]](`${__Oxfaca0[0x2]}${JSON[__Oxfaca0[0x4d]](_0x7f92xf)}${__Oxfaca0[0x2]}`);console[__Oxfaca0[0xa]](`${__Oxfaca0[0x2]}${$[__Oxfaca0[0x17]]}${__Oxfaca0[0x5e]}`)}else {res= JSON[__Oxfaca0[0x4f]](_0x7f92x11);if(res[__Oxfaca0[0x50]]== 0&& res[__Oxfaca0[0x51]]){if(res[__Oxfaca0[0x51]][__Oxfaca0[0x52]]== 0&& res[__Oxfaca0[0x51]][__Oxfaca0[0x53]]== true){$[__Oxfaca0[0x55]]= res[__Oxfaca0[0x51]][__Oxfaca0[0x55]];try{if($[__Oxfaca0[0x55]][__Oxfaca0[0x5f]]){console[__Oxfaca0[0xa]](`${__Oxfaca0[0x2]}${$[__Oxfaca0[0x55]][__Oxfaca0[0x5f]][0x0][__Oxfaca0[0x60]]}${__Oxfaca0[0x2]}`);console[__Oxfaca0[0xa]](`${__Oxfaca0[0x61]}${$[__Oxfaca0[0x55]][__Oxfaca0[0x5f]][0x0][__Oxfaca0[0x62]]}${__Oxfaca0[0x63]}`)}}catch(e){$[__Oxfaca0[0x35]]= true;console[__Oxfaca0[0xa]](`${__Oxfaca0[0x64]}`)}}else {console[__Oxfaca0[0xa]](`${__Oxfaca0[0x2]}${res[__Oxfaca0[0x51]][__Oxfaca0[0x65]]}${__Oxfaca0[0x2]}`)}}}}catch(e){$[__Oxfaca0[0x56]](e,_0x7f92x10)}finally{_0x7f92xe()}})})}function safeGet(_0x7f92x11){try{if( typeof JSON[__Oxfaca0[0x4f]](_0x7f92x11)== __Oxfaca0[0x66]){return true}}catch(e){console[__Oxfaca0[0xa]](e);console[__Oxfaca0[0xa]](`${__Oxfaca0[0x67]}`);return false}}function jsonParse(_0x7f92x16){if( typeof _0x7f92x16== __Oxfaca0[0x68]){try{return JSON[__Oxfaca0[0x4f]](_0x7f92x16)}catch(e){console[__Oxfaca0[0xa]](e);$[__Oxfaca0[0x1d]]($[__Oxfaca0[0x17]],__Oxfaca0[0x2],__Oxfaca0[0x69]);return []}}}async function getUA(){$[__Oxfaca0[0x4b]]= `${__Oxfaca0[0x6a]}${randomString(40)}${__Oxfaca0[0x6b]}`}function randomString(_0x7f92x7){_0x7f92x7= _0x7f92x7|| 32;let _0x7f92x19=__Oxfaca0[0x6c],_0x7f92x1a=_0x7f92x19[__Oxfaca0[0x22]],_0x7f92x1b=__Oxfaca0[0x2];for(i= 0;i< _0x7f92x7;i++){_0x7f92x1b+= _0x7f92x19[__Oxfaca0[0x6e]](Math[__Oxfaca0[0x6d]](Math[__Oxfaca0[0x1f]]()* _0x7f92x1a))};return _0x7f92x1b}function randomWord(_0x7f92x1d,_0x7f92x1e,_0x7f92x1f){var _0x7f92x16=__Oxfaca0[0x2],_0x7f92x20=_0x7f92x1e,_0x7f92x21=[__Oxfaca0[0x6f],__Oxfaca0[0x70],__Oxfaca0[0x71],__Oxfaca0[0x72],__Oxfaca0[0x73],__Oxfaca0[0x74],__Oxfaca0[0x75],__Oxfaca0[0x76],__Oxfaca0[0x77],__Oxfaca0[0x78],__Oxfaca0[0x79],__Oxfaca0[0x7a],__Oxfaca0[0x7b],__Oxfaca0[0x7c],__Oxfaca0[0x7d],__Oxfaca0[0x7e],__Oxfaca0[0x7f],__Oxfaca0[0x80],__Oxfaca0[0x81],__Oxfaca0[0x82],__Oxfaca0[0x83],__Oxfaca0[0x84],__Oxfaca0[0x85],__Oxfaca0[0x86],__Oxfaca0[0x87],__Oxfaca0[0x88],__Oxfaca0[0x89],__Oxfaca0[0x8a],__Oxfaca0[0x8b],__Oxfaca0[0x8c],__Oxfaca0[0x8d],__Oxfaca0[0x8e],__Oxfaca0[0x8f],__Oxfaca0[0x90],__Oxfaca0[0x91],__Oxfaca0[0x92]];if(_0x7f92x1d){_0x7f92x20= Math[__Oxfaca0[0x93]](Math[__Oxfaca0[0x1f]]()* (_0x7f92x1f- _0x7f92x1e))+ _0x7f92x1e};for(var _0x7f92x9=0;_0x7f92x9< _0x7f92x20;_0x7f92x9++){pos= Math[__Oxfaca0[0x93]](Math[__Oxfaca0[0x1f]]()* (_0x7f92x21[__Oxfaca0[0x22]]- 1));_0x7f92x16+= _0x7f92x21[pos]};return _0x7f92x16}function getUUID(_0x7f92x23= __Oxfaca0[0x94],_0x7f92x19= 0){return _0x7f92x23[__Oxfaca0[0x96]](/[xy]/g,function(_0x7f92x23){var _0x7f92x24=16* Math[__Oxfaca0[0x1f]]()| 0,_0x7f92x1b=__Oxfaca0[0x90]== _0x7f92x23?_0x7f92x24:3& _0x7f92x24| 8;return uuid= _0x7f92x19?_0x7f92x1b.toString(36)[__Oxfaca0[0x95]]():_0x7f92x1b.toString(36),uuid})}function getId(){return new Promise((_0x7f92xe)=>{$[__Oxfaca0[0x99]]({url:`${__Oxfaca0[0x97]}`,timeout:60000},(_0x7f92xf,_0x7f92x10,_0x7f92x11)=>{try{if(_0x7f92xf){console[__Oxfaca0[0xa]](`${__Oxfaca0[0x98]}`)}else {try{_0x7f92x11= _0x7f92x11}catch(e){_0x7f92x11= __Oxfaca0[0x2]}}}catch(e){}finally{_0x7f92xe(_0x7f92x11|| __Oxfaca0[0x2])}})})}function getJSUA(){return __Oxfaca0[0x9a]}function getUUIDSTR(_0x7f92x1b){let _0x7f92xb=[__Oxfaca0[0x6f],__Oxfaca0[0x70],__Oxfaca0[0x71],__Oxfaca0[0x72],__Oxfaca0[0x73],__Oxfaca0[0x74],__Oxfaca0[0x75],__Oxfaca0[0x76],__Oxfaca0[0x77],__Oxfaca0[0x78],__Oxfaca0[0x9b],__Oxfaca0[0x9c],__Oxfaca0[0x9d],__Oxfaca0[0x9e],__Oxfaca0[0x9f],__Oxfaca0[0xa0],__Oxfaca0[0xa1],__Oxfaca0[0xa2],__Oxfaca0[0xa3],__Oxfaca0[0xa4],__Oxfaca0[0xa5],__Oxfaca0[0xa6],__Oxfaca0[0xa7],__Oxfaca0[0xa8],__Oxfaca0[0xa9],__Oxfaca0[0xaa],__Oxfaca0[0xab],__Oxfaca0[0xac],__Oxfaca0[0xad],__Oxfaca0[0xae],__Oxfaca0[0xaf],__Oxfaca0[0xb0],__Oxfaca0[0xb1],__Oxfaca0[0xb2],__Oxfaca0[0xb3],__Oxfaca0[0xb4],__Oxfaca0[0x79],__Oxfaca0[0x7a],__Oxfaca0[0x7b],__Oxfaca0[0x7c],__Oxfaca0[0x7d],__Oxfaca0[0x7e],__Oxfaca0[0x7f],__Oxfaca0[0x80],__Oxfaca0[0x81],__Oxfaca0[0x82],__Oxfaca0[0x83],__Oxfaca0[0x84],__Oxfaca0[0x85],__Oxfaca0[0x86],__Oxfaca0[0x87],__Oxfaca0[0x88],__Oxfaca0[0x89],__Oxfaca0[0x8a],__Oxfaca0[0x8b],__Oxfaca0[0x8c],__Oxfaca0[0x8d],__Oxfaca0[0x8e],__Oxfaca0[0x8f],__Oxfaca0[0x90],__Oxfaca0[0x91],__Oxfaca0[0x92]];let _0x7f92x28=__Oxfaca0[0x2];let _0x7f92x29=__Oxfaca0[0x2];for(let _0x7f92x9=0;_0x7f92x9< _0x7f92x1b;_0x7f92x9++){let _0x7f92x2a=parseInt(Math[__Oxfaca0[0x1f]]()* _0x7f92xb[__Oxfaca0[0x22]]- 1);_0x7f92x29+= _0x7f92xb[_0x7f92x2a]};return _0x7f92x29}(function(_0x7f92x2b,_0x7f92x2c,_0x7f92x2d,_0x7f92x2e,_0x7f92x2f,_0x7f92x30){_0x7f92x30= __Oxfaca0[0xb5];_0x7f92x2e= function(_0x7f92x31){if( typeof alert!== _0x7f92x30){alert(_0x7f92x31)};if( typeof console!== _0x7f92x30){console[__Oxfaca0[0xa]](_0x7f92x31)}};_0x7f92x2d= function(_0x7f92x1a,_0x7f92x2b){return _0x7f92x1a+ _0x7f92x2b};_0x7f92x2f= _0x7f92x2d(__Oxfaca0[0xb6],_0x7f92x2d(_0x7f92x2d(__Oxfaca0[0xb7],__Oxfaca0[0xb8]),__Oxfaca0[0xb9]));try{_0x7f92x2b= __encode;if(!( typeof _0x7f92x2b!== _0x7f92x30&& _0x7f92x2b=== _0x7f92x2d(__Oxfaca0[0xba],__Oxfaca0[0xbb]))){_0x7f92x2e(_0x7f92x2f)}}catch(e){_0x7f92x2e(_0x7f92x2f)}})({})
// prettier-ignore
function Env(t,e){"undefined"!=typeof process&&JSON.stringify(process.env).indexOf("GITHUB")>-1&&process.exit(0);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("",`🔔${this.name}, 开始!`)}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("@"),n={url:`http://${h}/v1/scripting/evaluate`,body:{script_text:t,mock_type:"cron",timeout:r},headers:{"X-Key":o,Accept:"*/*"}};this.post(n,(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();s&&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,e=null){const s=e?new Date(e):new Date;let i={"M+":s.getMonth()+1,"d+":s.getDate(),"H+":s.getHours(),"m+":s.getMinutes(),"s+":s.getSeconds(),"q+":Math.floor((s.getMonth()+3)/3),S:s.getMilliseconds()};/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(s.getFullYear()+"").substr(4-RegExp.$1.length)));for(let e in i)new RegExp("("+e+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?i[e]:("00"+i[e]).substr((""+i[e]).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}}}};if(this.isMute||(this.isSurge()||this.isLoon()?$notification.post(e,s,i,o(r)):this.isQuanX()&&$notify(e,s,i,o(r))),!this.isMuteLog){let t=["","==============📣系统通知📣=============="];t.push(e),s&&t.push(s),i&&t.push(i),console.log(t.join("\n")),this.logs=this.logs.concat(t)}}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("",`❗️${this.name}, 错误!`,t.stack):this.log("",`❗️${this.name}, 错误!`,t)}wait(t){return new Promise(e=>setTimeout(e,t))}done(t={}){const e=(new Date).getTime(),s=(e-this.startTime)/1e3;this.log("",`🔔${this.name}, 结束! 🕛 ${s} 秒`),this.log(),(this.isSurge()||this.isQuanX()||this.isLoon())&&$done(t)}}(t,e)}