@designcombo/video 0.1.2 → 0.1.3

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.
@@ -1,4 +1,4 @@
1
- import { F as Ie, u as Ee, l as se, M as v, G as De, v as Oe, S as Fe, x as ae, E as u, e as D, y as S, z as Le, H as O, I as b, R as F, J as ne, K as He, t as m, b as f, i as B, w as L, L as K, N as We, c as Y, B as y, j as U, O as ze, Q as C, k as M, V as w, W as Ve, a as Ne, X as ie, Y as oe, Z as le, _ as ue, C as P, $ as je, a0 as A, a1 as J, D as H, a2 as $e, a3 as qe, P as Ke, d as Ye, T as X, a4 as Q, a5 as Je, a6 as Xe, a7 as Qe } from "./index-fYFtiQSh.js";
1
+ import { F as Ie, u as Ee, l as se, M as v, G as De, v as Oe, S as Fe, x as ae, E as u, e as D, y as S, z as Le, H as O, I as b, R as F, J as ne, K as He, t as m, b as f, i as B, w as L, L as K, N as We, c as Y, B as y, j as U, O as ze, Q as C, k as M, V as w, W as Ve, a as Ne, X as ie, Y as oe, Z as le, _ as ue, C as P, $ as je, a0 as A, a1 as J, D as H, a2 as $e, a3 as qe, P as Ke, d as Ye, T as X, a4 as Q, a5 as Je, a6 as Xe, a7 as Qe } from "./index-Vj0SflFX.js";
2
2
  import { B as de, c as Ze } from "./colorToUniform-C2jGzNe1.js";
