@boostxyz/cli 6.1.1 → 6.2.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.
@@ -169,7 +169,7 @@ const g = I.arrayToEnum([
169
169
  "not_multiple_of",
170
170
  "not_finite"
171
171
  ]), _a = (t) => JSON.stringify(t, null, 2).replace(/"([^"]+)":/g, "$1:");
172
- class H extends Error {
172
+ class W extends Error {
173
173
  get errors() {
174
174
  return this.issues;
175
175
  }
@@ -206,7 +206,7 @@ class H extends Error {
206
206
  return s(this), r;
207
207
  }
208
208
  static assert(e) {
209
- if (!(e instanceof H))
209
+ if (!(e instanceof W))
210
210
  throw new Error(`Not a ZodError: ${e}`);
211
211
  }
212
212
  toString() {
@@ -228,7 +228,7 @@ class H extends Error {
228
228
  return this.flatten();
229
229
  }
230
230
  }
231
- H.create = (t) => new H(t);
231
+ W.create = (t) => new W(t);
232
232
  const Ve = (t, e) => {
233
233
  let n;
234
234
  switch (t.code) {
@@ -289,7 +289,7 @@ let Zr = Ve;
289
289
  function Pa(t) {
290
290
  Zr = t;
291
291
  }
292
- function Dt() {
292
+ function Lt() {
293
293
  return Zr;
294
294
  }
295
295
  const Vt = (t) => {
@@ -314,7 +314,7 @@ const Vt = (t) => {
314
314
  };
315
315
  }, Ea = [];
316
316
  function b(t, e) {
317
- const n = Dt(), r = Vt({
317
+ const n = Lt(), r = Vt({
318
318
  issueData: e,
319
319
  data: t.data,
320
320
  path: t.path,
@@ -374,12 +374,12 @@ class z {
374
374
  }
375
375
  const _ = Object.freeze({
376
376
  status: "aborted"
377
- }), Fe = (t) => ({ status: "dirty", value: t }), L = (t) => ({ status: "valid", value: t }), Tn = (t) => t.status === "aborted", $n = (t) => t.status === "dirty", Ie = (t) => t.status === "valid", at = (t) => typeof Promise < "u" && t instanceof Promise;
377
+ }), Fe = (t) => ({ status: "dirty", value: t }), D = (t) => ({ status: "valid", value: t }), $n = (t) => t.status === "aborted", Tn = (t) => t.status === "dirty", Ie = (t) => t.status === "valid", at = (t) => typeof Promise < "u" && t instanceof Promise;
378
378
  function Ut(t, e, n, r) {
379
379
  if (typeof e == "function" ? t !== e || !r : !e.has(t)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
380
380
  return e.get(t);
381
381
  }
382
- function Lr(t, e, n, r, s) {
382
+ function Dr(t, e, n, r, s) {
383
383
  if (typeof e == "function" ? t !== e || !s : !e.has(t)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
384
384
  return e.set(t, n), n;
385
385
  }
@@ -406,7 +406,7 @@ const vr = (t, e) => {
406
406
  get error() {
407
407
  if (this._error)
408
408
  return this._error;
409
- const n = new H(t.common.issues);
409
+ const n = new W(t.common.issues);
410
410
  return this._error = n, this._error;
411
411
  }
412
412
  };
@@ -423,7 +423,7 @@ function E(t) {
423
423
  return i.code === "invalid_enum_value" ? { message: d ?? o.defaultError } : typeof o.data > "u" ? { message: (u = d ?? r) !== null && u !== void 0 ? u : o.defaultError } : i.code !== "invalid_type" ? { message: o.defaultError } : { message: (c = d ?? n) !== null && c !== void 0 ? c : o.defaultError };
424
424
  }, description: s };
425
425
  }
426
- class T {
426
+ class $ {
427
427
  get description() {
428
428
  return this._def.description;
429
429
  }
@@ -608,7 +608,7 @@ class T {
608
608
  });
609
609
  }
610
610
  brand() {
611
- return new Hn({
611
+ return new Wn({
612
612
  typeName: x.ZodBranded,
613
613
  type: this,
614
614
  ...E(this._def)
@@ -643,23 +643,23 @@ class T {
643
643
  return this.safeParse(null).success;
644
644
  }
645
645
  }
646
- const Aa = /^c[^\s-]{8,}$/i, Ca = /^[0-9a-z]+$/, Ta = /^[0-9A-HJKMNP-TV-Z]{26}$/i, $a = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, ka = /^[a-z0-9_-]{21}$/i, Ia = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, Sa = /^[-+]?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)?)??$/, Ra = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, Ma = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
646
+ const Aa = /^c[^\s-]{8,}$/i, Ca = /^[0-9a-z]+$/, $a = /^[0-9A-HJKMNP-TV-Z]{26}$/i, Ta = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, ka = /^[a-z0-9_-]{21}$/i, Ia = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, Sa = /^[-+]?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)?)??$/, Ra = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, Oa = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
647
647
  let pn;
648
- const Oa = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, ja = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/, Ba = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/, Na = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Fa = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, za = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, Dr = "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))", Za = new RegExp(`^${Dr}$`);
648
+ const Ma = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, ja = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/, Ba = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/, Na = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Fa = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, za = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, Lr = "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))", Za = new RegExp(`^${Lr}$`);
649
649
  function Vr(t) {
650
650
  let e = "([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";
651
651
  return t.precision ? e = `${e}\\.\\d{${t.precision}}` : t.precision == null && (e = `${e}(\\.\\d+)?`), e;
652
652
  }
653
- function La(t) {
653
+ function Da(t) {
654
654
  return new RegExp(`^${Vr(t)}$`);
655
655
  }
656
656
  function Ur(t) {
657
- let e = `${Dr}T${Vr(t)}`;
657
+ let e = `${Lr}T${Vr(t)}`;
658
658
  const n = [];
659
659
  return n.push(t.local ? "Z?" : "Z"), t.offset && n.push("([+-]\\d{2}:?\\d{2})"), e = `${e}(${n.join("|")})`, new RegExp(`^${e}$`);
660
660
  }
661
- function Da(t, e) {
662
- return !!((e === "v4" || !e) && Oa.test(t) || (e === "v6" || !e) && Ba.test(t));
661
+ function La(t, e) {
662
+ return !!((e === "v4" || !e) && Ma.test(t) || (e === "v6" || !e) && Ba.test(t));
663
663
  }
664
664
  function Va(t, e) {
665
665
  if (!Ia.test(t))
@@ -674,7 +674,7 @@ function Va(t, e) {
674
674
  function Ua(t, e) {
675
675
  return !!((e === "v4" || !e) && ja.test(t) || (e === "v6" || !e) && Na.test(t));
676
676
  }
677
- class ee extends T {
677
+ class ee extends $ {
678
678
  _parse(e) {
679
679
  if (this._def.coerce && (e.data = String(e.data)), this._getType(e) !== g.string) {
680
680
  const a = this._getOrReturnCtx(e);
@@ -729,13 +729,13 @@ class ee extends T {
729
729
  message: a.message
730
730
  }), r.dirty());
731
731
  else if (a.kind === "emoji")
732
- pn || (pn = new RegExp(Ma, "u")), pn.test(e.data) || (s = this._getOrReturnCtx(e, s), b(s, {
732
+ pn || (pn = new RegExp(Oa, "u")), pn.test(e.data) || (s = this._getOrReturnCtx(e, s), b(s, {
733
733
  validation: "emoji",
734
734
  code: p.invalid_string,
735
735
  message: a.message
736
736
  }), r.dirty());
737
737
  else if (a.kind === "uuid")
738
- $a.test(e.data) || (s = this._getOrReturnCtx(e, s), b(s, {
738
+ Ta.test(e.data) || (s = this._getOrReturnCtx(e, s), b(s, {
739
739
  validation: "uuid",
740
740
  code: p.invalid_string,
741
741
  message: a.message
@@ -759,7 +759,7 @@ class ee extends T {
759
759
  message: a.message
760
760
  }), r.dirty());
761
761
  else if (a.kind === "ulid")
762
- Ta.test(e.data) || (s = this._getOrReturnCtx(e, s), b(s, {
762
+ $a.test(e.data) || (s = this._getOrReturnCtx(e, s), b(s, {
763
763
  validation: "ulid",
764
764
  code: p.invalid_string,
765
765
  message: a.message
@@ -798,7 +798,7 @@ class ee extends T {
798
798
  code: p.invalid_string,
799
799
  validation: "date",
800
800
  message: a.message
801
- }), r.dirty()) : a.kind === "time" ? La(a).test(e.data) || (s = this._getOrReturnCtx(e, s), b(s, {
801
+ }), r.dirty()) : a.kind === "time" ? Da(a).test(e.data) || (s = this._getOrReturnCtx(e, s), b(s, {
802
802
  code: p.invalid_string,
803
803
  validation: "time",
804
804
  message: a.message
@@ -806,7 +806,7 @@ class ee extends T {
806
806
  validation: "duration",
807
807
  code: p.invalid_string,
808
808
  message: a.message
809
- }), r.dirty()) : a.kind === "ip" ? Da(e.data, a.version) || (s = this._getOrReturnCtx(e, s), b(s, {
809
+ }), r.dirty()) : a.kind === "ip" ? La(e.data, a.version) || (s = this._getOrReturnCtx(e, s), b(s, {
810
810
  validation: "ip",
811
811
  code: p.invalid_string,
812
812
  message: a.message
@@ -1065,7 +1065,7 @@ function Ga(t, e) {
1065
1065
  const n = (t.toString().split(".")[1] || "").length, r = (e.toString().split(".")[1] || "").length, s = n > r ? n : r, a = parseInt(t.toFixed(s).replace(".", "")), i = parseInt(e.toFixed(s).replace(".", ""));
1066
1066
  return a % i / Math.pow(10, s);
1067
1067
  }
1068
- class ve extends T {
1068
+ class ve extends $ {
1069
1069
  constructor() {
1070
1070
  super(...arguments), this.min = this.gte, this.max = this.lte, this.step = this.multipleOf;
1071
1071
  }
@@ -1237,7 +1237,7 @@ ve.create = (t) => new ve({
1237
1237
  coerce: (t == null ? void 0 : t.coerce) || !1,
1238
1238
  ...E(t)
1239
1239
  });
1240
- class we extends T {
1240
+ class we extends $ {
1241
1241
  constructor() {
1242
1242
  super(...arguments), this.min = this.gte, this.max = this.lte;
1243
1243
  }
@@ -1373,7 +1373,7 @@ we.create = (t) => {
1373
1373
  ...E(t)
1374
1374
  });
1375
1375
  };
1376
- class it extends T {
1376
+ class it extends $ {
1377
1377
  _parse(e) {
1378
1378
  if (this._def.coerce && (e.data = !!e.data), this._getType(e) !== g.boolean) {
1379
1379
  const r = this._getOrReturnCtx(e);
@@ -1383,7 +1383,7 @@ class it extends T {
1383
1383
  received: r.parsedType
1384
1384
  }), _;
1385
1385
  }
1386
- return L(e.data);
1386
+ return D(e.data);
1387
1387
  }
1388
1388
  }
1389
1389
  it.create = (t) => new it({
@@ -1391,7 +1391,7 @@ it.create = (t) => new it({
1391
1391
  coerce: (t == null ? void 0 : t.coerce) || !1,
1392
1392
  ...E(t)
1393
1393
  });
1394
- class Se extends T {
1394
+ class Se extends $ {
1395
1395
  _parse(e) {
1396
1396
  if (this._def.coerce && (e.data = new Date(e.data)), this._getType(e) !== g.date) {
1397
1397
  const a = this._getOrReturnCtx(e);
@@ -1469,7 +1469,7 @@ Se.create = (t) => new Se({
1469
1469
  typeName: x.ZodDate,
1470
1470
  ...E(t)
1471
1471
  });
1472
- class Gt extends T {
1472
+ class Gt extends $ {
1473
1473
  _parse(e) {
1474
1474
  if (this._getType(e) !== g.symbol) {
1475
1475
  const r = this._getOrReturnCtx(e);
@@ -1479,14 +1479,14 @@ class Gt extends T {
1479
1479
  received: r.parsedType
1480
1480
  }), _;
1481
1481
  }
1482
- return L(e.data);
1482
+ return D(e.data);
1483
1483
  }
1484
1484
  }
1485
1485
  Gt.create = (t) => new Gt({
1486
1486
  typeName: x.ZodSymbol,
1487
1487
  ...E(t)
1488
1488
  });
1489
- class ot extends T {
1489
+ class ot extends $ {
1490
1490
  _parse(e) {
1491
1491
  if (this._getType(e) !== g.undefined) {
1492
1492
  const r = this._getOrReturnCtx(e);
@@ -1496,14 +1496,14 @@ class ot extends T {
1496
1496
  received: r.parsedType
1497
1497
  }), _;
1498
1498
  }
1499
- return L(e.data);
1499
+ return D(e.data);
1500
1500
  }
1501
1501
  }
1502
1502
  ot.create = (t) => new ot({
1503
1503
  typeName: x.ZodUndefined,
1504
1504
  ...E(t)
1505
1505
  });
1506
- class ct extends T {
1506
+ class ct extends $ {
1507
1507
  _parse(e) {
1508
1508
  if (this._getType(e) !== g.null) {
1509
1509
  const r = this._getOrReturnCtx(e);
@@ -1513,38 +1513,38 @@ class ct extends T {
1513
1513
  received: r.parsedType
1514
1514
  }), _;
1515
1515
  }
1516
- return L(e.data);
1516
+ return D(e.data);
1517
1517
  }
1518
1518
  }
1519
1519
  ct.create = (t) => new ct({
1520
1520
  typeName: x.ZodNull,
1521
1521
  ...E(t)
1522
1522
  });
1523
- class Ue extends T {
1523
+ class Ue extends $ {
1524
1524
  constructor() {
1525
1525
  super(...arguments), this._any = !0;
1526
1526
  }
1527
1527
  _parse(e) {
1528
- return L(e.data);
1528
+ return D(e.data);
1529
1529
  }
1530
1530
  }
1531
1531
  Ue.create = (t) => new Ue({
1532
1532
  typeName: x.ZodAny,
1533
1533
  ...E(t)
1534
1534
  });
1535
- class ke extends T {
1535
+ class ke extends $ {
1536
1536
  constructor() {
1537
1537
  super(...arguments), this._unknown = !0;
1538
1538
  }
1539
1539
  _parse(e) {
1540
- return L(e.data);
1540
+ return D(e.data);
1541
1541
  }
1542
1542
  }
1543
1543
  ke.create = (t) => new ke({
1544
1544
  typeName: x.ZodUnknown,
1545
1545
  ...E(t)
1546
1546
  });
1547
- class me extends T {
1547
+ class me extends $ {
1548
1548
  _parse(e) {
1549
1549
  const n = this._getOrReturnCtx(e);
1550
1550
  return b(n, {
@@ -1558,7 +1558,7 @@ me.create = (t) => new me({
1558
1558
  typeName: x.ZodNever,
1559
1559
  ...E(t)
1560
1560
  });
1561
- class Wt extends T {
1561
+ class Ht extends $ {
1562
1562
  _parse(e) {
1563
1563
  if (this._getType(e) !== g.undefined) {
1564
1564
  const r = this._getOrReturnCtx(e);
@@ -1568,14 +1568,14 @@ class Wt extends T {
1568
1568
  received: r.parsedType
1569
1569
  }), _;
1570
1570
  }
1571
- return L(e.data);
1571
+ return D(e.data);
1572
1572
  }
1573
1573
  }
1574
- Wt.create = (t) => new Wt({
1574
+ Ht.create = (t) => new Ht({
1575
1575
  typeName: x.ZodVoid,
1576
1576
  ...E(t)
1577
1577
  });
1578
- class te extends T {
1578
+ class te extends $ {
1579
1579
  _parse(e) {
1580
1580
  const { ctx: n, status: r } = this._processInputParams(e), s = this._def;
1581
1581
  if (n.parsedType !== g.array)
@@ -1664,7 +1664,7 @@ function Ne(t) {
1664
1664
  type: Ne(t.element)
1665
1665
  }) : t instanceof ae ? ae.create(Ne(t.unwrap())) : t instanceof _e ? _e.create(Ne(t.unwrap())) : t instanceof oe ? oe.create(t.items.map((e) => Ne(e))) : t;
1666
1666
  }
1667
- class j extends T {
1667
+ class j extends $ {
1668
1668
  constructor() {
1669
1669
  super(...arguments), this._cached = null, this.nonstrict = this.passthrough, this.augment = this.extend;
1670
1670
  }
@@ -1951,7 +1951,7 @@ j.lazycreate = (t, e) => new j({
1951
1951
  typeName: x.ZodObject,
1952
1952
  ...E(e)
1953
1953
  });
1954
- class ut extends T {
1954
+ class ut extends $ {
1955
1955
  _parse(e) {
1956
1956
  const { ctx: n } = this._processInputParams(e), r = this._def.options;
1957
1957
  function s(a) {
@@ -1961,7 +1961,7 @@ class ut extends T {
1961
1961
  for (const o of a)
1962
1962
  if (o.result.status === "dirty")
1963
1963
  return n.common.issues.push(...o.ctx.common.issues), o.result;
1964
- const i = a.map((o) => new H(o.ctx.common.issues));
1964
+ const i = a.map((o) => new W(o.ctx.common.issues));
1965
1965
  return b(n, {
1966
1966
  code: p.invalid_union,
1967
1967
  unionErrors: i
@@ -2008,7 +2008,7 @@ class ut extends T {
2008
2008
  }
2009
2009
  if (a)
2010
2010
  return n.common.issues.push(...a.ctx.common.issues), a.result;
2011
- const o = i.map((u) => new H(u));
2011
+ const o = i.map((u) => new W(u));
2012
2012
  return b(n, {
2013
2013
  code: p.invalid_union,
2014
2014
  unionErrors: o
@@ -2024,8 +2024,8 @@ ut.create = (t, e) => new ut({
2024
2024
  typeName: x.ZodUnion,
2025
2025
  ...E(e)
2026
2026
  });
2027
- const fe = (t) => t instanceof ft ? fe(t.schema) : t instanceof ne ? fe(t.innerType()) : t instanceof ht ? [t.value] : t instanceof xe ? t.options : t instanceof pt ? I.objectValues(t.enum) : t instanceof mt ? fe(t._def.innerType) : t instanceof ot ? [void 0] : t instanceof ct ? [null] : t instanceof ae ? [void 0, ...fe(t.unwrap())] : t instanceof _e ? [null, ...fe(t.unwrap())] : t instanceof Hn || t instanceof bt ? fe(t.unwrap()) : t instanceof yt ? fe(t._def.innerType) : [];
2028
- class nn extends T {
2027
+ const fe = (t) => t instanceof ft ? fe(t.schema) : t instanceof ne ? fe(t.innerType()) : t instanceof ht ? [t.value] : t instanceof xe ? t.options : t instanceof pt ? I.objectValues(t.enum) : t instanceof mt ? fe(t._def.innerType) : t instanceof ot ? [void 0] : t instanceof ct ? [null] : t instanceof ae ? [void 0, ...fe(t.unwrap())] : t instanceof _e ? [null, ...fe(t.unwrap())] : t instanceof Wn || t instanceof bt ? fe(t.unwrap()) : t instanceof yt ? fe(t._def.innerType) : [];
2028
+ class nn extends $ {
2029
2029
  _parse(e) {
2030
2030
  const { ctx: n } = this._processInputParams(e);
2031
2031
  if (n.parsedType !== g.object)
@@ -2113,13 +2113,13 @@ function kn(t, e) {
2113
2113
  return { valid: !0, data: s };
2114
2114
  } else return n === g.date && r === g.date && +t == +e ? { valid: !0, data: t } : { valid: !1 };
2115
2115
  }
2116
- class dt extends T {
2116
+ class dt extends $ {
2117
2117
  _parse(e) {
2118
2118
  const { status: n, ctx: r } = this._processInputParams(e), s = (a, i) => {
2119
- if (Tn(a) || Tn(i))
2119
+ if ($n(a) || $n(i))
2120
2120
  return _;
2121
2121
  const o = kn(a.value, i.value);
2122
- return o.valid ? (($n(a) || $n(i)) && n.dirty(), { status: n.value, value: o.data }) : (b(r, {
2122
+ return o.valid ? ((Tn(a) || Tn(i)) && n.dirty(), { status: n.value, value: o.data }) : (b(r, {
2123
2123
  code: p.invalid_intersection_types
2124
2124
  }), _);
2125
2125
  };
@@ -2151,7 +2151,7 @@ dt.create = (t, e, n) => new dt({
2151
2151
  typeName: x.ZodIntersection,
2152
2152
  ...E(n)
2153
2153
  });
2154
- class oe extends T {
2154
+ class oe extends $ {
2155
2155
  _parse(e) {
2156
2156
  const { status: n, ctx: r } = this._processInputParams(e);
2157
2157
  if (r.parsedType !== g.array)
@@ -2201,7 +2201,7 @@ oe.create = (t, e) => {
2201
2201
  ...E(e)
2202
2202
  });
2203
2203
  };
2204
- class lt extends T {
2204
+ class lt extends $ {
2205
2205
  get keySchema() {
2206
2206
  return this._def.keyType;
2207
2207
  }
@@ -2229,7 +2229,7 @@ class lt extends T {
2229
2229
  return this._def.valueType;
2230
2230
  }
2231
2231
  static create(e, n, r) {
2232
- return n instanceof T ? new lt({
2232
+ return n instanceof $ ? new lt({
2233
2233
  keyType: e,
2234
2234
  valueType: n,
2235
2235
  typeName: x.ZodRecord,
@@ -2242,7 +2242,7 @@ class lt extends T {
2242
2242
  });
2243
2243
  }
2244
2244
  }
2245
- class Ht extends T {
2245
+ class Wt extends $ {
2246
2246
  get keySchema() {
2247
2247
  return this._def.keyType;
2248
2248
  }
@@ -2284,13 +2284,13 @@ class Ht extends T {
2284
2284
  }
2285
2285
  }
2286
2286
  }
2287
- Ht.create = (t, e, n) => new Ht({
2287
+ Wt.create = (t, e, n) => new Wt({
2288
2288
  valueType: e,
2289
2289
  keyType: t,
2290
2290
  typeName: x.ZodMap,
2291
2291
  ...E(n)
2292
2292
  });
2293
- class Re extends T {
2293
+ class Re extends $ {
2294
2294
  _parse(e) {
2295
2295
  const { status: n, ctx: r } = this._processInputParams(e);
2296
2296
  if (r.parsedType !== g.set)
@@ -2354,7 +2354,7 @@ Re.create = (t, e) => new Re({
2354
2354
  typeName: x.ZodSet,
2355
2355
  ...E(e)
2356
2356
  });
2357
- class Ze extends T {
2357
+ class Ze extends $ {
2358
2358
  constructor() {
2359
2359
  super(...arguments), this.validate = this.implement;
2360
2360
  }
@@ -2373,7 +2373,7 @@ class Ze extends T {
2373
2373
  errorMaps: [
2374
2374
  n.common.contextualErrorMap,
2375
2375
  n.schemaErrorMap,
2376
- Dt(),
2376
+ Lt(),
2377
2377
  Ve
2378
2378
  ].filter((c) => !!c),
2379
2379
  issueData: {
@@ -2389,7 +2389,7 @@ class Ze extends T {
2389
2389
  errorMaps: [
2390
2390
  n.common.contextualErrorMap,
2391
2391
  n.schemaErrorMap,
2392
- Dt(),
2392
+ Lt(),
2393
2393
  Ve
2394
2394
  ].filter((c) => !!c),
2395
2395
  issueData: {
@@ -2401,8 +2401,8 @@ class Ze extends T {
2401
2401
  const a = { errorMap: n.common.contextualErrorMap }, i = n.data;
2402
2402
  if (this._def.returns instanceof Ge) {
2403
2403
  const o = this;
2404
- return L(async function(...u) {
2405
- const c = new H([]), d = await o._def.args.parseAsync(u, a).catch((m) => {
2404
+ return D(async function(...u) {
2405
+ const c = new W([]), d = await o._def.args.parseAsync(u, a).catch((m) => {
2406
2406
  throw c.addIssue(r(u, m)), c;
2407
2407
  }), f = await Reflect.apply(i, this, d);
2408
2408
  return await o._def.returns._def.type.parseAsync(f, a).catch((m) => {
@@ -2411,13 +2411,13 @@ class Ze extends T {
2411
2411
  });
2412
2412
  } else {
2413
2413
  const o = this;
2414
- return L(function(...u) {
2414
+ return D(function(...u) {
2415
2415
  const c = o._def.args.safeParse(u, a);
2416
2416
  if (!c.success)
2417
- throw new H([r(u, c.error)]);
2417
+ throw new W([r(u, c.error)]);
2418
2418
  const d = Reflect.apply(i, this, c.data), f = o._def.returns.safeParse(d, a);
2419
2419
  if (!f.success)
2420
- throw new H([s(d, f.error)]);
2420
+ throw new W([s(d, f.error)]);
2421
2421
  return f.data;
2422
2422
  });
2423
2423
  }
@@ -2455,7 +2455,7 @@ class Ze extends T {
2455
2455
  });
2456
2456
  }
2457
2457
  }
2458
- class ft extends T {
2458
+ class ft extends $ {
2459
2459
  get schema() {
2460
2460
  return this._def.getter();
2461
2461
  }
@@ -2469,7 +2469,7 @@ ft.create = (t, e) => new ft({
2469
2469
  typeName: x.ZodLazy,
2470
2470
  ...E(e)
2471
2471
  });
2472
- class ht extends T {
2472
+ class ht extends $ {
2473
2473
  _parse(e) {
2474
2474
  if (e.data !== this._def.value) {
2475
2475
  const n = this._getOrReturnCtx(e);
@@ -2497,7 +2497,7 @@ function Gr(t, e) {
2497
2497
  ...E(e)
2498
2498
  });
2499
2499
  }
2500
- class xe extends T {
2500
+ class xe extends $ {
2501
2501
  constructor() {
2502
2502
  super(...arguments), tt.set(this, void 0);
2503
2503
  }
@@ -2510,7 +2510,7 @@ class xe extends T {
2510
2510
  code: p.invalid_type
2511
2511
  }), _;
2512
2512
  }
2513
- if (Ut(this, tt) || Lr(this, tt, new Set(this._def.values)), !Ut(this, tt).has(e.data)) {
2513
+ if (Ut(this, tt) || Dr(this, tt, new Set(this._def.values)), !Ut(this, tt).has(e.data)) {
2514
2514
  const n = this._getOrReturnCtx(e), r = this._def.values;
2515
2515
  return b(n, {
2516
2516
  received: n.data,
@@ -2518,7 +2518,7 @@ class xe extends T {
2518
2518
  options: r
2519
2519
  }), _;
2520
2520
  }
2521
- return L(e.data);
2521
+ return D(e.data);
2522
2522
  }
2523
2523
  get options() {
2524
2524
  return this._def.values;
@@ -2556,7 +2556,7 @@ class xe extends T {
2556
2556
  }
2557
2557
  tt = /* @__PURE__ */ new WeakMap();
2558
2558
  xe.create = Gr;
2559
- class pt extends T {
2559
+ class pt extends $ {
2560
2560
  constructor() {
2561
2561
  super(...arguments), nt.set(this, void 0);
2562
2562
  }
@@ -2570,7 +2570,7 @@ class pt extends T {
2570
2570
  code: p.invalid_type
2571
2571
  }), _;
2572
2572
  }
2573
- if (Ut(this, nt) || Lr(this, nt, new Set(I.getValidEnumValues(this._def.values))), !Ut(this, nt).has(e.data)) {
2573
+ if (Ut(this, nt) || Dr(this, nt, new Set(I.getValidEnumValues(this._def.values))), !Ut(this, nt).has(e.data)) {
2574
2574
  const s = I.objectValues(n);
2575
2575
  return b(r, {
2576
2576
  received: r.data,
@@ -2578,7 +2578,7 @@ class pt extends T {
2578
2578
  options: s
2579
2579
  }), _;
2580
2580
  }
2581
- return L(e.data);
2581
+ return D(e.data);
2582
2582
  }
2583
2583
  get enum() {
2584
2584
  return this._def.values;
@@ -2590,7 +2590,7 @@ pt.create = (t, e) => new pt({
2590
2590
  typeName: x.ZodNativeEnum,
2591
2591
  ...E(e)
2592
2592
  });
2593
- class Ge extends T {
2593
+ class Ge extends $ {
2594
2594
  unwrap() {
2595
2595
  return this._def.type;
2596
2596
  }
@@ -2603,7 +2603,7 @@ class Ge extends T {
2603
2603
  received: n.parsedType
2604
2604
  }), _;
2605
2605
  const r = n.parsedType === g.promise ? n.data : Promise.resolve(n.data);
2606
- return L(r.then((s) => this._def.type.parseAsync(s, {
2606
+ return D(r.then((s) => this._def.type.parseAsync(s, {
2607
2607
  path: n.path,
2608
2608
  errorMap: n.common.contextualErrorMap
2609
2609
  })));
@@ -2614,7 +2614,7 @@ Ge.create = (t, e) => new Ge({
2614
2614
  typeName: x.ZodPromise,
2615
2615
  ...E(e)
2616
2616
  });
2617
- class ne extends T {
2617
+ class ne extends $ {
2618
2618
  innerType() {
2619
2619
  return this._def.schema;
2620
2620
  }
@@ -2703,9 +2703,9 @@ ne.createWithPreprocess = (t, e, n) => new ne({
2703
2703
  typeName: x.ZodEffects,
2704
2704
  ...E(n)
2705
2705
  });
2706
- class ae extends T {
2706
+ class ae extends $ {
2707
2707
  _parse(e) {
2708
- return this._getType(e) === g.undefined ? L(void 0) : this._def.innerType._parse(e);
2708
+ return this._getType(e) === g.undefined ? D(void 0) : this._def.innerType._parse(e);
2709
2709
  }
2710
2710
  unwrap() {
2711
2711
  return this._def.innerType;
@@ -2716,9 +2716,9 @@ ae.create = (t, e) => new ae({
2716
2716
  typeName: x.ZodOptional,
2717
2717
  ...E(e)
2718
2718
  });
2719
- class _e extends T {
2719
+ class _e extends $ {
2720
2720
  _parse(e) {
2721
- return this._getType(e) === g.null ? L(null) : this._def.innerType._parse(e);
2721
+ return this._getType(e) === g.null ? D(null) : this._def.innerType._parse(e);
2722
2722
  }
2723
2723
  unwrap() {
2724
2724
  return this._def.innerType;
@@ -2729,7 +2729,7 @@ _e.create = (t, e) => new _e({
2729
2729
  typeName: x.ZodNullable,
2730
2730
  ...E(e)
2731
2731
  });
2732
- class mt extends T {
2732
+ class mt extends $ {
2733
2733
  _parse(e) {
2734
2734
  const { ctx: n } = this._processInputParams(e);
2735
2735
  let r = n.data;
@@ -2749,7 +2749,7 @@ mt.create = (t, e) => new mt({
2749
2749
  defaultValue: typeof e.default == "function" ? e.default : () => e.default,
2750
2750
  ...E(e)
2751
2751
  });
2752
- class yt extends T {
2752
+ class yt extends $ {
2753
2753
  _parse(e) {
2754
2754
  const { ctx: n } = this._processInputParams(e), r = {
2755
2755
  ...n,
@@ -2768,7 +2768,7 @@ class yt extends T {
2768
2768
  status: "valid",
2769
2769
  value: a.status === "valid" ? a.value : this._def.catchValue({
2770
2770
  get error() {
2771
- return new H(r.common.issues);
2771
+ return new W(r.common.issues);
2772
2772
  },
2773
2773
  input: r.data
2774
2774
  })
@@ -2776,7 +2776,7 @@ class yt extends T {
2776
2776
  status: "valid",
2777
2777
  value: s.status === "valid" ? s.value : this._def.catchValue({
2778
2778
  get error() {
2779
- return new H(r.common.issues);
2779
+ return new W(r.common.issues);
2780
2780
  },
2781
2781
  input: r.data
2782
2782
  })
@@ -2792,7 +2792,7 @@ yt.create = (t, e) => new yt({
2792
2792
  catchValue: typeof e.catch == "function" ? e.catch : () => e.catch,
2793
2793
  ...E(e)
2794
2794
  });
2795
- class qt extends T {
2795
+ class qt extends $ {
2796
2796
  _parse(e) {
2797
2797
  if (this._getType(e) !== g.nan) {
2798
2798
  const r = this._getOrReturnCtx(e);
@@ -2809,8 +2809,8 @@ qt.create = (t) => new qt({
2809
2809
  typeName: x.ZodNaN,
2810
2810
  ...E(t)
2811
2811
  });
2812
- const Wa = Symbol("zod_brand");
2813
- class Hn extends T {
2812
+ const Ha = Symbol("zod_brand");
2813
+ class Wn extends $ {
2814
2814
  _parse(e) {
2815
2815
  const { ctx: n } = this._processInputParams(e), r = n.data;
2816
2816
  return this._def.type._parse({
@@ -2823,7 +2823,7 @@ class Hn extends T {
2823
2823
  return this._def.type;
2824
2824
  }
2825
2825
  }
2826
- class Bt extends T {
2826
+ class Bt extends $ {
2827
2827
  _parse(e) {
2828
2828
  const { status: n, ctx: r } = this._processInputParams(e);
2829
2829
  if (r.common.async)
@@ -2863,7 +2863,7 @@ class Bt extends T {
2863
2863
  });
2864
2864
  }
2865
2865
  }
2866
- class bt extends T {
2866
+ class bt extends $ {
2867
2867
  _parse(e) {
2868
2868
  const n = this._def.innerType._parse(e), r = (s) => (Ie(s) && (s.value = Object.freeze(s.value)), s);
2869
2869
  return at(n) ? n.then((s) => r(s)) : r(n);
@@ -2877,7 +2877,7 @@ bt.create = (t, e) => new bt({
2877
2877
  typeName: x.ZodReadonly,
2878
2878
  ...E(e)
2879
2879
  });
2880
- function Wr(t, e = {}, n) {
2880
+ function Hr(t, e = {}, n) {
2881
2881
  return t ? Ue.create().superRefine((r, s) => {
2882
2882
  var a, i;
2883
2883
  if (!t(r)) {
@@ -2886,7 +2886,7 @@ function Wr(t, e = {}, n) {
2886
2886
  }
2887
2887
  }) : Ue.create();
2888
2888
  }
2889
- const Ha = {
2889
+ const Wa = {
2890
2890
  object: j.lazycreate
2891
2891
  };
2892
2892
  var x;
@@ -2895,7 +2895,7 @@ var x;
2895
2895
  })(x || (x = {}));
2896
2896
  const qa = (t, e = {
2897
2897
  message: `Input not instance of ${t.name}`
2898
- }) => Wr((n) => n instanceof t, e), Hr = ee.create, qr = ve.create, Ka = qt.create, Ja = we.create, Kr = it.create, Ya = Se.create, Xa = Gt.create, Qa = ot.create, ei = ct.create, ti = Ue.create, ni = ke.create, ri = me.create, si = Wt.create, ai = te.create, ii = j.create, oi = j.strictCreate, ci = ut.create, ui = nn.create, di = dt.create, li = oe.create, fi = lt.create, hi = Ht.create, pi = Re.create, mi = Ze.create, yi = ft.create, bi = ht.create, gi = xe.create, vi = pt.create, wi = Ge.create, wr = ne.create, xi = ae.create, _i = _e.create, Pi = ne.createWithPreprocess, Ei = Bt.create, Ai = () => Hr().optional(), Ci = () => qr().optional(), Ti = () => Kr().optional(), $i = {
2898
+ }) => Hr((n) => n instanceof t, e), Wr = ee.create, qr = ve.create, Ka = qt.create, Ja = we.create, Kr = it.create, Ya = Se.create, Xa = Gt.create, Qa = ot.create, ei = ct.create, ti = Ue.create, ni = ke.create, ri = me.create, si = Ht.create, ai = te.create, ii = j.create, oi = j.strictCreate, ci = ut.create, ui = nn.create, di = dt.create, li = oe.create, fi = lt.create, hi = Wt.create, pi = Re.create, mi = Ze.create, yi = ft.create, bi = ht.create, gi = xe.create, vi = pt.create, wi = Ge.create, wr = ne.create, xi = ae.create, _i = _e.create, Pi = ne.createWithPreprocess, Ei = Bt.create, Ai = () => Wr().optional(), Ci = () => qr().optional(), $i = () => Kr().optional(), Ti = {
2899
2899
  string: (t) => ee.create({ ...t, coerce: !0 }),
2900
2900
  number: (t) => ve.create({ ...t, coerce: !0 }),
2901
2901
  boolean: (t) => it.create({
@@ -2909,16 +2909,16 @@ var l = /* @__PURE__ */ Object.freeze({
2909
2909
  __proto__: null,
2910
2910
  defaultErrorMap: Ve,
2911
2911
  setErrorMap: Pa,
2912
- getErrorMap: Dt,
2912
+ getErrorMap: Lt,
2913
2913
  makeIssue: Vt,
2914
2914
  EMPTY_PATH: Ea,
2915
2915
  addIssueToContext: b,
2916
2916
  ParseStatus: z,
2917
2917
  INVALID: _,
2918
2918
  DIRTY: Fe,
2919
- OK: L,
2920
- isAborted: Tn,
2921
- isDirty: $n,
2919
+ OK: D,
2920
+ isAborted: $n,
2921
+ isDirty: Tn,
2922
2922
  isValid: Ie,
2923
2923
  isAsync: at,
2924
2924
  get util() {
@@ -2929,7 +2929,7 @@ var l = /* @__PURE__ */ Object.freeze({
2929
2929
  },
2930
2930
  ZodParsedType: g,
2931
2931
  getParsedType: he,
2932
- ZodType: T,
2932
+ ZodType: $,
2933
2933
  datetimeRegex: Ur,
2934
2934
  ZodString: ee,
2935
2935
  ZodNumber: ve,
@@ -2942,7 +2942,7 @@ var l = /* @__PURE__ */ Object.freeze({
2942
2942
  ZodAny: Ue,
2943
2943
  ZodUnknown: ke,
2944
2944
  ZodNever: me,
2945
- ZodVoid: Wt,
2945
+ ZodVoid: Ht,
2946
2946
  ZodArray: te,
2947
2947
  ZodObject: j,
2948
2948
  ZodUnion: ut,
@@ -2950,7 +2950,7 @@ var l = /* @__PURE__ */ Object.freeze({
2950
2950
  ZodIntersection: dt,
2951
2951
  ZodTuple: oe,
2952
2952
  ZodRecord: lt,
2953
- ZodMap: Ht,
2953
+ ZodMap: Wt,
2954
2954
  ZodSet: Re,
2955
2955
  ZodFunction: Ze,
2956
2956
  ZodLazy: ft,
@@ -2965,18 +2965,18 @@ var l = /* @__PURE__ */ Object.freeze({
2965
2965
  ZodDefault: mt,
2966
2966
  ZodCatch: yt,
2967
2967
  ZodNaN: qt,
2968
- BRAND: Wa,
2969
- ZodBranded: Hn,
2968
+ BRAND: Ha,
2969
+ ZodBranded: Wn,
2970
2970
  ZodPipeline: Bt,
2971
2971
  ZodReadonly: bt,
2972
- custom: Wr,
2973
- Schema: T,
2974
- ZodSchema: T,
2975
- late: Ha,
2972
+ custom: Hr,
2973
+ Schema: $,
2974
+ ZodSchema: $,
2975
+ late: Wa,
2976
2976
  get ZodFirstPartyTypeKind() {
2977
2977
  return x;
2978
2978
  },
2979
- coerce: $i,
2979
+ coerce: Ti,
2980
2980
  any: ti,
2981
2981
  array: ai,
2982
2982
  bigint: Ja,
@@ -2998,7 +2998,7 @@ var l = /* @__PURE__ */ Object.freeze({
2998
2998
  nullable: _i,
2999
2999
  number: qr,
3000
3000
  object: ii,
3001
- oboolean: Ti,
3001
+ oboolean: $i,
3002
3002
  onumber: Ci,
3003
3003
  optional: xi,
3004
3004
  ostring: Ai,
@@ -3008,7 +3008,7 @@ var l = /* @__PURE__ */ Object.freeze({
3008
3008
  record: fi,
3009
3009
  set: pi,
3010
3010
  strictObject: oi,
3011
- string: Hr,
3011
+ string: Wr,
3012
3012
  symbol: Xa,
3013
3013
  transformer: wr,
3014
3014
  tuple: li,
@@ -3019,7 +3019,7 @@ var l = /* @__PURE__ */ Object.freeze({
3019
3019
  NEVER: ki,
3020
3020
  ZodIssueCode: p,
3021
3021
  quotelessJson: _a,
3022
- ZodError: H
3022
+ ZodError: W
3023
3023
  });
3024
3024
  const Jr = "2.22.1";
3025
3025
  let Xe = {
@@ -3154,11 +3154,11 @@ function qn(t, { dir: e = "left" } = {}) {
3154
3154
  r++;
3155
3155
  return n = e === "left" ? n.slice(r) : n.slice(0, n.length - r), typeof t == "string" ? (n.length === 1 && e === "right" && (n = `${n}0`), `0x${n.length % 2 === 1 ? `0${n}` : n}`) : n;
3156
3156
  }
3157
- const Mi = /* @__PURE__ */ new TextEncoder();
3157
+ const Oi = /* @__PURE__ */ new TextEncoder();
3158
3158
  function Kn(t, e = {}) {
3159
- return typeof t == "number" || typeof t == "bigint" ? ji(t, e) : typeof t == "boolean" ? Oi(t, e) : Pe(t) ? ye(t, e) : ts(t, e);
3159
+ return typeof t == "number" || typeof t == "bigint" ? ji(t, e) : typeof t == "boolean" ? Mi(t, e) : Pe(t) ? ye(t, e) : ts(t, e);
3160
3160
  }
3161
- function Oi(t, e = {}) {
3161
+ function Mi(t, e = {}) {
3162
3162
  const n = new Uint8Array(1);
3163
3163
  return n[0] = Number(t), typeof e.size == "number" ? (ce(n, { size: e.size }), Je(n, { size: e.size })) : n;
3164
3164
  }
@@ -3193,11 +3193,11 @@ function ye(t, e = {}) {
3193
3193
  return a;
3194
3194
  }
3195
3195
  function ji(t, e) {
3196
- const n = M(t, e);
3196
+ const n = O(t, e);
3197
3197
  return ye(n);
3198
3198
  }
3199
3199
  function ts(t, e = {}) {
3200
- const n = Mi.encode(t);
3200
+ const n = Oi.encode(t);
3201
3201
  return typeof e.size == "number" ? (ce(n, { size: e.size }), Je(n, { dir: "right", size: e.size })) : n;
3202
3202
  }
3203
3203
  function ce(t, { size: e }) {
@@ -3216,12 +3216,12 @@ function gt(t, e = {}) {
3216
3216
  const s = (t.length - 2) / 2, a = (1n << BigInt(s) * 8n - 1n) - 1n;
3217
3217
  return r <= a ? r : r - BigInt(`0x${"f".padStart(s * 2, "f")}`) - 1n;
3218
3218
  }
3219
- function We(t, e = {}) {
3219
+ function He(t, e = {}) {
3220
3220
  return Number(gt(t, e));
3221
3221
  }
3222
3222
  const Bi = /* @__PURE__ */ Array.from({ length: 256 }, (t, e) => e.toString(16).padStart(2, "0"));
3223
3223
  function Sn(t, e = {}) {
3224
- return typeof t == "number" || typeof t == "bigint" ? M(t, e) : typeof t == "string" ? Jn(t, e) : typeof t == "boolean" ? ns(t, e) : G(t, e);
3224
+ return typeof t == "number" || typeof t == "bigint" ? O(t, e) : typeof t == "string" ? Jn(t, e) : typeof t == "boolean" ? ns(t, e) : G(t, e);
3225
3225
  }
3226
3226
  function ns(t, e = {}) {
3227
3227
  const n = `0x${Number(t)}`;
@@ -3234,7 +3234,7 @@ function G(t, e = {}) {
3234
3234
  const r = `0x${n}`;
3235
3235
  return typeof e.size == "number" ? (ce(r, { size: e.size }), Je(r, { dir: "right", size: e.size })) : r;
3236
3236
  }
3237
- function M(t, e = {}) {
3237
+ function O(t, e = {}) {
3238
3238
  const { signed: n, size: r } = e, s = BigInt(t);
3239
3239
  let a;
3240
3240
  r ? n ? a = (1n << BigInt(r) * 8n - 1n) - 1n : a = 2n ** (BigInt(r) * 8n) - 1n : typeof t == "number" && (a = BigInt(Number.MAX_SAFE_INTEGER));
@@ -3257,7 +3257,7 @@ function Jn(t, e = {}) {
3257
3257
  const n = Ni.encode(t);
3258
3258
  return G(n, e);
3259
3259
  }
3260
- function He(t, { includeName: e = !1 } = {}) {
3260
+ function We(t, { includeName: e = !1 } = {}) {
3261
3261
  if (t.type !== "function" && t.type !== "event" && t.type !== "error")
3262
3262
  throw new Ki(t.type);
3263
3263
  return `${t.name}(${Yn(t.inputs, { includeName: e })})`;
@@ -3326,7 +3326,7 @@ class Xn extends y {
3326
3326
  });
3327
3327
  }
3328
3328
  }
3329
- class Li extends y {
3329
+ class Di extends y {
3330
3330
  constructor({ expectedLength: e, givenLength: n, type: r }) {
3331
3331
  super([
3332
3332
  `ABI encoding array length mismatch for type ${r}.`,
@@ -3336,7 +3336,7 @@ class Li extends y {
3336
3336
  `), { name: "AbiEncodingArrayLengthMismatchError" });
3337
3337
  }
3338
3338
  }
3339
- class Di extends y {
3339
+ class Li extends y {
3340
3340
  constructor({ expectedSize: e, value: n }) {
3341
3341
  super(`Size of bytes "${n}" (bytes${N(n)}) does not match expected size (bytes${e}).`, { name: "AbiEncodingBytesSizeMismatchError" });
3342
3342
  }
@@ -3398,8 +3398,8 @@ class Gi extends y {
3398
3398
  constructor(e, n) {
3399
3399
  super("Found ambiguous types in overloaded ABI items.", {
3400
3400
  metaMessages: [
3401
- `\`${e.type}\` in \`${He(e.abiItem)}\`, and`,
3402
- `\`${n.type}\` in \`${He(n.abiItem)}\``,
3401
+ `\`${e.type}\` in \`${We(e.abiItem)}\`, and`,
3402
+ `\`${n.type}\` in \`${We(n.abiItem)}\``,
3403
3403
  "",
3404
3404
  "These types encode differently and cannot be distinguished at runtime.",
3405
3405
  "Remove one of the ambiguous items in the ABI."
@@ -3408,7 +3408,7 @@ class Gi extends y {
3408
3408
  });
3409
3409
  }
3410
3410
  }
3411
- class Wi extends y {
3411
+ class Hi extends y {
3412
3412
  constructor(e, { docsPath: n }) {
3413
3413
  super([
3414
3414
  `Type "${e}" is not a valid encoding type.`,
@@ -3417,7 +3417,7 @@ class Wi extends y {
3417
3417
  `), { docsPath: n, name: "InvalidAbiEncodingType" });
3418
3418
  }
3419
3419
  }
3420
- class Hi extends y {
3420
+ class Wi extends y {
3421
3421
  constructor(e, { docsPath: n }) {
3422
3422
  super([
3423
3423
  `Type "${e}" is not a valid decoding type.`,
@@ -3595,7 +3595,7 @@ function Qn({ param: t, value: e }) {
3595
3595
  return so(e, { param: t });
3596
3596
  if (t.type === "string")
3597
3597
  return oo(e);
3598
- throw new Wi(t.type, {
3598
+ throw new Hi(t.type, {
3599
3599
  docsPath: "/docs/contract/encodeAbiParameters"
3600
3600
  });
3601
3601
  }
@@ -3609,7 +3609,7 @@ function er(t) {
3609
3609
  let s = 0;
3610
3610
  for (let a = 0; a < t.length; a++) {
3611
3611
  const { dynamic: i, encoded: o } = t[a];
3612
- i ? (n.push(M(e + s, { size: 32 })), r.push(o), s += N(o)) : n.push(o);
3612
+ i ? (n.push(O(e + s, { size: 32 })), r.push(o), s += N(o)) : n.push(o);
3613
3613
  }
3614
3614
  return qe([...n, ...r]);
3615
3615
  }
@@ -3623,7 +3623,7 @@ function ro(t, { length: e, param: n }) {
3623
3623
  if (!Array.isArray(t))
3624
3624
  throw new qi(t);
3625
3625
  if (!r && t.length !== e)
3626
- throw new Li({
3626
+ throw new Di({
3627
3627
  expectedLength: e,
3628
3628
  givenLength: t.length,
3629
3629
  type: `${n.type}[${e}]`
@@ -3637,7 +3637,7 @@ function ro(t, { length: e, param: n }) {
3637
3637
  if (r || s) {
3638
3638
  const i = er(a);
3639
3639
  if (r) {
3640
- const o = M(a.length, { size: 32 });
3640
+ const o = O(a.length, { size: 32 });
3641
3641
  return {
3642
3642
  dynamic: !0,
3643
3643
  encoded: a.length > 0 ? qe([o, i]) : o
@@ -3660,11 +3660,11 @@ function so(t, { param: e }) {
3660
3660
  size: Math.ceil((t.length - 2) / 2 / 32) * 32
3661
3661
  })), {
3662
3662
  dynamic: !0,
3663
- encoded: qe([ge(M(r, { size: 32 })), s])
3663
+ encoded: qe([ge(O(r, { size: 32 })), s])
3664
3664
  };
3665
3665
  }
3666
3666
  if (r !== Number.parseInt(n))
3667
- throw new Di({
3667
+ throw new Li({
3668
3668
  expectedSize: Number.parseInt(n),
3669
3669
  value: t
3670
3670
  });
@@ -3689,7 +3689,7 @@ function io(t, { signed: e, size: n = 256 }) {
3689
3689
  }
3690
3690
  return {
3691
3691
  dynamic: !1,
3692
- encoded: M(t, {
3692
+ encoded: O(t, {
3693
3693
  size: 32,
3694
3694
  signed: e
3695
3695
  })
@@ -3704,7 +3704,7 @@ function oo(t) {
3704
3704
  return {
3705
3705
  dynamic: !0,
3706
3706
  encoded: qe([
3707
- ge(M(N(e), { size: 32 })),
3707
+ ge(O(N(e), { size: 32 })),
3708
3708
  ...r
3709
3709
  ])
3710
3710
  };
@@ -3782,7 +3782,7 @@ async function lo({ hash: t, signature: e }) {
3782
3782
  const { r: c, s: d, v: f, yParity: h } = e, m = Number(h ?? f), v = Er(m);
3783
3783
  return new r.Signature(gt(c), gt(d)).addRecoveryBit(v);
3784
3784
  }
3785
- const i = Pe(e) ? e : Sn(e), o = We(`0x${i.slice(130)}`), u = Er(o);
3785
+ const i = Pe(e) ? e : Sn(e), o = He(`0x${i.slice(130)}`), u = Er(o);
3786
3786
  return r.Signature.fromCompact(i.substring(2, 130)).addRecoveryBit(u);
3787
3787
  })().recoverPublicKey(n.substring(2)).toHex(!1)}`;
3788
3788
  }
@@ -3983,9 +3983,9 @@ function vo(t) {
3983
3983
  const { chainId: e, contractAddress: n, nonce: r, to: s } = t, a = Nt(rn([
3984
3984
  "0x05",
3985
3985
  yo([
3986
- e ? M(e) : "0x",
3986
+ e ? O(e) : "0x",
3987
3987
  n,
3988
- r ? M(r) : "0x"
3988
+ r ? O(r) : "0x"
3989
3989
  ])
3990
3990
  ]));
3991
3991
  return s === "bytes" ? ye(a) : a;
@@ -4103,7 +4103,7 @@ Object.defineProperty(Yt, "nodeMessage", {
4103
4103
  writable: !0,
4104
4104
  value: /max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/
4105
4105
  });
4106
- class Mn extends y {
4106
+ class On extends y {
4107
4107
  constructor({ cause: e, maxFeePerGas: n } = {}) {
4108
4108
  super(`The fee cap (\`maxFeePerGas\`${n ? ` = ${U(n)}` : ""} gwei) cannot be lower than the block base fee.`, {
4109
4109
  cause: e,
@@ -4111,18 +4111,18 @@ class Mn extends y {
4111
4111
  });
4112
4112
  }
4113
4113
  }
4114
- Object.defineProperty(Mn, "nodeMessage", {
4114
+ Object.defineProperty(On, "nodeMessage", {
4115
4115
  enumerable: !0,
4116
4116
  configurable: !0,
4117
4117
  writable: !0,
4118
4118
  value: /max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/
4119
4119
  });
4120
- class On extends y {
4120
+ class Mn extends y {
4121
4121
  constructor({ cause: e, nonce: n } = {}) {
4122
4122
  super(`Nonce provided for the transaction ${n ? `(${n}) ` : ""}is higher than the next one expected.`, { cause: e, name: "NonceTooHighError" });
4123
4123
  }
4124
4124
  }
4125
- Object.defineProperty(On, "nodeMessage", {
4125
+ Object.defineProperty(Mn, "nodeMessage", {
4126
4126
  enumerable: !0,
4127
4127
  configurable: !0,
4128
4128
  writable: !0,
@@ -4286,7 +4286,7 @@ class Co extends y {
4286
4286
  });
4287
4287
  }
4288
4288
  }
4289
- class To extends y {
4289
+ class $o extends y {
4290
4290
  constructor(e, { account: n, docsPath: r, chain: s, data: a, gas: i, gasPrice: o, maxFeePerGas: u, maxPriorityFeePerGas: c, nonce: d, to: f, value: h }) {
4291
4291
  var v;
4292
4292
  const m = Ft({
@@ -4318,7 +4318,7 @@ class To extends y {
4318
4318
  }), this.cause = e;
4319
4319
  }
4320
4320
  }
4321
- const cn = (t, e, n) => JSON.stringify(t, (r, s) => typeof s == "bigint" ? s.toString() : s, n), $o = (t) => t, ms = (t) => t;
4321
+ const cn = (t, e, n) => JSON.stringify(t, (r, s) => typeof s == "bigint" ? s.toString() : s, n), To = (t) => t, ms = (t) => t;
4322
4322
  class ys extends y {
4323
4323
  constructor({ body: e, cause: n, details: r, headers: s, status: a, url: i }) {
4324
4324
  super("HTTP request failed.", {
@@ -4374,7 +4374,7 @@ class bs extends y {
4374
4374
  }
4375
4375
  }
4376
4376
  const ko = -1;
4377
- class W extends y {
4377
+ class H extends y {
4378
4378
  constructor(e, { code: n, docsPath: r, metaMessages: s, name: a, shortMessage: i }) {
4379
4379
  super(i, {
4380
4380
  cause: e,
@@ -4389,7 +4389,7 @@ class W extends y {
4389
4389
  }), this.name = a || e.name, this.code = e instanceof bs ? e.code : n ?? ko;
4390
4390
  }
4391
4391
  }
4392
- class Ye extends W {
4392
+ class Ye extends H {
4393
4393
  constructor(e, n) {
4394
4394
  super(e, n), Object.defineProperty(this, "data", {
4395
4395
  enumerable: !0,
@@ -4399,7 +4399,7 @@ class Ye extends W {
4399
4399
  }), this.data = n.data;
4400
4400
  }
4401
4401
  }
4402
- class wt extends W {
4402
+ class wt extends H {
4403
4403
  constructor(e) {
4404
4404
  super(e, {
4405
4405
  code: wt.code,
@@ -4414,7 +4414,7 @@ Object.defineProperty(wt, "code", {
4414
4414
  writable: !0,
4415
4415
  value: -32700
4416
4416
  });
4417
- class xt extends W {
4417
+ class xt extends H {
4418
4418
  constructor(e) {
4419
4419
  super(e, {
4420
4420
  code: xt.code,
@@ -4429,7 +4429,7 @@ Object.defineProperty(xt, "code", {
4429
4429
  writable: !0,
4430
4430
  value: -32600
4431
4431
  });
4432
- class _t extends W {
4432
+ class _t extends H {
4433
4433
  constructor(e, { method: n } = {}) {
4434
4434
  super(e, {
4435
4435
  code: _t.code,
@@ -4444,7 +4444,7 @@ Object.defineProperty(_t, "code", {
4444
4444
  writable: !0,
4445
4445
  value: -32601
4446
4446
  });
4447
- class Pt extends W {
4447
+ class Pt extends H {
4448
4448
  constructor(e) {
4449
4449
  super(e, {
4450
4450
  code: Pt.code,
@@ -4463,22 +4463,22 @@ Object.defineProperty(Pt, "code", {
4463
4463
  writable: !0,
4464
4464
  value: -32602
4465
4465
  });
4466
- class Me extends W {
4466
+ class Oe extends H {
4467
4467
  constructor(e) {
4468
4468
  super(e, {
4469
- code: Me.code,
4469
+ code: Oe.code,
4470
4470
  name: "InternalRpcError",
4471
4471
  shortMessage: "An internal error was received."
4472
4472
  });
4473
4473
  }
4474
4474
  }
4475
- Object.defineProperty(Me, "code", {
4475
+ Object.defineProperty(Oe, "code", {
4476
4476
  enumerable: !0,
4477
4477
  configurable: !0,
4478
4478
  writable: !0,
4479
4479
  value: -32603
4480
4480
  });
4481
- class Et extends W {
4481
+ class Et extends H {
4482
4482
  constructor(e) {
4483
4483
  super(e, {
4484
4484
  code: Et.code,
@@ -4497,7 +4497,7 @@ Object.defineProperty(Et, "code", {
4497
4497
  writable: !0,
4498
4498
  value: -32e3
4499
4499
  });
4500
- class At extends W {
4500
+ class At extends H {
4501
4501
  constructor(e) {
4502
4502
  super(e, {
4503
4503
  code: At.code,
@@ -4517,7 +4517,7 @@ Object.defineProperty(At, "code", {
4517
4517
  writable: !0,
4518
4518
  value: -32001
4519
4519
  });
4520
- class Ct extends W {
4520
+ class Ct extends H {
4521
4521
  constructor(e) {
4522
4522
  super(e, {
4523
4523
  code: Ct.code,
@@ -4532,37 +4532,37 @@ Object.defineProperty(Ct, "code", {
4532
4532
  writable: !0,
4533
4533
  value: -32002
4534
4534
  });
4535
- class Tt extends W {
4535
+ class $t extends H {
4536
4536
  constructor(e) {
4537
4537
  super(e, {
4538
- code: Tt.code,
4538
+ code: $t.code,
4539
4539
  name: "TransactionRejectedRpcError",
4540
4540
  shortMessage: "Transaction creation failed."
4541
4541
  });
4542
4542
  }
4543
4543
  }
4544
- Object.defineProperty(Tt, "code", {
4544
+ Object.defineProperty($t, "code", {
4545
4545
  enumerable: !0,
4546
4546
  configurable: !0,
4547
4547
  writable: !0,
4548
4548
  value: -32003
4549
4549
  });
4550
- class $t extends W {
4550
+ class Tt extends H {
4551
4551
  constructor(e, { method: n } = {}) {
4552
4552
  super(e, {
4553
- code: $t.code,
4553
+ code: Tt.code,
4554
4554
  name: "MethodNotSupportedRpcError",
4555
4555
  shortMessage: `Method${n ? ` "${n}"` : ""} is not implemented.`
4556
4556
  });
4557
4557
  }
4558
4558
  }
4559
- Object.defineProperty($t, "code", {
4559
+ Object.defineProperty(Tt, "code", {
4560
4560
  enumerable: !0,
4561
4561
  configurable: !0,
4562
4562
  writable: !0,
4563
4563
  value: -32004
4564
4564
  });
4565
- class Ke extends W {
4565
+ class Ke extends H {
4566
4566
  constructor(e) {
4567
4567
  super(e, {
4568
4568
  code: Ke.code,
@@ -4577,7 +4577,7 @@ Object.defineProperty(Ke, "code", {
4577
4577
  writable: !0,
4578
4578
  value: -32005
4579
4579
  });
4580
- class kt extends W {
4580
+ class kt extends H {
4581
4581
  constructor(e) {
4582
4582
  super(e, {
4583
4583
  code: kt.code,
@@ -4592,16 +4592,16 @@ Object.defineProperty(kt, "code", {
4592
4592
  writable: !0,
4593
4593
  value: -32006
4594
4594
  });
4595
- class Le extends Ye {
4595
+ class De extends Ye {
4596
4596
  constructor(e) {
4597
4597
  super(e, {
4598
- code: Le.code,
4598
+ code: De.code,
4599
4599
  name: "UserRejectedRequestError",
4600
4600
  shortMessage: "User rejected the request."
4601
4601
  });
4602
4602
  }
4603
4603
  }
4604
- Object.defineProperty(Le, "code", {
4604
+ Object.defineProperty(De, "code", {
4605
4605
  enumerable: !0,
4606
4606
  configurable: !0,
4607
4607
  writable: !0,
@@ -4652,37 +4652,37 @@ Object.defineProperty(Rt, "code", {
4652
4652
  writable: !0,
4653
4653
  value: 4900
4654
4654
  });
4655
- class Mt extends Ye {
4655
+ class Ot extends Ye {
4656
4656
  constructor(e) {
4657
4657
  super(e, {
4658
- code: Mt.code,
4658
+ code: Ot.code,
4659
4659
  name: "ChainDisconnectedError",
4660
4660
  shortMessage: "The Provider is not connected to the requested chain."
4661
4661
  });
4662
4662
  }
4663
4663
  }
4664
- Object.defineProperty(Mt, "code", {
4664
+ Object.defineProperty(Ot, "code", {
4665
4665
  enumerable: !0,
4666
4666
  configurable: !0,
4667
4667
  writable: !0,
4668
4668
  value: 4901
4669
4669
  });
4670
- class Ot extends Ye {
4670
+ class Mt extends Ye {
4671
4671
  constructor(e) {
4672
4672
  super(e, {
4673
- code: Ot.code,
4673
+ code: Mt.code,
4674
4674
  name: "SwitchChainError",
4675
4675
  shortMessage: "An error occurred when attempting to switch chain."
4676
4676
  });
4677
4677
  }
4678
4678
  }
4679
- Object.defineProperty(Ot, "code", {
4679
+ Object.defineProperty(Mt, "code", {
4680
4680
  enumerable: !0,
4681
4681
  configurable: !0,
4682
4682
  writable: !0,
4683
4683
  value: 4902
4684
4684
  });
4685
- class Io extends W {
4685
+ class Io extends H {
4686
4686
  constructor(e) {
4687
4687
  super(e, {
4688
4688
  name: "UnknownRpcError",
@@ -4701,10 +4701,10 @@ function sr(t, e) {
4701
4701
  }) : Yt.nodeMessage.test(n) ? new Yt({
4702
4702
  cause: t,
4703
4703
  maxFeePerGas: e == null ? void 0 : e.maxFeePerGas
4704
- }) : Mn.nodeMessage.test(n) ? new Mn({
4704
+ }) : On.nodeMessage.test(n) ? new On({
4705
4705
  cause: t,
4706
4706
  maxFeePerGas: e == null ? void 0 : e.maxFeePerGas
4707
- }) : On.nodeMessage.test(n) ? new On({ cause: t, nonce: e == null ? void 0 : e.nonce }) : jn.nodeMessage.test(n) ? new jn({ cause: t, nonce: e == null ? void 0 : e.nonce }) : Bn.nodeMessage.test(n) ? new Bn({ cause: t, nonce: e == null ? void 0 : e.nonce }) : Nn.nodeMessage.test(n) ? new Nn({ cause: t }) : Fn.nodeMessage.test(n) ? new Fn({ cause: t, gas: e == null ? void 0 : e.gas }) : zn.nodeMessage.test(n) ? new zn({ cause: t, gas: e == null ? void 0 : e.gas }) : Zn.nodeMessage.test(n) ? new Zn({ cause: t }) : Xt.nodeMessage.test(n) ? new Xt({
4707
+ }) : Mn.nodeMessage.test(n) ? new Mn({ cause: t, nonce: e == null ? void 0 : e.nonce }) : jn.nodeMessage.test(n) ? new jn({ cause: t, nonce: e == null ? void 0 : e.nonce }) : Bn.nodeMessage.test(n) ? new Bn({ cause: t, nonce: e == null ? void 0 : e.nonce }) : Nn.nodeMessage.test(n) ? new Nn({ cause: t }) : Fn.nodeMessage.test(n) ? new Fn({ cause: t, gas: e == null ? void 0 : e.gas }) : zn.nodeMessage.test(n) ? new zn({ cause: t, gas: e == null ? void 0 : e.gas }) : Zn.nodeMessage.test(n) ? new Zn({ cause: t }) : Xt.nodeMessage.test(n) ? new Xt({
4708
4708
  cause: t,
4709
4709
  maxFeePerGas: e == null ? void 0 : e.maxFeePerGas,
4710
4710
  maxPriorityFeePerGas: e == null ? void 0 : e.maxPriorityFeePerGas
@@ -4717,7 +4717,7 @@ function So(t, { docsPath: e, ...n }) {
4717
4717
  const s = sr(t, n);
4718
4718
  return s instanceof on ? t : s;
4719
4719
  })();
4720
- return new To(r, {
4720
+ return new $o(r, {
4721
4721
  docsPath: e,
4722
4722
  ...n
4723
4723
  });
@@ -4743,17 +4743,17 @@ const Ro = {
4743
4743
  };
4744
4744
  function ir(t) {
4745
4745
  const e = {};
4746
- return typeof t.authorizationList < "u" && (e.authorizationList = Mo(t.authorizationList)), typeof t.accessList < "u" && (e.accessList = t.accessList), typeof t.blobVersionedHashes < "u" && (e.blobVersionedHashes = t.blobVersionedHashes), typeof t.blobs < "u" && (typeof t.blobs[0] != "string" ? e.blobs = t.blobs.map((n) => G(n)) : e.blobs = t.blobs), typeof t.data < "u" && (e.data = t.data), typeof t.from < "u" && (e.from = t.from), typeof t.gas < "u" && (e.gas = M(t.gas)), typeof t.gasPrice < "u" && (e.gasPrice = M(t.gasPrice)), typeof t.maxFeePerBlobGas < "u" && (e.maxFeePerBlobGas = M(t.maxFeePerBlobGas)), typeof t.maxFeePerGas < "u" && (e.maxFeePerGas = M(t.maxFeePerGas)), typeof t.maxPriorityFeePerGas < "u" && (e.maxPriorityFeePerGas = M(t.maxPriorityFeePerGas)), typeof t.nonce < "u" && (e.nonce = M(t.nonce)), typeof t.to < "u" && (e.to = t.to), typeof t.type < "u" && (e.type = Ro[t.type]), typeof t.value < "u" && (e.value = M(t.value)), e;
4746
+ return typeof t.authorizationList < "u" && (e.authorizationList = Oo(t.authorizationList)), typeof t.accessList < "u" && (e.accessList = t.accessList), typeof t.blobVersionedHashes < "u" && (e.blobVersionedHashes = t.blobVersionedHashes), typeof t.blobs < "u" && (typeof t.blobs[0] != "string" ? e.blobs = t.blobs.map((n) => G(n)) : e.blobs = t.blobs), typeof t.data < "u" && (e.data = t.data), typeof t.from < "u" && (e.from = t.from), typeof t.gas < "u" && (e.gas = O(t.gas)), typeof t.gasPrice < "u" && (e.gasPrice = O(t.gasPrice)), typeof t.maxFeePerBlobGas < "u" && (e.maxFeePerBlobGas = O(t.maxFeePerBlobGas)), typeof t.maxFeePerGas < "u" && (e.maxFeePerGas = O(t.maxFeePerGas)), typeof t.maxPriorityFeePerGas < "u" && (e.maxPriorityFeePerGas = O(t.maxPriorityFeePerGas)), typeof t.nonce < "u" && (e.nonce = O(t.nonce)), typeof t.to < "u" && (e.to = t.to), typeof t.type < "u" && (e.type = Ro[t.type]), typeof t.value < "u" && (e.value = O(t.value)), e;
4747
4747
  }
4748
- function Mo(t) {
4748
+ function Oo(t) {
4749
4749
  return t.map((e) => ({
4750
4750
  address: e.contractAddress,
4751
4751
  r: e.r,
4752
4752
  s: e.s,
4753
- chainId: M(e.chainId),
4754
- nonce: M(e.nonce),
4755
- ...typeof e.yParity < "u" ? { yParity: M(e.yParity) } : {},
4756
- ...typeof e.v < "u" && typeof e.yParity > "u" ? { v: M(e.v) } : {}
4753
+ chainId: O(e.chainId),
4754
+ nonce: O(e.nonce),
4755
+ ...typeof e.yParity < "u" ? { yParity: O(e.yParity) } : {},
4756
+ ...typeof e.v < "u" && typeof e.yParity > "u" ? { v: O(e.v) } : {}
4757
4757
  }));
4758
4758
  }
4759
4759
  function Z(t, e, n) {
@@ -4763,7 +4763,7 @@ function Z(t, e, n) {
4763
4763
  const s = t[n];
4764
4764
  return typeof s == "function" ? s : (a) => e(t, a);
4765
4765
  }
4766
- const Oo = 2n ** 256n - 1n;
4766
+ const Mo = 2n ** 256n - 1n;
4767
4767
  function un(t) {
4768
4768
  const { account: e, gasPrice: n, maxFeePerGas: r, maxPriorityFeePerGas: s, to: a } = t, i = e ? ue(e) : void 0;
4769
4769
  if (i && !Ee(i.address))
@@ -4772,7 +4772,7 @@ function un(t) {
4772
4772
  throw new vt({ address: a });
4773
4773
  if (typeof n < "u" && (typeof r < "u" || typeof s < "u"))
4774
4774
  throw new Ao();
4775
- if (r && r > Oo)
4775
+ if (r && r > Mo)
4776
4776
  throw new Yt({ maxFeePerGas: r });
4777
4777
  if (s && r && s > r)
4778
4778
  throw new Xt({ maxFeePerGas: r, maxPriorityFeePerGas: s });
@@ -4781,7 +4781,7 @@ async function gs(t) {
4781
4781
  const e = await t.request({
4782
4782
  method: "eth_chainId"
4783
4783
  }, { dedupe: !0 });
4784
- return We(e);
4784
+ return He(e);
4785
4785
  }
4786
4786
  class jo extends y {
4787
4787
  constructor() {
@@ -4820,13 +4820,13 @@ function zo(t) {
4820
4820
  ...t,
4821
4821
  blockHash: t.blockHash ? t.blockHash : null,
4822
4822
  blockNumber: t.blockNumber ? BigInt(t.blockNumber) : null,
4823
- chainId: t.chainId ? We(t.chainId) : void 0,
4823
+ chainId: t.chainId ? He(t.chainId) : void 0,
4824
4824
  gas: t.gas ? BigInt(t.gas) : void 0,
4825
4825
  gasPrice: t.gasPrice ? BigInt(t.gasPrice) : void 0,
4826
4826
  maxFeePerBlobGas: t.maxFeePerBlobGas ? BigInt(t.maxFeePerBlobGas) : void 0,
4827
4827
  maxFeePerGas: t.maxFeePerGas ? BigInt(t.maxFeePerGas) : void 0,
4828
4828
  maxPriorityFeePerGas: t.maxPriorityFeePerGas ? BigInt(t.maxPriorityFeePerGas) : void 0,
4829
- nonce: t.nonce ? We(t.nonce) : void 0,
4829
+ nonce: t.nonce ? He(t.nonce) : void 0,
4830
4830
  to: t.to ? t.to : null,
4831
4831
  transactionIndex: t.transactionIndex ? Number(t.transactionIndex) : null,
4832
4832
  type: t.type ? Fo[t.type] : void 0,
@@ -4857,7 +4857,7 @@ function Zo(t) {
4857
4857
  yParity: Number(e.yParity)
4858
4858
  }));
4859
4859
  }
4860
- function Lo(t) {
4860
+ function Do(t) {
4861
4861
  const e = (t.transactions ?? []).map((n) => typeof n == "string" ? n : zo(n));
4862
4862
  return {
4863
4863
  ...t,
@@ -4879,7 +4879,7 @@ function Lo(t) {
4879
4879
  }
4880
4880
  async function Qt(t, { blockHash: e, blockNumber: n, blockTag: r, includeTransactions: s } = {}) {
4881
4881
  var d, f, h;
4882
- const a = r ?? "latest", i = s ?? !1, o = n !== void 0 ? M(n) : void 0;
4882
+ const a = r ?? "latest", i = s ?? !1, o = n !== void 0 ? O(n) : void 0;
4883
4883
  let u = null;
4884
4884
  if (e ? u = await t.request({
4885
4885
  method: "eth_getBlockByHash",
@@ -4889,7 +4889,7 @@ async function Qt(t, { blockHash: e, blockNumber: n, blockTag: r, includeTransac
4889
4889
  params: [o || a, i]
4890
4890
  }, { dedupe: !!o }), !u)
4891
4891
  throw new No({ blockHash: e, blockNumber: n });
4892
- return (((h = (f = (d = t.chain) == null ? void 0 : d.formatters) == null ? void 0 : f.block) == null ? void 0 : h.format) || Lo)(u);
4892
+ return (((h = (f = (d = t.chain) == null ? void 0 : d.formatters) == null ? void 0 : f.block) == null ? void 0 : h.format) || Do)(u);
4893
4893
  }
4894
4894
  async function vs(t) {
4895
4895
  const e = await t.request({
@@ -4897,7 +4897,7 @@ async function vs(t) {
4897
4897
  });
4898
4898
  return BigInt(e);
4899
4899
  }
4900
- async function Do(t, e) {
4900
+ async function Lo(t, e) {
4901
4901
  var a, i;
4902
4902
  const { block: n, chain: r = t.chain, request: s } = e || {};
4903
4903
  try {
@@ -4932,12 +4932,12 @@ async function Do(t, e) {
4932
4932
  async function Cr(t, e) {
4933
4933
  var h, m;
4934
4934
  const { block: n, chain: r = t.chain, request: s, type: a = "eip1559" } = e || {}, i = await (async () => {
4935
- var v, $;
4935
+ var v, T;
4936
4936
  return typeof ((v = r == null ? void 0 : r.fees) == null ? void 0 : v.baseFeeMultiplier) == "function" ? r.fees.baseFeeMultiplier({
4937
4937
  block: n,
4938
4938
  client: t,
4939
4939
  request: s
4940
- }) : (($ = r == null ? void 0 : r.fees) == null ? void 0 : $.baseFeeMultiplier) ?? 1.2;
4940
+ }) : ((T = r == null ? void 0 : r.fees) == null ? void 0 : T.baseFeeMultiplier) ?? 1.2;
4941
4941
  })();
4942
4942
  if (i < 1)
4943
4943
  throw new jo();
@@ -4956,13 +4956,13 @@ async function Cr(t, e) {
4956
4956
  if (a === "eip1559") {
4957
4957
  if (typeof d.baseFeePerGas != "bigint")
4958
4958
  throw new or();
4959
- const v = typeof (s == null ? void 0 : s.maxPriorityFeePerGas) == "bigint" ? s.maxPriorityFeePerGas : await Do(t, {
4959
+ const v = typeof (s == null ? void 0 : s.maxPriorityFeePerGas) == "bigint" ? s.maxPriorityFeePerGas : await Lo(t, {
4960
4960
  block: d,
4961
4961
  chain: r,
4962
4962
  request: s
4963
- }), $ = c(d.baseFeePerGas);
4963
+ }), T = c(d.baseFeePerGas);
4964
4964
  return {
4965
- maxFeePerGas: (s == null ? void 0 : s.maxFeePerGas) ?? $ + v,
4965
+ maxFeePerGas: (s == null ? void 0 : s.maxFeePerGas) ?? T + v,
4966
4966
  maxPriorityFeePerGas: v
4967
4967
  };
4968
4968
  }
@@ -5018,18 +5018,18 @@ class Go extends y {
5018
5018
  });
5019
5019
  }
5020
5020
  }
5021
- class Wo extends y {
5021
+ class Ho extends y {
5022
5022
  constructor() {
5023
5023
  super("state and stateDiff are set on the same account.", {
5024
5024
  name: "StateAssignmentConflictError"
5025
5025
  });
5026
5026
  }
5027
5027
  }
5028
- function Tr(t) {
5028
+ function $r(t) {
5029
5029
  return t.reduce((e, { slot: n, value: r }) => `${e} ${n}: ${r}
5030
5030
  `, "");
5031
5031
  }
5032
- function Ho(t) {
5032
+ function Wo(t) {
5033
5033
  return t.reduce((e, { address: n, ...r }) => {
5034
5034
  let s = `${e} ${n}:
5035
5035
  `;
@@ -5037,12 +5037,12 @@ function Ho(t) {
5037
5037
  `), r.balance && (s += ` balance: ${r.balance}
5038
5038
  `), r.code && (s += ` code: ${r.code}
5039
5039
  `), r.state && (s += ` state:
5040
- `, s += Tr(r.state)), r.stateDiff && (s += ` stateDiff:
5041
- `, s += Tr(r.stateDiff)), s;
5040
+ `, s += $r(r.state)), r.stateDiff && (s += ` stateDiff:
5041
+ `, s += $r(r.stateDiff)), s;
5042
5042
  }, ` State Override:
5043
5043
  `).slice(0, -1);
5044
5044
  }
5045
- function $r(t) {
5045
+ function Tr(t) {
5046
5046
  if (!(!t || t.length === 0))
5047
5047
  return t.reduce((e, { slot: n, value: r }) => {
5048
5048
  if (n.length !== 66)
@@ -5062,10 +5062,10 @@ function $r(t) {
5062
5062
  }
5063
5063
  function qo(t) {
5064
5064
  const { balance: e, nonce: n, state: r, stateDiff: s, code: a } = t, i = {};
5065
- if (a !== void 0 && (i.code = a), e !== void 0 && (i.balance = M(e)), n !== void 0 && (i.nonce = M(n)), r !== void 0 && (i.state = $r(r)), s !== void 0) {
5065
+ if (a !== void 0 && (i.code = a), e !== void 0 && (i.balance = O(e)), n !== void 0 && (i.nonce = O(n)), r !== void 0 && (i.state = Tr(r)), s !== void 0) {
5066
5066
  if (i.state)
5067
- throw new Wo();
5068
- i.stateDiff = $r(s);
5067
+ throw new Ho();
5068
+ i.stateDiff = Tr(s);
5069
5069
  }
5070
5070
  return i;
5071
5071
  }
@@ -5083,7 +5083,7 @@ function ws(t) {
5083
5083
  return e;
5084
5084
  }
5085
5085
  async function Ko(t, { address: e, blockNumber: n, blockTag: r = "latest" }) {
5086
- const s = n ? M(n) : void 0, a = await t.request({
5086
+ const s = n ? O(n) : void 0, a = await t.request({
5087
5087
  method: "eth_getBalance",
5088
5088
  params: [e, s || r]
5089
5089
  });
@@ -5094,20 +5094,20 @@ async function Jo(t, e) {
5094
5094
  const { account: n = t.account } = e, r = n ? ue(n) : void 0;
5095
5095
  try {
5096
5096
  let de = function(V) {
5097
- const { block: X, request: J, rpcStateOverride: Te } = V;
5097
+ const { block: X, request: J, rpcStateOverride: $e } = V;
5098
5098
  return t.request({
5099
5099
  method: "eth_estimateGas",
5100
- params: Te ? [J, X ?? "latest", Te] : X ? [J, X] : [J]
5100
+ params: $e ? [J, X ?? "latest", $e] : X ? [J, X] : [J]
5101
5101
  });
5102
5102
  };
5103
- const { accessList: o, authorizationList: u, blobs: c, blobVersionedHashes: d, blockNumber: f, blockTag: h, data: m, gas: v, gasPrice: $, maxFeePerBlobGas: P, maxFeePerGas: S, maxPriorityFeePerGas: R, nonce: A, value: O, stateOverride: q, ...F } = await Cs(t, {
5103
+ const { accessList: o, authorizationList: u, blobs: c, blobVersionedHashes: d, blockNumber: f, blockTag: h, data: m, gas: v, gasPrice: T, maxFeePerBlobGas: P, maxFeePerGas: S, maxPriorityFeePerGas: R, nonce: A, value: M, stateOverride: q, ...F } = await Cs(t, {
5104
5104
  ...e,
5105
5105
  parameters: (
5106
5106
  // Some RPC Providers do not compute versioned hashes from blobs. We will need
5107
5107
  // to compute them.
5108
5108
  (r == null ? void 0 : r.type) === "local" ? void 0 : ["blobVersionedHashes"]
5109
5109
  )
5110
- }), re = (f ? M(f) : void 0) || h, C = ws(q), B = await (async () => {
5110
+ }), re = (f ? O(f) : void 0) || h, C = ws(q), B = await (async () => {
5111
5111
  if (F.to)
5112
5112
  return F.to;
5113
5113
  if (u && u.length > 0)
@@ -5128,31 +5128,31 @@ async function Jo(t, e) {
5128
5128
  blobVersionedHashes: d,
5129
5129
  data: m,
5130
5130
  gas: v,
5131
- gasPrice: $,
5131
+ gasPrice: T,
5132
5132
  maxFeePerBlobGas: P,
5133
5133
  maxFeePerGas: S,
5134
5134
  maxPriorityFeePerGas: R,
5135
5135
  nonce: A,
5136
5136
  to: B,
5137
- value: O
5137
+ value: M
5138
5138
  });
5139
5139
  let se = BigInt(await de({ block: re, request: K, rpcStateOverride: C }));
5140
5140
  if (u) {
5141
5141
  const V = await Ko(t, { address: K.from }), X = await Promise.all(u.map(async (J) => {
5142
- const { contractAddress: Te } = J, Be = await de({
5142
+ const { contractAddress: $e } = J, Be = await de({
5143
5143
  block: re,
5144
5144
  request: {
5145
5145
  authorizationList: void 0,
5146
5146
  data: m,
5147
5147
  from: r == null ? void 0 : r.address,
5148
- to: Te,
5149
- value: M(V)
5148
+ to: $e,
5149
+ value: O(V)
5150
5150
  },
5151
5151
  rpcStateOverride: C
5152
5152
  }).catch(() => 100000n);
5153
5153
  return 2n * BigInt(Be);
5154
5154
  }));
5155
- se += X.reduce((J, Te) => J + Te, 0n);
5155
+ se += X.reduce((J, $e) => J + $e, 0n);
5156
5156
  }
5157
5157
  return se;
5158
5158
  } catch (o) {
@@ -5166,9 +5166,9 @@ async function Jo(t, e) {
5166
5166
  async function Yo(t, { address: e, blockTag: n = "latest", blockNumber: r }) {
5167
5167
  const s = await t.request({
5168
5168
  method: "eth_getTransactionCount",
5169
- params: [e, r ? M(r) : n]
5169
+ params: [e, r ? O(r) : n]
5170
5170
  }, { dedupe: !!r });
5171
- return We(s);
5171
+ return He(s);
5172
5172
  }
5173
5173
  function xs(t) {
5174
5174
  const { kzg: e } = t, n = t.to ?? (typeof t.blobs[0] == "string" ? "hex" : "bytes"), r = typeof t.blobs[0] == "string" ? t.blobs.map((a) => ye(a)) : t.blobs, s = [];
@@ -5280,9 +5280,9 @@ async function Cs(t, e) {
5280
5280
  async function v() {
5281
5281
  return m || (m = await Z(t, Qt, "getBlock")({ blockTag: "latest" }), m);
5282
5282
  }
5283
- let $;
5283
+ let T;
5284
5284
  async function P() {
5285
- return $ || (s ? s.id : typeof e.chainId < "u" ? e.chainId : ($ = await Z(t, gs, "getChainId")({}), $));
5285
+ return T || (s ? s.id : typeof e.chainId < "u" ? e.chainId : (T = await Z(t, gs, "getChainId")({}), T));
5286
5286
  }
5287
5287
  if ((c.includes("blobVersionedHashes") || c.includes("sidecars")) && r && i) {
5288
5288
  const S = xs({ blobs: r, kzg: i });
@@ -5361,8 +5361,8 @@ async function ic(t, { serializedTransaction: e }) {
5361
5361
  }
5362
5362
  const vn = new sn(128);
5363
5363
  async function oc(t, e) {
5364
- var S, R, A, O;
5365
- const { account: n = t.account, chain: r = t.chain, accessList: s, authorizationList: a, blobs: i, data: o, gas: u, gasPrice: c, maxFeePerBlobGas: d, maxFeePerGas: f, maxPriorityFeePerGas: h, nonce: m, value: v, ...$ } = e;
5364
+ var S, R, A, M;
5365
+ const { account: n = t.account, chain: r = t.chain, accessList: s, authorizationList: a, blobs: i, data: o, gas: u, gasPrice: c, maxFeePerBlobGas: d, maxFeePerGas: f, maxPriorityFeePerGas: h, nonce: m, value: v, ...T } = e;
5366
5366
  if (typeof n > "u")
5367
5367
  throw new us({
5368
5368
  docsPath: "/docs/actions/wallet/sendTransaction"
@@ -5388,7 +5388,7 @@ async function oc(t, e) {
5388
5388
  }));
5389
5389
  const Y = (A = (R = (S = t.chain) == null ? void 0 : S.formatters) == null ? void 0 : R.transactionRequest) == null ? void 0 : A.format, C = (Y || ir)({
5390
5390
  // Pick out extra data that might exist on the chain's transaction request type.
5391
- ...ar($, { format: Y }),
5391
+ ...ar(T, { format: Y }),
5392
5392
  accessList: s,
5393
5393
  authorizationList: a,
5394
5394
  blobs: i,
@@ -5441,9 +5441,9 @@ async function oc(t, e) {
5441
5441
  nonceManager: P.nonceManager,
5442
5442
  parameters: [...As, "sidecars"],
5443
5443
  value: v,
5444
- ...$,
5444
+ ...T,
5445
5445
  to: q
5446
- }), Y = (O = r == null ? void 0 : r.serializers) == null ? void 0 : O.transaction, re = await P.signTransaction(F, {
5446
+ }), Y = (M = r == null ? void 0 : r.serializers) == null ? void 0 : M.transaction, re = await P.signTransaction(F, {
5447
5447
  serializer: Y
5448
5448
  });
5449
5449
  return await Z(t, ic, "sendRawTransaction")({
@@ -5525,13 +5525,13 @@ function uc(t, e = {}) {
5525
5525
  function pe(t, e = {}) {
5526
5526
  typeof e.size < "u" && ce(t, { size: e.size });
5527
5527
  const n = G(t, e);
5528
- return We(n, e);
5528
+ return He(n, e);
5529
5529
  }
5530
5530
  function dc(t, e = {}) {
5531
5531
  let n = t;
5532
5532
  return typeof e.size < "u" && (ce(n, { size: e.size }), n = qn(n, { dir: "right" })), new TextDecoder().decode(n);
5533
5533
  }
5534
- function Ts(t, e) {
5534
+ function $s(t, e) {
5535
5535
  const n = typeof e == "string" ? ye(e) : e, r = nr(n);
5536
5536
  if (N(n) === 0 && t.length > 0)
5537
5537
  throw new Xn();
@@ -5546,14 +5546,14 @@ function Ts(t, e) {
5546
5546
  for (let i = 0; i < t.length; ++i) {
5547
5547
  const o = t[i];
5548
5548
  r.setPosition(s);
5549
- const [u, c] = De(r, o, {
5549
+ const [u, c] = Le(r, o, {
5550
5550
  staticPosition: 0
5551
5551
  });
5552
5552
  s += c, a.push(u);
5553
5553
  }
5554
5554
  return a;
5555
5555
  }
5556
- function De(t, e, { staticPosition: n }) {
5556
+ function Le(t, e, { staticPosition: n }) {
5557
5557
  const r = tr(e.type);
5558
5558
  if (r) {
5559
5559
  const [s, a] = r;
@@ -5571,36 +5571,36 @@ function De(t, e, { staticPosition: n }) {
5571
5571
  return mc(t, e);
5572
5572
  if (e.type === "string")
5573
5573
  return bc(t, { staticPosition: n });
5574
- throw new Hi(e.type, {
5574
+ throw new Wi(e.type, {
5575
5575
  docsPath: "/docs/contract/decodeAbiParameters"
5576
5576
  });
5577
5577
  }
5578
- const Rr = 32, Ln = 32;
5578
+ const Rr = 32, Dn = 32;
5579
5579
  function lc(t) {
5580
5580
  const e = t.readBytes(32);
5581
5581
  return [an(G(is(e, -20))), 32];
5582
5582
  }
5583
5583
  function fc(t, e, { length: n, staticPosition: r }) {
5584
5584
  if (!n) {
5585
- const i = pe(t.readBytes(Ln)), o = r + i, u = o + Rr;
5585
+ const i = pe(t.readBytes(Dn)), o = r + i, u = o + Rr;
5586
5586
  t.setPosition(o);
5587
5587
  const c = pe(t.readBytes(Rr)), d = jt(e);
5588
5588
  let f = 0;
5589
5589
  const h = [];
5590
5590
  for (let m = 0; m < c; ++m) {
5591
5591
  t.setPosition(u + (d ? m * 32 : f));
5592
- const [v, $] = De(t, e, {
5592
+ const [v, T] = Le(t, e, {
5593
5593
  staticPosition: u
5594
5594
  });
5595
- f += $, h.push(v);
5595
+ f += T, h.push(v);
5596
5596
  }
5597
5597
  return t.setPosition(r + 32), [h, 32];
5598
5598
  }
5599
5599
  if (jt(e)) {
5600
- const i = pe(t.readBytes(Ln)), o = r + i, u = [];
5600
+ const i = pe(t.readBytes(Dn)), o = r + i, u = [];
5601
5601
  for (let c = 0; c < n; ++c) {
5602
5602
  t.setPosition(o + c * 32);
5603
- const [d] = De(t, e, {
5603
+ const [d] = Le(t, e, {
5604
5604
  staticPosition: o
5605
5605
  });
5606
5606
  u.push(d);
@@ -5610,7 +5610,7 @@ function fc(t, e, { length: n, staticPosition: r }) {
5610
5610
  let s = 0;
5611
5611
  const a = [];
5612
5612
  for (let i = 0; i < n; ++i) {
5613
- const [o, u] = De(t, e, {
5613
+ const [o, u] = Le(t, e, {
5614
5614
  staticPosition: r + s
5615
5615
  });
5616
5616
  s += u, a.push(o);
@@ -5644,11 +5644,11 @@ function yc(t, e, { staticPosition: n }) {
5644
5644
  const r = e.components.length === 0 || e.components.some(({ name: i }) => !i), s = r ? [] : {};
5645
5645
  let a = 0;
5646
5646
  if (jt(e)) {
5647
- const i = pe(t.readBytes(Ln)), o = n + i;
5647
+ const i = pe(t.readBytes(Dn)), o = n + i;
5648
5648
  for (let u = 0; u < e.components.length; ++u) {
5649
5649
  const c = e.components[u];
5650
5650
  t.setPosition(o + a);
5651
- const [d, f] = De(t, c, {
5651
+ const [d, f] = Le(t, c, {
5652
5652
  staticPosition: o
5653
5653
  });
5654
5654
  a += f, s[r ? u : c == null ? void 0 : c.name] = d;
@@ -5656,7 +5656,7 @@ function yc(t, e, { staticPosition: n }) {
5656
5656
  return t.setPosition(n + 32), [s, 32];
5657
5657
  }
5658
5658
  for (let i = 0; i < e.components.length; ++i) {
5659
- const o = e.components[i], [u, c] = De(t, o, {
5659
+ const o = e.components[i], [u, c] = Le(t, o, {
5660
5660
  staticPosition: n
5661
5661
  });
5662
5662
  s[r ? i : o == null ? void 0 : o.name] = u, a += c;
@@ -5687,10 +5687,10 @@ function vc(t) {
5687
5687
  return gc(t);
5688
5688
  }
5689
5689
  const wc = "1.0.7";
5690
- class D extends Error {
5690
+ class L extends Error {
5691
5691
  constructor(e, n = {}) {
5692
5692
  var i;
5693
- const r = n.cause instanceof D ? n.cause.details : (i = n.cause) != null && i.message ? n.cause.message : n.details, s = n.cause instanceof D && n.cause.docsPath || n.docsPath, a = [
5693
+ const r = n.cause instanceof L ? n.cause.details : (i = n.cause) != null && i.message ? n.cause.message : n.details, s = n.cause instanceof L && n.cause.docsPath || n.docsPath, a = [
5694
5694
  e || "An error occurred.",
5695
5695
  "",
5696
5696
  ...n.metaMessages ? [...n.metaMessages, ""] : [],
@@ -5731,18 +5731,18 @@ function Ae(t, e) {
5731
5731
  const n = t.exec(e);
5732
5732
  return n == null ? void 0 : n.groups;
5733
5733
  }
5734
- const $s = /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/, ks = /^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/, Is = /^\(.+?\).*?$/, Mr = /^tuple(?<array>(\[(\d*)\])*)$/;
5735
- function Dn(t) {
5734
+ const Ts = /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/, ks = /^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/, Is = /^\(.+?\).*?$/, Or = /^tuple(?<array>(\[(\d*)\])*)$/;
5735
+ function Ln(t) {
5736
5736
  let e = t.type;
5737
- if (Mr.test(t.type) && "components" in t) {
5737
+ if (Or.test(t.type) && "components" in t) {
5738
5738
  e = "(";
5739
5739
  const n = t.components.length;
5740
5740
  for (let s = 0; s < n; s++) {
5741
5741
  const a = t.components[s];
5742
- e += Dn(a), s < n - 1 && (e += ", ");
5742
+ e += Ln(a), s < n - 1 && (e += ", ");
5743
5743
  }
5744
- const r = Ae(Mr, t.type);
5745
- return e += `)${(r == null ? void 0 : r.array) ?? ""}`, Dn({
5744
+ const r = Ae(Or, t.type);
5745
+ return e += `)${(r == null ? void 0 : r.array) ?? ""}`, Ln({
5746
5746
  ...t,
5747
5747
  type: e
5748
5748
  });
@@ -5754,7 +5754,7 @@ function Qe(t) {
5754
5754
  const n = t.length;
5755
5755
  for (let r = 0; r < n; r++) {
5756
5756
  const s = t[r];
5757
- e += Dn(s), r !== n - 1 && (e += ", ");
5757
+ e += Ln(s), r !== n - 1 && (e += ", ");
5758
5758
  }
5759
5759
  return e;
5760
5760
  }
@@ -5776,20 +5776,20 @@ function Ec(t) {
5776
5776
  function Ac(t) {
5777
5777
  return Ae(Rs, t);
5778
5778
  }
5779
- const Ms = /^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;
5779
+ const Os = /^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;
5780
5780
  function Cc(t) {
5781
- return Ms.test(t);
5782
- }
5783
- function Tc(t) {
5784
- return Ae(Ms, t);
5785
- }
5786
- const Os = /^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;
5787
- function js(t) {
5788
5781
  return Os.test(t);
5789
5782
  }
5790
5783
  function $c(t) {
5791
5784
  return Ae(Os, t);
5792
5785
  }
5786
+ const Ms = /^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;
5787
+ function js(t) {
5788
+ return Ms.test(t);
5789
+ }
5790
+ function Tc(t) {
5791
+ return Ae(Ms, t);
5792
+ }
5793
5793
  const Bs = /^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;
5794
5794
  function kc(t) {
5795
5795
  return Bs.test(t);
@@ -5801,16 +5801,16 @@ const Sc = /^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;
5801
5801
  function Rc(t) {
5802
5802
  return Sc.test(t);
5803
5803
  }
5804
- const Mc = /^receive\(\) external payable$/;
5805
- function Oc(t) {
5806
- return Mc.test(t);
5804
+ const Oc = /^receive\(\) external payable$/;
5805
+ function Mc(t) {
5806
+ return Oc.test(t);
5807
5807
  }
5808
5808
  const jc = /* @__PURE__ */ new Set(["indexed"]), Vn = /* @__PURE__ */ new Set([
5809
5809
  "calldata",
5810
5810
  "memory",
5811
5811
  "storage"
5812
5812
  ]);
5813
- class Bc extends D {
5813
+ class Bc extends L {
5814
5814
  constructor({ type: e }) {
5815
5815
  super("Unknown type.", {
5816
5816
  metaMessages: [
@@ -5824,7 +5824,7 @@ class Bc extends D {
5824
5824
  });
5825
5825
  }
5826
5826
  }
5827
- class Nc extends D {
5827
+ class Nc extends L {
5828
5828
  constructor({ type: e }) {
5829
5829
  super("Unknown type.", {
5830
5830
  metaMessages: [`Type "${e}" is not a valid ABI type.`]
@@ -5836,7 +5836,7 @@ class Nc extends D {
5836
5836
  });
5837
5837
  }
5838
5838
  }
5839
- class Fc extends D {
5839
+ class Fc extends L {
5840
5840
  constructor({ param: e }) {
5841
5841
  super("Invalid ABI parameter.", {
5842
5842
  details: e
@@ -5848,7 +5848,7 @@ class Fc extends D {
5848
5848
  });
5849
5849
  }
5850
5850
  }
5851
- class zc extends D {
5851
+ class zc extends L {
5852
5852
  constructor({ param: e, name: n }) {
5853
5853
  super("Invalid ABI parameter.", {
5854
5854
  details: e,
@@ -5863,7 +5863,7 @@ class zc extends D {
5863
5863
  });
5864
5864
  }
5865
5865
  }
5866
- class Zc extends D {
5866
+ class Zc extends L {
5867
5867
  constructor({ param: e, type: n, modifier: r }) {
5868
5868
  super("Invalid ABI parameter.", {
5869
5869
  details: e,
@@ -5878,7 +5878,7 @@ class Zc extends D {
5878
5878
  });
5879
5879
  }
5880
5880
  }
5881
- class Lc extends D {
5881
+ class Dc extends L {
5882
5882
  constructor({ param: e, type: n, modifier: r }) {
5883
5883
  super("Invalid ABI parameter.", {
5884
5884
  details: e,
@@ -5894,7 +5894,7 @@ class Lc extends D {
5894
5894
  });
5895
5895
  }
5896
5896
  }
5897
- class Dc extends D {
5897
+ class Lc extends L {
5898
5898
  constructor({ abiParameter: e }) {
5899
5899
  super("Invalid ABI parameter.", {
5900
5900
  details: JSON.stringify(e, null, 2),
@@ -5907,7 +5907,7 @@ class Dc extends D {
5907
5907
  });
5908
5908
  }
5909
5909
  }
5910
- class rt extends D {
5910
+ class rt extends L {
5911
5911
  constructor({ signature: e, type: n }) {
5912
5912
  super(`Invalid ${n} signature.`, {
5913
5913
  details: e
@@ -5919,7 +5919,7 @@ class rt extends D {
5919
5919
  });
5920
5920
  }
5921
5921
  }
5922
- class Vc extends D {
5922
+ class Vc extends L {
5923
5923
  constructor({ signature: e }) {
5924
5924
  super("Unknown signature.", {
5925
5925
  details: e
@@ -5931,7 +5931,7 @@ class Vc extends D {
5931
5931
  });
5932
5932
  }
5933
5933
  }
5934
- class Uc extends D {
5934
+ class Uc extends L {
5935
5935
  constructor({ signature: e }) {
5936
5936
  super("Invalid struct signature.", {
5937
5937
  details: e,
@@ -5944,7 +5944,7 @@ class Uc extends D {
5944
5944
  });
5945
5945
  }
5946
5946
  }
5947
- class Gc extends D {
5947
+ class Gc extends L {
5948
5948
  constructor({ type: e }) {
5949
5949
  super("Circular reference detected.", {
5950
5950
  metaMessages: [`Struct "${e}" is a circular reference.`]
@@ -5956,7 +5956,7 @@ class Gc extends D {
5956
5956
  });
5957
5957
  }
5958
5958
  }
5959
- class Wc extends D {
5959
+ class Hc extends L {
5960
5960
  constructor({ current: e, depth: n }) {
5961
5961
  super("Unbalanced parentheses.", {
5962
5962
  metaMessages: [
@@ -5971,7 +5971,7 @@ class Wc extends D {
5971
5971
  });
5972
5972
  }
5973
5973
  }
5974
- function Hc(t, e, n) {
5974
+ function Wc(t, e, n) {
5975
5975
  let r = "";
5976
5976
  if (n)
5977
5977
  for (const s of Object.entries(n)) {
@@ -6040,12 +6040,12 @@ const wn = /* @__PURE__ */ new Map([
6040
6040
  ]);
6041
6041
  function qc(t, e = {}) {
6042
6042
  if (Cc(t)) {
6043
- const n = Tc(t);
6043
+ const n = $c(t);
6044
6044
  if (!n)
6045
6045
  throw new rt({ signature: t, type: "function" });
6046
6046
  const r = Q(n.parameters), s = [], a = r.length;
6047
6047
  for (let o = 0; o < a; o++)
6048
- s.push($e(r[o], {
6048
+ s.push(Te(r[o], {
6049
6049
  modifiers: Vn,
6050
6050
  structs: e,
6051
6051
  type: "function"
@@ -6054,7 +6054,7 @@ function qc(t, e = {}) {
6054
6054
  if (n.returns) {
6055
6055
  const o = Q(n.returns), u = o.length;
6056
6056
  for (let c = 0; c < u; c++)
6057
- i.push($e(o[c], {
6057
+ i.push(Te(o[c], {
6058
6058
  modifiers: Vn,
6059
6059
  structs: e,
6060
6060
  type: "function"
@@ -6074,7 +6074,7 @@ function qc(t, e = {}) {
6074
6074
  throw new rt({ signature: t, type: "event" });
6075
6075
  const r = Q(n.parameters), s = [], a = r.length;
6076
6076
  for (let i = 0; i < a; i++)
6077
- s.push($e(r[i], {
6077
+ s.push(Te(r[i], {
6078
6078
  modifiers: jc,
6079
6079
  structs: e,
6080
6080
  type: "event"
@@ -6087,7 +6087,7 @@ function qc(t, e = {}) {
6087
6087
  throw new rt({ signature: t, type: "error" });
6088
6088
  const r = Q(n.parameters), s = [], a = r.length;
6089
6089
  for (let i = 0; i < a; i++)
6090
- s.push($e(r[i], { structs: e, type: "error" }));
6090
+ s.push(Te(r[i], { structs: e, type: "error" }));
6091
6091
  return { name: n.name, type: "error", inputs: s };
6092
6092
  }
6093
6093
  if (kc(t)) {
@@ -6096,7 +6096,7 @@ function qc(t, e = {}) {
6096
6096
  throw new rt({ signature: t, type: "constructor" });
6097
6097
  const r = Q(n.parameters), s = [], a = r.length;
6098
6098
  for (let i = 0; i < a; i++)
6099
- s.push($e(r[i], { structs: e, type: "constructor" }));
6099
+ s.push(Te(r[i], { structs: e, type: "constructor" }));
6100
6100
  return {
6101
6101
  type: "constructor",
6102
6102
  stateMutability: n.stateMutability ?? "nonpayable",
@@ -6105,7 +6105,7 @@ function qc(t, e = {}) {
6105
6105
  }
6106
6106
  if (Rc(t))
6107
6107
  return { type: "fallback" };
6108
- if (Oc(t))
6108
+ if (Mc(t))
6109
6109
  return {
6110
6110
  type: "receive",
6111
6111
  stateMutability: "payable"
@@ -6113,9 +6113,9 @@ function qc(t, e = {}) {
6113
6113
  throw new Vc({ signature: t });
6114
6114
  }
6115
6115
  const Kc = /^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/, Jc = /^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/, Yc = /^u?int$/;
6116
- function $e(t, e) {
6116
+ function Te(t, e) {
6117
6117
  var f, h;
6118
- const n = Hc(t, e == null ? void 0 : e.type, e == null ? void 0 : e.structs);
6118
+ const n = Wc(t, e == null ? void 0 : e.type, e == null ? void 0 : e.structs);
6119
6119
  if (wn.has(n))
6120
6120
  return wn.get(n);
6121
6121
  const r = Is.test(t), s = Ae(r ? Jc : Kc, t);
@@ -6127,9 +6127,9 @@ function $e(t, e) {
6127
6127
  let u, c = {};
6128
6128
  if (r) {
6129
6129
  u = "tuple";
6130
- const m = Q(s.type), v = [], $ = m.length;
6131
- for (let P = 0; P < $; P++)
6132
- v.push($e(m[P], { structs: o }));
6130
+ const m = Q(s.type), v = [], T = m.length;
6131
+ for (let P = 0; P < T; P++)
6132
+ v.push(Te(m[P], { structs: o }));
6133
6133
  c = { components: v };
6134
6134
  } else if (s.type in o)
6135
6135
  u = "tuple", c = { components: o[s.type] };
@@ -6145,7 +6145,7 @@ function $e(t, e) {
6145
6145
  modifier: s.modifier
6146
6146
  });
6147
6147
  if (Vn.has(s.modifier) && !eu(u, !!s.array))
6148
- throw new Lc({
6148
+ throw new Dc({
6149
6149
  param: t,
6150
6150
  type: e == null ? void 0 : e.type,
6151
6151
  modifier: s.modifier
@@ -6177,15 +6177,15 @@ function Q(t, e = [], n = "", r = 0) {
6177
6177
  if (n === "")
6178
6178
  return e;
6179
6179
  if (r !== 0)
6180
- throw new Wc({ current: n, depth: r });
6180
+ throw new Hc({ current: n, depth: r });
6181
6181
  return e.push(n.trim()), e;
6182
6182
  }
6183
6183
  function Ns(t) {
6184
- return t === "address" || t === "bool" || t === "function" || t === "string" || $s.test(t) || ks.test(t);
6184
+ return t === "address" || t === "bool" || t === "function" || t === "string" || Ts.test(t) || ks.test(t);
6185
6185
  }
6186
6186
  const Xc = /^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/;
6187
6187
  function Qc(t) {
6188
- return t === "address" || t === "bool" || t === "function" || t === "string" || t === "tuple" || $s.test(t) || ks.test(t) || Xc.test(t);
6188
+ return t === "address" || t === "bool" || t === "function" || t === "string" || t === "tuple" || Ts.test(t) || ks.test(t) || Xc.test(t);
6189
6189
  }
6190
6190
  function eu(t, e) {
6191
6191
  return e || t === "bytes" || t === "string" || t === "tuple";
@@ -6196,7 +6196,7 @@ function tu(t) {
6196
6196
  const o = t[i];
6197
6197
  if (!js(o))
6198
6198
  continue;
6199
- const u = $c(o);
6199
+ const u = Tc(o);
6200
6200
  if (!u)
6201
6201
  throw new rt({ signature: o, type: "struct" });
6202
6202
  const c = u.properties.split(";"), d = [], f = c.length;
@@ -6204,10 +6204,10 @@ function tu(t) {
6204
6204
  const v = c[h].trim();
6205
6205
  if (!v)
6206
6206
  continue;
6207
- const $ = $e(v, {
6207
+ const T = Te(v, {
6208
6208
  type: "struct"
6209
6209
  });
6210
- d.push($);
6210
+ d.push(T);
6211
6211
  }
6212
6212
  if (!d.length)
6213
6213
  throw new Uc({ signature: o });
@@ -6230,7 +6230,7 @@ function Fs(t, e, n = /* @__PURE__ */ new Set()) {
6230
6230
  else {
6231
6231
  const u = Ae(nu, i.type);
6232
6232
  if (!(u != null && u.type))
6233
- throw new Dc({ abiParameter: i });
6233
+ throw new Lc({ abiParameter: i });
6234
6234
  const { array: c, type: d } = u;
6235
6235
  if (d in e) {
6236
6236
  if (n.has(d))
@@ -6311,7 +6311,7 @@ function dr(t) {
6311
6311
  return f ? Un(c, f) : !1;
6312
6312
  })) {
6313
6313
  if (i && "inputs" in i && i.inputs) {
6314
- const c = Ls(o.inputs, i.inputs, n);
6314
+ const c = Ds(o.inputs, i.inputs, n);
6315
6315
  if (c)
6316
6316
  throw new Gi({
6317
6317
  abiItem: o,
@@ -6345,11 +6345,11 @@ function Un(t, e) {
6345
6345
  })) : !1;
6346
6346
  }
6347
6347
  }
6348
- function Ls(t, e, n) {
6348
+ function Ds(t, e, n) {
6349
6349
  for (const r in t) {
6350
6350
  const s = t[r], a = e[r];
6351
6351
  if (s.type === "tuple" && a.type === "tuple" && "components" in s && "components" in a)
6352
- return Ls(s.components, a.components, n[r]);
6352
+ return Ds(s.components, a.components, n[r]);
6353
6353
  const i = [s.type, a.type];
6354
6354
  if (i.includes("address") && i.includes("bytes20") ? !0 : i.includes("address") && i.includes("string") ? Ee(n[r], { strict: !1 }) : i.includes("address") && i.includes("bytes") ? Ee(n[r], { strict: !1 }) : !1)
6355
6355
  return i;
@@ -6369,13 +6369,13 @@ function lr(t) {
6369
6369
  throw new Kt(void 0, { docsPath: xn });
6370
6370
  if (!a.outputs)
6371
6371
  throw new Ui(a.name, { docsPath: xn });
6372
- const i = Ts(a.outputs, s);
6372
+ const i = $s(a.outputs, s);
6373
6373
  if (i && i.length > 1)
6374
6374
  return i;
6375
6375
  if (i && i.length === 1)
6376
6376
  return i[0];
6377
6377
  }
6378
- const Or = "/docs/contract/encodeFunctionData";
6378
+ const Mr = "/docs/contract/encodeFunctionData";
6379
6379
  function iu(t) {
6380
6380
  const { abi: e, args: n, functionName: r } = t;
6381
6381
  let s = e[0];
@@ -6386,14 +6386,14 @@ function iu(t) {
6386
6386
  name: r
6387
6387
  });
6388
6388
  if (!a)
6389
- throw new Kt(r, { docsPath: Or });
6389
+ throw new Kt(r, { docsPath: Mr });
6390
6390
  s = a;
6391
6391
  }
6392
6392
  if (s.type !== "function")
6393
- throw new Kt(void 0, { docsPath: Or });
6393
+ throw new Kt(void 0, { docsPath: Mr });
6394
6394
  return {
6395
6395
  abi: [s],
6396
- functionName: ur(He(s))
6396
+ functionName: ur(We(s))
6397
6397
  };
6398
6398
  }
6399
6399
  function dn(t) {
@@ -6455,18 +6455,18 @@ function lu(t) {
6455
6455
  const { abi: e, data: n } = t, r = Jt(n, 0, 4);
6456
6456
  if (r === "0x")
6457
6457
  throw new Xn();
6458
- const a = [...e || [], uu, du].find((i) => i.type === "error" && r === ur(He(i)));
6458
+ const a = [...e || [], uu, du].find((i) => i.type === "error" && r === ur(We(i)));
6459
6459
  if (!a)
6460
6460
  throw new rs(r, {
6461
6461
  docsPath: "/docs/contract/decodeErrorResult"
6462
6462
  });
6463
6463
  return {
6464
6464
  abiItem: a,
6465
- args: "inputs" in a && a.inputs && a.inputs.length > 0 ? Ts(a.inputs, Jt(n, 4)) : void 0,
6465
+ args: "inputs" in a && a.inputs && a.inputs.length > 0 ? $s(a.inputs, Jt(n, 4)) : void 0,
6466
6466
  errorName: a.name
6467
6467
  };
6468
6468
  }
6469
- function Ds({ abiItem: t, args: e, includeFunctionName: n = !0, includeName: r = !1 }) {
6469
+ function Ls({ abiItem: t, args: e, includeFunctionName: n = !0, includeName: r = !1 }) {
6470
6470
  if ("name" in t && "inputs" in t && t.inputs)
6471
6471
  return `${n ? t.name : ""}(${t.inputs.map((s, a) => `${r && s.name ? `${s.name}: ` : ""}${typeof e[a] == "object" ? cn(e[a]) : e[a]}`).join(", ")})`;
6472
6472
  }
@@ -6474,7 +6474,7 @@ class fu extends y {
6474
6474
  constructor(e, { account: n, docsPath: r, chain: s, data: a, gas: i, gasPrice: o, maxFeePerGas: u, maxPriorityFeePerGas: c, nonce: d, to: f, value: h, stateOverride: m }) {
6475
6475
  var P;
6476
6476
  const v = n ? ue(n) : void 0;
6477
- let $ = Ft({
6477
+ let T = Ft({
6478
6478
  from: v == null ? void 0 : v.address,
6479
6479
  to: f,
6480
6480
  value: typeof h < "u" && `${rr(h)} ${((P = s == null ? void 0 : s.nativeCurrency) == null ? void 0 : P.symbol) || "ETH"}`,
@@ -6485,14 +6485,14 @@ class fu extends y {
6485
6485
  maxPriorityFeePerGas: typeof c < "u" && `${U(c)} gwei`,
6486
6486
  nonce: d
6487
6487
  });
6488
- m && ($ += `
6489
- ${Ho(m)}`), super(e.shortMessage, {
6488
+ m && (T += `
6489
+ ${Wo(m)}`), super(e.shortMessage, {
6490
6490
  cause: e,
6491
6491
  docsPath: r,
6492
6492
  metaMessages: [
6493
6493
  ...e.metaMessages ? [...e.metaMessages, " "] : [],
6494
6494
  "Raw Call Arguments:",
6495
- $
6495
+ T
6496
6496
  ].filter(Boolean),
6497
6497
  name: "CallExecutionError"
6498
6498
  }), Object.defineProperty(this, "cause", {
@@ -6505,13 +6505,13 @@ ${Ho(m)}`), super(e.shortMessage, {
6505
6505
  }
6506
6506
  class hu extends y {
6507
6507
  constructor(e, { abi: n, args: r, contractAddress: s, docsPath: a, functionName: i, sender: o }) {
6508
- const u = dr({ abi: n, args: r, name: i }), c = u ? Ds({
6508
+ const u = dr({ abi: n, args: r, name: i }), c = u ? Ls({
6509
6509
  abiItem: u,
6510
6510
  args: r,
6511
6511
  includeFunctionName: !1,
6512
6512
  includeName: !1
6513
- }) : void 0, d = u ? He(u, { includeName: !0 }) : void 0, f = Ft({
6514
- address: s && $o(s),
6513
+ }) : void 0, d = u ? We(u, { includeName: !0 }) : void 0, f = Ft({
6514
+ address: s && To(s),
6515
6515
  function: d,
6516
6516
  args: c && c !== "()" && `${[...Array((i == null ? void 0 : i.length) ?? 0).keys()].map(() => " ").join("")}${c}`,
6517
6517
  sender: o
@@ -6576,7 +6576,7 @@ class pu extends y {
6576
6576
  const [m] = h;
6577
6577
  u = cu[m];
6578
6578
  } else {
6579
- const m = d ? He(d, { includeName: !0 }) : void 0, v = d && h ? Ds({
6579
+ const m = d ? We(d, { includeName: !0 }) : void 0, v = d && h ? Ls({
6580
6580
  abiItem: d,
6581
6581
  args: h,
6582
6582
  includeFunctionName: !1,
@@ -6664,7 +6664,7 @@ class Vs extends y {
6664
6664
  }
6665
6665
  const bu = 3;
6666
6666
  function fr(t, { abi: e, address: n, args: r, docsPath: s, functionName: a, sender: i }) {
6667
- const o = t instanceof Vs ? t : t instanceof y ? t.walk((v) => "data" in v) || t.walk() : {}, { code: u, data: c, details: d, message: f, shortMessage: h } = o, m = t instanceof Xn ? new mu({ functionName: a }) : [bu, Me.code].includes(u) && (c || d || f || h) ? new pu({
6667
+ const o = t instanceof Vs ? t : t instanceof y ? t.walk((v) => "data" in v) || t.walk() : {}, { code: u, data: c, details: d, message: f, shortMessage: h } = o, m = t instanceof Xn ? new mu({ functionName: a }) : [bu, Oe.code].includes(u) && (c || d || f || h) ? new pu({
6668
6668
  abi: e,
6669
6669
  data: typeof c == "object" ? c.data : c,
6670
6670
  functionName: a,
@@ -6727,7 +6727,7 @@ function Pu({ fn: t, id: e, shouldSplitBatch: n, wait: r = 0, sort: s }) {
6727
6727
  }
6728
6728
  async function Us(t, e) {
6729
6729
  var Ce, je, K, de;
6730
- const { account: n = t.account, batch: r = !!((Ce = t.batch) != null && Ce.multicall), blockNumber: s, blockTag: a = "latest", accessList: i, blobs: o, code: u, data: c, factory: d, factoryData: f, gas: h, gasPrice: m, maxFeePerBlobGas: v, maxFeePerGas: $, maxPriorityFeePerGas: P, nonce: S, to: R, value: A, stateOverride: O, ...q } = e, F = n ? ue(n) : void 0;
6730
+ const { account: n = t.account, batch: r = !!((Ce = t.batch) != null && Ce.multicall), blockNumber: s, blockTag: a = "latest", accessList: i, blobs: o, code: u, data: c, factory: d, factoryData: f, gas: h, gasPrice: m, maxFeePerBlobGas: v, maxFeePerGas: T, maxPriorityFeePerGas: P, nonce: S, to: R, value: A, stateOverride: M, ...q } = e, F = n ? ue(n) : void 0;
6731
6731
  if (u && (d || f))
6732
6732
  throw new y("Cannot provide both `code` & `factory`/`factoryData` as parameters.");
6733
6733
  if (u && R)
@@ -6735,7 +6735,7 @@ async function Us(t, e) {
6735
6735
  const Y = u && c, re = d && f && R && c, C = Y || re, B = Y ? Cu({
6736
6736
  code: u,
6737
6737
  data: c
6738
- }) : re ? Tu({
6738
+ }) : re ? $u({
6739
6739
  data: c,
6740
6740
  factory: d,
6741
6741
  factoryData: f,
@@ -6743,7 +6743,7 @@ async function Us(t, e) {
6743
6743
  }) : c;
6744
6744
  try {
6745
6745
  un(e);
6746
- const V = (s ? M(s) : void 0) || a, X = ws(O), J = (de = (K = (je = t.chain) == null ? void 0 : je.formatters) == null ? void 0 : K.transactionRequest) == null ? void 0 : de.format, Be = (J || ir)({
6746
+ const V = (s ? O(s) : void 0) || a, X = ws(M), J = (de = (K = (je = t.chain) == null ? void 0 : je.formatters) == null ? void 0 : K.transactionRequest) == null ? void 0 : de.format, Be = (J || ir)({
6747
6747
  // Pick out extra data that might exist on the chain's transaction request type.
6748
6748
  ...ar(q, { format: J }),
6749
6749
  from: F == null ? void 0 : F.address,
@@ -6753,7 +6753,7 @@ async function Us(t, e) {
6753
6753
  gas: h,
6754
6754
  gasPrice: m,
6755
6755
  maxFeePerBlobGas: v,
6756
- maxFeePerGas: $,
6756
+ maxFeePerGas: T,
6757
6757
  maxPriorityFeePerGas: P,
6758
6758
  nonce: S,
6759
6759
  to: C ? void 0 : R,
@@ -6780,7 +6780,7 @@ async function Us(t, e) {
6780
6780
  });
6781
6781
  return br === "0x" ? { data: void 0 } : { data: br };
6782
6782
  } catch (se) {
6783
- const V = $u(se), { offchainLookup: X, offchainLookupSignature: J } = await import("./ccip-B7UF-Rim.js");
6783
+ const V = Tu(se), { offchainLookup: X, offchainLookupSignature: J } = await import("./ccip-lSZJB49H.js");
6784
6784
  if (t.ccipRead !== !1 && (V == null ? void 0 : V.slice(0, 10)) === J && R)
6785
6785
  return { data: await X(t, { data: V, to: R }) };
6786
6786
  throw C && (V == null ? void 0 : V.slice(0, 10)) === "0x101bb98d" ? new yu({ factory: d }) : xu(se, {
@@ -6795,8 +6795,8 @@ function Eu({ request: t }) {
6795
6795
  return !(!e || e.startsWith(gu) || !n || Object.values(r).filter((s) => typeof s < "u").length > 0);
6796
6796
  }
6797
6797
  async function Au(t, e) {
6798
- var $;
6799
- const { batchSize: n = 1024, wait: r = 0 } = typeof (($ = t.batch) == null ? void 0 : $.multicall) == "object" ? t.batch.multicall : {}, { blockNumber: s, blockTag: a = "latest", data: i, multicallAddress: o, to: u } = e;
6798
+ var T;
6799
+ const { batchSize: n = 1024, wait: r = 0 } = typeof ((T = t.batch) == null ? void 0 : T.multicall) == "object" ? t.batch.multicall : {}, { blockNumber: s, blockTag: a = "latest", data: i, multicallAddress: o, to: u } = e;
6800
6800
  let c = o;
6801
6801
  if (!c) {
6802
6802
  if (!t.chain)
@@ -6807,17 +6807,17 @@ async function Au(t, e) {
6807
6807
  contract: "multicall3"
6808
6808
  });
6809
6809
  }
6810
- const f = (s ? M(s) : void 0) || a, { schedule: h } = Pu({
6810
+ const f = (s ? O(s) : void 0) || a, { schedule: h } = Pu({
6811
6811
  id: `${t.uid}.${f}`,
6812
6812
  wait: r,
6813
6813
  shouldSplitBatch(P) {
6814
6814
  return P.reduce((R, { data: A }) => R + (A.length - 2), 0) > n * 2;
6815
6815
  },
6816
6816
  fn: async (P) => {
6817
- const S = P.map((O) => ({
6817
+ const S = P.map((M) => ({
6818
6818
  allowFailure: !0,
6819
- callData: O.data,
6820
- target: O.to
6819
+ callData: M.data,
6820
+ target: M.to
6821
6821
  })), R = dn({
6822
6822
  abi: Sr,
6823
6823
  args: [S],
@@ -6852,7 +6852,7 @@ function Cu(t) {
6852
6852
  args: [e, n]
6853
6853
  });
6854
6854
  }
6855
- function Tu(t) {
6855
+ function $u(t) {
6856
6856
  const { data: e, factory: n, factoryData: r, to: s } = t;
6857
6857
  return cs({
6858
6858
  abi: zs(["constructor(address, bytes, address, bytes)"]),
@@ -6860,7 +6860,7 @@ function Tu(t) {
6860
6860
  args: [s, e, n, r]
6861
6861
  });
6862
6862
  }
6863
- function $u(t) {
6863
+ function Tu(t) {
6864
6864
  var n;
6865
6865
  if (!(t instanceof y))
6866
6866
  return;
@@ -6926,7 +6926,7 @@ function Ru(t, { delay: e = 100, retryCount: n = 2, shouldRetry: r = () => !0 }
6926
6926
  i();
6927
6927
  });
6928
6928
  }
6929
- function Mu(t, e = {}) {
6929
+ function Ou(t, e = {}) {
6930
6930
  return async (n, r = {}) => {
6931
6931
  const { dedupe: s = !1, retryDelay: a = 150, retryCount: i = 3, uid: o } = {
6932
6932
  ...e,
@@ -6946,38 +6946,38 @@ function Mu(t, e = {}) {
6946
6946
  throw new _t(d, { method: n.method });
6947
6947
  case Pt.code:
6948
6948
  throw new Pt(d);
6949
- case Me.code:
6950
- throw new Me(d);
6949
+ case Oe.code:
6950
+ throw new Oe(d);
6951
6951
  case Et.code:
6952
6952
  throw new Et(d);
6953
6953
  case At.code:
6954
6954
  throw new At(d);
6955
6955
  case Ct.code:
6956
6956
  throw new Ct(d);
6957
- case Tt.code:
6958
- throw new Tt(d);
6959
6957
  case $t.code:
6960
- throw new $t(d, {
6958
+ throw new $t(d);
6959
+ case Tt.code:
6960
+ throw new Tt(d, {
6961
6961
  method: n.method
6962
6962
  });
6963
6963
  case Ke.code:
6964
6964
  throw new Ke(d);
6965
6965
  case kt.code:
6966
6966
  throw new kt(d);
6967
- case Le.code:
6968
- throw new Le(d);
6967
+ case De.code:
6968
+ throw new De(d);
6969
6969
  case It.code:
6970
6970
  throw new It(d);
6971
6971
  case St.code:
6972
6972
  throw new St(d);
6973
6973
  case Rt.code:
6974
6974
  throw new Rt(d);
6975
- case Mt.code:
6976
- throw new Mt(d);
6977
6975
  case Ot.code:
6978
6976
  throw new Ot(d);
6977
+ case Mt.code:
6978
+ throw new Mt(d);
6979
6979
  case 5e3:
6980
- throw new Le(d);
6980
+ throw new De(d);
6981
6981
  default:
6982
6982
  throw c instanceof y ? c : new Io(d);
6983
6983
  }
@@ -6993,12 +6993,12 @@ function Mu(t, e = {}) {
6993
6993
  return ~~(1 << c) * a;
6994
6994
  },
6995
6995
  retryCount: i,
6996
- shouldRetry: ({ error: c }) => Ou(c)
6996
+ shouldRetry: ({ error: c }) => Mu(c)
6997
6997
  }), { enabled: s, id: u });
6998
6998
  };
6999
6999
  }
7000
- function Ou(t) {
7001
- return "code" in t && typeof t.code == "number" ? t.code === -1 || t.code === Ke.code || t.code === Me.code : t instanceof ys && t.status ? t.status === 403 || t.status === 408 || t.status === 413 || t.status === 429 || t.status === 500 || t.status === 502 || t.status === 503 || t.status === 504 : !0;
7000
+ function Mu(t) {
7001
+ return "code" in t && typeof t.code == "number" ? t.code === -1 || t.code === Ke.code || t.code === Oe.code : t instanceof ys && t.status ? t.status === 403 || t.status === 408 || t.status === 413 || t.status === 429 || t.status === 500 || t.status === 502 || t.status === 503 || t.status === 504 : !0;
7002
7002
  }
7003
7003
  async function ju(t, e) {
7004
7004
  const { abi: n, address: r, args: s, dataSuffix: a, functionName: i, ...o } = e, u = o.account ? ue(o.account) : t.account, c = dn({ abi: n, args: s, functionName: i });
@@ -7068,14 +7068,14 @@ async function Bu(t, e) {
7068
7068
  }
7069
7069
  }
7070
7070
  const Gn = 256;
7071
- let Zt = Gn, Lt;
7071
+ let Zt = Gn, Dt;
7072
7072
  function Gs(t = 11) {
7073
- if (!Lt || Zt + t > Gn * 2) {
7074
- Lt = "", Zt = 0;
7073
+ if (!Dt || Zt + t > Gn * 2) {
7074
+ Dt = "", Zt = 0;
7075
7075
  for (let e = 0; e < Gn; e++)
7076
- Lt += (256 + Math.random() * 256 | 0).toString(16).substring(1);
7076
+ Dt += (256 + Math.random() * 256 | 0).toString(16).substring(1);
7077
7077
  }
7078
- return Lt.substring(Zt, Zt++ + t);
7078
+ return Dt.substring(Zt, Zt++ + t);
7079
7079
  }
7080
7080
  function Nu(t) {
7081
7081
  const { batch: e, cacheTime: n = t.pollingInterval ?? 4e3, ccipRead: r, key: s = "base", name: a = "Base Client", pollingInterval: i = 4e3, type: o = "base" } = t, u = t.chain, c = t.account ? ue(t.account) : void 0, { config: d, request: f, value: h } = t.transport({
@@ -7095,16 +7095,16 @@ function Nu(t) {
7095
7095
  type: o,
7096
7096
  uid: Gs()
7097
7097
  };
7098
- function $(P) {
7098
+ function T(P) {
7099
7099
  return (S) => {
7100
7100
  const R = S(P);
7101
- for (const O in v)
7102
- delete R[O];
7101
+ for (const M in v)
7102
+ delete R[M];
7103
7103
  const A = { ...P, ...R };
7104
- return Object.assign(A, { extend: $(A) });
7104
+ return Object.assign(A, { extend: T(A) });
7105
7105
  };
7106
7106
  }
7107
- return Object.assign(v, { extend: $(v) });
7107
+ return Object.assign(v, { extend: T(v) });
7108
7108
  }
7109
7109
  function Fu({ key: t, name: e, request: n, retryCount: r = 3, retryDelay: s = 150, timeout: a, type: i }, o) {
7110
7110
  const u = Gs();
@@ -7118,7 +7118,7 @@ function Fu({ key: t, name: e, request: n, retryCount: r = 3, retryDelay: s = 15
7118
7118
  timeout: a,
7119
7119
  type: i
7120
7120
  },
7121
- request: Mu(n, { retryCount: r, retryDelay: s, uid: u }),
7121
+ request: Ou(n, { retryCount: r, retryDelay: s, uid: u }),
7122
7122
  value: o
7123
7123
  };
7124
7124
  }
@@ -7200,18 +7200,18 @@ function pr(t, e, n) {
7200
7200
  const s = t[n];
7201
7201
  return typeof s == "function" ? s : (a) => e(t, a);
7202
7202
  }
7203
- const Zu = "2.13.8", Lu = () => `@wagmi/core@${Zu}`;
7204
- var Ws = function(t, e, n, r) {
7203
+ const Zu = "2.13.8", Du = () => `@wagmi/core@${Zu}`;
7204
+ var Hs = function(t, e, n, r) {
7205
7205
  if (n === "a" && !r) throw new TypeError("Private accessor was defined without a getter");
7206
7206
  if (typeof e == "function" ? t !== e || !r : !e.has(t)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
7207
7207
  return n === "m" ? r : n === "a" ? r.call(t) : r ? r.value : e.get(t);
7208
- }, en, Hs;
7209
- class Oe extends Error {
7208
+ }, en, Ws;
7209
+ class Me extends Error {
7210
7210
  get docsBaseUrl() {
7211
7211
  return "https://wagmi.sh/core";
7212
7212
  }
7213
7213
  get version() {
7214
- return Lu();
7214
+ return Du();
7215
7215
  }
7216
7216
  constructor(e, n = {}) {
7217
7217
  var r;
@@ -7241,7 +7241,7 @@ class Oe extends Error {
7241
7241
  writable: !0,
7242
7242
  value: "WagmiCoreError"
7243
7243
  });
7244
- const s = n.cause instanceof Oe ? n.cause.details : (r = n.cause) != null && r.message ? n.cause.message : n.details, a = n.cause instanceof Oe && n.cause.docsPath || n.docsPath;
7244
+ const s = n.cause instanceof Me ? n.cause.details : (r = n.cause) != null && r.message ? n.cause.message : n.details, a = n.cause instanceof Me && n.cause.docsPath || n.docsPath;
7245
7245
  this.message = [
7246
7246
  e || "An error occurred.",
7247
7247
  "",
@@ -7255,13 +7255,13 @@ class Oe extends Error {
7255
7255
  `), n.cause && (this.cause = n.cause), this.details = s, this.docsPath = a, this.metaMessages = n.metaMessages, this.shortMessage = e;
7256
7256
  }
7257
7257
  walk(e) {
7258
- return Ws(this, en, "m", Hs).call(this, this, e);
7258
+ return Hs(this, en, "m", Ws).call(this, this, e);
7259
7259
  }
7260
7260
  }
7261
- en = /* @__PURE__ */ new WeakSet(), Hs = function t(e, n) {
7262
- return n != null && n(e) ? e : e.cause ? Ws(this, en, "m", t).call(this, e.cause, n) : e;
7261
+ en = /* @__PURE__ */ new WeakSet(), Ws = function t(e, n) {
7262
+ return n != null && n(e) ? e : e.cause ? Hs(this, en, "m", t).call(this, e.cause, n) : e;
7263
7263
  };
7264
- class Du extends Oe {
7264
+ class Lu extends Me {
7265
7265
  constructor() {
7266
7266
  super("Connector not connected."), Object.defineProperty(this, "name", {
7267
7267
  enumerable: !0,
@@ -7271,7 +7271,7 @@ class Du extends Oe {
7271
7271
  });
7272
7272
  }
7273
7273
  }
7274
- class Vu extends Oe {
7274
+ class Vu extends Me {
7275
7275
  constructor({ address: e, connector: n }) {
7276
7276
  super(`Account "${e}" not found for connector "${n.name}".`), Object.defineProperty(this, "name", {
7277
7277
  enumerable: !0,
@@ -7281,7 +7281,7 @@ class Vu extends Oe {
7281
7281
  });
7282
7282
  }
7283
7283
  }
7284
- class Uu extends Oe {
7284
+ class Uu extends Me {
7285
7285
  constructor({ connectionChainId: e, connectorChainId: n }) {
7286
7286
  super(`The current chain of the connector (id: ${n}) does not match the connection's chain (id: ${e}).`, {
7287
7287
  metaMessages: [
@@ -7296,7 +7296,7 @@ class Uu extends Oe {
7296
7296
  });
7297
7297
  }
7298
7298
  }
7299
- class Gu extends Oe {
7299
+ class Gu extends Me {
7300
7300
  constructor({ connector: e }) {
7301
7301
  super(`Connector "${e.name}" unavailable while reconnecting.`, {
7302
7302
  details: [
@@ -7330,7 +7330,7 @@ async function qs(t, e = {}) {
7330
7330
  } else
7331
7331
  n = t.state.connections.get(t.state.current);
7332
7332
  if (!n)
7333
- throw new Du();
7333
+ throw new Lu();
7334
7334
  const r = e.chainId ?? n.chainId, s = await n.connector.getChainId();
7335
7335
  if (s !== n.chainId)
7336
7336
  throw new Uu({
@@ -7354,7 +7354,7 @@ async function qs(t, e = {}) {
7354
7354
  transport: (c) => zu(u)({ ...c, retryCount: 0 })
7355
7355
  });
7356
7356
  }
7357
- async function Wn(t, e) {
7357
+ async function Hn(t, e) {
7358
7358
  const { abi: n, chainId: r, connector: s, ...a } = e;
7359
7359
  let i;
7360
7360
  e.account ? i = e.account : i = (await qs(t, {
@@ -7372,13 +7372,13 @@ function mr(t) {
7372
7372
  return t.address !== void 0 && typeof t.address == "object" ? (e, n) => {
7373
7373
  var r;
7374
7374
  const s = hr(e), a = ln(e), i = (n == null ? void 0 : n.chainId) ?? a.chainId ?? s;
7375
- return Wn(e, {
7375
+ return Hn(e, {
7376
7376
  ...n,
7377
7377
  ...t.functionName ? { functionName: t.functionName } : {},
7378
7378
  address: (r = t.address) == null ? void 0 : r[i],
7379
7379
  abi: t.abi
7380
7380
  });
7381
- } : (e, n) => Wn(e, {
7381
+ } : (e, n) => Hn(e, {
7382
7382
  ...n,
7383
7383
  ...t.address ? { address: t.address } : {},
7384
7384
  ...t.functionName ? { functionName: t.functionName } : {},
@@ -7415,7 +7415,7 @@ async function Br(t, e) {
7415
7415
  if (a === "prepared" || u != null && u.supportsSimulation)
7416
7416
  c = i;
7417
7417
  else {
7418
- const { request: d } = await Wn(t, {
7418
+ const { request: d } = await Hn(t, {
7419
7419
  ...i,
7420
7420
  account: n,
7421
7421
  chainId: r
@@ -7620,10 +7620,10 @@ const be = [
7620
7620
  outputs: [{ name: "", internalType: "bool", type: "bool" }],
7621
7621
  stateMutability: "nonpayable"
7622
7622
  }
7623
- ], Wu = /* @__PURE__ */ Ks({
7623
+ ], Hu = /* @__PURE__ */ Ks({
7624
7624
  abi: be,
7625
7625
  functionName: "allowance"
7626
- }), Hu = /* @__PURE__ */ Ks({
7626
+ }), Wu = /* @__PURE__ */ Ks({
7627
7627
  abi: be,
7628
7628
  functionName: "balanceOf"
7629
7629
  }), qu = /* @__PURE__ */ yr({
@@ -7647,7 +7647,7 @@ const be = [
7647
7647
  }), ed = "0x6080604052348015600e575f80fd5b50610b398061001c5f395ff3fe6080604052600436106100d9575f3560e01c806340c10f191161007c57806395d89b411161005757806395d89b4114610323578063a9059cbb14610368578063d505accf14610387578063dd62ed3e146103a6575f80fd5b806340c10f19146102a257806370a08231146102c15780637ecebe00146102f2575f80fd5b806318160ddd116100b757806318160ddd1461017857806323b872dd1461019e578063313ce567146101bd5780633644e515146101d8575f80fd5b806306fdde03146100dd578063095ea7b31461013457806317d304b014610163575b5f80fd5b3480156100e8575f80fd5b5060408051808201909152600a81527f4d6f636b2045524332300000000000000000000000000000000000000000000060208201525b60405161012b9190610930565b60405180910390f35b34801561013f575f80fd5b5061015361014e3660046109ab565b6103c5565b604051901515815260200161012b565b6101766101713660046109ab565b610452565b005b348015610183575f80fd5b506805345cdf77eb68f44c545b60405190815260200161012b565b3480156101a9575f80fd5b506101536101b83660046109d3565b6104d8565b3480156101c8575f80fd5b506040516012815260200161012b565b3480156101e3575f80fd5b50604080518082018252600a81527f4d6f636b2045524332300000000000000000000000000000000000000000000060209182015281517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81527fa5c9260bf133e670eeaf4d41f5c4289fc23bb146bf11ba8fa70a2ea91ba1a330918101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc69181019190915246606082015230608082015260a09020610190565b3480156102ad575f80fd5b506101766102bc3660046109ab565b6104ca565b3480156102cc575f80fd5b506101906102db366004610a0d565b6387a211a2600c9081525f91909152602090205490565b3480156102fd575f80fd5b5061019061030c366004610a0d565b6338377508600c9081525f91909152602090205490565b34801561032e575f80fd5b5060408051808201909152600481527f4d4f434b00000000000000000000000000000000000000000000000000000000602082015261011e565b348015610373575f80fd5b506101536103823660046109ab565b6105a7565b348015610392575f80fd5b506101766103a1366004610a2d565b61061e565b3480156103b1575f80fd5b506101906103c0366004610a9a565b610834565b5f73ffffffffffffffffffffffffffffffffffffffff83166e22d473030f116ddee9f6b43ac78ba3188219151761040357633f68539a5f526004601cfd5b82602052637f5e9f20600c52335f52816034600c2055815f52602c5160601c337f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560205fa35060015b92915050565b61045d606482610acb565b3410156104ca576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f4d6f636b45524332303a2067696d6d65206d6f7265206d6f6e65792100000000604482015260640160405180910390fd5b6104d482826108b4565b5050565b5f8360601b6e22d473030f116ddee9f6b43ac78ba3331461052d5733602052637f5e9f208117600c526034600c20805480191561052a5780851115610524576313be252b5f526004601cfd5b84810382555b50505b6387a211a28117600c526020600c208054808511156105535763f4d678b85f526004601cfd5b84810382555050835f526020600c208381540181555082602052600c5160601c8160601c7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef602080a3505060019392505050565b5f6387a211a2600c52335f526020600c208054808411156105cf5763f4d678b85f526004601cfd5b83810382555050825f526020600c208281540181555081602052600c5160601c337fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef602080a350600192915050565b73ffffffffffffffffffffffffffffffffffffffff86166e22d473030f116ddee9f6b43ac78ba3188519151761065b57633f68539a5f526004601cfd5b60408051808201909152600a81527f4d6f636b204552433230000000000000000000000000000000000000000000006020909101527fa5c9260bf133e670eeaf4d41f5c4289fc23bb146bf11ba8fa70a2ea91ba1a3307fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6428610156106e757631a15a3cc5f526004601cfd5b6040518960601b60601c99508860601b60601c985065383775081901600e52895f526020600c2080547f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f835284602084015283604084015246606084015230608084015260a08320602e527f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c983528b60208401528a60408401528960608401528060808401528860a084015260c08320604e526042602c205f528760ff16602052866040528560605260208060805f60015afa8c3d51146107cf5763ddafbaef5f526004601cfd5b019055777f5e9f20000000000000000000000000000000000000000089176040526034602c20889055888a7f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925602060608501a360405250505f60605250505050505050565b5f7fffffffffffffffffffffffffffffffffffdd2b8cfcf0ee922116094bc538745d73ffffffffffffffffffffffffffffffffffffffff83160161089957507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff61044c565b50602052637f5e9f20600c9081525f91909152603490205490565b6805345cdf77eb68f44c54818101818110156108d75763e5cfe9575f526004601cfd5b806805345cdf77eb68f44c5550506387a211a2600c52815f526020600c208181540181555080602052600c5160601c5f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef602080a35050565b602081525f82518060208401528060208501604085015e5f6040828501015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011684010191505092915050565b803573ffffffffffffffffffffffffffffffffffffffff811681146109a6575f80fd5b919050565b5f80604083850312156109bc575f80fd5b6109c583610983565b946020939093013593505050565b5f805f606084860312156109e5575f80fd5b6109ee84610983565b92506109fc60208501610983565b929592945050506040919091013590565b5f60208284031215610a1d575f80fd5b610a2682610983565b9392505050565b5f805f805f805f60e0888a031215610a43575f80fd5b610a4c88610983565b9650610a5a60208901610983565b95506040880135945060608801359350608088013560ff81168114610a7d575f80fd5b9699959850939692959460a0840135945060c09093013592915050565b5f8060408385031215610aab575f80fd5b610ab483610983565b9150610ac260208401610983565b90509250929050565b5f82610afe577f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b50049056fea2646970667358221220f5df3612b8f8d82660db05f290d8446fb4142408d492fd3d2eb82b366b3cf76964736f6c634300081a0033";
7648
7648
  class Js extends ra {
7649
7649
  async balanceOf(e, n) {
7650
- return await Hu(this._config, {
7650
+ return await Wu(this._config, {
7651
7651
  address: this.assertValidAddress(),
7652
7652
  args: [e],
7653
7653
  // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
@@ -7655,7 +7655,7 @@ class Js extends ra {
7655
7655
  });
7656
7656
  }
7657
7657
  async allowance(e, n, r) {
7658
- return await Wu(this._config, {
7658
+ return await Hu(this._config, {
7659
7659
  address: this.assertValidAddress(),
7660
7660
  args: [e, n],
7661
7661
  // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
@@ -7760,7 +7760,7 @@ const td = [
7760
7760
  ].map((t) => ({
7761
7761
  ...t,
7762
7762
  privateKey: pa(t.key)
7763
- })), nd = "test test test test test test test test test test test junk", kd = async function(e, n) {
7763
+ })), nd = "test test test test test test test test test test test junk", Id = async function(e, n) {
7764
7764
  const r = n.privateKey, s = n.mnemonic ?? nd, a = n.chain || "anvil", [{ config: i, account: o }, u] = va({
7765
7765
  chain: a,
7766
7766
  rpcUrl: n.rpcUrl,
@@ -7768,7 +7768,7 @@ const td = [
7768
7768
  mnemonic: s
7769
7769
  }), c = u.id;
7770
7770
  if (e.at(0) === "generate")
7771
- return Ed({ account: o == null ? void 0 : o.address, chainId: c });
7771
+ return Ad({ account: o == null ? void 0 : o.address, chainId: c });
7772
7772
  if (e.at(0) === "erc20") {
7773
7773
  let A = new Js({ config: i, account: o }, {});
7774
7774
  return await A.deploy(), {
@@ -7796,15 +7796,15 @@ const td = [
7796
7796
  });
7797
7797
  if (!e.length) throw new Error("No seed provided");
7798
7798
  const v = await Promise.all(e.map(rd));
7799
- let $, P;
7799
+ let T, P;
7800
7800
  const S = [];
7801
7801
  let R;
7802
7802
  for (const A of v) {
7803
- let O;
7803
+ let M;
7804
7804
  if (typeof A.budget == "string" && tn(A.budget))
7805
- O = m.ManagedBudget(A.budget);
7806
- else if (An(P, A.budget) && $)
7807
- O = $;
7805
+ M = m.ManagedBudget(A.budget);
7806
+ else if (An(P, A.budget) && T)
7807
+ M = T;
7808
7808
  else {
7809
7809
  let C = A.budget;
7810
7810
  switch (C.type) {
@@ -7814,7 +7814,7 @@ const td = [
7814
7814
  authorized: [...A.budget.authorized, h],
7815
7815
  roles: [...A.budget.roles, En.MANAGER]
7816
7816
  };
7817
- O = await f.initialize(
7817
+ M = await f.initialize(
7818
7818
  crypto.randomUUID(),
7819
7819
  m.ManagedBudget(B)
7820
7820
  );
@@ -7826,13 +7826,13 @@ const td = [
7826
7826
  authorized: [...A.budget.authorized, h],
7827
7827
  roles: [...A.budget.roles, En.MANAGER]
7828
7828
  };
7829
- O = await f.initialize(
7829
+ M = await f.initialize(
7830
7830
  crypto.randomUUID(),
7831
7831
  m.ManagedBudgetWithFeesV2(B)
7832
7832
  );
7833
7833
  }
7834
7834
  }
7835
- $ = O, P = A.budget, R = O.assertValidAddress();
7835
+ T = M, P = A.budget, R = M.assertValidAddress();
7836
7836
  }
7837
7837
  const q = A.incentives.map(async (C) => {
7838
7838
  let B = 0n;
@@ -7842,27 +7842,27 @@ const td = [
7842
7842
  case "PointsIncentive":
7843
7843
  return m.PointsIncentive(C);
7844
7844
  case "ERC20Incentive":
7845
- return C.strategy === Pn.RAFFLE && (B += C.reward), C.strategy === Pn.POOL && (B += C.reward * C.limit), C.shouldMintAndAllocate && await et(O, B, C.asset, {
7845
+ return C.strategy === Pn.RAFFLE && (B += C.reward), C.strategy === Pn.POOL && (B += C.reward * C.limit), C.shouldMintAndAllocate && await et(M, B, C.asset, {
7846
7846
  config: i,
7847
7847
  account: o
7848
7848
  }), m.ERC20Incentive(C);
7849
7849
  case "ERC20VariableCriteriaIncentiveV2":
7850
- return B += C.limit, C.shouldMintAndAllocate && await et(O, B, C.asset, {
7850
+ return B += C.limit, C.shouldMintAndAllocate && await et(M, B, C.asset, {
7851
7851
  config: i,
7852
7852
  account: o
7853
7853
  }), m.ERC20VariableCriteriaIncentiveV2(C);
7854
7854
  case "ERC20PeggedVariableCriteriaIncentiveV2":
7855
- return B += C.limit, C.shouldMintAndAllocate && await et(O, B, C.asset, {
7855
+ return B += C.limit, C.shouldMintAndAllocate && await et(M, B, C.asset, {
7856
7856
  config: i,
7857
7857
  account: o
7858
7858
  }), m.ERC20PeggedVariableCriteriaIncentiveV2(C);
7859
7859
  case "ERC20VariableIncentive":
7860
- return B += C.limit, C.shouldMintAndAllocate && await et(O, B, C.asset, {
7860
+ return B += C.limit, C.shouldMintAndAllocate && await et(M, B, C.asset, {
7861
7861
  config: i,
7862
7862
  account: o
7863
7863
  }), m.ERC20VariableIncentive(C);
7864
7864
  case "CGDAIncentive":
7865
- return B += C.totalBudget, C.shouldMintAndAllocate && await et(O, B, C.asset, {
7865
+ return B += C.totalBudget, C.shouldMintAndAllocate && await et(M, B, C.asset, {
7866
7866
  config: i,
7867
7867
  account: o
7868
7868
  }), m.CGDAIncentive(C);
@@ -7870,7 +7870,7 @@ const td = [
7870
7870
  }), F = await Promise.all(q), Y = {
7871
7871
  protocolFee: A.protocolFee,
7872
7872
  maxParticipants: A.maxParticipants,
7873
- budget: O,
7873
+ budget: M,
7874
7874
  action: m.EventAction(A.action),
7875
7875
  allowList: await ea(A, { core: m }),
7876
7876
  incentives: F
@@ -7887,7 +7887,7 @@ const td = [
7887
7887
  async function et(t, e, n, r) {
7888
7888
  if (n && e) {
7889
7889
  let s = new Js(r, n);
7890
- await Pd(r, s, t, zr(e.toString()));
7890
+ await Ed(r, s, t, zr(e.toString()));
7891
7891
  }
7892
7892
  }
7893
7893
  async function rd(t) {
@@ -7971,10 +7971,15 @@ const sd = l.custom(ma, "invalid Hex payload"), k = l.string().transform((t, e)
7971
7971
  owner: k,
7972
7972
  allowed: l.array(k)
7973
7973
  }), yd = l.object({
7974
+ type: l.literal("OffchainAccessList"),
7975
+ owner: k,
7976
+ allowlistIds: l.array(l.string()),
7977
+ denylistIds: l.array(l.string())
7978
+ }), bd = l.object({
7974
7979
  type: l.literal("AllowListIncentive"),
7975
7980
  allowList: k,
7976
7981
  limit: l.coerce.bigint()
7977
- }), bd = l.object({
7982
+ }), gd = l.object({
7978
7983
  type: l.literal("ERC20Incentive"),
7979
7984
  asset: k,
7980
7985
  shouldMintAndAllocate: l.boolean().optional().default(!1),
@@ -7982,7 +7987,7 @@ const sd = l.custom(ma, "invalid Hex payload"), k = l.string().transform((t, e)
7982
7987
  reward: l.coerce.bigint(),
7983
7988
  limit: l.coerce.bigint(),
7984
7989
  manager: k.optional()
7985
- }), gd = l.object({
7990
+ }), vd = l.object({
7986
7991
  type: l.literal("ERC20VariableIncentive"),
7987
7992
  asset: k,
7988
7993
  shouldMintAndAllocate: l.boolean().optional().default(!1),
@@ -7995,7 +8000,7 @@ const sd = l.custom(ma, "invalid Hex payload"), k = l.string().transform((t, e)
7995
8000
  fieldIndex: l.number().nonnegative(),
7996
8001
  targetContract: k,
7997
8002
  valueType: l.nativeEnum(sa)
7998
- }), vd = l.object({
8003
+ }), wd = l.object({
7999
8004
  type: l.literal("ERC20VariableCriteriaIncentiveV2"),
8000
8005
  asset: k,
8001
8006
  shouldMintAndAllocate: l.boolean().optional().default(!1),
@@ -8003,7 +8008,7 @@ const sd = l.custom(ma, "invalid Hex payload"), k = l.string().transform((t, e)
8003
8008
  limit: l.coerce.bigint(),
8004
8009
  manager: k.optional(),
8005
8010
  criteria: Xs
8006
- }), wd = l.object({
8011
+ }), xd = l.object({
8007
8012
  type: l.literal("ERC20PeggedVariableCriteriaIncentiveV2"),
8008
8013
  asset: k,
8009
8014
  shouldMintAndAllocate: l.boolean().optional().default(!1),
@@ -8013,7 +8018,7 @@ const sd = l.custom(ma, "invalid Hex payload"), k = l.string().transform((t, e)
8013
8018
  limit: l.coerce.bigint(),
8014
8019
  manager: k.optional(),
8015
8020
  criteria: Xs
8016
- }), xd = l.object({
8021
+ }), _d = l.object({
8017
8022
  type: l.literal("CGDAIncentive"),
8018
8023
  asset: k,
8019
8024
  shouldMintAndAllocate: l.boolean().optional().default(!1),
@@ -8022,7 +8027,7 @@ const sd = l.custom(ma, "invalid Hex payload"), k = l.string().transform((t, e)
8022
8027
  rewardBoost: l.coerce.bigint(),
8023
8028
  totalBudget: l.coerce.bigint(),
8024
8029
  manager: k
8025
- }), _d = l.object({
8030
+ }), Pd = l.object({
8026
8031
  type: l.literal("PointsIncentive"),
8027
8032
  venue: k,
8028
8033
  selector: fn,
@@ -8043,16 +8048,21 @@ const sd = l.custom(ma, "invalid Hex payload"), k = l.string().transform((t, e)
8043
8048
  ld,
8044
8049
  fd
8045
8050
  ]).optional(),
8046
- allowList: l.union([k, pd, md]).optional(),
8051
+ allowList: l.union([
8052
+ k,
8053
+ pd,
8054
+ md,
8055
+ yd
8056
+ ]).optional(),
8047
8057
  incentives: l.array(
8048
8058
  l.union([
8049
- yd,
8050
8059
  bd,
8051
- vd,
8052
- wd,
8053
8060
  gd,
8061
+ wd,
8054
8062
  xd,
8055
- _d
8063
+ vd,
8064
+ _d,
8065
+ Pd
8056
8066
  ])
8057
8067
  )
8058
8068
  });
@@ -8069,18 +8079,20 @@ async function ea({ allowList: t }, { core: e }) {
8069
8079
  return e.SimpleAllowList(t);
8070
8080
  case "SimpleDenyList":
8071
8081
  return e.SimpleDenyList(t);
8082
+ case "OffchainAccessList":
8083
+ return e.OffchainAccessList(t);
8072
8084
  default:
8073
8085
  throw new Error("unusupported AllowList: " + t);
8074
8086
  }
8075
8087
  }
8076
- async function Pd(t, e, n, r = zr("110")) {
8088
+ async function Ed(t, e, n, r = zr("110")) {
8077
8089
  return await e.mint(t.account.address, r), await e.approve(n.assertValidAddress(), r), "allocate" in n && await n.allocate({
8078
8090
  amount: r,
8079
8091
  asset: e.assertValidAddress(),
8080
8092
  target: t.account.address
8081
8093
  }), { budget: n, erc20: e };
8082
8094
  }
8083
- function Ed({
8095
+ function Ad({
8084
8096
  asset: t = "0xf3B2d0E4f2d8F453DBCc278b10e88b20d7f19f8D",
8085
8097
  account: e = td[0].account,
8086
8098
  chainId: n
@@ -8143,7 +8155,7 @@ function Ed({
8143
8155
  ]
8144
8156
  };
8145
8157
  }
8146
- async function Id(t, e) {
8158
+ async function Sd(t, e) {
8147
8159
  const n = Qs.parse(t);
8148
8160
  let r;
8149
8161
  if (typeof n.budget == "string" && tn(n.budget))
@@ -8198,12 +8210,13 @@ async function Id(t, e) {
8198
8210
  export {
8199
8211
  od as A,
8200
8212
  y as B,
8201
- xd as C,
8213
+ _d as C,
8202
8214
  dd as E,
8203
8215
  ys as H,
8204
8216
  vt as I,
8205
8217
  ld as L,
8206
8218
  ad as M,
8219
+ yd as O,
8207
8220
  fd as P,
8208
8221
  hd as S,
8209
8222
  cn as a,
@@ -8219,15 +8232,15 @@ export {
8219
8232
  ud as k,
8220
8233
  pd as l,
8221
8234
  md as m,
8222
- yd as n,
8223
- bd as o,
8224
- gd as p,
8235
+ bd as n,
8236
+ gd as o,
8237
+ vd as p,
8225
8238
  Xs as q,
8226
- vd as r,
8227
- kd as s,
8228
- wd as t,
8229
- _d as u,
8239
+ wd as r,
8240
+ Id as s,
8241
+ xd as t,
8242
+ Pd as u,
8230
8243
  Qs as v,
8231
- Ed as w,
8232
- Id as x
8244
+ Ad as w,
8245
+ Sd as x
8233
8246
  };