@fewangsit/wangsvue 1.5.229-alpha.32 → 1.5.229-alpha.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/mcp/main.js CHANGED
@@ -21,6 +21,10 @@ const cl = "https://fewangsit.gitbook.io", ul = "https://fewangsit.gitbook.io/vu
21
21
  alwaysApply: !0,
22
22
  output_dir: ".trae/rules"
23
23
  },
24
+ copilot: {
25
+ applyTo: "**",
26
+ output_dir: ".github/instructions"
27
+ },
24
28
  default: {
25
29
  inclusion: "always",
26
30
  output_dir: "docs"
@@ -415,7 +419,7 @@ var ea;
415
419
  // second overwrites first
416
420
  });
417
421
  })(ea || (ea = {}));
418
- const B = he.arrayToEnum([
422
+ const G = he.arrayToEnum([
419
423
  "string",
420
424
  "nan",
421
425
  "number",
@@ -439,23 +443,23 @@ const B = he.arrayToEnum([
439
443
  ]), It = (t) => {
440
444
  switch (typeof t) {
441
445
  case "undefined":
442
- return B.undefined;
446
+ return G.undefined;
443
447
  case "string":
444
- return B.string;
448
+ return G.string;
445
449
  case "number":
446
- return Number.isNaN(t) ? B.nan : B.number;
450
+ return Number.isNaN(t) ? G.nan : G.number;
447
451
  case "boolean":
448
- return B.boolean;
452
+ return G.boolean;
449
453
  case "function":
450
- return B.function;
454
+ return G.function;
451
455
  case "bigint":
452
- return B.bigint;
456
+ return G.bigint;
453
457
  case "symbol":
454
- return B.symbol;
458
+ return G.symbol;
455
459
  case "object":
456
- return Array.isArray(t) ? B.array : t === null ? B.null : t.then && typeof t.then == "function" && t.catch && typeof t.catch == "function" ? B.promise : typeof Map < "u" && t instanceof Map ? B.map : typeof Set < "u" && t instanceof Set ? B.set : typeof Date < "u" && t instanceof Date ? B.date : B.object;
460
+ return Array.isArray(t) ? G.array : t === null ? G.null : t.then && typeof t.then == "function" && t.catch && typeof t.catch == "function" ? G.promise : typeof Map < "u" && t instanceof Map ? G.map : typeof Set < "u" && t instanceof Set ? G.set : typeof Date < "u" && t instanceof Date ? G.date : G.object;
457
461
  default:
458
- return B.unknown;
462
+ return G.unknown;
459
463
  }
460
464
  }, L = he.arrayToEnum([
461
465
  "invalid_type",
@@ -543,7 +547,7 @@ const qs = (t, e) => {
543
547
  let n;
544
548
  switch (t.code) {
545
549
  case L.invalid_type:
546
- t.received === B.undefined ? n = "Required" : n = `Expected ${t.expected}, received ${t.received}`;
550
+ t.received === G.undefined ? n = "Required" : n = `Expected ${t.expected}, received ${t.received}`;
547
551
  break;
548
552
  case L.invalid_literal:
549
553
  n = `Invalid literal value, expected ${JSON.stringify(t.expected, he.jsonStringifyReplacer)}`;
@@ -903,7 +907,7 @@ let pe = class {
903
907
  });
904
908
  }
905
909
  brand() {
906
- return new Gl({
910
+ return new Bl({
907
911
  typeName: F.ZodBranded,
908
912
  type: this,
909
913
  ...ue(this._def)
@@ -929,7 +933,7 @@ let pe = class {
929
933
  return pi.create(this, e);
930
934
  }
931
935
  readonly() {
932
- return Bs.create(this);
936
+ return Gs.create(this);
933
937
  }
934
938
  isOptional() {
935
939
  return this.safeParse(void 0).success;
@@ -976,11 +980,11 @@ function Wl(t, e) {
976
980
  }
977
981
  let Ls = class mn extends pe {
978
982
  _parse(e) {
979
- if (this._def.coerce && (e.data = String(e.data)), this._getType(e) !== B.string) {
983
+ if (this._def.coerce && (e.data = String(e.data)), this._getType(e) !== G.string) {
980
984
  const i = this._getOrReturnCtx(e);
981
985
  return W(i, {
982
986
  code: L.invalid_type,
983
- expected: B.string,
987
+ expected: G.string,
984
988
  received: i.parsedType
985
989
  }), se;
986
990
  }
@@ -1357,7 +1361,7 @@ Ls.create = (t) => new Ls({
1357
1361
  coerce: t?.coerce ?? !1,
1358
1362
  ...ue(t)
1359
1363
  });
1360
- function Bl(t, e) {
1364
+ function Gl(t, e) {
1361
1365
  const n = (t.toString().split(".")[1] || "").length, r = (e.toString().split(".")[1] || "").length, s = n > r ? n : r, i = Number.parseInt(t.toFixed(s).replace(".", "")), a = Number.parseInt(e.toFixed(s).replace(".", ""));
1362
1366
  return i % a / 10 ** s;
1363
1367
  }
@@ -1366,11 +1370,11 @@ let sa = class Vs extends pe {
1366
1370
  super(...arguments), this.min = this.gte, this.max = this.lte, this.step = this.multipleOf;
1367
1371
  }
1368
1372
  _parse(e) {
1369
- if (this._def.coerce && (e.data = Number(e.data)), this._getType(e) !== B.number) {
1373
+ if (this._def.coerce && (e.data = Number(e.data)), this._getType(e) !== G.number) {
1370
1374
  const i = this._getOrReturnCtx(e);
1371
1375
  return W(i, {
1372
1376
  code: L.invalid_type,
1373
- expected: B.number,
1377
+ expected: G.number,
1374
1378
  received: i.parsedType
1375
1379
  }), se;
1376
1380
  }
@@ -1396,7 +1400,7 @@ let sa = class Vs extends pe {
1396
1400
  inclusive: i.inclusive,
1397
1401
  exact: !1,
1398
1402
  message: i.message
1399
- }), s.dirty()) : i.kind === "multipleOf" ? Bl(e.data, i.value) !== 0 && (r = this._getOrReturnCtx(e, r), W(r, {
1403
+ }), s.dirty()) : i.kind === "multipleOf" ? Gl(e.data, i.value) !== 0 && (r = this._getOrReturnCtx(e, r), W(r, {
1400
1404
  code: L.not_multiple_of,
1401
1405
  multipleOf: i.value,
1402
1406
  message: i.message
@@ -1544,7 +1548,7 @@ class kn extends pe {
1544
1548
  } catch {
1545
1549
  return this._getInvalidInput(e);
1546
1550
  }
1547
- if (this._getType(e) !== B.bigint)
1551
+ if (this._getType(e) !== G.bigint)
1548
1552
  return this._getInvalidInput(e);
1549
1553
  let r;
1550
1554
  const s = new Je();
@@ -1572,7 +1576,7 @@ class kn extends pe {
1572
1576
  const n = this._getOrReturnCtx(e);
1573
1577
  return W(n, {
1574
1578
  code: L.invalid_type,
1575
- expected: B.bigint,
1579
+ expected: G.bigint,
1576
1580
  received: n.parsedType
1577
1581
  }), se;
1578
1582
  }
@@ -1668,11 +1672,11 @@ kn.create = (t) => new kn({
1668
1672
  });
1669
1673
  let Fs = class extends pe {
1670
1674
  _parse(e) {
1671
- if (this._def.coerce && (e.data = !!e.data), this._getType(e) !== B.boolean) {
1675
+ if (this._def.coerce && (e.data = !!e.data), this._getType(e) !== G.boolean) {
1672
1676
  const r = this._getOrReturnCtx(e);
1673
1677
  return W(r, {
1674
1678
  code: L.invalid_type,
1675
- expected: B.boolean,
1679
+ expected: G.boolean,
1676
1680
  received: r.parsedType
1677
1681
  }), se;
1678
1682
  }
@@ -1686,11 +1690,11 @@ Fs.create = (t) => new Fs({
1686
1690
  });
1687
1691
  class jr extends pe {
1688
1692
  _parse(e) {
1689
- if (this._def.coerce && (e.data = new Date(e.data)), this._getType(e) !== B.date) {
1693
+ if (this._def.coerce && (e.data = new Date(e.data)), this._getType(e) !== G.date) {
1690
1694
  const i = this._getOrReturnCtx(e);
1691
1695
  return W(i, {
1692
1696
  code: L.invalid_type,
1693
- expected: B.date,
1697
+ expected: G.date,
1694
1698
  received: i.parsedType
1695
1699
  }), se;
1696
1700
  }
@@ -1764,11 +1768,11 @@ jr.create = (t) => new jr({
1764
1768
  });
1765
1769
  class ia extends pe {
1766
1770
  _parse(e) {
1767
- if (this._getType(e) !== B.symbol) {
1771
+ if (this._getType(e) !== G.symbol) {
1768
1772
  const r = this._getOrReturnCtx(e);
1769
1773
  return W(r, {
1770
1774
  code: L.invalid_type,
1771
- expected: B.symbol,
1775
+ expected: G.symbol,
1772
1776
  received: r.parsedType
1773
1777
  }), se;
1774
1778
  }
@@ -1781,11 +1785,11 @@ ia.create = (t) => new ia({
1781
1785
  });
1782
1786
  class aa extends pe {
1783
1787
  _parse(e) {
1784
- if (this._getType(e) !== B.undefined) {
1788
+ if (this._getType(e) !== G.undefined) {
1785
1789
  const r = this._getOrReturnCtx(e);
1786
1790
  return W(r, {
1787
1791
  code: L.invalid_type,
1788
- expected: B.undefined,
1792
+ expected: G.undefined,
1789
1793
  received: r.parsedType
1790
1794
  }), se;
1791
1795
  }
@@ -1798,11 +1802,11 @@ aa.create = (t) => new aa({
1798
1802
  });
1799
1803
  let oa = class extends pe {
1800
1804
  _parse(e) {
1801
- if (this._getType(e) !== B.null) {
1805
+ if (this._getType(e) !== G.null) {
1802
1806
  const r = this._getOrReturnCtx(e);
1803
1807
  return W(r, {
1804
1808
  code: L.invalid_type,
1805
- expected: B.null,
1809
+ expected: G.null,
1806
1810
  received: r.parsedType
1807
1811
  }), se;
1808
1812
  }
@@ -1842,7 +1846,7 @@ let Nt = class extends pe {
1842
1846
  const n = this._getOrReturnCtx(e);
1843
1847
  return W(n, {
1844
1848
  code: L.invalid_type,
1845
- expected: B.never,
1849
+ expected: G.never,
1846
1850
  received: n.parsedType
1847
1851
  }), se;
1848
1852
  }
@@ -1853,11 +1857,11 @@ Nt.create = (t) => new Nt({
1853
1857
  });
1854
1858
  class la extends pe {
1855
1859
  _parse(e) {
1856
- if (this._getType(e) !== B.undefined) {
1860
+ if (this._getType(e) !== G.undefined) {
1857
1861
  const r = this._getOrReturnCtx(e);
1858
1862
  return W(r, {
1859
1863
  code: L.invalid_type,
1860
- expected: B.void,
1864
+ expected: G.void,
1861
1865
  received: r.parsedType
1862
1866
  }), se;
1863
1867
  }
@@ -1871,10 +1875,10 @@ la.create = (t) => new la({
1871
1875
  let en = class Cr extends pe {
1872
1876
  _parse(e) {
1873
1877
  const { ctx: n, status: r } = this._processInputParams(e), s = this._def;
1874
- if (n.parsedType !== B.array)
1878
+ if (n.parsedType !== G.array)
1875
1879
  return W(n, {
1876
1880
  code: L.invalid_type,
1877
- expected: B.array,
1881
+ expected: G.array,
1878
1882
  received: n.parsedType
1879
1883
  }), se;
1880
1884
  if (s.exactLength !== null) {
@@ -1968,11 +1972,11 @@ let $t = class at extends pe {
1968
1972
  return this._cached = { shape: e, keys: n }, this._cached;
1969
1973
  }
1970
1974
  _parse(e) {
1971
- if (this._getType(e) !== B.object) {
1975
+ if (this._getType(e) !== G.object) {
1972
1976
  const l = this._getOrReturnCtx(e);
1973
1977
  return W(l, {
1974
1978
  code: L.invalid_type,
1975
- expected: B.object,
1979
+ expected: G.object,
1976
1980
  received: l.parsedType
1977
1981
  }), se;
1978
1982
  }
@@ -2321,7 +2325,7 @@ function Us(t, e) {
2321
2325
  const n = It(t), r = It(e);
2322
2326
  if (t === e)
2323
2327
  return { valid: !0, data: t };
2324
- if (n === B.object && r === B.object) {
2328
+ if (n === G.object && r === G.object) {
2325
2329
  const s = he.objectKeys(e), i = he.objectKeys(t).filter((o) => s.indexOf(o) !== -1), a = { ...t, ...e };
2326
2330
  for (const o of i) {
2327
2331
  const c = Us(t[o], e[o]);
@@ -2330,7 +2334,7 @@ function Us(t, e) {
2330
2334
  a[o] = c.data;
2331
2335
  }
2332
2336
  return { valid: !0, data: a };
2333
- } else if (n === B.array && r === B.array) {
2337
+ } else if (n === G.array && r === G.array) {
2334
2338
  if (t.length !== e.length)
2335
2339
  return { valid: !1 };
2336
2340
  const s = [];
@@ -2341,7 +2345,7 @@ function Us(t, e) {
2341
2345
  s.push(c.data);
2342
2346
  }
2343
2347
  return { valid: !0, data: s };
2344
- } else return n === B.date && r === B.date && +t == +e ? { valid: !0, data: t } : { valid: !1 };
2348
+ } else return n === G.date && r === G.date && +t == +e ? { valid: !0, data: t } : { valid: !1 };
2345
2349
  }
2346
2350
  let Mr = class extends pe {
2347
2351
  _parse(e) {
@@ -2384,10 +2388,10 @@ Mr.create = (t, e, n) => new Mr({
2384
2388
  class Ut extends pe {
2385
2389
  _parse(e) {
2386
2390
  const { status: n, ctx: r } = this._processInputParams(e);
2387
- if (r.parsedType !== B.array)
2391
+ if (r.parsedType !== G.array)
2388
2392
  return W(r, {
2389
2393
  code: L.invalid_type,
2390
- expected: B.array,
2394
+ expected: G.array,
2391
2395
  received: r.parsedType
2392
2396
  }), se;
2393
2397
  if (r.data.length < this._def.items.length)
@@ -2440,10 +2444,10 @@ class da extends pe {
2440
2444
  }
2441
2445
  _parse(e) {
2442
2446
  const { status: n, ctx: r } = this._processInputParams(e);
2443
- if (r.parsedType !== B.map)
2447
+ if (r.parsedType !== G.map)
2444
2448
  return W(r, {
2445
2449
  code: L.invalid_type,
2446
- expected: B.map,
2450
+ expected: G.map,
2447
2451
  received: r.parsedType
2448
2452
  }), se;
2449
2453
  const s = this._def.keyType, i = this._def.valueType, a = [...r.data.entries()].map(([o, c], l) => ({
@@ -2482,10 +2486,10 @@ da.create = (t, e, n) => new da({
2482
2486
  class Sn extends pe {
2483
2487
  _parse(e) {
2484
2488
  const { status: n, ctx: r } = this._processInputParams(e);
2485
- if (r.parsedType !== B.set)
2489
+ if (r.parsedType !== G.set)
2486
2490
  return W(r, {
2487
2491
  code: L.invalid_type,
2488
- expected: B.set,
2492
+ expected: G.set,
2489
2493
  received: r.parsedType
2490
2494
  }), se;
2491
2495
  const s = this._def;
@@ -2643,7 +2647,7 @@ fi.create = wc;
2643
2647
  class ha extends pe {
2644
2648
  _parse(e) {
2645
2649
  const n = he.getValidEnumValues(this._def.values), r = this._getOrReturnCtx(e);
2646
- if (r.parsedType !== B.string && r.parsedType !== B.number) {
2650
+ if (r.parsedType !== G.string && r.parsedType !== G.number) {
2647
2651
  const s = he.objectValues(n);
2648
2652
  return W(r, {
2649
2653
  expected: he.joinValues(s),
@@ -2676,13 +2680,13 @@ class Zr extends pe {
2676
2680
  }
2677
2681
  _parse(e) {
2678
2682
  const { ctx: n } = this._processInputParams(e);
2679
- if (n.parsedType !== B.promise && n.common.async === !1)
2683
+ if (n.parsedType !== G.promise && n.common.async === !1)
2680
2684
  return W(n, {
2681
2685
  code: L.invalid_type,
2682
- expected: B.promise,
2686
+ expected: G.promise,
2683
2687
  received: n.parsedType
2684
2688
  }), se;
2685
- const r = n.parsedType === B.promise ? n.data : Promise.resolve(n.data);
2689
+ const r = n.parsedType === G.promise ? n.data : Promise.resolve(n.data);
2686
2690
  return Xe(r.then((s) => this._def.type.parseAsync(s, {
2687
2691
  path: n.path,
2688
2692
  errorMap: n.common.contextualErrorMap
@@ -2788,7 +2792,7 @@ tn.createWithPreprocess = (t, e, n) => new tn({
2788
2792
  });
2789
2793
  let Ct = class extends pe {
2790
2794
  _parse(e) {
2791
- return this._getType(e) === B.undefined ? Xe(void 0) : this._def.innerType._parse(e);
2795
+ return this._getType(e) === G.undefined ? Xe(void 0) : this._def.innerType._parse(e);
2792
2796
  }
2793
2797
  unwrap() {
2794
2798
  return this._def.innerType;
@@ -2801,7 +2805,7 @@ Ct.create = (t, e) => new Ct({
2801
2805
  });
2802
2806
  let nn = class extends pe {
2803
2807
  _parse(e) {
2804
- return this._getType(e) === B.null ? Xe(null) : this._def.innerType._parse(e);
2808
+ return this._getType(e) === G.null ? Xe(null) : this._def.innerType._parse(e);
2805
2809
  }
2806
2810
  unwrap() {
2807
2811
  return this._def.innerType;
@@ -2816,7 +2820,7 @@ let Ks = class extends pe {
2816
2820
  _parse(e) {
2817
2821
  const { ctx: n } = this._processInputParams(e);
2818
2822
  let r = n.data;
2819
- return n.parsedType === B.undefined && (r = this._def.defaultValue()), this._def.innerType._parse({
2823
+ return n.parsedType === G.undefined && (r = this._def.defaultValue()), this._def.innerType._parse({
2820
2824
  data: r,
2821
2825
  path: n.path,
2822
2826
  parent: n
@@ -2877,11 +2881,11 @@ Ws.create = (t, e) => new Ws({
2877
2881
  });
2878
2882
  class ma extends pe {
2879
2883
  _parse(e) {
2880
- if (this._getType(e) !== B.nan) {
2884
+ if (this._getType(e) !== G.nan) {
2881
2885
  const r = this._getOrReturnCtx(e);
2882
2886
  return W(r, {
2883
2887
  code: L.invalid_type,
2884
- expected: B.nan,
2888
+ expected: G.nan,
2885
2889
  received: r.parsedType
2886
2890
  }), se;
2887
2891
  }
@@ -2892,7 +2896,7 @@ ma.create = (t) => new ma({
2892
2896
  typeName: F.ZodNaN,
2893
2897
  ...ue(t)
2894
2898
  });
2895
- class Gl extends pe {
2899
+ class Bl extends pe {
2896
2900
  _parse(e) {
2897
2901
  const { ctx: n } = this._processInputParams(e), r = n.data;
2898
2902
  return this._def.type._parse({
@@ -2945,7 +2949,7 @@ class pi extends pe {
2945
2949
  });
2946
2950
  }
2947
2951
  }
2948
- let Bs = class extends pe {
2952
+ let Gs = class extends pe {
2949
2953
  _parse(e) {
2950
2954
  const n = this._def.innerType._parse(e), r = (s) => (Xt(s) && (s.value = Object.freeze(s.value)), s);
2951
2955
  return Ar(n) ? n.then((s) => r(s)) : r(n);
@@ -2954,7 +2958,7 @@ let Bs = class extends pe {
2954
2958
  return this._def.innerType;
2955
2959
  }
2956
2960
  };
2957
- Bs.create = (t, e) => new Bs({
2961
+ Gs.create = (t, e) => new Gs({
2958
2962
  innerType: t,
2959
2963
  typeName: F.ZodReadonly,
2960
2964
  ...ue(e)
@@ -3565,9 +3569,9 @@ const jd = (t) => {
3565
3569
  continue: !e.abort
3566
3570
  });
3567
3571
  };
3568
- }), Bd = /* @__PURE__ */ A("$ZodCheckLowerCase", (t, e) => {
3572
+ }), Gd = /* @__PURE__ */ A("$ZodCheckLowerCase", (t, e) => {
3569
3573
  e.pattern ?? (e.pattern = qd), ts.init(t, e);
3570
- }), Gd = /* @__PURE__ */ A("$ZodCheckUpperCase", (t, e) => {
3574
+ }), Bd = /* @__PURE__ */ A("$ZodCheckUpperCase", (t, e) => {
3571
3575
  e.pattern ?? (e.pattern = Ld), ts.init(t, e);
3572
3576
  }), Jd = /* @__PURE__ */ A("$ZodCheckIncludes", (t, e) => {
3573
3577
  Ke.init(t, e);
@@ -4220,7 +4224,7 @@ const Lc = /* @__PURE__ */ A("$ZodUnion", (t, e) => {
4220
4224
  return i instanceof Promise || a instanceof Promise ? Promise.all([i, a]).then(([c, l]) => ba(n, c, l)) : ba(n, i, a);
4221
4225
  };
4222
4226
  });
4223
- function Gs(t, e) {
4227
+ function Bs(t, e) {
4224
4228
  if (t === e)
4225
4229
  return { valid: !0, data: t };
4226
4230
  if (t instanceof Date && e instanceof Date && +t == +e)
@@ -4228,7 +4232,7 @@ function Gs(t, e) {
4228
4232
  if (qr(t) && qr(e)) {
4229
4233
  const n = Object.keys(e), r = Object.keys(t).filter((i) => n.indexOf(i) !== -1), s = { ...t, ...e };
4230
4234
  for (const i of r) {
4231
- const a = Gs(t[i], e[i]);
4235
+ const a = Bs(t[i], e[i]);
4232
4236
  if (!a.valid)
4233
4237
  return {
4234
4238
  valid: !1,
@@ -4243,7 +4247,7 @@ function Gs(t, e) {
4243
4247
  return { valid: !1, mergeErrorPath: [] };
4244
4248
  const n = [];
4245
4249
  for (let r = 0; r < t.length; r++) {
4246
- const s = t[r], i = e[r], a = Gs(s, i);
4250
+ const s = t[r], i = e[r], a = Bs(s, i);
4247
4251
  if (!a.valid)
4248
4252
  return {
4249
4253
  valid: !1,
@@ -4258,7 +4262,7 @@ function Gs(t, e) {
4258
4262
  function ba(t, e, n) {
4259
4263
  if (e.issues.length && t.issues.push(...e.issues), n.issues.length && t.issues.push(...n.issues), vn(t))
4260
4264
  return t;
4261
- const r = Gs(e.value, n.value);
4265
+ const r = Bs(e.value, n.value);
4262
4266
  if (!r.valid)
4263
4267
  throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);
4264
4268
  return t.value = r.data, t;
@@ -4426,7 +4430,7 @@ const Wf = /* @__PURE__ */ A("$ZodReadonly", (t, e) => {
4426
4430
  function $a(t) {
4427
4431
  return t.value = Object.freeze(t.value), t;
4428
4432
  }
4429
- const Bf = /* @__PURE__ */ A("$ZodCustom", (t, e) => {
4433
+ const Gf = /* @__PURE__ */ A("$ZodCustom", (t, e) => {
4430
4434
  Ke.init(t, e), Se.init(t, e), t._zod.parse = (n, r) => n, t._zod.check = (n) => {
4431
4435
  const r = n.value, s = e.fn(r);
4432
4436
  if (s instanceof Promise)
@@ -4481,10 +4485,10 @@ class Vc {
4481
4485
  return this._map.has(e);
4482
4486
  }
4483
4487
  }
4484
- function Gf() {
4488
+ function Bf() {
4485
4489
  return new Vc();
4486
4490
  }
4487
- const gn = /* @__PURE__ */ Gf();
4491
+ const gn = /* @__PURE__ */ Bf();
4488
4492
  function Jf(t, e) {
4489
4493
  return new t({
4490
4494
  type: "string",
@@ -4836,14 +4840,14 @@ function Rp(t, e) {
4836
4840
  });
4837
4841
  }
4838
4842
  function Ip(t) {
4839
- return new Bd({
4843
+ return new Gd({
4840
4844
  check: "string_format",
4841
4845
  format: "lowercase",
4842
4846
  ...Y(t)
4843
4847
  });
4844
4848
  }
4845
4849
  function Cp(t) {
4846
- return new Gd({
4850
+ return new Bd({
4847
4851
  check: "string_format",
4848
4852
  format: "uppercase",
4849
4853
  ...Y(t)
@@ -5570,14 +5574,14 @@ function Kc(t) {
5570
5574
  const Wp = /* @__PURE__ */ A("ZodISODate", (t, e) => {
5571
5575
  mf.init(t, e), Pe.init(t, e);
5572
5576
  });
5573
- function Bp(t) {
5577
+ function Gp(t) {
5574
5578
  return _p(Wp, t);
5575
5579
  }
5576
- const Gp = /* @__PURE__ */ A("ZodISOTime", (t, e) => {
5580
+ const Bp = /* @__PURE__ */ A("ZodISOTime", (t, e) => {
5577
5581
  gf.init(t, e), Pe.init(t, e);
5578
5582
  });
5579
5583
  function Jp(t) {
5580
- return bp(Gp, t);
5584
+ return bp(Bp, t);
5581
5585
  }
5582
5586
  const Yp = /* @__PURE__ */ A("ZodISODuration", (t, e) => {
5583
5587
  yf.init(t, e), Pe.init(t, e);
@@ -5621,7 +5625,7 @@ const Xp = (t, e) => {
5621
5625
  ]
5622
5626
  }
5623
5627
  // { parent: true }
5624
- ), t.clone = (n, r) => zt(t, n, r), t.brand = () => t, t.register = (n, r) => (n.add(t, r), t), t.parse = (n, r) => eh(t, n, r, { callee: t.parse }), t.safeParse = (n, r) => nh(t, n, r), t.parseAsync = async (n, r) => th(t, n, r, { callee: t.parseAsync }), t.safeParseAsync = async (n, r) => rh(t, n, r), t.spa = t.safeParseAsync, t.refine = (n, r) => t.check(Wh(n, r)), t.superRefine = (n) => t.check(Bh(n)), t.overwrite = (n) => t.check(xn(n)), t.optional = () => X(t), t.nullable = () => Aa(t), t.nullish = () => X(Aa(t)), t.nonoptional = (n) => Dh(t, n), t.array = () => de(t), t.or = (n) => Te([t, n]), t.and = (n) => wi(t, n), t.transform = (n) => Ys(t, Xc(n)), t.default = (n) => zh(t, n), t.prefault = (n) => Zh(t, n), t.catch = (n) => Lh(t, n), t.pipe = (n) => Ys(t, n), t.readonly = () => Uh(t), t.describe = (n) => {
5628
+ ), t.clone = (n, r) => zt(t, n, r), t.brand = () => t, t.register = (n, r) => (n.add(t, r), t), t.parse = (n, r) => eh(t, n, r, { callee: t.parse }), t.safeParse = (n, r) => nh(t, n, r), t.parseAsync = async (n, r) => th(t, n, r, { callee: t.parseAsync }), t.safeParseAsync = async (n, r) => rh(t, n, r), t.spa = t.safeParseAsync, t.refine = (n, r) => t.check(Wh(n, r)), t.superRefine = (n) => t.check(Gh(n)), t.overwrite = (n) => t.check(xn(n)), t.optional = () => X(t), t.nullable = () => Aa(t), t.nullish = () => X(Aa(t)), t.nonoptional = (n) => Dh(t, n), t.array = () => de(t), t.or = (n) => Te([t, n]), t.and = (n) => wi(t, n), t.transform = (n) => Ys(t, Xc(n)), t.default = (n) => zh(t, n), t.prefault = (n) => Zh(t, n), t.catch = (n) => Lh(t, n), t.pipe = (n) => Ys(t, n), t.readonly = () => Uh(t), t.describe = (n) => {
5625
5629
  const r = t.clone();
5626
5630
  return gn.add(r, { description: n }), r;
5627
5631
  }, Object.defineProperty(t, "description", {
@@ -5639,7 +5643,7 @@ const Xp = (t, e) => {
5639
5643
  const n = t._zod.bag;
5640
5644
  t.format = n.format ?? null, t.minLength = n.minimum ?? null, t.maxLength = n.maximum ?? null, t.regex = (...r) => t.check(Rp(...r)), t.includes = (...r) => t.check(Op(...r)), t.startsWith = (...r) => t.check(Np(...r)), t.endsWith = (...r) => t.check(xp(...r)), t.min = (...r) => t.check(Lr(...r)), t.max = (...r) => t.check(Fc(...r)), t.length = (...r) => t.check(Uc(...r)), t.nonempty = (...r) => t.check(Lr(1, ...r)), t.lowercase = (r) => t.check(Ip(r)), t.uppercase = (r) => t.check(Cp(r)), t.trim = () => t.check(jp()), t.normalize = (...r) => t.check(Ap(...r)), t.toLowerCase = () => t.check(zp()), t.toUpperCase = () => t.check(Mp());
5641
5645
  }), sh = /* @__PURE__ */ A("ZodString", (t, e) => {
5642
- bi.init(t, e), Wc.init(t, e), t.email = (n) => t.check(Yf(ih, n)), t.url = (n) => t.check(np(ah, n)), t.jwt = (n) => t.check(yp(wh, n)), t.emoji = (n) => t.check(rp(oh, n)), t.guid = (n) => t.check(Ea(Na, n)), t.uuid = (n) => t.check(Qf(Ln, n)), t.uuidv4 = (n) => t.check(Xf(Ln, n)), t.uuidv6 = (n) => t.check(ep(Ln, n)), t.uuidv7 = (n) => t.check(tp(Ln, n)), t.nanoid = (n) => t.check(sp(ch, n)), t.guid = (n) => t.check(Ea(Na, n)), t.cuid = (n) => t.check(ip(uh, n)), t.cuid2 = (n) => t.check(ap(lh, n)), t.ulid = (n) => t.check(op(dh, n)), t.base64 = (n) => t.check(hp(vh, n)), t.base64url = (n) => t.check(mp(_h, n)), t.xid = (n) => t.check(cp(fh, n)), t.ksuid = (n) => t.check(up(ph, n)), t.ipv4 = (n) => t.check(lp(hh, n)), t.ipv6 = (n) => t.check(dp(mh, n)), t.cidrv4 = (n) => t.check(fp(gh, n)), t.cidrv6 = (n) => t.check(pp(yh, n)), t.e164 = (n) => t.check(gp(bh, n)), t.datetime = (n) => t.check(Kc(n)), t.date = (n) => t.check(Bp(n)), t.time = (n) => t.check(Jp(n)), t.duration = (n) => t.check(Qp(n));
5646
+ bi.init(t, e), Wc.init(t, e), t.email = (n) => t.check(Yf(ih, n)), t.url = (n) => t.check(np(ah, n)), t.jwt = (n) => t.check(yp(wh, n)), t.emoji = (n) => t.check(rp(oh, n)), t.guid = (n) => t.check(Ea(Na, n)), t.uuid = (n) => t.check(Qf(Ln, n)), t.uuidv4 = (n) => t.check(Xf(Ln, n)), t.uuidv6 = (n) => t.check(ep(Ln, n)), t.uuidv7 = (n) => t.check(tp(Ln, n)), t.nanoid = (n) => t.check(sp(ch, n)), t.guid = (n) => t.check(Ea(Na, n)), t.cuid = (n) => t.check(ip(uh, n)), t.cuid2 = (n) => t.check(ap(lh, n)), t.ulid = (n) => t.check(op(dh, n)), t.base64 = (n) => t.check(hp(vh, n)), t.base64url = (n) => t.check(mp(_h, n)), t.xid = (n) => t.check(cp(fh, n)), t.ksuid = (n) => t.check(up(ph, n)), t.ipv4 = (n) => t.check(lp(hh, n)), t.ipv6 = (n) => t.check(dp(mh, n)), t.cidrv4 = (n) => t.check(fp(gh, n)), t.cidrv6 = (n) => t.check(pp(yh, n)), t.e164 = (n) => t.check(gp(bh, n)), t.datetime = (n) => t.check(Kc(n)), t.date = (n) => t.check(Gp(n)), t.time = (n) => t.check(Jp(n)), t.duration = (n) => t.check(Qp(n));
5643
5647
  });
5644
5648
  function x(t) {
5645
5649
  return Jf(sh, t);
@@ -5684,16 +5688,16 @@ const Pe = /* @__PURE__ */ A("ZodStringFormat", (t, e) => {
5684
5688
  Tf.init(t, e), Pe.init(t, e);
5685
5689
  }), wh = /* @__PURE__ */ A("ZodJWT", (t, e) => {
5686
5690
  Pf.init(t, e), Pe.init(t, e);
5687
- }), Bc = /* @__PURE__ */ A("ZodNumber", (t, e) => {
5691
+ }), Gc = /* @__PURE__ */ A("ZodNumber", (t, e) => {
5688
5692
  Dc.init(t, e), Ee.init(t, e), t.gt = (r, s) => t.check(Ra(r, s)), t.gte = (r, s) => t.check(_s(r, s)), t.min = (r, s) => t.check(_s(r, s)), t.lt = (r, s) => t.check(Pa(r, s)), t.lte = (r, s) => t.check(vs(r, s)), t.max = (r, s) => t.check(vs(r, s)), t.int = (r) => t.check(xa(r)), t.safe = (r) => t.check(xa(r)), t.positive = (r) => t.check(Ra(0, r)), t.nonnegative = (r) => t.check(_s(0, r)), t.negative = (r) => t.check(Pa(0, r)), t.nonpositive = (r) => t.check(vs(0, r)), t.multipleOf = (r, s) => t.check(Ia(r, s)), t.step = (r, s) => t.check(Ia(r, s)), t.finite = () => t;
5689
5693
  const n = t._zod.bag;
5690
5694
  t.minValue = Math.max(n.minimum ?? Number.NEGATIVE_INFINITY, n.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null, t.maxValue = Math.min(n.maximum ?? Number.POSITIVE_INFINITY, n.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null, t.isInt = (n.format ?? "").includes("int") || Number.isSafeInteger(n.multipleOf ?? 0.5), t.isFinite = !0, t.format = n.format ?? null;
5691
5695
  });
5692
5696
  function ke(t) {
5693
- return kp(Bc, t);
5697
+ return kp(Gc, t);
5694
5698
  }
5695
5699
  const kh = /* @__PURE__ */ A("ZodNumberFormat", (t, e) => {
5696
- Rf.init(t, e), Bc.init(t, e);
5700
+ Rf.init(t, e), Gc.init(t, e);
5697
5701
  });
5698
5702
  function xa(t) {
5699
5703
  return Sp(kh, t);
@@ -5707,7 +5711,7 @@ function Me(t) {
5707
5711
  const $h = /* @__PURE__ */ A("ZodNull", (t, e) => {
5708
5712
  Cf.init(t, e), Ee.init(t, e);
5709
5713
  });
5710
- function Gc(t) {
5714
+ function Bc(t) {
5711
5715
  return Tp($h, t);
5712
5716
  }
5713
5717
  const Th = /* @__PURE__ */ A("ZodUnknown", (t, e) => {
@@ -5951,7 +5955,7 @@ function Uh(t) {
5951
5955
  });
5952
5956
  }
5953
5957
  const nu = /* @__PURE__ */ A("ZodCustom", (t, e) => {
5954
- Bf.init(t, e), Ee.init(t, e);
5958
+ Gf.init(t, e), Ee.init(t, e);
5955
5959
  });
5956
5960
  function Hh(t) {
5957
5961
  const e = new Ke({
@@ -5966,7 +5970,7 @@ function Kh(t, e) {
5966
5970
  function Wh(t, e = {}) {
5967
5971
  return qp(nu, t, e);
5968
5972
  }
5969
- function Bh(t) {
5973
+ function Gh(t) {
5970
5974
  const e = Hh((n) => (n.addIssue = (r) => {
5971
5975
  if (typeof r == "string")
5972
5976
  n.issues.push(Tn(r, n.value, e._zod.def));
@@ -5980,12 +5984,12 @@ function Bh(t) {
5980
5984
  function ru(t, e) {
5981
5985
  return Ys(Xc(t), e);
5982
5986
  }
5983
- const su = "2025-11-25", Gh = [su, "2025-06-18", "2025-03-26", "2024-11-05", "2024-10-07"], bt = "io.modelcontextprotocol/related-task", rs = "2.0", mt = Kh((t) => t !== null && (typeof t == "object" || typeof t == "function")), iu = Te([x(), ke().int()]), au = x(), Jh = lt({
5987
+ const su = "2025-11-25", Bh = [su, "2025-06-18", "2025-03-26", "2024-11-05", "2024-10-07"], bt = "io.modelcontextprotocol/related-task", rs = "2.0", mt = Kh((t) => t !== null && (typeof t == "object" || typeof t == "function")), iu = Te([x(), ke().int()]), au = x(), Jh = lt({
5984
5988
  /**
5985
5989
  * Time in milliseconds to keep task results available after completion.
5986
5990
  * If null, the task has unlimited lifetime until manually cleaned up.
5987
5991
  */
5988
- ttl: Te([ke(), Gc()]).optional(),
5992
+ ttl: Te([ke(), Bc()]).optional(),
5989
5993
  /**
5990
5994
  * Time in milliseconds to wait between task status requests.
5991
5995
  */
@@ -6341,7 +6345,7 @@ const lu = U({
6341
6345
  * Time in milliseconds to keep task results available after completion.
6342
6346
  * If null, the task has unlimited lifetime until manually cleaned up.
6343
6347
  */
6344
- ttl: Te([ke(), Gc()]),
6348
+ ttl: Te([ke(), Bc()]),
6345
6349
  /**
6346
6350
  * ISO 8601 timestamp when the task was created.
6347
6351
  */
@@ -6828,7 +6832,7 @@ const Vm = We.extend({
6828
6832
  * A hint for a model name.
6829
6833
  */
6830
6834
  name: x().optional()
6831
- }), Bm = U({
6835
+ }), Gm = U({
6832
6836
  /**
6833
6837
  * Optional hints to use for model selection.
6834
6838
  */
@@ -6845,7 +6849,7 @@ const Vm = We.extend({
6845
6849
  * How much to prioritize intelligence and capabilities when selecting a model.
6846
6850
  */
6847
6851
  intelligencePriority: X(ke().min(0).max(1))
6848
- }), Gm = U({
6852
+ }), Bm = U({
6849
6853
  /**
6850
6854
  * Controls when tools are used:
6851
6855
  * - "auto": Model decides whether to use tools (default)
@@ -6883,7 +6887,7 @@ const Vm = We.extend({
6883
6887
  /**
6884
6888
  * The server's preferences for which model to select. The client MAY modify or omit this request.
6885
6889
  */
6886
- modelPreferences: Bm.optional(),
6890
+ modelPreferences: Gm.optional(),
6887
6891
  /**
6888
6892
  * An optional system prompt the server wants to use for sampling. The client MAY modify or omit this prompt.
6889
6893
  */
@@ -6918,7 +6922,7 @@ const Vm = We.extend({
6918
6922
  * The client MUST return an error if this field is provided but ClientCapabilities.sampling.tools is not declared.
6919
6923
  * Default is `{ mode: "auto" }`.
6920
6924
  */
6921
- toolChoice: X(Gm)
6925
+ toolChoice: X(Bm)
6922
6926
  }), eg = ze.extend({
6923
6927
  method: ee("sampling/createMessage"),
6924
6928
  params: Xm
@@ -7820,7 +7824,7 @@ function Wg(t) {
7820
7824
  })
7821
7825
  };
7822
7826
  }
7823
- function Bg(t) {
7827
+ function Gg(t) {
7824
7828
  return t.target === "openApi3" ? {
7825
7829
  enum: ["null"],
7826
7830
  nullable: !0
@@ -7835,7 +7839,7 @@ const Kr = {
7835
7839
  ZodBoolean: "boolean",
7836
7840
  ZodNull: "null"
7837
7841
  };
7838
- function Gg(t, e) {
7842
+ function Bg(t, e) {
7839
7843
  if (e.target === "openApi3")
7840
7844
  return Za(t, e);
7841
7845
  const n = t.options instanceof Map ? Array.from(t.options.values()) : t.options;
@@ -8074,12 +8078,12 @@ const cy = (t, e) => ye(t.innerType._def, e), uy = (t, e, n) => {
8074
8078
  case F.ZodUndefined:
8075
8079
  return ay(n);
8076
8080
  case F.ZodNull:
8077
- return Bg(n);
8081
+ return Gg(n);
8078
8082
  case F.ZodArray:
8079
8083
  return Ng(t, n);
8080
8084
  case F.ZodUnion:
8081
8085
  case F.ZodDiscriminatedUnion:
8082
- return Gg(t, n);
8086
+ return Bg(t, n);
8083
8087
  case F.ZodIntersection:
8084
8088
  return Lg(t, n);
8085
8089
  case F.ZodTuple:
@@ -9281,8 +9285,8 @@ function oe() {
9281
9285
  super(), this.varKind = k, this.name = T, this.rhs = j;
9282
9286
  }
9283
9287
  render({ es5: k, _n: T }) {
9284
- const j = k ? n.varKinds.var : this.varKind, G = this.rhs === void 0 ? "" : ` = ${this.rhs}`;
9285
- return `${j} ${this.name}${G};` + T;
9288
+ const j = k ? n.varKinds.var : this.varKind, B = this.rhs === void 0 ? "" : ` = ${this.rhs}`;
9289
+ return `${j} ${this.name}${B};` + T;
9286
9290
  }
9287
9291
  optimizeNames(k, T) {
9288
9292
  if (k[this.name.str])
@@ -9309,8 +9313,8 @@ function oe() {
9309
9313
  }
9310
9314
  }
9311
9315
  class c extends o {
9312
- constructor(k, T, j, G) {
9313
- super(k, j, G), this.op = T;
9316
+ constructor(k, T, j, B) {
9317
+ super(k, j, B), this.op = T;
9314
9318
  }
9315
9319
  render({ _n: k }) {
9316
9320
  return `${this.lhs} ${this.op}= ${this.rhs};` + k;
@@ -9378,10 +9382,10 @@ function oe() {
9378
9382
  }
9379
9383
  optimizeNames(k, T) {
9380
9384
  const { nodes: j } = this;
9381
- let G = j.length;
9382
- for (; G--; ) {
9383
- const te = j[G];
9384
- te.optimizeNames(k, T) || (ie(k, te.names), j.splice(G, 1));
9385
+ let B = j.length;
9386
+ for (; B--; ) {
9387
+ const te = j[B];
9388
+ te.optimizeNames(k, T) || (ie(k, te.names), j.splice(B, 1));
9385
9389
  }
9386
9390
  return j.length > 0 ? this : void 0;
9387
9391
  }
@@ -9452,12 +9456,12 @@ function oe() {
9452
9456
  }
9453
9457
  }
9454
9458
  class _ extends u {
9455
- constructor(k, T, j, G) {
9456
- super(), this.varKind = k, this.name = T, this.from = j, this.to = G;
9459
+ constructor(k, T, j, B) {
9460
+ super(), this.varKind = k, this.name = T, this.from = j, this.to = B;
9457
9461
  }
9458
9462
  render(k) {
9459
- const T = k.es5 ? n.varKinds.var : this.varKind, { name: j, from: G, to: te } = this;
9460
- return `for(${T} ${j}=${G}; ${j}<${te}; ${j}++)` + super.render(k);
9463
+ const T = k.es5 ? n.varKinds.var : this.varKind, { name: j, from: B, to: te } = this;
9464
+ return `for(${T} ${j}=${B}; ${j}<${te}; ${j}++)` + super.render(k);
9461
9465
  }
9462
9466
  get names() {
9463
9467
  const k = q(super.names, this.from);
@@ -9465,8 +9469,8 @@ function oe() {
9465
9469
  }
9466
9470
  }
9467
9471
  class w extends u {
9468
- constructor(k, T, j, G) {
9469
- super(), this.loop = k, this.varKind = T, this.name = j, this.iterable = G;
9472
+ constructor(k, T, j, B) {
9473
+ super(), this.loop = k, this.varKind = T, this.name = j, this.iterable = B;
9470
9474
  }
9471
9475
  render(k) {
9472
9476
  return `for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})` + super.render(k);
@@ -9504,8 +9508,8 @@ function oe() {
9504
9508
  return super.optimizeNodes(), (k = this.catch) === null || k === void 0 || k.optimizeNodes(), (T = this.finally) === null || T === void 0 || T.optimizeNodes(), this;
9505
9509
  }
9506
9510
  optimizeNames(k, T) {
9507
- var j, G;
9508
- return super.optimizeNames(k, T), (j = this.catch) === null || j === void 0 || j.optimizeNames(k, T), (G = this.finally) === null || G === void 0 || G.optimizeNames(k, T), this;
9511
+ var j, B;
9512
+ return super.optimizeNames(k, T), (j = this.catch) === null || j === void 0 || j.optimizeNames(k, T), (B = this.finally) === null || B === void 0 || B.optimizeNames(k, T), this;
9509
9513
  }
9510
9514
  get names() {
9511
9515
  const k = super.names;
@@ -9559,9 +9563,9 @@ function oe() {
9559
9563
  scopeCode() {
9560
9564
  return this._extScope.scopeCode(this._values);
9561
9565
  }
9562
- _def(k, T, j, G) {
9566
+ _def(k, T, j, B) {
9563
9567
  const te = this._scope.toName(T);
9564
- return j !== void 0 && G && (this._constants[te.str] = j), this._leafNode(new a(k, te, j)), te;
9568
+ return j !== void 0 && B && (this._constants[te.str] = j), this._leafNode(new a(k, te, j)), te;
9565
9569
  }
9566
9570
  // `const` declaration (`var` in es5 mode)
9567
9571
  const(k, T, j) {
@@ -9590,8 +9594,8 @@ function oe() {
9590
9594
  // returns code for object literal for the passed argument list of key-value pairs
9591
9595
  object(...k) {
9592
9596
  const T = ["{"];
9593
- for (const [j, G] of k)
9594
- T.length > 1 && T.push(","), T.push(j), (j !== G || this.opts.es5) && (T.push(":"), (0, e.addCodeArg)(T, G));
9597
+ for (const [j, B] of k)
9598
+ T.length > 1 && T.push(","), T.push(j), (j !== B || this.opts.es5) && (T.push(":"), (0, e.addCodeArg)(T, B));
9595
9599
  return T.push("}"), new e._Code(T);
9596
9600
  }
9597
9601
  // `if` clause (or statement if `thenBody` and, optionally, `elseBody` are passed)
@@ -9624,12 +9628,12 @@ function oe() {
9624
9628
  return this._for(new p(k), T);
9625
9629
  }
9626
9630
  // `for` statement for a range of values
9627
- forRange(k, T, j, G, te = this.opts.es5 ? n.varKinds.var : n.varKinds.let) {
9631
+ forRange(k, T, j, B, te = this.opts.es5 ? n.varKinds.var : n.varKinds.let) {
9628
9632
  const ge = this._scope.toName(k);
9629
- return this._for(new _(te, ge, T, j), () => G(ge));
9633
+ return this._for(new _(te, ge, T, j), () => B(ge));
9630
9634
  }
9631
9635
  // `for-of` statement (in es5 mode replace with a normal for loop)
9632
- forOf(k, T, j, G = n.varKinds.const) {
9636
+ forOf(k, T, j, B = n.varKinds.const) {
9633
9637
  const te = this._scope.toName(k);
9634
9638
  if (this.opts.es5) {
9635
9639
  const ge = T instanceof e.Name ? T : this.var("_arr", T);
@@ -9637,15 +9641,15 @@ function oe() {
9637
9641
  this.var(te, (0, e._)`${ge}[${le}]`), j(te);
9638
9642
  });
9639
9643
  }
9640
- return this._for(new w("of", G, te, T), () => j(te));
9644
+ return this._for(new w("of", B, te, T), () => j(te));
9641
9645
  }
9642
9646
  // `for-in` statement.
9643
9647
  // With option `ownProperties` replaced with a `for-of` loop for object keys
9644
- forIn(k, T, j, G = this.opts.es5 ? n.varKinds.var : n.varKinds.const) {
9648
+ forIn(k, T, j, B = this.opts.es5 ? n.varKinds.var : n.varKinds.const) {
9645
9649
  if (this.opts.ownProperties)
9646
9650
  return this.forOf(k, (0, e._)`Object.keys(${T})`, j);
9647
9651
  const te = this._scope.toName(k);
9648
- return this._for(new w("in", G, te, T), () => j(te));
9652
+ return this._for(new w("in", B, te, T), () => j(te));
9649
9653
  }
9650
9654
  // end `for` loop
9651
9655
  endFor() {
@@ -9670,12 +9674,12 @@ function oe() {
9670
9674
  try(k, T, j) {
9671
9675
  if (!T && !j)
9672
9676
  throw new Error('CodeGen: "try" without "catch" and "finally"');
9673
- const G = new E();
9674
- if (this._blockNode(G), this.code(k), T) {
9677
+ const B = new E();
9678
+ if (this._blockNode(B), this.code(k), T) {
9675
9679
  const te = this.name("e");
9676
- this._currNode = G.catch = new R(te), T(te);
9680
+ this._currNode = B.catch = new R(te), T(te);
9677
9681
  }
9678
- return j && (this._currNode = G.finally = new z(), this.code(j)), this._endBlockNode(R, z);
9682
+ return j && (this._currNode = B.finally = new z(), this.code(j)), this._endBlockNode(R, z);
9679
9683
  }
9680
9684
  // `throw` statement
9681
9685
  throw(k) {
@@ -9696,8 +9700,8 @@ function oe() {
9696
9700
  return this._nodes.length = T, this;
9697
9701
  }
9698
9702
  // `function` heading (or definition if funcBody is passed)
9699
- func(k, T = e.nil, j, G) {
9700
- return this._blockNode(new g(k, T, j)), G && this.code(G).endFunc(), this;
9703
+ func(k, T = e.nil, j, B) {
9704
+ return this._blockNode(new g(k, T, j)), B && this.code(B).endFunc(), this;
9701
9705
  }
9702
9706
  // end function definition
9703
9707
  endFunc() {
@@ -9749,14 +9753,14 @@ function oe() {
9749
9753
  function H(N, k, T) {
9750
9754
  if (N instanceof e.Name)
9751
9755
  return j(N);
9752
- if (!G(N))
9756
+ if (!B(N))
9753
9757
  return N;
9754
9758
  return new e._Code(N._items.reduce((te, ge) => (ge instanceof e.Name && (ge = j(ge)), ge instanceof e._Code ? te.push(...ge._items) : te.push(ge), te), []));
9755
9759
  function j(te) {
9756
9760
  const ge = T[te.str];
9757
9761
  return ge === void 0 || k[te.str] !== 1 ? te : (delete k[te.str], ge);
9758
9762
  }
9759
- function G(te) {
9763
+ function B(te) {
9760
9764
  return te instanceof e._Code && te._items.some((ge) => ge instanceof e.Name && k[ge.str] === 1 && T[ge.str] !== void 0);
9761
9765
  }
9762
9766
  }
@@ -9927,10 +9931,10 @@ function me() {
9927
9931
  }
9928
9932
  return ae.checkStrictMode = _, ae;
9929
9933
  }
9930
- var Un = {}, Ba;
9934
+ var Un = {}, Ga;
9931
9935
  function Mt() {
9932
- if (Ba) return Un;
9933
- Ba = 1, Object.defineProperty(Un, "__esModule", { value: !0 });
9936
+ if (Ga) return Un;
9937
+ Ga = 1, Object.defineProperty(Un, "__esModule", { value: !0 });
9934
9938
  const t = oe(), e = {
9935
9939
  // validation function arguments
9936
9940
  data: new t.Name("data"),
@@ -9962,9 +9966,9 @@ function Mt() {
9962
9966
  };
9963
9967
  return Un.default = e, Un;
9964
9968
  }
9965
- var Ga;
9969
+ var Ba;
9966
9970
  function as() {
9967
- return Ga || (Ga = 1, function(t) {
9971
+ return Ba || (Ba = 1, function(t) {
9968
9972
  Object.defineProperty(t, "__esModule", { value: !0 }), t.extendErrors = t.resetErrorsCount = t.reportExtraError = t.reportError = t.keyword$DataError = t.keywordError = void 0;
9969
9973
  const e = oe(), n = me(), r = Mt();
9970
9974
  t.keywordError = {
@@ -10116,7 +10120,7 @@ function Cu() {
10116
10120
  return yt.shouldUseRule = n, yt;
10117
10121
  }
10118
10122
  var Xa;
10119
- function Br() {
10123
+ function Gr() {
10120
10124
  if (Xa) return je;
10121
10125
  Xa = 1, Object.defineProperty(je, "__esModule", { value: !0 }), je.reportTypeError = je.checkDataTypes = je.checkDataType = je.coerceAndCheckDataType = je.getJSONTypes = je.getSchemaTypes = je.DataType = void 0;
10122
10126
  const t = Iu(), e = Cu(), n = as(), r = oe(), s = me();
@@ -10760,7 +10764,7 @@ var oo;
10760
10764
  function cs() {
10761
10765
  if (oo) return gt;
10762
10766
  oo = 1, Object.defineProperty(gt, "__esModule", { value: !0 }), gt.getData = gt.KeywordCxt = gt.validateFunctionCode = void 0;
10763
- const t = yy(), e = Br(), n = Cu(), r = Br(), s = vy(), i = _y(), a = by(), o = oe(), c = Mt(), l = os(), d = me(), h = as();
10767
+ const t = yy(), e = Gr(), n = Cu(), r = Gr(), s = vy(), i = _y(), a = by(), o = oe(), c = Mt(), l = os(), d = me(), h = as();
10764
10768
  function S(P) {
10765
10769
  if (w(P) && ($(P), _(P))) {
10766
10770
  f(P);
@@ -10866,7 +10870,7 @@ function cs() {
10866
10870
  function ve(P, O, Z, K) {
10867
10871
  const { gen: Q, schema: ce, data: xe, allErrors: nt, opts: Fe, self: Ue } = P, { RULES: Ae } = Ue;
10868
10872
  if (ce.$ref && (Fe.ignoreKeywordsWithRef || !(0, d.schemaHasRulesButRef)(ce, Ae))) {
10869
- Q.block(() => G(P, "$ref", Ae.all.$ref.definition));
10873
+ Q.block(() => B(P, "$ref", Ae.all.$ref.definition));
10870
10874
  return;
10871
10875
  }
10872
10876
  Fe.jtd || fe(P, O), Q.block(() => {
@@ -10882,7 +10886,7 @@ function cs() {
10882
10886
  const { gen: Z, schema: K, opts: { useDefaults: Q } } = P;
10883
10887
  Q && (0, s.assignDefaults)(P, O.type), Z.block(() => {
10884
10888
  for (const ce of O.rules)
10885
- (0, n.shouldUseRule)(K, ce) && G(P, ce.keyword, ce.definition, O.type);
10889
+ (0, n.shouldUseRule)(K, ce) && B(P, ce.keyword, ce.definition, O.type);
10886
10890
  });
10887
10891
  }
10888
10892
  function fe(P, O) {
@@ -11030,7 +11034,7 @@ function cs() {
11030
11034
  }
11031
11035
  }
11032
11036
  gt.KeywordCxt = j;
11033
- function G(P, O, Z, K) {
11037
+ function B(P, O, Z, K) {
11034
11038
  const Q = new j(P, Z, O);
11035
11039
  "code" in Z ? Z.code(Q, K) : Q.$data && Z.validate ? (0, i.funcKeywordCode)(Q, Z) : "macro" in Z ? (0, i.macroKeywordCode)(Q, Z) : (Z.compile || Z.validate) && (0, i.funcKeywordCode)(Q, Z);
11036
11040
  }
@@ -11092,10 +11096,10 @@ function us() {
11092
11096
  }
11093
11097
  return Kn.default = e, Kn;
11094
11098
  }
11095
- var Be = {}, lo;
11099
+ var Ge = {}, lo;
11096
11100
  function qi() {
11097
- if (lo) return Be;
11098
- lo = 1, Object.defineProperty(Be, "__esModule", { value: !0 }), Be.resolveSchema = Be.getCompilingSchema = Be.resolveRef = Be.compileSchema = Be.SchemaEnv = void 0;
11101
+ if (lo) return Ge;
11102
+ lo = 1, Object.defineProperty(Ge, "__esModule", { value: !0 }), Ge.resolveSchema = Ge.getCompilingSchema = Ge.resolveRef = Ge.compileSchema = Ge.SchemaEnv = void 0;
11099
11103
  const t = oe(), e = Di(), n = Mt(), r = os(), s = me(), i = cs();
11100
11104
  class a {
11101
11105
  constructor(m) {
@@ -11105,7 +11109,7 @@ function qi() {
11105
11109
  typeof m.schema == "object" && (p = m.schema), this.schema = m.schema, this.schemaId = m.schemaId, this.root = m.root || this, this.baseId = (u = m.baseId) !== null && u !== void 0 ? u : (0, r.normalizeId)(p?.[m.schemaId || "$id"]), this.schemaPath = m.schemaPath, this.localRefs = m.localRefs, this.meta = m.meta, this.$async = p?.$async, this.refs = {};
11106
11110
  }
11107
11111
  }
11108
- Be.SchemaEnv = a;
11112
+ Ge.SchemaEnv = a;
11109
11113
  function o(f) {
11110
11114
  const m = d.call(this, f);
11111
11115
  if (m)
@@ -11165,7 +11169,7 @@ function qi() {
11165
11169
  this._compilations.delete(f);
11166
11170
  }
11167
11171
  }
11168
- Be.compileSchema = o;
11172
+ Ge.compileSchema = o;
11169
11173
  function c(f, m, u) {
11170
11174
  var p;
11171
11175
  u = (0, r.resolveUrl)(this.opts.uriResolver, m, u);
@@ -11180,7 +11184,7 @@ function qi() {
11180
11184
  if (w !== void 0)
11181
11185
  return f.refs[u] = l.call(this, w);
11182
11186
  }
11183
- Be.resolveRef = c;
11187
+ Ge.resolveRef = c;
11184
11188
  function l(f) {
11185
11189
  return (0, r.inlineRef)(f.schema, this.opts.inlineRefs) ? f.schema : f.validate ? f : o.call(this, f);
11186
11190
  }
@@ -11189,7 +11193,7 @@ function qi() {
11189
11193
  if (h(m, f))
11190
11194
  return m;
11191
11195
  }
11192
- Be.getCompilingSchema = d;
11196
+ Ge.getCompilingSchema = d;
11193
11197
  function h(f, m) {
11194
11198
  return f.schema === m.schema && f.root === m.root && f.baseId === m.baseId;
11195
11199
  }
@@ -11217,7 +11221,7 @@ function qi() {
11217
11221
  return y.call(this, u, g);
11218
11222
  }
11219
11223
  }
11220
- Be.resolveSchema = b;
11224
+ Ge.resolveSchema = b;
11221
11225
  const v = /* @__PURE__ */ new Set([
11222
11226
  "properties",
11223
11227
  "patternProperties",
@@ -11248,7 +11252,7 @@ function qi() {
11248
11252
  if (w = w || new a({ schema: u, schemaId: g, root: p, baseId: m }), w.schema !== w.root.schema)
11249
11253
  return w;
11250
11254
  }
11251
- return Be;
11255
+ return Ge;
11252
11256
  }
11253
11257
  const ky = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", Sy = "Meta-schema for $data reference (JSON AnySchema extension proposal)", $y = "object", Ty = ["$data"], Ey = { $data: { type: "string", anyOf: [{ format: "relative-json-pointer" }, { format: "json-pointer" }] } }, Py = !1, Ry = {
11254
11258
  $id: ky,
@@ -11642,7 +11646,7 @@ function Ay() {
11642
11646
  } }), Object.defineProperty(t, "CodeGen", { enumerable: !0, get: function() {
11643
11647
  return n.CodeGen;
11644
11648
  } });
11645
- const r = Di(), s = us(), i = Iu(), a = qi(), o = oe(), c = os(), l = Br(), d = me(), h = Ry, S = xy(), b = (V, I) => new RegExp(V, I);
11649
+ const r = Di(), s = us(), i = Iu(), a = qi(), o = oe(), c = os(), l = Gr(), d = me(), h = Ry, S = xy(), b = (V, I) => new RegExp(V, I);
11646
11650
  b.code = "new RegExp";
11647
11651
  const v = ["removeAdditional", "useDefaults", "coerceTypes"], y = /* @__PURE__ */ new Set([
11648
11652
  "validate",
@@ -11680,15 +11684,15 @@ function Ay() {
11680
11684
  unicode: '"minLength"/"maxLength" account for unicode characters by default.'
11681
11685
  }, u = 200;
11682
11686
  function p(V) {
11683
- var I, D, N, k, T, j, G, te, ge, le, P, O, Z, K, Q, ce, xe, nt, Fe, Ue, Ae, Wt, Ye, hs, ms;
11684
- const on = V.strict, gs = (I = V.code) === null || I === void 0 ? void 0 : I.optimize, Bi = gs === !0 || gs === void 0 ? 1 : gs || 0, Gi = (N = (D = V.code) === null || D === void 0 ? void 0 : D.regExp) !== null && N !== void 0 ? N : b, Xu = (k = V.uriResolver) !== null && k !== void 0 ? k : S.default;
11687
+ var I, D, N, k, T, j, B, te, ge, le, P, O, Z, K, Q, ce, xe, nt, Fe, Ue, Ae, Wt, Ye, hs, ms;
11688
+ const on = V.strict, gs = (I = V.code) === null || I === void 0 ? void 0 : I.optimize, Gi = gs === !0 || gs === void 0 ? 1 : gs || 0, Bi = (N = (D = V.code) === null || D === void 0 ? void 0 : D.regExp) !== null && N !== void 0 ? N : b, Xu = (k = V.uriResolver) !== null && k !== void 0 ? k : S.default;
11685
11689
  return {
11686
11690
  strictSchema: (j = (T = V.strictSchema) !== null && T !== void 0 ? T : on) !== null && j !== void 0 ? j : !0,
11687
- strictNumbers: (te = (G = V.strictNumbers) !== null && G !== void 0 ? G : on) !== null && te !== void 0 ? te : !0,
11691
+ strictNumbers: (te = (B = V.strictNumbers) !== null && B !== void 0 ? B : on) !== null && te !== void 0 ? te : !0,
11688
11692
  strictTypes: (le = (ge = V.strictTypes) !== null && ge !== void 0 ? ge : on) !== null && le !== void 0 ? le : "log",
11689
11693
  strictTuples: (O = (P = V.strictTuples) !== null && P !== void 0 ? P : on) !== null && O !== void 0 ? O : "log",
11690
11694
  strictRequired: (K = (Z = V.strictRequired) !== null && Z !== void 0 ? Z : on) !== null && K !== void 0 ? K : !1,
11691
- code: V.code ? { ...V.code, optimize: Bi, regExp: Gi } : { optimize: Bi, regExp: Gi },
11695
+ code: V.code ? { ...V.code, optimize: Gi, regExp: Bi } : { optimize: Gi, regExp: Bi },
11692
11696
  loopRequired: (Q = V.loopRequired) !== null && Q !== void 0 ? Q : u,
11693
11697
  loopEnum: (ce = V.loopEnum) !== null && ce !== void 0 ? ce : u,
11694
11698
  meta: (xe = V.meta) !== null && xe !== void 0 ? xe : !0,
@@ -11756,10 +11760,10 @@ function Ay() {
11756
11760
  } catch (P) {
11757
11761
  if (!(P instanceof s.default))
11758
11762
  throw P;
11759
- return G.call(this, P), await te.call(this, P.missingSchema), j.call(this, le);
11763
+ return B.call(this, P), await te.call(this, P.missingSchema), j.call(this, le);
11760
11764
  }
11761
11765
  }
11762
- function G({ missingSchema: le, missingRef: P }) {
11766
+ function B({ missingSchema: le, missingRef: P }) {
11763
11767
  if (this.refs[le])
11764
11768
  throw new Error(`AnySchema ${le} is loaded but ${P} cannot be resolved`);
11765
11769
  }
@@ -11907,14 +11911,14 @@ function Ay() {
11907
11911
  for (const k of D) {
11908
11912
  const T = k.split("/").slice(1);
11909
11913
  let j = I;
11910
- for (const G of T)
11911
- j = j[G];
11912
- for (const G in N) {
11913
- const te = N[G];
11914
+ for (const B of T)
11915
+ j = j[B];
11916
+ for (const B in N) {
11917
+ const te = N[B];
11914
11918
  if (typeof te != "object")
11915
11919
  continue;
11916
- const { $data: ge } = te.definition, le = j[G];
11917
- ge && le && (j[G] = tt(le));
11920
+ const { $data: ge } = te.definition, le = j[B];
11921
+ ge && le && (j[B] = tt(le));
11918
11922
  }
11919
11923
  }
11920
11924
  return I;
@@ -11927,9 +11931,9 @@ function Ay() {
11927
11931
  }
11928
11932
  _addSchema(I, D, N, k = this.opts.validateSchema, T = this.opts.addUsedSchema) {
11929
11933
  let j;
11930
- const { schemaId: G } = this.opts;
11934
+ const { schemaId: B } = this.opts;
11931
11935
  if (typeof I == "object")
11932
- j = I[G];
11936
+ j = I[B];
11933
11937
  else {
11934
11938
  if (this.opts.jtd)
11935
11939
  throw new Error("schema must be object");
@@ -11941,7 +11945,7 @@ function Ay() {
11941
11945
  return te;
11942
11946
  N = (0, c.normalizeId)(j || N);
11943
11947
  const ge = c.getSchemaRefs.call(this, I, N);
11944
- return te = new a.SchemaEnv({ schema: I, schemaId: G, meta: D, baseId: N, localRefs: ge }), this._cache.set(te.schema, te), T && !N.startsWith("#") && (N && this._checkUnique(N), this.refs[N] = te), k && this.validateSchema(I, !0), te;
11948
+ return te = new a.SchemaEnv({ schema: I, schemaId: B, meta: D, baseId: N, localRefs: ge }), this._cache.set(te.schema, te), T && !N.startsWith("#") && (N && this._checkUnique(N), this.refs[N] = te), k && this.validateSchema(I, !0), te;
11945
11949
  }
11946
11950
  _checkUnique(I) {
11947
11951
  if (this.schemas[I] || this.refs[I])
@@ -12037,7 +12041,7 @@ function Ay() {
12037
12041
  let j = k ? T.post : T.rules.find(({ type: te }) => te === D);
12038
12042
  if (j || (j = { type: D, rules: [] }, T.rules.push(j)), T.keywords[V] = !0, !I)
12039
12043
  return;
12040
- const G = {
12044
+ const B = {
12041
12045
  keyword: V,
12042
12046
  definition: {
12043
12047
  ...I,
@@ -12045,7 +12049,7 @@ function Ay() {
12045
12049
  schemaType: (0, l.getJSONTypes)(I.schemaType)
12046
12050
  }
12047
12051
  };
12048
- I.before ? ve.call(this, j, G, I.before) : j.rules.push(G), T.all[V] = G, (N = I.implements) === null || N === void 0 || N.forEach((te) => this.addKeyword(te));
12052
+ I.before ? ve.call(this, j, B, I.before) : j.rules.push(B), T.all[V] = B, (N = I.implements) === null || N === void 0 || N.forEach((te) => this.addKeyword(te));
12049
12053
  }
12050
12054
  function ve(V, I, D) {
12051
12055
  const N = V.rules.findIndex((k) => k.keyword === D);
@@ -12063,7 +12067,7 @@ function Ay() {
12063
12067
  }
12064
12068
  }($s)), $s;
12065
12069
  }
12066
- var Bn = {}, Gn = {}, Jn = {}, vo;
12070
+ var Gn = {}, Bn = {}, Jn = {}, vo;
12067
12071
  function jy() {
12068
12072
  if (vo) return Jn;
12069
12073
  vo = 1, Object.defineProperty(Jn, "__esModule", { value: !0 });
@@ -12164,8 +12168,8 @@ function zy() {
12164
12168
  }
12165
12169
  var bo;
12166
12170
  function My() {
12167
- if (bo) return Gn;
12168
- bo = 1, Object.defineProperty(Gn, "__esModule", { value: !0 });
12171
+ if (bo) return Bn;
12172
+ bo = 1, Object.defineProperty(Bn, "__esModule", { value: !0 });
12169
12173
  const t = jy(), e = zy(), n = [
12170
12174
  "$schema",
12171
12175
  "$id",
@@ -12176,7 +12180,7 @@ function My() {
12176
12180
  t.default,
12177
12181
  e.default
12178
12182
  ];
12179
- return Gn.default = n, Gn;
12183
+ return Bn.default = n, Bn;
12180
12184
  }
12181
12185
  var Yn = {}, Qn = {}, wo;
12182
12186
  function Zy() {
@@ -12393,7 +12397,7 @@ var Co;
12393
12397
  function Ky() {
12394
12398
  if (Co) return ar;
12395
12399
  Co = 1, Object.defineProperty(ar, "__esModule", { value: !0 });
12396
- const t = Br(), e = oe(), n = me(), r = Li(), i = {
12400
+ const t = Gr(), e = oe(), n = me(), r = Li(), i = {
12397
12401
  keyword: "uniqueItems",
12398
12402
  type: "array",
12399
12403
  schemaType: "boolean",
@@ -12452,7 +12456,7 @@ function Wy() {
12452
12456
  return cr.default = s, cr;
12453
12457
  }
12454
12458
  var ur = {}, No;
12455
- function By() {
12459
+ function Gy() {
12456
12460
  if (No) return ur;
12457
12461
  No = 1, Object.defineProperty(ur, "__esModule", { value: !0 });
12458
12462
  const t = oe(), e = me(), n = Li(), s = {
@@ -12492,10 +12496,10 @@ function By() {
12492
12496
  return ur.default = s, ur;
12493
12497
  }
12494
12498
  var xo;
12495
- function Gy() {
12499
+ function By() {
12496
12500
  if (xo) return Yn;
12497
12501
  xo = 1, Object.defineProperty(Yn, "__esModule", { value: !0 });
12498
- const t = Zy(), e = Dy(), n = Ly(), r = Vy(), s = Fy(), i = Uy(), a = Hy(), o = Ky(), c = Wy(), l = By(), d = [
12502
+ const t = Zy(), e = Dy(), n = Ly(), r = Vy(), s = Fy(), i = Uy(), a = Hy(), o = Ky(), c = Wy(), l = Gy(), d = [
12499
12503
  // number
12500
12504
  t.default,
12501
12505
  e.default,
@@ -12516,10 +12520,10 @@ function Gy() {
12516
12520
  ];
12517
12521
  return Yn.default = d, Yn;
12518
12522
  }
12519
- var lr = {}, Bt = {}, Ao;
12523
+ var lr = {}, Gt = {}, Ao;
12520
12524
  function Nu() {
12521
- if (Ao) return Bt;
12522
- Ao = 1, Object.defineProperty(Bt, "__esModule", { value: !0 }), Bt.validateAdditionalItems = void 0;
12525
+ if (Ao) return Gt;
12526
+ Ao = 1, Object.defineProperty(Gt, "__esModule", { value: !0 }), Gt.validateAdditionalItems = void 0;
12523
12527
  const t = oe(), e = me(), r = {
12524
12528
  keyword: "additionalItems",
12525
12529
  type: "array",
@@ -12554,12 +12558,12 @@ function Nu() {
12554
12558
  });
12555
12559
  }
12556
12560
  }
12557
- return Bt.validateAdditionalItems = s, Bt.default = r, Bt;
12561
+ return Gt.validateAdditionalItems = s, Gt.default = r, Gt;
12558
12562
  }
12559
- var dr = {}, Gt = {}, jo;
12563
+ var dr = {}, Bt = {}, jo;
12560
12564
  function xu() {
12561
- if (jo) return Gt;
12562
- jo = 1, Object.defineProperty(Gt, "__esModule", { value: !0 }), Gt.validateTuple = void 0;
12565
+ if (jo) return Bt;
12566
+ jo = 1, Object.defineProperty(Bt, "__esModule", { value: !0 }), Bt.validateTuple = void 0;
12563
12567
  const t = oe(), e = me(), n = ft(), r = {
12564
12568
  keyword: "items",
12565
12569
  type: "array",
@@ -12591,7 +12595,7 @@ function xu() {
12591
12595
  }
12592
12596
  }
12593
12597
  }
12594
- return Gt.validateTuple = s, Gt.default = r, Gt;
12598
+ return Bt.validateTuple = s, Bt.default = r, Bt;
12595
12599
  }
12596
12600
  var zo;
12597
12601
  function Jy() {
@@ -13032,10 +13036,10 @@ function av() {
13032
13036
  };
13033
13037
  return wr.default = e, wr;
13034
13038
  }
13035
- var kr = {}, Bo;
13039
+ var kr = {}, Go;
13036
13040
  function ov() {
13037
- if (Bo) return kr;
13038
- Bo = 1, Object.defineProperty(kr, "__esModule", { value: !0 });
13041
+ if (Go) return kr;
13042
+ Go = 1, Object.defineProperty(kr, "__esModule", { value: !0 });
13039
13043
  const t = oe(), e = me(), r = {
13040
13044
  keyword: "if",
13041
13045
  schemaType: ["object", "boolean"],
@@ -13079,10 +13083,10 @@ function ov() {
13079
13083
  }
13080
13084
  return kr.default = r, kr;
13081
13085
  }
13082
- var Sr = {}, Go;
13086
+ var Sr = {}, Bo;
13083
13087
  function cv() {
13084
- if (Go) return Sr;
13085
- Go = 1, Object.defineProperty(Sr, "__esModule", { value: !0 });
13088
+ if (Bo) return Sr;
13089
+ Bo = 1, Object.defineProperty(Sr, "__esModule", { value: !0 });
13086
13090
  const t = me(), e = {
13087
13091
  keyword: ["then", "else"],
13088
13092
  schemaType: ["object", "boolean"],
@@ -13211,9 +13215,9 @@ function fv() {
13211
13215
  }
13212
13216
  var ec;
13213
13217
  function pv() {
13214
- if (ec) return Bn;
13215
- ec = 1, Object.defineProperty(Bn, "__esModule", { value: !0 });
13216
- const t = My(), e = Gy(), n = uv(), r = dv(), s = fv(), i = [
13218
+ if (ec) return Gn;
13219
+ ec = 1, Object.defineProperty(Gn, "__esModule", { value: !0 });
13220
+ const t = My(), e = By(), n = uv(), r = dv(), s = fv(), i = [
13217
13221
  t.default,
13218
13222
  e.default,
13219
13223
  (0, n.default)(),
@@ -13221,7 +13225,7 @@ function pv() {
13221
13225
  s.metadataVocabulary,
13222
13226
  s.contentVocabulary
13223
13227
  ];
13224
- return Bn.default = i, Bn;
13228
+ return Gn.default = i, Gn;
13225
13229
  }
13226
13230
  var Er = {}, fn = {}, tc;
13227
13231
  function hv() {
@@ -13939,7 +13943,7 @@ class Av extends my {
13939
13943
  async _oninitialize(e) {
13940
13944
  const n = e.params.protocolVersion;
13941
13945
  return this._clientCapabilities = e.params.capabilities, this._clientVersion = e.params.clientInfo, {
13942
- protocolVersion: Gh.includes(n) ? n : su,
13946
+ protocolVersion: Bh.includes(n) ? n : su,
13943
13947
  capabilities: this.getCapabilities(),
13944
13948
  serverInfo: this._serverInfo,
13945
13949
  ...this._instructions && { instructions: this._instructions }
@@ -14802,8 +14806,8 @@ class Vi {
14802
14806
  };
14803
14807
  }
14804
14808
  }
14805
- const ls = "-", ot = "- ", Zu = ",", dt = ":", dc = " ", Du = "|", Gr = ".", Or = "[", Hv = "]", Kv = "{", fc = "}", Fi = "null", qu = "true", Lu = "false", Qe = "\\", Ve = '"', Wv = `
14806
- `, Bv = "\r", En = " ", oi = {
14809
+ const ls = "-", ot = "- ", Zu = ",", dt = ":", dc = " ", Du = "|", Br = ".", Or = "[", Hv = "]", Kv = "{", fc = "}", Fi = "null", qu = "true", Lu = "false", Qe = "\\", Ve = '"', Wv = `
14810
+ `, Gv = "\r", En = " ", oi = {
14807
14811
  comma: Zu,
14808
14812
  tab: En,
14809
14813
  pipe: Du
@@ -14826,7 +14830,7 @@ function Fu(t) {
14826
14830
  continue;
14827
14831
  }
14828
14832
  if (r === "r") {
14829
- e += Bv, n += 2;
14833
+ e += Gv, n += 2;
14830
14834
  continue;
14831
14835
  }
14832
14836
  if (r === Qe) {
@@ -14874,7 +14878,7 @@ function Uu(t, e, n = 0) {
14874
14878
  function Hu(t) {
14875
14879
  return t === qu || t === Lu || t === Fi;
14876
14880
  }
14877
- function Gv(t) {
14881
+ function Bv(t) {
14878
14882
  if (!t || t.length > 1 && t[0] === "0" && t[1] !== ".") return !1;
14879
14883
  const e = Number(t);
14880
14884
  return !Number.isNaN(e) && Number.isFinite(e);
@@ -14969,7 +14973,7 @@ function fs(t) {
14969
14973
  if (e === Lu) return !1;
14970
14974
  if (e === Fi) return null;
14971
14975
  }
14972
- if (Gv(e)) {
14976
+ if (Bv(e)) {
14973
14977
  const n = Number.parseFloat(e);
14974
14978
  return Object.is(n, -0) ? 0 : n;
14975
14979
  }
@@ -15073,7 +15077,7 @@ function s_(t, e, n) {
15073
15077
  function i_(t, e, n) {
15074
15078
  if (t?.depth === e && !t.content.startsWith(ot) && a_(t.content, n.delimiter)) throw new RangeError(`Expected ${n.length} tabular rows, but found more`);
15075
15079
  }
15076
- function Bu(t, e, n, r, s) {
15080
+ function Gu(t, e, n, r, s) {
15077
15081
  if (!r) return;
15078
15082
  const i = n.find((a) => a.lineNumber > t && a.lineNumber < e);
15079
15083
  if (i) throw new SyntaxError(`Line ${i.lineNumber}: Blank lines inside ${s} are not allowed in strict mode`);
@@ -15250,7 +15254,7 @@ function* d_(t, e, n, r) {
15250
15254
  yield* m_(t.fields, d), i++;
15251
15255
  } else break;
15252
15256
  }
15253
- Pn(i, t.length, "tabular rows", r), r.strict && a !== void 0 && o !== void 0 && Bu(a, o, e.getBlankLines(), r.strict, "tabular array"), r.strict && i_(e.peekSync(), s, t);
15257
+ Pn(i, t.length, "tabular rows", r), r.strict && a !== void 0 && o !== void 0 && Gu(a, o, e.getBlankLines(), r.strict, "tabular array"), r.strict && i_(e.peekSync(), s, t);
15254
15258
  }
15255
15259
  function* f_(t, e, n, r) {
15256
15260
  const s = n + 1;
@@ -15265,7 +15269,7 @@ function* f_(t, e, n, r) {
15265
15269
  d && (o = d.lineNumber), i++;
15266
15270
  } else break;
15267
15271
  }
15268
- Pn(i, t.length, "list array items", r), r.strict && a !== void 0 && o !== void 0 && Bu(a, o, e.getBlankLines(), r.strict, "list array"), r.strict && s_(e.peekSync(), s, t.length);
15272
+ Pn(i, t.length, "list array items", r), r.strict && a !== void 0 && o !== void 0 && Gu(a, o, e.getBlankLines(), r.strict, "list array"), r.strict && s_(e.peekSync(), s, t.length);
15269
15273
  }
15270
15274
  function* p_(t, e, n) {
15271
15275
  const r = t.nextSync();
@@ -15404,7 +15408,7 @@ function In(t) {
15404
15408
  function y_(t) {
15405
15409
  return t.length === 0 || t.every((e) => jt(e));
15406
15410
  }
15407
- function Gu(t) {
15411
+ function Bu(t) {
15408
15412
  return t.length === 0 || t.every((e) => ct(e));
15409
15413
  }
15410
15414
  function v_(t) {
@@ -15518,7 +15522,7 @@ function E_(t, e, n, r, s, i, a) {
15518
15522
  if (r.keyFolding !== "safe" || !ct(e)) return;
15519
15523
  const { segments: o, tail: c, leafValue: l } = P_(t, e, a ?? r.flattenDepth);
15520
15524
  if (o.length < 2 || !o.every((S) => __(S))) return;
15521
- const d = R_(o), h = i ? `${i}${Gr}${d}` : d;
15525
+ const d = R_(o), h = i ? `${i}${Br}${d}` : d;
15522
15526
  if (!n.includes(d) && !(s && s.has(h)))
15523
15527
  return {
15524
15528
  foldedKey: d,
@@ -15547,7 +15551,7 @@ function P_(t, e, n) {
15547
15551
  };
15548
15552
  }
15549
15553
  function R_(t) {
15550
- return t.join(Gr);
15554
+ return t.join(Br);
15551
15555
  }
15552
15556
  function sn(t, e) {
15553
15557
  return t === null ? Fi : typeof t == "boolean" || typeof t == "number" ? String(t) : I_(t, e);
@@ -15585,51 +15589,51 @@ function* Qt(t, e, n, r, s, i) {
15585
15589
  for (const [c, l] of Object.entries(t)) yield* O_(c, l, e, n, a, r, s, o);
15586
15590
  }
15587
15591
  function* O_(t, e, n, r, s, i, a, o) {
15588
- const c = a ? `${a}${Gr}${t}` : t, l = o ?? r.flattenDepth;
15592
+ const c = a ? `${a}${Br}${t}` : t, l = o ?? r.flattenDepth;
15589
15593
  if (r.keyFolding === "safe" && s) {
15590
15594
  const h = E_(t, e, s, r, i, a, l);
15591
15595
  if (h) {
15592
15596
  const { foldedKey: S, remainder: b, leafValue: v, segmentCount: y } = h, f = Cn(S);
15593
15597
  if (b === void 0) {
15594
15598
  if (Ht(v)) {
15595
- yield Ge(n, `${f}: ${sn(v, r.delimiter)}`, r.indent);
15599
+ yield Be(n, `${f}: ${sn(v, r.delimiter)}`, r.indent);
15596
15600
  return;
15597
15601
  } else if (jt(v)) {
15598
15602
  yield* ui(S, v, n, r);
15599
15603
  return;
15600
15604
  } else if (ct(v) && Rn(v)) {
15601
- yield Ge(n, `${f}:`, r.indent);
15605
+ yield Be(n, `${f}:`, r.indent);
15602
15606
  return;
15603
15607
  }
15604
15608
  }
15605
15609
  if (ct(b)) {
15606
- yield Ge(n, `${f}:`, r.indent);
15607
- const m = l - y, u = a ? `${a}${Gr}${S}` : S;
15610
+ yield Be(n, `${f}:`, r.indent);
15611
+ const m = l - y, u = a ? `${a}${Br}${S}` : S;
15608
15612
  yield* Qt(b, n + 1, r, i, u, m);
15609
15613
  return;
15610
15614
  }
15611
15615
  }
15612
15616
  }
15613
15617
  const d = Cn(t);
15614
- Ht(e) ? yield Ge(n, `${d}: ${sn(e, r.delimiter)}`, r.indent) : jt(e) ? yield* ui(t, e, n, r) : ct(e) && (yield Ge(n, `${d}:`, r.indent), Rn(e) || (yield* Qt(e, n + 1, r, i, c, l)));
15618
+ Ht(e) ? yield Be(n, `${d}: ${sn(e, r.delimiter)}`, r.indent) : jt(e) ? yield* ui(t, e, n, r) : ct(e) && (yield Be(n, `${d}:`, r.indent), Rn(e) || (yield* Qt(e, n + 1, r, i, c, l)));
15615
15619
  }
15616
15620
  function* ui(t, e, n, r) {
15617
15621
  if (e.length === 0) {
15618
- yield Ge(n, kt(0, {
15622
+ yield Be(n, kt(0, {
15619
15623
  key: t,
15620
15624
  delimiter: r.delimiter
15621
15625
  }), r.indent);
15622
15626
  return;
15623
15627
  }
15624
15628
  if (In(e)) {
15625
- yield Ge(n, ps(e, r.delimiter, t), r.indent);
15629
+ yield Be(n, ps(e, r.delimiter, t), r.indent);
15626
15630
  return;
15627
15631
  }
15628
15632
  if (y_(e) && e.every((s) => In(s))) {
15629
15633
  yield* N_(t, e, n, r);
15630
15634
  return;
15631
15635
  }
15632
- if (Gu(e)) {
15636
+ if (Bu(e)) {
15633
15637
  const s = Yu(e);
15634
15638
  s ? yield* x_(t, e, s, n, r) : yield* hc(t, e, n, r);
15635
15639
  return;
@@ -15637,7 +15641,7 @@ function* ui(t, e, n, r) {
15637
15641
  yield* hc(t, e, n, r);
15638
15642
  }
15639
15643
  function* N_(t, e, n, r) {
15640
- yield Ge(n, kt(e.length, {
15644
+ yield Be(n, kt(e.length, {
15641
15645
  key: t,
15642
15646
  delimiter: r.delimiter
15643
15647
  }), r.indent);
@@ -15654,7 +15658,7 @@ function ps(t, e, n) {
15654
15658
  return t.length === 0 ? r : `${r} ${s}`;
15655
15659
  }
15656
15660
  function* x_(t, e, n, r, s) {
15657
- yield Ge(r, kt(e.length, {
15661
+ yield Be(r, kt(e.length, {
15658
15662
  key: t,
15659
15663
  fields: n,
15660
15664
  delimiter: s.delimiter
@@ -15675,10 +15679,10 @@ function A_(t, e) {
15675
15679
  return !0;
15676
15680
  }
15677
15681
  function* Qu(t, e, n, r) {
15678
- for (const s of t) yield Ge(n, Ju(e.map((i) => s[i]), r.delimiter), r.indent);
15682
+ for (const s of t) yield Be(n, Ju(e.map((i) => s[i]), r.delimiter), r.indent);
15679
15683
  }
15680
15684
  function* hc(t, e, n, r) {
15681
- yield Ge(n, kt(e.length, {
15685
+ yield Be(n, kt(e.length, {
15682
15686
  key: t,
15683
15687
  delimiter: r.delimiter
15684
15688
  }), r.indent);
@@ -15686,11 +15690,11 @@ function* hc(t, e, n, r) {
15686
15690
  }
15687
15691
  function* j_(t, e, n) {
15688
15692
  if (Rn(t)) {
15689
- yield Ge(e, ls, n.indent);
15693
+ yield Be(e, ls, n.indent);
15690
15694
  return;
15691
15695
  }
15692
15696
  const r = Object.entries(t), [s, i] = r[0], a = r.slice(1);
15693
- if (jt(i) && Gu(i)) {
15697
+ if (jt(i) && Bu(i)) {
15694
15698
  const c = Yu(i);
15695
15699
  if (c) {
15696
15700
  yield ht(e, kt(i.length, {
@@ -15721,11 +15725,11 @@ function* Hi(t, e, n) {
15721
15725
  }
15722
15726
  else ct(t) && (yield* j_(t, e, n));
15723
15727
  }
15724
- function Ge(t, e, n) {
15728
+ function Be(t, e, n) {
15725
15729
  return " ".repeat(n * t) + e;
15726
15730
  }
15727
15731
  function ht(t, e, n) {
15728
- return Ge(t, ot + e, n);
15732
+ return Be(t, ot + e, n);
15729
15733
  }
15730
15734
  function z_(t, e) {
15731
15735
  const n = e("", t, []);
@@ -16169,7 +16173,7 @@ ${JSON.stringify(o, null, 2)}`
16169
16173
  }
16170
16174
  );
16171
16175
  }
16172
- const B_ = Xr(li(import.meta.url)), Ms = /* @__PURE__ */ new Map();
16176
+ const G_ = Xr(li(import.meta.url)), Ms = /* @__PURE__ */ new Map();
16173
16177
  function Ki(t, e = t) {
16174
16178
  const n = `${t}:${e}`;
16175
16179
  if (Ms.has(n))
@@ -16190,7 +16194,7 @@ function Ki(t, e = t) {
16190
16194
  }
16191
16195
  return Ms.set(n, r), r;
16192
16196
  }
16193
- function G_(t) {
16197
+ function B_(t) {
16194
16198
  const e = /* @__PURE__ */ new Map(), n = [
16195
16199
  // import { Type1, Type2 } from 'package'
16196
16200
  /import\s*\{\s*([^}]+)\s*\}\s*from\s*['"]([^'"]+)['"]/g,
@@ -16256,7 +16260,7 @@ function Y_(t) {
16256
16260
  return e;
16257
16261
  }
16258
16262
  function Q_(t, e) {
16259
- const n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set(), s = G_(t), a = t.replace(/import\s+.*?from\s+['"][^'"]*['"];?\s*/g, "").replace(/\/\*\*[\s\S]*?\*\//g, "").replace(/\/\*[\s\S]*?\*\//g, "").replace(/\/\/.*$/gm, ""), o = [
16263
+ const n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set(), s = B_(t), a = t.replace(/import\s+.*?from\s+['"][^'"]*['"];?\s*/g, "").replace(/\/\*\*[\s\S]*?\*\//g, "").replace(/\/\*[\s\S]*?\*\//g, "").replace(/\/\/.*$/gm, ""), o = [
16260
16264
  // Type references: SomeType, SomeType<T>, SomeType[]
16261
16265
  /\b([A-Z][a-zA-Z0-9_]*(?:<[^>]*>)?(?:\[\])?)/g,
16262
16266
  // Interface/type properties: prop: SomeType
@@ -16455,7 +16459,7 @@ function n0(t, e) {
16455
16459
  async (n) => {
16456
16460
  const { types: r, includeRelated: s = !0 } = n;
16457
16461
  try {
16458
- const i = tl(B_, "..");
16462
+ const i = tl(G_, "..");
16459
16463
  let a = "packageName";
16460
16464
  try {
16461
16465
  const g = wn(i, "package.json");
@@ -17577,6 +17581,7 @@ Available editors:
17577
17581
  kiro - Kiro editor (inclusion: always, output: .kiro/steering/)
17578
17582
  windsurf - Windsurf editor (trigger: always-on, output: .windsurf/rules/)
17579
17583
  trae - Trae editor (alwaysApply: true, output: .trae/rules/)
17584
+ copilot - GitHub Copilot (meta: applyTo: **, output: .github/instructions/)
17580
17585
  default - Generic configuration (inclusion: always, output: docs/)
17581
17586
 
17582
17587
  Examples:
@@ -17584,6 +17589,7 @@ Examples:
17584
17589
  wangsvue-mcp init-rules kiro
17585
17590
  wangsvue-mcp init-rules windsurf
17586
17591
  wangsvue-mcp init-rules trae
17592
+ wangsvue-mcp init-rules copilot
17587
17593
  wangsvue-mcp init-rules default
17588
17594
  `);
17589
17595
  }
@@ -17607,12 +17613,14 @@ Available editors:
17607
17613
  kiro - Kiro editor (inclusion: always, output: .kiro/steering/)
17608
17614
  windsurf - Windsurf editor (trigger: always-on, output: .windsurf/rules/)
17609
17615
  trae - Trae editor (alwaysApply: true, output: .trae/rules/)
17616
+ copilot - GitHub Copilot (meta: applyTo: **, output: .github/instructions/)
17610
17617
  default - Generic configuration (inclusion: always, output: docs/)
17611
17618
 
17612
17619
  Examples:
17613
17620
  wangsvue-mcp init-rules kiro
17614
17621
  wangsvue-mcp init-rules windsurf
17615
17622
  wangsvue-mcp init-rules trae
17623
+ wangsvue-mcp init-rules copilot
17616
17624
  wangsvue-mcp init-rules default
17617
17625
  `), process.exit(1));
17618
17626
  try {