@shotstack/shotstack-studio 2.0.0-rc.4 → 2.0.0-rc.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.
@@ -1,4 +1,4 @@
1
- import * as q from "pixi.js";
1
+ import * as X from "pixi.js";
2
2
  import { Filter as tu, deprecation as su, GpuProgram as au, GlProgram as iu, Color as ru } from "pixi.js";
3
3
  import * as nu from "howler";
4
4
  import * as En from "opentype.js";
@@ -128,8 +128,8 @@ class ou {
128
128
  };
129
129
  }
130
130
  getValue(e, s, a, i) {
131
- const r = this.curves[i ?? ""] ?? this.curves.ease, [[n, o], [l, c]] = r, f = a + (3 * n - 3 * l + 1) * a * (1 - a), h = e, d = e + (s - e) * o, y = e + (s - e) * c, m = s, C = f, E = 1 - C;
132
- return E ** 3 * h + 3 * E ** 2 * C * d + 3 * E * C ** 2 * y + C ** 3 * m;
131
+ const r = this.curves[i ?? ""] ?? this.curves.ease, [[n, o], [l, c]] = r, f = a + (3 * n - 3 * l + 1) * a * (1 - a), h = e, d = e + (s - e) * o, y = e + (s - e) * c, m = s, x = f, P = 1 - x;
132
+ return P ** 3 * h + 3 * P ** 2 * x * d + 3 * P * x ** 2 * y + x ** 3 * m;
133
133
  }
134
134
  }