3
3
  var et = `in vec2 vMaskCoord;
4
4
  in vec2 vTextureCoord;
@@ -1,6 +1,6 @@
1
- import { S as G, E as d, B as v, w as m, D as S, L as j, v as ve, s as U, t as b, a8 as Be, k as K, a9 as Ae, b as p, V as L, j as B, i as A, l as F, M as $, aa as z, ab as Ne, ac as ye, ad as Y, ae as Ce, A as De, R as Ie, e as T } from "./index-fYFtiQSh.js";
1
+ import { S as G, E as d, B as v, w as m, D as S, L as j, v as ve, s as U, t as b, a8 as Be, k as K, a9 as Ae, b as p, V as L, j as B, i as A, l as F, M as $, aa as z, ab as Ne, ac as ye, ad as Y, ae as Ce, A as De, R as Ie, e as T } from "./index-Vj0SflFX.js";
2
2
  import { b as q } from "./colorToUniform-C2jGzNe1.js";
3
- import { e as Ge, G as Ue, c as Fe, b as Oe, U as Pe, R as Me, B as Z, d as N, f as Le, S as He, a as we } from "./SharedSystems-Xp4pkXxw.js";
3
+ import { e as Ge, G as Ue, c as Fe, b as Oe, U as Pe, R as Me, B as Z, d as N, f as Le, S as He, a as we } from "./SharedSystems-CnuXOu2j.js";
4
4
  class Q {
5
5
  constructor() {
6
6
  this._tempState = G.for2d(), this._didUploadHash = {};
@@ -1,6 +1,6 @@
1
- import { S as E, g as A, E as p, f as ae, D as S, b as C, B as T, c as ue, d as L, h as M, w as v, i as x, j as ce, k as de, l as k, m as w, M as D, n as H, o as he, p as pe, q as z, s as F, t as R, A as le, R as fe, e as B } from "./index-fYFtiQSh.js";
1
+ import { S as E, g as A, E as p, f as ae, D as S, b as C, B as T, c as ue, d as L, h as M, w as v, i as x, j as ce, k as de, l as k, m as w, M as D, n as H, o as he, p as pe, q as z, s as F, t as R, A as le, R as fe, e as B } from "./index-Vj0SflFX.js";
2
2
  import { l as ge, a as me } from "./colorToUniform-C2jGzNe1.js";
3
- import { c as _e, u as be, U as xe, B as ye, G as Ge, e as Se, R as Be, t as Pe, S as Te, a as Ce } from "./SharedSystems-Xp4pkXxw.js";
3
+ import { c as _e, u as be, U as xe, B as ye, G as Ge, e as Se, R as Be, t as Pe, S as Te, a as Ce } from "./SharedSystems-CnuXOu2j.js";
4
4
  const y = E.for2d();
5
5
  class O {
6
6
  start(e, t, r) {
@@ -1,5 +1,5 @@
1
- import { T as M, U as Z, P as m, r as te, E as y, a as ie, w as g, e as P, C as V } from "./index-fYFtiQSh.js";
2
- import "./webworkerAll-glUt5Asr.js";
1
+ import { T as M, U as Z, P as m, r as te, E as y, a as ie, w as g, e as P, C as V } from "./index-Vj0SflFX.js";
2
+ import "./webworkerAll-DbyC0uRZ.js";
3
3
  class q {
4
4
  constructor(e) {
5
5
  this._lastTransform = "", this._observer = null, this._tickerAttached = !1, this.updateTranslation = () => {
@@ -2956,7 +2956,7 @@ var Il = Al();
2956
2956
  const It = /* @__PURE__ */ sr(Il);
2957
2957
  var So = (s) => {
2958
2958
  throw TypeError(s);
2959
- }, Co = (s, t, e) => t.has(s) || So("Cannot " + e), Y = (s, t, e) => (Co(s, t, "read from private field"), e ? e.call(s) : t.get(s)), Mt = (s, t, e) => t.has(s) ? So("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(s) : t.set(s, e), _t = (s, t, e, r) => (Co(s, t, "write to private field"), t.set(s, e), e);
2959
+ }, Co = (s, t, e) => t.has(s) || So("Cannot " + e), Y = (s, t, e) => (Co(s, t, "read from private field"), e ? e.call(s) : t.get(s)), Pt = (s, t, e) => t.has(s) ? So("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(s) : t.set(s, e), _t = (s, t, e, r) => (Co(s, t, "write to private field"), t.set(s, e), e);
2960
2960
  const Ao = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2Z1bmN0aW9uIHUobil7aWYobj09PSIvIilyZXR1cm57cGFyZW50Om51bGwsbmFtZToiIn07Y29uc3QgZT1uLnNwbGl0KCIvIikuZmlsdGVyKGk9PmkubGVuZ3RoPjApO2lmKGUubGVuZ3RoPT09MCl0aHJvdyBFcnJvcigiSW52YWxpZCBwYXRoIik7Y29uc3QgYT1lW2UubGVuZ3RoLTFdLHI9Ii8iK2Uuc2xpY2UoMCwtMSkuam9pbigiLyIpO3JldHVybntuYW1lOmEscGFyZW50OnJ9fWFzeW5jIGZ1bmN0aW9uIHcobixlKXtjb25zdHtwYXJlbnQ6YSxuYW1lOnJ9PXUobik7aWYoYT09bnVsbClyZXR1cm4gYXdhaXQgbmF2aWdhdG9yLnN0b3JhZ2UuZ2V0RGlyZWN0b3J5KCk7Y29uc3QgaT1hLnNwbGl0KCIvIikuZmlsdGVyKHQ9PnQubGVuZ3RoPjApO3RyeXtsZXQgdD1hd2FpdCBuYXZpZ2F0b3Iuc3RvcmFnZS5nZXREaXJlY3RvcnkoKTtmb3IoY29uc3QgcyBvZiBpKXQ9YXdhaXQgdC5nZXREaXJlY3RvcnlIYW5kbGUocyx7Y3JlYXRlOmUuY3JlYXRlfSk7aWYoZS5pc0ZpbGUpcmV0dXJuIGF3YWl0IHQuZ2V0RmlsZUhhbmRsZShyLHtjcmVhdGU6ZS5jcmVhdGV9KX1jYXRjaCh0KXtpZih0Lm5hbWU9PT0iTm90Rm91bmRFcnJvciIpcmV0dXJuIG51bGw7dGhyb3cgdH19Y29uc3QgZj17fTtzZWxmLm9ubWVzc2FnZT1hc3luYyBuPT57dmFyIGk7Y29uc3R7ZXZ0VHlwZTplLGFyZ3M6YX09bi5kYXRhO2xldCByPWZbYS5maWxlSWRdO3RyeXtsZXQgdDtjb25zdCBzPVtdO2lmKGU9PT0icmVnaXN0ZXIiKXtjb25zdCBsPWF3YWl0IHcoYS5maWxlUGF0aCx7Y3JlYXRlOiEwLGlzRmlsZTohMH0pO2lmKGw9PW51bGwpdGhyb3cgRXJyb3IoYG5vdCBmb3VuZCBmaWxlOiAke2EuZmlsZUlkfWApO3I9YXdhaXQgbC5jcmVhdGVTeW5jQWNjZXNzSGFuZGxlKHttb2RlOmEubW9kZX0pLGZbYS5maWxlSWRdPXJ9ZWxzZSBpZihlPT09ImNsb3NlIilhd2FpdCByLmNsb3NlKCksZGVsZXRlIGZbYS5maWxlSWRdO2Vsc2UgaWYoZT09PSJ0cnVuY2F0ZSIpYXdhaXQgci50cnVuY2F0ZShhLm5ld1NpemUpO2Vsc2UgaWYoZT09PSJ3cml0ZSIpe2NvbnN0e2RhdGE6bCxvcHRzOm99PW4uZGF0YS5hcmdzO3Q9YXdhaXQgci53cml0ZShsLG8pfWVsc2UgaWYoZT09PSJyZWFkIil7Y29uc3R7b2Zmc2V0Omwsc2l6ZTpvfT1uLmRhdGEuYXJncyxnPW5ldyBVaW50OEFycmF5KG8pLGQ9YXdhaXQgci5yZWFkKGcse2F0Omx9KSxjPWcuYnVmZmVyO3Q9ZD09PW8/YzooKGk9Yy50cmFuc2Zlcik9PW51bGw/dm9pZCAwOmkuY2FsbChjLGQpKT8/Yy5zbGljZSgwLGQpLHMucHVzaCh0KX1lbHNlIGU9PT0iZ2V0U2l6ZSI/dD1hd2FpdCByLmdldFNpemUoKTplPT09ImZsdXNoIiYmYXdhaXQgci5mbHVzaCgpO3NlbGYucG9zdE1lc3NhZ2Uoe2V2dFR5cGU6ImNhbGxiYWNrIixjYklkOm4uZGF0YS5jYklkLHJldHVyblZhbDp0fSxzKX1jYXRjaCh0KXtjb25zdCBzPXQ7c2VsZi5wb3N0TWVzc2FnZSh7ZXZ0VHlwZToidGhyb3dFcnJvciIsY2JJZDpuLmRhdGEuY2JJZCxlcnJNc2c6cy5uYW1lKyI6ICIrcy5tZXNzYWdlK2AKYCtKU09OLnN0cmluZ2lmeShuLmRhdGEpfSl9fX0pKCk7Ci8vIyBzb3VyY2VNYXBwaW5nVVJMPW9wZnMtd29ya2VyLUY0UldscWNfLmpzLm1hcAo=", El = (s) => Uint8Array.from(atob(s), (t) => t.charCodeAt(0)), Xs = typeof self < "u" && self.Blob && new Blob([El(Ao)], { type: "text/javascript;charset=utf-8" });
2961
2961
  function Fl(s) {
2962
2962
  let t;
@@ -3102,7 +3102,7 @@ function Fe(s) {
3102
3102
  var qt, Oi, qe;
3103
3103
  const Pl = class Io {
3104
3104
  constructor(t) {
3105
- Mt(this, qt), Mt(this, Oi), Mt(this, qe), _t(this, qt, t);
3105
+ Pt(this, qt), Pt(this, Oi), Pt(this, qe), _t(this, qt, t);
3106
3106
  const { parent: e, name: r } = nr(t);
3107
3107
  _t(this, Oi, r), _t(this, qe, e);
3108
3108
  }
@@ -3230,17 +3230,17 @@ async function ci(s, t, e = { overwrite: !0 }) {
3230
3230
  }
3231
3231
  let Ul = 0;
3232
3232
  const Rl = () => ++Ul;
3233
- var kt, Ze, Ni, Ke, Gi, te, Wi, Hi, Te;
3233
+ var Mt, Ze, Ni, Ke, Gi, te, Wi, Hi, Te;
3234
3234
  const Bl = class Fo {
3235
3235
  constructor(t, e) {
3236
- Mt(this, kt), Mt(this, Ze), Mt(this, Ni), Mt(this, Ke), Mt(this, Gi), Mt(this, te, 0), Mt(this, Wi, async () => {
3237
- }), Mt(this, Hi, /* @__PURE__ */ (() => {
3236
+ Pt(this, Mt), Pt(this, Ze), Pt(this, Ni), Pt(this, Ke), Pt(this, Gi), Pt(this, te, 0), Pt(this, Wi, async () => {
3237
+ }), Pt(this, Hi, /* @__PURE__ */ (() => {
3238
3238
  let a = null;
3239
3239
  return () => (_t(this, te, Y(this, te) + 1), a != null || (a = new Promise(async (h, l) => {
3240
3240
  try {
3241
3241
  const d = await kl(
3242
3242
  Y(this, Gi),
3243
- Y(this, kt),
3243
+ Y(this, Mt),
3244
3244
  Y(this, Ke)
3245
3245
  );
3246
3246
  _t(this, Wi, async () => {
@@ -3255,7 +3255,7 @@ const Bl = class Fo {
3255
3255
  l(d);
3256
3256
  }
3257
3257
  })), a);
3258
- })()), Mt(this, Te, !1), _t(this, Gi, Rl()), _t(this, kt, t), _t(this, Ke, {
3258
+ })()), Pt(this, Te, !1), _t(this, Gi, Rl()), _t(this, Mt, t), _t(this, Ke, {
3259
3259
  r: "read-only",
3260
3260
  rw: "readwrite",
3261
3261
  "rw-unsafe": "readwrite-unsafe"
@@ -3268,7 +3268,7 @@ const Bl = class Fo {
3268
3268
  return "file";
3269
3269
  }
3270
3270
  get path() {
3271
- return Y(this, kt);
3271
+ return Y(this, Mt);
3272
3272
  }
3273
3273
  get name() {
3274
3274
  return Y(this, Ni);
@@ -3334,7 +3334,7 @@ const Bl = class Fo {
3334
3334
  return new TextDecoder().decode(await this.arrayBuffer());
3335
3335
  }
3336
3336
  async arrayBuffer() {
3337
- const t = await ne(Y(this, kt), { create: !1, isFile: !0 });
3337
+ const t = await ne(Y(this, Mt), { create: !1, isFile: !0 });
3338
3338
  return t == null ? new ArrayBuffer(0) : (await t.getFile()).arrayBuffer();
3339
3339
  }
3340
3340
  async stream() {
@@ -3347,25 +3347,25 @@ const Bl = class Fo {
3347
3347
  }
3348
3348
  async getOriginFile() {
3349
3349
  var t;
3350
- return (t = await ne(Y(this, kt), { create: !1, isFile: !0 })) == null ? void 0 : t.getFile();
3350
+ return (t = await ne(Y(this, Mt), { create: !1, isFile: !0 })) == null ? void 0 : t.getFile();
3351
3351
  }
3352
3352
  async getSize() {
3353
- const t = await ne(Y(this, kt), { create: !1, isFile: !0 });
3353
+ const t = await ne(Y(this, Mt), { create: !1, isFile: !0 });
3354
3354
  return t == null ? 0 : (await t.getFile()).size;
3355
3355
  }
3356
3356
  async exists() {
3357
- return await ne(Y(this, kt), {
3357
+ return await ne(Y(this, Mt), {
3358
3358
  create: !1,
3359
3359
  isFile: !0
3360
3360
  }) instanceof FileSystemFileHandle;
3361
3361
  }
3362
3362
  async remove(t = {}) {
3363
3363
  if (t.force === !0) {
3364
- await Y(this, Wi).call(this), await Zr(Y(this, kt)), Jr.delete(Y(this, kt));
3364
+ await Y(this, Wi).call(this), await Zr(Y(this, Mt)), Jr.delete(Y(this, Mt));
3365
3365
  return;
3366
3366
  }
3367
3367
  if (Y(this, te) > 0) throw Error("exists unclosed reader/writer");
3368
- await Zr(Y(this, kt));
3368
+ await Zr(Y(this, Mt));
3369
3369
  }
3370
3370
  async copyTo(t) {
3371
3371
  if (t instanceof Fo)
@@ -3386,7 +3386,7 @@ const Bl = class Fo {
3386
3386
  return await this.remove(), e;
3387
3387
  }
3388
3388
  };
3389
- kt = /* @__PURE__ */ new WeakMap(), Ze = /* @__PURE__ */ new WeakMap(), Ni = /* @__PURE__ */ new WeakMap(), Ke = /* @__PURE__ */ new WeakMap(), Gi = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(), Wi = /* @__PURE__ */ new WeakMap(), Hi = /* @__PURE__ */ new WeakMap(), Te = /* @__PURE__ */ new WeakMap();
3389
+ Mt = /* @__PURE__ */ new WeakMap(), Ze = /* @__PURE__ */ new WeakMap(), Ni = /* @__PURE__ */ new WeakMap(), Ke = /* @__PURE__ */ new WeakMap(), Gi = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(), Wi = /* @__PURE__ */ new WeakMap(), Hi = /* @__PURE__ */ new WeakMap(), Te = /* @__PURE__ */ new WeakMap();
3390
3390
  let Ki = Bl;
3391
3391
  const As = "/.opfs-tools-temp-dir";
3392
3392
  async function ko(s) {
@@ -5569,7 +5569,7 @@ const rs = (s) => {
5569
5569
  },
5570
5570
  test: () => !0,
5571
5571
  load: async () => {
5572
- await import("./browserAll-DJgUQT97.js");
5572
+ await import("./browserAll-C2ux6pzj.js");
5573
5573
  }
5574
5574
  }, Lc = {
5575
5575
  extension: {
@@ -5579,7 +5579,7 @@ const rs = (s) => {
5579
5579
  },
5580
5580
  test: () => typeof self < "u" && self.WorkerGlobalScope !== void 0,
5581
5581
  load: async () => {
5582
- await import("./webworkerAll-glUt5Asr.js");
5582
+ await import("./webworkerAll-DbyC0uRZ.js");
5583
5583
  }
5584
5584
  };
5585
5585
  class pt {
@@ -12298,7 +12298,7 @@ function Dh(s, t) {
12298
12298
  }
12299
12299
  return e;
12300
12300
  }
12301
- const Ft = {
12301
+ const kt = {
12302
12302
  /**
12303
12303
  * Converts a path to posix format.
12304
12304
  * @param path - The path to convert to posix
@@ -12409,7 +12409,7 @@ const Ft = {
12409
12409
  if (Nt(s), this.isDataUrl(s) || this.isBlobUrl(s))
12410
12410
  return s;
12411
12411
  const r = Ge(this.toPosix(t ?? tt.get().getBaseUrl())), o = Ge(this.toPosix(e ?? this.rootname(r)));
12412
- return s = this.toPosix(s), s.startsWith("/") ? Ft.join(o, s.slice(1)) : this.isAbsolute(s) ? s : this.join(r, s);
12412
+ return s = this.toPosix(s), s.startsWith("/") ? kt.join(o, s.slice(1)) : this.isAbsolute(s) ? s : this.join(r, s);
12413
12413
  },
12414
12414
  /**
12415
12415
  * Normalizes the given path, resolving '..' and '.' segments
@@ -13072,7 +13072,7 @@ class Le {
13072
13072
  }
13073
13073
  _buildResolvedAsset(t, e) {
13074
13074
  const { aliases: r, data: o, loadParser: a, parser: h, format: l, progressSize: d } = e;
13075
- return (this._basePath || this._rootPath) && (t.src = Ft.toAbsolute(t.src, this._basePath, this._rootPath)), t.alias = r ?? t.alias ?? [t.src], t.src = this._appendDefaultSearchParams(t.src), t.data = { ...o || {}, ...t.data }, t.loadParser = a ?? t.loadParser, t.parser = h ?? t.parser, t.format = l ?? t.format ?? Oh(t.src), d !== void 0 && (t.progressSize = d), t;
13075
+ return (this._basePath || this._rootPath) && (t.src = kt.toAbsolute(t.src, this._basePath, this._rootPath)), t.alias = r ?? t.alias ?? [t.src], t.src = this._appendDefaultSearchParams(t.src), t.data = { ...o || {}, ...t.data }, t.loadParser = a ?? t.loadParser, t.parser = h ?? t.parser, t.format = l ?? t.format ?? Oh(t.src), d !== void 0 && (t.progressSize = d), t;
13076
13076
  }
13077
13077
  }
13078
13078
  Le.RETINA_PREFIX = /@([0-9\.]+)x/;
@@ -13209,7 +13209,7 @@ function ya(s, t, e) {
13209
13209
  }), Object.keys(t.textures).forEach((o) => {
13210
13210
  r[`${t.cachePrefix}${o}`] = t.textures[o];
13211
13211
  }), !e) {
13212
- const o = Ft.dirname(s[0]);
13212
+ const o = kt.dirname(s[0]);
13213
13213
  t.linkedSheets.forEach((a, h) => {
13214
13214
  const l = ya([`${o}/${t.data.meta.related_multi_packs[h]}`], a, !0);
13215
13215
  Object.assign(r, l);
@@ -13259,7 +13259,7 @@ const Gh = {
13259
13259
  name: "spritesheetLoader"
13260
13260
  },
13261
13261
  async testParse(s, t) {
13262
- return Ft.extname(t.src).toLowerCase() === ".json" && !!s.frames;
13262
+ return kt.extname(t.src).toLowerCase() === ".json" && !!s.frames;
13263
13263
  },
13264
13264
  async parse(s, t, e) {
13265
13265
  const {
@@ -13272,7 +13272,7 @@ const Gh = {
13272
13272
  cachePrefix: h
13273
13273
  // if user need to use custom cache prefix
13274
13274
  } = t?.data ?? {};
13275
- let l = Ft.dirname(t.src);
13275
+ let l = kt.dirname(t.src);
13276
13276
  l && l.lastIndexOf("/") !== l.length - 1 && (l += "/");
13277
13277
  let d;
13278
13278
  if (r instanceof z)
@@ -14767,13 +14767,13 @@ async function Fu(s) {
14767
14767
  for (let a = 0; a < t.length; a++) {
14768
14768
  const h = t[a];
14769
14769
  if (h === "webgpu" && await Eu()) {
14770
- const { WebGPURenderer: l } = await import("./WebGPURenderer-CvQagiEk.js");
14770
+ const { WebGPURenderer: l } = await import("./WebGPURenderer-4sawtMPs.js");
14771
14771
  e = l, r = { ...s, ...s.webgpu };
14772
14772
  break;
14773
14773
  } else if (h === "webgl" && Iu(
14774
14774
  s.failIfMajorPerformanceCaveat ?? Ba.defaultOptions.failIfMajorPerformanceCaveat
14775
14775
  )) {
14776
- const { WebGLRenderer: l } = await import("./WebGLRenderer-DUV0VFr8.js");
14776
+ const { WebGLRenderer: l } = await import("./WebGLRenderer-VL1VJMp0.js");
14777
14777
  e = l, r = { ...s, ...s.webgl };
14778
14778
  break;
14779
14779
  } else if (h === "canvas")
@@ -15717,7 +15717,7 @@ $t._breakingSpaces = [
15717
15717
  // ideographic space
15718
15718
  ];
15719
15719
  $t._measurementCache = Na(1e3);
15720
- let Ut = $t;
15720
+ let Ft = $t;
15721
15721
  const En = [{ offset: 0, color: "white" }, { offset: 1, color: "black" }], Bs = class xs {
15722
15722
  constructor(...t) {
15723
15723
  this.uid = nt("fillGradient"), this._tick = 0, this.type = "linear", this.colorStops = [];
@@ -20542,7 +20542,7 @@ Os.defaultStrokeStyle = {
20542
20542
  /** If the stroke is a pixel line. */
20543
20543
  pixelLine: !1
20544
20544
  };
20545
- let Pt = Os;
20545
+ let Ut = Os;
20546
20546
  const Ns = class Ae extends Yt {
20547
20547
  constructor(t = {}) {
20548
20548
  super(), this.uid = nt("textStyle"), this._tick = 0, Ff(t);
@@ -20747,14 +20747,14 @@ const Ns = class Ae extends Yt {
20747
20747
  return this._originalFill;
20748
20748
  }
20749
20749
  set fill(t) {
20750
- t !== this._originalFill && (this._originalFill = t, this._isFillStyle(t) && (this._originalFill = this._createProxy({ ...Pt.defaultFillStyle, ...t }, () => {
20750
+ t !== this._originalFill && (this._originalFill = t, this._isFillStyle(t) && (this._originalFill = this._createProxy({ ...Ut.defaultFillStyle, ...t }, () => {
20751
20751
  this._fill = ve(
20752
20752
  { ...this._originalFill },
20753
- Pt.defaultFillStyle
20753
+ Ut.defaultFillStyle
20754
20754
  );
20755
20755
  })), this._fill = ve(
20756
20756
  t === 0 ? "black" : t,
20757
- Pt.defaultFillStyle
20757
+ Ut.defaultFillStyle
20758
20758
  ), this.update());
20759
20759
  }
20760
20760
  /** A fillstyle that will be used on the text stroke, e.g., 'blue', '#FCFF00'. */
@@ -20762,12 +20762,12 @@ const Ns = class Ae extends Yt {
20762
20762
  return this._originalStroke;
20763
20763
  }
20764
20764
  set stroke(t) {
20765
- t !== this._originalStroke && (this._originalStroke = t, this._isFillStyle(t) && (this._originalStroke = this._createProxy({ ...Pt.defaultStrokeStyle, ...t }, () => {
20765
+ t !== this._originalStroke && (this._originalStroke = t, this._isFillStyle(t) && (this._originalStroke = this._createProxy({ ...Ut.defaultStrokeStyle, ...t }, () => {
20766
20766
  this._stroke = er(
20767
20767
  { ...this._originalStroke },
20768
- Pt.defaultStrokeStyle
20768
+ Ut.defaultStrokeStyle
20769
20769
  );
20770
- })), this._stroke = er(t, Pt.defaultStrokeStyle), this.update());
20770
+ })), this._stroke = er(t, Ut.defaultStrokeStyle), this.update());
20771
20771
  }
20772
20772
  update() {
20773
20773
  this._tick++, this.emit("update", this);
@@ -21041,10 +21041,10 @@ const sl = class nl extends Oa {
21041
21041
  const o = r.fontSize;
21042
21042
  r.fontSize = this.baseMeasurementFontSize;
21043
21043
  const a = ji(r);
21044
- e.overrideSize ? r._stroke && (r._stroke.width *= this.baseRenderedFontSize / o) : r.fontSize = this.baseRenderedFontSize = o, this._style = r, this._skipKerning = e.skipKerning ?? !1, this.resolution = e.resolution ?? 1, this._padding = e.padding ?? 4, e.textureStyle && (this._textureStyle = e.textureStyle instanceof Be ? e.textureStyle : new Be(e.textureStyle)), this.fontMetrics = Ut.measureFont(a), this.lineHeight = r.lineHeight || this.fontMetrics.fontSize || r.fontSize;
21044
+ e.overrideSize ? r._stroke && (r._stroke.width *= this.baseRenderedFontSize / o) : r.fontSize = this.baseRenderedFontSize = o, this._style = r, this._skipKerning = e.skipKerning ?? !1, this.resolution = e.resolution ?? 1, this._padding = e.padding ?? 4, e.textureStyle && (this._textureStyle = e.textureStyle instanceof Be ? e.textureStyle : new Be(e.textureStyle)), this.fontMetrics = Ft.measureFont(a), this.lineHeight = r.lineHeight || this.fontMetrics.fontSize || r.fontSize;
21045
21045
  }
21046
21046
  ensureCharacters(t) {
21047
- const e = Ut.graphemeSegmenter(t).filter((u) => !this._currentChars.includes(u)).filter((u, f, g) => g.indexOf(u) === f);
21047
+ const e = Ft.graphemeSegmenter(t).filter((u) => !this._currentChars.includes(u)).filter((u, f, g) => g.indexOf(u) === f);
21048
21048
  if (!e.length)
21049
21049
  return;
21050
21050
  this._currentChars = [...this._currentChars, ...e];
@@ -21057,7 +21057,7 @@ const sl = class nl extends Oa {
21057
21057
  let _ = !1;
21058
21058
  const n = o.width / this.resolution, c = o.height / this.resolution;
21059
21059
  for (let u = 0; u < e.length; u++) {
21060
- const f = e[u], g = Ut.measureText(f, l, o, !1);
21060
+ const f = e[u], g = Ft.measureText(f, l, o, !1);
21061
21061
  g.lineHeight = g.height;
21062
21062
  const x = g.width * v, b = Math.ceil((l.fontStyle === "italic" ? 2 : 1) * x), w = g.height * v, T = b + y * 2, S = w + y * 2;
21063
21063
  if (_ = !1, f !== `
