@jieyin/editor-sdk 1.1.128 → 1.1.129
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/dist/editor-sdk.es.js +3855 -3843
- package/dist/renderWorker.js +1005 -1005
- package/package.json +1 -1
package/dist/renderWorker.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var E0 = /* @__PURE__ */ ((r) => (r[r.Group = 0] = "Group", r[r.Layer = 1] = "Layer", r))(E0 || {});
|
|
2
2
|
function Ne(r) {
|
|
3
|
-
let
|
|
3
|
+
let d = r;
|
|
4
4
|
return () => {
|
|
5
|
-
const x =
|
|
6
|
-
return
|
|
5
|
+
const x = d;
|
|
6
|
+
return d += 1, x;
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
|
-
function Ue(r,
|
|
9
|
+
function Ue(r, d) {
|
|
10
10
|
return {
|
|
11
11
|
name: r.name || "",
|
|
12
12
|
type: r.type || "Layer",
|
|
@@ -23,24 +23,24 @@ function Ue(r, l) {
|
|
|
23
23
|
quiltSliceY: r.quiltSliceY,
|
|
24
24
|
layerOrder: r.layerOrder,
|
|
25
25
|
imagePath: r.imagePath,
|
|
26
|
-
vectorMask: r.vectorMask ??
|
|
26
|
+
vectorMask: r.vectorMask ?? d,
|
|
27
27
|
filterList: r.filterList,
|
|
28
28
|
opacity: r.opacity,
|
|
29
29
|
clipping: r.clipping
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
function je(r,
|
|
33
|
-
let
|
|
32
|
+
function je(r, d, x, e) {
|
|
33
|
+
let u = r.name || "", v = d[u], g = v?.partId ?? (r.type === "Group" ? x.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 t = r.children[0].name,
|
|
36
|
-
(A !== void 0 ||
|
|
35
|
+
const t = r.children[0].name, a = d[t], A = a?.partId ?? x.get(t);
|
|
36
|
+
(A !== void 0 || a?.id !== void 0) && (u = t, v = a, g = A);
|
|
37
37
|
}
|
|
38
38
|
const p = r.id ?? v?.id ?? e();
|
|
39
39
|
if (r.type === "Group")
|
|
40
40
|
return {
|
|
41
41
|
id: p,
|
|
42
42
|
partId: g,
|
|
43
|
-
name:
|
|
43
|
+
name: u,
|
|
44
44
|
blendMode: r.blendMode || "normal",
|
|
45
45
|
bounds: r.bounds || { left: 0, top: 0, width: 0, height: 0 },
|
|
46
46
|
type: E0.Group,
|
|
@@ -64,17 +64,17 @@ function je(r, l, x, e) {
|
|
|
64
64
|
layerOrder: r.layerOrder
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
|
-
function Ke(r,
|
|
68
|
-
const x = new Map(
|
|
67
|
+
function Ke(r, d) {
|
|
68
|
+
const x = new Map(d.parts.map((u) => [u.name, u.id])), e = Ne(d.defaultIdStart ?? 1);
|
|
69
69
|
return {
|
|
70
|
-
parts:
|
|
71
|
-
models: r.map((
|
|
72
|
-
const v =
|
|
70
|
+
parts: d.parts,
|
|
71
|
+
models: r.map((u) => {
|
|
72
|
+
const v = u.layerExtrasByName ?? {}, g = u.psdJson, p = g.layerList || g.layerList || [], C = g.canvasWidth, t = g.canvasHeight;
|
|
73
73
|
if (!C || !t)
|
|
74
74
|
throw new Error(`无法获取 PSD 画布尺寸: canvasWidth=${C}, canvasHeight=${t}。请确保 jsonurl 中的 canvasWidth 和 canvasHeight 存在`);
|
|
75
|
-
const
|
|
75
|
+
const a = (l) => {
|
|
76
76
|
const c = [];
|
|
77
|
-
for (const h of
|
|
77
|
+
for (const h of l)
|
|
78
78
|
if (h.type === "Group" && h.children) {
|
|
79
79
|
const f = [], E = [], o = [...h.children].sort((i, s) => {
|
|
80
80
|
const F = i.layerOrder ?? 0, D = s.layerOrder ?? 0;
|
|
@@ -83,7 +83,7 @@ function Ke(r, l) {
|
|
|
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,13 +93,13 @@ function Ke(r, l) {
|
|
|
93
93
|
} else
|
|
94
94
|
c.push(h);
|
|
95
95
|
return c;
|
|
96
|
-
},
|
|
97
|
-
(
|
|
96
|
+
}, n = a(p).map(
|
|
97
|
+
(l) => je(l, v, x, e)
|
|
98
98
|
);
|
|
99
99
|
return {
|
|
100
100
|
width: C,
|
|
101
101
|
height: t,
|
|
102
|
-
psdPartData:
|
|
102
|
+
psdPartData: n
|
|
103
103
|
};
|
|
104
104
|
})
|
|
105
105
|
};
|
|
@@ -110,30 +110,30 @@ function Xe(r) {
|
|
|
110
110
|
function Ge(r) {
|
|
111
111
|
return r ? r.type === "bezier" ? {
|
|
112
112
|
type: "bezier",
|
|
113
|
-
paths: r.paths.map((
|
|
114
|
-
open: !!
|
|
115
|
-
knots:
|
|
113
|
+
paths: r.paths.map((d) => ({
|
|
114
|
+
open: !!d.open,
|
|
115
|
+
knots: d.knots.map((x) => ({
|
|
116
116
|
linked: !!x.linked,
|
|
117
117
|
points: Array.isArray(x.points) ? [...x.points] : []
|
|
118
118
|
}))
|
|
119
119
|
}))
|
|
120
120
|
} : r.type === "simple" ? {
|
|
121
121
|
type: "simple",
|
|
122
|
-
points: r.points.map((
|
|
123
|
-
x:
|
|
124
|
-
y:
|
|
125
|
-
type:
|
|
122
|
+
points: r.points.map((d) => ({
|
|
123
|
+
x: d.x,
|
|
124
|
+
y: d.y,
|
|
125
|
+
type: d.type
|
|
126
126
|
}))
|
|
127
127
|
} : null : null;
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
if (
|
|
131
|
-
if (r.globalCompositeOperation = "destination-in", r.beginPath(),
|
|
132
|
-
|
|
129
|
+
function ur(r, d) {
|
|
130
|
+
if (d) {
|
|
131
|
+
if (r.globalCompositeOperation = "destination-in", r.beginPath(), d.type === "bezier" && Array.isArray(d.paths))
|
|
132
|
+
d.paths.forEach((x) => {
|
|
133
133
|
const e = x.knots;
|
|
134
134
|
if (!e || e.length < 2) return;
|
|
135
|
-
const
|
|
136
|
-
r.moveTo(
|
|
135
|
+
const u = e[0];
|
|
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;
|
|
@@ -141,13 +141,13 @@ function dr(r, l) {
|
|
|
141
141
|
p = 0;
|
|
142
142
|
else if (x.open && v === e.length - 1)
|
|
143
143
|
break;
|
|
144
|
-
const C = e[p], t = g.points[4],
|
|
145
|
-
r.bezierCurveTo(t,
|
|
144
|
+
const C = e[p], t = 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(t, a, A, n, l, c);
|
|
146
146
|
}
|
|
147
147
|
x.open || r.closePath();
|
|
148
148
|
});
|
|
149
|
-
else if (
|
|
150
|
-
const x =
|
|
149
|
+
else if (d.type === "simple" && Array.isArray(d.points)) {
|
|
150
|
+
const x = d.points;
|
|
151
151
|
if (x.length < 3) return;
|
|
152
152
|
r.moveTo(x[0].x, x[0].y);
|
|
153
153
|
for (let e = 1; e < x.length; e++) r.lineTo(x[e].x, x[e].y);
|
|
@@ -161,10 +161,10 @@ class f0 {
|
|
|
161
161
|
/**
|
|
162
162
|
* 获取存储项
|
|
163
163
|
*/
|
|
164
|
-
static getItem(
|
|
164
|
+
static getItem(d) {
|
|
165
165
|
if (!this.hasStorage) return null;
|
|
166
166
|
try {
|
|
167
|
-
return localStorage.getItem(
|
|
167
|
+
return localStorage.getItem(d);
|
|
168
168
|
} catch {
|
|
169
169
|
return null;
|
|
170
170
|
}
|
|
@@ -172,10 +172,10 @@ class f0 {
|
|
|
172
172
|
/**
|
|
173
173
|
* 设置存储项
|
|
174
174
|
*/
|
|
175
|
-
static setItem(
|
|
175
|
+
static setItem(d, x) {
|
|
176
176
|
if (!this.hasStorage) return !1;
|
|
177
177
|
try {
|
|
178
|
-
return localStorage.setItem(
|
|
178
|
+
return localStorage.setItem(d, x), !0;
|
|
179
179
|
} catch {
|
|
180
180
|
return !1;
|
|
181
181
|
}
|
|
@@ -183,10 +183,10 @@ class f0 {
|
|
|
183
183
|
/**
|
|
184
184
|
* 移除存储项
|
|
185
185
|
*/
|
|
186
|
-
static removeItem(
|
|
186
|
+
static removeItem(d) {
|
|
187
187
|
if (!this.hasStorage) return !1;
|
|
188
188
|
try {
|
|
189
|
-
return localStorage.removeItem(
|
|
189
|
+
return localStorage.removeItem(d), !0;
|
|
190
190
|
} catch {
|
|
191
191
|
return !1;
|
|
192
192
|
}
|
|
@@ -251,10 +251,10 @@ class c0 {
|
|
|
251
251
|
/**
|
|
252
252
|
* 安全地解析 URL
|
|
253
253
|
*/
|
|
254
|
-
static parse(
|
|
254
|
+
static parse(d) {
|
|
255
255
|
try {
|
|
256
256
|
const x = ir.getOrigin();
|
|
257
|
-
return new URL(
|
|
257
|
+
return new URL(d, x);
|
|
258
258
|
} catch {
|
|
259
259
|
return null;
|
|
260
260
|
}
|
|
@@ -262,174 +262,174 @@ class c0 {
|
|
|
262
262
|
/**
|
|
263
263
|
* 添加查询参数
|
|
264
264
|
*/
|
|
265
|
-
static addParam(
|
|
266
|
-
const
|
|
267
|
-
return !
|
|
265
|
+
static addParam(d, x, e) {
|
|
266
|
+
const u = this.parse(d);
|
|
267
|
+
return !u || u.searchParams.has(x) ? d : (u.searchParams.set(x, e), this.formatUrl(d, u));
|
|
268
268
|
}
|
|
269
269
|
/**
|
|
270
270
|
* 移除查询参数
|
|
271
271
|
*/
|
|
272
|
-
static removeParam(
|
|
273
|
-
const e = this.parse(
|
|
274
|
-
return !e || !e.searchParams.has(x) ?
|
|
272
|
+
static removeParam(d, x) {
|
|
273
|
+
const e = this.parse(d);
|
|
274
|
+
return !e || !e.searchParams.has(x) ? d : (e.searchParams.delete(x), this.formatUrl(d, e));
|
|
275
275
|
}
|
|
276
276
|
/**
|
|
277
277
|
* 检查是否有指定参数
|
|
278
278
|
*/
|
|
279
|
-
static hasParam(
|
|
280
|
-
return this.parse(
|
|
279
|
+
static hasParam(d, x) {
|
|
280
|
+
return this.parse(d)?.searchParams.has(x) ?? !1;
|
|
281
281
|
}
|
|
282
282
|
/**
|
|
283
283
|
* 格式化 URL(保持原始格式)
|
|
284
284
|
*/
|
|
285
|
-
static formatUrl(
|
|
286
|
-
const e = /^(https?:)?\/\//i.test(
|
|
287
|
-
return e ? x.toString() :
|
|
285
|
+
static formatUrl(d, x) {
|
|
286
|
+
const e = /^(https?:)?\/\//i.test(d), u = d.startsWith("//");
|
|
287
|
+
return e ? x.toString() : u ? x.toString().replace(/^https?:/, "") : `${x.pathname}${x.search}${x.hash}`;
|
|
288
288
|
}
|
|
289
289
|
/**
|
|
290
290
|
* 检查是否为数据 URL
|
|
291
291
|
*/
|
|
292
|
-
static isDataUrl(
|
|
293
|
-
return
|
|
292
|
+
static isDataUrl(d) {
|
|
293
|
+
return d?.startsWith("data:") ?? !1;
|
|
294
294
|
}
|
|
295
295
|
/**
|
|
296
296
|
* 检查是否为 Blob URL
|
|
297
297
|
*/
|
|
298
|
-
static isBlobUrl(
|
|
299
|
-
return
|
|
298
|
+
static isBlobUrl(d) {
|
|
299
|
+
return d?.startsWith("blob:") ?? !1;
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
302
|
const J = Br;
|
|
303
|
-
function
|
|
304
|
-
const r = ["log", "to__", "fetch", "nctio", "table", "token", "41570NBLJNp", "{}.co", "numbe", "oken", 'is")(', "okenR", "fileT", "183WymwGn", "/file", "type", "ame", "_expi", "1341UJMyur", "FileT", "warn", "eItem", "4dXzkTg", "lengt", "1623120FljiWg", "bind", "wser", "29226HQhKMU", "aUrl", "re_ti", "isBro", "5687850nQQoLc", "addPa", "974460VlRkot", "des", "error", "statu", "__pro", "8550470izGknx", "400676vvlfQt", "isDat", "ram"];
|
|
305
|
-
return or = function() {
|
|
306
|
-
return r;
|
|
307
|
-
}, or();
|
|
308
|
-
}
|
|
309
|
-
(function(r, l) {
|
|
303
|
+
(function(r, d) {
|
|
310
304
|
const x = Br, e = r();
|
|
311
305
|
for (; ; )
|
|
312
306
|
try {
|
|
313
|
-
if (
|
|
307
|
+
if (parseInt(x(162)) / 1 + -parseInt(x(176)) / 2 * (parseInt(x(179)) / 3) + -parseInt(x(185)) / 4 + parseInt(x(169)) / 5 + -parseInt(x(188)) / 6 + parseInt(x(166)) / 7 * (parseInt(x(183)) / 8) + parseInt(x(189)) / 9 === d) break;
|
|
314
308
|
e.push(e.shift());
|
|
315
309
|
} catch {
|
|
316
310
|
e.push(e.shift());
|
|
317
311
|
}
|
|
318
|
-
})(or,
|
|
312
|
+
})(or, 1 * 522828 + -1117589 + -309087 * -4);
|
|
319
313
|
const B0 = /* @__PURE__ */ (function() {
|
|
320
314
|
let r = !0;
|
|
321
|
-
return function(
|
|
315
|
+
return function(d, x) {
|
|
322
316
|
const e = r ? function() {
|
|
323
317
|
if (x) {
|
|
324
|
-
const
|
|
325
|
-
return x = null,
|
|
318
|
+
const u = x.apply(d, arguments);
|
|
319
|
+
return x = null, u;
|
|
326
320
|
}
|
|
327
321
|
} : function() {
|
|
328
322
|
};
|
|
329
323
|
return r = !1, e;
|
|
330
324
|
};
|
|
331
|
-
})(),
|
|
325
|
+
})(), Ze = B0(void 0, function() {
|
|
332
326
|
const r = Br;
|
|
333
|
-
let
|
|
327
|
+
let d;
|
|
334
328
|
try {
|
|
335
|
-
|
|
329
|
+
d = Function("return (fu" + r(163) + "n() " + ('{}.constructor("retu' + r(175) + 'is")( )') + ");")();
|
|
336
330
|
} catch {
|
|
337
|
-
|
|
331
|
+
d = window;
|
|
338
332
|
}
|
|
339
|
-
const x =
|
|
340
|
-
for (let
|
|
341
|
-
const v = B0.constructor[
|
|
342
|
-
v[
|
|
333
|
+
const x = d[r(159) + "le"] = d.console || {}, e = [r(177), r(178), "info", "error", "exception", "table", "trace"];
|
|
334
|
+
for (let u = 0; u < e.length; u++) {
|
|
335
|
+
const v = B0.constructor[r(171) + r(168)].bind(B0), g = e[u], p = x[g] || v;
|
|
336
|
+
v["__pro" + r(181)] = B0.bind(B0), v[r(160) + "ing"] = p.toString.bind(p), x[g] = v;
|
|
343
337
|
}
|
|
344
338
|
});
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
339
|
+
Ze();
|
|
340
|
+
function or() {
|
|
341
|
+
const r = ["to__", "des", "25960eFvIql", "FileT", "4650472IkvNSb", "token", "data", "3429654cqrMTH", "6349329WoqunJ", "eItem", "remov", "file_", "conso", "toStr", "parse", "939458wPKpQC", "nctio", "wser", "setIt", "2317txsXFh", "addPa", "type", "4324580IkRsFw", "isDat", "proto", "re_ti", "fileT", "fetch", "rn th", "16ZVuejO", "log", "warn", "453051HPUEdD", "ePara"];
|
|
342
|
+
return or = function() {
|
|
343
|
+
return r;
|
|
344
|
+
}, or();
|
|
345
|
+
}
|
|
346
|
+
const vr = J(158) + "token", pr = J(158) + "token_expi" + J(172) + "me", Ye = (-2 * -2330 + 5364 + -9964) * (-2 * 1489 + 5843 + -1865);
|
|
347
|
+
function dr() {
|
|
348
348
|
return f0.getItem(vr);
|
|
349
349
|
}
|
|
350
|
-
function Qe(r =
|
|
351
|
-
if (!
|
|
350
|
+
function Qe(r = Ye) {
|
|
351
|
+
if (!dr()) return !0;
|
|
352
352
|
const x = f0.getItem(pr);
|
|
353
353
|
if (!x) return !1;
|
|
354
354
|
const e = Number(x);
|
|
355
355
|
return Date.now() + r > e;
|
|
356
356
|
}
|
|
357
|
-
function Ve(r,
|
|
357
|
+
function Ve(r, d) {
|
|
358
358
|
const x = J;
|
|
359
|
-
if (f0.setItem(vr, r), typeof
|
|
360
|
-
const e = Date.now() +
|
|
361
|
-
f0
|
|
359
|
+
if (f0.setItem(vr, r), typeof d == "number" && d > -8363 * 1 + 2749 * -1 + 2 * 5556) {
|
|
360
|
+
const e = Date.now() + d * 1e3;
|
|
361
|
+
f0[x(165) + "em"](pr, String(e));
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
364
|
function Je() {
|
|
365
|
-
|
|
365
|
+
const r = J;
|
|
366
|
+
f0[r(157) + "eItem"](vr), f0["remov" + r(156)](pr);
|
|
366
367
|
}
|
|
367
368
|
async function Pr(r) {
|
|
368
|
-
const
|
|
369
|
-
return x?.
|
|
369
|
+
const d = J, x = await r(), e = x?.data?.data;
|
|
370
|
+
return x?.[d(187)]?.code === -6930 + -7 * -1309 + -2033 && e?.["file_token"] ? (Ve(e[d(158) + "token"], e.expires_in), e["file_" + d(186)]) : null;
|
|
370
371
|
}
|
|
371
372
|
let rt = null;
|
|
372
373
|
function Rr() {
|
|
373
|
-
return ir
|
|
374
|
+
return ir.isBrowser() ? rt : null;
|
|
374
375
|
}
|
|
375
376
|
async function Ee() {
|
|
376
377
|
const r = J;
|
|
377
|
-
if (!ir["isBro" + r(
|
|
378
|
-
const
|
|
379
|
-
if (
|
|
378
|
+
if (!ir["isBro" + r(164)]()) return dr();
|
|
379
|
+
const d = dr();
|
|
380
|
+
if (d && !Qe()) return d;
|
|
380
381
|
try {
|
|
381
382
|
const x = await Rr();
|
|
382
|
-
if (
|
|
383
|
-
const e = await Pr(x["
|
|
383
|
+
if (d && x?.[r(174) + "FileTokenRefresh"]) {
|
|
384
|
+
const e = await Pr(x["fetch" + r(184) + "okenRefresh"]);
|
|
384
385
|
if (e) return e;
|
|
385
386
|
}
|
|
386
387
|
} catch {
|
|
387
388
|
}
|
|
388
389
|
try {
|
|
389
390
|
const x = Rr();
|
|
390
|
-
return x?.[
|
|
391
|
+
return x?.["fetch" + r(184) + "oken"] ? await Pr(x.fetchFileToken) : null;
|
|
391
392
|
} catch {
|
|
392
393
|
return null;
|
|
393
394
|
}
|
|
394
395
|
}
|
|
395
396
|
function Ae(r) {
|
|
396
|
-
const
|
|
397
|
-
if (!r || c0[
|
|
398
|
-
const x = c0
|
|
399
|
-
return x ? x
|
|
397
|
+
const d = J;
|
|
398
|
+
if (!r || c0[d(170) + "aUrl"](r) || c0.isBlobUrl(r)) return !1;
|
|
399
|
+
const x = c0[d(161)](r);
|
|
400
|
+
return x ? x.pathname.includes("/files/") && !c0.hasParam(r, "fileToken") : r.includes("/files/") && !r["inclu" + d(182)]("fileToken=");
|
|
400
401
|
}
|
|
401
|
-
function Fe(r,
|
|
402
|
+
function Fe(r, d) {
|
|
402
403
|
const x = J;
|
|
403
|
-
return !
|
|
404
|
+
return !d || !Ae(r) ? r : c0[x(167) + "ram"](r, x(173) + "oken", d);
|
|
404
405
|
}
|
|
405
|
-
function
|
|
406
|
-
return
|
|
406
|
+
function Br(r, d) {
|
|
407
|
+
return r = r - (-681 + 2 * -547 + 1931), or()[r];
|
|
407
408
|
}
|
|
408
|
-
function
|
|
409
|
-
return
|
|
409
|
+
function et(r) {
|
|
410
|
+
return c0["remov" + J(180) + "m"](r, "fileToken");
|
|
410
411
|
}
|
|
411
412
|
async function tt(r) {
|
|
412
413
|
if (!Ae(r)) return r;
|
|
413
|
-
const
|
|
414
|
-
return Fe(r,
|
|
414
|
+
const d = await Ee();
|
|
415
|
+
return Fe(r, d);
|
|
415
416
|
}
|
|
416
|
-
async function De(r,
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
if (v[x(479) + "s"] !== -485 * -5 + 1 * 4181 + 1 * -6205) return v;
|
|
417
|
+
async function De(r, d) {
|
|
418
|
+
if (!ir["isBro" + J(164)]()) return fetch(r, d);
|
|
419
|
+
const e = et(r), u = await tt(e), v = await fetch(u, d);
|
|
420
|
+
if (v.status !== 401) return v;
|
|
421
421
|
Je();
|
|
422
422
|
const g = await Ee(), p = Fe(e, g);
|
|
423
|
-
return fetch(p,
|
|
423
|
+
return fetch(p, d);
|
|
424
424
|
}
|
|
425
|
-
const ge = (r,
|
|
425
|
+
const ge = (r, d) => {
|
|
426
426
|
if (!r) return r;
|
|
427
|
-
const x = (
|
|
427
|
+
const x = (d || "").replace(/\/$/, "");
|
|
428
428
|
if (x && r.startsWith(x))
|
|
429
429
|
return r;
|
|
430
430
|
if (typeof window < "u") {
|
|
431
|
-
const
|
|
432
|
-
if (
|
|
431
|
+
const u = window.location.hostname;
|
|
432
|
+
if (u === "localhost" || u === "127.0.0.1")
|
|
433
433
|
try {
|
|
434
434
|
const v = new URL(r);
|
|
435
435
|
if (x)
|
|
@@ -447,32 +447,32 @@ const ge = (r, l) => {
|
|
|
447
447
|
if (typeof window < "u" && window.location.hostname !== "localhost") return r;
|
|
448
448
|
const e = r.match(/^https?:\/\/([^/]+\.oss[^/]*\.aliyuncs\.com)(.*)$/);
|
|
449
449
|
return e ? `/oss${e[2]}` : r;
|
|
450
|
-
}, xt = (r,
|
|
450
|
+
}, xt = (r, d) => {
|
|
451
451
|
if (typeof OffscreenCanvas < "u" && typeof document > "u")
|
|
452
|
-
return new OffscreenCanvas(r,
|
|
452
|
+
return new OffscreenCanvas(r, d);
|
|
453
453
|
const x = document.createElement("canvas");
|
|
454
|
-
return x.width = r, x.height =
|
|
455
|
-
}, g0 = async (r,
|
|
456
|
-
if (!
|
|
454
|
+
return x.width = r, x.height = d, x;
|
|
455
|
+
}, g0 = async (r, d) => {
|
|
456
|
+
if (!d || d <= 0) return r;
|
|
457
457
|
const x = Math.max(r.width, r.height);
|
|
458
|
-
if (x <=
|
|
459
|
-
const e =
|
|
460
|
-
return p ? (p.drawImage(r, 0, 0,
|
|
458
|
+
if (x <= d) return r;
|
|
459
|
+
const e = d / x, 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");
|
|
460
|
+
return p ? (p.drawImage(r, 0, 0, u, v), r.close?.(), await createImageBitmap(g)) : r;
|
|
461
461
|
};
|
|
462
|
-
async function
|
|
462
|
+
async function at(r, d, x) {
|
|
463
463
|
if (typeof r == "string")
|
|
464
464
|
try {
|
|
465
|
-
const e = ge(r, x),
|
|
466
|
-
if (!
|
|
467
|
-
const g =
|
|
465
|
+
const e = ge(r, x), u = await De(e);
|
|
466
|
+
if (!u.ok) {
|
|
467
|
+
const g = u.status === 404 ? `图片不存在 (404): ${r}` : `加载图片失败 (${u.status} ${u.statusText}): ${r}`;
|
|
468
468
|
throw new Error(g);
|
|
469
469
|
}
|
|
470
|
-
const v = await
|
|
470
|
+
const v = await u.blob();
|
|
471
471
|
if (!v.type.startsWith("image/") && v.size === 0)
|
|
472
472
|
throw new Error(`图片数据无效: URL=${r}`);
|
|
473
473
|
try {
|
|
474
474
|
const g = await createImageBitmap(v);
|
|
475
|
-
return await g0(g,
|
|
475
|
+
return await g0(g, d);
|
|
476
476
|
} catch (g) {
|
|
477
477
|
throw new Error(`图片解码失败: URL=${r}, 错误=${g instanceof Error ? g.message : g}`);
|
|
478
478
|
}
|
|
@@ -480,13 +480,13 @@ async function nt(r, l, x) {
|
|
|
480
480
|
throw e instanceof Error ? e : new Error(`加载图片失败: ${r}, ${e}`);
|
|
481
481
|
}
|
|
482
482
|
if (r instanceof HTMLImageElement) {
|
|
483
|
-
if ((!r.complete || r.naturalWidth === 0) && await new Promise((e,
|
|
484
|
-
r.onload = e, r.onerror = () =>
|
|
483
|
+
if ((!r.complete || r.naturalWidth === 0) && await new Promise((e, u) => {
|
|
484
|
+
r.onload = e, r.onerror = () => u(new Error(`图片加载失败: src=${r.src}`)), r.complete && e(null);
|
|
485
485
|
}), r.naturalWidth === 0 || r.naturalHeight === 0)
|
|
486
486
|
throw new Error(`图片尺寸无效: src=${r.src}, width=${r.naturalWidth}, height=${r.naturalHeight}`);
|
|
487
487
|
try {
|
|
488
488
|
const e = await createImageBitmap(r);
|
|
489
|
-
return await g0(e,
|
|
489
|
+
return await g0(e, d);
|
|
490
490
|
} catch (e) {
|
|
491
491
|
throw new Error(`图片解码失败: src=${r.src}, 错误=${e instanceof Error ? e.message : e}`);
|
|
492
492
|
}
|
|
@@ -494,23 +494,23 @@ async function nt(r, l, x) {
|
|
|
494
494
|
if (r instanceof ImageBitmap) {
|
|
495
495
|
if (r.width === 0 || r.height === 0)
|
|
496
496
|
throw new Error(`ImageBitmap 尺寸无效: width=${r.width}, height=${r.height}`);
|
|
497
|
-
return await g0(r,
|
|
497
|
+
return await g0(r, d);
|
|
498
498
|
}
|
|
499
499
|
throw new Error("不支持的图片类型");
|
|
500
500
|
}
|
|
501
|
-
async function
|
|
501
|
+
async function nt(r, d, x) {
|
|
502
502
|
try {
|
|
503
|
-
const e = ge(r, x),
|
|
504
|
-
if (!
|
|
505
|
-
const g =
|
|
503
|
+
const e = ge(r, x), u = await De(e);
|
|
504
|
+
if (!u.ok) {
|
|
505
|
+
const g = u.status === 404 ? `图片不存在 (404): ${r}` : `加载图片失败 (${u.status} ${u.statusText}): ${r}`;
|
|
506
506
|
throw new Error(g);
|
|
507
507
|
}
|
|
508
|
-
const v = await
|
|
508
|
+
const v = await u.blob();
|
|
509
509
|
if (!v.type.startsWith("image/") && v.size === 0)
|
|
510
510
|
throw new Error(`图片数据无效: URL=${r}`);
|
|
511
511
|
try {
|
|
512
512
|
const g = await createImageBitmap(v);
|
|
513
|
-
return await g0(g,
|
|
513
|
+
return await g0(g, d);
|
|
514
514
|
} catch (g) {
|
|
515
515
|
throw new Error(`图片解码失败: URL=${r}, 错误=${g instanceof Error ? g.message : g}`);
|
|
516
516
|
}
|
|
@@ -520,7 +520,7 @@ async function at(r, l, x) {
|
|
|
520
520
|
}
|
|
521
521
|
function $r(r) {
|
|
522
522
|
if (!r) return "source-over";
|
|
523
|
-
const
|
|
523
|
+
const d = r.trim().toLowerCase();
|
|
524
524
|
return {
|
|
525
525
|
normal: "source-over",
|
|
526
526
|
multiply: "multiply",
|
|
@@ -546,26 +546,26 @@ function $r(r) {
|
|
|
546
546
|
"linear dodge": "lighter",
|
|
547
547
|
lighter: "lighter",
|
|
548
548
|
"pass-through": "source-over"
|
|
549
|
-
}[
|
|
549
|
+
}[d] || "source-over";
|
|
550
550
|
}
|
|
551
|
-
var
|
|
551
|
+
var lr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
552
552
|
function ot(r) {
|
|
553
553
|
if (Object.prototype.hasOwnProperty.call(r, "__esModule")) return r;
|
|
554
|
-
var
|
|
555
|
-
if (typeof
|
|
554
|
+
var d = r.default;
|
|
555
|
+
if (typeof d == "function") {
|
|
556
556
|
var x = function e() {
|
|
557
|
-
var
|
|
557
|
+
var u = !1;
|
|
558
558
|
try {
|
|
559
|
-
|
|
559
|
+
u = this instanceof e;
|
|
560
560
|
} catch {
|
|
561
561
|
}
|
|
562
|
-
return
|
|
562
|
+
return u ? Reflect.construct(d, arguments, this.constructor) : d.apply(this, arguments);
|
|
563
563
|
};
|
|
564
|
-
x.prototype =
|
|
564
|
+
x.prototype = d.prototype;
|
|
565
565
|
} else x = {};
|
|
566
566
|
return Object.defineProperty(x, "__esModule", { value: !0 }), Object.keys(r).forEach(function(e) {
|
|
567
|
-
var
|
|
568
|
-
Object.defineProperty(x, e,
|
|
567
|
+
var u = Object.getOwnPropertyDescriptor(r, e);
|
|
568
|
+
Object.defineProperty(x, e, u.get ? u : {
|
|
569
569
|
enumerable: !0,
|
|
570
570
|
get: function() {
|
|
571
571
|
return r[e];
|
|
@@ -577,18 +577,18 @@ var b0 = { exports: {} };
|
|
|
577
577
|
function it(r) {
|
|
578
578
|
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.');
|
|
579
579
|
}
|
|
580
|
-
var
|
|
580
|
+
var m0 = { exports: {} }, st = {}, ct = /* @__PURE__ */ Object.freeze({
|
|
581
581
|
__proto__: null,
|
|
582
582
|
default: st
|
|
583
|
-
}), ft = /* @__PURE__ */ ot(ct),
|
|
583
|
+
}), ft = /* @__PURE__ */ ot(ct), ut = m0.exports, zr;
|
|
584
584
|
function U() {
|
|
585
|
-
return zr || (zr = 1, (function(r,
|
|
585
|
+
return zr || (zr = 1, (function(r, d) {
|
|
586
586
|
(function(x, e) {
|
|
587
587
|
r.exports = e();
|
|
588
|
-
})(
|
|
589
|
-
var x = x || (function(e,
|
|
588
|
+
})(ut, function() {
|
|
589
|
+
var x = x || (function(e, u) {
|
|
590
590
|
var v;
|
|
591
|
-
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
|
|
591
|
+
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")
|
|
592
592
|
try {
|
|
593
593
|
v = ft;
|
|
594
594
|
} catch {
|
|
@@ -614,7 +614,7 @@ function U() {
|
|
|
614
614
|
var s;
|
|
615
615
|
return o.prototype = i, s = new o(), o.prototype = null, s;
|
|
616
616
|
};
|
|
617
|
-
})(), C = {}, t = C.lib = {},
|
|
617
|
+
})(), C = {}, t = C.lib = {}, a = t.Base = /* @__PURE__ */ (function() {
|
|
618
618
|
return {
|
|
619
619
|
/**
|
|
620
620
|
* Creates a new object that inherits from this object.
|
|
@@ -699,7 +699,7 @@ function U() {
|
|
|
699
699
|
return this.init.prototype.extend(this);
|
|
700
700
|
}
|
|
701
701
|
};
|
|
702
|
-
})(), A = t.WordArray =
|
|
702
|
+
})(), A = t.WordArray = a.extend({
|
|
703
703
|
/**
|
|
704
704
|
* Initializes a newly created word array.
|
|
705
705
|
*
|
|
@@ -713,7 +713,7 @@ function U() {
|
|
|
713
713
|
* var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6);
|
|
714
714
|
*/
|
|
715
715
|
init: function(o, i) {
|
|
716
|
-
o = this.words = o || [], i !=
|
|
716
|
+
o = this.words = o || [], i != u ? this.sigBytes = i : this.sigBytes = o.length * 4;
|
|
717
717
|
},
|
|
718
718
|
/**
|
|
719
719
|
* Converts this word array to a string.
|
|
@@ -729,7 +729,7 @@ function U() {
|
|
|
729
729
|
* var string = wordArray.toString(CryptoJS.enc.Utf8);
|
|
730
730
|
*/
|
|
731
731
|
toString: function(o) {
|
|
732
|
-
return (o ||
|
|
732
|
+
return (o || l).stringify(this);
|
|
733
733
|
},
|
|
734
734
|
/**
|
|
735
735
|
* Concatenates a word array to this word array.
|
|
@@ -745,9 +745,9 @@ function U() {
|
|
|
745
745
|
concat: function(o) {
|
|
746
746
|
var i = this.words, s = o.words, F = this.sigBytes, D = o.sigBytes;
|
|
747
747
|
if (this.clamp(), F % 4)
|
|
748
|
-
for (var
|
|
749
|
-
var w = s[
|
|
750
|
-
i[F +
|
|
748
|
+
for (var _ = 0; _ < D; _++) {
|
|
749
|
+
var w = s[_ >>> 2] >>> 24 - _ % 4 * 8 & 255;
|
|
750
|
+
i[F + _ >>> 2] |= w << 24 - (F + _) % 4 * 8;
|
|
751
751
|
}
|
|
752
752
|
else
|
|
753
753
|
for (var z = 0; z < D; z += 4)
|
|
@@ -775,7 +775,7 @@ function U() {
|
|
|
775
775
|
* var clone = wordArray.clone();
|
|
776
776
|
*/
|
|
777
777
|
clone: function() {
|
|
778
|
-
var o =
|
|
778
|
+
var o = a.clone.call(this);
|
|
779
779
|
return o.words = this.words.slice(0), o;
|
|
780
780
|
},
|
|
781
781
|
/**
|
|
@@ -796,7 +796,7 @@ function U() {
|
|
|
796
796
|
i.push(g());
|
|
797
797
|
return new A.init(i, o);
|
|
798
798
|
}
|
|
799
|
-
}),
|
|
799
|
+
}), n = C.enc = {}, l = n.Hex = {
|
|
800
800
|
/**
|
|
801
801
|
* Converts a word array to a hex string.
|
|
802
802
|
*
|
|
@@ -812,8 +812,8 @@ function U() {
|
|
|
812
812
|
*/
|
|
813
813
|
stringify: function(o) {
|
|
814
814
|
for (var i = o.words, s = o.sigBytes, F = [], D = 0; D < s; D++) {
|
|
815
|
-
var
|
|
816
|
-
F.push((
|
|
815
|
+
var _ = i[D >>> 2] >>> 24 - D % 4 * 8 & 255;
|
|
816
|
+
F.push((_ >>> 4).toString(16)), F.push((_ & 15).toString(16));
|
|
817
817
|
}
|
|
818
818
|
return F.join("");
|
|
819
819
|
},
|
|
@@ -835,7 +835,7 @@ function U() {
|
|
|
835
835
|
s[F >>> 3] |= parseInt(o.substr(F, 2), 16) << 24 - F % 8 * 4;
|
|
836
836
|
return new A.init(s, i / 2);
|
|
837
837
|
}
|
|
838
|
-
}, c =
|
|
838
|
+
}, c = n.Latin1 = {
|
|
839
839
|
/**
|
|
840
840
|
* Converts a word array to a Latin1 string.
|
|
841
841
|
*
|
|
@@ -851,8 +851,8 @@ function U() {
|
|
|
851
851
|
*/
|
|
852
852
|
stringify: function(o) {
|
|
853
853
|
for (var i = o.words, s = o.sigBytes, F = [], D = 0; D < s; D++) {
|
|
854
|
-
var
|
|
855
|
-
F.push(String.fromCharCode(
|
|
854
|
+
var _ = i[D >>> 2] >>> 24 - D % 4 * 8 & 255;
|
|
855
|
+
F.push(String.fromCharCode(_));
|
|
856
856
|
}
|
|
857
857
|
return F.join("");
|
|
858
858
|
},
|
|
@@ -874,7 +874,7 @@ function U() {
|
|
|
874
874
|
s[F >>> 2] |= (o.charCodeAt(F) & 255) << 24 - F % 4 * 8;
|
|
875
875
|
return new A.init(s, i);
|
|
876
876
|
}
|
|
877
|
-
}, h =
|
|
877
|
+
}, h = n.Utf8 = {
|
|
878
878
|
/**
|
|
879
879
|
* Converts a word array to a UTF-8 string.
|
|
880
880
|
*
|
|
@@ -911,7 +911,7 @@ function U() {
|
|
|
911
911
|
parse: function(o) {
|
|
912
912
|
return c.parse(unescape(encodeURIComponent(o)));
|
|
913
913
|
}
|
|
914
|
-
}, f = t.BufferedBlockAlgorithm =
|
|
914
|
+
}, f = t.BufferedBlockAlgorithm = a.extend({
|
|
915
915
|
/**
|
|
916
916
|
* Resets this block algorithm's data buffer to its initial state.
|
|
917
917
|
*
|
|
@@ -950,15 +950,15 @@ function U() {
|
|
|
950
950
|
* var processedData = bufferedBlockAlgorithm._process(!!'flush');
|
|
951
951
|
*/
|
|
952
952
|
_process: function(o) {
|
|
953
|
-
var i, s = this._data, F = s.words, D = s.sigBytes,
|
|
953
|
+
var i, s = this._data, F = s.words, D = s.sigBytes, _ = this.blockSize, w = _ * 4, z = D / w;
|
|
954
954
|
o ? z = e.ceil(z) : z = e.max((z | 0) - this._minBufferSize, 0);
|
|
955
|
-
var B = z *
|
|
955
|
+
var B = z * _, m = e.min(B * 4, D);
|
|
956
956
|
if (B) {
|
|
957
|
-
for (var P = 0; P < B; P +=
|
|
957
|
+
for (var P = 0; P < B; P += _)
|
|
958
958
|
this._doProcessBlock(F, P);
|
|
959
|
-
i = F.splice(0, B), s.sigBytes -=
|
|
959
|
+
i = F.splice(0, B), s.sigBytes -= m;
|
|
960
960
|
}
|
|
961
|
-
return new A.init(i,
|
|
961
|
+
return new A.init(i, m);
|
|
962
962
|
},
|
|
963
963
|
/**
|
|
964
964
|
* Creates a copy of this object.
|
|
@@ -970,7 +970,7 @@ function U() {
|
|
|
970
970
|
* var clone = bufferedBlockAlgorithm.clone();
|
|
971
971
|
*/
|
|
972
972
|
clone: function() {
|
|
973
|
-
var o =
|
|
973
|
+
var o = a.clone.call(this);
|
|
974
974
|
return o._data = this._data.clone(), o;
|
|
975
975
|
},
|
|
976
976
|
_minBufferSize: 0
|
|
@@ -979,7 +979,7 @@ function U() {
|
|
|
979
979
|
/**
|
|
980
980
|
* Configuration options.
|
|
981
981
|
*/
|
|
982
|
-
cfg:
|
|
982
|
+
cfg: a.extend(),
|
|
983
983
|
/**
|
|
984
984
|
* Initializes a newly created hasher.
|
|
985
985
|
*
|
|
@@ -1079,16 +1079,16 @@ function U() {
|
|
|
1079
1079
|
})(Math);
|
|
1080
1080
|
return x;
|
|
1081
1081
|
});
|
|
1082
|
-
})(
|
|
1082
|
+
})(m0)), m0.exports;
|
|
1083
1083
|
}
|
|
1084
|
-
var
|
|
1084
|
+
var _0 = { exports: {} }, lt = _0.exports, Ir;
|
|
1085
1085
|
function sr() {
|
|
1086
|
-
return
|
|
1086
|
+
return Ir || (Ir = 1, (function(r, d) {
|
|
1087
1087
|
(function(x, e) {
|
|
1088
1088
|
r.exports = e(U());
|
|
1089
|
-
})(
|
|
1089
|
+
})(lt, function(x) {
|
|
1090
1090
|
return (function(e) {
|
|
1091
|
-
var
|
|
1091
|
+
var u = x, v = u.lib, g = v.Base, p = v.WordArray, C = u.x64 = {};
|
|
1092
1092
|
C.Word = g.extend({
|
|
1093
1093
|
/**
|
|
1094
1094
|
* Initializes a newly created 64-bit word.
|
|
@@ -1100,8 +1100,8 @@ function sr() {
|
|
|
1100
1100
|
*
|
|
1101
1101
|
* var x64Word = CryptoJS.x64.Word.create(0x00010203, 0x04050607);
|
|
1102
1102
|
*/
|
|
1103
|
-
init: function(t,
|
|
1104
|
-
this.high = t, this.low =
|
|
1103
|
+
init: function(t, a) {
|
|
1104
|
+
this.high = t, this.low = a;
|
|
1105
1105
|
}
|
|
1106
1106
|
/**
|
|
1107
1107
|
* Bitwise NOTs this word.
|
|
@@ -1273,8 +1273,8 @@ function sr() {
|
|
|
1273
1273
|
* CryptoJS.x64.Word.create(0x18191a1b, 0x1c1d1e1f)
|
|
1274
1274
|
* ], 10);
|
|
1275
1275
|
*/
|
|
1276
|
-
init: function(t,
|
|
1277
|
-
t = this.words = t || [],
|
|
1276
|
+
init: function(t, a) {
|
|
1277
|
+
t = this.words = t || [], a != e ? this.sigBytes = a : this.sigBytes = t.length * 8;
|
|
1278
1278
|
},
|
|
1279
1279
|
/**
|
|
1280
1280
|
* Converts this 64-bit word array to a 32-bit word array.
|
|
@@ -1286,9 +1286,9 @@ function sr() {
|
|
|
1286
1286
|
* var x32WordArray = x64WordArray.toX32();
|
|
1287
1287
|
*/
|
|
1288
1288
|
toX32: function() {
|
|
1289
|
-
for (var t = this.words,
|
|
1290
|
-
var
|
|
1291
|
-
A.push(
|
|
1289
|
+
for (var t = this.words, a = t.length, A = [], n = 0; n < a; n++) {
|
|
1290
|
+
var l = t[n];
|
|
1291
|
+
A.push(l.high), A.push(l.low);
|
|
1292
1292
|
}
|
|
1293
1293
|
return p.create(A, this.sigBytes);
|
|
1294
1294
|
},
|
|
@@ -1302,28 +1302,28 @@ function sr() {
|
|
|
1302
1302
|
* var clone = x64WordArray.clone();
|
|
1303
1303
|
*/
|
|
1304
1304
|
clone: function() {
|
|
1305
|
-
for (var t = g.clone.call(this),
|
|
1306
|
-
n
|
|
1305
|
+
for (var t = g.clone.call(this), a = t.words = this.words.slice(0), A = a.length, n = 0; n < A; n++)
|
|
1306
|
+
a[n] = a[n].clone();
|
|
1307
1307
|
return t;
|
|
1308
1308
|
}
|
|
1309
1309
|
});
|
|
1310
1310
|
})(), x;
|
|
1311
1311
|
});
|
|
1312
|
-
})(
|
|
1312
|
+
})(_0)), _0.exports;
|
|
1313
1313
|
}
|
|
1314
|
-
var y0 = { exports: {} },
|
|
1314
|
+
var y0 = { exports: {} }, dt = y0.exports, Wr;
|
|
1315
1315
|
function ht() {
|
|
1316
|
-
return
|
|
1316
|
+
return Wr || (Wr = 1, (function(r, d) {
|
|
1317
1317
|
(function(x, e) {
|
|
1318
1318
|
r.exports = e(U());
|
|
1319
|
-
})(
|
|
1319
|
+
})(dt, function(x) {
|
|
1320
1320
|
return (function() {
|
|
1321
1321
|
if (typeof ArrayBuffer == "function") {
|
|
1322
|
-
var e = x,
|
|
1322
|
+
var e = x, u = e.lib, v = u.WordArray, g = v.init, p = v.init = function(C) {
|
|
1323
1323
|
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) {
|
|
1324
|
-
for (var t = C.byteLength,
|
|
1325
|
-
|
|
1326
|
-
g.call(this,
|
|
1324
|
+
for (var t = C.byteLength, a = [], A = 0; A < t; A++)
|
|
1325
|
+
a[A >>> 2] |= C[A] << 24 - A % 4 * 8;
|
|
1326
|
+
g.call(this, a, t);
|
|
1327
1327
|
} else
|
|
1328
1328
|
g.apply(this, arguments);
|
|
1329
1329
|
};
|
|
@@ -1335,12 +1335,12 @@ function ht() {
|
|
|
1335
1335
|
}
|
|
1336
1336
|
var w0 = { exports: {} }, vt = w0.exports, Or;
|
|
1337
1337
|
function pt() {
|
|
1338
|
-
return Or || (Or = 1, (function(r,
|
|
1338
|
+
return Or || (Or = 1, (function(r, d) {
|
|
1339
1339
|
(function(x, e) {
|
|
1340
1340
|
r.exports = e(U());
|
|
1341
1341
|
})(vt, function(x) {
|
|
1342
1342
|
return (function() {
|
|
1343
|
-
var e = x,
|
|
1343
|
+
var e = x, u = e.lib, v = u.WordArray, g = e.enc;
|
|
1344
1344
|
g.Utf16 = g.Utf16BE = {
|
|
1345
1345
|
/**
|
|
1346
1346
|
* Converts a word array to a UTF-16 BE string.
|
|
@@ -1356,9 +1356,9 @@ function pt() {
|
|
|
1356
1356
|
* var utf16String = CryptoJS.enc.Utf16.stringify(wordArray);
|
|
1357
1357
|
*/
|
|
1358
1358
|
stringify: function(C) {
|
|
1359
|
-
for (var t = C.words,
|
|
1360
|
-
var
|
|
1361
|
-
A.push(String.fromCharCode(
|
|
1359
|
+
for (var t = C.words, a = C.sigBytes, A = [], n = 0; n < a; n += 2) {
|
|
1360
|
+
var l = t[n >>> 2] >>> 16 - n % 4 * 8 & 65535;
|
|
1361
|
+
A.push(String.fromCharCode(l));
|
|
1362
1362
|
}
|
|
1363
1363
|
return A.join("");
|
|
1364
1364
|
},
|
|
@@ -1376,9 +1376,9 @@ function pt() {
|
|
|
1376
1376
|
* var wordArray = CryptoJS.enc.Utf16.parse(utf16String);
|
|
1377
1377
|
*/
|
|
1378
1378
|
parse: function(C) {
|
|
1379
|
-
for (var t = C.length,
|
|
1380
|
-
|
|
1381
|
-
return v.create(
|
|
1379
|
+
for (var t = C.length, a = [], A = 0; A < t; A++)
|
|
1380
|
+
a[A >>> 1] |= C.charCodeAt(A) << 16 - A % 2 * 16;
|
|
1381
|
+
return v.create(a, t * 2);
|
|
1382
1382
|
}
|
|
1383
1383
|
}, g.Utf16LE = {
|
|
1384
1384
|
/**
|
|
@@ -1395,9 +1395,9 @@ function pt() {
|
|
|
1395
1395
|
* var utf16Str = CryptoJS.enc.Utf16LE.stringify(wordArray);
|
|
1396
1396
|
*/
|
|
1397
1397
|
stringify: function(C) {
|
|
1398
|
-
for (var t = C.words,
|
|
1399
|
-
var
|
|
1400
|
-
A.push(String.fromCharCode(
|
|
1398
|
+
for (var t = C.words, a = C.sigBytes, A = [], n = 0; n < a; n += 2) {
|
|
1399
|
+
var l = p(t[n >>> 2] >>> 16 - n % 4 * 8 & 65535);
|
|
1400
|
+
A.push(String.fromCharCode(l));
|
|
1401
1401
|
}
|
|
1402
1402
|
return A.join("");
|
|
1403
1403
|
},
|
|
@@ -1415,9 +1415,9 @@ function pt() {
|
|
|
1415
1415
|
* var wordArray = CryptoJS.enc.Utf16LE.parse(utf16Str);
|
|
1416
1416
|
*/
|
|
1417
1417
|
parse: function(C) {
|
|
1418
|
-
for (var t = C.length,
|
|
1419
|
-
|
|
1420
|
-
return v.create(
|
|
1418
|
+
for (var t = C.length, a = [], A = 0; A < t; A++)
|
|
1419
|
+
a[A >>> 1] |= p(C.charCodeAt(A) << 16 - A % 2 * 16);
|
|
1420
|
+
return v.create(a, t * 2);
|
|
1421
1421
|
}
|
|
1422
1422
|
};
|
|
1423
1423
|
function p(C) {
|
|
@@ -1427,14 +1427,14 @@ function pt() {
|
|
|
1427
1427
|
});
|
|
1428
1428
|
})(w0)), w0.exports;
|
|
1429
1429
|
}
|
|
1430
|
-
var k0 = { exports: {} }, Bt = k0.exports,
|
|
1431
|
-
function
|
|
1432
|
-
return
|
|
1430
|
+
var k0 = { exports: {} }, Bt = k0.exports, qr;
|
|
1431
|
+
function a0() {
|
|
1432
|
+
return qr || (qr = 1, (function(r, d) {
|
|
1433
1433
|
(function(x, e) {
|
|
1434
1434
|
r.exports = e(U());
|
|
1435
1435
|
})(Bt, function(x) {
|
|
1436
1436
|
return (function() {
|
|
1437
|
-
var e = x,
|
|
1437
|
+
var e = x, u = e.lib, v = u.WordArray, g = e.enc;
|
|
1438
1438
|
g.Base64 = {
|
|
1439
1439
|
/**
|
|
1440
1440
|
* Converts a word array to a Base64 string.
|
|
@@ -1450,16 +1450,16 @@ function n0() {
|
|
|
1450
1450
|
* var base64String = CryptoJS.enc.Base64.stringify(wordArray);
|
|
1451
1451
|
*/
|
|
1452
1452
|
stringify: function(C) {
|
|
1453
|
-
var t = C.words,
|
|
1453
|
+
var t = C.words, a = C.sigBytes, A = this._map;
|
|
1454
1454
|
C.clamp();
|
|
1455
|
-
for (var
|
|
1456
|
-
for (var c = t[
|
|
1457
|
-
|
|
1455
|
+
for (var n = [], l = 0; l < a; l += 3)
|
|
1456
|
+
for (var c = t[l >>> 2] >>> 24 - l % 4 * 8 & 255, h = t[l + 1 >>> 2] >>> 24 - (l + 1) % 4 * 8 & 255, f = t[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++)
|
|
1457
|
+
n.push(A.charAt(E >>> 6 * (3 - o) & 63));
|
|
1458
1458
|
var i = A.charAt(64);
|
|
1459
1459
|
if (i)
|
|
1460
|
-
for (;
|
|
1461
|
-
|
|
1462
|
-
return
|
|
1460
|
+
for (; n.length % 4; )
|
|
1461
|
+
n.push(i);
|
|
1462
|
+
return n.join("");
|
|
1463
1463
|
},
|
|
1464
1464
|
/**
|
|
1465
1465
|
* Converts a Base64 string to a word array.
|
|
@@ -1475,41 +1475,41 @@ function n0() {
|
|
|
1475
1475
|
* var wordArray = CryptoJS.enc.Base64.parse(base64String);
|
|
1476
1476
|
*/
|
|
1477
1477
|
parse: function(C) {
|
|
1478
|
-
var t = C.length,
|
|
1478
|
+
var t = C.length, a = this._map, A = this._reverseMap;
|
|
1479
1479
|
if (!A) {
|
|
1480
1480
|
A = this._reverseMap = [];
|
|
1481
|
-
for (var
|
|
1482
|
-
A[
|
|
1481
|
+
for (var n = 0; n < a.length; n++)
|
|
1482
|
+
A[a.charCodeAt(n)] = n;
|
|
1483
1483
|
}
|
|
1484
|
-
var
|
|
1485
|
-
if (
|
|
1486
|
-
var c = C.indexOf(
|
|
1484
|
+
var l = a.charAt(64);
|
|
1485
|
+
if (l) {
|
|
1486
|
+
var c = C.indexOf(l);
|
|
1487
1487
|
c !== -1 && (t = c);
|
|
1488
1488
|
}
|
|
1489
1489
|
return p(C, t, A);
|
|
1490
1490
|
},
|
|
1491
1491
|
_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
|
|
1492
1492
|
};
|
|
1493
|
-
function p(C, t,
|
|
1494
|
-
for (var A = [],
|
|
1495
|
-
if (
|
|
1496
|
-
var c =
|
|
1497
|
-
A[
|
|
1493
|
+
function p(C, t, a) {
|
|
1494
|
+
for (var A = [], n = 0, l = 0; l < t; l++)
|
|
1495
|
+
if (l % 4) {
|
|
1496
|
+
var c = a[C.charCodeAt(l - 1)] << l % 4 * 2, h = a[C.charCodeAt(l)] >>> 6 - l % 4 * 2, f = c | h;
|
|
1497
|
+
A[n >>> 2] |= f << 24 - n % 4 * 8, n++;
|
|
1498
1498
|
}
|
|
1499
|
-
return v.create(A,
|
|
1499
|
+
return v.create(A, n);
|
|
1500
1500
|
}
|
|
1501
1501
|
})(), x.enc.Base64;
|
|
1502
1502
|
});
|
|
1503
1503
|
})(k0)), k0.exports;
|
|
1504
1504
|
}
|
|
1505
|
-
var S0 = { exports: {} }, Ct = S0.exports,
|
|
1505
|
+
var S0 = { exports: {} }, Ct = S0.exports, Lr;
|
|
1506
1506
|
function Et() {
|
|
1507
|
-
return
|
|
1507
|
+
return Lr || (Lr = 1, (function(r, d) {
|
|
1508
1508
|
(function(x, e) {
|
|
1509
1509
|
r.exports = e(U());
|
|
1510
1510
|
})(Ct, function(x) {
|
|
1511
1511
|
return (function() {
|
|
1512
|
-
var e = x,
|
|
1512
|
+
var e = x, u = e.lib, v = u.WordArray, g = e.enc;
|
|
1513
1513
|
g.Base64url = {
|
|
1514
1514
|
/**
|
|
1515
1515
|
* Converts a word array to a Base64url string.
|
|
@@ -1528,16 +1528,16 @@ function Et() {
|
|
|
1528
1528
|
*/
|
|
1529
1529
|
stringify: function(C, t) {
|
|
1530
1530
|
t === void 0 && (t = !0);
|
|
1531
|
-
var
|
|
1531
|
+
var a = C.words, A = C.sigBytes, n = t ? this._safe_map : this._map;
|
|
1532
1532
|
C.clamp();
|
|
1533
|
-
for (var
|
|
1534
|
-
for (var h =
|
|
1535
|
-
|
|
1536
|
-
var s =
|
|
1533
|
+
for (var l = [], c = 0; c < A; c += 3)
|
|
1534
|
+
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++)
|
|
1535
|
+
l.push(n.charAt(o >>> 6 * (3 - i) & 63));
|
|
1536
|
+
var s = n.charAt(64);
|
|
1537
1537
|
if (s)
|
|
1538
|
-
for (;
|
|
1539
|
-
|
|
1540
|
-
return
|
|
1538
|
+
for (; l.length % 4; )
|
|
1539
|
+
l.push(s);
|
|
1540
|
+
return l.join("");
|
|
1541
1541
|
},
|
|
1542
1542
|
/**
|
|
1543
1543
|
* Converts a Base64url string to a word array.
|
|
@@ -1556,47 +1556,47 @@ function Et() {
|
|
|
1556
1556
|
*/
|
|
1557
1557
|
parse: function(C, t) {
|
|
1558
1558
|
t === void 0 && (t = !0);
|
|
1559
|
-
var
|
|
1560
|
-
if (!
|
|
1561
|
-
|
|
1562
|
-
for (var
|
|
1563
|
-
|
|
1559
|
+
var a = C.length, A = t ? this._safe_map : this._map, n = this._reverseMap;
|
|
1560
|
+
if (!n) {
|
|
1561
|
+
n = this._reverseMap = [];
|
|
1562
|
+
for (var l = 0; l < A.length; l++)
|
|
1563
|
+
n[A.charCodeAt(l)] = l;
|
|
1564
1564
|
}
|
|
1565
1565
|
var c = A.charAt(64);
|
|
1566
1566
|
if (c) {
|
|
1567
1567
|
var h = C.indexOf(c);
|
|
1568
|
-
h !== -1 && (
|
|
1568
|
+
h !== -1 && (a = h);
|
|
1569
1569
|
}
|
|
1570
|
-
return p(C,
|
|
1570
|
+
return p(C, a, n);
|
|
1571
1571
|
},
|
|
1572
1572
|
_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
|
|
1573
1573
|
_safe_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"
|
|
1574
1574
|
};
|
|
1575
|
-
function p(C, t,
|
|
1576
|
-
for (var A = [],
|
|
1577
|
-
if (
|
|
1578
|
-
var c =
|
|
1579
|
-
A[
|
|
1575
|
+
function p(C, t, a) {
|
|
1576
|
+
for (var A = [], n = 0, l = 0; l < t; l++)
|
|
1577
|
+
if (l % 4) {
|
|
1578
|
+
var c = a[C.charCodeAt(l - 1)] << l % 4 * 2, h = a[C.charCodeAt(l)] >>> 6 - l % 4 * 2, f = c | h;
|
|
1579
|
+
A[n >>> 2] |= f << 24 - n % 4 * 8, n++;
|
|
1580
1580
|
}
|
|
1581
|
-
return v.create(A,
|
|
1581
|
+
return v.create(A, n);
|
|
1582
1582
|
}
|
|
1583
1583
|
})(), x.enc.Base64url;
|
|
1584
1584
|
});
|
|
1585
1585
|
})(S0)), S0.exports;
|
|
1586
1586
|
}
|
|
1587
1587
|
var H0 = { exports: {} }, At = H0.exports, Tr;
|
|
1588
|
-
function
|
|
1589
|
-
return Tr || (Tr = 1, (function(r,
|
|
1588
|
+
function n0() {
|
|
1589
|
+
return Tr || (Tr = 1, (function(r, d) {
|
|
1590
1590
|
(function(x, e) {
|
|
1591
1591
|
r.exports = e(U());
|
|
1592
1592
|
})(At, function(x) {
|
|
1593
1593
|
return (function(e) {
|
|
1594
|
-
var
|
|
1594
|
+
var u = x, v = u.lib, g = v.WordArray, p = v.Hasher, C = u.algo, t = [];
|
|
1595
1595
|
(function() {
|
|
1596
1596
|
for (var h = 0; h < 64; h++)
|
|
1597
1597
|
t[h] = e.abs(e.sin(h + 1)) * 4294967296 | 0;
|
|
1598
1598
|
})();
|
|
1599
|
-
var
|
|
1599
|
+
var a = C.MD5 = p.extend({
|
|
1600
1600
|
_doReset: function() {
|
|
1601
1601
|
this._hash = new g.init([
|
|
1602
1602
|
1732584193,
|
|
@@ -1610,17 +1610,17 @@ function a0() {
|
|
|
1610
1610
|
var o = f + E, i = h[o];
|
|
1611
1611
|
h[o] = (i << 8 | i >>> 24) & 16711935 | (i << 24 | i >>> 8) & 4278255360;
|
|
1612
1612
|
}
|
|
1613
|
-
var s = this._hash.words, F = h[f + 0], D = h[f + 1],
|
|
1614
|
-
b = A(b, k, R, S, F, 7, t[0]), S = A(S, b, k, R, D, 12, t[1]), R = A(R, S, b, k,
|
|
1613
|
+
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], q = h[f + 9], L = 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];
|
|
1614
|
+
b = A(b, k, R, S, F, 7, t[0]), S = A(S, b, k, R, D, 12, t[1]), R = A(R, S, b, k, _, 17, t[2]), k = A(k, R, S, b, w, 22, t[3]), b = A(b, k, R, S, z, 7, t[4]), S = A(S, b, k, R, B, 12, t[5]), R = A(R, S, b, k, m, 17, t[6]), k = A(k, R, S, b, P, 22, t[7]), b = A(b, k, R, S, H, 7, t[8]), S = A(S, b, k, R, q, 12, t[9]), R = A(R, S, b, k, L, 17, t[10]), k = A(k, R, S, b, y, 22, t[11]), b = A(b, k, R, S, $, 7, t[12]), S = A(S, b, k, R, W, 12, t[13]), R = A(R, S, b, k, O, 17, t[14]), k = A(k, R, S, b, I, 22, t[15]), b = n(b, k, R, S, D, 5, t[16]), S = n(S, b, k, R, m, 9, t[17]), R = n(R, S, b, k, y, 14, t[18]), k = n(k, R, S, b, F, 20, t[19]), b = n(b, k, R, S, B, 5, t[20]), S = n(S, b, k, R, L, 9, t[21]), R = n(R, S, b, k, I, 14, t[22]), k = n(k, R, S, b, z, 20, t[23]), b = n(b, k, R, S, q, 5, t[24]), S = n(S, b, k, R, O, 9, t[25]), R = n(R, S, b, k, w, 14, t[26]), k = n(k, R, S, b, H, 20, t[27]), b = n(b, k, R, S, W, 5, t[28]), S = n(S, b, k, R, _, 9, t[29]), R = n(R, S, b, k, P, 14, t[30]), k = n(k, R, S, b, $, 20, t[31]), b = l(b, k, R, S, B, 4, t[32]), S = l(S, b, k, R, H, 11, t[33]), R = l(R, S, b, k, y, 16, t[34]), k = l(k, R, S, b, O, 23, t[35]), b = l(b, k, R, S, D, 4, t[36]), S = l(S, b, k, R, z, 11, t[37]), R = l(R, S, b, k, P, 16, t[38]), k = l(k, R, S, b, L, 23, t[39]), b = l(b, k, R, S, W, 4, t[40]), S = l(S, b, k, R, F, 11, t[41]), R = l(R, S, b, k, w, 16, t[42]), k = l(k, R, S, b, m, 23, t[43]), b = l(b, k, R, S, q, 4, t[44]), S = l(S, b, k, R, $, 11, t[45]), R = l(R, S, b, k, I, 16, t[46]), k = l(k, R, S, b, _, 23, t[47]), b = c(b, k, R, S, F, 6, t[48]), S = c(S, b, k, R, P, 10, t[49]), R = c(R, S, b, k, O, 15, t[50]), k = c(k, R, S, b, B, 21, t[51]), b = c(b, k, R, S, $, 6, t[52]), S = c(S, b, k, R, w, 10, t[53]), R = c(R, S, b, k, L, 15, t[54]), k = c(k, R, S, b, D, 21, t[55]), b = c(b, k, R, S, H, 6, t[56]), S = c(S, b, k, R, I, 10, t[57]), R = c(R, S, b, k, m, 15, t[58]), k = c(k, R, S, b, W, 21, t[59]), b = c(b, k, R, S, z, 6, t[60]), S = c(S, b, k, R, y, 10, t[61]), R = c(R, S, b, k, _, 15, t[62]), k = c(k, R, S, b, q, 21, t[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;
|
|
1615
1615
|
},
|
|
1616
1616
|
_doFinalize: function() {
|
|
1617
1617
|
var h = this._data, f = h.words, E = this._nDataBytes * 8, o = h.sigBytes * 8;
|
|
1618
1618
|
f[o >>> 5] |= 128 << 24 - o % 32;
|
|
1619
1619
|
var i = e.floor(E / 4294967296), s = E;
|
|
1620
1620
|
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();
|
|
1621
|
-
for (var F = this._hash, D = F.words,
|
|
1622
|
-
var w = D[
|
|
1623
|
-
D[
|
|
1621
|
+
for (var F = this._hash, D = F.words, _ = 0; _ < 4; _++) {
|
|
1622
|
+
var w = D[_];
|
|
1623
|
+
D[_] = (w << 8 | w >>> 24) & 16711935 | (w << 24 | w >>> 8) & 4278255360;
|
|
1624
1624
|
}
|
|
1625
1625
|
return F;
|
|
1626
1626
|
},
|
|
@@ -1633,11 +1633,11 @@ function a0() {
|
|
|
1633
1633
|
var D = h + (f & E | ~f & o) + i + F;
|
|
1634
1634
|
return (D << s | D >>> 32 - s) + f;
|
|
1635
1635
|
}
|
|
1636
|
-
function
|
|
1636
|
+
function n(h, f, E, o, i, s, F) {
|
|
1637
1637
|
var D = h + (f & o | E & ~o) + i + F;
|
|
1638
1638
|
return (D << s | D >>> 32 - s) + f;
|
|
1639
1639
|
}
|
|
1640
|
-
function
|
|
1640
|
+
function l(h, f, E, o, i, s, F) {
|
|
1641
1641
|
var D = h + (f ^ E ^ o) + i + F;
|
|
1642
1642
|
return (D << s | D >>> 32 - s) + f;
|
|
1643
1643
|
}
|
|
@@ -1645,19 +1645,19 @@ function a0() {
|
|
|
1645
1645
|
var D = h + (E ^ (f | ~o)) + i + F;
|
|
1646
1646
|
return (D << s | D >>> 32 - s) + f;
|
|
1647
1647
|
}
|
|
1648
|
-
|
|
1648
|
+
u.MD5 = p._createHelper(a), u.HmacMD5 = p._createHmacHelper(a);
|
|
1649
1649
|
})(Math), x.MD5;
|
|
1650
1650
|
});
|
|
1651
1651
|
})(H0)), H0.exports;
|
|
1652
1652
|
}
|
|
1653
1653
|
var P0 = { exports: {} }, Ft = P0.exports, Mr;
|
|
1654
1654
|
function be() {
|
|
1655
|
-
return Mr || (Mr = 1, (function(r,
|
|
1655
|
+
return Mr || (Mr = 1, (function(r, d) {
|
|
1656
1656
|
(function(x, e) {
|
|
1657
1657
|
r.exports = e(U());
|
|
1658
1658
|
})(Ft, function(x) {
|
|
1659
1659
|
return (function() {
|
|
1660
|
-
var e = x,
|
|
1660
|
+
var e = x, u = e.lib, v = u.WordArray, g = u.Hasher, p = e.algo, C = [], t = p.SHA1 = g.extend({
|
|
1661
1661
|
_doReset: function() {
|
|
1662
1662
|
this._hash = new v.init([
|
|
1663
1663
|
1732584193,
|
|
@@ -1667,26 +1667,26 @@ function be() {
|
|
|
1667
1667
|
3285377520
|
|
1668
1668
|
]);
|
|
1669
1669
|
},
|
|
1670
|
-
_doProcessBlock: function(
|
|
1671
|
-
for (var
|
|
1670
|
+
_doProcessBlock: function(a, A) {
|
|
1671
|
+
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++) {
|
|
1672
1672
|
if (o < 16)
|
|
1673
|
-
C[o] =
|
|
1673
|
+
C[o] = a[A + o] | 0;
|
|
1674
1674
|
else {
|
|
1675
1675
|
var i = C[o - 3] ^ C[o - 8] ^ C[o - 14] ^ C[o - 16];
|
|
1676
1676
|
C[o] = i << 1 | i >>> 31;
|
|
1677
1677
|
}
|
|
1678
|
-
var s = (
|
|
1679
|
-
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 =
|
|
1678
|
+
var s = (l << 5 | l >>> 27) + E + C[o];
|
|
1679
|
+
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;
|
|
1680
1680
|
}
|
|
1681
|
-
|
|
1681
|
+
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;
|
|
1682
1682
|
},
|
|
1683
1683
|
_doFinalize: function() {
|
|
1684
|
-
var
|
|
1685
|
-
return A[
|
|
1684
|
+
var a = this._data, A = a.words, n = this._nDataBytes * 8, l = a.sigBytes * 8;
|
|
1685
|
+
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;
|
|
1686
1686
|
},
|
|
1687
1687
|
clone: function() {
|
|
1688
|
-
var
|
|
1689
|
-
return
|
|
1688
|
+
var a = g.clone.call(this);
|
|
1689
|
+
return a._hash = this._hash.clone(), a;
|
|
1690
1690
|
}
|
|
1691
1691
|
});
|
|
1692
1692
|
e.SHA1 = g._createHelper(t), e.HmacSHA1 = g._createHmacHelper(t);
|
|
@@ -1696,14 +1696,14 @@ function be() {
|
|
|
1696
1696
|
}
|
|
1697
1697
|
var R0 = { exports: {} }, Dt = R0.exports, Nr;
|
|
1698
1698
|
function Cr() {
|
|
1699
|
-
return Nr || (Nr = 1, (function(r,
|
|
1699
|
+
return Nr || (Nr = 1, (function(r, d) {
|
|
1700
1700
|
(function(x, e) {
|
|
1701
1701
|
r.exports = e(U());
|
|
1702
1702
|
})(Dt, function(x) {
|
|
1703
1703
|
return (function(e) {
|
|
1704
|
-
var
|
|
1704
|
+
var u = x, v = u.lib, g = v.WordArray, p = v.Hasher, C = u.algo, t = [], a = [];
|
|
1705
1705
|
(function() {
|
|
1706
|
-
function
|
|
1706
|
+
function l(E) {
|
|
1707
1707
|
for (var o = e.sqrt(E), i = 2; i <= o; i++)
|
|
1708
1708
|
if (!(E % i))
|
|
1709
1709
|
return !1;
|
|
@@ -1713,47 +1713,47 @@ function Cr() {
|
|
|
1713
1713
|
return (E - (E | 0)) * 4294967296 | 0;
|
|
1714
1714
|
}
|
|
1715
1715
|
for (var h = 2, f = 0; f < 64; )
|
|
1716
|
-
|
|
1716
|
+
l(h) && (f < 8 && (t[f] = c(e.pow(h, 1 / 2))), a[f] = c(e.pow(h, 1 / 3)), f++), h++;
|
|
1717
1717
|
})();
|
|
1718
|
-
var A = [],
|
|
1718
|
+
var A = [], n = C.SHA256 = p.extend({
|
|
1719
1719
|
_doReset: function() {
|
|
1720
1720
|
this._hash = new g.init(t.slice(0));
|
|
1721
1721
|
},
|
|
1722
|
-
_doProcessBlock: function(
|
|
1723
|
-
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],
|
|
1722
|
+
_doProcessBlock: function(l, c) {
|
|
1723
|
+
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++) {
|
|
1724
1724
|
if (w < 16)
|
|
1725
|
-
A[w] =
|
|
1725
|
+
A[w] = l[c + w] | 0;
|
|
1726
1726
|
else {
|
|
1727
|
-
var z = A[w - 15], B = (z << 25 | z >>> 7) ^ (z << 14 | z >>> 18) ^ z >>> 3,
|
|
1727
|
+
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;
|
|
1728
1728
|
A[w] = B + A[w - 7] + P + A[w - 16];
|
|
1729
1729
|
}
|
|
1730
|
-
var H = s & F ^ ~s & D,
|
|
1731
|
-
|
|
1730
|
+
var H = s & F ^ ~s & D, q = f & E ^ f & o ^ E & o, L = (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 = L + q;
|
|
1731
|
+
_ = D, D = F, F = s, s = i + $ | 0, i = o, o = E, E = f, f = $ + W | 0;
|
|
1732
1732
|
}
|
|
1733
|
-
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] +
|
|
1733
|
+
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;
|
|
1734
1734
|
},
|
|
1735
1735
|
_doFinalize: function() {
|
|
1736
|
-
var
|
|
1737
|
-
return c[f >>> 5] |= 128 << 24 - f % 32, c[(f + 64 >>> 9 << 4) + 14] = e.floor(h / 4294967296), c[(f + 64 >>> 9 << 4) + 15] = h,
|
|
1736
|
+
var l = this._data, c = l.words, h = this._nDataBytes * 8, f = l.sigBytes * 8;
|
|
1737
|
+
return c[f >>> 5] |= 128 << 24 - f % 32, c[(f + 64 >>> 9 << 4) + 14] = e.floor(h / 4294967296), c[(f + 64 >>> 9 << 4) + 15] = h, l.sigBytes = c.length * 4, this._process(), this._hash;
|
|
1738
1738
|
},
|
|
1739
1739
|
clone: function() {
|
|
1740
|
-
var
|
|
1741
|
-
return
|
|
1740
|
+
var l = p.clone.call(this);
|
|
1741
|
+
return l._hash = this._hash.clone(), l;
|
|
1742
1742
|
}
|
|
1743
1743
|
});
|
|
1744
|
-
|
|
1744
|
+
u.SHA256 = p._createHelper(n), u.HmacSHA256 = p._createHmacHelper(n);
|
|
1745
1745
|
})(Math), x.SHA256;
|
|
1746
1746
|
});
|
|
1747
1747
|
})(R0)), R0.exports;
|
|
1748
1748
|
}
|
|
1749
1749
|
var $0 = { exports: {} }, gt = $0.exports, Ur;
|
|
1750
1750
|
function bt() {
|
|
1751
|
-
return Ur || (Ur = 1, (function(r,
|
|
1752
|
-
(function(x, e,
|
|
1751
|
+
return Ur || (Ur = 1, (function(r, d) {
|
|
1752
|
+
(function(x, e, u) {
|
|
1753
1753
|
r.exports = e(U(), Cr());
|
|
1754
1754
|
})(gt, function(x) {
|
|
1755
1755
|
return (function() {
|
|
1756
|
-
var e = x,
|
|
1756
|
+
var e = x, u = e.lib, v = u.WordArray, g = e.algo, p = g.SHA256, C = g.SHA224 = p.extend({
|
|
1757
1757
|
_doReset: function() {
|
|
1758
1758
|
this._hash = new v.init([
|
|
1759
1759
|
3238371032,
|
|
@@ -1776,104 +1776,104 @@ function bt() {
|
|
|
1776
1776
|
});
|
|
1777
1777
|
})($0)), $0.exports;
|
|
1778
1778
|
}
|
|
1779
|
-
var z0 = { exports: {} },
|
|
1780
|
-
function
|
|
1781
|
-
return jr || (jr = 1, (function(r,
|
|
1782
|
-
(function(x, e,
|
|
1779
|
+
var z0 = { exports: {} }, mt = z0.exports, jr;
|
|
1780
|
+
function me() {
|
|
1781
|
+
return jr || (jr = 1, (function(r, d) {
|
|
1782
|
+
(function(x, e, u) {
|
|
1783
1783
|
r.exports = e(U(), sr());
|
|
1784
|
-
})(
|
|
1784
|
+
})(mt, function(x) {
|
|
1785
1785
|
return (function() {
|
|
1786
|
-
var e = x,
|
|
1787
|
-
function
|
|
1786
|
+
var e = x, u = e.lib, v = u.Hasher, g = e.x64, p = g.Word, C = g.WordArray, t = e.algo;
|
|
1787
|
+
function a() {
|
|
1788
1788
|
return p.create.apply(p, arguments);
|
|
1789
1789
|
}
|
|
1790
1790
|
var A = [
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
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
|
-
],
|
|
1791
|
+
a(1116352408, 3609767458),
|
|
1792
|
+
a(1899447441, 602891725),
|
|
1793
|
+
a(3049323471, 3964484399),
|
|
1794
|
+
a(3921009573, 2173295548),
|
|
1795
|
+
a(961987163, 4081628472),
|
|
1796
|
+
a(1508970993, 3053834265),
|
|
1797
|
+
a(2453635748, 2937671579),
|
|
1798
|
+
a(2870763221, 3664609560),
|
|
1799
|
+
a(3624381080, 2734883394),
|
|
1800
|
+
a(310598401, 1164996542),
|
|
1801
|
+
a(607225278, 1323610764),
|
|
1802
|
+
a(1426881987, 3590304994),
|
|
1803
|
+
a(1925078388, 4068182383),
|
|
1804
|
+
a(2162078206, 991336113),
|
|
1805
|
+
a(2614888103, 633803317),
|
|
1806
|
+
a(3248222580, 3479774868),
|
|
1807
|
+
a(3835390401, 2666613458),
|
|
1808
|
+
a(4022224774, 944711139),
|
|
1809
|
+
a(264347078, 2341262773),
|
|
1810
|
+
a(604807628, 2007800933),
|
|
1811
|
+
a(770255983, 1495990901),
|
|
1812
|
+
a(1249150122, 1856431235),
|
|
1813
|
+
a(1555081692, 3175218132),
|
|
1814
|
+
a(1996064986, 2198950837),
|
|
1815
|
+
a(2554220882, 3999719339),
|
|
1816
|
+
a(2821834349, 766784016),
|
|
1817
|
+
a(2952996808, 2566594879),
|
|
1818
|
+
a(3210313671, 3203337956),
|
|
1819
|
+
a(3336571891, 1034457026),
|
|
1820
|
+
a(3584528711, 2466948901),
|
|
1821
|
+
a(113926993, 3758326383),
|
|
1822
|
+
a(338241895, 168717936),
|
|
1823
|
+
a(666307205, 1188179964),
|
|
1824
|
+
a(773529912, 1546045734),
|
|
1825
|
+
a(1294757372, 1522805485),
|
|
1826
|
+
a(1396182291, 2643833823),
|
|
1827
|
+
a(1695183700, 2343527390),
|
|
1828
|
+
a(1986661051, 1014477480),
|
|
1829
|
+
a(2177026350, 1206759142),
|
|
1830
|
+
a(2456956037, 344077627),
|
|
1831
|
+
a(2730485921, 1290863460),
|
|
1832
|
+
a(2820302411, 3158454273),
|
|
1833
|
+
a(3259730800, 3505952657),
|
|
1834
|
+
a(3345764771, 106217008),
|
|
1835
|
+
a(3516065817, 3606008344),
|
|
1836
|
+
a(3600352804, 1432725776),
|
|
1837
|
+
a(4094571909, 1467031594),
|
|
1838
|
+
a(275423344, 851169720),
|
|
1839
|
+
a(430227734, 3100823752),
|
|
1840
|
+
a(506948616, 1363258195),
|
|
1841
|
+
a(659060556, 3750685593),
|
|
1842
|
+
a(883997877, 3785050280),
|
|
1843
|
+
a(958139571, 3318307427),
|
|
1844
|
+
a(1322822218, 3812723403),
|
|
1845
|
+
a(1537002063, 2003034995),
|
|
1846
|
+
a(1747873779, 3602036899),
|
|
1847
|
+
a(1955562222, 1575990012),
|
|
1848
|
+
a(2024104815, 1125592928),
|
|
1849
|
+
a(2227730452, 2716904306),
|
|
1850
|
+
a(2361852424, 442776044),
|
|
1851
|
+
a(2428436474, 593698344),
|
|
1852
|
+
a(2756734187, 3733110249),
|
|
1853
|
+
a(3204031479, 2999351573),
|
|
1854
|
+
a(3329325298, 3815920427),
|
|
1855
|
+
a(3391569614, 3928383900),
|
|
1856
|
+
a(3515267271, 566280711),
|
|
1857
|
+
a(3940187606, 3454069534),
|
|
1858
|
+
a(4118630271, 4000239992),
|
|
1859
|
+
a(116418474, 1914138554),
|
|
1860
|
+
a(174292421, 2731055270),
|
|
1861
|
+
a(289380356, 3203993006),
|
|
1862
|
+
a(460393269, 320620315),
|
|
1863
|
+
a(685471733, 587496836),
|
|
1864
|
+
a(852142971, 1086792851),
|
|
1865
|
+
a(1017036298, 365543100),
|
|
1866
|
+
a(1126000580, 2618297676),
|
|
1867
|
+
a(1288033470, 3409855158),
|
|
1868
|
+
a(1501505948, 4234509866),
|
|
1869
|
+
a(1607167915, 987167468),
|
|
1870
|
+
a(1816402316, 1246189591)
|
|
1871
|
+
], n = [];
|
|
1872
1872
|
(function() {
|
|
1873
1873
|
for (var c = 0; c < 80; c++)
|
|
1874
|
-
|
|
1874
|
+
n[c] = a();
|
|
1875
1875
|
})();
|
|
1876
|
-
var
|
|
1876
|
+
var l = t.SHA512 = v.extend({
|
|
1877
1877
|
_doReset: function() {
|
|
1878
1878
|
this._hash = new C.init([
|
|
1879
1879
|
new p.init(1779033703, 4089235720),
|
|
@@ -1887,18 +1887,18 @@ function _e() {
|
|
|
1887
1887
|
]);
|
|
1888
1888
|
},
|
|
1889
1889
|
_doProcessBlock: function(c, h) {
|
|
1890
|
-
for (var f = this._hash.words, E = f[0], o = f[1], i = f[2], s = f[3], F = f[4], D = f[5],
|
|
1891
|
-
var
|
|
1890
|
+
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, q = i.low, L = 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, Z = H, x0 = q, cr = L, u0 = y, Q = $, X = W, A0 = O, l0 = I, F0 = b, d0 = k, fr = R, h0 = S, V = 0; V < 80; V++) {
|
|
1891
|
+
var Y, r0, D0 = n[V];
|
|
1892
1892
|
if (V < 16)
|
|
1893
|
-
r0 = D0.high = c[h + V * 2] | 0,
|
|
1893
|
+
r0 = D0.high = c[h + V * 2] | 0, Y = D0.low = c[h + V * 2 + 1] | 0;
|
|
1894
1894
|
else {
|
|
1895
|
-
var Ar =
|
|
1896
|
-
|
|
1895
|
+
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;
|
|
1896
|
+
Y = Fr + Re, r0 = Se + Pe + (Y >>> 0 < Fr >>> 0 ? 1 : 0), Y = Y + gr, r0 = r0 + He + (Y >>> 0 < gr >>> 0 ? 1 : 0), Y = Y + _r, r0 = r0 + $e + (Y >>> 0 < _r >>> 0 ? 1 : 0), D0.high = r0, D0.low = Y;
|
|
1897
1897
|
}
|
|
1898
|
-
var ze = Q & A0 ^ ~Q & F0, yr = X &
|
|
1899
|
-
fr = F0, h0 =
|
|
1898
|
+
var ze = Q & A0 ^ ~Q & F0, yr = X & l0 ^ ~X & d0, Ie = N & j ^ N & Z ^ j & Z, 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), qe = (Q >>> 14 | X << 18) ^ (Q >>> 18 | X << 14) ^ (Q << 23 | X >>> 9), Le = (X >>> 14 | Q << 18) ^ (X >>> 18 | Q << 14) ^ (X << 23 | Q >>> 9), kr = A[V], Te = kr.high, Sr = kr.low, G = h0 + Le, e0 = fr + qe + (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 + Y, e0 = e0 + r0 + (G >>> 0 < Y >>> 0 ? 1 : 0), Hr = wr + We, Me = Oe + Ie + (Hr >>> 0 < wr >>> 0 ? 1 : 0);
|
|
1899
|
+
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 = Z, u0 = x0, Z = j, x0 = M, j = N, M = T, T = G + Hr | 0, N = e0 + Me + (T >>> 0 < G >>> 0 ? 1 : 0) | 0;
|
|
1900
1900
|
}
|
|
1901
|
-
B = E.low = B + T, E.high = z + N + (B >>> 0 < T >>> 0 ? 1 : 0), P = o.low = P + M, o.high =
|
|
1901
|
+
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), q = i.low = q + x0, i.high = H + Z + (q >>> 0 < x0 >>> 0 ? 1 : 0), y = s.low = y + u0, s.high = L + 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);
|
|
1902
1902
|
},
|
|
1903
1903
|
_doFinalize: function() {
|
|
1904
1904
|
var c = this._data, h = c.words, f = this._nDataBytes * 8, E = c.sigBytes * 8;
|
|
@@ -1912,19 +1912,19 @@ function _e() {
|
|
|
1912
1912
|
},
|
|
1913
1913
|
blockSize: 1024 / 32
|
|
1914
1914
|
});
|
|
1915
|
-
e.SHA512 = v._createHelper(
|
|
1915
|
+
e.SHA512 = v._createHelper(l), e.HmacSHA512 = v._createHmacHelper(l);
|
|
1916
1916
|
})(), x.SHA512;
|
|
1917
1917
|
});
|
|
1918
1918
|
})(z0)), z0.exports;
|
|
1919
1919
|
}
|
|
1920
|
-
var
|
|
1920
|
+
var I0 = { exports: {} }, _t = I0.exports, Kr;
|
|
1921
1921
|
function yt() {
|
|
1922
|
-
return Kr || (Kr = 1, (function(r,
|
|
1923
|
-
(function(x, e,
|
|
1924
|
-
r.exports = e(U(), sr(),
|
|
1925
|
-
})(
|
|
1922
|
+
return Kr || (Kr = 1, (function(r, d) {
|
|
1923
|
+
(function(x, e, u) {
|
|
1924
|
+
r.exports = e(U(), sr(), me());
|
|
1925
|
+
})(_t, function(x) {
|
|
1926
1926
|
return (function() {
|
|
1927
|
-
var e = x,
|
|
1927
|
+
var e = x, u = e.x64, v = u.Word, g = u.WordArray, p = e.algo, C = p.SHA512, t = p.SHA384 = C.extend({
|
|
1928
1928
|
_doReset: function() {
|
|
1929
1929
|
this._hash = new g.init([
|
|
1930
1930
|
new v.init(3418070365, 3238371032),
|
|
@@ -1938,23 +1938,23 @@ function yt() {
|
|
|
1938
1938
|
]);
|
|
1939
1939
|
},
|
|
1940
1940
|
_doFinalize: function() {
|
|
1941
|
-
var
|
|
1942
|
-
return
|
|
1941
|
+
var a = C._doFinalize.call(this);
|
|
1942
|
+
return a.sigBytes -= 16, a;
|
|
1943
1943
|
}
|
|
1944
1944
|
});
|
|
1945
1945
|
e.SHA384 = C._createHelper(t), e.HmacSHA384 = C._createHmacHelper(t);
|
|
1946
1946
|
})(), x.SHA384;
|
|
1947
1947
|
});
|
|
1948
|
-
})(
|
|
1948
|
+
})(I0)), I0.exports;
|
|
1949
1949
|
}
|
|
1950
|
-
var
|
|
1950
|
+
var W0 = { exports: {} }, wt = W0.exports, Xr;
|
|
1951
1951
|
function kt() {
|
|
1952
|
-
return Xr || (Xr = 1, (function(r,
|
|
1953
|
-
(function(x, e,
|
|
1952
|
+
return Xr || (Xr = 1, (function(r, d) {
|
|
1953
|
+
(function(x, e, u) {
|
|
1954
1954
|
r.exports = e(U(), sr());
|
|
1955
1955
|
})(wt, function(x) {
|
|
1956
1956
|
return (function(e) {
|
|
1957
|
-
var
|
|
1957
|
+
var u = x, v = u.lib, g = v.WordArray, p = v.Hasher, C = u.x64, t = C.Word, a = u.algo, A = [], n = [], l = [];
|
|
1958
1958
|
(function() {
|
|
1959
1959
|
for (var f = 1, E = 0, o = 0; o < 24; o++) {
|
|
1960
1960
|
A[f + 5 * E] = (o + 1) * (o + 2) / 2 % 64;
|
|
@@ -1963,16 +1963,16 @@ function kt() {
|
|
|
1963
1963
|
}
|
|
1964
1964
|
for (var f = 0; f < 5; f++)
|
|
1965
1965
|
for (var E = 0; E < 5; E++)
|
|
1966
|
-
|
|
1966
|
+
n[f + 5 * E] = E + (2 * f + 3 * E) % 5 * 5;
|
|
1967
1967
|
for (var F = 1, D = 0; D < 24; D++) {
|
|
1968
|
-
for (var
|
|
1968
|
+
for (var _ = 0, w = 0, z = 0; z < 7; z++) {
|
|
1969
1969
|
if (F & 1) {
|
|
1970
1970
|
var B = (1 << z) - 1;
|
|
1971
|
-
B < 32 ? w ^= 1 << B :
|
|
1971
|
+
B < 32 ? w ^= 1 << B : _ ^= 1 << B - 32;
|
|
1972
1972
|
}
|
|
1973
1973
|
F & 128 ? F = F << 1 ^ 113 : F <<= 1;
|
|
1974
1974
|
}
|
|
1975
|
-
|
|
1975
|
+
l[D] = t.create(_, w);
|
|
1976
1976
|
}
|
|
1977
1977
|
})();
|
|
1978
1978
|
var c = [];
|
|
@@ -1980,7 +1980,7 @@ function kt() {
|
|
|
1980
1980
|
for (var f = 0; f < 25; f++)
|
|
1981
1981
|
c[f] = t.create();
|
|
1982
1982
|
})();
|
|
1983
|
-
var h =
|
|
1983
|
+
var h = a.SHA3 = p.extend({
|
|
1984
1984
|
/**
|
|
1985
1985
|
* Configuration options.
|
|
1986
1986
|
*
|
|
@@ -2001,38 +2001,38 @@ function kt() {
|
|
|
2001
2001
|
for (var o = this._state, i = this.blockSize / 2, s = 0; s < i; s++) {
|
|
2002
2002
|
var F = f[E + 2 * s], D = f[E + 2 * s + 1];
|
|
2003
2003
|
F = (F << 8 | F >>> 24) & 16711935 | (F << 24 | F >>> 8) & 4278255360, D = (D << 8 | D >>> 24) & 16711935 | (D << 24 | D >>> 8) & 4278255360;
|
|
2004
|
-
var
|
|
2005
|
-
|
|
2004
|
+
var _ = o[s];
|
|
2005
|
+
_.high ^= D, _.low ^= F;
|
|
2006
2006
|
}
|
|
2007
2007
|
for (var w = 0; w < 24; w++) {
|
|
2008
2008
|
for (var z = 0; z < 5; z++) {
|
|
2009
|
-
for (var B = 0,
|
|
2010
|
-
var
|
|
2011
|
-
B ^=
|
|
2009
|
+
for (var B = 0, m = 0, P = 0; P < 5; P++) {
|
|
2010
|
+
var _ = o[z + 5 * P];
|
|
2011
|
+
B ^= _.high, m ^= _.low;
|
|
2012
2012
|
}
|
|
2013
2013
|
var H = c[z];
|
|
2014
|
-
H.high = B, H.low =
|
|
2014
|
+
H.high = B, H.low = m;
|
|
2015
2015
|
}
|
|
2016
2016
|
for (var z = 0; z < 5; z++)
|
|
2017
|
-
for (var
|
|
2018
|
-
var
|
|
2019
|
-
|
|
2017
|
+
for (var q = c[(z + 4) % 5], L = c[(z + 1) % 5], y = L.high, $ = L.low, B = q.high ^ (y << 1 | $ >>> 31), m = q.low ^ ($ << 1 | y >>> 31), P = 0; P < 5; P++) {
|
|
2018
|
+
var _ = o[z + 5 * P];
|
|
2019
|
+
_.high ^= B, _.low ^= m;
|
|
2020
2020
|
}
|
|
2021
|
-
for (var
|
|
2022
|
-
var B,
|
|
2023
|
-
b < 32 ? (B = O << b |
|
|
2024
|
-
var k = c[
|
|
2025
|
-
k.high = B, k.low =
|
|
2021
|
+
for (var W = 1; W < 25; W++) {
|
|
2022
|
+
var B, m, _ = o[W], O = _.high, I = _.low, b = A[W];
|
|
2023
|
+
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);
|
|
2024
|
+
var k = c[n[W]];
|
|
2025
|
+
k.high = B, k.low = m;
|
|
2026
2026
|
}
|
|
2027
2027
|
var R = c[0], S = o[0];
|
|
2028
2028
|
R.high = S.high, R.low = S.low;
|
|
2029
2029
|
for (var z = 0; z < 5; z++)
|
|
2030
2030
|
for (var P = 0; P < 5; P++) {
|
|
2031
|
-
var
|
|
2032
|
-
|
|
2031
|
+
var W = z + 5 * P, _ = o[W], N = c[W], T = c[(z + 1) % 5 + 5 * P], j = c[(z + 2) % 5 + 5 * P];
|
|
2032
|
+
_.high = N.high ^ ~T.high & j.high, _.low = N.low ^ ~T.low & j.low;
|
|
2033
2033
|
}
|
|
2034
|
-
var
|
|
2035
|
-
|
|
2034
|
+
var _ = o[0], M = l[w];
|
|
2035
|
+
_.high ^= M.high, _.low ^= M.low;
|
|
2036
2036
|
}
|
|
2037
2037
|
},
|
|
2038
2038
|
_doFinalize: function() {
|
|
@@ -2040,11 +2040,11 @@ function kt() {
|
|
|
2040
2040
|
this._nDataBytes * 8;
|
|
2041
2041
|
var o = f.sigBytes * 8, i = this.blockSize * 32;
|
|
2042
2042
|
E[o >>> 5] |= 1 << 24 - o % 32, E[(e.ceil((o + 1) / i) * i >>> 5) - 1] |= 128, f.sigBytes = E.length * 4, this._process();
|
|
2043
|
-
for (var s = this._state, F = this.cfg.outputLength / 8, D = F / 8,
|
|
2044
|
-
var z = s[w], B = z.high,
|
|
2045
|
-
B = (B << 8 | B >>> 24) & 16711935 | (B << 24 | B >>> 8) & 4278255360,
|
|
2043
|
+
for (var s = this._state, F = this.cfg.outputLength / 8, D = F / 8, _ = [], w = 0; w < D; w++) {
|
|
2044
|
+
var z = s[w], B = z.high, m = z.low;
|
|
2045
|
+
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);
|
|
2046
2046
|
}
|
|
2047
|
-
return new g.init(
|
|
2047
|
+
return new g.init(_, F);
|
|
2048
2048
|
},
|
|
2049
2049
|
clone: function() {
|
|
2050
2050
|
for (var f = p.clone.call(this), E = f._state = this._state.slice(0), o = 0; o < 25; o++)
|
|
@@ -2052,19 +2052,19 @@ function kt() {
|
|
|
2052
2052
|
return f;
|
|
2053
2053
|
}
|
|
2054
2054
|
});
|
|
2055
|
-
|
|
2055
|
+
u.SHA3 = p._createHelper(h), u.HmacSHA3 = p._createHmacHelper(h);
|
|
2056
2056
|
})(Math), x.SHA3;
|
|
2057
2057
|
});
|
|
2058
|
-
})(
|
|
2058
|
+
})(W0)), W0.exports;
|
|
2059
2059
|
}
|
|
2060
2060
|
var O0 = { exports: {} }, St = O0.exports, Gr;
|
|
2061
2061
|
function Ht() {
|
|
2062
|
-
return Gr || (Gr = 1, (function(r,
|
|
2062
|
+
return Gr || (Gr = 1, (function(r, d) {
|
|
2063
2063
|
(function(x, e) {
|
|
2064
2064
|
r.exports = e(U());
|
|
2065
2065
|
})(St, function(x) {
|
|
2066
2066
|
return (function(e) {
|
|
2067
|
-
var
|
|
2067
|
+
var u = x, v = u.lib, g = v.WordArray, p = v.Hasher, C = u.algo, t = g.create([
|
|
2068
2068
|
0,
|
|
2069
2069
|
1,
|
|
2070
2070
|
2,
|
|
@@ -2145,7 +2145,7 @@ function Ht() {
|
|
|
2145
2145
|
6,
|
|
2146
2146
|
15,
|
|
2147
2147
|
13
|
|
2148
|
-
]),
|
|
2148
|
+
]), a = g.create([
|
|
2149
2149
|
5,
|
|
2150
2150
|
14,
|
|
2151
2151
|
7,
|
|
@@ -2307,7 +2307,7 @@ function Ht() {
|
|
|
2307
2307
|
8,
|
|
2308
2308
|
5,
|
|
2309
2309
|
6
|
|
2310
|
-
]),
|
|
2310
|
+
]), n = g.create([
|
|
2311
2311
|
8,
|
|
2312
2312
|
9,
|
|
2313
2313
|
9,
|
|
@@ -2388,27 +2388,27 @@ function Ht() {
|
|
|
2388
2388
|
13,
|
|
2389
2389
|
11,
|
|
2390
2390
|
11
|
|
2391
|
-
]),
|
|
2391
|
+
]), l = g.create([0, 1518500249, 1859775393, 2400959708, 2840853838]), c = g.create([1352829926, 1548603684, 1836072691, 2053994217, 0]), h = C.RIPEMD160 = p.extend({
|
|
2392
2392
|
_doReset: function() {
|
|
2393
2393
|
this._hash = g.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
|
|
2394
2394
|
},
|
|
2395
|
-
_doProcessBlock: function(D,
|
|
2395
|
+
_doProcessBlock: function(D, _) {
|
|
2396
2396
|
for (var w = 0; w < 16; w++) {
|
|
2397
|
-
var z =
|
|
2397
|
+
var z = _ + w, B = D[z];
|
|
2398
2398
|
D[z] = (B << 8 | B >>> 24) & 16711935 | (B << 24 | B >>> 8) & 4278255360;
|
|
2399
2399
|
}
|
|
2400
|
-
var
|
|
2401
|
-
R =
|
|
2400
|
+
var m = this._hash.words, P = l.words, H = c.words, q = t.words, L = a.words, y = A.words, $ = n.words, W, O, I, b, k, R, S, N, T, j;
|
|
2401
|
+
R = W = m[0], S = O = m[1], N = I = m[2], T = b = m[3], j = k = m[4];
|
|
2402
2402
|
for (var M, w = 0; w < 80; w += 1)
|
|
2403
|
-
M =
|
|
2404
|
-
M =
|
|
2403
|
+
M = W + D[_ + q[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[_ + L[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;
|
|
2404
|
+
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;
|
|
2405
2405
|
},
|
|
2406
2406
|
_doFinalize: function() {
|
|
2407
|
-
var D = this._data,
|
|
2408
|
-
|
|
2409
|
-
for (var B = this._hash,
|
|
2410
|
-
var H =
|
|
2411
|
-
|
|
2407
|
+
var D = this._data, _ = D.words, w = this._nDataBytes * 8, z = D.sigBytes * 8;
|
|
2408
|
+
_[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();
|
|
2409
|
+
for (var B = this._hash, m = B.words, P = 0; P < 5; P++) {
|
|
2410
|
+
var H = m[P];
|
|
2411
|
+
m[P] = (H << 8 | H >>> 24) & 16711935 | (H << 24 | H >>> 8) & 4278255360;
|
|
2412
2412
|
}
|
|
2413
2413
|
return B;
|
|
2414
2414
|
},
|
|
@@ -2417,37 +2417,37 @@ function Ht() {
|
|
|
2417
2417
|
return D._hash = this._hash.clone(), D;
|
|
2418
2418
|
}
|
|
2419
2419
|
});
|
|
2420
|
-
function f(D,
|
|
2421
|
-
return D ^
|
|
2420
|
+
function f(D, _, w) {
|
|
2421
|
+
return D ^ _ ^ w;
|
|
2422
2422
|
}
|
|
2423
|
-
function E(D,
|
|
2424
|
-
return D &
|
|
2423
|
+
function E(D, _, w) {
|
|
2424
|
+
return D & _ | ~D & w;
|
|
2425
2425
|
}
|
|
2426
|
-
function o(D,
|
|
2427
|
-
return (D | ~
|
|
2426
|
+
function o(D, _, w) {
|
|
2427
|
+
return (D | ~_) ^ w;
|
|
2428
2428
|
}
|
|
2429
|
-
function i(D,
|
|
2430
|
-
return D & w |
|
|
2429
|
+
function i(D, _, w) {
|
|
2430
|
+
return D & w | _ & ~w;
|
|
2431
2431
|
}
|
|
2432
|
-
function s(D,
|
|
2433
|
-
return D ^ (
|
|
2432
|
+
function s(D, _, w) {
|
|
2433
|
+
return D ^ (_ | ~w);
|
|
2434
2434
|
}
|
|
2435
|
-
function F(D,
|
|
2436
|
-
return D <<
|
|
2435
|
+
function F(D, _) {
|
|
2436
|
+
return D << _ | D >>> 32 - _;
|
|
2437
2437
|
}
|
|
2438
|
-
|
|
2438
|
+
u.RIPEMD160 = p._createHelper(h), u.HmacRIPEMD160 = p._createHmacHelper(h);
|
|
2439
2439
|
})(), x.RIPEMD160;
|
|
2440
2440
|
});
|
|
2441
2441
|
})(O0)), O0.exports;
|
|
2442
2442
|
}
|
|
2443
|
-
var
|
|
2443
|
+
var q0 = { exports: {} }, Pt = q0.exports, Zr;
|
|
2444
2444
|
function Er() {
|
|
2445
|
-
return
|
|
2445
|
+
return Zr || (Zr = 1, (function(r, d) {
|
|
2446
2446
|
(function(x, e) {
|
|
2447
2447
|
r.exports = e(U());
|
|
2448
2448
|
})(Pt, function(x) {
|
|
2449
2449
|
(function() {
|
|
2450
|
-
var e = x,
|
|
2450
|
+
var e = x, u = e.lib, v = u.Base, g = e.enc, p = g.Utf8, C = e.algo;
|
|
2451
2451
|
C.HMAC = v.extend({
|
|
2452
2452
|
/**
|
|
2453
2453
|
* Initializes a newly created HMAC.
|
|
@@ -2459,13 +2459,13 @@ function Er() {
|
|
|
2459
2459
|
*
|
|
2460
2460
|
* var hmacHasher = CryptoJS.algo.HMAC.create(CryptoJS.algo.SHA256, key);
|
|
2461
2461
|
*/
|
|
2462
|
-
init: function(t,
|
|
2463
|
-
t = this._hasher = new t.init(), typeof
|
|
2464
|
-
var A = t.blockSize,
|
|
2465
|
-
|
|
2466
|
-
for (var
|
|
2462
|
+
init: function(t, a) {
|
|
2463
|
+
t = this._hasher = new t.init(), typeof a == "string" && (a = p.parse(a));
|
|
2464
|
+
var A = t.blockSize, n = A * 4;
|
|
2465
|
+
a.sigBytes > n && (a = t.finalize(a)), a.clamp();
|
|
2466
|
+
for (var l = this._oKey = a.clone(), c = this._iKey = a.clone(), h = l.words, f = c.words, E = 0; E < A; E++)
|
|
2467
2467
|
h[E] ^= 1549556828, f[E] ^= 909522486;
|
|
2468
|
-
|
|
2468
|
+
l.sigBytes = c.sigBytes = n, this.reset();
|
|
2469
2469
|
},
|
|
2470
2470
|
/**
|
|
2471
2471
|
* Resets this HMAC to its initial state.
|
|
@@ -2508,24 +2508,24 @@ function Er() {
|
|
|
2508
2508
|
* var hmac = hmacHasher.finalize(wordArray);
|
|
2509
2509
|
*/
|
|
2510
2510
|
finalize: function(t) {
|
|
2511
|
-
var
|
|
2512
|
-
|
|
2513
|
-
var
|
|
2514
|
-
return
|
|
2511
|
+
var a = this._hasher, A = a.finalize(t);
|
|
2512
|
+
a.reset();
|
|
2513
|
+
var n = a.finalize(this._oKey.clone().concat(A));
|
|
2514
|
+
return n;
|
|
2515
2515
|
}
|
|
2516
2516
|
});
|
|
2517
2517
|
})();
|
|
2518
2518
|
});
|
|
2519
|
-
})(
|
|
2519
|
+
})(q0)), q0.exports;
|
|
2520
2520
|
}
|
|
2521
|
-
var
|
|
2521
|
+
var L0 = { exports: {} }, Rt = L0.exports, Yr;
|
|
2522
2522
|
function $t() {
|
|
2523
|
-
return
|
|
2524
|
-
(function(x, e,
|
|
2523
|
+
return Yr || (Yr = 1, (function(r, d) {
|
|
2524
|
+
(function(x, e, u) {
|
|
2525
2525
|
r.exports = e(U(), Cr(), Er());
|
|
2526
2526
|
})(Rt, function(x) {
|
|
2527
2527
|
return (function() {
|
|
2528
|
-
var e = x,
|
|
2528
|
+
var e = x, u = e.lib, v = u.Base, g = u.WordArray, p = e.algo, C = p.SHA256, t = p.HMAC, a = p.PBKDF2 = v.extend({
|
|
2529
2529
|
/**
|
|
2530
2530
|
* Configuration options.
|
|
2531
2531
|
*
|
|
@@ -2564,35 +2564,35 @@ function $t() {
|
|
|
2564
2564
|
*
|
|
2565
2565
|
* var key = kdf.compute(password, salt);
|
|
2566
2566
|
*/
|
|
2567
|
-
compute: function(A,
|
|
2568
|
-
for (var
|
|
2569
|
-
var F = c.update(
|
|
2567
|
+
compute: function(A, n) {
|
|
2568
|
+
for (var l = this.cfg, c = t.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; ) {
|
|
2569
|
+
var F = c.update(n).finalize(f);
|
|
2570
2570
|
c.reset();
|
|
2571
|
-
for (var D = F.words,
|
|
2571
|
+
for (var D = F.words, _ = D.length, w = F, z = 1; z < s; z++) {
|
|
2572
2572
|
w = c.finalize(w), c.reset();
|
|
2573
|
-
for (var B = w.words,
|
|
2574
|
-
D[
|
|
2573
|
+
for (var B = w.words, m = 0; m < _; m++)
|
|
2574
|
+
D[m] ^= B[m];
|
|
2575
2575
|
}
|
|
2576
2576
|
h.concat(F), o[0]++;
|
|
2577
2577
|
}
|
|
2578
2578
|
return h.sigBytes = i * 4, h;
|
|
2579
2579
|
}
|
|
2580
2580
|
});
|
|
2581
|
-
e.PBKDF2 = function(A,
|
|
2582
|
-
return
|
|
2581
|
+
e.PBKDF2 = function(A, n, l) {
|
|
2582
|
+
return a.create(l).compute(A, n);
|
|
2583
2583
|
};
|
|
2584
2584
|
})(), x.PBKDF2;
|
|
2585
2585
|
});
|
|
2586
|
-
})(
|
|
2586
|
+
})(L0)), L0.exports;
|
|
2587
2587
|
}
|
|
2588
2588
|
var T0 = { exports: {} }, zt = T0.exports, Qr;
|
|
2589
2589
|
function t0() {
|
|
2590
|
-
return Qr || (Qr = 1, (function(r,
|
|
2591
|
-
(function(x, e,
|
|
2590
|
+
return Qr || (Qr = 1, (function(r, d) {
|
|
2591
|
+
(function(x, e, u) {
|
|
2592
2592
|
r.exports = e(U(), be(), Er());
|
|
2593
2593
|
})(zt, function(x) {
|
|
2594
2594
|
return (function() {
|
|
2595
|
-
var e = x,
|
|
2595
|
+
var e = x, u = e.lib, v = u.Base, g = u.WordArray, p = e.algo, C = p.MD5, t = p.EvpKDF = v.extend({
|
|
2596
2596
|
/**
|
|
2597
2597
|
* Configuration options.
|
|
2598
2598
|
*
|
|
@@ -2616,8 +2616,8 @@ function t0() {
|
|
|
2616
2616
|
* var kdf = CryptoJS.algo.EvpKDF.create({ keySize: 8 });
|
|
2617
2617
|
* var kdf = CryptoJS.algo.EvpKDF.create({ keySize: 8, iterations: 1000 });
|
|
2618
2618
|
*/
|
|
2619
|
-
init: function(
|
|
2620
|
-
this.cfg = this.cfg.extend(
|
|
2619
|
+
init: function(a) {
|
|
2620
|
+
this.cfg = this.cfg.extend(a);
|
|
2621
2621
|
},
|
|
2622
2622
|
/**
|
|
2623
2623
|
* Derives a key from a password.
|
|
@@ -2631,33 +2631,33 @@ function t0() {
|
|
|
2631
2631
|
*
|
|
2632
2632
|
* var key = kdf.compute(password, salt);
|
|
2633
2633
|
*/
|
|
2634
|
-
compute: function(
|
|
2635
|
-
for (var
|
|
2636
|
-
|
|
2634
|
+
compute: function(a, A) {
|
|
2635
|
+
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; ) {
|
|
2636
|
+
n && c.update(n), n = c.update(a).finalize(A), c.reset();
|
|
2637
2637
|
for (var i = 1; i < o; i++)
|
|
2638
|
-
|
|
2639
|
-
h.concat(
|
|
2638
|
+
n = c.finalize(n), c.reset();
|
|
2639
|
+
h.concat(n);
|
|
2640
2640
|
}
|
|
2641
2641
|
return h.sigBytes = E * 4, h;
|
|
2642
2642
|
}
|
|
2643
2643
|
});
|
|
2644
|
-
e.EvpKDF = function(
|
|
2645
|
-
return t.create(
|
|
2644
|
+
e.EvpKDF = function(a, A, n) {
|
|
2645
|
+
return t.create(n).compute(a, A);
|
|
2646
2646
|
};
|
|
2647
2647
|
})(), x.EvpKDF;
|
|
2648
2648
|
});
|
|
2649
2649
|
})(T0)), T0.exports;
|
|
2650
2650
|
}
|
|
2651
|
-
var M0 = { exports: {} },
|
|
2651
|
+
var M0 = { exports: {} }, It = M0.exports, Vr;
|
|
2652
2652
|
function K() {
|
|
2653
|
-
return Vr || (Vr = 1, (function(r,
|
|
2654
|
-
(function(x, e,
|
|
2653
|
+
return Vr || (Vr = 1, (function(r, d) {
|
|
2654
|
+
(function(x, e, u) {
|
|
2655
2655
|
r.exports = e(U(), t0());
|
|
2656
|
-
})(
|
|
2656
|
+
})(It, function(x) {
|
|
2657
2657
|
x.lib.Cipher || (function(e) {
|
|
2658
|
-
var
|
|
2658
|
+
var u = x, v = u.lib, g = v.Base, p = v.WordArray, C = v.BufferedBlockAlgorithm, t = u.enc;
|
|
2659
2659
|
t.Utf8;
|
|
2660
|
-
var
|
|
2660
|
+
var a = t.Base64, A = u.algo, n = A.EvpKDF, l = v.Cipher = C.extend({
|
|
2661
2661
|
/**
|
|
2662
2662
|
* Configuration options.
|
|
2663
2663
|
*
|
|
@@ -2678,8 +2678,8 @@ function K() {
|
|
|
2678
2678
|
*
|
|
2679
2679
|
* var cipher = CryptoJS.algo.AES.createEncryptor(keyWordArray, { iv: ivWordArray });
|
|
2680
2680
|
*/
|
|
2681
|
-
createEncryptor: function(B,
|
|
2682
|
-
return this.create(this._ENC_XFORM_MODE, B,
|
|
2681
|
+
createEncryptor: function(B, m) {
|
|
2682
|
+
return this.create(this._ENC_XFORM_MODE, B, m);
|
|
2683
2683
|
},
|
|
2684
2684
|
/**
|
|
2685
2685
|
* Creates this cipher in decryption mode.
|
|
@@ -2695,8 +2695,8 @@ function K() {
|
|
|
2695
2695
|
*
|
|
2696
2696
|
* var cipher = CryptoJS.algo.AES.createDecryptor(keyWordArray, { iv: ivWordArray });
|
|
2697
2697
|
*/
|
|
2698
|
-
createDecryptor: function(B,
|
|
2699
|
-
return this.create(this._DEC_XFORM_MODE, B,
|
|
2698
|
+
createDecryptor: function(B, m) {
|
|
2699
|
+
return this.create(this._DEC_XFORM_MODE, B, m);
|
|
2700
2700
|
},
|
|
2701
2701
|
/**
|
|
2702
2702
|
* Initializes a newly created cipher.
|
|
@@ -2709,8 +2709,8 @@ function K() {
|
|
|
2709
2709
|
*
|
|
2710
2710
|
* var cipher = CryptoJS.algo.AES.create(CryptoJS.algo.AES._ENC_XFORM_MODE, keyWordArray, { iv: ivWordArray });
|
|
2711
2711
|
*/
|
|
2712
|
-
init: function(B,
|
|
2713
|
-
this.cfg = this.cfg.extend(P), this._xformMode = B, this._key =
|
|
2712
|
+
init: function(B, m, P) {
|
|
2713
|
+
this.cfg = this.cfg.extend(P), this._xformMode = B, this._key = m, this.reset();
|
|
2714
2714
|
},
|
|
2715
2715
|
/**
|
|
2716
2716
|
* Resets this cipher to its initial state.
|
|
@@ -2753,8 +2753,8 @@ function K() {
|
|
|
2753
2753
|
*/
|
|
2754
2754
|
finalize: function(B) {
|
|
2755
2755
|
B && this._append(B);
|
|
2756
|
-
var
|
|
2757
|
-
return
|
|
2756
|
+
var m = this._doFinalize();
|
|
2757
|
+
return m;
|
|
2758
2758
|
},
|
|
2759
2759
|
keySize: 128 / 32,
|
|
2760
2760
|
ivSize: 128 / 32,
|
|
@@ -2774,29 +2774,29 @@ function K() {
|
|
|
2774
2774
|
* var AES = CryptoJS.lib.Cipher._createHelper(CryptoJS.algo.AES);
|
|
2775
2775
|
*/
|
|
2776
2776
|
_createHelper: /* @__PURE__ */ (function() {
|
|
2777
|
-
function B(
|
|
2778
|
-
return typeof
|
|
2777
|
+
function B(m) {
|
|
2778
|
+
return typeof m == "string" ? z : D;
|
|
2779
2779
|
}
|
|
2780
|
-
return function(
|
|
2780
|
+
return function(m) {
|
|
2781
2781
|
return {
|
|
2782
|
-
encrypt: function(P, H,
|
|
2783
|
-
return B(H).encrypt(
|
|
2782
|
+
encrypt: function(P, H, q) {
|
|
2783
|
+
return B(H).encrypt(m, P, H, q);
|
|
2784
2784
|
},
|
|
2785
|
-
decrypt: function(P, H,
|
|
2786
|
-
return B(H).decrypt(
|
|
2785
|
+
decrypt: function(P, H, q) {
|
|
2786
|
+
return B(H).decrypt(m, P, H, q);
|
|
2787
2787
|
}
|
|
2788
2788
|
};
|
|
2789
2789
|
};
|
|
2790
2790
|
})()
|
|
2791
2791
|
});
|
|
2792
|
-
v.StreamCipher =
|
|
2792
|
+
v.StreamCipher = l.extend({
|
|
2793
2793
|
_doFinalize: function() {
|
|
2794
2794
|
var B = this._process(!0);
|
|
2795
2795
|
return B;
|
|
2796
2796
|
},
|
|
2797
2797
|
blockSize: 1
|
|
2798
2798
|
});
|
|
2799
|
-
var c =
|
|
2799
|
+
var c = u.mode = {}, h = v.BlockCipherMode = g.extend({
|
|
2800
2800
|
/**
|
|
2801
2801
|
* Creates this mode for encryption.
|
|
2802
2802
|
*
|
|
@@ -2809,8 +2809,8 @@ function K() {
|
|
|
2809
2809
|
*
|
|
2810
2810
|
* var mode = CryptoJS.mode.CBC.createEncryptor(cipher, iv.words);
|
|
2811
2811
|
*/
|
|
2812
|
-
createEncryptor: function(B,
|
|
2813
|
-
return this.Encryptor.create(B,
|
|
2812
|
+
createEncryptor: function(B, m) {
|
|
2813
|
+
return this.Encryptor.create(B, m);
|
|
2814
2814
|
},
|
|
2815
2815
|
/**
|
|
2816
2816
|
* Creates this mode for decryption.
|
|
@@ -2824,8 +2824,8 @@ function K() {
|
|
|
2824
2824
|
*
|
|
2825
2825
|
* var mode = CryptoJS.mode.CBC.createDecryptor(cipher, iv.words);
|
|
2826
2826
|
*/
|
|
2827
|
-
createDecryptor: function(B,
|
|
2828
|
-
return this.Decryptor.create(B,
|
|
2827
|
+
createDecryptor: function(B, m) {
|
|
2828
|
+
return this.Decryptor.create(B, m);
|
|
2829
2829
|
},
|
|
2830
2830
|
/**
|
|
2831
2831
|
* Initializes a newly created mode.
|
|
@@ -2837,8 +2837,8 @@ function K() {
|
|
|
2837
2837
|
*
|
|
2838
2838
|
* var mode = CryptoJS.mode.CBC.Encryptor.create(cipher, iv.words);
|
|
2839
2839
|
*/
|
|
2840
|
-
init: function(B,
|
|
2841
|
-
this._cipher = B, this._iv =
|
|
2840
|
+
init: function(B, m) {
|
|
2841
|
+
this._cipher = B, this._iv = m;
|
|
2842
2842
|
}
|
|
2843
2843
|
}), f = c.CBC = (function() {
|
|
2844
2844
|
var B = h.extend();
|
|
@@ -2854,8 +2854,8 @@ function K() {
|
|
|
2854
2854
|
* mode.processBlock(data.words, offset);
|
|
2855
2855
|
*/
|
|
2856
2856
|
processBlock: function(P, H) {
|
|
2857
|
-
var
|
|
2858
|
-
|
|
2857
|
+
var q = this._cipher, L = q.blockSize;
|
|
2858
|
+
m.call(this, P, H, L), q.encryptBlock(P, H), this._prevBlock = P.slice(H, H + L);
|
|
2859
2859
|
}
|
|
2860
2860
|
}), B.Decryptor = B.extend({
|
|
2861
2861
|
/**
|
|
@@ -2869,18 +2869,18 @@ function K() {
|
|
|
2869
2869
|
* mode.processBlock(data.words, offset);
|
|
2870
2870
|
*/
|
|
2871
2871
|
processBlock: function(P, H) {
|
|
2872
|
-
var
|
|
2873
|
-
|
|
2872
|
+
var q = this._cipher, L = q.blockSize, y = P.slice(H, H + L);
|
|
2873
|
+
q.decryptBlock(P, H), m.call(this, P, H, L), this._prevBlock = y;
|
|
2874
2874
|
}
|
|
2875
2875
|
});
|
|
2876
|
-
function
|
|
2877
|
-
var
|
|
2878
|
-
y ? (
|
|
2879
|
-
for (var $ = 0; $ <
|
|
2880
|
-
P[H + $] ^=
|
|
2876
|
+
function m(P, H, q) {
|
|
2877
|
+
var L, y = this._iv;
|
|
2878
|
+
y ? (L = y, this._iv = e) : L = this._prevBlock;
|
|
2879
|
+
for (var $ = 0; $ < q; $++)
|
|
2880
|
+
P[H + $] ^= L[$];
|
|
2881
2881
|
}
|
|
2882
2882
|
return B;
|
|
2883
|
-
})(), E =
|
|
2883
|
+
})(), E = u.pad = {}, o = E.Pkcs7 = {
|
|
2884
2884
|
/**
|
|
2885
2885
|
* Pads data using the algorithm defined in PKCS #5/7.
|
|
2886
2886
|
*
|
|
@@ -2893,10 +2893,10 @@ function K() {
|
|
|
2893
2893
|
*
|
|
2894
2894
|
* CryptoJS.pad.Pkcs7.pad(wordArray, 4);
|
|
2895
2895
|
*/
|
|
2896
|
-
pad: function(B,
|
|
2897
|
-
for (var P =
|
|
2898
|
-
|
|
2899
|
-
var $ = p.create(
|
|
2896
|
+
pad: function(B, m) {
|
|
2897
|
+
for (var P = m * 4, H = P - B.sigBytes % P, q = H << 24 | H << 16 | H << 8 | H, L = [], y = 0; y < H; y += 4)
|
|
2898
|
+
L.push(q);
|
|
2899
|
+
var $ = p.create(L, H);
|
|
2900
2900
|
B.concat($);
|
|
2901
2901
|
},
|
|
2902
2902
|
/**
|
|
@@ -2911,33 +2911,33 @@ function K() {
|
|
|
2911
2911
|
* CryptoJS.pad.Pkcs7.unpad(wordArray);
|
|
2912
2912
|
*/
|
|
2913
2913
|
unpad: function(B) {
|
|
2914
|
-
var
|
|
2915
|
-
B.sigBytes -=
|
|
2914
|
+
var m = B.words[B.sigBytes - 1 >>> 2] & 255;
|
|
2915
|
+
B.sigBytes -= m;
|
|
2916
2916
|
}
|
|
2917
2917
|
};
|
|
2918
|
-
v.BlockCipher =
|
|
2918
|
+
v.BlockCipher = l.extend({
|
|
2919
2919
|
/**
|
|
2920
2920
|
* Configuration options.
|
|
2921
2921
|
*
|
|
2922
2922
|
* @property {Mode} mode The block mode to use. Default: CBC
|
|
2923
2923
|
* @property {Padding} padding The padding strategy to use. Default: Pkcs7
|
|
2924
2924
|
*/
|
|
2925
|
-
cfg:
|
|
2925
|
+
cfg: l.cfg.extend({
|
|
2926
2926
|
mode: f,
|
|
2927
2927
|
padding: o
|
|
2928
2928
|
}),
|
|
2929
2929
|
reset: function() {
|
|
2930
2930
|
var B;
|
|
2931
|
-
|
|
2932
|
-
var
|
|
2931
|
+
l.reset.call(this);
|
|
2932
|
+
var m = this.cfg, P = m.iv, H = m.mode;
|
|
2933
2933
|
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);
|
|
2934
2934
|
},
|
|
2935
|
-
_doProcessBlock: function(B,
|
|
2936
|
-
this._mode.processBlock(B,
|
|
2935
|
+
_doProcessBlock: function(B, m) {
|
|
2936
|
+
this._mode.processBlock(B, m);
|
|
2937
2937
|
},
|
|
2938
2938
|
_doFinalize: function() {
|
|
2939
|
-
var B,
|
|
2940
|
-
return this._xformMode == this._ENC_XFORM_MODE ? (
|
|
2939
|
+
var B, m = this.cfg.padding;
|
|
2940
|
+
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;
|
|
2941
2941
|
},
|
|
2942
2942
|
blockSize: 128 / 32
|
|
2943
2943
|
});
|
|
@@ -2982,7 +2982,7 @@ function K() {
|
|
|
2982
2982
|
toString: function(B) {
|
|
2983
2983
|
return (B || this.formatter).stringify(this);
|
|
2984
2984
|
}
|
|
2985
|
-
}), s =
|
|
2985
|
+
}), s = u.format = {}, F = s.OpenSSL = {
|
|
2986
2986
|
/**
|
|
2987
2987
|
* Converts a cipher params object to an OpenSSL-compatible string.
|
|
2988
2988
|
*
|
|
@@ -2997,8 +2997,8 @@ function K() {
|
|
|
2997
2997
|
* var openSSLString = CryptoJS.format.OpenSSL.stringify(cipherParams);
|
|
2998
2998
|
*/
|
|
2999
2999
|
stringify: function(B) {
|
|
3000
|
-
var
|
|
3001
|
-
return H ?
|
|
3000
|
+
var m, P = B.ciphertext, H = B.salt;
|
|
3001
|
+
return H ? m = p.create([1398893684, 1701076831]).concat(H).concat(P) : m = P, m.toString(a);
|
|
3002
3002
|
},
|
|
3003
3003
|
/**
|
|
3004
3004
|
* Converts an OpenSSL-compatible string to a cipher params object.
|
|
@@ -3014,8 +3014,8 @@ function K() {
|
|
|
3014
3014
|
* var cipherParams = CryptoJS.format.OpenSSL.parse(openSSLString);
|
|
3015
3015
|
*/
|
|
3016
3016
|
parse: function(B) {
|
|
3017
|
-
var
|
|
3018
|
-
return H[0] == 1398893684 && H[1] == 1701076831 && (
|
|
3017
|
+
var m, P = a.parse(B), H = P.words;
|
|
3018
|
+
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 });
|
|
3019
3019
|
}
|
|
3020
3020
|
}, D = v.SerializableCipher = g.extend({
|
|
3021
3021
|
/**
|
|
@@ -3044,11 +3044,11 @@ function K() {
|
|
|
3044
3044
|
* var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv });
|
|
3045
3045
|
* var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv, format: CryptoJS.format.OpenSSL });
|
|
3046
3046
|
*/
|
|
3047
|
-
encrypt: function(B,
|
|
3047
|
+
encrypt: function(B, m, P, H) {
|
|
3048
3048
|
H = this.cfg.extend(H);
|
|
3049
|
-
var
|
|
3049
|
+
var q = B.createEncryptor(P, H), L = q.finalize(m), y = q.cfg;
|
|
3050
3050
|
return i.create({
|
|
3051
|
-
ciphertext:
|
|
3051
|
+
ciphertext: L,
|
|
3052
3052
|
key: P,
|
|
3053
3053
|
iv: y.iv,
|
|
3054
3054
|
algorithm: B,
|
|
@@ -3075,10 +3075,10 @@ function K() {
|
|
|
3075
3075
|
* var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, key, { iv: iv, format: CryptoJS.format.OpenSSL });
|
|
3076
3076
|
* var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, key, { iv: iv, format: CryptoJS.format.OpenSSL });
|
|
3077
3077
|
*/
|
|
3078
|
-
decrypt: function(B,
|
|
3079
|
-
H = this.cfg.extend(H),
|
|
3080
|
-
var
|
|
3081
|
-
return
|
|
3078
|
+
decrypt: function(B, m, P, H) {
|
|
3079
|
+
H = this.cfg.extend(H), m = this._parse(m, H.format);
|
|
3080
|
+
var q = B.createDecryptor(P, H).finalize(m.ciphertext);
|
|
3081
|
+
return q;
|
|
3082
3082
|
},
|
|
3083
3083
|
/**
|
|
3084
3084
|
* Converts serialized ciphertext to CipherParams,
|
|
@@ -3095,10 +3095,10 @@ function K() {
|
|
|
3095
3095
|
*
|
|
3096
3096
|
* var ciphertextParams = CryptoJS.lib.SerializableCipher._parse(ciphertextStringOrParams, format);
|
|
3097
3097
|
*/
|
|
3098
|
-
_parse: function(B,
|
|
3099
|
-
return typeof B == "string" ?
|
|
3098
|
+
_parse: function(B, m) {
|
|
3099
|
+
return typeof B == "string" ? m.parse(B, this) : B;
|
|
3100
3100
|
}
|
|
3101
|
-
}),
|
|
3101
|
+
}), _ = u.kdf = {}, w = _.OpenSSL = {
|
|
3102
3102
|
/**
|
|
3103
3103
|
* Derives a key and IV from a password.
|
|
3104
3104
|
*
|
|
@@ -3116,13 +3116,13 @@ function K() {
|
|
|
3116
3116
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);
|
|
3117
3117
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
|
|
3118
3118
|
*/
|
|
3119
|
-
execute: function(B,
|
|
3120
|
-
if (H || (H = p.random(64 / 8)),
|
|
3121
|
-
var
|
|
3119
|
+
execute: function(B, m, P, H, q) {
|
|
3120
|
+
if (H || (H = p.random(64 / 8)), q)
|
|
3121
|
+
var L = n.create({ keySize: m + P, hasher: q }).compute(B, H);
|
|
3122
3122
|
else
|
|
3123
|
-
var
|
|
3124
|
-
var y = p.create(
|
|
3125
|
-
return
|
|
3123
|
+
var L = n.create({ keySize: m + P }).compute(B, H);
|
|
3124
|
+
var y = p.create(L.words.slice(m), P * 4);
|
|
3125
|
+
return L.sigBytes = m * 4, i.create({ key: L, iv: y, salt: H });
|
|
3126
3126
|
}
|
|
3127
3127
|
}, z = v.PasswordBasedCipher = D.extend({
|
|
3128
3128
|
/**
|
|
@@ -3150,12 +3150,12 @@ function K() {
|
|
|
3150
3150
|
* var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password');
|
|
3151
3151
|
* var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password', { format: CryptoJS.format.OpenSSL });
|
|
3152
3152
|
*/
|
|
3153
|
-
encrypt: function(B,
|
|
3153
|
+
encrypt: function(B, m, P, H) {
|
|
3154
3154
|
H = this.cfg.extend(H);
|
|
3155
|
-
var
|
|
3156
|
-
H.iv =
|
|
3157
|
-
var
|
|
3158
|
-
return
|
|
3155
|
+
var q = H.kdf.execute(P, B.keySize, B.ivSize, H.salt, H.hasher);
|
|
3156
|
+
H.iv = q.iv;
|
|
3157
|
+
var L = D.encrypt.call(this, B, m, q.key, H);
|
|
3158
|
+
return L.mixIn(q), L;
|
|
3159
3159
|
},
|
|
3160
3160
|
/**
|
|
3161
3161
|
* Decrypts serialized ciphertext using a password.
|
|
@@ -3174,40 +3174,40 @@ function K() {
|
|
|
3174
3174
|
* var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, 'password', { format: CryptoJS.format.OpenSSL });
|
|
3175
3175
|
* var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, 'password', { format: CryptoJS.format.OpenSSL });
|
|
3176
3176
|
*/
|
|
3177
|
-
decrypt: function(B,
|
|
3178
|
-
H = this.cfg.extend(H),
|
|
3179
|
-
var
|
|
3180
|
-
H.iv =
|
|
3181
|
-
var
|
|
3182
|
-
return
|
|
3177
|
+
decrypt: function(B, m, P, H) {
|
|
3178
|
+
H = this.cfg.extend(H), m = this._parse(m, H.format);
|
|
3179
|
+
var q = H.kdf.execute(P, B.keySize, B.ivSize, m.salt, H.hasher);
|
|
3180
|
+
H.iv = q.iv;
|
|
3181
|
+
var L = D.decrypt.call(this, B, m, q.key, H);
|
|
3182
|
+
return L;
|
|
3183
3183
|
}
|
|
3184
3184
|
});
|
|
3185
3185
|
})();
|
|
3186
3186
|
});
|
|
3187
3187
|
})(M0)), M0.exports;
|
|
3188
3188
|
}
|
|
3189
|
-
var N0 = { exports: {} },
|
|
3189
|
+
var N0 = { exports: {} }, Wt = N0.exports, Jr;
|
|
3190
3190
|
function Ot() {
|
|
3191
|
-
return Jr || (Jr = 1, (function(r,
|
|
3192
|
-
(function(x, e,
|
|
3191
|
+
return Jr || (Jr = 1, (function(r, d) {
|
|
3192
|
+
(function(x, e, u) {
|
|
3193
3193
|
r.exports = e(U(), K());
|
|
3194
|
-
})(
|
|
3194
|
+
})(Wt, function(x) {
|
|
3195
3195
|
return x.mode.CFB = (function() {
|
|
3196
3196
|
var e = x.lib.BlockCipherMode.extend();
|
|
3197
3197
|
e.Encryptor = e.extend({
|
|
3198
3198
|
processBlock: function(v, g) {
|
|
3199
3199
|
var p = this._cipher, C = p.blockSize;
|
|
3200
|
-
|
|
3200
|
+
u.call(this, v, g, C, p), this._prevBlock = v.slice(g, g + C);
|
|
3201
3201
|
}
|
|
3202
3202
|
}), e.Decryptor = e.extend({
|
|
3203
3203
|
processBlock: function(v, g) {
|
|
3204
3204
|
var p = this._cipher, C = p.blockSize, t = v.slice(g, g + C);
|
|
3205
|
-
|
|
3205
|
+
u.call(this, v, g, C, p), this._prevBlock = t;
|
|
3206
3206
|
}
|
|
3207
3207
|
});
|
|
3208
|
-
function
|
|
3209
|
-
var t,
|
|
3210
|
-
|
|
3208
|
+
function u(v, g, p, C) {
|
|
3209
|
+
var t, a = this._iv;
|
|
3210
|
+
a ? (t = a.slice(0), this._iv = void 0) : t = this._prevBlock, C.encryptBlock(t, 0);
|
|
3211
3211
|
for (var A = 0; A < p; A++)
|
|
3212
3212
|
v[g + A] ^= t[A];
|
|
3213
3213
|
}
|
|
@@ -3216,55 +3216,55 @@ function Ot() {
|
|
|
3216
3216
|
});
|
|
3217
3217
|
})(N0)), N0.exports;
|
|
3218
3218
|
}
|
|
3219
|
-
var U0 = { exports: {} },
|
|
3220
|
-
function
|
|
3221
|
-
return re || (re = 1, (function(r,
|
|
3222
|
-
(function(x, e,
|
|
3219
|
+
var U0 = { exports: {} }, qt = U0.exports, re;
|
|
3220
|
+
function Lt() {
|
|
3221
|
+
return re || (re = 1, (function(r, d) {
|
|
3222
|
+
(function(x, e, u) {
|
|
3223
3223
|
r.exports = e(U(), K());
|
|
3224
|
-
})(
|
|
3224
|
+
})(qt, function(x) {
|
|
3225
3225
|
return x.mode.CTR = (function() {
|
|
3226
|
-
var e = x.lib.BlockCipherMode.extend(),
|
|
3226
|
+
var e = x.lib.BlockCipherMode.extend(), u = e.Encryptor = e.extend({
|
|
3227
3227
|
processBlock: function(v, g) {
|
|
3228
|
-
var p = this._cipher, C = p.blockSize, t = this._iv,
|
|
3229
|
-
t && (
|
|
3230
|
-
var A =
|
|
3231
|
-
p.encryptBlock(A, 0),
|
|
3232
|
-
for (var
|
|
3233
|
-
v[g +
|
|
3228
|
+
var p = this._cipher, C = p.blockSize, t = this._iv, a = this._counter;
|
|
3229
|
+
t && (a = this._counter = t.slice(0), this._iv = void 0);
|
|
3230
|
+
var A = a.slice(0);
|
|
3231
|
+
p.encryptBlock(A, 0), a[C - 1] = a[C - 1] + 1 | 0;
|
|
3232
|
+
for (var n = 0; n < C; n++)
|
|
3233
|
+
v[g + n] ^= A[n];
|
|
3234
3234
|
}
|
|
3235
3235
|
});
|
|
3236
|
-
return e.Decryptor =
|
|
3236
|
+
return e.Decryptor = u, e;
|
|
3237
3237
|
})(), x.mode.CTR;
|
|
3238
3238
|
});
|
|
3239
3239
|
})(U0)), U0.exports;
|
|
3240
3240
|
}
|
|
3241
3241
|
var j0 = { exports: {} }, Tt = j0.exports, ee;
|
|
3242
3242
|
function Mt() {
|
|
3243
|
-
return ee || (ee = 1, (function(r,
|
|
3244
|
-
(function(x, e,
|
|
3243
|
+
return ee || (ee = 1, (function(r, d) {
|
|
3244
|
+
(function(x, e, u) {
|
|
3245
3245
|
r.exports = e(U(), K());
|
|
3246
3246
|
})(Tt, function(x) {
|
|
3247
3247
|
return x.mode.CTRGladman = (function() {
|
|
3248
3248
|
var e = x.lib.BlockCipherMode.extend();
|
|
3249
|
-
function
|
|
3249
|
+
function u(p) {
|
|
3250
3250
|
if ((p >> 24 & 255) === 255) {
|
|
3251
|
-
var C = p >> 16 & 255, t = p >> 8 & 255,
|
|
3252
|
-
C === 255 ? (C = 0, t === 255 ? (t = 0,
|
|
3251
|
+
var C = p >> 16 & 255, t = p >> 8 & 255, a = p & 255;
|
|
3252
|
+
C === 255 ? (C = 0, t === 255 ? (t = 0, a === 255 ? a = 0 : ++a) : ++t) : ++C, p = 0, p += C << 16, p += t << 8, p += a;
|
|
3253
3253
|
} else
|
|
3254
3254
|
p += 1 << 24;
|
|
3255
3255
|
return p;
|
|
3256
3256
|
}
|
|
3257
3257
|
function v(p) {
|
|
3258
|
-
return (p[0] =
|
|
3258
|
+
return (p[0] = u(p[0])) === 0 && (p[1] = u(p[1])), p;
|
|
3259
3259
|
}
|
|
3260
3260
|
var g = e.Encryptor = e.extend({
|
|
3261
3261
|
processBlock: function(p, C) {
|
|
3262
|
-
var t = this._cipher,
|
|
3263
|
-
A && (
|
|
3264
|
-
var
|
|
3265
|
-
t.encryptBlock(
|
|
3266
|
-
for (var c = 0; c <
|
|
3267
|
-
p[C + c] ^=
|
|
3262
|
+
var t = this._cipher, a = t.blockSize, A = this._iv, n = this._counter;
|
|
3263
|
+
A && (n = this._counter = A.slice(0), this._iv = void 0), v(n);
|
|
3264
|
+
var l = n.slice(0);
|
|
3265
|
+
t.encryptBlock(l, 0);
|
|
3266
|
+
for (var c = 0; c < a; c++)
|
|
3267
|
+
p[C + c] ^= l[c];
|
|
3268
3268
|
}
|
|
3269
3269
|
});
|
|
3270
3270
|
return e.Decryptor = g, e;
|
|
@@ -3274,114 +3274,114 @@ function Mt() {
|
|
|
3274
3274
|
}
|
|
3275
3275
|
var K0 = { exports: {} }, Nt = K0.exports, te;
|
|
3276
3276
|
function Ut() {
|
|
3277
|
-
return te || (te = 1, (function(r,
|
|
3278
|
-
(function(x, e,
|
|
3277
|
+
return te || (te = 1, (function(r, d) {
|
|
3278
|
+
(function(x, e, u) {
|
|
3279
3279
|
r.exports = e(U(), K());
|
|
3280
3280
|
})(Nt, function(x) {
|
|
3281
3281
|
return x.mode.OFB = (function() {
|
|
3282
|
-
var e = x.lib.BlockCipherMode.extend(),
|
|
3282
|
+
var e = x.lib.BlockCipherMode.extend(), u = e.Encryptor = e.extend({
|
|
3283
3283
|
processBlock: function(v, g) {
|
|
3284
|
-
var p = this._cipher, C = p.blockSize, t = this._iv,
|
|
3285
|
-
t && (
|
|
3284
|
+
var p = this._cipher, C = p.blockSize, t = this._iv, a = this._keystream;
|
|
3285
|
+
t && (a = this._keystream = t.slice(0), this._iv = void 0), p.encryptBlock(a, 0);
|
|
3286
3286
|
for (var A = 0; A < C; A++)
|
|
3287
|
-
v[g + A] ^=
|
|
3287
|
+
v[g + A] ^= a[A];
|
|
3288
3288
|
}
|
|
3289
3289
|
});
|
|
3290
|
-
return e.Decryptor =
|
|
3290
|
+
return e.Decryptor = u, e;
|
|
3291
3291
|
})(), x.mode.OFB;
|
|
3292
3292
|
});
|
|
3293
3293
|
})(K0)), K0.exports;
|
|
3294
3294
|
}
|
|
3295
3295
|
var X0 = { exports: {} }, jt = X0.exports, xe;
|
|
3296
3296
|
function Kt() {
|
|
3297
|
-
return xe || (xe = 1, (function(r,
|
|
3298
|
-
(function(x, e,
|
|
3297
|
+
return xe || (xe = 1, (function(r, d) {
|
|
3298
|
+
(function(x, e, u) {
|
|
3299
3299
|
r.exports = e(U(), K());
|
|
3300
3300
|
})(jt, function(x) {
|
|
3301
3301
|
return x.mode.ECB = (function() {
|
|
3302
3302
|
var e = x.lib.BlockCipherMode.extend();
|
|
3303
3303
|
return e.Encryptor = e.extend({
|
|
3304
|
-
processBlock: function(
|
|
3305
|
-
this._cipher.encryptBlock(
|
|
3304
|
+
processBlock: function(u, v) {
|
|
3305
|
+
this._cipher.encryptBlock(u, v);
|
|
3306
3306
|
}
|
|
3307
3307
|
}), e.Decryptor = e.extend({
|
|
3308
|
-
processBlock: function(
|
|
3309
|
-
this._cipher.decryptBlock(
|
|
3308
|
+
processBlock: function(u, v) {
|
|
3309
|
+
this._cipher.decryptBlock(u, v);
|
|
3310
3310
|
}
|
|
3311
3311
|
}), e;
|
|
3312
3312
|
})(), x.mode.ECB;
|
|
3313
3313
|
});
|
|
3314
3314
|
})(X0)), X0.exports;
|
|
3315
3315
|
}
|
|
3316
|
-
var G0 = { exports: {} }, Xt = G0.exports,
|
|
3316
|
+
var G0 = { exports: {} }, Xt = G0.exports, ae;
|
|
3317
3317
|
function Gt() {
|
|
3318
|
-
return
|
|
3319
|
-
(function(x, e,
|
|
3318
|
+
return ae || (ae = 1, (function(r, d) {
|
|
3319
|
+
(function(x, e, u) {
|
|
3320
3320
|
r.exports = e(U(), K());
|
|
3321
3321
|
})(Xt, function(x) {
|
|
3322
3322
|
return x.pad.AnsiX923 = {
|
|
3323
|
-
pad: function(e,
|
|
3324
|
-
var v = e.sigBytes, g =
|
|
3323
|
+
pad: function(e, u) {
|
|
3324
|
+
var v = e.sigBytes, g = u * 4, p = g - v % g, C = v + p - 1;
|
|
3325
3325
|
e.clamp(), e.words[C >>> 2] |= p << 24 - C % 4 * 8, e.sigBytes += p;
|
|
3326
3326
|
},
|
|
3327
3327
|
unpad: function(e) {
|
|
3328
|
-
var
|
|
3329
|
-
e.sigBytes -=
|
|
3328
|
+
var u = e.words[e.sigBytes - 1 >>> 2] & 255;
|
|
3329
|
+
e.sigBytes -= u;
|
|
3330
3330
|
}
|
|
3331
3331
|
}, x.pad.Ansix923;
|
|
3332
3332
|
});
|
|
3333
3333
|
})(G0)), G0.exports;
|
|
3334
3334
|
}
|
|
3335
|
-
var
|
|
3336
|
-
function
|
|
3337
|
-
return
|
|
3338
|
-
(function(x, e,
|
|
3335
|
+
var Z0 = { exports: {} }, Zt = Z0.exports, ne;
|
|
3336
|
+
function Yt() {
|
|
3337
|
+
return ne || (ne = 1, (function(r, d) {
|
|
3338
|
+
(function(x, e, u) {
|
|
3339
3339
|
r.exports = e(U(), K());
|
|
3340
|
-
})(
|
|
3340
|
+
})(Zt, function(x) {
|
|
3341
3341
|
return x.pad.Iso10126 = {
|
|
3342
|
-
pad: function(e,
|
|
3343
|
-
var v =
|
|
3342
|
+
pad: function(e, u) {
|
|
3343
|
+
var v = u * 4, g = v - e.sigBytes % v;
|
|
3344
3344
|
e.concat(x.lib.WordArray.random(g - 1)).concat(x.lib.WordArray.create([g << 24], 1));
|
|
3345
3345
|
},
|
|
3346
3346
|
unpad: function(e) {
|
|
3347
|
-
var
|
|
3348
|
-
e.sigBytes -=
|
|
3347
|
+
var u = e.words[e.sigBytes - 1 >>> 2] & 255;
|
|
3348
|
+
e.sigBytes -= u;
|
|
3349
3349
|
}
|
|
3350
3350
|
}, x.pad.Iso10126;
|
|
3351
3351
|
});
|
|
3352
|
-
})(
|
|
3352
|
+
})(Z0)), Z0.exports;
|
|
3353
3353
|
}
|
|
3354
|
-
var
|
|
3354
|
+
var Y0 = { exports: {} }, Qt = Y0.exports, oe;
|
|
3355
3355
|
function Vt() {
|
|
3356
|
-
return oe || (oe = 1, (function(r,
|
|
3357
|
-
(function(x, e,
|
|
3356
|
+
return oe || (oe = 1, (function(r, d) {
|
|
3357
|
+
(function(x, e, u) {
|
|
3358
3358
|
r.exports = e(U(), K());
|
|
3359
3359
|
})(Qt, function(x) {
|
|
3360
3360
|
return x.pad.Iso97971 = {
|
|
3361
|
-
pad: function(e,
|
|
3362
|
-
e.concat(x.lib.WordArray.create([2147483648], 1)), x.pad.ZeroPadding.pad(e,
|
|
3361
|
+
pad: function(e, u) {
|
|
3362
|
+
e.concat(x.lib.WordArray.create([2147483648], 1)), x.pad.ZeroPadding.pad(e, u);
|
|
3363
3363
|
},
|
|
3364
3364
|
unpad: function(e) {
|
|
3365
3365
|
x.pad.ZeroPadding.unpad(e), e.sigBytes--;
|
|
3366
3366
|
}
|
|
3367
3367
|
}, x.pad.Iso97971;
|
|
3368
3368
|
});
|
|
3369
|
-
})(
|
|
3369
|
+
})(Y0)), Y0.exports;
|
|
3370
3370
|
}
|
|
3371
3371
|
var Q0 = { exports: {} }, Jt = Q0.exports, ie;
|
|
3372
3372
|
function rx() {
|
|
3373
|
-
return ie || (ie = 1, (function(r,
|
|
3374
|
-
(function(x, e,
|
|
3373
|
+
return ie || (ie = 1, (function(r, d) {
|
|
3374
|
+
(function(x, e, u) {
|
|
3375
3375
|
r.exports = e(U(), K());
|
|
3376
3376
|
})(Jt, function(x) {
|
|
3377
3377
|
return x.pad.ZeroPadding = {
|
|
3378
|
-
pad: function(e,
|
|
3379
|
-
var v =
|
|
3378
|
+
pad: function(e, u) {
|
|
3379
|
+
var v = u * 4;
|
|
3380
3380
|
e.clamp(), e.sigBytes += v - (e.sigBytes % v || v);
|
|
3381
3381
|
},
|
|
3382
3382
|
unpad: function(e) {
|
|
3383
|
-
for (var
|
|
3384
|
-
if (
|
|
3383
|
+
for (var u = e.words, v = e.sigBytes - 1, v = e.sigBytes - 1; v >= 0; v--)
|
|
3384
|
+
if (u[v >>> 2] >>> 24 - v % 4 * 8 & 255) {
|
|
3385
3385
|
e.sigBytes = v + 1;
|
|
3386
3386
|
break;
|
|
3387
3387
|
}
|
|
@@ -3392,8 +3392,8 @@ function rx() {
|
|
|
3392
3392
|
}
|
|
3393
3393
|
var V0 = { exports: {} }, ex = V0.exports, se;
|
|
3394
3394
|
function tx() {
|
|
3395
|
-
return se || (se = 1, (function(r,
|
|
3396
|
-
(function(x, e,
|
|
3395
|
+
return se || (se = 1, (function(r, d) {
|
|
3396
|
+
(function(x, e, u) {
|
|
3397
3397
|
r.exports = e(U(), K());
|
|
3398
3398
|
})(ex, function(x) {
|
|
3399
3399
|
return x.pad.NoPadding = {
|
|
@@ -3406,13 +3406,13 @@ function tx() {
|
|
|
3406
3406
|
})(V0)), V0.exports;
|
|
3407
3407
|
}
|
|
3408
3408
|
var J0 = { exports: {} }, xx = J0.exports, ce;
|
|
3409
|
-
function
|
|
3410
|
-
return ce || (ce = 1, (function(r,
|
|
3411
|
-
(function(x, e,
|
|
3409
|
+
function ax() {
|
|
3410
|
+
return ce || (ce = 1, (function(r, d) {
|
|
3411
|
+
(function(x, e, u) {
|
|
3412
3412
|
r.exports = e(U(), K());
|
|
3413
3413
|
})(xx, function(x) {
|
|
3414
3414
|
return (function(e) {
|
|
3415
|
-
var
|
|
3415
|
+
var u = x, v = u.lib, g = v.CipherParams, p = u.enc, C = p.Hex, t = u.format;
|
|
3416
3416
|
t.Hex = {
|
|
3417
3417
|
/**
|
|
3418
3418
|
* Converts the ciphertext of a cipher params object to a hexadecimally encoded string.
|
|
@@ -3427,8 +3427,8 @@ function nx() {
|
|
|
3427
3427
|
*
|
|
3428
3428
|
* var hexString = CryptoJS.format.Hex.stringify(cipherParams);
|
|
3429
3429
|
*/
|
|
3430
|
-
stringify: function(
|
|
3431
|
-
return
|
|
3430
|
+
stringify: function(a) {
|
|
3431
|
+
return a.ciphertext.toString(C);
|
|
3432
3432
|
},
|
|
3433
3433
|
/**
|
|
3434
3434
|
* Converts a hexadecimally encoded ciphertext string to a cipher params object.
|
|
@@ -3443,8 +3443,8 @@ function nx() {
|
|
|
3443
3443
|
*
|
|
3444
3444
|
* var cipherParams = CryptoJS.format.Hex.parse(hexString);
|
|
3445
3445
|
*/
|
|
3446
|
-
parse: function(
|
|
3447
|
-
var A = C.parse(
|
|
3446
|
+
parse: function(a) {
|
|
3447
|
+
var A = C.parse(a);
|
|
3448
3448
|
return g.create({ ciphertext: A });
|
|
3449
3449
|
}
|
|
3450
3450
|
};
|
|
@@ -3452,58 +3452,58 @@ function nx() {
|
|
|
3452
3452
|
});
|
|
3453
3453
|
})(J0)), J0.exports;
|
|
3454
3454
|
}
|
|
3455
|
-
var rr = { exports: {} },
|
|
3455
|
+
var rr = { exports: {} }, nx = rr.exports, fe;
|
|
3456
3456
|
function ox() {
|
|
3457
|
-
return fe || (fe = 1, (function(r,
|
|
3458
|
-
(function(x, e,
|
|
3459
|
-
r.exports = e(U(),
|
|
3460
|
-
})(
|
|
3457
|
+
return fe || (fe = 1, (function(r, d) {
|
|
3458
|
+
(function(x, e, u) {
|
|
3459
|
+
r.exports = e(U(), a0(), n0(), t0(), K());
|
|
3460
|
+
})(nx, function(x) {
|
|
3461
3461
|
return (function() {
|
|
3462
|
-
var e = x,
|
|
3462
|
+
var e = x, u = e.lib, v = u.BlockCipher, g = e.algo, p = [], C = [], t = [], a = [], A = [], n = [], l = [], c = [], h = [], f = [];
|
|
3463
3463
|
(function() {
|
|
3464
3464
|
for (var i = [], s = 0; s < 256; s++)
|
|
3465
3465
|
s < 128 ? i[s] = s << 1 : i[s] = s << 1 ^ 283;
|
|
3466
3466
|
for (var F = 0, D = 0, s = 0; s < 256; s++) {
|
|
3467
|
-
var
|
|
3468
|
-
|
|
3469
|
-
var w = i[F], z = i[w], B = i[z],
|
|
3470
|
-
t[F] =
|
|
3471
|
-
var
|
|
3472
|
-
|
|
3467
|
+
var _ = D ^ D << 1 ^ D << 2 ^ D << 3 ^ D << 4;
|
|
3468
|
+
_ = _ >>> 8 ^ _ & 255 ^ 99, p[F] = _, C[_] = F;
|
|
3469
|
+
var w = i[F], z = i[w], B = i[z], m = i[_] * 257 ^ _ * 16843008;
|
|
3470
|
+
t[F] = m << 24 | m >>> 8, a[F] = m << 16 | m >>> 16, A[F] = m << 8 | m >>> 24, n[F] = m;
|
|
3471
|
+
var m = B * 16843009 ^ z * 65537 ^ w * 257 ^ F * 16843008;
|
|
3472
|
+
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;
|
|
3473
3473
|
}
|
|
3474
3474
|
})();
|
|
3475
3475
|
var E = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], o = g.AES = v.extend({
|
|
3476
3476
|
_doReset: function() {
|
|
3477
3477
|
var i;
|
|
3478
3478
|
if (!(this._nRounds && this._keyPriorReset === this._key)) {
|
|
3479
|
-
for (var s = this._keyPriorReset = this._key, F = s.words, D = s.sigBytes / 4,
|
|
3479
|
+
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++)
|
|
3480
3480
|
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);
|
|
3481
|
-
for (var
|
|
3481
|
+
for (var m = this._invKeySchedule = [], P = 0; P < w; P++) {
|
|
3482
3482
|
var B = w - P;
|
|
3483
3483
|
if (P % 4)
|
|
3484
3484
|
var i = z[B];
|
|
3485
3485
|
else
|
|
3486
3486
|
var i = z[B - 4];
|
|
3487
|
-
P < 4 || B <= 4 ?
|
|
3487
|
+
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]];
|
|
3488
3488
|
}
|
|
3489
3489
|
}
|
|
3490
3490
|
},
|
|
3491
3491
|
encryptBlock: function(i, s) {
|
|
3492
|
-
this._doCryptBlock(i, s, this._keySchedule, t,
|
|
3492
|
+
this._doCryptBlock(i, s, this._keySchedule, t, a, A, n, p);
|
|
3493
3493
|
},
|
|
3494
3494
|
decryptBlock: function(i, s) {
|
|
3495
3495
|
var F = i[s + 1];
|
|
3496
|
-
i[s + 1] = i[s + 3], i[s + 3] = F, this._doCryptBlock(i, s, this._invKeySchedule,
|
|
3496
|
+
i[s + 1] = i[s + 3], i[s + 3] = F, this._doCryptBlock(i, s, this._invKeySchedule, l, c, h, f, C);
|
|
3497
3497
|
var F = i[s + 1];
|
|
3498
3498
|
i[s + 1] = i[s + 3], i[s + 3] = F;
|
|
3499
3499
|
},
|
|
3500
|
-
_doCryptBlock: function(i, s, F, D,
|
|
3501
|
-
for (var
|
|
3502
|
-
var
|
|
3503
|
-
P =
|
|
3500
|
+
_doCryptBlock: function(i, s, F, D, _, w, z, B) {
|
|
3501
|
+
for (var m = this._nRounds, P = i[s] ^ F[0], H = i[s + 1] ^ F[1], q = i[s + 2] ^ F[2], L = i[s + 3] ^ F[3], y = 4, $ = 1; $ < m; $++) {
|
|
3502
|
+
var W = D[P >>> 24] ^ _[H >>> 16 & 255] ^ w[q >>> 8 & 255] ^ z[L & 255] ^ F[y++], O = D[H >>> 24] ^ _[q >>> 16 & 255] ^ w[L >>> 8 & 255] ^ z[P & 255] ^ F[y++], I = D[q >>> 24] ^ _[L >>> 16 & 255] ^ w[P >>> 8 & 255] ^ z[H & 255] ^ F[y++], b = D[L >>> 24] ^ _[P >>> 16 & 255] ^ w[H >>> 8 & 255] ^ z[q & 255] ^ F[y++];
|
|
3503
|
+
P = W, H = O, q = I, L = b;
|
|
3504
3504
|
}
|
|
3505
|
-
var
|
|
3506
|
-
i[s] =
|
|
3505
|
+
var W = (B[P >>> 24] << 24 | B[H >>> 16 & 255] << 16 | B[q >>> 8 & 255] << 8 | B[L & 255]) ^ F[y++], O = (B[H >>> 24] << 24 | B[q >>> 16 & 255] << 16 | B[L >>> 8 & 255] << 8 | B[P & 255]) ^ F[y++], I = (B[q >>> 24] << 24 | B[L >>> 16 & 255] << 16 | B[P >>> 8 & 255] << 8 | B[H & 255]) ^ F[y++], b = (B[L >>> 24] << 24 | B[P >>> 16 & 255] << 16 | B[H >>> 8 & 255] << 8 | B[q & 255]) ^ F[y++];
|
|
3506
|
+
i[s] = W, i[s + 1] = O, i[s + 2] = I, i[s + 3] = b;
|
|
3507
3507
|
},
|
|
3508
3508
|
keySize: 256 / 32
|
|
3509
3509
|
});
|
|
@@ -3512,14 +3512,14 @@ function ox() {
|
|
|
3512
3512
|
});
|
|
3513
3513
|
})(rr)), rr.exports;
|
|
3514
3514
|
}
|
|
3515
|
-
var er = { exports: {} }, ix = er.exports,
|
|
3515
|
+
var er = { exports: {} }, ix = er.exports, ue;
|
|
3516
3516
|
function sx() {
|
|
3517
|
-
return
|
|
3518
|
-
(function(x, e,
|
|
3519
|
-
r.exports = e(U(),
|
|
3517
|
+
return ue || (ue = 1, (function(r, d) {
|
|
3518
|
+
(function(x, e, u) {
|
|
3519
|
+
r.exports = e(U(), a0(), n0(), t0(), K());
|
|
3520
3520
|
})(ix, function(x) {
|
|
3521
3521
|
return (function() {
|
|
3522
|
-
var e = x,
|
|
3522
|
+
var e = x, u = e.lib, v = u.WordArray, g = u.BlockCipher, p = e.algo, C = [
|
|
3523
3523
|
57,
|
|
3524
3524
|
49,
|
|
3525
3525
|
41,
|
|
@@ -3625,7 +3625,7 @@ function sx() {
|
|
|
3625
3625
|
36,
|
|
3626
3626
|
29,
|
|
3627
3627
|
32
|
|
3628
|
-
],
|
|
3628
|
+
], a = [1, 2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 23, 25, 27, 28], A = [
|
|
3629
3629
|
{
|
|
3630
3630
|
0: 8421888,
|
|
3631
3631
|
268435456: 32768,
|
|
@@ -4154,7 +4154,7 @@ function sx() {
|
|
|
4154
4154
|
2147483678: 131104,
|
|
4155
4155
|
2147483679: 134350848
|
|
4156
4156
|
}
|
|
4157
|
-
],
|
|
4157
|
+
], n = [
|
|
4158
4158
|
4160749569,
|
|
4159
4159
|
528482304,
|
|
4160
4160
|
33030144,
|
|
@@ -4163,14 +4163,14 @@ function sx() {
|
|
|
4163
4163
|
8064,
|
|
4164
4164
|
504,
|
|
4165
4165
|
2147483679
|
|
4166
|
-
],
|
|
4166
|
+
], l = p.DES = g.extend({
|
|
4167
4167
|
_doReset: function() {
|
|
4168
4168
|
for (var E = this._key, o = E.words, i = [], s = 0; s < 56; s++) {
|
|
4169
4169
|
var F = C[s] - 1;
|
|
4170
4170
|
i[s] = o[F >>> 5] >>> 31 - F % 32 & 1;
|
|
4171
4171
|
}
|
|
4172
|
-
for (var D = this._subKeys = [],
|
|
4173
|
-
for (var w = D[
|
|
4172
|
+
for (var D = this._subKeys = [], _ = 0; _ < 16; _++) {
|
|
4173
|
+
for (var w = D[_] = [], z = a[_], s = 0; s < 24; s++)
|
|
4174
4174
|
w[s / 6 | 0] |= i[(t[s] - 1 + z) % 28] << 31 - s % 6, w[4 + (s / 6 | 0)] |= i[28 + (t[s + 24] - 1 + z) % 28] << 31 - s % 6;
|
|
4175
4175
|
w[0] = w[0] << 1 | w[0] >>> 31;
|
|
4176
4176
|
for (var s = 1; s < 7; s++)
|
|
@@ -4189,9 +4189,9 @@ function sx() {
|
|
|
4189
4189
|
_doCryptBlock: function(E, o, i) {
|
|
4190
4190
|
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);
|
|
4191
4191
|
for (var s = 0; s < 16; s++) {
|
|
4192
|
-
for (var F = i[s], D = this._lBlock,
|
|
4193
|
-
w |= A[z][((
|
|
4194
|
-
this._lBlock =
|
|
4192
|
+
for (var F = i[s], D = this._lBlock, _ = this._rBlock, w = 0, z = 0; z < 8; z++)
|
|
4193
|
+
w |= A[z][((_ ^ F[z]) & n[z]) >>> 0];
|
|
4194
|
+
this._lBlock = _, this._rBlock = D ^ w;
|
|
4195
4195
|
}
|
|
4196
4196
|
var B = this._lBlock;
|
|
4197
4197
|
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;
|
|
@@ -4208,14 +4208,14 @@ function sx() {
|
|
|
4208
4208
|
var i = (this._rBlock >>> E ^ this._lBlock) & o;
|
|
4209
4209
|
this._lBlock ^= i, this._rBlock ^= i << E;
|
|
4210
4210
|
}
|
|
4211
|
-
e.DES = g._createHelper(
|
|
4211
|
+
e.DES = g._createHelper(l);
|
|
4212
4212
|
var f = p.TripleDES = g.extend({
|
|
4213
4213
|
_doReset: function() {
|
|
4214
4214
|
var E = this._key, o = E.words;
|
|
4215
4215
|
if (o.length !== 2 && o.length !== 4 && o.length < 6)
|
|
4216
4216
|
throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");
|
|
4217
4217
|
var i = o.slice(0, 2), s = o.length < 4 ? o.slice(0, 2) : o.slice(2, 4), F = o.length < 6 ? o.slice(0, 2) : o.slice(4, 6);
|
|
4218
|
-
this._des1 =
|
|
4218
|
+
this._des1 = l.createEncryptor(v.create(i)), this._des2 = l.createEncryptor(v.create(s)), this._des3 = l.createEncryptor(v.create(F));
|
|
4219
4219
|
},
|
|
4220
4220
|
encryptBlock: function(E, o) {
|
|
4221
4221
|
this._des1.encryptBlock(E, o), this._des2.decryptBlock(E, o), this._des3.encryptBlock(E, o);
|
|
@@ -4232,38 +4232,38 @@ function sx() {
|
|
|
4232
4232
|
});
|
|
4233
4233
|
})(er)), er.exports;
|
|
4234
4234
|
}
|
|
4235
|
-
var tr = { exports: {} }, cx = tr.exports,
|
|
4235
|
+
var tr = { exports: {} }, cx = tr.exports, le;
|
|
4236
4236
|
function fx() {
|
|
4237
|
-
return
|
|
4238
|
-
(function(x, e,
|
|
4239
|
-
r.exports = e(U(),
|
|
4237
|
+
return le || (le = 1, (function(r, d) {
|
|
4238
|
+
(function(x, e, u) {
|
|
4239
|
+
r.exports = e(U(), a0(), n0(), t0(), K());
|
|
4240
4240
|
})(cx, function(x) {
|
|
4241
4241
|
return (function() {
|
|
4242
|
-
var e = x,
|
|
4242
|
+
var e = x, u = e.lib, v = u.StreamCipher, g = e.algo, p = g.RC4 = v.extend({
|
|
4243
4243
|
_doReset: function() {
|
|
4244
|
-
for (var
|
|
4245
|
-
|
|
4244
|
+
for (var a = this._key, A = a.words, n = a.sigBytes, l = this._S = [], c = 0; c < 256; c++)
|
|
4245
|
+
l[c] = c;
|
|
4246
4246
|
for (var c = 0, h = 0; c < 256; c++) {
|
|
4247
|
-
var f = c %
|
|
4248
|
-
h = (h +
|
|
4249
|
-
var o =
|
|
4250
|
-
|
|
4247
|
+
var f = c % n, E = A[f >>> 2] >>> 24 - f % 4 * 8 & 255;
|
|
4248
|
+
h = (h + l[c] + E) % 256;
|
|
4249
|
+
var o = l[c];
|
|
4250
|
+
l[c] = l[h], l[h] = o;
|
|
4251
4251
|
}
|
|
4252
4252
|
this._i = this._j = 0;
|
|
4253
4253
|
},
|
|
4254
|
-
_doProcessBlock: function(
|
|
4255
|
-
|
|
4254
|
+
_doProcessBlock: function(a, A) {
|
|
4255
|
+
a[A] ^= C.call(this);
|
|
4256
4256
|
},
|
|
4257
4257
|
keySize: 256 / 32,
|
|
4258
4258
|
ivSize: 0
|
|
4259
4259
|
});
|
|
4260
4260
|
function C() {
|
|
4261
|
-
for (var
|
|
4262
|
-
A = (A + 1) % 256,
|
|
4263
|
-
var h =
|
|
4264
|
-
|
|
4261
|
+
for (var a = this._S, A = this._i, n = this._j, l = 0, c = 0; c < 4; c++) {
|
|
4262
|
+
A = (A + 1) % 256, n = (n + a[A]) % 256;
|
|
4263
|
+
var h = a[A];
|
|
4264
|
+
a[A] = a[n], a[n] = h, l |= a[(a[A] + a[n]) % 256] << 24 - c * 8;
|
|
4265
4265
|
}
|
|
4266
|
-
return this._i = A, this._j =
|
|
4266
|
+
return this._i = A, this._j = n, l;
|
|
4267
4267
|
}
|
|
4268
4268
|
e.RC4 = v._createHelper(p);
|
|
4269
4269
|
var t = g.RC4Drop = p.extend({
|
|
@@ -4277,7 +4277,7 @@ function fx() {
|
|
|
4277
4277
|
}),
|
|
4278
4278
|
_doReset: function() {
|
|
4279
4279
|
p._doReset.call(this);
|
|
4280
|
-
for (var
|
|
4280
|
+
for (var a = this.cfg.drop; a > 0; a--)
|
|
4281
4281
|
C.call(this);
|
|
4282
4282
|
}
|
|
4283
4283
|
});
|
|
@@ -4286,144 +4286,144 @@ function fx() {
|
|
|
4286
4286
|
});
|
|
4287
4287
|
})(tr)), tr.exports;
|
|
4288
4288
|
}
|
|
4289
|
-
var xr = { exports: {} },
|
|
4290
|
-
function
|
|
4291
|
-
return
|
|
4292
|
-
(function(x, e,
|
|
4293
|
-
r.exports = e(U(),
|
|
4294
|
-
})(
|
|
4289
|
+
var xr = { exports: {} }, ux = xr.exports, de;
|
|
4290
|
+
function lx() {
|
|
4291
|
+
return de || (de = 1, (function(r, d) {
|
|
4292
|
+
(function(x, e, u) {
|
|
4293
|
+
r.exports = e(U(), a0(), n0(), t0(), K());
|
|
4294
|
+
})(ux, function(x) {
|
|
4295
4295
|
return (function() {
|
|
4296
|
-
var e = x,
|
|
4296
|
+
var e = x, u = e.lib, v = u.StreamCipher, g = e.algo, p = [], C = [], t = [], a = g.Rabbit = v.extend({
|
|
4297
4297
|
_doReset: function() {
|
|
4298
|
-
for (var
|
|
4299
|
-
|
|
4298
|
+
for (var n = this._key.words, l = this.cfg.iv, c = 0; c < 4; c++)
|
|
4299
|
+
n[c] = (n[c] << 8 | n[c] >>> 24) & 16711935 | (n[c] << 24 | n[c] >>> 8) & 4278255360;
|
|
4300
4300
|
var h = this._X = [
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4301
|
+
n[0],
|
|
4302
|
+
n[3] << 16 | n[2] >>> 16,
|
|
4303
|
+
n[1],
|
|
4304
|
+
n[0] << 16 | n[3] >>> 16,
|
|
4305
|
+
n[2],
|
|
4306
|
+
n[1] << 16 | n[0] >>> 16,
|
|
4307
|
+
n[3],
|
|
4308
|
+
n[2] << 16 | n[1] >>> 16
|
|
4309
4309
|
], f = this._C = [
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
4310
|
+
n[2] << 16 | n[2] >>> 16,
|
|
4311
|
+
n[0] & 4294901760 | n[1] & 65535,
|
|
4312
|
+
n[3] << 16 | n[3] >>> 16,
|
|
4313
|
+
n[1] & 4294901760 | n[2] & 65535,
|
|
4314
|
+
n[0] << 16 | n[0] >>> 16,
|
|
4315
|
+
n[2] & 4294901760 | n[3] & 65535,
|
|
4316
|
+
n[1] << 16 | n[1] >>> 16,
|
|
4317
|
+
n[3] & 4294901760 | n[0] & 65535
|
|
4318
4318
|
];
|
|
4319
4319
|
this._b = 0;
|
|
4320
4320
|
for (var c = 0; c < 4; c++)
|
|
4321
4321
|
A.call(this);
|
|
4322
4322
|
for (var c = 0; c < 8; c++)
|
|
4323
4323
|
f[c] ^= h[c + 4 & 7];
|
|
4324
|
-
if (
|
|
4325
|
-
var E =
|
|
4326
|
-
f[0] ^= s, f[1] ^= D, f[2] ^= F, f[3] ^=
|
|
4324
|
+
if (l) {
|
|
4325
|
+
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;
|
|
4326
|
+
f[0] ^= s, f[1] ^= D, f[2] ^= F, f[3] ^= _, f[4] ^= s, f[5] ^= D, f[6] ^= F, f[7] ^= _;
|
|
4327
4327
|
for (var c = 0; c < 4; c++)
|
|
4328
4328
|
A.call(this);
|
|
4329
4329
|
}
|
|
4330
4330
|
},
|
|
4331
|
-
_doProcessBlock: function(
|
|
4331
|
+
_doProcessBlock: function(n, l) {
|
|
4332
4332
|
var c = this._X;
|
|
4333
4333
|
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;
|
|
4334
4334
|
for (var h = 0; h < 4; h++)
|
|
4335
|
-
p[h] = (p[h] << 8 | p[h] >>> 24) & 16711935 | (p[h] << 24 | p[h] >>> 8) & 4278255360,
|
|
4335
|
+
p[h] = (p[h] << 8 | p[h] >>> 24) & 16711935 | (p[h] << 24 | p[h] >>> 8) & 4278255360, n[l + h] ^= p[h];
|
|
4336
4336
|
},
|
|
4337
4337
|
blockSize: 128 / 32,
|
|
4338
4338
|
ivSize: 64 / 32
|
|
4339
4339
|
});
|
|
4340
4340
|
function A() {
|
|
4341
|
-
for (var
|
|
4342
|
-
C[c] =
|
|
4343
|
-
|
|
4341
|
+
for (var n = this._X, l = this._C, c = 0; c < 8; c++)
|
|
4342
|
+
C[c] = l[c];
|
|
4343
|
+
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;
|
|
4344
4344
|
for (var c = 0; c < 8; c++) {
|
|
4345
|
-
var h =
|
|
4345
|
+
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);
|
|
4346
4346
|
t[c] = o ^ i;
|
|
4347
4347
|
}
|
|
4348
|
-
|
|
4348
|
+
n[0] = t[0] + (t[7] << 16 | t[7] >>> 16) + (t[6] << 16 | t[6] >>> 16) | 0, n[1] = t[1] + (t[0] << 8 | t[0] >>> 24) + t[7] | 0, n[2] = t[2] + (t[1] << 16 | t[1] >>> 16) + (t[0] << 16 | t[0] >>> 16) | 0, n[3] = t[3] + (t[2] << 8 | t[2] >>> 24) + t[1] | 0, n[4] = t[4] + (t[3] << 16 | t[3] >>> 16) + (t[2] << 16 | t[2] >>> 16) | 0, n[5] = t[5] + (t[4] << 8 | t[4] >>> 24) + t[3] | 0, n[6] = t[6] + (t[5] << 16 | t[5] >>> 16) + (t[4] << 16 | t[4] >>> 16) | 0, n[7] = t[7] + (t[6] << 8 | t[6] >>> 24) + t[5] | 0;
|
|
4349
4349
|
}
|
|
4350
|
-
e.Rabbit = v._createHelper(
|
|
4350
|
+
e.Rabbit = v._createHelper(a);
|
|
4351
4351
|
})(), x.Rabbit;
|
|
4352
4352
|
});
|
|
4353
4353
|
})(xr)), xr.exports;
|
|
4354
4354
|
}
|
|
4355
|
-
var
|
|
4355
|
+
var ar = { exports: {} }, dx = ar.exports, he;
|
|
4356
4356
|
function hx() {
|
|
4357
|
-
return he || (he = 1, (function(r,
|
|
4358
|
-
(function(x, e,
|
|
4359
|
-
r.exports = e(U(),
|
|
4360
|
-
})(
|
|
4357
|
+
return he || (he = 1, (function(r, d) {
|
|
4358
|
+
(function(x, e, u) {
|
|
4359
|
+
r.exports = e(U(), a0(), n0(), t0(), K());
|
|
4360
|
+
})(dx, function(x) {
|
|
4361
4361
|
return (function() {
|
|
4362
|
-
var e = x,
|
|
4362
|
+
var e = x, u = e.lib, v = u.StreamCipher, g = e.algo, p = [], C = [], t = [], a = g.RabbitLegacy = v.extend({
|
|
4363
4363
|
_doReset: function() {
|
|
4364
|
-
var
|
|
4365
|
-
|
|
4366
|
-
|
|
4367
|
-
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
|
|
4371
|
-
|
|
4372
|
-
|
|
4364
|
+
var n = this._key.words, l = this.cfg.iv, c = this._X = [
|
|
4365
|
+
n[0],
|
|
4366
|
+
n[3] << 16 | n[2] >>> 16,
|
|
4367
|
+
n[1],
|
|
4368
|
+
n[0] << 16 | n[3] >>> 16,
|
|
4369
|
+
n[2],
|
|
4370
|
+
n[1] << 16 | n[0] >>> 16,
|
|
4371
|
+
n[3],
|
|
4372
|
+
n[2] << 16 | n[1] >>> 16
|
|
4373
4373
|
], h = this._C = [
|
|
4374
|
-
|
|
4375
|
-
|
|
4376
|
-
|
|
4377
|
-
|
|
4378
|
-
|
|
4379
|
-
|
|
4380
|
-
|
|
4381
|
-
|
|
4374
|
+
n[2] << 16 | n[2] >>> 16,
|
|
4375
|
+
n[0] & 4294901760 | n[1] & 65535,
|
|
4376
|
+
n[3] << 16 | n[3] >>> 16,
|
|
4377
|
+
n[1] & 4294901760 | n[2] & 65535,
|
|
4378
|
+
n[0] << 16 | n[0] >>> 16,
|
|
4379
|
+
n[2] & 4294901760 | n[3] & 65535,
|
|
4380
|
+
n[1] << 16 | n[1] >>> 16,
|
|
4381
|
+
n[3] & 4294901760 | n[0] & 65535
|
|
4382
4382
|
];
|
|
4383
4383
|
this._b = 0;
|
|
4384
4384
|
for (var f = 0; f < 4; f++)
|
|
4385
4385
|
A.call(this);
|
|
4386
4386
|
for (var f = 0; f < 8; f++)
|
|
4387
4387
|
h[f] ^= c[f + 4 & 7];
|
|
4388
|
-
if (
|
|
4389
|
-
var E =
|
|
4390
|
-
h[0] ^= s, h[1] ^= D, h[2] ^= F, h[3] ^=
|
|
4388
|
+
if (l) {
|
|
4389
|
+
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;
|
|
4390
|
+
h[0] ^= s, h[1] ^= D, h[2] ^= F, h[3] ^= _, h[4] ^= s, h[5] ^= D, h[6] ^= F, h[7] ^= _;
|
|
4391
4391
|
for (var f = 0; f < 4; f++)
|
|
4392
4392
|
A.call(this);
|
|
4393
4393
|
}
|
|
4394
4394
|
},
|
|
4395
|
-
_doProcessBlock: function(
|
|
4395
|
+
_doProcessBlock: function(n, l) {
|
|
4396
4396
|
var c = this._X;
|
|
4397
4397
|
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;
|
|
4398
4398
|
for (var h = 0; h < 4; h++)
|
|
4399
|
-
p[h] = (p[h] << 8 | p[h] >>> 24) & 16711935 | (p[h] << 24 | p[h] >>> 8) & 4278255360,
|
|
4399
|
+
p[h] = (p[h] << 8 | p[h] >>> 24) & 16711935 | (p[h] << 24 | p[h] >>> 8) & 4278255360, n[l + h] ^= p[h];
|
|
4400
4400
|
},
|
|
4401
4401
|
blockSize: 128 / 32,
|
|
4402
4402
|
ivSize: 64 / 32
|
|
4403
4403
|
});
|
|
4404
4404
|
function A() {
|
|
4405
|
-
for (var
|
|
4406
|
-
C[c] =
|
|
4407
|
-
|
|
4405
|
+
for (var n = this._X, l = this._C, c = 0; c < 8; c++)
|
|
4406
|
+
C[c] = l[c];
|
|
4407
|
+
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;
|
|
4408
4408
|
for (var c = 0; c < 8; c++) {
|
|
4409
|
-
var h =
|
|
4409
|
+
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);
|
|
4410
4410
|
t[c] = o ^ i;
|
|
4411
4411
|
}
|
|
4412
|
-
|
|
4412
|
+
n[0] = t[0] + (t[7] << 16 | t[7] >>> 16) + (t[6] << 16 | t[6] >>> 16) | 0, n[1] = t[1] + (t[0] << 8 | t[0] >>> 24) + t[7] | 0, n[2] = t[2] + (t[1] << 16 | t[1] >>> 16) + (t[0] << 16 | t[0] >>> 16) | 0, n[3] = t[3] + (t[2] << 8 | t[2] >>> 24) + t[1] | 0, n[4] = t[4] + (t[3] << 16 | t[3] >>> 16) + (t[2] << 16 | t[2] >>> 16) | 0, n[5] = t[5] + (t[4] << 8 | t[4] >>> 24) + t[3] | 0, n[6] = t[6] + (t[5] << 16 | t[5] >>> 16) + (t[4] << 16 | t[4] >>> 16) | 0, n[7] = t[7] + (t[6] << 8 | t[6] >>> 24) + t[5] | 0;
|
|
4413
4413
|
}
|
|
4414
|
-
e.RabbitLegacy = v._createHelper(
|
|
4414
|
+
e.RabbitLegacy = v._createHelper(a);
|
|
4415
4415
|
})(), x.RabbitLegacy;
|
|
4416
4416
|
});
|
|
4417
|
-
})(
|
|
4417
|
+
})(ar)), ar.exports;
|
|
4418
4418
|
}
|
|
4419
|
-
var
|
|
4419
|
+
var nr = { exports: {} }, vx = nr.exports, ve;
|
|
4420
4420
|
function px() {
|
|
4421
|
-
return ve || (ve = 1, (function(r,
|
|
4422
|
-
(function(x, e,
|
|
4423
|
-
r.exports = e(U(),
|
|
4421
|
+
return ve || (ve = 1, (function(r, d) {
|
|
4422
|
+
(function(x, e, u) {
|
|
4423
|
+
r.exports = e(U(), a0(), n0(), t0(), K());
|
|
4424
4424
|
})(vx, function(x) {
|
|
4425
4425
|
return (function() {
|
|
4426
|
-
var e = x,
|
|
4426
|
+
var e = x, u = e.lib, v = u.BlockCipher, g = e.algo;
|
|
4427
4427
|
const p = 16, C = [
|
|
4428
4428
|
608135816,
|
|
4429
4429
|
2242054355,
|
|
@@ -5477,7 +5477,7 @@ function px() {
|
|
|
5477
5477
|
985887462
|
|
5478
5478
|
]
|
|
5479
5479
|
];
|
|
5480
|
-
var
|
|
5480
|
+
var a = {
|
|
5481
5481
|
pbox: [],
|
|
5482
5482
|
sbox: []
|
|
5483
5483
|
};
|
|
@@ -5485,48 +5485,48 @@ function px() {
|
|
|
5485
5485
|
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];
|
|
5486
5486
|
return D = D ^ f.sbox[2][s], D = D + f.sbox[3][F], D;
|
|
5487
5487
|
}
|
|
5488
|
-
function
|
|
5488
|
+
function n(f, E, o) {
|
|
5489
5489
|
let i = E, s = o, F;
|
|
5490
5490
|
for (let D = 0; D < p; ++D)
|
|
5491
5491
|
i = i ^ f.pbox[D], s = A(f, i) ^ s, F = i, i = s, s = F;
|
|
5492
5492
|
return F = i, i = s, s = F, s = s ^ f.pbox[p], i = i ^ f.pbox[p + 1], { left: i, right: s };
|
|
5493
5493
|
}
|
|
5494
|
-
function
|
|
5494
|
+
function l(f, E, o) {
|
|
5495
5495
|
let i = E, s = o, F;
|
|
5496
5496
|
for (let D = p + 1; D > 1; --D)
|
|
5497
5497
|
i = i ^ f.pbox[D], s = A(f, i) ^ s, F = i, i = s, s = F;
|
|
5498
5498
|
return F = i, i = s, s = F, s = s ^ f.pbox[1], i = i ^ f.pbox[0], { left: i, right: s };
|
|
5499
5499
|
}
|
|
5500
5500
|
function c(f, E, o) {
|
|
5501
|
-
for (let
|
|
5502
|
-
f.sbox[
|
|
5501
|
+
for (let _ = 0; _ < 4; _++) {
|
|
5502
|
+
f.sbox[_] = [];
|
|
5503
5503
|
for (let w = 0; w < 256; w++)
|
|
5504
|
-
f.sbox[
|
|
5504
|
+
f.sbox[_][w] = t[_][w];
|
|
5505
5505
|
}
|
|
5506
5506
|
let i = 0;
|
|
5507
|
-
for (let
|
|
5508
|
-
f.pbox[
|
|
5507
|
+
for (let _ = 0; _ < p + 2; _++)
|
|
5508
|
+
f.pbox[_] = C[_] ^ E[i], i++, i >= o && (i = 0);
|
|
5509
5509
|
let s = 0, F = 0, D = 0;
|
|
5510
|
-
for (let
|
|
5511
|
-
D =
|
|
5512
|
-
for (let
|
|
5510
|
+
for (let _ = 0; _ < p + 2; _ += 2)
|
|
5511
|
+
D = n(f, s, F), s = D.left, F = D.right, f.pbox[_] = s, f.pbox[_ + 1] = F;
|
|
5512
|
+
for (let _ = 0; _ < 4; _++)
|
|
5513
5513
|
for (let w = 0; w < 256; w += 2)
|
|
5514
|
-
D =
|
|
5514
|
+
D = n(f, s, F), s = D.left, F = D.right, f.sbox[_][w] = s, f.sbox[_][w + 1] = F;
|
|
5515
5515
|
return !0;
|
|
5516
5516
|
}
|
|
5517
5517
|
var h = g.Blowfish = v.extend({
|
|
5518
5518
|
_doReset: function() {
|
|
5519
5519
|
if (this._keyPriorReset !== this._key) {
|
|
5520
5520
|
var f = this._keyPriorReset = this._key, E = f.words, o = f.sigBytes / 4;
|
|
5521
|
-
c(
|
|
5521
|
+
c(a, E, o);
|
|
5522
5522
|
}
|
|
5523
5523
|
},
|
|
5524
5524
|
encryptBlock: function(f, E) {
|
|
5525
|
-
var o = a
|
|
5525
|
+
var o = n(a, f[E], f[E + 1]);
|
|
5526
5526
|
f[E] = o.left, f[E + 1] = o.right;
|
|
5527
5527
|
},
|
|
5528
5528
|
decryptBlock: function(f, E) {
|
|
5529
|
-
var o =
|
|
5529
|
+
var o = l(a, f[E], f[E + 1]);
|
|
5530
5530
|
f[E] = o.left, f[E + 1] = o.right;
|
|
5531
5531
|
},
|
|
5532
5532
|
blockSize: 64 / 32,
|
|
@@ -5536,47 +5536,47 @@ function px() {
|
|
|
5536
5536
|
e.Blowfish = v._createHelper(h);
|
|
5537
5537
|
})(), x.Blowfish;
|
|
5538
5538
|
});
|
|
5539
|
-
})(
|
|
5539
|
+
})(nr)), nr.exports;
|
|
5540
5540
|
}
|
|
5541
5541
|
var Bx = b0.exports, pe;
|
|
5542
5542
|
function Cx() {
|
|
5543
|
-
return pe || (pe = 1, (function(r,
|
|
5544
|
-
(function(x, e,
|
|
5545
|
-
r.exports = e(U(), sr(), ht(), pt(),
|
|
5543
|
+
return pe || (pe = 1, (function(r, d) {
|
|
5544
|
+
(function(x, e, u) {
|
|
5545
|
+
r.exports = e(U(), sr(), ht(), pt(), a0(), Et(), n0(), be(), Cr(), bt(), me(), yt(), kt(), Ht(), Er(), $t(), t0(), K(), Ot(), Lt(), Mt(), Ut(), Kt(), Gt(), Yt(), Vt(), rx(), tx(), ax(), ox(), sx(), fx(), lx(), hx(), px());
|
|
5546
5546
|
})(Bx, function(x) {
|
|
5547
5547
|
return x;
|
|
5548
5548
|
});
|
|
5549
5549
|
})(b0)), b0.exports;
|
|
5550
5550
|
}
|
|
5551
5551
|
Cx();
|
|
5552
|
-
let
|
|
5552
|
+
let _e = null, ye = null, we = null, ke = null;
|
|
5553
5553
|
Math.random().toString(36).substring(7);
|
|
5554
5554
|
function Ex(r) {
|
|
5555
|
-
|
|
5555
|
+
_e = r.token, ye = r.apiUrl, we = r.deviceId, ke = r.domain;
|
|
5556
5556
|
}
|
|
5557
5557
|
function Ax() {
|
|
5558
5558
|
return {
|
|
5559
|
-
token:
|
|
5559
|
+
token: _e,
|
|
5560
5560
|
apiUrl: ye,
|
|
5561
5561
|
deviceId: we,
|
|
5562
5562
|
domain: ke
|
|
5563
5563
|
};
|
|
5564
5564
|
}
|
|
5565
5565
|
function Fx(r) {
|
|
5566
|
-
return `/sdk-workers/${(r.split("/").pop() || r).replace(/\.ts$/, ".js")}?v=1.1.
|
|
5566
|
+
return `/sdk-workers/${(r.split("/").pop() || r).replace(/\.ts$/, ".js")}?v=1.1.129`;
|
|
5567
5567
|
}
|
|
5568
|
-
function Dx(r,
|
|
5568
|
+
function Dx(r, d) {
|
|
5569
5569
|
const x = Fx(r);
|
|
5570
|
-
return new Worker(x, { type: "module", ...
|
|
5570
|
+
return new Worker(x, { type: "module", ...d });
|
|
5571
5571
|
}
|
|
5572
5572
|
const Be = /* @__PURE__ */ new Map(), hr = /* @__PURE__ */ new Map();
|
|
5573
5573
|
let gx = 0;
|
|
5574
5574
|
function bx(r) {
|
|
5575
|
-
const
|
|
5576
|
-
if (
|
|
5575
|
+
const d = Be.get(r);
|
|
5576
|
+
if (d) return d;
|
|
5577
5577
|
const x = Dx("./deform.worker.ts");
|
|
5578
|
-
x.onmessage = (
|
|
5579
|
-
const { id: v, imageBitmap: g, error: p, duration: C } =
|
|
5578
|
+
x.onmessage = (u) => {
|
|
5579
|
+
const { id: v, imageBitmap: g, error: p, duration: C } = u.data ?? {}, t = hr.get(v);
|
|
5580
5580
|
if (t) {
|
|
5581
5581
|
if (hr.delete(v), p) {
|
|
5582
5582
|
t.reject(new Error(p));
|
|
@@ -5584,16 +5584,16 @@ function bx(r) {
|
|
|
5584
5584
|
}
|
|
5585
5585
|
t.resolve(g);
|
|
5586
5586
|
}
|
|
5587
|
-
}, x.onerror = (
|
|
5587
|
+
}, x.onerror = (u) => {
|
|
5588
5588
|
};
|
|
5589
5589
|
const e = () => {
|
|
5590
|
-
const
|
|
5591
|
-
return
|
|
5590
|
+
const u = Ax();
|
|
5591
|
+
return u.token ? (x.postMessage({
|
|
5592
5592
|
type: "SET_LICENSE",
|
|
5593
|
-
licenseToken:
|
|
5594
|
-
licenseApiUrl:
|
|
5595
|
-
deviceId:
|
|
5596
|
-
domain:
|
|
5593
|
+
licenseToken: u.token,
|
|
5594
|
+
licenseApiUrl: u.apiUrl,
|
|
5595
|
+
deviceId: u.deviceId,
|
|
5596
|
+
domain: u.domain
|
|
5597
5597
|
}), !0) : !1;
|
|
5598
5598
|
};
|
|
5599
5599
|
return e() || (setTimeout(() => {
|
|
@@ -5602,16 +5602,16 @@ function bx(r) {
|
|
|
5602
5602
|
e();
|
|
5603
5603
|
}, 500)), Be.set(r, x), x;
|
|
5604
5604
|
}
|
|
5605
|
-
function
|
|
5605
|
+
function mx(r) {
|
|
5606
5606
|
return {
|
|
5607
5607
|
name: r.name,
|
|
5608
5608
|
type: r.type,
|
|
5609
5609
|
blendMode: r.blendMode,
|
|
5610
5610
|
transform: Array.isArray(r.transform) ? [...r.transform] : [],
|
|
5611
|
-
meshPoints: Array.isArray(r.meshPoints) ? r.meshPoints.map((
|
|
5612
|
-
x:
|
|
5613
|
-
y:
|
|
5614
|
-
type:
|
|
5611
|
+
meshPoints: Array.isArray(r.meshPoints) ? r.meshPoints.map((d) => ({
|
|
5612
|
+
x: d.x,
|
|
5613
|
+
y: d.y,
|
|
5614
|
+
type: d.type
|
|
5615
5615
|
})) : [],
|
|
5616
5616
|
bounds: r.bounds ? {
|
|
5617
5617
|
width: r.bounds.width,
|
|
@@ -5634,30 +5634,30 @@ function _x(r) {
|
|
|
5634
5634
|
layerOrder: r.layerOrder,
|
|
5635
5635
|
imagePath: r.imagePath,
|
|
5636
5636
|
vectorMask: r.vectorMask ? {
|
|
5637
|
-
paths: r.vectorMask.paths?.map((
|
|
5638
|
-
open:
|
|
5639
|
-
knots:
|
|
5637
|
+
paths: r.vectorMask.paths?.map((d) => ({
|
|
5638
|
+
open: d.open,
|
|
5639
|
+
knots: d.knots?.map((x) => ({
|
|
5640
5640
|
linked: x.linked,
|
|
5641
5641
|
points: [...x.points]
|
|
5642
5642
|
})),
|
|
5643
|
-
fillRule:
|
|
5644
|
-
operation:
|
|
5643
|
+
fillRule: d.fillRule,
|
|
5644
|
+
operation: d.operation
|
|
5645
5645
|
})),
|
|
5646
|
-
points: r.vectorMask.points?.map((
|
|
5647
|
-
x:
|
|
5648
|
-
y:
|
|
5649
|
-
type:
|
|
5646
|
+
points: r.vectorMask.points?.map((d) => ({
|
|
5647
|
+
x: d.x,
|
|
5648
|
+
y: d.y,
|
|
5649
|
+
type: d.type
|
|
5650
5650
|
})),
|
|
5651
5651
|
invert: r.vectorMask.invert,
|
|
5652
5652
|
notLink: r.vectorMask.notLink,
|
|
5653
5653
|
disable: r.vectorMask.disable,
|
|
5654
5654
|
fillStartsWithAllPixels: r.vectorMask.fillStartsWithAllPixels
|
|
5655
5655
|
} : void 0,
|
|
5656
|
-
filterList: r.filterList ? r.filterList.map((
|
|
5657
|
-
type:
|
|
5658
|
-
enabled:
|
|
5659
|
-
filter:
|
|
5660
|
-
puppetShapeList:
|
|
5656
|
+
filterList: r.filterList ? r.filterList.map((d) => ({
|
|
5657
|
+
type: d.type,
|
|
5658
|
+
enabled: d.enabled,
|
|
5659
|
+
filter: d.filter ? {
|
|
5660
|
+
puppetShapeList: d.filter.puppetShapeList?.map((x) => ({
|
|
5661
5661
|
originalVertexArray: x.originalVertexArray.map((e) => ({
|
|
5662
5662
|
x: e.x,
|
|
5663
5663
|
y: e.y
|
|
@@ -5674,33 +5674,33 @@ function _x(r) {
|
|
|
5674
5674
|
clipping: r.clipping
|
|
5675
5675
|
};
|
|
5676
5676
|
}
|
|
5677
|
-
function
|
|
5678
|
-
const
|
|
5677
|
+
function _x(r, d, x, e) {
|
|
5678
|
+
const u = ++gx, v = bx(x);
|
|
5679
5679
|
return performance.now(), (/* @__PURE__ */ new Date()).toISOString(), new Promise((g, p) => {
|
|
5680
|
-
hr.set(
|
|
5680
|
+
hr.set(u, {
|
|
5681
5681
|
resolve: (t) => {
|
|
5682
5682
|
performance.now(), (/* @__PURE__ */ new Date()).toISOString(), g(t);
|
|
5683
5683
|
},
|
|
5684
5684
|
reject: p
|
|
5685
5685
|
});
|
|
5686
|
-
const C =
|
|
5687
|
-
v.postMessage({ id:
|
|
5686
|
+
const C = mx(d);
|
|
5687
|
+
v.postMessage({ id: u, designBitmap: r, layerData: C, canvasSize: e }, [
|
|
5688
5688
|
r
|
|
5689
5689
|
]);
|
|
5690
5690
|
});
|
|
5691
5691
|
}
|
|
5692
|
-
async function yx(r,
|
|
5693
|
-
const g = await
|
|
5692
|
+
async function yx(r, d, x = 0, e, u, v) {
|
|
5693
|
+
const g = await at(r, u, v);
|
|
5694
5694
|
if (!g || g.width === 0 || g.height === 0)
|
|
5695
5695
|
throw new Error("图片无效:尺寸为 0");
|
|
5696
|
-
return await
|
|
5696
|
+
return await _x(g, d, x, e);
|
|
5697
5697
|
}
|
|
5698
|
-
function s0(r,
|
|
5698
|
+
function s0(r, d) {
|
|
5699
5699
|
if (typeof OffscreenCanvas < "u" && typeof document > "u")
|
|
5700
|
-
return new OffscreenCanvas(r,
|
|
5700
|
+
return new OffscreenCanvas(r, d);
|
|
5701
5701
|
if (typeof document < "u") {
|
|
5702
5702
|
const x = document.createElement("canvas");
|
|
5703
|
-
return x.width = r, x.height =
|
|
5703
|
+
return x.width = r, x.height = d, x;
|
|
5704
5704
|
} else
|
|
5705
5705
|
throw new Error("无法创建 canvas:不在 Worker 或主线程环境中");
|
|
5706
5706
|
}
|
|
@@ -5708,18 +5708,18 @@ function C0(r) {
|
|
|
5708
5708
|
return r.getContext("2d");
|
|
5709
5709
|
}
|
|
5710
5710
|
function Ce(r) {
|
|
5711
|
-
const
|
|
5712
|
-
if (!
|
|
5711
|
+
const d = C0(r);
|
|
5712
|
+
if (!d)
|
|
5713
5713
|
throw new Error("无法创建 canvas context");
|
|
5714
|
-
return
|
|
5714
|
+
return d;
|
|
5715
5715
|
}
|
|
5716
5716
|
async function wx(r) {
|
|
5717
5717
|
performance.now();
|
|
5718
5718
|
const {
|
|
5719
|
-
psdJson:
|
|
5719
|
+
psdJson: d,
|
|
5720
5720
|
materialList: x,
|
|
5721
5721
|
fabricScreenshotList: e,
|
|
5722
|
-
width:
|
|
5722
|
+
width: u,
|
|
5723
5723
|
height: v,
|
|
5724
5724
|
baseUrl: g
|
|
5725
5725
|
} = r, p = r.maxImageSize, C = (y) => {
|
|
@@ -5729,29 +5729,29 @@ async function wx(r) {
|
|
|
5729
5729
|
if (!g)
|
|
5730
5730
|
return !y.includes("http") && !y.startsWith("data:") && !y.startsWith("blob:") ? void 0 : y;
|
|
5731
5731
|
try {
|
|
5732
|
-
const
|
|
5733
|
-
return !
|
|
5732
|
+
const W = new URL(y, g).toString();
|
|
5733
|
+
return !W.includes("http") && !W.startsWith("data:") && !W.startsWith("blob:") ? void 0 : W;
|
|
5734
5734
|
} catch {
|
|
5735
5735
|
return;
|
|
5736
5736
|
}
|
|
5737
|
-
}, t = {},
|
|
5737
|
+
}, t = {}, a = /* @__PURE__ */ new Map();
|
|
5738
5738
|
for (const y of x) {
|
|
5739
5739
|
const $ = y.sourceName || y.layerName;
|
|
5740
5740
|
$ && (t[$] = {
|
|
5741
5741
|
url: y.url
|
|
5742
|
-
},
|
|
5742
|
+
}, a.set($, y.url)), y.layerName && y.layerName !== $ && (t[y.layerName] || (t[y.layerName] = {
|
|
5743
5743
|
url: y.url
|
|
5744
|
-
}),
|
|
5744
|
+
}), a.set(y.layerName, y.url));
|
|
5745
5745
|
}
|
|
5746
5746
|
const A = /* @__PURE__ */ new Map();
|
|
5747
5747
|
for (const y of e)
|
|
5748
5748
|
A.set(y.id, y.url);
|
|
5749
|
-
function
|
|
5750
|
-
const
|
|
5749
|
+
function n(y, $) {
|
|
5750
|
+
const W = y.color || (y.name && ["粉", "白", "绿", "红", "蓝", "黄", "黑", "灰"].includes(y.name) ? y.name : $);
|
|
5751
5751
|
if (y.type === "Layer") {
|
|
5752
5752
|
if (y.imagePath) {
|
|
5753
|
-
const O = x.find((
|
|
5754
|
-
const b =
|
|
5753
|
+
const O = x.find((I) => {
|
|
5754
|
+
const b = I.sourceName || I.layerName;
|
|
5755
5755
|
return !b || !y.imagePath ? !1 : b === y.imagePath || b.endsWith(y.imagePath) || y.imagePath.endsWith(b);
|
|
5756
5756
|
});
|
|
5757
5757
|
O && (t[y.imagePath] = {
|
|
@@ -5759,54 +5759,54 @@ async function wx(r) {
|
|
|
5759
5759
|
});
|
|
5760
5760
|
}
|
|
5761
5761
|
if (y.name) {
|
|
5762
|
-
if (
|
|
5763
|
-
const O = `${
|
|
5762
|
+
if (W) {
|
|
5763
|
+
const O = `${W}-${y.name}`, I = x.find((b) => {
|
|
5764
5764
|
const k = b.sourceName || b.layerName;
|
|
5765
|
-
return k ? (k.split("/").pop() || k).replace(/\.(png|jpg|jpeg|gif|webp)$/i, "").startsWith(`${
|
|
5765
|
+
return k ? (k.split("/").pop() || k).replace(/\.(png|jpg|jpeg|gif|webp)$/i, "").startsWith(`${W}-${y.name}`) : !1;
|
|
5766
5766
|
});
|
|
5767
|
-
|
|
5768
|
-
url:
|
|
5767
|
+
I && (t[O] = {
|
|
5768
|
+
url: I.url
|
|
5769
5769
|
});
|
|
5770
5770
|
}
|
|
5771
5771
|
if (y.imagePath && y.name) {
|
|
5772
|
-
const O = y.imagePath.split("/").pop() || y.imagePath,
|
|
5772
|
+
const O = y.imagePath.split("/").pop() || y.imagePath, I = x.find((b) => {
|
|
5773
5773
|
const k = b.sourceName || b.layerName;
|
|
5774
5774
|
return k ? (k.split("/").pop() || k) === O : !1;
|
|
5775
5775
|
});
|
|
5776
|
-
|
|
5777
|
-
url:
|
|
5776
|
+
I && (t[y.imagePath] = {
|
|
5777
|
+
url: I.url
|
|
5778
5778
|
});
|
|
5779
5779
|
}
|
|
5780
5780
|
}
|
|
5781
5781
|
}
|
|
5782
5782
|
if (y.children)
|
|
5783
5783
|
for (const O of y.children)
|
|
5784
|
-
O &&
|
|
5784
|
+
O && n(O, W);
|
|
5785
5785
|
}
|
|
5786
|
-
function
|
|
5787
|
-
const
|
|
5788
|
-
if (y.type === "Group" &&
|
|
5789
|
-
const O = A.get(
|
|
5786
|
+
function l(y, $) {
|
|
5787
|
+
const W = y.id ?? $;
|
|
5788
|
+
if (y.type === "Group" && W && A.has(W)) {
|
|
5789
|
+
const O = A.get(W);
|
|
5790
5790
|
if (y.children) {
|
|
5791
|
-
for (const
|
|
5792
|
-
if (
|
|
5793
|
-
const b =
|
|
5791
|
+
for (const I of y.children)
|
|
5792
|
+
if (I && I.isSmartObject === !0) {
|
|
5793
|
+
const b = I?.name || "";
|
|
5794
5794
|
b && !t[b] && (t[b] = {}), b && (t[b].designImage = O);
|
|
5795
5795
|
}
|
|
5796
5796
|
}
|
|
5797
5797
|
}
|
|
5798
5798
|
if (y.children)
|
|
5799
5799
|
for (const O of y.children)
|
|
5800
|
-
O &&
|
|
5800
|
+
O && l(O, W);
|
|
5801
5801
|
}
|
|
5802
|
-
if (
|
|
5803
|
-
for (const y of
|
|
5804
|
-
y &&
|
|
5805
|
-
if (
|
|
5806
|
-
for (const y of
|
|
5807
|
-
y &&
|
|
5802
|
+
if (d.layerList)
|
|
5803
|
+
for (const y of d.layerList)
|
|
5804
|
+
y && n(y);
|
|
5805
|
+
if (d.layerList)
|
|
5806
|
+
for (const y of d.layerList)
|
|
5807
|
+
y && l(y);
|
|
5808
5808
|
const h = Ke([{
|
|
5809
|
-
psdJson:
|
|
5809
|
+
psdJson: d,
|
|
5810
5810
|
layerExtrasByName: t
|
|
5811
5811
|
}], {
|
|
5812
5812
|
parts: [],
|
|
@@ -5824,45 +5824,45 @@ async function wx(r) {
|
|
|
5824
5824
|
const $ = y.url.split("/").pop() || y.url;
|
|
5825
5825
|
if (t[$])
|
|
5826
5826
|
return t[$];
|
|
5827
|
-
const
|
|
5828
|
-
const
|
|
5829
|
-
return !
|
|
5827
|
+
const W = x.find((O) => {
|
|
5828
|
+
const I = O.sourceName || O.layerName;
|
|
5829
|
+
return !I || !y.url ? !1 : (I.split("/").pop() || I) === $ || I === y.url || I.endsWith(y.url) || y.url.endsWith(I);
|
|
5830
5830
|
});
|
|
5831
|
-
if (
|
|
5832
|
-
const O =
|
|
5831
|
+
if (W) {
|
|
5832
|
+
const O = W.sourceName || W.layerName;
|
|
5833
5833
|
if (O)
|
|
5834
|
-
return t[O] || { url:
|
|
5834
|
+
return t[O] || { url: W.url };
|
|
5835
5835
|
}
|
|
5836
5836
|
}
|
|
5837
5837
|
};
|
|
5838
5838
|
for (let y = 0; y < f.psdPartData.length; y++) {
|
|
5839
|
-
const $ = f.psdPartData[y],
|
|
5839
|
+
const $ = f.psdPartData[y], W = D($);
|
|
5840
5840
|
if ($.type === E0.Layer) {
|
|
5841
|
-
if (!
|
|
5841
|
+
if (!W || !W.url)
|
|
5842
5842
|
continue;
|
|
5843
|
-
const O =
|
|
5844
|
-
if (!
|
|
5843
|
+
const O = W.url, I = C(O);
|
|
5844
|
+
if (!I)
|
|
5845
5845
|
continue;
|
|
5846
5846
|
F.push({
|
|
5847
5847
|
index: y,
|
|
5848
5848
|
type: "layer",
|
|
5849
5849
|
partData: $,
|
|
5850
|
-
promise:
|
|
5850
|
+
promise: nt(I, p, g).catch((b) => null)
|
|
5851
5851
|
});
|
|
5852
5852
|
} else if ($.type === E0.Group) {
|
|
5853
5853
|
if (!$.smartObjects || $.smartObjects.length === 0)
|
|
5854
5854
|
continue;
|
|
5855
5855
|
for (let O = 0; O < $.smartObjects.length; O++) {
|
|
5856
|
-
const
|
|
5857
|
-
if (!
|
|
5856
|
+
const I = $.smartObjects[O];
|
|
5857
|
+
if (!I || !I.name)
|
|
5858
5858
|
continue;
|
|
5859
|
-
let b = t[
|
|
5860
|
-
if (!b &&
|
|
5861
|
-
const T =
|
|
5859
|
+
let b = t[I.name] ?? W;
|
|
5860
|
+
if (!b && I.imagePath && (b = t[I.imagePath], !b)) {
|
|
5861
|
+
const T = I.imagePath.split("/").pop() || I.imagePath;
|
|
5862
5862
|
if (b = t[T], !b) {
|
|
5863
5863
|
const j = x.find((M) => {
|
|
5864
|
-
const
|
|
5865
|
-
return !
|
|
5864
|
+
const Z = M.sourceName || M.layerName;
|
|
5865
|
+
return !Z || !I.imagePath ? !1 : (Z.split("/").pop() || Z) === T || Z === I.imagePath || Z.endsWith(I.imagePath) || I.imagePath.endsWith(Z);
|
|
5866
5866
|
});
|
|
5867
5867
|
j && (b = { url: j.url });
|
|
5868
5868
|
}
|
|
@@ -5873,22 +5873,22 @@ async function wx(r) {
|
|
|
5873
5873
|
if (!k)
|
|
5874
5874
|
continue;
|
|
5875
5875
|
if (typeof k == "string") {
|
|
5876
|
-
/^(https?:)?\/\//i.test(k) || k.startsWith("data:") || k.startsWith("blob:") || (k =
|
|
5876
|
+
/^(https?:)?\/\//i.test(k) || k.startsWith("data:") || k.startsWith("blob:") || (k = a.get(k) ?? k);
|
|
5877
5877
|
const j = C(k);
|
|
5878
5878
|
if (!j)
|
|
5879
5879
|
continue;
|
|
5880
5880
|
k = j;
|
|
5881
5881
|
}
|
|
5882
|
-
const R = ($.partId ?? $.id) * 100 + O, S = Ge(Xe(
|
|
5882
|
+
const R = ($.partId ?? $.id) * 100 + O, S = Ge(Xe(I)), N = { width: E, height: o };
|
|
5883
5883
|
F.push({
|
|
5884
5884
|
index: y + O * 0.01,
|
|
5885
5885
|
type: "group",
|
|
5886
5886
|
partData: $,
|
|
5887
|
-
smartObject:
|
|
5887
|
+
smartObject: I,
|
|
5888
5888
|
maskData: S,
|
|
5889
5889
|
promise: yx(
|
|
5890
5890
|
k,
|
|
5891
|
-
|
|
5891
|
+
I,
|
|
5892
5892
|
R,
|
|
5893
5893
|
N,
|
|
5894
5894
|
p,
|
|
@@ -5898,19 +5898,19 @@ async function wx(r) {
|
|
|
5898
5898
|
}
|
|
5899
5899
|
}
|
|
5900
5900
|
}
|
|
5901
|
-
const
|
|
5901
|
+
const _ = await Promise.all(F.map((y) => y.promise)), w = F.map((y, $) => ({
|
|
5902
5902
|
task: y,
|
|
5903
|
-
imageBitmap:
|
|
5903
|
+
imageBitmap: _[$]
|
|
5904
5904
|
})).sort((y, $) => {
|
|
5905
|
-
const
|
|
5906
|
-
return
|
|
5905
|
+
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;
|
|
5906
|
+
return W - O;
|
|
5907
5907
|
});
|
|
5908
|
-
let z = s0(E, o), B = C0(z),
|
|
5908
|
+
let z = s0(E, o), B = C0(z), m = !1, P = "normal";
|
|
5909
5909
|
for (let y = 0; y < w.length; y++) {
|
|
5910
|
-
const { task: $, imageBitmap:
|
|
5911
|
-
if (!
|
|
5910
|
+
const { task: $, imageBitmap: W } = w[y];
|
|
5911
|
+
if (!W)
|
|
5912
5912
|
continue;
|
|
5913
|
-
const { partData: O } = $,
|
|
5913
|
+
const { partData: O } = $, I = O.bounds;
|
|
5914
5914
|
let b;
|
|
5915
5915
|
$.type === "group" && $.smartObject ? b = $.smartObject.opacity ?? O.opacity : b = O.opacity, (typeof b != "number" || isNaN(b)) && (b = 1);
|
|
5916
5916
|
let k;
|
|
@@ -5922,20 +5922,20 @@ async function wx(r) {
|
|
|
5922
5922
|
R.task.type === "group" && R.task.smartObject ? S = R.task.smartObject.clipping ?? N.clipping === !0 : S = N.clipping === !0;
|
|
5923
5923
|
}
|
|
5924
5924
|
if ($.type === "group" && $.smartObject && $.smartObject.name ? $.smartObject.name : O?.name, !k && S) {
|
|
5925
|
-
if (
|
|
5925
|
+
if (m = !0, P = O.blendMode || "normal", B) {
|
|
5926
5926
|
if (B.clearRect(0, 0, E, o), B.globalCompositeOperation = "source-over", B.globalAlpha = b, $.type === "group" && $.smartObject)
|
|
5927
5927
|
if ($.maskData) {
|
|
5928
5928
|
const N = s0(E, o), T = C0(N);
|
|
5929
|
-
T && (T.drawImage(
|
|
5929
|
+
T && (T.drawImage(W, 0, 0), ur(T, $.maskData), B.drawImage(N, 0, 0));
|
|
5930
5930
|
} else
|
|
5931
|
-
B.drawImage(
|
|
5932
|
-
else $.type === "layer" && (
|
|
5933
|
-
|
|
5934
|
-
|
|
5935
|
-
|
|
5936
|
-
|
|
5937
|
-
|
|
5938
|
-
) : B.drawImage(
|
|
5931
|
+
B.drawImage(W, 0, 0);
|
|
5932
|
+
else $.type === "layer" && (I ? B.drawImage(
|
|
5933
|
+
W,
|
|
5934
|
+
I.left,
|
|
5935
|
+
I.top,
|
|
5936
|
+
I.width,
|
|
5937
|
+
I.height
|
|
5938
|
+
) : B.drawImage(W, 0, 0));
|
|
5939
5939
|
B.globalAlpha = 1;
|
|
5940
5940
|
}
|
|
5941
5941
|
} else if (k) {
|
|
@@ -5943,56 +5943,56 @@ async function wx(r) {
|
|
|
5943
5943
|
if (B.globalCompositeOperation = "source-atop", B.globalAlpha = b, $.type === "group" && $.smartObject)
|
|
5944
5944
|
if ($.maskData) {
|
|
5945
5945
|
const N = s0(E, o), T = C0(N);
|
|
5946
|
-
T && (T.drawImage(
|
|
5946
|
+
T && (T.drawImage(W, 0, 0), ur(T, $.maskData), B.drawImage(N, 0, 0));
|
|
5947
5947
|
} else
|
|
5948
|
-
B.drawImage(
|
|
5949
|
-
else $.type === "layer" && (
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
) : B.drawImage(
|
|
5948
|
+
B.drawImage(W, 0, 0);
|
|
5949
|
+
else $.type === "layer" && (I ? B.drawImage(
|
|
5950
|
+
W,
|
|
5951
|
+
I.left,
|
|
5952
|
+
I.top,
|
|
5953
|
+
I.width,
|
|
5954
|
+
I.height
|
|
5955
|
+
) : B.drawImage(W, 0, 0));
|
|
5956
5956
|
B.globalAlpha = 1, B.globalCompositeOperation = "source-over";
|
|
5957
5957
|
}
|
|
5958
5958
|
} else {
|
|
5959
5959
|
if (s.globalCompositeOperation = $r(O.blendMode), s.globalAlpha = b, $.type === "group" && $.smartObject)
|
|
5960
5960
|
if ($.maskData) {
|
|
5961
5961
|
const N = s0(E, o), T = C0(N);
|
|
5962
|
-
T && (T.drawImage(
|
|
5962
|
+
T && (T.drawImage(W, 0, 0), ur(T, $.maskData), s.drawImage(N, 0, 0));
|
|
5963
5963
|
} else
|
|
5964
|
-
s.drawImage(
|
|
5965
|
-
else $.type === "layer" && (
|
|
5966
|
-
|
|
5967
|
-
|
|
5968
|
-
|
|
5969
|
-
|
|
5970
|
-
|
|
5971
|
-
) : s.drawImage(
|
|
5964
|
+
s.drawImage(W, 0, 0);
|
|
5965
|
+
else $.type === "layer" && (I ? s.drawImage(
|
|
5966
|
+
W,
|
|
5967
|
+
I.left,
|
|
5968
|
+
I.top,
|
|
5969
|
+
I.width,
|
|
5970
|
+
I.height
|
|
5971
|
+
) : s.drawImage(W, 0, 0));
|
|
5972
5972
|
s.globalAlpha = 1, s.globalCompositeOperation = "source-over";
|
|
5973
5973
|
}
|
|
5974
|
-
|
|
5974
|
+
m && !S && (s.globalCompositeOperation = $r(P), s.drawImage(z, 0, 0), s.globalCompositeOperation = "source-over", m = !1);
|
|
5975
5975
|
}
|
|
5976
5976
|
z = null, B = null;
|
|
5977
|
-
let H = i,
|
|
5978
|
-
if (
|
|
5979
|
-
if (
|
|
5980
|
-
|
|
5981
|
-
else if (
|
|
5982
|
-
const $ =
|
|
5983
|
-
|
|
5977
|
+
let H = i, q = E, L = o;
|
|
5978
|
+
if (u !== void 0 || v !== void 0) {
|
|
5979
|
+
if (u !== void 0 && v !== void 0)
|
|
5980
|
+
q = u, L = v;
|
|
5981
|
+
else if (u !== void 0) {
|
|
5982
|
+
const $ = u / E;
|
|
5983
|
+
q = u, L = Math.round(o * $);
|
|
5984
5984
|
} else if (v !== void 0) {
|
|
5985
5985
|
const $ = v / o;
|
|
5986
|
-
|
|
5986
|
+
q = Math.round(E * $), L = v;
|
|
5987
5987
|
}
|
|
5988
|
-
H = s0(
|
|
5988
|
+
H = s0(q, L);
|
|
5989
5989
|
const y = Ce(H);
|
|
5990
|
-
y.imageSmoothingEnabled = !0, y.imageSmoothingQuality = "high", y.drawImage(i, 0, 0, E, o, 0, 0,
|
|
5990
|
+
y.imageSmoothingEnabled = !0, y.imageSmoothingQuality = "high", y.drawImage(i, 0, 0, E, o, 0, 0, q, L);
|
|
5991
5991
|
}
|
|
5992
5992
|
return performance.now(), {
|
|
5993
5993
|
canvas: H,
|
|
5994
|
-
width:
|
|
5995
|
-
height:
|
|
5994
|
+
width: q,
|
|
5995
|
+
height: L
|
|
5996
5996
|
};
|
|
5997
5997
|
}
|
|
5998
5998
|
const kx = async (r) => {
|
|
@@ -6000,9 +6000,9 @@ const kx = async (r) => {
|
|
|
6000
6000
|
return x ? createImageBitmap(x) : null;
|
|
6001
6001
|
};
|
|
6002
6002
|
self.onmessage = async (r) => {
|
|
6003
|
-
const
|
|
6004
|
-
if (
|
|
6005
|
-
const e =
|
|
6003
|
+
const d = r.data;
|
|
6004
|
+
if (d && typeof d == "object" && "type" in d && d.type === "SET_LICENSE") {
|
|
6005
|
+
const e = d;
|
|
6006
6006
|
Ex({
|
|
6007
6007
|
token: e.licenseToken,
|
|
6008
6008
|
apiUrl: e.licenseApiUrl,
|
|
@@ -6011,7 +6011,7 @@ self.onmessage = async (r) => {
|
|
|
6011
6011
|
});
|
|
6012
6012
|
return;
|
|
6013
6013
|
}
|
|
6014
|
-
const x =
|
|
6014
|
+
const x = d;
|
|
6015
6015
|
try {
|
|
6016
6016
|
const e = await kx(x.renderData);
|
|
6017
6017
|
self.postMessage({ id: x.id, bitmap: e }, e ? [e] : []);
|