@jieyin/editor-sdk 1.1.129 → 1.1.134
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/editor-sdk.es.js +11536 -10523
- package/dist/renderWorker.js +481 -479
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/renderWorker.js
CHANGED
|
@@ -2,8 +2,8 @@ var E0 = /* @__PURE__ */ ((r) => (r[r.Group = 0] = "Group", r[r.Layer = 1] = "La
|
|
|
2
2
|
function Ne(r) {
|
|
3
3
|
let d = r;
|
|
4
4
|
return () => {
|
|
5
|
-
const
|
|
6
|
-
return d += 1,
|
|
5
|
+
const t = d;
|
|
6
|
+
return d += 1, t;
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
9
|
function Ue(r, d) {
|
|
@@ -29,11 +29,11 @@ function Ue(r, d) {
|
|
|
29
29
|
clipping: r.clipping
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
function je(r, d,
|
|
33
|
-
let u = r.name || "", v = d[u], g = v?.partId ?? (r.type === "Group" ?
|
|
32
|
+
function je(r, d, t, e) {
|
|
33
|
+
let u = r.name || "", v = d[u], g = v?.partId ?? (r.type === "Group" ? t.get(u) : void 0);
|
|
34
34
|
if (r.type === "Group" && g === void 0 && (!v || v.id === void 0) && r.children && r.children.length === 1) {
|
|
35
|
-
const
|
|
36
|
-
(A !== void 0 || a?.id !== void 0) && (u =
|
|
35
|
+
const x = r.children[0].name, a = d[x], A = a?.partId ?? t.get(x);
|
|
36
|
+
(A !== void 0 || a?.id !== void 0) && (u = x, v = a, g = A);
|
|
37
37
|
}
|
|
38
38
|
const p = r.id ?? v?.id ?? e();
|
|
39
39
|
if (r.type === "Group")
|
|
@@ -45,7 +45,7 @@ function je(r, d, x, e) {
|
|
|
45
45
|
bounds: r.bounds || { left: 0, top: 0, width: 0, height: 0 },
|
|
46
46
|
type: E0.Group,
|
|
47
47
|
smartObjects: (r.children ?? []).map(
|
|
48
|
-
(
|
|
48
|
+
(x) => Ue(x, r.vectorMask)
|
|
49
49
|
),
|
|
50
50
|
opacity: r.opacity,
|
|
51
51
|
clipping: r.clipping,
|
|
@@ -65,13 +65,13 @@ function je(r, d, x, e) {
|
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
67
|
function Ke(r, d) {
|
|
68
|
-
const
|
|
68
|
+
const t = new Map(d.parts.map((u) => [u.name, u.id])), e = Ne(d.defaultIdStart ?? 1);
|
|
69
69
|
return {
|
|
70
70
|
parts: d.parts,
|
|
71
71
|
models: r.map((u) => {
|
|
72
|
-
const v = u.layerExtrasByName ?? {}, g = u.psdJson, p = g.layerList || g.layerList || [], C = g.canvasWidth,
|
|
73
|
-
if (!C || !
|
|
74
|
-
throw new Error(`无法获取 PSD 画布尺寸: canvasWidth=${C}, canvasHeight=${
|
|
72
|
+
const v = u.layerExtrasByName ?? {}, g = u.psdJson, p = g.layerList || g.layerList || [], C = g.canvasWidth, x = g.canvasHeight;
|
|
73
|
+
if (!C || !x)
|
|
74
|
+
throw new Error(`无法获取 PSD 画布尺寸: canvasWidth=${C}, canvasHeight=${x}。请确保 jsonurl 中的 canvasWidth 和 canvasHeight 存在`);
|
|
75
75
|
const a = (l) => {
|
|
76
76
|
const c = [];
|
|
77
77
|
for (const h of l)
|
|
@@ -94,11 +94,11 @@ function Ke(r, d) {
|
|
|
94
94
|
c.push(h);
|
|
95
95
|
return c;
|
|
96
96
|
}, n = a(p).map(
|
|
97
|
-
(l) => je(l, v,
|
|
97
|
+
(l) => je(l, v, t, e)
|
|
98
98
|
);
|
|
99
99
|
return {
|
|
100
100
|
width: C,
|
|
101
|
-
height:
|
|
101
|
+
height: x,
|
|
102
102
|
psdPartData: n
|
|
103
103
|
};
|
|
104
104
|
})
|
|
@@ -112,9 +112,9 @@ function Ge(r) {
|
|
|
112
112
|
type: "bezier",
|
|
113
113
|
paths: r.paths.map((d) => ({
|
|
114
114
|
open: !!d.open,
|
|
115
|
-
knots: d.knots.map((
|
|
116
|
-
linked: !!
|
|
117
|
-
points: Array.isArray(
|
|
115
|
+
knots: d.knots.map((t) => ({
|
|
116
|
+
linked: !!t.linked,
|
|
117
|
+
points: Array.isArray(t.points) ? [...t.points] : []
|
|
118
118
|
}))
|
|
119
119
|
}))
|
|
120
120
|
} : r.type === "simple" ? {
|
|
@@ -129,28 +129,28 @@ function Ge(r) {
|
|
|
129
129
|
function ur(r, d) {
|
|
130
130
|
if (d) {
|
|
131
131
|
if (r.globalCompositeOperation = "destination-in", r.beginPath(), d.type === "bezier" && Array.isArray(d.paths))
|
|
132
|
-
d.paths.forEach((
|
|
133
|
-
const e =
|
|
132
|
+
d.paths.forEach((t) => {
|
|
133
|
+
const e = t.knots;
|
|
134
134
|
if (!e || e.length < 2) return;
|
|
135
135
|
const u = e[0];
|
|
136
136
|
r.moveTo(u.points[2], u.points[3]);
|
|
137
137
|
for (let v = 0; v < e.length; v++) {
|
|
138
138
|
const g = e[v];
|
|
139
139
|
let p = (v + 1) % e.length;
|
|
140
|
-
if (!
|
|
140
|
+
if (!t.open && v === e.length - 1)
|
|
141
141
|
p = 0;
|
|
142
|
-
else if (
|
|
142
|
+
else if (t.open && v === e.length - 1)
|
|
143
143
|
break;
|
|
144
|
-
const C = e[p],
|
|
145
|
-
r.bezierCurveTo(
|
|
144
|
+
const C = e[p], x = g.points[4], a = g.points[5], A = C.points[0], n = C.points[1], l = C.points[2], c = C.points[3];
|
|
145
|
+
r.bezierCurveTo(x, a, A, n, l, c);
|
|
146
146
|
}
|
|
147
|
-
|
|
147
|
+
t.open || r.closePath();
|
|
148
148
|
});
|
|
149
149
|
else if (d.type === "simple" && Array.isArray(d.points)) {
|
|
150
|
-
const
|
|
151
|
-
if (
|
|
152
|
-
r.moveTo(
|
|
153
|
-
for (let e = 1; e <
|
|
150
|
+
const t = d.points;
|
|
151
|
+
if (t.length < 3) return;
|
|
152
|
+
r.moveTo(t[0].x, t[0].y);
|
|
153
|
+
for (let e = 1; e < t.length; e++) r.lineTo(t[e].x, t[e].y);
|
|
154
154
|
r.closePath();
|
|
155
155
|
}
|
|
156
156
|
r.fillStyle = "#000", r.fill(), r.globalCompositeOperation = "source-over";
|
|
@@ -172,10 +172,10 @@ class f0 {
|
|
|
172
172
|
/**
|
|
173
173
|
* 设置存储项
|
|
174
174
|
*/
|
|
175
|
-
static setItem(d,
|
|
175
|
+
static setItem(d, t) {
|
|
176
176
|
if (!this.hasStorage) return !1;
|
|
177
177
|
try {
|
|
178
|
-
return localStorage.setItem(d,
|
|
178
|
+
return localStorage.setItem(d, t), !0;
|
|
179
179
|
} catch {
|
|
180
180
|
return !1;
|
|
181
181
|
}
|
|
@@ -253,8 +253,8 @@ class c0 {
|
|
|
253
253
|
*/
|
|
254
254
|
static parse(d) {
|
|
255
255
|
try {
|
|
256
|
-
const
|
|
257
|
-
return new URL(d,
|
|
256
|
+
const t = ir.getOrigin();
|
|
257
|
+
return new URL(d, t);
|
|
258
258
|
} catch {
|
|
259
259
|
return null;
|
|
260
260
|
}
|
|
@@ -262,29 +262,29 @@ class c0 {
|
|
|
262
262
|
/**
|
|
263
263
|
* 添加查询参数
|
|
264
264
|
*/
|
|
265
|
-
static addParam(d,
|
|
265
|
+
static addParam(d, t, e) {
|
|
266
266
|
const u = this.parse(d);
|
|
267
|
-
return !u || u.searchParams.has(
|
|
267
|
+
return !u || u.searchParams.has(t) ? d : (u.searchParams.set(t, e), this.formatUrl(d, u));
|
|
268
268
|
}
|
|
269
269
|
/**
|
|
270
270
|
* 移除查询参数
|
|
271
271
|
*/
|
|
272
|
-
static removeParam(d,
|
|
272
|
+
static removeParam(d, t) {
|
|
273
273
|
const e = this.parse(d);
|
|
274
|
-
return !e || !e.searchParams.has(
|
|
274
|
+
return !e || !e.searchParams.has(t) ? d : (e.searchParams.delete(t), this.formatUrl(d, e));
|
|
275
275
|
}
|
|
276
276
|
/**
|
|
277
277
|
* 检查是否有指定参数
|
|
278
278
|
*/
|
|
279
|
-
static hasParam(d,
|
|
280
|
-
return this.parse(d)?.searchParams.has(
|
|
279
|
+
static hasParam(d, t) {
|
|
280
|
+
return this.parse(d)?.searchParams.has(t) ?? !1;
|
|
281
281
|
}
|
|
282
282
|
/**
|
|
283
283
|
* 格式化 URL(保持原始格式)
|
|
284
284
|
*/
|
|
285
|
-
static formatUrl(d,
|
|
285
|
+
static formatUrl(d, t) {
|
|
286
286
|
const e = /^(https?:)?\/\//i.test(d), u = d.startsWith("//");
|
|
287
|
-
return e ?
|
|
287
|
+
return e ? t.toString() : u ? t.toString().replace(/^https?:/, "") : `${t.pathname}${t.search}${t.hash}`;
|
|
288
288
|
}
|
|
289
289
|
/**
|
|
290
290
|
* 检查是否为数据 URL
|
|
@@ -299,75 +299,78 @@ class c0 {
|
|
|
299
299
|
return d?.startsWith("blob:") ?? !1;
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
|
-
|
|
302
|
+
function vr(r, d) {
|
|
303
|
+
return r = r - (-495 * -15 + -467 * -5 + -9590), or()[r];
|
|
304
|
+
}
|
|
305
|
+
const J = vr;
|
|
303
306
|
(function(r, d) {
|
|
304
|
-
const
|
|
307
|
+
const t = vr, e = r();
|
|
305
308
|
for (; ; )
|
|
306
309
|
try {
|
|
307
|
-
if (parseInt(
|
|
310
|
+
if (parseInt(t(195)) / 1 + parseInt(t(187)) / 2 + parseInt(t(180)) / 3 + parseInt(t(212)) / 4 + -parseInt(t(191)) / 5 * (parseInt(t(182)) / 6) + parseInt(t(207)) / 7 + parseInt(t(205)) / 8 * (-parseInt(t(179)) / 9) === d) break;
|
|
308
311
|
e.push(e.shift());
|
|
309
312
|
} catch {
|
|
310
313
|
e.push(e.shift());
|
|
311
314
|
}
|
|
312
|
-
})(or,
|
|
315
|
+
})(or, -57623 * -1 + -90643 + 142201);
|
|
313
316
|
const B0 = /* @__PURE__ */ (function() {
|
|
314
317
|
let r = !0;
|
|
315
|
-
return function(d,
|
|
318
|
+
return function(d, t) {
|
|
316
319
|
const e = r ? function() {
|
|
317
|
-
if (
|
|
318
|
-
const u =
|
|
319
|
-
return
|
|
320
|
+
if (t) {
|
|
321
|
+
const u = t.apply(d, arguments);
|
|
322
|
+
return t = null, u;
|
|
320
323
|
}
|
|
321
324
|
} : function() {
|
|
322
325
|
};
|
|
323
326
|
return r = !1, e;
|
|
324
327
|
};
|
|
325
|
-
})(),
|
|
326
|
-
const r =
|
|
328
|
+
})(), Ye = B0(void 0, function() {
|
|
329
|
+
const r = vr;
|
|
327
330
|
let d;
|
|
328
331
|
try {
|
|
329
|
-
d = Function("
|
|
332
|
+
d = Function(r(208) + "n (functio" + r(204) + ("{}.co" + r(211) + 'ctor("return this")( )') + ");")();
|
|
330
333
|
} catch {
|
|
331
334
|
d = window;
|
|
332
335
|
}
|
|
333
|
-
const
|
|
336
|
+
const t = d.console = d.console || {}, e = [r(197), r(190), "info", r(184), "excep" + r(173), "table", r(209)];
|
|
334
337
|
for (let u = 0; u < e.length; u++) {
|
|
335
|
-
const v = B0
|
|
336
|
-
v["__pro" + r(
|
|
338
|
+
const v = B0["const" + r(193) + "r"].prototype.bind(B0), g = e[u], p = t[g] || v;
|
|
339
|
+
v["__pro" + r(194)] = B0[r(185)](B0), v["toStr" + r(170)] = p.toString.bind(p), t[g] = v;
|
|
337
340
|
}
|
|
338
341
|
});
|
|
339
|
-
|
|
342
|
+
Ye();
|
|
343
|
+
const pr = "file_" + J(181), Br = "file_" + J(181) + "_expi" + J(200) + "me", Ze = (-672 * 14 + -7502 + -1697 * -10) * 1e3;
|
|
344
|
+
function dr() {
|
|
345
|
+
return f0.getItem(pr);
|
|
346
|
+
}
|
|
340
347
|
function or() {
|
|
341
|
-
const r = ["
|
|
348
|
+
const r = ["okenR", "aUrl", "re_ti", "data", "isBro", "oken", "n() ", "209176xLPJgs", "statu", "227416ErpGOB", "retur", "trace", "/file", "nstru", "636152UyofIn", "ing", "wser", "ram", "tion", "FileT", "es_in", "setIt", "code", "remov", "153LHXkIq", "105756UeTFuy", "token", "48XAxFht", "eItem", "error", "bind", "file_", "383956KFDPro", "numbe", "efres", "warn", "51565lRHdMu", "isDat", "ructo", "to__", "217428GpmPnw", "now", "log"];
|
|
342
349
|
return or = function() {
|
|
343
350
|
return r;
|
|
344
351
|
}, or();
|
|
345
352
|
}
|
|
346
|
-
|
|
347
|
-
function dr() {
|
|
348
|
-
return f0.getItem(vr);
|
|
349
|
-
}
|
|
350
|
-
function Qe(r = Ye) {
|
|
353
|
+
function Qe(r = Ze) {
|
|
351
354
|
if (!dr()) return !0;
|
|
352
|
-
const
|
|
353
|
-
if (!
|
|
354
|
-
const e = Number(
|
|
355
|
+
const t = f0.getItem(Br);
|
|
356
|
+
if (!t) return !1;
|
|
357
|
+
const e = Number(t);
|
|
355
358
|
return Date.now() + r > e;
|
|
356
359
|
}
|
|
357
360
|
function Ve(r, d) {
|
|
358
|
-
const
|
|
359
|
-
if (f0.setItem(
|
|
360
|
-
const e = Date
|
|
361
|
-
f0[
|
|
361
|
+
const t = J;
|
|
362
|
+
if (f0.setItem(pr, r), typeof d == t(188) + "r" && d > 0) {
|
|
363
|
+
const e = Date[t(196)]() + d * 1e3;
|
|
364
|
+
f0[t(176) + "em"](Br, String(e));
|
|
362
365
|
}
|
|
363
366
|
}
|
|
364
367
|
function Je() {
|
|
365
368
|
const r = J;
|
|
366
|
-
f0[r(
|
|
369
|
+
f0[r(178) + "eItem"](pr), f0["remov" + r(183)](Br);
|
|
367
370
|
}
|
|
368
371
|
async function Pr(r) {
|
|
369
|
-
const d = J,
|
|
370
|
-
return
|
|
372
|
+
const d = J, t = await r(), e = t?.[d(201)]?.[d(201)];
|
|
373
|
+
return t?.[d(201)]?.[d(177)] === 200 && e?.[d(186) + d(181)] ? (Ve(e[d(186) + "token"], e["expir" + d(175)]), e[d(186) + "token"]) : null;
|
|
371
374
|
}
|
|
372
375
|
let rt = null;
|
|
373
376
|
function Rr() {
|
|
@@ -375,39 +378,37 @@ function Rr() {
|
|
|
375
378
|
}
|
|
376
379
|
async function Ee() {
|
|
377
380
|
const r = J;
|
|
378
|
-
if (!ir[
|
|
381
|
+
if (!ir[r(202) + "wser"]()) return dr();
|
|
379
382
|
const d = dr();
|
|
380
383
|
if (d && !Qe()) return d;
|
|
381
384
|
try {
|
|
382
|
-
const
|
|
383
|
-
if (d &&
|
|
384
|
-
const e = await Pr(
|
|
385
|
+
const t = await Rr();
|
|
386
|
+
if (d && t?.["fetchFileT" + r(198) + r(189) + "h"]) {
|
|
387
|
+
const e = await Pr(t["fetch" + r(174) + r(198) + "efresh"]);
|
|
385
388
|
if (e) return e;
|
|
386
389
|
}
|
|
387
390
|
} catch {
|
|
388
391
|
}
|
|
389
392
|
try {
|
|
390
|
-
const
|
|
391
|
-
return
|
|
393
|
+
const t = Rr();
|
|
394
|
+
return t?.["fetchFileToken"] ? await Pr(t.fetchFileToken) : null;
|
|
392
395
|
} catch {
|
|
393
396
|
return null;
|
|
394
397
|
}
|
|
395
398
|
}
|
|
396
399
|
function Ae(r) {
|
|
397
400
|
const d = J;
|
|
398
|
-
if (!r || c0[d(
|
|
399
|
-
const
|
|
400
|
-
return
|
|
401
|
+
if (!r || c0[d(192) + d(199)](r) || c0.isBlobUrl(r)) return !1;
|
|
402
|
+
const t = c0.parse(r);
|
|
403
|
+
return t ? t.pathname.includes("/files/") && !c0.hasParam(r, "fileToken") : r.includes(d(210) + "s/") && !r.includes("fileToken=");
|
|
401
404
|
}
|
|
402
405
|
function Fe(r, d) {
|
|
403
|
-
const
|
|
404
|
-
return !d || !Ae(r) ? r : c0[
|
|
405
|
-
}
|
|
406
|
-
function Br(r, d) {
|
|
407
|
-
return r = r - (-681 + 2 * -547 + 1931), or()[r];
|
|
406
|
+
const t = J;
|
|
407
|
+
return !d || !Ae(r) ? r : c0["addPa" + t(172)](r, "fileToken", d);
|
|
408
408
|
}
|
|
409
409
|
function et(r) {
|
|
410
|
-
|
|
410
|
+
const d = J;
|
|
411
|
+
return c0.removeParam(r, "fileT" + d(203));
|
|
411
412
|
}
|
|
412
413
|
async function tt(r) {
|
|
413
414
|
if (!Ae(r)) return r;
|
|
@@ -415,32 +416,33 @@ async function tt(r) {
|
|
|
415
416
|
return Fe(r, d);
|
|
416
417
|
}
|
|
417
418
|
async function De(r, d) {
|
|
418
|
-
|
|
419
|
+
const t = J;
|
|
420
|
+
if (!ir["isBro" + t(171)]()) return fetch(r, d);
|
|
419
421
|
const e = et(r), u = await tt(e), v = await fetch(u, d);
|
|
420
|
-
if (v
|
|
422
|
+
if (v[t(206) + "s"] !== -3426 * 1 + -889 * -9 + 2 * -2087) return v;
|
|
421
423
|
Je();
|
|
422
424
|
const g = await Ee(), p = Fe(e, g);
|
|
423
425
|
return fetch(p, d);
|
|
424
426
|
}
|
|
425
427
|
const ge = (r, d) => {
|
|
426
428
|
if (!r) return r;
|
|
427
|
-
const
|
|
428
|
-
if (
|
|
429
|
+
const t = (d || "").replace(/\/$/, "");
|
|
430
|
+
if (t && r.startsWith(t))
|
|
429
431
|
return r;
|
|
430
432
|
if (typeof window < "u") {
|
|
431
433
|
const u = window.location.hostname;
|
|
432
434
|
if (u === "localhost" || u === "127.0.0.1")
|
|
433
435
|
try {
|
|
434
436
|
const v = new URL(r);
|
|
435
|
-
if (
|
|
437
|
+
if (t)
|
|
436
438
|
try {
|
|
437
|
-
const g = new URL(
|
|
439
|
+
const g = new URL(t).origin;
|
|
438
440
|
if (v.origin === g)
|
|
439
441
|
return r;
|
|
440
442
|
} catch {
|
|
441
443
|
}
|
|
442
444
|
if (v.pathname.startsWith("/files/"))
|
|
443
|
-
return
|
|
445
|
+
return t ? `${t}${v.pathname}${v.search}${v.hash}` : `${v.pathname}${v.search}${v.hash}`;
|
|
444
446
|
} catch {
|
|
445
447
|
}
|
|
446
448
|
}
|
|
@@ -450,19 +452,19 @@ const ge = (r, d) => {
|
|
|
450
452
|
}, xt = (r, d) => {
|
|
451
453
|
if (typeof OffscreenCanvas < "u" && typeof document > "u")
|
|
452
454
|
return new OffscreenCanvas(r, d);
|
|
453
|
-
const
|
|
454
|
-
return
|
|
455
|
+
const t = document.createElement("canvas");
|
|
456
|
+
return t.width = r, t.height = d, t;
|
|
455
457
|
}, g0 = async (r, d) => {
|
|
456
458
|
if (!d || d <= 0) return r;
|
|
457
|
-
const
|
|
458
|
-
if (
|
|
459
|
-
const e = d /
|
|
459
|
+
const t = Math.max(r.width, r.height);
|
|
460
|
+
if (t <= d) return r;
|
|
461
|
+
const e = d / t, u = Math.max(1, Math.round(r.width * e)), v = Math.max(1, Math.round(r.height * e)), g = xt(u, v), p = g.getContext("2d");
|
|
460
462
|
return p ? (p.drawImage(r, 0, 0, u, v), r.close?.(), await createImageBitmap(g)) : r;
|
|
461
463
|
};
|
|
462
|
-
async function at(r, d,
|
|
464
|
+
async function at(r, d, t) {
|
|
463
465
|
if (typeof r == "string")
|
|
464
466
|
try {
|
|
465
|
-
const e = ge(r,
|
|
467
|
+
const e = ge(r, t), u = await De(e);
|
|
466
468
|
if (!u.ok) {
|
|
467
469
|
const g = u.status === 404 ? `图片不存在 (404): ${r}` : `加载图片失败 (${u.status} ${u.statusText}): ${r}`;
|
|
468
470
|
throw new Error(g);
|
|
@@ -498,9 +500,9 @@ async function at(r, d, x) {
|
|
|
498
500
|
}
|
|
499
501
|
throw new Error("不支持的图片类型");
|
|
500
502
|
}
|
|
501
|
-
async function nt(r, d,
|
|
503
|
+
async function nt(r, d, t) {
|
|
502
504
|
try {
|
|
503
|
-
const e = ge(r,
|
|
505
|
+
const e = ge(r, t), u = await De(e);
|
|
504
506
|
if (!u.ok) {
|
|
505
507
|
const g = u.status === 404 ? `图片不存在 (404): ${r}` : `加载图片失败 (${u.status} ${u.statusText}): ${r}`;
|
|
506
508
|
throw new Error(g);
|
|
@@ -553,7 +555,7 @@ function ot(r) {
|
|
|
553
555
|
if (Object.prototype.hasOwnProperty.call(r, "__esModule")) return r;
|
|
554
556
|
var d = r.default;
|
|
555
557
|
if (typeof d == "function") {
|
|
556
|
-
var
|
|
558
|
+
var t = function e() {
|
|
557
559
|
var u = !1;
|
|
558
560
|
try {
|
|
559
561
|
u = this instanceof e;
|
|
@@ -561,17 +563,17 @@ function ot(r) {
|
|
|
561
563
|
}
|
|
562
564
|
return u ? Reflect.construct(d, arguments, this.constructor) : d.apply(this, arguments);
|
|
563
565
|
};
|
|
564
|
-
|
|
565
|
-
} else
|
|
566
|
-
return Object.defineProperty(
|
|
566
|
+
t.prototype = d.prototype;
|
|
567
|
+
} else t = {};
|
|
568
|
+
return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(r).forEach(function(e) {
|
|
567
569
|
var u = Object.getOwnPropertyDescriptor(r, e);
|
|
568
|
-
Object.defineProperty(
|
|
570
|
+
Object.defineProperty(t, e, u.get ? u : {
|
|
569
571
|
enumerable: !0,
|
|
570
572
|
get: function() {
|
|
571
573
|
return r[e];
|
|
572
574
|
}
|
|
573
575
|
});
|
|
574
|
-
}),
|
|
576
|
+
}), t;
|
|
575
577
|
}
|
|
576
578
|
var b0 = { exports: {} };
|
|
577
579
|
function it(r) {
|
|
@@ -583,10 +585,10 @@ var m0 = { exports: {} }, st = {}, ct = /* @__PURE__ */ Object.freeze({
|
|
|
583
585
|
}), ft = /* @__PURE__ */ ot(ct), ut = m0.exports, zr;
|
|
584
586
|
function U() {
|
|
585
587
|
return zr || (zr = 1, (function(r, d) {
|
|
586
|
-
(function(
|
|
588
|
+
(function(t, e) {
|
|
587
589
|
r.exports = e();
|
|
588
590
|
})(ut, function() {
|
|
589
|
-
var
|
|
591
|
+
var t = t || (function(e, u) {
|
|
590
592
|
var v;
|
|
591
593
|
if (typeof window < "u" && window.crypto && (v = window.crypto), typeof self < "u" && self.crypto && (v = self.crypto), typeof globalThis < "u" && globalThis.crypto && (v = globalThis.crypto), !v && typeof window < "u" && window.msCrypto && (v = window.msCrypto), !v && typeof lr < "u" && lr.crypto && (v = lr.crypto), !v && typeof it == "function")
|
|
592
594
|
try {
|
|
@@ -614,7 +616,7 @@ function U() {
|
|
|
614
616
|
var s;
|
|
615
617
|
return o.prototype = i, s = new o(), o.prototype = null, s;
|
|
616
618
|
};
|
|
617
|
-
})(), C = {},
|
|
619
|
+
})(), C = {}, x = C.lib = {}, a = x.Base = /* @__PURE__ */ (function() {
|
|
618
620
|
return {
|
|
619
621
|
/**
|
|
620
622
|
* Creates a new object that inherits from this object.
|
|
@@ -699,7 +701,7 @@ function U() {
|
|
|
699
701
|
return this.init.prototype.extend(this);
|
|
700
702
|
}
|
|
701
703
|
};
|
|
702
|
-
})(), A =
|
|
704
|
+
})(), A = x.WordArray = a.extend({
|
|
703
705
|
/**
|
|
704
706
|
* Initializes a newly created word array.
|
|
705
707
|
*
|
|
@@ -911,7 +913,7 @@ function U() {
|
|
|
911
913
|
parse: function(o) {
|
|
912
914
|
return c.parse(unescape(encodeURIComponent(o)));
|
|
913
915
|
}
|
|
914
|
-
}, f =
|
|
916
|
+
}, f = x.BufferedBlockAlgorithm = a.extend({
|
|
915
917
|
/**
|
|
916
918
|
* Resets this block algorithm's data buffer to its initial state.
|
|
917
919
|
*
|
|
@@ -975,7 +977,7 @@ function U() {
|
|
|
975
977
|
},
|
|
976
978
|
_minBufferSize: 0
|
|
977
979
|
});
|
|
978
|
-
|
|
980
|
+
x.Hasher = f.extend({
|
|
979
981
|
/**
|
|
980
982
|
* Configuration options.
|
|
981
983
|
*/
|
|
@@ -1077,18 +1079,18 @@ function U() {
|
|
|
1077
1079
|
var E = C.algo = {};
|
|
1078
1080
|
return C;
|
|
1079
1081
|
})(Math);
|
|
1080
|
-
return
|
|
1082
|
+
return t;
|
|
1081
1083
|
});
|
|
1082
1084
|
})(m0)), m0.exports;
|
|
1083
1085
|
}
|
|
1084
1086
|
var _0 = { exports: {} }, lt = _0.exports, Ir;
|
|
1085
1087
|
function sr() {
|
|
1086
1088
|
return Ir || (Ir = 1, (function(r, d) {
|
|
1087
|
-
(function(
|
|
1089
|
+
(function(t, e) {
|
|
1088
1090
|
r.exports = e(U());
|
|
1089
|
-
})(lt, function(
|
|
1091
|
+
})(lt, function(t) {
|
|
1090
1092
|
return (function(e) {
|
|
1091
|
-
var u =
|
|
1093
|
+
var u = t, v = u.lib, g = v.Base, p = v.WordArray, C = u.x64 = {};
|
|
1092
1094
|
C.Word = g.extend({
|
|
1093
1095
|
/**
|
|
1094
1096
|
* Initializes a newly created 64-bit word.
|
|
@@ -1100,8 +1102,8 @@ function sr() {
|
|
|
1100
1102
|
*
|
|
1101
1103
|
* var x64Word = CryptoJS.x64.Word.create(0x00010203, 0x04050607);
|
|
1102
1104
|
*/
|
|
1103
|
-
init: function(
|
|
1104
|
-
this.high =
|
|
1105
|
+
init: function(x, a) {
|
|
1106
|
+
this.high = x, this.low = a;
|
|
1105
1107
|
}
|
|
1106
1108
|
/**
|
|
1107
1109
|
* Bitwise NOTs this word.
|
|
@@ -1273,8 +1275,8 @@ function sr() {
|
|
|
1273
1275
|
* CryptoJS.x64.Word.create(0x18191a1b, 0x1c1d1e1f)
|
|
1274
1276
|
* ], 10);
|
|
1275
1277
|
*/
|
|
1276
|
-
init: function(
|
|
1277
|
-
|
|
1278
|
+
init: function(x, a) {
|
|
1279
|
+
x = this.words = x || [], a != e ? this.sigBytes = a : this.sigBytes = x.length * 8;
|
|
1278
1280
|
},
|
|
1279
1281
|
/**
|
|
1280
1282
|
* Converts this 64-bit word array to a 32-bit word array.
|
|
@@ -1286,8 +1288,8 @@ function sr() {
|
|
|
1286
1288
|
* var x32WordArray = x64WordArray.toX32();
|
|
1287
1289
|
*/
|
|
1288
1290
|
toX32: function() {
|
|
1289
|
-
for (var
|
|
1290
|
-
var l =
|
|
1291
|
+
for (var x = this.words, a = x.length, A = [], n = 0; n < a; n++) {
|
|
1292
|
+
var l = x[n];
|
|
1291
1293
|
A.push(l.high), A.push(l.low);
|
|
1292
1294
|
}
|
|
1293
1295
|
return p.create(A, this.sigBytes);
|
|
@@ -1302,45 +1304,45 @@ function sr() {
|
|
|
1302
1304
|
* var clone = x64WordArray.clone();
|
|
1303
1305
|
*/
|
|
1304
1306
|
clone: function() {
|
|
1305
|
-
for (var
|
|
1307
|
+
for (var x = g.clone.call(this), a = x.words = this.words.slice(0), A = a.length, n = 0; n < A; n++)
|
|
1306
1308
|
a[n] = a[n].clone();
|
|
1307
|
-
return
|
|
1309
|
+
return x;
|
|
1308
1310
|
}
|
|
1309
1311
|
});
|
|
1310
|
-
})(),
|
|
1312
|
+
})(), t;
|
|
1311
1313
|
});
|
|
1312
1314
|
})(_0)), _0.exports;
|
|
1313
1315
|
}
|
|
1314
1316
|
var y0 = { exports: {} }, dt = y0.exports, Wr;
|
|
1315
1317
|
function ht() {
|
|
1316
1318
|
return Wr || (Wr = 1, (function(r, d) {
|
|
1317
|
-
(function(
|
|
1319
|
+
(function(t, e) {
|
|
1318
1320
|
r.exports = e(U());
|
|
1319
|
-
})(dt, function(
|
|
1321
|
+
})(dt, function(t) {
|
|
1320
1322
|
return (function() {
|
|
1321
1323
|
if (typeof ArrayBuffer == "function") {
|
|
1322
|
-
var e =
|
|
1324
|
+
var e = t, u = e.lib, v = u.WordArray, g = v.init, p = v.init = function(C) {
|
|
1323
1325
|
if (C instanceof ArrayBuffer && (C = new Uint8Array(C)), (C instanceof Int8Array || typeof Uint8ClampedArray < "u" && C instanceof Uint8ClampedArray || C instanceof Int16Array || C instanceof Uint16Array || C instanceof Int32Array || C instanceof Uint32Array || C instanceof Float32Array || C instanceof Float64Array) && (C = new Uint8Array(C.buffer, C.byteOffset, C.byteLength)), C instanceof Uint8Array) {
|
|
1324
|
-
for (var
|
|
1326
|
+
for (var x = C.byteLength, a = [], A = 0; A < x; A++)
|
|
1325
1327
|
a[A >>> 2] |= C[A] << 24 - A % 4 * 8;
|
|
1326
|
-
g.call(this, a,
|
|
1328
|
+
g.call(this, a, x);
|
|
1327
1329
|
} else
|
|
1328
1330
|
g.apply(this, arguments);
|
|
1329
1331
|
};
|
|
1330
1332
|
p.prototype = v;
|
|
1331
1333
|
}
|
|
1332
|
-
})(),
|
|
1334
|
+
})(), t.lib.WordArray;
|
|
1333
1335
|
});
|
|
1334
1336
|
})(y0)), y0.exports;
|
|
1335
1337
|
}
|
|
1336
1338
|
var w0 = { exports: {} }, vt = w0.exports, Or;
|
|
1337
1339
|
function pt() {
|
|
1338
1340
|
return Or || (Or = 1, (function(r, d) {
|
|
1339
|
-
(function(
|
|
1341
|
+
(function(t, e) {
|
|
1340
1342
|
r.exports = e(U());
|
|
1341
|
-
})(vt, function(
|
|
1343
|
+
})(vt, function(t) {
|
|
1342
1344
|
return (function() {
|
|
1343
|
-
var e =
|
|
1345
|
+
var e = t, u = e.lib, v = u.WordArray, g = e.enc;
|
|
1344
1346
|
g.Utf16 = g.Utf16BE = {
|
|
1345
1347
|
/**
|
|
1346
1348
|
* Converts a word array to a UTF-16 BE string.
|
|
@@ -1356,8 +1358,8 @@ function pt() {
|
|
|
1356
1358
|
* var utf16String = CryptoJS.enc.Utf16.stringify(wordArray);
|
|
1357
1359
|
*/
|
|
1358
1360
|
stringify: function(C) {
|
|
1359
|
-
for (var
|
|
1360
|
-
var l =
|
|
1361
|
+
for (var x = C.words, a = C.sigBytes, A = [], n = 0; n < a; n += 2) {
|
|
1362
|
+
var l = x[n >>> 2] >>> 16 - n % 4 * 8 & 65535;
|
|
1361
1363
|
A.push(String.fromCharCode(l));
|
|
1362
1364
|
}
|
|
1363
1365
|
return A.join("");
|
|
@@ -1376,9 +1378,9 @@ function pt() {
|
|
|
1376
1378
|
* var wordArray = CryptoJS.enc.Utf16.parse(utf16String);
|
|
1377
1379
|
*/
|
|
1378
1380
|
parse: function(C) {
|
|
1379
|
-
for (var
|
|
1381
|
+
for (var x = C.length, a = [], A = 0; A < x; A++)
|
|
1380
1382
|
a[A >>> 1] |= C.charCodeAt(A) << 16 - A % 2 * 16;
|
|
1381
|
-
return v.create(a,
|
|
1383
|
+
return v.create(a, x * 2);
|
|
1382
1384
|
}
|
|
1383
1385
|
}, g.Utf16LE = {
|
|
1384
1386
|
/**
|
|
@@ -1395,8 +1397,8 @@ function pt() {
|
|
|
1395
1397
|
* var utf16Str = CryptoJS.enc.Utf16LE.stringify(wordArray);
|
|
1396
1398
|
*/
|
|
1397
1399
|
stringify: function(C) {
|
|
1398
|
-
for (var
|
|
1399
|
-
var l = p(
|
|
1400
|
+
for (var x = C.words, a = C.sigBytes, A = [], n = 0; n < a; n += 2) {
|
|
1401
|
+
var l = p(x[n >>> 2] >>> 16 - n % 4 * 8 & 65535);
|
|
1400
1402
|
A.push(String.fromCharCode(l));
|
|
1401
1403
|
}
|
|
1402
1404
|
return A.join("");
|
|
@@ -1415,26 +1417,26 @@ function pt() {
|
|
|
1415
1417
|
* var wordArray = CryptoJS.enc.Utf16LE.parse(utf16Str);
|
|
1416
1418
|
*/
|
|
1417
1419
|
parse: function(C) {
|
|
1418
|
-
for (var
|
|
1420
|
+
for (var x = C.length, a = [], A = 0; A < x; A++)
|
|
1419
1421
|
a[A >>> 1] |= p(C.charCodeAt(A) << 16 - A % 2 * 16);
|
|
1420
|
-
return v.create(a,
|
|
1422
|
+
return v.create(a, x * 2);
|
|
1421
1423
|
}
|
|
1422
1424
|
};
|
|
1423
1425
|
function p(C) {
|
|
1424
1426
|
return C << 8 & 4278255360 | C >>> 8 & 16711935;
|
|
1425
1427
|
}
|
|
1426
|
-
})(),
|
|
1428
|
+
})(), t.enc.Utf16;
|
|
1427
1429
|
});
|
|
1428
1430
|
})(w0)), w0.exports;
|
|
1429
1431
|
}
|
|
1430
|
-
var k0 = { exports: {} }, Bt = k0.exports,
|
|
1432
|
+
var k0 = { exports: {} }, Bt = k0.exports, Lr;
|
|
1431
1433
|
function a0() {
|
|
1432
|
-
return
|
|
1433
|
-
(function(
|
|
1434
|
+
return Lr || (Lr = 1, (function(r, d) {
|
|
1435
|
+
(function(t, e) {
|
|
1434
1436
|
r.exports = e(U());
|
|
1435
|
-
})(Bt, function(
|
|
1437
|
+
})(Bt, function(t) {
|
|
1436
1438
|
return (function() {
|
|
1437
|
-
var e =
|
|
1439
|
+
var e = t, u = e.lib, v = u.WordArray, g = e.enc;
|
|
1438
1440
|
g.Base64 = {
|
|
1439
1441
|
/**
|
|
1440
1442
|
* Converts a word array to a Base64 string.
|
|
@@ -1450,10 +1452,10 @@ function a0() {
|
|
|
1450
1452
|
* var base64String = CryptoJS.enc.Base64.stringify(wordArray);
|
|
1451
1453
|
*/
|
|
1452
1454
|
stringify: function(C) {
|
|
1453
|
-
var
|
|
1455
|
+
var x = C.words, a = C.sigBytes, A = this._map;
|
|
1454
1456
|
C.clamp();
|
|
1455
1457
|
for (var n = [], l = 0; l < a; l += 3)
|
|
1456
|
-
for (var c =
|
|
1458
|
+
for (var c = x[l >>> 2] >>> 24 - l % 4 * 8 & 255, h = x[l + 1 >>> 2] >>> 24 - (l + 1) % 4 * 8 & 255, f = x[l + 2 >>> 2] >>> 24 - (l + 2) % 4 * 8 & 255, E = c << 16 | h << 8 | f, o = 0; o < 4 && l + o * 0.75 < a; o++)
|
|
1457
1459
|
n.push(A.charAt(E >>> 6 * (3 - o) & 63));
|
|
1458
1460
|
var i = A.charAt(64);
|
|
1459
1461
|
if (i)
|
|
@@ -1475,7 +1477,7 @@ function a0() {
|
|
|
1475
1477
|
* var wordArray = CryptoJS.enc.Base64.parse(base64String);
|
|
1476
1478
|
*/
|
|
1477
1479
|
parse: function(C) {
|
|
1478
|
-
var
|
|
1480
|
+
var x = C.length, a = this._map, A = this._reverseMap;
|
|
1479
1481
|
if (!A) {
|
|
1480
1482
|
A = this._reverseMap = [];
|
|
1481
1483
|
for (var n = 0; n < a.length; n++)
|
|
@@ -1484,32 +1486,32 @@ function a0() {
|
|
|
1484
1486
|
var l = a.charAt(64);
|
|
1485
1487
|
if (l) {
|
|
1486
1488
|
var c = C.indexOf(l);
|
|
1487
|
-
c !== -1 && (
|
|
1489
|
+
c !== -1 && (x = c);
|
|
1488
1490
|
}
|
|
1489
|
-
return p(C,
|
|
1491
|
+
return p(C, x, A);
|
|
1490
1492
|
},
|
|
1491
1493
|
_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
|
|
1492
1494
|
};
|
|
1493
|
-
function p(C,
|
|
1494
|
-
for (var A = [], n = 0, l = 0; l <
|
|
1495
|
+
function p(C, x, a) {
|
|
1496
|
+
for (var A = [], n = 0, l = 0; l < x; l++)
|
|
1495
1497
|
if (l % 4) {
|
|
1496
1498
|
var c = a[C.charCodeAt(l - 1)] << l % 4 * 2, h = a[C.charCodeAt(l)] >>> 6 - l % 4 * 2, f = c | h;
|
|
1497
1499
|
A[n >>> 2] |= f << 24 - n % 4 * 8, n++;
|
|
1498
1500
|
}
|
|
1499
1501
|
return v.create(A, n);
|
|
1500
1502
|
}
|
|
1501
|
-
})(),
|
|
1503
|
+
})(), t.enc.Base64;
|
|
1502
1504
|
});
|
|
1503
1505
|
})(k0)), k0.exports;
|
|
1504
1506
|
}
|
|
1505
|
-
var S0 = { exports: {} }, Ct = S0.exports,
|
|
1507
|
+
var S0 = { exports: {} }, Ct = S0.exports, qr;
|
|
1506
1508
|
function Et() {
|
|
1507
|
-
return
|
|
1508
|
-
(function(
|
|
1509
|
+
return qr || (qr = 1, (function(r, d) {
|
|
1510
|
+
(function(t, e) {
|
|
1509
1511
|
r.exports = e(U());
|
|
1510
|
-
})(Ct, function(
|
|
1512
|
+
})(Ct, function(t) {
|
|
1511
1513
|
return (function() {
|
|
1512
|
-
var e =
|
|
1514
|
+
var e = t, u = e.lib, v = u.WordArray, g = e.enc;
|
|
1513
1515
|
g.Base64url = {
|
|
1514
1516
|
/**
|
|
1515
1517
|
* Converts a word array to a Base64url string.
|
|
@@ -1526,9 +1528,9 @@ function Et() {
|
|
|
1526
1528
|
*
|
|
1527
1529
|
* var base64String = CryptoJS.enc.Base64url.stringify(wordArray);
|
|
1528
1530
|
*/
|
|
1529
|
-
stringify: function(C,
|
|
1530
|
-
|
|
1531
|
-
var a = C.words, A = C.sigBytes, n =
|
|
1531
|
+
stringify: function(C, x) {
|
|
1532
|
+
x === void 0 && (x = !0);
|
|
1533
|
+
var a = C.words, A = C.sigBytes, n = x ? this._safe_map : this._map;
|
|
1532
1534
|
C.clamp();
|
|
1533
1535
|
for (var l = [], c = 0; c < A; c += 3)
|
|
1534
1536
|
for (var h = a[c >>> 2] >>> 24 - c % 4 * 8 & 255, f = a[c + 1 >>> 2] >>> 24 - (c + 1) % 4 * 8 & 255, E = a[c + 2 >>> 2] >>> 24 - (c + 2) % 4 * 8 & 255, o = h << 16 | f << 8 | E, i = 0; i < 4 && c + i * 0.75 < A; i++)
|
|
@@ -1554,9 +1556,9 @@ function Et() {
|
|
|
1554
1556
|
*
|
|
1555
1557
|
* var wordArray = CryptoJS.enc.Base64url.parse(base64String);
|
|
1556
1558
|
*/
|
|
1557
|
-
parse: function(C,
|
|
1558
|
-
|
|
1559
|
-
var a = C.length, A =
|
|
1559
|
+
parse: function(C, x) {
|
|
1560
|
+
x === void 0 && (x = !0);
|
|
1561
|
+
var a = C.length, A = x ? this._safe_map : this._map, n = this._reverseMap;
|
|
1560
1562
|
if (!n) {
|
|
1561
1563
|
n = this._reverseMap = [];
|
|
1562
1564
|
for (var l = 0; l < A.length; l++)
|
|
@@ -1572,29 +1574,29 @@ function Et() {
|
|
|
1572
1574
|
_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
|
|
1573
1575
|
_safe_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"
|
|
1574
1576
|
};
|
|
1575
|
-
function p(C,
|
|
1576
|
-
for (var A = [], n = 0, l = 0; l <
|
|
1577
|
+
function p(C, x, a) {
|
|
1578
|
+
for (var A = [], n = 0, l = 0; l < x; l++)
|
|
1577
1579
|
if (l % 4) {
|
|
1578
1580
|
var c = a[C.charCodeAt(l - 1)] << l % 4 * 2, h = a[C.charCodeAt(l)] >>> 6 - l % 4 * 2, f = c | h;
|
|
1579
1581
|
A[n >>> 2] |= f << 24 - n % 4 * 8, n++;
|
|
1580
1582
|
}
|
|
1581
1583
|
return v.create(A, n);
|
|
1582
1584
|
}
|
|
1583
|
-
})(),
|
|
1585
|
+
})(), t.enc.Base64url;
|
|
1584
1586
|
});
|
|
1585
1587
|
})(S0)), S0.exports;
|
|
1586
1588
|
}
|
|
1587
1589
|
var H0 = { exports: {} }, At = H0.exports, Tr;
|
|
1588
1590
|
function n0() {
|
|
1589
1591
|
return Tr || (Tr = 1, (function(r, d) {
|
|
1590
|
-
(function(
|
|
1592
|
+
(function(t, e) {
|
|
1591
1593
|
r.exports = e(U());
|
|
1592
|
-
})(At, function(
|
|
1594
|
+
})(At, function(t) {
|
|
1593
1595
|
return (function(e) {
|
|
1594
|
-
var u =
|
|
1596
|
+
var u = t, v = u.lib, g = v.WordArray, p = v.Hasher, C = u.algo, x = [];
|
|
1595
1597
|
(function() {
|
|
1596
1598
|
for (var h = 0; h < 64; h++)
|
|
1597
|
-
|
|
1599
|
+
x[h] = e.abs(e.sin(h + 1)) * 4294967296 | 0;
|
|
1598
1600
|
})();
|
|
1599
1601
|
var a = C.MD5 = p.extend({
|
|
1600
1602
|
_doReset: function() {
|
|
@@ -1610,8 +1612,8 @@ function n0() {
|
|
|
1610
1612
|
var o = f + E, i = h[o];
|
|
1611
1613
|
h[o] = (i << 8 | i >>> 24) & 16711935 | (i << 24 | i >>> 8) & 4278255360;
|
|
1612
1614
|
}
|
|
1613
|
-
var s = this._hash.words, F = h[f + 0], D = h[f + 1], _ = h[f + 2], w = h[f + 3], z = h[f + 4], B = h[f + 5], m = h[f + 6], P = h[f + 7], H = h[f + 8],
|
|
1614
|
-
b = A(b, k, R, S, F, 7,
|
|
1615
|
+
var s = this._hash.words, F = h[f + 0], D = h[f + 1], _ = h[f + 2], w = h[f + 3], z = h[f + 4], B = h[f + 5], m = h[f + 6], P = h[f + 7], H = h[f + 8], L = h[f + 9], q = h[f + 10], y = h[f + 11], $ = h[f + 12], W = h[f + 13], O = h[f + 14], I = h[f + 15], b = s[0], k = s[1], R = s[2], S = s[3];
|
|
1616
|
+
b = A(b, k, R, S, F, 7, x[0]), S = A(S, b, k, R, D, 12, x[1]), R = A(R, S, b, k, _, 17, x[2]), k = A(k, R, S, b, w, 22, x[3]), b = A(b, k, R, S, z, 7, x[4]), S = A(S, b, k, R, B, 12, x[5]), R = A(R, S, b, k, m, 17, x[6]), k = A(k, R, S, b, P, 22, x[7]), b = A(b, k, R, S, H, 7, x[8]), S = A(S, b, k, R, L, 12, x[9]), R = A(R, S, b, k, q, 17, x[10]), k = A(k, R, S, b, y, 22, x[11]), b = A(b, k, R, S, $, 7, x[12]), S = A(S, b, k, R, W, 12, x[13]), R = A(R, S, b, k, O, 17, x[14]), k = A(k, R, S, b, I, 22, x[15]), b = n(b, k, R, S, D, 5, x[16]), S = n(S, b, k, R, m, 9, x[17]), R = n(R, S, b, k, y, 14, x[18]), k = n(k, R, S, b, F, 20, x[19]), b = n(b, k, R, S, B, 5, x[20]), S = n(S, b, k, R, q, 9, x[21]), R = n(R, S, b, k, I, 14, x[22]), k = n(k, R, S, b, z, 20, x[23]), b = n(b, k, R, S, L, 5, x[24]), S = n(S, b, k, R, O, 9, x[25]), R = n(R, S, b, k, w, 14, x[26]), k = n(k, R, S, b, H, 20, x[27]), b = n(b, k, R, S, W, 5, x[28]), S = n(S, b, k, R, _, 9, x[29]), R = n(R, S, b, k, P, 14, x[30]), k = n(k, R, S, b, $, 20, x[31]), b = l(b, k, R, S, B, 4, x[32]), S = l(S, b, k, R, H, 11, x[33]), R = l(R, S, b, k, y, 16, x[34]), k = l(k, R, S, b, O, 23, x[35]), b = l(b, k, R, S, D, 4, x[36]), S = l(S, b, k, R, z, 11, x[37]), R = l(R, S, b, k, P, 16, x[38]), k = l(k, R, S, b, q, 23, x[39]), b = l(b, k, R, S, W, 4, x[40]), S = l(S, b, k, R, F, 11, x[41]), R = l(R, S, b, k, w, 16, x[42]), k = l(k, R, S, b, m, 23, x[43]), b = l(b, k, R, S, L, 4, x[44]), S = l(S, b, k, R, $, 11, x[45]), R = l(R, S, b, k, I, 16, x[46]), k = l(k, R, S, b, _, 23, x[47]), b = c(b, k, R, S, F, 6, x[48]), S = c(S, b, k, R, P, 10, x[49]), R = c(R, S, b, k, O, 15, x[50]), k = c(k, R, S, b, B, 21, x[51]), b = c(b, k, R, S, $, 6, x[52]), S = c(S, b, k, R, w, 10, x[53]), R = c(R, S, b, k, q, 15, x[54]), k = c(k, R, S, b, D, 21, x[55]), b = c(b, k, R, S, H, 6, x[56]), S = c(S, b, k, R, I, 10, x[57]), R = c(R, S, b, k, m, 15, x[58]), k = c(k, R, S, b, W, 21, x[59]), b = c(b, k, R, S, z, 6, x[60]), S = c(S, b, k, R, y, 10, x[61]), R = c(R, S, b, k, _, 15, x[62]), k = c(k, R, S, b, L, 21, x[63]), s[0] = s[0] + b | 0, s[1] = s[1] + k | 0, s[2] = s[2] + R | 0, s[3] = s[3] + S | 0;
|
|
1615
1617
|
},
|
|
1616
1618
|
_doFinalize: function() {
|
|
1617
1619
|
var h = this._data, f = h.words, E = this._nDataBytes * 8, o = h.sigBytes * 8;
|
|
@@ -1646,18 +1648,18 @@ function n0() {
|
|
|
1646
1648
|
return (D << s | D >>> 32 - s) + f;
|
|
1647
1649
|
}
|
|
1648
1650
|
u.MD5 = p._createHelper(a), u.HmacMD5 = p._createHmacHelper(a);
|
|
1649
|
-
})(Math),
|
|
1651
|
+
})(Math), t.MD5;
|
|
1650
1652
|
});
|
|
1651
1653
|
})(H0)), H0.exports;
|
|
1652
1654
|
}
|
|
1653
1655
|
var P0 = { exports: {} }, Ft = P0.exports, Mr;
|
|
1654
1656
|
function be() {
|
|
1655
1657
|
return Mr || (Mr = 1, (function(r, d) {
|
|
1656
|
-
(function(
|
|
1658
|
+
(function(t, e) {
|
|
1657
1659
|
r.exports = e(U());
|
|
1658
|
-
})(Ft, function(
|
|
1660
|
+
})(Ft, function(t) {
|
|
1659
1661
|
return (function() {
|
|
1660
|
-
var e =
|
|
1662
|
+
var e = t, u = e.lib, v = u.WordArray, g = u.Hasher, p = e.algo, C = [], x = p.SHA1 = g.extend({
|
|
1661
1663
|
_doReset: function() {
|
|
1662
1664
|
this._hash = new v.init([
|
|
1663
1665
|
1732584193,
|
|
@@ -1689,19 +1691,19 @@ function be() {
|
|
|
1689
1691
|
return a._hash = this._hash.clone(), a;
|
|
1690
1692
|
}
|
|
1691
1693
|
});
|
|
1692
|
-
e.SHA1 = g._createHelper(
|
|
1693
|
-
})(),
|
|
1694
|
+
e.SHA1 = g._createHelper(x), e.HmacSHA1 = g._createHmacHelper(x);
|
|
1695
|
+
})(), t.SHA1;
|
|
1694
1696
|
});
|
|
1695
1697
|
})(P0)), P0.exports;
|
|
1696
1698
|
}
|
|
1697
1699
|
var R0 = { exports: {} }, Dt = R0.exports, Nr;
|
|
1698
1700
|
function Cr() {
|
|
1699
1701
|
return Nr || (Nr = 1, (function(r, d) {
|
|
1700
|
-
(function(
|
|
1702
|
+
(function(t, e) {
|
|
1701
1703
|
r.exports = e(U());
|
|
1702
|
-
})(Dt, function(
|
|
1704
|
+
})(Dt, function(t) {
|
|
1703
1705
|
return (function(e) {
|
|
1704
|
-
var u =
|
|
1706
|
+
var u = t, v = u.lib, g = v.WordArray, p = v.Hasher, C = u.algo, x = [], a = [];
|
|
1705
1707
|
(function() {
|
|
1706
1708
|
function l(E) {
|
|
1707
1709
|
for (var o = e.sqrt(E), i = 2; i <= o; i++)
|
|
@@ -1713,11 +1715,11 @@ function Cr() {
|
|
|
1713
1715
|
return (E - (E | 0)) * 4294967296 | 0;
|
|
1714
1716
|
}
|
|
1715
1717
|
for (var h = 2, f = 0; f < 64; )
|
|
1716
|
-
l(h) && (f < 8 && (
|
|
1718
|
+
l(h) && (f < 8 && (x[f] = c(e.pow(h, 1 / 2))), a[f] = c(e.pow(h, 1 / 3)), f++), h++;
|
|
1717
1719
|
})();
|
|
1718
1720
|
var A = [], n = C.SHA256 = p.extend({
|
|
1719
1721
|
_doReset: function() {
|
|
1720
|
-
this._hash = new g.init(
|
|
1722
|
+
this._hash = new g.init(x.slice(0));
|
|
1721
1723
|
},
|
|
1722
1724
|
_doProcessBlock: function(l, c) {
|
|
1723
1725
|
for (var h = this._hash.words, f = h[0], E = h[1], o = h[2], i = h[3], s = h[4], F = h[5], D = h[6], _ = h[7], w = 0; w < 64; w++) {
|
|
@@ -1727,7 +1729,7 @@ function Cr() {
|
|
|
1727
1729
|
var z = A[w - 15], B = (z << 25 | z >>> 7) ^ (z << 14 | z >>> 18) ^ z >>> 3, m = A[w - 2], P = (m << 15 | m >>> 17) ^ (m << 13 | m >>> 19) ^ m >>> 10;
|
|
1728
1730
|
A[w] = B + A[w - 7] + P + A[w - 16];
|
|
1729
1731
|
}
|
|
1730
|
-
var H = s & F ^ ~s & D,
|
|
1732
|
+
var H = s & F ^ ~s & D, L = f & E ^ f & o ^ E & o, q = (f << 30 | f >>> 2) ^ (f << 19 | f >>> 13) ^ (f << 10 | f >>> 22), y = (s << 26 | s >>> 6) ^ (s << 21 | s >>> 11) ^ (s << 7 | s >>> 25), $ = _ + y + H + a[w] + A[w], W = q + L;
|
|
1731
1733
|
_ = D, D = F, F = s, s = i + $ | 0, i = o, o = E, E = f, f = $ + W | 0;
|
|
1732
1734
|
}
|
|
1733
1735
|
h[0] = h[0] + f | 0, h[1] = h[1] + E | 0, h[2] = h[2] + o | 0, h[3] = h[3] + i | 0, h[4] = h[4] + s | 0, h[5] = h[5] + F | 0, h[6] = h[6] + D | 0, h[7] = h[7] + _ | 0;
|
|
@@ -1742,18 +1744,18 @@ function Cr() {
|
|
|
1742
1744
|
}
|
|
1743
1745
|
});
|
|
1744
1746
|
u.SHA256 = p._createHelper(n), u.HmacSHA256 = p._createHmacHelper(n);
|
|
1745
|
-
})(Math),
|
|
1747
|
+
})(Math), t.SHA256;
|
|
1746
1748
|
});
|
|
1747
1749
|
})(R0)), R0.exports;
|
|
1748
1750
|
}
|
|
1749
1751
|
var $0 = { exports: {} }, gt = $0.exports, Ur;
|
|
1750
1752
|
function bt() {
|
|
1751
1753
|
return Ur || (Ur = 1, (function(r, d) {
|
|
1752
|
-
(function(
|
|
1754
|
+
(function(t, e, u) {
|
|
1753
1755
|
r.exports = e(U(), Cr());
|
|
1754
|
-
})(gt, function(
|
|
1756
|
+
})(gt, function(t) {
|
|
1755
1757
|
return (function() {
|
|
1756
|
-
var e =
|
|
1758
|
+
var e = t, u = e.lib, v = u.WordArray, g = e.algo, p = g.SHA256, C = g.SHA224 = p.extend({
|
|
1757
1759
|
_doReset: function() {
|
|
1758
1760
|
this._hash = new v.init([
|
|
1759
1761
|
3238371032,
|
|
@@ -1767,23 +1769,23 @@ function bt() {
|
|
|
1767
1769
|
]);
|
|
1768
1770
|
},
|
|
1769
1771
|
_doFinalize: function() {
|
|
1770
|
-
var
|
|
1771
|
-
return
|
|
1772
|
+
var x = p._doFinalize.call(this);
|
|
1773
|
+
return x.sigBytes -= 4, x;
|
|
1772
1774
|
}
|
|
1773
1775
|
});
|
|
1774
1776
|
e.SHA224 = p._createHelper(C), e.HmacSHA224 = p._createHmacHelper(C);
|
|
1775
|
-
})(),
|
|
1777
|
+
})(), t.SHA224;
|
|
1776
1778
|
});
|
|
1777
1779
|
})($0)), $0.exports;
|
|
1778
1780
|
}
|
|
1779
1781
|
var z0 = { exports: {} }, mt = z0.exports, jr;
|
|
1780
1782
|
function me() {
|
|
1781
1783
|
return jr || (jr = 1, (function(r, d) {
|
|
1782
|
-
(function(
|
|
1784
|
+
(function(t, e, u) {
|
|
1783
1785
|
r.exports = e(U(), sr());
|
|
1784
|
-
})(mt, function(
|
|
1786
|
+
})(mt, function(t) {
|
|
1785
1787
|
return (function() {
|
|
1786
|
-
var e =
|
|
1788
|
+
var e = t, u = e.lib, v = u.Hasher, g = e.x64, p = g.Word, C = g.WordArray, x = e.algo;
|
|
1787
1789
|
function a() {
|
|
1788
1790
|
return p.create.apply(p, arguments);
|
|
1789
1791
|
}
|
|
@@ -1873,7 +1875,7 @@ function me() {
|
|
|
1873
1875
|
for (var c = 0; c < 80; c++)
|
|
1874
1876
|
n[c] = a();
|
|
1875
1877
|
})();
|
|
1876
|
-
var l =
|
|
1878
|
+
var l = x.SHA512 = v.extend({
|
|
1877
1879
|
_doReset: function() {
|
|
1878
1880
|
this._hash = new C.init([
|
|
1879
1881
|
new p.init(1779033703, 4089235720),
|
|
@@ -1887,18 +1889,18 @@ function me() {
|
|
|
1887
1889
|
]);
|
|
1888
1890
|
},
|
|
1889
1891
|
_doProcessBlock: function(c, h) {
|
|
1890
|
-
for (var f = this._hash.words, E = f[0], o = f[1], i = f[2], s = f[3], F = f[4], D = f[5], _ = f[6], w = f[7], z = E.high, B = E.low, m = o.high, P = o.low, H = i.high,
|
|
1891
|
-
var
|
|
1892
|
+
for (var f = this._hash.words, E = f[0], o = f[1], i = f[2], s = f[3], F = f[4], D = f[5], _ = f[6], w = f[7], z = E.high, B = E.low, m = o.high, P = o.low, H = i.high, L = i.low, q = s.high, y = s.low, $ = F.high, W = F.low, O = D.high, I = D.low, b = _.high, k = _.low, R = w.high, S = w.low, N = z, T = B, j = m, M = P, Y = H, x0 = L, cr = q, u0 = y, Q = $, X = W, A0 = O, l0 = I, F0 = b, d0 = k, fr = R, h0 = S, V = 0; V < 80; V++) {
|
|
1893
|
+
var Z, r0, D0 = n[V];
|
|
1892
1894
|
if (V < 16)
|
|
1893
|
-
r0 = D0.high = c[h + V * 2] | 0,
|
|
1895
|
+
r0 = D0.high = c[h + V * 2] | 0, Z = D0.low = c[h + V * 2 + 1] | 0;
|
|
1894
1896
|
else {
|
|
1895
1897
|
var Ar = n[V - 15], o0 = Ar.high, v0 = Ar.low, Se = (o0 >>> 1 | v0 << 31) ^ (o0 >>> 8 | v0 << 24) ^ o0 >>> 7, Fr = (v0 >>> 1 | o0 << 31) ^ (v0 >>> 8 | o0 << 24) ^ (v0 >>> 7 | o0 << 25), Dr = n[V - 2], i0 = Dr.high, p0 = Dr.low, He = (i0 >>> 19 | p0 << 13) ^ (i0 << 3 | p0 >>> 29) ^ i0 >>> 6, gr = (p0 >>> 19 | i0 << 13) ^ (p0 << 3 | i0 >>> 29) ^ (p0 >>> 6 | i0 << 26), br = n[V - 7], Pe = br.high, Re = br.low, mr = n[V - 16], $e = mr.high, _r = mr.low;
|
|
1896
|
-
|
|
1898
|
+
Z = Fr + Re, r0 = Se + Pe + (Z >>> 0 < Fr >>> 0 ? 1 : 0), Z = Z + gr, r0 = r0 + He + (Z >>> 0 < gr >>> 0 ? 1 : 0), Z = Z + _r, r0 = r0 + $e + (Z >>> 0 < _r >>> 0 ? 1 : 0), D0.high = r0, D0.low = Z;
|
|
1897
1899
|
}
|
|
1898
|
-
var ze = Q & A0 ^ ~Q & F0, yr = X & l0 ^ ~X & d0, Ie = N & j ^ N &
|
|
1899
|
-
fr = F0, h0 = d0, F0 = A0, d0 = l0, A0 = Q, l0 = X, X = u0 + G | 0, Q = cr + e0 + (X >>> 0 < u0 >>> 0 ? 1 : 0) | 0, cr =
|
|
1900
|
+
var ze = Q & A0 ^ ~Q & F0, yr = X & l0 ^ ~X & d0, Ie = N & j ^ N & Y ^ j & Y, We = T & M ^ T & x0 ^ M & x0, Oe = (N >>> 28 | T << 4) ^ (N << 30 | T >>> 2) ^ (N << 25 | T >>> 7), wr = (T >>> 28 | N << 4) ^ (T << 30 | N >>> 2) ^ (T << 25 | N >>> 7), Le = (Q >>> 14 | X << 18) ^ (Q >>> 18 | X << 14) ^ (Q << 23 | X >>> 9), qe = (X >>> 14 | Q << 18) ^ (X >>> 18 | Q << 14) ^ (X << 23 | Q >>> 9), kr = A[V], Te = kr.high, Sr = kr.low, G = h0 + qe, e0 = fr + Le + (G >>> 0 < h0 >>> 0 ? 1 : 0), G = G + yr, e0 = e0 + ze + (G >>> 0 < yr >>> 0 ? 1 : 0), G = G + Sr, e0 = e0 + Te + (G >>> 0 < Sr >>> 0 ? 1 : 0), G = G + Z, e0 = e0 + r0 + (G >>> 0 < Z >>> 0 ? 1 : 0), Hr = wr + We, Me = Oe + Ie + (Hr >>> 0 < wr >>> 0 ? 1 : 0);
|
|
1901
|
+
fr = F0, h0 = d0, F0 = A0, d0 = l0, A0 = Q, l0 = X, X = u0 + G | 0, Q = cr + e0 + (X >>> 0 < u0 >>> 0 ? 1 : 0) | 0, cr = Y, u0 = x0, Y = j, x0 = M, j = N, M = T, T = G + Hr | 0, N = e0 + Me + (T >>> 0 < G >>> 0 ? 1 : 0) | 0;
|
|
1900
1902
|
}
|
|
1901
|
-
B = E.low = B + T, E.high = z + N + (B >>> 0 < T >>> 0 ? 1 : 0), P = o.low = P + M, o.high = m + j + (P >>> 0 < M >>> 0 ? 1 : 0),
|
|
1903
|
+
B = E.low = B + T, E.high = z + N + (B >>> 0 < T >>> 0 ? 1 : 0), P = o.low = P + M, o.high = m + j + (P >>> 0 < M >>> 0 ? 1 : 0), L = i.low = L + x0, i.high = H + Y + (L >>> 0 < x0 >>> 0 ? 1 : 0), y = s.low = y + u0, s.high = q + cr + (y >>> 0 < u0 >>> 0 ? 1 : 0), W = F.low = W + X, F.high = $ + Q + (W >>> 0 < X >>> 0 ? 1 : 0), I = D.low = I + l0, D.high = O + A0 + (I >>> 0 < l0 >>> 0 ? 1 : 0), k = _.low = k + d0, _.high = b + F0 + (k >>> 0 < d0 >>> 0 ? 1 : 0), S = w.low = S + h0, w.high = R + fr + (S >>> 0 < h0 >>> 0 ? 1 : 0);
|
|
1902
1904
|
},
|
|
1903
1905
|
_doFinalize: function() {
|
|
1904
1906
|
var c = this._data, h = c.words, f = this._nDataBytes * 8, E = c.sigBytes * 8;
|
|
@@ -1913,18 +1915,18 @@ function me() {
|
|
|
1913
1915
|
blockSize: 1024 / 32
|
|
1914
1916
|
});
|
|
1915
1917
|
e.SHA512 = v._createHelper(l), e.HmacSHA512 = v._createHmacHelper(l);
|
|
1916
|
-
})(),
|
|
1918
|
+
})(), t.SHA512;
|
|
1917
1919
|
});
|
|
1918
1920
|
})(z0)), z0.exports;
|
|
1919
1921
|
}
|
|
1920
1922
|
var I0 = { exports: {} }, _t = I0.exports, Kr;
|
|
1921
1923
|
function yt() {
|
|
1922
1924
|
return Kr || (Kr = 1, (function(r, d) {
|
|
1923
|
-
(function(
|
|
1925
|
+
(function(t, e, u) {
|
|
1924
1926
|
r.exports = e(U(), sr(), me());
|
|
1925
|
-
})(_t, function(
|
|
1927
|
+
})(_t, function(t) {
|
|
1926
1928
|
return (function() {
|
|
1927
|
-
var e =
|
|
1929
|
+
var e = t, u = e.x64, v = u.Word, g = u.WordArray, p = e.algo, C = p.SHA512, x = p.SHA384 = C.extend({
|
|
1928
1930
|
_doReset: function() {
|
|
1929
1931
|
this._hash = new g.init([
|
|
1930
1932
|
new v.init(3418070365, 3238371032),
|
|
@@ -1942,19 +1944,19 @@ function yt() {
|
|
|
1942
1944
|
return a.sigBytes -= 16, a;
|
|
1943
1945
|
}
|
|
1944
1946
|
});
|
|
1945
|
-
e.SHA384 = C._createHelper(
|
|
1946
|
-
})(),
|
|
1947
|
+
e.SHA384 = C._createHelper(x), e.HmacSHA384 = C._createHmacHelper(x);
|
|
1948
|
+
})(), t.SHA384;
|
|
1947
1949
|
});
|
|
1948
1950
|
})(I0)), I0.exports;
|
|
1949
1951
|
}
|
|
1950
1952
|
var W0 = { exports: {} }, wt = W0.exports, Xr;
|
|
1951
1953
|
function kt() {
|
|
1952
1954
|
return Xr || (Xr = 1, (function(r, d) {
|
|
1953
|
-
(function(
|
|
1955
|
+
(function(t, e, u) {
|
|
1954
1956
|
r.exports = e(U(), sr());
|
|
1955
|
-
})(wt, function(
|
|
1957
|
+
})(wt, function(t) {
|
|
1956
1958
|
return (function(e) {
|
|
1957
|
-
var u =
|
|
1959
|
+
var u = t, v = u.lib, g = v.WordArray, p = v.Hasher, C = u.x64, x = C.Word, a = u.algo, A = [], n = [], l = [];
|
|
1958
1960
|
(function() {
|
|
1959
1961
|
for (var f = 1, E = 0, o = 0; o < 24; o++) {
|
|
1960
1962
|
A[f + 5 * E] = (o + 1) * (o + 2) / 2 % 64;
|
|
@@ -1972,13 +1974,13 @@ function kt() {
|
|
|
1972
1974
|
}
|
|
1973
1975
|
F & 128 ? F = F << 1 ^ 113 : F <<= 1;
|
|
1974
1976
|
}
|
|
1975
|
-
l[D] =
|
|
1977
|
+
l[D] = x.create(_, w);
|
|
1976
1978
|
}
|
|
1977
1979
|
})();
|
|
1978
1980
|
var c = [];
|
|
1979
1981
|
(function() {
|
|
1980
1982
|
for (var f = 0; f < 25; f++)
|
|
1981
|
-
c[f] =
|
|
1983
|
+
c[f] = x.create();
|
|
1982
1984
|
})();
|
|
1983
1985
|
var h = a.SHA3 = p.extend({
|
|
1984
1986
|
/**
|
|
@@ -1994,7 +1996,7 @@ function kt() {
|
|
|
1994
1996
|
}),
|
|
1995
1997
|
_doReset: function() {
|
|
1996
1998
|
for (var f = this._state = [], E = 0; E < 25; E++)
|
|
1997
|
-
f[E] = new
|
|
1999
|
+
f[E] = new x.init();
|
|
1998
2000
|
this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32;
|
|
1999
2001
|
},
|
|
2000
2002
|
_doProcessBlock: function(f, E) {
|
|
@@ -2014,7 +2016,7 @@ function kt() {
|
|
|
2014
2016
|
H.high = B, H.low = m;
|
|
2015
2017
|
}
|
|
2016
2018
|
for (var z = 0; z < 5; z++)
|
|
2017
|
-
for (var
|
|
2019
|
+
for (var L = c[(z + 4) % 5], q = c[(z + 1) % 5], y = q.high, $ = q.low, B = L.high ^ (y << 1 | $ >>> 31), m = L.low ^ ($ << 1 | y >>> 31), P = 0; P < 5; P++) {
|
|
2018
2020
|
var _ = o[z + 5 * P];
|
|
2019
2021
|
_.high ^= B, _.low ^= m;
|
|
2020
2022
|
}
|
|
@@ -2053,18 +2055,18 @@ function kt() {
|
|
|
2053
2055
|
}
|
|
2054
2056
|
});
|
|
2055
2057
|
u.SHA3 = p._createHelper(h), u.HmacSHA3 = p._createHmacHelper(h);
|
|
2056
|
-
})(Math),
|
|
2058
|
+
})(Math), t.SHA3;
|
|
2057
2059
|
});
|
|
2058
2060
|
})(W0)), W0.exports;
|
|
2059
2061
|
}
|
|
2060
2062
|
var O0 = { exports: {} }, St = O0.exports, Gr;
|
|
2061
2063
|
function Ht() {
|
|
2062
2064
|
return Gr || (Gr = 1, (function(r, d) {
|
|
2063
|
-
(function(
|
|
2065
|
+
(function(t, e) {
|
|
2064
2066
|
r.exports = e(U());
|
|
2065
|
-
})(St, function(
|
|
2067
|
+
})(St, function(t) {
|
|
2066
2068
|
return (function(e) {
|
|
2067
|
-
var u =
|
|
2069
|
+
var u = t, v = u.lib, g = v.WordArray, p = v.Hasher, C = u.algo, x = g.create([
|
|
2068
2070
|
0,
|
|
2069
2071
|
1,
|
|
2070
2072
|
2,
|
|
@@ -2397,10 +2399,10 @@ function Ht() {
|
|
|
2397
2399
|
var z = _ + w, B = D[z];
|
|
2398
2400
|
D[z] = (B << 8 | B >>> 24) & 16711935 | (B << 24 | B >>> 8) & 4278255360;
|
|
2399
2401
|
}
|
|
2400
|
-
var m = this._hash.words, P = l.words, H = c.words,
|
|
2402
|
+
var m = this._hash.words, P = l.words, H = c.words, L = x.words, q = a.words, y = A.words, $ = n.words, W, O, I, b, k, R, S, N, T, j;
|
|
2401
2403
|
R = W = m[0], S = O = m[1], N = I = m[2], T = b = m[3], j = k = m[4];
|
|
2402
2404
|
for (var M, w = 0; w < 80; w += 1)
|
|
2403
|
-
M = W + D[_ +
|
|
2405
|
+
M = W + D[_ + L[w]] | 0, w < 16 ? M += f(O, I, b) + P[0] : w < 32 ? M += E(O, I, b) + P[1] : w < 48 ? M += o(O, I, b) + P[2] : w < 64 ? M += i(O, I, b) + P[3] : M += s(O, I, b) + P[4], M = M | 0, M = F(M, y[w]), M = M + k | 0, W = k, k = b, b = F(I, 10), I = O, O = M, M = R + D[_ + q[w]] | 0, w < 16 ? M += s(S, N, T) + H[0] : w < 32 ? M += i(S, N, T) + H[1] : w < 48 ? M += o(S, N, T) + H[2] : w < 64 ? M += E(S, N, T) + H[3] : M += f(S, N, T) + H[4], M = M | 0, M = F(M, $[w]), M = M + j | 0, R = j, j = T, T = F(N, 10), N = S, S = M;
|
|
2404
2406
|
M = m[1] + I + T | 0, m[1] = m[2] + b + j | 0, m[2] = m[3] + k + R | 0, m[3] = m[4] + W + S | 0, m[4] = m[0] + O + N | 0, m[0] = M;
|
|
2405
2407
|
},
|
|
2406
2408
|
_doFinalize: function() {
|
|
@@ -2436,18 +2438,18 @@ function Ht() {
|
|
|
2436
2438
|
return D << _ | D >>> 32 - _;
|
|
2437
2439
|
}
|
|
2438
2440
|
u.RIPEMD160 = p._createHelper(h), u.HmacRIPEMD160 = p._createHmacHelper(h);
|
|
2439
|
-
})(),
|
|
2441
|
+
})(), t.RIPEMD160;
|
|
2440
2442
|
});
|
|
2441
2443
|
})(O0)), O0.exports;
|
|
2442
2444
|
}
|
|
2443
|
-
var
|
|
2445
|
+
var L0 = { exports: {} }, Pt = L0.exports, Yr;
|
|
2444
2446
|
function Er() {
|
|
2445
|
-
return
|
|
2446
|
-
(function(
|
|
2447
|
+
return Yr || (Yr = 1, (function(r, d) {
|
|
2448
|
+
(function(t, e) {
|
|
2447
2449
|
r.exports = e(U());
|
|
2448
|
-
})(Pt, function(
|
|
2450
|
+
})(Pt, function(t) {
|
|
2449
2451
|
(function() {
|
|
2450
|
-
var e =
|
|
2452
|
+
var e = t, u = e.lib, v = u.Base, g = e.enc, p = g.Utf8, C = e.algo;
|
|
2451
2453
|
C.HMAC = v.extend({
|
|
2452
2454
|
/**
|
|
2453
2455
|
* Initializes a newly created HMAC.
|
|
@@ -2459,10 +2461,10 @@ function Er() {
|
|
|
2459
2461
|
*
|
|
2460
2462
|
* var hmacHasher = CryptoJS.algo.HMAC.create(CryptoJS.algo.SHA256, key);
|
|
2461
2463
|
*/
|
|
2462
|
-
init: function(
|
|
2463
|
-
|
|
2464
|
-
var A =
|
|
2465
|
-
a.sigBytes > n && (a =
|
|
2464
|
+
init: function(x, a) {
|
|
2465
|
+
x = this._hasher = new x.init(), typeof a == "string" && (a = p.parse(a));
|
|
2466
|
+
var A = x.blockSize, n = A * 4;
|
|
2467
|
+
a.sigBytes > n && (a = x.finalize(a)), a.clamp();
|
|
2466
2468
|
for (var l = this._oKey = a.clone(), c = this._iKey = a.clone(), h = l.words, f = c.words, E = 0; E < A; E++)
|
|
2467
2469
|
h[E] ^= 1549556828, f[E] ^= 909522486;
|
|
2468
2470
|
l.sigBytes = c.sigBytes = n, this.reset();
|
|
@@ -2475,8 +2477,8 @@ function Er() {
|
|
|
2475
2477
|
* hmacHasher.reset();
|
|
2476
2478
|
*/
|
|
2477
2479
|
reset: function() {
|
|
2478
|
-
var
|
|
2479
|
-
|
|
2480
|
+
var x = this._hasher;
|
|
2481
|
+
x.reset(), x.update(this._iKey);
|
|
2480
2482
|
},
|
|
2481
2483
|
/**
|
|
2482
2484
|
* Updates this HMAC with a message.
|
|
@@ -2490,8 +2492,8 @@ function Er() {
|
|
|
2490
2492
|
* hmacHasher.update('message');
|
|
2491
2493
|
* hmacHasher.update(wordArray);
|
|
2492
2494
|
*/
|
|
2493
|
-
update: function(
|
|
2494
|
-
return this._hasher.update(
|
|
2495
|
+
update: function(x) {
|
|
2496
|
+
return this._hasher.update(x), this;
|
|
2495
2497
|
},
|
|
2496
2498
|
/**
|
|
2497
2499
|
* Finalizes the HMAC computation.
|
|
@@ -2507,8 +2509,8 @@ function Er() {
|
|
|
2507
2509
|
* var hmac = hmacHasher.finalize('message');
|
|
2508
2510
|
* var hmac = hmacHasher.finalize(wordArray);
|
|
2509
2511
|
*/
|
|
2510
|
-
finalize: function(
|
|
2511
|
-
var a = this._hasher, A = a.finalize(
|
|
2512
|
+
finalize: function(x) {
|
|
2513
|
+
var a = this._hasher, A = a.finalize(x);
|
|
2512
2514
|
a.reset();
|
|
2513
2515
|
var n = a.finalize(this._oKey.clone().concat(A));
|
|
2514
2516
|
return n;
|
|
@@ -2516,16 +2518,16 @@ function Er() {
|
|
|
2516
2518
|
});
|
|
2517
2519
|
})();
|
|
2518
2520
|
});
|
|
2519
|
-
})(
|
|
2521
|
+
})(L0)), L0.exports;
|
|
2520
2522
|
}
|
|
2521
|
-
var
|
|
2523
|
+
var q0 = { exports: {} }, Rt = q0.exports, Zr;
|
|
2522
2524
|
function $t() {
|
|
2523
|
-
return
|
|
2524
|
-
(function(
|
|
2525
|
+
return Zr || (Zr = 1, (function(r, d) {
|
|
2526
|
+
(function(t, e, u) {
|
|
2525
2527
|
r.exports = e(U(), Cr(), Er());
|
|
2526
|
-
})(Rt, function(
|
|
2528
|
+
})(Rt, function(t) {
|
|
2527
2529
|
return (function() {
|
|
2528
|
-
var e =
|
|
2530
|
+
var e = t, u = e.lib, v = u.Base, g = u.WordArray, p = e.algo, C = p.SHA256, x = p.HMAC, a = p.PBKDF2 = v.extend({
|
|
2529
2531
|
/**
|
|
2530
2532
|
* Configuration options.
|
|
2531
2533
|
*
|
|
@@ -2565,7 +2567,7 @@ function $t() {
|
|
|
2565
2567
|
* var key = kdf.compute(password, salt);
|
|
2566
2568
|
*/
|
|
2567
2569
|
compute: function(A, n) {
|
|
2568
|
-
for (var l = this.cfg, c =
|
|
2570
|
+
for (var l = this.cfg, c = x.create(l.hasher, A), h = g.create(), f = g.create([1]), E = h.words, o = f.words, i = l.keySize, s = l.iterations; E.length < i; ) {
|
|
2569
2571
|
var F = c.update(n).finalize(f);
|
|
2570
2572
|
c.reset();
|
|
2571
2573
|
for (var D = F.words, _ = D.length, w = F, z = 1; z < s; z++) {
|
|
@@ -2581,18 +2583,18 @@ function $t() {
|
|
|
2581
2583
|
e.PBKDF2 = function(A, n, l) {
|
|
2582
2584
|
return a.create(l).compute(A, n);
|
|
2583
2585
|
};
|
|
2584
|
-
})(),
|
|
2586
|
+
})(), t.PBKDF2;
|
|
2585
2587
|
});
|
|
2586
|
-
})(
|
|
2588
|
+
})(q0)), q0.exports;
|
|
2587
2589
|
}
|
|
2588
2590
|
var T0 = { exports: {} }, zt = T0.exports, Qr;
|
|
2589
2591
|
function t0() {
|
|
2590
2592
|
return Qr || (Qr = 1, (function(r, d) {
|
|
2591
|
-
(function(
|
|
2593
|
+
(function(t, e, u) {
|
|
2592
2594
|
r.exports = e(U(), be(), Er());
|
|
2593
|
-
})(zt, function(
|
|
2595
|
+
})(zt, function(t) {
|
|
2594
2596
|
return (function() {
|
|
2595
|
-
var e =
|
|
2597
|
+
var e = t, u = e.lib, v = u.Base, g = u.WordArray, p = e.algo, C = p.MD5, x = p.EvpKDF = v.extend({
|
|
2596
2598
|
/**
|
|
2597
2599
|
* Configuration options.
|
|
2598
2600
|
*
|
|
@@ -2642,22 +2644,22 @@ function t0() {
|
|
|
2642
2644
|
}
|
|
2643
2645
|
});
|
|
2644
2646
|
e.EvpKDF = function(a, A, n) {
|
|
2645
|
-
return
|
|
2647
|
+
return x.create(n).compute(a, A);
|
|
2646
2648
|
};
|
|
2647
|
-
})(),
|
|
2649
|
+
})(), t.EvpKDF;
|
|
2648
2650
|
});
|
|
2649
2651
|
})(T0)), T0.exports;
|
|
2650
2652
|
}
|
|
2651
2653
|
var M0 = { exports: {} }, It = M0.exports, Vr;
|
|
2652
2654
|
function K() {
|
|
2653
2655
|
return Vr || (Vr = 1, (function(r, d) {
|
|
2654
|
-
(function(
|
|
2656
|
+
(function(t, e, u) {
|
|
2655
2657
|
r.exports = e(U(), t0());
|
|
2656
|
-
})(It, function(
|
|
2657
|
-
|
|
2658
|
-
var u =
|
|
2659
|
-
|
|
2660
|
-
var a =
|
|
2658
|
+
})(It, function(t) {
|
|
2659
|
+
t.lib.Cipher || (function(e) {
|
|
2660
|
+
var u = t, v = u.lib, g = v.Base, p = v.WordArray, C = v.BufferedBlockAlgorithm, x = u.enc;
|
|
2661
|
+
x.Utf8;
|
|
2662
|
+
var a = x.Base64, A = u.algo, n = A.EvpKDF, l = v.Cipher = C.extend({
|
|
2661
2663
|
/**
|
|
2662
2664
|
* Configuration options.
|
|
2663
2665
|
*
|
|
@@ -2779,11 +2781,11 @@ function K() {
|
|
|
2779
2781
|
}
|
|
2780
2782
|
return function(m) {
|
|
2781
2783
|
return {
|
|
2782
|
-
encrypt: function(P, H,
|
|
2783
|
-
return B(H).encrypt(m, P, H,
|
|
2784
|
+
encrypt: function(P, H, L) {
|
|
2785
|
+
return B(H).encrypt(m, P, H, L);
|
|
2784
2786
|
},
|
|
2785
|
-
decrypt: function(P, H,
|
|
2786
|
-
return B(H).decrypt(m, P, H,
|
|
2787
|
+
decrypt: function(P, H, L) {
|
|
2788
|
+
return B(H).decrypt(m, P, H, L);
|
|
2787
2789
|
}
|
|
2788
2790
|
};
|
|
2789
2791
|
};
|
|
@@ -2854,8 +2856,8 @@ function K() {
|
|
|
2854
2856
|
* mode.processBlock(data.words, offset);
|
|
2855
2857
|
*/
|
|
2856
2858
|
processBlock: function(P, H) {
|
|
2857
|
-
var
|
|
2858
|
-
m.call(this, P, H,
|
|
2859
|
+
var L = this._cipher, q = L.blockSize;
|
|
2860
|
+
m.call(this, P, H, q), L.encryptBlock(P, H), this._prevBlock = P.slice(H, H + q);
|
|
2859
2861
|
}
|
|
2860
2862
|
}), B.Decryptor = B.extend({
|
|
2861
2863
|
/**
|
|
@@ -2869,15 +2871,15 @@ function K() {
|
|
|
2869
2871
|
* mode.processBlock(data.words, offset);
|
|
2870
2872
|
*/
|
|
2871
2873
|
processBlock: function(P, H) {
|
|
2872
|
-
var
|
|
2873
|
-
|
|
2874
|
+
var L = this._cipher, q = L.blockSize, y = P.slice(H, H + q);
|
|
2875
|
+
L.decryptBlock(P, H), m.call(this, P, H, q), this._prevBlock = y;
|
|
2874
2876
|
}
|
|
2875
2877
|
});
|
|
2876
|
-
function m(P, H,
|
|
2877
|
-
var
|
|
2878
|
-
y ? (
|
|
2879
|
-
for (var $ = 0; $ <
|
|
2880
|
-
P[H + $] ^=
|
|
2878
|
+
function m(P, H, L) {
|
|
2879
|
+
var q, y = this._iv;
|
|
2880
|
+
y ? (q = y, this._iv = e) : q = this._prevBlock;
|
|
2881
|
+
for (var $ = 0; $ < L; $++)
|
|
2882
|
+
P[H + $] ^= q[$];
|
|
2881
2883
|
}
|
|
2882
2884
|
return B;
|
|
2883
2885
|
})(), E = u.pad = {}, o = E.Pkcs7 = {
|
|
@@ -2894,9 +2896,9 @@ function K() {
|
|
|
2894
2896
|
* CryptoJS.pad.Pkcs7.pad(wordArray, 4);
|
|
2895
2897
|
*/
|
|
2896
2898
|
pad: function(B, m) {
|
|
2897
|
-
for (var P = m * 4, H = P - B.sigBytes % P,
|
|
2898
|
-
|
|
2899
|
-
var $ = p.create(
|
|
2899
|
+
for (var P = m * 4, H = P - B.sigBytes % P, L = H << 24 | H << 16 | H << 8 | H, q = [], y = 0; y < H; y += 4)
|
|
2900
|
+
q.push(L);
|
|
2901
|
+
var $ = p.create(q, H);
|
|
2900
2902
|
B.concat($);
|
|
2901
2903
|
},
|
|
2902
2904
|
/**
|
|
@@ -3046,9 +3048,9 @@ function K() {
|
|
|
3046
3048
|
*/
|
|
3047
3049
|
encrypt: function(B, m, P, H) {
|
|
3048
3050
|
H = this.cfg.extend(H);
|
|
3049
|
-
var
|
|
3051
|
+
var L = B.createEncryptor(P, H), q = L.finalize(m), y = L.cfg;
|
|
3050
3052
|
return i.create({
|
|
3051
|
-
ciphertext:
|
|
3053
|
+
ciphertext: q,
|
|
3052
3054
|
key: P,
|
|
3053
3055
|
iv: y.iv,
|
|
3054
3056
|
algorithm: B,
|
|
@@ -3077,8 +3079,8 @@ function K() {
|
|
|
3077
3079
|
*/
|
|
3078
3080
|
decrypt: function(B, m, P, H) {
|
|
3079
3081
|
H = this.cfg.extend(H), m = this._parse(m, H.format);
|
|
3080
|
-
var
|
|
3081
|
-
return
|
|
3082
|
+
var L = B.createDecryptor(P, H).finalize(m.ciphertext);
|
|
3083
|
+
return L;
|
|
3082
3084
|
},
|
|
3083
3085
|
/**
|
|
3084
3086
|
* Converts serialized ciphertext to CipherParams,
|
|
@@ -3116,13 +3118,13 @@ function K() {
|
|
|
3116
3118
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);
|
|
3117
3119
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
|
|
3118
3120
|
*/
|
|
3119
|
-
execute: function(B, m, P, H,
|
|
3120
|
-
if (H || (H = p.random(64 / 8)),
|
|
3121
|
-
var
|
|
3121
|
+
execute: function(B, m, P, H, L) {
|
|
3122
|
+
if (H || (H = p.random(64 / 8)), L)
|
|
3123
|
+
var q = n.create({ keySize: m + P, hasher: L }).compute(B, H);
|
|
3122
3124
|
else
|
|
3123
|
-
var
|
|
3124
|
-
var y = p.create(
|
|
3125
|
-
return
|
|
3125
|
+
var q = n.create({ keySize: m + P }).compute(B, H);
|
|
3126
|
+
var y = p.create(q.words.slice(m), P * 4);
|
|
3127
|
+
return q.sigBytes = m * 4, i.create({ key: q, iv: y, salt: H });
|
|
3126
3128
|
}
|
|
3127
3129
|
}, z = v.PasswordBasedCipher = D.extend({
|
|
3128
3130
|
/**
|
|
@@ -3152,10 +3154,10 @@ function K() {
|
|
|
3152
3154
|
*/
|
|
3153
3155
|
encrypt: function(B, m, P, H) {
|
|
3154
3156
|
H = this.cfg.extend(H);
|
|
3155
|
-
var
|
|
3156
|
-
H.iv =
|
|
3157
|
-
var
|
|
3158
|
-
return
|
|
3157
|
+
var L = H.kdf.execute(P, B.keySize, B.ivSize, H.salt, H.hasher);
|
|
3158
|
+
H.iv = L.iv;
|
|
3159
|
+
var q = D.encrypt.call(this, B, m, L.key, H);
|
|
3160
|
+
return q.mixIn(L), q;
|
|
3159
3161
|
},
|
|
3160
3162
|
/**
|
|
3161
3163
|
* Decrypts serialized ciphertext using a password.
|
|
@@ -3176,10 +3178,10 @@ function K() {
|
|
|
3176
3178
|
*/
|
|
3177
3179
|
decrypt: function(B, m, P, H) {
|
|
3178
3180
|
H = this.cfg.extend(H), m = this._parse(m, H.format);
|
|
3179
|
-
var
|
|
3180
|
-
H.iv =
|
|
3181
|
-
var
|
|
3182
|
-
return
|
|
3181
|
+
var L = H.kdf.execute(P, B.keySize, B.ivSize, m.salt, H.hasher);
|
|
3182
|
+
H.iv = L.iv;
|
|
3183
|
+
var q = D.decrypt.call(this, B, m, L.key, H);
|
|
3184
|
+
return q;
|
|
3183
3185
|
}
|
|
3184
3186
|
});
|
|
3185
3187
|
})();
|
|
@@ -3189,11 +3191,11 @@ function K() {
|
|
|
3189
3191
|
var N0 = { exports: {} }, Wt = N0.exports, Jr;
|
|
3190
3192
|
function Ot() {
|
|
3191
3193
|
return Jr || (Jr = 1, (function(r, d) {
|
|
3192
|
-
(function(
|
|
3194
|
+
(function(t, e, u) {
|
|
3193
3195
|
r.exports = e(U(), K());
|
|
3194
|
-
})(Wt, function(
|
|
3195
|
-
return
|
|
3196
|
-
var e =
|
|
3196
|
+
})(Wt, function(t) {
|
|
3197
|
+
return t.mode.CFB = (function() {
|
|
3198
|
+
var e = t.lib.BlockCipherMode.extend();
|
|
3197
3199
|
e.Encryptor = e.extend({
|
|
3198
3200
|
processBlock: function(v, g) {
|
|
3199
3201
|
var p = this._cipher, C = p.blockSize;
|
|
@@ -3201,32 +3203,32 @@ function Ot() {
|
|
|
3201
3203
|
}
|
|
3202
3204
|
}), e.Decryptor = e.extend({
|
|
3203
3205
|
processBlock: function(v, g) {
|
|
3204
|
-
var p = this._cipher, C = p.blockSize,
|
|
3205
|
-
u.call(this, v, g, C, p), this._prevBlock =
|
|
3206
|
+
var p = this._cipher, C = p.blockSize, x = v.slice(g, g + C);
|
|
3207
|
+
u.call(this, v, g, C, p), this._prevBlock = x;
|
|
3206
3208
|
}
|
|
3207
3209
|
});
|
|
3208
3210
|
function u(v, g, p, C) {
|
|
3209
|
-
var
|
|
3210
|
-
a ? (
|
|
3211
|
+
var x, a = this._iv;
|
|
3212
|
+
a ? (x = a.slice(0), this._iv = void 0) : x = this._prevBlock, C.encryptBlock(x, 0);
|
|
3211
3213
|
for (var A = 0; A < p; A++)
|
|
3212
|
-
v[g + A] ^=
|
|
3214
|
+
v[g + A] ^= x[A];
|
|
3213
3215
|
}
|
|
3214
3216
|
return e;
|
|
3215
|
-
})(),
|
|
3217
|
+
})(), t.mode.CFB;
|
|
3216
3218
|
});
|
|
3217
3219
|
})(N0)), N0.exports;
|
|
3218
3220
|
}
|
|
3219
|
-
var U0 = { exports: {} },
|
|
3220
|
-
function
|
|
3221
|
+
var U0 = { exports: {} }, Lt = U0.exports, re;
|
|
3222
|
+
function qt() {
|
|
3221
3223
|
return re || (re = 1, (function(r, d) {
|
|
3222
|
-
(function(
|
|
3224
|
+
(function(t, e, u) {
|
|
3223
3225
|
r.exports = e(U(), K());
|
|
3224
|
-
})(
|
|
3225
|
-
return
|
|
3226
|
-
var e =
|
|
3226
|
+
})(Lt, function(t) {
|
|
3227
|
+
return t.mode.CTR = (function() {
|
|
3228
|
+
var e = t.lib.BlockCipherMode.extend(), u = e.Encryptor = e.extend({
|
|
3227
3229
|
processBlock: function(v, g) {
|
|
3228
|
-
var p = this._cipher, C = p.blockSize,
|
|
3229
|
-
|
|
3230
|
+
var p = this._cipher, C = p.blockSize, x = this._iv, a = this._counter;
|
|
3231
|
+
x && (a = this._counter = x.slice(0), this._iv = void 0);
|
|
3230
3232
|
var A = a.slice(0);
|
|
3231
3233
|
p.encryptBlock(A, 0), a[C - 1] = a[C - 1] + 1 | 0;
|
|
3232
3234
|
for (var n = 0; n < C; n++)
|
|
@@ -3234,22 +3236,22 @@ function Lt() {
|
|
|
3234
3236
|
}
|
|
3235
3237
|
});
|
|
3236
3238
|
return e.Decryptor = u, e;
|
|
3237
|
-
})(),
|
|
3239
|
+
})(), t.mode.CTR;
|
|
3238
3240
|
});
|
|
3239
3241
|
})(U0)), U0.exports;
|
|
3240
3242
|
}
|
|
3241
3243
|
var j0 = { exports: {} }, Tt = j0.exports, ee;
|
|
3242
3244
|
function Mt() {
|
|
3243
3245
|
return ee || (ee = 1, (function(r, d) {
|
|
3244
|
-
(function(
|
|
3246
|
+
(function(t, e, u) {
|
|
3245
3247
|
r.exports = e(U(), K());
|
|
3246
|
-
})(Tt, function(
|
|
3247
|
-
return
|
|
3248
|
-
var e =
|
|
3248
|
+
})(Tt, function(t) {
|
|
3249
|
+
return t.mode.CTRGladman = (function() {
|
|
3250
|
+
var e = t.lib.BlockCipherMode.extend();
|
|
3249
3251
|
function u(p) {
|
|
3250
3252
|
if ((p >> 24 & 255) === 255) {
|
|
3251
|
-
var C = p >> 16 & 255,
|
|
3252
|
-
C === 255 ? (C = 0,
|
|
3253
|
+
var C = p >> 16 & 255, x = p >> 8 & 255, a = p & 255;
|
|
3254
|
+
C === 255 ? (C = 0, x === 255 ? (x = 0, a === 255 ? a = 0 : ++a) : ++x) : ++C, p = 0, p += C << 16, p += x << 8, p += a;
|
|
3253
3255
|
} else
|
|
3254
3256
|
p += 1 << 24;
|
|
3255
3257
|
return p;
|
|
@@ -3259,47 +3261,47 @@ function Mt() {
|
|
|
3259
3261
|
}
|
|
3260
3262
|
var g = e.Encryptor = e.extend({
|
|
3261
3263
|
processBlock: function(p, C) {
|
|
3262
|
-
var
|
|
3264
|
+
var x = this._cipher, a = x.blockSize, A = this._iv, n = this._counter;
|
|
3263
3265
|
A && (n = this._counter = A.slice(0), this._iv = void 0), v(n);
|
|
3264
3266
|
var l = n.slice(0);
|
|
3265
|
-
|
|
3267
|
+
x.encryptBlock(l, 0);
|
|
3266
3268
|
for (var c = 0; c < a; c++)
|
|
3267
3269
|
p[C + c] ^= l[c];
|
|
3268
3270
|
}
|
|
3269
3271
|
});
|
|
3270
3272
|
return e.Decryptor = g, e;
|
|
3271
|
-
})(),
|
|
3273
|
+
})(), t.mode.CTRGladman;
|
|
3272
3274
|
});
|
|
3273
3275
|
})(j0)), j0.exports;
|
|
3274
3276
|
}
|
|
3275
3277
|
var K0 = { exports: {} }, Nt = K0.exports, te;
|
|
3276
3278
|
function Ut() {
|
|
3277
3279
|
return te || (te = 1, (function(r, d) {
|
|
3278
|
-
(function(
|
|
3280
|
+
(function(t, e, u) {
|
|
3279
3281
|
r.exports = e(U(), K());
|
|
3280
|
-
})(Nt, function(
|
|
3281
|
-
return
|
|
3282
|
-
var e =
|
|
3282
|
+
})(Nt, function(t) {
|
|
3283
|
+
return t.mode.OFB = (function() {
|
|
3284
|
+
var e = t.lib.BlockCipherMode.extend(), u = e.Encryptor = e.extend({
|
|
3283
3285
|
processBlock: function(v, g) {
|
|
3284
|
-
var p = this._cipher, C = p.blockSize,
|
|
3285
|
-
|
|
3286
|
+
var p = this._cipher, C = p.blockSize, x = this._iv, a = this._keystream;
|
|
3287
|
+
x && (a = this._keystream = x.slice(0), this._iv = void 0), p.encryptBlock(a, 0);
|
|
3286
3288
|
for (var A = 0; A < C; A++)
|
|
3287
3289
|
v[g + A] ^= a[A];
|
|
3288
3290
|
}
|
|
3289
3291
|
});
|
|
3290
3292
|
return e.Decryptor = u, e;
|
|
3291
|
-
})(),
|
|
3293
|
+
})(), t.mode.OFB;
|
|
3292
3294
|
});
|
|
3293
3295
|
})(K0)), K0.exports;
|
|
3294
3296
|
}
|
|
3295
3297
|
var X0 = { exports: {} }, jt = X0.exports, xe;
|
|
3296
3298
|
function Kt() {
|
|
3297
3299
|
return xe || (xe = 1, (function(r, d) {
|
|
3298
|
-
(function(
|
|
3300
|
+
(function(t, e, u) {
|
|
3299
3301
|
r.exports = e(U(), K());
|
|
3300
|
-
})(jt, function(
|
|
3301
|
-
return
|
|
3302
|
-
var e =
|
|
3302
|
+
})(jt, function(t) {
|
|
3303
|
+
return t.mode.ECB = (function() {
|
|
3304
|
+
var e = t.lib.BlockCipherMode.extend();
|
|
3303
3305
|
return e.Encryptor = e.extend({
|
|
3304
3306
|
processBlock: function(u, v) {
|
|
3305
3307
|
this._cipher.encryptBlock(u, v);
|
|
@@ -3309,17 +3311,17 @@ function Kt() {
|
|
|
3309
3311
|
this._cipher.decryptBlock(u, v);
|
|
3310
3312
|
}
|
|
3311
3313
|
}), e;
|
|
3312
|
-
})(),
|
|
3314
|
+
})(), t.mode.ECB;
|
|
3313
3315
|
});
|
|
3314
3316
|
})(X0)), X0.exports;
|
|
3315
3317
|
}
|
|
3316
3318
|
var G0 = { exports: {} }, Xt = G0.exports, ae;
|
|
3317
3319
|
function Gt() {
|
|
3318
3320
|
return ae || (ae = 1, (function(r, d) {
|
|
3319
|
-
(function(
|
|
3321
|
+
(function(t, e, u) {
|
|
3320
3322
|
r.exports = e(U(), K());
|
|
3321
|
-
})(Xt, function(
|
|
3322
|
-
return
|
|
3323
|
+
})(Xt, function(t) {
|
|
3324
|
+
return t.pad.AnsiX923 = {
|
|
3323
3325
|
pad: function(e, u) {
|
|
3324
3326
|
var v = e.sigBytes, g = u * 4, p = g - v % g, C = v + p - 1;
|
|
3325
3327
|
e.clamp(), e.words[C >>> 2] |= p << 24 - C % 4 * 8, e.sigBytes += p;
|
|
@@ -3328,53 +3330,53 @@ function Gt() {
|
|
|
3328
3330
|
var u = e.words[e.sigBytes - 1 >>> 2] & 255;
|
|
3329
3331
|
e.sigBytes -= u;
|
|
3330
3332
|
}
|
|
3331
|
-
},
|
|
3333
|
+
}, t.pad.Ansix923;
|
|
3332
3334
|
});
|
|
3333
3335
|
})(G0)), G0.exports;
|
|
3334
3336
|
}
|
|
3335
|
-
var
|
|
3336
|
-
function
|
|
3337
|
+
var Y0 = { exports: {} }, Yt = Y0.exports, ne;
|
|
3338
|
+
function Zt() {
|
|
3337
3339
|
return ne || (ne = 1, (function(r, d) {
|
|
3338
|
-
(function(
|
|
3340
|
+
(function(t, e, u) {
|
|
3339
3341
|
r.exports = e(U(), K());
|
|
3340
|
-
})(
|
|
3341
|
-
return
|
|
3342
|
+
})(Yt, function(t) {
|
|
3343
|
+
return t.pad.Iso10126 = {
|
|
3342
3344
|
pad: function(e, u) {
|
|
3343
3345
|
var v = u * 4, g = v - e.sigBytes % v;
|
|
3344
|
-
e.concat(
|
|
3346
|
+
e.concat(t.lib.WordArray.random(g - 1)).concat(t.lib.WordArray.create([g << 24], 1));
|
|
3345
3347
|
},
|
|
3346
3348
|
unpad: function(e) {
|
|
3347
3349
|
var u = e.words[e.sigBytes - 1 >>> 2] & 255;
|
|
3348
3350
|
e.sigBytes -= u;
|
|
3349
3351
|
}
|
|
3350
|
-
},
|
|
3352
|
+
}, t.pad.Iso10126;
|
|
3351
3353
|
});
|
|
3352
|
-
})(
|
|
3354
|
+
})(Y0)), Y0.exports;
|
|
3353
3355
|
}
|
|
3354
|
-
var
|
|
3356
|
+
var Z0 = { exports: {} }, Qt = Z0.exports, oe;
|
|
3355
3357
|
function Vt() {
|
|
3356
3358
|
return oe || (oe = 1, (function(r, d) {
|
|
3357
|
-
(function(
|
|
3359
|
+
(function(t, e, u) {
|
|
3358
3360
|
r.exports = e(U(), K());
|
|
3359
|
-
})(Qt, function(
|
|
3360
|
-
return
|
|
3361
|
+
})(Qt, function(t) {
|
|
3362
|
+
return t.pad.Iso97971 = {
|
|
3361
3363
|
pad: function(e, u) {
|
|
3362
|
-
e.concat(
|
|
3364
|
+
e.concat(t.lib.WordArray.create([2147483648], 1)), t.pad.ZeroPadding.pad(e, u);
|
|
3363
3365
|
},
|
|
3364
3366
|
unpad: function(e) {
|
|
3365
|
-
|
|
3367
|
+
t.pad.ZeroPadding.unpad(e), e.sigBytes--;
|
|
3366
3368
|
}
|
|
3367
|
-
},
|
|
3369
|
+
}, t.pad.Iso97971;
|
|
3368
3370
|
});
|
|
3369
|
-
})(
|
|
3371
|
+
})(Z0)), Z0.exports;
|
|
3370
3372
|
}
|
|
3371
3373
|
var Q0 = { exports: {} }, Jt = Q0.exports, ie;
|
|
3372
3374
|
function rx() {
|
|
3373
3375
|
return ie || (ie = 1, (function(r, d) {
|
|
3374
|
-
(function(
|
|
3376
|
+
(function(t, e, u) {
|
|
3375
3377
|
r.exports = e(U(), K());
|
|
3376
|
-
})(Jt, function(
|
|
3377
|
-
return
|
|
3378
|
+
})(Jt, function(t) {
|
|
3379
|
+
return t.pad.ZeroPadding = {
|
|
3378
3380
|
pad: function(e, u) {
|
|
3379
3381
|
var v = u * 4;
|
|
3380
3382
|
e.clamp(), e.sigBytes += v - (e.sigBytes % v || v);
|
|
@@ -3386,34 +3388,34 @@ function rx() {
|
|
|
3386
3388
|
break;
|
|
3387
3389
|
}
|
|
3388
3390
|
}
|
|
3389
|
-
},
|
|
3391
|
+
}, t.pad.ZeroPadding;
|
|
3390
3392
|
});
|
|
3391
3393
|
})(Q0)), Q0.exports;
|
|
3392
3394
|
}
|
|
3393
3395
|
var V0 = { exports: {} }, ex = V0.exports, se;
|
|
3394
3396
|
function tx() {
|
|
3395
3397
|
return se || (se = 1, (function(r, d) {
|
|
3396
|
-
(function(
|
|
3398
|
+
(function(t, e, u) {
|
|
3397
3399
|
r.exports = e(U(), K());
|
|
3398
|
-
})(ex, function(
|
|
3399
|
-
return
|
|
3400
|
+
})(ex, function(t) {
|
|
3401
|
+
return t.pad.NoPadding = {
|
|
3400
3402
|
pad: function() {
|
|
3401
3403
|
},
|
|
3402
3404
|
unpad: function() {
|
|
3403
3405
|
}
|
|
3404
|
-
},
|
|
3406
|
+
}, t.pad.NoPadding;
|
|
3405
3407
|
});
|
|
3406
3408
|
})(V0)), V0.exports;
|
|
3407
3409
|
}
|
|
3408
3410
|
var J0 = { exports: {} }, xx = J0.exports, ce;
|
|
3409
3411
|
function ax() {
|
|
3410
3412
|
return ce || (ce = 1, (function(r, d) {
|
|
3411
|
-
(function(
|
|
3413
|
+
(function(t, e, u) {
|
|
3412
3414
|
r.exports = e(U(), K());
|
|
3413
|
-
})(xx, function(
|
|
3415
|
+
})(xx, function(t) {
|
|
3414
3416
|
return (function(e) {
|
|
3415
|
-
var u =
|
|
3416
|
-
|
|
3417
|
+
var u = t, v = u.lib, g = v.CipherParams, p = u.enc, C = p.Hex, x = u.format;
|
|
3418
|
+
x.Hex = {
|
|
3417
3419
|
/**
|
|
3418
3420
|
* Converts the ciphertext of a cipher params object to a hexadecimally encoded string.
|
|
3419
3421
|
*
|
|
@@ -3448,18 +3450,18 @@ function ax() {
|
|
|
3448
3450
|
return g.create({ ciphertext: A });
|
|
3449
3451
|
}
|
|
3450
3452
|
};
|
|
3451
|
-
})(),
|
|
3453
|
+
})(), t.format.Hex;
|
|
3452
3454
|
});
|
|
3453
3455
|
})(J0)), J0.exports;
|
|
3454
3456
|
}
|
|
3455
3457
|
var rr = { exports: {} }, nx = rr.exports, fe;
|
|
3456
3458
|
function ox() {
|
|
3457
3459
|
return fe || (fe = 1, (function(r, d) {
|
|
3458
|
-
(function(
|
|
3460
|
+
(function(t, e, u) {
|
|
3459
3461
|
r.exports = e(U(), a0(), n0(), t0(), K());
|
|
3460
|
-
})(nx, function(
|
|
3462
|
+
})(nx, function(t) {
|
|
3461
3463
|
return (function() {
|
|
3462
|
-
var e =
|
|
3464
|
+
var e = t, u = e.lib, v = u.BlockCipher, g = e.algo, p = [], C = [], x = [], a = [], A = [], n = [], l = [], c = [], h = [], f = [];
|
|
3463
3465
|
(function() {
|
|
3464
3466
|
for (var i = [], s = 0; s < 256; s++)
|
|
3465
3467
|
s < 128 ? i[s] = s << 1 : i[s] = s << 1 ^ 283;
|
|
@@ -3467,7 +3469,7 @@ function ox() {
|
|
|
3467
3469
|
var _ = D ^ D << 1 ^ D << 2 ^ D << 3 ^ D << 4;
|
|
3468
3470
|
_ = _ >>> 8 ^ _ & 255 ^ 99, p[F] = _, C[_] = F;
|
|
3469
3471
|
var w = i[F], z = i[w], B = i[z], m = i[_] * 257 ^ _ * 16843008;
|
|
3470
|
-
|
|
3472
|
+
x[F] = m << 24 | m >>> 8, a[F] = m << 16 | m >>> 16, A[F] = m << 8 | m >>> 24, n[F] = m;
|
|
3471
3473
|
var m = B * 16843009 ^ z * 65537 ^ w * 257 ^ F * 16843008;
|
|
3472
3474
|
l[_] = m << 24 | m >>> 8, c[_] = m << 16 | m >>> 16, h[_] = m << 8 | m >>> 24, f[_] = m, F ? (F = w ^ i[i[i[B ^ w]]], D ^= i[i[D]]) : F = D = 1;
|
|
3473
3475
|
}
|
|
@@ -3489,7 +3491,7 @@ function ox() {
|
|
|
3489
3491
|
}
|
|
3490
3492
|
},
|
|
3491
3493
|
encryptBlock: function(i, s) {
|
|
3492
|
-
this._doCryptBlock(i, s, this._keySchedule,
|
|
3494
|
+
this._doCryptBlock(i, s, this._keySchedule, x, a, A, n, p);
|
|
3493
3495
|
},
|
|
3494
3496
|
decryptBlock: function(i, s) {
|
|
3495
3497
|
var F = i[s + 1];
|
|
@@ -3498,28 +3500,28 @@ function ox() {
|
|
|
3498
3500
|
i[s + 1] = i[s + 3], i[s + 3] = F;
|
|
3499
3501
|
},
|
|
3500
3502
|
_doCryptBlock: function(i, s, F, D, _, w, z, B) {
|
|
3501
|
-
for (var m = this._nRounds, P = i[s] ^ F[0], H = i[s + 1] ^ F[1],
|
|
3502
|
-
var W = D[P >>> 24] ^ _[H >>> 16 & 255] ^ w[
|
|
3503
|
-
P = W, H = O,
|
|
3503
|
+
for (var m = this._nRounds, P = i[s] ^ F[0], H = i[s + 1] ^ F[1], L = i[s + 2] ^ F[2], q = i[s + 3] ^ F[3], y = 4, $ = 1; $ < m; $++) {
|
|
3504
|
+
var W = D[P >>> 24] ^ _[H >>> 16 & 255] ^ w[L >>> 8 & 255] ^ z[q & 255] ^ F[y++], O = D[H >>> 24] ^ _[L >>> 16 & 255] ^ w[q >>> 8 & 255] ^ z[P & 255] ^ F[y++], I = D[L >>> 24] ^ _[q >>> 16 & 255] ^ w[P >>> 8 & 255] ^ z[H & 255] ^ F[y++], b = D[q >>> 24] ^ _[P >>> 16 & 255] ^ w[H >>> 8 & 255] ^ z[L & 255] ^ F[y++];
|
|
3505
|
+
P = W, H = O, L = I, q = b;
|
|
3504
3506
|
}
|
|
3505
|
-
var W = (B[P >>> 24] << 24 | B[H >>> 16 & 255] << 16 | B[
|
|
3507
|
+
var W = (B[P >>> 24] << 24 | B[H >>> 16 & 255] << 16 | B[L >>> 8 & 255] << 8 | B[q & 255]) ^ F[y++], O = (B[H >>> 24] << 24 | B[L >>> 16 & 255] << 16 | B[q >>> 8 & 255] << 8 | B[P & 255]) ^ F[y++], I = (B[L >>> 24] << 24 | B[q >>> 16 & 255] << 16 | B[P >>> 8 & 255] << 8 | B[H & 255]) ^ F[y++], b = (B[q >>> 24] << 24 | B[P >>> 16 & 255] << 16 | B[H >>> 8 & 255] << 8 | B[L & 255]) ^ F[y++];
|
|
3506
3508
|
i[s] = W, i[s + 1] = O, i[s + 2] = I, i[s + 3] = b;
|
|
3507
3509
|
},
|
|
3508
3510
|
keySize: 256 / 32
|
|
3509
3511
|
});
|
|
3510
3512
|
e.AES = v._createHelper(o);
|
|
3511
|
-
})(),
|
|
3513
|
+
})(), t.AES;
|
|
3512
3514
|
});
|
|
3513
3515
|
})(rr)), rr.exports;
|
|
3514
3516
|
}
|
|
3515
3517
|
var er = { exports: {} }, ix = er.exports, ue;
|
|
3516
3518
|
function sx() {
|
|
3517
3519
|
return ue || (ue = 1, (function(r, d) {
|
|
3518
|
-
(function(
|
|
3520
|
+
(function(t, e, u) {
|
|
3519
3521
|
r.exports = e(U(), a0(), n0(), t0(), K());
|
|
3520
|
-
})(ix, function(
|
|
3522
|
+
})(ix, function(t) {
|
|
3521
3523
|
return (function() {
|
|
3522
|
-
var e =
|
|
3524
|
+
var e = t, u = e.lib, v = u.WordArray, g = u.BlockCipher, p = e.algo, C = [
|
|
3523
3525
|
57,
|
|
3524
3526
|
49,
|
|
3525
3527
|
41,
|
|
@@ -3576,7 +3578,7 @@ function sx() {
|
|
|
3576
3578
|
20,
|
|
3577
3579
|
12,
|
|
3578
3580
|
4
|
|
3579
|
-
],
|
|
3581
|
+
], x = [
|
|
3580
3582
|
14,
|
|
3581
3583
|
17,
|
|
3582
3584
|
11,
|
|
@@ -4171,7 +4173,7 @@ function sx() {
|
|
|
4171
4173
|
}
|
|
4172
4174
|
for (var D = this._subKeys = [], _ = 0; _ < 16; _++) {
|
|
4173
4175
|
for (var w = D[_] = [], z = a[_], s = 0; s < 24; s++)
|
|
4174
|
-
w[s / 6 | 0] |= i[(
|
|
4176
|
+
w[s / 6 | 0] |= i[(x[s] - 1 + z) % 28] << 31 - s % 6, w[4 + (s / 6 | 0)] |= i[28 + (x[s + 24] - 1 + z) % 28] << 31 - s % 6;
|
|
4175
4177
|
w[0] = w[0] << 1 | w[0] >>> 31;
|
|
4176
4178
|
for (var s = 1; s < 7; s++)
|
|
4177
4179
|
w[s] = w[s] >>> (s - 1) * 4 + 3;
|
|
@@ -4228,18 +4230,18 @@ function sx() {
|
|
|
4228
4230
|
blockSize: 64 / 32
|
|
4229
4231
|
});
|
|
4230
4232
|
e.TripleDES = g._createHelper(f);
|
|
4231
|
-
})(),
|
|
4233
|
+
})(), t.TripleDES;
|
|
4232
4234
|
});
|
|
4233
4235
|
})(er)), er.exports;
|
|
4234
4236
|
}
|
|
4235
4237
|
var tr = { exports: {} }, cx = tr.exports, le;
|
|
4236
4238
|
function fx() {
|
|
4237
4239
|
return le || (le = 1, (function(r, d) {
|
|
4238
|
-
(function(
|
|
4240
|
+
(function(t, e, u) {
|
|
4239
4241
|
r.exports = e(U(), a0(), n0(), t0(), K());
|
|
4240
|
-
})(cx, function(
|
|
4242
|
+
})(cx, function(t) {
|
|
4241
4243
|
return (function() {
|
|
4242
|
-
var e =
|
|
4244
|
+
var e = t, u = e.lib, v = u.StreamCipher, g = e.algo, p = g.RC4 = v.extend({
|
|
4243
4245
|
_doReset: function() {
|
|
4244
4246
|
for (var a = this._key, A = a.words, n = a.sigBytes, l = this._S = [], c = 0; c < 256; c++)
|
|
4245
4247
|
l[c] = c;
|
|
@@ -4266,7 +4268,7 @@ function fx() {
|
|
|
4266
4268
|
return this._i = A, this._j = n, l;
|
|
4267
4269
|
}
|
|
4268
4270
|
e.RC4 = v._createHelper(p);
|
|
4269
|
-
var
|
|
4271
|
+
var x = g.RC4Drop = p.extend({
|
|
4270
4272
|
/**
|
|
4271
4273
|
* Configuration options.
|
|
4272
4274
|
*
|
|
@@ -4281,19 +4283,19 @@ function fx() {
|
|
|
4281
4283
|
C.call(this);
|
|
4282
4284
|
}
|
|
4283
4285
|
});
|
|
4284
|
-
e.RC4Drop = v._createHelper(
|
|
4285
|
-
})(),
|
|
4286
|
+
e.RC4Drop = v._createHelper(x);
|
|
4287
|
+
})(), t.RC4;
|
|
4286
4288
|
});
|
|
4287
4289
|
})(tr)), tr.exports;
|
|
4288
4290
|
}
|
|
4289
4291
|
var xr = { exports: {} }, ux = xr.exports, de;
|
|
4290
4292
|
function lx() {
|
|
4291
4293
|
return de || (de = 1, (function(r, d) {
|
|
4292
|
-
(function(
|
|
4294
|
+
(function(t, e, u) {
|
|
4293
4295
|
r.exports = e(U(), a0(), n0(), t0(), K());
|
|
4294
|
-
})(ux, function(
|
|
4296
|
+
})(ux, function(t) {
|
|
4295
4297
|
return (function() {
|
|
4296
|
-
var e =
|
|
4298
|
+
var e = t, u = e.lib, v = u.StreamCipher, g = e.algo, p = [], C = [], x = [], a = g.Rabbit = v.extend({
|
|
4297
4299
|
_doReset: function() {
|
|
4298
4300
|
for (var n = this._key.words, l = this.cfg.iv, c = 0; c < 4; c++)
|
|
4299
4301
|
n[c] = (n[c] << 8 | n[c] >>> 24) & 16711935 | (n[c] << 24 | n[c] >>> 8) & 4278255360;
|
|
@@ -4343,23 +4345,23 @@ function lx() {
|
|
|
4343
4345
|
l[0] = l[0] + 1295307597 + this._b | 0, l[1] = l[1] + 3545052371 + (l[0] >>> 0 < C[0] >>> 0 ? 1 : 0) | 0, l[2] = l[2] + 886263092 + (l[1] >>> 0 < C[1] >>> 0 ? 1 : 0) | 0, l[3] = l[3] + 1295307597 + (l[2] >>> 0 < C[2] >>> 0 ? 1 : 0) | 0, l[4] = l[4] + 3545052371 + (l[3] >>> 0 < C[3] >>> 0 ? 1 : 0) | 0, l[5] = l[5] + 886263092 + (l[4] >>> 0 < C[4] >>> 0 ? 1 : 0) | 0, l[6] = l[6] + 1295307597 + (l[5] >>> 0 < C[5] >>> 0 ? 1 : 0) | 0, l[7] = l[7] + 3545052371 + (l[6] >>> 0 < C[6] >>> 0 ? 1 : 0) | 0, this._b = l[7] >>> 0 < C[7] >>> 0 ? 1 : 0;
|
|
4344
4346
|
for (var c = 0; c < 8; c++) {
|
|
4345
4347
|
var h = n[c] + l[c], f = h & 65535, E = h >>> 16, o = ((f * f >>> 17) + f * E >>> 15) + E * E, i = ((h & 4294901760) * h | 0) + ((h & 65535) * h | 0);
|
|
4346
|
-
|
|
4348
|
+
x[c] = o ^ i;
|
|
4347
4349
|
}
|
|
4348
|
-
n[0] =
|
|
4350
|
+
n[0] = x[0] + (x[7] << 16 | x[7] >>> 16) + (x[6] << 16 | x[6] >>> 16) | 0, n[1] = x[1] + (x[0] << 8 | x[0] >>> 24) + x[7] | 0, n[2] = x[2] + (x[1] << 16 | x[1] >>> 16) + (x[0] << 16 | x[0] >>> 16) | 0, n[3] = x[3] + (x[2] << 8 | x[2] >>> 24) + x[1] | 0, n[4] = x[4] + (x[3] << 16 | x[3] >>> 16) + (x[2] << 16 | x[2] >>> 16) | 0, n[5] = x[5] + (x[4] << 8 | x[4] >>> 24) + x[3] | 0, n[6] = x[6] + (x[5] << 16 | x[5] >>> 16) + (x[4] << 16 | x[4] >>> 16) | 0, n[7] = x[7] + (x[6] << 8 | x[6] >>> 24) + x[5] | 0;
|
|
4349
4351
|
}
|
|
4350
4352
|
e.Rabbit = v._createHelper(a);
|
|
4351
|
-
})(),
|
|
4353
|
+
})(), t.Rabbit;
|
|
4352
4354
|
});
|
|
4353
4355
|
})(xr)), xr.exports;
|
|
4354
4356
|
}
|
|
4355
4357
|
var ar = { exports: {} }, dx = ar.exports, he;
|
|
4356
4358
|
function hx() {
|
|
4357
4359
|
return he || (he = 1, (function(r, d) {
|
|
4358
|
-
(function(
|
|
4360
|
+
(function(t, e, u) {
|
|
4359
4361
|
r.exports = e(U(), a0(), n0(), t0(), K());
|
|
4360
|
-
})(dx, function(
|
|
4362
|
+
})(dx, function(t) {
|
|
4361
4363
|
return (function() {
|
|
4362
|
-
var e =
|
|
4364
|
+
var e = t, u = e.lib, v = u.StreamCipher, g = e.algo, p = [], C = [], x = [], a = g.RabbitLegacy = v.extend({
|
|
4363
4365
|
_doReset: function() {
|
|
4364
4366
|
var n = this._key.words, l = this.cfg.iv, c = this._X = [
|
|
4365
4367
|
n[0],
|
|
@@ -4407,23 +4409,23 @@ function hx() {
|
|
|
4407
4409
|
l[0] = l[0] + 1295307597 + this._b | 0, l[1] = l[1] + 3545052371 + (l[0] >>> 0 < C[0] >>> 0 ? 1 : 0) | 0, l[2] = l[2] + 886263092 + (l[1] >>> 0 < C[1] >>> 0 ? 1 : 0) | 0, l[3] = l[3] + 1295307597 + (l[2] >>> 0 < C[2] >>> 0 ? 1 : 0) | 0, l[4] = l[4] + 3545052371 + (l[3] >>> 0 < C[3] >>> 0 ? 1 : 0) | 0, l[5] = l[5] + 886263092 + (l[4] >>> 0 < C[4] >>> 0 ? 1 : 0) | 0, l[6] = l[6] + 1295307597 + (l[5] >>> 0 < C[5] >>> 0 ? 1 : 0) | 0, l[7] = l[7] + 3545052371 + (l[6] >>> 0 < C[6] >>> 0 ? 1 : 0) | 0, this._b = l[7] >>> 0 < C[7] >>> 0 ? 1 : 0;
|
|
4408
4410
|
for (var c = 0; c < 8; c++) {
|
|
4409
4411
|
var h = n[c] + l[c], f = h & 65535, E = h >>> 16, o = ((f * f >>> 17) + f * E >>> 15) + E * E, i = ((h & 4294901760) * h | 0) + ((h & 65535) * h | 0);
|
|
4410
|
-
|
|
4412
|
+
x[c] = o ^ i;
|
|
4411
4413
|
}
|
|
4412
|
-
n[0] =
|
|
4414
|
+
n[0] = x[0] + (x[7] << 16 | x[7] >>> 16) + (x[6] << 16 | x[6] >>> 16) | 0, n[1] = x[1] + (x[0] << 8 | x[0] >>> 24) + x[7] | 0, n[2] = x[2] + (x[1] << 16 | x[1] >>> 16) + (x[0] << 16 | x[0] >>> 16) | 0, n[3] = x[3] + (x[2] << 8 | x[2] >>> 24) + x[1] | 0, n[4] = x[4] + (x[3] << 16 | x[3] >>> 16) + (x[2] << 16 | x[2] >>> 16) | 0, n[5] = x[5] + (x[4] << 8 | x[4] >>> 24) + x[3] | 0, n[6] = x[6] + (x[5] << 16 | x[5] >>> 16) + (x[4] << 16 | x[4] >>> 16) | 0, n[7] = x[7] + (x[6] << 8 | x[6] >>> 24) + x[5] | 0;
|
|
4413
4415
|
}
|
|
4414
4416
|
e.RabbitLegacy = v._createHelper(a);
|
|
4415
|
-
})(),
|
|
4417
|
+
})(), t.RabbitLegacy;
|
|
4416
4418
|
});
|
|
4417
4419
|
})(ar)), ar.exports;
|
|
4418
4420
|
}
|
|
4419
4421
|
var nr = { exports: {} }, vx = nr.exports, ve;
|
|
4420
4422
|
function px() {
|
|
4421
4423
|
return ve || (ve = 1, (function(r, d) {
|
|
4422
|
-
(function(
|
|
4424
|
+
(function(t, e, u) {
|
|
4423
4425
|
r.exports = e(U(), a0(), n0(), t0(), K());
|
|
4424
|
-
})(vx, function(
|
|
4426
|
+
})(vx, function(t) {
|
|
4425
4427
|
return (function() {
|
|
4426
|
-
var e =
|
|
4428
|
+
var e = t, u = e.lib, v = u.BlockCipher, g = e.algo;
|
|
4427
4429
|
const p = 16, C = [
|
|
4428
4430
|
608135816,
|
|
4429
4431
|
2242054355,
|
|
@@ -4443,7 +4445,7 @@ function px() {
|
|
|
4443
4445
|
3041331479,
|
|
4444
4446
|
2450970073,
|
|
4445
4447
|
2306472731
|
|
4446
|
-
],
|
|
4448
|
+
], x = [
|
|
4447
4449
|
[
|
|
4448
4450
|
3509652390,
|
|
4449
4451
|
2564797868,
|
|
@@ -5501,7 +5503,7 @@ function px() {
|
|
|
5501
5503
|
for (let _ = 0; _ < 4; _++) {
|
|
5502
5504
|
f.sbox[_] = [];
|
|
5503
5505
|
for (let w = 0; w < 256; w++)
|
|
5504
|
-
f.sbox[_][w] =
|
|
5506
|
+
f.sbox[_][w] = x[_][w];
|
|
5505
5507
|
}
|
|
5506
5508
|
let i = 0;
|
|
5507
5509
|
for (let _ = 0; _ < p + 2; _++)
|
|
@@ -5534,17 +5536,17 @@ function px() {
|
|
|
5534
5536
|
ivSize: 64 / 32
|
|
5535
5537
|
});
|
|
5536
5538
|
e.Blowfish = v._createHelper(h);
|
|
5537
|
-
})(),
|
|
5539
|
+
})(), t.Blowfish;
|
|
5538
5540
|
});
|
|
5539
5541
|
})(nr)), nr.exports;
|
|
5540
5542
|
}
|
|
5541
5543
|
var Bx = b0.exports, pe;
|
|
5542
5544
|
function Cx() {
|
|
5543
5545
|
return pe || (pe = 1, (function(r, d) {
|
|
5544
|
-
(function(
|
|
5545
|
-
r.exports = e(U(), sr(), ht(), pt(), a0(), Et(), n0(), be(), Cr(), bt(), me(), yt(), kt(), Ht(), Er(), $t(), t0(), K(), Ot(),
|
|
5546
|
-
})(Bx, function(
|
|
5547
|
-
return
|
|
5546
|
+
(function(t, e, u) {
|
|
5547
|
+
r.exports = e(U(), sr(), ht(), pt(), a0(), Et(), n0(), be(), Cr(), bt(), me(), yt(), kt(), Ht(), Er(), $t(), t0(), K(), Ot(), qt(), Mt(), Ut(), Kt(), Gt(), Zt(), Vt(), rx(), tx(), ax(), ox(), sx(), fx(), lx(), hx(), px());
|
|
5548
|
+
})(Bx, function(t) {
|
|
5549
|
+
return t;
|
|
5548
5550
|
});
|
|
5549
5551
|
})(b0)), b0.exports;
|
|
5550
5552
|
}
|
|
@@ -5563,32 +5565,32 @@ function Ax() {
|
|
|
5563
5565
|
};
|
|
5564
5566
|
}
|
|
5565
5567
|
function Fx(r) {
|
|
5566
|
-
return `/sdk-workers/${(r.split("/").pop() || r).replace(/\.ts$/, ".js")}?v=1.1.
|
|
5568
|
+
return `/sdk-workers/${(r.split("/").pop() || r).replace(/\.ts$/, ".js")}?v=1.1.134`;
|
|
5567
5569
|
}
|
|
5568
5570
|
function Dx(r, d) {
|
|
5569
|
-
const
|
|
5570
|
-
return new Worker(
|
|
5571
|
+
const t = Fx(r);
|
|
5572
|
+
return new Worker(t, { type: "module", ...d });
|
|
5571
5573
|
}
|
|
5572
5574
|
const Be = /* @__PURE__ */ new Map(), hr = /* @__PURE__ */ new Map();
|
|
5573
5575
|
let gx = 0;
|
|
5574
5576
|
function bx(r) {
|
|
5575
5577
|
const d = Be.get(r);
|
|
5576
5578
|
if (d) return d;
|
|
5577
|
-
const
|
|
5578
|
-
|
|
5579
|
-
const { id: v, imageBitmap: g, error: p, duration: C } = u.data ?? {},
|
|
5580
|
-
if (
|
|
5579
|
+
const t = Dx("./deform.worker.ts");
|
|
5580
|
+
t.onmessage = (u) => {
|
|
5581
|
+
const { id: v, imageBitmap: g, error: p, duration: C } = u.data ?? {}, x = hr.get(v);
|
|
5582
|
+
if (x) {
|
|
5581
5583
|
if (hr.delete(v), p) {
|
|
5582
|
-
|
|
5584
|
+
x.reject(new Error(p));
|
|
5583
5585
|
return;
|
|
5584
5586
|
}
|
|
5585
|
-
|
|
5587
|
+
x.resolve(g);
|
|
5586
5588
|
}
|
|
5587
|
-
},
|
|
5589
|
+
}, t.onerror = (u) => {
|
|
5588
5590
|
};
|
|
5589
5591
|
const e = () => {
|
|
5590
5592
|
const u = Ax();
|
|
5591
|
-
return u.token ? (
|
|
5593
|
+
return u.token ? (t.postMessage({
|
|
5592
5594
|
type: "SET_LICENSE",
|
|
5593
5595
|
licenseToken: u.token,
|
|
5594
5596
|
licenseApiUrl: u.apiUrl,
|
|
@@ -5600,7 +5602,7 @@ function bx(r) {
|
|
|
5600
5602
|
e();
|
|
5601
5603
|
}, 200), setTimeout(() => {
|
|
5602
5604
|
e();
|
|
5603
|
-
}, 500)), Be.set(r,
|
|
5605
|
+
}, 500)), Be.set(r, t), t;
|
|
5604
5606
|
}
|
|
5605
5607
|
function mx(r) {
|
|
5606
5608
|
return {
|
|
@@ -5636,9 +5638,9 @@ function mx(r) {
|
|
|
5636
5638
|
vectorMask: r.vectorMask ? {
|
|
5637
5639
|
paths: r.vectorMask.paths?.map((d) => ({
|
|
5638
5640
|
open: d.open,
|
|
5639
|
-
knots: d.knots?.map((
|
|
5640
|
-
linked:
|
|
5641
|
-
points: [...
|
|
5641
|
+
knots: d.knots?.map((t) => ({
|
|
5642
|
+
linked: t.linked,
|
|
5643
|
+
points: [...t.points]
|
|
5642
5644
|
})),
|
|
5643
5645
|
fillRule: d.fillRule,
|
|
5644
5646
|
operation: d.operation
|
|
@@ -5657,16 +5659,16 @@ function mx(r) {
|
|
|
5657
5659
|
type: d.type,
|
|
5658
5660
|
enabled: d.enabled,
|
|
5659
5661
|
filter: d.filter ? {
|
|
5660
|
-
puppetShapeList: d.filter.puppetShapeList?.map((
|
|
5661
|
-
originalVertexArray:
|
|
5662
|
+
puppetShapeList: d.filter.puppetShapeList?.map((t) => ({
|
|
5663
|
+
originalVertexArray: t.originalVertexArray.map((e) => ({
|
|
5662
5664
|
x: e.x,
|
|
5663
5665
|
y: e.y
|
|
5664
5666
|
})),
|
|
5665
|
-
deformedVertexArray:
|
|
5667
|
+
deformedVertexArray: t.deformedVertexArray.map((e) => ({
|
|
5666
5668
|
x: e.x,
|
|
5667
5669
|
y: e.y
|
|
5668
5670
|
})),
|
|
5669
|
-
indexArray: [...
|
|
5671
|
+
indexArray: [...t.indexArray]
|
|
5670
5672
|
}))
|
|
5671
5673
|
} : void 0
|
|
5672
5674
|
})) : void 0,
|
|
@@ -5674,12 +5676,12 @@ function mx(r) {
|
|
|
5674
5676
|
clipping: r.clipping
|
|
5675
5677
|
};
|
|
5676
5678
|
}
|
|
5677
|
-
function _x(r, d,
|
|
5678
|
-
const u = ++gx, v = bx(
|
|
5679
|
+
function _x(r, d, t, e) {
|
|
5680
|
+
const u = ++gx, v = bx(t);
|
|
5679
5681
|
return performance.now(), (/* @__PURE__ */ new Date()).toISOString(), new Promise((g, p) => {
|
|
5680
5682
|
hr.set(u, {
|
|
5681
|
-
resolve: (
|
|
5682
|
-
performance.now(), (/* @__PURE__ */ new Date()).toISOString(), g(
|
|
5683
|
+
resolve: (x) => {
|
|
5684
|
+
performance.now(), (/* @__PURE__ */ new Date()).toISOString(), g(x);
|
|
5683
5685
|
},
|
|
5684
5686
|
reject: p
|
|
5685
5687
|
});
|
|
@@ -5689,18 +5691,18 @@ function _x(r, d, x, e) {
|
|
|
5689
5691
|
]);
|
|
5690
5692
|
});
|
|
5691
5693
|
}
|
|
5692
|
-
async function yx(r, d,
|
|
5694
|
+
async function yx(r, d, t = 0, e, u, v) {
|
|
5693
5695
|
const g = await at(r, u, v);
|
|
5694
5696
|
if (!g || g.width === 0 || g.height === 0)
|
|
5695
5697
|
throw new Error("图片无效:尺寸为 0");
|
|
5696
|
-
return await _x(g, d,
|
|
5698
|
+
return await _x(g, d, t, e);
|
|
5697
5699
|
}
|
|
5698
5700
|
function s0(r, d) {
|
|
5699
5701
|
if (typeof OffscreenCanvas < "u" && typeof document > "u")
|
|
5700
5702
|
return new OffscreenCanvas(r, d);
|
|
5701
5703
|
if (typeof document < "u") {
|
|
5702
|
-
const
|
|
5703
|
-
return
|
|
5704
|
+
const t = document.createElement("canvas");
|
|
5705
|
+
return t.width = r, t.height = d, t;
|
|
5704
5706
|
} else
|
|
5705
5707
|
throw new Error("无法创建 canvas:不在 Worker 或主线程环境中");
|
|
5706
5708
|
}
|
|
@@ -5717,7 +5719,7 @@ async function wx(r) {
|
|
|
5717
5719
|
performance.now();
|
|
5718
5720
|
const {
|
|
5719
5721
|
psdJson: d,
|
|
5720
|
-
materialList:
|
|
5722
|
+
materialList: t,
|
|
5721
5723
|
fabricScreenshotList: e,
|
|
5722
5724
|
width: u,
|
|
5723
5725
|
height: v,
|
|
@@ -5734,12 +5736,12 @@ async function wx(r) {
|
|
|
5734
5736
|
} catch {
|
|
5735
5737
|
return;
|
|
5736
5738
|
}
|
|
5737
|
-
},
|
|
5738
|
-
for (const y of
|
|
5739
|
+
}, x = {}, a = /* @__PURE__ */ new Map();
|
|
5740
|
+
for (const y of t) {
|
|
5739
5741
|
const $ = y.sourceName || y.layerName;
|
|
5740
|
-
$ && (
|
|
5742
|
+
$ && (x[$] = {
|
|
5741
5743
|
url: y.url
|
|
5742
|
-
}, a.set($, y.url)), y.layerName && y.layerName !== $ && (
|
|
5744
|
+
}, a.set($, y.url)), y.layerName && y.layerName !== $ && (x[y.layerName] || (x[y.layerName] = {
|
|
5743
5745
|
url: y.url
|
|
5744
5746
|
}), a.set(y.layerName, y.url));
|
|
5745
5747
|
}
|
|
@@ -5750,30 +5752,30 @@ async function wx(r) {
|
|
|
5750
5752
|
const W = y.color || (y.name && ["粉", "白", "绿", "红", "蓝", "黄", "黑", "灰"].includes(y.name) ? y.name : $);
|
|
5751
5753
|
if (y.type === "Layer") {
|
|
5752
5754
|
if (y.imagePath) {
|
|
5753
|
-
const O =
|
|
5755
|
+
const O = t.find((I) => {
|
|
5754
5756
|
const b = I.sourceName || I.layerName;
|
|
5755
5757
|
return !b || !y.imagePath ? !1 : b === y.imagePath || b.endsWith(y.imagePath) || y.imagePath.endsWith(b);
|
|
5756
5758
|
});
|
|
5757
|
-
O && (
|
|
5759
|
+
O && (x[y.imagePath] = {
|
|
5758
5760
|
url: O.url
|
|
5759
5761
|
});
|
|
5760
5762
|
}
|
|
5761
5763
|
if (y.name) {
|
|
5762
5764
|
if (W) {
|
|
5763
|
-
const O = `${W}-${y.name}`, I =
|
|
5765
|
+
const O = `${W}-${y.name}`, I = t.find((b) => {
|
|
5764
5766
|
const k = b.sourceName || b.layerName;
|
|
5765
5767
|
return k ? (k.split("/").pop() || k).replace(/\.(png|jpg|jpeg|gif|webp)$/i, "").startsWith(`${W}-${y.name}`) : !1;
|
|
5766
5768
|
});
|
|
5767
|
-
I && (
|
|
5769
|
+
I && (x[O] = {
|
|
5768
5770
|
url: I.url
|
|
5769
5771
|
});
|
|
5770
5772
|
}
|
|
5771
5773
|
if (y.imagePath && y.name) {
|
|
5772
|
-
const O = y.imagePath.split("/").pop() || y.imagePath, I =
|
|
5774
|
+
const O = y.imagePath.split("/").pop() || y.imagePath, I = t.find((b) => {
|
|
5773
5775
|
const k = b.sourceName || b.layerName;
|
|
5774
5776
|
return k ? (k.split("/").pop() || k) === O : !1;
|
|
5775
5777
|
});
|
|
5776
|
-
I && (
|
|
5778
|
+
I && (x[y.imagePath] = {
|
|
5777
5779
|
url: I.url
|
|
5778
5780
|
});
|
|
5779
5781
|
}
|
|
@@ -5791,7 +5793,7 @@ async function wx(r) {
|
|
|
5791
5793
|
for (const I of y.children)
|
|
5792
5794
|
if (I && I.isSmartObject === !0) {
|
|
5793
5795
|
const b = I?.name || "";
|
|
5794
|
-
b && !
|
|
5796
|
+
b && !x[b] && (x[b] = {}), b && (x[b].designImage = O);
|
|
5795
5797
|
}
|
|
5796
5798
|
}
|
|
5797
5799
|
}
|
|
@@ -5807,7 +5809,7 @@ async function wx(r) {
|
|
|
5807
5809
|
y && l(y);
|
|
5808
5810
|
const h = Ke([{
|
|
5809
5811
|
psdJson: d,
|
|
5810
|
-
layerExtrasByName:
|
|
5812
|
+
layerExtrasByName: x
|
|
5811
5813
|
}], {
|
|
5812
5814
|
parts: [],
|
|
5813
5815
|
defaultIdStart: 1
|
|
@@ -5818,20 +5820,20 @@ async function wx(r) {
|
|
|
5818
5820
|
if (!f.psdPartData)
|
|
5819
5821
|
throw new Error("JSON 数据中没有 psdPartData");
|
|
5820
5822
|
const E = f.width, o = f.height, i = s0(E, o), s = Ce(i), F = [], D = (y) => {
|
|
5821
|
-
if (y.url &&
|
|
5822
|
-
return
|
|
5823
|
+
if (y.url && x[y.url])
|
|
5824
|
+
return x[y.url];
|
|
5823
5825
|
if (y.url) {
|
|
5824
5826
|
const $ = y.url.split("/").pop() || y.url;
|
|
5825
|
-
if (
|
|
5826
|
-
return
|
|
5827
|
-
const W =
|
|
5827
|
+
if (x[$])
|
|
5828
|
+
return x[$];
|
|
5829
|
+
const W = t.find((O) => {
|
|
5828
5830
|
const I = O.sourceName || O.layerName;
|
|
5829
5831
|
return !I || !y.url ? !1 : (I.split("/").pop() || I) === $ || I === y.url || I.endsWith(y.url) || y.url.endsWith(I);
|
|
5830
5832
|
});
|
|
5831
5833
|
if (W) {
|
|
5832
5834
|
const O = W.sourceName || W.layerName;
|
|
5833
5835
|
if (O)
|
|
5834
|
-
return
|
|
5836
|
+
return x[O] || { url: W.url };
|
|
5835
5837
|
}
|
|
5836
5838
|
}
|
|
5837
5839
|
};
|
|
@@ -5856,13 +5858,13 @@ async function wx(r) {
|
|
|
5856
5858
|
const I = $.smartObjects[O];
|
|
5857
5859
|
if (!I || !I.name)
|
|
5858
5860
|
continue;
|
|
5859
|
-
let b =
|
|
5860
|
-
if (!b && I.imagePath && (b =
|
|
5861
|
+
let b = x[I.name] ?? W;
|
|
5862
|
+
if (!b && I.imagePath && (b = x[I.imagePath], !b)) {
|
|
5861
5863
|
const T = I.imagePath.split("/").pop() || I.imagePath;
|
|
5862
|
-
if (b =
|
|
5863
|
-
const j =
|
|
5864
|
-
const
|
|
5865
|
-
return !
|
|
5864
|
+
if (b = x[T], !b) {
|
|
5865
|
+
const j = t.find((M) => {
|
|
5866
|
+
const Y = M.sourceName || M.layerName;
|
|
5867
|
+
return !Y || !I.imagePath ? !1 : (Y.split("/").pop() || Y) === T || Y === I.imagePath || Y.endsWith(I.imagePath) || I.imagePath.endsWith(Y);
|
|
5866
5868
|
});
|
|
5867
5869
|
j && (b = { url: j.url });
|
|
5868
5870
|
}
|
|
@@ -5974,30 +5976,30 @@ async function wx(r) {
|
|
|
5974
5976
|
m && !S && (s.globalCompositeOperation = $r(P), s.drawImage(z, 0, 0), s.globalCompositeOperation = "source-over", m = !1);
|
|
5975
5977
|
}
|
|
5976
5978
|
z = null, B = null;
|
|
5977
|
-
let H = i,
|
|
5979
|
+
let H = i, L = E, q = o;
|
|
5978
5980
|
if (u !== void 0 || v !== void 0) {
|
|
5979
5981
|
if (u !== void 0 && v !== void 0)
|
|
5980
|
-
|
|
5982
|
+
L = u, q = v;
|
|
5981
5983
|
else if (u !== void 0) {
|
|
5982
5984
|
const $ = u / E;
|
|
5983
|
-
|
|
5985
|
+
L = u, q = Math.round(o * $);
|
|
5984
5986
|
} else if (v !== void 0) {
|
|
5985
5987
|
const $ = v / o;
|
|
5986
|
-
|
|
5988
|
+
L = Math.round(E * $), q = v;
|
|
5987
5989
|
}
|
|
5988
|
-
H = s0(
|
|
5990
|
+
H = s0(L, q);
|
|
5989
5991
|
const y = Ce(H);
|
|
5990
|
-
y.imageSmoothingEnabled = !0, y.imageSmoothingQuality = "high", y.drawImage(i, 0, 0, E, o, 0, 0,
|
|
5992
|
+
y.imageSmoothingEnabled = !0, y.imageSmoothingQuality = "high", y.drawImage(i, 0, 0, E, o, 0, 0, L, q);
|
|
5991
5993
|
}
|
|
5992
5994
|
return performance.now(), {
|
|
5993
5995
|
canvas: H,
|
|
5994
|
-
width:
|
|
5995
|
-
height:
|
|
5996
|
+
width: L,
|
|
5997
|
+
height: q
|
|
5996
5998
|
};
|
|
5997
5999
|
}
|
|
5998
6000
|
const kx = async (r) => {
|
|
5999
|
-
const
|
|
6000
|
-
return
|
|
6001
|
+
const t = (await wx(r)).canvas;
|
|
6002
|
+
return t ? createImageBitmap(t) : null;
|
|
6001
6003
|
};
|
|
6002
6004
|
self.onmessage = async (r) => {
|
|
6003
6005
|
const d = r.data;
|
|
@@ -6011,13 +6013,13 @@ self.onmessage = async (r) => {
|
|
|
6011
6013
|
});
|
|
6012
6014
|
return;
|
|
6013
6015
|
}
|
|
6014
|
-
const
|
|
6016
|
+
const t = d;
|
|
6015
6017
|
try {
|
|
6016
|
-
const e = await kx(
|
|
6017
|
-
self.postMessage({ id:
|
|
6018
|
+
const e = await kx(t.renderData);
|
|
6019
|
+
self.postMessage({ id: t.id, bitmap: e }, e ? [e] : []);
|
|
6018
6020
|
} catch (e) {
|
|
6019
6021
|
self.postMessage({
|
|
6020
|
-
id:
|
|
6022
|
+
id: t.id,
|
|
6021
6023
|
error: e instanceof Error ? e.message : String(e)
|
|
6022
6024
|
});
|
|
6023
6025
|
}
|