@@ -21335,7 +21335,7 @@ class Bf {
21335
21335
  const o = this.getFont(t, e), a = `${t}-${e.styleKey}-${r}`;
21336
21336
  if (this.measureCache.has(a))
21337
21337
  return this.measureCache.get(a);
21338
- const h = Ut.graphemeSegmenter(t), l = ol(h, e, o, r);
21338
+ const h = Ft.graphemeSegmenter(t), l = ol(h, e, o, r);
21339
21339
  return this.measureCache.set(a, l), l;
21340
21340
  }
21341
21341
  /**
@@ -21647,7 +21647,7 @@ const Hr = {
21647
21647
  name: "loadBitmapFont",
21648
21648
  id: "bitmap-font",
21649
21649
  test(s) {
21650
- return zf.includes(Ft.extname(s).toLowerCase());
21650
+ return zf.includes(kt.extname(s).toLowerCase());
21651
21651
  },
21652
21652
  async testParse(s) {
21653
21653
  return Hr.test(s) || lo.test(s);
@@ -21661,7 +21661,7 @@ const Hr = {
21661
21661
  } : {};
21662
21662
  for (let v = 0; v < a.length; ++v) {
21663
21663
  const y = a[v].file;
21664
- let _ = Ft.join(Ft.dirname(o), y);
21664
+ let _ = kt.join(kt.dirname(o), y);
21665
21665
  _ = hs(_, o), h.push({
21666
21666
  src: _,
21667
21667
  data: l
@@ -21911,7 +21911,7 @@ const Vf = {
21911
21911
  src: c,
21912
21912
  data: {}
21913
21913
  })), _ = y.reduce((c, u) => c + (u.progressSize || 1), 0), n = y.map(async (c) => {
21914
- const u = Ft.toAbsolute(c.src);
21914
+ const u = kt.toAbsolute(c.src);
21915
21915
  m[c.src] || (await this._loadAssetWithRetry(u, c, { onProgress: o, onError: a, strategy: h, retryCount: l, retryDelay: d }, m), p += c.progressSize || 1, o && o(p / _));
21916
21916
  });
21917
21917
  return await Promise.all(n), v ? m[y[0].src] : m;
@@ -21933,7 +21933,7 @@ const Vf = {
21933
21933
  alias: [o],
21934
21934
  src: o
21935
21935
  })).map(async (o) => {
21936
- const a = Ft.toAbsolute(o.src), h = this.promiseCache[a];
21936
+ const a = kt.toAbsolute(o.src), h = this.promiseCache[a];
21937
21937
  if (h) {
21938
21938
  const l = await h.promise;
21939
21939
  delete this.promiseCache[a], await h.parser?.unload?.(l, o, this);
@@ -21986,7 +21986,7 @@ function Oe(s, t) {
21986
21986
  return s.startsWith(`data:${t}`);
21987
21987
  }
21988
21988
  function Ne(s, t) {
21989
- const e = s.split("?")[0], r = Ft.extname(e).toLowerCase();
21989
+ const e = s.split("?")[0], r = kt.extname(e).toLowerCase();
21990
21990
  return Array.isArray(t) ? t.includes(r) : r === t;
21991
21991
  }
21992
21992
  const Zf = ".json", Kf = "application/json", Jf = {
@@ -22037,7 +22037,7 @@ const Zf = ".json", Kf = "application/json", Jf = {
22037
22037
  "font/woff2"
22038
22038
  ], sp = /^(--|-?[A-Z_])[0-9A-Z_-]*$/i;
22039
22039
  function np(s) {
22040
- const t = Ft.extname(s), o = Ft.basename(s, t).replace(/(-|_)/g, " ").toLowerCase().split(" ").map((l) => l.charAt(0).toUpperCase() + l.slice(1));
22040
+ const t = kt.extname(s), o = kt.basename(s, t).replace(/(-|_)/g, " ").toLowerCase().split(" ").map((l) => l.charAt(0).toUpperCase() + l.slice(1));
22041
22041
  let a = o.length > 0;
22042
22042
  for (const l of o)
22043
22043
  if (!l.match(sp)) {
@@ -22141,7 +22141,7 @@ async function dp(s, t, e, r) {
22141
22141
  return Ws(c, e, s);
22142
22142
  }
22143
22143
  async function fp(s) {
22144
- const e = await (await tt.get().fetch(s)).text(), r = new Pt();
22144
+ const e = await (await tt.get().fetch(s)).text(), r = new Ut();
22145
22145
  return r.svg(e), r;
22146
22146
  }
22147
22147
  const pp = `(function () {
@@ -23122,12 +23122,12 @@ class Tt extends Ps {
23122
23122
  * @param options - Options for the Graphics.
23123
23123
  */
