@jieyin/editor-sdk-test 1.1.176 → 1.1.178
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 +8637 -8590
- package/dist/renderWorker.js +1153 -1156
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/renderWorker.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var D0 = /* @__PURE__ */ ((r) => (r[r.Group = 0] = "Group", r[r.Layer = 1] = "Layer", r))(D0 || {});
|
|
2
|
-
function
|
|
3
|
-
let
|
|
2
|
+
function et(r) {
|
|
3
|
+
let d = r;
|
|
4
4
|
return () => {
|
|
5
|
-
const t =
|
|
6
|
-
return
|
|
5
|
+
const t = d;
|
|
6
|
+
return d += 1, t;
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function tt(r, d) {
|
|
10
10
|
return {
|
|
11
11
|
name: r.name || "",
|
|
12
12
|
type: r.type || "Layer",
|
|
@@ -23,131 +23,131 @@ function et(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
|
|
33
|
-
let
|
|
34
|
-
if (r.type === "Group" &&
|
|
35
|
-
const x = r.children[0].name, n =
|
|
36
|
-
(E !== void 0 || n?.id !== void 0) && (
|
|
32
|
+
function xt(r, d, t, e) {
|
|
33
|
+
let c = r.name || "", v = d[c], y = v?.partId ?? (r.type === "Group" ? t.get(c) : void 0);
|
|
34
|
+
if (r.type === "Group" && y === void 0 && (!v || v.id === void 0) && r.children && r.children.length === 1) {
|
|
35
|
+
const x = r.children[0].name, n = d[x], E = n?.partId ?? t.get(x);
|
|
36
|
+
(E !== void 0 || n?.id !== void 0) && (c = x, v = n, y = E);
|
|
37
37
|
}
|
|
38
|
-
const
|
|
38
|
+
const B = r.id ?? v?.id ?? e();
|
|
39
39
|
if (r.type === "Group")
|
|
40
40
|
return {
|
|
41
|
-
id:
|
|
42
|
-
partId:
|
|
43
|
-
name:
|
|
41
|
+
id: B,
|
|
42
|
+
partId: y,
|
|
43
|
+
name: c,
|
|
44
44
|
blendMode: r.blendMode || "normal",
|
|
45
45
|
bounds: r.bounds || { left: 0, top: 0, width: 0, height: 0 },
|
|
46
46
|
type: D0.Group,
|
|
47
47
|
smartObjects: (r.children ?? []).map(
|
|
48
|
-
(x) =>
|
|
48
|
+
(x) => tt(x, r.vectorMask)
|
|
49
49
|
),
|
|
50
50
|
opacity: r.opacity,
|
|
51
51
|
clipping: r.clipping,
|
|
52
52
|
layerOrder: r.layerOrder
|
|
53
53
|
};
|
|
54
|
-
let
|
|
55
|
-
return !
|
|
56
|
-
id:
|
|
54
|
+
let C = v?.url;
|
|
55
|
+
return !C && r.imagePath && (C = r.imagePath), {
|
|
56
|
+
id: B,
|
|
57
57
|
name: r.name || "",
|
|
58
58
|
blendMode: r.blendMode || "normal",
|
|
59
59
|
bounds: r.bounds || { left: 0, top: 0, width: 0, height: 0 },
|
|
60
60
|
type: D0.Layer,
|
|
61
|
-
url:
|
|
61
|
+
url: C,
|
|
62
62
|
opacity: r.opacity,
|
|
63
63
|
clipping: r.clipping,
|
|
64
64
|
layerOrder: r.layerOrder
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
|
-
function
|
|
68
|
-
const t = new Map(
|
|
67
|
+
function nt(r, d) {
|
|
68
|
+
const t = new Map(d.parts.map((c) => [c.name, c.id])), e = et(d.defaultIdStart ?? 1);
|
|
69
69
|
return {
|
|
70
|
-
parts:
|
|
71
|
-
models: r.map((
|
|
72
|
-
const
|
|
73
|
-
if (!
|
|
74
|
-
throw new Error(`无法获取 PSD 画布尺寸: canvasWidth=${
|
|
70
|
+
parts: d.parts,
|
|
71
|
+
models: r.map((c) => {
|
|
72
|
+
const v = c.layerExtrasByName ?? {}, y = c.psdJson, B = y.layerList || y.layerList || [], C = y.canvasWidth, x = y.canvasHeight;
|
|
73
|
+
if (!C || !x)
|
|
74
|
+
throw new Error(`无法获取 PSD 画布尺寸: canvasWidth=${C}, canvasHeight=${x}。请确保 jsonurl 中的 canvasWidth 和 canvasHeight 存在`);
|
|
75
75
|
const n = (s) => {
|
|
76
76
|
const u = [];
|
|
77
77
|
for (const p of s)
|
|
78
78
|
if (p.type === "Group" && p.children) {
|
|
79
|
-
const
|
|
80
|
-
const b = o.layerOrder ?? 0, g =
|
|
79
|
+
const h = [], D = [], i = [...p.children].sort((o, l) => {
|
|
80
|
+
const b = o.layerOrder ?? 0, g = l.layerOrder ?? 0;
|
|
81
81
|
return b - g;
|
|
82
82
|
});
|
|
83
83
|
for (const o of i)
|
|
84
|
-
o.isSmartObject === !0 ?
|
|
84
|
+
o.isSmartObject === !0 ? h.push(o) : D.push(o);
|
|
85
85
|
if (D.length > 0) {
|
|
86
86
|
const o = n(D);
|
|
87
87
|
u.push(...o);
|
|
88
88
|
}
|
|
89
|
-
|
|
89
|
+
h.length > 0 && u.push({
|
|
90
90
|
...p,
|
|
91
|
-
children:
|
|
91
|
+
children: h
|
|
92
92
|
});
|
|
93
93
|
} else
|
|
94
94
|
u.push(p);
|
|
95
95
|
return u;
|
|
96
|
-
}, a = n(
|
|
97
|
-
(s) =>
|
|
96
|
+
}, a = n(B).map(
|
|
97
|
+
(s) => xt(s, v, t, e)
|
|
98
98
|
);
|
|
99
99
|
return {
|
|
100
|
-
width:
|
|
100
|
+
width: C,
|
|
101
101
|
height: x,
|
|
102
102
|
psdPartData: a
|
|
103
103
|
};
|
|
104
104
|
})
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function at(r) {
|
|
108
108
|
return r ? r.vectorMask && r.vectorMask.paths && Array.isArray(r.vectorMask.paths) ? { type: "bezier", paths: r.vectorMask.paths } : Array.isArray(r.vectorMask) ? { type: "simple", points: r.vectorMask } : null : null;
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function ot(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((t) => ({
|
|
116
116
|
linked: !!t.linked,
|
|
117
117
|
points: Array.isArray(t.points) ? [...t.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 pr(r,
|
|
130
|
-
if (
|
|
131
|
-
if (r.globalCompositeOperation = "destination-in", r.beginPath(),
|
|
132
|
-
|
|
129
|
+
function pr(r, d) {
|
|
130
|
+
if (d) {
|
|
131
|
+
if (r.globalCompositeOperation = "destination-in", r.beginPath(), d.type === "bezier" && Array.isArray(d.paths))
|
|
132
|
+
d.paths.forEach((t) => {
|
|
133
133
|
const e = t.knots;
|
|
134
134
|
if (!e || e.length < 2) return;
|
|
135
|
-
const
|
|
136
|
-
r.moveTo(
|
|
137
|
-
for (let
|
|
138
|
-
const
|
|
139
|
-
let
|
|
140
|
-
if (!t.open &&
|
|
141
|
-
|
|
142
|
-
else if (t.open &&
|
|
135
|
+
const c = e[0];
|
|
136
|
+
r.moveTo(c.points[2], c.points[3]);
|
|
137
|
+
for (let v = 0; v < e.length; v++) {
|
|
138
|
+
const y = e[v];
|
|
139
|
+
let B = (v + 1) % e.length;
|
|
140
|
+
if (!t.open && v === e.length - 1)
|
|
141
|
+
B = 0;
|
|
142
|
+
else if (t.open && v === e.length - 1)
|
|
143
143
|
break;
|
|
144
|
-
const
|
|
144
|
+
const C = e[B], x = y.points[4], n = y.points[5], E = C.points[0], a = C.points[1], s = C.points[2], u = C.points[3];
|
|
145
145
|
r.bezierCurveTo(x, n, E, a, s, u);
|
|
146
146
|
}
|
|
147
147
|
t.open || r.closePath();
|
|
148
148
|
});
|
|
149
|
-
else if (
|
|
150
|
-
const t =
|
|
149
|
+
else if (d.type === "simple" && Array.isArray(d.points)) {
|
|
150
|
+
const t = d.points;
|
|
151
151
|
if (t.length < 3) return;
|
|
152
152
|
r.moveTo(t[0].x, t[0].y);
|
|
153
153
|
for (let e = 1; e < t.length; e++) r.lineTo(t[e].x, t[e].y);
|
|
@@ -161,10 +161,10 @@ class p0 {
|
|
|
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 p0 {
|
|
|
172
172
|
/**
|
|
173
173
|
* 设置存储项
|
|
174
174
|
*/
|
|
175
|
-
static setItem(
|
|
175
|
+
static setItem(d, t) {
|
|
176
176
|
if (!this.hasStorage) return !1;
|
|
177
177
|
try {
|
|
178
|
-
return localStorage.setItem(
|
|
178
|
+
return localStorage.setItem(d, t), !0;
|
|
179
179
|
} catch {
|
|
180
180
|
return !1;
|
|
181
181
|
}
|
|
@@ -183,10 +183,10 @@ class p0 {
|
|
|
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 v0 {
|
|
|
251
251
|
/**
|
|
252
252
|
* 安全地解析 URL
|
|
253
253
|
*/
|
|
254
|
-
static parse(
|
|
254
|
+
static parse(d) {
|
|
255
255
|
try {
|
|
256
256
|
const t = dr.getOrigin();
|
|
257
|
-
return new URL(
|
|
257
|
+
return new URL(d, t);
|
|
258
258
|
} catch {
|
|
259
259
|
return null;
|
|
260
260
|
}
|
|
@@ -262,291 +262,288 @@ class v0 {
|
|
|
262
262
|
/**
|
|
263
263
|
* 添加查询参数
|
|
264
264
|
*/
|
|
265
|
-
static addParam(
|
|
266
|
-
const
|
|
267
|
-
return !
|
|
265
|
+
static addParam(d, t, e) {
|
|
266
|
+
const c = this.parse(d);
|
|
267
|
+
return !c || c.searchParams.has(t) ? d : (c.searchParams.set(t, e), this.formatUrl(d, c));
|
|
268
268
|
}
|
|
269
269
|
/**
|
|
270
270
|
* 移除查询参数
|
|
271
271
|
*/
|
|
272
|
-
static removeParam(
|
|
273
|
-
const e = this.parse(
|
|
274
|
-
return !e || !e.searchParams.has(t) ?
|
|
272
|
+
static removeParam(d, t) {
|
|
273
|
+
const e = this.parse(d);
|
|
274
|
+
return !e || !e.searchParams.has(t) ? d : (e.searchParams.delete(t), this.formatUrl(d, e));
|
|
275
275
|
}
|
|
276
276
|
/**
|
|
277
277
|
* 检查是否有指定参数
|
|
278
278
|
*/
|
|
279
|
-
static hasParam(
|
|
280
|
-
return this.parse(
|
|
279
|
+
static hasParam(d, t) {
|
|
280
|
+
return this.parse(d)?.searchParams.has(t) ?? !1;
|
|
281
281
|
}
|
|
282
282
|
/**
|
|
283
283
|
* 格式化 URL(保持原始格式)
|
|
284
284
|
*/
|
|
285
|
-
static formatUrl(
|
|
286
|
-
const e = /^(https?:)?\/\//i.test(
|
|
287
|
-
return e ? t.toString() :
|
|
285
|
+
static formatUrl(d, t) {
|
|
286
|
+
const e = /^(https?:)?\/\//i.test(d), c = d.startsWith("//");
|
|
287
|
+
return e ? t.toString() : c ? t.toString().replace(/^https?:/, "") : `${t.pathname}${t.search}${t.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
|
-
const
|
|
303
|
-
function
|
|
304
|
-
|
|
302
|
+
const it = /* @__PURE__ */ new Map(), st = /* @__PURE__ */ new Map();
|
|
303
|
+
function ct() {
|
|
304
|
+
it.clear(), st.clear();
|
|
305
305
|
}
|
|
306
|
-
|
|
307
|
-
|
|
306
|
+
const a0 = br;
|
|
307
|
+
(function(r, d) {
|
|
308
|
+
const t = br, e = r();
|
|
308
309
|
for (; ; )
|
|
309
310
|
try {
|
|
310
|
-
if (-parseInt(t(
|
|
311
|
+
if (-parseInt(t(493)) / 1 * (-parseInt(t(519)) / 2) + -parseInt(t(522)) / 3 * (-parseInt(t(494)) / 4) + -parseInt(t(506)) / 5 + -parseInt(t(503)) / 6 + parseInt(t(502)) / 7 * (-parseInt(t(517)) / 8) + parseInt(t(518)) / 9 * (parseInt(t(521)) / 10) + -parseInt(t(500)) / 11 * (-parseInt(t(497)) / 12) === d) break;
|
|
311
312
|
e.push(e.shift());
|
|
312
313
|
} catch {
|
|
313
314
|
e.push(e.shift());
|
|
314
315
|
}
|
|
315
|
-
})(ur,
|
|
316
|
+
})(ur, 4742 * 187 + 885566 * -1 + 800874);
|
|
316
317
|
const F0 = /* @__PURE__ */ (function() {
|
|
317
318
|
let r = !0;
|
|
318
|
-
return function(
|
|
319
|
+
return function(d, t) {
|
|
319
320
|
const e = r ? function() {
|
|
320
|
-
const f = r0;
|
|
321
321
|
if (t) {
|
|
322
|
-
const
|
|
323
|
-
return t = null,
|
|
322
|
+
const c = t.apply(d, arguments);
|
|
323
|
+
return t = null, c;
|
|
324
324
|
}
|
|
325
325
|
} : function() {
|
|
326
326
|
};
|
|
327
327
|
return r = !1, e;
|
|
328
328
|
};
|
|
329
|
-
})(),
|
|
330
|
-
const r =
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
const _ = F0[r(461) + r(464) + "r"][r(480) + "type"][r(462)](F0), C = f[h], B = e[C] || _;
|
|
342
|
-
_[r(451) + "to__"] = F0.bind(F0), _.toString = B.toString.bind(B), e[C] = _;
|
|
329
|
+
})(), ft = F0(void 0, function() {
|
|
330
|
+
const r = br;
|
|
331
|
+
let d;
|
|
332
|
+
try {
|
|
333
|
+
d = Function(r(520) + 'n (function() {}.constructor("return this")( ));')();
|
|
334
|
+
} catch {
|
|
335
|
+
d = window;
|
|
336
|
+
}
|
|
337
|
+
const t = d.console = d.console || {}, e = ["log", "warn", r(527), "error", "excep" + r(524), r(526), r(498)];
|
|
338
|
+
for (let c = 7 * 416 + -5390 + 2478; c < e[r(511) + "h"]; c++) {
|
|
339
|
+
const v = F0.constructor.prototype.bind(F0), y = e[c], B = t[y] || v;
|
|
340
|
+
v[r(513) + "to__"] = F0[r(504)](F0), v["toStr" + r(525)] = B["toStr" + r(525)][r(504)](B), t[y] = v;
|
|
343
341
|
}
|
|
344
342
|
});
|
|
345
|
-
|
|
346
|
-
const gr = "file_token", Dr = "
|
|
343
|
+
ft();
|
|
344
|
+
const gr = "file_token", Dr = a0(499) + "token_expire_time", ut = (-7345 * -1 + -9427 + 2142) * (-8799 + -25 * -314 + 1949 * 1);
|
|
347
345
|
function Ar() {
|
|
348
|
-
return p0
|
|
346
|
+
return p0.getItem(gr);
|
|
349
347
|
}
|
|
350
|
-
function
|
|
351
|
-
const l = r0;
|
|
348
|
+
function dt(r = ut) {
|
|
352
349
|
if (!Ar()) return !0;
|
|
353
|
-
const
|
|
354
|
-
if (!
|
|
355
|
-
const
|
|
356
|
-
return Date
|
|
350
|
+
const t = p0.getItem(Dr);
|
|
351
|
+
if (!t) return !1;
|
|
352
|
+
const e = Number(t);
|
|
353
|
+
return Date.now() + r > e;
|
|
357
354
|
}
|
|
358
|
-
function
|
|
359
|
-
const t =
|
|
360
|
-
if (p0.setItem(gr, r), typeof
|
|
361
|
-
const e = Date.now() +
|
|
355
|
+
function lt(r, d) {
|
|
356
|
+
const t = a0;
|
|
357
|
+
if (p0.setItem(gr, r), typeof d == t(512) + "r" && d > 1 * 9868 + -2 * 1291 + -7286) {
|
|
358
|
+
const e = Date.now() + d * 1e3;
|
|
362
359
|
p0.setItem(Dr, String(e));
|
|
363
360
|
}
|
|
364
361
|
}
|
|
365
|
-
function
|
|
366
|
-
p0.removeItem(gr), p0.removeItem(Dr),
|
|
362
|
+
function ht() {
|
|
363
|
+
p0.removeItem(gr), p0.removeItem(Dr), bt(), ct();
|
|
367
364
|
}
|
|
368
|
-
async function
|
|
369
|
-
const
|
|
370
|
-
return t?.
|
|
365
|
+
async function qr(r) {
|
|
366
|
+
const d = a0, t = await r(), e = t?.data?.data;
|
|
367
|
+
return t?.[d(515)]?.code === 5844 + 1 * -5644 && e?.["file_" + d(492)] ? (lt(e["file_" + d(492)], e.expires_in), e.file_token) : null;
|
|
371
368
|
}
|
|
372
|
-
let
|
|
369
|
+
let vt = null;
|
|
373
370
|
function ur() {
|
|
374
|
-
const r = ["
|
|
371
|
+
const r = ["bind", "efres", "7419130htXjPr", "fileT", "wser", "FileT", "des", "lengt", "numbe", "__pro", "inclu", "data", "/file", "136CbTIEA", "5582349GTktrP", "2uJJJlq", "retur", "20JPGPmH", "219MPZKVG", "clone", "tion", "ing", "table", "info", "token", "499021lufRhv", "85004qmLxkk", "statu", "get", "21047412KXvnKX", "trace", "file_", "11itSmdp", "GET", "621887cPxwsu", "7491792liaJRv"];
|
|
375
372
|
return ur = function() {
|
|
376
373
|
return r;
|
|
377
374
|
}, ur();
|
|
378
375
|
}
|
|
379
|
-
function
|
|
380
|
-
return
|
|
381
|
-
}
|
|
382
|
-
function qr() {
|
|
383
|
-
return dr.isBrowser() ? ht : null;
|
|
376
|
+
function Tr() {
|
|
377
|
+
return dr["isBro" + a0(508)]() ? vt : null;
|
|
384
378
|
}
|
|
385
|
-
async function
|
|
386
|
-
const r =
|
|
379
|
+
async function we() {
|
|
380
|
+
const r = a0;
|
|
387
381
|
if (!dr.isBrowser()) return Ar();
|
|
388
|
-
const
|
|
389
|
-
if (
|
|
382
|
+
const d = Ar();
|
|
383
|
+
if (d && !dt()) return d;
|
|
390
384
|
try {
|
|
391
|
-
const t = await
|
|
392
|
-
if (
|
|
393
|
-
const e = await
|
|
385
|
+
const t = await Tr();
|
|
386
|
+
if (d && t?.["fetch" + r(509) + "okenRefresh"]) {
|
|
387
|
+
const e = await qr(t["fetch" + r(509) + "okenR" + r(505) + "h"]);
|
|
394
388
|
if (e) return e;
|
|
395
389
|
}
|
|
396
390
|
} catch {
|
|
397
391
|
}
|
|
398
392
|
try {
|
|
399
|
-
const t =
|
|
400
|
-
return t?.[
|
|
393
|
+
const t = Tr();
|
|
394
|
+
return t?.["fetch" + r(509) + "oken"] ? await qr(t.fetchFileToken) : null;
|
|
401
395
|
} catch {
|
|
402
396
|
return null;
|
|
403
397
|
}
|
|
404
398
|
}
|
|
405
|
-
function
|
|
406
|
-
const
|
|
407
|
-
if (!r || v0
|
|
399
|
+
function ke(r) {
|
|
400
|
+
const d = a0;
|
|
401
|
+
if (!r || v0.isDataUrl(r) || v0.isBlobUrl(r)) return !1;
|
|
408
402
|
const t = v0.parse(r);
|
|
409
|
-
return t ? t["
|
|
403
|
+
return t ? t.pathname["inclu" + d(510)](d(516) + "s/") && !v0.hasParam(r, "fileToken") : r[d(514) + d(510)]("/files/") && !r.includes(d(507) + "oken=");
|
|
404
|
+
}
|
|
405
|
+
function Se(r, d) {
|
|
406
|
+
return !d || !ke(r) ? r : v0.addParam(r, "fileToken", d);
|
|
410
407
|
}
|
|
411
|
-
function
|
|
412
|
-
|
|
413
|
-
return !l || !we(r) ? r : v0[t(458) + "ram"](r, t(456) + "oken", l);
|
|
408
|
+
function br(r, d) {
|
|
409
|
+
return r = r - (-11491 + -1 * -11983), ur()[r];
|
|
414
410
|
}
|
|
415
|
-
function
|
|
411
|
+
function He(r) {
|
|
416
412
|
return v0.removeParam(r, "fileToken");
|
|
417
413
|
}
|
|
418
|
-
async function
|
|
419
|
-
if (!
|
|
420
|
-
const
|
|
421
|
-
return
|
|
414
|
+
async function pt(r) {
|
|
415
|
+
if (!ke(r)) return r;
|
|
416
|
+
const d = await we();
|
|
417
|
+
return Se(r, d);
|
|
422
418
|
}
|
|
423
419
|
const Br = /* @__PURE__ */ new Map();
|
|
424
|
-
function
|
|
425
|
-
return
|
|
420
|
+
function Bt(r, d) {
|
|
421
|
+
return String(a0(501)).toUpperCase() + "\0" + r;
|
|
426
422
|
}
|
|
427
|
-
async function
|
|
428
|
-
const t =
|
|
429
|
-
if (!dr
|
|
430
|
-
const e =
|
|
431
|
-
let
|
|
432
|
-
return !
|
|
423
|
+
async function Ct(r, d) {
|
|
424
|
+
const t = a0;
|
|
425
|
+
if (!dr.isBrowser()) return fetch(r, d);
|
|
426
|
+
const e = He(r), c = Bt(e);
|
|
427
|
+
let v = Br[t(496)](c);
|
|
428
|
+
return !v && (v = (async () => {
|
|
429
|
+
const B = t;
|
|
433
430
|
try {
|
|
434
|
-
const C = await
|
|
435
|
-
let
|
|
436
|
-
if (B
|
|
437
|
-
|
|
438
|
-
const
|
|
439
|
-
return
|
|
431
|
+
const C = await pt(e);
|
|
432
|
+
let x = await fetch(C, d);
|
|
433
|
+
if (x[B(495) + "s"] !== -4238 + 1 * 4639) return x;
|
|
434
|
+
ht();
|
|
435
|
+
const n = await we(), E = Se(e, n);
|
|
436
|
+
return x = await fetch(E, d), x;
|
|
440
437
|
} finally {
|
|
441
|
-
Br.delete(
|
|
438
|
+
Br.delete(c);
|
|
442
439
|
}
|
|
443
|
-
})(), Br.set(
|
|
440
|
+
})(), Br.set(c, v)), (await v)[t(523)]();
|
|
444
441
|
}
|
|
445
|
-
const
|
|
442
|
+
const Et = 96, At = 200 * 1024 * 1024, t0 = /* @__PURE__ */ new Map();
|
|
446
443
|
let lr = 0;
|
|
447
444
|
const y0 = /* @__PURE__ */ new Map();
|
|
448
|
-
function
|
|
449
|
-
return `${"GET".toUpperCase()}\0${
|
|
445
|
+
function Ft(r, d) {
|
|
446
|
+
return `${"GET".toUpperCase()}\0${He(r)}`;
|
|
450
447
|
}
|
|
451
|
-
function
|
|
452
|
-
const r =
|
|
448
|
+
function gt() {
|
|
449
|
+
const r = t0.keys().next().value;
|
|
453
450
|
if (r === void 0) return;
|
|
454
|
-
const
|
|
455
|
-
|
|
451
|
+
const d = t0.get(r);
|
|
452
|
+
t0.delete(r), d && (lr -= d.size);
|
|
456
453
|
}
|
|
457
|
-
function
|
|
458
|
-
for (;
|
|
459
|
-
const
|
|
460
|
-
if (!
|
|
461
|
-
|
|
454
|
+
function Dt(r) {
|
|
455
|
+
for (; t0.size > 0; ) {
|
|
456
|
+
const d = t0.size >= Et, t = lr + r > At;
|
|
457
|
+
if (!d && !t) break;
|
|
458
|
+
gt();
|
|
462
459
|
}
|
|
463
460
|
}
|
|
464
|
-
async function
|
|
465
|
-
const t =
|
|
461
|
+
async function Re(r, d) {
|
|
462
|
+
const t = Ft(r), e = t0.get(t);
|
|
466
463
|
if (e)
|
|
467
|
-
return
|
|
468
|
-
let
|
|
469
|
-
return
|
|
464
|
+
return t0.delete(t), t0.set(t, e), e;
|
|
465
|
+
let c = y0.get(t);
|
|
466
|
+
return c || (c = (async () => {
|
|
470
467
|
try {
|
|
471
|
-
const
|
|
472
|
-
if (!
|
|
473
|
-
throw new Error(`fetch failed: ${
|
|
474
|
-
const
|
|
475
|
-
return
|
|
468
|
+
const v = await Ct(r, d);
|
|
469
|
+
if (!v.ok)
|
|
470
|
+
throw new Error(`fetch failed: ${v.status} ${v.statusText}`);
|
|
471
|
+
const y = await v.blob();
|
|
472
|
+
return Dt(y.size), t0.set(t, y), lr += y.size, y;
|
|
476
473
|
} finally {
|
|
477
474
|
y0.delete(t);
|
|
478
475
|
}
|
|
479
|
-
})(), y0.set(t,
|
|
476
|
+
})(), y0.set(t, c), c);
|
|
480
477
|
}
|
|
481
|
-
function
|
|
482
|
-
|
|
478
|
+
function bt() {
|
|
479
|
+
t0.clear(), y0.clear(), lr = 0;
|
|
483
480
|
}
|
|
484
|
-
const
|
|
481
|
+
const $e = (r, d) => {
|
|
485
482
|
if (!r) return r;
|
|
486
|
-
const t = (
|
|
483
|
+
const t = (d || "").replace(/\/$/, "");
|
|
487
484
|
if (t && r.startsWith(t))
|
|
488
485
|
return r;
|
|
489
486
|
if (typeof window < "u") {
|
|
490
|
-
const
|
|
491
|
-
if (
|
|
487
|
+
const c = window.location.hostname;
|
|
488
|
+
if (c === "localhost" || c === "127.0.0.1")
|
|
492
489
|
try {
|
|
493
|
-
const
|
|
490
|
+
const v = new URL(r);
|
|
494
491
|
if (t)
|
|
495
492
|
try {
|
|
496
|
-
const
|
|
497
|
-
if (
|
|
493
|
+
const y = new URL(t).origin;
|
|
494
|
+
if (v.origin === y)
|
|
498
495
|
return r;
|
|
499
496
|
} catch {
|
|
500
497
|
}
|
|
501
|
-
if (
|
|
502
|
-
return t ? `${t}${
|
|
498
|
+
if (v.pathname.startsWith("/files/"))
|
|
499
|
+
return t ? `${t}${v.pathname}${v.search}${v.hash}` : `${v.pathname}${v.search}${v.hash}`;
|
|
503
500
|
} catch {
|
|
504
501
|
}
|
|
505
502
|
}
|
|
506
503
|
if (typeof window < "u" && window.location.hostname !== "localhost") return r;
|
|
507
504
|
const e = r.match(/^https?:\/\/([^/]+\.oss[^/]*\.aliyuncs\.com)(.*)$/);
|
|
508
505
|
return e ? `/oss${e[2]}` : r;
|
|
509
|
-
},
|
|
506
|
+
}, mt = (r, d) => {
|
|
510
507
|
if (typeof OffscreenCanvas < "u" && typeof document > "u")
|
|
511
|
-
return new OffscreenCanvas(r,
|
|
508
|
+
return new OffscreenCanvas(r, d);
|
|
512
509
|
const t = document.createElement("canvas");
|
|
513
|
-
return t.width = r, t.height =
|
|
514
|
-
}, w0 = async (r,
|
|
515
|
-
if (!
|
|
510
|
+
return t.width = r, t.height = d, t;
|
|
511
|
+
}, w0 = async (r, d) => {
|
|
512
|
+
if (!d || d <= 0) return r;
|
|
516
513
|
const t = Math.max(r.width, r.height);
|
|
517
|
-
if (t <=
|
|
518
|
-
const e =
|
|
519
|
-
return
|
|
514
|
+
if (t <= d) return r;
|
|
515
|
+
const e = d / t, c = Math.max(1, Math.round(r.width * e)), v = Math.max(1, Math.round(r.height * e)), y = mt(c, v), B = y.getContext("2d");
|
|
516
|
+
return B ? (B.drawImage(r, 0, 0, c, v), r.close?.(), await createImageBitmap(y)) : r;
|
|
520
517
|
};
|
|
521
|
-
async function
|
|
518
|
+
async function _t(r, d, t) {
|
|
522
519
|
if (typeof r == "string")
|
|
523
520
|
try {
|
|
524
|
-
const e =
|
|
525
|
-
let
|
|
521
|
+
const e = $e(r, t);
|
|
522
|
+
let c;
|
|
526
523
|
try {
|
|
527
|
-
|
|
524
|
+
c = await Re(e);
|
|
528
525
|
} catch {
|
|
529
526
|
throw new Error(`加载图片失败: ${r}`);
|
|
530
527
|
}
|
|
531
|
-
if (!
|
|
528
|
+
if (!c.type.startsWith("image/") && c.size === 0)
|
|
532
529
|
throw new Error(`图片数据无效: URL=${r}`);
|
|
533
530
|
try {
|
|
534
|
-
const
|
|
535
|
-
return await w0(
|
|
536
|
-
} catch (
|
|
537
|
-
throw new Error(`图片解码失败: URL=${r}, 错误=${
|
|
531
|
+
const v = await createImageBitmap(c);
|
|
532
|
+
return await w0(v, d);
|
|
533
|
+
} catch (v) {
|
|
534
|
+
throw new Error(`图片解码失败: URL=${r}, 错误=${v instanceof Error ? v.message : v}`);
|
|
538
535
|
}
|
|
539
536
|
} catch (e) {
|
|
540
537
|
throw e instanceof Error ? e : new Error(`加载图片失败: ${r}, ${e}`);
|
|
541
538
|
}
|
|
542
539
|
if (r instanceof HTMLImageElement) {
|
|
543
|
-
if ((!r.complete || r.naturalWidth === 0) && await new Promise((e,
|
|
544
|
-
r.onload = e, r.onerror = () =>
|
|
540
|
+
if ((!r.complete || r.naturalWidth === 0) && await new Promise((e, c) => {
|
|
541
|
+
r.onload = e, r.onerror = () => c(new Error(`图片加载失败: src=${r.src}`)), r.complete && e(null);
|
|
545
542
|
}), r.naturalWidth === 0 || r.naturalHeight === 0)
|
|
546
543
|
throw new Error(`图片尺寸无效: src=${r.src}, width=${r.naturalWidth}, height=${r.naturalHeight}`);
|
|
547
544
|
try {
|
|
548
545
|
const e = await createImageBitmap(r);
|
|
549
|
-
return await w0(e,
|
|
546
|
+
return await w0(e, d);
|
|
550
547
|
} catch (e) {
|
|
551
548
|
throw new Error(`图片解码失败: src=${r.src}, 错误=${e instanceof Error ? e.message : e}`);
|
|
552
549
|
}
|
|
@@ -554,34 +551,34 @@ async function mt(r, l, t) {
|
|
|
554
551
|
if (r instanceof ImageBitmap) {
|
|
555
552
|
if (r.width === 0 || r.height === 0)
|
|
556
553
|
throw new Error(`ImageBitmap 尺寸无效: width=${r.width}, height=${r.height}`);
|
|
557
|
-
return await w0(r,
|
|
554
|
+
return await w0(r, d);
|
|
558
555
|
}
|
|
559
556
|
throw new Error("不支持的图片类型");
|
|
560
557
|
}
|
|
561
|
-
async function
|
|
558
|
+
async function yt(r, d, t) {
|
|
562
559
|
try {
|
|
563
|
-
const e =
|
|
564
|
-
let
|
|
560
|
+
const e = $e(r, t);
|
|
561
|
+
let c;
|
|
565
562
|
try {
|
|
566
|
-
|
|
563
|
+
c = await Re(e);
|
|
567
564
|
} catch {
|
|
568
565
|
throw new Error(`加载图片失败: ${r}`);
|
|
569
566
|
}
|
|
570
|
-
if (!
|
|
567
|
+
if (!c.type.startsWith("image/") && c.size === 0)
|
|
571
568
|
throw new Error(`图片数据无效: URL=${r}`);
|
|
572
569
|
try {
|
|
573
|
-
const
|
|
574
|
-
return await w0(
|
|
575
|
-
} catch (
|
|
576
|
-
throw new Error(`图片解码失败: URL=${r}, 错误=${
|
|
570
|
+
const v = await createImageBitmap(c);
|
|
571
|
+
return await w0(v, d);
|
|
572
|
+
} catch (v) {
|
|
573
|
+
throw new Error(`图片解码失败: URL=${r}, 错误=${v instanceof Error ? v.message : v}`);
|
|
577
574
|
}
|
|
578
575
|
} catch (e) {
|
|
579
576
|
throw e instanceof Error ? e : new Error(`加载图片失败: ${r}, ${e}`);
|
|
580
577
|
}
|
|
581
578
|
}
|
|
582
|
-
function
|
|
579
|
+
function Mr(r) {
|
|
583
580
|
if (!r) return "source-over";
|
|
584
|
-
const
|
|
581
|
+
const d = r.trim().toLowerCase();
|
|
585
582
|
return {
|
|
586
583
|
normal: "source-over",
|
|
587
584
|
multiply: "multiply",
|
|
@@ -607,26 +604,26 @@ function Tr(r) {
|
|
|
607
604
|
"linear dodge": "lighter",
|
|
608
605
|
lighter: "lighter",
|
|
609
606
|
"pass-through": "source-over"
|
|
610
|
-
}[
|
|
607
|
+
}[d] || "source-over";
|
|
611
608
|
}
|
|
612
609
|
var Cr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
613
|
-
function
|
|
610
|
+
function wt(r) {
|
|
614
611
|
if (Object.prototype.hasOwnProperty.call(r, "__esModule")) return r;
|
|
615
|
-
var
|
|
616
|
-
if (typeof
|
|
612
|
+
var d = r.default;
|
|
613
|
+
if (typeof d == "function") {
|
|
617
614
|
var t = function e() {
|
|
618
|
-
var
|
|
615
|
+
var c = !1;
|
|
619
616
|
try {
|
|
620
|
-
|
|
617
|
+
c = this instanceof e;
|
|
621
618
|
} catch {
|
|
622
619
|
}
|
|
623
|
-
return
|
|
620
|
+
return c ? Reflect.construct(d, arguments, this.constructor) : d.apply(this, arguments);
|
|
624
621
|
};
|
|
625
|
-
t.prototype =
|
|
622
|
+
t.prototype = d.prototype;
|
|
626
623
|
} else t = {};
|
|
627
624
|
return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(r).forEach(function(e) {
|
|
628
|
-
var
|
|
629
|
-
Object.defineProperty(t, e,
|
|
625
|
+
var c = Object.getOwnPropertyDescriptor(r, e);
|
|
626
|
+
Object.defineProperty(t, e, c.get ? c : {
|
|
630
627
|
enumerable: !0,
|
|
631
628
|
get: function() {
|
|
632
629
|
return r[e];
|
|
@@ -635,47 +632,47 @@ function yt(r) {
|
|
|
635
632
|
}), t;
|
|
636
633
|
}
|
|
637
634
|
var k0 = { exports: {} };
|
|
638
|
-
function
|
|
635
|
+
function kt(r) {
|
|
639
636
|
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.');
|
|
640
637
|
}
|
|
641
|
-
var S0 = { exports: {} },
|
|
638
|
+
var S0 = { exports: {} }, St = {}, Ht = /* @__PURE__ */ Object.freeze({
|
|
642
639
|
__proto__: null,
|
|
643
|
-
default:
|
|
644
|
-
}),
|
|
640
|
+
default: St
|
|
641
|
+
}), Rt = /* @__PURE__ */ wt(Ht), $t = S0.exports, Nr;
|
|
645
642
|
function M() {
|
|
646
|
-
return
|
|
643
|
+
return Nr || (Nr = 1, (function(r, d) {
|
|
647
644
|
(function(t, e) {
|
|
648
645
|
r.exports = e();
|
|
649
|
-
})(
|
|
650
|
-
var t = t || (function(e,
|
|
651
|
-
var
|
|
652
|
-
if (typeof window < "u" && window.crypto && (
|
|
646
|
+
})($t, function() {
|
|
647
|
+
var t = t || (function(e, c) {
|
|
648
|
+
var v;
|
|
649
|
+
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 Cr < "u" && Cr.crypto && (v = Cr.crypto), !v && typeof kt == "function")
|
|
653
650
|
try {
|
|
654
|
-
|
|
651
|
+
v = Rt;
|
|
655
652
|
} catch {
|
|
656
653
|
}
|
|
657
|
-
var
|
|
658
|
-
if (
|
|
659
|
-
if (typeof
|
|
654
|
+
var y = function() {
|
|
655
|
+
if (v) {
|
|
656
|
+
if (typeof v.getRandomValues == "function")
|
|
660
657
|
try {
|
|
661
|
-
return
|
|
658
|
+
return v.getRandomValues(new Uint32Array(1))[0];
|
|
662
659
|
} catch {
|
|
663
660
|
}
|
|
664
|
-
if (typeof
|
|
661
|
+
if (typeof v.randomBytes == "function")
|
|
665
662
|
try {
|
|
666
|
-
return
|
|
663
|
+
return v.randomBytes(4).readInt32LE();
|
|
667
664
|
} catch {
|
|
668
665
|
}
|
|
669
666
|
}
|
|
670
667
|
throw new Error("Native crypto module could not be used to get secure random number.");
|
|
671
|
-
},
|
|
668
|
+
}, B = Object.create || /* @__PURE__ */ (function() {
|
|
672
669
|
function i() {
|
|
673
670
|
}
|
|
674
671
|
return function(o) {
|
|
675
|
-
var
|
|
676
|
-
return i.prototype = o,
|
|
672
|
+
var l;
|
|
673
|
+
return i.prototype = o, l = new i(), i.prototype = null, l;
|
|
677
674
|
};
|
|
678
|
-
})(),
|
|
675
|
+
})(), C = {}, x = C.lib = {}, n = x.Base = /* @__PURE__ */ (function() {
|
|
679
676
|
return {
|
|
680
677
|
/**
|
|
681
678
|
* Creates a new object that inherits from this object.
|
|
@@ -696,7 +693,7 @@ function M() {
|
|
|
696
693
|
* });
|
|
697
694
|
*/
|
|
698
695
|
extend: function(i) {
|
|
699
|
-
var o =
|
|
696
|
+
var o = B(this);
|
|
700
697
|
return i && o.mixIn(i), (!o.hasOwnProperty("init") || this.init === o.init) && (o.init = function() {
|
|
701
698
|
o.$super.init.apply(this, arguments);
|
|
702
699
|
}), o.init.prototype = o, o.$super = this, o;
|
|
@@ -774,7 +771,7 @@ function M() {
|
|
|
774
771
|
* var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6);
|
|
775
772
|
*/
|
|
776
773
|
init: function(i, o) {
|
|
777
|
-
i = this.words = i || [], o !=
|
|
774
|
+
i = this.words = i || [], o != c ? this.sigBytes = o : this.sigBytes = i.length * 4;
|
|
778
775
|
},
|
|
779
776
|
/**
|
|
780
777
|
* Converts this word array to a string.
|
|
@@ -804,15 +801,15 @@ function M() {
|
|
|
804
801
|
* wordArray1.concat(wordArray2);
|
|
805
802
|
*/
|
|
806
803
|
concat: function(i) {
|
|
807
|
-
var o = this.words,
|
|
804
|
+
var o = this.words, l = i.words, b = this.sigBytes, g = i.sigBytes;
|
|
808
805
|
if (this.clamp(), b % 4)
|
|
809
|
-
for (var
|
|
810
|
-
var k =
|
|
811
|
-
o[b +
|
|
806
|
+
for (var _ = 0; _ < g; _++) {
|
|
807
|
+
var k = l[_ >>> 2] >>> 24 - _ % 4 * 8 & 255;
|
|
808
|
+
o[b + _ >>> 2] |= k << 24 - (b + _) % 4 * 8;
|
|
812
809
|
}
|
|
813
810
|
else
|
|
814
811
|
for (var $ = 0; $ < g; $ += 4)
|
|
815
|
-
o[b + $ >>> 2] =
|
|
812
|
+
o[b + $ >>> 2] = l[$ >>> 2];
|
|
816
813
|
return this.sigBytes += g, this;
|
|
817
814
|
},
|
|
818
815
|
/**
|
|
@@ -853,11 +850,11 @@ function M() {
|
|
|
853
850
|
* var wordArray = CryptoJS.lib.WordArray.random(16);
|
|
854
851
|
*/
|
|
855
852
|
random: function(i) {
|
|
856
|
-
for (var o = [],
|
|
857
|
-
o.push(
|
|
853
|
+
for (var o = [], l = 0; l < i; l += 4)
|
|
854
|
+
o.push(y());
|
|
858
855
|
return new E.init(o, i);
|
|
859
856
|
}
|
|
860
|
-
}), a =
|
|
857
|
+
}), a = C.enc = {}, s = a.Hex = {
|
|
861
858
|
/**
|
|
862
859
|
* Converts a word array to a hex string.
|
|
863
860
|
*
|
|
@@ -872,9 +869,9 @@ function M() {
|
|
|
872
869
|
* var hexString = CryptoJS.enc.Hex.stringify(wordArray);
|
|
873
870
|
*/
|
|
874
871
|
stringify: function(i) {
|
|
875
|
-
for (var o = i.words,
|
|
876
|
-
var
|
|
877
|
-
b.push((
|
|
872
|
+
for (var o = i.words, l = i.sigBytes, b = [], g = 0; g < l; g++) {
|
|
873
|
+
var _ = o[g >>> 2] >>> 24 - g % 4 * 8 & 255;
|
|
874
|
+
b.push((_ >>> 4).toString(16)), b.push((_ & 15).toString(16));
|
|
878
875
|
}
|
|
879
876
|
return b.join("");
|
|
880
877
|
},
|
|
@@ -892,9 +889,9 @@ function M() {
|
|
|
892
889
|
* var wordArray = CryptoJS.enc.Hex.parse(hexString);
|
|
893
890
|
*/
|
|
894
891
|
parse: function(i) {
|
|
895
|
-
for (var o = i.length,
|
|
896
|
-
|
|
897
|
-
return new E.init(
|
|
892
|
+
for (var o = i.length, l = [], b = 0; b < o; b += 2)
|
|
893
|
+
l[b >>> 3] |= parseInt(i.substr(b, 2), 16) << 24 - b % 8 * 4;
|
|
894
|
+
return new E.init(l, o / 2);
|
|
898
895
|
}
|
|
899
896
|
}, u = a.Latin1 = {
|
|
900
897
|
/**
|
|
@@ -911,9 +908,9 @@ function M() {
|
|
|
911
908
|
* var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);
|
|
912
909
|
*/
|
|
913
910
|
stringify: function(i) {
|
|
914
|
-
for (var o = i.words,
|
|
915
|
-
var
|
|
916
|
-
b.push(String.fromCharCode(
|
|
911
|
+
for (var o = i.words, l = i.sigBytes, b = [], g = 0; g < l; g++) {
|
|
912
|
+
var _ = o[g >>> 2] >>> 24 - g % 4 * 8 & 255;
|
|
913
|
+
b.push(String.fromCharCode(_));
|
|
917
914
|
}
|
|
918
915
|
return b.join("");
|
|
919
916
|
},
|
|
@@ -931,9 +928,9 @@ function M() {
|
|
|
931
928
|
* var wordArray = CryptoJS.enc.Latin1.parse(latin1String);
|
|
932
929
|
*/
|
|
933
930
|
parse: function(i) {
|
|
934
|
-
for (var o = i.length,
|
|
935
|
-
|
|
936
|
-
return new E.init(
|
|
931
|
+
for (var o = i.length, l = [], b = 0; b < o; b++)
|
|
932
|
+
l[b >>> 2] |= (i.charCodeAt(b) & 255) << 24 - b % 4 * 8;
|
|
933
|
+
return new E.init(l, o);
|
|
937
934
|
}
|
|
938
935
|
}, p = a.Utf8 = {
|
|
939
936
|
/**
|
|
@@ -972,7 +969,7 @@ function M() {
|
|
|
972
969
|
parse: function(i) {
|
|
973
970
|
return u.parse(unescape(encodeURIComponent(i)));
|
|
974
971
|
}
|
|
975
|
-
},
|
|
972
|
+
}, h = x.BufferedBlockAlgorithm = n.extend({
|
|
976
973
|
/**
|
|
977
974
|
* Resets this block algorithm's data buffer to its initial state.
|
|
978
975
|
*
|
|
@@ -1011,13 +1008,13 @@ function M() {
|
|
|
1011
1008
|
* var processedData = bufferedBlockAlgorithm._process(!!'flush');
|
|
1012
1009
|
*/
|
|
1013
1010
|
_process: function(i) {
|
|
1014
|
-
var o,
|
|
1011
|
+
var o, l = this._data, b = l.words, g = l.sigBytes, _ = this.blockSize, k = _ * 4, $ = g / k;
|
|
1015
1012
|
i ? $ = e.ceil($) : $ = e.max(($ | 0) - this._minBufferSize, 0);
|
|
1016
|
-
var F = $ *
|
|
1013
|
+
var F = $ * _, w = e.min(F * 4, g);
|
|
1017
1014
|
if (F) {
|
|
1018
|
-
for (var H = 0; H < F; H +=
|
|
1015
|
+
for (var H = 0; H < F; H += _)
|
|
1019
1016
|
this._doProcessBlock(b, H);
|
|
1020
|
-
o = b.splice(0, F),
|
|
1017
|
+
o = b.splice(0, F), l.sigBytes -= w;
|
|
1021
1018
|
}
|
|
1022
1019
|
return new E.init(o, w);
|
|
1023
1020
|
},
|
|
@@ -1036,7 +1033,7 @@ function M() {
|
|
|
1036
1033
|
},
|
|
1037
1034
|
_minBufferSize: 0
|
|
1038
1035
|
});
|
|
1039
|
-
x.Hasher =
|
|
1036
|
+
x.Hasher = h.extend({
|
|
1040
1037
|
/**
|
|
1041
1038
|
* Configuration options.
|
|
1042
1039
|
*/
|
|
@@ -1061,7 +1058,7 @@ function M() {
|
|
|
1061
1058
|
* hasher.reset();
|
|
1062
1059
|
*/
|
|
1063
1060
|
reset: function() {
|
|
1064
|
-
|
|
1061
|
+
h.reset.call(this), this._doReset();
|
|
1065
1062
|
},
|
|
1066
1063
|
/**
|
|
1067
1064
|
* Updates this hasher with a message.
|
|
@@ -1112,8 +1109,8 @@ function M() {
|
|
|
1112
1109
|
* var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256);
|
|
1113
1110
|
*/
|
|
1114
1111
|
_createHelper: function(i) {
|
|
1115
|
-
return function(o,
|
|
1116
|
-
return new i.init(
|
|
1112
|
+
return function(o, l) {
|
|
1113
|
+
return new i.init(l).finalize(o);
|
|
1117
1114
|
};
|
|
1118
1115
|
},
|
|
1119
1116
|
/**
|
|
@@ -1130,27 +1127,27 @@ function M() {
|
|
|
1130
1127
|
* var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256);
|
|
1131
1128
|
*/
|
|
1132
1129
|
_createHmacHelper: function(i) {
|
|
1133
|
-
return function(o,
|
|
1134
|
-
return new D.HMAC.init(i,
|
|
1130
|
+
return function(o, l) {
|
|
1131
|
+
return new D.HMAC.init(i, l).finalize(o);
|
|
1135
1132
|
};
|
|
1136
1133
|
}
|
|
1137
1134
|
});
|
|
1138
|
-
var D =
|
|
1139
|
-
return
|
|
1135
|
+
var D = C.algo = {};
|
|
1136
|
+
return C;
|
|
1140
1137
|
})(Math);
|
|
1141
1138
|
return t;
|
|
1142
1139
|
});
|
|
1143
1140
|
})(S0)), S0.exports;
|
|
1144
1141
|
}
|
|
1145
|
-
var H0 = { exports: {} },
|
|
1142
|
+
var H0 = { exports: {} }, Pt = H0.exports, Ur;
|
|
1146
1143
|
function hr() {
|
|
1147
|
-
return
|
|
1144
|
+
return Ur || (Ur = 1, (function(r, d) {
|
|
1148
1145
|
(function(t, e) {
|
|
1149
1146
|
r.exports = e(M());
|
|
1150
|
-
})(
|
|
1147
|
+
})(Pt, function(t) {
|
|
1151
1148
|
return (function(e) {
|
|
1152
|
-
var
|
|
1153
|
-
|
|
1149
|
+
var c = t, v = c.lib, y = v.Base, B = v.WordArray, C = c.x64 = {};
|
|
1150
|
+
C.Word = y.extend({
|
|
1154
1151
|
/**
|
|
1155
1152
|
* Initializes a newly created 64-bit word.
|
|
1156
1153
|
*
|
|
@@ -1313,7 +1310,7 @@ function hr() {
|
|
|
1313
1310
|
// var high = (this.high + word.high + carry) | 0;
|
|
1314
1311
|
// return X64Word.create(high, low);
|
|
1315
1312
|
// }
|
|
1316
|
-
}),
|
|
1313
|
+
}), C.WordArray = y.extend({
|
|
1317
1314
|
/**
|
|
1318
1315
|
* Initializes a newly created word array.
|
|
1319
1316
|
*
|
|
@@ -1351,7 +1348,7 @@ function hr() {
|
|
|
1351
1348
|
var s = x[a];
|
|
1352
1349
|
E.push(s.high), E.push(s.low);
|
|
1353
1350
|
}
|
|
1354
|
-
return
|
|
1351
|
+
return B.create(E, this.sigBytes);
|
|
1355
1352
|
},
|
|
1356
1353
|
/**
|
|
1357
1354
|
* Creates a copy of this word array.
|
|
@@ -1363,7 +1360,7 @@ function hr() {
|
|
|
1363
1360
|
* var clone = x64WordArray.clone();
|
|
1364
1361
|
*/
|
|
1365
1362
|
clone: function() {
|
|
1366
|
-
for (var x =
|
|
1363
|
+
for (var x = y.clone.call(this), n = x.words = this.words.slice(0), E = n.length, a = 0; a < E; a++)
|
|
1367
1364
|
n[a] = n[a].clone();
|
|
1368
1365
|
return x;
|
|
1369
1366
|
}
|
|
@@ -1372,37 +1369,37 @@ function hr() {
|
|
|
1372
1369
|
});
|
|
1373
1370
|
})(H0)), H0.exports;
|
|
1374
1371
|
}
|
|
1375
|
-
var R0 = { exports: {} },
|
|
1376
|
-
function
|
|
1377
|
-
return
|
|
1372
|
+
var R0 = { exports: {} }, zt = R0.exports, jr;
|
|
1373
|
+
function It() {
|
|
1374
|
+
return jr || (jr = 1, (function(r, d) {
|
|
1378
1375
|
(function(t, e) {
|
|
1379
1376
|
r.exports = e(M());
|
|
1380
|
-
})(
|
|
1377
|
+
})(zt, function(t) {
|
|
1381
1378
|
return (function() {
|
|
1382
1379
|
if (typeof ArrayBuffer == "function") {
|
|
1383
|
-
var e = t,
|
|
1384
|
-
if (
|
|
1385
|
-
for (var x =
|
|
1386
|
-
n[E >>> 2] |=
|
|
1387
|
-
|
|
1380
|
+
var e = t, c = e.lib, v = c.WordArray, y = v.init, B = v.init = function(C) {
|
|
1381
|
+
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) {
|
|
1382
|
+
for (var x = C.byteLength, n = [], E = 0; E < x; E++)
|
|
1383
|
+
n[E >>> 2] |= C[E] << 24 - E % 4 * 8;
|
|
1384
|
+
y.call(this, n, x);
|
|
1388
1385
|
} else
|
|
1389
|
-
|
|
1386
|
+
y.apply(this, arguments);
|
|
1390
1387
|
};
|
|
1391
|
-
|
|
1388
|
+
B.prototype = v;
|
|
1392
1389
|
}
|
|
1393
1390
|
})(), t.lib.WordArray;
|
|
1394
1391
|
});
|
|
1395
1392
|
})(R0)), R0.exports;
|
|
1396
1393
|
}
|
|
1397
|
-
var $0 = { exports: {} }, Wt = $0.exports,
|
|
1398
|
-
function
|
|
1399
|
-
return
|
|
1394
|
+
var $0 = { exports: {} }, Wt = $0.exports, Gr;
|
|
1395
|
+
function Lt() {
|
|
1396
|
+
return Gr || (Gr = 1, (function(r, d) {
|
|
1400
1397
|
(function(t, e) {
|
|
1401
1398
|
r.exports = e(M());
|
|
1402
1399
|
})(Wt, function(t) {
|
|
1403
1400
|
return (function() {
|
|
1404
|
-
var e = t,
|
|
1405
|
-
|
|
1401
|
+
var e = t, c = e.lib, v = c.WordArray, y = e.enc;
|
|
1402
|
+
y.Utf16 = y.Utf16BE = {
|
|
1406
1403
|
/**
|
|
1407
1404
|
* Converts a word array to a UTF-16 BE string.
|
|
1408
1405
|
*
|
|
@@ -1416,8 +1413,8 @@ function It() {
|
|
|
1416
1413
|
*
|
|
1417
1414
|
* var utf16String = CryptoJS.enc.Utf16.stringify(wordArray);
|
|
1418
1415
|
*/
|
|
1419
|
-
stringify: function(
|
|
1420
|
-
for (var x =
|
|
1416
|
+
stringify: function(C) {
|
|
1417
|
+
for (var x = C.words, n = C.sigBytes, E = [], a = 0; a < n; a += 2) {
|
|
1421
1418
|
var s = x[a >>> 2] >>> 16 - a % 4 * 8 & 65535;
|
|
1422
1419
|
E.push(String.fromCharCode(s));
|
|
1423
1420
|
}
|
|
@@ -1436,12 +1433,12 @@ function It() {
|
|
|
1436
1433
|
*
|
|
1437
1434
|
* var wordArray = CryptoJS.enc.Utf16.parse(utf16String);
|
|
1438
1435
|
*/
|
|
1439
|
-
parse: function(
|
|
1440
|
-
for (var x =
|
|
1441
|
-
n[E >>> 1] |=
|
|
1442
|
-
return
|
|
1436
|
+
parse: function(C) {
|
|
1437
|
+
for (var x = C.length, n = [], E = 0; E < x; E++)
|
|
1438
|
+
n[E >>> 1] |= C.charCodeAt(E) << 16 - E % 2 * 16;
|
|
1439
|
+
return v.create(n, x * 2);
|
|
1443
1440
|
}
|
|
1444
|
-
},
|
|
1441
|
+
}, y.Utf16LE = {
|
|
1445
1442
|
/**
|
|
1446
1443
|
* Converts a word array to a UTF-16 LE string.
|
|
1447
1444
|
*
|
|
@@ -1455,9 +1452,9 @@ function It() {
|
|
|
1455
1452
|
*
|
|
1456
1453
|
* var utf16Str = CryptoJS.enc.Utf16LE.stringify(wordArray);
|
|
1457
1454
|
*/
|
|
1458
|
-
stringify: function(
|
|
1459
|
-
for (var x =
|
|
1460
|
-
var s =
|
|
1455
|
+
stringify: function(C) {
|
|
1456
|
+
for (var x = C.words, n = C.sigBytes, E = [], a = 0; a < n; a += 2) {
|
|
1457
|
+
var s = B(x[a >>> 2] >>> 16 - a % 4 * 8 & 65535);
|
|
1461
1458
|
E.push(String.fromCharCode(s));
|
|
1462
1459
|
}
|
|
1463
1460
|
return E.join("");
|
|
@@ -1475,28 +1472,28 @@ function It() {
|
|
|
1475
1472
|
*
|
|
1476
1473
|
* var wordArray = CryptoJS.enc.Utf16LE.parse(utf16Str);
|
|
1477
1474
|
*/
|
|
1478
|
-
parse: function(
|
|
1479
|
-
for (var x =
|
|
1480
|
-
n[E >>> 1] |= C
|
|
1481
|
-
return
|
|
1475
|
+
parse: function(C) {
|
|
1476
|
+
for (var x = C.length, n = [], E = 0; E < x; E++)
|
|
1477
|
+
n[E >>> 1] |= B(C.charCodeAt(E) << 16 - E % 2 * 16);
|
|
1478
|
+
return v.create(n, x * 2);
|
|
1482
1479
|
}
|
|
1483
1480
|
};
|
|
1484
|
-
function C
|
|
1485
|
-
return
|
|
1481
|
+
function B(C) {
|
|
1482
|
+
return C << 8 & 4278255360 | C >>> 8 & 16711935;
|
|
1486
1483
|
}
|
|
1487
1484
|
})(), t.enc.Utf16;
|
|
1488
1485
|
});
|
|
1489
1486
|
})($0)), $0.exports;
|
|
1490
1487
|
}
|
|
1491
|
-
var P0 = { exports: {} },
|
|
1488
|
+
var P0 = { exports: {} }, Ot = P0.exports, Kr;
|
|
1492
1489
|
function c0() {
|
|
1493
|
-
return
|
|
1490
|
+
return Kr || (Kr = 1, (function(r, d) {
|
|
1494
1491
|
(function(t, e) {
|
|
1495
1492
|
r.exports = e(M());
|
|
1496
|
-
})(
|
|
1493
|
+
})(Ot, function(t) {
|
|
1497
1494
|
return (function() {
|
|
1498
|
-
var e = t,
|
|
1499
|
-
|
|
1495
|
+
var e = t, c = e.lib, v = c.WordArray, y = e.enc;
|
|
1496
|
+
y.Base64 = {
|
|
1500
1497
|
/**
|
|
1501
1498
|
* Converts a word array to a Base64 string.
|
|
1502
1499
|
*
|
|
@@ -1510,11 +1507,11 @@ function c0() {
|
|
|
1510
1507
|
*
|
|
1511
1508
|
* var base64String = CryptoJS.enc.Base64.stringify(wordArray);
|
|
1512
1509
|
*/
|
|
1513
|
-
stringify: function(
|
|
1514
|
-
var x =
|
|
1515
|
-
|
|
1510
|
+
stringify: function(C) {
|
|
1511
|
+
var x = C.words, n = C.sigBytes, E = this._map;
|
|
1512
|
+
C.clamp();
|
|
1516
1513
|
for (var a = [], s = 0; s < n; s += 3)
|
|
1517
|
-
for (var u = x[s >>> 2] >>> 24 - s % 4 * 8 & 255, p = x[s + 1 >>> 2] >>> 24 - (s + 1) % 4 * 8 & 255,
|
|
1514
|
+
for (var u = x[s >>> 2] >>> 24 - s % 4 * 8 & 255, p = x[s + 1 >>> 2] >>> 24 - (s + 1) % 4 * 8 & 255, h = x[s + 2 >>> 2] >>> 24 - (s + 2) % 4 * 8 & 255, D = u << 16 | p << 8 | h, i = 0; i < 4 && s + i * 0.75 < n; i++)
|
|
1518
1515
|
a.push(E.charAt(D >>> 6 * (3 - i) & 63));
|
|
1519
1516
|
var o = E.charAt(64);
|
|
1520
1517
|
if (o)
|
|
@@ -1535,8 +1532,8 @@ function c0() {
|
|
|
1535
1532
|
*
|
|
1536
1533
|
* var wordArray = CryptoJS.enc.Base64.parse(base64String);
|
|
1537
1534
|
*/
|
|
1538
|
-
parse: function(
|
|
1539
|
-
var x =
|
|
1535
|
+
parse: function(C) {
|
|
1536
|
+
var x = C.length, n = this._map, E = this._reverseMap;
|
|
1540
1537
|
if (!E) {
|
|
1541
1538
|
E = this._reverseMap = [];
|
|
1542
1539
|
for (var a = 0; a < n.length; a++)
|
|
@@ -1544,34 +1541,34 @@ function c0() {
|
|
|
1544
1541
|
}
|
|
1545
1542
|
var s = n.charAt(64);
|
|
1546
1543
|
if (s) {
|
|
1547
|
-
var u =
|
|
1544
|
+
var u = C.indexOf(s);
|
|
1548
1545
|
u !== -1 && (x = u);
|
|
1549
1546
|
}
|
|
1550
|
-
return C
|
|
1547
|
+
return B(C, x, E);
|
|
1551
1548
|
},
|
|
1552
1549
|
_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
|
|
1553
1550
|
};
|
|
1554
|
-
function C
|
|
1551
|
+
function B(C, x, n) {
|
|
1555
1552
|
for (var E = [], a = 0, s = 0; s < x; s++)
|
|
1556
1553
|
if (s % 4) {
|
|
1557
|
-
var u = n[
|
|
1558
|
-
E[a >>> 2] |=
|
|
1554
|
+
var u = n[C.charCodeAt(s - 1)] << s % 4 * 2, p = n[C.charCodeAt(s)] >>> 6 - s % 4 * 2, h = u | p;
|
|
1555
|
+
E[a >>> 2] |= h << 24 - a % 4 * 8, a++;
|
|
1559
1556
|
}
|
|
1560
|
-
return
|
|
1557
|
+
return v.create(E, a);
|
|
1561
1558
|
}
|
|
1562
1559
|
})(), t.enc.Base64;
|
|
1563
1560
|
});
|
|
1564
1561
|
})(P0)), P0.exports;
|
|
1565
1562
|
}
|
|
1566
|
-
var z0 = { exports: {} },
|
|
1567
|
-
function
|
|
1568
|
-
return
|
|
1563
|
+
var z0 = { exports: {} }, qt = z0.exports, Xr;
|
|
1564
|
+
function Tt() {
|
|
1565
|
+
return Xr || (Xr = 1, (function(r, d) {
|
|
1569
1566
|
(function(t, e) {
|
|
1570
1567
|
r.exports = e(M());
|
|
1571
|
-
})(
|
|
1568
|
+
})(qt, function(t) {
|
|
1572
1569
|
return (function() {
|
|
1573
|
-
var e = t,
|
|
1574
|
-
|
|
1570
|
+
var e = t, c = e.lib, v = c.WordArray, y = e.enc;
|
|
1571
|
+
y.Base64url = {
|
|
1575
1572
|
/**
|
|
1576
1573
|
* Converts a word array to a Base64url string.
|
|
1577
1574
|
*
|
|
@@ -1587,17 +1584,17 @@ function qt() {
|
|
|
1587
1584
|
*
|
|
1588
1585
|
* var base64String = CryptoJS.enc.Base64url.stringify(wordArray);
|
|
1589
1586
|
*/
|
|
1590
|
-
stringify: function(
|
|
1587
|
+
stringify: function(C, x) {
|
|
1591
1588
|
x === void 0 && (x = !0);
|
|
1592
|
-
var n =
|
|
1593
|
-
|
|
1589
|
+
var n = C.words, E = C.sigBytes, a = x ? this._safe_map : this._map;
|
|
1590
|
+
C.clamp();
|
|
1594
1591
|
for (var s = [], u = 0; u < E; u += 3)
|
|
1595
|
-
for (var p = n[u >>> 2] >>> 24 - u % 4 * 8 & 255,
|
|
1592
|
+
for (var p = n[u >>> 2] >>> 24 - u % 4 * 8 & 255, h = n[u + 1 >>> 2] >>> 24 - (u + 1) % 4 * 8 & 255, D = n[u + 2 >>> 2] >>> 24 - (u + 2) % 4 * 8 & 255, i = p << 16 | h << 8 | D, o = 0; o < 4 && u + o * 0.75 < E; o++)
|
|
1596
1593
|
s.push(a.charAt(i >>> 6 * (3 - o) & 63));
|
|
1597
|
-
var
|
|
1598
|
-
if (
|
|
1594
|
+
var l = a.charAt(64);
|
|
1595
|
+
if (l)
|
|
1599
1596
|
for (; s.length % 4; )
|
|
1600
|
-
s.push(
|
|
1597
|
+
s.push(l);
|
|
1601
1598
|
return s.join("");
|
|
1602
1599
|
},
|
|
1603
1600
|
/**
|
|
@@ -1615,9 +1612,9 @@ function qt() {
|
|
|
1615
1612
|
*
|
|
1616
1613
|
* var wordArray = CryptoJS.enc.Base64url.parse(base64String);
|
|
1617
1614
|
*/
|
|
1618
|
-
parse: function(
|
|
1615
|
+
parse: function(C, x) {
|
|
1619
1616
|
x === void 0 && (x = !0);
|
|
1620
|
-
var n =
|
|
1617
|
+
var n = C.length, E = x ? this._safe_map : this._map, a = this._reverseMap;
|
|
1621
1618
|
if (!a) {
|
|
1622
1619
|
a = this._reverseMap = [];
|
|
1623
1620
|
for (var s = 0; s < E.length; s++)
|
|
@@ -1625,102 +1622,102 @@ function qt() {
|
|
|
1625
1622
|
}
|
|
1626
1623
|
var u = E.charAt(64);
|
|
1627
1624
|
if (u) {
|
|
1628
|
-
var p =
|
|
1625
|
+
var p = C.indexOf(u);
|
|
1629
1626
|
p !== -1 && (n = p);
|
|
1630
1627
|
}
|
|
1631
|
-
return C
|
|
1628
|
+
return B(C, n, a);
|
|
1632
1629
|
},
|
|
1633
1630
|
_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
|
|
1634
1631
|
_safe_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"
|
|
1635
1632
|
};
|
|
1636
|
-
function C
|
|
1633
|
+
function B(C, x, n) {
|
|
1637
1634
|
for (var E = [], a = 0, s = 0; s < x; s++)
|
|
1638
1635
|
if (s % 4) {
|
|
1639
|
-
var u = n[
|
|
1640
|
-
E[a >>> 2] |=
|
|
1636
|
+
var u = n[C.charCodeAt(s - 1)] << s % 4 * 2, p = n[C.charCodeAt(s)] >>> 6 - s % 4 * 2, h = u | p;
|
|
1637
|
+
E[a >>> 2] |= h << 24 - a % 4 * 8, a++;
|
|
1641
1638
|
}
|
|
1642
|
-
return
|
|
1639
|
+
return v.create(E, a);
|
|
1643
1640
|
}
|
|
1644
1641
|
})(), t.enc.Base64url;
|
|
1645
1642
|
});
|
|
1646
1643
|
})(z0)), z0.exports;
|
|
1647
1644
|
}
|
|
1648
|
-
var
|
|
1645
|
+
var I0 = { exports: {} }, Mt = I0.exports, Yr;
|
|
1649
1646
|
function f0() {
|
|
1650
|
-
return
|
|
1647
|
+
return Yr || (Yr = 1, (function(r, d) {
|
|
1651
1648
|
(function(t, e) {
|
|
1652
1649
|
r.exports = e(M());
|
|
1653
|
-
})(
|
|
1650
|
+
})(Mt, function(t) {
|
|
1654
1651
|
return (function(e) {
|
|
1655
|
-
var
|
|
1652
|
+
var c = t, v = c.lib, y = v.WordArray, B = v.Hasher, C = c.algo, x = [];
|
|
1656
1653
|
(function() {
|
|
1657
1654
|
for (var p = 0; p < 64; p++)
|
|
1658
1655
|
x[p] = e.abs(e.sin(p + 1)) * 4294967296 | 0;
|
|
1659
1656
|
})();
|
|
1660
|
-
var n =
|
|
1657
|
+
var n = C.MD5 = B.extend({
|
|
1661
1658
|
_doReset: function() {
|
|
1662
|
-
this._hash = new
|
|
1659
|
+
this._hash = new y.init([
|
|
1663
1660
|
1732584193,
|
|
1664
1661
|
4023233417,
|
|
1665
1662
|
2562383102,
|
|
1666
1663
|
271733878
|
|
1667
1664
|
]);
|
|
1668
1665
|
},
|
|
1669
|
-
_doProcessBlock: function(p,
|
|
1666
|
+
_doProcessBlock: function(p, h) {
|
|
1670
1667
|
for (var D = 0; D < 16; D++) {
|
|
1671
|
-
var i =
|
|
1668
|
+
var i = h + D, o = p[i];
|
|
1672
1669
|
p[i] = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360;
|
|
1673
1670
|
}
|
|
1674
|
-
var
|
|
1675
|
-
S = E(S,
|
|
1671
|
+
var l = this._hash.words, b = p[h + 0], g = p[h + 1], _ = p[h + 2], k = p[h + 3], $ = p[h + 4], F = p[h + 5], w = p[h + 6], H = p[h + 7], R = p[h + 8], z = p[h + 9], O = p[h + 10], q = p[h + 11], U = p[h + 12], T = p[h + 13], N = p[h + 14], j = p[h + 15], S = l[0], f = l[1], A = l[2], m = l[3];
|
|
1672
|
+
S = E(S, f, A, m, b, 7, x[0]), m = E(m, S, f, A, g, 12, x[1]), A = E(A, m, S, f, _, 17, x[2]), f = E(f, A, m, S, k, 22, x[3]), S = E(S, f, A, m, $, 7, x[4]), m = E(m, S, f, A, F, 12, x[5]), A = E(A, m, S, f, w, 17, x[6]), f = E(f, A, m, S, H, 22, x[7]), S = E(S, f, A, m, R, 7, x[8]), m = E(m, S, f, A, z, 12, x[9]), A = E(A, m, S, f, O, 17, x[10]), f = E(f, A, m, S, q, 22, x[11]), S = E(S, f, A, m, U, 7, x[12]), m = E(m, S, f, A, T, 12, x[13]), A = E(A, m, S, f, N, 17, x[14]), f = E(f, A, m, S, j, 22, x[15]), S = a(S, f, A, m, g, 5, x[16]), m = a(m, S, f, A, w, 9, x[17]), A = a(A, m, S, f, q, 14, x[18]), f = a(f, A, m, S, b, 20, x[19]), S = a(S, f, A, m, F, 5, x[20]), m = a(m, S, f, A, O, 9, x[21]), A = a(A, m, S, f, j, 14, x[22]), f = a(f, A, m, S, $, 20, x[23]), S = a(S, f, A, m, z, 5, x[24]), m = a(m, S, f, A, N, 9, x[25]), A = a(A, m, S, f, k, 14, x[26]), f = a(f, A, m, S, R, 20, x[27]), S = a(S, f, A, m, T, 5, x[28]), m = a(m, S, f, A, _, 9, x[29]), A = a(A, m, S, f, H, 14, x[30]), f = a(f, A, m, S, U, 20, x[31]), S = s(S, f, A, m, F, 4, x[32]), m = s(m, S, f, A, R, 11, x[33]), A = s(A, m, S, f, q, 16, x[34]), f = s(f, A, m, S, N, 23, x[35]), S = s(S, f, A, m, g, 4, x[36]), m = s(m, S, f, A, $, 11, x[37]), A = s(A, m, S, f, H, 16, x[38]), f = s(f, A, m, S, O, 23, x[39]), S = s(S, f, A, m, T, 4, x[40]), m = s(m, S, f, A, b, 11, x[41]), A = s(A, m, S, f, k, 16, x[42]), f = s(f, A, m, S, w, 23, x[43]), S = s(S, f, A, m, z, 4, x[44]), m = s(m, S, f, A, U, 11, x[45]), A = s(A, m, S, f, j, 16, x[46]), f = s(f, A, m, S, _, 23, x[47]), S = u(S, f, A, m, b, 6, x[48]), m = u(m, S, f, A, H, 10, x[49]), A = u(A, m, S, f, N, 15, x[50]), f = u(f, A, m, S, F, 21, x[51]), S = u(S, f, A, m, U, 6, x[52]), m = u(m, S, f, A, k, 10, x[53]), A = u(A, m, S, f, O, 15, x[54]), f = u(f, A, m, S, g, 21, x[55]), S = u(S, f, A, m, R, 6, x[56]), m = u(m, S, f, A, j, 10, x[57]), A = u(A, m, S, f, w, 15, x[58]), f = u(f, A, m, S, T, 21, x[59]), S = u(S, f, A, m, $, 6, x[60]), m = u(m, S, f, A, q, 10, x[61]), A = u(A, m, S, f, _, 15, x[62]), f = u(f, A, m, S, z, 21, x[63]), l[0] = l[0] + S | 0, l[1] = l[1] + f | 0, l[2] = l[2] + A | 0, l[3] = l[3] + m | 0;
|
|
1676
1673
|
},
|
|
1677
1674
|
_doFinalize: function() {
|
|
1678
|
-
var p = this._data,
|
|
1679
|
-
|
|
1680
|
-
var o = e.floor(D / 4294967296),
|
|
1681
|
-
|
|
1682
|
-
for (var b = this._hash, g = b.words,
|
|
1683
|
-
var k = g[
|
|
1684
|
-
g[
|
|
1675
|
+
var p = this._data, h = p.words, D = this._nDataBytes * 8, i = p.sigBytes * 8;
|
|
1676
|
+
h[i >>> 5] |= 128 << 24 - i % 32;
|
|
1677
|
+
var o = e.floor(D / 4294967296), l = D;
|
|
1678
|
+
h[(i + 64 >>> 9 << 4) + 15] = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360, h[(i + 64 >>> 9 << 4) + 14] = (l << 8 | l >>> 24) & 16711935 | (l << 24 | l >>> 8) & 4278255360, p.sigBytes = (h.length + 1) * 4, this._process();
|
|
1679
|
+
for (var b = this._hash, g = b.words, _ = 0; _ < 4; _++) {
|
|
1680
|
+
var k = g[_];
|
|
1681
|
+
g[_] = (k << 8 | k >>> 24) & 16711935 | (k << 24 | k >>> 8) & 4278255360;
|
|
1685
1682
|
}
|
|
1686
1683
|
return b;
|
|
1687
1684
|
},
|
|
1688
1685
|
clone: function() {
|
|
1689
|
-
var p =
|
|
1686
|
+
var p = B.clone.call(this);
|
|
1690
1687
|
return p._hash = this._hash.clone(), p;
|
|
1691
1688
|
}
|
|
1692
1689
|
});
|
|
1693
|
-
function E(p,
|
|
1694
|
-
var g = p + (
|
|
1695
|
-
return (g <<
|
|
1690
|
+
function E(p, h, D, i, o, l, b) {
|
|
1691
|
+
var g = p + (h & D | ~h & i) + o + b;
|
|
1692
|
+
return (g << l | g >>> 32 - l) + h;
|
|
1696
1693
|
}
|
|
1697
|
-
function a(p,
|
|
1698
|
-
var g = p + (
|
|
1699
|
-
return (g <<
|
|
1694
|
+
function a(p, h, D, i, o, l, b) {
|
|
1695
|
+
var g = p + (h & i | D & ~i) + o + b;
|
|
1696
|
+
return (g << l | g >>> 32 - l) + h;
|
|
1700
1697
|
}
|
|
1701
|
-
function s(p,
|
|
1702
|
-
var g = p + (
|
|
1703
|
-
return (g <<
|
|
1698
|
+
function s(p, h, D, i, o, l, b) {
|
|
1699
|
+
var g = p + (h ^ D ^ i) + o + b;
|
|
1700
|
+
return (g << l | g >>> 32 - l) + h;
|
|
1704
1701
|
}
|
|
1705
|
-
function u(p,
|
|
1706
|
-
var g = p + (D ^ (
|
|
1707
|
-
return (g <<
|
|
1702
|
+
function u(p, h, D, i, o, l, b) {
|
|
1703
|
+
var g = p + (D ^ (h | ~i)) + o + b;
|
|
1704
|
+
return (g << l | g >>> 32 - l) + h;
|
|
1708
1705
|
}
|
|
1709
|
-
|
|
1706
|
+
c.MD5 = B._createHelper(n), c.HmacMD5 = B._createHmacHelper(n);
|
|
1710
1707
|
})(Math), t.MD5;
|
|
1711
1708
|
});
|
|
1712
|
-
})(
|
|
1709
|
+
})(I0)), I0.exports;
|
|
1713
1710
|
}
|
|
1714
|
-
var
|
|
1715
|
-
function
|
|
1716
|
-
return Zr || (Zr = 1, (function(r,
|
|
1711
|
+
var W0 = { exports: {} }, Nt = W0.exports, Zr;
|
|
1712
|
+
function Pe() {
|
|
1713
|
+
return Zr || (Zr = 1, (function(r, d) {
|
|
1717
1714
|
(function(t, e) {
|
|
1718
1715
|
r.exports = e(M());
|
|
1719
|
-
})(
|
|
1716
|
+
})(Nt, function(t) {
|
|
1720
1717
|
return (function() {
|
|
1721
|
-
var e = t,
|
|
1718
|
+
var e = t, c = e.lib, v = c.WordArray, y = c.Hasher, B = e.algo, C = [], x = B.SHA1 = y.extend({
|
|
1722
1719
|
_doReset: function() {
|
|
1723
|
-
this._hash = new
|
|
1720
|
+
this._hash = new v.init([
|
|
1724
1721
|
1732584193,
|
|
1725
1722
|
4023233417,
|
|
1726
1723
|
2562383102,
|
|
@@ -1729,40 +1726,40 @@ function $e() {
|
|
|
1729
1726
|
]);
|
|
1730
1727
|
},
|
|
1731
1728
|
_doProcessBlock: function(n, E) {
|
|
1732
|
-
for (var a = this._hash.words, s = a[0], u = a[1], p = a[2],
|
|
1729
|
+
for (var a = this._hash.words, s = a[0], u = a[1], p = a[2], h = a[3], D = a[4], i = 0; i < 80; i++) {
|
|
1733
1730
|
if (i < 16)
|
|
1734
|
-
|
|
1731
|
+
C[i] = n[E + i] | 0;
|
|
1735
1732
|
else {
|
|
1736
|
-
var o =
|
|
1737
|
-
|
|
1733
|
+
var o = C[i - 3] ^ C[i - 8] ^ C[i - 14] ^ C[i - 16];
|
|
1734
|
+
C[i] = o << 1 | o >>> 31;
|
|
1738
1735
|
}
|
|
1739
|
-
var
|
|
1740
|
-
i < 20 ?
|
|
1736
|
+
var l = (s << 5 | s >>> 27) + D + C[i];
|
|
1737
|
+
i < 20 ? l += (u & p | ~u & h) + 1518500249 : i < 40 ? l += (u ^ p ^ h) + 1859775393 : i < 60 ? l += (u & p | u & h | p & h) - 1894007588 : l += (u ^ p ^ h) - 899497514, D = h, h = p, p = u << 30 | u >>> 2, u = s, s = l;
|
|
1741
1738
|
}
|
|
1742
|
-
a[0] = a[0] + s | 0, a[1] = a[1] + u | 0, a[2] = a[2] + p | 0, a[3] = a[3] +
|
|
1739
|
+
a[0] = a[0] + s | 0, a[1] = a[1] + u | 0, a[2] = a[2] + p | 0, a[3] = a[3] + h | 0, a[4] = a[4] + D | 0;
|
|
1743
1740
|
},
|
|
1744
1741
|
_doFinalize: function() {
|
|
1745
1742
|
var n = this._data, E = n.words, a = this._nDataBytes * 8, s = n.sigBytes * 8;
|
|
1746
1743
|
return E[s >>> 5] |= 128 << 24 - s % 32, E[(s + 64 >>> 9 << 4) + 14] = Math.floor(a / 4294967296), E[(s + 64 >>> 9 << 4) + 15] = a, n.sigBytes = E.length * 4, this._process(), this._hash;
|
|
1747
1744
|
},
|
|
1748
1745
|
clone: function() {
|
|
1749
|
-
var n =
|
|
1746
|
+
var n = y.clone.call(this);
|
|
1750
1747
|
return n._hash = this._hash.clone(), n;
|
|
1751
1748
|
}
|
|
1752
1749
|
});
|
|
1753
|
-
e.SHA1 =
|
|
1750
|
+
e.SHA1 = y._createHelper(x), e.HmacSHA1 = y._createHmacHelper(x);
|
|
1754
1751
|
})(), t.SHA1;
|
|
1755
1752
|
});
|
|
1756
|
-
})(
|
|
1753
|
+
})(W0)), W0.exports;
|
|
1757
1754
|
}
|
|
1758
|
-
var L0 = { exports: {} },
|
|
1759
|
-
function
|
|
1760
|
-
return
|
|
1755
|
+
var L0 = { exports: {} }, Ut = L0.exports, Qr;
|
|
1756
|
+
function mr() {
|
|
1757
|
+
return Qr || (Qr = 1, (function(r, d) {
|
|
1761
1758
|
(function(t, e) {
|
|
1762
1759
|
r.exports = e(M());
|
|
1763
|
-
})(
|
|
1760
|
+
})(Ut, function(t) {
|
|
1764
1761
|
return (function(e) {
|
|
1765
|
-
var
|
|
1762
|
+
var c = t, v = c.lib, y = v.WordArray, B = v.Hasher, C = c.algo, x = [], n = [];
|
|
1766
1763
|
(function() {
|
|
1767
1764
|
function s(D) {
|
|
1768
1765
|
for (var i = e.sqrt(D), o = 2; o <= i; o++)
|
|
@@ -1773,50 +1770,50 @@ function br() {
|
|
|
1773
1770
|
function u(D) {
|
|
1774
1771
|
return (D - (D | 0)) * 4294967296 | 0;
|
|
1775
1772
|
}
|
|
1776
|
-
for (var p = 2,
|
|
1777
|
-
s(p) && (
|
|
1773
|
+
for (var p = 2, h = 0; h < 64; )
|
|
1774
|
+
s(p) && (h < 8 && (x[h] = u(e.pow(p, 1 / 2))), n[h] = u(e.pow(p, 1 / 3)), h++), p++;
|
|
1778
1775
|
})();
|
|
1779
|
-
var E = [], a =
|
|
1776
|
+
var E = [], a = C.SHA256 = B.extend({
|
|
1780
1777
|
_doReset: function() {
|
|
1781
|
-
this._hash = new
|
|
1778
|
+
this._hash = new y.init(x.slice(0));
|
|
1782
1779
|
},
|
|
1783
1780
|
_doProcessBlock: function(s, u) {
|
|
1784
|
-
for (var p = this._hash.words,
|
|
1781
|
+
for (var p = this._hash.words, h = p[0], D = p[1], i = p[2], o = p[3], l = p[4], b = p[5], g = p[6], _ = p[7], k = 0; k < 64; k++) {
|
|
1785
1782
|
if (k < 16)
|
|
1786
1783
|
E[k] = s[u + k] | 0;
|
|
1787
1784
|
else {
|
|
1788
1785
|
var $ = E[k - 15], F = ($ << 25 | $ >>> 7) ^ ($ << 14 | $ >>> 18) ^ $ >>> 3, w = E[k - 2], H = (w << 15 | w >>> 17) ^ (w << 13 | w >>> 19) ^ w >>> 10;
|
|
1789
1786
|
E[k] = F + E[k - 7] + H + E[k - 16];
|
|
1790
1787
|
}
|
|
1791
|
-
var R =
|
|
1792
|
-
|
|
1788
|
+
var R = l & b ^ ~l & g, z = h & D ^ h & i ^ D & i, O = (h << 30 | h >>> 2) ^ (h << 19 | h >>> 13) ^ (h << 10 | h >>> 22), q = (l << 26 | l >>> 6) ^ (l << 21 | l >>> 11) ^ (l << 7 | l >>> 25), U = _ + q + R + n[k] + E[k], T = O + z;
|
|
1789
|
+
_ = g, g = b, b = l, l = o + U | 0, o = i, i = D, D = h, h = U + T | 0;
|
|
1793
1790
|
}
|
|
1794
|
-
p[0] = p[0] +
|
|
1791
|
+
p[0] = p[0] + h | 0, p[1] = p[1] + D | 0, p[2] = p[2] + i | 0, p[3] = p[3] + o | 0, p[4] = p[4] + l | 0, p[5] = p[5] + b | 0, p[6] = p[6] + g | 0, p[7] = p[7] + _ | 0;
|
|
1795
1792
|
},
|
|
1796
1793
|
_doFinalize: function() {
|
|
1797
|
-
var s = this._data, u = s.words, p = this._nDataBytes * 8,
|
|
1798
|
-
return u[
|
|
1794
|
+
var s = this._data, u = s.words, p = this._nDataBytes * 8, h = s.sigBytes * 8;
|
|
1795
|
+
return u[h >>> 5] |= 128 << 24 - h % 32, u[(h + 64 >>> 9 << 4) + 14] = e.floor(p / 4294967296), u[(h + 64 >>> 9 << 4) + 15] = p, s.sigBytes = u.length * 4, this._process(), this._hash;
|
|
1799
1796
|
},
|
|
1800
1797
|
clone: function() {
|
|
1801
|
-
var s =
|
|
1798
|
+
var s = B.clone.call(this);
|
|
1802
1799
|
return s._hash = this._hash.clone(), s;
|
|
1803
1800
|
}
|
|
1804
1801
|
});
|
|
1805
|
-
|
|
1802
|
+
c.SHA256 = B._createHelper(a), c.HmacSHA256 = B._createHmacHelper(a);
|
|
1806
1803
|
})(Math), t.SHA256;
|
|
1807
1804
|
});
|
|
1808
1805
|
})(L0)), L0.exports;
|
|
1809
1806
|
}
|
|
1810
|
-
var O0 = { exports: {} },
|
|
1811
|
-
function
|
|
1812
|
-
return
|
|
1813
|
-
(function(t, e,
|
|
1814
|
-
r.exports = e(M(),
|
|
1815
|
-
})(
|
|
1807
|
+
var O0 = { exports: {} }, jt = O0.exports, Vr;
|
|
1808
|
+
function Gt() {
|
|
1809
|
+
return Vr || (Vr = 1, (function(r, d) {
|
|
1810
|
+
(function(t, e, c) {
|
|
1811
|
+
r.exports = e(M(), mr());
|
|
1812
|
+
})(jt, function(t) {
|
|
1816
1813
|
return (function() {
|
|
1817
|
-
var e = t,
|
|
1814
|
+
var e = t, c = e.lib, v = c.WordArray, y = e.algo, B = y.SHA256, C = y.SHA224 = B.extend({
|
|
1818
1815
|
_doReset: function() {
|
|
1819
|
-
this._hash = new
|
|
1816
|
+
this._hash = new v.init([
|
|
1820
1817
|
3238371032,
|
|
1821
1818
|
914150663,
|
|
1822
1819
|
812702999,
|
|
@@ -1828,25 +1825,25 @@ function jt() {
|
|
|
1828
1825
|
]);
|
|
1829
1826
|
},
|
|
1830
1827
|
_doFinalize: function() {
|
|
1831
|
-
var x =
|
|
1828
|
+
var x = B._doFinalize.call(this);
|
|
1832
1829
|
return x.sigBytes -= 4, x;
|
|
1833
1830
|
}
|
|
1834
1831
|
});
|
|
1835
|
-
e.SHA224 =
|
|
1832
|
+
e.SHA224 = B._createHelper(C), e.HmacSHA224 = B._createHmacHelper(C);
|
|
1836
1833
|
})(), t.SHA224;
|
|
1837
1834
|
});
|
|
1838
1835
|
})(O0)), O0.exports;
|
|
1839
1836
|
}
|
|
1840
|
-
var q0 = { exports: {} },
|
|
1841
|
-
function
|
|
1842
|
-
return
|
|
1843
|
-
(function(t, e,
|
|
1837
|
+
var q0 = { exports: {} }, Kt = q0.exports, Jr;
|
|
1838
|
+
function ze() {
|
|
1839
|
+
return Jr || (Jr = 1, (function(r, d) {
|
|
1840
|
+
(function(t, e, c) {
|
|
1844
1841
|
r.exports = e(M(), hr());
|
|
1845
|
-
})(
|
|
1842
|
+
})(Kt, function(t) {
|
|
1846
1843
|
return (function() {
|
|
1847
|
-
var e = t,
|
|
1844
|
+
var e = t, c = e.lib, v = c.Hasher, y = e.x64, B = y.Word, C = y.WordArray, x = e.algo;
|
|
1848
1845
|
function n() {
|
|
1849
|
-
return
|
|
1846
|
+
return B.create.apply(B, arguments);
|
|
1850
1847
|
}
|
|
1851
1848
|
var E = [
|
|
1852
1849
|
n(1116352408, 3609767458),
|
|
@@ -1934,114 +1931,114 @@ function Pe() {
|
|
|
1934
1931
|
for (var u = 0; u < 80; u++)
|
|
1935
1932
|
a[u] = n();
|
|
1936
1933
|
})();
|
|
1937
|
-
var s = x.SHA512 =
|
|
1934
|
+
var s = x.SHA512 = v.extend({
|
|
1938
1935
|
_doReset: function() {
|
|
1939
|
-
this._hash = new
|
|
1940
|
-
new
|
|
1941
|
-
new
|
|
1942
|
-
new
|
|
1943
|
-
new
|
|
1944
|
-
new
|
|
1945
|
-
new
|
|
1946
|
-
new
|
|
1947
|
-
new
|
|
1936
|
+
this._hash = new C.init([
|
|
1937
|
+
new B.init(1779033703, 4089235720),
|
|
1938
|
+
new B.init(3144134277, 2227873595),
|
|
1939
|
+
new B.init(1013904242, 4271175723),
|
|
1940
|
+
new B.init(2773480762, 1595750129),
|
|
1941
|
+
new B.init(1359893119, 2917565137),
|
|
1942
|
+
new B.init(2600822924, 725511199),
|
|
1943
|
+
new B.init(528734635, 4215389547),
|
|
1944
|
+
new B.init(1541459225, 327033209)
|
|
1948
1945
|
]);
|
|
1949
1946
|
},
|
|
1950
1947
|
_doProcessBlock: function(u, p) {
|
|
1951
|
-
for (var
|
|
1952
|
-
var J,
|
|
1953
|
-
if (
|
|
1954
|
-
|
|
1948
|
+
for (var h = this._hash.words, D = h[0], i = h[1], o = h[2], l = h[3], b = h[4], g = h[5], _ = h[6], k = h[7], $ = D.high, F = D.low, w = i.high, H = i.low, R = o.high, z = o.low, O = l.high, q = l.low, U = b.high, T = b.low, N = g.high, j = g.low, S = _.high, f = _.low, A = k.high, m = k.low, I = $, P = F, L = w, W = H, Z = R, Q = z, i0 = O, K = q, G = U, Y = T, r0 = N, u0 = j, b0 = S, B0 = f, vr = A, C0 = m, e0 = 0; e0 < 80; e0++) {
|
|
1949
|
+
var J, x0, m0 = a[e0];
|
|
1950
|
+
if (e0 < 16)
|
|
1951
|
+
x0 = m0.high = u[p + e0 * 2] | 0, J = m0.low = u[p + e0 * 2 + 1] | 0;
|
|
1955
1952
|
else {
|
|
1956
|
-
var
|
|
1957
|
-
J =
|
|
1953
|
+
var wr = a[e0 - 15], d0 = wr.high, E0 = wr.low, Me = (d0 >>> 1 | E0 << 31) ^ (d0 >>> 8 | E0 << 24) ^ d0 >>> 7, kr = (E0 >>> 1 | d0 << 31) ^ (E0 >>> 8 | d0 << 24) ^ (E0 >>> 7 | d0 << 25), Sr = a[e0 - 2], l0 = Sr.high, A0 = Sr.low, Ne = (l0 >>> 19 | A0 << 13) ^ (l0 << 3 | A0 >>> 29) ^ l0 >>> 6, Hr = (A0 >>> 19 | l0 << 13) ^ (A0 << 3 | l0 >>> 29) ^ (A0 >>> 6 | l0 << 26), Rr = a[e0 - 7], Ue = Rr.high, je = Rr.low, $r = a[e0 - 16], Ge = $r.high, Pr = $r.low;
|
|
1954
|
+
J = kr + je, x0 = Me + Ue + (J >>> 0 < kr >>> 0 ? 1 : 0), J = J + Hr, x0 = x0 + Ne + (J >>> 0 < Hr >>> 0 ? 1 : 0), J = J + Pr, x0 = x0 + Ge + (J >>> 0 < Pr >>> 0 ? 1 : 0), m0.high = x0, m0.low = J;
|
|
1958
1955
|
}
|
|
1959
|
-
var
|
|
1960
|
-
vr = b0, C0 = B0, b0 =
|
|
1956
|
+
var Ke = G & r0 ^ ~G & b0, zr = Y & u0 ^ ~Y & B0, Xe = I & L ^ I & Z ^ L & Z, Ye = P & W ^ P & Q ^ W & Q, Ze = (I >>> 28 | P << 4) ^ (I << 30 | P >>> 2) ^ (I << 25 | P >>> 7), Ir = (P >>> 28 | I << 4) ^ (P << 30 | I >>> 2) ^ (P << 25 | I >>> 7), Qe = (G >>> 14 | Y << 18) ^ (G >>> 18 | Y << 14) ^ (G << 23 | Y >>> 9), Ve = (Y >>> 14 | G << 18) ^ (Y >>> 18 | G << 14) ^ (Y << 23 | G >>> 9), Wr = E[e0], Je = Wr.high, Lr = Wr.low, V = C0 + Ve, n0 = vr + Qe + (V >>> 0 < C0 >>> 0 ? 1 : 0), V = V + zr, n0 = n0 + Ke + (V >>> 0 < zr >>> 0 ? 1 : 0), V = V + Lr, n0 = n0 + Je + (V >>> 0 < Lr >>> 0 ? 1 : 0), V = V + J, n0 = n0 + x0 + (V >>> 0 < J >>> 0 ? 1 : 0), Or = Ir + Ye, rt = Ze + Xe + (Or >>> 0 < Ir >>> 0 ? 1 : 0);
|
|
1957
|
+
vr = b0, C0 = B0, b0 = r0, B0 = u0, r0 = G, u0 = Y, Y = K + V | 0, G = i0 + n0 + (Y >>> 0 < K >>> 0 ? 1 : 0) | 0, i0 = Z, K = Q, Z = L, Q = W, L = I, W = P, P = V + Or | 0, I = n0 + rt + (P >>> 0 < V >>> 0 ? 1 : 0) | 0;
|
|
1961
1958
|
}
|
|
1962
|
-
F = D.low = F + P, D.high = $ +
|
|
1959
|
+
F = D.low = F + P, D.high = $ + I + (F >>> 0 < P >>> 0 ? 1 : 0), H = i.low = H + W, i.high = w + L + (H >>> 0 < W >>> 0 ? 1 : 0), z = o.low = z + Q, o.high = R + Z + (z >>> 0 < Q >>> 0 ? 1 : 0), q = l.low = q + K, l.high = O + i0 + (q >>> 0 < K >>> 0 ? 1 : 0), T = b.low = T + Y, b.high = U + G + (T >>> 0 < Y >>> 0 ? 1 : 0), j = g.low = j + u0, g.high = N + r0 + (j >>> 0 < u0 >>> 0 ? 1 : 0), f = _.low = f + B0, _.high = S + b0 + (f >>> 0 < B0 >>> 0 ? 1 : 0), m = k.low = m + C0, k.high = A + vr + (m >>> 0 < C0 >>> 0 ? 1 : 0);
|
|
1963
1960
|
},
|
|
1964
1961
|
_doFinalize: function() {
|
|
1965
|
-
var u = this._data, p = u.words,
|
|
1966
|
-
p[D >>> 5] |= 128 << 24 - D % 32, p[(D + 128 >>> 10 << 5) + 30] = Math.floor(
|
|
1962
|
+
var u = this._data, p = u.words, h = this._nDataBytes * 8, D = u.sigBytes * 8;
|
|
1963
|
+
p[D >>> 5] |= 128 << 24 - D % 32, p[(D + 128 >>> 10 << 5) + 30] = Math.floor(h / 4294967296), p[(D + 128 >>> 10 << 5) + 31] = h, u.sigBytes = p.length * 4, this._process();
|
|
1967
1964
|
var i = this._hash.toX32();
|
|
1968
1965
|
return i;
|
|
1969
1966
|
},
|
|
1970
1967
|
clone: function() {
|
|
1971
|
-
var u =
|
|
1968
|
+
var u = v.clone.call(this);
|
|
1972
1969
|
return u._hash = this._hash.clone(), u;
|
|
1973
1970
|
},
|
|
1974
1971
|
blockSize: 1024 / 32
|
|
1975
1972
|
});
|
|
1976
|
-
e.SHA512 =
|
|
1973
|
+
e.SHA512 = v._createHelper(s), e.HmacSHA512 = v._createHmacHelper(s);
|
|
1977
1974
|
})(), t.SHA512;
|
|
1978
1975
|
});
|
|
1979
1976
|
})(q0)), q0.exports;
|
|
1980
1977
|
}
|
|
1981
|
-
var T0 = { exports: {} },
|
|
1982
|
-
function
|
|
1983
|
-
return
|
|
1984
|
-
(function(t, e,
|
|
1985
|
-
r.exports = e(M(), hr(),
|
|
1986
|
-
})(
|
|
1978
|
+
var T0 = { exports: {} }, Xt = T0.exports, re;
|
|
1979
|
+
function Yt() {
|
|
1980
|
+
return re || (re = 1, (function(r, d) {
|
|
1981
|
+
(function(t, e, c) {
|
|
1982
|
+
r.exports = e(M(), hr(), ze());
|
|
1983
|
+
})(Xt, function(t) {
|
|
1987
1984
|
return (function() {
|
|
1988
|
-
var e = t,
|
|
1985
|
+
var e = t, c = e.x64, v = c.Word, y = c.WordArray, B = e.algo, C = B.SHA512, x = B.SHA384 = C.extend({
|
|
1989
1986
|
_doReset: function() {
|
|
1990
|
-
this._hash = new
|
|
1991
|
-
new
|
|
1992
|
-
new
|
|
1993
|
-
new
|
|
1994
|
-
new
|
|
1995
|
-
new
|
|
1996
|
-
new
|
|
1997
|
-
new
|
|
1998
|
-
new
|
|
1987
|
+
this._hash = new y.init([
|
|
1988
|
+
new v.init(3418070365, 3238371032),
|
|
1989
|
+
new v.init(1654270250, 914150663),
|
|
1990
|
+
new v.init(2438529370, 812702999),
|
|
1991
|
+
new v.init(355462360, 4144912697),
|
|
1992
|
+
new v.init(1731405415, 4290775857),
|
|
1993
|
+
new v.init(2394180231, 1750603025),
|
|
1994
|
+
new v.init(3675008525, 1694076839),
|
|
1995
|
+
new v.init(1203062813, 3204075428)
|
|
1999
1996
|
]);
|
|
2000
1997
|
},
|
|
2001
1998
|
_doFinalize: function() {
|
|
2002
|
-
var n =
|
|
1999
|
+
var n = C._doFinalize.call(this);
|
|
2003
2000
|
return n.sigBytes -= 16, n;
|
|
2004
2001
|
}
|
|
2005
2002
|
});
|
|
2006
|
-
e.SHA384 =
|
|
2003
|
+
e.SHA384 = C._createHelper(x), e.HmacSHA384 = C._createHmacHelper(x);
|
|
2007
2004
|
})(), t.SHA384;
|
|
2008
2005
|
});
|
|
2009
2006
|
})(T0)), T0.exports;
|
|
2010
2007
|
}
|
|
2011
|
-
var M0 = { exports: {} }, Zt = M0.exports,
|
|
2012
|
-
function
|
|
2013
|
-
return
|
|
2014
|
-
(function(t, e,
|
|
2008
|
+
var M0 = { exports: {} }, Zt = M0.exports, ee;
|
|
2009
|
+
function Qt() {
|
|
2010
|
+
return ee || (ee = 1, (function(r, d) {
|
|
2011
|
+
(function(t, e, c) {
|
|
2015
2012
|
r.exports = e(M(), hr());
|
|
2016
2013
|
})(Zt, function(t) {
|
|
2017
2014
|
return (function(e) {
|
|
2018
|
-
var
|
|
2015
|
+
var c = t, v = c.lib, y = v.WordArray, B = v.Hasher, C = c.x64, x = C.Word, n = c.algo, E = [], a = [], s = [];
|
|
2019
2016
|
(function() {
|
|
2020
|
-
for (var
|
|
2021
|
-
E[
|
|
2022
|
-
var o = D % 5,
|
|
2023
|
-
|
|
2017
|
+
for (var h = 1, D = 0, i = 0; i < 24; i++) {
|
|
2018
|
+
E[h + 5 * D] = (i + 1) * (i + 2) / 2 % 64;
|
|
2019
|
+
var o = D % 5, l = (2 * h + 3 * D) % 5;
|
|
2020
|
+
h = o, D = l;
|
|
2024
2021
|
}
|
|
2025
|
-
for (var
|
|
2022
|
+
for (var h = 0; h < 5; h++)
|
|
2026
2023
|
for (var D = 0; D < 5; D++)
|
|
2027
|
-
a[
|
|
2024
|
+
a[h + 5 * D] = D + (2 * h + 3 * D) % 5 * 5;
|
|
2028
2025
|
for (var b = 1, g = 0; g < 24; g++) {
|
|
2029
|
-
for (var
|
|
2026
|
+
for (var _ = 0, k = 0, $ = 0; $ < 7; $++) {
|
|
2030
2027
|
if (b & 1) {
|
|
2031
2028
|
var F = (1 << $) - 1;
|
|
2032
|
-
F < 32 ? k ^= 1 << F :
|
|
2029
|
+
F < 32 ? k ^= 1 << F : _ ^= 1 << F - 32;
|
|
2033
2030
|
}
|
|
2034
2031
|
b & 128 ? b = b << 1 ^ 113 : b <<= 1;
|
|
2035
2032
|
}
|
|
2036
|
-
s[g] = x.create(
|
|
2033
|
+
s[g] = x.create(_, k);
|
|
2037
2034
|
}
|
|
2038
2035
|
})();
|
|
2039
2036
|
var u = [];
|
|
2040
2037
|
(function() {
|
|
2041
|
-
for (var
|
|
2042
|
-
u[
|
|
2038
|
+
for (var h = 0; h < 25; h++)
|
|
2039
|
+
u[h] = x.create();
|
|
2043
2040
|
})();
|
|
2044
|
-
var p = n.SHA3 =
|
|
2041
|
+
var p = n.SHA3 = B.extend({
|
|
2045
2042
|
/**
|
|
2046
2043
|
* Configuration options.
|
|
2047
2044
|
*
|
|
@@ -2050,82 +2047,82 @@ function Yt() {
|
|
|
2050
2047
|
* Only values permitted are: 224, 256, 384, 512.
|
|
2051
2048
|
* Default: 512
|
|
2052
2049
|
*/
|
|
2053
|
-
cfg:
|
|
2050
|
+
cfg: B.cfg.extend({
|
|
2054
2051
|
outputLength: 512
|
|
2055
2052
|
}),
|
|
2056
2053
|
_doReset: function() {
|
|
2057
|
-
for (var
|
|
2058
|
-
|
|
2054
|
+
for (var h = this._state = [], D = 0; D < 25; D++)
|
|
2055
|
+
h[D] = new x.init();
|
|
2059
2056
|
this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32;
|
|
2060
2057
|
},
|
|
2061
|
-
_doProcessBlock: function(
|
|
2062
|
-
for (var i = this._state, o = this.blockSize / 2,
|
|
2063
|
-
var b =
|
|
2058
|
+
_doProcessBlock: function(h, D) {
|
|
2059
|
+
for (var i = this._state, o = this.blockSize / 2, l = 0; l < o; l++) {
|
|
2060
|
+
var b = h[D + 2 * l], g = h[D + 2 * l + 1];
|
|
2064
2061
|
b = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360, g = (g << 8 | g >>> 24) & 16711935 | (g << 24 | g >>> 8) & 4278255360;
|
|
2065
|
-
var
|
|
2066
|
-
|
|
2062
|
+
var _ = i[l];
|
|
2063
|
+
_.high ^= g, _.low ^= b;
|
|
2067
2064
|
}
|
|
2068
2065
|
for (var k = 0; k < 24; k++) {
|
|
2069
2066
|
for (var $ = 0; $ < 5; $++) {
|
|
2070
2067
|
for (var F = 0, w = 0, H = 0; H < 5; H++) {
|
|
2071
|
-
var
|
|
2072
|
-
F ^=
|
|
2068
|
+
var _ = i[$ + 5 * H];
|
|
2069
|
+
F ^= _.high, w ^= _.low;
|
|
2073
2070
|
}
|
|
2074
2071
|
var R = u[$];
|
|
2075
2072
|
R.high = F, R.low = w;
|
|
2076
2073
|
}
|
|
2077
2074
|
for (var $ = 0; $ < 5; $++)
|
|
2078
2075
|
for (var z = u[($ + 4) % 5], O = u[($ + 1) % 5], q = O.high, U = O.low, F = z.high ^ (q << 1 | U >>> 31), w = z.low ^ (U << 1 | q >>> 31), H = 0; H < 5; H++) {
|
|
2079
|
-
var
|
|
2080
|
-
|
|
2076
|
+
var _ = i[$ + 5 * H];
|
|
2077
|
+
_.high ^= F, _.low ^= w;
|
|
2081
2078
|
}
|
|
2082
2079
|
for (var T = 1; T < 25; T++) {
|
|
2083
|
-
var F, w,
|
|
2080
|
+
var F, w, _ = i[T], N = _.high, j = _.low, S = E[T];
|
|
2084
2081
|
S < 32 ? (F = N << S | j >>> 32 - S, w = j << S | N >>> 32 - S) : (F = j << S - 32 | N >>> 64 - S, w = N << S - 32 | j >>> 64 - S);
|
|
2085
|
-
var
|
|
2086
|
-
|
|
2082
|
+
var f = u[a[T]];
|
|
2083
|
+
f.high = F, f.low = w;
|
|
2087
2084
|
}
|
|
2088
2085
|
var A = u[0], m = i[0];
|
|
2089
2086
|
A.high = m.high, A.low = m.low;
|
|
2090
2087
|
for (var $ = 0; $ < 5; $++)
|
|
2091
2088
|
for (var H = 0; H < 5; H++) {
|
|
2092
|
-
var T = $ + 5 * H,
|
|
2093
|
-
|
|
2089
|
+
var T = $ + 5 * H, _ = i[T], I = u[T], P = u[($ + 1) % 5 + 5 * H], L = u[($ + 2) % 5 + 5 * H];
|
|
2090
|
+
_.high = I.high ^ ~P.high & L.high, _.low = I.low ^ ~P.low & L.low;
|
|
2094
2091
|
}
|
|
2095
|
-
var
|
|
2096
|
-
|
|
2092
|
+
var _ = i[0], W = s[k];
|
|
2093
|
+
_.high ^= W.high, _.low ^= W.low;
|
|
2097
2094
|
}
|
|
2098
2095
|
},
|
|
2099
2096
|
_doFinalize: function() {
|
|
2100
|
-
var
|
|
2097
|
+
var h = this._data, D = h.words;
|
|
2101
2098
|
this._nDataBytes * 8;
|
|
2102
|
-
var i =
|
|
2103
|
-
D[i >>> 5] |= 1 << 24 - i % 32, D[(e.ceil((i + 1) / o) * o >>> 5) - 1] |= 128,
|
|
2104
|
-
for (var
|
|
2105
|
-
var $ =
|
|
2106
|
-
F = (F << 8 | F >>> 24) & 16711935 | (F << 24 | F >>> 8) & 4278255360, w = (w << 8 | w >>> 24) & 16711935 | (w << 24 | w >>> 8) & 4278255360,
|
|
2099
|
+
var i = h.sigBytes * 8, o = this.blockSize * 32;
|
|
2100
|
+
D[i >>> 5] |= 1 << 24 - i % 32, D[(e.ceil((i + 1) / o) * o >>> 5) - 1] |= 128, h.sigBytes = D.length * 4, this._process();
|
|
2101
|
+
for (var l = this._state, b = this.cfg.outputLength / 8, g = b / 8, _ = [], k = 0; k < g; k++) {
|
|
2102
|
+
var $ = l[k], F = $.high, w = $.low;
|
|
2103
|
+
F = (F << 8 | F >>> 24) & 16711935 | (F << 24 | F >>> 8) & 4278255360, w = (w << 8 | w >>> 24) & 16711935 | (w << 24 | w >>> 8) & 4278255360, _.push(w), _.push(F);
|
|
2107
2104
|
}
|
|
2108
|
-
return new
|
|
2105
|
+
return new y.init(_, b);
|
|
2109
2106
|
},
|
|
2110
2107
|
clone: function() {
|
|
2111
|
-
for (var
|
|
2108
|
+
for (var h = B.clone.call(this), D = h._state = this._state.slice(0), i = 0; i < 25; i++)
|
|
2112
2109
|
D[i] = D[i].clone();
|
|
2113
|
-
return
|
|
2110
|
+
return h;
|
|
2114
2111
|
}
|
|
2115
2112
|
});
|
|
2116
|
-
|
|
2113
|
+
c.SHA3 = B._createHelper(p), c.HmacSHA3 = B._createHmacHelper(p);
|
|
2117
2114
|
})(Math), t.SHA3;
|
|
2118
2115
|
});
|
|
2119
2116
|
})(M0)), M0.exports;
|
|
2120
2117
|
}
|
|
2121
|
-
var N0 = { exports: {} },
|
|
2122
|
-
function
|
|
2123
|
-
return
|
|
2118
|
+
var N0 = { exports: {} }, Vt = N0.exports, te;
|
|
2119
|
+
function Jt() {
|
|
2120
|
+
return te || (te = 1, (function(r, d) {
|
|
2124
2121
|
(function(t, e) {
|
|
2125
2122
|
r.exports = e(M());
|
|
2126
|
-
})(
|
|
2123
|
+
})(Vt, function(t) {
|
|
2127
2124
|
return (function(e) {
|
|
2128
|
-
var
|
|
2125
|
+
var c = t, v = c.lib, y = v.WordArray, B = v.Hasher, C = c.algo, x = y.create([
|
|
2129
2126
|
0,
|
|
2130
2127
|
1,
|
|
2131
2128
|
2,
|
|
@@ -2206,7 +2203,7 @@ function Vt() {
|
|
|
2206
2203
|
6,
|
|
2207
2204
|
15,
|
|
2208
2205
|
13
|
|
2209
|
-
]), n =
|
|
2206
|
+
]), n = y.create([
|
|
2210
2207
|
5,
|
|
2211
2208
|
14,
|
|
2212
2209
|
7,
|
|
@@ -2287,7 +2284,7 @@ function Vt() {
|
|
|
2287
2284
|
3,
|
|
2288
2285
|
9,
|
|
2289
2286
|
11
|
|
2290
|
-
]), E =
|
|
2287
|
+
]), E = y.create([
|
|
2291
2288
|
11,
|
|
2292
2289
|
14,
|
|
2293
2290
|
15,
|
|
@@ -2368,7 +2365,7 @@ function Vt() {
|
|
|
2368
2365
|
8,
|
|
2369
2366
|
5,
|
|
2370
2367
|
6
|
|
2371
|
-
]), a =
|
|
2368
|
+
]), a = y.create([
|
|
2372
2369
|
8,
|
|
2373
2370
|
9,
|
|
2374
2371
|
9,
|
|
@@ -2449,24 +2446,24 @@ function Vt() {
|
|
|
2449
2446
|
13,
|
|
2450
2447
|
11,
|
|
2451
2448
|
11
|
|
2452
|
-
]), s =
|
|
2449
|
+
]), s = y.create([0, 1518500249, 1859775393, 2400959708, 2840853838]), u = y.create([1352829926, 1548603684, 1836072691, 2053994217, 0]), p = C.RIPEMD160 = B.extend({
|
|
2453
2450
|
_doReset: function() {
|
|
2454
|
-
this._hash =
|
|
2451
|
+
this._hash = y.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
|
|
2455
2452
|
},
|
|
2456
|
-
_doProcessBlock: function(g,
|
|
2453
|
+
_doProcessBlock: function(g, _) {
|
|
2457
2454
|
for (var k = 0; k < 16; k++) {
|
|
2458
|
-
var $ =
|
|
2455
|
+
var $ = _ + k, F = g[$];
|
|
2459
2456
|
g[$] = (F << 8 | F >>> 24) & 16711935 | (F << 24 | F >>> 8) & 4278255360;
|
|
2460
2457
|
}
|
|
2461
|
-
var w = this._hash.words, H = s.words, R = u.words, z = x.words, O = n.words, q = E.words, U = a.words, T, N, j, S,
|
|
2462
|
-
A = T = w[0], m = N = w[1],
|
|
2463
|
-
for (var
|
|
2464
|
-
|
|
2465
|
-
|
|
2458
|
+
var w = this._hash.words, H = s.words, R = u.words, z = x.words, O = n.words, q = E.words, U = a.words, T, N, j, S, f, A, m, I, P, L;
|
|
2459
|
+
A = T = w[0], m = N = w[1], I = j = w[2], P = S = w[3], L = f = w[4];
|
|
2460
|
+
for (var W, k = 0; k < 80; k += 1)
|
|
2461
|
+
W = T + g[_ + z[k]] | 0, k < 16 ? W += h(N, j, S) + H[0] : k < 32 ? W += D(N, j, S) + H[1] : k < 48 ? W += i(N, j, S) + H[2] : k < 64 ? W += o(N, j, S) + H[3] : W += l(N, j, S) + H[4], W = W | 0, W = b(W, q[k]), W = W + f | 0, T = f, f = S, S = b(j, 10), j = N, N = W, W = A + g[_ + O[k]] | 0, k < 16 ? W += l(m, I, P) + R[0] : k < 32 ? W += o(m, I, P) + R[1] : k < 48 ? W += i(m, I, P) + R[2] : k < 64 ? W += D(m, I, P) + R[3] : W += h(m, I, P) + R[4], W = W | 0, W = b(W, U[k]), W = W + L | 0, A = L, L = P, P = b(I, 10), I = m, m = W;
|
|
2462
|
+
W = w[1] + j + P | 0, w[1] = w[2] + S + L | 0, w[2] = w[3] + f + A | 0, w[3] = w[4] + T + m | 0, w[4] = w[0] + N + I | 0, w[0] = W;
|
|
2466
2463
|
},
|
|
2467
2464
|
_doFinalize: function() {
|
|
2468
|
-
var g = this._data,
|
|
2469
|
-
|
|
2465
|
+
var g = this._data, _ = g.words, k = this._nDataBytes * 8, $ = g.sigBytes * 8;
|
|
2466
|
+
_[$ >>> 5] |= 128 << 24 - $ % 32, _[($ + 64 >>> 9 << 4) + 14] = (k << 8 | k >>> 24) & 16711935 | (k << 24 | k >>> 8) & 4278255360, g.sigBytes = (_.length + 1) * 4, this._process();
|
|
2470
2467
|
for (var F = this._hash, w = F.words, H = 0; H < 5; H++) {
|
|
2471
2468
|
var R = w[H];
|
|
2472
2469
|
w[H] = (R << 8 | R >>> 24) & 16711935 | (R << 24 | R >>> 8) & 4278255360;
|
|
@@ -2474,42 +2471,42 @@ function Vt() {
|
|
|
2474
2471
|
return F;
|
|
2475
2472
|
},
|
|
2476
2473
|
clone: function() {
|
|
2477
|
-
var g =
|
|
2474
|
+
var g = B.clone.call(this);
|
|
2478
2475
|
return g._hash = this._hash.clone(), g;
|
|
2479
2476
|
}
|
|
2480
2477
|
});
|
|
2481
|
-
function
|
|
2482
|
-
return g ^
|
|
2478
|
+
function h(g, _, k) {
|
|
2479
|
+
return g ^ _ ^ k;
|
|
2483
2480
|
}
|
|
2484
|
-
function D(g,
|
|
2485
|
-
return g &
|
|
2481
|
+
function D(g, _, k) {
|
|
2482
|
+
return g & _ | ~g & k;
|
|
2486
2483
|
}
|
|
2487
|
-
function i(g,
|
|
2488
|
-
return (g | ~
|
|
2484
|
+
function i(g, _, k) {
|
|
2485
|
+
return (g | ~_) ^ k;
|
|
2489
2486
|
}
|
|
2490
|
-
function o(g,
|
|
2491
|
-
return g & k |
|
|
2487
|
+
function o(g, _, k) {
|
|
2488
|
+
return g & k | _ & ~k;
|
|
2492
2489
|
}
|
|
2493
|
-
function
|
|
2494
|
-
return g ^ (
|
|
2490
|
+
function l(g, _, k) {
|
|
2491
|
+
return g ^ (_ | ~k);
|
|
2495
2492
|
}
|
|
2496
|
-
function b(g,
|
|
2497
|
-
return g <<
|
|
2493
|
+
function b(g, _) {
|
|
2494
|
+
return g << _ | g >>> 32 - _;
|
|
2498
2495
|
}
|
|
2499
|
-
|
|
2496
|
+
c.RIPEMD160 = B._createHelper(p), c.HmacRIPEMD160 = B._createHmacHelper(p);
|
|
2500
2497
|
})(), t.RIPEMD160;
|
|
2501
2498
|
});
|
|
2502
2499
|
})(N0)), N0.exports;
|
|
2503
2500
|
}
|
|
2504
|
-
var U0 = { exports: {} },
|
|
2505
|
-
function
|
|
2506
|
-
return
|
|
2501
|
+
var U0 = { exports: {} }, rx = U0.exports, xe;
|
|
2502
|
+
function _r() {
|
|
2503
|
+
return xe || (xe = 1, (function(r, d) {
|
|
2507
2504
|
(function(t, e) {
|
|
2508
2505
|
r.exports = e(M());
|
|
2509
|
-
})(
|
|
2506
|
+
})(rx, function(t) {
|
|
2510
2507
|
(function() {
|
|
2511
|
-
var e = t,
|
|
2512
|
-
|
|
2508
|
+
var e = t, c = e.lib, v = c.Base, y = e.enc, B = y.Utf8, C = e.algo;
|
|
2509
|
+
C.HMAC = v.extend({
|
|
2513
2510
|
/**
|
|
2514
2511
|
* Initializes a newly created HMAC.
|
|
2515
2512
|
*
|
|
@@ -2521,11 +2518,11 @@ function mr() {
|
|
|
2521
2518
|
* var hmacHasher = CryptoJS.algo.HMAC.create(CryptoJS.algo.SHA256, key);
|
|
2522
2519
|
*/
|
|
2523
2520
|
init: function(x, n) {
|
|
2524
|
-
x = this._hasher = new x.init(), typeof n == "string" && (n =
|
|
2521
|
+
x = this._hasher = new x.init(), typeof n == "string" && (n = B.parse(n));
|
|
2525
2522
|
var E = x.blockSize, a = E * 4;
|
|
2526
2523
|
n.sigBytes > a && (n = x.finalize(n)), n.clamp();
|
|
2527
|
-
for (var s = this._oKey = n.clone(), u = this._iKey = n.clone(), p = s.words,
|
|
2528
|
-
p[D] ^= 1549556828,
|
|
2524
|
+
for (var s = this._oKey = n.clone(), u = this._iKey = n.clone(), p = s.words, h = u.words, D = 0; D < E; D++)
|
|
2525
|
+
p[D] ^= 1549556828, h[D] ^= 909522486;
|
|
2529
2526
|
s.sigBytes = u.sigBytes = a, this.reset();
|
|
2530
2527
|
},
|
|
2531
2528
|
/**
|
|
@@ -2579,14 +2576,14 @@ function mr() {
|
|
|
2579
2576
|
});
|
|
2580
2577
|
})(U0)), U0.exports;
|
|
2581
2578
|
}
|
|
2582
|
-
var j0 = { exports: {} },
|
|
2583
|
-
function
|
|
2584
|
-
return
|
|
2585
|
-
(function(t, e,
|
|
2586
|
-
r.exports = e(M(),
|
|
2587
|
-
})(
|
|
2579
|
+
var j0 = { exports: {} }, ex = j0.exports, ne;
|
|
2580
|
+
function tx() {
|
|
2581
|
+
return ne || (ne = 1, (function(r, d) {
|
|
2582
|
+
(function(t, e, c) {
|
|
2583
|
+
r.exports = e(M(), mr(), _r());
|
|
2584
|
+
})(ex, function(t) {
|
|
2588
2585
|
return (function() {
|
|
2589
|
-
var e = t,
|
|
2586
|
+
var e = t, c = e.lib, v = c.Base, y = c.WordArray, B = e.algo, C = B.SHA256, x = B.HMAC, n = B.PBKDF2 = v.extend({
|
|
2590
2587
|
/**
|
|
2591
2588
|
* Configuration options.
|
|
2592
2589
|
*
|
|
@@ -2594,9 +2591,9 @@ function ex() {
|
|
|
2594
2591
|
* @property {Hasher} hasher The hasher to use. Default: SHA256
|
|
2595
2592
|
* @property {number} iterations The number of iterations to perform. Default: 250000
|
|
2596
2593
|
*/
|
|
2597
|
-
cfg:
|
|
2594
|
+
cfg: v.extend({
|
|
2598
2595
|
keySize: 128 / 32,
|
|
2599
|
-
hasher:
|
|
2596
|
+
hasher: C,
|
|
2600
2597
|
iterations: 25e4
|
|
2601
2598
|
}),
|
|
2602
2599
|
/**
|
|
@@ -2626,12 +2623,12 @@ function ex() {
|
|
|
2626
2623
|
* var key = kdf.compute(password, salt);
|
|
2627
2624
|
*/
|
|
2628
2625
|
compute: function(E, a) {
|
|
2629
|
-
for (var s = this.cfg, u = x.create(s.hasher, E), p =
|
|
2630
|
-
var b = u.update(a).finalize(
|
|
2626
|
+
for (var s = this.cfg, u = x.create(s.hasher, E), p = y.create(), h = y.create([1]), D = p.words, i = h.words, o = s.keySize, l = s.iterations; D.length < o; ) {
|
|
2627
|
+
var b = u.update(a).finalize(h);
|
|
2631
2628
|
u.reset();
|
|
2632
|
-
for (var g = b.words,
|
|
2629
|
+
for (var g = b.words, _ = g.length, k = b, $ = 1; $ < l; $++) {
|
|
2633
2630
|
k = u.finalize(k), u.reset();
|
|
2634
|
-
for (var F = k.words, w = 0; w <
|
|
2631
|
+
for (var F = k.words, w = 0; w < _; w++)
|
|
2635
2632
|
g[w] ^= F[w];
|
|
2636
2633
|
}
|
|
2637
2634
|
p.concat(b), i[0]++;
|
|
@@ -2646,14 +2643,14 @@ function ex() {
|
|
|
2646
2643
|
});
|
|
2647
2644
|
})(j0)), j0.exports;
|
|
2648
2645
|
}
|
|
2649
|
-
var G0 = { exports: {} },
|
|
2646
|
+
var G0 = { exports: {} }, xx = G0.exports, ae;
|
|
2650
2647
|
function o0() {
|
|
2651
|
-
return
|
|
2652
|
-
(function(t, e,
|
|
2653
|
-
r.exports = e(M(),
|
|
2654
|
-
})(
|
|
2648
|
+
return ae || (ae = 1, (function(r, d) {
|
|
2649
|
+
(function(t, e, c) {
|
|
2650
|
+
r.exports = e(M(), Pe(), _r());
|
|
2651
|
+
})(xx, function(t) {
|
|
2655
2652
|
return (function() {
|
|
2656
|
-
var e = t,
|
|
2653
|
+
var e = t, c = e.lib, v = c.Base, y = c.WordArray, B = e.algo, C = B.MD5, x = B.EvpKDF = v.extend({
|
|
2657
2654
|
/**
|
|
2658
2655
|
* Configuration options.
|
|
2659
2656
|
*
|
|
@@ -2661,9 +2658,9 @@ function o0() {
|
|
|
2661
2658
|
* @property {Hasher} hasher The hash algorithm to use. Default: MD5
|
|
2662
2659
|
* @property {number} iterations The number of iterations to perform. Default: 1
|
|
2663
2660
|
*/
|
|
2664
|
-
cfg:
|
|
2661
|
+
cfg: v.extend({
|
|
2665
2662
|
keySize: 128 / 32,
|
|
2666
|
-
hasher:
|
|
2663
|
+
hasher: C,
|
|
2667
2664
|
iterations: 1
|
|
2668
2665
|
}),
|
|
2669
2666
|
/**
|
|
@@ -2693,7 +2690,7 @@ function o0() {
|
|
|
2693
2690
|
* var key = kdf.compute(password, salt);
|
|
2694
2691
|
*/
|
|
2695
2692
|
compute: function(n, E) {
|
|
2696
|
-
for (var a, s = this.cfg, u = s.hasher.create(), p =
|
|
2693
|
+
for (var a, s = this.cfg, u = s.hasher.create(), p = y.create(), h = p.words, D = s.keySize, i = s.iterations; h.length < D; ) {
|
|
2697
2694
|
a && u.update(a), a = u.update(n).finalize(E), u.reset();
|
|
2698
2695
|
for (var o = 1; o < i; o++)
|
|
2699
2696
|
a = u.finalize(a), u.reset();
|
|
@@ -2709,22 +2706,22 @@ function o0() {
|
|
|
2709
2706
|
});
|
|
2710
2707
|
})(G0)), G0.exports;
|
|
2711
2708
|
}
|
|
2712
|
-
var K0 = { exports: {} },
|
|
2709
|
+
var K0 = { exports: {} }, nx = K0.exports, oe;
|
|
2713
2710
|
function X() {
|
|
2714
|
-
return
|
|
2715
|
-
(function(t, e,
|
|
2711
|
+
return oe || (oe = 1, (function(r, d) {
|
|
2712
|
+
(function(t, e, c) {
|
|
2716
2713
|
r.exports = e(M(), o0());
|
|
2717
|
-
})(
|
|
2714
|
+
})(nx, function(t) {
|
|
2718
2715
|
t.lib.Cipher || (function(e) {
|
|
2719
|
-
var
|
|
2716
|
+
var c = t, v = c.lib, y = v.Base, B = v.WordArray, C = v.BufferedBlockAlgorithm, x = c.enc;
|
|
2720
2717
|
x.Utf8;
|
|
2721
|
-
var n = x.Base64, E =
|
|
2718
|
+
var n = x.Base64, E = c.algo, a = E.EvpKDF, s = v.Cipher = C.extend({
|
|
2722
2719
|
/**
|
|
2723
2720
|
* Configuration options.
|
|
2724
2721
|
*
|
|
2725
2722
|
* @property {WordArray} iv The IV to use for this operation.
|
|
2726
2723
|
*/
|
|
2727
|
-
cfg:
|
|
2724
|
+
cfg: y.extend(),
|
|
2728
2725
|
/**
|
|
2729
2726
|
* Creates this cipher in encryption mode.
|
|
2730
2727
|
*
|
|
@@ -2781,7 +2778,7 @@ function X() {
|
|
|
2781
2778
|
* cipher.reset();
|
|
2782
2779
|
*/
|
|
2783
2780
|
reset: function() {
|
|
2784
|
-
|
|
2781
|
+
C.reset.call(this), this._doReset();
|
|
2785
2782
|
},
|
|
2786
2783
|
/**
|
|
2787
2784
|
* Adds data to be encrypted or decrypted.
|
|
@@ -2850,14 +2847,14 @@ function X() {
|
|
|
2850
2847
|
};
|
|
2851
2848
|
})()
|
|
2852
2849
|
});
|
|
2853
|
-
|
|
2850
|
+
v.StreamCipher = s.extend({
|
|
2854
2851
|
_doFinalize: function() {
|
|
2855
2852
|
var F = this._process(!0);
|
|
2856
2853
|
return F;
|
|
2857
2854
|
},
|
|
2858
2855
|
blockSize: 1
|
|
2859
2856
|
});
|
|
2860
|
-
var u =
|
|
2857
|
+
var u = c.mode = {}, p = v.BlockCipherMode = y.extend({
|
|
2861
2858
|
/**
|
|
2862
2859
|
* Creates this mode for encryption.
|
|
2863
2860
|
*
|
|
@@ -2901,7 +2898,7 @@ function X() {
|
|
|
2901
2898
|
init: function(F, w) {
|
|
2902
2899
|
this._cipher = F, this._iv = w;
|
|
2903
2900
|
}
|
|
2904
|
-
}),
|
|
2901
|
+
}), h = u.CBC = (function() {
|
|
2905
2902
|
var F = p.extend();
|
|
2906
2903
|
F.Encryptor = F.extend({
|
|
2907
2904
|
/**
|
|
@@ -2941,7 +2938,7 @@ function X() {
|
|
|
2941
2938
|
H[R + U] ^= O[U];
|
|
2942
2939
|
}
|
|
2943
2940
|
return F;
|
|
2944
|
-
})(), D =
|
|
2941
|
+
})(), D = c.pad = {}, i = D.Pkcs7 = {
|
|
2945
2942
|
/**
|
|
2946
2943
|
* Pads data using the algorithm defined in PKCS #5/7.
|
|
2947
2944
|
*
|
|
@@ -2957,7 +2954,7 @@ function X() {
|
|
|
2957
2954
|
pad: function(F, w) {
|
|
2958
2955
|
for (var H = w * 4, R = H - F.sigBytes % H, z = R << 24 | R << 16 | R << 8 | R, O = [], q = 0; q < R; q += 4)
|
|
2959
2956
|
O.push(z);
|
|
2960
|
-
var U =
|
|
2957
|
+
var U = B.create(O, R);
|
|
2961
2958
|
F.concat(U);
|
|
2962
2959
|
},
|
|
2963
2960
|
/**
|
|
@@ -2976,7 +2973,7 @@ function X() {
|
|
|
2976
2973
|
F.sigBytes -= w;
|
|
2977
2974
|
}
|
|
2978
2975
|
};
|
|
2979
|
-
|
|
2976
|
+
v.BlockCipher = s.extend({
|
|
2980
2977
|
/**
|
|
2981
2978
|
* Configuration options.
|
|
2982
2979
|
*
|
|
@@ -2984,7 +2981,7 @@ function X() {
|
|
|
2984
2981
|
* @property {Padding} padding The padding strategy to use. Default: Pkcs7
|
|
2985
2982
|
*/
|
|
2986
2983
|
cfg: s.cfg.extend({
|
|
2987
|
-
mode:
|
|
2984
|
+
mode: h,
|
|
2988
2985
|
padding: i
|
|
2989
2986
|
}),
|
|
2990
2987
|
reset: function() {
|
|
@@ -3002,7 +2999,7 @@ function X() {
|
|
|
3002
2999
|
},
|
|
3003
3000
|
blockSize: 128 / 32
|
|
3004
3001
|
});
|
|
3005
|
-
var o =
|
|
3002
|
+
var o = v.CipherParams = y.extend({
|
|
3006
3003
|
/**
|
|
3007
3004
|
* Initializes a newly created cipher params object.
|
|
3008
3005
|
*
|
|
@@ -3043,7 +3040,7 @@ function X() {
|
|
|
3043
3040
|
toString: function(F) {
|
|
3044
3041
|
return (F || this.formatter).stringify(this);
|
|
3045
3042
|
}
|
|
3046
|
-
}),
|
|
3043
|
+
}), l = c.format = {}, b = l.OpenSSL = {
|
|
3047
3044
|
/**
|
|
3048
3045
|
* Converts a cipher params object to an OpenSSL-compatible string.
|
|
3049
3046
|
*
|
|
@@ -3059,7 +3056,7 @@ function X() {
|
|
|
3059
3056
|
*/
|
|
3060
3057
|
stringify: function(F) {
|
|
3061
3058
|
var w, H = F.ciphertext, R = F.salt;
|
|
3062
|
-
return R ? w =
|
|
3059
|
+
return R ? w = B.create([1398893684, 1701076831]).concat(R).concat(H) : w = H, w.toString(n);
|
|
3063
3060
|
},
|
|
3064
3061
|
/**
|
|
3065
3062
|
* Converts an OpenSSL-compatible string to a cipher params object.
|
|
@@ -3076,15 +3073,15 @@ function X() {
|
|
|
3076
3073
|
*/
|
|
3077
3074
|
parse: function(F) {
|
|
3078
3075
|
var w, H = n.parse(F), R = H.words;
|
|
3079
|
-
return R[0] == 1398893684 && R[1] == 1701076831 && (w =
|
|
3076
|
+
return R[0] == 1398893684 && R[1] == 1701076831 && (w = B.create(R.slice(2, 4)), R.splice(0, 4), H.sigBytes -= 16), o.create({ ciphertext: H, salt: w });
|
|
3080
3077
|
}
|
|
3081
|
-
}, g =
|
|
3078
|
+
}, g = v.SerializableCipher = y.extend({
|
|
3082
3079
|
/**
|
|
3083
3080
|
* Configuration options.
|
|
3084
3081
|
*
|
|
3085
3082
|
* @property {Formatter} format The formatting strategy to convert cipher param objects to and from a string. Default: OpenSSL
|
|
3086
3083
|
*/
|
|
3087
|
-
cfg:
|
|
3084
|
+
cfg: y.extend({
|
|
3088
3085
|
format: b
|
|
3089
3086
|
}),
|
|
3090
3087
|
/**
|
|
@@ -3159,7 +3156,7 @@ function X() {
|
|
|
3159
3156
|
_parse: function(F, w) {
|
|
3160
3157
|
return typeof F == "string" ? w.parse(F, this) : F;
|
|
3161
3158
|
}
|
|
3162
|
-
}),
|
|
3159
|
+
}), _ = c.kdf = {}, k = _.OpenSSL = {
|
|
3163
3160
|
/**
|
|
3164
3161
|
* Derives a key and IV from a password.
|
|
3165
3162
|
*
|
|
@@ -3178,14 +3175,14 @@ function X() {
|
|
|
3178
3175
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
|
|
3179
3176
|
*/
|
|
3180
3177
|
execute: function(F, w, H, R, z) {
|
|
3181
|
-
if (R || (R =
|
|
3178
|
+
if (R || (R = B.random(64 / 8)), z)
|
|
3182
3179
|
var O = a.create({ keySize: w + H, hasher: z }).compute(F, R);
|
|
3183
3180
|
else
|
|
3184
3181
|
var O = a.create({ keySize: w + H }).compute(F, R);
|
|
3185
|
-
var q =
|
|
3182
|
+
var q = B.create(O.words.slice(w), H * 4);
|
|
3186
3183
|
return O.sigBytes = w * 4, o.create({ key: O, iv: q, salt: R });
|
|
3187
3184
|
}
|
|
3188
|
-
}, $ =
|
|
3185
|
+
}, $ = v.PasswordBasedCipher = g.extend({
|
|
3189
3186
|
/**
|
|
3190
3187
|
* Configuration options.
|
|
3191
3188
|
*
|
|
@@ -3247,180 +3244,180 @@ function X() {
|
|
|
3247
3244
|
});
|
|
3248
3245
|
})(K0)), K0.exports;
|
|
3249
3246
|
}
|
|
3250
|
-
var X0 = { exports: {} },
|
|
3251
|
-
function
|
|
3252
|
-
return
|
|
3253
|
-
(function(t, e,
|
|
3247
|
+
var X0 = { exports: {} }, ax = X0.exports, ie;
|
|
3248
|
+
function ox() {
|
|
3249
|
+
return ie || (ie = 1, (function(r, d) {
|
|
3250
|
+
(function(t, e, c) {
|
|
3254
3251
|
r.exports = e(M(), X());
|
|
3255
|
-
})(
|
|
3252
|
+
})(ax, function(t) {
|
|
3256
3253
|
return t.mode.CFB = (function() {
|
|
3257
3254
|
var e = t.lib.BlockCipherMode.extend();
|
|
3258
3255
|
e.Encryptor = e.extend({
|
|
3259
|
-
processBlock: function(
|
|
3260
|
-
var
|
|
3261
|
-
|
|
3256
|
+
processBlock: function(v, y) {
|
|
3257
|
+
var B = this._cipher, C = B.blockSize;
|
|
3258
|
+
c.call(this, v, y, C, B), this._prevBlock = v.slice(y, y + C);
|
|
3262
3259
|
}
|
|
3263
3260
|
}), e.Decryptor = e.extend({
|
|
3264
|
-
processBlock: function(
|
|
3265
|
-
var
|
|
3266
|
-
|
|
3261
|
+
processBlock: function(v, y) {
|
|
3262
|
+
var B = this._cipher, C = B.blockSize, x = v.slice(y, y + C);
|
|
3263
|
+
c.call(this, v, y, C, B), this._prevBlock = x;
|
|
3267
3264
|
}
|
|
3268
3265
|
});
|
|
3269
|
-
function
|
|
3266
|
+
function c(v, y, B, C) {
|
|
3270
3267
|
var x, n = this._iv;
|
|
3271
|
-
n ? (x = n.slice(0), this._iv = void 0) : x = this._prevBlock,
|
|
3272
|
-
for (var E = 0; E <
|
|
3273
|
-
|
|
3268
|
+
n ? (x = n.slice(0), this._iv = void 0) : x = this._prevBlock, C.encryptBlock(x, 0);
|
|
3269
|
+
for (var E = 0; E < B; E++)
|
|
3270
|
+
v[y + E] ^= x[E];
|
|
3274
3271
|
}
|
|
3275
3272
|
return e;
|
|
3276
3273
|
})(), t.mode.CFB;
|
|
3277
3274
|
});
|
|
3278
3275
|
})(X0)), X0.exports;
|
|
3279
3276
|
}
|
|
3280
|
-
var
|
|
3281
|
-
function
|
|
3282
|
-
return
|
|
3283
|
-
(function(t, e,
|
|
3277
|
+
var Y0 = { exports: {} }, ix = Y0.exports, se;
|
|
3278
|
+
function sx() {
|
|
3279
|
+
return se || (se = 1, (function(r, d) {
|
|
3280
|
+
(function(t, e, c) {
|
|
3284
3281
|
r.exports = e(M(), X());
|
|
3285
|
-
})(
|
|
3282
|
+
})(ix, function(t) {
|
|
3286
3283
|
return t.mode.CTR = (function() {
|
|
3287
|
-
var e = t.lib.BlockCipherMode.extend(),
|
|
3288
|
-
processBlock: function(
|
|
3289
|
-
var
|
|
3284
|
+
var e = t.lib.BlockCipherMode.extend(), c = e.Encryptor = e.extend({
|
|
3285
|
+
processBlock: function(v, y) {
|
|
3286
|
+
var B = this._cipher, C = B.blockSize, x = this._iv, n = this._counter;
|
|
3290
3287
|
x && (n = this._counter = x.slice(0), this._iv = void 0);
|
|
3291
3288
|
var E = n.slice(0);
|
|
3292
|
-
|
|
3293
|
-
for (var a = 0; a <
|
|
3294
|
-
|
|
3289
|
+
B.encryptBlock(E, 0), n[C - 1] = n[C - 1] + 1 | 0;
|
|
3290
|
+
for (var a = 0; a < C; a++)
|
|
3291
|
+
v[y + a] ^= E[a];
|
|
3295
3292
|
}
|
|
3296
3293
|
});
|
|
3297
|
-
return e.Decryptor =
|
|
3294
|
+
return e.Decryptor = c, e;
|
|
3298
3295
|
})(), t.mode.CTR;
|
|
3299
3296
|
});
|
|
3300
|
-
})(
|
|
3297
|
+
})(Y0)), Y0.exports;
|
|
3301
3298
|
}
|
|
3302
|
-
var
|
|
3303
|
-
function
|
|
3304
|
-
return
|
|
3305
|
-
(function(t, e,
|
|
3299
|
+
var Z0 = { exports: {} }, cx = Z0.exports, ce;
|
|
3300
|
+
function fx() {
|
|
3301
|
+
return ce || (ce = 1, (function(r, d) {
|
|
3302
|
+
(function(t, e, c) {
|
|
3306
3303
|
r.exports = e(M(), X());
|
|
3307
|
-
})(
|
|
3304
|
+
})(cx, function(t) {
|
|
3308
3305
|
return t.mode.CTRGladman = (function() {
|
|
3309
3306
|
var e = t.lib.BlockCipherMode.extend();
|
|
3310
|
-
function
|
|
3311
|
-
if ((
|
|
3312
|
-
var
|
|
3313
|
-
|
|
3307
|
+
function c(B) {
|
|
3308
|
+
if ((B >> 24 & 255) === 255) {
|
|
3309
|
+
var C = B >> 16 & 255, x = B >> 8 & 255, n = B & 255;
|
|
3310
|
+
C === 255 ? (C = 0, x === 255 ? (x = 0, n === 255 ? n = 0 : ++n) : ++x) : ++C, B = 0, B += C << 16, B += x << 8, B += n;
|
|
3314
3311
|
} else
|
|
3315
|
-
|
|
3316
|
-
return
|
|
3312
|
+
B += 1 << 24;
|
|
3313
|
+
return B;
|
|
3317
3314
|
}
|
|
3318
|
-
function
|
|
3319
|
-
return (
|
|
3315
|
+
function v(B) {
|
|
3316
|
+
return (B[0] = c(B[0])) === 0 && (B[1] = c(B[1])), B;
|
|
3320
3317
|
}
|
|
3321
|
-
var
|
|
3322
|
-
processBlock: function(
|
|
3318
|
+
var y = e.Encryptor = e.extend({
|
|
3319
|
+
processBlock: function(B, C) {
|
|
3323
3320
|
var x = this._cipher, n = x.blockSize, E = this._iv, a = this._counter;
|
|
3324
|
-
E && (a = this._counter = E.slice(0), this._iv = void 0),
|
|
3321
|
+
E && (a = this._counter = E.slice(0), this._iv = void 0), v(a);
|
|
3325
3322
|
var s = a.slice(0);
|
|
3326
3323
|
x.encryptBlock(s, 0);
|
|
3327
3324
|
for (var u = 0; u < n; u++)
|
|
3328
|
-
C
|
|
3325
|
+
B[C + u] ^= s[u];
|
|
3329
3326
|
}
|
|
3330
3327
|
});
|
|
3331
|
-
return e.Decryptor =
|
|
3328
|
+
return e.Decryptor = y, e;
|
|
3332
3329
|
})(), t.mode.CTRGladman;
|
|
3333
3330
|
});
|
|
3334
|
-
})(
|
|
3331
|
+
})(Z0)), Z0.exports;
|
|
3335
3332
|
}
|
|
3336
|
-
var Q0 = { exports: {} },
|
|
3337
|
-
function
|
|
3338
|
-
return
|
|
3339
|
-
(function(t, e,
|
|
3333
|
+
var Q0 = { exports: {} }, ux = Q0.exports, fe;
|
|
3334
|
+
function dx() {
|
|
3335
|
+
return fe || (fe = 1, (function(r, d) {
|
|
3336
|
+
(function(t, e, c) {
|
|
3340
3337
|
r.exports = e(M(), X());
|
|
3341
|
-
})(
|
|
3338
|
+
})(ux, function(t) {
|
|
3342
3339
|
return t.mode.OFB = (function() {
|
|
3343
|
-
var e = t.lib.BlockCipherMode.extend(),
|
|
3344
|
-
processBlock: function(
|
|
3345
|
-
var
|
|
3346
|
-
x && (n = this._keystream = x.slice(0), this._iv = void 0),
|
|
3347
|
-
for (var E = 0; E <
|
|
3348
|
-
|
|
3340
|
+
var e = t.lib.BlockCipherMode.extend(), c = e.Encryptor = e.extend({
|
|
3341
|
+
processBlock: function(v, y) {
|
|
3342
|
+
var B = this._cipher, C = B.blockSize, x = this._iv, n = this._keystream;
|
|
3343
|
+
x && (n = this._keystream = x.slice(0), this._iv = void 0), B.encryptBlock(n, 0);
|
|
3344
|
+
for (var E = 0; E < C; E++)
|
|
3345
|
+
v[y + E] ^= n[E];
|
|
3349
3346
|
}
|
|
3350
3347
|
});
|
|
3351
|
-
return e.Decryptor =
|
|
3348
|
+
return e.Decryptor = c, e;
|
|
3352
3349
|
})(), t.mode.OFB;
|
|
3353
3350
|
});
|
|
3354
3351
|
})(Q0)), Q0.exports;
|
|
3355
3352
|
}
|
|
3356
|
-
var V0 = { exports: {} },
|
|
3357
|
-
function
|
|
3358
|
-
return
|
|
3359
|
-
(function(t, e,
|
|
3353
|
+
var V0 = { exports: {} }, lx = V0.exports, ue;
|
|
3354
|
+
function hx() {
|
|
3355
|
+
return ue || (ue = 1, (function(r, d) {
|
|
3356
|
+
(function(t, e, c) {
|
|
3360
3357
|
r.exports = e(M(), X());
|
|
3361
|
-
})(
|
|
3358
|
+
})(lx, function(t) {
|
|
3362
3359
|
return t.mode.ECB = (function() {
|
|
3363
3360
|
var e = t.lib.BlockCipherMode.extend();
|
|
3364
3361
|
return e.Encryptor = e.extend({
|
|
3365
|
-
processBlock: function(
|
|
3366
|
-
this._cipher.encryptBlock(
|
|
3362
|
+
processBlock: function(c, v) {
|
|
3363
|
+
this._cipher.encryptBlock(c, v);
|
|
3367
3364
|
}
|
|
3368
3365
|
}), e.Decryptor = e.extend({
|
|
3369
|
-
processBlock: function(
|
|
3370
|
-
this._cipher.decryptBlock(
|
|
3366
|
+
processBlock: function(c, v) {
|
|
3367
|
+
this._cipher.decryptBlock(c, v);
|
|
3371
3368
|
}
|
|
3372
3369
|
}), e;
|
|
3373
3370
|
})(), t.mode.ECB;
|
|
3374
3371
|
});
|
|
3375
3372
|
})(V0)), V0.exports;
|
|
3376
3373
|
}
|
|
3377
|
-
var J0 = { exports: {} },
|
|
3378
|
-
function
|
|
3379
|
-
return
|
|
3380
|
-
(function(t, e,
|
|
3374
|
+
var J0 = { exports: {} }, vx = J0.exports, de;
|
|
3375
|
+
function px() {
|
|
3376
|
+
return de || (de = 1, (function(r, d) {
|
|
3377
|
+
(function(t, e, c) {
|
|
3381
3378
|
r.exports = e(M(), X());
|
|
3382
|
-
})(
|
|
3379
|
+
})(vx, function(t) {
|
|
3383
3380
|
return t.pad.AnsiX923 = {
|
|
3384
|
-
pad: function(e,
|
|
3385
|
-
var
|
|
3386
|
-
e.clamp(), e.words[
|
|
3381
|
+
pad: function(e, c) {
|
|
3382
|
+
var v = e.sigBytes, y = c * 4, B = y - v % y, C = v + B - 1;
|
|
3383
|
+
e.clamp(), e.words[C >>> 2] |= B << 24 - C % 4 * 8, e.sigBytes += B;
|
|
3387
3384
|
},
|
|
3388
3385
|
unpad: function(e) {
|
|
3389
|
-
var
|
|
3390
|
-
e.sigBytes -=
|
|
3386
|
+
var c = e.words[e.sigBytes - 1 >>> 2] & 255;
|
|
3387
|
+
e.sigBytes -= c;
|
|
3391
3388
|
}
|
|
3392
3389
|
}, t.pad.Ansix923;
|
|
3393
3390
|
});
|
|
3394
3391
|
})(J0)), J0.exports;
|
|
3395
3392
|
}
|
|
3396
|
-
var rr = { exports: {} },
|
|
3397
|
-
function
|
|
3398
|
-
return
|
|
3399
|
-
(function(t, e,
|
|
3393
|
+
var rr = { exports: {} }, Bx = rr.exports, le;
|
|
3394
|
+
function Cx() {
|
|
3395
|
+
return le || (le = 1, (function(r, d) {
|
|
3396
|
+
(function(t, e, c) {
|
|
3400
3397
|
r.exports = e(M(), X());
|
|
3401
|
-
})(
|
|
3398
|
+
})(Bx, function(t) {
|
|
3402
3399
|
return t.pad.Iso10126 = {
|
|
3403
|
-
pad: function(e,
|
|
3404
|
-
var
|
|
3405
|
-
e.concat(t.lib.WordArray.random(
|
|
3400
|
+
pad: function(e, c) {
|
|
3401
|
+
var v = c * 4, y = v - e.sigBytes % v;
|
|
3402
|
+
e.concat(t.lib.WordArray.random(y - 1)).concat(t.lib.WordArray.create([y << 24], 1));
|
|
3406
3403
|
},
|
|
3407
3404
|
unpad: function(e) {
|
|
3408
|
-
var
|
|
3409
|
-
e.sigBytes -=
|
|
3405
|
+
var c = e.words[e.sigBytes - 1 >>> 2] & 255;
|
|
3406
|
+
e.sigBytes -= c;
|
|
3410
3407
|
}
|
|
3411
3408
|
}, t.pad.Iso10126;
|
|
3412
3409
|
});
|
|
3413
3410
|
})(rr)), rr.exports;
|
|
3414
3411
|
}
|
|
3415
|
-
var er = { exports: {} },
|
|
3416
|
-
function
|
|
3417
|
-
return
|
|
3418
|
-
(function(t, e,
|
|
3412
|
+
var er = { exports: {} }, Ex = er.exports, he;
|
|
3413
|
+
function Ax() {
|
|
3414
|
+
return he || (he = 1, (function(r, d) {
|
|
3415
|
+
(function(t, e, c) {
|
|
3419
3416
|
r.exports = e(M(), X());
|
|
3420
|
-
})(
|
|
3417
|
+
})(Ex, function(t) {
|
|
3421
3418
|
return t.pad.Iso97971 = {
|
|
3422
|
-
pad: function(e,
|
|
3423
|
-
e.concat(t.lib.WordArray.create([2147483648], 1)), t.pad.ZeroPadding.pad(e,
|
|
3419
|
+
pad: function(e, c) {
|
|
3420
|
+
e.concat(t.lib.WordArray.create([2147483648], 1)), t.pad.ZeroPadding.pad(e, c);
|
|
3424
3421
|
},
|
|
3425
3422
|
unpad: function(e) {
|
|
3426
3423
|
t.pad.ZeroPadding.unpad(e), e.sigBytes--;
|
|
@@ -3429,21 +3426,21 @@ function Ex() {
|
|
|
3429
3426
|
});
|
|
3430
3427
|
})(er)), er.exports;
|
|
3431
3428
|
}
|
|
3432
|
-
var tr = { exports: {} },
|
|
3433
|
-
function
|
|
3434
|
-
return
|
|
3435
|
-
(function(t, e,
|
|
3429
|
+
var tr = { exports: {} }, Fx = tr.exports, ve;
|
|
3430
|
+
function gx() {
|
|
3431
|
+
return ve || (ve = 1, (function(r, d) {
|
|
3432
|
+
(function(t, e, c) {
|
|
3436
3433
|
r.exports = e(M(), X());
|
|
3437
|
-
})(
|
|
3434
|
+
})(Fx, function(t) {
|
|
3438
3435
|
return t.pad.ZeroPadding = {
|
|
3439
|
-
pad: function(e,
|
|
3440
|
-
var
|
|
3441
|
-
e.clamp(), e.sigBytes +=
|
|
3436
|
+
pad: function(e, c) {
|
|
3437
|
+
var v = c * 4;
|
|
3438
|
+
e.clamp(), e.sigBytes += v - (e.sigBytes % v || v);
|
|
3442
3439
|
},
|
|
3443
3440
|
unpad: function(e) {
|
|
3444
|
-
for (var
|
|
3445
|
-
if (
|
|
3446
|
-
e.sigBytes =
|
|
3441
|
+
for (var c = e.words, v = e.sigBytes - 1, v = e.sigBytes - 1; v >= 0; v--)
|
|
3442
|
+
if (c[v >>> 2] >>> 24 - v % 4 * 8 & 255) {
|
|
3443
|
+
e.sigBytes = v + 1;
|
|
3447
3444
|
break;
|
|
3448
3445
|
}
|
|
3449
3446
|
}
|
|
@@ -3451,12 +3448,12 @@ function Fx() {
|
|
|
3451
3448
|
});
|
|
3452
3449
|
})(tr)), tr.exports;
|
|
3453
3450
|
}
|
|
3454
|
-
var xr = { exports: {} },
|
|
3455
|
-
function
|
|
3456
|
-
return
|
|
3457
|
-
(function(t, e,
|
|
3451
|
+
var xr = { exports: {} }, Dx = xr.exports, pe;
|
|
3452
|
+
function bx() {
|
|
3453
|
+
return pe || (pe = 1, (function(r, d) {
|
|
3454
|
+
(function(t, e, c) {
|
|
3458
3455
|
r.exports = e(M(), X());
|
|
3459
|
-
})(
|
|
3456
|
+
})(Dx, function(t) {
|
|
3460
3457
|
return t.pad.NoPadding = {
|
|
3461
3458
|
pad: function() {
|
|
3462
3459
|
},
|
|
@@ -3466,14 +3463,14 @@ function Dx() {
|
|
|
3466
3463
|
});
|
|
3467
3464
|
})(xr)), xr.exports;
|
|
3468
3465
|
}
|
|
3469
|
-
var nr = { exports: {} },
|
|
3470
|
-
function
|
|
3471
|
-
return
|
|
3472
|
-
(function(t, e,
|
|
3466
|
+
var nr = { exports: {} }, mx = nr.exports, Be;
|
|
3467
|
+
function _x() {
|
|
3468
|
+
return Be || (Be = 1, (function(r, d) {
|
|
3469
|
+
(function(t, e, c) {
|
|
3473
3470
|
r.exports = e(M(), X());
|
|
3474
|
-
})(
|
|
3471
|
+
})(mx, function(t) {
|
|
3475
3472
|
return (function(e) {
|
|
3476
|
-
var
|
|
3473
|
+
var c = t, v = c.lib, y = v.CipherParams, B = c.enc, C = B.Hex, x = c.format;
|
|
3477
3474
|
x.Hex = {
|
|
3478
3475
|
/**
|
|
3479
3476
|
* Converts the ciphertext of a cipher params object to a hexadecimally encoded string.
|
|
@@ -3489,7 +3486,7 @@ function mx() {
|
|
|
3489
3486
|
* var hexString = CryptoJS.format.Hex.stringify(cipherParams);
|
|
3490
3487
|
*/
|
|
3491
3488
|
stringify: function(n) {
|
|
3492
|
-
return n.ciphertext.toString(
|
|
3489
|
+
return n.ciphertext.toString(C);
|
|
3493
3490
|
},
|
|
3494
3491
|
/**
|
|
3495
3492
|
* Converts a hexadecimally encoded ciphertext string to a cipher params object.
|
|
@@ -3505,82 +3502,82 @@ function mx() {
|
|
|
3505
3502
|
* var cipherParams = CryptoJS.format.Hex.parse(hexString);
|
|
3506
3503
|
*/
|
|
3507
3504
|
parse: function(n) {
|
|
3508
|
-
var E =
|
|
3509
|
-
return
|
|
3505
|
+
var E = C.parse(n);
|
|
3506
|
+
return y.create({ ciphertext: E });
|
|
3510
3507
|
}
|
|
3511
3508
|
};
|
|
3512
3509
|
})(), t.format.Hex;
|
|
3513
3510
|
});
|
|
3514
3511
|
})(nr)), nr.exports;
|
|
3515
3512
|
}
|
|
3516
|
-
var ar = { exports: {} },
|
|
3517
|
-
function
|
|
3518
|
-
return
|
|
3519
|
-
(function(t, e,
|
|
3513
|
+
var ar = { exports: {} }, yx = ar.exports, Ce;
|
|
3514
|
+
function wx() {
|
|
3515
|
+
return Ce || (Ce = 1, (function(r, d) {
|
|
3516
|
+
(function(t, e, c) {
|
|
3520
3517
|
r.exports = e(M(), c0(), f0(), o0(), X());
|
|
3521
|
-
})(
|
|
3518
|
+
})(yx, function(t) {
|
|
3522
3519
|
return (function() {
|
|
3523
|
-
var e = t,
|
|
3520
|
+
var e = t, c = e.lib, v = c.BlockCipher, y = e.algo, B = [], C = [], x = [], n = [], E = [], a = [], s = [], u = [], p = [], h = [];
|
|
3524
3521
|
(function() {
|
|
3525
|
-
for (var o = [],
|
|
3526
|
-
|
|
3527
|
-
for (var b = 0, g = 0,
|
|
3528
|
-
var
|
|
3529
|
-
|
|
3530
|
-
var k = o[b], $ = o[k], F = o[$], w = o[
|
|
3522
|
+
for (var o = [], l = 0; l < 256; l++)
|
|
3523
|
+
l < 128 ? o[l] = l << 1 : o[l] = l << 1 ^ 283;
|
|
3524
|
+
for (var b = 0, g = 0, l = 0; l < 256; l++) {
|
|
3525
|
+
var _ = g ^ g << 1 ^ g << 2 ^ g << 3 ^ g << 4;
|
|
3526
|
+
_ = _ >>> 8 ^ _ & 255 ^ 99, B[b] = _, C[_] = b;
|
|
3527
|
+
var k = o[b], $ = o[k], F = o[$], w = o[_] * 257 ^ _ * 16843008;
|
|
3531
3528
|
x[b] = w << 24 | w >>> 8, n[b] = w << 16 | w >>> 16, E[b] = w << 8 | w >>> 24, a[b] = w;
|
|
3532
3529
|
var w = F * 16843009 ^ $ * 65537 ^ k * 257 ^ b * 16843008;
|
|
3533
|
-
s[
|
|
3530
|
+
s[_] = w << 24 | w >>> 8, u[_] = w << 16 | w >>> 16, p[_] = w << 8 | w >>> 24, h[_] = w, b ? (b = k ^ o[o[o[F ^ k]]], g ^= o[o[g]]) : b = g = 1;
|
|
3534
3531
|
}
|
|
3535
3532
|
})();
|
|
3536
|
-
var D = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], i =
|
|
3533
|
+
var D = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], i = y.AES = v.extend({
|
|
3537
3534
|
_doReset: function() {
|
|
3538
3535
|
var o;
|
|
3539
3536
|
if (!(this._nRounds && this._keyPriorReset === this._key)) {
|
|
3540
|
-
for (var
|
|
3541
|
-
F < g ? $[F] = b[F] : (o = $[F - 1], F % g ? g > 6 && F % g == 4 && (o =
|
|
3537
|
+
for (var l = this._keyPriorReset = this._key, b = l.words, g = l.sigBytes / 4, _ = this._nRounds = g + 6, k = (_ + 1) * 4, $ = this._keySchedule = [], F = 0; F < k; F++)
|
|
3538
|
+
F < g ? $[F] = b[F] : (o = $[F - 1], F % g ? g > 6 && F % g == 4 && (o = B[o >>> 24] << 24 | B[o >>> 16 & 255] << 16 | B[o >>> 8 & 255] << 8 | B[o & 255]) : (o = o << 8 | o >>> 24, o = B[o >>> 24] << 24 | B[o >>> 16 & 255] << 16 | B[o >>> 8 & 255] << 8 | B[o & 255], o ^= D[F / g | 0] << 24), $[F] = $[F - g] ^ o);
|
|
3542
3539
|
for (var w = this._invKeySchedule = [], H = 0; H < k; H++) {
|
|
3543
3540
|
var F = k - H;
|
|
3544
3541
|
if (H % 4)
|
|
3545
3542
|
var o = $[F];
|
|
3546
3543
|
else
|
|
3547
3544
|
var o = $[F - 4];
|
|
3548
|
-
H < 4 || F <= 4 ? w[H] = o : w[H] = s[
|
|
3545
|
+
H < 4 || F <= 4 ? w[H] = o : w[H] = s[B[o >>> 24]] ^ u[B[o >>> 16 & 255]] ^ p[B[o >>> 8 & 255]] ^ h[B[o & 255]];
|
|
3549
3546
|
}
|
|
3550
3547
|
}
|
|
3551
3548
|
},
|
|
3552
|
-
encryptBlock: function(o,
|
|
3553
|
-
this._doCryptBlock(o,
|
|
3549
|
+
encryptBlock: function(o, l) {
|
|
3550
|
+
this._doCryptBlock(o, l, this._keySchedule, x, n, E, a, B);
|
|
3554
3551
|
},
|
|
3555
|
-
decryptBlock: function(o,
|
|
3556
|
-
var b = o[
|
|
3557
|
-
o[
|
|
3558
|
-
var b = o[
|
|
3559
|
-
o[
|
|
3552
|
+
decryptBlock: function(o, l) {
|
|
3553
|
+
var b = o[l + 1];
|
|
3554
|
+
o[l + 1] = o[l + 3], o[l + 3] = b, this._doCryptBlock(o, l, this._invKeySchedule, s, u, p, h, C);
|
|
3555
|
+
var b = o[l + 1];
|
|
3556
|
+
o[l + 1] = o[l + 3], o[l + 3] = b;
|
|
3560
3557
|
},
|
|
3561
|
-
_doCryptBlock: function(o,
|
|
3562
|
-
for (var w = this._nRounds, H = o[
|
|
3563
|
-
var T = g[H >>> 24] ^
|
|
3558
|
+
_doCryptBlock: function(o, l, b, g, _, k, $, F) {
|
|
3559
|
+
for (var w = this._nRounds, H = o[l] ^ b[0], R = o[l + 1] ^ b[1], z = o[l + 2] ^ b[2], O = o[l + 3] ^ b[3], q = 4, U = 1; U < w; U++) {
|
|
3560
|
+
var T = g[H >>> 24] ^ _[R >>> 16 & 255] ^ k[z >>> 8 & 255] ^ $[O & 255] ^ b[q++], N = g[R >>> 24] ^ _[z >>> 16 & 255] ^ k[O >>> 8 & 255] ^ $[H & 255] ^ b[q++], j = g[z >>> 24] ^ _[O >>> 16 & 255] ^ k[H >>> 8 & 255] ^ $[R & 255] ^ b[q++], S = g[O >>> 24] ^ _[H >>> 16 & 255] ^ k[R >>> 8 & 255] ^ $[z & 255] ^ b[q++];
|
|
3564
3561
|
H = T, R = N, z = j, O = S;
|
|
3565
3562
|
}
|
|
3566
3563
|
var T = (F[H >>> 24] << 24 | F[R >>> 16 & 255] << 16 | F[z >>> 8 & 255] << 8 | F[O & 255]) ^ b[q++], N = (F[R >>> 24] << 24 | F[z >>> 16 & 255] << 16 | F[O >>> 8 & 255] << 8 | F[H & 255]) ^ b[q++], j = (F[z >>> 24] << 24 | F[O >>> 16 & 255] << 16 | F[H >>> 8 & 255] << 8 | F[R & 255]) ^ b[q++], S = (F[O >>> 24] << 24 | F[H >>> 16 & 255] << 16 | F[R >>> 8 & 255] << 8 | F[z & 255]) ^ b[q++];
|
|
3567
|
-
o[
|
|
3564
|
+
o[l] = T, o[l + 1] = N, o[l + 2] = j, o[l + 3] = S;
|
|
3568
3565
|
},
|
|
3569
3566
|
keySize: 256 / 32
|
|
3570
3567
|
});
|
|
3571
|
-
e.AES =
|
|
3568
|
+
e.AES = v._createHelper(i);
|
|
3572
3569
|
})(), t.AES;
|
|
3573
3570
|
});
|
|
3574
3571
|
})(ar)), ar.exports;
|
|
3575
3572
|
}
|
|
3576
|
-
var or = { exports: {} },
|
|
3577
|
-
function
|
|
3578
|
-
return
|
|
3579
|
-
(function(t, e,
|
|
3573
|
+
var or = { exports: {} }, kx = or.exports, Ee;
|
|
3574
|
+
function Sx() {
|
|
3575
|
+
return Ee || (Ee = 1, (function(r, d) {
|
|
3576
|
+
(function(t, e, c) {
|
|
3580
3577
|
r.exports = e(M(), c0(), f0(), o0(), X());
|
|
3581
|
-
})(
|
|
3578
|
+
})(kx, function(t) {
|
|
3582
3579
|
return (function() {
|
|
3583
|
-
var e = t,
|
|
3580
|
+
var e = t, c = e.lib, v = c.WordArray, y = c.BlockCipher, B = e.algo, C = [
|
|
3584
3581
|
57,
|
|
3585
3582
|
49,
|
|
3586
3583
|
41,
|
|
@@ -4224,22 +4221,22 @@ function kx() {
|
|
|
4224
4221
|
8064,
|
|
4225
4222
|
504,
|
|
4226
4223
|
2147483679
|
|
4227
|
-
], s =
|
|
4224
|
+
], s = B.DES = y.extend({
|
|
4228
4225
|
_doReset: function() {
|
|
4229
|
-
for (var D = this._key, i = D.words, o = [],
|
|
4230
|
-
var b =
|
|
4231
|
-
o[
|
|
4226
|
+
for (var D = this._key, i = D.words, o = [], l = 0; l < 56; l++) {
|
|
4227
|
+
var b = C[l] - 1;
|
|
4228
|
+
o[l] = i[b >>> 5] >>> 31 - b % 32 & 1;
|
|
4232
4229
|
}
|
|
4233
|
-
for (var g = this._subKeys = [],
|
|
4234
|
-
for (var k = g[
|
|
4235
|
-
k[
|
|
4230
|
+
for (var g = this._subKeys = [], _ = 0; _ < 16; _++) {
|
|
4231
|
+
for (var k = g[_] = [], $ = n[_], l = 0; l < 24; l++)
|
|
4232
|
+
k[l / 6 | 0] |= o[(x[l] - 1 + $) % 28] << 31 - l % 6, k[4 + (l / 6 | 0)] |= o[28 + (x[l + 24] - 1 + $) % 28] << 31 - l % 6;
|
|
4236
4233
|
k[0] = k[0] << 1 | k[0] >>> 31;
|
|
4237
|
-
for (var
|
|
4238
|
-
k[
|
|
4234
|
+
for (var l = 1; l < 7; l++)
|
|
4235
|
+
k[l] = k[l] >>> (l - 1) * 4 + 3;
|
|
4239
4236
|
k[7] = k[7] << 5 | k[7] >>> 27;
|
|
4240
4237
|
}
|
|
4241
|
-
for (var F = this._invSubKeys = [],
|
|
4242
|
-
F[
|
|
4238
|
+
for (var F = this._invSubKeys = [], l = 0; l < 16; l++)
|
|
4239
|
+
F[l] = g[15 - l];
|
|
4243
4240
|
},
|
|
4244
4241
|
encryptBlock: function(D, i) {
|
|
4245
4242
|
this._doCryptBlock(D, i, this._subKeys);
|
|
@@ -4249,10 +4246,10 @@ function kx() {
|
|
|
4249
4246
|
},
|
|
4250
4247
|
_doCryptBlock: function(D, i, o) {
|
|
4251
4248
|
this._lBlock = D[i], this._rBlock = D[i + 1], u.call(this, 4, 252645135), u.call(this, 16, 65535), p.call(this, 2, 858993459), p.call(this, 8, 16711935), u.call(this, 1, 1431655765);
|
|
4252
|
-
for (var
|
|
4253
|
-
for (var b = o[
|
|
4254
|
-
k |= E[$][((
|
|
4255
|
-
this._lBlock =
|
|
4249
|
+
for (var l = 0; l < 16; l++) {
|
|
4250
|
+
for (var b = o[l], g = this._lBlock, _ = this._rBlock, k = 0, $ = 0; $ < 8; $++)
|
|
4251
|
+
k |= E[$][((_ ^ b[$]) & a[$]) >>> 0];
|
|
4252
|
+
this._lBlock = _, this._rBlock = g ^ k;
|
|
4256
4253
|
}
|
|
4257
4254
|
var F = this._lBlock;
|
|
4258
4255
|
this._lBlock = this._rBlock, this._rBlock = F, u.call(this, 1, 1431655765), p.call(this, 8, 16711935), p.call(this, 2, 858993459), u.call(this, 16, 65535), u.call(this, 4, 252645135), D[i] = this._lBlock, D[i + 1] = this._rBlock;
|
|
@@ -4269,14 +4266,14 @@ function kx() {
|
|
|
4269
4266
|
var o = (this._rBlock >>> D ^ this._lBlock) & i;
|
|
4270
4267
|
this._lBlock ^= o, this._rBlock ^= o << D;
|
|
4271
4268
|
}
|
|
4272
|
-
e.DES =
|
|
4273
|
-
var
|
|
4269
|
+
e.DES = y._createHelper(s);
|
|
4270
|
+
var h = B.TripleDES = y.extend({
|
|
4274
4271
|
_doReset: function() {
|
|
4275
4272
|
var D = this._key, i = D.words;
|
|
4276
4273
|
if (i.length !== 2 && i.length !== 4 && i.length < 6)
|
|
4277
4274
|
throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");
|
|
4278
|
-
var o = i.slice(0, 2),
|
|
4279
|
-
this._des1 = s.createEncryptor(
|
|
4275
|
+
var o = i.slice(0, 2), l = i.length < 4 ? i.slice(0, 2) : i.slice(2, 4), b = i.length < 6 ? i.slice(0, 2) : i.slice(4, 6);
|
|
4276
|
+
this._des1 = s.createEncryptor(v.create(o)), this._des2 = s.createEncryptor(v.create(l)), this._des3 = s.createEncryptor(v.create(b));
|
|
4280
4277
|
},
|
|
4281
4278
|
encryptBlock: function(D, i) {
|
|
4282
4279
|
this._des1.encryptBlock(D, i), this._des2.decryptBlock(D, i), this._des3.encryptBlock(D, i);
|
|
@@ -4288,24 +4285,24 @@ function kx() {
|
|
|
4288
4285
|
ivSize: 64 / 32,
|
|
4289
4286
|
blockSize: 64 / 32
|
|
4290
4287
|
});
|
|
4291
|
-
e.TripleDES =
|
|
4288
|
+
e.TripleDES = y._createHelper(h);
|
|
4292
4289
|
})(), t.TripleDES;
|
|
4293
4290
|
});
|
|
4294
4291
|
})(or)), or.exports;
|
|
4295
4292
|
}
|
|
4296
|
-
var ir = { exports: {} },
|
|
4297
|
-
function
|
|
4298
|
-
return
|
|
4299
|
-
(function(t, e,
|
|
4293
|
+
var ir = { exports: {} }, Hx = ir.exports, Ae;
|
|
4294
|
+
function Rx() {
|
|
4295
|
+
return Ae || (Ae = 1, (function(r, d) {
|
|
4296
|
+
(function(t, e, c) {
|
|
4300
4297
|
r.exports = e(M(), c0(), f0(), o0(), X());
|
|
4301
|
-
})(
|
|
4298
|
+
})(Hx, function(t) {
|
|
4302
4299
|
return (function() {
|
|
4303
|
-
var e = t,
|
|
4300
|
+
var e = t, c = e.lib, v = c.StreamCipher, y = e.algo, B = y.RC4 = v.extend({
|
|
4304
4301
|
_doReset: function() {
|
|
4305
4302
|
for (var n = this._key, E = n.words, a = n.sigBytes, s = this._S = [], u = 0; u < 256; u++)
|
|
4306
4303
|
s[u] = u;
|
|
4307
4304
|
for (var u = 0, p = 0; u < 256; u++) {
|
|
4308
|
-
var
|
|
4305
|
+
var h = u % a, D = E[h >>> 2] >>> 24 - h % 4 * 8 & 255;
|
|
4309
4306
|
p = (p + s[u] + D) % 256;
|
|
4310
4307
|
var i = s[u];
|
|
4311
4308
|
s[u] = s[p], s[p] = i;
|
|
@@ -4313,12 +4310,12 @@ function Hx() {
|
|
|
4313
4310
|
this._i = this._j = 0;
|
|
4314
4311
|
},
|
|
4315
4312
|
_doProcessBlock: function(n, E) {
|
|
4316
|
-
n[E] ^=
|
|
4313
|
+
n[E] ^= C.call(this);
|
|
4317
4314
|
},
|
|
4318
4315
|
keySize: 256 / 32,
|
|
4319
4316
|
ivSize: 0
|
|
4320
4317
|
});
|
|
4321
|
-
function
|
|
4318
|
+
function C() {
|
|
4322
4319
|
for (var n = this._S, E = this._i, a = this._j, s = 0, u = 0; u < 4; u++) {
|
|
4323
4320
|
E = (E + 1) % 256, a = (a + n[E]) % 256;
|
|
4324
4321
|
var p = n[E];
|
|
@@ -4326,35 +4323,35 @@ function Hx() {
|
|
|
4326
4323
|
}
|
|
4327
4324
|
return this._i = E, this._j = a, s;
|
|
4328
4325
|
}
|
|
4329
|
-
e.RC4 =
|
|
4330
|
-
var x =
|
|
4326
|
+
e.RC4 = v._createHelper(B);
|
|
4327
|
+
var x = y.RC4Drop = B.extend({
|
|
4331
4328
|
/**
|
|
4332
4329
|
* Configuration options.
|
|
4333
4330
|
*
|
|
4334
4331
|
* @property {number} drop The number of keystream words to drop. Default 192
|
|
4335
4332
|
*/
|
|
4336
|
-
cfg:
|
|
4333
|
+
cfg: B.cfg.extend({
|
|
4337
4334
|
drop: 192
|
|
4338
4335
|
}),
|
|
4339
4336
|
_doReset: function() {
|
|
4340
|
-
|
|
4337
|
+
B._doReset.call(this);
|
|
4341
4338
|
for (var n = this.cfg.drop; n > 0; n--)
|
|
4342
|
-
|
|
4339
|
+
C.call(this);
|
|
4343
4340
|
}
|
|
4344
4341
|
});
|
|
4345
|
-
e.RC4Drop =
|
|
4342
|
+
e.RC4Drop = v._createHelper(x);
|
|
4346
4343
|
})(), t.RC4;
|
|
4347
4344
|
});
|
|
4348
4345
|
})(ir)), ir.exports;
|
|
4349
4346
|
}
|
|
4350
|
-
var sr = { exports: {} },
|
|
4351
|
-
function
|
|
4352
|
-
return
|
|
4353
|
-
(function(t, e,
|
|
4347
|
+
var sr = { exports: {} }, $x = sr.exports, Fe;
|
|
4348
|
+
function Px() {
|
|
4349
|
+
return Fe || (Fe = 1, (function(r, d) {
|
|
4350
|
+
(function(t, e, c) {
|
|
4354
4351
|
r.exports = e(M(), c0(), f0(), o0(), X());
|
|
4355
|
-
})(
|
|
4352
|
+
})($x, function(t) {
|
|
4356
4353
|
return (function() {
|
|
4357
|
-
var e = t,
|
|
4354
|
+
var e = t, c = e.lib, v = c.StreamCipher, y = e.algo, B = [], C = [], x = [], n = y.Rabbit = v.extend({
|
|
4358
4355
|
_doReset: function() {
|
|
4359
4356
|
for (var a = this._key.words, s = this.cfg.iv, u = 0; u < 4; u++)
|
|
4360
4357
|
a[u] = (a[u] << 8 | a[u] >>> 24) & 16711935 | (a[u] << 24 | a[u] >>> 8) & 4278255360;
|
|
@@ -4367,7 +4364,7 @@ function $x() {
|
|
|
4367
4364
|
a[1] << 16 | a[0] >>> 16,
|
|
4368
4365
|
a[3],
|
|
4369
4366
|
a[2] << 16 | a[1] >>> 16
|
|
4370
|
-
],
|
|
4367
|
+
], h = this._C = [
|
|
4371
4368
|
a[2] << 16 | a[2] >>> 16,
|
|
4372
4369
|
a[0] & 4294901760 | a[1] & 65535,
|
|
4373
4370
|
a[3] << 16 | a[3] >>> 16,
|
|
@@ -4381,46 +4378,46 @@ function $x() {
|
|
|
4381
4378
|
for (var u = 0; u < 4; u++)
|
|
4382
4379
|
E.call(this);
|
|
4383
4380
|
for (var u = 0; u < 8; u++)
|
|
4384
|
-
|
|
4381
|
+
h[u] ^= p[u + 4 & 7];
|
|
4385
4382
|
if (s) {
|
|
4386
|
-
var D = s.words, i = D[0], o = D[1],
|
|
4387
|
-
|
|
4383
|
+
var D = s.words, i = D[0], o = D[1], l = (i << 8 | i >>> 24) & 16711935 | (i << 24 | i >>> 8) & 4278255360, b = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360, g = l >>> 16 | b & 4294901760, _ = b << 16 | l & 65535;
|
|
4384
|
+
h[0] ^= l, h[1] ^= g, h[2] ^= b, h[3] ^= _, h[4] ^= l, h[5] ^= g, h[6] ^= b, h[7] ^= _;
|
|
4388
4385
|
for (var u = 0; u < 4; u++)
|
|
4389
4386
|
E.call(this);
|
|
4390
4387
|
}
|
|
4391
4388
|
},
|
|
4392
4389
|
_doProcessBlock: function(a, s) {
|
|
4393
4390
|
var u = this._X;
|
|
4394
|
-
E.call(this),
|
|
4391
|
+
E.call(this), B[0] = u[0] ^ u[5] >>> 16 ^ u[3] << 16, B[1] = u[2] ^ u[7] >>> 16 ^ u[5] << 16, B[2] = u[4] ^ u[1] >>> 16 ^ u[7] << 16, B[3] = u[6] ^ u[3] >>> 16 ^ u[1] << 16;
|
|
4395
4392
|
for (var p = 0; p < 4; p++)
|
|
4396
|
-
|
|
4393
|
+
B[p] = (B[p] << 8 | B[p] >>> 24) & 16711935 | (B[p] << 24 | B[p] >>> 8) & 4278255360, a[s + p] ^= B[p];
|
|
4397
4394
|
},
|
|
4398
4395
|
blockSize: 128 / 32,
|
|
4399
4396
|
ivSize: 64 / 32
|
|
4400
4397
|
});
|
|
4401
4398
|
function E() {
|
|
4402
4399
|
for (var a = this._X, s = this._C, u = 0; u < 8; u++)
|
|
4403
|
-
|
|
4404
|
-
s[0] = s[0] + 1295307597 + this._b | 0, s[1] = s[1] + 3545052371 + (s[0] >>> 0 <
|
|
4400
|
+
C[u] = s[u];
|
|
4401
|
+
s[0] = s[0] + 1295307597 + this._b | 0, s[1] = s[1] + 3545052371 + (s[0] >>> 0 < C[0] >>> 0 ? 1 : 0) | 0, s[2] = s[2] + 886263092 + (s[1] >>> 0 < C[1] >>> 0 ? 1 : 0) | 0, s[3] = s[3] + 1295307597 + (s[2] >>> 0 < C[2] >>> 0 ? 1 : 0) | 0, s[4] = s[4] + 3545052371 + (s[3] >>> 0 < C[3] >>> 0 ? 1 : 0) | 0, s[5] = s[5] + 886263092 + (s[4] >>> 0 < C[4] >>> 0 ? 1 : 0) | 0, s[6] = s[6] + 1295307597 + (s[5] >>> 0 < C[5] >>> 0 ? 1 : 0) | 0, s[7] = s[7] + 3545052371 + (s[6] >>> 0 < C[6] >>> 0 ? 1 : 0) | 0, this._b = s[7] >>> 0 < C[7] >>> 0 ? 1 : 0;
|
|
4405
4402
|
for (var u = 0; u < 8; u++) {
|
|
4406
|
-
var p = a[u] + s[u],
|
|
4403
|
+
var p = a[u] + s[u], h = p & 65535, D = p >>> 16, i = ((h * h >>> 17) + h * D >>> 15) + D * D, o = ((p & 4294901760) * p | 0) + ((p & 65535) * p | 0);
|
|
4407
4404
|
x[u] = i ^ o;
|
|
4408
4405
|
}
|
|
4409
4406
|
a[0] = x[0] + (x[7] << 16 | x[7] >>> 16) + (x[6] << 16 | x[6] >>> 16) | 0, a[1] = x[1] + (x[0] << 8 | x[0] >>> 24) + x[7] | 0, a[2] = x[2] + (x[1] << 16 | x[1] >>> 16) + (x[0] << 16 | x[0] >>> 16) | 0, a[3] = x[3] + (x[2] << 8 | x[2] >>> 24) + x[1] | 0, a[4] = x[4] + (x[3] << 16 | x[3] >>> 16) + (x[2] << 16 | x[2] >>> 16) | 0, a[5] = x[5] + (x[4] << 8 | x[4] >>> 24) + x[3] | 0, a[6] = x[6] + (x[5] << 16 | x[5] >>> 16) + (x[4] << 16 | x[4] >>> 16) | 0, a[7] = x[7] + (x[6] << 8 | x[6] >>> 24) + x[5] | 0;
|
|
4410
4407
|
}
|
|
4411
|
-
e.Rabbit =
|
|
4408
|
+
e.Rabbit = v._createHelper(n);
|
|
4412
4409
|
})(), t.Rabbit;
|
|
4413
4410
|
});
|
|
4414
4411
|
})(sr)), sr.exports;
|
|
4415
4412
|
}
|
|
4416
|
-
var cr = { exports: {} },
|
|
4417
|
-
function
|
|
4418
|
-
return
|
|
4419
|
-
(function(t, e,
|
|
4413
|
+
var cr = { exports: {} }, zx = cr.exports, ge;
|
|
4414
|
+
function Ix() {
|
|
4415
|
+
return ge || (ge = 1, (function(r, d) {
|
|
4416
|
+
(function(t, e, c) {
|
|
4420
4417
|
r.exports = e(M(), c0(), f0(), o0(), X());
|
|
4421
|
-
})(
|
|
4418
|
+
})(zx, function(t) {
|
|
4422
4419
|
return (function() {
|
|
4423
|
-
var e = t,
|
|
4420
|
+
var e = t, c = e.lib, v = c.StreamCipher, y = e.algo, B = [], C = [], x = [], n = y.RabbitLegacy = v.extend({
|
|
4424
4421
|
_doReset: function() {
|
|
4425
4422
|
var a = this._key.words, s = this.cfg.iv, u = this._X = [
|
|
4426
4423
|
a[0],
|
|
@@ -4442,50 +4439,50 @@ function zx() {
|
|
|
4442
4439
|
a[3] & 4294901760 | a[0] & 65535
|
|
4443
4440
|
];
|
|
4444
4441
|
this._b = 0;
|
|
4445
|
-
for (var
|
|
4442
|
+
for (var h = 0; h < 4; h++)
|
|
4446
4443
|
E.call(this);
|
|
4447
|
-
for (var
|
|
4448
|
-
p[
|
|
4444
|
+
for (var h = 0; h < 8; h++)
|
|
4445
|
+
p[h] ^= u[h + 4 & 7];
|
|
4449
4446
|
if (s) {
|
|
4450
|
-
var D = s.words, i = D[0], o = D[1],
|
|
4451
|
-
p[0] ^=
|
|
4452
|
-
for (var
|
|
4447
|
+
var D = s.words, i = D[0], o = D[1], l = (i << 8 | i >>> 24) & 16711935 | (i << 24 | i >>> 8) & 4278255360, b = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360, g = l >>> 16 | b & 4294901760, _ = b << 16 | l & 65535;
|
|
4448
|
+
p[0] ^= l, p[1] ^= g, p[2] ^= b, p[3] ^= _, p[4] ^= l, p[5] ^= g, p[6] ^= b, p[7] ^= _;
|
|
4449
|
+
for (var h = 0; h < 4; h++)
|
|
4453
4450
|
E.call(this);
|
|
4454
4451
|
}
|
|
4455
4452
|
},
|
|
4456
4453
|
_doProcessBlock: function(a, s) {
|
|
4457
4454
|
var u = this._X;
|
|
4458
|
-
E.call(this),
|
|
4455
|
+
E.call(this), B[0] = u[0] ^ u[5] >>> 16 ^ u[3] << 16, B[1] = u[2] ^ u[7] >>> 16 ^ u[5] << 16, B[2] = u[4] ^ u[1] >>> 16 ^ u[7] << 16, B[3] = u[6] ^ u[3] >>> 16 ^ u[1] << 16;
|
|
4459
4456
|
for (var p = 0; p < 4; p++)
|
|
4460
|
-
|
|
4457
|
+
B[p] = (B[p] << 8 | B[p] >>> 24) & 16711935 | (B[p] << 24 | B[p] >>> 8) & 4278255360, a[s + p] ^= B[p];
|
|
4461
4458
|
},
|
|
4462
4459
|
blockSize: 128 / 32,
|
|
4463
4460
|
ivSize: 64 / 32
|
|
4464
4461
|
});
|
|
4465
4462
|
function E() {
|
|
4466
4463
|
for (var a = this._X, s = this._C, u = 0; u < 8; u++)
|
|
4467
|
-
|
|
4468
|
-
s[0] = s[0] + 1295307597 + this._b | 0, s[1] = s[1] + 3545052371 + (s[0] >>> 0 <
|
|
4464
|
+
C[u] = s[u];
|
|
4465
|
+
s[0] = s[0] + 1295307597 + this._b | 0, s[1] = s[1] + 3545052371 + (s[0] >>> 0 < C[0] >>> 0 ? 1 : 0) | 0, s[2] = s[2] + 886263092 + (s[1] >>> 0 < C[1] >>> 0 ? 1 : 0) | 0, s[3] = s[3] + 1295307597 + (s[2] >>> 0 < C[2] >>> 0 ? 1 : 0) | 0, s[4] = s[4] + 3545052371 + (s[3] >>> 0 < C[3] >>> 0 ? 1 : 0) | 0, s[5] = s[5] + 886263092 + (s[4] >>> 0 < C[4] >>> 0 ? 1 : 0) | 0, s[6] = s[6] + 1295307597 + (s[5] >>> 0 < C[5] >>> 0 ? 1 : 0) | 0, s[7] = s[7] + 3545052371 + (s[6] >>> 0 < C[6] >>> 0 ? 1 : 0) | 0, this._b = s[7] >>> 0 < C[7] >>> 0 ? 1 : 0;
|
|
4469
4466
|
for (var u = 0; u < 8; u++) {
|
|
4470
|
-
var p = a[u] + s[u],
|
|
4467
|
+
var p = a[u] + s[u], h = p & 65535, D = p >>> 16, i = ((h * h >>> 17) + h * D >>> 15) + D * D, o = ((p & 4294901760) * p | 0) + ((p & 65535) * p | 0);
|
|
4471
4468
|
x[u] = i ^ o;
|
|
4472
4469
|
}
|
|
4473
4470
|
a[0] = x[0] + (x[7] << 16 | x[7] >>> 16) + (x[6] << 16 | x[6] >>> 16) | 0, a[1] = x[1] + (x[0] << 8 | x[0] >>> 24) + x[7] | 0, a[2] = x[2] + (x[1] << 16 | x[1] >>> 16) + (x[0] << 16 | x[0] >>> 16) | 0, a[3] = x[3] + (x[2] << 8 | x[2] >>> 24) + x[1] | 0, a[4] = x[4] + (x[3] << 16 | x[3] >>> 16) + (x[2] << 16 | x[2] >>> 16) | 0, a[5] = x[5] + (x[4] << 8 | x[4] >>> 24) + x[3] | 0, a[6] = x[6] + (x[5] << 16 | x[5] >>> 16) + (x[4] << 16 | x[4] >>> 16) | 0, a[7] = x[7] + (x[6] << 8 | x[6] >>> 24) + x[5] | 0;
|
|
4474
4471
|
}
|
|
4475
|
-
e.RabbitLegacy =
|
|
4472
|
+
e.RabbitLegacy = v._createHelper(n);
|
|
4476
4473
|
})(), t.RabbitLegacy;
|
|
4477
4474
|
});
|
|
4478
4475
|
})(cr)), cr.exports;
|
|
4479
4476
|
}
|
|
4480
|
-
var fr = { exports: {} }, Wx = fr.exports,
|
|
4481
|
-
function
|
|
4482
|
-
return
|
|
4483
|
-
(function(t, e,
|
|
4477
|
+
var fr = { exports: {} }, Wx = fr.exports, De;
|
|
4478
|
+
function Lx() {
|
|
4479
|
+
return De || (De = 1, (function(r, d) {
|
|
4480
|
+
(function(t, e, c) {
|
|
4484
4481
|
r.exports = e(M(), c0(), f0(), o0(), X());
|
|
4485
4482
|
})(Wx, function(t) {
|
|
4486
4483
|
return (function() {
|
|
4487
|
-
var e = t,
|
|
4488
|
-
const
|
|
4484
|
+
var e = t, c = e.lib, v = c.BlockCipher, y = e.algo;
|
|
4485
|
+
const B = 16, C = [
|
|
4489
4486
|
608135816,
|
|
4490
4487
|
2242054355,
|
|
4491
4488
|
320440878,
|
|
@@ -5542,163 +5539,163 @@ function Ix() {
|
|
|
5542
5539
|
pbox: [],
|
|
5543
5540
|
sbox: []
|
|
5544
5541
|
};
|
|
5545
|
-
function E(
|
|
5546
|
-
let i = D >> 24 & 255, o = D >> 16 & 255,
|
|
5547
|
-
return g = g ^
|
|
5542
|
+
function E(h, D) {
|
|
5543
|
+
let i = D >> 24 & 255, o = D >> 16 & 255, l = D >> 8 & 255, b = D & 255, g = h.sbox[0][i] + h.sbox[1][o];
|
|
5544
|
+
return g = g ^ h.sbox[2][l], g = g + h.sbox[3][b], g;
|
|
5548
5545
|
}
|
|
5549
|
-
function a(
|
|
5550
|
-
let o = D,
|
|
5551
|
-
for (let g = 0; g <
|
|
5552
|
-
o = o ^
|
|
5553
|
-
return b = o, o =
|
|
5546
|
+
function a(h, D, i) {
|
|
5547
|
+
let o = D, l = i, b;
|
|
5548
|
+
for (let g = 0; g < B; ++g)
|
|
5549
|
+
o = o ^ h.pbox[g], l = E(h, o) ^ l, b = o, o = l, l = b;
|
|
5550
|
+
return b = o, o = l, l = b, l = l ^ h.pbox[B], o = o ^ h.pbox[B + 1], { left: o, right: l };
|
|
5554
5551
|
}
|
|
5555
|
-
function s(
|
|
5556
|
-
let o = D,
|
|
5557
|
-
for (let g =
|
|
5558
|
-
o = o ^
|
|
5559
|
-
return b = o, o =
|
|
5552
|
+
function s(h, D, i) {
|
|
5553
|
+
let o = D, l = i, b;
|
|
5554
|
+
for (let g = B + 1; g > 1; --g)
|
|
5555
|
+
o = o ^ h.pbox[g], l = E(h, o) ^ l, b = o, o = l, l = b;
|
|
5556
|
+
return b = o, o = l, l = b, l = l ^ h.pbox[1], o = o ^ h.pbox[0], { left: o, right: l };
|
|
5560
5557
|
}
|
|
5561
|
-
function u(
|
|
5562
|
-
for (let
|
|
5563
|
-
|
|
5558
|
+
function u(h, D, i) {
|
|
5559
|
+
for (let _ = 0; _ < 4; _++) {
|
|
5560
|
+
h.sbox[_] = [];
|
|
5564
5561
|
for (let k = 0; k < 256; k++)
|
|
5565
|
-
|
|
5562
|
+
h.sbox[_][k] = x[_][k];
|
|
5566
5563
|
}
|
|
5567
5564
|
let o = 0;
|
|
5568
|
-
for (let
|
|
5569
|
-
|
|
5570
|
-
let
|
|
5571
|
-
for (let
|
|
5572
|
-
g = a(
|
|
5573
|
-
for (let
|
|
5565
|
+
for (let _ = 0; _ < B + 2; _++)
|
|
5566
|
+
h.pbox[_] = C[_] ^ D[o], o++, o >= i && (o = 0);
|
|
5567
|
+
let l = 0, b = 0, g = 0;
|
|
5568
|
+
for (let _ = 0; _ < B + 2; _ += 2)
|
|
5569
|
+
g = a(h, l, b), l = g.left, b = g.right, h.pbox[_] = l, h.pbox[_ + 1] = b;
|
|
5570
|
+
for (let _ = 0; _ < 4; _++)
|
|
5574
5571
|
for (let k = 0; k < 256; k += 2)
|
|
5575
|
-
g = a(
|
|
5572
|
+
g = a(h, l, b), l = g.left, b = g.right, h.sbox[_][k] = l, h.sbox[_][k + 1] = b;
|
|
5576
5573
|
return !0;
|
|
5577
5574
|
}
|
|
5578
|
-
var p =
|
|
5575
|
+
var p = y.Blowfish = v.extend({
|
|
5579
5576
|
_doReset: function() {
|
|
5580
5577
|
if (this._keyPriorReset !== this._key) {
|
|
5581
|
-
var
|
|
5578
|
+
var h = this._keyPriorReset = this._key, D = h.words, i = h.sigBytes / 4;
|
|
5582
5579
|
u(n, D, i);
|
|
5583
5580
|
}
|
|
5584
5581
|
},
|
|
5585
|
-
encryptBlock: function(
|
|
5586
|
-
var i = a(n,
|
|
5587
|
-
|
|
5582
|
+
encryptBlock: function(h, D) {
|
|
5583
|
+
var i = a(n, h[D], h[D + 1]);
|
|
5584
|
+
h[D] = i.left, h[D + 1] = i.right;
|
|
5588
5585
|
},
|
|
5589
|
-
decryptBlock: function(
|
|
5590
|
-
var i = s(n,
|
|
5591
|
-
|
|
5586
|
+
decryptBlock: function(h, D) {
|
|
5587
|
+
var i = s(n, h[D], h[D + 1]);
|
|
5588
|
+
h[D] = i.left, h[D + 1] = i.right;
|
|
5592
5589
|
},
|
|
5593
5590
|
blockSize: 64 / 32,
|
|
5594
5591
|
keySize: 128 / 32,
|
|
5595
5592
|
ivSize: 64 / 32
|
|
5596
5593
|
});
|
|
5597
|
-
e.Blowfish =
|
|
5594
|
+
e.Blowfish = v._createHelper(p);
|
|
5598
5595
|
})(), t.Blowfish;
|
|
5599
5596
|
});
|
|
5600
5597
|
})(fr)), fr.exports;
|
|
5601
5598
|
}
|
|
5602
|
-
var
|
|
5603
|
-
function
|
|
5604
|
-
return
|
|
5605
|
-
(function(t, e,
|
|
5606
|
-
r.exports = e(M(), hr(),
|
|
5607
|
-
})(
|
|
5599
|
+
var Ox = k0.exports, be;
|
|
5600
|
+
function qx() {
|
|
5601
|
+
return be || (be = 1, (function(r, d) {
|
|
5602
|
+
(function(t, e, c) {
|
|
5603
|
+
r.exports = e(M(), hr(), It(), Lt(), c0(), Tt(), f0(), Pe(), mr(), Gt(), ze(), Yt(), Qt(), Jt(), _r(), tx(), o0(), X(), ox(), sx(), fx(), dx(), hx(), px(), Cx(), Ax(), gx(), bx(), _x(), wx(), Sx(), Rx(), Px(), Ix(), Lx());
|
|
5604
|
+
})(Ox, function(t) {
|
|
5608
5605
|
return t;
|
|
5609
5606
|
});
|
|
5610
5607
|
})(k0)), k0.exports;
|
|
5611
5608
|
}
|
|
5612
|
-
|
|
5613
|
-
let
|
|
5609
|
+
qx();
|
|
5610
|
+
let Ie = null, We = null, Le = null, Oe = null;
|
|
5614
5611
|
Math.random().toString(36).substring(7);
|
|
5615
|
-
function
|
|
5616
|
-
|
|
5612
|
+
function Tx(r) {
|
|
5613
|
+
Ie = r.token, We = r.apiUrl, Le = r.deviceId, Oe = r.domain;
|
|
5617
5614
|
}
|
|
5618
|
-
function
|
|
5615
|
+
function Mx() {
|
|
5619
5616
|
return {
|
|
5620
|
-
token:
|
|
5617
|
+
token: Ie,
|
|
5621
5618
|
apiUrl: We,
|
|
5622
|
-
deviceId:
|
|
5623
|
-
domain:
|
|
5619
|
+
deviceId: Le,
|
|
5620
|
+
domain: Oe
|
|
5624
5621
|
};
|
|
5625
5622
|
}
|
|
5626
|
-
function
|
|
5627
|
-
return `/sdk-workers/${(r.split("/").pop() || r).replace(/\.ts$/, ".js")}?v=1.1.
|
|
5623
|
+
function Nx(r) {
|
|
5624
|
+
return `/sdk-workers/${(r.split("/").pop() || r).replace(/\.ts$/, ".js")}?v=1.1.178`;
|
|
5628
5625
|
}
|
|
5629
|
-
function
|
|
5630
|
-
const t =
|
|
5631
|
-
return new Worker(t, { type: "module", ...
|
|
5626
|
+
function Ux(r, d) {
|
|
5627
|
+
const t = Nx(r);
|
|
5628
|
+
return new Worker(t, { type: "module", ...d });
|
|
5632
5629
|
}
|
|
5633
|
-
const
|
|
5630
|
+
const yr = () => {
|
|
5634
5631
|
try {
|
|
5635
5632
|
if (globalThis.__DEBUG_RENDER__ === !0 || typeof localStorage < "u" && localStorage.getItem("DEBUG_RENDER") === "1") return !0;
|
|
5636
5633
|
} catch {
|
|
5637
5634
|
}
|
|
5638
5635
|
return !1;
|
|
5639
5636
|
}, _0 = (...r) => {
|
|
5640
|
-
|
|
5641
|
-
},
|
|
5642
|
-
|
|
5643
|
-
},
|
|
5644
|
-
let
|
|
5645
|
-
function
|
|
5646
|
-
const
|
|
5647
|
-
if (
|
|
5648
|
-
const t =
|
|
5637
|
+
yr();
|
|
5638
|
+
}, me = (...r) => {
|
|
5639
|
+
yr();
|
|
5640
|
+
}, _e = /* @__PURE__ */ new Map(), Fr = /* @__PURE__ */ new Map();
|
|
5641
|
+
let jx = 0;
|
|
5642
|
+
function Gx(r) {
|
|
5643
|
+
const d = _e.get(r);
|
|
5644
|
+
if (d) return d;
|
|
5645
|
+
const t = Ux("./deform.worker.ts");
|
|
5649
5646
|
try {
|
|
5650
|
-
t.postMessage({ type: "SET_DEBUG", debugRender:
|
|
5647
|
+
t.postMessage({ type: "SET_DEBUG", debugRender: yr() });
|
|
5651
5648
|
} catch {
|
|
5652
5649
|
}
|
|
5653
|
-
t.onmessage = (
|
|
5654
|
-
const { id:
|
|
5655
|
-
_0(`[renderService] deform worker 响应 id=${
|
|
5656
|
-
hasImageBitmap: !!
|
|
5657
|
-
width:
|
|
5658
|
-
height:
|
|
5659
|
-
error:
|
|
5650
|
+
t.onmessage = (c) => {
|
|
5651
|
+
const { id: v, imageBitmap: y, error: B, duration: C } = c.data ?? {}, x = C ? ` worker耗时=${Math.round(C)}ms` : "";
|
|
5652
|
+
_0(`[renderService] deform worker 响应 id=${v}${x}`, {
|
|
5653
|
+
hasImageBitmap: !!y,
|
|
5654
|
+
width: y?.width,
|
|
5655
|
+
height: y?.height,
|
|
5656
|
+
error: B
|
|
5660
5657
|
});
|
|
5661
|
-
const n = Fr.get(
|
|
5658
|
+
const n = Fr.get(v);
|
|
5662
5659
|
if (n) {
|
|
5663
|
-
if (Fr.delete(
|
|
5664
|
-
n.reject(new Error(
|
|
5660
|
+
if (Fr.delete(v), B) {
|
|
5661
|
+
n.reject(new Error(B));
|
|
5665
5662
|
return;
|
|
5666
5663
|
}
|
|
5667
|
-
n.resolve(
|
|
5664
|
+
n.resolve(y);
|
|
5668
5665
|
}
|
|
5669
|
-
}, t.onerror = (
|
|
5666
|
+
}, t.onerror = (c) => {
|
|
5670
5667
|
};
|
|
5671
5668
|
const e = () => {
|
|
5672
|
-
const
|
|
5669
|
+
const c = Mx();
|
|
5673
5670
|
return _0("🔍 [workerManager] 检查 License Token:", {
|
|
5674
|
-
hasToken: !!
|
|
5675
|
-
tokenPreview:
|
|
5671
|
+
hasToken: !!c.token,
|
|
5672
|
+
tokenPreview: c.token ? c.token.substring(0, 20) + "..." : "undefined",
|
|
5676
5673
|
faceId: r,
|
|
5677
5674
|
source: "licenseStore模块"
|
|
5678
|
-
}),
|
|
5675
|
+
}), c.token ? (_0("📤 [workerManager] 发送 License 到新创建的 Worker", { faceId: r }), t.postMessage({
|
|
5679
5676
|
type: "SET_LICENSE",
|
|
5680
|
-
licenseToken:
|
|
5681
|
-
licenseApiUrl:
|
|
5682
|
-
deviceId:
|
|
5683
|
-
domain:
|
|
5677
|
+
licenseToken: c.token,
|
|
5678
|
+
licenseApiUrl: c.apiUrl,
|
|
5679
|
+
deviceId: c.deviceId,
|
|
5680
|
+
domain: c.domain
|
|
5684
5681
|
}), !0) : !1;
|
|
5685
5682
|
};
|
|
5686
5683
|
return e() || (_0("⏳ [workerManager] License Token 未设置,等待后重试...", { faceId: r }), setTimeout(() => {
|
|
5687
|
-
e() ||
|
|
5684
|
+
e() || me("⚠️ [workerManager] 等待后 License Token 仍未设置", { faceId: r });
|
|
5688
5685
|
}, 200), setTimeout(() => {
|
|
5689
|
-
e() ||
|
|
5690
|
-
}, 500)),
|
|
5686
|
+
e() || me("⚠️ [workerManager] 第二次等待后 License Token 仍未设置", { faceId: r });
|
|
5687
|
+
}, 500)), _e.set(r, t), t;
|
|
5691
5688
|
}
|
|
5692
|
-
function
|
|
5689
|
+
function Kx(r) {
|
|
5693
5690
|
return {
|
|
5694
5691
|
name: r.name,
|
|
5695
5692
|
type: r.type,
|
|
5696
5693
|
blendMode: r.blendMode,
|
|
5697
5694
|
transform: Array.isArray(r.transform) ? [...r.transform] : [],
|
|
5698
|
-
meshPoints: Array.isArray(r.meshPoints) ? r.meshPoints.map((
|
|
5699
|
-
x:
|
|
5700
|
-
y:
|
|
5701
|
-
type:
|
|
5695
|
+
meshPoints: Array.isArray(r.meshPoints) ? r.meshPoints.map((d) => ({
|
|
5696
|
+
x: d.x,
|
|
5697
|
+
y: d.y,
|
|
5698
|
+
type: d.type
|
|
5702
5699
|
})) : [],
|
|
5703
5700
|
bounds: r.bounds ? {
|
|
5704
5701
|
width: r.bounds.width,
|
|
@@ -5721,30 +5718,30 @@ function Gx(r) {
|
|
|
5721
5718
|
layerOrder: r.layerOrder,
|
|
5722
5719
|
imagePath: r.imagePath,
|
|
5723
5720
|
vectorMask: r.vectorMask ? {
|
|
5724
|
-
paths: r.vectorMask.paths?.map((
|
|
5725
|
-
open:
|
|
5726
|
-
knots:
|
|
5721
|
+
paths: r.vectorMask.paths?.map((d) => ({
|
|
5722
|
+
open: d.open,
|
|
5723
|
+
knots: d.knots?.map((t) => ({
|
|
5727
5724
|
linked: t.linked,
|
|
5728
5725
|
points: [...t.points]
|
|
5729
5726
|
})),
|
|
5730
|
-
fillRule:
|
|
5731
|
-
operation:
|
|
5727
|
+
fillRule: d.fillRule,
|
|
5728
|
+
operation: d.operation
|
|
5732
5729
|
})),
|
|
5733
|
-
points: r.vectorMask.points?.map((
|
|
5734
|
-
x:
|
|
5735
|
-
y:
|
|
5736
|
-
type:
|
|
5730
|
+
points: r.vectorMask.points?.map((d) => ({
|
|
5731
|
+
x: d.x,
|
|
5732
|
+
y: d.y,
|
|
5733
|
+
type: d.type
|
|
5737
5734
|
})),
|
|
5738
5735
|
invert: r.vectorMask.invert,
|
|
5739
5736
|
notLink: r.vectorMask.notLink,
|
|
5740
5737
|
disable: r.vectorMask.disable,
|
|
5741
5738
|
fillStartsWithAllPixels: r.vectorMask.fillStartsWithAllPixels
|
|
5742
5739
|
} : void 0,
|
|
5743
|
-
filterList: r.filterList ? r.filterList.map((
|
|
5744
|
-
type:
|
|
5745
|
-
enabled:
|
|
5746
|
-
filter:
|
|
5747
|
-
puppetShapeList:
|
|
5740
|
+
filterList: r.filterList ? r.filterList.map((d) => ({
|
|
5741
|
+
type: d.type,
|
|
5742
|
+
enabled: d.enabled,
|
|
5743
|
+
filter: d.filter ? {
|
|
5744
|
+
puppetShapeList: d.filter.puppetShapeList?.map((t) => ({
|
|
5748
5745
|
originalVertexArray: t.originalVertexArray.map((e) => ({
|
|
5749
5746
|
x: e.x,
|
|
5750
5747
|
y: e.y
|
|
@@ -5761,179 +5758,179 @@ function Gx(r) {
|
|
|
5761
5758
|
clipping: r.clipping
|
|
5762
5759
|
};
|
|
5763
5760
|
}
|
|
5764
|
-
function
|
|
5765
|
-
const
|
|
5766
|
-
return performance.now(), (/* @__PURE__ */ new Date()).toISOString(), new Promise((
|
|
5767
|
-
Fr.set(
|
|
5761
|
+
function Xx(r, d, t, e) {
|
|
5762
|
+
const c = ++jx, v = Gx(t);
|
|
5763
|
+
return performance.now(), (/* @__PURE__ */ new Date()).toISOString(), new Promise((y, B) => {
|
|
5764
|
+
Fr.set(c, {
|
|
5768
5765
|
resolve: (x) => {
|
|
5769
|
-
performance.now(), (/* @__PURE__ */ new Date()).toISOString(),
|
|
5766
|
+
performance.now(), (/* @__PURE__ */ new Date()).toISOString(), y(x);
|
|
5770
5767
|
},
|
|
5771
|
-
reject:
|
|
5768
|
+
reject: B
|
|
5772
5769
|
});
|
|
5773
|
-
const
|
|
5774
|
-
|
|
5770
|
+
const C = Kx(d);
|
|
5771
|
+
v.postMessage({ id: c, designBitmap: r, layerData: C, canvasSize: e }, [
|
|
5775
5772
|
r
|
|
5776
5773
|
]);
|
|
5777
5774
|
});
|
|
5778
5775
|
}
|
|
5779
|
-
async function
|
|
5780
|
-
const
|
|
5781
|
-
if (!
|
|
5776
|
+
async function Yx(r, d, t = 0, e, c, v) {
|
|
5777
|
+
const y = await _t(r, c, v);
|
|
5778
|
+
if (!y || y.width === 0 || y.height === 0)
|
|
5782
5779
|
throw new Error("图片无效:尺寸为 0");
|
|
5783
|
-
return await
|
|
5780
|
+
return await Xx(y, d, t, e);
|
|
5784
5781
|
}
|
|
5785
|
-
function h0(r,
|
|
5782
|
+
function h0(r, d) {
|
|
5786
5783
|
if (typeof OffscreenCanvas < "u" && typeof document > "u")
|
|
5787
|
-
return new OffscreenCanvas(r,
|
|
5784
|
+
return new OffscreenCanvas(r, d);
|
|
5788
5785
|
if (typeof document < "u") {
|
|
5789
5786
|
const t = document.createElement("canvas");
|
|
5790
|
-
return t.width = r, t.height =
|
|
5787
|
+
return t.width = r, t.height = d, t;
|
|
5791
5788
|
} else
|
|
5792
5789
|
throw new Error("无法创建 canvas:不在 Worker 或主线程环境中");
|
|
5793
5790
|
}
|
|
5794
5791
|
function g0(r) {
|
|
5795
5792
|
return r.getContext("2d");
|
|
5796
5793
|
}
|
|
5797
|
-
function
|
|
5798
|
-
const
|
|
5799
|
-
if (!
|
|
5794
|
+
function ye(r) {
|
|
5795
|
+
const d = g0(r);
|
|
5796
|
+
if (!d)
|
|
5800
5797
|
throw new Error("无法创建 canvas context");
|
|
5801
|
-
return
|
|
5798
|
+
return d;
|
|
5802
5799
|
}
|
|
5803
5800
|
async function Zx(r) {
|
|
5804
|
-
const
|
|
5801
|
+
const d = performance.now(), t = () => {
|
|
5805
5802
|
try {
|
|
5806
5803
|
if (globalThis.__DEBUG_RENDER__ === !0 || typeof localStorage < "u" && localStorage.getItem("DEBUG_RENDER") === "1") return !0;
|
|
5807
5804
|
} catch {
|
|
5808
5805
|
}
|
|
5809
5806
|
return !1;
|
|
5810
|
-
}, e = (...
|
|
5807
|
+
}, e = (...f) => {
|
|
5811
5808
|
t();
|
|
5812
|
-
},
|
|
5809
|
+
}, c = (...f) => {
|
|
5813
5810
|
t();
|
|
5814
5811
|
}, {
|
|
5815
|
-
psdJson:
|
|
5816
|
-
materialList:
|
|
5817
|
-
fabricScreenshotList:
|
|
5818
|
-
width:
|
|
5812
|
+
psdJson: v,
|
|
5813
|
+
materialList: y,
|
|
5814
|
+
fabricScreenshotList: B,
|
|
5815
|
+
width: C,
|
|
5819
5816
|
height: x,
|
|
5820
5817
|
baseUrl: n
|
|
5821
5818
|
} = r, E = r.maxImageSize;
|
|
5822
5819
|
e("[renderByJson] 接收到的数据:", {
|
|
5823
|
-
psdJsonLayerCount:
|
|
5824
|
-
psdJsonLayers:
|
|
5825
|
-
name:
|
|
5826
|
-
type:
|
|
5827
|
-
id:
|
|
5828
|
-
hasChildren: !!
|
|
5829
|
-
childrenCount:
|
|
5830
|
-
children:
|
|
5820
|
+
psdJsonLayerCount: v.layerList?.length || 0,
|
|
5821
|
+
psdJsonLayers: v.layerList?.map((f) => ({
|
|
5822
|
+
name: f.name,
|
|
5823
|
+
type: f.type,
|
|
5824
|
+
id: f.id,
|
|
5825
|
+
hasChildren: !!f.children,
|
|
5826
|
+
childrenCount: f.children?.length || 0,
|
|
5827
|
+
children: f.children?.map((A) => ({
|
|
5831
5828
|
name: A.name,
|
|
5832
5829
|
type: A.type,
|
|
5833
5830
|
isSmartObject: A.isSmartObject,
|
|
5834
5831
|
id: A.id
|
|
5835
5832
|
}))
|
|
5836
5833
|
})),
|
|
5837
|
-
fabricScreenshotListCount:
|
|
5838
|
-
fabricScreenshotList:
|
|
5834
|
+
fabricScreenshotListCount: B.length,
|
|
5835
|
+
fabricScreenshotList: B.map((f) => ({ id: f.id, url: f.url.substring(0, 50) + "..." }))
|
|
5839
5836
|
});
|
|
5840
|
-
const a = (
|
|
5841
|
-
if (!
|
|
5842
|
-
if (/^(https?:)?\/\//i.test(
|
|
5843
|
-
return
|
|
5837
|
+
const a = (f) => {
|
|
5838
|
+
if (!f || typeof f != "string" || !f.includes("http")) return;
|
|
5839
|
+
if (/^(https?:)?\/\//i.test(f) || f.startsWith("data:") || f.startsWith("blob:"))
|
|
5840
|
+
return f;
|
|
5844
5841
|
if (!n)
|
|
5845
|
-
return !
|
|
5842
|
+
return !f.includes("http") && !f.startsWith("data:") && !f.startsWith("blob:") ? void 0 : f;
|
|
5846
5843
|
try {
|
|
5847
|
-
const m = new URL(
|
|
5844
|
+
const m = new URL(f, n).toString();
|
|
5848
5845
|
return !m.includes("http") && !m.startsWith("data:") && !m.startsWith("blob:") ? void 0 : m;
|
|
5849
5846
|
} catch (m) {
|
|
5850
|
-
|
|
5847
|
+
c(`[renderByJson] 解析图片 URL 失败: ${f}`, m);
|
|
5851
5848
|
return;
|
|
5852
5849
|
}
|
|
5853
5850
|
}, s = {}, u = /* @__PURE__ */ new Map();
|
|
5854
|
-
for (const
|
|
5855
|
-
const A =
|
|
5851
|
+
for (const f of y) {
|
|
5852
|
+
const A = f.sourceName || f.layerName;
|
|
5856
5853
|
A && (s[A] = {
|
|
5857
|
-
url:
|
|
5858
|
-
}, u.set(A,
|
|
5859
|
-
url:
|
|
5860
|
-
}), u.set(
|
|
5854
|
+
url: f.url
|
|
5855
|
+
}, u.set(A, f.url)), f.layerName && f.layerName !== A && (s[f.layerName] || (s[f.layerName] = {
|
|
5856
|
+
url: f.url
|
|
5857
|
+
}), u.set(f.layerName, f.url));
|
|
5861
5858
|
}
|
|
5862
5859
|
const p = /* @__PURE__ */ new Map();
|
|
5863
|
-
for (const
|
|
5864
|
-
p.set(
|
|
5865
|
-
e("[renderByJson] fabricScreenshotMap:", Array.from(p.entries())), e("[renderByJson] psdJson.layerList 结构:",
|
|
5866
|
-
name:
|
|
5867
|
-
type:
|
|
5868
|
-
id:
|
|
5869
|
-
hasChildren: !!
|
|
5870
|
-
childrenCount:
|
|
5860
|
+
for (const f of B)
|
|
5861
|
+
p.set(f.id, f.url);
|
|
5862
|
+
e("[renderByJson] fabricScreenshotMap:", Array.from(p.entries())), e("[renderByJson] psdJson.layerList 结构:", v.layerList?.map((f) => ({
|
|
5863
|
+
name: f.name,
|
|
5864
|
+
type: f.type,
|
|
5865
|
+
id: f.id,
|
|
5866
|
+
hasChildren: !!f.children,
|
|
5867
|
+
childrenCount: f.children?.length || 0
|
|
5871
5868
|
})));
|
|
5872
|
-
function
|
|
5873
|
-
const m =
|
|
5874
|
-
if (
|
|
5875
|
-
if (
|
|
5876
|
-
const
|
|
5869
|
+
function h(f, A) {
|
|
5870
|
+
const m = f.color || (f.name && ["粉", "白", "绿", "红", "蓝", "黄", "黑", "灰"].includes(f.name) ? f.name : A);
|
|
5871
|
+
if (f.type === "Layer") {
|
|
5872
|
+
if (f.imagePath) {
|
|
5873
|
+
const I = y.find((P) => {
|
|
5877
5874
|
const L = P.sourceName || P.layerName;
|
|
5878
|
-
return !L || !
|
|
5875
|
+
return !L || !f.imagePath ? !1 : L === f.imagePath || L.endsWith(f.imagePath) || f.imagePath.endsWith(L);
|
|
5879
5876
|
});
|
|
5880
|
-
|
|
5881
|
-
url:
|
|
5877
|
+
I && (s[f.imagePath] = {
|
|
5878
|
+
url: I.url
|
|
5882
5879
|
});
|
|
5883
5880
|
}
|
|
5884
|
-
if (
|
|
5881
|
+
if (f.name) {
|
|
5885
5882
|
if (m) {
|
|
5886
|
-
const
|
|
5887
|
-
const
|
|
5888
|
-
return
|
|
5883
|
+
const I = `${m}-${f.name}`, P = y.find((L) => {
|
|
5884
|
+
const W = L.sourceName || L.layerName;
|
|
5885
|
+
return W ? (W.split("/").pop() || W).replace(/\.(png|jpg|jpeg|gif|webp)$/i, "").startsWith(`${m}-${f.name}`) : !1;
|
|
5889
5886
|
});
|
|
5890
|
-
P && (s[
|
|
5887
|
+
P && (s[I] = {
|
|
5891
5888
|
url: P.url
|
|
5892
5889
|
});
|
|
5893
5890
|
}
|
|
5894
|
-
if (
|
|
5895
|
-
const
|
|
5896
|
-
const
|
|
5897
|
-
return
|
|
5891
|
+
if (f.imagePath && f.name) {
|
|
5892
|
+
const I = f.imagePath.split("/").pop() || f.imagePath, P = y.find((L) => {
|
|
5893
|
+
const W = L.sourceName || L.layerName;
|
|
5894
|
+
return W ? (W.split("/").pop() || W) === I : !1;
|
|
5898
5895
|
});
|
|
5899
|
-
P && (s[
|
|
5896
|
+
P && (s[f.imagePath] = {
|
|
5900
5897
|
url: P.url
|
|
5901
5898
|
});
|
|
5902
5899
|
}
|
|
5903
5900
|
}
|
|
5904
5901
|
}
|
|
5905
|
-
if (
|
|
5906
|
-
for (const
|
|
5907
|
-
|
|
5902
|
+
if (f.children)
|
|
5903
|
+
for (const I of f.children)
|
|
5904
|
+
I && h(I, m);
|
|
5908
5905
|
}
|
|
5909
|
-
function D(
|
|
5910
|
-
const m =
|
|
5911
|
-
if (
|
|
5912
|
-
if (e(`[renderByJson] processLayer 检查 Group: name="${
|
|
5913
|
-
const
|
|
5914
|
-
if (e(`[renderByJson] ✅ 找到匹配的 fabricScreenshot: Group id=${m}, name="${
|
|
5915
|
-
e(`[renderByJson] Group "${
|
|
5916
|
-
for (const P of
|
|
5906
|
+
function D(f, A) {
|
|
5907
|
+
const m = f.id ?? A;
|
|
5908
|
+
if (f.type === "Group" && m)
|
|
5909
|
+
if (e(`[renderByJson] processLayer 检查 Group: name="${f.name}", id=${m}, hasFabricScreenshot=${p.has(m)}`), p.has(m)) {
|
|
5910
|
+
const I = p.get(m);
|
|
5911
|
+
if (e(`[renderByJson] ✅ 找到匹配的 fabricScreenshot: Group id=${m}, name="${f.name}", url=${I.substring(0, 50)}...`), f.children) {
|
|
5912
|
+
e(`[renderByJson] Group "${f.name}" 有 ${f.children.length} 个子图层`);
|
|
5913
|
+
for (const P of f.children)
|
|
5917
5914
|
if (P && P.isSmartObject === !0) {
|
|
5918
5915
|
const L = P?.name || "";
|
|
5919
|
-
e(`[renderByJson] 找到智能对象: name="${L}"`), L && !s[L] && (s[L] = {}), L ? (s[L].designImage =
|
|
5916
|
+
e(`[renderByJson] 找到智能对象: name="${L}"`), L && !s[L] && (s[L] = {}), L ? (s[L].designImage = I, e(`[renderByJson] ✅ 为智能对象 "${L}" 设置 designImage: ${I.substring(0, 50)}...`)) : c("[renderByJson] ⚠️ 智能对象没有 name,无法设置 designImage");
|
|
5920
5917
|
}
|
|
5921
5918
|
} else
|
|
5922
|
-
|
|
5919
|
+
c(`[renderByJson] ⚠️ Group id=${m} 没有 children`);
|
|
5923
5920
|
} else
|
|
5924
|
-
e(`[renderByJson] ⚠️ Group id=${m}, name="${
|
|
5925
|
-
if (
|
|
5926
|
-
for (const
|
|
5927
|
-
|
|
5921
|
+
e(`[renderByJson] ⚠️ Group id=${m}, name="${f.name}" 没有匹配的 fabricScreenshot`);
|
|
5922
|
+
if (f.children)
|
|
5923
|
+
for (const I of f.children)
|
|
5924
|
+
I && D(I, m);
|
|
5928
5925
|
}
|
|
5929
|
-
if (
|
|
5930
|
-
for (const
|
|
5931
|
-
|
|
5932
|
-
if (
|
|
5933
|
-
for (const
|
|
5934
|
-
|
|
5935
|
-
const o =
|
|
5936
|
-
psdJson:
|
|
5926
|
+
if (v.layerList)
|
|
5927
|
+
for (const f of v.layerList)
|
|
5928
|
+
f && h(f);
|
|
5929
|
+
if (v.layerList)
|
|
5930
|
+
for (const f of v.layerList)
|
|
5931
|
+
f && D(f);
|
|
5932
|
+
const o = nt([{
|
|
5933
|
+
psdJson: v,
|
|
5937
5934
|
layerExtrasByName: s
|
|
5938
5935
|
}], {
|
|
5939
5936
|
parts: [],
|
|
@@ -5941,86 +5938,86 @@ async function Zx(r) {
|
|
|
5941
5938
|
});
|
|
5942
5939
|
if (!o.models || o.models.length === 0)
|
|
5943
5940
|
throw new Error("无法解析 JSON 数据");
|
|
5944
|
-
const
|
|
5945
|
-
if (!
|
|
5941
|
+
const l = o.models[0];
|
|
5942
|
+
if (!l.psdPartData)
|
|
5946
5943
|
throw new Error("JSON 数据中没有 psdPartData");
|
|
5947
|
-
const b =
|
|
5948
|
-
if (
|
|
5949
|
-
return s[
|
|
5950
|
-
if (
|
|
5951
|
-
const A =
|
|
5944
|
+
const b = l.width, g = l.height, _ = h0(b, g), k = ye(_), $ = [], F = (f) => {
|
|
5945
|
+
if (f.url && s[f.url])
|
|
5946
|
+
return s[f.url];
|
|
5947
|
+
if (f.url) {
|
|
5948
|
+
const A = f.url.split("/").pop() || f.url;
|
|
5952
5949
|
if (s[A])
|
|
5953
5950
|
return s[A];
|
|
5954
|
-
const m =
|
|
5955
|
-
const P =
|
|
5956
|
-
return !P || !
|
|
5951
|
+
const m = y.find((I) => {
|
|
5952
|
+
const P = I.sourceName || I.layerName;
|
|
5953
|
+
return !P || !f.url ? !1 : (P.split("/").pop() || P) === A || P === f.url || P.endsWith(f.url) || f.url.endsWith(P);
|
|
5957
5954
|
});
|
|
5958
5955
|
if (m) {
|
|
5959
|
-
const
|
|
5960
|
-
if (
|
|
5961
|
-
return s[
|
|
5956
|
+
const I = m.sourceName || m.layerName;
|
|
5957
|
+
if (I)
|
|
5958
|
+
return s[I] || { url: m.url };
|
|
5962
5959
|
}
|
|
5963
5960
|
}
|
|
5964
5961
|
};
|
|
5965
|
-
for (let
|
|
5966
|
-
const A =
|
|
5962
|
+
for (let f = 0; f < l.psdPartData.length; f++) {
|
|
5963
|
+
const A = l.psdPartData[f], m = F(A);
|
|
5967
5964
|
if (A.type === D0.Layer) {
|
|
5968
5965
|
if (!m || !m.url) {
|
|
5969
|
-
|
|
5966
|
+
c(`图层 "${A.name}" 没有匹配的 material,跳过`);
|
|
5970
5967
|
continue;
|
|
5971
5968
|
}
|
|
5972
|
-
const
|
|
5969
|
+
const I = m.url, P = a(I);
|
|
5973
5970
|
if (!P) {
|
|
5974
|
-
|
|
5971
|
+
c(`图层 "${A.name}" 没有有效的 url,跳过`);
|
|
5975
5972
|
continue;
|
|
5976
5973
|
}
|
|
5977
5974
|
$.push({
|
|
5978
|
-
index:
|
|
5975
|
+
index: f,
|
|
5979
5976
|
type: "layer",
|
|
5980
5977
|
partData: A,
|
|
5981
|
-
promise:
|
|
5978
|
+
promise: yt(P, E, n).catch((L) => null)
|
|
5982
5979
|
});
|
|
5983
5980
|
} else if (A.type === D0.Group) {
|
|
5984
5981
|
if (!A.smartObjects || A.smartObjects.length === 0)
|
|
5985
5982
|
continue;
|
|
5986
|
-
for (let
|
|
5987
|
-
const P = A.smartObjects[
|
|
5983
|
+
for (let I = 0; I < A.smartObjects.length; I++) {
|
|
5984
|
+
const P = A.smartObjects[I];
|
|
5988
5985
|
if (!P || !P.name)
|
|
5989
5986
|
continue;
|
|
5990
5987
|
let L = s[P.name] ?? m;
|
|
5991
5988
|
if (!L && P.imagePath && (L = s[P.imagePath], !L)) {
|
|
5992
5989
|
const K = P.imagePath.split("/").pop() || P.imagePath;
|
|
5993
5990
|
if (L = s[K], !L) {
|
|
5994
|
-
const G =
|
|
5995
|
-
const
|
|
5996
|
-
return !
|
|
5991
|
+
const G = y.find((Y) => {
|
|
5992
|
+
const r0 = Y.sourceName || Y.layerName;
|
|
5993
|
+
return !r0 || !P.imagePath ? !1 : (r0.split("/").pop() || r0) === K || r0 === P.imagePath || r0.endsWith(P.imagePath) || P.imagePath.endsWith(r0);
|
|
5997
5994
|
});
|
|
5998
5995
|
G && (L = { url: G.url });
|
|
5999
5996
|
}
|
|
6000
5997
|
}
|
|
6001
5998
|
if (!L || !L.designImage && !L.url)
|
|
6002
5999
|
continue;
|
|
6003
|
-
let
|
|
6004
|
-
if (!
|
|
6000
|
+
let W = L.designImage ?? L.url;
|
|
6001
|
+
if (!W)
|
|
6005
6002
|
continue;
|
|
6006
|
-
if (typeof
|
|
6007
|
-
/^(https?:)?\/\//i.test(
|
|
6008
|
-
const G = a(
|
|
6003
|
+
if (typeof W == "string") {
|
|
6004
|
+
/^(https?:)?\/\//i.test(W) || W.startsWith("data:") || W.startsWith("blob:") || (W = u.get(W) ?? W);
|
|
6005
|
+
const G = a(W);
|
|
6009
6006
|
if (!G)
|
|
6010
6007
|
continue;
|
|
6011
|
-
|
|
6008
|
+
W = G;
|
|
6012
6009
|
}
|
|
6013
|
-
const
|
|
6010
|
+
const Z = (A.partId ?? A.id) * 100 + I, Q = ot(at(P)), i0 = { width: b, height: g };
|
|
6014
6011
|
$.push({
|
|
6015
|
-
index:
|
|
6012
|
+
index: f + I * 0.01,
|
|
6016
6013
|
type: "group",
|
|
6017
6014
|
partData: A,
|
|
6018
6015
|
smartObject: P,
|
|
6019
6016
|
maskData: Q,
|
|
6020
|
-
promise:
|
|
6021
|
-
|
|
6017
|
+
promise: Yx(
|
|
6018
|
+
W,
|
|
6022
6019
|
P,
|
|
6023
|
-
|
|
6020
|
+
Z,
|
|
6024
6021
|
i0,
|
|
6025
6022
|
E,
|
|
6026
6023
|
n
|
|
@@ -6029,42 +6026,42 @@ async function Zx(r) {
|
|
|
6029
6026
|
}
|
|
6030
6027
|
}
|
|
6031
6028
|
}
|
|
6032
|
-
const w = await Promise.all($.map((
|
|
6033
|
-
task:
|
|
6029
|
+
const w = await Promise.all($.map((f) => f.promise)), H = $.map((f, A) => ({
|
|
6030
|
+
task: f,
|
|
6034
6031
|
imageBitmap: w[A]
|
|
6035
|
-
})).sort((
|
|
6036
|
-
const m =
|
|
6037
|
-
return m -
|
|
6032
|
+
})).sort((f, A) => {
|
|
6033
|
+
const m = f.task.type === "group" && f.task.smartObject?.layerOrder !== void 0 ? f.task.smartObject.layerOrder : f.task.partData.layerOrder ?? f.task.index, I = A.task.type === "group" && A.task.smartObject?.layerOrder !== void 0 ? A.task.smartObject.layerOrder : A.task.partData.layerOrder ?? A.task.index;
|
|
6034
|
+
return m - I;
|
|
6038
6035
|
});
|
|
6039
6036
|
let R = h0(b, g), z = g0(R), O = !1, q = "normal";
|
|
6040
|
-
for (let
|
|
6041
|
-
const { task: A, imageBitmap: m } = H[
|
|
6037
|
+
for (let f = 0; f < H.length; f++) {
|
|
6038
|
+
const { task: A, imageBitmap: m } = H[f];
|
|
6042
6039
|
if (!m) {
|
|
6043
|
-
|
|
6040
|
+
c(`[renderByJson] 图层 "${A.partData.name}" 没有 imageBitmap,跳过`);
|
|
6044
6041
|
continue;
|
|
6045
6042
|
}
|
|
6046
|
-
const { partData:
|
|
6043
|
+
const { partData: I } = A, P = I.bounds;
|
|
6047
6044
|
let L;
|
|
6048
|
-
A.type === "group" && A.smartObject ? L = A.smartObject.opacity ??
|
|
6049
|
-
let
|
|
6050
|
-
A.type === "group" && A.smartObject ?
|
|
6051
|
-
const
|
|
6045
|
+
A.type === "group" && A.smartObject ? L = A.smartObject.opacity ?? I.opacity : L = I.opacity, (typeof L != "number" || isNaN(L)) && (L = 1);
|
|
6046
|
+
let W;
|
|
6047
|
+
A.type === "group" && A.smartObject ? W = A.smartObject.clipping ?? I.clipping === !0 : W = I.clipping === !0;
|
|
6048
|
+
const Z = H[f + 1];
|
|
6052
6049
|
let Q = !1;
|
|
6053
|
-
if (
|
|
6054
|
-
const K =
|
|
6055
|
-
|
|
6050
|
+
if (Z) {
|
|
6051
|
+
const K = Z.task.partData;
|
|
6052
|
+
Z.task.type === "group" && Z.task.smartObject ? Q = Z.task.smartObject.clipping ?? K.clipping === !0 : Q = K.clipping === !0;
|
|
6056
6053
|
}
|
|
6057
|
-
const i0 = A.type === "group" && A.smartObject && A.smartObject.name ? A.smartObject.name :
|
|
6054
|
+
const i0 = A.type === "group" && A.smartObject && A.smartObject.name ? A.smartObject.name : I?.name || "未命名图层";
|
|
6058
6055
|
if (e(`[renderByJson] 绘制图层 "${i0}"`, {
|
|
6059
6056
|
type: A.type,
|
|
6060
6057
|
bitmapSize: { width: m.width, height: m.height },
|
|
6061
6058
|
bounds: P,
|
|
6062
6059
|
hasMask: !!A.maskData,
|
|
6063
|
-
blendMode:
|
|
6060
|
+
blendMode: I.blendMode,
|
|
6064
6061
|
opacity: L,
|
|
6065
|
-
clipping:
|
|
6066
|
-
}), !
|
|
6067
|
-
if (O = !0, q =
|
|
6062
|
+
clipping: W
|
|
6063
|
+
}), !W && Q) {
|
|
6064
|
+
if (O = !0, q = I.blendMode || "normal", z) {
|
|
6068
6065
|
if (z.clearRect(0, 0, b, g), z.globalCompositeOperation = "source-over", z.globalAlpha = L, A.type === "group" && A.smartObject)
|
|
6069
6066
|
if (A.maskData) {
|
|
6070
6067
|
const K = h0(b, g), G = g0(K);
|
|
@@ -6080,7 +6077,7 @@ async function Zx(r) {
|
|
|
6080
6077
|
) : z.drawImage(m, 0, 0));
|
|
6081
6078
|
z.globalAlpha = 1;
|
|
6082
6079
|
}
|
|
6083
|
-
} else if (
|
|
6080
|
+
} else if (W) {
|
|
6084
6081
|
if (z) {
|
|
6085
6082
|
if (z.globalCompositeOperation = "source-atop", z.globalAlpha = L, A.type === "group" && A.smartObject)
|
|
6086
6083
|
if (A.maskData) {
|
|
@@ -6098,7 +6095,7 @@ async function Zx(r) {
|
|
|
6098
6095
|
z.globalAlpha = 1, z.globalCompositeOperation = "source-over";
|
|
6099
6096
|
}
|
|
6100
6097
|
} else {
|
|
6101
|
-
if (k.globalCompositeOperation =
|
|
6098
|
+
if (k.globalCompositeOperation = Mr(I.blendMode), k.globalAlpha = L, A.type === "group" && A.smartObject)
|
|
6102
6099
|
if (A.maskData) {
|
|
6103
6100
|
const K = h0(b, g), G = g0(K);
|
|
6104
6101
|
G && (G.drawImage(m, 0, 0), pr(G, A.maskData), k.drawImage(K, 0, 0));
|
|
@@ -6113,37 +6110,37 @@ async function Zx(r) {
|
|
|
6113
6110
|
) : k.drawImage(m, 0, 0));
|
|
6114
6111
|
k.globalAlpha = 1, k.globalCompositeOperation = "source-over";
|
|
6115
6112
|
}
|
|
6116
|
-
O && !Q && (k.globalCompositeOperation =
|
|
6113
|
+
O && !Q && (k.globalCompositeOperation = Mr(q), k.drawImage(R, 0, 0), k.globalCompositeOperation = "source-over", O = !1);
|
|
6117
6114
|
}
|
|
6118
6115
|
R = null, z = null;
|
|
6119
|
-
let U =
|
|
6120
|
-
if (
|
|
6121
|
-
if (
|
|
6122
|
-
T =
|
|
6123
|
-
else if (
|
|
6124
|
-
const A =
|
|
6125
|
-
T =
|
|
6116
|
+
let U = _, T = b, N = g;
|
|
6117
|
+
if (C !== void 0 || x !== void 0) {
|
|
6118
|
+
if (C !== void 0 && x !== void 0)
|
|
6119
|
+
T = C, N = x;
|
|
6120
|
+
else if (C !== void 0) {
|
|
6121
|
+
const A = C / b;
|
|
6122
|
+
T = C, N = Math.round(g * A);
|
|
6126
6123
|
} else if (x !== void 0) {
|
|
6127
6124
|
const A = x / g;
|
|
6128
6125
|
T = Math.round(b * A), N = x;
|
|
6129
6126
|
}
|
|
6130
6127
|
U = h0(T, N);
|
|
6131
|
-
const
|
|
6132
|
-
|
|
6128
|
+
const f = ye(U);
|
|
6129
|
+
f.imageSmoothingEnabled = !0, f.imageSmoothingQuality = "high", f.drawImage(_, 0, 0, b, g, 0, 0, T, N), e(`[renderByJson] 已缩放结果: ${b}x${g} -> ${T}x${N}`);
|
|
6133
6130
|
}
|
|
6134
|
-
const S = performance.now() -
|
|
6131
|
+
const S = performance.now() - d;
|
|
6135
6132
|
return e(`[renderByJson] 绘制完成,总渲染时间: ${Math.round(S)}ms`), {
|
|
6136
6133
|
canvas: U,
|
|
6137
6134
|
width: T,
|
|
6138
6135
|
height: N
|
|
6139
6136
|
};
|
|
6140
6137
|
}
|
|
6141
|
-
const
|
|
6138
|
+
const qe = async (r) => {
|
|
6142
6139
|
const t = (await Zx(r)).canvas;
|
|
6143
6140
|
return t ? createImageBitmap(t) : null;
|
|
6144
6141
|
};
|
|
6145
6142
|
let s0 = null, Er = !1;
|
|
6146
|
-
const
|
|
6143
|
+
const Te = async () => {
|
|
6147
6144
|
if (!Er) {
|
|
6148
6145
|
Er = !0;
|
|
6149
6146
|
try {
|
|
@@ -6151,30 +6148,30 @@ const qe = async () => {
|
|
|
6151
6148
|
const r = s0;
|
|
6152
6149
|
s0 = null;
|
|
6153
6150
|
try {
|
|
6154
|
-
const
|
|
6151
|
+
const d = await qe(r.renderData);
|
|
6155
6152
|
if (s0) {
|
|
6156
|
-
|
|
6153
|
+
d?.close?.();
|
|
6157
6154
|
continue;
|
|
6158
6155
|
}
|
|
6159
|
-
self.postMessage({ id: r.id, bitmap:
|
|
6160
|
-
} catch (
|
|
6156
|
+
self.postMessage({ id: r.id, bitmap: d }, d ? [d] : []);
|
|
6157
|
+
} catch (d) {
|
|
6161
6158
|
if (s0) continue;
|
|
6162
6159
|
self.postMessage({
|
|
6163
6160
|
id: r.id,
|
|
6164
|
-
error:
|
|
6161
|
+
error: d instanceof Error ? d.message : String(d)
|
|
6165
6162
|
});
|
|
6166
6163
|
}
|
|
6167
6164
|
}
|
|
6168
6165
|
} finally {
|
|
6169
|
-
Er = !1, s0 &&
|
|
6166
|
+
Er = !1, s0 && Te();
|
|
6170
6167
|
}
|
|
6171
6168
|
}
|
|
6172
6169
|
};
|
|
6173
6170
|
self.onmessage = async (r) => {
|
|
6174
|
-
const
|
|
6175
|
-
if (
|
|
6176
|
-
const e =
|
|
6177
|
-
|
|
6171
|
+
const d = r.data;
|
|
6172
|
+
if (d && typeof d == "object" && "type" in d && d.type === "SET_LICENSE") {
|
|
6173
|
+
const e = d;
|
|
6174
|
+
Tx({
|
|
6178
6175
|
token: e.licenseToken,
|
|
6179
6176
|
apiUrl: e.licenseApiUrl,
|
|
6180
6177
|
deviceId: e.deviceId,
|
|
@@ -6182,13 +6179,13 @@ self.onmessage = async (r) => {
|
|
|
6182
6179
|
});
|
|
6183
6180
|
return;
|
|
6184
6181
|
}
|
|
6185
|
-
const t =
|
|
6182
|
+
const t = d;
|
|
6186
6183
|
if (t.coalesce === !0) {
|
|
6187
|
-
s0 = { id: t.id, renderData: t.renderData },
|
|
6184
|
+
s0 = { id: t.id, renderData: t.renderData }, Te();
|
|
6188
6185
|
return;
|
|
6189
6186
|
}
|
|
6190
6187
|
try {
|
|
6191
|
-
const e = await
|
|
6188
|
+
const e = await qe(t.renderData);
|
|
6192
6189
|
self.postMessage({ id: t.id, bitmap: e }, e ? [e] : []);
|
|
6193
6190
|
} catch (e) {
|
|
6194
6191
|
self.postMessage({
|