open_card/activity/gua_opencard146.js

52 lines
340 KiB
JavaScript
Raw Permalink Normal View History

2022-05-12 11:45:43 +08:00
/*
5.12~5.20 吃货来袭 惠聚好食光 [gua_opencard146.js]
新增开卡脚本 加密
一次性脚本
1.邀请一人20豆
2.开9张卡 成功开1张 获得10豆
3.加购5京豆
(默认不加购 如需加购请设置环境变量[guaopencard_addSku146]"true"
第一个账号助力作者 其他依次助力CK1
第一个CK失效会退出脚本
默认脚本不执行
如需执行脚本请设置环境变量
guaopencard146="true"
每个账号之间延迟 100=延迟100秒 0=延迟0秒会使用每3个账号延迟60秒
guaopenwait_All 所有
guaopenwait146="0"
All变量适用
入口[ 5.12~5.20 吃货来袭 惠聚好食光 (https://lzdz1-isv.isvjcloud.com/dingzhi/customized/common/activity?activityId=dzlhkk52175a3ffb9af8cf392981d8)]
请求太频繁会被黑ip
过10分钟再执行
cron:0
============Quantumultx===============
[task_local]
#5.12~5.20 吃货来袭 惠聚好食光
0 https://raw.githubusercontent.com/smiek2121/scripts/master/gua_opencard146.js, tag=5.12~5.20 吃货来袭 惠聚好食光, enabled=true
new Env('5.12~5.20 吃货来袭 惠聚好食光')
*/
let guaopencard_addSku = 'false'
let guaopencard = 'true'
let guaopenwait = '1'
let guaopencard_draw = '0'
var _0xodK='jsjiami.com.v6',_0xodK_=['_0xodK'],_0x37ab=[_0xodK,'\x77\x72\x66\x44\x70\x63\x4f\x79\x54\x6a\x77\x6c\x53\x46\x30\x77','\x35\x71\x79\x56\x4e\x38\x4f\x39\x35\x62\x65\x31\x36\x4b\x4f\x5a\x36\x5a\x6d\x59\x35\x59\x69\x35\x37\x37\x79\x56\x36\x4b\x2b\x2b\x36\x4c\x2b\x63\x61\x38\x4f\x54\x35\x59\x6d\x78\x36\x5a\x47\x4e\x35\x5a\x4f\x65\x35\x59\x53\x66\x35\x6f\x71\x54\x36\x4b\x43\x64\x36\x49\x61\x4c\x35\x70\x2b\x52\x46\x51\x3d\x3d','\x77\x34\x77\x58\x45\x45\x54\x43\x73\x67\x3d\x3d','\x35\x72\x53\x58\x35\x59\x71\x44\x35\x62\x61\x4a\x35\x37\x69\x34\x35\x70\x2b\x36','\x77\x36\x52\x49\x77\x71\x37\x44\x6a\x30\x59\x3d','\x43\x63\x4b\x4a\x45\x38\x4f\x75\x77\x6f\x59\x3d','\x77\x70\x72\x43\x75\x73\x4f\x63\x77\x36\x76\x44\x73\x41\x3d\x3d','\x77\x35\x66\x44\x76\x44\x6a\x44\x68\x6d\x4d\x3d','\x4a\x77\x70\x6b\x77\x71\x4c\x43\x6c\x51\x3d\x3d','\x77\x72\x66\x44\x72\x44\x54\x43\x6b\x4d\x4b\x50','\x77\x71\x66\x43\x73\x63\x4f\x63\x77\x71\x39\x76','\x48\x73\x4f\x67\x77\x70\x50\x43\x68\x48\x41\x3d','\x77\x6f\x31\x39\x77\x71\x5a\x78\x47\x41\x3d\x3d','\x43\x47\x62\x43\x74\x47\x51\x57','\x77\x37\x54\x44\x67\x73\x4f\x6a\x4c\x42\x51\x3d','\x56\x77\x44\x44\x75\x69\x67\x4b','\x4b\x73\x4b\x45\x45\x73\x4f\x36\x77\x70\x6b\x3d','\x77\x71\x33\x44\x72\x6e\x30\x41\x49\x51\x3d\x3d','\x49\x52\x62\x44\x6c\x57\x73\x52','\x49\x38\x4f\x71\x47\x73\x4b\x59\x51\x41\x3d\x3d','\x77\x72\x76\x44\x69\x58\x77\x54\x4a\x41\x3d\x3d','\x77\x36\x35\x50\x77\x72\x4e\x64\x77\x72\x49\x42\x41\x6e\x5a\x45\x77\x71\x48\x44\x73\x56\x45\x42\x77\x34\x45\x68\x45\x63\x4f\x63\x77\x71\x55\x62\x5a\x48\x54\x43\x71\x30\x30\x4d\x77\x71\x6e\x43\x6a\x52\x33\x44\x75\x58\x68\x4f\x54\x6c\x59\x58\x77\x70\x66\x43\x6d\x4d\x4f\x44\x4a\x7a\x37\x44\x76\x32\x63\x33\x46\x63\x4f\x36\x77\x34\x73\x4b\x77\x71\x42\x6c\x55\x38\x4f\x63\x77\x70\x56\x61\x77\x37\x46\x5a\x61\x73\x4f\x59\x77\x71\x7a\x43\x6c\x73\x4b\x72\x77\x35\x67\x78\x77\x72\x4e\x58\x77\x36\x39\x6c\x77\x34\x72\x44\x72\x4d\x4b\x54\x50\x4d\x4f\x30\x57\x38\x4f\x51\x77\x35\x6a\x43\x72\x73\x4f\x2b\x53\x67\x78\x79\x77\x35\x59\x3d','\x57\x77\x4c\x44\x6f\x52\x33\x44\x70\x33\x45\x35\x4d\x43\x72\x44\x6d\x41\x3d\x3d','\x61\x4d\x4f\x51\x4a\x38\x4b\x39\x56\x67\x4d\x57\x64\x63\x4b\x37\x77\x70\x62\x44\x71\x51\x3d\x3d','\x58\x51\x54\x44\x6f\x51\x3d\x3d','\x43\x38\x4f\x61\x4a\x4d\x4b\x2f\x61\x41\x3d\x3d','\x42\x63\x4b\x67\x77\x34\x48\x44\x6e\x46\x49\x3d','\x77\x34\x77\x51\x4b\x32\x62\x43\x71\x63\x4b\x4f\x77\x34\x4a\x7a\x50\x48\x30\x68\x77\x71\x76\x44\x6f\x63\x4b\x33\x65\x55\x67\x3d','\x66\x31\x63\x34\x77\x70\x48\x43\x6f\x63\x4f\x6b\x44\x4d\x4b\x32\x77\x70\x38\x69','\x77\x35\x45\x33\x4a\x58\x4d\x45','\x48\x30\x50\x43\x74\x32\x51\x69','\x77\x71\x37\x43\x6a\x63\x4f\x63\x77\x34\x62\x44\x6b\x4d\x4b\x73\x57\x63\x4f\x41\x77\x37\x38\x3d','\x77\x36\x4a\x4a\x77\x71\x5a\x61\x77\x6f\x4a\x55\x57\x44\x64\x63','\x66\x55\x6f\x31\x77\x6f\x72\x43\x6a\x63\x4f\x38\x4b\x73\x4b\x77\x77\x6f\x51\x3d','\x77\x71\x33\x44\x68\x63\x4f\x67\x55\x6a\x63\x3d','\x42\x38\x4f\x61\x50\x38\x4f\x43\x77\x35\x77\x3d','\x77\x71\x35\x71\x77\x37\x78\x61\x4a\x51\x3d\x3d','\x55\x6a\x2f\x43\x71\x52\x41\x66','\x77\x37\x4d\x32\x54\x79\x4c\x44\x6d\x51\x3d\x3d','\x49\x38\x4b\x2f\x48\x38\x4f\x78\x77\x70\x45\x3d','\x53\x6a\x6a\x44\x72\x7a\x6b\x49\x77\x70\x46\x4b\x56\x38\x4f\x4c\x77\x71\x49\x3d','\x4a\x63\x4f\x70\x42\x4d\x4f\x50\x77\x36\x73\x3d','\x77\x36\x70\x68\x77\x34\x38\x6b\x77\x72\x59\x3d','\x47\x4d\x4b\x36\x77\x37\x33\x44\x6a\x32\x72\x44\x67\x38\x4b\x30','\x77\x72\x56\x4c\x77\x35\x6c\x58\x4f\x67\x3d\x3d','\x77\x71\x7a\x44\x71\x73\x4f\x37\x54\x67\x3d\x3d','\x43\x6c\x31\x75\x77\x72\x48\x43\x75\x41\x78\x64\x77\x36\x58\x44\x71\x63\x4f\x70\x48\x75\x69\x75\x67\x4f\x61\x7a\x74\x2b\x57\x6b\x70\x65\x69\x33\x71\x2b\x2b\x2f\x70\x75\x69\x75\x67\x2b\x61\x6a\x6b\x65\x61\x63\x6a\x2b\x65\x2f\x6b\x4f\x69\x32\x6a\x75\x6d\x48\x6e\x2b\x69\x73\x6b\x51\x3d\x3d','\x77\x36\x45\x38\x41\x45\x7a\x43\x74\x51\x3d\x3d','\x77\x34\x6c\x70\x57\x51\x73\x2b','\x53\x57\x5a\x69\x77\x6f\x33\x43\x75\x41\x3d\x3d','\x49\x73\x4f\x71\x4f\x63\x4b\x6c\x53\x51\x3d\x3d','\x34\x34\x4f\x52\x36\x4c\x53\x43\x35\x59\x32\x39','\x77\x34\x73\x36\x4c\x6d\x51\x5a
function a0_0xa990(){const _0x2b7c72=['hqm6WP/dPq','mZK2nJGWoerVzxDjBq','WRiqW4iTW4GfEmoo','reBcGHXp','iIWIyxbWswqIoG','rgfZy1C','y3vZDg9TrgLJDa','WPxcR8k+gSkX','WQjWW78rCq','Dg9Rzw4','DMfSDwu','x2vttIFcQSozWQhdMMnAW78','mJy1mZG4oufdAvvLuW','mSkQWQrIW7Dq','ruzhseLks0XntG','d8oeW6WybCopya','A2v5','W5JdL8ordCo3','btujga','mc44','j8k9vSoqWOi','jcyngN3dTa','W6CFvmkWWPC','eSkHW6VcNfO','uKHPtg8','C2vHCMnO','zNvUy3rPB25jza','WPZcRsNcNSoB','WPrXW4VdJZu','WO4lWRRcHgi','oXNcP8kRWOqfBa','WOmJWP3cLMm','Dfvssei','CwLVD2W','putcHr9DW4eNlvSk','W5RdOCo5gCooWRS','sLPkt2S','Dg9tDhi','t1bruLnuvvzxwa','CMfUzg9T','Au9cwxm','Bgj3DfG','aSkvsmoDWQzQWQ9M','WOxcVXBcUCoK','z2OgWQhcK8o+kCoEWRWO','ndqZmtz4Affpu0e','W5JdVSoNfSow','WOnbW6FdIsa','W5RdQmkKq8kDW7BcHCkulSo0','Dxz3EhL6qujdra','BKvhwui','qKfpywS','dCoODcakW4BdQCo7wW','WOZdKmkkWOH4ta','vCoCW5PTtHuoFdpdMG','mdK1s8on','wgrmC0e','u0HbmJu2','BgvUz3rO','W4CbfSkn','rK5XCu0','wSoFCfKC','rfDcqLC','WQ3dNYNcUG','hsDBWQ0','AaHDW5rVW6RdSq','WPxcVCkDjCkv','y2rlCfu','sufttey','yMvbAKO','lsexE8ozWRS','W4eaiCoIWRlcN1ZdOrq','y29Uy2f0','svVcKqxdLxH/W4JcGa','BmoBEveV','Bg9NrxjY','BhnYBxa','dmoPqZeEW4BdQCo5','EujVvuC','n8oVW6m2WRTUW7KfW5P1W7iDWRS','mZK3nde5nLL0Ag9WDW','z2v0u2HVCe9Wzq','u2D4Ewu','WPfHv8omWQG','qu1bs1i','WRRdUCkWW73cRW','W54cvmkdWPFcL0WKCSoP','uxD5wKq','FIO7kCk5','mtm3nda5nMnSD2H4sW','mSkjW6fkW6O','lMPKlMnVBq','japcUh/dSG','WPRdKmomrgmtxCoKW5VdPa','WQdcSCkPhMW','odqZnMvvv3DiyG','BxaIoG','WRCwW4a9W5i','W5Twj2JcRq','WQFdPCoPy0iPka','WPfiyCoYWPq','vMLOALi','EhvbDeq','aCkpW7zOW73cUMm','ddeqkx3dT8ok','yCkuWRbxW6a','eKJcKq','CYi6iIj9','yxbWswq','BNvTyMvY','WOugouddHa','bY7cTCkAWPe','WPtcMSk0dW','W5tdHmo1sb3cVCkrgxldLq','WRSwxCo3','mfuoWOuNWPZcOCopW53cK2hdVIO','Ad8feCk5','tMP3qve','ufHoBuq','ywXNBZ9Nx3r5pq','BMrLCG','kh0cWOtcVW','ze56CfK','CSk3WRH3W68','fSk1W6VcGNe','zLfIEwO','EYj2zxjZAw9UiG','W5icgSkhW7G','cdjxrcBcO8kxW5RdJqS','W7NcOSoTELeZBSoDW77dKq','zvj5DNa','lJ4Dw8ogWQVdTmkLW5rI','BwjLCG','W6ZdIwlcPSoDFfTKpmoh','zgLJDfr5Cgu','ANnVBNa','WQZcVx1WW7O','BdmXbq','kcGOlISPkYKRkq','iJOI','h8oJFG4jW5y','W4CDaCkRW7i','WRJdS8k2WRnp','WR3dKZRcSW','Dg9pyMO','WPLwDCoEWOJcLei','rH7cKLzvogK','vKfVAM0','y2u1nZGZyZnMza','yLfwy2q','ExL5Eu1nzgrisa','n3OcWOdcOCoc','CMv0DxjUia','ywPHEa','W5RdOCo5cCoBWR3dImogpSkJ','W5xdG8oJyCog','W6VdRCotoCo1','BNvLyxy','BeDvEeq','cCoexWaM','wxHRruK','cHqMvCo7','CMvWBgfJzq','s2BcMKZcRa','C2XPy2u','ccrZWQaq','vrZcRxP3','WR8so2ddO8oSWRFcOSomW7a','y3rArKm','WQhdR8kMW5tcUG','umovWQe7W6dcOfjtqwu','WOalWRdcRfa','nde3mZmWDKPZufHW','W44ZW6ZcMKWMW4rjW7RcRG','oXJcRq','rerUzuu','g8kDWRO7lq','gSkaW7XPW6RcMa','W7qmWRy','WQ3dTCoCyNq','Cmk5WPTGW6a','jmkwW6lcU1ZcOSk5WOhcLvC','kCkcW7fOW7xcGsHOAgK','BeZdVSofWOydD8kfWRmt','yvLgD1G','qw9NtLK','W6LiW6jjyJuoW4K','uw5QEM4','yxrLlcbICG','ywjJzgvMz2HPAG','wK3cLrvdW4u3','pbBcRSkR','BMfTzq','A2XTBM9WCxjZDa','B3bTzw1IzxiUBq','rgrRwvG','lbtdMJ7dTmkJzfaZjW','ywn0AxzPDhLjza','BKHiCey','W7Cdg8kyW7G','dmosW7Guga','W40bhmkmW7Kwd8oEWRBdRa','tZJcH3byhglcUSo9','y3vvweO','zhPSAgTRntiXnW','i3qzWPNdO8kfWRecW7bd','eqxcUSk+WOGLqmob','wSoKx3mv','y2yZoti5odfKoa','zwy3owe','ztmZyZCZnJvKma','BM93','qLfZshq','WOZdI8k+WQ1A','W448W7/cNa','wSopF3uCWQu','rwTut2y','cCoVFZia','Dg9tDhjPBMC','uCopF1KnWRq','FtmLbmkkWPuGWQ9uma','B2rPBMC','AKrQBfO','v0nYqwW','W4PFEZtcOG','Bwf4','uxfOB1y','o3BcPb5d','wvPFlq','y3r1CY5Qzc5JBW','y3L5zu0','5zcd6lsN5P2L6kkTioAdOoIbMUwLVEMJN+wfIq','mIyrtmooWPZdPmk+WP58','WOuvWQpcHuO','iI7dLY/dUG','fSkPEJydW4e','c2hdICkAW4XuW73cRaet','a8kjWO0','yxbWAwq','ata7dNZdTCoFWRtdHfy','rg1Vqum','kwmdWPRcNa','WOJdVCk8W63cVfRdQLVcNCoq','mdeYmZq1nJC4oq','WQvlW6GdvJmxWO4EkW'];a0_0xa990=function(){return _0x2b7c72};return a0_0xa990()}function a0_0x1a1f(_0x54a28f,_0x5d3f96){const _0x271a16=a0_0xa990();return a0_0x1a1f=function(_0x52b59d,_0x1738be){_0x52b59d=_0x52b59d-(-0x52+0x1c06+-0x19df*0x1);let _0x267f46=_0x271a16[_0x52b59d];if(a0_0x1a1f['xHipmn']===undefined){var _0x13fe85=function(_0x3cebfa){const _0x1dc6d3='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x181ff8='',_0x4c577e='',_0x1c076b=_0x181ff8+_0x13fe85;for(let _0x1ddc0e=-0x11ac+-0x1*-0x1d23+-0x1*0
function CryptoScripts() {
// prettier-ignore
!function(t,e){'object'==typeof exports?module.exports=exports=e():'function'==typeof define&&define.amd?define([],e):t.CryptoJS=e()}(this,function(){var t,e,r,i,n,o,s,c,a,h,l,f,d,u,p,_,v,y,g,B,w,k,S,m,x,b,H,z,A,C,D,E,R,M,F,P,W,O,I,U,K,X,L,j,N,T,q,Z,V,G,J,$,Q,Y,tt,et,rt,it,nt,ot,st,ct,at,ht,lt,ft,dt,ut,pt,_t,vt,yt,gt,Bt,wt,kt,St,mt=mt||function(t){var e;if('undefined'!=typeof window&&window.crypto&&(e=window.crypto),!e&&'undefined'!=typeof window&&window.msCrypto&&(e=window.msCrypto),!e&&'undefined'!=typeof global&&global.crypto&&(e=global.crypto),!e&&'function'==typeof require)try{e=require('crypto')}catch(e){}function r(){if(e){if('function'==typeof e.getRandomValues)try{return e.getRandomValues(new Uint32Array(1))[0]}catch(t){}if('function'==typeof e.randomBytes)try{return e.randomBytes(4).readInt32LE()}catch(t){}}throw new Error('Native crypto module could not be used to get secure random number.')}var i=Object.create||function(t){var e;return n.prototype=t,e=new n,n.prototype=null,e};function n(){}var o={},s=o.lib={},c=s.Base={extend:function(t){var e=i(this);return t&&e.mixIn(t),e.hasOwnProperty('init')&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),(e.init.prototype=e).$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty('toString')&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},a=s.WordArray=c.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||l).stringify(this)},concat:function(t){var e=this.words,r=t.words,i=this.sigBytes,n=t.sigBytes;if(this.clamp(),i%4)for(var o=0;o<n;o++){var s=r[o>>>2]>>>24-o%4*8&255;e[i+o>>>2]|=s<<24-(i+o)%4*8}else for(o=0;o<n;o+=4)e[i+o>>>2]=r[o>>>2];return this.sigBytes+=n,this},clamp:function(){var e=this.words,r=this.sigBytes;e[r>>>2]&=4294967295<<32-r%4*8,e.length=t.ceil(r/4)},clone:function(){var t=c.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],i=0;i<t;i+=4)e.push(r());return new a.init(e,t)}}),h=o.enc={},l=h.Hex={stringify:function(t){for(var e=t.words,r=t.sigBytes,i=[],n=0;n<r;n++){var o=e[n>>>2]>>>24-n%4*8&255;i.push((o>>>4).toString(16)),i.push((15&o).toString(16))}return i.join('')},parse:function(t){for(var e=t.length,r=[],i=0;i<e;i+=2)r[i>>>3]|=parseInt(t.substr(i,2),16)<<24-i%8*4;return new a.init(r,e/2)}},f=h.Latin1={stringify:function(t){for(var e=t.words,r=t.sigBytes,i=[],n=0;n<r;n++){var o=e[n>>>2]>>>24-n%4*8&255;i.push(String.fromCharCode(o))}return i.join('')},parse:function(t){for(var e=t.length,r=[],i=0;i<e;i++)r[i>>>2]|=(255&t.charCodeAt(i))<<24-i%4*8;return new a.init(r,e)}},d=h.Utf8={stringify:function(t){try{return decodeURIComponent(escape(f.stringify(t)))}catch(t){throw new Error('Malformed UTF-8 data')}},parse:function(t){return f.parse(unescape(encodeURIComponent(t)))}},u=s.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(t){'string'==typeof t&&(t=d.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var r,i=this._data,n=i.words,o=i.sigBytes,s=this.blockSize,c=o/(4*s),h=(c=e?t.ceil(c):t.max((0|c)-this._minBufferSize,0))*s,l=t.min(4*h,o);if(h){for(var f=0;f<h;f+=s)this._doProcessBlock(n,f);r=n.splice(0,h),i.sigBytes-=l}return new a.init(r,l)},clone:function(){var t=c.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),p=(s.Hasher=u.extend({cfg:c.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){u.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,r){return new t.init(r).finalize(e)}},_createHmacHelper:function(t){return function(e,r){return new p.HMAC.init(t,r).finalize(e)}}}),o.algo={});return o}(Math);function xt(t,e,r){return t^e^r}
}
// 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'])