Files
smallfawn-decode_action/output.js
2024-06-29 05:04:29 +00:00

3867 lines
156 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
//Sat Jun 29 2024 05:04:29 GMT+0000 (Coordinated Universal Time)
//Base:https://github.com/echo094/decode-js
//Modify:https://github.com/smallfawn/decode_action
(() => {
var b = {
955: function (f, g, h) {
var k;
f.exports = (k = h(21), h(754), h(636), h(506), h(165), function () {
var v = k,
w = v.lib,
x = w.BlockCipher,
z = v.algo,
A = [],
B = [],
C = [],
D = [],
E = [],
F = [],
G = [],
H = [],
I = [],
J = [];
!function () {
for (var O = [], P = 0; P < 256; P++) {
O[P] = P < 128 ? P << 1 : P << 1 ^ 283;
}
var Q = 0,
R = 0;
for (P = 0; P < 256; P++) {
var S = R ^ R << 1 ^ R << 2 ^ R << 3 ^ R << 4;
S = S >>> 8 ^ 255 & S ^ 99;
A[Q] = S;
B[S] = Q;
var T = O[Q],
U = O[T],
V = O[U],
W = 257 * O[S] ^ 16843008 * S;
C[Q] = W << 24 | W >>> 8;
D[Q] = W << 16 | W >>> 16;
E[Q] = W << 8 | W >>> 24;
F[Q] = W;
W = 16843009 * V ^ 65537 * U ^ 257 * T ^ 16843008 * Q;
G[S] = W << 24 | W >>> 8;
H[S] = W << 16 | W >>> 16;
I[S] = W << 8 | W >>> 24;
J[S] = W;
Q ? (Q = T ^ O[O[O[V ^ T]]], R ^= O[O[R]]) : Q = R = 1;
}
}();
z.AES = x.extend({
_doReset: function () {
if (!this._nRounds || this._keyPriorReset !== this._key) {
for (this._keySchedule = [], (this._nRounds = Q + 6, (this._keyPriorReset = this._key, O = this._keyPriorReset = this._key, P = O.words, Q = O.sigBytes / 4, R = this._nRounds = Q + 6, S = 4 * (R + 1), T = this._keySchedule = [], U = 0, void 0)); U < S; U++) {
var O, P, Q, R, S, T, U;
U < Q ? T[U] = P[U] : (X = T[U - 1], U % Q ? Q > 6 && U % Q == 4 && (X = A[X >>> 24] << 24 | A[X >>> 16 & 255] << 16 | A[X >>> 8 & 255] << 8 | A[255 & X]) : (X = X << 8 | X >>> 24, X = A[X >>> 24] << 24 | A[X >>> 16 & 255] << 16 | A[X >>> 8 & 255] << 8 | A[255 & X], X ^= K[U / Q | 0] << 24), T[U] = T[U - Q] ^ X);
}
for (this._invKeySchedule = [], V = this._invKeySchedule = [], W = 0, void 0; W < S; W++) {
var V, W;
if (U = S - W, W % 4) {
var X = T[U];
} else {
X = T[U - 4];
}
V[W] = W < 4 || U <= 4 ? X : G[A[X >>> 24]] ^ H[A[X >>> 16 & 255]] ^ I[A[X >>> 8 & 255]] ^ J[A[255 & X]];
}
}
},
encryptBlock: function (N, O) {
this._doCryptBlock(N, O, this._keySchedule, C, D, E, F, A);
},
decryptBlock: function (N, O) {
var P = N[O + 1];
N[O + 1] = N[O + 3];
N[O + 3] = P;
this._doCryptBlock(N, O, this._invKeySchedule, G, H, I, J, B);
P = N[O + 1];
N[O + 1] = N[O + 3];
N[O + 3] = P;
},
_doCryptBlock: function (N, O, P, Q, R, S, T, U) {
for (var W = this._nRounds, X = N[O] ^ P[0], Y = N[O + 1] ^ P[1], Z = N[O + 2] ^ P[2], a0 = N[O + 3] ^ P[3], a1 = 4, a2 = 1; a2 < W; a2++) {
var a3 = Q[X >>> 24] ^ R[Y >>> 16 & 255] ^ S[Z >>> 8 & 255] ^ T[255 & a0] ^ P[a1++],
a4 = Q[Y >>> 24] ^ R[Z >>> 16 & 255] ^ S[a0 >>> 8 & 255] ^ T[255 & X] ^ P[a1++],
a5 = Q[Z >>> 24] ^ R[a0 >>> 16 & 255] ^ S[X >>> 8 & 255] ^ T[255 & Y] ^ P[a1++],
a6 = Q[a0 >>> 24] ^ R[X >>> 16 & 255] ^ S[Y >>> 8 & 255] ^ T[255 & Z] ^ P[a1++];
X = a3;
Y = a4;
Z = a5;
a0 = a6;
}
a3 = (U[X >>> 24] << 24 | U[Y >>> 16 & 255] << 16 | U[Z >>> 8 & 255] << 8 | U[255 & a0]) ^ P[a1++];
a4 = (U[Y >>> 24] << 24 | U[Z >>> 16 & 255] << 16 | U[a0 >>> 8 & 255] << 8 | U[255 & X]) ^ P[a1++];
a5 = (U[Z >>> 24] << 24 | U[a0 >>> 16 & 255] << 16 | U[X >>> 8 & 255] << 8 | U[255 & Y]) ^ P[a1++];
a6 = (U[a0 >>> 24] << 24 | U[X >>> 16 & 255] << 16 | U[Y >>> 8 & 255] << 8 | U[255 & Z]) ^ P[a1++];
N[O] = a3;
N[O + 1] = a4;
N[O + 2] = a5;
N[O + 3] = a6;
},
keySize: 8
});
var K = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54],
L = z.AES;
v.AES = x._createHelper(L);
}(), k.AES);
},
128: function (f, g, h) {
var k;
f.exports = (k = h(21), h(754), h(636), h(506), h(165), function () {
var p = k,
q = p.lib,
v = q.BlockCipher,
w = p.algo;
const x = 16,
y = [608135816, 2242054355, 320440878, 57701188, 2752067618, 698298832, 137296536, 3964562569, 1160258022, 953160567, 3193202383, 887688300, 3232508343, 3380367581, 1065670069, 3041331479, 2450970073, 2306472731],
z = [[3509652390, 2564797868, 805139163, 3491422135, 3101798381, 1780907670, 3128725573, 4046225305, 614570311, 3012652279, 134345442, 2240740374, 1667834072, 1901547113, 2757295779, 4103290238, 227898511, 1921955416, 1904987480, 2182433518, 2069144605, 3260701109, 2620446009, 720527379, 3318853667, 677414384, 3393288472, 3101374703, 2390351024, 1614419982, 1822297739, 2954791486, 3608508353, 3174124327, 2024746970, 1432378464, 3864339955, 2857741204, 1464375394, 1676153920, 1439316330, 715854006, 3033291828, 289532110, 2706671279, 2087905683, 3018724369, 1668267050, 732546397, 1947742710, 3462151702, 2609353502, 2950085171, 1814351708, 2050118529, 680887927, 999245976, 1800124847, 3300911131, 1713906067, 1641548236, 4213287313, 1216130144, 1575780402, 4018429277, 3917837745, 3693486850, 3949271944, 596196993, 3549867205, 258830323, 2213823033, 772490370, 2760122372, 1774776394, 2652871518, 566650946, 4142492826, 1728879713, 2882767088, 1783734482, 3629395816, 2517608232, 2874225571, 1861159788, 326777828, 3124490320, 2130389656, 2716951837, 967770486, 1724537150, 2185432712, 2364442137, 1164943284, 2105845187, 998989502, 3765401048, 2244026483, 1075463327, 1455516326, 1322494562, 910128902, 469688178, 1117454909, 936433444, 3490320968, 3675253459, 1240580251, 122909385, 2157517691, 634681816, 4142456567, 3825094682, 3061402683, 2540495037, 79693498, 3249098678, 1084186820, 1583128258, 426386531, 1761308591, 1047286709, 322548459, 995290223, 1845252383, 2603652396, 3431023940, 2942221577, 3202600964, 3727903485, 1712269319, 422464435, 3234572375, 1170764815, 3523960633, 3117677531, 1434042557, 442511882, 3600875718, 1076654713, 1738483198, 4213154764, 2393238008, 3677496056, 1014306527, 4251020053, 793779912, 2902807211, 842905082, 4246964064, 1395751752, 1040244610, 2656851899, 3396308128, 445077038, 3742853595, 3577915638, 679411651, 2892444358, 2354009459, 1767581616, 3150600392, 3791627101, 3102740896, 284835224, 4246832056, 1258075500, 768725851, 2589189241, 3069724005, 3532540348, 1274779536, 3789419226, 2764799539, 1660621633, 3471099624, 4011903706, 913787905, 3497959166, 737222580, 2514213453, 2928710040, 3937242737, 1804850592, 3499020752, 2949064160, 2386320175, 2390070455, 2415321851, 4061277028, 2290661394, 2416832540, 1336762016, 1754252060, 3520065937, 3014181293, 791618072, 3188594551, 3933548030, 2332172193, 3852520463, 3043980520, 413987798, 3465142937, 3030929376, 4245938359, 2093235073, 3534596313, 375366246, 2157278981, 2479649556, 555357303, 3870105701, 2008414854, 3344188149, 4221384143, 3956125452, 2067696032, 3594591187, 2921233993, 2428461, 544322398, 577241275, 1471733935, 610547355, 4027169054, 1432588573, 1507829418, 2025931657, 3646575487, 545086370, 48609733, 2200306550, 1653985193, 298326376, 1316178497, 3007786442, 2064951626, 458293330, 2589141269, 3591329599, 3164325604, 727753846, 2179363840, 146436021, 1461446943, 4069977195, 705550613, 3059967265, 3887724982, 4281599278, 3313849956, 1404054877, 2845806497, 146425753, 1854211946], [1266315497, 3048417604, 3681880366, 3289982499, 2909710000, 1235738493, 2632868024, 2414719590, 3970600049, 1771706367, 1449415276, 3266420449, 422970021, 1963543593, 2690192192, 3826793022, 1062508698, 1531092325, 1804592342, 2583117782, 2714934279, 4024971509, 1294809318, 4028980673, 1289560198, 2221992742, 1669523910, 35572830, 157838143, 1052438473, 1016535060, 1802137761, 1753167236, 1386275462, 3080475397, 2857371447, 1040679964, 2145300060, 2390574316, 1461121720, 2956646967, 4031777805, 4028374788, 33600511, 2920084762, 1018524850, 629373528, 3691585981, 3515945977, 2091462646, 2486323059, 586499841, 988145025, 935516892, 3367335476, 2599673255, 2839830854, 265290510, 3972581182, 2759138881, 3795373465, 1005194799, 847297441, 406762289, 1314163512, 1332590856, 1866599683, 4127851711, 750260880, 613907577, 1450815602, 3165620655, 3734664991, 3650291728, 3012275730, 3704569646, 1427272223, 778793252, 1343938022, 2676280711, 2052605720, 1946737175, 3164576444, 3914038668, 3967478842, 3682934266, 1661551462, 3294938066, 4011595847, 840292616, 3712170807, 616741398, 312560963, 711312465, 1351876610, 322626781, 1910503582, 271666773, 2175563734, 1594956187, 70604529, 3617834859, 1007753275, 1495573769, 4069517037, 2549218298, 2663038764, 504708206, 2263041392, 3941167025, 2249088522, 1514023603, 1998579484, 1312622330, 694541497, 2582060303, 2151582166, 1382467621, 776784248, 2618340202, 3323268794, 2497899128, 2784771155, 503983604, 4076293799, 907881277, 423175695, 432175456, 1378068232, 4145222326, 3954048622, 3938656102, 3820766613, 2793130115, 2977904593, 26017576, 3274890735, 3194772133, 1700274565, 1756076034, 4006520079, 3677328699, 720338349, 1533947780, 354530856, 688349552, 3973924725, 1637815568, 332179504, 3949051286, 53804574, 2852348879, 3044236432, 1282449977, 3583942155, 3416972820, 4006381244, 1617046695, 2628476075, 3002303598, 1686838959, 431878346, 2686675385, 1700445008, 1080580658, 1009431731, 832498133, 3223435511, 2605976345, 2271191193, 2516031870, 1648197032, 4164389018, 2548247927, 300782431, 375919233, 238389289, 3353747414, 2531188641, 2019080857, 1475708069, 455242339, 2609103871, 448939670, 3451063019, 1395535956, 2413381860, 1841049896, 1491858159, 885456874, 4264095073, 4001119347, 1565136089, 3898914787, 1108368660, 540939232, 1173283510, 2745871338, 3681308437, 4207628240, 3343053890, 4016749493, 1699691293, 1103962373, 3625875870, 2256883143, 3830138730, 1031889488, 3479347698, 1535977030, 4236805024, 3251091107, 2132092099, 1774941330, 1199868427, 1452454533, 157007616, 2904115357, 342012276, 595725824, 1480756522, 206960106, 497939518, 591360097, 863170706, 2375253569, 3596610801, 1814182875, 2094937945, 3421402208, 1082520231, 3463918190, 2785509508, 435703966, 3908032597, 1641649973, 2842273706, 3305899714, 1510255612, 2148256476, 2655287854, 3276092548, 4258621189, 236887753, 3681803219, 274041037, 1734335097, 3815195456, 3317970021, 1899903192, 1026095262, 4050517792, 356393447, 2410691914, 3873677099, 3682840055], [3913112168, 2491498743, 4132185628, 2489919796, 1091903735, 1979897079, 3170134830, 3567386728, 3557303409, 857797738, 1136121015, 1342202287, 507115054, 2535736646, 337727348, 3213592640, 1301675037, 2528481711, 1895095763, 1721773893, 3216771564, 62756741, 2142006736, 835421444, 2531993523, 1442658625, 3659876326, 2882144922, 676362277, 1392781812, 170690266, 3921047035, 1759253602, 3611846912, 1745797284, 664899054, 1329594018, 3901205900, 3045908486, 2062866102, 2865634940, 3543621612, 3464012697, 1080764994, 553557557, 3656615353, 3996768171, 991055499, 499776247, 1265440854, 648242737, 3940784050, 980351604, 3713745714, 1749149687, 3396870395, 4211799374, 3640570775, 1161844396, 3125318951, 1431517754, 545492359, 4268468663, 3499529547, 1437099964, 2702547544, 3433638243, 2581715763, 2787789398, 1060185593, 1593081372, 2418618748, 4260947970, 69676912, 2159744348, 86519011, 2512459080, 3838209314, 1220612927, 3339683548, 133810670, 1090789135, 1078426020, 1569222167, 845107691, 3583754449, 4072456591, 1091646820, 628848692, 1613405280, 3757631651, 526609435, 236106946, 48312990, 2942717905, 3402727701, 1797494240, 859738849, 992217954, 4005476642, 2243076622, 3870952857, 3732016268, 765654824, 3490871365, 2511836413, 1685915746, 3888969200, 1414112111, 2273134842, 3281911079, 4080962846, 172450625, 2569994100, 980381355, 4109958455, 2819808352, 2716589560, 2568741196, 3681446669, 3329971472, 1835478071, 660984891, 3704678404, 4045999559, 3422617507, 3040415634, 1762651403, 1719377915, 3470491036, 2693910283, 3642056355, 3138596744, 1364962596, 2073328063, 1983633131, 926494387, 3423689081, 2150032023, 4096667949, 1749200295, 3328846651, 309677260, 2016342300, 1779581495, 3079819751, 111262694, 1274766160, 443224088, 298511866, 1025883608, 3806446537, 1145181785, 168956806, 3641502830, 3584813610, 1689216846, 3666258015, 3200248200, 1692713982, 2646376535, 4042768518, 1618508792, 1610833997, 3523052358, 4130873264, 2001055236, 3610705100, 2202168115, 4028541809, 2961195399, 1006657119, 2006996926, 3186142756, 1430667929, 3210227297, 1314452623, 4074634658, 4101304120, 2273951170, 1399257539, 3367210612, 3027628629, 1190975929, 2062231137, 2333990788, 2221543033, 2438960610, 1181637006, 548689776, 2362791313, 3372408396, 3104550113, 3145860560, 296247880, 1970579870, 3078560182, 3769228297, 1714227617, 3291629107, 3898220290, 166772364, 1251581989, 493813264, 448347421, 195405023, 2709975567, 677966185, 3703036547, 1463355134, 2715995803, 1338867538, 1343315457, 2802222074, 2684532164, 233230375, 2599980071, 2000651841, 3277868038, 1638401717, 4028070440, 3237316320, 6314154, 819756386, 300326615, 590932579, 1405279636, 3267499572, 3150704214, 2428286686, 3959192993, 3461946742, 1862657033, 1266418056, 963775037, 2089974820, 2263052895, 1917689273, 448879540, 3550394620, 3981727096, 150775221, 3627908307, 1303187396, 508620638, 2975983352, 2726630617, 1817252668, 1876281319, 1457606340, 908771278, 3720792119, 3617206836, 2455994898, 1729034894, 1080033504], [976866871, 3556439503, 2881648439, 1522871579, 1555064734, 1336096578, 3548522304, 2579274686, 3574697629, 3205460757, 3593280638, 3338716283, 3079412587, 564236357, 2993598910, 1781952180, 1464380207, 3163844217, 3332601554, 1699332808, 1393555694, 1183702653, 3581086237, 1288719814, 691649499, 2847557200, 2895455976, 3193889540, 2717570544, 1781354906, 1676643554, 2592534050, 3230253752, 1126444790, 2770207658, 2633158820, 2210423226, 2615765581, 2414155088, 3127139286, 673620729, 2805611233, 1269405062, 4015350505, 3341807571, 4149409754, 1057255273, 2012875353, 2162469141, 2276492801, 2601117357, 993977747, 3918593370, 2654263191, 753973209, 36408145, 2530585658, 25011837, 3520020182, 2088578344, 530523599, 2918365339, 1524020338, 1518925132, 3760827505, 3759777254, 1202760957, 3985898139, 3906192525, 674977740, 4174734889, 2031300136, 2019492241, 3983892565, 4153806404, 3822280332, 352677332, 2297720250, 60907813, 90501309, 3286998549, 1016092578, 2535922412, 2839152426, 457141659, 509813237, 4120667899, 652014361, 1966332200, 2975202805, 55981186, 2327461051, 676427537, 3255491064, 2882294119, 3433927263, 1307055953, 942726286, 933058658, 2468411793, 3933900994, 4215176142, 1361170020, 2001714738, 2830558078, 3274259782, 1222529897, 1679025792, 2729314320, 3714953764, 1770335741, 151462246, 3013232138, 1682292957, 1483529935, 471910574, 1539241949, 458788160, 3436315007, 1807016891, 3718408830, 978976581, 1043663428, 3165965781, 1927990952, 4200891579, 2372276910, 3208408903, 3533431907, 1412390302, 2931980059, 4132332400, 1947078029, 3881505623, 4168226417, 2941484381, 1077988104, 1320477388, 886195818, 18198404, 3786409000, 2509781533, 112762804, 3463356488, 1866414978, 891333506, 18488651, 661792760, 1628790961, 3885187036, 3141171499, 876946877, 2693282273, 1372485963, 791857591, 2686433993, 3759982718, 3167212022, 3472953795, 2716379847, 445679433, 3561995674, 3504004811, 3574258232, 54117162, 3331405415, 2381918588, 3769707343, 4154350007, 1140177722, 4074052095, 668550556, 3214352940, 367459370, 261225585, 2610173221, 4209349473, 3468074219, 3265815641, 314222801, 3066103646, 3808782860, 282218597, 3406013506, 3773591054, 379116347, 1285071038, 846784868, 2669647154, 3771962079, 3550491691, 2305946142, 453669953, 1268987020, 3317592352, 3279303384, 3744833421, 2610507566, 3859509063, 266596637, 3847019092, 517658769, 3462560207, 3443424879, 370717030, 4247526661, 2224018117, 4143653529, 4112773975, 2788324899, 2477274417, 1456262402, 2901442914, 1517677493, 1846949527, 2295493580, 3734397586, 2176403920, 1280348187, 1908823572, 3871786941, 846861322, 1172426758, 3287448474, 3383383037, 1655181056, 3139813346, 901632758, 1897031941, 2986607138, 3066810236, 3447102507, 1393639104, 373351379, 950779232, 625454576, 3124240540, 4148612726, 2007998917, 544563296, 2244738638, 2330496472, 2058025392, 1291430526, 424198748, 50039436, 29584100, 3605783033, 2429876329, 2791104160, 1057563949, 3255363231, 3075367218, 3463963227, 1469046755, 985887462]];
var A = {
pbox: [],
sbox: []
};
function C(H, I) {
let K = I >> 24 & 255,
L = I >> 16 & 255,
M = I >> 8 & 255,
N = 255 & I,
O = H.sbox[0][K] + H.sbox[1][L];
O ^= H.sbox[2][M];
O += H.sbox[3][N];
return O;
}
function D(H, I, J) {
let L,
M = I,
N = J;
for (let O = 0; O < x; ++O) {
M ^= H.pbox[O];
N = C(H, M) ^ N;
L = M;
M = N;
N = L;
}
L = M;
M = N;
N = L;
N ^= H.pbox[x];
M ^= H.pbox[x + 1];
return {
left: M,
right: N
};
}
function E(H, I, J) {
let L,
M = I,
N = J;
for (let O = x + 1; O > 1; --O) {
M ^= H.pbox[O];
N = C(H, M) ^ N;
L = M;
M = N;
N = L;
}
L = M;
M = N;
N = L;
N ^= H.pbox[1];
M ^= H.pbox[0];
return {
left: M,
right: N
};
}
function F(H, I, J) {
for (let O = 0; O < 4; O++) {
H.sbox[O] = [];
for (let Q = 0; Q < 256; Q++) {
H.sbox[O][Q] = z[O][Q];
}
}
let K = 0;
for (let R = 0; R < x + 2; R++) {
H.pbox[R] = y[R] ^ I[K];
K++;
K >= J && (K = 0);
}
let L = 0,
M = 0,
N = 0;
for (let S = 0; S < x + 2; S += 2) {
N = D(H, L, M);
L = N.left;
M = N.right;
H.pbox[S] = L;
H.pbox[S + 1] = M;
}
for (let T = 0; T < 4; T++) {
for (let U = 0; U < 256; U += 2) {
N = D(H, L, M);
L = N.left;
M = N.right;
H.sbox[T][U] = L;
H.sbox[T][U + 1] = M;
}
}
return !0;
}
w.Blowfish = v.extend({
_doReset: function () {
if (this._keyPriorReset !== this._key) {
this._keyPriorReset = this._key;
var H = this._keyPriorReset,
I = H.words,
J = H.sigBytes / 4;
F(A, I, J);
}
},
encryptBlock: function (H, I) {
var K = D(A, H[I], H[I + 1]);
H[I] = K.left;
H[I + 1] = K.right;
},
decryptBlock: function (H, I) {
var J = E(A, H[I], H[I + 1]);
H[I] = J.left;
H[I + 1] = J.right;
},
blockSize: 2,
keySize: 4,
ivSize: 2
});
var G = w.Blowfish;
p.Blowfish = v._createHelper(G);
}(), k.Blowfish);
},
165: function (f, g, h) {
var k;
f.exports = (k = h(21), h(506), void (k.lib.Cipher || function (q) {
A.Cipher = D.extend({
cfg: B.extend(),
createEncryptor: function (V, W) {
return this.create(this._ENC_XFORM_MODE, V, W);
},
createDecryptor: function (V, W) {
return this.create(this._DEC_XFORM_MODE, V, W);
},
init: function (V, W, X) {
this.cfg = this.cfg.extend(X);
this._xformMode = V;
this._key = W;
this.reset();
},
reset: function () {
D.reset.call(this);
this._doReset();
},
process: function (V) {
this._append(V);
return this._process();
},
finalize: function (V) {
V && this._append(V);
var W = this._doFinalize();
return W;
},
keySize: 4,
ivSize: 4,
_ENC_XFORM_MODE: 1,
_DEC_XFORM_MODE: 2,
_createHelper: function () {
function X(Y) {
return "string" == typeof Y ? U : R;
}
return function (Y) {
return {
encrypt: function (a1, a2, a3) {
return X(a2).encrypt(Y, a1, a2, a3);
},
decrypt: function (a1, a2, a3) {
return X(a2).decrypt(Y, a1, a2, a3);
}
};
};
}()
});
A.BlockCipherMode = B.extend({
createEncryptor: function (V, W) {
return this.Encryptor.create(V, W);
},
createDecryptor: function (V, W) {
return this.Decryptor.create(V, W);
},
init: function (V, W) {
this._cipher = V;
this._iv = W;
}
});
J.CBC = function () {
var W = K.extend();
function X(Y, Z, a0) {
var a2,
a3 = this._iv;
a3 ? (a2 = a3, this._iv = q) : a2 = this._prevBlock;
for (var a4 = 0; a4 < a0; a4++) {
Y[Z + a4] ^= a2[a4];
}
}
W.Encryptor = W.extend({
processBlock: function (Y, Z) {
var a1 = this._cipher,
a2 = a1.blockSize;
X.call(this, Y, Z, a2);
a1.encryptBlock(Y, Z);
this._prevBlock = Y.slice(Z, Z + a2);
}
});
W.Decryptor = W.extend({
processBlock: function (Y, Z) {
var a0 = this._cipher,
a1 = a0.blockSize,
a2 = Y.slice(Z, Z + a1);
a0.decryptBlock(Y, Z);
X.call(this, Y, Z, a1);
this._prevBlock = a2;
}
});
return W;
}();
z.pad = {};
M.Pkcs7 = {
pad: function (V, W) {
for (var X = 4 * W, Y = X - V.sigBytes % X, Z = Y << 24 | Y << 16 | Y << 8 | Y, a0 = [], a1 = 0; a1 < Y; a1 += 4) {
a0.push(Z);
}
var a2 = C.create(a0, Y);
V.concat(a2);
},
unpad: function (V) {
var W = 255 & V.words[V.sigBytes - 1 >>> 2];
V.sigBytes -= W;
}
};
z.format = {};
P.OpenSSL = {
stringify: function (V) {
var W,
X = V.ciphertext,
Y = V.salt;
W = Y ? C.create([1398893684, 1701076831]).concat(Y).concat(X) : X;
return W.toString(F);
},
parse: function (V) {
var X,
Y = F.parse(V),
Z = Y.words;
1398893684 == Z[0] && 1701076831 == Z[1] && (X = C.create(Z.slice(2, 4)), Z.splice(0, 4), Y.sigBytes -= 16);
return O.create({
ciphertext: Y,
salt: X
});
}
};
A.SerializableCipher = B.extend({
cfg: B.extend({
format: Q
}),
encrypt: function (V, W, X, Y) {
Y = this.cfg.extend(Y);
var a0 = V.createEncryptor(X, Y),
a1 = a0.finalize(W),
a2 = a0.cfg,
a3 = {
ciphertext: a1,
key: X,
iv: a2.iv,
algorithm: V,
mode: a2.mode,
padding: a2.padding,
blockSize: V.blockSize,
formatter: Y.format
};
return O.create(a3);
},
decrypt: function (V, W, X, Y) {
Y = this.cfg.extend(Y);
W = this._parse(W, Y.format);
var a0 = V.createDecryptor(X, Y).finalize(W.ciphertext);
return a0;
},
_parse: function (V, W) {
return "string" == typeof V ? W.parse(V, this) : V;
}
});
z.kdf = {};
S.OpenSSL = {
execute: function (V, W, X, Y, Z) {
if (Y || (Y = C.random(8)), Z) {
a0 = H.create({
keySize: W + X,
hasher: Z
}).compute(V, Y);
} else {
var a0 = H.create({
keySize: W + X
}).compute(V, Y);
}
var a1 = C.create(a0.words.slice(W), 4 * X);
a0.sigBytes = 4 * W;
return O.create({
key: a0,
iv: a1,
salt: Y
});
}
};
A.PasswordBasedCipher = R.extend({
cfg: R.cfg.extend({
kdf: T
}),
encrypt: function (V, W, X, Y) {
Y = this.cfg.extend(Y);
var a2 = Y.kdf.execute(X, V.keySize, V.ivSize, Y.salt, Y.hasher);
Y.iv = a2.iv;
var a1 = R.encrypt.call(this, V, W, a2.key, Y);
a1.mixIn(a2);
return a1;
},
decrypt: function (V, W, X, Y) {
Y = this.cfg.extend(Y);
W = this._parse(W, Y.format);
var a0 = Y.kdf.execute(X, V.keySize, V.ivSize, W.salt, Y.hasher);
Y.iv = a0.iv;
var a1 = R.decrypt.call(this, V, W, a0.key, Y);
return a1;
}
});
var z = k,
A = z.lib,
B = A.Base,
C = A.WordArray,
D = A.BufferedBlockAlgorithm,
E = z.enc,
F = (E.Utf8, E.Base64),
G = z.algo,
H = G.EvpKDF,
I = A.Cipher,
J = (A.StreamCipher = I.extend({
_doFinalize: function () {
var V = this._process(!0);
return V;
},
blockSize: 1
}), z.mode = {}),
K = A.BlockCipherMode,
L = J.CBC,
M = z.pad,
N = M.Pkcs7,
O = (A.BlockCipher = I.extend({
cfg: I.cfg.extend({
mode: L,
padding: N
}),
reset: function () {
var V;
I.reset.call(this);
var W = this.cfg,
X = W.iv,
Y = W.mode;
this._xformMode == this._ENC_XFORM_MODE ? V = Y.createEncryptor : (V = Y.createDecryptor, this._minBufferSize = 1);
this._mode && this._mode.__creator == V ? this._mode.init(this, X && X.words) : (this._mode = V.call(Y, this, X && X.words), this._mode.__creator = V);
},
_doProcessBlock: function (V, W) {
this._mode.processBlock(V, W);
},
_doFinalize: function () {
var V,
W = this.cfg.padding;
this._xformMode == this._ENC_XFORM_MODE ? (W.pad(this._data, this.blockSize), V = this._process(!0)) : (V = this._process(!0), W.unpad(V));
return V;
},
blockSize: 4
}), A.CipherParams = B.extend({
init: function (V) {
this.mixIn(V);
},
toString: function (V) {
return (V || this.formatter).stringify(this);
}
})),
P = z.format,
Q = P.OpenSSL,
R = A.SerializableCipher,
S = z.kdf,
T = S.OpenSSL,
U = A.PasswordBasedCipher;
}()));
},
21: function (f, g, h) {
var k;
f.exports = (k = k || function (q, v) {
var x;
if ("undefined" != typeof window && window.crypto && (x = window.crypto), "undefined" != typeof self && self.crypto && (x = self.crypto), "undefined" != typeof globalThis && globalThis.crypto && (x = globalThis.crypto), !x && "undefined" != typeof window && window.msCrypto && (x = window.msCrypto), !x && void 0 !== h.g && h.g.crypto && (x = h.g.crypto), !x) {
try {
x = h(477);
} catch (L) {}
}
A.lib = {};
B.Base = {
extend: function (M) {
var O = z(this);
M && O.mixIn(M);
O.hasOwnProperty("init") && this.init !== O.init || (O.init = function () {
O.$super.init.apply(this, arguments);
});
O.init.prototype = O;
O.$super = this;
return O;
},
create: function () {
var M = this.extend();
M.init.apply(M, arguments);
return M;
},
init: function () {},
mixIn: function (M) {
for (var O in M) M.hasOwnProperty(O) && (this[O] = M[O]);
M.hasOwnProperty("toString") && (this.toString = M.toString);
},
clone: function () {
return this.init.prototype.extend(this);
}
};
B.WordArray = C.extend({
init: function (M, N) {
M = this.words = M || [];
this.sigBytes = N != v ? N : 4 * M.length;
},
toString: function (M) {
return (M || F).stringify(this);
},
concat: function (M) {
var O = this.words,
P = M.words,
Q = this.sigBytes,
R = M.sigBytes;
if (this.clamp(), Q % 4) {
for (var S = 0; S < R; S++) {
var T = P[S >>> 2] >>> 24 - S % 4 * 8 & 255;
O[Q + S >>> 2] |= T << 24 - (Q + S) % 4 * 8;
}
} else {
for (var U = 0; U < R; U += 4) {
O[Q + U >>> 2] = P[U >>> 2];
}
}
this.sigBytes += R;
return this;
},
clamp: function () {
var M = this.words,
N = this.sigBytes;
M[N >>> 2] &= 4294967295 << 32 - N % 4 * 8;
M.length = q.ceil(N / 4);
},
clone: function () {
var O = C.clone.call(this);
O.words = this.words.slice(0);
return O;
},
random: function (M) {
for (var N = [], O = 0; O < M; O += 4) {
N.push(y());
}
return new D.init(N, M);
}
});
A.enc = {};
E.Hex = {
stringify: function (M) {
for (var N = M.words, O = M.sigBytes, P = [], Q = 0; Q < O; Q++) {
var R = N[Q >>> 2] >>> 24 - Q % 4 * 8 & 255;
P.push((R >>> 4).toString(16));
P.push((15 & R).toString(16));
}
return P.join("");
},
parse: function (M) {
for (var N = M.length, O = [], P = 0; P < N; P += 2) {
O[P >>> 3] |= parseInt(M.substr(P, 2), 16) << 24 - P % 8 * 4;
}
return new D.init(O, N / 2);
}
};
E.Latin1 = {
stringify: function (M) {
for (var O = M.words, P = M.sigBytes, Q = [], R = 0; R < P; R++) {
var S = O[R >>> 2] >>> 24 - R % 4 * 8 & 255;
Q.push(String.fromCharCode(S));
}
return Q.join("");
},
parse: function (M) {
for (var P = M.length, Q = [], R = 0; R < P; R++) {
Q[R >>> 2] |= (255 & M.charCodeAt(R)) << 24 - R % 4 * 8;
}
return new D.init(Q, P);
}
};
E.Utf8 = {
stringify: function (M) {
try {
return decodeURIComponent(escape(G.stringify(M)));
} catch (O) {
throw new Error("Malformed UTF-8 data");
}
},
parse: function (M) {
return G.parse(unescape(encodeURIComponent(M)));
}
};
B.BufferedBlockAlgorithm = C.extend({
reset: function () {
this._data = new D.init();
this._nDataBytes = 0;
},
_append: function (M) {
"string" == typeof M && (M = H.parse(M));
this._data.concat(M);
this._nDataBytes += M.sigBytes;
},
_process: function (M) {
var N,
O = this._data,
P = O.words,
Q = O.sigBytes,
R = this.blockSize,
S = 4 * R,
T = Q / S;
T = M ? q.ceil(T) : q.max((0 | T) - this._minBufferSize, 0);
var U = T * R,
V = q.min(4 * U, Q);
if (U) {
for (var W = 0; W < U; W += R) {
this._doProcessBlock(P, W);
}
N = P.splice(0, U);
O.sigBytes -= V;
}
return new D.init(N, V);
},
clone: function () {
var N = C.clone.call(this);
N._data = this._data.clone();
return N;
},
_minBufferSize: 0
});
var y = function () {
if (x) {
if ("function" == typeof x.getRandomValues) {
try {
return x.getRandomValues(new Uint32Array(1))[0];
} catch (O) {}
}
if ("function" == typeof x.randomBytes) {
try {
return x.randomBytes(4).readInt32LE();
} catch (Q) {}
}
}
throw new Error("Native crypto module could not be used to get secure random number.");
},
z = Object.create || function () {
function O() {}
return function (P) {
var Q;
O.prototype = P;
Q = new O();
O.prototype = null;
return Q;
};
}(),
A = {},
B = A.lib,
C = B.Base,
D = B.WordArray,
E = A.enc,
F = E.Hex,
G = E.Latin1,
H = E.Utf8,
I = B.BufferedBlockAlgorithm,
J = (B.Hasher = I.extend({
cfg: C.extend(),
init: function (M) {
this.cfg = this.cfg.extend(M);
this.reset();
},
reset: function () {
I.reset.call(this);
this._doReset();
},
update: function (M) {
this._append(M);
this._process();
return this;
},
finalize: function (M) {
M && this._append(M);
var N = this._doFinalize();
return N;
},
blockSize: 16,
_createHelper: function (M) {
return function (N, O) {
return new M.init(O).finalize(N);
};
},
_createHmacHelper: function (M) {
return function (O, P) {
return new J.HMAC.init(M, P).finalize(O);
};
}
}), A.algo = {});
return A;
}(Math), k);
},
754: function (f, g, h) {
var k;
f.exports = (k = h(21), function () {
var m = k,
n = m.lib,
p = n.WordArray,
q = m.enc;
function u(v, w, x) {
for (var y = [], z = 0, A = 0; A < w; A++) {
if (A % 4) {
var B = x[v.charCodeAt(A - 1)] << A % 4 * 2,
C = x[v.charCodeAt(A)] >>> 6 - A % 4 * 2,
D = B | C;
y[z >>> 2] |= D << 24 - z % 4 * 8;
z++;
}
}
return p.create(y, z);
}
q.Base64 = {
stringify: function (v) {
var G = v.words,
H = v.sigBytes,
I = this._map;
v.clamp();
for (var z = [], A = 0; A < H; A += 3) {
for (var B = G[A >>> 2] >>> 24 - A % 4 * 8 & 255, C = G[A + 1 >>> 2] >>> 24 - (A + 1) % 4 * 8 & 255, D = G[A + 2 >>> 2] >>> 24 - (A + 2) % 4 * 8 & 255, E = B << 16 | C << 8 | D, F = 0; F < 4 && A + 0.75 * F < H; F++) {
z.push(I.charAt(E >>> 6 * (3 - F) & 63));
}
}
var y = I.charAt(64);
if (y) {
for (; z.length % 4;) {
z.push(y);
}
}
return z.join("");
},
parse: function (v) {
var x = v.length,
y = this._map,
z = this._reverseMap;
if (!z) {
z = this._reverseMap = [];
for (var A = 0; A < y.length; A++) {
z[y.charCodeAt(A)] = A;
}
}
var B = y.charAt(64);
if (B) {
var C = v.indexOf(B);
-1 !== C && (x = C);
}
return u(v, x, z);
},
_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
};
}(), k.enc.Base64);
},
725: function (f, g, h) {
var k;
f.exports = (k = h(21), function () {
var n = k,
p = n.lib,
q = p.WordArray,
u = n.enc;
function w(x, y, z) {
for (var A = [], B = 0, C = 0; C < y; C++) {
if (C % 4) {
var D = z[x.charCodeAt(C - 1)] << C % 4 * 2,
E = z[x.charCodeAt(C)] >>> 6 - C % 4 * 2,
F = D | E;
A[B >>> 2] |= F << 24 - B % 4 * 8;
B++;
}
}
return q.create(A, B);
}
u.Base64url = {
stringify: function (x, y) {
void 0 === y && (y = !0);
var J = x.words,
K = x.sigBytes,
L = y ? this._safe_map : this._map;
x.clamp();
for (var C = [], D = 0; D < K; D += 3) {
for (var E = J[D >>> 2] >>> 24 - D % 4 * 8 & 255, F = J[D + 1 >>> 2] >>> 24 - (D + 1) % 4 * 8 & 255, G = J[D + 2 >>> 2] >>> 24 - (D + 2) % 4 * 8 & 255, H = E << 16 | F << 8 | G, I = 0; I < 4 && D + 0.75 * I < K; I++) {
C.push(L.charAt(H >>> 6 * (3 - I) & 63));
}
}
var B = L.charAt(64);
if (B) {
for (; C.length % 4;) {
C.push(B);
}
}
return C.join("");
},
parse: function (x, y) {
void 0 === y && (y = !0);
var z = x.length,
A = y ? this._safe_map : this._map,
B = this._reverseMap;
if (!B) {
B = this._reverseMap = [];
for (var C = 0; C < A.length; C++) {
B[A.charCodeAt(C)] = C;
}
}
var D = A.charAt(64);
if (D) {
var E = x.indexOf(D);
-1 !== E && (z = E);
}
return w(x, z, B);
},
_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
_safe_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"
};
}(), k.enc.Base64url);
},
503: function (f, g, h) {
var k;
f.exports = (k = h(21), function () {
var m = k,
n = m.lib,
p = n.WordArray,
q = m.enc;
function u(v) {
return v << 8 & 4278255360 | v >>> 8 & 16711935;
}
q.Utf16 = q.Utf16BE = {
stringify: function (v) {
for (var w = v.words, x = v.sigBytes, y = [], z = 0; z < x; z += 2) {
var A = w[z >>> 2] >>> 16 - z % 4 * 8 & 65535;
y.push(String.fromCharCode(A));
}
return y.join("");
},
parse: function (v) {
for (var w = v.length, x = [], y = 0; y < w; y++) {
x[y >>> 1] |= v.charCodeAt(y) << 16 - y % 2 * 16;
}
return p.create(x, 2 * w);
}
};
q.Utf16LE = {
stringify: function (v) {
for (var x = v.words, y = v.sigBytes, z = [], A = 0; A < y; A += 2) {
var B = u(x[A >>> 2] >>> 16 - A % 4 * 8 & 65535);
z.push(String.fromCharCode(B));
}
return z.join("");
},
parse: function (v) {
for (var w = v.length, x = [], y = 0; y < w; y++) {
x[y >>> 1] |= u(v.charCodeAt(y) << 16 - y % 2 * 16);
}
return p.create(x, 2 * w);
}
};
}(), k.enc.Utf16);
},
506: function (f, g, j) {
var m, p, q, u, v, w, x, y;
f.exports = (y = j(21), j(471), j(25), m = y, p = m.lib, q = p.Base, u = p.WordArray, v = m.algo, w = v.MD5, x = v.EvpKDF = q.extend({
cfg: q.extend({
keySize: 4,
hasher: w,
iterations: 1
}),
init: function (z) {
this.cfg = this.cfg.extend(z);
},
compute: function (z, A) {
for (var B, C = this.cfg, D = C.hasher.create(), E = u.create(), F = E.words, G = C.keySize, H = C.iterations; F.length < G;) {
B && D.update(B);
B = D.update(z).finalize(A);
D.reset();
for (var I = 1; I < H; I++) {
B = D.finalize(B);
D.reset();
}
E.concat(B);
}
E.sigBytes = 4 * G;
return E;
}
}), m.EvpKDF = function (z, A, B) {
return x.create(B).compute(z, A);
}, y.EvpKDF);
},
406: function (f, g, j) {
var l, m, p, q, u, v, w;
f.exports = (w = j(21), j(165), l = w, m = l.lib, p = m.CipherParams, q = l.enc, u = q.Hex, v = l.format, v.Hex = {
stringify: function (x) {
return x.ciphertext.toString(u);
},
parse: function (x) {
var z = u.parse(x),
A = {
ciphertext: z
};
return p.create(A);
}
}, w.format.Hex);
},
25: function (f, g, j) {
var l, m, p, q, u, v, w;
f.exports = (l = j(21), m = l, p = m.lib, q = p.Base, u = m.enc, v = u.Utf8, w = m.algo, void (w.HMAC = q.extend({
init: function (y, z) {
y = this._hasher = new y.init();
"string" == typeof z && (z = v.parse(z));
var A = y.blockSize,
B = 4 * A;
z.sigBytes > B && (z = y.finalize(z));
z.clamp();
for (this._iKey = z.clone(), (this._oKey = z.clone(), C = this._oKey = z.clone(), D = this._iKey = z.clone(), E = C.words, F = D.words, G = 0, void 0); G < A; G++) {
var C, D, E, F, G;
E[G] ^= 1549556828;
F[G] ^= 909522486;
}
C.sigBytes = D.sigBytes = B;
this.reset();
},
reset: function () {
var z = this._hasher;
z.reset();
z.update(this._iKey);
},
update: function (y) {
this._hasher.update(y);
return this;
},
finalize: function (y) {
var z = this._hasher,
A = z.finalize(y);
z.reset();
var B = z.finalize(this._oKey.clone().concat(A));
return B;
}
})));
},
396: function (f, g, h) {
var j;
f.exports = (j = h(21), h(240), h(440), h(503), h(754), h(725), h(636), h(471), h(9), h(308), h(380), h(557), h(953), h(56), h(25), h(19), h(506), h(165), h(169), h(939), h(372), h(797), h(454), h(73), h(905), h(482), h(155), h(124), h(406), h(955), h(628), h(193), h(298), h(696), h(128), j);
},
440: function (f, g, h) {
var k;
f.exports = (k = h(21), function () {
if ("function" == typeof ArrayBuffer) {
q.init = function (w) {
if (w instanceof ArrayBuffer && (w = new Uint8Array(w)), (w instanceof Int8Array || "undefined" != typeof Uint8ClampedArray && w instanceof Uint8ClampedArray || w instanceof Int16Array || w instanceof Uint16Array || w instanceof Int32Array || w instanceof Uint32Array || w instanceof Float32Array || w instanceof Float64Array) && (w = new Uint8Array(w.buffer, w.byteOffset, w.byteLength)), w instanceof Uint8Array) {
for (var z = w.byteLength, A = [], B = 0; B < z; B++) {
A[B >>> 2] |= w[B] << 24 - B % 4 * 8;
}
u.call(this, A, z);
} else {
u.apply(this, arguments);
}
};
var n = k,
p = n.lib,
q = p.WordArray,
u = q.init,
v = q.init;
v.prototype = q;
}
}(), k.lib.WordArray);
},
636: function (f, g, h) {
var k;
f.exports = (k = h(21), function (m) {
var q = k,
v = q.lib,
w = v.WordArray,
x = v.Hasher,
y = q.algo,
z = [];
!function () {
for (var F = 0; F < 64; F++) {
z[F] = 4294967296 * m.abs(m.sin(F + 1)) | 0;
}
}();
y.MD5 = x.extend({
_doReset: function () {
this._hash = new w.init([1732584193, 4023233417, 2562383102, 271733878]);
},
_doProcessBlock: function (F, G) {
for (var H = 0; H < 16; H++) {
var I = G + H,
J = F[I];
F[I] = 16711935 & (J << 8 | J >>> 24) | 4278255360 & (J << 24 | J >>> 8);
}
var K = this._hash.words,
L = F[G + 0],
M = F[G + 1],
P = F[G + 2],
Q = F[G + 3],
T = F[G + 4],
U = F[G + 5],
V = F[G + 6],
W = F[G + 7],
X = F[G + 8],
Y = F[G + 9],
Z = F[G + 10],
a0 = F[G + 11],
a1 = F[G + 12],
a2 = F[G + 13],
a3 = F[G + 14],
a4 = F[G + 15],
a5 = K[0],
a6 = K[1],
a7 = K[2],
a8 = K[3];
a5 = B(a5, a6, a7, a8, L, 7, z[0]);
a8 = B(a8, a5, a6, a7, M, 12, z[1]);
a7 = B(a7, a8, a5, a6, P, 17, z[2]);
a6 = B(a6, a7, a8, a5, Q, 22, z[3]);
a5 = B(a5, a6, a7, a8, T, 7, z[4]);
a8 = B(a8, a5, a6, a7, U, 12, z[5]);
a7 = B(a7, a8, a5, a6, V, 17, z[6]);
a6 = B(a6, a7, a8, a5, W, 22, z[7]);
a5 = B(a5, a6, a7, a8, X, 7, z[8]);
a8 = B(a8, a5, a6, a7, Y, 12, z[9]);
a7 = B(a7, a8, a5, a6, Z, 17, z[10]);
a6 = B(a6, a7, a8, a5, a0, 22, z[11]);
a5 = B(a5, a6, a7, a8, a1, 7, z[12]);
a8 = B(a8, a5, a6, a7, a2, 12, z[13]);
a7 = B(a7, a8, a5, a6, a3, 17, z[14]);
a6 = B(a6, a7, a8, a5, a4, 22, z[15]);
a5 = C(a5, a6, a7, a8, M, 5, z[16]);
a8 = C(a8, a5, a6, a7, V, 9, z[17]);
a7 = C(a7, a8, a5, a6, a0, 14, z[18]);
a6 = C(a6, a7, a8, a5, L, 20, z[19]);
a5 = C(a5, a6, a7, a8, U, 5, z[20]);
a8 = C(a8, a5, a6, a7, Z, 9, z[21]);
a7 = C(a7, a8, a5, a6, a4, 14, z[22]);
a6 = C(a6, a7, a8, a5, T, 20, z[23]);
a5 = C(a5, a6, a7, a8, Y, 5, z[24]);
a8 = C(a8, a5, a6, a7, a3, 9, z[25]);
a7 = C(a7, a8, a5, a6, Q, 14, z[26]);
a6 = C(a6, a7, a8, a5, X, 20, z[27]);
a5 = C(a5, a6, a7, a8, a2, 5, z[28]);
a8 = C(a8, a5, a6, a7, P, 9, z[29]);
a7 = C(a7, a8, a5, a6, W, 14, z[30]);
a6 = C(a6, a7, a8, a5, a1, 20, z[31]);
a5 = D(a5, a6, a7, a8, U, 4, z[32]);
a8 = D(a8, a5, a6, a7, X, 11, z[33]);
a7 = D(a7, a8, a5, a6, a0, 16, z[34]);
a6 = D(a6, a7, a8, a5, a3, 23, z[35]);
a5 = D(a5, a6, a7, a8, M, 4, z[36]);
a8 = D(a8, a5, a6, a7, T, 11, z[37]);
a7 = D(a7, a8, a5, a6, W, 16, z[38]);
a6 = D(a6, a7, a8, a5, Z, 23, z[39]);
a5 = D(a5, a6, a7, a8, a2, 4, z[40]);
a8 = D(a8, a5, a6, a7, L, 11, z[41]);
a7 = D(a7, a8, a5, a6, Q, 16, z[42]);
a6 = D(a6, a7, a8, a5, V, 23, z[43]);
a5 = D(a5, a6, a7, a8, Y, 4, z[44]);
a8 = D(a8, a5, a6, a7, a1, 11, z[45]);
a7 = D(a7, a8, a5, a6, a4, 16, z[46]);
a6 = D(a6, a7, a8, a5, P, 23, z[47]);
a5 = E(a5, a6, a7, a8, L, 6, z[48]);
a8 = E(a8, a5, a6, a7, W, 10, z[49]);
a7 = E(a7, a8, a5, a6, a3, 15, z[50]);
a6 = E(a6, a7, a8, a5, U, 21, z[51]);
a5 = E(a5, a6, a7, a8, a1, 6, z[52]);
a8 = E(a8, a5, a6, a7, Q, 10, z[53]);
a7 = E(a7, a8, a5, a6, Z, 15, z[54]);
a6 = E(a6, a7, a8, a5, M, 21, z[55]);
a5 = E(a5, a6, a7, a8, X, 6, z[56]);
a8 = E(a8, a5, a6, a7, a4, 10, z[57]);
a7 = E(a7, a8, a5, a6, V, 15, z[58]);
a6 = E(a6, a7, a8, a5, a2, 21, z[59]);
a5 = E(a5, a6, a7, a8, T, 6, z[60]);
a8 = E(a8, a5, a6, a7, a0, 10, z[61]);
a7 = E(a7, a8, a5, a6, P, 15, z[62]);
a6 = E(a6, a7, a8, a5, Y, 21, z[63]);
K[0] = K[0] + a5 | 0;
K[1] = K[1] + a6 | 0;
K[2] = K[2] + a7 | 0;
K[3] = K[3] + a8 | 0;
},
_doFinalize: function () {
var G = this._data,
H = G.words,
I = 8 * this._nDataBytes,
J = 8 * G.sigBytes;
H[J >>> 5] |= 128 << 24 - J % 32;
var K = m.floor(I / 4294967296),
L = I;
H[15 + (J + 64 >>> 9 << 4)] = 16711935 & (K << 8 | K >>> 24) | 4278255360 & (K << 24 | K >>> 8);
H[14 + (J + 64 >>> 9 << 4)] = 16711935 & (L << 8 | L >>> 24) | 4278255360 & (L << 24 | L >>> 8);
G.sigBytes = 4 * (H.length + 1);
this._process();
for (var M = this._hash, N = M.words, O = 0; O < 4; O++) {
var P = N[O];
N[O] = 16711935 & (P << 8 | P >>> 24) | 4278255360 & (P << 24 | P >>> 8);
}
return M;
},
clone: function () {
var G = x.clone.call(this);
G._hash = this._hash.clone();
return G;
}
});
var A = y.MD5;
function B(F, G, H, I, J, K, L) {
var M = F + (G & H | ~G & I) + J + L;
return (M << K | M >>> 32 - K) + G;
}
function C(F, G, H, I, J, K, L) {
var M = F + (G & I | H & ~I) + J + L;
return (M << K | M >>> 32 - K) + G;
}
function D(F, G, H, I, J, K, L) {
var N = F + (G ^ H ^ I) + J + L;
return (N << K | N >>> 32 - K) + G;
}
function E(F, G, H, I, J, K, L) {
var M = F + (H ^ (G | ~I)) + J + L;
return (M << K | M >>> 32 - K) + G;
}
q.MD5 = x._createHelper(A);
q.HmacMD5 = x._createHmacHelper(A);
}(Math), k.MD5);
},
169: function (f, g, h) {
var k;
f.exports = (k = h(21), h(165), k.mode.CFB = function () {
var m = k.lib.BlockCipherMode.extend();
function n(p, q, u, v) {
var w,
x = this._iv;
x ? (w = x.slice(0), this._iv = void 0) : w = this._prevBlock;
v.encryptBlock(w, 0);
for (var y = 0; y < u; y++) {
p[q + y] ^= w[y];
}
}
m.Encryptor = m.extend({
processBlock: function (o, p) {
var q = this._cipher,
u = q.blockSize;
n.call(this, o, p, u, q);
this._prevBlock = o.slice(p, p + u);
}
});
m.Decryptor = m.extend({
processBlock: function (p, q) {
var v = this._cipher,
w = v.blockSize,
x = p.slice(q, q + w);
n.call(this, p, q, w, v);
this._prevBlock = x;
}
});
return m;
}(), k.mode.CFB);
},
372: function (f, g, h) {
var k;
f.exports = (k = h(21), h(165), k.mode.CTRGladman = function () {
var m = k.lib.BlockCipherMode.extend();
function n(q) {
if (255 & ~(q >> 24)) {
q += 16777216;
} else {
var v = q >> 16 & 255,
w = q >> 8 & 255,
x = 255 & q;
255 === v ? (v = 0, 255 === w ? (w = 0, 255 === x ? x = 0 : ++x) : ++w) : ++v;
q = 0;
q += v << 16;
q += w << 8;
q += x;
}
return q;
}
function o(q) {
0 === (q[0] = n(q[0])) && (q[1] = n(q[1]));
return q;
}
m.Encryptor = m.extend({
processBlock: function (q, u) {
var y = this._cipher,
z = y.blockSize,
A = this._iv,
B = this._counter;
A && (B = this._counter = A.slice(0), this._iv = void 0);
o(B);
var C = B.slice(0);
y.encryptBlock(C, 0);
for (var D = 0; D < z; D++) {
q[u + D] ^= C[D];
}
}
});
var p = m.Encryptor;
m.Decryptor = p;
return m;
}(), k.mode.CTRGladman);
},
939: function (f, g, h) {
var k, l, m;
f.exports = (m = h(21), h(165), m.mode.CTR = (k = m.lib.BlockCipherMode.extend(), l = k.Encryptor = k.extend({
processBlock: function (p, q) {
var x = this._cipher,
y = x.blockSize,
z = this._iv,
A = this._counter;
z && (A = this._counter = z.slice(0), this._iv = void 0);
var w = A.slice(0);
x.encryptBlock(w, 0);
A[y - 1] = A[y - 1] + 1 | 0;
for (var B = 0; B < y; B++) {
p[q + B] ^= w[B];
}
}
}), k.Decryptor = l, k), m.mode.CTR);
},
454: function (f, g, h) {
var k, l;
f.exports = (l = h(21), h(165), l.mode.ECB = (k = l.lib.BlockCipherMode.extend(), k.Encryptor = k.extend({
processBlock: function (n, o) {
this._cipher.encryptBlock(n, o);
}
}), k.Decryptor = k.extend({
processBlock: function (n, o) {
this._cipher.decryptBlock(n, o);
}
}), k), l.mode.ECB);
},
797: function (f, g, h) {
var k, l, m;
f.exports = (m = h(21), h(165), m.mode.OFB = (k = m.lib.BlockCipherMode.extend(), l = k.Encryptor = k.extend({
processBlock: function (p, q) {
var v = this._cipher,
w = v.blockSize,
x = this._iv,
y = this._keystream;
x && (y = this._keystream = x.slice(0), this._iv = void 0);
v.encryptBlock(y, 0);
for (var z = 0; z < w; z++) {
p[q + z] ^= y[z];
}
}
}), k.Decryptor = l, k), m.mode.OFB);
},
73: function (f, g, h) {
var k;
f.exports = (k = h(21), h(165), k.pad.AnsiX923 = {
pad: function (l, m) {
var p = l.sigBytes,
q = 4 * m,
u = q - p % q,
v = p + u - 1;
l.clamp();
l.words[v >>> 2] |= u << 24 - v % 4 * 8;
l.sigBytes += u;
},
unpad: function (l) {
var m = 255 & l.words[l.sigBytes - 1 >>> 2];
l.sigBytes -= m;
}
}, k.pad.Ansix923);
},
905: function (f, g, h) {
var k;
f.exports = (k = h(21), h(165), k.pad.Iso10126 = {
pad: function (l, m) {
var n = 4 * m,
o = n - l.sigBytes % n;
l.concat(k.lib.WordArray.random(o - 1)).concat(k.lib.WordArray.create([o << 24], 1));
},
unpad: function (l) {
var m = 255 & l.words[l.sigBytes - 1 >>> 2];
l.sigBytes -= m;
}
}, k.pad.Iso10126);
},
482: function (f, g, h) {
var j;
f.exports = (j = h(21), h(165), j.pad.Iso97971 = {
pad: function (l, m) {
l.concat(j.lib.WordArray.create([2147483648], 1));
j.pad.ZeroPadding.pad(l, m);
},
unpad: function (l) {
j.pad.ZeroPadding.unpad(l);
l.sigBytes--;
}
}, j.pad.Iso97971);
},
124: function (f, g, h) {
var j,
k = {
pad: function () {},
unpad: function () {}
};
f.exports = (j = h(21), h(165), j.pad.NoPadding = k, j.pad.NoPadding);
},
155: function (f, g, h) {
var k;
f.exports = (k = h(21), h(165), k.pad.ZeroPadding = {
pad: function (l, m) {
var n = 4 * m;
l.clamp();
l.sigBytes += n - (l.sigBytes % n || n);
},
unpad: function (l) {
var m = l.words,
n = l.sigBytes - 1;
for (n = l.sigBytes - 1; n >= 0; n--) {
if (m[n >>> 2] >>> 24 - n % 4 * 8 & 255) {
l.sigBytes = n + 1;
break;
}
}
}
}, k.pad.ZeroPadding);
},
19: function (f, g, j) {
var m, p, q, v, w, x, y, z, A;
f.exports = (A = j(21), j(9), j(25), m = A, p = m.lib, q = p.Base, v = p.WordArray, w = m.algo, x = w.SHA256, y = w.HMAC, z = w.PBKDF2 = q.extend({
cfg: q.extend({
keySize: 4,
hasher: x,
iterations: 250000
}),
init: function (B) {
this.cfg = this.cfg.extend(B);
},
compute: function (B, C) {
for (var E = this.cfg, F = y.create(E.hasher, B), G = v.create(), H = v.create([1]), I = G.words, J = H.words, K = E.keySize, L = E.iterations; I.length < K;) {
var M = F.update(C).finalize(H);
F.reset();
for (var N = M.words, O = N.length, P = M, Q = 1; Q < L; Q++) {
P = F.finalize(P);
F.reset();
for (var R = P.words, S = 0; S < O; S++) {
N[S] ^= R[S];
}
}
G.concat(M);
J[0]++;
}
G.sigBytes = 4 * K;
return G;
}
}), m.PBKDF2 = function (B, C, D) {
return z.create(D).compute(B, C);
}, A.PBKDF2);
},
696: function (f, g, h) {
var k;
f.exports = (k = h(21), h(754), h(636), h(506), h(165), function () {
u.RabbitLegacy = q.extend({
_doReset: function () {
this._X = [A[0], A[3] << 16 | A[2] >>> 16, A[1], A[0] << 16 | A[3] >>> 16, A[2], A[1] << 16 | A[0] >>> 16, A[3], A[2] << 16 | A[1] >>> 16];
this._C = [A[2] << 16 | A[2] >>> 16, 4294901760 & A[0] | 65535 & A[1], A[3] << 16 | A[3] >>> 16, 4294901760 & A[1] | 65535 & A[2], A[0] << 16 | A[0] >>> 16, 4294901760 & A[2] | 65535 & A[3], A[1] << 16 | A[1] >>> 16, 4294901760 & A[3] | 65535 & A[0]];
var A = this._key.words,
B = this.cfg.iv,
C = this._X,
D = this._C;
this._b = 0;
for (var E = 0; E < 4; E++) {
z.call(this);
}
for (E = 0; E < 8; E++) {
D[E] ^= C[E + 4 & 7];
}
if (B) {
var F = B.words,
G = F[0],
H = F[1],
I = 16711935 & (G << 8 | G >>> 24) | 4278255360 & (G << 24 | G >>> 8),
J = 16711935 & (H << 8 | H >>> 24) | 4278255360 & (H << 24 | H >>> 8),
K = I >>> 16 | 4294901760 & J,
L = J << 16 | 65535 & I;
for (D[0] ^= I, D[1] ^= K, D[2] ^= J, D[3] ^= L, D[4] ^= I, D[5] ^= K, D[6] ^= J, D[7] ^= L, E = 0; E < 4; E++) {
z.call(this);
}
}
},
_doProcessBlock: function (A, B) {
var D = this._X;
z.call(this);
v[0] = D[0] ^ D[5] >>> 16 ^ D[3] << 16;
v[1] = D[2] ^ D[7] >>> 16 ^ D[5] << 16;
v[2] = D[4] ^ D[1] >>> 16 ^ D[7] << 16;
v[3] = D[6] ^ D[3] >>> 16 ^ D[1] << 16;
for (var E = 0; E < 4; E++) {
v[E] = 16711935 & (v[E] << 8 | v[E] >>> 24) | 4278255360 & (v[E] << 24 | v[E] >>> 8);
A[B + E] ^= v[E];
}
},
blockSize: 4,
ivSize: 2
});
var m = k,
p = m.lib,
q = p.StreamCipher,
u = m.algo,
v = [],
w = [],
x = [],
y = u.RabbitLegacy;
function z() {
for (var A = this._X, B = this._C, C = 0; C < 8; C++) {
w[C] = B[C];
}
for (B[0] = B[0] + 1295307597 + this._b | 0, B[1] = B[1] + 3545052371 + (B[0] >>> 0 < w[0] >>> 0 ? 1 : 0) | 0, B[2] = B[2] + 886263092 + (B[1] >>> 0 < w[1] >>> 0 ? 1 : 0) | 0, B[3] = B[3] + 1295307597 + (B[2] >>> 0 < w[2] >>> 0 ? 1 : 0) | 0, B[4] = B[4] + 3545052371 + (B[3] >>> 0 < w[3] >>> 0 ? 1 : 0) | 0, B[5] = B[5] + 886263092 + (B[4] >>> 0 < w[4] >>> 0 ? 1 : 0) | 0, B[6] = B[6] + 1295307597 + (B[5] >>> 0 < w[5] >>> 0 ? 1 : 0) | 0, B[7] = B[7] + 3545052371 + (B[6] >>> 0 < w[6] >>> 0 ? 1 : 0) | 0, this._b = B[7] >>> 0 < w[7] >>> 0 ? 1 : 0, C = 0; C < 8; C++) {
var D = A[C] + B[C],
E = 65535 & D,
F = D >>> 16,
G = ((E * E >>> 17) + E * F >>> 15) + F * F,
H = ((4294901760 & D) * D | 0) + ((65535 & D) * D | 0);
x[C] = G ^ H;
}
A[0] = x[0] + (x[7] << 16 | x[7] >>> 16) + (x[6] << 16 | x[6] >>> 16) | 0;
A[1] = x[1] + (x[0] << 8 | x[0] >>> 24) + x[7] | 0;
A[2] = x[2] + (x[1] << 16 | x[1] >>> 16) + (x[0] << 16 | x[0] >>> 16) | 0;
A[3] = x[3] + (x[2] << 8 | x[2] >>> 24) + x[1] | 0;
A[4] = x[4] + (x[3] << 16 | x[3] >>> 16) + (x[2] << 16 | x[2] >>> 16) | 0;
A[5] = x[5] + (x[4] << 8 | x[4] >>> 24) + x[3] | 0;
A[6] = x[6] + (x[5] << 16 | x[5] >>> 16) + (x[4] << 16 | x[4] >>> 16) | 0;
A[7] = x[7] + (x[6] << 8 | x[6] >>> 24) + x[5] | 0;
}
m.RabbitLegacy = q._createHelper(y);
}(), k.RabbitLegacy);
},
298: function (f, g, h) {
var k;
f.exports = (k = h(21), h(754), h(636), h(506), h(165), function () {
u.Rabbit = q.extend({
_doReset: function () {
for (var B = this._key.words, C = this.cfg.iv, D = 0; D < 4; D++) {
B[D] = 16711935 & (B[D] << 8 | B[D] >>> 24) | 4278255360 & (B[D] << 24 | B[D] >>> 8);
}
this._X = [B[0], B[3] << 16 | B[2] >>> 16, B[1], B[0] << 16 | B[3] >>> 16, B[2], B[1] << 16 | B[0] >>> 16, B[3], B[2] << 16 | B[1] >>> 16];
this._C = [B[2] << 16 | B[2] >>> 16, 4294901760 & B[0] | 65535 & B[1], B[3] << 16 | B[3] >>> 16, 4294901760 & B[1] | 65535 & B[2], B[0] << 16 | B[0] >>> 16, 4294901760 & B[2] | 65535 & B[3], B[1] << 16 | B[1] >>> 16, 4294901760 & B[3] | 65535 & B[0]];
var E = this._X,
F = this._C;
for (this._b = 0, D = 0; D < 4; D++) {
z.call(this);
}
for (D = 0; D < 8; D++) {
F[D] ^= E[D + 4 & 7];
}
if (C) {
var G = C.words,
H = G[0],
I = G[1],
J = 16711935 & (H << 8 | H >>> 24) | 4278255360 & (H << 24 | H >>> 8),
K = 16711935 & (I << 8 | I >>> 24) | 4278255360 & (I << 24 | I >>> 8),
L = J >>> 16 | 4294901760 & K,
M = K << 16 | 65535 & J;
for (F[0] ^= J, F[1] ^= L, F[2] ^= K, F[3] ^= M, F[4] ^= J, F[5] ^= L, F[6] ^= K, F[7] ^= M, D = 0; D < 4; D++) {
z.call(this);
}
}
},
_doProcessBlock: function (A, B) {
var C = this._X;
z.call(this);
v[0] = C[0] ^ C[5] >>> 16 ^ C[3] << 16;
v[1] = C[2] ^ C[7] >>> 16 ^ C[5] << 16;
v[2] = C[4] ^ C[1] >>> 16 ^ C[7] << 16;
v[3] = C[6] ^ C[3] >>> 16 ^ C[1] << 16;
for (var D = 0; D < 4; D++) {
v[D] = 16711935 & (v[D] << 8 | v[D] >>> 24) | 4278255360 & (v[D] << 24 | v[D] >>> 8);
A[B + D] ^= v[D];
}
},
blockSize: 4,
ivSize: 2
});
var m = k,
p = m.lib,
q = p.StreamCipher,
u = m.algo,
v = [],
w = [],
x = [],
y = u.Rabbit;
function z() {
for (var C = this._X, D = this._C, E = 0; E < 8; E++) {
w[E] = D[E];
}
for (D[0] = D[0] + 1295307597 + this._b | 0, D[1] = D[1] + 3545052371 + (D[0] >>> 0 < w[0] >>> 0 ? 1 : 0) | 0, D[2] = D[2] + 886263092 + (D[1] >>> 0 < w[1] >>> 0 ? 1 : 0) | 0, D[3] = D[3] + 1295307597 + (D[2] >>> 0 < w[2] >>> 0 ? 1 : 0) | 0, D[4] = D[4] + 3545052371 + (D[3] >>> 0 < w[3] >>> 0 ? 1 : 0) | 0, D[5] = D[5] + 886263092 + (D[4] >>> 0 < w[4] >>> 0 ? 1 : 0) | 0, D[6] = D[6] + 1295307597 + (D[5] >>> 0 < w[5] >>> 0 ? 1 : 0) | 0, D[7] = D[7] + 3545052371 + (D[6] >>> 0 < w[6] >>> 0 ? 1 : 0) | 0, this._b = D[7] >>> 0 < w[7] >>> 0 ? 1 : 0, E = 0; E < 8; E++) {
var F = C[E] + D[E],
G = 65535 & F,
H = F >>> 16,
I = ((G * G >>> 17) + G * H >>> 15) + H * H,
J = ((4294901760 & F) * F | 0) + ((65535 & F) * F | 0);
x[E] = I ^ J;
}
C[0] = x[0] + (x[7] << 16 | x[7] >>> 16) + (x[6] << 16 | x[6] >>> 16) | 0;
C[1] = x[1] + (x[0] << 8 | x[0] >>> 24) + x[7] | 0;
C[2] = x[2] + (x[1] << 16 | x[1] >>> 16) + (x[0] << 16 | x[0] >>> 16) | 0;
C[3] = x[3] + (x[2] << 8 | x[2] >>> 24) + x[1] | 0;
C[4] = x[4] + (x[3] << 16 | x[3] >>> 16) + (x[2] << 16 | x[2] >>> 16) | 0;
C[5] = x[5] + (x[4] << 8 | x[4] >>> 24) + x[3] | 0;
C[6] = x[6] + (x[5] << 16 | x[5] >>> 16) + (x[4] << 16 | x[4] >>> 16) | 0;
C[7] = x[7] + (x[6] << 8 | x[6] >>> 24) + x[5] | 0;
}
m.Rabbit = q._createHelper(y);
}(), k.Rabbit);
},
193: function (f, g, h) {
var k;
f.exports = (k = h(21), h(754), h(636), h(506), h(165), function () {
u.RC4 = q.extend({
_doReset: function () {
for (this._S = [], z = this._key, A = z.words, B = z.sigBytes, C = this._S = [], D = 0, void 0; D < 256; D++) {
var z, A, B, C, D;
C[D] = D;
}
D = 0;
for (var E = 0; D < 256; D++) {
var F = D % B,
G = A[F >>> 2] >>> 24 - F % 4 * 8 & 255;
E = (E + C[D] + G) % 256;
var H = C[D];
C[D] = C[E];
C[E] = H;
}
this._i = this._j = 0;
},
_doProcessBlock: function (z, A) {
z[A] ^= w.call(this);
},
keySize: 8,
ivSize: 0
});
var m = k,
p = m.lib,
q = p.StreamCipher,
u = m.algo,
v = u.RC4;
function w() {
for (var z = this._S, A = this._i, B = this._j, C = 0, D = 0; D < 4; D++) {
A = (A + 1) % 256;
B = (B + z[A]) % 256;
var E = z[A];
z[A] = z[B];
z[B] = E;
C |= z[(z[A] + z[B]) % 256] << 24 - 8 * D;
}
this._i = A;
this._j = B;
return C;
}
m.RC4 = q._createHelper(v);
var x = {};
x.drop = 192;
u.RC4Drop = v.extend({
cfg: v.cfg.extend(x),
_doReset: function () {
v._doReset.call(this);
for (var A = this.cfg.drop; A > 0; A--) {
w.call(this);
}
}
});
var y = u.RC4Drop;
m.RC4Drop = q._createHelper(y);
}(), k.RC4);
},
56: function (f, g, h) {
var k;
f.exports = (k = h(21), function (q) {
C.RIPEMD160 = B.extend({
_doReset: function () {
this._hash = A.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
},
_doProcessBlock: function (Q, T) {
for (var V = 0; V < 16; V++) {
var W = T + V,
X = Q[W];
Q[W] = 16711935 & (X << 8 | X >>> 24) | 4278255360 & (X << 24 | X >>> 8);
}
var Y,
Z,
a0,
a1,
a2,
a3,
a4,
a5,
a6,
a7,
a8,
a9 = this._hash.words,
aa = H.words,
ab = I.words,
ac = D.words,
ad = E.words,
ae = F.words,
af = G.words;
for (a3 = Y = a9[0], a4 = Z = a9[1], a5 = a0 = a9[2], a6 = a1 = a9[3], a7 = a2 = a9[4], V = 0; V < 80; V += 1) {
a8 = Y + Q[T + ac[V]] | 0;
a8 += V < 16 ? K(Z, a0, a1) + aa[0] : V < 32 ? L(Z, a0, a1) + aa[1] : V < 48 ? M(Z, a0, a1) + aa[2] : V < 64 ? N(Z, a0, a1) + aa[3] : O(Z, a0, a1) + aa[4];
a8 |= 0;
a8 = P(a8, ae[V]);
a8 = a8 + a2 | 0;
Y = a2;
a2 = a1;
a1 = P(a0, 10);
a0 = Z;
Z = a8;
a8 = a3 + Q[T + ad[V]] | 0;
a8 += V < 16 ? O(a4, a5, a6) + ab[0] : V < 32 ? N(a4, a5, a6) + ab[1] : V < 48 ? M(a4, a5, a6) + ab[2] : V < 64 ? L(a4, a5, a6) + ab[3] : K(a4, a5, a6) + ab[4];
a8 |= 0;
a8 = P(a8, af[V]);
a8 = a8 + a7 | 0;
a3 = a7;
a7 = a6;
a6 = P(a5, 10);
a5 = a4;
a4 = a8;
}
a8 = a9[1] + a0 + a6 | 0;
a9[1] = a9[2] + a1 + a7 | 0;
a9[2] = a9[3] + a2 + a3 | 0;
a9[3] = a9[4] + Y + a4 | 0;
a9[4] = a9[0] + Z + a5 | 0;
a9[0] = a8;
},
_doFinalize: function () {
var R = this._data,
S = R.words,
T = 8 * this._nDataBytes,
U = 8 * R.sigBytes;
S[U >>> 5] |= 128 << 24 - U % 32;
S[14 + (U + 64 >>> 9 << 4)] = 16711935 & (T << 8 | T >>> 24) | 4278255360 & (T << 24 | T >>> 8);
R.sigBytes = 4 * (S.length + 1);
this._process();
for (var V = this._hash, W = V.words, X = 0; X < 5; X++) {
var Y = W[X];
W[X] = 16711935 & (Y << 8 | Y >>> 24) | 4278255360 & (Y << 24 | Y >>> 8);
}
return V;
},
clone: function () {
var Q = B.clone.call(this);
Q._hash = this._hash.clone();
return Q;
}
});
var x = k,
z = x.lib,
A = z.WordArray,
B = z.Hasher,
C = x.algo,
D = A.create([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8, 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12, 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2, 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13]),
E = A.create([5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12, 6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2, 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13, 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14, 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11]),
F = A.create([11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8, 7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12, 11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5, 11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, 5, 12, 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6]),
G = A.create([8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6, 9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11, 9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5, 15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, 15, 8, 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11]),
H = A.create([0, 1518500249, 1859775393, 2400959708, 2840853838]),
I = A.create([1352829926, 1548603684, 1836072691, 2053994217, 0]),
J = C.RIPEMD160;
function K(Q, R, S) {
return Q ^ R ^ S;
}
function L(Q, R, S) {
return Q & R | ~Q & S;
}
function M(Q, R, S) {
return (Q | ~R) ^ S;
}
function N(Q, R, S) {
return Q & S | R & ~S;
}
function O(Q, R, S) {
return Q ^ (R | ~S);
}
function P(Q, R) {
return Q << R | Q >>> 32 - R;
}
x.RIPEMD160 = B._createHelper(J);
x.HmacRIPEMD160 = B._createHmacHelper(J);
}(Math), k.RIPEMD160);
},
471: function (f, g, j) {
var m, p, q, u, v, w, x, y;
f.exports = (y = j(21), m = y, p = m.lib, q = p.WordArray, u = p.Hasher, v = m.algo, w = [], x = v.SHA1 = u.extend({
_doReset: function () {
this._hash = new q.init([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
},
_doProcessBlock: function (A, B) {
for (var D = this._hash.words, E = D[0], F = D[1], G = D[2], H = D[3], I = D[4], J = 0; J < 80; J++) {
if (J < 16) {
w[J] = 0 | A[B + J];
} else {
var K = w[J - 3] ^ w[J - 8] ^ w[J - 14] ^ w[J - 16];
w[J] = K << 1 | K >>> 31;
}
var L = (E << 5 | E >>> 27) + I + w[J];
L += J < 20 ? 1518500249 + (F & G | ~F & H) : J < 40 ? 1859775393 + (F ^ G ^ H) : J < 60 ? (F & G | F & H | G & H) - 1894007588 : (F ^ G ^ H) - 899497514;
I = H;
H = G;
G = F << 30 | F >>> 2;
F = E;
E = L;
}
D[0] = D[0] + E | 0;
D[1] = D[1] + F | 0;
D[2] = D[2] + G | 0;
D[3] = D[3] + H | 0;
D[4] = D[4] + I | 0;
},
_doFinalize: function () {
var A = this._data,
B = A.words,
C = 8 * this._nDataBytes,
D = 8 * A.sigBytes;
B[D >>> 5] |= 128 << 24 - D % 32;
B[14 + (D + 64 >>> 9 << 4)] = Math.floor(C / 4294967296);
B[15 + (D + 64 >>> 9 << 4)] = C;
A.sigBytes = 4 * B.length;
this._process();
return this._hash;
},
clone: function () {
var A = u.clone.call(this);
A._hash = this._hash.clone();
return A;
}
}), m.SHA1 = u._createHelper(x), m.HmacSHA1 = u._createHmacHelper(x), y.SHA1);
},
308: function (f, g, j) {
var l, m, p, q, u, v, w;
f.exports = (w = j(21), j(9), l = w, m = l.lib, p = m.WordArray, q = l.algo, u = q.SHA256, v = q.SHA224 = u.extend({
_doReset: function () {
this._hash = new p.init([3238371032, 914150663, 812702999, 4144912697, 4290775857, 1750603025, 1694076839, 3204075428]);
},
_doFinalize: function () {
var y = u._doFinalize.call(this);
y.sigBytes -= 4;
return y;
}
}), l.SHA224 = u._createHelper(v), l.HmacSHA224 = u._createHmacHelper(v), w.SHA224);
},
9: function (f, g, h) {
var k;
f.exports = (k = h(21), function (m) {
var q = k,
u = q.lib,
v = u.WordArray,
w = u.Hasher,
x = q.algo,
y = [],
z = [];
!function () {
function D(H) {
for (var I = m.sqrt(H), J = 2; J <= I; J++) {
if (!(H % J)) {
return !1;
}
}
return !0;
}
function E(H) {
return 4294967296 * (H - (0 | H)) | 0;
}
for (var F = 2, G = 0; G < 64;) {
D(F) && (G < 8 && (y[G] = E(m.pow(F, 0.5))), z[G] = E(m.pow(F, 0.3333333333333333)), G++);
F++;
}
}();
x.SHA256 = w.extend({
_doReset: function () {
this._hash = new v.init(y.slice(0));
},
_doProcessBlock: function (C, D) {
for (var E = this._hash.words, F = E[0], G = E[1], H = E[2], I = E[3], J = E[4], K = E[5], L = E[6], M = E[7], N = 0; N < 64; N++) {
if (N < 16) {
A[N] = 0 | C[D + N];
} else {
var O = A[N - 15],
P = (O << 25 | O >>> 7) ^ (O << 14 | O >>> 18) ^ O >>> 3,
Q = A[N - 2],
R = (Q << 15 | Q >>> 17) ^ (Q << 13 | Q >>> 19) ^ Q >>> 10;
A[N] = P + A[N - 7] + R + A[N - 16];
}
var S = J & K ^ ~J & L,
T = F & G ^ F & H ^ G & H,
U = (F << 30 | F >>> 2) ^ (F << 19 | F >>> 13) ^ (F << 10 | F >>> 22),
V = (J << 26 | J >>> 6) ^ (J << 21 | J >>> 11) ^ (J << 7 | J >>> 25),
W = M + V + S + z[N] + A[N],
X = U + T;
M = L;
L = K;
K = J;
J = I + W | 0;
I = H;
H = G;
G = F;
F = W + X | 0;
}
E[0] = E[0] + F | 0;
E[1] = E[1] + G | 0;
E[2] = E[2] + H | 0;
E[3] = E[3] + I | 0;
E[4] = E[4] + J | 0;
E[5] = E[5] + K | 0;
E[6] = E[6] + L | 0;
E[7] = E[7] + M | 0;
},
_doFinalize: function () {
var C = this._data,
D = C.words,
E = 8 * this._nDataBytes,
F = 8 * C.sigBytes;
D[F >>> 5] |= 128 << 24 - F % 32;
D[14 + (F + 64 >>> 9 << 4)] = m.floor(E / 4294967296);
D[15 + (F + 64 >>> 9 << 4)] = E;
C.sigBytes = 4 * D.length;
this._process();
return this._hash;
},
clone: function () {
var E = w.clone.call(this);
E._hash = this._hash.clone();
return E;
}
});
var A = [],
B = x.SHA256;
q.SHA256 = w._createHelper(B);
q.HmacSHA256 = w._createHmacHelper(B);
}(Math), k.SHA256);
},
953: function (f, g, h) {
var k;
f.exports = (k = h(21), h(240), function (m) {
var q = k,
v = q.lib,
w = v.WordArray,
x = v.Hasher,
y = q.x64,
z = y.Word,
A = q.algo,
B = [],
C = [],
D = [];
!function () {
for (var I = 1, J = 0, K = 0; K < 24; K++) {
B[I + 5 * J] = (K + 1) * (K + 2) / 2 % 64;
var L = J % 5,
M = (2 * I + 3 * J) % 5;
I = L;
J = M;
}
for (I = 0; I < 5; I++) {
for (J = 0; J < 5; J++) {
C[I + 5 * J] = J + (2 * I + 3 * J) % 5 * 5;
}
}
for (var N = 1, O = 0; O < 24; O++) {
for (var P = 0, Q = 0, R = 0; R < 7; R++) {
if (1 & N) {
var S = (1 << R) - 1;
S < 32 ? Q ^= 1 << S : P ^= 1 << S - 32;
}
128 & N ? N = N << 1 ^ 113 : N <<= 1;
}
D[O] = z.create(P, Q);
}
}();
var E = [];
!function () {
for (var H = 0; H < 25; H++) {
E[H] = z.create();
}
}();
var F = {};
F.outputLength = 512;
A.SHA3 = x.extend({
cfg: x.cfg.extend(F),
_doReset: function () {
for (this._state = [], J = this._state = [], K = 0, void 0; K < 25; K++) {
var J, K;
J[K] = new z.init();
}
this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32;
},
_doProcessBlock: function (H, I) {
for (var K = this._state, L = this.blockSize / 2, M = 0; M < L; M++) {
var P = H[I + 2 * M],
Q = H[I + 2 * M + 1];
P = 16711935 & (P << 8 | P >>> 24) | 4278255360 & (P << 24 | P >>> 8);
Q = 16711935 & (Q << 8 | Q >>> 24) | 4278255360 & (Q << 24 | Q >>> 8);
var T = K[M];
T.high ^= Q;
T.low ^= P;
}
for (var U = 0; U < 24; U++) {
for (var V = 0; V < 5; V++) {
for (var W = 0, X = 0, Y = 0; Y < 5; Y++) {
T = K[V + 5 * Y];
W ^= T.high;
X ^= T.low;
}
var Z = E[V];
Z.high = W;
Z.low = X;
}
for (V = 0; V < 5; V++) {
var a0 = E[(V + 4) % 5],
a1 = E[(V + 1) % 5],
a2 = a1.high,
a3 = a1.low;
for (W = a0.high ^ (a2 << 1 | a3 >>> 31), X = a0.low ^ (a3 << 1 | a2 >>> 31), Y = 0; Y < 5; Y++) {
T = K[V + 5 * Y];
T.high ^= W;
T.low ^= X;
}
}
for (var a4 = 1; a4 < 25; a4++) {
T = K[a4];
var a5 = T.high,
a6 = T.low,
a7 = B[a4];
a7 < 32 ? (W = a5 << a7 | a6 >>> 32 - a7, X = a6 << a7 | a5 >>> 32 - a7) : (W = a6 << a7 - 32 | a5 >>> 64 - a7, X = a5 << a7 - 32 | a6 >>> 64 - a7);
var a8 = E[C[a4]];
a8.high = W;
a8.low = X;
}
var a9 = E[0],
aa = K[0];
for (a9.high = aa.high, a9.low = aa.low, V = 0; V < 5; V++) {
for (Y = 0; Y < 5; Y++) {
a4 = V + 5 * Y;
T = K[a4];
var ab = E[a4],
ac = E[(V + 1) % 5 + 5 * Y],
ad = E[(V + 2) % 5 + 5 * Y];
T.high = ab.high ^ ~ac.high & ad.high;
T.low = ab.low ^ ~ac.low & ad.low;
}
}
T = K[0];
var ae = D[U];
T.high ^= ae.high;
T.low ^= ae.low;
}
},
_doFinalize: function () {
var H = this._data,
I = H.words,
J = (this._nDataBytes, 8 * H.sigBytes),
K = 32 * this.blockSize;
I[J >>> 5] |= 1 << 24 - J % 32;
I[(m.ceil((J + 1) / K) * K >>> 5) - 1] |= 128;
H.sigBytes = 4 * I.length;
this._process();
for (var L = this._state, M = this.cfg.outputLength / 8, N = M / 8, O = [], P = 0; P < N; P++) {
var Q = L[P],
R = Q.high,
S = Q.low;
R = 16711935 & (R << 8 | R >>> 24) | 4278255360 & (R << 24 | R >>> 8);
S = 16711935 & (S << 8 | S >>> 24) | 4278255360 & (S << 24 | S >>> 8);
O.push(S);
O.push(R);
}
return new w.init(O, M);
},
clone: function () {
for (I._state = this._state.slice(0), I = x.clone.call(this), J = I._state = this._state.slice(0), K = 0, void 0; K < 25; K++) {
var I, J, K;
J[K] = J[K].clone();
}
return I;
}
});
var G = A.SHA3;
q.SHA3 = x._createHelper(G);
q.HmacSHA3 = x._createHmacHelper(G);
}(Math), k.SHA3);
},
557: function (f, g, j) {
var m, p, q, u, v, w, x, y;
f.exports = (y = j(21), j(240), j(380), m = y, p = m.x64, q = p.Word, u = p.WordArray, v = m.algo, w = v.SHA512, x = v.SHA384 = w.extend({
_doReset: function () {
this._hash = new u.init([new q.init(3418070365, 3238371032), new q.init(1654270250, 914150663), new q.init(2438529370, 812702999), new q.init(355462360, 4144912697), new q.init(1731405415, 4290775857), new q.init(2394180231, 1750603025), new q.init(3675008525, 1694076839), new q.init(1203062813, 3204075428)]);
},
_doFinalize: function () {
var B = w._doFinalize.call(this);
B.sigBytes -= 16;
return B;
}
}), m.SHA384 = w._createHelper(x), m.HmacSHA384 = w._createHmacHelper(x), y.SHA384);
},
380: function (f, g, h) {
var k;
f.exports = (k = h(21), h(240), function () {
var p = k,
q = p.lib,
v = q.Hasher,
w = p.x64,
x = w.Word,
y = w.WordArray,
z = p.algo;
function D() {
return x.create.apply(x, arguments);
}
var A = [D(1116352408, 3609767458), D(1899447441, 602891725), D(3049323471, 3964484399), D(3921009573, 2173295548), D(961987163, 4081628472), D(1508970993, 3053834265), D(2453635748, 2937671579), D(2870763221, 3664609560), D(3624381080, 2734883394), D(310598401, 1164996542), D(607225278, 1323610764), D(1426881987, 3590304994), D(1925078388, 4068182383), D(2162078206, 991336113), D(2614888103, 633803317), D(3248222580, 3479774868), D(3835390401, 2666613458), D(4022224774, 944711139), D(264347078, 2341262773), D(604807628, 2007800933), D(770255983, 1495990901), D(1249150122, 1856431235), D(1555081692, 3175218132), D(1996064986, 2198950837), D(2554220882, 3999719339), D(2821834349, 766784016), D(2952996808, 2566594879), D(3210313671, 3203337956), D(3336571891, 1034457026), D(3584528711, 2466948901), D(113926993, 3758326383), D(338241895, 168717936), D(666307205, 1188179964), D(773529912, 1546045734), D(1294757372, 1522805485), D(1396182291, 2643833823), D(1695183700, 2343527390), D(1986661051, 1014477480), D(2177026350, 1206759142), D(2456956037, 344077627), D(2730485921, 1290863460), D(2820302411, 3158454273), D(3259730800, 3505952657), D(3345764771, 106217008), D(3516065817, 3606008344), D(3600352804, 1432725776), D(4094571909, 1467031594), D(275423344, 851169720), D(430227734, 3100823752), D(506948616, 1363258195), D(659060556, 3750685593), D(883997877, 3785050280), D(958139571, 3318307427), D(1322822218, 3812723403), D(1537002063, 2003034995), D(1747873779, 3602036899), D(1955562222, 1575990012), D(2024104815, 1125592928), D(2227730452, 2716904306), D(2361852424, 442776044), D(2428436474, 593698344), D(2756734187, 3733110249), D(3204031479, 2999351573), D(3329325298, 3815920427), D(3391569614, 3928383900), D(3515267271, 566280711), D(3940187606, 3454069534), D(4118630271, 4000239992), D(116418474, 1914138554), D(174292421, 2731055270), D(289380356, 3203993006), D(460393269, 320620315), D(685471733, 587496836), D(852142971, 1086792851), D(1017036298, 365543100), D(1126000580, 2618297676), D(1288033470, 3409855158), D(1501505948, 4234509866), D(1607167915, 987167468), D(1816402316, 1246189591)],
B = [];
!function () {
for (var E = 0; E < 80; E++) {
B[E] = D();
}
}();
z.SHA512 = v.extend({
_doReset: function () {
this._hash = new y.init([new x.init(1779033703, 4089235720), new x.init(3144134277, 2227873595), new x.init(1013904242, 4271175723), new x.init(2773480762, 1595750129), new x.init(1359893119, 2917565137), new x.init(2600822924, 725511199), new x.init(528734635, 4215389547), new x.init(1541459225, 327033209)]);
},
_doProcessBlock: function (a0, a1) {
for (var a3 = this._hash.words, a4 = a3[0], a5 = a3[1], a6 = a3[2], a7 = a3[3], a8 = a3[4], a9 = a3[5], aa = a3[6], ab = a3[7], ac = a4.high, ad = a4.low, af = a5.high, ag = a5.low, ah = a6.high, ai = a6.low, aj = a7.high, ak = a7.low, al = a8.high, am = a8.low, an = a9.high, ao = a9.low, ap = aa.high, aq = aa.low, ar = ab.high, as = ab.low, at = ac, au = ad, av = af, aw = ag, ax = ah, ay = ai, az = aj, aA = ak, aB = al, aC = am, aD = an, aE = ao, aF = ap, aG = aq, aH = ar, aI = as, aJ = 0; aJ < 80; aJ++) {
var aK,
aL,
aM = B[aJ];
if (aJ < 16) {
aL = aM.high = 0 | a0[a1 + 2 * aJ];
aK = aM.low = 0 | a0[a1 + 2 * aJ + 1];
} else {
var aN = B[aJ - 15],
aO = aN.high,
aP = aN.low,
aQ = (aO >>> 1 | aP << 31) ^ (aO >>> 8 | aP << 24) ^ aO >>> 7,
aR = (aP >>> 1 | aO << 31) ^ (aP >>> 8 | aO << 24) ^ (aP >>> 7 | aO << 25),
aS = B[aJ - 2],
aT = aS.high,
aU = aS.low,
aV = (aT >>> 19 | aU << 13) ^ (aT << 3 | aU >>> 29) ^ aT >>> 6,
aW = (aU >>> 19 | aT << 13) ^ (aU << 3 | aT >>> 29) ^ (aU >>> 6 | aT << 26),
aX = B[aJ - 7],
aY = aX.high,
aZ = aX.low,
b0 = B[aJ - 16],
b1 = b0.high,
b2 = b0.low;
aK = aR + aZ;
aL = aQ + aY + (aK >>> 0 < aR >>> 0 ? 1 : 0);
aK += aW;
aL = aL + aV + (aK >>> 0 < aW >>> 0 ? 1 : 0);
aK += b2;
aL = aL + b1 + (aK >>> 0 < b2 >>> 0 ? 1 : 0);
aM.high = aL;
aM.low = aK;
}
var b3 = aB & aD ^ ~aB & aF,
b4 = aC & aE ^ ~aC & aG,
b5 = at & av ^ at & ax ^ av & ax,
b6 = au & aw ^ au & ay ^ aw & ay,
b7 = (at >>> 28 | au << 4) ^ (at << 30 | au >>> 2) ^ (at << 25 | au >>> 7),
b8 = (au >>> 28 | at << 4) ^ (au << 30 | at >>> 2) ^ (au << 25 | at >>> 7),
b9 = (aB >>> 14 | aC << 18) ^ (aB >>> 18 | aC << 14) ^ (aB << 23 | aC >>> 9),
ba = (aC >>> 14 | aB << 18) ^ (aC >>> 18 | aB << 14) ^ (aC << 23 | aB >>> 9),
bb = A[aJ],
bc = bb.high,
bd = bb.low,
bf = aI + ba,
bg = aH + b9 + (bf >>> 0 < aI >>> 0 ? 1 : 0),
bh = (bf += b4, bg = bg + b3 + (bf >>> 0 < b4 >>> 0 ? 1 : 0), bf += bd, bg = bg + bc + (bf >>> 0 < bd >>> 0 ? 1 : 0), bf += aK, bg = bg + aL + (bf >>> 0 < aK >>> 0 ? 1 : 0), b8 + b6),
bi = b7 + b5 + (bh >>> 0 < b8 >>> 0 ? 1 : 0);
aH = aF;
aI = aG;
aF = aD;
aG = aE;
aD = aB;
aE = aC;
aC = aA + bf | 0;
aB = az + bg + (aC >>> 0 < aA >>> 0 ? 1 : 0) | 0;
az = ax;
aA = ay;
ax = av;
ay = aw;
av = at;
aw = au;
au = bf + bh | 0;
at = bg + bi + (au >>> 0 < bf >>> 0 ? 1 : 0) | 0;
}
ad = a4.low = ad + au;
a4.high = ac + at + (ad >>> 0 < au >>> 0 ? 1 : 0);
ag = a5.low = ag + aw;
a5.high = af + av + (ag >>> 0 < aw >>> 0 ? 1 : 0);
ai = a6.low = ai + ay;
a6.high = ah + ax + (ai >>> 0 < ay >>> 0 ? 1 : 0);
ak = a7.low = ak + aA;
a7.high = aj + az + (ak >>> 0 < aA >>> 0 ? 1 : 0);
am = a8.low = am + aC;
a8.high = al + aB + (am >>> 0 < aC >>> 0 ? 1 : 0);
ao = a9.low = ao + aE;
a9.high = an + aD + (ao >>> 0 < aE >>> 0 ? 1 : 0);
aq = aa.low = aq + aG;
aa.high = ap + aF + (aq >>> 0 < aG >>> 0 ? 1 : 0);
as = ab.low = as + aI;
ab.high = ar + aH + (as >>> 0 < aI >>> 0 ? 1 : 0);
},
_doFinalize: function () {
var G = this._data,
H = G.words,
I = 8 * this._nDataBytes,
J = 8 * G.sigBytes;
H[J >>> 5] |= 128 << 24 - J % 32;
H[30 + (J + 128 >>> 10 << 5)] = Math.floor(I / 4294967296);
H[31 + (J + 128 >>> 10 << 5)] = I;
G.sigBytes = 4 * H.length;
this._process();
var K = this._hash.toX32();
return K;
},
clone: function () {
var E = v.clone.call(this);
E._hash = this._hash.clone();
return E;
},
blockSize: 32
});
var C = z.SHA512;
p.SHA512 = v._createHelper(C);
p.HmacSHA512 = v._createHmacHelper(C);
}(), k.SHA512);
},
628: function (f, g, h) {
var k;
f.exports = (k = h(21), h(754), h(636), h(506), h(165), function () {
var y = {
"0": 8421888,
"268435456": 32768,
"536870912": 8421378,
"805306368": 2,
"1073741824": 512,
"1342177280": 8421890,
"1610612736": 8389122,
"1879048192": 8388608,
"2147483648": 514,
"2415919104": 8389120,
"2684354560": 33280,
"2952790016": 8421376,
"3221225472": 32770,
"3489660928": 8388610,
"3758096384": 0,
"4026531840": 33282,
"134217728": 0,
"402653184": 8421890,
"671088640": 33282,
"939524096": 32768,
"1207959552": 8421888,
"1476395008": 512,
"1744830464": 8421378,
"2013265920": 2,
"2281701376": 8389120,
"2550136832": 33280,
"2818572288": 8421376,
"3087007744": 8389122,
"3355443200": 8388610,
"3623878656": 32770,
"3892314112": 514,
"4160749568": 8388608,
"1": 32768,
"268435457": 2,
"536870913": 8421888,
"805306369": 8388608,
"1073741825": 8421378,
"1342177281": 33280,
"1610612737": 512,
"1879048193": 8389122,
"2147483649": 8421890,
"2415919105": 8421376,
"2684354561": 8388610,
"2952790017": 33282,
"3221225473": 514,
"3489660929": 8389120,
"3758096385": 32770,
"4026531841": 0,
"134217729": 8421890,
"402653185": 8421376,
"671088641": 8388608,
"939524097": 512,
"1207959553": 32768,
"1476395009": 8388610,
"1744830465": 2,
"2013265921": 33282,
"2281701377": 32770,
"2550136833": 8389122,
"2818572289": 514,
"3087007745": 8421888,
"3355443201": 8389120,
"3623878657": 0,
"3892314113": 33280,
"4160749569": 8421378
};
var z = {};
z["0"] = 1074282512;
z["16777216"] = 16384;
z["33554432"] = 524288;
z["50331648"] = 1074266128;
z["67108864"] = 1073741840;
z["83886080"] = 1074282496;
z["100663296"] = 1073758208;
z["117440512"] = 16;
z["134217728"] = 540672;
z["150994944"] = 1073758224;
z["167772160"] = 1073741824;
z["184549376"] = 540688;
z["201326592"] = 524304;
z["218103808"] = 0;
z["234881024"] = 16400;
z["251658240"] = 1074266112;
z["8388608"] = 1073758208;
z["25165824"] = 540688;
z["41943040"] = 16;
z["58720256"] = 1073758224;
z["75497472"] = 1074282512;
z["92274688"] = 1073741824;
z["109051904"] = 524288;
z["125829120"] = 1074266128;
z["142606336"] = 524304;
z["159383552"] = 0;
z["176160768"] = 16384;
z["192937984"] = 1074266112;
z["209715200"] = 1073741840;
z["226492416"] = 540672;
z["243269632"] = 1074282496;
z["260046848"] = 16400;
z["268435456"] = 0;
z["285212672"] = 1074266128;
z["301989888"] = 1073758224;
z["318767104"] = 1074282496;
z["335544320"] = 1074266112;
z["352321536"] = 16;
z["369098752"] = 540688;
z["385875968"] = 16384;
z["402653184"] = 16400;
z["419430400"] = 524288;
z["436207616"] = 524304;
z["452984832"] = 1073741840;
z["469762048"] = 540672;
z["486539264"] = 1073758208;
z["503316480"] = 1073741824;
z["520093696"] = 1074282512;
z["276824064"] = 540688;
z["293601280"] = 524288;
z["310378496"] = 1074266112;
z["327155712"] = 16384;
z["343932928"] = 1073758208;
z["360710144"] = 1074282512;
z["377487360"] = 16;
z["394264576"] = 1073741824;
z["411041792"] = 1074282496;
z["427819008"] = 1073741840;
z["444596224"] = 1073758224;
z["461373440"] = 524304;
z["478150656"] = 0;
z["494927872"] = 16400;
z["511705088"] = 1074266128;
z["528482304"] = 540672;
var A = {
"0": 260,
"1048576": 0,
"2097152": 67109120,
"3145728": 65796,
"4194304": 65540,
"5242880": 67108868,
"6291456": 67174660,
"7340032": 67174400,
"8388608": 67108864,
"9437184": 67174656,
"10485760": 65792,
"11534336": 67174404,
"12582912": 67109124,
"13631488": 65536,
"14680064": 4,
"15728640": 256,
"524288": 67174656,
"1572864": 67174404,
"2621440": 0,
"3670016": 67109120,
"4718592": 67108868,
"5767168": 65536,
"6815744": 65540,
"7864320": 260,
"8912896": 4,
"9961472": 256,
"11010048": 67174400,
"12058624": 65796,
"13107200": 65792,
"14155776": 67109124,
"15204352": 67174660,
"16252928": 67108864,
"16777216": 67174656,
"17825792": 65540,
"18874368": 65536,
"19922944": 67109120,
"20971520": 256,
"22020096": 67174660,
"23068672": 67108868,
"24117248": 0,
"25165824": 67109124,
"26214400": 67108864,
"27262976": 4,
"28311552": 65792,
"29360128": 67174400,
"30408704": 260,
"31457280": 65796,
"32505856": 67174404,
"17301504": 67108864,
"18350080": 260,
"19398656": 67174656,
"20447232": 0,
"21495808": 65540,
"22544384": 67109120,
"23592960": 256,
"24641536": 67174404,
"25690112": 65536,
"26738688": 67174660,
"27787264": 65796,
"28835840": 67108868,
"29884416": 67109124,
"30932992": 67174400,
"31981568": 4,
"33030144": 65792
};
var B = {
"0": 2151682048,
"65536": 2147487808,
"131072": 4198464,
"196608": 2151677952,
"262144": 0,
"327680": 4198400,
"393216": 2147483712,
"458752": 4194368,
"524288": 2147483648,
"589824": 4194304,
"655360": 64,
"720896": 2147487744,
"786432": 2151678016,
"851968": 4160,
"917504": 4096,
"983040": 2151682112,
"32768": 2147487808,
"98304": 64,
"163840": 2151678016,
"229376": 2147487744,
"294912": 4198400,
"360448": 2151682112,
"425984": 0,
"491520": 2151677952,
"557056": 4096,
"622592": 2151682048,
"688128": 4194304,
"753664": 4160,
"819200": 2147483648,
"884736": 4194368,
"950272": 4198464,
"1015808": 2147483712,
"1048576": 4194368,
"1114112": 4198400,
"1179648": 2147483712,
"1245184": 0,
"1310720": 4160,
"1376256": 2151678016,
"1441792": 2151682048,
"1507328": 2147487808,
"1572864": 2151682112,
"1638400": 2147483648,
"1703936": 2151677952,
"1769472": 4198464,
"1835008": 2147487744,
"1900544": 4194304,
"1966080": 64,
"2031616": 4096,
"1081344": 2151677952,
"1146880": 2151682112,
"1212416": 0,
"1277952": 4198400,
"1343488": 4194368,
"1409024": 2147483648,
"1474560": 2147487808,
"1540096": 64,
"1605632": 2147483712,
"1671168": 4096,
"1736704": 2147487744,
"1802240": 2151678016,
"1867776": 4160,
"1933312": 2151682048,
"1998848": 4194304,
"2064384": 4198464
};
var C = {
"0": 128,
"4096": 17039360,
"8192": 262144,
"12288": 536870912,
"16384": 537133184,
"20480": 16777344,
"24576": 553648256,
"28672": 262272,
"32768": 16777216,
"36864": 537133056,
"40960": 536871040,
"45056": 553910400,
"49152": 553910272,
"53248": 0,
"57344": 17039488,
"61440": 553648128,
"2048": 17039488,
"6144": 553648256,
"10240": 128,
"14336": 17039360,
"18432": 262144,
"22528": 537133184,
"26624": 553910272,
"30720": 536870912,
"34816": 537133056,
"38912": 0,
"43008": 553910400,
"47104": 16777344,
"51200": 536871040,
"55296": 553648128,
"59392": 16777216,
"63488": 262272,
"65536": 262144,
"69632": 128,
"73728": 536870912,
"77824": 553648256,
"81920": 16777344,
"86016": 553910272,
"90112": 537133184,
"94208": 16777216,
"98304": 553910400,
"102400": 553648128,
"106496": 17039360,
"110592": 537133056,
"114688": 262272,
"118784": 536871040,
"122880": 0,
"126976": 17039488,
"67584": 553648256,
"71680": 16777216,
"75776": 17039360,
"79872": 537133184,
"83968": 536870912,
"88064": 17039488,
"92160": 128,
"96256": 553910272,
"100352": 262272,
"104448": 553910400,
"108544": 0,
"112640": 553648128,
"116736": 16777344,
"120832": 262144,
"124928": 537133056,
"129024": 536871040
};
var D = {
"0": 268435464,
"256": 8192,
"512": 270532608,
"768": 270540808,
"1024": 268443648,
"1280": 2097152,
"1536": 2097160,
"1792": 268435456,
"2048": 0,
"2304": 268443656,
"2560": 2105344,
"2816": 8,
"3072": 270532616,
"3328": 2105352,
"3584": 8200,
"3840": 270540800,
"128": 270532608,
"384": 270540808,
"640": 8,
"896": 2097152,
"1152": 2105352,
"1408": 268435464,
"1664": 268443648,
"1920": 8200,
"2176": 2097160,
"2432": 8192,
"2688": 268443656,
"2944": 270532616,
"3200": 0,
"3456": 270540800,
"3712": 2105344,
"3968": 268435456,
"4096": 268443648,
"4352": 270532616,
"4608": 270540808,
"4864": 8200,
"5120": 2097152,
"5376": 268435456,
"5632": 268435464,
"5888": 2105344,
"6144": 2105352,
"6400": 0,
"6656": 8,
"6912": 270532608,
"7168": 8192,
"7424": 268443656,
"7680": 270540800,
"7936": 2097160,
"4224": 8,
"4480": 2105344,
"4736": 2097152,
"4992": 268435464,
"5248": 268443648,
"5504": 8200,
"5760": 270540808,
"6016": 270532608,
"6272": 270540800,
"6528": 270532616,
"6784": 8192,
"7040": 2105352,
"7296": 2097160,
"7552": 0,
"7808": 268435456,
"8064": 268443656
};
var E = {
"0": 1048576,
"16": 33555457,
"32": 1024,
"48": 1049601,
"64": 34604033,
"80": 0,
"96": 1,
"112": 34603009,
"128": 33555456,
"144": 1048577,
"160": 33554433,
"176": 34604032,
"192": 34603008,
"208": 1025,
"224": 1049600,
"240": 33554432,
"8": 34603009,
"24": 0,
"40": 33555457,
"56": 34604032,
"72": 1048576,
"88": 33554433,
"104": 33554432,
"120": 1025,
"136": 1049601,
"152": 33555456,
"168": 34603008,
"184": 1048577,
"200": 1024,
"216": 34604033,
"232": 1,
"248": 1049600,
"256": 33554432,
"272": 1048576,
"288": 33555457,
"304": 34603009,
"320": 1048577,
"336": 33555456,
"352": 34604032,
"368": 1049601,
"384": 1025,
"400": 34604033,
"416": 1049600,
"432": 1,
"448": 0,
"464": 34603008,
"480": 33554433,
"496": 1024,
"264": 1049600,
"280": 33555457,
"296": 34603009,
"312": 1,
"328": 33554432,
"344": 1048576,
"360": 1025,
"376": 34604032,
"392": 33554433,
"408": 34603008,
"424": 0,
"440": 34604033,
"456": 1049601,
"472": 1024,
"488": 33555456,
"504": 1048577
};
var F = {};
F["0"] = 134219808;
F["1"] = 131072;
F["2"] = 134217728;
F["3"] = 32;
F["4"] = 131104;
F["5"] = 134350880;
F["6"] = 134350848;
F["7"] = 2048;
F["8"] = 134348800;
F["9"] = 134219776;
F["10"] = 133120;
F["11"] = 134348832;
F["12"] = 2080;
F["13"] = 0;
F["14"] = 134217760;
F["15"] = 133152;
F["2147483648"] = 2048;
F["2147483649"] = 134350880;
F["2147483650"] = 134219808;
F["2147483651"] = 134217728;
F["2147483652"] = 134348800;
F["2147483653"] = 133120;
F["2147483654"] = 133152;
F["2147483655"] = 32;
F["2147483656"] = 134217760;
F["2147483657"] = 2080;
F["2147483658"] = 131104;
F["2147483659"] = 134350848;
F["2147483660"] = 0;
F["2147483661"] = 134348832;
F["2147483662"] = 134219776;
F["2147483663"] = 131072;
F["16"] = 133152;
F["17"] = 134350848;
F["18"] = 32;
F["19"] = 2048;
F["20"] = 134219776;
F["21"] = 134217760;
F["22"] = 134348832;
F["23"] = 131072;
F["24"] = 0;
F["25"] = 131104;
F["26"] = 134348800;
F["27"] = 134219808;
F["28"] = 134350880;
F["29"] = 133120;
F["30"] = 2080;
F["31"] = 134217728;
F["2147483664"] = 131072;
F["2147483665"] = 2048;
F["2147483666"] = 134348832;
F["2147483667"] = 133152;
F["2147483668"] = 32;
F["2147483669"] = 134348800;
F["2147483670"] = 134217728;
F["2147483671"] = 134219808;
F["2147483672"] = 134350880;
F["2147483673"] = 134217760;
F["2147483674"] = 134219776;
F["2147483675"] = 0;
F["2147483676"] = 133120;
F["2147483677"] = 2080;
F["2147483678"] = 131104;
F["2147483679"] = 134350848;
K.DES = J.extend({
_doReset: function () {
for (var W = this._key, X = W.words, Y = [], Z = 0; Z < 56; Z++) {
var a0 = L[Z] - 1;
Y[Z] = X[a0 >>> 5] >>> 31 - a0 % 32 & 1;
}
for (this._subKeys = [], a1 = this._subKeys = [], a2 = 0, void 0; a2 < 16; a2++) {
var a1, a2;
a1[a2] = [];
var a3 = a1[a2],
a4 = N[a2];
for (Z = 0; Z < 24; Z++) {
a3[Z / 6 | 0] |= Y[(M[Z] - 1 + a4) % 28] << 31 - Z % 6;
a3[4 + (Z / 6 | 0)] |= Y[28 + (M[Z + 24] - 1 + a4) % 28] << 31 - Z % 6;
}
for (a3[0] = a3[0] << 1 | a3[0] >>> 31, Z = 1; Z < 7; Z++) {
a3[Z] = a3[Z] >>> 4 * (Z - 1) + 3;
}
a3[7] = a3[7] << 5 | a3[7] >>> 27;
}
this._invSubKeys = [];
var a5 = this._invSubKeys;
for (Z = 0; Z < 16; Z++) {
a5[Z] = a1[15 - Z];
}
},
encryptBlock: function (U, V) {
this._doCryptBlock(U, V, this._subKeys);
},
decryptBlock: function (U, V) {
this._doCryptBlock(U, V, this._invSubKeys);
},
_doCryptBlock: function (U, V, W) {
this._lBlock = U[V];
this._rBlock = U[V + 1];
R.call(this, 4, 252645135);
R.call(this, 16, 65535);
S.call(this, 2, 858993459);
S.call(this, 8, 16711935);
R.call(this, 1, 1431655765);
for (var Y = 0; Y < 16; Y++) {
for (var Z = W[Y], a0 = this._lBlock, a1 = this._rBlock, a2 = 0, a3 = 0; a3 < 8; a3++) {
a2 |= O[a3][((a1 ^ Z[a3]) & P[a3]) >>> 0];
}
this._lBlock = a1;
this._rBlock = a0 ^ a2;
}
var a4 = this._lBlock;
this._lBlock = this._rBlock;
this._rBlock = a4;
R.call(this, 1, 1431655765);
S.call(this, 8, 16711935);
S.call(this, 2, 858993459);
R.call(this, 16, 65535);
R.call(this, 4, 252645135);
U[V] = this._lBlock;
U[V + 1] = this._rBlock;
},
keySize: 2,
ivSize: 2,
blockSize: 2
});
var G = k,
H = G.lib,
I = H.WordArray,
J = H.BlockCipher,
K = G.algo,
L = [57, 49, 41, 33, 25, 17, 9, 1, 58, 50, 42, 34, 26, 18, 10, 2, 59, 51, 43, 35, 27, 19, 11, 3, 60, 52, 44, 36, 63, 55, 47, 39, 31, 23, 15, 7, 62, 54, 46, 38, 30, 22, 14, 6, 61, 53, 45, 37, 29, 21, 13, 5, 28, 20, 12, 4],
M = [14, 17, 11, 24, 1, 5, 3, 28, 15, 6, 21, 10, 23, 19, 12, 4, 26, 8, 16, 7, 27, 20, 13, 2, 41, 52, 31, 37, 47, 55, 30, 40, 51, 45, 33, 48, 44, 49, 39, 56, 34, 53, 46, 42, 50, 36, 29, 32],
N = [1, 2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 23, 25, 27, 28],
O = [y, z, A, B, C, D, E, F],
P = [4160749569, 528482304, 33030144, 2064384, 129024, 8064, 504, 2147483679],
Q = K.DES;
function R(U, V) {
var X = (this._lBlock >>> U ^ this._rBlock) & V;
this._rBlock ^= X;
this._lBlock ^= X << U;
}
function S(U, V) {
var W = (this._rBlock >>> U ^ this._lBlock) & V;
this._lBlock ^= W;
this._rBlock ^= W << U;
}
G.DES = J._createHelper(Q);
K.TripleDES = J.extend({
_doReset: function () {
var U = this._key,
V = U.words;
if (2 !== V.length && 4 !== V.length && V.length < 6) {
throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");
}
var W = V.slice(0, 2),
X = V.length < 4 ? V.slice(0, 2) : V.slice(2, 4),
Y = V.length < 6 ? V.slice(0, 2) : V.slice(4, 6);
this._des1 = Q.createEncryptor(I.create(W));
this._des2 = Q.createEncryptor(I.create(X));
this._des3 = Q.createEncryptor(I.create(Y));
},
encryptBlock: function (U, V) {
this._des1.encryptBlock(U, V);
this._des2.decryptBlock(U, V);
this._des3.encryptBlock(U, V);
},
decryptBlock: function (U, V) {
this._des3.decryptBlock(U, V);
this._des2.encryptBlock(U, V);
this._des1.decryptBlock(U, V);
},
keySize: 6,
ivSize: 2,
blockSize: 2
});
var T = K.TripleDES;
G.TripleDES = J._createHelper(T);
}(), k.TripleDES);
},
240: function (f, g, h) {
var k;
f.exports = (k = h(21), function (m) {
p.x64 = {};
var p = k,
q = p.lib,
u = q.Base,
v = q.WordArray,
w = p.x64;
w.Word = u.extend({
init: function (y, z) {
this.high = y;
this.low = z;
}
});
w.WordArray = u.extend({
init: function (y, z) {
y = this.words = y || [];
this.sigBytes = z != m ? z : 8 * y.length;
},
toX32: function () {
for (var z = this.words, A = z.length, B = [], C = 0; C < A; C++) {
var D = z[C];
B.push(D.high);
B.push(D.low);
}
return v.create(B, this.sigBytes);
},
clone: function () {
for (y.words = this.words.slice(0), y = u.clone.call(this), z = y.words = this.words.slice(0), A = z.length, B = 0, void 0; B < A; B++) {
var y, z, A, B;
z[B] = z[B].clone();
}
return y;
}
});
}(), k);
},
477: () => {}
},
c = {};
function d(f) {
var h = c[f];
if (void 0 !== h) {
return h.exports;
}
var j = {};
j.exports = {};
c[f] = j;
var k = c[f];
b[f].call(k.exports, k, k.exports, d);
return k.exports;
}
d.g = function () {
if ("object" == typeof globalThis) {
return globalThis;
}
try {
return this || new Function("return this")();
} catch (h) {
if ("object" == typeof window) {
return window;
}
}
}();
(() => {
const g = "sfsy_data",
h = $.toObj($.isNode() ? process.env[g] : $.getdata(g)) || [];
async function i() {
if (!($.userList.length > 5 && "false" == $.is_account)) {
for (let B of $.userList) try {
if (await B.refresh_cookie(), B.ckStatus) {
let {
usablePoint: D
} = await B.queryUserInfo();
await B.superWelfare_receiveRedPacket();
await B.automaticSignFetchPackage();
await B.memberDay_index();
"false" != $.is_bee && (await B.bee_indexData());
await B.coupon_list();
let E = await B.queryUserInfo();
$.succCount++;
t("[" + B.userName + "] 积分+" + (E?.["usablePoint"] - 0 - D ?? 0) + " 蜂蜜+" + ($.beeHoney ?? 0));
} else {
t("⛔️ 「" + (B.userName ?? "账号" + index) + "」签到失败, 用户需要去登录");
}
} catch (G) {
throw G;
}
$.title = "共" + $.userList.length + "个账号,成功" + $.succCount + "个,失败" + ($.userList.length - 0 - $.succCount) + "个";
await s($.notifyMsg.join("\n"), {
$media: $.avatar
});
}
}
$.userIdx = 0;
$.userList = [];
$.notifyMsg = [];
$.succCount = 0;
$.is_debug = ($.isNode() ? process.env.IS_DEDUG : $.getdata("is_debug")) || "false";
$.is_bee = ($.isNode() ? process.env.sfsy_bee : $.getdata("sfsy_bee")) || "false";
$.is_account = ($.isNode() ? process.env.sliverkiss_account : $.getdata("sliverkiss_account")) || "false";
$.unTaskList = ["完成连签7天", "参与积分活动", "每月累计寄件", "完成每月任务", "与好友微信分享会员福利", "DAILY_VIP_TASK_TYPE", "去新增一个收件偏好", "用行业模板寄件下单", "用积分兑任意礼品", "领任意生活特权福利", "设置你的顺丰ID"];
var j = {};
j.token = "wwesldfs29aniversaryvdld29";
j.sysCode = "MCS-MIMP-CORE";
j.channel = "wxwd26mem1";
class k {
constructor(y) {
this.index = ++$.userIdx;
this.token = y.token || y;
this.sfsyUrl = y.token;
this.userId = y.userId;
this.deviceId = m("xxxxxxxx-xxxx-xxxx");
this.memberDay_black = !1;
this.memberDay_redPacket_drewToday = !1;
this.memberDay_redPacket_map = {};
this.userIdList = [];
this.userName = y.userName;
this.avatar = y.avatar;
this.ckStatus = !0;
this.baseUrl = "";
this.headers = {};
this.fetch = async B => {
try {
"string" == typeof B && (B = {
url: B
});
(B?.["url"]?.["startsWith"]("/") || B?.["url"]?.["startsWith"](":")) && (B.url = this.baseUrl + B.url);
var D = {
...B,
headers: B.headers || this.headers,
url: B.url
};
const F = await x(D);
v(F, B?.["url"]?.["replace"](/\/+$/, "")["substring"](B?.["url"]?.["lastIndexOf"]("/") + 1));
return F;
} catch (H) {
this.ckStatus = !1;
$.log("[" + (this.userName || this.index) + "][ERROR] 请求发起失败!" + H + "\n");
}
};
}
async refresh_cookie() {
try {
var z = {
url: this.sfsyUrl,
type: "get",
resultType: "all",
followRedirect: !1
};
let B = await this.fetch(z),
C = w(B?.["headers"]),
D = p(C.location);
if (v(D), 302 != B.status) {
throw "登录失败";
}
this.userName = D.mobile;
$.log("[" + (this.userName || this.index) + "][INFO] 登录成功");
return D;
} catch (F) {
this.ckStatus = !1;
$.log("[" + (this.userName || this.index) + "][ERROR] " + F + "\n");
}
}
getSign(y = j) {
let A = Date.now(),
{
token: B,
sysCode: C,
channel: D
} = y,
E = "token=" + B + "&timestamp=" + A + "&sysCode=" + C,
F = $.CryptoJS.MD5(E).toString($.CryptoJS.enc.Hex);
var z = {
platform: "MINI_PROGRAM",
channel: D,
sysCode: C,
timestamp: A,
signature: F
};
return z;
}
async queryUserInfo() {
try {
const z = {
url: "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberIntegral~userInfoService~queryUserInfo",
type: "post",
headers: {
...this.getSign()
},
dataType: "json",
body: {
sysCode: "ESG-CEMP-CORE",
optionalColumns: ["usablePoint", "cycleSub", "leavePoint"],
token: "zeTLTYeG0bLetfRk"
}
};
let A = await this.fetch(z);
if (A.success) {
const {
usablePoint: B,
cycleSub: C,
leavePoint: D,
pointClearCycle: E
} = A.obj,
F = this.userName || this.index;
let G = "[" + F + "][INFO] 积分: " + B;
const H = D - C,
I = new Date(E + " 00:00:00");
I.setFullYear(I.getFullYear() + 1);
H > 0 && I.getTime() > Date.now() && (G += ", 有" + H + "积分将在" + I.toLocaleDateString("zh-CN") + "过期");
$.log(G);
}
return A.obj;
} catch (L) {
this.ckStatus = !1;
$.log("[" + (this.userName || this.index) + "][ERROR] " + L + "\n");
}
}
async superWelfare_receiveRedPacket() {
try {
const A = {
url: "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberActLengthy~redPacketActivityService~superWelfare~receiveRedPacket",
type: "post",
headers: {
...this.getSign()
},
dataType: "json",
body: {
channel: "czflqdlhbxcx"
}
};
let B = await this.fetch(A);
if (B.success) {
let C = B.obj.giftList;
B.obj.extraGiftList?.["length"] && (C = C.concat(B.obj.extraGiftList));
const D = C.map(F => F.giftName).join(", "),
E = 1 == B.obj.receiveStatus ? "领取成功" : "已领取过";
$.log("[" + (this.userName || this.index) + "][INFO] 超值福利签到[" + E + "]: " + D);
} else {
$.log("[" + (this.userName || this.index) + "][ERROR] 超值福利签到失败: " + (B.errorMessage || JSON.stringify(B) || "无返回"));
}
} catch (H) {
this.ckStatus = !1;
$.log("[" + (this.userName || this.index) + "][ERROR] " + H + "\n");
}
}
async automaticSignFetchPackage(y = {}) {
try {
const C = {
url: "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~integralTaskSignPlusService~automaticSignFetchPackage",
type: "post",
headers: {
...this.getSign()
},
dataType: "json",
body: {
comeFrom: y.comeFrom || "vioin",
channelFrom: y.channelFrom || "SFAPP"
}
};
let D = await this.fetch(C);
if (!D?.["success"]) {
throw new Error("查询签到失败: " + (D.errorMessage || JSON.stringify(D) || "无返回"));
}
if (D.obj.hasFinishSign) {
$.log("[" + (this.userName || this.index) + "][INFO] 今天已签到");
} else {
if (D.obj.integralTaskSignPackageVOList?.["length"]) {
const E = D.obj.integralTaskSignPackageVOList.map(F => F.packetName).join(", ");
$.log("[" + (this.userName || this.index) + "][INFO] 签到获得: " + E);
}
}
var A = {
channelType: 3
};
await this.queryPointTaskAndSignFromES();
await this.queryPointTaskAndSignFromES(A);
await this.queryUserInfo();
} catch (H) {
this.ckStatus = !1;
$.log("[" + (this.userName || this.index) + "][ERROR] " + H + "\n");
}
}
async queryPointTaskAndSignFromES(y = {}) {
try {
const A = {
url: "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~integralTaskStrategyService~queryPointTaskAndSignFromES",
type: "post",
headers: {
...this.getSign()
},
dataType: "json",
body: {
deviceId: this.deviceId,
channelType: String(y.channelType || 1)
}
};
let B = await this.fetch(A);
if (!B?.["success"]) {
throw new Error("[" + (this.userName || this.index) + "][ERROR] 查询任务失败: " + (B.errorMessage || JSON.stringify(B) || "无返回"));
}
for (const C of B.obj.taskTitleLevels) switch (C.status) {
case 2:
if ($.unTaskList.includes(C.title)) {
break;
}
await this.finishTask(C);
case 1:
await this.fetchIntegral(C);
break;
case 3:
break;
default:
$.log("[" + (this.userName || this.index) + "][ERROR] 任务[" + C.title + "] -- 未知状态[" + C.status + "]");
}
} catch (D) {
this.ckStatus = !1;
$.log("[" + (this.userName || this.index) + "][ERROR] " + D + "\n");
}
}
async finishTask(y) {
try {
var z = {
taskCode: y.taskCode
};
const C = {
url: "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonRoutePost/memberEs/taskRecord/finishTask",
type: "post",
headers: {
...this.getSign()
},
dataType: "json",
body: z
};
let D = await this.fetch(C);
if (!D.success) {
throw new Error("完成任务[" + y.title + "]失败: " + (D.errorMessage || JSON.stringify(D) || "无返回"));
}
$.log("[" + (this.userName || this.index) + "][INFO] 完成任务[" + y.title + "]成功");
} catch (E) {
this.ckStatus = !1;
$.log("[" + (this.userName || this.index) + "][ERROR] " + E + "\n");
}
}
async fetchIntegral(y) {
try {
const A = {
url: "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~integralTaskStrategyService~fetchIntegral",
type: "post",
headers: {
...this.getSign()
},
dataType: "json",
body: {
strategyId: y.strategyId,
taskId: y.taskId,
taskCode: y.taskCode,
deviceId: this.deviceId
}
};
let B = await this.fetch(A);
if (!B.success) {
throw new Error("领取任务[" + y.title + "]奖励失败: " + (B.errorMessage || JSON.stringify(B) || "无返回"));
}
$.log("[" + (this.userName || this.index) + "][INFO] 领取任务[" + y.title + "]奖励: " + B.obj.point + "积分");
} catch (D) {
this.ckStatus = !1;
$.log("[" + (this.userName || this.index) + "][ERROR] " + D + "\n");
}
}
async memberDay_task(y = {}) {
const z = new Date().getDate();
z >= 26 && z <= 28 && (await this.memberDay_index());
}
async memberDay_index() {
try {
const y = {
url: "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~memberDayIndexService~index",
type: "post",
headers: {
...this.getSign()
},
dataType: "json",
body: {}
};
let z = await this.fetch(y);
if (z?.["success"]) {
let {
lotteryNum: A = 0
} = z.obj || {};
for (await this.memberDay_redPacketReceivedStatus(), $.log("[" + (this.userName || this.index) + "][ERROR] 会员日可以抽奖" + A + "次"); A-- > 0;) {
await this.memberDay_lottery();
}
if (this.memberDay_black) {
return;
}
if (await this.memberDay_taskList(), this.memberDay_black) {
return;
}
await this.memberDay_redPacketStatus();
} else {
const B = z?.["errorMessage"] || (z ? JSON.stringify(z) : "无返回");
$.log("[" + (this.userName || this.index) + "][ERROR] 查询会员日失败: " + B);
B?.["includes"]("没有资格参与活动") && (this.memberDay_black = !0, $.log("[" + (this.userName || this.index) + "][ERROR] 会员日任务风控"));
}
} catch (C) {
this.ckStatus = !1;
$.log("[" + (this.userName || this.index) + "][ERROR] " + C + "\n");
}
}
async memberDay_redPacketReceivedStatus() {
try {
const y = {
url: "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~memberDayTaskService~redPacketReceivedStatus",
type: "post",
headers: {
...this.getSign()
},
dataType: "json",
body: {}
};
let z = await this.fetch(y);
if (z?.["success"]) {
for (let A of z?.["obj"] || []) {
if (A.received) {
continue;
}
let B = new Date().getHours();
A.receiveHour === B && (await this.memberDay_receiveRedPacket(A.receiveHour));
}
} else {
let C = z?.["errorMessage"] || (z ? JSON.stringify(z) : "无返回");
$.log("[" + (this.userName || this.index) + "][ERROR] 会员日查询整点领红包失败: " + C);
C.includes("没有资格参与活动") && (this.memberDay_black = !0, $.log("[" + (this.userName || this.index) + "][ERROR] 会员日任务风控"));
}
} catch (D) {
this.ckStatus = !1;
$.log("[" + (this.userName || this.index) + "][ERROR] " + D + "\n");
}
}
async memberDay_receiveRedPacket(y) {
try {
var z = {
receiveHour: y
};
const A = {
url: "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~memberDayTaskService~receiveRedPacket",
type: "post",
headers: {
...this.getSign()
},
dataType: "json",
body: z
};
let B = await this.fetch(A);
if (B?.["success"]) {
$.log("[" + (this.userName || this.index) + "][INFO] 会员日领取" + y + "点红包成功");
} else {
let C = B?.["errorMessage"] || (B ? JSON.stringify(B) : "无返回");
$.log("[" + (this.userName || this.index) + "][ERROR] 会员日领取" + y + "点红包失败: " + C);
C.includes("没有资格参与活动") && (this.memberDay_black = !0, $.log("[" + (this.userName || this.index) + "][ERROR] 会员日任务风控"));
}
} catch (D) {
this.ckStatus = !1;
$.log("[" + (this.userName || this.index) + "][ERROR] " + D + "\n");
}
}
async memberDay_lottery() {
try {
const z = {
url: "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~memberDayLotteryService~lottery",
type: "post",
headers: {
...this.getSign()
},
dataType: "json",
body: {}
};
let A = await this.fetch(z);
if (A?.["success"]) {
let {
productName: B = "空气"
} = A?.["obj"] || {};
var y = {
notify: !0
};
$.log("[" + (this.userName || this.index) + "][INFO] 会员日抽奖: " + B, y);
} else {
let D = A?.["errorMessage"] || (A ? JSON.stringify(A) : "无返回");
$.log("[" + (this.userName || this.index) + "][ERROR] 会员日抽奖失败: " + D);
D.includes("没有资格参与活动") && (this.memberDay_black = !0, $.log("[" + (this.userName || this.index) + "][ERROR] 会员日任务风控"));
}
} catch (E) {
this.ckStatus = !1;
$.log("[" + (this.userName || this.index) + "][ERROR] " + E + "\n");
}
}
async memberDay_taskList() {
try {
const y = {
url: "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~activityTaskService~taskList",
type: "post",
headers: {
...this.getSign()
},
dataType: "json",
body: {
activityCode: "MEMBER_DAY",
channelType: "MINI_PROGRAM"
}
};
let z = await this.fetch(y);
if (z?.["success"]) {
let A = z?.["obj"] || [];
for (let B of A.filter(C => 1 == C.status)) {
if (this.memberDay_black) {
return;
}
await this.memberDay_fetchMixTaskReward(B);
}
for (let C of A.filter(D => 2 == D.status)) {
if (this.memberDay_black) {
return;
}
switch (C.taskType) {
case "SEND_SUCCESS":
case "INVITEFRIENDS_PARTAKE_ACTIVITY":
case "OPEN_SVIP":
case "OPEN_NEW_EXPRESS_CARD":
case "OPEN_FAMILY_CARD":
case "CHARGE_NEW_EXPRESS_CARD":
case "INTEGRAL_EXCHANGE":
break;
default:
for (let D = 0; D < C.restFinishTime && !this.memberDay_black; D++) {
await this.memberDay_finishTask(C);
}
}
}
} else {
let E = z?.["errorMessage"] || (z ? JSON.stringify(z) : "无返回");
$.log("[" + (this.userName || this.index) + "][ERROR] 查询会员日任务失败: " + E);
E.includes("没有资格参与活动") && (this.memberDay_black = !0, $.log("[" + (this.userName || this.index) + "][ERROR] 会员日任务风控"));
}
} catch (F) {
this.ckStatus = !1;
$.log("[" + (this.userName || this.index) + "][ERROR] " + F + "\n");
}
}
async memberDay_fetchMixTaskReward(y) {
try {
const z = {
url: "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~activityTaskService~fetchMixTaskReward",
type: "post",
headers: {
...this.getSign()
},
dataType: "json",
body: {
taskType: y.taskType,
activityCode: "MEMBER_DAY",
channelType: "MINI_PROGRAM"
}
};
let A = await this.fetch(z);
if (A?.["success"]) {
$.log("[" + (this.userName || this.index) + "][INFO] 领取会员日任务[" + y.taskName + "]奖励成功");
} else {
let B = A?.["errorMessage"] || (A ? JSON.stringify(A) : "无返回");
$.log("[" + (this.userName || this.index) + "][ERROR] 领取会员日任务奖励失败: " + B);
B.includes("没有资格参与活动") && (this.memberDay_black = !0, $.log("[" + (this.userName || this.index) + "][ERROR] 会员日任务风控"));
}
} catch (C) {
this.ckStatus = !1;
$.log("[" + (this.userName || this.index) + "][ERROR] " + C + "\n");
}
}
async memberDay_finishTask(y) {
try {
var z = {
taskCode: y.taskCode
};
const A = {
url: "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberEs~taskRecord~finishTask",
type: "post",
headers: {
...this.getSign()
},
dataType: "json",
body: z
};
let B = await this.fetch(A);
if (B?.["success"]) {
$.log("[" + (this.userName || this.index) + "][INFO] 完成会员日任务[" + y.taskName + "]成功");
await this.memberDay_fetchMixTaskReward(y);
} else {
let C = B?.["errorMessage"] || (B ? JSON.stringify(B) : "无返回");
$.log("[" + (this.userName || this.index) + "][ERROR] 完成会员日任务[" + y.taskName + "]失败: " + C);
C.includes("没有资格参与活动") && (this.memberDay_black = !0, $.log("[" + (this.userName || this.index) + "][ERROR] 会员日任务风控"));
}
} catch (D) {
this.ckStatus = !1;
$.log("[" + (this.userName || this.index) + "][ERROR] " + D + "\n");
}
}
async memberDay_redPacketStatus() {
try {
const y = {
url: "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~memberDayPacketService~redPacketStatus",
type: "post",
headers: {
...this.getSign()
},
dataType: "json",
body: {}
};
let z = await this.fetch(y);
if (z?.["success"]) {
let {
drewToday: A,
packetList: B
} = z?.["obj"];
this.memberDay_redPacket_drewToday = A;
for (let F of B) this.memberDay_redPacket_map[F.level] = F.count;
let C = 8;
for (let G = 1; G < C; G++) {
let H = this.memberDay_redPacket_map[G] || 0;
for (; H >= 2;) {
await this.memberDay_redPacketMerge(G);
H -= 2;
}
}
let D = [],
E = 0;
for (let I in this.memberDay_redPacket_map) {
if (!this.memberDay_redPacket_map[I]) {
continue;
}
D.push("[" + I + "级]X" + this.memberDay_redPacket_map[I]);
let J = parseInt(I);
J < C && (E += 1 << J - 1);
}
if ($.log("[" + (this.userName || this.index) + "][INFO] 会员日合成列表: " + D.join(", ")), this.memberDay_redPacket_map[C]) {
$.log("[" + (this.userName || this.index) + "][INFO] 会员日已拥有[" + C + "级]红包X" + this.memberDay_redPacket_map[C]);
await this.memberDay_redPacketDraw(C);
} else {
let K = C - E;
$.log("[" + (this.userName || this.index) + "][INFO] 会员日距离[" + C + "级]红包还差: [1级]红包X" + K);
}
} else {
let L = z?.["errorMessage"] || (z ? JSON.stringify(z) : "无返回");
$.log("[" + (this.userName || this.index) + "][ERROR] 查询会员日合成失败" + L);
L.includes("没有资格参与活动") && (this.memberDay_black = !0, $.log("[" + (this.userName || this.index) + "][ERROR] 会员日任务风控"));
}
} catch (M) {
this.ckStatus = !1;
$.log("[" + (this.userName || this.index) + "][ERROR] " + M + "\n");
}
}
async memberDay_redPacketMerge(y) {
try {
var z = {
level: y,
num: 2
};
const A = {
url: "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~memberDayPacketService~redPacketMerge",
type: "post",
headers: {
...this.getSign()
},
dataType: "json",
body: z
};
let B = await this.fetch(A);
if (B?.["success"]) {
$.log("[" + (this.userName || this.index) + "][INFO] 会员日合成: [" + y + "级]红包X2 -> [" + (y + 1) + "级]红包");
this.memberDay_redPacket_map[y] -= 2;
this.memberDay_redPacket_map[y + 1] || (this.memberDay_redPacket_map[y + 1] = 0);
this.memberDay_redPacket_map[y + 1]++;
} else {
let C = B?.["errorMessage"] || (B ? JSON.stringify(B) : "无返回");
$.log("[" + (this.userName || this.index) + "][ERROR] 会员日合成两个[" + y + "级]红包失败: " + C);
C.includes("没有资格参与活动") && (this.memberDay_black = !0, $.log("[" + (this.userName || this.index) + "][ERROR] 会员日任务风控"));
}
} catch (D) {
this.ckStatus = !1;
$.log("[" + (this.userName || this.index) + "][ERROR] " + D + "\n");
}
}
async memberDay_redPacketDraw(y) {
try {
const z = {
url: "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~memberDayPacketService~redPacketDraw",
type: "post",
headers: {
...this.getSign()
},
dataType: "json",
body: {
level: y.toString()
}
};
let A = await this.fetch(z);
if (A?.["success"]) {
let B = A?.["obj"]?.["map"](C => C.couponName) || [];
$.log("[" + (this.userName || this.index) + "][INFO] 会员日提取[" + y + "级]红包: " + (B.join(", ") || "空气"));
} else {
let C = A?.["errorMessage"] || (A ? JSON.stringify(A) : "无返回");
$.log("[" + (this.userName || this.index) + "][ERROR] 会员日提取[" + y + "级]红包失败: " + C);
C.includes("没有资格参与活动") && (this.memberDay_black = !0, $.log("[" + (this.userName || this.index) + "][ERROR] 会员日任务风控"));
}
} catch (D) {
this.ckStatus = !1;
$.log("[" + (this.userName || this.index) + "][ERROR] " + D + "\n");
}
}
async bee_indexData() {
try {
let z = q(this.userIdList.filter(E => E !== this.userId));
var y = {
inviteUserId: z
};
const A = {
url: "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~receiveExchangeIndexService~indexData",
type: "post",
headers: {
...this.getSign()
},
dataType: "json",
body: y
};
let B = await this.fetch(A);
if (!B?.["success"]) {
return void $.log("[" + (this.userName || this.index) + "][ERROR] 进入采蜜游戏主页失败: " + (B?.["errorMessage"] || (B ? JSON.stringify(B) : "无返回")));
}
{
let {
friendAwards: E = [],
gameNum: F = 0,
usableHoney: G = 0,
capacity: H = 0
} = B?.["obj"];
for ($.beeHoney = G, E.length > 0 && $.log("[" + (this.userName || this.index) + "][INFO] 获得奖励: " + E.map(I => I.name).join(", ")), $.log("[" + (this.userName || this.index) + "][INFO] 可以进行采蜜冒险 " + F + " 次"); F-- > 0;) {
await this.bee_gameReport();
}
await this.bee_taskDetail();
}
let C = await this.fetch(A);
if (!C?.["success"]) {
return void $.log("[" + (this.userName || this.index) + "][ERROR] 获取采蜜任务详情失败: " + (C?.["errorMessage"] || (C ? JSON.stringify(C) : "无返回")));
}
for (let I of C?.["obj"]?.["taskDetail"] || []) await this.bee_receiveHoney(I);
let D = await this.fetch(A);
if (!D?.["success"]) {
return void $.log("[" + (this.userName || this.index) + "][ERROR] 获取采蜜游戏丰蜜失败: " + (D?.["errorMessage"] || (D ? JSON.stringify(D) : "无返回")));
}
$.log("[" + (this.userName || this.index) + "][INFO] 采蜜游戏丰蜜: " + (D?.["obj"]?.["usableHoney"] || 0));
$.beeHoney = D?.["obj"]["usableHoney"] - $.beeHoney;
} catch (J) {
this.ckStatus = !1;
$.log("[" + (this.userName || this.index) + "][ERROR] " + J + "\n");
}
}
async bee_taskDetail() {
try {
const y = {
url: "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~receiveExchangeIndexService~taskDetail",
type: "post",
headers: {
...this.getSign()
},
dataType: "json",
body: {}
};
let z = await this.fetch(y);
if (z?.["success"]) {
for (let A of z.obj.list) if (A.taskCode) {
switch (A.status) {
case 2:
if ($.unTaskList.includes(A.taskType)) {
break;
}
await this.bee_finishTask(A);
case 1:
case 3:
break;
default:
$.log("[" + (this.userName || this.index) + "][ERROR] 任务[" + A.title + "] -- 未知状态[" + A.status + "]");
}
}
} else {
$.log("[" + (this.userName || this.index) + "][ERROR] 查询任务失败: " + (z?.["errorMessage"] || (z ? JSON.stringify(z) : "无返回")));
}
} catch (B) {
this.ckStatus = !1;
$.log("[" + (this.userName || this.index) + "][ERROR] " + B + "\n");
}
}
async bee_expand() {
try {
const y = {
url: "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~receiveExchangeApiService~expand",
type: "post",
headers: {
...this.getSign()
},
dataType: "json",
body: {}
};
let z = await this.fetch(y);
if (!z?.["success"]) {
throw new Error("采蜜扩容失败: " + (z?.["errorMessage"] || z));
}
$.log("[" + (this.userName || this.index) + "][INFO] 采蜜扩容成功");
} catch (A) {
this.ckStatus = !1;
$.log("[" + (this.userName || this.index) + "][ERROR] " + A + "\n");
}
}
async bee_finishTask(y) {
try {
var z = {
taskCode: y.taskCode
};
const A = {
url: "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberEs~taskRecord~finishTask",
type: "post",
headers: {
...this.getSign()
},
dataType: "json",
body: z
};
let B = await this.fetch(A);
if (!B?.["success"]) {
throw new Error("完成采蜜任务失败: " + (B?.["errorMessage"] || B));
}
$.log("[" + (this.userName || this.index) + "][INFO] 完成采蜜任务[" + y.taskType + "]成功");
} catch (C) {
this.ckStatus = !1;
$.log("[" + (this.userName || this.index) + "][ERROR] " + C + "\n");
}
}
async bee_receiveHoney(y) {
try {
var z = {
taskType: y.type
};
const A = {
url: "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~receiveExchangeIndexService~receiveHoney",
type: "post",
headers: {
...this.getSign()
},
dataType: "json",
body: z
};
let B = await this.fetch(A);
if (!B?.["success"]) {
throw new Error("领取[" + y.type + "]奖励失败: " + ("" + (B?.["errorMessage"] || B)));
}
$.log("[" + (this.userName || this.index) + "][INFO] 领取[" + y.type + "]奖励获得: " + y.value + "丰蜜");
} catch (C) {
this.ckStatus = !1;
$.log("[" + (this.userName || this.index) + "][ERROR] " + C + "\n");
}
}
async bee_gameReport() {
try {
let z = 20;
var y = {
gatherHoney: z
};
const A = {
url: "https://mcs-mimp-web.sf-express.com/mcs-mimp/commonPost/~memberNonactivity~receiveExchangeGameService~gameReport",
type: "post",
headers: {
...this.getSign()
},
dataType: "json",
body: y
};
let B = await this.fetch(A);
if (!B?.["success"]) {
throw new Error("采蜜冒险失败: " + (B?.["errorMessage"] || B));
}
$.log("[" + (this.userName || this.index) + "][INFO] 采蜜冒险获得" + z + "丰蜜");
} catch (C) {
this.ckStatus = !1;
$.log("[" + (this.userName || this.index) + "][ERROR] " + C + "\n");
}
}
async coupon_list(y = 1, z = 100) {
try {
var A = {
couponType: "",
pageNo: y,
pageSize: z
};
const B = {
url: "https://mcs-mimp-web.sf-express.com/mcs-mimp/coupon/available/list",
type: "post",
headers: {
...this.getSign()
},
dataType: "json",
body: A
};
let C = await this.fetch(B);
if (!C.success) {
throw new Error("查询账号券失败: " + (C.errorMessage || JSON.stringify(C) || "无返回"));
}
let D = C?.["obj"] || [],
E = D.filter(F => "1" === F.couponType && F.pledgeAmt >= 8);
E.length > 0 && ($.log("[" + (this.userName || this.index) + "][INFO] 大额优惠券:"), $.log(E.map(F => "[" + (this.userName || this.index) + "][INFO] " + F.couponName + ", 过期时间: " + F.invalidTm).join("\n")));
} catch (F) {
this.ckStatus = !1;
$.log("[" + (this.userName || this.index) + "][ERROR] " + F + "\n");
}
}
}
async function l() {
try {
if ($request && "OPTIONS" === $request.method) {
return;
}
const z = w($response.headers) ?? {};
if (!z) {
throw new Error("错误的运行方式请切换到cron环境");
}
let A = p(z.location);
$.log($.toStr(A));
$.log($.toStr(z));
var y = {
userId: A.userId,
token: $request.url,
userName: A?.["mobile"]
};
const C = h.findIndex(D => D.userId == y.userId);
h[C] ? h[C] = y : h.push(y);
$.setjson(h, g);
$.msg($.name, "🎉账号[" + y.userName + "]更新token成功!", "");
} catch (D) {
throw D;
}
}
function m(y, z = "abcdef0123456789") {
return y.split("").map(A => "x" === A ? z.charAt(Math.floor(Math.random() * z.length)) : "X" === A ? z.charAt(Math.floor(Math.random() * z.length)).toUpperCase() : A).join("");
}
function n(y) {
if (11 == y.length) {
let z = y.replace(/(\d{3})\d{4}(\d{4})/, "$1****$2");
return z;
}
return y;
}
async function o() {
let z = ($.isNode() ? d(396) : $.getdata("CryptoJS_code")) || "";
return $.isNode() ? z : z && Object.keys(z).length ? (eval(z), createCryptoJS()) : new Promise(async A => {
$.getScript("https://cdn.jsdelivr.net/gh/Sliverkiss/QuantumultX@main/Utils/CryptoJS.min.js").then(B => {
$.setdata(B, "CryptoJS_code");
eval(B);
const C = createCryptoJS();
A(C);
});
});
}
function p(y) {
const [, z] = y.split("?");
return z ? z.split("&").reduce((A, B) => {
const [C, D] = B.split("=");
A[C] = D;
return A;
}, {}) : {};
}
function q(y) {
if (!y.length) {
return null;
}
let z = Math.floor(Math.random() * y.length);
return y[z];
}
function r(y) {
return Object.assign({}, y);
}
async function s(y, z) {
y && ($.isNode() ? await notify.sendNotify($.name, y) : $.msg($.name, $.title || "", y, z));
}
function t(y) {
y && ($.log("" + y), $.notifyMsg.push("" + y));
}
async function u() {
try {
if (!h?.["length"]) {
throw new Error("no available accounts found");
}
$.log("\n[INFO] 检测到 " + (h?.["length"] ?? 0) + " 个账号\n");
$.userList.push(...h.map(y => new k(y)).filter(Boolean));
} catch (y) {
throw y;
}
}
function v(y, z = "debug") {
"true" === $.is_debug && ($.log("\n-----------" + z + "------------\n"), $.log("string" == typeof y ? y : $.toStr(y) || "debug error => t=" + y), $.log("\n-----------" + z + "------------\n"));
}
function w(y) {
return y ? Object.fromEntries(Object.entries(y).map(([z, A]) => [z.toLowerCase(), A])) : {};
}
async function x(y) {
"string" == typeof y && (y = {
url: y
});
try {
if (!y?.["url"]) {
throw new Error("[URL][ERROR] 缺少 url 参数");
}
let {
url: z,
type: A,
headers: B = {},
body: C,
params: D,
dataType: E = "form",
resultType: F = "data"
} = y;
const G = A ? A?.["toLowerCase"]() : "body" in y ? "post" : "get",
H = z.concat("post" === G ? "?" + $.queryStr(D) : ""),
I = y.timeout ? $.isSurge() ? y.timeout / 1000 : y.timeout : 10000;
"json" === E && (B["Content-Type"] = "application/json;charset=UTF-8");
const J = "string" == typeof C ? C : C && "form" == E ? $.queryStr(C) : $.toStr(C),
K = {
...y,
...(y?.["opts"] ? y.opts : {}),
url: H,
headers: B,
...("post" === G && {
body: J
}),
...("get" === G && D && {
params: D
}),
timeout: I
},
L = $.http[G.toLowerCase()](K).then(M => "data" == F ? $.toObj(M.body) || M.body : $.toObj(M) || M).catch(M => $.log("[" + G.toUpperCase() + "][ERROR] " + M + "\n"));
return Promise.race([new Promise((M, N) => setTimeout(() => N("当前请求已超时"), I)), L]);
} catch (M) {}
}
(async () => {
try {
"undefined" != typeof $request ? await l() : ($.CryptoJS = await o(), await u(), await i());
} catch (y) {
throw y;
}
})().catch(y => {
$.logErr(y);
$.msg($.name, "⛔️ script run error!", y.message || y);
}).finally(async () => {
var y = {
ok: 1
};
$.done(y);
});
})();
})();