@jieyin/editor-sdk-test 1.1.173 → 1.1.174
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/editor-sdk.es.js +3574 -3606
- package/dist/renderWorker.js +859 -857
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/renderWorker.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var D0 = /* @__PURE__ */ ((r) => (r[r.Group = 0] = "Group", r[r.Layer = 1] = "Layer", r))(D0 || {});
|
|
2
|
-
function
|
|
2
|
+
function et(r) {
|
|
3
3
|
let d = r;
|
|
4
4
|
return () => {
|
|
5
5
|
const t = d;
|
|
6
6
|
return d += 1, t;
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function tt(r, d) {
|
|
10
10
|
return {
|
|
11
11
|
name: r.name || "",
|
|
12
12
|
type: r.type || "Layer",
|
|
@@ -29,23 +29,23 @@ function et(r, d) {
|
|
|
29
29
|
clipping: r.clipping
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
function
|
|
33
|
-
let
|
|
34
|
-
if (r.type === "Group" &&
|
|
32
|
+
function xt(r, d, t, e) {
|
|
33
|
+
let u = r.name || "", v = d[u], _ = v?.partId ?? (r.type === "Group" ? t.get(u) : void 0);
|
|
34
|
+
if (r.type === "Group" && _ === void 0 && (!v || v.id === void 0) && r.children && r.children.length === 1) {
|
|
35
35
|
const x = r.children[0].name, n = d[x], E = n?.partId ?? t.get(x);
|
|
36
|
-
(E !== void 0 || n?.id !== void 0) && (
|
|
36
|
+
(E !== void 0 || n?.id !== void 0) && (u = x, v = n, _ = E);
|
|
37
37
|
}
|
|
38
38
|
const B = r.id ?? v?.id ?? e();
|
|
39
39
|
if (r.type === "Group")
|
|
40
40
|
return {
|
|
41
41
|
id: B,
|
|
42
|
-
partId:
|
|
43
|
-
name:
|
|
42
|
+
partId: _,
|
|
43
|
+
name: u,
|
|
44
44
|
blendMode: r.blendMode || "normal",
|
|
45
45
|
bounds: r.bounds || { left: 0, top: 0, width: 0, height: 0 },
|
|
46
46
|
type: D0.Group,
|
|
47
47
|
smartObjects: (r.children ?? []).map(
|
|
48
|
-
(x) =>
|
|
48
|
+
(x) => tt(x, r.vectorMask)
|
|
49
49
|
),
|
|
50
50
|
opacity: r.opacity,
|
|
51
51
|
clipping: r.clipping,
|
|
@@ -64,16 +64,16 @@ function tt(r, d, t, e) {
|
|
|
64
64
|
layerOrder: r.layerOrder
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
|
-
function
|
|
68
|
-
const t = new Map(d.parts.map((
|
|
67
|
+
function nt(r, d) {
|
|
68
|
+
const t = new Map(d.parts.map((u) => [u.name, u.id])), e = et(d.defaultIdStart ?? 1);
|
|
69
69
|
return {
|
|
70
70
|
parts: d.parts,
|
|
71
|
-
models: r.map((
|
|
72
|
-
const v =
|
|
71
|
+
models: r.map((u) => {
|
|
72
|
+
const v = u.layerExtrasByName ?? {}, _ = u.psdJson, B = _.layerList || _.layerList || [], C = _.canvasWidth, x = _.canvasHeight;
|
|
73
73
|
if (!C || !x)
|
|
74
74
|
throw new Error(`无法获取 PSD 画布尺寸: canvasWidth=${C}, canvasHeight=${x}。请确保 jsonurl 中的 canvasWidth 和 canvasHeight 存在`);
|
|
75
75
|
const n = (s) => {
|
|
76
|
-
const
|
|
76
|
+
const f = [];
|
|
77
77
|
for (const p of s)
|
|
78
78
|
if (p.type === "Group" && p.children) {
|
|
79
79
|
const h = [], D = [], i = [...p.children].sort((o, l) => {
|
|
@@ -84,17 +84,17 @@ function xt(r, d) {
|
|
|
84
84
|
o.isSmartObject === !0 ? h.push(o) : D.push(o);
|
|
85
85
|
if (D.length > 0) {
|
|
86
86
|
const o = n(D);
|
|
87
|
-
|
|
87
|
+
f.push(...o);
|
|
88
88
|
}
|
|
89
|
-
h.length > 0 &&
|
|
89
|
+
h.length > 0 && f.push({
|
|
90
90
|
...p,
|
|
91
91
|
children: h
|
|
92
92
|
});
|
|
93
93
|
} else
|
|
94
|
-
|
|
95
|
-
return
|
|
94
|
+
f.push(p);
|
|
95
|
+
return f;
|
|
96
96
|
}, a = n(B).map(
|
|
97
|
-
(s) =>
|
|
97
|
+
(s) => xt(s, v, t, e)
|
|
98
98
|
);
|
|
99
99
|
return {
|
|
100
100
|
width: C,
|
|
@@ -104,10 +104,10 @@ function xt(r, d) {
|
|
|
104
104
|
})
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function at(r) {
|
|
108
108
|
return r ? r.vectorMask && r.vectorMask.paths && Array.isArray(r.vectorMask.paths) ? { type: "bezier", paths: r.vectorMask.paths } : Array.isArray(r.vectorMask) ? { type: "simple", points: r.vectorMask } : null : null;
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function ot(r) {
|
|
111
111
|
return r ? r.type === "bezier" ? {
|
|
112
112
|
type: "bezier",
|
|
113
113
|
paths: r.paths.map((d) => ({
|
|
@@ -126,23 +126,23 @@ function at(r) {
|
|
|
126
126
|
}))
|
|
127
127
|
} : null : null;
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function Br(r, d) {
|
|
130
130
|
if (d) {
|
|
131
131
|
if (r.globalCompositeOperation = "destination-in", r.beginPath(), d.type === "bezier" && Array.isArray(d.paths))
|
|
132
132
|
d.paths.forEach((t) => {
|
|
133
133
|
const e = t.knots;
|
|
134
134
|
if (!e || e.length < 2) return;
|
|
135
|
-
const
|
|
136
|
-
r.moveTo(
|
|
135
|
+
const u = e[0];
|
|
136
|
+
r.moveTo(u.points[2], u.points[3]);
|
|
137
137
|
for (let v = 0; v < e.length; v++) {
|
|
138
|
-
const
|
|
138
|
+
const _ = e[v];
|
|
139
139
|
let B = (v + 1) % e.length;
|
|
140
140
|
if (!t.open && v === e.length - 1)
|
|
141
141
|
B = 0;
|
|
142
142
|
else if (t.open && v === e.length - 1)
|
|
143
143
|
break;
|
|
144
|
-
const C = e[B], x =
|
|
145
|
-
r.bezierCurveTo(x, n, E, a, s,
|
|
144
|
+
const C = e[B], x = _.points[4], n = _.points[5], E = C.points[0], a = C.points[1], s = C.points[2], f = C.points[3];
|
|
145
|
+
r.bezierCurveTo(x, n, E, a, s, f);
|
|
146
146
|
}
|
|
147
147
|
t.open || r.closePath();
|
|
148
148
|
});
|
|
@@ -209,7 +209,7 @@ class p0 {
|
|
|
209
209
|
return this.hasStorage;
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
|
-
class
|
|
212
|
+
class lr {
|
|
213
213
|
/**
|
|
214
214
|
* 是否在浏览器环境
|
|
215
215
|
*/
|
|
@@ -253,7 +253,7 @@ class v0 {
|
|
|
253
253
|
*/
|
|
254
254
|
static parse(d) {
|
|
255
255
|
try {
|
|
256
|
-
const t =
|
|
256
|
+
const t = lr.getOrigin();
|
|
257
257
|
return new URL(d, t);
|
|
258
258
|
} catch {
|
|
259
259
|
return null;
|
|
@@ -263,8 +263,8 @@ class v0 {
|
|
|
263
263
|
* 添加查询参数
|
|
264
264
|
*/
|
|
265
265
|
static addParam(d, t, e) {
|
|
266
|
-
const
|
|
267
|
-
return !
|
|
266
|
+
const u = this.parse(d);
|
|
267
|
+
return !u || u.searchParams.has(t) ? d : (u.searchParams.set(t, e), this.formatUrl(d, u));
|
|
268
268
|
}
|
|
269
269
|
/**
|
|
270
270
|
* 移除查询参数
|
|
@@ -283,8 +283,8 @@ class v0 {
|
|
|
283
283
|
* 格式化 URL(保持原始格式)
|
|
284
284
|
*/
|
|
285
285
|
static formatUrl(d, t) {
|
|
286
|
-
const e = /^(https?:)?\/\//i.test(d),
|
|
287
|
-
return e ? t.toString() :
|
|
286
|
+
const e = /^(https?:)?\/\//i.test(d), u = d.startsWith("//");
|
|
287
|
+
return e ? t.toString() : u ? t.toString().replace(/^https?:/, "") : `${t.pathname}${t.search}${t.hash}`;
|
|
288
288
|
}
|
|
289
289
|
/**
|
|
290
290
|
* 检查是否为数据 URL
|
|
@@ -299,201 +299,203 @@ class v0 {
|
|
|
299
299
|
return d?.startsWith("blob:") ?? !1;
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
|
-
const
|
|
303
|
-
function
|
|
304
|
-
|
|
302
|
+
const it = /* @__PURE__ */ new Map(), st = /* @__PURE__ */ new Map();
|
|
303
|
+
function ct() {
|
|
304
|
+
it.clear(), st.clear();
|
|
305
305
|
}
|
|
306
|
+
const x0 = b0;
|
|
306
307
|
(function(r, d) {
|
|
307
|
-
const t =
|
|
308
|
+
const t = b0, e = r();
|
|
308
309
|
for (; ; )
|
|
309
310
|
try {
|
|
310
|
-
if (
|
|
311
|
+
if (parseInt(t(412)) / 1 + parseInt(t(435)) / 2 * (-parseInt(t(438)) / 3) + parseInt(t(434)) / 4 + -parseInt(t(411)) / 5 + parseInt(t(410)) / 6 * (-parseInt(t(429)) / 7) + parseInt(t(419)) / 8 + parseInt(t(402)) / 9 === d) break;
|
|
311
312
|
e.push(e.shift());
|
|
312
313
|
} catch {
|
|
313
314
|
e.push(e.shift());
|
|
314
315
|
}
|
|
315
|
-
})(
|
|
316
|
-
function J(r, d) {
|
|
317
|
-
return r = r - (348 + -3446 * -1 + -3396), ur()[r];
|
|
318
|
-
}
|
|
316
|
+
})(dr, 941451);
|
|
319
317
|
const F0 = /* @__PURE__ */ (function() {
|
|
320
318
|
let r = !0;
|
|
321
319
|
return function(d, t) {
|
|
322
320
|
const e = r ? function() {
|
|
323
|
-
const c = J;
|
|
324
321
|
if (t) {
|
|
325
|
-
const
|
|
326
|
-
return t = null,
|
|
322
|
+
const u = t.apply(d, arguments);
|
|
323
|
+
return t = null, u;
|
|
327
324
|
}
|
|
328
325
|
} : function() {
|
|
329
326
|
};
|
|
330
327
|
return r = !1, e;
|
|
331
328
|
};
|
|
332
|
-
})(),
|
|
333
|
-
const r =
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
329
|
+
})(), ft = F0(void 0, function() {
|
|
330
|
+
const r = b0, d = function() {
|
|
331
|
+
const v = b0;
|
|
332
|
+
let _;
|
|
333
|
+
try {
|
|
334
|
+
_ = Function("return (function() " + ("{}.co" + v(418) + v(423) + '"return this")( )') + ");")();
|
|
335
|
+
} catch {
|
|
336
|
+
_ = window;
|
|
337
|
+
}
|
|
338
|
+
return _;
|
|
339
|
+
}, t = d(), e = t.console = t.console || {}, u = ["log", "warn", "info", r(433), r(422) + r(436), "table", "trace"];
|
|
340
|
+
for (let v = 6784 + -8 * 848; v < u.length; v++) {
|
|
341
|
+
const _ = F0[r(430) + r(406) + "r"].prototype.bind(F0), B = u[v], C = e[B] || _;
|
|
342
|
+
_.__proto__ = F0.bind(F0), _[r(405) + "ing"] = C[r(405) + "ing"].bind(C), e[B] = _;
|
|
344
343
|
}
|
|
345
344
|
});
|
|
346
|
-
|
|
347
|
-
const
|
|
348
|
-
function
|
|
349
|
-
|
|
345
|
+
function dr() {
|
|
346
|
+
const r = ["expir", "clone", "nstru", "5229936WOebow", "efres", "isBro", "excep", "ctor(", "code", "bUrl", "remov", "token", "numbe", "184443bLpUyk", "const", "es_in", "re_ti", "error", "1740876xMDZrN", "4bZylZE", "tion", "set", "1122921aedhgA", "inclu", "oken=", "delet", "setIt", "data", "15277311FQGKQf", "okenR", "getIt", "toStr", "ructo", "statu", "fetch", "file_", "246APEkym", "2166140uAkRUq", "417162gcmIfy", "oken", "FileT", "parse"];
|
|
347
|
+
return dr = function() {
|
|
348
|
+
return r;
|
|
349
|
+
}, dr();
|
|
350
350
|
}
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
if (!e) return !1;
|
|
356
|
-
const c = Number(e);
|
|
357
|
-
return Date[d(408)]() + r > c;
|
|
351
|
+
ft();
|
|
352
|
+
const Dr = x0(409) + "token", br = "file_token_expi" + x0(432) + "me", ut = 60 * (1496 * 5 + 2403 + -8883);
|
|
353
|
+
function Fr() {
|
|
354
|
+
return p0[x0(404) + "em"](Dr);
|
|
358
355
|
}
|
|
359
|
-
function dt(r
|
|
360
|
-
|
|
361
|
-
|
|
356
|
+
function dt(r = ut) {
|
|
357
|
+
if (!Fr()) return !0;
|
|
358
|
+
const t = p0.getItem(br);
|
|
359
|
+
if (!t) return !1;
|
|
360
|
+
const e = Number(t);
|
|
361
|
+
return Date.now() + r > e;
|
|
362
|
+
}
|
|
363
|
+
function lt(r, d) {
|
|
364
|
+
const t = x0;
|
|
365
|
+
if (p0.setItem(Dr, r), typeof d == t(428) + "r" && d > 386 * 1 + -1 * -7935 + -8321) {
|
|
362
366
|
const e = Date.now() + d * 1e3;
|
|
363
|
-
p0[t(
|
|
367
|
+
p0[t(442) + "em"](br, String(e));
|
|
364
368
|
}
|
|
365
369
|
}
|
|
366
|
-
function
|
|
367
|
-
|
|
370
|
+
function ht() {
|
|
371
|
+
const r = x0;
|
|
372
|
+
p0[r(426) + "eItem"](Dr), p0[r(426) + "eItem"](br), bt(), ct();
|
|
373
|
+
}
|
|
374
|
+
async function qr(r) {
|
|
375
|
+
const d = x0, t = await r(), e = t?.data?.data;
|
|
376
|
+
return t?.[d(401)]?.[d(424)] === -1 * 7625 + -391 * -9 + 4306 && e?.["file_token"] ? (lt(e.file_token, e[d(416) + d(431)]), e["file_" + d(427)]) : null;
|
|
368
377
|
}
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
return
|
|
378
|
+
let vt = null;
|
|
379
|
+
function b0(r, d) {
|
|
380
|
+
return r = r - 401, dr()[r];
|
|
372
381
|
}
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
return dr.isBrowser() ? ht : null;
|
|
382
|
+
function Tr() {
|
|
383
|
+
return lr.isBrowser() ? vt : null;
|
|
376
384
|
}
|
|
377
|
-
async function
|
|
378
|
-
const r =
|
|
379
|
-
if (!
|
|
380
|
-
const d =
|
|
381
|
-
if (d && !
|
|
385
|
+
async function we() {
|
|
386
|
+
const r = x0;
|
|
387
|
+
if (!lr[r(421) + "wser"]()) return Fr();
|
|
388
|
+
const d = Fr();
|
|
389
|
+
if (d && !dt()) return d;
|
|
382
390
|
try {
|
|
383
|
-
const t = await
|
|
384
|
-
if (d && t?.[
|
|
385
|
-
const e = await
|
|
391
|
+
const t = await Tr();
|
|
392
|
+
if (d && t?.[r(408) + "FileT" + r(403) + r(420) + "h"]) {
|
|
393
|
+
const e = await qr(t["fetchFileT" + r(403) + "efresh"]);
|
|
386
394
|
if (e) return e;
|
|
387
395
|
}
|
|
388
396
|
} catch {
|
|
389
397
|
}
|
|
390
398
|
try {
|
|
391
|
-
const t =
|
|
392
|
-
return t?.["
|
|
399
|
+
const t = Tr();
|
|
400
|
+
return t?.[r(408) + r(414) + "oken"] ? await qr(t[r(408) + r(414) + "oken"]) : null;
|
|
393
401
|
} catch {
|
|
394
402
|
return null;
|
|
395
403
|
}
|
|
396
404
|
}
|
|
397
|
-
function
|
|
398
|
-
const d =
|
|
399
|
-
if (!r || v0.isDataUrl(r) || v0["isBlo" + d(
|
|
400
|
-
const t = v0[d(
|
|
401
|
-
return t ? t.pathname.includes(
|
|
405
|
+
function ke(r) {
|
|
406
|
+
const d = x0;
|
|
407
|
+
if (!r || v0.isDataUrl(r) || v0["isBlo" + d(425)](r)) return !1;
|
|
408
|
+
const t = v0[d(415)](r);
|
|
409
|
+
return t ? t.pathname.includes("/files/") && !v0.hasParam(r, "fileToken") : r.includes("/files/") && !r[d(439) + "des"]("fileT" + d(440));
|
|
402
410
|
}
|
|
403
|
-
function
|
|
404
|
-
|
|
405
|
-
return !d || !we(r) ? r : v0["addPa" + t(412)](r, "fileT" + t(415), d);
|
|
411
|
+
function Se(r, d) {
|
|
412
|
+
return !d || !ke(r) ? r : v0.addParam(r, "fileToken", d);
|
|
406
413
|
}
|
|
407
|
-
function
|
|
408
|
-
const
|
|
409
|
-
return
|
|
410
|
-
return r;
|
|
411
|
-
}, ur();
|
|
414
|
+
function He(r) {
|
|
415
|
+
const d = x0;
|
|
416
|
+
return v0.removeParam(r, "fileT" + d(413));
|
|
412
417
|
}
|
|
413
|
-
function
|
|
414
|
-
|
|
418
|
+
async function pt(r) {
|
|
419
|
+
if (!ke(r)) return r;
|
|
420
|
+
const d = await we();
|
|
421
|
+
return Se(r, d);
|
|
415
422
|
}
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
return ke(r, d);
|
|
423
|
+
const Cr = /* @__PURE__ */ new Map();
|
|
424
|
+
function Bt(r, d) {
|
|
425
|
+
return "GET".toUpperCase() + "\0" + r;
|
|
420
426
|
}
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
async function Bt(r, d) {
|
|
427
|
-
const t = J;
|
|
428
|
-
if (!dr[t(401) + "wser"]()) return fetch(r, d);
|
|
429
|
-
const e = Se(r), c = pt(e);
|
|
430
|
-
let v = Br.get(c);
|
|
427
|
+
async function Ct(r, d) {
|
|
428
|
+
const t = x0;
|
|
429
|
+
if (!lr.isBrowser()) return fetch(r, d);
|
|
430
|
+
const e = He(r), u = Bt(e);
|
|
431
|
+
let v = Cr.get(u);
|
|
431
432
|
return !v && (v = (async () => {
|
|
433
|
+
const B = b0;
|
|
432
434
|
try {
|
|
433
|
-
const
|
|
434
|
-
let
|
|
435
|
-
if (
|
|
436
|
-
|
|
437
|
-
const
|
|
438
|
-
return
|
|
435
|
+
const C = await pt(e);
|
|
436
|
+
let x = await fetch(C, d);
|
|
437
|
+
if (x[B(407) + "s"] !== -4739 + -1285 * -4) return x;
|
|
438
|
+
ht();
|
|
439
|
+
const n = await we(), E = Se(e, n);
|
|
440
|
+
return x = await fetch(E, d), x;
|
|
439
441
|
} finally {
|
|
440
|
-
|
|
442
|
+
Cr[B(441) + "e"](u);
|
|
441
443
|
}
|
|
442
|
-
})(),
|
|
444
|
+
})(), Cr[t(437)](u, v)), (await v)[t(417)]();
|
|
443
445
|
}
|
|
444
|
-
const
|
|
445
|
-
let
|
|
446
|
-
const
|
|
447
|
-
function
|
|
448
|
-
return `${"GET".toUpperCase()}\0${
|
|
446
|
+
const Et = 96, At = 200 * 1024 * 1024, t0 = /* @__PURE__ */ new Map();
|
|
447
|
+
let hr = 0;
|
|
448
|
+
const w0 = /* @__PURE__ */ new Map();
|
|
449
|
+
function Ft(r, d) {
|
|
450
|
+
return `${"GET".toUpperCase()}\0${He(r)}`;
|
|
449
451
|
}
|
|
450
|
-
function
|
|
451
|
-
const r =
|
|
452
|
+
function gt() {
|
|
453
|
+
const r = t0.keys().next().value;
|
|
452
454
|
if (r === void 0) return;
|
|
453
|
-
const d =
|
|
454
|
-
|
|
455
|
+
const d = t0.get(r);
|
|
456
|
+
t0.delete(r), d && (hr -= d.size);
|
|
455
457
|
}
|
|
456
|
-
function
|
|
457
|
-
for (;
|
|
458
|
-
const d =
|
|
458
|
+
function Dt(r) {
|
|
459
|
+
for (; t0.size > 0; ) {
|
|
460
|
+
const d = t0.size >= Et, t = hr + r > At;
|
|
459
461
|
if (!d && !t) break;
|
|
460
|
-
|
|
462
|
+
gt();
|
|
461
463
|
}
|
|
462
464
|
}
|
|
463
|
-
async function
|
|
464
|
-
const t =
|
|
465
|
+
async function $e(r, d) {
|
|
466
|
+
const t = Ft(r), e = t0.get(t);
|
|
465
467
|
if (e)
|
|
466
|
-
return
|
|
467
|
-
let
|
|
468
|
-
return
|
|
468
|
+
return t0.delete(t), t0.set(t, e), e;
|
|
469
|
+
let u = w0.get(t);
|
|
470
|
+
return u || (u = (async () => {
|
|
469
471
|
try {
|
|
470
|
-
const v = await
|
|
472
|
+
const v = await Ct(r, d);
|
|
471
473
|
if (!v.ok)
|
|
472
474
|
throw new Error(`fetch failed: ${v.status} ${v.statusText}`);
|
|
473
|
-
const
|
|
474
|
-
return
|
|
475
|
+
const _ = await v.blob();
|
|
476
|
+
return Dt(_.size), t0.set(t, _), hr += _.size, _;
|
|
475
477
|
} finally {
|
|
476
|
-
|
|
478
|
+
w0.delete(t);
|
|
477
479
|
}
|
|
478
|
-
})(),
|
|
480
|
+
})(), w0.set(t, u), u);
|
|
479
481
|
}
|
|
480
|
-
function
|
|
481
|
-
|
|
482
|
+
function bt() {
|
|
483
|
+
t0.clear(), w0.clear(), hr = 0;
|
|
482
484
|
}
|
|
483
|
-
const
|
|
485
|
+
const Re = (r, d) => {
|
|
484
486
|
if (!r) return r;
|
|
485
487
|
const t = (d || "").replace(/\/$/, "");
|
|
486
488
|
if (t && r.startsWith(t))
|
|
487
489
|
return r;
|
|
488
490
|
if (typeof window < "u") {
|
|
489
|
-
const
|
|
490
|
-
if (
|
|
491
|
+
const u = window.location.hostname;
|
|
492
|
+
if (u === "localhost" || u === "127.0.0.1")
|
|
491
493
|
try {
|
|
492
494
|
const v = new URL(r);
|
|
493
495
|
if (t)
|
|
494
496
|
try {
|
|
495
|
-
const
|
|
496
|
-
if (v.origin ===
|
|
497
|
+
const _ = new URL(t).origin;
|
|
498
|
+
if (v.origin === _)
|
|
497
499
|
return r;
|
|
498
500
|
} catch {
|
|
499
501
|
}
|
|
@@ -505,33 +507,33 @@ const $e = (r, d) => {
|
|
|
505
507
|
if (typeof window < "u" && window.location.hostname !== "localhost") return r;
|
|
506
508
|
const e = r.match(/^https?:\/\/([^/]+\.oss[^/]*\.aliyuncs\.com)(.*)$/);
|
|
507
509
|
return e ? `/oss${e[2]}` : r;
|
|
508
|
-
},
|
|
510
|
+
}, mt = (r, d) => {
|
|
509
511
|
if (typeof OffscreenCanvas < "u" && typeof document > "u")
|
|
510
512
|
return new OffscreenCanvas(r, d);
|
|
511
513
|
const t = document.createElement("canvas");
|
|
512
514
|
return t.width = r, t.height = d, t;
|
|
513
|
-
},
|
|
515
|
+
}, k0 = async (r, d) => {
|
|
514
516
|
if (!d || d <= 0) return r;
|
|
515
517
|
const t = Math.max(r.width, r.height);
|
|
516
518
|
if (t <= d) return r;
|
|
517
|
-
const e = d / t,
|
|
518
|
-
return B ? (B.drawImage(r, 0, 0,
|
|
519
|
+
const e = d / t, u = Math.max(1, Math.round(r.width * e)), v = Math.max(1, Math.round(r.height * e)), _ = mt(u, v), B = _.getContext("2d");
|
|
520
|
+
return B ? (B.drawImage(r, 0, 0, u, v), r.close?.(), await createImageBitmap(_)) : r;
|
|
519
521
|
};
|
|
520
|
-
async function
|
|
522
|
+
async function _t(r, d, t) {
|
|
521
523
|
if (typeof r == "string")
|
|
522
524
|
try {
|
|
523
|
-
const e =
|
|
524
|
-
let
|
|
525
|
+
const e = Re(r, t);
|
|
526
|
+
let u;
|
|
525
527
|
try {
|
|
526
|
-
|
|
528
|
+
u = await $e(e);
|
|
527
529
|
} catch {
|
|
528
530
|
throw new Error(`加载图片失败: ${r}`);
|
|
529
531
|
}
|
|
530
|
-
if (!
|
|
532
|
+
if (!u.type.startsWith("image/") && u.size === 0)
|
|
531
533
|
throw new Error(`图片数据无效: URL=${r}`);
|
|
532
534
|
try {
|
|
533
|
-
const v = await createImageBitmap(
|
|
534
|
-
return await
|
|
535
|
+
const v = await createImageBitmap(u);
|
|
536
|
+
return await k0(v, d);
|
|
535
537
|
} catch (v) {
|
|
536
538
|
throw new Error(`图片解码失败: URL=${r}, 错误=${v instanceof Error ? v.message : v}`);
|
|
537
539
|
}
|
|
@@ -539,13 +541,13 @@ async function mt(r, d, t) {
|
|
|
539
541
|
throw e instanceof Error ? e : new Error(`加载图片失败: ${r}, ${e}`);
|
|
540
542
|
}
|
|
541
543
|
if (r instanceof HTMLImageElement) {
|
|
542
|
-
if ((!r.complete || r.naturalWidth === 0) && await new Promise((e,
|
|
543
|
-
r.onload = e, r.onerror = () =>
|
|
544
|
+
if ((!r.complete || r.naturalWidth === 0) && await new Promise((e, u) => {
|
|
545
|
+
r.onload = e, r.onerror = () => u(new Error(`图片加载失败: src=${r.src}`)), r.complete && e(null);
|
|
544
546
|
}), r.naturalWidth === 0 || r.naturalHeight === 0)
|
|
545
547
|
throw new Error(`图片尺寸无效: src=${r.src}, width=${r.naturalWidth}, height=${r.naturalHeight}`);
|
|
546
548
|
try {
|
|
547
549
|
const e = await createImageBitmap(r);
|
|
548
|
-
return await
|
|
550
|
+
return await k0(e, d);
|
|
549
551
|
} catch (e) {
|
|
550
552
|
throw new Error(`图片解码失败: src=${r.src}, 错误=${e instanceof Error ? e.message : e}`);
|
|
551
553
|
}
|
|
@@ -553,24 +555,24 @@ async function mt(r, d, t) {
|
|
|
553
555
|
if (r instanceof ImageBitmap) {
|
|
554
556
|
if (r.width === 0 || r.height === 0)
|
|
555
557
|
throw new Error(`ImageBitmap 尺寸无效: width=${r.width}, height=${r.height}`);
|
|
556
|
-
return await
|
|
558
|
+
return await k0(r, d);
|
|
557
559
|
}
|
|
558
560
|
throw new Error("不支持的图片类型");
|
|
559
561
|
}
|
|
560
|
-
async function
|
|
562
|
+
async function yt(r, d, t) {
|
|
561
563
|
try {
|
|
562
|
-
const e =
|
|
563
|
-
let
|
|
564
|
+
const e = Re(r, t);
|
|
565
|
+
let u;
|
|
564
566
|
try {
|
|
565
|
-
|
|
567
|
+
u = await $e(e);
|
|
566
568
|
} catch {
|
|
567
569
|
throw new Error(`加载图片失败: ${r}`);
|
|
568
570
|
}
|
|
569
|
-
if (!
|
|
571
|
+
if (!u.type.startsWith("image/") && u.size === 0)
|
|
570
572
|
throw new Error(`图片数据无效: URL=${r}`);
|
|
571
573
|
try {
|
|
572
|
-
const v = await createImageBitmap(
|
|
573
|
-
return await
|
|
574
|
+
const v = await createImageBitmap(u);
|
|
575
|
+
return await k0(v, d);
|
|
574
576
|
} catch (v) {
|
|
575
577
|
throw new Error(`图片解码失败: URL=${r}, 错误=${v instanceof Error ? v.message : v}`);
|
|
576
578
|
}
|
|
@@ -578,7 +580,7 @@ async function _t(r, d, t) {
|
|
|
578
580
|
throw e instanceof Error ? e : new Error(`加载图片失败: ${r}, ${e}`);
|
|
579
581
|
}
|
|
580
582
|
}
|
|
581
|
-
function
|
|
583
|
+
function Mr(r) {
|
|
582
584
|
if (!r) return "source-over";
|
|
583
585
|
const d = r.trim().toLowerCase();
|
|
584
586
|
return {
|
|
@@ -608,24 +610,24 @@ function Tr(r) {
|
|
|
608
610
|
"pass-through": "source-over"
|
|
609
611
|
}[d] || "source-over";
|
|
610
612
|
}
|
|
611
|
-
var
|
|
612
|
-
function
|
|
613
|
+
var Er = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
614
|
+
function wt(r) {
|
|
613
615
|
if (Object.prototype.hasOwnProperty.call(r, "__esModule")) return r;
|
|
614
616
|
var d = r.default;
|
|
615
617
|
if (typeof d == "function") {
|
|
616
618
|
var t = function e() {
|
|
617
|
-
var
|
|
619
|
+
var u = !1;
|
|
618
620
|
try {
|
|
619
|
-
|
|
621
|
+
u = this instanceof e;
|
|
620
622
|
} catch {
|
|
621
623
|
}
|
|
622
|
-
return
|
|
624
|
+
return u ? Reflect.construct(d, arguments, this.constructor) : d.apply(this, arguments);
|
|
623
625
|
};
|
|
624
626
|
t.prototype = d.prototype;
|
|
625
627
|
} else t = {};
|
|
626
628
|
return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(r).forEach(function(e) {
|
|
627
|
-
var
|
|
628
|
-
Object.defineProperty(t, e,
|
|
629
|
+
var u = Object.getOwnPropertyDescriptor(r, e);
|
|
630
|
+
Object.defineProperty(t, e, u.get ? u : {
|
|
629
631
|
enumerable: !0,
|
|
630
632
|
get: function() {
|
|
631
633
|
return r[e];
|
|
@@ -633,27 +635,27 @@ function yt(r) {
|
|
|
633
635
|
});
|
|
634
636
|
}), t;
|
|
635
637
|
}
|
|
636
|
-
var
|
|
637
|
-
function
|
|
638
|
+
var S0 = { exports: {} };
|
|
639
|
+
function kt(r) {
|
|
638
640
|
throw new Error('Could not dynamically require "' + r + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
639
641
|
}
|
|
640
|
-
var
|
|
642
|
+
var H0 = { exports: {} }, St = {}, Ht = /* @__PURE__ */ Object.freeze({
|
|
641
643
|
__proto__: null,
|
|
642
|
-
default:
|
|
643
|
-
}),
|
|
644
|
+
default: St
|
|
645
|
+
}), $t = /* @__PURE__ */ wt(Ht), Rt = H0.exports, Nr;
|
|
644
646
|
function M() {
|
|
645
|
-
return
|
|
647
|
+
return Nr || (Nr = 1, (function(r, d) {
|
|
646
648
|
(function(t, e) {
|
|
647
649
|
r.exports = e();
|
|
648
|
-
})(
|
|
649
|
-
var t = t || (function(e,
|
|
650
|
+
})(Rt, function() {
|
|
651
|
+
var t = t || (function(e, u) {
|
|
650
652
|
var v;
|
|
651
|
-
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
|
|
653
|
+
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 Er < "u" && Er.crypto && (v = Er.crypto), !v && typeof kt == "function")
|
|
652
654
|
try {
|
|
653
|
-
v =
|
|
655
|
+
v = $t;
|
|
654
656
|
} catch {
|
|
655
657
|
}
|
|
656
|
-
var
|
|
658
|
+
var _ = function() {
|
|
657
659
|
if (v) {
|
|
658
660
|
if (typeof v.getRandomValues == "function")
|
|
659
661
|
try {
|
|
@@ -773,7 +775,7 @@ function M() {
|
|
|
773
775
|
* var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6);
|
|
774
776
|
*/
|
|
775
777
|
init: function(i, o) {
|
|
776
|
-
i = this.words = i || [], o !=
|
|
778
|
+
i = this.words = i || [], o != u ? this.sigBytes = o : this.sigBytes = i.length * 4;
|
|
777
779
|
},
|
|
778
780
|
/**
|
|
779
781
|
* Converts this word array to a string.
|
|
@@ -805,9 +807,9 @@ function M() {
|
|
|
805
807
|
concat: function(i) {
|
|
806
808
|
var o = this.words, l = i.words, b = this.sigBytes, g = i.sigBytes;
|
|
807
809
|
if (this.clamp(), b % 4)
|
|
808
|
-
for (var
|
|
809
|
-
var k = l[
|
|
810
|
-
o[b +
|
|
810
|
+
for (var y = 0; y < g; y++) {
|
|
811
|
+
var k = l[y >>> 2] >>> 24 - y % 4 * 8 & 255;
|
|
812
|
+
o[b + y >>> 2] |= k << 24 - (b + y) % 4 * 8;
|
|
811
813
|
}
|
|
812
814
|
else
|
|
813
815
|
for (var R = 0; R < g; R += 4)
|
|
@@ -853,7 +855,7 @@ function M() {
|
|
|
853
855
|
*/
|
|
854
856
|
random: function(i) {
|
|
855
857
|
for (var o = [], l = 0; l < i; l += 4)
|
|
856
|
-
o.push(
|
|
858
|
+
o.push(_());
|
|
857
859
|
return new E.init(o, i);
|
|
858
860
|
}
|
|
859
861
|
}), a = C.enc = {}, s = a.Hex = {
|
|
@@ -872,8 +874,8 @@ function M() {
|
|
|
872
874
|
*/
|
|
873
875
|
stringify: function(i) {
|
|
874
876
|
for (var o = i.words, l = i.sigBytes, b = [], g = 0; g < l; g++) {
|
|
875
|
-
var
|
|
876
|
-
b.push((
|
|
877
|
+
var y = o[g >>> 2] >>> 24 - g % 4 * 8 & 255;
|
|
878
|
+
b.push((y >>> 4).toString(16)), b.push((y & 15).toString(16));
|
|
877
879
|
}
|
|
878
880
|
return b.join("");
|
|
879
881
|
},
|
|
@@ -895,7 +897,7 @@ function M() {
|
|
|
895
897
|
l[b >>> 3] |= parseInt(i.substr(b, 2), 16) << 24 - b % 8 * 4;
|
|
896
898
|
return new E.init(l, o / 2);
|
|
897
899
|
}
|
|
898
|
-
},
|
|
900
|
+
}, f = a.Latin1 = {
|
|
899
901
|
/**
|
|
900
902
|
* Converts a word array to a Latin1 string.
|
|
901
903
|
*
|
|
@@ -911,8 +913,8 @@ function M() {
|
|
|
911
913
|
*/
|
|
912
914
|
stringify: function(i) {
|
|
913
915
|
for (var o = i.words, l = i.sigBytes, b = [], g = 0; g < l; g++) {
|
|
914
|
-
var
|
|
915
|
-
b.push(String.fromCharCode(
|
|
916
|
+
var y = o[g >>> 2] >>> 24 - g % 4 * 8 & 255;
|
|
917
|
+
b.push(String.fromCharCode(y));
|
|
916
918
|
}
|
|
917
919
|
return b.join("");
|
|
918
920
|
},
|
|
@@ -950,7 +952,7 @@ function M() {
|
|
|
950
952
|
*/
|
|
951
953
|
stringify: function(i) {
|
|
952
954
|
try {
|
|
953
|
-
return decodeURIComponent(escape(
|
|
955
|
+
return decodeURIComponent(escape(f.stringify(i)));
|
|
954
956
|
} catch {
|
|
955
957
|
throw new Error("Malformed UTF-8 data");
|
|
956
958
|
}
|
|
@@ -969,7 +971,7 @@ function M() {
|
|
|
969
971
|
* var wordArray = CryptoJS.enc.Utf8.parse(utf8String);
|
|
970
972
|
*/
|
|
971
973
|
parse: function(i) {
|
|
972
|
-
return
|
|
974
|
+
return f.parse(unescape(encodeURIComponent(i)));
|
|
973
975
|
}
|
|
974
976
|
}, h = x.BufferedBlockAlgorithm = n.extend({
|
|
975
977
|
/**
|
|
@@ -1010,11 +1012,11 @@ function M() {
|
|
|
1010
1012
|
* var processedData = bufferedBlockAlgorithm._process(!!'flush');
|
|
1011
1013
|
*/
|
|
1012
1014
|
_process: function(i) {
|
|
1013
|
-
var o, l = this._data, b = l.words, g = l.sigBytes,
|
|
1015
|
+
var o, l = this._data, b = l.words, g = l.sigBytes, y = this.blockSize, k = y * 4, R = g / k;
|
|
1014
1016
|
i ? R = e.ceil(R) : R = e.max((R | 0) - this._minBufferSize, 0);
|
|
1015
|
-
var F = R *
|
|
1017
|
+
var F = R * y, w = e.min(F * 4, g);
|
|
1016
1018
|
if (F) {
|
|
1017
|
-
for (var H = 0; H < F; H +=
|
|
1019
|
+
for (var H = 0; H < F; H += y)
|
|
1018
1020
|
this._doProcessBlock(b, H);
|
|
1019
1021
|
o = b.splice(0, F), l.sigBytes -= w;
|
|
1020
1022
|
}
|
|
@@ -1139,17 +1141,17 @@ function M() {
|
|
|
1139
1141
|
})(Math);
|
|
1140
1142
|
return t;
|
|
1141
1143
|
});
|
|
1142
|
-
})(
|
|
1144
|
+
})(H0)), H0.exports;
|
|
1143
1145
|
}
|
|
1144
|
-
var
|
|
1145
|
-
function
|
|
1146
|
-
return
|
|
1146
|
+
var $0 = { exports: {} }, Pt = $0.exports, Ur;
|
|
1147
|
+
function vr() {
|
|
1148
|
+
return Ur || (Ur = 1, (function(r, d) {
|
|
1147
1149
|
(function(t, e) {
|
|
1148
1150
|
r.exports = e(M());
|
|
1149
|
-
})(
|
|
1151
|
+
})(Pt, function(t) {
|
|
1150
1152
|
return (function(e) {
|
|
1151
|
-
var
|
|
1152
|
-
C.Word =
|
|
1153
|
+
var u = t, v = u.lib, _ = v.Base, B = v.WordArray, C = u.x64 = {};
|
|
1154
|
+
C.Word = _.extend({
|
|
1153
1155
|
/**
|
|
1154
1156
|
* Initializes a newly created 64-bit word.
|
|
1155
1157
|
*
|
|
@@ -1312,7 +1314,7 @@ function hr() {
|
|
|
1312
1314
|
// var high = (this.high + word.high + carry) | 0;
|
|
1313
1315
|
// return X64Word.create(high, low);
|
|
1314
1316
|
// }
|
|
1315
|
-
}), C.WordArray =
|
|
1317
|
+
}), C.WordArray = _.extend({
|
|
1316
1318
|
/**
|
|
1317
1319
|
* Initializes a newly created word array.
|
|
1318
1320
|
*
|
|
@@ -1362,46 +1364,46 @@ function hr() {
|
|
|
1362
1364
|
* var clone = x64WordArray.clone();
|
|
1363
1365
|
*/
|
|
1364
1366
|
clone: function() {
|
|
1365
|
-
for (var x =
|
|
1367
|
+
for (var x = _.clone.call(this), n = x.words = this.words.slice(0), E = n.length, a = 0; a < E; a++)
|
|
1366
1368
|
n[a] = n[a].clone();
|
|
1367
1369
|
return x;
|
|
1368
1370
|
}
|
|
1369
1371
|
});
|
|
1370
1372
|
})(), t;
|
|
1371
1373
|
});
|
|
1372
|
-
})(
|
|
1374
|
+
})($0)), $0.exports;
|
|
1373
1375
|
}
|
|
1374
|
-
var
|
|
1375
|
-
function
|
|
1376
|
-
return
|
|
1376
|
+
var R0 = { exports: {} }, zt = R0.exports, jr;
|
|
1377
|
+
function Wt() {
|
|
1378
|
+
return jr || (jr = 1, (function(r, d) {
|
|
1377
1379
|
(function(t, e) {
|
|
1378
1380
|
r.exports = e(M());
|
|
1379
|
-
})(
|
|
1381
|
+
})(zt, function(t) {
|
|
1380
1382
|
return (function() {
|
|
1381
1383
|
if (typeof ArrayBuffer == "function") {
|
|
1382
|
-
var e = t,
|
|
1384
|
+
var e = t, u = e.lib, v = u.WordArray, _ = v.init, B = v.init = function(C) {
|
|
1383
1385
|
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) {
|
|
1384
1386
|
for (var x = C.byteLength, n = [], E = 0; E < x; E++)
|
|
1385
1387
|
n[E >>> 2] |= C[E] << 24 - E % 4 * 8;
|
|
1386
|
-
|
|
1388
|
+
_.call(this, n, x);
|
|
1387
1389
|
} else
|
|
1388
|
-
|
|
1390
|
+
_.apply(this, arguments);
|
|
1389
1391
|
};
|
|
1390
1392
|
B.prototype = v;
|
|
1391
1393
|
}
|
|
1392
1394
|
})(), t.lib.WordArray;
|
|
1393
1395
|
});
|
|
1394
|
-
})(
|
|
1396
|
+
})(R0)), R0.exports;
|
|
1395
1397
|
}
|
|
1396
|
-
var
|
|
1397
|
-
function
|
|
1398
|
-
return
|
|
1398
|
+
var P0 = { exports: {} }, It = P0.exports, Gr;
|
|
1399
|
+
function Lt() {
|
|
1400
|
+
return Gr || (Gr = 1, (function(r, d) {
|
|
1399
1401
|
(function(t, e) {
|
|
1400
1402
|
r.exports = e(M());
|
|
1401
|
-
})(
|
|
1403
|
+
})(It, function(t) {
|
|
1402
1404
|
return (function() {
|
|
1403
|
-
var e = t,
|
|
1404
|
-
|
|
1405
|
+
var e = t, u = e.lib, v = u.WordArray, _ = e.enc;
|
|
1406
|
+
_.Utf16 = _.Utf16BE = {
|
|
1405
1407
|
/**
|
|
1406
1408
|
* Converts a word array to a UTF-16 BE string.
|
|
1407
1409
|
*
|
|
@@ -1440,7 +1442,7 @@ function It() {
|
|
|
1440
1442
|
n[E >>> 1] |= C.charCodeAt(E) << 16 - E % 2 * 16;
|
|
1441
1443
|
return v.create(n, x * 2);
|
|
1442
1444
|
}
|
|
1443
|
-
},
|
|
1445
|
+
}, _.Utf16LE = {
|
|
1444
1446
|
/**
|
|
1445
1447
|
* Converts a word array to a UTF-16 LE string.
|
|
1446
1448
|
*
|
|
@@ -1485,17 +1487,17 @@ function It() {
|
|
|
1485
1487
|
}
|
|
1486
1488
|
})(), t.enc.Utf16;
|
|
1487
1489
|
});
|
|
1488
|
-
})(
|
|
1490
|
+
})(P0)), P0.exports;
|
|
1489
1491
|
}
|
|
1490
|
-
var
|
|
1492
|
+
var z0 = { exports: {} }, Ot = z0.exports, Kr;
|
|
1491
1493
|
function c0() {
|
|
1492
|
-
return
|
|
1494
|
+
return Kr || (Kr = 1, (function(r, d) {
|
|
1493
1495
|
(function(t, e) {
|
|
1494
1496
|
r.exports = e(M());
|
|
1495
|
-
})(
|
|
1497
|
+
})(Ot, function(t) {
|
|
1496
1498
|
return (function() {
|
|
1497
|
-
var e = t,
|
|
1498
|
-
|
|
1499
|
+
var e = t, u = e.lib, v = u.WordArray, _ = e.enc;
|
|
1500
|
+
_.Base64 = {
|
|
1499
1501
|
/**
|
|
1500
1502
|
* Converts a word array to a Base64 string.
|
|
1501
1503
|
*
|
|
@@ -1513,7 +1515,7 @@ function c0() {
|
|
|
1513
1515
|
var x = C.words, n = C.sigBytes, E = this._map;
|
|
1514
1516
|
C.clamp();
|
|
1515
1517
|
for (var a = [], s = 0; s < n; s += 3)
|
|
1516
|
-
for (var
|
|
1518
|
+
for (var f = x[s >>> 2] >>> 24 - s % 4 * 8 & 255, p = x[s + 1 >>> 2] >>> 24 - (s + 1) % 4 * 8 & 255, h = x[s + 2 >>> 2] >>> 24 - (s + 2) % 4 * 8 & 255, D = f << 16 | p << 8 | h, i = 0; i < 4 && s + i * 0.75 < n; i++)
|
|
1517
1519
|
a.push(E.charAt(D >>> 6 * (3 - i) & 63));
|
|
1518
1520
|
var o = E.charAt(64);
|
|
1519
1521
|
if (o)
|
|
@@ -1543,8 +1545,8 @@ function c0() {
|
|
|
1543
1545
|
}
|
|
1544
1546
|
var s = n.charAt(64);
|
|
1545
1547
|
if (s) {
|
|
1546
|
-
var
|
|
1547
|
-
|
|
1548
|
+
var f = C.indexOf(s);
|
|
1549
|
+
f !== -1 && (x = f);
|
|
1548
1550
|
}
|
|
1549
1551
|
return B(C, x, E);
|
|
1550
1552
|
},
|
|
@@ -1553,24 +1555,24 @@ function c0() {
|
|
|
1553
1555
|
function B(C, x, n) {
|
|
1554
1556
|
for (var E = [], a = 0, s = 0; s < x; s++)
|
|
1555
1557
|
if (s % 4) {
|
|
1556
|
-
var
|
|
1558
|
+
var f = n[C.charCodeAt(s - 1)] << s % 4 * 2, p = n[C.charCodeAt(s)] >>> 6 - s % 4 * 2, h = f | p;
|
|
1557
1559
|
E[a >>> 2] |= h << 24 - a % 4 * 8, a++;
|
|
1558
1560
|
}
|
|
1559
1561
|
return v.create(E, a);
|
|
1560
1562
|
}
|
|
1561
1563
|
})(), t.enc.Base64;
|
|
1562
1564
|
});
|
|
1563
|
-
})(
|
|
1565
|
+
})(z0)), z0.exports;
|
|
1564
1566
|
}
|
|
1565
|
-
var
|
|
1566
|
-
function
|
|
1567
|
-
return
|
|
1567
|
+
var W0 = { exports: {} }, qt = W0.exports, Xr;
|
|
1568
|
+
function Tt() {
|
|
1569
|
+
return Xr || (Xr = 1, (function(r, d) {
|
|
1568
1570
|
(function(t, e) {
|
|
1569
1571
|
r.exports = e(M());
|
|
1570
|
-
})(
|
|
1572
|
+
})(qt, function(t) {
|
|
1571
1573
|
return (function() {
|
|
1572
|
-
var e = t,
|
|
1573
|
-
|
|
1574
|
+
var e = t, u = e.lib, v = u.WordArray, _ = e.enc;
|
|
1575
|
+
_.Base64url = {
|
|
1574
1576
|
/**
|
|
1575
1577
|
* Converts a word array to a Base64url string.
|
|
1576
1578
|
*
|
|
@@ -1590,8 +1592,8 @@ function qt() {
|
|
|
1590
1592
|
x === void 0 && (x = !0);
|
|
1591
1593
|
var n = C.words, E = C.sigBytes, a = x ? this._safe_map : this._map;
|
|
1592
1594
|
C.clamp();
|
|
1593
|
-
for (var s = [],
|
|
1594
|
-
for (var p = n[
|
|
1595
|
+
for (var s = [], f = 0; f < E; f += 3)
|
|
1596
|
+
for (var p = n[f >>> 2] >>> 24 - f % 4 * 8 & 255, h = n[f + 1 >>> 2] >>> 24 - (f + 1) % 4 * 8 & 255, D = n[f + 2 >>> 2] >>> 24 - (f + 2) % 4 * 8 & 255, i = p << 16 | h << 8 | D, o = 0; o < 4 && f + o * 0.75 < E; o++)
|
|
1595
1597
|
s.push(a.charAt(i >>> 6 * (3 - o) & 63));
|
|
1596
1598
|
var l = a.charAt(64);
|
|
1597
1599
|
if (l)
|
|
@@ -1622,9 +1624,9 @@ function qt() {
|
|
|
1622
1624
|
for (var s = 0; s < E.length; s++)
|
|
1623
1625
|
a[E.charCodeAt(s)] = s;
|
|
1624
1626
|
}
|
|
1625
|
-
var
|
|
1626
|
-
if (
|
|
1627
|
-
var p = C.indexOf(
|
|
1627
|
+
var f = E.charAt(64);
|
|
1628
|
+
if (f) {
|
|
1629
|
+
var p = C.indexOf(f);
|
|
1628
1630
|
p !== -1 && (n = p);
|
|
1629
1631
|
}
|
|
1630
1632
|
return B(C, n, a);
|
|
@@ -1635,30 +1637,30 @@ function qt() {
|
|
|
1635
1637
|
function B(C, x, n) {
|
|
1636
1638
|
for (var E = [], a = 0, s = 0; s < x; s++)
|
|
1637
1639
|
if (s % 4) {
|
|
1638
|
-
var
|
|
1640
|
+
var f = n[C.charCodeAt(s - 1)] << s % 4 * 2, p = n[C.charCodeAt(s)] >>> 6 - s % 4 * 2, h = f | p;
|
|
1639
1641
|
E[a >>> 2] |= h << 24 - a % 4 * 8, a++;
|
|
1640
1642
|
}
|
|
1641
1643
|
return v.create(E, a);
|
|
1642
1644
|
}
|
|
1643
1645
|
})(), t.enc.Base64url;
|
|
1644
1646
|
});
|
|
1645
|
-
})(
|
|
1647
|
+
})(W0)), W0.exports;
|
|
1646
1648
|
}
|
|
1647
|
-
var
|
|
1649
|
+
var I0 = { exports: {} }, Mt = I0.exports, Zr;
|
|
1648
1650
|
function f0() {
|
|
1649
|
-
return
|
|
1651
|
+
return Zr || (Zr = 1, (function(r, d) {
|
|
1650
1652
|
(function(t, e) {
|
|
1651
1653
|
r.exports = e(M());
|
|
1652
|
-
})(
|
|
1654
|
+
})(Mt, function(t) {
|
|
1653
1655
|
return (function(e) {
|
|
1654
|
-
var
|
|
1656
|
+
var u = t, v = u.lib, _ = v.WordArray, B = v.Hasher, C = u.algo, x = [];
|
|
1655
1657
|
(function() {
|
|
1656
1658
|
for (var p = 0; p < 64; p++)
|
|
1657
1659
|
x[p] = e.abs(e.sin(p + 1)) * 4294967296 | 0;
|
|
1658
1660
|
})();
|
|
1659
1661
|
var n = C.MD5 = B.extend({
|
|
1660
1662
|
_doReset: function() {
|
|
1661
|
-
this._hash = new
|
|
1663
|
+
this._hash = new _.init([
|
|
1662
1664
|
1732584193,
|
|
1663
1665
|
4023233417,
|
|
1664
1666
|
2562383102,
|
|
@@ -1670,17 +1672,17 @@ function f0() {
|
|
|
1670
1672
|
var i = h + D, o = p[i];
|
|
1671
1673
|
p[i] = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360;
|
|
1672
1674
|
}
|
|
1673
|
-
var l = this._hash.words, b = p[h + 0], g = p[h + 1],
|
|
1674
|
-
S = E(S,
|
|
1675
|
+
var l = this._hash.words, b = p[h + 0], g = p[h + 1], y = p[h + 2], k = p[h + 3], R = p[h + 4], F = p[h + 5], w = p[h + 6], H = p[h + 7], $ = p[h + 8], z = p[h + 9], O = p[h + 10], q = p[h + 11], U = p[h + 12], T = p[h + 13], N = p[h + 14], j = p[h + 15], S = l[0], c = l[1], A = l[2], m = l[3];
|
|
1676
|
+
S = E(S, c, A, m, b, 7, x[0]), m = E(m, S, c, A, g, 12, x[1]), A = E(A, m, S, c, y, 17, x[2]), c = E(c, A, m, S, k, 22, x[3]), S = E(S, c, A, m, R, 7, x[4]), m = E(m, S, c, A, F, 12, x[5]), A = E(A, m, S, c, w, 17, x[6]), c = E(c, A, m, S, H, 22, x[7]), S = E(S, c, A, m, $, 7, x[8]), m = E(m, S, c, A, z, 12, x[9]), A = E(A, m, S, c, O, 17, x[10]), c = E(c, A, m, S, q, 22, x[11]), S = E(S, c, A, m, U, 7, x[12]), m = E(m, S, c, A, T, 12, x[13]), A = E(A, m, S, c, N, 17, x[14]), c = E(c, A, m, S, j, 22, x[15]), S = a(S, c, A, m, g, 5, x[16]), m = a(m, S, c, A, w, 9, x[17]), A = a(A, m, S, c, q, 14, x[18]), c = a(c, A, m, S, b, 20, x[19]), S = a(S, c, A, m, F, 5, x[20]), m = a(m, S, c, A, O, 9, x[21]), A = a(A, m, S, c, j, 14, x[22]), c = a(c, A, m, S, R, 20, x[23]), S = a(S, c, A, m, z, 5, x[24]), m = a(m, S, c, A, N, 9, x[25]), A = a(A, m, S, c, k, 14, x[26]), c = a(c, A, m, S, $, 20, x[27]), S = a(S, c, A, m, T, 5, x[28]), m = a(m, S, c, A, y, 9, x[29]), A = a(A, m, S, c, H, 14, x[30]), c = a(c, A, m, S, U, 20, x[31]), S = s(S, c, A, m, F, 4, x[32]), m = s(m, S, c, A, $, 11, x[33]), A = s(A, m, S, c, q, 16, x[34]), c = s(c, A, m, S, N, 23, x[35]), S = s(S, c, A, m, g, 4, x[36]), m = s(m, S, c, A, R, 11, x[37]), A = s(A, m, S, c, H, 16, x[38]), c = s(c, A, m, S, O, 23, x[39]), S = s(S, c, A, m, T, 4, x[40]), m = s(m, S, c, A, b, 11, x[41]), A = s(A, m, S, c, k, 16, x[42]), c = s(c, A, m, S, w, 23, x[43]), S = s(S, c, A, m, z, 4, x[44]), m = s(m, S, c, A, U, 11, x[45]), A = s(A, m, S, c, j, 16, x[46]), c = s(c, A, m, S, y, 23, x[47]), S = f(S, c, A, m, b, 6, x[48]), m = f(m, S, c, A, H, 10, x[49]), A = f(A, m, S, c, N, 15, x[50]), c = f(c, A, m, S, F, 21, x[51]), S = f(S, c, A, m, U, 6, x[52]), m = f(m, S, c, A, k, 10, x[53]), A = f(A, m, S, c, O, 15, x[54]), c = f(c, A, m, S, g, 21, x[55]), S = f(S, c, A, m, $, 6, x[56]), m = f(m, S, c, A, j, 10, x[57]), A = f(A, m, S, c, w, 15, x[58]), c = f(c, A, m, S, T, 21, x[59]), S = f(S, c, A, m, R, 6, x[60]), m = f(m, S, c, A, q, 10, x[61]), A = f(A, m, S, c, y, 15, x[62]), c = f(c, A, m, S, z, 21, x[63]), l[0] = l[0] + S | 0, l[1] = l[1] + c | 0, l[2] = l[2] + A | 0, l[3] = l[3] + m | 0;
|
|
1675
1677
|
},
|
|
1676
1678
|
_doFinalize: function() {
|
|
1677
1679
|
var p = this._data, h = p.words, D = this._nDataBytes * 8, i = p.sigBytes * 8;
|
|
1678
1680
|
h[i >>> 5] |= 128 << 24 - i % 32;
|
|
1679
1681
|
var o = e.floor(D / 4294967296), l = D;
|
|
1680
1682
|
h[(i + 64 >>> 9 << 4) + 15] = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360, h[(i + 64 >>> 9 << 4) + 14] = (l << 8 | l >>> 24) & 16711935 | (l << 24 | l >>> 8) & 4278255360, p.sigBytes = (h.length + 1) * 4, this._process();
|
|
1681
|
-
for (var b = this._hash, g = b.words,
|
|
1682
|
-
var k = g[
|
|
1683
|
-
g[
|
|
1683
|
+
for (var b = this._hash, g = b.words, y = 0; y < 4; y++) {
|
|
1684
|
+
var k = g[y];
|
|
1685
|
+
g[y] = (k << 8 | k >>> 24) & 16711935 | (k << 24 | k >>> 8) & 4278255360;
|
|
1684
1686
|
}
|
|
1685
1687
|
return b;
|
|
1686
1688
|
},
|
|
@@ -1701,23 +1703,23 @@ function f0() {
|
|
|
1701
1703
|
var g = p + (h ^ D ^ i) + o + b;
|
|
1702
1704
|
return (g << l | g >>> 32 - l) + h;
|
|
1703
1705
|
}
|
|
1704
|
-
function
|
|
1706
|
+
function f(p, h, D, i, o, l, b) {
|
|
1705
1707
|
var g = p + (D ^ (h | ~i)) + o + b;
|
|
1706
1708
|
return (g << l | g >>> 32 - l) + h;
|
|
1707
1709
|
}
|
|
1708
|
-
|
|
1710
|
+
u.MD5 = B._createHelper(n), u.HmacMD5 = B._createHmacHelper(n);
|
|
1709
1711
|
})(Math), t.MD5;
|
|
1710
1712
|
});
|
|
1711
|
-
})(
|
|
1713
|
+
})(I0)), I0.exports;
|
|
1712
1714
|
}
|
|
1713
|
-
var
|
|
1714
|
-
function
|
|
1715
|
+
var L0 = { exports: {} }, Nt = L0.exports, Yr;
|
|
1716
|
+
function Pe() {
|
|
1715
1717
|
return Yr || (Yr = 1, (function(r, d) {
|
|
1716
1718
|
(function(t, e) {
|
|
1717
1719
|
r.exports = e(M());
|
|
1718
|
-
})(
|
|
1720
|
+
})(Nt, function(t) {
|
|
1719
1721
|
return (function() {
|
|
1720
|
-
var e = t,
|
|
1722
|
+
var e = t, u = e.lib, v = u.WordArray, _ = u.Hasher, B = e.algo, C = [], x = B.SHA1 = _.extend({
|
|
1721
1723
|
_doReset: function() {
|
|
1722
1724
|
this._hash = new v.init([
|
|
1723
1725
|
1732584193,
|
|
@@ -1728,7 +1730,7 @@ function Re() {
|
|
|
1728
1730
|
]);
|
|
1729
1731
|
},
|
|
1730
1732
|
_doProcessBlock: function(n, E) {
|
|
1731
|
-
for (var a = this._hash.words, s = a[0],
|
|
1733
|
+
for (var a = this._hash.words, s = a[0], f = a[1], p = a[2], h = a[3], D = a[4], i = 0; i < 80; i++) {
|
|
1732
1734
|
if (i < 16)
|
|
1733
1735
|
C[i] = n[E + i] | 0;
|
|
1734
1736
|
else {
|
|
@@ -1736,32 +1738,32 @@ function Re() {
|
|
|
1736
1738
|
C[i] = o << 1 | o >>> 31;
|
|
1737
1739
|
}
|
|
1738
1740
|
var l = (s << 5 | s >>> 27) + D + C[i];
|
|
1739
|
-
i < 20 ? l += (
|
|
1741
|
+
i < 20 ? l += (f & p | ~f & h) + 1518500249 : i < 40 ? l += (f ^ p ^ h) + 1859775393 : i < 60 ? l += (f & p | f & h | p & h) - 1894007588 : l += (f ^ p ^ h) - 899497514, D = h, h = p, p = f << 30 | f >>> 2, f = s, s = l;
|
|
1740
1742
|
}
|
|
1741
|
-
a[0] = a[0] + s | 0, a[1] = a[1] +
|
|
1743
|
+
a[0] = a[0] + s | 0, a[1] = a[1] + f | 0, a[2] = a[2] + p | 0, a[3] = a[3] + h | 0, a[4] = a[4] + D | 0;
|
|
1742
1744
|
},
|
|
1743
1745
|
_doFinalize: function() {
|
|
1744
1746
|
var n = this._data, E = n.words, a = this._nDataBytes * 8, s = n.sigBytes * 8;
|
|
1745
1747
|
return E[s >>> 5] |= 128 << 24 - s % 32, E[(s + 64 >>> 9 << 4) + 14] = Math.floor(a / 4294967296), E[(s + 64 >>> 9 << 4) + 15] = a, n.sigBytes = E.length * 4, this._process(), this._hash;
|
|
1746
1748
|
},
|
|
1747
1749
|
clone: function() {
|
|
1748
|
-
var n =
|
|
1750
|
+
var n = _.clone.call(this);
|
|
1749
1751
|
return n._hash = this._hash.clone(), n;
|
|
1750
1752
|
}
|
|
1751
1753
|
});
|
|
1752
|
-
e.SHA1 =
|
|
1754
|
+
e.SHA1 = _._createHelper(x), e.HmacSHA1 = _._createHmacHelper(x);
|
|
1753
1755
|
})(), t.SHA1;
|
|
1754
1756
|
});
|
|
1755
|
-
})(
|
|
1757
|
+
})(L0)), L0.exports;
|
|
1756
1758
|
}
|
|
1757
|
-
var
|
|
1758
|
-
function
|
|
1759
|
-
return
|
|
1759
|
+
var O0 = { exports: {} }, Ut = O0.exports, Qr;
|
|
1760
|
+
function mr() {
|
|
1761
|
+
return Qr || (Qr = 1, (function(r, d) {
|
|
1760
1762
|
(function(t, e) {
|
|
1761
1763
|
r.exports = e(M());
|
|
1762
|
-
})(
|
|
1764
|
+
})(Ut, function(t) {
|
|
1763
1765
|
return (function(e) {
|
|
1764
|
-
var
|
|
1766
|
+
var u = t, v = u.lib, _ = v.WordArray, B = v.Hasher, C = u.algo, x = [], n = [];
|
|
1765
1767
|
(function() {
|
|
1766
1768
|
function s(D) {
|
|
1767
1769
|
for (var i = e.sqrt(D), o = 2; o <= i; o++)
|
|
@@ -1769,51 +1771,51 @@ function br() {
|
|
|
1769
1771
|
return !1;
|
|
1770
1772
|
return !0;
|
|
1771
1773
|
}
|
|
1772
|
-
function
|
|
1774
|
+
function f(D) {
|
|
1773
1775
|
return (D - (D | 0)) * 4294967296 | 0;
|
|
1774
1776
|
}
|
|
1775
1777
|
for (var p = 2, h = 0; h < 64; )
|
|
1776
|
-
s(p) && (h < 8 && (x[h] =
|
|
1778
|
+
s(p) && (h < 8 && (x[h] = f(e.pow(p, 1 / 2))), n[h] = f(e.pow(p, 1 / 3)), h++), p++;
|
|
1777
1779
|
})();
|
|
1778
1780
|
var E = [], a = C.SHA256 = B.extend({
|
|
1779
1781
|
_doReset: function() {
|
|
1780
|
-
this._hash = new
|
|
1782
|
+
this._hash = new _.init(x.slice(0));
|
|
1781
1783
|
},
|
|
1782
|
-
_doProcessBlock: function(s,
|
|
1783
|
-
for (var p = this._hash.words, h = p[0], D = p[1], i = p[2], o = p[3], l = p[4], b = p[5], g = p[6],
|
|
1784
|
+
_doProcessBlock: function(s, f) {
|
|
1785
|
+
for (var p = this._hash.words, h = p[0], D = p[1], i = p[2], o = p[3], l = p[4], b = p[5], g = p[6], y = p[7], k = 0; k < 64; k++) {
|
|
1784
1786
|
if (k < 16)
|
|
1785
|
-
E[k] = s[
|
|
1787
|
+
E[k] = s[f + k] | 0;
|
|
1786
1788
|
else {
|
|
1787
1789
|
var R = E[k - 15], F = (R << 25 | R >>> 7) ^ (R << 14 | R >>> 18) ^ R >>> 3, w = E[k - 2], H = (w << 15 | w >>> 17) ^ (w << 13 | w >>> 19) ^ w >>> 10;
|
|
1788
1790
|
E[k] = F + E[k - 7] + H + E[k - 16];
|
|
1789
1791
|
}
|
|
1790
|
-
var $ = l & b ^ ~l & g, z = h & D ^ h & i ^ D & i, O = (h << 30 | h >>> 2) ^ (h << 19 | h >>> 13) ^ (h << 10 | h >>> 22), q = (l << 26 | l >>> 6) ^ (l << 21 | l >>> 11) ^ (l << 7 | l >>> 25), U =
|
|
1791
|
-
|
|
1792
|
+
var $ = l & b ^ ~l & g, z = h & D ^ h & i ^ D & i, O = (h << 30 | h >>> 2) ^ (h << 19 | h >>> 13) ^ (h << 10 | h >>> 22), q = (l << 26 | l >>> 6) ^ (l << 21 | l >>> 11) ^ (l << 7 | l >>> 25), U = y + q + $ + n[k] + E[k], T = O + z;
|
|
1793
|
+
y = g, g = b, b = l, l = o + U | 0, o = i, i = D, D = h, h = U + T | 0;
|
|
1792
1794
|
}
|
|
1793
|
-
p[0] = p[0] + h | 0, p[1] = p[1] + D | 0, p[2] = p[2] + i | 0, p[3] = p[3] + o | 0, p[4] = p[4] + l | 0, p[5] = p[5] + b | 0, p[6] = p[6] + g | 0, p[7] = p[7] +
|
|
1795
|
+
p[0] = p[0] + h | 0, p[1] = p[1] + D | 0, p[2] = p[2] + i | 0, p[3] = p[3] + o | 0, p[4] = p[4] + l | 0, p[5] = p[5] + b | 0, p[6] = p[6] + g | 0, p[7] = p[7] + y | 0;
|
|
1794
1796
|
},
|
|
1795
1797
|
_doFinalize: function() {
|
|
1796
|
-
var s = this._data,
|
|
1797
|
-
return
|
|
1798
|
+
var s = this._data, f = s.words, p = this._nDataBytes * 8, h = s.sigBytes * 8;
|
|
1799
|
+
return f[h >>> 5] |= 128 << 24 - h % 32, f[(h + 64 >>> 9 << 4) + 14] = e.floor(p / 4294967296), f[(h + 64 >>> 9 << 4) + 15] = p, s.sigBytes = f.length * 4, this._process(), this._hash;
|
|
1798
1800
|
},
|
|
1799
1801
|
clone: function() {
|
|
1800
1802
|
var s = B.clone.call(this);
|
|
1801
1803
|
return s._hash = this._hash.clone(), s;
|
|
1802
1804
|
}
|
|
1803
1805
|
});
|
|
1804
|
-
|
|
1806
|
+
u.SHA256 = B._createHelper(a), u.HmacSHA256 = B._createHmacHelper(a);
|
|
1805
1807
|
})(Math), t.SHA256;
|
|
1806
1808
|
});
|
|
1807
|
-
})(
|
|
1809
|
+
})(O0)), O0.exports;
|
|
1808
1810
|
}
|
|
1809
|
-
var
|
|
1810
|
-
function
|
|
1811
|
-
return
|
|
1812
|
-
(function(t, e,
|
|
1813
|
-
r.exports = e(M(),
|
|
1814
|
-
})(
|
|
1811
|
+
var q0 = { exports: {} }, jt = q0.exports, Vr;
|
|
1812
|
+
function Gt() {
|
|
1813
|
+
return Vr || (Vr = 1, (function(r, d) {
|
|
1814
|
+
(function(t, e, u) {
|
|
1815
|
+
r.exports = e(M(), mr());
|
|
1816
|
+
})(jt, function(t) {
|
|
1815
1817
|
return (function() {
|
|
1816
|
-
var e = t,
|
|
1818
|
+
var e = t, u = e.lib, v = u.WordArray, _ = e.algo, B = _.SHA256, C = _.SHA224 = B.extend({
|
|
1817
1819
|
_doReset: function() {
|
|
1818
1820
|
this._hash = new v.init([
|
|
1819
1821
|
3238371032,
|
|
@@ -1834,16 +1836,16 @@ function jt() {
|
|
|
1834
1836
|
e.SHA224 = B._createHelper(C), e.HmacSHA224 = B._createHmacHelper(C);
|
|
1835
1837
|
})(), t.SHA224;
|
|
1836
1838
|
});
|
|
1837
|
-
})(
|
|
1839
|
+
})(q0)), q0.exports;
|
|
1838
1840
|
}
|
|
1839
|
-
var
|
|
1840
|
-
function
|
|
1841
|
-
return
|
|
1842
|
-
(function(t, e,
|
|
1843
|
-
r.exports = e(M(),
|
|
1844
|
-
})(
|
|
1841
|
+
var T0 = { exports: {} }, Kt = T0.exports, Jr;
|
|
1842
|
+
function ze() {
|
|
1843
|
+
return Jr || (Jr = 1, (function(r, d) {
|
|
1844
|
+
(function(t, e, u) {
|
|
1845
|
+
r.exports = e(M(), vr());
|
|
1846
|
+
})(Kt, function(t) {
|
|
1845
1847
|
return (function() {
|
|
1846
|
-
var e = t,
|
|
1848
|
+
var e = t, u = e.lib, v = u.Hasher, _ = e.x64, B = _.Word, C = _.WordArray, x = e.algo;
|
|
1847
1849
|
function n() {
|
|
1848
1850
|
return B.create.apply(B, arguments);
|
|
1849
1851
|
}
|
|
@@ -1930,8 +1932,8 @@ function Pe() {
|
|
|
1930
1932
|
n(1816402316, 1246189591)
|
|
1931
1933
|
], a = [];
|
|
1932
1934
|
(function() {
|
|
1933
|
-
for (var
|
|
1934
|
-
a[
|
|
1935
|
+
for (var f = 0; f < 80; f++)
|
|
1936
|
+
a[f] = n();
|
|
1935
1937
|
})();
|
|
1936
1938
|
var s = x.SHA512 = v.extend({
|
|
1937
1939
|
_doReset: function() {
|
|
@@ -1946,47 +1948,47 @@ function Pe() {
|
|
|
1946
1948
|
new B.init(1541459225, 327033209)
|
|
1947
1949
|
]);
|
|
1948
1950
|
},
|
|
1949
|
-
_doProcessBlock: function(
|
|
1950
|
-
for (var h = this._hash.words, D = h[0], i = h[1], o = h[2], l = h[3], b = h[4], g = h[5],
|
|
1951
|
-
var
|
|
1952
|
-
if (
|
|
1953
|
-
n0 =
|
|
1951
|
+
_doProcessBlock: function(f, p) {
|
|
1952
|
+
for (var h = this._hash.words, D = h[0], i = h[1], o = h[2], l = h[3], b = h[4], g = h[5], y = h[6], k = h[7], R = D.high, F = D.low, w = i.high, H = i.low, $ = o.high, z = o.low, O = l.high, q = l.low, U = b.high, T = b.low, N = g.high, j = g.low, S = y.high, c = y.low, A = k.high, m = k.low, W = R, P = F, L = w, I = H, Y = $, Q = z, i0 = O, K = q, G = U, Z = T, r0 = N, u0 = j, m0 = S, B0 = c, pr = A, C0 = m, e0 = 0; e0 < 80; e0++) {
|
|
1953
|
+
var J, n0, _0 = a[e0];
|
|
1954
|
+
if (e0 < 16)
|
|
1955
|
+
n0 = _0.high = f[p + e0 * 2] | 0, J = _0.low = f[p + e0 * 2 + 1] | 0;
|
|
1954
1956
|
else {
|
|
1955
|
-
var
|
|
1956
|
-
|
|
1957
|
+
var wr = a[e0 - 15], d0 = wr.high, E0 = wr.low, Me = (d0 >>> 1 | E0 << 31) ^ (d0 >>> 8 | E0 << 24) ^ d0 >>> 7, kr = (E0 >>> 1 | d0 << 31) ^ (E0 >>> 8 | d0 << 24) ^ (E0 >>> 7 | d0 << 25), Sr = a[e0 - 2], l0 = Sr.high, A0 = Sr.low, Ne = (l0 >>> 19 | A0 << 13) ^ (l0 << 3 | A0 >>> 29) ^ l0 >>> 6, Hr = (A0 >>> 19 | l0 << 13) ^ (A0 << 3 | l0 >>> 29) ^ (A0 >>> 6 | l0 << 26), $r = a[e0 - 7], Ue = $r.high, je = $r.low, Rr = a[e0 - 16], Ge = Rr.high, Pr = Rr.low;
|
|
1958
|
+
J = kr + je, n0 = Me + Ue + (J >>> 0 < kr >>> 0 ? 1 : 0), J = J + Hr, n0 = n0 + Ne + (J >>> 0 < Hr >>> 0 ? 1 : 0), J = J + Pr, n0 = n0 + Ge + (J >>> 0 < Pr >>> 0 ? 1 : 0), _0.high = n0, _0.low = J;
|
|
1957
1959
|
}
|
|
1958
|
-
var
|
|
1959
|
-
|
|
1960
|
+
var Ke = G & r0 ^ ~G & m0, zr = Z & u0 ^ ~Z & B0, Xe = W & L ^ W & Y ^ L & Y, Ze = P & I ^ P & Q ^ I & Q, Ye = (W >>> 28 | P << 4) ^ (W << 30 | P >>> 2) ^ (W << 25 | P >>> 7), Wr = (P >>> 28 | W << 4) ^ (P << 30 | W >>> 2) ^ (P << 25 | W >>> 7), Qe = (G >>> 14 | Z << 18) ^ (G >>> 18 | Z << 14) ^ (G << 23 | Z >>> 9), Ve = (Z >>> 14 | G << 18) ^ (Z >>> 18 | G << 14) ^ (Z << 23 | G >>> 9), Ir = E[e0], Je = Ir.high, Lr = Ir.low, V = C0 + Ve, a0 = pr + Qe + (V >>> 0 < C0 >>> 0 ? 1 : 0), V = V + zr, a0 = a0 + Ke + (V >>> 0 < zr >>> 0 ? 1 : 0), V = V + Lr, a0 = a0 + Je + (V >>> 0 < Lr >>> 0 ? 1 : 0), V = V + J, a0 = a0 + n0 + (V >>> 0 < J >>> 0 ? 1 : 0), Or = Wr + Ze, rt = Ye + Xe + (Or >>> 0 < Wr >>> 0 ? 1 : 0);
|
|
1961
|
+
pr = m0, C0 = B0, m0 = r0, B0 = u0, r0 = G, u0 = Z, Z = K + V | 0, G = i0 + a0 + (Z >>> 0 < K >>> 0 ? 1 : 0) | 0, i0 = Y, K = Q, Y = L, Q = I, L = W, I = P, P = V + Or | 0, W = a0 + rt + (P >>> 0 < V >>> 0 ? 1 : 0) | 0;
|
|
1960
1962
|
}
|
|
1961
|
-
F = D.low = F + P, D.high = R + W + (F >>> 0 < P >>> 0 ? 1 : 0), H = i.low = H + I, i.high = w + L + (H >>> 0 < I >>> 0 ? 1 : 0), z = o.low = z + Q, o.high = $ +
|
|
1963
|
+
F = D.low = F + P, D.high = R + W + (F >>> 0 < P >>> 0 ? 1 : 0), H = i.low = H + I, i.high = w + L + (H >>> 0 < I >>> 0 ? 1 : 0), z = o.low = z + Q, o.high = $ + Y + (z >>> 0 < Q >>> 0 ? 1 : 0), q = l.low = q + K, l.high = O + i0 + (q >>> 0 < K >>> 0 ? 1 : 0), T = b.low = T + Z, b.high = U + G + (T >>> 0 < Z >>> 0 ? 1 : 0), j = g.low = j + u0, g.high = N + r0 + (j >>> 0 < u0 >>> 0 ? 1 : 0), c = y.low = c + B0, y.high = S + m0 + (c >>> 0 < B0 >>> 0 ? 1 : 0), m = k.low = m + C0, k.high = A + pr + (m >>> 0 < C0 >>> 0 ? 1 : 0);
|
|
1962
1964
|
},
|
|
1963
1965
|
_doFinalize: function() {
|
|
1964
|
-
var
|
|
1965
|
-
p[D >>> 5] |= 128 << 24 - D % 32, p[(D + 128 >>> 10 << 5) + 30] = Math.floor(h / 4294967296), p[(D + 128 >>> 10 << 5) + 31] = h,
|
|
1966
|
+
var f = this._data, p = f.words, h = this._nDataBytes * 8, D = f.sigBytes * 8;
|
|
1967
|
+
p[D >>> 5] |= 128 << 24 - D % 32, p[(D + 128 >>> 10 << 5) + 30] = Math.floor(h / 4294967296), p[(D + 128 >>> 10 << 5) + 31] = h, f.sigBytes = p.length * 4, this._process();
|
|
1966
1968
|
var i = this._hash.toX32();
|
|
1967
1969
|
return i;
|
|
1968
1970
|
},
|
|
1969
1971
|
clone: function() {
|
|
1970
|
-
var
|
|
1971
|
-
return
|
|
1972
|
+
var f = v.clone.call(this);
|
|
1973
|
+
return f._hash = this._hash.clone(), f;
|
|
1972
1974
|
},
|
|
1973
1975
|
blockSize: 1024 / 32
|
|
1974
1976
|
});
|
|
1975
1977
|
e.SHA512 = v._createHelper(s), e.HmacSHA512 = v._createHmacHelper(s);
|
|
1976
1978
|
})(), t.SHA512;
|
|
1977
1979
|
});
|
|
1978
|
-
})(
|
|
1980
|
+
})(T0)), T0.exports;
|
|
1979
1981
|
}
|
|
1980
|
-
var
|
|
1981
|
-
function
|
|
1982
|
-
return
|
|
1983
|
-
(function(t, e,
|
|
1984
|
-
r.exports = e(M(),
|
|
1985
|
-
})(
|
|
1982
|
+
var M0 = { exports: {} }, Xt = M0.exports, re;
|
|
1983
|
+
function Zt() {
|
|
1984
|
+
return re || (re = 1, (function(r, d) {
|
|
1985
|
+
(function(t, e, u) {
|
|
1986
|
+
r.exports = e(M(), vr(), ze());
|
|
1987
|
+
})(Xt, function(t) {
|
|
1986
1988
|
return (function() {
|
|
1987
|
-
var e = t,
|
|
1989
|
+
var e = t, u = e.x64, v = u.Word, _ = u.WordArray, B = e.algo, C = B.SHA512, x = B.SHA384 = C.extend({
|
|
1988
1990
|
_doReset: function() {
|
|
1989
|
-
this._hash = new
|
|
1991
|
+
this._hash = new _.init([
|
|
1990
1992
|
new v.init(3418070365, 3238371032),
|
|
1991
1993
|
new v.init(1654270250, 914150663),
|
|
1992
1994
|
new v.init(2438529370, 812702999),
|
|
@@ -2005,16 +2007,16 @@ function Xt() {
|
|
|
2005
2007
|
e.SHA384 = C._createHelper(x), e.HmacSHA384 = C._createHmacHelper(x);
|
|
2006
2008
|
})(), t.SHA384;
|
|
2007
2009
|
});
|
|
2008
|
-
})(
|
|
2010
|
+
})(M0)), M0.exports;
|
|
2009
2011
|
}
|
|
2010
|
-
var
|
|
2011
|
-
function
|
|
2012
|
-
return
|
|
2013
|
-
(function(t, e,
|
|
2014
|
-
r.exports = e(M(),
|
|
2012
|
+
var N0 = { exports: {} }, Yt = N0.exports, ee;
|
|
2013
|
+
function Qt() {
|
|
2014
|
+
return ee || (ee = 1, (function(r, d) {
|
|
2015
|
+
(function(t, e, u) {
|
|
2016
|
+
r.exports = e(M(), vr());
|
|
2015
2017
|
})(Yt, function(t) {
|
|
2016
2018
|
return (function(e) {
|
|
2017
|
-
var
|
|
2019
|
+
var u = t, v = u.lib, _ = v.WordArray, B = v.Hasher, C = u.x64, x = C.Word, n = u.algo, E = [], a = [], s = [];
|
|
2018
2020
|
(function() {
|
|
2019
2021
|
for (var h = 1, D = 0, i = 0; i < 24; i++) {
|
|
2020
2022
|
E[h + 5 * D] = (i + 1) * (i + 2) / 2 % 64;
|
|
@@ -2025,20 +2027,20 @@ function Zt() {
|
|
|
2025
2027
|
for (var D = 0; D < 5; D++)
|
|
2026
2028
|
a[h + 5 * D] = D + (2 * h + 3 * D) % 5 * 5;
|
|
2027
2029
|
for (var b = 1, g = 0; g < 24; g++) {
|
|
2028
|
-
for (var
|
|
2030
|
+
for (var y = 0, k = 0, R = 0; R < 7; R++) {
|
|
2029
2031
|
if (b & 1) {
|
|
2030
2032
|
var F = (1 << R) - 1;
|
|
2031
|
-
F < 32 ? k ^= 1 << F :
|
|
2033
|
+
F < 32 ? k ^= 1 << F : y ^= 1 << F - 32;
|
|
2032
2034
|
}
|
|
2033
2035
|
b & 128 ? b = b << 1 ^ 113 : b <<= 1;
|
|
2034
2036
|
}
|
|
2035
|
-
s[g] = x.create(
|
|
2037
|
+
s[g] = x.create(y, k);
|
|
2036
2038
|
}
|
|
2037
2039
|
})();
|
|
2038
|
-
var
|
|
2040
|
+
var f = [];
|
|
2039
2041
|
(function() {
|
|
2040
2042
|
for (var h = 0; h < 25; h++)
|
|
2041
|
-
|
|
2043
|
+
f[h] = x.create();
|
|
2042
2044
|
})();
|
|
2043
2045
|
var p = n.SHA3 = B.extend({
|
|
2044
2046
|
/**
|
|
@@ -2061,38 +2063,38 @@ function Zt() {
|
|
|
2061
2063
|
for (var i = this._state, o = this.blockSize / 2, l = 0; l < o; l++) {
|
|
2062
2064
|
var b = h[D + 2 * l], g = h[D + 2 * l + 1];
|
|
2063
2065
|
b = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360, g = (g << 8 | g >>> 24) & 16711935 | (g << 24 | g >>> 8) & 4278255360;
|
|
2064
|
-
var
|
|
2065
|
-
|
|
2066
|
+
var y = i[l];
|
|
2067
|
+
y.high ^= g, y.low ^= b;
|
|
2066
2068
|
}
|
|
2067
2069
|
for (var k = 0; k < 24; k++) {
|
|
2068
2070
|
for (var R = 0; R < 5; R++) {
|
|
2069
2071
|
for (var F = 0, w = 0, H = 0; H < 5; H++) {
|
|
2070
|
-
var
|
|
2071
|
-
F ^=
|
|
2072
|
+
var y = i[R + 5 * H];
|
|
2073
|
+
F ^= y.high, w ^= y.low;
|
|
2072
2074
|
}
|
|
2073
|
-
var $ =
|
|
2075
|
+
var $ = f[R];
|
|
2074
2076
|
$.high = F, $.low = w;
|
|
2075
2077
|
}
|
|
2076
2078
|
for (var R = 0; R < 5; R++)
|
|
2077
|
-
for (var z =
|
|
2078
|
-
var
|
|
2079
|
-
|
|
2079
|
+
for (var z = f[(R + 4) % 5], O = f[(R + 1) % 5], q = O.high, U = O.low, F = z.high ^ (q << 1 | U >>> 31), w = z.low ^ (U << 1 | q >>> 31), H = 0; H < 5; H++) {
|
|
2080
|
+
var y = i[R + 5 * H];
|
|
2081
|
+
y.high ^= F, y.low ^= w;
|
|
2080
2082
|
}
|
|
2081
2083
|
for (var T = 1; T < 25; T++) {
|
|
2082
|
-
var F, w,
|
|
2084
|
+
var F, w, y = i[T], N = y.high, j = y.low, S = E[T];
|
|
2083
2085
|
S < 32 ? (F = N << S | j >>> 32 - S, w = j << S | N >>> 32 - S) : (F = j << S - 32 | N >>> 64 - S, w = N << S - 32 | j >>> 64 - S);
|
|
2084
|
-
var
|
|
2085
|
-
|
|
2086
|
+
var c = f[a[T]];
|
|
2087
|
+
c.high = F, c.low = w;
|
|
2086
2088
|
}
|
|
2087
|
-
var A =
|
|
2089
|
+
var A = f[0], m = i[0];
|
|
2088
2090
|
A.high = m.high, A.low = m.low;
|
|
2089
2091
|
for (var R = 0; R < 5; R++)
|
|
2090
2092
|
for (var H = 0; H < 5; H++) {
|
|
2091
|
-
var T = R + 5 * H,
|
|
2092
|
-
|
|
2093
|
+
var T = R + 5 * H, y = i[T], W = f[T], P = f[(R + 1) % 5 + 5 * H], L = f[(R + 2) % 5 + 5 * H];
|
|
2094
|
+
y.high = W.high ^ ~P.high & L.high, y.low = W.low ^ ~P.low & L.low;
|
|
2093
2095
|
}
|
|
2094
|
-
var
|
|
2095
|
-
|
|
2096
|
+
var y = i[0], I = s[k];
|
|
2097
|
+
y.high ^= I.high, y.low ^= I.low;
|
|
2096
2098
|
}
|
|
2097
2099
|
},
|
|
2098
2100
|
_doFinalize: function() {
|
|
@@ -2100,11 +2102,11 @@ function Zt() {
|
|
|
2100
2102
|
this._nDataBytes * 8;
|
|
2101
2103
|
var i = h.sigBytes * 8, o = this.blockSize * 32;
|
|
2102
2104
|
D[i >>> 5] |= 1 << 24 - i % 32, D[(e.ceil((i + 1) / o) * o >>> 5) - 1] |= 128, h.sigBytes = D.length * 4, this._process();
|
|
2103
|
-
for (var l = this._state, b = this.cfg.outputLength / 8, g = b / 8,
|
|
2105
|
+
for (var l = this._state, b = this.cfg.outputLength / 8, g = b / 8, y = [], k = 0; k < g; k++) {
|
|
2104
2106
|
var R = l[k], F = R.high, w = R.low;
|
|
2105
|
-
F = (F << 8 | F >>> 24) & 16711935 | (F << 24 | F >>> 8) & 4278255360, w = (w << 8 | w >>> 24) & 16711935 | (w << 24 | w >>> 8) & 4278255360,
|
|
2107
|
+
F = (F << 8 | F >>> 24) & 16711935 | (F << 24 | F >>> 8) & 4278255360, w = (w << 8 | w >>> 24) & 16711935 | (w << 24 | w >>> 8) & 4278255360, y.push(w), y.push(F);
|
|
2106
2108
|
}
|
|
2107
|
-
return new
|
|
2109
|
+
return new _.init(y, b);
|
|
2108
2110
|
},
|
|
2109
2111
|
clone: function() {
|
|
2110
2112
|
for (var h = B.clone.call(this), D = h._state = this._state.slice(0), i = 0; i < 25; i++)
|
|
@@ -2112,19 +2114,19 @@ function Zt() {
|
|
|
2112
2114
|
return h;
|
|
2113
2115
|
}
|
|
2114
2116
|
});
|
|
2115
|
-
|
|
2117
|
+
u.SHA3 = B._createHelper(p), u.HmacSHA3 = B._createHmacHelper(p);
|
|
2116
2118
|
})(Math), t.SHA3;
|
|
2117
2119
|
});
|
|
2118
|
-
})(
|
|
2120
|
+
})(N0)), N0.exports;
|
|
2119
2121
|
}
|
|
2120
|
-
var
|
|
2121
|
-
function
|
|
2122
|
-
return
|
|
2122
|
+
var U0 = { exports: {} }, Vt = U0.exports, te;
|
|
2123
|
+
function Jt() {
|
|
2124
|
+
return te || (te = 1, (function(r, d) {
|
|
2123
2125
|
(function(t, e) {
|
|
2124
2126
|
r.exports = e(M());
|
|
2125
|
-
})(
|
|
2127
|
+
})(Vt, function(t) {
|
|
2126
2128
|
return (function(e) {
|
|
2127
|
-
var
|
|
2129
|
+
var u = t, v = u.lib, _ = v.WordArray, B = v.Hasher, C = u.algo, x = _.create([
|
|
2128
2130
|
0,
|
|
2129
2131
|
1,
|
|
2130
2132
|
2,
|
|
@@ -2205,7 +2207,7 @@ function Vt() {
|
|
|
2205
2207
|
6,
|
|
2206
2208
|
15,
|
|
2207
2209
|
13
|
|
2208
|
-
]), n =
|
|
2210
|
+
]), n = _.create([
|
|
2209
2211
|
5,
|
|
2210
2212
|
14,
|
|
2211
2213
|
7,
|
|
@@ -2286,7 +2288,7 @@ function Vt() {
|
|
|
2286
2288
|
3,
|
|
2287
2289
|
9,
|
|
2288
2290
|
11
|
|
2289
|
-
]), E =
|
|
2291
|
+
]), E = _.create([
|
|
2290
2292
|
11,
|
|
2291
2293
|
14,
|
|
2292
2294
|
15,
|
|
@@ -2367,7 +2369,7 @@ function Vt() {
|
|
|
2367
2369
|
8,
|
|
2368
2370
|
5,
|
|
2369
2371
|
6
|
|
2370
|
-
]), a =
|
|
2372
|
+
]), a = _.create([
|
|
2371
2373
|
8,
|
|
2372
2374
|
9,
|
|
2373
2375
|
9,
|
|
@@ -2448,24 +2450,24 @@ function Vt() {
|
|
|
2448
2450
|
13,
|
|
2449
2451
|
11,
|
|
2450
2452
|
11
|
|
2451
|
-
]), s =
|
|
2453
|
+
]), s = _.create([0, 1518500249, 1859775393, 2400959708, 2840853838]), f = _.create([1352829926, 1548603684, 1836072691, 2053994217, 0]), p = C.RIPEMD160 = B.extend({
|
|
2452
2454
|
_doReset: function() {
|
|
2453
|
-
this._hash =
|
|
2455
|
+
this._hash = _.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
|
|
2454
2456
|
},
|
|
2455
|
-
_doProcessBlock: function(g,
|
|
2457
|
+
_doProcessBlock: function(g, y) {
|
|
2456
2458
|
for (var k = 0; k < 16; k++) {
|
|
2457
|
-
var R =
|
|
2459
|
+
var R = y + k, F = g[R];
|
|
2458
2460
|
g[R] = (F << 8 | F >>> 24) & 16711935 | (F << 24 | F >>> 8) & 4278255360;
|
|
2459
2461
|
}
|
|
2460
|
-
var w = this._hash.words, H = s.words, $ =
|
|
2461
|
-
A = T = w[0], m = N = w[1], W = j = w[2], P = S = w[3], L =
|
|
2462
|
+
var w = this._hash.words, H = s.words, $ = f.words, z = x.words, O = n.words, q = E.words, U = a.words, T, N, j, S, c, A, m, W, P, L;
|
|
2463
|
+
A = T = w[0], m = N = w[1], W = j = w[2], P = S = w[3], L = c = w[4];
|
|
2462
2464
|
for (var I, k = 0; k < 80; k += 1)
|
|
2463
|
-
I = T + g[
|
|
2464
|
-
I = w[1] + j + P | 0, w[1] = w[2] + S + L | 0, w[2] = w[3] +
|
|
2465
|
+
I = T + g[y + z[k]] | 0, k < 16 ? I += h(N, j, S) + H[0] : k < 32 ? I += D(N, j, S) + H[1] : k < 48 ? I += i(N, j, S) + H[2] : k < 64 ? I += o(N, j, S) + H[3] : I += l(N, j, S) + H[4], I = I | 0, I = b(I, q[k]), I = I + c | 0, T = c, c = S, S = b(j, 10), j = N, N = I, I = A + g[y + O[k]] | 0, k < 16 ? I += l(m, W, P) + $[0] : k < 32 ? I += o(m, W, P) + $[1] : k < 48 ? I += i(m, W, P) + $[2] : k < 64 ? I += D(m, W, P) + $[3] : I += h(m, W, P) + $[4], I = I | 0, I = b(I, U[k]), I = I + L | 0, A = L, L = P, P = b(W, 10), W = m, m = I;
|
|
2466
|
+
I = w[1] + j + P | 0, w[1] = w[2] + S + L | 0, w[2] = w[3] + c + A | 0, w[3] = w[4] + T + m | 0, w[4] = w[0] + N + W | 0, w[0] = I;
|
|
2465
2467
|
},
|
|
2466
2468
|
_doFinalize: function() {
|
|
2467
|
-
var g = this._data,
|
|
2468
|
-
|
|
2469
|
+
var g = this._data, y = g.words, k = this._nDataBytes * 8, R = g.sigBytes * 8;
|
|
2470
|
+
y[R >>> 5] |= 128 << 24 - R % 32, y[(R + 64 >>> 9 << 4) + 14] = (k << 8 | k >>> 24) & 16711935 | (k << 24 | k >>> 8) & 4278255360, g.sigBytes = (y.length + 1) * 4, this._process();
|
|
2469
2471
|
for (var F = this._hash, w = F.words, H = 0; H < 5; H++) {
|
|
2470
2472
|
var $ = w[H];
|
|
2471
2473
|
w[H] = ($ << 8 | $ >>> 24) & 16711935 | ($ << 24 | $ >>> 8) & 4278255360;
|
|
@@ -2477,37 +2479,37 @@ function Vt() {
|
|
|
2477
2479
|
return g._hash = this._hash.clone(), g;
|
|
2478
2480
|
}
|
|
2479
2481
|
});
|
|
2480
|
-
function h(g,
|
|
2481
|
-
return g ^
|
|
2482
|
+
function h(g, y, k) {
|
|
2483
|
+
return g ^ y ^ k;
|
|
2482
2484
|
}
|
|
2483
|
-
function D(g,
|
|
2484
|
-
return g &
|
|
2485
|
+
function D(g, y, k) {
|
|
2486
|
+
return g & y | ~g & k;
|
|
2485
2487
|
}
|
|
2486
|
-
function i(g,
|
|
2487
|
-
return (g | ~
|
|
2488
|
+
function i(g, y, k) {
|
|
2489
|
+
return (g | ~y) ^ k;
|
|
2488
2490
|
}
|
|
2489
|
-
function o(g,
|
|
2490
|
-
return g & k |
|
|
2491
|
+
function o(g, y, k) {
|
|
2492
|
+
return g & k | y & ~k;
|
|
2491
2493
|
}
|
|
2492
|
-
function l(g,
|
|
2493
|
-
return g ^ (
|
|
2494
|
+
function l(g, y, k) {
|
|
2495
|
+
return g ^ (y | ~k);
|
|
2494
2496
|
}
|
|
2495
|
-
function b(g,
|
|
2496
|
-
return g <<
|
|
2497
|
+
function b(g, y) {
|
|
2498
|
+
return g << y | g >>> 32 - y;
|
|
2497
2499
|
}
|
|
2498
|
-
|
|
2500
|
+
u.RIPEMD160 = B._createHelper(p), u.HmacRIPEMD160 = B._createHmacHelper(p);
|
|
2499
2501
|
})(), t.RIPEMD160;
|
|
2500
2502
|
});
|
|
2501
|
-
})(
|
|
2503
|
+
})(U0)), U0.exports;
|
|
2502
2504
|
}
|
|
2503
|
-
var
|
|
2504
|
-
function
|
|
2505
|
-
return
|
|
2505
|
+
var j0 = { exports: {} }, rx = j0.exports, xe;
|
|
2506
|
+
function _r() {
|
|
2507
|
+
return xe || (xe = 1, (function(r, d) {
|
|
2506
2508
|
(function(t, e) {
|
|
2507
2509
|
r.exports = e(M());
|
|
2508
|
-
})(
|
|
2510
|
+
})(rx, function(t) {
|
|
2509
2511
|
(function() {
|
|
2510
|
-
var e = t,
|
|
2512
|
+
var e = t, u = e.lib, v = u.Base, _ = e.enc, B = _.Utf8, C = e.algo;
|
|
2511
2513
|
C.HMAC = v.extend({
|
|
2512
2514
|
/**
|
|
2513
2515
|
* Initializes a newly created HMAC.
|
|
@@ -2523,9 +2525,9 @@ function mr() {
|
|
|
2523
2525
|
x = this._hasher = new x.init(), typeof n == "string" && (n = B.parse(n));
|
|
2524
2526
|
var E = x.blockSize, a = E * 4;
|
|
2525
2527
|
n.sigBytes > a && (n = x.finalize(n)), n.clamp();
|
|
2526
|
-
for (var s = this._oKey = n.clone(),
|
|
2528
|
+
for (var s = this._oKey = n.clone(), f = this._iKey = n.clone(), p = s.words, h = f.words, D = 0; D < E; D++)
|
|
2527
2529
|
p[D] ^= 1549556828, h[D] ^= 909522486;
|
|
2528
|
-
s.sigBytes =
|
|
2530
|
+
s.sigBytes = f.sigBytes = a, this.reset();
|
|
2529
2531
|
},
|
|
2530
2532
|
/**
|
|
2531
2533
|
* Resets this HMAC to its initial state.
|
|
@@ -2576,16 +2578,16 @@ function mr() {
|
|
|
2576
2578
|
});
|
|
2577
2579
|
})();
|
|
2578
2580
|
});
|
|
2579
|
-
})(
|
|
2581
|
+
})(j0)), j0.exports;
|
|
2580
2582
|
}
|
|
2581
|
-
var
|
|
2582
|
-
function
|
|
2583
|
-
return
|
|
2584
|
-
(function(t, e,
|
|
2585
|
-
r.exports = e(M(),
|
|
2586
|
-
})(
|
|
2583
|
+
var G0 = { exports: {} }, ex = G0.exports, ne;
|
|
2584
|
+
function tx() {
|
|
2585
|
+
return ne || (ne = 1, (function(r, d) {
|
|
2586
|
+
(function(t, e, u) {
|
|
2587
|
+
r.exports = e(M(), mr(), _r());
|
|
2588
|
+
})(ex, function(t) {
|
|
2587
2589
|
return (function() {
|
|
2588
|
-
var e = t,
|
|
2590
|
+
var e = t, u = e.lib, v = u.Base, _ = u.WordArray, B = e.algo, C = B.SHA256, x = B.HMAC, n = B.PBKDF2 = v.extend({
|
|
2589
2591
|
/**
|
|
2590
2592
|
* Configuration options.
|
|
2591
2593
|
*
|
|
@@ -2625,12 +2627,12 @@ function ex() {
|
|
|
2625
2627
|
* var key = kdf.compute(password, salt);
|
|
2626
2628
|
*/
|
|
2627
2629
|
compute: function(E, a) {
|
|
2628
|
-
for (var s = this.cfg,
|
|
2629
|
-
var b =
|
|
2630
|
-
|
|
2631
|
-
for (var g = b.words,
|
|
2632
|
-
k =
|
|
2633
|
-
for (var F = k.words, w = 0; w <
|
|
2630
|
+
for (var s = this.cfg, f = x.create(s.hasher, E), p = _.create(), h = _.create([1]), D = p.words, i = h.words, o = s.keySize, l = s.iterations; D.length < o; ) {
|
|
2631
|
+
var b = f.update(a).finalize(h);
|
|
2632
|
+
f.reset();
|
|
2633
|
+
for (var g = b.words, y = g.length, k = b, R = 1; R < l; R++) {
|
|
2634
|
+
k = f.finalize(k), f.reset();
|
|
2635
|
+
for (var F = k.words, w = 0; w < y; w++)
|
|
2634
2636
|
g[w] ^= F[w];
|
|
2635
2637
|
}
|
|
2636
2638
|
p.concat(b), i[0]++;
|
|
@@ -2643,16 +2645,16 @@ function ex() {
|
|
|
2643
2645
|
};
|
|
2644
2646
|
})(), t.PBKDF2;
|
|
2645
2647
|
});
|
|
2646
|
-
})(
|
|
2648
|
+
})(G0)), G0.exports;
|
|
2647
2649
|
}
|
|
2648
|
-
var
|
|
2650
|
+
var K0 = { exports: {} }, xx = K0.exports, ae;
|
|
2649
2651
|
function o0() {
|
|
2650
|
-
return
|
|
2651
|
-
(function(t, e,
|
|
2652
|
-
r.exports = e(M(),
|
|
2653
|
-
})(
|
|
2652
|
+
return ae || (ae = 1, (function(r, d) {
|
|
2653
|
+
(function(t, e, u) {
|
|
2654
|
+
r.exports = e(M(), Pe(), _r());
|
|
2655
|
+
})(xx, function(t) {
|
|
2654
2656
|
return (function() {
|
|
2655
|
-
var e = t,
|
|
2657
|
+
var e = t, u = e.lib, v = u.Base, _ = u.WordArray, B = e.algo, C = B.MD5, x = B.EvpKDF = v.extend({
|
|
2656
2658
|
/**
|
|
2657
2659
|
* Configuration options.
|
|
2658
2660
|
*
|
|
@@ -2692,10 +2694,10 @@ function o0() {
|
|
|
2692
2694
|
* var key = kdf.compute(password, salt);
|
|
2693
2695
|
*/
|
|
2694
2696
|
compute: function(n, E) {
|
|
2695
|
-
for (var a, s = this.cfg,
|
|
2696
|
-
a &&
|
|
2697
|
+
for (var a, s = this.cfg, f = s.hasher.create(), p = _.create(), h = p.words, D = s.keySize, i = s.iterations; h.length < D; ) {
|
|
2698
|
+
a && f.update(a), a = f.update(n).finalize(E), f.reset();
|
|
2697
2699
|
for (var o = 1; o < i; o++)
|
|
2698
|
-
a =
|
|
2700
|
+
a = f.finalize(a), f.reset();
|
|
2699
2701
|
p.concat(a);
|
|
2700
2702
|
}
|
|
2701
2703
|
return p.sigBytes = D * 4, p;
|
|
@@ -2706,24 +2708,24 @@ function o0() {
|
|
|
2706
2708
|
};
|
|
2707
2709
|
})(), t.EvpKDF;
|
|
2708
2710
|
});
|
|
2709
|
-
})(
|
|
2711
|
+
})(K0)), K0.exports;
|
|
2710
2712
|
}
|
|
2711
|
-
var
|
|
2713
|
+
var X0 = { exports: {} }, nx = X0.exports, oe;
|
|
2712
2714
|
function X() {
|
|
2713
|
-
return
|
|
2714
|
-
(function(t, e,
|
|
2715
|
+
return oe || (oe = 1, (function(r, d) {
|
|
2716
|
+
(function(t, e, u) {
|
|
2715
2717
|
r.exports = e(M(), o0());
|
|
2716
|
-
})(
|
|
2718
|
+
})(nx, function(t) {
|
|
2717
2719
|
t.lib.Cipher || (function(e) {
|
|
2718
|
-
var
|
|
2720
|
+
var u = t, v = u.lib, _ = v.Base, B = v.WordArray, C = v.BufferedBlockAlgorithm, x = u.enc;
|
|
2719
2721
|
x.Utf8;
|
|
2720
|
-
var n = x.Base64, E =
|
|
2722
|
+
var n = x.Base64, E = u.algo, a = E.EvpKDF, s = v.Cipher = C.extend({
|
|
2721
2723
|
/**
|
|
2722
2724
|
* Configuration options.
|
|
2723
2725
|
*
|
|
2724
2726
|
* @property {WordArray} iv The IV to use for this operation.
|
|
2725
2727
|
*/
|
|
2726
|
-
cfg:
|
|
2728
|
+
cfg: _.extend(),
|
|
2727
2729
|
/**
|
|
2728
2730
|
* Creates this cipher in encryption mode.
|
|
2729
2731
|
*
|
|
@@ -2856,7 +2858,7 @@ function X() {
|
|
|
2856
2858
|
},
|
|
2857
2859
|
blockSize: 1
|
|
2858
2860
|
});
|
|
2859
|
-
var
|
|
2861
|
+
var f = u.mode = {}, p = v.BlockCipherMode = _.extend({
|
|
2860
2862
|
/**
|
|
2861
2863
|
* Creates this mode for encryption.
|
|
2862
2864
|
*
|
|
@@ -2900,7 +2902,7 @@ function X() {
|
|
|
2900
2902
|
init: function(F, w) {
|
|
2901
2903
|
this._cipher = F, this._iv = w;
|
|
2902
2904
|
}
|
|
2903
|
-
}), h =
|
|
2905
|
+
}), h = f.CBC = (function() {
|
|
2904
2906
|
var F = p.extend();
|
|
2905
2907
|
F.Encryptor = F.extend({
|
|
2906
2908
|
/**
|
|
@@ -2940,7 +2942,7 @@ function X() {
|
|
|
2940
2942
|
H[$ + U] ^= O[U];
|
|
2941
2943
|
}
|
|
2942
2944
|
return F;
|
|
2943
|
-
})(), D =
|
|
2945
|
+
})(), D = u.pad = {}, i = D.Pkcs7 = {
|
|
2944
2946
|
/**
|
|
2945
2947
|
* Pads data using the algorithm defined in PKCS #5/7.
|
|
2946
2948
|
*
|
|
@@ -3001,7 +3003,7 @@ function X() {
|
|
|
3001
3003
|
},
|
|
3002
3004
|
blockSize: 128 / 32
|
|
3003
3005
|
});
|
|
3004
|
-
var o = v.CipherParams =
|
|
3006
|
+
var o = v.CipherParams = _.extend({
|
|
3005
3007
|
/**
|
|
3006
3008
|
* Initializes a newly created cipher params object.
|
|
3007
3009
|
*
|
|
@@ -3042,7 +3044,7 @@ function X() {
|
|
|
3042
3044
|
toString: function(F) {
|
|
3043
3045
|
return (F || this.formatter).stringify(this);
|
|
3044
3046
|
}
|
|
3045
|
-
}), l =
|
|
3047
|
+
}), l = u.format = {}, b = l.OpenSSL = {
|
|
3046
3048
|
/**
|
|
3047
3049
|
* Converts a cipher params object to an OpenSSL-compatible string.
|
|
3048
3050
|
*
|
|
@@ -3077,13 +3079,13 @@ function X() {
|
|
|
3077
3079
|
var w, H = n.parse(F), $ = H.words;
|
|
3078
3080
|
return $[0] == 1398893684 && $[1] == 1701076831 && (w = B.create($.slice(2, 4)), $.splice(0, 4), H.sigBytes -= 16), o.create({ ciphertext: H, salt: w });
|
|
3079
3081
|
}
|
|
3080
|
-
}, g = v.SerializableCipher =
|
|
3082
|
+
}, g = v.SerializableCipher = _.extend({
|
|
3081
3083
|
/**
|
|
3082
3084
|
* Configuration options.
|
|
3083
3085
|
*
|
|
3084
3086
|
* @property {Formatter} format The formatting strategy to convert cipher param objects to and from a string. Default: OpenSSL
|
|
3085
3087
|
*/
|
|
3086
|
-
cfg:
|
|
3088
|
+
cfg: _.extend({
|
|
3087
3089
|
format: b
|
|
3088
3090
|
}),
|
|
3089
3091
|
/**
|
|
@@ -3158,7 +3160,7 @@ function X() {
|
|
|
3158
3160
|
_parse: function(F, w) {
|
|
3159
3161
|
return typeof F == "string" ? w.parse(F, this) : F;
|
|
3160
3162
|
}
|
|
3161
|
-
}),
|
|
3163
|
+
}), y = u.kdf = {}, k = y.OpenSSL = {
|
|
3162
3164
|
/**
|
|
3163
3165
|
* Derives a key and IV from a password.
|
|
3164
3166
|
*
|
|
@@ -3244,69 +3246,69 @@ function X() {
|
|
|
3244
3246
|
});
|
|
3245
3247
|
})();
|
|
3246
3248
|
});
|
|
3247
|
-
})(
|
|
3249
|
+
})(X0)), X0.exports;
|
|
3248
3250
|
}
|
|
3249
|
-
var
|
|
3250
|
-
function
|
|
3251
|
-
return
|
|
3252
|
-
(function(t, e,
|
|
3251
|
+
var Z0 = { exports: {} }, ax = Z0.exports, ie;
|
|
3252
|
+
function ox() {
|
|
3253
|
+
return ie || (ie = 1, (function(r, d) {
|
|
3254
|
+
(function(t, e, u) {
|
|
3253
3255
|
r.exports = e(M(), X());
|
|
3254
|
-
})(
|
|
3256
|
+
})(ax, function(t) {
|
|
3255
3257
|
return t.mode.CFB = (function() {
|
|
3256
3258
|
var e = t.lib.BlockCipherMode.extend();
|
|
3257
3259
|
e.Encryptor = e.extend({
|
|
3258
|
-
processBlock: function(v,
|
|
3260
|
+
processBlock: function(v, _) {
|
|
3259
3261
|
var B = this._cipher, C = B.blockSize;
|
|
3260
|
-
|
|
3262
|
+
u.call(this, v, _, C, B), this._prevBlock = v.slice(_, _ + C);
|
|
3261
3263
|
}
|
|
3262
3264
|
}), e.Decryptor = e.extend({
|
|
3263
|
-
processBlock: function(v,
|
|
3264
|
-
var B = this._cipher, C = B.blockSize, x = v.slice(
|
|
3265
|
-
|
|
3265
|
+
processBlock: function(v, _) {
|
|
3266
|
+
var B = this._cipher, C = B.blockSize, x = v.slice(_, _ + C);
|
|
3267
|
+
u.call(this, v, _, C, B), this._prevBlock = x;
|
|
3266
3268
|
}
|
|
3267
3269
|
});
|
|
3268
|
-
function
|
|
3270
|
+
function u(v, _, B, C) {
|
|
3269
3271
|
var x, n = this._iv;
|
|
3270
3272
|
n ? (x = n.slice(0), this._iv = void 0) : x = this._prevBlock, C.encryptBlock(x, 0);
|
|
3271
3273
|
for (var E = 0; E < B; E++)
|
|
3272
|
-
v[
|
|
3274
|
+
v[_ + E] ^= x[E];
|
|
3273
3275
|
}
|
|
3274
3276
|
return e;
|
|
3275
3277
|
})(), t.mode.CFB;
|
|
3276
3278
|
});
|
|
3277
|
-
})(
|
|
3279
|
+
})(Z0)), Z0.exports;
|
|
3278
3280
|
}
|
|
3279
|
-
var Y0 = { exports: {} },
|
|
3280
|
-
function
|
|
3281
|
-
return
|
|
3282
|
-
(function(t, e,
|
|
3281
|
+
var Y0 = { exports: {} }, ix = Y0.exports, se;
|
|
3282
|
+
function sx() {
|
|
3283
|
+
return se || (se = 1, (function(r, d) {
|
|
3284
|
+
(function(t, e, u) {
|
|
3283
3285
|
r.exports = e(M(), X());
|
|
3284
|
-
})(
|
|
3286
|
+
})(ix, function(t) {
|
|
3285
3287
|
return t.mode.CTR = (function() {
|
|
3286
|
-
var e = t.lib.BlockCipherMode.extend(),
|
|
3287
|
-
processBlock: function(v,
|
|
3288
|
+
var e = t.lib.BlockCipherMode.extend(), u = e.Encryptor = e.extend({
|
|
3289
|
+
processBlock: function(v, _) {
|
|
3288
3290
|
var B = this._cipher, C = B.blockSize, x = this._iv, n = this._counter;
|
|
3289
3291
|
x && (n = this._counter = x.slice(0), this._iv = void 0);
|
|
3290
3292
|
var E = n.slice(0);
|
|
3291
3293
|
B.encryptBlock(E, 0), n[C - 1] = n[C - 1] + 1 | 0;
|
|
3292
3294
|
for (var a = 0; a < C; a++)
|
|
3293
|
-
v[
|
|
3295
|
+
v[_ + a] ^= E[a];
|
|
3294
3296
|
}
|
|
3295
3297
|
});
|
|
3296
|
-
return e.Decryptor =
|
|
3298
|
+
return e.Decryptor = u, e;
|
|
3297
3299
|
})(), t.mode.CTR;
|
|
3298
3300
|
});
|
|
3299
3301
|
})(Y0)), Y0.exports;
|
|
3300
3302
|
}
|
|
3301
|
-
var
|
|
3302
|
-
function
|
|
3303
|
-
return
|
|
3304
|
-
(function(t, e,
|
|
3303
|
+
var Q0 = { exports: {} }, cx = Q0.exports, ce;
|
|
3304
|
+
function fx() {
|
|
3305
|
+
return ce || (ce = 1, (function(r, d) {
|
|
3306
|
+
(function(t, e, u) {
|
|
3305
3307
|
r.exports = e(M(), X());
|
|
3306
|
-
})(
|
|
3308
|
+
})(cx, function(t) {
|
|
3307
3309
|
return t.mode.CTRGladman = (function() {
|
|
3308
3310
|
var e = t.lib.BlockCipherMode.extend();
|
|
3309
|
-
function
|
|
3311
|
+
function u(B) {
|
|
3310
3312
|
if ((B >> 24 & 255) === 255) {
|
|
3311
3313
|
var C = B >> 16 & 255, x = B >> 8 & 255, n = B & 255;
|
|
3312
3314
|
C === 255 ? (C = 0, x === 255 ? (x = 0, n === 255 ? n = 0 : ++n) : ++x) : ++C, B = 0, B += C << 16, B += x << 8, B += n;
|
|
@@ -3315,147 +3317,147 @@ function cx() {
|
|
|
3315
3317
|
return B;
|
|
3316
3318
|
}
|
|
3317
3319
|
function v(B) {
|
|
3318
|
-
return (B[0] =
|
|
3320
|
+
return (B[0] = u(B[0])) === 0 && (B[1] = u(B[1])), B;
|
|
3319
3321
|
}
|
|
3320
|
-
var
|
|
3322
|
+
var _ = e.Encryptor = e.extend({
|
|
3321
3323
|
processBlock: function(B, C) {
|
|
3322
3324
|
var x = this._cipher, n = x.blockSize, E = this._iv, a = this._counter;
|
|
3323
3325
|
E && (a = this._counter = E.slice(0), this._iv = void 0), v(a);
|
|
3324
3326
|
var s = a.slice(0);
|
|
3325
3327
|
x.encryptBlock(s, 0);
|
|
3326
|
-
for (var
|
|
3327
|
-
B[C +
|
|
3328
|
+
for (var f = 0; f < n; f++)
|
|
3329
|
+
B[C + f] ^= s[f];
|
|
3328
3330
|
}
|
|
3329
3331
|
});
|
|
3330
|
-
return e.Decryptor =
|
|
3332
|
+
return e.Decryptor = _, e;
|
|
3331
3333
|
})(), t.mode.CTRGladman;
|
|
3332
3334
|
});
|
|
3333
|
-
})(
|
|
3335
|
+
})(Q0)), Q0.exports;
|
|
3334
3336
|
}
|
|
3335
|
-
var
|
|
3336
|
-
function
|
|
3337
|
-
return
|
|
3338
|
-
(function(t, e,
|
|
3337
|
+
var V0 = { exports: {} }, ux = V0.exports, fe;
|
|
3338
|
+
function dx() {
|
|
3339
|
+
return fe || (fe = 1, (function(r, d) {
|
|
3340
|
+
(function(t, e, u) {
|
|
3339
3341
|
r.exports = e(M(), X());
|
|
3340
|
-
})(
|
|
3342
|
+
})(ux, function(t) {
|
|
3341
3343
|
return t.mode.OFB = (function() {
|
|
3342
|
-
var e = t.lib.BlockCipherMode.extend(),
|
|
3343
|
-
processBlock: function(v,
|
|
3344
|
+
var e = t.lib.BlockCipherMode.extend(), u = e.Encryptor = e.extend({
|
|
3345
|
+
processBlock: function(v, _) {
|
|
3344
3346
|
var B = this._cipher, C = B.blockSize, x = this._iv, n = this._keystream;
|
|
3345
3347
|
x && (n = this._keystream = x.slice(0), this._iv = void 0), B.encryptBlock(n, 0);
|
|
3346
3348
|
for (var E = 0; E < C; E++)
|
|
3347
|
-
v[
|
|
3349
|
+
v[_ + E] ^= n[E];
|
|
3348
3350
|
}
|
|
3349
3351
|
});
|
|
3350
|
-
return e.Decryptor =
|
|
3352
|
+
return e.Decryptor = u, e;
|
|
3351
3353
|
})(), t.mode.OFB;
|
|
3352
3354
|
});
|
|
3353
|
-
})(
|
|
3355
|
+
})(V0)), V0.exports;
|
|
3354
3356
|
}
|
|
3355
|
-
var
|
|
3356
|
-
function
|
|
3357
|
-
return
|
|
3358
|
-
(function(t, e,
|
|
3357
|
+
var J0 = { exports: {} }, lx = J0.exports, ue;
|
|
3358
|
+
function hx() {
|
|
3359
|
+
return ue || (ue = 1, (function(r, d) {
|
|
3360
|
+
(function(t, e, u) {
|
|
3359
3361
|
r.exports = e(M(), X());
|
|
3360
|
-
})(
|
|
3362
|
+
})(lx, function(t) {
|
|
3361
3363
|
return t.mode.ECB = (function() {
|
|
3362
3364
|
var e = t.lib.BlockCipherMode.extend();
|
|
3363
3365
|
return e.Encryptor = e.extend({
|
|
3364
|
-
processBlock: function(
|
|
3365
|
-
this._cipher.encryptBlock(
|
|
3366
|
+
processBlock: function(u, v) {
|
|
3367
|
+
this._cipher.encryptBlock(u, v);
|
|
3366
3368
|
}
|
|
3367
3369
|
}), e.Decryptor = e.extend({
|
|
3368
|
-
processBlock: function(
|
|
3369
|
-
this._cipher.decryptBlock(
|
|
3370
|
+
processBlock: function(u, v) {
|
|
3371
|
+
this._cipher.decryptBlock(u, v);
|
|
3370
3372
|
}
|
|
3371
3373
|
}), e;
|
|
3372
3374
|
})(), t.mode.ECB;
|
|
3373
3375
|
});
|
|
3374
|
-
})(
|
|
3376
|
+
})(J0)), J0.exports;
|
|
3375
3377
|
}
|
|
3376
|
-
var
|
|
3377
|
-
function
|
|
3378
|
-
return
|
|
3379
|
-
(function(t, e,
|
|
3378
|
+
var rr = { exports: {} }, vx = rr.exports, de;
|
|
3379
|
+
function px() {
|
|
3380
|
+
return de || (de = 1, (function(r, d) {
|
|
3381
|
+
(function(t, e, u) {
|
|
3380
3382
|
r.exports = e(M(), X());
|
|
3381
|
-
})(
|
|
3383
|
+
})(vx, function(t) {
|
|
3382
3384
|
return t.pad.AnsiX923 = {
|
|
3383
|
-
pad: function(e,
|
|
3384
|
-
var v = e.sigBytes,
|
|
3385
|
+
pad: function(e, u) {
|
|
3386
|
+
var v = e.sigBytes, _ = u * 4, B = _ - v % _, C = v + B - 1;
|
|
3385
3387
|
e.clamp(), e.words[C >>> 2] |= B << 24 - C % 4 * 8, e.sigBytes += B;
|
|
3386
3388
|
},
|
|
3387
3389
|
unpad: function(e) {
|
|
3388
|
-
var
|
|
3389
|
-
e.sigBytes -=
|
|
3390
|
+
var u = e.words[e.sigBytes - 1 >>> 2] & 255;
|
|
3391
|
+
e.sigBytes -= u;
|
|
3390
3392
|
}
|
|
3391
3393
|
}, t.pad.Ansix923;
|
|
3392
3394
|
});
|
|
3393
|
-
})(
|
|
3395
|
+
})(rr)), rr.exports;
|
|
3394
3396
|
}
|
|
3395
|
-
var
|
|
3396
|
-
function
|
|
3397
|
-
return
|
|
3398
|
-
(function(t, e,
|
|
3397
|
+
var er = { exports: {} }, Bx = er.exports, le;
|
|
3398
|
+
function Cx() {
|
|
3399
|
+
return le || (le = 1, (function(r, d) {
|
|
3400
|
+
(function(t, e, u) {
|
|
3399
3401
|
r.exports = e(M(), X());
|
|
3400
|
-
})(
|
|
3402
|
+
})(Bx, function(t) {
|
|
3401
3403
|
return t.pad.Iso10126 = {
|
|
3402
|
-
pad: function(e,
|
|
3403
|
-
var v =
|
|
3404
|
-
e.concat(t.lib.WordArray.random(
|
|
3404
|
+
pad: function(e, u) {
|
|
3405
|
+
var v = u * 4, _ = v - e.sigBytes % v;
|
|
3406
|
+
e.concat(t.lib.WordArray.random(_ - 1)).concat(t.lib.WordArray.create([_ << 24], 1));
|
|
3405
3407
|
},
|
|
3406
3408
|
unpad: function(e) {
|
|
3407
|
-
var
|
|
3408
|
-
e.sigBytes -=
|
|
3409
|
+
var u = e.words[e.sigBytes - 1 >>> 2] & 255;
|
|
3410
|
+
e.sigBytes -= u;
|
|
3409
3411
|
}
|
|
3410
3412
|
}, t.pad.Iso10126;
|
|
3411
3413
|
});
|
|
3412
|
-
})(
|
|
3414
|
+
})(er)), er.exports;
|
|
3413
3415
|
}
|
|
3414
|
-
var
|
|
3415
|
-
function
|
|
3416
|
-
return
|
|
3417
|
-
(function(t, e,
|
|
3416
|
+
var tr = { exports: {} }, Ex = tr.exports, he;
|
|
3417
|
+
function Ax() {
|
|
3418
|
+
return he || (he = 1, (function(r, d) {
|
|
3419
|
+
(function(t, e, u) {
|
|
3418
3420
|
r.exports = e(M(), X());
|
|
3419
|
-
})(
|
|
3421
|
+
})(Ex, function(t) {
|
|
3420
3422
|
return t.pad.Iso97971 = {
|
|
3421
|
-
pad: function(e,
|
|
3422
|
-
e.concat(t.lib.WordArray.create([2147483648], 1)), t.pad.ZeroPadding.pad(e,
|
|
3423
|
+
pad: function(e, u) {
|
|
3424
|
+
e.concat(t.lib.WordArray.create([2147483648], 1)), t.pad.ZeroPadding.pad(e, u);
|
|
3423
3425
|
},
|
|
3424
3426
|
unpad: function(e) {
|
|
3425
3427
|
t.pad.ZeroPadding.unpad(e), e.sigBytes--;
|
|
3426
3428
|
}
|
|
3427
3429
|
}, t.pad.Iso97971;
|
|
3428
3430
|
});
|
|
3429
|
-
})(
|
|
3431
|
+
})(tr)), tr.exports;
|
|
3430
3432
|
}
|
|
3431
|
-
var
|
|
3432
|
-
function
|
|
3433
|
-
return
|
|
3434
|
-
(function(t, e,
|
|
3433
|
+
var xr = { exports: {} }, Fx = xr.exports, ve;
|
|
3434
|
+
function gx() {
|
|
3435
|
+
return ve || (ve = 1, (function(r, d) {
|
|
3436
|
+
(function(t, e, u) {
|
|
3435
3437
|
r.exports = e(M(), X());
|
|
3436
|
-
})(
|
|
3438
|
+
})(Fx, function(t) {
|
|
3437
3439
|
return t.pad.ZeroPadding = {
|
|
3438
|
-
pad: function(e,
|
|
3439
|
-
var v =
|
|
3440
|
+
pad: function(e, u) {
|
|
3441
|
+
var v = u * 4;
|
|
3440
3442
|
e.clamp(), e.sigBytes += v - (e.sigBytes % v || v);
|
|
3441
3443
|
},
|
|
3442
3444
|
unpad: function(e) {
|
|
3443
|
-
for (var
|
|
3444
|
-
if (
|
|
3445
|
+
for (var u = e.words, v = e.sigBytes - 1, v = e.sigBytes - 1; v >= 0; v--)
|
|
3446
|
+
if (u[v >>> 2] >>> 24 - v % 4 * 8 & 255) {
|
|
3445
3447
|
e.sigBytes = v + 1;
|
|
3446
3448
|
break;
|
|
3447
3449
|
}
|
|
3448
3450
|
}
|
|
3449
3451
|
}, t.pad.ZeroPadding;
|
|
3450
3452
|
});
|
|
3451
|
-
})(
|
|
3453
|
+
})(xr)), xr.exports;
|
|
3452
3454
|
}
|
|
3453
|
-
var
|
|
3454
|
-
function
|
|
3455
|
-
return
|
|
3456
|
-
(function(t, e,
|
|
3455
|
+
var nr = { exports: {} }, Dx = nr.exports, pe;
|
|
3456
|
+
function bx() {
|
|
3457
|
+
return pe || (pe = 1, (function(r, d) {
|
|
3458
|
+
(function(t, e, u) {
|
|
3457
3459
|
r.exports = e(M(), X());
|
|
3458
|
-
})(
|
|
3460
|
+
})(Dx, function(t) {
|
|
3459
3461
|
return t.pad.NoPadding = {
|
|
3460
3462
|
pad: function() {
|
|
3461
3463
|
},
|
|
@@ -3463,16 +3465,16 @@ function Dx() {
|
|
|
3463
3465
|
}
|
|
3464
3466
|
}, t.pad.NoPadding;
|
|
3465
3467
|
});
|
|
3466
|
-
})(
|
|
3468
|
+
})(nr)), nr.exports;
|
|
3467
3469
|
}
|
|
3468
|
-
var
|
|
3469
|
-
function
|
|
3470
|
-
return
|
|
3471
|
-
(function(t, e,
|
|
3470
|
+
var ar = { exports: {} }, mx = ar.exports, Be;
|
|
3471
|
+
function _x() {
|
|
3472
|
+
return Be || (Be = 1, (function(r, d) {
|
|
3473
|
+
(function(t, e, u) {
|
|
3472
3474
|
r.exports = e(M(), X());
|
|
3473
|
-
})(
|
|
3475
|
+
})(mx, function(t) {
|
|
3474
3476
|
return (function(e) {
|
|
3475
|
-
var
|
|
3477
|
+
var u = t, v = u.lib, _ = v.CipherParams, B = u.enc, C = B.Hex, x = u.format;
|
|
3476
3478
|
x.Hex = {
|
|
3477
3479
|
/**
|
|
3478
3480
|
* Converts the ciphertext of a cipher params object to a hexadecimally encoded string.
|
|
@@ -3505,38 +3507,38 @@ function mx() {
|
|
|
3505
3507
|
*/
|
|
3506
3508
|
parse: function(n) {
|
|
3507
3509
|
var E = C.parse(n);
|
|
3508
|
-
return
|
|
3510
|
+
return _.create({ ciphertext: E });
|
|
3509
3511
|
}
|
|
3510
3512
|
};
|
|
3511
3513
|
})(), t.format.Hex;
|
|
3512
3514
|
});
|
|
3513
|
-
})(
|
|
3515
|
+
})(ar)), ar.exports;
|
|
3514
3516
|
}
|
|
3515
|
-
var
|
|
3516
|
-
function
|
|
3517
|
-
return
|
|
3518
|
-
(function(t, e,
|
|
3517
|
+
var or = { exports: {} }, yx = or.exports, Ce;
|
|
3518
|
+
function wx() {
|
|
3519
|
+
return Ce || (Ce = 1, (function(r, d) {
|
|
3520
|
+
(function(t, e, u) {
|
|
3519
3521
|
r.exports = e(M(), c0(), f0(), o0(), X());
|
|
3520
|
-
})(
|
|
3522
|
+
})(yx, function(t) {
|
|
3521
3523
|
return (function() {
|
|
3522
|
-
var e = t,
|
|
3524
|
+
var e = t, u = e.lib, v = u.BlockCipher, _ = e.algo, B = [], C = [], x = [], n = [], E = [], a = [], s = [], f = [], p = [], h = [];
|
|
3523
3525
|
(function() {
|
|
3524
3526
|
for (var o = [], l = 0; l < 256; l++)
|
|
3525
3527
|
l < 128 ? o[l] = l << 1 : o[l] = l << 1 ^ 283;
|
|
3526
3528
|
for (var b = 0, g = 0, l = 0; l < 256; l++) {
|
|
3527
|
-
var
|
|
3528
|
-
|
|
3529
|
-
var k = o[b], R = o[k], F = o[R], w = o[
|
|
3529
|
+
var y = g ^ g << 1 ^ g << 2 ^ g << 3 ^ g << 4;
|
|
3530
|
+
y = y >>> 8 ^ y & 255 ^ 99, B[b] = y, C[y] = b;
|
|
3531
|
+
var k = o[b], R = o[k], F = o[R], w = o[y] * 257 ^ y * 16843008;
|
|
3530
3532
|
x[b] = w << 24 | w >>> 8, n[b] = w << 16 | w >>> 16, E[b] = w << 8 | w >>> 24, a[b] = w;
|
|
3531
3533
|
var w = F * 16843009 ^ R * 65537 ^ k * 257 ^ b * 16843008;
|
|
3532
|
-
s[
|
|
3534
|
+
s[y] = w << 24 | w >>> 8, f[y] = w << 16 | w >>> 16, p[y] = w << 8 | w >>> 24, h[y] = w, b ? (b = k ^ o[o[o[F ^ k]]], g ^= o[o[g]]) : b = g = 1;
|
|
3533
3535
|
}
|
|
3534
3536
|
})();
|
|
3535
|
-
var D = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], i =
|
|
3537
|
+
var D = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], i = _.AES = v.extend({
|
|
3536
3538
|
_doReset: function() {
|
|
3537
3539
|
var o;
|
|
3538
3540
|
if (!(this._nRounds && this._keyPriorReset === this._key)) {
|
|
3539
|
-
for (var l = this._keyPriorReset = this._key, b = l.words, g = l.sigBytes / 4,
|
|
3541
|
+
for (var l = this._keyPriorReset = this._key, b = l.words, g = l.sigBytes / 4, y = this._nRounds = g + 6, k = (y + 1) * 4, R = this._keySchedule = [], F = 0; F < k; F++)
|
|
3540
3542
|
F < g ? R[F] = b[F] : (o = R[F - 1], F % g ? g > 6 && F % g == 4 && (o = B[o >>> 24] << 24 | B[o >>> 16 & 255] << 16 | B[o >>> 8 & 255] << 8 | B[o & 255]) : (o = o << 8 | o >>> 24, o = B[o >>> 24] << 24 | B[o >>> 16 & 255] << 16 | B[o >>> 8 & 255] << 8 | B[o & 255], o ^= D[F / g | 0] << 24), R[F] = R[F - g] ^ o);
|
|
3541
3543
|
for (var w = this._invKeySchedule = [], H = 0; H < k; H++) {
|
|
3542
3544
|
var F = k - H;
|
|
@@ -3544,7 +3546,7 @@ function yx() {
|
|
|
3544
3546
|
var o = R[F];
|
|
3545
3547
|
else
|
|
3546
3548
|
var o = R[F - 4];
|
|
3547
|
-
H < 4 || F <= 4 ? w[H] = o : w[H] = s[B[o >>> 24]] ^
|
|
3549
|
+
H < 4 || F <= 4 ? w[H] = o : w[H] = s[B[o >>> 24]] ^ f[B[o >>> 16 & 255]] ^ p[B[o >>> 8 & 255]] ^ h[B[o & 255]];
|
|
3548
3550
|
}
|
|
3549
3551
|
}
|
|
3550
3552
|
},
|
|
@@ -3553,13 +3555,13 @@ function yx() {
|
|
|
3553
3555
|
},
|
|
3554
3556
|
decryptBlock: function(o, l) {
|
|
3555
3557
|
var b = o[l + 1];
|
|
3556
|
-
o[l + 1] = o[l + 3], o[l + 3] = b, this._doCryptBlock(o, l, this._invKeySchedule, s,
|
|
3558
|
+
o[l + 1] = o[l + 3], o[l + 3] = b, this._doCryptBlock(o, l, this._invKeySchedule, s, f, p, h, C);
|
|
3557
3559
|
var b = o[l + 1];
|
|
3558
3560
|
o[l + 1] = o[l + 3], o[l + 3] = b;
|
|
3559
3561
|
},
|
|
3560
|
-
_doCryptBlock: function(o, l, b, g,
|
|
3562
|
+
_doCryptBlock: function(o, l, b, g, y, k, R, F) {
|
|
3561
3563
|
for (var w = this._nRounds, H = o[l] ^ b[0], $ = o[l + 1] ^ b[1], z = o[l + 2] ^ b[2], O = o[l + 3] ^ b[3], q = 4, U = 1; U < w; U++) {
|
|
3562
|
-
var T = g[H >>> 24] ^
|
|
3564
|
+
var T = g[H >>> 24] ^ y[$ >>> 16 & 255] ^ k[z >>> 8 & 255] ^ R[O & 255] ^ b[q++], N = g[$ >>> 24] ^ y[z >>> 16 & 255] ^ k[O >>> 8 & 255] ^ R[H & 255] ^ b[q++], j = g[z >>> 24] ^ y[O >>> 16 & 255] ^ k[H >>> 8 & 255] ^ R[$ & 255] ^ b[q++], S = g[O >>> 24] ^ y[H >>> 16 & 255] ^ k[$ >>> 8 & 255] ^ R[z & 255] ^ b[q++];
|
|
3563
3565
|
H = T, $ = N, z = j, O = S;
|
|
3564
3566
|
}
|
|
3565
3567
|
var T = (F[H >>> 24] << 24 | F[$ >>> 16 & 255] << 16 | F[z >>> 8 & 255] << 8 | F[O & 255]) ^ b[q++], N = (F[$ >>> 24] << 24 | F[z >>> 16 & 255] << 16 | F[O >>> 8 & 255] << 8 | F[H & 255]) ^ b[q++], j = (F[z >>> 24] << 24 | F[O >>> 16 & 255] << 16 | F[H >>> 8 & 255] << 8 | F[$ & 255]) ^ b[q++], S = (F[O >>> 24] << 24 | F[H >>> 16 & 255] << 16 | F[$ >>> 8 & 255] << 8 | F[z & 255]) ^ b[q++];
|
|
@@ -3570,16 +3572,16 @@ function yx() {
|
|
|
3570
3572
|
e.AES = v._createHelper(i);
|
|
3571
3573
|
})(), t.AES;
|
|
3572
3574
|
});
|
|
3573
|
-
})(
|
|
3575
|
+
})(or)), or.exports;
|
|
3574
3576
|
}
|
|
3575
|
-
var
|
|
3576
|
-
function
|
|
3577
|
-
return
|
|
3578
|
-
(function(t, e,
|
|
3577
|
+
var ir = { exports: {} }, kx = ir.exports, Ee;
|
|
3578
|
+
function Sx() {
|
|
3579
|
+
return Ee || (Ee = 1, (function(r, d) {
|
|
3580
|
+
(function(t, e, u) {
|
|
3579
3581
|
r.exports = e(M(), c0(), f0(), o0(), X());
|
|
3580
|
-
})(
|
|
3582
|
+
})(kx, function(t) {
|
|
3581
3583
|
return (function() {
|
|
3582
|
-
var e = t,
|
|
3584
|
+
var e = t, u = e.lib, v = u.WordArray, _ = u.BlockCipher, B = e.algo, C = [
|
|
3583
3585
|
57,
|
|
3584
3586
|
49,
|
|
3585
3587
|
41,
|
|
@@ -4223,14 +4225,14 @@ function kx() {
|
|
|
4223
4225
|
8064,
|
|
4224
4226
|
504,
|
|
4225
4227
|
2147483679
|
|
4226
|
-
], s = B.DES =
|
|
4228
|
+
], s = B.DES = _.extend({
|
|
4227
4229
|
_doReset: function() {
|
|
4228
4230
|
for (var D = this._key, i = D.words, o = [], l = 0; l < 56; l++) {
|
|
4229
4231
|
var b = C[l] - 1;
|
|
4230
4232
|
o[l] = i[b >>> 5] >>> 31 - b % 32 & 1;
|
|
4231
4233
|
}
|
|
4232
|
-
for (var g = this._subKeys = [],
|
|
4233
|
-
for (var k = g[
|
|
4234
|
+
for (var g = this._subKeys = [], y = 0; y < 16; y++) {
|
|
4235
|
+
for (var k = g[y] = [], R = n[y], l = 0; l < 24; l++)
|
|
4234
4236
|
k[l / 6 | 0] |= o[(x[l] - 1 + R) % 28] << 31 - l % 6, k[4 + (l / 6 | 0)] |= o[28 + (x[l + 24] - 1 + R) % 28] << 31 - l % 6;
|
|
4235
4237
|
k[0] = k[0] << 1 | k[0] >>> 31;
|
|
4236
4238
|
for (var l = 1; l < 7; l++)
|
|
@@ -4247,20 +4249,20 @@ function kx() {
|
|
|
4247
4249
|
this._doCryptBlock(D, i, this._invSubKeys);
|
|
4248
4250
|
},
|
|
4249
4251
|
_doCryptBlock: function(D, i, o) {
|
|
4250
|
-
this._lBlock = D[i], this._rBlock = D[i + 1],
|
|
4252
|
+
this._lBlock = D[i], this._rBlock = D[i + 1], f.call(this, 4, 252645135), f.call(this, 16, 65535), p.call(this, 2, 858993459), p.call(this, 8, 16711935), f.call(this, 1, 1431655765);
|
|
4251
4253
|
for (var l = 0; l < 16; l++) {
|
|
4252
|
-
for (var b = o[l], g = this._lBlock,
|
|
4253
|
-
k |= E[R][((
|
|
4254
|
-
this._lBlock =
|
|
4254
|
+
for (var b = o[l], g = this._lBlock, y = this._rBlock, k = 0, R = 0; R < 8; R++)
|
|
4255
|
+
k |= E[R][((y ^ b[R]) & a[R]) >>> 0];
|
|
4256
|
+
this._lBlock = y, this._rBlock = g ^ k;
|
|
4255
4257
|
}
|
|
4256
4258
|
var F = this._lBlock;
|
|
4257
|
-
this._lBlock = this._rBlock, this._rBlock = F,
|
|
4259
|
+
this._lBlock = this._rBlock, this._rBlock = F, f.call(this, 1, 1431655765), p.call(this, 8, 16711935), p.call(this, 2, 858993459), f.call(this, 16, 65535), f.call(this, 4, 252645135), D[i] = this._lBlock, D[i + 1] = this._rBlock;
|
|
4258
4260
|
},
|
|
4259
4261
|
keySize: 64 / 32,
|
|
4260
4262
|
ivSize: 64 / 32,
|
|
4261
4263
|
blockSize: 64 / 32
|
|
4262
4264
|
});
|
|
4263
|
-
function
|
|
4265
|
+
function f(D, i) {
|
|
4264
4266
|
var o = (this._lBlock >>> D ^ this._rBlock) & i;
|
|
4265
4267
|
this._rBlock ^= o, this._lBlock ^= o << D;
|
|
4266
4268
|
}
|
|
@@ -4268,8 +4270,8 @@ function kx() {
|
|
|
4268
4270
|
var o = (this._rBlock >>> D ^ this._lBlock) & i;
|
|
4269
4271
|
this._lBlock ^= o, this._rBlock ^= o << D;
|
|
4270
4272
|
}
|
|
4271
|
-
e.DES =
|
|
4272
|
-
var h = B.TripleDES =
|
|
4273
|
+
e.DES = _._createHelper(s);
|
|
4274
|
+
var h = B.TripleDES = _.extend({
|
|
4273
4275
|
_doReset: function() {
|
|
4274
4276
|
var D = this._key, i = D.words;
|
|
4275
4277
|
if (i.length !== 2 && i.length !== 4 && i.length < 6)
|
|
@@ -4287,27 +4289,27 @@ function kx() {
|
|
|
4287
4289
|
ivSize: 64 / 32,
|
|
4288
4290
|
blockSize: 64 / 32
|
|
4289
4291
|
});
|
|
4290
|
-
e.TripleDES =
|
|
4292
|
+
e.TripleDES = _._createHelper(h);
|
|
4291
4293
|
})(), t.TripleDES;
|
|
4292
4294
|
});
|
|
4293
|
-
})(
|
|
4295
|
+
})(ir)), ir.exports;
|
|
4294
4296
|
}
|
|
4295
|
-
var
|
|
4296
|
-
function
|
|
4297
|
-
return
|
|
4298
|
-
(function(t, e,
|
|
4297
|
+
var sr = { exports: {} }, Hx = sr.exports, Ae;
|
|
4298
|
+
function $x() {
|
|
4299
|
+
return Ae || (Ae = 1, (function(r, d) {
|
|
4300
|
+
(function(t, e, u) {
|
|
4299
4301
|
r.exports = e(M(), c0(), f0(), o0(), X());
|
|
4300
|
-
})(
|
|
4302
|
+
})(Hx, function(t) {
|
|
4301
4303
|
return (function() {
|
|
4302
|
-
var e = t,
|
|
4304
|
+
var e = t, u = e.lib, v = u.StreamCipher, _ = e.algo, B = _.RC4 = v.extend({
|
|
4303
4305
|
_doReset: function() {
|
|
4304
|
-
for (var n = this._key, E = n.words, a = n.sigBytes, s = this._S = [],
|
|
4305
|
-
s[
|
|
4306
|
-
for (var
|
|
4307
|
-
var h =
|
|
4308
|
-
p = (p + s[
|
|
4309
|
-
var i = s[
|
|
4310
|
-
s[
|
|
4306
|
+
for (var n = this._key, E = n.words, a = n.sigBytes, s = this._S = [], f = 0; f < 256; f++)
|
|
4307
|
+
s[f] = f;
|
|
4308
|
+
for (var f = 0, p = 0; f < 256; f++) {
|
|
4309
|
+
var h = f % a, D = E[h >>> 2] >>> 24 - h % 4 * 8 & 255;
|
|
4310
|
+
p = (p + s[f] + D) % 256;
|
|
4311
|
+
var i = s[f];
|
|
4312
|
+
s[f] = s[p], s[p] = i;
|
|
4311
4313
|
}
|
|
4312
4314
|
this._i = this._j = 0;
|
|
4313
4315
|
},
|
|
@@ -4318,15 +4320,15 @@ function Hx() {
|
|
|
4318
4320
|
ivSize: 0
|
|
4319
4321
|
});
|
|
4320
4322
|
function C() {
|
|
4321
|
-
for (var n = this._S, E = this._i, a = this._j, s = 0,
|
|
4323
|
+
for (var n = this._S, E = this._i, a = this._j, s = 0, f = 0; f < 4; f++) {
|
|
4322
4324
|
E = (E + 1) % 256, a = (a + n[E]) % 256;
|
|
4323
4325
|
var p = n[E];
|
|
4324
|
-
n[E] = n[a], n[a] = p, s |= n[(n[E] + n[a]) % 256] << 24 -
|
|
4326
|
+
n[E] = n[a], n[a] = p, s |= n[(n[E] + n[a]) % 256] << 24 - f * 8;
|
|
4325
4327
|
}
|
|
4326
4328
|
return this._i = E, this._j = a, s;
|
|
4327
4329
|
}
|
|
4328
4330
|
e.RC4 = v._createHelper(B);
|
|
4329
|
-
var x =
|
|
4331
|
+
var x = _.RC4Drop = B.extend({
|
|
4330
4332
|
/**
|
|
4331
4333
|
* Configuration options.
|
|
4332
4334
|
*
|
|
@@ -4344,19 +4346,19 @@ function Hx() {
|
|
|
4344
4346
|
e.RC4Drop = v._createHelper(x);
|
|
4345
4347
|
})(), t.RC4;
|
|
4346
4348
|
});
|
|
4347
|
-
})(
|
|
4349
|
+
})(sr)), sr.exports;
|
|
4348
4350
|
}
|
|
4349
|
-
var
|
|
4350
|
-
function
|
|
4351
|
-
return
|
|
4352
|
-
(function(t, e,
|
|
4351
|
+
var cr = { exports: {} }, Rx = cr.exports, Fe;
|
|
4352
|
+
function Px() {
|
|
4353
|
+
return Fe || (Fe = 1, (function(r, d) {
|
|
4354
|
+
(function(t, e, u) {
|
|
4353
4355
|
r.exports = e(M(), c0(), f0(), o0(), X());
|
|
4354
|
-
})(
|
|
4356
|
+
})(Rx, function(t) {
|
|
4355
4357
|
return (function() {
|
|
4356
|
-
var e = t,
|
|
4358
|
+
var e = t, u = e.lib, v = u.StreamCipher, _ = e.algo, B = [], C = [], x = [], n = _.Rabbit = v.extend({
|
|
4357
4359
|
_doReset: function() {
|
|
4358
|
-
for (var a = this._key.words, s = this.cfg.iv,
|
|
4359
|
-
a[
|
|
4360
|
+
for (var a = this._key.words, s = this.cfg.iv, f = 0; f < 4; f++)
|
|
4361
|
+
a[f] = (a[f] << 8 | a[f] >>> 24) & 16711935 | (a[f] << 24 | a[f] >>> 8) & 4278255360;
|
|
4360
4362
|
var p = this._X = [
|
|
4361
4363
|
a[0],
|
|
4362
4364
|
a[3] << 16 | a[2] >>> 16,
|
|
@@ -4377,20 +4379,20 @@ function Rx() {
|
|
|
4377
4379
|
a[3] & 4294901760 | a[0] & 65535
|
|
4378
4380
|
];
|
|
4379
4381
|
this._b = 0;
|
|
4380
|
-
for (var
|
|
4382
|
+
for (var f = 0; f < 4; f++)
|
|
4381
4383
|
E.call(this);
|
|
4382
|
-
for (var
|
|
4383
|
-
h[
|
|
4384
|
+
for (var f = 0; f < 8; f++)
|
|
4385
|
+
h[f] ^= p[f + 4 & 7];
|
|
4384
4386
|
if (s) {
|
|
4385
|
-
var D = s.words, i = D[0], o = D[1], l = (i << 8 | i >>> 24) & 16711935 | (i << 24 | i >>> 8) & 4278255360, b = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360, g = l >>> 16 | b & 4294901760,
|
|
4386
|
-
h[0] ^= l, h[1] ^= g, h[2] ^= b, h[3] ^=
|
|
4387
|
-
for (var
|
|
4387
|
+
var D = s.words, i = D[0], o = D[1], l = (i << 8 | i >>> 24) & 16711935 | (i << 24 | i >>> 8) & 4278255360, b = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360, g = l >>> 16 | b & 4294901760, y = b << 16 | l & 65535;
|
|
4388
|
+
h[0] ^= l, h[1] ^= g, h[2] ^= b, h[3] ^= y, h[4] ^= l, h[5] ^= g, h[6] ^= b, h[7] ^= y;
|
|
4389
|
+
for (var f = 0; f < 4; f++)
|
|
4388
4390
|
E.call(this);
|
|
4389
4391
|
}
|
|
4390
4392
|
},
|
|
4391
4393
|
_doProcessBlock: function(a, s) {
|
|
4392
|
-
var
|
|
4393
|
-
E.call(this), B[0] =
|
|
4394
|
+
var f = this._X;
|
|
4395
|
+
E.call(this), B[0] = f[0] ^ f[5] >>> 16 ^ f[3] << 16, B[1] = f[2] ^ f[7] >>> 16 ^ f[5] << 16, B[2] = f[4] ^ f[1] >>> 16 ^ f[7] << 16, B[3] = f[6] ^ f[3] >>> 16 ^ f[1] << 16;
|
|
4394
4396
|
for (var p = 0; p < 4; p++)
|
|
4395
4397
|
B[p] = (B[p] << 8 | B[p] >>> 24) & 16711935 | (B[p] << 24 | B[p] >>> 8) & 4278255360, a[s + p] ^= B[p];
|
|
4396
4398
|
},
|
|
@@ -4398,30 +4400,30 @@ function Rx() {
|
|
|
4398
4400
|
ivSize: 64 / 32
|
|
4399
4401
|
});
|
|
4400
4402
|
function E() {
|
|
4401
|
-
for (var a = this._X, s = this._C,
|
|
4402
|
-
C[
|
|
4403
|
+
for (var a = this._X, s = this._C, f = 0; f < 8; f++)
|
|
4404
|
+
C[f] = s[f];
|
|
4403
4405
|
s[0] = s[0] + 1295307597 + this._b | 0, s[1] = s[1] + 3545052371 + (s[0] >>> 0 < C[0] >>> 0 ? 1 : 0) | 0, s[2] = s[2] + 886263092 + (s[1] >>> 0 < C[1] >>> 0 ? 1 : 0) | 0, s[3] = s[3] + 1295307597 + (s[2] >>> 0 < C[2] >>> 0 ? 1 : 0) | 0, s[4] = s[4] + 3545052371 + (s[3] >>> 0 < C[3] >>> 0 ? 1 : 0) | 0, s[5] = s[5] + 886263092 + (s[4] >>> 0 < C[4] >>> 0 ? 1 : 0) | 0, s[6] = s[6] + 1295307597 + (s[5] >>> 0 < C[5] >>> 0 ? 1 : 0) | 0, s[7] = s[7] + 3545052371 + (s[6] >>> 0 < C[6] >>> 0 ? 1 : 0) | 0, this._b = s[7] >>> 0 < C[7] >>> 0 ? 1 : 0;
|
|
4404
|
-
for (var
|
|
4405
|
-
var p = a[
|
|
4406
|
-
x[
|
|
4406
|
+
for (var f = 0; f < 8; f++) {
|
|
4407
|
+
var p = a[f] + s[f], h = p & 65535, D = p >>> 16, i = ((h * h >>> 17) + h * D >>> 15) + D * D, o = ((p & 4294901760) * p | 0) + ((p & 65535) * p | 0);
|
|
4408
|
+
x[f] = i ^ o;
|
|
4407
4409
|
}
|
|
4408
4410
|
a[0] = x[0] + (x[7] << 16 | x[7] >>> 16) + (x[6] << 16 | x[6] >>> 16) | 0, a[1] = x[1] + (x[0] << 8 | x[0] >>> 24) + x[7] | 0, a[2] = x[2] + (x[1] << 16 | x[1] >>> 16) + (x[0] << 16 | x[0] >>> 16) | 0, a[3] = x[3] + (x[2] << 8 | x[2] >>> 24) + x[1] | 0, a[4] = x[4] + (x[3] << 16 | x[3] >>> 16) + (x[2] << 16 | x[2] >>> 16) | 0, a[5] = x[5] + (x[4] << 8 | x[4] >>> 24) + x[3] | 0, a[6] = x[6] + (x[5] << 16 | x[5] >>> 16) + (x[4] << 16 | x[4] >>> 16) | 0, a[7] = x[7] + (x[6] << 8 | x[6] >>> 24) + x[5] | 0;
|
|
4409
4411
|
}
|
|
4410
4412
|
e.Rabbit = v._createHelper(n);
|
|
4411
4413
|
})(), t.Rabbit;
|
|
4412
4414
|
});
|
|
4413
|
-
})(
|
|
4415
|
+
})(cr)), cr.exports;
|
|
4414
4416
|
}
|
|
4415
|
-
var
|
|
4416
|
-
function
|
|
4417
|
-
return
|
|
4418
|
-
(function(t, e,
|
|
4417
|
+
var fr = { exports: {} }, zx = fr.exports, ge;
|
|
4418
|
+
function Wx() {
|
|
4419
|
+
return ge || (ge = 1, (function(r, d) {
|
|
4420
|
+
(function(t, e, u) {
|
|
4419
4421
|
r.exports = e(M(), c0(), f0(), o0(), X());
|
|
4420
|
-
})(
|
|
4422
|
+
})(zx, function(t) {
|
|
4421
4423
|
return (function() {
|
|
4422
|
-
var e = t,
|
|
4424
|
+
var e = t, u = e.lib, v = u.StreamCipher, _ = e.algo, B = [], C = [], x = [], n = _.RabbitLegacy = v.extend({
|
|
4423
4425
|
_doReset: function() {
|
|
4424
|
-
var a = this._key.words, s = this.cfg.iv,
|
|
4426
|
+
var a = this._key.words, s = this.cfg.iv, f = this._X = [
|
|
4425
4427
|
a[0],
|
|
4426
4428
|
a[3] << 16 | a[2] >>> 16,
|
|
4427
4429
|
a[1],
|
|
@@ -4444,17 +4446,17 @@ function zx() {
|
|
|
4444
4446
|
for (var h = 0; h < 4; h++)
|
|
4445
4447
|
E.call(this);
|
|
4446
4448
|
for (var h = 0; h < 8; h++)
|
|
4447
|
-
p[h] ^=
|
|
4449
|
+
p[h] ^= f[h + 4 & 7];
|
|
4448
4450
|
if (s) {
|
|
4449
|
-
var D = s.words, i = D[0], o = D[1], l = (i << 8 | i >>> 24) & 16711935 | (i << 24 | i >>> 8) & 4278255360, b = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360, g = l >>> 16 | b & 4294901760,
|
|
4450
|
-
p[0] ^= l, p[1] ^= g, p[2] ^= b, p[3] ^=
|
|
4451
|
+
var D = s.words, i = D[0], o = D[1], l = (i << 8 | i >>> 24) & 16711935 | (i << 24 | i >>> 8) & 4278255360, b = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360, g = l >>> 16 | b & 4294901760, y = b << 16 | l & 65535;
|
|
4452
|
+
p[0] ^= l, p[1] ^= g, p[2] ^= b, p[3] ^= y, p[4] ^= l, p[5] ^= g, p[6] ^= b, p[7] ^= y;
|
|
4451
4453
|
for (var h = 0; h < 4; h++)
|
|
4452
4454
|
E.call(this);
|
|
4453
4455
|
}
|
|
4454
4456
|
},
|
|
4455
4457
|
_doProcessBlock: function(a, s) {
|
|
4456
|
-
var
|
|
4457
|
-
E.call(this), B[0] =
|
|
4458
|
+
var f = this._X;
|
|
4459
|
+
E.call(this), B[0] = f[0] ^ f[5] >>> 16 ^ f[3] << 16, B[1] = f[2] ^ f[7] >>> 16 ^ f[5] << 16, B[2] = f[4] ^ f[1] >>> 16 ^ f[7] << 16, B[3] = f[6] ^ f[3] >>> 16 ^ f[1] << 16;
|
|
4458
4460
|
for (var p = 0; p < 4; p++)
|
|
4459
4461
|
B[p] = (B[p] << 8 | B[p] >>> 24) & 16711935 | (B[p] << 24 | B[p] >>> 8) & 4278255360, a[s + p] ^= B[p];
|
|
4460
4462
|
},
|
|
@@ -4462,28 +4464,28 @@ function zx() {
|
|
|
4462
4464
|
ivSize: 64 / 32
|
|
4463
4465
|
});
|
|
4464
4466
|
function E() {
|
|
4465
|
-
for (var a = this._X, s = this._C,
|
|
4466
|
-
C[
|
|
4467
|
+
for (var a = this._X, s = this._C, f = 0; f < 8; f++)
|
|
4468
|
+
C[f] = s[f];
|
|
4467
4469
|
s[0] = s[0] + 1295307597 + this._b | 0, s[1] = s[1] + 3545052371 + (s[0] >>> 0 < C[0] >>> 0 ? 1 : 0) | 0, s[2] = s[2] + 886263092 + (s[1] >>> 0 < C[1] >>> 0 ? 1 : 0) | 0, s[3] = s[3] + 1295307597 + (s[2] >>> 0 < C[2] >>> 0 ? 1 : 0) | 0, s[4] = s[4] + 3545052371 + (s[3] >>> 0 < C[3] >>> 0 ? 1 : 0) | 0, s[5] = s[5] + 886263092 + (s[4] >>> 0 < C[4] >>> 0 ? 1 : 0) | 0, s[6] = s[6] + 1295307597 + (s[5] >>> 0 < C[5] >>> 0 ? 1 : 0) | 0, s[7] = s[7] + 3545052371 + (s[6] >>> 0 < C[6] >>> 0 ? 1 : 0) | 0, this._b = s[7] >>> 0 < C[7] >>> 0 ? 1 : 0;
|
|
4468
|
-
for (var
|
|
4469
|
-
var p = a[
|
|
4470
|
-
x[
|
|
4470
|
+
for (var f = 0; f < 8; f++) {
|
|
4471
|
+
var p = a[f] + s[f], h = p & 65535, D = p >>> 16, i = ((h * h >>> 17) + h * D >>> 15) + D * D, o = ((p & 4294901760) * p | 0) + ((p & 65535) * p | 0);
|
|
4472
|
+
x[f] = i ^ o;
|
|
4471
4473
|
}
|
|
4472
4474
|
a[0] = x[0] + (x[7] << 16 | x[7] >>> 16) + (x[6] << 16 | x[6] >>> 16) | 0, a[1] = x[1] + (x[0] << 8 | x[0] >>> 24) + x[7] | 0, a[2] = x[2] + (x[1] << 16 | x[1] >>> 16) + (x[0] << 16 | x[0] >>> 16) | 0, a[3] = x[3] + (x[2] << 8 | x[2] >>> 24) + x[1] | 0, a[4] = x[4] + (x[3] << 16 | x[3] >>> 16) + (x[2] << 16 | x[2] >>> 16) | 0, a[5] = x[5] + (x[4] << 8 | x[4] >>> 24) + x[3] | 0, a[6] = x[6] + (x[5] << 16 | x[5] >>> 16) + (x[4] << 16 | x[4] >>> 16) | 0, a[7] = x[7] + (x[6] << 8 | x[6] >>> 24) + x[5] | 0;
|
|
4473
4475
|
}
|
|
4474
4476
|
e.RabbitLegacy = v._createHelper(n);
|
|
4475
4477
|
})(), t.RabbitLegacy;
|
|
4476
4478
|
});
|
|
4477
|
-
})(
|
|
4479
|
+
})(fr)), fr.exports;
|
|
4478
4480
|
}
|
|
4479
|
-
var
|
|
4480
|
-
function
|
|
4481
|
-
return
|
|
4482
|
-
(function(t, e,
|
|
4481
|
+
var ur = { exports: {} }, Ix = ur.exports, De;
|
|
4482
|
+
function Lx() {
|
|
4483
|
+
return De || (De = 1, (function(r, d) {
|
|
4484
|
+
(function(t, e, u) {
|
|
4483
4485
|
r.exports = e(M(), c0(), f0(), o0(), X());
|
|
4484
|
-
})(
|
|
4486
|
+
})(Ix, function(t) {
|
|
4485
4487
|
return (function() {
|
|
4486
|
-
var e = t,
|
|
4488
|
+
var e = t, u = e.lib, v = u.BlockCipher, _ = e.algo;
|
|
4487
4489
|
const B = 16, C = [
|
|
4488
4490
|
608135816,
|
|
4489
4491
|
2242054355,
|
|
@@ -5557,28 +5559,28 @@ function Ix() {
|
|
|
5557
5559
|
o = o ^ h.pbox[g], l = E(h, o) ^ l, b = o, o = l, l = b;
|
|
5558
5560
|
return b = o, o = l, l = b, l = l ^ h.pbox[1], o = o ^ h.pbox[0], { left: o, right: l };
|
|
5559
5561
|
}
|
|
5560
|
-
function
|
|
5561
|
-
for (let
|
|
5562
|
-
h.sbox[
|
|
5562
|
+
function f(h, D, i) {
|
|
5563
|
+
for (let y = 0; y < 4; y++) {
|
|
5564
|
+
h.sbox[y] = [];
|
|
5563
5565
|
for (let k = 0; k < 256; k++)
|
|
5564
|
-
h.sbox[
|
|
5566
|
+
h.sbox[y][k] = x[y][k];
|
|
5565
5567
|
}
|
|
5566
5568
|
let o = 0;
|
|
5567
|
-
for (let
|
|
5568
|
-
h.pbox[
|
|
5569
|
+
for (let y = 0; y < B + 2; y++)
|
|
5570
|
+
h.pbox[y] = C[y] ^ D[o], o++, o >= i && (o = 0);
|
|
5569
5571
|
let l = 0, b = 0, g = 0;
|
|
5570
|
-
for (let
|
|
5571
|
-
g = a(h, l, b), l = g.left, b = g.right, h.pbox[
|
|
5572
|
-
for (let
|
|
5572
|
+
for (let y = 0; y < B + 2; y += 2)
|
|
5573
|
+
g = a(h, l, b), l = g.left, b = g.right, h.pbox[y] = l, h.pbox[y + 1] = b;
|
|
5574
|
+
for (let y = 0; y < 4; y++)
|
|
5573
5575
|
for (let k = 0; k < 256; k += 2)
|
|
5574
|
-
g = a(h, l, b), l = g.left, b = g.right, h.sbox[
|
|
5576
|
+
g = a(h, l, b), l = g.left, b = g.right, h.sbox[y][k] = l, h.sbox[y][k + 1] = b;
|
|
5575
5577
|
return !0;
|
|
5576
5578
|
}
|
|
5577
|
-
var p =
|
|
5579
|
+
var p = _.Blowfish = v.extend({
|
|
5578
5580
|
_doReset: function() {
|
|
5579
5581
|
if (this._keyPriorReset !== this._key) {
|
|
5580
5582
|
var h = this._keyPriorReset = this._key, D = h.words, i = h.sigBytes / 4;
|
|
5581
|
-
|
|
5583
|
+
f(n, D, i);
|
|
5582
5584
|
}
|
|
5583
5585
|
},
|
|
5584
5586
|
encryptBlock: function(h, D) {
|
|
@@ -5596,99 +5598,99 @@ function Ix() {
|
|
|
5596
5598
|
e.Blowfish = v._createHelper(p);
|
|
5597
5599
|
})(), t.Blowfish;
|
|
5598
5600
|
});
|
|
5599
|
-
})(
|
|
5601
|
+
})(ur)), ur.exports;
|
|
5600
5602
|
}
|
|
5601
|
-
var
|
|
5602
|
-
function
|
|
5603
|
-
return
|
|
5604
|
-
(function(t, e,
|
|
5605
|
-
r.exports = e(M(),
|
|
5606
|
-
})(
|
|
5603
|
+
var Ox = S0.exports, be;
|
|
5604
|
+
function qx() {
|
|
5605
|
+
return be || (be = 1, (function(r, d) {
|
|
5606
|
+
(function(t, e, u) {
|
|
5607
|
+
r.exports = e(M(), vr(), Wt(), Lt(), c0(), Tt(), f0(), Pe(), mr(), Gt(), ze(), Zt(), Qt(), Jt(), _r(), tx(), o0(), X(), ox(), sx(), fx(), dx(), hx(), px(), Cx(), Ax(), gx(), bx(), _x(), wx(), Sx(), $x(), Px(), Wx(), Lx());
|
|
5608
|
+
})(Ox, function(t) {
|
|
5607
5609
|
return t;
|
|
5608
5610
|
});
|
|
5609
|
-
})(
|
|
5611
|
+
})(S0)), S0.exports;
|
|
5610
5612
|
}
|
|
5611
|
-
|
|
5612
|
-
let
|
|
5613
|
+
qx();
|
|
5614
|
+
let We = null, Ie = null, Le = null, Oe = null;
|
|
5613
5615
|
Math.random().toString(36).substring(7);
|
|
5614
|
-
function
|
|
5615
|
-
|
|
5616
|
+
function Tx(r) {
|
|
5617
|
+
We = r.token, Ie = r.apiUrl, Le = r.deviceId, Oe = r.domain;
|
|
5616
5618
|
}
|
|
5617
|
-
function
|
|
5619
|
+
function Mx() {
|
|
5618
5620
|
return {
|
|
5619
|
-
token:
|
|
5620
|
-
apiUrl:
|
|
5621
|
-
deviceId:
|
|
5622
|
-
domain:
|
|
5621
|
+
token: We,
|
|
5622
|
+
apiUrl: Ie,
|
|
5623
|
+
deviceId: Le,
|
|
5624
|
+
domain: Oe
|
|
5623
5625
|
};
|
|
5624
5626
|
}
|
|
5625
|
-
function
|
|
5626
|
-
return `/sdk-workers/${(r.split("/").pop() || r).replace(/\.ts$/, ".js")}?v=1.1.
|
|
5627
|
+
function Nx(r) {
|
|
5628
|
+
return `/sdk-workers/${(r.split("/").pop() || r).replace(/\.ts$/, ".js")}?v=1.1.174`;
|
|
5627
5629
|
}
|
|
5628
|
-
function
|
|
5629
|
-
const t =
|
|
5630
|
+
function Ux(r, d) {
|
|
5631
|
+
const t = Nx(r);
|
|
5630
5632
|
return new Worker(t, { type: "module", ...d });
|
|
5631
5633
|
}
|
|
5632
|
-
const
|
|
5634
|
+
const yr = () => {
|
|
5633
5635
|
try {
|
|
5634
5636
|
if (globalThis.__DEBUG_RENDER__ === !0 || typeof localStorage < "u" && localStorage.getItem("DEBUG_RENDER") === "1") return !0;
|
|
5635
5637
|
} catch {
|
|
5636
5638
|
}
|
|
5637
5639
|
return !1;
|
|
5638
|
-
},
|
|
5639
|
-
|
|
5640
|
-
},
|
|
5641
|
-
|
|
5642
|
-
},
|
|
5643
|
-
let
|
|
5644
|
-
function
|
|
5645
|
-
const d =
|
|
5640
|
+
}, y0 = (...r) => {
|
|
5641
|
+
yr();
|
|
5642
|
+
}, me = (...r) => {
|
|
5643
|
+
yr();
|
|
5644
|
+
}, _e = /* @__PURE__ */ new Map(), gr = /* @__PURE__ */ new Map();
|
|
5645
|
+
let jx = 0;
|
|
5646
|
+
function Gx(r) {
|
|
5647
|
+
const d = _e.get(r);
|
|
5646
5648
|
if (d) return d;
|
|
5647
|
-
const t =
|
|
5649
|
+
const t = Ux("./deform.worker.ts");
|
|
5648
5650
|
try {
|
|
5649
|
-
t.postMessage({ type: "SET_DEBUG", debugRender:
|
|
5651
|
+
t.postMessage({ type: "SET_DEBUG", debugRender: yr() });
|
|
5650
5652
|
} catch {
|
|
5651
5653
|
}
|
|
5652
|
-
t.onmessage = (
|
|
5653
|
-
const { id: v, imageBitmap:
|
|
5654
|
-
|
|
5655
|
-
hasImageBitmap: !!
|
|
5656
|
-
width:
|
|
5657
|
-
height:
|
|
5654
|
+
t.onmessage = (u) => {
|
|
5655
|
+
const { id: v, imageBitmap: _, error: B, duration: C } = u.data ?? {}, x = C ? ` worker耗时=${Math.round(C)}ms` : "";
|
|
5656
|
+
y0(`[renderService] deform worker 响应 id=${v}${x}`, {
|
|
5657
|
+
hasImageBitmap: !!_,
|
|
5658
|
+
width: _?.width,
|
|
5659
|
+
height: _?.height,
|
|
5658
5660
|
error: B
|
|
5659
5661
|
});
|
|
5660
|
-
const n =
|
|
5662
|
+
const n = gr.get(v);
|
|
5661
5663
|
if (n) {
|
|
5662
|
-
if (
|
|
5664
|
+
if (gr.delete(v), B) {
|
|
5663
5665
|
n.reject(new Error(B));
|
|
5664
5666
|
return;
|
|
5665
5667
|
}
|
|
5666
|
-
n.resolve(
|
|
5668
|
+
n.resolve(_);
|
|
5667
5669
|
}
|
|
5668
|
-
}, t.onerror = (
|
|
5670
|
+
}, t.onerror = (u) => {
|
|
5669
5671
|
};
|
|
5670
5672
|
const e = () => {
|
|
5671
|
-
const
|
|
5672
|
-
return
|
|
5673
|
-
hasToken: !!
|
|
5674
|
-
tokenPreview:
|
|
5673
|
+
const u = Mx();
|
|
5674
|
+
return y0("🔍 [workerManager] 检查 License Token:", {
|
|
5675
|
+
hasToken: !!u.token,
|
|
5676
|
+
tokenPreview: u.token ? u.token.substring(0, 20) + "..." : "undefined",
|
|
5675
5677
|
faceId: r,
|
|
5676
5678
|
source: "licenseStore模块"
|
|
5677
|
-
}),
|
|
5679
|
+
}), u.token ? (y0("📤 [workerManager] 发送 License 到新创建的 Worker", { faceId: r }), t.postMessage({
|
|
5678
5680
|
type: "SET_LICENSE",
|
|
5679
|
-
licenseToken:
|
|
5680
|
-
licenseApiUrl:
|
|
5681
|
-
deviceId:
|
|
5682
|
-
domain:
|
|
5681
|
+
licenseToken: u.token,
|
|
5682
|
+
licenseApiUrl: u.apiUrl,
|
|
5683
|
+
deviceId: u.deviceId,
|
|
5684
|
+
domain: u.domain
|
|
5683
5685
|
}), !0) : !1;
|
|
5684
5686
|
};
|
|
5685
|
-
return e() || (
|
|
5686
|
-
e() ||
|
|
5687
|
+
return e() || (y0("⏳ [workerManager] License Token 未设置,等待后重试...", { faceId: r }), setTimeout(() => {
|
|
5688
|
+
e() || me("⚠️ [workerManager] 等待后 License Token 仍未设置", { faceId: r });
|
|
5687
5689
|
}, 200), setTimeout(() => {
|
|
5688
|
-
e() ||
|
|
5689
|
-
}, 500)),
|
|
5690
|
+
e() || me("⚠️ [workerManager] 第二次等待后 License Token 仍未设置", { faceId: r });
|
|
5691
|
+
}, 500)), _e.set(r, t), t;
|
|
5690
5692
|
}
|
|
5691
|
-
function
|
|
5693
|
+
function Kx(r) {
|
|
5692
5694
|
return {
|
|
5693
5695
|
name: r.name,
|
|
5694
5696
|
type: r.type,
|
|
@@ -5760,26 +5762,26 @@ function Gx(r) {
|
|
|
5760
5762
|
clipping: r.clipping
|
|
5761
5763
|
};
|
|
5762
5764
|
}
|
|
5763
|
-
function
|
|
5764
|
-
const
|
|
5765
|
-
return performance.now(), (/* @__PURE__ */ new Date()).toISOString(), new Promise((
|
|
5766
|
-
|
|
5765
|
+
function Xx(r, d, t, e) {
|
|
5766
|
+
const u = ++jx, v = Gx(t);
|
|
5767
|
+
return performance.now(), (/* @__PURE__ */ new Date()).toISOString(), new Promise((_, B) => {
|
|
5768
|
+
gr.set(u, {
|
|
5767
5769
|
resolve: (x) => {
|
|
5768
|
-
performance.now(), (/* @__PURE__ */ new Date()).toISOString(),
|
|
5770
|
+
performance.now(), (/* @__PURE__ */ new Date()).toISOString(), _(x);
|
|
5769
5771
|
},
|
|
5770
5772
|
reject: B
|
|
5771
5773
|
});
|
|
5772
|
-
const C =
|
|
5773
|
-
v.postMessage({ id:
|
|
5774
|
+
const C = Kx(d);
|
|
5775
|
+
v.postMessage({ id: u, designBitmap: r, layerData: C, canvasSize: e }, [
|
|
5774
5776
|
r
|
|
5775
5777
|
]);
|
|
5776
5778
|
});
|
|
5777
5779
|
}
|
|
5778
|
-
async function
|
|
5779
|
-
const
|
|
5780
|
-
if (!
|
|
5780
|
+
async function Zx(r, d, t = 0, e, u, v) {
|
|
5781
|
+
const _ = await _t(r, u, v);
|
|
5782
|
+
if (!_ || _.width === 0 || _.height === 0)
|
|
5781
5783
|
throw new Error("图片无效:尺寸为 0");
|
|
5782
|
-
return await
|
|
5784
|
+
return await Xx(_, d, t, e);
|
|
5783
5785
|
}
|
|
5784
5786
|
function h0(r, d) {
|
|
5785
5787
|
if (typeof OffscreenCanvas < "u" && typeof document > "u")
|
|
@@ -5793,7 +5795,7 @@ function h0(r, d) {
|
|
|
5793
5795
|
function g0(r) {
|
|
5794
5796
|
return r.getContext("2d");
|
|
5795
5797
|
}
|
|
5796
|
-
function
|
|
5798
|
+
function ye(r) {
|
|
5797
5799
|
const d = g0(r);
|
|
5798
5800
|
if (!d)
|
|
5799
5801
|
throw new Error("无法创建 canvas context");
|
|
@@ -5806,13 +5808,13 @@ async function Yx(r) {
|
|
|
5806
5808
|
} catch {
|
|
5807
5809
|
}
|
|
5808
5810
|
return !1;
|
|
5809
|
-
}, e = (...
|
|
5811
|
+
}, e = (...c) => {
|
|
5810
5812
|
t();
|
|
5811
|
-
},
|
|
5813
|
+
}, u = (...c) => {
|
|
5812
5814
|
t();
|
|
5813
5815
|
}, {
|
|
5814
5816
|
psdJson: v,
|
|
5815
|
-
materialList:
|
|
5817
|
+
materialList: _,
|
|
5816
5818
|
fabricScreenshotList: B,
|
|
5817
5819
|
width: C,
|
|
5818
5820
|
height: x,
|
|
@@ -5820,13 +5822,13 @@ async function Yx(r) {
|
|
|
5820
5822
|
} = r, E = r.maxImageSize;
|
|
5821
5823
|
e("[renderByJson] 接收到的数据:", {
|
|
5822
5824
|
psdJsonLayerCount: v.layerList?.length || 0,
|
|
5823
|
-
psdJsonLayers: v.layerList?.map((
|
|
5824
|
-
name:
|
|
5825
|
-
type:
|
|
5826
|
-
id:
|
|
5827
|
-
hasChildren: !!
|
|
5828
|
-
childrenCount:
|
|
5829
|
-
children:
|
|
5825
|
+
psdJsonLayers: v.layerList?.map((c) => ({
|
|
5826
|
+
name: c.name,
|
|
5827
|
+
type: c.type,
|
|
5828
|
+
id: c.id,
|
|
5829
|
+
hasChildren: !!c.children,
|
|
5830
|
+
childrenCount: c.children?.length || 0,
|
|
5831
|
+
children: c.children?.map((A) => ({
|
|
5830
5832
|
name: A.name,
|
|
5831
5833
|
type: A.type,
|
|
5832
5834
|
isSmartObject: A.isSmartObject,
|
|
@@ -5834,104 +5836,104 @@ async function Yx(r) {
|
|
|
5834
5836
|
}))
|
|
5835
5837
|
})),
|
|
5836
5838
|
fabricScreenshotListCount: B.length,
|
|
5837
|
-
fabricScreenshotList: B.map((
|
|
5839
|
+
fabricScreenshotList: B.map((c) => ({ id: c.id, url: c.url.substring(0, 50) + "..." }))
|
|
5838
5840
|
});
|
|
5839
|
-
const a = (
|
|
5840
|
-
if (!
|
|
5841
|
-
if (/^(https?:)?\/\//i.test(
|
|
5842
|
-
return
|
|
5841
|
+
const a = (c) => {
|
|
5842
|
+
if (!c || typeof c != "string" || !c.includes("http")) return;
|
|
5843
|
+
if (/^(https?:)?\/\//i.test(c) || c.startsWith("data:") || c.startsWith("blob:"))
|
|
5844
|
+
return c;
|
|
5843
5845
|
if (!n)
|
|
5844
|
-
return !
|
|
5846
|
+
return !c.includes("http") && !c.startsWith("data:") && !c.startsWith("blob:") ? void 0 : c;
|
|
5845
5847
|
try {
|
|
5846
|
-
const m = new URL(
|
|
5848
|
+
const m = new URL(c, n).toString();
|
|
5847
5849
|
return !m.includes("http") && !m.startsWith("data:") && !m.startsWith("blob:") ? void 0 : m;
|
|
5848
5850
|
} catch (m) {
|
|
5849
|
-
|
|
5851
|
+
u(`[renderByJson] 解析图片 URL 失败: ${c}`, m);
|
|
5850
5852
|
return;
|
|
5851
5853
|
}
|
|
5852
|
-
}, s = {},
|
|
5853
|
-
for (const
|
|
5854
|
-
const A =
|
|
5854
|
+
}, s = {}, f = /* @__PURE__ */ new Map();
|
|
5855
|
+
for (const c of _) {
|
|
5856
|
+
const A = c.sourceName || c.layerName;
|
|
5855
5857
|
A && (s[A] = {
|
|
5856
|
-
url:
|
|
5857
|
-
},
|
|
5858
|
-
url:
|
|
5859
|
-
}),
|
|
5858
|
+
url: c.url
|
|
5859
|
+
}, f.set(A, c.url)), c.layerName && c.layerName !== A && (s[c.layerName] || (s[c.layerName] = {
|
|
5860
|
+
url: c.url
|
|
5861
|
+
}), f.set(c.layerName, c.url));
|
|
5860
5862
|
}
|
|
5861
5863
|
const p = /* @__PURE__ */ new Map();
|
|
5862
|
-
for (const
|
|
5863
|
-
p.set(
|
|
5864
|
-
e("[renderByJson] fabricScreenshotMap:", Array.from(p.entries())), e("[renderByJson] psdJson.layerList 结构:", v.layerList?.map((
|
|
5865
|
-
name:
|
|
5866
|
-
type:
|
|
5867
|
-
id:
|
|
5868
|
-
hasChildren: !!
|
|
5869
|
-
childrenCount:
|
|
5864
|
+
for (const c of B)
|
|
5865
|
+
p.set(c.id, c.url);
|
|
5866
|
+
e("[renderByJson] fabricScreenshotMap:", Array.from(p.entries())), e("[renderByJson] psdJson.layerList 结构:", v.layerList?.map((c) => ({
|
|
5867
|
+
name: c.name,
|
|
5868
|
+
type: c.type,
|
|
5869
|
+
id: c.id,
|
|
5870
|
+
hasChildren: !!c.children,
|
|
5871
|
+
childrenCount: c.children?.length || 0
|
|
5870
5872
|
})));
|
|
5871
|
-
function h(
|
|
5872
|
-
const m =
|
|
5873
|
-
if (
|
|
5874
|
-
if (
|
|
5875
|
-
const W =
|
|
5873
|
+
function h(c, A) {
|
|
5874
|
+
const m = c.color || (c.name && ["粉", "白", "绿", "红", "蓝", "黄", "黑", "灰"].includes(c.name) ? c.name : A);
|
|
5875
|
+
if (c.type === "Layer") {
|
|
5876
|
+
if (c.imagePath) {
|
|
5877
|
+
const W = _.find((P) => {
|
|
5876
5878
|
const L = P.sourceName || P.layerName;
|
|
5877
|
-
return !L || !
|
|
5879
|
+
return !L || !c.imagePath ? !1 : L === c.imagePath || L.endsWith(c.imagePath) || c.imagePath.endsWith(L);
|
|
5878
5880
|
});
|
|
5879
|
-
W && (s[
|
|
5881
|
+
W && (s[c.imagePath] = {
|
|
5880
5882
|
url: W.url
|
|
5881
5883
|
});
|
|
5882
5884
|
}
|
|
5883
|
-
if (
|
|
5885
|
+
if (c.name) {
|
|
5884
5886
|
if (m) {
|
|
5885
|
-
const W = `${m}-${
|
|
5887
|
+
const W = `${m}-${c.name}`, P = _.find((L) => {
|
|
5886
5888
|
const I = L.sourceName || L.layerName;
|
|
5887
|
-
return I ? (I.split("/").pop() || I).replace(/\.(png|jpg|jpeg|gif|webp)$/i, "").startsWith(`${m}-${
|
|
5889
|
+
return I ? (I.split("/").pop() || I).replace(/\.(png|jpg|jpeg|gif|webp)$/i, "").startsWith(`${m}-${c.name}`) : !1;
|
|
5888
5890
|
});
|
|
5889
5891
|
P && (s[W] = {
|
|
5890
5892
|
url: P.url
|
|
5891
5893
|
});
|
|
5892
5894
|
}
|
|
5893
|
-
if (
|
|
5894
|
-
const W =
|
|
5895
|
+
if (c.imagePath && c.name) {
|
|
5896
|
+
const W = c.imagePath.split("/").pop() || c.imagePath, P = _.find((L) => {
|
|
5895
5897
|
const I = L.sourceName || L.layerName;
|
|
5896
5898
|
return I ? (I.split("/").pop() || I) === W : !1;
|
|
5897
5899
|
});
|
|
5898
|
-
P && (s[
|
|
5900
|
+
P && (s[c.imagePath] = {
|
|
5899
5901
|
url: P.url
|
|
5900
5902
|
});
|
|
5901
5903
|
}
|
|
5902
5904
|
}
|
|
5903
5905
|
}
|
|
5904
|
-
if (
|
|
5905
|
-
for (const W of
|
|
5906
|
+
if (c.children)
|
|
5907
|
+
for (const W of c.children)
|
|
5906
5908
|
W && h(W, m);
|
|
5907
5909
|
}
|
|
5908
|
-
function D(
|
|
5909
|
-
const m =
|
|
5910
|
-
if (
|
|
5911
|
-
if (e(`[renderByJson] processLayer 检查 Group: name="${
|
|
5910
|
+
function D(c, A) {
|
|
5911
|
+
const m = c.id ?? A;
|
|
5912
|
+
if (c.type === "Group" && m)
|
|
5913
|
+
if (e(`[renderByJson] processLayer 检查 Group: name="${c.name}", id=${m}, hasFabricScreenshot=${p.has(m)}`), p.has(m)) {
|
|
5912
5914
|
const W = p.get(m);
|
|
5913
|
-
if (e(`[renderByJson] ✅ 找到匹配的 fabricScreenshot: Group id=${m}, name="${
|
|
5914
|
-
e(`[renderByJson] Group "${
|
|
5915
|
-
for (const P of
|
|
5915
|
+
if (e(`[renderByJson] ✅ 找到匹配的 fabricScreenshot: Group id=${m}, name="${c.name}", url=${W.substring(0, 50)}...`), c.children) {
|
|
5916
|
+
e(`[renderByJson] Group "${c.name}" 有 ${c.children.length} 个子图层`);
|
|
5917
|
+
for (const P of c.children)
|
|
5916
5918
|
if (P && P.isSmartObject === !0) {
|
|
5917
5919
|
const L = P?.name || "";
|
|
5918
|
-
e(`[renderByJson] 找到智能对象: name="${L}"`), L && !s[L] && (s[L] = {}), L ? (s[L].designImage = W, e(`[renderByJson] ✅ 为智能对象 "${L}" 设置 designImage: ${W.substring(0, 50)}...`)) :
|
|
5920
|
+
e(`[renderByJson] 找到智能对象: name="${L}"`), L && !s[L] && (s[L] = {}), L ? (s[L].designImage = W, e(`[renderByJson] ✅ 为智能对象 "${L}" 设置 designImage: ${W.substring(0, 50)}...`)) : u("[renderByJson] ⚠️ 智能对象没有 name,无法设置 designImage");
|
|
5919
5921
|
}
|
|
5920
5922
|
} else
|
|
5921
|
-
|
|
5923
|
+
u(`[renderByJson] ⚠️ Group id=${m} 没有 children`);
|
|
5922
5924
|
} else
|
|
5923
|
-
e(`[renderByJson] ⚠️ Group id=${m}, name="${
|
|
5924
|
-
if (
|
|
5925
|
-
for (const W of
|
|
5925
|
+
e(`[renderByJson] ⚠️ Group id=${m}, name="${c.name}" 没有匹配的 fabricScreenshot`);
|
|
5926
|
+
if (c.children)
|
|
5927
|
+
for (const W of c.children)
|
|
5926
5928
|
W && D(W, m);
|
|
5927
5929
|
}
|
|
5928
5930
|
if (v.layerList)
|
|
5929
|
-
for (const
|
|
5930
|
-
|
|
5931
|
+
for (const c of v.layerList)
|
|
5932
|
+
c && h(c);
|
|
5931
5933
|
if (v.layerList)
|
|
5932
|
-
for (const
|
|
5933
|
-
|
|
5934
|
-
const o =
|
|
5934
|
+
for (const c of v.layerList)
|
|
5935
|
+
c && D(c);
|
|
5936
|
+
const o = nt([{
|
|
5935
5937
|
psdJson: v,
|
|
5936
5938
|
layerExtrasByName: s
|
|
5937
5939
|
}], {
|
|
@@ -5943,16 +5945,16 @@ async function Yx(r) {
|
|
|
5943
5945
|
const l = o.models[0];
|
|
5944
5946
|
if (!l.psdPartData)
|
|
5945
5947
|
throw new Error("JSON 数据中没有 psdPartData");
|
|
5946
|
-
const b = l.width, g = l.height,
|
|
5947
|
-
if (
|
|
5948
|
-
return s[
|
|
5949
|
-
if (
|
|
5950
|
-
const A =
|
|
5948
|
+
const b = l.width, g = l.height, y = h0(b, g), k = ye(y), R = [], F = (c) => {
|
|
5949
|
+
if (c.url && s[c.url])
|
|
5950
|
+
return s[c.url];
|
|
5951
|
+
if (c.url) {
|
|
5952
|
+
const A = c.url.split("/").pop() || c.url;
|
|
5951
5953
|
if (s[A])
|
|
5952
5954
|
return s[A];
|
|
5953
|
-
const m =
|
|
5955
|
+
const m = _.find((W) => {
|
|
5954
5956
|
const P = W.sourceName || W.layerName;
|
|
5955
|
-
return !P || !
|
|
5957
|
+
return !P || !c.url ? !1 : (P.split("/").pop() || P) === A || P === c.url || P.endsWith(c.url) || c.url.endsWith(P);
|
|
5956
5958
|
});
|
|
5957
5959
|
if (m) {
|
|
5958
5960
|
const W = m.sourceName || m.layerName;
|
|
@@ -5961,23 +5963,23 @@ async function Yx(r) {
|
|
|
5961
5963
|
}
|
|
5962
5964
|
}
|
|
5963
5965
|
};
|
|
5964
|
-
for (let
|
|
5965
|
-
const A = l.psdPartData[
|
|
5966
|
+
for (let c = 0; c < l.psdPartData.length; c++) {
|
|
5967
|
+
const A = l.psdPartData[c], m = F(A);
|
|
5966
5968
|
if (A.type === D0.Layer) {
|
|
5967
5969
|
if (!m || !m.url) {
|
|
5968
|
-
|
|
5970
|
+
u(`图层 "${A.name}" 没有匹配的 material,跳过`);
|
|
5969
5971
|
continue;
|
|
5970
5972
|
}
|
|
5971
5973
|
const W = m.url, P = a(W);
|
|
5972
5974
|
if (!P) {
|
|
5973
|
-
|
|
5975
|
+
u(`图层 "${A.name}" 没有有效的 url,跳过`);
|
|
5974
5976
|
continue;
|
|
5975
5977
|
}
|
|
5976
5978
|
R.push({
|
|
5977
|
-
index:
|
|
5979
|
+
index: c,
|
|
5978
5980
|
type: "layer",
|
|
5979
5981
|
partData: A,
|
|
5980
|
-
promise:
|
|
5982
|
+
promise: yt(P, E, n).catch((L) => null)
|
|
5981
5983
|
});
|
|
5982
5984
|
} else if (A.type === D0.Group) {
|
|
5983
5985
|
if (!A.smartObjects || A.smartObjects.length === 0)
|
|
@@ -5990,9 +5992,9 @@ async function Yx(r) {
|
|
|
5990
5992
|
if (!L && P.imagePath && (L = s[P.imagePath], !L)) {
|
|
5991
5993
|
const K = P.imagePath.split("/").pop() || P.imagePath;
|
|
5992
5994
|
if (L = s[K], !L) {
|
|
5993
|
-
const G =
|
|
5994
|
-
const
|
|
5995
|
-
return !
|
|
5995
|
+
const G = _.find((Z) => {
|
|
5996
|
+
const r0 = Z.sourceName || Z.layerName;
|
|
5997
|
+
return !r0 || !P.imagePath ? !1 : (r0.split("/").pop() || r0) === K || r0 === P.imagePath || r0.endsWith(P.imagePath) || P.imagePath.endsWith(r0);
|
|
5996
5998
|
});
|
|
5997
5999
|
G && (L = { url: G.url });
|
|
5998
6000
|
}
|
|
@@ -6003,23 +6005,23 @@ async function Yx(r) {
|
|
|
6003
6005
|
if (!I)
|
|
6004
6006
|
continue;
|
|
6005
6007
|
if (typeof I == "string") {
|
|
6006
|
-
/^(https?:)?\/\//i.test(I) || I.startsWith("data:") || I.startsWith("blob:") || (I =
|
|
6008
|
+
/^(https?:)?\/\//i.test(I) || I.startsWith("data:") || I.startsWith("blob:") || (I = f.get(I) ?? I);
|
|
6007
6009
|
const G = a(I);
|
|
6008
6010
|
if (!G)
|
|
6009
6011
|
continue;
|
|
6010
6012
|
I = G;
|
|
6011
6013
|
}
|
|
6012
|
-
const
|
|
6014
|
+
const Y = (A.partId ?? A.id) * 100 + W, Q = ot(at(P)), i0 = { width: b, height: g };
|
|
6013
6015
|
R.push({
|
|
6014
|
-
index:
|
|
6016
|
+
index: c + W * 0.01,
|
|
6015
6017
|
type: "group",
|
|
6016
6018
|
partData: A,
|
|
6017
6019
|
smartObject: P,
|
|
6018
6020
|
maskData: Q,
|
|
6019
|
-
promise:
|
|
6021
|
+
promise: Zx(
|
|
6020
6022
|
I,
|
|
6021
6023
|
P,
|
|
6022
|
-
|
|
6024
|
+
Y,
|
|
6023
6025
|
i0,
|
|
6024
6026
|
E,
|
|
6025
6027
|
n
|
|
@@ -6028,18 +6030,18 @@ async function Yx(r) {
|
|
|
6028
6030
|
}
|
|
6029
6031
|
}
|
|
6030
6032
|
}
|
|
6031
|
-
const w = await Promise.all(R.map((
|
|
6032
|
-
task:
|
|
6033
|
+
const w = await Promise.all(R.map((c) => c.promise)), H = R.map((c, A) => ({
|
|
6034
|
+
task: c,
|
|
6033
6035
|
imageBitmap: w[A]
|
|
6034
|
-
})).sort((
|
|
6035
|
-
const m =
|
|
6036
|
+
})).sort((c, A) => {
|
|
6037
|
+
const m = c.task.type === "group" && c.task.smartObject?.layerOrder !== void 0 ? c.task.smartObject.layerOrder : c.task.partData.layerOrder ?? c.task.index, W = A.task.type === "group" && A.task.smartObject?.layerOrder !== void 0 ? A.task.smartObject.layerOrder : A.task.partData.layerOrder ?? A.task.index;
|
|
6036
6038
|
return m - W;
|
|
6037
6039
|
});
|
|
6038
6040
|
let $ = h0(b, g), z = g0($), O = !1, q = "normal";
|
|
6039
|
-
for (let
|
|
6040
|
-
const { task: A, imageBitmap: m } = H[
|
|
6041
|
+
for (let c = 0; c < H.length; c++) {
|
|
6042
|
+
const { task: A, imageBitmap: m } = H[c];
|
|
6041
6043
|
if (!m) {
|
|
6042
|
-
|
|
6044
|
+
u(`[renderByJson] 图层 "${A.partData.name}" 没有 imageBitmap,跳过`);
|
|
6043
6045
|
continue;
|
|
6044
6046
|
}
|
|
6045
6047
|
const { partData: W } = A, P = W.bounds;
|
|
@@ -6047,11 +6049,11 @@ async function Yx(r) {
|
|
|
6047
6049
|
A.type === "group" && A.smartObject ? L = A.smartObject.opacity ?? W.opacity : L = W.opacity, (typeof L != "number" || isNaN(L)) && (L = 1);
|
|
6048
6050
|
let I;
|
|
6049
6051
|
A.type === "group" && A.smartObject ? I = A.smartObject.clipping ?? W.clipping === !0 : I = W.clipping === !0;
|
|
6050
|
-
const
|
|
6052
|
+
const Y = H[c + 1];
|
|
6051
6053
|
let Q = !1;
|
|
6052
|
-
if (
|
|
6053
|
-
const K =
|
|
6054
|
-
|
|
6054
|
+
if (Y) {
|
|
6055
|
+
const K = Y.task.partData;
|
|
6056
|
+
Y.task.type === "group" && Y.task.smartObject ? Q = Y.task.smartObject.clipping ?? K.clipping === !0 : Q = K.clipping === !0;
|
|
6055
6057
|
}
|
|
6056
6058
|
const i0 = A.type === "group" && A.smartObject && A.smartObject.name ? A.smartObject.name : W?.name || "未命名图层";
|
|
6057
6059
|
if (e(`[renderByJson] 绘制图层 "${i0}"`, {
|
|
@@ -6067,7 +6069,7 @@ async function Yx(r) {
|
|
|
6067
6069
|
if (z.clearRect(0, 0, b, g), z.globalCompositeOperation = "source-over", z.globalAlpha = L, A.type === "group" && A.smartObject)
|
|
6068
6070
|
if (A.maskData) {
|
|
6069
6071
|
const K = h0(b, g), G = g0(K);
|
|
6070
|
-
G && (G.drawImage(m, 0, 0),
|
|
6072
|
+
G && (G.drawImage(m, 0, 0), Br(G, A.maskData), z.drawImage(K, 0, 0));
|
|
6071
6073
|
} else
|
|
6072
6074
|
z.drawImage(m, 0, 0);
|
|
6073
6075
|
else A.type === "layer" && (P ? z.drawImage(
|
|
@@ -6084,7 +6086,7 @@ async function Yx(r) {
|
|
|
6084
6086
|
if (z.globalCompositeOperation = "source-atop", z.globalAlpha = L, A.type === "group" && A.smartObject)
|
|
6085
6087
|
if (A.maskData) {
|
|
6086
6088
|
const K = h0(b, g), G = g0(K);
|
|
6087
|
-
G && (G.drawImage(m, 0, 0),
|
|
6089
|
+
G && (G.drawImage(m, 0, 0), Br(G, A.maskData), z.drawImage(K, 0, 0));
|
|
6088
6090
|
} else
|
|
6089
6091
|
z.drawImage(m, 0, 0);
|
|
6090
6092
|
else A.type === "layer" && (P ? z.drawImage(
|
|
@@ -6097,10 +6099,10 @@ async function Yx(r) {
|
|
|
6097
6099
|
z.globalAlpha = 1, z.globalCompositeOperation = "source-over";
|
|
6098
6100
|
}
|
|
6099
6101
|
} else {
|
|
6100
|
-
if (k.globalCompositeOperation =
|
|
6102
|
+
if (k.globalCompositeOperation = Mr(W.blendMode), k.globalAlpha = L, A.type === "group" && A.smartObject)
|
|
6101
6103
|
if (A.maskData) {
|
|
6102
6104
|
const K = h0(b, g), G = g0(K);
|
|
6103
|
-
G && (G.drawImage(m, 0, 0),
|
|
6105
|
+
G && (G.drawImage(m, 0, 0), Br(G, A.maskData), k.drawImage(K, 0, 0));
|
|
6104
6106
|
} else
|
|
6105
6107
|
k.drawImage(m, 0, 0);
|
|
6106
6108
|
else A.type === "layer" && (P ? k.drawImage(
|
|
@@ -6112,10 +6114,10 @@ async function Yx(r) {
|
|
|
6112
6114
|
) : k.drawImage(m, 0, 0));
|
|
6113
6115
|
k.globalAlpha = 1, k.globalCompositeOperation = "source-over";
|
|
6114
6116
|
}
|
|
6115
|
-
O && !Q && (k.globalCompositeOperation =
|
|
6117
|
+
O && !Q && (k.globalCompositeOperation = Mr(q), k.drawImage($, 0, 0), k.globalCompositeOperation = "source-over", O = !1);
|
|
6116
6118
|
}
|
|
6117
6119
|
$ = null, z = null;
|
|
6118
|
-
let U =
|
|
6120
|
+
let U = y, T = b, N = g;
|
|
6119
6121
|
if (C !== void 0 || x !== void 0) {
|
|
6120
6122
|
if (C !== void 0 && x !== void 0)
|
|
6121
6123
|
T = C, N = x;
|
|
@@ -6127,8 +6129,8 @@ async function Yx(r) {
|
|
|
6127
6129
|
T = Math.round(b * A), N = x;
|
|
6128
6130
|
}
|
|
6129
6131
|
U = h0(T, N);
|
|
6130
|
-
const
|
|
6131
|
-
|
|
6132
|
+
const c = ye(U);
|
|
6133
|
+
c.imageSmoothingEnabled = !0, c.imageSmoothingQuality = "high", c.drawImage(y, 0, 0, b, g, 0, 0, T, N), e(`[renderByJson] 已缩放结果: ${b}x${g} -> ${T}x${N}`);
|
|
6132
6134
|
}
|
|
6133
6135
|
const S = performance.now() - d;
|
|
6134
6136
|
return e(`[renderByJson] 绘制完成,总渲染时间: ${Math.round(S)}ms`), {
|
|
@@ -6137,20 +6139,20 @@ async function Yx(r) {
|
|
|
6137
6139
|
height: N
|
|
6138
6140
|
};
|
|
6139
6141
|
}
|
|
6140
|
-
const
|
|
6142
|
+
const qe = async (r) => {
|
|
6141
6143
|
const t = (await Yx(r)).canvas;
|
|
6142
6144
|
return t ? createImageBitmap(t) : null;
|
|
6143
6145
|
};
|
|
6144
|
-
let s0 = null,
|
|
6145
|
-
const
|
|
6146
|
-
if (!
|
|
6147
|
-
|
|
6146
|
+
let s0 = null, Ar = !1;
|
|
6147
|
+
const Te = async () => {
|
|
6148
|
+
if (!Ar) {
|
|
6149
|
+
Ar = !0;
|
|
6148
6150
|
try {
|
|
6149
6151
|
for (; s0; ) {
|
|
6150
6152
|
const r = s0;
|
|
6151
6153
|
s0 = null;
|
|
6152
6154
|
try {
|
|
6153
|
-
const d = await
|
|
6155
|
+
const d = await qe(r.renderData);
|
|
6154
6156
|
if (s0) {
|
|
6155
6157
|
d?.close?.();
|
|
6156
6158
|
continue;
|
|
@@ -6165,7 +6167,7 @@ const qe = async () => {
|
|
|
6165
6167
|
}
|
|
6166
6168
|
}
|
|
6167
6169
|
} finally {
|
|
6168
|
-
|
|
6170
|
+
Ar = !1, s0 && Te();
|
|
6169
6171
|
}
|
|
6170
6172
|
}
|
|
6171
6173
|
};
|
|
@@ -6173,7 +6175,7 @@ self.onmessage = async (r) => {
|
|
|
6173
6175
|
const d = r.data;
|
|
6174
6176
|
if (d && typeof d == "object" && "type" in d && d.type === "SET_LICENSE") {
|
|
6175
6177
|
const e = d;
|
|
6176
|
-
|
|
6178
|
+
Tx({
|
|
6177
6179
|
token: e.licenseToken,
|
|
6178
6180
|
apiUrl: e.licenseApiUrl,
|
|
6179
6181
|
deviceId: e.deviceId,
|
|
@@ -6183,11 +6185,11 @@ self.onmessage = async (r) => {
|
|
|
6183
6185
|
}
|
|
6184
6186
|
const t = d;
|
|
6185
6187
|
if (t.coalesce === !0) {
|
|
6186
|
-
s0 = { id: t.id, renderData: t.renderData },
|
|
6188
|
+
s0 = { id: t.id, renderData: t.renderData }, Te();
|
|
6187
6189
|
return;
|
|
6188
6190
|
}
|
|
6189
6191
|
try {
|
|
6190
|
-
const e = await
|
|
6192
|
+
const e = await qe(t.renderData);
|
|
6191
6193
|
self.postMessage({ id: t.id, bitmap: e }, e ? [e] : []);
|
|
6192
6194
|
} catch (e) {
|
|
6193
6195
|
self.postMessage({
|