@prefecthq/graphs 2.1.4 → 2.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/graphs.mjs +118 -118
- package/dist/graphs.mjs.map +1 -1
- package/dist/graphs.umd.js +13 -13
- package/dist/graphs.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/graphs.mjs
CHANGED
|
@@ -109,7 +109,7 @@ ah.exports;
|
|
|
109
109
|
}
|
|
110
110
|
return x.apply(w, M);
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function mt(x, w) {
|
|
113
113
|
for (var M = -1, Z = Array(x); ++M < x; )
|
|
114
114
|
Z[M] = w(M);
|
|
115
115
|
return Z;
|
|
@@ -269,9 +269,9 @@ ah.exports;
|
|
|
269
269
|
}
|
|
270
270
|
ae.prototype.clear = Sl, ae.prototype.delete = El, ae.prototype.get = Cl, ae.prototype.has = Il, ae.prototype.set = Al;
|
|
271
271
|
function Xi(x, w) {
|
|
272
|
-
var M = Ds(x), Z = !M && ei(x), ot = !M && !Z && aa(x), dt = !M && !Z && !ot && dr(x),
|
|
272
|
+
var M = Ds(x), Z = !M && ei(x), ot = !M && !Z && aa(x), dt = !M && !Z && !ot && dr(x), gt = M || Z || ot || dt, nt = gt ? mt(x.length, String) : [], bt = nt.length;
|
|
273
273
|
for (var Ft in x)
|
|
274
|
-
(w || qe.call(x, Ft)) && !(
|
|
274
|
+
(w || qe.call(x, Ft)) && !(gt && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
275
275
|
(Ft == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
276
276
|
ot && (Ft == "offset" || Ft == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
277
277
|
dt && (Ft == "buffer" || Ft == "byteLength" || Ft == "byteOffset") || // Skip index properties.
|
|
@@ -324,27 +324,27 @@ ah.exports;
|
|
|
324
324
|
return M;
|
|
325
325
|
}
|
|
326
326
|
function ea(x, w, M, Z, ot) {
|
|
327
|
-
x !== w && Ml(w, function(dt,
|
|
327
|
+
x !== w && Ml(w, function(dt, gt) {
|
|
328
328
|
if (ot || (ot = new ae()), xi(dt))
|
|
329
|
-
Gl(x, w,
|
|
329
|
+
Gl(x, w, gt, M, ea, Z, ot);
|
|
330
330
|
else {
|
|
331
|
-
var nt = Z ? Z(Vn(x,
|
|
332
|
-
nt === void 0 && (nt = dt), Un(x,
|
|
331
|
+
var nt = Z ? Z(Vn(x, gt), dt, gt + "", x, w, ot) : void 0;
|
|
332
|
+
nt === void 0 && (nt = dt), Un(x, gt, nt);
|
|
333
333
|
}
|
|
334
334
|
}, ca);
|
|
335
335
|
}
|
|
336
|
-
function Gl(x, w, M, Z, ot, dt,
|
|
337
|
-
var nt = Vn(x, M), bt = Vn(w, M), Ft =
|
|
336
|
+
function Gl(x, w, M, Z, ot, dt, gt) {
|
|
337
|
+
var nt = Vn(x, M), bt = Vn(w, M), Ft = gt.get(bt);
|
|
338
338
|
if (Ft) {
|
|
339
339
|
Un(x, M, Ft);
|
|
340
340
|
return;
|
|
341
341
|
}
|
|
342
|
-
var It = dt ? dt(nt, bt, M + "", x, w,
|
|
342
|
+
var It = dt ? dt(nt, bt, M + "", x, w, gt) : void 0, Qt = It === void 0;
|
|
343
343
|
if (Qt) {
|
|
344
344
|
var he = Ds(bt), De = !he && aa(bt), We = !he && !De && dr(bt);
|
|
345
345
|
It = bt, he || De || We ? Ds(nt) ? It = nt : Ws(nt) ? It = Br(nt) : De ? (Qt = !1, It = kl(bt, !0)) : We ? (Qt = !1, It = Dl(bt, !0)) : It = [] : la(bt) || ei(bt) ? (It = nt, ei(nt) ? It = ua(nt) : (!xi(nt) || Ur(nt)) && (It = sa(bt))) : Qt = !1;
|
|
346
346
|
}
|
|
347
|
-
Qt && (
|
|
347
|
+
Qt && (gt.set(bt, It), ot(It, bt, Z, dt, gt), gt.delete(bt)), Un(x, M, It);
|
|
348
348
|
}
|
|
349
349
|
function Fl(x, w) {
|
|
350
350
|
return Zl(bi(x, w, T), x + "");
|
|
@@ -380,7 +380,7 @@ ah.exports;
|
|
|
380
380
|
function ia(x, w, M, Z) {
|
|
381
381
|
var ot = !M;
|
|
382
382
|
M || (M = {});
|
|
383
|
-
for (var dt = -1,
|
|
383
|
+
for (var dt = -1, gt = w.length; ++dt < gt; ) {
|
|
384
384
|
var nt = w[dt], bt = Z ? Z(M[nt], x[nt], nt, M, x) : void 0;
|
|
385
385
|
bt === void 0 && (bt = x[nt]), ot ? Xn(M, nt, bt) : Rl(M, nt, bt);
|
|
386
386
|
}
|
|
@@ -388,8 +388,8 @@ ah.exports;
|
|
|
388
388
|
}
|
|
389
389
|
function ra(x) {
|
|
390
390
|
return Fl(function(w, M) {
|
|
391
|
-
var Z = -1, ot = M.length, dt = ot > 1 ? M[ot - 1] : void 0,
|
|
392
|
-
for (dt = x.length > 3 && typeof dt == "function" ? (ot--, dt) : void 0,
|
|
391
|
+
var Z = -1, ot = M.length, dt = ot > 1 ? M[ot - 1] : void 0, gt = ot > 2 ? M[2] : void 0;
|
|
392
|
+
for (dt = x.length > 3 && typeof dt == "function" ? (ot--, dt) : void 0, gt && Bl(M[0], M[1], gt) && (dt = ot < 3 ? void 0 : dt, ot = 1), w = Object(w); ++Z < ot; ) {
|
|
393
393
|
var nt = M[Z];
|
|
394
394
|
nt && x(w, nt, Z, dt);
|
|
395
395
|
}
|
|
@@ -398,8 +398,8 @@ ah.exports;
|
|
|
398
398
|
}
|
|
399
399
|
function Wl(x) {
|
|
400
400
|
return function(w, M, Z) {
|
|
401
|
-
for (var ot = -1, dt = Object(w),
|
|
402
|
-
var bt =
|
|
401
|
+
for (var ot = -1, dt = Object(w), gt = Z(w), nt = gt.length; nt--; ) {
|
|
402
|
+
var bt = gt[x ? nt : ++ot];
|
|
403
403
|
if (M(dt[bt], bt, dt) === !1)
|
|
404
404
|
break;
|
|
405
405
|
}
|
|
@@ -460,12 +460,12 @@ ah.exports;
|
|
|
460
460
|
}
|
|
461
461
|
function bi(x, w, M) {
|
|
462
462
|
return w = gi(w === void 0 ? x.length - 1 : w, 0), function() {
|
|
463
|
-
for (var Z = arguments, ot = -1, dt = gi(Z.length - w, 0),
|
|
464
|
-
|
|
463
|
+
for (var Z = arguments, ot = -1, dt = gi(Z.length - w, 0), gt = Array(dt); ++ot < dt; )
|
|
464
|
+
gt[ot] = Z[w + ot];
|
|
465
465
|
ot = -1;
|
|
466
466
|
for (var nt = Array(w + 1); ++ot < w; )
|
|
467
467
|
nt[ot] = Z[ot];
|
|
468
|
-
return nt[w] = M(
|
|
468
|
+
return nt[w] = M(gt), yt(x, this, nt);
|
|
469
469
|
};
|
|
470
470
|
}
|
|
471
471
|
function Vn(x, w) {
|
|
@@ -1236,30 +1236,30 @@ hh.exports;
|
|
|
1236
1236
|
return S(Q + (v + 1) * k / (k + c));
|
|
1237
1237
|
}
|
|
1238
1238
|
function V(k) {
|
|
1239
|
-
var U = [], z = k.length, Q, ct = 0, st = m, wt = p, At, vt, Y, tt, q, W, yt,
|
|
1239
|
+
var U = [], z = k.length, Q, ct = 0, st = m, wt = p, At, vt, Y, tt, q, W, yt, mt, Rt;
|
|
1240
1240
|
for (At = k.lastIndexOf(f), At < 0 && (At = 0), vt = 0; vt < At; ++vt)
|
|
1241
1241
|
k.charCodeAt(vt) >= 128 && I("not-basic"), U.push(k.charCodeAt(vt));
|
|
1242
1242
|
for (Y = At > 0 ? At + 1 : 0; Y < z; ) {
|
|
1243
|
-
for (tt = ct, q = 1, W = h; Y >= z && I("invalid-input"), yt = C(k.charCodeAt(Y++)), (yt >= h || yt > S((a - ct) / q)) && I("overflow"), ct += yt * q,
|
|
1244
|
-
Rt = h -
|
|
1243
|
+
for (tt = ct, q = 1, W = h; Y >= z && I("invalid-input"), yt = C(k.charCodeAt(Y++)), (yt >= h || yt > S((a - ct) / q)) && I("overflow"), ct += yt * q, mt = W <= wt ? l : W >= wt + u ? u : W - wt, !(yt < mt); W += h)
|
|
1244
|
+
Rt = h - mt, q > S(a / Rt) && I("overflow"), q *= Rt;
|
|
1245
1245
|
Q = U.length + 1, wt = X(ct - tt, Q, tt == 0), S(ct / Q) > a - st && I("overflow"), st += S(ct / Q), ct %= Q, U.splice(ct++, 0, st);
|
|
1246
1246
|
}
|
|
1247
1247
|
return F(U);
|
|
1248
1248
|
}
|
|
1249
1249
|
function L(k) {
|
|
1250
|
-
var U, z, Q, ct, st, wt, At, vt, Y, tt, q, W = [], yt,
|
|
1250
|
+
var U, z, Q, ct, st, wt, At, vt, Y, tt, q, W = [], yt, mt, Rt, Nt;
|
|
1251
1251
|
for (k = G(k), yt = k.length, U = m, z = 0, st = p, wt = 0; wt < yt; ++wt)
|
|
1252
1252
|
q = k[wt], q < 128 && W.push(E(q));
|
|
1253
1253
|
for (Q = ct = W.length, ct && W.push(f); Q < yt; ) {
|
|
1254
1254
|
for (At = a, wt = 0; wt < yt; ++wt)
|
|
1255
1255
|
q = k[wt], q >= U && q < At && (At = q);
|
|
1256
|
-
for (
|
|
1256
|
+
for (mt = Q + 1, At - U > S((a - z) / mt) && I("overflow"), z += (At - U) * mt, U = At, wt = 0; wt < yt; ++wt)
|
|
1257
1257
|
if (q = k[wt], q < U && ++z > a && I("overflow"), q == U) {
|
|
1258
1258
|
for (vt = z, Y = h; tt = Y <= st ? l : Y >= st + u ? u : Y - st, !(vt < tt); Y += h)
|
|
1259
1259
|
Nt = vt - tt, Rt = h - tt, W.push(
|
|
1260
1260
|
E(N(tt + Nt % Rt, 0))
|
|
1261
1261
|
), vt = S(Nt / Rt);
|
|
1262
|
-
W.push(E(N(vt, 0))), st = X(z,
|
|
1262
|
+
W.push(E(N(vt, 0))), st = X(z, mt, Q == ct), z = 0, ++Q;
|
|
1263
1263
|
}
|
|
1264
1264
|
++z, ++U;
|
|
1265
1265
|
}
|
|
@@ -4468,7 +4468,7 @@ vc.defaultOptions = {
|
|
|
4468
4468
|
type: at.UNSIGNED_BYTE
|
|
4469
4469
|
}, /** Global number of the texture batch, used by multi-texture renderers. */
|
|
4470
4470
|
vc._globalBatch = 0;
|
|
4471
|
-
let
|
|
4471
|
+
let ft = vc;
|
|
4472
4472
|
class Tc {
|
|
4473
4473
|
constructor() {
|
|
4474
4474
|
this.texArray = null, this.blend = 0, this.type = Ri.TRIANGLES, this.start = 0, this.size = 0, this.data = null;
|
|
@@ -6651,7 +6651,7 @@ const ro = class si extends il {
|
|
|
6651
6651
|
_bufferedTextures: t,
|
|
6652
6652
|
maxTextures: e
|
|
6653
6653
|
} = this, i = si._textureArrayPool, s = this.renderer.batch, n = this._tempBoundTextures, o = this.renderer.textureGC.count;
|
|
6654
|
-
let a = ++
|
|
6654
|
+
let a = ++ft._globalBatch, h = 0, l = i[0], u = 0;
|
|
6655
6655
|
s.copyBoundTextures(n, e);
|
|
6656
6656
|
for (let c = 0; c < this._bufferSize; ++c) {
|
|
6657
6657
|
const d = t[c];
|
|
@@ -6660,7 +6660,7 @@ const ro = class si extends il {
|
|
|
6660
6660
|
l.count > 0 && (s.boundArray(l, n, a, e), this.buildDrawCalls(l, u, this._bufferSize), ++h, ++a);
|
|
6661
6661
|
for (let c = 0; c < n.length; c++)
|
|
6662
6662
|
n[c] = null;
|
|
6663
|
-
|
|
6663
|
+
ft._globalBatch = a;
|
|
6664
6664
|
}
|
|
6665
6665
|
/**
|
|
6666
6666
|
* Populating drawcalls for rendering
|
|
@@ -7242,7 +7242,7 @@ class Ac {
|
|
|
7242
7242
|
* @param texture - Texture to add to the array
|
|
7243
7243
|
*/
|
|
7244
7244
|
addColorTexture(t = 0, e) {
|
|
7245
|
-
return this.colorTextures[t] = e || new
|
|
7245
|
+
return this.colorTextures[t] = e || new ft(null, {
|
|
7246
7246
|
scaleMode: $i.NEAREST,
|
|
7247
7247
|
resolution: 1,
|
|
7248
7248
|
mipmap: Wi.OFF,
|
|
@@ -7255,7 +7255,7 @@ class Ac {
|
|
|
7255
7255
|
* @param texture - Texture to add.
|
|
7256
7256
|
*/
|
|
7257
7257
|
addDepthTexture(t) {
|
|
7258
|
-
return this.depthTexture = t || new
|
|
7258
|
+
return this.depthTexture = t || new ft(null, {
|
|
7259
7259
|
scaleMode: $i.NEAREST,
|
|
7260
7260
|
resolution: 1,
|
|
7261
7261
|
width: this.width,
|
|
@@ -7302,7 +7302,7 @@ class Ac {
|
|
|
7302
7302
|
this.depthTexture && (this.depthTexture.destroy(), this.depthTexture = null, ++this.dirtyId, ++this.dirtyFormat);
|
|
7303
7303
|
}
|
|
7304
7304
|
}
|
|
7305
|
-
class Jg extends
|
|
7305
|
+
class Jg extends ft {
|
|
7306
7306
|
/**
|
|
7307
7307
|
* @param options
|
|
7308
7308
|
* @param {number} [options.width=100] - The width of the base render texture.
|
|
@@ -7643,10 +7643,10 @@ class rt extends Wo {
|
|
|
7643
7643
|
let n = null;
|
|
7644
7644
|
if (s)
|
|
7645
7645
|
n = t;
|
|
7646
|
-
else if (t instanceof
|
|
7646
|
+
else if (t instanceof ft) {
|
|
7647
7647
|
if (!t.cacheId) {
|
|
7648
7648
|
const a = (e == null ? void 0 : e.pixiIdPrefix) || "pixiid";
|
|
7649
|
-
t.cacheId = `${a}-${bs()}`,
|
|
7649
|
+
t.cacheId = `${a}-${bs()}`, ft.addToCache(t, t.cacheId);
|
|
7650
7650
|
}
|
|
7651
7651
|
n = t.cacheId;
|
|
7652
7652
|
} else {
|
|
@@ -7659,7 +7659,7 @@ class rt extends Wo {
|
|
|
7659
7659
|
let o = Ti[n];
|
|
7660
7660
|
if (s && i && !o)
|
|
7661
7661
|
throw new Error(`The cacheId "${n}" does not exist in TextureCache.`);
|
|
7662
|
-
return !o && !(t instanceof
|
|
7662
|
+
return !o && !(t instanceof ft) ? (e.resolution || (e.resolution = nr(t)), o = new rt(new ft(t, e)), o.baseTexture.cacheId = n, ft.addToCache(o.baseTexture, n), rt.addToCache(o, n)) : !o && t instanceof ft && (o = new rt(t), rt.addToCache(o, n)), o;
|
|
7663
7663
|
}
|
|
7664
7664
|
/**
|
|
7665
7665
|
* Useful for loading textures via URLs. Use instead of `Texture.from` because
|
|
@@ -7692,7 +7692,7 @@ class rt extends Wo {
|
|
|
7692
7692
|
* @returns - The resulting new BaseTexture
|
|
7693
7693
|
*/
|
|
7694
7694
|
static fromBuffer(t, e, i, s) {
|
|
7695
|
-
return new rt(
|
|
7695
|
+
return new rt(ft.fromBuffer(t, e, i, s));
|
|
7696
7696
|
}
|
|
7697
7697
|
/**
|
|
7698
7698
|
* Create a texture from a source and add to the cache.
|
|
@@ -7704,13 +7704,13 @@ class rt extends Wo {
|
|
|
7704
7704
|
* @returns - Output texture
|
|
7705
7705
|
*/
|
|
7706
7706
|
static fromLoader(t, e, i, s) {
|
|
7707
|
-
const n = new
|
|
7708
|
-
scaleMode:
|
|
7707
|
+
const n = new ft(t, Object.assign({
|
|
7708
|
+
scaleMode: ft.defaultOptions.scaleMode,
|
|
7709
7709
|
resolution: nr(e)
|
|
7710
7710
|
}, s)), { resource: o } = n;
|
|
7711
7711
|
o instanceof $g && (o.url = e);
|
|
7712
7712
|
const a = new rt(n);
|
|
7713
|
-
return i || (i = e),
|
|
7713
|
+
return i || (i = e), ft.addToCache(a.baseTexture, i), rt.addToCache(a, i), i !== e && (ft.addToCache(a.baseTexture, e), rt.addToCache(a, e)), a.baseTexture.valid ? Promise.resolve(a) : new Promise((h) => {
|
|
7714
7714
|
a.baseTexture.once("loaded", () => h(a));
|
|
7715
7715
|
});
|
|
7716
7716
|
}
|
|
@@ -7791,13 +7791,13 @@ class rt extends Wo {
|
|
|
7791
7791
|
}
|
|
7792
7792
|
/** An empty texture, used often to not have to create multiple empty textures. Can not be destroyed. */
|
|
7793
7793
|
static get EMPTY() {
|
|
7794
|
-
return rt._EMPTY || (rt._EMPTY = new rt(new
|
|
7794
|
+
return rt._EMPTY || (rt._EMPTY = new rt(new ft()), Aa(rt._EMPTY), Aa(rt._EMPTY.baseTexture)), rt._EMPTY;
|
|
7795
7795
|
}
|
|
7796
7796
|
/** A white texture of 16x16 size, used for graphics and other things Can not be destroyed. */
|
|
7797
7797
|
static get WHITE() {
|
|
7798
7798
|
if (!rt._WHITE) {
|
|
7799
7799
|
const t = $.ADAPTER.createCanvas(16, 16), e = t.getContext("2d");
|
|
7800
|
-
t.width = 16, t.height = 16, e.fillStyle = "white", e.fillRect(0, 0, 16, 16), rt._WHITE = new rt(
|
|
7800
|
+
t.width = 16, t.height = 16, e.fillStyle = "white", e.fillRect(0, 0, 16, 16), rt._WHITE = new rt(ft.from(t)), Aa(rt._WHITE), Aa(rt._WHITE.baseTexture);
|
|
7801
7801
|
}
|
|
7802
7802
|
return rt._WHITE;
|
|
7803
7803
|
}
|
|
@@ -10329,7 +10329,7 @@ class m0 {
|
|
|
10329
10329
|
* @param renderer - The renderer this system works for.
|
|
10330
10330
|
*/
|
|
10331
10331
|
constructor(t) {
|
|
10332
|
-
this.renderer = t, this.boundTextures = [], this.currentLocation = -1, this.managedTextures = [], this._unknownBoundTextures = !1, this.unknownTexture = new
|
|
10332
|
+
this.renderer = t, this.boundTextures = [], this.currentLocation = -1, this.managedTextures = [], this._unknownBoundTextures = !1, this.unknownTexture = new ft(), this.hasIntegerTextures = !1;
|
|
10333
10333
|
}
|
|
10334
10334
|
/** Sets up the renderer context and necessary buffers. */
|
|
10335
10335
|
contextChange() {
|
|
@@ -10654,10 +10654,10 @@ Object.defineProperties($, {
|
|
|
10654
10654
|
*/
|
|
10655
10655
|
WRAP_MODE: {
|
|
10656
10656
|
get() {
|
|
10657
|
-
return
|
|
10657
|
+
return ft.defaultOptions.wrapMode;
|
|
10658
10658
|
},
|
|
10659
10659
|
set(r) {
|
|
10660
|
-
_t("7.1.0", "settings.WRAP_MODE is deprecated, use BaseTexture.defaultOptions.wrapMode"),
|
|
10660
|
+
_t("7.1.0", "settings.WRAP_MODE is deprecated, use BaseTexture.defaultOptions.wrapMode"), ft.defaultOptions.wrapMode = r;
|
|
10661
10661
|
}
|
|
10662
10662
|
},
|
|
10663
10663
|
/**
|
|
@@ -10670,10 +10670,10 @@ Object.defineProperties($, {
|
|
|
10670
10670
|
*/
|
|
10671
10671
|
SCALE_MODE: {
|
|
10672
10672
|
get() {
|
|
10673
|
-
return
|
|
10673
|
+
return ft.defaultOptions.scaleMode;
|
|
10674
10674
|
},
|
|
10675
10675
|
set(r) {
|
|
10676
|
-
_t("7.1.0", "settings.SCALE_MODE is deprecated, use BaseTexture.defaultOptions.scaleMode"),
|
|
10676
|
+
_t("7.1.0", "settings.SCALE_MODE is deprecated, use BaseTexture.defaultOptions.scaleMode"), ft.defaultOptions.scaleMode = r;
|
|
10677
10677
|
}
|
|
10678
10678
|
},
|
|
10679
10679
|
/**
|
|
@@ -10686,10 +10686,10 @@ Object.defineProperties($, {
|
|
|
10686
10686
|
*/
|
|
10687
10687
|
MIPMAP_TEXTURES: {
|
|
10688
10688
|
get() {
|
|
10689
|
-
return
|
|
10689
|
+
return ft.defaultOptions.mipmap;
|
|
10690
10690
|
},
|
|
10691
10691
|
set(r) {
|
|
10692
|
-
_t("7.1.0", "settings.MIPMAP_TEXTURES is deprecated, use BaseTexture.defaultOptions.mipmap"),
|
|
10692
|
+
_t("7.1.0", "settings.MIPMAP_TEXTURES is deprecated, use BaseTexture.defaultOptions.mipmap"), ft.defaultOptions.mipmap = r;
|
|
10693
10693
|
}
|
|
10694
10694
|
// MIPMAP_MODES.POW2,
|
|
10695
10695
|
},
|
|
@@ -10703,13 +10703,13 @@ Object.defineProperties($, {
|
|
|
10703
10703
|
*/
|
|
10704
10704
|
ANISOTROPIC_LEVEL: {
|
|
10705
10705
|
get() {
|
|
10706
|
-
return
|
|
10706
|
+
return ft.defaultOptions.anisotropicLevel;
|
|
10707
10707
|
},
|
|
10708
10708
|
set(r) {
|
|
10709
10709
|
_t(
|
|
10710
10710
|
"7.1.0",
|
|
10711
10711
|
"settings.ANISOTROPIC_LEVEL is deprecated, use BaseTexture.defaultOptions.anisotropicLevel"
|
|
10712
|
-
),
|
|
10712
|
+
), ft.defaultOptions.anisotropicLevel = r;
|
|
10713
10713
|
}
|
|
10714
10714
|
},
|
|
10715
10715
|
/**
|
|
@@ -11744,7 +11744,7 @@ class S0 extends Eo {
|
|
|
11744
11744
|
const { width: i, height: s } = e || {};
|
|
11745
11745
|
super(i, s), this.items = [], this.itemDirtyIds = [];
|
|
11746
11746
|
for (let n = 0; n < t; n++) {
|
|
11747
|
-
const o = new
|
|
11747
|
+
const o = new ft();
|
|
11748
11748
|
this.items.push(o), this.itemDirtyIds.push(-2);
|
|
11749
11749
|
}
|
|
11750
11750
|
this.length = t, this._load = null, this.baseTexture = null;
|
|
@@ -13449,7 +13449,7 @@ Bt.prototype._initCachedDisplayObject = function(r) {
|
|
|
13449
13449
|
resolution: i,
|
|
13450
13450
|
multisample: this.cacheAsBitmapMultisample ?? r.multisample
|
|
13451
13451
|
}), l = `cacheAsBitmap_${bs()}`;
|
|
13452
|
-
this._cacheData.textureCacheId = l,
|
|
13452
|
+
this._cacheData.textureCacheId = l, ft.addToCache(h.baseTexture, l), rt.addToCache(h, l);
|
|
13453
13453
|
const u = this.transform.localTransform.copyTo(A0).invert().translate(-e.x, -e.y);
|
|
13454
13454
|
this.render = this._cacheData.originalRender, r.render(this, { renderTexture: h, clear: !0, transform: u, skipUpdateTransform: !1 }), r.framebuffer.blit(), r.projection.transform = a, r.renderTexture.bind(s, n, o), this.render = this._renderCached, this.updateTransform = this.displayObjectUpdateTransform, this.calculateBounds = this._calculateCachedBounds, this.getLocalBounds = this._getCachedLocalBounds, this._mask = null, this.filterArea = null, this.alpha = t;
|
|
13455
13455
|
const c = new ie(h);
|
|
@@ -13471,7 +13471,7 @@ Bt.prototype._initCachedDisplayObjectCanvas = function(r) {
|
|
|
13471
13471
|
height: t.height,
|
|
13472
13472
|
resolution: n
|
|
13473
13473
|
}), a = `cacheAsBitmap_${bs()}`;
|
|
13474
|
-
this._cacheData.textureCacheId = a,
|
|
13474
|
+
this._cacheData.textureCacheId = a, ft.addToCache(o.baseTexture, a), rt.addToCache(o, a);
|
|
13475
13475
|
const h = A0;
|
|
13476
13476
|
this.transform.localTransform.copyTo(h), h.invert(), h.tx -= t.x, h.ty -= t.y, this.renderCanvas = this._cacheData.originalRenderCanvas, r.render(this, { renderTexture: o, clear: !0, transform: h, skipUpdateTransform: !1 }), r.canvasContext.activeContext = i, r._projTransform = s, this.renderCanvas = this._renderCachedCanvas, this.updateTransform = this.displayObjectUpdateTransform, this.calculateBounds = this._calculateCachedBounds, this.getLocalBounds = this._getCachedLocalBounds, this._mask = null, this.filterArea = null, this.alpha = e;
|
|
13477
13477
|
const l = new ie(o);
|
|
@@ -13484,7 +13484,7 @@ Bt.prototype._getCachedLocalBounds = function() {
|
|
|
13484
13484
|
return this._cacheData.sprite.getLocalBounds(null);
|
|
13485
13485
|
};
|
|
13486
13486
|
Bt.prototype._destroyCachedDisplayObject = function() {
|
|
13487
|
-
this._cacheData.sprite._texture.destroy(!0), this._cacheData.sprite = null,
|
|
13487
|
+
this._cacheData.sprite._texture.destroy(!0), this._cacheData.sprite = null, ft.removeFromCache(this._cacheData.textureCacheId), rt.removeFromCache(this._cacheData.textureCacheId), this._cacheData.textureCacheId = null;
|
|
13488
13488
|
};
|
|
13489
13489
|
Bt.prototype._cacheAsBitmapDestroy = function(r) {
|
|
13490
13490
|
this.cacheAsBitmap = !1, this.destroy(r);
|
|
@@ -17057,7 +17057,7 @@ class Tw {
|
|
|
17057
17057
|
}), e instanceof rt) {
|
|
17058
17058
|
const a = e;
|
|
17059
17059
|
i.forEach((h) => {
|
|
17060
|
-
a.baseTexture !== rt.EMPTY.baseTexture &&
|
|
17060
|
+
a.baseTexture !== rt.EMPTY.baseTexture && ft.addToCache(a.baseTexture, h), rt.addToCache(a, h);
|
|
17061
17061
|
});
|
|
17062
17062
|
}
|
|
17063
17063
|
}
|
|
@@ -17437,7 +17437,7 @@ const rl = {
|
|
|
17437
17437
|
});
|
|
17438
17438
|
const n = { ...t.data };
|
|
17439
17439
|
n.resolution ?? (n.resolution = nr(r)), i && ((a = n.resourceOptions) == null ? void 0 : a.ownsImageBitmap) === void 0 && (n.resourceOptions = { ...n.resourceOptions }, n.resourceOptions.ownsImageBitmap = !0);
|
|
17440
|
-
const o = new
|
|
17440
|
+
const o = new ft(s, n);
|
|
17441
17441
|
return o.resource.src = r, Uo(o, e, r);
|
|
17442
17442
|
},
|
|
17443
17443
|
unload(r) {
|
|
@@ -17461,7 +17461,7 @@ const Kw = ".svg", Hw = "image/svg+xml", Yw = {
|
|
|
17461
17461
|
var n;
|
|
17462
17462
|
const i = new Lc(r, (n = t == null ? void 0 : t.data) == null ? void 0 : n.resourceOptions);
|
|
17463
17463
|
await i.load();
|
|
17464
|
-
const s = new
|
|
17464
|
+
const s = new ft(i, {
|
|
17465
17465
|
resolution: nr(r),
|
|
17466
17466
|
...t == null ? void 0 : t.data
|
|
17467
17467
|
});
|
|
@@ -17499,7 +17499,7 @@ const zw = [".mp4", ".m4v", ".webm", ".ogv"], jw = [
|
|
|
17499
17499
|
...(o = t == null ? void 0 : t.data) == null ? void 0 : o.resourceOptions
|
|
17500
17500
|
}, h = new C0(n, a);
|
|
17501
17501
|
await h.load();
|
|
17502
|
-
const l = new
|
|
17502
|
+
const l = new ft(h, {
|
|
17503
17503
|
alphaMode: await i1(),
|
|
17504
17504
|
resolution: nr(r),
|
|
17505
17505
|
...t == null ? void 0 : t.data
|
|
@@ -18790,7 +18790,7 @@ const FS = {
|
|
|
18790
18790
|
},
|
|
18791
18791
|
async load(r, t, e) {
|
|
18792
18792
|
const i = await (await $.ADAPTER.fetch(r)).arrayBuffer(), s = CS(i).map((n) => {
|
|
18793
|
-
const o = new
|
|
18793
|
+
const o = new ft(n, {
|
|
18794
18794
|
mipmap: Wi.OFF,
|
|
18795
18795
|
alphaMode: _e.NO_PREMULTIPLIED_ALPHA,
|
|
18796
18796
|
resolution: nr(r),
|
|
@@ -18825,7 +18825,7 @@ const NS = {
|
|
|
18825
18825
|
type: u.type,
|
|
18826
18826
|
format: u.format
|
|
18827
18827
|
});
|
|
18828
|
-
const c = u.resource ?? u, d = new
|
|
18828
|
+
const c = u.resource ?? u, d = new ft(c, h);
|
|
18829
18829
|
return d.ktxKeyValueData = o, Uo(d, e, r);
|
|
18830
18830
|
});
|
|
18831
18831
|
return l.length === 1 ? l[0] : l;
|
|
@@ -19429,7 +19429,7 @@ function XS(r, t) {
|
|
|
19429
19429
|
));
|
|
19430
19430
|
continue;
|
|
19431
19431
|
}
|
|
19432
|
-
const st = (-A + y) * (-I + v) - (-A + b) * (-I + _), wt = (-P + S) * (-B + v) - (-P + b) * (-B + E), At = (D * wt - k * st) / Q, vt = (U * st - K * wt) / Q, Y = (At - b) * (At - b) + (vt - v) * (vt - v), tt = b + (At - b) * C, q = v + (vt - v) * C, W = b - (At - b) * N, yt = v - (vt - v) * N,
|
|
19432
|
+
const st = (-A + y) * (-I + v) - (-A + b) * (-I + _), wt = (-P + S) * (-B + v) - (-P + b) * (-B + E), At = (D * wt - k * st) / Q, vt = (U * st - K * wt) / Q, Y = (At - b) * (At - b) + (vt - v) * (vt - v), tt = b + (At - b) * C, q = v + (vt - v) * C, W = b - (At - b) * N, yt = v - (vt - v) * N, mt = Math.min(D * D + K * K, k * k + U * U), Rt = ct ? C : N, Nt = mt + Rt * Rt * f, Ce = Y <= Nt;
|
|
19433
19433
|
let Qe = n.join;
|
|
19434
19434
|
if (Qe === Ue.MITER && Y / f > g && (Qe = Ue.BEVEL), Ce)
|
|
19435
19435
|
switch (Qe) {
|
|
@@ -19852,7 +19852,7 @@ const Xs = new ht(), D0 = class W0 extends Zg {
|
|
|
19852
19852
|
}
|
|
19853
19853
|
/** Converts intermediate batches data to drawCalls. */
|
|
19854
19854
|
buildDrawCalls() {
|
|
19855
|
-
let t = ++
|
|
19855
|
+
let t = ++ft._globalBatch;
|
|
19856
19856
|
for (let c = 0; c < this.drawCalls.length; c++)
|
|
19857
19857
|
this.drawCalls[c].texArray.clear(), Da.push(this.drawCalls[c]);
|
|
19858
19858
|
this.drawCalls.length = 0;
|
|
@@ -19865,7 +19865,7 @@ const Xs = new ht(), D0 = class W0 extends Zg {
|
|
|
19865
19865
|
const d = this.batches[c], p = 8, m = d.style, f = m.texture.baseTexture;
|
|
19866
19866
|
h !== !!m.native && (h = !!m.native, l = h ? Ri.LINES : Ri.TRIANGLES, o = null, n = p, t++), o !== f && (o = f, f._batchEnabled !== t && (n === p && (t++, n = 0, s.size > 0 && (s = Da.pop(), s || (s = new Tc(), s.texArray = new Cc()), this.drawCalls.push(s)), s.start = u, s.size = 0, s.texArray.count = 0, s.type = l), f.touched = 1, f._batchEnabled = t, f._batchLocation = n, f.wrapMode = rr.REPEAT, s.texArray.elements[s.texArray.count++] = f, n++)), s.size += d.size, u += d.size, a = f._batchLocation, this.addColors(e, m.color, m.alpha, d.attribSize, d.attribStart), this.addTextureIds(i, a, d.attribSize, d.attribStart);
|
|
19867
19867
|
}
|
|
19868
|
-
|
|
19868
|
+
ft._globalBatch = t, this.packAttributes();
|
|
19869
19869
|
}
|
|
19870
19870
|
/** Packs attributes to single buffer. */
|
|
19871
19871
|
packAttributes() {
|
|
@@ -22438,7 +22438,7 @@ function iE(r, t) {
|
|
|
22438
22438
|
return e;
|
|
22439
22439
|
}
|
|
22440
22440
|
function rE(r, t) {
|
|
22441
|
-
if (r.baseTexture instanceof
|
|
22441
|
+
if (r.baseTexture instanceof ft) {
|
|
22442
22442
|
const e = r.baseTexture;
|
|
22443
22443
|
return t.includes(e) || t.push(e), !0;
|
|
22444
22444
|
}
|
|
@@ -22587,7 +22587,7 @@ Object.defineProperties($, {
|
|
|
22587
22587
|
}
|
|
22588
22588
|
});
|
|
22589
22589
|
function z0(r, t) {
|
|
22590
|
-
return t instanceof
|
|
22590
|
+
return t instanceof ft ? (t._glTextures[r.CONTEXT_UID] || r.texture.bind(t), !0) : !1;
|
|
22591
22591
|
}
|
|
22592
22592
|
function lE(r, t) {
|
|
22593
22593
|
if (!(t instanceof Xo))
|
|
@@ -22783,7 +22783,7 @@ const $0 = class lo {
|
|
|
22783
22783
|
* be used on the BaseTexture.
|
|
22784
22784
|
*/
|
|
22785
22785
|
constructor(t, e, i = null) {
|
|
22786
|
-
this.linkedSheets = [], this._texture = t instanceof rt ? t : null, this.baseTexture = t instanceof
|
|
22786
|
+
this.linkedSheets = [], this._texture = t instanceof rt ? t : null, this.baseTexture = t instanceof ft ? t : this._texture.baseTexture, this.textures = {}, this.animations = {}, this.data = e;
|
|
22787
22787
|
const s = this.baseTexture.resource;
|
|
22788
22788
|
this.resolution = this._updateResolution(i || (s ? s.url : null)), this._frames = this.data.frames, this._frameKeys = Object.keys(this._frames), this._batchIndex = 0, this._callback = null;
|
|
22789
22789
|
}
|
|
@@ -23357,7 +23357,7 @@ const mr = class Si {
|
|
|
23357
23357
|
let m = 0, f = 0, g, y, _, b = 0;
|
|
23358
23358
|
const v = [];
|
|
23359
23359
|
for (let E = 0; E < u.length; E++) {
|
|
23360
|
-
g || (g = $.ADAPTER.createCanvas(), g.width = a, g.height = h, y = g.getContext("2d"), _ = new
|
|
23360
|
+
g || (g = $.ADAPTER.createCanvas(), g.width = a, g.height = h, y = g.getContext("2d"), _ = new ft(g, { resolution: o, ...l }), v.push(new rt(_)), p.page.push({
|
|
23361
23361
|
id: v.length - 1,
|
|
23362
23362
|
file: ""
|
|
23363
23363
|
}));
|
|
@@ -26489,7 +26489,7 @@ kh.exports;
|
|
|
26489
26489
|
return W && W.binding && W.binding("util");
|
|
26490
26490
|
} catch {
|
|
26491
26491
|
}
|
|
26492
|
-
}(),
|
|
26492
|
+
}(), mt = yt && yt.isTypedArray;
|
|
26493
26493
|
function Rt(T, R) {
|
|
26494
26494
|
for (var x = -1, w = T == null ? 0 : T.length, M = 0, Z = []; ++x < w; ) {
|
|
26495
26495
|
var ot = T[x];
|
|
@@ -26677,13 +26677,13 @@ kh.exports;
|
|
|
26677
26677
|
}
|
|
26678
26678
|
yi.prototype.clear = Ll, yi.prototype.delete = ea, yi.prototype.get = Gl, yi.prototype.has = Fl, yi.prototype.set = Nl;
|
|
26679
26679
|
function kl(T, R) {
|
|
26680
|
-
var x = Ws(T), w = !x && Kn(T), M = !x && !w && Ur(T), Z = !x && !w && !M && ua(T), ot = x || w || M || Z, dt = ot ? Qe(T.length, String) : [],
|
|
26680
|
+
var x = Ws(T), w = !x && Kn(T), M = !x && !w && Ur(T), Z = !x && !w && !M && ua(T), ot = x || w || M || Z, dt = ot ? Qe(T.length, String) : [], gt = dt.length;
|
|
26681
26681
|
for (var nt in T)
|
|
26682
26682
|
(R || Ie.call(T, nt)) && !(ot && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
26683
26683
|
(nt == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
26684
26684
|
M && (nt == "offset" || nt == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
26685
26685
|
Z && (nt == "buffer" || nt == "byteLength" || nt == "byteOffset") || // Skip index properties.
|
|
26686
|
-
Vn(nt,
|
|
26686
|
+
Vn(nt, gt))) && dt.push(nt);
|
|
26687
26687
|
return dt;
|
|
26688
26688
|
}
|
|
26689
26689
|
function Gs(T, R) {
|
|
@@ -26706,16 +26706,16 @@ kh.exports;
|
|
|
26706
26706
|
return T === R ? !0 : T == null || R == null || !dr(T) && !dr(R) ? T !== T && R !== R : Wl(T, R, x, w, ra, M);
|
|
26707
26707
|
}
|
|
26708
26708
|
function Wl(T, R, x, w, M, Z) {
|
|
26709
|
-
var ot = Ws(T), dt = Ws(R),
|
|
26710
|
-
|
|
26711
|
-
var bt =
|
|
26709
|
+
var ot = Ws(T), dt = Ws(R), gt = ot ? h : bi(T), nt = dt ? h : bi(R);
|
|
26710
|
+
gt = gt == a ? _ : gt, nt = nt == a ? _ : nt;
|
|
26711
|
+
var bt = gt == _, Ft = nt == _, It = gt == nt;
|
|
26712
26712
|
if (It && Ur(T)) {
|
|
26713
26713
|
if (!Ur(R))
|
|
26714
26714
|
return !1;
|
|
26715
26715
|
ot = !0, bt = !1;
|
|
26716
26716
|
}
|
|
26717
26717
|
if (It && !bt)
|
|
26718
|
-
return Z || (Z = new yi()), ot || ua(T) ? sa(T, R, x, w, M, Z) : na(T, R,
|
|
26718
|
+
return Z || (Z = new yi()), ot || ua(T) ? sa(T, R, x, w, M, Z) : na(T, R, gt, x, w, M, Z);
|
|
26719
26719
|
if (!(x & s)) {
|
|
26720
26720
|
var Qt = bt && Ie.call(T, "__wrapped__"), he = Ft && Ie.call(R, "__wrapped__");
|
|
26721
26721
|
if (Qt || he) {
|
|
@@ -26743,8 +26743,8 @@ kh.exports;
|
|
|
26743
26743
|
return R;
|
|
26744
26744
|
}
|
|
26745
26745
|
function sa(T, R, x, w, M, Z) {
|
|
26746
|
-
var ot = x & s, dt = T.length,
|
|
26747
|
-
if (dt !=
|
|
26746
|
+
var ot = x & s, dt = T.length, gt = R.length;
|
|
26747
|
+
if (dt != gt && !(ot && gt > dt))
|
|
26748
26748
|
return !1;
|
|
26749
26749
|
var nt = Z.get(T);
|
|
26750
26750
|
if (nt && Z.get(R))
|
|
@@ -26795,8 +26795,8 @@ kh.exports;
|
|
|
26795
26795
|
case f:
|
|
26796
26796
|
var dt = Rs;
|
|
26797
26797
|
case E:
|
|
26798
|
-
var
|
|
26799
|
-
if (dt || (dt = Yo), T.size != R.size && !
|
|
26798
|
+
var gt = w & s;
|
|
26799
|
+
if (dt || (dt = Yo), T.size != R.size && !gt)
|
|
26800
26800
|
return !1;
|
|
26801
26801
|
var nt = ot.get(T);
|
|
26802
26802
|
if (nt)
|
|
@@ -26811,10 +26811,10 @@ kh.exports;
|
|
|
26811
26811
|
return !1;
|
|
26812
26812
|
}
|
|
26813
26813
|
function Bl(T, R, x, w, M, Z) {
|
|
26814
|
-
var ot = x & s, dt = oa(T),
|
|
26815
|
-
if (
|
|
26814
|
+
var ot = x & s, dt = oa(T), gt = dt.length, nt = oa(R), bt = nt.length;
|
|
26815
|
+
if (gt != bt && !ot)
|
|
26816
26816
|
return !1;
|
|
26817
|
-
for (var Ft =
|
|
26817
|
+
for (var Ft = gt; Ft--; ) {
|
|
26818
26818
|
var It = dt[Ft];
|
|
26819
26819
|
if (!(ot ? It in R : Ie.call(R, It)))
|
|
26820
26820
|
return !1;
|
|
@@ -26824,7 +26824,7 @@ kh.exports;
|
|
|
26824
26824
|
return Qt == R;
|
|
26825
26825
|
var he = !0;
|
|
26826
26826
|
Z.set(T, R), Z.set(R, T);
|
|
26827
|
-
for (var De = ot; ++Ft <
|
|
26827
|
+
for (var De = ot; ++Ft < gt; ) {
|
|
26828
26828
|
It = dt[Ft];
|
|
26829
26829
|
var We = T[It], Xr = R[It];
|
|
26830
26830
|
if (w)
|
|
@@ -26945,7 +26945,7 @@ kh.exports;
|
|
|
26945
26945
|
function dr(T) {
|
|
26946
26946
|
return T != null && typeof T == "object";
|
|
26947
26947
|
}
|
|
26948
|
-
var ua =
|
|
26948
|
+
var ua = mt ? dl(mt) : Zn;
|
|
26949
26949
|
function ca(T) {
|
|
26950
26950
|
return aa(T) ? kl(T) : Ol(T);
|
|
26951
26951
|
}
|
|
@@ -29534,15 +29534,15 @@ function BA(r) {
|
|
|
29534
29534
|
b.x = E(e, b), b.X = E(i, b), b.c = E(t, b), v.x = E(e, v), v.X = E(i, v), v.c = E(t, v);
|
|
29535
29535
|
function E(Y, tt) {
|
|
29536
29536
|
return function(q) {
|
|
29537
|
-
var W = [], yt = -1,
|
|
29537
|
+
var W = [], yt = -1, mt = 0, Rt = Y.length, Nt, Ce, Qe;
|
|
29538
29538
|
for (q instanceof Date || (q = /* @__PURE__ */ new Date(+q)); ++yt < Rt; )
|
|
29539
|
-
Y.charCodeAt(yt) === 37 && (W.push(Y.slice(
|
|
29540
|
-
return W.push(Y.slice(
|
|
29539
|
+
Y.charCodeAt(yt) === 37 && (W.push(Y.slice(mt, yt)), (Ce = Zm[Nt = Y.charAt(++yt)]) != null ? Nt = Y.charAt(++yt) : Ce = Nt === "e" ? " " : "0", (Qe = tt[Nt]) && (Nt = Qe(q, Ce)), W.push(Nt), mt = yt + 1);
|
|
29540
|
+
return W.push(Y.slice(mt, yt)), W.join("");
|
|
29541
29541
|
};
|
|
29542
29542
|
}
|
|
29543
29543
|
function A(Y, tt) {
|
|
29544
29544
|
return function(q) {
|
|
29545
|
-
var W = qn(1900, void 0, 1), yt = I(W, Y, q += "", 0),
|
|
29545
|
+
var W = qn(1900, void 0, 1), yt = I(W, Y, q += "", 0), mt, Rt;
|
|
29546
29546
|
if (yt != q.length)
|
|
29547
29547
|
return null;
|
|
29548
29548
|
if ("Q" in W)
|
|
@@ -29552,14 +29552,14 @@ function BA(r) {
|
|
|
29552
29552
|
if (tt && !("Z" in W) && (W.Z = 0), "p" in W && (W.H = W.H % 12 + W.p * 12), W.m === void 0 && (W.m = "q" in W ? W.q : 0), "V" in W) {
|
|
29553
29553
|
if (W.V < 1 || W.V > 53)
|
|
29554
29554
|
return null;
|
|
29555
|
-
"w" in W || (W.w = 1), "Z" in W ? (
|
|
29555
|
+
"w" in W || (W.w = 1), "Z" in W ? (mt = Ju(qn(W.y, 0, 1)), Rt = mt.getUTCDay(), mt = Rt > 4 || Rt === 0 ? Kh.ceil(mt) : Kh(mt), mt = cp.offset(mt, (W.V - 1) * 7), W.y = mt.getUTCFullYear(), W.m = mt.getUTCMonth(), W.d = mt.getUTCDate() + (W.w + 6) % 7) : (mt = ju(qn(W.y, 0, 1)), Rt = mt.getDay(), mt = Rt > 4 || Rt === 0 ? Vh.ceil(mt) : Vh(mt), mt = Ko.offset(mt, (W.V - 1) * 7), W.y = mt.getFullYear(), W.m = mt.getMonth(), W.d = mt.getDate() + (W.w + 6) % 7);
|
|
29556
29556
|
} else
|
|
29557
29557
|
("W" in W || "U" in W) && ("w" in W || (W.w = "u" in W ? W.u % 7 : "W" in W ? 1 : 0), Rt = "Z" in W ? Ju(qn(W.y, 0, 1)).getUTCDay() : ju(qn(W.y, 0, 1)).getDay(), W.m = 0, W.d = "W" in W ? (W.w + 6) % 7 + W.W * 7 - (Rt + 5) % 7 : W.w + W.U * 7 - (Rt + 6) % 7);
|
|
29558
29558
|
return "Z" in W ? (W.H += W.Z / 100 | 0, W.M += W.Z % 100, Ju(W)) : ju(W);
|
|
29559
29559
|
};
|
|
29560
29560
|
}
|
|
29561
29561
|
function I(Y, tt, q, W) {
|
|
29562
|
-
for (var yt = 0,
|
|
29562
|
+
for (var yt = 0, mt = tt.length, Rt = q.length, Nt, Ce; yt < mt; ) {
|
|
29563
29563
|
if (W >= Rt)
|
|
29564
29564
|
return -1;
|
|
29565
29565
|
if (Nt = tt.charCodeAt(yt++), Nt === 37) {
|
|
@@ -29987,14 +29987,14 @@ function KR({ domain: r, range: t }) {
|
|
|
29987
29987
|
}
|
|
29988
29988
|
function yd(r) {
|
|
29989
29989
|
return {
|
|
29990
|
-
mode:
|
|
29990
|
+
mode: pt.horizontal,
|
|
29991
29991
|
range: qM(),
|
|
29992
29992
|
domain: tP(r)
|
|
29993
29993
|
};
|
|
29994
29994
|
}
|
|
29995
29995
|
function HR() {
|
|
29996
29996
|
return {
|
|
29997
|
-
mode:
|
|
29997
|
+
mode: pt.vertical
|
|
29998
29998
|
};
|
|
29999
29999
|
}
|
|
30000
30000
|
let gn = null;
|
|
@@ -30639,7 +30639,7 @@ async function kb() {
|
|
|
30639
30639
|
}
|
|
30640
30640
|
function l(u, c) {
|
|
30641
30641
|
const d = wp();
|
|
30642
|
-
if (
|
|
30642
|
+
if (pt.isTemporal() || pt.isLeftAligned()) {
|
|
30643
30643
|
const p = u.start_time, m = u.end_time ?? /* @__PURE__ */ new Date(), g = mg(m, p) / dx * d;
|
|
30644
30644
|
return Math.max(g, c * 2);
|
|
30645
30645
|
}
|
|
@@ -31075,8 +31075,8 @@ async function UM(r) {
|
|
|
31075
31075
|
return [
|
|
31076
31076
|
b.state_type,
|
|
31077
31077
|
v.getTime(),
|
|
31078
|
-
|
|
31079
|
-
|
|
31078
|
+
pt.horizontal,
|
|
31079
|
+
pt.horizontalScaleMultiplier,
|
|
31080
31080
|
t.styles.colorMode
|
|
31081
31081
|
].join("-");
|
|
31082
31082
|
}
|
|
@@ -31278,7 +31278,7 @@ async function Ob() {
|
|
|
31278
31278
|
};
|
|
31279
31279
|
}
|
|
31280
31280
|
function S(L) {
|
|
31281
|
-
return
|
|
31281
|
+
return pt.isDependency() ? a.getTotalOffset(L.column) : L.x;
|
|
31282
31282
|
}
|
|
31283
31283
|
function E() {
|
|
31284
31284
|
return h ? o.getTotalValue(h.maxRow) : 0;
|
|
@@ -31286,7 +31286,7 @@ async function Ob() {
|
|
|
31286
31286
|
function A() {
|
|
31287
31287
|
if (!h || !l)
|
|
31288
31288
|
return 0;
|
|
31289
|
-
if (
|
|
31289
|
+
if (pt.isDependency())
|
|
31290
31290
|
return a.getTotalValue(h.maxColumn);
|
|
31291
31291
|
const L = yd(l.start_time), D = wb(L), K = D(l.end_time ?? /* @__PURE__ */ new Date()), k = D(l.start_time);
|
|
31292
31292
|
return K - k;
|
|
@@ -31405,12 +31405,12 @@ function JM({ start_time: r, end_time: t }) {
|
|
|
31405
31405
|
}
|
|
31406
31406
|
async function $M() {
|
|
31407
31407
|
const r = await Tp(), t = await ge(), e = JM(r);
|
|
31408
|
-
jh(e, !0), r.nodes.size > t.disableAnimationsThreshold && (
|
|
31408
|
+
jh(e, !0), r.nodes.size > t.disableAnimationsThreshold && (pt.disableAnimations = !0), jM(r.nodes) > t.disableEdgesThreshold && (pt.disableEdges = !0);
|
|
31409
31409
|
}
|
|
31410
31410
|
function QM() {
|
|
31411
|
-
|
|
31411
|
+
pt.horizontal = "temporal", pt.vertical = "nearest-parent", pt.horizontalScaleMultiplierDefault = 0, pt.horizontalScaleMultiplier = 0, pt.disableAnimations = !1, pt.disableEdges = !1, pt.disableGuides = !1;
|
|
31412
31412
|
}
|
|
31413
|
-
const
|
|
31413
|
+
const pt = Vb({
|
|
31414
31414
|
horizontal: "temporal",
|
|
31415
31415
|
vertical: "nearest-parent",
|
|
31416
31416
|
horizontalScaleMultiplierDefault: 0,
|
|
@@ -31435,55 +31435,55 @@ const gt = Vb({
|
|
|
31435
31435
|
}
|
|
31436
31436
|
});
|
|
31437
31437
|
async function Bi() {
|
|
31438
|
-
return vd() ?
|
|
31438
|
+
return vd() ? pt : await je("layoutSettingsCreated");
|
|
31439
31439
|
}
|
|
31440
31440
|
function wp() {
|
|
31441
|
-
return
|
|
31441
|
+
return pt.isDependency() ? nx : sx * pt.horizontalScaleMultiplier;
|
|
31442
31442
|
}
|
|
31443
31443
|
function qM() {
|
|
31444
31444
|
return [0, wp()];
|
|
31445
31445
|
}
|
|
31446
31446
|
function tP(r) {
|
|
31447
|
-
if (
|
|
31447
|
+
if (pt.isDependency())
|
|
31448
31448
|
return [0, 1];
|
|
31449
31449
|
const t = r, e = cx(t, rx);
|
|
31450
31450
|
return [t, e];
|
|
31451
31451
|
}
|
|
31452
31452
|
function jh(r, t = !1) {
|
|
31453
|
-
if (
|
|
31453
|
+
if (pt.horizontalScaleMultiplier === r)
|
|
31454
31454
|
return;
|
|
31455
31455
|
const e = cl();
|
|
31456
|
-
|
|
31456
|
+
pt.horizontalScaleMultiplier = r, t && (pt.horizontalScaleMultiplierDefault = r), e();
|
|
31457
31457
|
}
|
|
31458
31458
|
function eP() {
|
|
31459
|
-
jh(
|
|
31459
|
+
jh(pt.horizontalScaleMultiplierDefault);
|
|
31460
31460
|
}
|
|
31461
31461
|
function iP(r) {
|
|
31462
|
-
if (
|
|
31462
|
+
if (pt.horizontal === r)
|
|
31463
31463
|
return;
|
|
31464
31464
|
const t = cl();
|
|
31465
|
-
|
|
31465
|
+
pt.horizontal = r, pt.disableGuides = pt.isDependency() || pt.isLeftAligned(), t();
|
|
31466
31466
|
}
|
|
31467
31467
|
function rP(r) {
|
|
31468
|
-
if (
|
|
31468
|
+
if (pt.vertical === r)
|
|
31469
31469
|
return;
|
|
31470
31470
|
const t = cl();
|
|
31471
|
-
|
|
31471
|
+
pt.vertical = r, t();
|
|
31472
31472
|
}
|
|
31473
31473
|
function sP(r) {
|
|
31474
|
-
if (
|
|
31474
|
+
if (pt.disableEdges === r)
|
|
31475
31475
|
return;
|
|
31476
31476
|
const t = cl();
|
|
31477
|
-
|
|
31477
|
+
pt.disableEdges = r, t();
|
|
31478
31478
|
}
|
|
31479
31479
|
function cl() {
|
|
31480
|
-
const r = vd() ? "layoutSettingsUpdated" : "layoutSettingsCreated", { horizontal: t, vertical: e } =
|
|
31480
|
+
const r = vd() ? "layoutSettingsUpdated" : "layoutSettingsCreated", { horizontal: t, vertical: e } = pt;
|
|
31481
31481
|
return () => {
|
|
31482
|
-
vd() && xt.emit(r,
|
|
31482
|
+
vd() && xt.emit(r, pt), (t !== pt.horizontal || e !== pt.vertical) && xt.emit("layoutUpdated");
|
|
31483
31483
|
};
|
|
31484
31484
|
}
|
|
31485
31485
|
function vd() {
|
|
31486
|
-
return
|
|
31486
|
+
return pt.horizontalScaleMultiplier !== 0;
|
|
31487
31487
|
}
|
|
31488
31488
|
function Bb(r) {
|
|
31489
31489
|
if (!(r instanceof HTMLElement))
|
|
@@ -31517,7 +31517,7 @@ const nP = { class: "flex items-center gap-2" }, oP = /* @__PURE__ */ lg({
|
|
|
31517
31517
|
}
|
|
31518
31518
|
], i = oh({
|
|
31519
31519
|
get() {
|
|
31520
|
-
return `${
|
|
31520
|
+
return `${pt.horizontal}_${pt.vertical}`;
|
|
31521
31521
|
},
|
|
31522
31522
|
set(l) {
|
|
31523
31523
|
const [u, c] = l.split("_");
|
|
@@ -31525,18 +31525,18 @@ const nP = { class: "flex items-center gap-2" }, oP = /* @__PURE__ */ lg({
|
|
|
31525
31525
|
}
|
|
31526
31526
|
}), s = oh({
|
|
31527
31527
|
get() {
|
|
31528
|
-
return
|
|
31528
|
+
return pt.disableEdges;
|
|
31529
31529
|
},
|
|
31530
31530
|
set(l) {
|
|
31531
31531
|
sP(l);
|
|
31532
31532
|
}
|
|
31533
31533
|
});
|
|
31534
31534
|
function n() {
|
|
31535
|
-
const l = Ap + 1, u =
|
|
31535
|
+
const l = Ap + 1, u = pt.horizontalScaleMultiplier * l;
|
|
31536
31536
|
jh(u);
|
|
31537
31537
|
}
|
|
31538
31538
|
function o() {
|
|
31539
|
-
const l = Math.abs(Ap - 1), u =
|
|
31539
|
+
const l = Math.abs(Ap - 1), u = pt.horizontalScaleMultiplier * l;
|
|
31540
31540
|
jh(u);
|
|
31541
31541
|
}
|
|
31542
31542
|
cg(["-", "="], a);
|
|
@@ -31587,7 +31587,7 @@ const nP = { class: "flex items-center gap-2" }, oP = /* @__PURE__ */ lg({
|
|
|
31587
31587
|
]),
|
|
31588
31588
|
_: 1
|
|
31589
31589
|
}),
|
|
31590
|
-
Zr(
|
|
31590
|
+
Zr(pt).isTemporal() || Zr(pt).isLeftAligned() ? (Qu(), ug(Yb, { key: 0 }, [
|
|
31591
31591
|
be(p),
|
|
31592
31592
|
be(d, { label: "Scaling" }, {
|
|
31593
31593
|
default: Vr(() => [
|