@jieyin/editor-sdk-test 1.1.147 → 1.1.149
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 +4660 -4665
- package/dist/renderWorker.js +381 -379
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/renderWorker.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var F0 = /* @__PURE__ */ ((r) => (r[r.Group = 0] = "Group", r[r.Layer = 1] = "Layer", r))(F0 || {});
|
|
2
2
|
function Ge(r) {
|
|
3
|
-
let
|
|
3
|
+
let h = r;
|
|
4
4
|
return () => {
|
|
5
|
-
const t =
|
|
6
|
-
return
|
|
5
|
+
const t = h;
|
|
6
|
+
return h += 1, t;
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
|
-
function Ke(r,
|
|
9
|
+
function Ke(r, h) {
|
|
10
10
|
return {
|
|
11
11
|
name: r.name || "",
|
|
12
12
|
type: r.type || "Layer",
|
|
@@ -23,16 +23,16 @@ function Ke(r, v) {
|
|
|
23
23
|
quiltSliceY: r.quiltSliceY,
|
|
24
24
|
layerOrder: r.layerOrder,
|
|
25
25
|
imagePath: r.imagePath,
|
|
26
|
-
vectorMask: r.vectorMask ??
|
|
26
|
+
vectorMask: r.vectorMask ?? h,
|
|
27
27
|
filterList: r.filterList,
|
|
28
28
|
opacity: r.opacity,
|
|
29
29
|
clipping: r.clipping
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
function Xe(r,
|
|
33
|
-
let u = r.name || "", p =
|
|
32
|
+
function Xe(r, h, t, e) {
|
|
33
|
+
let u = r.name || "", p = h[u], m = p?.partId ?? (r.type === "Group" ? t.get(u) : void 0);
|
|
34
34
|
if (r.type === "Group" && m === void 0 && (!p || p.id === void 0) && r.children && r.children.length === 1) {
|
|
35
|
-
const x = r.children[0].name, n =
|
|
35
|
+
const x = r.children[0].name, n = h[x], E = n?.partId ?? t.get(x);
|
|
36
36
|
(E !== void 0 || n?.id !== void 0) && (u = x, p = n, m = E);
|
|
37
37
|
}
|
|
38
38
|
const B = r.id ?? p?.id ?? e();
|
|
@@ -64,19 +64,19 @@ function Xe(r, v, t, e) {
|
|
|
64
64
|
layerOrder: r.layerOrder
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
|
-
function Ye(r,
|
|
68
|
-
const t = new Map(
|
|
67
|
+
function Ye(r, h) {
|
|
68
|
+
const t = new Map(h.parts.map((u) => [u.name, u.id])), e = Ge(h.defaultIdStart ?? 1);
|
|
69
69
|
return {
|
|
70
|
-
parts:
|
|
70
|
+
parts: h.parts,
|
|
71
71
|
models: r.map((u) => {
|
|
72
72
|
const p = u.layerExtrasByName ?? {}, m = u.psdJson, B = m.layerList || m.layerList || [], C = m.canvasWidth, x = m.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
76
|
const f = [];
|
|
77
|
-
for (const
|
|
78
|
-
if (
|
|
79
|
-
const l = [], g = [], i = [...
|
|
77
|
+
for (const v of s)
|
|
78
|
+
if (v.type === "Group" && v.children) {
|
|
79
|
+
const l = [], g = [], i = [...v.children].sort((o, d) => {
|
|
80
80
|
const b = o.layerOrder ?? 0, D = d.layerOrder ?? 0;
|
|
81
81
|
return b - D;
|
|
82
82
|
});
|
|
@@ -87,11 +87,11 @@ function Ye(r, v) {
|
|
|
87
87
|
f.push(...o);
|
|
88
88
|
}
|
|
89
89
|
l.length > 0 && f.push({
|
|
90
|
-
...
|
|
90
|
+
...v,
|
|
91
91
|
children: l
|
|
92
92
|
});
|
|
93
93
|
} else
|
|
94
|
-
f.push(
|
|
94
|
+
f.push(v);
|
|
95
95
|
return f;
|
|
96
96
|
}, a = n(B).map(
|
|
97
97
|
(s) => Xe(s, p, t, e)
|
|
@@ -110,26 +110,26 @@ function Ze(r) {
|
|
|
110
110
|
function Qe(r) {
|
|
111
111
|
return r ? r.type === "bezier" ? {
|
|
112
112
|
type: "bezier",
|
|
113
|
-
paths: r.paths.map((
|
|
114
|
-
open: !!
|
|
115
|
-
knots:
|
|
113
|
+
paths: r.paths.map((h) => ({
|
|
114
|
+
open: !!h.open,
|
|
115
|
+
knots: h.knots.map((t) => ({
|
|
116
116
|
linked: !!t.linked,
|
|
117
117
|
points: Array.isArray(t.points) ? [...t.points] : []
|
|
118
118
|
}))
|
|
119
119
|
}))
|
|
120
120
|
} : r.type === "simple" ? {
|
|
121
121
|
type: "simple",
|
|
122
|
-
points: r.points.map((
|
|
123
|
-
x:
|
|
124
|
-
y:
|
|
125
|
-
type:
|
|
122
|
+
points: r.points.map((h) => ({
|
|
123
|
+
x: h.x,
|
|
124
|
+
y: h.y,
|
|
125
|
+
type: h.type
|
|
126
126
|
}))
|
|
127
127
|
} : null : null;
|
|
128
128
|
}
|
|
129
|
-
function dr(r,
|
|
130
|
-
if (
|
|
131
|
-
if (r.globalCompositeOperation = "destination-in", r.beginPath(),
|
|
132
|
-
|
|
129
|
+
function dr(r, h) {
|
|
130
|
+
if (h) {
|
|
131
|
+
if (r.globalCompositeOperation = "destination-in", r.beginPath(), h.type === "bezier" && Array.isArray(h.paths))
|
|
132
|
+
h.paths.forEach((t) => {
|
|
133
133
|
const e = t.knots;
|
|
134
134
|
if (!e || e.length < 2) return;
|
|
135
135
|
const u = e[0];
|
|
@@ -146,8 +146,8 @@ function dr(r, v) {
|
|
|
146
146
|
}
|
|
147
147
|
t.open || r.closePath();
|
|
148
148
|
});
|
|
149
|
-
else if (
|
|
150
|
-
const t =
|
|
149
|
+
else if (h.type === "simple" && Array.isArray(h.points)) {
|
|
150
|
+
const t = h.points;
|
|
151
151
|
if (t.length < 3) return;
|
|
152
152
|
r.moveTo(t[0].x, t[0].y);
|
|
153
153
|
for (let e = 1; e < t.length; e++) r.lineTo(t[e].x, t[e].y);
|
|
@@ -161,10 +161,10 @@ class h0 {
|
|
|
161
161
|
/**
|
|
162
162
|
* 获取存储项
|
|
163
163
|
*/
|
|
164
|
-
static getItem(
|
|
164
|
+
static getItem(h) {
|
|
165
165
|
if (!this.hasStorage) return null;
|
|
166
166
|
try {
|
|
167
|
-
return localStorage.getItem(
|
|
167
|
+
return localStorage.getItem(h);
|
|
168
168
|
} catch {
|
|
169
169
|
return null;
|
|
170
170
|
}
|
|
@@ -172,10 +172,10 @@ class h0 {
|
|
|
172
172
|
/**
|
|
173
173
|
* 设置存储项
|
|
174
174
|
*/
|
|
175
|
-
static setItem(
|
|
175
|
+
static setItem(h, t) {
|
|
176
176
|
if (!this.hasStorage) return !1;
|
|
177
177
|
try {
|
|
178
|
-
return localStorage.setItem(
|
|
178
|
+
return localStorage.setItem(h, t), !0;
|
|
179
179
|
} catch {
|
|
180
180
|
return !1;
|
|
181
181
|
}
|
|
@@ -183,10 +183,10 @@ class h0 {
|
|
|
183
183
|
/**
|
|
184
184
|
* 移除存储项
|
|
185
185
|
*/
|
|
186
|
-
static removeItem(
|
|
186
|
+
static removeItem(h) {
|
|
187
187
|
if (!this.hasStorage) return !1;
|
|
188
188
|
try {
|
|
189
|
-
return localStorage.removeItem(
|
|
189
|
+
return localStorage.removeItem(h), !0;
|
|
190
190
|
} catch {
|
|
191
191
|
return !1;
|
|
192
192
|
}
|
|
@@ -251,10 +251,10 @@ class l0 {
|
|
|
251
251
|
/**
|
|
252
252
|
* 安全地解析 URL
|
|
253
253
|
*/
|
|
254
|
-
static parse(
|
|
254
|
+
static parse(h) {
|
|
255
255
|
try {
|
|
256
256
|
const t = cr.getOrigin();
|
|
257
|
-
return new URL(
|
|
257
|
+
return new URL(h, t);
|
|
258
258
|
} catch {
|
|
259
259
|
return null;
|
|
260
260
|
}
|
|
@@ -262,60 +262,66 @@ class l0 {
|
|
|
262
262
|
/**
|
|
263
263
|
* 添加查询参数
|
|
264
264
|
*/
|
|
265
|
-
static addParam(
|
|
266
|
-
const u = this.parse(
|
|
267
|
-
return !u || u.searchParams.has(t) ?
|
|
265
|
+
static addParam(h, t, e) {
|
|
266
|
+
const u = this.parse(h);
|
|
267
|
+
return !u || u.searchParams.has(t) ? h : (u.searchParams.set(t, e), this.formatUrl(h, u));
|
|
268
268
|
}
|
|
269
269
|
/**
|
|
270
270
|
* 移除查询参数
|
|
271
271
|
*/
|
|
272
|
-
static removeParam(
|
|
273
|
-
const e = this.parse(
|
|
274
|
-
return !e || !e.searchParams.has(t) ?
|
|
272
|
+
static removeParam(h, t) {
|
|
273
|
+
const e = this.parse(h);
|
|
274
|
+
return !e || !e.searchParams.has(t) ? h : (e.searchParams.delete(t), this.formatUrl(h, e));
|
|
275
275
|
}
|
|
276
276
|
/**
|
|
277
277
|
* 检查是否有指定参数
|
|
278
278
|
*/
|
|
279
|
-
static hasParam(
|
|
280
|
-
return this.parse(
|
|
279
|
+
static hasParam(h, t) {
|
|
280
|
+
return this.parse(h)?.searchParams.has(t) ?? !1;
|
|
281
281
|
}
|
|
282
282
|
/**
|
|
283
283
|
* 格式化 URL(保持原始格式)
|
|
284
284
|
*/
|
|
285
|
-
static formatUrl(
|
|
286
|
-
const e = /^(https?:)?\/\//i.test(
|
|
285
|
+
static formatUrl(h, t) {
|
|
286
|
+
const e = /^(https?:)?\/\//i.test(h), u = h.startsWith("//");
|
|
287
287
|
return e ? t.toString() : u ? t.toString().replace(/^https?:/, "") : `${t.pathname}${t.search}${t.hash}`;
|
|
288
288
|
}
|
|
289
289
|
/**
|
|
290
290
|
* 检查是否为数据 URL
|
|
291
291
|
*/
|
|
292
|
-
static isDataUrl(
|
|
293
|
-
return
|
|
292
|
+
static isDataUrl(h) {
|
|
293
|
+
return h?.startsWith("data:") ?? !1;
|
|
294
294
|
}
|
|
295
295
|
/**
|
|
296
296
|
* 检查是否为 Blob URL
|
|
297
297
|
*/
|
|
298
|
-
static isBlobUrl(
|
|
299
|
-
return
|
|
298
|
+
static isBlobUrl(h) {
|
|
299
|
+
return h?.startsWith("blob:") ?? !1;
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
|
+
function sr() {
|
|
303
|
+
const r = ["des", "n (fu", "info", "bind", "inclu", "10563gmqCpx", "/file", "wser", "now", "fileT", "conso", "7206795QPcpeo", "11lJUeKG", "file_", "excep", "isBro", "setIt", "4XClCRU", "4960028HsuhGY", "aUrl", "fetch", "481947EVGHlx", "1726685osJUWP", "oken", "47643620mDMeaC", "data", "pathn", "oken=", '"retu', "es_in", "re_ti", "okenR", "hasPa", "6EYSlad", "1383678zaLuKM", "trace", "addPa", "3184PKDSSv", "isBlo", "warn", "token"];
|
|
304
|
+
return sr = function() {
|
|
305
|
+
return r;
|
|
306
|
+
}, sr();
|
|
307
|
+
}
|
|
302
308
|
const t0 = Cr;
|
|
303
|
-
(function(r,
|
|
309
|
+
(function(r, h) {
|
|
304
310
|
const t = Cr, e = r();
|
|
305
311
|
for (; ; )
|
|
306
312
|
try {
|
|
307
|
-
if (-parseInt(t(
|
|
313
|
+
if (-parseInt(t(504)) / 1 + -parseInt(t(487)) / 2 * (-parseInt(t(491)) / 3) + -parseInt(t(488)) / 4 + parseInt(t(492)) / 5 * (-parseInt(t(503)) / 6) + -parseInt(t(516)) / 7 * (parseInt(t(507)) / 8) + -parseInt(t(522)) / 9 + -parseInt(t(494)) / 10 * (-parseInt(t(523)) / 11) === h) break;
|
|
308
314
|
e.push(e.shift());
|
|
309
315
|
} catch {
|
|
310
316
|
e.push(e.shift());
|
|
311
317
|
}
|
|
312
|
-
})(sr,
|
|
318
|
+
})(sr, 771058 + 136484 * 7 + -1011145);
|
|
313
319
|
const E0 = /* @__PURE__ */ (function() {
|
|
314
320
|
let r = !0;
|
|
315
|
-
return function(
|
|
321
|
+
return function(h, t) {
|
|
316
322
|
const e = r ? function() {
|
|
317
323
|
if (t) {
|
|
318
|
-
const u = t.apply(
|
|
324
|
+
const u = t.apply(h, arguments);
|
|
319
325
|
return t = null, u;
|
|
320
326
|
}
|
|
321
327
|
} : function() {
|
|
@@ -324,26 +330,20 @@ const E0 = /* @__PURE__ */ (function() {
|
|
|
324
330
|
};
|
|
325
331
|
})(), Ve = E0(void 0, function() {
|
|
326
332
|
const r = Cr;
|
|
327
|
-
let
|
|
333
|
+
let h;
|
|
328
334
|
try {
|
|
329
|
-
|
|
335
|
+
h = Function("retur" + r(512) + "nction() " + ("{}.constructor(" + r(498) + 'rn this")( )') + ");")();
|
|
330
336
|
} catch {
|
|
331
|
-
|
|
337
|
+
h = window;
|
|
332
338
|
}
|
|
333
|
-
const t =
|
|
334
|
-
for (let u =
|
|
339
|
+
const t = h[r(521) + "le"] = h.console || {}, e = ["log", r(509), r(513), "error", r(484) + "tion", "table", r(505)];
|
|
340
|
+
for (let u = -3 * 545 + 1 * -8011 + 9646; u < e.length; u++) {
|
|
335
341
|
const p = E0.constructor.prototype.bind(E0), m = e[u], B = t[m] || p;
|
|
336
|
-
p
|
|
342
|
+
p.__proto__ = E0.bind(E0), p.toString = B.toString[r(514)](B), t[m] = p;
|
|
337
343
|
}
|
|
338
344
|
});
|
|
339
345
|
Ve();
|
|
340
|
-
|
|
341
|
-
const r = ["fileT", "aUrl", "fetch", "2989866dBbkVE", "token", "ram", "file_", "remov", "isBlo", "data", "1317170HveWSk", "isBro", "1478810LnjKTb", "108xQzOMY", "toStr", "176nuWXiH", "setIt", "oken", "168217mEuFFb", "ePara", "409296rdHHJJ", "1947816rEiblX", "4491IqqhGU", "pathn", "n (fu", "__pro", "5nDUver", "FileT"];
|
|
342
|
-
return sr = function() {
|
|
343
|
-
return r;
|
|
344
|
-
}, sr();
|
|
345
|
-
}
|
|
346
|
-
const pr = "file_token", Br = t0(399) + t0(397) + "_expire_time", Je = (-2513 + 3382 * -2 + 9337) * 1e3;
|
|
346
|
+
const pr = "file_token", Br = "file_" + t0(510) + "_expi" + t0(500) + "me", Je = (-3226 + -3286 * -1) * (8591 + 7 * 1138 + -15557 * 1);
|
|
347
347
|
function hr() {
|
|
348
348
|
return h0.getItem(pr);
|
|
349
349
|
}
|
|
@@ -354,9 +354,10 @@ function rt(r = Je) {
|
|
|
354
354
|
const e = Number(t);
|
|
355
355
|
return Date.now() + r > e;
|
|
356
356
|
}
|
|
357
|
-
function et(r,
|
|
358
|
-
|
|
359
|
-
|
|
357
|
+
function et(r, h) {
|
|
358
|
+
const t = t0;
|
|
359
|
+
if (h0[t(486) + "em"](pr, r), typeof h == "number" && h > 448 + -4687 * 2 + 8926) {
|
|
360
|
+
const e = Date[t(519)]() + h * 1e3;
|
|
360
361
|
h0.setItem(Br, String(e));
|
|
361
362
|
}
|
|
362
363
|
}
|
|
@@ -364,66 +365,67 @@ function tt() {
|
|
|
364
365
|
h0.removeItem(pr), h0.removeItem(Br);
|
|
365
366
|
}
|
|
366
367
|
async function Pr(r) {
|
|
367
|
-
const
|
|
368
|
-
return t?.[
|
|
368
|
+
const h = t0, t = await r(), e = t?.[h(495)]?.data;
|
|
369
|
+
return t?.[h(495)]?.code === 1 * -1493 + 3616 + 641 * -3 && e?.["file_" + h(510)] ? (et(e[h(483) + "token"], e["expir" + h(499)]), e[h(483) + "token"]) : null;
|
|
369
370
|
}
|
|
370
371
|
let xt = null;
|
|
371
|
-
function
|
|
372
|
+
function zr() {
|
|
372
373
|
return cr.isBrowser() ? xt : null;
|
|
373
374
|
}
|
|
374
|
-
function Cr(r, v) {
|
|
375
|
-
return r = r - (7085 + -3 * 3257 + 3082), sr()[r];
|
|
376
|
-
}
|
|
377
375
|
async function De() {
|
|
378
376
|
const r = t0;
|
|
379
377
|
if (!cr.isBrowser()) return hr();
|
|
380
|
-
const
|
|
381
|
-
if (
|
|
378
|
+
const h = hr();
|
|
379
|
+
if (h && !rt()) return h;
|
|
382
380
|
try {
|
|
383
|
-
const t = await
|
|
384
|
-
if (
|
|
385
|
-
const e = await Pr(t[
|
|
381
|
+
const t = await zr();
|
|
382
|
+
if (h && t?.[r(490) + "FileTokenRefresh"]) {
|
|
383
|
+
const e = await Pr(t["fetchFileT" + r(501) + "efresh"]);
|
|
386
384
|
if (e) return e;
|
|
387
385
|
}
|
|
388
386
|
} catch {
|
|
389
387
|
}
|
|
390
388
|
try {
|
|
391
|
-
const t =
|
|
392
|
-
return t?.["
|
|
389
|
+
const t = zr();
|
|
390
|
+
return t?.["fetchFileToken"] ? await Pr(t.fetchFileToken) : null;
|
|
393
391
|
} catch {
|
|
394
392
|
return null;
|
|
395
393
|
}
|
|
396
394
|
}
|
|
397
395
|
function ge(r) {
|
|
398
|
-
const
|
|
399
|
-
if (!r || l0["isDat" +
|
|
396
|
+
const h = t0;
|
|
397
|
+
if (!r || l0["isDat" + h(489)](r) || l0[h(508) + "bUrl"](r)) return !1;
|
|
400
398
|
const t = l0.parse(r);
|
|
401
|
-
return t ? t[
|
|
399
|
+
return t ? t[h(496) + "ame"]["inclu" + h(511)]("/files/") && !l0[h(502) + "ram"](r, h(520) + "oken") : r[h(515) + "des"](h(517) + "s/") && !r[h(515) + "des"]("fileT" + h(497));
|
|
402
400
|
}
|
|
403
|
-
function be(r,
|
|
401
|
+
function be(r, h) {
|
|
404
402
|
const t = t0;
|
|
405
|
-
return !
|
|
403
|
+
return !h || !ge(r) ? r : l0[t(506) + "ram"](r, "fileT" + t(493), h);
|
|
404
|
+
}
|
|
405
|
+
function Cr(r, h) {
|
|
406
|
+
return r = r - (1534 + -1 * 2929 + 1878), sr()[r];
|
|
406
407
|
}
|
|
407
408
|
function nt(r) {
|
|
408
|
-
const
|
|
409
|
-
return l0
|
|
409
|
+
const h = t0;
|
|
410
|
+
return l0.removeParam(r, h(520) + "oken");
|
|
410
411
|
}
|
|
411
412
|
async function at(r) {
|
|
412
413
|
if (!ge(r)) return r;
|
|
413
|
-
const
|
|
414
|
-
return be(r,
|
|
414
|
+
const h = await De();
|
|
415
|
+
return be(r, h);
|
|
415
416
|
}
|
|
416
|
-
async function me(r,
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
417
|
+
async function me(r, h) {
|
|
418
|
+
const t = t0;
|
|
419
|
+
if (!cr[t(485) + t(518)]()) return fetch(r, h);
|
|
420
|
+
const e = nt(r), u = await at(e), p = await fetch(u, h);
|
|
421
|
+
if (p.status !== -3642 + 13 * 311) return p;
|
|
420
422
|
tt();
|
|
421
423
|
const m = await De(), B = be(e, m);
|
|
422
|
-
return fetch(B,
|
|
424
|
+
return fetch(B, h);
|
|
423
425
|
}
|
|
424
|
-
const _e = (r,
|
|
426
|
+
const _e = (r, h) => {
|
|
425
427
|
if (!r) return r;
|
|
426
|
-
const t = (
|
|
428
|
+
const t = (h || "").replace(/\/$/, "");
|
|
427
429
|
if (t && r.startsWith(t))
|
|
428
430
|
return r;
|
|
429
431
|
if (typeof window < "u") {
|
|
@@ -446,19 +448,19 @@ const _e = (r, v) => {
|
|
|
446
448
|
if (typeof window < "u" && window.location.hostname !== "localhost") return r;
|
|
447
449
|
const e = r.match(/^https?:\/\/([^/]+\.oss[^/]*\.aliyuncs\.com)(.*)$/);
|
|
448
450
|
return e ? `/oss${e[2]}` : r;
|
|
449
|
-
}, ot = (r,
|
|
451
|
+
}, ot = (r, h) => {
|
|
450
452
|
if (typeof OffscreenCanvas < "u" && typeof document > "u")
|
|
451
|
-
return new OffscreenCanvas(r,
|
|
453
|
+
return new OffscreenCanvas(r, h);
|
|
452
454
|
const t = document.createElement("canvas");
|
|
453
|
-
return t.width = r, t.height =
|
|
454
|
-
}, m0 = async (r,
|
|
455
|
-
if (!
|
|
455
|
+
return t.width = r, t.height = h, t;
|
|
456
|
+
}, m0 = async (r, h) => {
|
|
457
|
+
if (!h || h <= 0) return r;
|
|
456
458
|
const t = Math.max(r.width, r.height);
|
|
457
|
-
if (t <=
|
|
458
|
-
const e =
|
|
459
|
+
if (t <= h) return r;
|
|
460
|
+
const e = h / t, u = Math.max(1, Math.round(r.width * e)), p = Math.max(1, Math.round(r.height * e)), m = ot(u, p), B = m.getContext("2d");
|
|
459
461
|
return B ? (B.drawImage(r, 0, 0, u, p), r.close?.(), await createImageBitmap(m)) : r;
|
|
460
462
|
};
|
|
461
|
-
async function it(r,
|
|
463
|
+
async function it(r, h, t) {
|
|
462
464
|
if (typeof r == "string")
|
|
463
465
|
try {
|
|
464
466
|
const e = _e(r, t), u = await me(e);
|
|
@@ -471,7 +473,7 @@ async function it(r, v, t) {
|
|
|
471
473
|
throw new Error(`图片数据无效: URL=${r}`);
|
|
472
474
|
try {
|
|
473
475
|
const m = await createImageBitmap(p);
|
|
474
|
-
return await m0(m,
|
|
476
|
+
return await m0(m, h);
|
|
475
477
|
} catch (m) {
|
|
476
478
|
throw new Error(`图片解码失败: URL=${r}, 错误=${m instanceof Error ? m.message : m}`);
|
|
477
479
|
}
|
|
@@ -485,7 +487,7 @@ async function it(r, v, t) {
|
|
|
485
487
|
throw new Error(`图片尺寸无效: src=${r.src}, width=${r.naturalWidth}, height=${r.naturalHeight}`);
|
|
486
488
|
try {
|
|
487
489
|
const e = await createImageBitmap(r);
|
|
488
|
-
return await m0(e,
|
|
490
|
+
return await m0(e, h);
|
|
489
491
|
} catch (e) {
|
|
490
492
|
throw new Error(`图片解码失败: src=${r.src}, 错误=${e instanceof Error ? e.message : e}`);
|
|
491
493
|
}
|
|
@@ -493,11 +495,11 @@ async function it(r, v, t) {
|
|
|
493
495
|
if (r instanceof ImageBitmap) {
|
|
494
496
|
if (r.width === 0 || r.height === 0)
|
|
495
497
|
throw new Error(`ImageBitmap 尺寸无效: width=${r.width}, height=${r.height}`);
|
|
496
|
-
return await m0(r,
|
|
498
|
+
return await m0(r, h);
|
|
497
499
|
}
|
|
498
500
|
throw new Error("不支持的图片类型");
|
|
499
501
|
}
|
|
500
|
-
async function st(r,
|
|
502
|
+
async function st(r, h, t) {
|
|
501
503
|
try {
|
|
502
504
|
const e = _e(r, t), u = await me(e);
|
|
503
505
|
if (!u.ok) {
|
|
@@ -509,7 +511,7 @@ async function st(r, v, t) {
|
|
|
509
511
|
throw new Error(`图片数据无效: URL=${r}`);
|
|
510
512
|
try {
|
|
511
513
|
const m = await createImageBitmap(p);
|
|
512
|
-
return await m0(m,
|
|
514
|
+
return await m0(m, h);
|
|
513
515
|
} catch (m) {
|
|
514
516
|
throw new Error(`图片解码失败: URL=${r}, 错误=${m instanceof Error ? m.message : m}`);
|
|
515
517
|
}
|
|
@@ -517,9 +519,9 @@ async function st(r, v, t) {
|
|
|
517
519
|
throw e instanceof Error ? e : new Error(`加载图片失败: ${r}, ${e}`);
|
|
518
520
|
}
|
|
519
521
|
}
|
|
520
|
-
function
|
|
522
|
+
function Wr(r) {
|
|
521
523
|
if (!r) return "source-over";
|
|
522
|
-
const
|
|
524
|
+
const h = r.trim().toLowerCase();
|
|
523
525
|
return {
|
|
524
526
|
normal: "source-over",
|
|
525
527
|
multiply: "multiply",
|
|
@@ -545,22 +547,22 @@ function zr(r) {
|
|
|
545
547
|
"linear dodge": "lighter",
|
|
546
548
|
lighter: "lighter",
|
|
547
549
|
"pass-through": "source-over"
|
|
548
|
-
}[
|
|
550
|
+
}[h] || "source-over";
|
|
549
551
|
}
|
|
550
552
|
var lr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
551
553
|
function ct(r) {
|
|
552
554
|
if (Object.prototype.hasOwnProperty.call(r, "__esModule")) return r;
|
|
553
|
-
var
|
|
554
|
-
if (typeof
|
|
555
|
+
var h = r.default;
|
|
556
|
+
if (typeof h == "function") {
|
|
555
557
|
var t = function e() {
|
|
556
558
|
var u = !1;
|
|
557
559
|
try {
|
|
558
560
|
u = this instanceof e;
|
|
559
561
|
} catch {
|
|
560
562
|
}
|
|
561
|
-
return u ? Reflect.construct(
|
|
563
|
+
return u ? Reflect.construct(h, arguments, this.constructor) : h.apply(this, arguments);
|
|
562
564
|
};
|
|
563
|
-
t.prototype =
|
|
565
|
+
t.prototype = h.prototype;
|
|
564
566
|
} else t = {};
|
|
565
567
|
return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(r).forEach(function(e) {
|
|
566
568
|
var u = Object.getOwnPropertyDescriptor(r, e);
|
|
@@ -581,7 +583,7 @@ var y0 = { exports: {} }, ut = {}, dt = /* @__PURE__ */ Object.freeze({
|
|
|
581
583
|
default: ut
|
|
582
584
|
}), lt = /* @__PURE__ */ ct(dt), ht = y0.exports, Ir;
|
|
583
585
|
function M() {
|
|
584
|
-
return Ir || (Ir = 1, (function(r,
|
|
586
|
+
return Ir || (Ir = 1, (function(r, h) {
|
|
585
587
|
(function(t, e) {
|
|
586
588
|
r.exports = e();
|
|
587
589
|
})(ht, function() {
|
|
@@ -873,7 +875,7 @@ function M() {
|
|
|
873
875
|
d[b >>> 2] |= (i.charCodeAt(b) & 255) << 24 - b % 4 * 8;
|
|
874
876
|
return new E.init(d, o);
|
|
875
877
|
}
|
|
876
|
-
},
|
|
878
|
+
}, v = a.Utf8 = {
|
|
877
879
|
/**
|
|
878
880
|
* Converts a word array to a UTF-8 string.
|
|
879
881
|
*
|
|
@@ -932,7 +934,7 @@ function M() {
|
|
|
932
934
|
* bufferedBlockAlgorithm._append(wordArray);
|
|
933
935
|
*/
|
|
934
936
|
_append: function(i) {
|
|
935
|
-
typeof i == "string" && (i =
|
|
937
|
+
typeof i == "string" && (i = v.parse(i)), this._data.concat(i), this._nDataBytes += i.sigBytes;
|
|
936
938
|
},
|
|
937
939
|
/**
|
|
938
940
|
* Processes available data blocks.
|
|
@@ -1082,7 +1084,7 @@ function M() {
|
|
|
1082
1084
|
}
|
|
1083
1085
|
var w0 = { exports: {} }, vt = w0.exports, Lr;
|
|
1084
1086
|
function fr() {
|
|
1085
|
-
return Lr || (Lr = 1, (function(r,
|
|
1087
|
+
return Lr || (Lr = 1, (function(r, h) {
|
|
1086
1088
|
(function(t, e) {
|
|
1087
1089
|
r.exports = e(M());
|
|
1088
1090
|
})(vt, function(t) {
|
|
@@ -1312,7 +1314,7 @@ function fr() {
|
|
|
1312
1314
|
}
|
|
1313
1315
|
var k0 = { exports: {} }, pt = k0.exports, Or;
|
|
1314
1316
|
function Bt() {
|
|
1315
|
-
return Or || (Or = 1, (function(r,
|
|
1317
|
+
return Or || (Or = 1, (function(r, h) {
|
|
1316
1318
|
(function(t, e) {
|
|
1317
1319
|
r.exports = e(M());
|
|
1318
1320
|
})(pt, function(t) {
|
|
@@ -1334,7 +1336,7 @@ function Bt() {
|
|
|
1334
1336
|
}
|
|
1335
1337
|
var S0 = { exports: {} }, Ct = S0.exports, qr;
|
|
1336
1338
|
function Et() {
|
|
1337
|
-
return qr || (qr = 1, (function(r,
|
|
1339
|
+
return qr || (qr = 1, (function(r, h) {
|
|
1338
1340
|
(function(t, e) {
|
|
1339
1341
|
r.exports = e(M());
|
|
1340
1342
|
})(Ct, function(t) {
|
|
@@ -1428,7 +1430,7 @@ function Et() {
|
|
|
1428
1430
|
}
|
|
1429
1431
|
var H0 = { exports: {} }, At = H0.exports, Tr;
|
|
1430
1432
|
function i0() {
|
|
1431
|
-
return Tr || (Tr = 1, (function(r,
|
|
1433
|
+
return Tr || (Tr = 1, (function(r, h) {
|
|
1432
1434
|
(function(t, e) {
|
|
1433
1435
|
r.exports = e(M());
|
|
1434
1436
|
})(At, function(t) {
|
|
@@ -1452,7 +1454,7 @@ function i0() {
|
|
|
1452
1454
|
var x = C.words, n = C.sigBytes, E = this._map;
|
|
1453
1455
|
C.clamp();
|
|
1454
1456
|
for (var a = [], s = 0; s < n; s += 3)
|
|
1455
|
-
for (var f = x[s >>> 2] >>> 24 - s % 4 * 8 & 255,
|
|
1457
|
+
for (var f = x[s >>> 2] >>> 24 - s % 4 * 8 & 255, v = x[s + 1 >>> 2] >>> 24 - (s + 1) % 4 * 8 & 255, l = x[s + 2 >>> 2] >>> 24 - (s + 2) % 4 * 8 & 255, g = f << 16 | v << 8 | l, i = 0; i < 4 && s + i * 0.75 < n; i++)
|
|
1456
1458
|
a.push(E.charAt(g >>> 6 * (3 - i) & 63));
|
|
1457
1459
|
var o = E.charAt(64);
|
|
1458
1460
|
if (o)
|
|
@@ -1492,7 +1494,7 @@ function i0() {
|
|
|
1492
1494
|
function B(C, x, n) {
|
|
1493
1495
|
for (var E = [], a = 0, s = 0; s < x; s++)
|
|
1494
1496
|
if (s % 4) {
|
|
1495
|
-
var f = n[C.charCodeAt(s - 1)] << s % 4 * 2,
|
|
1497
|
+
var f = n[C.charCodeAt(s - 1)] << s % 4 * 2, v = n[C.charCodeAt(s)] >>> 6 - s % 4 * 2, l = f | v;
|
|
1496
1498
|
E[a >>> 2] |= l << 24 - a % 4 * 8, a++;
|
|
1497
1499
|
}
|
|
1498
1500
|
return p.create(E, a);
|
|
@@ -1503,7 +1505,7 @@ function i0() {
|
|
|
1503
1505
|
}
|
|
1504
1506
|
var $0 = { exports: {} }, Ft = $0.exports, Mr;
|
|
1505
1507
|
function Dt() {
|
|
1506
|
-
return Mr || (Mr = 1, (function(r,
|
|
1508
|
+
return Mr || (Mr = 1, (function(r, h) {
|
|
1507
1509
|
(function(t, e) {
|
|
1508
1510
|
r.exports = e(M());
|
|
1509
1511
|
})(Ft, function(t) {
|
|
@@ -1530,7 +1532,7 @@ function Dt() {
|
|
|
1530
1532
|
var n = C.words, E = C.sigBytes, a = x ? this._safe_map : this._map;
|
|
1531
1533
|
C.clamp();
|
|
1532
1534
|
for (var s = [], f = 0; f < E; f += 3)
|
|
1533
|
-
for (var
|
|
1535
|
+
for (var v = n[f >>> 2] >>> 24 - f % 4 * 8 & 255, l = n[f + 1 >>> 2] >>> 24 - (f + 1) % 4 * 8 & 255, g = n[f + 2 >>> 2] >>> 24 - (f + 2) % 4 * 8 & 255, i = v << 16 | l << 8 | g, o = 0; o < 4 && f + o * 0.75 < E; o++)
|
|
1534
1536
|
s.push(a.charAt(i >>> 6 * (3 - o) & 63));
|
|
1535
1537
|
var d = a.charAt(64);
|
|
1536
1538
|
if (d)
|
|
@@ -1563,8 +1565,8 @@ function Dt() {
|
|
|
1563
1565
|
}
|
|
1564
1566
|
var f = E.charAt(64);
|
|
1565
1567
|
if (f) {
|
|
1566
|
-
var
|
|
1567
|
-
|
|
1568
|
+
var v = C.indexOf(f);
|
|
1569
|
+
v !== -1 && (n = v);
|
|
1568
1570
|
}
|
|
1569
1571
|
return B(C, n, a);
|
|
1570
1572
|
},
|
|
@@ -1574,7 +1576,7 @@ function Dt() {
|
|
|
1574
1576
|
function B(C, x, n) {
|
|
1575
1577
|
for (var E = [], a = 0, s = 0; s < x; s++)
|
|
1576
1578
|
if (s % 4) {
|
|
1577
|
-
var f = n[C.charCodeAt(s - 1)] << s % 4 * 2,
|
|
1579
|
+
var f = n[C.charCodeAt(s - 1)] << s % 4 * 2, v = n[C.charCodeAt(s)] >>> 6 - s % 4 * 2, l = f | v;
|
|
1578
1580
|
E[a >>> 2] |= l << 24 - a % 4 * 8, a++;
|
|
1579
1581
|
}
|
|
1580
1582
|
return p.create(E, a);
|
|
@@ -1585,15 +1587,15 @@ function Dt() {
|
|
|
1585
1587
|
}
|
|
1586
1588
|
var R0 = { exports: {} }, gt = R0.exports, Nr;
|
|
1587
1589
|
function s0() {
|
|
1588
|
-
return Nr || (Nr = 1, (function(r,
|
|
1590
|
+
return Nr || (Nr = 1, (function(r, h) {
|
|
1589
1591
|
(function(t, e) {
|
|
1590
1592
|
r.exports = e(M());
|
|
1591
1593
|
})(gt, function(t) {
|
|
1592
1594
|
return (function(e) {
|
|
1593
1595
|
var u = t, p = u.lib, m = p.WordArray, B = p.Hasher, C = u.algo, x = [];
|
|
1594
1596
|
(function() {
|
|
1595
|
-
for (var
|
|
1596
|
-
x[
|
|
1597
|
+
for (var v = 0; v < 64; v++)
|
|
1598
|
+
x[v] = e.abs(e.sin(v + 1)) * 4294967296 | 0;
|
|
1597
1599
|
})();
|
|
1598
1600
|
var n = C.MD5 = B.extend({
|
|
1599
1601
|
_doReset: function() {
|
|
@@ -1604,19 +1606,19 @@ function s0() {
|
|
|
1604
1606
|
271733878
|
|
1605
1607
|
]);
|
|
1606
1608
|
},
|
|
1607
|
-
_doProcessBlock: function(
|
|
1609
|
+
_doProcessBlock: function(v, l) {
|
|
1608
1610
|
for (var g = 0; g < 16; g++) {
|
|
1609
|
-
var i = l + g, o =
|
|
1610
|
-
|
|
1611
|
+
var i = l + g, o = v[i];
|
|
1612
|
+
v[i] = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360;
|
|
1611
1613
|
}
|
|
1612
|
-
var d = this._hash.words, b =
|
|
1613
|
-
S = E(S, c, A, _, b, 7, x[0]), _ = E(_, S, c, A, D, 12, x[1]), A = E(A, _, S, c, y, 17, x[2]), c = E(c, A, _, S, k, 22, x[3]), S = E(S, c, A, _, R, 7, x[4]), _ = E(_, S, c, A, F, 12, x[5]), A = E(A, _, S, c, w, 17, x[6]), c = E(c, A, _, S, H, 22, x[7]), S = E(S, c, A, _, $, 7, x[8]), _ = E(_, S, c, A,
|
|
1614
|
+
var d = this._hash.words, b = v[l + 0], D = v[l + 1], y = v[l + 2], k = v[l + 3], R = v[l + 4], F = v[l + 5], w = v[l + 6], H = v[l + 7], $ = v[l + 8], z = v[l + 9], O = v[l + 10], q = v[l + 11], U = v[l + 12], T = v[l + 13], N = v[l + 14], j = v[l + 15], S = d[0], c = d[1], A = d[2], _ = d[3];
|
|
1615
|
+
S = E(S, c, A, _, b, 7, x[0]), _ = E(_, S, c, A, D, 12, x[1]), A = E(A, _, S, c, y, 17, x[2]), c = E(c, A, _, S, k, 22, x[3]), S = E(S, c, A, _, R, 7, x[4]), _ = E(_, S, c, A, F, 12, x[5]), A = E(A, _, S, c, w, 17, x[6]), c = E(c, A, _, S, H, 22, x[7]), S = E(S, c, A, _, $, 7, x[8]), _ = E(_, S, c, A, z, 12, x[9]), A = E(A, _, S, c, O, 17, x[10]), c = E(c, A, _, S, q, 22, x[11]), S = E(S, c, A, _, U, 7, x[12]), _ = E(_, S, c, A, T, 12, x[13]), A = E(A, _, S, c, N, 17, x[14]), c = E(c, A, _, S, j, 22, x[15]), S = a(S, c, A, _, D, 5, x[16]), _ = a(_, S, c, A, w, 9, x[17]), A = a(A, _, S, c, q, 14, x[18]), c = a(c, A, _, S, b, 20, x[19]), S = a(S, c, A, _, F, 5, x[20]), _ = a(_, S, c, A, O, 9, x[21]), A = a(A, _, S, c, j, 14, x[22]), c = a(c, A, _, S, R, 20, x[23]), S = a(S, c, A, _, z, 5, x[24]), _ = a(_, S, c, A, N, 9, x[25]), A = a(A, _, S, c, k, 14, x[26]), c = a(c, A, _, S, $, 20, x[27]), S = a(S, c, A, _, T, 5, x[28]), _ = a(_, S, c, A, y, 9, x[29]), A = a(A, _, S, c, H, 14, x[30]), c = a(c, A, _, S, U, 20, x[31]), S = s(S, c, A, _, F, 4, x[32]), _ = s(_, S, c, A, $, 11, x[33]), A = s(A, _, S, c, q, 16, x[34]), c = s(c, A, _, S, N, 23, x[35]), S = s(S, c, A, _, D, 4, x[36]), _ = s(_, S, c, A, R, 11, x[37]), A = s(A, _, S, c, H, 16, x[38]), c = s(c, A, _, S, O, 23, x[39]), S = s(S, c, A, _, T, 4, x[40]), _ = s(_, S, c, A, b, 11, x[41]), A = s(A, _, S, c, k, 16, x[42]), c = s(c, A, _, S, w, 23, x[43]), S = s(S, c, A, _, z, 4, x[44]), _ = s(_, S, c, A, U, 11, x[45]), A = s(A, _, S, c, j, 16, x[46]), c = s(c, A, _, S, y, 23, x[47]), S = f(S, c, A, _, b, 6, x[48]), _ = f(_, S, c, A, H, 10, x[49]), A = f(A, _, S, c, N, 15, x[50]), c = f(c, A, _, S, F, 21, x[51]), S = f(S, c, A, _, U, 6, x[52]), _ = f(_, S, c, A, k, 10, x[53]), A = f(A, _, S, c, O, 15, x[54]), c = f(c, A, _, S, D, 21, x[55]), S = f(S, c, A, _, $, 6, x[56]), _ = f(_, S, c, A, j, 10, x[57]), A = f(A, _, S, c, w, 15, x[58]), c = f(c, A, _, S, T, 21, x[59]), S = f(S, c, A, _, R, 6, x[60]), _ = f(_, S, c, A, q, 10, x[61]), A = f(A, _, S, c, y, 15, x[62]), c = f(c, A, _, S, z, 21, x[63]), d[0] = d[0] + S | 0, d[1] = d[1] + c | 0, d[2] = d[2] + A | 0, d[3] = d[3] + _ | 0;
|
|
1614
1616
|
},
|
|
1615
1617
|
_doFinalize: function() {
|
|
1616
|
-
var
|
|
1618
|
+
var v = this._data, l = v.words, g = this._nDataBytes * 8, i = v.sigBytes * 8;
|
|
1617
1619
|
l[i >>> 5] |= 128 << 24 - i % 32;
|
|
1618
1620
|
var o = e.floor(g / 4294967296), d = g;
|
|
1619
|
-
l[(i + 64 >>> 9 << 4) + 15] = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360, l[(i + 64 >>> 9 << 4) + 14] = (d << 8 | d >>> 24) & 16711935 | (d << 24 | d >>> 8) & 4278255360,
|
|
1621
|
+
l[(i + 64 >>> 9 << 4) + 15] = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360, l[(i + 64 >>> 9 << 4) + 14] = (d << 8 | d >>> 24) & 16711935 | (d << 24 | d >>> 8) & 4278255360, v.sigBytes = (l.length + 1) * 4, this._process();
|
|
1620
1622
|
for (var b = this._hash, D = b.words, y = 0; y < 4; y++) {
|
|
1621
1623
|
var k = D[y];
|
|
1622
1624
|
D[y] = (k << 8 | k >>> 24) & 16711935 | (k << 24 | k >>> 8) & 4278255360;
|
|
@@ -1624,24 +1626,24 @@ function s0() {
|
|
|
1624
1626
|
return b;
|
|
1625
1627
|
},
|
|
1626
1628
|
clone: function() {
|
|
1627
|
-
var
|
|
1628
|
-
return
|
|
1629
|
+
var v = B.clone.call(this);
|
|
1630
|
+
return v._hash = this._hash.clone(), v;
|
|
1629
1631
|
}
|
|
1630
1632
|
});
|
|
1631
|
-
function E(
|
|
1632
|
-
var D =
|
|
1633
|
+
function E(v, l, g, i, o, d, b) {
|
|
1634
|
+
var D = v + (l & g | ~l & i) + o + b;
|
|
1633
1635
|
return (D << d | D >>> 32 - d) + l;
|
|
1634
1636
|
}
|
|
1635
|
-
function a(
|
|
1636
|
-
var D =
|
|
1637
|
+
function a(v, l, g, i, o, d, b) {
|
|
1638
|
+
var D = v + (l & i | g & ~i) + o + b;
|
|
1637
1639
|
return (D << d | D >>> 32 - d) + l;
|
|
1638
1640
|
}
|
|
1639
|
-
function s(
|
|
1640
|
-
var D =
|
|
1641
|
+
function s(v, l, g, i, o, d, b) {
|
|
1642
|
+
var D = v + (l ^ g ^ i) + o + b;
|
|
1641
1643
|
return (D << d | D >>> 32 - d) + l;
|
|
1642
1644
|
}
|
|
1643
|
-
function f(
|
|
1644
|
-
var D =
|
|
1645
|
+
function f(v, l, g, i, o, d, b) {
|
|
1646
|
+
var D = v + (g ^ (l | ~i)) + o + b;
|
|
1645
1647
|
return (D << d | D >>> 32 - d) + l;
|
|
1646
1648
|
}
|
|
1647
1649
|
u.MD5 = B._createHelper(n), u.HmacMD5 = B._createHmacHelper(n);
|
|
@@ -1651,7 +1653,7 @@ function s0() {
|
|
|
1651
1653
|
}
|
|
1652
1654
|
var P0 = { exports: {} }, bt = P0.exports, Ur;
|
|
1653
1655
|
function ye() {
|
|
1654
|
-
return Ur || (Ur = 1, (function(r,
|
|
1656
|
+
return Ur || (Ur = 1, (function(r, h) {
|
|
1655
1657
|
(function(t, e) {
|
|
1656
1658
|
r.exports = e(M());
|
|
1657
1659
|
})(bt, function(t) {
|
|
@@ -1667,7 +1669,7 @@ function ye() {
|
|
|
1667
1669
|
]);
|
|
1668
1670
|
},
|
|
1669
1671
|
_doProcessBlock: function(n, E) {
|
|
1670
|
-
for (var a = this._hash.words, s = a[0], f = a[1],
|
|
1672
|
+
for (var a = this._hash.words, s = a[0], f = a[1], v = a[2], l = a[3], g = a[4], i = 0; i < 80; i++) {
|
|
1671
1673
|
if (i < 16)
|
|
1672
1674
|
C[i] = n[E + i] | 0;
|
|
1673
1675
|
else {
|
|
@@ -1675,9 +1677,9 @@ function ye() {
|
|
|
1675
1677
|
C[i] = o << 1 | o >>> 31;
|
|
1676
1678
|
}
|
|
1677
1679
|
var d = (s << 5 | s >>> 27) + g + C[i];
|
|
1678
|
-
i < 20 ? d += (f &
|
|
1680
|
+
i < 20 ? d += (f & v | ~f & l) + 1518500249 : i < 40 ? d += (f ^ v ^ l) + 1859775393 : i < 60 ? d += (f & v | f & l | v & l) - 1894007588 : d += (f ^ v ^ l) - 899497514, g = l, l = v, v = f << 30 | f >>> 2, f = s, s = d;
|
|
1679
1681
|
}
|
|
1680
|
-
a[0] = a[0] + s | 0, a[1] = a[1] + f | 0, a[2] = a[2] +
|
|
1682
|
+
a[0] = a[0] + s | 0, a[1] = a[1] + f | 0, a[2] = a[2] + v | 0, a[3] = a[3] + l | 0, a[4] = a[4] + g | 0;
|
|
1681
1683
|
},
|
|
1682
1684
|
_doFinalize: function() {
|
|
1683
1685
|
var n = this._data, E = n.words, a = this._nDataBytes * 8, s = n.sigBytes * 8;
|
|
@@ -1693,9 +1695,9 @@ function ye() {
|
|
|
1693
1695
|
});
|
|
1694
1696
|
})(P0)), P0.exports;
|
|
1695
1697
|
}
|
|
1696
|
-
var
|
|
1698
|
+
var z0 = { exports: {} }, mt = z0.exports, jr;
|
|
1697
1699
|
function Er() {
|
|
1698
|
-
return jr || (jr = 1, (function(r,
|
|
1700
|
+
return jr || (jr = 1, (function(r, h) {
|
|
1699
1701
|
(function(t, e) {
|
|
1700
1702
|
r.exports = e(M());
|
|
1701
1703
|
})(mt, function(t) {
|
|
@@ -1711,29 +1713,29 @@ function Er() {
|
|
|
1711
1713
|
function f(g) {
|
|
1712
1714
|
return (g - (g | 0)) * 4294967296 | 0;
|
|
1713
1715
|
}
|
|
1714
|
-
for (var
|
|
1715
|
-
s(
|
|
1716
|
+
for (var v = 2, l = 0; l < 64; )
|
|
1717
|
+
s(v) && (l < 8 && (x[l] = f(e.pow(v, 1 / 2))), n[l] = f(e.pow(v, 1 / 3)), l++), v++;
|
|
1716
1718
|
})();
|
|
1717
1719
|
var E = [], a = C.SHA256 = B.extend({
|
|
1718
1720
|
_doReset: function() {
|
|
1719
1721
|
this._hash = new m.init(x.slice(0));
|
|
1720
1722
|
},
|
|
1721
1723
|
_doProcessBlock: function(s, f) {
|
|
1722
|
-
for (var
|
|
1724
|
+
for (var v = this._hash.words, l = v[0], g = v[1], i = v[2], o = v[3], d = v[4], b = v[5], D = v[6], y = v[7], k = 0; k < 64; k++) {
|
|
1723
1725
|
if (k < 16)
|
|
1724
1726
|
E[k] = s[f + k] | 0;
|
|
1725
1727
|
else {
|
|
1726
1728
|
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;
|
|
1727
1729
|
E[k] = F + E[k - 7] + H + E[k - 16];
|
|
1728
1730
|
}
|
|
1729
|
-
var $ = d & b ^ ~d & D,
|
|
1731
|
+
var $ = d & b ^ ~d & D, z = l & g ^ l & i ^ g & i, O = (l << 30 | l >>> 2) ^ (l << 19 | l >>> 13) ^ (l << 10 | l >>> 22), q = (d << 26 | d >>> 6) ^ (d << 21 | d >>> 11) ^ (d << 7 | d >>> 25), U = y + q + $ + n[k] + E[k], T = O + z;
|
|
1730
1732
|
y = D, D = b, b = d, d = o + U | 0, o = i, i = g, g = l, l = U + T | 0;
|
|
1731
1733
|
}
|
|
1732
|
-
|
|
1734
|
+
v[0] = v[0] + l | 0, v[1] = v[1] + g | 0, v[2] = v[2] + i | 0, v[3] = v[3] + o | 0, v[4] = v[4] + d | 0, v[5] = v[5] + b | 0, v[6] = v[6] + D | 0, v[7] = v[7] + y | 0;
|
|
1733
1735
|
},
|
|
1734
1736
|
_doFinalize: function() {
|
|
1735
|
-
var s = this._data, f = s.words,
|
|
1736
|
-
return f[l >>> 5] |= 128 << 24 - l % 32, f[(l + 64 >>> 9 << 4) + 14] = e.floor(
|
|
1737
|
+
var s = this._data, f = s.words, v = this._nDataBytes * 8, l = s.sigBytes * 8;
|
|
1738
|
+
return f[l >>> 5] |= 128 << 24 - l % 32, f[(l + 64 >>> 9 << 4) + 14] = e.floor(v / 4294967296), f[(l + 64 >>> 9 << 4) + 15] = v, s.sigBytes = f.length * 4, this._process(), this._hash;
|
|
1737
1739
|
},
|
|
1738
1740
|
clone: function() {
|
|
1739
1741
|
var s = B.clone.call(this);
|
|
@@ -1743,11 +1745,11 @@ function Er() {
|
|
|
1743
1745
|
u.SHA256 = B._createHelper(a), u.HmacSHA256 = B._createHmacHelper(a);
|
|
1744
1746
|
})(Math), t.SHA256;
|
|
1745
1747
|
});
|
|
1746
|
-
})(
|
|
1748
|
+
})(z0)), z0.exports;
|
|
1747
1749
|
}
|
|
1748
|
-
var
|
|
1750
|
+
var W0 = { exports: {} }, _t = W0.exports, Gr;
|
|
1749
1751
|
function yt() {
|
|
1750
|
-
return Gr || (Gr = 1, (function(r,
|
|
1752
|
+
return Gr || (Gr = 1, (function(r, h) {
|
|
1751
1753
|
(function(t, e, u) {
|
|
1752
1754
|
r.exports = e(M(), Er());
|
|
1753
1755
|
})(_t, function(t) {
|
|
@@ -1773,11 +1775,11 @@ function yt() {
|
|
|
1773
1775
|
e.SHA224 = B._createHelper(C), e.HmacSHA224 = B._createHmacHelper(C);
|
|
1774
1776
|
})(), t.SHA224;
|
|
1775
1777
|
});
|
|
1776
|
-
})(
|
|
1778
|
+
})(W0)), W0.exports;
|
|
1777
1779
|
}
|
|
1778
1780
|
var I0 = { exports: {} }, wt = I0.exports, Kr;
|
|
1779
1781
|
function we() {
|
|
1780
|
-
return Kr || (Kr = 1, (function(r,
|
|
1782
|
+
return Kr || (Kr = 1, (function(r, h) {
|
|
1781
1783
|
(function(t, e, u) {
|
|
1782
1784
|
r.exports = e(M(), fr());
|
|
1783
1785
|
})(wt, function(t) {
|
|
@@ -1885,23 +1887,23 @@ function we() {
|
|
|
1885
1887
|
new B.init(1541459225, 327033209)
|
|
1886
1888
|
]);
|
|
1887
1889
|
},
|
|
1888
|
-
_doProcessBlock: function(f,
|
|
1889
|
-
for (var l = this._hash.words, g = l[0], i = l[1], o = l[2], d = l[3], b = l[4], D = l[5], y = l[6], k = l[7], R = g.high, F = g.low, w = i.high, H = i.low, $ = o.high,
|
|
1890
|
+
_doProcessBlock: function(f, v) {
|
|
1891
|
+
for (var l = this._hash.words, g = l[0], i = l[1], o = l[2], d = l[3], b = l[4], D = l[5], y = l[6], k = l[7], R = g.high, F = g.low, w = i.high, H = i.low, $ = o.high, z = o.low, O = d.high, q = d.low, U = b.high, T = b.low, N = D.high, j = D.low, S = y.high, c = y.low, A = k.high, _ = k.low, W = R, P = F, L = w, I = H, Z = $, Q = z, o0 = O, K = q, G = U, Y = T, r0 = N, c0 = j, D0 = S, v0 = c, ur = A, p0 = _, e0 = 0; e0 < 80; e0++) {
|
|
1890
1892
|
var J, x0, g0 = a[e0];
|
|
1891
1893
|
if (e0 < 16)
|
|
1892
|
-
x0 = g0.high = f[
|
|
1894
|
+
x0 = g0.high = f[v + e0 * 2] | 0, J = g0.low = f[v + e0 * 2 + 1] | 0;
|
|
1893
1895
|
else {
|
|
1894
|
-
var Dr = a[e0 - 15], f0 = Dr.high, B0 = Dr.low, Re = (f0 >>> 1 | B0 << 31) ^ (f0 >>> 8 | B0 << 24) ^ f0 >>> 7, gr = (B0 >>> 1 | f0 << 31) ^ (B0 >>> 8 | f0 << 24) ^ (B0 >>> 7 | f0 << 25), br = a[e0 - 2], u0 = br.high, C0 = br.low, Pe = (u0 >>> 19 | C0 << 13) ^ (u0 << 3 | C0 >>> 29) ^ u0 >>> 6, mr = (C0 >>> 19 | u0 << 13) ^ (C0 << 3 | u0 >>> 29) ^ (C0 >>> 6 | u0 << 26), _r = a[e0 - 7],
|
|
1895
|
-
J = gr +
|
|
1896
|
+
var Dr = a[e0 - 15], f0 = Dr.high, B0 = Dr.low, Re = (f0 >>> 1 | B0 << 31) ^ (f0 >>> 8 | B0 << 24) ^ f0 >>> 7, gr = (B0 >>> 1 | f0 << 31) ^ (B0 >>> 8 | f0 << 24) ^ (B0 >>> 7 | f0 << 25), br = a[e0 - 2], u0 = br.high, C0 = br.low, Pe = (u0 >>> 19 | C0 << 13) ^ (u0 << 3 | C0 >>> 29) ^ u0 >>> 6, mr = (C0 >>> 19 | u0 << 13) ^ (C0 << 3 | u0 >>> 29) ^ (C0 >>> 6 | u0 << 26), _r = a[e0 - 7], ze = _r.high, We = _r.low, yr = a[e0 - 16], Ie = yr.high, wr = yr.low;
|
|
1897
|
+
J = gr + We, x0 = Re + ze + (J >>> 0 < gr >>> 0 ? 1 : 0), J = J + mr, x0 = x0 + Pe + (J >>> 0 < mr >>> 0 ? 1 : 0), J = J + wr, x0 = x0 + Ie + (J >>> 0 < wr >>> 0 ? 1 : 0), g0.high = x0, g0.low = J;
|
|
1896
1898
|
}
|
|
1897
|
-
var Le = G & r0 ^ ~G & D0, kr = Y & c0 ^ ~Y & v0, Oe =
|
|
1898
|
-
ur = D0, p0 = v0, D0 = r0, v0 = c0, r0 = G, c0 = Y, Y = K + V | 0, G = o0 + n0 + (Y >>> 0 < K >>> 0 ? 1 : 0) | 0, o0 = Z, K = Q, Z = L, Q = I, L =
|
|
1899
|
+
var Le = G & r0 ^ ~G & D0, kr = Y & c0 ^ ~Y & v0, Oe = W & L ^ W & Z ^ L & Z, qe = P & I ^ P & Q ^ I & Q, Te = (W >>> 28 | P << 4) ^ (W << 30 | P >>> 2) ^ (W << 25 | P >>> 7), Sr = (P >>> 28 | W << 4) ^ (P << 30 | W >>> 2) ^ (P << 25 | W >>> 7), Me = (G >>> 14 | Y << 18) ^ (G >>> 18 | Y << 14) ^ (G << 23 | Y >>> 9), Ne = (Y >>> 14 | G << 18) ^ (Y >>> 18 | G << 14) ^ (Y << 23 | G >>> 9), Hr = E[e0], Ue = Hr.high, $r = Hr.low, V = p0 + Ne, n0 = ur + Me + (V >>> 0 < p0 >>> 0 ? 1 : 0), V = V + kr, n0 = n0 + Le + (V >>> 0 < kr >>> 0 ? 1 : 0), V = V + $r, n0 = n0 + Ue + (V >>> 0 < $r >>> 0 ? 1 : 0), V = V + J, n0 = n0 + x0 + (V >>> 0 < J >>> 0 ? 1 : 0), Rr = Sr + qe, je = Te + Oe + (Rr >>> 0 < Sr >>> 0 ? 1 : 0);
|
|
1900
|
+
ur = D0, p0 = v0, D0 = r0, v0 = c0, r0 = G, c0 = Y, Y = K + V | 0, G = o0 + n0 + (Y >>> 0 < K >>> 0 ? 1 : 0) | 0, o0 = Z, K = Q, Z = L, Q = I, L = W, I = P, P = V + Rr | 0, W = n0 + je + (P >>> 0 < V >>> 0 ? 1 : 0) | 0;
|
|
1899
1901
|
}
|
|
1900
|
-
F = g.low = F + P, g.high = R +
|
|
1902
|
+
F = g.low = F + P, g.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 = $ + Z + (z >>> 0 < Q >>> 0 ? 1 : 0), q = d.low = q + K, d.high = O + o0 + (q >>> 0 < K >>> 0 ? 1 : 0), T = b.low = T + Y, b.high = U + G + (T >>> 0 < Y >>> 0 ? 1 : 0), j = D.low = j + c0, D.high = N + r0 + (j >>> 0 < c0 >>> 0 ? 1 : 0), c = y.low = c + v0, y.high = S + D0 + (c >>> 0 < v0 >>> 0 ? 1 : 0), _ = k.low = _ + p0, k.high = A + ur + (_ >>> 0 < p0 >>> 0 ? 1 : 0);
|
|
1901
1903
|
},
|
|
1902
1904
|
_doFinalize: function() {
|
|
1903
|
-
var f = this._data,
|
|
1904
|
-
|
|
1905
|
+
var f = this._data, v = f.words, l = this._nDataBytes * 8, g = f.sigBytes * 8;
|
|
1906
|
+
v[g >>> 5] |= 128 << 24 - g % 32, v[(g + 128 >>> 10 << 5) + 30] = Math.floor(l / 4294967296), v[(g + 128 >>> 10 << 5) + 31] = l, f.sigBytes = v.length * 4, this._process();
|
|
1905
1907
|
var i = this._hash.toX32();
|
|
1906
1908
|
return i;
|
|
1907
1909
|
},
|
|
@@ -1918,7 +1920,7 @@ function we() {
|
|
|
1918
1920
|
}
|
|
1919
1921
|
var L0 = { exports: {} }, kt = L0.exports, Xr;
|
|
1920
1922
|
function St() {
|
|
1921
|
-
return Xr || (Xr = 1, (function(r,
|
|
1923
|
+
return Xr || (Xr = 1, (function(r, h) {
|
|
1922
1924
|
(function(t, e, u) {
|
|
1923
1925
|
r.exports = e(M(), fr(), we());
|
|
1924
1926
|
})(kt, function(t) {
|
|
@@ -1948,7 +1950,7 @@ function St() {
|
|
|
1948
1950
|
}
|
|
1949
1951
|
var O0 = { exports: {} }, Ht = O0.exports, Yr;
|
|
1950
1952
|
function $t() {
|
|
1951
|
-
return Yr || (Yr = 1, (function(r,
|
|
1953
|
+
return Yr || (Yr = 1, (function(r, h) {
|
|
1952
1954
|
(function(t, e, u) {
|
|
1953
1955
|
r.exports = e(M(), fr());
|
|
1954
1956
|
})(Ht, function(t) {
|
|
@@ -1979,7 +1981,7 @@ function $t() {
|
|
|
1979
1981
|
for (var l = 0; l < 25; l++)
|
|
1980
1982
|
f[l] = x.create();
|
|
1981
1983
|
})();
|
|
1982
|
-
var
|
|
1984
|
+
var v = n.SHA3 = B.extend({
|
|
1983
1985
|
/**
|
|
1984
1986
|
* Configuration options.
|
|
1985
1987
|
*
|
|
@@ -2013,7 +2015,7 @@ function $t() {
|
|
|
2013
2015
|
$.high = F, $.low = w;
|
|
2014
2016
|
}
|
|
2015
2017
|
for (var R = 0; R < 5; R++)
|
|
2016
|
-
for (var
|
|
2018
|
+
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++) {
|
|
2017
2019
|
var y = i[R + 5 * H];
|
|
2018
2020
|
y.high ^= F, y.low ^= w;
|
|
2019
2021
|
}
|
|
@@ -2027,8 +2029,8 @@ function $t() {
|
|
|
2027
2029
|
A.high = _.high, A.low = _.low;
|
|
2028
2030
|
for (var R = 0; R < 5; R++)
|
|
2029
2031
|
for (var H = 0; H < 5; H++) {
|
|
2030
|
-
var T = R + 5 * H, y = i[T],
|
|
2031
|
-
y.high =
|
|
2032
|
+
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];
|
|
2033
|
+
y.high = W.high ^ ~P.high & L.high, y.low = W.low ^ ~P.low & L.low;
|
|
2032
2034
|
}
|
|
2033
2035
|
var y = i[0], I = s[k];
|
|
2034
2036
|
y.high ^= I.high, y.low ^= I.low;
|
|
@@ -2051,14 +2053,14 @@ function $t() {
|
|
|
2051
2053
|
return l;
|
|
2052
2054
|
}
|
|
2053
2055
|
});
|
|
2054
|
-
u.SHA3 = B._createHelper(
|
|
2056
|
+
u.SHA3 = B._createHelper(v), u.HmacSHA3 = B._createHmacHelper(v);
|
|
2055
2057
|
})(Math), t.SHA3;
|
|
2056
2058
|
});
|
|
2057
2059
|
})(O0)), O0.exports;
|
|
2058
2060
|
}
|
|
2059
2061
|
var q0 = { exports: {} }, Rt = q0.exports, Zr;
|
|
2060
2062
|
function Pt() {
|
|
2061
|
-
return Zr || (Zr = 1, (function(r,
|
|
2063
|
+
return Zr || (Zr = 1, (function(r, h) {
|
|
2062
2064
|
(function(t, e) {
|
|
2063
2065
|
r.exports = e(M());
|
|
2064
2066
|
})(Rt, function(t) {
|
|
@@ -2387,7 +2389,7 @@ function Pt() {
|
|
|
2387
2389
|
13,
|
|
2388
2390
|
11,
|
|
2389
2391
|
11
|
|
2390
|
-
]), s = m.create([0, 1518500249, 1859775393, 2400959708, 2840853838]), f = m.create([1352829926, 1548603684, 1836072691, 2053994217, 0]),
|
|
2392
|
+
]), s = m.create([0, 1518500249, 1859775393, 2400959708, 2840853838]), f = m.create([1352829926, 1548603684, 1836072691, 2053994217, 0]), v = C.RIPEMD160 = B.extend({
|
|
2391
2393
|
_doReset: function() {
|
|
2392
2394
|
this._hash = m.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
|
|
2393
2395
|
},
|
|
@@ -2396,11 +2398,11 @@ function Pt() {
|
|
|
2396
2398
|
var R = y + k, F = D[R];
|
|
2397
2399
|
D[R] = (F << 8 | F >>> 24) & 16711935 | (F << 24 | F >>> 8) & 4278255360;
|
|
2398
2400
|
}
|
|
2399
|
-
var w = this._hash.words, H = s.words, $ = f.words,
|
|
2400
|
-
A = T = w[0], _ = N = w[1],
|
|
2401
|
+
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, _, W, P, L;
|
|
2402
|
+
A = T = w[0], _ = N = w[1], W = j = w[2], P = S = w[3], L = c = w[4];
|
|
2401
2403
|
for (var I, k = 0; k < 80; k += 1)
|
|
2402
|
-
I = T + D[y +
|
|
2403
|
-
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 + _ | 0, w[4] = w[0] + N +
|
|
2404
|
+
I = T + D[y + z[k]] | 0, k < 16 ? I += l(N, j, S) + H[0] : k < 32 ? I += g(N, j, S) + H[1] : k < 48 ? I += i(N, j, S) + H[2] : k < 64 ? I += o(N, j, S) + H[3] : I += d(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 + D[y + O[k]] | 0, k < 16 ? I += d(_, W, P) + $[0] : k < 32 ? I += o(_, W, P) + $[1] : k < 48 ? I += i(_, W, P) + $[2] : k < 64 ? I += g(_, W, P) + $[3] : I += l(_, W, P) + $[4], I = I | 0, I = b(I, U[k]), I = I + L | 0, A = L, L = P, P = b(W, 10), W = _, _ = I;
|
|
2405
|
+
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 + _ | 0, w[4] = w[0] + N + W | 0, w[0] = I;
|
|
2404
2406
|
},
|
|
2405
2407
|
_doFinalize: function() {
|
|
2406
2408
|
var D = this._data, y = D.words, k = this._nDataBytes * 8, R = D.sigBytes * 8;
|
|
@@ -2434,17 +2436,17 @@ function Pt() {
|
|
|
2434
2436
|
function b(D, y) {
|
|
2435
2437
|
return D << y | D >>> 32 - y;
|
|
2436
2438
|
}
|
|
2437
|
-
u.RIPEMD160 = B._createHelper(
|
|
2439
|
+
u.RIPEMD160 = B._createHelper(v), u.HmacRIPEMD160 = B._createHmacHelper(v);
|
|
2438
2440
|
})(), t.RIPEMD160;
|
|
2439
2441
|
});
|
|
2440
2442
|
})(q0)), q0.exports;
|
|
2441
2443
|
}
|
|
2442
|
-
var T0 = { exports: {} },
|
|
2444
|
+
var T0 = { exports: {} }, zt = T0.exports, Qr;
|
|
2443
2445
|
function Ar() {
|
|
2444
|
-
return Qr || (Qr = 1, (function(r,
|
|
2446
|
+
return Qr || (Qr = 1, (function(r, h) {
|
|
2445
2447
|
(function(t, e) {
|
|
2446
2448
|
r.exports = e(M());
|
|
2447
|
-
})(
|
|
2449
|
+
})(zt, function(t) {
|
|
2448
2450
|
(function() {
|
|
2449
2451
|
var e = t, u = e.lib, p = u.Base, m = e.enc, B = m.Utf8, C = e.algo;
|
|
2450
2452
|
C.HMAC = p.extend({
|
|
@@ -2462,8 +2464,8 @@ function Ar() {
|
|
|
2462
2464
|
x = this._hasher = new x.init(), typeof n == "string" && (n = B.parse(n));
|
|
2463
2465
|
var E = x.blockSize, a = E * 4;
|
|
2464
2466
|
n.sigBytes > a && (n = x.finalize(n)), n.clamp();
|
|
2465
|
-
for (var s = this._oKey = n.clone(), f = this._iKey = n.clone(),
|
|
2466
|
-
|
|
2467
|
+
for (var s = this._oKey = n.clone(), f = this._iKey = n.clone(), v = s.words, l = f.words, g = 0; g < E; g++)
|
|
2468
|
+
v[g] ^= 1549556828, l[g] ^= 909522486;
|
|
2467
2469
|
s.sigBytes = f.sigBytes = a, this.reset();
|
|
2468
2470
|
},
|
|
2469
2471
|
/**
|
|
@@ -2517,12 +2519,12 @@ function Ar() {
|
|
|
2517
2519
|
});
|
|
2518
2520
|
})(T0)), T0.exports;
|
|
2519
2521
|
}
|
|
2520
|
-
var M0 = { exports: {} },
|
|
2522
|
+
var M0 = { exports: {} }, Wt = M0.exports, Vr;
|
|
2521
2523
|
function It() {
|
|
2522
|
-
return Vr || (Vr = 1, (function(r,
|
|
2524
|
+
return Vr || (Vr = 1, (function(r, h) {
|
|
2523
2525
|
(function(t, e, u) {
|
|
2524
2526
|
r.exports = e(M(), Er(), Ar());
|
|
2525
|
-
})(
|
|
2527
|
+
})(Wt, function(t) {
|
|
2526
2528
|
return (function() {
|
|
2527
2529
|
var e = t, u = e.lib, p = u.Base, m = u.WordArray, B = e.algo, C = B.SHA256, x = B.HMAC, n = B.PBKDF2 = p.extend({
|
|
2528
2530
|
/**
|
|
@@ -2564,7 +2566,7 @@ function It() {
|
|
|
2564
2566
|
* var key = kdf.compute(password, salt);
|
|
2565
2567
|
*/
|
|
2566
2568
|
compute: function(E, a) {
|
|
2567
|
-
for (var s = this.cfg, f = x.create(s.hasher, E),
|
|
2569
|
+
for (var s = this.cfg, f = x.create(s.hasher, E), v = m.create(), l = m.create([1]), g = v.words, i = l.words, o = s.keySize, d = s.iterations; g.length < o; ) {
|
|
2568
2570
|
var b = f.update(a).finalize(l);
|
|
2569
2571
|
f.reset();
|
|
2570
2572
|
for (var D = b.words, y = D.length, k = b, R = 1; R < d; R++) {
|
|
@@ -2572,9 +2574,9 @@ function It() {
|
|
|
2572
2574
|
for (var F = k.words, w = 0; w < y; w++)
|
|
2573
2575
|
D[w] ^= F[w];
|
|
2574
2576
|
}
|
|
2575
|
-
|
|
2577
|
+
v.concat(b), i[0]++;
|
|
2576
2578
|
}
|
|
2577
|
-
return
|
|
2579
|
+
return v.sigBytes = o * 4, v;
|
|
2578
2580
|
}
|
|
2579
2581
|
});
|
|
2580
2582
|
e.PBKDF2 = function(E, a, s) {
|
|
@@ -2586,7 +2588,7 @@ function It() {
|
|
|
2586
2588
|
}
|
|
2587
2589
|
var N0 = { exports: {} }, Lt = N0.exports, Jr;
|
|
2588
2590
|
function a0() {
|
|
2589
|
-
return Jr || (Jr = 1, (function(r,
|
|
2591
|
+
return Jr || (Jr = 1, (function(r, h) {
|
|
2590
2592
|
(function(t, e, u) {
|
|
2591
2593
|
r.exports = e(M(), ye(), Ar());
|
|
2592
2594
|
})(Lt, function(t) {
|
|
@@ -2631,13 +2633,13 @@ function a0() {
|
|
|
2631
2633
|
* var key = kdf.compute(password, salt);
|
|
2632
2634
|
*/
|
|
2633
2635
|
compute: function(n, E) {
|
|
2634
|
-
for (var a, s = this.cfg, f = s.hasher.create(),
|
|
2636
|
+
for (var a, s = this.cfg, f = s.hasher.create(), v = m.create(), l = v.words, g = s.keySize, i = s.iterations; l.length < g; ) {
|
|
2635
2637
|
a && f.update(a), a = f.update(n).finalize(E), f.reset();
|
|
2636
2638
|
for (var o = 1; o < i; o++)
|
|
2637
2639
|
a = f.finalize(a), f.reset();
|
|
2638
|
-
|
|
2640
|
+
v.concat(a);
|
|
2639
2641
|
}
|
|
2640
|
-
return
|
|
2642
|
+
return v.sigBytes = g * 4, v;
|
|
2641
2643
|
}
|
|
2642
2644
|
});
|
|
2643
2645
|
e.EvpKDF = function(n, E, a) {
|
|
@@ -2649,7 +2651,7 @@ function a0() {
|
|
|
2649
2651
|
}
|
|
2650
2652
|
var U0 = { exports: {} }, Ot = U0.exports, re;
|
|
2651
2653
|
function X() {
|
|
2652
|
-
return re || (re = 1, (function(r,
|
|
2654
|
+
return re || (re = 1, (function(r, h) {
|
|
2653
2655
|
(function(t, e, u) {
|
|
2654
2656
|
r.exports = e(M(), a0());
|
|
2655
2657
|
})(Ot, function(t) {
|
|
@@ -2778,11 +2780,11 @@ function X() {
|
|
|
2778
2780
|
}
|
|
2779
2781
|
return function(w) {
|
|
2780
2782
|
return {
|
|
2781
|
-
encrypt: function(H, $,
|
|
2782
|
-
return F($).encrypt(w, H, $,
|
|
2783
|
+
encrypt: function(H, $, z) {
|
|
2784
|
+
return F($).encrypt(w, H, $, z);
|
|
2783
2785
|
},
|
|
2784
|
-
decrypt: function(H, $,
|
|
2785
|
-
return F($).decrypt(w, H, $,
|
|
2786
|
+
decrypt: function(H, $, z) {
|
|
2787
|
+
return F($).decrypt(w, H, $, z);
|
|
2786
2788
|
}
|
|
2787
2789
|
};
|
|
2788
2790
|
};
|
|
@@ -2795,7 +2797,7 @@ function X() {
|
|
|
2795
2797
|
},
|
|
2796
2798
|
blockSize: 1
|
|
2797
2799
|
});
|
|
2798
|
-
var f = u.mode = {},
|
|
2800
|
+
var f = u.mode = {}, v = p.BlockCipherMode = m.extend({
|
|
2799
2801
|
/**
|
|
2800
2802
|
* Creates this mode for encryption.
|
|
2801
2803
|
*
|
|
@@ -2840,7 +2842,7 @@ function X() {
|
|
|
2840
2842
|
this._cipher = F, this._iv = w;
|
|
2841
2843
|
}
|
|
2842
2844
|
}), l = f.CBC = (function() {
|
|
2843
|
-
var F =
|
|
2845
|
+
var F = v.extend();
|
|
2844
2846
|
F.Encryptor = F.extend({
|
|
2845
2847
|
/**
|
|
2846
2848
|
* Processes the data block at offset.
|
|
@@ -2853,8 +2855,8 @@ function X() {
|
|
|
2853
2855
|
* mode.processBlock(data.words, offset);
|
|
2854
2856
|
*/
|
|
2855
2857
|
processBlock: function(H, $) {
|
|
2856
|
-
var
|
|
2857
|
-
w.call(this, H, $, O),
|
|
2858
|
+
var z = this._cipher, O = z.blockSize;
|
|
2859
|
+
w.call(this, H, $, O), z.encryptBlock(H, $), this._prevBlock = H.slice($, $ + O);
|
|
2858
2860
|
}
|
|
2859
2861
|
}), F.Decryptor = F.extend({
|
|
2860
2862
|
/**
|
|
@@ -2868,14 +2870,14 @@ function X() {
|
|
|
2868
2870
|
* mode.processBlock(data.words, offset);
|
|
2869
2871
|
*/
|
|
2870
2872
|
processBlock: function(H, $) {
|
|
2871
|
-
var
|
|
2872
|
-
|
|
2873
|
+
var z = this._cipher, O = z.blockSize, q = H.slice($, $ + O);
|
|
2874
|
+
z.decryptBlock(H, $), w.call(this, H, $, O), this._prevBlock = q;
|
|
2873
2875
|
}
|
|
2874
2876
|
});
|
|
2875
|
-
function w(H, $,
|
|
2877
|
+
function w(H, $, z) {
|
|
2876
2878
|
var O, q = this._iv;
|
|
2877
2879
|
q ? (O = q, this._iv = e) : O = this._prevBlock;
|
|
2878
|
-
for (var U = 0; U <
|
|
2880
|
+
for (var U = 0; U < z; U++)
|
|
2879
2881
|
H[$ + U] ^= O[U];
|
|
2880
2882
|
}
|
|
2881
2883
|
return F;
|
|
@@ -2893,8 +2895,8 @@ function X() {
|
|
|
2893
2895
|
* CryptoJS.pad.Pkcs7.pad(wordArray, 4);
|
|
2894
2896
|
*/
|
|
2895
2897
|
pad: function(F, w) {
|
|
2896
|
-
for (var H = w * 4, $ = H - F.sigBytes % H,
|
|
2897
|
-
O.push(
|
|
2898
|
+
for (var H = w * 4, $ = H - F.sigBytes % H, z = $ << 24 | $ << 16 | $ << 8 | $, O = [], q = 0; q < $; q += 4)
|
|
2899
|
+
O.push(z);
|
|
2898
2900
|
var U = B.create(O, $);
|
|
2899
2901
|
F.concat(U);
|
|
2900
2902
|
},
|
|
@@ -3045,7 +3047,7 @@ function X() {
|
|
|
3045
3047
|
*/
|
|
3046
3048
|
encrypt: function(F, w, H, $) {
|
|
3047
3049
|
$ = this.cfg.extend($);
|
|
3048
|
-
var
|
|
3050
|
+
var z = F.createEncryptor(H, $), O = z.finalize(w), q = z.cfg;
|
|
3049
3051
|
return o.create({
|
|
3050
3052
|
ciphertext: O,
|
|
3051
3053
|
key: H,
|
|
@@ -3076,8 +3078,8 @@ function X() {
|
|
|
3076
3078
|
*/
|
|
3077
3079
|
decrypt: function(F, w, H, $) {
|
|
3078
3080
|
$ = this.cfg.extend($), w = this._parse(w, $.format);
|
|
3079
|
-
var
|
|
3080
|
-
return
|
|
3081
|
+
var z = F.createDecryptor(H, $).finalize(w.ciphertext);
|
|
3082
|
+
return z;
|
|
3081
3083
|
},
|
|
3082
3084
|
/**
|
|
3083
3085
|
* Converts serialized ciphertext to CipherParams,
|
|
@@ -3115,9 +3117,9 @@ function X() {
|
|
|
3115
3117
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);
|
|
3116
3118
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
|
|
3117
3119
|
*/
|
|
3118
|
-
execute: function(F, w, H, $,
|
|
3119
|
-
if ($ || ($ = B.random(64 / 8)),
|
|
3120
|
-
var O = a.create({ keySize: w + H, hasher:
|
|
3120
|
+
execute: function(F, w, H, $, z) {
|
|
3121
|
+
if ($ || ($ = B.random(64 / 8)), z)
|
|
3122
|
+
var O = a.create({ keySize: w + H, hasher: z }).compute(F, $);
|
|
3121
3123
|
else
|
|
3122
3124
|
var O = a.create({ keySize: w + H }).compute(F, $);
|
|
3123
3125
|
var q = B.create(O.words.slice(w), H * 4);
|
|
@@ -3151,10 +3153,10 @@ function X() {
|
|
|
3151
3153
|
*/
|
|
3152
3154
|
encrypt: function(F, w, H, $) {
|
|
3153
3155
|
$ = this.cfg.extend($);
|
|
3154
|
-
var
|
|
3155
|
-
$.iv =
|
|
3156
|
-
var O = D.encrypt.call(this, F, w,
|
|
3157
|
-
return O.mixIn(
|
|
3156
|
+
var z = $.kdf.execute(H, F.keySize, F.ivSize, $.salt, $.hasher);
|
|
3157
|
+
$.iv = z.iv;
|
|
3158
|
+
var O = D.encrypt.call(this, F, w, z.key, $);
|
|
3159
|
+
return O.mixIn(z), O;
|
|
3158
3160
|
},
|
|
3159
3161
|
/**
|
|
3160
3162
|
* Decrypts serialized ciphertext using a password.
|
|
@@ -3175,9 +3177,9 @@ function X() {
|
|
|
3175
3177
|
*/
|
|
3176
3178
|
decrypt: function(F, w, H, $) {
|
|
3177
3179
|
$ = this.cfg.extend($), w = this._parse(w, $.format);
|
|
3178
|
-
var
|
|
3179
|
-
$.iv =
|
|
3180
|
-
var O = D.decrypt.call(this, F, w,
|
|
3180
|
+
var z = $.kdf.execute(H, F.keySize, F.ivSize, w.salt, $.hasher);
|
|
3181
|
+
$.iv = z.iv;
|
|
3182
|
+
var O = D.decrypt.call(this, F, w, z.key, $);
|
|
3181
3183
|
return O;
|
|
3182
3184
|
}
|
|
3183
3185
|
});
|
|
@@ -3187,7 +3189,7 @@ function X() {
|
|
|
3187
3189
|
}
|
|
3188
3190
|
var j0 = { exports: {} }, qt = j0.exports, ee;
|
|
3189
3191
|
function Tt() {
|
|
3190
|
-
return ee || (ee = 1, (function(r,
|
|
3192
|
+
return ee || (ee = 1, (function(r, h) {
|
|
3191
3193
|
(function(t, e, u) {
|
|
3192
3194
|
r.exports = e(M(), X());
|
|
3193
3195
|
})(qt, function(t) {
|
|
@@ -3217,7 +3219,7 @@ function Tt() {
|
|
|
3217
3219
|
}
|
|
3218
3220
|
var G0 = { exports: {} }, Mt = G0.exports, te;
|
|
3219
3221
|
function Nt() {
|
|
3220
|
-
return te || (te = 1, (function(r,
|
|
3222
|
+
return te || (te = 1, (function(r, h) {
|
|
3221
3223
|
(function(t, e, u) {
|
|
3222
3224
|
r.exports = e(M(), X());
|
|
3223
3225
|
})(Mt, function(t) {
|
|
@@ -3239,7 +3241,7 @@ function Nt() {
|
|
|
3239
3241
|
}
|
|
3240
3242
|
var K0 = { exports: {} }, Ut = K0.exports, xe;
|
|
3241
3243
|
function jt() {
|
|
3242
|
-
return xe || (xe = 1, (function(r,
|
|
3244
|
+
return xe || (xe = 1, (function(r, h) {
|
|
3243
3245
|
(function(t, e, u) {
|
|
3244
3246
|
r.exports = e(M(), X());
|
|
3245
3247
|
})(Ut, function(t) {
|
|
@@ -3273,7 +3275,7 @@ function jt() {
|
|
|
3273
3275
|
}
|
|
3274
3276
|
var X0 = { exports: {} }, Gt = X0.exports, ne;
|
|
3275
3277
|
function Kt() {
|
|
3276
|
-
return ne || (ne = 1, (function(r,
|
|
3278
|
+
return ne || (ne = 1, (function(r, h) {
|
|
3277
3279
|
(function(t, e, u) {
|
|
3278
3280
|
r.exports = e(M(), X());
|
|
3279
3281
|
})(Gt, function(t) {
|
|
@@ -3293,7 +3295,7 @@ function Kt() {
|
|
|
3293
3295
|
}
|
|
3294
3296
|
var Y0 = { exports: {} }, Xt = Y0.exports, ae;
|
|
3295
3297
|
function Yt() {
|
|
3296
|
-
return ae || (ae = 1, (function(r,
|
|
3298
|
+
return ae || (ae = 1, (function(r, h) {
|
|
3297
3299
|
(function(t, e, u) {
|
|
3298
3300
|
r.exports = e(M(), X());
|
|
3299
3301
|
})(Xt, function(t) {
|
|
@@ -3314,7 +3316,7 @@ function Yt() {
|
|
|
3314
3316
|
}
|
|
3315
3317
|
var Z0 = { exports: {} }, Zt = Z0.exports, oe;
|
|
3316
3318
|
function Qt() {
|
|
3317
|
-
return oe || (oe = 1, (function(r,
|
|
3319
|
+
return oe || (oe = 1, (function(r, h) {
|
|
3318
3320
|
(function(t, e, u) {
|
|
3319
3321
|
r.exports = e(M(), X());
|
|
3320
3322
|
})(Zt, function(t) {
|
|
@@ -3333,7 +3335,7 @@ function Qt() {
|
|
|
3333
3335
|
}
|
|
3334
3336
|
var Q0 = { exports: {} }, Vt = Q0.exports, ie;
|
|
3335
3337
|
function Jt() {
|
|
3336
|
-
return ie || (ie = 1, (function(r,
|
|
3338
|
+
return ie || (ie = 1, (function(r, h) {
|
|
3337
3339
|
(function(t, e, u) {
|
|
3338
3340
|
r.exports = e(M(), X());
|
|
3339
3341
|
})(Vt, function(t) {
|
|
@@ -3352,7 +3354,7 @@ function Jt() {
|
|
|
3352
3354
|
}
|
|
3353
3355
|
var V0 = { exports: {} }, rx = V0.exports, se;
|
|
3354
3356
|
function ex() {
|
|
3355
|
-
return se || (se = 1, (function(r,
|
|
3357
|
+
return se || (se = 1, (function(r, h) {
|
|
3356
3358
|
(function(t, e, u) {
|
|
3357
3359
|
r.exports = e(M(), X());
|
|
3358
3360
|
})(rx, function(t) {
|
|
@@ -3369,7 +3371,7 @@ function ex() {
|
|
|
3369
3371
|
}
|
|
3370
3372
|
var J0 = { exports: {} }, tx = J0.exports, ce;
|
|
3371
3373
|
function xx() {
|
|
3372
|
-
return ce || (ce = 1, (function(r,
|
|
3374
|
+
return ce || (ce = 1, (function(r, h) {
|
|
3373
3375
|
(function(t, e, u) {
|
|
3374
3376
|
r.exports = e(M(), X());
|
|
3375
3377
|
})(tx, function(t) {
|
|
@@ -3391,7 +3393,7 @@ function xx() {
|
|
|
3391
3393
|
}
|
|
3392
3394
|
var rr = { exports: {} }, nx = rr.exports, fe;
|
|
3393
3395
|
function ax() {
|
|
3394
|
-
return fe || (fe = 1, (function(r,
|
|
3396
|
+
return fe || (fe = 1, (function(r, h) {
|
|
3395
3397
|
(function(t, e, u) {
|
|
3396
3398
|
r.exports = e(M(), X());
|
|
3397
3399
|
})(nx, function(t) {
|
|
@@ -3406,7 +3408,7 @@ function ax() {
|
|
|
3406
3408
|
}
|
|
3407
3409
|
var er = { exports: {} }, ox = er.exports, ue;
|
|
3408
3410
|
function ix() {
|
|
3409
|
-
return ue || (ue = 1, (function(r,
|
|
3411
|
+
return ue || (ue = 1, (function(r, h) {
|
|
3410
3412
|
(function(t, e, u) {
|
|
3411
3413
|
r.exports = e(M(), X());
|
|
3412
3414
|
})(ox, function(t) {
|
|
@@ -3453,12 +3455,12 @@ function ix() {
|
|
|
3453
3455
|
}
|
|
3454
3456
|
var tr = { exports: {} }, sx = tr.exports, de;
|
|
3455
3457
|
function cx() {
|
|
3456
|
-
return de || (de = 1, (function(r,
|
|
3458
|
+
return de || (de = 1, (function(r, h) {
|
|
3457
3459
|
(function(t, e, u) {
|
|
3458
3460
|
r.exports = e(M(), i0(), s0(), a0(), X());
|
|
3459
3461
|
})(sx, function(t) {
|
|
3460
3462
|
return (function() {
|
|
3461
|
-
var e = t, u = e.lib, p = u.BlockCipher, m = e.algo, B = [], C = [], x = [], n = [], E = [], a = [], s = [], f = [],
|
|
3463
|
+
var e = t, u = e.lib, p = u.BlockCipher, m = e.algo, B = [], C = [], x = [], n = [], E = [], a = [], s = [], f = [], v = [], l = [];
|
|
3462
3464
|
(function() {
|
|
3463
3465
|
for (var o = [], d = 0; d < 256; d++)
|
|
3464
3466
|
d < 128 ? o[d] = d << 1 : o[d] = d << 1 ^ 283;
|
|
@@ -3468,7 +3470,7 @@ function cx() {
|
|
|
3468
3470
|
var k = o[b], R = o[k], F = o[R], w = o[y] * 257 ^ y * 16843008;
|
|
3469
3471
|
x[b] = w << 24 | w >>> 8, n[b] = w << 16 | w >>> 16, E[b] = w << 8 | w >>> 24, a[b] = w;
|
|
3470
3472
|
var w = F * 16843009 ^ R * 65537 ^ k * 257 ^ b * 16843008;
|
|
3471
|
-
s[y] = w << 24 | w >>> 8, f[y] = w << 16 | w >>> 16,
|
|
3473
|
+
s[y] = w << 24 | w >>> 8, f[y] = w << 16 | w >>> 16, v[y] = w << 8 | w >>> 24, l[y] = w, b ? (b = k ^ o[o[o[F ^ k]]], D ^= o[o[D]]) : b = D = 1;
|
|
3472
3474
|
}
|
|
3473
3475
|
})();
|
|
3474
3476
|
var g = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], i = m.AES = p.extend({
|
|
@@ -3483,7 +3485,7 @@ function cx() {
|
|
|
3483
3485
|
var o = R[F];
|
|
3484
3486
|
else
|
|
3485
3487
|
var o = R[F - 4];
|
|
3486
|
-
H < 4 || F <= 4 ? w[H] = o : w[H] = s[B[o >>> 24]] ^ f[B[o >>> 16 & 255]] ^
|
|
3488
|
+
H < 4 || F <= 4 ? w[H] = o : w[H] = s[B[o >>> 24]] ^ f[B[o >>> 16 & 255]] ^ v[B[o >>> 8 & 255]] ^ l[B[o & 255]];
|
|
3487
3489
|
}
|
|
3488
3490
|
}
|
|
3489
3491
|
},
|
|
@@ -3492,16 +3494,16 @@ function cx() {
|
|
|
3492
3494
|
},
|
|
3493
3495
|
decryptBlock: function(o, d) {
|
|
3494
3496
|
var b = o[d + 1];
|
|
3495
|
-
o[d + 1] = o[d + 3], o[d + 3] = b, this._doCryptBlock(o, d, this._invKeySchedule, s, f,
|
|
3497
|
+
o[d + 1] = o[d + 3], o[d + 3] = b, this._doCryptBlock(o, d, this._invKeySchedule, s, f, v, l, C);
|
|
3496
3498
|
var b = o[d + 1];
|
|
3497
3499
|
o[d + 1] = o[d + 3], o[d + 3] = b;
|
|
3498
3500
|
},
|
|
3499
3501
|
_doCryptBlock: function(o, d, b, D, y, k, R, F) {
|
|
3500
|
-
for (var w = this._nRounds, H = o[d] ^ b[0], $ = o[d + 1] ^ b[1],
|
|
3501
|
-
var T = D[H >>> 24] ^ y[$ >>> 16 & 255] ^ k[
|
|
3502
|
-
H = T, $ = N,
|
|
3502
|
+
for (var w = this._nRounds, H = o[d] ^ b[0], $ = o[d + 1] ^ b[1], z = o[d + 2] ^ b[2], O = o[d + 3] ^ b[3], q = 4, U = 1; U < w; U++) {
|
|
3503
|
+
var T = D[H >>> 24] ^ y[$ >>> 16 & 255] ^ k[z >>> 8 & 255] ^ R[O & 255] ^ b[q++], N = D[$ >>> 24] ^ y[z >>> 16 & 255] ^ k[O >>> 8 & 255] ^ R[H & 255] ^ b[q++], j = D[z >>> 24] ^ y[O >>> 16 & 255] ^ k[H >>> 8 & 255] ^ R[$ & 255] ^ b[q++], S = D[O >>> 24] ^ y[H >>> 16 & 255] ^ k[$ >>> 8 & 255] ^ R[z & 255] ^ b[q++];
|
|
3504
|
+
H = T, $ = N, z = j, O = S;
|
|
3503
3505
|
}
|
|
3504
|
-
var T = (F[H >>> 24] << 24 | F[$ >>> 16 & 255] << 16 | F[
|
|
3506
|
+
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++];
|
|
3505
3507
|
o[d] = T, o[d + 1] = N, o[d + 2] = j, o[d + 3] = S;
|
|
3506
3508
|
},
|
|
3507
3509
|
keySize: 256 / 32
|
|
@@ -3513,7 +3515,7 @@ function cx() {
|
|
|
3513
3515
|
}
|
|
3514
3516
|
var xr = { exports: {} }, fx = xr.exports, le;
|
|
3515
3517
|
function ux() {
|
|
3516
|
-
return le || (le = 1, (function(r,
|
|
3518
|
+
return le || (le = 1, (function(r, h) {
|
|
3517
3519
|
(function(t, e, u) {
|
|
3518
3520
|
r.exports = e(M(), i0(), s0(), a0(), X());
|
|
3519
3521
|
})(fx, function(t) {
|
|
@@ -4186,14 +4188,14 @@ function ux() {
|
|
|
4186
4188
|
this._doCryptBlock(g, i, this._invSubKeys);
|
|
4187
4189
|
},
|
|
4188
4190
|
_doCryptBlock: function(g, i, o) {
|
|
4189
|
-
this._lBlock = g[i], this._rBlock = g[i + 1], f.call(this, 4, 252645135), f.call(this, 16, 65535),
|
|
4191
|
+
this._lBlock = g[i], this._rBlock = g[i + 1], f.call(this, 4, 252645135), f.call(this, 16, 65535), v.call(this, 2, 858993459), v.call(this, 8, 16711935), f.call(this, 1, 1431655765);
|
|
4190
4192
|
for (var d = 0; d < 16; d++) {
|
|
4191
4193
|
for (var b = o[d], D = this._lBlock, y = this._rBlock, k = 0, R = 0; R < 8; R++)
|
|
4192
4194
|
k |= E[R][((y ^ b[R]) & a[R]) >>> 0];
|
|
4193
4195
|
this._lBlock = y, this._rBlock = D ^ k;
|
|
4194
4196
|
}
|
|
4195
4197
|
var F = this._lBlock;
|
|
4196
|
-
this._lBlock = this._rBlock, this._rBlock = F, f.call(this, 1, 1431655765),
|
|
4198
|
+
this._lBlock = this._rBlock, this._rBlock = F, f.call(this, 1, 1431655765), v.call(this, 8, 16711935), v.call(this, 2, 858993459), f.call(this, 16, 65535), f.call(this, 4, 252645135), g[i] = this._lBlock, g[i + 1] = this._rBlock;
|
|
4197
4199
|
},
|
|
4198
4200
|
keySize: 64 / 32,
|
|
4199
4201
|
ivSize: 64 / 32,
|
|
@@ -4203,7 +4205,7 @@ function ux() {
|
|
|
4203
4205
|
var o = (this._lBlock >>> g ^ this._rBlock) & i;
|
|
4204
4206
|
this._rBlock ^= o, this._lBlock ^= o << g;
|
|
4205
4207
|
}
|
|
4206
|
-
function
|
|
4208
|
+
function v(g, i) {
|
|
4207
4209
|
var o = (this._rBlock >>> g ^ this._lBlock) & i;
|
|
4208
4210
|
this._lBlock ^= o, this._rBlock ^= o << g;
|
|
4209
4211
|
}
|
|
@@ -4233,7 +4235,7 @@ function ux() {
|
|
|
4233
4235
|
}
|
|
4234
4236
|
var nr = { exports: {} }, dx = nr.exports, he;
|
|
4235
4237
|
function lx() {
|
|
4236
|
-
return he || (he = 1, (function(r,
|
|
4238
|
+
return he || (he = 1, (function(r, h) {
|
|
4237
4239
|
(function(t, e, u) {
|
|
4238
4240
|
r.exports = e(M(), i0(), s0(), a0(), X());
|
|
4239
4241
|
})(dx, function(t) {
|
|
@@ -4242,11 +4244,11 @@ function lx() {
|
|
|
4242
4244
|
_doReset: function() {
|
|
4243
4245
|
for (var n = this._key, E = n.words, a = n.sigBytes, s = this._S = [], f = 0; f < 256; f++)
|
|
4244
4246
|
s[f] = f;
|
|
4245
|
-
for (var f = 0,
|
|
4247
|
+
for (var f = 0, v = 0; f < 256; f++) {
|
|
4246
4248
|
var l = f % a, g = E[l >>> 2] >>> 24 - l % 4 * 8 & 255;
|
|
4247
|
-
|
|
4249
|
+
v = (v + s[f] + g) % 256;
|
|
4248
4250
|
var i = s[f];
|
|
4249
|
-
s[f] = s[
|
|
4251
|
+
s[f] = s[v], s[v] = i;
|
|
4250
4252
|
}
|
|
4251
4253
|
this._i = this._j = 0;
|
|
4252
4254
|
},
|
|
@@ -4259,8 +4261,8 @@ function lx() {
|
|
|
4259
4261
|
function C() {
|
|
4260
4262
|
for (var n = this._S, E = this._i, a = this._j, s = 0, f = 0; f < 4; f++) {
|
|
4261
4263
|
E = (E + 1) % 256, a = (a + n[E]) % 256;
|
|
4262
|
-
var
|
|
4263
|
-
n[E] = n[a], n[a] =
|
|
4264
|
+
var v = n[E];
|
|
4265
|
+
n[E] = n[a], n[a] = v, s |= n[(n[E] + n[a]) % 256] << 24 - f * 8;
|
|
4264
4266
|
}
|
|
4265
4267
|
return this._i = E, this._j = a, s;
|
|
4266
4268
|
}
|
|
@@ -4287,7 +4289,7 @@ function lx() {
|
|
|
4287
4289
|
}
|
|
4288
4290
|
var ar = { exports: {} }, hx = ar.exports, ve;
|
|
4289
4291
|
function vx() {
|
|
4290
|
-
return ve || (ve = 1, (function(r,
|
|
4292
|
+
return ve || (ve = 1, (function(r, h) {
|
|
4291
4293
|
(function(t, e, u) {
|
|
4292
4294
|
r.exports = e(M(), i0(), s0(), a0(), X());
|
|
4293
4295
|
})(hx, function(t) {
|
|
@@ -4296,7 +4298,7 @@ function vx() {
|
|
|
4296
4298
|
_doReset: function() {
|
|
4297
4299
|
for (var a = this._key.words, s = this.cfg.iv, f = 0; f < 4; f++)
|
|
4298
4300
|
a[f] = (a[f] << 8 | a[f] >>> 24) & 16711935 | (a[f] << 24 | a[f] >>> 8) & 4278255360;
|
|
4299
|
-
var
|
|
4301
|
+
var v = this._X = [
|
|
4300
4302
|
a[0],
|
|
4301
4303
|
a[3] << 16 | a[2] >>> 16,
|
|
4302
4304
|
a[1],
|
|
@@ -4319,7 +4321,7 @@ function vx() {
|
|
|
4319
4321
|
for (var f = 0; f < 4; f++)
|
|
4320
4322
|
E.call(this);
|
|
4321
4323
|
for (var f = 0; f < 8; f++)
|
|
4322
|
-
l[f] ^=
|
|
4324
|
+
l[f] ^= v[f + 4 & 7];
|
|
4323
4325
|
if (s) {
|
|
4324
4326
|
var g = s.words, i = g[0], o = g[1], d = (i << 8 | i >>> 24) & 16711935 | (i << 24 | i >>> 8) & 4278255360, b = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360, D = d >>> 16 | b & 4294901760, y = b << 16 | d & 65535;
|
|
4325
4327
|
l[0] ^= d, l[1] ^= D, l[2] ^= b, l[3] ^= y, l[4] ^= d, l[5] ^= D, l[6] ^= b, l[7] ^= y;
|
|
@@ -4330,8 +4332,8 @@ function vx() {
|
|
|
4330
4332
|
_doProcessBlock: function(a, s) {
|
|
4331
4333
|
var f = this._X;
|
|
4332
4334
|
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;
|
|
4333
|
-
for (var
|
|
4334
|
-
B[
|
|
4335
|
+
for (var v = 0; v < 4; v++)
|
|
4336
|
+
B[v] = (B[v] << 8 | B[v] >>> 24) & 16711935 | (B[v] << 24 | B[v] >>> 8) & 4278255360, a[s + v] ^= B[v];
|
|
4335
4337
|
},
|
|
4336
4338
|
blockSize: 128 / 32,
|
|
4337
4339
|
ivSize: 64 / 32
|
|
@@ -4341,7 +4343,7 @@ function vx() {
|
|
|
4341
4343
|
C[f] = s[f];
|
|
4342
4344
|
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;
|
|
4343
4345
|
for (var f = 0; f < 8; f++) {
|
|
4344
|
-
var
|
|
4346
|
+
var v = a[f] + s[f], l = v & 65535, g = v >>> 16, i = ((l * l >>> 17) + l * g >>> 15) + g * g, o = ((v & 4294901760) * v | 0) + ((v & 65535) * v | 0);
|
|
4345
4347
|
x[f] = i ^ o;
|
|
4346
4348
|
}
|
|
4347
4349
|
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;
|
|
@@ -4353,7 +4355,7 @@ function vx() {
|
|
|
4353
4355
|
}
|
|
4354
4356
|
var or = { exports: {} }, px = or.exports, pe;
|
|
4355
4357
|
function Bx() {
|
|
4356
|
-
return pe || (pe = 1, (function(r,
|
|
4358
|
+
return pe || (pe = 1, (function(r, h) {
|
|
4357
4359
|
(function(t, e, u) {
|
|
4358
4360
|
r.exports = e(M(), i0(), s0(), a0(), X());
|
|
4359
4361
|
})(px, function(t) {
|
|
@@ -4369,7 +4371,7 @@ function Bx() {
|
|
|
4369
4371
|
a[1] << 16 | a[0] >>> 16,
|
|
4370
4372
|
a[3],
|
|
4371
4373
|
a[2] << 16 | a[1] >>> 16
|
|
4372
|
-
],
|
|
4374
|
+
], v = this._C = [
|
|
4373
4375
|
a[2] << 16 | a[2] >>> 16,
|
|
4374
4376
|
a[0] & 4294901760 | a[1] & 65535,
|
|
4375
4377
|
a[3] << 16 | a[3] >>> 16,
|
|
@@ -4383,10 +4385,10 @@ function Bx() {
|
|
|
4383
4385
|
for (var l = 0; l < 4; l++)
|
|
4384
4386
|
E.call(this);
|
|
4385
4387
|
for (var l = 0; l < 8; l++)
|
|
4386
|
-
|
|
4388
|
+
v[l] ^= f[l + 4 & 7];
|
|
4387
4389
|
if (s) {
|
|
4388
4390
|
var g = s.words, i = g[0], o = g[1], d = (i << 8 | i >>> 24) & 16711935 | (i << 24 | i >>> 8) & 4278255360, b = (o << 8 | o >>> 24) & 16711935 | (o << 24 | o >>> 8) & 4278255360, D = d >>> 16 | b & 4294901760, y = b << 16 | d & 65535;
|
|
4389
|
-
|
|
4391
|
+
v[0] ^= d, v[1] ^= D, v[2] ^= b, v[3] ^= y, v[4] ^= d, v[5] ^= D, v[6] ^= b, v[7] ^= y;
|
|
4390
4392
|
for (var l = 0; l < 4; l++)
|
|
4391
4393
|
E.call(this);
|
|
4392
4394
|
}
|
|
@@ -4394,8 +4396,8 @@ function Bx() {
|
|
|
4394
4396
|
_doProcessBlock: function(a, s) {
|
|
4395
4397
|
var f = this._X;
|
|
4396
4398
|
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;
|
|
4397
|
-
for (var
|
|
4398
|
-
B[
|
|
4399
|
+
for (var v = 0; v < 4; v++)
|
|
4400
|
+
B[v] = (B[v] << 8 | B[v] >>> 24) & 16711935 | (B[v] << 24 | B[v] >>> 8) & 4278255360, a[s + v] ^= B[v];
|
|
4399
4401
|
},
|
|
4400
4402
|
blockSize: 128 / 32,
|
|
4401
4403
|
ivSize: 64 / 32
|
|
@@ -4405,7 +4407,7 @@ function Bx() {
|
|
|
4405
4407
|
C[f] = s[f];
|
|
4406
4408
|
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;
|
|
4407
4409
|
for (var f = 0; f < 8; f++) {
|
|
4408
|
-
var
|
|
4410
|
+
var v = a[f] + s[f], l = v & 65535, g = v >>> 16, i = ((l * l >>> 17) + l * g >>> 15) + g * g, o = ((v & 4294901760) * v | 0) + ((v & 65535) * v | 0);
|
|
4409
4411
|
x[f] = i ^ o;
|
|
4410
4412
|
}
|
|
4411
4413
|
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;
|
|
@@ -4417,7 +4419,7 @@ function Bx() {
|
|
|
4417
4419
|
}
|
|
4418
4420
|
var ir = { exports: {} }, Cx = ir.exports, Be;
|
|
4419
4421
|
function Ex() {
|
|
4420
|
-
return Be || (Be = 1, (function(r,
|
|
4422
|
+
return Be || (Be = 1, (function(r, h) {
|
|
4421
4423
|
(function(t, e, u) {
|
|
4422
4424
|
r.exports = e(M(), i0(), s0(), a0(), X());
|
|
4423
4425
|
})(Cx, function(t) {
|
|
@@ -5513,7 +5515,7 @@ function Ex() {
|
|
|
5513
5515
|
D = a(l, d, b), d = D.left, b = D.right, l.sbox[y][k] = d, l.sbox[y][k + 1] = b;
|
|
5514
5516
|
return !0;
|
|
5515
5517
|
}
|
|
5516
|
-
var
|
|
5518
|
+
var v = m.Blowfish = p.extend({
|
|
5517
5519
|
_doReset: function() {
|
|
5518
5520
|
if (this._keyPriorReset !== this._key) {
|
|
5519
5521
|
var l = this._keyPriorReset = this._key, g = l.words, i = l.sigBytes / 4;
|
|
@@ -5532,14 +5534,14 @@ function Ex() {
|
|
|
5532
5534
|
keySize: 128 / 32,
|
|
5533
5535
|
ivSize: 64 / 32
|
|
5534
5536
|
});
|
|
5535
|
-
e.Blowfish = p._createHelper(
|
|
5537
|
+
e.Blowfish = p._createHelper(v);
|
|
5536
5538
|
})(), t.Blowfish;
|
|
5537
5539
|
});
|
|
5538
5540
|
})(ir)), ir.exports;
|
|
5539
5541
|
}
|
|
5540
5542
|
var Ax = _0.exports, Ce;
|
|
5541
5543
|
function Fx() {
|
|
5542
|
-
return Ce || (Ce = 1, (function(r,
|
|
5544
|
+
return Ce || (Ce = 1, (function(r, h) {
|
|
5543
5545
|
(function(t, e, u) {
|
|
5544
5546
|
r.exports = e(M(), fr(), Bt(), Et(), i0(), Dt(), s0(), ye(), Er(), yt(), we(), St(), $t(), Pt(), Ar(), It(), a0(), X(), Tt(), Nt(), jt(), Kt(), Yt(), Qt(), Jt(), ex(), xx(), ax(), ix(), cx(), ux(), lx(), vx(), Bx(), Ex());
|
|
5545
5547
|
})(Ax, function(t) {
|
|
@@ -5562,11 +5564,11 @@ function gx() {
|
|
|
5562
5564
|
};
|
|
5563
5565
|
}
|
|
5564
5566
|
function bx(r) {
|
|
5565
|
-
return `/sdk-workers/${(r.split("/").pop() || r).replace(/\.ts$/, ".js")}?v=1.1.
|
|
5567
|
+
return `/sdk-workers/${(r.split("/").pop() || r).replace(/\.ts$/, ".js")}?v=1.1.149`;
|
|
5566
5568
|
}
|
|
5567
|
-
function mx(r,
|
|
5569
|
+
function mx(r, h) {
|
|
5568
5570
|
const t = bx(r);
|
|
5569
|
-
return new Worker(t, { type: "module", ...
|
|
5571
|
+
return new Worker(t, { type: "module", ...h });
|
|
5570
5572
|
}
|
|
5571
5573
|
const Fr = () => {
|
|
5572
5574
|
try {
|
|
@@ -5581,8 +5583,8 @@ const Fr = () => {
|
|
|
5581
5583
|
}, Ae = /* @__PURE__ */ new Map(), vr = /* @__PURE__ */ new Map();
|
|
5582
5584
|
let _x = 0;
|
|
5583
5585
|
function yx(r) {
|
|
5584
|
-
const
|
|
5585
|
-
if (
|
|
5586
|
+
const h = Ae.get(r);
|
|
5587
|
+
if (h) return h;
|
|
5586
5588
|
const t = mx("./deform.worker.ts");
|
|
5587
5589
|
try {
|
|
5588
5590
|
t.postMessage({ type: "SET_DEBUG", debugRender: Fr() });
|
|
@@ -5633,10 +5635,10 @@ function wx(r) {
|
|
|
5633
5635
|
type: r.type,
|
|
5634
5636
|
blendMode: r.blendMode,
|
|
5635
5637
|
transform: Array.isArray(r.transform) ? [...r.transform] : [],
|
|
5636
|
-
meshPoints: Array.isArray(r.meshPoints) ? r.meshPoints.map((
|
|
5637
|
-
x:
|
|
5638
|
-
y:
|
|
5639
|
-
type:
|
|
5638
|
+
meshPoints: Array.isArray(r.meshPoints) ? r.meshPoints.map((h) => ({
|
|
5639
|
+
x: h.x,
|
|
5640
|
+
y: h.y,
|
|
5641
|
+
type: h.type
|
|
5640
5642
|
})) : [],
|
|
5641
5643
|
bounds: r.bounds ? {
|
|
5642
5644
|
width: r.bounds.width,
|
|
@@ -5659,30 +5661,30 @@ function wx(r) {
|
|
|
5659
5661
|
layerOrder: r.layerOrder,
|
|
5660
5662
|
imagePath: r.imagePath,
|
|
5661
5663
|
vectorMask: r.vectorMask ? {
|
|
5662
|
-
paths: r.vectorMask.paths?.map((
|
|
5663
|
-
open:
|
|
5664
|
-
knots:
|
|
5664
|
+
paths: r.vectorMask.paths?.map((h) => ({
|
|
5665
|
+
open: h.open,
|
|
5666
|
+
knots: h.knots?.map((t) => ({
|
|
5665
5667
|
linked: t.linked,
|
|
5666
5668
|
points: [...t.points]
|
|
5667
5669
|
})),
|
|
5668
|
-
fillRule:
|
|
5669
|
-
operation:
|
|
5670
|
+
fillRule: h.fillRule,
|
|
5671
|
+
operation: h.operation
|
|
5670
5672
|
})),
|
|
5671
|
-
points: r.vectorMask.points?.map((
|
|
5672
|
-
x:
|
|
5673
|
-
y:
|
|
5674
|
-
type:
|
|
5673
|
+
points: r.vectorMask.points?.map((h) => ({
|
|
5674
|
+
x: h.x,
|
|
5675
|
+
y: h.y,
|
|
5676
|
+
type: h.type
|
|
5675
5677
|
})),
|
|
5676
5678
|
invert: r.vectorMask.invert,
|
|
5677
5679
|
notLink: r.vectorMask.notLink,
|
|
5678
5680
|
disable: r.vectorMask.disable,
|
|
5679
5681
|
fillStartsWithAllPixels: r.vectorMask.fillStartsWithAllPixels
|
|
5680
5682
|
} : void 0,
|
|
5681
|
-
filterList: r.filterList ? r.filterList.map((
|
|
5682
|
-
type:
|
|
5683
|
-
enabled:
|
|
5684
|
-
filter:
|
|
5685
|
-
puppetShapeList:
|
|
5683
|
+
filterList: r.filterList ? r.filterList.map((h) => ({
|
|
5684
|
+
type: h.type,
|
|
5685
|
+
enabled: h.enabled,
|
|
5686
|
+
filter: h.filter ? {
|
|
5687
|
+
puppetShapeList: h.filter.puppetShapeList?.map((t) => ({
|
|
5686
5688
|
originalVertexArray: t.originalVertexArray.map((e) => ({
|
|
5687
5689
|
x: e.x,
|
|
5688
5690
|
y: e.y
|
|
@@ -5699,7 +5701,7 @@ function wx(r) {
|
|
|
5699
5701
|
clipping: r.clipping
|
|
5700
5702
|
};
|
|
5701
5703
|
}
|
|
5702
|
-
function kx(r,
|
|
5704
|
+
function kx(r, h, t, e) {
|
|
5703
5705
|
const u = ++_x, p = yx(t);
|
|
5704
5706
|
return performance.now(), (/* @__PURE__ */ new Date()).toISOString(), new Promise((m, B) => {
|
|
5705
5707
|
vr.set(u, {
|
|
@@ -5708,24 +5710,24 @@ function kx(r, v, t, e) {
|
|
|
5708
5710
|
},
|
|
5709
5711
|
reject: B
|
|
5710
5712
|
});
|
|
5711
|
-
const C = wx(
|
|
5713
|
+
const C = wx(h);
|
|
5712
5714
|
p.postMessage({ id: u, designBitmap: r, layerData: C, canvasSize: e }, [
|
|
5713
5715
|
r
|
|
5714
5716
|
]);
|
|
5715
5717
|
});
|
|
5716
5718
|
}
|
|
5717
|
-
async function Sx(r,
|
|
5719
|
+
async function Sx(r, h, t = 0, e, u, p) {
|
|
5718
5720
|
const m = await it(r, u, p);
|
|
5719
5721
|
if (!m || m.width === 0 || m.height === 0)
|
|
5720
5722
|
throw new Error("图片无效:尺寸为 0");
|
|
5721
|
-
return await kx(m,
|
|
5723
|
+
return await kx(m, h, t, e);
|
|
5722
5724
|
}
|
|
5723
|
-
function d0(r,
|
|
5725
|
+
function d0(r, h) {
|
|
5724
5726
|
if (typeof OffscreenCanvas < "u" && typeof document > "u")
|
|
5725
|
-
return new OffscreenCanvas(r,
|
|
5727
|
+
return new OffscreenCanvas(r, h);
|
|
5726
5728
|
if (typeof document < "u") {
|
|
5727
5729
|
const t = document.createElement("canvas");
|
|
5728
|
-
return t.width = r, t.height =
|
|
5730
|
+
return t.width = r, t.height = h, t;
|
|
5729
5731
|
} else
|
|
5730
5732
|
throw new Error("无法创建 canvas:不在 Worker 或主线程环境中");
|
|
5731
5733
|
}
|
|
@@ -5733,13 +5735,13 @@ function A0(r) {
|
|
|
5733
5735
|
return r.getContext("2d");
|
|
5734
5736
|
}
|
|
5735
5737
|
function Fe(r) {
|
|
5736
|
-
const
|
|
5737
|
-
if (!
|
|
5738
|
+
const h = A0(r);
|
|
5739
|
+
if (!h)
|
|
5738
5740
|
throw new Error("无法创建 canvas context");
|
|
5739
|
-
return
|
|
5741
|
+
return h;
|
|
5740
5742
|
}
|
|
5741
5743
|
async function Hx(r) {
|
|
5742
|
-
const
|
|
5744
|
+
const h = performance.now(), t = () => {
|
|
5743
5745
|
try {
|
|
5744
5746
|
if (globalThis.__DEBUG_RENDER__ === !0 || typeof localStorage < "u" && localStorage.getItem("DEBUG_RENDER") === "1") return !0;
|
|
5745
5747
|
} catch {
|
|
@@ -5797,10 +5799,10 @@ async function Hx(r) {
|
|
|
5797
5799
|
url: c.url
|
|
5798
5800
|
}), f.set(c.layerName, c.url));
|
|
5799
5801
|
}
|
|
5800
|
-
const
|
|
5802
|
+
const v = /* @__PURE__ */ new Map();
|
|
5801
5803
|
for (const c of B)
|
|
5802
|
-
|
|
5803
|
-
e("[renderByJson] fabricScreenshotMap:", Array.from(
|
|
5804
|
+
v.set(c.id, c.url);
|
|
5805
|
+
e("[renderByJson] fabricScreenshotMap:", Array.from(v.entries())), e("[renderByJson] psdJson.layerList 结构:", p.layerList?.map((c) => ({
|
|
5804
5806
|
name: c.name,
|
|
5805
5807
|
type: c.type,
|
|
5806
5808
|
id: c.id,
|
|
@@ -5811,28 +5813,28 @@ async function Hx(r) {
|
|
|
5811
5813
|
const _ = c.color || (c.name && ["粉", "白", "绿", "红", "蓝", "黄", "黑", "灰"].includes(c.name) ? c.name : A);
|
|
5812
5814
|
if (c.type === "Layer") {
|
|
5813
5815
|
if (c.imagePath) {
|
|
5814
|
-
const
|
|
5816
|
+
const W = m.find((P) => {
|
|
5815
5817
|
const L = P.sourceName || P.layerName;
|
|
5816
5818
|
return !L || !c.imagePath ? !1 : L === c.imagePath || L.endsWith(c.imagePath) || c.imagePath.endsWith(L);
|
|
5817
5819
|
});
|
|
5818
|
-
|
|
5819
|
-
url:
|
|
5820
|
+
W && (s[c.imagePath] = {
|
|
5821
|
+
url: W.url
|
|
5820
5822
|
});
|
|
5821
5823
|
}
|
|
5822
5824
|
if (c.name) {
|
|
5823
5825
|
if (_) {
|
|
5824
|
-
const
|
|
5826
|
+
const W = `${_}-${c.name}`, P = m.find((L) => {
|
|
5825
5827
|
const I = L.sourceName || L.layerName;
|
|
5826
5828
|
return I ? (I.split("/").pop() || I).replace(/\.(png|jpg|jpeg|gif|webp)$/i, "").startsWith(`${_}-${c.name}`) : !1;
|
|
5827
5829
|
});
|
|
5828
|
-
P && (s[
|
|
5830
|
+
P && (s[W] = {
|
|
5829
5831
|
url: P.url
|
|
5830
5832
|
});
|
|
5831
5833
|
}
|
|
5832
5834
|
if (c.imagePath && c.name) {
|
|
5833
|
-
const
|
|
5835
|
+
const W = c.imagePath.split("/").pop() || c.imagePath, P = m.find((L) => {
|
|
5834
5836
|
const I = L.sourceName || L.layerName;
|
|
5835
|
-
return I ? (I.split("/").pop() || I) ===
|
|
5837
|
+
return I ? (I.split("/").pop() || I) === W : !1;
|
|
5836
5838
|
});
|
|
5837
5839
|
P && (s[c.imagePath] = {
|
|
5838
5840
|
url: P.url
|
|
@@ -5841,28 +5843,28 @@ async function Hx(r) {
|
|
|
5841
5843
|
}
|
|
5842
5844
|
}
|
|
5843
5845
|
if (c.children)
|
|
5844
|
-
for (const
|
|
5845
|
-
|
|
5846
|
+
for (const W of c.children)
|
|
5847
|
+
W && l(W, _);
|
|
5846
5848
|
}
|
|
5847
5849
|
function g(c, A) {
|
|
5848
5850
|
const _ = c.id ?? A;
|
|
5849
5851
|
if (c.type === "Group" && _)
|
|
5850
|
-
if (e(`[renderByJson] processLayer 检查 Group: name="${c.name}", id=${_}, hasFabricScreenshot=${
|
|
5851
|
-
const
|
|
5852
|
-
if (e(`[renderByJson] ✅ 找到匹配的 fabricScreenshot: Group id=${_}, name="${c.name}", url=${
|
|
5852
|
+
if (e(`[renderByJson] processLayer 检查 Group: name="${c.name}", id=${_}, hasFabricScreenshot=${v.has(_)}`), v.has(_)) {
|
|
5853
|
+
const W = v.get(_);
|
|
5854
|
+
if (e(`[renderByJson] ✅ 找到匹配的 fabricScreenshot: Group id=${_}, name="${c.name}", url=${W.substring(0, 50)}...`), c.children) {
|
|
5853
5855
|
e(`[renderByJson] Group "${c.name}" 有 ${c.children.length} 个子图层`);
|
|
5854
5856
|
for (const P of c.children)
|
|
5855
5857
|
if (P && P.isSmartObject === !0) {
|
|
5856
5858
|
const L = P?.name || "";
|
|
5857
|
-
e(`[renderByJson] 找到智能对象: name="${L}"`), L && !s[L] && (s[L] = {}), L ? (s[L].designImage =
|
|
5859
|
+
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");
|
|
5858
5860
|
}
|
|
5859
5861
|
} else
|
|
5860
5862
|
u(`[renderByJson] ⚠️ Group id=${_} 没有 children`);
|
|
5861
5863
|
} else
|
|
5862
5864
|
e(`[renderByJson] ⚠️ Group id=${_}, name="${c.name}" 没有匹配的 fabricScreenshot`);
|
|
5863
5865
|
if (c.children)
|
|
5864
|
-
for (const
|
|
5865
|
-
|
|
5866
|
+
for (const W of c.children)
|
|
5867
|
+
W && g(W, _);
|
|
5866
5868
|
}
|
|
5867
5869
|
if (p.layerList)
|
|
5868
5870
|
for (const c of p.layerList)
|
|
@@ -5889,14 +5891,14 @@ async function Hx(r) {
|
|
|
5889
5891
|
const A = c.url.split("/").pop() || c.url;
|
|
5890
5892
|
if (s[A])
|
|
5891
5893
|
return s[A];
|
|
5892
|
-
const _ = m.find((
|
|
5893
|
-
const P =
|
|
5894
|
+
const _ = m.find((W) => {
|
|
5895
|
+
const P = W.sourceName || W.layerName;
|
|
5894
5896
|
return !P || !c.url ? !1 : (P.split("/").pop() || P) === A || P === c.url || P.endsWith(c.url) || c.url.endsWith(P);
|
|
5895
5897
|
});
|
|
5896
5898
|
if (_) {
|
|
5897
|
-
const
|
|
5898
|
-
if (
|
|
5899
|
-
return s[
|
|
5899
|
+
const W = _.sourceName || _.layerName;
|
|
5900
|
+
if (W)
|
|
5901
|
+
return s[W] || { url: _.url };
|
|
5900
5902
|
}
|
|
5901
5903
|
}
|
|
5902
5904
|
};
|
|
@@ -5907,7 +5909,7 @@ async function Hx(r) {
|
|
|
5907
5909
|
u(`图层 "${A.name}" 没有匹配的 material,跳过`);
|
|
5908
5910
|
continue;
|
|
5909
5911
|
}
|
|
5910
|
-
const
|
|
5912
|
+
const W = _.url, P = a(W);
|
|
5911
5913
|
if (!P) {
|
|
5912
5914
|
u(`图层 "${A.name}" 没有有效的 url,跳过`);
|
|
5913
5915
|
continue;
|
|
@@ -5921,8 +5923,8 @@ async function Hx(r) {
|
|
|
5921
5923
|
} else if (A.type === F0.Group) {
|
|
5922
5924
|
if (!A.smartObjects || A.smartObjects.length === 0)
|
|
5923
5925
|
continue;
|
|
5924
|
-
for (let
|
|
5925
|
-
const P = A.smartObjects[
|
|
5926
|
+
for (let W = 0; W < A.smartObjects.length; W++) {
|
|
5927
|
+
const P = A.smartObjects[W];
|
|
5926
5928
|
if (!P || !P.name)
|
|
5927
5929
|
continue;
|
|
5928
5930
|
let L = s[P.name] ?? _;
|
|
@@ -5948,9 +5950,9 @@ async function Hx(r) {
|
|
|
5948
5950
|
continue;
|
|
5949
5951
|
I = G;
|
|
5950
5952
|
}
|
|
5951
|
-
const Z = (A.partId ?? A.id) * 100 +
|
|
5953
|
+
const Z = (A.partId ?? A.id) * 100 + W, Q = Qe(Ze(P)), o0 = { width: b, height: D };
|
|
5952
5954
|
R.push({
|
|
5953
|
-
index: c +
|
|
5955
|
+
index: c + W * 0.01,
|
|
5954
5956
|
type: "group",
|
|
5955
5957
|
partData: A,
|
|
5956
5958
|
smartObject: P,
|
|
@@ -5971,72 +5973,72 @@ async function Hx(r) {
|
|
|
5971
5973
|
task: c,
|
|
5972
5974
|
imageBitmap: w[A]
|
|
5973
5975
|
})).sort((c, A) => {
|
|
5974
|
-
const _ = c.task.type === "group" && c.task.smartObject?.layerOrder !== void 0 ? c.task.smartObject.layerOrder : c.task.partData.layerOrder ?? c.task.index,
|
|
5975
|
-
return _ -
|
|
5976
|
+
const _ = 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;
|
|
5977
|
+
return _ - W;
|
|
5976
5978
|
});
|
|
5977
|
-
let $ = d0(b, D),
|
|
5979
|
+
let $ = d0(b, D), z = A0($), O = !1, q = "normal";
|
|
5978
5980
|
for (let c = 0; c < H.length; c++) {
|
|
5979
5981
|
const { task: A, imageBitmap: _ } = H[c];
|
|
5980
5982
|
if (!_) {
|
|
5981
5983
|
u(`[renderByJson] 图层 "${A.partData.name}" 没有 imageBitmap,跳过`);
|
|
5982
5984
|
continue;
|
|
5983
5985
|
}
|
|
5984
|
-
const { partData:
|
|
5986
|
+
const { partData: W } = A, P = W.bounds;
|
|
5985
5987
|
let L;
|
|
5986
|
-
A.type === "group" && A.smartObject ? L = A.smartObject.opacity ??
|
|
5988
|
+
A.type === "group" && A.smartObject ? L = A.smartObject.opacity ?? W.opacity : L = W.opacity, (typeof L != "number" || isNaN(L)) && (L = 1);
|
|
5987
5989
|
let I;
|
|
5988
|
-
A.type === "group" && A.smartObject ? I = A.smartObject.clipping ??
|
|
5990
|
+
A.type === "group" && A.smartObject ? I = A.smartObject.clipping ?? W.clipping === !0 : I = W.clipping === !0;
|
|
5989
5991
|
const Z = H[c + 1];
|
|
5990
5992
|
let Q = !1;
|
|
5991
5993
|
if (Z) {
|
|
5992
5994
|
const K = Z.task.partData;
|
|
5993
5995
|
Z.task.type === "group" && Z.task.smartObject ? Q = Z.task.smartObject.clipping ?? K.clipping === !0 : Q = K.clipping === !0;
|
|
5994
5996
|
}
|
|
5995
|
-
const o0 = A.type === "group" && A.smartObject && A.smartObject.name ? A.smartObject.name :
|
|
5997
|
+
const o0 = A.type === "group" && A.smartObject && A.smartObject.name ? A.smartObject.name : W?.name || "未命名图层";
|
|
5996
5998
|
if (e(`[renderByJson] 绘制图层 "${o0}"`, {
|
|
5997
5999
|
type: A.type,
|
|
5998
6000
|
bitmapSize: { width: _.width, height: _.height },
|
|
5999
6001
|
bounds: P,
|
|
6000
6002
|
hasMask: !!A.maskData,
|
|
6001
|
-
blendMode:
|
|
6003
|
+
blendMode: W.blendMode,
|
|
6002
6004
|
opacity: L,
|
|
6003
6005
|
clipping: I
|
|
6004
6006
|
}), !I && Q) {
|
|
6005
|
-
if (O = !0, q =
|
|
6006
|
-
if (
|
|
6007
|
+
if (O = !0, q = W.blendMode || "normal", z) {
|
|
6008
|
+
if (z.clearRect(0, 0, b, D), z.globalCompositeOperation = "source-over", z.globalAlpha = L, A.type === "group" && A.smartObject)
|
|
6007
6009
|
if (A.maskData) {
|
|
6008
6010
|
const K = d0(b, D), G = A0(K);
|
|
6009
|
-
G && (G.drawImage(_, 0, 0), dr(G, A.maskData),
|
|
6011
|
+
G && (G.drawImage(_, 0, 0), dr(G, A.maskData), z.drawImage(K, 0, 0));
|
|
6010
6012
|
} else
|
|
6011
|
-
|
|
6012
|
-
else A.type === "layer" && (P ?
|
|
6013
|
+
z.drawImage(_, 0, 0);
|
|
6014
|
+
else A.type === "layer" && (P ? z.drawImage(
|
|
6013
6015
|
_,
|
|
6014
6016
|
P.left,
|
|
6015
6017
|
P.top,
|
|
6016
6018
|
P.width,
|
|
6017
6019
|
P.height
|
|
6018
|
-
) :
|
|
6019
|
-
|
|
6020
|
+
) : z.drawImage(_, 0, 0));
|
|
6021
|
+
z.globalAlpha = 1;
|
|
6020
6022
|
}
|
|
6021
6023
|
} else if (I) {
|
|
6022
|
-
if (
|
|
6023
|
-
if (
|
|
6024
|
+
if (z) {
|
|
6025
|
+
if (z.globalCompositeOperation = "source-atop", z.globalAlpha = L, A.type === "group" && A.smartObject)
|
|
6024
6026
|
if (A.maskData) {
|
|
6025
6027
|
const K = d0(b, D), G = A0(K);
|
|
6026
|
-
G && (G.drawImage(_, 0, 0), dr(G, A.maskData),
|
|
6028
|
+
G && (G.drawImage(_, 0, 0), dr(G, A.maskData), z.drawImage(K, 0, 0));
|
|
6027
6029
|
} else
|
|
6028
|
-
|
|
6029
|
-
else A.type === "layer" && (P ?
|
|
6030
|
+
z.drawImage(_, 0, 0);
|
|
6031
|
+
else A.type === "layer" && (P ? z.drawImage(
|
|
6030
6032
|
_,
|
|
6031
6033
|
P.left,
|
|
6032
6034
|
P.top,
|
|
6033
6035
|
P.width,
|
|
6034
6036
|
P.height
|
|
6035
|
-
) :
|
|
6036
|
-
|
|
6037
|
+
) : z.drawImage(_, 0, 0));
|
|
6038
|
+
z.globalAlpha = 1, z.globalCompositeOperation = "source-over";
|
|
6037
6039
|
}
|
|
6038
6040
|
} else {
|
|
6039
|
-
if (k.globalCompositeOperation =
|
|
6041
|
+
if (k.globalCompositeOperation = Wr(W.blendMode), k.globalAlpha = L, A.type === "group" && A.smartObject)
|
|
6040
6042
|
if (A.maskData) {
|
|
6041
6043
|
const K = d0(b, D), G = A0(K);
|
|
6042
6044
|
G && (G.drawImage(_, 0, 0), dr(G, A.maskData), k.drawImage(K, 0, 0));
|
|
@@ -6051,9 +6053,9 @@ async function Hx(r) {
|
|
|
6051
6053
|
) : k.drawImage(_, 0, 0));
|
|
6052
6054
|
k.globalAlpha = 1, k.globalCompositeOperation = "source-over";
|
|
6053
6055
|
}
|
|
6054
|
-
O && !Q && (k.globalCompositeOperation =
|
|
6056
|
+
O && !Q && (k.globalCompositeOperation = Wr(q), k.drawImage($, 0, 0), k.globalCompositeOperation = "source-over", O = !1);
|
|
6055
6057
|
}
|
|
6056
|
-
$ = null,
|
|
6058
|
+
$ = null, z = null;
|
|
6057
6059
|
let U = y, T = b, N = D;
|
|
6058
6060
|
if (C !== void 0 || x !== void 0) {
|
|
6059
6061
|
if (C !== void 0 && x !== void 0)
|
|
@@ -6069,7 +6071,7 @@ async function Hx(r) {
|
|
|
6069
6071
|
const c = Fe(U);
|
|
6070
6072
|
c.imageSmoothingEnabled = !0, c.imageSmoothingQuality = "high", c.drawImage(y, 0, 0, b, D, 0, 0, T, N), e(`[renderByJson] 已缩放结果: ${b}x${D} -> ${T}x${N}`);
|
|
6071
6073
|
}
|
|
6072
|
-
const S = performance.now() -
|
|
6074
|
+
const S = performance.now() - h;
|
|
6073
6075
|
return e(`[renderByJson] 绘制完成,总渲染时间: ${Math.round(S)}ms`), {
|
|
6074
6076
|
canvas: U,
|
|
6075
6077
|
width: T,
|
|
@@ -6081,9 +6083,9 @@ const $x = async (r) => {
|
|
|
6081
6083
|
return t ? createImageBitmap(t) : null;
|
|
6082
6084
|
};
|
|
6083
6085
|
self.onmessage = async (r) => {
|
|
6084
|
-
const
|
|
6085
|
-
if (
|
|
6086
|
-
const e =
|
|
6086
|
+
const h = r.data;
|
|
6087
|
+
if (h && typeof h == "object" && "type" in h && h.type === "SET_LICENSE") {
|
|
6088
|
+
const e = h;
|
|
6087
6089
|
Dx({
|
|
6088
6090
|
token: e.licenseToken,
|
|
6089
6091
|
apiUrl: e.licenseApiUrl,
|
|
@@ -6092,7 +6094,7 @@ self.onmessage = async (r) => {
|
|
|
6092
6094
|
});
|
|
6093
6095
|
return;
|
|
6094
6096
|
}
|
|
6095
|
-
const t =
|
|
6097
|
+
const t = h;
|
|
6096
6098
|
try {
|
|
6097
6099
|
const e = await $x(t.renderData);
|
|
6098
6100
|
self.postMessage({ id: t.id, bitmap: e }, e ? [e] : []);
|