@jieyin/editor-sdk 1.1.130 → 1.1.134
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/editor-sdk.es.js +3189 -3184
- package/dist/renderWorker.js +868 -869
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/renderWorker.js
CHANGED
|
@@ -2,8 +2,8 @@ var E0 = /* @__PURE__ */ ((r) => (r[r.Group = 0] = "Group", r[r.Layer = 1] = "La
|
|
|
2
2
|
function Ne(r) {
|
|
3
3
|
let d = r;
|
|
4
4
|
return () => {
|
|
5
|
-
const
|
|
6
|
-
return d += 1,
|
|
5
|
+
const t = d;
|
|
6
|
+
return d += 1, t;
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
9
|
function Ue(r, d) {
|
|
@@ -29,11 +29,11 @@ function Ue(r, d) {
|
|
|
29
29
|
clipping: r.clipping
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
function je(r, d,
|
|
33
|
-
let u = r.name || "", v = d[u], g = v?.partId ?? (r.type === "Group" ?
|
|
32
|
+
function je(r, d, t, e) {
|
|
33
|
+
let u = r.name || "", v = d[u], g = v?.partId ?? (r.type === "Group" ? t.get(u) : void 0);
|
|
34
34
|
if (r.type === "Group" && g === void 0 && (!v || v.id === void 0) && r.children && r.children.length === 1) {
|
|
35
|
-
const
|
|
36
|
-
(A !== void 0 ||
|
|
35
|
+
const x = r.children[0].name, a = d[x], A = a?.partId ?? t.get(x);
|
|
36
|
+
(A !== void 0 || a?.id !== void 0) && (u = x, v = a, g = A);
|
|
37
37
|
}
|
|
38
38
|
const p = r.id ?? v?.id ?? e();
|
|
39
39
|
if (r.type === "Group")
|
|
@@ -45,7 +45,7 @@ function je(r, d, x, e) {
|
|
|
45
45
|
bounds: r.bounds || { left: 0, top: 0, width: 0, height: 0 },
|
|
46
46
|
type: E0.Group,
|
|
47
47
|
smartObjects: (r.children ?? []).map(
|
|
48
|
-
(
|
|
48
|
+
(x) => Ue(x, r.vectorMask)
|
|
49
49
|
),
|
|
50
50
|
opacity: r.opacity,
|
|
51
51
|
clipping: r.clipping,
|
|
@@ -65,14 +65,14 @@ function je(r, d, x, e) {
|
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
67
|
function Ke(r, d) {
|
|
68
|
-
const
|
|
68
|
+
const t = new Map(d.parts.map((u) => [u.name, u.id])), e = Ne(d.defaultIdStart ?? 1);
|
|
69
69
|
return {
|
|
70
70
|
parts: d.parts,
|
|
71
71
|
models: r.map((u) => {
|
|
72
|
-
const v = u.layerExtrasByName ?? {}, g = u.psdJson, p = g.layerList || g.layerList || [], C = g.canvasWidth,
|
|
73
|
-
if (!C || !
|
|
74
|
-
throw new Error(`无法获取 PSD 画布尺寸: canvasWidth=${C}, canvasHeight=${
|
|
75
|
-
const
|
|
72
|
+
const v = u.layerExtrasByName ?? {}, g = u.psdJson, p = g.layerList || g.layerList || [], C = g.canvasWidth, x = g.canvasHeight;
|
|
73
|
+
if (!C || !x)
|
|
74
|
+
throw new Error(`无法获取 PSD 画布尺寸: canvasWidth=${C}, canvasHeight=${x}。请确保 jsonurl 中的 canvasWidth 和 canvasHeight 存在`);
|
|
75
|
+
const a = (l) => {
|
|
76
76
|
const c = [];
|
|
77
77
|
for (const h of l)
|
|
78
78
|
if (h.type === "Group" && h.children) {
|
|
@@ -83,7 +83,7 @@ function Ke(r, d) {
|
|
|
83
83
|
for (const i of o)
|
|
84
84
|
i.isSmartObject === !0 ? f.push(i) : E.push(i);
|
|
85
85
|
if (E.length > 0) {
|
|
86
|
-
const i =
|
|
86
|
+
const i = a(E);
|
|
87
87
|
c.push(...i);
|
|
88
88
|
}
|
|
89
89
|
f.length > 0 && c.push({
|
|
@@ -93,28 +93,28 @@ function Ke(r, d) {
|
|
|
93
93
|
} else
|
|
94
94
|
c.push(h);
|
|
95
95
|
return c;
|
|
96
|
-
},
|
|
97
|
-
(l) => je(l, v,
|
|
96
|
+
}, n = a(p).map(
|
|
97
|
+
(l) => je(l, v, t, e)
|
|
98
98
|
);
|
|
99
99
|
return {
|
|
100
100
|
width: C,
|
|
101
|
-
height:
|
|
102
|
-
psdPartData:
|
|
101
|
+
height: x,
|
|
102
|
+
psdPartData: n
|
|
103
103
|
};
|
|
104
104
|
})
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function Xe(r) {
|
|
108
108
|
return r ? r.vectorMask && r.vectorMask.paths && Array.isArray(r.vectorMask.paths) ? { type: "bezier", paths: r.vectorMask.paths } : Array.isArray(r.vectorMask) ? { type: "simple", points: r.vectorMask } : null : null;
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function Ge(r) {
|
|
111
111
|
return r ? r.type === "bezier" ? {
|
|
112
112
|
type: "bezier",
|
|
113
113
|
paths: r.paths.map((d) => ({
|
|
114
114
|
open: !!d.open,
|
|
115
|
-
knots: d.knots.map((
|
|
116
|
-
linked: !!
|
|
117
|
-
points: Array.isArray(
|
|
115
|
+
knots: d.knots.map((t) => ({
|
|
116
|
+
linked: !!t.linked,
|
|
117
|
+
points: Array.isArray(t.points) ? [...t.points] : []
|
|
118
118
|
}))
|
|
119
119
|
}))
|
|
120
120
|
} : r.type === "simple" ? {
|
|
@@ -129,28 +129,28 @@ function Xe(r) {
|
|
|
129
129
|
function ur(r, d) {
|
|
130
130
|
if (d) {
|
|
131
131
|
if (r.globalCompositeOperation = "destination-in", r.beginPath(), d.type === "bezier" && Array.isArray(d.paths))
|
|
132
|
-
d.paths.forEach((
|
|
133
|
-
const e =
|
|
132
|
+
d.paths.forEach((t) => {
|
|
133
|
+
const e = t.knots;
|
|
134
134
|
if (!e || e.length < 2) return;
|
|
135
135
|
const u = e[0];
|
|
136
136
|
r.moveTo(u.points[2], u.points[3]);
|
|
137
137
|
for (let v = 0; v < e.length; v++) {
|
|
138
138
|
const g = e[v];
|
|
139
139
|
let p = (v + 1) % e.length;
|
|
140
|
-
if (!
|
|
140
|
+
if (!t.open && v === e.length - 1)
|
|
141
141
|
p = 0;
|
|
142
|
-
else if (
|
|
142
|
+
else if (t.open && v === e.length - 1)
|
|
143
143
|
break;
|
|
144
|
-
const C = e[p],
|
|
145
|
-
r.bezierCurveTo(
|
|
144
|
+
const C = e[p], x = g.points[4], a = g.points[5], A = C.points[0], n = C.points[1], l = C.points[2], c = C.points[3];
|
|
145
|
+
r.bezierCurveTo(x, a, A, n, l, c);
|
|
146
146
|
}
|
|
147
|
-
|
|
147
|
+
t.open || r.closePath();
|
|
148
148
|
});
|
|
149
149
|
else if (d.type === "simple" && Array.isArray(d.points)) {
|
|
150
|
-
const
|
|
151
|
-
if (
|
|
152
|
-
r.moveTo(
|
|
153
|
-
for (let e = 1; e <
|
|
150
|
+
const t = d.points;
|
|
151
|
+
if (t.length < 3) return;
|
|
152
|
+
r.moveTo(t[0].x, t[0].y);
|
|
153
|
+
for (let e = 1; e < t.length; e++) r.lineTo(t[e].x, t[e].y);
|
|
154
154
|
r.closePath();
|
|
155
155
|
}
|
|
156
156
|
r.fillStyle = "#000", r.fill(), r.globalCompositeOperation = "source-over";
|
|
@@ -172,10 +172,10 @@ class f0 {
|
|
|
172
172
|
/**
|
|
173
173
|
* 设置存储项
|
|
174
174
|
*/
|
|
175
|
-
static setItem(d,
|
|
175
|
+
static setItem(d, t) {
|
|
176
176
|
if (!this.hasStorage) return !1;
|
|
177
177
|
try {
|
|
178
|
-
return localStorage.setItem(d,
|
|
178
|
+
return localStorage.setItem(d, t), !0;
|
|
179
179
|
} catch {
|
|
180
180
|
return !1;
|
|
181
181
|
}
|
|
@@ -253,8 +253,8 @@ class c0 {
|
|
|
253
253
|
*/
|
|
254
254
|
static parse(d) {
|
|
255
255
|
try {
|
|
256
|
-
const
|
|
257
|
-
return new URL(d,
|
|
256
|
+
const t = ir.getOrigin();
|
|
257
|
+
return new URL(d, t);
|
|
258
258
|
} catch {
|
|
259
259
|
return null;
|
|
260
260
|
}
|
|
@@ -262,29 +262,29 @@ class c0 {
|
|
|
262
262
|
/**
|
|
263
263
|
* 添加查询参数
|
|
264
264
|
*/
|
|
265
|
-
static addParam(d,
|
|
265
|
+
static addParam(d, t, e) {
|
|
266
266
|
const u = this.parse(d);
|
|
267
|
-
return !u || u.searchParams.has(
|
|
267
|
+
return !u || u.searchParams.has(t) ? d : (u.searchParams.set(t, e), this.formatUrl(d, u));
|
|
268
268
|
}
|
|
269
269
|
/**
|
|
270
270
|
* 移除查询参数
|
|
271
271
|
*/
|
|
272
|
-
static removeParam(d,
|
|
272
|
+
static removeParam(d, t) {
|
|
273
273
|
const e = this.parse(d);
|
|
274
|
-
return !e || !e.searchParams.has(
|
|
274
|
+
return !e || !e.searchParams.has(t) ? d : (e.searchParams.delete(t), this.formatUrl(d, e));
|
|
275
275
|
}
|
|
276
276
|
/**
|
|
277
277
|
* 检查是否有指定参数
|
|
278
278
|
*/
|
|
279
|
-
static hasParam(d,
|
|
280
|
-
return this.parse(d)?.searchParams.has(
|
|
279
|
+
static hasParam(d, t) {
|
|
280
|
+
return this.parse(d)?.searchParams.has(t) ?? !1;
|
|
281
281
|
}
|
|
282
282
|
/**
|
|
283
283
|
* 格式化 URL(保持原始格式)
|
|
284
284
|
*/
|
|
285
|
-
static formatUrl(d,
|
|
285
|
+
static formatUrl(d, t) {
|
|
286
286
|
const e = /^(https?:)?\/\//i.test(d), u = d.startsWith("//");
|
|
287
|
-
return e ?
|
|
287
|
+
return e ? t.toString() : u ? t.toString().replace(/^https?:/, "") : `${t.pathname}${t.search}${t.hash}`;
|
|
288
288
|
}
|
|
289
289
|
/**
|
|
290
290
|
* 检查是否为数据 URL
|
|
@@ -299,117 +299,116 @@ class c0 {
|
|
|
299
299
|
return d?.startsWith("blob:") ?? !1;
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
|
-
|
|
302
|
+
function vr(r, d) {
|
|
303
|
+
return r = r - (-495 * -15 + -467 * -5 + -9590), or()[r];
|
|
304
|
+
}
|
|
305
|
+
const J = vr;
|
|
303
306
|
(function(r, d) {
|
|
304
|
-
const
|
|
307
|
+
const t = vr, e = r();
|
|
305
308
|
for (; ; )
|
|
306
309
|
try {
|
|
307
|
-
if (parseInt(
|
|
310
|
+
if (parseInt(t(195)) / 1 + parseInt(t(187)) / 2 + parseInt(t(180)) / 3 + parseInt(t(212)) / 4 + -parseInt(t(191)) / 5 * (parseInt(t(182)) / 6) + parseInt(t(207)) / 7 + parseInt(t(205)) / 8 * (-parseInt(t(179)) / 9) === d) break;
|
|
308
311
|
e.push(e.shift());
|
|
309
312
|
} catch {
|
|
310
313
|
e.push(e.shift());
|
|
311
314
|
}
|
|
312
|
-
})(or, -
|
|
315
|
+
})(or, -57623 * -1 + -90643 + 142201);
|
|
313
316
|
const B0 = /* @__PURE__ */ (function() {
|
|
314
317
|
let r = !0;
|
|
315
|
-
return function(d,
|
|
318
|
+
return function(d, t) {
|
|
316
319
|
const e = r ? function() {
|
|
317
|
-
if (
|
|
318
|
-
const u =
|
|
319
|
-
return
|
|
320
|
+
if (t) {
|
|
321
|
+
const u = t.apply(d, arguments);
|
|
322
|
+
return t = null, u;
|
|
320
323
|
}
|
|
321
324
|
} : function() {
|
|
322
325
|
};
|
|
323
326
|
return r = !1, e;
|
|
324
327
|
};
|
|
325
328
|
})(), Ye = B0(void 0, function() {
|
|
326
|
-
const r =
|
|
329
|
+
const r = vr;
|
|
327
330
|
let d;
|
|
328
331
|
try {
|
|
329
|
-
d = Function(
|
|
332
|
+
d = Function(r(208) + "n (functio" + r(204) + ("{}.co" + r(211) + 'ctor("return this")( )') + ");")();
|
|
330
333
|
} catch {
|
|
331
334
|
d = window;
|
|
332
335
|
}
|
|
333
|
-
const
|
|
334
|
-
for (let u =
|
|
335
|
-
const v = B0[
|
|
336
|
-
v[r(
|
|
336
|
+
const t = d.console = d.console || {}, e = [r(197), r(190), "info", r(184), "excep" + r(173), "table", r(209)];
|
|
337
|
+
for (let u = 0; u < e.length; u++) {
|
|
338
|
+
const v = B0["const" + r(193) + "r"].prototype.bind(B0), g = e[u], p = t[g] || v;
|
|
339
|
+
v["__pro" + r(194)] = B0[r(185)](B0), v["toStr" + r(170)] = p.toString.bind(p), t[g] = v;
|
|
337
340
|
}
|
|
338
341
|
});
|
|
339
342
|
Ye();
|
|
340
|
-
const
|
|
341
|
-
function
|
|
342
|
-
return f0.getItem(
|
|
343
|
+
const pr = "file_" + J(181), Br = "file_" + J(181) + "_expi" + J(200) + "me", Ze = (-672 * 14 + -7502 + -1697 * -10) * 1e3;
|
|
344
|
+
function dr() {
|
|
345
|
+
return f0.getItem(pr);
|
|
346
|
+
}
|
|
347
|
+
function or() {
|
|
348
|
+
const r = ["okenR", "aUrl", "re_ti", "data", "isBro", "oken", "n() ", "209176xLPJgs", "statu", "227416ErpGOB", "retur", "trace", "/file", "nstru", "636152UyofIn", "ing", "wser", "ram", "tion", "FileT", "es_in", "setIt", "code", "remov", "153LHXkIq", "105756UeTFuy", "token", "48XAxFht", "eItem", "error", "bind", "file_", "383956KFDPro", "numbe", "efres", "warn", "51565lRHdMu", "isDat", "ructo", "to__", "217428GpmPnw", "now", "log"];
|
|
349
|
+
return or = function() {
|
|
350
|
+
return r;
|
|
351
|
+
}, or();
|
|
343
352
|
}
|
|
344
353
|
function Qe(r = Ze) {
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
return Date.now() + r > u;
|
|
354
|
+
if (!dr()) return !0;
|
|
355
|
+
const t = f0.getItem(Br);
|
|
356
|
+
if (!t) return !1;
|
|
357
|
+
const e = Number(t);
|
|
358
|
+
return Date.now() + r > e;
|
|
351
359
|
}
|
|
352
360
|
function Ve(r, d) {
|
|
353
|
-
const
|
|
354
|
-
if (f0.setItem(
|
|
355
|
-
const e = Date
|
|
356
|
-
f0[
|
|
361
|
+
const t = J;
|
|
362
|
+
if (f0.setItem(pr, r), typeof d == t(188) + "r" && d > 0) {
|
|
363
|
+
const e = Date[t(196)]() + d * 1e3;
|
|
364
|
+
f0[t(176) + "em"](Br, String(e));
|
|
357
365
|
}
|
|
358
366
|
}
|
|
359
367
|
function Je() {
|
|
360
|
-
const r =
|
|
361
|
-
f0
|
|
362
|
-
}
|
|
363
|
-
function Br(r, d) {
|
|
364
|
-
return r = r - (724 * 4 + -9 * -1077 + -12487 * 1), or()[r];
|
|
368
|
+
const r = J;
|
|
369
|
+
f0[r(178) + "eItem"](pr), f0["remov" + r(183)](Br);
|
|
365
370
|
}
|
|
366
371
|
async function Pr(r) {
|
|
367
|
-
const d =
|
|
368
|
-
return
|
|
372
|
+
const d = J, t = await r(), e = t?.[d(201)]?.[d(201)];
|
|
373
|
+
return t?.[d(201)]?.[d(177)] === 200 && e?.[d(186) + d(181)] ? (Ve(e[d(186) + "token"], e["expir" + d(175)]), e[d(186) + "token"]) : null;
|
|
369
374
|
}
|
|
370
375
|
let rt = null;
|
|
371
376
|
function Rr() {
|
|
372
|
-
return ir
|
|
377
|
+
return ir.isBrowser() ? rt : null;
|
|
373
378
|
}
|
|
374
379
|
async function Ee() {
|
|
375
|
-
const r =
|
|
376
|
-
if (!ir
|
|
377
|
-
const d =
|
|
380
|
+
const r = J;
|
|
381
|
+
if (!ir[r(202) + "wser"]()) return dr();
|
|
382
|
+
const d = dr();
|
|
378
383
|
if (d && !Qe()) return d;
|
|
379
384
|
try {
|
|
380
|
-
const
|
|
381
|
-
if (d &&
|
|
382
|
-
const e = await Pr(
|
|
385
|
+
const t = await Rr();
|
|
386
|
+
if (d && t?.["fetchFileT" + r(198) + r(189) + "h"]) {
|
|
387
|
+
const e = await Pr(t["fetch" + r(174) + r(198) + "efresh"]);
|
|
383
388
|
if (e) return e;
|
|
384
389
|
}
|
|
385
390
|
} catch {
|
|
386
391
|
}
|
|
387
392
|
try {
|
|
388
|
-
const
|
|
389
|
-
return
|
|
393
|
+
const t = Rr();
|
|
394
|
+
return t?.["fetchFileToken"] ? await Pr(t.fetchFileToken) : null;
|
|
390
395
|
} catch {
|
|
391
396
|
return null;
|
|
392
397
|
}
|
|
393
398
|
}
|
|
394
399
|
function Ae(r) {
|
|
395
|
-
const d =
|
|
396
|
-
if (!r || c0
|
|
397
|
-
const
|
|
398
|
-
return
|
|
400
|
+
const d = J;
|
|
401
|
+
if (!r || c0[d(192) + d(199)](r) || c0.isBlobUrl(r)) return !1;
|
|
402
|
+
const t = c0.parse(r);
|
|
403
|
+
return t ? t.pathname.includes("/files/") && !c0.hasParam(r, "fileToken") : r.includes(d(210) + "s/") && !r.includes("fileToken=");
|
|
399
404
|
}
|
|
400
405
|
function Fe(r, d) {
|
|
401
|
-
const
|
|
402
|
-
return !d || !Ae(r) ? r : c0[
|
|
403
|
-
}
|
|
404
|
-
function or() {
|
|
405
|
-
const r = ["fileT", "11230zxfSJb", "680GjGuHt", "pathn", "rn th", "1900134DvMUZE", "1972779ASyusM", "re_ti", "remov", "__pro", "20568jKYPWg", "ram", "FileT", "inclu", "addPa", "table", "getIt", "token", "bind", "ame", "24012IGCwJz", "type", "setIt", "wser", "/file", "3620240cLDIdi", "oken", "17989hfBBUb", "parse", "data", "statu", "ructo", "code", "4658724cPKGRJ", "file_", "const", "lengt", "ing", "{}.co", "des", "54RHXgRp", "oken="];
|
|
406
|
-
return or = function() {
|
|
407
|
-
return r;
|
|
408
|
-
}, or();
|
|
406
|
+
const t = J;
|
|
407
|
+
return !d || !Ae(r) ? r : c0["addPa" + t(172)](r, "fileToken", d);
|
|
409
408
|
}
|
|
410
409
|
function et(r) {
|
|
411
|
-
const d =
|
|
412
|
-
return c0.removeParam(r,
|
|
410
|
+
const d = J;
|
|
411
|
+
return c0.removeParam(r, "fileT" + d(203));
|
|
413
412
|
}
|
|
414
413
|
async function tt(r) {
|
|
415
414
|
if (!Ae(r)) return r;
|
|
@@ -417,33 +416,33 @@ async function tt(r) {
|
|
|
417
416
|
return Fe(r, d);
|
|
418
417
|
}
|
|
419
418
|
async function De(r, d) {
|
|
420
|
-
const
|
|
421
|
-
if (!ir
|
|
419
|
+
const t = J;
|
|
420
|
+
if (!ir["isBro" + t(171)]()) return fetch(r, d);
|
|
422
421
|
const e = et(r), u = await tt(e), v = await fetch(u, d);
|
|
423
|
-
if (v[
|
|
422
|
+
if (v[t(206) + "s"] !== -3426 * 1 + -889 * -9 + 2 * -2087) return v;
|
|
424
423
|
Je();
|
|
425
424
|
const g = await Ee(), p = Fe(e, g);
|
|
426
425
|
return fetch(p, d);
|
|
427
426
|
}
|
|
428
427
|
const ge = (r, d) => {
|
|
429
428
|
if (!r) return r;
|
|
430
|
-
const
|
|
431
|
-
if (
|
|
429
|
+
const t = (d || "").replace(/\/$/, "");
|
|
430
|
+
if (t && r.startsWith(t))
|
|
432
431
|
return r;
|
|
433
432
|
if (typeof window < "u") {
|
|
434
433
|
const u = window.location.hostname;
|
|
435
434
|
if (u === "localhost" || u === "127.0.0.1")
|
|
436
435
|
try {
|
|
437
436
|
const v = new URL(r);
|
|
438
|
-
if (
|
|
437
|
+
if (t)
|
|
439
438
|
try {
|
|
440
|
-
const g = new URL(
|
|
439
|
+
const g = new URL(t).origin;
|
|
441
440
|
if (v.origin === g)
|
|
442
441
|
return r;
|
|
443
442
|
} catch {
|
|
444
443
|
}
|
|
445
444
|
if (v.pathname.startsWith("/files/"))
|
|
446
|
-
return
|
|
445
|
+
return t ? `${t}${v.pathname}${v.search}${v.hash}` : `${v.pathname}${v.search}${v.hash}`;
|
|
447
446
|
} catch {
|
|
448
447
|
}
|
|
449
448
|
}
|
|
@@ -453,19 +452,19 @@ const ge = (r, d) => {
|
|
|
453
452
|
}, xt = (r, d) => {
|
|
454
453
|
if (typeof OffscreenCanvas < "u" && typeof document > "u")
|
|
455
454
|
return new OffscreenCanvas(r, d);
|
|
456
|
-
const
|
|
457
|
-
return
|
|
455
|
+
const t = document.createElement("canvas");
|
|
456
|
+
return t.width = r, t.height = d, t;
|
|
458
457
|
}, g0 = async (r, d) => {
|
|
459
458
|
if (!d || d <= 0) return r;
|
|
460
|
-
const
|
|
461
|
-
if (
|
|
462
|
-
const e = d /
|
|
459
|
+
const t = Math.max(r.width, r.height);
|
|
460
|
+
if (t <= d) return r;
|
|
461
|
+
const e = d / t, u = Math.max(1, Math.round(r.width * e)), v = Math.max(1, Math.round(r.height * e)), g = xt(u, v), p = g.getContext("2d");
|
|
463
462
|
return p ? (p.drawImage(r, 0, 0, u, v), r.close?.(), await createImageBitmap(g)) : r;
|
|
464
463
|
};
|
|
465
|
-
async function
|
|
464
|
+
async function at(r, d, t) {
|
|
466
465
|
if (typeof r == "string")
|
|
467
466
|
try {
|
|
468
|
-
const e = ge(r,
|
|
467
|
+
const e = ge(r, t), u = await De(e);
|
|
469
468
|
if (!u.ok) {
|
|
470
469
|
const g = u.status === 404 ? `图片不存在 (404): ${r}` : `加载图片失败 (${u.status} ${u.statusText}): ${r}`;
|
|
471
470
|
throw new Error(g);
|
|
@@ -501,9 +500,9 @@ async function nt(r, d, x) {
|
|
|
501
500
|
}
|
|
502
501
|
throw new Error("不支持的图片类型");
|
|
503
502
|
}
|
|
504
|
-
async function
|
|
503
|
+
async function nt(r, d, t) {
|
|
505
504
|
try {
|
|
506
|
-
const e = ge(r,
|
|
505
|
+
const e = ge(r, t), u = await De(e);
|
|
507
506
|
if (!u.ok) {
|
|
508
507
|
const g = u.status === 404 ? `图片不存在 (404): ${r}` : `加载图片失败 (${u.status} ${u.statusText}): ${r}`;
|
|
509
508
|
throw new Error(g);
|
|
@@ -551,12 +550,12 @@ function $r(r) {
|
|
|
551
550
|
"pass-through": "source-over"
|
|
552
551
|
}[d] || "source-over";
|
|
553
552
|
}
|
|
554
|
-
var
|
|
553
|
+
var lr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
555
554
|
function ot(r) {
|
|
556
555
|
if (Object.prototype.hasOwnProperty.call(r, "__esModule")) return r;
|
|
557
556
|
var d = r.default;
|
|
558
557
|
if (typeof d == "function") {
|
|
559
|
-
var
|
|
558
|
+
var t = function e() {
|
|
560
559
|
var u = !1;
|
|
561
560
|
try {
|
|
562
561
|
u = this instanceof e;
|
|
@@ -564,34 +563,34 @@ function ot(r) {
|
|
|
564
563
|
}
|
|
565
564
|
return u ? Reflect.construct(d, arguments, this.constructor) : d.apply(this, arguments);
|
|
566
565
|
};
|
|
567
|
-
|
|
568
|
-
} else
|
|
569
|
-
return Object.defineProperty(
|
|
566
|
+
t.prototype = d.prototype;
|
|
567
|
+
} else t = {};
|
|
568
|
+
return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(r).forEach(function(e) {
|
|
570
569
|
var u = Object.getOwnPropertyDescriptor(r, e);
|
|
571
|
-
Object.defineProperty(
|
|
570
|
+
Object.defineProperty(t, e, u.get ? u : {
|
|
572
571
|
enumerable: !0,
|
|
573
572
|
get: function() {
|
|
574
573
|
return r[e];
|
|
575
574
|
}
|
|
576
575
|
});
|
|
577
|
-
}),
|
|
576
|
+
}), t;
|
|
578
577
|
}
|
|
579
578
|
var b0 = { exports: {} };
|
|
580
579
|
function it(r) {
|
|
581
580
|
throw new Error('Could not dynamically require "' + r + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
582
581
|
}
|
|
583
|
-
var
|
|
582
|
+
var m0 = { exports: {} }, st = {}, ct = /* @__PURE__ */ Object.freeze({
|
|
584
583
|
__proto__: null,
|
|
585
584
|
default: st
|
|
586
|
-
}), ft = /* @__PURE__ */ ot(ct), ut =
|
|
585
|
+
}), ft = /* @__PURE__ */ ot(ct), ut = m0.exports, zr;
|
|
587
586
|
function U() {
|
|
588
587
|
return zr || (zr = 1, (function(r, d) {
|
|
589
|
-
(function(
|
|
588
|
+
(function(t, e) {
|
|
590
589
|
r.exports = e();
|
|
591
590
|
})(ut, function() {
|
|
592
|
-
var
|
|
591
|
+
var t = t || (function(e, u) {
|
|
593
592
|
var v;
|
|
594
|
-
if (typeof window < "u" && window.crypto && (v = window.crypto), typeof self < "u" && self.crypto && (v = self.crypto), typeof globalThis < "u" && globalThis.crypto && (v = globalThis.crypto), !v && typeof window < "u" && window.msCrypto && (v = window.msCrypto), !v && typeof
|
|
593
|
+
if (typeof window < "u" && window.crypto && (v = window.crypto), typeof self < "u" && self.crypto && (v = self.crypto), typeof globalThis < "u" && globalThis.crypto && (v = globalThis.crypto), !v && typeof window < "u" && window.msCrypto && (v = window.msCrypto), !v && typeof lr < "u" && lr.crypto && (v = lr.crypto), !v && typeof it == "function")
|
|
595
594
|
try {
|
|
596
595
|
v = ft;
|
|
597
596
|
} catch {
|
|
@@ -617,7 +616,7 @@ function U() {
|
|
|
617
616
|
var s;
|
|
618
617
|
return o.prototype = i, s = new o(), o.prototype = null, s;
|
|
619
618
|
};
|
|
620
|
-
})(), C = {},
|
|
619
|
+
})(), C = {}, x = C.lib = {}, a = x.Base = /* @__PURE__ */ (function() {
|
|
621
620
|
return {
|
|
622
621
|
/**
|
|
623
622
|
* Creates a new object that inherits from this object.
|
|
@@ -702,7 +701,7 @@ function U() {
|
|
|
702
701
|
return this.init.prototype.extend(this);
|
|
703
702
|
}
|
|
704
703
|
};
|
|
705
|
-
})(), A =
|
|
704
|
+
})(), A = x.WordArray = a.extend({
|
|
706
705
|
/**
|
|
707
706
|
* Initializes a newly created word array.
|
|
708
707
|
*
|
|
@@ -748,9 +747,9 @@ function U() {
|
|
|
748
747
|
concat: function(o) {
|
|
749
748
|
var i = this.words, s = o.words, F = this.sigBytes, D = o.sigBytes;
|
|
750
749
|
if (this.clamp(), F % 4)
|
|
751
|
-
for (var
|
|
752
|
-
var w = s[
|
|
753
|
-
i[F +
|
|
750
|
+
for (var _ = 0; _ < D; _++) {
|
|
751
|
+
var w = s[_ >>> 2] >>> 24 - _ % 4 * 8 & 255;
|
|
752
|
+
i[F + _ >>> 2] |= w << 24 - (F + _) % 4 * 8;
|
|
754
753
|
}
|
|
755
754
|
else
|
|
756
755
|
for (var z = 0; z < D; z += 4)
|
|
@@ -778,7 +777,7 @@ function U() {
|
|
|
778
777
|
* var clone = wordArray.clone();
|
|
779
778
|
*/
|
|
780
779
|
clone: function() {
|
|
781
|
-
var o =
|
|
780
|
+
var o = a.clone.call(this);
|
|
782
781
|
return o.words = this.words.slice(0), o;
|
|
783
782
|
},
|
|
784
783
|
/**
|
|
@@ -799,7 +798,7 @@ function U() {
|
|
|
799
798
|
i.push(g());
|
|
800
799
|
return new A.init(i, o);
|
|
801
800
|
}
|
|
802
|
-
}),
|
|
801
|
+
}), n = C.enc = {}, l = n.Hex = {
|
|
803
802
|
/**
|
|
804
803
|
* Converts a word array to a hex string.
|
|
805
804
|
*
|
|
@@ -815,8 +814,8 @@ function U() {
|
|
|
815
814
|
*/
|
|
816
815
|
stringify: function(o) {
|
|
817
816
|
for (var i = o.words, s = o.sigBytes, F = [], D = 0; D < s; D++) {
|
|
818
|
-
var
|
|
819
|
-
F.push((
|
|
817
|
+
var _ = i[D >>> 2] >>> 24 - D % 4 * 8 & 255;
|
|
818
|
+
F.push((_ >>> 4).toString(16)), F.push((_ & 15).toString(16));
|
|
820
819
|
}
|
|
821
820
|
return F.join("");
|
|
822
821
|
},
|
|
@@ -838,7 +837,7 @@ function U() {
|
|
|
838
837
|
s[F >>> 3] |= parseInt(o.substr(F, 2), 16) << 24 - F % 8 * 4;
|
|
839
838
|
return new A.init(s, i / 2);
|
|
840
839
|
}
|
|
841
|
-
}, c =
|
|
840
|
+
}, c = n.Latin1 = {
|
|
842
841
|
/**
|
|
843
842
|
* Converts a word array to a Latin1 string.
|
|
844
843
|
*
|
|
@@ -854,8 +853,8 @@ function U() {
|
|
|
854
853
|
*/
|
|
855
854
|
stringify: function(o) {
|
|
856
855
|
for (var i = o.words, s = o.sigBytes, F = [], D = 0; D < s; D++) {
|
|
857
|
-
var
|
|
858
|
-
F.push(String.fromCharCode(
|
|
856
|
+
var _ = i[D >>> 2] >>> 24 - D % 4 * 8 & 255;
|
|
857
|
+
F.push(String.fromCharCode(_));
|
|
859
858
|
}
|
|
860
859
|
return F.join("");
|
|
861
860
|
},
|
|
@@ -877,7 +876,7 @@ function U() {
|
|
|
877
876
|
s[F >>> 2] |= (o.charCodeAt(F) & 255) << 24 - F % 4 * 8;
|
|
878
877
|
return new A.init(s, i);
|
|
879
878
|
}
|
|
880
|
-
}, h =
|
|
879
|
+
}, h = n.Utf8 = {
|
|
881
880
|
/**
|
|
882
881
|
* Converts a word array to a UTF-8 string.
|
|
883
882
|
*
|
|
@@ -914,7 +913,7 @@ function U() {
|
|
|
914
913
|
parse: function(o) {
|
|
915
914
|
return c.parse(unescape(encodeURIComponent(o)));
|
|
916
915
|
}
|
|
917
|
-
}, f =
|
|
916
|
+
}, f = x.BufferedBlockAlgorithm = a.extend({
|
|
918
917
|
/**
|
|
919
918
|
* Resets this block algorithm's data buffer to its initial state.
|
|
920
919
|
*
|
|
@@ -953,15 +952,15 @@ function U() {
|
|
|
953
952
|
* var processedData = bufferedBlockAlgorithm._process(!!'flush');
|
|
954
953
|
*/
|
|
955
954
|
_process: function(o) {
|
|
956
|
-
var i, s = this._data, F = s.words, D = s.sigBytes,
|
|
955
|
+
var i, s = this._data, F = s.words, D = s.sigBytes, _ = this.blockSize, w = _ * 4, z = D / w;
|
|
957
956
|
o ? z = e.ceil(z) : z = e.max((z | 0) - this._minBufferSize, 0);
|
|
958
|
-
var B = z *
|
|
957
|
+
var B = z * _, m = e.min(B * 4, D);
|
|
959
958
|
if (B) {
|
|
960
|
-
for (var P = 0; P < B; P +=
|
|
959
|
+
for (var P = 0; P < B; P += _)
|
|
961
960
|
this._doProcessBlock(F, P);
|
|
962
|
-
i = F.splice(0, B), s.sigBytes -=
|
|
961
|
+
i = F.splice(0, B), s.sigBytes -= m;
|
|
963
962
|
}
|
|
964
|
-
return new A.init(i,
|
|
963
|
+
return new A.init(i, m);
|
|
965
964
|
},
|
|
966
965
|
/**
|
|
967
966
|
* Creates a copy of this object.
|
|
@@ -973,16 +972,16 @@ function U() {
|
|
|
973
972
|
* var clone = bufferedBlockAlgorithm.clone();
|
|
974
973
|
*/
|
|
975
974
|
clone: function() {
|
|
976
|
-
var o =
|
|
975
|
+
var o = a.clone.call(this);
|
|
977
976
|
return o._data = this._data.clone(), o;
|
|
978
977
|
},
|
|
979
978
|
_minBufferSize: 0
|
|
980
979
|
});
|
|
981
|
-
|
|
980
|
+
x.Hasher = f.extend({
|
|
982
981
|
/**
|
|
983
982
|
* Configuration options.
|
|
984
983
|
*/
|
|
985
|
-
cfg:
|
|
984
|
+
cfg: a.extend(),
|
|
986
985
|
/**
|
|
987
986
|
* Initializes a newly created hasher.
|
|
988
987
|
*
|
|
@@ -1080,18 +1079,18 @@ function U() {
|
|
|
1080
1079
|
var E = C.algo = {};
|
|
1081
1080
|
return C;
|
|
1082
1081
|
})(Math);
|
|
1083
|
-
return
|
|
1082
|
+
return t;
|
|
1084
1083
|
});
|
|
1085
|
-
})(
|
|
1084
|
+
})(m0)), m0.exports;
|
|
1086
1085
|
}
|
|
1087
|
-
var
|
|
1086
|
+
var _0 = { exports: {} }, lt = _0.exports, Ir;
|
|
1088
1087
|
function sr() {
|
|
1089
1088
|
return Ir || (Ir = 1, (function(r, d) {
|
|
1090
|
-
(function(
|
|
1089
|
+
(function(t, e) {
|
|
1091
1090
|
r.exports = e(U());
|
|
1092
|
-
})(
|
|
1091
|
+
})(lt, function(t) {
|
|
1093
1092
|
return (function(e) {
|
|
1094
|
-
var u =
|
|
1093
|
+
var u = t, v = u.lib, g = v.Base, p = v.WordArray, C = u.x64 = {};
|
|
1095
1094
|
C.Word = g.extend({
|
|
1096
1095
|
/**
|
|
1097
1096
|
* Initializes a newly created 64-bit word.
|
|
@@ -1103,8 +1102,8 @@ function sr() {
|
|
|
1103
1102
|
*
|
|
1104
1103
|
* var x64Word = CryptoJS.x64.Word.create(0x00010203, 0x04050607);
|
|
1105
1104
|
*/
|
|
1106
|
-
init: function(
|
|
1107
|
-
this.high =
|
|
1105
|
+
init: function(x, a) {
|
|
1106
|
+
this.high = x, this.low = a;
|
|
1108
1107
|
}
|
|
1109
1108
|
/**
|
|
1110
1109
|
* Bitwise NOTs this word.
|
|
@@ -1276,8 +1275,8 @@ function sr() {
|
|
|
1276
1275
|
* CryptoJS.x64.Word.create(0x18191a1b, 0x1c1d1e1f)
|
|
1277
1276
|
* ], 10);
|
|
1278
1277
|
*/
|
|
1279
|
-
init: function(
|
|
1280
|
-
|
|
1278
|
+
init: function(x, a) {
|
|
1279
|
+
x = this.words = x || [], a != e ? this.sigBytes = a : this.sigBytes = x.length * 8;
|
|
1281
1280
|
},
|
|
1282
1281
|
/**
|
|
1283
1282
|
* Converts this 64-bit word array to a 32-bit word array.
|
|
@@ -1289,8 +1288,8 @@ function sr() {
|
|
|
1289
1288
|
* var x32WordArray = x64WordArray.toX32();
|
|
1290
1289
|
*/
|
|
1291
1290
|
toX32: function() {
|
|
1292
|
-
for (var
|
|
1293
|
-
var l =
|
|
1291
|
+
for (var x = this.words, a = x.length, A = [], n = 0; n < a; n++) {
|
|
1292
|
+
var l = x[n];
|
|
1294
1293
|
A.push(l.high), A.push(l.low);
|
|
1295
1294
|
}
|
|
1296
1295
|
return p.create(A, this.sigBytes);
|
|
@@ -1305,45 +1304,45 @@ function sr() {
|
|
|
1305
1304
|
* var clone = x64WordArray.clone();
|
|
1306
1305
|
*/
|
|
1307
1306
|
clone: function() {
|
|
1308
|
-
for (var
|
|
1309
|
-
n
|
|
1310
|
-
return
|
|
1307
|
+
for (var x = g.clone.call(this), a = x.words = this.words.slice(0), A = a.length, n = 0; n < A; n++)
|
|
1308
|
+
a[n] = a[n].clone();
|
|
1309
|
+
return x;
|
|
1311
1310
|
}
|
|
1312
1311
|
});
|
|
1313
|
-
})(),
|
|
1312
|
+
})(), t;
|
|
1314
1313
|
});
|
|
1315
|
-
})(
|
|
1314
|
+
})(_0)), _0.exports;
|
|
1316
1315
|
}
|
|
1317
|
-
var y0 = { exports: {} },
|
|
1316
|
+
var y0 = { exports: {} }, dt = y0.exports, Wr;
|
|
1318
1317
|
function ht() {
|
|
1319
1318
|
return Wr || (Wr = 1, (function(r, d) {
|
|
1320
|
-
(function(
|
|
1319
|
+
(function(t, e) {
|
|
1321
1320
|
r.exports = e(U());
|
|
1322
|
-
})(
|
|
1321
|
+
})(dt, function(t) {
|
|
1323
1322
|
return (function() {
|
|
1324
1323
|
if (typeof ArrayBuffer == "function") {
|
|
1325
|
-
var e =
|
|
1324
|
+
var e = t, u = e.lib, v = u.WordArray, g = v.init, p = v.init = function(C) {
|
|
1326
1325
|
if (C instanceof ArrayBuffer && (C = new Uint8Array(C)), (C instanceof Int8Array || typeof Uint8ClampedArray < "u" && C instanceof Uint8ClampedArray || C instanceof Int16Array || C instanceof Uint16Array || C instanceof Int32Array || C instanceof Uint32Array || C instanceof Float32Array || C instanceof Float64Array) && (C = new Uint8Array(C.buffer, C.byteOffset, C.byteLength)), C instanceof Uint8Array) {
|
|
1327
|
-
for (var
|
|
1328
|
-
|
|
1329
|
-
g.call(this,
|
|
1326
|
+
for (var x = C.byteLength, a = [], A = 0; A < x; A++)
|
|
1327
|
+
a[A >>> 2] |= C[A] << 24 - A % 4 * 8;
|
|
1328
|
+
g.call(this, a, x);
|
|
1330
1329
|
} else
|
|
1331
1330
|
g.apply(this, arguments);
|
|
1332
1331
|
};
|
|
1333
1332
|
p.prototype = v;
|
|
1334
1333
|
}
|
|
1335
|
-
})(),
|
|
1334
|
+
})(), t.lib.WordArray;
|
|
1336
1335
|
});
|
|
1337
1336
|
})(y0)), y0.exports;
|
|
1338
1337
|
}
|
|
1339
1338
|
var w0 = { exports: {} }, vt = w0.exports, Or;
|
|
1340
1339
|
function pt() {
|
|
1341
1340
|
return Or || (Or = 1, (function(r, d) {
|
|
1342
|
-
(function(
|
|
1341
|
+
(function(t, e) {
|
|
1343
1342
|
r.exports = e(U());
|
|
1344
|
-
})(vt, function(
|
|
1343
|
+
})(vt, function(t) {
|
|
1345
1344
|
return (function() {
|
|
1346
|
-
var e =
|
|
1345
|
+
var e = t, u = e.lib, v = u.WordArray, g = e.enc;
|
|
1347
1346
|
g.Utf16 = g.Utf16BE = {
|
|
1348
1347
|
/**
|
|
1349
1348
|
* Converts a word array to a UTF-16 BE string.
|
|
@@ -1359,8 +1358,8 @@ function pt() {
|
|
|
1359
1358
|
* var utf16String = CryptoJS.enc.Utf16.stringify(wordArray);
|
|
1360
1359
|
*/
|
|
1361
1360
|
stringify: function(C) {
|
|
1362
|
-
for (var
|
|
1363
|
-
var l =
|
|
1361
|
+
for (var x = C.words, a = C.sigBytes, A = [], n = 0; n < a; n += 2) {
|
|
1362
|
+
var l = x[n >>> 2] >>> 16 - n % 4 * 8 & 65535;
|
|
1364
1363
|
A.push(String.fromCharCode(l));
|
|
1365
1364
|
}
|
|
1366
1365
|
return A.join("");
|
|
@@ -1379,9 +1378,9 @@ function pt() {
|
|
|
1379
1378
|
* var wordArray = CryptoJS.enc.Utf16.parse(utf16String);
|
|
1380
1379
|
*/
|
|
1381
1380
|
parse: function(C) {
|
|
1382
|
-
for (var
|
|
1383
|
-
|
|
1384
|
-
return v.create(
|
|
1381
|
+
for (var x = C.length, a = [], A = 0; A < x; A++)
|
|
1382
|
+
a[A >>> 1] |= C.charCodeAt(A) << 16 - A % 2 * 16;
|
|
1383
|
+
return v.create(a, x * 2);
|
|
1385
1384
|
}
|
|
1386
1385
|
}, g.Utf16LE = {
|
|
1387
1386
|
/**
|
|
@@ -1398,8 +1397,8 @@ function pt() {
|
|
|
1398
1397
|
* var utf16Str = CryptoJS.enc.Utf16LE.stringify(wordArray);
|
|
1399
1398
|
*/
|
|
1400
1399
|
stringify: function(C) {
|
|
1401
|
-
for (var
|
|
1402
|
-
var l = p(
|
|
1400
|
+
for (var x = C.words, a = C.sigBytes, A = [], n = 0; n < a; n += 2) {
|
|
1401
|
+
var l = p(x[n >>> 2] >>> 16 - n % 4 * 8 & 65535);
|
|
1403
1402
|
A.push(String.fromCharCode(l));
|
|
1404
1403
|
}
|
|
1405
1404
|
return A.join("");
|
|
@@ -1418,26 +1417,26 @@ function pt() {
|
|
|
1418
1417
|
* var wordArray = CryptoJS.enc.Utf16LE.parse(utf16Str);
|
|
1419
1418
|
*/
|
|
1420
1419
|
parse: function(C) {
|
|
1421
|
-
for (var
|
|
1422
|
-
|
|
1423
|
-
return v.create(
|
|
1420
|
+
for (var x = C.length, a = [], A = 0; A < x; A++)
|
|
1421
|
+
a[A >>> 1] |= p(C.charCodeAt(A) << 16 - A % 2 * 16);
|
|
1422
|
+
return v.create(a, x * 2);
|
|
1424
1423
|
}
|
|
1425
1424
|
};
|
|
1426
1425
|
function p(C) {
|
|
1427
1426
|
return C << 8 & 4278255360 | C >>> 8 & 16711935;
|
|
1428
1427
|
}
|
|
1429
|
-
})(),
|
|
1428
|
+
})(), t.enc.Utf16;
|
|
1430
1429
|
});
|
|
1431
1430
|
})(w0)), w0.exports;
|
|
1432
1431
|
}
|
|
1433
1432
|
var k0 = { exports: {} }, Bt = k0.exports, Lr;
|
|
1434
|
-
function
|
|
1433
|
+
function a0() {
|
|
1435
1434
|
return Lr || (Lr = 1, (function(r, d) {
|
|
1436
|
-
(function(
|
|
1435
|
+
(function(t, e) {
|
|
1437
1436
|
r.exports = e(U());
|
|
1438
|
-
})(Bt, function(
|
|
1437
|
+
})(Bt, function(t) {
|
|
1439
1438
|
return (function() {
|
|
1440
|
-
var e =
|
|
1439
|
+
var e = t, u = e.lib, v = u.WordArray, g = e.enc;
|
|
1441
1440
|
g.Base64 = {
|
|
1442
1441
|
/**
|
|
1443
1442
|
* Converts a word array to a Base64 string.
|
|
@@ -1453,16 +1452,16 @@ function n0() {
|
|
|
1453
1452
|
* var base64String = CryptoJS.enc.Base64.stringify(wordArray);
|
|
1454
1453
|
*/
|
|
1455
1454
|
stringify: function(C) {
|
|
1456
|
-
var
|
|
1455
|
+
var x = C.words, a = C.sigBytes, A = this._map;
|
|
1457
1456
|
C.clamp();
|
|
1458
|
-
for (var
|
|
1459
|
-
for (var c =
|
|
1460
|
-
|
|
1457
|
+
for (var n = [], l = 0; l < a; l += 3)
|
|
1458
|
+
for (var c = x[l >>> 2] >>> 24 - l % 4 * 8 & 255, h = x[l + 1 >>> 2] >>> 24 - (l + 1) % 4 * 8 & 255, f = x[l + 2 >>> 2] >>> 24 - (l + 2) % 4 * 8 & 255, E = c << 16 | h << 8 | f, o = 0; o < 4 && l + o * 0.75 < a; o++)
|
|
1459
|
+
n.push(A.charAt(E >>> 6 * (3 - o) & 63));
|
|
1461
1460
|
var i = A.charAt(64);
|
|
1462
1461
|
if (i)
|
|
1463
|
-
for (;
|
|
1464
|
-
|
|
1465
|
-
return
|
|
1462
|
+
for (; n.length % 4; )
|
|
1463
|
+
n.push(i);
|
|
1464
|
+
return n.join("");
|
|
1466
1465
|
},
|
|
1467
1466
|
/**
|
|
1468
1467
|
* Converts a Base64 string to a word array.
|
|
@@ -1478,41 +1477,41 @@ function n0() {
|
|
|
1478
1477
|
* var wordArray = CryptoJS.enc.Base64.parse(base64String);
|
|
1479
1478
|
*/
|
|
1480
1479
|
parse: function(C) {
|
|
1481
|
-
var
|
|
1480
|
+
var x = C.length, a = this._map, A = this._reverseMap;
|
|
1482
1481
|
if (!A) {
|
|
1483
1482
|
A = this._reverseMap = [];
|
|
1484
|
-
for (var
|
|
1485
|
-
A[
|
|
1483
|
+
for (var n = 0; n < a.length; n++)
|
|
1484
|
+
A[a.charCodeAt(n)] = n;
|
|
1486
1485
|
}
|
|
1487
|
-
var l =
|
|
1486
|
+
var l = a.charAt(64);
|
|
1488
1487
|
if (l) {
|
|
1489
1488
|
var c = C.indexOf(l);
|
|
1490
|
-
c !== -1 && (
|
|
1489
|
+
c !== -1 && (x = c);
|
|
1491
1490
|
}
|
|
1492
|
-
return p(C,
|
|
1491
|
+
return p(C, x, A);
|
|
1493
1492
|
},
|
|
1494
1493
|
_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
|
|
1495
1494
|
};
|
|
1496
|
-
function p(C,
|
|
1497
|
-
for (var A = [],
|
|
1495
|
+
function p(C, x, a) {
|
|
1496
|
+
for (var A = [], n = 0, l = 0; l < x; l++)
|
|
1498
1497
|
if (l % 4) {
|
|
1499
|
-
var c =
|
|
1500
|
-
A[
|
|
1498
|
+
var c = a[C.charCodeAt(l - 1)] << l % 4 * 2, h = a[C.charCodeAt(l)] >>> 6 - l % 4 * 2, f = c | h;
|
|
1499
|
+
A[n >>> 2] |= f << 24 - n % 4 * 8, n++;
|
|
1501
1500
|
}
|
|
1502
|
-
return v.create(A,
|
|
1501
|
+
return v.create(A, n);
|
|
1503
1502
|
}
|
|
1504
|
-
})(),
|
|
1503
|
+
})(), t.enc.Base64;
|
|
1505
1504
|
});
|
|
1506
1505
|
})(k0)), k0.exports;
|
|
1507
1506
|
}
|
|
1508
1507
|
var S0 = { exports: {} }, Ct = S0.exports, qr;
|
|
1509
1508
|
function Et() {
|
|
1510
1509
|
return qr || (qr = 1, (function(r, d) {
|
|
1511
|
-
(function(
|
|
1510
|
+
(function(t, e) {
|
|
1512
1511
|
r.exports = e(U());
|
|
1513
|
-
})(Ct, function(
|
|
1512
|
+
})(Ct, function(t) {
|
|
1514
1513
|
return (function() {
|
|
1515
|
-
var e =
|
|
1514
|
+
var e = t, u = e.lib, v = u.WordArray, g = e.enc;
|
|
1516
1515
|
g.Base64url = {
|
|
1517
1516
|
/**
|
|
1518
1517
|
* Converts a word array to a Base64url string.
|
|
@@ -1529,14 +1528,14 @@ function Et() {
|
|
|
1529
1528
|
*
|
|
1530
1529
|
* var base64String = CryptoJS.enc.Base64url.stringify(wordArray);
|
|
1531
1530
|
*/
|
|
1532
|
-
stringify: function(C,
|
|
1533
|
-
|
|
1534
|
-
var
|
|
1531
|
+
stringify: function(C, x) {
|
|
1532
|
+
x === void 0 && (x = !0);
|
|
1533
|
+
var a = C.words, A = C.sigBytes, n = x ? this._safe_map : this._map;
|
|
1535
1534
|
C.clamp();
|
|
1536
1535
|
for (var l = [], c = 0; c < A; c += 3)
|
|
1537
|
-
for (var h =
|
|
1538
|
-
l.push(
|
|
1539
|
-
var s =
|
|
1536
|
+
for (var h = a[c >>> 2] >>> 24 - c % 4 * 8 & 255, f = a[c + 1 >>> 2] >>> 24 - (c + 1) % 4 * 8 & 255, E = a[c + 2 >>> 2] >>> 24 - (c + 2) % 4 * 8 & 255, o = h << 16 | f << 8 | E, i = 0; i < 4 && c + i * 0.75 < A; i++)
|
|
1537
|
+
l.push(n.charAt(o >>> 6 * (3 - i) & 63));
|
|
1538
|
+
var s = n.charAt(64);
|
|
1540
1539
|
if (s)
|
|
1541
1540
|
for (; l.length % 4; )
|
|
1542
1541
|
l.push(s);
|
|
@@ -1557,49 +1556,49 @@ function Et() {
|
|
|
1557
1556
|
*
|
|
1558
1557
|
* var wordArray = CryptoJS.enc.Base64url.parse(base64String);
|
|
1559
1558
|
*/
|
|
1560
|
-
parse: function(C,
|
|
1561
|
-
|
|
1562
|
-
var
|
|
1563
|
-
if (!
|
|
1564
|
-
|
|
1559
|
+
parse: function(C, x) {
|
|
1560
|
+
x === void 0 && (x = !0);
|
|
1561
|
+
var a = C.length, A = x ? this._safe_map : this._map, n = this._reverseMap;
|
|
1562
|
+
if (!n) {
|
|
1563
|
+
n = this._reverseMap = [];
|
|
1565
1564
|
for (var l = 0; l < A.length; l++)
|
|
1566
|
-
|
|
1565
|
+
n[A.charCodeAt(l)] = l;
|
|
1567
1566
|
}
|
|
1568
1567
|
var c = A.charAt(64);
|
|
1569
1568
|
if (c) {
|
|
1570
1569
|
var h = C.indexOf(c);
|
|
1571
|
-
h !== -1 && (
|
|
1570
|
+
h !== -1 && (a = h);
|
|
1572
1571
|
}
|
|
1573
|
-
return p(C,
|
|
1572
|
+
return p(C, a, n);
|
|
1574
1573
|
},
|
|
1575
1574
|
_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
|
|
1576
1575
|
_safe_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"
|
|
1577
1576
|
};
|
|
1578
|
-
function p(C,
|
|
1579
|
-
for (var A = [],
|
|
1577
|
+
function p(C, x, a) {
|
|
1578
|
+
for (var A = [], n = 0, l = 0; l < x; l++)
|
|
1580
1579
|
if (l % 4) {
|
|
1581
|
-
var c =
|
|
1582
|
-
A[
|
|
1580
|
+
var c = a[C.charCodeAt(l - 1)] << l % 4 * 2, h = a[C.charCodeAt(l)] >>> 6 - l % 4 * 2, f = c | h;
|
|
1581
|
+
A[n >>> 2] |= f << 24 - n % 4 * 8, n++;
|
|
1583
1582
|
}
|
|
1584
|
-
return v.create(A,
|
|
1583
|
+
return v.create(A, n);
|
|
1585
1584
|
}
|
|
1586
|
-
})(),
|
|
1585
|
+
})(), t.enc.Base64url;
|
|
1587
1586
|
});
|
|
1588
1587
|
})(S0)), S0.exports;
|
|
1589
1588
|
}
|
|
1590
1589
|
var H0 = { exports: {} }, At = H0.exports, Tr;
|
|
1591
|
-
function
|
|
1590
|
+
function n0() {
|
|
1592
1591
|
return Tr || (Tr = 1, (function(r, d) {
|
|
1593
|
-
(function(
|
|
1592
|
+
(function(t, e) {
|
|
1594
1593
|
r.exports = e(U());
|
|
1595
|
-
})(At, function(
|
|
1594
|
+
})(At, function(t) {
|
|
1596
1595
|
return (function(e) {
|
|
1597
|
-
var u =
|
|
1596
|
+
var u = t, v = u.lib, g = v.WordArray, p = v.Hasher, C = u.algo, x = [];
|
|
1598
1597
|
(function() {
|
|
1599
1598
|
for (var h = 0; h < 64; h++)
|
|
1600
|
-
|
|
1599
|
+
x[h] = e.abs(e.sin(h + 1)) * 4294967296 | 0;
|
|
1601
1600
|
})();
|
|
1602
|
-
var
|
|
1601
|
+
var a = C.MD5 = p.extend({
|
|
1603
1602
|
_doReset: function() {
|
|
1604
1603
|
this._hash = new g.init([
|
|
1605
1604
|
1732584193,
|
|
@@ -1613,17 +1612,17 @@ function a0() {
|
|
|
1613
1612
|
var o = f + E, i = h[o];
|
|
1614
1613
|
h[o] = (i << 8 | i >>> 24) & 16711935 | (i << 24 | i >>> 8) & 4278255360;
|
|
1615
1614
|
}
|
|
1616
|
-
var s = this._hash.words, F = h[f + 0], D = h[f + 1],
|
|
1617
|
-
b = A(b, k, R, S, F, 7,
|
|
1615
|
+
var s = this._hash.words, F = h[f + 0], D = h[f + 1], _ = h[f + 2], w = h[f + 3], z = h[f + 4], B = h[f + 5], m = h[f + 6], P = h[f + 7], H = h[f + 8], L = h[f + 9], q = h[f + 10], y = h[f + 11], $ = h[f + 12], W = h[f + 13], O = h[f + 14], I = h[f + 15], b = s[0], k = s[1], R = s[2], S = s[3];
|
|
1616
|
+
b = A(b, k, R, S, F, 7, x[0]), S = A(S, b, k, R, D, 12, x[1]), R = A(R, S, b, k, _, 17, x[2]), k = A(k, R, S, b, w, 22, x[3]), b = A(b, k, R, S, z, 7, x[4]), S = A(S, b, k, R, B, 12, x[5]), R = A(R, S, b, k, m, 17, x[6]), k = A(k, R, S, b, P, 22, x[7]), b = A(b, k, R, S, H, 7, x[8]), S = A(S, b, k, R, L, 12, x[9]), R = A(R, S, b, k, q, 17, x[10]), k = A(k, R, S, b, y, 22, x[11]), b = A(b, k, R, S, $, 7, x[12]), S = A(S, b, k, R, W, 12, x[13]), R = A(R, S, b, k, O, 17, x[14]), k = A(k, R, S, b, I, 22, x[15]), b = n(b, k, R, S, D, 5, x[16]), S = n(S, b, k, R, m, 9, x[17]), R = n(R, S, b, k, y, 14, x[18]), k = n(k, R, S, b, F, 20, x[19]), b = n(b, k, R, S, B, 5, x[20]), S = n(S, b, k, R, q, 9, x[21]), R = n(R, S, b, k, I, 14, x[22]), k = n(k, R, S, b, z, 20, x[23]), b = n(b, k, R, S, L, 5, x[24]), S = n(S, b, k, R, O, 9, x[25]), R = n(R, S, b, k, w, 14, x[26]), k = n(k, R, S, b, H, 20, x[27]), b = n(b, k, R, S, W, 5, x[28]), S = n(S, b, k, R, _, 9, x[29]), R = n(R, S, b, k, P, 14, x[30]), k = n(k, R, S, b, $, 20, x[31]), b = l(b, k, R, S, B, 4, x[32]), S = l(S, b, k, R, H, 11, x[33]), R = l(R, S, b, k, y, 16, x[34]), k = l(k, R, S, b, O, 23, x[35]), b = l(b, k, R, S, D, 4, x[36]), S = l(S, b, k, R, z, 11, x[37]), R = l(R, S, b, k, P, 16, x[38]), k = l(k, R, S, b, q, 23, x[39]), b = l(b, k, R, S, W, 4, x[40]), S = l(S, b, k, R, F, 11, x[41]), R = l(R, S, b, k, w, 16, x[42]), k = l(k, R, S, b, m, 23, x[43]), b = l(b, k, R, S, L, 4, x[44]), S = l(S, b, k, R, $, 11, x[45]), R = l(R, S, b, k, I, 16, x[46]), k = l(k, R, S, b, _, 23, x[47]), b = c(b, k, R, S, F, 6, x[48]), S = c(S, b, k, R, P, 10, x[49]), R = c(R, S, b, k, O, 15, x[50]), k = c(k, R, S, b, B, 21, x[51]), b = c(b, k, R, S, $, 6, x[52]), S = c(S, b, k, R, w, 10, x[53]), R = c(R, S, b, k, q, 15, x[54]), k = c(k, R, S, b, D, 21, x[55]), b = c(b, k, R, S, H, 6, x[56]), S = c(S, b, k, R, I, 10, x[57]), R = c(R, S, b, k, m, 15, x[58]), k = c(k, R, S, b, W, 21, x[59]), b = c(b, k, R, S, z, 6, x[60]), S = c(S, b, k, R, y, 10, x[61]), R = c(R, S, b, k, _, 15, x[62]), k = c(k, R, S, b, L, 21, x[63]), s[0] = s[0] + b | 0, s[1] = s[1] + k | 0, s[2] = s[2] + R | 0, s[3] = s[3] + S | 0;
|
|
1618
1617
|
},
|
|
1619
1618
|
_doFinalize: function() {
|
|
1620
1619
|
var h = this._data, f = h.words, E = this._nDataBytes * 8, o = h.sigBytes * 8;
|
|
1621
1620
|
f[o >>> 5] |= 128 << 24 - o % 32;
|
|
1622
1621
|
var i = e.floor(E / 4294967296), s = E;
|
|
1623
1622
|
f[(o + 64 >>> 9 << 4) + 15] = (i << 8 | i >>> 24) & 16711935 | (i << 24 | i >>> 8) & 4278255360, f[(o + 64 >>> 9 << 4) + 14] = (s << 8 | s >>> 24) & 16711935 | (s << 24 | s >>> 8) & 4278255360, h.sigBytes = (f.length + 1) * 4, this._process();
|
|
1624
|
-
for (var F = this._hash, D = F.words,
|
|
1625
|
-
var w = D[
|
|
1626
|
-
D[
|
|
1623
|
+
for (var F = this._hash, D = F.words, _ = 0; _ < 4; _++) {
|
|
1624
|
+
var w = D[_];
|
|
1625
|
+
D[_] = (w << 8 | w >>> 24) & 16711935 | (w << 24 | w >>> 8) & 4278255360;
|
|
1627
1626
|
}
|
|
1628
1627
|
return F;
|
|
1629
1628
|
},
|
|
@@ -1636,7 +1635,7 @@ function a0() {
|
|
|
1636
1635
|
var D = h + (f & E | ~f & o) + i + F;
|
|
1637
1636
|
return (D << s | D >>> 32 - s) + f;
|
|
1638
1637
|
}
|
|
1639
|
-
function
|
|
1638
|
+
function n(h, f, E, o, i, s, F) {
|
|
1640
1639
|
var D = h + (f & o | E & ~o) + i + F;
|
|
1641
1640
|
return (D << s | D >>> 32 - s) + f;
|
|
1642
1641
|
}
|
|
@@ -1648,19 +1647,19 @@ function a0() {
|
|
|
1648
1647
|
var D = h + (E ^ (f | ~o)) + i + F;
|
|
1649
1648
|
return (D << s | D >>> 32 - s) + f;
|
|
1650
1649
|
}
|
|
1651
|
-
u.MD5 = p._createHelper(
|
|
1652
|
-
})(Math),
|
|
1650
|
+
u.MD5 = p._createHelper(a), u.HmacMD5 = p._createHmacHelper(a);
|
|
1651
|
+
})(Math), t.MD5;
|
|
1653
1652
|
});
|
|
1654
1653
|
})(H0)), H0.exports;
|
|
1655
1654
|
}
|
|
1656
1655
|
var P0 = { exports: {} }, Ft = P0.exports, Mr;
|
|
1657
1656
|
function be() {
|
|
1658
1657
|
return Mr || (Mr = 1, (function(r, d) {
|
|
1659
|
-
(function(
|
|
1658
|
+
(function(t, e) {
|
|
1660
1659
|
r.exports = e(U());
|
|
1661
|
-
})(Ft, function(
|
|
1660
|
+
})(Ft, function(t) {
|
|
1662
1661
|
return (function() {
|
|
1663
|
-
var e =
|
|
1662
|
+
var e = t, u = e.lib, v = u.WordArray, g = u.Hasher, p = e.algo, C = [], x = p.SHA1 = g.extend({
|
|
1664
1663
|
_doReset: function() {
|
|
1665
1664
|
this._hash = new v.init([
|
|
1666
1665
|
1732584193,
|
|
@@ -1670,10 +1669,10 @@ function be() {
|
|
|
1670
1669
|
3285377520
|
|
1671
1670
|
]);
|
|
1672
1671
|
},
|
|
1673
|
-
_doProcessBlock: function(
|
|
1674
|
-
for (var
|
|
1672
|
+
_doProcessBlock: function(a, A) {
|
|
1673
|
+
for (var n = this._hash.words, l = n[0], c = n[1], h = n[2], f = n[3], E = n[4], o = 0; o < 80; o++) {
|
|
1675
1674
|
if (o < 16)
|
|
1676
|
-
C[o] =
|
|
1675
|
+
C[o] = a[A + o] | 0;
|
|
1677
1676
|
else {
|
|
1678
1677
|
var i = C[o - 3] ^ C[o - 8] ^ C[o - 14] ^ C[o - 16];
|
|
1679
1678
|
C[o] = i << 1 | i >>> 31;
|
|
@@ -1681,30 +1680,30 @@ function be() {
|
|
|
1681
1680
|
var s = (l << 5 | l >>> 27) + E + C[o];
|
|
1682
1681
|
o < 20 ? s += (c & h | ~c & f) + 1518500249 : o < 40 ? s += (c ^ h ^ f) + 1859775393 : o < 60 ? s += (c & h | c & f | h & f) - 1894007588 : s += (c ^ h ^ f) - 899497514, E = f, f = h, h = c << 30 | c >>> 2, c = l, l = s;
|
|
1683
1682
|
}
|
|
1684
|
-
|
|
1683
|
+
n[0] = n[0] + l | 0, n[1] = n[1] + c | 0, n[2] = n[2] + h | 0, n[3] = n[3] + f | 0, n[4] = n[4] + E | 0;
|
|
1685
1684
|
},
|
|
1686
1685
|
_doFinalize: function() {
|
|
1687
|
-
var
|
|
1688
|
-
return A[l >>> 5] |= 128 << 24 - l % 32, A[(l + 64 >>> 9 << 4) + 14] = Math.floor(
|
|
1686
|
+
var a = this._data, A = a.words, n = this._nDataBytes * 8, l = a.sigBytes * 8;
|
|
1687
|
+
return A[l >>> 5] |= 128 << 24 - l % 32, A[(l + 64 >>> 9 << 4) + 14] = Math.floor(n / 4294967296), A[(l + 64 >>> 9 << 4) + 15] = n, a.sigBytes = A.length * 4, this._process(), this._hash;
|
|
1689
1688
|
},
|
|
1690
1689
|
clone: function() {
|
|
1691
|
-
var
|
|
1692
|
-
return
|
|
1690
|
+
var a = g.clone.call(this);
|
|
1691
|
+
return a._hash = this._hash.clone(), a;
|
|
1693
1692
|
}
|
|
1694
1693
|
});
|
|
1695
|
-
e.SHA1 = g._createHelper(
|
|
1696
|
-
})(),
|
|
1694
|
+
e.SHA1 = g._createHelper(x), e.HmacSHA1 = g._createHmacHelper(x);
|
|
1695
|
+
})(), t.SHA1;
|
|
1697
1696
|
});
|
|
1698
1697
|
})(P0)), P0.exports;
|
|
1699
1698
|
}
|
|
1700
1699
|
var R0 = { exports: {} }, Dt = R0.exports, Nr;
|
|
1701
1700
|
function Cr() {
|
|
1702
1701
|
return Nr || (Nr = 1, (function(r, d) {
|
|
1703
|
-
(function(
|
|
1702
|
+
(function(t, e) {
|
|
1704
1703
|
r.exports = e(U());
|
|
1705
|
-
})(Dt, function(
|
|
1704
|
+
})(Dt, function(t) {
|
|
1706
1705
|
return (function(e) {
|
|
1707
|
-
var u =
|
|
1706
|
+
var u = t, v = u.lib, g = v.WordArray, p = v.Hasher, C = u.algo, x = [], a = [];
|
|
1708
1707
|
(function() {
|
|
1709
1708
|
function l(E) {
|
|
1710
1709
|
for (var o = e.sqrt(E), i = 2; i <= o; i++)
|
|
@@ -1716,24 +1715,24 @@ function Cr() {
|
|
|
1716
1715
|
return (E - (E | 0)) * 4294967296 | 0;
|
|
1717
1716
|
}
|
|
1718
1717
|
for (var h = 2, f = 0; f < 64; )
|
|
1719
|
-
l(h) && (f < 8 && (
|
|
1718
|
+
l(h) && (f < 8 && (x[f] = c(e.pow(h, 1 / 2))), a[f] = c(e.pow(h, 1 / 3)), f++), h++;
|
|
1720
1719
|
})();
|
|
1721
|
-
var A = [],
|
|
1720
|
+
var A = [], n = C.SHA256 = p.extend({
|
|
1722
1721
|
_doReset: function() {
|
|
1723
|
-
this._hash = new g.init(
|
|
1722
|
+
this._hash = new g.init(x.slice(0));
|
|
1724
1723
|
},
|
|
1725
1724
|
_doProcessBlock: function(l, c) {
|
|
1726
|
-
for (var h = this._hash.words, f = h[0], E = h[1], o = h[2], i = h[3], s = h[4], F = h[5], D = h[6],
|
|
1725
|
+
for (var h = this._hash.words, f = h[0], E = h[1], o = h[2], i = h[3], s = h[4], F = h[5], D = h[6], _ = h[7], w = 0; w < 64; w++) {
|
|
1727
1726
|
if (w < 16)
|
|
1728
1727
|
A[w] = l[c + w] | 0;
|
|
1729
1728
|
else {
|
|
1730
|
-
var z = A[w - 15], B = (z << 25 | z >>> 7) ^ (z << 14 | z >>> 18) ^ z >>> 3,
|
|
1729
|
+
var z = A[w - 15], B = (z << 25 | z >>> 7) ^ (z << 14 | z >>> 18) ^ z >>> 3, m = A[w - 2], P = (m << 15 | m >>> 17) ^ (m << 13 | m >>> 19) ^ m >>> 10;
|
|
1731
1730
|
A[w] = B + A[w - 7] + P + A[w - 16];
|
|
1732
1731
|
}
|
|
1733
|
-
var H = s & F ^ ~s & D, L = f & E ^ f & o ^ E & o, q = (f << 30 | f >>> 2) ^ (f << 19 | f >>> 13) ^ (f << 10 | f >>> 22), y = (s << 26 | s >>> 6) ^ (s << 21 | s >>> 11) ^ (s << 7 | s >>> 25), $ =
|
|
1734
|
-
|
|
1732
|
+
var H = s & F ^ ~s & D, L = f & E ^ f & o ^ E & o, q = (f << 30 | f >>> 2) ^ (f << 19 | f >>> 13) ^ (f << 10 | f >>> 22), y = (s << 26 | s >>> 6) ^ (s << 21 | s >>> 11) ^ (s << 7 | s >>> 25), $ = _ + y + H + a[w] + A[w], W = q + L;
|
|
1733
|
+
_ = D, D = F, F = s, s = i + $ | 0, i = o, o = E, E = f, f = $ + W | 0;
|
|
1735
1734
|
}
|
|
1736
|
-
h[0] = h[0] + f | 0, h[1] = h[1] + E | 0, h[2] = h[2] + o | 0, h[3] = h[3] + i | 0, h[4] = h[4] + s | 0, h[5] = h[5] + F | 0, h[6] = h[6] + D | 0, h[7] = h[7] +
|
|
1735
|
+
h[0] = h[0] + f | 0, h[1] = h[1] + E | 0, h[2] = h[2] + o | 0, h[3] = h[3] + i | 0, h[4] = h[4] + s | 0, h[5] = h[5] + F | 0, h[6] = h[6] + D | 0, h[7] = h[7] + _ | 0;
|
|
1737
1736
|
},
|
|
1738
1737
|
_doFinalize: function() {
|
|
1739
1738
|
var l = this._data, c = l.words, h = this._nDataBytes * 8, f = l.sigBytes * 8;
|
|
@@ -1744,19 +1743,19 @@ function Cr() {
|
|
|
1744
1743
|
return l._hash = this._hash.clone(), l;
|
|
1745
1744
|
}
|
|
1746
1745
|
});
|
|
1747
|
-
u.SHA256 = p._createHelper(
|
|
1748
|
-
})(Math),
|
|
1746
|
+
u.SHA256 = p._createHelper(n), u.HmacSHA256 = p._createHmacHelper(n);
|
|
1747
|
+
})(Math), t.SHA256;
|
|
1749
1748
|
});
|
|
1750
1749
|
})(R0)), R0.exports;
|
|
1751
1750
|
}
|
|
1752
1751
|
var $0 = { exports: {} }, gt = $0.exports, Ur;
|
|
1753
1752
|
function bt() {
|
|
1754
1753
|
return Ur || (Ur = 1, (function(r, d) {
|
|
1755
|
-
(function(
|
|
1754
|
+
(function(t, e, u) {
|
|
1756
1755
|
r.exports = e(U(), Cr());
|
|
1757
|
-
})(gt, function(
|
|
1756
|
+
})(gt, function(t) {
|
|
1758
1757
|
return (function() {
|
|
1759
|
-
var e =
|
|
1758
|
+
var e = t, u = e.lib, v = u.WordArray, g = e.algo, p = g.SHA256, C = g.SHA224 = p.extend({
|
|
1760
1759
|
_doReset: function() {
|
|
1761
1760
|
this._hash = new v.init([
|
|
1762
1761
|
3238371032,
|
|
@@ -1770,113 +1769,113 @@ function bt() {
|
|
|
1770
1769
|
]);
|
|
1771
1770
|
},
|
|
1772
1771
|
_doFinalize: function() {
|
|
1773
|
-
var
|
|
1774
|
-
return
|
|
1772
|
+
var x = p._doFinalize.call(this);
|
|
1773
|
+
return x.sigBytes -= 4, x;
|
|
1775
1774
|
}
|
|
1776
1775
|
});
|
|
1777
1776
|
e.SHA224 = p._createHelper(C), e.HmacSHA224 = p._createHmacHelper(C);
|
|
1778
|
-
})(),
|
|
1777
|
+
})(), t.SHA224;
|
|
1779
1778
|
});
|
|
1780
1779
|
})($0)), $0.exports;
|
|
1781
1780
|
}
|
|
1782
|
-
var z0 = { exports: {} },
|
|
1783
|
-
function
|
|
1781
|
+
var z0 = { exports: {} }, mt = z0.exports, jr;
|
|
1782
|
+
function me() {
|
|
1784
1783
|
return jr || (jr = 1, (function(r, d) {
|
|
1785
|
-
(function(
|
|
1784
|
+
(function(t, e, u) {
|
|
1786
1785
|
r.exports = e(U(), sr());
|
|
1787
|
-
})(
|
|
1786
|
+
})(mt, function(t) {
|
|
1788
1787
|
return (function() {
|
|
1789
|
-
var e =
|
|
1790
|
-
function
|
|
1788
|
+
var e = t, u = e.lib, v = u.Hasher, g = e.x64, p = g.Word, C = g.WordArray, x = e.algo;
|
|
1789
|
+
function a() {
|
|
1791
1790
|
return p.create.apply(p, arguments);
|
|
1792
1791
|
}
|
|
1793
1792
|
var A = [
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
],
|
|
1793
|
+
a(1116352408, 3609767458),
|
|
1794
|
+
a(1899447441, 602891725),
|
|
1795
|
+
a(3049323471, 3964484399),
|
|
1796
|
+
a(3921009573, 2173295548),
|
|
1797
|
+
a(961987163, 4081628472),
|
|
1798
|
+
a(1508970993, 3053834265),
|
|
1799
|
+
a(2453635748, 2937671579),
|
|
1800
|
+
a(2870763221, 3664609560),
|
|
1801
|
+
a(3624381080, 2734883394),
|
|
1802
|
+
a(310598401, 1164996542),
|
|
1803
|
+
a(607225278, 1323610764),
|
|
1804
|
+
a(1426881987, 3590304994),
|
|
1805
|
+
a(1925078388, 4068182383),
|
|
1806
|
+
a(2162078206, 991336113),
|
|
1807
|
+
a(2614888103, 633803317),
|
|
1808
|
+
a(3248222580, 3479774868),
|
|
1809
|
+
a(3835390401, 2666613458),
|
|
1810
|
+
a(4022224774, 944711139),
|
|
1811
|
+
a(264347078, 2341262773),
|
|
1812
|
+
a(604807628, 2007800933),
|
|
1813
|
+
a(770255983, 1495990901),
|
|
1814
|
+
a(1249150122, 1856431235),
|
|
1815
|
+
a(1555081692, 3175218132),
|
|
1816
|
+
a(1996064986, 2198950837),
|
|
1817
|
+
a(2554220882, 3999719339),
|
|
1818
|
+
a(2821834349, 766784016),
|
|
1819
|
+
a(2952996808, 2566594879),
|
|
1820
|
+
a(3210313671, 3203337956),
|
|
1821
|
+
a(3336571891, 1034457026),
|
|
1822
|
+
a(3584528711, 2466948901),
|
|
1823
|
+
a(113926993, 3758326383),
|
|
1824
|
+
a(338241895, 168717936),
|
|
1825
|
+
a(666307205, 1188179964),
|
|
1826
|
+
a(773529912, 1546045734),
|
|
1827
|
+
a(1294757372, 1522805485),
|
|
1828
|
+
a(1396182291, 2643833823),
|
|
1829
|
+
a(1695183700, 2343527390),
|
|
1830
|
+
a(1986661051, 1014477480),
|
|
1831
|
+
a(2177026350, 1206759142),
|
|
1832
|
+
a(2456956037, 344077627),
|
|
1833
|
+
a(2730485921, 1290863460),
|
|
1834
|
+
a(2820302411, 3158454273),
|
|
1835
|
+
a(3259730800, 3505952657),
|
|
1836
|
+
a(3345764771, 106217008),
|
|
1837
|
+
a(3516065817, 3606008344),
|
|
1838
|
+
a(3600352804, 1432725776),
|
|
1839
|
+
a(4094571909, 1467031594),
|
|
1840
|
+
a(275423344, 851169720),
|
|
1841
|
+
a(430227734, 3100823752),
|
|
1842
|
+
a(506948616, 1363258195),
|
|
1843
|
+
a(659060556, 3750685593),
|
|
1844
|
+
a(883997877, 3785050280),
|
|
1845
|
+
a(958139571, 3318307427),
|
|
1846
|
+
a(1322822218, 3812723403),
|
|
1847
|
+
a(1537002063, 2003034995),
|
|
1848
|
+
a(1747873779, 3602036899),
|
|
1849
|
+
a(1955562222, 1575990012),
|
|
1850
|
+
a(2024104815, 1125592928),
|
|
1851
|
+
a(2227730452, 2716904306),
|
|
1852
|
+
a(2361852424, 442776044),
|
|
1853
|
+
a(2428436474, 593698344),
|
|
1854
|
+
a(2756734187, 3733110249),
|
|
1855
|
+
a(3204031479, 2999351573),
|
|
1856
|
+
a(3329325298, 3815920427),
|
|
1857
|
+
a(3391569614, 3928383900),
|
|
1858
|
+
a(3515267271, 566280711),
|
|
1859
|
+
a(3940187606, 3454069534),
|
|
1860
|
+
a(4118630271, 4000239992),
|
|
1861
|
+
a(116418474, 1914138554),
|
|
1862
|
+
a(174292421, 2731055270),
|
|
1863
|
+
a(289380356, 3203993006),
|
|
1864
|
+
a(460393269, 320620315),
|
|
1865
|
+
a(685471733, 587496836),
|
|
1866
|
+
a(852142971, 1086792851),
|
|
1867
|
+
a(1017036298, 365543100),
|
|
1868
|
+
a(1126000580, 2618297676),
|
|
1869
|
+
a(1288033470, 3409855158),
|
|
1870
|
+
a(1501505948, 4234509866),
|
|
1871
|
+
a(1607167915, 987167468),
|
|
1872
|
+
a(1816402316, 1246189591)
|
|
1873
|
+
], n = [];
|
|
1875
1874
|
(function() {
|
|
1876
1875
|
for (var c = 0; c < 80; c++)
|
|
1877
|
-
|
|
1876
|
+
n[c] = a();
|
|
1878
1877
|
})();
|
|
1879
|
-
var l =
|
|
1878
|
+
var l = x.SHA512 = v.extend({
|
|
1880
1879
|
_doReset: function() {
|
|
1881
1880
|
this._hash = new C.init([
|
|
1882
1881
|
new p.init(1779033703, 4089235720),
|
|
@@ -1890,18 +1889,18 @@ function _e() {
|
|
|
1890
1889
|
]);
|
|
1891
1890
|
},
|
|
1892
1891
|
_doProcessBlock: function(c, h) {
|
|
1893
|
-
for (var f = this._hash.words, E = f[0], o = f[1], i = f[2], s = f[3], F = f[4], D = f[5],
|
|
1894
|
-
var
|
|
1895
|
-
if (
|
|
1896
|
-
r0 = D0.high = c[h +
|
|
1892
|
+
for (var f = this._hash.words, E = f[0], o = f[1], i = f[2], s = f[3], F = f[4], D = f[5], _ = f[6], w = f[7], z = E.high, B = E.low, m = o.high, P = o.low, H = i.high, L = i.low, q = s.high, y = s.low, $ = F.high, W = F.low, O = D.high, I = D.low, b = _.high, k = _.low, R = w.high, S = w.low, N = z, T = B, j = m, M = P, Y = H, x0 = L, cr = q, u0 = y, Q = $, X = W, A0 = O, l0 = I, F0 = b, d0 = k, fr = R, h0 = S, V = 0; V < 80; V++) {
|
|
1893
|
+
var Z, r0, D0 = n[V];
|
|
1894
|
+
if (V < 16)
|
|
1895
|
+
r0 = D0.high = c[h + V * 2] | 0, Z = D0.low = c[h + V * 2 + 1] | 0;
|
|
1897
1896
|
else {
|
|
1898
|
-
var Ar =
|
|
1899
|
-
|
|
1897
|
+
var Ar = n[V - 15], o0 = Ar.high, v0 = Ar.low, Se = (o0 >>> 1 | v0 << 31) ^ (o0 >>> 8 | v0 << 24) ^ o0 >>> 7, Fr = (v0 >>> 1 | o0 << 31) ^ (v0 >>> 8 | o0 << 24) ^ (v0 >>> 7 | o0 << 25), Dr = n[V - 2], i0 = Dr.high, p0 = Dr.low, He = (i0 >>> 19 | p0 << 13) ^ (i0 << 3 | p0 >>> 29) ^ i0 >>> 6, gr = (p0 >>> 19 | i0 << 13) ^ (p0 << 3 | i0 >>> 29) ^ (p0 >>> 6 | i0 << 26), br = n[V - 7], Pe = br.high, Re = br.low, mr = n[V - 16], $e = mr.high, _r = mr.low;
|
|
1898
|
+
Z = Fr + Re, r0 = Se + Pe + (Z >>> 0 < Fr >>> 0 ? 1 : 0), Z = Z + gr, r0 = r0 + He + (Z >>> 0 < gr >>> 0 ? 1 : 0), Z = Z + _r, r0 = r0 + $e + (Z >>> 0 < _r >>> 0 ? 1 : 0), D0.high = r0, D0.low = Z;
|
|
1900
1899
|
}
|
|
1901
|
-
var ze =
|
|
1902
|
-
fr = F0, h0 =
|
|
1900
|
+
var ze = Q & A0 ^ ~Q & F0, yr = X & l0 ^ ~X & d0, Ie = N & j ^ N & Y ^ j & Y, We = T & M ^ T & x0 ^ M & x0, Oe = (N >>> 28 | T << 4) ^ (N << 30 | T >>> 2) ^ (N << 25 | T >>> 7), wr = (T >>> 28 | N << 4) ^ (T << 30 | N >>> 2) ^ (T << 25 | N >>> 7), Le = (Q >>> 14 | X << 18) ^ (Q >>> 18 | X << 14) ^ (Q << 23 | X >>> 9), qe = (X >>> 14 | Q << 18) ^ (X >>> 18 | Q << 14) ^ (X << 23 | Q >>> 9), kr = A[V], Te = kr.high, Sr = kr.low, G = h0 + qe, e0 = fr + Le + (G >>> 0 < h0 >>> 0 ? 1 : 0), G = G + yr, e0 = e0 + ze + (G >>> 0 < yr >>> 0 ? 1 : 0), G = G + Sr, e0 = e0 + Te + (G >>> 0 < Sr >>> 0 ? 1 : 0), G = G + Z, e0 = e0 + r0 + (G >>> 0 < Z >>> 0 ? 1 : 0), Hr = wr + We, Me = Oe + Ie + (Hr >>> 0 < wr >>> 0 ? 1 : 0);
|
|
1901
|
+
fr = F0, h0 = d0, F0 = A0, d0 = l0, A0 = Q, l0 = X, X = u0 + G | 0, Q = cr + e0 + (X >>> 0 < u0 >>> 0 ? 1 : 0) | 0, cr = Y, u0 = x0, Y = j, x0 = M, j = N, M = T, T = G + Hr | 0, N = e0 + Me + (T >>> 0 < G >>> 0 ? 1 : 0) | 0;
|
|
1903
1902
|
}
|
|
1904
|
-
B = E.low = B + T, E.high = z + N + (B >>> 0 < T >>> 0 ? 1 : 0), P = o.low = P + M, o.high =
|
|
1903
|
+
B = E.low = B + T, E.high = z + N + (B >>> 0 < T >>> 0 ? 1 : 0), P = o.low = P + M, o.high = m + j + (P >>> 0 < M >>> 0 ? 1 : 0), L = i.low = L + x0, i.high = H + Y + (L >>> 0 < x0 >>> 0 ? 1 : 0), y = s.low = y + u0, s.high = q + cr + (y >>> 0 < u0 >>> 0 ? 1 : 0), W = F.low = W + X, F.high = $ + Q + (W >>> 0 < X >>> 0 ? 1 : 0), I = D.low = I + l0, D.high = O + A0 + (I >>> 0 < l0 >>> 0 ? 1 : 0), k = _.low = k + d0, _.high = b + F0 + (k >>> 0 < d0 >>> 0 ? 1 : 0), S = w.low = S + h0, w.high = R + fr + (S >>> 0 < h0 >>> 0 ? 1 : 0);
|
|
1905
1904
|
},
|
|
1906
1905
|
_doFinalize: function() {
|
|
1907
1906
|
var c = this._data, h = c.words, f = this._nDataBytes * 8, E = c.sigBytes * 8;
|
|
@@ -1916,18 +1915,18 @@ function _e() {
|
|
|
1916
1915
|
blockSize: 1024 / 32
|
|
1917
1916
|
});
|
|
1918
1917
|
e.SHA512 = v._createHelper(l), e.HmacSHA512 = v._createHmacHelper(l);
|
|
1919
|
-
})(),
|
|
1918
|
+
})(), t.SHA512;
|
|
1920
1919
|
});
|
|
1921
1920
|
})(z0)), z0.exports;
|
|
1922
1921
|
}
|
|
1923
|
-
var I0 = { exports: {} },
|
|
1922
|
+
var I0 = { exports: {} }, _t = I0.exports, Kr;
|
|
1924
1923
|
function yt() {
|
|
1925
1924
|
return Kr || (Kr = 1, (function(r, d) {
|
|
1926
|
-
(function(
|
|
1927
|
-
r.exports = e(U(), sr(),
|
|
1928
|
-
})(
|
|
1925
|
+
(function(t, e, u) {
|
|
1926
|
+
r.exports = e(U(), sr(), me());
|
|
1927
|
+
})(_t, function(t) {
|
|
1929
1928
|
return (function() {
|
|
1930
|
-
var e =
|
|
1929
|
+
var e = t, u = e.x64, v = u.Word, g = u.WordArray, p = e.algo, C = p.SHA512, x = p.SHA384 = C.extend({
|
|
1931
1930
|
_doReset: function() {
|
|
1932
1931
|
this._hash = new g.init([
|
|
1933
1932
|
new v.init(3418070365, 3238371032),
|
|
@@ -1941,23 +1940,23 @@ function yt() {
|
|
|
1941
1940
|
]);
|
|
1942
1941
|
},
|
|
1943
1942
|
_doFinalize: function() {
|
|
1944
|
-
var
|
|
1945
|
-
return
|
|
1943
|
+
var a = C._doFinalize.call(this);
|
|
1944
|
+
return a.sigBytes -= 16, a;
|
|
1946
1945
|
}
|
|
1947
1946
|
});
|
|
1948
|
-
e.SHA384 = C._createHelper(
|
|
1949
|
-
})(),
|
|
1947
|
+
e.SHA384 = C._createHelper(x), e.HmacSHA384 = C._createHmacHelper(x);
|
|
1948
|
+
})(), t.SHA384;
|
|
1950
1949
|
});
|
|
1951
1950
|
})(I0)), I0.exports;
|
|
1952
1951
|
}
|
|
1953
|
-
var W0 = { exports: {} }, wt = W0.exports,
|
|
1952
|
+
var W0 = { exports: {} }, wt = W0.exports, Xr;
|
|
1954
1953
|
function kt() {
|
|
1955
|
-
return
|
|
1956
|
-
(function(
|
|
1954
|
+
return Xr || (Xr = 1, (function(r, d) {
|
|
1955
|
+
(function(t, e, u) {
|
|
1957
1956
|
r.exports = e(U(), sr());
|
|
1958
|
-
})(wt, function(
|
|
1957
|
+
})(wt, function(t) {
|
|
1959
1958
|
return (function(e) {
|
|
1960
|
-
var u =
|
|
1959
|
+
var u = t, v = u.lib, g = v.WordArray, p = v.Hasher, C = u.x64, x = C.Word, a = u.algo, A = [], n = [], l = [];
|
|
1961
1960
|
(function() {
|
|
1962
1961
|
for (var f = 1, E = 0, o = 0; o < 24; o++) {
|
|
1963
1962
|
A[f + 5 * E] = (o + 1) * (o + 2) / 2 % 64;
|
|
@@ -1966,24 +1965,24 @@ function kt() {
|
|
|
1966
1965
|
}
|
|
1967
1966
|
for (var f = 0; f < 5; f++)
|
|
1968
1967
|
for (var E = 0; E < 5; E++)
|
|
1969
|
-
|
|
1968
|
+
n[f + 5 * E] = E + (2 * f + 3 * E) % 5 * 5;
|
|
1970
1969
|
for (var F = 1, D = 0; D < 24; D++) {
|
|
1971
|
-
for (var
|
|
1970
|
+
for (var _ = 0, w = 0, z = 0; z < 7; z++) {
|
|
1972
1971
|
if (F & 1) {
|
|
1973
1972
|
var B = (1 << z) - 1;
|
|
1974
|
-
B < 32 ? w ^= 1 << B :
|
|
1973
|
+
B < 32 ? w ^= 1 << B : _ ^= 1 << B - 32;
|
|
1975
1974
|
}
|
|
1976
1975
|
F & 128 ? F = F << 1 ^ 113 : F <<= 1;
|
|
1977
1976
|
}
|
|
1978
|
-
l[D] =
|
|
1977
|
+
l[D] = x.create(_, w);
|
|
1979
1978
|
}
|
|
1980
1979
|
})();
|
|
1981
1980
|
var c = [];
|
|
1982
1981
|
(function() {
|
|
1983
1982
|
for (var f = 0; f < 25; f++)
|
|
1984
|
-
c[f] =
|
|
1983
|
+
c[f] = x.create();
|
|
1985
1984
|
})();
|
|
1986
|
-
var h =
|
|
1985
|
+
var h = a.SHA3 = p.extend({
|
|
1987
1986
|
/**
|
|
1988
1987
|
* Configuration options.
|
|
1989
1988
|
*
|
|
@@ -1997,45 +1996,45 @@ function kt() {
|
|
|
1997
1996
|
}),
|
|
1998
1997
|
_doReset: function() {
|
|
1999
1998
|
for (var f = this._state = [], E = 0; E < 25; E++)
|
|
2000
|
-
f[E] = new
|
|
1999
|
+
f[E] = new x.init();
|
|
2001
2000
|
this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32;
|
|
2002
2001
|
},
|
|
2003
2002
|
_doProcessBlock: function(f, E) {
|
|
2004
2003
|
for (var o = this._state, i = this.blockSize / 2, s = 0; s < i; s++) {
|
|
2005
2004
|
var F = f[E + 2 * s], D = f[E + 2 * s + 1];
|
|
2006
2005
|
F = (F << 8 | F >>> 24) & 16711935 | (F << 24 | F >>> 8) & 4278255360, D = (D << 8 | D >>> 24) & 16711935 | (D << 24 | D >>> 8) & 4278255360;
|
|
2007
|
-
var
|
|
2008
|
-
|
|
2006
|
+
var _ = o[s];
|
|
2007
|
+
_.high ^= D, _.low ^= F;
|
|
2009
2008
|
}
|
|
2010
2009
|
for (var w = 0; w < 24; w++) {
|
|
2011
2010
|
for (var z = 0; z < 5; z++) {
|
|
2012
|
-
for (var B = 0,
|
|
2013
|
-
var
|
|
2014
|
-
B ^=
|
|
2011
|
+
for (var B = 0, m = 0, P = 0; P < 5; P++) {
|
|
2012
|
+
var _ = o[z + 5 * P];
|
|
2013
|
+
B ^= _.high, m ^= _.low;
|
|
2015
2014
|
}
|
|
2016
2015
|
var H = c[z];
|
|
2017
|
-
H.high = B, H.low =
|
|
2016
|
+
H.high = B, H.low = m;
|
|
2018
2017
|
}
|
|
2019
2018
|
for (var z = 0; z < 5; z++)
|
|
2020
|
-
for (var L = c[(z + 4) % 5], q = c[(z + 1) % 5], y = q.high, $ = q.low, B = L.high ^ (y << 1 | $ >>> 31),
|
|
2021
|
-
var
|
|
2022
|
-
|
|
2019
|
+
for (var L = c[(z + 4) % 5], q = c[(z + 1) % 5], y = q.high, $ = q.low, B = L.high ^ (y << 1 | $ >>> 31), m = L.low ^ ($ << 1 | y >>> 31), P = 0; P < 5; P++) {
|
|
2020
|
+
var _ = o[z + 5 * P];
|
|
2021
|
+
_.high ^= B, _.low ^= m;
|
|
2023
2022
|
}
|
|
2024
2023
|
for (var W = 1; W < 25; W++) {
|
|
2025
|
-
var B,
|
|
2026
|
-
b < 32 ? (B = O << b | I >>> 32 - b,
|
|
2027
|
-
var k = c[
|
|
2028
|
-
k.high = B, k.low =
|
|
2024
|
+
var B, m, _ = o[W], O = _.high, I = _.low, b = A[W];
|
|
2025
|
+
b < 32 ? (B = O << b | I >>> 32 - b, m = I << b | O >>> 32 - b) : (B = I << b - 32 | O >>> 64 - b, m = O << b - 32 | I >>> 64 - b);
|
|
2026
|
+
var k = c[n[W]];
|
|
2027
|
+
k.high = B, k.low = m;
|
|
2029
2028
|
}
|
|
2030
2029
|
var R = c[0], S = o[0];
|
|
2031
2030
|
R.high = S.high, R.low = S.low;
|
|
2032
2031
|
for (var z = 0; z < 5; z++)
|
|
2033
2032
|
for (var P = 0; P < 5; P++) {
|
|
2034
|
-
var W = z + 5 * P,
|
|
2035
|
-
|
|
2033
|
+
var W = z + 5 * P, _ = o[W], N = c[W], T = c[(z + 1) % 5 + 5 * P], j = c[(z + 2) % 5 + 5 * P];
|
|
2034
|
+
_.high = N.high ^ ~T.high & j.high, _.low = N.low ^ ~T.low & j.low;
|
|
2036
2035
|
}
|
|
2037
|
-
var
|
|
2038
|
-
|
|
2036
|
+
var _ = o[0], M = l[w];
|
|
2037
|
+
_.high ^= M.high, _.low ^= M.low;
|
|
2039
2038
|
}
|
|
2040
2039
|
},
|
|
2041
2040
|
_doFinalize: function() {
|
|
@@ -2043,11 +2042,11 @@ function kt() {
|
|
|
2043
2042
|
this._nDataBytes * 8;
|
|
2044
2043
|
var o = f.sigBytes * 8, i = this.blockSize * 32;
|
|
2045
2044
|
E[o >>> 5] |= 1 << 24 - o % 32, E[(e.ceil((o + 1) / i) * i >>> 5) - 1] |= 128, f.sigBytes = E.length * 4, this._process();
|
|
2046
|
-
for (var s = this._state, F = this.cfg.outputLength / 8, D = F / 8,
|
|
2047
|
-
var z = s[w], B = z.high,
|
|
2048
|
-
B = (B << 8 | B >>> 24) & 16711935 | (B << 24 | B >>> 8) & 4278255360,
|
|
2045
|
+
for (var s = this._state, F = this.cfg.outputLength / 8, D = F / 8, _ = [], w = 0; w < D; w++) {
|
|
2046
|
+
var z = s[w], B = z.high, m = z.low;
|
|
2047
|
+
B = (B << 8 | B >>> 24) & 16711935 | (B << 24 | B >>> 8) & 4278255360, m = (m << 8 | m >>> 24) & 16711935 | (m << 24 | m >>> 8) & 4278255360, _.push(m), _.push(B);
|
|
2049
2048
|
}
|
|
2050
|
-
return new g.init(
|
|
2049
|
+
return new g.init(_, F);
|
|
2051
2050
|
},
|
|
2052
2051
|
clone: function() {
|
|
2053
2052
|
for (var f = p.clone.call(this), E = f._state = this._state.slice(0), o = 0; o < 25; o++)
|
|
@@ -2056,18 +2055,18 @@ function kt() {
|
|
|
2056
2055
|
}
|
|
2057
2056
|
});
|
|
2058
2057
|
u.SHA3 = p._createHelper(h), u.HmacSHA3 = p._createHmacHelper(h);
|
|
2059
|
-
})(Math),
|
|
2058
|
+
})(Math), t.SHA3;
|
|
2060
2059
|
});
|
|
2061
2060
|
})(W0)), W0.exports;
|
|
2062
2061
|
}
|
|
2063
|
-
var O0 = { exports: {} }, St = O0.exports,
|
|
2062
|
+
var O0 = { exports: {} }, St = O0.exports, Gr;
|
|
2064
2063
|
function Ht() {
|
|
2065
|
-
return
|
|
2066
|
-
(function(
|
|
2064
|
+
return Gr || (Gr = 1, (function(r, d) {
|
|
2065
|
+
(function(t, e) {
|
|
2067
2066
|
r.exports = e(U());
|
|
2068
|
-
})(St, function(
|
|
2067
|
+
})(St, function(t) {
|
|
2069
2068
|
return (function(e) {
|
|
2070
|
-
var u =
|
|
2069
|
+
var u = t, v = u.lib, g = v.WordArray, p = v.Hasher, C = u.algo, x = g.create([
|
|
2071
2070
|
0,
|
|
2072
2071
|
1,
|
|
2073
2072
|
2,
|
|
@@ -2148,7 +2147,7 @@ function Ht() {
|
|
|
2148
2147
|
6,
|
|
2149
2148
|
15,
|
|
2150
2149
|
13
|
|
2151
|
-
]),
|
|
2150
|
+
]), a = g.create([
|
|
2152
2151
|
5,
|
|
2153
2152
|
14,
|
|
2154
2153
|
7,
|
|
@@ -2310,7 +2309,7 @@ function Ht() {
|
|
|
2310
2309
|
8,
|
|
2311
2310
|
5,
|
|
2312
2311
|
6
|
|
2313
|
-
]),
|
|
2312
|
+
]), n = g.create([
|
|
2314
2313
|
8,
|
|
2315
2314
|
9,
|
|
2316
2315
|
9,
|
|
@@ -2395,23 +2394,23 @@ function Ht() {
|
|
|
2395
2394
|
_doReset: function() {
|
|
2396
2395
|
this._hash = g.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
|
|
2397
2396
|
},
|
|
2398
|
-
_doProcessBlock: function(D,
|
|
2397
|
+
_doProcessBlock: function(D, _) {
|
|
2399
2398
|
for (var w = 0; w < 16; w++) {
|
|
2400
|
-
var z =
|
|
2399
|
+
var z = _ + w, B = D[z];
|
|
2401
2400
|
D[z] = (B << 8 | B >>> 24) & 16711935 | (B << 24 | B >>> 8) & 4278255360;
|
|
2402
2401
|
}
|
|
2403
|
-
var
|
|
2404
|
-
R = W =
|
|
2402
|
+
var m = this._hash.words, P = l.words, H = c.words, L = x.words, q = a.words, y = A.words, $ = n.words, W, O, I, b, k, R, S, N, T, j;
|
|
2403
|
+
R = W = m[0], S = O = m[1], N = I = m[2], T = b = m[3], j = k = m[4];
|
|
2405
2404
|
for (var M, w = 0; w < 80; w += 1)
|
|
2406
|
-
M = W + D[
|
|
2407
|
-
M =
|
|
2405
|
+
M = W + D[_ + L[w]] | 0, w < 16 ? M += f(O, I, b) + P[0] : w < 32 ? M += E(O, I, b) + P[1] : w < 48 ? M += o(O, I, b) + P[2] : w < 64 ? M += i(O, I, b) + P[3] : M += s(O, I, b) + P[4], M = M | 0, M = F(M, y[w]), M = M + k | 0, W = k, k = b, b = F(I, 10), I = O, O = M, M = R + D[_ + q[w]] | 0, w < 16 ? M += s(S, N, T) + H[0] : w < 32 ? M += i(S, N, T) + H[1] : w < 48 ? M += o(S, N, T) + H[2] : w < 64 ? M += E(S, N, T) + H[3] : M += f(S, N, T) + H[4], M = M | 0, M = F(M, $[w]), M = M + j | 0, R = j, j = T, T = F(N, 10), N = S, S = M;
|
|
2406
|
+
M = m[1] + I + T | 0, m[1] = m[2] + b + j | 0, m[2] = m[3] + k + R | 0, m[3] = m[4] + W + S | 0, m[4] = m[0] + O + N | 0, m[0] = M;
|
|
2408
2407
|
},
|
|
2409
2408
|
_doFinalize: function() {
|
|
2410
|
-
var D = this._data,
|
|
2411
|
-
|
|
2412
|
-
for (var B = this._hash,
|
|
2413
|
-
var H =
|
|
2414
|
-
|
|
2409
|
+
var D = this._data, _ = D.words, w = this._nDataBytes * 8, z = D.sigBytes * 8;
|
|
2410
|
+
_[z >>> 5] |= 128 << 24 - z % 32, _[(z + 64 >>> 9 << 4) + 14] = (w << 8 | w >>> 24) & 16711935 | (w << 24 | w >>> 8) & 4278255360, D.sigBytes = (_.length + 1) * 4, this._process();
|
|
2411
|
+
for (var B = this._hash, m = B.words, P = 0; P < 5; P++) {
|
|
2412
|
+
var H = m[P];
|
|
2413
|
+
m[P] = (H << 8 | H >>> 24) & 16711935 | (H << 24 | H >>> 8) & 4278255360;
|
|
2415
2414
|
}
|
|
2416
2415
|
return B;
|
|
2417
2416
|
},
|
|
@@ -2420,37 +2419,37 @@ function Ht() {
|
|
|
2420
2419
|
return D._hash = this._hash.clone(), D;
|
|
2421
2420
|
}
|
|
2422
2421
|
});
|
|
2423
|
-
function f(D,
|
|
2424
|
-
return D ^
|
|
2422
|
+
function f(D, _, w) {
|
|
2423
|
+
return D ^ _ ^ w;
|
|
2425
2424
|
}
|
|
2426
|
-
function E(D,
|
|
2427
|
-
return D &
|
|
2425
|
+
function E(D, _, w) {
|
|
2426
|
+
return D & _ | ~D & w;
|
|
2428
2427
|
}
|
|
2429
|
-
function o(D,
|
|
2430
|
-
return (D | ~
|
|
2428
|
+
function o(D, _, w) {
|
|
2429
|
+
return (D | ~_) ^ w;
|
|
2431
2430
|
}
|
|
2432
|
-
function i(D,
|
|
2433
|
-
return D & w |
|
|
2431
|
+
function i(D, _, w) {
|
|
2432
|
+
return D & w | _ & ~w;
|
|
2434
2433
|
}
|
|
2435
|
-
function s(D,
|
|
2436
|
-
return D ^ (
|
|
2434
|
+
function s(D, _, w) {
|
|
2435
|
+
return D ^ (_ | ~w);
|
|
2437
2436
|
}
|
|
2438
|
-
function F(D,
|
|
2439
|
-
return D <<
|
|
2437
|
+
function F(D, _) {
|
|
2438
|
+
return D << _ | D >>> 32 - _;
|
|
2440
2439
|
}
|
|
2441
2440
|
u.RIPEMD160 = p._createHelper(h), u.HmacRIPEMD160 = p._createHmacHelper(h);
|
|
2442
|
-
})(),
|
|
2441
|
+
})(), t.RIPEMD160;
|
|
2443
2442
|
});
|
|
2444
2443
|
})(O0)), O0.exports;
|
|
2445
2444
|
}
|
|
2446
2445
|
var L0 = { exports: {} }, Pt = L0.exports, Yr;
|
|
2447
2446
|
function Er() {
|
|
2448
2447
|
return Yr || (Yr = 1, (function(r, d) {
|
|
2449
|
-
(function(
|
|
2448
|
+
(function(t, e) {
|
|
2450
2449
|
r.exports = e(U());
|
|
2451
|
-
})(Pt, function(
|
|
2450
|
+
})(Pt, function(t) {
|
|
2452
2451
|
(function() {
|
|
2453
|
-
var e =
|
|
2452
|
+
var e = t, u = e.lib, v = u.Base, g = e.enc, p = g.Utf8, C = e.algo;
|
|
2454
2453
|
C.HMAC = v.extend({
|
|
2455
2454
|
/**
|
|
2456
2455
|
* Initializes a newly created HMAC.
|
|
@@ -2462,13 +2461,13 @@ function Er() {
|
|
|
2462
2461
|
*
|
|
2463
2462
|
* var hmacHasher = CryptoJS.algo.HMAC.create(CryptoJS.algo.SHA256, key);
|
|
2464
2463
|
*/
|
|
2465
|
-
init: function(
|
|
2466
|
-
|
|
2467
|
-
var A =
|
|
2468
|
-
|
|
2469
|
-
for (var l = this._oKey =
|
|
2464
|
+
init: function(x, a) {
|
|
2465
|
+
x = this._hasher = new x.init(), typeof a == "string" && (a = p.parse(a));
|
|
2466
|
+
var A = x.blockSize, n = A * 4;
|
|
2467
|
+
a.sigBytes > n && (a = x.finalize(a)), a.clamp();
|
|
2468
|
+
for (var l = this._oKey = a.clone(), c = this._iKey = a.clone(), h = l.words, f = c.words, E = 0; E < A; E++)
|
|
2470
2469
|
h[E] ^= 1549556828, f[E] ^= 909522486;
|
|
2471
|
-
l.sigBytes = c.sigBytes =
|
|
2470
|
+
l.sigBytes = c.sigBytes = n, this.reset();
|
|
2472
2471
|
},
|
|
2473
2472
|
/**
|
|
2474
2473
|
* Resets this HMAC to its initial state.
|
|
@@ -2478,8 +2477,8 @@ function Er() {
|
|
|
2478
2477
|
* hmacHasher.reset();
|
|
2479
2478
|
*/
|
|
2480
2479
|
reset: function() {
|
|
2481
|
-
var
|
|
2482
|
-
|
|
2480
|
+
var x = this._hasher;
|
|
2481
|
+
x.reset(), x.update(this._iKey);
|
|
2483
2482
|
},
|
|
2484
2483
|
/**
|
|
2485
2484
|
* Updates this HMAC with a message.
|
|
@@ -2493,8 +2492,8 @@ function Er() {
|
|
|
2493
2492
|
* hmacHasher.update('message');
|
|
2494
2493
|
* hmacHasher.update(wordArray);
|
|
2495
2494
|
*/
|
|
2496
|
-
update: function(
|
|
2497
|
-
return this._hasher.update(
|
|
2495
|
+
update: function(x) {
|
|
2496
|
+
return this._hasher.update(x), this;
|
|
2498
2497
|
},
|
|
2499
2498
|
/**
|
|
2500
2499
|
* Finalizes the HMAC computation.
|
|
@@ -2510,11 +2509,11 @@ function Er() {
|
|
|
2510
2509
|
* var hmac = hmacHasher.finalize('message');
|
|
2511
2510
|
* var hmac = hmacHasher.finalize(wordArray);
|
|
2512
2511
|
*/
|
|
2513
|
-
finalize: function(
|
|
2514
|
-
var
|
|
2515
|
-
|
|
2516
|
-
var
|
|
2517
|
-
return
|
|
2512
|
+
finalize: function(x) {
|
|
2513
|
+
var a = this._hasher, A = a.finalize(x);
|
|
2514
|
+
a.reset();
|
|
2515
|
+
var n = a.finalize(this._oKey.clone().concat(A));
|
|
2516
|
+
return n;
|
|
2518
2517
|
}
|
|
2519
2518
|
});
|
|
2520
2519
|
})();
|
|
@@ -2524,11 +2523,11 @@ function Er() {
|
|
|
2524
2523
|
var q0 = { exports: {} }, Rt = q0.exports, Zr;
|
|
2525
2524
|
function $t() {
|
|
2526
2525
|
return Zr || (Zr = 1, (function(r, d) {
|
|
2527
|
-
(function(
|
|
2526
|
+
(function(t, e, u) {
|
|
2528
2527
|
r.exports = e(U(), Cr(), Er());
|
|
2529
|
-
})(Rt, function(
|
|
2528
|
+
})(Rt, function(t) {
|
|
2530
2529
|
return (function() {
|
|
2531
|
-
var e =
|
|
2530
|
+
var e = t, u = e.lib, v = u.Base, g = u.WordArray, p = e.algo, C = p.SHA256, x = p.HMAC, a = p.PBKDF2 = v.extend({
|
|
2532
2531
|
/**
|
|
2533
2532
|
* Configuration options.
|
|
2534
2533
|
*
|
|
@@ -2567,35 +2566,35 @@ function $t() {
|
|
|
2567
2566
|
*
|
|
2568
2567
|
* var key = kdf.compute(password, salt);
|
|
2569
2568
|
*/
|
|
2570
|
-
compute: function(A,
|
|
2571
|
-
for (var l = this.cfg, c =
|
|
2572
|
-
var F = c.update(
|
|
2569
|
+
compute: function(A, n) {
|
|
2570
|
+
for (var l = this.cfg, c = x.create(l.hasher, A), h = g.create(), f = g.create([1]), E = h.words, o = f.words, i = l.keySize, s = l.iterations; E.length < i; ) {
|
|
2571
|
+
var F = c.update(n).finalize(f);
|
|
2573
2572
|
c.reset();
|
|
2574
|
-
for (var D = F.words,
|
|
2573
|
+
for (var D = F.words, _ = D.length, w = F, z = 1; z < s; z++) {
|
|
2575
2574
|
w = c.finalize(w), c.reset();
|
|
2576
|
-
for (var B = w.words,
|
|
2577
|
-
D[
|
|
2575
|
+
for (var B = w.words, m = 0; m < _; m++)
|
|
2576
|
+
D[m] ^= B[m];
|
|
2578
2577
|
}
|
|
2579
2578
|
h.concat(F), o[0]++;
|
|
2580
2579
|
}
|
|
2581
2580
|
return h.sigBytes = i * 4, h;
|
|
2582
2581
|
}
|
|
2583
2582
|
});
|
|
2584
|
-
e.PBKDF2 = function(A,
|
|
2585
|
-
return
|
|
2583
|
+
e.PBKDF2 = function(A, n, l) {
|
|
2584
|
+
return a.create(l).compute(A, n);
|
|
2586
2585
|
};
|
|
2587
|
-
})(),
|
|
2586
|
+
})(), t.PBKDF2;
|
|
2588
2587
|
});
|
|
2589
2588
|
})(q0)), q0.exports;
|
|
2590
2589
|
}
|
|
2591
2590
|
var T0 = { exports: {} }, zt = T0.exports, Qr;
|
|
2592
2591
|
function t0() {
|
|
2593
2592
|
return Qr || (Qr = 1, (function(r, d) {
|
|
2594
|
-
(function(
|
|
2593
|
+
(function(t, e, u) {
|
|
2595
2594
|
r.exports = e(U(), be(), Er());
|
|
2596
|
-
})(zt, function(
|
|
2595
|
+
})(zt, function(t) {
|
|
2597
2596
|
return (function() {
|
|
2598
|
-
var e =
|
|
2597
|
+
var e = t, u = e.lib, v = u.Base, g = u.WordArray, p = e.algo, C = p.MD5, x = p.EvpKDF = v.extend({
|
|
2599
2598
|
/**
|
|
2600
2599
|
* Configuration options.
|
|
2601
2600
|
*
|
|
@@ -2619,8 +2618,8 @@ function t0() {
|
|
|
2619
2618
|
* var kdf = CryptoJS.algo.EvpKDF.create({ keySize: 8 });
|
|
2620
2619
|
* var kdf = CryptoJS.algo.EvpKDF.create({ keySize: 8, iterations: 1000 });
|
|
2621
2620
|
*/
|
|
2622
|
-
init: function(
|
|
2623
|
-
this.cfg = this.cfg.extend(
|
|
2621
|
+
init: function(a) {
|
|
2622
|
+
this.cfg = this.cfg.extend(a);
|
|
2624
2623
|
},
|
|
2625
2624
|
/**
|
|
2626
2625
|
* Derives a key from a password.
|
|
@@ -2634,33 +2633,33 @@ function t0() {
|
|
|
2634
2633
|
*
|
|
2635
2634
|
* var key = kdf.compute(password, salt);
|
|
2636
2635
|
*/
|
|
2637
|
-
compute: function(
|
|
2638
|
-
for (var
|
|
2639
|
-
|
|
2636
|
+
compute: function(a, A) {
|
|
2637
|
+
for (var n, l = this.cfg, c = l.hasher.create(), h = g.create(), f = h.words, E = l.keySize, o = l.iterations; f.length < E; ) {
|
|
2638
|
+
n && c.update(n), n = c.update(a).finalize(A), c.reset();
|
|
2640
2639
|
for (var i = 1; i < o; i++)
|
|
2641
|
-
|
|
2642
|
-
h.concat(
|
|
2640
|
+
n = c.finalize(n), c.reset();
|
|
2641
|
+
h.concat(n);
|
|
2643
2642
|
}
|
|
2644
2643
|
return h.sigBytes = E * 4, h;
|
|
2645
2644
|
}
|
|
2646
2645
|
});
|
|
2647
|
-
e.EvpKDF = function(
|
|
2648
|
-
return
|
|
2646
|
+
e.EvpKDF = function(a, A, n) {
|
|
2647
|
+
return x.create(n).compute(a, A);
|
|
2649
2648
|
};
|
|
2650
|
-
})(),
|
|
2649
|
+
})(), t.EvpKDF;
|
|
2651
2650
|
});
|
|
2652
2651
|
})(T0)), T0.exports;
|
|
2653
2652
|
}
|
|
2654
2653
|
var M0 = { exports: {} }, It = M0.exports, Vr;
|
|
2655
2654
|
function K() {
|
|
2656
2655
|
return Vr || (Vr = 1, (function(r, d) {
|
|
2657
|
-
(function(
|
|
2656
|
+
(function(t, e, u) {
|
|
2658
2657
|
r.exports = e(U(), t0());
|
|
2659
|
-
})(It, function(
|
|
2660
|
-
|
|
2661
|
-
var u =
|
|
2662
|
-
|
|
2663
|
-
var
|
|
2658
|
+
})(It, function(t) {
|
|
2659
|
+
t.lib.Cipher || (function(e) {
|
|
2660
|
+
var u = t, v = u.lib, g = v.Base, p = v.WordArray, C = v.BufferedBlockAlgorithm, x = u.enc;
|
|
2661
|
+
x.Utf8;
|
|
2662
|
+
var a = x.Base64, A = u.algo, n = A.EvpKDF, l = v.Cipher = C.extend({
|
|
2664
2663
|
/**
|
|
2665
2664
|
* Configuration options.
|
|
2666
2665
|
*
|
|
@@ -2681,8 +2680,8 @@ function K() {
|
|
|
2681
2680
|
*
|
|
2682
2681
|
* var cipher = CryptoJS.algo.AES.createEncryptor(keyWordArray, { iv: ivWordArray });
|
|
2683
2682
|
*/
|
|
2684
|
-
createEncryptor: function(B,
|
|
2685
|
-
return this.create(this._ENC_XFORM_MODE, B,
|
|
2683
|
+
createEncryptor: function(B, m) {
|
|
2684
|
+
return this.create(this._ENC_XFORM_MODE, B, m);
|
|
2686
2685
|
},
|
|
2687
2686
|
/**
|
|
2688
2687
|
* Creates this cipher in decryption mode.
|
|
@@ -2698,8 +2697,8 @@ function K() {
|
|
|
2698
2697
|
*
|
|
2699
2698
|
* var cipher = CryptoJS.algo.AES.createDecryptor(keyWordArray, { iv: ivWordArray });
|
|
2700
2699
|
*/
|
|
2701
|
-
createDecryptor: function(B,
|
|
2702
|
-
return this.create(this._DEC_XFORM_MODE, B,
|
|
2700
|
+
createDecryptor: function(B, m) {
|
|
2701
|
+
return this.create(this._DEC_XFORM_MODE, B, m);
|
|
2703
2702
|
},
|
|
2704
2703
|
/**
|
|
2705
2704
|
* Initializes a newly created cipher.
|
|
@@ -2712,8 +2711,8 @@ function K() {
|
|
|
2712
2711
|
*
|
|
2713
2712
|
* var cipher = CryptoJS.algo.AES.create(CryptoJS.algo.AES._ENC_XFORM_MODE, keyWordArray, { iv: ivWordArray });
|
|
2714
2713
|
*/
|
|
2715
|
-
init: function(B,
|
|
2716
|
-
this.cfg = this.cfg.extend(P), this._xformMode = B, this._key =
|
|
2714
|
+
init: function(B, m, P) {
|
|
2715
|
+
this.cfg = this.cfg.extend(P), this._xformMode = B, this._key = m, this.reset();
|
|
2717
2716
|
},
|
|
2718
2717
|
/**
|
|
2719
2718
|
* Resets this cipher to its initial state.
|
|
@@ -2756,8 +2755,8 @@ function K() {
|
|
|
2756
2755
|
*/
|
|
2757
2756
|
finalize: function(B) {
|
|
2758
2757
|
B && this._append(B);
|
|
2759
|
-
var
|
|
2760
|
-
return
|
|
2758
|
+
var m = this._doFinalize();
|
|
2759
|
+
return m;
|
|
2761
2760
|
},
|
|
2762
2761
|
keySize: 128 / 32,
|
|
2763
2762
|
ivSize: 128 / 32,
|
|
@@ -2777,16 +2776,16 @@ function K() {
|
|
|
2777
2776
|
* var AES = CryptoJS.lib.Cipher._createHelper(CryptoJS.algo.AES);
|
|
2778
2777
|
*/
|
|
2779
2778
|
_createHelper: /* @__PURE__ */ (function() {
|
|
2780
|
-
function B(
|
|
2781
|
-
return typeof
|
|
2779
|
+
function B(m) {
|
|
2780
|
+
return typeof m == "string" ? z : D;
|
|
2782
2781
|
}
|
|
2783
|
-
return function(
|
|
2782
|
+
return function(m) {
|
|
2784
2783
|
return {
|
|
2785
2784
|
encrypt: function(P, H, L) {
|
|
2786
|
-
return B(H).encrypt(
|
|
2785
|
+
return B(H).encrypt(m, P, H, L);
|
|
2787
2786
|
},
|
|
2788
2787
|
decrypt: function(P, H, L) {
|
|
2789
|
-
return B(H).decrypt(
|
|
2788
|
+
return B(H).decrypt(m, P, H, L);
|
|
2790
2789
|
}
|
|
2791
2790
|
};
|
|
2792
2791
|
};
|
|
@@ -2812,8 +2811,8 @@ function K() {
|
|
|
2812
2811
|
*
|
|
2813
2812
|
* var mode = CryptoJS.mode.CBC.createEncryptor(cipher, iv.words);
|
|
2814
2813
|
*/
|
|
2815
|
-
createEncryptor: function(B,
|
|
2816
|
-
return this.Encryptor.create(B,
|
|
2814
|
+
createEncryptor: function(B, m) {
|
|
2815
|
+
return this.Encryptor.create(B, m);
|
|
2817
2816
|
},
|
|
2818
2817
|
/**
|
|
2819
2818
|
* Creates this mode for decryption.
|
|
@@ -2827,8 +2826,8 @@ function K() {
|
|
|
2827
2826
|
*
|
|
2828
2827
|
* var mode = CryptoJS.mode.CBC.createDecryptor(cipher, iv.words);
|
|
2829
2828
|
*/
|
|
2830
|
-
createDecryptor: function(B,
|
|
2831
|
-
return this.Decryptor.create(B,
|
|
2829
|
+
createDecryptor: function(B, m) {
|
|
2830
|
+
return this.Decryptor.create(B, m);
|
|
2832
2831
|
},
|
|
2833
2832
|
/**
|
|
2834
2833
|
* Initializes a newly created mode.
|
|
@@ -2840,8 +2839,8 @@ function K() {
|
|
|
2840
2839
|
*
|
|
2841
2840
|
* var mode = CryptoJS.mode.CBC.Encryptor.create(cipher, iv.words);
|
|
2842
2841
|
*/
|
|
2843
|
-
init: function(B,
|
|
2844
|
-
this._cipher = B, this._iv =
|
|
2842
|
+
init: function(B, m) {
|
|
2843
|
+
this._cipher = B, this._iv = m;
|
|
2845
2844
|
}
|
|
2846
2845
|
}), f = c.CBC = (function() {
|
|
2847
2846
|
var B = h.extend();
|
|
@@ -2858,7 +2857,7 @@ function K() {
|
|
|
2858
2857
|
*/
|
|
2859
2858
|
processBlock: function(P, H) {
|
|
2860
2859
|
var L = this._cipher, q = L.blockSize;
|
|
2861
|
-
|
|
2860
|
+
m.call(this, P, H, q), L.encryptBlock(P, H), this._prevBlock = P.slice(H, H + q);
|
|
2862
2861
|
}
|
|
2863
2862
|
}), B.Decryptor = B.extend({
|
|
2864
2863
|
/**
|
|
@@ -2873,10 +2872,10 @@ function K() {
|
|
|
2873
2872
|
*/
|
|
2874
2873
|
processBlock: function(P, H) {
|
|
2875
2874
|
var L = this._cipher, q = L.blockSize, y = P.slice(H, H + q);
|
|
2876
|
-
L.decryptBlock(P, H),
|
|
2875
|
+
L.decryptBlock(P, H), m.call(this, P, H, q), this._prevBlock = y;
|
|
2877
2876
|
}
|
|
2878
2877
|
});
|
|
2879
|
-
function
|
|
2878
|
+
function m(P, H, L) {
|
|
2880
2879
|
var q, y = this._iv;
|
|
2881
2880
|
y ? (q = y, this._iv = e) : q = this._prevBlock;
|
|
2882
2881
|
for (var $ = 0; $ < L; $++)
|
|
@@ -2896,8 +2895,8 @@ function K() {
|
|
|
2896
2895
|
*
|
|
2897
2896
|
* CryptoJS.pad.Pkcs7.pad(wordArray, 4);
|
|
2898
2897
|
*/
|
|
2899
|
-
pad: function(B,
|
|
2900
|
-
for (var P =
|
|
2898
|
+
pad: function(B, m) {
|
|
2899
|
+
for (var P = m * 4, H = P - B.sigBytes % P, L = H << 24 | H << 16 | H << 8 | H, q = [], y = 0; y < H; y += 4)
|
|
2901
2900
|
q.push(L);
|
|
2902
2901
|
var $ = p.create(q, H);
|
|
2903
2902
|
B.concat($);
|
|
@@ -2914,8 +2913,8 @@ function K() {
|
|
|
2914
2913
|
* CryptoJS.pad.Pkcs7.unpad(wordArray);
|
|
2915
2914
|
*/
|
|
2916
2915
|
unpad: function(B) {
|
|
2917
|
-
var
|
|
2918
|
-
B.sigBytes -=
|
|
2916
|
+
var m = B.words[B.sigBytes - 1 >>> 2] & 255;
|
|
2917
|
+
B.sigBytes -= m;
|
|
2919
2918
|
}
|
|
2920
2919
|
};
|
|
2921
2920
|
v.BlockCipher = l.extend({
|
|
@@ -2932,15 +2931,15 @@ function K() {
|
|
|
2932
2931
|
reset: function() {
|
|
2933
2932
|
var B;
|
|
2934
2933
|
l.reset.call(this);
|
|
2935
|
-
var
|
|
2934
|
+
var m = this.cfg, P = m.iv, H = m.mode;
|
|
2936
2935
|
this._xformMode == this._ENC_XFORM_MODE ? B = H.createEncryptor : (B = H.createDecryptor, this._minBufferSize = 1), this._mode && this._mode.__creator == B ? this._mode.init(this, P && P.words) : (this._mode = B.call(H, this, P && P.words), this._mode.__creator = B);
|
|
2937
2936
|
},
|
|
2938
|
-
_doProcessBlock: function(B,
|
|
2939
|
-
this._mode.processBlock(B,
|
|
2937
|
+
_doProcessBlock: function(B, m) {
|
|
2938
|
+
this._mode.processBlock(B, m);
|
|
2940
2939
|
},
|
|
2941
2940
|
_doFinalize: function() {
|
|
2942
|
-
var B,
|
|
2943
|
-
return this._xformMode == this._ENC_XFORM_MODE ? (
|
|
2941
|
+
var B, m = this.cfg.padding;
|
|
2942
|
+
return this._xformMode == this._ENC_XFORM_MODE ? (m.pad(this._data, this.blockSize), B = this._process(!0)) : (B = this._process(!0), m.unpad(B)), B;
|
|
2944
2943
|
},
|
|
2945
2944
|
blockSize: 128 / 32
|
|
2946
2945
|
});
|
|
@@ -3000,8 +2999,8 @@ function K() {
|
|
|
3000
2999
|
* var openSSLString = CryptoJS.format.OpenSSL.stringify(cipherParams);
|
|
3001
3000
|
*/
|
|
3002
3001
|
stringify: function(B) {
|
|
3003
|
-
var
|
|
3004
|
-
return H ?
|
|
3002
|
+
var m, P = B.ciphertext, H = B.salt;
|
|
3003
|
+
return H ? m = p.create([1398893684, 1701076831]).concat(H).concat(P) : m = P, m.toString(a);
|
|
3005
3004
|
},
|
|
3006
3005
|
/**
|
|
3007
3006
|
* Converts an OpenSSL-compatible string to a cipher params object.
|
|
@@ -3017,8 +3016,8 @@ function K() {
|
|
|
3017
3016
|
* var cipherParams = CryptoJS.format.OpenSSL.parse(openSSLString);
|
|
3018
3017
|
*/
|
|
3019
3018
|
parse: function(B) {
|
|
3020
|
-
var
|
|
3021
|
-
return H[0] == 1398893684 && H[1] == 1701076831 && (
|
|
3019
|
+
var m, P = a.parse(B), H = P.words;
|
|
3020
|
+
return H[0] == 1398893684 && H[1] == 1701076831 && (m = p.create(H.slice(2, 4)), H.splice(0, 4), P.sigBytes -= 16), i.create({ ciphertext: P, salt: m });
|
|
3022
3021
|
}
|
|
3023
3022
|
}, D = v.SerializableCipher = g.extend({
|
|
3024
3023
|
/**
|
|
@@ -3047,9 +3046,9 @@ function K() {
|
|
|
3047
3046
|
* var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv });
|
|
3048
3047
|
* var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv, format: CryptoJS.format.OpenSSL });
|
|
3049
3048
|
*/
|
|
3050
|
-
encrypt: function(B,
|
|
3049
|
+
encrypt: function(B, m, P, H) {
|
|
3051
3050
|
H = this.cfg.extend(H);
|
|
3052
|
-
var L = B.createEncryptor(P, H), q = L.finalize(
|
|
3051
|
+
var L = B.createEncryptor(P, H), q = L.finalize(m), y = L.cfg;
|
|
3053
3052
|
return i.create({
|
|
3054
3053
|
ciphertext: q,
|
|
3055
3054
|
key: P,
|
|
@@ -3078,9 +3077,9 @@ function K() {
|
|
|
3078
3077
|
* var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, key, { iv: iv, format: CryptoJS.format.OpenSSL });
|
|
3079
3078
|
* var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, key, { iv: iv, format: CryptoJS.format.OpenSSL });
|
|
3080
3079
|
*/
|
|
3081
|
-
decrypt: function(B,
|
|
3082
|
-
H = this.cfg.extend(H),
|
|
3083
|
-
var L = B.createDecryptor(P, H).finalize(
|
|
3080
|
+
decrypt: function(B, m, P, H) {
|
|
3081
|
+
H = this.cfg.extend(H), m = this._parse(m, H.format);
|
|
3082
|
+
var L = B.createDecryptor(P, H).finalize(m.ciphertext);
|
|
3084
3083
|
return L;
|
|
3085
3084
|
},
|
|
3086
3085
|
/**
|
|
@@ -3098,10 +3097,10 @@ function K() {
|
|
|
3098
3097
|
*
|
|
3099
3098
|
* var ciphertextParams = CryptoJS.lib.SerializableCipher._parse(ciphertextStringOrParams, format);
|
|
3100
3099
|
*/
|
|
3101
|
-
_parse: function(B,
|
|
3102
|
-
return typeof B == "string" ?
|
|
3100
|
+
_parse: function(B, m) {
|
|
3101
|
+
return typeof B == "string" ? m.parse(B, this) : B;
|
|
3103
3102
|
}
|
|
3104
|
-
}),
|
|
3103
|
+
}), _ = u.kdf = {}, w = _.OpenSSL = {
|
|
3105
3104
|
/**
|
|
3106
3105
|
* Derives a key and IV from a password.
|
|
3107
3106
|
*
|
|
@@ -3119,13 +3118,13 @@ function K() {
|
|
|
3119
3118
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);
|
|
3120
3119
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
|
|
3121
3120
|
*/
|
|
3122
|
-
execute: function(B,
|
|
3121
|
+
execute: function(B, m, P, H, L) {
|
|
3123
3122
|
if (H || (H = p.random(64 / 8)), L)
|
|
3124
|
-
var q =
|
|
3123
|
+
var q = n.create({ keySize: m + P, hasher: L }).compute(B, H);
|
|
3125
3124
|
else
|
|
3126
|
-
var q =
|
|
3127
|
-
var y = p.create(q.words.slice(
|
|
3128
|
-
return q.sigBytes =
|
|
3125
|
+
var q = n.create({ keySize: m + P }).compute(B, H);
|
|
3126
|
+
var y = p.create(q.words.slice(m), P * 4);
|
|
3127
|
+
return q.sigBytes = m * 4, i.create({ key: q, iv: y, salt: H });
|
|
3129
3128
|
}
|
|
3130
3129
|
}, z = v.PasswordBasedCipher = D.extend({
|
|
3131
3130
|
/**
|
|
@@ -3153,11 +3152,11 @@ function K() {
|
|
|
3153
3152
|
* var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password');
|
|
3154
3153
|
* var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password', { format: CryptoJS.format.OpenSSL });
|
|
3155
3154
|
*/
|
|
3156
|
-
encrypt: function(B,
|
|
3155
|
+
encrypt: function(B, m, P, H) {
|
|
3157
3156
|
H = this.cfg.extend(H);
|
|
3158
3157
|
var L = H.kdf.execute(P, B.keySize, B.ivSize, H.salt, H.hasher);
|
|
3159
3158
|
H.iv = L.iv;
|
|
3160
|
-
var q = D.encrypt.call(this, B,
|
|
3159
|
+
var q = D.encrypt.call(this, B, m, L.key, H);
|
|
3161
3160
|
return q.mixIn(L), q;
|
|
3162
3161
|
},
|
|
3163
3162
|
/**
|
|
@@ -3177,11 +3176,11 @@ function K() {
|
|
|
3177
3176
|
* var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, 'password', { format: CryptoJS.format.OpenSSL });
|
|
3178
3177
|
* var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, 'password', { format: CryptoJS.format.OpenSSL });
|
|
3179
3178
|
*/
|
|
3180
|
-
decrypt: function(B,
|
|
3181
|
-
H = this.cfg.extend(H),
|
|
3182
|
-
var L = H.kdf.execute(P, B.keySize, B.ivSize,
|
|
3179
|
+
decrypt: function(B, m, P, H) {
|
|
3180
|
+
H = this.cfg.extend(H), m = this._parse(m, H.format);
|
|
3181
|
+
var L = H.kdf.execute(P, B.keySize, B.ivSize, m.salt, H.hasher);
|
|
3183
3182
|
H.iv = L.iv;
|
|
3184
|
-
var q = D.decrypt.call(this, B,
|
|
3183
|
+
var q = D.decrypt.call(this, B, m, L.key, H);
|
|
3185
3184
|
return q;
|
|
3186
3185
|
}
|
|
3187
3186
|
});
|
|
@@ -3192,11 +3191,11 @@ function K() {
|
|
|
3192
3191
|
var N0 = { exports: {} }, Wt = N0.exports, Jr;
|
|
3193
3192
|
function Ot() {
|
|
3194
3193
|
return Jr || (Jr = 1, (function(r, d) {
|
|
3195
|
-
(function(
|
|
3194
|
+
(function(t, e, u) {
|
|
3196
3195
|
r.exports = e(U(), K());
|
|
3197
|
-
})(Wt, function(
|
|
3198
|
-
return
|
|
3199
|
-
var e =
|
|
3196
|
+
})(Wt, function(t) {
|
|
3197
|
+
return t.mode.CFB = (function() {
|
|
3198
|
+
var e = t.lib.BlockCipherMode.extend();
|
|
3200
3199
|
e.Encryptor = e.extend({
|
|
3201
3200
|
processBlock: function(v, g) {
|
|
3202
3201
|
var p = this._cipher, C = p.blockSize;
|
|
@@ -3204,55 +3203,55 @@ function Ot() {
|
|
|
3204
3203
|
}
|
|
3205
3204
|
}), e.Decryptor = e.extend({
|
|
3206
3205
|
processBlock: function(v, g) {
|
|
3207
|
-
var p = this._cipher, C = p.blockSize,
|
|
3208
|
-
u.call(this, v, g, C, p), this._prevBlock =
|
|
3206
|
+
var p = this._cipher, C = p.blockSize, x = v.slice(g, g + C);
|
|
3207
|
+
u.call(this, v, g, C, p), this._prevBlock = x;
|
|
3209
3208
|
}
|
|
3210
3209
|
});
|
|
3211
3210
|
function u(v, g, p, C) {
|
|
3212
|
-
var
|
|
3213
|
-
|
|
3211
|
+
var x, a = this._iv;
|
|
3212
|
+
a ? (x = a.slice(0), this._iv = void 0) : x = this._prevBlock, C.encryptBlock(x, 0);
|
|
3214
3213
|
for (var A = 0; A < p; A++)
|
|
3215
|
-
v[g + A] ^=
|
|
3214
|
+
v[g + A] ^= x[A];
|
|
3216
3215
|
}
|
|
3217
3216
|
return e;
|
|
3218
|
-
})(),
|
|
3217
|
+
})(), t.mode.CFB;
|
|
3219
3218
|
});
|
|
3220
3219
|
})(N0)), N0.exports;
|
|
3221
3220
|
}
|
|
3222
3221
|
var U0 = { exports: {} }, Lt = U0.exports, re;
|
|
3223
3222
|
function qt() {
|
|
3224
3223
|
return re || (re = 1, (function(r, d) {
|
|
3225
|
-
(function(
|
|
3224
|
+
(function(t, e, u) {
|
|
3226
3225
|
r.exports = e(U(), K());
|
|
3227
|
-
})(Lt, function(
|
|
3228
|
-
return
|
|
3229
|
-
var e =
|
|
3226
|
+
})(Lt, function(t) {
|
|
3227
|
+
return t.mode.CTR = (function() {
|
|
3228
|
+
var e = t.lib.BlockCipherMode.extend(), u = e.Encryptor = e.extend({
|
|
3230
3229
|
processBlock: function(v, g) {
|
|
3231
|
-
var p = this._cipher, C = p.blockSize,
|
|
3232
|
-
|
|
3233
|
-
var A =
|
|
3234
|
-
p.encryptBlock(A, 0),
|
|
3235
|
-
for (var
|
|
3236
|
-
v[g +
|
|
3230
|
+
var p = this._cipher, C = p.blockSize, x = this._iv, a = this._counter;
|
|
3231
|
+
x && (a = this._counter = x.slice(0), this._iv = void 0);
|
|
3232
|
+
var A = a.slice(0);
|
|
3233
|
+
p.encryptBlock(A, 0), a[C - 1] = a[C - 1] + 1 | 0;
|
|
3234
|
+
for (var n = 0; n < C; n++)
|
|
3235
|
+
v[g + n] ^= A[n];
|
|
3237
3236
|
}
|
|
3238
3237
|
});
|
|
3239
3238
|
return e.Decryptor = u, e;
|
|
3240
|
-
})(),
|
|
3239
|
+
})(), t.mode.CTR;
|
|
3241
3240
|
});
|
|
3242
3241
|
})(U0)), U0.exports;
|
|
3243
3242
|
}
|
|
3244
3243
|
var j0 = { exports: {} }, Tt = j0.exports, ee;
|
|
3245
3244
|
function Mt() {
|
|
3246
3245
|
return ee || (ee = 1, (function(r, d) {
|
|
3247
|
-
(function(
|
|
3246
|
+
(function(t, e, u) {
|
|
3248
3247
|
r.exports = e(U(), K());
|
|
3249
|
-
})(Tt, function(
|
|
3250
|
-
return
|
|
3251
|
-
var e =
|
|
3248
|
+
})(Tt, function(t) {
|
|
3249
|
+
return t.mode.CTRGladman = (function() {
|
|
3250
|
+
var e = t.lib.BlockCipherMode.extend();
|
|
3252
3251
|
function u(p) {
|
|
3253
3252
|
if ((p >> 24 & 255) === 255) {
|
|
3254
|
-
var C = p >> 16 & 255,
|
|
3255
|
-
C === 255 ? (C = 0,
|
|
3253
|
+
var C = p >> 16 & 255, x = p >> 8 & 255, a = p & 255;
|
|
3254
|
+
C === 255 ? (C = 0, x === 255 ? (x = 0, a === 255 ? a = 0 : ++a) : ++x) : ++C, p = 0, p += C << 16, p += x << 8, p += a;
|
|
3256
3255
|
} else
|
|
3257
3256
|
p += 1 << 24;
|
|
3258
3257
|
return p;
|
|
@@ -3262,47 +3261,47 @@ function Mt() {
|
|
|
3262
3261
|
}
|
|
3263
3262
|
var g = e.Encryptor = e.extend({
|
|
3264
3263
|
processBlock: function(p, C) {
|
|
3265
|
-
var
|
|
3266
|
-
A && (
|
|
3267
|
-
var l =
|
|
3268
|
-
|
|
3269
|
-
for (var c = 0; c <
|
|
3264
|
+
var x = this._cipher, a = x.blockSize, A = this._iv, n = this._counter;
|
|
3265
|
+
A && (n = this._counter = A.slice(0), this._iv = void 0), v(n);
|
|
3266
|
+
var l = n.slice(0);
|
|
3267
|
+
x.encryptBlock(l, 0);
|
|
3268
|
+
for (var c = 0; c < a; c++)
|
|
3270
3269
|
p[C + c] ^= l[c];
|
|
3271
3270
|
}
|
|
3272
3271
|
});
|
|
3273
3272
|
return e.Decryptor = g, e;
|
|
3274
|
-
})(),
|
|
3273
|
+
})(), t.mode.CTRGladman;
|
|
3275
3274
|
});
|
|
3276
3275
|
})(j0)), j0.exports;
|
|
3277
3276
|
}
|
|
3278
3277
|
var K0 = { exports: {} }, Nt = K0.exports, te;
|
|
3279
3278
|
function Ut() {
|
|
3280
3279
|
return te || (te = 1, (function(r, d) {
|
|
3281
|
-
(function(
|
|
3280
|
+
(function(t, e, u) {
|
|
3282
3281
|
r.exports = e(U(), K());
|
|
3283
|
-
})(Nt, function(
|
|
3284
|
-
return
|
|
3285
|
-
var e =
|
|
3282
|
+
})(Nt, function(t) {
|
|
3283
|
+
return t.mode.OFB = (function() {
|
|
3284
|
+
var e = t.lib.BlockCipherMode.extend(), u = e.Encryptor = e.extend({
|
|
3286
3285
|
processBlock: function(v, g) {
|
|
3287
|
-
var p = this._cipher, C = p.blockSize,
|
|
3288
|
-
|
|
3286
|
+
var p = this._cipher, C = p.blockSize, x = this._iv, a = this._keystream;
|
|
3287
|
+
x && (a = this._keystream = x.slice(0), this._iv = void 0), p.encryptBlock(a, 0);
|
|
3289
3288
|
for (var A = 0; A < C; A++)
|
|
3290
|
-
v[g + A] ^=
|
|
3289
|
+
v[g + A] ^= a[A];
|
|
3291
3290
|
}
|
|
3292
3291
|
});
|
|
3293
3292
|
return e.Decryptor = u, e;
|
|
3294
|
-
})(),
|
|
3293
|
+
})(), t.mode.OFB;
|
|
3295
3294
|
});
|
|
3296
3295
|
})(K0)), K0.exports;
|
|
3297
3296
|
}
|
|
3298
|
-
var
|
|
3297
|
+
var X0 = { exports: {} }, jt = X0.exports, xe;
|
|
3299
3298
|
function Kt() {
|
|
3300
3299
|
return xe || (xe = 1, (function(r, d) {
|
|
3301
|
-
(function(
|
|
3300
|
+
(function(t, e, u) {
|
|
3302
3301
|
r.exports = e(U(), K());
|
|
3303
|
-
})(jt, function(
|
|
3304
|
-
return
|
|
3305
|
-
var e =
|
|
3302
|
+
})(jt, function(t) {
|
|
3303
|
+
return t.mode.ECB = (function() {
|
|
3304
|
+
var e = t.lib.BlockCipherMode.extend();
|
|
3306
3305
|
return e.Encryptor = e.extend({
|
|
3307
3306
|
processBlock: function(u, v) {
|
|
3308
3307
|
this._cipher.encryptBlock(u, v);
|
|
@@ -3312,17 +3311,17 @@ function Kt() {
|
|
|
3312
3311
|
this._cipher.decryptBlock(u, v);
|
|
3313
3312
|
}
|
|
3314
3313
|
}), e;
|
|
3315
|
-
})(),
|
|
3314
|
+
})(), t.mode.ECB;
|
|
3316
3315
|
});
|
|
3317
|
-
})(
|
|
3316
|
+
})(X0)), X0.exports;
|
|
3318
3317
|
}
|
|
3319
|
-
var
|
|
3320
|
-
function
|
|
3321
|
-
return
|
|
3322
|
-
(function(
|
|
3318
|
+
var G0 = { exports: {} }, Xt = G0.exports, ae;
|
|
3319
|
+
function Gt() {
|
|
3320
|
+
return ae || (ae = 1, (function(r, d) {
|
|
3321
|
+
(function(t, e, u) {
|
|
3323
3322
|
r.exports = e(U(), K());
|
|
3324
|
-
})(
|
|
3325
|
-
return
|
|
3323
|
+
})(Xt, function(t) {
|
|
3324
|
+
return t.pad.AnsiX923 = {
|
|
3326
3325
|
pad: function(e, u) {
|
|
3327
3326
|
var v = e.sigBytes, g = u * 4, p = g - v % g, C = v + p - 1;
|
|
3328
3327
|
e.clamp(), e.words[C >>> 2] |= p << 24 - C % 4 * 8, e.sigBytes += p;
|
|
@@ -3331,53 +3330,53 @@ function Xt() {
|
|
|
3331
3330
|
var u = e.words[e.sigBytes - 1 >>> 2] & 255;
|
|
3332
3331
|
e.sigBytes -= u;
|
|
3333
3332
|
}
|
|
3334
|
-
},
|
|
3333
|
+
}, t.pad.Ansix923;
|
|
3335
3334
|
});
|
|
3336
|
-
})(
|
|
3335
|
+
})(G0)), G0.exports;
|
|
3337
3336
|
}
|
|
3338
|
-
var Y0 = { exports: {} }, Yt = Y0.exports,
|
|
3337
|
+
var Y0 = { exports: {} }, Yt = Y0.exports, ne;
|
|
3339
3338
|
function Zt() {
|
|
3340
|
-
return
|
|
3341
|
-
(function(
|
|
3339
|
+
return ne || (ne = 1, (function(r, d) {
|
|
3340
|
+
(function(t, e, u) {
|
|
3342
3341
|
r.exports = e(U(), K());
|
|
3343
|
-
})(Yt, function(
|
|
3344
|
-
return
|
|
3342
|
+
})(Yt, function(t) {
|
|
3343
|
+
return t.pad.Iso10126 = {
|
|
3345
3344
|
pad: function(e, u) {
|
|
3346
3345
|
var v = u * 4, g = v - e.sigBytes % v;
|
|
3347
|
-
e.concat(
|
|
3346
|
+
e.concat(t.lib.WordArray.random(g - 1)).concat(t.lib.WordArray.create([g << 24], 1));
|
|
3348
3347
|
},
|
|
3349
3348
|
unpad: function(e) {
|
|
3350
3349
|
var u = e.words[e.sigBytes - 1 >>> 2] & 255;
|
|
3351
3350
|
e.sigBytes -= u;
|
|
3352
3351
|
}
|
|
3353
|
-
},
|
|
3352
|
+
}, t.pad.Iso10126;
|
|
3354
3353
|
});
|
|
3355
3354
|
})(Y0)), Y0.exports;
|
|
3356
3355
|
}
|
|
3357
3356
|
var Z0 = { exports: {} }, Qt = Z0.exports, oe;
|
|
3358
3357
|
function Vt() {
|
|
3359
3358
|
return oe || (oe = 1, (function(r, d) {
|
|
3360
|
-
(function(
|
|
3359
|
+
(function(t, e, u) {
|
|
3361
3360
|
r.exports = e(U(), K());
|
|
3362
|
-
})(Qt, function(
|
|
3363
|
-
return
|
|
3361
|
+
})(Qt, function(t) {
|
|
3362
|
+
return t.pad.Iso97971 = {
|
|
3364
3363
|
pad: function(e, u) {
|
|
3365
|
-
e.concat(
|
|
3364
|
+
e.concat(t.lib.WordArray.create([2147483648], 1)), t.pad.ZeroPadding.pad(e, u);
|
|
3366
3365
|
},
|
|
3367
3366
|
unpad: function(e) {
|
|
3368
|
-
|
|
3367
|
+
t.pad.ZeroPadding.unpad(e), e.sigBytes--;
|
|
3369
3368
|
}
|
|
3370
|
-
},
|
|
3369
|
+
}, t.pad.Iso97971;
|
|
3371
3370
|
});
|
|
3372
3371
|
})(Z0)), Z0.exports;
|
|
3373
3372
|
}
|
|
3374
3373
|
var Q0 = { exports: {} }, Jt = Q0.exports, ie;
|
|
3375
3374
|
function rx() {
|
|
3376
3375
|
return ie || (ie = 1, (function(r, d) {
|
|
3377
|
-
(function(
|
|
3376
|
+
(function(t, e, u) {
|
|
3378
3377
|
r.exports = e(U(), K());
|
|
3379
|
-
})(Jt, function(
|
|
3380
|
-
return
|
|
3378
|
+
})(Jt, function(t) {
|
|
3379
|
+
return t.pad.ZeroPadding = {
|
|
3381
3380
|
pad: function(e, u) {
|
|
3382
3381
|
var v = u * 4;
|
|
3383
3382
|
e.clamp(), e.sigBytes += v - (e.sigBytes % v || v);
|
|
@@ -3389,34 +3388,34 @@ function rx() {
|
|
|
3389
3388
|
break;
|
|
3390
3389
|
}
|
|
3391
3390
|
}
|
|
3392
|
-
},
|
|
3391
|
+
}, t.pad.ZeroPadding;
|
|
3393
3392
|
});
|
|
3394
3393
|
})(Q0)), Q0.exports;
|
|
3395
3394
|
}
|
|
3396
3395
|
var V0 = { exports: {} }, ex = V0.exports, se;
|
|
3397
3396
|
function tx() {
|
|
3398
3397
|
return se || (se = 1, (function(r, d) {
|
|
3399
|
-
(function(
|
|
3398
|
+
(function(t, e, u) {
|
|
3400
3399
|
r.exports = e(U(), K());
|
|
3401
|
-
})(ex, function(
|
|
3402
|
-
return
|
|
3400
|
+
})(ex, function(t) {
|
|
3401
|
+
return t.pad.NoPadding = {
|
|
3403
3402
|
pad: function() {
|
|
3404
3403
|
},
|
|
3405
3404
|
unpad: function() {
|
|
3406
3405
|
}
|
|
3407
|
-
},
|
|
3406
|
+
}, t.pad.NoPadding;
|
|
3408
3407
|
});
|
|
3409
3408
|
})(V0)), V0.exports;
|
|
3410
3409
|
}
|
|
3411
3410
|
var J0 = { exports: {} }, xx = J0.exports, ce;
|
|
3412
|
-
function
|
|
3411
|
+
function ax() {
|
|
3413
3412
|
return ce || (ce = 1, (function(r, d) {
|
|
3414
|
-
(function(
|
|
3413
|
+
(function(t, e, u) {
|
|
3415
3414
|
r.exports = e(U(), K());
|
|
3416
|
-
})(xx, function(
|
|
3415
|
+
})(xx, function(t) {
|
|
3417
3416
|
return (function(e) {
|
|
3418
|
-
var u =
|
|
3419
|
-
|
|
3417
|
+
var u = t, v = u.lib, g = v.CipherParams, p = u.enc, C = p.Hex, x = u.format;
|
|
3418
|
+
x.Hex = {
|
|
3420
3419
|
/**
|
|
3421
3420
|
* Converts the ciphertext of a cipher params object to a hexadecimally encoded string.
|
|
3422
3421
|
*
|
|
@@ -3430,8 +3429,8 @@ function nx() {
|
|
|
3430
3429
|
*
|
|
3431
3430
|
* var hexString = CryptoJS.format.Hex.stringify(cipherParams);
|
|
3432
3431
|
*/
|
|
3433
|
-
stringify: function(
|
|
3434
|
-
return
|
|
3432
|
+
stringify: function(a) {
|
|
3433
|
+
return a.ciphertext.toString(C);
|
|
3435
3434
|
},
|
|
3436
3435
|
/**
|
|
3437
3436
|
* Converts a hexadecimally encoded ciphertext string to a cipher params object.
|
|
@@ -3446,53 +3445,53 @@ function nx() {
|
|
|
3446
3445
|
*
|
|
3447
3446
|
* var cipherParams = CryptoJS.format.Hex.parse(hexString);
|
|
3448
3447
|
*/
|
|
3449
|
-
parse: function(
|
|
3450
|
-
var A = C.parse(
|
|
3448
|
+
parse: function(a) {
|
|
3449
|
+
var A = C.parse(a);
|
|
3451
3450
|
return g.create({ ciphertext: A });
|
|
3452
3451
|
}
|
|
3453
3452
|
};
|
|
3454
|
-
})(),
|
|
3453
|
+
})(), t.format.Hex;
|
|
3455
3454
|
});
|
|
3456
3455
|
})(J0)), J0.exports;
|
|
3457
3456
|
}
|
|
3458
|
-
var rr = { exports: {} },
|
|
3457
|
+
var rr = { exports: {} }, nx = rr.exports, fe;
|
|
3459
3458
|
function ox() {
|
|
3460
3459
|
return fe || (fe = 1, (function(r, d) {
|
|
3461
|
-
(function(
|
|
3462
|
-
r.exports = e(U(),
|
|
3463
|
-
})(
|
|
3460
|
+
(function(t, e, u) {
|
|
3461
|
+
r.exports = e(U(), a0(), n0(), t0(), K());
|
|
3462
|
+
})(nx, function(t) {
|
|
3464
3463
|
return (function() {
|
|
3465
|
-
var e =
|
|
3464
|
+
var e = t, u = e.lib, v = u.BlockCipher, g = e.algo, p = [], C = [], x = [], a = [], A = [], n = [], l = [], c = [], h = [], f = [];
|
|
3466
3465
|
(function() {
|
|
3467
3466
|
for (var i = [], s = 0; s < 256; s++)
|
|
3468
3467
|
s < 128 ? i[s] = s << 1 : i[s] = s << 1 ^ 283;
|
|
3469
3468
|
for (var F = 0, D = 0, s = 0; s < 256; s++) {
|
|
3470
|
-
var
|
|
3471
|
-
|
|
3472
|
-
var w = i[F], z = i[w], B = i[z],
|
|
3473
|
-
|
|
3474
|
-
var
|
|
3475
|
-
l[
|
|
3469
|
+
var _ = D ^ D << 1 ^ D << 2 ^ D << 3 ^ D << 4;
|
|
3470
|
+
_ = _ >>> 8 ^ _ & 255 ^ 99, p[F] = _, C[_] = F;
|
|
3471
|
+
var w = i[F], z = i[w], B = i[z], m = i[_] * 257 ^ _ * 16843008;
|
|
3472
|
+
x[F] = m << 24 | m >>> 8, a[F] = m << 16 | m >>> 16, A[F] = m << 8 | m >>> 24, n[F] = m;
|
|
3473
|
+
var m = B * 16843009 ^ z * 65537 ^ w * 257 ^ F * 16843008;
|
|
3474
|
+
l[_] = m << 24 | m >>> 8, c[_] = m << 16 | m >>> 16, h[_] = m << 8 | m >>> 24, f[_] = m, F ? (F = w ^ i[i[i[B ^ w]]], D ^= i[i[D]]) : F = D = 1;
|
|
3476
3475
|
}
|
|
3477
3476
|
})();
|
|
3478
3477
|
var E = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], o = g.AES = v.extend({
|
|
3479
3478
|
_doReset: function() {
|
|
3480
3479
|
var i;
|
|
3481
3480
|
if (!(this._nRounds && this._keyPriorReset === this._key)) {
|
|
3482
|
-
for (var s = this._keyPriorReset = this._key, F = s.words, D = s.sigBytes / 4,
|
|
3481
|
+
for (var s = this._keyPriorReset = this._key, F = s.words, D = s.sigBytes / 4, _ = this._nRounds = D + 6, w = (_ + 1) * 4, z = this._keySchedule = [], B = 0; B < w; B++)
|
|
3483
3482
|
B < D ? z[B] = F[B] : (i = z[B - 1], B % D ? D > 6 && B % D == 4 && (i = p[i >>> 24] << 24 | p[i >>> 16 & 255] << 16 | p[i >>> 8 & 255] << 8 | p[i & 255]) : (i = i << 8 | i >>> 24, i = p[i >>> 24] << 24 | p[i >>> 16 & 255] << 16 | p[i >>> 8 & 255] << 8 | p[i & 255], i ^= E[B / D | 0] << 24), z[B] = z[B - D] ^ i);
|
|
3484
|
-
for (var
|
|
3483
|
+
for (var m = this._invKeySchedule = [], P = 0; P < w; P++) {
|
|
3485
3484
|
var B = w - P;
|
|
3486
3485
|
if (P % 4)
|
|
3487
3486
|
var i = z[B];
|
|
3488
3487
|
else
|
|
3489
3488
|
var i = z[B - 4];
|
|
3490
|
-
P < 4 || B <= 4 ?
|
|
3489
|
+
P < 4 || B <= 4 ? m[P] = i : m[P] = l[p[i >>> 24]] ^ c[p[i >>> 16 & 255]] ^ h[p[i >>> 8 & 255]] ^ f[p[i & 255]];
|
|
3491
3490
|
}
|
|
3492
3491
|
}
|
|
3493
3492
|
},
|
|
3494
3493
|
encryptBlock: function(i, s) {
|
|
3495
|
-
this._doCryptBlock(i, s, this._keySchedule,
|
|
3494
|
+
this._doCryptBlock(i, s, this._keySchedule, x, a, A, n, p);
|
|
3496
3495
|
},
|
|
3497
3496
|
decryptBlock: function(i, s) {
|
|
3498
3497
|
var F = i[s + 1];
|
|
@@ -3500,9 +3499,9 @@ function ox() {
|
|
|
3500
3499
|
var F = i[s + 1];
|
|
3501
3500
|
i[s + 1] = i[s + 3], i[s + 3] = F;
|
|
3502
3501
|
},
|
|
3503
|
-
_doCryptBlock: function(i, s, F, D,
|
|
3504
|
-
for (var
|
|
3505
|
-
var W = D[P >>> 24] ^
|
|
3502
|
+
_doCryptBlock: function(i, s, F, D, _, w, z, B) {
|
|
3503
|
+
for (var m = this._nRounds, P = i[s] ^ F[0], H = i[s + 1] ^ F[1], L = i[s + 2] ^ F[2], q = i[s + 3] ^ F[3], y = 4, $ = 1; $ < m; $++) {
|
|
3504
|
+
var W = D[P >>> 24] ^ _[H >>> 16 & 255] ^ w[L >>> 8 & 255] ^ z[q & 255] ^ F[y++], O = D[H >>> 24] ^ _[L >>> 16 & 255] ^ w[q >>> 8 & 255] ^ z[P & 255] ^ F[y++], I = D[L >>> 24] ^ _[q >>> 16 & 255] ^ w[P >>> 8 & 255] ^ z[H & 255] ^ F[y++], b = D[q >>> 24] ^ _[P >>> 16 & 255] ^ w[H >>> 8 & 255] ^ z[L & 255] ^ F[y++];
|
|
3506
3505
|
P = W, H = O, L = I, q = b;
|
|
3507
3506
|
}
|
|
3508
3507
|
var W = (B[P >>> 24] << 24 | B[H >>> 16 & 255] << 16 | B[L >>> 8 & 255] << 8 | B[q & 255]) ^ F[y++], O = (B[H >>> 24] << 24 | B[L >>> 16 & 255] << 16 | B[q >>> 8 & 255] << 8 | B[P & 255]) ^ F[y++], I = (B[L >>> 24] << 24 | B[q >>> 16 & 255] << 16 | B[P >>> 8 & 255] << 8 | B[H & 255]) ^ F[y++], b = (B[q >>> 24] << 24 | B[P >>> 16 & 255] << 16 | B[H >>> 8 & 255] << 8 | B[L & 255]) ^ F[y++];
|
|
@@ -3511,18 +3510,18 @@ function ox() {
|
|
|
3511
3510
|
keySize: 256 / 32
|
|
3512
3511
|
});
|
|
3513
3512
|
e.AES = v._createHelper(o);
|
|
3514
|
-
})(),
|
|
3513
|
+
})(), t.AES;
|
|
3515
3514
|
});
|
|
3516
3515
|
})(rr)), rr.exports;
|
|
3517
3516
|
}
|
|
3518
3517
|
var er = { exports: {} }, ix = er.exports, ue;
|
|
3519
3518
|
function sx() {
|
|
3520
3519
|
return ue || (ue = 1, (function(r, d) {
|
|
3521
|
-
(function(
|
|
3522
|
-
r.exports = e(U(),
|
|
3523
|
-
})(ix, function(
|
|
3520
|
+
(function(t, e, u) {
|
|
3521
|
+
r.exports = e(U(), a0(), n0(), t0(), K());
|
|
3522
|
+
})(ix, function(t) {
|
|
3524
3523
|
return (function() {
|
|
3525
|
-
var e =
|
|
3524
|
+
var e = t, u = e.lib, v = u.WordArray, g = u.BlockCipher, p = e.algo, C = [
|
|
3526
3525
|
57,
|
|
3527
3526
|
49,
|
|
3528
3527
|
41,
|
|
@@ -3579,7 +3578,7 @@ function sx() {
|
|
|
3579
3578
|
20,
|
|
3580
3579
|
12,
|
|
3581
3580
|
4
|
|
3582
|
-
],
|
|
3581
|
+
], x = [
|
|
3583
3582
|
14,
|
|
3584
3583
|
17,
|
|
3585
3584
|
11,
|
|
@@ -3628,7 +3627,7 @@ function sx() {
|
|
|
3628
3627
|
36,
|
|
3629
3628
|
29,
|
|
3630
3629
|
32
|
|
3631
|
-
],
|
|
3630
|
+
], a = [1, 2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 23, 25, 27, 28], A = [
|
|
3632
3631
|
{
|
|
3633
3632
|
0: 8421888,
|
|
3634
3633
|
268435456: 32768,
|
|
@@ -4157,7 +4156,7 @@ function sx() {
|
|
|
4157
4156
|
2147483678: 131104,
|
|
4158
4157
|
2147483679: 134350848
|
|
4159
4158
|
}
|
|
4160
|
-
],
|
|
4159
|
+
], n = [
|
|
4161
4160
|
4160749569,
|
|
4162
4161
|
528482304,
|
|
4163
4162
|
33030144,
|
|
@@ -4172,9 +4171,9 @@ function sx() {
|
|
|
4172
4171
|
var F = C[s] - 1;
|
|
4173
4172
|
i[s] = o[F >>> 5] >>> 31 - F % 32 & 1;
|
|
4174
4173
|
}
|
|
4175
|
-
for (var D = this._subKeys = [],
|
|
4176
|
-
for (var w = D[
|
|
4177
|
-
w[s / 6 | 0] |= i[(
|
|
4174
|
+
for (var D = this._subKeys = [], _ = 0; _ < 16; _++) {
|
|
4175
|
+
for (var w = D[_] = [], z = a[_], s = 0; s < 24; s++)
|
|
4176
|
+
w[s / 6 | 0] |= i[(x[s] - 1 + z) % 28] << 31 - s % 6, w[4 + (s / 6 | 0)] |= i[28 + (x[s + 24] - 1 + z) % 28] << 31 - s % 6;
|
|
4178
4177
|
w[0] = w[0] << 1 | w[0] >>> 31;
|
|
4179
4178
|
for (var s = 1; s < 7; s++)
|
|
4180
4179
|
w[s] = w[s] >>> (s - 1) * 4 + 3;
|
|
@@ -4192,9 +4191,9 @@ function sx() {
|
|
|
4192
4191
|
_doCryptBlock: function(E, o, i) {
|
|
4193
4192
|
this._lBlock = E[o], this._rBlock = E[o + 1], c.call(this, 4, 252645135), c.call(this, 16, 65535), h.call(this, 2, 858993459), h.call(this, 8, 16711935), c.call(this, 1, 1431655765);
|
|
4194
4193
|
for (var s = 0; s < 16; s++) {
|
|
4195
|
-
for (var F = i[s], D = this._lBlock,
|
|
4196
|
-
w |= A[z][((
|
|
4197
|
-
this._lBlock =
|
|
4194
|
+
for (var F = i[s], D = this._lBlock, _ = this._rBlock, w = 0, z = 0; z < 8; z++)
|
|
4195
|
+
w |= A[z][((_ ^ F[z]) & n[z]) >>> 0];
|
|
4196
|
+
this._lBlock = _, this._rBlock = D ^ w;
|
|
4198
4197
|
}
|
|
4199
4198
|
var B = this._lBlock;
|
|
4200
4199
|
this._lBlock = this._rBlock, this._rBlock = B, c.call(this, 1, 1431655765), h.call(this, 8, 16711935), h.call(this, 2, 858993459), c.call(this, 16, 65535), c.call(this, 4, 252645135), E[o] = this._lBlock, E[o + 1] = this._rBlock;
|
|
@@ -4231,45 +4230,45 @@ function sx() {
|
|
|
4231
4230
|
blockSize: 64 / 32
|
|
4232
4231
|
});
|
|
4233
4232
|
e.TripleDES = g._createHelper(f);
|
|
4234
|
-
})(),
|
|
4233
|
+
})(), t.TripleDES;
|
|
4235
4234
|
});
|
|
4236
4235
|
})(er)), er.exports;
|
|
4237
4236
|
}
|
|
4238
|
-
var tr = { exports: {} }, cx = tr.exports,
|
|
4237
|
+
var tr = { exports: {} }, cx = tr.exports, le;
|
|
4239
4238
|
function fx() {
|
|
4240
|
-
return
|
|
4241
|
-
(function(
|
|
4242
|
-
r.exports = e(U(),
|
|
4243
|
-
})(cx, function(
|
|
4239
|
+
return le || (le = 1, (function(r, d) {
|
|
4240
|
+
(function(t, e, u) {
|
|
4241
|
+
r.exports = e(U(), a0(), n0(), t0(), K());
|
|
4242
|
+
})(cx, function(t) {
|
|
4244
4243
|
return (function() {
|
|
4245
|
-
var e =
|
|
4244
|
+
var e = t, u = e.lib, v = u.StreamCipher, g = e.algo, p = g.RC4 = v.extend({
|
|
4246
4245
|
_doReset: function() {
|
|
4247
|
-
for (var
|
|
4246
|
+
for (var a = this._key, A = a.words, n = a.sigBytes, l = this._S = [], c = 0; c < 256; c++)
|
|
4248
4247
|
l[c] = c;
|
|
4249
4248
|
for (var c = 0, h = 0; c < 256; c++) {
|
|
4250
|
-
var f = c %
|
|
4249
|
+
var f = c % n, E = A[f >>> 2] >>> 24 - f % 4 * 8 & 255;
|
|
4251
4250
|
h = (h + l[c] + E) % 256;
|
|
4252
4251
|
var o = l[c];
|
|
4253
4252
|
l[c] = l[h], l[h] = o;
|
|
4254
4253
|
}
|
|
4255
4254
|
this._i = this._j = 0;
|
|
4256
4255
|
},
|
|
4257
|
-
_doProcessBlock: function(
|
|
4258
|
-
|
|
4256
|
+
_doProcessBlock: function(a, A) {
|
|
4257
|
+
a[A] ^= C.call(this);
|
|
4259
4258
|
},
|
|
4260
4259
|
keySize: 256 / 32,
|
|
4261
4260
|
ivSize: 0
|
|
4262
4261
|
});
|
|
4263
4262
|
function C() {
|
|
4264
|
-
for (var
|
|
4265
|
-
A = (A + 1) % 256,
|
|
4266
|
-
var h =
|
|
4267
|
-
|
|
4263
|
+
for (var a = this._S, A = this._i, n = this._j, l = 0, c = 0; c < 4; c++) {
|
|
4264
|
+
A = (A + 1) % 256, n = (n + a[A]) % 256;
|
|
4265
|
+
var h = a[A];
|
|
4266
|
+
a[A] = a[n], a[n] = h, l |= a[(a[A] + a[n]) % 256] << 24 - c * 8;
|
|
4268
4267
|
}
|
|
4269
|
-
return this._i = A, this._j =
|
|
4268
|
+
return this._i = A, this._j = n, l;
|
|
4270
4269
|
}
|
|
4271
4270
|
e.RC4 = v._createHelper(p);
|
|
4272
|
-
var
|
|
4271
|
+
var x = g.RC4Drop = p.extend({
|
|
4273
4272
|
/**
|
|
4274
4273
|
* Configuration options.
|
|
4275
4274
|
*
|
|
@@ -4280,44 +4279,44 @@ function fx() {
|
|
|
4280
4279
|
}),
|
|
4281
4280
|
_doReset: function() {
|
|
4282
4281
|
p._doReset.call(this);
|
|
4283
|
-
for (var
|
|
4282
|
+
for (var a = this.cfg.drop; a > 0; a--)
|
|
4284
4283
|
C.call(this);
|
|
4285
4284
|
}
|
|
4286
4285
|
});
|
|
4287
|
-
e.RC4Drop = v._createHelper(
|
|
4288
|
-
})(),
|
|
4286
|
+
e.RC4Drop = v._createHelper(x);
|
|
4287
|
+
})(), t.RC4;
|
|
4289
4288
|
});
|
|
4290
4289
|
})(tr)), tr.exports;
|
|
4291
4290
|
}
|
|
4292
|
-
var xr = { exports: {} }, ux = xr.exports,
|
|
4293
|
-
function
|
|
4294
|
-
return
|
|
4295
|
-
(function(
|
|
4296
|
-
r.exports = e(U(),
|
|
4297
|
-
})(ux, function(
|
|
4291
|
+
var xr = { exports: {} }, ux = xr.exports, de;
|
|
4292
|
+
function lx() {
|
|
4293
|
+
return de || (de = 1, (function(r, d) {
|
|
4294
|
+
(function(t, e, u) {
|
|
4295
|
+
r.exports = e(U(), a0(), n0(), t0(), K());
|
|
4296
|
+
})(ux, function(t) {
|
|
4298
4297
|
return (function() {
|
|
4299
|
-
var e =
|
|
4298
|
+
var e = t, u = e.lib, v = u.StreamCipher, g = e.algo, p = [], C = [], x = [], a = g.Rabbit = v.extend({
|
|
4300
4299
|
_doReset: function() {
|
|
4301
|
-
for (var
|
|
4302
|
-
|
|
4300
|
+
for (var n = this._key.words, l = this.cfg.iv, c = 0; c < 4; c++)
|
|
4301
|
+
n[c] = (n[c] << 8 | n[c] >>> 24) & 16711935 | (n[c] << 24 | n[c] >>> 8) & 4278255360;
|
|
4303
4302
|
var h = this._X = [
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
|
-
|
|
4303
|
+
n[0],
|
|
4304
|
+
n[3] << 16 | n[2] >>> 16,
|
|
4305
|
+
n[1],
|
|
4306
|
+
n[0] << 16 | n[3] >>> 16,
|
|
4307
|
+
n[2],
|
|
4308
|
+
n[1] << 16 | n[0] >>> 16,
|
|
4309
|
+
n[3],
|
|
4310
|
+
n[2] << 16 | n[1] >>> 16
|
|
4312
4311
|
], f = this._C = [
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4312
|
+
n[2] << 16 | n[2] >>> 16,
|
|
4313
|
+
n[0] & 4294901760 | n[1] & 65535,
|
|
4314
|
+
n[3] << 16 | n[3] >>> 16,
|
|
4315
|
+
n[1] & 4294901760 | n[2] & 65535,
|
|
4316
|
+
n[0] << 16 | n[0] >>> 16,
|
|
4317
|
+
n[2] & 4294901760 | n[3] & 65535,
|
|
4318
|
+
n[1] << 16 | n[1] >>> 16,
|
|
4319
|
+
n[3] & 4294901760 | n[0] & 65535
|
|
4321
4320
|
];
|
|
4322
4321
|
this._b = 0;
|
|
4323
4322
|
for (var c = 0; c < 4; c++)
|
|
@@ -4325,63 +4324,63 @@ function dx() {
|
|
|
4325
4324
|
for (var c = 0; c < 8; c++)
|
|
4326
4325
|
f[c] ^= h[c + 4 & 7];
|
|
4327
4326
|
if (l) {
|
|
4328
|
-
var E = l.words, o = E[0], i = E[1], s = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360, F = (i << 8 | i >>> 24) & 16711935 | (i << 24 | i >>> 8) & 4278255360, D = s >>> 16 | F & 4294901760,
|
|
4329
|
-
f[0] ^= s, f[1] ^= D, f[2] ^= F, f[3] ^=
|
|
4327
|
+
var E = l.words, o = E[0], i = E[1], s = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360, F = (i << 8 | i >>> 24) & 16711935 | (i << 24 | i >>> 8) & 4278255360, D = s >>> 16 | F & 4294901760, _ = F << 16 | s & 65535;
|
|
4328
|
+
f[0] ^= s, f[1] ^= D, f[2] ^= F, f[3] ^= _, f[4] ^= s, f[5] ^= D, f[6] ^= F, f[7] ^= _;
|
|
4330
4329
|
for (var c = 0; c < 4; c++)
|
|
4331
4330
|
A.call(this);
|
|
4332
4331
|
}
|
|
4333
4332
|
},
|
|
4334
|
-
_doProcessBlock: function(
|
|
4333
|
+
_doProcessBlock: function(n, l) {
|
|
4335
4334
|
var c = this._X;
|
|
4336
4335
|
A.call(this), p[0] = c[0] ^ c[5] >>> 16 ^ c[3] << 16, p[1] = c[2] ^ c[7] >>> 16 ^ c[5] << 16, p[2] = c[4] ^ c[1] >>> 16 ^ c[7] << 16, p[3] = c[6] ^ c[3] >>> 16 ^ c[1] << 16;
|
|
4337
4336
|
for (var h = 0; h < 4; h++)
|
|
4338
|
-
p[h] = (p[h] << 8 | p[h] >>> 24) & 16711935 | (p[h] << 24 | p[h] >>> 8) & 4278255360,
|
|
4337
|
+
p[h] = (p[h] << 8 | p[h] >>> 24) & 16711935 | (p[h] << 24 | p[h] >>> 8) & 4278255360, n[l + h] ^= p[h];
|
|
4339
4338
|
},
|
|
4340
4339
|
blockSize: 128 / 32,
|
|
4341
4340
|
ivSize: 64 / 32
|
|
4342
4341
|
});
|
|
4343
4342
|
function A() {
|
|
4344
|
-
for (var
|
|
4343
|
+
for (var n = this._X, l = this._C, c = 0; c < 8; c++)
|
|
4345
4344
|
C[c] = l[c];
|
|
4346
4345
|
l[0] = l[0] + 1295307597 + this._b | 0, l[1] = l[1] + 3545052371 + (l[0] >>> 0 < C[0] >>> 0 ? 1 : 0) | 0, l[2] = l[2] + 886263092 + (l[1] >>> 0 < C[1] >>> 0 ? 1 : 0) | 0, l[3] = l[3] + 1295307597 + (l[2] >>> 0 < C[2] >>> 0 ? 1 : 0) | 0, l[4] = l[4] + 3545052371 + (l[3] >>> 0 < C[3] >>> 0 ? 1 : 0) | 0, l[5] = l[5] + 886263092 + (l[4] >>> 0 < C[4] >>> 0 ? 1 : 0) | 0, l[6] = l[6] + 1295307597 + (l[5] >>> 0 < C[5] >>> 0 ? 1 : 0) | 0, l[7] = l[7] + 3545052371 + (l[6] >>> 0 < C[6] >>> 0 ? 1 : 0) | 0, this._b = l[7] >>> 0 < C[7] >>> 0 ? 1 : 0;
|
|
4347
4346
|
for (var c = 0; c < 8; c++) {
|
|
4348
|
-
var h =
|
|
4349
|
-
|
|
4347
|
+
var h = n[c] + l[c], f = h & 65535, E = h >>> 16, o = ((f * f >>> 17) + f * E >>> 15) + E * E, i = ((h & 4294901760) * h | 0) + ((h & 65535) * h | 0);
|
|
4348
|
+
x[c] = o ^ i;
|
|
4350
4349
|
}
|
|
4351
|
-
|
|
4350
|
+
n[0] = x[0] + (x[7] << 16 | x[7] >>> 16) + (x[6] << 16 | x[6] >>> 16) | 0, n[1] = x[1] + (x[0] << 8 | x[0] >>> 24) + x[7] | 0, n[2] = x[2] + (x[1] << 16 | x[1] >>> 16) + (x[0] << 16 | x[0] >>> 16) | 0, n[3] = x[3] + (x[2] << 8 | x[2] >>> 24) + x[1] | 0, n[4] = x[4] + (x[3] << 16 | x[3] >>> 16) + (x[2] << 16 | x[2] >>> 16) | 0, n[5] = x[5] + (x[4] << 8 | x[4] >>> 24) + x[3] | 0, n[6] = x[6] + (x[5] << 16 | x[5] >>> 16) + (x[4] << 16 | x[4] >>> 16) | 0, n[7] = x[7] + (x[6] << 8 | x[6] >>> 24) + x[5] | 0;
|
|
4352
4351
|
}
|
|
4353
|
-
e.Rabbit = v._createHelper(
|
|
4354
|
-
})(),
|
|
4352
|
+
e.Rabbit = v._createHelper(a);
|
|
4353
|
+
})(), t.Rabbit;
|
|
4355
4354
|
});
|
|
4356
4355
|
})(xr)), xr.exports;
|
|
4357
4356
|
}
|
|
4358
|
-
var
|
|
4357
|
+
var ar = { exports: {} }, dx = ar.exports, he;
|
|
4359
4358
|
function hx() {
|
|
4360
4359
|
return he || (he = 1, (function(r, d) {
|
|
4361
|
-
(function(
|
|
4362
|
-
r.exports = e(U(),
|
|
4363
|
-
})(
|
|
4360
|
+
(function(t, e, u) {
|
|
4361
|
+
r.exports = e(U(), a0(), n0(), t0(), K());
|
|
4362
|
+
})(dx, function(t) {
|
|
4364
4363
|
return (function() {
|
|
4365
|
-
var e =
|
|
4364
|
+
var e = t, u = e.lib, v = u.StreamCipher, g = e.algo, p = [], C = [], x = [], a = g.RabbitLegacy = v.extend({
|
|
4366
4365
|
_doReset: function() {
|
|
4367
|
-
var
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
|
|
4371
|
-
|
|
4372
|
-
|
|
4373
|
-
|
|
4374
|
-
|
|
4375
|
-
|
|
4366
|
+
var n = this._key.words, l = this.cfg.iv, c = this._X = [
|
|
4367
|
+
n[0],
|
|
4368
|
+
n[3] << 16 | n[2] >>> 16,
|
|
4369
|
+
n[1],
|
|
4370
|
+
n[0] << 16 | n[3] >>> 16,
|
|
4371
|
+
n[2],
|
|
4372
|
+
n[1] << 16 | n[0] >>> 16,
|
|
4373
|
+
n[3],
|
|
4374
|
+
n[2] << 16 | n[1] >>> 16
|
|
4376
4375
|
], h = this._C = [
|
|
4377
|
-
|
|
4378
|
-
|
|
4379
|
-
|
|
4380
|
-
|
|
4381
|
-
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
-
|
|
4376
|
+
n[2] << 16 | n[2] >>> 16,
|
|
4377
|
+
n[0] & 4294901760 | n[1] & 65535,
|
|
4378
|
+
n[3] << 16 | n[3] >>> 16,
|
|
4379
|
+
n[1] & 4294901760 | n[2] & 65535,
|
|
4380
|
+
n[0] << 16 | n[0] >>> 16,
|
|
4381
|
+
n[2] & 4294901760 | n[3] & 65535,
|
|
4382
|
+
n[1] << 16 | n[1] >>> 16,
|
|
4383
|
+
n[3] & 4294901760 | n[0] & 65535
|
|
4385
4384
|
];
|
|
4386
4385
|
this._b = 0;
|
|
4387
4386
|
for (var f = 0; f < 4; f++)
|
|
@@ -4389,44 +4388,44 @@ function hx() {
|
|
|
4389
4388
|
for (var f = 0; f < 8; f++)
|
|
4390
4389
|
h[f] ^= c[f + 4 & 7];
|
|
4391
4390
|
if (l) {
|
|
4392
|
-
var E = l.words, o = E[0], i = E[1], s = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360, F = (i << 8 | i >>> 24) & 16711935 | (i << 24 | i >>> 8) & 4278255360, D = s >>> 16 | F & 4294901760,
|
|
4393
|
-
h[0] ^= s, h[1] ^= D, h[2] ^= F, h[3] ^=
|
|
4391
|
+
var E = l.words, o = E[0], i = E[1], s = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360, F = (i << 8 | i >>> 24) & 16711935 | (i << 24 | i >>> 8) & 4278255360, D = s >>> 16 | F & 4294901760, _ = F << 16 | s & 65535;
|
|
4392
|
+
h[0] ^= s, h[1] ^= D, h[2] ^= F, h[3] ^= _, h[4] ^= s, h[5] ^= D, h[6] ^= F, h[7] ^= _;
|
|
4394
4393
|
for (var f = 0; f < 4; f++)
|
|
4395
4394
|
A.call(this);
|
|
4396
4395
|
}
|
|
4397
4396
|
},
|
|
4398
|
-
_doProcessBlock: function(
|
|
4397
|
+
_doProcessBlock: function(n, l) {
|
|
4399
4398
|
var c = this._X;
|
|
4400
4399
|
A.call(this), p[0] = c[0] ^ c[5] >>> 16 ^ c[3] << 16, p[1] = c[2] ^ c[7] >>> 16 ^ c[5] << 16, p[2] = c[4] ^ c[1] >>> 16 ^ c[7] << 16, p[3] = c[6] ^ c[3] >>> 16 ^ c[1] << 16;
|
|
4401
4400
|
for (var h = 0; h < 4; h++)
|
|
4402
|
-
p[h] = (p[h] << 8 | p[h] >>> 24) & 16711935 | (p[h] << 24 | p[h] >>> 8) & 4278255360,
|
|
4401
|
+
p[h] = (p[h] << 8 | p[h] >>> 24) & 16711935 | (p[h] << 24 | p[h] >>> 8) & 4278255360, n[l + h] ^= p[h];
|
|
4403
4402
|
},
|
|
4404
4403
|
blockSize: 128 / 32,
|
|
4405
4404
|
ivSize: 64 / 32
|
|
4406
4405
|
});
|
|
4407
4406
|
function A() {
|
|
4408
|
-
for (var
|
|
4407
|
+
for (var n = this._X, l = this._C, c = 0; c < 8; c++)
|
|
4409
4408
|
C[c] = l[c];
|
|
4410
4409
|
l[0] = l[0] + 1295307597 + this._b | 0, l[1] = l[1] + 3545052371 + (l[0] >>> 0 < C[0] >>> 0 ? 1 : 0) | 0, l[2] = l[2] + 886263092 + (l[1] >>> 0 < C[1] >>> 0 ? 1 : 0) | 0, l[3] = l[3] + 1295307597 + (l[2] >>> 0 < C[2] >>> 0 ? 1 : 0) | 0, l[4] = l[4] + 3545052371 + (l[3] >>> 0 < C[3] >>> 0 ? 1 : 0) | 0, l[5] = l[5] + 886263092 + (l[4] >>> 0 < C[4] >>> 0 ? 1 : 0) | 0, l[6] = l[6] + 1295307597 + (l[5] >>> 0 < C[5] >>> 0 ? 1 : 0) | 0, l[7] = l[7] + 3545052371 + (l[6] >>> 0 < C[6] >>> 0 ? 1 : 0) | 0, this._b = l[7] >>> 0 < C[7] >>> 0 ? 1 : 0;
|
|
4411
4410
|
for (var c = 0; c < 8; c++) {
|
|
4412
|
-
var h =
|
|
4413
|
-
|
|
4411
|
+
var h = n[c] + l[c], f = h & 65535, E = h >>> 16, o = ((f * f >>> 17) + f * E >>> 15) + E * E, i = ((h & 4294901760) * h | 0) + ((h & 65535) * h | 0);
|
|
4412
|
+
x[c] = o ^ i;
|
|
4414
4413
|
}
|
|
4415
|
-
|
|
4414
|
+
n[0] = x[0] + (x[7] << 16 | x[7] >>> 16) + (x[6] << 16 | x[6] >>> 16) | 0, n[1] = x[1] + (x[0] << 8 | x[0] >>> 24) + x[7] | 0, n[2] = x[2] + (x[1] << 16 | x[1] >>> 16) + (x[0] << 16 | x[0] >>> 16) | 0, n[3] = x[3] + (x[2] << 8 | x[2] >>> 24) + x[1] | 0, n[4] = x[4] + (x[3] << 16 | x[3] >>> 16) + (x[2] << 16 | x[2] >>> 16) | 0, n[5] = x[5] + (x[4] << 8 | x[4] >>> 24) + x[3] | 0, n[6] = x[6] + (x[5] << 16 | x[5] >>> 16) + (x[4] << 16 | x[4] >>> 16) | 0, n[7] = x[7] + (x[6] << 8 | x[6] >>> 24) + x[5] | 0;
|
|
4416
4415
|
}
|
|
4417
|
-
e.RabbitLegacy = v._createHelper(
|
|
4418
|
-
})(),
|
|
4416
|
+
e.RabbitLegacy = v._createHelper(a);
|
|
4417
|
+
})(), t.RabbitLegacy;
|
|
4419
4418
|
});
|
|
4420
|
-
})(
|
|
4419
|
+
})(ar)), ar.exports;
|
|
4421
4420
|
}
|
|
4422
|
-
var
|
|
4421
|
+
var nr = { exports: {} }, vx = nr.exports, ve;
|
|
4423
4422
|
function px() {
|
|
4424
4423
|
return ve || (ve = 1, (function(r, d) {
|
|
4425
|
-
(function(
|
|
4426
|
-
r.exports = e(U(),
|
|
4427
|
-
})(vx, function(
|
|
4424
|
+
(function(t, e, u) {
|
|
4425
|
+
r.exports = e(U(), a0(), n0(), t0(), K());
|
|
4426
|
+
})(vx, function(t) {
|
|
4428
4427
|
return (function() {
|
|
4429
|
-
var e =
|
|
4428
|
+
var e = t, u = e.lib, v = u.BlockCipher, g = e.algo;
|
|
4430
4429
|
const p = 16, C = [
|
|
4431
4430
|
608135816,
|
|
4432
4431
|
2242054355,
|
|
@@ -4446,7 +4445,7 @@ function px() {
|
|
|
4446
4445
|
3041331479,
|
|
4447
4446
|
2450970073,
|
|
4448
4447
|
2306472731
|
|
4449
|
-
],
|
|
4448
|
+
], x = [
|
|
4450
4449
|
[
|
|
4451
4450
|
3509652390,
|
|
4452
4451
|
2564797868,
|
|
@@ -5480,7 +5479,7 @@ function px() {
|
|
|
5480
5479
|
985887462
|
|
5481
5480
|
]
|
|
5482
5481
|
];
|
|
5483
|
-
var
|
|
5482
|
+
var a = {
|
|
5484
5483
|
pbox: [],
|
|
5485
5484
|
sbox: []
|
|
5486
5485
|
};
|
|
@@ -5488,7 +5487,7 @@ function px() {
|
|
|
5488
5487
|
let o = E >> 24 & 255, i = E >> 16 & 255, s = E >> 8 & 255, F = E & 255, D = f.sbox[0][o] + f.sbox[1][i];
|
|
5489
5488
|
return D = D ^ f.sbox[2][s], D = D + f.sbox[3][F], D;
|
|
5490
5489
|
}
|
|
5491
|
-
function
|
|
5490
|
+
function n(f, E, o) {
|
|
5492
5491
|
let i = E, s = o, F;
|
|
5493
5492
|
for (let D = 0; D < p; ++D)
|
|
5494
5493
|
i = i ^ f.pbox[D], s = A(f, i) ^ s, F = i, i = s, s = F;
|
|
@@ -5501,35 +5500,35 @@ function px() {
|
|
|
5501
5500
|
return F = i, i = s, s = F, s = s ^ f.pbox[1], i = i ^ f.pbox[0], { left: i, right: s };
|
|
5502
5501
|
}
|
|
5503
5502
|
function c(f, E, o) {
|
|
5504
|
-
for (let
|
|
5505
|
-
f.sbox[
|
|
5503
|
+
for (let _ = 0; _ < 4; _++) {
|
|
5504
|
+
f.sbox[_] = [];
|
|
5506
5505
|
for (let w = 0; w < 256; w++)
|
|
5507
|
-
f.sbox[
|
|
5506
|
+
f.sbox[_][w] = x[_][w];
|
|
5508
5507
|
}
|
|
5509
5508
|
let i = 0;
|
|
5510
|
-
for (let
|
|
5511
|
-
f.pbox[
|
|
5509
|
+
for (let _ = 0; _ < p + 2; _++)
|
|
5510
|
+
f.pbox[_] = C[_] ^ E[i], i++, i >= o && (i = 0);
|
|
5512
5511
|
let s = 0, F = 0, D = 0;
|
|
5513
|
-
for (let
|
|
5514
|
-
D =
|
|
5515
|
-
for (let
|
|
5512
|
+
for (let _ = 0; _ < p + 2; _ += 2)
|
|
5513
|
+
D = n(f, s, F), s = D.left, F = D.right, f.pbox[_] = s, f.pbox[_ + 1] = F;
|
|
5514
|
+
for (let _ = 0; _ < 4; _++)
|
|
5516
5515
|
for (let w = 0; w < 256; w += 2)
|
|
5517
|
-
D =
|
|
5516
|
+
D = n(f, s, F), s = D.left, F = D.right, f.sbox[_][w] = s, f.sbox[_][w + 1] = F;
|
|
5518
5517
|
return !0;
|
|
5519
5518
|
}
|
|
5520
5519
|
var h = g.Blowfish = v.extend({
|
|
5521
5520
|
_doReset: function() {
|
|
5522
5521
|
if (this._keyPriorReset !== this._key) {
|
|
5523
5522
|
var f = this._keyPriorReset = this._key, E = f.words, o = f.sigBytes / 4;
|
|
5524
|
-
c(
|
|
5523
|
+
c(a, E, o);
|
|
5525
5524
|
}
|
|
5526
5525
|
},
|
|
5527
5526
|
encryptBlock: function(f, E) {
|
|
5528
|
-
var o = a
|
|
5527
|
+
var o = n(a, f[E], f[E + 1]);
|
|
5529
5528
|
f[E] = o.left, f[E + 1] = o.right;
|
|
5530
5529
|
},
|
|
5531
5530
|
decryptBlock: function(f, E) {
|
|
5532
|
-
var o = l(
|
|
5531
|
+
var o = l(a, f[E], f[E + 1]);
|
|
5533
5532
|
f[E] = o.left, f[E + 1] = o.right;
|
|
5534
5533
|
},
|
|
5535
5534
|
blockSize: 64 / 32,
|
|
@@ -5537,61 +5536,61 @@ function px() {
|
|
|
5537
5536
|
ivSize: 64 / 32
|
|
5538
5537
|
});
|
|
5539
5538
|
e.Blowfish = v._createHelper(h);
|
|
5540
|
-
})(),
|
|
5539
|
+
})(), t.Blowfish;
|
|
5541
5540
|
});
|
|
5542
|
-
})(
|
|
5541
|
+
})(nr)), nr.exports;
|
|
5543
5542
|
}
|
|
5544
5543
|
var Bx = b0.exports, pe;
|
|
5545
5544
|
function Cx() {
|
|
5546
5545
|
return pe || (pe = 1, (function(r, d) {
|
|
5547
|
-
(function(
|
|
5548
|
-
r.exports = e(U(), sr(), ht(), pt(),
|
|
5549
|
-
})(Bx, function(
|
|
5550
|
-
return
|
|
5546
|
+
(function(t, e, u) {
|
|
5547
|
+
r.exports = e(U(), sr(), ht(), pt(), a0(), Et(), n0(), be(), Cr(), bt(), me(), yt(), kt(), Ht(), Er(), $t(), t0(), K(), Ot(), qt(), Mt(), Ut(), Kt(), Gt(), Zt(), Vt(), rx(), tx(), ax(), ox(), sx(), fx(), lx(), hx(), px());
|
|
5548
|
+
})(Bx, function(t) {
|
|
5549
|
+
return t;
|
|
5551
5550
|
});
|
|
5552
5551
|
})(b0)), b0.exports;
|
|
5553
5552
|
}
|
|
5554
5553
|
Cx();
|
|
5555
|
-
let
|
|
5554
|
+
let _e = null, ye = null, we = null, ke = null;
|
|
5556
5555
|
Math.random().toString(36).substring(7);
|
|
5557
5556
|
function Ex(r) {
|
|
5558
|
-
|
|
5557
|
+
_e = r.token, ye = r.apiUrl, we = r.deviceId, ke = r.domain;
|
|
5559
5558
|
}
|
|
5560
5559
|
function Ax() {
|
|
5561
5560
|
return {
|
|
5562
|
-
token:
|
|
5561
|
+
token: _e,
|
|
5563
5562
|
apiUrl: ye,
|
|
5564
5563
|
deviceId: we,
|
|
5565
5564
|
domain: ke
|
|
5566
5565
|
};
|
|
5567
5566
|
}
|
|
5568
5567
|
function Fx(r) {
|
|
5569
|
-
return `/sdk-workers/${(r.split("/").pop() || r).replace(/\.ts$/, ".js")}?v=1.1.
|
|
5568
|
+
return `/sdk-workers/${(r.split("/").pop() || r).replace(/\.ts$/, ".js")}?v=1.1.134`;
|
|
5570
5569
|
}
|
|
5571
5570
|
function Dx(r, d) {
|
|
5572
|
-
const
|
|
5573
|
-
return new Worker(
|
|
5571
|
+
const t = Fx(r);
|
|
5572
|
+
return new Worker(t, { type: "module", ...d });
|
|
5574
5573
|
}
|
|
5575
5574
|
const Be = /* @__PURE__ */ new Map(), hr = /* @__PURE__ */ new Map();
|
|
5576
5575
|
let gx = 0;
|
|
5577
5576
|
function bx(r) {
|
|
5578
5577
|
const d = Be.get(r);
|
|
5579
5578
|
if (d) return d;
|
|
5580
|
-
const
|
|
5581
|
-
|
|
5582
|
-
const { id: v, imageBitmap: g, error: p, duration: C } = u.data ?? {},
|
|
5583
|
-
if (
|
|
5579
|
+
const t = Dx("./deform.worker.ts");
|
|
5580
|
+
t.onmessage = (u) => {
|
|
5581
|
+
const { id: v, imageBitmap: g, error: p, duration: C } = u.data ?? {}, x = hr.get(v);
|
|
5582
|
+
if (x) {
|
|
5584
5583
|
if (hr.delete(v), p) {
|
|
5585
|
-
|
|
5584
|
+
x.reject(new Error(p));
|
|
5586
5585
|
return;
|
|
5587
5586
|
}
|
|
5588
|
-
|
|
5587
|
+
x.resolve(g);
|
|
5589
5588
|
}
|
|
5590
|
-
},
|
|
5589
|
+
}, t.onerror = (u) => {
|
|
5591
5590
|
};
|
|
5592
5591
|
const e = () => {
|
|
5593
5592
|
const u = Ax();
|
|
5594
|
-
return u.token ? (
|
|
5593
|
+
return u.token ? (t.postMessage({
|
|
5595
5594
|
type: "SET_LICENSE",
|
|
5596
5595
|
licenseToken: u.token,
|
|
5597
5596
|
licenseApiUrl: u.apiUrl,
|
|
@@ -5603,9 +5602,9 @@ function bx(r) {
|
|
|
5603
5602
|
e();
|
|
5604
5603
|
}, 200), setTimeout(() => {
|
|
5605
5604
|
e();
|
|
5606
|
-
}, 500)), Be.set(r,
|
|
5605
|
+
}, 500)), Be.set(r, t), t;
|
|
5607
5606
|
}
|
|
5608
|
-
function
|
|
5607
|
+
function mx(r) {
|
|
5609
5608
|
return {
|
|
5610
5609
|
name: r.name,
|
|
5611
5610
|
type: r.type,
|
|
@@ -5639,9 +5638,9 @@ function _x(r) {
|
|
|
5639
5638
|
vectorMask: r.vectorMask ? {
|
|
5640
5639
|
paths: r.vectorMask.paths?.map((d) => ({
|
|
5641
5640
|
open: d.open,
|
|
5642
|
-
knots: d.knots?.map((
|
|
5643
|
-
linked:
|
|
5644
|
-
points: [...
|
|
5641
|
+
knots: d.knots?.map((t) => ({
|
|
5642
|
+
linked: t.linked,
|
|
5643
|
+
points: [...t.points]
|
|
5645
5644
|
})),
|
|
5646
5645
|
fillRule: d.fillRule,
|
|
5647
5646
|
operation: d.operation
|
|
@@ -5660,16 +5659,16 @@ function _x(r) {
|
|
|
5660
5659
|
type: d.type,
|
|
5661
5660
|
enabled: d.enabled,
|
|
5662
5661
|
filter: d.filter ? {
|
|
5663
|
-
puppetShapeList: d.filter.puppetShapeList?.map((
|
|
5664
|
-
originalVertexArray:
|
|
5662
|
+
puppetShapeList: d.filter.puppetShapeList?.map((t) => ({
|
|
5663
|
+
originalVertexArray: t.originalVertexArray.map((e) => ({
|
|
5665
5664
|
x: e.x,
|
|
5666
5665
|
y: e.y
|
|
5667
5666
|
})),
|
|
5668
|
-
deformedVertexArray:
|
|
5667
|
+
deformedVertexArray: t.deformedVertexArray.map((e) => ({
|
|
5669
5668
|
x: e.x,
|
|
5670
5669
|
y: e.y
|
|
5671
5670
|
})),
|
|
5672
|
-
indexArray: [...
|
|
5671
|
+
indexArray: [...t.indexArray]
|
|
5673
5672
|
}))
|
|
5674
5673
|
} : void 0
|
|
5675
5674
|
})) : void 0,
|
|
@@ -5677,33 +5676,33 @@ function _x(r) {
|
|
|
5677
5676
|
clipping: r.clipping
|
|
5678
5677
|
};
|
|
5679
5678
|
}
|
|
5680
|
-
function
|
|
5681
|
-
const u = ++gx, v = bx(
|
|
5679
|
+
function _x(r, d, t, e) {
|
|
5680
|
+
const u = ++gx, v = bx(t);
|
|
5682
5681
|
return performance.now(), (/* @__PURE__ */ new Date()).toISOString(), new Promise((g, p) => {
|
|
5683
5682
|
hr.set(u, {
|
|
5684
|
-
resolve: (
|
|
5685
|
-
performance.now(), (/* @__PURE__ */ new Date()).toISOString(), g(
|
|
5683
|
+
resolve: (x) => {
|
|
5684
|
+
performance.now(), (/* @__PURE__ */ new Date()).toISOString(), g(x);
|
|
5686
5685
|
},
|
|
5687
5686
|
reject: p
|
|
5688
5687
|
});
|
|
5689
|
-
const C =
|
|
5688
|
+
const C = mx(d);
|
|
5690
5689
|
v.postMessage({ id: u, designBitmap: r, layerData: C, canvasSize: e }, [
|
|
5691
5690
|
r
|
|
5692
5691
|
]);
|
|
5693
5692
|
});
|
|
5694
5693
|
}
|
|
5695
|
-
async function yx(r, d,
|
|
5696
|
-
const g = await
|
|
5694
|
+
async function yx(r, d, t = 0, e, u, v) {
|
|
5695
|
+
const g = await at(r, u, v);
|
|
5697
5696
|
if (!g || g.width === 0 || g.height === 0)
|
|
5698
5697
|
throw new Error("图片无效:尺寸为 0");
|
|
5699
|
-
return await
|
|
5698
|
+
return await _x(g, d, t, e);
|
|
5700
5699
|
}
|
|
5701
5700
|
function s0(r, d) {
|
|
5702
5701
|
if (typeof OffscreenCanvas < "u" && typeof document > "u")
|
|
5703
5702
|
return new OffscreenCanvas(r, d);
|
|
5704
5703
|
if (typeof document < "u") {
|
|
5705
|
-
const
|
|
5706
|
-
return
|
|
5704
|
+
const t = document.createElement("canvas");
|
|
5705
|
+
return t.width = r, t.height = d, t;
|
|
5707
5706
|
} else
|
|
5708
5707
|
throw new Error("无法创建 canvas:不在 Worker 或主线程环境中");
|
|
5709
5708
|
}
|
|
@@ -5720,7 +5719,7 @@ async function wx(r) {
|
|
|
5720
5719
|
performance.now();
|
|
5721
5720
|
const {
|
|
5722
5721
|
psdJson: d,
|
|
5723
|
-
materialList:
|
|
5722
|
+
materialList: t,
|
|
5724
5723
|
fabricScreenshotList: e,
|
|
5725
5724
|
width: u,
|
|
5726
5725
|
height: v,
|
|
@@ -5737,46 +5736,46 @@ async function wx(r) {
|
|
|
5737
5736
|
} catch {
|
|
5738
5737
|
return;
|
|
5739
5738
|
}
|
|
5740
|
-
},
|
|
5741
|
-
for (const y of
|
|
5739
|
+
}, x = {}, a = /* @__PURE__ */ new Map();
|
|
5740
|
+
for (const y of t) {
|
|
5742
5741
|
const $ = y.sourceName || y.layerName;
|
|
5743
|
-
$ && (
|
|
5742
|
+
$ && (x[$] = {
|
|
5744
5743
|
url: y.url
|
|
5745
|
-
},
|
|
5744
|
+
}, a.set($, y.url)), y.layerName && y.layerName !== $ && (x[y.layerName] || (x[y.layerName] = {
|
|
5746
5745
|
url: y.url
|
|
5747
|
-
}),
|
|
5746
|
+
}), a.set(y.layerName, y.url));
|
|
5748
5747
|
}
|
|
5749
5748
|
const A = /* @__PURE__ */ new Map();
|
|
5750
5749
|
for (const y of e)
|
|
5751
5750
|
A.set(y.id, y.url);
|
|
5752
|
-
function
|
|
5751
|
+
function n(y, $) {
|
|
5753
5752
|
const W = y.color || (y.name && ["粉", "白", "绿", "红", "蓝", "黄", "黑", "灰"].includes(y.name) ? y.name : $);
|
|
5754
5753
|
if (y.type === "Layer") {
|
|
5755
5754
|
if (y.imagePath) {
|
|
5756
|
-
const O =
|
|
5755
|
+
const O = t.find((I) => {
|
|
5757
5756
|
const b = I.sourceName || I.layerName;
|
|
5758
5757
|
return !b || !y.imagePath ? !1 : b === y.imagePath || b.endsWith(y.imagePath) || y.imagePath.endsWith(b);
|
|
5759
5758
|
});
|
|
5760
|
-
O && (
|
|
5759
|
+
O && (x[y.imagePath] = {
|
|
5761
5760
|
url: O.url
|
|
5762
5761
|
});
|
|
5763
5762
|
}
|
|
5764
5763
|
if (y.name) {
|
|
5765
5764
|
if (W) {
|
|
5766
|
-
const O = `${W}-${y.name}`, I =
|
|
5765
|
+
const O = `${W}-${y.name}`, I = t.find((b) => {
|
|
5767
5766
|
const k = b.sourceName || b.layerName;
|
|
5768
5767
|
return k ? (k.split("/").pop() || k).replace(/\.(png|jpg|jpeg|gif|webp)$/i, "").startsWith(`${W}-${y.name}`) : !1;
|
|
5769
5768
|
});
|
|
5770
|
-
I && (
|
|
5769
|
+
I && (x[O] = {
|
|
5771
5770
|
url: I.url
|
|
5772
5771
|
});
|
|
5773
5772
|
}
|
|
5774
5773
|
if (y.imagePath && y.name) {
|
|
5775
|
-
const O = y.imagePath.split("/").pop() || y.imagePath, I =
|
|
5774
|
+
const O = y.imagePath.split("/").pop() || y.imagePath, I = t.find((b) => {
|
|
5776
5775
|
const k = b.sourceName || b.layerName;
|
|
5777
5776
|
return k ? (k.split("/").pop() || k) === O : !1;
|
|
5778
5777
|
});
|
|
5779
|
-
I && (
|
|
5778
|
+
I && (x[y.imagePath] = {
|
|
5780
5779
|
url: I.url
|
|
5781
5780
|
});
|
|
5782
5781
|
}
|
|
@@ -5784,7 +5783,7 @@ async function wx(r) {
|
|
|
5784
5783
|
}
|
|
5785
5784
|
if (y.children)
|
|
5786
5785
|
for (const O of y.children)
|
|
5787
|
-
O &&
|
|
5786
|
+
O && n(O, W);
|
|
5788
5787
|
}
|
|
5789
5788
|
function l(y, $) {
|
|
5790
5789
|
const W = y.id ?? $;
|
|
@@ -5794,7 +5793,7 @@ async function wx(r) {
|
|
|
5794
5793
|
for (const I of y.children)
|
|
5795
5794
|
if (I && I.isSmartObject === !0) {
|
|
5796
5795
|
const b = I?.name || "";
|
|
5797
|
-
b && !
|
|
5796
|
+
b && !x[b] && (x[b] = {}), b && (x[b].designImage = O);
|
|
5798
5797
|
}
|
|
5799
5798
|
}
|
|
5800
5799
|
}
|
|
@@ -5804,13 +5803,13 @@ async function wx(r) {
|
|
|
5804
5803
|
}
|
|
5805
5804
|
if (d.layerList)
|
|
5806
5805
|
for (const y of d.layerList)
|
|
5807
|
-
y &&
|
|
5806
|
+
y && n(y);
|
|
5808
5807
|
if (d.layerList)
|
|
5809
5808
|
for (const y of d.layerList)
|
|
5810
5809
|
y && l(y);
|
|
5811
5810
|
const h = Ke([{
|
|
5812
5811
|
psdJson: d,
|
|
5813
|
-
layerExtrasByName:
|
|
5812
|
+
layerExtrasByName: x
|
|
5814
5813
|
}], {
|
|
5815
5814
|
parts: [],
|
|
5816
5815
|
defaultIdStart: 1
|
|
@@ -5821,20 +5820,20 @@ async function wx(r) {
|
|
|
5821
5820
|
if (!f.psdPartData)
|
|
5822
5821
|
throw new Error("JSON 数据中没有 psdPartData");
|
|
5823
5822
|
const E = f.width, o = f.height, i = s0(E, o), s = Ce(i), F = [], D = (y) => {
|
|
5824
|
-
if (y.url &&
|
|
5825
|
-
return
|
|
5823
|
+
if (y.url && x[y.url])
|
|
5824
|
+
return x[y.url];
|
|
5826
5825
|
if (y.url) {
|
|
5827
5826
|
const $ = y.url.split("/").pop() || y.url;
|
|
5828
|
-
if (
|
|
5829
|
-
return
|
|
5830
|
-
const W =
|
|
5827
|
+
if (x[$])
|
|
5828
|
+
return x[$];
|
|
5829
|
+
const W = t.find((O) => {
|
|
5831
5830
|
const I = O.sourceName || O.layerName;
|
|
5832
5831
|
return !I || !y.url ? !1 : (I.split("/").pop() || I) === $ || I === y.url || I.endsWith(y.url) || y.url.endsWith(I);
|
|
5833
5832
|
});
|
|
5834
5833
|
if (W) {
|
|
5835
5834
|
const O = W.sourceName || W.layerName;
|
|
5836
5835
|
if (O)
|
|
5837
|
-
return
|
|
5836
|
+
return x[O] || { url: W.url };
|
|
5838
5837
|
}
|
|
5839
5838
|
}
|
|
5840
5839
|
};
|
|
@@ -5850,7 +5849,7 @@ async function wx(r) {
|
|
|
5850
5849
|
index: y,
|
|
5851
5850
|
type: "layer",
|
|
5852
5851
|
partData: $,
|
|
5853
|
-
promise:
|
|
5852
|
+
promise: nt(I, p, g).catch((b) => null)
|
|
5854
5853
|
});
|
|
5855
5854
|
} else if ($.type === E0.Group) {
|
|
5856
5855
|
if (!$.smartObjects || $.smartObjects.length === 0)
|
|
@@ -5859,13 +5858,13 @@ async function wx(r) {
|
|
|
5859
5858
|
const I = $.smartObjects[O];
|
|
5860
5859
|
if (!I || !I.name)
|
|
5861
5860
|
continue;
|
|
5862
|
-
let b =
|
|
5863
|
-
if (!b && I.imagePath && (b =
|
|
5861
|
+
let b = x[I.name] ?? W;
|
|
5862
|
+
if (!b && I.imagePath && (b = x[I.imagePath], !b)) {
|
|
5864
5863
|
const T = I.imagePath.split("/").pop() || I.imagePath;
|
|
5865
|
-
if (b =
|
|
5866
|
-
const j =
|
|
5867
|
-
const
|
|
5868
|
-
return !
|
|
5864
|
+
if (b = x[T], !b) {
|
|
5865
|
+
const j = t.find((M) => {
|
|
5866
|
+
const Y = M.sourceName || M.layerName;
|
|
5867
|
+
return !Y || !I.imagePath ? !1 : (Y.split("/").pop() || Y) === T || Y === I.imagePath || Y.endsWith(I.imagePath) || I.imagePath.endsWith(Y);
|
|
5869
5868
|
});
|
|
5870
5869
|
j && (b = { url: j.url });
|
|
5871
5870
|
}
|
|
@@ -5876,13 +5875,13 @@ async function wx(r) {
|
|
|
5876
5875
|
if (!k)
|
|
5877
5876
|
continue;
|
|
5878
5877
|
if (typeof k == "string") {
|
|
5879
|
-
/^(https?:)?\/\//i.test(k) || k.startsWith("data:") || k.startsWith("blob:") || (k =
|
|
5878
|
+
/^(https?:)?\/\//i.test(k) || k.startsWith("data:") || k.startsWith("blob:") || (k = a.get(k) ?? k);
|
|
5880
5879
|
const j = C(k);
|
|
5881
5880
|
if (!j)
|
|
5882
5881
|
continue;
|
|
5883
5882
|
k = j;
|
|
5884
5883
|
}
|
|
5885
|
-
const R = ($.partId ?? $.id) * 100 + O, S = Xe(
|
|
5884
|
+
const R = ($.partId ?? $.id) * 100 + O, S = Ge(Xe(I)), N = { width: E, height: o };
|
|
5886
5885
|
F.push({
|
|
5887
5886
|
index: y + O * 0.01,
|
|
5888
5887
|
type: "group",
|
|
@@ -5901,14 +5900,14 @@ async function wx(r) {
|
|
|
5901
5900
|
}
|
|
5902
5901
|
}
|
|
5903
5902
|
}
|
|
5904
|
-
const
|
|
5903
|
+
const _ = await Promise.all(F.map((y) => y.promise)), w = F.map((y, $) => ({
|
|
5905
5904
|
task: y,
|
|
5906
|
-
imageBitmap:
|
|
5905
|
+
imageBitmap: _[$]
|
|
5907
5906
|
})).sort((y, $) => {
|
|
5908
5907
|
const W = y.task.type === "group" && y.task.smartObject?.layerOrder !== void 0 ? y.task.smartObject.layerOrder : y.task.partData.layerOrder ?? y.task.index, O = $.task.type === "group" && $.task.smartObject?.layerOrder !== void 0 ? $.task.smartObject.layerOrder : $.task.partData.layerOrder ?? $.task.index;
|
|
5909
5908
|
return W - O;
|
|
5910
5909
|
});
|
|
5911
|
-
let z = s0(E, o), B = C0(z),
|
|
5910
|
+
let z = s0(E, o), B = C0(z), m = !1, P = "normal";
|
|
5912
5911
|
for (let y = 0; y < w.length; y++) {
|
|
5913
5912
|
const { task: $, imageBitmap: W } = w[y];
|
|
5914
5913
|
if (!W)
|
|
@@ -5925,7 +5924,7 @@ async function wx(r) {
|
|
|
5925
5924
|
R.task.type === "group" && R.task.smartObject ? S = R.task.smartObject.clipping ?? N.clipping === !0 : S = N.clipping === !0;
|
|
5926
5925
|
}
|
|
5927
5926
|
if ($.type === "group" && $.smartObject && $.smartObject.name ? $.smartObject.name : O?.name, !k && S) {
|
|
5928
|
-
if (
|
|
5927
|
+
if (m = !0, P = O.blendMode || "normal", B) {
|
|
5929
5928
|
if (B.clearRect(0, 0, E, o), B.globalCompositeOperation = "source-over", B.globalAlpha = b, $.type === "group" && $.smartObject)
|
|
5930
5929
|
if ($.maskData) {
|
|
5931
5930
|
const N = s0(E, o), T = C0(N);
|
|
@@ -5974,7 +5973,7 @@ async function wx(r) {
|
|
|
5974
5973
|
) : s.drawImage(W, 0, 0));
|
|
5975
5974
|
s.globalAlpha = 1, s.globalCompositeOperation = "source-over";
|
|
5976
5975
|
}
|
|
5977
|
-
|
|
5976
|
+
m && !S && (s.globalCompositeOperation = $r(P), s.drawImage(z, 0, 0), s.globalCompositeOperation = "source-over", m = !1);
|
|
5978
5977
|
}
|
|
5979
5978
|
z = null, B = null;
|
|
5980
5979
|
let H = i, L = E, q = o;
|
|
@@ -5999,8 +5998,8 @@ async function wx(r) {
|
|
|
5999
5998
|
};
|
|
6000
5999
|
}
|
|
6001
6000
|
const kx = async (r) => {
|
|
6002
|
-
const
|
|
6003
|
-
return
|
|
6001
|
+
const t = (await wx(r)).canvas;
|
|
6002
|
+
return t ? createImageBitmap(t) : null;
|
|
6004
6003
|
};
|
|
6005
6004
|
self.onmessage = async (r) => {
|
|
6006
6005
|
const d = r.data;
|
|
@@ -6014,13 +6013,13 @@ self.onmessage = async (r) => {
|
|
|
6014
6013
|
});
|
|
6015
6014
|
return;
|
|
6016
6015
|
}
|
|
6017
|
-
const
|
|
6016
|
+
const t = d;
|
|
6018
6017
|
try {
|
|
6019
|
-
const e = await kx(
|
|
6020
|
-
self.postMessage({ id:
|
|
6018
|
+
const e = await kx(t.renderData);
|
|
6019
|
+
self.postMessage({ id: t.id, bitmap: e }, e ? [e] : []);
|
|
6021
6020
|
} catch (e) {
|
|
6022
6021
|
self.postMessage({
|
|
6023
|
-
id:
|
|
6022
|
+
id: t.id,
|
|
6024
6023
|
error: e instanceof Error ? e.message : String(e)
|
|
6025
6024
|
});
|
|
6026
6025
|
}
|