23124
23124
  constructor(t) {
23125
- t instanceof Pt && (t = { context: t });
23125
+ t instanceof Ut && (t = { context: t });
23126
23126
  const { context: e, roundPixels: r, ...o } = t || {};
23127
23127
  super({
23128
23128
  label: "Graphics",
23129
23129
  ...o
23130
- }), this.renderPipeId = "graphics", e ? this._context = e : this._context = this._ownedContext = new Pt(), this._context.on("update", this.onViewUpdate, this), this.didViewUpdate = !0, this.allowChildren = !1, this.roundPixels = r ?? !1;
23130
+ }), this.renderPipeId = "graphics", e ? this._context = e : this._context = this._ownedContext = new Ut(), this._context.on("update", this.onViewUpdate, this), this.didViewUpdate = !0, this.allowChildren = !1, this.roundPixels = r ?? !1;
23131
23131
  }
23132
23132
  set context(t) {
23133
23133
  t !== this._context && (this._context.off("update", this.onViewUpdate, this), this._context = t, this._context.on("update", this.onViewUpdate, this), this.onViewUpdate());
@@ -23834,7 +23834,7 @@ class Tt extends Ps {
23834
23834
  endFill() {
23835
23835
  G(q, "Graphics#endFill is no longer needed. Use Graphics#fill to fill the shape with the desired style."), this.context.fill();
23836
23836
  const t = this.context.strokeStyle;
23837
- return (t.width !== Pt.defaultStrokeStyle.width || t.color !== Pt.defaultStrokeStyle.color || t.alpha !== Pt.defaultStrokeStyle.alpha) && this.context.stroke(), this;
23837
+ return (t.width !== Ut.defaultStrokeStyle.width || t.color !== Ut.defaultStrokeStyle.color || t.alpha !== Ut.defaultStrokeStyle.alpha) && this.context.stroke(), this;
23838
23838
  }
23839
23839
  /**
23840
23840
  * @param {...any} args
@@ -24240,7 +24240,7 @@ class kp {
24240
24240
  * @returns An object containing the canvas/context and the frame (bounds) of the text
24241
24241
  */
24242
24242
  getCanvasAndContext(t) {
24243
- const { text: e, style: r, resolution: o = 1 } = t, a = r._getFinalPadding(), h = Ut.measureText(e || " ", r), l = Math.ceil(Math.ceil(Math.max(1, h.width) + a * 2) * o), d = Math.ceil(Math.ceil(Math.max(1, h.height) + a * 2) * o), p = mi.getOptimalCanvasAndContext(l, d);
24243
+ const { text: e, style: r, resolution: o = 1 } = t, a = r._getFinalPadding(), h = Ft.measureText(e || " ", r), l = Math.ceil(Math.ceil(Math.max(1, h.width) + a * 2) * o), d = Math.ceil(Math.ceil(Math.max(1, h.height) + a * 2) * o), p = mi.getOptimalCanvasAndContext(l, d);
24244
24244
  this._renderTextToCanvas(e, r, a, o, p);
24245
24245
  const m = r.trim ? Fp({ canvas: p.canvas, width: l, height: d, resolution: 1, output: go }) : go.set(0, 0, l, d);
24246
24246
  return {
@@ -24267,7 +24267,7 @@ class kp {
24267
24267
  * @param canvasAndContext - The canvas and context to render the text to
24268
24268
  */
24269
24269
  _renderTextToCanvas(t, e, r, o, a) {
24270
- const { canvas: h, context: l } = a, d = ji(e), p = Ut.measureText(t || " ", e), m = p.lines, v = p.lineHeight, y = p.lineWidths, _ = p.maxLineWidth, n = p.fontProperties, c = h.height;
24270
+ const { canvas: h, context: l } = a, d = ji(e), p = Ft.measureText(t || " ", e), m = p.lines, v = p.lineHeight, y = p.lineWidths, _ = p.maxLineWidth, n = p.fontProperties, c = h.height;
24271
24271
  if (l.resetTransform(), l.scale(o, o), l.textBaseline = e.textBaseline, e._stroke?.width) {
24272
24272
  const x = e._stroke;
24273
24273
  l.lineWidth = x.width, l.miterLimit = x.miterLimit, l.lineJoin = x.join, l.lineCap = x.cap;
@@ -24330,12 +24330,12 @@ class kp {
24330
24330
  _drawLetterSpacing(t, e, r, o, a, h = !1) {
24331
24331
  const { context: l } = r, d = e.letterSpacing;
24332
24332
  let p = !1;
24333
- if (Ut.experimentalLetterSpacingSupported && (Ut.experimentalLetterSpacing ? (l.letterSpacing = `${d}px`, l.textLetterSpacing = `${d}px`, p = !0) : (l.letterSpacing = "0px", l.textLetterSpacing = "0px")), d === 0 || p) {
24333
+ if (Ft.experimentalLetterSpacingSupported && (Ft.experimentalLetterSpacing ? (l.letterSpacing = `${d}px`, l.textLetterSpacing = `${d}px`, p = !0) : (l.letterSpacing = "0px", l.textLetterSpacing = "0px")), d === 0 || p) {
24334
24334
  h ? l.strokeText(t, o, a) : l.fillText(t, o, a);
24335
24335
  return;
24336
24336
  }
24337
24337
  let m = o;
24338
- const v = Ut.graphemeSegmenter(t);
24338
+ const v = Ft.graphemeSegmenter(t);
24339
24339
  let y = l.measureText(t).width, _ = 0;
24340
24340
  for (let n = 0; n < v.length; ++n) {
24341
24341
  const c = v[n];
@@ -24365,7 +24365,7 @@ class Mp extends fl {
24365
24365
  });
24366
24366
  vo.returnCanvasAndContext(h), r = a.width, o = a.height;
24367
24367
  } else {
24368
- const a = Ut.measureText(
24368
+ const a = Ft.measureText(
24369
24369
  this._text,
24370
24370
  this._style
24371
24371
  );
@@ -24448,7 +24448,7 @@ class bt extends z {
24448
24448
  }
24449
24449
  }
24450
24450
  function Up(s) {
24451
- const { text: t, style: e, chars: r } = s, o = e, a = rr.getFont(t, o), h = Ut.graphemeSegmenter(t), l = ol(h, o, a, !0), d = l.scale, p = [], m = [], v = [], y = e.lineHeight ? e.lineHeight : a.lineHeight * d;
24451
+ const { text: t, style: e, chars: r } = s, o = e, a = rr.getFont(t, o), h = Ft.graphemeSegmenter(t), l = ol(h, o, a, !0), d = l.scale, p = [], m = [], v = [], y = e.lineHeight ? e.lineHeight : a.lineHeight * d;
24452
24452
  let _ = 0;
24453
24453
  for (const n of l.lines) {
24454
24454
  if (n.chars.length === 0)
@@ -24969,7 +24969,7 @@ class xe extends _e {
24969
24969
  let g = f.text;
24970
24970
  a === "uppercase" ? g = g.toUpperCase() : a === "lowercase" ? g = g.toLowerCase() : a === "title" && (g = g.replace(
24971
24971
  /\w\S*/g,
24972
- (A) => A.charAt(0).toUpperCase() + A.substring(1).toLowerCase()
24972
+ (C) => C.charAt(0).toUpperCase() + C.substring(1).toLowerCase()
24973
24973
  ));
24974
24974
  const x = new Bp({
24975
24975
  text: g,
@@ -24977,9 +24977,11 @@ class xe extends _e {
24977
24977
  });
24978
24978
  x.x = e, x.y = 0;
24979
24979
  const b = x.getLocalBounds(), w = Math.ceil(b.width || x.width), T = Math.ceil(b.height || x.height);
24980
- r = Math.max(r, T), e += w + 5, o = e - 5, this.pixiTextContainer.addChild(x);
24981
- const S = yt(this.opts.fill);
24982
- return x.tint = S ?? 16777215, x;
24980
+ r = Math.max(r, T);
24981
+ const S = Ft.measureText(" ", this.textStyle);
24982
+ e += w + S.width, o = e - S.width, this.pixiTextContainer.addChild(x);
24983
+ const A = yt(this.opts.fill);
24984
+ return x.tint = A ?? 16777215, x;
24983
24985
  });
24984
24986
  const h = o, l = r, d = new Tt();
24985
24987
  d.label = "containerBackground";
@@ -25029,7 +25031,11 @@ class xe extends _e {
25029
25031
  const { color: _, alpha: n } = ge(
25030
25032
  this.opts.activeFill,
25031
25033
  16753920
25032
- ), c = 10, u = v.getLocalBounds(), f = 16, g = y ?? new Tt();
25034
+ ), c = 10;
25035
+ y && (y.visible = !1);
25036
+ const u = v.getLocalBounds();
25037
+ y && (y.visible = !0);
25038
+ const f = 16, g = y ?? new Tt();
25033
25039
  g.label = "bgRect", g.clear(), g.roundRect(
25034
25040
  u.x - c / 2,
25035
25041
  u.y - c / 2 + this.extraPadding,
@@ -26923,7 +26929,7 @@ class Gt extends _e {
26923
26929
  if (o && o !== "none" && ["underline", "overline", "strikethrough", "line-through"].includes(
26924
26930
  o
26925
26931
  )) {
26926
- const _ = o === "strikethrough" ? "line-through" : o, n = Ut.measureText(
26932
+ const _ = o === "strikethrough" ? "line-through" : o, n = Ft.measureText(
26927
26933
  e,
26928
26934
  t
26929
26935
  ), c = t.fontSize ?? 40, u = Math.max(1, c / 12);
@@ -37505,7 +37511,7 @@ export {
37505
37511
  Bn as ag,
37506
37512
  Un as ah,
37507
37513
  rr as ai,
37508
- Ut as aj,
37514
+ Ft as aj,
37509
37515
  ol as ak,
37510
37516
  it as al,
37511
37517
  Tt as am,
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { aw as i, ax as o, aD as t, aB as C, aK as e, aM as p, ay as n, aF as r, az as T, aE as l, aA as m, aC as f, az as I, aG as d, au as x, ar as M, as as O, aI as P, aH as c, aJ as u, aL as A, at as E, av as N } from "./index-fYFtiQSh.js";
1
+ import { aw as i, ax as o, aD as t, aB as C, aK as e, aM as p, ay as n, aF as r, az as T, aE as l, aA as m, aC as f, az as I, aG as d, au as x, ar as M, as as O, aI as P, aH as c, aJ as u, aL as A, at as E, av as N } from "./index-Vj0SflFX.js";
2
2
  export {
3
3
  i as AudioClip,
4
4
  o as CaptionClip,