@prefecthq/graphs 0.1.9 → 0.1.10

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.
@@ -6,7 +6,7 @@ var Ur = Math.PI * 2, Js = 180 / Math.PI, Qs = Math.PI / 180, bt;
6
6
  (function(i) {
7
7
  i[i.POLY = 0] = "POLY", i[i.RECT = 1] = "RECT", i[i.CIRC = 2] = "CIRC", i[i.ELIP = 3] = "ELIP", i[i.RREC = 4] = "RREC";
8
8
  })(bt || (bt = {}));
9
- var it = function() {
9
+ var nt = function() {
10
10
  function i(e, t) {
11
11
  e === void 0 && (e = 0), t === void 0 && (t = 0), this.x = 0, this.y = 0, this.x = e, this.y = t;
12
12
  }
@@ -23,7 +23,7 @@ var it = function() {
23
23
  }, i.prototype.toString = function() {
24
24
  return "[@pixi/math:Point x=" + this.x + " y=" + this.y + "]";
25
25
  }, i;
26
- }(), fr = [new it(), new it(), new it(), new it()], W = function() {
26
+ }(), fr = [new nt(), new nt(), new nt(), new nt()], W = function() {
27
27
  function i(e, t, r, n) {
28
28
  e === void 0 && (e = 0), t === void 0 && (t = 0), r === void 0 && (r = 0), n === void 0 && (n = 0), this.x = Number(e), this.y = Number(t), this.width = Number(r), this.height = Number(n), this.type = bt.RECT;
29
29
  }
@@ -85,8 +85,8 @@ var it = function() {
85
85
  var _ = v * (c.y - f.y), m = v * (f.x - c.x), g = _ * o + m * u, y = _ * h + m * u, b = _ * o + m * l, x = _ * h + m * l;
86
86
  if (Math.max(g, y, b, x) <= _ * f.x + m * f.y || Math.min(g, y, b, x) >= _ * p.x + m * p.y)
87
87
  return !1;
88
- var T = v * (f.y - d.y), E = v * (d.x - f.x), C = T * o + E * u, w = T * h + E * u, S = T * o + E * l, R = T * h + E * l;
89
- return !(Math.max(C, w, S, R) <= T * f.x + E * f.y || Math.min(C, w, S, R) >= T * p.x + E * p.y);
88
+ var T = v * (f.y - d.y), E = v * (d.x - f.x), C = T * o + E * u, S = T * h + E * u, w = T * o + E * l, D = T * h + E * l;
89
+ return !(Math.max(C, S, w, D) <= T * f.x + E * f.y || Math.min(C, S, w, D) >= T * p.x + E * p.y);
90
90
  }, i.prototype.pad = function(e, t) {
91
91
  return e === void 0 && (e = 0), t === void 0 && (t = e), this.x -= e, this.y -= t, this.width += e * 2, this.height += t * 2, this;
92
92
  }, i.prototype.fit = function(e) {
@@ -229,11 +229,11 @@ var it = function() {
229
229
  var r = t || this.array;
230
230
  return e ? (r[0] = this.a, r[1] = this.b, r[2] = 0, r[3] = this.c, r[4] = this.d, r[5] = 0, r[6] = this.tx, r[7] = this.ty, r[8] = 1) : (r[0] = this.a, r[1] = this.c, r[2] = this.tx, r[3] = this.b, r[4] = this.d, r[5] = this.ty, r[6] = 0, r[7] = 0, r[8] = 1), r;
231
231
  }, i.prototype.apply = function(e, t) {
232
- t = t || new it();
232
+ t = t || new nt();
233
233
  var r = e.x, n = e.y;
234
234
  return t.x = this.a * r + this.c * n + this.tx, t.y = this.b * r + this.d * n + this.ty, t;
235
235
  }, i.prototype.applyInverse = function(e, t) {
236
- t = t || new it();
236
+ t = t || new nt();
237
237
  var r = 1 / (this.a * this.d + this.c * -this.b), n = e.x, a = e.y;
238
238
  return t.x = this.d * r * n + -this.c * r * a + (this.ty * this.c - this.tx * this.d) * r, t.y = this.a * r * a + -this.b * r * n + (-this.ty * this.a + this.tx * this.b) * r, t;
239
239
  }, i.prototype.translate = function(e, t) {
@@ -736,10 +736,10 @@ var Gr;
736
736
  (function(i) {
737
737
  i[i.COLOR = 16384] = "COLOR", i[i.DEPTH = 256] = "DEPTH", i[i.STENCIL = 1024] = "STENCIL";
738
738
  })(Gr || (Gr = {}));
739
- var U;
739
+ var G;
740
740
  (function(i) {
741
741
  i[i.NORMAL = 0] = "NORMAL", i[i.ADD = 1] = "ADD", i[i.MULTIPLY = 2] = "MULTIPLY", i[i.SCREEN = 3] = "SCREEN", i[i.OVERLAY = 4] = "OVERLAY", i[i.DARKEN = 5] = "DARKEN", i[i.LIGHTEN = 6] = "LIGHTEN", i[i.COLOR_DODGE = 7] = "COLOR_DODGE", i[i.COLOR_BURN = 8] = "COLOR_BURN", i[i.HARD_LIGHT = 9] = "HARD_LIGHT", i[i.SOFT_LIGHT = 10] = "SOFT_LIGHT", i[i.DIFFERENCE = 11] = "DIFFERENCE", i[i.EXCLUSION = 12] = "EXCLUSION", i[i.HUE = 13] = "HUE", i[i.SATURATION = 14] = "SATURATION", i[i.COLOR = 15] = "COLOR", i[i.LUMINOSITY = 16] = "LUMINOSITY", i[i.NORMAL_NPM = 17] = "NORMAL_NPM", i[i.ADD_NPM = 18] = "ADD_NPM", i[i.SCREEN_NPM = 19] = "SCREEN_NPM", i[i.NONE = 20] = "NONE", i[i.SRC_OVER = 0] = "SRC_OVER", i[i.SRC_IN = 21] = "SRC_IN", i[i.SRC_OUT = 22] = "SRC_OUT", i[i.SRC_ATOP = 23] = "SRC_ATOP", i[i.DST_OVER = 24] = "DST_OVER", i[i.DST_IN = 25] = "DST_IN", i[i.DST_OUT = 26] = "DST_OUT", i[i.DST_ATOP = 27] = "DST_ATOP", i[i.ERASE = 26] = "ERASE", i[i.SUBTRACT = 28] = "SUBTRACT", i[i.XOR = 29] = "XOR";
742
- })(U || (U = {}));
742
+ })(G || (G = {}));
743
743
  var Ft;
744
744
  (function(i) {
745
745
  i[i.POINTS = 0] = "POINTS", i[i.LINES = 1] = "LINES", i[i.LINE_LOOP = 2] = "LINE_LOOP", i[i.LINE_STRIP = 3] = "LINE_STRIP", i[i.TRIANGLES = 4] = "TRIANGLES", i[i.TRIANGLE_STRIP = 5] = "TRIANGLE_STRIP", i[i.TRIANGLE_FAN = 6] = "TRIANGLE_FAN";
@@ -752,10 +752,10 @@ var ge;
752
752
  (function(i) {
753
753
  i[i.TEXTURE_2D = 3553] = "TEXTURE_2D", i[i.TEXTURE_CUBE_MAP = 34067] = "TEXTURE_CUBE_MAP", i[i.TEXTURE_2D_ARRAY = 35866] = "TEXTURE_2D_ARRAY", i[i.TEXTURE_CUBE_MAP_POSITIVE_X = 34069] = "TEXTURE_CUBE_MAP_POSITIVE_X", i[i.TEXTURE_CUBE_MAP_NEGATIVE_X = 34070] = "TEXTURE_CUBE_MAP_NEGATIVE_X", i[i.TEXTURE_CUBE_MAP_POSITIVE_Y = 34071] = "TEXTURE_CUBE_MAP_POSITIVE_Y", i[i.TEXTURE_CUBE_MAP_NEGATIVE_Y = 34072] = "TEXTURE_CUBE_MAP_NEGATIVE_Y", i[i.TEXTURE_CUBE_MAP_POSITIVE_Z = 34073] = "TEXTURE_CUBE_MAP_POSITIVE_Z", i[i.TEXTURE_CUBE_MAP_NEGATIVE_Z = 34074] = "TEXTURE_CUBE_MAP_NEGATIVE_Z";
754
754
  })(ge || (ge = {}));
755
- var L;
755
+ var U;
756
756
  (function(i) {
757
757
  i[i.UNSIGNED_BYTE = 5121] = "UNSIGNED_BYTE", i[i.UNSIGNED_SHORT = 5123] = "UNSIGNED_SHORT", i[i.UNSIGNED_SHORT_5_6_5 = 33635] = "UNSIGNED_SHORT_5_6_5", i[i.UNSIGNED_SHORT_4_4_4_4 = 32819] = "UNSIGNED_SHORT_4_4_4_4", i[i.UNSIGNED_SHORT_5_5_5_1 = 32820] = "UNSIGNED_SHORT_5_5_5_1", i[i.UNSIGNED_INT = 5125] = "UNSIGNED_INT", i[i.UNSIGNED_INT_10F_11F_11F_REV = 35899] = "UNSIGNED_INT_10F_11F_11F_REV", i[i.UNSIGNED_INT_2_10_10_10_REV = 33640] = "UNSIGNED_INT_2_10_10_10_REV", i[i.UNSIGNED_INT_24_8 = 34042] = "UNSIGNED_INT_24_8", i[i.UNSIGNED_INT_5_9_9_9_REV = 35902] = "UNSIGNED_INT_5_9_9_9_REV", i[i.BYTE = 5120] = "BYTE", i[i.SHORT = 5122] = "SHORT", i[i.INT = 5124] = "INT", i[i.FLOAT = 5126] = "FLOAT", i[i.FLOAT_32_UNSIGNED_INT_24_8_REV = 36269] = "FLOAT_32_UNSIGNED_INT_24_8_REV", i[i.HALF_FLOAT = 36193] = "HALF_FLOAT";
758
- })(L || (L = {}));
758
+ })(U || (U = {}));
759
759
  var kr;
760
760
  (function(i) {
761
761
  i[i.FLOAT = 0] = "FLOAT", i[i.INT = 1] = "INT", i[i.UINT = 2] = "UINT";
@@ -1332,90 +1332,90 @@ var ji = { exports: {} };
1332
1332
  function C(I) {
1333
1333
  throw RangeError(y[I]);
1334
1334
  }
1335
- function w(I, P) {
1336
- for (var N = I.length, q = []; N--; )
1337
- q[N] = P(I[N]);
1335
+ function S(I, P) {
1336
+ for (var B = I.length, q = []; B--; )
1337
+ q[B] = P(I[B]);
1338
1338
  return q;
1339
1339
  }
1340
- function S(I, P) {
1341
- var N = I.split("@"), q = "";
1342
- N.length > 1 && (q = N[0] + "@", I = N[1]), I = I.replace(g, ".");
1343
- var $ = I.split("."), dt = w($, P).join(".");
1340
+ function w(I, P) {
1341
+ var B = I.split("@"), q = "";
1342
+ B.length > 1 && (q = B[0] + "@", I = B[1]), I = I.replace(g, ".");
1343
+ var $ = I.split("."), dt = S($, P).join(".");
1344
1344
  return q + dt;
1345
1345
  }
1346
- function R(I) {
1347
- for (var P = [], N = 0, q = I.length, $, dt; N < q; )
1348
- $ = I.charCodeAt(N++), $ >= 55296 && $ <= 56319 && N < q ? (dt = I.charCodeAt(N++), (dt & 64512) == 56320 ? P.push((($ & 1023) << 10) + (dt & 1023) + 65536) : (P.push($), N--)) : P.push($);
1346
+ function D(I) {
1347
+ for (var P = [], B = 0, q = I.length, $, dt; B < q; )
1348
+ $ = I.charCodeAt(B++), $ >= 55296 && $ <= 56319 && B < q ? (dt = I.charCodeAt(B++), (dt & 64512) == 56320 ? P.push((($ & 1023) << 10) + (dt & 1023) + 65536) : (P.push($), B--)) : P.push($);
1349
1349
  return P;
1350
1350
  }
1351
- function D(I) {
1352
- return w(I, function(P) {
1353
- var N = "";
1354
- return P > 65535 && (P -= 65536, N += T(P >>> 10 & 1023 | 55296), P = 56320 | P & 1023), N += T(P), N;
1351
+ function R(I) {
1352
+ return S(I, function(P) {
1353
+ var B = "";
1354
+ return P > 65535 && (P -= 65536, B += T(P >>> 10 & 1023 | 55296), P = 56320 | P & 1023), B += T(P), B;
1355
1355
  }).join("");
1356
1356
  }
1357
- function B(I) {
1357
+ function N(I) {
1358
1358
  return I - 48 < 10 ? I - 22 : I - 65 < 26 ? I - 65 : I - 97 < 26 ? I - 97 : h;
1359
1359
  }
1360
1360
  function H(I, P) {
1361
1361
  return I + 22 + 75 * (I < 26) - ((P != 0) << 5);
1362
1362
  }
1363
- function M(I, P, N) {
1363
+ function M(I, P, B) {
1364
1364
  var q = 0;
1365
- for (I = N ? x(I / c) : I >> 1, I += x(I / P); I > b * l >> 1; q += h)
1365
+ for (I = B ? x(I / c) : I >> 1, I += x(I / P); I > b * l >> 1; q += h)
1366
1366
  I = x(I / b);
1367
1367
  return x(q + (b + 1) * I / (I + f));
1368
1368
  }
1369
1369
  function O(I) {
1370
- var P = [], N = I.length, q, $ = 0, dt = p, nt = d, at, xt, Tt, pt, Q, rt, st, z, St;
1371
- for (at = I.lastIndexOf(v), at < 0 && (at = 0), xt = 0; xt < at; ++xt)
1370
+ var P = [], B = I.length, q, $ = 0, dt = p, at = d, st, xt, Tt, pt, Q, it, ot, z, St;
1371
+ for (st = I.lastIndexOf(v), st < 0 && (st = 0), xt = 0; xt < st; ++xt)
1372
1372
  I.charCodeAt(xt) >= 128 && C("not-basic"), P.push(I.charCodeAt(xt));
1373
- for (Tt = at > 0 ? at + 1 : 0; Tt < N; ) {
1374
- for (pt = $, Q = 1, rt = h; Tt >= N && C("invalid-input"), st = B(I.charCodeAt(Tt++)), (st >= h || st > x((o - $) / Q)) && C("overflow"), $ += st * Q, z = rt <= nt ? u : rt >= nt + l ? l : rt - nt, !(st < z); rt += h)
1373
+ for (Tt = st > 0 ? st + 1 : 0; Tt < B; ) {
1374
+ for (pt = $, Q = 1, it = h; Tt >= B && C("invalid-input"), ot = N(I.charCodeAt(Tt++)), (ot >= h || ot > x((o - $) / Q)) && C("overflow"), $ += ot * Q, z = it <= at ? u : it >= at + l ? l : it - at, !(ot < z); it += h)
1375
1375
  St = h - z, Q > x(o / St) && C("overflow"), Q *= St;
1376
- q = P.length + 1, nt = M($ - pt, q, pt == 0), x($ / q) > o - dt && C("overflow"), dt += x($ / q), $ %= q, P.splice($++, 0, dt);
1377
- }
1378
- return D(P);
1379
- }
1380
- function G(I) {
1381
- var P, N, q, $, dt, nt, at, xt, Tt, pt, Q, rt = [], st, z, St, Rt;
1382
- for (I = R(I), st = I.length, P = p, N = 0, dt = d, nt = 0; nt < st; ++nt)
1383
- Q = I[nt], Q < 128 && rt.push(T(Q));
1384
- for (q = $ = rt.length, $ && rt.push(v); q < st; ) {
1385
- for (at = o, nt = 0; nt < st; ++nt)
1386
- Q = I[nt], Q >= P && Q < at && (at = Q);
1387
- for (z = q + 1, at - P > x((o - N) / z) && C("overflow"), N += (at - P) * z, P = at, nt = 0; nt < st; ++nt)
1388
- if (Q = I[nt], Q < P && ++N > o && C("overflow"), Q == P) {
1389
- for (xt = N, Tt = h; pt = Tt <= dt ? u : Tt >= dt + l ? l : Tt - dt, !(xt < pt); Tt += h)
1390
- Rt = xt - pt, St = h - pt, rt.push(
1376
+ q = P.length + 1, at = M($ - pt, q, pt == 0), x($ / q) > o - dt && C("overflow"), dt += x($ / q), $ %= q, P.splice($++, 0, dt);
1377
+ }
1378
+ return R(P);
1379
+ }
1380
+ function L(I) {
1381
+ var P, B, q, $, dt, at, st, xt, Tt, pt, Q, it = [], ot, z, St, Rt;
1382
+ for (I = D(I), ot = I.length, P = p, B = 0, dt = d, at = 0; at < ot; ++at)
1383
+ Q = I[at], Q < 128 && it.push(T(Q));
1384
+ for (q = $ = it.length, $ && it.push(v); q < ot; ) {
1385
+ for (st = o, at = 0; at < ot; ++at)
1386
+ Q = I[at], Q >= P && Q < st && (st = Q);
1387
+ for (z = q + 1, st - P > x((o - B) / z) && C("overflow"), B += (st - P) * z, P = st, at = 0; at < ot; ++at)
1388
+ if (Q = I[at], Q < P && ++B > o && C("overflow"), Q == P) {
1389
+ for (xt = B, Tt = h; pt = Tt <= dt ? u : Tt >= dt + l ? l : Tt - dt, !(xt < pt); Tt += h)
1390
+ Rt = xt - pt, St = h - pt, it.push(
1391
1391
  T(H(pt + Rt % St, 0))
1392
1392
  ), xt = x(Rt / St);
1393
- rt.push(T(H(xt, 0))), dt = M(N, z, q == $), N = 0, ++q;
1393
+ it.push(T(H(xt, 0))), dt = M(B, z, q == $), B = 0, ++q;
1394
1394
  }
1395
- ++N, ++P;
1395
+ ++B, ++P;
1396
1396
  }
1397
- return rt.join("");
1397
+ return it.join("");
1398
1398
  }
1399
- function ot(I) {
1400
- return S(I, function(P) {
1399
+ function rt(I) {
1400
+ return w(I, function(P) {
1401
1401
  return _.test(P) ? O(P.slice(4).toLowerCase()) : P;
1402
1402
  });
1403
1403
  }
1404
1404
  function j(I) {
1405
- return S(I, function(P) {
1406
- return m.test(P) ? "xn--" + G(P) : P;
1405
+ return w(I, function(P) {
1406
+ return m.test(P) ? "xn--" + L(P) : P;
1407
1407
  });
1408
1408
  }
1409
1409
  if (s = {
1410
1410
  version: "1.3.2",
1411
1411
  ucs2: {
1412
- decode: R,
1413
- encode: D
1412
+ decode: D,
1413
+ encode: R
1414
1414
  },
1415
1415
  decode: O,
1416
- encode: G,
1416
+ encode: L,
1417
1417
  toASCII: j,
1418
- toUnicode: ot
1418
+ toUnicode: rt
1419
1419
  }, r && n)
1420
1420
  if (i.exports == r)
1421
1421
  n.exports = s;
@@ -1550,30 +1550,30 @@ Nt.prototype.parse = function(i, e, t) {
1550
1550
  for (var x = "", T = 0, E = b.length; T < E; T++)
1551
1551
  b.charCodeAt(T) > 127 ? x += "x" : x += b[T];
1552
1552
  if (!x.match(Jn)) {
1553
- var C = g.slice(0, d), w = g.slice(d + 1), S = b.match(Qo);
1554
- S && (C.push(S[1]), w.unshift(S[2])), w.length && (o = "/" + w.join(".") + o), this.hostname = C.join(".");
1553
+ var C = g.slice(0, d), S = g.slice(d + 1), w = b.match(Qo);
1554
+ w && (C.push(w[1]), S.unshift(w[2])), S.length && (o = "/" + S.join(".") + o), this.hostname = C.join(".");
1555
1555
  break;
1556
1556
  }
1557
1557
  }
1558
1558
  }
1559
1559
  this.hostname.length > Jo ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), m || (this.hostname = jo.toASCII(this.hostname));
1560
- var R = this.port ? ":" + this.port : "", D = this.hostname || "";
1561
- this.host = D + R, this.href += this.host, m && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), o[0] !== "/" && (o = "/" + o));
1560
+ var D = this.port ? ":" + this.port : "", R = this.hostname || "";
1561
+ this.host = R + D, this.href += this.host, m && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), o[0] !== "/" && (o = "/" + o));
1562
1562
  }
1563
1563
  if (!th[l])
1564
1564
  for (var d = 0, y = Vi.length; d < y; d++) {
1565
- var B = Vi[d];
1566
- if (o.indexOf(B) !== -1) {
1567
- var H = encodeURIComponent(B);
1568
- H === B && (H = escape(B)), o = o.split(B).join(H);
1565
+ var N = Vi[d];
1566
+ if (o.indexOf(N) !== -1) {
1567
+ var H = encodeURIComponent(N);
1568
+ H === N && (H = escape(N)), o = o.split(N).join(H);
1569
1569
  }
1570
1570
  }
1571
1571
  var M = o.indexOf("#");
1572
1572
  M !== -1 && (this.hash = o.substr(M), o = o.slice(0, M));
1573
1573
  var O = o.indexOf("?");
1574
1574
  if (O !== -1 ? (this.search = o.substr(O), this.query = o.substr(O + 1), e && (this.query = zi.parse(this.query)), o = o.slice(0, O)) : e && (this.search = "", this.query = {}), o && (this.pathname = o), De[l] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
1575
- var R = this.pathname || "", G = this.search || "";
1576
- this.path = R + G;
1575
+ var D = this.pathname || "", L = this.search || "";
1576
+ this.path = D + L;
1577
1577
  }
1578
1578
  return this.href = this.format(), this;
1579
1579
  };
@@ -1649,19 +1649,19 @@ Nt.prototype.resolveObject = function(i) {
1649
1649
  }
1650
1650
  if (!g.length)
1651
1651
  return t.pathname = null, t.search ? t.path = "/" + t.search : t.path = null, t.href = t.format(), t;
1652
- for (var T = g.slice(-1)[0], E = (t.host || i.host || g.length > 1) && (T === "." || T === "..") || T === "", C = 0, w = g.length; w >= 0; w--)
1653
- T = g[w], T === "." ? g.splice(w, 1) : T === ".." ? (g.splice(w, 1), C++) : C && (g.splice(w, 1), C--);
1652
+ for (var T = g.slice(-1)[0], E = (t.host || i.host || g.length > 1) && (T === "." || T === "..") || T === "", C = 0, S = g.length; S >= 0; S--)
1653
+ T = g[S], T === "." ? g.splice(S, 1) : T === ".." ? (g.splice(S, 1), C++) : C && (g.splice(S, 1), C--);
1654
1654
  if (!_ && !m)
1655
1655
  for (; C--; C)
1656
1656
  g.unshift("..");
1657
1657
  _ && g[0] !== "" && (!g[0] || g[0].charAt(0) !== "/") && g.unshift(""), E && g.join("/").substr(-1) !== "/" && g.push("");
1658
- var S = g[0] === "" || g[0] && g[0].charAt(0) === "/";
1658
+ var w = g[0] === "" || g[0] && g[0].charAt(0) === "/";
1659
1659
  if (b) {
1660
- t.hostname = t.host = S ? "" : g.length ? g.shift() : "";
1660
+ t.hostname = t.host = w ? "" : g.length ? g.shift() : "";
1661
1661
  var x = t.host && t.host.indexOf("@") > 0 ? t.host.split("@") : !1;
1662
1662
  x && (t.auth = x.shift(), t.host = t.hostname = x.shift());
1663
1663
  }
1664
- return _ = _ || t.host && g.length, _ && !S && g.unshift(""), g.length ? t.pathname = g.join("/") : (t.pathname = null, t.path = null), (!Xt.isNull(t.pathname) || !Xt.isNull(t.search)) && (t.path = (t.pathname ? t.pathname : "") + (t.search ? t.search : "")), t.auth = i.auth || t.auth, t.slashes = t.slashes || i.slashes, t.href = t.format(), t;
1664
+ return _ = _ || t.host && g.length, _ && !w && g.unshift(""), g.length ? t.pathname = g.join("/") : (t.pathname = null, t.path = null), (!Xt.isNull(t.pathname) || !Xt.isNull(t.search)) && (t.path = (t.pathname ? t.pathname : "") + (t.search ? t.search : "")), t.auth = i.auth || t.auth, t.slashes = t.slashes || i.slashes, t.href = t.format(), t;
1665
1665
  };
1666
1666
  Nt.prototype.parseHost = function() {
1667
1667
  var i = this.host, e = qo.exec(i);
@@ -1887,7 +1887,7 @@ function ss(i) {
1887
1887
  function Yl() {
1888
1888
  for (var i = [], e = [], t = 0; t < 32; t++)
1889
1889
  i[t] = t, e[t] = t;
1890
- i[U.NORMAL_NPM] = U.NORMAL, i[U.ADD_NPM] = U.ADD, i[U.SCREEN_NPM] = U.SCREEN, e[U.NORMAL] = U.NORMAL_NPM, e[U.ADD] = U.ADD_NPM, e[U.SCREEN] = U.SCREEN_NPM;
1890
+ i[G.NORMAL_NPM] = G.NORMAL, i[G.ADD_NPM] = G.ADD, i[G.SCREEN_NPM] = G.SCREEN, e[G.NORMAL] = G.NORMAL_NPM, e[G.ADD] = G.ADD_NPM, e[G.SCREEN] = G.SCREEN_NPM;
1891
1891
  var r = [];
1892
1892
  return r.push(e), r.push(i), r;
1893
1893
  }
@@ -2884,7 +2884,7 @@ var Qe = function() {
2884
2884
  var n = i.call(this) || this;
2885
2885
  r = r || {};
2886
2886
  var a = r.alphaMode, s = r.mipmap, o = r.anisotropicLevel, h = r.scaleMode, u = r.width, l = r.height, f = r.wrapMode, c = r.format, d = r.type, p = r.target, v = r.resolution, _ = r.resourceOptions;
2887
- return t && !(t instanceof Qe) && (t = cs(t, _), t.internal = !0), n.resolution = v || F.RESOLUTION, n.width = Math.round((u || 0) * n.resolution) / n.resolution, n.height = Math.round((l || 0) * n.resolution) / n.resolution, n._mipmap = s !== void 0 ? s : F.MIPMAP_TEXTURES, n.anisotropicLevel = o !== void 0 ? o : F.ANISOTROPIC_LEVEL, n._wrapMode = f || F.WRAP_MODE, n._scaleMode = h !== void 0 ? h : F.SCALE_MODE, n.format = c || A.RGBA, n.type = d || L.UNSIGNED_BYTE, n.target = p || ge.TEXTURE_2D, n.alphaMode = a !== void 0 ? a : Ut.UNPACK, n.uid = be(), n.touched = 0, n.isPowerOfTwo = !1, n._refreshPOT(), n._glTextures = {}, n.dirtyId = 0, n.dirtyStyleId = 0, n.cacheId = null, n.valid = u > 0 && l > 0, n.textureCacheIds = [], n.destroyed = !1, n.resource = null, n._batchEnabled = 0, n._batchLocation = 0, n.parentTextureArray = null, n.setResource(t), n;
2887
+ return t && !(t instanceof Qe) && (t = cs(t, _), t.internal = !0), n.resolution = v || F.RESOLUTION, n.width = Math.round((u || 0) * n.resolution) / n.resolution, n.height = Math.round((l || 0) * n.resolution) / n.resolution, n._mipmap = s !== void 0 ? s : F.MIPMAP_TEXTURES, n.anisotropicLevel = o !== void 0 ? o : F.ANISOTROPIC_LEVEL, n._wrapMode = f || F.WRAP_MODE, n._scaleMode = h !== void 0 ? h : F.SCALE_MODE, n.format = c || A.RGBA, n.type = d || U.UNSIGNED_BYTE, n.target = p || ge.TEXTURE_2D, n.alphaMode = a !== void 0 ? a : Ut.UNPACK, n.uid = be(), n.touched = 0, n.isPowerOfTwo = !1, n._refreshPOT(), n._glTextures = {}, n.dirtyId = 0, n.dirtyStyleId = 0, n.cacheId = null, n.valid = u > 0 && l > 0, n.textureCacheIds = [], n.destroyed = !1, n.resource = null, n._batchEnabled = 0, n._batchLocation = 0, n.parentTextureArray = null, n.setResource(t), n;
2888
2888
  }
2889
2889
  return Object.defineProperty(e.prototype, "realWidth", {
2890
2890
  get: function() {
@@ -2971,7 +2971,7 @@ var Qe = function() {
2971
2971
  return h || (h = new e(t, r), h.cacheId = s, e.addToCache(h, s)), h;
2972
2972
  }, e.fromBuffer = function(t, r, n, a) {
2973
2973
  t = t || new Float32Array(r * n * 4);
2974
- var s = new sr(t, { width: r, height: n }), o = t instanceof Float32Array ? L.FLOAT : L.UNSIGNED_BYTE;
2974
+ var s = new sr(t, { width: r, height: n }), o = t instanceof Float32Array ? U.FLOAT : U.UNSIGNED_BYTE;
2975
2975
  return new e(s, Object.assign({}, rf, a || { width: r, height: n, type: o }));
2976
2976
  }, e.addToCache = function(t, r) {
2977
2977
  r && (t.textureCacheIds.indexOf(r) === -1 && t.textureCacheIds.push(r), he[r] && console.warn("BaseTexture added to the cache with an id [" + r + "] that already had an entry"), he[r] = t);
@@ -3366,7 +3366,7 @@ var lf = function(i) {
3366
3366
  height: this.height,
3367
3367
  mipmap: Lt.OFF,
3368
3368
  format: A.DEPTH_COMPONENT,
3369
- type: L.UNSIGNED_SHORT
3369
+ type: U.UNSIGNED_SHORT
3370
3370
  }), this.dirtyId++, this.dirtyFormat++, this;
3371
3371
  }, i.prototype.enableDepth = function() {
3372
3372
  return this.depth = !0, this.dirtyId++, this.dirtyFormat++, this;
@@ -3438,7 +3438,7 @@ var k = function(i) {
3438
3438
  h._rotate = 2;
3439
3439
  else if (h._rotate % 2 !== 0)
3440
3440
  throw new Error("attempt to use diamond-shaped UVs. If you are sure, set rotation manually");
3441
- return h.defaultAnchor = o ? new it(o.x, o.y) : new it(0, 0), h._updateID = 0, h.textureCacheIds = [], t.valid ? h.noFrame ? t.valid && h.onBaseTextureUpdated(t) : h.frame = r : t.once("loaded", h.onBaseTextureUpdated, h), h.noFrame && t.on("update", h.onBaseTextureUpdated, h), h;
3441
+ return h.defaultAnchor = o ? new nt(o.x, o.y) : new nt(0, 0), h._updateID = 0, h.textureCacheIds = [], t.valid ? h.noFrame ? t.valid && h.onBaseTextureUpdated(t) : h.frame = r : t.once("loaded", h.onBaseTextureUpdated, h), h.noFrame && t.on("update", h.onBaseTextureUpdated, h), h;
3442
3442
  }
3443
3443
  return e.prototype.update = function() {
3444
3444
  this.baseTexture.resource && this.baseTexture.resource.update();
@@ -3671,7 +3671,7 @@ var k = function(i) {
3671
3671
  }, i.SCREEN_KEY = -1, i;
3672
3672
  }(), oa = function() {
3673
3673
  function i(e, t, r, n, a, s, o) {
3674
- t === void 0 && (t = 0), r === void 0 && (r = !1), n === void 0 && (n = L.FLOAT), this.buffer = e, this.size = t, this.normalized = r, this.type = n, this.stride = a, this.start = s, this.instance = o;
3674
+ t === void 0 && (t = 0), r === void 0 && (r = !1), n === void 0 && (n = U.FLOAT), this.buffer = e, this.size = t, this.normalized = r, this.type = n, this.stride = a, this.start = s, this.instance = o;
3675
3675
  }
3676
3676
  return i.prototype.destroy = function() {
3677
3677
  this.buffer = null;
@@ -3880,7 +3880,7 @@ var ha = { 5126: 4, 5123: 2, 5121: 1 }, vf = 0, _f = {
3880
3880
  return i.prototype.clear = function() {
3881
3881
  this.target = null, this.filters = null, this.renderTexture = null;
3882
3882
  }, i;
3883
- }(), gr = [new it(), new it(), new it(), new it()], li = new yt(), xf = function() {
3883
+ }(), gr = [new nt(), new nt(), new nt(), new nt()], li = new yt(), xf = function() {
3884
3884
  function i(e) {
3885
3885
  this.renderer = e, this.defaultFilterStack = [{}], this.texturePool = new ff(), this.texturePool.setScreenSize(e.view), this.statePool = [], this.quad = new mf(), this.quadUv = new ms(), this.tempRect = new W(), this.activeState = {}, this.globalUniforms = new ye({
3886
3886
  outputFrame: new W(),
@@ -5049,7 +5049,7 @@ void main(void){
5049
5049
  }, i;
5050
5050
  }(), di = 0, pi = 1, vi = 2, _i = 3, mi = 4, gi = 5, we = function() {
5051
5051
  function i() {
5052
- this.data = 0, this.blendMode = U.NORMAL, this.polygonOffset = 0, this.blend = !0, this.depthMask = !0;
5052
+ this.data = 0, this.blendMode = G.NORMAL, this.polygonOffset = 0, this.blend = !0, this.depthMask = !0;
5053
5053
  }
5054
5054
  return Object.defineProperty(i.prototype, "blend", {
5055
5055
  get: function() {
@@ -5110,7 +5110,7 @@ void main(void){
5110
5110
  return this._blendMode;
5111
5111
  },
5112
5112
  set: function(e) {
5113
- this.blend = e !== U.NONE, this._blendMode = e;
5113
+ this.blend = e !== G.NONE, this._blendMode = e;
5114
5114
  },
5115
5115
  enumerable: !1,
5116
5116
  configurable: !0
@@ -5771,11 +5771,11 @@ var oc = 0, Tr = { textureCount: 0, uboCount: 0 }, hc = function() {
5771
5771
  }, i;
5772
5772
  }();
5773
5773
  function uc(i, e) {
5774
- return e === void 0 && (e = []), e[U.NORMAL] = [i.ONE, i.ONE_MINUS_SRC_ALPHA], e[U.ADD] = [i.ONE, i.ONE], e[U.MULTIPLY] = [i.DST_COLOR, i.ONE_MINUS_SRC_ALPHA, i.ONE, i.ONE_MINUS_SRC_ALPHA], e[U.SCREEN] = [i.ONE, i.ONE_MINUS_SRC_COLOR, i.ONE, i.ONE_MINUS_SRC_ALPHA], e[U.OVERLAY] = [i.ONE, i.ONE_MINUS_SRC_ALPHA], e[U.DARKEN] = [i.ONE, i.ONE_MINUS_SRC_ALPHA], e[U.LIGHTEN] = [i.ONE, i.ONE_MINUS_SRC_ALPHA], e[U.COLOR_DODGE] = [i.ONE, i.ONE_MINUS_SRC_ALPHA], e[U.COLOR_BURN] = [i.ONE, i.ONE_MINUS_SRC_ALPHA], e[U.HARD_LIGHT] = [i.ONE, i.ONE_MINUS_SRC_ALPHA], e[U.SOFT_LIGHT] = [i.ONE, i.ONE_MINUS_SRC_ALPHA], e[U.DIFFERENCE] = [i.ONE, i.ONE_MINUS_SRC_ALPHA], e[U.EXCLUSION] = [i.ONE, i.ONE_MINUS_SRC_ALPHA], e[U.HUE] = [i.ONE, i.ONE_MINUS_SRC_ALPHA], e[U.SATURATION] = [i.ONE, i.ONE_MINUS_SRC_ALPHA], e[U.COLOR] = [i.ONE, i.ONE_MINUS_SRC_ALPHA], e[U.LUMINOSITY] = [i.ONE, i.ONE_MINUS_SRC_ALPHA], e[U.NONE] = [0, 0], e[U.NORMAL_NPM] = [i.SRC_ALPHA, i.ONE_MINUS_SRC_ALPHA, i.ONE, i.ONE_MINUS_SRC_ALPHA], e[U.ADD_NPM] = [i.SRC_ALPHA, i.ONE, i.ONE, i.ONE], e[U.SCREEN_NPM] = [i.SRC_ALPHA, i.ONE_MINUS_SRC_COLOR, i.ONE, i.ONE_MINUS_SRC_ALPHA], e[U.SRC_IN] = [i.DST_ALPHA, i.ZERO], e[U.SRC_OUT] = [i.ONE_MINUS_DST_ALPHA, i.ZERO], e[U.SRC_ATOP] = [i.DST_ALPHA, i.ONE_MINUS_SRC_ALPHA], e[U.DST_OVER] = [i.ONE_MINUS_DST_ALPHA, i.ONE], e[U.DST_IN] = [i.ZERO, i.SRC_ALPHA], e[U.DST_OUT] = [i.ZERO, i.ONE_MINUS_SRC_ALPHA], e[U.DST_ATOP] = [i.ONE_MINUS_DST_ALPHA, i.SRC_ALPHA], e[U.XOR] = [i.ONE_MINUS_DST_ALPHA, i.ONE_MINUS_SRC_ALPHA], e[U.SUBTRACT] = [i.ONE, i.ONE, i.ONE, i.ONE, i.FUNC_REVERSE_SUBTRACT, i.FUNC_ADD], e;
5774
+ return e === void 0 && (e = []), e[G.NORMAL] = [i.ONE, i.ONE_MINUS_SRC_ALPHA], e[G.ADD] = [i.ONE, i.ONE], e[G.MULTIPLY] = [i.DST_COLOR, i.ONE_MINUS_SRC_ALPHA, i.ONE, i.ONE_MINUS_SRC_ALPHA], e[G.SCREEN] = [i.ONE, i.ONE_MINUS_SRC_COLOR, i.ONE, i.ONE_MINUS_SRC_ALPHA], e[G.OVERLAY] = [i.ONE, i.ONE_MINUS_SRC_ALPHA], e[G.DARKEN] = [i.ONE, i.ONE_MINUS_SRC_ALPHA], e[G.LIGHTEN] = [i.ONE, i.ONE_MINUS_SRC_ALPHA], e[G.COLOR_DODGE] = [i.ONE, i.ONE_MINUS_SRC_ALPHA], e[G.COLOR_BURN] = [i.ONE, i.ONE_MINUS_SRC_ALPHA], e[G.HARD_LIGHT] = [i.ONE, i.ONE_MINUS_SRC_ALPHA], e[G.SOFT_LIGHT] = [i.ONE, i.ONE_MINUS_SRC_ALPHA], e[G.DIFFERENCE] = [i.ONE, i.ONE_MINUS_SRC_ALPHA], e[G.EXCLUSION] = [i.ONE, i.ONE_MINUS_SRC_ALPHA], e[G.HUE] = [i.ONE, i.ONE_MINUS_SRC_ALPHA], e[G.SATURATION] = [i.ONE, i.ONE_MINUS_SRC_ALPHA], e[G.COLOR] = [i.ONE, i.ONE_MINUS_SRC_ALPHA], e[G.LUMINOSITY] = [i.ONE, i.ONE_MINUS_SRC_ALPHA], e[G.NONE] = [0, 0], e[G.NORMAL_NPM] = [i.SRC_ALPHA, i.ONE_MINUS_SRC_ALPHA, i.ONE, i.ONE_MINUS_SRC_ALPHA], e[G.ADD_NPM] = [i.SRC_ALPHA, i.ONE, i.ONE, i.ONE], e[G.SCREEN_NPM] = [i.SRC_ALPHA, i.ONE_MINUS_SRC_COLOR, i.ONE, i.ONE_MINUS_SRC_ALPHA], e[G.SRC_IN] = [i.DST_ALPHA, i.ZERO], e[G.SRC_OUT] = [i.ONE_MINUS_DST_ALPHA, i.ZERO], e[G.SRC_ATOP] = [i.DST_ALPHA, i.ONE_MINUS_SRC_ALPHA], e[G.DST_OVER] = [i.ONE_MINUS_DST_ALPHA, i.ONE], e[G.DST_IN] = [i.ZERO, i.SRC_ALPHA], e[G.DST_OUT] = [i.ZERO, i.ONE_MINUS_SRC_ALPHA], e[G.DST_ATOP] = [i.ONE_MINUS_DST_ALPHA, i.SRC_ALPHA], e[G.XOR] = [i.ONE_MINUS_DST_ALPHA, i.ONE_MINUS_SRC_ALPHA], e[G.SUBTRACT] = [i.ONE, i.ONE, i.ONE, i.ONE, i.FUNC_REVERSE_SUBTRACT, i.FUNC_ADD], e;
5775
5775
  }
5776
5776
  var lc = 0, fc = 1, cc = 2, dc = 3, pc = 4, vc = 5, _c = function() {
5777
5777
  function i() {
5778
- this.gl = null, this.stateId = 0, this.polygonOffset = 0, this.blendMode = U.NONE, this._blendEq = !1, this.map = [], this.map[lc] = this.setBlend, this.map[fc] = this.setOffset, this.map[cc] = this.setCullFace, this.map[dc] = this.setDepthTest, this.map[pc] = this.setFrontFace, this.map[vc] = this.setDepthMask, this.checks = [], this.defaultState = new we(), this.defaultState.blend = !0;
5778
+ this.gl = null, this.stateId = 0, this.polygonOffset = 0, this.blendMode = G.NONE, this._blendEq = !1, this.map = [], this.map[lc] = this.setBlend, this.map[fc] = this.setOffset, this.map[cc] = this.setCullFace, this.map[dc] = this.setDepthTest, this.map[pc] = this.setFrontFace, this.map[vc] = this.setDepthMask, this.checks = [], this.defaultState = new we(), this.defaultState.blend = !0;
5779
5779
  }
5780
5780
  return i.prototype.contextChange = function(e) {
5781
5781
  this.gl = e, this.blendModes = uc(e), this.set(this.defaultState), this.reset();
@@ -5853,11 +5853,11 @@ var lc = 0, fc = 1, cc = 2, dc = 3, pc = 4, vc = 5, _c = function() {
5853
5853
  }();
5854
5854
  function gc(i) {
5855
5855
  var e, t, r, n, a, s, o, h, u, l, f, c, d, p, v, _, m, g, y, b, x, T, E;
5856
- return "WebGL2RenderingContext" in globalThis && i instanceof globalThis.WebGL2RenderingContext ? E = (e = {}, e[L.UNSIGNED_BYTE] = (t = {}, t[A.RGBA] = i.RGBA8, t[A.RGB] = i.RGB8, t[A.RG] = i.RG8, t[A.RED] = i.R8, t[A.RGBA_INTEGER] = i.RGBA8UI, t[A.RGB_INTEGER] = i.RGB8UI, t[A.RG_INTEGER] = i.RG8UI, t[A.RED_INTEGER] = i.R8UI, t[A.ALPHA] = i.ALPHA, t[A.LUMINANCE] = i.LUMINANCE, t[A.LUMINANCE_ALPHA] = i.LUMINANCE_ALPHA, t), e[L.BYTE] = (r = {}, r[A.RGBA] = i.RGBA8_SNORM, r[A.RGB] = i.RGB8_SNORM, r[A.RG] = i.RG8_SNORM, r[A.RED] = i.R8_SNORM, r[A.RGBA_INTEGER] = i.RGBA8I, r[A.RGB_INTEGER] = i.RGB8I, r[A.RG_INTEGER] = i.RG8I, r[A.RED_INTEGER] = i.R8I, r), e[L.UNSIGNED_SHORT] = (n = {}, n[A.RGBA_INTEGER] = i.RGBA16UI, n[A.RGB_INTEGER] = i.RGB16UI, n[A.RG_INTEGER] = i.RG16UI, n[A.RED_INTEGER] = i.R16UI, n[A.DEPTH_COMPONENT] = i.DEPTH_COMPONENT16, n), e[L.SHORT] = (a = {}, a[A.RGBA_INTEGER] = i.RGBA16I, a[A.RGB_INTEGER] = i.RGB16I, a[A.RG_INTEGER] = i.RG16I, a[A.RED_INTEGER] = i.R16I, a), e[L.UNSIGNED_INT] = (s = {}, s[A.RGBA_INTEGER] = i.RGBA32UI, s[A.RGB_INTEGER] = i.RGB32UI, s[A.RG_INTEGER] = i.RG32UI, s[A.RED_INTEGER] = i.R32UI, s[A.DEPTH_COMPONENT] = i.DEPTH_COMPONENT24, s), e[L.INT] = (o = {}, o[A.RGBA_INTEGER] = i.RGBA32I, o[A.RGB_INTEGER] = i.RGB32I, o[A.RG_INTEGER] = i.RG32I, o[A.RED_INTEGER] = i.R32I, o), e[L.FLOAT] = (h = {}, h[A.RGBA] = i.RGBA32F, h[A.RGB] = i.RGB32F, h[A.RG] = i.RG32F, h[A.RED] = i.R32F, h[A.DEPTH_COMPONENT] = i.DEPTH_COMPONENT32F, h), e[L.HALF_FLOAT] = (u = {}, u[A.RGBA] = i.RGBA16F, u[A.RGB] = i.RGB16F, u[A.RG] = i.RG16F, u[A.RED] = i.R16F, u), e[L.UNSIGNED_SHORT_5_6_5] = (l = {}, l[A.RGB] = i.RGB565, l), e[L.UNSIGNED_SHORT_4_4_4_4] = (f = {}, f[A.RGBA] = i.RGBA4, f), e[L.UNSIGNED_SHORT_5_5_5_1] = (c = {}, c[A.RGBA] = i.RGB5_A1, c), e[L.UNSIGNED_INT_2_10_10_10_REV] = (d = {}, d[A.RGBA] = i.RGB10_A2, d[A.RGBA_INTEGER] = i.RGB10_A2UI, d), e[L.UNSIGNED_INT_10F_11F_11F_REV] = (p = {}, p[A.RGB] = i.R11F_G11F_B10F, p), e[L.UNSIGNED_INT_5_9_9_9_REV] = (v = {}, v[A.RGB] = i.RGB9_E5, v), e[L.UNSIGNED_INT_24_8] = (_ = {}, _[A.DEPTH_STENCIL] = i.DEPTH24_STENCIL8, _), e[L.FLOAT_32_UNSIGNED_INT_24_8_REV] = (m = {}, m[A.DEPTH_STENCIL] = i.DEPTH32F_STENCIL8, m), e) : E = (g = {}, g[L.UNSIGNED_BYTE] = (y = {}, y[A.RGBA] = i.RGBA, y[A.RGB] = i.RGB, y[A.ALPHA] = i.ALPHA, y[A.LUMINANCE] = i.LUMINANCE, y[A.LUMINANCE_ALPHA] = i.LUMINANCE_ALPHA, y), g[L.UNSIGNED_SHORT_5_6_5] = (b = {}, b[A.RGB] = i.RGB, b), g[L.UNSIGNED_SHORT_4_4_4_4] = (x = {}, x[A.RGBA] = i.RGBA, x), g[L.UNSIGNED_SHORT_5_5_5_1] = (T = {}, T[A.RGBA] = i.RGBA, T), g), E;
5856
+ return "WebGL2RenderingContext" in globalThis && i instanceof globalThis.WebGL2RenderingContext ? E = (e = {}, e[U.UNSIGNED_BYTE] = (t = {}, t[A.RGBA] = i.RGBA8, t[A.RGB] = i.RGB8, t[A.RG] = i.RG8, t[A.RED] = i.R8, t[A.RGBA_INTEGER] = i.RGBA8UI, t[A.RGB_INTEGER] = i.RGB8UI, t[A.RG_INTEGER] = i.RG8UI, t[A.RED_INTEGER] = i.R8UI, t[A.ALPHA] = i.ALPHA, t[A.LUMINANCE] = i.LUMINANCE, t[A.LUMINANCE_ALPHA] = i.LUMINANCE_ALPHA, t), e[U.BYTE] = (r = {}, r[A.RGBA] = i.RGBA8_SNORM, r[A.RGB] = i.RGB8_SNORM, r[A.RG] = i.RG8_SNORM, r[A.RED] = i.R8_SNORM, r[A.RGBA_INTEGER] = i.RGBA8I, r[A.RGB_INTEGER] = i.RGB8I, r[A.RG_INTEGER] = i.RG8I, r[A.RED_INTEGER] = i.R8I, r), e[U.UNSIGNED_SHORT] = (n = {}, n[A.RGBA_INTEGER] = i.RGBA16UI, n[A.RGB_INTEGER] = i.RGB16UI, n[A.RG_INTEGER] = i.RG16UI, n[A.RED_INTEGER] = i.R16UI, n[A.DEPTH_COMPONENT] = i.DEPTH_COMPONENT16, n), e[U.SHORT] = (a = {}, a[A.RGBA_INTEGER] = i.RGBA16I, a[A.RGB_INTEGER] = i.RGB16I, a[A.RG_INTEGER] = i.RG16I, a[A.RED_INTEGER] = i.R16I, a), e[U.UNSIGNED_INT] = (s = {}, s[A.RGBA_INTEGER] = i.RGBA32UI, s[A.RGB_INTEGER] = i.RGB32UI, s[A.RG_INTEGER] = i.RG32UI, s[A.RED_INTEGER] = i.R32UI, s[A.DEPTH_COMPONENT] = i.DEPTH_COMPONENT24, s), e[U.INT] = (o = {}, o[A.RGBA_INTEGER] = i.RGBA32I, o[A.RGB_INTEGER] = i.RGB32I, o[A.RG_INTEGER] = i.RG32I, o[A.RED_INTEGER] = i.R32I, o), e[U.FLOAT] = (h = {}, h[A.RGBA] = i.RGBA32F, h[A.RGB] = i.RGB32F, h[A.RG] = i.RG32F, h[A.RED] = i.R32F, h[A.DEPTH_COMPONENT] = i.DEPTH_COMPONENT32F, h), e[U.HALF_FLOAT] = (u = {}, u[A.RGBA] = i.RGBA16F, u[A.RGB] = i.RGB16F, u[A.RG] = i.RG16F, u[A.RED] = i.R16F, u), e[U.UNSIGNED_SHORT_5_6_5] = (l = {}, l[A.RGB] = i.RGB565, l), e[U.UNSIGNED_SHORT_4_4_4_4] = (f = {}, f[A.RGBA] = i.RGBA4, f), e[U.UNSIGNED_SHORT_5_5_5_1] = (c = {}, c[A.RGBA] = i.RGB5_A1, c), e[U.UNSIGNED_INT_2_10_10_10_REV] = (d = {}, d[A.RGBA] = i.RGB10_A2, d[A.RGBA_INTEGER] = i.RGB10_A2UI, d), e[U.UNSIGNED_INT_10F_11F_11F_REV] = (p = {}, p[A.RGB] = i.R11F_G11F_B10F, p), e[U.UNSIGNED_INT_5_9_9_9_REV] = (v = {}, v[A.RGB] = i.RGB9_E5, v), e[U.UNSIGNED_INT_24_8] = (_ = {}, _[A.DEPTH_STENCIL] = i.DEPTH24_STENCIL8, _), e[U.FLOAT_32_UNSIGNED_INT_24_8_REV] = (m = {}, m[A.DEPTH_STENCIL] = i.DEPTH32F_STENCIL8, m), e) : E = (g = {}, g[U.UNSIGNED_BYTE] = (y = {}, y[A.RGBA] = i.RGBA, y[A.RGB] = i.RGB, y[A.ALPHA] = i.ALPHA, y[A.LUMINANCE] = i.LUMINANCE, y[A.LUMINANCE_ALPHA] = i.LUMINANCE_ALPHA, y), g[U.UNSIGNED_SHORT_5_6_5] = (b = {}, b[A.RGB] = i.RGB, b), g[U.UNSIGNED_SHORT_4_4_4_4] = (x = {}, x[A.RGBA] = i.RGBA, x), g[U.UNSIGNED_SHORT_5_5_5_1] = (T = {}, T[A.RGBA] = i.RGBA, T), g), E;
5857
5857
  }
5858
5858
  var yi = function() {
5859
5859
  function i(e) {
5860
- this.texture = e, this.width = -1, this.height = -1, this.dirtyId = -1, this.dirtyStyleId = -1, this.mipmap = !1, this.wrapMode = 33071, this.type = L.UNSIGNED_BYTE, this.internalFormat = A.RGBA, this.samplerType = 0;
5860
+ this.texture = e, this.width = -1, this.height = -1, this.dirtyId = -1, this.dirtyStyleId = -1, this.mipmap = !1, this.wrapMode = 33071, this.type = U.UNSIGNED_BYTE, this.internalFormat = A.RGBA, this.samplerType = 0;
5861
5861
  }
5862
5862
  return i;
5863
5863
  }(), yc = function() {
@@ -5916,7 +5916,7 @@ var yi = function() {
5916
5916
  return t.dirtyId = -1, e._glTextures[this.CONTEXT_UID] = t, this.managedTextures.push(e), e.on("dispose", this.destroyTexture, this), t;
5917
5917
  }, i.prototype.initTextureType = function(e, t) {
5918
5918
  var r, n;
5919
- t.internalFormat = (n = (r = this.internalFormats[e.type]) === null || r === void 0 ? void 0 : r[e.format]) !== null && n !== void 0 ? n : e.format, this.webGLVersion === 2 && e.type === L.HALF_FLOAT ? t.type = this.gl.HALF_FLOAT : t.type = e.type;
5919
+ t.internalFormat = (n = (r = this.internalFormats[e.type]) === null || r === void 0 ? void 0 : r[e.format]) !== null && n !== void 0 ? n : e.format, this.webGLVersion === 2 && e.type === U.HALF_FLOAT ? t.type = this.gl.HALF_FLOAT : t.type = e.type;
5920
5920
  }, i.prototype.updateTexture = function(e) {
5921
5921
  var t = e._glTextures[this.CONTEXT_UID];
5922
5922
  if (t) {
@@ -6377,7 +6377,7 @@ else `), r < e - 1 && (t += "if(vTextureId < " + r + ".5)"), t += `
6377
6377
  function e(t) {
6378
6378
  t === void 0 && (t = !1);
6379
6379
  var r = i.call(this) || this;
6380
- return r._buffer = new gt(null, t, !1), r._indexBuffer = new gt(null, t, !0), r.addAttribute("aVertexPosition", r._buffer, 2, !1, L.FLOAT).addAttribute("aTextureCoord", r._buffer, 2, !1, L.FLOAT).addAttribute("aColor", r._buffer, 4, !0, L.UNSIGNED_BYTE).addAttribute("aTextureId", r._buffer, 1, !0, L.FLOAT).addIndex(r._indexBuffer), r;
6380
+ return r._buffer = new gt(null, t, !1), r._indexBuffer = new gt(null, t, !0), r.addAttribute("aVertexPosition", r._buffer, 2, !1, U.FLOAT).addAttribute("aTextureCoord", r._buffer, 2, !1, U.FLOAT).addAttribute("aColor", r._buffer, 4, !0, U.UNSIGNED_BYTE).addAttribute("aTextureId", r._buffer, 1, !0, U.FLOAT).addIndex(r._indexBuffer), r;
6381
6381
  }
6382
6382
  return e;
6383
6383
  }(or), ma = `precision highp float;
@@ -6555,7 +6555,7 @@ var Oc = 9, Er = 100, Mc = 0, Dc = 0, ya = 2, xa = 1, Fc = -1e3, Nc = -1e3, Bc =
6555
6555
  }();
6556
6556
  var ba = function() {
6557
6557
  function i() {
6558
- this.pressure = 0, this.rotationAngle = 0, this.twist = 0, this.tangentialPressure = 0, this.global = new it(), this.target = null, this.originalEvent = null, this.identifier = null, this.isPrimary = !1, this.button = 0, this.buttons = 0, this.width = 0, this.height = 0, this.tiltX = 0, this.tiltY = 0, this.pointerType = null, this.pressure = 0, this.rotationAngle = 0, this.twist = 0, this.tangentialPressure = 0;
6558
+ this.pressure = 0, this.rotationAngle = 0, this.twist = 0, this.tangentialPressure = 0, this.global = new nt(), this.target = null, this.originalEvent = null, this.identifier = null, this.isPrimary = !1, this.button = 0, this.buttons = 0, this.width = 0, this.height = 0, this.tiltX = 0, this.tiltY = 0, this.pointerType = null, this.pressure = 0, this.rotationAngle = 0, this.twist = 0, this.tangentialPressure = 0;
6559
6559
  }
6560
6560
  return Object.defineProperty(i.prototype, "pointerId", {
6561
6561
  get: function() {
@@ -6659,7 +6659,7 @@ var Gc = function() {
6659
6659
  }), i;
6660
6660
  }(), kc = function() {
6661
6661
  function i() {
6662
- this._tempPoint = new it();
6662
+ this._tempPoint = new nt();
6663
6663
  }
6664
6664
  return i.prototype.recursiveFindHit = function(e, t, r, n, a) {
6665
6665
  var s;
@@ -7918,11 +7918,11 @@ function Ed(i) {
7918
7918
  if (y === 1)
7919
7919
  x.push(new Uint8Array(i, T));
7920
7920
  else {
7921
- for (var E = zr[b], C = 0, w = a, S = n, R = 0; R < s; R++) {
7922
- var D = Math.max(1, w + 3 & -4), B = Math.max(1, S + 3 & -4), H = D * B * E;
7923
- C += H, w = w >>> 1, S = S >>> 1;
7921
+ for (var E = zr[b], C = 0, S = a, w = n, D = 0; D < s; D++) {
7922
+ var R = Math.max(1, S + 3 & -4), N = Math.max(1, w + 3 & -4), H = R * N * E;
7923
+ C += H, S = S >>> 1, w = w >>> 1;
7924
7924
  }
7925
- for (var M = T, R = 0; R < y; R++)
7925
+ for (var M = T, D = 0; D < y; D++)
7926
7926
  x.push(new Uint8Array(i, M, C)), M += C;
7927
7927
  }
7928
7928
  return x.map(function(O) {
@@ -7951,7 +7951,7 @@ var te, qt, je, Ca = [171, 75, 84, 88, 32, 49, 49, 187, 13, 10, 26, 10], wd = 67
7951
7951
  NUMBER_OF_FACES: 52,
7952
7952
  NUMBER_OF_MIPMAP_LEVELS: 56,
7953
7953
  BYTES_OF_KEY_VALUE_DATA: 60
7954
- }, on = 64, Ia = (te = {}, te[L.UNSIGNED_BYTE] = 1, te[L.UNSIGNED_SHORT] = 2, te[L.INT] = 4, te[L.UNSIGNED_INT] = 4, te[L.FLOAT] = 4, te[L.HALF_FLOAT] = 8, te), Sd = (qt = {}, qt[A.RGBA] = 4, qt[A.RGB] = 3, qt[A.RG] = 2, qt[A.RED] = 1, qt[A.LUMINANCE] = 1, qt[A.LUMINANCE_ALPHA] = 2, qt[A.ALPHA] = 1, qt), Pd = (je = {}, je[L.UNSIGNED_SHORT_4_4_4_4] = 2, je[L.UNSIGNED_SHORT_5_5_5_1] = 2, je[L.UNSIGNED_SHORT_5_6_5] = 2, je);
7954
+ }, on = 64, Ia = (te = {}, te[U.UNSIGNED_BYTE] = 1, te[U.UNSIGNED_SHORT] = 2, te[U.INT] = 4, te[U.UNSIGNED_INT] = 4, te[U.FLOAT] = 4, te[U.HALF_FLOAT] = 8, te), Sd = (qt = {}, qt[A.RGBA] = 4, qt[A.RGB] = 3, qt[A.RG] = 2, qt[A.RED] = 1, qt[A.LUMINANCE] = 1, qt[A.LUMINANCE_ALPHA] = 2, qt[A.ALPHA] = 1, qt), Pd = (je = {}, je[U.UNSIGNED_SHORT_4_4_4_4] = 2, je[U.UNSIGNED_SHORT_5_5_5_1] = 2, je[U.UNSIGNED_SHORT_5_6_5] = 2, je);
7955
7955
  function Rd(i, e, t) {
7956
7956
  t === void 0 && (t = !1);
7957
7957
  var r = new DataView(e);
@@ -7969,22 +7969,22 @@ function Rd(i, e, t) {
7969
7969
  var x;
7970
7970
  if (a !== 0 ? Ia[a] ? x = Ia[a] * Sd[s] : x = Pd[a] : x = zr[o], x === void 0)
7971
7971
  throw new Error("Unable to resolve the pixel format stored in the *.ktx file!");
7972
- for (var T = t ? Id(r, p, n) : null, E = b * x, C = E, w = h, S = u, R = m, D = g, B = on + p, H = 0; H < d; H++) {
7973
- for (var M = r.getUint32(B, n), O = B + 4, G = 0; G < f; G++) {
7974
- var ot = y[G];
7975
- ot || (ot = y[G] = new Array(d)), ot[H] = {
7972
+ for (var T = t ? Id(r, p, n) : null, E = b * x, C = E, S = h, w = u, D = m, R = g, N = on + p, H = 0; H < d; H++) {
7973
+ for (var M = r.getUint32(N, n), O = N + 4, L = 0; L < f; L++) {
7974
+ var rt = y[L];
7975
+ rt || (rt = y[L] = new Array(d)), rt[H] = {
7976
7976
  levelID: H,
7977
- levelWidth: d > 1 || a !== 0 ? w : R,
7978
- levelHeight: d > 1 || a !== 0 ? S : D,
7977
+ levelWidth: d > 1 || a !== 0 ? S : D,
7978
+ levelHeight: d > 1 || a !== 0 ? w : R,
7979
7979
  levelBuffer: new Uint8Array(e, O, C)
7980
7980
  }, O += C;
7981
7981
  }
7982
- B += M + 4, B = B % 4 !== 0 ? B + 4 - B % 4 : B, w = w >> 1 || 1, S = S >> 1 || 1, R = w + v - 1 & ~(v - 1), D = S + _ - 1 & ~(_ - 1), C = R * D * x;
7982
+ N += M + 4, N = N % 4 !== 0 ? N + 4 - N % 4 : N, S = S >> 1 || 1, w = w >> 1 || 1, D = S + v - 1 & ~(v - 1), R = w + _ - 1 & ~(_ - 1), C = D * R * x;
7983
7983
  }
7984
7984
  return a !== 0 ? {
7985
7985
  uncompressed: y.map(function(j) {
7986
7986
  var I = j[0].levelBuffer, P = !1;
7987
- return a === L.FLOAT ? I = new Float32Array(j[0].levelBuffer.buffer, j[0].levelBuffer.byteOffset, j[0].levelBuffer.byteLength / 4) : a === L.UNSIGNED_INT ? (P = !0, I = new Uint32Array(j[0].levelBuffer.buffer, j[0].levelBuffer.byteOffset, j[0].levelBuffer.byteLength / 4)) : a === L.INT && (P = !0, I = new Int32Array(j[0].levelBuffer.buffer, j[0].levelBuffer.byteOffset, j[0].levelBuffer.byteLength / 4)), {
7987
+ return a === U.FLOAT ? I = new Float32Array(j[0].levelBuffer.buffer, j[0].levelBuffer.byteOffset, j[0].levelBuffer.byteLength / 4) : a === U.UNSIGNED_INT ? (P = !0, I = new Uint32Array(j[0].levelBuffer.buffer, j[0].levelBuffer.byteOffset, j[0].levelBuffer.byteLength / 4)) : a === U.INT && (P = !0, I = new Int32Array(j[0].levelBuffer.buffer, j[0].levelBuffer.byteOffset, j[0].levelBuffer.byteLength / 4)), {
7988
7988
  resource: new sr(I, {
7989
7989
  width: j[0].levelWidth,
7990
7990
  height: j[0].levelHeight
@@ -8113,7 +8113,7 @@ function Os(i, e) {
8113
8113
  function e(t, r, n, a) {
8114
8114
  t === void 0 && (t = 1500), n === void 0 && (n = 16384), a === void 0 && (a = !1);
8115
8115
  var s = i.call(this) || this, o = 16384;
8116
- return n > o && (n = o), s._properties = [!1, !0, !1, !1, !1], s._maxSize = t, s._batchSize = n, s._buffers = null, s._bufferUpdateIDs = [], s._updateID = 0, s.interactiveChildren = !1, s.blendMode = U.NORMAL, s.autoResize = a, s.roundPixels = !0, s.baseTexture = null, s.setProperties(r), s._tint = 0, s.tintRgb = new Float32Array(4), s.tint = 16777215, s;
8116
+ return n > o && (n = o), s._properties = [!1, !0, !1, !1, !1], s._maxSize = t, s._batchSize = n, s._buffers = null, s._bufferUpdateIDs = [], s._updateID = 0, s.interactiveChildren = !1, s.blendMode = G.NORMAL, s.autoResize = a, s.roundPixels = !0, s.baseTexture = null, s.setProperties(r), s._tint = 0, s.tintRgb = new Float32Array(4), s.tint = 16777215, s;
8117
8117
  }
8118
8118
  return e.prototype.setProperties = function(t) {
8119
8119
  t && (this._properties[0] = "vertices" in t || "scale" in t ? !!t.vertices || !!t.scale : this._properties[0], this._properties[1] = "position" in t ? !!t.position : this._properties[1], this._properties[2] = "rotation" in t ? !!t.rotation : this._properties[2], this._properties[3] = "uvs" in t ? !!t.uvs : this._properties[3], this._properties[4] = "tint" in t || "alpha" in t ? !!t.tint || !!t.alpha : this._properties[4]);
@@ -8156,7 +8156,7 @@ var Oa = function() {
8156
8156
  attributeName: a.attributeName,
8157
8157
  size: a.size,
8158
8158
  uploadFunction: a.uploadFunction,
8159
- type: a.type || L.FLOAT,
8159
+ type: a.type || U.FLOAT,
8160
8160
  offset: a.offset
8161
8161
  }, t[n] ? this.dynamicProperties.push(a) : this.staticProperties.push(a);
8162
8162
  }
@@ -8181,22 +8181,22 @@ var Oa = function() {
8181
8181
  this.staticData = new Float32Array(o), this.staticDataUint32 = new Uint32Array(o), this.staticBuffer = new gt(this.staticData, !0, !1);
8182
8182
  for (var r = 0; r < this.dynamicProperties.length; ++r) {
8183
8183
  var n = this.dynamicProperties[r];
8184
- e.addAttribute(n.attributeName, this.dynamicBuffer, 0, n.type === L.UNSIGNED_BYTE, n.type, this.dynamicStride * 4, n.offset * 4);
8184
+ e.addAttribute(n.attributeName, this.dynamicBuffer, 0, n.type === U.UNSIGNED_BYTE, n.type, this.dynamicStride * 4, n.offset * 4);
8185
8185
  }
8186
8186
  for (var r = 0; r < this.staticProperties.length; ++r) {
8187
8187
  var n = this.staticProperties[r];
8188
- e.addAttribute(n.attributeName, this.staticBuffer, 0, n.type === L.UNSIGNED_BYTE, n.type, this.staticStride * 4, n.offset * 4);
8188
+ e.addAttribute(n.attributeName, this.staticBuffer, 0, n.type === U.UNSIGNED_BYTE, n.type, this.staticStride * 4, n.offset * 4);
8189
8189
  }
8190
8190
  }, i.prototype.uploadDynamic = function(e, t, r) {
8191
8191
  for (var n = 0; n < this.dynamicProperties.length; n++) {
8192
8192
  var a = this.dynamicProperties[n];
8193
- a.uploadFunction(e, t, r, a.type === L.UNSIGNED_BYTE ? this.dynamicDataUint32 : this.dynamicData, this.dynamicStride, a.offset);
8193
+ a.uploadFunction(e, t, r, a.type === U.UNSIGNED_BYTE ? this.dynamicDataUint32 : this.dynamicData, this.dynamicStride, a.offset);
8194
8194
  }
8195
8195
  this.dynamicBuffer._updateID++;
8196
8196
  }, i.prototype.uploadStatic = function(e, t, r) {
8197
8197
  for (var n = 0; n < this.staticProperties.length; n++) {
8198
8198
  var a = this.staticProperties[n];
8199
- a.uploadFunction(e, t, r, a.type === L.UNSIGNED_BYTE ? this.staticDataUint32 : this.staticData, this.staticStride, a.offset);
8199
+ a.uploadFunction(e, t, r, a.type === U.UNSIGNED_BYTE ? this.staticDataUint32 : this.staticData, this.staticStride, a.offset);
8200
8200
  }
8201
8201
  this.staticBuffer._updateID++;
8202
8202
  }, i.prototype.destroy = function() {
@@ -8267,7 +8267,7 @@ void main(void){
8267
8267
  {
8268
8268
  attributeName: "aColor",
8269
8269
  size: 1,
8270
- type: L.UNSIGNED_BYTE,
8270
+ type: U.UNSIGNED_BYTE,
8271
8271
  uploadFunction: r.uploadTint,
8272
8272
  offset: 0
8273
8273
  }
@@ -8447,8 +8447,8 @@ var Ds = {
8447
8447
  e[m++] = T, e[m++] = C, e[--g] = C, e[--g] = x;
8448
8448
  }
8449
8449
  }
8450
- for (var w = 1; w < d; w++) {
8451
- var S = Math.PI / 2 * (w / d), y = n + Math.cos(S) * s, b = a + Math.sin(S) * o, x = t + y, T = t - y, E = r + b, C = r - b;
8450
+ for (var S = 1; S < d; S++) {
8451
+ var w = Math.PI / 2 * (S / d), y = n + Math.cos(w) * s, b = a + Math.sin(w) * o, x = t + y, T = t - y, E = r + b, C = r - b;
8452
8452
  e[v++] = x, e[v++] = E, e[--_] = E, e[--_] = T, e[m++] = T, e[m++] = C, e[--g] = C, e[--g] = x;
8453
8453
  }
8454
8454
  {
@@ -8541,29 +8541,29 @@ function fe(i, e, t, r, n, a, s, o) {
8541
8541
  function Ud(i, e) {
8542
8542
  var t = i.shape, r = i.points || t.points.slice(), n = e.closePointEps;
8543
8543
  if (r.length !== 0) {
8544
- var a = i.lineStyle, s = new it(r[0], r[1]), o = new it(r[r.length - 2], r[r.length - 1]), h = t.type !== bt.POLY || t.closeStroke, u = Math.abs(s.x - o.x) < n && Math.abs(s.y - o.y) < n;
8544
+ var a = i.lineStyle, s = new nt(r[0], r[1]), o = new nt(r[r.length - 2], r[r.length - 1]), h = t.type !== bt.POLY || t.closeStroke, u = Math.abs(s.x - o.x) < n && Math.abs(s.y - o.y) < n;
8545
8545
  if (h) {
8546
8546
  r = r.slice(), u && (r.pop(), r.pop(), o.set(r[r.length - 2], r[r.length - 1]));
8547
8547
  var l = (s.x + o.x) * 0.5, f = (o.y + s.y) * 0.5;
8548
8548
  r.unshift(l, f), r.push(l, f);
8549
8549
  }
8550
- var c = e.points, d = r.length / 2, p = r.length, v = c.length / 2, _ = a.width / 2, m = _ * _, g = a.miterLimit * a.miterLimit, y = r[0], b = r[1], x = r[2], T = r[3], E = 0, C = 0, w = -(b - T), S = y - x, R = 0, D = 0, B = Math.sqrt(w * w + S * S);
8551
- w /= B, S /= B, w *= _, S *= _;
8550
+ var c = e.points, d = r.length / 2, p = r.length, v = c.length / 2, _ = a.width / 2, m = _ * _, g = a.miterLimit * a.miterLimit, y = r[0], b = r[1], x = r[2], T = r[3], E = 0, C = 0, S = -(b - T), w = y - x, D = 0, R = 0, N = Math.sqrt(S * S + w * w);
8551
+ S /= N, w /= N, S *= _, w *= _;
8552
8552
  var H = a.alignment, M = (1 - H) * 2, O = H * 2;
8553
- h || (a.cap === re.ROUND ? p += fe(y - w * (M - O) * 0.5, b - S * (M - O) * 0.5, y - w * M, b - S * M, y + w * O, b + S * O, c, !0) + 2 : a.cap === re.SQUARE && (p += Da(y, b, w, S, M, O, !0, c))), c.push(y - w * M, b - S * M), c.push(y + w * O, b + S * O);
8554
- for (var G = 1; G < d - 1; ++G) {
8555
- y = r[(G - 1) * 2], b = r[(G - 1) * 2 + 1], x = r[G * 2], T = r[G * 2 + 1], E = r[(G + 1) * 2], C = r[(G + 1) * 2 + 1], w = -(b - T), S = y - x, B = Math.sqrt(w * w + S * S), w /= B, S /= B, w *= _, S *= _, R = -(T - C), D = x - E, B = Math.sqrt(R * R + D * D), R /= B, D /= B, R *= _, D *= _;
8556
- var ot = x - y, j = b - T, I = x - E, P = C - T, N = ot * I + j * P, q = j * I - P * ot, $ = q < 0;
8557
- if (Math.abs(q) < 1e-3 * Math.abs(N)) {
8558
- c.push(x - w * M, T - S * M), c.push(x + w * O, T + S * O), N >= 0 && (a.join === Kt.ROUND ? p += fe(x, T, x - w * M, T - S * M, x - R * M, T - D * M, c, !1) + 4 : p += 2, c.push(x - R * O, T - D * O), c.push(x + R * M, T + D * M));
8553
+ h || (a.cap === re.ROUND ? p += fe(y - S * (M - O) * 0.5, b - w * (M - O) * 0.5, y - S * M, b - w * M, y + S * O, b + w * O, c, !0) + 2 : a.cap === re.SQUARE && (p += Da(y, b, S, w, M, O, !0, c))), c.push(y - S * M, b - w * M), c.push(y + S * O, b + w * O);
8554
+ for (var L = 1; L < d - 1; ++L) {
8555
+ y = r[(L - 1) * 2], b = r[(L - 1) * 2 + 1], x = r[L * 2], T = r[L * 2 + 1], E = r[(L + 1) * 2], C = r[(L + 1) * 2 + 1], S = -(b - T), w = y - x, N = Math.sqrt(S * S + w * w), S /= N, w /= N, S *= _, w *= _, D = -(T - C), R = x - E, N = Math.sqrt(D * D + R * R), D /= N, R /= N, D *= _, R *= _;
8556
+ var rt = x - y, j = b - T, I = x - E, P = C - T, B = rt * I + j * P, q = j * I - P * rt, $ = q < 0;
8557
+ if (Math.abs(q) < 1e-3 * Math.abs(B)) {
8558
+ c.push(x - S * M, T - w * M), c.push(x + S * O, T + w * O), B >= 0 && (a.join === Kt.ROUND ? p += fe(x, T, x - S * M, T - w * M, x - D * M, T - R * M, c, !1) + 4 : p += 2, c.push(x - D * O, T - R * O), c.push(x + D * M, T + R * M));
8559
8559
  continue;
8560
8560
  }
8561
- var dt = (-w + y) * (-S + T) - (-w + x) * (-S + b), nt = (-R + E) * (-D + T) - (-R + x) * (-D + C), at = (ot * nt - I * dt) / q, xt = (P * dt - j * nt) / q, Tt = (at - x) * (at - x) + (xt - T) * (xt - T), pt = x + (at - x) * M, Q = T + (xt - T) * M, rt = x - (at - x) * O, st = T - (xt - T) * O, z = Math.min(ot * ot + j * j, I * I + P * P), St = $ ? M : O, Rt = z + St * St * m, K = Tt <= Rt;
8562
- K ? a.join === Kt.BEVEL || Tt / m > g ? ($ ? (c.push(pt, Q), c.push(x + w * O, T + S * O), c.push(pt, Q), c.push(x + R * O, T + D * O)) : (c.push(x - w * M, T - S * M), c.push(rt, st), c.push(x - R * M, T - D * M), c.push(rt, st)), p += 2) : a.join === Kt.ROUND ? $ ? (c.push(pt, Q), c.push(x + w * O, T + S * O), p += fe(x, T, x + w * O, T + S * O, x + R * O, T + D * O, c, !0) + 4, c.push(pt, Q), c.push(x + R * O, T + D * O)) : (c.push(x - w * M, T - S * M), c.push(rt, st), p += fe(x, T, x - w * M, T - S * M, x - R * M, T - D * M, c, !1) + 4, c.push(x - R * M, T - D * M), c.push(rt, st)) : (c.push(pt, Q), c.push(rt, st)) : (c.push(x - w * M, T - S * M), c.push(x + w * O, T + S * O), a.join === Kt.ROUND ? $ ? p += fe(x, T, x + w * O, T + S * O, x + R * O, T + D * O, c, !0) + 2 : p += fe(x, T, x - w * M, T - S * M, x - R * M, T - D * M, c, !1) + 2 : a.join === Kt.MITER && Tt / m <= g && ($ ? (c.push(rt, st), c.push(rt, st)) : (c.push(pt, Q), c.push(pt, Q)), p += 2), c.push(x - R * M, T - D * M), c.push(x + R * O, T + D * O), p += 2);
8561
+ var dt = (-S + y) * (-w + T) - (-S + x) * (-w + b), at = (-D + E) * (-R + T) - (-D + x) * (-R + C), st = (rt * at - I * dt) / q, xt = (P * dt - j * at) / q, Tt = (st - x) * (st - x) + (xt - T) * (xt - T), pt = x + (st - x) * M, Q = T + (xt - T) * M, it = x - (st - x) * O, ot = T - (xt - T) * O, z = Math.min(rt * rt + j * j, I * I + P * P), St = $ ? M : O, Rt = z + St * St * m, K = Tt <= Rt;
8562
+ K ? a.join === Kt.BEVEL || Tt / m > g ? ($ ? (c.push(pt, Q), c.push(x + S * O, T + w * O), c.push(pt, Q), c.push(x + D * O, T + R * O)) : (c.push(x - S * M, T - w * M), c.push(it, ot), c.push(x - D * M, T - R * M), c.push(it, ot)), p += 2) : a.join === Kt.ROUND ? $ ? (c.push(pt, Q), c.push(x + S * O, T + w * O), p += fe(x, T, x + S * O, T + w * O, x + D * O, T + R * O, c, !0) + 4, c.push(pt, Q), c.push(x + D * O, T + R * O)) : (c.push(x - S * M, T - w * M), c.push(it, ot), p += fe(x, T, x - S * M, T - w * M, x - D * M, T - R * M, c, !1) + 4, c.push(x - D * M, T - R * M), c.push(it, ot)) : (c.push(pt, Q), c.push(it, ot)) : (c.push(x - S * M, T - w * M), c.push(x + S * O, T + w * O), a.join === Kt.ROUND ? $ ? p += fe(x, T, x + S * O, T + w * O, x + D * O, T + R * O, c, !0) + 2 : p += fe(x, T, x - S * M, T - w * M, x - D * M, T - R * M, c, !1) + 2 : a.join === Kt.MITER && Tt / m <= g && ($ ? (c.push(it, ot), c.push(it, ot)) : (c.push(pt, Q), c.push(pt, Q)), p += 2), c.push(x - D * M, T - R * M), c.push(x + D * O, T + R * O), p += 2);
8563
8563
  }
8564
- y = r[(d - 2) * 2], b = r[(d - 2) * 2 + 1], x = r[(d - 1) * 2], T = r[(d - 1) * 2 + 1], w = -(b - T), S = y - x, B = Math.sqrt(w * w + S * S), w /= B, S /= B, w *= _, S *= _, c.push(x - w * M, T - S * M), c.push(x + w * O, T + S * O), h || (a.cap === re.ROUND ? p += fe(x - w * (M - O) * 0.5, T - S * (M - O) * 0.5, x - w * M, T - S * M, x + w * O, T + S * O, c, !1) + 2 : a.cap === re.SQUARE && (p += Da(x, T, w, S, M, O, !1, c)));
8565
- for (var kt = e.indices, Se = tr.epsilon * tr.epsilon, G = v; G < p + v - 2; ++G)
8566
- y = c[G * 2], b = c[G * 2 + 1], x = c[(G + 1) * 2], T = c[(G + 1) * 2 + 1], E = c[(G + 2) * 2], C = c[(G + 2) * 2 + 1], !(Math.abs(y * (T - C) + x * (C - b) + E * (b - T)) < Se) && kt.push(G, G + 1, G + 2);
8564
+ y = r[(d - 2) * 2], b = r[(d - 2) * 2 + 1], x = r[(d - 1) * 2], T = r[(d - 1) * 2 + 1], S = -(b - T), w = y - x, N = Math.sqrt(S * S + w * w), S /= N, w /= N, S *= _, w *= _, c.push(x - S * M, T - w * M), c.push(x + S * O, T + w * O), h || (a.cap === re.ROUND ? p += fe(x - S * (M - O) * 0.5, T - w * (M - O) * 0.5, x - S * M, T - w * M, x + S * O, T + w * O, c, !1) + 2 : a.cap === re.SQUARE && (p += Da(x, T, S, w, M, O, !1, c)));
8565
+ for (var kt = e.indices, Se = tr.epsilon * tr.epsilon, L = v; L < p + v - 2; ++L)
8566
+ y = c[L * 2], b = c[L * 2 + 1], x = c[(L + 1) * 2], T = c[(L + 1) * 2 + 1], E = c[(L + 2) * 2], C = c[(L + 2) * 2 + 1], !(Math.abs(y * (T - C) + x * (C - b) + E * (b - T)) < Se) && kt.push(L, L + 1, L + 2);
8567
8567
  }
8568
8568
  }
8569
8569
  function Gd(i, e) {
@@ -8585,13 +8585,13 @@ var Na = function() {
8585
8585
  var o = s[s.length - 2], h = s[s.length - 1], u = h - t, l = o - e, f = n - t, c = r - e, d = Math.abs(u * c - l * f);
8586
8586
  if (d < 1e-8 || a === 0)
8587
8587
  return (s[s.length - 2] !== e || s[s.length - 1] !== t) && s.push(e, t), null;
8588
- var p = u * u + l * l, v = f * f + c * c, _ = u * f + l * c, m = a * Math.sqrt(p) / d, g = a * Math.sqrt(v) / d, y = m * _ / p, b = g * _ / v, x = m * c + g * l, T = m * f + g * u, E = l * (g + y), C = u * (g + y), w = c * (m + b), S = f * (m + b), R = Math.atan2(C - T, E - x), D = Math.atan2(S - T, w - x);
8588
+ var p = u * u + l * l, v = f * f + c * c, _ = u * f + l * c, m = a * Math.sqrt(p) / d, g = a * Math.sqrt(v) / d, y = m * _ / p, b = g * _ / v, x = m * c + g * l, T = m * f + g * u, E = l * (g + y), C = u * (g + y), S = c * (m + b), w = f * (m + b), D = Math.atan2(C - T, E - x), R = Math.atan2(w - T, S - x);
8589
8589
  return {
8590
8590
  cx: x + e,
8591
8591
  cy: T + t,
8592
8592
  radius: a,
8593
- startAngle: R,
8594
- endAngle: D,
8593
+ startAngle: D,
8594
+ endAngle: R,
8595
8595
  anticlockwise: l * f > c * u
8596
8596
  };
8597
8597
  }, i.arc = function(e, t, r, n, a, s, o, h, u) {
@@ -8647,7 +8647,7 @@ var Na = function() {
8647
8647
  }, i.prototype.destroy = function() {
8648
8648
  this.shape = null, this.holes.length = 0, this.holes = null, this.points.length = 0, this.points = null, this.lineStyle = null, this.fillStyle = null;
8649
8649
  }, i;
8650
- }(), Ae = new it(), jd = function(i) {
8650
+ }(), Ae = new nt(), jd = function(i) {
8651
8651
  Cn(e, i);
8652
8652
  function e() {
8653
8653
  var t = i.call(this) || this;
@@ -8846,7 +8846,7 @@ var Na = function() {
8846
8846
  function e(t) {
8847
8847
  t === void 0 && (t = null);
8848
8848
  var r = i.call(this) || this;
8849
- return r.shader = null, r.pluginName = "batch", r.currentPath = null, r.batches = [], r.batchTint = -1, r.batchDirty = -1, r.vertexData = null, r._fillStyle = new Ms(), r._lineStyle = new Vd(), r._matrix = null, r._holeMode = !1, r.state = we.for2d(), r._geometry = t || new jd(), r._geometry.refCount++, r._transformID = -1, r.tint = 16777215, r.blendMode = U.NORMAL, r;
8849
+ return r.shader = null, r.pluginName = "batch", r.currentPath = null, r.batches = [], r.batchTint = -1, r.batchDirty = -1, r.vertexData = null, r._fillStyle = new Ms(), r._lineStyle = new Vd(), r._matrix = null, r._holeMode = !1, r.state = we.for2d(), r._geometry = t || new jd(), r._geometry.refCount++, r._transformID = -1, r.tint = 16777215, r.blendMode = G.NORMAL, r;
8850
8850
  }
8851
8851
  return Object.defineProperty(e.prototype, "geometry", {
8852
8852
  get: function() {
@@ -9073,7 +9073,7 @@ var Na = function() {
9073
9073
  return this.finishPoly(), this._holeMode = !1, this;
9074
9074
  }, e.prototype.destroy = function(t) {
9075
9075
  this._geometry.refCount--, this._geometry.refCount === 0 && this._geometry.dispose(), this._matrix = null, this.currentPath = null, this._lineStyle.destroy(), this._lineStyle = null, this._fillStyle.destroy(), this._fillStyle = null, this._geometry = null, this.shader = null, this.vertexData = null, this.batches.length = 0, this.batches = null, i.prototype.destroy.call(this, t);
9076
- }, e.nextRoundedRectBehavior = !1, e._TEMP_POINT = new it(), e;
9076
+ }, e.nextRoundedRectBehavior = !1, e._TEMP_POINT = new nt(), e;
9077
9077
  }(Pt);
9078
9078
  var ln = function(i, e) {
9079
9079
  return ln = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, r) {
@@ -9090,11 +9090,11 @@ function zd(i, e) {
9090
9090
  }
9091
9091
  i.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
9092
9092
  }
9093
- var Ve = new it(), Yd = new Uint16Array([0, 1, 2, 0, 2, 3]), ur = function(i) {
9093
+ var Ve = new nt(), Yd = new Uint16Array([0, 1, 2, 0, 2, 3]), ur = function(i) {
9094
9094
  zd(e, i);
9095
9095
  function e(t) {
9096
9096
  var r = i.call(this) || this;
9097
- return r._anchor = new Ce(r._onAnchorUpdate, r, t ? t.defaultAnchor.x : 0, t ? t.defaultAnchor.y : 0), r._texture = null, r._width = 0, r._height = 0, r._tint = null, r._tintRGB = null, r.tint = 16777215, r.blendMode = U.NORMAL, r._cachedTint = 16777215, r.uvs = null, r.texture = t || k.EMPTY, r.vertexData = new Float32Array(8), r.vertexTrimmedData = null, r._transformID = -1, r._textureID = -1, r._transformTrimmedID = -1, r._textureTrimmedID = -1, r.indices = Yd, r.pluginName = "batch", r.isSprite = !0, r._roundPixels = F.ROUND_PIXELS, r;
9097
+ return r._anchor = new Ce(r._onAnchorUpdate, r, t ? t.defaultAnchor.x : 0, t ? t.defaultAnchor.y : 0), r._texture = null, r._width = 0, r._height = 0, r._tint = null, r._tintRGB = null, r.tint = 16777215, r.blendMode = G.NORMAL, r._cachedTint = 16777215, r.uvs = null, r.texture = t || k.EMPTY, r.vertexData = new Float32Array(8), r.vertexTrimmedData = null, r._transformID = -1, r._textureID = -1, r._transformTrimmedID = -1, r._textureTrimmedID = -1, r.indices = Yd, r.pluginName = "batch", r.isSprite = !0, r._roundPixels = F.ROUND_PIXELS, r;
9098
9098
  }
9099
9099
  return e.prototype._onTextureUpdate = function() {
9100
9100
  this._textureID = -1, this._textureTrimmedID = -1, this._cachedTint = 16777215, this._width && (this.scale.x = Me(this.scale.x) * this._width / this._texture.orig.width), this._height && (this.scale.y = Me(this.scale.y) * this._height / this._texture.orig.height);
@@ -9600,21 +9600,21 @@ var Dr = {
9600
9600
  if (s !== "" && (o += i.addLine(s), s = "", a = 0), i.canBreakWords(m, t.breakWords))
9601
9601
  for (var x = i.wordWrapSplit(m), T = 0; T < x.length; T++) {
9602
9602
  for (var E = x[T], C = 1; x[T + C]; ) {
9603
- var w = x[T + C], S = E[E.length - 1];
9604
- if (!i.canBreakChars(S, w, m, T, t.breakWords))
9605
- E += w;
9603
+ var S = x[T + C], w = E[E.length - 1];
9604
+ if (!i.canBreakChars(w, S, m, T, t.breakWords))
9605
+ E += S;
9606
9606
  else
9607
9607
  break;
9608
9608
  C++;
9609
9609
  }
9610
9610
  T += E.length - 1;
9611
- var R = i.getFromCache(E, u, h, n);
9612
- R + a > p && (o += i.addLine(s), d = !1, s = "", a = 0), s += E, a += R;
9611
+ var D = i.getFromCache(E, u, h, n);
9612
+ D + a > p && (o += i.addLine(s), d = !1, s = "", a = 0), s += E, a += D;
9613
9613
  }
9614
9614
  else {
9615
9615
  s.length > 0 && (o += i.addLine(s), s = "", a = 0);
9616
- var D = _ === v.length - 1;
9617
- o += i.addLine(m, !D), d = !1, s = "", a = 0;
9616
+ var R = _ === v.length - 1;
9617
+ o += i.addLine(m, !R), d = !1, s = "", a = 0;
9618
9618
  }
9619
9619
  else
9620
9620
  b + a > p && (d = !1, o += i.addLine(s), s = "", a = 0), (s.length > 0 || !i.isBreakingSpace(m) || d) && (s += m, a += b);
@@ -9785,8 +9785,8 @@ var Kd = {
9785
9785
  n.fillStyle = this._generateFillStyle(r, h, a), n.strokeStyle = r.stroke, n.shadowColor = "black", n.shadowBlur = 0, n.shadowOffsetX = 0, n.shadowOffsetY = 0;
9786
9786
  var C = (u - c.fontSize) / 2;
9787
9787
  (!e.nextLineHeightBehavior || u - c.fontSize < 0) && (C = 0);
9788
- for (var w = 0; w < h.length; w++)
9789
- d = r.strokeThickness / 2, p = r.strokeThickness / 2 + w * u + c.ascent + C, r.align === "right" ? d += f - l[w] : r.align === "center" && (d += (f - l[w]) / 2), r.stroke && r.strokeThickness && this.drawLetterSpacing(h[w], d + r.padding, p + r.padding - g, !0), r.fill && this.drawLetterSpacing(h[w], d + r.padding, p + r.padding - g);
9788
+ for (var S = 0; S < h.length; S++)
9789
+ d = r.strokeThickness / 2, p = r.strokeThickness / 2 + S * u + c.ascent + C, r.align === "right" ? d += f - l[S] : r.align === "center" && (d += (f - l[S]) / 2), r.stroke && r.strokeThickness && this.drawLetterSpacing(h[S], d + r.padding, p + r.padding - g, !0), r.fill && this.drawLetterSpacing(h[S], d + r.padding, p + r.padding - g);
9790
9790
  }
9791
9791
  this.updateTexture();
9792
9792
  }
@@ -9843,15 +9843,15 @@ var Kd = {
9843
9843
  for (var T = (x - g) / l, E = 0; E < f.length; E++) {
9844
9844
  var C = 0;
9845
9845
  typeof c[E] == "number" ? C = c[E] : C = E / f.length;
9846
- var w = Math.min(1, Math.max(0, g / l + C * T));
9847
- w = Number(w.toFixed(5)), s.addColorStop(w, f[E]);
9846
+ var S = Math.min(1, Math.max(0, g / l + C * T));
9847
+ S = Number(S.toFixed(5)), s.addColorStop(S, f[E]);
9848
9848
  }
9849
9849
  }
9850
9850
  } else {
9851
9851
  s = this.context.createLinearGradient(h, l / 2, u + h, l / 2);
9852
- for (var S = f.length + 1, R = 1, p = 0; p < f.length; p++) {
9853
- var D = void 0;
9854
- typeof c[p] == "number" ? D = c[p] : D = R / S, s.addColorStop(D, f[p]), R++;
9852
+ for (var w = f.length + 1, D = 1, p = 0; p < f.length; p++) {
9853
+ var R = void 0;
9854
+ typeof c[p] == "number" ? R = c[p] : R = D / w, s.addColorStop(R, f[p]), D++;
9855
9855
  }
9856
9856
  }
9857
9857
  return s;
@@ -10177,7 +10177,7 @@ function Bs(i, e) {
10177
10177
  }
10178
10178
  i.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
10179
10179
  }
10180
- var We = new it();
10180
+ var We = new nt();
10181
10181
  (function(i) {
10182
10182
  Bs(e, i);
10183
10183
  function e(t, r, n) {
@@ -10419,7 +10419,7 @@ var gp = function() {
10419
10419
  (!this.data || this.data.length !== t.length) && (this.data = new Float32Array(t.length)), this.uvMatrix.multiplyUvs(t, this.data), this._updateID++;
10420
10420
  }
10421
10421
  }, i;
10422
- }(), Mi = new it(), ka = new Br(), rr = function(i) {
10422
+ }(), Mi = new nt(), ka = new Br(), rr = function(i) {
10423
10423
  In(e, i);
10424
10424
  function e(t, r, n, a) {
10425
10425
  a === void 0 && (a = Ft.TRIANGLES);
@@ -10612,7 +10612,7 @@ void main(void)
10612
10612
  In(e, i);
10613
10613
  function e(t, r, n) {
10614
10614
  var a = i.call(this) || this, s = new gt(t), o = new gt(r, !0), h = new gt(n, !0, !0);
10615
- return a.addAttribute("aVertexPosition", s, 2, !1, L.FLOAT).addAttribute("aTextureCoord", o, 2, !1, L.FLOAT).addIndex(h), a._updateId = -1, a;
10615
+ return a.addAttribute("aVertexPosition", s, 2, !1, U.FLOAT).addAttribute("aTextureCoord", o, 2, !1, U.FLOAT).addIndex(h), a._updateId = -1, a;
10616
10616
  }
10617
10617
  return Object.defineProperty(e.prototype, "vertexDirtyId", {
10618
10618
  get: function() {
@@ -10799,9 +10799,9 @@ function wp(i, e, t, r, n, a) {
10799
10799
  }
10800
10800
  } else {
10801
10801
  o = e.createLinearGradient(u, f / 2, l + u, f / 2);
10802
- for (var C = c.length + 1, w = 1, v = 0; v < c.length; v++) {
10803
- var S = void 0;
10804
- typeof d[v] == "number" ? S = d[v] : S = w / C, o.addColorStop(S, c[v]), w++;
10802
+ for (var C = c.length + 1, S = 1, v = 0; v < c.length; v++) {
10803
+ var w = void 0;
10804
+ typeof d[v] == "number" ? w = d[v] : w = S / C, o.addColorStop(w, c[v]), S++;
10805
10805
  }
10806
10806
  }
10807
10807
  return o;
@@ -10851,21 +10851,21 @@ var Ct = function() {
10851
10851
  f[p] = t instanceof Array ? t[c] : t[v], u != null && u.fieldType && u.fieldType !== "none" && (f[p].baseTexture.alphaMode = Ut.NO_PREMULTIPLIED_ALPHA, f[p].baseTexture.mipmap = Lt.OFF);
10852
10852
  }
10853
10853
  for (var c = 0; c < e.char.length; c++) {
10854
- var _ = e.char[c], p = _.id, m = _.page, g = e.char[c], y = g.x, b = g.y, x = g.width, T = g.height, E = g.xoffset, C = g.yoffset, w = g.xadvance;
10855
- y /= l, b /= l, x /= l, T /= l, E /= l, C /= l, w /= l;
10856
- var S = new W(y + f[m].frame.x / l, b + f[m].frame.y / l, x, T);
10854
+ var _ = e.char[c], p = _.id, m = _.page, g = e.char[c], y = g.x, b = g.y, x = g.width, T = g.height, E = g.xoffset, C = g.yoffset, S = g.xadvance;
10855
+ y /= l, b /= l, x /= l, T /= l, E /= l, C /= l, S /= l;
10856
+ var w = new W(y + f[m].frame.x / l, b + f[m].frame.y / l, x, T);
10857
10857
  this.chars[p] = {
10858
10858
  xOffset: E,
10859
10859
  yOffset: C,
10860
- xAdvance: w,
10860
+ xAdvance: S,
10861
10861
  kerning: {},
10862
- texture: new k(f[m].baseTexture, S),
10862
+ texture: new k(f[m].baseTexture, w),
10863
10863
  page: m
10864
10864
  };
10865
10865
  }
10866
10866
  for (var c = 0; c < e.kerning.length; c++) {
10867
- var R = e.kerning[c], D = R.first, B = R.second, H = R.amount;
10868
- D /= l, B /= l, H /= l, this.chars[B] && (this.chars[B].kerning[D] = H);
10867
+ var D = e.kerning[c], R = D.first, N = D.second, H = D.amount;
10868
+ R /= l, N /= l, H /= l, this.chars[N] && (this.chars[N].kerning[R] = H);
10869
10869
  }
10870
10870
  this.distanceFieldRange = u == null ? void 0 : u.distanceRange, this.distanceFieldType = (a = (n = u == null ? void 0 : u.fieldType) === null || n === void 0 ? void 0 : n.toLowerCase()) !== null && a !== void 0 ? a : "none";
10871
10871
  }
@@ -10908,38 +10908,38 @@ var Ct = function() {
10908
10908
  id: b.length - 1,
10909
10909
  file: ""
10910
10910
  }));
10911
- var T = l[x], E = Gt.measureText(T, f, !1, _), C = E.width, w = Math.ceil(E.height), S = Math.ceil((f.fontStyle === "italic" ? 2 : 1) * C);
10912
- if (v >= u - w * o) {
10911
+ var T = l[x], E = Gt.measureText(T, f, !1, _), C = E.width, S = Math.ceil(E.height), w = Math.ceil((f.fontStyle === "italic" ? 2 : 1) * C);
10912
+ if (v >= u - S * o) {
10913
10913
  if (v === 0)
10914
10914
  throw new Error("[BitmapFont] textureHeight " + u + "px is too small " + ("(fontFamily: '" + f.fontFamily + "', fontSize: " + f.fontSize + "px, char: '" + T + "')"));
10915
10915
  --x, _ = null, m = null, g = null, v = 0, p = 0, y = 0;
10916
10916
  continue;
10917
10917
  }
10918
- if (y = Math.max(w + E.fontProperties.descent, y), S * o + p >= c) {
10918
+ if (y = Math.max(S + E.fontProperties.descent, y), w * o + p >= c) {
10919
10919
  if (p === 0)
10920
10920
  throw new Error("[BitmapFont] textureWidth " + h + "px is too small " + ("(fontFamily: '" + f.fontFamily + "', fontSize: " + f.fontSize + "px, char: '" + T + "')"));
10921
10921
  --x, v += y * o, v = Math.ceil(v), p = 0, y = 0;
10922
10922
  continue;
10923
10923
  }
10924
10924
  Sp(_, m, E, p, v, o, f);
10925
- var R = Lr(E.text);
10925
+ var D = Lr(E.text);
10926
10926
  d.char.push({
10927
- id: R,
10927
+ id: D,
10928
10928
  page: b.length - 1,
10929
10929
  x: p / o,
10930
10930
  y: v / o,
10931
- width: S,
10932
- height: w,
10931
+ width: w,
10932
+ height: S,
10933
10933
  xoffset: 0,
10934
10934
  yoffset: 0,
10935
10935
  xadvance: Math.ceil(C - (f.dropShadow ? f.dropShadowDistance : 0) - (f.stroke ? f.strokeThickness : 0))
10936
- }), p += (S + 2 * s) * o, p = Math.ceil(p);
10936
+ }), p += (w + 2 * s) * o, p = Math.ceil(p);
10937
10937
  }
10938
- for (var x = 0, D = l.length; x < D; x++)
10939
- for (var B = l[x], H = 0; H < D; H++) {
10940
- var M = l[H], O = m.measureText(B).width, G = m.measureText(M).width, ot = m.measureText(B + M).width, j = ot - (O + G);
10938
+ for (var x = 0, R = l.length; x < R; x++)
10939
+ for (var N = l[x], H = 0; H < R; H++) {
10940
+ var M = l[H], O = m.measureText(N).width, L = m.measureText(M).width, rt = m.measureText(N + M).width, j = rt - (O + L);
10941
10941
  j && d.kerning.push({
10942
- first: Lr(B),
10942
+ first: Lr(N),
10943
10943
  second: Lr(M),
10944
10944
  amount: j
10945
10945
  });
@@ -11017,44 +11017,44 @@ void main(void)\r
11017
11017
  }, n, 0, 0), n._roundPixels = F.ROUND_PIXELS, n.dirty = !0, n._resolution = F.RESOLUTION, n._autoResolution = !0, n._textureCache = {}, n;
11018
11018
  }
11019
11019
  return e.prototype.updateText = function() {
11020
- for (var t, r = Ct.available[this._fontName], n = this.fontSize, a = n / r.size, s = new it(), o = [], h = [], u = [], l = this._text.replace(/(?:\r\n|\r)/g, `
11020
+ for (var t, r = Ct.available[this._fontName], n = this.fontSize, a = n / r.size, s = new nt(), o = [], h = [], u = [], l = this._text.replace(/(?:\r\n|\r)/g, `
11021
11021
  `) || " ", f = Us(l), c = this._maxWidth * r.size / n, d = r.distanceFieldType === "none" ? Xa : Ha, p = null, v = 0, _ = 0, m = 0, g = -1, y = 0, b = 0, x = 0, T = 0, E = 0; E < f.length; E++) {
11022
- var C = f[E], w = Lr(C);
11022
+ var C = f[E], S = Lr(C);
11023
11023
  if (/(?:\s)/.test(C) && (g = E, y = v, T++), C === "\r" || C === `
11024
11024
  `) {
11025
11025
  h.push(v), u.push(-1), _ = Math.max(_, v), ++m, ++b, s.x = 0, s.y += r.lineHeight, p = null, T = 0;
11026
11026
  continue;
11027
11027
  }
11028
- var S = r.chars[w];
11029
- if (S) {
11030
- p && S.kerning[p] && (s.x += S.kerning[p]);
11031
- var R = ja.pop() || {
11028
+ var w = r.chars[S];
11029
+ if (w) {
11030
+ p && w.kerning[p] && (s.x += w.kerning[p]);
11031
+ var D = ja.pop() || {
11032
11032
  texture: k.EMPTY,
11033
11033
  line: 0,
11034
11034
  charCode: 0,
11035
11035
  prevSpaces: 0,
11036
- position: new it()
11036
+ position: new nt()
11037
11037
  };
11038
- R.texture = S.texture, R.line = m, R.charCode = w, R.position.x = s.x + S.xOffset + this._letterSpacing / 2, R.position.y = s.y + S.yOffset, R.prevSpaces = T, o.push(R), v = R.position.x + Math.max(S.xAdvance - S.xOffset, S.texture.orig.width), s.x += S.xAdvance + this._letterSpacing, x = Math.max(x, S.yOffset + S.texture.height), p = w, g !== -1 && c > 0 && s.x > c && (++b, Fe(o, 1 + g - b, 1 + E - g), E = g, g = -1, h.push(y), u.push(o.length > 0 ? o[o.length - 1].prevSpaces : 0), _ = Math.max(_, y), m++, s.x = 0, s.y += r.lineHeight, p = null, T = 0);
11038
+ D.texture = w.texture, D.line = m, D.charCode = S, D.position.x = s.x + w.xOffset + this._letterSpacing / 2, D.position.y = s.y + w.yOffset, D.prevSpaces = T, o.push(D), v = D.position.x + Math.max(w.xAdvance - w.xOffset, w.texture.orig.width), s.x += w.xAdvance + this._letterSpacing, x = Math.max(x, w.yOffset + w.texture.height), p = S, g !== -1 && c > 0 && s.x > c && (++b, Fe(o, 1 + g - b, 1 + E - g), E = g, g = -1, h.push(y), u.push(o.length > 0 ? o[o.length - 1].prevSpaces : 0), _ = Math.max(_, y), m++, s.x = 0, s.y += r.lineHeight, p = null, T = 0);
11039
11039
  }
11040
11040
  }
11041
- var D = f[f.length - 1];
11042
- D !== "\r" && D !== `
11043
- ` && (/(?:\s)/.test(D) && (v = y), h.push(v), _ = Math.max(_, v), u.push(-1));
11044
- for (var B = [], E = 0; E <= m; E++) {
11041
+ var R = f[f.length - 1];
11042
+ R !== "\r" && R !== `
11043
+ ` && (/(?:\s)/.test(R) && (v = y), h.push(v), _ = Math.max(_, v), u.push(-1));
11044
+ for (var N = [], E = 0; E <= m; E++) {
11045
11045
  var H = 0;
11046
- this._align === "right" ? H = _ - h[E] : this._align === "center" ? H = (_ - h[E]) / 2 : this._align === "justify" && (H = u[E] < 0 ? 0 : (_ - h[E]) / u[E]), B.push(H);
11046
+ this._align === "right" ? H = _ - h[E] : this._align === "center" ? H = (_ - h[E]) / 2 : this._align === "justify" && (H = u[E] < 0 ? 0 : (_ - h[E]) / u[E]), N.push(H);
11047
11047
  }
11048
- var M = o.length, O = {}, G = [], ot = this._activePagesMeshData;
11049
- d.push.apply(d, ot);
11048
+ var M = o.length, O = {}, L = [], rt = this._activePagesMeshData;
11049
+ d.push.apply(d, rt);
11050
11050
  for (var E = 0; E < M; E++) {
11051
11051
  var j = o[E].texture, I = j.baseTexture.uid;
11052
11052
  if (!O[I]) {
11053
11053
  var P = d.pop();
11054
11054
  if (!P) {
11055
- var N = new ti(), q = void 0, $ = void 0;
11056
- r.distanceFieldType === "none" ? (q = new ir(k.EMPTY), $ = U.NORMAL) : (q = new ir(k.EMPTY, { program: hr.from(Ap, Rp), uniforms: { uFWidth: 0 } }), $ = U.NORMAL_NPM);
11057
- var dt = new rr(N, q);
11055
+ var B = new ti(), q = void 0, $ = void 0;
11056
+ r.distanceFieldType === "none" ? (q = new ir(k.EMPTY), $ = G.NORMAL) : (q = new ir(k.EMPTY, { program: hr.from(Ap, Rp), uniforms: { uFWidth: 0 } }), $ = G.NORMAL_NPM);
11057
+ var dt = new rr(B, q);
11058
11058
  dt.blendMode = $, P = {
11059
11059
  index: 0,
11060
11060
  indexCount: 0,
@@ -11068,30 +11068,30 @@ void main(void)\r
11068
11068
  };
11069
11069
  }
11070
11070
  P.index = 0, P.indexCount = 0, P.vertexCount = 0, P.uvsCount = 0, P.total = 0;
11071
- var nt = this._textureCache;
11072
- nt[I] = nt[I] || new k(j.baseTexture), P.mesh.texture = nt[I], P.mesh.tint = this._tint, G.push(P), O[I] = P;
11071
+ var at = this._textureCache;
11072
+ at[I] = at[I] || new k(j.baseTexture), P.mesh.texture = at[I], P.mesh.tint = this._tint, L.push(P), O[I] = P;
11073
11073
  }
11074
11074
  O[I].total++;
11075
11075
  }
11076
- for (var E = 0; E < ot.length; E++)
11077
- G.indexOf(ot[E]) === -1 && this.removeChild(ot[E].mesh);
11078
- for (var E = 0; E < G.length; E++)
11079
- G[E].mesh.parent !== this && this.addChild(G[E].mesh);
11080
- this._activePagesMeshData = G;
11076
+ for (var E = 0; E < rt.length; E++)
11077
+ L.indexOf(rt[E]) === -1 && this.removeChild(rt[E].mesh);
11078
+ for (var E = 0; E < L.length; E++)
11079
+ L[E].mesh.parent !== this && this.addChild(L[E].mesh);
11080
+ this._activePagesMeshData = L;
11081
11081
  for (var E in O) {
11082
- var P = O[E], at = P.total;
11083
- if (!(((t = P.indices) === null || t === void 0 ? void 0 : t.length) > 6 * at) || P.vertices.length < rr.BATCHABLE_SIZE * 2)
11084
- P.vertices = new Float32Array(4 * 2 * at), P.uvs = new Float32Array(4 * 2 * at), P.indices = new Uint16Array(6 * at);
11082
+ var P = O[E], st = P.total;
11083
+ if (!(((t = P.indices) === null || t === void 0 ? void 0 : t.length) > 6 * st) || P.vertices.length < rr.BATCHABLE_SIZE * 2)
11084
+ P.vertices = new Float32Array(4 * 2 * st), P.uvs = new Float32Array(4 * 2 * st), P.indices = new Uint16Array(6 * st);
11085
11085
  else
11086
11086
  for (var xt = P.total, Tt = P.vertices, pt = xt * 4 * 2; pt < Tt.length; pt++)
11087
11087
  Tt[pt] = 0;
11088
- P.mesh.size = 6 * at;
11088
+ P.mesh.size = 6 * st;
11089
11089
  }
11090
11090
  for (var E = 0; E < M; E++) {
11091
- var C = o[E], Q = C.position.x + B[C.line] * (this._align === "justify" ? C.prevSpaces : 1);
11091
+ var C = o[E], Q = C.position.x + N[C.line] * (this._align === "justify" ? C.prevSpaces : 1);
11092
11092
  this._roundPixels && (Q = Math.round(Q));
11093
- var rt = Q * a, st = C.position.y * a, j = C.texture, z = O[j.baseTexture.uid], St = j.frame, Rt = j._uvs, K = z.index++;
11094
- z.indices[K * 6 + 0] = 0 + K * 4, z.indices[K * 6 + 1] = 1 + K * 4, z.indices[K * 6 + 2] = 2 + K * 4, z.indices[K * 6 + 3] = 0 + K * 4, z.indices[K * 6 + 4] = 2 + K * 4, z.indices[K * 6 + 5] = 3 + K * 4, z.vertices[K * 8 + 0] = rt, z.vertices[K * 8 + 1] = st, z.vertices[K * 8 + 2] = rt + St.width * a, z.vertices[K * 8 + 3] = st, z.vertices[K * 8 + 4] = rt + St.width * a, z.vertices[K * 8 + 5] = st + St.height * a, z.vertices[K * 8 + 6] = rt, z.vertices[K * 8 + 7] = st + St.height * a, z.uvs[K * 8 + 0] = Rt.x0, z.uvs[K * 8 + 1] = Rt.y0, z.uvs[K * 8 + 2] = Rt.x1, z.uvs[K * 8 + 3] = Rt.y1, z.uvs[K * 8 + 4] = Rt.x2, z.uvs[K * 8 + 5] = Rt.y2, z.uvs[K * 8 + 6] = Rt.x3, z.uvs[K * 8 + 7] = Rt.y3;
11093
+ var it = Q * a, ot = C.position.y * a, j = C.texture, z = O[j.baseTexture.uid], St = j.frame, Rt = j._uvs, K = z.index++;
11094
+ z.indices[K * 6 + 0] = 0 + K * 4, z.indices[K * 6 + 1] = 1 + K * 4, z.indices[K * 6 + 2] = 2 + K * 4, z.indices[K * 6 + 3] = 0 + K * 4, z.indices[K * 6 + 4] = 2 + K * 4, z.indices[K * 6 + 5] = 3 + K * 4, z.vertices[K * 8 + 0] = it, z.vertices[K * 8 + 1] = ot, z.vertices[K * 8 + 2] = it + St.width * a, z.vertices[K * 8 + 3] = ot, z.vertices[K * 8 + 4] = it + St.width * a, z.vertices[K * 8 + 5] = ot + St.height * a, z.vertices[K * 8 + 6] = it, z.vertices[K * 8 + 7] = ot + St.height * a, z.uvs[K * 8 + 0] = Rt.x0, z.uvs[K * 8 + 1] = Rt.y0, z.uvs[K * 8 + 2] = Rt.x1, z.uvs[K * 8 + 3] = Rt.y1, z.uvs[K * 8 + 4] = Rt.x2, z.uvs[K * 8 + 5] = Rt.y2, z.uvs[K * 8 + 6] = Rt.x3, z.uvs[K * 8 + 7] = Rt.y3;
11095
11095
  }
11096
11096
  this._textWidth = _ * a, this._textHeight = (s.y + r.lineHeight) * a;
11097
11097
  for (var E in O) {
@@ -12229,7 +12229,7 @@ void main(void)
12229
12229
  filterMatrix: a,
12230
12230
  scale: { x: 1, y: 1 },
12231
12231
  rotation: new Float32Array([1, 0, 0, 1])
12232
- }) || this, n.maskSprite = t, n.maskMatrix = a, r == null && (r = 20), n.scale = new it(r, r), n;
12232
+ }) || this, n.maskSprite = t, n.maskMatrix = a, r == null && (r = 20), n.scale = new nt(r, r), n;
12233
12233
  }
12234
12234
  return e.prototype.apply = function(t, r, n, a) {
12235
12235
  this.uniforms.filterMatrix = t.calculateSpriteMatrix(this.maskMatrix, this.maskSprite), this.uniforms.scale.x = this.scale.x, this.uniforms.scale.y = this.scale.y;
@@ -12626,7 +12626,7 @@ Pt.prototype.getChildByName = function(e, t) {
12626
12626
  return null;
12627
12627
  };
12628
12628
  vt.prototype.getGlobalPosition = function(e, t) {
12629
- return e === void 0 && (e = new it()), t === void 0 && (t = !1), this.parent ? this.parent.toGlobal(this.position, e, t) : (e.x = this.position.x, e.y = this.position.y), e;
12629
+ return e === void 0 && (e = new nt()), t === void 0 && (t = !1), this.parent ? this.parent.toGlobal(this.position, e, t) : (e.x = this.position.x, e.y = this.position.y), e;
12630
12630
  };
12631
12631
  var qp = function() {
12632
12632
  function i() {
@@ -13116,42 +13116,42 @@ var Hs = { exports: {} };
13116
13116
  var m = this, g = v || "BESbswy", y = 0, b = _ || 3e3, x = new Date().getTime();
13117
13117
  return new Promise(function(T, E) {
13118
13118
  if (d(m.context) && !c(m.context)) {
13119
- var C = new Promise(function(S, R) {
13120
- function D() {
13121
- new Date().getTime() - x >= b ? R(Error("" + b + "ms timeout exceeded")) : m.context.document.fonts.load(p(m, '"' + m.family + '"'), g).then(function(B) {
13122
- 1 <= B.length ? S() : setTimeout(D, 25);
13123
- }, R);
13119
+ var C = new Promise(function(w, D) {
13120
+ function R() {
13121
+ new Date().getTime() - x >= b ? D(Error("" + b + "ms timeout exceeded")) : m.context.document.fonts.load(p(m, '"' + m.family + '"'), g).then(function(N) {
13122
+ 1 <= N.length ? w() : setTimeout(R, 25);
13123
+ }, D);
13124
13124
  }
13125
- D();
13126
- }), w = new Promise(function(S, R) {
13125
+ R();
13126
+ }), S = new Promise(function(w, D) {
13127
13127
  y = setTimeout(function() {
13128
- R(Error("" + b + "ms timeout exceeded"));
13128
+ D(Error("" + b + "ms timeout exceeded"));
13129
13129
  }, b);
13130
13130
  });
13131
- Promise.race([w, C]).then(function() {
13131
+ Promise.race([S, C]).then(function() {
13132
13132
  clearTimeout(y), T(m);
13133
13133
  }, E);
13134
13134
  } else
13135
13135
  t(function() {
13136
- function S() {
13137
- var N;
13138
- (N = M != -1 && O != -1 || M != -1 && G != -1 || O != -1 && G != -1) && ((N = M != O && M != G && O != G) || (h === null && (N = /AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent), h = !!N && (536 > parseInt(N[1], 10) || parseInt(N[1], 10) === 536 && 11 >= parseInt(N[2], 10))), N = h && (M == ot && O == ot && G == ot || M == j && O == j && G == j || M == I && O == I && G == I)), N = !N), N && (P.parentNode !== null && P.parentNode.removeChild(P), clearTimeout(y), T(m));
13136
+ function w() {
13137
+ var B;
13138
+ (B = M != -1 && O != -1 || M != -1 && L != -1 || O != -1 && L != -1) && ((B = M != O && M != L && O != L) || (h === null && (B = /AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent), h = !!B && (536 > parseInt(B[1], 10) || parseInt(B[1], 10) === 536 && 11 >= parseInt(B[2], 10))), B = h && (M == rt && O == rt && L == rt || M == j && O == j && L == j || M == I && O == I && L == I)), B = !B), B && (P.parentNode !== null && P.parentNode.removeChild(P), clearTimeout(y), T(m));
13139
13139
  }
13140
- function R() {
13140
+ function D() {
13141
13141
  if (new Date().getTime() - x >= b)
13142
13142
  P.parentNode !== null && P.parentNode.removeChild(P), E(Error("" + b + "ms timeout exceeded"));
13143
13143
  else {
13144
- var N = m.context.document.hidden;
13145
- (N === !0 || N === void 0) && (M = D.g.offsetWidth, O = B.g.offsetWidth, G = H.g.offsetWidth, S()), y = setTimeout(R, 50);
13144
+ var B = m.context.document.hidden;
13145
+ (B === !0 || B === void 0) && (M = R.g.offsetWidth, O = N.g.offsetWidth, L = H.g.offsetWidth, w()), y = setTimeout(D, 50);
13146
13146
  }
13147
13147
  }
13148
- var D = new r(g), B = new r(g), H = new r(g), M = -1, O = -1, G = -1, ot = -1, j = -1, I = -1, P = document.createElement("div");
13149
- P.dir = "ltr", n(D, p(m, "sans-serif")), n(B, p(m, "serif")), n(H, p(m, "monospace")), P.appendChild(D.g), P.appendChild(B.g), P.appendChild(H.g), m.context.document.body.appendChild(P), ot = D.g.offsetWidth, j = B.g.offsetWidth, I = H.g.offsetWidth, R(), s(D, function(N) {
13150
- M = N, S();
13151
- }), n(D, p(m, '"' + m.family + '",sans-serif')), s(B, function(N) {
13152
- O = N, S();
13153
- }), n(B, p(m, '"' + m.family + '",serif')), s(H, function(N) {
13154
- G = N, S();
13148
+ var R = new r(g), N = new r(g), H = new r(g), M = -1, O = -1, L = -1, rt = -1, j = -1, I = -1, P = document.createElement("div");
13149
+ P.dir = "ltr", n(R, p(m, "sans-serif")), n(N, p(m, "serif")), n(H, p(m, "monospace")), P.appendChild(R.g), P.appendChild(N.g), P.appendChild(H.g), m.context.document.body.appendChild(P), rt = R.g.offsetWidth, j = N.g.offsetWidth, I = H.g.offsetWidth, D(), s(R, function(B) {
13150
+ M = B, w();
13151
+ }), n(R, p(m, '"' + m.family + '",sans-serif')), s(N, function(B) {
13152
+ O = B, w();
13153
+ }), n(N, p(m, '"' + m.family + '",serif')), s(H, function(B) {
13154
+ L = B, w();
13155
13155
  }), n(H, p(m, '"' + m.family + '",monospace'));
13156
13156
  });
13157
13157
  });
@@ -13229,7 +13229,7 @@ function rv(i) {
13229
13229
  return i.appendChild(e.view), e;
13230
13230
  }
13231
13231
  async function iv() {
13232
- const { Viewport: i } = await import("./viewport.es-3b936b09.mjs");
13232
+ const { Viewport: i } = await import("./viewport.es-975b1df9.mjs");
13233
13233
  return i;
13234
13234
  }
13235
13235
  async function nv(i, e) {
@@ -13288,13 +13288,16 @@ class av extends Pt {
13288
13288
  this.guideHeight = t, this.drawGuideLine();
13289
13289
  }
13290
13290
  }
13291
- function sv(i) {
13292
- let e, t;
13293
- return i.forEach((r) => {
13294
- (e === void 0 || e > r.start || isNaN(r.start.getDate())) && (e = r.start), r.end !== null && (t === void 0 || t < r.end || isNaN(r.end.getDate())) && (t = r.end);
13295
- }), {
13296
- min: e ?? new Date(NaN),
13297
- max: t ?? new Date(NaN)
13291
+ function sv(i, e) {
13292
+ let t, r;
13293
+ i.forEach((a) => {
13294
+ (t === void 0 || t > a.start || isNaN(a.start.getDate())) && (t = a.start), a.end !== null && (r === void 0 || r < a.end || isNaN(a.end.getDate())) && (r = a.end);
13295
+ }), t = t ?? new Date(), r = r ?? new Date(t.getTime() + (e ?? 0));
13296
+ const n = r.getTime() - t.getTime();
13297
+ return {
13298
+ min: t,
13299
+ max: r,
13300
+ span: e && n < e ? e : n
13298
13301
  };
13299
13302
  }
13300
13303
  function ov(i) {
@@ -13562,9 +13565,10 @@ class $a extends Pt {
13562
13565
  de.padding
13563
13566
  );
13564
13567
  }
13565
- update() {
13566
- const t = this.getNodeWidth();
13567
- t !== this.nodeWidth && (this.nodeWidth = t, this.box.clear(), this.drawBox(), this.isLabelInBox && this.apxLabelWidth > this.nodeWidth + 2 || !this.isLabelInBox && this.apxLabelWidth < this.nodeWidth - 2 ? this.drawLabel() : this.isLabelInBox || this.updateLabelPosition()), this.updatePosition();
13568
+ update(t) {
13569
+ t && (this.nodeData = t);
13570
+ const r = this.getNodeWidth();
13571
+ r !== this.nodeWidth && (this.nodeWidth = r, this.box.clear(), this.drawBox(), this.isLabelInBox && this.apxLabelWidth > this.nodeWidth + 2 || !this.isLabelInBox && this.apxLabelWidth < this.nodeWidth - 2 ? this.drawLabel() : this.isLabelInBox || this.updateLabelPosition()), this.updatePosition();
13568
13572
  }
13569
13573
  }
13570
13574
  const ee = {
@@ -13619,82 +13623,82 @@ const pv = /* @__PURE__ */ zs({
13619
13623
  viewport: 10,
13620
13624
  playhead: 20
13621
13625
  };
13622
- let a = ei(!0), s, o, h = new no(), u = !1;
13623
- const l = 1e3 * 60;
13624
- let f, c = ei(), d, p, v, _, m = new Pt(), g = /* @__PURE__ */ new Map();
13626
+ let a = ei(!0), s, o, h = new no(), u = !1, l, f = ei(), c, d, p, v, _ = null, m = new Pt(), g = /* @__PURE__ */ new Map();
13625
13627
  Ys(async () => {
13626
13628
  if (!t.value) {
13627
13629
  console.error("Stage reference not found in initPixiApp");
13628
13630
  return;
13629
13631
  }
13630
- b(), s = rv(t.value), s.stage.sortableChildren = !0, o = await nv(t.value, s), o.zIndex = n.viewport, T(), C(), x(), E(), a.value = !1;
13632
+ b(), s = rv(t.value), s.stage.sortableChildren = !0, o = await nv(t.value, s), o.zIndex = n.viewport, E(), S(), x(), C(), a.value = !1;
13631
13633
  }), qs(() => {
13632
13634
  y();
13633
13635
  });
13634
13636
  function y() {
13635
- v.destroy(), _ == null || _.destroy(), m.removeChildren(), g.clear(), m.destroy(), s.destroy(!0);
13637
+ p.destroy(), v == null || v.destroy(), m.removeChildren(), g.clear(), m.destroy(), s.destroy(!0);
13636
13638
  }
13637
13639
  function b() {
13638
- var M;
13639
- const R = Array.from(e.graphData).filter((O) => O.end).flatMap(({
13640
- start: O,
13641
- end: G
13640
+ const N = Array.from(e.graphData).filter((L) => L.end).flatMap(({
13641
+ start: L,
13642
+ end: rt
13642
13643
  }) => ({
13643
- start: O,
13644
- end: G
13644
+ start: L,
13645
+ end: rt
13645
13646
  }));
13646
- e.isRunning === !0 && R.push({
13647
+ e.isRunning === !0 && N.push({
13647
13648
  start: new Date(),
13648
13649
  end: new Date()
13649
13650
  });
13650
- const { min: D, max: B } = sv(R), H = B.getTime() - D.getTime();
13651
- f = D, c.value = B, d = H < l ? l : H, p = (M = t.value) != null && M.clientWidth ? t.value.clientWidth * 2 : 2e3;
13651
+ const { min: H, max: M, span: O } = sv(N, 6e4);
13652
+ l = H, f.value = M, c = O, d = t.value.clientWidth * 2;
13652
13653
  }
13653
13654
  function x() {
13654
- e.isRunning && (_ = new fv({
13655
+ e.isRunning && (v = new fv({
13655
13656
  viewportRef: o,
13656
13657
  appRef: s,
13657
13658
  xScale: w
13658
- }), _.zIndex = n.playhead, s.stage.addChild(_), s.ticker.add(() => {
13659
- if (e.isRunning && _) {
13660
- const R = _.position.x > 0 && _.position.x < s.screen.width;
13661
- if (c.value = new Date(), _.updatePosition(), !o.moving && R && _.position.x > s.screen.width - r.defaultViewportPadding) {
13662
- const D = S(o.left);
13663
- o.zoomPercent(-0.1, !0), o.left = w(new Date(D));
13659
+ }), v.zIndex = n.playhead, s.stage.addChild(v), T());
13660
+ }
13661
+ function T() {
13662
+ _ || (_ = s.ticker.add(() => {
13663
+ if (e.isRunning && v) {
13664
+ const R = v.position.x > 0 && v.position.x < s.screen.width;
13665
+ if (f.value = new Date(), v.updatePosition(), !o.moving && R && v.position.x > s.screen.width - r.defaultViewportPadding) {
13666
+ const N = D(o.left);
13667
+ o.zoomPercent(-0.1, !0), o.left = w(new Date(N));
13664
13668
  }
13665
13669
  } else
13666
- _ != null && _.destroyed || _ == null || _.destroy();
13670
+ v != null && v.destroyed || v == null || v.destroy();
13667
13671
  }));
13668
13672
  }
13669
- function T() {
13670
- v = new lv({
13673
+ function E() {
13674
+ p = new lv({
13671
13675
  viewportRef: o,
13672
13676
  appRef: s,
13673
13677
  xScale: w,
13674
- dateScale: S,
13675
- minimumStartDate: f,
13676
- maximumEndDate: c,
13678
+ dateScale: D,
13679
+ minimumStartDate: l,
13680
+ maximumEndDate: f,
13677
13681
  isRunning: e.isRunning ?? !1,
13678
13682
  formatTimeBySeconds: e.formatTimeBySeconds,
13679
13683
  formatTimeByMinutes: e.formatTimeByMinutes,
13680
13684
  formatDate: e.formatDate
13681
- }), v.zIndex = n.timelineGuides, s.stage.addChild(v), s.ticker.add(() => {
13682
- v.updateGuides();
13685
+ }), p.zIndex = n.timelineGuides, s.stage.addChild(p), s.ticker.add(() => {
13686
+ p.updateGuides();
13683
13687
  });
13684
13688
  }
13685
- function E() {
13689
+ function C() {
13686
13690
  h.addAll(o.children), o.on("frame-end", () => {
13687
13691
  (o.dirty || u) && (h.cull(s.renderer.screen), o.dirty = !1, u = !1);
13688
13692
  });
13689
13693
  }
13690
- function C() {
13691
- e.graphData.forEach((R, D) => {
13692
- const B = new $a(R, w, D);
13694
+ function S() {
13695
+ e.graphData.forEach((R, N) => {
13696
+ const H = new $a(R, w, N);
13693
13697
  g.set(R.id, {
13694
- node: B,
13698
+ node: H,
13695
13699
  end: R.end,
13696
13700
  state: R.state
13697
- }), m.addChild(B);
13701
+ }), m.addChild(H);
13698
13702
  }), o.addChild(m), o.ensureVisible(
13699
13703
  m.x - r.defaultViewportPadding,
13700
13704
  m.y - r.defaultViewportPadding,
@@ -13709,23 +13713,27 @@ const pv = /* @__PURE__ */ zs({
13709
13713
  });
13710
13714
  }
13711
13715
  $s(() => {
13712
- a.value || e.graphData.forEach((R) => {
13716
+ a.value || (e.graphData.forEach((R) => {
13713
13717
  if (g.has(R.id)) {
13714
- const D = g.get(R.id);
13715
- (D.end !== R.end || D.state !== R.state) && D.node.update();
13718
+ const N = g.get(R.id);
13719
+ (N.end !== R.end || N.state !== R.state) && N.node.update(R);
13716
13720
  } else {
13717
- const D = new $a(R, w, g.size - 1);
13718
- m.addChild(D), u = !0;
13721
+ const N = new $a(R, w, g.size);
13722
+ g.set(R.id, {
13723
+ node: N,
13724
+ end: R.end,
13725
+ state: R.state
13726
+ }), m.addChild(N), u = !0;
13719
13727
  }
13720
- });
13728
+ }), e.isRunning && (!v || v.destroyed) && x());
13721
13729
  });
13722
13730
  function w(R) {
13723
- return Math.ceil((R.getTime() - f.getTime()) * (p / d));
13731
+ return Math.ceil((R.getTime() - l.getTime()) * (d / c));
13724
13732
  }
13725
- function S(R) {
13726
- return Math.ceil(f.getTime() + R * (d / p));
13733
+ function D(R) {
13734
+ return Math.ceil(l.getTime() + R * (c / d));
13727
13735
  }
13728
- return (R, D) => (Zs(), Ks("div", {
13736
+ return (R, N) => (Zs(), Ks("div", {
13729
13737
  ref_key: "stage",
13730
13738
  ref: t,
13731
13739
  class: "flow-run-timeline"
@@ -13734,9 +13742,9 @@ const pv = /* @__PURE__ */ zs({
13734
13742
  });
13735
13743
  export {
13736
13744
  Pt as C,
13737
- it as P,
13745
+ nt as P,
13738
13746
  W as R,
13739
13747
  wt as T,
13740
13748
  pv as _
13741
13749
  };
13742
- //# sourceMappingURL=index-70b46f90.mjs.map
13750
+ //# sourceMappingURL=index-6ad35b53.mjs.map