@shotstack/shotstack-studio 2.9.0 → 2.9.1

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,6 +1,6 @@
1
1
  import * as ot from "pixi.js";
2
2
  import * as zd from "howler";
3
- import * as Fs from "pixi-filters";
3
+ import * as Ns from "pixi-filters";
4
4
  import * as u0 from "opentype.js";
5
5
  class t6 {
6
6
  curves = {};
@@ -132,7 +132,7 @@ class t6 {
132
132
  return v ** 3 * h + 3 * v ** 2 * w * m + 3 * v * w ** 2 * d + w ** 3 * y;
133
133
  }
134
134
  }
135
- class Ea {
135
+ class ka {
136
136
  property;
137
137
  length;
138
138
  cubicBuilder;
@@ -269,7 +269,7 @@ class Vn {
269
269
  addLayer(e) {
270
270
  if (e.length === 0) return;
271
271
  const r = this.mode === "additive" ? 0 : 1;
272
- this.layers.push(new Ea(e, this.length, r));
272
+ this.layers.push(new ka(e, this.length, r));
273
273
  }
274
274
  /**
275
275
  * Get the composed value at a specific time.
@@ -713,9 +713,8 @@ class c6 {
713
713
  }
714
714
  }
715
715
  var Ne = /* @__PURE__ */ ((t) => (t.Video = "video", t.Image = "image", t.Audio = "audio", t.Text = "text", t.RichText = "rich-text", t.Luma = "luma", t.Html = "html", t.Shape = "shape", t.Caption = "caption", t.Svg = "svg", t.TextToImage = "text-to-image", t.ImageToVideo = "image-to-video", t.TextToSpeech = "text-to-speech", t.RichCaption = "rich-caption", t))(Ne || {});
716
- class ir extends c6 {
716
+ class hr extends c6 {
717
717
  static DiscardedFrameCount = 0;
718
- static DoubleClickThresholdMs = 350;
719
718
  layer;
720
719
  shouldDispose;
721
720
  playerType;
@@ -766,7 +765,7 @@ class ir extends c6 {
766
765
  }, h = new e6(c).buildRelative(this.edit.size, this.getSize()), m = new r6(c).buildRelative();
767
766
  this.offsetXKeyframeBuilder.addLayer(h.offsetXKeyframes), this.offsetYKeyframeBuilder.addLayer(h.offsetYKeyframes), this.scaleKeyframeBuilder.addLayer(h.scaleKeyframes), this.opacityKeyframeBuilder.addLayer(h.opacityKeyframes), this.rotationKeyframeBuilder.addLayer(h.rotationKeyframes), this.offsetXKeyframeBuilder.addLayer(m.in.offsetXKeyframes), this.offsetYKeyframeBuilder.addLayer(m.in.offsetYKeyframes), this.scaleKeyframeBuilder.addLayer(m.in.scaleKeyframes), this.opacityKeyframeBuilder.addLayer(m.in.opacityKeyframes), this.rotationKeyframeBuilder.addLayer(m.in.rotationKeyframes), this.offsetXKeyframeBuilder.addLayer(m.out.offsetXKeyframes), this.offsetYKeyframeBuilder.addLayer(m.out.offsetYKeyframes), this.scaleKeyframeBuilder.addLayer(m.out.scaleKeyframes), this.opacityKeyframeBuilder.addLayer(m.out.opacityKeyframes), this.rotationKeyframeBuilder.addLayer(m.out.rotationKeyframes);
768
767
  const d = [...m.in.maskXKeyframes, ...m.out.maskXKeyframes];
769
- d.length && (this.maskXKeyframeBuilder = new Ea(d, e));
768
+ d.length && (this.maskXKeyframeBuilder = new ka(d, e));
770
769
  }
771
770
  async load() {
772
771
  this.lumaWrapper?.destroyed && (this.lumaWrapper = new ot.Container(), this.getContainer().addChild(this.lumaWrapper)), this.contentContainer?.destroyed && (this.contentContainer = new ot.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));
@@ -914,22 +913,14 @@ class ir extends c6 {
914
913
  return this.edit.playbackTime >= this.getStart() && this.edit.playbackTime < this.getEnd();
915
914
  }
916
915
  shouldDiscardFrame() {
917
- return this.getPlaybackTime() < ir.DiscardedFrameCount;
916
+ return this.getPlaybackTime() < hr.DiscardedFrameCount;
918
917
  }
919
- /** Timestamp of last single-click on this player, used for double-click detection. */
920
- lastClickAt = 0;
921
918
  /**
922
- * Handle pointer down - emit click event for selection handling.
923
- * Two clicks within DoubleClickThresholdMs on the same player also emit
924
- * CanvasClipDoubleClicked so text-clip editing can be triggered from the canvas.
919
+ * Handle pointer down emit click event for selection handling.
925
920
  * All drag/resize/rotate interaction is handled by SelectionHandles.
926
921
  */
927
922
  onPointerDown(e) {
928
- if (e.button !== o6.ButtonLeftClick)
929
- return;
930
- this.edit.getInternalEvents().emit(Fe.CanvasClipClicked, { player: this });
931
- const r = performance.now();
932
- r - this.lastClickAt <= ir.DoubleClickThresholdMs ? (this.edit.getInternalEvents().emit(Fe.CanvasClipDoubleClicked, { player: this }), this.lastClickAt = 0) : this.lastClickAt = r;
923
+ e.button === o6.ButtonLeftClick && this.edit.getInternalEvents().emit(Fe.CanvasClipClicked, { player: this });
933
924
  }
934
925
  clipHasKeyframes() {
935
926
  return [
@@ -992,14 +983,14 @@ class ir extends c6 {
992
983
  this.onDimensionsChanged();
993
984
  }
994
985
  }
995
- class Ns {
986
+ class Bs {
996
987
  static Name = "AudioLoadParser";
997
988
  id;
998
989
  name;
999
990
  extension;
1000
991
  validAudioExtensions;
1001
992
  constructor() {
1002
- this.id = Ns.Name, this.name = Ns.Name, this.extension = {
993
+ this.id = Bs.Name, this.name = Bs.Name, this.extension = {
1003
994
  type: [ot.ExtensionType.LoadParser],
1004
995
  priority: ot.LoaderParserPriority.Normal,
1005
996
  ref: null
@@ -1019,7 +1010,7 @@ class Ns {
1019
1010
  e?.unload();
1020
1011
  }
1021
1012
  }
1022
- class f6 extends ir {
1013
+ class f6 extends hr {
1023
1014
  audioResource;
1024
1015
  isPlaying;
1025
1016
  volumeKeyframeBuilder;
@@ -1029,12 +1020,12 @@ class f6 extends ir {
1029
1020
  }
1030
1021
  async load() {
1031
1022
  await super.load();
1032
- const e = this.clipConfiguration.asset, r = e.src, n = { src: r, parser: Ns.Name }, i = await this.edit.assetLoader.load(r, n);
1023
+ const e = this.clipConfiguration.asset, r = e.src, n = { src: r, parser: Bs.Name }, i = await this.edit.assetLoader.load(r, n);
1033
1024
  if (!(i instanceof zd.Howl))
1034
1025
  throw new Error(`Invalid audio source '${e.src}'.`);
1035
1026
  this.audioResource = i;
1036
1027
  const s = typeof e.volume == "number" ? e.volume : 1;
1037
- this.volumeKeyframeBuilder = new Ea(this.createVolumeKeyframes(e, s), this.getLength(), s), this.audioResource.volume(this.getVolume()), this.configureKeyframes();
1028
+ this.volumeKeyframeBuilder = new ka(this.createVolumeKeyframes(e, s), this.getLength(), s), this.audioResource.volume(this.getVolume()), this.configureKeyframes();
1038
1029
  }
1039
1030
  update(e, r) {
1040
1031
  super.update(e, r);
@@ -1052,7 +1043,7 @@ class f6 extends ir {
1052
1043
  /** Reload the audio asset when asset.src changes (e.g., merge field update or loadEdit) */
1053
1044
  async reloadAsset() {
1054
1045
  this.audioResource && (this.audioResource.stop(), this.audioResource.unload()), this.audioResource = null, this.isPlaying = !1, this.syncTimer = 0;
1055
- const e = this.clipConfiguration.asset, r = { src: e.src, parser: Ns.Name }, n = await this.edit.assetLoader.load(e.src, r);
1046
+ const e = this.clipConfiguration.asset, r = { src: e.src, parser: Bs.Name }, n = await this.edit.assetLoader.load(e.src, r);
1056
1047
  if (!(n instanceof zd.Howl))
1057
1048
  throw new Error(`Invalid audio source '${e.src}'.`);
1058
1049
  this.audioResource = n, this.audioResource.volume(this.getVolume());
@@ -1060,7 +1051,7 @@ class f6 extends ir {
1060
1051
  reconfigureAfterRestore() {
1061
1052
  super.reconfigureAfterRestore();
1062
1053
  const e = this.clipConfiguration.asset, r = typeof e.volume == "number" ? e.volume : 1;
1063
- this.volumeKeyframeBuilder = new Ea(this.createVolumeKeyframes(e, r), this.getLength(), r);
1054
+ this.volumeKeyframeBuilder = new ka(this.createVolumeKeyframes(e, r), this.getLength(), r);
1064
1055
  }
1065
1056
  getSize() {
1066
1057
  return { width: 0, height: 0 };
@@ -16463,7 +16454,7 @@ function Fr(t) {
16463
16454
  }
16464
16455
  return { baseFontFamily: t, fontWeight: 400 };
16465
16456
  }
16466
- function ka(t, e) {
16457
+ function Sa(t, e) {
16467
16458
  const r = ag.get(t);
16468
16459
  if (r)
16469
16460
  return r.url;
@@ -16523,7 +16514,7 @@ class du {
16523
16514
  }
16524
16515
  }
16525
16516
  const y6 = "Captions will appear here";
16526
- class pu extends ir {
16517
+ class pu extends hr {
16527
16518
  static loadedFonts = /* @__PURE__ */ new Set();
16528
16519
  state = { kind: "loaded", cues: [] };
16529
16520
  currentCue = null;
@@ -16536,7 +16527,7 @@ class pu extends ir {
16536
16527
  await super.load();
16537
16528
  const e = this.clipConfiguration.asset, r = e.font?.family ?? "Open Sans";
16538
16529
  if (await this.loadFont(r), this.state = Nr(e.src) ? { kind: "placeholder" } : await this.loadSubtitles(e.src), this.background = new ot.Graphics(), this.contentContainer.addChild(this.background), this.text = new ot.Text({ text: "", style: this.createTextStyle(e) }), this.text.visible = !1, e.stroke?.width && e.stroke.width > 0 && e.stroke.color) {
16539
- const n = new Fs.OutlineFilter({
16530
+ const n = new Ns.OutlineFilter({
16540
16531
  thickness: e.stroke.width,
16541
16532
  color: e.stroke.color
16542
16533
  });
@@ -16631,7 +16622,7 @@ class pu extends ir {
16631
16622
  const { baseFontFamily: r, fontWeight: n } = Fr(e), i = `${r}-${n}`;
16632
16623
  if (pu.loadedFonts.has(i))
16633
16624
  return;
16634
- const a = ka(e);
16625
+ const a = Sa(e);
16635
16626
  if (a) {
16636
16627
  const s = new FontFace(r, `url(${a})`, {
16637
16628
  weight: n.toString()
@@ -16640,7 +16631,7 @@ class pu extends ir {
16640
16631
  }
16641
16632
  }
16642
16633
  }
16643
- class v6 extends ir {
16634
+ class v6 extends hr {
16644
16635
  background;
16645
16636
  text;
16646
16637
  constructor(e, r) {
@@ -16674,7 +16665,7 @@ class v6 extends ir {
16674
16665
  x: o,
16675
16666
  y: u
16676
16667
  }, r.stroke.color && r.stroke.width) {
16677
- const l = new Fs.OutlineFilter({
16668
+ const l = new Ns.OutlineFilter({
16678
16669
  thickness: r.stroke.width,
16679
16670
  color: r.stroke.color
16680
16671
  });
@@ -16750,7 +16741,7 @@ function Yu(t, e) {
16750
16741
  const r = new ot.Graphics();
16751
16742
  return r.fillStyle = { color: "#cccccc", alpha: 0.5 }, r.rect(0, 0, t, e), r.fill(), r.strokeStyle = { color: "#999999", width: 2 }, r.moveTo(0, 0), r.lineTo(t, e), r.moveTo(t, 0), r.lineTo(0, e), r.stroke(), r;
16752
16743
  }
16753
- class b6 extends ir {
16744
+ class b6 extends hr {
16754
16745
  texture;
16755
16746
  sprite;
16756
16747
  placeholder;
@@ -16843,7 +16834,7 @@ function x6(t) {
16843
16834
  const e = t * 137.5 % 360;
16844
16835
  return [e, (e + 30) % 360, (e + 60) % 360, (e + 90) % 360, (e + 120) % 360];
16845
16836
  }
16846
- function ns(t, e, r) {
16837
+ function as(t, e, r) {
16847
16838
  const n = t / 360, i = e / 100, a = r / 100;
16848
16839
  let s, o, u;
16849
16840
  {
@@ -16950,7 +16941,7 @@ function S6(t) {
16950
16941
  const e = x6(t);
16951
16942
  return [
16952
16943
  {
16953
- color: ns(e[0], 70, 50),
16944
+ color: as(e[0], 70, 50),
16954
16945
  baseAlpha: 0.12,
16955
16946
  baseY: 0.35,
16956
16947
  rayHeight: 0.45,
@@ -16963,7 +16954,7 @@ function S6(t) {
16963
16954
  ]
16964
16955
  },
16965
16956
  {
16966
- color: ns(e[1], 70, 50),
16957
+ color: as(e[1], 70, 50),
16967
16958
  baseAlpha: 0.18,
16968
16959
  baseY: 0.3,
16969
16960
  rayHeight: 0.5,
@@ -16977,7 +16968,7 @@ function S6(t) {
16977
16968
  ]
16978
16969
  },
16979
16970
  {
16980
- color: ns(e[2], 70, 50),
16971
+ color: as(e[2], 70, 50),
16981
16972
  baseAlpha: 0.15,
16982
16973
  baseY: 0.28,
16983
16974
  rayHeight: 0.35,
@@ -16990,7 +16981,7 @@ function S6(t) {
16990
16981
  ]
16991
16982
  },
16992
16983
  {
16993
- color: ns(e[3], 70, 50),
16984
+ color: as(e[3], 70, 50),
16994
16985
  baseAlpha: 0.14,
16995
16986
  baseY: 0.45,
16996
16987
  rayHeight: 0.4,
@@ -17003,7 +16994,7 @@ function S6(t) {
17003
16994
  ]
17004
16995
  },
17005
16996
  {
17006
- color: ns(e[4], 70, 50),
16997
+ color: as(e[4], 70, 50),
17007
16998
  baseAlpha: 0.1,
17008
16999
  baseY: 0.5,
17009
17000
  rayHeight: 0.3,
@@ -17128,7 +17119,7 @@ class l0 {
17128
17119
  this.container.addChild(o);
17129
17120
  }
17130
17121
  }
17131
- class D6 extends ir {
17122
+ class D6 extends hr {
17132
17123
  sprite = null;
17133
17124
  texture = null;
17134
17125
  placeholder = null;
@@ -17195,7 +17186,7 @@ class D6 extends ir {
17195
17186
  this.texture = a, this.sprite = new ot.Sprite(this.texture), this.contentContainer.addChild(this.sprite), this.clipConfiguration.width && this.clipConfiguration.height && this.applyFixedDimensions();
17196
17187
  }
17197
17188
  }
17198
- class F6 extends ir {
17189
+ class F6 extends hr {
17199
17190
  texture;
17200
17191
  sprite;
17201
17192
  isPlaying;
@@ -17362,7 +17353,7 @@ function B6(t) {
17362
17353
  }
17363
17354
  const fg = "captureStackTrace" in Error ? Error.captureStackTrace : (...t) => {
17364
17355
  };
17365
- function Bs(t) {
17356
+ function Is(t) {
17366
17357
  return typeof t == "object" && t !== null && !Array.isArray(t);
17367
17358
  }
17368
17359
  const I6 = /* @__PURE__ */ Hu(() => {
@@ -17375,20 +17366,20 @@ const I6 = /* @__PURE__ */ Hu(() => {
17375
17366
  return !1;
17376
17367
  }
17377
17368
  });
17378
- function Sa(t) {
17379
- if (Bs(t) === !1)
17369
+ function Da(t) {
17370
+ if (Is(t) === !1)
17380
17371
  return !1;
17381
17372
  const e = t.constructor;
17382
17373
  if (e === void 0 || typeof e != "function")
17383
17374
  return !0;
17384
17375
  const r = e.prototype;
17385
- return !(Bs(r) === !1 || Object.prototype.hasOwnProperty.call(r, "isPrototypeOf") === !1);
17376
+ return !(Is(r) === !1 || Object.prototype.hasOwnProperty.call(r, "isPrototypeOf") === !1);
17386
17377
  }
17387
17378
  function hg(t) {
17388
- return Sa(t) ? { ...t } : Array.isArray(t) ? [...t] : t instanceof Map ? new Map(t) : t instanceof Set ? new Set(t) : t;
17379
+ return Da(t) ? { ...t } : Array.isArray(t) ? [...t] : t instanceof Map ? new Map(t) : t instanceof Set ? new Set(t) : t;
17389
17380
  }
17390
17381
  const T6 = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
17391
- function Da(t) {
17382
+ function Fa(t) {
17392
17383
  return t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
17393
17384
  }
17394
17385
  function kn(t, e, r) {
@@ -17455,7 +17446,7 @@ function V6(t, e) {
17455
17446
  return kn(t, a);
17456
17447
  }
17457
17448
  function O6(t, e) {
17458
- if (!Sa(e))
17449
+ if (!Da(e))
17459
17450
  throw new Error("Invalid input to extend: expected a plain object");
17460
17451
  const r = t._zod.def.checks;
17461
17452
  if (r && r.length > 0) {
@@ -17473,7 +17464,7 @@ function O6(t, e) {
17473
17464
  return kn(t, i);
17474
17465
  }
17475
17466
  function R6(t, e) {
17476
- if (!Sa(e))
17467
+ if (!Da(e))
17477
17468
  throw new Error("Invalid input to safeExtend: expected a plain object");
17478
17469
  const r = En(t._zod.def, {
17479
17470
  get shape() {
@@ -17582,7 +17573,7 @@ function Yi(t, e, r) {
17582
17573
  function Y0(t) {
17583
17574
  return Array.isArray(t) ? "array" : typeof t == "string" ? "string" : "unknown";
17584
17575
  }
17585
- function Is(...t) {
17576
+ function Ts(...t) {
17586
17577
  const [e, r, n] = t;
17587
17578
  return typeof e == "string" ? {
17588
17579
  message: e,
@@ -17920,7 +17911,7 @@ const C_ = (t) => {
17920
17911
  e.pattern ?? (e.pattern = D_), Ku.init(t, e);
17921
17912
  }), V_ = /* @__PURE__ */ H("$ZodCheckIncludes", (t, e) => {
17922
17913
  Ir.init(t, e);
17923
- const r = Da(e.includes), n = new RegExp(typeof e.position == "number" ? `^.{${e.position}}${r}` : r);
17914
+ const r = Fa(e.includes), n = new RegExp(typeof e.position == "number" ? `^.{${e.position}}${r}` : r);
17924
17915
  e.pattern = n, t._zod.onattach.push((i) => {
17925
17916
  const a = i._zod.bag;
17926
17917
  a.patterns ?? (a.patterns = /* @__PURE__ */ new Set()), a.patterns.add(n);
@@ -17937,7 +17928,7 @@ const C_ = (t) => {
17937
17928
  };
17938
17929
  }), O_ = /* @__PURE__ */ H("$ZodCheckStartsWith", (t, e) => {
17939
17930
  Ir.init(t, e);
17940
- const r = new RegExp(`^${Da(e.prefix)}.*`);
17931
+ const r = new RegExp(`^${Fa(e.prefix)}.*`);
17941
17932
  e.pattern ?? (e.pattern = r), t._zod.onattach.push((n) => {
17942
17933
  const i = n._zod.bag;
17943
17934
  i.patterns ?? (i.patterns = /* @__PURE__ */ new Set()), i.patterns.add(r);
@@ -17954,7 +17945,7 @@ const C_ = (t) => {
17954
17945
  };
17955
17946
  }), R_ = /* @__PURE__ */ H("$ZodCheckEndsWith", (t, e) => {
17956
17947
  Ir.init(t, e);
17957
- const r = new RegExp(`.*${Da(e.suffix)}$`);
17948
+ const r = new RegExp(`.*${Fa(e.suffix)}$`);
17958
17949
  e.pattern ?? (e.pattern = r), t._zod.onattach.push((n) => {
17959
17950
  const i = n._zod.bag;
17960
17951
  i.patterns ?? (i.patterns = /* @__PURE__ */ new Set()), i.patterns.add(r);
@@ -18445,7 +18436,7 @@ const wx = /* @__PURE__ */ H("$ZodObject", (t, e) => {
18445
18436
  }
18446
18437
  return u;
18447
18438
  });
18448
- const i = Bs, a = e.catchall;
18439
+ const i = Is, a = e.catchall;
18449
18440
  let s;
18450
18441
  t._zod.parse = (o, u) => {
18451
18442
  s ?? (s = n.value);
@@ -18546,7 +18537,7 @@ const wx = /* @__PURE__ */ H("$ZodObject", (t, e) => {
18546
18537
  return (A, _) => B(m, A, _);
18547
18538
  };
18548
18539
  let a;
18549
- const s = Bs, o = !j0.jitless, l = o && I6.value, c = e.catchall;
18540
+ const s = Is, o = !j0.jitless, l = o && I6.value, c = e.catchall;
18550
18541
  let h;
18551
18542
  t._zod.parse = (m, d) => {
18552
18543
  h ?? (h = n.value);
@@ -18635,7 +18626,7 @@ const Sg = /* @__PURE__ */ H("$ZodUnion", (t, e) => {
18635
18626
  });
18636
18627
  t._zod.parse = (i, a) => {
18637
18628
  const s = i.value;
18638
- if (!Bs(s))
18629
+ if (!Is(s))
18639
18630
  return i.issues.push({
18640
18631
  code: "invalid_type",
18641
18632
  expected: "object",
@@ -18665,7 +18656,7 @@ function f0(t, e) {
18665
18656
  return { valid: !0, data: t };
18666
18657
  if (t instanceof Date && e instanceof Date && +t == +e)
18667
18658
  return { valid: !0, data: t };
18668
- if (Sa(t) && Sa(e)) {
18659
+ if (Da(t) && Da(e)) {
18669
18660
  const r = Object.keys(e), n = Object.keys(t).filter((a) => r.indexOf(a) !== -1), i = { ...t, ...e };
18670
18661
  for (const a of n) {
18671
18662
  const s = f0(t[a], e[a]);
@@ -18722,7 +18713,7 @@ function Wd(t, e, r) {
18722
18713
  const Ax = /* @__PURE__ */ H("$ZodRecord", (t, e) => {
18723
18714
  Be.init(t, e), t._zod.parse = (r, n) => {
18724
18715
  const i = r.value;
18725
- if (!Sa(i))
18716
+ if (!Da(i))
18726
18717
  return r.issues.push({
18727
18718
  expected: "record",
18728
18719
  code: "invalid_type",
@@ -18800,7 +18791,7 @@ const Ax = /* @__PURE__ */ H("$ZodRecord", (t, e) => {
18800
18791
  }), Ex = /* @__PURE__ */ H("$ZodEnum", (t, e) => {
18801
18792
  Be.init(t, e);
18802
18793
  const r = cg(e.entries), n = new Set(r);
18803
- t._zod.values = n, t._zod.pattern = new RegExp(`^(${r.filter((i) => T6.has(typeof i)).map((i) => typeof i == "string" ? Da(i) : i.toString()).join("|")})$`), t._zod.parse = (i, a) => {
18794
+ t._zod.values = n, t._zod.pattern = new RegExp(`^(${r.filter((i) => T6.has(typeof i)).map((i) => typeof i == "string" ? Fa(i) : i.toString()).join("|")})$`), t._zod.parse = (i, a) => {
18804
18795
  const s = i.value;
18805
18796
  return n.has(s) || i.issues.push({
18806
18797
  code: "invalid_value",
@@ -18813,7 +18804,7 @@ const Ax = /* @__PURE__ */ H("$ZodRecord", (t, e) => {
18813
18804
  if (Be.init(t, e), e.values.length === 0)
18814
18805
  throw new Error("Cannot create literal schema with no valid values");
18815
18806
  const r = new Set(e.values);
18816
- t._zod.values = r, t._zod.pattern = new RegExp(`^(${e.values.map((n) => typeof n == "string" ? Da(n) : n ? Da(n.toString()) : String(n)).join("|")})$`), t._zod.parse = (n, i) => {
18807
+ t._zod.values = r, t._zod.pattern = new RegExp(`^(${e.values.map((n) => typeof n == "string" ? Fa(n) : n ? Fa(n.toString()) : String(n)).join("|")})$`), t._zod.parse = (n, i) => {
18817
18808
  const a = n.value;
18818
18809
  return r.has(a) || n.issues.push({
18819
18810
  code: "invalid_value",
@@ -18952,7 +18943,7 @@ function Kd(t, e, r, n) {
18952
18943
  continue: !n._zod.def.abort
18953
18944
  // params: inst._zod.def.params,
18954
18945
  };
18955
- n._zod.def.params && (i.params = n._zod.def.params), e.issues.push(Is(i));
18946
+ n._zod.def.params && (i.params = n._zod.def.params), e.issues.push(Ts(i));
18956
18947
  }
18957
18948
  }
18958
18949
  var Jd;
@@ -18989,7 +18980,7 @@ function Ox() {
18989
18980
  return new Vx();
18990
18981
  }
18991
18982
  (Jd = globalThis).__zod_globalRegistry ?? (Jd.__zod_globalRegistry = Ox());
18992
- const ms = globalThis.__zod_globalRegistry;
18983
+ const gs = globalThis.__zod_globalRegistry;
18993
18984
  // @__NO_SIDE_EFFECTS__
18994
18985
  function Rx(t, e) {
18995
18986
  return new t({
@@ -19426,7 +19417,7 @@ function x5(t, e) {
19426
19417
  });
19427
19418
  }
19428
19419
  // @__NO_SIDE_EFFECTS__
19429
- function Za(t) {
19420
+ function Ua(t) {
19430
19421
  return new $_({
19431
19422
  check: "overwrite",
19432
19423
  tx: t
@@ -19434,23 +19425,23 @@ function Za(t) {
19434
19425
  }
19435
19426
  // @__NO_SIDE_EFFECTS__
19436
19427
  function C5(t) {
19437
- return /* @__PURE__ */ Za((e) => e.normalize(t));
19428
+ return /* @__PURE__ */ Ua((e) => e.normalize(t));
19438
19429
  }
19439
19430
  // @__NO_SIDE_EFFECTS__
19440
19431
  function A5() {
19441
- return /* @__PURE__ */ Za((t) => t.trim());
19432
+ return /* @__PURE__ */ Ua((t) => t.trim());
19442
19433
  }
19443
19434
  // @__NO_SIDE_EFFECTS__
19444
19435
  function E5() {
19445
- return /* @__PURE__ */ Za((t) => t.toLowerCase());
19436
+ return /* @__PURE__ */ Ua((t) => t.toLowerCase());
19446
19437
  }
19447
19438
  // @__NO_SIDE_EFFECTS__
19448
19439
  function k5() {
19449
- return /* @__PURE__ */ Za((t) => t.toUpperCase());
19440
+ return /* @__PURE__ */ Ua((t) => t.toUpperCase());
19450
19441
  }
19451
19442
  // @__NO_SIDE_EFFECTS__
19452
19443
  function S5() {
19453
- return /* @__PURE__ */ Za((t) => B6(t));
19444
+ return /* @__PURE__ */ Ua((t) => B6(t));
19454
19445
  }
19455
19446
  // @__NO_SIDE_EFFECTS__
19456
19447
  function D5(t, e, r) {
@@ -19476,10 +19467,10 @@ function F5(t, e, r) {
19476
19467
  function N5(t, e) {
19477
19468
  const r = /* @__PURE__ */ B5((n) => (n.addIssue = (i) => {
19478
19469
  if (typeof i == "string")
19479
- n.issues.push(Is(i, n.value, r._zod.def));
19470
+ n.issues.push(Ts(i, n.value, r._zod.def));
19480
19471
  else {
19481
19472
  const a = i;
19482
- a.fatal && (a.continue = !1), a.code ?? (a.code = "custom"), a.input ?? (a.input = n.value), a.inst ?? (a.inst = r), a.continue ?? (a.continue = !r._zod.def.abort), n.issues.push(Is(a));
19473
+ a.fatal && (a.continue = !1), a.code ?? (a.code = "custom"), a.input ?? (a.input = n.value), a.inst ?? (a.inst = r), a.continue ?? (a.continue = !r._zod.def.abort), n.issues.push(Ts(a));
19483
19474
  }
19484
19475
  }, t(n.value, n)), e);
19485
19476
  return r;
@@ -19496,7 +19487,7 @@ function Ig(t) {
19496
19487
  let e = t?.target ?? "draft-2020-12";
19497
19488
  return e === "draft-4" && (e = "draft-04"), e === "draft-7" && (e = "draft-07"), {
19498
19489
  processors: t.processors ?? {},
19499
- metadataRegistry: t?.metadata ?? ms,
19490
+ metadataRegistry: t?.metadata ?? gs,
19500
19491
  target: e,
19501
19492
  unrepresentable: t?.unrepresentable ?? "throw",
19502
19493
  override: t?.override ?? (() => {
@@ -20017,7 +20008,7 @@ const Te = /* @__PURE__ */ H("ZodType", (t, e) => (Be.init(t, e), Object.assign(
20017
20008
  return this.check(pA(r, n));
20018
20009
  },
20019
20010
  overwrite(r) {
20020
- return this.check(/* @__PURE__ */ Za(r));
20011
+ return this.check(/* @__PURE__ */ Ua(r));
20021
20012
  },
20022
20013
  optional() {
20023
20014
  return f(this);
@@ -20063,13 +20054,13 @@ const Te = /* @__PURE__ */ H("ZodType", (t, e) => (Be.init(t, e), Object.assign(
20063
20054
  },
20064
20055
  describe(r) {
20065
20056
  const n = this.clone();
20066
- return ms.add(n, { description: r }), n;
20057
+ return gs.add(n, { description: r }), n;
20067
20058
  },
20068
20059
  meta(...r) {
20069
20060
  if (r.length === 0)
20070
- return ms.get(this);
20061
+ return gs.get(this);
20071
20062
  const n = this.clone();
20072
- return ms.add(n, r[0]), n;
20063
+ return gs.add(n, r[0]), n;
20073
20064
  },
20074
20065
  isOptional() {
20075
20066
  return this.safeParse(void 0).success;
@@ -20082,7 +20073,7 @@ const Te = /* @__PURE__ */ H("ZodType", (t, e) => (Be.init(t, e), Object.assign(
20082
20073
  }
20083
20074
  }), Object.defineProperty(t, "description", {
20084
20075
  get() {
20085
- return ms.get(t)?.description;
20076
+ return gs.get(t)?.description;
20086
20077
  },
20087
20078
  configurable: !0
20088
20079
  }), t)), zg = /* @__PURE__ */ H("_ZodString", (t, e) => {
@@ -20256,7 +20247,7 @@ function ei(t) {
20256
20247
  const jC = /* @__PURE__ */ H("ZodUnknown", (t, e) => {
20257
20248
  yx.init(t, e), Te.init(t, e), t._zod.processJSONSchema = (r, n, i) => R5();
20258
20249
  });
20259
- function hr() {
20250
+ function fr() {
20260
20251
  return /* @__PURE__ */ m5(jC);
20261
20252
  }
20262
20253
  const GC = /* @__PURE__ */ H("ZodNever", (t, e) => {
@@ -20296,10 +20287,10 @@ const YC = /* @__PURE__ */ H("ZodObject", (t, e) => {
20296
20287
  return this.clone({ ...this._zod.def, catchall: r });
20297
20288
  },
20298
20289
  passthrough() {
20299
- return this.clone({ ...this._zod.def, catchall: hr() });
20290
+ return this.clone({ ...this._zod.def, catchall: fr() });
20300
20291
  },
20301
20292
  loose() {
20302
- return this.clone({ ...this._zod.def, catchall: hr() });
20293
+ return this.clone({ ...this._zod.def, catchall: fr() });
20303
20294
  },
20304
20295
  strict() {
20305
20296
  return this.clone({ ...this._zod.def, catchall: ht() });
@@ -20446,10 +20437,10 @@ const JC = /* @__PURE__ */ H("ZodTransform", (t, e) => {
20446
20437
  throw new lg(t.constructor.name);
20447
20438
  r.addIssue = (a) => {
20448
20439
  if (typeof a == "string")
20449
- r.issues.push(Is(a, r.value, e));
20440
+ r.issues.push(Ts(a, r.value, e));
20450
20441
  else {
20451
20442
  const s = a;
20452
- s.fatal && (s.continue = !1), s.code ?? (s.code = "custom"), s.input ?? (s.input = r.value), s.inst ?? (s.inst = t), r.issues.push(Is(s));
20443
+ s.fatal && (s.continue = !1), s.code ?? (s.code = "custom"), s.input ?? (s.input = r.value), s.inst ?? (s.inst = t), r.issues.push(Ts(s));
20453
20444
  }
20454
20445
  };
20455
20446
  const i = e.transform(r.value, r);
@@ -20885,7 +20876,7 @@ const JA = C({
20885
20876
  }, D()), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
20886
20877
  }).strict(), Gg = C({
20887
20878
  find: p(),
20888
- replace: hr()
20879
+ replace: fr()
20889
20880
  }).strict(), eE = C({
20890
20881
  capture: b([F((t) => {
20891
20882
  if (!(t === "" || t === null || t === void 0))
@@ -20929,7 +20920,7 @@ C({
20929
20920
  C({
20930
20921
  success: Rt(),
20931
20922
  message: p(),
20932
- response: Rg(p(), hr())
20923
+ response: Rg(p(), fr())
20933
20924
  }).strict();
20934
20925
  const nE = C({
20935
20926
  message: p(),
@@ -20965,7 +20956,7 @@ C({
20965
20956
  }).strict();
20966
20957
  const uE = C({
20967
20958
  family: f(p()),
20968
- weight: f(hr()).default("400"),
20959
+ weight: f(fr()).default("400"),
20969
20960
  color: f(b([p().regex(/^#[A-Fa-f0-9]{6}$/), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
20970
20961
  background: f(b([p().regex(/^#[A-Fa-f0-9]{6}$/), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
20971
20962
  opacity: f(b([F((t) => {
@@ -21004,7 +20995,7 @@ const uE = C({
21004
20995
  if (!(t === "" || t === null || t === void 0))
21005
20996
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
21006
20997
  }, D().int().gte(1).lte(500)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(24),
21007
- weight: f(hr()).default("400"),
20998
+ weight: f(fr()).default("400"),
21008
20999
  color: f(b([p().regex(/^#[A-Fa-f0-9]{6}$/), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#ffffff"),
21009
21000
  opacity: f(b([F((t) => {
21010
21001
  if (!(t === "" || t === null || t === void 0))
@@ -21185,7 +21176,7 @@ const uE = C({
21185
21176
  if (!(t === "" || t === null || t === void 0))
21186
21177
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
21187
21178
  }, D().int().gte(1).lte(500)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(24),
21188
- weight: f(hr()).default("400"),
21179
+ weight: f(fr()).default("400"),
21189
21180
  color: f(b([p().regex(/^#[A-Fa-f0-9]{6}$/), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#000000"),
21190
21181
  opacity: f(b([F((t) => {
21191
21182
  if (!(t === "" || t === null || t === void 0))
@@ -21769,8 +21760,8 @@ const SE = C({
21769
21760
  "zoom"
21770
21761
  ]))
21771
21762
  }).strict(), Di = C({
21772
- from: f(hr()),
21773
- to: f(hr()),
21763
+ from: f(fr()),
21764
+ to: f(fr()),
21774
21765
  start: f(b([F((t) => {
21775
21766
  if (!(t === "" || t === null || t === void 0))
21776
21767
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
@@ -22078,7 +22069,7 @@ const SE = C({
22078
22069
  ])),
22079
22070
  transform: f(GE),
22080
22071
  alias: f(b([p().regex(/^[A-Za-z0-9_-]+$/), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
22081
- }).strict(), Fa = a1, HE = a1.transform((t) => {
22072
+ }).strict(), Na = a1, HE = a1.transform((t) => {
22082
22073
  if (t.asset && typeof t.asset == "object" && "type" in t.asset && t.asset.type === "rich-text") {
22083
22074
  const { fit: r, ...n } = t;
22084
22075
  return n;
@@ -22103,7 +22094,7 @@ const SE = C({
22103
22094
  "s2",
22104
22095
  "a1"
22105
22096
  ]))
22106
- }).strict(), gs = Ws, XE = C({
22097
+ }).strict(), ys = Ws, XE = C({
22107
22098
  id: p(),
22108
22099
  owner: p(),
22109
22100
  plan: f(p()),
@@ -22271,10 +22262,10 @@ C({
22271
22262
  path: f(ht()),
22272
22263
  query: f(ht())
22273
22264
  }).strict();
22274
- const JE = OA, QE = xE, tk = rl.shape.format, ek = rl.shape.fps.unwrap(), rk = rl.shape.resolution, ik = rl.shape.aspectRatio, nk = p().regex(/^#[0-9A-Fa-f]{6}$|^#[0-9A-Fa-f]{8}$/), d0 = Fa.extend({ id: p() }), ak = Q0.extend({
22265
+ const JE = OA, QE = xE, tk = rl.shape.format, ek = rl.shape.fps.unwrap(), rk = rl.shape.resolution, ik = rl.shape.aspectRatio, nk = p().regex(/^#[0-9A-Fa-f]{6}$|^#[0-9A-Fa-f]{8}$/), d0 = Na.extend({ id: p() }), ak = Q0.extend({
22275
22266
  clips: Pt(d0).min(1)
22276
22267
  });
22277
- gs.extend({
22268
+ ys.extend({
22278
22269
  timeline: qE.extend({
22279
22270
  tracks: Pt(ak).min(1)
22280
22271
  })
@@ -22628,7 +22619,7 @@ const Xk = C({
22628
22619
  }, D()), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)]))
22629
22620
  }).strict(), f1 = C({
22630
22621
  find: p(),
22631
- replace: hr()
22622
+ replace: fr()
22632
22623
  }).strict(), Qk = C({
22633
22624
  capture: b([F((t) => {
22634
22625
  if (!(t === "" || t === null || t === void 0))
@@ -22672,7 +22663,7 @@ C({
22672
22663
  C({
22673
22664
  success: Rt(),
22674
22665
  message: p(),
22675
- response: Rg(p(), hr())
22666
+ response: Rg(p(), fr())
22676
22667
  }).strict();
22677
22668
  const r7 = C({
22678
22669
  message: p(),
@@ -22708,7 +22699,7 @@ C({
22708
22699
  }).strict();
22709
22700
  const s7 = C({
22710
22701
  family: f(p()),
22711
- weight: f(hr()).default("400"),
22702
+ weight: f(fr()).default("400"),
22712
22703
  color: f(b([p().regex(/^#[A-Fa-f0-9]{6}$/), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
22713
22704
  background: f(b([p().regex(/^#[A-Fa-f0-9]{6}$/), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])),
22714
22705
  opacity: f(b([F((t) => {
@@ -22747,7 +22738,7 @@ const s7 = C({
22747
22738
  if (!(t === "" || t === null || t === void 0))
22748
22739
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
22749
22740
  }, D().int().gte(1).lte(500)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(24),
22750
- weight: f(hr()).default("400"),
22741
+ weight: f(fr()).default("400"),
22751
22742
  color: f(b([p().regex(/^#[A-Fa-f0-9]{6}$/), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#ffffff"),
22752
22743
  opacity: f(b([F((t) => {
22753
22744
  if (!(t === "" || t === null || t === void 0))
@@ -22928,7 +22919,7 @@ const s7 = C({
22928
22919
  if (!(t === "" || t === null || t === void 0))
22929
22920
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
22930
22921
  }, D().int().gte(1).lte(500)), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default(24),
22931
- weight: f(hr()).default("400"),
22922
+ weight: f(fr()).default("400"),
22932
22923
  color: f(b([p().regex(/^#[A-Fa-f0-9]{6}$/), p().regex(/^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/)])).default("#000000"),
22933
22924
  opacity: f(b([F((t) => {
22934
22925
  if (!(t === "" || t === null || t === void 0))
@@ -23512,8 +23503,8 @@ const D7 = C({
23512
23503
  "zoom"
23513
23504
  ]))
23514
23505
  }).strict(), Fi = C({
23515
- from: f(hr()),
23516
- to: f(hr()),
23506
+ from: f(fr()),
23507
+ to: f(fr()),
23517
23508
  start: f(b([F((t) => {
23518
23509
  if (!(t === "" || t === null || t === void 0))
23519
23510
  return Array.isArray(t) ? t : typeof t == "string" ? /^\{\{\s*[A-Za-z0-9_]+\s*\}\}$/.test(t) ? t : Number(t) : t;
@@ -27048,7 +27039,7 @@ var r9 = Ge({
27048
27039
  for (var Je = 0; Je < 3 * A; Je++)
27049
27040
  ae[Je] = new a(0, 0), ce[Je] = new a(0, 0);
27050
27041
  for (; !mt; ) {
27051
- var ve = 0, Pr, Ve = [1 << 28, 1 << 28, 1 << 28], Kt = [0], Ht = [1, 1, 1], or = [0, 1, 0, 1, 0, 1], dr = [0], qe, Ce, Se, Nn, Ii = null, Ti = null, tn, jr = null, pr, Mr = 0, ur = null, Pi = 0, Bn = 0, T = null, dt = 0, qt = 0, fe = 0, ie, $e;
27042
+ var ve = 0, Pr, Ve = [1 << 28, 1 << 28, 1 << 28], Kt = [0], Ht = [1, 1, 1], sr = [0, 1, 0, 1, 0, 1], dr = [0], qe, Ce, Se, Nn, Ii = null, Ti = null, tn, jr = null, pr, Mr = 0, or = null, Pi = 0, Bn = 0, T = null, dt = 0, qt = 0, fe = 0, ie, $e;
27052
27043
  for (tt = 0; tt < 3; ++tt)
27053
27044
  wt[tt].codes = null, wt[tt].htrees = null;
27054
27045
  pt.readMoreInput();
@@ -27080,65 +27071,65 @@ var r9 = Ge({
27080
27071
  pt.readMoreInput(), Ti[tt] = pt.readBits(2) << 1;
27081
27072
  var In = Lt(Ht[0] << w, pt);
27082
27073
  tn = In.num_htrees, Ii = In.context_map;
27083
- var Wa = Lt(Ht[2] << v, pt);
27084
- for (pr = Wa.num_htrees, jr = Wa.context_map, wt[0] = new Dt(m, tn), wt[1] = new Dt(d, Ht[1]), wt[2] = new Dt(Nn, pr), tt = 0; tt < 3; ++tt)
27074
+ var Ya = Lt(Ht[2] << v, pt);
27075
+ for (pr = Ya.num_htrees, jr = Ya.context_map, wt[0] = new Dt(m, tn), wt[1] = new Dt(d, Ht[1]), wt[2] = new Dt(Nn, pr), tt = 0; tt < 3; ++tt)
27085
27076
  wt[tt].decode(pt);
27086
- for (ur = 0, T = 0, ie = Ti[Kt[0]], qt = o.lookupOffsets[ie], fe = o.lookupOffsets[ie + 1], $e = wt[1].htrees[0]; ve > 0; ) {
27087
- var en, Tn, sa, rn, Pn, lr, cr, wr, Mi, fi, kt;
27077
+ for (or = 0, T = 0, ie = Ti[Kt[0]], qt = o.lookupOffsets[ie], fe = o.lookupOffsets[ie + 1], $e = wt[1].htrees[0]; ve > 0; ) {
27078
+ var en, Tn, sa, rn, Pn, ur, lr, wr, Mi, fi, kt;
27088
27079
  for (pt.readMoreInput(), Ve[1] === 0 && (Wt(
27089
27080
  Ht[1],
27090
27081
  ae,
27091
27082
  1,
27092
27083
  Kt,
27093
- or,
27084
+ sr,
27094
27085
  dr,
27095
27086
  pt
27096
- ), Ve[1] = Et(ce, A, pt), $e = wt[1].htrees[Kt[1]]), --Ve[1], en = J(wt[1].codes, $e, pt), Tn = en >> 6, Tn >= 2 ? (Tn -= 2, cr = -1) : cr = 0, sa = u.kInsertRangeLut[Tn] + (en >> 3 & 7), rn = u.kCopyRangeLut[Tn] + (en & 7), Pn = u.kInsertLengthPrefixCode[sa].offset + pt.readBits(u.kInsertLengthPrefixCode[sa].nbits), lr = u.kCopyLengthPrefixCode[rn].offset + pt.readBits(u.kCopyLengthPrefixCode[rn].nbits), St = nt[G - 1 & X], Nt = nt[G - 2 & X], fi = 0; fi < Pn; ++fi)
27087
+ ), Ve[1] = Et(ce, A, pt), $e = wt[1].htrees[Kt[1]]), --Ve[1], en = J(wt[1].codes, $e, pt), Tn = en >> 6, Tn >= 2 ? (Tn -= 2, lr = -1) : lr = 0, sa = u.kInsertRangeLut[Tn] + (en >> 3 & 7), rn = u.kCopyRangeLut[Tn] + (en & 7), Pn = u.kInsertLengthPrefixCode[sa].offset + pt.readBits(u.kInsertLengthPrefixCode[sa].nbits), ur = u.kCopyLengthPrefixCode[rn].offset + pt.readBits(u.kCopyLengthPrefixCode[rn].nbits), St = nt[G - 1 & X], Nt = nt[G - 2 & X], fi = 0; fi < Pn; ++fi)
27097
27088
  pt.readMoreInput(), Ve[0] === 0 && (Wt(
27098
27089
  Ht[0],
27099
27090
  ae,
27100
27091
  0,
27101
27092
  Kt,
27102
- or,
27093
+ sr,
27103
27094
  dr,
27104
27095
  pt
27105
- ), Ve[0] = Et(ce, 0, pt), Mr = Kt[0] << w, ur = Mr, ie = Ti[Kt[0]], qt = o.lookupOffsets[ie], fe = o.lookupOffsets[ie + 1]), Mi = o.lookup[qt + St] | o.lookup[fe + Nt], Pi = Ii[ur + Mi], --Ve[0], Nt = St, St = J(wt[0].codes, wt[0].htrees[Pi], pt), nt[G & X] = St, (G & X) === X && U.write(nt, Bt), ++G;
27096
+ ), Ve[0] = Et(ce, 0, pt), Mr = Kt[0] << w, or = Mr, ie = Ti[Kt[0]], qt = o.lookupOffsets[ie], fe = o.lookupOffsets[ie + 1]), Mi = o.lookup[qt + St] | o.lookup[fe + Nt], Pi = Ii[or + Mi], --Ve[0], Nt = St, St = J(wt[0].codes, wt[0].htrees[Pi], pt), nt[G & X] = St, (G & X) === X && U.write(nt, Bt), ++G;
27106
27097
  if (ve -= Pn, ve <= 0) break;
27107
- if (cr < 0) {
27098
+ if (lr < 0) {
27108
27099
  var Mi;
27109
27100
  if (pt.readMoreInput(), Ve[2] === 0 && (Wt(
27110
27101
  Ht[2],
27111
27102
  ae,
27112
27103
  2,
27113
27104
  Kt,
27114
- or,
27105
+ sr,
27115
27106
  dr,
27116
27107
  pt
27117
- ), Ve[2] = Et(ce, 2 * A, pt), Bn = Kt[2] << v, T = Bn), --Ve[2], Mi = (lr > 4 ? 3 : lr - 2) & 255, dt = jr[T + Mi], cr = J(wt[2].codes, wt[2].htrees[dt], pt), cr >= Ce) {
27108
+ ), Ve[2] = Et(ce, 2 * A, pt), Bn = Kt[2] << v, T = Bn), --Ve[2], Mi = (ur > 4 ? 3 : ur - 2) & 255, dt = jr[T + Mi], lr = J(wt[2].codes, wt[2].htrees[dt], pt), lr >= Ce) {
27118
27109
  var zi, Eo, Gr;
27119
- cr -= Ce, Eo = cr & Se, cr >>= qe, zi = (cr >> 1) + 1, Gr = (2 + (cr & 1) << zi) - 4, cr = Ce + (Gr + pt.readBits(zi) << qe) + Eo;
27110
+ lr -= Ce, Eo = lr & Se, lr >>= qe, zi = (lr >> 1) + 1, Gr = (2 + (lr & 1) << zi) - 4, lr = Ce + (Gr + pt.readBits(zi) << qe) + Eo;
27120
27111
  }
27121
27112
  }
27122
- if (wr = Y(cr, et, Yt), wr < 0)
27113
+ if (wr = Y(lr, et, Yt), wr < 0)
27123
27114
  throw new Error("[BrotliDecompress] invalid distance");
27124
27115
  if (G < gt && At !== gt ? At = G : At = gt, kt = G & X, wr > At)
27125
- if (lr >= i.minDictionaryWordLength && lr <= i.maxDictionaryWordLength) {
27126
- var Gr = i.offsetsByLength[lr], Mn = wr - At - 1, Ya = i.sizeBitsByLength[lr], Ha = (1 << Ya) - 1, oa = Mn & Ha, zn = Mn >> Ya;
27127
- if (Gr += oa * lr, zn < l.kNumTransforms) {
27128
- var ua = l.transformDictionaryWord(nt, kt, Gr, lr, zn);
27116
+ if (ur >= i.minDictionaryWordLength && ur <= i.maxDictionaryWordLength) {
27117
+ var Gr = i.offsetsByLength[ur], Mn = wr - At - 1, Ha = i.sizeBitsByLength[ur], qa = (1 << Ha) - 1, oa = Mn & qa, zn = Mn >> Ha;
27118
+ if (Gr += oa * ur, zn < l.kNumTransforms) {
27119
+ var ua = l.transformDictionaryWord(nt, kt, Gr, ur, zn);
27129
27120
  if (kt += ua, G += ua, ve -= ua, kt >= yt) {
27130
27121
  U.write(nt, Bt);
27131
27122
  for (var Vi = 0; Vi < kt - yt; Vi++)
27132
27123
  nt[Vi] = nt[yt + Vi];
27133
27124
  }
27134
27125
  } else
27135
- throw new Error("Invalid backward reference. pos: " + G + " distance: " + wr + " len: " + lr + " bytes left: " + ve);
27126
+ throw new Error("Invalid backward reference. pos: " + G + " distance: " + wr + " len: " + ur + " bytes left: " + ve);
27136
27127
  } else
27137
- throw new Error("Invalid backward reference. pos: " + G + " distance: " + wr + " len: " + lr + " bytes left: " + ve);
27128
+ throw new Error("Invalid backward reference. pos: " + G + " distance: " + wr + " len: " + ur + " bytes left: " + ve);
27138
27129
  else {
27139
- if (cr > 0 && (et[Yt & 3] = wr, ++Yt), lr > ve)
27140
- throw new Error("Invalid backward reference. pos: " + G + " distance: " + wr + " len: " + lr + " bytes left: " + ve);
27141
- for (fi = 0; fi < lr; ++fi)
27130
+ if (lr > 0 && (et[Yt & 3] = wr, ++Yt), ur > ve)
27131
+ throw new Error("Invalid backward reference. pos: " + G + " distance: " + wr + " len: " + ur + " bytes left: " + ve);
27132
+ for (fi = 0; fi < ur; ++fi)
27142
27133
  nt[G & X] = nt[G - wr & X], (G & X) === X && U.write(nt, Bt), ++G, --ve;
27143
27134
  }
27144
27135
  St = nt[G - 1 & X], Nt = nt[G - 2 & X];
@@ -27175,20 +27166,20 @@ Xi(q, {
27175
27166
  ZodCatch: () => Uh,
27176
27167
  ZodCodec: () => vo,
27177
27168
  ZodCustom: () => bo,
27178
- ZodCustomStringFormat: () => ja,
27169
+ ZodCustomStringFormat: () => Ga,
27179
27170
  ZodDate: () => jl,
27180
27171
  ZodDefault: () => Vh,
27181
27172
  ZodDiscriminatedUnion: () => Ch,
27182
27173
  ZodE164: () => $l,
27183
27174
  ZodEmail: () => kl,
27184
27175
  ZodEmoji: () => Sl,
27185
- ZodEnum: () => Va,
27176
+ ZodEnum: () => Oa,
27186
27177
  ZodError: () => VD,
27187
27178
  ZodExactOptional: () => Ph,
27188
27179
  ZodFile: () => Ih,
27189
27180
  ZodFirstPartyTypeKind: () => b0,
27190
27181
  ZodFunction: () => Qh,
27191
- ZodGUID: () => zs,
27182
+ ZodGUID: () => Vs,
27192
27183
  ZodIPv4: () => Pl,
27193
27184
  ZodIPv6: () => Ml,
27194
27185
  ZodISODate: () => oh,
@@ -27219,7 +27210,7 @@ Xi(q, {
27219
27210
  ZodPromise: () => Jh,
27220
27211
  ZodReadonly: () => Yh,
27221
27212
  ZodRealError: () => Ur,
27222
- ZodRecord: () => za,
27213
+ ZodRecord: () => Va,
27223
27214
  ZodSet: () => Nh,
27224
27215
  ZodString: () => uo,
27225
27216
  ZodStringFormat: () => xe,
@@ -27254,7 +27245,7 @@ Xi(q, {
27254
27245
  clone: () => ii,
27255
27246
  codec: () => uw,
27256
27247
  coerce: () => _w,
27257
- config: () => nr,
27248
+ config: () => ir,
27258
27249
  core: () => I1,
27259
27250
  cuid: () => g3,
27260
27251
  cuid2: () => y3,
@@ -27314,12 +27305,12 @@ Xi(q, {
27314
27305
  mac: () => x3,
27315
27306
  map: () => tw,
27316
27307
  maxLength: () => no,
27317
- maxSize: () => Ua,
27308
+ maxSize: () => ja,
27318
27309
  meta: () => mw,
27319
27310
  mime: () => bl,
27320
27311
  minLength: () => Jn,
27321
27312
  minSize: () => xn,
27322
- multipleOf: () => Ia,
27313
+ multipleOf: () => Ta,
27323
27314
  nan: () => ow,
27324
27315
  nanoid: () => m3,
27325
27316
  nativeEnum: () => rw,
@@ -27330,11 +27321,11 @@ Xi(q, {
27330
27321
  nonpositive: () => th,
27331
27322
  normalize: () => wl,
27332
27323
  null: () => gh,
27333
- nullable: () => Os,
27324
+ nullable: () => Rs,
27334
27325
  nullish: () => aw,
27335
27326
  number: () => fh,
27336
27327
  object: () => Y3,
27337
- optional: () => Vs,
27328
+ optional: () => Os,
27338
27329
  overwrite: () => Ji,
27339
27330
  parse: () => Hb,
27340
27331
  parseAsync: () => qb,
@@ -27364,7 +27355,7 @@ Xi(q, {
27364
27355
  slugify: () => Al,
27365
27356
  startsWith: () => yl,
27366
27357
  strictObject: () => H3,
27367
- string: () => Ms,
27358
+ string: () => zs,
27368
27359
  stringFormat: () => N3,
27369
27360
  stringbool: () => yw,
27370
27361
  success: () => sw,
@@ -27566,12 +27557,12 @@ Xi(I1, {
27566
27557
  _map: () => yD,
27567
27558
  _max: () => ti,
27568
27559
  _maxLength: () => no,
27569
- _maxSize: () => Ua,
27560
+ _maxSize: () => ja,
27570
27561
  _mime: () => bl,
27571
27562
  _min: () => Dr,
27572
27563
  _minLength: () => Jn,
27573
27564
  _minSize: () => xn,
27574
- _multipleOf: () => Ia,
27565
+ _multipleOf: () => Ta,
27575
27566
  _nan: () => Wv,
27576
27567
  _nanoid: () => Of,
27577
27568
  _nativeEnum: () => wD,
@@ -27634,21 +27625,21 @@ Xi(I1, {
27634
27625
  _xid: () => Zf,
27635
27626
  _xor: () => hD,
27636
27627
  clone: () => ii,
27637
- config: () => nr,
27638
- createStandardJSONSchemaMethod: () => Ps,
27628
+ config: () => ir,
27629
+ createStandardJSONSchemaMethod: () => Ms,
27639
27630
  createToJSONSchemaMethod: () => rb,
27640
27631
  decode: () => $9,
27641
27632
  decodeAsync: () => Z9,
27642
27633
  describe: () => Qv,
27643
27634
  encode: () => R9,
27644
27635
  encodeAsync: () => L9,
27645
- extractDefs: () => Pa,
27646
- finalize: () => Ma,
27636
+ extractDefs: () => Ma,
27637
+ finalize: () => za,
27647
27638
  flattenError: () => uf,
27648
27639
  formatError: () => lf,
27649
- globalConfig: () => Ts,
27640
+ globalConfig: () => Ps,
27650
27641
  globalRegistry: () => Qr,
27651
- initializeContext: () => Ta,
27642
+ initializeContext: () => Pa,
27652
27643
  isValidBase64: () => xf,
27653
27644
  isValidBase64URL: () => v4,
27654
27645
  isValidJWT: () => _4,
@@ -27720,9 +27711,9 @@ var P1 = /* @__PURE__ */ Symbol("zod_brand"), Yn = class extends Error {
27720
27711
  }
27721
27712
  };
27722
27713
  (fp = globalThis).__zod_globalConfig ?? (fp.__zod_globalConfig = {});
27723
- var Ts = globalThis.__zod_globalConfig;
27724
- function nr(t) {
27725
- return t && Object.assign(Ts, t), Ts;
27714
+ var Ps = globalThis.__zod_globalConfig;
27715
+ function ir(t) {
27716
+ return t && Object.assign(Ps, t), Ps;
27726
27717
  }
27727
27718
  var Qt = {};
27728
27719
  Xi(Qt, {
@@ -27759,7 +27750,7 @@ Xi(Qt, {
27759
27750
  getParsedType: () => A9,
27760
27751
  getSizableOrigin: () => ll,
27761
27752
  hexToUint8Array: () => z9,
27762
- isObject: () => Na,
27753
+ isObject: () => Ba,
27763
27754
  isPlainObject: () => Kn,
27764
27755
  issue: () => _u,
27765
27756
  joinValues: () => rt,
@@ -27788,7 +27779,7 @@ Xi(Qt, {
27788
27779
  uint8ArrayToBase64: () => G1,
27789
27780
  uint8ArrayToBase64url: () => M9,
27790
27781
  uint8ArrayToHex: () => V9,
27791
- unwrapMessage: () => ys
27782
+ unwrapMessage: () => vs
27792
27783
  });
27793
27784
  function d9(t) {
27794
27785
  return t;
@@ -27900,11 +27891,11 @@ function z1(t) {
27900
27891
  }
27901
27892
  var sf = "captureStackTrace" in Error ? Error.captureStackTrace : (...t) => {
27902
27893
  };
27903
- function Na(t) {
27894
+ function Ba(t) {
27904
27895
  return typeof t == "object" && t !== null && !Array.isArray(t);
27905
27896
  }
27906
27897
  var V1 = /* @__PURE__ */ Hs(() => {
27907
- if (Ts.jitless || typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare"))
27898
+ if (Ps.jitless || typeof navigator < "u" && navigator?.userAgent?.includes("Cloudflare"))
27908
27899
  return !1;
27909
27900
  try {
27910
27901
  const t = Function;
@@ -27914,13 +27905,13 @@ var V1 = /* @__PURE__ */ Hs(() => {
27914
27905
  }
27915
27906
  });
27916
27907
  function Kn(t) {
27917
- if (Na(t) === !1)
27908
+ if (Ba(t) === !1)
27918
27909
  return !1;
27919
27910
  const e = t.constructor;
27920
27911
  if (e === void 0 || typeof e != "function")
27921
27912
  return !0;
27922
27913
  const r = e.prototype;
27923
- return !(Na(r) === !1 || Object.prototype.hasOwnProperty.call(r, "isPrototypeOf") === !1);
27914
+ return !(Ba(r) === !1 || Object.prototype.hasOwnProperty.call(r, "isPrototypeOf") === !1);
27924
27915
  }
27925
27916
  function O1(t) {
27926
27917
  return Kn(t) ? { ...t } : Array.isArray(t) ? [...t] : t instanceof Map ? new Map(t) : t instanceof Set ? new Set(t) : t;
@@ -28177,11 +28168,11 @@ function Jr(t, e) {
28177
28168
  return (n = r).path ?? (n.path = []), r.path.unshift(t), r;
28178
28169
  });
28179
28170
  }
28180
- function ys(t) {
28171
+ function vs(t) {
28181
28172
  return typeof t == "string" ? t : t?.message;
28182
28173
  }
28183
28174
  function Lr(t, e, r) {
28184
- const n = t.message ? t.message : ys(t.inst?._zod.def?.error?.(t)) ?? ys(e?.error?.(t)) ?? ys(r.customError?.(t)) ?? ys(r.localeError?.(t)) ?? "Invalid input", { inst: i, continue: a, input: s, ...o } = t;
28175
+ const n = t.message ? t.message : vs(t.inst?._zod.def?.error?.(t)) ?? vs(e?.error?.(t)) ?? vs(r.customError?.(t)) ?? vs(r.localeError?.(t)) ?? "Invalid input", { inst: i, continue: a, input: s, ...o } = t;
28185
28176
  return o.path ?? (o.path = []), o.message = n, e?.reportInput && (o.input = s), o;
28186
28177
  }
28187
28178
  function ll(t) {
@@ -28338,7 +28329,7 @@ var qs = (t) => (e, r, n, i) => {
28338
28329
  if (s instanceof Promise)
28339
28330
  throw new Yn();
28340
28331
  if (s.issues.length) {
28341
- const o = new (i?.Err ?? t)(s.issues.map((u) => Lr(u, a, nr())));
28332
+ const o = new (i?.Err ?? t)(s.issues.map((u) => Lr(u, a, ir())));
28342
28333
  throw sf(o, i?.callee), o;
28343
28334
  }
28344
28335
  return s.value;
@@ -28346,7 +28337,7 @@ var qs = (t) => (e, r, n, i) => {
28346
28337
  const a = n ? { ...n, async: !0 } : { async: !0 };
28347
28338
  let s = e._zod.run({ value: r, issues: [] }, a);
28348
28339
  if (s instanceof Promise && (s = await s), s.issues.length) {
28349
- const o = new (i?.Err ?? t)(s.issues.map((u) => Lr(u, a, nr())));
28340
+ const o = new (i?.Err ?? t)(s.issues.map((u) => Lr(u, a, ir())));
28350
28341
  throw sf(o, i?.callee), o;
28351
28342
  }
28352
28343
  return s.value;
@@ -28356,14 +28347,14 @@ var qs = (t) => (e, r, n, i) => {
28356
28347
  throw new Yn();
28357
28348
  return a.issues.length ? {
28358
28349
  success: !1,
28359
- error: new (t ?? of)(a.issues.map((s) => Lr(s, i, nr())))
28350
+ error: new (t ?? of)(a.issues.map((s) => Lr(s, i, ir())))
28360
28351
  } : { success: !0, data: a.value };
28361
28352
  }, X1 = /* @__PURE__ */ Ks(Zr), Js = (t) => async (e, r, n) => {
28362
28353
  const i = n ? { ...n, async: !0 } : { async: !0 };
28363
28354
  let a = e._zod.run({ value: r, issues: [] }, i);
28364
28355
  return a instanceof Promise && (a = await a), a.issues.length ? {
28365
28356
  success: !1,
28366
- error: new t(a.issues.map((s) => Lr(s, i, nr())))
28357
+ error: new t(a.issues.map((s) => Lr(s, i, ir())))
28367
28358
  } : { success: !0, data: a.value };
28368
28359
  }, K1 = /* @__PURE__ */ Js(Zr), cf = (t) => (e, r, n) => {
28369
28360
  const i = n ? { ...n, direction: "backward" } : { direction: "backward" };
@@ -28433,13 +28424,13 @@ Xi(bn, {
28433
28424
  undefined: () => Sy,
28434
28425
  unicodeEmail: () => oy,
28435
28426
  uppercase: () => Fy,
28436
- uuid: () => Ba,
28427
+ uuid: () => Ia,
28437
28428
  uuid4: () => H9,
28438
28429
  uuid6: () => q9,
28439
28430
  uuid7: () => X9,
28440
28431
  xid: () => ey
28441
28432
  });
28442
- var J1 = /^[cC][0-9a-z]{6,}$/, Q1 = /^[0-9a-z]+$/, ty = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, ey = /^[0-9a-vA-V]{20}$/, ry = /^[A-Za-z0-9]{27}$/, iy = /^[a-zA-Z0-9_-]{21}$/, ny = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Y9 = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, ay = /^([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})$/, Ba = (t) => t ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${t}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, H9 = /* @__PURE__ */ Ba(4), q9 = /* @__PURE__ */ Ba(6), X9 = /* @__PURE__ */ Ba(7), sy = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, K9 = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/, J9 = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/, oy = /^[^\s@"]{1,64}@[^\s@]{1,255}$/u, Q9 = oy, tS = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/, eS = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
28433
+ var J1 = /^[cC][0-9a-z]{6,}$/, Q1 = /^[0-9a-z]+$/, ty = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, ey = /^[0-9a-vA-V]{20}$/, ry = /^[A-Za-z0-9]{27}$/, iy = /^[a-zA-Z0-9_-]{21}$/, ny = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Y9 = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, ay = /^([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})$/, Ia = (t) => t ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${t}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, H9 = /* @__PURE__ */ Ia(4), q9 = /* @__PURE__ */ Ia(6), X9 = /* @__PURE__ */ Ia(7), sy = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, K9 = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/, J9 = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/, oy = /^[^\s@"]{1,64}@[^\s@]{1,255}$/u, Q9 = oy, tS = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/, eS = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
28443
28434
  function uy() {
28444
28435
  return new RegExp(eS, "u");
28445
28436
  }
@@ -28994,9 +28985,9 @@ var Wy = /* @__PURE__ */ V("$ZodCheckProperty", (t, e) => {
28994
28985
  }[e.version];
28995
28986
  if (n === void 0)
28996
28987
  throw new Error(`Invalid UUID version: "${e.version}"`);
28997
- e.pattern ?? (e.pattern = Ba(n));
28988
+ e.pattern ?? (e.pattern = Ia(n));
28998
28989
  } else
28999
- e.pattern ?? (e.pattern = Ba());
28990
+ e.pattern ?? (e.pattern = Ia());
29000
28991
  _e.init(t, e);
29001
28992
  }), Qy = /* @__PURE__ */ V("$ZodEmail", (t, e) => {
29002
28993
  e.pattern ?? (e.pattern = sy), _e.init(t, e);
@@ -29408,7 +29399,7 @@ var V4 = /* @__PURE__ */ V("$ZodObject", (t, e) => {
29408
29399
  }
29409
29400
  return u;
29410
29401
  });
29411
- const i = Na, a = e.catchall;
29402
+ const i = Ba, a = e.catchall;
29412
29403
  let s;
29413
29404
  t._zod.parse = (o, u) => {
29414
29405
  s ?? (s = n.value);
@@ -29509,7 +29500,7 @@ var V4 = /* @__PURE__ */ V("$ZodObject", (t, e) => {
29509
29500
  return (A, _) => B(m, A, _);
29510
29501
  };
29511
29502
  let a;
29512
- const s = Na, o = !Ts.jitless, l = o && V1.value, c = e.catchall;
29503
+ const s = Ba, o = !Ps.jitless, l = o && V1.value, c = e.catchall;
29513
29504
  let h;
29514
29505
  t._zod.parse = (m, d) => {
29515
29506
  h ?? (h = n.value);
@@ -29531,7 +29522,7 @@ function mp(t, e, r, n) {
29531
29522
  code: "invalid_union",
29532
29523
  input: e.value,
29533
29524
  inst: r,
29534
- errors: t.map((a) => a.issues.map((s) => Lr(s, n, nr())))
29525
+ errors: t.map((a) => a.issues.map((s) => Lr(s, n, ir())))
29535
29526
  }), e);
29536
29527
  }
29537
29528
  var fl = /* @__PURE__ */ V("$ZodUnion", (t, e) => {
@@ -29572,7 +29563,7 @@ function gp(t, e, r, n) {
29572
29563
  code: "invalid_union",
29573
29564
  input: e.value,
29574
29565
  inst: r,
29575
- errors: t.map((a) => a.issues.map((s) => Lr(s, n, nr())))
29566
+ errors: t.map((a) => a.issues.map((s) => Lr(s, n, ir())))
29576
29567
  }) : e.issues.push({
29577
29568
  code: "invalid_union",
29578
29569
  input: e.value,
@@ -29631,7 +29622,7 @@ var R4 = /* @__PURE__ */ V("$ZodXor", (t, e) => {
29631
29622
  });
29632
29623
  t._zod.parse = (i, a) => {
29633
29624
  const s = i.value;
29634
- if (!Na(s))
29625
+ if (!Ba(s))
29635
29626
  return i.issues.push({
29636
29627
  code: "invalid_type",
29637
29628
  expected: "object",
@@ -29816,7 +29807,7 @@ var Z4 = /* @__PURE__ */ V("$ZodRecord", (t, e) => {
29816
29807
  r.issues.push({
29817
29808
  code: "invalid_key",
29818
29809
  origin: "record",
29819
- issues: c.issues.map((d) => Lr(d, n, nr())),
29810
+ issues: c.issues.map((d) => Lr(d, n, ir())),
29820
29811
  input: l,
29821
29812
  path: [l],
29822
29813
  inst: t
@@ -29855,7 +29846,7 @@ var Z4 = /* @__PURE__ */ V("$ZodRecord", (t, e) => {
29855
29846
  e.mode === "loose" ? r.value[o] = i[o] : r.issues.push({
29856
29847
  code: "invalid_key",
29857
29848
  origin: "record",
29858
- issues: u.issues.map((h) => Lr(h, n, nr())),
29849
+ issues: u.issues.map((h) => Lr(h, n, ir())),
29859
29850
  input: o,
29860
29851
  path: [o],
29861
29852
  inst: t
@@ -29897,14 +29888,14 @@ function _p(t, e, r, n, i, a, s) {
29897
29888
  origin: "map",
29898
29889
  input: i,
29899
29890
  inst: a,
29900
- issues: t.issues.map((o) => Lr(o, s, nr()))
29891
+ issues: t.issues.map((o) => Lr(o, s, ir()))
29901
29892
  })), e.issues.length && (wu.has(typeof n) ? r.issues.push(...Jr(n, e.issues)) : r.issues.push({
29902
29893
  origin: "map",
29903
29894
  code: "invalid_element",
29904
29895
  input: i,
29905
29896
  inst: a,
29906
29897
  key: n,
29907
- issues: e.issues.map((o) => Lr(o, s, nr()))
29898
+ issues: e.issues.map((o) => Lr(o, s, ir()))
29908
29899
  })), r.value.set(t.value, e.value);
29909
29900
  }
29910
29901
  var j4 = /* @__PURE__ */ V("$ZodSet", (t, e) => {
@@ -30044,13 +30035,13 @@ var tv = /* @__PURE__ */ V("$ZodSuccess", (t, e) => {
30044
30035
  return i instanceof Promise ? i.then((a) => (r.value = a.value, a.issues.length && (r.value = e.catchValue({
30045
30036
  ...r,
30046
30037
  error: {
30047
- issues: a.issues.map((s) => Lr(s, n, nr()))
30038
+ issues: a.issues.map((s) => Lr(s, n, ir()))
30048
30039
  },
30049
30040
  input: r.value
30050
30041
  }), r.issues = [], r.fallback = !0), r)) : (r.value = i.value, i.issues.length && (r.value = e.catchValue({
30051
30042
  ...r,
30052
30043
  error: {
30053
- issues: i.issues.map((a) => Lr(a, n, nr()))
30044
+ issues: i.issues.map((a) => Lr(a, n, ir()))
30054
30045
  },
30055
30046
  input: r.value
30056
30047
  }), r.issues = [], r.fallback = !0), r);
@@ -32747,7 +32738,7 @@ function v8() {
32747
32738
  localeError: y8()
32748
32739
  };
32749
32740
  }
32750
- var as = (t) => t.charAt(0).toUpperCase() + t.slice(1);
32741
+ var ss = (t) => t.charAt(0).toUpperCase() + t.slice(1);
32751
32742
  function Np(t) {
32752
32743
  const e = Math.abs(t), r = e % 10, n = e % 100;
32753
32744
  return n >= 11 && n <= 19 || r === 0 ? "many" : r === 1 ? "one" : "few";
@@ -32883,16 +32874,16 @@ var b8 = () => {
32883
32874
  case "too_big": {
32884
32875
  const a = n[i.origin] ?? i.origin, s = e(i.origin, Np(Number(i.maximum)), i.inclusive ?? !1, "smaller");
32885
32876
  if (s?.verb)
32886
- return `${as(a ?? i.origin ?? "reikšmė")} ${s.verb} ${i.maximum.toString()} ${s.unit ?? "elementų"}`;
32877
+ return `${ss(a ?? i.origin ?? "reikšmė")} ${s.verb} ${i.maximum.toString()} ${s.unit ?? "elementų"}`;
32887
32878
  const o = i.inclusive ? "ne didesnis kaip" : "mažesnis kaip";
32888
- return `${as(a ?? i.origin ?? "reikšmė")} turi būti ${o} ${i.maximum.toString()} ${s?.unit}`;
32879
+ return `${ss(a ?? i.origin ?? "reikšmė")} turi būti ${o} ${i.maximum.toString()} ${s?.unit}`;
32889
32880
  }
32890
32881
  case "too_small": {
32891
32882
  const a = n[i.origin] ?? i.origin, s = e(i.origin, Np(Number(i.minimum)), i.inclusive ?? !1, "bigger");
32892
32883
  if (s?.verb)
32893
- return `${as(a ?? i.origin ?? "reikšmė")} ${s.verb} ${i.minimum.toString()} ${s.unit ?? "elementų"}`;
32884
+ return `${ss(a ?? i.origin ?? "reikšmė")} ${s.verb} ${i.minimum.toString()} ${s.unit ?? "elementų"}`;
32894
32885
  const o = i.inclusive ? "ne mažesnis kaip" : "didesnis kaip";
32895
- return `${as(a ?? i.origin ?? "reikšmė")} turi būti ${o} ${i.minimum.toString()} ${s?.unit}`;
32886
+ return `${ss(a ?? i.origin ?? "reikšmė")} turi būti ${o} ${i.minimum.toString()} ${s?.unit}`;
32896
32887
  }
32897
32888
  case "invalid_format": {
32898
32889
  const a = i;
@@ -32908,7 +32899,7 @@ var b8 = () => {
32908
32899
  return "Klaidinga įvestis";
32909
32900
  case "invalid_element": {
32910
32901
  const a = n[i.origin] ?? i.origin;
32911
- return `${as(a ?? i.origin ?? "reikšmė")} turi klaidingą įvestį`;
32902
+ return `${ss(a ?? i.origin ?? "reikšmė")} turi klaidingą įvestį`;
32912
32903
  }
32913
32904
  default:
32914
32905
  return "Klaidinga įvestis";
@@ -35393,7 +35384,7 @@ function eh(t) {
35393
35384
  return /* @__PURE__ */ Dr(0, t);
35394
35385
  }
35395
35386
  // @__NO_SIDE_EFFECTS__
35396
- function Ia(t, e) {
35387
+ function Ta(t, e) {
35397
35388
  return new By({
35398
35389
  check: "multiple_of",
35399
35390
  ...at(e),
@@ -35401,7 +35392,7 @@ function Ia(t, e) {
35401
35392
  });
35402
35393
  }
35403
35394
  // @__NO_SIDE_EFFECTS__
35404
- function Ua(t, e) {
35395
+ function ja(t, e) {
35405
35396
  return new Py({
35406
35397
  check: "max_size",
35407
35398
  ...at(e),
@@ -35845,7 +35836,7 @@ function so(t, e, r, n = {}) {
35845
35836
  };
35846
35837
  return r instanceof RegExp && (a.pattern = r), new t(a);
35847
35838
  }
35848
- function Ta(t) {
35839
+ function Pa(t) {
35849
35840
  let e = t?.target ?? "draft-2020-12";
35850
35841
  return e === "draft-4" && (e = "draft-04"), e === "draft-7" && (e = "draft-07"), {
35851
35842
  processors: t.processors ?? {},
@@ -35892,7 +35883,7 @@ function be(t, e, r = { path: [], schemaPath: [] }) {
35892
35883
  const u = e.metadataRegistry.get(t);
35893
35884
  return u && Object.assign(s.schema, u), e.io === "input" && vr(t) && (delete s.schema.examples, delete s.schema.default), e.io === "input" && "_prefault" in s.schema && ((n = s.schema).default ?? (n.default = s.schema._prefault)), delete s.schema._prefault, e.seen.get(t).schema;
35894
35885
  }
35895
- function Pa(t, e) {
35886
+ function Ma(t, e) {
35896
35887
  const r = t.seen.get(e);
35897
35888
  if (!r)
35898
35889
  throw new Error("Unprocessed schema. This is a bug in Zod.");
@@ -35964,7 +35955,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
35964
35955
  }
35965
35956
  }
35966
35957
  }
35967
- function Ma(t, e) {
35958
+ function za(t, e) {
35968
35959
  const r = t.seen.get(e);
35969
35960
  if (!r)
35970
35961
  throw new Error("Unprocessed schema. This is a bug in Zod.");
@@ -36021,8 +36012,8 @@ function Ma(t, e) {
36021
36012
  value: {
36022
36013
  ...e["~standard"],
36023
36014
  jsonSchema: {
36024
- input: Ps(e, "input", t.processors),
36025
- output: Ps(e, "output", t.processors)
36015
+ input: Ms(e, "input", t.processors),
36016
+ output: Ms(e, "output", t.processors)
36026
36017
  }
36027
36018
  },
36028
36019
  enumerable: !1,
@@ -36075,11 +36066,11 @@ function vr(t, e) {
36075
36066
  return !1;
36076
36067
  }
36077
36068
  var rb = (t, e = {}) => (r) => {
36078
- const n = Ta({ ...r, processors: e });
36079
- return be(t, n), Pa(n, t), Ma(n, t);
36080
- }, Ps = (t, e, r = {}) => (n) => {
36081
- const { libraryOptions: i, target: a } = n ?? {}, s = Ta({ ...i ?? {}, target: a, io: e, processors: r });
36082
- return be(t, s), Pa(s, t), Ma(s, t);
36069
+ const n = Pa({ ...r, processors: e });
36070
+ return be(t, n), Ma(n, t), za(n, t);
36071
+ }, Ms = (t, e, r = {}) => (n) => {
36072
+ const { libraryOptions: i, target: a } = n ?? {}, s = Pa({ ...i ?? {}, target: a, io: e, processors: r });
36073
+ return be(t, s), Ma(s, t), za(s, t);
36083
36074
  }, PD = {
36084
36075
  guid: "uuid",
36085
36076
  url: "uri",
@@ -36359,7 +36350,7 @@ var rb = (t, e = {}) => (r) => {
36359
36350
  };
36360
36351
  function $b(t, e) {
36361
36352
  if ("_idmap" in t) {
36362
- const n = t, i = Ta({ ...e, processors: v0 }), a = {};
36353
+ const n = t, i = Pa({ ...e, processors: v0 }), a = {};
36363
36354
  for (const u of n._idmap.entries()) {
36364
36355
  const [l, c] = u;
36365
36356
  be(c, i);
@@ -36372,7 +36363,7 @@ function $b(t, e) {
36372
36363
  i.external = o;
36373
36364
  for (const u of n._idmap.entries()) {
36374
36365
  const [l, c] = u;
36375
- Pa(i, c), s[l] = Ma(i, c);
36366
+ Ma(i, c), s[l] = za(i, c);
36376
36367
  }
36377
36368
  if (Object.keys(a).length > 0) {
36378
36369
  const u = i.target === "draft-2020-12" ? "$defs" : "definitions";
@@ -36382,8 +36373,8 @@ function $b(t, e) {
36382
36373
  }
36383
36374
  return { schemas: s };
36384
36375
  }
36385
- const r = Ta({ ...e, processors: v0 });
36386
- return be(t, r), Pa(r, t), Ma(r, t);
36376
+ const r = Pa({ ...e, processors: v0 });
36377
+ return be(t, r), Ma(r, t), za(r, t);
36387
36378
  }
36388
36379
  var MD = class {
36389
36380
  /** @deprecated Access via ctx instead */
@@ -36419,7 +36410,7 @@ var MD = class {
36419
36410
  }
36420
36411
  constructor(t) {
36421
36412
  let e = t?.target ?? "draft-2020-12";
36422
- e === "draft-4" && (e = "draft-04"), e === "draft-7" && (e = "draft-07"), this.ctx = Ta({
36413
+ e === "draft-4" && (e = "draft-04"), e === "draft-7" && (e = "draft-07"), this.ctx = Pa({
36423
36414
  processors: v0,
36424
36415
  target: e,
36425
36416
  ...t?.metadata && { metadata: t.metadata },
@@ -36440,8 +36431,8 @@ var MD = class {
36440
36431
  * Must call process() first.
36441
36432
  */
36442
36433
  emit(t, e) {
36443
- e && (e.cycles && (this.ctx.cycles = e.cycles), e.reused && (this.ctx.reused = e.reused), e.external && (this.ctx.external = e.external)), Pa(this.ctx, t);
36444
- const r = Ma(this.ctx, t), { "~standard": n, ...i } = r;
36434
+ e && (e.cycles && (this.ctx.cycles = e.cycles), e.reused && (this.ctx.reused = e.reused), e.external && (this.ctx.external = e.external)), Ma(this.ctx, t);
36435
+ const r = za(this.ctx, t), { "~standard": n, ...i } = r;
36445
36436
  return i;
36446
36437
  }
36447
36438
  }, zD = {}, Lb = {};
@@ -36460,18 +36451,18 @@ Xi(Lb, {
36460
36451
  ZodCatch: () => Uh,
36461
36452
  ZodCodec: () => vo,
36462
36453
  ZodCustom: () => bo,
36463
- ZodCustomStringFormat: () => ja,
36454
+ ZodCustomStringFormat: () => Ga,
36464
36455
  ZodDate: () => jl,
36465
36456
  ZodDefault: () => Vh,
36466
36457
  ZodDiscriminatedUnion: () => Ch,
36467
36458
  ZodE164: () => $l,
36468
36459
  ZodEmail: () => kl,
36469
36460
  ZodEmoji: () => Sl,
36470
- ZodEnum: () => Va,
36461
+ ZodEnum: () => Oa,
36471
36462
  ZodExactOptional: () => Ph,
36472
36463
  ZodFile: () => Ih,
36473
36464
  ZodFunction: () => Qh,
36474
- ZodGUID: () => zs,
36465
+ ZodGUID: () => Vs,
36475
36466
  ZodIPv4: () => Pl,
36476
36467
  ZodIPv6: () => Ml,
36477
36468
  ZodIntersection: () => Ah,
@@ -36496,7 +36487,7 @@ Xi(Lb, {
36496
36487
  ZodPreprocess: () => Wh,
36497
36488
  ZodPromise: () => Jh,
36498
36489
  ZodReadonly: () => Yh,
36499
- ZodRecord: () => za,
36490
+ ZodRecord: () => Va,
36500
36491
  ZodSet: () => Nh,
36501
36492
  ZodString: () => uo,
36502
36493
  ZodStringFormat: () => xe,
@@ -36574,11 +36565,11 @@ Xi(Lb, {
36574
36565
  never: () => Ul,
36575
36566
  nonoptional: () => Lh,
36576
36567
  null: () => gh,
36577
- nullable: () => Os,
36568
+ nullable: () => Rs,
36578
36569
  nullish: () => aw,
36579
36570
  number: () => fh,
36580
36571
  object: () => Y3,
36581
- optional: () => Vs,
36572
+ optional: () => Os,
36582
36573
  partialRecord: () => J3,
36583
36574
  pipe: () => Eu,
36584
36575
  prefault: () => $h,
@@ -36589,7 +36580,7 @@ Xi(Lb, {
36589
36580
  refine: () => td,
36590
36581
  set: () => ew,
36591
36582
  strictObject: () => H3,
36592
- string: () => Ms,
36583
+ string: () => zs,
36593
36584
  stringFormat: () => N3,
36594
36585
  stringbool: () => yw,
36595
36586
  success: () => sw,
@@ -36624,11 +36615,11 @@ Xi(Zb, {
36624
36615
  lt: () => wn,
36625
36616
  lte: () => ti,
36626
36617
  maxLength: () => no,
36627
- maxSize: () => Ua,
36618
+ maxSize: () => ja,
36628
36619
  mime: () => bl,
36629
36620
  minLength: () => Jn,
36630
36621
  minSize: () => xn,
36631
- multipleOf: () => Ia,
36622
+ multipleOf: () => Ta,
36632
36623
  negative: () => Qf,
36633
36624
  nonnegative: () => eh,
36634
36625
  nonpositive: () => th,
@@ -36745,8 +36736,8 @@ function oo(t, e, r) {
36745
36736
  }
36746
36737
  var Gt = /* @__PURE__ */ V("ZodType", (t, e) => (Ut.init(t, e), Object.assign(t["~standard"], {
36747
36738
  jsonSchema: {
36748
- input: Ps(t, "input"),
36749
- output: Ps(t, "output")
36739
+ input: Ms(t, "input"),
36740
+ output: Ms(t, "output")
36750
36741
  }
36751
36742
  }), t.toJSONSchema = rb(t, {}), t.def = e, t.type = e.type, Object.defineProperty(t, "_def", { value: e }), t.parse = (r, n) => Hb(t, r, n, { callee: t.parse }), t.safeParse = (r, n) => Xb(t, r, n), t.parseAsync = async (r, n) => qb(t, r, n, { callee: t.parseAsync }), t.safeParseAsync = async (r, n) => Kb(t, r, n), t.spa = t.safeParseAsync, t.encode = (r, n) => Jb(t, r, n), t.decode = (r, n) => Qb(t, r, n), t.encodeAsync = async (r, n) => t3(t, r, n), t.decodeAsync = async (r, n) => e3(t, r, n), t.safeEncode = (r, n) => r3(t, r, n), t.safeDecode = (r, n) => i3(t, r, n), t.safeEncodeAsync = async (r, n) => n3(t, r, n), t.safeDecodeAsync = async (r, n) => a3(t, r, n), oo(t, "ZodType", {
36752
36743
  check(...r) {
@@ -36780,16 +36771,16 @@ var Gt = /* @__PURE__ */ V("ZodType", (t, e) => (Ut.init(t, e), Object.assign(t[
36780
36771
  return this.check(/* @__PURE__ */ Ji(r));
36781
36772
  },
36782
36773
  optional() {
36783
- return Vs(this);
36774
+ return Os(this);
36784
36775
  },
36785
36776
  exactOptional() {
36786
36777
  return Mh(this);
36787
36778
  },
36788
36779
  nullable() {
36789
- return Os(this);
36780
+ return Rs(this);
36790
36781
  },
36791
36782
  nullish() {
36792
- return Vs(Os(this));
36783
+ return Os(Rs(this));
36793
36784
  },
36794
36785
  nonoptional(r) {
36795
36786
  return Lh(this, r);
@@ -36896,9 +36887,9 @@ var Gt = /* @__PURE__ */ V("ZodType", (t, e) => (Ut.init(t, e), Object.assign(t[
36896
36887
  }
36897
36888
  });
36898
36889
  }), uo = /* @__PURE__ */ V("ZodString", (t, e) => {
36899
- ro.init(t, e), El.init(t, e), t.email = (r) => t.check(/* @__PURE__ */ If(kl, r)), t.url = (r) => t.check(/* @__PURE__ */ hl(lo, r)), t.jwt = (r) => t.check(/* @__PURE__ */ Kf(Ll, r)), t.emoji = (r) => t.check(/* @__PURE__ */ Vf(Sl, r)), t.guid = (r) => t.check(/* @__PURE__ */ Cu(zs, r)), t.uuid = (r) => t.check(/* @__PURE__ */ Tf(Ei, r)), t.uuidv4 = (r) => t.check(/* @__PURE__ */ Pf(Ei, r)), t.uuidv6 = (r) => t.check(/* @__PURE__ */ Mf(Ei, r)), t.uuidv7 = (r) => t.check(/* @__PURE__ */ zf(Ei, r)), t.nanoid = (r) => t.check(/* @__PURE__ */ Of(Dl, r)), t.guid = (r) => t.check(/* @__PURE__ */ Cu(zs, r)), t.cuid = (r) => t.check(/* @__PURE__ */ Rf(Fl, r)), t.cuid2 = (r) => t.check(/* @__PURE__ */ $f(Nl, r)), t.ulid = (r) => t.check(/* @__PURE__ */ Lf(Bl, r)), t.base64 = (r) => t.check(/* @__PURE__ */ Hf(Ol, r)), t.base64url = (r) => t.check(/* @__PURE__ */ qf(Rl, r)), t.xid = (r) => t.check(/* @__PURE__ */ Zf(Il, r)), t.ksuid = (r) => t.check(/* @__PURE__ */ Uf(Tl, r)), t.ipv4 = (r) => t.check(/* @__PURE__ */ jf(Pl, r)), t.ipv6 = (r) => t.check(/* @__PURE__ */ Gf(Ml, r)), t.cidrv4 = (r) => t.check(/* @__PURE__ */ Wf(zl, r)), t.cidrv6 = (r) => t.check(/* @__PURE__ */ Yf(Vl, r)), t.e164 = (r) => t.check(/* @__PURE__ */ Xf($l, r)), t.datetime = (r) => t.check(Ub(r)), t.date = (r) => t.check(jb(r)), t.time = (r) => t.check(Gb(r)), t.duration = (r) => t.check(Wb(r));
36890
+ ro.init(t, e), El.init(t, e), t.email = (r) => t.check(/* @__PURE__ */ If(kl, r)), t.url = (r) => t.check(/* @__PURE__ */ hl(lo, r)), t.jwt = (r) => t.check(/* @__PURE__ */ Kf(Ll, r)), t.emoji = (r) => t.check(/* @__PURE__ */ Vf(Sl, r)), t.guid = (r) => t.check(/* @__PURE__ */ Cu(Vs, r)), t.uuid = (r) => t.check(/* @__PURE__ */ Tf(Ei, r)), t.uuidv4 = (r) => t.check(/* @__PURE__ */ Pf(Ei, r)), t.uuidv6 = (r) => t.check(/* @__PURE__ */ Mf(Ei, r)), t.uuidv7 = (r) => t.check(/* @__PURE__ */ zf(Ei, r)), t.nanoid = (r) => t.check(/* @__PURE__ */ Of(Dl, r)), t.guid = (r) => t.check(/* @__PURE__ */ Cu(Vs, r)), t.cuid = (r) => t.check(/* @__PURE__ */ Rf(Fl, r)), t.cuid2 = (r) => t.check(/* @__PURE__ */ $f(Nl, r)), t.ulid = (r) => t.check(/* @__PURE__ */ Lf(Bl, r)), t.base64 = (r) => t.check(/* @__PURE__ */ Hf(Ol, r)), t.base64url = (r) => t.check(/* @__PURE__ */ qf(Rl, r)), t.xid = (r) => t.check(/* @__PURE__ */ Zf(Il, r)), t.ksuid = (r) => t.check(/* @__PURE__ */ Uf(Tl, r)), t.ipv4 = (r) => t.check(/* @__PURE__ */ jf(Pl, r)), t.ipv6 = (r) => t.check(/* @__PURE__ */ Gf(Ml, r)), t.cidrv4 = (r) => t.check(/* @__PURE__ */ Wf(zl, r)), t.cidrv6 = (r) => t.check(/* @__PURE__ */ Yf(Vl, r)), t.e164 = (r) => t.check(/* @__PURE__ */ Xf($l, r)), t.datetime = (r) => t.check(Ub(r)), t.date = (r) => t.check(jb(r)), t.time = (r) => t.check(Gb(r)), t.duration = (r) => t.check(Wb(r));
36900
36891
  });
36901
- function Ms(t) {
36892
+ function zs(t) {
36902
36893
  return /* @__PURE__ */ gv(uo, t);
36903
36894
  }
36904
36895
  var xe = /* @__PURE__ */ V("ZodStringFormat", (t, e) => {
@@ -36909,11 +36900,11 @@ var xe = /* @__PURE__ */ V("ZodStringFormat", (t, e) => {
36909
36900
  function s3(t) {
36910
36901
  return /* @__PURE__ */ If(kl, t);
36911
36902
  }
36912
- var zs = /* @__PURE__ */ V("ZodGUID", (t, e) => {
36903
+ var Vs = /* @__PURE__ */ V("ZodGUID", (t, e) => {
36913
36904
  Ky.init(t, e), xe.init(t, e);
36914
36905
  });
36915
36906
  function o3(t) {
36916
- return /* @__PURE__ */ Cu(zs, t);
36907
+ return /* @__PURE__ */ Cu(Vs, t);
36917
36908
  }
36918
36909
  var Ei = /* @__PURE__ */ V("ZodUUID", (t, e) => {
36919
36910
  Jy.init(t, e), xe.init(t, e);
@@ -37039,23 +37030,23 @@ var Ll = /* @__PURE__ */ V("ZodJWT", (t, e) => {
37039
37030
  function F3(t) {
37040
37031
  return /* @__PURE__ */ Kf(Ll, t);
37041
37032
  }
37042
- var ja = /* @__PURE__ */ V("ZodCustomStringFormat", (t, e) => {
37033
+ var Ga = /* @__PURE__ */ V("ZodCustomStringFormat", (t, e) => {
37043
37034
  C4.init(t, e), xe.init(t, e);
37044
37035
  });
37045
37036
  function N3(t, e, r = {}) {
37046
- return /* @__PURE__ */ so(ja, t, e, r);
37037
+ return /* @__PURE__ */ so(Ga, t, e, r);
37047
37038
  }
37048
37039
  function B3(t) {
37049
- return /* @__PURE__ */ so(ja, "hostname", bn.hostname, t);
37040
+ return /* @__PURE__ */ so(Ga, "hostname", bn.hostname, t);
37050
37041
  }
37051
37042
  function I3(t) {
37052
- return /* @__PURE__ */ so(ja, "hex", bn.hex, t);
37043
+ return /* @__PURE__ */ so(Ga, "hex", bn.hex, t);
37053
37044
  }
37054
37045
  function T3(t, e) {
37055
37046
  const r = e?.enc ?? "hex", n = `${t}_${r}`, i = bn[n];
37056
37047
  if (!i)
37057
37048
  throw new Error(`Unrecognized hash format: ${n}`);
37058
- return /* @__PURE__ */ so(ja, n, i, e);
37049
+ return /* @__PURE__ */ so(Ga, n, i, e);
37059
37050
  }
37060
37051
  var co = /* @__PURE__ */ V("ZodNumber", (t, e) => {
37061
37052
  Cf.init(t, e), Gt.init(t, e), t._zod.processJSONSchema = (n, i, a) => nb(t, n, i), oo(t, "ZodNumber", {
@@ -37096,10 +37087,10 @@ var co = /* @__PURE__ */ V("ZodNumber", (t, e) => {
37096
37087
  return this.check(/* @__PURE__ */ ti(0, n));
37097
37088
  },
37098
37089
  multipleOf(n, i) {
37099
- return this.check(/* @__PURE__ */ Ia(n, i));
37090
+ return this.check(/* @__PURE__ */ Ta(n, i));
37100
37091
  },
37101
37092
  step(n, i) {
37102
- return this.check(/* @__PURE__ */ Ia(n, i));
37093
+ return this.check(/* @__PURE__ */ Ta(n, i));
37103
37094
  },
37104
37095
  finite() {
37105
37096
  return this;
@@ -37136,7 +37127,7 @@ function hh(t) {
37136
37127
  return /* @__PURE__ */ Bv(fo, t);
37137
37128
  }
37138
37129
  var ho = /* @__PURE__ */ V("ZodBigInt", (t, e) => {
37139
- Ef.init(t, e), Gt.init(t, e), t._zod.processJSONSchema = (n, i, a) => sb(t, n), t.gte = (n, i) => t.check(/* @__PURE__ */ Dr(n, i)), t.min = (n, i) => t.check(/* @__PURE__ */ Dr(n, i)), t.gt = (n, i) => t.check(/* @__PURE__ */ _n(n, i)), t.gte = (n, i) => t.check(/* @__PURE__ */ Dr(n, i)), t.min = (n, i) => t.check(/* @__PURE__ */ Dr(n, i)), t.lt = (n, i) => t.check(/* @__PURE__ */ wn(n, i)), t.lte = (n, i) => t.check(/* @__PURE__ */ ti(n, i)), t.max = (n, i) => t.check(/* @__PURE__ */ ti(n, i)), t.positive = (n) => t.check(/* @__PURE__ */ _n(BigInt(0), n)), t.negative = (n) => t.check(/* @__PURE__ */ wn(BigInt(0), n)), t.nonpositive = (n) => t.check(/* @__PURE__ */ ti(BigInt(0), n)), t.nonnegative = (n) => t.check(/* @__PURE__ */ Dr(BigInt(0), n)), t.multipleOf = (n, i) => t.check(/* @__PURE__ */ Ia(n, i));
37130
+ Ef.init(t, e), Gt.init(t, e), t._zod.processJSONSchema = (n, i, a) => sb(t, n), t.gte = (n, i) => t.check(/* @__PURE__ */ Dr(n, i)), t.min = (n, i) => t.check(/* @__PURE__ */ Dr(n, i)), t.gt = (n, i) => t.check(/* @__PURE__ */ _n(n, i)), t.gte = (n, i) => t.check(/* @__PURE__ */ Dr(n, i)), t.min = (n, i) => t.check(/* @__PURE__ */ Dr(n, i)), t.lt = (n, i) => t.check(/* @__PURE__ */ wn(n, i)), t.lte = (n, i) => t.check(/* @__PURE__ */ ti(n, i)), t.max = (n, i) => t.check(/* @__PURE__ */ ti(n, i)), t.positive = (n) => t.check(/* @__PURE__ */ _n(BigInt(0), n)), t.negative = (n) => t.check(/* @__PURE__ */ wn(BigInt(0), n)), t.nonpositive = (n) => t.check(/* @__PURE__ */ ti(BigInt(0), n)), t.nonnegative = (n) => t.check(/* @__PURE__ */ Dr(BigInt(0), n)), t.multipleOf = (n, i) => t.check(/* @__PURE__ */ Ta(n, i));
37140
37131
  const r = t._zod.bag;
37141
37132
  t.minValue = r.minimum ?? null, t.maxValue = r.maximum ?? null, t.format = r.format ?? null;
37142
37133
  });
@@ -37352,16 +37343,16 @@ function Sh(t, e, r) {
37352
37343
  ...Qt.normalizeParams(i)
37353
37344
  });
37354
37345
  }
37355
- var za = /* @__PURE__ */ V("ZodRecord", (t, e) => {
37346
+ var Va = /* @__PURE__ */ V("ZodRecord", (t, e) => {
37356
37347
  Z4.init(t, e), Gt.init(t, e), t._zod.processJSONSchema = (r, n, i) => Nb(t, r, n, i), t.keyType = e.keyType, t.valueType = e.valueType;
37357
37348
  });
37358
37349
  function Dh(t, e, r) {
37359
- return !e || !e._zod ? new za({
37350
+ return !e || !e._zod ? new Va({
37360
37351
  type: "record",
37361
- keyType: Ms(),
37352
+ keyType: zs(),
37362
37353
  valueType: t,
37363
37354
  ...Qt.normalizeParams(e)
37364
- }) : new za({
37355
+ }) : new Va({
37365
37356
  type: "record",
37366
37357
  keyType: t,
37367
37358
  valueType: e,
@@ -37370,7 +37361,7 @@ function Dh(t, e, r) {
37370
37361
  }
37371
37362
  function J3(t, e, r) {
37372
37363
  const n = ii(t);
37373
- return n._zod.values = void 0, new za({
37364
+ return n._zod.values = void 0, new Va({
37374
37365
  type: "record",
37375
37366
  keyType: n,
37376
37367
  valueType: e,
@@ -37378,7 +37369,7 @@ function J3(t, e, r) {
37378
37369
  });
37379
37370
  }
37380
37371
  function Q3(t, e, r) {
37381
- return new za({
37372
+ return new Va({
37382
37373
  type: "record",
37383
37374
  keyType: t,
37384
37375
  valueType: e,
@@ -37387,7 +37378,7 @@ function Q3(t, e, r) {
37387
37378
  });
37388
37379
  }
37389
37380
  var Fh = /* @__PURE__ */ V("ZodMap", (t, e) => {
37390
- U4.init(t, e), Gt.init(t, e), t._zod.processJSONSchema = (r, n, i) => Ab(t, r), t.keyType = e.keyType, t.valueType = e.valueType, t.min = (...r) => t.check(/* @__PURE__ */ xn(...r)), t.nonempty = (r) => t.check(/* @__PURE__ */ xn(1, r)), t.max = (...r) => t.check(/* @__PURE__ */ Ua(...r)), t.size = (...r) => t.check(/* @__PURE__ */ io(...r));
37381
+ U4.init(t, e), Gt.init(t, e), t._zod.processJSONSchema = (r, n, i) => Ab(t, r), t.keyType = e.keyType, t.valueType = e.valueType, t.min = (...r) => t.check(/* @__PURE__ */ xn(...r)), t.nonempty = (r) => t.check(/* @__PURE__ */ xn(1, r)), t.max = (...r) => t.check(/* @__PURE__ */ ja(...r)), t.size = (...r) => t.check(/* @__PURE__ */ io(...r));
37391
37382
  });
37392
37383
  function tw(t, e, r) {
37393
37384
  return new Fh({
@@ -37398,7 +37389,7 @@ function tw(t, e, r) {
37398
37389
  });
37399
37390
  }
37400
37391
  var Nh = /* @__PURE__ */ V("ZodSet", (t, e) => {
37401
- j4.init(t, e), Gt.init(t, e), t._zod.processJSONSchema = (r, n, i) => Eb(t, r), t.min = (...r) => t.check(/* @__PURE__ */ xn(...r)), t.nonempty = (r) => t.check(/* @__PURE__ */ xn(1, r)), t.max = (...r) => t.check(/* @__PURE__ */ Ua(...r)), t.size = (...r) => t.check(/* @__PURE__ */ io(...r));
37392
+ j4.init(t, e), Gt.init(t, e), t._zod.processJSONSchema = (r, n, i) => Eb(t, r), t.min = (...r) => t.check(/* @__PURE__ */ xn(...r)), t.nonempty = (r) => t.check(/* @__PURE__ */ xn(1, r)), t.max = (...r) => t.check(/* @__PURE__ */ ja(...r)), t.size = (...r) => t.check(/* @__PURE__ */ io(...r));
37402
37393
  });
37403
37394
  function ew(t, e) {
37404
37395
  return new Nh({
@@ -37407,7 +37398,7 @@ function ew(t, e) {
37407
37398
  ...Qt.normalizeParams(e)
37408
37399
  });
37409
37400
  }
37410
- var Va = /* @__PURE__ */ V("ZodEnum", (t, e) => {
37401
+ var Oa = /* @__PURE__ */ V("ZodEnum", (t, e) => {
37411
37402
  G4.init(t, e), Gt.init(t, e), t._zod.processJSONSchema = (n, i, a) => mb(t, n, i), t.enum = e.entries, t.options = Object.values(e.entries);
37412
37403
  const r = new Set(Object.keys(e.entries));
37413
37404
  t.extract = (n, i) => {
@@ -37417,7 +37408,7 @@ var Va = /* @__PURE__ */ V("ZodEnum", (t, e) => {
37417
37408
  a[s] = e.entries[s];
37418
37409
  else
37419
37410
  throw new Error(`Key ${s} not found in enum`);
37420
- return new Va({
37411
+ return new Oa({
37421
37412
  ...e,
37422
37413
  checks: [],
37423
37414
  ...Qt.normalizeParams(i),
@@ -37430,7 +37421,7 @@ var Va = /* @__PURE__ */ V("ZodEnum", (t, e) => {
37430
37421
  delete a[s];
37431
37422
  else
37432
37423
  throw new Error(`Key ${s} not found in enum`);
37433
- return new Va({
37424
+ return new Oa({
37434
37425
  ...e,
37435
37426
  checks: [],
37436
37427
  ...Qt.normalizeParams(i),
@@ -37440,14 +37431,14 @@ var Va = /* @__PURE__ */ V("ZodEnum", (t, e) => {
37440
37431
  });
37441
37432
  function Wl(t, e) {
37442
37433
  const r = Array.isArray(t) ? Object.fromEntries(t.map((n) => [n, n])) : t;
37443
- return new Va({
37434
+ return new Oa({
37444
37435
  type: "enum",
37445
37436
  entries: r,
37446
37437
  ...Qt.normalizeParams(e)
37447
37438
  });
37448
37439
  }
37449
37440
  function rw(t, e) {
37450
- return new Va({
37441
+ return new Oa({
37451
37442
  type: "enum",
37452
37443
  entries: t,
37453
37444
  ...Qt.normalizeParams(e)
@@ -37470,7 +37461,7 @@ function iw(t, e) {
37470
37461
  });
37471
37462
  }
37472
37463
  var Ih = /* @__PURE__ */ V("ZodFile", (t, e) => {
37473
- Y4.init(t, e), Gt.init(t, e), t._zod.processJSONSchema = (r, n, i) => bb(t, r, n), t.min = (r, n) => t.check(/* @__PURE__ */ xn(r, n)), t.max = (r, n) => t.check(/* @__PURE__ */ Ua(r, n)), t.mime = (r, n) => t.check(/* @__PURE__ */ bl(Array.isArray(r) ? r : [r], n));
37464
+ Y4.init(t, e), Gt.init(t, e), t._zod.processJSONSchema = (r, n, i) => bb(t, r, n), t.min = (r, n) => t.check(/* @__PURE__ */ xn(r, n)), t.max = (r, n) => t.check(/* @__PURE__ */ ja(r, n)), t.mime = (r, n) => t.check(/* @__PURE__ */ bl(Array.isArray(r) ? r : [r], n));
37474
37465
  });
37475
37466
  function nw(t) {
37476
37467
  return /* @__PURE__ */ Hv(Ih, t);
@@ -37500,7 +37491,7 @@ function Yl(t) {
37500
37491
  var Hl = /* @__PURE__ */ V("ZodOptional", (t, e) => {
37501
37492
  Sf.init(t, e), Gt.init(t, e), t._zod.processJSONSchema = (r, n, i) => nh(t, r, n, i), t.unwrap = () => t._zod.def.innerType;
37502
37493
  });
37503
- function Vs(t) {
37494
+ function Os(t) {
37504
37495
  return new Hl({
37505
37496
  type: "optional",
37506
37497
  innerType: t
@@ -37518,14 +37509,14 @@ function Mh(t) {
37518
37509
  var zh = /* @__PURE__ */ V("ZodNullable", (t, e) => {
37519
37510
  X4.init(t, e), Gt.init(t, e), t._zod.processJSONSchema = (r, n, i) => Bb(t, r, n, i), t.unwrap = () => t._zod.def.innerType;
37520
37511
  });
37521
- function Os(t) {
37512
+ function Rs(t) {
37522
37513
  return new zh({
37523
37514
  type: "nullable",
37524
37515
  innerType: t
37525
37516
  });
37526
37517
  }
37527
37518
  function aw(t) {
37528
- return Vs(Os(t));
37519
+ return Os(Rs(t));
37529
37520
  }
37530
37521
  var Vh = /* @__PURE__ */ V("ZodDefault", (t, e) => {
37531
37522
  K4.init(t, e), Gt.init(t, e), t._zod.processJSONSchema = (r, n, i) => Tb(t, r, n, i), t.unwrap = () => t._zod.def.innerType, t.removeDefault = t.unwrap;
@@ -37712,7 +37703,7 @@ var yw = (...t) => /* @__PURE__ */ eb({
37712
37703
  String: uo
37713
37704
  }, ...t);
37714
37705
  function vw(t) {
37715
- const e = Kh(() => Gl([Ms(t), fh(), hh(), gh(), po(e), Dh(Ms(), e)]));
37706
+ const e = Kh(() => Gl([zs(t), fh(), hh(), gh(), po(e), Dh(zs(), e)]));
37716
37707
  return e;
37717
37708
  }
37718
37709
  function bw(t, e) {
@@ -37736,12 +37727,12 @@ var OD = {
37736
37727
  custom: "custom"
37737
37728
  };
37738
37729
  function RD(t) {
37739
- nr({
37730
+ ir({
37740
37731
  customError: t
37741
37732
  });
37742
37733
  }
37743
37734
  function $D() {
37744
- return nr().customError;
37735
+ return ir().customError;
37745
37736
  }
37746
37737
  var b0;
37747
37738
  b0 || (b0 = {});
@@ -37864,7 +37855,7 @@ function ww(t, e) {
37864
37855
  return e.refs.get(i);
37865
37856
  });
37866
37857
  e.processing.add(i);
37867
- const a = UD(i, e), s = fr(a, e);
37858
+ const a = UD(i, e), s = cr(a, e);
37868
37859
  return e.refs.set(i, s), e.processing.delete(i), s;
37869
37860
  }
37870
37861
  if (t.enum !== void 0) {
@@ -37920,11 +37911,11 @@ function ww(t, e) {
37920
37911
  case "object": {
37921
37912
  const i = {}, a = t.properties || {}, s = new Set(t.required || []);
37922
37913
  for (const [u, l] of Object.entries(a)) {
37923
- const c = fr(l, e);
37914
+ const c = cr(l, e);
37924
37915
  i[u] = s.has(u) ? c : c.optional();
37925
37916
  }
37926
37917
  if (t.propertyNames) {
37927
- const u = fr(t.propertyNames, e), l = t.additionalProperties && typeof t.additionalProperties == "object" ? fr(t.additionalProperties, e) : ft.any();
37918
+ const u = cr(t.propertyNames, e), l = t.additionalProperties && typeof t.additionalProperties == "object" ? cr(t.additionalProperties, e) : ft.any();
37928
37919
  if (Object.keys(i).length === 0) {
37929
37920
  n = ft.record(u, l);
37930
37921
  break;
@@ -37936,7 +37927,7 @@ function ww(t, e) {
37936
37927
  if (t.patternProperties) {
37937
37928
  const u = t.patternProperties, l = Object.keys(u), c = [];
37938
37929
  for (const m of l) {
37939
- const d = fr(u[m], e), y = ft.string().regex(new RegExp(m));
37930
+ const d = cr(u[m], e), y = ft.string().regex(new RegExp(m));
37940
37931
  c.push(ft.looseRecord(y, d));
37941
37932
  }
37942
37933
  const h = [];
@@ -37953,19 +37944,19 @@ function ww(t, e) {
37953
37944
  break;
37954
37945
  }
37955
37946
  const o = ft.object(i);
37956
- t.additionalProperties === !1 ? n = o.strict() : typeof t.additionalProperties == "object" ? n = o.catchall(fr(t.additionalProperties, e)) : n = o.passthrough();
37947
+ t.additionalProperties === !1 ? n = o.strict() : typeof t.additionalProperties == "object" ? n = o.catchall(cr(t.additionalProperties, e)) : n = o.passthrough();
37957
37948
  break;
37958
37949
  }
37959
37950
  case "array": {
37960
37951
  const i = t.prefixItems, a = t.items;
37961
37952
  if (i && Array.isArray(i)) {
37962
- const s = i.map((u) => fr(u, e)), o = a && typeof a == "object" && !Array.isArray(a) ? fr(a, e) : void 0;
37953
+ const s = i.map((u) => cr(u, e)), o = a && typeof a == "object" && !Array.isArray(a) ? cr(a, e) : void 0;
37963
37954
  o ? n = ft.tuple(s).rest(o) : n = ft.tuple(s), typeof t.minItems == "number" && (n = n.check(ft.minLength(t.minItems))), typeof t.maxItems == "number" && (n = n.check(ft.maxLength(t.maxItems)));
37964
37955
  } else if (Array.isArray(a)) {
37965
- const s = a.map((u) => fr(u, e)), o = t.additionalItems && typeof t.additionalItems == "object" ? fr(t.additionalItems, e) : void 0;
37956
+ const s = a.map((u) => cr(u, e)), o = t.additionalItems && typeof t.additionalItems == "object" ? cr(t.additionalItems, e) : void 0;
37966
37957
  o ? n = ft.tuple(s).rest(o) : n = ft.tuple(s), typeof t.minItems == "number" && (n = n.check(ft.minLength(t.minItems))), typeof t.maxItems == "number" && (n = n.check(ft.maxLength(t.maxItems)));
37967
37958
  } else if (a !== void 0) {
37968
- const s = fr(a, e);
37959
+ const s = cr(a, e);
37969
37960
  let o = ft.array(s);
37970
37961
  typeof t.minItems == "number" && (o = o.min(t.minItems)), typeof t.maxItems == "number" && (o = o.max(t.maxItems)), n = o;
37971
37962
  } else
@@ -37977,27 +37968,27 @@ function ww(t, e) {
37977
37968
  }
37978
37969
  return n;
37979
37970
  }
37980
- function fr(t, e) {
37971
+ function cr(t, e) {
37981
37972
  if (typeof t == "boolean")
37982
37973
  return t ? ft.any() : ft.never();
37983
37974
  let r = ww(t, e);
37984
37975
  const n = t.type || t.enum !== void 0 || t.const !== void 0;
37985
37976
  if (t.anyOf && Array.isArray(t.anyOf)) {
37986
- const o = t.anyOf.map((l) => fr(l, e)), u = ft.union(o);
37977
+ const o = t.anyOf.map((l) => cr(l, e)), u = ft.union(o);
37987
37978
  r = n ? ft.intersection(r, u) : u;
37988
37979
  }
37989
37980
  if (t.oneOf && Array.isArray(t.oneOf)) {
37990
- const o = t.oneOf.map((l) => fr(l, e)), u = ft.xor(o);
37981
+ const o = t.oneOf.map((l) => cr(l, e)), u = ft.xor(o);
37991
37982
  r = n ? ft.intersection(r, u) : u;
37992
37983
  }
37993
37984
  if (t.allOf && Array.isArray(t.allOf))
37994
37985
  if (t.allOf.length === 0)
37995
37986
  r = n ? r : ft.any();
37996
37987
  else {
37997
- let o = n ? r : fr(t.allOf[0], e);
37988
+ let o = n ? r : cr(t.allOf[0], e);
37998
37989
  const u = n ? 0 : 1;
37999
37990
  for (let l = u; l < t.allOf.length; l++)
38000
- o = ft.intersection(o, fr(t.allOf[l], e));
37991
+ o = ft.intersection(o, cr(t.allOf[l], e));
38001
37992
  r = o;
38002
37993
  }
38003
37994
  t.nullable === !0 && e.version === "openapi-3.0" && (r = ft.nullable(r)), t.readOnly === !0 && (r = ft.readonly(r)), t.default !== void 0 && (r = r.default(t.default));
@@ -38028,7 +38019,7 @@ function jD(t, e) {
38028
38019
  rootSchema: r,
38029
38020
  registry: e?.registry ?? Qr
38030
38021
  };
38031
- return fr(r, a);
38022
+ return cr(r, a);
38032
38023
  }
38033
38024
  var _w = {};
38034
38025
  Xi(_w, {
@@ -38053,7 +38044,7 @@ function HD(t) {
38053
38044
  function qD(t) {
38054
38045
  return /* @__PURE__ */ Gv(jl, t);
38055
38046
  }
38056
- nr(cv());
38047
+ ir(cv());
38057
38048
  var He = {
38058
38049
  DEFAULTS: {
38059
38050
  width: 800,
@@ -39472,7 +39463,7 @@ var $ = class extends Qi {
39472
39463
  function Tr(t, e, r) {
39473
39464
  return e in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
39474
39465
  }
39475
- function ar(t, e, r, n) {
39466
+ function nr(t, e, r, n) {
39476
39467
  var i = arguments.length, a = i < 3 ? e : n === null ? n = Object.getOwnPropertyDescriptor(e, r) : n, s;
39477
39468
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function") a = Reflect.decorate(t, e, r, n);
39478
39469
  else for (var o = t.length - 1; o >= 0; o--) (s = t[o]) && (a = (i < 3 ? s(a) : i > 3 ? s(e, r, a) : s(e, r)) || a);
@@ -39513,12 +39504,12 @@ function Jl(t) {
39513
39504
  }
39514
39505
  var _o = {};
39515
39506
  wo(_o, "logErrors", () => oN);
39516
- wo(_o, "registerFormat", () => Ga);
39507
+ wo(_o, "registerFormat", () => Wa);
39517
39508
  wo(_o, "create", () => Vw);
39518
39509
  wo(_o, "defaultLanguage", () => Nu);
39519
39510
  wo(_o, "setDefaultLanguage", () => uN);
39520
39511
  var oN = !1, _0 = [];
39521
- function Ga(t) {
39512
+ function Wa(t) {
39522
39513
  _0.push(t);
39523
39514
  }
39524
39515
  function Vw(t, e) {
@@ -39535,7 +39526,7 @@ var Nu = "en";
39535
39526
  function uN(t = "en") {
39536
39527
  Nu = t;
39537
39528
  }
39538
- function sr(t, e, r) {
39529
+ function ar(t, e, r) {
39539
39530
  if (r.get) {
39540
39531
  let n = r.get;
39541
39532
  r.get = function() {
@@ -40499,7 +40490,7 @@ var PN = ld, MN = new $({
40499
40490
  constructor(t) {
40500
40491
  this.type = t;
40501
40492
  }
40502
- }, ss = 15, jp = [
40493
+ }, os = 15, jp = [
40503
40494
  "0",
40504
40495
  "1",
40505
40496
  "2",
@@ -40531,10 +40522,10 @@ var PN = ld, MN = new $({
40531
40522
  let r = "";
40532
40523
  for (; ; ) {
40533
40524
  let n = t.readUInt8(), i = n >> 4;
40534
- if (i === ss) break;
40525
+ if (i === os) break;
40535
40526
  r += jp[i];
40536
40527
  let a = n & 15;
40537
- if (a === ss) break;
40528
+ if (a === os) break;
40538
40529
  r += jp[a];
40539
40530
  }
40540
40531
  return parseFloat(r);
@@ -40556,14 +40547,14 @@ var PN = ld, MN = new $({
40556
40547
  let i = "" + r;
40557
40548
  for (let a = 0; a < i.length; a += 2) {
40558
40549
  let s = i[a], o = Gp[s] || +s;
40559
- if (a === i.length - 1) var n = ss;
40550
+ if (a === i.length - 1) var n = os;
40560
40551
  else {
40561
40552
  let u = i[a + 1];
40562
40553
  var n = Gp[u] || +u;
40563
40554
  }
40564
40555
  t.writeUInt8(o << 4 | n & 15);
40565
40556
  }
40566
- if (n !== ss) return t.writeUInt8(ss << 4);
40557
+ if (n !== os) return t.writeUInt8(os << 4);
40567
40558
  } else return -107 <= r && r <= 107 ? t.writeUInt8(r + 139) : 108 <= r && r <= 1131 ? (r -= 108, t.writeUInt8((r >> 8) + 247), t.writeUInt8(r & 255)) : -1131 <= r && r <= -108 ? (r = -r - 108, t.writeUInt8((r >> 8) + 251), t.writeUInt8(r & 255)) : -32768 <= r && r <= 32767 ? (t.writeUInt8(28), t.writeInt16BE(r)) : (t.writeUInt8(29), t.writeInt32BE(r));
40568
40559
  }
40569
40560
  }, Ql = class {
@@ -42387,10 +42378,10 @@ var YN = new $({
42387
42378
  lookupCount: g,
42388
42379
  lookupRecords: new P(xo, "lookupCount")
42389
42380
  }
42390
- }), xs = new ia(16, "BE", 14), tB = new $({
42391
- startCoord: xs,
42392
- peakCoord: xs,
42393
- endCoord: xs
42381
+ }), Cs = new ia(16, "BE", 14), tB = new $({
42382
+ startCoord: Cs,
42383
+ peakCoord: Cs,
42384
+ endCoord: Cs
42394
42385
  }), eB = new $({
42395
42386
  axisCount: g,
42396
42387
  regionCount: g,
@@ -42414,8 +42405,8 @@ var YN = new $({
42414
42405
  1: {
42415
42406
  axisIndex: g,
42416
42407
  axisIndex: g,
42417
- filterRangeMinValue: xs,
42418
- filterRangeMaxValue: xs
42408
+ filterRangeMinValue: Cs,
42409
+ filterRangeMaxValue: Cs
42419
42410
  }
42420
42411
  }), aB = new $({
42421
42412
  conditionCount: g,
@@ -43219,7 +43210,7 @@ var Kp = new $({
43219
43210
  offsetPaletteLabelArray: new M(z, new P(g, "numPalettes")),
43220
43211
  offsetPaletteEntryLabelArray: new M(z, new P(g, "numPaletteEntries"))
43221
43212
  }
43222
- }), Rs = new re(g, {
43213
+ }), $s = new re(g, {
43223
43214
  1: {
43224
43215
  coordinate: Q
43225
43216
  // X or Y value, in design units
@@ -43238,19 +43229,19 @@ var Kp = new $({
43238
43229
  }), zB = new $({
43239
43230
  defaultIndex: g,
43240
43231
  baseCoordCount: g,
43241
- baseCoords: new P(new M(g, Rs), "baseCoordCount")
43232
+ baseCoords: new P(new M(g, $s), "baseCoordCount")
43242
43233
  }), VB = new $({
43243
43234
  tag: new me(4),
43244
- minCoord: new M(g, Rs, {
43235
+ minCoord: new M(g, $s, {
43245
43236
  type: "parent"
43246
43237
  }),
43247
- maxCoord: new M(g, Rs, {
43238
+ maxCoord: new M(g, $s, {
43248
43239
  type: "parent"
43249
43240
  })
43250
43241
  // May be NULL
43251
43242
  }), i2 = new $({
43252
- minCoord: new M(g, Rs),
43253
- maxCoord: new M(g, Rs),
43243
+ minCoord: new M(g, $s),
43244
+ maxCoord: new M(g, $s),
43254
43245
  featMinMaxCount: g,
43255
43246
  featMinMaxRecords: new P(VB, "featMinMaxCount")
43256
43247
  // In alphabetical order
@@ -43351,7 +43342,7 @@ var Kp = new $({
43351
43342
  type: "global",
43352
43343
  relativeTo: (t) => t.rel
43353
43344
  })
43354
- }, Oa = class {
43345
+ }, Ra = class {
43355
43346
  buildStruct(t) {
43356
43347
  let e = t;
43357
43348
  for (; !e[this.key] && e.parent; ) e = e.parent;
@@ -43374,12 +43365,12 @@ var Kp = new $({
43374
43365
  }
43375
43366
  }, KB = new $({
43376
43367
  secondGlyph: g,
43377
- value1: new Oa("valueFormat1"),
43378
- value2: new Oa("valueFormat2")
43368
+ value1: new Ra("valueFormat1"),
43369
+ value2: new Ra("valueFormat2")
43379
43370
  }), JB = new P(KB, g), QB = new $({
43380
- value1: new Oa("valueFormat1"),
43381
- value2: new Oa("valueFormat2")
43382
- }), $s = new re(g, {
43371
+ value1: new Ra("valueFormat1"),
43372
+ value2: new Ra("valueFormat2")
43373
+ }), Ls = new re(g, {
43383
43374
  1: {
43384
43375
  xCoordinate: Q,
43385
43376
  yCoordinate: Q
@@ -43396,29 +43387,29 @@ var Kp = new $({
43396
43387
  yDeviceTable: new M(g, pn)
43397
43388
  }
43398
43389
  }), tI = new $({
43399
- entryAnchor: new M(g, $s, {
43390
+ entryAnchor: new M(g, Ls, {
43400
43391
  type: "parent"
43401
43392
  }),
43402
- exitAnchor: new M(g, $s, {
43393
+ exitAnchor: new M(g, Ls, {
43403
43394
  type: "parent"
43404
43395
  })
43405
43396
  }), eI = new $({
43406
43397
  class: g,
43407
- markAnchor: new M(g, $s, {
43398
+ markAnchor: new M(g, Ls, {
43408
43399
  type: "parent"
43409
43400
  })
43410
- }), $c = new P(eI, g), rI = new P(new M(g, $s), (t) => t.parent.classCount), tm = new P(rI, g), iI = new P(new M(g, $s), (t) => t.parent.parent.classCount), nI = new P(iI, g), aI = new P(new M(g, nI), g), Ls = new re("lookupType", {
43401
+ }), $c = new P(eI, g), rI = new P(new M(g, Ls), (t) => t.parent.classCount), tm = new P(rI, g), iI = new P(new M(g, Ls), (t) => t.parent.parent.classCount), nI = new P(iI, g), aI = new P(new M(g, nI), g), Zs = new re("lookupType", {
43411
43402
  1: new re(g, {
43412
43403
  1: {
43413
43404
  coverage: new M(g, pe),
43414
43405
  valueFormat: pa,
43415
- value: new Oa()
43406
+ value: new Ra()
43416
43407
  },
43417
43408
  2: {
43418
43409
  coverage: new M(g, pe),
43419
43410
  valueFormat: pa,
43420
43411
  valueCount: g,
43421
- values: new ge(new Oa(), "valueCount")
43412
+ values: new ge(new Ra(), "valueCount")
43422
43413
  }
43423
43414
  }),
43424
43415
  2: new re(g, {
@@ -43478,12 +43469,12 @@ var Kp = new $({
43478
43469
  extension: new M(z, null)
43479
43470
  }
43480
43471
  });
43481
- Ls.versions[9].extension.type = Ls;
43472
+ Zs.versions[9].extension.type = Zs;
43482
43473
  var sI = new re(z, {
43483
43474
  header: {
43484
43475
  scriptList: new M(g, Uw),
43485
43476
  featureList: new M(g, Gw),
43486
- lookupList: new M(g, new Iu(Ls))
43477
+ lookupList: new M(g, new Iu(Zs))
43487
43478
  },
43488
43479
  65536: {},
43489
43480
  65537: {
@@ -43556,12 +43547,12 @@ var cI = new re(z, {
43556
43547
  shrinkageDisableGSUB: new M(g, sn),
43557
43548
  shrinkageEnableGPOS: new M(g, sn),
43558
43549
  shrinkageDisableGPOS: new M(g, sn),
43559
- shrinkageJstfMax: new M(g, new Iu(Ls)),
43550
+ shrinkageJstfMax: new M(g, new Iu(Zs)),
43560
43551
  extensionEnableGSUB: new M(g, sn),
43561
43552
  extensionDisableGSUB: new M(g, sn),
43562
43553
  extensionEnableGPOS: new M(g, sn),
43563
43554
  extensionDisableGPOS: new M(g, sn),
43564
- extensionJstfMax: new M(g, new Iu(Ls))
43555
+ extensionJstfMax: new M(g, new Iu(Zs))
43565
43556
  }), a2 = new P(new M(g, fI), g), hI = new $({
43566
43557
  tag: new me(4),
43567
43558
  jstfLangSys: new M(g, a2)
@@ -44247,14 +44238,14 @@ function va(t, e) {
44247
44238
  for (; t < e; ) r.push(t++);
44248
44239
  return r;
44249
44240
  }
44250
- var ec = new TextDecoder("ascii"), sm = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", vs = new Uint8Array(256);
44251
- for (let t = 0; t < sm.length; t++) vs[sm.charCodeAt(t)] = t;
44241
+ var ec = new TextDecoder("ascii"), sm = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", bs = new Uint8Array(256);
44242
+ for (let t = 0; t < sm.length; t++) bs[sm.charCodeAt(t)] = t;
44252
44243
  function fd(t) {
44253
44244
  let e = t.length * 0.75;
44254
44245
  t[t.length - 1] === "=" && (e--, t[t.length - 2] === "=" && e--);
44255
44246
  let r = new Uint8Array(e), n = 0;
44256
44247
  for (let i = 0, a = t.length; i < a; i += 4) {
44257
- let s = vs[t.charCodeAt(i)], o = vs[t.charCodeAt(i + 1)], u = vs[t.charCodeAt(i + 2)], l = vs[t.charCodeAt(i + 3)];
44248
+ let s = bs[t.charCodeAt(i)], o = bs[t.charCodeAt(i + 1)], u = bs[t.charCodeAt(i + 2)], l = bs[t.charCodeAt(i + 3)];
44258
44249
  r[n++] = s << 2 | o >> 4, r[n++] = (o & 15) << 4 | u >> 2, r[n++] = (u & 3) << 6 | l & 63;
44259
44250
  }
44260
44251
  return r;
@@ -44438,11 +44429,11 @@ var hd = class {
44438
44429
  ]), this.uvs && this.uvs.version !== 14 && (this.uvs = null);
44439
44430
  }
44440
44431
  };
44441
- ar([
44442
- sr
44432
+ nr([
44433
+ ar
44443
44434
  ], hd.prototype, "getCharacterSet", null);
44444
- ar([
44445
- sr
44435
+ nr([
44436
+ ar
44446
44437
  ], hd.prototype, "codePointsForGlyph", null);
44447
44438
  var _T = class {
44448
44439
  process(t, e) {
@@ -44631,7 +44622,7 @@ var _T = class {
44631
44622
  constructor(t) {
44632
44623
  this.font = t;
44633
44624
  }
44634
- }, Ra = class o2 {
44625
+ }, $a = class o2 {
44635
44626
  /**
44636
44627
  * The width of the bounding box
44637
44628
  * @type {number}
@@ -44655,7 +44646,7 @@ var _T = class {
44655
44646
  constructor(e = 1 / 0, r = 1 / 0, n = -1 / 0, i = -1 / 0) {
44656
44647
  this.minX = e, this.minY = r, this.maxX = n, this.maxY = i;
44657
44648
  }
44658
- }, $a = {
44649
+ }, La = {
44659
44650
  Caucasian_Albanian: "aghb",
44660
44651
  Arabic: "arab",
44661
44652
  Imperial_Aramaic: "armi",
@@ -44814,8 +44805,8 @@ var _T = class {
44814
44805
  Common: "zyyy",
44815
44806
  Unknown: "zzzz"
44816
44807
  }, E0 = {};
44817
- for (let t in $a) {
44818
- let e = $a[t];
44808
+ for (let t in La) {
44809
+ let e = La[t];
44819
44810
  if (Array.isArray(e)) for (let r of e) E0[r] = t;
44820
44811
  else E0[e] = t;
44821
44812
  }
@@ -44831,16 +44822,16 @@ function AT(t) {
44831
44822
  56320 <= a && a <= 57343 && (r++, n = ((n & 1023) << 10) + (a & 1023) + 65536);
44832
44823
  }
44833
44824
  let i = Pw(n);
44834
- if (i !== "Common" && i !== "Inherited" && i !== "Unknown") return $a[i];
44825
+ if (i !== "Common" && i !== "Inherited" && i !== "Unknown") return La[i];
44835
44826
  }
44836
- return $a.Unknown;
44827
+ return La.Unknown;
44837
44828
  }
44838
44829
  function ET(t) {
44839
44830
  for (let e = 0; e < t.length; e++) {
44840
44831
  let r = t[e], n = Pw(r);
44841
- if (n !== "Common" && n !== "Inherited" && n !== "Unknown") return $a[n];
44832
+ if (n !== "Common" && n !== "Inherited" && n !== "Unknown") return La[n];
44842
44833
  }
44843
- return $a.Unknown;
44834
+ return La.Unknown;
44844
44835
  }
44845
44836
  var kT = {
44846
44837
  arab: !0,
@@ -44898,7 +44889,7 @@ var ST = class {
44898
44889
  * @type {BBox}
44899
44890
  */
44900
44891
  get bbox() {
44901
- let t = new Ra(), e = 0, r = 0;
44892
+ let t = new $a(), e = 0, r = 0;
44902
44893
  for (let n = 0; n < this.glyphs.length; n++) {
44903
44894
  let i = this.glyphs[n], a = this.positions[n], s = i.bbox;
44904
44895
  t.addPoint(s.minX + e + a.xOffset, s.minY + r + a.yOffset), t.addPoint(s.maxX + e + a.xOffset, s.maxY + r + a.yOffset), e += a.xAdvance, r += a.yAdvance;
@@ -45403,7 +45394,7 @@ function NT(t) {
45403
45394
  }
45404
45395
  return Object.keys(e);
45405
45396
  }
45406
- var Cs = class {
45397
+ var As = class {
45407
45398
  lookup(t) {
45408
45399
  switch (this.table.version) {
45409
45400
  case 0:
@@ -45462,9 +45453,9 @@ var Cs = class {
45462
45453
  this.table = t;
45463
45454
  }
45464
45455
  };
45465
- ar([
45466
- sr
45467
- ], Cs.prototype, "glyphsForValue", null);
45456
+ nr([
45457
+ ar
45458
+ ], As.prototype, "glyphsForValue", null);
45468
45459
  var BT = 0, um = 0, lm = 1, cm = 2, IT = 16384, TT = class {
45469
45460
  process(t, e, r) {
45470
45461
  let n = BT, i = e ? t.length - 1 : 0, a = e ? -1 : 1;
@@ -45491,7 +45482,7 @@ var BT = 0, um = 0, lm = 1, cm = 2, IT = 16384, TT = class {
45491
45482
  }
45492
45483
  }
45493
45484
  constructor(t) {
45494
- this.stateTable = t, this.lookupTable = new Cs(t.classTable);
45485
+ this.stateTable = t, this.lookupTable = new As(t.classTable);
45495
45486
  }
45496
45487
  }, PT = 32768, MT = 8192, zT = 15, fm = 32768, VT = 32768, OT = 8192, RT = 2147483648, $T = 1073741824, LT = 1073741823, hm = 4194304, ZT = 2048, UT = 1024, jT = 992, GT = 31, l2 = class {
45497
45488
  // Processes an array of glyphs and applies the specified features
@@ -45544,13 +45535,13 @@ var BT = 0, um = 0, lm = 1, cm = 2, IT = 16384, TT = class {
45544
45535
  processContextualSubstitution(t, e, r) {
45545
45536
  let n = this.subtable.table.substitutionTable.items;
45546
45537
  if (e.markIndex !== 65535) {
45547
- let a = n.getItem(e.markIndex), s = new Cs(a);
45538
+ let a = n.getItem(e.markIndex), s = new As(a);
45548
45539
  t = this.glyphs[this.markedGlyph];
45549
45540
  var i = s.lookup(t.id);
45550
45541
  i && (this.glyphs[this.markedGlyph] = this.font.getGlyph(i, t.codePoints));
45551
45542
  }
45552
45543
  if (e.currentIndex !== 65535) {
45553
- let a = n.getItem(e.currentIndex), s = new Cs(a);
45544
+ let a = n.getItem(e.currentIndex), s = new As(a);
45554
45545
  t = this.glyphs[r];
45555
45546
  var i = s.lookup(t.id);
45556
45547
  i && (this.glyphs[r] = this.font.getGlyph(i, t.codePoints));
@@ -45577,7 +45568,7 @@ var BT = 0, um = 0, lm = 1, cm = 2, IT = 16384, TT = class {
45577
45568
  }
45578
45569
  }
45579
45570
  processNoncontextualSubstitutions(t, e, r) {
45580
- let n = new Cs(t.table.lookupTable);
45571
+ let n = new As(t.table.lookupTable);
45581
45572
  for (r = 0; r < e.length; r++) {
45582
45573
  let i = e[r];
45583
45574
  if (i.id !== 65535) {
@@ -45654,8 +45645,8 @@ var BT = 0, um = 0, lm = 1, cm = 2, IT = 16384, TT = class {
45654
45645
  this.processIndicRearragement = this.processIndicRearragement.bind(this), this.processContextualSubstitution = this.processContextualSubstitution.bind(this), this.processLigature = this.processLigature.bind(this), this.processNoncontextualSubstitutions = this.processNoncontextualSubstitutions.bind(this), this.processGlyphInsertion = this.processGlyphInsertion.bind(this), this.font = t, this.morx = t.morx, this.inputCache = null;
45655
45646
  }
45656
45647
  };
45657
- ar([
45658
- sr
45648
+ nr([
45649
+ ar
45659
45650
  ], l2.prototype, "getStateMachine", null);
45660
45651
  function mr(t, e, r, n = !1, i = !1) {
45661
45652
  let a = t.splice(r[0] - (r[1] - 1), r[1]);
@@ -46497,7 +46488,7 @@ var nP = class {
46497
46488
  }
46498
46489
  };
46499
46490
  Tr(f2, "zeroMarkWidths", "NONE");
46500
- var La = 44032, h2 = 55204, sP = h2 - La + 1, rc = 4352, ic = 4449, Hn = 4519, oP = 19, zu = 21, Zs = 28, uP = rc + oP - 1, lP = ic + zu - 1, cP = Hn + Zs - 1, pm = 9676, fP = (t) => 4352 <= t && t <= 4447 || 43360 <= t && t <= 43388, hP = (t) => 4448 <= t && t <= 4519 || 55216 <= t && t <= 55238, dP = (t) => 4520 <= t && t <= 4607 || 55243 <= t && t <= 55291, pP = (t) => 12334 <= t && t <= 12335, mP = (t) => La <= t && t <= h2, gP = (t) => t - La < sP && (t - La) % Zs === 0, yP = (t) => rc <= t && t <= uP, vP = (t) => ic <= t && t <= lP, bP = (t) => 1 <= t && t <= cP, wP = 0, _P = 1, Vu = 2, dd = 3, Ou = 4, d2 = 5, xP = 6;
46491
+ var Za = 44032, h2 = 55204, sP = h2 - Za + 1, rc = 4352, ic = 4449, Hn = 4519, oP = 19, zu = 21, Us = 28, uP = rc + oP - 1, lP = ic + zu - 1, cP = Hn + Us - 1, pm = 9676, fP = (t) => 4352 <= t && t <= 4447 || 43360 <= t && t <= 43388, hP = (t) => 4448 <= t && t <= 4519 || 55216 <= t && t <= 55238, dP = (t) => 4520 <= t && t <= 4607 || 55243 <= t && t <= 55291, pP = (t) => 12334 <= t && t <= 12335, mP = (t) => Za <= t && t <= h2, gP = (t) => t - Za < sP && (t - Za) % Us === 0, yP = (t) => rc <= t && t <= uP, vP = (t) => ic <= t && t <= lP, bP = (t) => 1 <= t && t <= cP, wP = 0, _P = 1, Vu = 2, dd = 3, Ou = 4, d2 = 5, xP = 6;
46501
46492
  function Ru(t) {
46502
46493
  return fP(t) ? _P : hP(t) ? Vu : dP(t) ? dd : gP(t) ? Ou : mP(t) ? d2 : pP(t) ? xP : wP;
46503
46494
  }
@@ -46628,26 +46619,26 @@ var Cr = 0, Ri = 1, S0 = 2, D0 = 4, F0 = 5, CP = [
46628
46619
  ]
46629
46620
  ]
46630
46621
  ];
46631
- function As(t, e, r) {
46622
+ function Es(t, e, r) {
46632
46623
  return new qi(t, t.glyphForCodePoint(e).id, [
46633
46624
  e
46634
46625
  ], r);
46635
46626
  }
46636
46627
  function p2(t, e, r) {
46637
- let n = t[e], a = n.codePoints[0] - La, s = Hn + a % Zs;
46638
- a = a / Zs | 0;
46628
+ let n = t[e], a = n.codePoints[0] - Za, s = Hn + a % Us;
46629
+ a = a / Us | 0;
46639
46630
  let o = rc + a / zu | 0, u = ic + a % zu;
46640
46631
  if (!r.hasGlyphForCodePoint(o) || !r.hasGlyphForCodePoint(u) || s !== Hn && !r.hasGlyphForCodePoint(s)) return e;
46641
- let l = As(r, o, n.features);
46632
+ let l = Es(r, o, n.features);
46642
46633
  l.features.ljmo = !0;
46643
- let c = As(r, u, n.features);
46634
+ let c = Es(r, u, n.features);
46644
46635
  c.features.vjmo = !0;
46645
46636
  let h = [
46646
46637
  l,
46647
46638
  c
46648
46639
  ];
46649
46640
  if (s > Hn) {
46650
- let m = As(r, s, n.features);
46641
+ let m = Es(r, s, n.features);
46651
46642
  m.features.tjmo = !0, h.push(m);
46652
46643
  }
46653
46644
  return t.splice(e, 1, ...h), e + h.length - 1;
@@ -46659,14 +46650,14 @@ function AP(t, e, r) {
46659
46650
  else {
46660
46651
  a === Vu ? (l = t[e - 1], c = n) : (l = t[e - 2], c = t[e - 1], h = n);
46661
46652
  let d = l.codePoints[0], y = c.codePoints[0];
46662
- yP(d) && vP(y) && (u = La + ((d - rc) * zu + (y - ic)) * Zs);
46653
+ yP(d) && vP(y) && (u = Za + ((d - rc) * zu + (y - ic)) * Us);
46663
46654
  }
46664
46655
  let m = h && h.codePoints[0] || Hn;
46665
46656
  if (u != null && (m === Hn || bP(m))) {
46666
46657
  let d = u + (m - Hn);
46667
46658
  if (r.hasGlyphForCodePoint(d)) {
46668
46659
  let y = o === Vu ? 3 : 2;
46669
- return t.splice(e - y + 1, y, As(r, d, n.features)), e - y + 1;
46660
+ return t.splice(e - y + 1, y, Es(r, d, n.features)), e - y + 1;
46670
46661
  }
46671
46662
  }
46672
46663
  return l && (l.features.ljmo = !0), c && (c.features.vjmo = !0), h && (h.features.tjmo = !0), o === Ou ? (p2(t, e - 1, r), e + 1) : e;
@@ -46691,7 +46682,7 @@ function kP(t, e, r) {
46691
46682
  function SP(t, e, r) {
46692
46683
  let n = t[e], i = t[e].codePoints[0];
46693
46684
  if (r.hasGlyphForCodePoint(pm)) {
46694
- let a = As(r, pm, n.features), s = r.glyphForCodePoint(i).advanceWidth === 0 ? e : e + 1;
46685
+ let a = Es(r, pm, n.features), s = r.glyphForCodePoint(i).advanceWidth === 0 ? e : e + 1;
46695
46686
  t.splice(s, 0, a), e++;
46696
46687
  }
46697
46688
  return e;
@@ -46732,7 +46723,7 @@ var Jt = {
46732
46723
  Final_C: 8192,
46733
46724
  SMVD: 16384,
46734
46725
  End: 32768
46735
- }, DP = Jt.C | Jt.Ra | Jt.CM | Jt.V | Jt.Placeholder | Jt.Dotted_Circle, g2 = Jt.ZWJ | Jt.ZWNJ, Es = Jt.H | Jt.Coeng, mm = {
46726
+ }, DP = Jt.C | Jt.Ra | Jt.CM | Jt.V | Jt.Placeholder | Jt.Dotted_Circle, g2 = Jt.ZWJ | Jt.ZWNJ, ks = Jt.H | Jt.Coeng, mm = {
46736
46727
  Default: {
46737
46728
  hasOldSpec: !1,
46738
46729
  virama: 0,
@@ -46925,7 +46916,7 @@ function Ci(t) {
46925
46916
  return t.shaperInfo.category & g2;
46926
46917
  }
46927
46918
  function Oi(t) {
46928
- return t.shaperInfo.category & Es;
46919
+ return t.shaperInfo.category & ks;
46929
46920
  }
46930
46921
  function Zi(t, e) {
46931
46922
  for (let n of t) n.features = {
@@ -47026,7 +47017,7 @@ function PP(t, e, r) {
47026
47017
  let y = zt.Start;
47027
47018
  for (let A = o; A < u; A++) {
47028
47019
  let _ = e[A].shaperInfo;
47029
- if (_.category & (g2 | Jt.N | Jt.RS | Jt.CM | Es & _.category)) {
47020
+ if (_.category & (g2 | Jt.N | Jt.RS | Jt.CM | ks & _.category)) {
47030
47021
  if (_.position = y, _.category === Jt.H && _.position === zt.Pre_M) {
47031
47022
  for (let k = A; k > o; k--) if (e[k - 1].shaperInfo.position !== zt.Pre_M) {
47032
47023
  _.position = e[k - 1].shaperInfo.position;
@@ -47099,11 +47090,11 @@ function MP(t, e, r) {
47099
47090
  a < u && e[u].shaperInfo.position > zt.Base_C && u--;
47100
47091
  break;
47101
47092
  }
47102
- if (u === s && a < u && e[u - 1].shaperInfo.category === Jt.ZWJ && u--, u < s) for (; a < u && e[u].shaperInfo.category & (Jt.N | Es); ) u--;
47093
+ if (u === s && a < u && e[u - 1].shaperInfo.category === Jt.ZWJ && u--, u < s) for (; a < u && e[u].shaperInfo.category & (Jt.N | ks); ) u--;
47103
47094
  if (a + 1 < s && a < u) {
47104
47095
  let l = u === s ? u - 2 : u - 1;
47105
47096
  if (r.unicodeScript !== "Malayalam" && r.unicodeScript !== "Tamil") {
47106
- for (; l > a && !(e[l].shaperInfo.category & (Jt.M | Es)); ) l--;
47097
+ for (; l > a && !(e[l].shaperInfo.category & (Jt.M | ks)); ) l--;
47107
47098
  Oi(e[l]) && e[l].shaperInfo.position !== zt.Pre_M ? l + 1 < s && Ci(e[l + 1]) && l++ : l = a;
47108
47099
  }
47109
47100
  if (a < l && e[l].shaperInfo.position !== zt.Pre_M) {
@@ -47145,7 +47136,7 @@ function MP(t, e, r) {
47145
47136
  if (e[l].isLigated && !e[l].isMultiplied) {
47146
47137
  let c = u;
47147
47138
  if (r.unicodeScript !== "Malayalam" && r.unicodeScript !== "Tamil") {
47148
- for (; c > a && !(e[c - 1].shaperInfo.category & (Jt.M | Es)); ) c--;
47139
+ for (; c > a && !(e[c - 1].shaperInfo.category & (Jt.M | ks)); ) c--;
47149
47140
  if (c > a && e[c - 1].shaperInfo.category === Jt.M) {
47150
47141
  let d = l;
47151
47142
  for (let y = u + 1; y < d; y++) if (e[y].shaperInfo.category === Jt.M) {
@@ -47722,7 +47713,7 @@ var WP = class extends Mu {
47722
47713
  */
47723
47714
  get cbox() {
47724
47715
  if (!this._cbox) {
47725
- let e = new Ra();
47716
+ let e = new $a();
47726
47717
  for (let r of this.commands) for (let n = 0; n < r.args.length; n += 2) e.addPoint(r.args[n], r.args[n + 1]);
47727
47718
  this._cbox = Object.freeze(e);
47728
47719
  }
@@ -47735,7 +47726,7 @@ var WP = class extends Mu {
47735
47726
  */
47736
47727
  get bbox() {
47737
47728
  if (this._bbox) return this._bbox;
47738
- let e = new Ra(), r = 0, n = 0, i = (B) => Math.pow(1 - B, 3) * d[S] + 3 * Math.pow(1 - B, 2) * B * y[S] + 3 * (1 - B) * Math.pow(B, 2) * w[S] + Math.pow(B, 3) * v[S];
47729
+ let e = new $a(), r = 0, n = 0, i = (B) => Math.pow(1 - B, 3) * d[S] + 3 * Math.pow(1 - B, 2) * B * y[S] + 3 * (1 - B) * Math.pow(B, 2) * w[S] + Math.pow(B, 3) * v[S];
47739
47730
  for (let B of this.commands) switch (B.command) {
47740
47731
  case "moveTo":
47741
47732
  case "lineTo":
@@ -47844,7 +47835,7 @@ for (let t of [
47844
47835
  args: e
47845
47836
  }), this;
47846
47837
  };
47847
- var os = [
47838
+ var us = [
47848
47839
  ".notdef",
47849
47840
  ".null",
47850
47841
  "nonmarkingreturn",
@@ -48200,12 +48191,12 @@ var os = [
48200
48191
  if (!t) return null;
48201
48192
  switch (t.version) {
48202
48193
  case 1:
48203
- return os[this.id];
48194
+ return us[this.id];
48204
48195
  case 2:
48205
48196
  let e = t.glyphNameIndex[this.id];
48206
- return e < os.length ? os[e] : t.names[e - os.length];
48197
+ return e < us.length ? us[e] : t.names[e - us.length];
48207
48198
  case 2.5:
48208
- return os[this.id + t.offsets[this.id]];
48199
+ return us[this.id + t.offsets[this.id]];
48209
48200
  case 4:
48210
48201
  return String.fromCharCode(t.map[this.id]);
48211
48202
  }
@@ -48231,23 +48222,23 @@ var os = [
48231
48222
  this.id = t, this.codePoints = e, this._font = r, this.isMark = this.codePoints.length > 0 && this.codePoints.every(Mw), this.isLigature = this.codePoints.length > 1;
48232
48223
  }
48233
48224
  };
48234
- ar([
48235
- sr
48225
+ nr([
48226
+ ar
48236
48227
  ], Bi.prototype, "cbox", null);
48237
- ar([
48238
- sr
48228
+ nr([
48229
+ ar
48239
48230
  ], Bi.prototype, "bbox", null);
48240
- ar([
48241
- sr
48231
+ nr([
48232
+ ar
48242
48233
  ], Bi.prototype, "path", null);
48243
- ar([
48244
- sr
48234
+ nr([
48235
+ ar
48245
48236
  ], Bi.prototype, "advanceWidth", null);
48246
- ar([
48247
- sr
48237
+ nr([
48238
+ ar
48248
48239
  ], Bi.prototype, "advanceHeight", null);
48249
- ar([
48250
- sr
48240
+ nr([
48241
+ ar
48251
48242
  ], Bi.prototype, "name", null);
48252
48243
  var _m = new $({
48253
48244
  numberOfContours: Q,
@@ -48272,7 +48263,7 @@ var _m = new $({
48272
48263
  if (this._font._variationProcessor && !t) return this.path.cbox;
48273
48264
  let e = this._font._getTableStream("glyf");
48274
48265
  e.pos += this._font.loca.offsets[this.id];
48275
- let r = _m.decode(e), n = new Ra(r.xMin, r.yMin, r.xMax, r.yMax);
48266
+ let r = _m.decode(e), n = new $a(r.xMin, r.yMin, r.xMax, r.yMax);
48276
48267
  return Object.freeze(n);
48277
48268
  }
48278
48269
  // Parses a single glyph coordinate
@@ -48711,7 +48702,7 @@ var _m = new $({
48711
48702
  }
48712
48703
  }, hM = class extends Bi {
48713
48704
  _getBBox() {
48714
- let t = new Ra();
48705
+ let t = new $a();
48715
48706
  for (let e = 0; e < this.layers.length; e++) {
48716
48707
  let n = this.layers[e].glyph.bbox;
48717
48708
  t.addPoint(n.minX, n.minY), t.addPoint(n.maxX, n.maxY);
@@ -49350,7 +49341,7 @@ var _2 = class {
49350
49341
  * @type {BBox}
49351
49342
  */
49352
49343
  get bbox() {
49353
- return Object.freeze(new Ra(this.head.xMin, this.head.yMin, this.head.xMax, this.head.yMax));
49344
+ return Object.freeze(new $a(this.head.xMin, this.head.yMin, this.head.xMax, this.head.yMax));
49354
49345
  }
49355
49346
  get _cmapProcessor() {
49356
49347
  return new hd(this.cmap);
@@ -49545,26 +49536,26 @@ var _2 = class {
49545
49536
  }
49546
49537
  }
49547
49538
  };
49548
- ar([
49549
- sr
49539
+ nr([
49540
+ ar
49550
49541
  ], Br.prototype, "bbox", null);
49551
- ar([
49552
- sr
49542
+ nr([
49543
+ ar
49553
49544
  ], Br.prototype, "_cmapProcessor", null);
49554
- ar([
49555
- sr
49545
+ nr([
49546
+ ar
49556
49547
  ], Br.prototype, "characterSet", null);
49557
- ar([
49558
- sr
49548
+ nr([
49549
+ ar
49559
49550
  ], Br.prototype, "_layoutEngine", null);
49560
- ar([
49561
- sr
49551
+ nr([
49552
+ ar
49562
49553
  ], Br.prototype, "variationAxes", null);
49563
- ar([
49564
- sr
49554
+ nr([
49555
+ ar
49565
49556
  ], Br.prototype, "namedVariations", null);
49566
- ar([
49567
- sr
49557
+ nr([
49558
+ ar
49568
49559
  ], Br.prototype, "_variationProcessor", null);
49569
49560
  var NM = new $({
49570
49561
  tag: new me(4),
@@ -49953,11 +49944,11 @@ var WM = new $({
49953
49944
  }
49954
49945
  }
49955
49946
  };
49956
- Ga(Br);
49957
- Ga(IM);
49958
- Ga(VM);
49959
- Ga(jM);
49960
- Ga(XM);
49947
+ Wa(Br);
49948
+ Wa(IM);
49949
+ Wa(VM);
49950
+ Wa(jM);
49951
+ Wa(XM);
49961
49952
  function Wo(t) {
49962
49953
  if (t == null) return "400";
49963
49954
  if (typeof t == "number") return String(t);
@@ -50393,7 +50384,7 @@ function KM() {
50393
50384
  //0=neutral, 1=L, 2=R
50394
50385
  _isolate: 0
50395
50386
  //bool
50396
- }], Ht = void 0, or = 0, dr = 0, qe = 0;
50387
+ }], Ht = void 0, sr = 0, dr = 0, qe = 0;
50397
50388
  St.clear();
50398
50389
  for (var Ce = pt.start; Ce <= pt.end; Ce++) {
50399
50390
  var Se = et[Ce];
@@ -50401,31 +50392,31 @@ function KM() {
50401
50392
  if (Se & (Wt | Lt)) {
50402
50393
  wt[Ce] = Ht._level;
50403
50394
  var Nn = (Se === Wt ? Pr : ve)(Ht._level);
50404
- Nn <= yt && !or && !dr ? Kt.push({
50395
+ Nn <= yt && !sr && !dr ? Kt.push({
50405
50396
  _level: Nn,
50406
50397
  _override: 0,
50407
50398
  _isolate: 0
50408
- }) : or || dr++;
50399
+ }) : sr || dr++;
50409
50400
  } else if (Se & (Dt | st)) {
50410
50401
  wt[Ce] = Ht._level;
50411
50402
  var Ii = (Se === Dt ? Pr : ve)(Ht._level);
50412
- Ii <= yt && !or && !dr ? Kt.push({
50403
+ Ii <= yt && !sr && !dr ? Kt.push({
50413
50404
  _level: Ii,
50414
50405
  _override: Se & Dt ? O : N,
50415
50406
  _isolate: 0
50416
- }) : or || dr++;
50407
+ }) : sr || dr++;
50417
50408
  } else if (Se & a) {
50418
50409
  Se & Ue && (Se = Pd(Ce + 1, !0) === 1 ? ee : le), wt[Ce] = Ht._level, Ht._override && Nt(Ce, Ht._override);
50419
50410
  var Ti = (Se === ee ? Pr : ve)(Ht._level);
50420
- Ti <= yt && or === 0 && dr === 0 ? (qe++, Kt.push({
50411
+ Ti <= yt && sr === 0 && dr === 0 ? (qe++, Kt.push({
50421
50412
  _level: Ti,
50422
50413
  _override: 0,
50423
50414
  _isolate: 1,
50424
50415
  _isolInitIndex: Ce
50425
- })) : or++;
50416
+ })) : sr++;
50426
50417
  } else if (Se & oe) {
50427
- if (or > 0)
50428
- or--;
50418
+ if (sr > 0)
50419
+ sr--;
50429
50420
  else if (qe > 0) {
50430
50421
  for (dr = 0; !Kt[Kt.length - 1]._isolate; )
50431
50422
  Kt.pop();
@@ -50433,14 +50424,14 @@ function KM() {
50433
50424
  tn != null && (ae.set(tn, Ce), ae.set(Ce, tn)), Kt.pop(), qe--;
50434
50425
  }
50435
50426
  Ht = Kt[Kt.length - 1], wt[Ce] = Ht._level, Ht._override && Nt(Ce, Ht._override);
50436
- } else Se & ue ? (or === 0 && (dr > 0 ? dr-- : !Ht._isolate && Kt.length > 1 && (Kt.pop(), Ht = Kt[Kt.length - 1])), wt[Ce] = Ht._level) : Se & J && (wt[Ce] = pt.level);
50427
+ } else Se & ue ? (sr === 0 && (dr > 0 ? dr-- : !Ht._isolate && Kt.length > 1 && (Kt.pop(), Ht = Kt[Kt.length - 1])), wt[Ce] = Ht._level) : Se & J && (wt[Ce] = pt.level);
50437
50428
  else
50438
50429
  wt[Ce] = Ht._level, Ht._override && Se !== Et && Nt(Ce, Ht._override);
50439
50430
  }
50440
50431
  for (var jr = [], pr = null, Mr = pt.start; Mr <= pt.end; Mr++) {
50441
- var ur = et[Mr];
50442
- if (!(ur & u)) {
50443
- var Pi = wt[Mr], Bn = ur & a, T = ur === oe;
50432
+ var or = et[Mr];
50433
+ if (!(or & u)) {
50434
+ var Pi = wt[Mr], Bn = or & a, T = or === oe;
50444
50435
  pr && Pi === pr._level ? (pr._end = Mr, pr._endsWithIsolInit = Bn) : jr.push(pr = {
50445
50436
  _start: Mr,
50446
50437
  _end: Mr,
@@ -50460,25 +50451,25 @@ function KM() {
50460
50451
  break;
50461
50452
  }
50462
50453
  for (var ni = [], In = 0; In < ie.length; In++)
50463
- for (var Wa = ie[In], en = Wa._start; en <= Wa._end; en++)
50454
+ for (var Ya = ie[In], en = Ya._start; en <= Ya._end; en++)
50464
50455
  ni.push(en);
50465
50456
  for (var Tn = wt[ni[0]], sa = pt.level, rn = ni[0] - 1; rn >= 0; rn--)
50466
50457
  if (!(et[rn] & u)) {
50467
50458
  sa = wt[rn];
50468
50459
  break;
50469
50460
  }
50470
- var Pn = ni[ni.length - 1], lr = wt[Pn], cr = pt.level;
50461
+ var Pn = ni[ni.length - 1], ur = wt[Pn], lr = pt.level;
50471
50462
  if (!(et[Pn] & a)) {
50472
50463
  for (var wr = Pn + 1; wr <= pt.end; wr++)
50473
50464
  if (!(et[wr] & u)) {
50474
- cr = wt[wr];
50465
+ lr = wt[wr];
50475
50466
  break;
50476
50467
  }
50477
50468
  }
50478
50469
  dt.push({
50479
50470
  _seqIndices: ni,
50480
50471
  _sosType: Math.max(sa, Tn) % 2 ? O : N,
50481
- _eosType: Math.max(cr, lr) % 2 ? O : N
50472
+ _eosType: Math.max(lr, ur) % 2 ? O : N
50482
50473
  });
50483
50474
  }
50484
50475
  }
@@ -50486,14 +50477,14 @@ function KM() {
50486
50477
  var fi = dt[Mi], kt = fi._seqIndices, zi = fi._sosType, Eo = fi._eosType, Gr = wt[kt[0]] & 1 ? O : N;
50487
50478
  if (St.get(Y))
50488
50479
  for (var Mn = 0; Mn < kt.length; Mn++) {
50489
- var Ya = kt[Mn];
50490
- if (et[Ya] & Y) {
50491
- for (var Ha = zi, oa = Mn - 1; oa >= 0; oa--)
50480
+ var Ha = kt[Mn];
50481
+ if (et[Ha] & Y) {
50482
+ for (var qa = zi, oa = Mn - 1; oa >= 0; oa--)
50492
50483
  if (!(et[kt[oa]] & u)) {
50493
- Ha = et[kt[oa]];
50484
+ qa = et[kt[oa]];
50494
50485
  break;
50495
50486
  }
50496
- Nt(Ya, Ha & (a | oe) ? ct : Ha);
50487
+ Nt(Ha, qa & (a | oe) ? ct : qa);
50497
50488
  }
50498
50489
  }
50499
50490
  if (St.get(L))
@@ -50514,12 +50505,12 @@ function KM() {
50514
50505
  et[wd] & it && Nt(wd, O);
50515
50506
  }
50516
50507
  if (St.get(I) || St.get(K))
50517
- for (var qa = 1; qa < kt.length - 1; qa++) {
50518
- var cc = kt[qa];
50508
+ for (var Xa = 1; Xa < kt.length - 1; Xa++) {
50509
+ var cc = kt[Xa];
50519
50510
  if (et[cc] & (I | K)) {
50520
- for (var la = 0, fc = 0, hc = qa - 1; hc >= 0 && (la = et[kt[hc]], !!(la & u)); hc--)
50511
+ for (var la = 0, fc = 0, hc = Xa - 1; hc >= 0 && (la = et[kt[hc]], !!(la & u)); hc--)
50521
50512
  ;
50522
- for (var dc = qa + 1; dc < kt.length && (fc = et[kt[dc]], !!(fc & u)); dc++)
50513
+ for (var dc = Xa + 1; dc < kt.length && (fc = et[kt[dc]], !!(fc & u)); dc++)
50523
50514
  ;
50524
50515
  la === fc && (et[cc] === I ? la === L : la & (L | R)) && Nt(cc, la);
50525
50516
  }
@@ -50535,13 +50526,13 @@ function KM() {
50535
50526
  }
50536
50527
  }
50537
50528
  if (St.get(j) || St.get(I) || St.get(K))
50538
- for (var Xa = 0; Xa < kt.length; Xa++) {
50539
- var _d = kt[Xa];
50529
+ for (var Ka = 0; Ka < kt.length; Ka++) {
50530
+ var _d = kt[Ka];
50540
50531
  if (et[_d] & (j | I | K)) {
50541
50532
  Nt(_d, ct);
50542
- for (var So = Xa - 1; So >= 0 && et[kt[So]] & u; So--)
50533
+ for (var So = Ka - 1; So >= 0 && et[kt[So]] & u; So--)
50543
50534
  Nt(kt[So], ct);
50544
- for (var Do = Xa + 1; Do < kt.length && et[kt[Do]] & u; Do++)
50535
+ for (var Do = Ka + 1; Do < kt.length && et[kt[Do]] & u; Do++)
50545
50536
  Nt(kt[Do], ct);
50546
50537
  }
50547
50538
  }
@@ -50551,21 +50542,21 @@ function KM() {
50551
50542
  mc & L ? xd === N && Nt(Cd, N) : mc & s && (xd = mc);
50552
50543
  }
50553
50544
  if (St.get(o)) {
50554
- var Ka = O | L | R, Ad = Ka | N, Fo = [];
50545
+ var Ja = O | L | R, Ad = Ja | N, Fo = [];
50555
50546
  {
50556
50547
  for (var ca = [], fa = 0; fa < kt.length; fa++)
50557
50548
  if (et[kt[fa]] & o) {
50558
- var Ja = X[kt[fa]], Ed = void 0;
50559
- if (_(Ja) !== null)
50549
+ var Qa = X[kt[fa]], Ed = void 0;
50550
+ if (_(Qa) !== null)
50560
50551
  if (ca.length < 63)
50561
- ca.push({ char: Ja, seqIndex: fa });
50552
+ ca.push({ char: Qa, seqIndex: fa });
50562
50553
  else
50563
50554
  break;
50564
- else if ((Ed = k(Ja)) !== null)
50565
- for (var Qa = ca.length - 1; Qa >= 0; Qa--) {
50566
- var gc = ca[Qa].char;
50567
- if (gc === Ed || gc === k(x(Ja)) || _(x(gc)) === Ja) {
50568
- Fo.push([ca[Qa].seqIndex, fa]), ca.length = Qa;
50555
+ else if ((Ed = k(Qa)) !== null)
50556
+ for (var ts = ca.length - 1; ts >= 0; ts--) {
50557
+ var gc = ca[ts].char;
50558
+ if (gc === Ed || gc === k(x(Qa)) || _(x(gc)) === Qa) {
50559
+ Fo.push([ca[ts].seqIndex, fa]), ca.length = ts;
50569
50560
  break;
50570
50561
  }
50571
50562
  }
@@ -50579,7 +50570,7 @@ function KM() {
50579
50570
  var Dd = kt[bc];
50580
50571
  if (et[Dd] & Ad) {
50581
50572
  Sd = !0;
50582
- var Fd = et[Dd] & Ka ? O : N;
50573
+ var Fd = et[Dd] & Ja ? O : N;
50583
50574
  if (Fd === Gr) {
50584
50575
  ai = Fd;
50585
50576
  break;
@@ -50591,7 +50582,7 @@ function KM() {
50591
50582
  for (var wc = No - 1; wc >= 0; wc--) {
50592
50583
  var Nd = kt[wc];
50593
50584
  if (et[Nd] & Ad) {
50594
- var Bd = et[Nd] & Ka ? O : N;
50585
+ var Bd = et[Nd] & Ja ? O : N;
50595
50586
  Bd !== Gr ? ai = Bd : ai = Gr;
50596
50587
  break;
50597
50588
  }
@@ -50599,16 +50590,16 @@ function KM() {
50599
50590
  }
50600
50591
  if (ai) {
50601
50592
  if (et[kt[No]] = et[kt[vc]] = ai, ai !== Gr) {
50602
- for (var ts = No + 1; ts < kt.length; ts++)
50603
- if (!(et[kt[ts]] & u)) {
50604
- m(X[kt[ts]]) & Y && (et[kt[ts]] = ai);
50593
+ for (var es = No + 1; es < kt.length; es++)
50594
+ if (!(et[kt[es]] & u)) {
50595
+ m(X[kt[es]]) & Y && (et[kt[es]] = ai);
50605
50596
  break;
50606
50597
  }
50607
50598
  }
50608
50599
  if (ai !== Gr) {
50609
- for (var es = vc + 1; es < kt.length; es++)
50610
- if (!(et[kt[es]] & u)) {
50611
- m(X[kt[es]]) & Y && (et[kt[es]] = ai);
50600
+ for (var rs = vc + 1; rs < kt.length; rs++)
50601
+ if (!(et[kt[rs]] & u)) {
50602
+ m(X[kt[rs]]) & Y && (et[kt[rs]] = ai);
50612
50603
  break;
50613
50604
  }
50614
50605
  }
@@ -50616,18 +50607,18 @@ function KM() {
50616
50607
  }
50617
50608
  for (var nn = 0; nn < kt.length; nn++)
50618
50609
  if (et[kt[nn]] & o) {
50619
- for (var Id = nn, _c = nn, xc = zi, rs = nn - 1; rs >= 0; rs--)
50620
- if (et[kt[rs]] & u)
50621
- Id = rs;
50610
+ for (var Id = nn, _c = nn, xc = zi, is = nn - 1; is >= 0; is--)
50611
+ if (et[kt[is]] & u)
50612
+ Id = is;
50622
50613
  else {
50623
- xc = et[kt[rs]] & Ka ? O : N;
50614
+ xc = et[kt[is]] & Ja ? O : N;
50624
50615
  break;
50625
50616
  }
50626
- for (var Td = Eo, is = nn + 1; is < kt.length; is++)
50627
- if (et[kt[is]] & (o | u))
50628
- _c = is;
50617
+ for (var Td = Eo, ns = nn + 1; ns < kt.length; ns++)
50618
+ if (et[kt[ns]] & (o | u))
50619
+ _c = ns;
50629
50620
  else {
50630
- Td = et[kt[is]] & Ka ? O : N;
50621
+ Td = et[kt[ns]] & Ja ? O : N;
50631
50622
  break;
50632
50623
  }
50633
50624
  for (var Cc = Id; Cc <= _c; Cc++)
@@ -50783,7 +50774,7 @@ function ez(t, e) {
50783
50774
  }
50784
50775
  return o;
50785
50776
  }
50786
- function bs(t, e, r) {
50777
+ function ws(t, e, r) {
50787
50778
  return e < 0 || e >= t.length ? t : e === 0 ? "" : t.slice(0, e);
50788
50779
  }
50789
50780
  function rz(t, e) {
@@ -51733,17 +51724,17 @@ var Sz = (t) => !F2.has(t), dn = (t) => t && t === Math.floor(t) && t > 0 && isF
51733
51724
  constructor(t) {
51734
51725
  super(t), this.fill(0);
51735
51726
  }
51736
- }, Rn, us, Dz = (Rn = class {
51727
+ }, Rn, ls, Dz = (Rn = class {
51737
51728
  constructor(t, e) {
51738
- if (Vt(this, "heap"), Vt(this, "length"), !E(Rn, us)) throw new TypeError("instantiate Stack using Stack.create(n)");
51729
+ if (Vt(this, "heap"), Vt(this, "length"), !E(Rn, ls)) throw new TypeError("instantiate Stack using Stack.create(n)");
51739
51730
  this.heap = new e(t), this.length = 0;
51740
51731
  }
51741
51732
  static create(t) {
51742
51733
  let e = B2(t);
51743
51734
  if (!e) return [];
51744
- Tt(Rn, us, !0);
51735
+ Tt(Rn, ls, !0);
51745
51736
  let r = new Rn(t, e);
51746
- return Tt(Rn, us, !1), r;
51737
+ return Tt(Rn, ls, !1), r;
51747
51738
  }
51748
51739
  push(t) {
51749
51740
  this.heap[this.length++] = t;
@@ -51751,13 +51742,13 @@ var Sz = (t) => !F2.has(t), dn = (t) => t && t === Math.floor(t) && t > 0 && isF
51751
51742
  pop() {
51752
51743
  return this.heap[--this.length];
51753
51744
  }
51754
- }, us = /* @__PURE__ */ new WeakMap(), ne(Rn, us, !1), Rn), Om, Rm, ui, Wr, mi, ma, gi, ls, cs, yi, Xe, Yr, We, De, jt, Ar, Hr, gr, Qe, vi, tr, bi, wi, qr, Xr, _i, $n, Er, fs, vt, Gc, ga, ln, Yo, Kr, $m, ya, hs, Ho, cn, fn, Wc, qo, Xo, Ae, Yc, ds, hn, Hc, qc, Fz = (qc = class {
51745
+ }, ls = /* @__PURE__ */ new WeakMap(), ne(Rn, ls, !1), Rn), Om, Rm, ui, Wr, mi, ma, gi, cs, fs, yi, Xe, Yr, We, De, jt, Ar, Hr, gr, Qe, vi, tr, bi, wi, qr, Xr, _i, $n, Er, hs, vt, Gc, ga, ln, Yo, Kr, $m, ya, ds, Ho, cn, fn, Wc, qo, Xo, Ae, Yc, ps, hn, Hc, qc, Fz = (qc = class {
51755
51746
  constructor(t) {
51756
- ne(this, vt), ne(this, ui), ne(this, Wr), ne(this, mi), ne(this, ma), ne(this, gi), ne(this, ls), ne(this, cs), ne(this, yi), Vt(this, "ttl"), Vt(this, "ttlResolution"), Vt(this, "ttlAutopurge"), Vt(this, "updateAgeOnGet"), Vt(this, "updateAgeOnHas"), Vt(this, "allowStale"), Vt(this, "noDisposeOnSet"), Vt(this, "noUpdateTTL"), Vt(this, "maxEntrySize"), Vt(this, "sizeCalculation"), Vt(this, "noDeleteOnFetchRejection"), Vt(this, "noDeleteOnStaleGet"), Vt(this, "allowStaleOnFetchAbort"), Vt(this, "allowStaleOnFetchRejection"), Vt(this, "ignoreFetchAbort"), ne(this, Xe), ne(this, Yr), ne(this, We), ne(this, De), ne(this, jt), ne(this, Ar), ne(this, Hr), ne(this, gr), ne(this, Qe), ne(this, vi), ne(this, tr), ne(this, bi), ne(this, wi), ne(this, qr), ne(this, Xr), ne(this, _i), ne(this, $n), ne(this, Er), ne(this, fs), ne(this, ga, () => {
51747
+ ne(this, vt), ne(this, ui), ne(this, Wr), ne(this, mi), ne(this, ma), ne(this, gi), ne(this, cs), ne(this, fs), ne(this, yi), Vt(this, "ttl"), Vt(this, "ttlResolution"), Vt(this, "ttlAutopurge"), Vt(this, "updateAgeOnGet"), Vt(this, "updateAgeOnHas"), Vt(this, "allowStale"), Vt(this, "noDisposeOnSet"), Vt(this, "noUpdateTTL"), Vt(this, "maxEntrySize"), Vt(this, "sizeCalculation"), Vt(this, "noDeleteOnFetchRejection"), Vt(this, "noDeleteOnStaleGet"), Vt(this, "allowStaleOnFetchAbort"), Vt(this, "allowStaleOnFetchRejection"), Vt(this, "ignoreFetchAbort"), ne(this, Xe), ne(this, Yr), ne(this, We), ne(this, De), ne(this, jt), ne(this, Ar), ne(this, Hr), ne(this, gr), ne(this, Qe), ne(this, vi), ne(this, tr), ne(this, bi), ne(this, wi), ne(this, qr), ne(this, Xr), ne(this, _i), ne(this, $n), ne(this, Er), ne(this, hs), ne(this, ga, () => {
51757
51748
  }), ne(this, ln, () => {
51758
51749
  }), ne(this, Yo, () => {
51759
51750
  }), ne(this, Kr, () => !1), ne(this, ya, (L) => {
51760
- }), ne(this, hs, (L, I, j) => {
51751
+ }), ne(this, ds, (L, I, j) => {
51761
51752
  }), ne(this, Ho, (L, I, j, R) => {
51762
51753
  if (j || R) throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");
51763
51754
  return 0;
@@ -51772,8 +51763,8 @@ var Sz = (t) => !F2.has(t), dn = (t) => t && t === Math.floor(t) && t > 0 && isF
51772
51763
  if (typeof this.sizeCalculation != "function") throw new TypeError("sizeCalculation set to non-function");
51773
51764
  }
51774
51765
  if (S !== void 0 && typeof S != "function") throw new TypeError("memoMethod must be a function if defined");
51775
- if (Tt(this, cs, S), v !== void 0 && typeof v != "function") throw new TypeError("fetchMethod must be a function if specified");
51776
- if (Tt(this, ls, v), Tt(this, $n, !!v), Tt(this, We, /* @__PURE__ */ new Map()), Tt(this, De, new Array(e).fill(void 0)), Tt(this, jt, new Array(e).fill(void 0)), Tt(this, Ar, new O(e)), Tt(this, Hr, new O(e)), Tt(this, gr, 0), Tt(this, Qe, 0), Tt(this, vi, Dz.create(e)), Tt(this, Xe, 0), Tt(this, Yr, 0), typeof u == "function" && Tt(this, mi, u), typeof l == "function" && Tt(this, ma, l), typeof c == "function" ? (Tt(this, gi, c), Tt(this, tr, [])) : (Tt(this, gi, void 0), Tt(this, tr, void 0)), Tt(this, _i, !!E(this, mi)), Tt(this, fs, !!E(this, ma)), Tt(this, Er, !!E(this, gi)), this.noDisposeOnSet = !!h, this.noUpdateTTL = !!m, this.noDeleteOnFetchRejection = !!B, this.allowStaleOnFetchRejection = !!_, this.allowStaleOnFetchAbort = !!k, this.ignoreFetchAbort = !!x, this.maxEntrySize !== 0) {
51766
+ if (Tt(this, fs, S), v !== void 0 && typeof v != "function") throw new TypeError("fetchMethod must be a function if specified");
51767
+ if (Tt(this, cs, v), Tt(this, $n, !!v), Tt(this, We, /* @__PURE__ */ new Map()), Tt(this, De, new Array(e).fill(void 0)), Tt(this, jt, new Array(e).fill(void 0)), Tt(this, Ar, new O(e)), Tt(this, Hr, new O(e)), Tt(this, gr, 0), Tt(this, Qe, 0), Tt(this, vi, Dz.create(e)), Tt(this, Xe, 0), Tt(this, Yr, 0), typeof u == "function" && Tt(this, mi, u), typeof l == "function" && Tt(this, ma, l), typeof c == "function" ? (Tt(this, gi, c), Tt(this, tr, [])) : (Tt(this, gi, void 0), Tt(this, tr, void 0)), Tt(this, _i, !!E(this, mi)), Tt(this, hs, !!E(this, ma)), Tt(this, Er, !!E(this, gi)), this.noDisposeOnSet = !!h, this.noUpdateTTL = !!m, this.noDeleteOnFetchRejection = !!B, this.allowStaleOnFetchRejection = !!_, this.allowStaleOnFetchAbort = !!k, this.ignoreFetchAbort = !!x, this.maxEntrySize !== 0) {
51777
51768
  if (E(this, Wr) !== 0 && !dn(E(this, Wr))) throw new TypeError("maxSize must be a positive integer if specified");
51778
51769
  if (!dn(this.maxEntrySize)) throw new TypeError("maxEntrySize must be a positive integer if specified");
51779
51770
  _t(this, vt, $m).call(this);
@@ -51804,7 +51795,7 @@ var Sz = (t) => !F2.has(t), dn = (t) => t && t === Math.floor(t) && t > 0 && isF
51804
51795
  return _t(a = t, vt, Xo).call(a, e, r, n, i);
51805
51796
  }, moveToTail: (e) => {
51806
51797
  var r;
51807
- return _t(r = t, vt, ds).call(r, e);
51798
+ return _t(r = t, vt, ps).call(r, e);
51808
51799
  }, indexes: (e) => {
51809
51800
  var r;
51810
51801
  return _t(r = t, vt, cn).call(r, e);
@@ -51829,10 +51820,10 @@ var Sz = (t) => !F2.has(t), dn = (t) => t && t === Math.floor(t) && t > 0 && isF
51829
51820
  return E(this, Xe);
51830
51821
  }
51831
51822
  get fetchMethod() {
51832
- return E(this, ls);
51823
+ return E(this, cs);
51833
51824
  }
51834
51825
  get memoMethod() {
51835
- return E(this, cs);
51826
+ return E(this, fs);
51836
51827
  }
51837
51828
  get dispose() {
51838
51829
  return E(this, mi);
@@ -51942,9 +51933,9 @@ var Sz = (t) => !F2.has(t), dn = (t) => t && t === Math.floor(t) && t > 0 && isF
51942
51933
  let { ttl: o = this.ttl, start: u, noDisposeOnSet: l = this.noDisposeOnSet, sizeCalculation: c = this.sizeCalculation, status: h } = r, { noUpdateTTL: m = this.noUpdateTTL } = r, d = E(this, Ho).call(this, t, e, r.size || 0, c);
51943
51934
  if (this.maxEntrySize && d > this.maxEntrySize) return h && (h.set = "miss", h.maxEntrySizeExceeded = !0), _t(this, vt, hn).call(this, t, "set"), this;
51944
51935
  let y = E(this, Xe) === 0 ? void 0 : E(this, We).get(t);
51945
- if (y === void 0) y = E(this, Xe) === 0 ? E(this, Qe) : E(this, vi).length !== 0 ? E(this, vi).pop() : E(this, Xe) === E(this, ui) ? _t(this, vt, qo).call(this, !1) : E(this, Xe), E(this, De)[y] = t, E(this, jt)[y] = e, E(this, We).set(t, y), E(this, Ar)[E(this, Qe)] = y, E(this, Hr)[y] = E(this, Qe), Tt(this, Qe, y), Fc(this, Xe)._++, E(this, hs).call(this, y, d, h), h && (h.set = "add"), m = !1, E(this, fs) && ((n = E(this, ma)) == null || n.call(this, e, t, "add"));
51936
+ if (y === void 0) y = E(this, Xe) === 0 ? E(this, Qe) : E(this, vi).length !== 0 ? E(this, vi).pop() : E(this, Xe) === E(this, ui) ? _t(this, vt, qo).call(this, !1) : E(this, Xe), E(this, De)[y] = t, E(this, jt)[y] = e, E(this, We).set(t, y), E(this, Ar)[E(this, Qe)] = y, E(this, Hr)[y] = E(this, Qe), Tt(this, Qe, y), Fc(this, Xe)._++, E(this, ds).call(this, y, d, h), h && (h.set = "add"), m = !1, E(this, hs) && ((n = E(this, ma)) == null || n.call(this, e, t, "add"));
51946
51937
  else {
51947
- _t(this, vt, ds).call(this, y);
51938
+ _t(this, vt, ps).call(this, y);
51948
51939
  let w = E(this, jt)[y];
51949
51940
  if (e !== w) {
51950
51941
  if (E(this, $n) && _t(this, vt, Ae).call(this, w)) {
@@ -51952,13 +51943,13 @@ var Sz = (t) => !F2.has(t), dn = (t) => t && t === Math.floor(t) && t > 0 && isF
51952
51943
  let { __staleWhileFetching: v } = w;
51953
51944
  v !== void 0 && !l && (E(this, _i) && ((i = E(this, mi)) == null || i.call(this, v, t, "set")), E(this, Er) && E(this, tr)?.push([v, t, "set"]));
51954
51945
  } else l || (E(this, _i) && ((a = E(this, mi)) == null || a.call(this, w, t, "set")), E(this, Er) && E(this, tr)?.push([w, t, "set"]));
51955
- if (E(this, ya).call(this, y), E(this, hs).call(this, y, d, h), E(this, jt)[y] = e, h) {
51946
+ if (E(this, ya).call(this, y), E(this, ds).call(this, y, d, h), E(this, jt)[y] = e, h) {
51956
51947
  h.set = "replace";
51957
51948
  let v = w && _t(this, vt, Ae).call(this, w) ? w.__staleWhileFetching : w;
51958
51949
  v !== void 0 && (h.oldValue = v);
51959
51950
  }
51960
51951
  } else h && (h.set = "update");
51961
- E(this, fs) && this.onInsert?.(e, t, e === w ? "update" : "replace");
51952
+ E(this, hs) && this.onInsert?.(e, t, e === w ? "update" : "replace");
51962
51953
  }
51963
51954
  if (o !== 0 && !E(this, qr) && _t(this, vt, Gc).call(this), E(this, qr) && (m || E(this, Yo).call(this, y, o, u), h && E(this, ln).call(this, h, y)), !l && E(this, Er) && E(this, tr)) {
51964
51955
  let w = E(this, tr), v;
@@ -52013,7 +52004,7 @@ var Sz = (t) => !F2.has(t), dn = (t) => t && t === Math.floor(t) && t > 0 && isF
52013
52004
  return v && (v.fetch = "inflight", O && (v.returnedStale = !0)), O ? _.__staleWhileFetching : _.__returned = _;
52014
52005
  }
52015
52006
  let k = E(this, Kr).call(this, A);
52016
- if (!w && !k) return v && (v.fetch = "hit"), _t(this, vt, ds).call(this, A), n && E(this, ga).call(this, A), v && E(this, ln).call(this, v, A), _;
52007
+ if (!w && !k) return v && (v.fetch = "hit"), _t(this, vt, ps).call(this, A), n && E(this, ga).call(this, A), v && E(this, ln).call(this, v, A), _;
52017
52008
  let x = _t(this, vt, Xo).call(this, t, A, B, y), N = x.__staleWhileFetching !== void 0 && r;
52018
52009
  return v && (v.fetch = k ? "stale" : "refresh", N && k && (v.returnedStale = !0)), N ? x.__staleWhileFetching : x.__returned = x;
52019
52010
  }
@@ -52024,7 +52015,7 @@ var Sz = (t) => !F2.has(t), dn = (t) => t && t === Math.floor(t) && t > 0 && isF
52024
52015
  return r;
52025
52016
  }
52026
52017
  memo(t, e = {}) {
52027
- let r = E(this, cs);
52018
+ let r = E(this, fs);
52028
52019
  if (!r) throw new Error("no memoMethod provided to constructor");
52029
52020
  let { context: n, forceRefresh: i, ...a } = e, s = this.get(t, a);
52030
52021
  if (!i && s !== void 0) return s;
@@ -52035,7 +52026,7 @@ var Sz = (t) => !F2.has(t), dn = (t) => t && t === Math.floor(t) && t > 0 && isF
52035
52026
  let { allowStale: r = this.allowStale, updateAgeOnGet: n = this.updateAgeOnGet, noDeleteOnStaleGet: i = this.noDeleteOnStaleGet, status: a } = e, s = E(this, We).get(t);
52036
52027
  if (s !== void 0) {
52037
52028
  let o = E(this, jt)[s], u = _t(this, vt, Ae).call(this, o);
52038
- return a && E(this, ln).call(this, a, s), E(this, Kr).call(this, s) ? (a && (a.get = "stale"), u ? (a && r && o.__staleWhileFetching !== void 0 && (a.returnedStale = !0), r ? o.__staleWhileFetching : void 0) : (i || _t(this, vt, hn).call(this, t, "expire"), a && r && (a.returnedStale = !0), r ? o : void 0)) : (a && (a.get = "hit"), u ? o.__staleWhileFetching : (_t(this, vt, ds).call(this, s), n && E(this, ga).call(this, s), o));
52029
+ return a && E(this, ln).call(this, a, s), E(this, Kr).call(this, s) ? (a && (a.get = "stale"), u ? (a && r && o.__staleWhileFetching !== void 0 && (a.returnedStale = !0), r ? o.__staleWhileFetching : void 0) : (i || _t(this, vt, hn).call(this, t, "expire"), a && r && (a.returnedStale = !0), r ? o : void 0)) : (a && (a.get = "hit"), u ? o.__staleWhileFetching : (_t(this, vt, ps).call(this, s), n && E(this, ga).call(this, s), o));
52039
52030
  } else a && (a.get = "miss");
52040
52031
  }
52041
52032
  delete(t) {
@@ -52044,7 +52035,7 @@ var Sz = (t) => !F2.has(t), dn = (t) => t && t === Math.floor(t) && t > 0 && isF
52044
52035
  clear() {
52045
52036
  return _t(this, vt, Hc).call(this, "delete");
52046
52037
  }
52047
- }, ui = /* @__PURE__ */ new WeakMap(), Wr = /* @__PURE__ */ new WeakMap(), mi = /* @__PURE__ */ new WeakMap(), ma = /* @__PURE__ */ new WeakMap(), gi = /* @__PURE__ */ new WeakMap(), ls = /* @__PURE__ */ new WeakMap(), cs = /* @__PURE__ */ new WeakMap(), yi = /* @__PURE__ */ new WeakMap(), Xe = /* @__PURE__ */ new WeakMap(), Yr = /* @__PURE__ */ new WeakMap(), We = /* @__PURE__ */ new WeakMap(), De = /* @__PURE__ */ new WeakMap(), jt = /* @__PURE__ */ new WeakMap(), Ar = /* @__PURE__ */ new WeakMap(), Hr = /* @__PURE__ */ new WeakMap(), gr = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap(), vi = /* @__PURE__ */ new WeakMap(), tr = /* @__PURE__ */ new WeakMap(), bi = /* @__PURE__ */ new WeakMap(), wi = /* @__PURE__ */ new WeakMap(), qr = /* @__PURE__ */ new WeakMap(), Xr = /* @__PURE__ */ new WeakMap(), _i = /* @__PURE__ */ new WeakMap(), $n = /* @__PURE__ */ new WeakMap(), Er = /* @__PURE__ */ new WeakMap(), fs = /* @__PURE__ */ new WeakMap(), vt = /* @__PURE__ */ new WeakSet(), Gc = function() {
52038
+ }, ui = /* @__PURE__ */ new WeakMap(), Wr = /* @__PURE__ */ new WeakMap(), mi = /* @__PURE__ */ new WeakMap(), ma = /* @__PURE__ */ new WeakMap(), gi = /* @__PURE__ */ new WeakMap(), cs = /* @__PURE__ */ new WeakMap(), fs = /* @__PURE__ */ new WeakMap(), yi = /* @__PURE__ */ new WeakMap(), Xe = /* @__PURE__ */ new WeakMap(), Yr = /* @__PURE__ */ new WeakMap(), We = /* @__PURE__ */ new WeakMap(), De = /* @__PURE__ */ new WeakMap(), jt = /* @__PURE__ */ new WeakMap(), Ar = /* @__PURE__ */ new WeakMap(), Hr = /* @__PURE__ */ new WeakMap(), gr = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap(), vi = /* @__PURE__ */ new WeakMap(), tr = /* @__PURE__ */ new WeakMap(), bi = /* @__PURE__ */ new WeakMap(), wi = /* @__PURE__ */ new WeakMap(), qr = /* @__PURE__ */ new WeakMap(), Xr = /* @__PURE__ */ new WeakMap(), _i = /* @__PURE__ */ new WeakMap(), $n = /* @__PURE__ */ new WeakMap(), Er = /* @__PURE__ */ new WeakMap(), hs = /* @__PURE__ */ new WeakMap(), vt = /* @__PURE__ */ new WeakSet(), Gc = function() {
52048
52039
  let t = new nu(E(this, ui)), e = new nu(E(this, ui));
52049
52040
  Tt(this, qr, t), Tt(this, wi, e);
52050
52041
  let r = this.ttlAutopurge ? new Array(E(this, ui)) : void 0;
@@ -52102,14 +52093,14 @@ var Sz = (t) => !F2.has(t), dn = (t) => t && t === Math.floor(t) && t > 0 && isF
52102
52093
  if (n = i(r, e), !dn(n)) throw new TypeError("sizeCalculation return invalid (expect positive integer)");
52103
52094
  } else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");
52104
52095
  return n;
52105
- }), Tt(this, hs, (e, r, n) => {
52096
+ }), Tt(this, ds, (e, r, n) => {
52106
52097
  if (t[e] = r, E(this, Wr)) {
52107
52098
  let i = E(this, Wr) - t[e];
52108
52099
  for (; E(this, Yr) > i; ) _t(this, vt, qo).call(this, !0);
52109
52100
  }
52110
52101
  Tt(this, Yr, E(this, Yr) + t[e]), n && (n.entrySize = r, n.totalCalculatedSize = E(this, Yr));
52111
52102
  });
52112
- }, ya = /* @__PURE__ */ new WeakMap(), hs = /* @__PURE__ */ new WeakMap(), Ho = /* @__PURE__ */ new WeakMap(), cn = function* ({ allowStale: t = this.allowStale } = {}) {
52103
+ }, ya = /* @__PURE__ */ new WeakMap(), ds = /* @__PURE__ */ new WeakMap(), Ho = /* @__PURE__ */ new WeakMap(), cn = function* ({ allowStale: t = this.allowStale } = {}) {
52113
52104
  if (E(this, Xe)) for (let e = E(this, Qe); !(!_t(this, vt, Wc).call(this, e) || ((t || !E(this, Kr).call(this, e)) && (yield e), e === E(this, gr))); ) e = E(this, Hr)[e];
52114
52105
  }, fn = function* ({ allowStale: t = this.allowStale } = {}) {
52115
52106
  if (E(this, Xe)) for (let e = E(this, gr); !(!_t(this, vt, Wc).call(this, e) || ((t || !E(this, Kr).call(this, e)) && (yield e), e === E(this, Qe))); ) e = E(this, Ar)[e];
@@ -52135,7 +52126,7 @@ var Sz = (t) => !F2.has(t), dn = (t) => t && t === Math.floor(t) && t > 0 && isF
52135
52126
  if (_.__returned === _) throw y;
52136
52127
  }, h = (y, w) => {
52137
52128
  var v;
52138
- let S = (v = E(this, ls)) == null ? void 0 : v.call(this, t, i, o);
52129
+ let S = (v = E(this, cs)) == null ? void 0 : v.call(this, t, i, o);
52139
52130
  S && S instanceof Promise && S.then((B) => y(B === void 0 ? void 0 : B), w), a.signal.addEventListener("abort", () => {
52140
52131
  (!r.ignoreFetchAbort || r.allowStaleOnFetchAbort) && (y(void 0), r.allowStaleOnFetchAbort && (y = (B) => u(B, !0)));
52141
52132
  });
@@ -52149,7 +52140,7 @@ var Sz = (t) => !F2.has(t), dn = (t) => t && t === Math.floor(t) && t > 0 && isF
52149
52140
  return !!e && e instanceof Promise && e.hasOwnProperty("__staleWhileFetching") && e.__abortController instanceof Zu;
52150
52141
  }, Yc = function(t, e) {
52151
52142
  E(this, Hr)[e] = t, E(this, Ar)[t] = e;
52152
- }, ds = function(t) {
52143
+ }, ps = function(t) {
52153
52144
  t !== E(this, Qe) && (t === E(this, gr) ? Tt(this, gr, E(this, Ar)[t]) : _t(this, vt, Yc).call(this, E(this, Hr)[t], E(this, Ar)[t]), _t(this, vt, Yc).call(this, E(this, Qe), t), Tt(this, Qe, t));
52154
52145
  }, hn = function(t, e) {
52155
52146
  var r, n;
@@ -52899,7 +52890,7 @@ function _V(t, e, r, n) {
52899
52890
  const i = e.isActive, a = e.fillProgress >= 1, s = t.fitScale ?? 1, o = n.size * s, u = t.width * s;
52900
52891
  return {
52901
52892
  op: "DrawCaptionWord",
52902
- text: bs(t.text, e.visibleCharacters, t.isRTL),
52893
+ text: ws(t.text, e.visibleCharacters, t.isRTL),
52903
52894
  x: t.x,
52904
52895
  y: t.y,
52905
52896
  width: u,
@@ -53039,7 +53030,7 @@ function z0(t) {
53039
53030
  h: c.h / l
53040
53031
  }, m = JSON.stringify({ fill: o.fill, bbox: h });
53041
53032
  let d = i.get(m);
53042
- d || (d = ps(e, o.fill, h), i.set(m, d)), e.fillStyle = d, e.fill(u), e.restore();
53033
+ d || (d = ms(e, o.fill, h), i.set(m, d)), e.fillStyle = d, e.fill(u), e.restore();
53043
53034
  continue;
53044
53035
  }
53045
53036
  if (s.op === "StrokePath") {
@@ -53059,7 +53050,7 @@ function z0(t) {
53059
53050
  }
53060
53051
  if (s.op === "Rectangle") {
53061
53052
  e.save();
53062
- const o = ps(e, s.fill, {
53053
+ const o = ms(e, s.fill, {
53063
53054
  x: s.x,
53064
53055
  y: s.y,
53065
53056
  w: s.width,
@@ -53090,7 +53081,7 @@ function z0(t) {
53090
53081
  y: s.cy - s.ry,
53091
53082
  w: s.rx * 2,
53092
53083
  h: s.ry * 2
53093
- }, u = ps(e, s.fill, o);
53084
+ }, u = ms(e, s.fill, o);
53094
53085
  e.fillStyle = u, e.beginPath();
53095
53086
  const l = (s.rotation ?? 0) * Math.PI / 180;
53096
53087
  e.ellipse(s.cx, s.cy, s.rx, s.ry, l, 0, Math.PI * 2), e.fill(), e.restore();
@@ -53104,7 +53095,7 @@ function z0(t) {
53104
53095
  }
53105
53096
  if (s.op === "Polygon") {
53106
53097
  e.save();
53107
- const o = s.gradientBBox ?? kV(s.points), u = ps(e, s.fill, o);
53098
+ const o = s.gradientBBox ?? kV(s.points), u = ms(e, s.fill, o);
53108
53099
  e.fillStyle = u, e.beginPath(), Zm(e, s.points, s.closed ?? !0), e.fill(), e.restore();
53109
53100
  continue;
53110
53101
  }
@@ -53114,7 +53105,7 @@ function z0(t) {
53114
53105
  }
53115
53106
  if (s.op === "ShapePath") {
53116
53107
  e.save(), e.translate(s.x, s.y);
53117
- const o = s.gradientBBox ?? M2(s.path), u = ps(e, s.fill, o);
53108
+ const o = s.gradientBBox ?? M2(s.path), u = ms(e, s.fill, o);
53118
53109
  e.fillStyle = u;
53119
53110
  const l = new Path2D(s.path);
53120
53111
  e.fill(l), e.restore();
@@ -53150,7 +53141,7 @@ function z0(t) {
53150
53141
  h++;
53151
53142
  continue;
53152
53143
  }
53153
- if (bs(d.text, d.visibleCharacters, d.isRTL).length === 0) {
53144
+ if (ws(d.text, d.visibleCharacters, d.isRTL).length === 0) {
53154
53145
  h++;
53155
53146
  continue;
53156
53147
  }
@@ -53158,7 +53149,7 @@ function z0(t) {
53158
53149
  let v = h + 1;
53159
53150
  for (; v < c.length; ) {
53160
53151
  const ct = c[v];
53161
- if (!ct.background || bs(ct.text, ct.visibleCharacters, ct.isRTL).length === 0 || Math.round(ct.y) !== Math.round(d.y)) break;
53152
+ if (!ct.background || ws(ct.text, ct.visibleCharacters, ct.isRTL).length === 0 || Math.round(ct.y) !== Math.round(d.y)) break;
53162
53153
  w.push(ct), v++;
53163
53154
  }
53164
53155
  const S = w[0], B = w[w.length - 1], A = S.background, _ = S.x + S.transform.translateX, x = B.x + B.transform.translateX + B.width - _;
@@ -53177,7 +53168,7 @@ function z0(t) {
53177
53168
  e.restore(), h = v;
53178
53169
  }
53179
53170
  for (const d of u) {
53180
- const y = bs(d.text, d.visibleCharacters, d.isRTL);
53171
+ const y = ws(d.text, d.visibleCharacters, d.isRTL);
53181
53172
  if (y.length === 0) continue;
53182
53173
  e.save();
53183
53174
  const w = Math.round(d.x + d.transform.translateX), v = Math.round(d.y + d.transform.translateY);
@@ -53233,7 +53224,7 @@ function z0(t) {
53233
53224
  return w !== 0 ? w : d.x + d.transform.translateX - (y.x + y.transform.translateX);
53234
53225
  });
53235
53226
  for (const d of m) {
53236
- const y = bs(d.text, d.visibleCharacters, d.isRTL);
53227
+ const y = ws(d.text, d.visibleCharacters, d.isRTL);
53237
53228
  if (y.length === 0) continue;
53238
53229
  e.save();
53239
53230
  let w = Math.round(d.x + d.transform.translateX), v = Math.round(d.y + d.transform.translateY);
@@ -53301,7 +53292,7 @@ function Ko(t, e, r, n, i, a) {
53301
53292
  const s = Math.max(0, Math.min(n, i) / 2), o = Math.max(0, Math.min(a, s)), u = new Path2D();
53302
53293
  u.moveTo(e + o, r), u.arcTo(e + n, r, e + n, r + i, o), u.arcTo(e + n, r + i, e, r + i, o), u.arcTo(e, r + i, e, r, o), u.arcTo(e, r, e + n, r, o), u.closePath(), t.fill(u);
53303
53294
  }
53304
- function ps(t, e, r) {
53295
+ function ms(t, e, r) {
53305
53296
  if (e.kind === "solid") {
53306
53297
  const o = Ze(e.color, e.opacity);
53307
53298
  return `rgba(${o.r},${o.g},${o.b},${o.a})`;
@@ -53955,7 +53946,7 @@ async function WV(t = {}) {
53955
53946
  };
53956
53947
  }
53957
53948
  const Wm = 1500, Ym = 5e3, YV = 1e4;
53958
- class ks extends ir {
53949
+ class Ss extends hr {
53959
53950
  fontRegistry = null;
53960
53951
  layoutEngine = null;
53961
53952
  captionLayout = null;
@@ -54001,7 +53992,7 @@ class ks extends ir {
54001
53992
  return;
54002
53993
  }
54003
53994
  let n;
54004
- if (e.src ? Nr(e.src) ? (n = ks.createPlaceholderWords(this.getLength() * 1e3), this.isPlaceholder = !0, this.needsResolution = !0) : (n = await this.fetchAndParseSubtitle(e.src), this.resolvedPauseThreshold = 5) : n = (e.words ?? []).map((i) => ({
53995
+ if (e.src ? Nr(e.src) ? (n = Ss.createPlaceholderWords(this.getLength() * 1e3), this.isPlaceholder = !0, this.needsResolution = !0) : (n = await this.fetchAndParseSubtitle(e.src), this.resolvedPauseThreshold = 5) : n = (e.words ?? []).map((i) => ({
54005
53996
  text: i.text,
54006
53997
  start: i.start,
54007
53998
  end: i.end,
@@ -54028,7 +54019,7 @@ class ks extends ir {
54028
54019
  async reloadAsset() {
54029
54020
  const e = this.clipConfiguration.asset;
54030
54021
  if (!e.src || Nr(e.src)) {
54031
- this.loadComplete && !this.isPlaceholder && (this.resolvedPauseThreshold = 500, this.words = ks.createPlaceholderWords(this.getLength() * 1e3), this.isPlaceholder = !0, this.needsResolution = !0, await this.reconfigure());
54022
+ this.loadComplete && !this.isPlaceholder && (this.resolvedPauseThreshold = 500, this.words = Ss.createPlaceholderWords(this.getLength() * 1e3), this.isPlaceholder = !0, this.needsResolution = !0, await this.reconfigure());
54032
54023
  return;
54033
54024
  }
54034
54025
  this.loadComplete = !1, this.texture && (this.texture.destroy(), this.texture = null), this.sprite && (this.sprite.destroy(), this.sprite = null), this.captionLayout = null, this.validatedAsset = null, this.generatorConfig = null, this.canvas = null, this.painter = null, this.isPlaceholder = !1, this.needsResolution = !1;
@@ -54046,7 +54037,7 @@ class ks extends ir {
54046
54037
  if (!(!this.loadComplete || !this.layoutEngine || !this.canvas || !this.painter))
54047
54038
  try {
54048
54039
  const e = this.clipConfiguration.asset;
54049
- this.isPlaceholder && (this.words = ks.createPlaceholderWords(this.getLength() * 1e3));
54040
+ this.isPlaceholder && (this.words = Ss.createPlaceholderWords(this.getLength() * 1e3));
54050
54041
  const r = `${e.font?.family ?? "Roboto"}|${e.font?.weight ?? 400}`;
54051
54042
  r !== this.lastRegisteredFontKey && (await this.registerFonts(e), this.lastRegisteredFontKey = r);
54052
54043
  const n = this.buildCanvasPayload(e, this.words), i = Nc.safeParse(n);
@@ -54141,11 +54132,11 @@ class ks extends ir {
54141
54132
  return { url: c.src, baseFontFamily: i, fontWeight: s };
54142
54133
  const h = this.buildWeightedFamilyName(i, s);
54143
54134
  if (h) {
54144
- const d = ka(h);
54135
+ const d = Sa(h);
54145
54136
  if (d)
54146
54137
  return { url: d, baseFontFamily: i, fontWeight: s };
54147
54138
  }
54148
- const m = ka(e);
54139
+ const m = Sa(e);
54149
54140
  return m ? { url: m, baseFontFamily: i, fontWeight: s } : null;
54150
54141
  }
54151
54142
  buildWeightedFamilyName(e, r) {
@@ -54271,7 +54262,7 @@ class ks extends ir {
54271
54262
  return !0;
54272
54263
  }
54273
54264
  }
54274
- class er extends ir {
54265
+ class er extends hr {
54275
54266
  static PREVIEW_FPS = 60;
54276
54267
  /** CSS font-weight string → numeric value. Extends WEIGHT_MODIFIERS (@core/fonts/font-config.ts) with CSS aliases. */
54277
54268
  static NAMED_WEIGHTS = {
@@ -54349,7 +54340,7 @@ class er extends ir {
54349
54340
  const y = this.edit.getFontMetadata(), w = (s || a).toLowerCase(), S = l.filter((B) => !ug(B.src)).find((B) => y.get(B.src)?.baseFamilyName.toLowerCase() === w);
54350
54341
  S && (h = [{ src: S.src, family: s || a, weight: u.toString() }]);
54351
54342
  }
54352
- const d = h || a && ka(a, u) ? s || a : void 0;
54343
+ const d = h || a && Sa(a, u) ? s || a : void 0;
54353
54344
  return {
54354
54345
  ...e,
54355
54346
  width: n,
@@ -54408,7 +54399,7 @@ class er extends ir {
54408
54399
  });
54409
54400
  if (o)
54410
54401
  return { url: o.src, baseFontFamily: n, fontWeight: r };
54411
- const u = ka(e, r);
54402
+ const u = Sa(e, r);
54412
54403
  return u ? { url: u, baseFontFamily: n, fontWeight: r } : null;
54413
54404
  }
54414
54405
  reconfigureAfterRestore() {
@@ -54528,7 +54519,7 @@ class er extends ir {
54528
54519
  });
54529
54520
  }
54530
54521
  update(e, r) {
54531
- if (super.update(e, r), r === Us.SEEK_ELAPSED_MARKER && (this.isRendering = !1, this.pendingRenderTime = null, this.lastRenderedTime = -1), !!this.isActive() && this.loadComplete && this.textEngine && this.renderer && !this.isRendering) {
54522
+ if (super.update(e, r), r === Ea.SEEK_ELAPSED_MARKER && (this.isRendering = !1, this.pendingRenderTime = null, this.lastRenderedTime = -1), !!this.isActive() && this.loadComplete && this.textEngine && this.renderer && !this.isRendering) {
54532
54523
  const n = this.getPlaybackTime(), i = 1 / 60;
54533
54524
  Math.abs(n - this.lastRenderedTime) > i && this.renderFrameSafe(n);
54534
54525
  }
@@ -54586,7 +54577,7 @@ class er extends ir {
54586
54577
  return this.cachedFrames.size;
54587
54578
  }
54588
54579
  }
54589
- class HV extends ir {
54580
+ class HV extends hr {
54590
54581
  shape;
54591
54582
  shapeBackground;
54592
54583
  constructor(e, r) {
@@ -54621,7 +54612,7 @@ class HV extends ir {
54621
54612
  color: e.fill?.color ?? "#ffffff",
54622
54613
  alpha: e.fill?.opacity ?? 1
54623
54614
  }, a.fill(), e.stroke) {
54624
- const s = new Fs.OutlineFilter({
54615
+ const s = new Ns.OutlineFilter({
54625
54616
  thickness: e.stroke.width,
54626
54617
  color: e.stroke.color
54627
54618
  });
@@ -54646,7 +54637,7 @@ class HV extends ir {
54646
54637
  return 1;
54647
54638
  }
54648
54639
  }
54649
- class Li extends ir {
54640
+ class Li extends hr {
54650
54641
  static resvgInitialized = !1;
54651
54642
  static resvgInitPromise = null;
54652
54643
  texture = null;
@@ -54737,7 +54728,7 @@ class Li extends ir {
54737
54728
  }), URL.revokeObjectURL(s), this.texture = ot.Texture.from(o), this.sprite = new ot.Sprite(this.texture), this.contentContainer.addChild(this.sprite), this.clipConfiguration.width && this.clipConfiguration.height && this.applyFixedDimensions();
54738
54729
  }
54739
54730
  }
54740
- class Ss {
54731
+ class Ds {
54741
54732
  static DEFAULT_BLINK_INTERVAL_MS = 500;
54742
54733
  static DEFAULT_CURSOR_WIDTH_PX = 2;
54743
54734
  static DEFAULT_CURSOR_COLOR = 16777215;
@@ -54756,7 +54747,7 @@ class Ss {
54756
54747
  color = 16777215;
54757
54748
  isVisible = !0;
54758
54749
  constructor(e, r, n, i) {
54759
- this.parent = e, this.textElement = r, this.clipConfig = n, this.width = i?.width ?? Ss.DEFAULT_CURSOR_WIDTH_PX, this.color = i?.color ?? Ss.DEFAULT_CURSOR_COLOR, this.blinkIntervalMs = i?.blinkInterval ?? Ss.DEFAULT_BLINK_INTERVAL_MS, this.textPosition = 0, this.isBlinking = !1, this.isVisible = !0, this.blinkInterval = null, this.createCursor();
54750
+ this.parent = e, this.textElement = r, this.clipConfig = n, this.width = i?.width ?? Ds.DEFAULT_CURSOR_WIDTH_PX, this.color = i?.color ?? Ds.DEFAULT_CURSOR_COLOR, this.blinkIntervalMs = i?.blinkInterval ?? Ds.DEFAULT_BLINK_INTERVAL_MS, this.textPosition = 0, this.isBlinking = !1, this.isVisible = !0, this.blinkInterval = null, this.createCursor();
54760
54751
  }
54761
54752
  updatePosition(e) {
54762
54753
  if (!this.cursor || !this.textElement) {
@@ -55079,7 +55070,7 @@ class xi {
55079
55070
  }, xi.CLICK_HANDLER_DELAY_MS);
55080
55071
  }
55081
55072
  createEditingEnvironment() {
55082
- this.setupEditingContainer(), this.editingContainer && this.editableText && (this.textCursor = new Ss(this.editingContainer, this.editableText, this.clipConfig), this.textCursor.updatePosition(this.targetText.text.length), this.textCursor.startBlinking()), this.setupTextInputHandler(), this.updateTextAlignment();
55073
+ this.setupEditingContainer(), this.editingContainer && this.editableText && (this.textCursor = new Ds(this.editingContainer, this.editableText, this.clipConfig), this.textCursor.updatePosition(this.targetText.text.length), this.textCursor.startBlinking()), this.setupTextInputHandler(), this.updateTextAlignment();
55083
55074
  }
55084
55075
  setupEditingContainer() {
55085
55076
  this.editingContainer = new ot.Container(), this.parent.getContainer().addChild(this.editingContainer);
@@ -55150,7 +55141,7 @@ class xi {
55150
55141
  };
55151
55142
  }
55152
55143
  }
55153
- class Ca extends ir {
55144
+ class Ca extends hr {
55154
55145
  static loadedFonts = /* @__PURE__ */ new Set();
55155
55146
  background = null;
55156
55147
  text = null;
@@ -55162,7 +55153,7 @@ class Ca extends ir {
55162
55153
  await super.load();
55163
55154
  const e = this.clipConfiguration.asset, r = e.font?.family ?? "Open Sans";
55164
55155
  if (await this.loadFont(r), this.background = new ot.Graphics(), this.drawBackground(), this.text = new ot.Text({ text: e.text ?? "", style: this.createTextStyle(e) }), this.positionText(e), e.stroke?.width && e.stroke.width > 0 && e.stroke.color) {
55165
- const n = new Fs.OutlineFilter({
55156
+ const n = new Ns.OutlineFilter({
55166
55157
  thickness: e.stroke.width,
55167
55158
  color: e.stroke.color
55168
55159
  });
@@ -55180,7 +55171,7 @@ class Ca extends ir {
55180
55171
  const e = this.clipConfiguration.asset, r = e.font?.family ?? "Open Sans";
55181
55172
  if (await this.loadFont(r), this.drawBackground(), this.text) {
55182
55173
  if (this.text.text = e.text ?? "", this.text.style = this.createTextStyle(e), e.stroke?.width && e.stroke.width > 0 && e.stroke.color) {
55183
- const n = new Fs.OutlineFilter({
55174
+ const n = new Ns.OutlineFilter({
55184
55175
  thickness: e.stroke.width,
55185
55176
  color: e.stroke.color
55186
55177
  });
@@ -55253,7 +55244,7 @@ class Ca extends ir {
55253
55244
  const { baseFontFamily: r, fontWeight: n } = Fr(e), i = `${r}-${n}`;
55254
55245
  if (Ca.loadedFonts.has(i))
55255
55246
  return;
55256
- const a = ka(e);
55247
+ const a = Sa(e);
55257
55248
  if (a) {
55258
55249
  const s = new FontFace(r, `url(${a})`, {
55259
55250
  weight: n.toString()
@@ -55265,7 +55256,7 @@ class Ca extends ir {
55265
55256
  Ca.loadedFonts.clear();
55266
55257
  }
55267
55258
  }
55268
- class qV extends ir {
55259
+ class qV extends hr {
55269
55260
  aiOverlay = null;
55270
55261
  lastPrompt = "";
55271
55262
  constructor(e, r) {
@@ -55302,7 +55293,7 @@ class qV extends ir {
55302
55293
  this.aiOverlay?.dispose(), this.aiOverlay = null, super.dispose();
55303
55294
  }
55304
55295
  }
55305
- class XV extends ir {
55296
+ class XV extends hr {
55306
55297
  constructor(e, r) {
55307
55298
  super(e, r, Ne.TextToSpeech);
55308
55299
  }
@@ -55316,7 +55307,7 @@ class XV extends ir {
55316
55307
  return { width: 0, height: 0 };
55317
55308
  }
55318
55309
  }
55319
- class KV extends ir {
55310
+ class KV extends hr {
55320
55311
  texture;
55321
55312
  sprite;
55322
55313
  placeholder;
@@ -55328,7 +55319,7 @@ class KV extends ir {
55328
55319
  constructor(e, r) {
55329
55320
  super(e, r, Ne.Video), this.texture = null, this.sprite = null, this.placeholder = null, this.isPlaying = !1;
55330
55321
  const n = this.clipConfiguration.asset;
55331
- this.volumeKeyframeBuilder = new Ea(n.volume ?? 1, this.getLength()), this.syncTimer = 0, this.activeSyncTimer = 0, this.skipVideoUpdate = !1;
55322
+ this.volumeKeyframeBuilder = new ka(n.volume ?? 1, this.getLength()), this.syncTimer = 0, this.activeSyncTimer = 0, this.skipVideoUpdate = !1;
55332
55323
  }
55333
55324
  async load() {
55334
55325
  await super.load();
@@ -55379,7 +55370,7 @@ class KV extends ir {
55379
55370
  reconfigureAfterRestore() {
55380
55371
  super.reconfigureAfterRestore();
55381
55372
  const e = this.clipConfiguration.asset;
55382
- this.volumeKeyframeBuilder = new Ea(e.volume ?? 1, this.getLength());
55373
+ this.volumeKeyframeBuilder = new ka(e.volume ?? 1, this.getLength());
55383
55374
  }
55384
55375
  async loadVideo() {
55385
55376
  const e = this.clipConfiguration.asset, { src: r } = e;
@@ -55446,7 +55437,7 @@ class Hm {
55446
55437
  case "caption":
55447
55438
  return new pu(e, r);
55448
55439
  case "rich-caption":
55449
- return new ks(e, r);
55440
+ return new Ss(e, r);
55450
55441
  case "svg":
55451
55442
  return new Li(e, r);
55452
55443
  case "text-to-image":
@@ -55496,7 +55487,7 @@ function JV(t) {
55496
55487
  function QV(t) {
55497
55488
  const e = JV(t);
55498
55489
  if (!e) return null;
55499
- const r = Fa.safeParse(e);
55490
+ const r = Na.safeParse(e);
55500
55491
  return r.success ? r.data : null;
55501
55492
  }
55502
55493
  function tO(t) {
@@ -55581,7 +55572,7 @@ async function V0(t, e, r) {
55581
55572
  desiredLength: i
55582
55573
  });
55583
55574
  if (o.type === "insert-track") {
55584
- Fa.parse(r), await t.executeEditCommand(new gd(o.insertionIndex, { clips: [r] }));
55575
+ Na.parse(r), await t.executeEditCommand(new gd(o.insertionIndex, { clips: [r] }));
55585
55576
  return;
55586
55577
  }
55587
55578
  await t.addClip(o.trackIndex, r);
@@ -58060,7 +58051,7 @@ function Qm(t, e) {
58060
58051
  output: t.getOutput()
58061
58052
  };
58062
58053
  }
58063
- class Us {
58054
+ class Ea {
58064
58055
  // ─── Constants ────────────────────────────────────────────────────────────
58065
58056
  static MAX_HISTORY_SIZE = 100;
58066
58057
  /** @internal */
@@ -58110,7 +58101,7 @@ class Us {
58110
58101
  * Create an Edit instance from a template configuration.
58111
58102
  */
58112
58103
  constructor(e) {
58113
- gs.parse(e), this.tracks = [], this.playbackTime = 0, this.totalDuration = 0, this.isPlaying = !1, this.document = new Aa(e);
58104
+ ys.parse(e), this.tracks = [], this.playbackTime = 0, this.totalDuration = 0, this.isPlaying = !1, this.document = new Aa(e);
58114
58105
  const r = this.document.getResolution(), n = this.document.getAspectRatio();
58115
58106
  this.backgroundColor = this.document.getBackground() ?? "#000000", this.size = r ? ju(r, n) : this.document.getSize(), this.assetLoader = new Gu(), this.internalEvents = new Z2(), this.events = this.internalEvents, this.lumaMaskController = new _O(
58116
58107
  () => this.canvas,
@@ -58130,7 +58121,7 @@ class Us {
58130
58121
  async initializeFromDocument(e = "load") {
58131
58122
  const r = this.document.toJSON(), n = r.merge ?? [];
58132
58123
  this.mergeFieldService.loadFromSerialized(n), this.lastResolved = null;
58133
- const i = this.detectMergeFieldBindings(n), a = gs.parse(r);
58124
+ const i = this.detectMergeFieldBindings(n), a = ys.parse(r);
58134
58125
  await Promise.all(
58135
58126
  (a.timeline.fonts ?? []).map(async (o) => {
58136
58127
  const u = o.src, l = { src: u, parser: Wu.Name }, c = await this.assetLoader.load(u, l);
@@ -58178,7 +58169,7 @@ class Us {
58178
58169
  this.isPlaying = !1, this.internalEvents.emit(Ot.PlaybackPause);
58179
58170
  }
58180
58171
  seek(e) {
58181
- this.playbackTime = Math.max(0, Math.min(e, this.totalDuration)), this.pause(), this.update(0, Us.SEEK_ELAPSED_MARKER);
58172
+ this.playbackTime = Math.max(0, Math.min(e, this.totalDuration)), this.pause(), this.update(0, Ea.SEEK_ELAPSED_MARKER);
58182
58173
  }
58183
58174
  stop() {
58184
58175
  this.seek(0);
@@ -58187,7 +58178,7 @@ class Us {
58187
58178
  * Reload the edit with a new configuration (hot-reload).
58188
58179
  */
58189
58180
  async loadEdit(e) {
58190
- if (gs.parse(e), this.pause(), this.tracks.length > 0 && !this.hasStructuralChanges(e)) {
58181
+ if (ys.parse(e), this.pause(), this.tracks.length > 0 && !this.hasStructuralChanges(e)) {
58191
58182
  this.lastResolved = null;
58192
58183
  const s = structuredClone(e);
58193
58184
  this.preserveClipIdsForGranularUpdate(s);
@@ -58232,7 +58223,7 @@ class Us {
58232
58223
  * @internal
58233
58224
  */
58234
58225
  validateEdit(e) {
58235
- const r = gs.safeParse(e);
58226
+ const r = ys.safeParse(e);
58236
58227
  return r.success ? { valid: !0, errors: [] } : {
58237
58228
  valid: !1,
58238
58229
  errors: r.error.issues.map((n) => ({
@@ -58323,7 +58314,7 @@ class Us {
58323
58314
  return this.playerReconciler.updateSinglePlayer(r, h.resolved, h.trackIndex, h.clipIndex) !== !1;
58324
58315
  }
58325
58316
  addClip(e, r) {
58326
- Fa.parse(r);
58317
+ Na.parse(r);
58327
58318
  const n = new lO(e, r);
58328
58319
  return this.executeCommand(n);
58329
58320
  }
@@ -58635,7 +58626,7 @@ class Us {
58635
58626
  const r = this.commandHistory.slice(this.commandIndex + 1);
58636
58627
  for (const n of r)
58637
58628
  n.dispose?.();
58638
- for (this.commandHistory = this.commandHistory.slice(0, this.commandIndex + 1), this.commandHistory.push(e), this.commandIndex += 1; this.commandHistory.length > Us.MAX_HISTORY_SIZE; )
58629
+ for (this.commandHistory = this.commandHistory.slice(0, this.commandIndex + 1), this.commandHistory.push(e), this.commandIndex += 1; this.commandHistory.length > Ea.MAX_HISTORY_SIZE; )
58639
58630
  this.commandHistory.shift()?.dispose?.(), this.commandIndex -= 1;
58640
58631
  }
58641
58632
  /**
@@ -59416,12 +59407,19 @@ class Us {
59416
59407
  }
59417
59408
  return s;
59418
59409
  }
59410
+ lastClipClick = null;
59411
+ static DoubleClickThresholdMs = 500;
59419
59412
  // ─── Intent Listeners ────────────────────────────────────────────────────────
59420
59413
  setupIntentListeners() {
59421
59414
  this.internalEvents.on(Fe.CanvasClipClicked, (e) => {
59422
- this.selectPlayer(e.player);
59415
+ if (!(this.getSelectedClipInfo()?.player === e.player)) {
59416
+ this.selectPlayer(e.player), this.lastClipClick = null;
59417
+ return;
59418
+ }
59419
+ const n = performance.now(), i = this.lastClipClick && n - this.lastClipClick.at <= Ea.DoubleClickThresholdMs;
59420
+ this.lastClipClick?.player === e.player && i ? (this.internalEvents.emit(Fe.CanvasClipDoubleClicked, { player: e.player }), this.lastClipClick = null) : this.lastClipClick = { player: e.player, at: n };
59423
59421
  }), this.internalEvents.on(Fe.CanvasBackgroundClicked, () => {
59424
- this.clearSelection();
59422
+ this.clearSelection(), this.lastClipClick = null;
59425
59423
  });
59426
59424
  }
59427
59425
  // ─── Protected Accessors for Subclasses ─────────────────────────────────────
@@ -59510,7 +59508,7 @@ function iR(t) {
59510
59508
  };
59511
59509
  return e.width !== void 0 && n.width === void 0 && (n.width = e.width), e.height !== void 0 && n.height === void 0 && (n.height = e.height), n;
59512
59510
  }
59513
- class BR extends Us {
59511
+ class BR extends Ea {
59514
59512
  // Recursion guard for merge field updates (prevents stack overflow)
59515
59513
  isUpdatingMergeFields = !1;
59516
59514
  // ─── Merge Field API ───────────────────────────────────────────────────────
@@ -59607,7 +59605,7 @@ class BR extends Us {
59607
59605
  Gi(l, h, d);
59608
59606
  }
59609
59607
  delete l.id;
59610
- const c = Fa.safeParse(l);
59608
+ const c = Na.safeParse(l);
59611
59609
  if (!c.success)
59612
59610
  return c.error.issues[0]?.message ?? "Invalid value";
59613
59611
  }
@@ -59626,7 +59624,7 @@ class BR extends Us {
59626
59624
  const i = this.getResolvedClipById(e);
59627
59625
  if (!i) return !0;
59628
59626
  const a = structuredClone(i);
59629
- return Gi(a, r, n), delete a.id, Fa.safeParse(a).success;
59627
+ return Gi(a, r, n), delete a.id, Na.safeParse(a).success;
59630
59628
  }
59631
59629
  /** Check if any binding in a clip references the given field name. */
59632
59630
  clipUsesField(e, r) {
@@ -59781,25 +59779,25 @@ class BR extends Us {
59781
59779
  }
59782
59780
  var It, Ui = new Array(128).fill(void 0);
59783
59781
  Ui.push(void 0, null, !0, !1);
59784
- var Ds = Ui.length;
59782
+ var Fs = Ui.length;
59785
59783
  function kr(t) {
59786
- Ds === Ui.length && Ui.push(Ui.length + 1);
59787
- const e = Ds;
59788
- return Ds = Ui[e], Ui[e] = t, e;
59784
+ Fs === Ui.length && Ui.push(Ui.length + 1);
59785
+ const e = Fs;
59786
+ return Fs = Ui[e], Ui[e] = t, e;
59789
59787
  }
59790
59788
  function br(t) {
59791
59789
  return Ui[t];
59792
59790
  }
59793
59791
  function nR(t) {
59794
- t < 132 || (Ui[t] = Ds, Ds = t);
59792
+ t < 132 || (Ui[t] = Fs, Fs = t);
59795
59793
  }
59796
59794
  function ji(t) {
59797
59795
  const e = br(t);
59798
59796
  return nR(t), e;
59799
59797
  }
59800
- var js = 0, ws = null;
59798
+ var js = 0, _s = null;
59801
59799
  function uu() {
59802
- return (ws === null || ws.byteLength === 0) && (ws = new Uint8Array(It.memory.buffer)), ws;
59800
+ return (_s === null || _s.byteLength === 0) && (_s = new Uint8Array(It.memory.buffer)), _s;
59803
59801
  }
59804
59802
  var lu = typeof TextEncoder < "u" ? new TextEncoder("utf-8") : { encode: () => {
59805
59803
  throw Error("TextEncoder not available");
@@ -59836,9 +59834,9 @@ function L0(t, e, r) {
59836
59834
  function Z0(t) {
59837
59835
  return t == null;
59838
59836
  }
59839
- var _s = null;
59837
+ var xs = null;
59840
59838
  function Ke() {
59841
- return (_s === null || _s.byteLength === 0) && (_s = new Int32Array(It.memory.buffer)), _s;
59839
+ return (xs === null || xs.byteLength === 0) && (xs = new Int32Array(It.memory.buffer)), xs;
59842
59840
  }
59843
59841
  var Y2 = typeof TextDecoder < "u" ? new TextDecoder("utf-8", { ignoreBOM: !0, fatal: !0 }) : { decode: () => {
59844
59842
  throw Error("TextDecoder not available");
@@ -60189,7 +60187,7 @@ function hR() {
60189
60187
  }, t;
60190
60188
  }
60191
60189
  function dR(t, e) {
60192
- return It = t.exports, X2.__wbindgen_wasm_module = e, _s = null, ws = null, It;
60190
+ return It = t.exports, X2.__wbindgen_wasm_module = e, xs = null, _s = null, It;
60193
60191
  }
60194
60192
  async function X2(t) {
60195
60193
  if (It !== void 0)
@@ -60303,7 +60301,7 @@ var wR = Ge({
60303
60301
  oe(tt);
60304
60302
  }
60305
60303
  function R() {
60306
- L = !0, ur.__wasm_call_ctors();
60304
+ L = !0, or.__wasm_call_ctors();
60307
60305
  }
60308
60306
  function K() {
60309
60307
  if (s.postRun)
@@ -60369,7 +60367,7 @@ var wR = Ge({
60369
60367
  }
60370
60368
  async function ee() {
60371
60369
  function T($e, zr) {
60372
- return ur = $e.exports, s.wasmExports = ur, N = ur.memory, s.wasmMemory = N, I(), Ht = ur.__indirect_function_table, pr(ur), Et(), ur;
60370
+ return or = $e.exports, s.wasmExports = or, N = or.memory, s.wasmMemory = N, I(), Ht = or.__indirect_function_table, pr(or), Et(), or;
60373
60371
  }
60374
60372
  ct();
60375
60373
  function dt($e) {
@@ -60453,10 +60451,10 @@ var wR = Ge({
60453
60451
  })), Kt = (T, dt) => {
60454
60452
  var qt = Uint8Array.of(0, 97, 115, 109, 1, 0, 0, 0, 1, ...ve([1, 96, ...Ve(dt.slice(1)), ...Ve(dt[0] === "v" ? "" : dt[0])]), 2, 7, 1, 1, 101, 1, 102, 0, 0, 7, 5, 1, 1, 102, 0, 0), fe = new WebAssembly.Module(qt), ie = new WebAssembly.Instance(fe, { e: { f: T } }), $e = ie.exports.f;
60455
60453
  return $e;
60456
- }, Ht, or = (T) => Ht.get(T), dr = (T, dt) => {
60454
+ }, Ht, sr = (T) => Ht.get(T), dr = (T, dt) => {
60457
60455
  if (qe)
60458
60456
  for (var qt = T; qt < T + dt; qt++) {
60459
- var fe = or(qt);
60457
+ var fe = sr(qt);
60460
60458
  fe && qe.set(fe, qt);
60461
60459
  }
60462
60460
  }, qe, Ce = (T) => (qe || (qe = /* @__PURE__ */ new WeakMap(), dr(0, Ht.length)), qe.get(T) || 0), Se = [], Nn = () => Se.length ? Se.pop() : Ht.grow(1), Ii = (T, dt) => Ht.set(T, dt), Ti = (T, dt) => {
@@ -60474,14 +60472,14 @@ var wR = Ge({
60474
60472
  }
60475
60473
  return qe.set(T, fe), fe;
60476
60474
  }, tn = (T) => {
60477
- qe.delete(or(T)), Ii(T, null), Se.push(T);
60475
+ qe.delete(sr(T)), Ii(T, null), Se.push(T);
60478
60476
  };
60479
- s.noExitRuntime && (mt = s.noExitRuntime), s.print && s.print, s.printErr && (v = s.printErr), s.wasmBinary && (S = s.wasmBinary), s.arguments && s.arguments, s.thisProgram && s.thisProgram, s.wasmMemory = N, s.wasmExports = ur, s.addFunction = Ti, s.removeFunction = tn;
60477
+ s.noExitRuntime && (mt = s.noExitRuntime), s.print && s.print, s.printErr && (v = s.printErr), s.wasmBinary && (S = s.wasmBinary), s.arguments && s.arguments, s.thisProgram && s.thisProgram, s.wasmMemory = N, s.wasmExports = or, s.addFunction = Ti, s.removeFunction = tn;
60480
60478
  var jr;
60481
60479
  function pr(T) {
60482
60480
  s._hb_blob_create = T.hb_blob_create, s._hb_blob_destroy = T.hb_blob_destroy, s._hb_blob_get_length = T.hb_blob_get_length, s._hb_blob_get_data = T.hb_blob_get_data, s._hb_buffer_serialize_glyphs = T.hb_buffer_serialize_glyphs, s._hb_buffer_create = T.hb_buffer_create, s._hb_buffer_destroy = T.hb_buffer_destroy, s._hb_buffer_get_content_type = T.hb_buffer_get_content_type, s._hb_buffer_set_direction = T.hb_buffer_set_direction, s._hb_buffer_set_script = T.hb_buffer_set_script, s._hb_buffer_set_language = T.hb_buffer_set_language, s._hb_buffer_set_flags = T.hb_buffer_set_flags, s._hb_buffer_set_cluster_level = T.hb_buffer_set_cluster_level, s._hb_buffer_get_length = T.hb_buffer_get_length, s._hb_buffer_get_glyph_infos = T.hb_buffer_get_glyph_infos, s._hb_buffer_get_glyph_positions = T.hb_buffer_get_glyph_positions, s._hb_glyph_info_get_glyph_flags = T.hb_glyph_info_get_glyph_flags, s._hb_buffer_guess_segment_properties = T.hb_buffer_guess_segment_properties, s._hb_buffer_add_utf8 = T.hb_buffer_add_utf8, s._hb_buffer_add_utf16 = T.hb_buffer_add_utf16, s._hb_buffer_set_message_func = T.hb_buffer_set_message_func, s._hb_language_from_string = T.hb_language_from_string, s._hb_script_from_string = T.hb_script_from_string, s._hb_version = T.hb_version, s._hb_version_string = T.hb_version_string, s._hb_feature_from_string = T.hb_feature_from_string, s._malloc = T.malloc, s._free = T.free, s._hb_draw_funcs_set_move_to_func = T.hb_draw_funcs_set_move_to_func, s._hb_draw_funcs_set_line_to_func = T.hb_draw_funcs_set_line_to_func, s._hb_draw_funcs_set_quadratic_to_func = T.hb_draw_funcs_set_quadratic_to_func, s._hb_draw_funcs_set_cubic_to_func = T.hb_draw_funcs_set_cubic_to_func, s._hb_draw_funcs_set_close_path_func = T.hb_draw_funcs_set_close_path_func, s._hb_draw_funcs_create = T.hb_draw_funcs_create, s._hb_draw_funcs_destroy = T.hb_draw_funcs_destroy, s._hb_face_create = T.hb_face_create, s._hb_face_destroy = T.hb_face_destroy, s._hb_face_reference_table = T.hb_face_reference_table, s._hb_face_get_upem = T.hb_face_get_upem, s._hb_face_collect_unicodes = T.hb_face_collect_unicodes, s._hb_font_draw_glyph = T.hb_font_draw_glyph, s._hb_font_glyph_to_string = T.hb_font_glyph_to_string, s._hb_font_create = T.hb_font_create, s._hb_font_set_variations = T.hb_font_set_variations, s._hb_font_destroy = T.hb_font_destroy, s._hb_font_set_scale = T.hb_font_set_scale, s._hb_set_create = T.hb_set_create, s._hb_set_destroy = T.hb_set_destroy, s._hb_ot_var_get_axis_infos = T.hb_ot_var_get_axis_infos, s._hb_set_get_population = T.hb_set_get_population, s._hb_set_next_many = T.hb_set_next_many, s._hb_shape = T.hb_shape, jr = T._emscripten_timeout;
60483
60481
  }
60484
- var Mr = { _abort_js: Ct, _emscripten_runtime_keepalive_clear: At, _setitimer_js: ae, emscripten_resize_heap: Je, proc_exit: yt }, ur = await ee();
60482
+ var Mr = { _abort_js: Ct, _emscripten_runtime_keepalive_clear: At, _setitimer_js: ae, emscripten_resize_heap: Je, proc_exit: yt }, or = await ee();
60485
60483
  function Pi() {
60486
60484
  if (J > 0) {
60487
60485
  bt = Pi;
@@ -60883,6 +60881,6 @@ const AR = CR(), ER = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defin
60883
60881
  default: AR
60884
60882
  }, Symbol.toStringTag, { value: "Module" }));
60885
60883
  export {
60886
- Us as Edit,
60884
+ Ea as Edit,
60887
60885
  BR as ShotstackEdit
60888
60886
  };