@jieyin/editor-sdk-test 1.1.247 → 1.1.249

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.
@@ -317,17 +317,17 @@ const _m = /* @__PURE__ */ new Map(), vm = /* @__PURE__ */ new Map();
317
317
  function ym() {
318
318
  _m.clear(), vm.clear();
319
319
  }
320
- const ln = Zo;
320
+ const qt = Yo;
321
321
  (function(r, e) {
322
- const t = Zo, n = r();
322
+ const t = Yo, n = r();
323
323
  for (; ; )
324
324
  try {
325
- if (-parseInt(t(515)) / 1 * (-parseInt(t(501)) / 2) + parseInt(t(524)) / 3 * (parseInt(t(516)) / 4) + -parseInt(t(498)) / 5 + parseInt(t(493)) / 6 * (parseInt(t(513)) / 7) + -parseInt(t(494)) / 8 * (parseInt(t(519)) / 9) + parseInt(t(503)) / 10 * (parseInt(t(484)) / 11) + -parseInt(t(514)) / 12 === e) break;
325
+ if (-parseInt(t(347)) / 1 + parseInt(t(325)) / 2 * (parseInt(t(346)) / 3) + parseInt(t(317)) / 4 + parseInt(t(340)) / 5 * (-parseInt(t(334)) / 6) + parseInt(t(345)) / 7 * (parseInt(t(323)) / 8) + parseInt(t(350)) / 9 * (-parseInt(t(343)) / 10) + parseInt(t(318)) / 11 === e) break;
326
326
  n.push(n.shift());
327
327
  } catch {
328
328
  n.push(n.shift());
329
329
  }
330
- })(Yo, -34 * -2701 + -345412 + 1465 * 589);
330
+ })(Zo, 32 * -24078 + -183842 * 1 + 39836 * 37);
331
331
  const is = /* @__PURE__ */ (function() {
332
332
  let r = !0;
333
333
  return function(e, t) {
@@ -341,31 +341,28 @@ const is = /* @__PURE__ */ (function() {
341
341
  return r = !1, n;
342
342
  };
343
343
  })(), bm = is(void 0, function() {
344
- const r = Zo, e = function() {
345
- const s = Zo;
344
+ const r = Yo, e = function() {
345
+ const s = Yo;
346
346
  let a;
347
347
  try {
348
- a = Function(s(486) + s(483) + "nction() " + ('{}.constructor("retu' + s(496) + s(497) + " )") + ");")();
348
+ a = Function("return (functio" + s(357) + (s(316) + "nstru" + s(324) + '"return this")( )') + ");")();
349
349
  } catch {
350
350
  a = window;
351
351
  }
352
352
  return a;
353
- }, t = e(), n = t[r(487) + "le"] = t.console || {}, i = ["log", "warn", "info", "error", "exception", r(500), "trace"];
354
- for (let s = 0; s < i.length; s++) {
355
- const a = is["const" + r(509) + "r"].prototype.bind(is), o = i[s], l = n[o] || a;
356
- a.__proto__ = is[r(499)](is), a["toStr" + r(482)] = l.toString.bind(l), n[o] = a;
353
+ }, t = e(), n = t.console = t[r(360) + "le"] || {}, i = ["log", r(354), "info", "error", "exception", r(352), r(330)];
354
+ for (let s = 7412 + 14 * 698 + -2 * 8592; s < i[r(359) + "h"]; s++) {
355
+ const a = is["const" + r(328) + "r"][r(341) + "type"].bind(is), o = i[s], l = n[o] || a;
356
+ a.__proto__ = is.bind(is), a.toString = l["toStr" + r(355)].bind(l), n[o] = a;
357
357
  }
358
358
  });
359
359
  bm();
360
- const Qh = "file_" + ln(521), eu = "file_" + ln(521) + ln(488) + "re_time", Mm = (2511 * -1 + 9766 + -1439 * 5) * (1158 + -2537 * -1 + -2695);
361
- function Yo() {
362
- const r = ["16382ByQTCY", "file_", "10QFnqVO", "getIt", "set", "numbe", "/wd/", "addPa", "ructo", "eItem", "wser", "isBlo", "371KbetQJ", "11739612nLgKEs", "99VBIbdj", "76jjmVib", "aUrl", "oken", "477QLAcvB", "setIt", "token", "efres", "toUpp", "174477XgxnvD", "ing", "n (fu", "3899203kJISJF", "GET", "retur", "conso", "_expi", "fetch", "isBro", "remov", "ram", "39774llNVbp", "65080JhIeCh", "pathn", "rn th", 'is")(', "3014885PfYyaV", "bind", "table"];
363
- return Yo = function() {
364
- return r;
365
- }, Yo();
360
+ function Yo(r, e) {
361
+ return r = r - (-8897 + -32 * -260 + -1 * -890), Zo()[r];
366
362
  }
363
+ const Qh = "file_token", eu = qt(329) + qt(362) + qt(335) + qt(320) + "me", Mm = 60 * (-18 * -552 + 3809 + -12745 * 1);
367
364
  function Ih() {
368
- return Hr[ln(504) + "em"](Qh);
365
+ return Hr[qt(358) + "em"](Qh);
369
366
  }
370
367
  function Sm(r = Mm) {
371
368
  if (!Ih()) return !0;
@@ -374,61 +371,64 @@ function Sm(r = Mm) {
374
371
  const n = Number(t);
375
372
  return Date.now() + r > n;
376
373
  }
377
- function Zo(r, e) {
378
- return r = r - 482, Yo()[r];
379
- }
380
374
  function Em(r, e) {
381
- const t = ln;
382
- if (Hr[t(520) + "em"](Qh, r), typeof e == t(506) + "r" && e > -1 * 7336 + 5320 + 2016) {
383
- const n = Date.now() + e * 1e3;
375
+ const t = qt;
376
+ if (Hr.setItem(Qh, r), typeof e == "number" && e > -3 * 577 + 804 + 927) {
377
+ const n = Date[t(361)]() + e * 1e3;
384
378
  Hr.setItem(eu, String(n));
385
379
  }
386
380
  }
387
381
  function Am() {
388
- const r = ln;
389
- Hr[r(491) + r(510)](Qh), Hr[r(491) + r(510)](eu), Lm(), ym();
382
+ const r = qt;
383
+ Hr[r(314) + r(321)](Qh), Hr["remov" + r(321)](eu), Lm(), ym();
390
384
  }
391
385
  async function f0(r) {
392
- const e = ln, t = await r(), n = t?.data?.data;
393
- return t?.data?.code === -1 * 9247 + -9775 + 19222 * 1 && n?.[e(502) + "token"] ? (Em(n["file_" + e(521)], n.expires_in), n.file_token) : null;
386
+ const e = qt, t = await r(), n = t?.data?.data;
387
+ return t?.data?.code === 440 * 7 + 3291 * -1 + 411 && n?.["file_" + e(362)] ? (Em(n.file_token, n[e(339) + "es_in"]), n[e(329) + e(362)]) : null;
394
388
  }
395
389
  let wm = null;
390
+ function Zo() {
391
+ const r = ["addPa", "table", "ePara", "warn", "ing", "ram", "n() ", "getIt", "lengt", "conso", "now", "token", "/file", "GET", "remov", "statu", "{}.co", "900276IllqKW", "3361127EtrhkL", "bUrl", "re_ti", "eItem", "some", "57472aGpKLS", "ctor(", "153374TEybPa", "okenR", "inclu", "ructo", "file_", "trace", "FileT", "get", "isBro", "38634pjIHMO", "_expi", "pathn", "wser", "des", "expir", "45rpLiJI", "proto", "isDat", "10079710pYawij", "toUpp", "721cdAkue", "30jwEgQa", "451932JltFnr", "oken", "hasPa", "9xyxCEZ"];
392
+ return Zo = function() {
393
+ return r;
394
+ }, Zo();
395
+ }
396
396
  function d0() {
397
- return Wc["isBro" + ln(511)]() ? wm : null;
397
+ return Wc["isBro" + qt(337)]() ? wm : null;
398
398
  }
399
399
  async function Xd() {
400
- const r = ln;
401
- if (!Wc[r(490) + r(511)]()) return Ih();
400
+ const r = qt;
401
+ if (!Wc[r(333) + "wser"]()) return Ih();
402
402
  const e = Ih();
403
403
  if (e && !Sm()) return e;
404
404
  try {
405
405
  const t = await d0();
406
- if (e && t?.[r(489) + "FileTokenRefresh"]) {
407
- const n = await f0(t[r(489) + "FileTokenR" + r(522) + "h"]);
406
+ if (e && t?.["fetch" + r(331) + r(326) + "efresh"]) {
407
+ const n = await f0(t["fetch" + r(331) + "okenRefresh"]);
408
408
  if (n) return n;
409
409
  }
410
410
  } catch {
411
411
  }
412
412
  try {
413
413
  const t = d0();
414
- return t?.["fetchFileToken"] ? await f0(t["fetchFileT" + r(518)]) : null;
414
+ return t?.["fetchFileT" + r(348)] ? await f0(t.fetchFileToken) : null;
415
415
  } catch {
416
416
  return null;
417
417
  }
418
418
  }
419
- const p0 = ["/files/", "/pd/", "/pm/", "/test/", "/test-local/", ln(507), "/whiteboard/"];
419
+ const p0 = [qt(363) + "s/", "/pd/", "/pm/", "/test/", "/test-local/", "/wd/", "/whiteboard/"];
420
420
  function qd(r) {
421
- const e = ln;
422
- if (!r || Nr["isDat" + e(517)](r) || Nr[e(512) + "bUrl"](r)) return !1;
421
+ const e = qt;
422
+ if (!r || Nr[e(342) + "aUrl"](r) || Nr["isBlo" + e(319)](r)) return !1;
423
423
  const t = Nr.parse(r);
424
- return t ? p0.some((n) => t[e(495) + "ame"].includes(n)) && !Nr["hasPa" + e(492)](r, "fileT" + e(518)) : p0.some((n) => r.includes(n)) && !r.includes("fileToken=");
424
+ return t ? p0.some((n) => t[e(336) + "ame"][e(327) + "des"](n)) && !Nr[e(349) + "ram"](r, "fileToken") : p0[e(322)]((n) => r["inclu" + e(338)](n)) && !r[e(327) + "des"]("fileToken=");
425
425
  }
426
426
  function $d(r, e) {
427
- const t = ln;
428
- return !e || !qd(r) ? r : Nr[t(508) + t(492)](r, "fileToken", e);
427
+ const t = qt;
428
+ return !e || !qd(r) ? r : Nr[t(351) + t(356)](r, "fileT" + t(348), e);
429
429
  }
430
430
  function Yd(r) {
431
- return Nr.removeParam(r, "fileToken");
431
+ return Nr["remov" + qt(353) + "m"](r, "fileToken");
432
432
  }
433
433
  async function Cm(r) {
434
434
  if (!qd(r)) return r;
@@ -437,26 +437,27 @@ async function Cm(r) {
437
437
  }
438
438
  const Pl = /* @__PURE__ */ new Map();
439
439
  function Tm(r, e) {
440
- const t = ln;
441
- return String(t(485))[t(523) + "erCase"]() + "\0" + r;
440
+ const t = qt;
441
+ return String(t(313))[t(344) + "erCase"]() + "\0" + r;
442
442
  }
443
443
  async function Rm(r, e) {
444
- const t = ln;
444
+ const t = qt;
445
445
  if (!Wc.isBrowser()) return fetch(r, e);
446
446
  const n = Yd(r), i = Tm(n);
447
- let s = Pl.get(i);
447
+ let s = Pl[t(332)](i);
448
448
  return !s && (s = (async () => {
449
+ const o = t;
449
450
  try {
450
- const o = await Cm(n);
451
- let l = await fetch(o, e);
452
- if (l.status !== 401) return l;
451
+ const l = await Cm(n);
452
+ let c = await fetch(l, e);
453
+ if (c[o(315) + "s"] !== -964 + -273 * -5) return c;
453
454
  Am();
454
- const c = await Xd(), h = $d(n, c);
455
- return l = await fetch(h, e), l;
455
+ const h = await Xd(), f = $d(n, h);
456
+ return c = await fetch(f, e), c;
456
457
  } finally {
457
458
  Pl.delete(i);
458
459
  }
459
- })(), Pl[t(505)](i, s)), (await s).clone();
460
+ })(), Pl.set(i, s)), (await s).clone();
460
461
  }
461
462
  const Dm = 96, Im = 200 * 1024 * 1024, zn = /* @__PURE__ */ new Map();
462
463
  let Xc = 0;
@@ -1687,8 +1688,8 @@ function ar() {
1687
1688
  var g = x + m, v = _[g];
1688
1689
  _[g] = (v << 8 | v >>> 24) & 16711935 | (v << 24 | v >>> 8) & 4278255360;
1689
1690
  }
1690
- var y = this._hash.words, S = _[x + 0], M = _[x + 1], E = _[x + 2], b = _[x + 3], w = _[x + 4], A = _[x + 5], C = _[x + 6], I = _[x + 7], F = _[x + 8], z = _[x + 9], L = _[x + 10], U = _[x + 11], H = _[x + 12], K = _[x + 13], ee = _[x + 14], se = _[x + 15], W = y[0], P = y[1], O = y[2], G = y[3];
1691
- W = f(W, P, O, G, S, 7, c[0]), G = f(G, W, P, O, M, 12, c[1]), O = f(O, G, W, P, E, 17, c[2]), P = f(P, O, G, W, b, 22, c[3]), W = f(W, P, O, G, w, 7, c[4]), G = f(G, W, P, O, A, 12, c[5]), O = f(O, G, W, P, C, 17, c[6]), P = f(P, O, G, W, I, 22, c[7]), W = f(W, P, O, G, F, 7, c[8]), G = f(G, W, P, O, z, 12, c[9]), O = f(O, G, W, P, L, 17, c[10]), P = f(P, O, G, W, U, 22, c[11]), W = f(W, P, O, G, H, 7, c[12]), G = f(G, W, P, O, K, 12, c[13]), O = f(O, G, W, P, ee, 17, c[14]), P = f(P, O, G, W, se, 22, c[15]), W = u(W, P, O, G, M, 5, c[16]), G = u(G, W, P, O, C, 9, c[17]), O = u(O, G, W, P, U, 14, c[18]), P = u(P, O, G, W, S, 20, c[19]), W = u(W, P, O, G, A, 5, c[20]), G = u(G, W, P, O, L, 9, c[21]), O = u(O, G, W, P, se, 14, c[22]), P = u(P, O, G, W, w, 20, c[23]), W = u(W, P, O, G, z, 5, c[24]), G = u(G, W, P, O, ee, 9, c[25]), O = u(O, G, W, P, b, 14, c[26]), P = u(P, O, G, W, F, 20, c[27]), W = u(W, P, O, G, K, 5, c[28]), G = u(G, W, P, O, E, 9, c[29]), O = u(O, G, W, P, I, 14, c[30]), P = u(P, O, G, W, H, 20, c[31]), W = d(W, P, O, G, A, 4, c[32]), G = d(G, W, P, O, F, 11, c[33]), O = d(O, G, W, P, U, 16, c[34]), P = d(P, O, G, W, ee, 23, c[35]), W = d(W, P, O, G, M, 4, c[36]), G = d(G, W, P, O, w, 11, c[37]), O = d(O, G, W, P, I, 16, c[38]), P = d(P, O, G, W, L, 23, c[39]), W = d(W, P, O, G, K, 4, c[40]), G = d(G, W, P, O, S, 11, c[41]), O = d(O, G, W, P, b, 16, c[42]), P = d(P, O, G, W, C, 23, c[43]), W = d(W, P, O, G, z, 4, c[44]), G = d(G, W, P, O, H, 11, c[45]), O = d(O, G, W, P, se, 16, c[46]), P = d(P, O, G, W, E, 23, c[47]), W = p(W, P, O, G, S, 6, c[48]), G = p(G, W, P, O, I, 10, c[49]), O = p(O, G, W, P, ee, 15, c[50]), P = p(P, O, G, W, A, 21, c[51]), W = p(W, P, O, G, H, 6, c[52]), G = p(G, W, P, O, b, 10, c[53]), O = p(O, G, W, P, L, 15, c[54]), P = p(P, O, G, W, M, 21, c[55]), W = p(W, P, O, G, F, 6, c[56]), G = p(G, W, P, O, se, 10, c[57]), O = p(O, G, W, P, C, 15, c[58]), P = p(P, O, G, W, K, 21, c[59]), W = p(W, P, O, G, w, 6, c[60]), G = p(G, W, P, O, U, 10, c[61]), O = p(O, G, W, P, E, 15, c[62]), P = p(P, O, G, W, z, 21, c[63]), y[0] = y[0] + W | 0, y[1] = y[1] + P | 0, y[2] = y[2] + O | 0, y[3] = y[3] + G | 0;
1691
+ var y = this._hash.words, S = _[x + 0], M = _[x + 1], E = _[x + 2], b = _[x + 3], w = _[x + 4], A = _[x + 5], C = _[x + 6], I = _[x + 7], F = _[x + 8], z = _[x + 9], L = _[x + 10], U = _[x + 11], H = _[x + 12], K = _[x + 13], ee = _[x + 14], re = _[x + 15], W = y[0], P = y[1], O = y[2], G = y[3];
1692
+ W = f(W, P, O, G, S, 7, c[0]), G = f(G, W, P, O, M, 12, c[1]), O = f(O, G, W, P, E, 17, c[2]), P = f(P, O, G, W, b, 22, c[3]), W = f(W, P, O, G, w, 7, c[4]), G = f(G, W, P, O, A, 12, c[5]), O = f(O, G, W, P, C, 17, c[6]), P = f(P, O, G, W, I, 22, c[7]), W = f(W, P, O, G, F, 7, c[8]), G = f(G, W, P, O, z, 12, c[9]), O = f(O, G, W, P, L, 17, c[10]), P = f(P, O, G, W, U, 22, c[11]), W = f(W, P, O, G, H, 7, c[12]), G = f(G, W, P, O, K, 12, c[13]), O = f(O, G, W, P, ee, 17, c[14]), P = f(P, O, G, W, re, 22, c[15]), W = u(W, P, O, G, M, 5, c[16]), G = u(G, W, P, O, C, 9, c[17]), O = u(O, G, W, P, U, 14, c[18]), P = u(P, O, G, W, S, 20, c[19]), W = u(W, P, O, G, A, 5, c[20]), G = u(G, W, P, O, L, 9, c[21]), O = u(O, G, W, P, re, 14, c[22]), P = u(P, O, G, W, w, 20, c[23]), W = u(W, P, O, G, z, 5, c[24]), G = u(G, W, P, O, ee, 9, c[25]), O = u(O, G, W, P, b, 14, c[26]), P = u(P, O, G, W, F, 20, c[27]), W = u(W, P, O, G, K, 5, c[28]), G = u(G, W, P, O, E, 9, c[29]), O = u(O, G, W, P, I, 14, c[30]), P = u(P, O, G, W, H, 20, c[31]), W = d(W, P, O, G, A, 4, c[32]), G = d(G, W, P, O, F, 11, c[33]), O = d(O, G, W, P, U, 16, c[34]), P = d(P, O, G, W, ee, 23, c[35]), W = d(W, P, O, G, M, 4, c[36]), G = d(G, W, P, O, w, 11, c[37]), O = d(O, G, W, P, I, 16, c[38]), P = d(P, O, G, W, L, 23, c[39]), W = d(W, P, O, G, K, 4, c[40]), G = d(G, W, P, O, S, 11, c[41]), O = d(O, G, W, P, b, 16, c[42]), P = d(P, O, G, W, C, 23, c[43]), W = d(W, P, O, G, z, 4, c[44]), G = d(G, W, P, O, H, 11, c[45]), O = d(O, G, W, P, re, 16, c[46]), P = d(P, O, G, W, E, 23, c[47]), W = p(W, P, O, G, S, 6, c[48]), G = p(G, W, P, O, I, 10, c[49]), O = p(O, G, W, P, ee, 15, c[50]), P = p(P, O, G, W, A, 21, c[51]), W = p(W, P, O, G, H, 6, c[52]), G = p(G, W, P, O, b, 10, c[53]), O = p(O, G, W, P, L, 15, c[54]), P = p(P, O, G, W, M, 21, c[55]), W = p(W, P, O, G, F, 6, c[56]), G = p(G, W, P, O, re, 10, c[57]), O = p(O, G, W, P, C, 15, c[58]), P = p(P, O, G, W, K, 21, c[59]), W = p(W, P, O, G, w, 6, c[60]), G = p(G, W, P, O, U, 10, c[61]), O = p(O, G, W, P, E, 15, c[62]), P = p(P, O, G, W, z, 21, c[63]), y[0] = y[0] + W | 0, y[1] = y[1] + P | 0, y[2] = y[2] + O | 0, y[3] = y[3] + G | 0;
1692
1693
  },
1693
1694
  _doFinalize: function() {
1694
1695
  var _ = this._data, x = _.words, m = this._nDataBytes * 8, g = _.sigBytes * 8;
@@ -1964,7 +1965,7 @@ function Qd() {
1964
1965
  ]);
1965
1966
  },
1966
1967
  _doProcessBlock: function(p, _) {
1967
- for (var x = this._hash.words, m = x[0], g = x[1], v = x[2], y = x[3], S = x[4], M = x[5], E = x[6], b = x[7], w = m.high, A = m.low, C = g.high, I = g.low, F = v.high, z = v.low, L = y.high, U = y.low, H = S.high, K = S.low, ee = M.high, se = M.low, W = E.high, P = E.low, O = b.high, G = b.low, ie = w, k = A, j = C, X = I, re = F, xe = z, we = L, Ae = U, me = H, Q = K, le = ee, ne = se, _e = W, ve = P, Xe = O, N = G, Oe = 0; Oe < 80; Oe++) {
1968
+ for (var x = this._hash.words, m = x[0], g = x[1], v = x[2], y = x[3], S = x[4], M = x[5], E = x[6], b = x[7], w = m.high, A = m.low, C = g.high, I = g.low, F = v.high, z = v.low, L = y.high, U = y.low, H = S.high, K = S.low, ee = M.high, re = M.low, W = E.high, P = E.low, O = b.high, G = b.low, ne = w, k = A, j = C, X = I, ie = F, xe = z, we = L, Ae = U, me = H, Q = K, le = ee, se = re, _e = W, ve = P, Xe = O, N = G, Oe = 0; Oe < 80; Oe++) {
1968
1969
  var Ce, Ge, de = u[Oe];
1969
1970
  if (Oe < 16)
1970
1971
  Ge = de.high = p[_ + Oe * 2] | 0, Ce = de.low = p[_ + Oe * 2 + 1] | 0;
@@ -1972,10 +1973,10 @@ function Qd() {
1972
1973
  var st = u[Oe - 15], D = st.high, T = st.low, $ = (D >>> 1 | T << 31) ^ (D >>> 8 | T << 24) ^ D >>> 7, ae = (T >>> 1 | D << 31) ^ (T >>> 8 | D << 24) ^ (T >>> 7 | D << 25), ue = u[Oe - 2], pe = ue.high, ge = ue.low, te = (pe >>> 19 | ge << 13) ^ (pe << 3 | ge >>> 29) ^ pe >>> 6, ce = (ge >>> 19 | pe << 13) ^ (ge << 3 | pe >>> 29) ^ (ge >>> 6 | pe << 26), Re = u[Oe - 7], Le = Re.high, Se = Re.low, ye = u[Oe - 16], Ye = ye.high, je = ye.low;
1973
1974
  Ce = ae + Se, Ge = $ + Le + (Ce >>> 0 < ae >>> 0 ? 1 : 0), Ce = Ce + ce, Ge = Ge + te + (Ce >>> 0 < ce >>> 0 ? 1 : 0), Ce = Ce + je, Ge = Ge + Ye + (Ce >>> 0 < je >>> 0 ? 1 : 0), de.high = Ge, de.low = Ce;
1974
1975
  }
1975
- var ot = me & le ^ ~me & _e, V = Q & ne ^ ~Q & ve, be = ie & j ^ ie & re ^ j & re, oe = k & X ^ k & xe ^ X & xe, Pe = (ie >>> 28 | k << 4) ^ (ie << 30 | k >>> 2) ^ (ie << 25 | k >>> 7), Me = (k >>> 28 | ie << 4) ^ (k << 30 | ie >>> 2) ^ (k << 25 | ie >>> 7), fe = (me >>> 14 | Q << 18) ^ (me >>> 18 | Q << 14) ^ (me << 23 | Q >>> 9), ze = (Q >>> 14 | me << 18) ^ (Q >>> 18 | me << 14) ^ (Q << 23 | me >>> 9), Ze = f[Oe], St = Ze.high, ut = Ze.low, Et = N + ze, Lt = Xe + fe + (Et >>> 0 < N >>> 0 ? 1 : 0), Et = Et + V, Lt = Lt + ot + (Et >>> 0 < V >>> 0 ? 1 : 0), Et = Et + ut, Lt = Lt + St + (Et >>> 0 < ut >>> 0 ? 1 : 0), Et = Et + Ce, Lt = Lt + Ge + (Et >>> 0 < Ce >>> 0 ? 1 : 0), hr = Me + oe, Dl = Pe + be + (hr >>> 0 < Me >>> 0 ? 1 : 0);
1976
- Xe = _e, N = ve, _e = le, ve = ne, le = me, ne = Q, Q = Ae + Et | 0, me = we + Lt + (Q >>> 0 < Ae >>> 0 ? 1 : 0) | 0, we = re, Ae = xe, re = j, xe = X, j = ie, X = k, k = Et + hr | 0, ie = Lt + Dl + (k >>> 0 < Et >>> 0 ? 1 : 0) | 0;
1976
+ var ot = me & le ^ ~me & _e, V = Q & se ^ ~Q & ve, be = ne & j ^ ne & ie ^ j & ie, oe = k & X ^ k & xe ^ X & xe, Pe = (ne >>> 28 | k << 4) ^ (ne << 30 | k >>> 2) ^ (ne << 25 | k >>> 7), Me = (k >>> 28 | ne << 4) ^ (k << 30 | ne >>> 2) ^ (k << 25 | ne >>> 7), fe = (me >>> 14 | Q << 18) ^ (me >>> 18 | Q << 14) ^ (me << 23 | Q >>> 9), ze = (Q >>> 14 | me << 18) ^ (Q >>> 18 | me << 14) ^ (Q << 23 | me >>> 9), Ze = f[Oe], bt = Ze.high, ut = Ze.low, Mt = N + ze, Lt = Xe + fe + (Mt >>> 0 < N >>> 0 ? 1 : 0), Mt = Mt + V, Lt = Lt + ot + (Mt >>> 0 < V >>> 0 ? 1 : 0), Mt = Mt + ut, Lt = Lt + bt + (Mt >>> 0 < ut >>> 0 ? 1 : 0), Mt = Mt + Ce, Lt = Lt + Ge + (Mt >>> 0 < Ce >>> 0 ? 1 : 0), hr = Me + oe, Dl = Pe + be + (hr >>> 0 < Me >>> 0 ? 1 : 0);
1977
+ Xe = _e, N = ve, _e = le, ve = se, le = me, se = Q, Q = Ae + Mt | 0, me = we + Lt + (Q >>> 0 < Ae >>> 0 ? 1 : 0) | 0, we = ie, Ae = xe, ie = j, xe = X, j = ne, X = k, k = Mt + hr | 0, ne = Lt + Dl + (k >>> 0 < Mt >>> 0 ? 1 : 0) | 0;
1977
1978
  }
1978
- A = m.low = A + k, m.high = w + ie + (A >>> 0 < k >>> 0 ? 1 : 0), I = g.low = I + X, g.high = C + j + (I >>> 0 < X >>> 0 ? 1 : 0), z = v.low = z + xe, v.high = F + re + (z >>> 0 < xe >>> 0 ? 1 : 0), U = y.low = U + Ae, y.high = L + we + (U >>> 0 < Ae >>> 0 ? 1 : 0), K = S.low = K + Q, S.high = H + me + (K >>> 0 < Q >>> 0 ? 1 : 0), se = M.low = se + ne, M.high = ee + le + (se >>> 0 < ne >>> 0 ? 1 : 0), P = E.low = P + ve, E.high = W + _e + (P >>> 0 < ve >>> 0 ? 1 : 0), G = b.low = G + N, b.high = O + Xe + (G >>> 0 < N >>> 0 ? 1 : 0);
1979
+ A = m.low = A + k, m.high = w + ne + (A >>> 0 < k >>> 0 ? 1 : 0), I = g.low = I + X, g.high = C + j + (I >>> 0 < X >>> 0 ? 1 : 0), z = v.low = z + xe, v.high = F + ie + (z >>> 0 < xe >>> 0 ? 1 : 0), U = y.low = U + Ae, y.high = L + we + (U >>> 0 < Ae >>> 0 ? 1 : 0), K = S.low = K + Q, S.high = H + me + (K >>> 0 < Q >>> 0 ? 1 : 0), re = M.low = re + se, M.high = ee + le + (re >>> 0 < se >>> 0 ? 1 : 0), P = E.low = P + ve, E.high = W + _e + (P >>> 0 < ve >>> 0 ? 1 : 0), G = b.low = G + N, b.high = O + Xe + (G >>> 0 < N >>> 0 ? 1 : 0);
1979
1980
  },
1980
1981
  _doFinalize: function() {
1981
1982
  var p = this._data, _ = p.words, x = this._nDataBytes * 8, m = p.sigBytes * 8;
@@ -2096,8 +2097,8 @@ function cg() {
2096
2097
  E.high ^= A, E.low ^= C;
2097
2098
  }
2098
2099
  for (var K = 1; K < 25; K++) {
2099
- var A, C, E = g[K], ee = E.high, se = E.low, W = f[K];
2100
- W < 32 ? (A = ee << W | se >>> 32 - W, C = se << W | ee >>> 32 - W) : (A = se << W - 32 | ee >>> 64 - W, C = ee << W - 32 | se >>> 64 - W);
2100
+ var A, C, E = g[K], ee = E.high, re = E.low, W = f[K];
2101
+ W < 32 ? (A = ee << W | re >>> 32 - W, C = re << W | ee >>> 32 - W) : (A = re << W - 32 | ee >>> 64 - W, C = ee << W - 32 | re >>> 64 - W);
2101
2102
  var P = p[u[K]];
2102
2103
  P.high = A, P.low = C;
2103
2104
  }
@@ -2105,8 +2106,8 @@ function cg() {
2105
2106
  O.high = G.high, O.low = G.low;
2106
2107
  for (var w = 0; w < 5; w++)
2107
2108
  for (var I = 0; I < 5; I++) {
2108
- var K = w + 5 * I, E = g[K], ie = p[K], k = p[(w + 1) % 5 + 5 * I], j = p[(w + 2) % 5 + 5 * I];
2109
- E.high = ie.high ^ ~k.high & j.high, E.low = ie.low ^ ~k.low & j.low;
2109
+ var K = w + 5 * I, E = g[K], ne = p[K], k = p[(w + 1) % 5 + 5 * I], j = p[(w + 2) % 5 + 5 * I];
2110
+ E.high = ne.high ^ ~k.high & j.high, E.low = ne.low ^ ~k.low & j.low;
2110
2111
  }
2111
2112
  var E = g[0], X = d[b];
2112
2113
  E.high ^= X.high, E.low ^= X.low;
@@ -2474,11 +2475,11 @@ function hg() {
2474
2475
  var w = E + b, A = M[w];
2475
2476
  M[w] = (A << 8 | A >>> 24) & 16711935 | (A << 24 | A >>> 8) & 4278255360;
2476
2477
  }
2477
- var C = this._hash.words, I = d.words, F = p.words, z = c.words, L = h.words, U = f.words, H = u.words, K, ee, se, W, P, O, G, ie, k, j;
2478
- O = K = C[0], G = ee = C[1], ie = se = C[2], k = W = C[3], j = P = C[4];
2478
+ var C = this._hash.words, I = d.words, F = p.words, z = c.words, L = h.words, U = f.words, H = u.words, K, ee, re, W, P, O, G, ne, k, j;
2479
+ O = K = C[0], G = ee = C[1], ne = re = C[2], k = W = C[3], j = P = C[4];
2479
2480
  for (var X, b = 0; b < 80; b += 1)
2480
- X = K + M[E + z[b]] | 0, b < 16 ? X += x(ee, se, W) + I[0] : b < 32 ? X += m(ee, se, W) + I[1] : b < 48 ? X += g(ee, se, W) + I[2] : b < 64 ? X += v(ee, se, W) + I[3] : X += y(ee, se, W) + I[4], X = X | 0, X = S(X, U[b]), X = X + P | 0, K = P, P = W, W = S(se, 10), se = ee, ee = X, X = O + M[E + L[b]] | 0, b < 16 ? X += y(G, ie, k) + F[0] : b < 32 ? X += v(G, ie, k) + F[1] : b < 48 ? X += g(G, ie, k) + F[2] : b < 64 ? X += m(G, ie, k) + F[3] : X += x(G, ie, k) + F[4], X = X | 0, X = S(X, H[b]), X = X + j | 0, O = j, j = k, k = S(ie, 10), ie = G, G = X;
2481
- X = C[1] + se + k | 0, C[1] = C[2] + W + j | 0, C[2] = C[3] + P + O | 0, C[3] = C[4] + K + G | 0, C[4] = C[0] + ee + ie | 0, C[0] = X;
2481
+ X = K + M[E + z[b]] | 0, b < 16 ? X += x(ee, re, W) + I[0] : b < 32 ? X += m(ee, re, W) + I[1] : b < 48 ? X += g(ee, re, W) + I[2] : b < 64 ? X += v(ee, re, W) + I[3] : X += y(ee, re, W) + I[4], X = X | 0, X = S(X, U[b]), X = X + P | 0, K = P, P = W, W = S(re, 10), re = ee, ee = X, X = O + M[E + L[b]] | 0, b < 16 ? X += y(G, ne, k) + F[0] : b < 32 ? X += v(G, ne, k) + F[1] : b < 48 ? X += g(G, ne, k) + F[2] : b < 64 ? X += m(G, ne, k) + F[3] : X += x(G, ne, k) + F[4], X = X | 0, X = S(X, H[b]), X = X + j | 0, O = j, j = k, k = S(ne, 10), ne = G, G = X;
2482
+ X = C[1] + re + k | 0, C[1] = C[2] + W + j | 0, C[2] = C[3] + P + O | 0, C[3] = C[4] + K + G | 0, C[4] = C[0] + ee + ne | 0, C[0] = X;
2482
2483
  },
2483
2484
  _doFinalize: function() {
2484
2485
  var M = this._data, E = M.words, b = this._nDataBytes * 8, w = M.sigBytes * 8;
@@ -3576,11 +3577,11 @@ function kg() {
3576
3577
  },
3577
3578
  _doCryptBlock: function(v, y, S, M, E, b, w, A) {
3578
3579
  for (var C = this._nRounds, I = v[y] ^ S[0], F = v[y + 1] ^ S[1], z = v[y + 2] ^ S[2], L = v[y + 3] ^ S[3], U = 4, H = 1; H < C; H++) {
3579
- var K = M[I >>> 24] ^ E[F >>> 16 & 255] ^ b[z >>> 8 & 255] ^ w[L & 255] ^ S[U++], ee = M[F >>> 24] ^ E[z >>> 16 & 255] ^ b[L >>> 8 & 255] ^ w[I & 255] ^ S[U++], se = M[z >>> 24] ^ E[L >>> 16 & 255] ^ b[I >>> 8 & 255] ^ w[F & 255] ^ S[U++], W = M[L >>> 24] ^ E[I >>> 16 & 255] ^ b[F >>> 8 & 255] ^ w[z & 255] ^ S[U++];
3580
- I = K, F = ee, z = se, L = W;
3580
+ var K = M[I >>> 24] ^ E[F >>> 16 & 255] ^ b[z >>> 8 & 255] ^ w[L & 255] ^ S[U++], ee = M[F >>> 24] ^ E[z >>> 16 & 255] ^ b[L >>> 8 & 255] ^ w[I & 255] ^ S[U++], re = M[z >>> 24] ^ E[L >>> 16 & 255] ^ b[I >>> 8 & 255] ^ w[F & 255] ^ S[U++], W = M[L >>> 24] ^ E[I >>> 16 & 255] ^ b[F >>> 8 & 255] ^ w[z & 255] ^ S[U++];
3581
+ I = K, F = ee, z = re, L = W;
3581
3582
  }
3582
- var K = (A[I >>> 24] << 24 | A[F >>> 16 & 255] << 16 | A[z >>> 8 & 255] << 8 | A[L & 255]) ^ S[U++], ee = (A[F >>> 24] << 24 | A[z >>> 16 & 255] << 16 | A[L >>> 8 & 255] << 8 | A[I & 255]) ^ S[U++], se = (A[z >>> 24] << 24 | A[L >>> 16 & 255] << 16 | A[I >>> 8 & 255] << 8 | A[F & 255]) ^ S[U++], W = (A[L >>> 24] << 24 | A[I >>> 16 & 255] << 16 | A[F >>> 8 & 255] << 8 | A[z & 255]) ^ S[U++];
3583
- v[y] = K, v[y + 1] = ee, v[y + 2] = se, v[y + 3] = W;
3583
+ var K = (A[I >>> 24] << 24 | A[F >>> 16 & 255] << 16 | A[z >>> 8 & 255] << 8 | A[L & 255]) ^ S[U++], ee = (A[F >>> 24] << 24 | A[z >>> 16 & 255] << 16 | A[L >>> 8 & 255] << 8 | A[I & 255]) ^ S[U++], re = (A[z >>> 24] << 24 | A[L >>> 16 & 255] << 16 | A[I >>> 8 & 255] << 8 | A[F & 255]) ^ S[U++], W = (A[L >>> 24] << 24 | A[I >>> 16 & 255] << 16 | A[F >>> 8 & 255] << 8 | A[z & 255]) ^ S[U++];
3584
+ v[y] = K, v[y + 1] = ee, v[y + 2] = re, v[y + 3] = W;
3584
3585
  },
3585
3586
  keySize: 256 / 32
3586
3587
  });
@@ -5640,7 +5641,7 @@ function Qg() {
5640
5641
  };
5641
5642
  }
5642
5643
  function e_(r) {
5643
- return `/sdk-workers/${(r.split("/").pop() || r).replace(/\.ts$/, ".js")}?v=1.1.247`;
5644
+ return `/sdk-workers/${(r.split("/").pop() || r).replace(/\.ts$/, ".js")}?v=1.1.249`;
5644
5645
  }
5645
5646
  function t_(r, e) {
5646
5647
  const t = e_(r);
@@ -5883,28 +5884,28 @@ async function o_(r) {
5883
5884
  }
5884
5885
  if (h && t(`[renderByJson] ✅ 颜色匹配图层: name="${P.name}", layerColor="${G}", selectedColor="${h}"`), P.type === "Layer") {
5885
5886
  if (P.imagePath) {
5886
- const ie = s.find((k) => {
5887
+ const ne = s.find((k) => {
5887
5888
  const j = k.sourceName || k.layerName;
5888
5889
  return !j || !P.imagePath ? !1 : j === P.imagePath || j.endsWith(P.imagePath) || P.imagePath.endsWith(j);
5889
5890
  });
5890
- ie && (d[P.imagePath] = {
5891
- url: ie.url
5891
+ ne && (d[P.imagePath] = {
5892
+ url: ne.url
5892
5893
  });
5893
5894
  }
5894
5895
  if (P.name) {
5895
5896
  if (G) {
5896
- const ie = `${G}-${P.name}`, k = s.find((j) => {
5897
+ const ne = `${G}-${P.name}`, k = s.find((j) => {
5897
5898
  const X = j.sourceName || j.layerName;
5898
5899
  return X ? (X.split("/").pop() || X).replace(/\.(png|jpg|jpeg|gif|webp)$/i, "").startsWith(`${G}-${P.name}`) : !1;
5899
5900
  });
5900
- k && (d[ie] = {
5901
+ k && (d[ne] = {
5901
5902
  url: k.url
5902
5903
  });
5903
5904
  }
5904
5905
  if (P.imagePath && P.name) {
5905
- const ie = P.imagePath.split("/").pop() || P.imagePath, k = s.find((j) => {
5906
+ const ne = P.imagePath.split("/").pop() || P.imagePath, k = s.find((j) => {
5906
5907
  const X = j.sourceName || j.layerName;
5907
- return X ? (X.split("/").pop() || X) === ie : !1;
5908
+ return X ? (X.split("/").pop() || X) === ne : !1;
5908
5909
  });
5909
5910
  k && (d[P.imagePath] = {
5910
5911
  url: k.url
@@ -5913,28 +5914,28 @@ async function o_(r) {
5913
5914
  }
5914
5915
  }
5915
5916
  if (P.children)
5916
- for (const ie of P.children)
5917
- ie && x(ie, G);
5917
+ for (const ne of P.children)
5918
+ ne && x(ne, G);
5918
5919
  }
5919
5920
  function m(P, O) {
5920
5921
  const G = P.id ?? O;
5921
5922
  if (P.type === "Group" && G)
5922
5923
  if (t(`[renderByJson] processLayer 检查 Group: name="${P.name}", id=${G}, hasFabricScreenshot=${_.has(G)}`), _.has(G)) {
5923
- const ie = _.get(G);
5924
- if (t(`[renderByJson] ✅ 找到匹配的 fabricScreenshot: Group id=${G}, name="${P.name}", url=${ie.substring(0, 50)}...`), P.children) {
5924
+ const ne = _.get(G);
5925
+ if (t(`[renderByJson] ✅ 找到匹配的 fabricScreenshot: Group id=${G}, name="${P.name}", url=${ne.substring(0, 50)}...`), P.children) {
5925
5926
  t(`[renderByJson] Group "${P.name}" 有 ${P.children.length} 个子图层`);
5926
5927
  for (const k of P.children)
5927
5928
  if (k && k.isSmartObject === !0) {
5928
5929
  const j = k?.name || "";
5929
- t(`[renderByJson] 找到智能对象: name="${j}"`), j && !d[j] && (d[j] = {}), j ? (d[j].designImage = ie, t(`[renderByJson] ✅ 为智能对象 "${j}" 设置 designImage: ${ie.substring(0, 50)}...`)) : n("[renderByJson] ⚠️ 智能对象没有 name,无法设置 designImage");
5930
+ t(`[renderByJson] 找到智能对象: name="${j}"`), j && !d[j] && (d[j] = {}), j ? (d[j].designImage = ne, t(`[renderByJson] ✅ 为智能对象 "${j}" 设置 designImage: ${ne.substring(0, 50)}...`)) : n("[renderByJson] ⚠️ 智能对象没有 name,无法设置 designImage");
5930
5931
  }
5931
5932
  } else
5932
5933
  n(`[renderByJson] ⚠️ Group id=${G} 没有 children`);
5933
5934
  } else
5934
5935
  t(`[renderByJson] ⚠️ Group id=${G}, name="${P.name}" 没有匹配的 fabricScreenshot`);
5935
5936
  if (P.children)
5936
- for (const ie of P.children)
5937
- ie && m(ie, G);
5937
+ for (const ne of P.children)
5938
+ ne && m(ne, G);
5938
5939
  }
5939
5940
  if (i.layerList)
5940
5941
  for (const P of i.layerList)
@@ -5946,17 +5947,17 @@ async function o_(r) {
5946
5947
  if (h && i.layerList) {
5947
5948
  const P = (O) => {
5948
5949
  const G = [];
5949
- for (const ie of O) {
5950
- const k = ie.color;
5950
+ for (const ne of O) {
5951
+ const k = ne.color;
5951
5952
  if (k && String(k) !== h) {
5952
- t(`[renderByJson] 🚫 过滤掉颜色不匹配的图层: name="${ie.name}", color="${k}", selectedColor="${h}"`);
5953
+ t(`[renderByJson] 🚫 过滤掉颜色不匹配的图层: name="${ne.name}", color="${k}", selectedColor="${h}"`);
5953
5954
  continue;
5954
5955
  }
5955
- if (ie.children) {
5956
- const j = P(ie.children);
5957
- G.push({ ...ie, children: j });
5956
+ if (ne.children) {
5957
+ const j = P(ne.children);
5958
+ G.push({ ...ne, children: j });
5958
5959
  } else
5959
- G.push(ie);
5960
+ G.push(ne);
5960
5961
  }
5961
5962
  return G;
5962
5963
  };
@@ -5981,14 +5982,14 @@ async function o_(r) {
5981
5982
  const O = P.url.split("/").pop() || P.url;
5982
5983
  if (d[O])
5983
5984
  return d[O];
5984
- const G = s.find((ie) => {
5985
- const k = ie.sourceName || ie.layerName;
5985
+ const G = s.find((ne) => {
5986
+ const k = ne.sourceName || ne.layerName;
5986
5987
  return !k || !P.url ? !1 : (k.split("/").pop() || k) === O || k === P.url || k.endsWith(P.url) || P.url.endsWith(k);
5987
5988
  });
5988
5989
  if (G) {
5989
- const ie = G.sourceName || G.layerName;
5990
- if (ie)
5991
- return d[ie] || { url: G.url };
5990
+ const ne = G.sourceName || G.layerName;
5991
+ if (ne)
5992
+ return d[ne] || { url: G.url };
5992
5993
  }
5993
5994
  }
5994
5995
  };
@@ -5999,7 +6000,7 @@ async function o_(r) {
5999
6000
  n(`图层 "${O.name}" 没有匹配的 material,跳过`);
6000
6001
  continue;
6001
6002
  }
6002
- const ie = G.url, k = u(ie);
6003
+ const ne = G.url, k = u(ne);
6003
6004
  if (!k) {
6004
6005
  n(`图层 "${O.name}" 没有有效的 url,跳过`);
6005
6006
  continue;
@@ -6013,8 +6014,8 @@ async function o_(r) {
6013
6014
  } else if (O.type === bi.Group) {
6014
6015
  if (!O.smartObjects || O.smartObjects.length === 0)
6015
6016
  continue;
6016
- for (let ie = 0; ie < O.smartObjects.length; ie++) {
6017
- const k = O.smartObjects[ie];
6017
+ for (let ne = 0; ne < O.smartObjects.length; ne++) {
6018
+ const k = O.smartObjects[ne];
6018
6019
  if (!k || !k.name)
6019
6020
  continue;
6020
6021
  let j = d[k.name] ?? G;
@@ -6040,9 +6041,9 @@ async function o_(r) {
6040
6041
  continue;
6041
6042
  X = me;
6042
6043
  }
6043
- const re = (O.partId ?? O.id) * 100 + ie, xe = Wd(Hd(k)), we = { width: E, height: b };
6044
+ const ie = (O.partId ?? O.id) * 100 + ne, xe = Wd(Hd(k)), we = { width: E, height: b };
6044
6045
  C.push({
6045
- index: P + ie * 0.01,
6046
+ index: P + ne * 0.01,
6046
6047
  type: "group",
6047
6048
  partData: O,
6048
6049
  smartObject: k,
@@ -6050,7 +6051,7 @@ async function o_(r) {
6050
6051
  promise: a_(
6051
6052
  X,
6052
6053
  k,
6053
- re,
6054
+ ie,
6054
6055
  we,
6055
6056
  f,
6056
6057
  c
@@ -6063,8 +6064,8 @@ async function o_(r) {
6063
6064
  task: P,
6064
6065
  imageBitmap: F[O]
6065
6066
  })).sort((P, O) => {
6066
- const G = P.task.type === "group" && P.task.smartObject?.layerOrder !== void 0 ? P.task.smartObject.layerOrder : P.task.partData.layerOrder ?? P.task.index, ie = O.task.type === "group" && O.task.smartObject?.layerOrder !== void 0 ? O.task.smartObject.layerOrder : O.task.partData.layerOrder ?? O.task.index;
6067
- return G - ie;
6067
+ const G = P.task.type === "group" && P.task.smartObject?.layerOrder !== void 0 ? P.task.smartObject.layerOrder : P.task.partData.layerOrder ?? P.task.index, ne = O.task.type === "group" && O.task.smartObject?.layerOrder !== void 0 ? O.task.smartObject.layerOrder : O.task.partData.layerOrder ?? O.task.index;
6068
+ return G - ne;
6068
6069
  });
6069
6070
  t(`[renderByJson] 开始绘制 ${z.length} 个图层`);
6070
6071
  let L = dr(E, b), U = ys(L), H = !1, K = "normal";
@@ -6074,28 +6075,28 @@ async function o_(r) {
6074
6075
  n(`[renderByJson] 图层 "${O.partData.name}" 没有 imageBitmap,跳过`);
6075
6076
  continue;
6076
6077
  }
6077
- const { partData: ie } = O, k = ie.bounds;
6078
+ const { partData: ne } = O, k = ne.bounds;
6078
6079
  let j;
6079
- O.type === "group" && O.smartObject ? j = O.smartObject.opacity ?? ie.opacity : j = ie.opacity, (typeof j != "number" || isNaN(j)) && (j = 1);
6080
+ O.type === "group" && O.smartObject ? j = O.smartObject.opacity ?? ne.opacity : j = ne.opacity, (typeof j != "number" || isNaN(j)) && (j = 1);
6080
6081
  let X;
6081
- O.type === "group" && O.smartObject ? X = O.smartObject.clipping ?? ie.clipping === !0 : X = ie.clipping === !0;
6082
- const re = z[P + 1];
6082
+ O.type === "group" && O.smartObject ? X = O.smartObject.clipping ?? ne.clipping === !0 : X = ne.clipping === !0;
6083
+ const ie = z[P + 1];
6083
6084
  let xe = !1;
6084
- if (re) {
6085
- const Ae = re.task.partData;
6086
- re.task.type === "group" && re.task.smartObject ? xe = re.task.smartObject.clipping ?? Ae.clipping === !0 : xe = Ae.clipping === !0;
6085
+ if (ie) {
6086
+ const Ae = ie.task.partData;
6087
+ ie.task.type === "group" && ie.task.smartObject ? xe = ie.task.smartObject.clipping ?? Ae.clipping === !0 : xe = Ae.clipping === !0;
6087
6088
  }
6088
- const we = O.type === "group" && O.smartObject && O.smartObject.name ? O.smartObject.name : ie?.name || "未命名图层";
6089
+ const we = O.type === "group" && O.smartObject && O.smartObject.name ? O.smartObject.name : ne?.name || "未命名图层";
6089
6090
  if (t(`[renderByJson] 绘制图层 "${we}"`, {
6090
6091
  type: O.type,
6091
6092
  bitmapSize: { width: G.width, height: G.height },
6092
6093
  bounds: k,
6093
6094
  hasMask: !!O.maskData,
6094
- blendMode: ie.blendMode,
6095
+ blendMode: ne.blendMode,
6095
6096
  opacity: j,
6096
6097
  clipping: X
6097
6098
  }), !X && xe) {
6098
- if (H = !0, K = ie.blendMode || "normal", U) {
6099
+ if (H = !0, K = ne.blendMode || "normal", U) {
6099
6100
  if (U.clearRect(0, 0, E, b), U.globalCompositeOperation = "source-over", U.globalAlpha = j, O.type === "group" && O.smartObject)
6100
6101
  if (O.maskData) {
6101
6102
  const Ae = dr(E, b), me = ys(Ae);
@@ -6129,7 +6130,7 @@ async function o_(r) {
6129
6130
  U.globalAlpha = 1, U.globalCompositeOperation = "source-over";
6130
6131
  }
6131
6132
  } else {
6132
- if (A.globalCompositeOperation = x0(ie.blendMode), A.globalAlpha = j, O.type === "group" && O.smartObject)
6133
+ if (A.globalCompositeOperation = x0(ne.blendMode), A.globalAlpha = j, O.type === "group" && O.smartObject)
6133
6134
  if (O.maskData) {
6134
6135
  const Ae = dr(E, b), me = ys(Ae);
6135
6136
  me && (me.drawImage(G, 0, 0), ro(me, O.maskData), A.drawImage(Ae, 0, 0));
@@ -6147,28 +6148,28 @@ async function o_(r) {
6147
6148
  H && !xe && (A.globalCompositeOperation = x0(K), A.drawImage(L, 0, 0), A.globalCompositeOperation = "source-over", H = !1);
6148
6149
  }
6149
6150
  L = null, U = null;
6150
- let ee = w, se = E, W = b;
6151
+ let ee = w, re = E, W = b;
6151
6152
  if (o !== void 0 || l !== void 0) {
6152
6153
  if (o !== void 0 && l !== void 0)
6153
- se = o, W = l;
6154
+ re = o, W = l;
6154
6155
  else if (o !== void 0) {
6155
6156
  const O = o / E;
6156
- se = o, W = Math.round(b * O);
6157
+ re = o, W = Math.round(b * O);
6157
6158
  } else if (l !== void 0) {
6158
6159
  const O = l / b;
6159
- se = Math.round(E * O), W = l;
6160
+ re = Math.round(E * O), W = l;
6160
6161
  }
6161
- ee = dr(se, W);
6162
+ ee = dr(re, W);
6162
6163
  const P = ef(ee);
6163
- P.imageSmoothingEnabled = !0, P.imageSmoothingQuality = "high", P.drawImage(w, 0, 0, E, b, 0, 0, se, W), t(`[renderByJson] 已缩放结果: ${E}x${b} -> ${se}x${W}`);
6164
+ P.imageSmoothingEnabled = !0, P.imageSmoothingQuality = "high", P.drawImage(w, 0, 0, E, b, 0, 0, re, W), t(`[renderByJson] 已缩放结果: ${E}x${b} -> ${re}x${W}`);
6164
6165
  }
6165
6166
  return performance.now(), {
6166
6167
  canvas: ee,
6167
- width: se,
6168
+ width: re,
6168
6169
  height: W
6169
6170
  };
6170
6171
  }
6171
- const $c = "184", c_ = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, l_ = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, rp = 0, Bh = 1, sp = 2, h_ = 3, u_ = 0, As = 1, ap = 2, Or = 3, ii = 0, Qt = 1, kn = 2, Hn = 0, Ji = 1, Fh = 2, Lh = 3, Nh = 4, op = 5, f_ = 6, gi = 100, cp = 101, lp = 102, hp = 103, up = 104, fp = 200, dp = 201, pp = 202, xp = 203, Ko = 204, Jo = 205, mp = 206, gp = 207, _p = 208, vp = 209, yp = 210, bp = 211, Mp = 212, Sp = 213, Ep = 214, jo = 0, Qo = 1, ec = 2, er = 3, tc = 4, nc = 5, ic = 6, rc = 7, ea = 0, Ap = 1, wp = 2, Rn = 0, ru = 1, su = 2, au = 3, ou = 4, cu = 5, lu = 6, hu = 7, Uh = "attached", Cp = "detached", Yc = 300, Wn = 301, Mi = 302, ws = 303, Cs = 304, Jr = 306, Ns = 1e3, cn = 1001, Us = 1002, Pt = 1003, uu = 1004, d_ = 1004, kr = 1005, p_ = 1005, yt = 1006, Ts = 1007, x_ = 1007, Vn = 1008, m_ = 1008, an = 1009, fu = 1010, du = 1011, Wr = 1012, Zc = 1013, bn = 1014, Jt = 1015, Xn = 1016, Kc = 1017, Jc = 1018, Xr = 1020, pu = 35902, xu = 35899, mu = 1021, gu = 1022, jt = 1023, qn = 1026, _i = 1027, jc = 1028, ta = 1029, Si = 1030, Qc = 1031, g_ = 1032, el = 1033, Rs = 33776, Ds = 33777, Is = 33778, Ps = 33779, sc = 35840, ac = 35841, oc = 35842, cc = 35843, lc = 36196, hc = 37492, uc = 37496, fc = 37488, dc = 37489, Os = 37490, pc = 37491, xc = 37808, mc = 37809, gc = 37810, _c = 37811, vc = 37812, yc = 37813, bc = 37814, Mc = 37815, Sc = 37816, Ec = 37817, Ac = 37818, wc = 37819, Cc = 37820, Tc = 37821, Rc = 36492, Dc = 36494, Ic = 36495, Pc = 36283, Bc = 36284, ks = 36285, Fc = 36286, Tp = 2200, Rp = 2201, Dp = 2202, zs = 2300, Lc = 2301, Wo = 2302, Oh = 2303, qi = 2400, $i = 2401, Vs = 2402, tl = 2500, _u = 2501, __ = 0, v_ = 1, y_ = 2, Ip = 3200, b_ = 3201, M_ = 3202, S_ = 3203, ri = 0, Pp = 1, ei = "", sn = "srgb", Gs = "srgb-linear", Hs = "linear", ft = "srgb", E_ = "", A_ = "rg", w_ = "ga", C_ = 0, Hi = 7680, T_ = 7681, R_ = 7682, D_ = 7683, I_ = 34055, P_ = 34056, B_ = 5386, F_ = 512, L_ = 513, N_ = 514, U_ = 515, O_ = 516, k_ = 517, z_ = 518, kh = 519, Bp = 512, Fp = 513, Lp = 514, nl = 515, Np = 516, Up = 517, il = 518, Op = 519, Ws = 35044, V_ = 35048, G_ = 35040, H_ = 35045, W_ = 35049, X_ = 35041, q_ = 35046, $_ = 35050, Y_ = 35042, Z_ = "100", zh = "300 es", xn = 2e3, tr = 2001, K_ = {
6172
+ const $c = "184", c_ = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, l_ = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, rp = 0, Bh = 1, sp = 2, h_ = 3, u_ = 0, As = 1, ap = 2, Or = 3, ii = 0, en = 1, kn = 2, Hn = 0, Ji = 1, Fh = 2, Lh = 3, Nh = 4, op = 5, f_ = 6, gi = 100, cp = 101, lp = 102, hp = 103, up = 104, fp = 200, dp = 201, pp = 202, xp = 203, Ko = 204, Jo = 205, mp = 206, gp = 207, _p = 208, vp = 209, yp = 210, bp = 211, Mp = 212, Sp = 213, Ep = 214, jo = 0, Qo = 1, ec = 2, er = 3, tc = 4, nc = 5, ic = 6, rc = 7, ea = 0, Ap = 1, wp = 2, Rn = 0, ru = 1, su = 2, au = 3, ou = 4, cu = 5, lu = 6, hu = 7, Uh = "attached", Cp = "detached", Yc = 300, Wn = 301, Mi = 302, ws = 303, Cs = 304, Jr = 306, Ns = 1e3, ln = 1001, Us = 1002, Pt = 1003, uu = 1004, d_ = 1004, kr = 1005, p_ = 1005, vt = 1006, Ts = 1007, x_ = 1007, Vn = 1008, m_ = 1008, on = 1009, fu = 1010, du = 1011, Wr = 1012, Zc = 1013, bn = 1014, jt = 1015, Xn = 1016, Kc = 1017, Jc = 1018, Xr = 1020, pu = 35902, xu = 35899, mu = 1021, gu = 1022, Qt = 1023, qn = 1026, _i = 1027, jc = 1028, ta = 1029, Si = 1030, Qc = 1031, g_ = 1032, el = 1033, Rs = 33776, Ds = 33777, Is = 33778, Ps = 33779, sc = 35840, ac = 35841, oc = 35842, cc = 35843, lc = 36196, hc = 37492, uc = 37496, fc = 37488, dc = 37489, Os = 37490, pc = 37491, xc = 37808, mc = 37809, gc = 37810, _c = 37811, vc = 37812, yc = 37813, bc = 37814, Mc = 37815, Sc = 37816, Ec = 37817, Ac = 37818, wc = 37819, Cc = 37820, Tc = 37821, Rc = 36492, Dc = 36494, Ic = 36495, Pc = 36283, Bc = 36284, ks = 36285, Fc = 36286, Tp = 2200, Rp = 2201, Dp = 2202, zs = 2300, Lc = 2301, Wo = 2302, Oh = 2303, qi = 2400, $i = 2401, Vs = 2402, tl = 2500, _u = 2501, __ = 0, v_ = 1, y_ = 2, Ip = 3200, b_ = 3201, M_ = 3202, S_ = 3203, ri = 0, Pp = 1, ei = "", an = "srgb", Gs = "srgb-linear", Hs = "linear", ft = "srgb", E_ = "", A_ = "rg", w_ = "ga", C_ = 0, Hi = 7680, T_ = 7681, R_ = 7682, D_ = 7683, I_ = 34055, P_ = 34056, B_ = 5386, F_ = 512, L_ = 513, N_ = 514, U_ = 515, O_ = 516, k_ = 517, z_ = 518, kh = 519, Bp = 512, Fp = 513, Lp = 514, nl = 515, Np = 516, Up = 517, il = 518, Op = 519, Ws = 35044, V_ = 35048, G_ = 35040, H_ = 35045, W_ = 35049, X_ = 35041, q_ = 35046, $_ = 35050, Y_ = 35042, Z_ = "100", zh = "300 es", xn = 2e3, tr = 2001, K_ = {
6172
6173
  COMPUTE: "compute",
6173
6174
  RENDER: "render"
6174
6175
  }, J_ = {
@@ -6428,7 +6429,7 @@ function b1(r, e, t, n, i) {
6428
6429
  Ee("MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: " + i);
6429
6430
  }
6430
6431
  }
6431
- function Kt(r, e) {
6432
+ function Jt(r, e) {
6432
6433
  switch (e.constructor) {
6433
6434
  case Float32Array:
6434
6435
  return r;
@@ -6710,7 +6711,7 @@ const M1 = {
6710
6711
  * @param {TypedArray} array - The typed array that defines the data type of the value.
6711
6712
  * @return {number} The denormalize (float) value in the range `[0,1]`.
6712
6713
  */
6713
- denormalize: Kt
6714
+ denormalize: Jt
6714
6715
  }, Qu = class Qu {
6715
6716
  /**
6716
6717
  * Constructs a new 2D vector.
@@ -7252,7 +7253,7 @@ const M1 = {
7252
7253
  };
7253
7254
  Qu.prototype.isVector2 = !0;
7254
7255
  let he = Qu;
7255
- class en {
7256
+ class tn {
7256
7257
  /**
7257
7258
  * Constructs a new quaternion.
7258
7259
  *
@@ -8449,7 +8450,7 @@ const e0 = class e0 {
8449
8450
  };
8450
8451
  e0.prototype.isVector3 = !0;
8451
8452
  let B = e0;
8452
- const Fl = /* @__PURE__ */ new B(), rf = /* @__PURE__ */ new en(), t0 = class t0 {
8453
+ const Fl = /* @__PURE__ */ new B(), rf = /* @__PURE__ */ new tn(), t0 = class t0 {
8453
8454
  /**
8454
8455
  * Constructs a new 3x3 matrix. The arguments are supposed to be
8455
8456
  * in row-major order. If no arguments are provided, the constructor
@@ -8915,17 +8916,17 @@ function S1() {
8915
8916
  toXYZ: sf,
8916
8917
  fromXYZ: af,
8917
8918
  luminanceCoefficients: t,
8918
- workingColorSpaceConfig: { unpackColorSpace: sn },
8919
- outputColorSpaceConfig: { drawingBufferColorSpace: sn }
8919
+ workingColorSpaceConfig: { unpackColorSpace: an },
8920
+ outputColorSpaceConfig: { drawingBufferColorSpace: an }
8920
8921
  },
8921
- [sn]: {
8922
+ [an]: {
8922
8923
  primaries: e,
8923
8924
  whitePoint: n,
8924
8925
  transfer: ft,
8925
8926
  toXYZ: sf,
8926
8927
  fromXYZ: af,
8927
8928
  luminanceCoefficients: t,
8928
- outputColorSpaceConfig: { drawingBufferColorSpace: sn }
8929
+ outputColorSpaceConfig: { drawingBufferColorSpace: an }
8929
8930
  }
8930
8931
  }), r;
8931
8932
  }
@@ -9057,7 +9058,7 @@ function Nl(r) {
9057
9058
  }
9058
9059
  let A1 = 0;
9059
9060
  const Ul = /* @__PURE__ */ new B();
9060
- class wt extends Pn {
9061
+ class Et extends Pn {
9061
9062
  /**
9062
9063
  * Constructs a new texture.
9063
9064
  *
@@ -9072,7 +9073,7 @@ class wt extends Pn {
9072
9073
  * @param {number} [anisotropy=Texture.DEFAULT_ANISOTROPY] - The anisotropy value.
9073
9074
  * @param {string} [colorSpace=NoColorSpace] - The color space.
9074
9075
  */
9075
- constructor(e = wt.DEFAULT_IMAGE, t = wt.DEFAULT_MAPPING, n = cn, i = cn, s = yt, a = Vn, o = jt, l = an, c = wt.DEFAULT_ANISOTROPY, h = ei) {
9076
+ constructor(e = Et.DEFAULT_IMAGE, t = Et.DEFAULT_MAPPING, n = ln, i = ln, s = vt, a = Vn, o = Qt, l = on, c = Et.DEFAULT_ANISOTROPY, h = ei) {
9076
9077
  super(), this.isTexture = !0, Object.defineProperty(this, "id", { value: A1++ }), this.uuid = mn(), this.name = "", this.source = new vi(e), this.mipmaps = [], this.mapping = t, this.channel = 0, this.wrapS = n, this.wrapT = i, this.magFilter = s, this.minFilter = a, this.anisotropy = c, this.format = o, this.internalFormat = null, this.type = l, this.offset = new he(0, 0), this.repeat = new he(1, 1), this.center = new he(0, 0), this.rotation = 0, this.matrixAutoUpdate = !0, this.matrix = new Ke(), this.generateMipmaps = !0, this.premultiplyAlpha = !1, this.flipY = !0, this.unpackAlignment = 4, this.colorSpace = h, this.userData = {}, this.updateRanges = [], this.version = 0, this.onUpdate = null, this.renderTarget = null, this.isRenderTargetTexture = !1, this.isArrayTexture = !!(e && e.depth && e.depth > 1), this.pmremVersion = 0, this.normalized = !1;
9077
9078
  }
9078
9079
  /**
@@ -9226,7 +9227,7 @@ class wt extends Pn {
9226
9227
  case Ns:
9227
9228
  e.x = e.x - Math.floor(e.x);
9228
9229
  break;
9229
- case cn:
9230
+ case ln:
9230
9231
  e.x = e.x < 0 ? 0 : 1;
9231
9232
  break;
9232
9233
  case Us:
@@ -9238,7 +9239,7 @@ class wt extends Pn {
9238
9239
  case Ns:
9239
9240
  e.y = e.y - Math.floor(e.y);
9240
9241
  break;
9241
- case cn:
9242
+ case ln:
9242
9243
  e.y = e.y < 0 ? 0 : 1;
9243
9244
  break;
9244
9245
  case Us:
@@ -9271,9 +9272,9 @@ class wt extends Pn {
9271
9272
  e === !0 && this.pmremVersion++;
9272
9273
  }
9273
9274
  }
9274
- wt.DEFAULT_IMAGE = null;
9275
- wt.DEFAULT_MAPPING = Yc;
9276
- wt.DEFAULT_ANISOTROPY = 1;
9275
+ Et.DEFAULT_IMAGE = null;
9276
+ Et.DEFAULT_MAPPING = Yc;
9277
+ Et.DEFAULT_ANISOTROPY = 1;
9277
9278
  const n0 = class n0 {
9278
9279
  /**
9279
9280
  * Constructs a new 4D vector.
@@ -9857,7 +9858,7 @@ class yu extends Pn {
9857
9858
  super(), n = Object.assign({
9858
9859
  generateMipmaps: !1,
9859
9860
  internalFormat: null,
9860
- minFilter: yt,
9861
+ minFilter: vt,
9861
9862
  depthBuffer: !0,
9862
9863
  stencilBuffer: !1,
9863
9864
  resolveDepthBuffer: !0,
@@ -9868,14 +9869,14 @@ class yu extends Pn {
9868
9869
  depth: 1,
9869
9870
  multiview: !1
9870
9871
  }, n), this.isRenderTarget = !0, this.width = e, this.height = t, this.depth = n.depth, this.scissor = new dt(0, 0, e, t), this.scissorTest = !1, this.viewport = new dt(0, 0, e, t), this.textures = [];
9871
- const i = { width: e, height: t, depth: n.depth }, s = new wt(i), a = n.count;
9872
+ const i = { width: e, height: t, depth: n.depth }, s = new Et(i), a = n.count;
9872
9873
  for (let o = 0; o < a; o++)
9873
9874
  this.textures[o] = s.clone(), this.textures[o].isRenderTargetTexture = !0, this.textures[o].renderTarget = this;
9874
9875
  this._setTextureOptions(n), this.depthBuffer = n.depthBuffer, this.stencilBuffer = n.stencilBuffer, this.resolveDepthBuffer = n.resolveDepthBuffer, this.resolveStencilBuffer = n.resolveStencilBuffer, this._depthTexture = null, this.depthTexture = n.depthTexture, this.samples = n.samples, this.multiview = n.multiview;
9875
9876
  }
9876
9877
  _setTextureOptions(e = {}) {
9877
9878
  const t = {
9878
- minFilter: yt,
9879
+ minFilter: vt,
9879
9880
  generateMipmaps: !1,
9880
9881
  flipY: !1,
9881
9882
  internalFormat: null
@@ -9972,7 +9973,7 @@ class gn extends yu {
9972
9973
  super(e, t, n), this.isWebGLRenderTarget = !0;
9973
9974
  }
9974
9975
  }
9975
- class rl extends wt {
9976
+ class rl extends Et {
9976
9977
  /**
9977
9978
  * Constructs a new data array texture.
9978
9979
  *
@@ -9982,7 +9983,7 @@ class rl extends wt {
9982
9983
  * @param {number} [depth=1] - The depth of the texture.
9983
9984
  */
9984
9985
  constructor(e = null, t = 1, n = 1, i = 1) {
9985
- super(null), this.isDataArrayTexture = !0, this.image = { data: e, width: t, height: n, depth: i }, this.magFilter = Pt, this.minFilter = Pt, this.wrapR = cn, this.generateMipmaps = !1, this.flipY = !1, this.unpackAlignment = 1, this.layerUpdates = /* @__PURE__ */ new Set();
9986
+ super(null), this.isDataArrayTexture = !0, this.image = { data: e, width: t, height: n, depth: i }, this.magFilter = Pt, this.minFilter = Pt, this.wrapR = ln, this.generateMipmaps = !1, this.flipY = !1, this.unpackAlignment = 1, this.layerUpdates = /* @__PURE__ */ new Set();
9986
9987
  }
9987
9988
  /**
9988
9989
  * Describes that a specific layer of the texture needs to be updated.
@@ -10016,7 +10017,7 @@ class w1 extends gn {
10016
10017
  super(e, t, i), this.isWebGLArrayRenderTarget = !0, this.depth = n, this.texture = new rl(null, e, t, n), this._setTextureOptions(i), this.texture.isRenderTargetTexture = !0;
10017
10018
  }
10018
10019
  }
10019
- class sl extends wt {
10020
+ class sl extends Et {
10020
10021
  /**
10021
10022
  * Constructs a new data array texture.
10022
10023
  *
@@ -10026,7 +10027,7 @@ class sl extends wt {
10026
10027
  * @param {number} [depth=1] - The depth of the texture.
10027
10028
  */
10028
10029
  constructor(e = null, t = 1, n = 1, i = 1) {
10029
- super(null), this.isData3DTexture = !0, this.image = { data: e, width: t, height: n, depth: i }, this.magFilter = Pt, this.minFilter = Pt, this.wrapR = cn, this.generateMipmaps = !1, this.flipY = !1, this.unpackAlignment = 1;
10030
+ super(null), this.isData3DTexture = !0, this.image = { data: e, width: t, height: n, depth: i }, this.magFilter = Pt, this.minFilter = Pt, this.wrapR = ln, this.generateMipmaps = !1, this.flipY = !1, this.unpackAlignment = 1;
10030
10031
  }
10031
10032
  }
10032
10033
  class C1 extends gn {
@@ -10330,8 +10331,8 @@ const Hc = class Hc {
10330
10331
  * @return {Matrix4} A reference to this matrix.
10331
10332
  */
10332
10333
  multiplyMatrices(e, t) {
10333
- const n = e.elements, i = t.elements, s = this.elements, a = n[0], o = n[4], l = n[8], c = n[12], h = n[1], f = n[5], u = n[9], d = n[13], p = n[2], _ = n[6], x = n[10], m = n[14], g = n[3], v = n[7], y = n[11], S = n[15], M = i[0], E = i[4], b = i[8], w = i[12], A = i[1], C = i[5], I = i[9], F = i[13], z = i[2], L = i[6], U = i[10], H = i[14], K = i[3], ee = i[7], se = i[11], W = i[15];
10334
- return s[0] = a * M + o * A + l * z + c * K, s[4] = a * E + o * C + l * L + c * ee, s[8] = a * b + o * I + l * U + c * se, s[12] = a * w + o * F + l * H + c * W, s[1] = h * M + f * A + u * z + d * K, s[5] = h * E + f * C + u * L + d * ee, s[9] = h * b + f * I + u * U + d * se, s[13] = h * w + f * F + u * H + d * W, s[2] = p * M + _ * A + x * z + m * K, s[6] = p * E + _ * C + x * L + m * ee, s[10] = p * b + _ * I + x * U + m * se, s[14] = p * w + _ * F + x * H + m * W, s[3] = g * M + v * A + y * z + S * K, s[7] = g * E + v * C + y * L + S * ee, s[11] = g * b + v * I + y * U + S * se, s[15] = g * w + v * F + y * H + S * W, this;
10334
+ const n = e.elements, i = t.elements, s = this.elements, a = n[0], o = n[4], l = n[8], c = n[12], h = n[1], f = n[5], u = n[9], d = n[13], p = n[2], _ = n[6], x = n[10], m = n[14], g = n[3], v = n[7], y = n[11], S = n[15], M = i[0], E = i[4], b = i[8], w = i[12], A = i[1], C = i[5], I = i[9], F = i[13], z = i[2], L = i[6], U = i[10], H = i[14], K = i[3], ee = i[7], re = i[11], W = i[15];
10335
+ return s[0] = a * M + o * A + l * z + c * K, s[4] = a * E + o * C + l * L + c * ee, s[8] = a * b + o * I + l * U + c * re, s[12] = a * w + o * F + l * H + c * W, s[1] = h * M + f * A + u * z + d * K, s[5] = h * E + f * C + u * L + d * ee, s[9] = h * b + f * I + u * U + d * re, s[13] = h * w + f * F + u * H + d * W, s[2] = p * M + _ * A + x * z + m * K, s[6] = p * E + _ * C + x * L + m * ee, s[10] = p * b + _ * I + x * U + m * re, s[14] = p * w + _ * F + x * H + m * W, s[3] = g * M + v * A + y * z + S * K, s[7] = g * E + v * C + y * L + S * ee, s[11] = g * b + v * I + y * U + S * re, s[15] = g * w + v * F + y * H + S * W, this;
10335
10336
  }
10336
10337
  /**
10337
10338
  * Multiplies every component of the matrix by the given scalar.
@@ -10760,7 +10761,7 @@ const Hc = class Hc {
10760
10761
  };
10761
10762
  Hc.prototype.isMatrix4 = !0;
10762
10763
  let $e = Hc;
10763
- const xr = /* @__PURE__ */ new B(), En = /* @__PURE__ */ new $e(), T1 = /* @__PURE__ */ new B(0, 0, 0), R1 = /* @__PURE__ */ new B(1, 1, 1), li = /* @__PURE__ */ new B(), ua = /* @__PURE__ */ new B(), fn = /* @__PURE__ */ new B(), of = /* @__PURE__ */ new $e(), cf = /* @__PURE__ */ new en();
10764
+ const xr = /* @__PURE__ */ new B(), En = /* @__PURE__ */ new $e(), T1 = /* @__PURE__ */ new B(0, 0, 0), R1 = /* @__PURE__ */ new B(1, 1, 1), li = /* @__PURE__ */ new B(), ua = /* @__PURE__ */ new B(), fn = /* @__PURE__ */ new B(), of = /* @__PURE__ */ new $e(), cf = /* @__PURE__ */ new tn();
10764
10765
  class In {
10765
10766
  /**
10766
10767
  * Constructs a new euler instance.
@@ -11032,14 +11033,14 @@ class al {
11032
11033
  }
11033
11034
  }
11034
11035
  let D1 = 0;
11035
- const lf = /* @__PURE__ */ new B(), mr = /* @__PURE__ */ new en(), Yn = /* @__PURE__ */ new $e(), fa = /* @__PURE__ */ new B(), rs = /* @__PURE__ */ new B(), I1 = /* @__PURE__ */ new B(), P1 = /* @__PURE__ */ new en(), hf = /* @__PURE__ */ new B(1, 0, 0), uf = /* @__PURE__ */ new B(0, 1, 0), ff = /* @__PURE__ */ new B(0, 0, 1), df = { type: "added" }, B1 = { type: "removed" }, gr = { type: "childadded", child: null }, Ol = { type: "childremoved", child: null };
11036
+ const lf = /* @__PURE__ */ new B(), mr = /* @__PURE__ */ new tn(), Yn = /* @__PURE__ */ new $e(), fa = /* @__PURE__ */ new B(), rs = /* @__PURE__ */ new B(), I1 = /* @__PURE__ */ new B(), P1 = /* @__PURE__ */ new tn(), hf = /* @__PURE__ */ new B(1, 0, 0), uf = /* @__PURE__ */ new B(0, 1, 0), ff = /* @__PURE__ */ new B(0, 0, 1), df = { type: "added" }, B1 = { type: "removed" }, gr = { type: "childadded", child: null }, Ol = { type: "childremoved", child: null };
11036
11037
  class ht extends Pn {
11037
11038
  /**
11038
11039
  * Constructs a new 3D object.
11039
11040
  */
11040
11041
  constructor() {
11041
11042
  super(), this.isObject3D = !0, Object.defineProperty(this, "id", { value: D1++ }), this.uuid = mn(), this.name = "", this.type = "Object3D", this.parent = null, this.children = [], this.up = ht.DEFAULT_UP.clone();
11042
- const e = new B(), t = new In(), n = new en(), i = new B(1, 1, 1);
11043
+ const e = new B(), t = new In(), n = new tn(), i = new B(1, 1, 1);
11043
11044
  function s() {
11044
11045
  n.setFromEuler(t, !1);
11045
11046
  }
@@ -12024,7 +12025,7 @@ class Be {
12024
12025
  * @param {string} [colorSpace=SRGBColorSpace] - The color space.
12025
12026
  * @return {Color} A reference to this color.
12026
12027
  */
12027
- setHex(e, t = sn) {
12028
+ setHex(e, t = an) {
12028
12029
  return e = Math.floor(e), this.r = (e >> 16 & 255) / 255, this.g = (e >> 8 & 255) / 255, this.b = (e & 255) / 255, rt.colorSpaceToWorking(this, t), this;
12029
12030
  }
12030
12031
  /**
@@ -12067,7 +12068,7 @@ class Be {
12067
12068
  * @param {string} [colorSpace=SRGBColorSpace] - The color space.
12068
12069
  * @return {Color} A reference to this color.
12069
12070
  */
12070
- setStyle(e, t = sn) {
12071
+ setStyle(e, t = an) {
12071
12072
  function n(s) {
12072
12073
  s !== void 0 && parseFloat(s) < 1 && Ee("Color: Alpha component of " + e + " will be ignored.");
12073
12074
  }
@@ -12135,7 +12136,7 @@ class Be {
12135
12136
  * @param {string} [colorSpace=SRGBColorSpace] - The color space.
12136
12137
  * @return {Color} A reference to this color.
12137
12138
  */
12138
- setColorName(e, t = sn) {
12139
+ setColorName(e, t = an) {
12139
12140
  const n = Hp[e.toLowerCase()];
12140
12141
  return n !== void 0 ? this.setHex(n, t) : Ee("Color: Unknown color " + e), this;
12141
12142
  }
@@ -12198,7 +12199,7 @@ class Be {
12198
12199
  * @param {string} [colorSpace=SRGBColorSpace] - The color space.
12199
12200
  * @return {number} The hexadecimal value.
12200
12201
  */
12201
- getHex(e = sn) {
12202
+ getHex(e = an) {
12202
12203
  return rt.workingToColorSpace(Wt.copy(this), e), Math.round(qe(Wt.r * 255, 0, 255)) * 65536 + Math.round(qe(Wt.g * 255, 0, 255)) * 256 + Math.round(qe(Wt.b * 255, 0, 255));
12203
12204
  }
12204
12205
  /**
@@ -12207,7 +12208,7 @@ class Be {
12207
12208
  * @param {string} [colorSpace=SRGBColorSpace] - The color space.
12208
12209
  * @return {string} The hexadecimal value as a string.
12209
12210
  */
12210
- getHexString(e = sn) {
12211
+ getHexString(e = an) {
12211
12212
  return ("000000" + this.getHex(e).toString(16)).slice(-6);
12212
12213
  }
12213
12214
  /**
@@ -12258,10 +12259,10 @@ class Be {
12258
12259
  * @param {string} [colorSpace=SRGBColorSpace] - The color space.
12259
12260
  * @return {string} The CSS representation of this color.
12260
12261
  */
12261
- getStyle(e = sn) {
12262
+ getStyle(e = an) {
12262
12263
  rt.workingToColorSpace(Wt.copy(this), e);
12263
12264
  const t = Wt.r, n = Wt.g, i = Wt.b;
12264
- return e !== sn ? `color(${e} ${t.toFixed(3)} ${n.toFixed(3)} ${i.toFixed(3)})` : `rgb(${Math.round(t * 255)},${Math.round(n * 255)},${Math.round(i * 255)})`;
12265
+ return e !== an ? `color(${e} ${t.toFixed(3)} ${n.toFixed(3)} ${i.toFixed(3)})` : `rgb(${Math.round(t * 255)},${Math.round(n * 255)},${Math.round(i * 255)})`;
12265
12266
  }
12266
12267
  /**
12267
12268
  * Adds the given HSL values to this color's values.
@@ -12530,7 +12531,7 @@ class bu extends ht {
12530
12531
  }
12531
12532
  }
12532
12533
  const An = /* @__PURE__ */ new B(), Zn = /* @__PURE__ */ new B(), zl = /* @__PURE__ */ new B(), Kn = /* @__PURE__ */ new B(), _r = /* @__PURE__ */ new B(), vr = /* @__PURE__ */ new B(), pf = /* @__PURE__ */ new B(), Vl = /* @__PURE__ */ new B(), Gl = /* @__PURE__ */ new B(), Hl = /* @__PURE__ */ new B(), Wl = /* @__PURE__ */ new dt(), Xl = /* @__PURE__ */ new dt(), ql = /* @__PURE__ */ new dt();
12533
- class on {
12534
+ class cn {
12534
12535
  /**
12535
12536
  * Constructs a new triangle.
12536
12537
  *
@@ -12707,7 +12708,7 @@ class on {
12707
12708
  * @return {Vector3} The triangle's normal.
12708
12709
  */
12709
12710
  getNormal(e) {
12710
- return on.getNormal(this.a, this.b, this.c, e);
12711
+ return cn.getNormal(this.a, this.b, this.c, e);
12711
12712
  }
12712
12713
  /**
12713
12714
  * Computes a plane the triangle lies within.
@@ -12727,7 +12728,7 @@ class on {
12727
12728
  * @return {?Vector3} The barycentric coordinates for the given point
12728
12729
  */
12729
12730
  getBarycoord(e, t) {
12730
- return on.getBarycoord(e, this.a, this.b, this.c, t);
12731
+ return cn.getBarycoord(e, this.a, this.b, this.c, t);
12731
12732
  }
12732
12733
  /**
12733
12734
  * Computes the value barycentrically interpolated for the given point on the
@@ -12741,7 +12742,7 @@ class on {
12741
12742
  * @return {?Vector3} The interpolated value.
12742
12743
  */
12743
12744
  getInterpolation(e, t, n, i, s) {
12744
- return on.getInterpolation(e, this.a, this.b, this.c, t, n, i, s);
12745
+ return cn.getInterpolation(e, this.a, this.b, this.c, t, n, i, s);
12745
12746
  }
12746
12747
  /**
12747
12748
  * Returns `true` if the given point, when projected onto the plane of the
@@ -12752,7 +12753,7 @@ class on {
12752
12753
  * triangle, lies within the triangle or not.
12753
12754
  */
12754
12755
  containsPoint(e) {
12755
- return on.containsPoint(e, this.a, this.b, this.c);
12756
+ return cn.containsPoint(e, this.a, this.b, this.c);
12756
12757
  }
12757
12758
  /**
12758
12759
  * Returns `true` if the triangle is oriented towards the given direction.
@@ -12761,7 +12762,7 @@ class on {
12761
12762
  * @return {boolean} Whether the triangle is oriented towards the given direction or not.
12762
12763
  */
12763
12764
  isFrontFacing(e) {
12764
- return on.isFrontFacing(this.a, this.b, this.c, e);
12765
+ return cn.isFrontFacing(this.a, this.b, this.c, e);
12765
12766
  }
12766
12767
  /**
12767
12768
  * Returns `true` if this triangle intersects with the given box.
@@ -12816,7 +12817,7 @@ class on {
12816
12817
  return e.a.equals(this.a) && e.b.equals(this.b) && e.c.equals(this.c);
12817
12818
  }
12818
12819
  }
12819
- class qt {
12820
+ class $t {
12820
12821
  /**
12821
12822
  * Constructs a new bounding box.
12822
12823
  *
@@ -13225,7 +13226,7 @@ const Jn = [
13225
13226
  /* @__PURE__ */ new B(),
13226
13227
  /* @__PURE__ */ new B(),
13227
13228
  /* @__PURE__ */ new B()
13228
- ], wn = /* @__PURE__ */ new B(), pa = /* @__PURE__ */ new qt(), yr = /* @__PURE__ */ new B(), br = /* @__PURE__ */ new B(), Mr = /* @__PURE__ */ new B(), ui = /* @__PURE__ */ new B(), fi = /* @__PURE__ */ new B(), Ii = /* @__PURE__ */ new B(), ss = /* @__PURE__ */ new B(), xa = /* @__PURE__ */ new B(), ma = /* @__PURE__ */ new B(), Pi = /* @__PURE__ */ new B();
13229
+ ], wn = /* @__PURE__ */ new B(), pa = /* @__PURE__ */ new $t(), yr = /* @__PURE__ */ new B(), br = /* @__PURE__ */ new B(), Mr = /* @__PURE__ */ new B(), ui = /* @__PURE__ */ new B(), fi = /* @__PURE__ */ new B(), Ii = /* @__PURE__ */ new B(), ss = /* @__PURE__ */ new B(), xa = /* @__PURE__ */ new B(), ma = /* @__PURE__ */ new B(), Pi = /* @__PURE__ */ new B();
13229
13230
  function $l(r, e, t, n, i) {
13230
13231
  for (let s = 0, a = r.length - 3; s <= a; s += 3) {
13231
13232
  Pi.fromArray(r, s);
@@ -13269,7 +13270,7 @@ function L1() {
13269
13270
  offsetTable: o
13270
13271
  };
13271
13272
  }
13272
- function rn(r) {
13273
+ function sn(r) {
13273
13274
  Math.abs(r) > 65504 && Ee("DataUtils.toHalfFloat(): Value out of range."), r = qe(r, -65504, 65504), ti.floatView[0] = r;
13274
13275
  const e = ti.uint32View[0], t = e >> 23 & 511;
13275
13276
  return ti.baseTable[t] + ((e & 8388607) >> ti.shiftTable[t]);
@@ -13287,7 +13288,7 @@ class N1 {
13287
13288
  * @return {number} The FP16 value.
13288
13289
  */
13289
13290
  static toHalfFloat(e) {
13290
- return rn(e);
13291
+ return sn(e);
13291
13292
  }
13292
13293
  /**
13293
13294
  * Returns a single precision floating point value (FP32) from the given half
@@ -13313,7 +13314,7 @@ class xt extends Pn {
13313
13314
  constructor(e, t, n = !1) {
13314
13315
  if (super(), Array.isArray(e))
13315
13316
  throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");
13316
- this.isBufferAttribute = !0, Object.defineProperty(this, "id", { value: U1++ }), this.name = "", this.array = e, this.itemSize = t, this.count = e !== void 0 ? e.length / t : 0, this.normalized = n, this.usage = Ws, this.updateRanges = [], this.gpuType = Jt, this.version = 0;
13317
+ this.isBufferAttribute = !0, Object.defineProperty(this, "id", { value: U1++ }), this.name = "", this.array = e, this.itemSize = t, this.count = e !== void 0 ? e.length / t : 0, this.normalized = n, this.usage = Ws, this.updateRanges = [], this.gpuType = jt, this.version = 0;
13317
13318
  }
13318
13319
  /**
13319
13320
  * A callback function that is executed after the renderer has transferred the attribute
@@ -13461,7 +13462,7 @@ class xt extends Pn {
13461
13462
  */
13462
13463
  getComponent(e, t) {
13463
13464
  let n = this.array[e * this.itemSize + t];
13464
- return this.normalized && (n = Kt(n, this.array)), n;
13465
+ return this.normalized && (n = Jt(n, this.array)), n;
13465
13466
  }
13466
13467
  /**
13467
13468
  * Sets the given value to the given component of the vector at the given index.
@@ -13482,7 +13483,7 @@ class xt extends Pn {
13482
13483
  */
13483
13484
  getX(e) {
13484
13485
  let t = this.array[e * this.itemSize];
13485
- return this.normalized && (t = Kt(t, this.array)), t;
13486
+ return this.normalized && (t = Jt(t, this.array)), t;
13486
13487
  }
13487
13488
  /**
13488
13489
  * Sets the x component of the vector at the given index.
@@ -13502,7 +13503,7 @@ class xt extends Pn {
13502
13503
  */
13503
13504
  getY(e) {
13504
13505
  let t = this.array[e * this.itemSize + 1];
13505
- return this.normalized && (t = Kt(t, this.array)), t;
13506
+ return this.normalized && (t = Jt(t, this.array)), t;
13506
13507
  }
13507
13508
  /**
13508
13509
  * Sets the y component of the vector at the given index.
@@ -13522,7 +13523,7 @@ class xt extends Pn {
13522
13523
  */
13523
13524
  getZ(e) {
13524
13525
  let t = this.array[e * this.itemSize + 2];
13525
- return this.normalized && (t = Kt(t, this.array)), t;
13526
+ return this.normalized && (t = Jt(t, this.array)), t;
13526
13527
  }
13527
13528
  /**
13528
13529
  * Sets the z component of the vector at the given index.
@@ -13542,7 +13543,7 @@ class xt extends Pn {
13542
13543
  */
13543
13544
  getW(e) {
13544
13545
  let t = this.array[e * this.itemSize + 3];
13545
- return this.normalized && (t = Kt(t, this.array)), t;
13546
+ return this.normalized && (t = Jt(t, this.array)), t;
13546
13547
  }
13547
13548
  /**
13548
13549
  * Sets the w component of the vector at the given index.
@@ -13727,40 +13728,40 @@ class H1 extends xt {
13727
13728
  }
13728
13729
  getX(e) {
13729
13730
  let t = bs(this.array[e * this.itemSize]);
13730
- return this.normalized && (t = Kt(t, this.array)), t;
13731
+ return this.normalized && (t = Jt(t, this.array)), t;
13731
13732
  }
13732
13733
  setX(e, t) {
13733
- return this.normalized && (t = et(t, this.array)), this.array[e * this.itemSize] = rn(t), this;
13734
+ return this.normalized && (t = et(t, this.array)), this.array[e * this.itemSize] = sn(t), this;
13734
13735
  }
13735
13736
  getY(e) {
13736
13737
  let t = bs(this.array[e * this.itemSize + 1]);
13737
- return this.normalized && (t = Kt(t, this.array)), t;
13738
+ return this.normalized && (t = Jt(t, this.array)), t;
13738
13739
  }
13739
13740
  setY(e, t) {
13740
- return this.normalized && (t = et(t, this.array)), this.array[e * this.itemSize + 1] = rn(t), this;
13741
+ return this.normalized && (t = et(t, this.array)), this.array[e * this.itemSize + 1] = sn(t), this;
13741
13742
  }
13742
13743
  getZ(e) {
13743
13744
  let t = bs(this.array[e * this.itemSize + 2]);
13744
- return this.normalized && (t = Kt(t, this.array)), t;
13745
+ return this.normalized && (t = Jt(t, this.array)), t;
13745
13746
  }
13746
13747
  setZ(e, t) {
13747
- return this.normalized && (t = et(t, this.array)), this.array[e * this.itemSize + 2] = rn(t), this;
13748
+ return this.normalized && (t = et(t, this.array)), this.array[e * this.itemSize + 2] = sn(t), this;
13748
13749
  }
13749
13750
  getW(e) {
13750
13751
  let t = bs(this.array[e * this.itemSize + 3]);
13751
- return this.normalized && (t = Kt(t, this.array)), t;
13752
+ return this.normalized && (t = Jt(t, this.array)), t;
13752
13753
  }
13753
13754
  setW(e, t) {
13754
- return this.normalized && (t = et(t, this.array)), this.array[e * this.itemSize + 3] = rn(t), this;
13755
+ return this.normalized && (t = et(t, this.array)), this.array[e * this.itemSize + 3] = sn(t), this;
13755
13756
  }
13756
13757
  setXY(e, t, n) {
13757
- return e *= this.itemSize, this.normalized && (t = et(t, this.array), n = et(n, this.array)), this.array[e + 0] = rn(t), this.array[e + 1] = rn(n), this;
13758
+ return e *= this.itemSize, this.normalized && (t = et(t, this.array), n = et(n, this.array)), this.array[e + 0] = sn(t), this.array[e + 1] = sn(n), this;
13758
13759
  }
13759
13760
  setXYZ(e, t, n, i) {
13760
- return e *= this.itemSize, this.normalized && (t = et(t, this.array), n = et(n, this.array), i = et(i, this.array)), this.array[e + 0] = rn(t), this.array[e + 1] = rn(n), this.array[e + 2] = rn(i), this;
13761
+ return e *= this.itemSize, this.normalized && (t = et(t, this.array), n = et(n, this.array), i = et(i, this.array)), this.array[e + 0] = sn(t), this.array[e + 1] = sn(n), this.array[e + 2] = sn(i), this;
13761
13762
  }
13762
13763
  setXYZW(e, t, n, i, s) {
13763
- return e *= this.itemSize, this.normalized && (t = et(t, this.array), n = et(n, this.array), i = et(i, this.array), s = et(s, this.array)), this.array[e + 0] = rn(t), this.array[e + 1] = rn(n), this.array[e + 2] = rn(i), this.array[e + 3] = rn(s), this;
13764
+ return e *= this.itemSize, this.normalized && (t = et(t, this.array), n = et(n, this.array), i = et(i, this.array), s = et(s, this.array)), this.array[e + 0] = sn(t), this.array[e + 1] = sn(n), this.array[e + 2] = sn(i), this.array[e + 3] = sn(s), this;
13764
13765
  }
13765
13766
  }
13766
13767
  class Fe extends xt {
@@ -13775,7 +13776,7 @@ class Fe extends xt {
13775
13776
  super(new Float32Array(e), t, n);
13776
13777
  }
13777
13778
  }
13778
- const W1 = /* @__PURE__ */ new qt(), as = /* @__PURE__ */ new B(), Yl = /* @__PURE__ */ new B();
13779
+ const W1 = /* @__PURE__ */ new $t(), as = /* @__PURE__ */ new B(), Yl = /* @__PURE__ */ new B();
13779
13780
  class Vt {
13780
13781
  /**
13781
13782
  * Constructs a new sphere.
@@ -13996,7 +13997,7 @@ class Vt {
13996
13997
  }
13997
13998
  }
13998
13999
  let X1 = 0;
13999
- const vn = /* @__PURE__ */ new $e(), Zl = /* @__PURE__ */ new ht(), Sr = /* @__PURE__ */ new B(), dn = /* @__PURE__ */ new qt(), os = /* @__PURE__ */ new qt(), Ot = /* @__PURE__ */ new B();
14000
+ const vn = /* @__PURE__ */ new $e(), Zl = /* @__PURE__ */ new ht(), Sr = /* @__PURE__ */ new B(), dn = /* @__PURE__ */ new $t(), os = /* @__PURE__ */ new $t(), Ot = /* @__PURE__ */ new B();
14000
14001
  class Je extends Pn {
14001
14002
  /**
14002
14003
  * Constructs a new geometry.
@@ -14248,7 +14249,7 @@ class Je extends Pn {
14248
14249
  * You may need to recompute the bounding box if the geometry vertices are modified.
14249
14250
  */
14250
14251
  computeBoundingBox() {
14251
- this.boundingBox === null && (this.boundingBox = new qt());
14252
+ this.boundingBox === null && (this.boundingBox = new $t());
14252
14253
  const e = this.attributes.position, t = this.morphAttributes.position;
14253
14254
  if (e && e.isGLBufferAttribute) {
14254
14255
  ke("BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box.", this), this.boundingBox.set(
@@ -14650,7 +14651,7 @@ class ll {
14650
14651
  };
14651
14652
  }
14652
14653
  }
14653
- const Yt = /* @__PURE__ */ new B();
14654
+ const Zt = /* @__PURE__ */ new B();
14654
14655
  class nr {
14655
14656
  /**
14656
14657
  * Constructs a new interleaved buffer attribute.
@@ -14700,7 +14701,7 @@ class nr {
14700
14701
  */
14701
14702
  applyMatrix4(e) {
14702
14703
  for (let t = 0, n = this.data.count; t < n; t++)
14703
- Yt.fromBufferAttribute(this, t), Yt.applyMatrix4(e), this.setXYZ(t, Yt.x, Yt.y, Yt.z);
14704
+ Zt.fromBufferAttribute(this, t), Zt.applyMatrix4(e), this.setXYZ(t, Zt.x, Zt.y, Zt.z);
14704
14705
  return this;
14705
14706
  }
14706
14707
  /**
@@ -14712,7 +14713,7 @@ class nr {
14712
14713
  */
14713
14714
  applyNormalMatrix(e) {
14714
14715
  for (let t = 0, n = this.count; t < n; t++)
14715
- Yt.fromBufferAttribute(this, t), Yt.applyNormalMatrix(e), this.setXYZ(t, Yt.x, Yt.y, Yt.z);
14716
+ Zt.fromBufferAttribute(this, t), Zt.applyNormalMatrix(e), this.setXYZ(t, Zt.x, Zt.y, Zt.z);
14716
14717
  return this;
14717
14718
  }
14718
14719
  /**
@@ -14724,7 +14725,7 @@ class nr {
14724
14725
  */
14725
14726
  transformDirection(e) {
14726
14727
  for (let t = 0, n = this.count; t < n; t++)
14727
- Yt.fromBufferAttribute(this, t), Yt.transformDirection(e), this.setXYZ(t, Yt.x, Yt.y, Yt.z);
14728
+ Zt.fromBufferAttribute(this, t), Zt.transformDirection(e), this.setXYZ(t, Zt.x, Zt.y, Zt.z);
14728
14729
  return this;
14729
14730
  }
14730
14731
  /**
@@ -14736,7 +14737,7 @@ class nr {
14736
14737
  */
14737
14738
  getComponent(e, t) {
14738
14739
  let n = this.array[e * this.data.stride + this.offset + t];
14739
- return this.normalized && (n = Kt(n, this.array)), n;
14740
+ return this.normalized && (n = Jt(n, this.array)), n;
14740
14741
  }
14741
14742
  /**
14742
14743
  * Sets the given value to the given component of the vector at the given index.
@@ -14797,7 +14798,7 @@ class nr {
14797
14798
  */
14798
14799
  getX(e) {
14799
14800
  let t = this.data.array[e * this.data.stride + this.offset];
14800
- return this.normalized && (t = Kt(t, this.array)), t;
14801
+ return this.normalized && (t = Jt(t, this.array)), t;
14801
14802
  }
14802
14803
  /**
14803
14804
  * Returns the y component of the vector at the given index.
@@ -14807,7 +14808,7 @@ class nr {
14807
14808
  */
14808
14809
  getY(e) {
14809
14810
  let t = this.data.array[e * this.data.stride + this.offset + 1];
14810
- return this.normalized && (t = Kt(t, this.array)), t;
14811
+ return this.normalized && (t = Jt(t, this.array)), t;
14811
14812
  }
14812
14813
  /**
14813
14814
  * Returns the z component of the vector at the given index.
@@ -14817,7 +14818,7 @@ class nr {
14817
14818
  */
14818
14819
  getZ(e) {
14819
14820
  let t = this.data.array[e * this.data.stride + this.offset + 2];
14820
- return this.normalized && (t = Kt(t, this.array)), t;
14821
+ return this.normalized && (t = Jt(t, this.array)), t;
14821
14822
  }
14822
14823
  /**
14823
14824
  * Returns the w component of the vector at the given index.
@@ -14827,7 +14828,7 @@ class nr {
14827
14828
  */
14828
14829
  getW(e) {
14829
14830
  let t = this.data.array[e * this.data.stride + this.offset + 3];
14830
- return this.normalized && (t = Kt(t, this.array)), t;
14831
+ return this.normalized && (t = Jt(t, this.array)), t;
14831
14832
  }
14832
14833
  /**
14833
14834
  * Sets the x and y component of the vector at the given index.
@@ -14920,7 +14921,7 @@ class nr {
14920
14921
  }
14921
14922
  }
14922
14923
  let q1 = 0;
14923
- class $t extends Pn {
14924
+ class Yt extends Pn {
14924
14925
  /**
14925
14926
  * Constructs a new material.
14926
14927
  */
@@ -15086,7 +15087,7 @@ class $t extends Pn {
15086
15087
  e === !0 && this.version++;
15087
15088
  }
15088
15089
  }
15089
- class Eu extends $t {
15090
+ class Eu extends Yt {
15090
15091
  /**
15091
15092
  * Constructs a new sprite material.
15092
15093
  *
@@ -15160,7 +15161,7 @@ class Xp extends ht {
15160
15161
  l < e.near || l > e.far || t.push({
15161
15162
  distance: l,
15162
15163
  point: cs.clone(),
15163
- uv: on.getInterpolation(cs, _a, hs, va, xf, Kl, mf, new he()),
15164
+ uv: cn.getInterpolation(cs, _a, hs, va, xf, Kl, mf, new he()),
15164
15165
  face: null,
15165
15166
  object: this
15166
15167
  });
@@ -15571,7 +15572,7 @@ class jr {
15571
15572
  return new this.constructor().copy(this);
15572
15573
  }
15573
15574
  }
15574
- class Ci extends $t {
15575
+ class Ci extends Yt {
15575
15576
  /**
15576
15577
  * Constructs a new mesh basic material.
15577
15578
  *
@@ -15589,7 +15590,7 @@ class Ci extends $t {
15589
15590
  }
15590
15591
  }
15591
15592
  const _f = /* @__PURE__ */ new $e(), Bi = /* @__PURE__ */ new jr(), Ea = /* @__PURE__ */ new Vt(), vf = /* @__PURE__ */ new B(), Aa = /* @__PURE__ */ new B(), wa = /* @__PURE__ */ new B(), Ca = /* @__PURE__ */ new B(), eh = /* @__PURE__ */ new B(), Ta = /* @__PURE__ */ new B(), yf = /* @__PURE__ */ new B(), Ra = /* @__PURE__ */ new B();
15592
- class Mt extends ht {
15593
+ class At extends ht {
15593
15594
  /**
15594
15595
  * Constructs a new mesh.
15595
15596
  *
@@ -15690,7 +15691,7 @@ class Mt extends ht {
15690
15691
  }
15691
15692
  function $1(r, e, t, n, i, s, a, o) {
15692
15693
  let l;
15693
- if (e.side === Qt ? l = n.intersectTriangle(a, s, i, !0, o) : l = n.intersectTriangle(i, s, a, e.side === ii, o), l === null) return null;
15694
+ if (e.side === en ? l = n.intersectTriangle(a, s, i, !0, o) : l = n.intersectTriangle(i, s, a, e.side === ii, o), l === null) return null;
15694
15695
  Ra.copy(o), Ra.applyMatrix4(r.matrixWorld);
15695
15696
  const c = t.ray.origin.distanceTo(Ra);
15696
15697
  return c < t.near || c > t.far ? null : {
@@ -15704,7 +15705,7 @@ function Da(r, e, t, n, i, s, a, o, l, c) {
15704
15705
  const h = $1(r, e, t, n, Aa, wa, Ca, yf);
15705
15706
  if (h) {
15706
15707
  const f = new B();
15707
- on.getBarycoord(yf, Aa, wa, Ca, f), i && (h.uv = on.getInterpolatedAttribute(i, o, l, c, f, new he())), s && (h.uv1 = on.getInterpolatedAttribute(s, o, l, c, f, new he())), a && (h.normal = on.getInterpolatedAttribute(a, o, l, c, f, new B()), h.normal.dot(n.direction) > 0 && h.normal.multiplyScalar(-1));
15708
+ cn.getBarycoord(yf, Aa, wa, Ca, f), i && (h.uv = cn.getInterpolatedAttribute(i, o, l, c, f, new he())), s && (h.uv1 = cn.getInterpolatedAttribute(s, o, l, c, f, new he())), a && (h.normal = cn.getInterpolatedAttribute(a, o, l, c, f, new B()), h.normal.dot(n.direction) > 0 && h.normal.multiplyScalar(-1));
15708
15709
  const u = {
15709
15710
  a: o,
15710
15711
  b: l,
@@ -15712,12 +15713,12 @@ function Da(r, e, t, n, i, s, a, o, l, c) {
15712
15713
  normal: new B(),
15713
15714
  materialIndex: 0
15714
15715
  };
15715
- on.getNormal(Aa, wa, Ca, u.normal), h.face = u, h.barycoord = f;
15716
+ cn.getNormal(Aa, wa, Ca, u.normal), h.face = u, h.barycoord = f;
15716
15717
  }
15717
15718
  return h;
15718
15719
  }
15719
15720
  const us = /* @__PURE__ */ new dt(), bf = /* @__PURE__ */ new dt(), Mf = /* @__PURE__ */ new dt(), Y1 = /* @__PURE__ */ new dt(), Sf = /* @__PURE__ */ new $e(), Ia = /* @__PURE__ */ new B(), th = /* @__PURE__ */ new Vt(), Ef = /* @__PURE__ */ new $e(), nh = /* @__PURE__ */ new jr();
15720
- class $p extends Mt {
15721
+ class $p extends At {
15721
15722
  /**
15722
15723
  * Constructs a new skinned mesh.
15723
15724
  *
@@ -15735,7 +15736,7 @@ class $p extends Mt {
15735
15736
  */
15736
15737
  computeBoundingBox() {
15737
15738
  const e = this.geometry;
15738
- this.boundingBox === null && (this.boundingBox = new qt()), this.boundingBox.makeEmpty();
15739
+ this.boundingBox === null && (this.boundingBox = new $t()), this.boundingBox.makeEmpty();
15739
15740
  const t = e.getAttribute("position");
15740
15741
  for (let n = 0; n < t.count; n++)
15741
15742
  this.getVertexPosition(n, Ia), this.boundingBox.expandByPoint(Ia);
@@ -15824,7 +15825,7 @@ class Au extends ht {
15824
15825
  super(), this.isBone = !0, this.type = "Bone";
15825
15826
  }
15826
15827
  }
15827
- class Dn extends wt {
15828
+ class Dn extends Et {
15828
15829
  /**
15829
15830
  * Constructs a new data texture.
15830
15831
  *
@@ -15925,7 +15926,7 @@ class hl {
15925
15926
  e = Math.ceil(e / 4) * 4, e = Math.max(e, 4);
15926
15927
  const t = new Float32Array(e * e * 4);
15927
15928
  t.set(this.boneMatrices);
15928
- const n = new Dn(t, e, e, jt, Jt);
15929
+ const n = new Dn(t, e, e, Qt, jt);
15929
15930
  return n.needsUpdate = !0, this.boneMatrices = t, this.boneTexture = n, this;
15930
15931
  }
15931
15932
  /**
@@ -16012,8 +16013,8 @@ class $r extends xt {
16012
16013
  return e.meshPerAttribute = this.meshPerAttribute, e.isInstancedBufferAttribute = !0, e;
16013
16014
  }
16014
16015
  }
16015
- const Tr = /* @__PURE__ */ new $e(), wf = /* @__PURE__ */ new $e(), Pa = [], Cf = /* @__PURE__ */ new qt(), K1 = /* @__PURE__ */ new $e(), fs = /* @__PURE__ */ new Mt(), ds = /* @__PURE__ */ new Vt();
16016
- class Yp extends Mt {
16016
+ const Tr = /* @__PURE__ */ new $e(), wf = /* @__PURE__ */ new $e(), Pa = [], Cf = /* @__PURE__ */ new $t(), K1 = /* @__PURE__ */ new $e(), fs = /* @__PURE__ */ new At(), ds = /* @__PURE__ */ new Vt();
16017
+ class Yp extends At {
16017
16018
  /**
16018
16019
  * Constructs a new instanced mesh.
16019
16020
  *
@@ -16033,7 +16034,7 @@ class Yp extends Mt {
16033
16034
  */
16034
16035
  computeBoundingBox() {
16035
16036
  const e = this.geometry, t = this.count;
16036
- this.boundingBox === null && (this.boundingBox = new qt()), e.boundingBox === null && e.computeBoundingBox(), this.boundingBox.makeEmpty();
16037
+ this.boundingBox === null && (this.boundingBox = new $t()), e.boundingBox === null && e.computeBoundingBox(), this.boundingBox.makeEmpty();
16037
16038
  for (let n = 0; n < t; n++)
16038
16039
  this.getMatrixAt(n, Tr), Cf.copy(e.boundingBox).applyMatrix4(Tr), this.boundingBox.union(Cf);
16039
16040
  }
@@ -16127,7 +16128,7 @@ class Yp extends Mt {
16127
16128
  */
16128
16129
  setMorphAt(e, t) {
16129
16130
  const n = t.morphTargetInfluences, i = n.length + 1;
16130
- this.morphTexture === null && (this.morphTexture = new Dn(new Float32Array(i * this.count), i, this.count, jc, Jt));
16131
+ this.morphTexture === null && (this.morphTexture = new Dn(new Float32Array(i * this.count), i, this.count, jc, jt));
16131
16132
  const s = this.morphTexture.source.data.data;
16132
16133
  let a = 0;
16133
16134
  for (let c = 0; c < n.length; c++)
@@ -16668,7 +16669,7 @@ class nv {
16668
16669
  this.list.length = 0, this.index = 0;
16669
16670
  }
16670
16671
  }
16671
- const nn = /* @__PURE__ */ new $e(), iv = /* @__PURE__ */ new Be(1, 1, 1), Tf = /* @__PURE__ */ new Qr(), rv = /* @__PURE__ */ new ul(), Fa = /* @__PURE__ */ new qt(), Li = /* @__PURE__ */ new Vt(), ps = /* @__PURE__ */ new B(), Rf = /* @__PURE__ */ new B(), sv = /* @__PURE__ */ new B(), sh = /* @__PURE__ */ new nv(), Xt = /* @__PURE__ */ new Mt(), La = [];
16672
+ const rn = /* @__PURE__ */ new $e(), iv = /* @__PURE__ */ new Be(1, 1, 1), Tf = /* @__PURE__ */ new Qr(), rv = /* @__PURE__ */ new ul(), Fa = /* @__PURE__ */ new $t(), Li = /* @__PURE__ */ new Vt(), ps = /* @__PURE__ */ new B(), Rf = /* @__PURE__ */ new B(), sv = /* @__PURE__ */ new B(), sh = /* @__PURE__ */ new nv(), Xt = /* @__PURE__ */ new At(), La = [];
16672
16673
  function av(r, e, t = 0) {
16673
16674
  const n = e.itemSize;
16674
16675
  if (r.isInterleavedBufferAttribute || r.array.constructor !== e.array.constructor) {
@@ -16690,7 +16691,7 @@ function Ni(r, e) {
16690
16691
  e.set(new r.constructor(r.buffer, 0, t));
16691
16692
  }
16692
16693
  }
16693
- class Zp extends Mt {
16694
+ class Zp extends At {
16694
16695
  /**
16695
16696
  * Constructs a new batched mesh.
16696
16697
  *
@@ -16741,7 +16742,7 @@ class Zp extends Mt {
16741
16742
  _initMatricesTexture() {
16742
16743
  let e = Math.sqrt(this._maxInstanceCount * 4);
16743
16744
  e = Math.ceil(e / 4) * 4, e = Math.max(e, 4);
16744
- const t = new Float32Array(e * e * 4), n = new Dn(t, e, e, jt, Jt);
16745
+ const t = new Float32Array(e * e * 4), n = new Dn(t, e, e, Qt, jt);
16745
16746
  this._matricesTexture = n;
16746
16747
  }
16747
16748
  _initIndirectTexture() {
@@ -16753,7 +16754,7 @@ class Zp extends Mt {
16753
16754
  _initColorsTexture() {
16754
16755
  let e = Math.sqrt(this._maxInstanceCount);
16755
16756
  e = Math.ceil(e);
16756
- const t = new Float32Array(e * e * 4).fill(1), n = new Dn(t, e, e, jt, Jt);
16757
+ const t = new Float32Array(e * e * 4).fill(1), n = new Dn(t, e, e, Qt, jt);
16757
16758
  n.colorSpace = rt.workingColorSpace, this._colorsTexture = n;
16758
16759
  }
16759
16760
  _initializeGeometry(e) {
@@ -16819,13 +16820,13 @@ class Zp extends Mt {
16819
16820
  * otherwise they are `null`.
16820
16821
  */
16821
16822
  computeBoundingBox() {
16822
- this.boundingBox === null && (this.boundingBox = new qt());
16823
+ this.boundingBox === null && (this.boundingBox = new $t());
16823
16824
  const e = this.boundingBox, t = this._instanceInfo;
16824
16825
  e.makeEmpty();
16825
16826
  for (let n = 0, i = t.length; n < i; n++) {
16826
16827
  if (t[n].active === !1) continue;
16827
16828
  const s = t[n].geometryIndex;
16828
- this.getMatrixAt(n, nn), this.getBoundingBoxAt(s, Fa).applyMatrix4(nn), e.union(Fa);
16829
+ this.getMatrixAt(n, rn), this.getBoundingBoxAt(s, Fa).applyMatrix4(rn), e.union(Fa);
16829
16830
  }
16830
16831
  }
16831
16832
  /**
@@ -16840,7 +16841,7 @@ class Zp extends Mt {
16840
16841
  for (let n = 0, i = t.length; n < i; n++) {
16841
16842
  if (t[n].active === !1) continue;
16842
16843
  const s = t[n].geometryIndex;
16843
- this.getMatrixAt(n, nn), this.getBoundingSphereAt(s, Li).applyMatrix4(nn), e.union(Li);
16844
+ this.getMatrixAt(n, rn), this.getBoundingSphereAt(s, Li).applyMatrix4(rn), e.union(Li);
16844
16845
  }
16845
16846
  }
16846
16847
  /**
@@ -16861,7 +16862,7 @@ class Zp extends Mt {
16861
16862
  let i = null;
16862
16863
  this._availableInstanceIds.length > 0 ? (this._availableInstanceIds.sort(rh), i = this._availableInstanceIds.shift(), this._instanceInfo[i] = n) : (i = this._instanceInfo.length, this._instanceInfo.push(n));
16863
16864
  const s = this._matricesTexture;
16864
- nn.identity().toArray(s.image.data, i * 16), s.needsUpdate = !0;
16865
+ rn.identity().toArray(s.image.data, i * 16), s.needsUpdate = !0;
16865
16866
  const a = this._colorsTexture;
16866
16867
  return a && (iv.toArray(a.image.data, i * 4), a.needsUpdate = !0), this._visibilityChanged = !0, i;
16867
16868
  }
@@ -17016,7 +17017,7 @@ class Zp extends Mt {
17016
17017
  return null;
17017
17018
  const n = this.geometry, i = this._geometryInfo[e];
17018
17019
  if (i.boundingBox === null) {
17019
- const s = new qt(), a = n.index, o = n.attributes.position;
17020
+ const s = new $t(), a = n.index, o = n.attributes.position;
17020
17021
  for (let l = i.start, c = i.start + i.count; l < c; l++) {
17021
17022
  let h = l;
17022
17023
  a && (h = a.getX(h)), s.expandByPoint(ps.fromBufferAttribute(o, h));
@@ -17188,7 +17189,7 @@ class Zp extends Mt {
17188
17189
  }
17189
17190
  raycast(e, t) {
17190
17191
  const n = this._instanceInfo, i = this._geometryInfo, s = this.matrixWorld, a = this.geometry;
17191
- Xt.material = this.material, Xt.geometry.index = a.index, Xt.geometry.attributes = a.attributes, Xt.geometry.boundingBox === null && (Xt.geometry.boundingBox = new qt()), Xt.geometry.boundingSphere === null && (Xt.geometry.boundingSphere = new Vt());
17192
+ Xt.material = this.material, Xt.geometry.index = a.index, Xt.geometry.attributes = a.attributes, Xt.geometry.boundingBox === null && (Xt.geometry.boundingBox = new $t()), Xt.geometry.boundingSphere === null && (Xt.geometry.boundingSphere = new Vt());
17192
17193
  for (let o = 0, l = n.length; o < l; o++) {
17193
17194
  if (!n[o].visible || !n[o].active)
17194
17195
  continue;
@@ -17223,18 +17224,18 @@ class Zp extends Mt {
17223
17224
  let o = a === null ? 1 : a.array.BYTES_PER_ELEMENT, l = 1;
17224
17225
  s.wireframe && (l = 2, o = i.attributes.position.count > 65535 ? 4 : 2);
17225
17226
  const c = this._instanceInfo, h = this._multiDrawStarts, f = this._multiDrawCounts, u = this._geometryInfo, d = this.perObjectFrustumCulled, p = this._indirectTexture, _ = p.image.data, x = n.isArrayCamera ? rv : Tf;
17226
- d && !n.isArrayCamera && (nn.multiplyMatrices(n.projectionMatrix, n.matrixWorldInverse).multiply(this.matrixWorld), Tf.setFromProjectionMatrix(
17227
- nn,
17227
+ d && !n.isArrayCamera && (rn.multiplyMatrices(n.projectionMatrix, n.matrixWorldInverse).multiply(this.matrixWorld), Tf.setFromProjectionMatrix(
17228
+ rn,
17228
17229
  n.coordinateSystem,
17229
17230
  n.reversedDepth
17230
17231
  ));
17231
17232
  let m = 0;
17232
17233
  if (this.sortObjects) {
17233
- nn.copy(this.matrixWorld).invert(), ps.setFromMatrixPosition(n.matrixWorld).applyMatrix4(nn), Rf.set(0, 0, -1).transformDirection(n.matrixWorld).transformDirection(nn);
17234
+ rn.copy(this.matrixWorld).invert(), ps.setFromMatrixPosition(n.matrixWorld).applyMatrix4(rn), Rf.set(0, 0, -1).transformDirection(n.matrixWorld).transformDirection(rn);
17234
17235
  for (let y = 0, S = c.length; y < S; y++)
17235
17236
  if (c[y].visible && c[y].active) {
17236
17237
  const M = c[y].geometryIndex;
17237
- this.getMatrixAt(y, nn), this.getBoundingSphereAt(M, Li).applyMatrix4(nn);
17238
+ this.getMatrixAt(y, rn), this.getBoundingSphereAt(M, Li).applyMatrix4(rn);
17238
17239
  let E = !1;
17239
17240
  if (d && (E = !x.intersectsSphere(Li, n)), !E) {
17240
17241
  const b = u[M], w = sv.subVectors(Li.center, ps).dot(Rf);
@@ -17253,7 +17254,7 @@ class Zp extends Mt {
17253
17254
  if (c[g].visible && c[g].active) {
17254
17255
  const y = c[g].geometryIndex;
17255
17256
  let S = !1;
17256
- if (d && (this.getMatrixAt(g, nn), this.getBoundingSphereAt(y, Li).applyMatrix4(nn), S = !x.intersectsSphere(Li, n)), !S) {
17257
+ if (d && (this.getMatrixAt(g, rn), this.getBoundingSphereAt(y, Li).applyMatrix4(rn), S = !x.intersectsSphere(Li, n)), !S) {
17257
17258
  const M = u[y];
17258
17259
  h[m] = M.start * o * l, f[m] = M.count * l, _[m] = g, m++;
17259
17260
  }
@@ -17264,7 +17265,7 @@ class Zp extends Mt {
17264
17265
  this.onBeforeRender(e, null, i, s, a);
17265
17266
  }
17266
17267
  }
17267
- class tn extends $t {
17268
+ class nn extends Yt {
17268
17269
  /**
17269
17270
  * Constructs a new line basic material.
17270
17271
  *
@@ -17289,7 +17290,7 @@ class Ai extends ht {
17289
17290
  * @param {BufferGeometry} [geometry] - The line geometry.
17290
17291
  * @param {Material|Array<Material>} [material] - The line material.
17291
17292
  */
17292
- constructor(e = new Je(), t = new tn()) {
17293
+ constructor(e = new Je(), t = new nn()) {
17293
17294
  super(), this.isLine = !0, this.type = "Line", this.geometry = e, this.material = t, this.morphTargetDictionary = void 0, this.morphTargetInfluences = void 0, this.updateMorphTargets();
17294
17295
  }
17295
17296
  copy(e, t) {
@@ -17416,7 +17417,7 @@ class Kp extends Ai {
17416
17417
  super(e, t), this.isLineLoop = !0, this.type = "LineLoop";
17417
17418
  }
17418
17419
  }
17419
- class wu extends $t {
17420
+ class wu extends Yt {
17420
17421
  /**
17421
17422
  * Constructs a new points material.
17422
17423
  *
@@ -17507,7 +17508,7 @@ function Lf(r, e, t, n, i, s, a) {
17507
17508
  });
17508
17509
  }
17509
17510
  }
17510
- class jp extends wt {
17511
+ class jp extends Et {
17511
17512
  /**
17512
17513
  * Constructs a new video texture.
17513
17514
  *
@@ -17521,7 +17522,7 @@ class jp extends wt {
17521
17522
  * @param {number} [type=UnsignedByteType] - The texture type.
17522
17523
  * @param {number} [anisotropy=Texture.DEFAULT_ANISOTROPY] - The anisotropy value.
17523
17524
  */
17524
- constructor(e, t, n, i, s = yt, a = yt, o, l, c) {
17525
+ constructor(e, t, n, i, s = vt, a = vt, o, l, c) {
17525
17526
  super(e, t, n, i, s, a, o, l, c), this.isVideoTexture = !0, this.generateMipmaps = !1, this._requestVideoFrameCallbackId = 0;
17526
17527
  const h = this;
17527
17528
  function f() {
@@ -17581,7 +17582,7 @@ class ov extends jp {
17581
17582
  this.image = e, this.needsUpdate = !0;
17582
17583
  }
17583
17584
  }
17584
- class cv extends wt {
17585
+ class cv extends Et {
17585
17586
  /**
17586
17587
  * Constructs a new framebuffer texture.
17587
17588
  *
@@ -17592,7 +17593,7 @@ class cv extends wt {
17592
17593
  super({ width: e, height: t }), this.isFramebufferTexture = !0, this.magFilter = Pt, this.minFilter = Pt, this.generateMipmaps = !1, this.needsUpdate = !0;
17593
17594
  }
17594
17595
  }
17595
- class fl extends wt {
17596
+ class fl extends Et {
17596
17597
  /**
17597
17598
  * Constructs a new compressed texture.
17598
17599
  *
@@ -17627,7 +17628,7 @@ class lv extends fl {
17627
17628
  * @param {number} [type=UnsignedByteType] - The min filter value.
17628
17629
  */
17629
17630
  constructor(e, t, n, i, s, a) {
17630
- super(e, t, n, s, a), this.isCompressedArrayTexture = !0, this.image.depth = i, this.wrapR = cn, this.layerUpdates = /* @__PURE__ */ new Set();
17631
+ super(e, t, n, s, a), this.isCompressedArrayTexture = !0, this.image.depth = i, this.wrapR = ln, this.layerUpdates = /* @__PURE__ */ new Set();
17631
17632
  }
17632
17633
  /**
17633
17634
  * Describes that a specific layer of the texture needs to be updated.
@@ -17660,7 +17661,7 @@ class hv extends fl {
17660
17661
  super(void 0, e[0].width, e[0].height, t, n, Wn), this.isCompressedCubeTexture = !0, this.isCubeTexture = !0, this.image = e;
17661
17662
  }
17662
17663
  }
17663
- class na extends wt {
17664
+ class na extends Et {
17664
17665
  /**
17665
17666
  * Constructs a new cube texture.
17666
17667
  *
@@ -17690,7 +17691,7 @@ class na extends wt {
17690
17691
  this.image = e;
17691
17692
  }
17692
17693
  }
17693
- class uv extends wt {
17694
+ class uv extends Et {
17694
17695
  /**
17695
17696
  * Constructs a new texture.
17696
17697
  *
@@ -17708,7 +17709,7 @@ class uv extends wt {
17708
17709
  super(e, t, n, i, s, a, o, l, c), this.isCanvasTexture = !0, this.needsUpdate = !0;
17709
17710
  }
17710
17711
  }
17711
- class fv extends wt {
17712
+ class fv extends Et {
17712
17713
  /**
17713
17714
  * Constructs a new texture.
17714
17715
  *
@@ -17734,7 +17735,7 @@ class fv extends wt {
17734
17735
  e !== null && "onpaint" in e && (e.onpaint = null), super.dispose();
17735
17736
  }
17736
17737
  }
17737
- class ir extends wt {
17738
+ class ir extends Et {
17738
17739
  /**
17739
17740
  * Constructs a new depth texture.
17740
17741
  *
@@ -17794,7 +17795,7 @@ class Qp extends ir {
17794
17795
  this.image = e;
17795
17796
  }
17796
17797
  }
17797
- class Cu extends wt {
17798
+ class Cu extends Et {
17798
17799
  /**
17799
17800
  * Creates a new raw texture.
17800
17801
  *
@@ -17836,17 +17837,17 @@ class or extends Je {
17836
17837
  const A = y / E, C = S / b, I = y / 2, F = S / 2, z = M / 2, L = E + 1, U = b + 1;
17837
17838
  let H = 0, K = 0;
17838
17839
  const ee = new B();
17839
- for (let se = 0; se < U; se++) {
17840
- const W = se * C - F;
17840
+ for (let re = 0; re < U; re++) {
17841
+ const W = re * C - F;
17841
17842
  for (let P = 0; P < L; P++) {
17842
17843
  const O = P * A - I;
17843
- ee[_] = O * g, ee[x] = W * v, ee[m] = z, c.push(ee.x, ee.y, ee.z), ee[_] = 0, ee[x] = 0, ee[m] = M > 0 ? 1 : -1, h.push(ee.x, ee.y, ee.z), f.push(P / E), f.push(1 - se / b), H += 1;
17844
+ ee[_] = O * g, ee[x] = W * v, ee[m] = z, c.push(ee.x, ee.y, ee.z), ee[_] = 0, ee[x] = 0, ee[m] = M > 0 ? 1 : -1, h.push(ee.x, ee.y, ee.z), f.push(P / E), f.push(1 - re / b), H += 1;
17844
17845
  }
17845
17846
  }
17846
- for (let se = 0; se < b; se++)
17847
+ for (let re = 0; re < b; re++)
17847
17848
  for (let W = 0; W < E; W++) {
17848
- const P = u + W + L * se, O = u + W + L * (se + 1), G = u + (W + 1) + L * (se + 1), ie = u + (W + 1) + L * se;
17849
- l.push(P, O, ie), l.push(O, G, ie), K += 6;
17849
+ const P = u + W + L * re, O = u + W + L * (re + 1), G = u + (W + 1) + L * (re + 1), ne = u + (W + 1) + L * re;
17850
+ l.push(P, O, ne), l.push(O, G, ne), K += 6;
17850
17851
  }
17851
17852
  o.addGroup(d, K, w), d += K, u += H;
17852
17853
  }
@@ -18385,7 +18386,7 @@ class xl extends Ti {
18385
18386
  return new xl(e.radius, e.detail);
18386
18387
  }
18387
18388
  }
18388
- const za = /* @__PURE__ */ new B(), Va = /* @__PURE__ */ new B(), oh = /* @__PURE__ */ new B(), Ga = /* @__PURE__ */ new on();
18389
+ const za = /* @__PURE__ */ new B(), Va = /* @__PURE__ */ new B(), oh = /* @__PURE__ */ new B(), Ga = /* @__PURE__ */ new cn();
18389
18390
  class ex extends Je {
18390
18391
  /**
18391
18392
  * Constructs a new edges geometry.
@@ -19522,7 +19523,7 @@ function rr(r, e) {
19522
19523
  e || (e = r);
19523
19524
  let t = r, n;
19524
19525
  do
19525
- if (n = !1, !t.steiner && (Yr(t, t.next) || At(t.prev, t, t.next) === 0)) {
19526
+ if (n = !1, !t.steiner && (Yr(t, t.next) || St(t.prev, t, t.next) === 0)) {
19526
19527
  if (Zs(t), t = e = t.prev, t === t.next) break;
19527
19528
  n = !0;
19528
19529
  } else
@@ -19548,30 +19549,30 @@ function $s(r, e, t, n, i, s, a) {
19548
19549
  }
19549
19550
  function bv(r) {
19550
19551
  const e = r.prev, t = r, n = r.next;
19551
- if (At(e, t, n) >= 0) return !1;
19552
+ if (St(e, t, n) >= 0) return !1;
19552
19553
  const i = e.x, s = t.x, a = n.x, o = e.y, l = t.y, c = n.y, h = Math.min(i, s, a), f = Math.min(o, l, c), u = Math.max(i, s, a), d = Math.max(o, l, c);
19553
19554
  let p = n.next;
19554
19555
  for (; p !== e; ) {
19555
- if (p.x >= h && p.x <= u && p.y >= f && p.y <= d && Ms(i, o, s, l, a, c, p.x, p.y) && At(p.prev, p, p.next) >= 0) return !1;
19556
+ if (p.x >= h && p.x <= u && p.y >= f && p.y <= d && Ms(i, o, s, l, a, c, p.x, p.y) && St(p.prev, p, p.next) >= 0) return !1;
19556
19557
  p = p.next;
19557
19558
  }
19558
19559
  return !0;
19559
19560
  }
19560
19561
  function Mv(r, e, t, n) {
19561
19562
  const i = r.prev, s = r, a = r.next;
19562
- if (At(i, s, a) >= 0) return !1;
19563
+ if (St(i, s, a) >= 0) return !1;
19563
19564
  const o = i.x, l = s.x, c = a.x, h = i.y, f = s.y, u = a.y, d = Math.min(o, l, c), p = Math.min(h, f, u), _ = Math.max(o, l, c), x = Math.max(h, f, u), m = Gh(d, p, e, t, n), g = Gh(_, x, e, t, n);
19564
19565
  let v = r.prevZ, y = r.nextZ;
19565
19566
  for (; v && v.z >= m && y && y.z <= g; ) {
19566
- if (v.x >= d && v.x <= _ && v.y >= p && v.y <= x && v !== i && v !== a && Ms(o, h, l, f, c, u, v.x, v.y) && At(v.prev, v, v.next) >= 0 || (v = v.prevZ, y.x >= d && y.x <= _ && y.y >= p && y.y <= x && y !== i && y !== a && Ms(o, h, l, f, c, u, y.x, y.y) && At(y.prev, y, y.next) >= 0)) return !1;
19567
+ if (v.x >= d && v.x <= _ && v.y >= p && v.y <= x && v !== i && v !== a && Ms(o, h, l, f, c, u, v.x, v.y) && St(v.prev, v, v.next) >= 0 || (v = v.prevZ, y.x >= d && y.x <= _ && y.y >= p && y.y <= x && y !== i && y !== a && Ms(o, h, l, f, c, u, y.x, y.y) && St(y.prev, y, y.next) >= 0)) return !1;
19567
19568
  y = y.nextZ;
19568
19569
  }
19569
19570
  for (; v && v.z >= m; ) {
19570
- if (v.x >= d && v.x <= _ && v.y >= p && v.y <= x && v !== i && v !== a && Ms(o, h, l, f, c, u, v.x, v.y) && At(v.prev, v, v.next) >= 0) return !1;
19571
+ if (v.x >= d && v.x <= _ && v.y >= p && v.y <= x && v !== i && v !== a && Ms(o, h, l, f, c, u, v.x, v.y) && St(v.prev, v, v.next) >= 0) return !1;
19571
19572
  v = v.prevZ;
19572
19573
  }
19573
19574
  for (; y && y.z <= g; ) {
19574
- if (y.x >= d && y.x <= _ && y.y >= p && y.y <= x && y !== i && y !== a && Ms(o, h, l, f, c, u, y.x, y.y) && At(y.prev, y, y.next) >= 0) return !1;
19575
+ if (y.x >= d && y.x <= _ && y.y >= p && y.y <= x && y !== i && y !== a && Ms(o, h, l, f, c, u, y.x, y.y) && St(y.prev, y, y.next) >= 0) return !1;
19575
19576
  y = y.nextZ;
19576
19577
  }
19577
19578
  return !0;
@@ -19653,7 +19654,7 @@ function Tv(r, e) {
19653
19654
  return a;
19654
19655
  }
19655
19656
  function Rv(r, e) {
19656
- return At(r.prev, r, e.prev) < 0 && At(e.next, r, r.next) < 0;
19657
+ return St(r.prev, r, e.prev) < 0 && St(e.next, r, r.next) < 0;
19657
19658
  }
19658
19659
  function Dv(r, e, t, n) {
19659
19660
  let i = r;
@@ -19701,17 +19702,17 @@ function Ms(r, e, t, n, i, s, a, o) {
19701
19702
  function Bv(r, e) {
19702
19703
  return r.next.i !== e.i && r.prev.i !== e.i && !Fv(r, e) && // doesn't intersect other edges
19703
19704
  (Ys(r, e) && Ys(e, r) && Lv(r, e) && // locally visible
19704
- (At(r.prev, r, e.prev) || At(r, e.prev, e)) || // does not create opposite-facing sectors
19705
- Yr(r, e) && At(r.prev, r, r.next) > 0 && At(e.prev, e, e.next) > 0);
19705
+ (St(r.prev, r, e.prev) || St(r, e.prev, e)) || // does not create opposite-facing sectors
19706
+ Yr(r, e) && St(r.prev, r, r.next) > 0 && St(e.prev, e, e.next) > 0);
19706
19707
  }
19707
- function At(r, e, t) {
19708
+ function St(r, e, t) {
19708
19709
  return (e.y - r.y) * (t.x - e.x) - (e.x - r.x) * (t.y - e.y);
19709
19710
  }
19710
19711
  function Yr(r, e) {
19711
19712
  return r.x === e.x && r.y === e.y;
19712
19713
  }
19713
19714
  function cx(r, e, t, n) {
19714
- const i = Wa(At(r, e, t)), s = Wa(At(r, e, n)), a = Wa(At(t, n, r)), o = Wa(At(t, n, e));
19715
+ const i = Wa(St(r, e, t)), s = Wa(St(r, e, n)), a = Wa(St(t, n, r)), o = Wa(St(t, n, e));
19715
19716
  return !!(i !== s && a !== o || i === 0 && Ha(r, t, e) || s === 0 && Ha(r, n, e) || a === 0 && Ha(t, r, n) || o === 0 && Ha(t, e, n));
19716
19717
  }
19717
19718
  function Ha(r, e, t) {
@@ -19729,7 +19730,7 @@ function Fv(r, e) {
19729
19730
  return !1;
19730
19731
  }
19731
19732
  function Ys(r, e) {
19732
- return At(r.prev, r, r.next) < 0 ? At(r, e, r.next) >= 0 && At(r, r.prev, e) >= 0 : At(r, e, r.prev) < 0 || At(r, r.next, e) < 0;
19733
+ return St(r.prev, r, r.next) < 0 ? St(r, e, r.next) >= 0 && St(r, r.prev, e) >= 0 : St(r, e, r.prev) < 0 || St(r, r.next, e) < 0;
19733
19734
  }
19734
19735
  function Lv(r, e) {
19735
19736
  let t = r, n = !1;
@@ -19875,12 +19876,12 @@ class gl extends Je {
19875
19876
  if (!Tn.isClockWise(A)) {
19876
19877
  A = A.reverse();
19877
19878
  for (let Q = 0, le = C.length; Q < le; Q++) {
19878
- const ne = C[Q];
19879
- Tn.isClockWise(ne) && (C[Q] = ne.reverse());
19879
+ const se = C[Q];
19880
+ Tn.isClockWise(se) && (C[Q] = se.reverse());
19880
19881
  }
19881
19882
  }
19882
19883
  function F(Q) {
19883
- const ne = 10000000000000001e-36;
19884
+ const se = 10000000000000001e-36;
19884
19885
  let _e = Q[0];
19885
19886
  for (let ve = 1; ve <= Q.length; ve++) {
19886
19887
  const Xe = ve % Q.length, N = Q[Xe], Oe = N.x - _e.x, Ce = N.y - _e.y, Ge = Oe * Oe + Ce * Ce, de = Math.max(
@@ -19888,7 +19889,7 @@ class gl extends Je {
19888
19889
  Math.abs(N.y),
19889
19890
  Math.abs(_e.x),
19890
19891
  Math.abs(_e.y)
19891
- ), st = ne * de * de;
19892
+ ), st = se * de * de;
19892
19893
  if (Ge <= st) {
19893
19894
  Q.splice(Xe, 1), ve--;
19894
19895
  continue;
@@ -19902,15 +19903,15 @@ class gl extends Je {
19902
19903
  const le = C[Q];
19903
19904
  A = A.concat(le);
19904
19905
  }
19905
- function U(Q, le, ne) {
19906
- return le || ke("ExtrudeGeometry: vec does not exist"), Q.clone().addScaledVector(le, ne);
19906
+ function U(Q, le, se) {
19907
+ return le || ke("ExtrudeGeometry: vec does not exist"), Q.clone().addScaledVector(le, se);
19907
19908
  }
19908
19909
  const H = A.length;
19909
- function K(Q, le, ne) {
19910
+ function K(Q, le, se) {
19910
19911
  let _e, ve, Xe;
19911
- const N = Q.x - le.x, Oe = Q.y - le.y, Ce = ne.x - Q.x, Ge = ne.y - Q.y, de = N * N + Oe * Oe, st = N * Ge - Oe * Ce;
19912
+ const N = Q.x - le.x, Oe = Q.y - le.y, Ce = se.x - Q.x, Ge = se.y - Q.y, de = N * N + Oe * Oe, st = N * Ge - Oe * Ce;
19912
19913
  if (Math.abs(st) > Number.EPSILON) {
19913
- const D = Math.sqrt(de), T = Math.sqrt(Ce * Ce + Ge * Ge), $ = le.x - Oe / D, ae = le.y + N / D, ue = ne.x - Ge / T, pe = ne.y + Ce / T, ge = ((ue - $) * Ge - (pe - ae) * Ce) / (N * Ge - Oe * Ce);
19914
+ const D = Math.sqrt(de), T = Math.sqrt(Ce * Ce + Ge * Ge), $ = le.x - Oe / D, ae = le.y + N / D, ue = se.x - Ge / T, pe = se.y + Ce / T, ge = ((ue - $) * Ge - (pe - ae) * Ce) / (N * Ge - Oe * Ce);
19914
19915
  _e = $ + N * ge - Q.x, ve = ae + Oe * ge - Q.y;
19915
19916
  const te = _e * _e + ve * ve;
19916
19917
  if (te <= 2)
@@ -19923,63 +19924,63 @@ class gl extends Je {
19923
19924
  return new he(_e / Xe, ve / Xe);
19924
19925
  }
19925
19926
  const ee = [];
19926
- for (let Q = 0, le = L.length, ne = le - 1, _e = Q + 1; Q < le; Q++, ne++, _e++)
19927
- ne === le && (ne = 0), _e === le && (_e = 0), ee[Q] = K(L[Q], L[ne], L[_e]);
19928
- const se = [];
19927
+ for (let Q = 0, le = L.length, se = le - 1, _e = Q + 1; Q < le; Q++, se++, _e++)
19928
+ se === le && (se = 0), _e === le && (_e = 0), ee[Q] = K(L[Q], L[se], L[_e]);
19929
+ const re = [];
19929
19930
  let W, P = ee.concat();
19930
19931
  for (let Q = 0, le = z; Q < le; Q++) {
19931
- const ne = C[Q];
19932
+ const se = C[Q];
19932
19933
  W = [];
19933
- for (let _e = 0, ve = ne.length, Xe = ve - 1, N = _e + 1; _e < ve; _e++, Xe++, N++)
19934
- Xe === ve && (Xe = 0), N === ve && (N = 0), W[_e] = K(ne[_e], ne[Xe], ne[N]);
19935
- se.push(W), P = P.concat(W);
19934
+ for (let _e = 0, ve = se.length, Xe = ve - 1, N = _e + 1; _e < ve; _e++, Xe++, N++)
19935
+ Xe === ve && (Xe = 0), N === ve && (N = 0), W[_e] = K(se[_e], se[Xe], se[N]);
19936
+ re.push(W), P = P.concat(W);
19936
19937
  }
19937
19938
  let O;
19938
19939
  if (x === 0)
19939
19940
  O = Tn.triangulateShape(L, C);
19940
19941
  else {
19941
19942
  const Q = [], le = [];
19942
- for (let ne = 0; ne < x; ne++) {
19943
- const _e = ne / x, ve = d * Math.cos(_e * Math.PI / 2), Xe = p * Math.sin(_e * Math.PI / 2) + _;
19943
+ for (let se = 0; se < x; se++) {
19944
+ const _e = se / x, ve = d * Math.cos(_e * Math.PI / 2), Xe = p * Math.sin(_e * Math.PI / 2) + _;
19944
19945
  for (let N = 0, Oe = L.length; N < Oe; N++) {
19945
19946
  const Ce = U(L[N], ee[N], Xe);
19946
- re(Ce.x, Ce.y, -ve), _e === 0 && Q.push(Ce);
19947
+ ie(Ce.x, Ce.y, -ve), _e === 0 && Q.push(Ce);
19947
19948
  }
19948
19949
  for (let N = 0, Oe = z; N < Oe; N++) {
19949
19950
  const Ce = C[N];
19950
- W = se[N];
19951
+ W = re[N];
19951
19952
  const Ge = [];
19952
19953
  for (let de = 0, st = Ce.length; de < st; de++) {
19953
19954
  const D = U(Ce[de], W[de], Xe);
19954
- re(D.x, D.y, -ve), _e === 0 && Ge.push(D);
19955
+ ie(D.x, D.y, -ve), _e === 0 && Ge.push(D);
19955
19956
  }
19956
19957
  _e === 0 && le.push(Ge);
19957
19958
  }
19958
19959
  }
19959
19960
  O = Tn.triangulateShape(Q, le);
19960
19961
  }
19961
- const G = O.length, ie = p + _;
19962
+ const G = O.length, ne = p + _;
19962
19963
  for (let Q = 0; Q < H; Q++) {
19963
- const le = u ? U(A[Q], P[Q], ie) : A[Q];
19964
- y ? (E.copy(S.normals[0]).multiplyScalar(le.x), M.copy(S.binormals[0]).multiplyScalar(le.y), b.copy(v[0]).add(E).add(M), re(b.x, b.y, b.z)) : re(le.x, le.y, 0);
19964
+ const le = u ? U(A[Q], P[Q], ne) : A[Q];
19965
+ y ? (E.copy(S.normals[0]).multiplyScalar(le.x), M.copy(S.binormals[0]).multiplyScalar(le.y), b.copy(v[0]).add(E).add(M), ie(b.x, b.y, b.z)) : ie(le.x, le.y, 0);
19965
19966
  }
19966
19967
  for (let Q = 1; Q <= h; Q++)
19967
19968
  for (let le = 0; le < H; le++) {
19968
- const ne = u ? U(A[le], P[le], ie) : A[le];
19969
- y ? (E.copy(S.normals[Q]).multiplyScalar(ne.x), M.copy(S.binormals[Q]).multiplyScalar(ne.y), b.copy(v[Q]).add(E).add(M), re(b.x, b.y, b.z)) : re(ne.x, ne.y, f / h * Q);
19969
+ const se = u ? U(A[le], P[le], ne) : A[le];
19970
+ y ? (E.copy(S.normals[Q]).multiplyScalar(se.x), M.copy(S.binormals[Q]).multiplyScalar(se.y), b.copy(v[Q]).add(E).add(M), ie(b.x, b.y, b.z)) : ie(se.x, se.y, f / h * Q);
19970
19971
  }
19971
19972
  for (let Q = x - 1; Q >= 0; Q--) {
19972
- const le = Q / x, ne = d * Math.cos(le * Math.PI / 2), _e = p * Math.sin(le * Math.PI / 2) + _;
19973
+ const le = Q / x, se = d * Math.cos(le * Math.PI / 2), _e = p * Math.sin(le * Math.PI / 2) + _;
19973
19974
  for (let ve = 0, Xe = L.length; ve < Xe; ve++) {
19974
19975
  const N = U(L[ve], ee[ve], _e);
19975
- re(N.x, N.y, f + ne);
19976
+ ie(N.x, N.y, f + se);
19976
19977
  }
19977
19978
  for (let ve = 0, Xe = C.length; ve < Xe; ve++) {
19978
19979
  const N = C[ve];
19979
- W = se[ve];
19980
+ W = re[ve];
19980
19981
  for (let Oe = 0, Ce = N.length; Oe < Ce; Oe++) {
19981
19982
  const Ge = U(N[Oe], W[Oe], _e);
19982
- y ? re(Ge.x, Ge.y + v[h - 1].y, v[h - 1].x + ne) : re(Ge.x, Ge.y, f + ne);
19983
+ y ? ie(Ge.x, Ge.y + v[h - 1].y, v[h - 1].x + se) : ie(Ge.x, Ge.y, f + se);
19983
19984
  }
19984
19985
  }
19985
19986
  }
@@ -19987,24 +19988,24 @@ class gl extends Je {
19987
19988
  function k() {
19988
19989
  const Q = i.length / 3;
19989
19990
  if (u) {
19990
- let le = 0, ne = H * le;
19991
+ let le = 0, se = H * le;
19991
19992
  for (let _e = 0; _e < G; _e++) {
19992
19993
  const ve = O[_e];
19993
- xe(ve[2] + ne, ve[1] + ne, ve[0] + ne);
19994
+ xe(ve[2] + se, ve[1] + se, ve[0] + se);
19994
19995
  }
19995
- le = h + x * 2, ne = H * le;
19996
+ le = h + x * 2, se = H * le;
19996
19997
  for (let _e = 0; _e < G; _e++) {
19997
19998
  const ve = O[_e];
19998
- xe(ve[0] + ne, ve[1] + ne, ve[2] + ne);
19999
+ xe(ve[0] + se, ve[1] + se, ve[2] + se);
19999
20000
  }
20000
20001
  } else {
20001
20002
  for (let le = 0; le < G; le++) {
20002
- const ne = O[le];
20003
- xe(ne[2], ne[1], ne[0]);
20003
+ const se = O[le];
20004
+ xe(se[2], se[1], se[0]);
20004
20005
  }
20005
20006
  for (let le = 0; le < G; le++) {
20006
- const ne = O[le];
20007
- xe(ne[0] + H * h, ne[1] + H * h, ne[2] + H * h);
20007
+ const se = O[le];
20008
+ xe(se[0] + H * h, se[1] + H * h, se[2] + H * h);
20008
20009
  }
20009
20010
  }
20010
20011
  n.addGroup(Q, i.length / 3 - Q, 0);
@@ -20013,17 +20014,17 @@ class gl extends Je {
20013
20014
  const Q = i.length / 3;
20014
20015
  let le = 0;
20015
20016
  X(L, le), le += L.length;
20016
- for (let ne = 0, _e = C.length; ne < _e; ne++) {
20017
- const ve = C[ne];
20017
+ for (let se = 0, _e = C.length; se < _e; se++) {
20018
+ const ve = C[se];
20018
20019
  X(ve, le), le += ve.length;
20019
20020
  }
20020
20021
  n.addGroup(Q, i.length / 3 - Q, 1);
20021
20022
  }
20022
20023
  function X(Q, le) {
20023
- let ne = Q.length;
20024
- for (; --ne >= 0; ) {
20025
- const _e = ne;
20026
- let ve = ne - 1;
20024
+ let se = Q.length;
20025
+ for (; --se >= 0; ) {
20026
+ const _e = se;
20027
+ let ve = se - 1;
20027
20028
  ve < 0 && (ve = Q.length - 1);
20028
20029
  for (let Xe = 0, N = h + x * 2; Xe < N; Xe++) {
20029
20030
  const Oe = H * Xe, Ce = H * (Xe + 1), Ge = le + _e + Oe, de = le + ve + Oe, st = le + ve + Ce, D = le + _e + Ce;
@@ -20031,16 +20032,16 @@ class gl extends Je {
20031
20032
  }
20032
20033
  }
20033
20034
  }
20034
- function re(Q, le, ne) {
20035
- l.push(Q), l.push(le), l.push(ne);
20035
+ function ie(Q, le, se) {
20036
+ l.push(Q), l.push(le), l.push(se);
20036
20037
  }
20037
- function xe(Q, le, ne) {
20038
- Ae(Q), Ae(le), Ae(ne);
20038
+ function xe(Q, le, se) {
20039
+ Ae(Q), Ae(le), Ae(se);
20039
20040
  const _e = i.length / 3, ve = g.generateTopUV(n, i, _e - 3, _e - 2, _e - 1);
20040
20041
  me(ve[0]), me(ve[1]), me(ve[2]);
20041
20042
  }
20042
- function we(Q, le, ne, _e) {
20043
- Ae(Q), Ae(le), Ae(_e), Ae(le), Ae(ne), Ae(_e);
20043
+ function we(Q, le, se, _e) {
20044
+ Ae(Q), Ae(le), Ae(_e), Ae(le), Ae(se), Ae(_e);
20044
20045
  const ve = i.length / 3, Xe = g.generateSideWallUV(n, i, ve - 6, ve - 3, ve - 2, ve - 1);
20045
20046
  me(Xe[0]), me(Xe[1]), me(Xe[3]), me(Xe[1]), me(Xe[2]), me(Xe[3]);
20046
20047
  }
@@ -20891,7 +20892,7 @@ var Hf = /* @__PURE__ */ Object.freeze({
20891
20892
  TubeGeometry: Al,
20892
20893
  WireframeGeometry: hx
20893
20894
  });
20894
- class ux extends $t {
20895
+ class ux extends Yt {
20895
20896
  /**
20896
20897
  * Constructs a new shadow material.
20897
20898
  *
@@ -20930,7 +20931,7 @@ function Zr(r) {
20930
20931
  }
20931
20932
  return e;
20932
20933
  }
20933
- function Zt(r) {
20934
+ function Kt(r) {
20934
20935
  const e = {};
20935
20936
  for (let t = 0; t < r.length; t++) {
20936
20937
  const n = Zr(r[t]);
@@ -20952,13 +20953,13 @@ function fx(r) {
20952
20953
  const e = r.getRenderTarget();
20953
20954
  return e === null ? r.outputColorSpace : e.isXRRenderTarget === !0 ? e.texture.colorSpace : rt.workingColorSpace;
20954
20955
  }
20955
- const dx = { clone: Zr, merge: Zt };
20956
+ const dx = { clone: Zr, merge: Kt };
20956
20957
  var Gv = `void main() {
20957
20958
  gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
20958
20959
  }`, Hv = `void main() {
20959
20960
  gl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );
20960
20961
  }`;
20961
- class Mn extends $t {
20962
+ class Mn extends Yt {
20962
20963
  /**
20963
20964
  * Constructs a new shader material.
20964
20965
  *
@@ -21034,7 +21035,7 @@ class Fu extends Mn {
21034
21035
  super(e), this.isRawShaderMaterial = !0, this.type = "RawShaderMaterial";
21035
21036
  }
21036
21037
  }
21037
- class Lu extends $t {
21038
+ class Lu extends Yt {
21038
21039
  /**
21039
21040
  * Constructs a new mesh standard material.
21040
21041
  *
@@ -21164,7 +21165,7 @@ class px extends Lu {
21164
21165
  }, this.anisotropy = e.anisotropy, this.anisotropyRotation = e.anisotropyRotation, this.anisotropyMap = e.anisotropyMap, this.clearcoat = e.clearcoat, this.clearcoatMap = e.clearcoatMap, this.clearcoatRoughness = e.clearcoatRoughness, this.clearcoatRoughnessMap = e.clearcoatRoughnessMap, this.clearcoatNormalMap = e.clearcoatNormalMap, this.clearcoatNormalScale.copy(e.clearcoatNormalScale), this.dispersion = e.dispersion, this.ior = e.ior, this.iridescence = e.iridescence, this.iridescenceMap = e.iridescenceMap, this.iridescenceIOR = e.iridescenceIOR, this.iridescenceThicknessRange = [...e.iridescenceThicknessRange], this.iridescenceThicknessMap = e.iridescenceThicknessMap, this.sheen = e.sheen, this.sheenColor.copy(e.sheenColor), this.sheenColorMap = e.sheenColorMap, this.sheenRoughness = e.sheenRoughness, this.sheenRoughnessMap = e.sheenRoughnessMap, this.transmission = e.transmission, this.transmissionMap = e.transmissionMap, this.thickness = e.thickness, this.thicknessMap = e.thicknessMap, this.attenuationDistance = e.attenuationDistance, this.attenuationColor.copy(e.attenuationColor), this.specularIntensity = e.specularIntensity, this.specularIntensityMap = e.specularIntensityMap, this.specularColor.copy(e.specularColor), this.specularColorMap = e.specularColorMap, this;
21165
21166
  }
21166
21167
  }
21167
- class xx extends $t {
21168
+ class xx extends Yt {
21168
21169
  /**
21169
21170
  * Constructs a new mesh phong material.
21170
21171
  *
@@ -21181,7 +21182,7 @@ class xx extends $t {
21181
21182
  return super.copy(e), this.color.copy(e.color), this.specular.copy(e.specular), this.shininess = e.shininess, this.map = e.map, this.lightMap = e.lightMap, this.lightMapIntensity = e.lightMapIntensity, this.aoMap = e.aoMap, this.aoMapIntensity = e.aoMapIntensity, this.emissive.copy(e.emissive), this.emissiveMap = e.emissiveMap, this.emissiveIntensity = e.emissiveIntensity, this.bumpMap = e.bumpMap, this.bumpScale = e.bumpScale, this.normalMap = e.normalMap, this.normalMapType = e.normalMapType, this.normalScale.copy(e.normalScale), this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this.specularMap = e.specularMap, this.alphaMap = e.alphaMap, this.envMap = e.envMap, this.envMapRotation.copy(e.envMapRotation), this.combine = e.combine, this.reflectivity = e.reflectivity, this.envMapIntensity = e.envMapIntensity, this.refractionRatio = e.refractionRatio, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.wireframeLinecap = e.wireframeLinecap, this.wireframeLinejoin = e.wireframeLinejoin, this.flatShading = e.flatShading, this.fog = e.fog, this;
21182
21183
  }
21183
21184
  }
21184
- class mx extends $t {
21185
+ class mx extends Yt {
21185
21186
  /**
21186
21187
  * Constructs a new mesh toon material.
21187
21188
  *
@@ -21198,7 +21199,7 @@ class mx extends $t {
21198
21199
  return super.copy(e), this.color.copy(e.color), this.map = e.map, this.gradientMap = e.gradientMap, this.lightMap = e.lightMap, this.lightMapIntensity = e.lightMapIntensity, this.aoMap = e.aoMap, this.aoMapIntensity = e.aoMapIntensity, this.emissive.copy(e.emissive), this.emissiveMap = e.emissiveMap, this.emissiveIntensity = e.emissiveIntensity, this.bumpMap = e.bumpMap, this.bumpScale = e.bumpScale, this.normalMap = e.normalMap, this.normalMapType = e.normalMapType, this.normalScale.copy(e.normalScale), this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this.alphaMap = e.alphaMap, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.wireframeLinecap = e.wireframeLinecap, this.wireframeLinejoin = e.wireframeLinejoin, this.fog = e.fog, this;
21199
21200
  }
21200
21201
  }
21201
- class gx extends $t {
21202
+ class gx extends Yt {
21202
21203
  /**
21203
21204
  * Constructs a new mesh normal material.
21204
21205
  *
@@ -21215,7 +21216,7 @@ class gx extends $t {
21215
21216
  return super.copy(e), this.bumpMap = e.bumpMap, this.bumpScale = e.bumpScale, this.normalMap = e.normalMap, this.normalMapType = e.normalMapType, this.normalScale.copy(e.normalScale), this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.flatShading = e.flatShading, this;
21216
21217
  }
21217
21218
  }
21218
- class _x extends $t {
21219
+ class _x extends Yt {
21219
21220
  /**
21220
21221
  * Constructs a new mesh lambert material.
21221
21222
  *
@@ -21232,7 +21233,7 @@ class _x extends $t {
21232
21233
  return super.copy(e), this.color.copy(e.color), this.map = e.map, this.lightMap = e.lightMap, this.lightMapIntensity = e.lightMapIntensity, this.aoMap = e.aoMap, this.aoMapIntensity = e.aoMapIntensity, this.emissive.copy(e.emissive), this.emissiveMap = e.emissiveMap, this.emissiveIntensity = e.emissiveIntensity, this.bumpMap = e.bumpMap, this.bumpScale = e.bumpScale, this.normalMap = e.normalMap, this.normalMapType = e.normalMapType, this.normalScale.copy(e.normalScale), this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this.specularMap = e.specularMap, this.alphaMap = e.alphaMap, this.envMap = e.envMap, this.envMapRotation.copy(e.envMapRotation), this.combine = e.combine, this.reflectivity = e.reflectivity, this.envMapIntensity = e.envMapIntensity, this.refractionRatio = e.refractionRatio, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.wireframeLinecap = e.wireframeLinecap, this.wireframeLinejoin = e.wireframeLinejoin, this.flatShading = e.flatShading, this.fog = e.fog, this;
21233
21234
  }
21234
21235
  }
21235
- class Nu extends $t {
21236
+ class Nu extends Yt {
21236
21237
  /**
21237
21238
  * Constructs a new mesh depth material.
21238
21239
  *
@@ -21249,7 +21250,7 @@ class Nu extends $t {
21249
21250
  return super.copy(e), this.depthPacking = e.depthPacking, this.map = e.map, this.alphaMap = e.alphaMap, this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this;
21250
21251
  }
21251
21252
  }
21252
- class Uu extends $t {
21253
+ class Uu extends Yt {
21253
21254
  /**
21254
21255
  * Constructs a new mesh distance material.
21255
21256
  *
@@ -21266,7 +21267,7 @@ class Uu extends $t {
21266
21267
  return super.copy(e), this.map = e.map, this.alphaMap = e.alphaMap, this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this;
21267
21268
  }
21268
21269
  }
21269
- class vx extends $t {
21270
+ class vx extends Yt {
21270
21271
  /**
21271
21272
  * Constructs a new mesh matcap material.
21272
21273
  *
@@ -21283,7 +21284,7 @@ class vx extends $t {
21283
21284
  return super.copy(e), this.defines = { MATCAP: "" }, this.color.copy(e.color), this.matcap = e.matcap, this.map = e.map, this.bumpMap = e.bumpMap, this.bumpScale = e.bumpScale, this.normalMap = e.normalMap, this.normalMapType = e.normalMapType, this.normalScale.copy(e.normalScale), this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this.alphaMap = e.alphaMap, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.flatShading = e.flatShading, this.fog = e.fog, this;
21284
21285
  }
21285
21286
  }
21286
- class yx extends tn {
21287
+ class yx extends nn {
21287
21288
  /**
21288
21289
  * Constructs a new line dashed material.
21289
21290
  *
@@ -21392,12 +21393,12 @@ function Xv(r, e = 0, t = r, n = 30) {
21392
21393
  const m = o.createInterpolant(), g = h, v = f - h;
21393
21394
  m.evaluate(s), _ = m.resultBuffer.slice(g, v);
21394
21395
  }
21395
- l === "quaternion" && new en().fromArray(_).normalize().conjugate().toArray(_);
21396
+ l === "quaternion" && new tn().fromArray(_).normalize().conjugate().toArray(_);
21396
21397
  const x = c.times.length;
21397
21398
  for (let m = 0; m < x; ++m) {
21398
21399
  const g = m * d + u;
21399
21400
  if (l === "quaternion")
21400
- en.multiplyQuaternionsFlat(
21401
+ tn.multiplyQuaternionsFlat(
21401
21402
  c.values,
21402
21403
  g,
21403
21404
  _,
@@ -22067,7 +22068,7 @@ class Ax extends ts {
22067
22068
  const s = this.resultBuffer, a = this.sampleValues, o = this.valueSize, l = (n - t) / (i - t);
22068
22069
  let c = e * o;
22069
22070
  for (let h = c + o; c !== h; c += 4)
22070
- en.slerpFlat(s, 0, a, c - o, a, c, l);
22071
+ tn.slerpFlat(s, 0, a, c - o, a, c, l);
22071
22072
  return s;
22072
22073
  }
22073
22074
  }
@@ -22874,7 +22875,7 @@ class Jv extends hn {
22874
22875
  height: d.height,
22875
22876
  format: d.format,
22876
22877
  mipmaps: d.mipmaps
22877
- }, c += 1, c === 6 && (d.mipmapCount === 1 && (o.minFilter = yt), o.image = a, o.format = d.format, o.needsUpdate = !0, t && t(o));
22878
+ }, c += 1, c === 6 && (d.mipmapCount === 1 && (o.minFilter = vt), o.image = a, o.format = d.format, o.needsUpdate = !0, t && t(o));
22878
22879
  }, n, i);
22879
22880
  }
22880
22881
  if (Array.isArray(e))
@@ -22893,7 +22894,7 @@ class Jv extends hn {
22893
22894
  o.image = a;
22894
22895
  } else
22895
22896
  o.image.width = u.width, o.image.height = u.height, o.mipmaps = u.mipmaps;
22896
- u.mipmapCount === 1 && (o.minFilter = yt), o.format = u.format, o.needsUpdate = !0, t && t(o);
22897
+ u.mipmapCount === 1 && (o.minFilter = vt), o.format = u.format, o.needsUpdate = !0, t && t(o);
22897
22898
  }, n, i);
22898
22899
  return o;
22899
22900
  }
@@ -22984,7 +22985,7 @@ class jv extends hn {
22984
22985
  */
22985
22986
  load(e, t, n, i) {
22986
22987
  const s = new na();
22987
- s.colorSpace = sn;
22988
+ s.colorSpace = an;
22988
22989
  const a = new Qs(this.manager);
22989
22990
  a.setCrossOrigin(this.crossOrigin), a.setPath(this.path);
22990
22991
  let o = 0;
@@ -23029,7 +23030,7 @@ class Qv extends hn {
23029
23030
  i !== void 0 ? i(h) : ke(h);
23030
23031
  return;
23031
23032
  }
23032
- c.image !== void 0 ? a.image = c.image : c.data !== void 0 && (a.image.width = c.width, a.image.height = c.height, a.image.data = c.data), a.wrapS = c.wrapS !== void 0 ? c.wrapS : cn, a.wrapT = c.wrapT !== void 0 ? c.wrapT : cn, a.magFilter = c.magFilter !== void 0 ? c.magFilter : yt, a.minFilter = c.minFilter !== void 0 ? c.minFilter : yt, a.anisotropy = c.anisotropy !== void 0 ? c.anisotropy : 1, c.colorSpace !== void 0 && (a.colorSpace = c.colorSpace), c.flipY !== void 0 && (a.flipY = c.flipY), c.format !== void 0 && (a.format = c.format), c.type !== void 0 && (a.type = c.type), c.mipmaps !== void 0 && (a.mipmaps = c.mipmaps, a.minFilter = Vn), c.mipmapCount === 1 && (a.minFilter = yt), c.generateMipmaps !== void 0 && (a.generateMipmaps = c.generateMipmaps), a.needsUpdate = !0, t && t(a, c);
23033
+ c.image !== void 0 ? a.image = c.image : c.data !== void 0 && (a.image.width = c.width, a.image.height = c.height, a.image.data = c.data), a.wrapS = c.wrapS !== void 0 ? c.wrapS : ln, a.wrapT = c.wrapT !== void 0 ? c.wrapT : ln, a.magFilter = c.magFilter !== void 0 ? c.magFilter : vt, a.minFilter = c.minFilter !== void 0 ? c.minFilter : vt, a.anisotropy = c.anisotropy !== void 0 ? c.anisotropy : 1, c.colorSpace !== void 0 && (a.colorSpace = c.colorSpace), c.flipY !== void 0 && (a.flipY = c.flipY), c.format !== void 0 && (a.format = c.format), c.type !== void 0 && (a.type = c.type), c.mipmaps !== void 0 && (a.mipmaps = c.mipmaps, a.minFilter = Vn), c.mipmapCount === 1 && (a.minFilter = vt), c.generateMipmaps !== void 0 && (a.generateMipmaps = c.generateMipmaps), a.needsUpdate = !0, t && t(a, c);
23033
23034
  }, n, i), a;
23034
23035
  }
23035
23036
  }
@@ -23055,7 +23056,7 @@ class ey extends hn {
23055
23056
  * @return {Texture} The texture.
23056
23057
  */
23057
23058
  load(e, t, n, i) {
23058
- const s = new wt(), a = new Qs(this.manager);
23059
+ const s = new Et(), a = new Qs(this.manager);
23059
23060
  return a.setCrossOrigin(this.crossOrigin), a.setPath(this.path), a.load(e, function(o) {
23060
23061
  s.image = o, s.needsUpdate = !0, t !== void 0 && t(s);
23061
23062
  }, n, i), s;
@@ -23113,7 +23114,7 @@ class Gu {
23113
23114
  * @param {Camera} camera - The light's view of the world.
23114
23115
  */
23115
23116
  constructor(e) {
23116
- this.camera = e, this.intensity = 1, this.bias = 0, this.biasNode = null, this.normalBias = 0, this.radius = 1, this.blurSamples = 8, this.mapSize = new he(512, 512), this.mapType = an, this.map = null, this.mapPass = null, this.matrix = new $e(), this.autoUpdate = !0, this.needsUpdate = !1, this._frustum = new Qr(), this._frameExtents = new he(1, 1), this._viewportCount = 1, this._viewports = [
23117
+ this.camera = e, this.intensity = 1, this.bias = 0, this.biasNode = null, this.normalBias = 0, this.radius = 1, this.blurSamples = 8, this.mapSize = new he(512, 512), this.mapType = on, this.map = null, this.mapPass = null, this.matrix = new $e(), this.autoUpdate = !0, this.needsUpdate = !1, this._frustum = new Qr(), this._frameExtents = new he(1, 1), this._viewportCount = 1, this._viewports = [
23117
23118
  new dt(0, 0, 1, 1)
23118
23119
  ];
23119
23120
  }
@@ -23230,7 +23231,7 @@ class Gu {
23230
23231
  return this.intensity !== 1 && (e.intensity = this.intensity), this.bias !== 0 && (e.bias = this.bias), this.normalBias !== 0 && (e.normalBias = this.normalBias), this.radius !== 1 && (e.radius = this.radius), (this.mapSize.x !== 512 || this.mapSize.y !== 512) && (e.mapSize = this.mapSize.toArray()), e.camera = this.camera.toJSON(!1).object, delete e.camera.matrix, e;
23231
23232
  }
23232
23233
  }
23233
- const Xa = /* @__PURE__ */ new B(), qa = /* @__PURE__ */ new en(), Un = /* @__PURE__ */ new B();
23234
+ const Xa = /* @__PURE__ */ new B(), qa = /* @__PURE__ */ new tn(), Un = /* @__PURE__ */ new B();
23234
23235
  class wl extends ht {
23235
23236
  /**
23236
23237
  * Constructs a new camera.
@@ -23978,8 +23979,8 @@ class Cl extends hn {
23978
23979
  MeshBasicMaterial: Ci,
23979
23980
  MeshMatcapMaterial: vx,
23980
23981
  LineDashedMaterial: yx,
23981
- LineBasicMaterial: tn,
23982
- Material: $t
23982
+ LineBasicMaterial: nn,
23983
+ Material: Yt
23983
23984
  };
23984
23985
  return new t[e]();
23985
23986
  }
@@ -24369,7 +24370,7 @@ class ry extends hn {
24369
24370
  o.image === void 0 && Ee('ObjectLoader: No "image" specified for', o.uuid), t[o.image] === void 0 && Ee("ObjectLoader: Undefined image", o.image);
24370
24371
  const l = t[o.image], c = l.data;
24371
24372
  let h;
24372
- Array.isArray(c) ? (h = new na(), c.length === 6 && (h.needsUpdate = !0)) : (c && c.data ? h = new Dn() : h = new wt(), c && (h.needsUpdate = !0)), h.source = l, h.uuid = o.uuid, o.name !== void 0 && (h.name = o.name), o.mapping !== void 0 && (h.mapping = n(o.mapping, sy)), o.channel !== void 0 && (h.channel = o.channel), o.offset !== void 0 && h.offset.fromArray(o.offset), o.repeat !== void 0 && h.repeat.fromArray(o.repeat), o.center !== void 0 && h.center.fromArray(o.center), o.rotation !== void 0 && (h.rotation = o.rotation), o.wrap !== void 0 && (h.wrapS = n(o.wrap[0], Kf), h.wrapT = n(o.wrap[1], Kf)), o.format !== void 0 && (h.format = o.format), o.internalFormat !== void 0 && (h.internalFormat = o.internalFormat), o.type !== void 0 && (h.type = o.type), o.colorSpace !== void 0 && (h.colorSpace = o.colorSpace), o.minFilter !== void 0 && (h.minFilter = n(o.minFilter, Jf)), o.magFilter !== void 0 && (h.magFilter = n(o.magFilter, Jf)), o.anisotropy !== void 0 && (h.anisotropy = o.anisotropy), o.flipY !== void 0 && (h.flipY = o.flipY), o.generateMipmaps !== void 0 && (h.generateMipmaps = o.generateMipmaps), o.premultiplyAlpha !== void 0 && (h.premultiplyAlpha = o.premultiplyAlpha), o.unpackAlignment !== void 0 && (h.unpackAlignment = o.unpackAlignment), o.compareFunction !== void 0 && (h.compareFunction = o.compareFunction), o.normalized !== void 0 && (h.normalized = o.normalized), o.userData !== void 0 && (h.userData = o.userData), i[o.uuid] = h;
24373
+ Array.isArray(c) ? (h = new na(), c.length === 6 && (h.needsUpdate = !0)) : (c && c.data ? h = new Dn() : h = new Et(), c && (h.needsUpdate = !0)), h.source = l, h.uuid = o.uuid, o.name !== void 0 && (h.name = o.name), o.mapping !== void 0 && (h.mapping = n(o.mapping, sy)), o.channel !== void 0 && (h.channel = o.channel), o.offset !== void 0 && h.offset.fromArray(o.offset), o.repeat !== void 0 && h.repeat.fromArray(o.repeat), o.center !== void 0 && h.center.fromArray(o.center), o.rotation !== void 0 && (h.rotation = o.rotation), o.wrap !== void 0 && (h.wrapS = n(o.wrap[0], Kf), h.wrapT = n(o.wrap[1], Kf)), o.format !== void 0 && (h.format = o.format), o.internalFormat !== void 0 && (h.internalFormat = o.internalFormat), o.type !== void 0 && (h.type = o.type), o.colorSpace !== void 0 && (h.colorSpace = o.colorSpace), o.minFilter !== void 0 && (h.minFilter = n(o.minFilter, Jf)), o.magFilter !== void 0 && (h.magFilter = n(o.magFilter, Jf)), o.anisotropy !== void 0 && (h.anisotropy = o.anisotropy), o.flipY !== void 0 && (h.flipY = o.flipY), o.generateMipmaps !== void 0 && (h.generateMipmaps = o.generateMipmaps), o.premultiplyAlpha !== void 0 && (h.premultiplyAlpha = o.premultiplyAlpha), o.unpackAlignment !== void 0 && (h.unpackAlignment = o.unpackAlignment), o.compareFunction !== void 0 && (h.compareFunction = o.compareFunction), o.normalized !== void 0 && (h.normalized = o.normalized), o.userData !== void 0 && (h.userData = o.userData), i[o.uuid] = h;
24373
24374
  }
24374
24375
  return i;
24375
24376
  }
@@ -24431,7 +24432,7 @@ class ry extends hn {
24431
24432
  h = o(e.geometry), f = l(e.material), a = new $p(h, f), e.bindMode !== void 0 && (a.bindMode = e.bindMode), e.bindMatrix !== void 0 && a.bindMatrix.fromArray(e.bindMatrix), e.skeleton !== void 0 && (a.skeleton = e.skeleton);
24432
24433
  break;
24433
24434
  case "Mesh":
24434
- h = o(e.geometry), f = l(e.material), a = new Mt(h, f);
24435
+ h = o(e.geometry), f = l(e.material), a = new At(h, f);
24435
24436
  break;
24436
24437
  case "InstancedMesh":
24437
24438
  h = o(e.geometry), f = l(e.material);
@@ -24441,12 +24442,12 @@ class ry extends hn {
24441
24442
  case "BatchedMesh":
24442
24443
  h = o(e.geometry), f = l(e.material), a = new Zp(e.maxInstanceCount, e.maxVertexCount, e.maxIndexCount, f), a.geometry = h, a.perObjectFrustumCulled = e.perObjectFrustumCulled, a.sortObjects = e.sortObjects, a._drawRanges = e.drawRanges, a._reservedRanges = e.reservedRanges, a._geometryInfo = e.geometryInfo.map((x) => {
24443
24444
  let m = null, g = null;
24444
- return x.boundingBox !== void 0 && (m = new qt().fromJSON(x.boundingBox)), x.boundingSphere !== void 0 && (g = new Vt().fromJSON(x.boundingSphere)), {
24445
+ return x.boundingBox !== void 0 && (m = new $t().fromJSON(x.boundingBox)), x.boundingSphere !== void 0 && (g = new Vt().fromJSON(x.boundingSphere)), {
24445
24446
  ...x,
24446
24447
  boundingBox: m,
24447
24448
  boundingSphere: g
24448
24449
  };
24449
- }), a._instanceInfo = e.instanceInfo, a._availableInstanceIds = e._availableInstanceIds, a._availableGeometryIds = e._availableGeometryIds, a._nextIndexStart = e.nextIndexStart, a._nextVertexStart = e.nextVertexStart, a._geometryCount = e.geometryCount, a._maxInstanceCount = e.maxInstanceCount, a._maxVertexCount = e.maxVertexCount, a._maxIndexCount = e.maxIndexCount, a._geometryInitialized = e.geometryInitialized, a._matricesTexture = c(e.matricesTexture.uuid), a._indirectTexture = c(e.indirectTexture.uuid), e.colorsTexture !== void 0 && (a._colorsTexture = c(e.colorsTexture.uuid)), e.boundingSphere !== void 0 && (a.boundingSphere = new Vt().fromJSON(e.boundingSphere)), e.boundingBox !== void 0 && (a.boundingBox = new qt().fromJSON(e.boundingBox));
24450
+ }), a._instanceInfo = e.instanceInfo, a._availableInstanceIds = e._availableInstanceIds, a._availableGeometryIds = e._availableGeometryIds, a._nextIndexStart = e.nextIndexStart, a._nextVertexStart = e.nextVertexStart, a._geometryCount = e.geometryCount, a._maxInstanceCount = e.maxInstanceCount, a._maxVertexCount = e.maxVertexCount, a._maxIndexCount = e.maxIndexCount, a._geometryInitialized = e.geometryInitialized, a._matricesTexture = c(e.matricesTexture.uuid), a._indirectTexture = c(e.indirectTexture.uuid), e.colorsTexture !== void 0 && (a._colorsTexture = c(e.colorsTexture.uuid)), e.boundingSphere !== void 0 && (a.boundingSphere = new Vt().fromJSON(e.boundingSphere)), e.boundingBox !== void 0 && (a.boundingBox = new $t().fromJSON(e.boundingBox));
24450
24451
  break;
24451
24452
  case "LOD":
24452
24453
  a = new qp();
@@ -24524,13 +24525,13 @@ const sy = {
24524
24525
  CubeUVReflectionMapping: Jr
24525
24526
  }, Kf = {
24526
24527
  RepeatWrapping: Ns,
24527
- ClampToEdgeWrapping: cn,
24528
+ ClampToEdgeWrapping: ln,
24528
24529
  MirroredRepeatWrapping: Us
24529
24530
  }, Jf = {
24530
24531
  NearestFilter: Pt,
24531
24532
  NearestMipmapNearestFilter: uu,
24532
24533
  NearestMipmapLinearFilter: kr,
24533
- LinearFilter: yt,
24534
+ LinearFilter: vt,
24534
24535
  LinearMipmapNearestFilter: Ts,
24535
24536
  LinearMipmapLinearFilter: Vn
24536
24537
  }, dh = /* @__PURE__ */ new WeakMap();
@@ -24846,7 +24847,7 @@ class Ox {
24846
24847
  function ly() {
24847
24848
  this._document.hidden === !1 && this.reset();
24848
24849
  }
24849
- const Oi = /* @__PURE__ */ new B(), ph = /* @__PURE__ */ new en(), hy = /* @__PURE__ */ new B(), ki = /* @__PURE__ */ new B(), zi = /* @__PURE__ */ new B();
24850
+ const Oi = /* @__PURE__ */ new B(), ph = /* @__PURE__ */ new tn(), hy = /* @__PURE__ */ new B(), ki = /* @__PURE__ */ new B(), zi = /* @__PURE__ */ new B();
24850
24851
  class uy extends ht {
24851
24852
  /**
24852
24853
  * Constructs a new audio listener.
@@ -25211,7 +25212,7 @@ class kx extends ht {
25211
25212
  return new this.constructor(this.listener).copy(this, e);
25212
25213
  }
25213
25214
  }
25214
- const Vi = /* @__PURE__ */ new B(), ed = /* @__PURE__ */ new en(), fy = /* @__PURE__ */ new B(), Gi = /* @__PURE__ */ new B();
25215
+ const Vi = /* @__PURE__ */ new B(), ed = /* @__PURE__ */ new tn(), fy = /* @__PURE__ */ new B(), Gi = /* @__PURE__ */ new B();
25215
25216
  class dy extends kx {
25216
25217
  /**
25217
25218
  * Constructs a positional audio.
@@ -25480,11 +25481,11 @@ class zx {
25480
25481
  e[t + a] = e[n + a];
25481
25482
  }
25482
25483
  _slerp(e, t, n, i) {
25483
- en.slerpFlat(e, t, e, t, e, n, i);
25484
+ tn.slerpFlat(e, t, e, t, e, n, i);
25484
25485
  }
25485
25486
  _slerpAdditive(e, t, n, i, s) {
25486
25487
  const a = this._workIndex * s;
25487
- en.multiplyQuaternionsFlat(e, a, e, t, e, n), en.slerpFlat(e, t, e, t, e, a, i);
25488
+ tn.multiplyQuaternionsFlat(e, a, e, t, e, n), tn.slerpFlat(e, t, e, t, e, a, i);
25488
25489
  }
25489
25490
  _lerp(e, t, n, i, s) {
25490
25491
  const a = 1 - i;
@@ -27656,7 +27657,7 @@ class zy extends ht {
27656
27657
  );
27657
27658
  }
27658
27659
  n.setAttribute("position", new Fe(i, 3));
27659
- const s = new tn({ fog: !1, toneMapped: !1 });
27660
+ const s = new nn({ fog: !1, toneMapped: !1 });
27660
27661
  this.cone = new $n(n, s), this.add(this.cone), this.update();
27661
27662
  }
27662
27663
  /**
@@ -27691,7 +27692,7 @@ class Vy extends $n {
27691
27692
  h.parent && h.parent.isBone && (i.push(0, 0, 0), i.push(0, 0, 0), s.push(0, 0, 0), s.push(0, 0, 0));
27692
27693
  }
27693
27694
  n.setAttribute("position", new Fe(i, 3)), n.setAttribute("color", new Fe(s, 3));
27694
- const a = new tn({ vertexColors: !0, depthTest: !1, depthWrite: !1, toneMapped: !1, transparent: !0 });
27695
+ const a = new nn({ vertexColors: !0, depthTest: !1, depthWrite: !1, toneMapped: !1, transparent: !0 });
27695
27696
  super(n, a), this.isSkeletonHelper = !0, this.type = "SkeletonHelper", this.root = e, this.bones = t, this.matrix = e.matrixWorld, this.matrixAutoUpdate = !1;
27696
27697
  const o = new Be(255), l = new Be(65280);
27697
27698
  this.setColors(o, l);
@@ -27733,7 +27734,7 @@ function Gx(r) {
27733
27734
  e.push(...Gx(r.children[t]));
27734
27735
  return e;
27735
27736
  }
27736
- class Gy extends Mt {
27737
+ class Gy extends At {
27737
27738
  /**
27738
27739
  * Constructs a new point light helper.
27739
27740
  *
@@ -27776,7 +27777,7 @@ class Wy extends ht {
27776
27777
  const i = new sa(t);
27777
27778
  i.rotateY(Math.PI * 0.5), this.material = new Ci({ wireframe: !0, fog: !1, toneMapped: !1 }), this.color === void 0 && (this.material.vertexColors = !0);
27778
27779
  const s = i.getAttribute("position"), a = new Float32Array(s.count * 3);
27779
- i.setAttribute("color", new xt(a, 3)), this.add(new Mt(i, this.material)), this.update();
27780
+ i.setAttribute("color", new xt(a, 3)), this.add(new At(i, this.material)), this.update();
27780
27781
  }
27781
27782
  /**
27782
27783
  * Frees the GPU-related resources allocated by this instance. Call this
@@ -27824,7 +27825,7 @@ class Xy extends $n {
27824
27825
  }
27825
27826
  const h = new Je();
27826
27827
  h.setAttribute("position", new Fe(l, 3)), h.setAttribute("color", new Fe(c, 3));
27827
- const f = new tn({ vertexColors: !0, toneMapped: !1 });
27828
+ const f = new nn({ vertexColors: !0, toneMapped: !1 });
27828
27829
  super(h, f), this.type = "GridHelper";
27829
27830
  }
27830
27831
  /**
@@ -27865,7 +27866,7 @@ class qy extends $n {
27865
27866
  }
27866
27867
  const c = new Je();
27867
27868
  c.setAttribute("position", new Fe(o, 3)), c.setAttribute("color", new Fe(l, 3));
27868
- const h = new tn({ vertexColors: !0, toneMapped: !1 });
27869
+ const h = new nn({ vertexColors: !0, toneMapped: !1 });
27869
27870
  super(c, h), this.type = "PolarGridHelper";
27870
27871
  }
27871
27872
  /**
@@ -27906,7 +27907,7 @@ class $y extends ht {
27906
27907
  t,
27907
27908
  0
27908
27909
  ], 3));
27909
- const s = new tn({ fog: !1, toneMapped: !1 });
27910
+ const s = new nn({ fog: !1, toneMapped: !1 });
27910
27911
  this.lightPlane = new Ai(i, s), this.add(this.lightPlane), i = new Je(), i.setAttribute("position", new Fe([0, 0, 0, 0, 0, 1], 3)), this.targetLine = new Ai(i, s), this.add(this.targetLine), this.update();
27911
27912
  }
27912
27913
  /**
@@ -27932,7 +27933,7 @@ class Yy extends $n {
27932
27933
  * @param {Camera} camera - The camera to visualize.
27933
27934
  */
27934
27935
  constructor(e) {
27935
- const t = new Je(), n = new tn({ color: 16777215, vertexColors: !0, toneMapped: !1 }), i = [], s = [], a = {};
27936
+ const t = new Je(), n = new nn({ color: 16777215, vertexColors: !0, toneMapped: !1 }), i = [], s = [], a = {};
27936
27937
  o("n1", "n2"), o("n2", "n4"), o("n4", "n3"), o("n3", "n1"), o("f1", "f2"), o("f2", "f4"), o("f4", "f3"), o("f3", "f1"), o("n1", "f1"), o("n2", "f2"), o("n3", "f3"), o("n4", "f4"), o("p", "n1"), o("p", "n2"), o("p", "n3"), o("p", "n4"), o("u1", "u2"), o("u2", "u3"), o("u3", "u1"), o("c", "t"), o("p", "c"), o("cn1", "cn2"), o("cn3", "cn4"), o("cf1", "cf2"), o("cf3", "cf4");
27937
27938
  function o(p, _) {
27938
27939
  l(p), l(_);
@@ -27991,7 +27992,7 @@ function It(r, e, t, n, i, s, a) {
27991
27992
  l.setXYZ(o[c], Ja.x, Ja.y, Ja.z);
27992
27993
  }
27993
27994
  }
27994
- const ja = /* @__PURE__ */ new qt();
27995
+ const ja = /* @__PURE__ */ new $t();
27995
27996
  class Zy extends $n {
27996
27997
  /**
27997
27998
  * Constructs a new box helper.
@@ -28001,7 +28002,7 @@ class Zy extends $n {
28001
28002
  */
28002
28003
  constructor(e, t = 16776960) {
28003
28004
  const n = new Uint16Array([0, 1, 1, 2, 2, 3, 3, 0, 4, 5, 5, 6, 6, 7, 7, 4, 0, 4, 1, 5, 2, 6, 3, 7]), i = new Float32Array(24), s = new Je();
28004
- s.setIndex(new xt(n, 1)), s.setAttribute("position", new xt(i, 3)), super(s, new tn({ color: t, toneMapped: !1 })), this.object = e, this.type = "BoxHelper", this.matrixAutoUpdate = !1, this.update();
28005
+ s.setIndex(new xt(n, 1)), s.setAttribute("position", new xt(i, 3)), super(s, new nn({ color: t, toneMapped: !1 })), this.object = e, this.type = "BoxHelper", this.matrixAutoUpdate = !1, this.update();
28005
28006
  }
28006
28007
  /**
28007
28008
  * Updates the helper's geometry to match the dimensions of the object,
@@ -28041,7 +28042,7 @@ class Ky extends $n {
28041
28042
  */
28042
28043
  constructor(e, t = 16776960) {
28043
28044
  const n = new Uint16Array([0, 1, 1, 2, 2, 3, 3, 0, 4, 5, 5, 6, 6, 7, 7, 4, 0, 4, 1, 5, 2, 6, 3, 7]), i = [1, 1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, -1, -1, 1, -1, -1, -1, -1, 1, -1, -1], s = new Je();
28044
- s.setIndex(new xt(n, 1)), s.setAttribute("position", new Fe(i, 3)), super(s, new tn({ color: t, toneMapped: !1 })), this.box = e, this.type = "Box3Helper", this.geometry.computeBoundingSphere();
28045
+ s.setIndex(new xt(n, 1)), s.setAttribute("position", new Fe(i, 3)), super(s, new nn({ color: t, toneMapped: !1 })), this.box = e, this.type = "Box3Helper", this.geometry.computeBoundingSphere();
28045
28046
  }
28046
28047
  updateMatrixWorld(e) {
28047
28048
  const t = this.box;
@@ -28065,9 +28066,9 @@ class Jy extends Ai {
28065
28066
  */
28066
28067
  constructor(e, t = 1, n = 16776960) {
28067
28068
  const i = n, s = [1, -1, 0, -1, 1, 0, -1, -1, 0, 1, 1, 0, -1, 1, 0, -1, -1, 0, 1, -1, 0, 1, 1, 0], a = new Je();
28068
- a.setAttribute("position", new Fe(s, 3)), a.computeBoundingSphere(), super(a, new tn({ color: i, toneMapped: !1 })), this.type = "PlaneHelper", this.plane = e, this.size = t;
28069
+ a.setAttribute("position", new Fe(s, 3)), a.computeBoundingSphere(), super(a, new nn({ color: i, toneMapped: !1 })), this.type = "PlaneHelper", this.plane = e, this.size = t;
28069
28070
  const o = [1, 1, 0, -1, 1, 0, -1, -1, 0, 1, 1, 0, -1, -1, 0, 1, -1, 0], l = new Je();
28070
- l.setAttribute("position", new Fe(o, 3)), l.computeBoundingSphere(), this.add(new Mt(l, new Ci({ color: i, opacity: 0.2, transparent: !0, depthWrite: !1, toneMapped: !1 })));
28071
+ l.setAttribute("position", new Fe(o, 3)), l.computeBoundingSphere(), this.add(new At(l, new Ci({ color: i, opacity: 0.2, transparent: !0, depthWrite: !1, toneMapped: !1 })));
28071
28072
  }
28072
28073
  updateMatrixWorld(e) {
28073
28074
  this.position.set(0, 0, 0), this.scale.set(0.5 * this.size, 0.5 * this.size, 1), this.lookAt(this.plane.normal), this.translateZ(-this.plane.constant), super.updateMatrixWorld(e);
@@ -28094,7 +28095,7 @@ class jy extends ht {
28094
28095
  * @param {number} [headWidth=headLength*0.2] - The width of the head of the arrow.
28095
28096
  */
28096
28097
  constructor(e = new B(0, 0, 1), t = new B(0, 0, 0), n = 1, i = 16776960, s = n * 0.2, a = s * 0.2) {
28097
- super(), this.type = "ArrowHelper", Qa === void 0 && (Qa = new Je(), Qa.setAttribute("position", new Fe([0, 0, 0, 0, 1, 0], 3)), gh = new ra(0.5, 1, 5, 1), gh.translate(0, -0.5, 0)), this.position.copy(t), this.line = new Ai(Qa, new tn({ color: i, toneMapped: !1 })), this.line.matrixAutoUpdate = !1, this.add(this.line), this.cone = new Mt(gh, new Ci({ color: i, toneMapped: !1 })), this.cone.matrixAutoUpdate = !1, this.add(this.cone), this.setDirection(e), this.setLength(n, s, a);
28098
+ super(), this.type = "ArrowHelper", Qa === void 0 && (Qa = new Je(), Qa.setAttribute("position", new Fe([0, 0, 0, 0, 1, 0], 3)), gh = new ra(0.5, 1, 5, 1), gh.translate(0, -0.5, 0)), this.position.copy(t), this.line = new Ai(Qa, new nn({ color: i, toneMapped: !1 })), this.line.matrixAutoUpdate = !1, this.add(this.line), this.cone = new At(gh, new Ci({ color: i, toneMapped: !1 })), this.cone.matrixAutoUpdate = !1, this.add(this.cone), this.setDirection(e), this.setLength(n, s, a);
28098
28099
  }
28099
28100
  /**
28100
28101
  * Sets the direction of the helper.
@@ -28188,7 +28189,7 @@ class Qy extends $n {
28188
28189
  1
28189
28190
  ], i = new Je();
28190
28191
  i.setAttribute("position", new Fe(t, 3)), i.setAttribute("color", new Fe(n, 3));
28191
- const s = new tn({ vertexColors: !0, toneMapped: !1 });
28192
+ const s = new nn({ vertexColors: !0, toneMapped: !1 });
28192
28193
  super(i, s), this.type = "AxesHelper";
28193
28194
  }
28194
28195
  /**
@@ -28424,7 +28425,7 @@ function Yh(r, e, t, n) {
28424
28425
  return r * e * 2 / i.components * i.byteLength;
28425
28426
  case gu:
28426
28427
  return r * e * 3 / i.components * i.byteLength;
28427
- case jt:
28428
+ case Qt:
28428
28429
  return r * e * 4 / i.components * i.byteLength;
28429
28430
  case el:
28430
28431
  return r * e * 4 / i.components * i.byteLength;
@@ -28500,7 +28501,7 @@ function Yh(r, e, t, n) {
28500
28501
  }
28501
28502
  function sb(r) {
28502
28503
  switch (r) {
28503
- case an:
28504
+ case on:
28504
28505
  case fu:
28505
28506
  return { byteLength: 1, components: 1 };
28506
28507
  case Wr:
@@ -28512,7 +28513,7 @@ function sb(r) {
28512
28513
  return { byteLength: 2, components: 4 };
28513
28514
  case bn:
28514
28515
  case Zc:
28515
- case Jt:
28516
+ case jt:
28516
28517
  return { byteLength: 4, components: 1 };
28517
28518
  case pu:
28518
28519
  case xu:
@@ -32659,7 +32660,7 @@ void main() {
32659
32660
  }
32660
32661
  }, Cn = {
32661
32662
  basic: {
32662
- uniforms: /* @__PURE__ */ Zt([
32663
+ uniforms: /* @__PURE__ */ Kt([
32663
32664
  Te.common,
32664
32665
  Te.specularmap,
32665
32666
  Te.envmap,
@@ -32671,7 +32672,7 @@ void main() {
32671
32672
  fragmentShader: tt.meshbasic_frag
32672
32673
  },
32673
32674
  lambert: {
32674
- uniforms: /* @__PURE__ */ Zt([
32675
+ uniforms: /* @__PURE__ */ Kt([
32675
32676
  Te.common,
32676
32677
  Te.specularmap,
32677
32678
  Te.envmap,
@@ -32692,7 +32693,7 @@ void main() {
32692
32693
  fragmentShader: tt.meshlambert_frag
32693
32694
  },
32694
32695
  phong: {
32695
- uniforms: /* @__PURE__ */ Zt([
32696
+ uniforms: /* @__PURE__ */ Kt([
32696
32697
  Te.common,
32697
32698
  Te.specularmap,
32698
32699
  Te.envmap,
@@ -32715,7 +32716,7 @@ void main() {
32715
32716
  fragmentShader: tt.meshphong_frag
32716
32717
  },
32717
32718
  standard: {
32718
- uniforms: /* @__PURE__ */ Zt([
32719
+ uniforms: /* @__PURE__ */ Kt([
32719
32720
  Te.common,
32720
32721
  Te.envmap,
32721
32722
  Te.aomap,
@@ -32739,7 +32740,7 @@ void main() {
32739
32740
  fragmentShader: tt.meshphysical_frag
32740
32741
  },
32741
32742
  toon: {
32742
- uniforms: /* @__PURE__ */ Zt([
32743
+ uniforms: /* @__PURE__ */ Kt([
32743
32744
  Te.common,
32744
32745
  Te.aomap,
32745
32746
  Te.lightmap,
@@ -32758,7 +32759,7 @@ void main() {
32758
32759
  fragmentShader: tt.meshtoon_frag
32759
32760
  },
32760
32761
  matcap: {
32761
- uniforms: /* @__PURE__ */ Zt([
32762
+ uniforms: /* @__PURE__ */ Kt([
32762
32763
  Te.common,
32763
32764
  Te.bumpmap,
32764
32765
  Te.normalmap,
@@ -32772,7 +32773,7 @@ void main() {
32772
32773
  fragmentShader: tt.meshmatcap_frag
32773
32774
  },
32774
32775
  points: {
32775
- uniforms: /* @__PURE__ */ Zt([
32776
+ uniforms: /* @__PURE__ */ Kt([
32776
32777
  Te.points,
32777
32778
  Te.fog
32778
32779
  ]),
@@ -32780,7 +32781,7 @@ void main() {
32780
32781
  fragmentShader: tt.points_frag
32781
32782
  },
32782
32783
  dashed: {
32783
- uniforms: /* @__PURE__ */ Zt([
32784
+ uniforms: /* @__PURE__ */ Kt([
32784
32785
  Te.common,
32785
32786
  Te.fog,
32786
32787
  {
@@ -32793,7 +32794,7 @@ void main() {
32793
32794
  fragmentShader: tt.linedashed_frag
32794
32795
  },
32795
32796
  depth: {
32796
- uniforms: /* @__PURE__ */ Zt([
32797
+ uniforms: /* @__PURE__ */ Kt([
32797
32798
  Te.common,
32798
32799
  Te.displacementmap
32799
32800
  ]),
@@ -32801,7 +32802,7 @@ void main() {
32801
32802
  fragmentShader: tt.depth_frag
32802
32803
  },
32803
32804
  normal: {
32804
- uniforms: /* @__PURE__ */ Zt([
32805
+ uniforms: /* @__PURE__ */ Kt([
32805
32806
  Te.common,
32806
32807
  Te.bumpmap,
32807
32808
  Te.normalmap,
@@ -32814,7 +32815,7 @@ void main() {
32814
32815
  fragmentShader: tt.meshnormal_frag
32815
32816
  },
32816
32817
  sprite: {
32817
- uniforms: /* @__PURE__ */ Zt([
32818
+ uniforms: /* @__PURE__ */ Kt([
32818
32819
  Te.sprite,
32819
32820
  Te.fog
32820
32821
  ]),
@@ -32857,7 +32858,7 @@ void main() {
32857
32858
  fragmentShader: tt.equirect_frag
32858
32859
  },
32859
32860
  distance: {
32860
- uniforms: /* @__PURE__ */ Zt([
32861
+ uniforms: /* @__PURE__ */ Kt([
32861
32862
  Te.common,
32862
32863
  Te.displacementmap,
32863
32864
  {
@@ -32870,7 +32871,7 @@ void main() {
32870
32871
  fragmentShader: tt.distance_frag
32871
32872
  },
32872
32873
  shadow: {
32873
- uniforms: /* @__PURE__ */ Zt([
32874
+ uniforms: /* @__PURE__ */ Kt([
32874
32875
  Te.lights,
32875
32876
  Te.fog,
32876
32877
  {
@@ -32883,7 +32884,7 @@ void main() {
32883
32884
  }
32884
32885
  };
32885
32886
  Cn.physical = {
32886
- uniforms: /* @__PURE__ */ Zt([
32887
+ uniforms: /* @__PURE__ */ Kt([
32887
32888
  Cn.standard.uniforms,
32888
32889
  {
32889
32890
  clearcoat: { value: 0 },
@@ -32957,14 +32958,14 @@ function HS(r, e, t, n, i, s) {
32957
32958
  }
32958
32959
  function _(g, v) {
32959
32960
  const y = d(v);
32960
- y && (y.isCubeTexture || y.mapping === Jr) ? (c === void 0 && (c = new Mt(
32961
+ y && (y.isCubeTexture || y.mapping === Jr) ? (c === void 0 && (c = new At(
32961
32962
  new or(1, 1, 1),
32962
32963
  new Mn({
32963
32964
  name: "BackgroundCubeMaterial",
32964
32965
  uniforms: Zr(Cn.backgroundCube.uniforms),
32965
32966
  vertexShader: Cn.backgroundCube.vertexShader,
32966
32967
  fragmentShader: Cn.backgroundCube.fragmentShader,
32967
- side: Qt,
32968
+ side: en,
32968
32969
  depthTest: !1,
32969
32970
  depthWrite: !1,
32970
32971
  fog: !1,
@@ -32976,7 +32977,7 @@ function HS(r, e, t, n, i, s) {
32976
32977
  get: function() {
32977
32978
  return this.uniforms.envMap.value;
32978
32979
  }
32979
- }), n.update(c)), c.material.uniforms.envMap.value = y, c.material.uniforms.backgroundBlurriness.value = v.backgroundBlurriness, c.material.uniforms.backgroundIntensity.value = v.backgroundIntensity, c.material.uniforms.backgroundRotation.value.setFromMatrix4(GS.makeRotationFromEuler(v.backgroundRotation)).transpose(), y.isCubeTexture && y.isRenderTargetTexture === !1 && c.material.uniforms.backgroundRotation.value.premultiply(Wx), c.material.toneMapped = rt.getTransfer(y.colorSpace) !== ft, (h !== y || f !== y.version || u !== r.toneMapping) && (c.material.needsUpdate = !0, h = y, f = y.version, u = r.toneMapping), c.layers.enableAll(), g.unshift(c, c.geometry, c.material, 0, 0, null)) : y && y.isTexture && (l === void 0 && (l = new Mt(
32980
+ }), n.update(c)), c.material.uniforms.envMap.value = y, c.material.uniforms.backgroundBlurriness.value = v.backgroundBlurriness, c.material.uniforms.backgroundIntensity.value = v.backgroundIntensity, c.material.uniforms.backgroundRotation.value.setFromMatrix4(GS.makeRotationFromEuler(v.backgroundRotation)).transpose(), y.isCubeTexture && y.isRenderTargetTexture === !1 && c.material.uniforms.backgroundRotation.value.premultiply(Wx), c.material.toneMapped = rt.getTransfer(y.colorSpace) !== ft, (h !== y || f !== y.version || u !== r.toneMapping) && (c.material.needsUpdate = !0, h = y, f = y.version, u = r.toneMapping), c.layers.enableAll(), g.unshift(c, c.geometry, c.material, 0, 0, null)) : y && y.isTexture && (l === void 0 && (l = new At(
32980
32981
  new es(2, 2),
32981
32982
  new Mn({
32982
32983
  name: "BackgroundMaterial",
@@ -33045,8 +33046,8 @@ function WS(r, e) {
33045
33046
  K === void 0 && (K = {}, U[H] = K);
33046
33047
  let ee = K[F.id];
33047
33048
  ee === void 0 && (ee = {}, K[F.id] = ee);
33048
- let se = ee[L];
33049
- return se === void 0 && (se = u(l()), ee[L] = se), se;
33049
+ let re = ee[L];
33050
+ return re === void 0 && (re = u(l()), ee[L] = re), re;
33050
33051
  }
33051
33052
  function u(C) {
33052
33053
  const I = [], F = [], z = [];
@@ -33117,13 +33118,13 @@ function WS(r, e) {
33117
33118
  for (const K in U) {
33118
33119
  const ee = U[K];
33119
33120
  if (ee.location >= 0) {
33120
- let se = L[K];
33121
- if (se === void 0 && (K === "instanceMatrix" && C.instanceMatrix && (se = C.instanceMatrix), K === "instanceColor" && C.instanceColor && (se = C.instanceColor)), se !== void 0) {
33122
- const W = se.normalized, P = se.itemSize, O = e.get(se);
33121
+ let re = L[K];
33122
+ if (re === void 0 && (K === "instanceMatrix" && C.instanceMatrix && (re = C.instanceMatrix), K === "instanceColor" && C.instanceColor && (re = C.instanceColor)), re !== void 0) {
33123
+ const W = re.normalized, P = re.itemSize, O = e.get(re);
33123
33124
  if (O === void 0) continue;
33124
- const G = O.buffer, ie = O.type, k = O.bytesPerElement, j = ie === r.INT || ie === r.UNSIGNED_INT || se.gpuType === Zc;
33125
- if (se.isInterleavedBufferAttribute) {
33126
- const X = se.data, re = X.stride, xe = se.offset;
33125
+ const G = O.buffer, ne = O.type, k = O.bytesPerElement, j = ne === r.INT || ne === r.UNSIGNED_INT || re.gpuType === Zc;
33126
+ if (re.isInterleavedBufferAttribute) {
33127
+ const X = re.data, ie = X.stride, xe = re.offset;
33127
33128
  if (X.isInstancedInterleavedBuffer) {
33128
33129
  for (let we = 0; we < ee.locationSize; we++)
33129
33130
  m(ee.location + we, X.meshPerAttribute);
@@ -33136,17 +33137,17 @@ function WS(r, e) {
33136
33137
  v(
33137
33138
  ee.location + we,
33138
33139
  P / ee.locationSize,
33139
- ie,
33140
+ ne,
33140
33141
  W,
33141
- re * k,
33142
+ ie * k,
33142
33143
  (xe + P / ee.locationSize * we) * k,
33143
33144
  j
33144
33145
  );
33145
33146
  } else {
33146
- if (se.isInstancedBufferAttribute) {
33147
+ if (re.isInstancedBufferAttribute) {
33147
33148
  for (let X = 0; X < ee.locationSize; X++)
33148
- m(ee.location + X, se.meshPerAttribute);
33149
- C.isInstancedMesh !== !0 && z._maxInstanceCount === void 0 && (z._maxInstanceCount = se.meshPerAttribute * se.count);
33149
+ m(ee.location + X, re.meshPerAttribute);
33150
+ C.isInstancedMesh !== !0 && z._maxInstanceCount === void 0 && (z._maxInstanceCount = re.meshPerAttribute * re.count);
33150
33151
  } else
33151
33152
  for (let X = 0; X < ee.locationSize; X++)
33152
33153
  x(ee.location + X);
@@ -33155,7 +33156,7 @@ function WS(r, e) {
33155
33156
  v(
33156
33157
  ee.location + X,
33157
33158
  P / ee.locationSize,
33158
- ie,
33159
+ ne,
33159
33160
  W,
33160
33161
  P * k,
33161
33162
  P / ee.locationSize * X * k,
@@ -33292,12 +33293,12 @@ function qS(r, e, t, n) {
33292
33293
  return i;
33293
33294
  }
33294
33295
  function a(E) {
33295
- return !(E !== jt && n.convert(E) !== r.getParameter(r.IMPLEMENTATION_COLOR_READ_FORMAT));
33296
+ return !(E !== Qt && n.convert(E) !== r.getParameter(r.IMPLEMENTATION_COLOR_READ_FORMAT));
33296
33297
  }
33297
33298
  function o(E) {
33298
33299
  const b = E === Xn && (e.has("EXT_color_buffer_half_float") || e.has("EXT_color_buffer_float"));
33299
- return !(E !== an && n.convert(E) !== r.getParameter(r.IMPLEMENTATION_COLOR_READ_TYPE) && // Edge and Chrome Mac < 52 (#9513)
33300
- E !== Jt && !b);
33300
+ return !(E !== on && n.convert(E) !== r.getParameter(r.IMPLEMENTATION_COLOR_READ_TYPE) && // Edge and Chrome Mac < 52 (#9513)
33301
+ E !== jt && !b);
33301
33302
  }
33302
33303
  function l(E) {
33303
33304
  if (E === "highp") {
@@ -33482,11 +33483,11 @@ class Zh {
33482
33483
  }
33483
33484
  _allocateTargets() {
33484
33485
  const e = 3 * Math.max(this._cubeSize, 112), t = 4 * this._cubeSize, n = {
33485
- magFilter: yt,
33486
- minFilter: yt,
33486
+ magFilter: vt,
33487
+ minFilter: vt,
33487
33488
  generateMipmaps: !1,
33488
33489
  type: Xn,
33489
- format: jt,
33490
+ format: Qt,
33490
33491
  colorSpace: Gs,
33491
33492
  depthBuffer: !1
33492
33493
  }, i = dd(e, t, n);
@@ -33498,16 +33499,16 @@ class Zh {
33498
33499
  return i;
33499
33500
  }
33500
33501
  _compileMaterial(e) {
33501
- const t = new Mt(new Je(), e);
33502
+ const t = new At(new Je(), e);
33502
33503
  this._renderer.compile(t, ms);
33503
33504
  }
33504
33505
  _sceneToCubeUV(e, t, n, i, s) {
33505
33506
  const l = new zt(90, 1, t, n), c = [1, -1, 1, 1, 1, 1], h = [1, 1, 1, -1, -1, -1], f = this._renderer, u = f.autoClear, d = f.toneMapping;
33506
- f.getClearColor(fd), f.toneMapping = Rn, f.autoClear = !1, f.state.buffers.depth.getReversed() && (f.setRenderTarget(i), f.clearDepth(), f.setRenderTarget(null)), this._backgroundBox === null && (this._backgroundBox = new Mt(
33507
+ f.getClearColor(fd), f.toneMapping = Rn, f.autoClear = !1, f.state.buffers.depth.getReversed() && (f.setRenderTarget(i), f.clearDepth(), f.setRenderTarget(null)), this._backgroundBox === null && (this._backgroundBox = new At(
33507
33508
  new or(),
33508
33509
  new Ci({
33509
33510
  name: "PMREM.Background",
33510
- side: Qt,
33511
+ side: en,
33511
33512
  depthWrite: !1,
33512
33513
  depthTest: !1
33513
33514
  })
@@ -33655,7 +33656,7 @@ function KS(r) {
33655
33656
  y.set(A, m * p * M);
33656
33657
  }
33657
33658
  const S = new Je();
33658
- S.setAttribute("position", new xt(g, _)), S.setAttribute("uv", new xt(v, x)), S.setAttribute("faceIndex", new xt(y, m)), n.push(new Mt(S, null)), i > yi && i--;
33659
+ S.setAttribute("position", new xt(g, _)), S.setAttribute("uv", new xt(v, x)), S.setAttribute("faceIndex", new xt(y, m)), n.push(new At(S, null)), i > yi && i--;
33659
33660
  }
33660
33661
  return { lodMeshes: n, sizeLods: e, sigmas: t };
33661
33662
  }
@@ -34085,12 +34086,12 @@ class Yu extends gn {
34085
34086
  uniforms: Zr(n.uniforms),
34086
34087
  vertexShader: n.vertexShader,
34087
34088
  fragmentShader: n.fragmentShader,
34088
- side: Qt,
34089
+ side: en,
34089
34090
  blending: Hn
34090
34091
  });
34091
34092
  s.uniforms.tEquirect.value = t;
34092
- const a = new Mt(i, s), o = t.minFilter;
34093
- return t.minFilter === Vn && (t.minFilter = yt), new Nx(1, 10, this).update(e, a), t.minFilter = o, a.geometry.dispose(), a.material.dispose(), this;
34093
+ const a = new At(i, s), o = t.minFilter;
34094
+ return t.minFilter === Vn && (t.minFilter = vt), new Nx(1, 10, this).update(e, a), t.minFilter = o, a.geometry.dispose(), a.material.dispose(), this;
34094
34095
  }
34095
34096
  /**
34096
34097
  * Clears this cube render target.
@@ -34345,7 +34346,7 @@ function r2(r, e, t) {
34345
34346
  let S = o.attributes.position.count * y, M = 1;
34346
34347
  S > e.maxTextureSize && (M = Math.ceil(S / e.maxTextureSize), S = e.maxTextureSize);
34347
34348
  const E = new Float32Array(S * M * 4 * f), b = new rl(E, S, M, f);
34348
- b.type = Jt, b.needsUpdate = !0;
34349
+ b.type = jt, b.needsUpdate = !0;
34349
34350
  const w = y * 4;
34350
34351
  for (let C = 0; C < f; C++) {
34351
34352
  const I = m[C], F = g[C], z = v[C], L = S * M * 4 * C;
@@ -34478,7 +34479,7 @@ function o2(r, e, t, n, i) {
34478
34479
  ),
34479
34480
  depthTest: !1,
34480
34481
  depthWrite: !1
34481
- }), c = new Mt(o, l), h = new ca(-1, 1, 1, -1, 0, 1);
34482
+ }), c = new At(o, l), h = new ca(-1, 1, 1, -1, 0, 1);
34482
34483
  let f = null, u = null, d = !1, p, _ = null, x = [], m = !1;
34483
34484
  this.setSize = function(g, v) {
34484
34485
  s.setSize(g, v), a.setSize(g, v);
@@ -34524,7 +34525,7 @@ function o2(r, e, t, n, i) {
34524
34525
  s.depthTexture && s.depthTexture.dispose(), s.dispose(), a.dispose(), o.dispose(), l.dispose();
34525
34526
  };
34526
34527
  }
34527
- const Xx = /* @__PURE__ */ new wt(), Kh = /* @__PURE__ */ new ir(1, 1), qx = /* @__PURE__ */ new rl(), $x = /* @__PURE__ */ new sl(), Yx = /* @__PURE__ */ new na(), md = [], gd = [], _d = new Float32Array(16), vd = new Float32Array(9), yd = new Float32Array(4);
34528
+ const Xx = /* @__PURE__ */ new Et(), Kh = /* @__PURE__ */ new ir(1, 1), qx = /* @__PURE__ */ new rl(), $x = /* @__PURE__ */ new sl(), Yx = /* @__PURE__ */ new na(), md = [], gd = [], _d = new Float32Array(16), vd = new Float32Array(9), yd = new Float32Array(4);
34528
34529
  function ns(r, e, t) {
34529
34530
  const n = r[0];
34530
34531
  if (n <= 0 || n > 0) return r;
@@ -35495,7 +35496,7 @@ function SE(r, e, t, n) {
35495
35496
  if (K = !1, typeof r.debug.onShaderError == "function")
35496
35497
  r.debug.onShaderError(i, _, S, M);
35497
35498
  else {
35498
- const se = Ed(i, S, "vertex"), W = Ed(i, M, "fragment");
35499
+ const re = Ed(i, S, "vertex"), W = Ed(i, M, "fragment");
35499
35500
  ke(
35500
35501
  "THREE.WebGLProgram: Shader Error " + i.getError() + " - VALIDATE_STATUS " + i.getProgramParameter(_, i.VALIDATE_STATUS) + `
35501
35502
 
@@ -35503,7 +35504,7 @@ Material Name: ` + C.name + `
35503
35504
  Material Type: ` + C.type + `
35504
35505
 
35505
35506
  Program Info Log: ` + L + `
35506
- ` + se + `
35507
+ ` + re + `
35507
35508
  ` + W
35508
35509
  );
35509
35510
  }
@@ -35605,26 +35606,26 @@ function TE(r, e, t, n, i, s) {
35605
35606
  return l.add(b), b === 0 ? "uv" : `uv${b}`;
35606
35607
  }
35607
35608
  function _(b, w, A, C, I, F) {
35608
- const z = C.fog, L = I.geometry, U = b.isMeshStandardMaterial || b.isMeshLambertMaterial || b.isMeshPhongMaterial ? C.environment : null, H = b.isMeshStandardMaterial || b.isMeshLambertMaterial && !b.envMap || b.isMeshPhongMaterial && !b.envMap, K = e.get(b.envMap || U, H), ee = K && K.mapping === Jr ? K.image.height : null, se = d[b.type];
35609
+ const z = C.fog, L = I.geometry, U = b.isMeshStandardMaterial || b.isMeshLambertMaterial || b.isMeshPhongMaterial ? C.environment : null, H = b.isMeshStandardMaterial || b.isMeshLambertMaterial && !b.envMap || b.isMeshPhongMaterial && !b.envMap, K = e.get(b.envMap || U, H), ee = K && K.mapping === Jr ? K.image.height : null, re = d[b.type];
35609
35610
  b.precision !== null && (u = n.getMaxPrecision(b.precision), u !== b.precision && Ee("WebGLProgram.getParameters:", b.precision, "not supported, using", u, "instead."));
35610
35611
  const W = L.morphAttributes.position || L.morphAttributes.normal || L.morphAttributes.color, P = W !== void 0 ? W.length : 0;
35611
35612
  let O = 0;
35612
35613
  L.morphAttributes.position !== void 0 && (O = 1), L.morphAttributes.normal !== void 0 && (O = 2), L.morphAttributes.color !== void 0 && (O = 3);
35613
- let G, ie, k, j;
35614
- if (se) {
35615
- const Ze = Cn[se];
35616
- G = Ze.vertexShader, ie = Ze.fragmentShader;
35614
+ let G, ne, k, j;
35615
+ if (re) {
35616
+ const Ze = Cn[re];
35617
+ G = Ze.vertexShader, ne = Ze.fragmentShader;
35617
35618
  } else
35618
- G = b.vertexShader, ie = b.fragmentShader, o.update(b), k = o.getVertexShaderID(b), j = o.getFragmentShaderID(b);
35619
- const X = r.getRenderTarget(), re = r.state.buffers.depth.getReversed(), xe = I.isInstancedMesh === !0, we = I.isBatchedMesh === !0, Ae = !!b.map, me = !!b.matcap, Q = !!K, le = !!b.aoMap, ne = !!b.lightMap, _e = !!b.bumpMap, ve = !!b.normalMap, Xe = !!b.displacementMap, N = !!b.emissiveMap, Oe = !!b.metalnessMap, Ce = !!b.roughnessMap, Ge = b.anisotropy > 0, de = b.clearcoat > 0, st = b.dispersion > 0, D = b.iridescence > 0, T = b.sheen > 0, $ = b.transmission > 0, ae = Ge && !!b.anisotropyMap, ue = de && !!b.clearcoatMap, pe = de && !!b.clearcoatNormalMap, ge = de && !!b.clearcoatRoughnessMap, te = D && !!b.iridescenceMap, ce = D && !!b.iridescenceThicknessMap, Re = T && !!b.sheenColorMap, Le = T && !!b.sheenRoughnessMap, Se = !!b.specularMap, ye = !!b.specularColorMap, Ye = !!b.specularIntensityMap, je = $ && !!b.transmissionMap, ot = $ && !!b.thicknessMap, V = !!b.gradientMap, be = !!b.alphaMap, oe = b.alphaTest > 0, Pe = !!b.alphaHash, Me = !!b.extensions;
35619
+ G = b.vertexShader, ne = b.fragmentShader, o.update(b), k = o.getVertexShaderID(b), j = o.getFragmentShaderID(b);
35620
+ const X = r.getRenderTarget(), ie = r.state.buffers.depth.getReversed(), xe = I.isInstancedMesh === !0, we = I.isBatchedMesh === !0, Ae = !!b.map, me = !!b.matcap, Q = !!K, le = !!b.aoMap, se = !!b.lightMap, _e = !!b.bumpMap, ve = !!b.normalMap, Xe = !!b.displacementMap, N = !!b.emissiveMap, Oe = !!b.metalnessMap, Ce = !!b.roughnessMap, Ge = b.anisotropy > 0, de = b.clearcoat > 0, st = b.dispersion > 0, D = b.iridescence > 0, T = b.sheen > 0, $ = b.transmission > 0, ae = Ge && !!b.anisotropyMap, ue = de && !!b.clearcoatMap, pe = de && !!b.clearcoatNormalMap, ge = de && !!b.clearcoatRoughnessMap, te = D && !!b.iridescenceMap, ce = D && !!b.iridescenceThicknessMap, Re = T && !!b.sheenColorMap, Le = T && !!b.sheenRoughnessMap, Se = !!b.specularMap, ye = !!b.specularColorMap, Ye = !!b.specularIntensityMap, je = $ && !!b.transmissionMap, ot = $ && !!b.thicknessMap, V = !!b.gradientMap, be = !!b.alphaMap, oe = b.alphaTest > 0, Pe = !!b.alphaHash, Me = !!b.extensions;
35620
35621
  let fe = Rn;
35621
35622
  b.toneMapped && (X === null || X.isXRRenderTarget === !0) && (fe = r.toneMapping);
35622
35623
  const ze = {
35623
- shaderID: se,
35624
+ shaderID: re,
35624
35625
  shaderType: b.type,
35625
35626
  shaderName: b.name,
35626
35627
  vertexShader: G,
35627
- fragmentShader: ie,
35628
+ fragmentShader: ne,
35628
35629
  defines: b.defines,
35629
35630
  customVertexShaderID: k,
35630
35631
  customFragmentShaderID: j,
@@ -35644,7 +35645,7 @@ function TE(r, e, t, n, i, s) {
35644
35645
  envMapMode: Q && K.mapping,
35645
35646
  envMapCubeUVHeight: ee,
35646
35647
  aoMap: le,
35647
- lightMap: ne,
35648
+ lightMap: se,
35648
35649
  bumpMap: _e,
35649
35650
  normalMap: ve,
35650
35651
  displacementMap: Xe,
@@ -35682,7 +35683,7 @@ function TE(r, e, t, n, i, s) {
35682
35683
  //
35683
35684
  mapUv: Ae && p(b.map.channel),
35684
35685
  aoMapUv: le && p(b.aoMap.channel),
35685
- lightMapUv: ne && p(b.lightMap.channel),
35686
+ lightMapUv: se && p(b.lightMap.channel),
35686
35687
  bumpMapUv: _e && p(b.bumpMap.channel),
35687
35688
  normalMapUv: ve && p(b.normalMap.channel),
35688
35689
  displacementMapUv: Xe && p(b.displacementMap.channel),
@@ -35715,7 +35716,7 @@ function TE(r, e, t, n, i, s) {
35715
35716
  flatShading: b.wireframe === !1 && (b.flatShading === !0 || L.attributes.normal === void 0 && ve === !1 && (b.isMeshLambertMaterial || b.isMeshPhongMaterial || b.isMeshStandardMaterial || b.isMeshPhysicalMaterial)),
35716
35717
  sizeAttenuation: b.sizeAttenuation === !0,
35717
35718
  logarithmicDepthBuffer: f,
35718
- reversedDepthBuffer: re,
35719
+ reversedDepthBuffer: ie,
35719
35720
  skinning: I.isSkinnedMesh === !0,
35720
35721
  morphTargets: L.morphAttributes.position !== void 0,
35721
35722
  morphNormals: L.morphAttributes.normal !== void 0,
@@ -35744,7 +35745,7 @@ function TE(r, e, t, n, i, s) {
35744
35745
  decodeVideoTextureEmissive: N && b.emissiveMap.isVideoTexture === !0 && rt.getTransfer(b.emissiveMap.colorSpace) === ft,
35745
35746
  premultipliedAlpha: b.premultipliedAlpha,
35746
35747
  doubleSided: b.side === kn,
35747
- flipSided: b.side === Qt,
35748
+ flipSided: b.side === en,
35748
35749
  useDepthPacking: b.depthPacking >= 0,
35749
35750
  depthPacking: b.depthPacking || 0,
35750
35751
  index0AttributeName: b.index0AttributeName,
@@ -36221,7 +36222,7 @@ void main() {
36221
36222
  ], Pd = /* @__PURE__ */ new $e(), gs = /* @__PURE__ */ new B(), Sh = /* @__PURE__ */ new B();
36222
36223
  function GE(r, e, t) {
36223
36224
  let n = new Qr();
36224
- const i = new he(), s = new he(), a = new dt(), o = new Nu(), l = new Uu(), c = {}, h = t.maxTextureSize, f = { [ii]: Qt, [Qt]: ii, [kn]: kn }, u = new Mn({
36225
+ const i = new he(), s = new he(), a = new dt(), o = new Nu(), l = new Uu(), c = {}, h = t.maxTextureSize, f = { [ii]: en, [en]: ii, [kn]: kn }, u = new Mn({
36225
36226
  defines: {
36226
36227
  VSM_SAMPLES: 8
36227
36228
  },
@@ -36242,7 +36243,7 @@ function GE(r, e, t) {
36242
36243
  3
36243
36244
  )
36244
36245
  );
36245
- const _ = new Mt(p, u), x = this;
36246
+ const _ = new At(p, u), x = this;
36246
36247
  this.enabled = !1, this.autoUpdate = !0, this.needsUpdate = !1, this.type = As;
36247
36248
  let m = this.type;
36248
36249
  this.render = function(M, E, b) {
@@ -36274,16 +36275,16 @@ function GE(r, e, t) {
36274
36275
  H.map = new gn(i.x, i.y, {
36275
36276
  format: Si,
36276
36277
  type: Xn,
36277
- minFilter: yt,
36278
- magFilter: yt,
36278
+ minFilter: vt,
36279
+ magFilter: vt,
36279
36280
  generateMipmaps: !1
36280
- }), H.map.texture.name = U.name + ".shadowMap", H.map.depthTexture = new ir(i.x, i.y, Jt), H.map.depthTexture.name = U.name + ".shadowMapDepth", H.map.depthTexture.format = qn, H.map.depthTexture.compareFunction = null, H.map.depthTexture.minFilter = Pt, H.map.depthTexture.magFilter = Pt;
36281
+ }), H.map.texture.name = U.name + ".shadowMap", H.map.depthTexture = new ir(i.x, i.y, jt), H.map.depthTexture.name = U.name + ".shadowMapDepth", H.map.depthTexture.format = qn, H.map.depthTexture.compareFunction = null, H.map.depthTexture.minFilter = Pt, H.map.depthTexture.magFilter = Pt;
36281
36282
  } else
36282
- U.isPointLight ? (H.map = new Yu(i.x), H.map.depthTexture = new Qp(i.x, bn)) : (H.map = new gn(i.x, i.y), H.map.depthTexture = new ir(i.x, i.y, bn)), H.map.depthTexture.name = U.name + ".shadowMap", H.map.depthTexture.format = qn, this.type === As ? (H.map.depthTexture.compareFunction = ee ? il : nl, H.map.depthTexture.minFilter = yt, H.map.depthTexture.magFilter = yt) : (H.map.depthTexture.compareFunction = null, H.map.depthTexture.minFilter = Pt, H.map.depthTexture.magFilter = Pt);
36283
+ U.isPointLight ? (H.map = new Yu(i.x), H.map.depthTexture = new Qp(i.x, bn)) : (H.map = new gn(i.x, i.y), H.map.depthTexture = new ir(i.x, i.y, bn)), H.map.depthTexture.name = U.name + ".shadowMap", H.map.depthTexture.format = qn, this.type === As ? (H.map.depthTexture.compareFunction = ee ? il : nl, H.map.depthTexture.minFilter = vt, H.map.depthTexture.magFilter = vt) : (H.map.depthTexture.compareFunction = null, H.map.depthTexture.minFilter = Pt, H.map.depthTexture.magFilter = Pt);
36283
36284
  H.camera.updateProjectionMatrix();
36284
36285
  }
36285
- const se = H.map.isWebGLCubeRenderTarget ? 6 : 1;
36286
- for (let W = 0; W < se; W++) {
36286
+ const re = H.map.isWebGLCubeRenderTarget ? 6 : 1;
36287
+ for (let W = 0; W < re; W++) {
36287
36288
  if (H.map.isWebGLCubeRenderTarget)
36288
36289
  r.setRenderTarget(H.map, W), r.clear();
36289
36290
  else {
@@ -36342,8 +36343,8 @@ function GE(r, e, t) {
36342
36343
  for (let U = 0, H = L.length; U < H; U++) {
36343
36344
  const K = L[U], ee = z[K.materialIndex];
36344
36345
  if (ee && ee.visible) {
36345
- const se = v(M, ee, w, A);
36346
- M.onBeforeShadow(r, M, E, b, F, se, K), r.renderBufferDirect(b, null, F, se, M, K), M.onAfterShadow(r, M, E, b, F, se, K);
36346
+ const re = v(M, ee, w, A);
36347
+ M.onBeforeShadow(r, M, E, b, F, re, K), r.renderBufferDirect(b, null, F, re, M, K), M.onAfterShadow(r, M, E, b, F, re, K);
36347
36348
  }
36348
36349
  }
36349
36350
  } else if (z.visible) {
@@ -36376,8 +36377,8 @@ function HE(r, e) {
36376
36377
  setLocked: function(Me) {
36377
36378
  V = Me;
36378
36379
  },
36379
- setClear: function(Me, fe, ze, Ze, St) {
36380
- St === !0 && (Me *= Ze, fe *= Ze, ze *= Ze), be.set(Me, fe, ze, Ze), Pe.equals(be) === !1 && (r.clearColor(Me, fe, ze, Ze), Pe.copy(be));
36380
+ setClear: function(Me, fe, ze, Ze, bt) {
36381
+ bt === !0 && (Me *= Ze, fe *= Ze, ze *= Ze), be.set(Me, fe, ze, Ze), Pe.equals(be) === !1 && (r.clearColor(Me, fe, ze, Ze), Pe.copy(be));
36381
36382
  },
36382
36383
  reset: function() {
36383
36384
  V = !1, oe = null, Pe.set(-1, 0, 0, 0);
@@ -36399,7 +36400,7 @@ function HE(r, e) {
36399
36400
  return be;
36400
36401
  },
36401
36402
  setTest: function(fe) {
36402
- fe ? X(r.DEPTH_TEST) : re(r.DEPTH_TEST);
36403
+ fe ? X(r.DEPTH_TEST) : ie(r.DEPTH_TEST);
36403
36404
  },
36404
36405
  setMask: function(fe) {
36405
36406
  oe !== fe && !V && (r.depthMask(fe), oe = fe);
@@ -36449,28 +36450,28 @@ function HE(r, e) {
36449
36450
  };
36450
36451
  }
36451
36452
  function i() {
36452
- let V = !1, be = null, oe = null, Pe = null, Me = null, fe = null, ze = null, Ze = null, St = null;
36453
+ let V = !1, be = null, oe = null, Pe = null, Me = null, fe = null, ze = null, Ze = null, bt = null;
36453
36454
  return {
36454
36455
  setTest: function(ut) {
36455
- V || (ut ? X(r.STENCIL_TEST) : re(r.STENCIL_TEST));
36456
+ V || (ut ? X(r.STENCIL_TEST) : ie(r.STENCIL_TEST));
36456
36457
  },
36457
36458
  setMask: function(ut) {
36458
36459
  be !== ut && !V && (r.stencilMask(ut), be = ut);
36459
36460
  },
36460
- setFunc: function(ut, Et, Lt) {
36461
- (oe !== ut || Pe !== Et || Me !== Lt) && (r.stencilFunc(ut, Et, Lt), oe = ut, Pe = Et, Me = Lt);
36461
+ setFunc: function(ut, Mt, Lt) {
36462
+ (oe !== ut || Pe !== Mt || Me !== Lt) && (r.stencilFunc(ut, Mt, Lt), oe = ut, Pe = Mt, Me = Lt);
36462
36463
  },
36463
- setOp: function(ut, Et, Lt) {
36464
- (fe !== ut || ze !== Et || Ze !== Lt) && (r.stencilOp(ut, Et, Lt), fe = ut, ze = Et, Ze = Lt);
36464
+ setOp: function(ut, Mt, Lt) {
36465
+ (fe !== ut || ze !== Mt || Ze !== Lt) && (r.stencilOp(ut, Mt, Lt), fe = ut, ze = Mt, Ze = Lt);
36465
36466
  },
36466
36467
  setLocked: function(ut) {
36467
36468
  V = ut;
36468
36469
  },
36469
36470
  setClear: function(ut) {
36470
- St !== ut && (r.clearStencil(ut), St = ut);
36471
+ bt !== ut && (r.clearStencil(ut), bt = ut);
36471
36472
  },
36472
36473
  reset: function() {
36473
- V = !1, be = null, oe = null, Pe = null, Me = null, fe = null, ze = null, Ze = null, St = null;
36474
+ V = !1, be = null, oe = null, Pe = null, Me = null, fe = null, ze = null, Ze = null, bt = null;
36474
36475
  }
36475
36476
  };
36476
36477
  }
@@ -36480,8 +36481,8 @@ function HE(r, e) {
36480
36481
  let H = !1, K = 0;
36481
36482
  const ee = r.getParameter(r.VERSION);
36482
36483
  ee.indexOf("WebGL") !== -1 ? (K = parseFloat(/^WebGL (\d)/.exec(ee)[1]), H = K >= 1) : ee.indexOf("OpenGL ES") !== -1 && (K = parseFloat(/^OpenGL ES (\d)/.exec(ee)[1]), H = K >= 2);
36483
- let se = null, W = {};
36484
- const P = r.getParameter(r.SCISSOR_BOX), O = r.getParameter(r.VIEWPORT), G = new dt().fromArray(P), ie = new dt().fromArray(O);
36484
+ let re = null, W = {};
36485
+ const P = r.getParameter(r.SCISSOR_BOX), O = r.getParameter(r.VIEWPORT), G = new dt().fromArray(P), ne = new dt().fromArray(O);
36485
36486
  function k(V, be, oe, Pe) {
36486
36487
  const Me = new Uint8Array(4), fe = r.createTexture();
36487
36488
  r.bindTexture(V, fe), r.texParameteri(V, r.TEXTURE_MIN_FILTER, r.NEAREST), r.texParameteri(V, r.TEXTURE_MAG_FILTER, r.NEAREST);
@@ -36494,7 +36495,7 @@ function HE(r, e) {
36494
36495
  function X(V) {
36495
36496
  h[V] !== !0 && (r.enable(V), h[V] = !0);
36496
36497
  }
36497
- function re(V) {
36498
+ function ie(V) {
36498
36499
  h[V] !== !1 && (r.disable(V), h[V] = !1);
36499
36500
  }
36500
36501
  function xe(V, be) {
@@ -36540,9 +36541,9 @@ function HE(r, e) {
36540
36541
  [Sp]: r.CONSTANT_ALPHA,
36541
36542
  [Ep]: r.ONE_MINUS_CONSTANT_ALPHA
36542
36543
  };
36543
- function le(V, be, oe, Pe, Me, fe, ze, Ze, St, ut) {
36544
+ function le(V, be, oe, Pe, Me, fe, ze, Ze, bt, ut) {
36544
36545
  if (V === Hn) {
36545
- x === !0 && (re(r.BLEND), x = !1);
36546
+ x === !0 && (ie(r.BLEND), x = !1);
36546
36547
  return;
36547
36548
  }
36548
36549
  if (x === !1 && (X(r.BLEND), x = !0), V !== op) {
@@ -36587,40 +36588,40 @@ function HE(r, e) {
36587
36588
  }
36588
36589
  return;
36589
36590
  }
36590
- Me = Me || be, fe = fe || oe, ze = ze || Pe, (be !== g || Me !== S) && (r.blendEquationSeparate(me[be], me[Me]), g = be, S = Me), (oe !== v || Pe !== y || fe !== M || ze !== E) && (r.blendFuncSeparate(Q[oe], Q[Pe], Q[fe], Q[ze]), v = oe, y = Pe, M = fe, E = ze), (Ze.equals(b) === !1 || St !== w) && (r.blendColor(Ze.r, Ze.g, Ze.b, St), b.copy(Ze), w = St), m = V, A = !1;
36591
+ Me = Me || be, fe = fe || oe, ze = ze || Pe, (be !== g || Me !== S) && (r.blendEquationSeparate(me[be], me[Me]), g = be, S = Me), (oe !== v || Pe !== y || fe !== M || ze !== E) && (r.blendFuncSeparate(Q[oe], Q[Pe], Q[fe], Q[ze]), v = oe, y = Pe, M = fe, E = ze), (Ze.equals(b) === !1 || bt !== w) && (r.blendColor(Ze.r, Ze.g, Ze.b, bt), b.copy(Ze), w = bt), m = V, A = !1;
36591
36592
  }
36592
- function ne(V, be) {
36593
- V.side === kn ? re(r.CULL_FACE) : X(r.CULL_FACE);
36594
- let oe = V.side === Qt;
36593
+ function se(V, be) {
36594
+ V.side === kn ? ie(r.CULL_FACE) : X(r.CULL_FACE);
36595
+ let oe = V.side === en;
36595
36596
  be && (oe = !oe), _e(oe), V.blending === Ji && V.transparent === !1 ? le(Hn) : le(V.blending, V.blendEquation, V.blendSrc, V.blendDst, V.blendEquationAlpha, V.blendSrcAlpha, V.blendDstAlpha, V.blendColor, V.blendAlpha, V.premultipliedAlpha), a.setFunc(V.depthFunc), a.setTest(V.depthTest), a.setMask(V.depthWrite), s.setMask(V.colorWrite);
36596
36597
  const Pe = V.stencilWrite;
36597
- o.setTest(Pe), Pe && (o.setMask(V.stencilWriteMask), o.setFunc(V.stencilFunc, V.stencilRef, V.stencilFuncMask), o.setOp(V.stencilFail, V.stencilZFail, V.stencilZPass)), N(V.polygonOffset, V.polygonOffsetFactor, V.polygonOffsetUnits), V.alphaToCoverage === !0 ? X(r.SAMPLE_ALPHA_TO_COVERAGE) : re(r.SAMPLE_ALPHA_TO_COVERAGE);
36598
+ o.setTest(Pe), Pe && (o.setMask(V.stencilWriteMask), o.setFunc(V.stencilFunc, V.stencilRef, V.stencilFuncMask), o.setOp(V.stencilFail, V.stencilZFail, V.stencilZPass)), N(V.polygonOffset, V.polygonOffsetFactor, V.polygonOffsetUnits), V.alphaToCoverage === !0 ? X(r.SAMPLE_ALPHA_TO_COVERAGE) : ie(r.SAMPLE_ALPHA_TO_COVERAGE);
36598
36599
  }
36599
36600
  function _e(V) {
36600
36601
  C !== V && (V ? r.frontFace(r.CW) : r.frontFace(r.CCW), C = V);
36601
36602
  }
36602
36603
  function ve(V) {
36603
- V !== rp ? (X(r.CULL_FACE), V !== I && (V === Bh ? r.cullFace(r.BACK) : V === sp ? r.cullFace(r.FRONT) : r.cullFace(r.FRONT_AND_BACK))) : re(r.CULL_FACE), I = V;
36604
+ V !== rp ? (X(r.CULL_FACE), V !== I && (V === Bh ? r.cullFace(r.BACK) : V === sp ? r.cullFace(r.FRONT) : r.cullFace(r.FRONT_AND_BACK))) : ie(r.CULL_FACE), I = V;
36604
36605
  }
36605
36606
  function Xe(V) {
36606
36607
  V !== F && (H && r.lineWidth(V), F = V);
36607
36608
  }
36608
36609
  function N(V, be, oe) {
36609
- V ? (X(r.POLYGON_OFFSET_FILL), (z !== be || L !== oe) && (z = be, L = oe, a.getReversed() && (be = -be), r.polygonOffset(be, oe))) : re(r.POLYGON_OFFSET_FILL);
36610
+ V ? (X(r.POLYGON_OFFSET_FILL), (z !== be || L !== oe) && (z = be, L = oe, a.getReversed() && (be = -be), r.polygonOffset(be, oe))) : ie(r.POLYGON_OFFSET_FILL);
36610
36611
  }
36611
36612
  function Oe(V) {
36612
- V ? X(r.SCISSOR_TEST) : re(r.SCISSOR_TEST);
36613
+ V ? X(r.SCISSOR_TEST) : ie(r.SCISSOR_TEST);
36613
36614
  }
36614
36615
  function Ce(V) {
36615
- V === void 0 && (V = r.TEXTURE0 + U - 1), se !== V && (r.activeTexture(V), se = V);
36616
+ V === void 0 && (V = r.TEXTURE0 + U - 1), re !== V && (r.activeTexture(V), re = V);
36616
36617
  }
36617
36618
  function Ge(V, be, oe) {
36618
- oe === void 0 && (se === null ? oe = r.TEXTURE0 + U - 1 : oe = se);
36619
+ oe === void 0 && (re === null ? oe = r.TEXTURE0 + U - 1 : oe = re);
36619
36620
  let Pe = W[oe];
36620
- Pe === void 0 && (Pe = { type: void 0, texture: void 0 }, W[oe] = Pe), (Pe.type !== V || Pe.texture !== be) && (se !== oe && (r.activeTexture(oe), se = oe), r.bindTexture(V, be || j[V]), Pe.type = V, Pe.texture = be);
36621
+ Pe === void 0 && (Pe = { type: void 0, texture: void 0 }, W[oe] = Pe), (Pe.type !== V || Pe.texture !== be) && (re !== oe && (r.activeTexture(oe), re = oe), r.bindTexture(V, be || j[V]), Pe.type = V, Pe.texture = be);
36621
36622
  }
36622
36623
  function de() {
36623
- const V = W[se];
36624
+ const V = W[re];
36624
36625
  V !== void 0 && V.type !== void 0 && (r.bindTexture(V.type, null), V.type = void 0, V.texture = void 0);
36625
36626
  }
36626
36627
  function st() {
@@ -36703,7 +36704,7 @@ function HE(r, e) {
36703
36704
  G.equals(V) === !1 && (r.scissor(V.x, V.y, V.z, V.w), G.copy(V));
36704
36705
  }
36705
36706
  function ye(V) {
36706
- ie.equals(V) === !1 && (r.viewport(V.x, V.y, V.z, V.w), ie.copy(V));
36707
+ ne.equals(V) === !1 && (r.viewport(V.x, V.y, V.z, V.w), ne.copy(V));
36707
36708
  }
36708
36709
  function Ye(V, be) {
36709
36710
  let oe = c.get(be);
@@ -36716,7 +36717,7 @@ function HE(r, e) {
36716
36717
  l.get(be) !== Pe && (r.uniformBlockBinding(be, Pe, V.__bindingPointIndex), l.set(be, Pe));
36717
36718
  }
36718
36719
  function ot() {
36719
- r.disable(r.BLEND), r.disable(r.CULL_FACE), r.disable(r.DEPTH_TEST), r.disable(r.POLYGON_OFFSET_FILL), r.disable(r.SCISSOR_TEST), r.disable(r.STENCIL_TEST), r.disable(r.SAMPLE_ALPHA_TO_COVERAGE), r.blendEquation(r.FUNC_ADD), r.blendFunc(r.ONE, r.ZERO), r.blendFuncSeparate(r.ONE, r.ZERO, r.ONE, r.ZERO), r.blendColor(0, 0, 0, 0), r.colorMask(!0, !0, !0, !0), r.clearColor(0, 0, 0, 0), r.depthMask(!0), r.depthFunc(r.LESS), a.setReversed(!1), r.clearDepth(1), r.stencilMask(4294967295), r.stencilFunc(r.ALWAYS, 0, 4294967295), r.stencilOp(r.KEEP, r.KEEP, r.KEEP), r.clearStencil(0), r.cullFace(r.BACK), r.frontFace(r.CCW), r.polygonOffset(0, 0), r.activeTexture(r.TEXTURE0), r.bindFramebuffer(r.FRAMEBUFFER, null), r.bindFramebuffer(r.DRAW_FRAMEBUFFER, null), r.bindFramebuffer(r.READ_FRAMEBUFFER, null), r.useProgram(null), r.lineWidth(1), r.scissor(0, 0, r.canvas.width, r.canvas.height), r.viewport(0, 0, r.canvas.width, r.canvas.height), r.pixelStorei(r.PACK_ALIGNMENT, 4), r.pixelStorei(r.UNPACK_ALIGNMENT, 4), r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL, !1), r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL, !1), r.pixelStorei(r.UNPACK_COLORSPACE_CONVERSION_WEBGL, r.BROWSER_DEFAULT_WEBGL), r.pixelStorei(r.PACK_ROW_LENGTH, 0), r.pixelStorei(r.PACK_SKIP_PIXELS, 0), r.pixelStorei(r.PACK_SKIP_ROWS, 0), r.pixelStorei(r.UNPACK_ROW_LENGTH, 0), r.pixelStorei(r.UNPACK_IMAGE_HEIGHT, 0), r.pixelStorei(r.UNPACK_SKIP_PIXELS, 0), r.pixelStorei(r.UNPACK_SKIP_ROWS, 0), r.pixelStorei(r.UNPACK_SKIP_IMAGES, 0), h = {}, f = {}, se = null, W = {}, u = {}, d = /* @__PURE__ */ new WeakMap(), p = [], _ = null, x = !1, m = null, g = null, v = null, y = null, S = null, M = null, E = null, b = new Be(0, 0, 0), w = 0, A = !1, C = null, I = null, F = null, z = null, L = null, G.set(0, 0, r.canvas.width, r.canvas.height), ie.set(0, 0, r.canvas.width, r.canvas.height), s.reset(), a.reset(), o.reset();
36720
+ r.disable(r.BLEND), r.disable(r.CULL_FACE), r.disable(r.DEPTH_TEST), r.disable(r.POLYGON_OFFSET_FILL), r.disable(r.SCISSOR_TEST), r.disable(r.STENCIL_TEST), r.disable(r.SAMPLE_ALPHA_TO_COVERAGE), r.blendEquation(r.FUNC_ADD), r.blendFunc(r.ONE, r.ZERO), r.blendFuncSeparate(r.ONE, r.ZERO, r.ONE, r.ZERO), r.blendColor(0, 0, 0, 0), r.colorMask(!0, !0, !0, !0), r.clearColor(0, 0, 0, 0), r.depthMask(!0), r.depthFunc(r.LESS), a.setReversed(!1), r.clearDepth(1), r.stencilMask(4294967295), r.stencilFunc(r.ALWAYS, 0, 4294967295), r.stencilOp(r.KEEP, r.KEEP, r.KEEP), r.clearStencil(0), r.cullFace(r.BACK), r.frontFace(r.CCW), r.polygonOffset(0, 0), r.activeTexture(r.TEXTURE0), r.bindFramebuffer(r.FRAMEBUFFER, null), r.bindFramebuffer(r.DRAW_FRAMEBUFFER, null), r.bindFramebuffer(r.READ_FRAMEBUFFER, null), r.useProgram(null), r.lineWidth(1), r.scissor(0, 0, r.canvas.width, r.canvas.height), r.viewport(0, 0, r.canvas.width, r.canvas.height), r.pixelStorei(r.PACK_ALIGNMENT, 4), r.pixelStorei(r.UNPACK_ALIGNMENT, 4), r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL, !1), r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL, !1), r.pixelStorei(r.UNPACK_COLORSPACE_CONVERSION_WEBGL, r.BROWSER_DEFAULT_WEBGL), r.pixelStorei(r.PACK_ROW_LENGTH, 0), r.pixelStorei(r.PACK_SKIP_PIXELS, 0), r.pixelStorei(r.PACK_SKIP_ROWS, 0), r.pixelStorei(r.UNPACK_ROW_LENGTH, 0), r.pixelStorei(r.UNPACK_IMAGE_HEIGHT, 0), r.pixelStorei(r.UNPACK_SKIP_PIXELS, 0), r.pixelStorei(r.UNPACK_SKIP_ROWS, 0), r.pixelStorei(r.UNPACK_SKIP_IMAGES, 0), h = {}, f = {}, re = null, W = {}, u = {}, d = /* @__PURE__ */ new WeakMap(), p = [], _ = null, x = !1, m = null, g = null, v = null, y = null, S = null, M = null, E = null, b = new Be(0, 0, 0), w = 0, A = !1, C = null, I = null, F = null, z = null, L = null, G.set(0, 0, r.canvas.width, r.canvas.height), ne.set(0, 0, r.canvas.width, r.canvas.height), s.reset(), a.reset(), o.reset();
36720
36721
  }
36721
36722
  return {
36722
36723
  buffers: {
@@ -36725,12 +36726,12 @@ function HE(r, e) {
36725
36726
  stencil: o
36726
36727
  },
36727
36728
  enable: X,
36728
- disable: re,
36729
+ disable: ie,
36729
36730
  bindFramebuffer: xe,
36730
36731
  drawBuffers: we,
36731
36732
  useProgram: Ae,
36732
36733
  setBlending: le,
36733
- setMaterial: ne,
36734
+ setMaterial: se,
36734
36735
  setFlipSided: _e,
36735
36736
  setCullFace: ve,
36736
36737
  setLineWidth: Xe,
@@ -36808,10 +36809,10 @@ function WE(r, e, t, n, i, s, a) {
36808
36809
  }
36809
36810
  function S(D, T) {
36810
36811
  let $;
36811
- return D ? T === null || T === bn || T === Xr ? $ = r.DEPTH24_STENCIL8 : T === Jt ? $ = r.DEPTH32F_STENCIL8 : T === Wr && ($ = r.DEPTH24_STENCIL8, Ee("DepthTexture: 16 bit depth attachment is not supported with stencil. Using 24-bit attachment.")) : T === null || T === bn || T === Xr ? $ = r.DEPTH_COMPONENT24 : T === Jt ? $ = r.DEPTH_COMPONENT32F : T === Wr && ($ = r.DEPTH_COMPONENT16), $;
36812
+ return D ? T === null || T === bn || T === Xr ? $ = r.DEPTH24_STENCIL8 : T === jt ? $ = r.DEPTH32F_STENCIL8 : T === Wr && ($ = r.DEPTH24_STENCIL8, Ee("DepthTexture: 16 bit depth attachment is not supported with stencil. Using 24-bit attachment.")) : T === null || T === bn || T === Xr ? $ = r.DEPTH_COMPONENT24 : T === jt ? $ = r.DEPTH_COMPONENT32F : T === Wr && ($ = r.DEPTH_COMPONENT16), $;
36812
36813
  }
36813
36814
  function M(D, T) {
36814
- return m(D) === !0 || D.isFramebufferTexture && D.minFilter !== Pt && D.minFilter !== yt ? Math.log2(Math.max(T.width, T.height)) + 1 : D.mipmaps !== void 0 && D.mipmaps.length > 0 ? D.mipmaps.length : D.isCompressedTexture && Array.isArray(D.image) ? T.mipmaps.length : 1;
36815
+ return m(D) === !0 || D.isFramebufferTexture && D.minFilter !== Pt && D.minFilter !== vt ? Math.log2(Math.max(T.width, T.height)) + 1 : D.mipmaps !== void 0 && D.mipmaps.length > 0 ? D.mipmaps.length : D.isCompressedTexture && Array.isArray(D.image) ? T.mipmaps.length : 1;
36815
36816
  }
36816
36817
  function E(D) {
36817
36818
  const T = D.target;
@@ -36891,7 +36892,7 @@ function WE(r, e, t, n, i, s, a) {
36891
36892
  else if (ae.complete === !1)
36892
36893
  Ee("WebGLRenderer: Texture marked for update but image is incomplete");
36893
36894
  else {
36894
- re($, D, T);
36895
+ ie($, D, T);
36895
36896
  return;
36896
36897
  }
36897
36898
  } else D.isExternalTexture && ($.__webglTexture = D.sourceTexture ? D.sourceTexture : null);
@@ -36900,15 +36901,15 @@ function WE(r, e, t, n, i, s, a) {
36900
36901
  function ee(D, T) {
36901
36902
  const $ = n.get(D);
36902
36903
  if (D.isRenderTargetTexture === !1 && D.version > 0 && $.__version !== D.version) {
36903
- re($, D, T);
36904
+ ie($, D, T);
36904
36905
  return;
36905
36906
  } else D.isExternalTexture && ($.__webglTexture = D.sourceTexture ? D.sourceTexture : null);
36906
36907
  t.bindTexture(r.TEXTURE_2D_ARRAY, $.__webglTexture, r.TEXTURE0 + T);
36907
36908
  }
36908
- function se(D, T) {
36909
+ function re(D, T) {
36909
36910
  const $ = n.get(D);
36910
36911
  if (D.isRenderTargetTexture === !1 && D.version > 0 && $.__version !== D.version) {
36911
- re($, D, T);
36912
+ ie($, D, T);
36912
36913
  return;
36913
36914
  }
36914
36915
  t.bindTexture(r.TEXTURE_3D, $.__webglTexture, r.TEXTURE0 + T);
@@ -36923,13 +36924,13 @@ function WE(r, e, t, n, i, s, a) {
36923
36924
  }
36924
36925
  const P = {
36925
36926
  [Ns]: r.REPEAT,
36926
- [cn]: r.CLAMP_TO_EDGE,
36927
+ [ln]: r.CLAMP_TO_EDGE,
36927
36928
  [Us]: r.MIRRORED_REPEAT
36928
36929
  }, O = {
36929
36930
  [Pt]: r.NEAREST,
36930
36931
  [uu]: r.NEAREST_MIPMAP_NEAREST,
36931
36932
  [kr]: r.NEAREST_MIPMAP_LINEAR,
36932
- [yt]: r.LINEAR,
36933
+ [vt]: r.LINEAR,
36933
36934
  [Ts]: r.LINEAR_MIPMAP_NEAREST,
36934
36935
  [Vn]: r.LINEAR_MIPMAP_LINEAR
36935
36936
  }, G = {
@@ -36942,9 +36943,9 @@ function WE(r, e, t, n, i, s, a) {
36942
36943
  [Np]: r.GREATER,
36943
36944
  [Up]: r.NOTEQUAL
36944
36945
  };
36945
- function ie(D, T) {
36946
- if (T.type === Jt && e.has("OES_texture_float_linear") === !1 && (T.magFilter === yt || T.magFilter === Ts || T.magFilter === kr || T.magFilter === Vn || T.minFilter === yt || T.minFilter === Ts || T.minFilter === kr || T.minFilter === Vn) && Ee("WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device."), r.texParameteri(D, r.TEXTURE_WRAP_S, P[T.wrapS]), r.texParameteri(D, r.TEXTURE_WRAP_T, P[T.wrapT]), (D === r.TEXTURE_3D || D === r.TEXTURE_2D_ARRAY) && r.texParameteri(D, r.TEXTURE_WRAP_R, P[T.wrapR]), r.texParameteri(D, r.TEXTURE_MAG_FILTER, O[T.magFilter]), r.texParameteri(D, r.TEXTURE_MIN_FILTER, O[T.minFilter]), T.compareFunction && (r.texParameteri(D, r.TEXTURE_COMPARE_MODE, r.COMPARE_REF_TO_TEXTURE), r.texParameteri(D, r.TEXTURE_COMPARE_FUNC, G[T.compareFunction])), e.has("EXT_texture_filter_anisotropic") === !0) {
36947
- if (T.magFilter === Pt || T.minFilter !== kr && T.minFilter !== Vn || T.type === Jt && e.has("OES_texture_float_linear") === !1) return;
36946
+ function ne(D, T) {
36947
+ if (T.type === jt && e.has("OES_texture_float_linear") === !1 && (T.magFilter === vt || T.magFilter === Ts || T.magFilter === kr || T.magFilter === Vn || T.minFilter === vt || T.minFilter === Ts || T.minFilter === kr || T.minFilter === Vn) && Ee("WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device."), r.texParameteri(D, r.TEXTURE_WRAP_S, P[T.wrapS]), r.texParameteri(D, r.TEXTURE_WRAP_T, P[T.wrapT]), (D === r.TEXTURE_3D || D === r.TEXTURE_2D_ARRAY) && r.texParameteri(D, r.TEXTURE_WRAP_R, P[T.wrapR]), r.texParameteri(D, r.TEXTURE_MAG_FILTER, O[T.magFilter]), r.texParameteri(D, r.TEXTURE_MIN_FILTER, O[T.minFilter]), T.compareFunction && (r.texParameteri(D, r.TEXTURE_COMPARE_MODE, r.COMPARE_REF_TO_TEXTURE), r.texParameteri(D, r.TEXTURE_COMPARE_FUNC, G[T.compareFunction])), e.has("EXT_texture_filter_anisotropic") === !0) {
36948
+ if (T.magFilter === Pt || T.minFilter !== kr && T.minFilter !== Vn || T.type === jt && e.has("OES_texture_float_linear") === !1) return;
36948
36949
  if (T.anisotropy > 1 || n.get(T).__currentAnisotropy) {
36949
36950
  const $ = e.get("EXT_texture_filter_anisotropic");
36950
36951
  r.texParameterf(D, $.TEXTURE_MAX_ANISOTROPY_EXT, Math.min(T.anisotropy, i.getMaxAnisotropy())), n.get(T).__currentAnisotropy = T.anisotropy;
@@ -36995,7 +36996,7 @@ function WE(r, e, t, n, i, s, a) {
36995
36996
  D.clearUpdateRanges(), t.pixelStorei(r.UNPACK_ROW_LENGTH, te), t.pixelStorei(r.UNPACK_SKIP_PIXELS, ce), t.pixelStorei(r.UNPACK_SKIP_ROWS, Re);
36996
36997
  }
36997
36998
  }
36998
- function re(D, T, $) {
36999
+ function ie(D, T, $) {
36999
37000
  let ae = r.TEXTURE_2D;
37000
37001
  (T.isDataArrayTexture || T.isCompressedArrayTexture) && (ae = r.TEXTURE_2D_ARRAY), T.isData3DTexture && (ae = r.TEXTURE_3D);
37001
37002
  const ue = k(D, T), pe = T.source;
@@ -37011,7 +37012,7 @@ function WE(r, e, t, n, i, s, a) {
37011
37012
  ce = de(T, ce);
37012
37013
  const Re = s.convert(T.format, T.colorSpace), Le = s.convert(T.type);
37013
37014
  let Se = y(T.internalFormat, Re, Le, T.normalized, T.colorSpace, T.isVideoTexture);
37014
- ie(ae, T);
37015
+ ne(ae, T);
37015
37016
  let ye;
37016
37017
  const Ye = T.mipmaps, je = T.isVideoTexture !== !0, ot = ge.__version === void 0 || ue === !0, V = pe.dataReady, be = M(T, ce);
37017
37018
  if (T.isDepthTexture)
@@ -37028,7 +37029,7 @@ function WE(r, e, t, n, i, s, a) {
37028
37029
  if (T.isCompressedArrayTexture) {
37029
37030
  je && ot && t.texStorage3D(r.TEXTURE_2D_ARRAY, be, Se, Ye[0].width, Ye[0].height, ce.depth);
37030
37031
  for (let oe = 0, Pe = Ye.length; oe < Pe; oe++)
37031
- if (ye = Ye[oe], T.format !== jt)
37032
+ if (ye = Ye[oe], T.format !== Qt)
37032
37033
  if (Re !== null)
37033
37034
  if (je) {
37034
37035
  if (V)
@@ -37053,7 +37054,7 @@ function WE(r, e, t, n, i, s, a) {
37053
37054
  } else {
37054
37055
  je && ot && t.texStorage2D(r.TEXTURE_2D, be, Se, Ye[0].width, Ye[0].height);
37055
37056
  for (let oe = 0, Pe = Ye.length; oe < Pe; oe++)
37056
- ye = Ye[oe], T.format !== jt ? Re !== null ? je ? V && t.compressedTexSubImage2D(r.TEXTURE_2D, oe, 0, 0, ye.width, ye.height, Re, ye.data) : t.compressedTexImage2D(r.TEXTURE_2D, oe, Se, ye.width, ye.height, 0, ye.data) : Ee("WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()") : je ? V && t.texSubImage2D(r.TEXTURE_2D, oe, 0, 0, ye.width, ye.height, Re, Le, ye.data) : t.texImage2D(r.TEXTURE_2D, oe, Se, ye.width, ye.height, 0, Re, Le, ye.data);
37057
+ ye = Ye[oe], T.format !== Qt ? Re !== null ? je ? V && t.compressedTexSubImage2D(r.TEXTURE_2D, oe, 0, 0, ye.width, ye.height, Re, ye.data) : t.compressedTexImage2D(r.TEXTURE_2D, oe, Se, ye.width, ye.height, 0, ye.data) : Ee("WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()") : je ? V && t.texSubImage2D(r.TEXTURE_2D, oe, 0, 0, ye.width, ye.height, Re, Le, ye.data) : t.texImage2D(r.TEXTURE_2D, oe, Se, ye.width, ye.height, 0, Re, Le, ye.data);
37057
37058
  }
37058
37059
  else if (T.isDataArrayTexture)
37059
37060
  if (je) {
@@ -37088,9 +37089,9 @@ function WE(r, e, t, n, i, s, a) {
37088
37089
  const oe = r.canvas;
37089
37090
  if (oe.hasAttribute("layoutsubtree") || oe.setAttribute("layoutsubtree", "true"), ce.parentNode !== oe) {
37090
37091
  oe.appendChild(ce), f.add(T), oe.onpaint = (Ze) => {
37091
- const St = Ze.changedElements;
37092
+ const bt = Ze.changedElements;
37092
37093
  for (const ut of f)
37093
- St.includes(ut.image) && (ut.needsUpdate = !0);
37094
+ bt.includes(ut.image) && (ut.needsUpdate = !0);
37094
37095
  }, oe.requestPaint();
37095
37096
  return;
37096
37097
  }
@@ -37131,7 +37132,7 @@ function WE(r, e, t, n, i, s, a) {
37131
37132
  !Re && !Le ? Se[fe] = x(T.image[fe], !0, i.maxCubemapSize) : Se[fe] = Le ? T.image[fe].image : T.image[fe], Se[fe] = de(T, Se[fe]);
37132
37133
  const ye = Se[0], Ye = s.convert(T.format, T.colorSpace), je = s.convert(T.type), ot = y(T.internalFormat, Ye, je, T.normalized, T.colorSpace), V = T.isVideoTexture !== !0, be = pe.__version === void 0 || ae === !0, oe = ue.dataReady;
37133
37134
  let Pe = M(T, ye);
37134
- ie(r.TEXTURE_CUBE_MAP, T);
37135
+ ne(r.TEXTURE_CUBE_MAP, T);
37135
37136
  let Me;
37136
37137
  if (Re) {
37137
37138
  V && be && t.texStorage2D(r.TEXTURE_CUBE_MAP, Pe, ot, ye.width, ye.height);
@@ -37139,7 +37140,7 @@ function WE(r, e, t, n, i, s, a) {
37139
37140
  Me = Se[fe].mipmaps;
37140
37141
  for (let ze = 0; ze < Me.length; ze++) {
37141
37142
  const Ze = Me[ze];
37142
- T.format !== jt ? Ye !== null ? V ? oe && t.compressedTexSubImage2D(r.TEXTURE_CUBE_MAP_POSITIVE_X + fe, ze, 0, 0, Ze.width, Ze.height, Ye, Ze.data) : t.compressedTexImage2D(r.TEXTURE_CUBE_MAP_POSITIVE_X + fe, ze, ot, Ze.width, Ze.height, 0, Ze.data) : Ee("WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()") : V ? oe && t.texSubImage2D(r.TEXTURE_CUBE_MAP_POSITIVE_X + fe, ze, 0, 0, Ze.width, Ze.height, Ye, je, Ze.data) : t.texImage2D(r.TEXTURE_CUBE_MAP_POSITIVE_X + fe, ze, ot, Ze.width, Ze.height, 0, Ye, je, Ze.data);
37143
+ T.format !== Qt ? Ye !== null ? V ? oe && t.compressedTexSubImage2D(r.TEXTURE_CUBE_MAP_POSITIVE_X + fe, ze, 0, 0, Ze.width, Ze.height, Ye, Ze.data) : t.compressedTexImage2D(r.TEXTURE_CUBE_MAP_POSITIVE_X + fe, ze, ot, Ze.width, Ze.height, 0, Ze.data) : Ee("WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()") : V ? oe && t.texSubImage2D(r.TEXTURE_CUBE_MAP_POSITIVE_X + fe, ze, 0, 0, Ze.width, Ze.height, Ye, je, Ze.data) : t.texImage2D(r.TEXTURE_CUBE_MAP_POSITIVE_X + fe, ze, ot, Ze.width, Ze.height, 0, Ye, je, Ze.data);
37143
37144
  }
37144
37145
  }
37145
37146
  } else {
@@ -37152,8 +37153,8 @@ function WE(r, e, t, n, i, s, a) {
37152
37153
  if (Le) {
37153
37154
  V ? oe && t.texSubImage2D(r.TEXTURE_CUBE_MAP_POSITIVE_X + fe, 0, 0, 0, Se[fe].width, Se[fe].height, Ye, je, Se[fe].data) : t.texImage2D(r.TEXTURE_CUBE_MAP_POSITIVE_X + fe, 0, ot, Se[fe].width, Se[fe].height, 0, Ye, je, Se[fe].data);
37154
37155
  for (let ze = 0; ze < Me.length; ze++) {
37155
- const St = Me[ze].image[fe].image;
37156
- V ? oe && t.texSubImage2D(r.TEXTURE_CUBE_MAP_POSITIVE_X + fe, ze + 1, 0, 0, St.width, St.height, Ye, je, St.data) : t.texImage2D(r.TEXTURE_CUBE_MAP_POSITIVE_X + fe, ze + 1, ot, St.width, St.height, 0, Ye, je, St.data);
37156
+ const bt = Me[ze].image[fe].image;
37157
+ V ? oe && t.texSubImage2D(r.TEXTURE_CUBE_MAP_POSITIVE_X + fe, ze + 1, 0, 0, bt.width, bt.height, Ye, je, bt.data) : t.texImage2D(r.TEXTURE_CUBE_MAP_POSITIVE_X + fe, ze + 1, ot, bt.width, bt.height, 0, Ye, je, bt.data);
37157
37158
  }
37158
37159
  } else {
37159
37160
  V ? oe && t.texSubImage2D(r.TEXTURE_CUBE_MAP_POSITIVE_X + fe, 0, 0, 0, Ye, je, Se[fe]) : t.texImage2D(r.TEXTURE_CUBE_MAP_POSITIVE_X + fe, 0, ot, Ye, je, Se[fe]);
@@ -37195,7 +37196,7 @@ function WE(r, e, t, n, i, s, a) {
37195
37196
  const ue = n.get(T.depthTexture);
37196
37197
  if (ue.__renderTarget = T, (!ue.__webglTexture || T.depthTexture.image.width !== T.width || T.depthTexture.image.height !== T.height) && (T.depthTexture.image.width = T.width, T.depthTexture.image.height = T.height, T.depthTexture.needsUpdate = !0), ae) {
37197
37198
  if (ue.__webglInit === void 0 && (ue.__webglInit = !0, T.depthTexture.addEventListener("dispose", E)), ue.__webglTexture === void 0) {
37198
- ue.__webglTexture = r.createTexture(), t.bindTexture(r.TEXTURE_CUBE_MAP, ue.__webglTexture), ie(r.TEXTURE_CUBE_MAP, T.depthTexture);
37199
+ ue.__webglTexture = r.createTexture(), t.bindTexture(r.TEXTURE_CUBE_MAP, ue.__webglTexture), ne(r.TEXTURE_CUBE_MAP, T.depthTexture);
37199
37200
  const Re = s.convert(T.depthTexture.format), Le = s.convert(T.depthTexture.type);
37200
37201
  let Se;
37201
37202
  T.depthTexture.format === qn ? Se = r.DEPTH_COMPONENT24 : T.depthTexture.format === _i && (Se = r.DEPTH24_STENCIL8);
@@ -37256,7 +37257,7 @@ function WE(r, e, t, n, i, s, a) {
37256
37257
  const ae = n.get(D);
37257
37258
  T !== void 0 && we(ae.__webglFramebuffer, D, D.texture, r.COLOR_ATTACHMENT0, r.TEXTURE_2D, 0), $ !== void 0 && Q(D);
37258
37259
  }
37259
- function ne(D) {
37260
+ function se(D) {
37260
37261
  const T = D.texture, $ = n.get(D), ae = n.get(T);
37261
37262
  D.addEventListener("dispose", b);
37262
37263
  const ue = D.textures, pe = D.isWebGLCubeRenderTarget === !0, ge = ue.length > 1;
@@ -37293,7 +37294,7 @@ function WE(r, e, t, n, i, s, a) {
37293
37294
  }
37294
37295
  }
37295
37296
  if (pe) {
37296
- t.bindTexture(r.TEXTURE_CUBE_MAP, ae.__webglTexture), ie(r.TEXTURE_CUBE_MAP, T);
37297
+ t.bindTexture(r.TEXTURE_CUBE_MAP, ae.__webglTexture), ne(r.TEXTURE_CUBE_MAP, T);
37297
37298
  for (let te = 0; te < 6; te++)
37298
37299
  if (T.mipmaps && T.mipmaps.length > 0)
37299
37300
  for (let ce = 0; ce < T.mipmaps.length; ce++)
@@ -37305,12 +37306,12 @@ function WE(r, e, t, n, i, s, a) {
37305
37306
  for (let te = 0, ce = ue.length; te < ce; te++) {
37306
37307
  const Re = ue[te], Le = n.get(Re);
37307
37308
  let Se = r.TEXTURE_2D;
37308
- (D.isWebGL3DRenderTarget || D.isWebGLArrayRenderTarget) && (Se = D.isWebGL3DRenderTarget ? r.TEXTURE_3D : r.TEXTURE_2D_ARRAY), t.bindTexture(Se, Le.__webglTexture), ie(Se, Re), we($.__webglFramebuffer, D, Re, r.COLOR_ATTACHMENT0 + te, Se, 0), m(Re) && g(Se);
37309
+ (D.isWebGL3DRenderTarget || D.isWebGLArrayRenderTarget) && (Se = D.isWebGL3DRenderTarget ? r.TEXTURE_3D : r.TEXTURE_2D_ARRAY), t.bindTexture(Se, Le.__webglTexture), ne(Se, Re), we($.__webglFramebuffer, D, Re, r.COLOR_ATTACHMENT0 + te, Se, 0), m(Re) && g(Se);
37309
37310
  }
37310
37311
  t.unbindTexture();
37311
37312
  } else {
37312
37313
  let te = r.TEXTURE_2D;
37313
- if ((D.isWebGL3DRenderTarget || D.isWebGLArrayRenderTarget) && (te = D.isWebGL3DRenderTarget ? r.TEXTURE_3D : r.TEXTURE_2D_ARRAY), t.bindTexture(te, ae.__webglTexture), ie(te, T), T.mipmaps && T.mipmaps.length > 0)
37314
+ if ((D.isWebGL3DRenderTarget || D.isWebGLArrayRenderTarget) && (te = D.isWebGL3DRenderTarget ? r.TEXTURE_3D : r.TEXTURE_2D_ARRAY), t.bindTexture(te, ae.__webglTexture), ne(te, T), T.mipmaps && T.mipmaps.length > 0)
37314
37315
  for (let ce = 0; ce < T.mipmaps.length; ce++)
37315
37316
  we($.__webglFramebuffer[ce], D, T, r.COLOR_ATTACHMENT0, te, ce);
37316
37317
  else
@@ -37376,12 +37377,12 @@ function WE(r, e, t, n, i, s, a) {
37376
37377
  }
37377
37378
  function de(D, T) {
37378
37379
  const $ = D.colorSpace, ae = D.format, ue = D.type;
37379
- return D.isCompressedTexture === !0 || D.isVideoTexture === !0 || $ !== Gs && $ !== ei && (rt.getTransfer($) === ft ? (ae !== jt || ue !== an) && Ee("WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType.") : ke("WebGLTextures: Unsupported texture color space:", $)), T;
37380
+ return D.isCompressedTexture === !0 || D.isVideoTexture === !0 || $ !== Gs && $ !== ei && (rt.getTransfer($) === ft ? (ae !== Qt || ue !== on) && Ee("WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType.") : ke("WebGLTextures: Unsupported texture color space:", $)), T;
37380
37381
  }
37381
37382
  function st(D) {
37382
37383
  return typeof HTMLImageElement < "u" && D instanceof HTMLImageElement ? (c.width = D.naturalWidth || D.width, c.height = D.naturalHeight || D.height) : typeof VideoFrame < "u" && D instanceof VideoFrame ? (c.width = D.displayWidth, c.height = D.displayHeight) : (c.width = D.width, c.height = D.height), c;
37383
37384
  }
37384
- this.allocateTextureUnit = U, this.resetTextureUnits = F, this.getTextureUnits = z, this.setTextureUnits = L, this.setTexture2D = K, this.setTexture2DArray = ee, this.setTexture3D = se, this.setTextureCube = W, this.rebindTextures = le, this.setupRenderTarget = ne, this.updateRenderTargetMipmap = _e, this.updateMultisampleRenderTarget = N, this.setupDepthRenderbuffer = Q, this.setupFrameBufferTexture = we, this.useMultisampledRTT = Ce, this.isReversedDepthBuffer = function() {
37385
+ this.allocateTextureUnit = U, this.resetTextureUnits = F, this.getTextureUnits = z, this.setTextureUnits = L, this.setTexture2D = K, this.setTexture2DArray = ee, this.setTexture3D = re, this.setTextureCube = W, this.rebindTextures = le, this.setupRenderTarget = se, this.updateRenderTargetMipmap = _e, this.updateMultisampleRenderTarget = N, this.setupDepthRenderbuffer = Q, this.setupFrameBufferTexture = we, this.useMultisampledRTT = Ce, this.isReversedDepthBuffer = function() {
37385
37386
  return t.buffers.depth.getReversed();
37386
37387
  };
37387
37388
  }
@@ -37389,7 +37390,7 @@ function Zx(r, e) {
37389
37390
  function t(n, i = ei) {
37390
37391
  let s;
37391
37392
  const a = rt.getTransfer(i);
37392
- if (n === an) return r.UNSIGNED_BYTE;
37393
+ if (n === on) return r.UNSIGNED_BYTE;
37393
37394
  if (n === Kc) return r.UNSIGNED_SHORT_4_4_4_4;
37394
37395
  if (n === Jc) return r.UNSIGNED_SHORT_5_5_5_1;
37395
37396
  if (n === pu) return r.UNSIGNED_INT_5_9_9_9_REV;
@@ -37399,11 +37400,11 @@ function Zx(r, e) {
37399
37400
  if (n === Wr) return r.UNSIGNED_SHORT;
37400
37401
  if (n === Zc) return r.INT;
37401
37402
  if (n === bn) return r.UNSIGNED_INT;
37402
- if (n === Jt) return r.FLOAT;
37403
+ if (n === jt) return r.FLOAT;
37403
37404
  if (n === Xn) return r.HALF_FLOAT;
37404
37405
  if (n === mu) return r.ALPHA;
37405
37406
  if (n === gu) return r.RGB;
37406
- if (n === jt) return r.RGBA;
37407
+ if (n === Qt) return r.RGBA;
37407
37408
  if (n === qn) return r.DEPTH_COMPONENT;
37408
37409
  if (n === _i) return r.DEPTH_STENCIL;
37409
37410
  if (n === jc) return r.RED;
@@ -37543,7 +37544,7 @@ class $E {
37543
37544
  depthHeight: { value: t.w }
37544
37545
  }
37545
37546
  });
37546
- this.mesh = new Mt(new es(20, 20), n);
37547
+ this.mesh = new At(new es(20, 20), n);
37547
37548
  }
37548
37549
  return this.mesh;
37549
37550
  }
@@ -37609,7 +37610,7 @@ class YE extends Pn {
37609
37610
  F = null, z = null, x.reset();
37610
37611
  for (const k in m)
37611
37612
  delete m[k];
37612
- e.setRenderTarget(v), d = null, u = null, f = null, i = null, y = null, ie.stop(), n.isPresenting = !1, e.setPixelRatio(b), e.setSize(E.width, E.height, !1), n.dispatchEvent({ type: "sessionend" });
37613
+ e.setRenderTarget(v), d = null, u = null, f = null, i = null, y = null, ne.stop(), n.isPresenting = !1, e.setPixelRatio(b), e.setSize(E.width, E.height, !1), n.dispatchEvent({ type: "sessionend" });
37613
37614
  }
37614
37615
  this.setFramebufferScaleFactor = function(k) {
37615
37616
  s = k, n.isPresenting === !0 && Ee("WebXRManager: Cannot change framebuffer scale while presenting.");
@@ -37630,8 +37631,8 @@ class YE extends Pn {
37630
37631
  }, this.setSession = async function(k) {
37631
37632
  if (i = k, i !== null) {
37632
37633
  if (v = e.getRenderTarget(), i.addEventListener("select", L), i.addEventListener("selectstart", L), i.addEventListener("selectend", L), i.addEventListener("squeeze", L), i.addEventListener("squeezestart", L), i.addEventListener("squeezeend", L), i.addEventListener("end", U), i.addEventListener("inputsourceschange", H), g.xrCompatible !== !0 && await t.makeXRCompatible(), b = e.getPixelRatio(), e.getSize(E), _ && "createProjectionLayer" in XRWebGLBinding.prototype) {
37633
- let X = null, re = null, xe = null;
37634
- g.depth && (xe = g.stencil ? t.DEPTH24_STENCIL8 : t.DEPTH_COMPONENT24, X = g.stencil ? _i : qn, re = g.stencil ? Xr : bn);
37634
+ let X = null, ie = null, xe = null;
37635
+ g.depth && (xe = g.stencil ? t.DEPTH24_STENCIL8 : t.DEPTH_COMPONENT24, X = g.stencil ? _i : qn, ie = g.stencil ? Xr : bn);
37635
37636
  const we = {
37636
37637
  colorFormat: t.RGBA8,
37637
37638
  depthFormat: xe,
@@ -37641,9 +37642,9 @@ class YE extends Pn {
37641
37642
  u.textureWidth,
37642
37643
  u.textureHeight,
37643
37644
  {
37644
- format: jt,
37645
- type: an,
37646
- depthTexture: new ir(u.textureWidth, u.textureHeight, re, void 0, void 0, void 0, void 0, void 0, void 0, X),
37645
+ format: Qt,
37646
+ type: on,
37647
+ depthTexture: new ir(u.textureWidth, u.textureHeight, ie, void 0, void 0, void 0, void 0, void 0, void 0, X),
37647
37648
  stencilBuffer: g.stencil,
37648
37649
  colorSpace: e.outputColorSpace,
37649
37650
  samples: g.antialias ? 4 : 0,
@@ -37663,8 +37664,8 @@ class YE extends Pn {
37663
37664
  d.framebufferWidth,
37664
37665
  d.framebufferHeight,
37665
37666
  {
37666
- format: jt,
37667
- type: an,
37667
+ format: Qt,
37668
+ type: on,
37668
37669
  colorSpace: e.outputColorSpace,
37669
37670
  stencilBuffer: g.stencil,
37670
37671
  resolveDepthBuffer: d.ignoreDepthValues === !1,
@@ -37672,7 +37673,7 @@ class YE extends Pn {
37672
37673
  }
37673
37674
  );
37674
37675
  }
37675
- y.isXRRenderTarget = !0, this.setFoveation(l), c = null, a = await i.requestReferenceSpace(o), ie.setContext(i), ie.start(), n.isPresenting = !0, n.dispatchEvent({ type: "sessionstart" });
37676
+ y.isXRRenderTarget = !0, this.setFoveation(l), c = null, a = await i.requestReferenceSpace(o), ne.setContext(i), ne.start(), n.isPresenting = !0, n.dispatchEvent({ type: "sessionstart" });
37676
37677
  }
37677
37678
  }, this.getEnvironmentBlendMode = function() {
37678
37679
  if (i !== null)
@@ -37682,35 +37683,35 @@ class YE extends Pn {
37682
37683
  };
37683
37684
  function H(k) {
37684
37685
  for (let j = 0; j < k.removed.length; j++) {
37685
- const X = k.removed[j], re = M.indexOf(X);
37686
- re >= 0 && (M[re] = null, S[re].disconnect(X));
37686
+ const X = k.removed[j], ie = M.indexOf(X);
37687
+ ie >= 0 && (M[ie] = null, S[ie].disconnect(X));
37687
37688
  }
37688
37689
  for (let j = 0; j < k.added.length; j++) {
37689
37690
  const X = k.added[j];
37690
- let re = M.indexOf(X);
37691
- if (re === -1) {
37691
+ let ie = M.indexOf(X);
37692
+ if (ie === -1) {
37692
37693
  for (let we = 0; we < S.length; we++)
37693
37694
  if (we >= M.length) {
37694
- M.push(X), re = we;
37695
+ M.push(X), ie = we;
37695
37696
  break;
37696
37697
  } else if (M[we] === null) {
37697
- M[we] = X, re = we;
37698
+ M[we] = X, ie = we;
37698
37699
  break;
37699
37700
  }
37700
- if (re === -1) break;
37701
+ if (ie === -1) break;
37701
37702
  }
37702
- const xe = S[re];
37703
+ const xe = S[ie];
37703
37704
  xe && xe.connect(X);
37704
37705
  }
37705
37706
  }
37706
37707
  const K = new B(), ee = new B();
37707
- function se(k, j, X) {
37708
+ function re(k, j, X) {
37708
37709
  K.setFromMatrixPosition(j.matrixWorld), ee.setFromMatrixPosition(X.matrixWorld);
37709
- const re = K.distanceTo(ee), xe = j.projectionMatrix.elements, we = X.projectionMatrix.elements, Ae = xe[14] / (xe[10] - 1), me = xe[14] / (xe[10] + 1), Q = (xe[9] + 1) / xe[5], le = (xe[9] - 1) / xe[5], ne = (xe[8] - 1) / xe[0], _e = (we[8] + 1) / we[0], ve = Ae * ne, Xe = Ae * _e, N = re / (-ne + _e), Oe = N * -ne;
37710
+ const ie = K.distanceTo(ee), xe = j.projectionMatrix.elements, we = X.projectionMatrix.elements, Ae = xe[14] / (xe[10] - 1), me = xe[14] / (xe[10] + 1), Q = (xe[9] + 1) / xe[5], le = (xe[9] - 1) / xe[5], se = (xe[8] - 1) / xe[0], _e = (we[8] + 1) / we[0], ve = Ae * se, Xe = Ae * _e, N = ie / (-se + _e), Oe = N * -se;
37710
37711
  if (j.matrixWorld.decompose(k.position, k.quaternion, k.scale), k.translateX(Oe), k.translateZ(N), k.matrixWorld.compose(k.position, k.quaternion, k.scale), k.matrixWorldInverse.copy(k.matrixWorld).invert(), xe[10] === -1)
37711
37712
  k.projectionMatrix.copy(j.projectionMatrix), k.projectionMatrixInverse.copy(j.projectionMatrixInverse);
37712
37713
  else {
37713
- const Ce = Ae + N, Ge = me + N, de = ve - Oe, st = Xe + (re - Oe), D = Q * me / Ge * Ce, T = le * me / Ge * Ce;
37714
+ const Ce = Ae + N, Ge = me + N, de = ve - Oe, st = Xe + (ie - Oe), D = Q * me / Ge * Ce, T = le * me / Ge * Ce;
37714
37715
  k.projectionMatrix.makePerspective(de, st, D, T, Ce, Ge), k.projectionMatrixInverse.copy(k.projectionMatrix).invert();
37715
37716
  }
37716
37717
  }
@@ -37724,11 +37725,11 @@ class YE extends Pn {
37724
37725
  depthNear: I.near,
37725
37726
  depthFar: I.far
37726
37727
  }), F = I.near, z = I.far), I.layers.mask = k.layers.mask | 6, w.layers.mask = I.layers.mask & -5, A.layers.mask = I.layers.mask & -3;
37727
- const re = k.parent, xe = I.cameras;
37728
- W(I, re);
37728
+ const ie = k.parent, xe = I.cameras;
37729
+ W(I, ie);
37729
37730
  for (let we = 0; we < xe.length; we++)
37730
- W(xe[we], re);
37731
- xe.length === 2 ? se(I, w, A) : I.projectionMatrix.copy(w.projectionMatrix), P(k, I, re);
37731
+ W(xe[we], ie);
37732
+ xe.length === 2 ? re(I, w, A) : I.projectionMatrix.copy(w.projectionMatrix), P(k, I, ie);
37732
37733
  };
37733
37734
  function P(k, j, X) {
37734
37735
  X === null ? k.matrix.copy(j.matrixWorld) : (k.matrix.copy(X.matrixWorld), k.matrix.invert(), k.matrix.multiply(j.matrixWorld)), k.matrix.decompose(k.position, k.quaternion, k.scale), k.updateMatrixWorld(!0), k.projectionMatrix.copy(j.projectionMatrix), k.projectionMatrixInverse.copy(j.projectionMatrixInverse), k.isPerspectiveCamera && (k.fov = qr * 2 * Math.atan(1 / k.projectionMatrix.elements[5]), k.zoom = 1);
@@ -37752,8 +37753,8 @@ class YE extends Pn {
37752
37753
  if (h = j.getViewerPose(c || a), p = j, h !== null) {
37753
37754
  const X = h.views;
37754
37755
  d !== null && (e.setRenderTargetFramebuffer(y, d.framebuffer), e.setRenderTarget(y));
37755
- let re = !1;
37756
- X.length !== I.cameras.length && (I.cameras.length = 0, re = !0);
37756
+ let ie = !1;
37757
+ X.length !== I.cameras.length && (I.cameras.length = 0, ie = !0);
37757
37758
  for (let me = 0; me < X.length; me++) {
37758
37759
  const Q = X[me];
37759
37760
  let le = null;
@@ -37767,8 +37768,8 @@ class YE extends Pn {
37767
37768
  _e.depthStencilTexture
37768
37769
  ), e.setRenderTarget(y));
37769
37770
  }
37770
- let ne = C[me];
37771
- ne === void 0 && (ne = new zt(), ne.layers.enable(me), ne.viewport = new dt(), C[me] = ne), ne.matrix.fromArray(Q.transform.matrix), ne.matrix.decompose(ne.position, ne.quaternion, ne.scale), ne.projectionMatrix.fromArray(Q.projectionMatrix), ne.projectionMatrixInverse.copy(ne.projectionMatrix).invert(), ne.viewport.set(le.x, le.y, le.width, le.height), me === 0 && (I.matrix.copy(ne.matrix), I.matrix.decompose(I.position, I.quaternion, I.scale)), re === !0 && I.cameras.push(ne);
37771
+ let se = C[me];
37772
+ se === void 0 && (se = new zt(), se.layers.enable(me), se.viewport = new dt(), C[me] = se), se.matrix.fromArray(Q.transform.matrix), se.matrix.decompose(se.position, se.quaternion, se.scale), se.projectionMatrix.fromArray(Q.projectionMatrix), se.projectionMatrixInverse.copy(se.projectionMatrix).invert(), se.viewport.set(le.x, le.y, le.width, le.height), me === 0 && (I.matrix.copy(se.matrix), I.matrix.decompose(I.position, I.quaternion, I.scale)), ie === !0 && I.cameras.push(se);
37772
37773
  }
37773
37774
  const xe = i.enabledFeatures;
37774
37775
  if (xe && xe.includes("depth-sensing") && i.depthUsage == "gpu-optimized" && _) {
@@ -37783,20 +37784,20 @@ class YE extends Pn {
37783
37784
  if (Q) {
37784
37785
  let le = m[Q];
37785
37786
  le || (le = new Cu(), m[Q] = le);
37786
- const ne = f.getCameraImage(Q);
37787
- le.sourceTexture = ne;
37787
+ const se = f.getCameraImage(Q);
37788
+ le.sourceTexture = se;
37788
37789
  }
37789
37790
  }
37790
37791
  }
37791
37792
  }
37792
37793
  for (let X = 0; X < S.length; X++) {
37793
- const re = M[X], xe = S[X];
37794
- re !== null && xe !== void 0 && xe.update(re, j, c || a);
37794
+ const ie = M[X], xe = S[X];
37795
+ ie !== null && xe !== void 0 && xe.update(ie, j, c || a);
37795
37796
  }
37796
37797
  O && O(k, j), j.detectedPlanes && n.dispatchEvent({ type: "planesdetected", data: j }), p = null;
37797
37798
  }
37798
- const ie = new Hx();
37799
- ie.setAnimationLoop(G), this.setAnimationLoop = function(k) {
37799
+ const ne = new Hx();
37800
+ ne.setAnimationLoop(G), this.setAnimationLoop = function(k) {
37800
37801
  O = k;
37801
37802
  }, this.dispose = function() {
37802
37803
  };
@@ -37815,7 +37816,7 @@ function KE(r, e) {
37815
37816
  m.isNodeMaterial ? m.uniformsNeedUpdate = !1 : m.isMeshBasicMaterial ? s(x, m) : m.isMeshLambertMaterial ? (s(x, m), m.envMap && (x.envMapIntensity.value = m.envMapIntensity)) : m.isMeshToonMaterial ? (s(x, m), f(x, m)) : m.isMeshPhongMaterial ? (s(x, m), h(x, m), m.envMap && (x.envMapIntensity.value = m.envMapIntensity)) : m.isMeshStandardMaterial ? (s(x, m), u(x, m), m.isMeshPhysicalMaterial && d(x, m, y)) : m.isMeshMatcapMaterial ? (s(x, m), p(x, m)) : m.isMeshDepthMaterial ? s(x, m) : m.isMeshDistanceMaterial ? (s(x, m), _(x, m)) : m.isMeshNormalMaterial ? s(x, m) : m.isLineBasicMaterial ? (a(x, m), m.isLineDashedMaterial && o(x, m)) : m.isPointsMaterial ? l(x, m, g, v) : m.isSpriteMaterial ? c(x, m) : m.isShadowMaterial ? (x.color.value.copy(m.color), x.opacity.value = m.opacity) : m.isShaderMaterial && (m.uniformsNeedUpdate = !1);
37816
37817
  }
37817
37818
  function s(x, m) {
37818
- x.opacity.value = m.opacity, m.color && x.diffuse.value.copy(m.color), m.emissive && x.emissive.value.copy(m.emissive).multiplyScalar(m.emissiveIntensity), m.map && (x.map.value = m.map, t(m.map, x.mapTransform)), m.alphaMap && (x.alphaMap.value = m.alphaMap, t(m.alphaMap, x.alphaMapTransform)), m.bumpMap && (x.bumpMap.value = m.bumpMap, t(m.bumpMap, x.bumpMapTransform), x.bumpScale.value = m.bumpScale, m.side === Qt && (x.bumpScale.value *= -1)), m.normalMap && (x.normalMap.value = m.normalMap, t(m.normalMap, x.normalMapTransform), x.normalScale.value.copy(m.normalScale), m.side === Qt && x.normalScale.value.negate()), m.displacementMap && (x.displacementMap.value = m.displacementMap, t(m.displacementMap, x.displacementMapTransform), x.displacementScale.value = m.displacementScale, x.displacementBias.value = m.displacementBias), m.emissiveMap && (x.emissiveMap.value = m.emissiveMap, t(m.emissiveMap, x.emissiveMapTransform)), m.specularMap && (x.specularMap.value = m.specularMap, t(m.specularMap, x.specularMapTransform)), m.alphaTest > 0 && (x.alphaTest.value = m.alphaTest);
37819
+ x.opacity.value = m.opacity, m.color && x.diffuse.value.copy(m.color), m.emissive && x.emissive.value.copy(m.emissive).multiplyScalar(m.emissiveIntensity), m.map && (x.map.value = m.map, t(m.map, x.mapTransform)), m.alphaMap && (x.alphaMap.value = m.alphaMap, t(m.alphaMap, x.alphaMapTransform)), m.bumpMap && (x.bumpMap.value = m.bumpMap, t(m.bumpMap, x.bumpMapTransform), x.bumpScale.value = m.bumpScale, m.side === en && (x.bumpScale.value *= -1)), m.normalMap && (x.normalMap.value = m.normalMap, t(m.normalMap, x.normalMapTransform), x.normalScale.value.copy(m.normalScale), m.side === en && x.normalScale.value.negate()), m.displacementMap && (x.displacementMap.value = m.displacementMap, t(m.displacementMap, x.displacementMapTransform), x.displacementScale.value = m.displacementScale, x.displacementBias.value = m.displacementBias), m.emissiveMap && (x.emissiveMap.value = m.emissiveMap, t(m.emissiveMap, x.emissiveMapTransform)), m.specularMap && (x.specularMap.value = m.specularMap, t(m.specularMap, x.specularMapTransform)), m.alphaTest > 0 && (x.alphaTest.value = m.alphaTest);
37819
37820
  const g = e.get(m), v = g.envMap, y = g.envMapRotation;
37820
37821
  v && (x.envMap.value = v, x.envMapRotation.value.setFromMatrix4(ZE.makeRotationFromEuler(y)).transpose(), v.isCubeTexture && v.isRenderTargetTexture === !1 && x.envMapRotation.value.premultiply(Kx), x.reflectivity.value = m.reflectivity, x.ior.value = m.ior, x.refractionRatio.value = m.refractionRatio), m.lightMap && (x.lightMap.value = m.lightMap, x.lightMapIntensity.value = m.lightMapIntensity, t(m.lightMap, x.lightMapTransform)), m.aoMap && (x.aoMap.value = m.aoMap, x.aoMapIntensity.value = m.aoMapIntensity, t(m.aoMap, x.aoMapTransform));
37821
37822
  }
@@ -37841,7 +37842,7 @@ function KE(r, e) {
37841
37842
  x.metalness.value = m.metalness, m.metalnessMap && (x.metalnessMap.value = m.metalnessMap, t(m.metalnessMap, x.metalnessMapTransform)), x.roughness.value = m.roughness, m.roughnessMap && (x.roughnessMap.value = m.roughnessMap, t(m.roughnessMap, x.roughnessMapTransform)), m.envMap && (x.envMapIntensity.value = m.envMapIntensity);
37842
37843
  }
37843
37844
  function d(x, m, g) {
37844
- x.ior.value = m.ior, m.sheen > 0 && (x.sheenColor.value.copy(m.sheenColor).multiplyScalar(m.sheen), x.sheenRoughness.value = m.sheenRoughness, m.sheenColorMap && (x.sheenColorMap.value = m.sheenColorMap, t(m.sheenColorMap, x.sheenColorMapTransform)), m.sheenRoughnessMap && (x.sheenRoughnessMap.value = m.sheenRoughnessMap, t(m.sheenRoughnessMap, x.sheenRoughnessMapTransform))), m.clearcoat > 0 && (x.clearcoat.value = m.clearcoat, x.clearcoatRoughness.value = m.clearcoatRoughness, m.clearcoatMap && (x.clearcoatMap.value = m.clearcoatMap, t(m.clearcoatMap, x.clearcoatMapTransform)), m.clearcoatRoughnessMap && (x.clearcoatRoughnessMap.value = m.clearcoatRoughnessMap, t(m.clearcoatRoughnessMap, x.clearcoatRoughnessMapTransform)), m.clearcoatNormalMap && (x.clearcoatNormalMap.value = m.clearcoatNormalMap, t(m.clearcoatNormalMap, x.clearcoatNormalMapTransform), x.clearcoatNormalScale.value.copy(m.clearcoatNormalScale), m.side === Qt && x.clearcoatNormalScale.value.negate())), m.dispersion > 0 && (x.dispersion.value = m.dispersion), m.iridescence > 0 && (x.iridescence.value = m.iridescence, x.iridescenceIOR.value = m.iridescenceIOR, x.iridescenceThicknessMinimum.value = m.iridescenceThicknessRange[0], x.iridescenceThicknessMaximum.value = m.iridescenceThicknessRange[1], m.iridescenceMap && (x.iridescenceMap.value = m.iridescenceMap, t(m.iridescenceMap, x.iridescenceMapTransform)), m.iridescenceThicknessMap && (x.iridescenceThicknessMap.value = m.iridescenceThicknessMap, t(m.iridescenceThicknessMap, x.iridescenceThicknessMapTransform))), m.transmission > 0 && (x.transmission.value = m.transmission, x.transmissionSamplerMap.value = g.texture, x.transmissionSamplerSize.value.set(g.width, g.height), m.transmissionMap && (x.transmissionMap.value = m.transmissionMap, t(m.transmissionMap, x.transmissionMapTransform)), x.thickness.value = m.thickness, m.thicknessMap && (x.thicknessMap.value = m.thicknessMap, t(m.thicknessMap, x.thicknessMapTransform)), x.attenuationDistance.value = m.attenuationDistance, x.attenuationColor.value.copy(m.attenuationColor)), m.anisotropy > 0 && (x.anisotropyVector.value.set(m.anisotropy * Math.cos(m.anisotropyRotation), m.anisotropy * Math.sin(m.anisotropyRotation)), m.anisotropyMap && (x.anisotropyMap.value = m.anisotropyMap, t(m.anisotropyMap, x.anisotropyMapTransform))), x.specularIntensity.value = m.specularIntensity, x.specularColor.value.copy(m.specularColor), m.specularColorMap && (x.specularColorMap.value = m.specularColorMap, t(m.specularColorMap, x.specularColorMapTransform)), m.specularIntensityMap && (x.specularIntensityMap.value = m.specularIntensityMap, t(m.specularIntensityMap, x.specularIntensityMapTransform));
37845
+ x.ior.value = m.ior, m.sheen > 0 && (x.sheenColor.value.copy(m.sheenColor).multiplyScalar(m.sheen), x.sheenRoughness.value = m.sheenRoughness, m.sheenColorMap && (x.sheenColorMap.value = m.sheenColorMap, t(m.sheenColorMap, x.sheenColorMapTransform)), m.sheenRoughnessMap && (x.sheenRoughnessMap.value = m.sheenRoughnessMap, t(m.sheenRoughnessMap, x.sheenRoughnessMapTransform))), m.clearcoat > 0 && (x.clearcoat.value = m.clearcoat, x.clearcoatRoughness.value = m.clearcoatRoughness, m.clearcoatMap && (x.clearcoatMap.value = m.clearcoatMap, t(m.clearcoatMap, x.clearcoatMapTransform)), m.clearcoatRoughnessMap && (x.clearcoatRoughnessMap.value = m.clearcoatRoughnessMap, t(m.clearcoatRoughnessMap, x.clearcoatRoughnessMapTransform)), m.clearcoatNormalMap && (x.clearcoatNormalMap.value = m.clearcoatNormalMap, t(m.clearcoatNormalMap, x.clearcoatNormalMapTransform), x.clearcoatNormalScale.value.copy(m.clearcoatNormalScale), m.side === en && x.clearcoatNormalScale.value.negate())), m.dispersion > 0 && (x.dispersion.value = m.dispersion), m.iridescence > 0 && (x.iridescence.value = m.iridescence, x.iridescenceIOR.value = m.iridescenceIOR, x.iridescenceThicknessMinimum.value = m.iridescenceThicknessRange[0], x.iridescenceThicknessMaximum.value = m.iridescenceThicknessRange[1], m.iridescenceMap && (x.iridescenceMap.value = m.iridescenceMap, t(m.iridescenceMap, x.iridescenceMapTransform)), m.iridescenceThicknessMap && (x.iridescenceThicknessMap.value = m.iridescenceThicknessMap, t(m.iridescenceThicknessMap, x.iridescenceThicknessMapTransform))), m.transmission > 0 && (x.transmission.value = m.transmission, x.transmissionSamplerMap.value = g.texture, x.transmissionSamplerSize.value.set(g.width, g.height), m.transmissionMap && (x.transmissionMap.value = m.transmissionMap, t(m.transmissionMap, x.transmissionMapTransform)), x.thickness.value = m.thickness, m.thicknessMap && (x.thicknessMap.value = m.thicknessMap, t(m.thicknessMap, x.thicknessMapTransform)), x.attenuationDistance.value = m.attenuationDistance, x.attenuationColor.value.copy(m.attenuationColor)), m.anisotropy > 0 && (x.anisotropyVector.value.set(m.anisotropy * Math.cos(m.anisotropyRotation), m.anisotropy * Math.sin(m.anisotropyRotation)), m.anisotropyMap && (x.anisotropyMap.value = m.anisotropyMap, t(m.anisotropyMap, x.anisotropyMapTransform))), x.specularIntensity.value = m.specularIntensity, x.specularColor.value.copy(m.specularColor), m.specularColorMap && (x.specularColorMap.value = m.specularColorMap, t(m.specularColorMap, x.specularColorMapTransform)), m.specularIntensityMap && (x.specularIntensityMap.value = m.specularIntensityMap, t(m.specularIntensityMap, x.specularIntensityMapTransform));
37845
37846
  }
37846
37847
  function p(x, m) {
37847
37848
  m.matcap && (x.matcap.value = m.matcap);
@@ -37929,8 +37930,8 @@ function JE(r, e, t, n) {
37929
37930
  for (let A = 0, C = w.length; A < C; A++) {
37930
37931
  const I = w[A], F = Array.isArray(I.value) ? I.value : [I.value];
37931
37932
  for (let z = 0, L = F.length; z < L; z++) {
37932
- const U = F[z], H = _(U), K = y % S, ee = K % H.boundary, se = K + ee;
37933
- y += ee, se !== 0 && S - se < H.storage && (y += S - se), I.__data = new Float32Array(H.storage / Float32Array.BYTES_PER_ELEMENT), I.__offset = y, y += H.storage;
37933
+ const U = F[z], H = _(U), K = y % S, ee = K % H.boundary, re = K + ee;
37934
+ y += ee, re !== 0 && S - re < H.storage && (y += S - re), I.__data = new Float32Array(H.storage / Float32Array.BYTES_PER_ELEMENT), I.__offset = y, y += H.storage;
37934
37935
  }
37935
37936
  }
37936
37937
  }
@@ -38479,7 +38480,7 @@ const jE = new Uint16Array([
38479
38480
  ]);
38480
38481
  let On = null;
38481
38482
  function QE() {
38482
- return On === null && (On = new Dn(jE, 16, 16, Si, Xn), On.name = "DFG_LUT", On.minFilter = yt, On.magFilter = yt, On.wrapS = cn, On.wrapT = cn, On.generateMipmaps = !1, On.needsUpdate = !0), On;
38483
+ return On === null && (On = new Dn(jE, 16, 16, Si, Xn), On.name = "DFG_LUT", On.minFilter = vt, On.magFilter = vt, On.wrapS = ln, On.wrapT = ln, On.generateMipmaps = !1, On.needsUpdate = !0), On;
38483
38484
  }
38484
38485
  class eA {
38485
38486
  /**
@@ -38500,7 +38501,7 @@ class eA {
38500
38501
  powerPreference: h = "default",
38501
38502
  failIfMajorPerformanceCaveat: f = !1,
38502
38503
  reversedDepthBuffer: u = !1,
38503
- outputBufferType: d = an
38504
+ outputBufferType: d = on
38504
38505
  } = e;
38505
38506
  this.isWebGLRenderer = !0;
38506
38507
  let p;
@@ -38515,7 +38516,7 @@ class eA {
38515
38516
  Qc,
38516
38517
  ta
38517
38518
  ]), m = /* @__PURE__ */ new Set([
38518
- an,
38519
+ on,
38519
38520
  bn,
38520
38521
  Wr,
38521
38522
  Xr,
@@ -38539,20 +38540,20 @@ class eA {
38539
38540
  }, this.autoClear = !0, this.autoClearColor = !0, this.autoClearDepth = !0, this.autoClearStencil = !0, this.sortObjects = !0, this.clippingPlanes = [], this.localClippingEnabled = !1, this.toneMapping = Rn, this.toneMappingExposure = 1, this.transmissionResolutionScale = 1;
38540
38541
  const A = this;
38541
38542
  let C = !1, I = null;
38542
- this._outputColorSpace = sn;
38543
+ this._outputColorSpace = an;
38543
38544
  let F = 0, z = 0, L = null, U = -1, H = null;
38544
38545
  const K = new dt(), ee = new dt();
38545
- let se = null;
38546
+ let re = null;
38546
38547
  const W = new Be(0);
38547
- let P = 0, O = t.width, G = t.height, ie = 1, k = null, j = null;
38548
- const X = new dt(0, 0, O, G), re = new dt(0, 0, O, G);
38548
+ let P = 0, O = t.width, G = t.height, ne = 1, k = null, j = null;
38549
+ const X = new dt(0, 0, O, G), ie = new dt(0, 0, O, G);
38549
38550
  let xe = !1;
38550
38551
  const we = new Qr();
38551
38552
  let Ae = !1, me = !1;
38552
- const Q = new $e(), le = new B(), ne = new dt(), _e = { background: null, fog: null, environment: null, overrideMaterial: null, isScene: !0 };
38553
+ const Q = new $e(), le = new B(), se = new dt(), _e = { background: null, fog: null, environment: null, overrideMaterial: null, isScene: !0 };
38553
38554
  let ve = !1;
38554
38555
  function Xe() {
38555
- return L === null ? ie : 1;
38556
+ return L === null ? ne : 1;
38556
38557
  }
38557
38558
  let N = n;
38558
38559
  function Oe(R, q) {
@@ -38581,7 +38582,7 @@ class eA {
38581
38582
  function Pe() {
38582
38583
  Ce = new e2(N), Ce.init(), V = new Zx(N, Ce), Ge = new qS(N, Ce, e, V), de = new HE(N, Ce), Ge.reversedDepthBuffer && u && de.buffers.depth.setReversed(!0), st = new i2(N), D = new RE(), T = new WE(N, Ce, de, D, Ge, V, st), $ = new QS(A), ae = new ob(N), be = new WS(N, ae), ue = new t2(N, ae, st, be), pe = new s2(N, ue, ae, be, st), Ye = new r2(N, Ge, T), Le = new $S(D), ge = new TE(A, $, Ce, Ge, be, Le), te = new KE(A, D), ce = new IE(), Re = new UE(Ce), ye = new HS(A, $, de, pe, p, l), Se = new GE(A, pe, Ge), oe = new JE(N, st, Ge, de), je = new XS(N, Ce, st), ot = new n2(N, Ce, st), st.programs = ge.programs, A.capabilities = Ge, A.extensions = Ce, A.properties = D, A.renderLists = ce, A.shadowMap = Se, A.state = de, A.info = st;
38583
38584
  }
38584
- Pe(), _ !== an && (w = new o2(_, t.width, t.height, i, s));
38585
+ Pe(), _ !== on && (w = new o2(_, t.width, t.height, i, s));
38585
38586
  const Me = new YE(A, N);
38586
38587
  this.xr = Me, this.getContext = function() {
38587
38588
  return N;
@@ -38594,9 +38595,9 @@ class eA {
38594
38595
  const R = Ce.get("WEBGL_lose_context");
38595
38596
  R && R.restoreContext();
38596
38597
  }, this.getPixelRatio = function() {
38597
- return ie;
38598
+ return ne;
38598
38599
  }, this.setPixelRatio = function(R) {
38599
- R !== void 0 && (ie = R, this.setSize(O, G, !1));
38600
+ R !== void 0 && (ne = R, this.setSize(O, G, !1));
38600
38601
  }, this.getSize = function(R) {
38601
38602
  return R.set(O, G);
38602
38603
  }, this.setSize = function(R, q, J = !0) {
@@ -38604,13 +38605,13 @@ class eA {
38604
38605
  Ee("WebGLRenderer: Can't change size while VR device is presenting.");
38605
38606
  return;
38606
38607
  }
38607
- O = R, G = q, t.width = Math.floor(R * ie), t.height = Math.floor(q * ie), J === !0 && (t.style.width = R + "px", t.style.height = q + "px"), w !== null && w.setSize(t.width, t.height), this.setViewport(0, 0, R, q);
38608
+ O = R, G = q, t.width = Math.floor(R * ne), t.height = Math.floor(q * ne), J === !0 && (t.style.width = R + "px", t.style.height = q + "px"), w !== null && w.setSize(t.width, t.height), this.setViewport(0, 0, R, q);
38608
38609
  }, this.getDrawingBufferSize = function(R) {
38609
- return R.set(O * ie, G * ie).floor();
38610
+ return R.set(O * ne, G * ne).floor();
38610
38611
  }, this.setDrawingBufferSize = function(R, q, J) {
38611
- O = R, G = q, ie = J, t.width = Math.floor(R * J), t.height = Math.floor(q * J), this.setViewport(0, 0, R, q);
38612
+ O = R, G = q, ne = J, t.width = Math.floor(R * J), t.height = Math.floor(q * J), this.setViewport(0, 0, R, q);
38612
38613
  }, this.setEffects = function(R) {
38613
- if (_ === an) {
38614
+ if (_ === on) {
38614
38615
  ke("THREE.WebGLRenderer: setEffects() requires outputBufferType set to HalfFloatType or FloatType.");
38615
38616
  return;
38616
38617
  }
@@ -38627,11 +38628,11 @@ class eA {
38627
38628
  }, this.getViewport = function(R) {
38628
38629
  return R.copy(X);
38629
38630
  }, this.setViewport = function(R, q, J, Y) {
38630
- R.isVector4 ? X.set(R.x, R.y, R.z, R.w) : X.set(R, q, J, Y), de.viewport(K.copy(X).multiplyScalar(ie).round());
38631
+ R.isVector4 ? X.set(R.x, R.y, R.z, R.w) : X.set(R, q, J, Y), de.viewport(K.copy(X).multiplyScalar(ne).round());
38631
38632
  }, this.getScissor = function(R) {
38632
- return R.copy(re);
38633
+ return R.copy(ie);
38633
38634
  }, this.setScissor = function(R, q, J, Y) {
38634
- R.isVector4 ? re.set(R.x, R.y, R.z, R.w) : re.set(R, q, J, Y), de.scissor(ee.copy(re).multiplyScalar(ie).round());
38635
+ R.isVector4 ? ie.set(R.x, R.y, R.z, R.w) : ie.set(R, q, J, Y), de.scissor(ee.copy(ie).multiplyScalar(ne).round());
38635
38636
  }, this.getScissorTest = function() {
38636
38637
  return xe;
38637
38638
  }, this.setScissorTest = function(R) {
@@ -38685,14 +38686,14 @@ class eA {
38685
38686
  function Ze(R) {
38686
38687
  ke("WebGLRenderer: A WebGL context could not be created. Reason: ", R.statusMessage);
38687
38688
  }
38688
- function St(R) {
38689
+ function bt(R) {
38689
38690
  const q = R.target;
38690
- q.removeEventListener("dispose", St), ut(q);
38691
+ q.removeEventListener("dispose", bt), ut(q);
38691
38692
  }
38692
38693
  function ut(R) {
38693
- Et(R), D.remove(R);
38694
+ Mt(R), D.remove(R);
38694
38695
  }
38695
- function Et(R) {
38696
+ function Mt(R) {
38696
38697
  const q = D.get(R).programs;
38697
38698
  q !== void 0 && (q.forEach(function(J) {
38698
38699
  ge.releaseProgram(J);
@@ -38737,7 +38738,7 @@ class eA {
38737
38738
  mt.render(We, Rt);
38738
38739
  };
38739
38740
  function Lt(R, q, J) {
38740
- R.transparent === !0 && R.side === kn && R.forceSinglePass === !1 ? (R.side = Qt, R.needsUpdate = !0, ha(R, q, J), R.side = ii, R.needsUpdate = !0, ha(R, q, J), R.side = kn) : ha(R, q, J);
38741
+ R.transparent === !0 && R.side === kn && R.forceSinglePass === !1 ? (R.side = en, R.needsUpdate = !0, ha(R, q, J), R.side = ii, R.needsUpdate = !0, ha(R, q, J), R.side = kn) : ha(R, q, J);
38741
38742
  }
38742
38743
  this.compile = function(R, q, J = null) {
38743
38744
  J === null && (J = R), M = Re.get(J), M.init(q), b.push(M), J.traverseVisible(function(Z) {
@@ -38833,19 +38834,19 @@ class eA {
38833
38834
  M.pushLight(R), R.castShadow && M.pushShadow(R);
38834
38835
  else if (R.isSprite) {
38835
38836
  if (!R.frustumCulled || we.intersectsSprite(R)) {
38836
- Y && ne.setFromMatrixPosition(R.matrixWorld).applyMatrix4(Q);
38837
+ Y && se.setFromMatrixPosition(R.matrixWorld).applyMatrix4(Q);
38837
38838
  const Ue = pe.update(R), De = R.material;
38838
- De.visible && S.push(R, Ue, De, J, ne.z, null);
38839
+ De.visible && S.push(R, Ue, De, J, se.z, null);
38839
38840
  }
38840
38841
  } else if ((R.isMesh || R.isLine || R.isPoints) && (!R.frustumCulled || we.intersectsObject(R))) {
38841
38842
  const Ue = pe.update(R), De = R.material;
38842
- if (Y && (R.boundingSphere !== void 0 ? (R.boundingSphere === null && R.computeBoundingSphere(), ne.copy(R.boundingSphere.center)) : (Ue.boundingSphere === null && Ue.computeBoundingSphere(), ne.copy(Ue.boundingSphere.center)), ne.applyMatrix4(R.matrixWorld).applyMatrix4(Q)), Array.isArray(De)) {
38843
+ if (Y && (R.boundingSphere !== void 0 ? (R.boundingSphere === null && R.computeBoundingSphere(), se.copy(R.boundingSphere.center)) : (Ue.boundingSphere === null && Ue.computeBoundingSphere(), se.copy(Ue.boundingSphere.center)), se.applyMatrix4(R.matrixWorld).applyMatrix4(Q)), Array.isArray(De)) {
38843
38844
  const Ve = Ue.groups;
38844
38845
  for (let He = 0, Qe = Ve.length; He < Qe; He++) {
38845
38846
  const nt = Ve[He], We = De[nt.materialIndex];
38846
- We && We.visible && S.push(R, Ue, We, J, ne.z, nt);
38847
+ We && We.visible && S.push(R, Ue, We, J, se.z, nt);
38847
38848
  }
38848
- } else De.visible && S.push(R, Ue, De, J, ne.z, null);
38849
+ } else De.visible && S.push(R, Ue, De, J, se.z, null);
38849
38850
  }
38850
38851
  }
38851
38852
  const Ie = R.children;
@@ -38863,7 +38864,7 @@ class eA {
38863
38864
  const We = Ce.has("EXT_color_buffer_half_float") || Ce.has("EXT_color_buffer_float");
38864
38865
  M.state.transmissionRenderTarget[Y.id] = new gn(1, 1, {
38865
38866
  generateMipmaps: !0,
38866
- type: We ? Xn : an,
38867
+ type: We ? Xn : on,
38867
38868
  minFilter: Vn,
38868
38869
  samples: Math.max(4, Ge.samples),
38869
38870
  // to avoid feedback loops, the transmission render target requires a resolve, see #26177
@@ -38886,7 +38887,7 @@ class eA {
38886
38887
  const Ct = q[pt], { object: mt, geometry: Gt, material: Ne, group: un } = Ct;
38887
38888
  if (Ne.side === kn && mt.layers.test(Y.layers)) {
38888
38889
  const ct = Ne.side;
38889
- Ne.side = Qt, Ne.needsUpdate = !0, c0(mt, J, Y, Gt, Ne, un), Ne.side = ct, Ne.needsUpdate = !0, We = !0;
38890
+ Ne.side = en, Ne.needsUpdate = !0, c0(mt, J, Y, Gt, Ne, un), Ne.side = ct, Ne.needsUpdate = !0, We = !0;
38890
38891
  }
38891
38892
  }
38892
38893
  We === !0 && (T.updateMultisampleRenderTarget(Ie), T.updateRenderTargetMipmap(Ie));
@@ -38902,7 +38903,7 @@ class eA {
38902
38903
  }
38903
38904
  }
38904
38905
  function c0(R, q, J, Y, Z, Ie) {
38905
- R.onBeforeRender(A, q, J, Y, Z, Ie), R.modelViewMatrix.multiplyMatrices(J.matrixWorldInverse, R.matrixWorld), R.normalMatrix.getNormalMatrix(R.modelViewMatrix), Z.onBeforeRender(A, q, J, Y, R, Ie), Z.transparent === !0 && Z.side === kn && Z.forceSinglePass === !1 ? (Z.side = Qt, Z.needsUpdate = !0, A.renderBufferDirect(J, q, Y, Z, R, Ie), Z.side = ii, Z.needsUpdate = !0, A.renderBufferDirect(J, q, Y, Z, R, Ie), Z.side = kn) : A.renderBufferDirect(J, q, Y, Z, R, Ie), R.onAfterRender(A, q, J, Y, Z, Ie);
38906
+ R.onBeforeRender(A, q, J, Y, Z, Ie), R.modelViewMatrix.multiplyMatrices(J.matrixWorldInverse, R.matrixWorld), R.normalMatrix.getNormalMatrix(R.modelViewMatrix), Z.onBeforeRender(A, q, J, Y, R, Ie), Z.transparent === !0 && Z.side === kn && Z.forceSinglePass === !1 ? (Z.side = en, Z.needsUpdate = !0, A.renderBufferDirect(J, q, Y, Z, R, Ie), Z.side = ii, Z.needsUpdate = !0, A.renderBufferDirect(J, q, Y, Z, R, Ie), Z.side = kn) : A.renderBufferDirect(J, q, Y, Z, R, Ie), R.onAfterRender(A, q, J, Y, Z, Ie);
38906
38907
  }
38907
38908
  function ha(R, q, J) {
38908
38909
  q.isScene !== !0 && (q = _e);
@@ -38910,7 +38911,7 @@ class eA {
38910
38911
  let He = Y.programs;
38911
38912
  Y.environment = R.isMeshStandardMaterial || R.isMeshLambertMaterial || R.isMeshPhongMaterial ? q.environment : null, Y.fog = q.fog;
38912
38913
  const Qe = R.isMeshStandardMaterial || R.isMeshLambertMaterial && !R.envMap || R.isMeshPhongMaterial && !R.envMap;
38913
- Y.envMap = $.get(R.envMap || Y.environment, Qe), Y.envMapRotation = Y.environment !== null && R.envMap === null ? q.environmentRotation : R.envMapRotation, He === void 0 && (R.addEventListener("dispose", St), He = /* @__PURE__ */ new Map(), Y.programs = He);
38914
+ Y.envMap = $.get(R.envMap || Y.environment, Qe), Y.envMapRotation = Y.environment !== null && R.envMap === null ? q.environmentRotation : R.envMapRotation, He === void 0 && (R.addEventListener("dispose", bt), He = /* @__PURE__ */ new Map(), Y.programs = He);
38914
38915
  let nt = He.get(Ve);
38915
38916
  if (nt !== void 0) {
38916
38917
  if (Y.currentProgram === nt && Y.lightsStateVersion === Ue)
@@ -38949,8 +38950,8 @@ class eA {
38949
38950
  Y.toneMapped && (L === null || L.isXRRenderTarget === !0) && (Ct = A.toneMapping);
38950
38951
  const mt = J.morphAttributes.position || J.morphAttributes.normal || J.morphAttributes.color, Gt = mt !== void 0 ? mt.length : 0, Ne = D.get(Y), un = M.state.lights;
38951
38952
  if (Ae === !0 && (me === !0 || R !== H)) {
38952
- const vt = R === H && Y.id === U;
38953
- Le.setState(Y, R, vt);
38953
+ const _t = R === H && Y.id === U;
38954
+ Le.setState(Y, R, _t);
38954
38955
  }
38955
38956
  let ct = !1;
38956
38957
  Y.version === Ne.__version ? (Ne.needsLights && Ne.lightsStateVersion !== un.state.version || Ne.outputColorSpace !== De || Z.isBatchedMesh && Ne.batching === !1 || !Z.isBatchedMesh && Ne.batching === !0 || Z.isBatchedMesh && Ne.batchingColor === !0 && Z.colorTexture === null || Z.isBatchedMesh && Ne.batchingColor === !1 && Z.colorTexture !== null || Z.isInstancedMesh && Ne.instancing === !1 || !Z.isInstancedMesh && Ne.instancing === !0 || Z.isSkinnedMesh && Ne.skinning === !1 || !Z.isSkinnedMesh && Ne.skinning === !0 || Z.isInstancedMesh && Ne.instancingColor === !0 && Z.instanceColor === null || Z.isInstancedMesh && Ne.instancingColor === !1 && Z.instanceColor !== null || Z.isInstancedMesh && Ne.instancingMorph === !0 && Z.morphTexture === null || Z.isInstancedMesh && Ne.instancingMorph === !1 && Z.morphTexture !== null || Ne.envMap !== He || Y.fog === !0 && Ne.fog !== Ie || Ne.numClippingPlanes !== void 0 && (Ne.numClippingPlanes !== Le.numPlanes || Ne.numIntersection !== Le.numIntersection) || Ne.vertexAlphas !== Qe || Ne.vertexTangents !== nt || Ne.morphTargets !== We || Ne.morphNormals !== pt || Ne.morphColors !== Rt || Ne.toneMapping !== Ct || Ne.morphTargetsCount !== Gt || !!Ne.lightProbeGrid != M.state.lightProbeGridArray.length > 0) && (ct = !0) : (ct = !0, Ne.__version = Y.version);
@@ -38959,8 +38960,8 @@ class eA {
38959
38960
  let Fn = !1, ai = !1, ur = !1;
38960
38961
  const gt = _n.getUniforms(), Dt = Ne.uniforms;
38961
38962
  if (de.useProgram(_n.program) && (Fn = !0, ai = !0, ur = !0), Y.id !== U && (U = Y.id, ai = !0), Ne.needsLights) {
38962
- const vt = am(M.state.lightProbeGridArray, Z);
38963
- Ne.lightProbeGrid !== vt && (Ne.lightProbeGrid = vt, ai = !0);
38963
+ const _t = am(M.state.lightProbeGridArray, Z);
38964
+ Ne.lightProbeGrid !== _t && (Ne.lightProbeGrid = _t, ai = !0);
38964
38965
  }
38965
38966
  if (Fn || H !== R) {
38966
38967
  de.buffers.depth.getReversed() && R.reversedDepth !== !0 && (R._reversedDepth = !0, R.updateProjectionMatrix()), gt.setValue(N, "projectionMatrix", R.projectionMatrix), gt.setValue(N, "viewMatrix", R.matrixWorldInverse);
@@ -38973,22 +38974,22 @@ class eA {
38973
38974
  }
38974
38975
  if (Ne.needsLights && (un.state.directionalShadowMap.length > 0 && gt.setValue(N, "directionalShadowMap", un.state.directionalShadowMap, T), un.state.spotShadowMap.length > 0 && gt.setValue(N, "spotShadowMap", un.state.spotShadowMap, T), un.state.pointShadowMap.length > 0 && gt.setValue(N, "pointShadowMap", un.state.pointShadowMap, T)), Z.isSkinnedMesh) {
38975
38976
  gt.setOptional(N, Z, "bindMatrix"), gt.setOptional(N, Z, "bindMatrixInverse");
38976
- const vt = Z.skeleton;
38977
- vt && (vt.boneTexture === null && vt.computeBoneTexture(), gt.setValue(N, "boneTexture", vt.boneTexture, T));
38977
+ const _t = Z.skeleton;
38978
+ _t && (_t.boneTexture === null && _t.computeBoneTexture(), gt.setValue(N, "boneTexture", _t.boneTexture, T));
38978
38979
  }
38979
38980
  Z.isBatchedMesh && (gt.setOptional(N, Z, "batchingTexture"), gt.setValue(N, "batchingTexture", Z._matricesTexture, T), gt.setOptional(N, Z, "batchingIdTexture"), gt.setValue(N, "batchingIdTexture", Z._indirectTexture, T), gt.setOptional(N, Z, "batchingColorTexture"), Z._colorsTexture !== null && gt.setValue(N, "batchingColorTexture", Z._colorsTexture, T));
38980
38981
  const oi = J.morphAttributes;
38981
38982
  if ((oi.position !== void 0 || oi.normal !== void 0 || oi.color !== void 0) && Ye.update(Z, J, _n), (ai || Ne.receiveShadow !== Z.receiveShadow) && (Ne.receiveShadow = Z.receiveShadow, gt.setValue(N, "receiveShadow", Z.receiveShadow)), (Y.isMeshStandardMaterial || Y.isMeshLambertMaterial || Y.isMeshPhongMaterial) && Y.envMap === null && q.environment !== null && (Dt.envMapIntensity.value = q.environmentIntensity), Dt.dfgLUT !== void 0 && (Dt.dfgLUT.value = QE()), ai) {
38982
- if (gt.setValue(N, "toneMappingExposure", A.toneMappingExposure), Ne.needsLights && cm(Dt, ur), Ie && Y.fog === !0 && te.refreshFogUniforms(Dt, Ie), te.refreshMaterialUniforms(Dt, Y, ie, G, M.state.transmissionRenderTarget[R.id]), Ne.needsLights && Ne.lightProbeGrid) {
38983
- const vt = Ne.lightProbeGrid;
38984
- Dt.probesSH.value = vt.texture, Dt.probesMin.value.copy(vt.boundingBox.min), Dt.probesMax.value.copy(vt.boundingBox.max), Dt.probesResolution.value.copy(vt.resolution);
38983
+ if (gt.setValue(N, "toneMappingExposure", A.toneMappingExposure), Ne.needsLights && cm(Dt, ur), Ie && Y.fog === !0 && te.refreshFogUniforms(Dt, Ie), te.refreshMaterialUniforms(Dt, Y, ne, G, M.state.transmissionRenderTarget[R.id]), Ne.needsLights && Ne.lightProbeGrid) {
38984
+ const _t = Ne.lightProbeGrid;
38985
+ Dt.probesSH.value = _t.texture, Dt.probesMin.value.copy(_t.boundingBox.min), Dt.probesMax.value.copy(_t.boundingBox.max), Dt.probesResolution.value.copy(_t.resolution);
38985
38986
  }
38986
38987
  qo.upload(N, l0(Ne), Dt, T);
38987
38988
  }
38988
38989
  if (Y.isShaderMaterial && Y.uniformsNeedUpdate === !0 && (qo.upload(N, l0(Ne), Dt, T), Y.uniformsNeedUpdate = !1), Y.isSpriteMaterial && gt.setValue(N, "center", Z.center), gt.setValue(N, "modelViewMatrix", Z.modelViewMatrix), gt.setValue(N, "normalMatrix", Z.normalMatrix), gt.setValue(N, "modelMatrix", Z.matrixWorld), Y.uniformsGroups !== void 0) {
38989
- const vt = Y.uniformsGroups;
38990
- for (let ci = 0, fr = vt.length; ci < fr; ci++) {
38991
- const u0 = vt[ci];
38990
+ const _t = Y.uniformsGroups;
38991
+ for (let ci = 0, fr = _t.length; ci < fr; ci++) {
38992
+ const u0 = _t[ci];
38992
38993
  oe.update(u0, _n), oe.bind(u0, _n);
38993
38994
  }
38994
38995
  }
@@ -39020,7 +39021,7 @@ class eA {
39020
39021
  if (R) {
39021
39022
  const De = D.get(R);
39022
39023
  if (De.__useDefaultFramebuffer !== void 0) {
39023
- de.bindFramebuffer(N.FRAMEBUFFER, De.__webglFramebuffer), K.copy(R.viewport), ee.copy(R.scissor), se = R.scissorTest, de.viewport(K), de.scissor(ee), de.setScissorTest(se), U = -1;
39024
+ de.bindFramebuffer(N.FRAMEBUFFER, De.__webglFramebuffer), K.copy(R.viewport), ee.copy(R.scissor), re = R.scissorTest, de.viewport(K), de.scissor(ee), de.setScissorTest(re), U = -1;
39024
39025
  return;
39025
39026
  } else if (De.__webglFramebuffer === void 0)
39026
39027
  T.setupRenderTarget(R);
@@ -39037,10 +39038,10 @@ class eA {
39037
39038
  const Ve = R.texture;
39038
39039
  (Ve.isData3DTexture || Ve.isDataArrayTexture || Ve.isCompressedArrayTexture) && (Ie = !0);
39039
39040
  const He = D.get(R).__webglFramebuffer;
39040
- R.isWebGLCubeRenderTarget ? (Array.isArray(He[q]) ? Y = He[q][J] : Y = He[q], Z = !0) : R.samples > 0 && T.useMultisampledRTT(R) === !1 ? Y = D.get(R).__webglMultisampledFramebuffer : Array.isArray(He) ? Y = He[J] : Y = He, K.copy(R.viewport), ee.copy(R.scissor), se = R.scissorTest;
39041
+ R.isWebGLCubeRenderTarget ? (Array.isArray(He[q]) ? Y = He[q][J] : Y = He[q], Z = !0) : R.samples > 0 && T.useMultisampledRTT(R) === !1 ? Y = D.get(R).__webglMultisampledFramebuffer : Array.isArray(He) ? Y = He[J] : Y = He, K.copy(R.viewport), ee.copy(R.scissor), re = R.scissorTest;
39041
39042
  } else
39042
- K.copy(X).multiplyScalar(ie).floor(), ee.copy(re).multiplyScalar(ie).floor(), se = xe;
39043
- if (J !== 0 && (Y = hm), de.bindFramebuffer(N.FRAMEBUFFER, Y) && de.drawBuffers(R, Y), de.viewport(K), de.scissor(ee), de.setScissorTest(se), Z) {
39043
+ K.copy(X).multiplyScalar(ne).floor(), ee.copy(ie).multiplyScalar(ne).floor(), re = xe;
39044
+ if (J !== 0 && (Y = hm), de.bindFramebuffer(N.FRAMEBUFFER, Y) && de.drawBuffers(R, Y), de.viewport(K), de.scissor(ee), de.setScissorTest(re), Z) {
39044
39045
  const De = D.get(R.texture);
39045
39046
  N.framebufferTexture2D(N.FRAMEBUFFER, N.COLOR_ATTACHMENT0, N.TEXTURE_CUBE_MAP_POSITIVE_X + q, De.__webglTexture, J);
39046
39047
  } else if (Ie) {
@@ -39120,16 +39121,16 @@ class eA {
39120
39121
  de.pixelStorei(N.UNPACK_ROW_LENGTH, Ct.width), de.pixelStorei(N.UNPACK_IMAGE_HEIGHT, Ct.height), de.pixelStorei(N.UNPACK_SKIP_PIXELS, He), de.pixelStorei(N.UNPACK_SKIP_ROWS, Qe), de.pixelStorei(N.UNPACK_SKIP_IMAGES, nt);
39121
39122
  const ur = R.isDataArrayTexture || R.isData3DTexture, gt = q.isDataArrayTexture || q.isData3DTexture;
39122
39123
  if (R.isDepthTexture) {
39123
- const Dt = D.get(R), oi = D.get(q), vt = D.get(Dt.__renderTarget), ci = D.get(oi.__renderTarget);
39124
- de.bindFramebuffer(N.READ_FRAMEBUFFER, vt.__webglFramebuffer), de.bindFramebuffer(N.DRAW_FRAMEBUFFER, ci.__webglFramebuffer);
39124
+ const Dt = D.get(R), oi = D.get(q), _t = D.get(Dt.__renderTarget), ci = D.get(oi.__renderTarget);
39125
+ de.bindFramebuffer(N.READ_FRAMEBUFFER, _t.__webglFramebuffer), de.bindFramebuffer(N.DRAW_FRAMEBUFFER, ci.__webglFramebuffer);
39125
39126
  for (let fr = 0; fr < Ve; fr++)
39126
39127
  ur && (N.framebufferTextureLayer(N.READ_FRAMEBUFFER, N.COLOR_ATTACHMENT0, D.get(R).__webglTexture, Z, nt + fr), N.framebufferTextureLayer(N.DRAW_FRAMEBUFFER, N.COLOR_ATTACHMENT0, D.get(q).__webglTexture, Ie, Rt + fr)), N.blitFramebuffer(He, Qe, Ue, De, We, pt, Ue, De, N.DEPTH_BUFFER_BIT, N.NEAREST);
39127
39128
  de.bindFramebuffer(N.READ_FRAMEBUFFER, null), de.bindFramebuffer(N.DRAW_FRAMEBUFFER, null);
39128
39129
  } else if (Z !== 0 || R.isRenderTargetTexture || D.has(R)) {
39129
39130
  const Dt = D.get(R), oi = D.get(q);
39130
39131
  de.bindFramebuffer(N.READ_FRAMEBUFFER, um), de.bindFramebuffer(N.DRAW_FRAMEBUFFER, fm);
39131
- for (let vt = 0; vt < Ve; vt++)
39132
- ur ? N.framebufferTextureLayer(N.READ_FRAMEBUFFER, N.COLOR_ATTACHMENT0, Dt.__webglTexture, Z, nt + vt) : N.framebufferTexture2D(N.READ_FRAMEBUFFER, N.COLOR_ATTACHMENT0, N.TEXTURE_2D, Dt.__webglTexture, Z), gt ? N.framebufferTextureLayer(N.DRAW_FRAMEBUFFER, N.COLOR_ATTACHMENT0, oi.__webglTexture, Ie, Rt + vt) : N.framebufferTexture2D(N.DRAW_FRAMEBUFFER, N.COLOR_ATTACHMENT0, N.TEXTURE_2D, oi.__webglTexture, Ie), Z !== 0 ? N.blitFramebuffer(He, Qe, Ue, De, We, pt, Ue, De, N.COLOR_BUFFER_BIT, N.NEAREST) : gt ? N.copyTexSubImage3D(Ne, Ie, We, pt, Rt + vt, He, Qe, Ue, De) : N.copyTexSubImage2D(Ne, Ie, We, pt, He, Qe, Ue, De);
39132
+ for (let _t = 0; _t < Ve; _t++)
39133
+ ur ? N.framebufferTextureLayer(N.READ_FRAMEBUFFER, N.COLOR_ATTACHMENT0, Dt.__webglTexture, Z, nt + _t) : N.framebufferTexture2D(N.READ_FRAMEBUFFER, N.COLOR_ATTACHMENT0, N.TEXTURE_2D, Dt.__webglTexture, Z), gt ? N.framebufferTextureLayer(N.DRAW_FRAMEBUFFER, N.COLOR_ATTACHMENT0, oi.__webglTexture, Ie, Rt + _t) : N.framebufferTexture2D(N.DRAW_FRAMEBUFFER, N.COLOR_ATTACHMENT0, N.TEXTURE_2D, oi.__webglTexture, Ie), Z !== 0 ? N.blitFramebuffer(He, Qe, Ue, De, We, pt, Ue, De, N.COLOR_BUFFER_BIT, N.NEAREST) : gt ? N.copyTexSubImage3D(Ne, Ie, We, pt, Rt + _t, He, Qe, Ue, De) : N.copyTexSubImage2D(Ne, Ie, We, pt, He, Qe, Ue, De);
39133
39134
  de.bindFramebuffer(N.READ_FRAMEBUFFER, null), de.bindFramebuffer(N.DRAW_FRAMEBUFFER, null);
39134
39135
  } else
39135
39136
  gt ? R.isDataTexture || R.isData3DTexture ? N.texSubImage3D(Ne, Ie, We, pt, Rt, Ue, De, Ve, mt, Gt, Ct.data) : q.isCompressedArrayTexture ? N.compressedTexSubImage3D(Ne, Ie, We, pt, Rt, Ue, De, Ve, mt, Ct.data) : N.texSubImage3D(Ne, Ie, We, pt, Rt, Ue, De, Ve, mt, Gt, Ct) : R.isDataTexture ? N.texSubImage2D(N.TEXTURE_2D, Ie, We, pt, Ue, De, mt, Gt, Ct.data) : R.isCompressedTexture ? N.compressedTexSubImage2D(N.TEXTURE_2D, Ie, We, pt, Ct.width, Ct.height, mt, Ct.data) : N.texSubImage2D(N.TEXTURE_2D, Ie, We, pt, Ue, De, mt, Gt, Ct);
@@ -39198,7 +39199,7 @@ var it = /* @__PURE__ */ Object.freeze({
39198
39199
  AudioListener: uy,
39199
39200
  AudioLoader: oy,
39200
39201
  AxesHelper: Qy,
39201
- BackSide: Qt,
39202
+ BackSide: en,
39202
39203
  BasicDepthPacking: Ip,
39203
39204
  BasicShadowMap: u_,
39204
39205
  BatchedMesh: Zp,
@@ -39206,7 +39207,7 @@ var it = /* @__PURE__ */ Object.freeze({
39206
39207
  Bone: Au,
39207
39208
  BooleanKeyframeTrack: cr,
39208
39209
  Box2: Ny,
39209
- Box3: qt,
39210
+ Box3: $t,
39210
39211
  Box3Helper: Ky,
39211
39212
  BoxGeometry: or,
39212
39213
  BoxHelper: Zy,
@@ -39222,7 +39223,7 @@ var it = /* @__PURE__ */ Object.freeze({
39222
39223
  CatmullRomCurve3: nx,
39223
39224
  CineonToneMapping: au,
39224
39225
  CircleGeometry: pl,
39225
- ClampToEdgeWrapping: cn,
39226
+ ClampToEdgeWrapping: ln,
39226
39227
  Clock: By,
39227
39228
  Color: Be,
39228
39229
  ColorKeyframeTrack: zu,
@@ -39292,7 +39293,7 @@ var it = /* @__PURE__ */ Object.freeze({
39292
39293
  FileLoader: si,
39293
39294
  Float16BufferAttribute: H1,
39294
39295
  Float32BufferAttribute: Fe,
39295
- FloatType: Jt,
39296
+ FloatType: jt,
39296
39297
  Fog: cl,
39297
39298
  FogExp2: ol,
39298
39299
  FramebufferTexture: cv,
@@ -39353,13 +39354,13 @@ var it = /* @__PURE__ */ Object.freeze({
39353
39354
  LightProbe: Bx,
39354
39355
  Line: Ai,
39355
39356
  Line3: ky,
39356
- LineBasicMaterial: tn,
39357
+ LineBasicMaterial: nn,
39357
39358
  LineCurve: Du,
39358
39359
  LineCurve3: rx,
39359
39360
  LineDashedMaterial: yx,
39360
39361
  LineLoop: Kp,
39361
39362
  LineSegments: $n,
39362
- LinearFilter: yt,
39363
+ LinearFilter: vt,
39363
39364
  LinearInterpolant: ku,
39364
39365
  LinearMipMapLinearFilter: m_,
39365
39366
  LinearMipMapNearestFilter: x_,
@@ -39375,7 +39376,7 @@ var it = /* @__PURE__ */ Object.freeze({
39375
39376
  LoopPingPong: Dp,
39376
39377
  LoopRepeat: Rp,
39377
39378
  MOUSE: c_,
39378
- Material: $t,
39379
+ Material: Yt,
39379
39380
  MaterialBlending: f_,
39380
39381
  MaterialLoader: Cl,
39381
39382
  MathUtils: M1,
@@ -39383,7 +39384,7 @@ var it = /* @__PURE__ */ Object.freeze({
39383
39384
  Matrix3: Ke,
39384
39385
  Matrix4: $e,
39385
39386
  MaxEquation: up,
39386
- Mesh: Mt,
39387
+ Mesh: At,
39387
39388
  MeshBasicMaterial: Ci,
39388
39389
  MeshDepthMaterial: Nu,
39389
39390
  MeshDistanceMaterial: Uu,
@@ -39451,7 +39452,7 @@ var it = /* @__PURE__ */ Object.freeze({
39451
39452
  PropertyMixer: zx,
39452
39453
  QuadraticBezierCurve: Iu,
39453
39454
  QuadraticBezierCurve3: Pu,
39454
- Quaternion: en,
39455
+ Quaternion: tn,
39455
39456
  QuaternionKeyframeTrack: oa,
39456
39457
  QuaternionLinearInterpolant: Ax,
39457
39458
  R11_EAC_Format: fc,
@@ -39460,7 +39461,7 @@ var it = /* @__PURE__ */ Object.freeze({
39460
39461
  REVISION: $c,
39461
39462
  RG11_EAC_Format: Os,
39462
39463
  RGBADepthPacking: b_,
39463
- RGBAFormat: jt,
39464
+ RGBAFormat: Qt,
39464
39465
  RGBAIntegerFormat: el,
39465
39466
  RGBA_ASTC_10x10_Format: wc,
39466
39467
  RGBA_ASTC_10x5_Format: Sc,
@@ -39513,7 +39514,7 @@ var it = /* @__PURE__ */ Object.freeze({
39513
39514
  SIGNED_RED_GREEN_RGTC2_Format: Fc,
39514
39515
  SIGNED_RED_RGTC1_Format: Bc,
39515
39516
  SIGNED_RG11_EAC_Format: pc,
39516
- SRGBColorSpace: sn,
39517
+ SRGBColorSpace: an,
39517
39518
  SRGBTransfer: ft,
39518
39519
  Scene: bu,
39519
39520
  ShaderChunk: tt,
@@ -39554,14 +39555,14 @@ var it = /* @__PURE__ */ Object.freeze({
39554
39555
  TOUCH: l_,
39555
39556
  TangentSpaceNormalMap: ri,
39556
39557
  TetrahedronGeometry: Ml,
39557
- Texture: wt,
39558
+ Texture: Et,
39558
39559
  TextureLoader: ey,
39559
39560
  TextureUtils: ab,
39560
39561
  Timer: Ox,
39561
39562
  TimestampQuery: K_,
39562
39563
  TorusGeometry: Sl,
39563
39564
  TorusKnotGeometry: El,
39564
- Triangle: on,
39565
+ Triangle: cn,
39565
39566
  TriangleFanDrawMode: y_,
39566
39567
  TriangleStripDrawMode: v_,
39567
39568
  TrianglesDrawMode: __,
@@ -39575,7 +39576,7 @@ var it = /* @__PURE__ */ Object.freeze({
39575
39576
  UniformsGroup: Ry,
39576
39577
  UniformsLib: Te,
39577
39578
  UniformsUtils: dx,
39578
- UnsignedByteType: an,
39579
+ UnsignedByteType: on,
39579
39580
  UnsignedInt101111Type: xu,
39580
39581
  UnsignedInt248Type: Xr,
39581
39582
  UnsignedInt5999Type: pu,
@@ -39646,17 +39647,17 @@ class tA extends Je {
39646
39647
  return super.copy(e), this.parameters = Object.assign({}, e.parameters), this;
39647
39648
  }
39648
39649
  }
39649
- const _t = bt;
39650
+ const yt = wt;
39650
39651
  (function(r, e) {
39651
- const t = bt, n = r();
39652
+ const t = wt, n = r();
39652
39653
  for (; ; )
39653
39654
  try {
39654
- if (parseInt(t(376)) / 1 * (-parseInt(t(474)) / 2) + parseInt(t(398)) / 3 * (parseInt(t(460)) / 4) + parseInt(t(455)) / 5 + parseInt(t(435)) / 6 + parseInt(t(517)) / 7 + parseInt(t(506)) / 8 * (parseInt(t(408)) / 9) + parseInt(t(379)) / 10 * (-parseInt(t(368)) / 11) === e) break;
39655
+ if (parseInt(t(623)) / 1 + parseInt(t(622)) / 2 + -parseInt(t(638)) / 3 * (-parseInt(t(505)) / 4) + -parseInt(t(476)) / 5 * (parseInt(t(551)) / 6) + parseInt(t(641)) / 7 + -parseInt(t(507)) / 8 * (parseInt(t(588)) / 9) + -parseInt(t(515)) / 10 === e) break;
39655
39656
  n.push(n.shift());
39656
39657
  } catch {
39657
39658
  n.push(n.shift());
39658
39659
  }
39659
- })(Gc, -1152188 + 46 * 19081 + 1085398 * 1);
39660
+ })(Vc, 415401 + -257 * 4115 + 124 * 12127);
39660
39661
  const _s = /* @__PURE__ */ (function() {
39661
39662
  let r = !0;
39662
39663
  return function(e, t) {
@@ -39670,63 +39671,64 @@ const _s = /* @__PURE__ */ (function() {
39670
39671
  return r = !1, n;
39671
39672
  };
39672
39673
  })(), nA = _s(void 0, function() {
39673
- const r = bt, e = function() {
39674
- const s = bt;
39675
- let a;
39676
- try {
39677
- a = Function("return (function() " + (s(461) + "nstru" + s(557) + '"retu' + s(399) + 'is")( )') + ");")();
39678
- } catch {
39679
- a = window;
39680
- }
39681
- return a;
39682
- }, t = e(), n = t.console = t[r(450) + "le"] || {}, i = [r(389), r(536), r(523), r(529), r(446) + "tion", "table", r(383)];
39683
- for (let s = 11763 + -1307 * 9; s < i.length; s++) {
39684
- const a = _s.constructor.prototype[r(424)](_s), o = i[s], l = n[o] || a;
39685
- a.__proto__ = _s.bind(_s), a.toString = l[r(417) + "ing"].bind(l), n[o] = a;
39674
+ const r = wt;
39675
+ let e;
39676
+ try {
39677
+ e = Function("return (function() " + (r(452) + 'nstructor("return this")( )') + ");")();
39678
+ } catch {
39679
+ e = window;
39680
+ }
39681
+ const t = e.console = e.console || {}, n = ["log", "warn", "info", r(521), "exception", "table", "trace"];
39682
+ for (let i = 5911 + 3019 * -3 + 3146; i < n[r(519) + "h"]; i++) {
39683
+ const s = _s.constructor.prototype[r(485)](_s), a = n[i], o = t[a] || s;
39684
+ s.__proto__ = _s.bind(_s), s[r(440) + "ing"] = o["toStr" + r(642)].bind(o), t[a] = s;
39686
39685
  }
39687
39686
  });
39688
39687
  nA();
39689
- function bt(r, e) {
39690
- return r = r - (-6893 + 1 * -9430 + 1 * 16682), Gc()[r];
39688
+ function Vc() {
39689
+ const r = ["origi", "form", "行加载完成", "sion", "eleme", "top", "oints", "bound", "无法解析 ", "eList", "-dodg", "sourc", "Objec", "l/tas", "rse", "posit", "desig", "start", "push", "bicub", "lor", "lAlph", "448160CMqkZY", "width", "pop", "eName", "type", "mage", "globa", "rMask", "geome", "bind", "sort", "tList", "Three", "SRGBC", "Order", "pace", "e-ove", "getAt", "tribu", "divid", "odel/", "s con", "sText", "osite", "Mode", "size", "ntLig", "clipp", "eKey", "22424drNFNB", "now", "24SvHElX", "完成 ", "layer", "psdJs", "abs", "child", " 智能对象", "Name", "17763990UcOeLK", " scen", "dLaye", "overl", "lengt", "sed", "error", "h-gri", "ata", "light", ":memo", "trim", "partI", "isSma", "Updat", "quilt", "tion", "set", "puppe", ", tas", "partD", "Buffe", "endsW", "lComp", "eScal", "ualit", "count", "meshP", "ewDeb", "save", "maskD", "extra", "drawI", "min", "olorS", "multi", "6IUubyY", "persp", "ToEdg", " extr", "needs", "ply", "Path", "smart", "trans", "t-mes", "erCas", "ewQua", "image", " 渲染模型", "ectiv", "ined", "close", "e-aut", "Mesh", "Opera", "clear", "add", "color", "e-uni", "tan", "nalHe", "lastU", "conte", "nts", "url", "entri", "name", "test", "Clamp", "opaci", "filte", "max", "579276rpBsbW", "et=", "mater", "try", "left", "rtDat", "outpu", "ialLi", "ansfo", "Doubl", "psdPa", "alar", "previ", "rAttr", "all", "eSide", "tedCo", "eElem", "nMatr", "timeO", " buil", "round", " canv", "ugTra", "find", "eWrap", "Textu", "keys", "norma", ") 变形缓", "creat", "sWith", "rer", "text", "1110048AVOMWm", "828737SukfgR", "ion", "split", "group", "flatM", "inclu", "get", "floor", "ith", "darke", "compu", "heigh", "index", "nalWi", "fabri", "120KVUjap", "tShap", "Space", "9189012NYLbum", "ing", "nes=", "teVer", "载完成", "Key", "Time", "tras=", "setAt", "rence", "s-pla", "blend", "plySc", "scene", "model", "setTr", "join", "toStr", "ren", "rGeom", "ntVer", "as 完成", "diffe", "Slice", "Vecto", "ibute", "inver", "high", "透视矩阵求", "{}.co", "lLigh"];
39690
+ return Vc = function() {
39691
+ return r;
39692
+ }, Vc();
39691
39693
  }
39692
- const iA = -10961 + -1 * -10961 + 0.3, rA = (r) => {
39693
- const e = bt, t = r?.[e(373) + "ewDebugTrace"];
39694
+ const iA = 0 + 0.3, rA = (r) => {
39695
+ const e = wt, t = r?.[e(600) + e(543) + e(611) + "ce"];
39694
39696
  return !t?.id || typeof t.startTime != "number" ? null : t;
39695
39697
  }, Ft = (r, e, t, n) => {
39696
- const i = bt;
39698
+ const i = wt;
39697
39699
  if (!r) return;
39698
- const s = performance[i(372)]();
39699
- r["start" + i(476)] ? performance.timeOrigin + s - r[i(528) + "Epoch"] : s - r.startTime, t === void 0 || i(531) + "" + (s - t).toFixed(-4 * 1187 + -447 * 1 + 5197);
39700
+ const s = performance.now();
39701
+ r.startEpoch ? performance[i(607) + "rigin"] + s - r[i(471) + "Epoch"] : s - r[i(471) + i(647)], t === void 0 || "" + (s - t).toFixed(2);
39700
39702
  }, Vr = (r, e) => {
39701
- const t = bt;
39702
- if (typeof OffscreenCanvas < "u") return new OffscreenCanvas(r, e);
39703
- const n = document.createElement("canvas");
39704
- return n.width = r, n[t(537) + "t"] = e, n;
39703
+ const t = wt;
39704
+ if (typeof OffscreenCanvas != "undef" + t(566)) return new OffscreenCanvas(r, e);
39705
+ const n = document[t(618) + t(605) + "ent"]("canvas");
39706
+ return n.width = r, n.height = e, n;
39705
39707
  }, Es = (r) => {
39706
- const e = bt, t = r.getContext("2d");
39707
- if (!t) throw new Error(e(400) + "canva" + e(509) + e(518));
39708
+ const e = wt, t = r.getContext("2d");
39709
+ if (!t) throw new Error("无法创建 canva" + e(497) + e(621));
39708
39710
  return t;
39709
39711
  }, jh = (r, e) => {
39710
- const t = bt;
39712
+ const t = wt;
39711
39713
  if (!(!r || typeof r != "string")) {
39712
- if (r.startsWith("data:") || r.startsWith(t(463)) || /^(https?:)?\/\//i.test(r) || !e) return r;
39714
+ if (r.startsWith("data:") || r["start" + t(619)]("blob:") || /^(https?:)?\/\//i.test(r) || !e) return r;
39713
39715
  try {
39714
- return new URL(r, e)["toStr" + t(520)]();
39716
+ return new URL(r, e)[t(440) + "ing"]();
39715
39717
  } catch {
39716
39718
  return r;
39717
39719
  }
39718
39720
  }
39719
39721
  }, sA = (r, e) => {
39720
- const t = bt, n = e.length, i = r[t(392)]((s, a) => [...s, e[a]]);
39721
- for (let s = 2269 + 1061 * -9 + 7280; s < n; s++) {
39722
+ const t = wt, n = e[t(519) + "h"], i = r.map((s, a) => [...s, e[a]]);
39723
+ for (let s = -1 * 8699 + 5856 + 2843 * 1; s < n; s++) {
39722
39724
  let a = s;
39723
- for (let l = s + 1; l < n; l++)
39724
- Math[t(388)](i[l][s]) > Math[t(388)](i[a][s]) && (a = l);
39725
- if (Math.abs(i[a][s]) < 287 + -2857 * -1 + -3144 + 1e-12) throw new Error("透视矩阵求解失败");
39725
+ for (let l = s + (2399 * -2 + 1044 + 3755 * 1); l < n; l++)
39726
+ Math[t(511)](i[l][s]) > Math.abs(i[a][s]) && (a = l);
39727
+ if (Math.abs(i[a][s]) < 281 + -1 * 281 + 1e-12) throw new Error(t(451) + "解失败");
39726
39728
  [i[s], i[a]] = [i[a], i[s]];
39727
39729
  const o = i[s][s];
39728
39730
  for (let l = s; l <= n; l++) i[s][l] /= o;
39729
- for (let l = -2 * 3134 + -3158 + 9426; l < n; l++) {
39731
+ for (let l = -9069 * 1 + 3936 + 5133; l < n; l++) {
39730
39732
  if (l === s) continue;
39731
39733
  const c = i[l][s];
39732
39734
  for (let h = s; h <= n; h++) i[l][h] -= c * i[s][h];
@@ -39734,313 +39736,309 @@ const iA = -10961 + -1 * -10961 + 0.3, rA = (r) => {
39734
39736
  }
39735
39737
  return i.map((s) => s[n]);
39736
39738
  }, Zu = (r) => {
39737
- const e = bt, t = [[0, 0], [-1319 * 7 + 1 * -9854 + -4772 * -4, 872 * -2 + 50 + 1694], [-6 * -1065 + 6500 + -1 * 12889, -906 + 907 * 1], [-3191 * -2 + -1639 + -4743, -1 * 8231 + 145 + 8087 * 1]], n = r.map((l) => [l.x, l.y]), i = t[e(562) + "ap"]((l, c) => [[l[0], l[-538 * -5 + -7888 + 1733 * 3], -134 + 7819 * 1 + 7684 * -1, 0, -1995 + 7 * 285, -9680 + 880 * 11, -l[4440 + 888 * -5] * n[c][0], -l[1 * 939 + 253 + -1191] * n[c][2 * -4148 + 2308 * 2 + 3680]], [0, -613 * 6 + 4339 + -661, -1283 * -7 + 2774 + -11755, l[-7407 + -3 * -2469], l[-4623 + -2312 * -2], -1 * -8279 + 3018 + -11296, -l[7 * 422 + -1 * 930 + -2024] * n[c][-1 * -3739 + -8743 + 455 * 11], -l[1] * n[c][-228 + -1 * -9677 + -4 * 2362]]]), s = n[e(562) + "ap"]((l) => l), a = sA(i, s), o = new it.Matrix3();
39738
- return o.set(a[-5397 + 1799 * 3], a[1], a[13782 + 3445 * -4], a[5674 + -1 * 6007 + 336], a[8479 * 1 + -8872 + 1 * 397], a[-6 * 869 + -6435 + -2 * -5827], a[-6405 + 2137 * 3], a[8661 * 1 + -7426 + -614 * 2], -2291 * 1 + 2813 + -521), o;
39739
+ const e = wt, t = [[-6203 * -1 + -3600 + 2603 * -1, 0], [2085 + -523 * -1 + -2607, -3418 + 2 * 1709], [-6246 + 583 * -6 + 9745, 1], [321 * -8 + -1 * 2651 + 5219 * 1, 7700 + 1 * 1259 + 8958 * -1]], n = r.map((l) => [l.x, l.y]), i = t.flatMap((l, c) => [[l[4 * -268 + 9800 + -8728], l[-363 * -13 + 12 * -622 + -1373 * -2], -1347 + -6863 * 1 + 1 * 8211, -6758 + -2 * -3379, -10126 + 2 * 5063, 0, -l[-9013 + -1 * 4815 + 2 * 6914] * n[c][14024 + 2 * -7012], -l[-8202 + -22 * 437 + 17817] * n[c][-1297 * -1 + -5441 + 4144]], [0, -6056 + 1 * -2704 + 8760, 0, l[5250 + -3 * 1750], l[-1 * 1181 + 2785 * -3 + 17 * 561], -8145 * 1 + -4371 * 1 + 12517, -l[2 * -4708 + 9721 + -305] * n[c][1], -l[-7938 + -7939 * -1] * n[c][1740 + 1739 * -1]]]), s = n[e(627) + "ap"]((l) => l), a = sA(i, s), o = new it.Matrix3();
39740
+ return o[e(532)](a[-404 * 1 + -4072 + 2238 * 2], a[-11299 + -4 * -2825], a[13 * 647 + 8467 * 1 + 4219 * -4], a[3], a[4241 + -3 * 1488 + 227], a[10036 + 7 * -1433], a[1016 * -3 + 7 * -1427 + -13043 * -1], a[7], -1 * 6025 + 1282 + -1186 * -4), o;
39739
39741
  }, Ku = (r, e, t) => {
39740
- const n = bt, i = t["eleme" + n(495)][-1 * 9692 + -1 * -9640 + 52] * r + t.elements[3] * e + t.elements[415 * 4 + -1548 + -106], s = t[n(545) + "nts"][10383 + 358 * -29] * r + t["eleme" + n(495)][2 * 517 + -7 * -524 + 1 * -4698] * e + t[n(545) + n(495)][7], a = t.elements[2] * r + t.elements[1766 + 1 * -8905 + 7144] * e + t[n(545) + n(495)][-509 + -1 * -517];
39742
+ const n = wt, i = t.elements[-8653 * 1 + -1 * -1621 + 7032] * r + t.elements[2070 + -1 * -3865 + -5932 * 1] * e + t.elements[-11507 + -29 * -397], s = t[n(458) + "nts"][-3610 + -1 * -3611] * r + t.elements[4] * e + t.elements[-15361 + -3842 * -4], a = t["eleme" + n(579)][2] * r + t.elements[-2 * 3702 + 808 + 6601] * e + t.elements[-1123 * 8 + -7003 + 15995];
39741
39743
  return new it.Vector2(i / a, s / a);
39742
39744
  }, aA = (r, e, t, n) => {
39743
- const i = bt, s = [-345 + 3 * 442 + 327 * -3, 5 * -1699 + -1722 + 10217, 0, 0, 2666 + -5 * 533, -18609 + -2 * -9305, 2794 + 1 * 1295 + -4088, -1 * 461 + 540 * 7 + -3318], a = [23 * -316 + 6413 + 855, -554 * -1 + 4248 + -4802, 15722 + -2 * 7861, 8578 * 1 + -5210 + -3368, 1, -4972 + 13 * 705 + -4192, -6469 + 1171 * -5 + 12325, 1], o = s[863 * -6 + 2 * 1951 + 1276] + r * (s[s.length - 1] - s[0]), l = a[0] + e * (a[a[i(363) + "h"] - 1] - a[-9879 + 1 * 5175 + 3 * 1568]);
39744
- oA(-7597 + -716 * 12 + 16192 * 1, 4505 + -3 * 557 + -1 * 2831, s, a, n, o, l, t);
39745
+ const i = wt, s = [9952 + -3743 * 1 + -6209, 0, 556 * 5 + -3943 + -1 * -1163, 0, 1 * 6442 + -1008 + -5433, -30 * -290 + 3539 + -12238, 1, 1], a = [-4153 * -1 + 2626 + -6779, 0, -467 * -8 + -7965 + 4229, 0, 13 * 283 + -8048 + 4370, 6655 + 2 * -3327, -7622 * 1 + -7273 + 14896, 3259 * 1 + -3485 + 227], o = s[-1 * -1461 + 1458 + -2919] + r * (s[s[i(519) + "h"] - (-10 * 858 + 1 * -4766 + -1483 * -9)] - s[1161 * -3 + -1466 * -5 + -3847]), l = a[5795 + 13 * 332 + 1 * -10111] + e * (a[a[i(519) + "h"] - 1] - a[7548 + -1 * -5924 + 8 * -1684]);
39746
+ oA(-1 * -9539 + -498 + -9038, -1414 + -9437 * -1 + -8020, s, a, n, o, l, t);
39745
39747
  }, oA = (r, e, t, n, i, s, a, o) => {
39746
- const l = bt, c = (m, g, v) => {
39747
- const y = bt, S = v[y(363) + "h"] - m - 1;
39748
+ const l = wt, c = (m, g, v) => {
39749
+ const y = wt, S = v.length - m - (-4132 + 4133 * 1);
39748
39750
  if (g >= v[S]) return S - 1;
39749
39751
  if (g <= v[m]) return m;
39750
- let M = m, E = S, b = Math.floor((M + E) / (1 * -4133 + 7449 * 1 + 2 * -1657));
39751
- for (; g < v[b] || g >= v[b + (-979 + -1 * 3084 + 508 * 8)]; )
39752
- g < v[b] ? E = b : M = b, b = Math[y(548)]((M + E) / (16922 + 18 * -940));
39752
+ let M = m, E = S, b = Math.floor((M + E) / (1019 * -2 + 1338 + 702));
39753
+ for (; g < v[b] || g >= v[b + (-424 * 14 + 5360 + -1 * -577)]; )
39754
+ g < v[b] ? E = b : M = b, b = Math[y(630)]((M + E) / (1449 + 2539 * -1 + 1092));
39753
39755
  return b;
39754
39756
  }, h = (m, g, v, y) => {
39755
39757
  const S = [1], M = [], E = [];
39756
- for (let b = -1417 + 2 * 1723 + -1 * 2028; b <= v; b++) {
39757
- M[b] = g - y[m + (-2762 + -2763 * -1) - b], E[b] = y[m + b] - g;
39758
- let w = 3 * 2027 + 8935 + -15016;
39759
- for (let A = 6978 + 3 * -2326; A < b; A++) {
39758
+ for (let b = -2383 * 1 + 1133 * 7 + -5547; b <= v; b++) {
39759
+ M[b] = g - y[m + (-2059 + 412 * 5) - b], E[b] = y[m + b] - g;
39760
+ let w = 4121 + 1011 * 6 + -10187;
39761
+ for (let A = 0; A < b; A++) {
39760
39762
  const C = S[A] / (E[A + 1] + M[b - A]);
39761
- S[A] = w + E[A + (14879 + 43 * -346)] * C, w = M[b - A] * C;
39763
+ S[A] = w + E[A + (7471 + -1627 * 5 + 665)] * C, w = M[b - A] * C;
39762
39764
  }
39763
39765
  S[b] = w;
39764
39766
  }
39765
39767
  return S;
39766
39768
  }, f = c(r, s, t), u = c(e, a, n), d = h(f, s, r, t), p = h(u, a, e, n), _ = [];
39767
- for (let m = 0; m <= e; m++) {
39768
- _[m] = new it.Vector4(1832 * -4 + -191 + 7519, 0, -1748 * 5 + 6025 + 2715, 0);
39769
- for (let g = 6544 + -8167 * -1 + -14711; g <= r; g++) {
39770
- const v = i[u - e + m][f - r + g][l(444)](), y = v.w;
39771
- v["multiplySc" + l(409)](y), _[m].add(v["multiplySc" + l(409)](d[g]));
39772
- }
39773
- }
39774
- const x = new it.Vector4(4 * 502 + 2061 + -313 * 13, 4599 * -2 + 1453 + 1 * 7745, 1 * 2949 + -1435 + -1514, -5842 + 3 * -617 + 7693);
39775
- for (let m = -12158 + 1 * 12158; m <= e; m++) x.add(_[m].multiplyScalar(p[m]));
39776
- x.divideScalar(x.w), o.set(x.x, x.y, x.z);
39777
- }, Ju = (r, e = -4650 + -5 * -934) => {
39778
- const t = bt, n = new tA((i, s, a) => aA(i, s, a, r), e, e);
39779
- return new Mt(n, new it["MeshB" + t(415) + "aterial"]({ side: it[t(429) + t(462)], transparent: !0 }));
39769
+ for (let m = 1 * -3131 + 8991 + 293 * -20; m <= e; m++) {
39770
+ _[m] = new it[l(447) + "r4"](-3169 * 1 + 2716 + 453, 4549 * 2 + -5108 + -3990, 7703 + 7703 * -1, -2441 * 1 + -1 * -1493 + -2 * -474);
39771
+ for (let g = 0; g <= r; g++) {
39772
+ const v = i[u - e + m][f - r + g].clone(), y = v.w;
39773
+ v.multiplyScalar(y), _[m].add(v[l(550) + l(653) + l(599)](d[g]));
39774
+ }
39775
+ }
39776
+ const x = new it[l(447) + "r4"](1 * 8033 + 1 * 2631 + -10664, 0, 0, 0);
39777
+ for (let m = -5 * 790 + 2 * 1833 + 284; m <= e; m++) x[l(572)](_[m][l(550) + "plyScalar"](p[m]));
39778
+ x[l(495) + l(539) + "ar"](x.w), o[l(532)](x.x, x.y, x.z);
39779
+ }, Ju = (r, e = 1 * -9745 + -3322 + 13087 * 1) => {
39780
+ const t = wt, n = new tA((i, s, a) => aA(i, s, a, r), e, e);
39781
+ return new At(n, new it.MeshBasicMaterial({ side: it[t(597) + "eSide"], transparent: !0 }));
39780
39782
  }, $o = (r) => {
39781
- const e = bt, t = new Float32Array([r[-3901 + -1 * 5821 + -9722 * -1], r[-579 * -14 + 6135 + -14240 * 1], -11 * 461 + 10 * -956 + 14631, r[-1 * 7313 + -2925 + 10240], r[3], 1 * 9777 + 9002 + -1 * 18779, r[530 * 5 + -1267 * 5 + 3689], r[5], 2197 + -2197 * 1, r[6], r[1 * -9567 + -3629 + 13203], 7876 + 3938 * -2]), n = new it["Buffe" + e(367) + "etry"]();
39782
- return n.setAttribute("position", new it.BufferAttribute(t, 3)), n.setAttribute("uv", new it[e(445) + "rAttribute"](new Float32Array([-1 * -3801 + -4565 + 382 * 2, -2 * -3991 + -1069 + -6913, 1 * -9293 + 933 * 3 + 6495, 4044 * 2 + 3013 + 11101 * -1, -6059 + 523 * 17 + -2831 * 1, 1, -7630 * 1 + 1065 + 6565, 1]), -647 * -2 + 8960 + 22 * -466)), n.setIndex([5677 + -1 * 5677, -7264 + -3 * -1597 + 2474, -562 * 1 + 515 + 49, 2060 + 1 * -8677 + -509 * -13, 4121 + 970 * -10 + 5581, 1 * -5567 + -1624 + 3 * 2398]), n.computeVertexNormals(), new it[e(386)](n, new it["MeshB" + e(415) + "aterial"]({ side: it.DoubleSide, transparent: !0 }));
39783
+ const e = wt, t = new Float32Array([r[-3166 + -6 * 843 + 8224], r[759 * 13 + 7395 + 41 * -421], -11 * -865 + 386 + -9901, r[-16071 + -16073 * -1], r[-1376 + 1 * 1293 + 86], 11416 + 4 * -2854, r[6675 + -7 * 953], r[5], -1 * 7679 + 1 * -1894 + 9573, r[5186 + 11 * 766 + -13606 * 1], r[10138 + -33 * 307], -9478 + -1 * -794 + 334 * 26]), n = new it[e(536) + e(442) + "etry"]();
39784
+ return n[e(649) + "tribute"](e(469) + "ion", new it[e(536) + "rAttribute"](t, 3)), n["setAt" + e(494) + "te"]("uv", new it["Buffe" + e(601) + e(448)](new Float32Array([0, 1852 * 1 + 6862 + -8714, -2 * -3389 + 3972 + -10749, 3907 + 3907 * -1, 6205 * -1 + -5303 * 1 + 1 * 11509, 1, 666 + -1 * 2025 + 1359 * 1, 3 * -1657 + 4491 * 1 + -1 * -481]), 333 * -19 + 3092 * 1 + 3237)), n.setIndex([290 * 2 + -421 + -159, -3141 * 3 + -11 * -431 + 4683, 10759 + 347 * -31, 1 * -7927 + 7806 + 121, -2261 + 1663 * -2 + 5589, -1 * 1058 + 4 * -1451 + 5 * 1373]), n[e(633) + "teVertexNormals"](), new At(n, new it.MeshBasicMaterial({ side: it.DoubleSide, transparent: !0 }));
39783
39785
  }, cA = (r) => {
39784
- const e = bt;
39785
- if (r.length !== 478 * 1 + 6 * -1163 + 6516) return !1;
39786
+ const e = wt;
39787
+ if (r.length !== -280 * -21 + 8323 + -3 * 4729) return !1;
39786
39788
  let t = 1 / 0, n = -1 / 0, i = 1 / 0, s = -1 / 0;
39787
39789
  r.forEach((l) => {
39788
- t = Math[bt(542)](t, l.x), n = Math.max(n, l.x), i = Math.min(i, l.y), s = Math.max(s, l.y);
39790
+ const c = wt;
39791
+ t = Math.min(t, l.x), n = Math.max(n, l.x), i = Math[c(548)](i, l.y), s = Math.max(s, l.y);
39789
39792
  });
39790
39793
  const a = n - t, o = s - i;
39791
- if (a < 9207 + 3 * -1913 + -3468 + 0.1 || o < 2 * 2801 + 4 * 1077 + 1982 * -5 + 0.1) return !1;
39792
- for (let l = 657 * -13 + 2180 + -1 * -6361; l < 1950 + -973 * 2; l++)
39793
- for (let c = 0; c < 1973 * 2 + -8851 + -4909 * -1; c++) {
39794
- const h = t + c / 3 * a, f = i + l / (-5361 * 1 + -3 * -2027 + 1 * -717) * o, u = r[l * (-8755 + -461 * -19) + c];
39795
- if (Math[e(388)](u.x - h) > 9503 * 1 + 717 + -10219 || Math[e(388)](u.y - f) > 908 * -1 + 9617 + -28 * 311) return !1;
39794
+ if (a < 6820 + 1700 * -5 + 1680 + 0.1 || o < 5221 + -1319 * 3 + -1264 + 0.1) return !1;
39795
+ for (let l = -4 * -848 + -4673 + 1281; l < 1 * -2829 + -7034 + -23 * -429; l++)
39796
+ for (let c = -1 * 5170 + -5685 + 10855; c < -1198 * -1 + -2124 + 930; c++) {
39797
+ const h = t + c / 3 * a, f = i + l / (-1 * -8054 + -1 * 639 + -7412) * o, u = r[l * (-8641 * 1 + -4386 + 13031) + c];
39798
+ if (Math.abs(u.x - h) > 7149 * -1 + -1 * 8555 + 15705 || Math[e(511)](u.y - f) > 1) return !1;
39796
39799
  }
39797
39800
  return !0;
39798
39801
  }, lA = (r, e, t, n, i, s) => {
39799
- const a = bt, o = new Yi();
39802
+ const a = wt, o = new Yi();
39800
39803
  let l = 1 / 0, c = -1 / 0, h = 1 / 0, f = -1 / 0;
39801
39804
  r.forEach((g) => {
39802
- const v = bt;
39803
- l = Math.min(l, g.x), c = Math[v(410)](c, g.x), h = Math.min(h, g.y), f = Math.max(f, g.y);
39805
+ const v = wt;
39806
+ l = Math.min(l, g.x), c = Math.max(c, g.x), h = Math[v(548)](h, g.y), f = Math[v(587)](f, g.y);
39804
39807
  });
39805
- const u = c - l || 1, d = f - h || 1 * -5621 + -20 + 13 * 434, p = Zu(e), _ = n.length - (5887 + 2 * -4749 + 1 * 3612), x = t.length - 1, m = x * 3 + (-11628 + 1 * 11629);
39806
- for (let g = -1718 * 5 + -4232 + 2137 * 6; g < _; g++)
39807
- for (let v = 0; v < x; v++) {
39808
+ const u = c - l || -1 * 2753 + 4182 + -1428, d = f - h || 5579 + -1811 * 4 + 1666, p = Zu(e), _ = n.length - (-3415 + -843 * 10 + 11846), x = t.length - (-937 + -2 * -469), m = x * (1 * 3818 + 1 * 7594 + -1 * 11409) + (6297 + -8 * 787);
39809
+ for (let g = -3 * -930 + -994 + 1796 * -1; g < _; g++)
39810
+ for (let v = 6425 + 5 * -1285; v < x; v++) {
39808
39811
  const y = [];
39809
- for (let F = 0; F < -1413 + 536 * -1 + -279 * -7; F++)
39810
- for (let z = 2136 + 1 * 9517 + -1 * 11653; z < -1817 + 1 * -8677 + 10498; z++) y.push(r[(g * (2702 + -1087 * 3 + -2 * -281) + F) * m + (v * (8152 + -1 * 9767 + -1 * -1618) + z)]);
39812
+ for (let F = 3853 * 1 + -3370 + -483; F < 5148 + 1 * 6913 + -3 * 4019; F++)
39813
+ for (let z = 1 * -4721 + 8225 + -876 * 4; z < 9373 + -14 * 697 + 389; z++) y.push(r[(g * (-6254 + 6 * 997 + 275) + F) * m + (v * (7156 + -2 * -840 + -8833) + z)]);
39811
39814
  if (y.includes(void 0)) continue;
39812
- const S = y[a(392)]((F) => {
39815
+ const S = y.map((F) => {
39813
39816
  const z = (F.x - l) / u, L = (F.y - h) / d, U = Ku(z, L, p);
39814
- return new it.Vector4(U.x, U.y, 442 + 2843 * 1 + -3285, 1668 + 1 * -2629 + 962);
39815
- }), M = Ju([[S[836 * 6 + -1245 + -3771], S[2 * 426 + -1 * 6119 + 5268], S[2], S[3]], [S[-7081 + -1 * 4057 + 9 * 1238], S[7667 + -1277 * 6], S[2 * 1693 + 5819 + -9199 * 1], S[5186 + -7 * 1293 + 3872]], [S[8], S[-7294 + -267 * 27 + 14512], S[-2 * -4407 + -6405 + -2399 * 1], S[9062 * -1 + -1977 + 11050]], [S[4 * -2426 + -1 * 8413 + 3 * 6043], S[13], S[-4327 * -1 + -6 * -503 + -7331], S[1268 + 1 * -1253]]], -1 * 3578 + -5655 * 1 + 9253), E = t[v] / i, b = t[v + 1] / i, w = n[g] / s, A = n[g + 1] / s, C = M["geome" + a(375)].getAttribute("uv"), I = new Float32Array(C.count * (3342 + 10 * -334));
39817
+ return new it.Vector4(U.x, U.y, 12 * 346 + -7312 + 632 * 5, 745 + -3 * -1093 + 4023 * -1);
39818
+ }), M = Ju([[S[2777 + 1 * 8929 + 3902 * -3], S[1], S[-2583 + 11 * -353 + -462 * -14], S[-349 * 26 + 1201 + 7876]], [S[4], S[1338 + -1 * -1365 + -1349 * 2], S[6999 * 1 + 5478 + -4157 * 3], S[7]], [S[417 * 13 + 6371 + -11784], S[9], S[391 * 17 + -8102 * -1 + -51 * 289], S[1657 * 1 + 2660 + -1 * 4306]], [S[-9375 + 2113 * 2 + 5161], S[-3974 + -5009 * 1 + 8996], S[1629 * 3 + -9299 + 2213 * 2], S[4601 + -2117 * -1 + 1 * -6703]]], 599 * 6 + -8895 + 5321 * 1), E = t[v] / i, b = t[v + (209 + 2 * -4243 + 8278)] / i, w = n[g] / s, A = n[g + (3012 + 1 * -3011)] / s, C = M[a(484) + "try"][a(493) + "tribute"]("uv"), I = new Float32Array(C[a(541)] * 2);
39816
39819
  for (let F = 0; F < C.count; F++)
39817
- I[F * (1 * -752 + -1425 * 2 + 3604)] = E + C[a(482)](F) * (b - E), I[F * 2 + (-7985 + 726 * 11)] = w + C[a(404)](F) * (A - w);
39818
- M.geometry[a(490) + "tribute"]("uv", new it[a(445) + "rAttribute"](I, -8262 + -1 * 3998 + 12262)), o.add(M);
39820
+ I[F * (1 * 3902 + -2996 + -904)] = E + C.getX(F) * (b - E), I[F * (-5079 + 8243 * -1 + 13324) + 1] = w + C.getY(F) * (A - w);
39821
+ M.geometry[a(649) + "tribute"]("uv", new it["BufferAttr" + a(448)](I, -1603 + -6093 * -1 + -4488)), o.add(M);
39819
39822
  }
39820
39823
  return o;
39821
39824
  }, hA = (r, e, t, n) => {
39822
- const i = bt, s = r?.[i(478) + "r"]?.[i(432) + "tShapeList"]?.[0] ?? r?.["puppetShap" + i(494)]?.[10 * -710 + -1701 + -8801 * -1];
39825
+ const i = wt, s = r?.[i(586) + "r"]?.[i(533) + "tShapeList"]?.[-5198 + 1 * 709 + 4489] ?? r?.["puppe" + i(639) + i(463)]?.[-6044 + -1511 * -4];
39823
39826
  if (!s) return null;
39824
- const { originalVertexArray: a, deformedVertexArray: o, indexArray: l } = s, c = Zu(e), h = new it[i(420) + "x3"]().copy(c).invert(), f = [], u = [];
39825
- for (let p = 6106 + -325 * 23 + 1369; p < o[i(363) + "h"]; p++) {
39827
+ const { originalVertexArray: a, deformedVertexArray: o, indexArray: l } = s, c = Zu(e), h = new it.Matrix3().copy(c)[i(449) + "t"](), f = [], u = [];
39828
+ for (let p = 5466 + 2 * -2733; p < o.length; p++) {
39826
39829
  const _ = a[p], x = Ku(_.x, _.y, h);
39827
39830
  u.push(x.x, x.y);
39828
39831
  const m = o[p];
39829
- f.push(m.x, m.y, 0);
39832
+ f.push(m.x, m.y, 1 * 3622 + -3127 + -495);
39830
39833
  }
39831
- const d = new it.BufferGeometry();
39832
- return d["setAt" + i(522) + "te"](i(535) + "ion", new it[i(445) + "rAttribute"](new Float32Array(f), 812 * -8 + 3447 + -763 * -4)), d.setAttribute("uv", new it["Buffe" + i(516) + "ibute"](new Float32Array(u), 7129 * 1 + -1 * 2311 + -8 * 602)), d.setIndex(Array[i(524)](l)), d["compu" + i(369) + "texNo" + i(512)](), new Mt(d, new it[i(534) + "asicM" + i(491) + "al"]({ side: it[i(429) + i(462)], transparent: !0 }));
39833
- }, uA = (r) => $o([r.left, r[_t(541)], r[_t(561)] + r[_t(361)], r.top, r.left + r.width, r.top + r.height, r.left, r.top + r.height]), Bd = (r, e = 40) => {
39834
- const t = _t, n = Math.sqrt(r.length);
39835
- if (Math.floor(n) !== n || n < -3 * 1406 + 1 * -967 + 5187) return null;
39834
+ const d = new it["Buffe" + i(442) + "etry"]();
39835
+ return d.setAttribute("position", new it[i(536) + "rAttribute"](new Float32Array(f), 13 * -575 + 2750 + 1182 * 4)), d["setAt" + i(494) + "te"]("uv", new it.BufferAttribute(new Float32Array(u), -4719 + 4721 * 1)), d.setIndex(Array.from(l)), d["compu" + i(644) + "texNormals"](), new it[i(569)](d, new it.MeshBasicMaterial({ side: it[i(597) + i(603)], transparent: !0 }));
39836
+ }, uA = (r) => $o([r[yt(592)], r.top, r.left + r.width, r.top, r.left + r.width, r[yt(459)] + r.height, r[yt(592)], r.top + r[yt(634) + "t"]]), Bd = (r, e = 5295 + 5255 * -1) => {
39837
+ const t = yt, n = Math.sqrt(r.length);
39838
+ if (Math.floor(n) !== n || n < -811 * -3 + 3482 * 2 + -9395 * 1) return null;
39836
39839
  const i = n, s = [];
39837
- for (let a = 1845 + -5 * 369; a < i; a++)
39838
- s[t(525)](r.slice(a * i, (a + 1) * i)[t(392)]((o) => new it.Vector4(o.x, o.y, 0, 1)));
39840
+ for (let a = -2892 + -1 * 4442 + 386 * 19; a < i; a++)
39841
+ s[t(472)](r.slice(a * i, (a + (4 * 1518 + -1 * -9705 + -15776)) * i).map((o) => new it[t(447) + "r4"](o.x, o.y, 0, -3181 + 7 * -1217 + 1 * 11701)));
39839
39842
  return Ju(s, e);
39840
- }, Jx = (r, e) => (r[_t(468) + "d"] ?? r.id) * (-1654 * -6 + 5729 + -15553) + e, fA = (r) => {
39841
- const e = _t, t = [];
39843
+ }, Jx = (r, e) => (r[yt(527) + "d"] ?? r.id) * (-1 * -2066 + 1 * 4570 + -2 * 3268) + e, fA = (r) => {
39844
+ const e = yt, t = [];
39842
39845
  for (const n of r)
39843
- if (n.type === bi.Group)
39844
- for (let i = 16 * 386 + 8982 + -15158; i < (n.smartObjects ?? []).length; i++) {
39845
- const s = n[e(493) + "Objects"][i], a = s.bounds, o = s[e(546) + e(502)], l = o?.["length"] === 1 * 6087 + -8878 + 3 * 933 ? [new it.Vector4(o[-12986 + -1 * -12986], o[1], -9440 * -1 + -61 + -1 * 9379, 1), new it.Vector4(o[2], o[-3989 * 2 + -5640 + 1 * 13621], -4193 * 1 + -2788 + 6981, 17 * -577 + -3 * -376 + 8682 * 1), new it.Vector4(o[-14129 + -3 * -4711], o[5], -8699 * -1 + 3 * 1299 + -12596, -6422 + -2 * 2126 + 2135 * 5), new it.Vector4(o[-200 + 8923 * 1 + -23 * 379], o[-8854 + -2 * -4877 + -893], 7067 + -6835 * -1 + -13902, 962 + 13 * -458 + 4993)] : null, c = s[e(538)]?.width ?? s[e(380) + "nalWi" + e(426)] ?? a.width, h = s.size?.["height"] ?? s.originalHeight ?? a.height;
39846
- let f = null, u = "bounds-plane";
39847
- const d = s[e(432) + "t"] ?? s.filterList?.find((v) => v?.["filter"]?.["puppetShap" + e(494)]?.["length"]);
39846
+ if (n[e(480)] === bi.Group)
39847
+ for (let i = -7393 * 1 + 2 * -2513 + -12419 * -1; i < (n.smartObjects ?? []).length; i++) {
39848
+ const s = n.smartObjects[i], a = s.bounds, o = s[e(559) + e(455)], l = o?.[e(519) + "h"] === -32 * 261 + 26 + 8334 ? [new it.Vector4(o[3179 + -1 * 3179], o[1], 0, 1), new it.Vector4(o[-1 * 6101 + -2225 + 8328], o[-3 * 2343 + -794 * 12 + 16560], -4131 + 5493 * -1 + 9624, 7645 + -1 * 4157 + -3487), new it.Vector4(o[494 * -10 + 5221 * 1 + -277], o[-2 * -881 + 4 * 1643 + -8329], -22 * 394 + -5984 + 14652, 1), new it.Vector4(o[1 * -8499 + 10 * -791 + 16415], o[9027 + 4 * 271 + 5052 * -2], -2 * -3359 + -146 + -6572, 1)] : null, c = s[e(501)]?.[e(477)] ?? s.originalWidth ?? a.width, h = s.size?.[e(634) + "t"] ?? s[e(454) + e(576) + "ight"] ?? a.height;
39849
+ let f = null, u = e(461) + "s-plane";
39850
+ const d = s.puppet ?? s.filterList?.[e(612)]((v) => v?.[e(586) + "r"]?.[e(533) + "tShapeList"]?.[e(519) + "h"]);
39848
39851
  if (d && l) f = hA(d, l), u = "puppet";
39849
- else if (s.meshPoints?.["length"] && l) {
39850
- const v = s.meshPoints[e(392)]((y) => new it[e(382) + "r4"](y.x, y.y, 0, 1));
39851
- if (s.quiltSliceX && s["quilt" + e(532) + "Y"]) f = lA(v, l, s.quiltSliceX, s.quiltSliceY, c, h), u = "quilt";
39852
- else if (v.length === 1 * 1601 + 7083 * -1 + -2749 * -2)
39853
- if (cA(v)) f = $o(o), u = "persp" + e(430) + "e-uniform-mesh";
39852
+ else if (s[e(542) + "oints"]?.["length"] && l) {
39853
+ const v = s["meshP" + e(460)].map((y) => new it[e(447) + "r4"](y.x, y.y, 0, 1));
39854
+ if (s["quilt" + e(446) + "X"] && s["quilt" + e(446) + "Y"]) f = lA(v, l, s.quiltSliceX, s.quiltSliceY, c, h), u = "quilt";
39855
+ else if (v.length === -7162 + 7178 * 1)
39856
+ if (cA(v)) f = $o(o), u = "persp" + e(565) + e(574) + "form-mesh";
39854
39857
  else {
39855
39858
  let y = 1 / 0, S = -1 / 0, M = 1 / 0, E = -1 / 0;
39856
39859
  v.forEach((I) => {
39857
39860
  const F = e;
39858
- y = Math.min(y, I.x), S = Math.max(S, I.x), M = Math.min(M, I.y), E = Math[F(410)](E, I.y);
39861
+ y = Math[F(548)](y, I.x), S = Math.max(S, I.x), M = Math.min(M, I.y), E = Math[F(587)](E, I.y);
39859
39862
  });
39860
39863
  const b = S - y, w = E - M, A = Zu(l), C = [];
39861
- for (let I = 7360 + 1 * -7903 + -543 * -1; I < 4; I++) {
39864
+ for (let I = -824 * 2 + -1768 + 3416; I < 8638 + 4317 * -2; I++) {
39862
39865
  const F = [];
39863
- for (let z = 0; z < -2150 + -1077 * -2; z++) {
39866
+ for (let z = 0; z < 5331 * -1 + 1212 + 4123; z++) {
39864
39867
  const L = v[I * 4 + z], U = Ku((L.x - y) / b, (L.y - M) / w, A);
39865
- F[e(525)](new it.Vector4(U.x, U.y, -6194 + -555 * -11 + 89, 5 * -283 + -1 * 1765 + 3181));
39868
+ F.push(new it[e(447) + "r4"](U.x, U.y, 13762 + 2 * -6881, -1692 + -1355 * 1 + 3048));
39866
39869
  }
39867
- C[e(525)](F);
39870
+ C.push(F);
39868
39871
  }
39869
- f = Ju(C), u = "bicubic-16";
39872
+ f = Ju(C), u = e(473) + "ic-16";
39870
39873
  }
39871
39874
  else
39872
- f = Bd(v), u = f ? e(451) + "grid" : "perspective-auto-fit-fall" + e(547), f || (f = $o(o));
39873
- } else if (s.meshPoints?.[e(363) + "h"]) {
39874
- const v = s.meshPoints.map((y) => new it[e(382) + "r4"](y.x, y.y, 0, 1));
39875
- f = Bd(v), u = f ? "direct-mesh-grid" : "bounds-plane";
39876
- } else l && (f = $o(o), u = e(550) + e(430) + "e");
39875
+ f = Bd(v), u = f ? "mesh-grid" : "perspectiv" + e(568) + "o-fit-fallback", f || (f = $o(o));
39876
+ } else if (s.meshPoints?.["length"]) {
39877
+ const v = s.meshPoints.map((y) => new it[e(447) + "r4"](y.x, y.y, 0, 1));
39878
+ f = Bd(v), u = f ? "direc" + e(560) + e(522) + "d" : "bound" + e(651) + "ne";
39879
+ } else l && (f = $o(o), u = e(552) + e(565) + "e");
39877
39880
  f || (f = uA(a));
39878
- const p = a.left + a.width / (-993 * 1 + 329 * -25 + 4 * 2305), _ = a.top + a.height / (4204 + 287 * -7 + -1 * 2193), x = new it["Persp" + e(430) + "eCamera"](-335 * 20 + -2466 + -2314 * -4, a.width / a.height, 3367 + -3366 * 1, 7293 + -435 * -14 + 1 * -8383);
39879
- x[e(535) + "ion"].set(p, _, -a[e(537) + "t"] * ((956 + 478 * -2 + 0.5) / Math[e(498)](Math.PI / 180 * (-17444 + 1 * 17489)))), x.up[e(378)](-1282 + -1 * -1282, -1, -3743 + -13 * 463 + 9762), x[e(501) + "t"](p, _, -12395 + 37 * 335), x["updat" + e(496) + "ectionMatrix"]();
39881
+ const p = a.left + a.width / (10231 + -10229 * 1), _ = a.top + a.height / (-8543 + -483 * -5 + 613 * 10), x = new it.PerspectiveCamera(-9675 + 1 * 9765, a.width / a.height, 6353 + -1588 * 4, -5420 + 6278 * 1 + -2 * -2071);
39882
+ x[e(469) + e(624)].set(p, _, -a[e(634) + "t"] * ((-9256 + -13 * -712 + 0.5) / Math[e(575)](Math.PI / (375 * 15 + 4643 + -10088) * 45))), x.up.set(-6478 + -285 * 2 + 7048, -1, -6668 + -1567 * 2 + 1 * 9802), x.lookAt(p, _, 2232 + 2 * -1116), x["updateProjectio" + e(606) + "ix"]();
39880
39883
  const m = new bu();
39881
- m.add(new it["Ambie" + e(499) + "ht"](3 * 2705149 + -8 * 1101580 + 17474408, -1 * 5937 + 2175 + 3763));
39882
- const g = new it["Direc" + e(449) + "lLight"](16777215, 1365 + -429 * -5 + -3508 * 1 + 0.5);
39883
- g.position.set(0, -5768 + 18 * 349 + -514, -5e3).normalize(), m.add(g), m.add(f), t.push({ sceneKey: Jx(n, i), scene: m, camera: x, meshKind: u });
39884
+ m.add(new it["Ambie" + e(502) + "ht"](5888402 * 2 + 3299 * 5779 + 468817 * -30, -4374 + 9367 * -1 + 13742));
39885
+ const g = new it["Directiona" + e(453) + "t"](31442352 + -4888379 * 3, 1 * -487 + -5928 + 6417 + 0.5);
39886
+ g["posit" + e(624)][e(532)](0, 293 * 20 + -2 * 2719 + -422, -5e3).normalize(), m[e(572)](g), m[e(572)](f), t[e(472)]({ sceneKey: Jx(n, i), scene: m, camera: x, meshKind: u });
39884
39887
  }
39885
39888
  return t;
39886
39889
  }, Fd = (r) => {
39887
- const e = _t;
39888
- return { normal: "sourc" + e(485) + "r", multiply: e(419) + "ply", screen: "screen", overlay: "overlay", darken: e(465) + "n", lighten: "lighten", "color dodge": e(453) + "-dodge", "color burn": "color" + e(364), "hard light": "hard-light", "soft light": "soft-light", difference: "difference", exclusion: "exclusion", hue: "hue", saturation: "saturation", color: e(453), luminosity: "luminosity", "linear burn": "plus-" + e(465) + "r", "linear dodge": "lighter", "pass through": "sourc" + e(485) + "r" }[(r || "").trim()["toLow" + e(503) + "e"]()] || "source-over";
39890
+ const e = yt;
39891
+ return { normal: "source-over", multiply: "multi" + e(556), screen: "screen", overlay: e(518) + "ay", darken: "darken", lighten: "lighten", "color dodge": e(573) + e(464) + "e", "color burn": "color-burn", "hard light": "hard-light", "soft light": "soft-" + e(524), difference: e(445) + e(650), exclusion: "exclusion", hue: "hue", saturation: "saturation", color: e(573), luminosity: "luminosity", "linear burn": "plus-" + e(632) + "r", "linear dodge": "lighter", "pass through": e(465) + "e-over" }[(r || "")[e(526)]()["toLow" + e(561) + "e"]()] || e(465) + "e-over";
39889
39892
  };
39893
+ function wt(r, e) {
39894
+ return r = r - (-281 * -13 + -5429 * -1 + -8643), Vc()[r];
39895
+ }
39890
39896
  let Lr = null, vs = null;
39891
39897
  const Eh = /* @__PURE__ */ new Map(), yn = /* @__PURE__ */ new Map();
39892
- let Ld = -305 * 7 + 4288 + 1 * -2153;
39893
- const Vc = -7975 + 7987 * 1, Nd = /* @__PURE__ */ new Map(), Ki = /* @__PURE__ */ new Map();
39894
- let Ah = -1771 * 5 + 5806 + 3049 * 1;
39895
- const Ud = -5704 * -1 + 717 + -6325, Od = /* @__PURE__ */ new WeakMap(), jx = (r) => {
39896
- let e = 2166136261;
39897
- for (let t = 790 * -8 + -8537 + 14857; t < r.length; t++)
39898
- e ^= r.charCodeAt(t), e = Math.imul(e, 7 * 2226187 + 10422734 + -9228424);
39899
- return (e >>> -3219 + 1 * -8613 + 11832).toString(36);
39898
+ let Ld = -1855 + 2 * 3983 + -6111;
39899
+ const Gc = 7462 + 1 * -4063 + -3 * 1129, Nd = /* @__PURE__ */ new Map(), Ki = /* @__PURE__ */ new Map();
39900
+ let Ah = 0;
39901
+ const Ud = 1075 * -1 + -8577 + 9748, Od = /* @__PURE__ */ new WeakMap(), jx = (r) => {
39902
+ const e = yt;
39903
+ let t = 937029888 + -3613432 * 1124 + 5290603941;
39904
+ for (let n = 4147 * -1 + -4988 * 1 + -315 * -29; n < r.length; n++)
39905
+ t ^= r.charCodeAt(n), t = Math.imul(t, 26653247 * 1 + -89 * 45461 + -1 * 5829599);
39906
+ return (t >>> 0)[e(440) + "ing"](-3935 + 3971 * 1);
39900
39907
  }, Qx = (r) => {
39901
- const e = _t, t = r.filter((n) => n[e(391)] === bi.Group).map((n) => ({ id: n.id, partId: n.partId, smartObjects: (n[e(493) + "Objects"] || [])[e(392)]((i) => ({ transform: i.transform, meshPoints: i["meshP" + e(479)], bounds: i.bounds, size: i.size, originalWidth: i[e(380) + e(437) + "dth"], originalHeight: i["origi" + e(443) + e(475)], quiltSliceX: i[e(448) + "SliceX"], quiltSliceY: i["quilt" + e(532) + "Y"], filterList: i.filterList, puppet: i.puppet })) }));
39902
- return jx(JSON["strin" + e(436)](t));
39908
+ const e = yt, t = r[e(586) + "r"]((n) => n[e(480)] === bi.Group).map((n) => ({ id: n.id, partId: n.partId, smartObjects: (n.smartObjects || []).map((i) => ({ transform: i.transform, meshPoints: i[e(542) + e(460)], bounds: i[e(461) + "s"], size: i[e(501)], originalWidth: i["origi" + e(636) + "dth"], originalHeight: i.originalHeight, quiltSliceX: i.quiltSliceX, quiltSliceY: i[e(530) + "SliceY"], filterList: i[e(586) + "rList"], puppet: i[e(533) + "t"] })) }));
39909
+ return jx(JSON.stringify(t));
39903
39910
  }, dA = (r) => {
39904
- const e = _t;
39911
+ const e = yt;
39905
39912
  for (const t of r)
39906
- t.scene.traverse((n) => {
39907
- const i = bt;
39908
- if (!(n instanceof Mt)) return;
39909
- n[i(413) + i(375)]?.[i(466) + "se"]?.(), (Array.isArray(n.material) ? n.material : [n[i(500) + "ial"]]).forEach((a) => a?.["dispose"]?.());
39910
- }), t[e(530)].clear();
39913
+ t[e(654)].traverse((n) => {
39914
+ const i = e;
39915
+ if (!(n instanceof it[i(569)])) return;
39916
+ n[i(484) + i(591)]?.["dispose"]?.(), (Array.isArray(n.material) ? n.material : [n.material]).forEach((a) => a?.["dispose"]?.());
39917
+ }), t.scene.clear();
39911
39918
  }, ju = () => {
39912
- const r = _t;
39913
- if (yn[r(538)] <= Vc) return;
39914
- const e = [...yn.entries()][r(519)]((t, n) => t[-1 * 5745 + -7501 + -13 * -1019].lastUsed - n[-5 * 1271 + -2160 + 8516 * 1].lastUsed);
39915
- for (; yn.size > Vc && e.length; ) {
39919
+ const r = yt;
39920
+ if (yn[r(501)] <= Gc) return;
39921
+ const e = [...yn[r(581) + "es"]()].sort((t, n) => t[1 * 7957 + -1909 * -2 + -11774].lastUsed - n[3620 + -3619 * 1].lastUsed);
39922
+ for (; yn.size > Gc && e.length; ) {
39916
39923
  const [t, n] = e.shift();
39917
39924
  dA(n.scenes), yn.delete(t);
39918
39925
  }
39919
39926
  }, pA = () => {
39920
- const r = _t;
39927
+ const r = yt;
39921
39928
  if (Ki.size <= Ud) return;
39922
- const e = [...Ki.entries()].sort((t, n) => t[1]["lastU" + r(366)] - n[-7766 + -5803 * -1 + 1964]["lastU" + r(366)]);
39923
- for (; Ki[r(538)] > Ud && e.length; ) {
39924
- const [t, n] = e[r(559)]();
39929
+ const e = [...Ki.entries()][r(486)]((t, n) => t[985 * -1 + -17 * 394 + 2 * 3842][r(577) + "sed"] - n[1][r(577) + r(520)]);
39930
+ for (; Ki.size > Ud && e.length; ) {
39931
+ const [t, n] = e.shift();
39925
39932
  try {
39926
- n.bitmap.close?.();
39933
+ n.bitmap[r(567)]?.();
39927
39934
  } catch {
39928
39935
  }
39929
39936
  Ki.delete(t);
39930
39937
  }
39931
39938
  }, em = (r) => {
39932
- const e = _t, t = Qx(r), n = yn.get(t);
39933
- if (n) return n["lastU" + e(366)] = ++Ld, n.scenes;
39939
+ const e = yt, t = Qx(r), n = yn.get(t);
39940
+ if (n) return n.lastUsed = ++Ld, n.scenes;
39934
39941
  const i = yn.size, s = fA(r);
39935
- return yn.set(t, { scenes: s, lastUsed: ++Ld }), yn.size > i && yn.size > Vc && ju(), s;
39942
+ return yn.set(t, { scenes: s, lastUsed: ++Ld }), yn[e(501)] > i && yn.size > Gc && ju(), s;
39936
39943
  }, kd = async (r, e, t) => {
39937
- const n = _t, i = jh(r, t);
39944
+ const n = yt, i = jh(r, t);
39938
39945
  if (!i) return null;
39939
- const s = !i.startsWith("blob:") && !i[n(528) + "sWith"]("data:");
39946
+ const s = !i[n(471) + n(619)]("blob:") && !i["start" + n(619)]("data:");
39940
39947
  if (s) {
39941
39948
  const o = Nd.get(i);
39942
39949
  if (o) return o;
39943
39950
  }
39944
39951
  const a = await Jd(i, e, t);
39945
39952
  return s && Nd.set(i, a), a;
39946
- }, xA = (r) => r[_t(561)] + "," + r.top + "," + r.width + "," + r.height, zd = (r, e, t, n) => {
39947
- const i = _t, s = r["smart" + i(563) + "t"]?.["bounds"];
39953
+ }, xA = (r) => r.left + "," + r.top + "," + r.width + "," + r.height, zd = (r, e, t, n) => {
39954
+ const i = yt, s = r["smart" + i(466) + "t"]?.["bounds"];
39948
39955
  if (!s || !t) return "";
39949
- const a = r.sceneKey ?? r["partD" + i(489)].id, o = r["smart" + i(563) + "t"] ? jx(JSON.stringify({ vectorMask: r.smartObject.vectorMask, mask: r["smart" + i(563) + "t"].mask, maskData: r.smartObject[i(447) + "ata"] })) : "";
39950
- return [n, a, e, xA(s), t, o].join("|");
39951
- }, mA = (r, e) => {
39952
- const t = _t;
39953
- return vs || (vs = Vr(r, e)), vs[t(361)] = r, vs.height = e, vs;
39954
- }, gA = (r) => {
39956
+ const a = r["scene" + i(646)] ?? r.partData.id, o = r["smart" + i(466) + "t"] ? jx(JSON.stringify({ vectorMask: r["smart" + i(466) + "t"]["vecto" + i(483)], mask: r.smartObject.mask, maskData: r["smart" + i(466) + "t"][i(545) + "ata"] })) : "";
39957
+ return [n, a, e, xA(s), t, o][i(439)]("|");
39958
+ }, mA = (r, e) => (vs || (vs = Vr(r, e)), vs.width = r, vs.height = e, vs), gA = (r) => {
39955
39959
  const e = typeof HTMLCanvasElement < "u" && r instanceof HTMLCanvasElement, t = typeof OffscreenCanvas < "u" && r instanceof OffscreenCanvas;
39956
39960
  return e || t;
39957
39961
  }, _A = (r, e) => {
39958
- const t = _t;
39959
- r[t(414) + "rse"]((n) => {
39962
+ const t = yt;
39963
+ r["trave" + t(468)]((n) => {
39960
39964
  const i = t;
39961
- n instanceof Mt && (n.material.map = e, n.material[i(393) + i(504) + "e"] = !0);
39965
+ n instanceof At && (n[i(590) + "ial"].map = e, n.material.needsUpdate = !0);
39962
39966
  });
39963
39967
  }, Vd = (r) => {
39964
- const e = _t, t = gA(r) ? new it["CanvasText" + e(416)](r) : new it.Texture(r);
39965
- return t["needs" + e(504) + "e"] = !0, t.flipY = !1, t["color" + e(472)] = it[e(521) + "olorSpace"], t.wrapS = it[e(412) + "ToEdgeWrapping"], t.wrapT = it["Clamp" + e(477) + e(407) + e(459)], t;
39968
+ const e = yt, t = gA(r) ? new it["Canva" + e(498) + "ure"](r) : new it[e(614) + "re"](r);
39969
+ return t["needs" + e(529) + "e"] = !0, t.flipY = !1, t["color" + e(640)] = it["SRGBC" + e(549) + e(491)], t.wrapS = it[e(584) + e(553) + "eWrapping"], t.wrapT = it["Clamp" + e(553) + e(613) + "ping"], t;
39966
39970
  };
39967
39971
  let no = { w: 0, h: 0 };
39968
- const vA = (r, e, t, n, i = -3 * 2005 + 8526 + 2510 * -1) => {
39969
- const s = _t, a = Math.max(1, Math[s(526)](e.width * i)), o = Math.max(-1 * -6167 + -8250 + 2084, Math.round(e.height * i)), l = mA(a, o);
39970
- !Lr && (Lr = new it["WebGL" + s(556) + "rer"]({ canvas: l, alpha: !0, preserveDrawingBuffer: !0 }), Lr["outpu" + s(488) + s(405) + "e"] = it[s(521) + s(539) + "pace"], no = { w: a, h: o }), (no.w !== a || no.h !== o) && (Lr.setSize(a, o, !1), Lr["setVi" + s(441) + "t"](8389 + 2 * -2668 + -3053, 2423 + -1 * 2423, a, o), no = { w: a, h: o });
39972
+ const vA = (r, e, t, n, i = 1) => {
39973
+ const s = yt, a = Math[s(587)](-7339 + -6031 * -1 + 1309, Math.round(e.width * i)), o = Math[s(587)](-5128 + 8 * -877 + -347 * -35, Math.round(e[s(634) + "t"] * i)), l = mA(a, o);
39974
+ !Lr && (Lr = new it["WebGLRende" + s(620)]({ canvas: l, alpha: !0, preserveDrawingBuffer: !0 }), Lr[s(594) + "tColorSpace"] = it[s(489) + s(549) + "pace"], no = { w: a, h: o }), (no.w !== a || no.h !== o) && (Lr.setSize(a, o, !1), Lr.setViewport(-1 * 1973 + 5943 + -794 * 5, 8607 + 453 * -19, a, o), no = { w: a, h: o });
39971
39975
  const c = n.find((_) => _.sceneKey === t);
39972
- if (!c) throw new Error("Three scen" + s(492) + " found: " + t);
39976
+ if (!c) throw new Error("Three scene not found: " + t);
39973
39977
  let h = Eh.get(t);
39974
- const f = r.width, u = r[s(537) + "t"], d = h?.[s(439)];
39975
- return !!h && (d?.width !== f || d?.["height"] !== u) ? (h?.dispose(), h = Vd(r), Eh.set(t, h)) : h ? (h.image = r, h.needsUpdate = !0) : (h = Vd(r), Eh.set(t, h)), _A(c.scene, h), Lr.render(c.scene, c.camera), l;
39978
+ const f = r.width, u = r.height, d = h?.image;
39979
+ return !!h && (d?.width !== f || d?.["height"] !== u) ? (h?.dispose(), h = Vd(r), Eh[s(532)](t, h)) : h ? (h.image = r, h[s(555) + s(529) + "e"] = !0) : (h = Vd(r), Eh.set(t, h)), _A(c.scene, h), Lr.render(c.scene, c.camera), l;
39976
39980
  };
39977
- function Gc() {
39978
- const r = ["log", "成 sce", "type", "map", "needs", "lAlph", "dLaye", "sWith", "der=", "12618mcmjeS", "rn th", "无法创建 ", "Opera", ", tas", "ialLi", "getY", "rSpac", " getD", "eWrap", "599121thrCVI", "alar", "max", "get", "Clamp", "geome", "trave", "asicM", "ure", "toStr", "rExtr", "multi", "Matri", "partD", "url", " targ", "bind", "eName", "dth", "rtDat", "extra", "Doubl", "ectiv", "Rect", "puppe", "setTr", "osite", "4959654ZUdsNi", "gify", "nalWi", "drawI", "image", "ut=", "ewpor", " 智能对象", "nalHe", "clone", "Buffe", "excep", "maskD", "quilt", "tiona", "conso", "mesh-", "ntVer", "color", "m 跳过变", "7780315zaAVWM", "join", "globa", "norma", "ping", "1256vYukCw", "{}.co", "eSide", "blob:", "he=", "darke", "dispo", "name", "partI", "split", "Path", "selec", "Space", "sion", "2svBCsj", "ight", "Epoch", "ToEdg", "filte", "oints", "ensho", "mage", "getX", "lComp", "l/tas", "e-ove", "Three", "bitma", "tColo", "ata", "setAt", "ateri", "e not", "smart", "eList", "nts", "eProj", "fabri", "tan", "ntLig", "mater", "lookA", "form", "erCas", "Updat", "clipp", "80jIfiFP", "eform", "clear", "s con", "inclu", " 渲染完成", "rmals", "s 缓存命", ", cac", "index", "rAttr", "192094eomlYG", "text", "sort", "ing", "SRGBC", "tribu", "info", "from", "push", "round", "ansfo", "start", "error", "scene", ", sta", "Slice", "psdJs", "MeshB", "posit", "warn", "heigh", "size", "olorS", "Name", "top", "min", "baseU", "desig", "eleme", "trans", "back", "floor", "Group", "persp", "ith", "pped=", "e-ato", "conte", "strin", "Rende", "ctor(", "save", "shift", ", cli", "left", "flatM", "Objec", "auto", "tion", "layer", "width", "has", "lengt", "-burn", "ren", "sed", "rGeom", "209LikXrD", "teVer", "pop", "model", "now", "previ", "blend", "try", "1053289NbpWtN", "sourc", "set", "1332770TjpwNu", "origi", "Key", "Vecto", "trace", "nable", "nImag", "Mesh", "Mode", "abs"];
39979
- return Gc = function() {
39980
- return r;
39981
- }, Gc();
39982
- }
39983
39981
  let io = null, wh = null, Ch = { w: 0, h: 0 };
39984
39982
  const yA = (r, e) => ((!io || !wh || Ch.w !== r || Ch.h !== e) && (io = Vr(r, e), wh = Es(io), Ch = { w: r, h: e }), { canvas: io, ctx: wh }), Th = (r, e, t, n, i, s, a = 1) => {
39985
- const o = _t;
39983
+ const o = yt;
39986
39984
  if (!n) {
39987
- r[o(438) + "mage"](e, t.left, t.top, t.width, t.height);
39985
+ r["drawI" + o(481)](e, t[o(592)], t.top, t.width, t[o(634) + "t"]);
39988
39986
  return;
39989
39987
  }
39990
39988
  const l = Wd(Hd(n));
39991
39989
  if (!l) {
39992
- r.drawImage(e, t.left, t.top, t.width, t[o(537) + "t"]);
39990
+ r["drawI" + o(481)](e, t.left, t.top, t[o(477)], t.height);
39993
39991
  return;
39994
39992
  }
39995
- const c = Math.max(-2525 + 305 * -25 + -1 * -10151, Math.round(i * a)), h = Math[o(410)](1710 + -3694 * 1 + 397 * 5, Math.round(s * a)), { canvas: f, ctx: u } = yA(c, h);
39996
- u["setTr" + o(527) + "rm"](a, -2025 + 1 * -3865 + 5890, -482 * -1 + -6136 + 11 * 514, a, -9624 + -2 * 265 + 10154, 1 * -9041 + 2654 + -3 * -2129), u["clear" + o(431)](-2 * 1334 + -2193 + 1 * 4861, 0, i, s), u["drawI" + o(481)](e, t.left, t.top, t.width, t.height), ro(u, l), r["drawI" + o(481)](f, -3 * -1091 + -6335 + -1531 * -2, 0, i, s);
39993
+ const c = Math.max(4894 + 1993 * 5 + -14858, Math.round(i * a)), h = Math[o(587)](-2720 + -1 * -2721, Math.round(s * a)), { canvas: f, ctx: u } = yA(c, h);
39994
+ u[o(656) + o(596) + "rm"](a, 18 * -409 + 8074 + 1 * -712, 0, a, 17 * 456 + -27 * -316 + -16284, -1099 + -8941 * 1 + 10040 * 1), u[o(571) + "Rect"](6805 + -6805 * 1, -991 + -1 * 398 + -1 * -1389, i, s), u[o(547) + o(481)](e, t.left, t[o(459)], t[o(477)], t.height), ro(u, l), r.drawImage(f, -2677 * -1 + -383 * 12 + 1919, -11 * -716 + -4933 * 2 + -1 * -1990, i, s);
39997
39995
  }, tm = (r) => {
39998
- const e = _t, t = {}, n = /* @__PURE__ */ new Map(), i = r.materialList || [];
39999
- for (const c of r[e(500) + "ialList"] || []) {
40000
- const h = c.sourceName || c[e(360) + "Name"];
40001
- h && (t[h] = { url: c.url }, n.set(h, c[e(422)])), c[e(360) + "Name"] && c.layerName !== h && (t[c["layer" + e(540)]] || (t[c.layerName] = { url: c[e(422)] }), n[e(378)](c.layerName, c[e(422)]));
39996
+ const e = yt, t = {}, n = /* @__PURE__ */ new Map(), i = r[e(590) + "ialList"] || [];
39997
+ for (const c of r["mater" + e(595) + "st"] || []) {
39998
+ const h = c.sourceName || c[e(509) + "Name"];
39999
+ h && (t[h] = { url: c.url }, n.set(h, c[e(580)])), c["layer" + e(514)] && c[e(509) + e(514)] !== h && (t[c.layerName] || (t[c.layerName] = { url: c.url }), n.set(c.layerName, c.url));
40002
40000
  }
40003
40001
  const s = /* @__PURE__ */ new Map();
40004
- for (const c of r.fabricScreenshotList || []) s.set(c.id, c);
40002
+ for (const c of r[e(637) + "cScreenshotList"] || []) s[e(532)](c.id, c);
40005
40003
  const a = (c, h) => {
40006
- const f = e, u = c.color || (c.name && ["粉", "白", "绿", "红", "蓝", "黄", "黑", "灰"][f(510) + "des"](c.name) ? c.name : h), d = r[f(471) + "tedColor"];
40004
+ const f = e, u = c.color || (c.name && ["粉", "白", "绿", "红", "蓝", "黄", "黑", "灰"][f(628) + "des"](c.name) ? c.name : h), d = r["selec" + f(604) + f(474)];
40007
40005
  if (!(d && u && u !== d)) {
40008
40006
  if (c.type === "Layer") {
40009
40007
  if (c.imagePath) {
40010
40008
  const p = i.find((_) => {
40011
- const x = f, m = _.sourceName || _["layer" + x(540)];
40012
- return !m || !c[x(439) + x(470)] ? !1 : m === c[x(439) + x(470)] || m.endsWith(c["image" + x(470)]) || c["image" + x(470)].endsWith(m);
40009
+ const x = f, m = _[x(465) + x(479)] || _.layerName;
40010
+ return !m || !c[x(563) + "Path"] ? !1 : m === c.imagePath || m[x(537) + x(631)](c["image" + x(557)]) || c.imagePath.endsWith(m);
40013
40011
  });
40014
- p && (t[c.imagePath] = { url: p.url });
40012
+ p && (t[c["image" + f(557)]] = { url: p.url });
40015
40013
  }
40016
40014
  if (c.name) {
40017
40015
  if (u) {
40018
- const p = u + "-" + c[f(467)], _ = i.find((x) => {
40019
- const m = f, g = x.sourceName || x.layerName;
40020
- return g ? (g[m(469)]("/").pop() || g).replace(/\.(png|jpg|jpeg|gif|webp)$/i, "")[m(528) + "sWith"](u + "-" + c[m(467)]) : !1;
40016
+ const p = u + "-" + c[f(582)], _ = i.find((x) => {
40017
+ const m = f, g = x.sourceName || x[m(509) + m(514)];
40018
+ return g ? (g[m(625)]("/").pop() || g).replace(/\.(png|jpg|jpeg|gif|webp)$/i, "")["start" + m(619)](u + "-" + c.name) : !1;
40021
40019
  });
40022
40020
  _ && (t[p] = { url: _.url });
40023
40021
  }
40024
- if (c[f(439) + "Path"]) {
40025
- const p = c[f(439) + "Path"].split("/").pop() || c["image" + f(470)], _ = i.find((x) => {
40026
- const m = f, g = x[m(377) + "eName"] || x.layerName;
40027
- return g ? (g.split("/")[m(370)]() || g) === p : !1;
40022
+ if (c[f(563) + "Path"]) {
40023
+ const p = c["image" + f(557)][f(625)]("/").pop() || c["image" + f(557)], _ = i.find((x) => {
40024
+ const m = f, g = x[m(465) + m(479)] || x.layerName;
40025
+ return g ? (g.split("/")[m(478)]() || g) === p : !1;
40028
40026
  });
40029
- _ && (t[c.imagePath] = { url: _.url });
40027
+ _ && (t[c[f(563) + f(557)]] = { url: _.url });
40030
40028
  }
40031
40029
  }
40032
40030
  }
40033
- for (const p of c["child" + f(365)] || [])
40031
+ for (const p of c.children || [])
40034
40032
  p && a(p, u);
40035
40033
  }
40036
40034
  }, o = (c, h) => {
40037
40035
  const f = e, u = c.id ?? h;
40038
- if (c.type === f(549) && u != null && s[f(362)](u)) {
40039
- const d = s.get(u), p = d[f(544) + "nImage"] ?? d.url;
40040
- for (const _ of c.children || [])
40041
- _?.["isSmartObject"] === !0 && _.name && (t[_[f(467)]] = { ...t[_.name] || {}, designImage: p, contentVersion: d["conte" + f(452) + "sion"] ?? d[f(422)] });
40036
+ if (c[f(480)] === "Group" && u != null && s.has(u)) {
40037
+ const d = s.get(u), p = d.designImage ?? d.url;
40038
+ for (const _ of c["child" + f(441)] || [])
40039
+ _?.[f(528) + "rtObject"] === !0 && _.name && (t[_.name] = { ...t[_.name] || {}, designImage: p, contentVersion: d.contentVersion ?? d.url });
40042
40040
  }
40043
- for (const d of c.children || [])
40041
+ for (const d of c[f(512) + "ren"] || [])
40044
40042
  d && o(d, u);
40045
40043
  };
40046
40044
  return ((c) => {
@@ -40048,132 +40046,133 @@ const yA = (r, e) => ((!io || !wh || Ch.w !== r || Ch.h !== e) && (io = Vr(r, e)
40048
40046
  h && a(h);
40049
40047
  for (const h of c || [])
40050
40048
  h && o(h);
40051
- })(r[e(533) + "on"].layerList || []), { layerExtrasByName: t, materialUrlBySourceName: n };
40049
+ })(r.psdJson.layerList || []), { layerExtrasByName: t, materialUrlBySourceName: n };
40052
40050
  }, bA = (r) => {
40053
40051
  const e = [];
40054
40052
  return r.forEach((t, n) => {
40055
- if (t[bt(391)] === bi.Group) {
40056
- for (let s = 1 * 553 + 5207 + -5760; s < (t.smartObjects || []).length; s++) {
40053
+ const i = wt;
40054
+ if (t.type === bi.Group) {
40055
+ for (let s = -1 * 2103 + 4217 + -2114; s < (t.smartObjects || []).length; s++) {
40057
40056
  const a = t.smartObjects[s];
40058
- e.push({ index: n + s * (-2452 + -293 * 32 + -11828 * -1 + 0.01), type: "group", partData: t, smartObject: a, sceneKey: Jx(t, s) });
40057
+ e.push({ index: n + s * (-357 + -15 * 582 + 9087 + 0.01), type: "group", partData: t, smartObject: a, sceneKey: Jx(t, s) });
40059
40058
  }
40060
40059
  return;
40061
40060
  }
40062
- e.push({ index: n, type: "layer", partData: t });
40061
+ e[i(472)]({ index: n, type: "layer", partData: t });
40063
40062
  }), e.sort((t, n) => {
40064
- const i = bt, s = t.type === "group" && t["smart" + i(563) + "t"]?.["layerOrder"] !== void 0 ? t[i(493) + i(563) + "t"].layerOrder : t[i(421) + i(489)].layerOrder ?? t[i(515)], a = n.type === "group" && n[i(493) + "Object"]?.["layerOrder"] !== void 0 ? n.smartObject.layerOrder : n[i(421) + "ata"].layerOrder ?? n.index;
40063
+ const i = wt, s = t.type === i(626) && t.smartObject?.[i(509) + "Order"] !== void 0 ? t["smart" + i(466) + "t"][i(509) + "Order"] : t[i(535) + "ata"].layerOrder ?? t.index, a = n.type === "group" && n.smartObject?.["layer" + i(490)] !== void 0 ? n[i(558) + "Object"]["layer" + i(490)] : n[i(535) + "ata"][i(509) + "Order"] ?? n[i(635)];
40065
40064
  return s - a;
40066
40065
  });
40067
- }, MA = (r) => r["smart" + _t(563) + "t"]?.["bounds"] || r["partD" + _t(489)].bounds, nm = (r, e) => {
40068
- const t = _t, n = { psdJson: r, layerExtrasByName: e }, i = Gd([n], { parts: [], defaultIdStart: 1 }), s = i.models[0];
40069
- if (!s?.["psdPartData"]) throw new Error("无法解析 " + t(486) + " 渲染模型数据");
40066
+ }, MA = (r) => r.smartObject?.["bounds"] || r["partD" + yt(523)].bounds, nm = (r, e) => {
40067
+ const t = yt, n = { psdJson: r, layerExtrasByName: e }, i = Gd([n], { parts: [], defaultIdStart: 1 }), s = i[t(655) + "s"][-1 * -4645 + -4563 + -82];
40068
+ if (!s?.[t(598) + "rtData"]) throw new Error(t(462) + t(488) + t(564) + "数据");
40070
40069
  return s;
40071
40070
  };
40072
40071
  async function SA(r) {
40073
- const e = _t, { layerExtrasByName: t } = tm(r), n = nm(r.psdJson, t), i = em(n.psdPartData);
40074
- return ju(), { sceneCount: i[e(363) + "h"], cacheSize: yn.size };
40072
+ const { layerExtrasByName: e } = tm(r), t = nm(r.psdJson, e), n = em(t.psdPartData);
40073
+ return ju(), { sceneCount: n.length, cacheSize: yn.size };
40075
40074
  }
40076
40075
  let Rh = null;
40077
40076
  const EA = (r) => {
40078
- const e = _t, t = (r[e(500) + "ialList"] || []).map((s) => s["sourc" + e(425)] + ":" + s.layerName + ":" + s[e(422)])[e(456)]("|"), n = r.psdJson?.[e(360) + "List"]?.["length"] ?? 4 + -1 * 7393 + 7389, i = (r[e(497) + "cScre" + e(480) + "tList"] || []).map((s) => s.id + ":" + s.name + ":" + (s[e(554) + e(452) + e(473)] ?? s.url))[e(456)]("|");
40077
+ const e = yt, t = (r["mater" + e(595) + "st"] || []).map((s) => s.sourceName + ":" + s[e(509) + "Name"] + ":" + s.url).join("|"), n = r.psdJson?.["layerList"]?.["length"] ?? 492 + 9937 * -1 + -9445 * -1, i = (r["fabricScreensho" + e(487)] || []).map((s) => s.id + ":" + s.name + ":" + (s["conte" + e(443) + e(457)] ?? s[e(580)])).join("|");
40079
40078
  return t + "|L" + n + "|S" + i;
40080
40079
  };
40081
40080
  async function AA(r) {
40082
- const e = _t, t = rA(r), n = performance.now();
40083
- Ft(t, "Three 渲染开始" + e(423) + "et=" + (r.width ?? "auto") + "x" + (r[e(537) + "t"] ?? e(564)));
40084
- const i = performance[e(372)](), s = EA(r);
40081
+ const e = yt, t = rA(r), n = performance[e(506)]();
40082
+ Ft(t, e(488) + " 渲染开始 targ" + e(589) + (r.width ?? "auto") + "x" + (r[e(634) + "t"] ?? "auto"));
40083
+ const i = performance[e(506)](), s = EA(r);
40085
40084
  let a, o;
40086
- Rh?.key === s ? ({ layerExtrasByName: a, materialUrlBySourceName: o } = Rh, Ft(t, "Three buil" + e(395) + "rExtras 缓存命中 extras=" + Object.keys(a).length, i)) : ({ layerExtrasByName: a, materialUrlBySourceName: o } = tm(r), Rh = { key: s, layerExtrasByName: a, materialUrlBySourceName: o }, Ft(t, "Three buildLaye" + e(418) + "as 完成 extras=" + Object.keys(a).length, i));
40087
- const l = performance[e(372)](), c = r.psdJson, h = Od[e(411)](c), f = h?.["extrasCacheKey"] === s ? h[e(371)] : nm(r.psdJson, a), u = h?.[e(428) + "sCacheKey"] === s ? h.tasks : bA(f.psdPartData);
40088
- h?.["extrasCacheKey"] !== s ? (Od.set(c, { extrasCacheKey: s, model: f, tasks: u }), Ft(t, "Three getThreeModel/build" + e(556) + "rTasks 完成 parts=" + f.psdPartData.length + ", tasks=" + u[e(363) + "h"], l)) : Ft(t, "Three mode" + e(484) + "ks 缓存命中 parts=" + f["psdPa" + e(427) + "a"].length + (e(402) + "ks=") + u[e(363) + "h"], l);
40089
- const d = f[e(361)], p = f[e(537) + "t"], _ = r.width, x = r.height, m = r.previewQuality === "quick" ? iA : 1, g = r.skipDeform === !0, v = Math.max(1, Math.round(d * m)), y = Math.max(-2 * -753 + 7174 + -8679, Math[e(526)](p * m)), S = performance.now(), M = Vr(v, y), E = Es(M), b = Vr(v, y), w = Es(b), A = Vr(v, y), C = Es(A);
40090
- w["setTr" + e(527) + "rm"](m, 3818 * -1 + 1744 * 5 + -4902, -6967 + -6967 * -1, m, -1 * 331 + 9049 * -1 + -4690 * -2, -3157 + 8 * -922 + 3 * 3511), C.setTransform(m, 4922 + -2 * 303 + -4316, 3642 + -1 * 5395 + 1753 * 1, m, 2293 + -403 * -10 + -1 * 6323, -966 + 1547 * 3 + -3675), Ft(t, "Three canvas buffer 创建完成 source=" + d + "x" + p + (", ren" + e(397)) + v + "x" + y, S);
40091
- const I = performance.now(), F = Qx(f["psdPa" + e(427) + "a"]), z = em(f.psdPartData);
40092
- Ft(t, "Three scene 获取完" + e(390) + "nes=" + z[e(363) + "h"] + (e(514) + e(464)) + yn.size, I);
40085
+ Rh?.key === s ? ({ layerExtrasByName: a, materialUrlBySourceName: o } = Rh, Ft(t, "Three" + e(608) + e(517) + "rExtras 缓存命中 ex" + e(648) + Object.keys(a)[e(519) + "h"], i)) : ({ layerExtrasByName: a, materialUrlBySourceName: o } = tm(r), Rh = { key: s, layerExtrasByName: a, materialUrlBySourceName: o }, Ft(t, "Three buil" + e(517) + "rExtras 完成" + e(554) + "as=" + Object[e(615)](a)[e(519) + "h"], i));
40086
+ const l = performance.now(), c = r.psdJson, h = Od.get(c), f = h?.[e(546) + "sCacheKey"] === s ? h.model : nm(r[e(510) + "on"], a), u = h?.["extrasCacheKey"] === s ? h.tasks : bA(f.psdPartData);
40087
+ h?.["extrasCach" + e(504)] !== s ? (Od.set(c, { extrasCacheKey: s, model: f, tasks: u }), Ft(t, "Three getThreeM" + e(496) + "buildRenderTasks 完成 parts=" + f.psdPartData.length + (e(534) + "ks=") + u.length, l)) : Ft(t, "Three mode" + e(467) + "ks 缓存命中 parts=" + f.psdPartData[e(519) + "h"] + ", tasks=" + u.length, l);
40088
+ const d = f[e(477)], p = f[e(634) + "t"], _ = r.width, x = r.height, m = r[e(600) + e(562) + "lity"] === "quick" ? iA : 2216 * 1 + -3888 + 1673, g = r.skipDeform === !0, v = Math.max(1, Math.round(d * m)), y = Math.max(-2537 + 1269 * 2, Math.round(p * m)), S = performance.now(), M = Vr(v, y), E = Es(M), b = Vr(v, y), w = Es(b), A = Vr(v, y), C = Es(A);
40089
+ w["setTr" + e(596) + "rm"](m, 703 * 4 + 9158 + -11970, 2741 * 1 + 4864 + 3 * -2535, m, -795 * 8 + 7 * -369 + 813 * 11, -9166 * 1 + 5167 + 1 * 3999), C.setTransform(m, -701 * 6 + -2221 * -3 + 1 * -2457, 9937 + 523 * -19, m, 10850 + -434 * 25, -388 * 19 + 683 * 2 + 7 * 858), Ft(t, "Three" + e(610) + "as buffer 创建完成 " + e(465) + "e=" + d + "x" + p + ", render=" + v + "x" + y, S);
40090
+ const I = performance.now(), F = Qx(f[e(598) + e(593) + "a"]), z = em(f.psdPartData);
40091
+ Ft(t, "Three" + e(516) + "e 获取完成 sce" + e(643) + z.length + ", cache=" + yn.size, I);
40093
40092
  const L = (K) => {
40094
40093
  const ee = e;
40095
- if (K.url && a[K.url]) return a[K[ee(422)]];
40096
- if (K[ee(422)]) {
40097
- const se = K.url.split("/").pop() || K.url;
40098
- if (a[se]) return a[se];
40099
- const W = (r.materialList || []).find((P) => {
40100
- const O = ee, G = P.sourceName || P.layerName;
40101
- return !G || !K.url ? !1 : (G.split("/")[O(370)]() || G) === se || G === K.url || G.endsWith(K.url) || K[O(422)]["endsW" + O(551)](G);
40094
+ if (K.url && a[K.url]) return a[K.url];
40095
+ if (K[ee(580)]) {
40096
+ const re = K.url.split("/")[ee(478)]() || K.url;
40097
+ if (a[re]) return a[re];
40098
+ const W = (r[ee(590) + "ialList"] || []).find((P) => {
40099
+ const O = ee, G = P[O(465) + O(479)] || P.layerName;
40100
+ return !G || !K.url ? !1 : (G[O(625)]("/").pop() || G) === re || G === K.url || G.endsWith(K.url) || K[O(580)]["endsW" + O(631)](G);
40102
40101
  });
40103
40102
  if (W) {
40104
- const P = W["sourc" + ee(425)] || W.layerName;
40105
- if (P) return a[P] || { url: W[ee(422)] };
40103
+ const P = W.sourceName || W.layerName;
40104
+ if (P) return a[P] || { url: W[ee(580)] };
40106
40105
  }
40107
40106
  }
40108
40107
  };
40109
- let U = !1, H = "normal";
40108
+ let U = !1, H = e(616) + "l";
40110
40109
  try {
40111
- const K = /* @__PURE__ */ new Map(), ee = /* @__PURE__ */ new Map(), se = /* @__PURE__ */ new Map(), W = /* @__PURE__ */ new Set(), P = [];
40112
- for (let X = -9895 * -1 + -6052 + 9 * -427; X < u.length; X++) {
40113
- const re = u[X];
40114
- re.type === e(360) ? P.push((async () => {
40115
- const xe = e, we = L(re["partD" + xe(489)]), Ae = jh(we?.url, r.baseUrl);
40116
- if (!(!we?.[xe(422)] || !Ae))
40110
+ const K = /* @__PURE__ */ new Map(), ee = /* @__PURE__ */ new Map(), re = /* @__PURE__ */ new Map(), W = /* @__PURE__ */ new Set(), P = [];
40111
+ for (let X = 467 * 20 + 4 * -789 + -6184; X < u.length; X++) {
40112
+ const ie = u[X];
40113
+ ie.type === e(509) ? P.push((async () => {
40114
+ const xe = e, we = L(ie["partD" + xe(523)]), Ae = jh(we?.[xe(580)], r.baseUrl);
40115
+ if (!(!we?.url || !Ae))
40117
40116
  try {
40118
40117
  const me = await kd(Ae, r.maxImageSize, r.baseUrl);
40119
40118
  if (!me) return;
40120
- K[xe(378)](X, me), ee.set(X, Ae);
40119
+ K.set(X, me), ee[xe(532)](X, Ae);
40121
40120
  } catch {
40122
40121
  W.add(X);
40123
40122
  }
40124
- })()) : re[e(493) + e(563) + "t"] && P.push((async () => {
40123
+ })()) : ie[e(558) + "Object"] && P.push((async () => {
40125
40124
  const xe = e;
40126
- let we = a[re.smartObject.name || ""] ?? L(re.partData);
40127
- if (!we && re[xe(493) + "Object"][xe(439) + "Path"] && (we = a[re.smartObject["image" + xe(470)]], !we)) {
40128
- const me = re.smartObject["image" + xe(470)].split("/")[xe(370)]() || re.smartObject[xe(439) + xe(470)];
40125
+ let we = a[ie.smartObject.name || ""] ?? L(ie.partData);
40126
+ if (!we && ie.smartObject.imagePath && (we = a[ie["smart" + xe(466) + "t"].imagePath], !we)) {
40127
+ const me = ie.smartObject.imagePath.split("/").pop() || ie[xe(558) + xe(466) + "t"]["image" + xe(557)];
40129
40128
  if (we = a[me], !we) {
40130
- const Q = (r["mater" + xe(403) + "st"] || []).find((le) => {
40131
- const ne = xe, _e = le[ne(377) + "eName"] || le.layerName;
40132
- return !_e || !re[ne(493) + "Object"]?.[ne(439) + "Path"] ? !1 : (_e.split("/").pop() || _e) === me || _e === re.smartObject[ne(439) + "Path"] || _e["endsW" + ne(551)](re[ne(493) + ne(563) + "t"]["image" + ne(470)]) || re[ne(493) + "Object"].imagePath["endsW" + ne(551)](_e);
40129
+ const Q = (r["mater" + xe(595) + "st"] || []).find((le) => {
40130
+ const se = xe, _e = le[se(465) + se(479)] || le.layerName;
40131
+ return !_e || !ie.smartObject?.["imagePath"] ? !1 : (_e.split("/").pop() || _e) === me || _e === ie[se(558) + se(466) + "t"].imagePath || _e.endsWith(ie.smartObject.imagePath) || ie["smart" + se(466) + "t"]["image" + se(557)]["endsW" + se(631)](_e);
40133
40132
  });
40134
40133
  Q && (we = { url: Q.url });
40135
40134
  }
40136
40135
  }
40137
- let Ae = we?.["desig" + xe(385) + "e"] ?? we?.url;
40136
+ let Ae = we?.[xe(470) + "nImage"] ?? we?.url;
40138
40137
  if (Ae) {
40139
- typeof Ae == "string" && (/^(https?:)?\/\//i.test(Ae) || Ae["start" + xe(396)]("data:") || Ae["start" + xe(396)]("blob:") || (Ae = o.get(Ae) ?? Ae));
40138
+ typeof Ae == "string" && (/^(https?:)?\/\//i[xe(583)](Ae) || Ae[xe(471) + "sWith"]("data:") || Ae.startsWith("blob:") || (Ae = o[xe(629)](Ae) ?? Ae));
40140
40139
  try {
40141
- const me = we?.[xe(554) + "ntVersion"] ? String(we.contentVersion) : typeof Ae == xe(555) + "g" ? jh(Ae, r.baseUrl) ?? Ae : we?.url ?? (re["scene" + xe(381)] ?? re.partData.id) + ":memory", Q = zd(re, m, me, F), le = Q ? Ki.get(Q) : void (-5173 + 739 * 7);
40140
+ const me = we?.["contentVersion"] ? String(we[xe(578) + "ntVer" + xe(457)]) : typeof Ae == "string" ? jh(Ae, r.baseUrl) ?? Ae : we?.url ?? (ie["scene" + xe(646)] ?? ie.partData.id) + (xe(525) + "ry"), Q = zd(ie, m, me, F), le = Q ? Ki.get(Q) : void (-5731 + -1 * -6469 + -738);
40142
40141
  if (le) {
40143
- le.lastUsed = ++Ah, se.set(X, le[xe(487) + "p"]), ee[xe(378)](X, me);
40142
+ le[xe(577) + "sed"] = ++Ah, re.set(X, le.bitmap), ee.set(X, me);
40144
40143
  return;
40145
40144
  }
40146
- const ne = typeof Ae == "string" ? await kd(Ae, r.maxImageSize, r[xe(543) + "rl"]) : Ae;
40147
- if (!ne) return;
40148
- K.set(X, ne), ee.set(X, me);
40145
+ const se = typeof Ae == "string" ? await kd(Ae, r.maxImageSize, r.baseUrl) : Ae;
40146
+ if (!se) return;
40147
+ K.set(X, se), ee.set(X, me);
40149
40148
  } catch {
40150
- W.add(X);
40149
+ W[xe(572)](X);
40151
40150
  }
40152
40151
  }
40153
40152
  })());
40154
40153
  }
40155
- const O = performance.now();
40156
- await Promise.all(P), Ft(t, e(486) + " 纹理源并行加载完成 tasks=" + u.length, O);
40157
- for (let X = -9022 + -347 * -26; X < u.length; X++) {
40158
- const re = u[X], xe = performance[e(372)](), we = u[X + (7046 * -1 + -9643 * 1 + 16690)], Ae = re.smartObject?.["clipping"] ?? re[e(421) + "ata"]["clipp" + e(520)] === !0, me = we ? we.smartObject?.["clipping"] ?? we[e(421) + "ata"][e(505) + "ing"] === !0 : !1;
40154
+ const O = performance[e(506)]();
40155
+ await Promise[e(602)](P), Ft(t, "Three 纹理源并" + e(456) + " tasks=" + u.length, O);
40156
+ for (let X = -1703 * -4 + 1594 * 1 + -8406; X < u.length; X++) {
40157
+ const ie = u[X], xe = performance.now(), we = u[X + (-3958 * -1 + -9597 + -564 * -10)], Ae = ie[e(558) + "Object"]?.["clipping"] ?? ie.partData[e(503) + "ing"] === !0, me = we ? we.smartObject?.[e(503) + "ing"] ?? we.partData[e(503) + e(642)] === !0 : !1;
40159
40158
  let Q = null;
40160
- if (W[e(362)](X)) continue;
40161
- if (re.type === "layer") Q = K[e(411)](X) ?? null, Ft(t, "Three 图层 " + X + "(" + (re.partData[e(467)] ?? re.partData.id) + ") 图片加载完成", O);
40162
- else if (re[e(493) + "Object"]) {
40163
- const Xe = se[e(411)](X);
40164
- if (Xe) Q = Xe, Ft(t, "Three 智能对象 " + X + "(" + (re.smartObject.name || re[e(421) + "ata"].name) + ") 变形缓存预命中");
40159
+ if (W.has(X)) continue;
40160
+ if (ie[e(480)] === "layer") Q = K.get(X) ?? null, Ft(t, "Three 图层 " + X + "(" + (ie.partData[e(582)] ?? ie["partD" + e(523)].id) + (") 图片加" + e(645)), O);
40161
+ else if (ie[e(558) + "Object"]) {
40162
+ const Xe = re.get(X);
40163
+ if (Xe) Q = Xe, Ft(t, e(488) + " 智能对象 " + X + "(" + (ie.smartObject.name || ie["partD" + e(523)].name) + (e(617) + "存预命中"));
40165
40164
  else {
40166
- const N = K[e(411)](X);
40165
+ const N = K.get(X);
40167
40166
  if (!N) continue;
40168
- Ft(t, "Three" + e(442) + " " + X + "(" + (re.smartObject[e(467)] || re.partData[e(467)]) + ") 纹理源完成", O);
40167
+ Ft(t, "Three 智能对象 " + X + "(" + (ie.smartObject.name || ie[e(535) + "ata"].name) + ") 纹理源完成", O);
40169
40168
  try {
40170
- if (g) Q = N, Ft(t, "Three 智能对象 " + X + (" skipDefor" + e(454) + ""));
40169
+ if (g) Q = N, Ft(t, "Three" + e(513) + " " + X + " skipDeform 跳过变形");
40171
40170
  else {
40172
- const Oe = zd(re, m, ee.get(X) ?? "", F), Ce = Oe ? Ki.get(Oe) : void (2270 + 1011 * 1 + -3281);
40173
- if (Ce) Ce["lastU" + e(366)] = ++Ah, Q = Ce.bitmap, Ft(t, e(486) + " 智能对象 " + X + (e(406) + "eformCanva" + e(513) + "中"));
40171
+ const Oe = zd(ie, m, ee[e(629)](X) ?? "", F), Ce = Oe ? Ki.get(Oe) : void (-5171 * -1 + 257 * 7 + -6970);
40172
+ if (Ce) Ce[e(577) + "sed"] = ++Ah, Q = Ce.bitmap, Ft(t, "Three 智能对象 " + X + " getDeformCanvas 缓存命中");
40174
40173
  else {
40175
- const Ge = performance.now(), de = vA(N, re["smart" + e(563) + "t"].bounds, re["scene" + e(381)] ?? re.partData.id, z, m), st = await createImageBitmap(de);
40176
- Oe && (Ki[e(378)](Oe, { bitmap: st, lastUsed: ++Ah }), pA()), Ft(t, "Three 智能对象 " + X + (" getD" + e(507) + "Canvas 完成"), Ge), Q = st;
40174
+ const Ge = performance.now(), de = vA(N, ie["smart" + e(466) + "t"][e(461) + "s"], ie.sceneKey ?? ie[e(535) + "ata"].id, z, m), st = await createImageBitmap(de);
40175
+ Oe && (Ki.set(Oe, { bitmap: st, lastUsed: ++Ah }), pA()), Ft(t, "Three" + e(513) + " " + X + " getDeformCanvas 完成", Ge), Q = st;
40177
40176
  }
40178
40177
  }
40179
40178
  } catch (Oe) {
@@ -40183,31 +40182,31 @@ async function AA(r) {
40183
40182
  }
40184
40183
  }
40185
40184
  if (!Q) continue;
40186
- const le = MA(re);
40185
+ const le = MA(ie);
40187
40186
  if (!le) continue;
40188
- const ne = performance.now(), _e = re.smartObject?.["opacity"] ?? re["partD" + e(489)].opacity ?? 4119 * 1 + -1 * -8726 + -12844, ve = Fd(re[e(493) + "Object"]?.["blend" + e(387)] ?? re[e(421) + "ata"].blendMode);
40189
- !Ae && me ? (U = !0, H = re["partD" + e(489)][e(374) + "Mode"] || e(458) + "l", C[e(508) + "Rect"](-4527 * 1 + -4326 + -1 * -8853, -1285 * 6 + -4921 + 12631, d, p), C["globalComposite" + e(401) + e(359)] = "source-over", C[e(457) + e(394) + "a"] = _e, Th(C, Q, le, re.type === "group" ? re["smart" + e(563) + "t"] : void (-19 * -371 + -877 * 7 + -910), d, p, m), C.globalAlpha = 1) : Ae ? (C["globalCompositeOpera" + e(359)] = e(377) + e(553) + "p", C[e(457) + "lAlpha"] = _e, Th(C, Q, le, re.type === "group" ? re["smart" + e(563) + "t"] : void (-1409 * -5 + -5267 * -1 + -12312), d, p, m), C[e(457) + "lAlpha"] = 2872 * -2 + 7 * 467 + 4 * 619, C["globalCompositeOpera" + e(359)] = "source-over") : (w["globa" + e(483) + "ositeOperation"] = ve, w[e(457) + "lAlpha"] = _e, w[e(558)](), Th(w, Q, le, re[e(391)] === "group" ? re.smartObject : void (-11581 + 37 * 313), d, p, m), w.restore(), w.globalAlpha = 4907 + 2719 * -3 + -1 * -3251, w.globalCompositeOperation = "source-over"), U && !me && (w[e(457) + "lComp" + e(434) + "Operation"] = Fd(H), w.drawImage(A, -1 * -4447 + -2594 + -1853, 4063 * 1 + -4577 * 1 + 514, d, p), w["globa" + e(483) + "ositeOperation"] = "source-over", U = !1), Ft(t, "Three 图层 " + X + " 合成完成 type=" + re.type + (e(560) + e(552)) + Ae, ne), Ft(t, "Three 图层 " + X + " 总阶段完成", xe);
40190
- }
40191
- const G = performance[e(372)]();
40192
- E[e(433) + e(527) + "rm"](1, 1217 * -7 + 6857 * -1 + 16 * 961, -3607 * 1 + 2912 + 695, 25 * -394 + -2577 + -26 * -478, 1 * 5315 + 4738 * -1 + 577 * -1, 16493 + -1 * 16493), E.clearRect(-1 * -6781 + 3906 * -2 + 1031, 0, v, y), E[e(438) + "mage"](b, 0, 2 * -2833 + -9172 + 14838), Ft(t, "Three offscreen 绘制到主 canvas 完成", G);
40193
- let ie = M, k = v, j = y;
40194
- if (_ !== void (1 * 6158 + 8890 + 22 * -684) || x !== void (-5 * 1709 + 6091 + -409 * -6)) {
40195
- const X = performance.now();
40196
- if (_ !== void 0 && x !== void (-1 * -8185 + -3 * 516 + -6637)) k = _, j = x;
40197
- else if (_ !== void 0) {
40187
+ const se = performance.now(), _e = ie.smartObject?.["opacity"] ?? ie[e(535) + "ata"][e(585) + "ty"] ?? -9 * 375 + -8200 + -11576 * -1, ve = Fd(ie["smart" + e(466) + "t"]?.[e(652) + e(500)] ?? ie.partData[e(652) + e(500)]);
40188
+ !Ae && me ? (U = !0, H = ie.partData["blend" + e(500)] || e(616) + "l", C.clearRect(0, -1 * 1315 + -7213 * 1 + -26 * -328, d, p), C["globalComposite" + e(570) + "tion"] = "sourc" + e(492) + "r", C[e(482) + e(475) + "a"] = _e, Th(C, Q, le, ie[e(480)] === "group" ? ie["smart" + e(466) + "t"] : void (452 + -1 * 7973 + -23 * -327), d, p, m), C.globalAlpha = -293 * -7 + 448 + -2498) : Ae ? (C[e(482) + "lCompositeOperation"] = "source-atop", C.globalAlpha = _e, Th(C, Q, le, ie.type === "group" ? ie[e(558) + "Object"] : void (7887 + -3439 * 1 + -4448), d, p, m), C.globalAlpha = 9254 + 9253 * -1, C["globa" + e(538) + e(499) + e(570) + e(531)] = "source-over") : (w[e(482) + e(538) + "osite" + e(570) + e(531)] = ve, w[e(482) + "lAlpha"] = _e, w[e(544)](), Th(w, Q, le, ie[e(480)] === "group" ? ie[e(558) + "Object"] : void 0, d, p, m), w.restore(), w["globa" + e(475) + "a"] = 667 + 2 * -333, w["globa" + e(538) + "ositeOperation"] = "sourc" + e(492) + "r"), U && !me && (w[e(482) + "lCompositeOperation"] = Fd(H), w.drawImage(A, 0, 823 + 1 * -823, d, p), w.globalCompositeOperation = e(465) + "e-over", U = !1), Ft(t, e(488) + " 图层 " + X + " 合成完成 type=" + ie.type + ", clipped=" + Ae, se), Ft(t, "Three 图层 " + X + " 总阶段完成", xe);
40189
+ }
40190
+ const G = performance[e(506)]();
40191
+ E.setTransform(-11 * -262 + 723 + -3604, 5298 + 5298 * -1, -4647 * 2 + 7198 + -8 * -262, -6293 + -5 * -1629 + -1851, 0, 1042 * 1 + 12 * 571 + -7894 * 1), E.clearRect(-7536 + -1 * -613 + -23 * -301, -467 * -4 + 6718 + -8586, v, y), E[e(547) + e(481)](b, -1 * -1542 + 96 + -1638, -6282 + -3889 * -1 + 2393), Ft(t, "Three offscreen 绘制到主 canv" + e(444), G);
40192
+ let ne = M, k = v, j = y;
40193
+ if (_ !== void (-844 + 1 * 6149 + 1 * -5305) || x !== void (-2513 + -4038 * 2 + 10589)) {
40194
+ const X = performance[e(506)]();
40195
+ if (_ !== void (806 + -403 * 2) && x !== void (635 * 13 + 1590 + -9845)) k = _, j = x;
40196
+ else if (_ !== void (-5262 + 1 * -6215 + 11477)) {
40198
40197
  const xe = _ / v;
40199
- k = _, j = Math.round(y * xe);
40200
- } else if (x !== void (-8506 + -2 * -4253)) {
40198
+ k = _, j = Math[e(609)](y * xe);
40199
+ } else if (x !== void (-6998 + 2 * 3499)) {
40201
40200
  const xe = x / y;
40202
40201
  k = Math.round(v * xe), j = x;
40203
40202
  }
40204
- ie = Vr(k, j);
40205
- const re = Es(ie);
40206
- re["imageSmoothingE" + e(384) + "d"] = !0, re[e(439) + "SmoothingQuality"] = "high", re.drawImage(M, 3 * -991 + 8859 + -6 * 981, 7295 + -1 * 2302 + 4993 * -1, v, y, 1 * -7489 + 9168 + -1679, -9546 + 5895 * -1 + 15441, k, j), Ft(t, "Three 最终缩放完成 " + v + "x" + y + " -> " + k + "x" + j, X);
40203
+ ne = Vr(k, j);
40204
+ const ie = Es(ne);
40205
+ ie[e(563) + "SmoothingEnabled"] = !0, ie[e(563) + "SmoothingQ" + e(540) + "y"] = e(450), ie["drawI" + e(481)](M, 0, -9263 * 1 + -6988 + 16251, v, y, 0, 703 * -2 + -5708 + -2 * -3557, k, j), Ft(t, e(488) + " 最终缩放" + e(508) + v + "x" + y + " -> " + k + "x" + j, X);
40207
40206
  }
40208
- return Ft(t, "Three" + e(511) + " outp" + e(440) + k + "x" + j, n), { canvas: ie, width: k, height: j };
40207
+ return Ft(t, "Three 渲染完成 output=" + k + "x" + j, n), { canvas: ne, width: k, height: j };
40209
40208
  } finally {
40210
- yn.size > Vc && ju();
40209
+ yn.size > Gc && ju();
40211
40210
  }
40212
40211
  }
40213
40212
  const Kr = (r) => {