@jieyin/editor-sdk-test 1.1.161 → 1.1.162
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 +4386 -4344
- package/dist/renderWorker.js +138 -140
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/renderWorker.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var g0 = /* @__PURE__ */ ((r) => (r[r.Group = 0] = "Group", r[r.Layer = 1] = "Layer", r))(g0 || {});
|
|
2
|
-
function
|
|
2
|
+
function Ye(r) {
|
|
3
3
|
let h = r;
|
|
4
4
|
return () => {
|
|
5
5
|
const t = h;
|
|
@@ -65,7 +65,7 @@ function Ve(r, h, t, e) {
|
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
67
|
function Je(r, h) {
|
|
68
|
-
const t = new Map(h.parts.map((u) => [u.name, u.id])), e =
|
|
68
|
+
const t = new Map(h.parts.map((u) => [u.name, u.id])), e = Ye(h.defaultIdStart ?? 1);
|
|
69
69
|
return {
|
|
70
70
|
parts: h.parts,
|
|
71
71
|
models: r.map((u) => {
|
|
@@ -304,12 +304,18 @@ const t0 = Ar;
|
|
|
304
304
|
const t = Ar, e = r();
|
|
305
305
|
for (; ; )
|
|
306
306
|
try {
|
|
307
|
-
if (-parseInt(t(
|
|
307
|
+
if (-parseInt(t(191)) / 1 * (parseInt(t(202)) / 2) + parseInt(t(184)) / 3 + parseInt(t(182)) / 4 * (parseInt(t(196)) / 5) + -parseInt(t(170)) / 6 + parseInt(t(186)) / 7 * (-parseInt(t(198)) / 8) + -parseInt(t(193)) / 9 + parseInt(t(183)) / 10 * (parseInt(t(189)) / 11) === h) break;
|
|
308
308
|
e.push(e.shift());
|
|
309
309
|
} catch {
|
|
310
310
|
e.push(e.shift());
|
|
311
311
|
}
|
|
312
|
-
})(cr,
|
|
312
|
+
})(cr, 1554940 + -4 * -395589 + -2290343);
|
|
313
|
+
function cr() {
|
|
314
|
+
const r = ["eItem", "bind", "re_ti", "FileT", "isDat", "fileT", "data", "inclu", "n (fu", "isBro", "128SLFsXt", "32727170nYpbSf", "1385631goLKiB", "tion", "1076131sIzItM", "wser", "bUrl", "11ZGpjmv", "ctor(", "1jfmAnc", "fetch", "11932389GnBjtJ", "toStr", "error", "2000KhuCrn", "token", "8hqqlfv", "es_in", "des", "__pro", "797630zceZIv", "getIt", "efres", "6132432KKCTXS", "file_"];
|
|
315
|
+
return cr = function() {
|
|
316
|
+
return r;
|
|
317
|
+
}, cr();
|
|
318
|
+
}
|
|
313
319
|
const A0 = /* @__PURE__ */ (function() {
|
|
314
320
|
let r = !0;
|
|
315
321
|
return function(h, t) {
|
|
@@ -326,88 +332,81 @@ const A0 = /* @__PURE__ */ (function() {
|
|
|
326
332
|
const r = Ar;
|
|
327
333
|
let h;
|
|
328
334
|
try {
|
|
329
|
-
h = Function("
|
|
335
|
+
h = Function("retur" + r(180) + "nction() " + ("{}.constru" + r(190) + '"return this")( )') + ");")();
|
|
330
336
|
} catch {
|
|
331
337
|
h = window;
|
|
332
338
|
}
|
|
333
|
-
const t = h.console = h.console || {}, e = ["log", "warn",
|
|
334
|
-
for (let u =
|
|
335
|
-
const p = A0[
|
|
336
|
-
p[
|
|
339
|
+
const t = h.console = h.console || {}, e = ["log", "warn", "info", r(195), "excep" + r(185), "table", "trace"];
|
|
340
|
+
for (let u = -5 * 1943 + 5 * -1922 + 19325; u < e.length; u++) {
|
|
341
|
+
const p = A0.constructor.prototype[r(173)](A0), m = e[u], B = t[m] || p;
|
|
342
|
+
p[r(201) + "to__"] = A0.bind(A0), p.toString = B[r(194) + "ing"].bind(B), t[m] = p;
|
|
337
343
|
}
|
|
338
344
|
});
|
|
339
345
|
tt();
|
|
340
|
-
const Cr = "
|
|
346
|
+
const Cr = t0(171) + "token", Er = t0(171) + "token_expi" + t0(174) + "me", xt = (-5702 + 2 * 2881) * 1e3;
|
|
341
347
|
function pr() {
|
|
342
|
-
return v0[t0(
|
|
348
|
+
return v0[t0(203) + "em"](Cr);
|
|
343
349
|
}
|
|
344
350
|
function nt(r = xt) {
|
|
345
|
-
const h = t0;
|
|
346
351
|
if (!pr()) return !0;
|
|
347
|
-
const
|
|
348
|
-
if (!
|
|
349
|
-
const
|
|
350
|
-
return Date.now() + r >
|
|
352
|
+
const t = v0.getItem(Er);
|
|
353
|
+
if (!t) return !1;
|
|
354
|
+
const e = Number(t);
|
|
355
|
+
return Date.now() + r > e;
|
|
351
356
|
}
|
|
352
357
|
function at(r, h) {
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
v0.setItem(Er, String(e));
|
|
358
|
+
if (v0.setItem(Cr, r), typeof h == "number" && h > 0) {
|
|
359
|
+
const t = Date.now() + h * 1e3;
|
|
360
|
+
v0.setItem(Er, String(t));
|
|
357
361
|
}
|
|
358
362
|
}
|
|
359
363
|
function ot() {
|
|
360
|
-
|
|
364
|
+
const r = t0;
|
|
365
|
+
v0.removeItem(Cr), v0["remov" + r(172)](Er);
|
|
361
366
|
}
|
|
362
|
-
async function
|
|
363
|
-
const h = await r(),
|
|
364
|
-
return
|
|
367
|
+
async function Ir(r) {
|
|
368
|
+
const h = t0, t = await r(), e = t?.[h(178)]?.data;
|
|
369
|
+
return t?.data?.code === 200 && e?.[h(171) + "token"] ? (at(e["file_" + h(197)], e["expir" + h(199)]), e[h(171) + "token"]) : null;
|
|
365
370
|
}
|
|
366
371
|
let it = null;
|
|
367
|
-
function
|
|
368
|
-
return
|
|
369
|
-
}
|
|
370
|
-
function cr() {
|
|
371
|
-
const r = ["pathn", "nstru", "15568JVNmzu", "ructo", "9IWgUwd", "n() ", "ram", "_expi", "isBlo", "remov", "to__", "oken", "getIt", "fetch", "3hNRpqi", "6559640uMaPZc", "ing", "nctio", "671905tiyrVH", "{}.co", "10202bBzKxX", "fileT", "now", "1218150XmfcNU", "error", "info", "inclu", "1358385Ghiiad", "token", "efres", "bind", "statu", "rn th", "123YJCNrc", "1232456cduqke"];
|
|
372
|
-
return cr = function() {
|
|
373
|
-
return r;
|
|
374
|
-
}, cr();
|
|
375
|
-
}
|
|
376
|
-
function Ir() {
|
|
377
|
-
return fr.isBrowser() ? it : null;
|
|
372
|
+
function Wr() {
|
|
373
|
+
return fr[t0(181) + "wser"]() ? it : null;
|
|
378
374
|
}
|
|
379
375
|
async function be() {
|
|
380
376
|
const r = t0;
|
|
381
|
-
if (!fr
|
|
377
|
+
if (!fr["isBro" + r(187)]()) return pr();
|
|
382
378
|
const h = pr();
|
|
383
379
|
if (h && !nt()) return h;
|
|
384
380
|
try {
|
|
385
|
-
const t = await
|
|
386
|
-
if (h && t?.["fetchFileTokenR" + r(
|
|
387
|
-
const e = await
|
|
381
|
+
const t = await Wr();
|
|
382
|
+
if (h && t?.["fetchFileTokenR" + r(169) + "h"]) {
|
|
383
|
+
const e = await Ir(t["fetchFileTokenR" + r(169) + "h"]);
|
|
388
384
|
if (e) return e;
|
|
389
385
|
}
|
|
390
386
|
} catch {
|
|
391
387
|
}
|
|
392
388
|
try {
|
|
393
|
-
const t =
|
|
394
|
-
return t?.[
|
|
389
|
+
const t = Wr();
|
|
390
|
+
return t?.[r(192) + r(175) + "oken"] ? await Ir(t["fetch" + r(175) + "oken"]) : null;
|
|
395
391
|
} catch {
|
|
396
392
|
return null;
|
|
397
393
|
}
|
|
398
394
|
}
|
|
399
395
|
function me(r) {
|
|
400
396
|
const h = t0;
|
|
401
|
-
if (!r || h0
|
|
397
|
+
if (!r || h0[h(176) + "aUrl"](r) || h0["isBlo" + h(188)](r)) return !1;
|
|
402
398
|
const t = h0.parse(r);
|
|
403
|
-
return t ? t
|
|
399
|
+
return t ? t.pathname.includes("/files/") && !h0.hasParam(r, "fileToken") : r.includes("/files/") && !r[h(179) + h(200)]("fileToken=");
|
|
404
400
|
}
|
|
405
401
|
function _e(r, h) {
|
|
406
402
|
return !h || !me(r) ? r : h0.addParam(r, "fileToken", h);
|
|
407
403
|
}
|
|
404
|
+
function Ar(r, h) {
|
|
405
|
+
return r = r - (690 + -2 * -4561 + -1 * 9643), cr()[r];
|
|
406
|
+
}
|
|
408
407
|
function st(r) {
|
|
409
408
|
const h = t0;
|
|
410
|
-
return h0
|
|
409
|
+
return h0.removeParam(r, h(177) + "oken");
|
|
411
410
|
}
|
|
412
411
|
async function ct(r) {
|
|
413
412
|
if (!me(r)) return r;
|
|
@@ -415,13 +414,12 @@ async function ct(r) {
|
|
|
415
414
|
return _e(r, h);
|
|
416
415
|
}
|
|
417
416
|
async function ye(r, h) {
|
|
418
|
-
const t = t0;
|
|
419
417
|
if (!fr.isBrowser()) return fetch(r, h);
|
|
420
|
-
const
|
|
421
|
-
if (
|
|
418
|
+
const t = st(r), e = await ct(t), u = await fetch(e, h);
|
|
419
|
+
if (u.status !== 53 + 11 * -839 + 9577 * 1) return u;
|
|
422
420
|
ot();
|
|
423
|
-
const
|
|
424
|
-
return fetch(
|
|
421
|
+
const p = await be(), m = _e(t, p);
|
|
422
|
+
return fetch(m, h);
|
|
425
423
|
}
|
|
426
424
|
const we = (r, h) => {
|
|
427
425
|
if (!r) return r;
|
|
@@ -1695,7 +1693,7 @@ function ke() {
|
|
|
1695
1693
|
});
|
|
1696
1694
|
})(z0)), z0.exports;
|
|
1697
1695
|
}
|
|
1698
|
-
var
|
|
1696
|
+
var I0 = { exports: {} }, kt = I0.exports, Kr;
|
|
1699
1697
|
function Fr() {
|
|
1700
1698
|
return Kr || (Kr = 1, (function(r, h) {
|
|
1701
1699
|
(function(t, e) {
|
|
@@ -1745,9 +1743,9 @@ function Fr() {
|
|
|
1745
1743
|
u.SHA256 = B._createHelper(a), u.HmacSHA256 = B._createHmacHelper(a);
|
|
1746
1744
|
})(Math), t.SHA256;
|
|
1747
1745
|
});
|
|
1748
|
-
})(
|
|
1746
|
+
})(I0)), I0.exports;
|
|
1749
1747
|
}
|
|
1750
|
-
var
|
|
1748
|
+
var W0 = { exports: {} }, St = W0.exports, Xr;
|
|
1751
1749
|
function Ht() {
|
|
1752
1750
|
return Xr || (Xr = 1, (function(r, h) {
|
|
1753
1751
|
(function(t, e, u) {
|
|
@@ -1775,11 +1773,11 @@ function Ht() {
|
|
|
1775
1773
|
e.SHA224 = B._createHelper(C), e.HmacSHA224 = B._createHmacHelper(C);
|
|
1776
1774
|
})(), t.SHA224;
|
|
1777
1775
|
});
|
|
1778
|
-
})(
|
|
1776
|
+
})(W0)), W0.exports;
|
|
1779
1777
|
}
|
|
1780
|
-
var L0 = { exports: {} }, $t = L0.exports,
|
|
1778
|
+
var L0 = { exports: {} }, $t = L0.exports, Zr;
|
|
1781
1779
|
function Se() {
|
|
1782
|
-
return
|
|
1780
|
+
return Zr || (Zr = 1, (function(r, h) {
|
|
1783
1781
|
(function(t, e, u) {
|
|
1784
1782
|
r.exports = e(M(), ur());
|
|
1785
1783
|
})($t, function(t) {
|
|
@@ -1888,18 +1886,18 @@ function Se() {
|
|
|
1888
1886
|
]);
|
|
1889
1887
|
},
|
|
1890
1888
|
_doProcessBlock: function(f, v) {
|
|
1891
|
-
for (var l = this._hash.words, D = l[0], i = l[1], o = l[2], d = l[3], b = l[4], g = l[5], y = l[6], k = l[7], R = D.high, F = D.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 = g.high, j = g.low, S = y.high, c = y.low, A = k.high, _ = k.low,
|
|
1889
|
+
for (var l = this._hash.words, D = l[0], i = l[1], o = l[2], d = l[3], b = l[4], g = l[5], y = l[6], k = l[7], R = D.high, F = D.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 = g.high, j = g.low, S = y.high, c = y.low, A = k.high, _ = k.low, I = R, P = F, L = w, W = H, Y = $, Q = z, o0 = O, K = q, G = U, Z = T, r0 = N, f0 = j, D0 = S, p0 = c, dr = A, B0 = _, e0 = 0; e0 < 80; e0++) {
|
|
1892
1890
|
var J, x0, b0 = a[e0];
|
|
1893
1891
|
if (e0 < 16)
|
|
1894
1892
|
x0 = b0.high = f[v + e0 * 2] | 0, J = b0.low = f[v + e0 * 2 + 1] | 0;
|
|
1895
1893
|
else {
|
|
1896
|
-
var br = a[e0 - 15], u0 = br.high, C0 = br.low,
|
|
1897
|
-
J = mr + qe, x0 =
|
|
1894
|
+
var br = a[e0 - 15], u0 = br.high, C0 = br.low, We = (u0 >>> 1 | C0 << 31) ^ (u0 >>> 8 | C0 << 24) ^ u0 >>> 7, mr = (C0 >>> 1 | u0 << 31) ^ (C0 >>> 8 | u0 << 24) ^ (C0 >>> 7 | u0 << 25), _r = a[e0 - 2], d0 = _r.high, E0 = _r.low, Le = (d0 >>> 19 | E0 << 13) ^ (d0 << 3 | E0 >>> 29) ^ d0 >>> 6, yr = (E0 >>> 19 | d0 << 13) ^ (E0 << 3 | d0 >>> 29) ^ (E0 >>> 6 | d0 << 26), wr = a[e0 - 7], Oe = wr.high, qe = wr.low, kr = a[e0 - 16], Te = kr.high, Sr = kr.low;
|
|
1895
|
+
J = mr + qe, x0 = We + Oe + (J >>> 0 < mr >>> 0 ? 1 : 0), J = J + yr, x0 = x0 + Le + (J >>> 0 < yr >>> 0 ? 1 : 0), J = J + Sr, x0 = x0 + Te + (J >>> 0 < Sr >>> 0 ? 1 : 0), b0.high = x0, b0.low = J;
|
|
1898
1896
|
}
|
|
1899
|
-
var Me = G & r0 ^ ~G & D0, Hr =
|
|
1900
|
-
dr = D0, B0 = p0, D0 = r0, p0 = f0, r0 = G, f0 =
|
|
1897
|
+
var Me = G & r0 ^ ~G & D0, Hr = Z & f0 ^ ~Z & p0, Ne = I & L ^ I & Y ^ L & Y, Ue = P & W ^ P & Q ^ W & Q, je = (I >>> 28 | P << 4) ^ (I << 30 | P >>> 2) ^ (I << 25 | P >>> 7), $r = (P >>> 28 | I << 4) ^ (P << 30 | I >>> 2) ^ (P << 25 | I >>> 7), Ge = (G >>> 14 | Z << 18) ^ (G >>> 18 | Z << 14) ^ (G << 23 | Z >>> 9), Ke = (Z >>> 14 | G << 18) ^ (Z >>> 18 | G << 14) ^ (Z << 23 | G >>> 9), Rr = E[e0], Xe = Rr.high, Pr = Rr.low, V = B0 + Ke, n0 = dr + Ge + (V >>> 0 < B0 >>> 0 ? 1 : 0), V = V + Hr, n0 = n0 + Me + (V >>> 0 < Hr >>> 0 ? 1 : 0), V = V + Pr, n0 = n0 + Xe + (V >>> 0 < Pr >>> 0 ? 1 : 0), V = V + J, n0 = n0 + x0 + (V >>> 0 < J >>> 0 ? 1 : 0), zr = $r + Ue, Ze = je + Ne + (zr >>> 0 < $r >>> 0 ? 1 : 0);
|
|
1898
|
+
dr = D0, B0 = p0, D0 = r0, p0 = f0, r0 = G, f0 = Z, Z = K + V | 0, G = o0 + n0 + (Z >>> 0 < K >>> 0 ? 1 : 0) | 0, o0 = Y, K = Q, Y = L, Q = W, L = I, W = P, P = V + zr | 0, I = n0 + Ze + (P >>> 0 < V >>> 0 ? 1 : 0) | 0;
|
|
1901
1899
|
}
|
|
1902
|
-
F = D.low = F + P, D.high = R +
|
|
1900
|
+
F = D.low = F + P, D.high = R + I + (F >>> 0 < P >>> 0 ? 1 : 0), H = i.low = H + W, i.high = w + L + (H >>> 0 < W >>> 0 ? 1 : 0), z = o.low = z + Q, o.high = $ + Y + (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 + Z, b.high = U + G + (T >>> 0 < Z >>> 0 ? 1 : 0), j = g.low = j + f0, g.high = N + r0 + (j >>> 0 < f0 >>> 0 ? 1 : 0), c = y.low = c + p0, y.high = S + D0 + (c >>> 0 < p0 >>> 0 ? 1 : 0), _ = k.low = _ + B0, k.high = A + dr + (_ >>> 0 < B0 >>> 0 ? 1 : 0);
|
|
1903
1901
|
},
|
|
1904
1902
|
_doFinalize: function() {
|
|
1905
1903
|
var f = this._data, v = f.words, l = this._nDataBytes * 8, D = f.sigBytes * 8;
|
|
@@ -1918,9 +1916,9 @@ function Se() {
|
|
|
1918
1916
|
});
|
|
1919
1917
|
})(L0)), L0.exports;
|
|
1920
1918
|
}
|
|
1921
|
-
var O0 = { exports: {} }, Rt = O0.exports,
|
|
1919
|
+
var O0 = { exports: {} }, Rt = O0.exports, Yr;
|
|
1922
1920
|
function Pt() {
|
|
1923
|
-
return
|
|
1921
|
+
return Yr || (Yr = 1, (function(r, h) {
|
|
1924
1922
|
(function(t, e, u) {
|
|
1925
1923
|
r.exports = e(M(), ur(), Se());
|
|
1926
1924
|
})(Rt, function(t) {
|
|
@@ -1949,7 +1947,7 @@ function Pt() {
|
|
|
1949
1947
|
})(O0)), O0.exports;
|
|
1950
1948
|
}
|
|
1951
1949
|
var q0 = { exports: {} }, zt = q0.exports, Qr;
|
|
1952
|
-
function
|
|
1950
|
+
function It() {
|
|
1953
1951
|
return Qr || (Qr = 1, (function(r, h) {
|
|
1954
1952
|
(function(t, e, u) {
|
|
1955
1953
|
r.exports = e(M(), ur());
|
|
@@ -2029,11 +2027,11 @@ function Wt() {
|
|
|
2029
2027
|
A.high = _.high, A.low = _.low;
|
|
2030
2028
|
for (var R = 0; R < 5; R++)
|
|
2031
2029
|
for (var H = 0; H < 5; H++) {
|
|
2032
|
-
var T = R + 5 * H, y = i[T],
|
|
2033
|
-
y.high =
|
|
2030
|
+
var T = R + 5 * H, y = i[T], I = f[T], P = f[(R + 1) % 5 + 5 * H], L = f[(R + 2) % 5 + 5 * H];
|
|
2031
|
+
y.high = I.high ^ ~P.high & L.high, y.low = I.low ^ ~P.low & L.low;
|
|
2034
2032
|
}
|
|
2035
|
-
var y = i[0],
|
|
2036
|
-
y.high ^=
|
|
2033
|
+
var y = i[0], W = s[k];
|
|
2034
|
+
y.high ^= W.high, y.low ^= W.low;
|
|
2037
2035
|
}
|
|
2038
2036
|
},
|
|
2039
2037
|
_doFinalize: function() {
|
|
@@ -2058,12 +2056,12 @@ function Wt() {
|
|
|
2058
2056
|
});
|
|
2059
2057
|
})(q0)), q0.exports;
|
|
2060
2058
|
}
|
|
2061
|
-
var T0 = { exports: {} },
|
|
2059
|
+
var T0 = { exports: {} }, Wt = T0.exports, Vr;
|
|
2062
2060
|
function Lt() {
|
|
2063
2061
|
return Vr || (Vr = 1, (function(r, h) {
|
|
2064
2062
|
(function(t, e) {
|
|
2065
2063
|
r.exports = e(M());
|
|
2066
|
-
})(
|
|
2064
|
+
})(Wt, function(t) {
|
|
2067
2065
|
return (function(e) {
|
|
2068
2066
|
var u = t, p = u.lib, m = p.WordArray, B = p.Hasher, C = u.algo, x = m.create([
|
|
2069
2067
|
0,
|
|
@@ -2398,11 +2396,11 @@ function Lt() {
|
|
|
2398
2396
|
var R = y + k, F = g[R];
|
|
2399
2397
|
g[R] = (F << 8 | F >>> 24) & 16711935 | (F << 24 | F >>> 8) & 4278255360;
|
|
2400
2398
|
}
|
|
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, _,
|
|
2402
|
-
A = T = w[0], _ = N = w[1],
|
|
2403
|
-
for (var
|
|
2404
|
-
|
|
2405
|
-
|
|
2399
|
+
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, _, I, P, L;
|
|
2400
|
+
A = T = w[0], _ = N = w[1], I = j = w[2], P = S = w[3], L = c = w[4];
|
|
2401
|
+
for (var W, k = 0; k < 80; k += 1)
|
|
2402
|
+
W = T + g[y + z[k]] | 0, k < 16 ? W += l(N, j, S) + H[0] : k < 32 ? W += D(N, j, S) + H[1] : k < 48 ? W += i(N, j, S) + H[2] : k < 64 ? W += o(N, j, S) + H[3] : W += d(N, j, S) + H[4], W = W | 0, W = b(W, q[k]), W = W + c | 0, T = c, c = S, S = b(j, 10), j = N, N = W, W = A + g[y + O[k]] | 0, k < 16 ? W += d(_, I, P) + $[0] : k < 32 ? W += o(_, I, P) + $[1] : k < 48 ? W += i(_, I, P) + $[2] : k < 64 ? W += D(_, I, P) + $[3] : W += l(_, I, P) + $[4], W = W | 0, W = b(W, U[k]), W = W + L | 0, A = L, L = P, P = b(I, 10), I = _, _ = W;
|
|
2403
|
+
W = 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 + I | 0, w[0] = W;
|
|
2406
2404
|
},
|
|
2407
2405
|
_doFinalize: function() {
|
|
2408
2406
|
var g = this._data, y = g.words, k = this._nDataBytes * 8, R = g.sigBytes * 8;
|
|
@@ -3240,7 +3238,7 @@ function Kt() {
|
|
|
3240
3238
|
})(K0)), K0.exports;
|
|
3241
3239
|
}
|
|
3242
3240
|
var X0 = { exports: {} }, Xt = X0.exports, ae;
|
|
3243
|
-
function
|
|
3241
|
+
function Zt() {
|
|
3244
3242
|
return ae || (ae = 1, (function(r, h) {
|
|
3245
3243
|
(function(t, e, u) {
|
|
3246
3244
|
r.exports = e(M(), X());
|
|
@@ -3273,12 +3271,12 @@ function Yt() {
|
|
|
3273
3271
|
});
|
|
3274
3272
|
})(X0)), X0.exports;
|
|
3275
3273
|
}
|
|
3276
|
-
var
|
|
3274
|
+
var Z0 = { exports: {} }, Yt = Z0.exports, oe;
|
|
3277
3275
|
function Qt() {
|
|
3278
3276
|
return oe || (oe = 1, (function(r, h) {
|
|
3279
3277
|
(function(t, e, u) {
|
|
3280
3278
|
r.exports = e(M(), X());
|
|
3281
|
-
})(
|
|
3279
|
+
})(Yt, function(t) {
|
|
3282
3280
|
return t.mode.OFB = (function() {
|
|
3283
3281
|
var e = t.lib.BlockCipherMode.extend(), u = e.Encryptor = e.extend({
|
|
3284
3282
|
processBlock: function(p, m) {
|
|
@@ -3291,9 +3289,9 @@ function Qt() {
|
|
|
3291
3289
|
return e.Decryptor = u, e;
|
|
3292
3290
|
})(), t.mode.OFB;
|
|
3293
3291
|
});
|
|
3294
|
-
})(
|
|
3292
|
+
})(Z0)), Z0.exports;
|
|
3295
3293
|
}
|
|
3296
|
-
var
|
|
3294
|
+
var Y0 = { exports: {} }, Vt = Y0.exports, ie;
|
|
3297
3295
|
function Jt() {
|
|
3298
3296
|
return ie || (ie = 1, (function(r, h) {
|
|
3299
3297
|
(function(t, e, u) {
|
|
@@ -3312,7 +3310,7 @@ function Jt() {
|
|
|
3312
3310
|
}), e;
|
|
3313
3311
|
})(), t.mode.ECB;
|
|
3314
3312
|
});
|
|
3315
|
-
})(
|
|
3313
|
+
})(Y0)), Y0.exports;
|
|
3316
3314
|
}
|
|
3317
3315
|
var Q0 = { exports: {} }, rx = Q0.exports, se;
|
|
3318
3316
|
function ex() {
|
|
@@ -5543,7 +5541,7 @@ var bx = y0.exports, Ae;
|
|
|
5543
5541
|
function mx() {
|
|
5544
5542
|
return Ae || (Ae = 1, (function(r, h) {
|
|
5545
5543
|
(function(t, e, u) {
|
|
5546
|
-
r.exports = e(M(), ur(), Ft(), Dt(), s0(), _t(), c0(), ke(), Fr(), Ht(), Se(), Pt(),
|
|
5544
|
+
r.exports = e(M(), ur(), Ft(), Dt(), s0(), _t(), c0(), ke(), Fr(), Ht(), Se(), Pt(), It(), Lt(), gr(), Tt(), a0(), X(), jt(), Kt(), Zt(), Qt(), Jt(), ex(), xx(), ax(), ix(), cx(), ux(), lx(), vx(), Bx(), Ex(), Fx(), Dx());
|
|
5547
5545
|
})(bx, function(t) {
|
|
5548
5546
|
return t;
|
|
5549
5547
|
});
|
|
@@ -5564,7 +5562,7 @@ function yx() {
|
|
|
5564
5562
|
};
|
|
5565
5563
|
}
|
|
5566
5564
|
function wx(r) {
|
|
5567
|
-
return `/sdk-workers/${(r.split("/").pop() || r).replace(/\.ts$/, ".js")}?v=1.1.
|
|
5565
|
+
return `/sdk-workers/${(r.split("/").pop() || r).replace(/\.ts$/, ".js")}?v=1.1.162`;
|
|
5568
5566
|
}
|
|
5569
5567
|
function kx(r, h) {
|
|
5570
5568
|
const t = wx(r);
|
|
@@ -5813,28 +5811,28 @@ async function zx(r) {
|
|
|
5813
5811
|
const _ = c.color || (c.name && ["粉", "白", "绿", "红", "蓝", "黄", "黑", "灰"].includes(c.name) ? c.name : A);
|
|
5814
5812
|
if (c.type === "Layer") {
|
|
5815
5813
|
if (c.imagePath) {
|
|
5816
|
-
const
|
|
5814
|
+
const I = m.find((P) => {
|
|
5817
5815
|
const L = P.sourceName || P.layerName;
|
|
5818
5816
|
return !L || !c.imagePath ? !1 : L === c.imagePath || L.endsWith(c.imagePath) || c.imagePath.endsWith(L);
|
|
5819
5817
|
});
|
|
5820
|
-
|
|
5821
|
-
url:
|
|
5818
|
+
I && (s[c.imagePath] = {
|
|
5819
|
+
url: I.url
|
|
5822
5820
|
});
|
|
5823
5821
|
}
|
|
5824
5822
|
if (c.name) {
|
|
5825
5823
|
if (_) {
|
|
5826
|
-
const
|
|
5827
|
-
const
|
|
5828
|
-
return
|
|
5824
|
+
const I = `${_}-${c.name}`, P = m.find((L) => {
|
|
5825
|
+
const W = L.sourceName || L.layerName;
|
|
5826
|
+
return W ? (W.split("/").pop() || W).replace(/\.(png|jpg|jpeg|gif|webp)$/i, "").startsWith(`${_}-${c.name}`) : !1;
|
|
5829
5827
|
});
|
|
5830
|
-
P && (s[
|
|
5828
|
+
P && (s[I] = {
|
|
5831
5829
|
url: P.url
|
|
5832
5830
|
});
|
|
5833
5831
|
}
|
|
5834
5832
|
if (c.imagePath && c.name) {
|
|
5835
|
-
const
|
|
5836
|
-
const
|
|
5837
|
-
return
|
|
5833
|
+
const I = c.imagePath.split("/").pop() || c.imagePath, P = m.find((L) => {
|
|
5834
|
+
const W = L.sourceName || L.layerName;
|
|
5835
|
+
return W ? (W.split("/").pop() || W) === I : !1;
|
|
5838
5836
|
});
|
|
5839
5837
|
P && (s[c.imagePath] = {
|
|
5840
5838
|
url: P.url
|
|
@@ -5843,28 +5841,28 @@ async function zx(r) {
|
|
|
5843
5841
|
}
|
|
5844
5842
|
}
|
|
5845
5843
|
if (c.children)
|
|
5846
|
-
for (const
|
|
5847
|
-
|
|
5844
|
+
for (const I of c.children)
|
|
5845
|
+
I && l(I, _);
|
|
5848
5846
|
}
|
|
5849
5847
|
function D(c, A) {
|
|
5850
5848
|
const _ = c.id ?? A;
|
|
5851
5849
|
if (c.type === "Group" && _)
|
|
5852
5850
|
if (e(`[renderByJson] processLayer 检查 Group: name="${c.name}", id=${_}, hasFabricScreenshot=${v.has(_)}`), v.has(_)) {
|
|
5853
|
-
const
|
|
5854
|
-
if (e(`[renderByJson] ✅ 找到匹配的 fabricScreenshot: Group id=${_}, name="${c.name}", url=${
|
|
5851
|
+
const I = v.get(_);
|
|
5852
|
+
if (e(`[renderByJson] ✅ 找到匹配的 fabricScreenshot: Group id=${_}, name="${c.name}", url=${I.substring(0, 50)}...`), c.children) {
|
|
5855
5853
|
e(`[renderByJson] Group "${c.name}" 有 ${c.children.length} 个子图层`);
|
|
5856
5854
|
for (const P of c.children)
|
|
5857
5855
|
if (P && P.isSmartObject === !0) {
|
|
5858
5856
|
const L = P?.name || "";
|
|
5859
|
-
e(`[renderByJson] 找到智能对象: name="${L}"`), L && !s[L] && (s[L] = {}), L ? (s[L].designImage =
|
|
5857
|
+
e(`[renderByJson] 找到智能对象: name="${L}"`), L && !s[L] && (s[L] = {}), L ? (s[L].designImage = I, e(`[renderByJson] ✅ 为智能对象 "${L}" 设置 designImage: ${I.substring(0, 50)}...`)) : u("[renderByJson] ⚠️ 智能对象没有 name,无法设置 designImage");
|
|
5860
5858
|
}
|
|
5861
5859
|
} else
|
|
5862
5860
|
u(`[renderByJson] ⚠️ Group id=${_} 没有 children`);
|
|
5863
5861
|
} else
|
|
5864
5862
|
e(`[renderByJson] ⚠️ Group id=${_}, name="${c.name}" 没有匹配的 fabricScreenshot`);
|
|
5865
5863
|
if (c.children)
|
|
5866
|
-
for (const
|
|
5867
|
-
|
|
5864
|
+
for (const I of c.children)
|
|
5865
|
+
I && D(I, _);
|
|
5868
5866
|
}
|
|
5869
5867
|
if (p.layerList)
|
|
5870
5868
|
for (const c of p.layerList)
|
|
@@ -5891,14 +5889,14 @@ async function zx(r) {
|
|
|
5891
5889
|
const A = c.url.split("/").pop() || c.url;
|
|
5892
5890
|
if (s[A])
|
|
5893
5891
|
return s[A];
|
|
5894
|
-
const _ = m.find((
|
|
5895
|
-
const P =
|
|
5892
|
+
const _ = m.find((I) => {
|
|
5893
|
+
const P = I.sourceName || I.layerName;
|
|
5896
5894
|
return !P || !c.url ? !1 : (P.split("/").pop() || P) === A || P === c.url || P.endsWith(c.url) || c.url.endsWith(P);
|
|
5897
5895
|
});
|
|
5898
5896
|
if (_) {
|
|
5899
|
-
const
|
|
5900
|
-
if (
|
|
5901
|
-
return s[
|
|
5897
|
+
const I = _.sourceName || _.layerName;
|
|
5898
|
+
if (I)
|
|
5899
|
+
return s[I] || { url: _.url };
|
|
5902
5900
|
}
|
|
5903
5901
|
}
|
|
5904
5902
|
};
|
|
@@ -5909,7 +5907,7 @@ async function zx(r) {
|
|
|
5909
5907
|
u(`图层 "${A.name}" 没有匹配的 material,跳过`);
|
|
5910
5908
|
continue;
|
|
5911
5909
|
}
|
|
5912
|
-
const
|
|
5910
|
+
const I = _.url, P = a(I);
|
|
5913
5911
|
if (!P) {
|
|
5914
5912
|
u(`图层 "${A.name}" 没有有效的 url,跳过`);
|
|
5915
5913
|
continue;
|
|
@@ -5923,16 +5921,16 @@ async function zx(r) {
|
|
|
5923
5921
|
} else if (A.type === g0.Group) {
|
|
5924
5922
|
if (!A.smartObjects || A.smartObjects.length === 0)
|
|
5925
5923
|
continue;
|
|
5926
|
-
for (let
|
|
5927
|
-
const P = A.smartObjects[
|
|
5924
|
+
for (let I = 0; I < A.smartObjects.length; I++) {
|
|
5925
|
+
const P = A.smartObjects[I];
|
|
5928
5926
|
if (!P || !P.name)
|
|
5929
5927
|
continue;
|
|
5930
5928
|
let L = s[P.name] ?? _;
|
|
5931
5929
|
if (!L && P.imagePath && (L = s[P.imagePath], !L)) {
|
|
5932
5930
|
const K = P.imagePath.split("/").pop() || P.imagePath;
|
|
5933
5931
|
if (L = s[K], !L) {
|
|
5934
|
-
const G = m.find((
|
|
5935
|
-
const r0 =
|
|
5932
|
+
const G = m.find((Z) => {
|
|
5933
|
+
const r0 = Z.sourceName || Z.layerName;
|
|
5936
5934
|
return !r0 || !P.imagePath ? !1 : (r0.split("/").pop() || r0) === K || r0 === P.imagePath || r0.endsWith(P.imagePath) || P.imagePath.endsWith(r0);
|
|
5937
5935
|
});
|
|
5938
5936
|
G && (L = { url: G.url });
|
|
@@ -5940,27 +5938,27 @@ async function zx(r) {
|
|
|
5940
5938
|
}
|
|
5941
5939
|
if (!L || !L.designImage && !L.url)
|
|
5942
5940
|
continue;
|
|
5943
|
-
let
|
|
5944
|
-
if (!
|
|
5941
|
+
let W = L.designImage ?? L.url;
|
|
5942
|
+
if (!W)
|
|
5945
5943
|
continue;
|
|
5946
|
-
if (typeof
|
|
5947
|
-
/^(https?:)?\/\//i.test(
|
|
5948
|
-
const G = a(
|
|
5944
|
+
if (typeof W == "string") {
|
|
5945
|
+
/^(https?:)?\/\//i.test(W) || W.startsWith("data:") || W.startsWith("blob:") || (W = f.get(W) ?? W);
|
|
5946
|
+
const G = a(W);
|
|
5949
5947
|
if (!G)
|
|
5950
5948
|
continue;
|
|
5951
|
-
|
|
5949
|
+
W = G;
|
|
5952
5950
|
}
|
|
5953
|
-
const
|
|
5951
|
+
const Y = (A.partId ?? A.id) * 100 + I, Q = et(rt(P)), o0 = { width: b, height: g };
|
|
5954
5952
|
R.push({
|
|
5955
|
-
index: c +
|
|
5953
|
+
index: c + I * 0.01,
|
|
5956
5954
|
type: "group",
|
|
5957
5955
|
partData: A,
|
|
5958
5956
|
smartObject: P,
|
|
5959
5957
|
maskData: Q,
|
|
5960
5958
|
promise: Px(
|
|
5961
|
-
|
|
5959
|
+
W,
|
|
5962
5960
|
P,
|
|
5963
|
-
|
|
5961
|
+
Y,
|
|
5964
5962
|
o0,
|
|
5965
5963
|
E,
|
|
5966
5964
|
n
|
|
@@ -5973,8 +5971,8 @@ async function zx(r) {
|
|
|
5973
5971
|
task: c,
|
|
5974
5972
|
imageBitmap: w[A]
|
|
5975
5973
|
})).sort((c, A) => {
|
|
5976
|
-
const _ = c.task.type === "group" && c.task.smartObject?.layerOrder !== void 0 ? c.task.smartObject.layerOrder : c.task.partData.layerOrder ?? c.task.index,
|
|
5977
|
-
return _ -
|
|
5974
|
+
const _ = c.task.type === "group" && c.task.smartObject?.layerOrder !== void 0 ? c.task.smartObject.layerOrder : c.task.partData.layerOrder ?? c.task.index, I = A.task.type === "group" && A.task.smartObject?.layerOrder !== void 0 ? A.task.smartObject.layerOrder : A.task.partData.layerOrder ?? A.task.index;
|
|
5975
|
+
return _ - I;
|
|
5978
5976
|
});
|
|
5979
5977
|
let $ = l0(b, g), z = F0($), O = !1, q = "normal";
|
|
5980
5978
|
for (let c = 0; c < H.length; c++) {
|
|
@@ -5983,28 +5981,28 @@ async function zx(r) {
|
|
|
5983
5981
|
u(`[renderByJson] 图层 "${A.partData.name}" 没有 imageBitmap,跳过`);
|
|
5984
5982
|
continue;
|
|
5985
5983
|
}
|
|
5986
|
-
const { partData:
|
|
5984
|
+
const { partData: I } = A, P = I.bounds;
|
|
5987
5985
|
let L;
|
|
5988
|
-
A.type === "group" && A.smartObject ? L = A.smartObject.opacity ??
|
|
5989
|
-
let
|
|
5990
|
-
A.type === "group" && A.smartObject ?
|
|
5991
|
-
const
|
|
5986
|
+
A.type === "group" && A.smartObject ? L = A.smartObject.opacity ?? I.opacity : L = I.opacity, (typeof L != "number" || isNaN(L)) && (L = 1);
|
|
5987
|
+
let W;
|
|
5988
|
+
A.type === "group" && A.smartObject ? W = A.smartObject.clipping ?? I.clipping === !0 : W = I.clipping === !0;
|
|
5989
|
+
const Y = H[c + 1];
|
|
5992
5990
|
let Q = !1;
|
|
5993
|
-
if (
|
|
5994
|
-
const K =
|
|
5995
|
-
|
|
5991
|
+
if (Y) {
|
|
5992
|
+
const K = Y.task.partData;
|
|
5993
|
+
Y.task.type === "group" && Y.task.smartObject ? Q = Y.task.smartObject.clipping ?? K.clipping === !0 : Q = K.clipping === !0;
|
|
5996
5994
|
}
|
|
5997
|
-
const o0 = A.type === "group" && A.smartObject && A.smartObject.name ? A.smartObject.name :
|
|
5995
|
+
const o0 = A.type === "group" && A.smartObject && A.smartObject.name ? A.smartObject.name : I?.name || "未命名图层";
|
|
5998
5996
|
if (e(`[renderByJson] 绘制图层 "${o0}"`, {
|
|
5999
5997
|
type: A.type,
|
|
6000
5998
|
bitmapSize: { width: _.width, height: _.height },
|
|
6001
5999
|
bounds: P,
|
|
6002
6000
|
hasMask: !!A.maskData,
|
|
6003
|
-
blendMode:
|
|
6001
|
+
blendMode: I.blendMode,
|
|
6004
6002
|
opacity: L,
|
|
6005
|
-
clipping:
|
|
6006
|
-
}), !
|
|
6007
|
-
if (O = !0, q =
|
|
6003
|
+
clipping: W
|
|
6004
|
+
}), !W && Q) {
|
|
6005
|
+
if (O = !0, q = I.blendMode || "normal", z) {
|
|
6008
6006
|
if (z.clearRect(0, 0, b, g), z.globalCompositeOperation = "source-over", z.globalAlpha = L, A.type === "group" && A.smartObject)
|
|
6009
6007
|
if (A.maskData) {
|
|
6010
6008
|
const K = l0(b, g), G = F0(K);
|
|
@@ -6020,7 +6018,7 @@ async function zx(r) {
|
|
|
6020
6018
|
) : z.drawImage(_, 0, 0));
|
|
6021
6019
|
z.globalAlpha = 1;
|
|
6022
6020
|
}
|
|
6023
|
-
} else if (
|
|
6021
|
+
} else if (W) {
|
|
6024
6022
|
if (z) {
|
|
6025
6023
|
if (z.globalCompositeOperation = "source-atop", z.globalAlpha = L, A.type === "group" && A.smartObject)
|
|
6026
6024
|
if (A.maskData) {
|
|
@@ -6038,7 +6036,7 @@ async function zx(r) {
|
|
|
6038
6036
|
z.globalAlpha = 1, z.globalCompositeOperation = "source-over";
|
|
6039
6037
|
}
|
|
6040
6038
|
} else {
|
|
6041
|
-
if (k.globalCompositeOperation = Lr(
|
|
6039
|
+
if (k.globalCompositeOperation = Lr(I.blendMode), k.globalAlpha = L, A.type === "group" && A.smartObject)
|
|
6042
6040
|
if (A.maskData) {
|
|
6043
6041
|
const K = l0(b, g), G = F0(K);
|
|
6044
6042
|
G && (G.drawImage(_, 0, 0), lr(G, A.maskData), k.drawImage(K, 0, 0));
|
|
@@ -6083,7 +6081,7 @@ const ze = async (r) => {
|
|
|
6083
6081
|
return t ? createImageBitmap(t) : null;
|
|
6084
6082
|
};
|
|
6085
6083
|
let i0 = null, vr = !1;
|
|
6086
|
-
const
|
|
6084
|
+
const Ie = async () => {
|
|
6087
6085
|
if (!vr) {
|
|
6088
6086
|
vr = !0;
|
|
6089
6087
|
try {
|
|
@@ -6106,7 +6104,7 @@ const We = async () => {
|
|
|
6106
6104
|
}
|
|
6107
6105
|
}
|
|
6108
6106
|
} finally {
|
|
6109
|
-
vr = !1, i0 &&
|
|
6107
|
+
vr = !1, i0 && Ie();
|
|
6110
6108
|
}
|
|
6111
6109
|
}
|
|
6112
6110
|
};
|
|
@@ -6124,7 +6122,7 @@ self.onmessage = async (r) => {
|
|
|
6124
6122
|
}
|
|
6125
6123
|
const t = h;
|
|
6126
6124
|
if (t.coalesce === !0) {
|
|
6127
|
-
i0 = { id: t.id, renderData: t.renderData },
|
|
6125
|
+
i0 = { id: t.id, renderData: t.renderData }, Ie();
|
|
6128
6126
|
return;
|
|
6129
6127
|
}
|
|
6130
6128
|
try {
|