135
135
  class ei {
@@ -318,16 +318,16 @@ class lu {
318
318
  case "slideRight":
319
319
  case "slideUp":
320
320
  case "slideDown": {
321
- const d = h === "slideLeft" || h === "slideRight", y = h === "slideLeft" || h === "slideUp", m = this.getFittedSize(e, s), C = d ? e.width : e.height, E = d ? m.width : m.height;
321
+ const d = h === "slideLeft" || h === "slideRight", y = h === "slideLeft" || h === "slideUp", m = this.getFittedSize(e, s), x = d ? e.width : e.height, P = d ? m.width : m.height;
322
322
  let F = this.getSlideStart();
323
- const N = C + C * F * 2;
324
- if (E < N) {
325
- const U = N / E;
323
+ const N = x + x * F * 2;
324
+ if (P < N) {
325
+ const U = N / P;
326
326
  n.push({ from: U, to: U, start: f, length: c, interpolation: "linear" });
327
327
  } else
328
- F = (E - C) / 2 / C;
329
- const [v, P] = y ? [F, -F] : [-F, F];
330
- (d ? a : i).push({ from: v, to: P, start: f, length: c });
328
+ F = (P - x) / 2 / x;
329
+ const [v, E] = y ? [F, -F] : [-F, F];
330
+ (d ? a : i).push({ from: v, to: E, start: f, length: c });
331
331
  break;
332
332
  }
333
333
  }
@@ -425,10 +425,10 @@ class cu {
425
425
  case "slideRight":
426
426
  case "slideUp":
427
427
  case "slideDown": {
428
- const l = n === "slideLeft" || n === "slideRight", c = n === "slideLeft" || n === "slideUp", f = 0.025, [h, d] = o ? [c ? f : -f, 0] : [0, c ? -f : f], y = o ? "linear" : "bezier", [m, C] = o ? [0, 1] : [1, 0];
428
+ const l = n === "slideLeft" || n === "slideRight", c = n === "slideLeft" || n === "slideUp", f = 0.025, [h, d] = o ? [c ? f : -f, 0] : [0, c ? -f : f], y = o ? "linear" : "bezier", [m, x] = o ? [0, 1] : [1, 0];
429
429
  (l ? s.offsetXKeyframes : s.offsetYKeyframes).push(
430
430
  o ? { from: h, to: d, start: r, length: i, interpolation: y } : { from: h, to: d, start: r, length: i, interpolation: y, easing: "ease" }
431
- ), s.opacityKeyframes.push({ from: m, to: C, start: r, length: i, interpolation: "bezier", easing: "ease" });
431
+ ), s.opacityKeyframes.push({ from: m, to: x, start: r, length: i, interpolation: "bezier", easing: "ease" });
432
432
  break;
433
433
  }
434
434
  case "carouselLeft":
@@ -703,7 +703,7 @@ class pu {
703
703
  class mu {
704
704
  container;
705
705
  constructor() {
706
- this.container = new q.Container();
706
+ this.container = new X.Container();
707
707
  }
708
708
  /** @internal */
709
709
  getContainer() {
@@ -734,9 +734,10 @@ class Nt extends mu {
734
734
  skewYKeyframeBuilder;
735
735
  maskXKeyframeBuilder;
736
736
  wipeMask;
737
+ lumaWrapper;
737
738
  contentContainer;
738
739
  constructor(e, s, a) {
739
- super(), this.edit = e, this.layer = 0, this.shouldDispose = !1, this.playerType = a, this.clipConfiguration = s, this.positionBuilder = new pu(e.size), this.resolvedTiming = { start: s.start, length: s.length }, this.wipeMask = null, this.contentContainer = new q.Container(), this.getContainer().addChild(this.contentContainer);
740
+ super(), this.edit = e, this.layer = 0, this.shouldDispose = !1, this.playerType = a, this.clipConfiguration = s, this.positionBuilder = new pu(e.size), this.resolvedTiming = { start: s.start, length: s.length }, this.wipeMask = null, this.lumaWrapper = new X.Container(), this.contentContainer = new X.Container(), this.lumaWrapper.addChild(this.contentContainer), this.getContainer().addChild(this.lumaWrapper);
740
741
  }
741
742
  reconfigureAfterRestore() {
742
743
  this.configureKeyframes();
@@ -764,7 +765,7 @@ class Nt extends mu {
764
765
  y.length && (this.maskXKeyframeBuilder = new ei(y, e));
765
766
  }
766
767
  async load() {
767
- this.contentContainer?.destroyed && (this.contentContainer = new q.Container(), this.getContainer().addChild(this.contentContainer)), this.getContainer().sortableChildren = !0, this.getContainer().cursor = "pointer", this.getContainer().eventMode = "static", this.getContainer().on?.("pointerdown", this.onPointerDown.bind(this));
768
+ this.lumaWrapper?.destroyed && (this.lumaWrapper = new X.Container(), this.getContainer().addChild(this.lumaWrapper)), this.contentContainer?.destroyed && (this.contentContainer = new X.Container(), this.lumaWrapper.addChild(this.contentContainer)), this.getContainer().sortableChildren = !0, this.getContainer().cursor = "pointer", this.getContainer().eventMode = "static", this.getContainer().on?.("pointerdown", this.onPointerDown.bind(this));
768
769
  }
769
770
  update(e, s) {
770
771
  if (this.getContainer().visible = this.isActive(), this.getContainer().zIndex = 1e5 - this.layer * 100, !this.isActive())
@@ -782,10 +783,10 @@ class Nt extends mu {
782
783
  return;
783
784
  }
784
785
  const e = this.maskXKeyframeBuilder.getValue(this.getPlaybackTime()), s = this.getSize();
785
- this.wipeMask || (this.wipeMask = new q.Graphics(), this.getContainer().addChild(this.wipeMask), this.getContainer().mask = this.wipeMask), this.wipeMask.clear(), this.wipeMask.rect(0, 0, s.width * e, s.height), this.wipeMask.fill(16777215);
786
+ this.wipeMask || (this.wipeMask = new X.Graphics(), this.getContainer().addChild(this.wipeMask), this.getContainer().mask = this.wipeMask), this.wipeMask.clear(), this.wipeMask.rect(0, 0, s.width * e, s.height), this.wipeMask.fill(16777215);
786
787
  }
787
788
  dispose() {
788
- this.wipeMask?.destroy(), this.wipeMask = null, this.contentContainer?.destroy();
789
+ this.wipeMask?.destroy(), this.wipeMask = null, this.contentContainer?.destroy(), this.lumaWrapper?.destroy();
789
790
  }
790
791
  getStart() {
791
792
  return this.resolvedTiming.start;
@@ -848,6 +849,10 @@ class Nt extends mu {
848
849
  getContentContainer() {
849
850
  return this.contentContainer;
850
851
  }
852
+ /** @internal */
853
+ getLumaWrapper() {
854
+ return this.lumaWrapper;
855
+ }
851
856
  getOpacity() {
852
857
  return this.opacityKeyframeBuilder?.getValue(this.getPlaybackTime()) ?? 1;
853
858
  }
@@ -922,18 +927,22 @@ class Nt extends mu {
922
927
  applyFixedDimensions() {
923
928
  const e = this.clipConfiguration.width, s = this.clipConfiguration.height;
924
929
  if (!e || !s) return;
925
- const a = this.contentContainer.children.find((y) => y instanceof q.Sprite);
930
+ const a = this.contentContainer.children.find((P) => P instanceof X.Sprite);
926
931
  if (!a?.texture) return;
927
932
  const i = a.texture.width, r = a.texture.height, n = this.clipConfiguration.fit || "crop", o = this.contentContainer.mask;
928
- let l = null;
929
- if (o instanceof q.Graphics ? l = o : o || (l = new q.Graphics(), this.contentContainer.addChild(l), this.contentContainer.mask = l), l) {
930
- const { asset: y } = this.clipConfiguration, m = y && "border" in y && y.border && typeof y.border == "object" ? y.border.width ?? 0 : 0, C = m / 2;
931
- l.clear(), l.rect(-C, -C, e + m, s + m), l.fill(16777215);
932
- }
933
- const c = this.scaleKeyframeBuilder?.getValue(this.getPlaybackTime()) ?? 1;
933
+ let l;
934
+ if (o instanceof X.Graphics)
935
+ l = o;
936
+ else if (!o)
937
+ l = new X.Graphics(), this.contentContainer.addChild(l), this.contentContainer.mask = l;
938
+ else
939
+ return;
940
+ const { asset: c } = this.clipConfiguration, f = c && "border" in c && c.border && typeof c.border == "object" ? c.border.width ?? 0 : 0, h = f / 2;
941
+ l.clear(), l.rect(-h, -h, e + f, s + f), l.fill(16777215);
942
+ const d = this.scaleKeyframeBuilder?.getValue(this.getPlaybackTime()) ?? 1;
934
943
  a.anchor.set(0.5, 0.5);
935
- const d = hu({ width: i, height: r }, { width: e, height: s }, n);
936
- a.scale.set(d.scaleX, d.scaleY), a.position.set(d.positionX, d.positionY), this.contentContainer.scale.set(c, c), this.contentContainer.position.set(e / 2 * (1 - c), s / 2 * (1 - c));
944
+ const x = hu({ width: i, height: r }, { width: e, height: s }, n);
945
+ a.scale.set(x.scaleX, x.scaleY), a.position.set(x.positionX, x.positionY), this.contentContainer.scale.set(d, d), this.contentContainer.position.set(e / 2 * (1 - d), s / 2 * (1 - d));
937
946
  }
938
947
  applyAnchorPositioning(e, s, a, i) {
939
948
  const r = i.width, n = i.height;
@@ -973,8 +982,8 @@ class Ji {
973
982
  validAudioExtensions;
974
983
  constructor() {
975
984
  this.id = Ji.Name, this.name = Ji.Name, this.extension = {
976
- type: [q.ExtensionType.LoadParser],
977
- priority: q.LoaderParserPriority.Normal,
985
+ type: [X.ExtensionType.LoadParser],
986
+ priority: X.LoaderParserPriority.Normal,
978
987
  ref: null
979
988
  }, this.validAudioExtensions = ["mp3", "mpeg", "ogg", "wav"];
980
989
  }
@@ -16460,8 +16469,8 @@ class er {
16460
16469
  validExtensions;
16461
16470
  constructor() {
16462
16471
  this.id = er.Name, this.name = er.Name, this.extension = {
16463
- type: [q.ExtensionType.LoadParser],
16464
- priority: q.LoaderParserPriority.Normal,
16472
+ type: [X.ExtensionType.LoadParser],
16473
+ priority: X.LoaderParserPriority.Normal,
16465
16474
  ref: null
16466
16475
  }, this.validExtensions = ["srt", "vtt"];
16467
16476
  }
@@ -16797,7 +16806,7 @@ class tr extends Nt {
16797
16806
  async load() {
16798
16807
  await super.load();
16799
16808
  const e = this.clipConfiguration.asset, s = e.font?.family ?? "Open Sans";
16800
- if (await this.loadFont(s), this.state = Wt(e.src) ? { kind: "placeholder" } : await this.loadSubtitles(e.src), this.background = new q.Graphics(), this.contentContainer.addChild(this.background), this.text = new q.Text({ text: "", style: this.createTextStyle(e) }), this.text.visible = !1, e.stroke?.width && e.stroke.width > 0 && e.stroke.color) {
16809
+ if (await this.loadFont(s), this.state = Wt(e.src) ? { kind: "placeholder" } : await this.loadSubtitles(e.src), this.background = new X.Graphics(), this.contentContainer.addChild(this.background), this.text = new X.Text({ text: "", style: this.createTextStyle(e) }), this.text.visible = !1, e.stroke?.width && e.stroke.width > 0 && e.stroke.color) {
16801
16810
  const a = new ti({
16802
16811
  thickness: e.stroke.width,
16803
16812
  color: e.stroke.color
@@ -16845,7 +16854,7 @@ class tr extends Nt {
16845
16854
  }
16846
16855
  createTextStyle(e) {
16847
16856
  const s = e.font?.family ?? "Open Sans", { baseFontFamily: a, fontWeight: i } = Gt(s), r = e.font?.size ?? 32, { width: n } = this.getSize();
16848
- return new q.TextStyle({
16857
+ return new X.TextStyle({
16849
16858
  fontFamily: a,
16850
16859
  fontSize: r,
16851
16860
  fill: e.font?.color ?? "#ffffff",
@@ -16913,12 +16922,12 @@ class Tu extends Nt {
16913
16922
  const e = this.clipConfiguration.asset, s = await this.parseDocument();
16914
16923
  if (!s)
16915
16924
  return;
16916
- const a = new q.Graphics();
16925
+ const a = new X.Graphics();
16917
16926
  s.background.color && (a.fillStyle = {
16918
16927
  color: s.background.color,
16919
16928
  alpha: s.background.opacity ?? 1
16920
16929
  }, a.rect(0, 0, e.width ?? this.edit.size.width, e.height ?? this.edit.size.height), a.fill());
16921
- const i = new q.Text();
16930
+ const i = new X.Text();
16922
16931
  i.text = s.text;
16923
16932
  const { horizontal: r, vertical: n } = s.alignment;
16924
16933
  i.style = {
@@ -17038,9 +17047,9 @@ class Ou extends Nt {
17038
17047
  }
17039
17048
  async loadTexture() {
17040
17049
  const e = this.clipConfiguration.asset, { src: s } = e, a = `${s}${s.includes("?") ? "&" : "?"}x-cors=1`, i = { src: a, crossorigin: "anonymous", data: {} }, r = await this.edit.assetLoader.load(a, i);
17041
- if (!(r?.source instanceof q.ImageSource))
17050
+ if (!(r?.source instanceof X.ImageSource))
17042
17051
  throw r && r.destroy(!0), new Error(`Invalid image source '${s}'.`);
17043
- this.texture = this.createCroppedTexture(r), this.sprite = new q.Sprite(this.texture), this.contentContainer.addChild(this.sprite), this.clipConfiguration.width && this.clipConfiguration.height && this.applyFixedDimensions();
17052
+ this.texture = this.createCroppedTexture(r), this.sprite = new X.Sprite(this.texture), this.contentContainer.addChild(this.sprite), this.clipConfiguration.width && this.clipConfiguration.height && this.applyFixedDimensions();
17044
17053
  }
17045
17054
  disposeTexture() {
17046
17055
  this.sprite && (this.contentContainer.removeChild(this.sprite), this.sprite.destroy(), this.sprite = null), this.texture = null;
@@ -17052,8 +17061,8 @@ class Ou extends Nt {
17052
17061
  const s = this.clipConfiguration.asset;
17053
17062
  if (!s.crop)
17054
17063
  return e;
17055
- const a = e.width, i = e.height, r = Math.floor((s.crop?.left ?? 0) * a), n = Math.floor((s.crop?.right ?? 0) * a), o = Math.floor((s.crop?.top ?? 0) * i), l = Math.floor((s.crop?.bottom ?? 0) * i), c = r, f = o, h = a - r - n, d = i - o - l, y = new q.Rectangle(c, f, h, d);
17056
- return new q.Texture({ source: e.source, frame: y });
17064
+ const a = e.width, i = e.height, r = Math.floor((s.crop?.left ?? 0) * a), n = Math.floor((s.crop?.right ?? 0) * a), o = Math.floor((s.crop?.top ?? 0) * i), l = Math.floor((s.crop?.bottom ?? 0) * i), c = r, f = o, h = a - r - n, d = i - o - l, y = new X.Rectangle(c, f, h, d);
17065
+ return new X.Texture({ source: e.source, frame: y });
17057
17066
  }
17058
17067
  }
17059
17068
  const Mu = /* @__PURE__ */ new Set(["text-to-image", "image-to-video", "text-to-speech"]);
@@ -17087,9 +17096,9 @@ function za(t, e, s) {
17087
17096
  const a = t / 360, i = e / 100, r = s / 100;
17088
17097
  let n, o, l;
17089
17098
  {
17090
- const d = (C, E, F) => {
17099
+ const d = (x, P, F) => {
17091
17100
  let N = F;
17092
- return N < 0 && (N += 1), N > 1 && (N -= 1), N < 0.16666666666666666 ? C + (E - C) * 6 * N : N < 0.5 ? E : N < 0.6666666666666666 ? C + (E - C) * (0.6666666666666666 - N) * 6 : C;
17101
+ return N < 0 && (N += 1), N > 1 && (N -= 1), N < 0.16666666666666666 ? x + (P - x) * 6 * N : N < 0.5 ? P : N < 0.6666666666666666 ? x + (P - x) * (0.6666666666666666 - N) * 6 : x;
17093
17102
  }, y = r + i - r * i, m = 2 * r - y;
17094
17103
  n = d(m, y, a + 1 / 3), o = d(m, y, a), l = d(m, y, a - 1 / 3);
17095
17104
  }
@@ -17260,7 +17269,7 @@ function Uu(t) {
17260
17269
  const an = 64, Kt = 72, Uo = 42;
17261
17270
  class Tn {
17262
17271
  constructor(e) {
17263
- this.options = e, this.container = new q.Container(), this.build(), this.startAnimation();
17272
+ this.options = e, this.container = new X.Container(), this.build(), this.startAnimation();
17264
17273
  }
17265
17274
  container;
17266
17275
  layers = [];
@@ -17300,19 +17309,19 @@ class Tn {
17300
17309
  build() {
17301
17310
  const { mode: e, width: s, height: a } = this.options;
17302
17311
  if (e === "panel") {
17303
- const o = new q.Graphics();
17312
+ const o = new X.Graphics();
17304
17313
  o.roundRect(0, 0, s, a, 4), o.fill({ color: "#1E1B2E", alpha: 1 }), this.container.addChild(o);
17305
17314
  } else {
17306
- const o = new q.Graphics();
17315
+ const o = new X.Graphics();
17307
17316
  o.rect(0, 0, s, a), o.fill({ color: "#000000", alpha: 0.25 }), this.container.addChild(o);
17308
17317
  }
17309
- this.auroraLayer = new q.Container(), this.layers = Uu(this.options.assetNumber).map((o) => {
17310
- const l = new q.Graphics();
17318
+ this.auroraLayer = new X.Container(), this.layers = Uu(this.options.assetNumber).map((o) => {
17319
+ const l = new X.Graphics();
17311
17320
  return this.auroraLayer.addChild(l), { ...o, graphics: l };
17312
17321
  });
17313
- const i = Math.min(Math.max(Math.min(s, a) * 0.04, 12), 40), r = new q.BlurFilter({ strength: i, quality: 4 });
17322
+ const i = Math.min(Math.max(Math.min(s, a) * 0.04, 12), 40), r = new X.BlurFilter({ strength: i, quality: 4 });
17314
17323
  this.auroraLayer.filters = [r];
17315
- const n = new q.Graphics();
17324
+ const n = new X.Graphics();
17316
17325
  e === "panel" ? n.roundRect(0, 0, s, a, 4) : n.rect(0, 0, s, a), n.fill({ color: "#ffffff" }), this.auroraLayer.addChild(n), this.auroraLayer.mask = n, this.container.addChild(this.auroraLayer), this.drawAurora(), this.buildBadge();
17317
17326
  }
17318
17327
  /**
@@ -17324,21 +17333,21 @@ class Tn {
17324
17333
  r.graphics.clear();
17325
17334
  const n = Math.sin(a * 0.3 + r.phase * 1.7) * 0.5 + 0.5, o = r.baseAlpha * (0.7 + 0.3 * n), l = a * r.scrollSpeed;
17326
17335
  for (let c = 0; c < an; c += 1) {
17327
- const h = c / an * Math.PI * 2 + l, d = Zu(h, a, r.phase, r.waves), y = (r.baseY + d) * s, m = 0.6 + 0.4 * Math.sin(h * 3.7 + a * 0.2 + r.phase * 2.3), C = r.rayHeight * s * m, E = 0.4 + 0.6 * (Math.sin(h * 5 + a * 0.15 + r.phase * 3.1) * 0.5 + 0.5) ** 0.7, F = o * E, N = c * i;
17328
- r.graphics.rect(N, y, i + 1, C), r.graphics.fill({ color: r.color, alpha: F });
17336
+ const h = c / an * Math.PI * 2 + l, d = Zu(h, a, r.phase, r.waves), y = (r.baseY + d) * s, m = 0.6 + 0.4 * Math.sin(h * 3.7 + a * 0.2 + r.phase * 2.3), x = r.rayHeight * s * m, P = 0.4 + 0.6 * (Math.sin(h * 5 + a * 0.15 + r.phase * 3.1) * 0.5 + 0.5) ** 0.7, F = o * P, N = c * i;
17337
+ r.graphics.rect(N, y, i + 1, x), r.graphics.fill({ color: r.color, alpha: F });
17329
17338
  }
17330
17339
  }
17331
17340
  }
17332
17341
  buildBadge() {
17333
- const { width: e, height: s, icon: a, assetNumber: i, prompt: r, assetType: n } = this.options, o = new q.Container();
17342
+ const { width: e, height: s, icon: a, assetNumber: i, prompt: r, assetType: n } = this.options, o = new X.Container();
17334
17343
  o.position.set(e / 2 - Kt / 2, s / 2 - Kt / 2);
17335
- const l = new q.Graphics();
17344
+ const l = new X.Graphics();
17336
17345
  l.circle(Kt / 2, Kt / 2, Kt / 2), l.fill({ color: "#000000", alpha: 0.5 }), o.addChild(l);
17337
- const c = new q.Graphics();
17346
+ const c = new X.Graphics();
17338
17347
  c.svg(`<svg viewBox="0 0 24 24"><path d="${Lu[a]}" fill="#C084FC" /></svg>`);
17339
17348
  const f = Uo / 24, h = (Kt - Uo) / 2;
17340
17349
  if (c.scale.set(f, f), c.position.set(h, h), o.addChild(c), i !== void 0) {
17341
- const d = n ? Du(n) : "", y = d ? `${d} ${i}` : String(i), m = new q.Text({
17350
+ const d = n ? Du(n) : "", y = d ? `${d} ${i}` : String(i), m = new X.Text({
17342
17351
  text: y,
17343
17352
  style: {
17344
17353
  fontFamily: "Arial",
@@ -17350,7 +17359,7 @@ class Tn {
17350
17359
  m.anchor.set(0.5, 0.5), m.position.set(Kt / 2, Kt + 15), o.addChild(m);
17351
17360
  }
17352
17361
  if (r) {
17353
- const d = Bu(r, 60), y = new q.Text({
17362
+ const d = Bu(r, 60), y = new X.Text({
17354
17363
  text: d,
17355
17364
  style: {
17356
17365
  fontFamily: "Arial",
@@ -17369,7 +17378,7 @@ class Tn {
17369
17378
  }
17370
17379
  }
17371
17380
  function Dc(t, e) {
17372
- const s = new q.Graphics();
17381
+ const s = new X.Graphics();
17373
17382
  return s.fillStyle = { color: "#cccccc", alpha: 0.5 }, s.rect(0, 0, t, e), s.fill(), s.strokeStyle = { color: "#999999", width: 2 }, s.moveTo(0, 0), s.lineTo(t, e), s.moveTo(t, 0), s.lineTo(0, e), s.stroke(), s;
17374
17383
  }
17375
17384
  class Gu extends Nt {
@@ -17439,9 +17448,9 @@ class Gu extends Nt {
17439
17448
  }
17440
17449
  async loadTexture() {
17441
17450
  const e = this.clipConfiguration.asset, { src: s } = e, a = `${s}${s.includes("?") ? "&" : "?"}x-cors=1`, i = { src: a, crossorigin: "anonymous", data: {} }, r = await this.edit.assetLoader.load(a, i);
17442
- if (!(r?.source instanceof q.ImageSource))
17451
+ if (!(r?.source instanceof X.ImageSource))
17443
17452
  throw r && r.destroy(!0), new Error(`Invalid image source '${s}'.`);
17444
- this.texture = r, this.sprite = new q.Sprite(this.texture), this.contentContainer.addChild(this.sprite), this.clipConfiguration.width && this.clipConfiguration.height && this.applyFixedDimensions();
17453
+ this.texture = r, this.sprite = new X.Sprite(this.texture), this.contentContainer.addChild(this.sprite), this.clipConfiguration.width && this.clipConfiguration.height && this.applyFixedDimensions();
17445
17454
  }
17446
17455
  }
17447
17456
  class Wu extends Nt {
@@ -17454,12 +17463,12 @@ class Wu extends Nt {
17454
17463
  async load() {
17455
17464
  await super.load();
17456
17465
  const e = this.clipConfiguration.asset, s = e.src, a = { src: s, data: { autoPlay: !1, muted: !0 } }, i = await this.edit.assetLoader.load(s, a);
17457
- if (!(i?.source instanceof q.ImageSource || i?.source instanceof q.VideoSource))
17466
+ if (!(i?.source instanceof X.ImageSource || i?.source instanceof X.VideoSource))
17458
17467
  throw i && this.edit.assetLoader.decrementRef(s), new Error(`Invalid luma source '${e.src}'.`);
17459
- i.source instanceof q.VideoSource && (i.source.alphaMode = "no-premultiply-alpha"), this.texture = i, this.sprite = new q.Sprite(this.texture), this.contentContainer.addChild(this.sprite), this.configureKeyframes();
17468
+ i.source instanceof X.VideoSource && (i.source.alphaMode = "no-premultiply-alpha"), this.texture = i, this.sprite = new X.Sprite(this.texture), this.contentContainer.addChild(this.sprite), this.configureKeyframes();
17460
17469
  }
17461
17470
  update(e, s) {
17462
- if (super.update(e, s), !this.texture || !(this.texture.source instanceof q.VideoSource))
17471
+ if (super.update(e, s), !this.texture || !(this.texture.source instanceof X.VideoSource))
17463
17472
  return;
17464
17473
  const a = this.getPlaybackTime(), i = this.edit.isPlaying && this.isActive();
17465
17474
  i && (this.isPlaying || (this.isPlaying = !0, this.texture.source.resource.currentTime = a, this.texture.source.resource.play().catch(console.error)), this.texture.source.resource.volume !== this.getVolume() && (this.texture.source.resource.volume = this.getVolume()), Math.abs(this.texture.source.resource.currentTime - a) > 0.1 && (this.texture.source.resource.currentTime = a)), !i && this.isPlaying && (this.isPlaying = !1, this.texture.source.resource.pause()), !this.edit.isPlaying && this.isActive() && (this.texture.source.resource.currentTime = a);
@@ -17480,10 +17489,10 @@ class Wu extends Nt {
17480
17489
  return this.sprite;
17481
17490
  }
17482
17491
  isVideoSource() {
17483
- return this.texture?.source instanceof q.VideoSource;
17492
+ return this.texture?.source instanceof X.VideoSource;
17484
17493
  }
17485
17494
  getVideoCurrentTime() {
17486
- return this.texture?.source instanceof q.VideoSource ? this.texture.source.resource.currentTime : -1;
17495
+ return this.texture?.source instanceof X.VideoSource ? this.texture.source.resource.currentTime : -1;
17487
17496
  }
17488
17497
  }
17489
17498
  function D(t, e, s) {
@@ -18677,65 +18686,65 @@ const Td = /* @__PURE__ */ D("$ZodObject", (t, e) => {
18677
18686
  o.value = {};
18678
18687
  const f = [], h = n.shape;
18679
18688
  for (const d of n.keys) {
18680
- const y = h[d], m = y._zod.optout === "optional", C = y._zod.run({ value: c[d], issues: [] }, l);
18681
- C instanceof Promise ? f.push(C.then((E) => sr(E, o, d, c, m))) : sr(C, o, d, c, m);
18689
+ const y = h[d], m = y._zod.optout === "optional", x = y._zod.run({ value: c[d], issues: [] }, l);
18690
+ x instanceof Promise ? f.push(x.then((P) => sr(P, o, d, c, m))) : sr(x, o, d, c, m);
18682
18691
  }
18683
18692
  return r ? af(f, c, o, l, a.value, t) : f.length ? Promise.all(f).then(() => o) : o;
18684
18693
  };
18685
18694
  }), Od = /* @__PURE__ */ D("$ZodObjectJIT", (t, e) => {
18686
18695
  Td.init(t, e);
18687
18696
  const s = t._zod.parse, a = _r(() => sf(e)), i = (d) => {
18688
- const y = new ed(["shape", "payload", "ctx"]), m = a.value, C = (v) => {
18689
- const P = Wo(v);
18690
- return `shape[${P}]._zod.run({ value: input[${P}], issues: [] }, ctx)`;
18697
+ const y = new ed(["shape", "payload", "ctx"]), m = a.value, x = (v) => {
18698
+ const E = Wo(v);
18699
+ return `shape[${E}]._zod.run({ value: input[${E}], issues: [] }, ctx)`;
18691
18700
  };
18692
18701
  y.write("const input = payload.value;");
18693
- const E = /* @__PURE__ */ Object.create(null);
18702
+ const P = /* @__PURE__ */ Object.create(null);
18694
18703
  let F = 0;
18695
18704
  for (const v of m.keys)
18696
- E[v] = `key_${F++}`;
18705
+ P[v] = `key_${F++}`;
18697
18706
  y.write("const newResult = {};");
18698
18707
  for (const v of m.keys) {
18699
- const P = E[v], b = Wo(v), B = d[v]?._zod?.optout === "optional";
18700
- y.write(`const ${P} = ${C(v)};`), B ? y.write(`
18701
- if (${P}.issues.length) {
18708
+ const E = P[v], b = Wo(v), B = d[v]?._zod?.optout === "optional";
18709
+ y.write(`const ${E} = ${x(v)};`), B ? y.write(`
18710
+ if (${E}.issues.length) {
18702
18711
  if (${b} in input) {
18703
- payload.issues = payload.issues.concat(${P}.issues.map(iss => ({
18712
+ payload.issues = payload.issues.concat(${E}.issues.map(iss => ({
18704
18713
  ...iss,
18705
18714
  path: iss.path ? [${b}, ...iss.path] : [${b}]
18706
18715
  })));
18707
18716
  }
18708
18717
  }
18709
18718
 
18710
- if (${P}.value === undefined) {
18719
+ if (${E}.value === undefined) {
18711
18720
  if (${b} in input) {
18712
18721
  newResult[${b}] = undefined;
18713
18722
  }
18714
18723
  } else {
18715
- newResult[${b}] = ${P}.value;
18724
+ newResult[${b}] = ${E}.value;
18716
18725
  }
18717
18726
 
18718
18727
  `) : y.write(`
18719
- if (${P}.issues.length) {
18720
- payload.issues = payload.issues.concat(${P}.issues.map(iss => ({
18728
+ if (${E}.issues.length) {
18729
+ payload.issues = payload.issues.concat(${E}.issues.map(iss => ({
18721
18730
  ...iss,
18722
18731
  path: iss.path ? [${b}, ...iss.path] : [${b}]
18723
18732
  })));
18724
18733
  }
18725
18734
 
18726
- if (${P}.value === undefined) {
18735
+ if (${E}.value === undefined) {
18727
18736
  if (${b} in input) {
18728
18737
  newResult[${b}] = undefined;
18729
18738
  }
18730
18739
  } else {
18731
- newResult[${b}] = ${P}.value;
18740
+ newResult[${b}] = ${E}.value;
18732
18741
  }
18733
18742
 
18734
18743
  `);
18735
18744
  }
18736
18745
  y.write("payload.value = newResult;"), y.write("return payload;");
18737
18746
  const N = y.compile();
18738
- return (v, P) => N(d, v, P);
18747
+ return (v, E) => N(d, v, E);
18739
18748
  };
18740
18749
  let r;
18741
18750
  const n = si, o = !Lc.jitless, c = o && Ku.value, f = e.catchall;
@@ -19799,11 +19808,11 @@ function uf(t, e) {
19799
19808
  a(f);
19800
19809
  const d = t.seen.get(f), y = d.schema;
19801
19810
  if (y.$ref && (t.target === "draft-07" || t.target === "draft-04" || t.target === "openapi-3.0") ? (l.allOf = l.allOf ?? [], l.allOf.push(y)) : Object.assign(l, y), Object.assign(l, c), n._zod.parent === f)
19802
- for (const C in l)
19803
- C === "$ref" || C === "allOf" || C in c || delete l[C];
19811
+ for (const x in l)
19812
+ x === "$ref" || x === "allOf" || x in c || delete l[x];
19804
19813
  if (y.$ref && d.def)
19805
- for (const C in l)
19806
- C === "$ref" || C === "allOf" || C in d.def && JSON.stringify(l[C]) === JSON.stringify(d.def[C]) && delete l[C];
19814
+ for (const x in l)
19815
+ x === "$ref" || x === "allOf" || x in d.def && JSON.stringify(l[x]) === JSON.stringify(d.def[x]) && delete l[x];
19807
19816
  }
19808
19817
  const h = n._zod.parent;
19809
19818
  if (h && h !== f) {
@@ -20241,7 +20250,7 @@ function Ie(t, e) {
20241
20250
  const nm = /* @__PURE__ */ D("ZodObject", (t, e) => {
20242
20251
  Od.init(t, e), Je.init(t, e), t._zod.processJSONSchema = (s, a, i) => ip(t, s, a, i), De(t, "shape", () => e.shape), t.keyof = () => R(Object.keys(t._zod.def.shape)), t.catchall = (s) => t.clone({ ...t._zod.def, catchall: s }), t.passthrough = () => t.clone({ ...t._zod.def, catchall: Xs() }), t.loose = () => t.clone({ ...t._zod.def, catchall: Xs() }), t.strict = () => t.clone({ ...t._zod.def, catchall: we() }), t.strip = () => t.clone({ ...t._zod.def, catchall: void 0 }), t.extend = (s) => $u(t, s), t.safeExtend = (s) => eh(t, s), t.merge = (s) => th(t, s), t.pick = (s) => Ju(t, s), t.omit = (s) => Qu(t, s), t.partial = (...s) => sh(yf, t, s[0]), t.required = (...s) => ah(bf, t, s[0]);
20243
20252
  });
20244
- function x(t, e) {
20253
+ function C(t, e) {
20245
20254
  const s = {
20246
20255
  type: "object",
20247
20256
  shape: t ?? {},
@@ -20473,7 +20482,7 @@ function _(t, e) {
20473
20482
  }
20474
20483
  const ma = {
20475
20484
  custom: "custom"
20476
- }, Fm = x({
20485
+ }, Fm = C({
20477
20486
  color: g(p()),
20478
20487
  opacity: g(w([_((t) => {
20479
20488
  if (!(t === "" || t === null || t === void 0))
@@ -20487,7 +20496,7 @@ const ma = {
20487
20496
  if (!(t === "" || t === null || t === void 0))
20488
20497
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
20489
20498
  }, A().int()), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
20490
- }).strict(), Pm = x({
20499
+ }).strict(), Pm = C({
20491
20500
  family: g(p()),
20492
20501
  color: g(p()),
20493
20502
  opacity: g(w([_((t) => {
@@ -20507,7 +20516,7 @@ const ma = {
20507
20516
  if (!(t === "" || t === null || t === void 0))
20508
20517
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
20509
20518
  }, A()), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
20510
- }).strict(), Em = x({
20519
+ }).strict(), Em = C({
20511
20520
  top: g(w([_((t) => {
20512
20521
  if (!(t === "" || t === null || t === void 0))
20513
20522
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
@@ -20520,7 +20529,7 @@ const ma = {
20520
20529
  if (!(t === "" || t === null || t === void 0))
20521
20530
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
20522
20531
  }, A()), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
20523
- }).strict(), Tm = x({
20532
+ }).strict(), Tm = C({
20524
20533
  type: R(["caption"]),
20525
20534
  src: p().min(1).regex(/\S/),
20526
20535
  font: g(Pm),
@@ -20534,7 +20543,7 @@ const ma = {
20534
20543
  if (!(t === "" || t === null || t === void 0))
20535
20544
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
20536
20545
  }, A().gte(0).lte(10)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
20537
- }).strict(), Om = x({
20546
+ }).strict(), Om = C({
20538
20547
  color: w([p().regex(/^#[0-9a-fA-F]{6}$/), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
20539
20548
  threshold: g(w([_((t) => {
20540
20549
  if (!(t === "" || t === null || t === void 0))
@@ -20544,7 +20553,7 @@ const ma = {
20544
20553
  if (!(t === "" || t === null || t === void 0))
20545
20554
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
20546
20555
  }, A().int().gte(0).lte(250)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
20547
- }).strict(), Mm = x({
20556
+ }).strict(), Mm = C({
20548
20557
  type: R(["text-to-avatar"]),
20549
20558
  text: p(),
20550
20559
  avatar: R([
@@ -20555,12 +20564,12 @@ const ma = {
20555
20564
  "rian"
20556
20565
  ]),
20557
20566
  background: g(p())
20558
- }).strict(), zm = x({
20567
+ }).strict(), zm = C({
20559
20568
  type: ge("didTextToAvatarOptions_DIDTextToAvatarOptions")
20560
- }).strict().and(Mm), Rm = x({
20569
+ }).strict().and(Mm), Rm = C({
20561
20570
  provider: R(["d-id"]),
20562
20571
  options: zm
20563
- }).strict(), Dm = x({
20572
+ }).strict(), Dm = C({
20564
20573
  type: R(["text-to-speech"]),
20565
20574
  text: p(),
20566
20575
  voice: R([
@@ -20574,12 +20583,12 @@ const ma = {
20574
20583
  "Rachel",
20575
20584
  "Sam"
20576
20585
  ])
20577
- }).strict(), Bm = x({
20586
+ }).strict(), Bm = C({
20578
20587
  type: ge("elevenlabsTextToSpeechOptions_ElevenLabsTextToSpeechOptions")
20579
- }).strict().and(Dm), Lm = x({
20588
+ }).strict().and(Dm), Lm = C({
20580
20589
  provider: R(["elevenlabs"]),
20581
20590
  options: Bm
20582
- }).strict(), Zm = x({
20591
+ }).strict(), Zm = C({
20583
20592
  type: R(["text-to-avatar"]),
20584
20593
  text: p(),
20585
20594
  avatar: R([
@@ -20699,30 +20708,30 @@ const ma = {
20699
20708
  background: g(p()),
20700
20709
  ratio: g(R(["16:9", "9:16"])),
20701
20710
  test: g(He())
20702
- }).strict(), Um = x({
20711
+ }).strict(), Um = C({
20703
20712
  type: ge("heygenTextToAvatarOptions_HeyGenTextToAvatarOptions")
20704
- }).strict().and(Zm), Gm = x({
20713
+ }).strict().and(Zm), Gm = C({
20705
20714
  provider: R(["heygen"]),
20706
20715
  options: Um
20707
- }).strict(), Wm = x({
20716
+ }).strict(), Wm = C({
20708
20717
  type: R(["text-generator"]),
20709
20718
  prompt: p(),
20710
20719
  model: R(["gpt-3.5-turbo", "gpt-4"]),
20711
20720
  systemPrompt: g(p())
20712
- }).strict(), Ym = x({
20721
+ }).strict(), Ym = C({
20713
20722
  type: ge("openaiTextGeneratorOptions_OpenAiTextGeneratorOptions")
20714
- }).strict().and(Wm), Hm = x({
20723
+ }).strict().and(Wm), Hm = C({
20715
20724
  provider: R(["openai"]),
20716
20725
  options: Ym
20717
- }).strict(), Km = x({
20726
+ }).strict(), Km = C({
20718
20727
  status: p(),
20719
20728
  title: p(),
20720
20729
  detail: p()
20721
20730
  }).strict();
20722
- x({
20731
+ C({
20723
20732
  errors: Ie(Km)
20724
20733
  }).strict();
20725
- const jm = x({
20734
+ const jm = C({
20726
20735
  owner: p(),
20727
20736
  provider: R([
20728
20737
  "shotstack",
@@ -20741,15 +20750,15 @@ const jm = x({
20741
20750
  ]),
20742
20751
  created: p(),
20743
20752
  updated: p()
20744
- }).strict(), Xm = x({
20753
+ }).strict(), Xm = C({
20745
20754
  type: p(),
20746
20755
  id: p(),
20747
20756
  attributes: jm
20748
20757
  }).strict();
20749
- x({
20758
+ C({
20750
20759
  data: Xm
20751
20760
  }).strict();
20752
- const qm = x({
20761
+ const qm = C({
20753
20762
  type: R(["image-to-video"]),
20754
20763
  imageUrl: p(),
20755
20764
  guidanceScale: g(w([_((t) => {
@@ -20760,10 +20769,10 @@ const qm = x({
20760
20769
  if (!(t === "" || t === null || t === void 0))
20761
20770
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
20762
20771
  }, A().int()), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(127)
20763
- }).strict(), Jm = x({
20772
+ }).strict(), Jm = C({
20764
20773
  type: R(["text-generator"]),
20765
20774
  prompt: p()
20766
- }).strict(), Qm = x({
20775
+ }).strict(), Qm = C({
20767
20776
  type: R(["text-to-image"]),
20768
20777
  prompt: p(),
20769
20778
  width: w([_((t) => {
@@ -20774,7 +20783,7 @@ const qm = x({
20774
20783
  if (!(t === "" || t === null || t === void 0))
20775
20784
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
20776
20785
  }, A().int()), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
20777
- }).strict(), $m = x({
20786
+ }).strict(), $m = C({
20778
20787
  type: R(["text-to-speech"]),
20779
20788
  text: p(),
20780
20789
  voice: R([
@@ -20869,22 +20878,22 @@ const qm = x({
20869
20878
  ])),
20870
20879
  newscaster: g(He()).default(!1)
20871
20880
  }).strict(), ey = w([
20872
- x({
20881
+ C({
20873
20882
  type: ge("shotstackTextToSpeechOptions_ShotstackTextToSpeechOptions")
20874
20883
  }).strict().and($m),
20875
- x({
20884
+ C({
20876
20885
  type: ge("shotstackTextToImageOptions_ShotstackTextToImageOptions")
20877
20886
  }).strict().and(Qm),
20878
- x({
20887
+ C({
20879
20888
  type: ge("shotstackTextGeneratorOptions_ShotstackTextGeneratorOptions")
20880
20889
  }).strict().and(Jm),
20881
- x({
20890
+ C({
20882
20891
  type: ge("shotstackImageToVideoOptions_ShotstackImageToVideoOptions")
20883
20892
  }).strict().and(qm)
20884
- ]), ty = x({
20893
+ ]), ty = C({
20885
20894
  provider: R(["shotstack"]),
20886
20895
  options: ey
20887
- }).strict(), sy = x({
20896
+ }).strict(), sy = C({
20888
20897
  type: R(["text-to-image"]),
20889
20898
  prompt: p(),
20890
20899
  engine: g(R([
@@ -20933,31 +20942,31 @@ const qm = x({
20933
20942
  "pixel-art",
20934
20943
  "tile-texture"
20935
20944
  ]))
20936
- }).strict(), ay = x({
20945
+ }).strict(), ay = C({
20937
20946
  type: ge("stabilityAiTextToImageOptions_StabilityAiTextToImageOptions")
20938
- }).strict().and(sy), iy = x({
20947
+ }).strict().and(sy), iy = C({
20939
20948
  provider: R(["stability-ai"]),
20940
20949
  options: ay
20941
20950
  }).strict(), ry = w([
20942
- x({
20951
+ C({
20943
20952
  provider: ge("shotstackGeneratedAsset_ShotstackGeneratedAsset")
20944
20953
  }).strict().and(ty),
20945
- x({
20954
+ C({
20946
20955
  provider: ge("didGeneratedAsset_DIDGeneratedAsset")
20947
20956
  }).strict().and(Rm),
20948
- x({
20957
+ C({
20949
20958
  provider: ge("elevenlabsGeneratedAsset_ElevenLabsGeneratedAsset")
20950
20959
  }).strict().and(Lm),
20951
- x({
20960
+ C({
20952
20961
  provider: ge("heygenGeneratedAsset_HeyGenGeneratedAsset")
20953
20962
  }).strict().and(Gm),
20954
- x({
20963
+ C({
20955
20964
  provider: ge("openaiGeneratedAsset_OpenAiGeneratedAsset")
20956
20965
  }).strict().and(Hm),
20957
- x({
20966
+ C({
20958
20967
  provider: ge("stabilityAiGeneratedAsset_StabilityAiGeneratedAsset")
20959
20968
  }).strict().and(iy)
20960
- ]), Or = x({
20969
+ ]), Or = C({
20961
20970
  top: g(w([_((t) => {
20962
20971
  if (!(t === "" || t === null || t === void 0))
20963
20972
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
@@ -20974,38 +20983,38 @@ const qm = x({
20974
20983
  if (!(t === "" || t === null || t === void 0))
20975
20984
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
20976
20985
  }, A().gte(0).lte(1)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
20977
- }).strict(), ny = x({
20986
+ }).strict(), ny = C({
20978
20987
  bucket: p(),
20979
20988
  prefix: g(p()),
20980
20989
  filename: g(p())
20981
- }).strict(), oy = x({
20990
+ }).strict(), oy = C({
20982
20991
  provider: ge("google-cloud-storage"),
20983
20992
  options: g(ny)
20984
- }).strict(), ly = x({
20993
+ }).strict(), ly = C({
20985
20994
  folderId: p(),
20986
20995
  filename: g(p())
20987
- }).strict(), cy = x({
20996
+ }).strict(), cy = C({
20988
20997
  provider: ge("google-drive"),
20989
20998
  options: ly
20990
- }).strict(), fy = x({
20999
+ }).strict(), fy = C({
20991
21000
  playbackPolicy: g(Ie(R(["public", "signed"]))),
20992
21001
  passthrough: g(p().max(255))
20993
- }).strict(), uy = x({
21002
+ }).strict(), uy = C({
20994
21003
  provider: ge("mux"),
20995
21004
  options: g(fy)
20996
- }).strict(), hy = x({
21005
+ }).strict(), hy = C({
20997
21006
  region: p(),
20998
21007
  bucket: p(),
20999
21008
  prefix: g(p()),
21000
21009
  filename: g(p()),
21001
21010
  acl: g(p())
21002
- }).strict(), dy = x({
21011
+ }).strict(), dy = C({
21003
21012
  provider: ge("s3"),
21004
21013
  options: g(hy)
21005
- }).strict(), gy = x({
21014
+ }).strict(), gy = C({
21006
21015
  provider: ge("shotstack"),
21007
21016
  exclude: g(He())
21008
- }).strict(), py = x({
21017
+ }).strict(), py = C({
21009
21018
  title: g(p().max(150)),
21010
21019
  privacyLevel: g(R([
21011
21020
  "public",
@@ -21015,10 +21024,10 @@ const qm = x({
21015
21024
  disableDuet: g(He()).default(!1),
21016
21025
  disableStitch: g(He()).default(!1),
21017
21026
  disableComment: g(He()).default(!1)
21018
- }).strict(), my = x({
21027
+ }).strict(), my = C({
21019
21028
  provider: ge("tiktok"),
21020
21029
  options: g(py)
21021
- }).strict(), yy = x({
21030
+ }).strict(), yy = C({
21022
21031
  view: g(R([
21023
21032
  "anybody",
21024
21033
  "nobody",
@@ -21038,12 +21047,12 @@ const qm = x({
21038
21047
  ])),
21039
21048
  download: g(He()),
21040
21049
  add: g(He())
21041
- }).strict(), by = x({
21050
+ }).strict(), by = C({
21042
21051
  name: g(p()),
21043
21052
  description: g(p()),
21044
21053
  privacy: g(yy),
21045
21054
  folderUri: g(p())
21046
- }).strict(), wy = x({
21055
+ }).strict(), wy = C({
21047
21056
  provider: ge("vimeo"),
21048
21057
  options: g(by)
21049
21058
  }).strict(), Mr = Tr("provider", [
@@ -21054,12 +21063,12 @@ const qm = x({
21054
21063
  cy,
21055
21064
  wy,
21056
21065
  my
21057
- ]), vy = Mr, xy = x({
21066
+ ]), vy = Mr, xy = C({
21058
21067
  horizontal: g(He()),
21059
21068
  vertical: g(He())
21060
- }).strict(), Cy = x({
21069
+ }).strict(), Cy = C({
21061
21070
  src: p()
21062
- }).strict(), Ay = x({
21071
+ }).strict(), Ay = C({
21063
21072
  type: R(["html"]),
21064
21073
  html: p(),
21065
21074
  css: g(p()),
@@ -21083,11 +21092,11 @@ const qm = x({
21083
21092
  "topLeft",
21084
21093
  "center"
21085
21094
  ]))
21086
- }).strict(), Ny = x({
21095
+ }).strict(), Ny = C({
21087
21096
  type: R(["image"]),
21088
21097
  src: p().min(1).regex(/\S/),
21089
21098
  crop: g(Or)
21090
- }).strict(), ky = x({
21099
+ }).strict(), ky = C({
21091
21100
  type: R(["image-to-video"]),
21092
21101
  src: p().min(1),
21093
21102
  prompt: g(p()),
@@ -21105,7 +21114,7 @@ const qm = x({
21105
21114
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
21106
21115
  }, A().gte(0).lte(10)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
21107
21116
  crop: g(Or)
21108
- }).strict(), Sy = x({
21117
+ }).strict(), Sy = C({
21109
21118
  preset: R([
21110
21119
  "conference",
21111
21120
  "interview",
@@ -21117,64 +21126,64 @@ const qm = x({
21117
21126
  "studio",
21118
21127
  "voice_over"
21119
21128
  ])
21120
- }).strict(), Vy = x({
21129
+ }).strict(), Vy = C({
21121
21130
  provider: p().default("dolby"),
21122
21131
  options: Sy
21123
- }).strict(), Iy = x({
21132
+ }).strict(), Iy = C({
21124
21133
  enhancement: ge("dolbyEnhancement_DolbyEnhancement")
21125
- }).strict().and(Vy), _y = x({
21134
+ }).strict().and(Vy), _y = C({
21126
21135
  audio: g(Iy)
21127
- }).strict(), Fy = x({
21136
+ }).strict(), Fy = C({
21128
21137
  status: p(),
21129
21138
  title: p(),
21130
21139
  detail: p()
21131
21140
  }).strict();
21132
- x({
21141
+ C({
21133
21142
  errors: Ie(Fy)
21134
21143
  }).strict();
21135
- const Py = x({
21144
+ const Py = C({
21136
21145
  type: p(),
21137
21146
  id: p()
21138
21147
  }).strict();
21139
- x({
21148
+ C({
21140
21149
  data: Py
21141
21150
  }).strict();
21142
- const Ey = x({
21151
+ const Ey = C({
21143
21152
  id: p(),
21144
21153
  url: p(),
21145
21154
  expires: p()
21146
- }).strict(), Ty = x({
21155
+ }).strict(), Ty = C({
21147
21156
  type: p(),
21148
21157
  id: p(),
21149
21158
  attributes: Ey
21150
21159
  }).strict();
21151
- x({
21160
+ C({
21152
21161
  data: Ty
21153
21162
  }).strict();
21154
- const Oy = x({
21163
+ const Oy = C({
21155
21164
  speed: g(w([_((t) => {
21156
21165
  if (!(t === "" || t === null || t === void 0))
21157
21166
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
21158
21167
  }, A().gte(0).lte(10)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
21159
21168
  preservePitch: g(He())
21160
- }).strict(), My = x({
21169
+ }).strict(), My = C({
21161
21170
  format: g(R(["srt", "vtt"]))
21162
- }).strict(), zy = x({
21171
+ }).strict(), zy = C({
21163
21172
  type: R(["luma"]),
21164
21173
  src: p().min(1).regex(/\S/),
21165
21174
  trim: g(w([_((t) => {
21166
21175
  if (!(t === "" || t === null || t === void 0))
21167
21176
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
21168
21177
  }, A()), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
21169
- }).strict(), wf = x({
21178
+ }).strict(), wf = C({
21170
21179
  find: p(),
21171
21180
  replace: Xs()
21172
- }).strict(), Ry = x({
21181
+ }).strict(), Ry = C({
21173
21182
  capture: w([_((t) => {
21174
21183
  if (!(t === "" || t === null || t === void 0))
21175
21184
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
21176
21185
  }, A()), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
21177
- }).strict(), Dy = x({
21186
+ }).strict(), Dy = C({
21178
21187
  start: g(w([_((t) => {
21179
21188
  if (!(t === "" || t === null || t === void 0))
21180
21189
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
@@ -21183,7 +21192,7 @@ const Oy = x({
21183
21192
  if (!(t === "" || t === null || t === void 0))
21184
21193
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
21185
21194
  }, A().gte(0)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
21186
- }).strict(), By = x({
21195
+ }).strict(), By = C({
21187
21196
  id: p(),
21188
21197
  owner: p(),
21189
21198
  region: g(p()),
@@ -21199,61 +21208,61 @@ const Oy = x({
21199
21208
  ]),
21200
21209
  created: g(p()),
21201
21210
  updated: g(p())
21202
- }).strict(), vf = x({
21211
+ }).strict(), vf = C({
21203
21212
  type: p(),
21204
21213
  attributes: By
21205
21214
  }).strict();
21206
- x({
21215
+ C({
21207
21216
  data: Ie(vf)
21208
21217
  }).strict();
21209
- x({
21218
+ C({
21210
21219
  data: vf
21211
21220
  }).strict();
21212
- x({
21221
+ C({
21213
21222
  success: He(),
21214
21223
  message: p(),
21215
21224
  response: um(p(), Xs())
21216
21225
  }).strict();
21217
- const Ly = x({
21226
+ const Ly = C({
21218
21227
  message: p(),
21219
21228
  id: p()
21220
21229
  }).strict();
21221
- x({
21230
+ C({
21222
21231
  success: He(),
21223
21232
  message: p(),
21224
21233
  response: Ly
21225
21234
  }).strict();
21226
- const Zy = x({
21235
+ const Zy = C({
21227
21236
  id: p(),
21228
21237
  name: p(),
21229
21238
  created: g(p()),
21230
21239
  updated: g(p())
21231
- }).strict(), Uy = x({
21240
+ }).strict(), Uy = C({
21232
21241
  owner: p(),
21233
21242
  templates: Ie(Zy)
21234
21243
  }).strict();
21235
- x({
21244
+ C({
21236
21245
  success: He(),
21237
21246
  message: p(),
21238
21247
  response: Uy
21239
21248
  }).strict();
21240
- const Gy = x({
21249
+ const Gy = C({
21241
21250
  message: p(),
21242
21251
  id: p()
21243
21252
  }).strict();
21244
- x({
21253
+ C({
21245
21254
  success: He(),
21246
21255
  message: p(),
21247
21256
  response: Gy
21248
21257
  }).strict();
21249
- const Wy = x({
21258
+ const Wy = C({
21250
21259
  color: g(w([p().regex(/^#[A-Fa-f0-9]{6}$/), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#ffff00"),
21251
21260
  background: g(w([p().regex(/^#[A-Fa-f0-9]{6}$/), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
21252
21261
  opacity: g(w([_((t) => {
21253
21262
  if (!(t === "" || t === null || t === void 0))
21254
21263
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
21255
21264
  }, A().gte(0).lte(1)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
21256
- }).strict(), Yy = x({
21265
+ }).strict(), Yy = C({
21257
21266
  style: R([
21258
21267
  "karaoke",
21259
21268
  "highlight",
@@ -21274,7 +21283,7 @@ const Wy = x({
21274
21283
  "up",
21275
21284
  "down"
21276
21285
  ]))
21277
- }).strict(), Hy = x({
21286
+ }).strict(), Hy = C({
21278
21287
  text: p().min(1),
21279
21288
  start: w([_((t) => {
21280
21289
  if (!(t === "" || t === null || t === void 0))
@@ -21288,7 +21297,7 @@ const Wy = x({
21288
21297
  if (!(t === "" || t === null || t === void 0))
21289
21298
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
21290
21299
  }, A().gte(0).lte(1)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
21291
- }).strict(), uo = x({
21300
+ }).strict(), uo = C({
21292
21301
  horizontal: g(R([
21293
21302
  "left",
21294
21303
  "center",
@@ -21299,7 +21308,7 @@ const Wy = x({
21299
21308
  "middle",
21300
21309
  "bottom"
21301
21310
  ]))
21302
- }).strict(), Ky = uo, xf = x({
21311
+ }).strict(), Ky = uo, xf = C({
21303
21312
  preset: R([
21304
21313
  "fadeIn",
21305
21314
  "slideIn",
@@ -21319,7 +21328,7 @@ const Wy = x({
21319
21328
  "up",
21320
21329
  "down"
21321
21330
  ]))
21322
- }).strict(), jy = xf, ho = x({
21331
+ }).strict(), jy = xf, ho = C({
21323
21332
  color: g(w([p().regex(/^#[A-Fa-f0-9]{6}$/), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
21324
21333
  opacity: g(w([_((t) => {
21325
21334
  if (!(t === "" || t === null || t === void 0))
@@ -21329,7 +21338,7 @@ const Wy = x({
21329
21338
  if (!(t === "" || t === null || t === void 0))
21330
21339
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
21331
21340
  }, A().gte(0)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
21332
- }).strict(), Xy = ho, qy = x({
21341
+ }).strict(), Xy = ho, qy = C({
21333
21342
  width: g(w([_((t) => {
21334
21343
  if (!(t === "" || t === null || t === void 0))
21335
21344
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
@@ -21343,20 +21352,20 @@ const Wy = x({
21343
21352
  if (!(t === "" || t === null || t === void 0))
21344
21353
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
21345
21354
  }, A().gte(0)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
21346
- }).strict(), Jy = x({
21355
+ }).strict(), Jy = C({
21347
21356
  type: g(R(["linear", "radial"])),
21348
21357
  angle: g(w([_((t) => {
21349
21358
  if (!(t === "" || t === null || t === void 0))
21350
21359
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
21351
21360
  }, A().gte(0).lte(360)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0),
21352
- stops: Ie(x({
21361
+ stops: Ie(C({
21353
21362
  offset: w([_((t) => {
21354
21363
  if (!(t === "" || t === null || t === void 0))
21355
21364
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
21356
21365
  }, A().gte(0).lte(1)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
21357
21366
  color: w([p().regex(/^#[A-Fa-f0-9]{6}$/), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
21358
21367
  })).min(2)
21359
- }).strict(), Cf = x({
21368
+ }).strict(), Cf = C({
21360
21369
  top: g(w([_((t) => {
21361
21370
  if (!(t === "" || t === null || t === void 0))
21362
21371
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
@@ -21373,7 +21382,7 @@ const Wy = x({
21373
21382
  if (!(t === "" || t === null || t === void 0))
21374
21383
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
21375
21384
  }, A().gte(0)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
21376
- }).strict(), go = x({
21385
+ }).strict(), go = C({
21377
21386
  offsetX: g(w([_((t) => {
21378
21387
  if (!(t === "" || t === null || t === void 0))
21379
21388
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
@@ -21391,7 +21400,7 @@ const Wy = x({
21391
21400
  if (!(t === "" || t === null || t === void 0))
21392
21401
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
21393
21402
  }, A().gte(0).lte(1)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.5)
21394
- }).strict(), Qy = go, ui = x({
21403
+ }).strict(), Qy = go, ui = C({
21395
21404
  width: g(w([_((t) => {
21396
21405
  if (!(t === "" || t === null || t === void 0))
21397
21406
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
@@ -21401,14 +21410,14 @@ const Wy = x({
21401
21410
  if (!(t === "" || t === null || t === void 0))
21402
21411
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
21403
21412
  }, A().gte(0).lte(1)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
21404
- }).strict(), $y = ui, eb = x({
21413
+ }).strict(), $y = ui, eb = C({
21405
21414
  font: g(Wy),
21406
21415
  stroke: g(ui),
21407
21416
  scale: g(w([_((t) => {
21408
21417
  if (!(t === "" || t === null || t === void 0))
21409
21418
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
21410
21419
  }, A().gte(0.5).lte(2)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
21411
- }).strict(), po = x({
21420
+ }).strict(), po = C({
21412
21421
  family: g(p()).default("Open Sans"),
21413
21422
  size: g(w([_((t) => {
21414
21423
  if (!(t === "" || t === null || t === void 0))
@@ -21422,7 +21431,7 @@ const Wy = x({
21422
21431
  }, A().gte(0).lte(1)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1),
21423
21432
  background: g(w([p().regex(/^#[A-Fa-f0-9]{6}$/), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
21424
21433
  stroke: g(ui)
21425
- }).strict(), tb = po, mo = x({
21434
+ }).strict(), tb = po, mo = C({
21426
21435
  letterSpacing: g(w([_((t) => {
21427
21436
  if (!(t === "" || t === null || t === void 0))
21428
21437
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
@@ -21447,7 +21456,7 @@ const Wy = x({
21447
21456
  "line-through"
21448
21457
  ])),
21449
21458
  gradient: g(Jy)
21450
- }).strict(), sb = mo, ab = x({
21459
+ }).strict(), sb = mo, ab = C({
21451
21460
  type: R(["rich-caption"]),
21452
21461
  src: g(p().min(1)),
21453
21462
  words: g(Ie(Hy).max(1e5)),
@@ -21479,7 +21488,7 @@ const Wy = x({
21479
21488
  if (!(t === "" || t === null || t === void 0))
21480
21489
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
21481
21490
  }, A().int().gte(1).lte(10)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(2)
21482
- }).strict(), Af = x({
21491
+ }).strict(), Af = C({
21483
21492
  type: R(["rich-text"]),
21484
21493
  text: p().max(5e3),
21485
21494
  font: g(po),
@@ -21497,23 +21506,23 @@ const Wy = x({
21497
21506
  ])),
21498
21507
  align: g(uo),
21499
21508
  animation: g(xf)
21500
- }).strict(), Nf = Af, ib = x({
21509
+ }).strict(), Nf = Af, ib = C({
21501
21510
  id: g(p()),
21502
21511
  owner: g(p()),
21503
21512
  status: g(R(["queued", "failed"])),
21504
21513
  created: g(p())
21505
- }).strict(), rb = x({
21514
+ }).strict(), rb = C({
21506
21515
  type: g(p()),
21507
21516
  attributes: g(ib)
21508
21517
  }).strict();
21509
- x({
21518
+ C({
21510
21519
  data: rb
21511
21520
  }).strict();
21512
- const nb = x({
21521
+ const nb = C({
21513
21522
  url: p(),
21514
21523
  id: p(),
21515
21524
  destinations: Ie(Mr)
21516
- }).strict(), ob = x({
21525
+ }).strict(), ob = C({
21517
21526
  type: R(["shape"]),
21518
21527
  shape: R([
21519
21528
  "rectangle",
@@ -21528,21 +21537,21 @@ const nb = x({
21528
21537
  if (!(t === "" || t === null || t === void 0))
21529
21538
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
21530
21539
  }, A().int()), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
21531
- fill: g(x({
21540
+ fill: g(C({
21532
21541
  color: g(p()),
21533
21542
  opacity: g(w([_((t) => {
21534
21543
  if (!(t === "" || t === null || t === void 0))
21535
21544
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
21536
21545
  }, A()), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
21537
21546
  })),
21538
- stroke: g(x({
21547
+ stroke: g(C({
21539
21548
  color: g(p()),
21540
21549
  width: g(w([_((t) => {
21541
21550
  if (!(t === "" || t === null || t === void 0))
21542
21551
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
21543
21552
  }, A()), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
21544
21553
  })),
21545
- rectangle: g(x({
21554
+ rectangle: g(C({
21546
21555
  width: w([_((t) => {
21547
21556
  if (!(t === "" || t === null || t === void 0))
21548
21557
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
@@ -21556,13 +21565,13 @@ const nb = x({
21556
21565
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
21557
21566
  }, A().int()), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
21558
21567
  })),
21559
- circle: g(x({
21568
+ circle: g(C({
21560
21569
  radius: w([_((t) => {
21561
21570
  if (!(t === "" || t === null || t === void 0))
21562
21571
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
21563
21572
  }, A().int()), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
21564
21573
  })),
21565
- line: g(x({
21574
+ line: g(C({
21566
21575
  length: w([_((t) => {
21567
21576
  if (!(t === "" || t === null || t === void 0))
21568
21577
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
@@ -21572,7 +21581,7 @@ const nb = x({
21572
21581
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
21573
21582
  }, A().int()), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
21574
21583
  }))
21575
- }).strict(), yo = x({
21584
+ }).strict(), yo = C({
21576
21585
  width: g(w([_((t) => {
21577
21586
  if (!(t === "" || t === null || t === void 0))
21578
21587
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
@@ -21581,7 +21590,7 @@ const nb = x({
21581
21590
  if (!(t === "" || t === null || t === void 0))
21582
21591
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
21583
21592
  }, A().int().gte(1).lte(4096)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
21584
- }).strict(), lb = yo, kf = x({
21593
+ }).strict(), lb = yo, kf = C({
21585
21594
  format: g(R([
21586
21595
  "mp4",
21587
21596
  "webm",
@@ -21638,10 +21647,10 @@ const nb = x({
21638
21647
  fixRotation: g(He()),
21639
21648
  enhance: g(_y),
21640
21649
  filename: g(p())
21641
- }).strict(), cb = x({
21650
+ }).strict(), cb = C({
21642
21651
  renditions: g(Ie(kf)),
21643
21652
  transcription: g(My)
21644
- }).strict(), fb = x({
21653
+ }).strict(), fb = C({
21645
21654
  id: p(),
21646
21655
  status: g(R([
21647
21656
  "queued",
@@ -21673,9 +21682,9 @@ const nb = x({
21673
21682
  if (!(t === "" || t === null || t === void 0))
21674
21683
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
21675
21684
  }, A()), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
21676
- }).strict(), ub = x({
21685
+ }).strict(), ub = C({
21677
21686
  renditions: g(Ie(fb))
21678
- }).strict(), hb = x({
21687
+ }).strict(), hb = C({
21679
21688
  id: p(),
21680
21689
  owner: p(),
21681
21690
  input: g(p()),
@@ -21707,23 +21716,23 @@ const nb = x({
21707
21716
  }, A()), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
21708
21717
  created: g(p()),
21709
21718
  updated: g(p())
21710
- }).strict(), Sf = x({
21719
+ }).strict(), Sf = C({
21711
21720
  type: p(),
21712
21721
  id: p(),
21713
21722
  attributes: hb
21714
21723
  }).strict();
21715
- x({
21724
+ C({
21716
21725
  data: Ie(Sf)
21717
21726
  }).strict();
21718
- x({
21727
+ C({
21719
21728
  data: Sf
21720
21729
  }).strict();
21721
- const db = x({
21730
+ const db = C({
21722
21731
  url: g(p()),
21723
21732
  outputs: g(cb),
21724
21733
  destinations: g(Mr),
21725
21734
  callback: g(p())
21726
- }).strict(), gb = x({
21735
+ }).strict(), gb = C({
21727
21736
  src: p().min(1).regex(/\S/),
21728
21737
  effect: g(R([
21729
21738
  "fadeIn",
@@ -21734,13 +21743,13 @@ const db = x({
21734
21743
  if (!(t === "" || t === null || t === void 0))
21735
21744
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
21736
21745
  }, A()), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
21737
- }).strict(), Vf = x({
21746
+ }).strict(), Vf = C({
21738
21747
  offset: w([_((t) => {
21739
21748
  if (!(t === "" || t === null || t === void 0))
21740
21749
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
21741
21750
  }, A().gte(0).lte(1)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
21742
21751
  color: w([p().regex(/^#[A-Fa-f0-9]{6}$/), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
21743
- }).strict(), pb = x({
21752
+ }).strict(), pb = C({
21744
21753
  type: R(["linear"]),
21745
21754
  angle: g(w([_((t) => {
21746
21755
  if (!(t === "" || t === null || t === void 0))
@@ -21751,14 +21760,14 @@ const db = x({
21751
21760
  if (!(t === "" || t === null || t === void 0))
21752
21761
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
21753
21762
  }, A().gte(0).lte(1)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
21754
- }).strict(), mb = x({
21763
+ }).strict(), mb = C({
21755
21764
  type: R(["radial"]),
21756
21765
  stops: Ie(Vf).min(2),
21757
21766
  opacity: g(w([_((t) => {
21758
21767
  if (!(t === "" || t === null || t === void 0))
21759
21768
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
21760
21769
  }, A().gte(0).lte(1)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(1)
21761
- }).strict(), yb = x({
21770
+ }).strict(), yb = C({
21762
21771
  offsetX: g(w([_((t) => {
21763
21772
  if (!(t === "" || t === null || t === void 0))
21764
21773
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
@@ -21776,7 +21785,7 @@ const db = x({
21776
21785
  if (!(t === "" || t === null || t === void 0))
21777
21786
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
21778
21787
  }, A().gte(0).lte(1)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.5)
21779
- }).strict(), bb = x({
21788
+ }).strict(), bb = C({
21780
21789
  type: R(["solid"]),
21781
21790
  color: p().regex(/^#[A-Fa-f0-9]{6}$/).default("#000000"),
21782
21791
  opacity: g(w([_((t) => {
@@ -21787,7 +21796,7 @@ const db = x({
21787
21796
  bb,
21788
21797
  pb,
21789
21798
  mb
21790
- ]), vb = x({
21799
+ ]), vb = C({
21791
21800
  color: g(w([p().regex(/^#[A-Fa-f0-9]{6}$/), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#000000"),
21792
21801
  width: g(w([_((t) => {
21793
21802
  if (!(t === "" || t === null || t === void 0))
@@ -21815,7 +21824,7 @@ const db = x({
21815
21824
  if (!(t === "" || t === null || t === void 0))
21816
21825
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
21817
21826
  }, A()), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
21818
- }).strict(), xb = x({
21827
+ }).strict(), xb = C({
21819
21828
  x: g(w([_((t) => {
21820
21829
  if (!(t === "" || t === null || t === void 0))
21821
21830
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
@@ -21840,7 +21849,7 @@ const db = x({
21840
21849
  if (!(t === "" || t === null || t === void 0))
21841
21850
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
21842
21851
  }, A().gte(0).lte(1)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0.5)
21843
- }).strict(), Cb = x({
21852
+ }).strict(), Cb = C({
21844
21853
  type: R(["arrow"]),
21845
21854
  length: w([_((t) => {
21846
21855
  if (!(t === "" || t === null || t === void 0))
@@ -21858,13 +21867,13 @@ const db = x({
21858
21867
  if (!(t === "" || t === null || t === void 0))
21859
21868
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
21860
21869
  }, A().gte(1).lte(1e3)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
21861
- }).strict(), Ab = x({
21870
+ }).strict(), Ab = C({
21862
21871
  type: R(["circle"]),
21863
21872
  radius: w([_((t) => {
21864
21873
  if (!(t === "" || t === null || t === void 0))
21865
21874
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
21866
21875
  }, A().gte(1).lte(2048)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
21867
- }).strict(), Nb = x({
21876
+ }).strict(), Nb = C({
21868
21877
  type: R(["cross"]),
21869
21878
  width: w([_((t) => {
21870
21879
  if (!(t === "" || t === null || t === void 0))
@@ -21878,7 +21887,7 @@ const db = x({
21878
21887
  if (!(t === "" || t === null || t === void 0))
21879
21888
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
21880
21889
  }, A().gte(1).lte(500)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
21881
- }).strict(), kb = x({
21890
+ }).strict(), kb = C({
21882
21891
  type: R(["ellipse"]),
21883
21892
  radiusX: w([_((t) => {
21884
21893
  if (!(t === "" || t === null || t === void 0))
@@ -21888,13 +21897,13 @@ const db = x({
21888
21897
  if (!(t === "" || t === null || t === void 0))
21889
21898
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
21890
21899
  }, A().gte(1).lte(2048)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
21891
- }).strict(), Sb = x({
21900
+ }).strict(), Sb = C({
21892
21901
  type: R(["heart"]),
21893
21902
  size: w([_((t) => {
21894
21903
  if (!(t === "" || t === null || t === void 0))
21895
21904
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
21896
21905
  }, A().gte(1).lte(4096)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
21897
- }).strict(), Vb = x({
21906
+ }).strict(), Vb = C({
21898
21907
  type: R(["line"]),
21899
21908
  length: w([_((t) => {
21900
21909
  if (!(t === "" || t === null || t === void 0))
@@ -21904,10 +21913,10 @@ const db = x({
21904
21913
  if (!(t === "" || t === null || t === void 0))
21905
21914
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
21906
21915
  }, A().gte(1).lte(500)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
21907
- }).strict(), Ib = x({
21916
+ }).strict(), Ib = C({
21908
21917
  type: R(["path"]),
21909
21918
  d: p().min(1).max(1e5)
21910
- }).strict(), _b = x({
21919
+ }).strict(), _b = C({
21911
21920
  type: R(["polygon"]),
21912
21921
  sides: w([_((t) => {
21913
21922
  if (!(t === "" || t === null || t === void 0))
@@ -21917,7 +21926,7 @@ const db = x({
21917
21926
  if (!(t === "" || t === null || t === void 0))
21918
21927
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
21919
21928
  }, A().gte(1).lte(2048)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
21920
- }).strict(), Fb = x({
21929
+ }).strict(), Fb = C({
21921
21930
  type: R(["rectangle"]),
21922
21931
  width: w([_((t) => {
21923
21932
  if (!(t === "" || t === null || t === void 0))
@@ -21931,7 +21940,7 @@ const db = x({
21931
21940
  if (!(t === "" || t === null || t === void 0))
21932
21941
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
21933
21942
  }, A().gte(0).lte(2048)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(0)
21934
- }).strict(), Pb = x({
21943
+ }).strict(), Pb = C({
21935
21944
  type: R(["ring"]),
21936
21945
  outerRadius: w([_((t) => {
21937
21946
  if (!(t === "" || t === null || t === void 0))
@@ -21941,7 +21950,7 @@ const db = x({
21941
21950
  if (!(t === "" || t === null || t === void 0))
21942
21951
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
21943
21952
  }, A().gte(0).lte(2048)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
21944
- }).strict(), Eb = x({
21953
+ }).strict(), Eb = C({
21945
21954
  type: R(["star"]),
21946
21955
  points: w([_((t) => {
21947
21956
  if (!(t === "" || t === null || t === void 0))
@@ -21967,7 +21976,7 @@ const db = x({
21967
21976
  Nb,
21968
21977
  Pb,
21969
21978
  Ib
21970
- ]), If = x({
21979
+ ]), If = C({
21971
21980
  type: R(["svg"]),
21972
21981
  src: g(p().min(1).max(5e5)),
21973
21982
  shape: g(Tb),
@@ -22006,10 +22015,10 @@ const db = x({
22006
22015
  path: [r]
22007
22016
  });
22008
22017
  }
22009
- }), Ob = If, Mb = x({
22018
+ }), Ob = If, Mb = C({
22010
22019
  id: p(),
22011
22020
  merge: g(Ie(wf))
22012
- }).strict(), zb = x({
22021
+ }).strict(), zb = C({
22013
22022
  horizontal: g(R([
22014
22023
  "left",
22015
22024
  "center",
@@ -22020,13 +22029,13 @@ const db = x({
22020
22029
  "center",
22021
22030
  "bottom"
22022
22031
  ]))
22023
- }).strict(), Rb = x({
22032
+ }).strict(), Rb = C({
22024
22033
  preset: R(["typewriter"]),
22025
22034
  duration: g(w([_((t) => {
22026
22035
  if (!(t === "" || t === null || t === void 0))
22027
22036
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
22028
22037
  }, A().gte(0.1).lte(30)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
22029
- }).strict(), Db = x({
22038
+ }).strict(), Db = C({
22030
22039
  color: g(w([p().regex(/^#[A-Fa-f0-9]{6}$/), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
22031
22040
  opacity: g(w([_((t) => {
22032
22041
  if (!(t === "" || t === null || t === void 0))
@@ -22040,7 +22049,7 @@ const db = x({
22040
22049
  if (!(t === "" || t === null || t === void 0))
22041
22050
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
22042
22051
  }, A().gte(0)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
22043
- }).strict(), Bb = x({
22052
+ }).strict(), Bb = C({
22044
22053
  family: g(p()),
22045
22054
  color: g(p()),
22046
22055
  opacity: g(w([_((t) => {
@@ -22059,13 +22068,13 @@ const db = x({
22059
22068
  if (!(t === "" || t === null || t === void 0))
22060
22069
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
22061
22070
  }, A()), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
22062
- }).strict(), Lb = x({
22071
+ }).strict(), Lb = C({
22063
22072
  width: g(w([_((t) => {
22064
22073
  if (!(t === "" || t === null || t === void 0))
22065
22074
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
22066
22075
  }, A().gte(0).lte(10)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
22067
22076
  color: g(w([p().regex(/^#[A-Fa-f0-9]{6}$/), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
22068
- }).strict(), Zb = x({
22077
+ }).strict(), Zb = C({
22069
22078
  type: R(["text"]),
22070
22079
  text: p(),
22071
22080
  width: g(w([_((t) => {
@@ -22082,7 +22091,7 @@ const db = x({
22082
22091
  stroke: g(Lb),
22083
22092
  animation: g(Rb),
22084
22093
  ellipsis: g(p())
22085
- }).strict(), Ub = x({
22094
+ }).strict(), Ub = C({
22086
22095
  type: R(["text-to-image"]),
22087
22096
  prompt: p(),
22088
22097
  width: g(w([_((t) => {
@@ -22094,7 +22103,7 @@ const db = x({
22094
22103
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
22095
22104
  }, A().int()), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
22096
22105
  crop: g(Or)
22097
- }).strict(), Gb = x({
22106
+ }).strict(), Gb = C({
22098
22107
  capture: w([_((t) => {
22099
22108
  if (!(t === "" || t === null || t === void 0))
22100
22109
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
@@ -22103,7 +22112,7 @@ const db = x({
22103
22112
  if (!(t === "" || t === null || t === void 0))
22104
22113
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
22105
22114
  }, A().gte(0).lte(1)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
22106
- }).strict(), _f = x({
22115
+ }).strict(), _f = C({
22107
22116
  format: R([
22108
22117
  "mp4",
22109
22118
  "gif",
@@ -22162,7 +22171,7 @@ const db = x({
22162
22171
  poster: g(Ry),
22163
22172
  thumbnail: g(Gb),
22164
22173
  destinations: g(Ie(Mr))
22165
- }).strict(), zr = _f, Wb = x({
22174
+ }).strict(), zr = _f, Wb = C({
22166
22175
  in: g(R([
22167
22176
  "none",
22168
22177
  "fade",
@@ -22291,7 +22300,7 @@ const db = x({
22291
22300
  "shuffleTopLeftFast",
22292
22301
  "zoom"
22293
22302
  ]))
22294
- }).strict(), is = x({
22303
+ }).strict(), is = C({
22295
22304
  from: g(Xs()),
22296
22305
  to: g(Xs()),
22297
22306
  start: g(w([_((t) => {
@@ -22337,7 +22346,7 @@ const db = x({
22337
22346
  "easeInOutCirc",
22338
22347
  "easeInOutBack"
22339
22348
  ]))
22340
- }).strict(), Yb = x({
22349
+ }).strict(), Yb = C({
22341
22350
  type: R(["audio"]),
22342
22351
  src: p().min(1).regex(/\S/),
22343
22352
  trim: g(w([_((t) => {
@@ -22361,7 +22370,7 @@ const db = x({
22361
22370
  "fadeOut",
22362
22371
  "fadeInFadeOut"
22363
22372
  ]))
22364
- }).strict(), Ff = x({
22373
+ }).strict(), Ff = C({
22365
22374
  x: g(w([
22366
22375
  w([_((t) => {
22367
22376
  if (!(t === "" || t === null || t === void 0))
@@ -22376,7 +22385,7 @@ const db = x({
22376
22385
  }, A().gte(-10).lte(10)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
22377
22386
  Ie(is)
22378
22387
  ]))
22379
- }).strict(), Hb = x({
22388
+ }).strict(), Hb = C({
22380
22389
  angle: g(w([
22381
22390
  w([_((t) => {
22382
22391
  if (!(t === "" || t === null || t === void 0))
@@ -22384,7 +22393,7 @@ const db = x({
22384
22393
  }, A().gte(-360).lte(360)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
22385
22394
  Ie(is)
22386
22395
  ]))
22387
- }).strict(), Kb = x({
22396
+ }).strict(), Kb = C({
22388
22397
  x: g(w([
22389
22398
  w([_((t) => {
22390
22399
  if (!(t === "" || t === null || t === void 0))
@@ -22399,7 +22408,7 @@ const db = x({
22399
22408
  }, A().gte(-100).lte(100)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]),
22400
22409
  Ie(is)
22401
22410
  ]))
22402
- }).strict(), jb = x({
22411
+ }).strict(), jb = C({
22403
22412
  type: R(["text-to-speech"]),
22404
22413
  text: p(),
22405
22414
  voice: p(),
@@ -22426,7 +22435,7 @@ const db = x({
22426
22435
  "fadeOut",
22427
22436
  "fadeInFadeOut"
22428
22437
  ]))
22429
- }).strict(), Xb = x({
22438
+ }).strict(), Xb = C({
22430
22439
  type: R(["title"]),
22431
22440
  text: p(),
22432
22441
  style: g(R([
@@ -22464,11 +22473,11 @@ const db = x({
22464
22473
  "center"
22465
22474
  ])),
22466
22475
  offset: g(Ff)
22467
- }).strict(), qb = x({
22476
+ }).strict(), qb = C({
22468
22477
  rotate: g(Hb),
22469
22478
  skew: g(Kb),
22470
22479
  flip: g(xy)
22471
- }).strict(), Jb = x({
22480
+ }).strict(), Jb = C({
22472
22481
  type: R(["video"]),
22473
22482
  src: p().min(1).regex(/\S/),
22474
22483
  transcode: g(He()),
@@ -22511,7 +22520,7 @@ const db = x({
22511
22520
  Ub,
22512
22521
  ky,
22513
22522
  jb
22514
- ]), Pf = x({
22523
+ ]), Pf = C({
22515
22524
  asset: Qb,
22516
22525
  start: w([
22517
22526
  w([_((t) => {
@@ -22607,15 +22616,15 @@ const db = x({
22607
22616
  return a;
22608
22617
  }
22609
22618
  return t;
22610
- }), Ef = x({
22619
+ }), Ef = C({
22611
22620
  clips: Ie($b).min(1)
22612
- }).strict(), Tf = Ef, Of = x({
22621
+ }).strict(), Tf = Ef, Of = C({
22613
22622
  soundtrack: g(gb),
22614
22623
  background: g(p()),
22615
22624
  fonts: g(Ie(Cy)),
22616
22625
  tracks: Ie(Ef).min(1),
22617
22626
  cache: g(He())
22618
- }).strict(), ew = Of, hi = x({
22627
+ }).strict(), ew = Of, hi = C({
22619
22628
  timeline: Of,
22620
22629
  output: _f,
22621
22630
  merge: g(Ie(wf)),
@@ -22626,7 +22635,7 @@ const db = x({
22626
22635
  "s2",
22627
22636
  "a1"
22628
22637
  ]))
22629
- }).strict(), Ga = hi, tw = x({
22638
+ }).strict(), Ga = hi, tw = C({
22630
22639
  id: p(),
22631
22640
  owner: p(),
22632
22641
  plan: g(p()),
@@ -22661,147 +22670,147 @@ const db = x({
22661
22670
  created: g(p()),
22662
22671
  updated: g(p())
22663
22672
  }).strict();
22664
- x({
22673
+ C({
22665
22674
  success: He(),
22666
22675
  message: p(),
22667
22676
  response: tw
22668
22677
  }).strict();
22669
- const sw = x({
22678
+ const sw = C({
22670
22679
  id: p(),
22671
22680
  name: p(),
22672
22681
  owner: p(),
22673
22682
  template: hi
22674
22683
  }).strict();
22675
- x({
22684
+ C({
22676
22685
  success: He(),
22677
22686
  message: p(),
22678
22687
  response: sw
22679
22688
  }).strict();
22680
- const Mf = x({
22689
+ const Mf = C({
22681
22690
  name: p(),
22682
22691
  template: g(hi)
22683
22692
  }).strict();
22684
- x({
22693
+ C({
22685
22694
  body: hi,
22686
22695
  path: g(we()),
22687
22696
  query: g(we())
22688
22697
  }).strict();
22689
- x({
22698
+ C({
22690
22699
  body: g(we()),
22691
- path: x({
22700
+ path: C({
22692
22701
  id: w([p().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
22693
22702
  }),
22694
- query: g(x({
22703
+ query: g(C({
22695
22704
  data: g(He()),
22696
22705
  merged: g(He())
22697
22706
  }))
22698
22707
  }).strict();
22699
- x({
22708
+ C({
22700
22709
  body: g(we()),
22701
22710
  path: g(we()),
22702
22711
  query: g(we())
22703
22712
  }).strict();
22704
- x({
22713
+ C({
22705
22714
  body: Mf,
22706
22715
  path: g(we()),
22707
22716
  query: g(we())
22708
22717
  }).strict();
22709
- x({
22718
+ C({
22710
22719
  body: g(we()),
22711
- path: x({
22720
+ path: C({
22712
22721
  id: w([p().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
22713
22722
  }),
22714
22723
  query: g(we())
22715
22724
  }).strict();
22716
- x({
22725
+ C({
22717
22726
  body: g(we()),
22718
- path: x({
22727
+ path: C({
22719
22728
  id: w([p().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
22720
22729
  }),
22721
22730
  query: g(we())
22722
22731
  }).strict();
22723
- x({
22732
+ C({
22724
22733
  body: Mf,
22725
- path: x({
22734
+ path: C({
22726
22735
  id: w([p().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
22727
22736
  }),
22728
22737
  query: g(we())
22729
22738
  }).strict();
22730
- x({
22739
+ C({
22731
22740
  body: Mb,
22732
22741
  path: g(we()),
22733
22742
  query: g(we())
22734
22743
  }).strict();
22735
- x({
22744
+ C({
22736
22745
  body: g(we()),
22737
- path: x({
22746
+ path: C({
22738
22747
  url: p()
22739
22748
  }),
22740
22749
  query: g(we())
22741
22750
  }).strict();
22742
- x({
22751
+ C({
22743
22752
  body: g(we()),
22744
- path: x({
22753
+ path: C({
22745
22754
  id: w([p().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
22746
22755
  }),
22747
22756
  query: g(we())
22748
22757
  }).strict();
22749
- x({
22758
+ C({
22750
22759
  body: g(we()),
22751
- path: x({
22760
+ path: C({
22752
22761
  id: w([p().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
22753
22762
  }),
22754
22763
  query: g(we())
22755
22764
  }).strict();
22756
- x({
22765
+ C({
22757
22766
  body: g(we()),
22758
- path: x({
22767
+ path: C({
22759
22768
  id: w([p().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
22760
22769
  }),
22761
22770
  query: g(we())
22762
22771
  }).strict();
22763
- x({
22772
+ C({
22764
22773
  body: nb,
22765
22774
  path: g(we()),
22766
22775
  query: g(we())
22767
22776
  }).strict();
22768
- x({
22777
+ C({
22769
22778
  body: g(we()),
22770
22779
  path: g(we()),
22771
22780
  query: g(we())
22772
22781
  }).strict();
22773
- x({
22782
+ C({
22774
22783
  body: db,
22775
22784
  path: g(we()),
22776
22785
  query: g(we())
22777
22786
  }).strict();
22778
- x({
22787
+ C({
22779
22788
  body: g(we()),
22780
- path: x({
22789
+ path: C({
22781
22790
  id: w([p().regex(/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
22782
22791
  }),
22783
22792
  query: g(we())
22784
22793
  }).strict();
22785
- x({
22794
+ C({
22786
22795
  body: g(we()),
22787
- path: x({
22796
+ path: C({
22788
22797
  id: w([p().regex(/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
22789
22798
  }),
22790
22799
  query: g(we())
22791
22800
  }).strict();
22792
- x({
22801
+ C({
22793
22802
  body: g(we()),
22794
22803
  path: g(we()),
22795
22804
  query: g(we())
22796
22805
  }).strict();
22797
- x({
22806
+ C({
22798
22807
  body: ry,
22799
22808
  path: g(we()),
22800
22809
  query: g(we())
22801
22810
  }).strict();
22802
- x({
22811
+ C({
22803
22812
  body: g(we()),
22804
- path: x({
22813
+ path: C({
22805
22814
  id: w([p().regex(/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])
22806
22815
  }),
22807
22816
  query: g(we())
@@ -23857,11 +23866,11 @@ var qf = { exports: {} };
23857
23866
  r = function() {
23858
23867
  };
23859
23868
  }
23860
- function n(d, y, m, C, E) {
23861
- typeof y == "object" && (m = y.depth, C = y.prototype, E = y.includeNonEnumerable, y = y.circular);
23869
+ function n(d, y, m, x, P) {
23870
+ typeof y == "object" && (m = y.depth, x = y.prototype, P = y.includeNonEnumerable, y = y.circular);
23862
23871
  var F = [], N = [], v = typeof Buffer < "u";
23863
23872
  typeof y > "u" && (y = !0), typeof m > "u" && (m = 1 / 0);
23864
- function P(b, U) {
23873
+ function E(b, U) {
23865
23874
  if (b === null)
23866
23875
  return null;
23867
23876
  if (U === 0)
@@ -23876,9 +23885,9 @@ var qf = { exports: {} };
23876
23885
  else if (s(b, r))
23877
23886
  B = new r(function(be, G) {
23878
23887
  b.then(function(Y) {
23879
- be(P(Y, U - 1));
23888
+ be(E(Y, U - 1));
23880
23889
  }, function(Y) {
23881
- G(P(Y, U - 1));
23890
+ G(E(Y, U - 1));
23882
23891
  });
23883
23892
  });
23884
23893
  else if (n.__isArray(b))
@@ -23890,7 +23899,7 @@ var qf = { exports: {} };
23890
23899
  else {
23891
23900
  if (v && Buffer.isBuffer(b))
23892
23901
  return Buffer.allocUnsafe ? B = Buffer.allocUnsafe(b.length) : B = new Buffer(b.length), b.copy(B), B;
23893
- s(b, Error) ? B = Object.create(b) : typeof C > "u" ? (L = Object.getPrototypeOf(b), B = Object.create(L)) : (B = Object.create(C), L = C);
23902
+ s(b, Error) ? B = Object.create(b) : typeof x > "u" ? (L = Object.getPrototypeOf(b), B = Object.create(L)) : (B = Object.create(x), L = x);
23894
23903
  }
23895
23904
  if (y) {
23896
23905
  var J = F.indexOf(b);
@@ -23899,33 +23908,33 @@ var qf = { exports: {} };
23899
23908
  F.push(b), N.push(B);
23900
23909
  }
23901
23910
  s(b, a) && b.forEach(function(be, G) {
23902
- var Y = P(G, U - 1), W = P(be, U - 1);
23911
+ var Y = E(G, U - 1), W = E(be, U - 1);
23903
23912
  B.set(Y, W);
23904
23913
  }), s(b, i) && b.forEach(function(be) {
23905
- var G = P(be, U - 1);
23914
+ var G = E(be, U - 1);
23906
23915
  B.add(G);
23907
23916
  });
23908
23917
  for (var ee in b) {
23909
23918
  var te;
23910
- L && (te = Object.getOwnPropertyDescriptor(L, ee)), !(te && te.set == null) && (B[ee] = P(b[ee], U - 1));
23919
+ L && (te = Object.getOwnPropertyDescriptor(L, ee)), !(te && te.set == null) && (B[ee] = E(b[ee], U - 1));
23911
23920
  }
23912
23921
  if (Object.getOwnPropertySymbols)
23913
23922
  for (var ue = Object.getOwnPropertySymbols(b), ee = 0; ee < ue.length; ee++) {
23914
23923
  var re = ue[ee], Se = Object.getOwnPropertyDescriptor(b, re);
23915
- Se && !Se.enumerable && !E || (B[re] = P(b[re], U - 1), Se.enumerable || Object.defineProperty(B, re, {
23924
+ Se && !Se.enumerable && !P || (B[re] = E(b[re], U - 1), Se.enumerable || Object.defineProperty(B, re, {
23916
23925
  enumerable: !1
23917
23926
  }));
23918
23927
  }
23919
- if (E)
23928
+ if (P)
23920
23929
  for (var xe = Object.getOwnPropertyNames(b), ee = 0; ee < xe.length; ee++) {
23921
23930
  var Fe = xe[ee], Se = Object.getOwnPropertyDescriptor(b, Fe);
23922
- Se && Se.enumerable || (B[Fe] = P(b[Fe], U - 1), Object.defineProperty(B, Fe, {
23931
+ Se && Se.enumerable || (B[Fe] = E(b[Fe], U - 1), Object.defineProperty(B, Fe, {
23923
23932
  enumerable: !1
23924
23933
  }));
23925
23934
  }
23926
23935
  return B;
23927
23936
  }
23928
- return P(d, m);
23937
+ return E(d, m);
23929
23938
  }
23930
23939
  n.clonePrototype = function(y) {
23931
23940
  if (y === null)
@@ -24147,25 +24156,25 @@ function k1(t, e, s) {
24147
24156
  return e - s;
24148
24157
  }
24149
24158
  cr.BrotliBuildHuffmanTable = function(t, e, s, a, i) {
24150
- var r = e, n, o, l, c, f, h, d, y, m, C, E, F = new Int32Array(ca + 1), N = new Int32Array(ca + 1);
24151
- for (E = new Int32Array(i), l = 0; l < i; l++)
24159
+ var r = e, n, o, l, c, f, h, d, y, m, x, P, F = new Int32Array(ca + 1), N = new Int32Array(ca + 1);
24160
+ for (P = new Int32Array(i), l = 0; l < i; l++)
24152
24161
  F[a[l]]++;
24153
24162
  for (N[1] = 0, o = 1; o < ca; o++)
24154
24163
  N[o + 1] = N[o] + F[o];
24155
24164
  for (l = 0; l < i; l++)
24156
- a[l] !== 0 && (E[N[a[l]]++] = l);
24157
- if (y = s, m = 1 << y, C = m, N[ca] === 1) {
24158
- for (c = 0; c < C; ++c)
24159
- t[e + c] = new da(0, E[0] & 65535);
24160
- return C;
24165
+ a[l] !== 0 && (P[N[a[l]]++] = l);
24166
+ if (y = s, m = 1 << y, x = m, N[ca] === 1) {
24167
+ for (c = 0; c < x; ++c)
24168
+ t[e + c] = new da(0, P[0] & 65535);
24169
+ return x;
24161
24170
  }
24162
24171
  for (c = 0, l = 0, o = 1, f = 2; o <= s; ++o, f <<= 1)
24163
24172
  for (; F[o] > 0; --F[o])
24164
- n = new da(o & 255, E[l++] & 65535), Al(t, e + c, f, m, n), c = Cl(c, o);
24165
- for (d = C - 1, h = -1, o = s + 1, f = 2; o <= ca; ++o, f <<= 1)
24173
+ n = new da(o & 255, P[l++] & 65535), Al(t, e + c, f, m, n), c = Cl(c, o);
24174
+ for (d = x - 1, h = -1, o = s + 1, f = 2; o <= ca; ++o, f <<= 1)
24166
24175
  for (; F[o] > 0; --F[o])
24167
- (c & d) !== h && (e += m, y = k1(F, o, s), m = 1 << y, C += m, h = c & d, t[r + h] = new da(y + s & 255, e - r - h & 65535)), n = new da(o - s & 255, E[l++] & 65535), Al(t, e + (c >> s), f, m, n), c = Cl(c, o);
24168
- return C;
24176
+ (c & d) !== h && (e += m, y = k1(F, o, s), m = 1 << y, x += m, h = c & d, t[r + h] = new da(y + s & 255, e - r - h & 65535)), n = new da(o - s & 255, P[l++] & 65535), Al(t, e + (c >> s), f, m, n), c = Cl(c, o);
24177
+ return x;
24169
24178
  };
24170
24179
  var Vo = {};
24171
24180
  Vo.lookup = new Uint8Array([
@@ -26099,7 +26108,7 @@ var Da = {}, Nl;
26099
26108
  function S1() {
26100
26109
  if (Nl) return Da;
26101
26110
  Nl = 1;
26102
- var t = e0(), e = 0, s = 1, a = 2, i = 3, r = 4, n = 5, o = 6, l = 7, c = 8, f = 9, h = 10, d = 11, y = 12, m = 13, C = 14, E = 15, F = 16, N = 17, v = 18, P = 20;
26111
+ var t = e0(), e = 0, s = 1, a = 2, i = 3, r = 4, n = 5, o = 6, l = 7, c = 8, f = 9, h = 10, d = 11, y = 12, m = 13, x = 14, P = 15, F = 16, N = 17, v = 18, E = 20;
26103
26112
  function b(L, J, ee) {
26104
26113
  this.prefix = new Uint8Array(L.length), this.transform = J, this.suffix = new Uint8Array(ee.length);
26105
26114
  for (var te = 0; te < L.length; te++)
@@ -26135,7 +26144,7 @@ function S1() {
26135
26144
  new b("", i, ""),
26136
26145
  new b("", e, "]"),
26137
26146
  new b("", e, " for "),
26138
- new b("", C, ""),
26147
+ new b("", x, ""),
26139
26148
  new b("", a, ""),
26140
26149
  new b("", e, " a "),
26141
26150
  new b("", e, " that "),
@@ -26143,7 +26152,7 @@ function S1() {
26143
26152
  new b("", e, ". "),
26144
26153
  new b(".", e, ""),
26145
26154
  new b(" ", e, ", "),
26146
- new b("", E, ""),
26155
+ new b("", P, ""),
26147
26156
  new b("", e, " with "),
26148
26157
  new b("", e, "'"),
26149
26158
  new b("", e, " from "),
@@ -26164,7 +26173,7 @@ function S1() {
26164
26173
  new b("", e, ":"),
26165
26174
  new b(" ", e, ". "),
26166
26175
  new b("", e, "ed "),
26167
- new b("", P, ""),
26176
+ new b("", E, ""),
26168
26177
  new b("", v, ""),
26169
26178
  new b("", o, ""),
26170
26179
  new b("", e, "("),
@@ -26259,7 +26268,7 @@ var kl;
26259
26268
  function t0() {
26260
26269
  if (kl) return Ra;
26261
26270
  kl = 1;
26262
- var t = lr.BrotliInput, e = lr.BrotliOutput, s = C1, a = e0(), i = cr.HuffmanCode, r = cr.BrotliBuildHuffmanTable, n = Vo, o = Sa, l = S1(), c = 8, f = 16, h = 256, d = 704, y = 26, m = 6, C = 2, E = 8, F = 255, N = 1080, v = 18, P = new Uint8Array([
26271
+ var t = lr.BrotliInput, e = lr.BrotliOutput, s = C1, a = e0(), i = cr.HuffmanCode, r = cr.BrotliBuildHuffmanTable, n = Vo, o = Sa, l = S1(), c = 8, f = 16, h = 256, d = 704, y = 26, m = 6, x = 2, P = 8, F = 255, N = 1080, v = 18, E = new Uint8Array([
26263
26272
  1,
26264
26273
  2,
26265
26274
  3,
@@ -26377,10 +26386,10 @@ function t0() {
26377
26386
  }
26378
26387
  function re(H, z, M) {
26379
26388
  var O;
26380
- return M.fillBitWindow(), z += M.val_ >>> M.bit_pos_ & F, O = H[z].bits - E, O > 0 && (M.bit_pos_ += E, z += H[z].value, z += M.val_ >>> M.bit_pos_ & (1 << O) - 1), M.bit_pos_ += H[z].bits, H[z].value;
26389
+ return M.fillBitWindow(), z += M.val_ >>> M.bit_pos_ & F, O = H[z].bits - P, O > 0 && (M.bit_pos_ += P, z += H[z].value, z += M.val_ >>> M.bit_pos_ & (1 << O) - 1), M.bit_pos_ += H[z].bits, H[z].value;
26381
26390
  }
26382
26391
  function Se(H, z, M, O) {
26383
- for (var $ = 0, oe = c, ae = 0, ne = 0, ye = 32768, ie = [], X = 0; X < 32; X++)
26392
+ for (var $ = 0, oe = c, ae = 0, ne = 0, ye = 32768, ie = [], q = 0; q < 32; q++)
26384
26393
  ie.push(new i(0, 0));
26385
26394
  for (r(ie, 0, 5, H, v); $ < z && ye > 0; ) {
26386
26395
  var ve = 0, je;
@@ -26403,26 +26412,26 @@ function t0() {
26403
26412
  function xe(H, z, M, O) {
26404
26413
  var $ = 0, oe, ae = new Uint8Array(H);
26405
26414
  if (O.readMoreInput(), oe = O.readBits(2), oe === 1) {
26406
- for (var ne, ye = H - 1, ie = 0, X = new Int32Array(4), ve = O.readBits(2) + 1; ye; )
26415
+ for (var ne, ye = H - 1, ie = 0, q = new Int32Array(4), ve = O.readBits(2) + 1; ye; )
26407
26416
  ye >>= 1, ++ie;
26408
26417
  for (ne = 0; ne < ve; ++ne)
26409
- X[ne] = O.readBits(ie) % H, ae[X[ne]] = 2;
26410
- switch (ae[X[0]] = 1, ve) {
26418
+ q[ne] = O.readBits(ie) % H, ae[q[ne]] = 2;
26419
+ switch (ae[q[0]] = 1, ve) {
26411
26420
  case 1:
26412
26421
  break;
26413
26422
  case 3:
26414
- if (X[0] === X[1] || X[0] === X[2] || X[1] === X[2])
26423
+ if (q[0] === q[1] || q[0] === q[2] || q[1] === q[2])
26415
26424
  throw new Error("[ReadHuffmanCode] invalid symbols");
26416
26425
  break;
26417
26426
  case 2:
26418
- if (X[0] === X[1])
26427
+ if (q[0] === q[1])
26419
26428
  throw new Error("[ReadHuffmanCode] invalid symbols");
26420
- ae[X[1]] = 1;
26429
+ ae[q[1]] = 1;
26421
26430
  break;
26422
26431
  case 4:
26423
- if (X[0] === X[1] || X[0] === X[2] || X[0] === X[3] || X[1] === X[2] || X[1] === X[3] || X[2] === X[3])
26432
+ if (q[0] === q[1] || q[0] === q[2] || q[0] === q[3] || q[1] === q[2] || q[1] === q[3] || q[2] === q[3])
26424
26433
  throw new Error("[ReadHuffmanCode] invalid symbols");
26425
- O.readBits(1) ? (ae[X[2]] = 3, ae[X[3]] = 3) : ae[X[0]] = 2;
26434
+ O.readBits(1) ? (ae[q[2]] = 3, ae[q[3]] = 3) : ae[q[0]] = 2;
26426
26435
  break;
26427
26436
  }
26428
26437
  } else {
@@ -26445,14 +26454,14 @@ function t0() {
26445
26454
  new i(4, 5)
26446
26455
  ];
26447
26456
  for (ne = oe; ne < v && dt > 0; ++ne) {
26448
- var at = P[ne], bt = 0, kt;
26457
+ var at = E[ne], bt = 0, kt;
26449
26458
  O.fillBitWindow(), bt += O.val_ >>> O.bit_pos_ & 15, O.bit_pos_ += st[bt].bits, kt = st[bt].value, je[at] = kt, kt !== 0 && (dt -= 32 >> kt, ++Ge);
26450
26459
  }
26451
26460
  if (!(Ge === 1 || dt === 0))
26452
26461
  throw new Error("[ReadHuffmanCode] invalid num_codes or space");
26453
26462
  Se(je, H, ae, O);
26454
26463
  }
26455
- if ($ = r(z, M, E, ae, H), $ === 0)
26464
+ if ($ = r(z, M, P, ae, H), $ === 0)
26456
26465
  throw new Error("[ReadHuffmanCode] BuildHuffmanTable failed: ");
26457
26466
  return $;
26458
26467
  }
@@ -26498,7 +26507,7 @@ function t0() {
26498
26507
  if (z.readMoreInput(), ie = re(oe, 0, z), ie === 0)
26499
26508
  ye[ae] = 0, ++ae;
26500
26509
  else if (ie <= $)
26501
- for (var X = 1 + (1 << ie) + z.readBits(ie); --X; ) {
26510
+ for (var q = 1 + (1 << ie) + z.readBits(ie); --q; ) {
26502
26511
  if (ae >= H)
26503
26512
  throw new Error("[DecodeContextMap] i >= context_map_size");
26504
26513
  ye[ae] = 0, ++ae;
@@ -26509,8 +26518,8 @@ function t0() {
26509
26518
  return z.readBits(1) && Y(ye, H), M;
26510
26519
  }
26511
26520
  function de(H, z, M, O, $, oe, ae) {
26512
- var ne = M * 2, ye = M, ie = re(z, M * N, ae), X;
26513
- ie === 0 ? X = $[ne + (oe[ye] & 1)] : ie === 1 ? X = $[ne + (oe[ye] - 1 & 1)] + 1 : X = ie - 2, X >= H && (X -= H), O[M] = X, $[ne + (oe[ye] & 1)] = X, ++oe[ye];
26521
+ var ne = M * 2, ye = M, ie = re(z, M * N, ae), q;
26522
+ ie === 0 ? q = $[ne + (oe[ye] & 1)] : ie === 1 ? q = $[ne + (oe[ye] - 1 & 1)] + 1 : q = ie - 2, q >= H && (q -= H), O[M] = q, $[ne + (oe[ye] & 1)] = q, ++oe[ye];
26514
26523
  }
26515
26524
  function Ee(H, z, M, O, $, oe) {
26516
26525
  var ae = $ + 1, ne = M & $, ye = oe.pos_ & s.IBUF_MASK, ie;
@@ -26524,9 +26533,9 @@ function t0() {
26524
26533
  for (; oe.bit_pos_ < 32; )
26525
26534
  O[ne] = oe.val_ >>> oe.bit_pos_, oe.bit_pos_ += 8, ++ne, --z;
26526
26535
  if (ie = oe.bit_end_pos_ - oe.bit_pos_ >> 3, ye + ie > s.IBUF_MASK) {
26527
- for (var X = s.IBUF_MASK + 1 - ye, ve = 0; ve < X; ve++)
26536
+ for (var q = s.IBUF_MASK + 1 - ye, ve = 0; ve < q; ve++)
26528
26537
  O[ne + ve] = oe.buf_[ye + ve];
26529
- ie -= X, ne += X, z -= X, ye = 0;
26538
+ ie -= q, ne += q, z -= q, ye = 0;
26530
26539
  }
26531
26540
  for (var ve = 0; ve < ie; ve++)
26532
26541
  O[ne + ve] = oe.buf_[ye + ve];
@@ -26563,8 +26572,8 @@ function t0() {
26563
26572
  }
26564
26573
  Ra.BrotliDecompressBuffer = Pe;
26565
26574
  function ot(H, z) {
26566
- var M, O = 0, $ = 0, oe = 0, ae, ne = 0, ye, ie, X, ve, je = [16, 15, 11, 4], dt = 0, Ge = 0, st = 0, at = [new W(0, 0), new W(0, 0), new W(0, 0)], bt, kt, Ce, Xr = 128 + s.READ_SIZE;
26567
- Ce = new s(H), oe = J(Ce), ae = (1 << oe) - 16, ye = 1 << oe, ie = ye - 1, X = new Uint8Array(ye + Xr + a.maxDictionaryWordLength), ve = ye, bt = [], kt = [];
26575
+ var M, O = 0, $ = 0, oe = 0, ae, ne = 0, ye, ie, q, ve, je = [16, 15, 11, 4], dt = 0, Ge = 0, st = 0, at = [new W(0, 0), new W(0, 0), new W(0, 0)], bt, kt, Ce, Xr = 128 + s.READ_SIZE;
26576
+ Ce = new s(H), oe = J(Ce), ae = (1 << oe) - 16, ye = 1 << oe, ie = ye - 1, q = new Uint8Array(ye + Xr + a.maxDictionaryWordLength), ve = ye, bt = [], kt = [];
26568
26577
  for (var ta = 0; ta < 3 * N; ta++)
26569
26578
  bt[ta] = new i(0, 0), kt[ta] = new i(0, 0);
26570
26579
  for (; !$; ) {
@@ -26588,7 +26597,7 @@ function t0() {
26588
26597
  z,
26589
26598
  lt,
26590
26599
  O,
26591
- X,
26600
+ q,
26592
26601
  ie,
26593
26602
  Ce
26594
26603
  ), O += lt;
@@ -26600,7 +26609,7 @@ function t0() {
26600
26609
  Ce.readMoreInput(), bs[M] = Ce.readBits(2) << 1;
26601
26610
  var Ni = me(Pt[0] << m, Ce);
26602
26611
  xi = Ni.num_htrees, vi = Ni.context_map;
26603
- var qr = me(Pt[2] << C, Ce);
26612
+ var qr = me(Pt[2] << x, Ce);
26604
26613
  for (Fa = qr.num_htrees, Ci = qr.context_map, at[0] = new W(h, xi), at[1] = new W(d, Pt[1]), at[2] = new W(sa, Fa), M = 0; M < 3; ++M)
26605
26614
  at[M].decode(Ce);
26606
26615
  for (aa = 0, Pa = 0, Me = bs[Bt[0]], se = n.lookupOffsets[Me], _e = n.lookupOffsets[Me + 1], Ze = at[1].htrees[0]; lt > 0; ) {
@@ -26613,7 +26622,7 @@ function t0() {
26613
26622
  os,
26614
26623
  Os,
26615
26624
  Ce
26616
- ), zt[1] = Fe(kt, N, Ce), Ze = at[1].htrees[Bt[1]]), --zt[1], ki = re(at[1].codes, Ze, Ce), Ea = ki >> 6, Ea >= 2 ? (Ea -= 2, Tt = -1) : Tt = 0, Jr = o.kInsertRangeLut[Ea] + (ki >> 3 & 7), Qr = o.kCopyRangeLut[Ea] + (ki & 7), $r = o.kInsertLengthPrefixCode[Jr].offset + Ce.readBits(o.kInsertLengthPrefixCode[Jr].nbits), St = o.kCopyLengthPrefixCode[Qr].offset + Ce.readBits(o.kCopyLengthPrefixCode[Qr].nbits), Ge = X[O - 1 & ie], st = X[O - 2 & ie], na = 0; na < $r; ++na)
26625
+ ), zt[1] = Fe(kt, N, Ce), Ze = at[1].htrees[Bt[1]]), --zt[1], ki = re(at[1].codes, Ze, Ce), Ea = ki >> 6, Ea >= 2 ? (Ea -= 2, Tt = -1) : Tt = 0, Jr = o.kInsertRangeLut[Ea] + (ki >> 3 & 7), Qr = o.kCopyRangeLut[Ea] + (ki & 7), $r = o.kInsertLengthPrefixCode[Jr].offset + Ce.readBits(o.kInsertLengthPrefixCode[Jr].nbits), St = o.kCopyLengthPrefixCode[Qr].offset + Ce.readBits(o.kCopyLengthPrefixCode[Qr].nbits), Ge = q[O - 1 & ie], st = q[O - 2 & ie], na = 0; na < $r; ++na)
26617
26626
  Ce.readMoreInput(), zt[0] === 0 && (de(
26618
26627
  Pt[0],
26619
26628
  bt,
@@ -26622,7 +26631,7 @@ function t0() {
26622
26631
  os,
26623
26632
  Os,
26624
26633
  Ce
26625
- ), zt[0] = Fe(kt, 0, Ce), Ai = Bt[0] << m, aa = Ai, Me = bs[Bt[0]], se = n.lookupOffsets[Me], _e = n.lookupOffsets[Me + 1]), Ta = n.lookup[se + Ge] | n.lookup[_e + st], Lt = vi[aa + Ta], --zt[0], st = Ge, Ge = re(at[0].codes, at[0].htrees[Lt], Ce), X[O & ie] = Ge, (O & ie) === ie && z.write(X, ye), ++O;
26634
+ ), zt[0] = Fe(kt, 0, Ce), Ai = Bt[0] << m, aa = Ai, Me = bs[Bt[0]], se = n.lookupOffsets[Me], _e = n.lookupOffsets[Me + 1]), Ta = n.lookup[se + Ge] | n.lookup[_e + st], Lt = vi[aa + Ta], --zt[0], st = Ge, Ge = re(at[0].codes, at[0].htrees[Lt], Ce), q[O & ie] = Ge, (O & ie) === ie && z.write(q, ye), ++O;
26626
26635
  if (lt -= $r, lt <= 0) break;
26627
26636
  if (Tt < 0) {
26628
26637
  var Ta;
@@ -26634,7 +26643,7 @@ function t0() {
26634
26643
  os,
26635
26644
  Os,
26636
26645
  Ce
26637
- ), zt[2] = Fe(kt, 2 * N, Ce), ia = Bt[2] << C, Pa = ia), --zt[2], Ta = (St > 4 ? 3 : St - 2) & 255, k = Ci[Pa + Ta], Tt = re(at[2].codes, at[2].htrees[k], Ce), Tt >= Et) {
26646
+ ), zt[2] = Fe(kt, 2 * N, Ce), ia = Bt[2] << x, Pa = ia), --zt[2], Ta = (St > 4 ? 3 : St - 2) & 255, k = Ci[Pa + Ta], Tt = re(at[2].codes, at[2].htrees[k], Ce), Tt >= Et) {
26638
26647
  var en, Ro, Ma;
26639
26648
  Tt -= Et, Ro = Tt & wi, Tt >>= ys, en = (Tt >> 1) + 1, Ma = (2 + (Tt & 1) << en) - 4, Tt = Et + (Ma + Ce.readBits(en) << ys) + Ro;
26640
26649
  }
@@ -26645,11 +26654,11 @@ function t0() {
26645
26654
  if (St >= a.minDictionaryWordLength && St <= a.maxDictionaryWordLength) {
26646
26655
  var Ma = a.offsetsByLength[St], Do = ls - ne - 1, Bo = a.sizeBitsByLength[St], $0 = (1 << Bo) - 1, eu = Do & $0, Lo = Do >> Bo;
26647
26656
  if (Ma += eu * St, Lo < l.kNumTransforms) {
26648
- var tn = l.transformDictionaryWord(X, Oa, Ma, St, Lo);
26657
+ var tn = l.transformDictionaryWord(q, Oa, Ma, St, Lo);
26649
26658
  if (Oa += tn, O += tn, lt -= tn, Oa >= ve) {
26650
- z.write(X, ye);
26659
+ z.write(q, ye);
26651
26660
  for (var Si = 0; Si < Oa - ve; Si++)
26652
- X[Si] = X[ve + Si];
26661
+ q[Si] = q[ve + Si];
26653
26662
  }
26654
26663
  } else
26655
26664
  throw new Error("Invalid backward reference. pos: " + O + " distance: " + ls + " len: " + St + " bytes left: " + lt);
@@ -26659,14 +26668,14 @@ function t0() {
26659
26668
  if (Tt > 0 && (je[dt & 3] = ls, ++dt), St > lt)
26660
26669
  throw new Error("Invalid backward reference. pos: " + O + " distance: " + ls + " len: " + St + " bytes left: " + lt);
26661
26670
  for (na = 0; na < St; ++na)
26662
- X[O & ie] = X[O - ls & ie], (O & ie) === ie && z.write(X, ye), ++O, --lt;
26671
+ q[O & ie] = q[O - ls & ie], (O & ie) === ie && z.write(q, ye), ++O, --lt;
26663
26672
  }
26664
- Ge = X[O - 1 & ie], st = X[O - 2 & ie];
26673
+ Ge = q[O - 1 & ie], st = q[O - 2 & ie];
26665
26674
  }
26666
26675
  O &= 1073741823;
26667
26676
  }
26668
26677
  }
26669
- z.write(X, O & ie);
26678
+ z.write(q, O & ie);
26670
26679
  }
26671
26680
  return Ra.BrotliDecompress = ot, a.init(), Ra;
26672
26681
  }
@@ -32826,10 +32835,10 @@ class S0 {
32826
32835
  f.unshift(...this.glyphs[d].codePoints);
32827
32836
  let y = i.getItem(o++);
32828
32837
  l = !!(y & n3);
32829
- let m = !!(y & o3), C = (y & l3) << 2 >> 2;
32830
- C += this.glyphs[d].id;
32831
- let E = r.getItem(C);
32832
- if (c += E, l || m) {
32838
+ let m = !!(y & o3), x = (y & l3) << 2 >> 2;
32839
+ x += this.glyphs[d].id;
32840
+ let P = r.getItem(x);
32841
+ if (c += P, l || m) {
32833
32842
  let F = n.getItem(c);
32834
32843
  this.glyphs[d] = this.font.getGlyph(F, f), h.push(d), c = 0, f = [];
32835
32844
  } else this.glyphs[d] = this.font.getGlyph(65535);
@@ -32900,7 +32909,7 @@ class S0 {
32900
32909
  let h = 0, d = 0;
32901
32910
  for (let y = 0; y < c.length && h <= 1; y++) c[y].id !== 65535 && (h++, d = c[y].id);
32902
32911
  if (h === 1) {
32903
- let y = r.map((C) => C.id), m = this.inputCache[d];
32912
+ let y = r.map((x) => x.id), m = this.inputCache[d];
32904
32913
  m ? m.push(y) : this.inputCache[d] = [
32905
32914
  y
32906
32915
  ];
@@ -34229,9 +34238,9 @@ function tx(t, e, s) {
34229
34238
  9676
34230
34239
  ]);
34231
34240
  v.shaperInfo = new Yi(1 << qn(v), O0(v), e[o].shaperInfo.syllableType, e[o].shaperInfo.syllable);
34232
- let P = o;
34233
- for (; P < l && e[P].shaperInfo.category === ke.Repha; ) P++;
34234
- e.splice(P++, 0, v), l++;
34241
+ let E = o;
34242
+ for (; E < l && e[E].shaperInfo.category === ke.Repha; ) E++;
34243
+ e.splice(E++, 0, v), l++;
34235
34244
  }
34236
34245
  let h = l, d = o, y = !1;
34237
34246
  if (a.rephPos !== fe.Ra_To_Become_Reph && i.rphf && o + 3 <= l && (a.rephMode === "Implicit" && !$t(e[o + 2]) || a.rephMode === "Explicit" && e[o + 2].shaperInfo.category === ke.ZWJ)) {
@@ -34250,15 +34259,15 @@ function tx(t, e, s) {
34250
34259
  }
34251
34260
  switch (a.basePos) {
34252
34261
  case "Last": {
34253
- let v = l, P = !1;
34262
+ let v = l, E = !1;
34254
34263
  do {
34255
34264
  let b = e[--v].shaperInfo;
34256
34265
  if (Ds(e[v])) {
34257
- if (b.position !== fe.Below_C && (b.position !== fe.Post_C || P)) {
34266
+ if (b.position !== fe.Below_C && (b.position !== fe.Post_C || E)) {
34258
34267
  h = v;
34259
34268
  break;
34260
34269
  }
34261
- b.position === fe.Below_C && (P = !0), h = v;
34270
+ b.position === fe.Below_C && (E = !0), h = v;
34262
34271
  } else if (o < v && b.category === ke.ZWJ && e[v - 1].shaperInfo.category === ke.H) break;
34263
34272
  } while (v > d);
34264
34273
  break;
@@ -34269,50 +34278,50 @@ function tx(t, e, s) {
34269
34278
  }
34270
34279
  y && h === o && d - h <= 2 && (y = !1);
34271
34280
  for (let v = o; v < h; v++) {
34272
- let P = e[v].shaperInfo;
34273
- P.position = Math.min(fe.Pre_C, P.position);
34281
+ let E = e[v].shaperInfo;
34282
+ E.position = Math.min(fe.Pre_C, E.position);
34274
34283
  }
34275
34284
  h < l && (e[h].shaperInfo.position = fe.Base_C);
34276
34285
  for (let v = h + 1; v < l; v++) if (e[v].shaperInfo.category === ke.M) {
34277
- for (let P = v + 1; P < l; P++) if (Ds(e[P])) {
34278
- e[P].shaperInfo.position = fe.Final_C;
34286
+ for (let E = v + 1; E < l; E++) if (Ds(e[E])) {
34287
+ e[E].shaperInfo.position = fe.Final_C;
34279
34288
  break;
34280
34289
  }
34281
34290
  break;
34282
34291
  }
34283
34292
  if (y && (e[o].shaperInfo.position = fe.Ra_To_Become_Reph), s.isOldSpec) {
34284
34293
  let v = s.unicodeScript !== "Malayalam";
34285
- for (let P = h + 1; P < l; P++) if (e[P].shaperInfo.category === ke.H) {
34294
+ for (let E = h + 1; E < l; E++) if (e[E].shaperInfo.category === ke.H) {
34286
34295
  let b;
34287
- for (b = l - 1; b > P && !(Ds(e[b]) || v && e[b].shaperInfo.category === ke.H); b--)
34296
+ for (b = l - 1; b > E && !(Ds(e[b]) || v && e[b].shaperInfo.category === ke.H); b--)
34288
34297
  ;
34289
- if (e[b].shaperInfo.category !== ke.H && b > P) {
34290
- let U = e[P];
34291
- e.splice(P, 0, ...e.splice(P + 1, b - P)), e[b] = U;
34298
+ if (e[b].shaperInfo.category !== ke.H && b > E) {
34299
+ let U = e[E];
34300
+ e.splice(E, 0, ...e.splice(E + 1, b - E)), e[b] = U;
34292
34301
  }
34293
34302
  break;
34294
34303
  }
34295
34304
  }
34296
34305
  let m = fe.Start;
34297
34306
  for (let v = o; v < l; v++) {
34298
- let P = e[v].shaperInfo;
34299
- if (P.category & (E0 | ke.N | ke.RS | ke.CM | qa & P.category)) {
34300
- if (P.position = m, P.category === ke.H && P.position === fe.Pre_M) {
34307
+ let E = e[v].shaperInfo;
34308
+ if (E.category & (E0 | ke.N | ke.RS | ke.CM | qa & E.category)) {
34309
+ if (E.position = m, E.category === ke.H && E.position === fe.Pre_M) {
34301
34310
  for (let b = v; b > o; b--) if (e[b - 1].shaperInfo.position !== fe.Pre_M) {
34302
- P.position = e[b - 1].shaperInfo.position;
34311
+ E.position = e[b - 1].shaperInfo.position;
34303
34312
  break;
34304
34313
  }
34305
34314
  }
34306
- } else P.position !== fe.SMVD && (m = P.position);
34315
+ } else E.position !== fe.SMVD && (m = E.position);
34307
34316
  }
34308
- let C = h;
34317
+ let x = h;
34309
34318
  for (let v = h + 1; v < l; v++)
34310
34319
  if (Ds(e[v])) {
34311
- for (let P = C + 1; P < v; P++) e[P].shaperInfo.position < fe.SMVD && (e[P].shaperInfo.position = e[v].shaperInfo.position);
34312
- C = v;
34313
- } else e[v].shaperInfo.category === ke.M && (C = v);
34314
- let E = e.slice(o, l);
34315
- E.sort((v, P) => v.shaperInfo.position - P.shaperInfo.position), e.splice(o, E.length, ...E);
34320
+ for (let E = x + 1; E < v; E++) e[E].shaperInfo.position < fe.SMVD && (e[E].shaperInfo.position = e[v].shaperInfo.position);
34321
+ x = v;
34322
+ } else e[v].shaperInfo.category === ke.M && (x = v);
34323
+ let P = e.slice(o, l);
34324
+ P.sort((v, E) => v.shaperInfo.position - E.shaperInfo.position), e.splice(o, P.length, ...P);
34316
34325
  for (let v = o; v < l; v++) if (e[v].shaperInfo.position === fe.Base_C) {
34317
34326
  h = v;
34318
34327
  break;
@@ -34328,20 +34337,20 @@ function tx(t, e, s) {
34328
34337
  let N = 2;
34329
34338
  if (i.pref && h + N < l)
34330
34339
  for (let v = h + 1; v + N - 1 < l; v++) {
34331
- let P = [
34340
+ let E = [
34332
34341
  e[v].copy(),
34333
34342
  e[v + 1].copy()
34334
34343
  ];
34335
- if (hs(P, "pref")) {
34344
+ if (hs(E, "pref")) {
34336
34345
  for (let b = 0; b < N; b++) e[v++].features.pref = !0;
34337
34346
  if (i.cfar) for (; v < l; v++) e[v].features.cfar = !0;
34338
34347
  break;
34339
34348
  }
34340
34349
  }
34341
34350
  for (let v = o + 1; v < l; v++) if ($t(e[v])) {
34342
- let P = e[v].shaperInfo.category === ke.ZWNJ, b = v;
34351
+ let E = e[v].shaperInfo.category === ke.ZWNJ, b = v;
34343
34352
  do
34344
- b--, P && delete e[b].features.half;
34353
+ b--, E && delete e[b].features.half;
34345
34354
  while (b > o && !Ds(e[b]));
34346
34355
  }
34347
34356
  }
@@ -34682,26 +34691,26 @@ class dx extends pr {
34682
34691
  let n = this.sequenceMatchIndices(1, r.components);
34683
34692
  if (!n) continue;
34684
34693
  let o = this.glyphIterator.cur, l = o.codePoints.slice();
34685
- for (let C of n) l.push(...this.glyphs[C].codePoints);
34694
+ for (let x of n) l.push(...this.glyphs[x].codePoints);
34686
34695
  let c = new Ht(this.font, r.glyph, l, o.features);
34687
34696
  c.shaperInfo = o.shaperInfo, c.isLigated = !0, c.substituted = !0;
34688
34697
  let f = o.isMark;
34689
- for (let C = 0; C < n.length && f; C++) f = this.glyphs[n[C]].isMark;
34698
+ for (let x = 0; x < n.length && f; x++) f = this.glyphs[n[x]].isMark;
34690
34699
  c.ligatureID = f ? null : this.ligatureID++;
34691
34700
  let h = o.ligatureID, d = o.codePoints.length, y = d, m = this.glyphIterator.index + 1;
34692
- for (let C of n) {
34693
- if (f) m = C;
34694
- else for (; m < C; ) {
34701
+ for (let x of n) {
34702
+ if (f) m = x;
34703
+ else for (; m < x; ) {
34695
34704
  var a = y - d + Math.min(this.glyphs[m].ligatureComponent || 1, d);
34696
34705
  this.glyphs[m].ligatureID = c.ligatureID, this.glyphs[m].ligatureComponent = a, m++;
34697
34706
  }
34698
34707
  h = this.glyphs[m].ligatureID, d = this.glyphs[m].codePoints.length, y += d, m++;
34699
34708
  }
34700
- if (h && !f) for (let C = m; C < this.glyphs.length && this.glyphs[C].ligatureID === h; C++) {
34701
- var a = y - d + Math.min(this.glyphs[C].ligatureComponent || 1, d);
34702
- this.glyphs[C].ligatureComponent = a;
34709
+ if (h && !f) for (let x = m; x < this.glyphs.length && this.glyphs[x].ligatureID === h; x++) {
34710
+ var a = y - d + Math.min(this.glyphs[x].ligatureComponent || 1, d);
34711
+ this.glyphs[x].ligatureComponent = a;
34703
34712
  }
34704
- for (let C = n.length - 1; C >= 0; C--) this.glyphs.splice(n[C], 1);
34713
+ for (let x = n.length - 1; x >= 0; x--) this.glyphs.splice(n[x], 1);
34705
34714
  return this.glyphs[this.glyphIterator.index] = c, !0;
34706
34715
  }
34707
34716
  return !1;
@@ -35011,12 +35020,12 @@ class Ia {
35011
35020
  */
35012
35021
  get bbox() {
35013
35022
  if (this._bbox) return this._bbox;
35014
- let e = new _s(), s = 0, a = 0, i = (N) => Math.pow(1 - N, 3) * y[F] + 3 * Math.pow(1 - N, 2) * N * m[F] + 3 * (1 - N) * Math.pow(N, 2) * C[F] + Math.pow(N, 3) * E[F];
35023
+ let e = new _s(), s = 0, a = 0, i = (N) => Math.pow(1 - N, 3) * y[F] + 3 * Math.pow(1 - N, 2) * N * m[F] + 3 * (1 - N) * Math.pow(N, 2) * x[F] + Math.pow(N, 3) * P[F];
35015
35024
  for (let N of this.commands) switch (N.command) {
35016
35025
  case "moveTo":
35017
35026
  case "lineTo":
35018
- let [v, P] = N.args;
35019
- e.addPoint(v, P), s = v, a = P;
35027
+ let [v, E] = N.args;
35028
+ e.addPoint(v, E), s = v, a = E;
35020
35029
  break;
35021
35030
  case "quadraticCurveTo":
35022
35031
  case "bezierCurveTo":
@@ -35030,14 +35039,14 @@ class Ia {
35030
35039
  ], m = [
35031
35040
  o,
35032
35041
  l
35033
- ], C = [
35042
+ ], x = [
35034
35043
  c,
35035
35044
  f
35036
- ], E = [
35045
+ ], P = [
35037
35046
  h,
35038
35047
  d
35039
35048
  ], F = 0; F <= 1; F++) {
35040
- let b = 6 * y[F] - 12 * m[F] + 6 * C[F], U = -3 * y[F] + 9 * m[F] - 9 * C[F] + 3 * E[F];
35049
+ let b = 6 * y[F] - 12 * m[F] + 6 * x[F], U = -3 * y[F] + 9 * m[F] - 9 * x[F] + 3 * P[F];
35041
35050
  if (N = 3 * m[F] - 3 * y[F], U === 0) {
35042
35051
  if (b === 0) continue;
35043
35052
  let ee = -N / b;
@@ -35721,7 +35730,7 @@ class Fx extends ns {
35721
35730
  s.pos = a.offset;
35722
35731
  let r = new Ia(), n = [], o = [], l = null, c = 0, f = 0, h = 0, d, y, m = !1;
35723
35732
  this._usedGsubrs = d = {}, this._usedSubrs = y = {};
35724
- let C = e.globalSubrIndex || [], E = this.bias(C), F = e.privateDictForGlyph(this.id) || {}, N = F.Subrs || [], v = this.bias(N), P = e.topDict.vstore && e.topDict.vstore.itemVariationStore, b = F.vsindex, U = this._font._variationProcessor;
35733
+ let x = e.globalSubrIndex || [], P = this.bias(x), F = e.privateDictForGlyph(this.id) || {}, N = F.Subrs || [], v = this.bias(N), E = e.topDict.vstore && e.topDict.vstore.itemVariationStore, b = F.vsindex, U = this._font._variationProcessor;
35725
35734
  function B() {
35726
35735
  l == null && (l = n.shift() + F.nominalWidthX);
35727
35736
  }
@@ -35780,7 +35789,7 @@ class Fx extends ns {
35780
35789
  case 16: {
35781
35790
  if (e.version < 2) throw new Error("blend operator not supported in CFF v1");
35782
35791
  if (!U) throw new Error("blend operator in non-variation font");
35783
- let M = U.getBlendVector(P, b), O = n.pop(), $ = O * M.length, oe = n.length - $, ae = oe - O;
35792
+ let M = U.getBlendVector(E, b), O = n.pop(), $ = O * M.length, oe = n.length - $, ae = oe - O;
35784
35793
  for (let ne = 0; ne < O; ne++) {
35785
35794
  let ye = n[ae + ne];
35786
35795
  for (let ie = 0; ie < M.length; ie++) ye += M[ie] * n[oe++];
@@ -35821,7 +35830,7 @@ class Fx extends ns {
35821
35830
  n.push(s.readInt16BE());
35822
35831
  break;
35823
35832
  case 29:
35824
- if (Se = n.pop() + E, xe = C[Se], xe) {
35833
+ if (Se = n.pop() + P, xe = x[Se], xe) {
35825
35834
  d[Se] = !0;
35826
35835
  let M = s.pos, O = i;
35827
35836
  s.pos = xe.offset, i = xe.offset + xe.length, ee(), s.pos = M, i = O;
@@ -35895,16 +35904,16 @@ class Fx extends ns {
35895
35904
  oe = n.pop(), oe < 0 ? oe = 0 : oe > n.length - 1 && (oe = n.length - 1), n.push(n[oe]);
35896
35905
  break;
35897
35906
  case 30:
35898
- let X = n.pop(), ve = n.pop();
35907
+ let q = n.pop(), ve = n.pop();
35899
35908
  if (ve >= 0) for (; ve > 0; ) {
35900
- var te = n[X - 1];
35901
- for (let Ge = X - 2; Ge >= 0; Ge--) n[Ge + 1] = n[Ge];
35909
+ var te = n[q - 1];
35910
+ for (let Ge = q - 2; Ge >= 0; Ge--) n[Ge + 1] = n[Ge];
35902
35911
  n[0] = te, ve--;
35903
35912
  }
35904
35913
  else for (; ve < 0; ) {
35905
35914
  var te = n[0];
35906
- for (let st = 0; st <= X; st++) n[st] = n[st + 1];
35907
- n[X - 1] = te, ve++;
35915
+ for (let st = 0; st <= q; st++) n[st] = n[st + 1];
35916
+ n[q - 1] = te, ve++;
35908
35917
  }
35909
35918
  break;
35910
35919
  case 34:
@@ -36087,9 +36096,9 @@ class Zx {
36087
36096
  var c = this.decodePoints();
36088
36097
  o = r.pos, r.pos = l;
36089
36098
  }
36090
- let f = s.map((E) => E.copy());
36099
+ let f = s.map((P) => P.copy());
36091
36100
  n &= Mx;
36092
- for (let E = 0; E < n; E++) {
36101
+ for (let P = 0; P < n; P++) {
36093
36102
  let F = r.readUInt16BE(), N = r.readUInt16BE();
36094
36103
  if (N & zx) {
36095
36104
  var h = [];
@@ -36114,8 +36123,8 @@ class Zx {
36114
36123
  else var m = c;
36115
36124
  let b = m.length === 0 ? s.length : m.length, U = this.decodeDeltas(b), B = this.decodeDeltas(b);
36116
36125
  if (m.length === 0) for (let L = 0; L < s.length; L++) {
36117
- var C = s[L];
36118
- C.x += Math.round(U[L] * v), C.y += Math.round(B[L] * v);
36126
+ var x = s[L];
36127
+ x.x += Math.round(U[L] * v), x.y += Math.round(B[L] * v);
36119
36128
  }
36120
36129
  else {
36121
36130
  let L = f.map((ee) => ee.copy()), J = s.map(() => !1);
@@ -36204,10 +36213,10 @@ class Zx {
36204
36213
  }
36205
36214
  let h = r[a][f], d = r[i][f], y = n[a][f], m = n[i][f];
36206
36215
  if (h !== d || y === m) {
36207
- let C = h === d ? 0 : (m - y) / (d - h);
36208
- for (let E = e; E <= s; E++) {
36209
- let F = r[E][f];
36210
- F <= h ? F += y - h : F >= d ? F += m - d : F = y + (F - h) * C, n[E][f] = F;
36216
+ let x = h === d ? 0 : (m - y) / (d - h);
36217
+ for (let P = e; P <= s; P++) {
36218
+ let F = r[P][f];
36219
+ F <= h ? F += y - h : F >= d ? F += m - d : F = y + (F - h) * x, n[P][f] = F;
36211
36220
  }
36212
36221
  }
36213
36222
  }
@@ -36290,15 +36299,15 @@ class jx {
36290
36299
  for (let F = 0; F < e.commands.length; F++) {
36291
36300
  let N = e.commands[F];
36292
36301
  for (let v = 0; v < N.args.length; v += 2) {
36293
- let P = N.args[v], b = N.args[v + 1], U = 0;
36302
+ let E = N.args[v], b = N.args[v + 1], U = 0;
36294
36303
  if (N.command === "quadraticCurveTo" && v === 2) {
36295
36304
  let B = e.commands[F + 1];
36296
36305
  if (B && B.command === "quadraticCurveTo") {
36297
36306
  let L = (l + B.args[0]) / 2, J = (c + B.args[1]) / 2;
36298
- if (P === L && b === J) continue;
36307
+ if (E === L && b === J) continue;
36299
36308
  }
36300
36309
  }
36301
- N.command === "quadraticCurveTo" && v === 0 || (U |= Ux), U = this._encodePoint(P, l, i, U, Gx, Hx), U = this._encodePoint(b, c, r, U, Wx, Kx), U === f && o < 255 ? (n[n.length - 1] |= Yx, o++) : (o > 0 && (n.push(o), o = 0), n.push(U), f = U), l = P, c = b, h++;
36310
+ N.command === "quadraticCurveTo" && v === 0 || (U |= Ux), U = this._encodePoint(E, l, i, U, Gx, Hx), U = this._encodePoint(b, c, r, U, Wx, Kx), U === f && o < 255 ? (n[n.length - 1] |= Yx, o++) : (o > 0 && (n.push(o), o = 0), n.push(U), f = U), l = E, c = b, h++;
36302
36311
  }
36303
36312
  N.command === "closePath" && a.push(h - 1);
36304
36313
  }
@@ -36314,8 +36323,8 @@ class jx {
36314
36323
  flags: n,
36315
36324
  xPoints: i,
36316
36325
  yPoints: r
36317
- }, m = dc.size(y), C = 4 - m % 4, E = new nr(m + C);
36318
- return dc.encode(E, y), C !== 0 && E.fill(0, C), E.buffer;
36326
+ }, m = dc.size(y), x = 4 - m % 4, P = new nr(m + x);
36327
+ return dc.encode(P, y), x !== 0 && P.fill(0, x), P.buffer;
36319
36328
  }
36320
36329
  _encodePoint(e, s, a, i, r, n) {
36321
36330
  let o = e - s;
@@ -37293,20 +37302,20 @@ var ht = {
37293
37302
  "ascend",
37294
37303
  "movingLetters"
37295
37304
  ]
37296
- }, qs = /^#[A-Fa-f0-9]{6}$/, bC = x({
37305
+ }, qs = /^#[A-Fa-f0-9]{6}$/, bC = C({
37297
37306
  src: p().url(),
37298
37307
  family: p(),
37299
37308
  weight: w([p(), A()]).optional(),
37300
37309
  style: p().optional(),
37301
37310
  originalFamily: p().optional()
37302
- }), wC = x({
37311
+ }), wC = C({
37303
37312
  width: A().min(0).default(0),
37304
37313
  color: p().regex(qs).default("#000000"),
37305
37314
  opacity: A().min(0).max(1).default(1),
37306
37315
  radius: A().min(0).default(0)
37307
37316
  }), vC = w([
37308
37317
  A().min(0),
37309
- x({
37318
+ C({
37310
37319
  top: A().min(0).default(0),
37311
37320
  right: A().min(0).default(0),
37312
37321
  bottom: A().min(0).default(0),
@@ -37319,10 +37328,10 @@ var ht = {
37319
37328
  color: p().regex(qs).default(ht.DEFAULTS.color),
37320
37329
  opacity: A().min(0).max(1).default(1),
37321
37330
  background: p().regex(qs).optional()
37322
- }), CC = x({
37331
+ }), CC = C({
37323
37332
  type: R(["linear", "radial"]).default("linear"),
37324
37333
  angle: A().min(0).max(360).default(0),
37325
- stops: Ie(x({
37334
+ stops: Ie(C({
37326
37335
  offset: A().min(0).max(1),
37327
37336
  color: p().regex(qs)
37328
37337
  })).min(2)
@@ -37907,12 +37916,12 @@ var zC = class {
37907
37916
  l = await this.shapeFull(o, s);
37908
37917
  else {
37909
37918
  const N = Array.from(o), v = [];
37910
- let P = { text: "", startIndex: 0, isEmoji: !1 };
37919
+ let E = { text: "", startIndex: 0, isEmoji: !1 };
37911
37920
  for (let b = 0; b < N.length; b++) {
37912
37921
  const U = N[b], B = MC(U);
37913
- b === 0 ? P = { text: U, startIndex: 0, isEmoji: B } : P.isEmoji === B ? P.text += U : (v.push(P), P = { text: U, startIndex: P.startIndex + P.text.length, isEmoji: B });
37922
+ b === 0 ? E = { text: U, startIndex: 0, isEmoji: B } : E.isEmoji === B ? E.text += U : (v.push(E), E = { text: U, startIndex: E.startIndex + E.text.length, isEmoji: B });
37914
37923
  }
37915
- P.text && v.push(P), l = [];
37924
+ E.text && v.push(E), l = [];
37916
37925
  for (const b of v) {
37917
37926
  const U = b.isEmoji ? n : s, B = await this.shapeFull(b.text, U);
37918
37927
  for (const L of B)
@@ -37933,10 +37942,10 @@ var zC = class {
37933
37942
  }
37934
37943
  const f = a / c, h = l.map((N) => {
37935
37944
  const v = N.cl;
37936
- let P;
37945
+ let E;
37937
37946
  if (v >= 0 && v < o.length) {
37938
37947
  const b = o.codePointAt(v);
37939
- b !== void 0 && (P = String.fromCodePoint(b));
37948
+ b !== void 0 && (E = String.fromCodePoint(b));
37940
37949
  }
37941
37950
  return {
37942
37951
  id: N.g,
@@ -37944,30 +37953,30 @@ var zC = class {
37944
37953
  xOffset: N.dx * f,
37945
37954
  yOffset: -N.dy * f,
37946
37955
  cluster: N.cl,
37947
- char: P,
37956
+ char: E,
37948
37957
  fontDesc: N.fontDesc
37949
37958
  // Preserve font descriptor
37950
37959
  };
37951
37960
  }), d = [];
37952
37961
  let y = [], m = 0;
37953
- const C = /* @__PURE__ */ new Set();
37962
+ const x = /* @__PURE__ */ new Set();
37954
37963
  for (let N = 0; N < o.length; N++)
37955
- o[N] === " " && C.add(N);
37956
- let E = -1;
37964
+ o[N] === " " && x.add(N);
37965
+ let P = -1;
37957
37966
  for (let N = 0; N < h.length; N++) {
37958
- const v = h[N], P = v.xAdvance;
37967
+ const v = h[N], E = v.xAdvance;
37959
37968
  if (v.char === `
37960
37969
  `) {
37961
37970
  d.push({
37962
37971
  glyphs: y,
37963
37972
  width: m,
37964
37973
  y: 0
37965
- }), y = [], m = 0, E = N;
37974
+ }), y = [], m = 0, P = N;
37966
37975
  continue;
37967
37976
  }
37968
- if (m + P > r && y.length > 0) {
37969
- if (E > -1) {
37970
- const b = E - (N - y.length) + 1, U = y.splice(b), B = y.reduce((L, J) => L + J.xAdvance, 0);
37977
+ if (m + E > r && y.length > 0) {
37978
+ if (P > -1) {
37979
+ const b = P - (N - y.length) + 1, U = y.splice(b), B = y.reduce((L, J) => L + J.xAdvance, 0);
37971
37980
  d.push({
37972
37981
  glyphs: y,
37973
37982
  width: B,
@@ -37979,9 +37988,9 @@ var zC = class {
37979
37988
  width: m,
37980
37989
  y: 0
37981
37990
  }), y = [], m = 0;
37982
- E = -1;
37991
+ P = -1;
37983
37992
  }
37984
- y.push(v), m += P, C.has(v.cluster) && (E = N);
37993
+ y.push(v), m += E, x.has(v.cluster) && (P = N);
37985
37994
  }
37986
37995
  y.length > 0 && d.push({
37987
37996
  glyphs: y,
@@ -38035,7 +38044,7 @@ async function LC(t) {
38035
38044
  }
38036
38045
  l += a + s.top;
38037
38046
  const c = t.style.gradient ? RC(t.style.gradient, 1) : { kind: "solid", color: t.font.color, opacity: t.font.opacity }, f = t.style.gradient ? t.style.gradient.stops[t.style.gradient.stops.length - 1]?.color ?? t.font.color : t.font.color, h = [], d = [];
38038
- let y = 1 / 0, m = 1 / 0, C = -1 / 0, E = -1 / 0;
38047
+ let y = 1 / 0, m = 1 / 0, x = -1 / 0, P = -1 / 0;
38039
38048
  for (const F of t.lines) {
38040
38049
  let N;
38041
38050
  switch (t.align.horizontal) {
@@ -38052,7 +38061,7 @@ async function LC(t) {
38052
38061
  }
38053
38062
  N += a + s.left;
38054
38063
  let v = N;
38055
- const P = t.lines.indexOf(F), b = l + P * o;
38064
+ const E = t.lines.indexOf(F), b = l + E * o;
38056
38065
  if (t.font.background) {
38057
38066
  const U = t.font.size * 0.15, B = t.font.size * 0.12, L = t.font.size * 0.92 + B * 2, J = b - t.font.size * 0.78 - B;
38058
38067
  d.push({
@@ -38083,7 +38092,7 @@ async function LC(t) {
38083
38092
  continue;
38084
38093
  }
38085
38094
  const ue = UC(te), re = B + r * ue.x, Se = B + r * (ue.x + ue.w), xe = L - r * (ue.y + ue.h), Fe = L - r * ue.y;
38086
- re < y && (y = re), xe < m && (m = xe), Se > C && (C = Se), Fe > E && (E = Fe), t.shadow && t.shadow.blur > 0 && h.push({
38095
+ re < y && (y = re), xe < m && (m = xe), Se > x && (x = Se), Fe > P && (P = Fe), t.shadow && t.shadow.blur > 0 && h.push({
38087
38096
  isShadow: !0,
38088
38097
  op: "FillPath",
38089
38098
  path: te,
@@ -38130,14 +38139,14 @@ async function LC(t) {
38130
38139
  const F = {
38131
38140
  x: y,
38132
38141
  y: m,
38133
- w: Math.max(1, C - y),
38134
- h: Math.max(1, E - m)
38142
+ w: Math.max(1, x - y),
38143
+ h: Math.max(1, P - m)
38135
38144
  };
38136
38145
  for (const N of h)
38137
38146
  N.op === "FillPath" && !N.isShadow && (N.gradientBBox = F);
38138
38147
  }
38139
38148
  if (t.background || t.border) {
38140
- const F = t.contentRect?.width ?? t.canvas.width, N = t.contentRect?.height ?? t.canvas.height, v = t.border?.width ?? 0, P = t.border?.radius ?? 0, b = v / 2, U = t.canvas.width / 2, B = t.canvas.height / 2, L = U - F / 2, J = B - N / 2, ee = Math.min(F - v, N - v) / 2, te = Math.min(P, ee), ue = Math.max(0, te - b);
38149
+ const F = t.contentRect?.width ?? t.canvas.width, N = t.contentRect?.height ?? t.canvas.height, v = t.border?.width ?? 0, E = t.border?.radius ?? 0, b = v / 2, U = t.canvas.width / 2, B = t.canvas.height / 2, L = U - F / 2, J = B - N / 2, ee = Math.min(F - v, N - v) / 2, te = Math.min(E, ee), ue = Math.max(0, te - b);
38141
38150
  t.background?.color && e.push({
38142
38151
  op: "Rectangle",
38143
38152
  x: L + v,
@@ -38291,8 +38300,8 @@ function HC(t, e, s, a, i, r) {
38291
38300
  if (s >= m)
38292
38301
  l.push(f);
38293
38302
  else if (s > y) {
38294
- const C = (s - y) / Math.max(1e-6, m - y), E = Cr(Math.min(1, C)), F = a === "up" ? i * 0.4 : -i * 0.4, N = { ...f, y: f.y + F * (1 - E) };
38295
- f.op === "FillPath" ? N.fill.kind === "solid" ? N.fill = { ...N.fill, opacity: N.fill.opacity * E } : N.fill = { ...N.fill, opacity: (N.fill.opacity ?? 1) * E } : N.opacity = N.opacity * E, l.push(N);
38303
+ const x = (s - y) / Math.max(1e-6, m - y), P = Cr(Math.min(1, x)), F = a === "up" ? i * 0.4 : -i * 0.4, N = { ...f, y: f.y + F * (1 - P) };
38304
+ f.op === "FillPath" ? N.fill.kind === "solid" ? N.fill = { ...N.fill, opacity: N.fill.opacity * P } : N.fill = { ...N.fill, opacity: (N.fill.opacity ?? 1) * P } : N.opacity = N.opacity * P, l.push(N);
38296
38305
  }
38297
38306
  }
38298
38307
  jr(f) && c++;
@@ -38305,14 +38314,14 @@ function KC(t, e, s, a, i, r, n) {
38305
38314
  right: { x: -i * 0.6, y: 0 },
38306
38315
  up: { x: 0, y: i * 0.6 },
38307
38316
  down: { x: 0, y: -i * 0.6 }
38308
- }[a], f = o ? bi(e) : [], h = e.reduce((v, P) => v + P.glyphs.length, 0), d = o ? f.length : h;
38317
+ }[a], f = o ? bi(e) : [], h = e.reduce((v, E) => v + E.glyphs.length, 0), d = o ? f.length : h;
38309
38318
  if (d === 0) return t;
38310
38319
  const y = [];
38311
38320
  for (const v of t)
38312
38321
  if ((v.op === "BeginFrame" || v.op === "Rectangle" || v.op === "RectangleStroke") && y.push(v), v.op === "FillPath" || v.op === "StrokePath")
38313
38322
  break;
38314
- const m = 0.3, E = n * 0.7 / Math.max(1, d - 1), F = (v) => {
38315
- const P = v * E, b = P / n, U = Math.min(1, (P + m) / n);
38323
+ const m = 0.3, P = n * 0.7 / Math.max(1, d - 1), F = (v) => {
38324
+ const E = v * P, b = E / n, U = Math.min(1, (E + m) / n);
38316
38325
  return { startF: b, endF: U };
38317
38326
  };
38318
38327
  let N = 0;
@@ -38321,9 +38330,9 @@ function KC(t, e, s, a, i, r, n) {
38321
38330
  v.op === "DecorationLine" && s > 0.8 && y.push(v);
38322
38331
  continue;
38323
38332
  }
38324
- let P;
38333
+ let E;
38325
38334
  if (!o)
38326
- P = N;
38335
+ E = N;
38327
38336
  else {
38328
38337
  let B = -1, L = 0;
38329
38338
  for (let J = 0; J < f.length; J++) {
@@ -38334,9 +38343,9 @@ function KC(t, e, s, a, i, r, n) {
38334
38343
  }
38335
38344
  L += ee;
38336
38345
  }
38337
- P = Math.max(0, B);
38346
+ E = Math.max(0, B);
38338
38347
  }
38339
- const { startF: b, endF: U } = F(P);
38348
+ const { startF: b, endF: U } = F(E);
38340
38349
  if (s <= b) {
38341
38350
  const B = { ...v, x: v.x + c.x, y: v.y + c.y };
38342
38351
  v.op === "FillPath" ? B.fill.kind === "solid" ? B.fill = { ...B.fill, opacity: 0 } : B.fill = { ...B.fill, opacity: 0 } : B.opacity = 0, y.push(B);
@@ -38369,11 +38378,11 @@ function jC(t, e, s, a, i, r) {
38369
38378
  h.push(F);
38370
38379
  break;
38371
38380
  }
38372
- const d = 0.3, m = r * 0.7 / Math.max(1, f - 1), C = (F) => {
38373
- const N = F * m, v = N / r, P = Math.min(1, (N + d) / r);
38374
- return { startF: v, endF: P };
38381
+ const d = 0.3, m = r * 0.7 / Math.max(1, f - 1), x = (F) => {
38382
+ const N = F * m, v = N / r, E = Math.min(1, (N + d) / r);
38383
+ return { startF: v, endF: E };
38375
38384
  };
38376
- let E = 0;
38385
+ let P = 0;
38377
38386
  for (const F of t) {
38378
38387
  if (F.op !== "FillPath" && F.op !== "StrokePath") {
38379
38388
  F.op === "DecorationLine" && s > 0.8 && h.push(F);
@@ -38381,12 +38390,12 @@ function jC(t, e, s, a, i, r) {
38381
38390
  }
38382
38391
  let N;
38383
38392
  if (!n)
38384
- N = E;
38393
+ N = P;
38385
38394
  else {
38386
38395
  let b = -1, U = 0;
38387
38396
  for (let B = 0; B < l.length; B++) {
38388
38397
  const L = l[B].glyphCount;
38389
- if (E >= U && E < U + L) {
38398
+ if (P >= U && P < U + L) {
38390
38399
  b = B;
38391
38400
  break;
38392
38401
  }
@@ -38394,14 +38403,14 @@ function jC(t, e, s, a, i, r) {
38394
38403
  }
38395
38404
  N = Math.max(0, b);
38396
38405
  }
38397
- const { startF: v, endF: P } = C(N);
38406
+ const { startF: v, endF: E } = x(N);
38398
38407
  if (s <= v) {
38399
38408
  const b = { ...F };
38400
38409
  F.op === "FillPath" ? b.fill.kind === "solid" ? b.fill = { ...b.fill, opacity: 0 } : b.fill = { ...b.fill, opacity: 0 } : b.opacity = 0, h.push(b);
38401
- } else if (s >= P)
38410
+ } else if (s >= E)
38402
38411
  h.push(F);
38403
38412
  else {
38404
- const b = (s - v) / Math.max(1e-6, P - v), U = Qn(Math.min(1, b)), B = { ...F };
38413
+ const b = (s - v) / Math.max(1e-6, E - v), U = Qn(Math.min(1, b)), B = { ...F };
38405
38414
  if (F.op === "FillPath") {
38406
38415
  const L = B.fill.kind === "solid" ? B.fill.opacity : B.fill.opacity ?? 1;
38407
38416
  B.fill.kind === "solid" ? B.fill = { ...B.fill, opacity: L * U } : B.fill = { ...B.fill, opacity: L * U };
@@ -38409,14 +38418,14 @@ function jC(t, e, s, a, i, r) {
38409
38418
  B.opacity = B.opacity * U;
38410
38419
  h.push(B);
38411
38420
  }
38412
- jr(F) && E++;
38421
+ jr(F) && P++;
38413
38422
  }
38414
38423
  return h;
38415
38424
  }
38416
38425
  function XC(t, e, s, a, i, r, n) {
38417
38426
  const o = r === "word";
38418
38427
  if (!o && !(r === "character")) {
38419
- const P = Cr(s), b = tA(1 - P, a, i * 2), U = Qn(s);
38428
+ const E = Cr(s), b = tA(1 - E, a, i * 2), U = Qn(s);
38420
38429
  return $C(t, b.dx, b.dy, U);
38421
38430
  }
38422
38431
  const f = {
@@ -38424,22 +38433,22 @@ function XC(t, e, s, a, i, r, n) {
38424
38433
  right: { x: -i * 2, y: 0 },
38425
38434
  up: { x: 0, y: i * 2 },
38426
38435
  down: { x: 0, y: -i * 2 }
38427
- }[a], h = o ? bi(e) : [], d = e.reduce((P, b) => P + b.glyphs.length, 0), y = o ? h.length : d;
38436
+ }[a], h = o ? bi(e) : [], d = e.reduce((E, b) => E + b.glyphs.length, 0), y = o ? h.length : d;
38428
38437
  if (y === 0) return t;
38429
38438
  const m = [];
38430
- for (const P of t)
38431
- if (P.op === "BeginFrame") {
38432
- m.push(P);
38439
+ for (const E of t)
38440
+ if (E.op === "BeginFrame") {
38441
+ m.push(E);
38433
38442
  break;
38434
38443
  }
38435
- const C = 0.3, F = n * 0.7 / Math.max(1, y - 1), N = (P) => {
38436
- const b = P * F, U = b / n, B = Math.min(1, (b + C) / n);
38444
+ const x = 0.3, F = n * 0.7 / Math.max(1, y - 1), N = (E) => {
38445
+ const b = E * F, U = b / n, B = Math.min(1, (b + x) / n);
38437
38446
  return { startF: U, endF: B };
38438
38447
  };
38439
38448
  let v = 0;
38440
- for (const P of t) {
38441
- if (P.op !== "FillPath" && P.op !== "StrokePath") {
38442
- P.op === "DecorationLine" && s > 0.8 && m.push(P);
38449
+ for (const E of t) {
38450
+ if (E.op !== "FillPath" && E.op !== "StrokePath") {
38451
+ E.op === "DecorationLine" && s > 0.8 && m.push(E);
38443
38452
  continue;
38444
38453
  }
38445
38454
  let b;
@@ -38459,20 +38468,20 @@ function XC(t, e, s, a, i, r, n) {
38459
38468
  }
38460
38469
  const { startF: U, endF: B } = N(b);
38461
38470
  if (s <= U) {
38462
- const L = { ...P, x: P.x + f.x, y: P.y + f.y };
38463
- P.op === "FillPath" ? L.fill.kind === "solid" ? L.fill = { ...L.fill, opacity: 0 } : L.fill = { ...L.fill, opacity: 0 } : L.opacity = 0, m.push(L);
38471
+ const L = { ...E, x: E.x + f.x, y: E.y + f.y };
38472
+ E.op === "FillPath" ? L.fill.kind === "solid" ? L.fill = { ...L.fill, opacity: 0 } : L.fill = { ...L.fill, opacity: 0 } : L.opacity = 0, m.push(L);
38464
38473
  } else if (s >= B)
38465
- m.push(P);
38474
+ m.push(E);
38466
38475
  else {
38467
- const L = (s - U) / Math.max(1e-6, B - U), J = Cr(Math.min(1, L)), ee = f.x * (1 - J), te = f.y * (1 - J), ue = { ...P, x: P.x + ee, y: P.y + te };
38468
- if (P.op === "FillPath") {
38476
+ const L = (s - U) / Math.max(1e-6, B - U), J = Cr(Math.min(1, L)), ee = f.x * (1 - J), te = f.y * (1 - J), ue = { ...E, x: E.x + ee, y: E.y + te };
38477
+ if (E.op === "FillPath") {
38469
38478
  const re = ue.fill.kind === "solid" ? ue.fill.opacity : ue.fill.opacity ?? 1;
38470
38479
  ue.fill.kind === "solid" ? ue.fill = { ...ue.fill, opacity: re * J } : ue.fill = { ...ue.fill, opacity: re * J };
38471
38480
  } else
38472
38481
  ue.opacity = ue.opacity * J;
38473
38482
  m.push(ue);
38474
38483
  }
38475
- jr(P) && v++;
38484
+ jr(E) && v++;
38476
38485
  }
38477
38486
  return m;
38478
38487
  }
@@ -38947,15 +38956,15 @@ function cA(t, e, s) {
38947
38956
  t.transform && (h += Ot(t.transform.x, 0), d += Ot(t.transform.y, 0));
38948
38957
  const y = [];
38949
38958
  if (t.shadow) {
38950
- const C = Ot(t.shadow.offsetX, 4), E = Ot(t.shadow.offsetY, 4), F = t.shadow.color ?? "#000000", N = Ot(t.shadow.opacity, 0.5);
38959
+ const x = Ot(t.shadow.offsetX, 4), P = Ot(t.shadow.offsetY, 4), F = t.shadow.color ?? "#000000", N = Ot(t.shadow.opacity, 0.5);
38951
38960
  y.push(
38952
- `<path d="${r}" transform="translate(${h + C}, ${d + E})" fill="${F}" fill-opacity="${N}"/>`
38961
+ `<path d="${r}" transform="translate(${h + x}, ${d + P})" fill="${F}" fill-opacity="${N}"/>`
38953
38962
  );
38954
38963
  }
38955
38964
  const m = [`d="${r}"`, `transform="translate(${h}, ${d})"`];
38956
38965
  if (t.fill) {
38957
- const C = `fill-${Date.now()}`, E = fA(t.fill, C);
38958
- E.defs && y.unshift(E.defs), m.push(`fill="${E.fill}"`), t.fill.opacity !== void 0 && t.fill.opacity !== 1 && m.push(`fill-opacity="${t.fill.opacity}"`);
38966
+ const x = `fill-${Date.now()}`, P = fA(t.fill, x);
38967
+ P.defs && y.unshift(P.defs), m.push(`fill="${P.fill}"`), t.fill.opacity !== void 0 && t.fill.opacity !== 1 && m.push(`fill-opacity="${t.fill.opacity}"`);
38959
38968
  } else
38960
38969
  m.push('fill="none"');
38961
38970
  return t.stroke && t.stroke.width && Ot(t.stroke.width, 0) > 0 && (m.push(`stroke="${t.stroke.color ?? "#000000"}"`), m.push(`stroke-width="${t.stroke.width}"`), t.stroke.opacity !== void 0 && t.stroke.opacity !== 1 && m.push(`stroke-opacity="${t.stroke.opacity}"`), t.stroke.dashArray && t.stroke.dashArray.length > 0 && m.push(`stroke-dasharray="${t.stroke.dashArray.join(" ")}"`), t.stroke.lineCap && m.push(`stroke-linecap="${t.stroke.lineCap}"`), t.stroke.lineJoin && m.push(`stroke-linejoin="${t.stroke.lineJoin}"`)), t.opacity !== void 0 && t.opacity !== 1 && m.push(`opacity="${t.opacity}"`), y.push(`<path ${m.join(" ")}/>`), `<svg xmlns="http://www.w3.org/2000/svg" width="${a}" height="${i}" viewBox="0 0 ${a} ${i}">${y.join(
@@ -39174,31 +39183,31 @@ function CA(t) {
39174
39183
  case "C":
39175
39184
  if (d + 5 < s.length)
39176
39185
  for (let m = 0; m < 3; m++) {
39177
- const C = s[d++], E = s[d++];
39178
- i = Math.min(i, C), n = Math.max(n, C), r = Math.min(r, E), o = Math.max(o, E), m === 2 && (l = C, c = E);
39186
+ const x = s[d++], P = s[d++];
39187
+ i = Math.min(i, x), n = Math.max(n, x), r = Math.min(r, P), o = Math.max(o, P), m === 2 && (l = x, c = P);
39179
39188
  }
39180
39189
  break;
39181
39190
  case "c":
39182
39191
  if (d + 5 < s.length)
39183
39192
  for (let m = 0; m < 3; m++) {
39184
- const C = l + s[d++], E = c + s[d++];
39185
- i = Math.min(i, C), n = Math.max(n, C), r = Math.min(r, E), o = Math.max(o, E), m === 2 && (l = C, c = E);
39193
+ const x = l + s[d++], P = c + s[d++];
39194
+ i = Math.min(i, x), n = Math.max(n, x), r = Math.min(r, P), o = Math.max(o, P), m === 2 && (l = x, c = P);
39186
39195
  }
39187
39196
  break;
39188
39197
  case "S":
39189
39198
  case "Q":
39190
39199
  if (d + 3 < s.length)
39191
39200
  for (let m = 0; m < 2; m++) {
39192
- const C = s[d++], E = s[d++];
39193
- i = Math.min(i, C), n = Math.max(n, C), r = Math.min(r, E), o = Math.max(o, E), m === 1 && (l = C, c = E);
39201
+ const x = s[d++], P = s[d++];
39202
+ i = Math.min(i, x), n = Math.max(n, x), r = Math.min(r, P), o = Math.max(o, P), m === 1 && (l = x, c = P);
39194
39203
  }
39195
39204
  break;
39196
39205
  case "s":
39197
39206
  case "q":
39198
39207
  if (d + 3 < s.length)
39199
39208
  for (let m = 0; m < 2; m++) {
39200
- const C = l + s[d++], E = c + s[d++];
39201
- i = Math.min(i, C), n = Math.max(n, C), r = Math.min(r, E), o = Math.max(o, E), m === 1 && (l = C, c = E);
39209
+ const x = l + s[d++], P = c + s[d++];
39210
+ i = Math.min(i, x), n = Math.max(n, x), r = Math.min(r, P), o = Math.max(o, P), m === 1 && (l = x, c = P);
39202
39211
  }
39203
39212
  break;
39204
39213
  case "A":
@@ -39250,8 +39259,8 @@ var kc = "https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu4mxP.ttf";
39250
39259
  async function kA(t = {}) {
39251
39260
  const e = t.width ?? ht.DEFAULTS.width, s = t.height ?? ht.DEFAULTS.height, a = t.pixelRatio ?? ht.DEFAULTS.pixelRatio, i = "https://shotstack-ingest-api-dev-sources.s3.ap-southeast-2.amazonaws.com/euo5r93oyr/zzz01k9h-yycyx-2x2y6-qx9bj-7n567b/source.wasm";
39252
39261
  vc.setFallbackLoader(async (m) => {
39253
- const C = (m.family ?? "Roboto").toLowerCase(), E = `${m.weight ?? "400"}`;
39254
- if (C === "roboto" && E === "400")
39262
+ const x = (m.family ?? "Roboto").toLowerCase(), P = `${m.weight ?? "400"}`;
39263
+ if (x === "roboto" && P === "400")
39255
39264
  return Bi(kc);
39256
39265
  });
39257
39266
  let r;
@@ -39262,34 +39271,34 @@ async function kA(t = {}) {
39262
39271
  `Failed to initialize font registry: ${m instanceof Error ? m.message : String(m)}`
39263
39272
  );
39264
39273
  }
39265
- const n = new zC(r), o = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(), c = (m) => `${m ?? "400"}`, f = (m, C) => `${m}__${c(C)}`, h = async (m, C) => {
39266
- const E = {
39267
- family: C.family,
39268
- weight: c(C.weight)
39269
- }, F = `${m}|${f(E.family, E.weight)}`, N = l.get(F);
39274
+ const n = new zC(r), o = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(), c = (m) => `${m ?? "400"}`, f = (m, x) => `${m}__${c(x)}`, h = async (m, x) => {
39275
+ const P = {
39276
+ family: x.family,
39277
+ weight: c(x.weight)
39278
+ }, F = `${m}|${f(P.family, P.weight)}`, N = l.get(F);
39270
39279
  if (N)
39271
39280
  return N;
39272
39281
  const v = (async () => {
39273
- if (r.hasRegisteredFace(E))
39282
+ if (r.hasRegisteredFace(P))
39274
39283
  return;
39275
- const P = await Bi(m);
39276
- await r.registerFromBytes(P, E);
39284
+ const E = await Bi(m);
39285
+ await r.registerFromBytes(E, P);
39277
39286
  })();
39278
39287
  return l.set(F, v), v;
39279
39288
  }, d = async (m) => {
39280
- const C = {
39289
+ const x = {
39281
39290
  family: m.family,
39282
39291
  weight: c(m.weight)
39283
- }, E = `${m.src}|${f(C.family, C.weight)}`, F = o.get(E);
39292
+ }, P = `${m.src}|${f(x.family, x.weight)}`, F = o.get(P);
39284
39293
  if (F)
39285
39294
  return F;
39286
39295
  const N = (async () => {
39287
- if (r.hasRegisteredFace(C))
39296
+ if (r.hasRegisteredFace(x))
39288
39297
  return;
39289
39298
  const v = await Bi(m.src);
39290
- await r.registerFromBytes(v, C);
39299
+ await r.registerFromBytes(v, x);
39291
39300
  })();
39292
- return o.set(E, N), N;
39301
+ return o.set(P, N), N;
39293
39302
  };
39294
39303
  async function y(m) {
39295
39304
  try {
@@ -39302,18 +39311,18 @@ async function kA(t = {}) {
39302
39311
  `Failed to load custom font "${N.family}" from ${N.src}: ${v instanceof Error ? v.message : String(v)}`
39303
39312
  );
39304
39313
  }
39305
- const C = m.font ?? {
39314
+ const x = m.font ?? {
39306
39315
  family: "Roboto",
39307
39316
  weight: "400",
39308
39317
  size: 48,
39309
39318
  color: "#000000",
39310
39319
  opacity: 1
39311
- }, E = { family: C.family, weight: `${C.weight}` };
39320
+ }, P = { family: x.family, weight: `${x.weight}` };
39312
39321
  return await (async () => {
39313
39322
  try {
39314
- await r.getFace(E);
39323
+ await r.getFace(P);
39315
39324
  } catch {
39316
- if ((C.family || "Roboto").toLowerCase() === "roboto" && `${C.weight}` == "400") {
39325
+ if ((x.family || "Roboto").toLowerCase() === "roboto" && `${x.weight}` == "400") {
39317
39326
  if (!r.hasRegisteredFace({ family: "Roboto", weight: "400" })) {
39318
39327
  const v = await Bi(kc);
39319
39328
  await r.registerFromBytes(v, {
@@ -39322,59 +39331,59 @@ async function kA(t = {}) {
39322
39331
  });
39323
39332
  }
39324
39333
  } else
39325
- throw new Error(`Font not registered for ${E.family}__${E.weight}`);
39334
+ throw new Error(`Font not registered for ${P.family}__${P.weight}`);
39326
39335
  }
39327
- })(), C;
39328
- } catch (C) {
39329
- throw C instanceof Error ? C : new Error(`Failed to ensure fonts: ${String(C)}`);
39336
+ })(), x;
39337
+ } catch (x) {
39338
+ throw x instanceof Error ? x : new Error(`Failed to ensure fonts: ${String(x)}`);
39330
39339
  }
39331
39340
  }
39332
39341
  return {
39333
39342
  validate(m) {
39334
- const C = _C.safeParse(m);
39335
- if (!C.success) {
39336
- const E = C.error.issues.map((F) => F.message).join(". ");
39337
- throw new Error(`Validation failed: ${E}`);
39343
+ const x = _C.safeParse(m);
39344
+ if (!x.success) {
39345
+ const P = x.error.issues.map((F) => F.message).join(". ");
39346
+ throw new Error(`Validation failed: ${P}`);
39338
39347
  }
39339
- return { value: C.data };
39348
+ return { value: x.data };
39340
39349
  },
39341
- async registerFontFromUrl(m, C) {
39350
+ async registerFontFromUrl(m, x) {
39342
39351
  try {
39343
- await h(m, C);
39344
- } catch (E) {
39352
+ await h(m, x);
39353
+ } catch (P) {
39345
39354
  throw new Error(
39346
- `Failed to register font "${C.family}" from URL ${m}: ${E instanceof Error ? E.message : String(E)}`
39355
+ `Failed to register font "${x.family}" from URL ${m}: ${P instanceof Error ? P.message : String(P)}`
39347
39356
  );
39348
39357
  }
39349
39358
  },
39350
- async registerFontFromFile(m, C) {
39359
+ async registerFontFromFile(m, x) {
39351
39360
  try {
39352
- let E;
39361
+ let P;
39353
39362
  if (typeof m == "string") {
39354
- await h(m, C);
39363
+ await h(m, x);
39355
39364
  return;
39356
39365
  } else
39357
39366
  try {
39358
- E = await m.arrayBuffer();
39367
+ P = await m.arrayBuffer();
39359
39368
  } catch (N) {
39360
39369
  throw new Error(
39361
39370
  `Failed to read Blob as ArrayBuffer: ${N instanceof Error ? N.message : String(N)}`
39362
39371
  );
39363
39372
  }
39364
39373
  const F = {
39365
- family: C.family,
39366
- weight: c(C.weight)
39374
+ family: x.family,
39375
+ weight: c(x.weight)
39367
39376
  };
39368
39377
  if (r.hasRegisteredFace(F))
39369
39378
  return;
39370
- await r.registerFromBytes(E, F);
39371
- } catch (E) {
39372
- throw E instanceof Error ? E : new Error(
39373
- `Failed to register font "${C.family}" from ${typeof m == "string" ? m : "Blob"}: ${String(E)}`
39379
+ await r.registerFromBytes(P, F);
39380
+ } catch (P) {
39381
+ throw P instanceof Error ? P : new Error(
39382
+ `Failed to register font "${x.family}" from ${typeof m == "string" ? m : "Blob"}: ${String(P)}`
39374
39383
  );
39375
39384
  }
39376
39385
  },
39377
- async renderFrame(m, C, E) {
39386
+ async renderFrame(m, x, P) {
39378
39387
  try {
39379
39388
  const F = await y(m), N = { family: F.family, weight: `${F.weight}` };
39380
39389
  let v;
@@ -39411,7 +39420,7 @@ async function kA(t = {}) {
39411
39420
  `Failed to layout text: ${re instanceof Error ? re.message : String(re)}`
39412
39421
  );
39413
39422
  }
39414
- const P = m.padding ? typeof m.padding == "number" ? {
39423
+ const E = m.padding ? typeof m.padding == "number" ? {
39415
39424
  top: m.padding,
39416
39425
  right: m.padding,
39417
39426
  bottom: m.padding,
@@ -39419,8 +39428,8 @@ async function kA(t = {}) {
39419
39428
  } : m.padding : { top: 0, right: 0, bottom: 0, left: 0 }, b = m.border?.width ?? 0, U = (m.width ?? e) + b * 2, B = (m.height ?? s) + b * 2, L = a, J = {
39420
39429
  x: 0,
39421
39430
  y: 0,
39422
- width: (m.width ?? e) - P.left - P.right,
39423
- height: (m.height ?? s) - P.top - P.bottom
39431
+ width: (m.width ?? e) - E.left - E.right,
39432
+ height: (m.height ?? s) - E.top - E.bottom
39424
39433
  }, ee = m.width ?? e, te = m.height ?? s;
39425
39434
  let ue;
39426
39435
  try {
@@ -39462,9 +39471,9 @@ async function kA(t = {}) {
39462
39471
  }
39463
39472
  try {
39464
39473
  return GC(ue, v, {
39465
- t: C,
39474
+ t: x,
39466
39475
  fontSize: F.size,
39467
- clipDuration: E,
39476
+ clipDuration: P,
39468
39477
  anim: m.animation ? {
39469
39478
  preset: m.animation.preset,
39470
39479
  speed: m.animation.speed,
@@ -39479,15 +39488,15 @@ async function kA(t = {}) {
39479
39488
  );
39480
39489
  }
39481
39490
  } catch (F) {
39482
- throw F instanceof Error ? F : new Error(`Failed to render frame at time ${C}s: ${String(F)}`);
39491
+ throw F instanceof Error ? F : new Error(`Failed to render frame at time ${x}s: ${String(F)}`);
39483
39492
  }
39484
39493
  },
39485
39494
  createRenderer(m) {
39486
39495
  try {
39487
39496
  return sA(m);
39488
- } catch (C) {
39497
+ } catch (x) {
39489
39498
  throw new Error(
39490
- `Failed to create renderer: ${C instanceof Error ? C.message : String(C)}`
39499
+ `Failed to create renderer: ${x instanceof Error ? x.message : String(x)}`
39491
39500
  );
39492
39501
  }
39493
39502
  },
@@ -39537,14 +39546,14 @@ class qt extends Nt {
39537
39546
  }
39538
39547
  buildCanvasPayload(e, s) {
39539
39548
  const a = this.clipConfiguration.width || this.edit.size.width, i = this.clipConfiguration.height || this.edit.size.height, r = e.font?.family, { baseFontFamily: n, fontWeight: o } = s ?? (r ? Gt(r) : { baseFontFamily: r, fontWeight: 400 }), l = this.resolveFontWeight(e, o), c = this.edit.getTimelineFonts(), f = r ? c.find((m) => {
39540
- const { full: C, base: E } = Sc(m.src), F = r.toLowerCase();
39541
- return C.toLowerCase() === F || E.toLowerCase() === F;
39549
+ const { full: x, base: P } = Sc(m.src), F = r.toLowerCase();
39550
+ return x.toLowerCase() === F || P.toLowerCase() === F;
39542
39551
  }) : void 0;
39543
39552
  let h;
39544
39553
  if (f && r)
39545
39554
  h = [{ src: f.src, family: n || r, weight: l.toString() }];
39546
39555
  else if (r) {
39547
- const m = this.edit.getFontMetadata(), C = (n || r).toLowerCase(), F = c.filter((N) => !SA(N.src)).find((N) => m.get(N.src)?.baseFamilyName.toLowerCase() === C);
39556
+ const m = this.edit.getFontMetadata(), x = (n || r).toLowerCase(), F = c.filter((N) => !SA(N.src)).find((N) => m.get(N.src)?.baseFamilyName.toLowerCase() === x);
39548
39557
  F && (h = [{ src: F.src, family: n || r, weight: l.toString() }]);
39549
39558
  }
39550
39559
  const y = h || r && $i(r) ? n || r : void 0;
@@ -39674,21 +39683,21 @@ class qt extends Nt {
39674
39683
  try {
39675
39684
  const a = this.getLength(), i = await this.textEngine.renderFrame(this.validatedAsset, e, a), r = this.canvas.getContext("2d");
39676
39685
  r && r.clearRect(0, 0, this.canvas.width, this.canvas.height), await this.renderer.render(i);
39677
- const n = q.Texture.from(this.canvas);
39678
- this.sprite ? (this.texture && !this.cachedFrames.has(s) && this.texture.destroy(), this.sprite.texture = n) : (this.sprite = new q.Sprite(n), this.contentContainer.addChild(this.sprite)), this.texture = n, this.cachedFrames.size < 150 && this.cachedFrames.set(s, n), this.lastRenderedTime = e;
39686
+ const n = X.Texture.from(this.canvas);
39687
+ this.sprite ? (this.texture && !this.cachedFrames.has(s) && this.texture.destroy(), this.sprite.texture = n) : (this.sprite = new X.Sprite(n), this.contentContainer.addChild(this.sprite)), this.texture = n, this.cachedFrames.size < 150 && this.cachedFrames.set(s, n), this.lastRenderedTime = e;
39679
39688
  } catch (a) {
39680
39689
  console.error("Failed to render rich text frame:", a);
39681
39690
  }
39682
39691
  }
39683
39692
  createFallbackText(e) {
39684
- const s = this.edit.getEdit(), a = this.clipConfiguration.width || s?.output?.size?.width || this.edit.size.width, i = this.clipConfiguration.height || s?.output?.size?.height || this.edit.size.height, r = new q.TextStyle({
39693
+ const s = this.edit.getEdit(), a = this.clipConfiguration.width || s?.output?.size?.width || this.edit.size.width, i = this.clipConfiguration.height || s?.output?.size?.height || this.edit.size.height, r = new X.TextStyle({
39685
39694
  fontFamily: e.font?.family || "Arial",
39686
39695
  fontSize: e.font?.size || 48,
39687
39696
  fill: e.font?.color || "#ffffff",
39688
39697
  align: e.align?.horizontal || "center",
39689
39698
  wordWrap: !0,
39690
39699
  wordWrapWidth: a
39691
- }), n = new q.Text(e.text, r);
39700
+ }), n = new X.Text(e.text, r);
39692
39701
  switch (e.align?.horizontal) {
39693
39702
  case "left":
39694
39703
  n.anchor.set(0, 0.5), n.x = 0;
@@ -39792,9 +39801,9 @@ class VA extends Nt {
39792
39801
  }
39793
39802
  async load() {
39794
39803
  await super.load();
39795
- const e = this.clipConfiguration.asset, s = new q.Graphics(), a = e.width ?? this.edit.size.width, i = e.height ?? this.edit.size.height;
39804
+ const e = this.clipConfiguration.asset, s = new X.Graphics(), a = e.width ?? this.edit.size.width, i = e.height ?? this.edit.size.height;
39796
39805
  s.fillStyle = { color: "transparent" }, s.rect(0, 0, a, i), s.fill();
39797
- const r = new q.Graphics();
39806
+ const r = new X.Graphics();
39798
39807
  switch (e.shape) {
39799
39808
  case "rectangle": {
39800
39809
  const n = e.rectangle, o = a / 2 - n.width / 2, l = i / 2 - n.height / 2;
@@ -39934,7 +39943,7 @@ class us extends Nt {
39934
39943
  const r = new Blob([i.png], { type: "image/png" }), n = URL.createObjectURL(r), o = new Image();
39935
39944
  o.src = n, await new Promise((l, c) => {
39936
39945
  o.onload = () => l(), o.onerror = () => c(new Error("Failed to load SVG image"));
39937
- }), URL.revokeObjectURL(n), this.texture = q.Texture.from(o), this.sprite = new q.Sprite(this.texture), this.contentContainer.addChild(this.sprite), this.clipConfiguration.width && this.clipConfiguration.height && this.applyFixedDimensions();
39946
+ }), URL.revokeObjectURL(n), this.texture = X.Texture.from(o), this.sprite = new X.Sprite(this.texture), this.contentContainer.addChild(this.sprite), this.clipConfiguration.width && this.clipConfiguration.height && this.applyFixedDimensions();
39938
39947
  }
39939
39948
  }
39940
39949
  class Qa {
@@ -40013,7 +40022,7 @@ class Qa {
40013
40022
  }
40014
40023
  createCursor() {
40015
40024
  if (!this.textElement) return;
40016
- this.cursor = new q.Graphics(), this.cursor.fillStyle = { color: this.color };
40025
+ this.cursor = new X.Graphics(), this.cursor.fillStyle = { color: this.color };
40017
40026
  const e = this.textElement.style.fontSize;
40018
40027
  this.cursor.rect(0, 0, this.width, e), this.cursor.fill(), this.parent.addChild(this.cursor), this.cursor.visible = this.isVisible;
40019
40028
  }
@@ -40037,9 +40046,9 @@ class Qa {
40037
40046
  const y = this.clipConfig.asset.alignment?.horizontal ?? "center";
40038
40047
  let m = f;
40039
40048
  if (y !== "left") {
40040
- const C = this.measureText(n, s), E = this.textElement.width;
40049
+ const x = this.measureText(n, s), P = this.textElement.width;
40041
40050
  let F = 0;
40042
- y === "center" ? F = (E - C) / 2 : y === "right" && (F = E - C), m = F + f;
40051
+ y === "center" ? F = (P - x) / 2 : y === "right" && (F = P - x), m = F + f;
40043
40052
  }
40044
40053
  this.pixelX = m;
40045
40054
  }
@@ -40055,7 +40064,7 @@ class Qa {
40055
40064
  this.blinkInterval !== null && (window.clearInterval(this.blinkInterval), this.blinkInterval = null), this.isBlinking = !1, this.cursor && (this.cursor.visible = this.isVisible);
40056
40065
  }
40057
40066
  measureText(e, s) {
40058
- const a = new q.Text(e, s), { width: i } = a;
40067
+ const a = new X.Text(e, s), { width: i } = a;
40059
40068
  return a.destroy(), i;
40060
40069
  }
40061
40070
  isInitialized() {
@@ -40282,14 +40291,14 @@ class Jt {
40282
40291
  this.setupEditingContainer(), this.editingContainer && this.editableText && (this.textCursor = new Qa(this.editingContainer, this.editableText, this.clipConfig), this.textCursor.updatePosition(this.targetText.text.length), this.textCursor.startBlinking()), this.setupTextInputHandler(), this.updateTextAlignment();
40283
40292
  }
40284
40293
  setupEditingContainer() {
40285
- this.editingContainer = new q.Container(), this.parent.getContainer().addChild(this.editingContainer);
40286
- const e = new q.Graphics();
40294
+ this.editingContainer = new X.Container(), this.parent.getContainer().addChild(this.editingContainer);
40295
+ const e = new X.Graphics();
40287
40296
  e.fillStyle = { color: 0, alpha: Jt.EDITING_BG_ALPHA }, e.rect(
40288
40297
  -5,
40289
40298
  -5,
40290
40299
  this.targetText.width + 2 * Jt.EDITING_BG_PADDING_PX,
40291
40300
  this.targetText.height + 2 * Jt.EDITING_BG_PADDING_PX
40292
- ), e.fill(), this.editingContainer.addChild(e), this.editableText = new q.Text(this.targetText.text, this.targetText.style), this.editableText.eventMode = "static", this.editableText.cursor = "text", this.editingContainer.addChild(this.editableText);
40301
+ ), e.fill(), this.editingContainer.addChild(e), this.editableText = new X.Text(this.targetText.text, this.targetText.style), this.editableText.eventMode = "static", this.editableText.cursor = "text", this.editingContainer.addChild(this.editableText);
40293
40302
  }
40294
40303
  setupTextInputHandler() {
40295
40304
  this.textInputHandler = new Nr(), this.textInputHandler.setTextInputHandler((e, s) => {
@@ -40304,7 +40313,7 @@ class Jt {
40304
40313
  const e = this.getContainerDimensions(), s = this.getAlignmentSettings(), a = this.calculateHorizontalPosition({ width: this.editableText.width }, e, s.horizontal), i = this.calculateVerticalPosition({ height: this.editableText.height }, e, s.vertical);
40305
40314
  if (this.editingContainer.position.set(a, i), this.editingContainer.children.length > 0) {
40306
40315
  const r = this.editingContainer.getChildAt(0);
40307
- r instanceof q.Graphics && (r.clear(), r.fillStyle = { color: 0, alpha: Jt.EDITING_BG_ALPHA }, r.rect(
40316
+ r instanceof X.Graphics && (r.clear(), r.fillStyle = { color: 0, alpha: Jt.EDITING_BG_ALPHA }, r.rect(
40308
40317
  -5,
40309
40318
  -5,
40310
40319
  this.editableText.width + 2 * Jt.EDITING_BG_PADDING_PX,
@@ -40361,7 +40370,7 @@ class ya extends Nt {
40361
40370
  async load() {
40362
40371
  await super.load();
40363
40372
  const e = this.clipConfiguration.asset, s = e.font?.family ?? "Open Sans";
40364
- if (await this.loadFont(s), this.background = new q.Graphics(), this.drawBackground(), this.text = new q.Text({ text: e.text ?? "", style: this.createTextStyle(e) }), this.positionText(e), e.stroke?.width && e.stroke.width > 0 && e.stroke.color) {
40373
+ if (await this.loadFont(s), this.background = new X.Graphics(), this.drawBackground(), this.text = new X.Text({ text: e.text ?? "", style: this.createTextStyle(e) }), this.positionText(e), e.stroke?.width && e.stroke.width > 0 && e.stroke.color) {
40365
40374
  const a = new ti({
40366
40375
  thickness: e.stroke.width,
40367
40376
  color: e.stroke.color
@@ -40420,7 +40429,7 @@ class ya extends Nt {
40420
40429
  }
40421
40430
  createTextStyle(e) {
40422
40431
  const s = e.font?.family ?? "Open Sans", { baseFontFamily: a, fontWeight: i } = Gt(s), { width: r } = this.getSize();
40423
- return new q.TextStyle({
40432
+ return new X.TextStyle({
40424
40433
  fontFamily: a,
40425
40434
  fontSize: e.font?.size ?? 32,
40426
40435
  fill: e.font?.color ?? "#ffffff",
@@ -40564,7 +40573,7 @@ class PA extends Nt {
40564
40573
  if (s.endsWith(".mov"))
40565
40574
  throw new Error(`Video source '${s}' is not supported. .mov files cannot be played in the browser. Please convert to .webm or .mp4 first.`);
40566
40575
  const a = `${s}${s.includes("?") ? "&" : "?"}x-cors=1`, i = { src: a, data: { autoPlay: !1, muted: !1 } }, r = await this.edit.assetLoader.loadVideoUnique(a, i);
40567
- if (!r || !(r.source instanceof q.VideoSource))
40576
+ if (!r || !(r.source instanceof X.VideoSource))
40568
40577
  throw new Error(`Invalid video source '${s}'.`);
40569
40578
  r.source.alphaMode = "no-premultiply-alpha", this.texture = this.createCroppedTexture(r);
40570
40579
  const n = this.texture.source.resource;
@@ -40573,7 +40582,7 @@ class PA extends Nt {
40573
40582
  n.removeEventListener("loadeddata", l), o();
40574
40583
  };
40575
40584
  n.addEventListener("loadeddata", l), n.readyState >= 2 && o();
40576
- }), this.sprite = new q.Sprite(this.texture), this.contentContainer.addChild(this.sprite);
40585
+ }), this.sprite = new X.Sprite(this.texture), this.contentContainer.addChild(this.sprite);
40577
40586
  }
40578
40587
  disposeVideo() {
40579
40588
  this.texture?.source?.resource && (this.texture.source.resource.pause(), this.texture.source.resource.src = "", this.texture.source.resource.load()), this.sprite && (this.contentContainer.removeChild(this.sprite), this.sprite.destroy(), this.sprite = null), this.texture && (this.texture.destroy(!0), this.texture = null);
@@ -40593,8 +40602,8 @@ class PA extends Nt {
40593
40602
  const a = e.width, i = e.height;
40594
40603
  if (a <= 0 || i <= 0)
40595
40604
  return e;
40596
- const r = Math.floor((s.crop?.left ?? 0) * a), n = Math.floor((s.crop?.right ?? 0) * a), o = Math.floor((s.crop?.top ?? 0) * i), l = Math.floor((s.crop?.bottom ?? 0) * i), c = r, f = o, h = a - r - n, d = i - o - l, y = new q.Rectangle(c, f, h, d);
40597
- return new q.Texture({ source: e.source, frame: y });
40605
+ const r = Math.floor((s.crop?.left ?? 0) * a), n = Math.floor((s.crop?.right ?? 0) * a), o = Math.floor((s.crop?.top ?? 0) * i), l = Math.floor((s.crop?.bottom ?? 0) * i), c = r, f = o, h = a - r - n, d = i - o - l, y = new X.Rectangle(c, f, h, d);
40606
+ return new X.Texture({ source: e.source, frame: y });
40598
40607
  }
40599
40608
  }
40600
40609
  class Vc {
@@ -41033,12 +41042,12 @@ class _n {
41033
41042
  const n = this.trackIndex >= 0 ? this.trackIndex : a.layer - 1, o = this.clipIndex >= 0 ? this.clipIndex : e.getTracks()[n]?.indexOf(a) ?? -1, l = this.storedFinalConfig ?? this.finalClipConfig;
41034
41043
  l && s.replaceClipProperties(n, o, l), e.resolve();
41035
41044
  const c = e.getClipAt(n, o);
41036
- for (const [C, { resolvedValue: E }] of this.storedInitialBindings)
41037
- (c ? Hi(c.clipConfiguration, C) : void 0) !== E && this.clipId && e.removeClipBinding(this.clipId, C);
41045
+ for (const [x, { resolvedValue: P }] of this.storedInitialBindings)
41046
+ (c ? Hi(c.clipConfiguration, x) : void 0) !== P && this.clipId && e.removeClipBinding(this.clipId, x);
41038
41047
  const f = this.storedInitialConfig ?? this.initialClipConfig, h = this.storedFinalConfig ?? this.finalClipConfig, d = f?.asset, y = h?.asset;
41039
41048
  if (d?.src !== y?.src) {
41040
- const C = e.getClipAt(n, o);
41041
- C && C.getTimingIntent().length === "auto" && await e.resolveClipAutoLength(C);
41049
+ const x = e.getClipAt(n, o);
41050
+ x && x.getTimingIntent().length === "auto" && await e.resolveClipAutoLength(x);
41042
41051
  }
41043
41052
  const m = e.getDocumentClip(n, o);
41044
41053
  if (!this.previousDocClip || !m)
@@ -41264,7 +41273,7 @@ class HA {
41264
41273
  if (s === -1)
41265
41274
  return;
41266
41275
  const a = this.activeLumaMasks[s];
41267
- a.contentClip && (a.contentClip.getContentContainer().mask = null), a.maskSprite.parent?.removeChild(a.maskSprite), a.tempContainer.destroy({ children: !0 }), this.activeLumaMasks.splice(s, 1), this.pendingMaskCleanup.push({ maskSprite: a.maskSprite, frameCount: 0 });
41276
+ a.contentClip && (a.contentClip.getLumaWrapper().mask = null), a.maskSprite.parent?.removeChild(a.maskSprite), a.tempContainer.destroy({ children: !0 }), this.activeLumaMasks.splice(s, 1), this.pendingMaskCleanup.push({ maskSprite: a.maskSprite, frameCount: 0 });
41268
41277
  }
41269
41278
  /**
41270
41279
  * Handle PlayerLoaded event - set up luma mask if player is a luma player.
@@ -41288,16 +41297,16 @@ class HA {
41288
41297
  const i = this.getCanvas();
41289
41298
  if (!i)
41290
41299
  return;
41291
- const { renderer: r } = i.application, { width: n, height: o } = a.getSize(), l = new q.Container(), c = new q.Sprite(s);
41300
+ const { renderer: r } = i.application, { width: n, height: o } = a.getSize(), l = new X.Container(), c = new X.Sprite(s);
41292
41301
  c.width = n, c.height = o;
41293
- const f = new q.ColorMatrixFilter();
41302
+ const f = new X.ColorMatrixFilter();
41294
41303
  f.negative(!1), c.filters = [f], l.addChild(c);
41295
41304
  const h = r.generateTexture({
41296
41305
  target: l,
41297
41306
  resolution: Ic
41298
- }), d = new q.Sprite(h);
41307
+ }), d = new X.Sprite(h);
41299
41308
  a.getContainer().addChild(d);
41300
- const y = a.getContentContainer();
41309
+ const y = a.getLumaWrapper();
41301
41310
  y.mask = d, this.activeLumaMasks.push({ lumaPlayer: e, maskSprite: d, tempContainer: l, contentClip: a, lastVideoTime: -1 });
41302
41311
  }
41303
41312
  updateLumaMasks() {
@@ -41829,8 +41838,8 @@ class sN {
41829
41838
  for (let n = 0; n < i.length; n += 1) {
41830
41839
  const o = i[n], l = r?.clips[n], c = o.getTimingIntent(), f = Wt(c.start), h = Wt(c.length);
41831
41840
  if ((f || h) && l) {
41832
- const d = o.getStart(), y = o.getLength(), m = Math.abs(l.start - d) > 1e-3, C = Math.abs(l.length - y) > 1e-3;
41833
- (m || C) && (o.setResolvedTiming({
41841
+ const d = o.getStart(), y = o.getLength(), m = Math.abs(l.start - d) > 1e-3, x = Math.abs(l.length - y) > 1e-3;
41842
+ (m || x) && (o.setResolvedTiming({
41834
41843
  start: l.start,
41835
41844
  length: l.length
41836
41845
  }), o.reconfigureAfterRestore());
@@ -41884,14 +41893,14 @@ class Sr {
41884
41893
  return s <= 1 ? (this.refCounts.delete(e), !0) : (this.refCounts.set(e, s - 1), !1);
41885
41894
  }
41886
41895
  constructor() {
41887
- q.Assets.setPreferences({ crossOrigin: "anonymous" });
41896
+ X.Assets.setPreferences({ crossOrigin: "anonymous" });
41888
41897
  }
41889
41898
  async load(e, s) {
41890
41899
  this.updateAssetLoadMetadata(e, "pending", 0), this.incrementRef(e);
41891
41900
  try {
41892
41901
  if (await this.shouldUseSafariVideoLoader(s))
41893
41902
  return await this.loadVideoForSafari(e, s);
41894
- const i = await q.Assets.load(s, (r) => {
41903
+ const i = await X.Assets.load(s, (r) => {
41895
41904
  this.updateAssetLoadMetadata(e, "loading", r);
41896
41905
  });
41897
41906
  return this.updateAssetLoadMetadata(e, "success", 1), i;
@@ -41916,12 +41925,12 @@ class Sr {
41916
41925
  "loadedmetadata",
41917
41926
  () => {
41918
41927
  try {
41919
- const c = new q.VideoSource({
41928
+ const c = new X.VideoSource({
41920
41929
  resource: l,
41921
41930
  autoPlay: i.autoPlay ?? !1,
41922
41931
  ...i
41923
41932
  });
41924
- n(new q.Texture({ source: c }));
41933
+ n(new X.Texture({ source: c }));
41925
41934
  } catch (c) {
41926
41935
  o(c);
41927
41936
  }
@@ -41974,12 +41983,12 @@ class Sr {
41974
41983
  "loadedmetadata",
41975
41984
  () => {
41976
41985
  try {
41977
- const c = new q.VideoSource({
41986
+ const c = new X.VideoSource({
41978
41987
  resource: l,
41979
41988
  autoPlay: i.autoPlay ?? !1,
41980
41989
  ...i
41981
41990
  });
41982
- n(new q.Texture({ source: c }));
41991
+ n(new X.Texture({ source: c }));
41983
41992
  } catch (c) {
41984
41993
  o(c);
41985
41994
  }
@@ -42004,8 +42013,8 @@ class Vr {
42004
42013
  woff2Decompressor;
42005
42014
  constructor() {
42006
42015
  this.id = Vr.Name, this.name = Vr.Name, this.extension = {
42007
- type: [q.ExtensionType.LoadParser],
42008
- priority: q.LoaderParserPriority.High,
42016
+ type: [X.ExtensionType.LoadParser],
42017
+ priority: X.LoaderParserPriority.High,
42009
42018
  ref: null
42010
42019
  }, this.validFontExtensions = ["ttf", "otf", "woff", "woff2"], this.woff2Decompressor = null;
42011
42020
  }
@@ -42925,31 +42934,31 @@ function Pc(t, e) {
42925
42934
  for (const y of r) {
42926
42935
  const m = n.get(y);
42927
42936
  if (m) {
42928
- const { clip: C, trackIndex: E, clipIndex: F } = m, N = H0(C, e.mergeFields), v = c.get(E) ?? 0, P = K0(N, v, l);
42929
- o.set(`${E}-${F}`, P);
42930
- const b = P.start + P.length, U = c.get(E) ?? 0;
42931
- b > U && c.set(E, b), C.alias && l.set(C.alias, {
42932
- start: P.start,
42933
- length: P.length
42937
+ const { clip: x, trackIndex: P, clipIndex: F } = m, N = H0(x, e.mergeFields), v = c.get(P) ?? 0, E = K0(N, v, l);
42938
+ o.set(`${P}-${F}`, E);
42939
+ const b = E.start + E.length, U = c.get(P) ?? 0;
42940
+ b > U && c.set(P, b), x.alias && l.set(x.alias, {
42941
+ start: E.start,
42942
+ length: E.length
42934
42943
  });
42935
42944
  }
42936
42945
  }
42937
42946
  const f = [];
42938
42947
  for (let y = 0; y < t.getTrackCount(); y += 1) {
42939
- const m = t.getClipsInTrack(y).length, C = [];
42940
- for (let E = 0; E < m; E += 1) {
42941
- const F = o.get(`${y}-${E}`);
42948
+ const m = t.getClipsInTrack(y).length, x = [];
42949
+ for (let P = 0; P < m; P += 1) {
42950
+ const F = o.get(`${y}-${P}`);
42942
42951
  if (!F)
42943
- throw new Error(`Internal error: Clip at track ${y}, index ${E} was not resolved.`);
42944
- C.push(F);
42952
+ throw new Error(`Internal error: Clip at track ${y}, index ${P} was not resolved.`);
42953
+ x.push(F);
42945
42954
  }
42946
- f.push({ clips: C });
42955
+ f.push({ clips: x });
42947
42956
  }
42948
42957
  const h = uN(f), d = f.map((y) => ({
42949
42958
  clips: y.clips.map((m) => {
42950
42959
  if (m.pendingEndLength) {
42951
- const C = Math.max(h - m.start, 0.1);
42952
- return to({ ...m, length: C });
42960
+ const x = Math.max(h - m.start, 0.1);
42961
+ return to({ ...m, length: x });
42953
42962
  }
42954
42963
  return to(m);
42955
42964
  })
@@ -43859,7 +43868,7 @@ class ci {
43859
43868
  const s = this.canvas?.getViewportContainer();
43860
43869
  if (s) {
43861
43870
  for (const a of s.children)
43862
- if (a instanceof q.Container && a.label?.toString().startsWith("shotstack-track-") && a.children.includes(e.getContainer())) {
43871
+ if (a instanceof X.Container && a.label?.toString().startsWith("shotstack-track-") && a.children.includes(e.getContainer())) {
43863
43872
  a.removeChild(e.getContainer());
43864
43873
  break;
43865
43874
  }
@@ -43871,7 +43880,7 @@ class ci {
43871
43880
  }
43872
43881
  unloadClipAssets(e) {
43873
43882
  const { asset: s } = e.clipConfiguration;
43874
- s && "src" in s && typeof s.src == "string" && this.assetLoader.decrementRef(s.src) && q.Assets.cache.has(s.src) && q.Assets.unload(s.src);
43883
+ s && "src" in s && typeof s.src == "string" && this.assetLoader.decrementRef(s.src) && X.Assets.cache.has(s.src) && X.Assets.unload(s.src);
43875
43884
  }
43876
43885
  /** @internal */
43877
43886
  clearClips() {
@@ -44569,8 +44578,8 @@ class BN extends ci {
44569
44578
  resolvedValue: h
44570
44579
  };
44571
44580
  if (r.setClipBinding(i, l, d), o) {
44572
- const m = (typeof h == "string" ? h.trim() : "").length > 0 ? Number(h) : NaN, C = Number.isFinite(m) ? m : h;
44573
- ps(o.clip, l, C);
44581
+ const m = (typeof h == "string" ? h.trim() : "").length > 0 ? Number(h) : NaN, x = Number.isFinite(m) ? m : h;
44582
+ ps(o.clip, l, x);
44574
44583
  }
44575
44584
  }
44576
44585
  }
@@ -44625,14 +44634,14 @@ var yN = zf({
44625
44634
  }
44626
44635
  var y, m;
44627
44636
  if (c) {
44628
- var C = gw("fs");
44637
+ var x = gw("fs");
44629
44638
  h = __dirname + "/", m = (k) => {
44630
- k = P(k) ? new URL(k) : k;
44631
- var se = C.readFileSync(k);
44639
+ k = E(k) ? new URL(k) : k;
44640
+ var se = x.readFileSync(k);
44632
44641
  return se;
44633
44642
  }, y = async (k, se = !0) => {
44634
- k = P(k) ? new URL(k) : k;
44635
- var _e = C.readFileSync(k, se ? void 0 : "utf8");
44643
+ k = E(k) ? new URL(k) : k;
44644
+ var _e = x.readFileSync(k, se ? void 0 : "utf8");
44636
44645
  return _e;
44637
44646
  }, process.argv.length > 1 && process.argv[1].replace(/\\/g, "/"), process.argv.slice(2), f = (k, se) => {
44638
44647
  throw process.exitCode = k, se;
@@ -44646,7 +44655,7 @@ var yN = zf({
44646
44655
  var se = new XMLHttpRequest();
44647
44656
  return se.open("GET", k, !1), se.responseType = "arraybuffer", se.send(null), new Uint8Array(se.response);
44648
44657
  }), y = async (k) => {
44649
- if (P(k))
44658
+ if (E(k))
44650
44659
  return new Promise((_e, Me) => {
44651
44660
  var Ze = new XMLHttpRequest();
44652
44661
  Ze.open("GET", k, !0), Ze.responseType = "arraybuffer", Ze.onload = () => {
@@ -44664,7 +44673,7 @@ var yN = zf({
44664
44673
  };
44665
44674
  }
44666
44675
  console.log.bind(console);
44667
- var E = console.error.bind(console), F, N = !1, v, P = (k) => k.startsWith("file://"), b, U, B, L, J = !1;
44676
+ var P = console.error.bind(console), F, N = !1, v, E = (k) => k.startsWith("file://"), b, U, B, L, J = !1;
44668
44677
  function ee() {
44669
44678
  var k = B.buffer;
44670
44679
  n.HEAP8 = new Int8Array(k), n.HEAPU8 = L = new Uint8Array(k), n.HEAP32 = new Int32Array(k), n.HEAPU32 = new Uint32Array(k), n.HEAPF32 = new Float32Array(k), new BigInt64Array(k), new BigUint64Array(k);
@@ -44695,7 +44704,7 @@ var yN = zf({
44695
44704
  }
44696
44705
  }
44697
44706
  function G(k) {
44698
- n.onAbort?.(k), k = "Aborted(" + k + ")", E(k), N = !0, k += ". Build with -sASSERTIONS for more info.";
44707
+ n.onAbort?.(k), k = "Aborted(" + k + ")", P(k), N = !0, k += ". Build with -sASSERTIONS for more info.";
44699
44708
  var se = new WebAssembly.RuntimeError(k);
44700
44709
  throw U?.(se), se;
44701
44710
  }
@@ -44724,16 +44733,16 @@ var yN = zf({
44724
44733
  var _e = await de(k), Me = await WebAssembly.instantiate(_e, se);
44725
44734
  return Me;
44726
44735
  } catch (Ze) {
44727
- E(`failed to asynchronously prepare wasm: ${Ze}`), G(Ze);
44736
+ P(`failed to asynchronously prepare wasm: ${Ze}`), G(Ze);
44728
44737
  }
44729
44738
  }
44730
44739
  async function Le(k, se, _e) {
44731
- if (!k && !P(se) && !c)
44740
+ if (!k && !E(se) && !c)
44732
44741
  try {
44733
44742
  var Me = fetch(se, { credentials: "same-origin" }), Ze = await WebAssembly.instantiateStreaming(Me, _e);
44734
44743
  return Ze;
44735
44744
  } catch (ct) {
44736
- E(`wasm streaming compile failed: ${ct}`), E("falling back to ArrayBuffer instantiation");
44745
+ P(`wasm streaming compile failed: ${ct}`), P("falling back to ArrayBuffer instantiation");
44737
44746
  }
44738
44747
  return Ee(se, _e);
44739
44748
  }
@@ -44769,7 +44778,7 @@ var yN = zf({
44769
44778
  k.shift()(n);
44770
44779
  }, z = [], M = (k) => z.push(k), O = [], $ = (k) => O.push(k), oe = !0, ae = () => G(""), ne = 0, ye = () => {
44771
44780
  oe = !1, ne = 0;
44772
- }, ie = {}, X = (k) => {
44781
+ }, ie = {}, q = (k) => {
44773
44782
  if (k instanceof ot || k == "unwind")
44774
44783
  return v;
44775
44784
  f(1, k);
@@ -44782,14 +44791,14 @@ var yN = zf({
44782
44791
  try {
44783
44792
  Ge(v);
44784
44793
  } catch (k) {
44785
- X(k);
44794
+ q(k);
44786
44795
  }
44787
44796
  }, at = (k) => {
44788
44797
  if (!N)
44789
44798
  try {
44790
44799
  k(), st();
44791
44800
  } catch (se) {
44792
- X(se);
44801
+ q(se);
44793
44802
  }
44794
44803
  }, bt = () => performance.now(), kt = (k, se) => {
44795
44804
  if (ie[k] && (clearTimeout(ie[k].id), delete ie[k]), !se) return 0;
@@ -44849,7 +44858,7 @@ var yN = zf({
44849
44858
  }, Ci = (k) => {
44850
44859
  Et.delete(Os(k)), bs(k, null), sa.push(k);
44851
44860
  };
44852
- n.noExitRuntime && (oe = n.noExitRuntime), n.print && n.print, n.printErr && (E = n.printErr), n.wasmBinary && (F = n.wasmBinary), n.arguments && n.arguments, n.thisProgram && n.thisProgram, n.wasmMemory = B, n.wasmExports = Lt, n.addFunction = xi, n.removeFunction = Ci;
44861
+ n.noExitRuntime && (oe = n.noExitRuntime), n.print && n.print, n.printErr && (P = n.printErr), n.wasmBinary && (F = n.wasmBinary), n.arguments && n.arguments, n.thisProgram && n.thisProgram, n.wasmMemory = B, n.wasmExports = Lt, n.addFunction = xi, n.removeFunction = Ci;
44853
44862
  var Fa;
44854
44863
  function Ai(k) {
44855
44864
  n._hb_blob_create = k.hb_blob_create, n._hb_blob_destroy = k.hb_blob_destroy, n._hb_blob_get_length = k.hb_blob_get_length, n._hb_blob_get_data = k.hb_blob_get_data, n._hb_buffer_serialize_glyphs = k.hb_buffer_serialize_glyphs, n._hb_buffer_create = k.hb_buffer_create, n._hb_buffer_destroy = k.hb_buffer_destroy, n._hb_buffer_get_content_type = k.hb_buffer_get_content_type, n._hb_buffer_set_direction = k.hb_buffer_set_direction, n._hb_buffer_set_script = k.hb_buffer_set_script, n._hb_buffer_set_language = k.hb_buffer_set_language, n._hb_buffer_set_flags = k.hb_buffer_set_flags, n._hb_buffer_set_cluster_level = k.hb_buffer_set_cluster_level, n._hb_buffer_get_length = k.hb_buffer_get_length, n._hb_buffer_get_glyph_infos = k.hb_buffer_get_glyph_infos, n._hb_buffer_get_glyph_positions = k.hb_buffer_get_glyph_positions, n._hb_glyph_info_get_glyph_flags = k.hb_glyph_info_get_glyph_flags, n._hb_buffer_guess_segment_properties = k.hb_buffer_guess_segment_properties, n._hb_buffer_add_utf8 = k.hb_buffer_add_utf8, n._hb_buffer_add_utf16 = k.hb_buffer_add_utf16, n._hb_buffer_set_message_func = k.hb_buffer_set_message_func, n._hb_language_from_string = k.hb_language_from_string, n._hb_script_from_string = k.hb_script_from_string, n._hb_version = k.hb_version, n._hb_version_string = k.hb_version_string, n._hb_feature_from_string = k.hb_feature_from_string, n._malloc = k.malloc, n._free = k.free, n._hb_draw_funcs_set_move_to_func = k.hb_draw_funcs_set_move_to_func, n._hb_draw_funcs_set_line_to_func = k.hb_draw_funcs_set_line_to_func, n._hb_draw_funcs_set_quadratic_to_func = k.hb_draw_funcs_set_quadratic_to_func, n._hb_draw_funcs_set_cubic_to_func = k.hb_draw_funcs_set_cubic_to_func, n._hb_draw_funcs_set_close_path_func = k.hb_draw_funcs_set_close_path_func, n._hb_draw_funcs_create = k.hb_draw_funcs_create, n._hb_draw_funcs_destroy = k.hb_draw_funcs_destroy, n._hb_face_create = k.hb_face_create, n._hb_face_destroy = k.hb_face_destroy, n._hb_face_reference_table = k.hb_face_reference_table, n._hb_face_get_upem = k.hb_face_get_upem, n._hb_face_collect_unicodes = k.hb_face_collect_unicodes, n._hb_font_draw_glyph = k.hb_font_draw_glyph, n._hb_font_glyph_to_string = k.hb_font_glyph_to_string, n._hb_font_create = k.hb_font_create, n._hb_font_set_variations = k.hb_font_set_variations, n._hb_font_destroy = k.hb_font_destroy, n._hb_font_set_scale = k.hb_font_set_scale, n._hb_set_create = k.hb_set_create, n._hb_set_destroy = k.hb_set_destroy, n._hb_ot_var_get_axis_infos = k.hb_ot_var_get_axis_infos, n._hb_set_get_population = k.hb_set_get_population, n._hb_set_next_many = k.hb_set_next_many, n._hb_shape = k.hb_shape, Fa = k._emscripten_timeout;
@@ -44896,10 +44905,10 @@ var vN = zf({
44896
44905
  var l = n(function(G) {
44897
44906
  i.free(G);
44898
44907
  }, "vi"), c = 2, f = -1, h = 2, d = 0, y = 1, m = 2;
44899
- function C(G) {
44908
+ function x(G) {
44900
44909
  return (G.charCodeAt(0) & 255) << 24 | (G.charCodeAt(1) & 255) << 16 | (G.charCodeAt(2) & 255) << 8 | (G.charCodeAt(3) & 255) << 0;
44901
44910
  }
44902
- var E = C("JSON"), F = 4;
44911
+ var P = x("JSON"), F = 4;
44903
44912
  function N(G) {
44904
44913
  return [
44905
44914
  String.fromCharCode(G >> 24 & 255),
@@ -44911,7 +44920,7 @@ var vN = zf({
44911
44920
  function v(G) {
44912
44921
  return G == "BOT" ? 1 : G == "EOT" ? 2 : G == "PRESERVE_DEFAULT_IGNORABLES" ? 4 : G == "REMOVE_DEFAULT_IGNORABLES" ? 8 : G == "DO_NOT_INSERT_DOTTED_CIRCLE" ? 16 : G == "PRODUCE_UNSAFE_TO_CONCAT" ? 64 : 0;
44913
44922
  }
44914
- function P(G) {
44923
+ function E(G) {
44915
44924
  var Y = i.malloc(G.byteLength);
44916
44925
  a.HEAPU8.set(new Uint8Array(G), Y);
44917
44926
  var W = i.hb_blob_create(Y, G.byteLength, c, Y, l);
@@ -44940,7 +44949,7 @@ var vN = zf({
44940
44949
  * @param {string} table Table name
44941
44950
  */
44942
44951
  reference_table: function(de) {
44943
- var Ee = i.hb_face_reference_table(W, C(de)), Le = i.hb_blob_get_length(Ee);
44952
+ var Ee = i.hb_face_reference_table(W, x(de)), Le = i.hb_blob_get_length(Ee);
44944
44953
  if (Le) {
44945
44954
  var Te = i.hb_blob_get_data(Ee, null), Pe = a.HEAPU8.subarray(Te, Te + Le);
44946
44955
  return Pe;
@@ -44983,14 +44992,14 @@ var vN = zf({
44983
44992
  var Y = i.hb_font_create(G.ptr), W = null, me = null, de = null, Ee = null, Le = null, Te = null;
44984
44993
  function Pe(H) {
44985
44994
  if (!W) {
44986
- var z = function(ae, ne, ye, ie, X, ve) {
44987
- B += `M${ie},${X}`;
44988
- }, M = function(ae, ne, ye, ie, X, ve) {
44989
- B += `L${ie},${X}`;
44990
- }, O = function(ae, ne, ye, ie, X, ve, je, dt, Ge, st) {
44991
- B += `C${ie},${X} ${ve},${je} ${dt},${Ge}`;
44992
- }, $ = function(ae, ne, ye, ie, X, ve, je, dt) {
44993
- B += `Q${ie},${X} ${ve},${je}`;
44995
+ var z = function(ae, ne, ye, ie, q, ve) {
44996
+ B += `M${ie},${q}`;
44997
+ }, M = function(ae, ne, ye, ie, q, ve) {
44998
+ B += `L${ie},${q}`;
44999
+ }, O = function(ae, ne, ye, ie, q, ve, je, dt, Ge, st) {
45000
+ B += `C${ie},${q} ${ve},${je} ${dt},${Ge}`;
45001
+ }, $ = function(ae, ne, ye, ie, q, ve, je, dt) {
45002
+ B += `Q${ie},${q} ${ve},${je}`;
44994
45003
  }, oe = function(ae, ne, ye, ie) {
44995
45004
  B += "Z";
44996
45005
  };
@@ -45046,7 +45055,7 @@ var vN = zf({
45046
45055
  setVariations: function(H) {
45047
45056
  var z = Object.entries(H), M = i.malloc(8 * z.length);
45048
45057
  z.forEach(function(O, $) {
45049
- a.HEAPU32[M / 4 + $ * 2 + 0] = C(O[0]), a.HEAPF32[M / 4 + $ * 2 + 1] = O[1];
45058
+ a.HEAPU32[M / 4 + $ * 2 + 0] = x(O[0]), a.HEAPF32[M / 4 + $ * 2 + 1] = O[1];
45050
45059
  }), i.hb_font_set_variations(Y, M, z.length), i.free(M);
45051
45060
  },
45052
45061
  /**
@@ -45210,7 +45219,7 @@ var vN = zf({
45210
45219
  Pe,
45211
45220
  0,
45212
45221
  O,
45213
- E,
45222
+ P,
45214
45223
  F
45215
45224
  ), Ee.push({
45216
45225
  m: ae,
@@ -45235,7 +45244,7 @@ var vN = zf({
45235
45244
  return Y;
45236
45245
  }
45237
45246
  return {
45238
- createBlob: P,
45247
+ createBlob: E,
45239
45248
  createFace: U,
45240
45249
  createFont: ee,
45241
45250
  createBuffer: re,