/*
京东快递优惠券领券

[task_local]
#京东快递领卷
5 10 * * * jd_jdkdcoupon.js, tag=京东快递领卷, enabled=true

*/


const $ = new Env('快递领卷');
var _0xod0='jsjiami.com.v7';const _0x3eec45=_0x2158;(function(_0x5e11fc,_0x26b362,_0x55a8e4,_0x435212,_0x3cff17,_0x479704,_0xe28ed2){return _0x5e11fc=_0x5e11fc>>0x6,_0x479704='hs',_0xe28ed2='hs',function(_0x515598,_0x4a35ea,_0x72ada2,_0x1c5406,_0x35f604){const _0x35b04a=_0x2158;_0x1c5406='tfi',_0x479704=_0x1c5406+_0x479704,_0x35f604='up',_0xe28ed2+=_0x35f604,_0x479704=_0x72ada2(_0x479704),_0xe28ed2=_0x72ada2(_0xe28ed2),_0x72ada2=0x0;const _0x338e27=_0x515598();while(!![]&&--_0x435212+_0x4a35ea){try{_0x1c5406=-parseInt(_0x35b04a(0x17e,'G8TQ'))/0x1*(parseInt(_0x35b04a(0x163,'ln^%'))/0x2)+-parseInt(_0x35b04a(0x10c,'QMWW'))/0x3+parseInt(_0x35b04a(0x184,'L5RU'))/0x4*(parseInt(_0x35b04a(0xdc,'uj^b'))/0x5)+-parseInt(_0x35b04a(0x160,'i6OA'))/0x6*(-parseInt(_0x35b04a(0xd8,'Y#aq'))/0x7)+parseInt(_0x35b04a(0xc3,'OJzT'))/0x8*(-parseInt(_0x35b04a(0x18d,'j*]4'))/0x9)+parseInt(_0x35b04a(0x111,'y5@f'))/0xa*(-parseInt(_0x35b04a(0x1a2,'QMWW'))/0xb)+parseInt(_0x35b04a(0x108,'bFcg'))/0xc*(parseInt(_0x35b04a(0xc6,'wWcq'))/0xd);}catch(_0x16b672){_0x1c5406=_0x72ada2;}finally{_0x35f604=_0x338e27[_0x479704]();if(_0x5e11fc<=_0x435212)_0x72ada2?_0x3cff17?_0x1c5406=_0x35f604:_0x3cff17=_0x35f604:_0x72ada2=_0x35f604;else{if(_0x72ada2==_0x3cff17['replace'](/[tNWyhJVkxpPTEGYUDnA=]/g,'')){if(_0x1c5406===_0x4a35ea){_0x338e27['un'+_0x479704](_0x35f604);break;}_0x338e27[_0xe28ed2](_0x35f604);}}}}}(_0x55a8e4,_0x26b362,function(_0x4064c0,_0x5e324b,_0x580592,_0x476fd1,_0x2cde08,_0x449d2c,_0x5d191d){return _0x5e324b='\x73\x70\x6c\x69\x74',_0x4064c0=arguments[0x0],_0x4064c0=_0x4064c0[_0x5e324b](''),_0x580592='\x72\x65\x76\x65\x72\x73\x65',_0x4064c0=_0x4064c0[_0x580592]('\x76'),_0x476fd1='\x6a\x6f\x69\x6e',(0x159092,_0x4064c0[_0x476fd1](''));});}(0x2f80,0x8f67e,_0x4c1a,0xc0),_0x4c1a)&&(_0xod0=_0x3eec45(0x110,'j*]4'));const notify=$[_0x3eec45(0x109,'$U9^')]()?require('./sendNotify'):'',jdCookieNode=$['isNode']()?require(_0x3eec45(0x170,'q(u9')):'';let cookiesArr=[],cookie='';function _0x4c1a(){const _0x5263f4=(function(){return[_0xod0,'kjNtsjDiEtWaTGnmDpip.cxomP.vEh7YAVJnGUyh==','W7dcKComWQ7cTG','W6urW5TaWP4','W7fpFSkB','WOldHCoSpmkcmmktW7RcUa','w8oAzf57W5ldMCo9hue/xCkOWR4CW6bgW77cOmk/WPD/W6qPF2m3WOxdSSo+bdpcHW8iWRyJWRS4kK/cL8oJ','kNJdHbfGW73dMSk2WPGqhCkpoxVdJ8oLW5dcSsJcNZ/dVG/dMKFcS27cTfJdNmknWP8wW6bYCCk2sY/cUd8vW7zgW7i0WQjMBCkImCkQDCovWR51W59VW5fPhqbIpSkyW4BcQ8kaW5RdNwuFmSozW4ldQmkZuHZcOSkgW7fFhsVdV8o+WPlcRmorW685WQ1TW4NcKSkIW5qLuCkWp0SWcZKeW7Ocq8kbW7ZdULP9WPFcTvO3dcC7W4pdPmo9v8oZW6rwWPFcUrRdRCk4W4rJs1/dOLpdJvDdW6xcV8kTW5ldI17cRmoeW4/dUrelWRdcRmoTA8opWQbfW4NdTx0eW5lcJ2ldJsRdT8oqW5y1W6ZcOKNcU8k1ySkxh8oNW7y8','mCo0wxjXzgqg','WOHrW50pWP5oW67dMwH6WPj6','DqhdQtRdNWmqjCoSmLZdKa','FmoaahOyW70','oXZdOs0z','WO4Fa8kIWQeNWO/cMdqVWQ/cOmoE','jGddTsaf','CstcGv0','W4vjcXldUhri','5lUU5lMT6lA95y6Z','WPu7d0C','WRrgWOVcQxX5t8oOW6OLkbRdM8kAhCkFWPtdJvK','5lIw5lUO5P+r5yUY5zQp6l6M5zIK56UY5PA95O+h','DeeZW4hdVKZcJevwW7y','W4rddtpdUgnb','W5PrW60','lhddIWdORAtMSz7LPidOTjFVV4BORkNMOkFMNQtNVlBOT43PHkRORQK','dmkvW4pdPL4','C30c','W7i8zJmu','ldWGWQxcTvBcLCokAa','qdPjrIW','WPeQs8otW5e','WOBcRmoFyHu1mGtcPGtcHmo1','ccqIW4VcKSkJW6ldQq','W6eEW7XEW7K','CgP/WRJcTG','WO8lWR1gqmk9rmksW5jNrG','BfW9mmoQ','W7vvxSkhW6NcQYNcMW','Dx0Gg8oM','WP7dMCko','W4tdM0RcNG','cSoMuwu','W53cKCkOn8kgbSkB','jutcRx7cLaf4u8oRCHNcH8knW6bIWPGNsCkBWPi','W5jAECo5W7r/W5y','wuldVJVdNx1CvW','kg4keKlcPtJdNG','WQTtWPBcRq','W6VcUCoBW5NdKCo6jSkwW5bypmoQamoMWOBdGCkOn04Qd3RdJwxdQs4fW4f/k8kHWPHp','W5jhuCoZW6S','WPFdLCk8hUIVKUAXGUwLLoI1To+/SUIUU+AGIUADMEE8TUI1IUMhMUITLa','z8oUbftcTW','tctcIeaUWR3cSCk5WO0EdCkpmtddRmoUW43dVxFcHd3cIw3cTX/dOWZdQHxcNSoIWP95WPnYymkHnMJcIgvqW7qnWQnXWQajimolmCofbSovW4z8W51BW5u7s0uxkmoyWQhdImouW5xdI3ukpmokWO/cTCoYua7dICoSW5j3mYxdS8kyW5VdP8kuW69EW6GSW4JcI8o5W5zjfmoGFWXVsYChW68aESkpW63dUJCYW5xdVKuMrZq0WQBdT8kdlSoHWOCfW4lcH1RcS8kKW4zGseNdSq','ASkrnSou','dmotW5HkWRikWR/cPYpcSqFdOmkjWQhcT1n/rI7dSSo+WPmeW6tdImovW4CVFSkgxCo0ivBdNSoPW5hdHcZdHSo0FuufWQ/cKCoBqfCjW5eOW6RdHq','W5NcKCohW7NdVW','WPyHDq','dCouW6bvWQzzW74','zY7dQmkmpG','iCoqtCkdW6CgWRi','rSo+W4exiqG','W7bRkdldUG','AwzdWPRcL0ZcRCoG','W5BdHSkDuxW','xMz/WOxcJedcSmonFq','WPBcVCoSiXKLhbrMdSoz','a8ocW5G','W453vmkHW4i','W6ahW4m','jtGGW5RdNr3cHmoEsSkgWOSk','o8oyvMrEoa','tvTTWOyjqCk0pYtcS00','CSodzKPU','E30lma','i8kNW5FdJfC','w8oAzf57W5ldMCo9e0SUhSo2WQfDW7jBW77cQCk0W5qZW6KHmw53WOpdQ8o2bfxcMG4dWQPoWRuUlKNcLG'].concat((function(){return['tK1vWPmi','W7ZcPSkWb8kb','WPvd5AEz6lsBWOzF5yYc5zMChti','WQnaW7LaWQJcIeBdRa','W6Hjq8kCW7/cPW','WPzxo8oSW6pcNmkWjSo5cL9PW6RdSxFdVCk8','hH/dHtCv','WOHAW5ahWPbgWQ/dSKntWQTcCW','z2e9WQ3cQWNcUCoVfmk4WP4lDmopgSkxxSoXW60','ESoUaKtcUG','C1eUW4dcHa','dSouW4ztWQbDW7NcPJFcR0tcPmkBWRG','b8o1t8o/fSk+WQiJyG','W45dgdpdQ3i','WOldHCoQWOVcNWXTW54','W5STA8kGWQRdN8oXCSkWrrm2W7pdTJRcQCkWbuddVqvWxYv4tCk0WOrIW7ZdOtlcGq','ix0acqddPdhdNSonW6jokulcRSoEWO3cLG','uCkLeSo1','ACoCr8ktEq','D34vW5tcLW','s8kRlmoKaCkvWQu2','ft4yW5zzbmoMxgFcO0tcN3hdVmk6WPdcOsqPtgRdMXaHW5zmWQJcMmk+ufFcL0tdQ8ody2/cL1dcPaDbWQZcGSklbuFcHvFdGSovW7unWQddR8k/WQpcSmkKW40','WQ7cQCoXqc7dKq','W4ilACk9WQu','5lQ/5lMD5P+Q5yMw5zQ76l+u5zUT56Uu5PAj5O6L','yCoLy8kPvW','ymkzamkVnNq','qeroWQWm','zwegW4xcUa','lSocBCkFW6u','AxDOi1S','fwiVog4','FqVcSSkfWR8','cb8OW7hcQq','omkTW4xdOM0HWOnha8ogW6GJW6RcOmkbW5dcHSk8qCkdWPJcMhXLwCkVBCkTnSobW7hdVmkvW4NdT8oEnWyJWQldVqaJmdedE3aV','shybeSoR','W5tcQSk6A1W+g3uBvCkVW5uijrrHW4DTWOZcUhRdUCkvW4uRW4eyW4HDW53dQYit','sLrHn10','FLqMW53cUK7cGvHjW7XWW59PW6pdNsJcVSobW4pdQSkHAbCCtI12W6D+WPq','CvqWW4BcHW','hI/dMc4E','WOnTWPxcVw5+','imoxDCkCW7nvW7nlf8obFSohbCozyaldRqv5ESoPW6hcNCkpW5JdHCo9osBcStZcMXhdR23cNKtdGeDGWQDJW4q','WPCHFmoSW6a','b8oYtCkJq8okWOCyzK1egq','FJ1hrbH9','W7pdOaBdLSoStKu9W6KEAZFcRw3cOSo5WOa','W4OLW7zEW6C','ut1pAGnQW5zr','WOWlwSotW5O','zH/cUwWi','wSoWW5qHnG','W5ydrcbVWQhdT8kwW4FcKSkHrZyKW5hdTmkJ','W6ldPcBcQmoq','WRabnxC','W7/dNCksxW','WO/dICkluUIVM+AWLEwLJUI1SU+8REIUGoAHNUACHEE9OEI3QoMhTEIULG','W444y8k4W6ZdLmoKA8k1bHXPW6NdQtZcPmo9uv3dTXmRcd1GqCkXW4e2WRhcPZhdISkgWQ8/W5mGW5qXWRzPCmo2CKqlmCoIbSoRrMtcVCkLWO3cMmoDWRlcH8oLoN0','WQ89D8oBW745DWK','WQBdQEwMMUI2KmkzWRNLJ5JLMilcGXC','WQRcSSoIDs/cMCojeSo+W5KgWRaGWPpdUmk2ACkGWOxcUmoAe14CW57cTh3dO1/dUmk5fK8HWQ3cKWrDA8oMWPhdJJ4','WRCHAmoaW5W0E0pdTSkweSkgrrRcKxlcJCktuHKfW7pdRmkJW57dUmkRyNz6W63cPeC8WQGalmkYnmkoWPHNtuTKdCkig8oyqgFdUvhcUuLGWQxdUNb3a8k1BXHWd3tcKtNcQX3dMSoCWPZdRaNcSMJcQb7dN2ZdLXRdQ8klzCo2j8o3FvqHBCkpsx/dM8kRW54zW5xdN8okW5/dJCknWQGLvSoNWR/dOKRcR2qhW77cLCokiCoAW6GazSk0W7XLWO3dTcNdHmorq8obf8o4','W5tcNCk/omkPe8kxW60','amkpW4VdTKK','W5v7xmohW6y','W5CqqZeVW63dQG','WOXNWRBcNq','tNjUcK0','BSoGhLi','C0SX','ov/cINRcLvi5gW','W7RdLexcJuq','CIxdRSkdfmoFW68','pKxcU33cK0K','W6SaW5zVW5fyWRK+','mmkdW6xdLmoAWOX2bHpcHuJdICkLWOJcTY12ASkLW7i9hW'].concat((function(){return['AmoUa1i','nmksW6NdSb0vWRe5z1C','W5ldHSo2WQLB','cmoOwW','W5hdM8oiWOrk','W50wsG','W5VcHmkSp8koeCkBW7ZcPmogW7tcHmoqvNzZECobW4ddQhTRW7pdSmoJDthdVCkkk8o2aW','44kR5O+556sp44kh6k2K5ywE6iYp5yYw5lUR5lMf6lEJ5yYU5lQREmkuA0nZEedNM7pMJQpKVBVNLO3cO8o4W5tdGSkGaoEAI+s4Sos6REEVPEwjKoIoM+woKG','xCoDf27cNq','pmk2W5y','W7SkAGyi','iSk4W5/dTNf2','W4VdHSoNWR5qW6BdO8kNWOLmeNa','BSoOawBcVG','W5mUvCkJWQFdMq','CCocWQhdJ2iwWOSvxW','44g25O6D56w744kXWR/cRCoGW6FcUt7LTR3LPR3ML7G','W6HuACkwW6m','AmoVWOpcOs4TW6aHbCo+W5P9','qHzzWOyjASkNesddOHldLcFcRmo9WPddGcShaI/cTf51W5rwWQRdLCk+tW','WOiZfvxcOG','xx19lvu','t0pdNc/dGa','uIVcS8kVWQi','Dg5qeKRdPSkMW7GAlmkTySk+CCo/W4ddGbZdIMC','gJVdMae','5lI55lMS5P6K5yQs5zQt6lYs5zU256UK5PE+5O2y','mSktWRddR8oSW5H0fKBcTvhdN8kUW4VcVMG+pmoK','k8oIq8kGW6i','m8oXWR3cJmkcW5qUxKNcJvNdN8kcWOpcPJeSkmo9WQHNs8kQW5TGW518WRRcLYddN3mNxfzWfCk0tbXqymo0','FeuIW5lcUW','WOhcP8kXF284edXieSkWWOPd','zNijixFdSmoZWR9duSo9nmoJimoQW5pcK13cNG','W6BcPSom','W6T4lGpdQW','W6CvW51qWPtcOK0','bSkxW4pdOf8','W5ddMZVcQ8o2','W5NcHCod','WPBcI8oczby','ldSLW5/dNbtcSmoIDSkyWQCP','Bg4yW73cMa','ArJcHSk6WPy','c8kIWRVcSJ47WOXkbmoEW7uVWRRdPmknWPFcISk+aCkJWPpdK1fTq8kTFSkJoSk7W7xdOCkFWPJcS8kGEKO8W7hcVayHpcimyWrTm8k4W7VdVmkoW63cISkgxqNdK8kws8kxetSoprLfW7KJWQddGCoWW4brxmkGW5u0a0xdGSkizc11ms/cJmoYW7xdOSoECLtdJu8MkxLeW4ricX0SmaW2t8kiErRdVg9ZWOdcP39JrCoBW6NdLJJdLSk0W57dHvrQnSoTW4BcIe/cPmkAh8oUW7v9ymksqmoKvbu+WR8ni8kvW6fXW4/cJLzo','lH7dVa','ECkbW4tdImoNWOzE','xSoDDW','F2XhWQZcHW','W6NdSapcOCo2','W4mlW4vDW4K','smoYW6m2jG','WOVdHmoSo8kOeCkrW6pcUq','ar7dTc9GqSoLycq','W7/dR8k6CLS','W5JcMCod','uSo5hwS0','W55kW74obSo1cmo+W6eOmafOW7ldIdb8W54Y','iSkuW7tdGG','C2H9WOS','W7xdSCoOWO1X','uSkuW6jRWQvyW7ZdQq','WOGRySofW5e7FW','aCo/W4LzWQ8','WPvPW4GEWODFWR3cNaCYW6HvzGJdQcWdW5jMiYhcV8ksAmkHW5zCeYhdKSkSWO/cRSoVhCoRi8k4W6bsr8o/WQTcx8kCoSkbWO/cKqmHtsH9W6TnWPDUWPzEamkNW5RdN8k7W7xcJCkWWRJcSc5Op0pcIIdcOYJcHCo7cw7dStWcW7ZcNmkNcmoNjmovWRxdQ8kJW6qMCxBcQKDsmSk/WOhdQ8oOeCklW5e7qxL7zYyvjdnmWQJdISo6fSo/nKZcQw3dJJpcVSk1WR8VW6ZdIXxcSSoUW5KjW5JdUSo9W5dcRCkZy8k7sthcTcNcJX1MWRhdItj9g8kQWRaTBdPIWQJdH8oFWOlcMCoKkSoFt1ZcUCoFWPZcTrBdJmksW7aAg8k/WQiAWQaOW5KQywnouSklW4baaq/cHx7dUmoYb0BcJCkLW4CLAxFcSIRdR0u7tSkxW5tdMYJcJSovWOxdQcVcMglcLmkmW4WcW7z+DXVdR8kpj8oDWRL3qKqOW5G6W6NcOXjsWQNcQSkXuspcP3VdHxvQc1tdGSkvW4JcU8kyECkkW502W6lcVuxdIrLmWOWNWQpcOxTRW516W7pdVCoLWOxdKdJdMCk0W4xcOKicyCoLWOOdWOZdUXldK1f2W5eWn8k4xSoEWOugW4pdPmoXoCoXn8kZWQdcNSobfCknx8kMW7tcISo/WQxcNCkBmGZcGIhcNf02W7yLWOZcQmoovc7cSCoFbConWOVdOSo0k8odWQ/cQg43yw4+rejYWPpcT8k1WQ3dVamDWPZdQHddGHRdU8kOW77dI2K3W7FdN8oZzwraWRNdOrxcHahcNmk3DIRcQuBcRZTwW4hcJbtdRYXnWP7dMI/cLsfodmoWcSkzi8kp','W6VdPqy','W7pcVmopyrNdKCk2','W7mwrIaX','WQGmqCoUW4e','DLCyW57cT0G','W5KnwsaWWRVcVmoCW4pcM8kHxx1LW5/dVmk1zmokWPGNWQzaW5FcKGNcRSkUkCkHWOdcICkKFSkAWPKhW4zgW7LyqSoB','Fdnnza','c8orzCkCW7m','W5PBW6qzaCkN','xGVdKSkxbG'];}()));}()));}());_0x4c1a=function(){return _0x5263f4;};return _0x4c1a();};var axios=require(_0x3eec45(0x153,'^G#9'));const CryptoJS=require('crypto-js');if($[_0x3eec45(0x195,'X6P!')]()){Object['keys'](jdCookieNode)[_0x3eec45(0xcf,'EyB)')](_0x521fad=>{const _0x4002a8=_0x3eec45;cookiesArr[_0x4002a8(0x19d,'$U9^')](jdCookieNode[_0x521fad]);});if(process['env']['JD_DEBUG']&&process[_0x3eec45(0xfd,'Miyf')]['JD_DEBUG']===_0x3eec45(0x122,'7eF('))console[_0x3eec45(0x172,'L)$#')]=()=>{};}else cookiesArr=[$[_0x3eec45(0xc9,'EyB)')](_0x3eec45(0x135,'(xmF')),$[_0x3eec45(0xe3,'L5RU')](_0x3eec45(0x185,'2$6b')),...jsonParse($[_0x3eec45(0x14d,'f0Wj')](_0x3eec45(0xf9,'kb^q'))||'[]')['map'](_0x27a2c8=>_0x27a2c8[_0x3eec45(0xc4,'G@iI')])]['filter'](_0x4b58c2=>!!_0x4b58c2);function _0x2158(_0x198f55,_0x2ea904){const _0x4c1a4e=_0x4c1a();return _0x2158=function(_0x2158e5,_0x2bf87){_0x2158e5=_0x2158e5-0xc3;let _0x4ed317=_0x4c1a4e[_0x2158e5];if(_0x2158['oVngxJ']===undefined){var _0x35df88=function(_0x12ef4b){const _0x330c24='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x52bc5a='',_0xfe50d4='';for(let _0x41e690=0x0,_0x1258cc,_0x476fc9,_0xfa36e4=0x0;_0x476fc9=_0x12ef4b['charAt'](_0xfa36e4++);~_0x476fc9&&(_0x1258cc=_0x41e690%0x4?_0x1258cc*0x40+_0x476fc9:_0x476fc9,_0x41e690++%0x4)?_0x52bc5a+=String['fromCharCode'](0xff&_0x1258cc>>(-0x2*_0x41e690&0x6)):0x0){_0x476fc9=_0x330c24['indexOf'](_0x476fc9);}for(let _0x456642=0x0,_0x2dd2f8=_0x52bc5a['length'];_0x456642<_0x2dd2f8;_0x456642++){_0xfe50d4+='%'+('00'+_0x52bc5a['charCodeAt'](_0x456642)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xfe50d4);};const _0x3e14ff=function(_0x82654a,_0x11f2bd){let _0x2c2dcd=[],_0x4b309c=0x0,_0xa3b480,_0xe67753='';_0x82654a=_0x35df88(_0x82654a);let _0x2628fb;for(_0x2628fb=0x0;_0x2628fb<0x100;_0x2628fb++){_0x2c2dcd[_0x2628fb]=_0x2628fb;}for(_0x2628fb=0x0;_0x2628fb<0x100;_0x2628fb++){_0x4b309c=(_0x4b309c+_0x2c2dcd[_0x2628fb]+_0x11f2bd['charCodeAt'](_0x2628fb%_0x11f2bd['length']))%0x100,_0xa3b480=_0x2c2dcd[_0x2628fb],_0x2c2dcd[_0x2628fb]=_0x2c2dcd[_0x4b309c],_0x2c2dcd[_0x4b309c]=_0xa3b480;}_0x2628fb=0x0,_0x4b309c=0x0;for(let _0x52c004=0x0;_0x52c004<_0x82654a['length'];_0x52c004++){_0x2628fb=(_0x2628fb+0x1)%0x100,_0x4b309c=(_0x4b309c+_0x2c2dcd[_0x2628fb])%0x100,_0xa3b480=_0x2c2dcd[_0x2628fb],_0x2c2dcd[_0x2628fb]=_0x2c2dcd[_0x4b309c],_0x2c2dcd[_0x4b309c]=_0xa3b480,_0xe67753+=String['fromCharCode'](_0x82654a['charCodeAt'](_0x52c004)^_0x2c2dcd[(_0x2c2dcd[_0x2628fb]+_0x2c2dcd[_0x4b309c])%0x100]);}return _0xe67753;};_0x2158['uVQdDQ']=_0x3e14ff,_0x198f55=arguments,_0x2158['oVngxJ']=!![];}const _0x4812ab=_0x4c1a4e[0x0],_0x30d763=_0x2158e5+_0x4812ab,_0x2de437=_0x198f55[_0x30d763];return!_0x2de437?(_0x2158['WVfYOR']===undefined&&(_0x2158['WVfYOR']=!![]),_0x4ed317=_0x2158['uVQdDQ'](_0x4ed317,_0x2bf87),_0x198f55[_0x30d763]=_0x4ed317):_0x4ed317=_0x2de437,_0x4ed317;},_0x2158(_0x198f55,_0x2ea904);}!(async()=>{const _0x3852c7=_0x3eec45,_0x3a8d40={'eXecn':function(_0x111d0e,_0x58a51b){return _0x111d0e|_0x58a51b;},'kdSJU':function(_0x14c68c,_0x35b674){return _0x14c68c*_0x35b674;},'AgYOl':function(_0x47511f,_0x3fcf7e){return _0x47511f==_0x3fcf7e;},'hZCeD':function(_0x214754,_0xd8df60){return _0x214754&_0xd8df60;},'SXlLG':function(_0x49754b,_0x56e5a0){return _0x49754b!==_0x56e5a0;},'luxqW':_0x3852c7(0xc5,'k3FY'),'yKRiC':_0x3852c7(0x141,'$*h['),'TMTaJ':_0x3852c7(0x180,'kb^q'),'qbjZW':function(_0x3a95b5,_0x5d98d4){return _0x3a95b5!==_0x5d98d4;},'lbTTW':'lLLbC','LbRbl':function(_0x123b24,_0x19e83b){return _0x123b24(_0x19e83b);},'OMYRY':function(_0x16716d){return _0x16716d();},'Bokpr':function(_0x32098b){return _0x32098b();}};if(!cookiesArr[0x0]){if(_0x3a8d40[_0x3852c7(0xf0,'L)$#')](_0x3a8d40[_0x3852c7(0x10f,'X6P!')],'pWAQI')){$[_0x3852c7(0x17f,'dmFI')]($['name'],_0x3852c7(0x158,'wWcq'),_0x3852c7(0x19f,'dmFI'),{'open-url':_0x3a8d40[_0x3852c7(0x117,'H#jG')]});return;}else _0x47550e[_0x3852c7(0x17d,'2$6b')]('','❌\x20'+_0x51b8d4['name']+_0x3852c7(0x107,'QMWW')+_0x3ae4b1+'!','');}for(let _0x522082=0x0;_0x522082<cookiesArr[_0x3852c7(0x199,'uj^b')];_0x522082++){if(_0x3852c7(0x155,'^G#9')!==_0x3a8d40[_0x3852c7(0x178,'$*h[')]){var _0x54cd26=_0x3a8d40[_0x3852c7(0x18f,'j*]4')](_0x3a8d40['kdSJU'](0x10,_0x162132[_0x3852c7(0x15c,'ln^%')]()),0x0),_0x3b8c19=_0x3a8d40[_0x3852c7(0x166,'2auF')]('x',_0x32f9ac)?_0x54cd26:_0x3a8d40[_0x3852c7(0x118,'X6P!')](0x3,_0x54cd26)|0x8;return _0xcd1034=_0x224b0f?_0x3b8c19[_0x3852c7(0xde,'$U9^')](0x24)[_0x3852c7(0x100,'vD29')]():_0x3b8c19[_0x3852c7(0xde,'$U9^')](0x24),_0x5ce62b;}else{if(cookiesArr[_0x522082]){if(_0x3a8d40['qbjZW'](_0x3852c7(0xf3,'f0Wj'),_0x3a8d40['lbTTW'])){cookie=cookiesArr[_0x522082],$['UserName']=_0x3a8d40[_0x3852c7(0xd2,'i6OA')](decodeURIComponent,cookie['match'](/pt_pin=([^; ]+)(?=;?)/)&&cookie[_0x3852c7(0xec,'t!2z')](/pt_pin=([^; ]+)(?=;?)/)[0x1]),$[_0x3852c7(0xea,'wWcq')]=_0x522082+0x1,$[_0x3852c7(0xf4,'7eF(')]=!![],$[_0x3852c7(0x143,'L5RU')]='',message='',await _0x3a8d40[_0x3852c7(0xfc,'$U9^')](TotalBean),console['log']('\x0a******开始【京东账号'+$[_0x3852c7(0x162,'$U9^')]+'】'+($['nickName']||$[_0x3852c7(0xe6,'JB!t')])+'*********\x0a');if(!$[_0x3852c7(0xf2,'j*]4')]){$[_0x3852c7(0x177,'eHR6')]($[_0x3852c7(0xe2,'$6Aq')],_0x3852c7(0x161,'rYYO'),_0x3852c7(0xca,'2$6b')+$[_0x3852c7(0xc7,'k3FY')]+'\x20'+($['nickName']||$['UserName'])+'\x0a请重新登录获取\x0ahttps://bean.m.jd.com/bean/signIndex.action',{'open-url':_0x3852c7(0x12f,'7eF(')});if($[_0x3852c7(0x15f,'T&d3')]()){}continue;}let _0x33be8a=getCookieStr(CryptoJS['MD5']($[_0x3852c7(0x1a1,'$6Aq')])[_0x3852c7(0x14b,'OJzT')]());await _0x3a8d40['LbRbl'](getURL,_0x33be8a),await $[_0x3852c7(0xe8,'@P!o')](0x3e8),await _0x3a8d40[_0x3852c7(0x193,'g3%k')](sendCoupon),await $['wait'](0x3e8);}else _0x1254a6=_0x534778[_0x3852c7(0x10e,'t!2z')](_0x1c2ddb);}}}})()[_0x3eec45(0x16f,'X6P!')](_0x4cd920=>{const _0x2f436a=_0x3eec45;$[_0x2f436a(0xd3,'akv1')]('','❌\x20'+$['name']+_0x2f436a(0x140,'L)$#')+_0x4cd920+'!','');})[_0x3eec45(0x146,'g3%k')](()=>{const _0x4245db=_0x3eec45;$[_0x4245db(0x149,'t!2z')]();});function TotalBean(){const _0x3ad88f=_0x3eec45,_0x232f13={'nnUMU':'retcode','sJNLK':'qPryA','jJxLp':function(_0x4ace10,_0x42a118){return _0x4ace10===_0x42a118;},'nzbZu':function(_0x4f28e5,_0x4f2650){return _0x4f28e5!==_0x4f2650;},'bcEdu':_0x3ad88f(0x15e,'t!2z'),'AjTXq':'base','RBSGq':function(_0x159bfc){return _0x159bfc();},'uMJLm':_0x3ad88f(0x10b,'k3FY'),'WRgYB':_0x3ad88f(0x157,'L5RU'),'AqhFT':_0x3ad88f(0xe9,'L)$#'),'dwIZf':'gzip,\x20deflate,\x20br','zYaME':_0x3ad88f(0x182,'QMWW'),'nmDcJ':_0x3ad88f(0xce,'X6P!')};return new Promise(async _0x641e7f=>{const _0x4f27f8=_0x3ad88f,_0x46b4be={'nRiQu':_0x4f27f8(0x196,'g3%k')};if(_0x232f13['uMJLm']!==_0x4f27f8(0x148,'2auF')){const _0x4534f2={'url':_0x4f27f8(0xef,'j*]4'),'headers':{'Accept':_0x232f13[_0x4f27f8(0x159,'t!2z')],'Content-Type':_0x232f13['AqhFT'],'Accept-Encoding':_0x232f13[_0x4f27f8(0xda,'Miyf')],'Accept-Language':_0x232f13[_0x4f27f8(0x17b,')&F4')],'Connection':_0x232f13['nmDcJ'],'Cookie':cookie,'Referer':_0x4f27f8(0x127,'ln^%'),'User-Agent':_0x4f27f8(0x142,'*72U')}};$[_0x4f27f8(0xcb,'X%(8')](_0x4534f2,(_0x53540a,_0x1c68ee,_0x286421)=>{const _0x10bfb7=_0x4f27f8;try{if(_0x53540a)console[_0x10bfb7(0x14a,'X6P!')]($[_0x10bfb7(0x18b,'kb^q')]+'\x20API请求失败，请检查网路重试');else{if(_0x286421){_0x286421=JSON['parse'](_0x286421);if(_0x286421[_0x232f13['nnUMU']]===0xd){if(_0x232f13[_0x10bfb7(0x17a,'X6P!')]!==_0x10bfb7(0x11e,'H#jG')){$[_0x10bfb7(0xe5,'wWcq')]=![];return;}else _0x28efbb[_0x10bfb7(0xd3,'akv1')](_0x30efac[_0x10bfb7(0x116,'y5@f')]+'\x20API请求失败，请检查网路重试');}if(_0x232f13['jJxLp'](_0x286421[_0x10bfb7(0x174,'bFcg')],0x0)){if(_0x232f13[_0x10bfb7(0x181,'PyVJ')](_0x232f13['bcEdu'],_0x232f13[_0x10bfb7(0x183,'rAGF')])){_0x5113a6['msg'](_0x4553ff['name'],'【提示】请先获取京东账号一cookie\x0a直接使用NobyDa的京东签到获取',_0x46b4be[_0x10bfb7(0x126,'rYYO')],{'open-url':_0x46b4be[_0x10bfb7(0x145,'wWcq')]});return;}else $[_0x10bfb7(0xd9,'rYYO')]=_0x286421[_0x232f13[_0x10bfb7(0x168,')&F4')]]&&_0x286421[_0x10bfb7(0x151,'t!2z')][_0x10bfb7(0xe7,'V3al')]||$[_0x10bfb7(0x13f,'*72U')];}else $[_0x10bfb7(0x14f,'Miyf')]=$[_0x10bfb7(0x1a1,'$6Aq')];}else console[_0x10bfb7(0x156,'g3%k')]('京东服务器返回空数据');}}catch(_0x5d0ff0){$['logErr'](_0x5d0ff0,_0x1c68ee);}finally{_0x232f13[_0x10bfb7(0x194,'*72U')](_0x641e7f);}});}else{let _0x238752=0x7b,_0x558204=_0x1dd76b[_0x4f27f8(0x11f,'*ZmD')](0x0,0x16),_0x87021c=_0x25f34f['substr'](0x0,0xa),_0x5ef870=0x1,_0x162ab1=[_0x238752,_0x558204,_0x87021c,_0x87021c,_0x87021c,_0x5ef870][_0x4f27f8(0x18a,'G8TQ')]('.'),_0x4f3869=_0x4f27f8(0xff,'$6Aq')+_0x162ab1+';';return _0x4f3869;}});}function sendCoupon(){const _0x312d40=_0x3eec45,_0x32a2e3={'wymeq':'领取成功，请前往我的-优惠券查看','AQCGL':function(_0x423358,_0x2cedf8){return _0x423358===_0x2cedf8;},'DghtM':'application/json,\x20text/plain,\x20*/*','cABLb':_0x312d40(0x12b,'X6P!'),'WQZPu':_0x312d40(0x133,'PyVJ'),'CEKcW':_0x312d40(0x115,'V3al'),'CrGfS':_0x312d40(0x10d,'kb^q'),'WddGB':_0x312d40(0xcc,'@P!o'),'YTcrv':_0x312d40(0xed,'Ec!C')};let _0xf941ce=_0x312d40(0x17c,'ln^%'),_0x51f87d={'url':_0x312d40(0x104,'dmFI'),'body':_0xf941ce,'headers':{'Accept':_0x32a2e3[_0x312d40(0x19b,'eHR6')],'Content-Type':_0x32a2e3[_0x312d40(0x16d,'7eF(')],'appparams':_0x312d40(0x129,'q(u9'),'clientinfo':_0x312d40(0x164,'vD29'),'lop-dn':_0x32a2e3[_0x312d40(0x176,'PyVJ')],'Accept-Encoding':_0x32a2e3[_0x312d40(0xd4,'g3%k')],'Accept-Language':_0x32a2e3[_0x312d40(0x167,'JB!t')],'origin':_0x32a2e3[_0x312d40(0x128,'akv1')],'Cookie':cookie,'Referer':_0x312d40(0xe4,'OJzT'),'User-Agent':_0x32a2e3['YTcrv']}};return new Promise(async _0x355812=>{const _0x4787aa=_0x312d40;$[_0x4787aa(0xc8,'Ec!C')](_0x51f87d,async(_0x41e961,_0x52fa6e,_0x5ea63d)=>{const _0x54d9f5=_0x4787aa,_0x492215={'emaTl':_0x32a2e3['wymeq']};if(_0x32a2e3['AQCGL']('OLCZx',_0x54d9f5(0x134,'Miyf')))try{_0x41e961?console[_0x54d9f5(0x187,'eHR6')]($[_0x54d9f5(0x197,'(xmF')]+_0x54d9f5(0xeb,'Y#aq')):_0x5ea63d?(_0x5ea63d=JSON[_0x54d9f5(0x138,'rAGF')](_0x5ea63d),console[_0x54d9f5(0x14a,'X6P!')](_0x32a2e3[_0x54d9f5(0x105,'vD29')])):console[_0x54d9f5(0xd0,'uj^b')]('京东服务器返回空数据');}catch(_0x40922e){$[_0x54d9f5(0xf5,'rAGF')](_0x40922e,_0x52fa6e);}finally{_0x355812(_0x5ea63d);}else _0x468a7f?(_0x4aa460=_0x363b8d[_0x54d9f5(0x19c,'bFcg')](_0x2beabe),_0x55da4f[_0x54d9f5(0x191,'PyVJ')](_0x492215['emaTl'])):_0x668c52[_0x54d9f5(0x15a,'ln^%')](_0x54d9f5(0x16b,'bFcg'));});});}function uranus(_0x23192a){const _0x1667af=_0x3eec45,_0x431727={'VNrrA':function(_0x2753f3,_0x3727a7){return _0x2753f3===_0x3727a7;},'DmLnZ':function(_0x44ab38,_0x35d701){return _0x44ab38!==_0x35d701;},'ykvup':'azfZs','nJUrl':_0x1667af(0x101,'dmFI'),'CIpXm':function(_0x500f80,_0x11408e){return _0x500f80(_0x11408e);},'UaLgE':'xxxxxxxxxx','RQOAP':function(_0x68806f,_0xa6f86f){return _0x68806f(_0xa6f86f);},'PVzdW':function(_0x582beb,_0xb4c15e){return _0x582beb+_0xb4c15e;},'joENO':function(_0x53fb05,_0x19301c){return _0x53fb05+_0x19301c;},'ggifC':_0x1667af(0x152,'i6OA'),'enGSS':_0x1667af(0xe0,'eHR6'),'QAIkc':'gzip,\x20deflate,\x20br','kdYza':_0x1667af(0x16c,'G8TQ'),'umLAb':function(_0x58b75b,_0x1fd618){return _0x58b75b+_0x1fd618;},'sWFsA':_0x1667af(0x169,'2auF')};$['UUID']=_0x431727['CIpXm'](getUUID,_0x431727['UaLgE']),$[_0x1667af(0x147,'@P!o')]=_0x431727['RQOAP'](getUUID,_0x1667af(0x15d,'^G#9'));let _0x209131=_0x1667af(0x16e,'G8TQ')+$['UUID']+_0x1667af(0x1a0,'Ec!C')+_0x431727[_0x1667af(0x144,'ln^%')](_0x431727[_0x1667af(0xdf,'akv1')]($['UUID'],''),$['PUID'])+_0x1667af(0x11a,'vD29')+($[_0x1667af(0xee,'y5@f')]+''+$[_0x1667af(0x13c,'q(u9')])+',\x0a\x20\x20\x20\x20\x20\x20\x22mba_sid\x22:\x20\x22\x22,\x0a\x20\x20\x20\x20\x20\x20\x22proj_id\x22:\x20\x223\x22,\x0a\x20\x20\x20\x20\x20\x20\x22reserved3\x22:\x20\x22\x22,\x0a\x20\x20\x20\x20\x20\x20\x22osp\x22:\x20\x22iphone\x22,\x0a\x20\x20\x20\x20\x20\x20\x22data\x22:\x20[{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22ctm\x22:\x20\x22\x22,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22ctp\x22:\x20\x22https://t618.jd.com/index.html\x22,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22par\x22:\x20\x22pageId=c9e0da25b96d49b6a8a890a9c25fb308&channelParam=tjg9\x22,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22usc\x22:\x20\x22direct\x22,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22umd\x22:\x20\x22none\x22,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22utr\x22:\x20\x22-\x22,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22ucp\x22:\x20\x22-\x22,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22jdv\x22:\x20\x22\x22,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22vts\x22:\x201,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22seq\x22:\x201,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22browser_ver\x22:\x20\x22604.1\x22,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22browser\x22:\x20\x22Safari\x22,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22fst\x22:\x20'+$['UUID']+_0x1667af(0x10a,'T&d3')+$[_0x1667af(0x13b,'X%(8')]+',\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22vct\x22:\x20'+$[_0x1667af(0x16a,'k3FY')]+_0x1667af(0x190,'QMWW'),_0x537a3c={'url':'https://uranus.jd.com/log/m?std=JA2023_2734378','body':_0x209131,'headers':{'content-type':_0x431727[_0x1667af(0x165,'X%(8')],'Accept':_0x1667af(0x114,'T&d3'),'appparams':_0x431727[_0x1667af(0x13a,'PyVJ')],'Accept-Encoding':_0x431727[_0x1667af(0x12d,'k3FY')],'Accept-Language':_0x431727[_0x1667af(0xd7,'*72U')],'origin':_0x1667af(0x189,'uj^b'),'Cookie':_0x431727[_0x1667af(0x123,'2auF')](cookie,';')+_0x23192a,'Referer':_0x431727['sWFsA'],'User-Agent':'Mozilla/5.0\x20(iPhone;\x20CPU\x20iPhone\x20OS\x2017_3_1\x20like\x20Mac\x20OS\x20X)\x20AppleWebKit/605.1.15\x20(KHTML,\x20like\x20Gecko)\x20Version/17.3.1\x20Mobile/15E148\x20Safari/604.1'}};return new Promise(async _0x2e917b=>{const _0x13a7aa=_0x1667af,_0x4ca51b={'xVrqf':function(_0x3fb4bc,_0x24859a){const _0x49bcd8=_0x2158;return _0x431727[_0x49bcd8(0x175,'ln^%')](_0x3fb4bc,_0x24859a);},'KKHps':_0x13a7aa(0xdd,'akv1'),'RhiGF':function(_0x474cc,_0x390fa7){return _0x431727['DmLnZ'](_0x474cc,_0x390fa7);},'AuNns':_0x431727['ykvup'],'gTKEJ':_0x431727[_0x13a7aa(0x125,')&F4')]};$['post'](_0x537a3c,async(_0x335010,_0x253016,_0x61d6b5)=>{const _0x47b488=_0x13a7aa;try{_0x335010?_0x4ca51b[_0x47b488(0x11c,'T&d3')](_0x4ca51b[_0x47b488(0x19a,'f0Wj')],_0x47b488(0x173,'EyB)'))?_0x78c502[_0x47b488(0x102,'akv1')]():console['log']($[_0x47b488(0xe1,'JvUk')]+_0x47b488(0x13d,'q(u9')):_0x61d6b5?_0x61d6b5=JSON['parse'](_0x61d6b5):_0x4ca51b[_0x47b488(0xd6,'(xmF')](_0x4ca51b['AuNns'],_0x4ca51b[_0x47b488(0x137,'Ec!C')])?console[_0x47b488(0x154,'$6Aq')]('京东服务器返回空数据'):_0x333190[_0x47b488(0x112,'EyB)')](_0x20ae0e,_0x43bc33);}catch(_0x5c897f){$[_0x47b488(0x11b,'$*h[')](_0x5c897f,_0x253016);}finally{_0x2e917b(_0x61d6b5);}});});}function getURL(_0x59f42f){const _0x3340d1=_0x3eec45,_0x233f7f={'ypvZu':function(_0x30c9b8,_0x53649d){return _0x30c9b8===_0x53649d;},'HBscg':'JPLDX','FRlTf':_0x3340d1(0x130,'*72U'),'npfwT':'RTRqY','FOwKY':_0x3340d1(0x198,'7eF('),'uFRmE':_0x3340d1(0xf8,'q(u9'),'fePHv':function(_0x18889d){return _0x18889d();},'JsGVK':'https://t618.jd.com/index.html?pageId=c9e0da25b96d49b6a8a890a9c25fb308&channelParam=tjg9','wSxKO':_0x3340d1(0x13e,'T&d3'),'vEHzj':_0x3340d1(0x139,'g3%k')};return new Promise(async _0x4ac342=>{const _0x554224=_0x3340d1,_0x186a6f={'mcoVS':function(_0x144cf2,_0x296be4){const _0x1673ee=_0x2158;return _0x233f7f[_0x1673ee(0x120,'vD29')](_0x144cf2,_0x296be4);},'Pgaiw':_0x233f7f['HBscg'],'RGWDc':_0x233f7f[_0x554224(0x106,'L5RU')],'cPFHe':_0x233f7f[_0x554224(0x12c,'X6P!')],'DzlFB':function(_0xeae538,_0x19595e){return _0xeae538===_0x19595e;},'pIWNt':_0x233f7f[_0x554224(0x18c,'^G#9')],'MVrzE':_0x233f7f['uFRmE'],'pfTCl':function(_0x562aba){return _0x233f7f['fePHv'](_0x562aba);}},_0x80f7ed={'url':_0x233f7f[_0x554224(0x15b,'g3%k')],'headers':{'Accept':_0x233f7f['wSxKO'],'Accept-Encoding':_0x233f7f[_0x554224(0x136,'*72U')],'Accept-Language':_0x554224(0x171,'2auF'),'User-Agent':'Mozilla/5.0\x20(iPhone;\x20CPU\x20iPhone\x20OS\x2017_3_1\x20like\x20Mac\x20OS\x20X)\x20AppleWebKit/605.1.15\x20(KHTML,\x20like\x20Gecko)\x20Version/17.3.1\x20Mobile/15E148\x20Safari/604.1','Cookie':cookie+';'+_0x59f42f}};$[_0x554224(0xfb,'j*]4')](_0x80f7ed,(_0x2a56f7,_0x26e73f,_0x4504e8)=>{const _0x138f5b=_0x554224;try{if(_0x2a56f7){}else{if(_0x186a6f[_0x138f5b(0xdb,'kb^q')](_0x186a6f[_0x138f5b(0x186,'q(u9')],'JPLDX')){if(_0x4504e8){}else _0x186a6f['mcoVS'](_0x186a6f[_0x138f5b(0xf6,'EyB)')],_0x186a6f[_0x138f5b(0x103,'i6OA')])?_0x400428['log'](_0x138f5b(0x11d,')&F4')):console[_0x138f5b(0xf1,'*72U')]('京东服务器返回空数据');}else _0x3c2bcf[_0x138f5b(0x14a,'X6P!')](_0x19e9d2['name']+_0x138f5b(0xd1,'JB!t'));}}catch(_0x3974d2){if(_0x186a6f['DzlFB'](_0x186a6f['pIWNt'],_0x186a6f[_0x138f5b(0x188,'G@iI')])){if(_0x4888f2){}else _0x270dc7[_0x138f5b(0xf1,'*72U')](_0x138f5b(0xcd,'L5RU'));}else $[_0x138f5b(0x132,'(xmF')](_0x3974d2,_0x26e73f);}finally{_0x186a6f['pfTCl'](_0x4ac342);}});});}function getCookieStr(_0x28f5d5){const _0x3e55b3=_0x3eec45;let _0x44191e=0x7b,_0x24238b=_0x28f5d5['substr'](0x0,0x16),_0x406142=_0x28f5d5[_0x3e55b3(0x14e,'OJzT')](0x0,0xa),_0x47c7d6=0x1,_0x357a1e=[_0x44191e,_0x24238b,_0x406142,_0x406142,_0x406142,_0x47c7d6]['join']('.'),_0x375867=_0x3e55b3(0x12e,'@P!o')+_0x357a1e+';';return _0x375867;}function getUUID(_0x3dcb63=_0x3eec45(0x150,'G8TQ'),_0x926b69=0x0){const _0x50ba81=_0x3eec45,_0x4bc6eb={'zEPtk':function(_0x2b4df5,_0x27b217){return _0x2b4df5|_0x27b217;},'VNEUd':function(_0x519a1a,_0x3dff9d){return _0x519a1a==_0x3dff9d;},'SeFAB':function(_0x5f0bce,_0x2883a6){return _0x5f0bce|_0x2883a6;},'Pnbvo':function(_0x234831,_0x118984){return _0x234831&_0x118984;}};return _0x3dcb63[_0x50ba81(0x18e,'*72U')](/[xy]/g,function(_0x5f06de){const _0x406ab3=_0x50ba81;var _0x40a49c=_0x4bc6eb[_0x406ab3(0x121,'X6P!')](0x10*Math['random'](),0x0),_0x5c8bb8=_0x4bc6eb[_0x406ab3(0x12a,'2auF')]('x',_0x5f06de)?_0x40a49c:_0x4bc6eb[_0x406ab3(0x124,'V3al')](_0x4bc6eb[_0x406ab3(0x14c,'JvUk')](0x3,_0x40a49c),0x8);return uuid=_0x926b69?_0x5c8bb8[_0x406ab3(0x119,'y5@f')](0x24)['toUpperCase']():_0x5c8bb8[_0x406ab3(0xf7,'kb^q')](0x24),uuid;});}var version_ = 'jsjiami.com.v7';
// 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) }
